@descope/flow-components 2.2.0 → 2.2.2
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/fm/222.js +1 -1
- package/dist/fm/921.js +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/996.js +1 -1
- package/dist/fm/@mf-types.zip +0 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/mf-manifest.json +2 -2
- package/dist/fm/mf-stats.json +2 -2
- package/dist/index.cjs.js +23 -6
- package/package.json +11 -11
package/dist/fm/222.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_descope_flow_components_2_2_0_1761484241504=self.webpackChunk_descope_flow_components_2_2_0_1761484241504||[]).push([[222],{5222:(e,t,r)=>{r.d(t,{$y:()=>Wp,A8:()=>Mc,Ag:()=>$s,C1:()=>jc,C9:()=>co,Cz:()=>cc,Er:()=>Km,G6:()=>dv,HO:()=>Or,HT:()=>$r,J1:()=>Io,Jr:()=>Tr,Lg:()=>qp,MN:()=>Xn,Mz:()=>vs,NF:()=>Va,O7:()=>yf,Od:()=>Cp,QW:()=>ic,Qb:()=>kf,SE:()=>Zr,SQ:()=>yo,TV:()=>Zp,Ul:()=>Ja,VN:()=>md,VX:()=>gn,_w:()=>wt,a5:()=>cv,bL:()=>Xi,bU:()=>Ay,br:()=>B,dX:()=>gb,dq:()=>rv,e7:()=>vt,eA:()=>zc,eo:()=>rl,ew:()=>nt,fp:()=>dl,gZ:()=>pp,h5:()=>jf,jH:()=>yn,k0:()=>ln,l1:()=>Yr,md:()=>hn,ml:()=>De,mq:()=>tp,o9:()=>vn,o_:()=>Ct,pp:()=>Gc,px:()=>Vp,q4:()=>gr,qn:()=>go,rG:()=>Ap,sK:()=>vr,tD:()=>jd,tS:()=>np,td:()=>tc,tl:()=>Wn,ul:()=>Ns,v_:()=>cn,w8:()=>ji,wt:()=>ds,xO:()=>da,xp:()=>bp,xs:()=>vi,yW:()=>qf,yj:()=>Zy,zQ:()=>lv});var o=r(7949),i=r(72),n=r.n(i),a=r(8089),s=r.n(a),l=r(465),d=r.n(l),c=(r(8231),r(4873),r(865),r(4598),r(7519)),p=(r(496),r(9967),r(4155),r(9504),r(1399),r(5877),r(3798),r(8619),r(1394)),u=r(3667),h=(r(8319),r(3826)),m=r(8677),g=r(127),b=(r(5595),r(9849),r(4899),r(3977),r(9435),r(9902),r(9792)),y=r(1206),f=r(268),v=r(8733);const x="descope",C=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),w=(...e)=>C(e.filter(e=>!!e).join("-")),I=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),M=e=>"function"==typeof e,S=(e,t,{excludeAttrs:r=[],includeAttrs:o=[]})=>{const i=Array.from(e.attributes).filter(e=>!r.includes(e.name)&&(!o.length||o.includes(e.name))).map(e=>e.name);t(i),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||r.includes(e.attributeName)||o.length&&!o.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},A=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},E=(e,t,r={})=>o=>{o.forEach(o=>{const i=r[o]||o,n=e.getAttribute(o);null!==n?t.getAttribute(i)!==n&&t.setAttribute(i,n):t.removeAttribute(i)})},T=(e,t,r)=>{S(e,E(e,t),r),S(t,E(t,e),r)},k=e=>w(x,e),z=(...e)=>`--${w(...e)}`,L=(e,t,r={})=>{S(e,E(e,t,r.mapAttrs),r)},N=(e,t,{prepend:r=!1}={})=>{let o;try{o=new CSSStyleSheet}catch(o){return V(e,t,{prepend:r})}const i=t?.shadowRoot||t;if(e&&o.replaceSync(e),i){const e=[...i.adoptedStyleSheets||[]];e[r?"unshift":"push"](o),i.adoptedStyleSheets=e}return e&&!o.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${e}"`),o};class D{constructor(e,t,{prepend:r=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=e,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=t?.shadowRoot||t,this.ref&&(r?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(e){this.styleEle.textContent=e}get cssRules(){return this.styleEle.sheet?.cssRules}}const V=(e,t,{prepend:r=!1}={})=>new D(e,t,{prepend:r}),P=(e,t=2)=>e.trim().split(" ").splice(0,t).map(e=>e[0]?.toUpperCase()).join(""),B=new class{static mountOnPropName="DescopeThemeManager";#e={};#t="light";#r=new Set;#o(){this.#r.forEach(e=>e?.())}get currentThemeName(){return this.#t}set currentThemeName(e){this.#t=e,this.#o()}get currentTheme(){return this.#e[this.currentThemeName]}onCurrentThemeChange(e){return this.#r.add(e),()=>{this.#r.delete(e)}}set themes(e){this.#e=e,this.#o()}get hasThemes(){return!!Object.keys(this.#e).length}},R=.25,O=.1,j=(e,t)=>e.darken(t).hex(),F=e=>{const t=e.isDark();return e.mix(d()(t?"white":"black"),1).saturate(1).hex()},W=(e,t)=>e.lightness()<.5?e.lightness(100*t).hex():e.lighten(t).hex(),_=e=>e.luminosity()>.99,$=(e,t)=>(e=>e.luminosity()<.01)(e)?W(e,R):j(e,.4),H=(e,t)=>_(e)?j(e,R):W(e,.4),q=(e,t)=>_(e)?j(e,O):W(e,.8),Y=(e,t)=>{const r=new(d())(e.main||e);return{main:r.hex(),dark:e.dark||$(r),light:e.light||H(r),highlight:e.highlight||q(r),contrast:e.contrast||F(r)}},U=e=>z(x,...e),G=(e,t,r)=>{const o=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return o.reduce((e,t,i)=>(void 0===e[t]&&(e[t]={}),i===o.length-1&&(e[t]=r),e[t]),e),e},Z=(e,t,r)=>Object.entries(e).reduce((e,[o,i])=>i?.constructor!==Object?s()(e,r(t.concat(o),i)):s()(e,Z(i,[...t,o],r)),{}),Q=(e,t)=>Z(e,[],e=>G({},e,`var(${U(e)})`)),J=(...e)=>e.reduceRight((e,t)=>t.startsWith("--")?`var(${t}${e?`, ${e}`:e})`:`${t}${e?`, ${e}`:e}`,""),K=(e,t)=>{const r=Z(e,[],(e,r)=>{const o=[...e],i=o.splice(-1),n=z(t,i),a={[i]:n},s={[i]:J(n)};return{theme:G({},[...o,n],r),useVars:s,vars:a}});return[r.theme,r.useVars,r.vars]},X=e=>`${e}__override`,ee=(e,t,r=!1)=>{const o=`var(${e}${t?`, ${t}`:""})`;return r?`var(${X(e)}, ${o})`:o};let te=class{constructor(){this.styleMap=new Map}add(e,t,r){this.styleMap.has(e)||this.styleMap.set(e,[]),this.styleMap.set(e,[...this.styleMap.get(e),{property:t,value:r}])}toString(){return Array.from(this.styleMap.entries()).reduce((e,[t,r])=>{const o=r.map(({property:e,value:t})=>`${e}: ${t}`).join(";\n");return`${e}${t} { \n${o} \n}\n\n`},"")}};const re=(e,t="fallback")=>w(e,t),oe=(e,t,{fallback:r})=>{if(!r)return{};const o=re(t,r.suffix),i=((...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(r=e).charAt(0).toUpperCase()+r.slice(1);var r}).join(""))(e,r.suffix||"fallback");return{[i]:o,...oe(i,o,r)}},ie=(e,t)=>Object.keys(t).reduce((r,o)=>{const i=z(e,o);return Object.assign(r,{[o]:i},{[o+"Override"]:X(i)},oe(o,i,t[o]))},{}),ne=({mappings:e={},componentNameOverride:t=""})=>r=>{const o=t||r.componentName;return class t extends r{static get cssVarList(){return{...r.cssVarList,...ie(o,{...e})}}#i;#n;#a;#s;#l;#d;#c;#p;#u;constructor({getRootElement:e,componentNameSuffix:r="",themeSection:o="host",baseSelector:i}={}){super(),this.#s=r,this.#l=o,this.#c=i??this.baseSelector,this.#u=e,this.#p=Object.keys(t.cssVarList).map(e=>w("st",r,e))}get#h(){return B.currentTheme?.[o]||""}#m(){this.#n.replaceSync(this.#h[this.#l]),this.currentThemeName=B.currentThemeName,this.onThemeChange?.(B.currentThemeName)}#g(){this.#n=N("",this.#d,{prepend:!0}),this.#a=B.onCurrentThemeChange(this.#m.bind(this)),this.#m()}#b(){if(this.#p.length){let e=`.${o}`.repeat(5);const t=this.getAttribute("id");t&&(e+=`#${CSS.escape(t)}`),this.#i=N(`:host(${e}) {}`,this.#d)}}#y(e,t){const r=this.#i.cssRules[0].style;if(!r)return;const i=z(o,e.replace(new RegExp("^st-"),""));t?r?.setProperty(i,t):(r?.removeProperty(i),this.removeAttribute(e))}#f(e=[]){e.forEach(e=>{this.#p.includes(e)&&this.#y(e,this.getAttribute(e))})}#v(){if(Object.keys(e).length){const t=((e,t,r)=>{const o=new te,i=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;const r=re(t,e?.suffix);return ee(r,i(e.fallback,r))};return Object.keys(r).forEach(n=>{const a=((e,t)=>{const r={selector:"",property:C(e)};return t&&Object.keys(t).length?Array.isArray(t)?t.map(e=>({...r,...e})):[{...r,...t}]:[r]})(n,r[n]),s=z(e,n);a.forEach(({selector:e,property:r,important:n,fallback:a})=>{const l=i(a,s);o.add(((e="",t="")=>M(t)?t(e):`${e}${/^[A-Za-z]/.test(t)?` ${t}`:t}`)(t,e),M(r)?r():r,ee(s,l,!0)+(n?"!important":""))})}),o.toString()})(w(o,this.#s),this.#c,e);N(t,this.#d,{prepend:!0})}}#x(e){(this.#d.classList||this.#d.host.classList).add(e)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#d=await(this.#u?.(this))||this.shadowRoot,this.#x(o),this.#v(),this.#g(),this.#b(),S(this,this.#f.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#a?.()}}},ae=e=>class extends e{constructor(){super(),N(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",e=>{if(this.isDraggable){const t=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const r=()=>{t?this.baseElement.setAttribute("tabindex",t):this.baseElement.removeAttribute("tabindex"),e.target.removeEventListener("mouseup",r),e.target.removeEventListener("dragend",r)};e.target.addEventListener("mouseup",r,{once:!0}),e.target.addEventListener("dragend",r,{once:!0})}}),super.init?.()}},se=e=>class extends e{#C(){const t=this.localName;if(!e.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(t!==e.componentName)throw Error(`component name mismatch, expected "${e.componentName}", current "${t}"`)}init(){super.init?.(),this.#C()}},le=e=>class extends e{updateComponentsContext(e){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:e}))}},de=e=>class extends e{init(){super.init?.(),this.baseElement.addEventListener("mouseover",e=>{this.setAttribute("hover","true"),e.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},ce=["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","collapsed"],pe=e=>class extends e{init(){super.init?.(),S(this,e=>e.forEach(e=>{const t=this.getAttribute(e);(e=>ce.includes(e))(e)?""===t?this.setAttribute(e,"true"):"false"===t&&this.removeAttribute(e):t||console.debug(`attribute "${e}" has no value, should it be added to the boolean attributes list?`)}),{})}},ue=({componentName:e,baseSelector:t=""})=>{class r extends HTMLElement{static get componentName(){return e}#w;#I=!0;get baseSelector(){return t}get baseElement(){return this.#w??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#w||console.warn("missing base element for component",this.localName),this.#w}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#I&&(this.#I=!1,this.init?.())}}return I(se,de,pe,le)(r)};function he(e,t={}){const r=new Event(e,t);this[`on${e}`]?.(r),this.dispatchEvent(r)}const me=e=>class extends e{#M=he.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",e=>{e.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#M(),this.prevValue=this.value)})}},ge=e=>class extends e{init(){this.#S(),super.init?.()}#S(){["blur","focus","focusin","focusout"].forEach(e=>{this.addEventListener(e,e=>{e.isTrusted&&e.target===this&&e.stopImmediatePropagation()})})}handleFocusEventsDispatching(e){let t;e?.forEach(e=>{e?.addEventListener("focusout",e=>{e.stopImmediatePropagation(),t=setTimeout(()=>{t=null,he.call(this,"blur"),he.call(this,"focusout",{bubbles:!0})})});const r=e=>{e.stopImmediatePropagation(),clearTimeout(t),t||(he.call(this,"focus"),he.call(this,"focusin",{bubbles:!0}))};e?.addEventListener("focusin",r),e?.addEventListener("focus",r)})}handleInputEventDispatching(){let e=this.value;this.addEventListener("input",t=>{this!==t.target&&(t.stopImmediatePropagation(),e!==this.value&&(e=this.value,he.call(this,"input",{bubbles:!0,composed:!0})))})}},be=["required","pattern"],ye=Symbol("validationTarget"),fe=e=>class extends e{#A=ye;static get observedAttributes(){return[...e.observedAttributes||[],...be]}static get formAssociated(){return!0}#E;get internals(){return this.#E}set internals(e){this.#E=e}constructor(){super(),this.#E=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."}getCustomErrorMessage(e,t){return this.hasAttribute(e)?this.getAttribute(e)||" ":t}getErrorMessage(e){const{valueMissing:t,patternMismatch:r,typeMismatch:o,stepMismatch:i,tooShort:n,tooLong:a,rangeOverflow:s,rangeUnderflow:l,badInput:d,customError:c}=e;switch(!0){case t:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case r||i||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case n:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case a:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case s:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#T(){const e=this.isReadOnly?{}:this.getValidity();this.#E.setValidity(e,this.getErrorMessage(e),this.validationTarget)}get validationMessage(){return this.#E.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#E.validity.valid}reportValidity(){return this.#E.reportValidity()}get validity(){return this.#E.validity}get validationTarget(){return this.#A===ye?this.inputElement:this.#A}set validationTarget(e){this.#A=e}setCustomValidity(e){e?this.#E.setValidity({customError:!0},e,this.validationTarget):(this.#E.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.#E.form}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),be.includes(e)&&this.#T()}init(){super.init?.(),this.addEventListener("change",this.#T),this.addEventListener("invalid",e=>e.stopPropagation()),this.addEventListener("input",this.#T),setTimeout(()=>this.#T())}},ve=(...e)=>I(fe,me,pe,ge)(ue(...e)),xe="FETCH_RESULTS_ERROR",Ce=()=>class{constructor(e){this.getAttribute=e,this.isValid=this.#k()}checkConnectorValidity(){this.isValid=this.#k()}#k(){return!this.getRequiredParams().filter(e=>{const t=this.getAttribute(e);return!t||!this.validateParam(e,t)}).length}validateParam(e,t){return t.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(e){return this.isValid?this._fetchResults(e):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(e){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},we=({componentName:e,wrappedEleName:t,slots:r=[],style:o,excludeAttrsSync:i=[],includeAttrsSync:n=[],includeForwardProps:a=[],delegatesFocus:s=!0})=>{class l extends(ue({componentName:e,baseSelector:t})){#z=he.bind(this,"blur");#L=he.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:s}).innerHTML=`\n\t\t\t<${t}>\n\t\t\t${r.map(e=>`<slot ${e?`name="${e}" slot="${e}"`:""}></slot>`).join("")}\n\t\t\t</${t}>\n\t\t`,N((M(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",e=>{this.#z()}),this.baseElement.addEventListener("focus",e=>{this.#L()}),((e,t,r=[])=>{if(!r.length)return;const o=r.reduce((t,r)=>Object.assign(t,{[r]:{get:()=>e[r],set(t){e[r]=t}}}),{});Object.defineProperties(t,o)})(this.baseElement,this,a),T(this.baseElement,this,{excludeAttrs:i,includeAttrs:n})}}return l},Ie=["invalid","required"],Me=e=>{if(!e)return;let t=e;for(let e=0;e<10;e++)if([t]=t.assignedElements(),"slot"!==t?.localName)return t},Se=({proxyProps:e=[],useProxyTargets:t=!1,inputEvent:r="input",triggerValidationEvents:o=[],proxyParentValidation:i=!1})=>n=>class extends(fe(n)){static get observedAttributes(){return[...n.observedAttributes||[],...Ie]}#N;#M=he.bind(this,"change");constructor(){super(),this.#N=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#N&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#N)return this.#N;this.warnIfInputElementIsMissing();const e=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),t=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#N=Me(e)||Me(t),this.#N}set inputElement(e){this.#N=e}getValidity(){return this.inputElement?.validity||{}}#D(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#D(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(e){!e&&this._shouldSetInvalid(e)&&(this.invalid=e)},this.baseElement.addEventListener("input",e=>{e.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(r)?r:[r]).forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#D()})}),this.baseElement.addEventListener("change",()=>{this.#M()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#D()}),e.forEach(e=>{const r=this.querySelector('input[slot="external-input"]')||null,o=t?[this.baseElement,r].filter(Boolean):[];((e,t,r)=>{const o=Array.isArray(t)?t:[t];Object.defineProperty(e,r,{set(e){o.forEach(t=>{t[r]=e})},get:()=>t[0][r],configurable:!0})})(this,[this.inputElement,...o],e)}),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),L(this,this.inputElement,{includeAttrs:["inputmode"]})}),i){const e=this.inputElement.internals,t=this;this.inputElement.internals=new Proxy(e,{get:(e,r)=>"function"==typeof e[r]&&"setValidity"===r?(...o)=>{if(3===o.length){const e=o.slice(0,o.length-1);e.push(t.inputElement),t.internals[r](...e)}else t.internals[r](...o);return e[r](...o)}:"function"==typeof e[r]?(...o)=>(t.internals[r](...o),e[r](...o)):e[r]})}}},Ae=e=>I(Se(e),ne({componentNameOverride:k("input-wrapper")})),Ee=()=>!0,Te=e=>`<pre>${JSON.stringify(e,null,4)}</pre>`,ke=({itemRenderer:e=Te,validateSchema:t=Ee,slotName:r,rerenderAttrsList:o=[],targetSelector:i,sortFn:n=e=>e})=>a=>class extends a{#V=[];#P;#B(e){if(!t)return!0;const r=t(e);return!0===r||(console.error("Data schema validation failed",r||""),!1)}#R(){const e=r?`*[slot="${r}"]`:":not([slot])";this.#P&&this.#P.querySelectorAll(e).forEach(e=>e.remove())}#O(){this.#R(),(n?this.data.sort(n):this.data).forEach((t,r)=>{const o="string"==typeof(i=e(t,r,this))?(e=>{const t=document.createElement("template");return t.innerHTML=e,t})(i).content:i instanceof HTMLTemplateElement?i.content:(console.error("Invalid template",i),null);var i;this.#P&&this.#P.appendChild(o?.cloneNode(!0))})}set data(e){this.#B(e)&&(this.#V=e,this.#O())}get data(){return this.#V}init(){super.init?.(),this.#P=i?this.shadowRoot.querySelector(i):this.baseElement,S(this,e=>{e.includes("data")?this.#j():this.#O()},{includeAttrs:[...o,"data"]})}#j(){const e=this.getAttribute("data");if(e)try{this.data=JSON.parse(e)}catch(t){console.warn("Invalid JSON data",e)}}},ze=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Le=k("enriched-text");class Ne extends(ue({componentName:Le,baseSelector:":host > div"})){#F;#W;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',N("\n :host {\n line-height: 1em;\n word-break: break-word;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n *, *:last-child {\n margin: 0;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin-bottom: 1em;\n }\n a {\n cursor: pointer;\n }\n blockquote {\n padding: 0 2em;\n }\n u {\n text-decoration: underline\n }\n s {\n color: currentColor;\n }\n ",this),this.#_(),A(this,this.#$.bind(this))}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("readonly"===e&&this.onReadOnlyChange("true"===r),"link-target-blank"===e&&this.#_())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(e,t,r,o,i)=>("_"===e[t].markup&&(e[t].tag="u"),this.#W(e,t,r,o,i)),this.processor.renderer.rules.em_close=(e,t,r,o,i)=>("_"===e[t].markup&&(e[t].tag="u"),this.#W(e,t,r,o,i))}#H(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(e,t,r,o,i)=>(e[t].attrSet("target","_blank"),this.#F(e,t,r,o,i)):this.processor.renderer.rules.link_open=this.#F}#q(){this.processor&&this.processor.disable(ze)}#Y(){this.#q()}#U(){this.#F=this.processor.renderer.rules.link_open||((e,t,r,o,i)=>i.renderToken(e,t,r)),this.#W=this.processor.renderer.rules.em_open||((e,t,r,o,i)=>i.renderToken(e,t,r))}#_(){this.processor=new o.A("commonmark",{html:!0}),this.#U(),this.#Y(),this.#H(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#$(){if(!this.processor)return;let e=(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(this.innerHTML);!e?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const t=this.processor.parse(e,{references:void 0});e=this.processor.renderer.render(t,{html:!0,breaks:!0})}catch(e){console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=e,this.contentNode.firstChild?.setAttribute("part","content")}onReadOnlyChange(e){e?this.contentNode.setAttribute("inert",e):this.contentNode.removeAttribute("inert")}}const De=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDisplay:{selector:()=>":host",property:"display",fallback:"inline-block"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},fontWeightBold:[{selector:()=>":host strong",property:"font-weight"},{selector:()=>":host b",property:"font-weight"}],textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"},linkTextDecoration:{selector:"a",property:"text-decoration"},linkHoverTextDecoration:{selector:"a:hover",property:"text-decoration"},minHeight:{},minWidth:{}}}),ne({componentNameOverride:k("link")}),ne({componentNameOverride:k("text")}),ae,se)(Ne),Ve=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),Pe=(...e)=>Ve(e.filter(e=>!!e).join("-")),Be=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),Re=e=>"function"==typeof e,Oe="descope",je="host",Fe=(e,t,{excludeAttrs:r=[],includeAttrs:o=[]})=>{const i=Array.from(e.attributes).filter(e=>!r.includes(e.name)&&(!o.length||o.includes(e.name))).map(e=>e.name);t(i),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||r.includes(e.attributeName)||o.length&&!o.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},We=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},_e=(e,t,r={})=>o=>{o.forEach(o=>{const i=r[o]||o,n=e.getAttribute(o);null!==n?t.getAttribute(i)!==n&&t.setAttribute(i,n):t.removeAttribute(i)})},$e=(e,t,r)=>{Fe(e,_e(e,t),r),Fe(t,_e(t,e),r)},He=e=>Pe(Oe,e),qe=(...e)=>`--${Pe(...e)}`,Ye=(e,t,r={})=>{Fe(e,_e(e,t,r.mapAttrs),r)},Ue=(e,t,r=[])=>{if(!r.length)return;const o=r.reduce((t,r)=>Object.assign(t,{[r]:{get:()=>e[r],set(t){e[r]=t}}}),{});Object.defineProperties(t,o)},Ge=.4,Ze=.25,Qe=.1,Je=(e,t)=>e.darken(t).hex(),Ke=e=>{const t=e.isDark();return e.mix(d()(t?"white":"black"),1).saturate(1).hex()},Xe=(e,t)=>e.lightness()<.5?e.lightness(100*t).hex():e.lighten(t).hex(),et=e=>e.luminosity()<.01,tt=e=>e.luminosity()>.99,rt=(e,t)=>"dark"===t?tt(e)?Je(e,Ze):Xe(e,Ge):et(e)?Xe(e,Ze):Je(e,Ge),ot=(e,t)=>"dark"===t?et(e)?Xe(e,Ze):Je(e,Ge):tt(e)?Je(e,Ze):Xe(e,Ge),it=(e,t)=>"dark"===t?et(e)?Xe(e,Qe):Je(e,.8):tt(e)?Je(e,Qe):Xe(e,.8),nt=(e,t)=>{const r=new(d())(e.main||e);return{main:r.hex(),dark:e.dark||rt(r,t),light:e.light||ot(r,t),highlight:e.highlight||it(r,t),contrast:e.contrast||Ke(r)}},at=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,st=e=>`\n ${e} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,lt=e=>`\n ${e}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,dt=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,ct=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,pt=e=>`\n ${e}::part(input-field)::after {\n background: none;\n }\n`,ut=(e,t)=>`\n ${st(e)}\n ${dt(e)}\n ${ct(e)}\n ${lt(e)}\n ${((e,t)=>`\n ${e} input:-webkit-autofill,\n ${e} input:-webkit-autofill::first-line,\n ${e} input:-webkit-autofill:hover,\n ${e} input:-webkit-autofill:active,\n ${e} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${t.inputValueTextColor});\n box-shadow: 0 0 0 var(${t.inputHeight}) var(${t.inputBackgroundColor}) inset;\n }\n`)(e,t)}\n ${pt(e)}\n ${(e=>`\n ${e}::before {\n\t\theight: unset;\n\t}\n`)(e)}\n ${(e=>`\n ${e} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(e)}\n ${(e=>`\n ${e}::part(input-field)::after {\n border: none;\n }\n`)(e)}\n`,ht=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,mt=e=>qe(Oe,...e),gt=(e,t,r)=>{const o=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return o.reduce((e,t,i)=>(void 0===e[t]&&(e[t]={}),i===o.length-1&&(e[t]=r),e[t]),e),e},bt=(e,t,r)=>Object.entries(e).reduce((e,[o,i])=>i?.constructor!==Object?s()(e,r(t.concat(o),i)):s()(e,bt(i,[...t,o],r)),{}),yt=e=>{switch(!0){case Array.isArray(e):return e.map(e=>e.includes(" ")?`"${e}"`:e).join(", ");case(e=>{try{return new URL(e),!0}catch(e){return!1}})(e):return`url(${e})`;default:return e}},ft=(e,t)=>bt(e,[],e=>gt({},e,`var(${mt(e)})`)),vt=(e,t="")=>{const r=Object.entries((e=>bt(e,[],(e,t)=>({[mt(e)]:yt(t)})))(e)).reduce((e,t)=>`${e}${t.join(":")};\n`,"");return t?`*[data-theme="${t}"] {${r}}`:r},xt=e=>Object.entries(e).reduce((e,[t,r])=>`${e}${t} { \n${Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(";\n")} \n}\n\n`,""),Ct=e=>{const t=(e=>bt(e,[],(e,t)=>{const[r,...o]=e,i=o.pop(),n=He(r);"undefined"===i&&console.warn(n,`theme value: "${t}" is mapped to an invalid property`);let a=je;o[0]&&o[0].startsWith("@")&&(a=o.shift());const s=o.reduce((e,t,r)=>{const[i,n]=function(e){const t=e.match(/^(&+)?(.*)$/);return[t[1]||"",t[2]||""]}(t),a=Math.min(i.length+1,3);if(n.startsWith("_"))return e+`[${Ve(n.replace(/^_/,""))}="true"]`.repeat(a);const s=o[r+1];return"string"!=typeof s||s.startsWith("_")||s.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${t}" is followed by "${s}" which is not allowed`),e):e+`[${Ve(n)}="${o.splice(r+1,1).join("")}"]`.repeat(a)},""),l=":host"+(s?`(${s})`:"");return{[n]:{[a]:{[l]:{[i]:yt(t)}}}}}))(e);return Object.keys(t).reduce((e,r)=>{const o=t[r];return Object.assign(e,{[r]:Object.keys(o).reduce((e,t)=>Object.assign(e,{[t]:xt(o[t])}),{})})},{})},wt=({globals:e,components:t},r)=>({globals:vt(e,r),components:Ct(t)}),It=(...e)=>e.reduceRight((e,t)=>t.startsWith("--")?`var(${t}${e?`, ${e}`:e})`:`${t}${e?`, ${e}`:e}`,""),Mt=(e,t)=>{const r=bt(e,[],(e,r)=>{const o=[...e],i=o.splice(-1),n=qe(t,i),a={[i]:n},s={[i]:It(n)};return{theme:gt({},[...o,n],r),useVars:s,vars:a}});return[r.theme,r.useVars,r.vars]},St=e=>`${e}__override`,At=(e,t,r=!1)=>{const o=`var(${e}${t?`, ${t}`:""})`;return r?`var(${St(e)}, ${o})`:o};class Et{constructor(){this.styleMap=new Map}add(e,t,r){this.styleMap.has(e)||this.styleMap.set(e,[]),this.styleMap.set(e,[...this.styleMap.get(e),{property:t,value:r}])}toString(){return Array.from(this.styleMap.entries()).reduce((e,[t,r])=>{const o=r.map(({property:e,value:t})=>`${e}: ${t}`).join(";\n");return`${e}${t} { \n${o} \n}\n\n`},"")}}const Tt=(e,t="fallback")=>Pe(e,t),kt=(e,t,{fallback:r})=>{if(!r)return{};const o=Tt(t,r.suffix),i=((...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(r=e).charAt(0).toUpperCase()+r.slice(1);var r}).join(""))(e,r.suffix||"fallback");return{[i]:o,...kt(i,o,r)}},zt=(e,t)=>Object.keys(t).reduce((r,o)=>{const i=qe(e,o);return Object.assign(r,{[o]:i},{[o+"Override"]:St(i)},kt(o,i,t[o]))},{}),Lt=({mappings:e={},componentNameOverride:t=""})=>r=>{const o=t||r.componentName;return class t extends r{static get cssVarList(){return{...r.cssVarList,...zt(o,{...e})}}#i;#n;#a;#s;#l;#d;#c;#p;#u;constructor({getRootElement:e,componentNameSuffix:r="",themeSection:o=je,baseSelector:i}={}){super(),this.#s=r,this.#l=o,this.#c=i??this.baseSelector,this.#u=e,this.#p=Object.keys(t.cssVarList).map(e=>Pe("st",r,e))}get#h(){return B.currentTheme?.[o]||""}#m(){this.#n.replaceSync(this.#h[this.#l])}#g(){this.#n=N("",this.#d,{prepend:!0}),this.#a=B.onCurrentThemeChange(this.#m.bind(this)),this.#m()}#b(){if(this.#p.length){let e=`.${o}`.repeat(5);const t=this.getAttribute("id");t&&(e+=`#${CSS.escape(t)}`),this.#i=N(`:host(${e}) {}`,this.#d)}}#y(e,t){const r=this.#i.cssRules[0].style;if(!r)return;const i=qe(o,e.replace(new RegExp("^st-"),""));t?r?.setProperty(i,t):(r?.removeProperty(i),this.removeAttribute(e))}#f(e=[]){e.forEach(e=>{this.#p.includes(e)&&this.#y(e,this.getAttribute(e))})}#v(){if(Object.keys(e).length){const t=((e,t,r)=>{const o=new Et,i=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;const r=Tt(t,e?.suffix);return At(r,i(e.fallback,r))};return Object.keys(r).forEach(n=>{const a=((e,t)=>{const r={selector:"",property:Ve(e)};return t&&Object.keys(t).length?Array.isArray(t)?t.map(e=>({...r,...e})):[{...r,...t}]:[r]})(n,r[n]),s=qe(e,n);a.forEach(({selector:e,property:r,important:n,fallback:a})=>{const l=i(a,s);o.add(((e="",t="")=>Re(t)?t(e):`${e}${/^[A-Za-z]/.test(t)?` ${t}`:t}`)(t,e),Re(r)?r():r,At(s,l,!0)+(n?"!important":""))})}),o.toString()})(Pe(o,this.#s),this.#c,e);N(t,this.#d,{prepend:!0})}}#x(e){(this.#d.classList||this.#d.host.classList).add(e)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#d=await(this.#u?.(this))||this.shadowRoot,this.#x(o),this.#v(),this.#g(),this.#b(),Fe(this,this.#f.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#a?.()}}},Nt=e=>class extends e{constructor(){super(),N(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",e=>{if(this.isDraggable){const t=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const r=()=>{t?this.baseElement.setAttribute("tabindex",t):this.baseElement.removeAttribute("tabindex"),e.target.removeEventListener("mouseup",r),e.target.removeEventListener("dragend",r)};e.target.addEventListener("mouseup",r,{once:!0}),e.target.addEventListener("dragend",r,{once:!0})}}),super.init?.()}},Dt=e=>class extends e{#C(){const t=this.localName;if(!e.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(t!==e.componentName)throw Error(`component name mismatch, expected "${e.componentName}", current "${t}"`)}init(){super.init?.(),this.#C()}},Vt=e=>class extends e{updateComponentsContext(e){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:e}))}},Pt=e=>class extends e{init(){super.init?.(),this.baseElement.addEventListener("mouseover",e=>{this.setAttribute("hover","true"),e.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},Bt=["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","loading"],Rt=e=>class extends e{init(){super.init?.(),Fe(this,e=>e.forEach(e=>{const t=this.getAttribute(e);(e=>Bt.includes(e))(e)?""===t?this.setAttribute(e,"true"):"false"===t&&this.removeAttribute(e):t||console.debug(`attribute "${e}" has no value, should it be added to the boolean attributes list?`)}),{})}},Ot=({componentName:e,baseSelector:t=""})=>{class r extends HTMLElement{static get componentName(){return e}#w;#I=!0;get baseSelector(){return t}get baseElement(){return this.#w??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#w||console.warn("missing base element for component",this.localName),this.#w}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#I&&(this.#I=!1,this.init?.())}}return Be(Dt,Pt,Rt,Vt)(r)};function jt(e,t={}){const r=new Event(e,t);this[`on${e}`]?.(r),this.dispatchEvent(r)}const Ft=({componentName:e,wrappedEleName:t,slots:r=[],style:o,excludeAttrsSync:i=[],includeAttrsSync:n=[],includeForwardProps:a=[],delegatesFocus:s=!0})=>{class l extends(Ot({componentName:e,baseSelector:t})){#z=jt.bind(this,"blur");#L=jt.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:s}).innerHTML=`\n\t\t\t<${t}>\n\t\t\t${r.map(e=>`<slot ${e?`name="${e}" slot="${e}"`:""}></slot>`).join("")}\n\t\t\t</${t}>\n\t\t`,N((Re(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",e=>{this.#z()}),this.baseElement.addEventListener("focus",e=>{this.#L()}),Ue(this.baseElement,this,a),$e(this.baseElement,this,{excludeAttrs:i,includeAttrs:n})}}return l},Wt=["required","pattern"],_t=Symbol("validationTarget"),$t=e=>class extends e{#A=_t;static get observedAttributes(){return[...e.observedAttributes||[],...Wt]}static get formAssociated(){return!0}#E;get internals(){return this.#E}set internals(e){this.#E=e}constructor(){super(),this.#E=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."}getCustomErrorMessage(e,t){return this.hasAttribute(e)?this.getAttribute(e)||" ":t}getErrorMessage(e){const{valueMissing:t,patternMismatch:r,typeMismatch:o,stepMismatch:i,tooShort:n,tooLong:a,rangeOverflow:s,rangeUnderflow:l,badInput:d,customError:c}=e;switch(!0){case t:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case r||i||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case n:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case a:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case s:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#T(){const e=this.isReadOnly?{}:this.getValidity();this.#E.setValidity(e,this.getErrorMessage(e),this.validationTarget)}get validationMessage(){return this.#E.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#E.validity.valid}reportValidity(){return this.#E.reportValidity()}get validity(){return this.#E.validity}get validationTarget(){return this.#A===_t?this.inputElement:this.#A}set validationTarget(e){this.#A=e}setCustomValidity(e){e?this.#E.setValidity({customError:!0},e,this.validationTarget):(this.#E.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.#E.form}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),Wt.includes(e)&&this.#T()}init(){super.init?.(),this.addEventListener("change",this.#T),this.addEventListener("invalid",e=>e.stopPropagation()),this.addEventListener("input",this.#T),setTimeout(()=>this.#T())}},Ht=["invalid","required"],qt=e=>{if(!e)return;let t=e;for(let e=0;e<10;e++)if([t]=t.assignedElements(),"slot"!==t?.localName)return t},Yt=({proxyProps:e=[],useProxyTargets:t=!1,inputEvent:r="input",triggerValidationEvents:o=[],proxyParentValidation:i=!1})=>n=>class extends($t(n)){static get observedAttributes(){return[...n.observedAttributes||[],...Ht]}#N;#M=jt.bind(this,"change");constructor(){super(),this.#N=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#N&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#N)return this.#N;this.warnIfInputElementIsMissing();const e=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),t=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#N=qt(e)||qt(t),this.#N}set inputElement(e){this.#N=e}getValidity(){return this.inputElement?.validity||{}}#D(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#D(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(e){!e&&this._shouldSetInvalid(e)&&(this.invalid=e)},this.baseElement.addEventListener("input",e=>{e.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(r)?r:[r]).forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#D()})}),this.baseElement.addEventListener("change",()=>{this.#M()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#D()}),e.forEach(e=>{const r=this.querySelector('input[slot="external-input"]')||null,o=t?[this.baseElement,r].filter(Boolean):[];((e,t,r)=>{const o=Array.isArray(t)?t:[t];Object.defineProperty(e,r,{set(e){o.forEach(t=>{t[r]=e})},get:()=>t[0][r],configurable:!0})})(this,[this.inputElement,...o],e)}),this.setSelectionRange=this.inputElement?.setSelectionRange?.bind(this.inputElement),Ye(this,this.inputElement,{includeAttrs:["inputmode"]})}),i){const e=this.inputElement.internals,t=this;this.inputElement.internals=new Proxy(e,{get:(e,r)=>"function"==typeof e[r]&&"setValidity"===r?(...o)=>{if(3===o.length){const e=o.slice(0,o.length-1);e.push(t.inputElement),t.internals[r](...e)}else t.internals[r](...o);return e[r](...o)}:"function"==typeof e[r]?(...o)=>(t.internals[r](...o),e[r](...o)):e[r]})}}},Ut=e=>Be(Yt(e),Lt({componentNameOverride:He("input-wrapper")})),Gt=e=>async t=>{const r=await e(t);return new Promise(e=>{let t=0;const o=()=>{if(t>20)return console.error("could not get shadow root for element",r),void e(r);t++,r?.shadowRoot?e(r.shadowRoot):setTimeout(o)};o()})},Zt=({name:e,selector:t,mappings:r={},forward:{attributes:o=[],include:i=!0}={}})=>n=>{const a=e,s=Lt({mappings:r})(n);return class extends s{static get cssVarList(){return{...s.cssVarList,[a]:zt(Pe(n.componentName,"_"+a),r)}}#G;constructor(){const e=Gt(async e=>{const r=(e.shadowRoot||e).querySelector(e.baseSelector);return t?(await Gt(()=>r)(e)).querySelector(t):r});super({getRootElement:e,componentNameSuffix:"_"+a,themeSection:"@"+a,baseSelector:":host"}),this.#G=e(this).then(e=>e.host)}async#Z(){const e=await this.#G;e.onmouseenter=e=>{e.target.setAttribute("hover","true")},e.onmouseleave=e=>{e.target.removeAttribute("hover")}}async init(){super.init?.();const e=await this.#G;Ye(this,e,{[i?"includeAttrs":"excludeAttrs"]:o}),this.#Z()}}},Qt=e=>class extends e{#M=jt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",e=>{e.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#M(),this.prevValue=this.value)})}},Jt=e=>class extends e{init(){this.#S(),super.init?.()}#S(){["blur","focus","focusin","focusout"].forEach(e=>{this.addEventListener(e,e=>{e.isTrusted&&e.target===this&&e.stopImmediatePropagation()})})}handleFocusEventsDispatching(e){let t;e?.forEach(e=>{e?.addEventListener("focusout",e=>{e.stopImmediatePropagation(),t=setTimeout(()=>{t=null,jt.call(this,"blur"),jt.call(this,"focusout",{bubbles:!0})})});const r=e=>{e.stopImmediatePropagation(),clearTimeout(t),t||(jt.call(this,"focus"),jt.call(this,"focusin",{bubbles:!0}))};e?.addEventListener("focusin",r),e?.addEventListener("focus",r)})}handleInputEventDispatching(){let e=this.value;this.addEventListener("input",t=>{this!==t.target&&(t.stopImmediatePropagation(),e!==this.value&&(e=this.value,jt.call(this,"input",{bubbles:!0,composed:!0})))})}},Kt=({inputType:e,inputName:t,autocompleteType:r,includeAttrs:o=[],noBlurDispatch:i=!1})=>n=>class extends n{#Q=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const r=this.baseElement.querySelector("input");if(!r)return null;r.setAttribute("tabindex","-1");const i=(()=>{const e=document.createElement("slot");return e.setAttribute("name","external-input"),e.setAttribute("slot","suffix"),e})();return this.baseElement.appendChild(i),this.externalInput=((e,t,r,o)=>{const i=document.createElement("input");return i.setAttribute("slot","external-input"),i.setAttribute("type",t),i.setAttribute("name",o),i.setAttribute("data-hidden-input","true"),i.setAttribute("autocomplete",r),i})(0,e,this.getAutocompleteType(),t),setTimeout(()=>{var e,t,o;e=r,t=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const r=getComputedStyle(e),i=r.getPropertyValue("height"),n=r.getPropertyValue("padding-left"),a=r.getPropertyValue("padding-right"),s=r.getPropertyValue("font-size"),l=r.getPropertyValue("font-family"),d=r.getPropertyValue("letter-spacing"),c=r.getPropertyValue("caret-color"),p=((e,t)=>{const r=e.value;e.value="_";const o=t.getPropertyValue("color");return"_"===e.value&&(e.value=r),o})(e,r);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",i],["left",n],["right",a],["font-size",s],["font-family",l],["letter-spacing",d],["caret-color",c],["color",p]].forEach(([e,r])=>t.style.setProperty(e,r,"important")),"floating"===o){const e=r.getPropertyValue("margin-bottom");t.style.setProperty("margin-bottom",e,"important")}const u=r.getPropertyValue("width");t.style.setProperty("width",`calc(${u} - ${n} - ${a}`,"important")},0)}),this.forwardInputValue(r,this.externalInput),$e(r,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",e=>e.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#Q.forEach(e=>clearTimeout(e)),this.#Q.length=0}dispatchBlur(){return setTimeout(()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0})),this.removeAttribute("focused")})}handleFocusEvents(){this.baseElement.addEventListener("focus",()=>{this.externalInput.focus(),this.clearBlurTimers()}),this.externalInput.addEventListener("focus",()=>{this.clearBlurTimers(),setTimeout(()=>this.baseElement.setAttribute("focused","true"))})}handleBlurEvents(){this.baseElement.addEventListener("blur",e=>{e.stopImmediatePropagation(),i||this.#Q.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",e=>{e.stopImmediatePropagation(),this.#Q.push(this.dispatchBlur())},!0)}handlelInputEvents(e){e.addEventListener("input",e=>{this.value=e.target.value}),e.addEventListener("input",e=>{e.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||r}forwardInputValue(e,t){const r=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(e,"value",{...r,set(e){r.set.call(this,e),t.value=e},configurable:!0})}},Xt=e=>class extends e{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},er=(...e)=>Be($t,Qt,Rt,Jt)(Ot(...e)),tr=He("boolean-field-internal"),rr=["disabled","invalid","readonly"],or=er({componentName:tr,baseSelector:"div"}),ir=e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n\t\t\t\t<${tr}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${tr}>\n\t\t\t`,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(tr),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),Ye(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),Ue(this.inputElement,this,["checked"]),$e(this,this.inputElement,{includeAttrs:["checked"]})}};var nr=e=>`\n:host {\n\tdisplay: inline-flex;\n}\n\n\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n.wrapper {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n}\nvaadin-text-field {\n\tposition: relative;\n\tpadding: 0;\n\tdisplay: inline-flex;\n\talign-items: flex-start;\n}\nvaadin-text-field::before {\n content: unset;\n}\nvaadin-text-field::part(label) {\n position: absolute;\n top: 0;\n}\nvaadin-text-field::part(input-field) {\n\tpadding: 0;\n\tbackground: none;\n\tmin-height: 0;\n}\nvaadin-text-field::part(input-field)::after {\n background: none;\n}\nvaadin-text-field[focus-ring]::part(input-field) {\n\tbox-shadow: none;\n}\n\nvaadin-checkbox [slot="label"] {\n align-self: flex-start;\n padding: 0;\n}\n[required] vaadin-checkbox [slot="label"]:not(:empty) {\n\tpadding-inline-end: 1em;\n}\ndescope-boolean-field-internal {\n -webkit-mask-image: none;\n min-height: initial;\n}\n\ndescope-enriched-text[empty] {\n\t${De.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${De.cssVarList.hostDirection}: var(${e.hostDirection});\n}\n\n`;const ar=He("checkbox"),{host:sr,component:lr,checkboxElement:dr,checkboxSurface:cr,checkboxLabel:pr,requiredIndicator:ur,helperText:hr,errorMessage:mr}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::part(content)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},gr=Be(Lt({mappings:{hostWidth:{...sr,property:"width"},hostDirection:{...sr,property:"direction"},fontSize:[sr,dr,pr],fontFamily:[pr,hr,mr],labelTextColor:{...pr,property:"color"},labelSpacing:{...pr,property:"padding-inline-start"},labelLineHeight:{...pr,property:"line-height"},labelFontWeight:{...pr,property:"font-weight"},labelRequiredIndicator:{...ur,property:"content"},errorMessageTextColor:{...mr,property:"color"},errorMessageIcon:{...mr,property:"background-image"},errorMessageIconSize:{...mr,property:"background-size"},errorMessageIconPadding:{...mr,property:"padding-inline-start"},errorMessageIconRepeat:{...mr,property:"background-repeat"},errorMessageIconPosition:{...mr,property:"background-position"},errorMessageFontSize:{...mr,property:"font-size"},inputValueTextColor:{...cr,property:"color"},inputBackgroundColor:{...dr,property:"background-color"},inputBorderRadius:{...dr,property:"border-radius"},inputBorderWidth:{...dr,property:"border-width"},inputBorderOffset:{...dr,property:"border-offset"},inputBorderColor:{...dr,property:"border-color"},inputBorderStyle:{...dr,property:"border-style"},inputOutlineWidth:{...dr,property:"outline-width"},inputOutlineOffset:{...dr,property:"outline-offset"},inputOutlineColor:{...dr,property:"outline-color"},inputOutlineStyle:{...dr,property:"outline-style"},inputContainerPadding:{...lr,property:"padding"},inputContainerBorderRadius:{...lr,property:"border-radius"},inputContainerBorderWidth:{...lr,property:"border-width"},inputContainerBorderColor:{...lr,property:"border-color"},inputContainerBorderStyle:{...lr,property:"border-style"},inputContainerOutlineWidth:{...lr,property:"outline-width"},inputContainerOutlineOffset:{...lr,property:"outline-offset"},inputContainerOutlineColor:{...lr,property:"outline-color"},inputContainerOutlineStyle:{...lr,property:"outline-style"},inputSize:[{...dr,property:"width"},{...dr,property:"height"},{...cr,property:"font-size"},{...lr,property:"font-size"}]}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,ir)(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${nr(gr.cssVarList)}\n ${at(gr.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n margin: 1px;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n height: 100%;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox)::after {\n top: 0;\n left: 0;\n -webkit-text-fill-color: initial;\n }\n\n vaadin-checkbox label {\n -webkit-text-fill-color: initial;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n `,excludeAttrsSync:["label","tabindex","style"],componentName:ar})),br=k("text");class yr extends(ue({componentName:br,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',N("\n :host {\n display: inline-block;\n line-height: 1em;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n ",this)}get hideWhenEmpty(){return"true"===this.getAttribute("hide-when-empty")}init(){super.init(),A(this,()=>{const e=!!this.childNodes.length;this.style.display=!e&&this.hideWhenEmpty?"none":""})}}const{host:fr}={host:{selector:()=>":host"}},vr=I(ne({mappings:{hostWidth:{...fr,property:"width"},hostDirection:{...fr,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),ae,se)(yr),xr=k("link");class Cr extends(ue({componentName:xr,baseSelector:":host a"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t<div>\n\t\t\t<descope-text part="wrapper">\n\t\t\t\t<a>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</a>\n\t\t\t</descope-text>\n\t\t</div>\n\t\t',N('\n :host {\n\t\t\tdisplay: inline-block;\n line-height: 1em;\n\t\t}\n\t\t:host a {\n\t\t\tdisplay: inline;\n\t\t}\n\n :host([ellipsis="true"]) descope-text {\n display: inline-flex;\n }\n :host([ellipsis="true"]) descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ',this),L(this,this.shadowRoot.querySelector("a"),{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),L(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]})}}const wr={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>vr.componentName}},{anchor:Ir,text:Mr,host:Sr,wrapper:Ar,link:Er}=wr,Tr=I(ne({mappings:{hostWidth:{...Sr,property:"width"},hostDirection:{...Mr,property:"direction"},textAlign:Ar,textDecoration:{...Er,property:"text-decoration",fallback:"none"},textColor:[{...Ir,property:"color"},{...Mr,property:vr.cssVarList.textColor}],cursor:Ir}}),ae,se)(Cr);customElements.define(br,vr),customElements.define(xr,Tr),customElements.define(Le,De),customElements.define(tr,class extends or{static get observedAttributes(){return["readonly","label"]}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper">\n\t\t\t\t<vaadin-checkbox>\n\t\t\t\t\t<descope-enriched-text class="label-content" slot="label"></descope-enriched-text>\n\t\t\t\t</vaadin-checkbox>\n\t\t\t</div>\n\t\t',this.wrapperEle=this.querySelector("div"),this.checkbox=this.querySelector("vaadin-checkbox"),this.labelContent=this.querySelector(".label-content")}get value(){return this.checkbox?.checked}set value(e){this.checkbox.checked=e}get checked(){return this.value}set checked(e){this.value=e}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.checkbox.focus()}),super.init?.(),Ye(this,this.checkbox,{includeAttrs:rr}),$e(this,this.checkbox,{includeAttrs:["checked"]}),this.labelContent.addEventListener("click",e=>{this.hasAttribute("disabled")||this.hasAttribute("readonly")||this.checkbox.click()}),this.handleFocusEventsDispatching([this.checkbox])}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"readonly"===e&&this.onReadOnlyChange(null!==r),"label"===e&&this.onLabelChange()}onLabelChange(){const e=this.getAttribute("label");this.labelContent.textContent=e||""}onReadOnlyChange(e){this.baseElement.setAttribute("inert",e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}}),customElements.define(ar,gr);const kr=He("switch-toggle"),{host:zr,component:Lr,checkboxElement:Nr,checkboxSurface:Dr,checkboxLabel:Vr,requiredIndicator:Pr,helperText:Br,errorMessage:Rr}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::part(content)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Or=Be(Lt({mappings:{hostWidth:{...zr,property:"width"},hostDirection:{...zr,property:"direction"},fontSize:[Lr,Vr,Vr],fontFamily:[Vr,Br,Rr],labelTextColor:[{...Vr,property:"color"},{...Vr,property:"-webkit-text-fill-color"}],labelSpacing:{...Vr,property:"padding-inline-start"},labelLineHeight:{...Vr,property:"line-height"},labelFontWeight:{...Vr,property:"font-weight"},labelRequiredIndicator:{...Pr,property:"content"},errorMessageTextColor:{...Rr,property:"color"},errorMessageIcon:{...Rr,property:"background-image"},errorMessageIconSize:{...Rr,property:"background-size"},errorMessageIconPadding:{...Rr,property:"padding-inline-start"},errorMessageIconRepeat:{...Rr,property:"background-repeat"},errorMessageIconPosition:{...Rr,property:"background-position"},errorMessageFontSize:{...Rr,property:"font-size"},trackBorderWidth:{...Nr,property:"border-width"},trackBorderStyle:{...Nr,property:"border-style"},trackBorderColor:{...Nr,property:"border-color"},trackBackgroundColor:{...Nr,property:"background-color"},trackBorderRadius:{...Nr,property:"border-radius"},trackWidth:[{...Nr,property:"width"}],trackHeight:[{...Dr,property:"font-size"},{...Nr,property:"height"}],knobSize:[{...Dr,property:"width"},{...Dr,property:"height"}],knobTextColor:{...Dr,property:"color"},knobRadius:{...Dr,property:"border-radius"},knobTransitionDuration:{...Dr,property:"transition"},knobColor:{...Dr,property:"background-color"},knobTopOffset:{...Dr,property:"top"},knobLeftOffset:{...Dr,property:"left"},inputOutlineWidth:{...Nr,property:"outline-width"},inputOutlineOffset:{...Nr,property:"outline-offset"},inputOutlineColor:{...Nr,property:"outline-color"},inputOutlineStyle:{...Nr,property:"outline-style"}}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,ir)(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${nr(Or.cssVarList)}\n\t\t\t${at(Or.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n width: 100%;\n }\n\n vaadin-text-field::part(input-field) {\n cursor: pointer;\n }\n\n vaadin-checkbox {\n cursor: pointer;\n }\n\n vaadin-checkbox [slot="label"]:not(:empty) {\n cursor: pointer;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::before {\n content: '';\n\t\t\t}\n\n vaadin-checkbox[active]::part(checkbox) {\n\t\t\t\ttransform: none;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::after {\n\t\t\t\tposition: absolute;\n\t\t\t\topacity: 1;\n\t\t\t\tcontent: '';\n\t\t\t}\n\t\t`,excludeAttrsSync:["label","tabindex","style"],componentName:kr}));customElements.define(kr,Or);const jr=He("loader-linear");class Fr extends(Ot({componentName:jr,baseSelector:":host > div"})){static get componentName(){return jr}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",N("\n @keyframes tilt {\n\t\t\t\t0% { transform: translateX(0); }\n\t\t\t\t50% { transform: translateX(400%); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\tdiv::after {\n\t\t\t\tcontent: '';\n\t\t\t\tanimation-name: tilt;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\twidth: 100%;\n\t\t\t}\n ",this)}}const{after:Wr,host:_r}={after:{selector:"::after"},host:{selector:()=>":host"}},$r=Be(Lt({mappings:{hostDisplay:{},hostWidth:{..._r,property:"width"},barHeight:[{property:"height"},{...Wr,property:"height"}],barBorderRadius:[{property:"border-radius"},{...Wr,property:"border-radius"}],verticalPadding:[{..._r,property:"padding-top"},{..._r,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...Wr,property:"background-color"},barWidth:{...Wr,property:"width"},animationDuration:[{},Wr],animationTimingFunction:[{},Wr],animationIterationCount:[{},Wr]}}),Nt,Dt)(Fr);customElements.define(jr,$r);const Hr=He("loader-radial");class qr extends(Ot({componentName:Hr,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",N("\n @keyframes spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tanimation-name: spin;\n\t\t\t}\n ",this)}}const Yr=Be(Lt({mappings:{hostDisplay:{property:"display"},spinnerSize:[{property:"width"},{property:"height"}],spinnerBorderWidth:{property:"border-width"},spinnerBorderStyle:{property:"border-style"},spinnerBorderRadius:{property:"border-radius"},spinnerQuadrant1Color:{property:"border-top-color"},spinnerQuadrant2Color:{property:"border-bottom-color"},spinnerQuadrant3Color:{property:"border-right-color"},spinnerQuadrant4Color:{property:"border-left-color"},animationDuration:{},animationTimingFunction:{},animationIterationCount:{}}}),Nt,Dt)(qr);customElements.define(Hr,Yr);const Ur=He("container");class Gr extends(Ot({componentName:Ur,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",N("\n\t\t\t:host > slot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n ",this)}}const Zr=Be(Lt({mappings:{hostHeight:{selector:()=>":host",property:"height"},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},itemsGrow:{selector:()=>"::slotted(*)",property:"flex-grow",fallback:"0"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:{},flexWrap:{},backgroundColor:{},backgroundImage:{},backgroundPositionX:{},backgroundPositionY:{},backgroundSize:{},backgroundRepeat:{},color:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{}}}),Nt,Dt)(Gr);customElements.define(Ur,Zr);const Qr=k("combo-box"),{host:Jr,inputField:Kr,inputElement:Xr,placeholder:eo,toggle:to,clearButton:ro,label:oo,requiredIndicator:io,helperText:no,errorMessage:ao,loader:so,overlayContent:lo}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},loader:{selector:"vaadin-combo-box-overlay::part(loader)"},overlayContent:{selector:"vaadin-combo-box-overlay::part(content)"}},co=I(ne({mappings:{hostWidth:{...Jr,property:"width"},hostDirection:{...Jr,property:"direction"},fontSize:[{},Jr],fontFamily:[oo,eo,Kr,no,ao],labelFontSize:{...oo,property:"font-size"},labelFontWeight:{...oo,property:"font-weight"},labelTextColor:[{...oo,property:"color"},{...oo,property:"-webkit-text-fill-color"},{...io,property:"color"}],errorMessageTextColor:{...ao,property:"color"},errorMessageIcon:{...ao,property:"background-image"},errorMessageIconSize:{...ao,property:"background-size"},errorMessageIconPadding:{...ao,property:"padding-inline-start"},errorMessageIconRepeat:{...ao,property:"background-repeat"},errorMessageIconPosition:{...ao,property:"background-position"},errorMessageFontSize:{...ao,property:"font-size"},inputHeight:{...Kr,property:"height"},inputBackgroundColor:{...Kr,property:"background-color"},inputBorderColor:{...Kr,property:"border-color"},inputBorderWidth:{...Kr,property:"border-width"},inputBorderStyle:{...Kr,property:"border-style"},inputBorderRadius:{...Kr,property:"border-radius"},labelRequiredIndicator:{...io,property:"content"},inputValueTextColor:{...Kr,property:"color"},inputPlaceholderTextColor:{...eo,property:"color"},inputDropdownButtonCursor:[{...to,property:"cursor"},{...ro,property:"cursor"}],inputDropdownButtonColor:[{...to,property:"color"},{...ro,property:"color"}],inputDropdownButtonSize:[{...to,property:"font-size"},{...ro,property:"font-size"}],inputDropdownButtonOffset:[{...to,property:"margin-right"},{...to,property:"margin-left"}],inputOutlineColor:{...Kr,property:"outline-color"},inputOutlineWidth:{...Kr,property:"outline-width"},inputOutlineStyle:{...Kr,property:"outline-style"},inputOutlineOffset:{...Kr,property:"outline-offset"},inputHorizontalPadding:[{...Xr,property:"padding-left"},{...Xr,property:"padding-right"}],labelPosition:{...oo,property:"position"},labelTopPosition:{...oo,property:"top"},labelHorizontalPosition:[{...oo,property:"left"},{...oo,property:"right"}],inputTransformY:{...oo,property:"transform"},inputTransition:{...oo,property:"transition"},marginInlineStart:{...oo,property:"margin-inline-start"},placeholderOpacity:{...eo,property:"opacity"},inputVerticalAlignment:{...Kr,property:"align-items"},valueInputHeight:{...Xr,property:"height"},valueInputMarginBottom:{...Xr,property:"margin-bottom"},overlayBackground:{property:()=>co.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>co.cssVarList.overlay.textColor},overlayBorder:{property:()=>co.cssVarList.overlay.border},overlayFontSize:{property:()=>co.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>co.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>co.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>co.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>co.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>co.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>co.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>co.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>co.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>co.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>co.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>co.cssVarList.overlay.itemFocusBackground}}}),ae,(({name:e,selector:t,mappings:r={},forward:{attributes:o=[],include:i=!0}={}})=>t=>{const n=e,a=ne({mappings:r})(t);return class extends a{static get cssVarList(){return{...a.cssVarList,[n]:ie(w(t.componentName,"_"+n),r)}}#G;constructor(){const e=(t=async e=>(e.shadowRoot||e).querySelector(e.baseSelector),async e=>{const r=await t(e);return new Promise(e=>{let t=0;const o=()=>{if(t>20)return console.error("could not get shadow root for element",r),void e(r);t++,r?.shadowRoot?e(r.shadowRoot):setTimeout(o)};o()})});var t;super({getRootElement:e,componentNameSuffix:"_"+n,themeSection:"@"+n,baseSelector:":host"}),this.#G=e(this).then(e=>e.host)}async#Z(){const e=await this.#G;e.onmouseenter=e=>{e.target.setAttribute("hover","true")},e.onmouseleave=e=>{e.target.removeAttribute("hover")}}async init(){super.init?.();const e=await this.#G;L(this,e,{[i?"includeAttrs":"excludeAttrs"]:o}),this.#Z()}}})({name:"overlay",selector:"",mappings:{backgroundColor:[{selector:"vaadin-combo-box-scroller"},{selector:"vaadin-combo-box-overlay::part(overlay)"}],minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"},checkmarkDisplay:{selector:"vaadin-combo-box-item::part(checkmark)",property:"display"},selectedItemBackground:{selector:"vaadin-combo-box-item[selected]",property:"background-color"},selectedItemHoverBackground:{selector:"vaadin-combo-box-item[selected]:hover:not([disabled])",property:"background-color"},selectedItemFocusBackground:{selector:"vaadin-combo-box-item[selected][focused]:not([disabled])",property:"background-color"},itemHoverBackground:{selector:"vaadin-combo-box-item:hover:not([selected]):not([disabled])",property:"background-color"},itemFocusBackground:{selector:"vaadin-combo-box-item[focused]:not([selected]):not([disabled])",property:"background-color"},loaderTop:{...so,property:"top"},loaderLeft:{...so,property:"left"},loaderRight:{...so,property:"right"},loaderMargin:{...so,property:"margin"},loaderWidth:{...so,property:"width"},loaderHeight:{...so,property:"height"},loaderBorder:{...so,property:"border"},loaderBorderColor:{...so,property:"border-color"},loaderBorderRadius:{...so,property:"border-radius"},contentHeight:{...lo,property:"height"},contentOpacity:{...lo,property:"opacity"},scrollerMinHeight:{selector:"vaadin-combo-box-scroller",property:"min-height"}},forward:{include:!1,attributes:["size"]}}),Ae({proxyProps:["selectionStart"],inputEvent:"value-changed"}),se,e=>class extends e{static get observedAttributes(){return["label-type"]}#J=({displayName:e,value:t,label:r})=>`<span data-name="${r}" data-id="${t}">${e||r}</span>`;#V;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#J}set renderItem(e){this.#J=e,this.renderItems()}set renderer(e){this.baseElement.renderer=e}get loading(){return"true"===this.getAttribute("loading")}set loading(e){e?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" -',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.renderItem?.(t||{})||""),"")}renderItems(){if(this.#V||this.getAttribute("data")){const e=this.getItemsTemplate();this.innerHTML=e}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:e}=this.baseElement,t=e?.["data-id"];e&&Array.from(this.children).includes(e)||(t&&this.shouldSelectItemOnItemsChange&&(this.value=t),this.value||this.setDefaultValue())}customValueTransformFn(e){return e}setComboBoxDescriptor(){const e=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),t=this;Object.defineProperties(this.inputElement,{value:{...e,set(r){if(!t.baseElement.items?.length&&!t.allowCustomValue)return;const o=t.customValueTransformFn(r)||"";o!==this.value&&e.set.call(this,o)}}})}#K(){const e=Array.from(this.children);e.forEach(e=>{Object.defineProperty(e,"data-name",{value:e.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(e,"data-id",{value:e.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.handleSelectedItem()},0)}#X(){const e=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");e._attachOverlay=()=>{e.bringToFront()},e._detachOverlay=()=>{},e._enterModalState=()=>{}}#ee(){this.baseElement.renderer=(e,t,r)=>{e.innerHTML=r.item.outerHTML}}#te(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}init(){super.init?.(),this.getValidity=function(){return!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ee(),this.#te(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#X()}),S(this,this.renderItems.bind(this),{includeAttrs:["data"]}),A(this,this.#K.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",e=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:e.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"label-type"===e&&("floating"===r?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#re(e){return this.baseElement.items?.find(t=>t["data-id"]===e)}#oe(e,t){e===this.value&&t!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",e=>{e.stopImmediatePropagation()},{once:!0,capture:!0})}set value(e){const t=this.#re(e);this.#oe(e,t),e&&t?this.baseElement.selectedItem=t:!t&&this.allowCustomValue?this.baseElement.value=e:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get autoOpenDisabled(){return"true"===this.getAttribute("auto-open-disabled")}})(we({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>{return`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${e=co.cssVarList,`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`}\n\t\t\n vaadin-combo-box::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t${((e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`)("vaadin-combo-box")}\n\t\t${(e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`)("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n\n vaadin-combo-box::part(toggle-button),\n vaadin-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-combo-box[hide-toggle-button="true"]::part(toggle-button) {\n display: none;\n }\n\n vaadin-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n \n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n vaadin-combo-box [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`;var e},excludeAttrsSync:["tabindex","size","data","loading","style"],componentName:Qr,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(Qr,co);const po=e=>{const t=c.A.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg")},uo=k("image"),ho=["src","src-dark"];class mo extends(ue({componentName:uo,baseSelector:"slot"})){static get observedAttributes(){return ho}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",N("\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n :host > slot {\n width: 100%;\n height: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n ::slotted(*) {\n width: 100%;\n\t\t\t}\n\n .hidden {\n display: none;\n }\n ",this)}init(){super.init?.(),this.toggleVisibility(this.src)}onThemeChange(){this.renderImage()}toggleVisibility(e){e?this.classList.remove("hidden"):this.classList.add("hidden")}get altText(){return this.getAttribute("alt")||""}get legacySrc(){return this.getAttribute("src")}get themeSrc(){return this.getAttribute(`src-${this.currentThemeName}`)}get src(){return this.themeSrc||this.legacySrc}updateFillColor(e){[e,...e.querySelectorAll("*[fill]")].forEach(e=>{e.setAttribute("fill",`var(${go.cssVarList.fill}, ${e.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.src),(async(e,t)=>{try{let r;if((e=>e.startsWith("data:image/svg+xml;base64,"))(e)){const t=atob(e.slice(26));r=po(t)}else if("svg"===(e=>{const t=e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return t?t[1]:null})(e)){const t=await fetch(e),o=await t.text();r=po(o)}else r=((e,t)=>{const r=document.createElement("img");return r.setAttribute("src",e),r.setAttribute("alt",t),r})(e,t);return r.style.setProperty("max-width","100%"),r.style.setProperty("max-height","100%"),r}catch{return null}})(this.src,this.altText).then(e=>{this.innerHTML="",e&&(this.updateFillColor(e),this.appendChild(e))})}shouldRender(e){const t=this.getAttribute(e);return this.src===t}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&this.shouldRender(e)&&this.renderImage()}}const go=I(ne({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),ae,se)(mo),bo=k("icon"),yo=I(ne({mappings:{fill:[{},{property:go.cssVarList.fill}]}}),ae,se)(we({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n }\n ",excludeAttrsSync:["tabindex","class","style"],componentName:bo})),fo=k("button"),{host:vo,label:xo,slottedIcon:Co}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let wo;const Io=I(ne({mappings:{hostWidth:{property:"width"},hostHeight:{property:"height"},hostDirection:{...vo,property:"direction"},fontSize:{},fontFamily:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-right",fallback:"0.875em"},{property:"padding-left",fallback:"0.875em"}],labelTextColor:{property:"color"},iconColor:{selector:()=>"::slotted(*)",property:yo.cssVarList.fill},labelTextDecoration:{...xo,property:"text-decoration"},labelSpacing:{...xo,property:"gap"},textAlign:{...xo,property:"justify-content",fallback:"center"},iconSize:[{...Co,property:"width"},{...Co,property:"height"}]}}),e=>class extends e{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}},ae,se)(we({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${wo}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Io.cssVarList.outlineWidth}) + var(${Io.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Io.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Io.cssVarList.hostHeight}) - var(${Io.cssVarList.outlineWidth}) - var(${Io.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Io.cssVarList.hostWidth}) - var(${Io.cssVarList.outlineWidth}) - var(${Io.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style"],componentName:fo})),{color:Mo,fontSize:So}=Io.cssVarList;wo=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${Mo});\n\t\ttop: calc(50% - (var(${So}) / 2));\n\t\tleft: calc(50% - (var(${So}) / 2));\n\t\tborder-width: calc(var(${So}) / 10);\n\t\twidth: var(${So});\n\t\theight: var(${So});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"]) ::part(prefix),\n\t:host([loading="true"]) ::part(label) {\n\t\tvisibility: hidden;\n\t}\n`,customElements.define(fo,Io);const Ao=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Eo=Ao[0],To="YYYY-MM-DD",ko="/",zo=["January","February","March","April","May","June","July","August","September","October","November","December"],Lo=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],No={id:"month",min:1,max:12,placeholder:"MM"},Do={id:"day",min:1,max:31,placeholder:"DD"},Vo={id:"year",min:0,max:9999,placeholder:"YYYY"},Po=1900,Bo=2099,Ro=(e,t)=>{if("number"==typeof e)return new Date(e);if("string"==typeof e){const r=new Date(e.replace(/-/g,"/"));return t?new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())):new Date(r)}return new Date},Oo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},jo=e=>{const t=(e=>`^${e.split(ko).map(e=>Oo[e]).join("\\D")}$`)(e),r=(e=>{const t=e.split(ko);return e=>{const r={};return t.forEach((t,o)=>{r[t]=e[o+1]}),[r.YYYY,r.MM,r.DD]}})(e),o=new RegExp(t);return{pattern:t,validate:e=>o.test(e),getDate:e=>((e,t,r)=>{const o=t.exec(e);if(!o)return null;const[i,n,a]=r(o);return Ro([i,n,a].join(ko))})(e,o,r)}},Fo=Object.fromEntries(Ao.map(e=>[e,jo(e)])),Wo=e=>!Number.isNaN(Number(e)),_o=e=>{const t=Ro(e);return[t.getFullYear(),t.getMonth()+1,t.getDate()]},$o=(e,t)=>{const[r,o,i]=_o(e),n={DD:String(i).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(r)};return t.replace(/DD|MM|YYYY/g,e=>n[e])},Ho=()=>Ro().getTime(),qo=e=>Ro(e).getFullYear().toString(),Yo=e=>(Ro(e).getMonth()+1).toString(),Uo=(e,t)=>t?new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).getTime():e.getTime(),Go=(e,t)=>Array.isArray(e)&&e.length===t&&e.filter(Boolean).length===t,Zo=({label:e,dataId:t,dataName:r})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${t}"\n\t\tdata-name="${r}"\n\t>\n\t\t\t${e}\n\t</div>\n`,Qo=(e=zo)=>e.map((e,t)=>Zo({label:e,dataId:t+1,dataName:e})).join(""),Jo=(e,t)=>{const[r,o]=_o(t),[i,n]=_o(e);return i===r&&n===o},Ko=(e,t,r)=>(e.addEventListener("input",t),e.addEventListener("focusout",r),e),Xo=He("calendar"),ei=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],ti=["calendar-label-submit","calendar-label-cancel"],ri=er({componentName:Xo,baseSelector:"div"}),{calendar:oi,day:ii,dayEntry:ni,currentDay:ai,selectedDay:si,disabledDay:li,weekday:di,topNav:ci,topNavSelectors:pi,bottomNav:ui,navPrev:hi,navNext:mi,navPrevRTL:gi,navNextRTL:bi,yearInput:yi,monthInput:fi}={calendar:{selector:()=>".calendar"},topNav:{selector:()=>".nav.top-nav"},topNavSelectors:{selector:()=>".nav.top-nav .selectors > span"},bottomNav:{selector:()=>".nav.bottom-nav"},day:{selector:()=>".day"},dayEntry:{selector:()=>".day-entry"},currentDay:{selector:()=>".day-entry[data-current-day] .day"},selectedDay:{selector:()=>".day-entry[data-selected] .day"},disabledDay:{selector:()=>'.day-entry[data-disabled="true"] .day'},weekday:{selector:()=>".weekday"},navPrev:{selector:()=>".nav-prev"},navNext:{selector:()=>".nav-next"},navPrevRTL:{selector:()=>':host([st-host-direction="rtl"]) .nav-prev'},navNextRTL:{selector:()=>':host([st-host-direction="rtl"]) .nav-next'},yearInput:{selector:()=>".year-input"},monthInput:{selector:()=>".month-input"}},vi=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...ci,property:"padding-top"},{...ci,property:"padding-bottom"}],topNavHorizointalPadding:[{...ci,property:"padding-right"},{...ci,property:"padding-left"}],topNavAlignment:{...ci,property:"justify-content"},topNavGap:{...ci,property:"gap"},topNavSelectorsGap:{...pi,property:"gap"},bottomNavVerticalPadding:[{...ui,property:"padding-top"},{...ui,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...ui,property:"padding-right"},{...ui,property:"padding-left"}],bottomNavAlignment:{...ui,property:"justify-content"},bottomNavGap:{...ui,property:"gap"},navMarginBottom:{...ci,property:"margin-bottom"},calendarPadding:[{...oi,property:"padding-bottom"},{...oi,property:"padding-right"},{...oi,property:"padding-left"}],navBorderBottomWidth:{...ci,property:"border-bottom-width"},navBorderBottomColor:{...ci,property:"border-bottom-color"},navBorderBottomStyle:{...ci,property:"border-bottom-style"},weekdayFontSize:{...di,property:"font-size"},weekdayFontWeight:{...di,property:"font-weight"},currentDayBorderColor:{...ai,property:"border-color"},currentDayBorderWidth:{...ai,property:"border-width"},currentDayBorderStyle:{...ai,property:"border-style"},dayHeight:{...ni,property:"height"},daySize:[{...ii,property:"height"},{...ii,property:"width"}],dayPadding:{...ii,property:"padding"},dayRadius:{...ii,property:"border-radius"},dayTextAlign:{...ii,property:"text-align"},dayBlockAlign:{...ii,property:"margin"},dayTextColor:{...ii,property:"color"},dayFontWeight:{...ii,property:"font-weight"},dayBackgroundColor:{...ii,property:"background-color"},dayCursor:{...ii,property:"cursor"},dayFontSize:{...ii,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...si,property:"color"},daySelectedBackgroundColor:{...si,property:"background-color"},dayDisabledTextdColor:{...li,property:"color"},yearInputWidth:{...yi,property:"width"},monthInputWidth:{...fi,property:"width"},navButtonSize:[{...hi,property:"width"},{...hi,property:"height"},{...mi,property:"width"},{...mi,property:"height"}],navButtonCursor:[{...hi,property:"cursor"},{...mi,property:"cursor"}],navButtonRotation:[{...gi,property:"transform"},{...bi,property:"transform"}],navButtonOpacity:[{...hi,property:"opacity"},{...mi,property:"opacity"}]}}),Nt,Dt)(class extends ri{static get observedAttributes(){return[].concat(ri.observedAttributes||[],ei,ti)}preview;epoch;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <nav class="nav top-nav">\n <div class="nav-prev">\n </div>\n <div class="selectors"></div>\n <div class="nav-next">\n </div>\n </nav>\n <div class="calendar"></div>\n <nav class="nav bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>\n </nav>\n </div>\n ',N(`\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n [data-toggle-calendar] {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n }\n\n [data-disabled="true"] {\n pointer-events: none;\n }\n\n .calendar .day {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n\n .selectors,\n .selectors span {\n display: flex;\n justify-content: center;\n }\n\n descope-button {\n padding: 0;\n ${Io.cssVarList.horizontalPadding}: 0;\n ${Io.cssVarList.verticalPadding}: 0;\n ${Io.cssVarList.outlineWidth}: 0;\n }\n\n .combo-box-item {\n display:flex;\n flex-direction: column;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n `,this)}set value(e){if(!e)return;const t=Ro(e).getTime();Wo(t)&&t!==this.epoch&&(this.epoch=t,this.renderCalendar())}get value(){return this.epoch?$o(this.epoch,To):""}get isSelectedView(){return Jo(this.preview,this.epoch)}get isTodayView(){return Jo(Ho(),this.preview)}get monthNames(){return(e=>{const t=e?.split(",");return Go(t,12)?t:zo})(this.getAttribute("calendar-months"))}get weekdayNames(){return(e=>{const t=e?.split?.(",");return Go(t,7)?t:Lo})(this.getAttribute("calendar-weekdays"))}get hasYearValue(){return!!this.yearInput.value}get hasMonthValue(){return!!this.monthInput.value}get yearsRange(){const e=this.getAttribute("years-range")?.split("-");if(2===e?.length){const[t,r]=e.map(Number);if(t<=r)return[t,r]}const t=Ro().getFullYear();return[t,t+100]}init(){super.init?.(),this.initCalendar(),this.renderCalendar()}initCalendar(){this.calendar=this.shadowRoot.querySelector(".calendar"),this.navPrevEle=this.shadowRoot.querySelector(".nav-prev"),this.navNextEle=this.shadowRoot.querySelector(".nav-next"),this.submitButton=this.shadowRoot.querySelector(".submit-button"),this.cancelButton=this.shadowRoot.querySelector(".cancel-button"),this.initInputs(),this.initNav(),this.addEventListener("day-changed",()=>this.submitButton.removeAttribute("disabled")),this.submitButton.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}initInputs(){const e=(()=>{const e=document.createElement("span");return e.innerHTML=`\n <descope-combo-box\n label-type="static"\n bordered="true"\n item-label-path="data-name"\n item-value-path="data-id"\n class="month-input"\n >\n ${Qo()}\n </descope-combo-box>\n <descope-combo-box\n allow-custom-value="true"\n label-type="static"\n bordered="true"\n item-label-path="data-name"\n item-value-path="data-id"\n class="year-input"\n no-empty-value="true"\n >\n </descope-combo-box>\n `,e})(this.monthNames,this.yearsRange);this.shadowRoot.querySelector(".selectors").appendChild(e),this.monthInput=Ko(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=Ko(this.shadowRoot.querySelector(".year-input"),this.onYearChange.bind(this),this.onYearInputBlur.bind(this)),[this.monthInput,this.yearInput].forEach(e=>Ye(this,e,{includeAttrs:["disabled","size","st-host-direction"]}))}initNav(){this.navPrevEle.addEventListener("click",this.navPrevMonth.bind(this)),this.navNextEle.addEventListener("click",this.navNextMonth.bind(this)),this.cancelButton.addEventListener("click",this.onCancel.bind(this)),this.submitButton.addEventListener("click",this.onSubmit.bind(this)),[this.navPrevEle,this.navNextEle].forEach(e=>Ye(this,e,{includeAttrs:["size"]})),this.shadowRoot.querySelector(".nav-next").innerHTML='\n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.27283 6.78069C8.87912 6.34164 8.91587 5.66655 9.35492 5.27283C9.79397 4.87912 10.4691 4.91587 10.8628 5.35492C10.8628 5.35492 16.0022 10.9543 16.366 11.36C16.7298 11.7657 16.7298 12.2392 16.366 12.6448L10.8628 18.6451C10.4691 19.0841 9.79397 19.1209 9.35492 18.7272C8.91587 18.3334 8.87912 17.6584 9.27283 17.2193L14.1368 12L9.27283 6.78069Z" fill="#808080"/>\n</svg>',this.shadowRoot.querySelector(".nav-prev").innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.7272 17.2193C15.1209 17.6584 15.0841 18.3334 14.6451 18.7272C14.206 19.1209 13.5309 19.0841 13.1372 18.6451C13.1372 18.6451 7.99776 13.0457 7.63399 12.64C7.27023 12.2343 7.27023 11.7608 7.63399 11.3552L13.1372 5.35492C13.5309 4.91587 14.206 4.87912 14.6451 5.27283C15.0841 5.66655 15.1209 6.34164 14.7272 6.78069L9.86322 12L14.7272 17.2193Z" fill="#808080"/>\n</svg>'}onSubmit(){this.isDisabled||this.value&&this.dispatchEvent(new CustomEvent("date-submit",{detail:Ro(this.preview)}))}onCancel(){this.isDisabled||(this.dispatchEvent(new CustomEvent("cancel")),this.dispatchEvent(new CustomEvent("date-cancel")),this.clearSelectedDay())}clearSelectedDay(){this.getSelectedDayEle()?.removeAttribute("data-selected"),this.submitButton.setAttribute("disabled","true"),this.epoch=""}updateInputs(){if(this.yearInput&&this.monthInput){const e=this.preview||Ho(),t=qo(e),r=Yo(e);this.monthInput.value=r,setTimeout(()=>{this.yearInput.baseElement.value=t})}}renderCalendar(){const e=Ro(this.preview||Ho()).getTime(),[t,r]=_o(e);this.calendar&&(this.calendar.innerHTML=((e,t,r)=>{const o=((e,t)=>new Date(e,t,0).getDate())(e,t),i=new Date(e,t-1,1).getDay();let n="<table>";n+=`<thead><tr>${r.reduce((e,t)=>`${e}<th><span class="weekday">${t}</span></th>`,"")}</tr></thead>`,n+="<tbody>",n+="<tr>";for(let e=0;e<i;e++)n+="<td></td>";let a=i;for(let e=1;e<=o;e++)7===a&&(a=0,n+="</tr><tr>"),n+=`\n <td\n data-date-day="${e}"\n class="day-entry">\n <span class="day" data-date-day=${e}>\n ${e}\n </span>\n </td>\n `,a++;for(;a<7;)n+="<td></td>",a++;return n+="</tr></tbody></table>",n})(t,r,this.weekdayNames.map(e=>e.substring(0,3)))),Array.from(this.calendar?.querySelectorAll(".day-entry .day")||[]).forEach(e=>e.addEventListener("click",this.onDayChange.bind(this))),this.updateInputs(),this.setSelectedDay(),this.setCurrentDay()}onDayChange(e){if(this.isDisabled)return;const t=Ro(this.preview);t.setDate(Number(e.target.getAttribute("data-date-day"))),this.value=$o(t.getTime(),To),this.dispatchEvent(new CustomEvent("day-changed",{detail:t}))}onYearChange(e){if(!e.target.value)return;const t=Ro(this.preview);t.setFullYear(Number(e.target.value.trim())),this.preview=t.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("year-changed",{detail:t}))}onMonthChange(e){if(!e.target.value)return;const t=Ro(this.preview);t.setMonth(Number(e.target.value)-1),this.preview=t.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("month-changed",{detail:t}))}onYearInputBlur(e){this.yearInput.baseElement.value=e.target.value||qo(this.preview)}onMonthInputBlur(e){this.monthInput.baseElement.value=e.target.value||Yo(this.preview)}getSelectedDayEle(){const e=Ro(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${e}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${Ro().getDate()}"]`)}clearSelectedDays(){const e=this.calendar?.querySelectorAll("[data-selected]");e&&e.forEach(e=>e.removeAttribute("data-selected"))}setSelectedDay(){this.clearSelectedDays(),this.value&&this.isSelectedView&&this.getSelectedDayEle().setAttribute("data-selected","true")}setCurrentDay(){if(this.isTodayView){const e=this.getCurrentDayEle(),t=this.getAttribute("calendar-label-today")||"Today";e?.setAttribute("data-current-day","true"),e?.setAttribute("title",t)}}navPrevMonth(){if(this.isDisabled)return;const e=(e=>{const t=Ro(e),r=t.getMonth();if(0===r){const e=t.getFullYear();t.setFullYear(e-1),t.setMonth(11)}else t.setMonth(r-1);return t})(this.preview);this.preview=e.getTime(),this.renderCalendar()}navNextMonth(){if(this.isDisabled)return;const e=(e=>{const t=Ro(e),r=t.getMonth();if(11===r){const e=t.getFullYear();t.setFullYear(e+1),t.setMonth(0)}else t.setMonth(r+1);return t})(this.preview);this.preview=e.getTime(),this.renderCalendar()}clearValue(){this.epoch="",this.value="",this.removeAttribute("preview"),this.submitButton.setAttribute("disabled","true")}onInitialValueChange(e){if(this.value)return;const t=Ro(e).getTime();Wo(t)?(this.epoch=t,this.preview=t):this.clearValue()}onYearsRangeChange(){setTimeout(()=>{this.yearInput&&(this.yearInput.innerHTML=(e=>{const[t,r]=e,o=[];for(let e=t;e<=r;e++)o.push(e);return o})(this.yearsRange).map(e=>Zo({label:e,dataId:e,dataName:e})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=Qo(this.monthNames))})}onSubmitLabelChange(e){this.submitButton&&(this.submitButton.textContent=e||"Done")}onCancelLabelChange(e){this.cancelButton&&(this.cancelButton.textContent=e||"Cancel")}onInitialMonthChange(e){const t=qo(this.preview);this.preview=Ro(`${t}/${e}/1`).getTime()}onInitialYearChange(e){const t=Yo(this.preview);this.preview=Ro(`${e}/${t}/1`).getTime()}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),t!==r&&(ti.includes(e)?("calendar-label-submit"===e&&this.onSubmitLabelChange(r),"calendar-label-cancel"===e&&this.onCancelLabelChange(r)):(r&&"initial-value"===e&&this.onInitialValueChange(r),r&&"initial-month"===e&&this.onInitialMonthChange(r),r&&"initial-year"===e&&this.onInitialYearChange(r),"years-range"===e&&this.onYearsRangeChange(Number(r)),"calendar-months"===e&&this.onMonthNamesChange(),"calendar-label-today"===e&&this.setCurrentDay(r),"disabled"===e&&setTimeout(()=>{this.cancelButton?.setAttribute("disabled","true"===r)}),this.renderCalendar()))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}});customElements.define(Xo,vi);const{host:xi,label:Ci,placeholder:wi,requiredIndicator:Ii,inputField:Mi,input:Si,inputMask:Ai,helperText:Ei,errorMessage:Ti,disabledPlaceholder:ki,inputDisabled:zi,inputIcon:Li,externalInput:Ni,externalInputDisabled:Di,externalPlaceholder:Vi,externalDisabledPlaceholder:Pi}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}};var Bi={fontSize:[{},xi],fontFamily:[Ci,Mi,Ei,Ti],labelFontSize:{...Ci,property:"font-size"},labelFontWeight:{...Ci,property:"font-weight"},labelTextColor:[{...Ci,property:"color"},{...Ii,property:"color"},{...Ci,property:"-webkit-text-fill-color"},{...Ii,property:"-webkit-text-fill-color"}],hostWidth:{...xi,property:"width"},hostMinWidth:{...xi,property:"min-width"},hostDirection:{...xi,property:"direction"},inputDirection:{...Si,property:"direction"},inputBackgroundColor:[{...Mi,property:"background-color"},{...Ai,property:"background-color"}],errorMessageTextColor:{...Ti,property:"color"},errorMessageIcon:{...Ti,property:"background-image"},errorMessageIconSize:{...Ti,property:"background-size"},errorMessageIconPadding:{...Ti,property:"padding-inline-start"},errorMessageIconRepeat:{...Ti,property:"background-repeat"},errorMessageIconPosition:{...Ti,property:"background-position"},errorMessageFontSize:{...Ti,property:"font-size"},helperTextColor:{...Ei,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Mi,property:"color"},{...zi,property:"-webkit-text-fill-color"},{...Di,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Si,property:"caret-color"},{...Ni,property:"caret-color"}],labelRequiredIndicator:{...Ii,property:"content"},inputBorderColor:{...Mi,property:"border-color"},inputBorderWidth:{...Mi,property:"border-width"},inputBorderStyle:{...Mi,property:"border-style"},inputBorderRadius:{...Mi,property:"border-radius"},inputHeight:{...Mi,property:"height"},inputHorizontalPadding:[{...Si,property:"padding-left"},{...Si,property:"padding-right"},{...Ni,property:"padding-left"},{...Ni,property:"padding-right"}],inputOutlineColor:{...Mi,property:"outline-color"},inputOutlineStyle:{...Mi,property:"outline-style"},inputOutlineWidth:{...Mi,property:"outline-width"},inputOutlineOffset:{...Mi,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Si,property:"text-align"},{...Ni,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Vi,property:"color"},{...wi,property:"color"},{...ki,property:"-webkit-text-fill-color"},{...Pi,property:"-webkit-text-fill-color"}],labelPosition:{...Ci,property:"position"},labelTopPosition:{...Ci,property:"top"},labelHorizontalPosition:[{...Ci,property:"left"},{...Ci,property:"right"}],inputTransformY:{...Ci,property:"transform"},inputTransition:{...Ci,property:"transition"},marginInlineStart:{...Ci,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Vi,property:"opacity"}],inputVerticalAlignment:[{...Mi,property:"align-items"},{...Ni,property:"align-items"}],valueInputHeight:[{...Si,property:"height"},{...Ni,property:"height"}],valueInputMarginBottom:[{...Si,property:"margin-bottom"},{...Ni,property:"margin-bottom"}],inputIconOffset:[{...Li,property:"margin-right"},{...Li,property:"margin-left"}],inputIconSize:{...Li,property:"font-size"},inputIconColor:{...Li,property:"color"}};const Ri=He("text-field"),Oi=["type","label-type","copy-to-clipboard"],ji=Be(Lt({mappings:Bi}),Nt,Ut({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Dt,e=>class extends e{static get observedAttributes(){return Oi.concat(e.observedAttributes||[])}icon;init(){super.init?.()}renderCopyToClipboard(e){if(!e)return void this.icon?.remove();const t={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},r={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"};this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",...t}),this.baseElement.appendChild(this.icon),this.icon.addEventListener("click",()=>{navigator.clipboard.writeText(this.value),Object.assign(this.icon,r),setTimeout(()=>{Object.assign(this.icon,t)},5e3)})}onLabelClick(){this.focus()}attributeChangedCallback(e,t,r){super.attributeChangeCallback?.(e,t,r),"type"===e&&this.baseElement._setType(r),t!==r&&("label-type"===e?"floating"===r?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===e&&this.renderCopyToClipboard("true"===r))}})(Ft({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${ji.cssVarList.inputOutlineWidth}) + var(${ji.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {\n opacity: 1;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n ${ht("vaadin-text-field")}\n\t\t\t${at(ji.cssVarList)}\n\t\t\t${ut("vaadin-text-field",ji.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-text-field vaadin-icon {\n align-self: center;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ri}));customElements.define(Ri,ji);class Fi{#V=Object.freeze([]);constructor({id:e,min:t,max:r,placeholder:o},i){this.id=e,this.min=t,this.max=r,this.placeholder=o,this.onChange=i}get data(){return this.#V}set data(e){this.#V=Object.freeze(e),this.onChange?.()}get#ie(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(e){this.data=e.toString().split("")}add(e){let t=this.data;return t=[...t,e],Number(t.join(""))>this.max?t=[e]:this.length<t.length&&(t=t.slice(1,t.length)),this.data=t,e}del(){this.data.filter(e=>"0"!==e).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(e){this.replaceValue(this.#ie<this.max?Math.max(this.#ie+(e||1),this.min):this.min)}dec(e){this.replaceValue(this.#ie>this.min?Math.min(this.#ie-(e||1),this.max):this.max)}isInRange(e){return e>=this.min&&e<=this.max}replaceValue(e){this.isInRange(e)&&(this.data=e.toString().padStart(this.length,0).split(""))}setMin(e){this.min=Number(e)}setMax(e){this.max=Number(e)}}const Wi=He("date-field"),_i=er({componentName:Wi,baseSelector:"vaadin-popover"}),$i=["format","opened","initial-value","readonly","disable-calendar","utc-time"],Hi=["years-range","calendar-months","calendar-weekdays"],qi=[...$i,...Hi],Yi=ji.cssVarList,{host:Ui,input:Gi,inputEleRTL:Zi,toggleButton:Qi,overlay:Ji,backdrop:Ki}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-calendar"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},Xi=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{iconMargin:{...Qi,property:"margin-inline-end"},hostWidth:{...Ui,property:"width"},hostDirection:{...Ui,property:"direction"},textAlign:{...Gi,property:"text-align"},rtlInputDirection:{...Zi,property:Yi.inputDirection},rtlInputAlignment:{...Zi,property:Yi.inputTextAlign},overlayGap:{property:()=>Xi.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Xi.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Xi.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Xi.overlayBoxShadow},overlayOutlineWidth:{property:()=>Xi.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Xi.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Xi.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:ji.componentName,property:ji.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:ji.componentName,property:ji.cssVarList.errorMessageFontSize}}}),Zt({name:"overlay",selector:"",mappings:{marginTop:{...Ji,property:"margin-top"},backgroundColor:{...Ji},backdropBackgroundColor:{...Ki,property:"background-color"},backdropPointerEvents:{...Ki,property:"pointer-events"},padding:{...Ji},boxShadow:{...Ji},outlineWidth:{...Ji},outlineColor:{...Ji},outlineStyle:{...Ji}}}),Nt,Dt)(class extends _i{epoch="";format=Eo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.updateEpoch("");else{const e=Fo[this.format].getDate(this.inputElement.value);this.updateEpoch(Uo(e,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#ne()};updateEpoch(e){Number.isNaN(e)||!e.toString()?.length?this.epoch="":this.epoch=Uo(Ro(e,this.isUtcTime),this.isUtcTime)}dateCounters=[new Fi(No,this.onDateCounterChange.bind(this)),new Fi(Do,this.onDateCounterChange.bind(this)),new Fi(Vo,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(_i.observedAttributes||[],qi)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-calendar">\n \n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>\n</svg>\n\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',N('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-calendar {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-calendar {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-calendar")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get displayValueEpoch(){const e=Fo[this.format].getDate(this.inputElement.value);return Wo(e?.getTime())?e.getTime():null}get sortedCounters(){return this.format.split(ko).map(e=>this.dateCounters.find(t=>t.placeholder===e))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(e=>e.stringValue).join(ko)}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay.shadowRoot?.querySelector("#backdrop")}get calendar(){return this.overlay?.querySelector("descope-calendar")}get isRTL(){const e=getComputedStyle(this.baseElement).getPropertyValue("direction");return e?"rtl"===e:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(e){let t=parseInt(e,10);Number.isNaN(t)?(this.updateEpoch(""),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(t),this.updateDateCounters(Ro(t)))}get isCountersEmpty(){return this.dateCounters.every(e=>e.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(e=>!e.isInRange(e.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const e=this.inputElement.baseElement.inputElement;return e.value.length===e.selectionStart+e.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#ne(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=$o(Ro(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#X()},0)}initInputElement(){this.inputElement.getValidity=this.getValidity.bind(this),this.inputElement.baseElement.checkValidity=this.checkValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.onPopoverToggle.bind(this)),this.inputElement.addEventListener("focus",this.onFocus.bind(this)),this.inputElement.addEventListener("blur",this.onBlur.bind(this)),this.inputElement.addEventListener("click",this.handleMouseCaretPositionChange.bind(this)),this.inputElement.addEventListener("keydown",this.handleKeyboard.bind(this)),this.inputElement.addEventListener("beforeinput",this.handleInput.bind(this)),this.inputElement.addEventListener("pointerdown",this.onPointerDown.bind(this)),this.inputElement.addEventListener("paste",this.onPaste.bind(this)),Ye(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","bordered","data-errormessage-value-missing","data-errormessage-pattern-mismatch","data-errormessage-range-underflow","data-errormessage-range-overflow","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}handleInput(e){var t;e.preventDefault(),this.handleSelectAll(),e.data&&(t=e.data,String(t||"").trim()&&!Number.isNaN(Number(t)))?(this.parseDigits(e.data),this.updateCountersDisplay()):e.inputType&&this.handleNavKeys(e)}initPopover(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#ae.bind(this),this.baseElement.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#se;#ae(e){e.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),e.appendChild(this.#le()),(e=>{const t=new CSSStyleSheet;t.insertRule(":host{display:block!important;}"),e?.shadowRoot?.adoptedStyleSheets?.push(t)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),e.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#de(e),e.style.setProperty("visibility","visible"),this.updateCalendarView(e)},100)}#de(){const e=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#se?.remove();const t=document.body.getBoundingClientRect(),r=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),i=this.isRTL?"right":"left",n=r[i]-o[i],a=o.left,s=t.width-o.right;let l;l=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),a),N(`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `,e)}#le(){const e=document.createElement("span");e.innerHTML="<descope-calendar></descope-calendar>";const t=e.querySelector("descope-calendar");return t.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),t.addEventListener("cancel",this.closePopover.bind(this)),e}#X(){this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{}}onPopoverToggle(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disableCalendar||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}getCounterById(e){return this.dateCounters.find(t=>t.id===e)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const e=Ro(this.calendar.value);this.value=Uo(e,this.isUtcTime),this.getCounterById("year").replaceValue(e.getFullYear()),this.getCounterById("month").replaceValue(e.getMonth()+1),this.getCounterById("day").replaceValue(e.getDate()),this.#ne()}this.closePopover()}updateCalendarView(){const e=Wo(Ro(this.inputElement.value||"").getTime())&&Fo[this.format].validate(this.inputElement.value);this.displayValueEpoch||e?this.calendar.setAttribute("initial-value",$o(this.displayValueEpoch||this.epoch,To)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",$o(Ho(),To))),Ye(this,this.calendar,{includeAttrs:["st-host-direction","readonly","initial-month","initial-year","years-range","calendar-label-submit","calendar-label-cancel","calendar-months","calendar-weekdays","calendar-weekdays-short"]})}onPointerDown(e){setTimeout(()=>this.handleMouseCaretPositionChange(e),150)}onFocus(){this.isReadOnly||setTimeout(()=>this.resetDisplay())}resetDisplay(){this.inputElement.value||(this.inputElement.value=this.format),this.selectFirstCounter(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}onBlur(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}clearInputEle(){this.inputElement.value=""}onFormatUpdate(e){Object.keys(Fo).includes(e)&&(this.format=e,this.updateFormatPattern())}updateFormatPattern(){const e=this.getAttribute("format")||this.format||Eo;this.setAttribute("type","date"),this.setAttribute("pattern",Fo[e].pattern)}parseDigits(e){this.activeCounter.add(e),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(e){const[t,r]=this.sortedCounters.map(e=>e.length);return[e<=t,e>=t&&e<=t+r+1,e>=t+r+2].indexOf(!0)}setSelectedCounterByCaretPosition(e){this.selectedCounterIdx=this.getCounterIdx(e.target?.selectionStart||this.inputElement.selectionStart)}selectFirstCounter(){this.selectedCounterIdx=0}selectNextCounter(){this.selectedCounterIdx<this.dateCounters.length&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx+1,2))}selectPrevCounter(){this.selectedCounterIdx>0&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx-1,1))}setInputSelectionRange(){this.selectedCounterIdx<0||setTimeout(()=>{const e=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((e,t)=>e+t.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(e,e+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(e=>e.clear())}updateDateCounters(e){this.dateCounters.forEach(t=>{switch(t.id){case No.id:t.set(this.isUtcTime?e.getUTCMonth()+1:e.getMonth()+1);break;case Vo.id:t.set(this.isUtcTime?e.getUTCFullYear():e.getFullYear());break;case Do.id:t.set(this.isUtcTime?e.getUTCDate():e.getDate())}})}handleKeyboard(e){e.metaKey||e.ctrlKey?"x"===e.key.toLowerCase()&&this.onCut(e):(this.handleSelectAll(),"ArrowUp"===e.key?this.activeCounter.inc():"ArrowDown"===e.key?this.activeCounter.dec():"ArrowRight"===e.key?this.selectNextCounter():"ArrowLeft"===e.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(e){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===e.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const e=this.activeCounter;e.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):e.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(e){this.opened||(e.preventDefault(),this.setSelectedCounterByCaretPosition(e),this.setInputSelectionRange())}onInitialValueChange(e){this.value||setTimeout(()=>{Number.isNaN(parseInt(e,10))||(this.value=Number(e))})}togglePopoverAccess(e){e?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("disable-calendar"===e&&this.togglePopoverAccess("true"!==r),$i.includes(e)?(r&&"format"===e&&this.onFormatUpdate(r),"initial-value"===e&&this.onInitialValueChange(r)):Hi.includes(e)&&(r?this.calendar?.setAttribute(e,r):this.calendar?.removeAttribute(e)))}isInvalidDate(){const e=this.getCounterById("year"),t=e.numberValue>Bo||e.numberValue<Po,r=Object.entries(this.getDateVals()).some(([e,t])=>{const r=this.getCounterById(e);return!t||r.numberValue!==t});return t||r}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersOutOfRange||this.isInvalidDate()?{patternMismatch:!0}:{}}getDateVals(){const e={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return e;try{const t=this.isUtcTime?new Date(this.epoch):Ro(this.epoch);this.isUtcTime?(e.month=t.getUTCMonth()+1,e.day=t.getUTCDate(),e.year=t.getUTCFullYear()):(e.month=t.getMonth()+1,e.day=t.getDate(),e.year=t.getFullYear())}catch(e){}return e}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(e){e.preventDefault(),this.isSelectAll?(this.#ce(this.countersValue),this.resetToInitialState()):(this.#ce(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ce(e){try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy date value:",e)}}onPaste(e){e.preventDefault();const t=(e.clipboardData||window.clipboardData).getData("Text"),r=((e,t)=>{const r=e.trim?.();return r?Fo[t].getDate(r):null})(t,this.format);if(r)this.value=Uo(r,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const e=Number(t);e&&this.activeCounter.min<=e&&this.activeCounter.max>=e&&(this.activeCounter.set(String(e)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(Wi,Xi);const en=He("divider");class tn extends(Ot({componentName:en,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div>\n\t\t\t\t<descope-text>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</descope-text>\n\t\t\t</div>\n\t\t",N("\n \t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t:host > div::before,\n\t\t\t\t:host > div::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t\tdescope-text {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t\t:host(:empty) descope-text {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t\t:host([vertical=\"true\"]) div {\n\t\t\t\t\twidth: fit-content;\n\t\t\t\t}\n ",this),this.textComponent=this.shadowRoot.querySelector("descope-text"),Ye(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const rn=vr.cssVarList,{host:on,before:nn,after:an,text:sn}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},ln=Be(Lt({mappings:{hostWidth:{...on,property:"width"},hostPadding:{...on,property:"padding"},hostDirection:{...sn,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...sn,property:rn.textAlign},labelTextWidth:{...sn,property:"width"},labelTextMaxWidth:{...sn,property:"max-width"},labelTextVerticalSpacing:[{...sn,property:"padding-top"},{...sn,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...sn,property:"padding-right"},{...sn,property:"padding-left"}],stripeColor:[{...nn,property:"background-color"},{...an,property:"background-color"}],stripeHorizontalThickness:[{...nn,property:"height"},{...an,property:"height"}],stripeVerticalThickness:[{...nn,property:"width"},{...an,property:"width"}],stripeColorOpacity:[{...nn,property:"opacity"},{...an,property:"opacity"}]}}),Nt,Dt)(tn);customElements.define(en,ln);const dn=He("email-field"),cn=Be(Lt({mappings:Bi}),Nt,Kt({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),Ut({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Dt,e=>class extends e{init(){super.init?.(),this.baseElement.setAttribute("pattern","^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$"),this.getAttribute("autocomplete")||this.setAttribute("autocomplete","username"),this.createExternalInput()}})(Ft({slots:["","suffix"],wrappedEleName:"vaadin-email-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${cn.cssVarList.inputOutlineWidth}) + var(${cn.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${ht("vaadin-email-field")}\n\t\t\t${at(cn.cssVarList)}\n\t\t\t${ut("vaadin-email-field",cn.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-email-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n :host ::slotted(*) {\n -webkit-mask-image: none;\n }\n\n vaadin-email-field[external-input="true"] > input:not(:placeholder-shown) {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:dn}));customElements.define(dn,cn);const pn=({componentName:e,varName:t,fallbackVarName:r})=>{let o;class i extends(Ot({componentName:e,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div></div>\n\t\t\t",N(`\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t\tmargin: auto;\n\t\t\t\t\t${o}\n\t\t\t\t}\n `,this)}}const n=Be(Lt({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[t]:{property:"content"},[r]:{property:"content"}}}),Nt,Dt)(i);return o=`content: var(${n.cssVarList[t]}, var(${n.cssVarList[r]}));`,n},un=He("logo"),hn=pn({componentName:un,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(un,hn);const mn=He("totp-image"),gn=pn({componentName:mn,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(mn,gn);const bn=He("notp-image"),yn=pn({componentName:bn,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(bn,yn);const fn=He("number-field"),vn=Be(Lt({mappings:Bi}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt)(Ft({slots:["","prefix","suffix"],wrappedEleName:"vaadin-number-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${vn.cssVarList.inputOutlineWidth}) + var(${vn.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${ht("vaadin-number-field")}\n\t\t\t${at(vn.cssVarList)}\n\t\t\t${ut("vaadin-number-field",vn.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-number-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-number-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:fn}));customElements.define(fn,vn);const xn="--descope-input-mask-content",Cn="--descope-input-mask-display",wn="--descope-input-mask-fallback",In=e=>{e?.focus(),e?.setSelectionRange?.(1,1)},Mn=e=>e.replace(/\D/g,"")||"",Sn=(e,t)=>{t?(e.style.setProperty(xn,`"${t}"`),e.style.setProperty(Cn,"flex")):(e.style.removeProperty(xn),e.style.removeProperty(Cn))},An=He("passcode-internal"),En=["digits","loading"],Tn=["disabled","bordered","size","invalid","readonly","aria-labelledby"],kn=er({componentName:An,baseSelector:"div"}),zn=He("passcode"),Ln=["digits"],{host:Nn,digitField:Dn,label:Vn,requiredIndicator:Pn,internalWrapper:Bn,focusedDigitField:Rn,errorMessage:On}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${ji.componentName}[focused="true"]`},digitField:{selector:()=>ji.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},jn=ji.cssVarList,Fn=Yr.cssVarList,Wn=Be(Lt({mappings:{fontSize:[{...Dn,property:jn.fontSize},Nn],hostWidth:{property:"width"},hostDirection:{...Nn,property:"direction"},fontFamily:[Nn,{...Vn}],labelTextColor:[{...Vn,property:"color"},{...Vn,property:"-webkit-text-fill-color"},{...Pn,property:"color"},{...Pn,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Pn,property:"content"},errorMessageTextColor:{...On,property:"color"},errorMessageIcon:{...On,property:"background-image"},errorMessageIconSize:{...On,property:"background-size"},errorMessageIconPadding:{...On,property:"padding-inline-start"},errorMessageIconRepeat:{...On,property:"background-repeat"},errorMessageIconPosition:{...On,property:"background-position"},errorMessageFontSize:{...On,property:"font-size"},digitValueTextColor:{selector:ji.componentName,property:jn.inputValueTextColor},digitSize:[{...Dn,property:"height"},{...Dn,property:"width"}],digitPadding:{...Dn,property:jn.inputHorizontalPadding},digitTextAlign:{...Dn,property:jn.inputTextAlign},digitCaretTextColor:{...Dn,property:jn.inputCaretTextColor},digitSpacing:{...Bn,property:"gap"},digitOutlineColor:{...Dn,property:jn.inputOutlineColor},digitOutlineWidth:{...Dn,property:jn.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Rn,property:jn.inputOutlineColor},overlayOpacity:{...Bn,property:"opacity"},spinnerSize:{selector:Yr.componentName,property:Fn.spinnerSize}}}),Nt,Xt,Ut({proxyProps:["value","selectionStart"]}),Dt,e=>class extends e{static get observedAttributes(){return Ln.concat(e.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.(),N("\n .wrapper {\n display: flex;\n width: 100%;\n justify-content: space-between;\n direction: ltr;\n position: relative;\n }\n\n descope-text-field {\n direction: ltr;\n }\n\n .loader-container {\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n ",this);const e=document.createElement("template");e.innerHTML=`\n <${An}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${An}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(An),Ye(this,this.inputElement,{includeAttrs:["digits","size","loading","disabled"]})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"digits"===e&&(this.style["--passcode-digits-count"]=r)}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: calc(var(--passcode-digits-count) * 2em);\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n :host([loading="true"]) descope-passcode-internal .loader-container {\n display: block;\n }\n\n\t\t\tdescope-passcode-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal .wrapper {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: initial;\n\t\t\t\theight: 100%;\n\t\t\t\tjustify-content: space-between;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal descope-text-field {\n\t\t\t\tmin-width: 2em;\n\t\t\t\tmax-width: var(${jn.inputHeight});\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n /* safari */\n\t\t\tvaadin-text-field::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${ht("vaadin-text-field")}\n\t\t\t${dt("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:zn}));customElements.define(An,class extends kn{static get observedAttributes(){return En.concat(kn.observedAttributes||[])}constructor(){super(),this.innerHTML='\n\t\t<div class="wrapper"></div>\n\t\t<div class="loader-container">\n <descope-loader-radial size="xs" mode="primary"></descope-loader-radial>\n </div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper"),this.loaderContainer=this.querySelector(".loader-container")}renderInputs(){const e=[...Array(this.digits).keys()].map(e=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${e}\n\t\t\ttype="tel"\n\t\t\tautocomplete="one-time-code"\n\t\t\tinputMode="numeric"\n\t\t></descope-text-field>\n\t`);this.wrapperEle.innerHTML=e.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(e){e?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:e})=>e).join("")||""}set value(e){e!==this.value&&this.parseInputValue(this.inputs[0],Mn(e))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.pattern&&!new RegExp(this.pattern).test(this.value)?{patternMismatch:!0}:{}}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.inputs[0].focus()}),super.init?.(),this.renderInputs()}getInputIdx(e){return Number.parseInt(e.getAttribute("data-id"),10)}getNextInput(e){const t=this.getInputIdx(e),r=Math.min(t+1,this.inputs.length-1);return this.inputs[r]}getPrevInput(e){const t=this.getInputIdx(e),r=Math.max(t-1,0);return this.inputs[r]}fillDigits(e,t){for(let r=0;r<e.length;r+=1){t.value=e[r]??"";const o=this.getNextInput(t);if(o===t)break;t=o}In(t)}parseInputValue(e,t=""){const r=t.split("");r.length?this.fillDigits(r,e):e.value=""}initInputs(){this.inputs.forEach(e=>{N(`\n vaadin-text-field::part(input-field)::before {\n ${wn}: '';\n content: var(${xn}, var(${wn}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Cn}, none);\n align-items: center;\n justify-content: center;\n }`,e);const t=n()(t=>{this.parseInputValue(e,t),Sn(e)},0,{trailing:!0});e.addEventListener("input",r=>{e.value=Mn(e.value),e.value&&Sn(e,e.value[0]),setTimeout(()=>{"deleteContentBackward"===r?.inputType&&In(this.getPrevInput(e))}),t(e.value)}),e.onkeydown=({key:t})=>{"Backspace"===t?e.value?e.setSelectionRange(1,1):setTimeout(()=>In(this.getPrevInput(e)),0):1===t.length&&(e.value="")},Ye(this,e,{includeAttrs:Tn}),e.shadowRoot.querySelector("input").setAttribute("aria-label","passcode digit")}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&En.includes(e)&&("digits"===e&&this.renderInputs(),"loading"===e&&this.handleLoadingState("true"===r))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(zn,Wn);const _n=He("password"),{host:$n,inputField:Hn,inputElement:qn,inputElementPlaceholder:Yn,revealButtonContainer:Un,revealButtonIcon:Gn,label:Zn,requiredIndicator:Qn,errorMessage:Jn,helperText:Kn}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"> input"},inputElementPlaceholder:{selector:()=>":host input:placeholder-shown"},revealButtonContainer:{selector:"::part(reveal-button)"},revealButtonIcon:{selector:"::part(reveal-button)::before"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Xn=Be(Lt({mappings:{hostWidth:{...$n,property:"width"},hostMinWidth:{...$n,property:"min-width"},hostDirection:{...$n,property:"direction"},fontSize:[{},$n],fontFamily:[Zn,Hn,Jn,Kn],inputHeight:{...Hn,property:"height"},inputHorizontalPadding:[{...qn,property:"padding-left"},{...qn,property:"padding-right"}],inputBackgroundColor:{...Hn,property:"background-color"},inputBorderStyle:{...Hn,property:"border-style"},inputBorderWidth:{...Hn,property:"border-width"},inputBorderColor:{...Hn,property:"border-color"},inputBorderRadius:{...Hn,property:"border-radius"},inputOutlineColor:{...Hn,property:"outline-color"},inputOutlineStyle:{...Hn,property:"outline-style"},inputOutlineOffset:{...Hn,property:"outline-offset"},inputOutlineWidth:{...Hn,property:"outline-width"},labelFontSize:{...Zn,property:"font-size"},labelFontWeight:{...Zn,property:"font-weight"},labelTextColor:[{...Zn,property:"color"},{...Zn,property:"-webkit-text-fill-color"},{...Qn,property:"color"},{...Qn,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Qn,property:"content"},errorMessageTextColor:{...Jn,property:"color"},errorMessageIcon:{...Jn,property:"background-image"},errorMessageIconSize:{...Jn,property:"background-size"},errorMessageIconPadding:{...Jn,property:"padding-inline-start"},errorMessageIconRepeat:{...Jn,property:"background-repeat"},errorMessageIconPosition:{...Jn,property:"background-position"},errorMessageFontSize:{...Jn,property:"font-size"},inputPlaceholderTextColor:[{...Yn,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...qn,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...Un,property:"margin-right"},{...Un,property:"margin-left"}],revealButtonSize:{...Un,property:"font-size"},revealButtonColor:{...Gn,property:"color"},labelPosition:{...Zn,property:"position"},labelTopPosition:{...Zn,property:"top"},labelHorizontalPosition:[{...Zn,property:"left"},{...Zn,property:"right"}],inputTransformY:{...Zn,property:"transform"},inputTransition:{...Zn,property:"transition"},marginInlineStart:{...Zn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...qn,property:"opacity"}],inputVerticalAlignment:{...Hn,property:"align-items"},valueInputHeight:{...qn,property:"height"}}}),Nt,Kt({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),Ut({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Dt,e=>class extends e{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){super.init?.();const e=this.querySelector("input");e?.addEventListener("mousedown",t=>{if(this.isDraggable&&this.isReadOnly){e.setAttribute("inert","true");const r=t.target,o=r.getAttribute("type");r.setAttribute("type","text"),setTimeout(()=>{r.focus()});const i=t=>{r.setAttribute("type",o),e.removeAttribute("inert"),this.removeEventListener("mouseup",i),this.removeEventListener("dragend",i)};this.addEventListener("dragend",i,{once:!0}),this.addEventListener("mouseup",i,{once:!0})}})}},e=>class extends e{static get observedAttributes(){return["manual-visibility-toggle"]}get manualToggleVisibility(){return"true"===this.getAttribute("manual-visibility-toggle")}init(){super.init?.(),this.handleCaretOnVisibilityChange(),this.origSetPasswordVisible=this.baseElement._setPasswordVisible,this.origSetFocused=this.baseElement._setFocused,this.baseElement._setFocused=this.setFocus.bind(this),this.initExternalInput()}initExternalInput(){const e=this.createExternalInput();e&&this.handlePasswordVisibility(e)}get caretPosition(){return this.value?.length||0}handleCaretOnVisibilityChange(){const e=this.baseElement._togglePasswordVisibility.bind(this.baseElement);this.baseElement._togglePasswordVisibility=()=>{setTimeout(()=>(e(),this.inputElement.setSelectionRange(this.caretPosition,this.caretPosition),!1))}}setFocus(e){this.manualToggleVisibility&&(this.baseElement._setPasswordVisible=()=>{}),this.origSetFocused.call(this.baseElement,e),this.baseElement._setPasswordVisible=this.origSetPasswordVisible.bind(this.baseElement)}resetPasswordVisibilityToggle(){this.baseElement._setPasswordVisible=this.origSetPasswordVisible,this.baseElement._setFocused=this.origSetFocus}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r)}handlePasswordVisibility(e){const t=this.baseElement.__boundRevealButtonMouseDown;this.baseElement.querySelector("vaadin-password-field-button").removeEventListener("mousedown",t),this.baseElement._passwordVisibleChanged=()=>{},this.baseElement._togglePasswordVisibility=()=>{"password"===e.getAttribute("type")?this.showPasswordVisibility(e):this.hidePasswordVisibility(e)}}showPasswordVisibility(e){e.setAttribute("type","text"),this.setAttribute("password-visible","true")}hidePasswordVisibility(e){e.setAttribute("type","password"),this.setAttribute("password-visible","false")}})(Ft({slots:["","suffix"],wrappedEleName:"vaadin-password-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 10em;\n box-sizing: border-box;\n position: relative;\n\t\t\t}\n\t\t\t${at(Xn.cssVarList)}\n\t\t\t${dt("vaadin-password-field")}\n ${ht("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${Xn.cssVarList.inputOutlineColor});\n\t\t\t}\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n ::part(reveal-button) {\n align-self: center;\n }\n\n vaadin-password-field[external-input="true"] > input:not(:placeholder-shown) {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:_n}));customElements.define(_n,Xn);const ea=He("text-area"),{host:ta,label:ra,placeholder:oa,inputField:ia,textArea:na,requiredIndicator:aa,helperText:sa,errorMessage:la}={host:{selector:()=>":host"},label:{selector:"::part(label)"},placeholder:{selector:"textarea:placeholder-shown"},inputField:{selector:"::part(input-field)"},textArea:{selector:"> textarea"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},da=Be(Lt({mappings:{hostWidth:{...ta,property:"width"},hostMinWidth:{...ta,property:"min-width"},hostDirection:{...ta,property:"direction"},fontSize:[ta,na],fontFamily:[ra,ia,sa,la],labelTextColor:[{...ra,property:"color"},{...ra,property:"-webkit-text-fill-color"},{...aa,property:"color"}],labelRequiredIndicator:{...aa,property:"content"},errorMessageTextColor:{...la,property:"color"},errorMessageIcon:{...la,property:"background-image"},errorMessageIconSize:{...la,property:"background-size"},errorMessageIconPadding:{...la,property:"padding-inline-start"},errorMessageIconRepeat:{...la,property:"background-repeat"},errorMessageIconPosition:{...la,property:"background-position"},errorMessageFontSize:{...la,property:"font-size"},inputBackgroundColor:{...ia,property:"background-color"},inputValueTextColor:{...na,property:"color"},inputPlaceholderTextColor:{...oa,property:"color"},inputBorderWidth:{...ia,property:"border-width"},inputBorderStyle:{...ia,property:"border-style"},inputBorderColor:{...ia,property:"border-color"},inputBorderRadius:{...ia,property:"border-radius"},inputOutlineStyle:{...ia,property:"outline-Style"},inputOutlineColor:{...ia,property:"outline-color"},inputOutlineOffset:{...ia,property:"outline-offset"},inputOutlineWidth:{...ia,property:"outline-width"},inputResizeType:{...na,property:"resize"},inputMinHeight:{...na,property:"min-height"},inputTextAlign:{...na,property:"text-align"}}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt)(Ft({slots:[],wrappedEleName:"vaadin-text-area",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n box-sizing: border-box;\n\t\t\t}\n\t\t\ttextarea {\n\t\t\t\theight: 100%;\n\t\t\t}\n ${ht("vaadin-text-area")}\n\t\t\t${at(da.cssVarList)}\n\t\t\t${st("vaadin-text-area")}\n\t\t\t${lt("vaadin-text-area")}\n\t\t\t${ct("vaadin-text-area","textarea")}\n\t\t\t${dt("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:ea}));customElements.define(ea,da);var ca=[{name:"United States",dialCode:"+1",code:"US"},...[{name:"Afghanistan",dialCode:"+93",code:"AF"},{name:"Aland Islands",dialCode:"+358",code:"AX"},{name:"Albania",dialCode:"+355",code:"AL"},{name:"Algeria",dialCode:"+213",code:"DZ"},{name:"AmericanSamoa",dialCode:"+1684",code:"AS"},{name:"Andorra",dialCode:"+376",code:"AD"},{name:"Angola",dialCode:"+244",code:"AO"},{name:"Anguilla",dialCode:"+1264",code:"AI"},{name:"Antarctica",dialCode:"+672",code:"AQ"},{name:"Antigua and Barbuda",dialCode:"+1268",code:"AG"},{name:"Argentina",dialCode:"+54",code:"AR"},{name:"Armenia",dialCode:"+374",code:"AM"},{name:"Aruba",dialCode:"+297",code:"AW"},{name:"Australia",dialCode:"+61",code:"AU"},{name:"Austria",dialCode:"+43",code:"AT"},{name:"Azerbaijan",dialCode:"+994",code:"AZ"},{name:"Bahamas",dialCode:"+1242",code:"BS"},{name:"Bahrain",dialCode:"+973",code:"BH"},{name:"Bangladesh",dialCode:"+880",code:"BD"},{name:"Barbados",dialCode:"+1246",code:"BB"},{name:"Belarus",dialCode:"+375",code:"BY"},{name:"Belgium",dialCode:"+32",code:"BE"},{name:"Belize",dialCode:"+501",code:"BZ"},{name:"Benin",dialCode:"+229",code:"BJ"},{name:"Bermuda",dialCode:"+1441",code:"BM"},{name:"Bhutan",dialCode:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dialCode:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dialCode:"+387",code:"BA"},{name:"Botswana",dialCode:"+267",code:"BW"},{name:"Brazil",dialCode:"+55",code:"BR"},{name:"British Indian Ocean Territory",dialCode:"+246",code:"IO"},{name:"Brunei Darussalam",dialCode:"+673",code:"BN"},{name:"Bulgaria",dialCode:"+359",code:"BG"},{name:"Burkina Faso",dialCode:"+226",code:"BF"},{name:"Burundi",dialCode:"+257",code:"BI"},{name:"Cambodia",dialCode:"+855",code:"KH"},{name:"Cameroon",dialCode:"+237",code:"CM"},{name:"Canada",dialCode:"+1",code:"CA"},{name:"Cape Verde",dialCode:"+238",code:"CV"},{name:"Cayman Islands",dialCode:"+345",code:"KY"},{name:"Central African Republic",dialCode:"+236",code:"CF"},{name:"Chad",dialCode:"+235",code:"TD"},{name:"Chile",dialCode:"+56",code:"CL"},{name:"China",dialCode:"+86",code:"CN"},{name:"Christmas Island",dialCode:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dialCode:"+61",code:"CC"},{name:"Colombia",dialCode:"+57",code:"CO"},{name:"Comoros",dialCode:"+269",code:"KM"},{name:"Congo",dialCode:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dialCode:"+243",code:"CD"},{name:"Cook Islands",dialCode:"+682",code:"CK"},{name:"Costa Rica",dialCode:"+506",code:"CR"},{name:"Cote d'Ivoire",dialCode:"+225",code:"CI"},{name:"Croatia",dialCode:"+385",code:"HR"},{name:"Cuba",dialCode:"+53",code:"CU"},{name:"Cyprus",dialCode:"+357",code:"CY"},{name:"Czech Republic",dialCode:"+420",code:"CZ"},{name:"Denmark",dialCode:"+45",code:"DK"},{name:"Djibouti",dialCode:"+253",code:"DJ"},{name:"Dominica",dialCode:"+1767",code:"DM"},{name:"Dominican Republic",dialCode:"+1849",code:"DO"},{name:"Ecuador",dialCode:"+593",code:"EC"},{name:"Egypt",dialCode:"+20",code:"EG"},{name:"El Salvador",dialCode:"+503",code:"SV"},{name:"Equatorial Guinea",dialCode:"+240",code:"GQ"},{name:"Eritrea",dialCode:"+291",code:"ER"},{name:"Estonia",dialCode:"+372",code:"EE"},{name:"Ethiopia",dialCode:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dialCode:"+500",code:"FK"},{name:"Faroe Islands",dialCode:"+298",code:"FO"},{name:"Fiji",dialCode:"+679",code:"FJ"},{name:"Finland",dialCode:"+358",code:"FI"},{name:"France",dialCode:"+33",code:"FR"},{name:"French Guiana",dialCode:"+594",code:"GF"},{name:"French Polynesia",dialCode:"+689",code:"PF"},{name:"Gabon",dialCode:"+241",code:"GA"},{name:"Gambia",dialCode:"+220",code:"GM"},{name:"Georgia",dialCode:"+995",code:"GE"},{name:"Germany",dialCode:"+49",code:"DE"},{name:"Ghana",dialCode:"+233",code:"GH"},{name:"Gibraltar",dialCode:"+350",code:"GI"},{name:"Greece",dialCode:"+30",code:"GR"},{name:"Greenland",dialCode:"+299",code:"GL"},{name:"Grenada",dialCode:"+1473",code:"GD"},{name:"Guadeloupe",dialCode:"+590",code:"GP"},{name:"Guam",dialCode:"+1671",code:"GU"},{name:"Guatemala",dialCode:"+502",code:"GT"},{name:"Guernsey",dialCode:"+44",code:"GG"},{name:"Guinea",dialCode:"+224",code:"GN"},{name:"Guinea-Bissau",dialCode:"+245",code:"GW"},{name:"Guyana",dialCode:"+595",code:"GY"},{name:"Haiti",dialCode:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dialCode:"+379",code:"VA"},{name:"Honduras",dialCode:"+504",code:"HN"},{name:"Hong Kong",dialCode:"+852",code:"HK"},{name:"Hungary",dialCode:"+36",code:"HU"},{name:"Iceland",dialCode:"+354",code:"IS"},{name:"India",dialCode:"+91",code:"IN"},{name:"Indonesia",dialCode:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dialCode:"+98",code:"IR"},{name:"Iraq",dialCode:"+964",code:"IQ"},{name:"Ireland",dialCode:"+353",code:"IE"},{name:"Isle of Man",dialCode:"+44",code:"IM"},{name:"Israel",dialCode:"+972",code:"IL"},{name:"Italy",dialCode:"+39",code:"IT"},{name:"Jamaica",dialCode:"+1876",code:"JM"},{name:"Japan",dialCode:"+81",code:"JP"},{name:"Jersey",dialCode:"+44",code:"JE"},{name:"Jordan",dialCode:"+962",code:"JO"},{name:"Kazakhstan",dialCode:"+77",code:"KZ"},{name:"Kenya",dialCode:"+254",code:"KE"},{name:"Kiribati",dialCode:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dialCode:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dialCode:"+82",code:"KR"},{name:"Kuwait",dialCode:"+965",code:"KW"},{name:"Kyrgyzstan",dialCode:"+996",code:"KG"},{name:"Laos",dialCode:"+856",code:"LA"},{name:"Latvia",dialCode:"+371",code:"LV"},{name:"Lebanon",dialCode:"+961",code:"LB"},{name:"Lesotho",dialCode:"+266",code:"LS"},{name:"Liberia",dialCode:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dialCode:"+218",code:"LY"},{name:"Liechtenstein",dialCode:"+423",code:"LI"},{name:"Lithuania",dialCode:"+370",code:"LT"},{name:"Luxembourg",dialCode:"+352",code:"LU"},{name:"Macao",dialCode:"+853",code:"MO"},{name:"Macedonia",dialCode:"+389",code:"MK"},{name:"Madagascar",dialCode:"+261",code:"MG"},{name:"Malawi",dialCode:"+265",code:"MW"},{name:"Malaysia",dialCode:"+60",code:"MY"},{name:"Maldives",dialCode:"+960",code:"MV"},{name:"Mali",dialCode:"+223",code:"ML"},{name:"Malta",dialCode:"+356",code:"MT"},{name:"Marshall Islands",dialCode:"+692",code:"MH"},{name:"Martinique",dialCode:"+596",code:"MQ"},{name:"Mauritania",dialCode:"+222",code:"MR"},{name:"Mauritius",dialCode:"+230",code:"MU"},{name:"Mayotte",dialCode:"+262",code:"YT"},{name:"Mexico",dialCode:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dialCode:"+691",code:"FM"},{name:"Moldova",dialCode:"+373",code:"MD"},{name:"Monaco",dialCode:"+377",code:"MC"},{name:"Mongolia",dialCode:"+976",code:"MN"},{name:"Montenegro",dialCode:"+382",code:"ME"},{name:"Montserrat",dialCode:"+1664",code:"MS"},{name:"Morocco",dialCode:"+212",code:"MA"},{name:"Mozambique",dialCode:"+258",code:"MZ"},{name:"Myanmar",dialCode:"+95",code:"MM"},{name:"Namibia",dialCode:"+264",code:"NA"},{name:"Nauru",dialCode:"+674",code:"NR"},{name:"Nepal",dialCode:"+977",code:"NP"},{name:"Netherlands",dialCode:"+31",code:"NL"},{name:"Netherlands Antilles",dialCode:"+599",code:"AN"},{name:"New Caledonia",dialCode:"+687",code:"NC"},{name:"New Zealand",dialCode:"+64",code:"NZ"},{name:"Nicaragua",dialCode:"+505",code:"NI"},{name:"Niger",dialCode:"+227",code:"NE"},{name:"Nigeria",dialCode:"+234",code:"NG"},{name:"Niue",dialCode:"+683",code:"NU"},{name:"Norfolk Island",dialCode:"+672",code:"NF"},{name:"Northern Mariana Islands",dialCode:"+1670",code:"MP"},{name:"Norway",dialCode:"+47",code:"NO"},{name:"Oman",dialCode:"+968",code:"OM"},{name:"Pakistan",dialCode:"+92",code:"PK"},{name:"Palau",dialCode:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dialCode:"+970",code:"PS"},{name:"Panama",dialCode:"+507",code:"PA"},{name:"Papua New Guinea",dialCode:"+675",code:"PG"},{name:"Paraguay",dialCode:"+595",code:"PY"},{name:"Peru",dialCode:"+51",code:"PE"},{name:"Philippines",dialCode:"+63",code:"PH"},{name:"Pitcairn",dialCode:"+872",code:"PN"},{name:"Poland",dialCode:"+48",code:"PL"},{name:"Portugal",dialCode:"+351",code:"PT"},{name:"Qatar",dialCode:"+974",code:"QA"},{name:"Romania",dialCode:"+40",code:"RO"},{name:"Russia",dialCode:"+7",code:"RU"},{name:"Rwanda",dialCode:"+250",code:"RW"},{name:"Reunion",dialCode:"+262",code:"RE"},{name:"Saint Barthelemy",dialCode:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dialCode:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dialCode:"+1869",code:"KN"},{name:"Saint Lucia",dialCode:"+1758",code:"LC"},{name:"Saint Martin",dialCode:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dialCode:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dialCode:"+1784",code:"VC"},{name:"Samoa",dialCode:"+685",code:"WS"},{name:"San Marino",dialCode:"+378",code:"SM"},{name:"Sao Tome and Principe",dialCode:"+239",code:"ST"},{name:"Saudi Arabia",dialCode:"+966",code:"SA"},{name:"Senegal",dialCode:"+221",code:"SN"},{name:"Serbia",dialCode:"+381",code:"RS"},{name:"Seychelles",dialCode:"+248",code:"SC"},{name:"Sierra Leone",dialCode:"+232",code:"SL"},{name:"Singapore",dialCode:"+65",code:"SG"},{name:"Slovakia",dialCode:"+421",code:"SK"},{name:"Slovenia",dialCode:"+386",code:"SI"},{name:"Solomon Islands",dialCode:"+677",code:"SB"},{name:"Somalia",dialCode:"+252",code:"SO"},{name:"South Africa",dialCode:"+27",code:"ZA"},{name:"South Sudan",dialCode:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dialCode:"+500",code:"GS"},{name:"Spain",dialCode:"+34",code:"ES"},{name:"Sri Lanka",dialCode:"+94",code:"LK"},{name:"Sudan",dialCode:"+249",code:"SD"},{name:"Suriname",dialCode:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dialCode:"+47",code:"SJ"},{name:"Swaziland",dialCode:"+268",code:"SZ"},{name:"Sweden",dialCode:"+46",code:"SE"},{name:"Switzerland",dialCode:"+41",code:"CH"},{name:"Syrian Arab Republic",dialCode:"+963",code:"SY"},{name:"Taiwan",dialCode:"+886",code:"TW"},{name:"Tajikistan",dialCode:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dialCode:"+255",code:"TZ"},{name:"Thailand",dialCode:"+66",code:"TH"},{name:"Timor-Leste",dialCode:"+670",code:"TL"},{name:"Togo",dialCode:"+228",code:"TG"},{name:"Tokelau",dialCode:"+690",code:"TK"},{name:"Tonga",dialCode:"+676",code:"TO"},{name:"Trinidad and Tobago",dialCode:"+1868",code:"TT"},{name:"Tunisia",dialCode:"+216",code:"TN"},{name:"Turkey",dialCode:"+90",code:"TR"},{name:"Turkmenistan",dialCode:"+993",code:"TM"},{name:"Turks and Caicos Islands",dialCode:"+1649",code:"TC"},{name:"Tuvalu",dialCode:"+688",code:"TV"},{name:"Uganda",dialCode:"+256",code:"UG"},{name:"Ukraine",dialCode:"+380",code:"UA"},{name:"United Arab Emirates",dialCode:"+971",code:"AE"},{name:"United Kingdom",dialCode:"+44",code:"GB"},{name:"Uruguay",dialCode:"+598",code:"UY"},{name:"Uzbekistan",dialCode:"+998",code:"UZ"},{name:"Vanuatu",dialCode:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dialCode:"+58",code:"VE"},{name:"Vietnam",dialCode:"+84",code:"VN"},{name:"Virgin Islands, British",dialCode:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dialCode:"+1340",code:"VI"},{name:"Wallis and Futuna",dialCode:"+681",code:"WF"},{name:"Yemen",dialCode:"+967",code:"YE"},{name:"Zambia",dialCode:"+260",code:"ZM"},{name:"Zimbabwe",dialCode:"+263",code:"ZW"}].sort((e,t)=>e.name<t.name?-1:1)];const pa=({code:e,dialCode:t,name:r})=>`\n\t<div\n\t\tdata-id="${t}"\n\t\tdata-name="${e} ${t} ${r}"\n\t\tdata-country-code="${e}"\n\t>\n\t\t<div>\n\t\t\t<span>\n\t\t\t\t<img src="${(e=>`https://static.descope.com/npm/svg-country-flags@1.2.10/svg/${e.toLowerCase()}.svg`)(e)}" width="20"/>\n\t\t\t</span>\n\t\t\t<span>${r}</span>\n\t\t</div>\n\t\t<div>\n\t\t\t<span>${e}</span>\n\t\t\t<span>${t}</span>\n\t\t</div>\n\t</div>\n`,ua=e=>{const t=e||"";let r="",o="";const i=(0,p.l)(t);if(i)i.countryCallingCode&&(r=`+${i.countryCallingCode}`),i.nationalNumber&&(o=i.nationalNumber);else{const[e,i]=t.split("-");r=e||"",o=i||""}return[r,o]},ha=He("phone-field-internal"),ma=["disabled","size","bordered","readonly"],ga=["country-input-placeholder","default-code","restrict-countries"],ba=["phone-input-placeholder","maxlength","autocomplete","name"],ya=["label-type","country-input-label","label"],fa={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder"},va=[].concat(ma,ga,ba,ya),xa=er({componentName:ha,baseSelector:"div"});customElements.define(ha,class extends xa{static get observedAttributes(){return[].concat(xa.observedAttributes||[],va)}#pe;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n >\n ${ca.map(e=>pa(e)).join("")}\n </descope-combo-box>\n <div class="separator"></div>\n <descope-text-field type="tel"></descope-text-field>\n </div>\n `,this.comboBox=this.querySelector("descope-combo-box"),this.textField=this.querySelector("descope-text-field"),this.inputs=[this.comboBox,this.textField],Ye(this,this.comboBox,{includeAttrs:["label-type"]}),Ye(this,this.textField,{includeAttrs:["label-type","required"]}),this.comboBox.customValueTransformFn=e=>{const[,t]=e?.split?.(" ")||[];return t}}get countryCodeInputData(){return this.comboBox.items}get countryCodeValue(){return this.comboBox.shadowRoot.querySelector("input").value}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get defaultCode(){return this.getAttribute("default-code")}get selectionStart(){return this.textField.selectionStart}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get selectedCountryCode(){return this.comboBox?.selectedItem?.getAttribute("data-country-code")}get restrictCountries(){const e=this.getAttribute("restrict-countries");return e?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){if(!this.comboBox.value||!this.textField.value)return"";const[e,t]=ua(`${this.comboBox.value}-${this.textField.value}`);return`${e||this.comboBox.value}-${t||this.textField.value}`}set value(e){const[t,r]=ua(e);this.#ue(t),this.#he(r)}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#me()}getValidity(){const e=this.comboBox.value,t=this.textField.value,r=!e||!t,o=t&&t.length>=this.minLength;if(this.isRequired&&r)return{valueMissing:!0};if(this.value){if(!o)return{tooShort:!0};if(this.isStrictValidation&&!this.#ge())return{patternMismatch:!0}}return{}}setSelectionRange(...e){this.textField.setSelectionRange(...e)}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),t!==r){if("default-code"===e&&r)this.#be(r);else if(va.includes(e)){const t=fa[e]||e;ma.includes(e)?this.inputs.forEach(e=>e.setAttribute(t,r)):ga.includes(e)?this.comboBox.setAttribute(t,r):ba.includes(e)&&this.textField.setAttribute(t,r)}ya.includes(e)&&this.#ye(e,r),"restrict-countries"===e&&this.#fe(this.restrictCountries)}}#me(){this.textField.addEventListener("input",e=>{if(!this.allowAlphanumericInput){const t=/^\d$/,r=e.target.value.split("").filter(e=>t.test(e)).join("");e.target.value=r}}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching(),this.addEventListener("input",this.#ve.bind(this))}#ue(e){if(!e||e===this.selectedCountryCode)return;let t;if(this.value){const r=this.#xe(`${e}-${this.textField.value}`);t=this.#Ce(r)}t||(t=this.#we(e)),this.comboBox.selectedItem=t}#he(e){this.isFormatValue&&(e=this.#Ie(e)),this.textField.value!==e&&(this.textField.value=e)}#Ie(e=""){return this.#pe&&this.#pe.country===this.selectedCountryCode||(this.#pe=new u.Q(this.selectedCountryCode)),this.#pe.reset(),this.#pe.input(e)||e}#ge(){const e=(0,p.l)(this.value);return!!(e&&e.isValid?.()&&e.country&&this.#Me(e.country))}#Me(e){return!this.restrictCountries.length||this.restrictCountries.includes(e)}#we(e){return this.comboBox.items?.find(t=>t.getAttribute("data-id")===e)||void 0}#Ce(e){return this.comboBox.items?.find(t=>t.getAttribute("data-country-code")===e)}#xe(e){if(!e)return;const t=(0,p.l)(e);if(!t?.country)return;const r=this.#Ce(t.country);return r?.getAttribute("data-country-code")}#fe(e){const t=e.length?ca.filter(t=>e.includes(t.code)):ca;this.querySelector("descope-combo-box").innerHTML=t.map(e=>pa(e)).join("")}#be(e){if(!this.comboBox.value){const t=this.#Ce(e);t&&setTimeout(()=>{this.comboBox.selectedItem=t})}}#ve(){if(!this.value)return;const e=this.#xe(this.value);if(e&&this.selectedCountryCode!==e){const t=this.#Ce(e);t&&(this.comboBox.selectedItem=t)}}#ye(e,t){const r=fa[e]||e;"label-type"===e?this.#Se(t):"floating"===this.getAttribute("label-type")&&("country-input-label"===e?this.comboBox.setAttribute(r,t):"label"===e&&this.textField.setAttribute(r,t))}#Se(e){"floating"===e?(this.comboBox.setAttribute("label",this.getAttribute("country-input-label")||""),this.comboBox.setAttribute("placeholder",this.getAttribute("country-input-placeholder")||""),this.textField.setAttribute("label",this.getAttribute("label")||""),this.textField.setAttribute("placeholder",this.getAttribute("phone-input-placeholder")||"")):this.inputs.forEach(e=>e.removeAttribute("label"))}});const Ca=ji.cssVarList,wa=co.cssVarList,Ia=He("phone-field"),{host:Ma,label:Sa,requiredIndicator:Aa,inputField:Ea,internalAfter:Ta,countryCodeInput:ka,phoneInput:za,separator:La,errorMessage:Na,helperText:Da}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},internalAfter:{selector:"descope-phone-field-internal::after"},phoneInput:{selector:()=>"descope-text-field"},countryCodeInput:{selector:()=>"descope-combo-box"},separator:{selector:"descope-phone-field-internal .separator"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Va=Be(Lt({mappings:{fontSize:[Ma,Ea,{selector:ji.componentName,property:ji.cssVarList.fontSize},{selector:co.componentName,property:co.cssVarList.fontSize}],fontFamily:[Sa,Na,Da,{...ka,property:co.cssVarList.overlay.fontFamily}],hostWidth:[{...Ma,property:"width"},{...za,property:"width"},{...ka,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Ma,property:"direction"},inputBorderStyle:[{...Ta,property:"border-style"},{...La,property:"border-left-style"}],inputBorderWidth:[{...Ta,property:"border-width"},{...La,property:"border-left-width"}],inputBorderColor:[{...Ta,property:"border-color"},{...La,property:"border-left-color"}],inputBorderRadius:[{...Ea,property:"border-radius"},{...Ta,property:"border-radius"}],countryCodeInputWidth:{...ka,property:wa.hostWidth},countryCodeDropdownWidth:{...ka,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...za,property:"width"},horizontalPadding:[{...za,property:"padding-left"},{...za,property:"padding-right"},{...ka,property:"padding-left"},{...ka,property:"padding-right"}],labelTextColor:[{...Sa,property:"color"},{...Sa,property:"-webkit-text-fill-color"},{...Aa,property:"color"}],labelRequiredIndicator:{...Aa,property:"content"},errorMessageTextColor:{...Na,property:"color"},errorMessageIcon:{...Na,property:"background-image"},errorMessageIconSize:{...Na,property:"background-size"},errorMessageIconPadding:{...Na,property:"padding-inline-start"},errorMessageIconRepeat:{...Na,property:"background-repeat"},errorMessageIconPosition:{...Na,property:"background-position"},errorMessageFontSize:{...Na,property:"font-size"},inputValueTextColor:[{...za,property:Ca.inputValueTextColor},{...ka,property:wa.inputValueTextColor}],inputPlaceholderTextColor:{...za,property:Ca.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:wa.overlayItemBackgroundColor},inputOutlineStyle:{...Ea,property:"outline-style"},inputOutlineColor:{...Ea,property:"outline-color"},inputOutlineWidth:{...Ea,property:"outline-width"},inputOutlineOffset:{...Ea,property:"outline-offset"},valueInputHeight:[{...ka,property:wa.valueInputHeight}],valueInputMarginBottom:[{...za,property:Ca.valueInputMarginBottom}],marginInlineStart:[{...za,property:Ca.marginInlineStart},{...ka,property:wa.marginInlineStart}]}}),Nt,Xt,Ut({proxyProps:["value","selectionStart"]}),e=>class extends e{static get CountryCodes(){return ca}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n\t\t\t\t<${ha}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${ha}>\n \t\t`,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ha),Ye(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","minlength","maxlength","default-code","country-input-placeholder","phone-input-placeholder","disabled","restrict-countries","country-input-label","readonly","label","label-type","allow-alphanumeric-input","format-value","strict-validation"]})}get countryCodeItems(){return this.inputElement?.countryCodeValue}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}get countryCodeInputData(){return this.inputElement?.countryCodeInputData}get countryCodes(){return Array.from(this.inputElement.countryCodeInputData).map(e=>e.getAttribute("data-country-code"))}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 15em;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\t${at(Va.cssVarList)}\n\t\t\t${dt("vaadin-text-field")}\n\t\t\t${pt("vaadin-text-field")}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n\t\t\tdiv {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\tvaadin-text-field {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\t\t\tvaadin-text-field::part(label) {\n margin-left: 0;\n margin-right: 0;\n }\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tpadding: 0;\n\t\t\t\tbackground: transparent;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t\tdescope-phone-field-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n direction: ltr;\n position: relative;\n\t\t\t}\n descope-phone-field-internal::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n outline-offset: calc(var(${Va.cssVarList.inputBorderWidth}) * -1);\n pointer-events: none;\n }\n\t\t\tdescope-phone-field-internal > div {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\tdescope-phone-field-internal .separator {\n\t\t\t\tflex: 0;\n\t\t\t\tborder: none;\n\t\t\t}\n\n\t\t\tdescope-combo-box {\n\t\t\t\tflex-shrink: 0;\n min-width: 5.75em;\n\t\t\t\t${wa.inputOutlineWidth}: 0;\n\t\t\t\t${wa.inputOutlineOffset}: 0;\n\t\t\t\t${wa.inputBorderWidth}: 0;\n\t\t\t\t${wa.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Ca.inputOutlineWidth}: 0;\n\t\t\t\t${Ca.inputOutlineOffset}: 0;\n\t\t\t\t${Ca.inputBorderWidth}: 0;\n\t\t\t\t${Ca.inputBorderRadius}: 0;\n }\n\n :host([label-type="floating"]) vaadin-text-field::part(label) {\n display: none;\n }\n descope-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n descope-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tborder: none;\n\t\t\t}\n ${ht("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ia}));customElements.define(Ia,Va);const Pa=He("phone-field-internal-input-box"),Ba=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type"],Ra={"phone-input-placeholder":"placeholder"},Oa=er({componentName:Pa,baseSelector:"div"});customElements.define(Pa,class extends Oa{static get observedAttributes(){return[].concat(Oa.observedAttributes||[],Ba)}#pe;constructor(){super(),this.innerHTML='\n <div>\n <descope-text-field tabindex="1" type="tel" bordered="false"></descope-text-field>\n </div>\n ',this.textField=this.querySelector("descope-text-field")}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get defaultDialCode(){return e=this.getAttribute("default-code"),ca.find(t=>t.code===e)?.dialCode;var e}get defaultCode(){return this.getAttribute("default-code")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get maxLength(){return parseInt(this.getAttribute("maxlength"),10)||50}get restrictCountries(){return this.getAttribute("restrict-countries")?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){if(!this.textField.value)return"";if(!this.isStrictValidation)return this.#Ae();const e=this.#Ee();return e?.country&&e?.countryCallingCode&&e?.nationalNumber?`+${[e?.countryCallingCode,e?.nationalNumber].join("-")}`:this.textField.value}set value(e){this.textField.value=e}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#Te.bind(this)),this.handleFocusEventsDispatching([this.textField])}getValidity(){const e=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,t=this.#ke(this.textField.value||"");if(this.isRequired&&!this.textField.value)return{valueMissing:!0};if(this.textField.value){if(t.length<this.minLength)return{tooShort:!0};if(this.isStrictValidation&&this.textField.value&&!this.#ge()||!this.isStrictValidation&&this.textField.value&&!e.test(this.value))return{patternMismatch:!0}}return{}}setSelectionRange(...e){this.textField.setSelectionRange(...e)}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),t!==r&&Ba.includes(e)){const t=Ra[e]||e;this.textField.setAttribute(t,r)}}#Te(e){let t=this.#ze(e.target.value);this.isFormatValue&&this.#Le(t)&&(t=this.#Ne(t)),e.target.value=t}#Ae(){if(!this.defaultDialCode)return this.textField.value;const e=this.#De(this.textField.value),t=this.#ke(e);return[this.defaultDialCode,t].join("-")}#Ee(){return this.defaultDialCode?(0,p.l)([this.defaultDialCode,this.#ke(this.textField.value)].filter(Boolean).join("")):(0,p.l)(this.textField.value)}#ke(e){return e.replace(/\D/g,"")}#De(e){if("+"===this.textField.value?.[0]){const t=new RegExp(`^\\${this.defaultDialCode}`);return e.replace(t,"")}return e}#ge(){const e=(0,p.l)(this.value);return!(!e||!e.isValid?.()||!e.country||!this.#Me(e.country)||this.defaultCode&&this.defaultCode!==e.country)}#Me(e){return!this.restrictCountries.length||this.restrictCountries.includes(e)}#ze(e){if(e=e.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const t=/^[+\d-\(\)]+$/;e=e.split("").filter(e=>t.test(e)).join("")}return e}#Ne(e=""){const t=this.defaultCode||this.#Ve(e);return t?(this.#pe&&this.#pe.country===t||(this.#pe=new u.Q(t)),this.#pe.reset(),this.#pe.input(e)||e):e}#Ve(e){const t=(0,p.l)(e);return t?.country||""}#Le(e){return!!(e=>{const t=e.match(/\(/g),r=e.match(/\)/g);return t?.length===r?.length})(e)}});const ja=ji.cssVarList,Fa=He("phone-input-box-field"),{host:Wa,label:_a,inputElement:$a,requiredIndicator:Ha,inputField:qa,internalComponent:Ya,internalComponentAfter:Ua,phoneInput:Ga,errorMessage:Za,helperText:Qa}={host:{selector:()=>":host"},label:{selector:"::part(label)"},inputElement:{selector:"input"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:()=>"vaadin-text-field::part(input-field)"},internalComponent:{selector:"descope-phone-field-internal-input-box"},internalComponentAfter:{selector:"descope-phone-field-internal-input-box::after"},phoneInput:{selector:()=>"descope-text-field"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ja=Be(Lt({mappings:{fontSize:[Wa,qa,{selector:ji.componentName,property:ji.cssVarList.fontSize}],fontFamily:[_a,Za,Qa],hostWidth:{...Wa,property:"width"},hostMinWidth:{...Wa,property:"min-width"},hostDirection:{...Wa,property:"direction"},inputHorizontalPadding:[{...Ga,property:"padding-left"},{...Ga,property:"padding-right"}],labelFontSize:{..._a,property:"font-size"},labelFontWeight:{..._a,property:"font-weight"},labelTextColor:[{..._a,property:"color"},{..._a,property:"-webkit-text-fill-color"},{...Ha,property:"color"}],labelRequiredIndicator:{...Ha,property:"content"},errorMessageTextColor:{...Za,property:"color"},errorMessageIcon:{...Za,property:"background-image"},errorMessageIconSize:{...Za,property:"background-size"},errorMessageIconPadding:{...Za,property:"padding-inline-start"},errorMessageIconRepeat:{...Za,property:"background-repeat"},errorMessageIconPosition:{...Za,property:"background-position"},errorMessageFontSize:{...Za,property:"font-size"},inputValueTextColor:{...Ga,property:ja.inputValueTextColor},inputPlaceholderTextColor:{...Ga,property:ja.inputPlaceholderColor},inputBorderStyle:{...Ua,property:"border-style"},inputBorderWidth:{...Ua,property:"border-width"},inputBorderColor:{...Ua,property:"border-color"},inputBorderRadius:[{...Ya,property:"border-radius"},{...Ua,property:"border-radius"}],inputOutlineStyle:{...Ya,property:"outline-style"},inputOutlineColor:{...Ya,property:"outline-color"},inputOutlineWidth:{...Ya,property:"outline-width"},inputOutlineOffset:{...Ya,property:"outline-offset"},labelPosition:{..._a,property:"position"},labelTopPosition:{..._a,property:"top"},labelHorizontalPosition:[{..._a,property:"left"},{..._a,property:"right"}],inputTransformY:{..._a,property:"transform"},inputTransition:{..._a,property:"transition"},marginInlineStart:{..._a,property:"margin-inline-start"},valueInputHeight:{...$a,property:"height"},valueInputMarginBottom:{selector:ji.componentName,property:ja.valueInputMarginBottom}}}),Nt,Xt,Ut({proxyProps:["value","selectionStart"]}),e=>class extends e{static get CountryCodes(){return ca}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n\t\t\t\t<${Pa}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Pa}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Pa),Ye(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","minlength","maxlength","default-code","disabled","phone-input-placeholder","label","label-type","allow-alphanumeric-input","restrict-countries","format-value","strict-validation","data-errormessage-type-mismatch"]})}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${at(Ja.cssVarList)}\n ${dt("vaadin-text-field")}\n ${pt("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n }\n descope-phone-field-internal-input-box descope-text-field {\n ${ja.inputOutlineWidth}: 0;\n ${ja.inputOutlineOffset}: 0;\n }\n descope-phone-field-internal-input-box::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n pointer-events: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] input:placeholder-shown {\n opacity: 0;\n }\n\n ${ht("vaadin-text-field")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Fa}));customElements.define(Fa,Ja);const Ka=He("new-password-internal"),Xa=(e,t)=>e.replace(/{{(\w+)+}}/g,(e,r)=>t?.[r]||e),es=He("policy-validation"),ts=["data","active-policies","overrides","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-actual-passwordstrength"],rs=["label","value",...ts];class os extends(Ot({componentName:es,baseSelector:":host > div"})){#Pe;#Be=[];#Re;static get observedAttributes(){return rs}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n\t\t',N("\n :host > div {\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .label {\n max-width: 100%;\n text-wrap: wrap;\n overflow-wrap: break-word;\n }\n .hide-label .label {\n display: none;\n }\n ul {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n }\n ul, li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n li::before {\n display: inline-block;\n width: 1em;\n text-align: center;\n }\n ",this),this.panel=this.shadowRoot.querySelector(":host > div"),this.label=this.shadowRoot.querySelector(".label"),this.list=this.shadowRoot.querySelector("ul")}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback?.(e,t,r),t!==r){if("label"===e&&this.updateLabel(r),ts.includes(e)){if("data"===e)try{this.availablePolicies=JSON.parse(r)}catch{console.error("Failed to set available policies")}if("active-policies"===e&&(this.#Be=(r||"").split(",")),"data-password-policy-value-minlength"===e){const e=Number(r);!Number.isNaN(e)&&e>0&&(this.#Re={...this.#Re,minlength:{value:`${e}`}})}if("data-password-policy-value-passwordstrength"===e){const e=parseInt(r);!Number.isNaN(e)&&e>=0&&(this.#Re={...this.#Re,passwordstrength:{...this.#Re?.passwordstrength,expected:e}})}if("data-password-policy-actual-passwordstrength"===e){const e=Number(r);!Number.isNaN(e)&&e>=0&&(this.#Re={...this.#Re,passwordstrength:{...this.#Re?.passwordstrength,actual:e}})}}this.renderItems(this.#Pe,this.#Be,this.#Re)}}get availablePolicies(){return this.#Pe||[]}set availablePolicies(e){this.#Pe=e}get value(){return this.getAttribute("value")||""}getStrengthScore(){return this.value.length}compareValues(e,t,r){switch(e.toUpperCase()){case"GTE":return r>=t;case"GT":return r>t;case"LTE":return r<=t;case"LT":return r<t;case"EQ":return r===t;case"NEQ":return r!==t;default:throw new Error(`Invalid comparison type: ${e}`)}}validate(){let e=this.#Pe;return this.#Re&&(e=this.#Pe.map(e=>{const t=this.#Re[e.id];return t?{...e,data:t}:e})),this.#Be.reduce((t,r)=>{const o=e.find(e=>e.id===r);if(!o)return t;const{pattern:i,message:n,data:a,compare:s}=o;if(!i&&!s||!n)return t;const l={message:Xa(n,a),id:r};if(i){const e=new RegExp(Xa(i,a));l.valid=e.test(this.value)}else s&&(l.valid=this.compareValues(s,a?.expected??-1,a?.actual??-1));return t.push(l),t},[])}get isValid(){return!this.validate().some(({valid:e})=>!1===e)}getValidationItemTemplate({valid:e,message:t}){return`\n <li class="item" data-valid="${this.value?e:"none"}">\n <span class="message">${t}</span>\n </li>\n `}renderItems(e,t){e&&t.length&&(this.list.innerHTML=this.validate().map(this.getValidationItemTemplate.bind(this)).join(""))}updateLabel(e){e?(this.label.textContent=e,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.textContent="")}}const{host:is,item:ns,symbolDefault:as,symbolSuccess:ss,symbolError:ls}={host:{selector:()=>":host > div"},item:{selector:()=>".item"},symbolDefault:{selector:()=>'.item[data-valid="none"]::before'},symbolSuccess:{selector:()=>'.item[data-valid="true"]::before'},symbolError:{selector:()=>'.item[data-valid="false"]::before'}},ds=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...is,property:"border-width"},borderStyle:{...is,property:"border-style"},borderColor:{...is,property:"border-color"},borderRadius:{...is,property:"border-radius"},backgroundColor:{...is,property:"background-color"},textColor:{property:"color"},labelMargin:{...is,property:"gap"},itemsSpacing:{...ns,property:"line-height"},itemSymbolSuccessColor:{...ss,property:"color"},itemSymbolErrorColor:{...ls,property:"color"},itemSymbolDefault:{...as,property:"content"},itemSymbolSuccess:{...ss,property:"content"},itemSymbolError:{...ls,property:"content"}}}),Nt,Dt)(os),cs=He("new-password"),ps=ds.cssVarList,{host:us,label:hs,internalInputsWrapper:ms,errorMessage:gs,helperText:bs,passwordInput:ys,policyPreview:fs}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-password-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},passwordInput:{selector:"descope-password"},policyPreview:{selector:"descope-policy-validation"}},vs=Be(Lt({mappings:{fontSize:[us,{},{selector:Xn.componentName,property:Xn.cssVarList.fontSize}],fontFamily:[hs,gs,bs],labelFontSize:{...hs,property:"font-size"},labelFontWeight:{...hs,property:"font-weight"},labelTextColor:{...hs,property:"color"},errorMessageTextColor:{...gs,property:"color"},errorMessageIcon:{...gs,property:"background-image"},errorMessageIconSize:{...gs,property:"background-size"},errorMessageIconPadding:{...gs,property:"padding-inline-start"},errorMessageIconRepeat:{...gs,property:"background-repeat"},errorMessageIconPosition:{...gs,property:"background-position"},errorMessageFontSize:{...gs,property:"font-size"},hostWidth:{...us,property:"width"},hostMinWidth:{...us,property:"min-width"},hostDirection:[{...us,property:"direction"},{...ys,property:Xn.cssVarList.hostDirection}],inputsRequiredIndicator:{...us,property:"content"},spaceBetweenInputs:{...ms,property:"gap"},policyPreviewBackgroundColor:{...fs,property:ps.backgroundColor},policyPreviewPadding:{...fs,property:ps.padding},valueInputHeight:{...ys,property:Xn.cssVarList.valueInputHeight},valueInputMarginBottom:{...ys,property:Xn.cssVarList.valueInputMarginBottom}}}),Nt,Ut({proxyProps:["value","selectionStart"]}),e=>class extends e{init(){super.init?.();const e=document.createElement("template"),t=this.getAttribute("external-input");e.innerHTML=`\n\t\t\t<${Ka}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${t}"\n\t\t\t>\n </${Ka}>\n\t\t\t`,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Ka),"true"===this.getAttribute("external-input")&&this.initExternalInput(),Ye(this,this.inputElement,{includeAttrs:["password-label","password-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","label","has-confirm","invalid","readonly","disabled","draggable","has-validation","policy-label","active-policies","available-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","label-type","manual-visibility-toggle"]})}createSlottedExternalInput(e,t){const r=e.querySelector("input"),o=document.createElement("slot"),i=r.getAttribute("slot");o.setAttribute("name",t),o.setAttribute("slot",i),e.appendChild(o),r.setAttribute("slot",t),r.setAttribute("name",this.getAttribute("name")),r.setAttribute("data-hidden-input","true"),this.appendChild(r)}initExternalInput(){this.passwordInput=this.inputElement.querySelector('[data-id="password"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.passwordInput,"external-password-input"),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input")}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n :host ::part(error-message) {\n direction: ltr;\n }\n\t\t${at(Xn.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-password-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-password-internal > .wrapper {\n -webkit-mask-image: none;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-password {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\tdescope-new-password-internal vaadin-password-field::before {\n\t\t\theight: initial;\n\t\t}\n descope-policy-validation {\n margin-top: 8px;\n display: flex;\n }\n .hidden {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:cs}));customElements.define(es,ds);const xs=/^password-/,Cs=/^confirm-/,ws=(e,t)=>e.replace(t,""),Is=["password-label","password-placeholder"],Ms=["confirm-label","confirm-placeholder"],Ss=["has-validation","policy-label","available-policies","active-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","manual-visibility-toggle"],As=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Es=[].concat(As,Is,Ms,Ss),Ts=er({componentName:Ka,baseSelector:"div"});customElements.define(Ka,class extends Ts{static get observedAttributes(){return[].concat(Ts.observedAttributes||[],Es)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.passwordInput?.value||""}set value(e){e!==this.value&&(this.passwordInput.value=e)}get hasConfirm(){return"true"===this.getAttribute("has-confirm")}onHasConfirmChange(e){this.confirmInput.classList.toggle("hidden",!e)}onHasValidationChange(e){this.policyPanel.classList.toggle("hidden",!e)}get hasValidation(){return"true"===this.getAttribute("has-validation")}getValidity(){if(this.isRequired&&!this.value)return{valueMissing:!0};if(this.value&&!this.policyPanel.isValid)return{typeMismatch:!0};if(this.hasConfirm&&this.confirmInput&&this.value!==this.confirmInput.value)return{patternMismatch:!0};const e=this.getAttribute("minlength"),t=parseInt(e,10)||0;return this.value.length>=t?{}:{tooShort:!0}}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.passwordInput.focus()}),super.init?.(),this.renderInputs(this.hasConfirm,this.hasValidation)}renderInputs(){const e="true"===this.getAttribute("external-input"),t=`\n <div class="password-input-container">\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n data-id="password"\n external-input="${e}"\n ></descope-password>\n <descope-policy-validation></descope-policy-validation>\n </div>\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n external-input="${e}"\n data-id="confirm"\n ></descope-password>\n `;this.wrapperEle.innerHTML=t,this.passwordInput=this.querySelector('[data-id="password"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.policyPanel=this.querySelector("descope-policy-validation"),this.passwordStrength=this.querySelector("descope-password-strength"),this.inputs=[this.passwordInput,this.confirmInput],this.initInputs(),this.passwordInput.addEventListener("input",e=>{this.passwordStrength?.addEventListener("score-changed",({detail:e})=>{this.policyPanel.setAttribute("data-password-policy-actual-passwordstrength",e)},{once:!0}),this.passwordStrength?.setAttribute("value",e.target.value),this.policyPanel.setAttribute("value",e.target.value)}),Ye(this,this.policyPanel,{includeAttrs:Ss,mapAttrs:{"policy-label":"label","available-policies":"data"}})}handleIndicatorStyle(){this.inputs.forEach(e=>{N(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${vs.cssVarList.inputsRequiredIndicator});\n width: 1em;\n text-align: center;\n\t\t\t\t}\n :host ::part(required-indicator) {\n display: inline-flex;\n }\n\t\t\t\t`,e)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(e=>{e&&Fe(e,t=>{if(t.includes("invalid")){const t=e.getAttribute("invalid"),r=this.getAttribute("invalid");this.isInvalid&&r!==t&&e.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}async togglePasswordStrength(){this.activePolicies.includes("passwordstrength")?this.passwordStrength||(await Promise.resolve().then(function(){return pv}),this.passwordStrength=document.createElement("descope-password-strength"),this.passwordStrength.setAttribute("options","Very weak,Weak,Average,Strong,Very strong"),this.passwordStrength.setAttribute("value",this.passwordInput.value||""),this.passwordStrength.setAttribute("st-host-direction",this.getAttribute("st-host-direction")),this.passwordStrength.setAttribute("full-width","true"),this.querySelector(".password-input-container").insertBefore(this.passwordStrength,this.policyPanel)):this.passwordStrength&&(this.passwordStrength.remove(),this.passwordStrength=null)}get activePolicies(){return(this.getAttribute("active-policies")||"").split(",")}toggleBooleanAttribute(e,t,r){null===r?e?.removeAttribute(t):e?.setAttribute(t,r)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("has-validation"===e?this.onHasValidationChange("true"===r):"has-confirm"===e?this.onHasConfirmChange("true"===r):As.includes(e)?this.inputs.forEach(t=>this.toggleBooleanAttribute(t,e,r)):Is.includes(e)?this.toggleBooleanAttribute(this.passwordInput,ws(e,xs),r):Ms.includes(e)&&this.toggleBooleanAttribute(this.confirmInput,ws(e,Cs),r),"active-policies"===e&&this.togglePasswordStrength())}}),customElements.define(cs,vs);const ks=He("recaptcha"),zs=["enabled","site-key","action","enterprise"],Ls=Ot({componentName:ks,baseSelector:":host > div"}),Ns=Be(Nt)(class extends Ls{static get observedAttributes(){return zs.concat(Ls.observedAttributes||[])}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"enabled"===e&&this.#Oe("true"===r)}renderRecaptcha(e){this.children.length?this.updatePreview():this.toggleRecaptchaEles(e)}toggleRecaptchaEles(e){e?(this.recaptchaEle.style.display="",this.mockRecaptchaEle.style.display="none"):(this.recaptchaEle.style.display="none",this.mockRecaptchaEle.style.display="")}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',N('\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #recaptcha .grecaptcha-badge {\n box-shadow: none !important;\n }\n :host #recaptcha .grecaptcha-logo {\n height: 100%;\n }\n :host #recaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host img {\n width: 256px;\n }\n :host([full-width="true"]) {\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ',this),this.recaptchaEle=this.baseElement.querySelector("#recaptcha"),this.mockRecaptchaEle=this.baseElement.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge")}init(){super.init?.(),We(this,this.updatePreview.bind(this))}updatePreview(){this.children.length?(this.recaptchaEle.style.display="none",this.mockRecaptchaEle.style.display="none",this.badge.classList.add("hidden")):(this.toggleRecaptchaEles(this.enabled),this.badge.classList.remove("hidden"))}get enterprise(){return"true"===this.getAttribute("enterprise")}get siteKey(){return this.getAttribute("site-key")}get action(){return this.getAttribute("action")||"load"}get enabled(){return"true"===this.getAttribute("enabled")}get scriptURL(){const e=new URL("https://www.google.com/recaptcha/");return e.pathname+=(this.enterprise?"enterprise":"api")+".js",e.searchParams.append("onload","onRecaptchaLoadCallback"),e.searchParams.append("render","explicit"),e.toString()}#Oe(e){this.renderRecaptcha(e),e&&(this.#je(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Fe())}#Fe(){const e=document.createElement("script");e.src=this.scriptURL,e.async=!0,e.id="recaptcha-script",e.defer=!0,document.body.appendChild(e)}get grecaptchaInstance(){return this.enterprise?window.grecaptcha?.enterprise:window.grecaptcha}#We(e,t,r){this.isConnected&&e.ready(()=>{const o=t.querySelector('textarea[name^="g-recaptcha-response"]')?.cloneNode();if(o&&(o.style.display="none",document.body.appendChild(o)),!this.siteKey)return;const i=e?.execute(r,{action:this.action});i.then((i,n)=>{n?console.warn("could not execute recaptcha",n):(this.updateComponentsContext({risktoken:i,riskaction:this.action}),this.isConnected&&setTimeout(()=>{this.#We(e,t,r)},11e4)),o.remove()})})}#je(){window.onRecaptchaLoadCallback=()=>{const e=this.recaptchaEle;if(e.hasChildNodes())return;const{grecaptchaInstance:t}=this;t&&setTimeout(()=>{const r=t.render(e,{sitekey:this.siteKey,badge:"inline",size:"invisible"});this.#We(t,e,r)},0)}}});customElements.define(ks,Ns);const Ds=He("upload-file"),Vs=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Ps=er({componentName:Ds,baseSelector:":host > div"}),Bs=Io.cssVarList,{host:Rs,wrapper:Os,icon:js,title:Fs,description:Ws,requiredIndicator:_s}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},$s=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...Rs,property:"height"},hostWidth:{...Rs,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...Rs,property:"direction"},{selector:()=>Io.componentName,property:Bs.hostDirection}],gap:{...Os},lineHeight:{...Os,property:"line-height"},titleFontSize:{...Fs,property:"font-size"},titleFontWeight:{...Fs,property:"font-weight"},descriptionFontSize:{...Ws,property:"font-size"},labelTextColor:[{...Fs,property:"color"},{...Ws,property:"color"}],iconSize:{...js,property:"width"},requiredIndicator:{..._s,property:"content"}}}),Nt,Dt)(class extends Ps{static get observedAttributes(){return Vs.concat(Ps.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" aria-labelledby="button"/>\n\t\t\t\t\t<descope-button id="button"></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',N("\n :host {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\ttext-align: center;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.button-wrapper {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t}\n ",this),this.wrapperEle=this.shadowRoot.querySelector(".wrapper"),this.inputElement=this.shadowRoot.querySelector("input"),this.button.onclick=()=>this.inputElement.click(),this.inputElement.onchange=async e=>{const t=e.target.files;var r;t.length&&(this.value=await(r=t[0],new Promise(e=>{const t=new FileReader;t.onload=t=>e(t.target.result),t.readAsDataURL(r)})),this.updateDescription((e=>e.name.replace(/^.*\\/,""))(t[0])))},this.oninvalid=()=>{this.setAttribute("invalid","true")}}getValidity(){return this.isRequired&&!this.input.value?{valueMissing:!0}:(this.removeAttribute("invalid"),{})}initInputs(){this.rootElement.querySelector("descope-button").onclick=()=>this.inputElement.click()}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("title"===e?this.updateTitle(r):"description"===e?this.updateDescription(r):"button-label"===e?this.updateButtonLabel(r):"button-mode"===e?this.updateButtonMode(r):"button-variant"===e?this.updateButtonVariant(r):"size"===e?this.updateButtonSize(r):"accept"===e?this.updateInputAccept(r):"readonly"===e&&this.updateReadOnly(r))}get button(){return this.shadowRoot.querySelector("descope-button")}get input(){return this.shadowRoot.querySelector("input")}get title(){return this.shadowRoot.querySelector(".title-text")}get description(){return this.shadowRoot.querySelector(".description")}get icon(){return this.shadowRoot.querySelector(".icon")}updateTitle(e){this.title.textContent=e}updateDescription(e){this.description.textContent=e}updateButtonLabel(e){this.button.textContent=e}updateButtonSize(e){this.button.setAttribute("size",e)}updateButtonMode(e){this.button.setAttribute("mode",e)}updateButtonVariant(e){this.button.setAttribute("variant",e)}updateInputAccept(e){this.input.setAttribute("accept",e)}updateReadOnly(e){"true"===e?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}});customElements.define(Ds,$s);const Hs=e=>{class t extends(er({componentName:e,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=jt.bind(this,"change");get items(){return this.querySelector("slot").assignedElements()}get isReadonly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"md"}get value(){console.warn("get value","is not implemented")}set value(e){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach(e=>{e.setAttribute("size",this.size)})}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(e){e.forEach(e=>{switch(e){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}})}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.items[0]?.focus()}),super.init?.(),Fe(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return t},qs=He("button-selection-group-internal");class Ys extends(Hs(qs)){getSelectedNode(){return this.items.find(e=>e.hasAttribute("selected"))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(e){e.target!==e.currentTarget&&(e.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(e.target),this.dispatchChange())}setSelected(e){e!==this.getSelectedNode()&&(this.removeSelected(),e?.setAttribute("selected","true"))}get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue,this.setCustomValidity())})}get value(){return this.getSelectedNode()?.value||""}set value(e){const t=this.items.find(t=>t.value===e);this.setSelected(t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const Us=e=>class extends e{#J=({value:e,label:t})=>`<descope-button-selection-group-item value="${e}">${t}</descope-button-selection-group-item>`;#V;get renderItem(){return this.#J}set renderItem(e){this.#J=e,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" - ',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.renderItem?.(t||{})||""),"")}renderItems(){const e=this.getItemsTemplate();e&&(this.innerHTML=e)}init(){super.init?.(),this.renderItems(),Fe(this,this.renderItems.bind(this),{includeAttrs:["data"]}),We(this,({addedNodes:e})=>{e.forEach(e=>{e.setAttribute("size",this.size)})})}},{host:Gs,label:Zs,requiredIndicator:Qs,internalWrapper:Js,errorMessage:Ks}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:()=>':host [part="internal-component"] slot'},errorMessage:{selector:"::part(error-message)"}},Xs={hostWidth:{...Gs,property:"width"},hostDirection:{...Gs,property:"direction"},fontFamily:Gs,labelTextColor:[{...Zs,property:"color"},{...Qs,property:"color"}],labelRequiredIndicator:{...Qs,property:"content"},errorMessageTextColor:{...Ks,property:"color"},errorMessageIcon:{...Ks,property:"background-image"},errorMessageIconSize:{...Ks,property:"background-size"},errorMessageIconPadding:{...Ks,property:"padding-inline-start"},errorMessageIconRepeat:{...Ks,property:"background-repeat"},errorMessageIconPosition:{...Ks,property:"background-position"},errorMessageFontSize:{...Ks,property:"font-size"},itemsSpacing:{...Js,property:"gap"}},el=`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n [part="internal-component"] slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${ht("vaadin-text-field")}\n\t\t\t${dt("vaadin-text-field")}\n `,tl=He("button-selection-group"),rl=Be(Lt({mappings:{...Xs}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,Us,e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${qs}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${qs}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(qs),Ye(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>el,excludeAttrsSync:["tabindex","style"],componentName:tl}));customElements.define(qs,Ys);const ol=He("button-selection-group-item");class il extends(Ot({componentName:ol,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(e){this.setAttribute("value",e)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,N("\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n ",this),Ye(this,this.baseElement,{includeAttrs:["size","variant"]}),Ye(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",e=>{e.isTrusted&&this.handleFocus()})}}const nl=Be(Lt({mappings:{hostDirection:{selector:()=>Io.componentName,property:Io.cssVarList.hostDirection},backgroundColor:{selector:()=>Io.componentName,property:Io.cssVarList.backgroundColor},labelTextColor:{selector:()=>Io.componentName,property:Io.cssVarList.labelTextColor},borderColor:{selector:()=>Io.componentName,property:Io.cssVarList.borderColor},borderWidth:{selector:()=>Io.componentName,property:Io.cssVarList.borderWidth},borderStyle:{selector:()=>Io.componentName,property:Io.cssVarList.borderStyle},borderRadius:{selector:()=>Io.componentName,property:Io.cssVarList.borderRadius},outlineColor:{selector:()=>Io.componentName,property:Io.cssVarList.outlineColor}}}),Nt,Dt)(il);customElements.define(ol,nl),customElements.define(tl,rl);const al=He("button-multi-selection-group-internal");class sl extends(Hs(al)){#_e(){return this.items.filter(e=>e.hasAttribute("selected"))}onClick(e){e.target!==e.currentTarget&&(this.#_e().includes(e.target)?e.target.removeAttribute("selected"):e.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#_e().map(e=>e.value)}set value(e){this.items.forEach(t=>{e.includes(t.value)?t.setAttribute("selected","true"):t.removeAttribute("selected")})}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#$e(e){const t=Array.isArray(e);return t||console.error("default-values must be an array, received:",e),t}get defaultValues(){const e=this.getAttribute("default-values");if(e)try{const t=JSON.parse(e);if(this.#$e(t))return t}catch(e){console.error('could not parse data string from attribute "default-values" -',e.message)}return[]}setDefaultValues(){setTimeout(()=>{this.defaultValues&&(this.value=this.defaultValues,this.setCustomValidity())})}getValidity(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}}init(){super.init(),this.setDefaultValues(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const ll=He("button-multi-selection-group"),dl=Be(Lt({mappings:{...Xs}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,Us,e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${al}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${al}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(al),Ye(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>el,excludeAttrsSync:["tabindex","style"],componentName:ll}));customElements.define(al,sl),customElements.define(ll,dl);class cl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(e,t,r){const o=r.item[this.path]||"",i=Array.isArray(o)?o.join(", "):o;this.__setTextContent(e,i),e.title=i}_defaultHeaderRenderer(e,t){this.sortable?super._defaultHeaderRenderer(e,t):this.__setTextContent(e,this.__getHeader(this.header,this.path))}}const pl=He("grid-text-column");customElements.define(pl,cl);const ul=He("grid-custom-column");customElements.define(ul,class extends cl{_defaultRenderer(e,t,r){const o=r.item[this.path]||"",i=Array.from(this.children).find(e=>{const t=e.getAttribute("data-pattern");return!t||new RegExp(t).test(o)});if(!i)return void this.__setTextContent(e,r.item[this.path]||"");const n=i.cloneNode(!0);n.textContent=o||"",e.innerHTML="",e.append(n)}});const hl=()=>{const e=document.createElement("descope-checkbox");return e.setAttribute("bordered","true"),e.setAttribute("size","xs"),e},ml=e=>!!e.items?.length&&e.selectedItems.length===e.items.length;class gl extends m.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(e){const t=e.parentNode;let r=e.querySelector("descope-checkbox");r||(r=hl(),r.addEventListener("input",()=>{const e=ml(t);t.selectedItems=e?[]:t.items}),e.appendChild(r)),r.setAttribute("checked",ml(t))}_defaultRenderer(e,t,r){const o=e.parentNode;let i=e.querySelector("descope-checkbox");i||(i=hl(),e.appendChild(i)),i.onchange=()=>{i.checked?o.selectItem(r.item):o.deselectItem(r.item)},i.setAttribute("checked",r.selected)}}const bl=He("grid-selection-column");customElements.define(bl,gl);class yl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(e,t,r){const o=t._gridValue,i=o.detailsOpenedItems?.indexOf(r.item)??-1,n=-1!==i,a=document.createElement("vaadin-icon");a.icon=n?"vaadin:angle-up":"vaadin:angle-down",a.classList.add("toggle-details-button",n?"opened":"closed"),e.innerHTML="",e.append(a),a.onclick=()=>{o.detailsOpenedItems=n?o.detailsOpenedItems.toSpliced(i,1):[...o.detailsOpenedItems,r.item]}}_defaultHeaderRenderer(e,t){this.sortable?super._defaultHeaderRenderer(e,t):this.__setTextContent(e,this.__getHeader(this.header,this.path))}}const fl=He("grid-item-details-column");customElements.define(fl,yl);const vl=He("code-snippet");let xl=class extends(Ot({componentName:vl,baseSelector:":host > code"})){static get observedAttributes(){return["lang","inline"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <code class="hljs"></code>\n ',N("\n :host {\n display: inline-block;\n width: 100%;\n }\n code {\n display: block;\n width: 100%;\n min-height: 1em;\n overflow-x: scroll;\n overflow-y: scroll;\n }\n pre {\n margin: 0;\n }\n ",this)}init(){super.init?.(),this.lang=this.getAttribute("lang"),this.isInline="true"===this.getAttribute("inline"),We(this,this.#He.bind(this))}get contentNode(){return this.shadowRoot.querySelector(this.baseSelector)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("inline"===e&&(this.isInline=r),"lang"===e&&(this.lang=r),this.#He())}#He(){const e=(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(this.textContent),t=this.lang;if(!t)return void(this.contentNode.textContent=e);const{value:r}=g.A.highlight(e,{language:t});this.contentNode.innerHTML=(e=>this.isInline?e:`<pre>${e}</pre>`)(r)}};const{root:Cl,docTag:wl,keyword:Il,metaKeyword:Ml,templateTag:Sl,templateVariable:Al,type:El,variableLanguage:Tl,title:kl,titleClass:zl,titleClassInherited:Ll,titleFunction:Nl,attr:Dl,attribute:Vl,literal:Pl,meta:Bl,number:Rl,operator:Ol,variable:jl,selectorAttr:Fl,selectorClass:Wl,selectorId:_l,regexp:$l,string:Hl,metaString:ql,builtIn:Yl,symbol:Ul,comment:Gl,code:Zl,formula:Ql,name:Jl,quote:Kl,selectorTag:Xl,selectorPseudo:ed,subst:td,section:rd,bullet:od,emphasis:id,strong:nd,addition:ad,deletion:sd,charEscape:ld,link:dd,params:cd,property:pd,punctuation:ud,tag:hd}={root:{selector:()=>".hljs"},docTag:{selector:()=>".hljs-doctag"},keyword:{selector:()=>".hljs-keyword"},metaKeyword:{selector:()=>".hljs-meta .hljs-keyword"},templateTag:{selector:()=>".hljs-template-tag"},templateVariable:{selector:()=>".hljs-template-variable"},type:{selector:()=>".hljs-type"},variableLanguage:{selector:()=>".hljs-variable.language"},title:{selector:()=>".hljs-title"},titleClass:{selector:()=>".hljs-title.class_"},titleClassInherited:{selector:()=>".hljs-title.class_.inherited__"},titleFunction:{selector:()=>".hljs-title.function_"},attr:{selector:()=>".hljs-attr"},attribute:{selector:()=>".hljs-attribute"},literal:{selector:()=>".hljs-literal"},meta:{selector:()=>".hljs-meta"},number:{selector:()=>".hljs-number"},operator:{selector:()=>".hljs-operator"},variable:{selector:()=>".hljs-variable"},selectorAttr:{selector:()=>".hljs-selector-attr"},selectorClass:{selector:()=>".hljs-selector-class"},selectorId:{selector:()=>".hljs-selector-id"},regexp:{selector:()=>".hljs-regexp"},string:{selector:()=>".hljs-string"},metaString:{selector:()=>".hljs-meta .hljs-string"},builtIn:{selector:()=>".hljs-built_in"},symbol:{selector:()=>".hljs-symbol"},comment:{selector:()=>".hljs-comment"},code:{selector:()=>".hljs-code"},formula:{selector:()=>".hljs-formula"},name:{selector:()=>".hljs-name"},quote:{selector:()=>".hljs-quote"},selectorTag:{selector:()=>".hljs-selector-tag"},selectorPseudo:{selector:()=>".hljs-selector-pseudo"},subst:{selector:()=>".hljs-subst"},section:{selector:()=>".hljs-section"},bullet:{selector:()=>".hljs-bullet"},emphasis:{selector:()=>".hljs-emphasis"},strong:{selector:()=>".hljs-strong"},addition:{selector:()=>".hljs-addition"},deletion:{selector:()=>".hljs-deletion"},charEscape:{selector:()=>".hljs-char.escape"},link:{selector:()=>".hljs-link"},params:{selector:()=>".hljs-params"},property:{selector:()=>".hljs-property"},punctuation:{selector:()=>".hljs-punctuation"},tag:{selector:()=>".hljs-tag"}},md=Be(Lt({mappings:{rootBgColor:{...Cl,property:"background-color"},rootTextColor:{...Cl,property:"color"},docTagTextColor:{...wl,property:"color"},keywordTextColor:{...Il,property:"color"},metaKeywordTextColor:{...Ml,property:"color"},templateTagTextColor:{...Sl,property:"color"},templateVariableTextColor:{...Al,property:"color"},typeTextColor:{...El,property:"color"},variableLanguageTextColor:{...Tl,property:"color"},titleTextColor:{...kl,property:"color"},titleClassTextColor:{...zl,property:"color"},titleClassInheritedTextColor:{...Ll,property:"color"},titleFunctionTextColor:{...Nl,property:"color"},attrTextColor:{...Dl,property:"color"},attributeTextColor:{...Vl,property:"color"},literalTextColor:{...Pl,property:"color"},metaTextColor:{...Bl,property:"color"},numberTextColor:{...Rl,property:"color"},operatorTextColor:{...Ol,property:"color"},variableTextColor:{...jl,property:"color"},selectorAttrTextColor:{...Fl,property:"color"},selectorClassTextColor:{...Wl,property:"color"},selectorIdTextColor:{..._l,property:"color"},regexpTextColor:{...$l,property:"color"},stringTextColor:{...Hl,property:"color"},metaStringTextColor:{...ql,property:"color"},builtInTextColor:{...Yl,property:"color"},symbolTextColor:{...Ul,property:"color"},commentTextColor:{...Gl,property:"color"},codeTextColor:{...Zl,property:"color"},formulaTextColor:{...Ql,property:"color"},nameTextColor:{...Jl,property:"color"},quoteTextColor:{...Kl,property:"color"},selectorTagTextColor:{...Xl,property:"color"},selectorPseudoTextColor:{...ed,property:"color"},substTextColor:{...td,property:"color"},sectionTextColor:{...rd,property:"color"},bulletTextColor:{...od,property:"color"},emphasisTextColor:{...id,property:"color"},strongTextColor:{...nd,property:"color"},additionTextColor:{...ad,property:"color"},additionBgColor:{...ad,property:"background-color"},deletionTextColor:{...sd,property:"color"},deletionBgColor:{...sd,property:"background-color"},charEscapeTextColor:{...ld,property:"color"},linkTextColor:{...dd,property:"color"},paramsTextColor:{...cd,property:"color"},propertyTextColor:{...pd,property:"color"},punctuationTextColor:{...ud,property:"color"},tagTextColor:{...hd,property:"color"}}}),Nt,Dt)(xl);customElements.define(vl,md);const gd=e=>{const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t},bd=e=>{const t=document.createElement("div");return t.textContent=e,t.innerHTML},yd=e=>(e=>e?.constructor===Object)(e)?"object":Array.isArray(e)?"array":/^\s*<[\s\S]*>/.test(e)?"xml":"text",fd=(e,t)=>`<descope-code-snippet lang="${t}" class="row-details__value code">${bd(e)}</descope-code-snippet>`,vd=e=>`<div class="row-details__value text" title="${e}">${bd(e)}</div>`,xd=e=>fd(JSON.stringify(e,null,2),"json"),Cd=He("grid"),{host:wd,headerRow:Id,headerRowCell:Md,contentRow:Sd,firstRow:Ad,sortIndicators:Ed,activeSortIndicator:Td,selectedRow:kd,rowSeparator:zd,resizeHandle:Ld,toggleDetailsPanelButton:Nd,toggleDetailsPanelButtonOpened:Dd,toggleDetailsPanelButtonClosed:Vd,detailsPanel:Pd,detailsPanelLabels:Bd,selectedRowCell:Rd,detailsPanelContent:Od}={host:{selector:()=>"vaadin-grid"},headerRow:{selector:()=>"::part(header-cell)"},headerRowCell:{selector:()=>"vaadin-grid::part(header-cell)"},contentRow:{selector:()=>"::part(cell)"},firstRow:{selector:()=>"::part(first-header-row-cell)"},selectedRow:{selector:()=>"::part(selected-row)"},selectedRowCell:{selector:()=>"::part(selected-row-cell)"},sortIndicators:{selector:()=>"vaadin-grid-sorter::part(indicators)"},activeSortIndicator:{selector:()=>"vaadin-grid-sorter[direction]"},rowSeparator:{selector:()=>"vaadin-grid::part(body-cell)"},resizeHandle:{selector:()=>"::part(resize-handle)"},toggleDetailsPanelButton:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button"},toggleDetailsPanelButtonOpened:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button.opened"},toggleDetailsPanelButtonClosed:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button.closed"},detailsPanel:{selector:()=>"vaadin-grid::part(details-cell)"},detailsPanelLabels:{selector:()=>"vaadin-grid .row-details__label"},detailsPanelContent:{selector:()=>"vaadin-grid .row-details"}},jd=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Id},{...Sd}],fontSize:[{...Id},{...Sd}],fontWeight:{...Sd},valueTextColor:{...Sd,property:"color"},backgroundColor:[{...wd,property:"background-color"},{...Sd,property:"background-color"}],sortIndicatorsColor:{...Ed,property:"color"},activeSortIndicator:{...Td,property:"color"},borderColor:{...wd,property:"border-color"},borderWidth:{...wd,property:"border-width"},borderStyle:{...wd,property:"border-style"},borderRadius:{...wd,property:"border-radius"},selectedBackgroundColor:[{...kd,property:"background-color"},{...Rd,property:"background-color"}],headerRowTextColor:{...Md,property:"color"},separatorColor:[{...Ad,property:"border-bottom-color"},{...zd,property:"border-top-color"}],resizeHandleColor:{...Ld,property:"background-color"},hostDirection:{...wd,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Nd,property:"width"},{...Nd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...Dd,property:"color"},toggleDetailsPanelButtonClosedColor:{...Vd,property:"color"},toggleDetailsPanelButtonCursor:{...Nd,property:"cursor"},detailsPanelBackgroundColor:{...Pd,property:"background-color"},detailsPanelBorderTopColor:{...Pd,property:"border-top-color"},detailsPanelLabelsColor:{...Bd,property:"color"},detailsPanelLabelsFontSize:{...Bd,property:"font-size"},detailsPanelItemsGap:{...Od,property:"grid-gap"},detailsPanelPadding:{...Od,property:"padding"}}}),Nt,Dt,e=>class extends e{#qe;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{};const e=this.baseElement._updateDetailsCellHeight;this.baseElement._updateDetailsCellHeight=t=>{t&&e.call(this.baseElement,t)},this.baseElement.rowDetailsRenderer=this.#Ye.bind(this)}#Ye=async(e,t,r)=>{e.addEventListener("mousedown",e=>e.stopImmediatePropagation(),!0);const o=this.getRowDetailsTemplate(r.item);e.innerHTML="",e.append(o.content.cloneNode(!0))};getRowDetailsTemplate(e){const t=this.#qe.reduce((e,{path:t,header:r})=>t&&r?{...e,[t]:r}:e,{}),r=this.rowDetailsRenderer?.(e,t)??((e,t)=>`\n <div class="row-details">\n ${Object.entries(e).map(([e,r])=>{return`<div class="row-details__item" >\n <div class="row-details__label">${t[e]||(o=e,o.replace(/([A-Z])/g," $1").trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))}</div>\n ${(e=>{const t=yd(e);return"object"===t?xd(e):"xml"===t?(e=>fd(e,"xml"))(e):"array"===t?e.some(e=>"object"===yd(e))?xd(e):vd(e.join(",\n")):vd(e)})(r)}\n </div>`;var o}).join("\n")}\n</div>\n `)(e,t);switch(!0){case r instanceof HTMLTemplateElement:return r;case"string"==typeof r:return Object.assign(document.createElement("template"),{innerHTML:r});default:throw new Error("rowDetailsRenderer should return a string or a template")}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",e=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:e.detail}))})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"columns"===e&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#qe=Array.from(this.children).map(e=>({path:e.getAttribute("path"),header:e.getAttribute("header"),type:e.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce((t,r)=>{const o=e.getAttribute(r);return o&&(t[r]=o),t},{})}))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const e=JSON.parse(this.columnsAttr);gd(e)&&(this.columns=e)}catch(e){console.error('could not parse data string from attribute "columns" -',e.message)}}#Ue=({path:e,header:t,type:r,attrs:o})=>{const i=`descope-grid-${r}-column`;return`<${i} header="${t}" path="${e}" ${Object.entries(o).map(([e,t])=>`${e}="${t}"`).join(" ")}></${i}>`};get renderColumn(){return this.#Ue}set renderColumn(e){this.#Ue=e,this.renderColumns()}getColumnsTemplate(){return this.#qe?.reduce?.((e,t)=>e+(this.renderColumn?.(t||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#Ye.bind(this)},0)}renderColumns(){const e=this.getColumnsTemplate();e&&(this.reassignRowDetailsRenderer(),this.innerHTML=e)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(e){if(gd(e)&&this.grid.items!==e&&(this.grid.items=e,this.grid.selectedItems)){const e=new Set(this.grid.items.map(e=>e[this.uniqueColumnId]??e)),t=this.grid.selectedItems.filter(t=>e.has(t[this.uniqueColumnId]??t));this.grid.selectedItems.length!==t.length&&(this.grid.selectedItems=t)}}get columns(){return this.#qe}set columns(e){this.#qe=e,this.renderColumns()}get paths(){return this.columns.map(e=>e.path)}get uniqueColumnId(){return this.getAttribute("unique-column-id")}})(Ft({delegatesFocus:!1,slots:[""],wrappedEleName:"vaadin-grid",style:()=>`\n /*css*/\n vaadin-grid {\n overflow: hidden;\n height: 100%;\n min-height: 300px;\n }\n vaadin-grid-cell-content {\n display: flex;\n }\n vaadin-grid::part(selected-row-cell) {\n background-image: none;\n box-shadow: none;\n background-color: inherit;\n }\n vaadin-grid::part(details-cell) {\n border-top-style: dashed;\n border-top-width: 1px;\n }\n vaadin-grid .row-details {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(max(200px, calc(100%/4 - var(${jd.cssVarList.detailsPanelItemsGap}))), 1fr));\n width: 100%;\n }\n vaadin-grid .row-details__item:has(.row-details__value.code) {\n grid-column: 1 / -1;\n order: 2;\n }\n vaadin-grid .row-details__value.text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n }\n vaadin-grid .row-details__value.code {\n margin-top: 5px;\n max-height: 120px;\n overflow: scroll;\n font-size: 0.85em;\n }\n vaadin-grid vaadin-icon.toggle-details-button {\n margin: auto;\n }\n /*!css*/\n\t\t`,excludeAttrsSync:["columns","tabindex","style"],componentName:Cd}));customElements.define(Cd,jd);const Fd=He("multi-select-combo-box"),{host:Wd,inputField:_d,inputElement:$d,placeholder:Hd,toggle:qd,clearButton:Yd,label:Ud,requiredIndicator:Gd,helperText:Zd,errorMessage:Qd,chip:Jd,chipLabel:Kd,overflowChipFirstBorder:Xd,overflowChipSecondBorder:ec}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},chip:{selector:"vaadin-multi-select-combo-box-chip"},chipLabel:{selector:"vaadin-multi-select-combo-box-chip::part(label)"},overflowChipFirstBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::before"},overflowChipSecondBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::after"}},tc=Be(Lt({mappings:{hostWidth:{...Wd,property:"width"},hostDirection:{...Wd,property:"direction"},fontSize:[{},Wd],chipFontSize:{...Kd,property:"font-size"},fontFamily:[Ud,Hd,_d,Zd,Qd,Kd],labelFontSize:{...Ud,property:"font-size"},labelFontWeight:{...Ud,property:"font-weight"},labelTextColor:[{...Ud,property:"color"},{...Gd,property:"color"}],errorMessageTextColor:{...Qd,property:"color"},errorMessageIcon:{...Qd,property:"background-image"},errorMessageIconSize:{...Qd,property:"background-size"},errorMessageIconPadding:{...Qd,property:"padding-inline-start"},errorMessageIconRepeat:{...Qd,property:"background-repeat"},errorMessageIconPosition:{...Qd,property:"background-position"},errorMessageFontSize:{...Qd,property:"font-size"},inputHeight:{..._d,property:"min-height"},inputBackgroundColor:{..._d,property:"background-color"},inputBorderColor:{..._d,property:"border-color"},inputBorderWidth:{..._d,property:"border-width"},inputBorderStyle:{..._d,property:"border-style"},inputBorderRadius:{..._d,property:"border-radius"},labelRequiredIndicator:{...Gd,property:"content"},inputValueTextColor:{..._d,property:"color"},inputPlaceholderTextColor:{...Hd,property:"color"},inputDropdownButtonCursor:[{...qd,property:"cursor"},{...Yd,property:"cursor"}],inputDropdownButtonColor:[{...qd,property:"color"},{...Yd,property:"color"}],inputDropdownButtonSize:[{...qd,property:"font-size"},{...Yd,property:"font-size"}],inputDropdownButtonOffset:[{...qd,property:"margin-right"},{...qd,property:"margin-left"}],inputOutlineColor:{..._d,property:"outline-color"},inputOutlineWidth:{..._d,property:"outline-width"},inputOutlineStyle:{..._d,property:"outline-style"},inputOutlineOffset:{..._d,property:"outline-offset"},inputHorizontalPadding:[{...$d,property:"padding-left"},{...$d,property:"padding-right"},{..._d,property:"padding-inline-start"}],inputVerticalPadding:[{..._d,property:"padding-top"},{..._d,property:"padding-bottom"}],chipTextColor:{...Kd,property:"color"},chipBackgroundColor:[{...Jd,property:"background-color"},{...Xd,property:"border-color"},{...ec,property:"border-color"}],labelPosition:{...Ud,property:"position"},labelTopPosition:{...Ud,property:"top"},labelLeftPosition:{...Ud,property:"left"},labelHorizontalPosition:[{...Ud,property:"left"},{...Ud,property:"right"}],inputTransformY:{...Ud,property:"transform"},inputTransition:{...Ud,property:"transition"},marginInlineStart:{...Ud,property:"margin-inline-start"},placeholderOpacity:{...Hd,property:"opacity"},inputVerticalAlignment:{..._d,property:"align-items"},overlayBackground:{property:()=>tc.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>tc.cssVarList.overlay.textColor},overlayBorder:{property:()=>tc.cssVarList.overlay.border},overlayFontSize:{property:()=>tc.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>tc.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>tc.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>tc.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>tc.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>tc.cssVarList.overlay.itemPaddingInlineEnd}}}),Nt,Zt({name:"overlay",selector:"vaadin-multi-select-combo-box-internal",mappings:{backgroundColor:{selector:"vaadin-multi-select-combo-box-scroller"},minHeight:{selector:"vaadin-multi-select-combo-box-overlay"},margin:{selector:"vaadin-multi-select-combo-box-overlay"},cursor:{selector:"vaadin-multi-select-combo-box-item"},fontFamily:{selector:"vaadin-multi-select-combo-box-item"},textColor:{selector:"vaadin-multi-select-combo-box-item",property:"color"},fontSize:{selector:"vaadin-multi-select-combo-box-item"},itemBoxShadow:{selector:"vaadin-multi-select-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Ut({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),Qt,Dt,e=>class extends e{static get observedAttributes(){return["readonly"]}#J=({displayName:e,value:t,label:r})=>{const o=document.createElement("span");return o.setAttribute("data-name",r),o.setAttribute("data-id",t),o.textContent=e||r,o.outerHTML};#V;#Ge=[];get defaultValues(){const e=this.getAttribute("default-values");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "default-values" -',e.message)}return[]}get renderItem(){return this.#J}set renderItem(e){this.#J=e,this.renderItems()}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" -',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}get allowCustomValues(){return"true"===this.getAttribute("allow-custom-value")}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data and default-values must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.renderItem?.(t||{})||""),"")}renderItems(){const e=this.getItemsTemplate();e&&(this.innerHTML=e)}updateSelectedItems(){const e=this.baseElement.selectedItems?.map(e=>e.getAttribute("data-id"))||[];e.length>0&&(this.value=e),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(e){return e}setComboBoxDescriptor(){const e=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),t=this;Object.defineProperties(this.inputElement,{value:{...e,set(r){const o=t.customValueTransformFn(r)||"";o!==this.value&&e.set.call(this,o)}}})}#Ze(e){return Array.from(new Map(e.map(e=>[e.getAttribute("data-id"),e])).values())}#K(){const e=Array.from(this.children),t=this.#Ze(e);e.length?(this.removeAttribute("has-no-options"),t.forEach(e=>{Object.defineProperty(e,"data-name",{value:e.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(e,"data-id",{value:e.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(e,t,r)=>{e.innerHTML=r.item.outerHTML}}#X(){const e=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");e._attachOverlay=()=>{e.bringToFront()},e._detachOverlay=()=>{},e._enterModalState=()=>{}}#Qe(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",e=>{const t=this.#J({label:e.detail,displayName:e.detail,value:e.detail});this.innerHTML+=t,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,e.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const e=new RegExp(this.pattern);if(this.value.some(t=>!e.test(t)))return{patternMismatch:!0}}return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const e=this;this.baseElement.checkValidity=()=>e.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#Qe(),this.renderItems(),Fe(this,this.renderItems.bind(this),{includeAttrs:["data"]}),We(this,this.#K.bind(this)),Ye(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#X()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#Je(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#Je(){this.#Ge=this.baseElement.selectedItems?.map(e=>e.getAttribute("data-id"))||[]}set value(e){if(e&&e.length>0){const t=this.baseElement.items?.filter(t=>e.includes(t["data-id"]));if(this.allowCustomValues){const r=t?.map(e=>e.getAttribute("data-id"))||[],o=e.filter(e=>!r.includes(e));if(o.length){const t=o.reduce((e,t)=>e+this.#J({label:t,displayName:t,value:t}),"");return this.innerHTML+=t,void setTimeout(()=>{this.value=e},0)}}const r=t?.map(e=>e.getAttribute("data-id"))||[];((e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;const r=e.slice().sort(),o=t.slice().sort();for(let e=0;e<r.length;e++)if(r[e]!==o[e])return!1;return!0})(this.#Ge,r)||(this.baseElement.selectedItems=t)}else this.baseElement.selectedItems=[]}get value(){return this.#Ge}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"readonly"===e&&this.onReadOnlyChange(null!==r&&"true"===r)}onReadOnlyChange(e){e?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",e):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}})(Ft({slots:["","prefix"],wrappedEleName:"vaadin-multi-select-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${at(tc.cssVarList)}\n\t\t\n vaadin-multi-select-combo-box::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t${ct("vaadin-multi-select-combo-box")}\n\t\t${dt("vaadin-multi-select-combo-box")}\n\n\t\tvaadin-multi-select-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-multi-select-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-multi-select-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n align-self: center;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\tvaadin-multi-select-combo-box[readonly] [slot="input"] {\n flex-grow: 1;\n flex-basis: 4em;\n\t\t}\n\n\t\t::part(input-field) {\n padding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${ht("vaadin-multi-select-combo-box")}\n :host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {\n display: block;\n }\n\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -4px;\n right: -4px;\n border-left-width: 0;\n border-inline-start-style: solid;\n border-inline-start-width: 2px;\n }\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -8px;\n right: -8px;\n }\n\n :host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {\n display: none;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-multi-select-combo-box::part(toggle-button),\n vaadin-multi-select-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t`,excludeAttrsSync:["tabindex","size","data","placeholder","style"],componentName:Fd,includeForwardProps:["items","renderer","selectedItems"]}));customElements.define(Fd,tc);const rc=He("modal"),oc=["opened"],ic=Be(Lt({mappings:{overlayBackgroundColor:{property:()=>ic.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>ic.cssVarList.overlay.shadow},overlayWidth:{property:()=>ic.cssVarList.overlay.width}}}),Zt({name:"overlay",selector:"",mappings:{hostDisplay:{selector:()=>":host(.descope-modal)",property:"display",important:!0},backgroundColor:[{selector:()=>"::part(content)",property:"background-color"},{selector:()=>"::part(overlay)",property:"background-color"}],width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened","style"]}}),Nt,Dt,e=>class extends e{static get observedAttributes(){return[].concat(e.observedAttributes||[],oc)}get opened(){return"true"===this.getAttribute("opened")}handleOpened(){this.opened?this.style.display="":this.style.display="none"}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"opened"===e&&this.handleOpened()}init(){super.init?.(),this.style.display="none",setTimeout(()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#X(),Ye(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#X(){const e=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");e._attachOverlay=()=>{e.bringToFront(),N("\n :host {\n display: flex!important;\n }\n ",this.baseElement)},e._detachOverlay=()=>{this.baseElement.style.display="none"},e._enterModalState=()=>{},e.close=()=>!1}})(Ft({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:rc}));customElements.define(rc,ic);const nc=window.customElements.get("vaadin-notification-container");if(!nc)throw new Error("could not get vaadin-notification-container class");customElements.define(He("notification-container"),class extends nc{});const ac=He("notification-card"),sc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},lc=Be(Lt({mappings:{hostMinWidth:{selector:sc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:sc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:sc.content,property:"border-width"},borderColor:{selector:sc.content,property:"border-color"},borderStyle:{selector:sc.content,property:"border-style"},borderRadius:[{selector:sc.content,property:"border-radius"},{selector:sc.overlay,property:"border-radius"}],verticalPadding:[{selector:sc.content,property:"padding-top"},{selector:sc.content,property:"padding-bottom"}],horizontalPadding:[{selector:sc.content,property:"padding-right"},{selector:sc.content,property:"padding-left"}]}}),e=>class extends e{close(){this.baseElement.addEventListener("animationend",()=>{this.remove(),this.dispatchEvent(new Event("card-closed"))}),this.setAttribute("opened","false")}constructor(){super(),this.baseElement.innerHTML='\n <div part="root">\n <div part="content">\n <slot></slot>\n </div>\n <div part="close">\n <slot name="close"></slot>\n </div>\n </div>\n ',this.closeEle=this.shadowRoot.querySelector('[part="close"]')}init(){super.init?.(),this.closeEle.onclick=()=>{this.close()}}})(Ft({slots:[],wrappedEleName:"vaadin-notification-card",style:()=>'\n vaadin-notification-card {\n box-shadow: none;\n }\n ::part(overlay) {\n box-shadow: none;\n background: none;\n }\n\n [part="close"] {\n cursor: pointer;\n display: flex;\n }\n\n [part="content"] {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n [part="root"] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n ',excludeAttrsSync:["tabindex","style"],componentName:ac}));customElements.define(ac,lc);const dc=He("notification"),cc=Be(Nt,Dt,Pt,e=>class t extends e{#Ke;constructor(){super();const e=this;Object.defineProperty(this.baseElement,"_container",{get:()=>(t._container||(t._container=document.createElement("descope-notification-container"),t._container.style.position="absolute",document.body.appendChild(t._container)),t._container.isConnected||setTimeout(()=>e.parentNode.appendChild(t._container)),t._container)}),Object.defineProperty(this.baseElement,"_card",{get:()=>e.#Ke}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#Ke.close()}init(){super.init?.(),this.createCard(),Ye(this,this.#Ke),$e(this.#Ke,this,{includeAttrs:["opened"]}),this.baseElement.renderer=e=>{Array.from(this.childNodes).forEach(t=>e.appendChild(t))}}get isContainerEmpty(){return!t._container.children.length}removeContainer(){t._container.remove()}removeNotification(){this.remove(),this.isContainerEmpty&&this.removeContainer()}createCard(){this.#Ke=document.createElement("descope-notification-card"),this.#Ke.addEventListener("card-closed",this.removeNotification.bind(this))}})(Ft({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:dc}));customElements.define(dc,cc);const pc=He("mappings-field-internal"),uc=er({componentName:pc,baseSelector:"div"}),hc=He("mappings-field"),{host:mc,helperText:gc,errorMessage:bc,mappingItem:yc,labels:fc,labelsText:vc,valueLabel:xc,attrLabel:Cc,separator:wc,labelsContainer:Ic}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},Mc=Be(Lt({mappings:{hostWidth:{...mc,property:"width"},hostDirection:{...mc,property:"direction"},fontSize:[{},mc,{...wc,property:"margin-top"}],fontFamily:[gc,bc,fc],separatorFontSize:{...wc,property:"font-size"},labelsFontSize:{...vc,property:"font-size"},labelsLineHeight:[{...vc,property:"line-height"},{...fc,property:"line-height"}],labelTextColor:[{...fc,property:vr.cssVarList.textColor},{...wc,property:"color"}],itemMarginBottom:{...yc,property:"margin-bottom"},valueLabelMinWidth:{...xc,property:"min-width"},attrLabelMinWidth:{...Cc,property:"min-width"},labelsMarginBottom:{...Ic,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Nt,Ut({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Dt,e=>class extends e{get defaultValues(){const e=this.getAttribute("default-values");if(e)try{return JSON.parse(e)}catch(e){console.error('could not parse data string from attribute "default-values" -',e.message)}return[]}setDefaultValues(){const e=this.defaultValues;Object.keys(e).length>0&&(this.inputElement.value=e)}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${pc}\n tabindex="-1"\n ></${pc}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(pc),Ye(this,this.inputElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","default-values","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),$e(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(Ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-mappings-field-internal [part="labels"] {\n display: none;\n grid-template-columns: 1fr var(${Mc.cssVarList.separatorWidth}) 1fr var(${Mc.cssVarList.removeButtonWidth});\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"],\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n ${vr.cssVarList.fontWeight}: 500;\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"] {\n grid-column: 1 / span 1;\n }\n\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n grid-column: 3 / span 1;\n }\n\n descope-mapping-item::part(wrapper) {\n display: grid;\n grid-template-columns: 1fr var(${Mc.cssVarList.separatorWidth}) 1fr var(${Mc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:hc}));customElements.define(pc,class extends uc{#Xe;static get observedAttributes(){return[].concat(uc.observedAttributes||[],["label-value","label-attr","button-label","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"])}isValidDataType(e){try{return e.every(e=>"object"==typeof e&&!Array.isArray(e)&&1===Object.getOwnPropertyNames(e).length&&"string"==typeof e[Object.keys(e)[0]]&&""!==e[Object.keys(e)[0]].trim())}catch(e){return!1}}get labelValue(){return this.getAttribute("label-value")||"Value"}get labelAttr(){return this.getAttribute("label-attr")||"Attribute"}get buttonLabel(){return this.getAttribute("button-label")||"Add mapping"}get options(){return this.getAttribute("options")||[]}addNewMappingItem(e){const t=document.createElement("descope-mapping-item");return t.setAttribute("bordered","true"),this.mappingsContainerEle.appendChild(t),Ye(this,t,{includeAttrs:["size","full-width","separator","options","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),setTimeout(()=>{this.setCustomValidity(""),t.addEventListener("mapping-item-removed",()=>{t===this.#Xe&&(this.resetInvalidIndication(),this.#Xe=void 0),t.remove(),this.setCustomValidity("")}),this.dispatchEvent(new CustomEvent("mapping-item-added",{bubbles:!0,composed:!0})),e&&t.focus()},0),t}get items(){return Array.from(this.mappingsContainerEle.querySelectorAll("descope-mapping-item"))}get value(){return this.items.reduce((e,t)=>t.value?[...e,t.value]:e,[])}set value(e){if(!this.isValidDataType(e))return void console.error("received invalid value to set - should be an array of objects with one key-value pair");const t=this.items;if(t.length>e.length)for(let r=e.length;r<t.length;r++)this.mappingsContainerEle.removeChild(t[r]);e.forEach((e,r)=>{const o=t[r];if(o)o.value=e;else{const t=this.addNewMappingItem(!1);setTimeout(()=>{t.value=e},0)}})}constructor(){super(),this.innerHTML='\n <div class="labels-container" part="labels"></div>\n <div class="mappings-container"></div>\n <div class="button-container"></div>\n ',this.labelsEle=this.querySelector(".labels-container"),this.mappingsContainerEle=this.querySelector(".mappings-container"),this.buttonContainer=this.querySelector(".button-container")}initLabels(){this.labelsEle.innerHTML=`\n <descope-text variant="body2" part="value-label">${this.labelValue}</descope-text>\n <descope-text variant="body2" part="attr-label">${this.labelAttr}</descope-text>\n `}initAddButton(){this.buttonContainer.innerHTML=`\n <descope-button variant="link" mode="primary" disabled="${this.isDisabled}">\n <vaadin-icon icon="vaadin:plus"></vaadin-icon>\n ${this.buttonLabel}\n </descope-button>\n `;const e=this.querySelector("descope-button");e.onclick=()=>{this.addNewMappingItem(!0)},Ye(this,e,{includeAttrs:["disabled"]})}#et(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",e=>{e.isTrusted&&(this.#Xe||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#Xe)&&this.#Xe?.checkValidity()&&(this.resetInvalidIndication(),this.#Xe.removeAttribute("invalid"),this.#Xe=void 0)}),We(this.mappingsContainerEle,this.#et.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const e=this.items.find(e=>!e.checkValidity());return e?e.validity:{}}#tt(e){e&&(this.#Xe=this.items.find(e=>!e.checkValidity()),this.#Xe?.reportValidity(),this.#Xe?.setAttribute("invalid","true"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"label-value"!==e&&"label-attr"!==e||this.initLabels(),"button-label"===e&&this.initAddButton(),"invalid"===e&&this.#tt("true"===r),"readonly"===e&&this.toggleAttribute("inert","true"===r)}});const Sc=He("mapping-item"),Ac=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Ec=er({componentName:Sc,baseSelector:"div"});customElements.define(Sc,class extends Ec{static get observedAttributes(){return[].concat(Ec.observedAttributes||[],Ac,["separator","options","invalid","disabled"])}get separator(){return this.getAttribute("separator")||"map to"}get value(){const e=this.attributeInput.value,t=this.valueInput.value;return e&&t?{[e]:t}:null}set value(e){if(1!==Object.entries(e).length)return void console.error("descope-mapping item expected expects only one key-value pair in the value but received: ",e);const[t,r]=Object.entries(e)[0];this.valueInput.value=r,this.attributeInput.value=t,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper" part="wrapper">\n <descope-text-field required="true"></descope-text-field>\n <div class="separator" part="separator">${this.separator}</div>\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n required="true"\n >\n </descope-combo-box>\n <descope-button variant="link" mode="primary">\n <vaadin-icon icon="vaadin:minus"></vaadin-icon>\n </descope-button>\n </div>\n\t`,N("\n .wrapper {\n display: flex;\n }\n .separator {\n text-align: center;\n flex-shrink: 0;\n }\n ",this),this.valueInput=this.shadowRoot.querySelector("descope-text-field"),this.attributeInput=this.shadowRoot.querySelector("descope-combo-box"),this.inputs=[this.valueInput,this.attributeInput],this.removeButton=this.shadowRoot.querySelector("descope-button"),Ye(this,this.valueInput,{includeAttrs:Ac}),Ye(this,this.attributeInput,{includeAttrs:[...Ac,"options"],mapAttrs:{options:"data"}}),Ye(this,this.removeButton,{includeAttrs:["disabled"]})}initRemoveButton(){this.removeButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("mapping-item-removed",{bubbles:!0,composed:!0})))}init(){super.init?.(),this.initRemoveButton()}getValidity(){const e=this.attributeInput.value,t=this.valueInput.value;return e&&t?{}:{badInput:!0}}reportValidity(){this.inputs.forEach(e=>e.reportValidity())}focus(){(this.checkValidity()||!this.valueInput.checkValidity()?this.valueInput:this.attributeInput).focus()}handleSeparatorChange(){this.shadowRoot.querySelector(".separator").textContent=this.separator}#rt(e){"true"===e&&(this.valueInput.value||(this.valueInput.setAttribute("invalid","true"),this.valueInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)),this.attributeInput.value||(this.attributeInput.setAttribute("invalid","true"),this.attributeInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"separator"===e&&this.handleSeparatorChange(),"invalid"===e&&this.#rt(r)}}),customElements.define(hc,Mc);const Tc=k("badge");class kc extends(ue({componentName:Tc,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n :host > div {\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ",this)}}const zc=I(ne({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{}}}),ae,se)(kc),Lc=He("user-attribute");class Nc extends(Ot({componentName:Lc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="root">\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>\n <div class="content-wrapper">\n <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>\n <div class="btn-wrapper">\n <descope-badge mode="default" bordered="true" size="xs"></descope-badge>\n <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjAwMDIgMC45OTIxNDlDMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNSAxMC4wMDAyIDEuMDE2MTVMOC4yMjQxOSAzLjAwODE1SDIuOTkyMTlDMi40NjQxOSAzLjAwODE1IDIuMDA4MTkgMy40NDAxNSAyLjAwODE5IDMuOTkyMTVWMTIuMDA4MkMyLjAwODE5IDEyLjUzNjIgMi40NDAxOSAxMi45OTIyIDIuOTkyMTkgMTIuOTkyMkg1LjUzNjE5QzUuODQ4MTkgMTMuMDQwMiA2LjE2MDE5IDEzLjA0MDIgNi40NzIxOSAxMi45OTIySDExLjAwODJDMTEuNTM2MiAxMi45OTIyIDExLjk5MjIgMTIuNTYwMiAxMS45OTIyIDEyLjAwODJWNy43ODQxNkwxMy45MzYyIDUuNjI0MTVMMTQuMDA4MiA1LjY3MjE1VjExLjk4NDJDMTQuMDA4MiAxMy42NjQyIDEyLjY2NDIgMTUuMDA4MiAxMS4wMDgyIDE1LjAwODJIMy4wMTYxOUMxLjMzNjE5IDE1LjAwODIgLTAuMDA3ODEyNSAxMy42NjQyIC0wLjAwNzgxMjUgMTEuOTg0MlYzLjk5MjE1Qy0wLjAwNzgxMjUgMi4zMzYxNSAxLjMzNjE5IDAuOTkyMTQ5IDMuMDE2MTkgMC45OTIxNDlIMTAuMDAwMlpNMTEuMjcyMiAyLjYyNDE1TDEyLjYxNjIgNC4xMTIxNUw3LjcyMDE5IDkuNjgwMTZDNy41MDQxOSA5LjkyMDE2IDYuODMyMTkgMTAuMjMyMiA1LjY4MDE5IDEwLjYxNjJDNS42NTYxOSAxMC42NDAyIDUuNjA4MTkgMTAuNjQwMiA1LjU2MDE5IDEwLjYxNjJDNS40NjQxOSAxMC41OTIyIDUuMzkyMTkgMTAuNDcyMiA1LjQ0MDE5IDEwLjM3NjJDNS43NTIxOSA5LjI0ODE2IDYuMDQwMTkgOC41NTIxNiA2LjI1NjE5IDguMzEyMTZMMTEuMjcyMiAyLjYyNDE1Wk0xMS45MjAyIDEuODU2MTVMMTMuMjg4MiAwLjMyMDE0OUMxMy42NDgyIC0wLjA4Nzg1MTYgMTQuMjcyMiAtMC4xMTE4NTIgMTQuNjgwMiAwLjI3MjE0OUMxNS4wODgyIDAuNjMyMTQ5IDE1LjExMjIgMS4yODAxNSAxNC43NTIyIDEuNjg4MTVMMTMuMjY0MiAzLjM2ODE1TDExLjkyMDIgMS44NTYxNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K></vaadin-icon>\n </descope-button>\n <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTZDMSAxNy4xIDEuOSAxOCAzIDE4SDExQzEyLjEgMTggMTMgMTcuMSAxMyAxNlY0SDFWMTZaTTMgNkgxMVYxNkgzVjZaTTEwLjUgMUw5LjUgMEg0LjVMMy41IDFIMFYzSDE0VjFIMTAuNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K></vaadin-icon>\n </descope-button>\n </div>\n </div>\n </div>\n\t\t',N(`\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n container-type: inline-size;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n @container (max-width: 529px) {\n .root {\n flex-wrap: wrap;\n }\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .content-wrapper {\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n max-width: 100%;\n min-width: 0;\n }\n\n .label {\n flex-grow: 1;\n width: 100%;\n }\n\n .value {\n flex-grow: 1;\n }\n\n descope-badge {\n margin-inline-end: 10px;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${vr.cssVarList.textColor});\n }\n\n :host([readonly="true"]) descope-button {\n visibility: hidden;\n }\n `,this),this.deleteButton=this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]'),this.editButton=this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]'),this.badge=this.shadowRoot.querySelector("descope-badge"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]'),this.valueText=this.shadowRoot.querySelector('descope-text[data-id="value-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onValueOrPlaceholderChange(){const e=this.value||this.placeholder,t=this.value?"primary":"secondary";this.valueText.innerText=e,this.valueText.setAttribute("title",e),this.valueText.setAttribute("mode",t)}onBadgeLabelChange(){this.badgeLabel?(this.badge.innerText=this.badgeLabel,this.badge.style.display=""):this.badge.style.display="none"}onBadgeTooltipTextChange(){this.badge.setAttribute("title",this.badgeTooltipText||this.badgeLabel)}onIsRequiredChange(){this.labelText.classList.toggle("required",this.isRequired)}get label(){return this.getAttribute("label")||""}get value(){return this.getAttribute("value")||""}get placeholder(){return this.getAttribute("placeholder")||""}get isRequired(){return"true"===this.getAttribute("required")}get badgeLabel(){return this.getAttribute("badge-label")||""}get badgeTooltipText(){return this.getAttribute("badge-tooltip-text")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.handleDeleteButtonVisibility(),this.deleteButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,composed:!0}))),this.editButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("edit-clicked",{bubbles:!0,composed:!0})))}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("label"===e?this.onLabelChange():"value"===e||"placeholder"===e?this.onValueOrPlaceholderChange():"required"===e?this.onIsRequiredChange():"badge-label"===e?this.onBadgeLabelChange():"badge-tooltip-text"===e&&this.onBadgeTooltipTextChange(),"value"!==e&&"required"!==e||this.handleDeleteButtonVisibility())}}const{host:Dc,textFields:Vc,buttons:Pc,badge:Bc,labelText:Rc,contentWrapper:Oc}={host:{selector:()=>":host"},textFields:{selector:"descope-text"},labelText:{selector:'descope-text[data-id="label-text"]'},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},contentWrapper:{selector:" .content-wrapper"}},jc=Be(Lt({mappings:{hostWidth:{...Dc,property:"width"},hostMinWidth:{...Dc,property:"min-width"},hostMaxWidth:{...Dc,property:"max-width"},hostDirection:[{...Dc,property:"direction"},{...Vc,property:vr.cssVarList.hostDirection},{...Pc,property:Io.cssVarList.hostDirection},{...Bc,property:zc.cssVarList.hostDirection}],labelMinWidth:{...Rc,property:"min-width"},contentMinWidth:{...Oc,property:"min-width"},badgeMaxWidth:{...Bc,property:"max-width"},itemsGap:[{property:"gap"},{...Oc,property:"gap"}]}}),Nt,Dt)(Nc);customElements.define(Tc,zc),customElements.define(Lc,jc);const Fc=He("user-auth-method");class Wc extends(Ot({componentName:Fc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="root">\n <div class="text-wrapper">\n <slot name="method-icon"></slot>\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-button class="btn unfulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n <descope-button class="btn fulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="fulfilled-button-icon"></slot>\n </descope-button>\n <div class="status-indicator hidden">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==></vaadin-icon>\n </div>\n <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>\n </div>\n </div>\n\t\t',N('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n min-width: 0;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n min-width: 0;\n }\n\n .status-indicator {\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n padding-inline-end: 1em;\n }\n\n .hidden {\n display: none;\n }\n\n .hidden-btn {\n width: 0;\n overflow: hidden;\n opacity: 0;\n pointer-events: none;\n }\n\n slot[name="method-icon"]{\n display: inline-flex;\n align-items: center;\n }\n ',this),this.unfulfilledButton=this.shadowRoot.querySelector(".btn.unfulfilled"),this.fulfilledButton=this.shadowRoot.querySelector(".btn.fulfilled"),this.statusIndicator=this.shadowRoot.querySelector(".status-indicator"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}updateButtonLabel(e,t){let r=e.querySelector("span");t?(r||(r=document.createElement("span"),e.appendChild(r)),r.innerText=t):r&&e.removeChild(r)}onFulfilledChange(){this.isFulfilled?(this.unfulfilledButton.classList.add("hidden"),this.handleFulfilled()):(this.fulfilledButton.classList.add("hidden"),this.handleUnfulfilled())}handleFulfilled(){this.fulfilledButton.classList.toggle("hidden",!this.isFulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isFulfilledEditable)}handleUnfulfilled(){this.unfulfilledButton.classList.toggle("hidden",!this.isUnfulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isUnfulfilledEditable)}get label(){return this.getAttribute("label")||""}get unfulfilledButtonLabel(){return this.getAttribute("button-label")||""}get fulfilledButtonLabel(){return this.getAttribute("fulfilled-button-label")||""}get isFulfilled(){return"true"===this.getAttribute("fulfilled")}get isFulfilledEditable(){return"true"===this.getAttribute("fulfilled-editable")}get isUnfulfilledEditable(){return"false"!==this.getAttribute("unfulfilled-editable")}init(){this.onLabelChange(),this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel),this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel),this.onFulfilledChange(),this.unfulfilledButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0}))),this.fulfilledButton.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("fulfilled-button-clicked",{bubbles:!0,composed:!0}))})}static get observedAttributes(){return["label","fulfilled","button-label","fulfilled-button-label","fulfilled-editable","unfulfilled-editable"].concat(super.observedAttributes)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("label"===e?this.onLabelChange():"fulfilled"===e?this.onFulfilledChange():"button-label"===e?this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel):"fulfilled-button-label"===e?this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel):"fulfilled-editable"===e&&this.isFulfilled?this.handleFulfilled():"unfulfilled-editable"!==e||this.isFulfilled||this.handleUnfulfilled())}}const{host:_c,textField:$c,buttons:Hc,badge:qc,textWrapper:Yc,methodIconSlot:Uc}={host:{selector:()=>":host"},textField:{selector:"descope-text"},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"},methodIconSlot:{selector:'slot[name="method-icon"]'}},Gc=Be(Lt({mappings:{hostWidth:{..._c,property:"width"},hostMinWidth:{..._c,property:"min-width"},hostMaxWidth:{..._c,property:"max-width"},hostDirection:[{..._c,property:"direction"},{...$c,property:vr.cssVarList.hostDirection},{...Hc,property:Io.cssVarList.hostDirection},{...qc,property:zc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Yc,property:"gap"}],iconSize:[{...Uc,property:"width"},{...Uc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:yo.cssVarList.fill}]}}),Nt,Dt)(Wc);customElements.define(Fc,Gc);const Zc=He("saml-group-mappings-internal"),Qc=er({componentName:Zc,baseSelector:""}),Jc=He("saml-group-mappings"),{host:Kc,groupInput:Xc,errorMessage:ep}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},tp=Be(Lt({mappings:{hostWidth:{...Kc,property:"width"},hostDirection:{...Kc,property:"direction"},groupNameInputMarginBottom:{...Xc,property:"margin-bottom"},errorMessageIcon:{...ep,property:"background-image"},errorMessageIconSize:{...ep,property:"background-size"},errorMessageIconPadding:{...ep,property:"padding-inline-start"},errorMessageIconRepeat:{...ep,property:"background-repeat"},errorMessageIconPosition:{...ep,property:"background-position"},errorMessageFontSize:{...ep,property:"font-size"}}}),Nt,Ut({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Dt,e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${Zc}\n tabindex="-1"\n ></${Zc}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Zc),Ye(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),$e(this,this.inputElement,{includeAttrs:["invalid"]})}})(Ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-text-field {\n width: auto;\n }\n\n descope-mappings-field {\n display: block;\n }\n ",excludeAttrsSync:["tabindex","label-group","label-value","label-attr","button-label","separator","options","error-message","style"],componentName:Jc}));customElements.define(Zc,class extends Qc{static get observedAttributes(){return["invalid"].concat(Qc.observedAttributes||[])}constructor(){super(),this.innerHTML='\n <descope-text-field variant="body2" bordered="true"></descope-text-field>\n <descope-mappings-field></descope-mappings-field>\n ',this.groupInputElement=this.querySelector("descope-text-field"),this.mappingsElement=this.querySelector("descope-mappings-field")}resetInvalidIndication(){this.removeAttribute("invalid")}handleMappingsInvalidChange(e){e.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",e=>{e.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),Ye(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),Ye(this,this.mappingsElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","readonly","disabled","data-errormessage-pattern-mismatch"]}),Fe(this.mappingsElement,this.handleMappingsInvalidChange.bind(this),{includeAttrs:["invalid"]})}get value(){return{group:this.groupInputElement.value,mappings:this.mappingsElement.value}}set value(e){e?.group&&"string"==typeof e.group&&(this.groupInputElement.value=e.group),Array.isArray(e?.mappings)&&(this.mappingsElement.value=e.mappings)}getValidity(){return this.groupInputElement.checkValidity()?this.mappingsElement.checkValidity()?{}:this.mappingsElement.validity:this.groupInputElement.validity}#ot(e){if(e){if(!this.groupInputElement.checkValidity())return void this.groupInputElement.setAttribute("invalid","true");this.mappingsElement.checkValidity()||this.mappingsElement.setAttribute("invalid","true")}}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"invalid"===e&&this.#ot("true"===r)}}),customElements.define(Jc,tp);const rp=He("radio-button"),op=Be(Lt({mappings:{cursor:[{},{selector:"label"}],fontSize:[{selector:"label"},{}],labelTextColor:{selector:"label",property:"color"},fontFamily:{selector:"label"},radioSize:[{selector:"::part(radio)",property:"height"},{selector:"::part(radio)",property:"width"}],radioBackgroundColor:{selector:"::part(radio)",property:"background-color"},radioMargin:{selector:"::part(radio)",property:"margin"},radioCheckedSize:{selector:"::part(radio)::after",property:"border-width"},radioCheckedColor:{selector:"::part(radio)::after",property:"border-color"},radioBorderColor:{selector:"::part(radio)",property:"border-color",fallback:"none"},radioBorderWidth:{selector:"::part(radio)",property:"border-width",fallback:0},radioBorderStyle:{selector:"::part(radio)",property:"border-style",fallback:"solid"}}}),Ut({proxyProps:["setSelectionRange"]}),Dt,e=>class extends e{constructor(){super(),this.baseElement.checkValidity=()=>{}}init(){this.baseElement.addEventListener("checked-changed",e=>{this.dispatchEvent(new CustomEvent("checked-changed",{detail:e.detail},{bubbles:!0,composed:!0}))}),super.init?.(),We(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(Ft({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:rp})),ip=He("radio-group"),np=Be(Lt({mappings:{...Bi,buttonsSpacing:{selector:"::part(group-field)",property:"justify-content"},buttonsRowGap:{selector:"::part(group-field)",property:"row-gap"},buttonsColumnGap:{selector:"::part(group-field)",property:"column-gap"},itemsLabelColor:{selector:()=>`::slotted(${op.componentName})`,property:op.cssVarList.labelTextColor}}}),Nt,Ut({proxyProps:["setSelectionRange"]}),Dt,e=>class extends e{#J=({value:e,label:t})=>`<descope-radio-button value="${e}">${t}</descope-radio-button>`;#V;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(rp)}),this.baseElement.__filterRadioButtons=e=>e.filter(e=>e.localName===rp),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" - ',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.#J?.(t||{})||""),"")}renderItems(){const e=this.getItemsTemplate();e&&(this.innerHTML=e)}init(){super.init?.(),this.inputElement=this.baseElement,this.renderItems(),Fe(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),Ye(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),We(this,({addedNodes:e})=>{e.forEach(e=>{e.setAttribute("size",this.size)})}),Fe(this,()=>{this.items.forEach(e=>{e.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(Ft({slots:["","prefix"],wrappedEleName:"vaadin-radio-group",style:()=>`\n :host {\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n vaadin-radio-group {\n padding: 0;\n width: 100%;\n }\n\n ${ht("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:ip,includeForwardProps:["value"]}));customElements.define(ip,np),customElements.define(rp,op);const ap=()=>!0,sp=e=>`<pre>${JSON.stringify(e,null,4)}</pre>`,lp=He("scopes-list"),dp=["checkbox","switch"];class cp extends(Ot({componentName:lp,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get isReadOnly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"sm"}#it(){return Array.from(this.shadowRoot.querySelector("div").children)}reportValidity(){this.checkValidity()}checkValidity(){return this.data.every(e=>!e.required||this.value.includes(e.id))}get value(){return this.#it().filter(e=>e.checked).map(e=>e.getAttribute("data-id"))}set value(e=[]){this.#it().forEach(t=>{t.checked=e.includes(t.getAttribute("data-id"))})}get variant(){const e=this.getAttribute("variant");return dp.includes(e)?e:dp[0]}}const pp=Be(Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>gr.componentName,property:gr.cssVarList.hostDirection},{selector:()=>Or.componentName,property:Or.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${gr.componentName}[required="true"]`,property:gr.cssVarList.inputBorderColor},{selector:`${Or.componentName}[required="true"]`,property:Or.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${gr.componentName}[required="true"]`,property:gr.cssVarList.inputValueTextColor},{selector:`${Or.componentName}[required="true"]`,property:Or.cssVarList.knobColor}]}}),(({itemRenderer:e=sp,validateSchema:t=ap,slotName:r,rerenderAttrsList:o=[]})=>i=>class extends i{#V=[];#B(e){if(!t)return!0;const r=t(e);return!0===r||(console.error("Data schema validation failed",r||""),!1)}#R(){const e=r?`*[slot="${r}"]`:":not([slot])";this.baseElement.querySelectorAll(e).forEach(e=>e.remove())}#O(){this.#R(),this.data.forEach((t,r)=>{const o="string"==typeof(i=e(t,r,this))?(e=>{const t=document.createElement("template");return t.innerHTML=e,t})(i).content:i instanceof HTMLTemplateElement?i.content:(console.error("Invalid template",i),null);var i;this.baseElement.appendChild(o?.cloneNode(!0))})}set data(e){this.#B(e)&&(this.#V=e,this.#O())}get data(){return this.#V}init(){super.init?.(),Fe(this,e=>{e.includes("data")?this.#j():this.#O()},{includeAttrs:[...o,"data"]})}#j(){const e=this.getAttribute("data");if(e)try{this.data=JSON.parse(e)}catch(t){console.warn("Invalid JSON data",e)}}})({itemRenderer:({id:e,desc:t,required:r=!1},o,i)=>{const n="checkbox"===i.variant?gr:Or;return`\n <${n.componentName}\n bordered="true"\n size=${i.size}\n label="${t}"\n data-id="${e}"\n readonly="${r||i.isReadOnly}"\n required="${r}"\n checked="true"\n ></${n.componentName}>\n`},rerenderAttrsList:["size","variant"]}),Nt,Dt)(cp),up=k("list-item"),hp=I(ne({mappings:{verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],backgroundColor:{},borderColor:{},borderStyle:{},borderWidth:{},borderRadius:{},outline:{},cursor:{},gap:{},maxWidth:{selector:()=>":host"},alignItems:{},flexDirection:{},transition:{}}}),ae,se,e=>class extends e{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",N("\n slot {\n width: 100%;\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n :host {\n display: block;\n }\n ",this)}},e=>class extends e{init(){super.init?.(),this.baseElement.addEventListener("mousedown",e=>{e.preventDefault(),this.setAttribute("active","true"),window.addEventListener("mouseup",()=>this.removeAttribute("active"),{once:!0})})}})(ue({componentName:up,baseSelector:"slot"}));customElements.define(up,hp);const mp=k("list");class gp extends(ue({componentName:mp,baseSelector:".wrapper"})){static get observedAttributes(){return["variant","readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <slot></slot>\n <slot name="empty-state">\n No item...\n </slot>\n </div>\n\t',N('\n .wrapper {\n overflow: auto;\n display: grid;\n max-height: 100%;\n width: 100%;\n }\n\n :host {\n display: inline-flex;\n width: 100%;\n }\n slot[name="empty-state"] {\n justify-content: center;\n align-items: center;\n display: flex;\n flex-grow: 1;\n }\n\n :host slot[name="empty-state"] {\n display: none;\n }\n :host([empty]) slot[name="empty-state"] {\n display: flex;\n }\n ::slotted(:not([slot])) {\n width: 100%;\n }\n ',this)}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}#nt(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#at(){this.items.forEach(e=>{let t=e;t.localName!==hp.componentName&&(t=e.querySelector(hp.componentName));const r="tiles"===this.variant?"tile":"row";t?.setAttribute("variant",r)})}init(){super.init?.(),A(this,()=>{this.#nt(),this.#at(),this.#st()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#st(){this.items.forEach(e=>{this.isReadOnly?e.setAttribute("inert",""):e.removeAttribute("inert")})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("variant"===e?this.#at():"readonly"===e&&this.#st())}}const bp=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},maxHeight:{selector:()=>":host"},minHeight:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],hostDirection:{selector:()=>":host",property:"direction"},fontFamily:{},gap:{},backgroundColor:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{},gridTemplateColumns:{},maxItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"max-width"},minItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"min-width"},itemsHorizontalAlign:{selector:()=>"::slotted(*)",property:"justify-self"},emptyStateTextColor:{selector:()=>'slot[name="empty-state"]',property:"color"},emptyStateTextFontFamily:{selector:()=>'slot[name="empty-state"]',property:"font-family"}}}),ae,se)(gp);customElements.define(mp,bp),customElements.define(lp,pp);const yp=He("third-party-app-logo");class fp extends(Ot({componentName:yp,baseSelector:".wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div class="wrapper">\n <div class="third-party-app-logo-wrapper">\n <div class="third-party-app-logo"></div>\n </div>\n <div class="arrows">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMTQ0OTIgMTUuNjQ1TDcuNDk5OTIgMTRMMi44MzMyNSAxOC42NjY3TDcuNDk5OTIgMjMuMzMzM0w5LjE0NDkyIDIxLjY4ODNMNy4zMDE1OSAxOS44MzMzSDI0Ljk5OTlWMTcuNUg3LjMwMTU5TDkuMTQ0OTIgMTUuNjQ1WiIgZmlsbD0iIzYzNkM3NCIvPgo8cGF0aCBkPSJNMTkuODU1IDEyLjM1NTNMMjEuNSAxNC4wMDAzTDI2LjE2NjcgOS4zMzM2NkwyMS41IDQuNjY2OTlMMTkuODU1IDYuMzExOTlMMjEuNjk4MyA4LjE2Njk5SDRWMTAuNTAwM0gyMS42OTgzTDE5Ljg1NSAxMi4zNTUzWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K"></descope-icon>\n </div>\n <div class="company-logo-wrapper">\n <descope-logo st-height="100%"></descope-logo>\n </div>\n </div>\n\t\t\t',N('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\n .wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: max-content;\n }\n\n\t\t\t\t.third-party-app-logo {\n flex-shrink: 0;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t}\n\n .company-logo-wrapper, .third-party-app-logo-wrapper {\n flex-shrink: 0;\n display: inline-flex;\n }\n\n .company-logo-wrapper {\n justify-content: flex-end;\n }\n\n .third-party-app-logo-wrapper {\n justify-content: flex-start;\n }\n\n .arrows {\n flex-shrink: 0;\n display: flex;\n }\n ',this)}}const vp=">.company-logo-wrapper",xp=">.third-party-app-logo-wrapper",Cp=Be(Lt({mappings:{logoMaxHeight:[{selector:vp,property:"height"},{selector:xp,property:"height"}],logoMaxWidth:[{selector:vp,property:"max-width"},{selector:xp,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:hn.componentName,property:hn.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:yo.componentName,property:yo.cssVarList.fill}}}),Nt,Dt)(fp);customElements.define(uo,go),customElements.define(bo,yo),customElements.define(yp,Cp);const wp=He("security-questions-setup"),Ip=["full-width","readonly","size","label-type","question-label","question-placeholder","question-data-errormessage-value-missing","answer-label","answer-placeholder","answer-data-errormessage-value-missing","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Mp=["count","questions"];class Sp extends(Ot({componentName:wp,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get count(){return Number(this.getAttribute("count"))||0}#lt(){const e=Array.from({length:this.count}).map((e,t)=>`\n <div class="question-wrapper">\n <descope-combo-box\n data-id="${t}"\n item-label-path="data-name"\n item-value-path="data-id"\n bordered="true"\n required="true"\n clear-button-visible="true"\n ></descope-combo-box>\n\n <descope-text-field\n data-id="${t}"\n required="true"\n bordered="true"\n minlength="2"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=e.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.comboBoxes.forEach(e=>{e.addEventListener("change",e=>{this.updateRemainingCombosData(e.target),this.getAttachedTextField(e.target).value=""}),e.data=this.data}),this.#dt(Ip)}getAttachedTextField(e){const t=`descope-text-field[data-id="${e.getAttribute("data-id")}"]`;return this.baseElement.querySelector(t)}filterData(e){const t=this.data.filter(t=>t.value===e||!this.selectedQuestionIds.includes(t.value));return t}reportValidity(){return this.inputs.reverse().forEach(e=>e.reportValidity()),this.checkValidity()}checkValidity(){return[...this.comboBoxes,...this.textFields].every(e=>e.checkValidity())}updateRemainingCombosData(e){this.comboBoxes.filter(t=>t!==e).forEach(e=>{e.data=this.filterData(e.value)})}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(e){return console.error(wp,"Error parsing questions attribute",e),[]}}get data(){return this.questions.map(({id:e,text:t})=>({value:e,label:t}))}get comboBoxes(){return Array.from(this.baseElement.querySelectorAll("descope-combo-box"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get inputs(){return Array.from(this.baseElement.querySelectorAll("descope-combo-box, descope-text-field"))}get selectedQuestionIds(){return this.comboBoxes.map(e=>e.value)}get value(){return this.comboBoxes.map(e=>({id:e.value,answer:this.getAttachedTextField(e).value}))}set value(e=[]){e.forEach((e,t)=>{const r=this.comboBoxes[t],o=this.getAttachedTextField(r);r.value=e.id,o.value=e.answer})}#ct(e,t,r){null===r?e.removeAttribute(t):e.setAttribute(t,r)}#dt(e){const t={question:this.comboBoxes,answer:this.textFields};e.forEach(e=>{const[r,...o]=e.split("-"),i=t[r]||this.inputs,n=t[r]?o.join("-"):e;i.forEach(t=>{this.#ct(t,n,this.getAttribute(e))})})}init(){super.init?.(),Fe(this,()=>{this.#lt()},{includeAttrs:Mp}),Fe(this,this.#dt.bind(this),{includeAttrs:Ip})}}const Ap=Be(Lt({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>co.componentName,property:co.cssVarList.hostDirection},{selector:()=>ji.componentName,property:ji.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Nt,Dt)(Sp);customElements.define(wp,Ap);const Ep=He("security-questions-verify"),Tp=["full-width","readonly","size","answer-placeholder","answer-data-errormessage-value-missing","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],kp=["question-mode"],zp={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},Lp=[...Tp,...kp],Np=["questions"];class Dp extends(Ot({componentName:Ep,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#lt(){const e=this.questions.map(({id:e,text:t})=>`\n <div class="question-wrapper">\n <descope-text\n data-id="${e}"\n >${t}</descope-text>\n\n <descope-text-field\n data-id="${e}"\n required="true"\n bordered="true"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=e.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.#dt(Lp),this.texts.forEach(e=>{const t=this.textFields.find(t=>t.getAttribute("data-id")===e.getAttribute("data-id"));t&&(e.onclick=t.focus.bind(t))})}reportValidity(){return this.textFields.reverse().forEach(e=>e.reportValidity()),this.checkValidity()}checkValidity(){return this.textFields.every(e=>e.checkValidity())}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(e){return console.error(Ep,"Error parsing questions attribute",e),[]}}get texts(){return Array.from(this.baseElement.querySelectorAll("descope-text"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get elements(){return Array.from(this.baseElement.querySelectorAll("descope-text, descope-text-field"))}get value(){return this.textFields.map(e=>({id:e.getAttribute("data-id"),answer:e.value}))}set value(e=[]){e.forEach(({id:e,answer:t})=>{const r=this.textFields.find(t=>t.getAttribute("data-id")===e);r&&(r.value=t)})}#ct(e,t,r){null===r?e.removeAttribute(t):e.setAttribute(t,r)}#pt(e){switch(!0){case Tp.includes(e):return this.textFields;case kp.includes(e):return this.texts;default:return[]}}#dt(e){e.forEach(e=>{this.#pt(e).forEach(t=>{this.#ct(t,zp[e]||e,this.getAttribute(e))})})}init(){super.init?.(),Fe(this,()=>{this.#lt()},{includeAttrs:Np}),Fe(this,this.#dt.bind(this),{includeAttrs:Lp})}}const Vp=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>vr.componentName,property:vr.cssVarList.hostDirection},{selector:()=>ji.componentName,property:ji.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>vr.componentName,property:vr.cssVarList.textAlign},questionFontSize:{selector:()=>vr.componentName,property:vr.cssVarList.fontSize},questionFontFamily:{selector:()=>vr.componentName,property:vr.cssVarList.fontFamily},questionCursor:{selector:()=>vr.componentName,property:"cursor"},errorMessageIcon:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageFontSize}}}),Nt,Dt)(Dp);customElements.define(Ep,Vp);const Pp=/^\d+$/,Bp=He("hybrid-field"),Rp={shared:["bordered","full-width","label-type","size","disabled","readonly","required","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],email:["label","placeholder","data-errormessage-value-missing-email","data-errormessage-pattern-mismatch-email","external-input"],phone:{countryCode:["phone-input-label","country-input-label","country-input-placeholder","restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","data-errormessage-value-missing-phone"],inputBox:["label","restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","data-errormessage-value-missing-phone"]}},Op={email:{"data-errormessage-value-missing-email":"data-errormessage-value-missing","data-errormessage-pattern-mismatch-email":"data-errormessage-pattern-mismatch"},phone:{"phone-input-label":"label","phone-minlength":"minlength","phone-format-value":"format-value","phone-strict-validation":"strict-validation","data-errormessage-value-missing-phone":"data-errormessage-value-missing"}},jp="descope-phone-field",Fp=Ot({componentName:Bp,baseSelector:"div"}),Wp=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>"descope-email-field",property:"direction"},{selector:()=>"descope-phone-field",property:"direction"},{selector:()=>"descope-phone-input-box-field",property:"direction"}],errorMessageIcon:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIcon},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconSize},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconPadding},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconRepeat},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconPosition},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageFontSize},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageFontSize}]}}),Nt,Dt)(class extends Fp{#ut=!1;#ht;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper">\n <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>\n <descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>\n <descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>\n </div>\n\t\t`,N("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n padding: 0;\n gap: 0;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n descope-email-field,\n descope-phone-field,\n descope-phone-input-box-field {\n grid-area: 1/1;\n width: 100%;\n height: 100%;\n }\n .hidden {\n visibility: hidden;\n }\n ",this)}get isExternalInput(){return"true"===this.getAttribute("external-input")}get emailInputEle(){return this.isExternalInput?this.emailInput.externalInput:this.emailInput.inputElement}get phoneVariant(){return"inputBox"===this.getAttribute("phone-variant")?this.phoneInputBoxInput:this.phoneCountryCodeInput}get defaultCode(){const e=this.phoneCountryCodeInput.countryCodes?.[0]||"";return this.getAttribute("default-code")||e}get activeInputEle(){return this.activeInput===this.emailInput?this.emailInputEle:this.phoneVariant.phoneNumberInputEle}get value(){return this.activeInput?.value||""}set value(e){this.handleActiveInput(e),this.activeInput.value=e}async init(){super.init?.(),this.initInputs(),this.updateAttrs(),this.toggleInputVisibility(),await this.waitForInputs(),this.initInputEles(),this.overrideEmailInputType(),this.overrideEmailSetAttribute()}waitForInputs(){return new Promise(e=>{const t=setInterval(()=>{this.emailInputEle&&(clearInterval(t),e())})})}initInputs(){this.emailInput=this.shadowRoot.querySelector("descope-email-field"),this.phoneCountryCodeInput=this.shadowRoot.querySelector(jp),this.phoneInputBoxInput=this.shadowRoot.querySelector("descope-phone-input-box-field"),this.inputs=[this.emailInput,this.phoneCountryCodeInput,this.phoneInputBoxInput],this.activeInput=this.emailInput}initInputEles(){[this.emailInputEle,this.phoneCountryCodeInput.phoneNumberInputEle,this.phoneInputBoxInput.phoneNumberInputEle].forEach(e=>{e.addEventListener("input",this.onValueChange.bind(this))})}overrideEmailInputType(){this.emailInputEle.addEventListener("focus",()=>{this.emailInputEle.setAttribute("type","text")}),this.emailInputEle.addEventListener("blur",()=>{setTimeout(()=>{this.emailInputEle.setAttribute("type","email")})})}overrideEmailSetAttribute(){const e=this.emailInput.setAttribute.bind(this.emailInputEle);this.emailInputEle.setAttribute=(t,r)=>("type"!==t||"email"!==r||!this.emailInput.hasAttribute("focused"))&&e(t,r)}updateAttrs(){Ye(this,this.emailInput,{includeAttrs:Rp.email,mapAttrs:Op.email}),Ye(this,this.phoneCountryCodeInput,{includeAttrs:Rp.phone.countryCode,mapAttrs:Op.phone}),Ye(this,this.phoneInputBoxInput,{includeAttrs:Rp.phone.inputBox,mapAttrs:Op.phone}),this.inputs.forEach(e=>Ye(this,e,{includeAttrs:Rp.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#ht=this.activeInputEle.selectionStart,this.handleActiveInput(this.activeInput.value)}handleActiveInput(e){const t=(e=>Pp.test(e.replaceAll("+","").replaceAll("-","")))(e)?this.phoneVariant:this.emailInput;this.activeInput!==t&&this.setActiveInput(t)}setActiveInput(e){const t=this.activeInput.value;this.activeInput=e,this.setActiveInputValue(t),this.#ut&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{this.activeInputEle.focus(),this.activeInputEle.setSelectionRange?.(this.#ht,this.#ht)})}setActiveInputValue(e){const t=(e=>e.replace(/\+\d+-/,""))(e),r=this.activeInput.localName===jp?`${this.phoneCountryCodeInput.countryCodeItems}-${t}`:t;this.activeInput.value=r}toggleInputVisibility(){this.inputs.forEach(e=>{e!==this.activeInput?e.classList.add("hidden"):e.classList.remove("hidden")})}reportValidity(){this.#ut=!0;const e=this.activeInputEle,t=e.type;return e.setAttribute("type","text"),setTimeout(()=>{e.setSelectionRange?.(e.value.length,e.value.length),e.setAttribute("type",t)}),this.activeInput.reportValidity()}checkValidity(){return this.activeInput.checkValidity()}});customElements.define(Bp,Wp);const _p=He("alert");class $p extends(Ot({componentName:_p,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="icon"></div>\n <div class="content">\n <descope-enriched-text>\n <slot></slot>\n </descope-enriched-text>\n </div>\n </div>\n ',N('\n :host {\n display: inline-flex;\n }\n :host > div {\n display: flex;\n width: 100%;\n }\n :host([empty="true"]) {\n display: none;\n }\n .icon {\n flex-shrink: 0;\n }\n .content {\n display: flex;\n flex-wrap: wrap;\n white-space: normal;\n overflow-wrap: break-word;\n }\n ',this)}init(){super.init?.(),this.slotEle=this.shadowRoot.querySelector("slot"),this.textComp=this.shadowRoot.querySelector("descope-enriched-text"),this.slotEle.addEventListener("slotchange",this.handleSlotChange.bind(this)),T(this.textComp,this,{includeAttrs:["empty"]}),A(this,this.handleChildrenChange.bind(this)),Ye(this,this.textComp,{includeAttrs:["variant","full-width","link-target-blank"]})}handleChildrenChange(){this.textComp.textContent=this.textContent}handleSlotChange(){const e=this.slotEle.assignedNodes({flatten:!0});e.length&&(this.textComp.textContent=e[0]?.textContent||"")}}const{icon:Hp}={icon:{selector:()=>".icon"}},qp=Be(Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:De.componentName,property:De.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:De.componentName,property:De.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:De.componentName,property:De.cssVarList.textAlign}],icon:[{...Hp,property:"content"},{...Hp,property:"display",fallback:"none"}],iconSize:[{...Hp,property:"width"},{...Hp,property:"height"}]}}),Lt({componentNameOverride:He("enriched-text")}),Lt({componentNameOverride:He("text")}),Nt,Dt)($p);customElements.define(_p,qp);const Yp=He("hcaptcha"),Up=["enabled","site-key"],Gp=er({componentName:Yp,baseSelector:":host > div"}),Zp=Be(Lt({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],maxHeight:[{selector:">img",property:"height"},{selector:">#hcaptcha",property:"height"}],maxWidth:[{selector:">img",property:"max-width"},{selector:">hcaptcha",property:"max-width"}]}}),Nt,Dt)(class extends Gp{static get observedAttributes(){return Up.concat(Gp.observedAttributes||[])}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"enabled"===e&&this.toggleCaptchaEles("true"===r)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="hcaptcha"></span>\n <input id="hcaptcha-input" type="hidden" name="hcaptcha" required />\n <img src="https://imgs.descope.com/connectors/templates/hcaptcha/hcaptcha-big.png" alt="hcaptcha"/>\n </div>\n <slot></slot>\n\t',N("\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #hcaptcha-input {\n display: none;\n }\n :host #hcaptcha .hcaptcha-logo {\n height: 100%;\n }\n :host #hcaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n .hidden {\n display: none;\n }\n ",this),this.captchaEle=this.shadowRoot.querySelector("#hcaptcha"),this.mockCaptchaEle=this.shadowRoot.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge"),this.inputElement=this.shadowRoot.querySelector("input")}init(){super.init?.(),A(this,this.updatePreview.bind(this)),this.inputElement.getValidity=null,this.inputElement.checkValidity=null}toggleCaptchaEles(e){e?(this.captchaEle.style.display="",this.mockCaptchaEle.style.display="none"):(this.captchaEle.style.display="none",this.mockCaptchaEle.style.display="")}updatePreview(){this.toggleCaptchaEles(this.enabled)}getValidity(){return this.inputElement.value?{}:{valueMissing:!0}}checkValidity(){return!!this.inputElement.value}get siteKey(){return this.getAttribute("site-key")}get enabled(){return"true"===this.getAttribute("enabled")}});customElements.define(Yp,Zp);const Qp=(nu={surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}},Object.keys(nu).reduce((e,t)=>{const r=nu[t];return Object.assign(e,{[t]:nt(r)})},{})),Jp={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},Kp=ft({fonts:Jp}).fonts,Xp={colors:Qp,typography:{h1:{font:Kp.font1.family,weight:"900",size:"48px"},h2:{font:Kp.font1.family,weight:"800",size:"38px"},h3:{font:Kp.font1.family,weight:"600",size:"28px"},subtitle1:{font:Kp.font2.family,weight:"500",size:"22px"},subtitle2:{font:Kp.font2.family,weight:"400",size:"20px"},body1:{font:Kp.font1.family,weight:"400",size:"16px"},body2:{font:Kp.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:Jp,direction:"ltr"},eu=(e=>bt(e,[],e=>gt({},e,mt(e))))(Xp),tu=(e=>Object.keys(e).reduce((t,r)=>{const o=e[r];return Object.assign(t,{[r]:Y(o)})},{}))({surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}}),ru={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},ou=Q({fonts:ru}).fonts,iu={colors:tu,typography:{h1:{font:ou.font1.family,weight:"900",size:"48px"},h2:{font:ou.font1.family,weight:"800",size:"38px"},h3:{font:ou.font1.family,weight:"600",size:"28px"},subtitle1:{font:ou.font2.family,weight:"500",size:"22px"},subtitle2:{font:ou.font2.family,weight:"400",size:"20px"},body1:{font:ou.font1.family,weight:"400",size:"16px"},body2:{font:ou.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:ru,direction:"ltr"};var nu;(e=>{Z(e,[],e=>G({},e,U(e)))})(iu);const au=Q(iu),su=Io.cssVarList,lu={primary:au.colors.primary,secondary:au.colors.secondary,success:au.colors.success,error:au.colors.error,surface:au.colors.surface},[du,cu,pu]=K({mode:lu},fo),uu={...du,[su.fontFamily]:au.fonts.font1.family,[su.cursor]:"pointer",[su.hostHeight]:"3em",[su.hostWidth]:"auto",[su.hostDirection]:au.direction,[su.borderRadius]:au.radius.sm,[su.borderWidth]:au.border.xs,[su.borderStyle]:"solid",[su.borderColor]:"transparent",[su.labelSpacing]:"0.25em",[su.textAlign]:"center",textAlign:{right:{[su.textAlign]:"right"},left:{[su.textAlign]:"left"},center:{[su.textAlign]:"center"}},[su.verticalPadding]:"1em",[su.horizontalPadding]:"0.875em",[su.outlineWidth]:iu.border.sm,[su.outlineOffset]:"0px",[su.outlineStyle]:"solid",[su.outlineColor]:"transparent",[su.iconSize]:"1.5em",size:{xs:{[su.fontSize]:"12px"},sm:{[su.fontSize]:"14px"},md:{[su.fontSize]:"16px"},lg:{[su.fontSize]:"18px"}},_square:{[su.hostHeight]:"3em",[su.hostWidth]:"3em",[su.verticalPadding]:"0"},_fullWidth:{[su.hostWidth]:"100%"},_loading:{[su.cursor]:"wait",[su.labelTextColor]:cu.main},_disabled:{[pu.main]:au.colors.surface.light,[pu.dark]:au.colors.surface.dark,[pu.light]:au.colors.surface.light,[pu.contrast]:au.colors.surface.main,[su.iconColor]:au.colors.surface.main},variant:{contained:{[su.labelTextColor]:cu.contrast,[su.backgroundColor]:cu.main,_hover:{[su.backgroundColor]:cu.dark,_loading:{[su.backgroundColor]:cu.main}},_active:{[su.backgroundColor]:cu.main}},outline:{[su.labelTextColor]:cu.main,[su.borderColor]:cu.main,_hover:{[su.labelTextColor]:cu.dark,[su.borderColor]:cu.dark},_active:{[su.labelTextColor]:cu.main,[su.borderColor]:cu.main}},link:{[su.labelTextColor]:cu.main,[su.horizontalPadding]:"0.125em",_hover:{[su.labelTextColor]:cu.dark,[su.labelTextDecoration]:"underline"},_active:{[su.labelTextColor]:cu.main}}},_focused:{[su.outlineColor]:cu.light}},hu={...su,...pu};var mu=Object.freeze({__proto__:null,default:uu,vars:hu});const gu=He("input-wrapper"),bu=ft(Xp),[yu,fu,vu]=Mt({labelTextColor:bu.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",valueTextColor:bu.colors.surface.contrast,placeholderTextColor:bu.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:bu.colors.surface.dark,errorMessageTextColor:bu.colors.error.main,successMessageTextColor:bu.colors.success.main,borderWidth:bu.border.xs,borderRadius:bu.radius.xs,borderColor:"transparent",outlineWidth:bu.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputIconSize:"1em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",textAlign:"start",backgroundColor:bu.colors.surface.main,fontFamily:bu.fonts.font1.family,direction:bu.direction,overlayOpacity:"0.3",errorMessageIcon:"",errorMessageIconSize:"0",errorMessageIconPadding:"0",errorMessageIconPosition:"0 0.4em",errorMessageFontSize:"0.8125rem",errorMessageIconRepeat:"no-repeat",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},labelType:{static:{valueInputHeight:"3em",valueInputMarginBottom:"auto"},floating:{labelPosition:"absolute",labelTopPosition:"0",labelHorizontalPosition:"0.9em",labelFontSize:"1em",placeholderOpacity:0,inputHeight:"3.5em",inputVerticalAlignment:"flex-end",inputTransformY:"translateY(1.55em)",inputTransition:"all 75ms ease-in-out",marginInlineStart:"0",valueInputHeight:"1.5702em",valueInputMarginBottom:"0.5em",_focused:{labelFontSize:"0.75em",inputTransformY:"translateY(1.05em)",labelFontWeight:"400",placeholderOpacity:1},_readOnly:{placeholderOpacity:0},_hasValue:{inputTransformY:"translateY(1.05em)",labelFontSize:"0.75em",labelFontWeight:"400"}}},_fullWidth:{width:"100%"},_bordered:{outlineWidth:bu.border.xs,borderColor:bu.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:bu.colors.error.main}},_focused:{outlineColor:bu.colors.surface.light,_invalid:{outlineColor:bu.colors.error.main}},_disabled:{labelTextColor:bu.colors.surface.light,borderColor:bu.colors.surface.light,valueTextColor:bu.colors.surface.light,placeholderTextColor:bu.colors.surface.light,helperTextColor:bu.colors.surface.light,backgroundColor:bu.colors.surface.main}},gu);var xu=Object.freeze({__proto__:null,default:yu,refs:fu,vars:vu});const Cu=ft(Xp),wu=ji.cssVarList,Iu={[wu.hostWidth]:fu.width,[wu.hostMinWidth]:fu.minWidth,[wu.hostDirection]:fu.direction,[wu.fontSize]:fu.fontSize,[wu.fontFamily]:fu.fontFamily,[wu.labelFontSize]:fu.labelFontSize,[wu.labelFontWeight]:fu.labelFontWeight,[wu.labelTextColor]:fu.labelTextColor,[wu.labelRequiredIndicator]:fu.requiredIndicator,[wu.errorMessageTextColor]:fu.errorMessageTextColor,[wu.inputValueTextColor]:fu.valueTextColor,[wu.inputPlaceholderColor]:fu.placeholderTextColor,[wu.inputBorderWidth]:fu.borderWidth,[wu.inputBorderStyle]:fu.borderStyle,[wu.inputBorderColor]:fu.borderColor,[wu.inputBorderRadius]:fu.borderRadius,[wu.inputOutlineWidth]:fu.outlineWidth,[wu.inputOutlineStyle]:fu.outlineStyle,[wu.inputOutlineColor]:fu.outlineColor,[wu.inputOutlineOffset]:fu.outlineOffset,[wu.inputBackgroundColor]:fu.backgroundColor,[wu.inputHeight]:fu.inputHeight,[wu.inputHorizontalPadding]:fu.horizontalPadding,[wu.helperTextColor]:fu.helperTextColor,[wu.textAlign]:fu.textAlign,textAlign:{right:{[wu.inputTextAlign]:"right"},left:{[wu.inputTextAlign]:"left"},center:{[wu.inputTextAlign]:"center"}},[wu.labelPosition]:fu.labelPosition,[wu.labelTopPosition]:fu.labelTopPosition,[wu.labelHorizontalPosition]:fu.labelHorizontalPosition,[wu.inputTransformY]:fu.inputTransformY,[wu.inputTransition]:fu.inputTransition,[wu.marginInlineStart]:fu.marginInlineStart,[wu.placeholderOpacity]:fu.placeholderOpacity,[wu.inputVerticalAlignment]:fu.inputVerticalAlignment,[wu.valueInputHeight]:fu.valueInputHeight,[wu.valueInputMarginBottom]:fu.valueInputMarginBottom,[wu.inputIconOffset]:Cu.spacing.md,[wu.inputIconSize]:fu.inputIconSize,[wu.inputIconColor]:fu.placeholderTextColor,[wu.errorMessageIcon]:fu.errorMessageIcon,[wu.errorMessageIconSize]:fu.errorMessageIconSize,[wu.errorMessageIconPadding]:fu.errorMessageIconPadding,[wu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[wu.errorMessageIconPosition]:fu.errorMessageIconPosition,[wu.errorMessageFontSize]:fu.errorMessageFontSize};var Mu=Object.freeze({__proto__:null,default:Iu,textField:Iu,vars:wu});const Su=ft(Xp),Au=Xn.cssVarList,Eu={[Au.hostWidth]:fu.width,[Au.hostMinWidth]:fu.minWidth,[Au.hostDirection]:fu.direction,[Au.fontSize]:fu.fontSize,[Au.fontFamily]:fu.fontFamily,[Au.labelFontSize]:fu.labelFontSize,[Au.labelFontWeight]:fu.labelFontWeight,[Au.labelTextColor]:fu.labelTextColor,[Au.errorMessageTextColor]:fu.errorMessageTextColor,[Au.inputHorizontalPadding]:fu.horizontalPadding,[Au.inputHeight]:fu.inputHeight,[Au.inputBackgroundColor]:fu.backgroundColor,[Au.labelRequiredIndicator]:fu.requiredIndicator,[Au.inputValueTextColor]:fu.valueTextColor,[Au.inputPlaceholderTextColor]:fu.placeholderTextColor,[Au.inputBorderWidth]:fu.borderWidth,[Au.inputBorderStyle]:fu.borderStyle,[Au.inputBorderColor]:fu.borderColor,[Au.inputBorderRadius]:fu.borderRadius,[Au.inputOutlineWidth]:fu.outlineWidth,[Au.inputOutlineStyle]:fu.outlineStyle,[Au.inputOutlineColor]:fu.outlineColor,[Au.inputOutlineOffset]:fu.outlineOffset,[Au.revealButtonOffset]:Su.spacing.md,[Au.revealButtonSize]:fu.toggleButtonSize,[Au.revealButtonColor]:fu.placeholderTextColor,[Au.labelPosition]:fu.labelPosition,[Au.labelTopPosition]:fu.labelTopPosition,[Au.labelHorizontalPosition]:fu.labelHorizontalPosition,[Au.inputTransformY]:fu.inputTransformY,[Au.inputTransition]:fu.inputTransition,[Au.marginInlineStart]:fu.marginInlineStart,[Au.placeholderOpacity]:fu.placeholderOpacity,[Au.inputVerticalAlignment]:fu.inputVerticalAlignment,[Au.valueInputHeight]:fu.valueInputHeight,[Au.errorMessageIcon]:fu.errorMessageIcon,[Au.errorMessageIconSize]:fu.errorMessageIconSize,[Au.errorMessageIconPadding]:fu.errorMessageIconPadding,[Au.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Au.errorMessageIconPosition]:fu.errorMessageIconPosition,[Au.errorMessageFontSize]:fu.errorMessageFontSize};var Tu=Object.freeze({__proto__:null,default:Eu,vars:Au});const ku=vn.cssVarList,zu={[ku.hostWidth]:fu.width,[ku.hostMinWidth]:fu.minWidth,[ku.hostDirection]:fu.direction,[ku.fontSize]:fu.fontSize,[ku.fontFamily]:fu.fontFamily,[ku.labelFontSize]:fu.labelFontSize,[ku.labelFontWeight]:fu.labelFontWeight,[ku.labelTextColor]:fu.labelTextColor,[ku.errorMessageTextColor]:fu.errorMessageTextColor,[ku.inputValueTextColor]:fu.valueTextColor,[ku.inputPlaceholderColor]:fu.placeholderTextColor,[ku.inputBorderWidth]:fu.borderWidth,[ku.inputBorderStyle]:fu.borderStyle,[ku.inputBorderColor]:fu.borderColor,[ku.inputBorderRadius]:fu.borderRadius,[ku.inputOutlineWidth]:fu.outlineWidth,[ku.inputOutlineStyle]:fu.outlineStyle,[ku.inputOutlineColor]:fu.outlineColor,[ku.inputOutlineOffset]:fu.outlineOffset,[ku.inputBackgroundColor]:fu.backgroundColor,[ku.labelRequiredIndicator]:fu.requiredIndicator,[ku.inputHorizontalPadding]:fu.horizontalPadding,[ku.inputHeight]:fu.inputHeight,[ku.labelPosition]:fu.labelPosition,[ku.labelTopPosition]:fu.labelTopPosition,[ku.labelHorizontalPosition]:fu.labelHorizontalPosition,[ku.inputTransformY]:fu.inputTransformY,[ku.inputTransition]:fu.inputTransition,[ku.marginInlineStart]:fu.marginInlineStart,[ku.placeholderOpacity]:fu.placeholderOpacity,[ku.inputVerticalAlignment]:fu.inputVerticalAlignment,[ku.valueInputHeight]:fu.valueInputHeight,[ku.valueInputMarginBottom]:fu.valueInputMarginBottom,[ku.errorMessageIcon]:fu.errorMessageIcon,[ku.errorMessageIconSize]:fu.errorMessageIconSize,[ku.errorMessageIconPadding]:fu.errorMessageIconPadding,[ku.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[ku.errorMessageIconPosition]:fu.errorMessageIconPosition,[ku.errorMessageFontSize]:fu.errorMessageFontSize};var Lu=Object.freeze({__proto__:null,default:zu,vars:ku});const Nu=cn.cssVarList,Du={[Nu.hostWidth]:fu.width,[Nu.hostMinWidth]:fu.minWidth,[Nu.hostDirection]:fu.direction,[Nu.fontSize]:fu.fontSize,[Nu.fontFamily]:fu.fontFamily,[Nu.labelFontSize]:fu.labelFontSize,[Nu.labelFontWeight]:fu.labelFontWeight,[Nu.labelTextColor]:fu.labelTextColor,[Nu.errorMessageTextColor]:fu.errorMessageTextColor,[Nu.inputValueTextColor]:fu.valueTextColor,[Nu.labelRequiredIndicator]:fu.requiredIndicator,[Nu.inputPlaceholderColor]:fu.placeholderTextColor,[Nu.inputBorderWidth]:fu.borderWidth,[Nu.inputBorderStyle]:fu.borderStyle,[Nu.inputBorderColor]:fu.borderColor,[Nu.inputBorderRadius]:fu.borderRadius,[Nu.inputOutlineWidth]:fu.outlineWidth,[Nu.inputOutlineStyle]:fu.outlineStyle,[Nu.inputOutlineColor]:fu.outlineColor,[Nu.inputOutlineOffset]:fu.outlineOffset,[Nu.inputBackgroundColor]:fu.backgroundColor,[Nu.inputHorizontalPadding]:fu.horizontalPadding,[Nu.inputHeight]:fu.inputHeight,[Nu.labelPosition]:fu.labelPosition,[Nu.labelTopPosition]:fu.labelTopPosition,[Nu.labelHorizontalPosition]:fu.labelHorizontalPosition,[Nu.inputTransformY]:fu.inputTransformY,[Nu.inputTransition]:fu.inputTransition,[Nu.marginInlineStart]:fu.marginInlineStart,[Nu.placeholderOpacity]:fu.placeholderOpacity,[Nu.inputVerticalAlignment]:fu.inputVerticalAlignment,[Nu.valueInputHeight]:fu.valueInputHeight,[Nu.valueInputMarginBottom]:fu.valueInputMarginBottom,[Nu.errorMessageIcon]:fu.errorMessageIcon,[Nu.errorMessageIconSize]:fu.errorMessageIconSize,[Nu.errorMessageIconPadding]:fu.errorMessageIconPadding,[Nu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Nu.errorMessageIconPosition]:fu.errorMessageIconPosition,[Nu.errorMessageFontSize]:fu.errorMessageFontSize};var Vu=Object.freeze({__proto__:null,default:Du,vars:Nu});const Pu=da.cssVarList,Bu={[Pu.hostWidth]:fu.width,[Pu.hostMinWidth]:fu.minWidth,[Pu.hostDirection]:fu.direction,[Pu.fontSize]:fu.fontSize,[Pu.fontFamily]:fu.fontFamily,[Pu.labelTextColor]:fu.labelTextColor,[Pu.labelRequiredIndicator]:fu.requiredIndicator,[Pu.errorMessageTextColor]:fu.errorMessageTextColor,[Pu.inputBackgroundColor]:fu.backgroundColor,[Pu.inputValueTextColor]:fu.valueTextColor,[Pu.inputPlaceholderTextColor]:fu.placeholderTextColor,[Pu.inputBorderRadius]:fu.borderRadius,[Pu.inputBorderWidth]:fu.borderWidth,[Pu.inputBorderStyle]:fu.borderStyle,[Pu.inputBorderColor]:fu.borderColor,[Pu.inputOutlineWidth]:fu.outlineWidth,[Pu.inputOutlineStyle]:fu.outlineStyle,[Pu.inputOutlineColor]:fu.outlineColor,[Pu.inputOutlineOffset]:fu.outlineOffset,[Pu.inputResizeType]:"vertical",[Pu.inputMinHeight]:"5em",[Pu.errorMessageIcon]:fu.errorMessageIcon,[Pu.errorMessageIconSize]:fu.errorMessageIconSize,[Pu.errorMessageIconPadding]:fu.errorMessageIconPadding,[Pu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Pu.errorMessageIconPosition]:fu.errorMessageIconPosition,[Pu.errorMessageFontSize]:fu.errorMessageFontSize,textAlign:{right:{[Pu.inputTextAlign]:"right"},left:{[Pu.inputTextAlign]:"left"},center:{[Pu.inputTextAlign]:"center"}},_readonly:{[Pu.inputResizeType]:"none"}};var Ru=Object.freeze({__proto__:null,default:Bu,vars:Pu});const Ou=gr.cssVarList,ju="1.35em",Fu={[Ou.hostWidth]:fu.width,[Ou.hostDirection]:fu.direction,[Ou.fontSize]:fu.fontSize,[Ou.fontFamily]:fu.fontFamily,[Ou.labelTextColor]:fu.labelTextColor,[Ou.labelRequiredIndicator]:fu.requiredIndicator,[Ou.labelFontWeight]:"400",[Ou.labelLineHeight]:ju,[Ou.labelSpacing]:"1em",[Ou.errorMessageTextColor]:fu.errorMessageTextColor,[Ou.inputOutlineWidth]:fu.outlineWidth,[Ou.inputOutlineOffset]:fu.outlineOffset,[Ou.inputOutlineColor]:fu.outlineColor,[Ou.inputOutlineStyle]:fu.outlineStyle,[Ou.inputBorderRadius]:fu.borderRadius,[Ou.inputBorderColor]:fu.borderColor,[Ou.inputBorderWidth]:fu.borderWidth,[Ou.inputBorderStyle]:fu.borderStyle,[Ou.inputBackgroundColor]:fu.backgroundColor,[Ou.inputSize]:ju,[Ou.inputValueTextColor]:fu.valueTextColor,[Ou.errorMessageIcon]:fu.errorMessageIcon,[Ou.errorMessageIconSize]:fu.errorMessageIconSize,[Ou.errorMessageIconPadding]:fu.errorMessageIconPadding,[Ou.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Ou.errorMessageIconPosition]:fu.errorMessageIconPosition,[Ou.errorMessageFontSize]:fu.errorMessageFontSize};var Wu=Object.freeze({__proto__:null,default:Fu,vars:Ou});const _u="2px",$u=ft(Xp),Hu=Or.cssVarList,qu={[Hu.hostWidth]:fu.width,[Hu.hostDirection]:fu.direction,[Hu.fontSize]:fu.fontSize,[Hu.fontFamily]:fu.fontFamily,[Hu.inputOutlineWidth]:fu.outlineWidth,[Hu.inputOutlineOffset]:fu.outlineOffset,[Hu.inputOutlineColor]:fu.outlineColor,[Hu.inputOutlineStyle]:fu.outlineStyle,[Hu.trackBorderStyle]:fu.borderStyle,[Hu.trackBorderWidth]:fu.borderWidth,[Hu.trackBorderColor]:fu.borderColor,[Hu.trackBackgroundColor]:fu.backgroundColor,[Hu.trackBorderRadius]:$u.radius.md,[Hu.trackWidth]:"2.5em",[Hu.trackHeight]:"1.25em",[Hu.knobSize]:`calc(1em - ${_u})`,[Hu.knobRadius]:"50%",[Hu.knobTopOffset]:"1px",[Hu.knobLeftOffset]:_u,[Hu.knobColor]:fu.labelTextColor,[Hu.knobTransitionDuration]:"0.3s",[Hu.labelTextColor]:fu.labelTextColor,[Hu.labelFontWeight]:"400",[Hu.labelLineHeight]:"1.35em",[Hu.labelSpacing]:"1em",[Hu.labelRequiredIndicator]:fu.requiredIndicator,[Hu.errorMessageTextColor]:fu.errorMessageTextColor,[Hu.errorMessageIcon]:fu.errorMessageIcon,[Hu.errorMessageIconSize]:fu.errorMessageIconSize,[Hu.errorMessageIconPadding]:fu.errorMessageIconPadding,[Hu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Hu.errorMessageIconPosition]:fu.errorMessageIconPosition,[Hu.errorMessageFontSize]:fu.errorMessageFontSize,_checked:{[Hu.trackBorderColor]:fu.borderColor,[Hu.knobLeftOffset]:`calc(100% - var(${Hu.knobSize}) - ${_u})`,[Hu.knobColor]:fu.valueTextColor,[Hu.knobTextColor]:fu.valueTextColor},_disabled:{[Hu.knobColor]:$u.colors.surface.light,[Hu.trackBorderColor]:$u.colors.surface.light,[Hu.trackBackgroundColor]:$u.colors.surface.main,[Hu.labelTextColor]:fu.labelTextColor,_checked:{[Hu.knobColor]:$u.colors.surface.light,[Hu.trackBackgroundColor]:$u.colors.surface.main}},_invalid:{[Hu.trackBorderColor]:$u.colors.error.main,[Hu.knobColor]:$u.colors.error.main}};var Yu=Object.freeze({__proto__:null,default:qu,vars:Hu});const Uu=ft(Xp),Gu=Zr.cssVarList,[Zu,Qu,Ju]=Mt({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},Ur),{shadowColor:Ku}=Qu,Xu={...Zu,[Gu.itemsGrow]:"0",[Gu.hostWidth]:"100%",[Gu.boxShadow]:"none",[Gu.backgroundColor]:Uu.colors.surface.main,[Gu.backgroundImage]:"",[Gu.backgroundPositionX]:"center",[Gu.backgroundPositionY]:"center",[Gu.backgroundSize]:"cover",[Gu.backgroundRepeat]:"no-repeat",[Gu.color]:Uu.colors.surface.contrast,[Gu.borderRadius]:"0px",[Gu.hostDirection]:Uu.direction,[Gu.borderStyle]:"none",[Gu.borderWidth]:"unset",[Gu.borderColor]:"unset",verticalPadding:{sm:{[Gu.verticalPadding]:"5px"},md:{[Gu.verticalPadding]:"10px"},lg:{[Gu.verticalPadding]:"20px"}},horizontalPadding:{sm:{[Gu.horizontalPadding]:"5px"},md:{[Gu.horizontalPadding]:"10px"},lg:{[Gu.horizontalPadding]:"20px"}},direction:{row:{[Gu.flexDirection]:"row",[Gu.alignItems]:Qu.verticalAlignment,[Gu.justifyContent]:Qu.horizontalAlignment,[Gu.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[Ju.horizontalAlignment]:"space-between"}}},column:{[Gu.flexDirection]:"column",[Gu.alignItems]:Qu.horizontalAlignment,[Gu.justifyContent]:Qu.verticalAlignment,verticalAlignment:{spaceBetween:{[Ju.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[Gu.gap]:"10px"},md:{[Gu.gap]:"20px"},lg:{[Gu.gap]:"30px"}},shadow:{sm:{[Gu.boxShadow]:`${Uu.shadow.wide.sm} ${Ku}, ${Uu.shadow.narrow.sm} ${Ku}`},md:{[Gu.boxShadow]:`${Uu.shadow.wide.md} ${Ku}, ${Uu.shadow.narrow.md} ${Ku}`},lg:{[Gu.boxShadow]:`${Uu.shadow.wide.lg} ${Ku}, ${Uu.shadow.narrow.lg} ${Ku}`},xl:{[Gu.boxShadow]:`${Uu.shadow.wide.xl} ${Ku}, ${Uu.shadow.narrow.xl} ${Ku}`},"2xl":{[Ju.shadowColor]:"#00000050",[Gu.boxShadow]:`${Uu.shadow.wide["2xl"]} ${Ku}`}},"&borderRadius":{sm:{[Gu.borderRadius]:Uu.radius.sm},md:{[Gu.borderRadius]:Uu.radius.md},lg:{[Gu.borderRadius]:Uu.radius.lg},xl:{[Gu.borderRadius]:Uu.radius.xl},"2xl":{[Gu.borderRadius]:Uu.radius["2xl"]},"3xl":{[Gu.borderRadius]:Uu.radius["3xl"]}}},eh={...Gu,...Ju};var th=Object.freeze({__proto__:null,default:Xu,vars:eh});const rh=hn.cssVarList,oh={[rh.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var ih=Object.freeze({__proto__:null,default:oh,vars:rh});const nh=gn.cssVarList,ah={[nh.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var sh=Object.freeze({__proto__:null,default:ah,vars:nh});const lh=yn.cssVarList,dh={[lh.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var ch=Object.freeze({__proto__:null,default:dh,vars:lh});const ph=Q(iu),uh=vr.cssVarList,hh={[uh.hostDirection]:ph.direction,[uh.textLineHeight]:"1.35em",[uh.textAlign]:"start",[uh.textColor]:ph.colors.surface.dark,variant:{h1:{[uh.fontSize]:ph.typography.h1.size,[uh.fontWeight]:ph.typography.h1.weight,[uh.fontFamily]:ph.typography.h1.font},h2:{[uh.fontSize]:ph.typography.h2.size,[uh.fontWeight]:ph.typography.h2.weight,[uh.fontFamily]:ph.typography.h2.font},h3:{[uh.fontSize]:ph.typography.h3.size,[uh.fontWeight]:ph.typography.h3.weight,[uh.fontFamily]:ph.typography.h3.font},subtitle1:{[uh.fontSize]:ph.typography.subtitle1.size,[uh.fontWeight]:ph.typography.subtitle1.weight,[uh.fontFamily]:ph.typography.subtitle1.font},subtitle2:{[uh.fontSize]:ph.typography.subtitle2.size,[uh.fontWeight]:ph.typography.subtitle2.weight,[uh.fontFamily]:ph.typography.subtitle2.font},body1:{[uh.fontSize]:ph.typography.body1.size,[uh.fontWeight]:ph.typography.body1.weight,[uh.fontFamily]:ph.typography.body1.font},body2:{[uh.fontSize]:ph.typography.body2.size,[uh.fontWeight]:ph.typography.body2.weight,[uh.fontFamily]:ph.typography.body2.font}},mode:{primary:{[uh.textColor]:ph.colors.surface.contrast},secondary:{[uh.textColor]:ph.colors.surface.dark},error:{[uh.textColor]:ph.colors.error.main},"error-dark":{[uh.textColor]:ph.colors.error.dark},success:{[uh.textColor]:ph.colors.success.main},"success-dark":{[uh.textColor]:ph.colors.success.dark},warning:{[uh.textColor]:ph.colors.warning.main},"warning-dark":{[uh.textColor]:ph.colors.warning.dark}},textAlign:{right:{[uh.textAlign]:"right"},left:{[uh.textAlign]:"left"},center:{[uh.textAlign]:"center"}},_fullWidth:{[uh.hostWidth]:"100%"},_italic:{[uh.fontStyle]:"italic"},_uppercase:{[uh.textTransform]:"uppercase"},_lowercase:{[uh.textTransform]:"lowercase"}};var mh=Object.freeze({__proto__:null,default:hh,vars:uh});const gh=Q(iu),bh=Tr.cssVarList,yh={[bh.hostDirection]:gh.direction,[bh.cursor]:"pointer",[bh.textColor]:gh.colors.primary.main,textAlign:{right:{[bh.textAlign]:"right"},left:{[bh.textAlign]:"left"},center:{[bh.textAlign]:"center"}},_fullWidth:{[bh.hostWidth]:"100%"},_hover:{[bh.textDecoration]:"underline"},mode:{secondary:{[bh.textColor]:gh.colors.secondary.main}}};var fh=Object.freeze({__proto__:null,default:yh,vars:bh});const vh=Q(iu),xh=De.cssVarList,Ch={[xh.hostDirection]:vh.direction,[xh.hostWidth]:J(uh.hostWidth),[xh.textLineHeight]:J(uh.textLineHeight),[xh.textColor]:J(uh.textColor),[xh.textAlign]:J(uh.textAlign),[xh.fontSize]:J(uh.fontSize),[xh.fontWeight]:J(uh.fontWeight),[xh.fontFamily]:J(uh.fontFamily),[xh.linkColor]:J(bh.textColor),[xh.linkTextDecoration]:"none",[xh.linkHoverTextDecoration]:"underline",[xh.fontWeightBold]:"900",[xh.minWidth]:"0.25em",[xh.minHeight]:"1.35em",[xh.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[xh.hostDisplay]:"none"}}};var wh=Object.freeze({__proto__:null,default:Ch,vars:xh});const Ih=ft(Xp),Mh=ln.cssVarList,[Sh,Ah,Eh]=Mt({thickness:"2px",spacing:"10px"},en),Th={...Sh,[Mh.hostDirection]:Ih.direction,[Mh.alignItems]:"center",[Mh.flexDirection]:"row",[Mh.alignSelf]:"stretch",[Mh.hostWidth]:"100%",[Mh.stripeColor]:Ih.colors.surface.light,[Mh.stripeColorOpacity]:"0.5",[Mh.stripeHorizontalThickness]:Ah.thickness,[Mh.labelTextWidth]:"fit-content",[Mh.labelTextMaxWidth]:"calc(100% - 100px)",[Mh.labelTextHorizontalSpacing]:Ah.spacing,[Mh.textAlign]:"center",_vertical:{[Mh.minHeight]:"200px",[Mh.flexDirection]:"column",[Mh.hostWidth]:"fit-content",[Mh.hostPadding]:`0 calc(${Ah.thickness} * 3)`,[Mh.stripeVerticalThickness]:Ah.thickness,[Mh.labelTextWidth]:"fit-content",[Mh.labelTextMaxWidth]:"100%",[Mh.labelTextVerticalSpacing]:Ah.spacing}},kh={...Mh,...Eh};var zh=Object.freeze({__proto__:null,default:Th,vars:kh});const Lh=Wn.cssVarList,Nh={[Lh.hostDirection]:fu.direction,[Lh.fontFamily]:fu.fontFamily,[Lh.fontSize]:fu.fontSize,[Lh.labelTextColor]:fu.labelTextColor,[Lh.labelRequiredIndicator]:fu.requiredIndicator,[Lh.errorMessageTextColor]:fu.errorMessageTextColor,[Lh.digitValueTextColor]:fu.valueTextColor,[Lh.digitPadding]:"0",[Lh.digitTextAlign]:"center",[Lh.digitSpacing]:"4px",[Lh.hostWidth]:fu.width,[Lh.digitOutlineColor]:"transparent",[Lh.digitOutlineWidth]:fu.outlineWidth,[Lh.focusedDigitFieldOutlineColor]:fu.outlineColor,[Lh.digitSize]:fu.inputHeight,[Lh.errorMessageIcon]:fu.errorMessageIcon,[Lh.errorMessageIconSize]:fu.errorMessageIconSize,[Lh.errorMessageIconPadding]:fu.errorMessageIconPadding,[Lh.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Lh.errorMessageIconPosition]:fu.errorMessageIconPosition,[Lh.errorMessageFontSize]:fu.errorMessageFontSize,size:{xs:{[Lh.spinnerSize]:"15px"},sm:{[Lh.spinnerSize]:"20px"},md:{[Lh.spinnerSize]:"20px"},lg:{[Lh.spinnerSize]:"20px"}},_hideCursor:{[Lh.digitCaretTextColor]:"transparent"},_loading:{[Lh.overlayOpacity]:fu.overlayOpacity}};var Dh=Object.freeze({__proto__:null,default:Nh,vars:Lh});const Vh=ft(Xp),Ph=$r.cssVarList,Bh={[Ph.hostDisplay]:"inline-block",[Ph.hostWidth]:"100%",[Ph.barColor]:Vh.colors.surface.contrast,[Ph.barWidth]:"20%",[Ph.barBackgroundColor]:Vh.colors.surface.light,[Ph.barBorderRadius]:"4px",[Ph.animationDuration]:"2s",[Ph.animationTimingFunction]:"linear",[Ph.animationIterationCount]:"infinite",[Ph.verticalPadding]:"0.25em",size:{xs:{[Ph.barHeight]:"2px"},sm:{[Ph.barHeight]:"4px"},md:{[Ph.barHeight]:"6px"},lg:{[Ph.barHeight]:"8px"}},mode:{primary:{[Ph.barColor]:Vh.colors.primary.main},secondary:{[Ph.barColor]:Vh.colors.secondary.main}},_hidden:{[Ph.hostDisplay]:"none"}};var Rh=Object.freeze({__proto__:null,default:Bh,vars:Ph});const Oh=ft(Xp),jh=Yr.cssVarList,[Fh,Wh,_h]=Mt({spinnerColor:Oh.colors.surface.contrast,mode:{primary:{spinnerColor:Oh.colors.primary.main},secondary:{spinnerColor:Oh.colors.secondary.main}}},Hr),$h={...Fh,[jh.animationDuration]:"2s",[jh.animationTimingFunction]:"linear",[jh.animationIterationCount]:"infinite",[jh.spinnerBorderStyle]:"solid",[jh.spinnerBorderWidth]:"0.2em",[jh.spinnerBorderRadius]:"50%",[jh.spinnerQuadrant1Color]:Wh.spinnerColor,[jh.spinnerQuadrant2Color]:"transparent",[jh.spinnerQuadrant3Color]:Wh.spinnerColor,[jh.spinnerQuadrant4Color]:"transparent",size:{xs:{[jh.spinnerSize]:"20px"},sm:{[jh.spinnerSize]:"30px"},md:{[jh.spinnerSize]:"40px"},lg:{[jh.spinnerSize]:"60px"},xl:{[jh.spinnerSize]:"80px"}},_hidden:{[jh.hostDisplay]:"none"}},Hh={...jh,..._h};var qh=Object.freeze({__proto__:null,default:$h,vars:Hh});const Yh=k("input-wrapper"),Uh=Q(iu),[Gh,Zh]=K({labelTextColor:Uh.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",valueTextColor:Uh.colors.surface.contrast,placeholderTextColor:Uh.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Uh.colors.surface.dark,errorMessageTextColor:Uh.colors.error.main,successMessageTextColor:Uh.colors.success.main,borderWidth:Uh.border.xs,borderRadius:Uh.radius.xs,borderColor:"transparent",outlineWidth:Uh.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputIconSize:"1em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",textAlign:"start",backgroundColor:Uh.colors.surface.main,fontFamily:Uh.fonts.font1.family,direction:Uh.direction,overlayOpacity:"0.3",errorMessageIcon:"",errorMessageIconSize:"0",errorMessageIconPadding:"0",errorMessageIconPosition:"0 0.4em",errorMessageFontSize:"0.8125rem",errorMessageIconRepeat:"no-repeat",errorMessageIconRepeat:"no-repeat",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},labelType:{static:{valueInputHeight:"3em",valueInputMarginBottom:"auto"},floating:{labelPosition:"absolute",labelTopPosition:"0",labelHorizontalPosition:"0.9em",labelFontSize:"1em",placeholderOpacity:0,inputHeight:"3.5em",inputVerticalAlignment:"flex-end",inputTransformY:"translateY(1.55em)",inputTransition:"all 75ms ease-in-out",marginInlineStart:"0",valueInputHeight:"1.5702em",valueInputMarginBottom:"0.5em",_focused:{labelFontSize:"0.75em",inputTransformY:"translateY(1.05em)",labelFontWeight:"400",placeholderOpacity:1},_readOnly:{placeholderOpacity:0},_hasValue:{inputTransformY:"translateY(1.05em)",labelFontSize:"0.75em",labelFontWeight:"400"}}},_fullWidth:{width:"100%"},_focused:{outlineColor:Uh.colors.surface.light,_invalid:{outlineColor:Uh.colors.error.main}},_bordered:{outlineWidth:Uh.border.xs,borderColor:Uh.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Uh.colors.error.main}},_disabled:{labelTextColor:Uh.colors.surface.light,borderColor:Uh.colors.surface.light,valueTextColor:Uh.colors.surface.light,placeholderTextColor:Uh.colors.surface.light,helperTextColor:Uh.colors.surface.light,backgroundColor:Uh.colors.surface.main}},Yh),Qh=Q(iu),Jh=co.cssVarList,Kh={[Jh.hostWidth]:Zh.width,[Jh.hostDirection]:Zh.direction,[Jh.fontSize]:Zh.fontSize,[Jh.fontFamily]:Zh.fontFamily,[Jh.labelFontSize]:Zh.labelFontSize,[Jh.labelFontWeight]:Zh.labelFontWeight,[Jh.labelTextColor]:Zh.labelTextColor,[Jh.errorMessageTextColor]:Zh.errorMessageTextColor,[Jh.inputBorderColor]:Zh.borderColor,[Jh.inputBorderWidth]:Zh.borderWidth,[Jh.inputBorderStyle]:Zh.borderStyle,[Jh.inputBorderRadius]:Zh.borderRadius,[Jh.inputOutlineColor]:Zh.outlineColor,[Jh.inputOutlineOffset]:Zh.outlineOffset,[Jh.inputOutlineWidth]:Zh.outlineWidth,[Jh.inputOutlineStyle]:Zh.outlineStyle,[Jh.labelRequiredIndicator]:Zh.requiredIndicator,[Jh.inputValueTextColor]:Zh.valueTextColor,[Jh.inputPlaceholderTextColor]:Zh.placeholderTextColor,[Jh.inputBackgroundColor]:Zh.backgroundColor,[Jh.inputHorizontalPadding]:Zh.horizontalPadding,[Jh.inputHeight]:Zh.inputHeight,[Jh.inputDropdownButtonColor]:Qh.colors.surface.dark,[Jh.inputDropdownButtonCursor]:"pointer",[Jh.inputDropdownButtonSize]:Zh.toggleButtonSize,[Jh.inputDropdownButtonOffset]:Qh.spacing.xs,[Jh.overlayItemPaddingInlineStart]:Qh.spacing.xs,[Jh.overlayItemPaddingInlineEnd]:Qh.spacing.lg,[Jh.labelPosition]:Zh.labelPosition,[Jh.labelTopPosition]:Zh.labelTopPosition,[Jh.labelHorizontalPosition]:Zh.labelHorizontalPosition,[Jh.inputTransformY]:Zh.inputTransformY,[Jh.inputTransition]:Zh.inputTransition,[Jh.marginInlineStart]:Zh.marginInlineStart,[Jh.placeholderOpacity]:Zh.placeholderOpacity,[Jh.inputVerticalAlignment]:Zh.inputVerticalAlignment,[Jh.valueInputHeight]:Zh.valueInputHeight,[Jh.valueInputMarginBottom]:Zh.valueInputMarginBottom,[Jh.errorMessageIcon]:Zh.errorMessageIcon,[Jh.errorMessageIconSize]:Zh.errorMessageIconSize,[Jh.errorMessageIconPadding]:Zh.errorMessageIconPadding,[Jh.errorMessageIconRepeat]:Zh.errorMessageIconRepeat,[Jh.errorMessageIconPosition]:Zh.errorMessageIconPosition,[Jh.errorMessageFontSize]:Zh.errorMessageFontSize,_readonly:{[Jh.inputDropdownButtonCursor]:"default"},[Jh.overlayFontSize]:Zh.fontSize,[Jh.overlayFontFamily]:Zh.fontFamily,[Jh.overlayCursor]:"pointer",[Jh.overlayItemBoxShadow]:"none",[Jh.overlayBackground]:Zh.backgroundColor,[Jh.overlayTextColor]:Zh.valueTextColor,[Jh.overlayCheckmarkDisplay]:"initial",[Jh.overlaySelectedItemBackground]:"initial",[Jh.overlaySelectedItemHoverBackground]:Qh.colors.primary.highlight,[Jh.overlaySelectedItemFocusBackground]:Qh.colors.primary.highlight,[Jh.overlayItemHoverBackground]:Qh.colors.primary.highlight,[Jh.overlayItemFocusBackground]:Qh.colors.primary.highlight,[Jh.overlay.minHeight]:"400px",[Jh.overlay.margin]:"0",[Jh.overlay.contentHeight]:"100%",[Jh.overlay.contentOpacity]:"1",[Jh.overlay.scrollerMinHeight]:"1px",_loading:{[Jh.overlay.loaderTop]:"50%",[Jh.overlay.loaderLeft]:"50%",[Jh.overlay.loaderRight]:"auto",[Jh.overlay.loaderMargin]:"-15px 0 0 -15px",[Jh.overlay.loaderWidth]:"30px",[Jh.overlay.loaderHeight]:"30px",[Jh.overlay.loaderBorder]:"2px solid transparent",[Jh.overlay.loaderBorderColor]:`${Qh.colors.primary.highlight} ${Qh.colors.primary.highlight} ${Qh.colors.primary.main} ${Qh.colors.primary.main}`,[Jh.overlay.loaderBorderRadius]:"50%",[Jh.overlay.contentHeight]:"100px",[Jh.overlay.scrollerMinHeight]:"100px",[Jh.overlay.contentOpacity]:"0"}};var Xh=Object.freeze({__proto__:null,comboBox:Kh,default:Kh,vars:Jh});const em=Va.cssVarList,tm={[em.hostWidth]:fu.width,[em.hostDirection]:fu.direction,[em.fontSize]:fu.fontSize,[em.fontFamily]:fu.fontFamily,[em.labelTextColor]:fu.labelTextColor,[em.labelRequiredIndicator]:fu.requiredIndicator,[em.errorMessageTextColor]:fu.errorMessageTextColor,[em.inputValueTextColor]:fu.valueTextColor,[em.inputPlaceholderTextColor]:fu.placeholderTextColor,[em.inputBorderStyle]:fu.borderStyle,[em.inputBorderWidth]:fu.borderWidth,[em.inputBorderColor]:fu.borderColor,[em.inputBorderRadius]:fu.borderRadius,[em.inputOutlineStyle]:fu.outlineStyle,[em.inputOutlineWidth]:fu.outlineWidth,[em.inputOutlineColor]:fu.outlineColor,[em.inputOutlineOffset]:fu.outlineOffset,[em.phoneInputWidth]:fu.minWidth,[em.countryCodeInputWidth]:"5em",[em.countryCodeDropdownWidth]:"20em",[em.marginInlineStart]:"-0.25em",[em.valueInputHeight]:fu.valueInputHeight,[em.valueInputMarginBottom]:fu.valueInputMarginBottom,[em.errorMessageIcon]:fu.errorMessageIcon,[em.errorMessageIconSize]:fu.errorMessageIconSize,[em.errorMessageIconPadding]:fu.errorMessageIconPadding,[em.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[em.errorMessageIconPosition]:fu.errorMessageIconPosition,[em.errorMessageFontSize]:fu.errorMessageFontSize};var rm=Object.freeze({__proto__:null,default:tm,vars:em});const om=Ja.cssVarList,im={[om.hostWidth]:"16em",[om.hostMinWidth]:fu.minWidth,[om.hostDirection]:fu.direction,[om.fontSize]:fu.fontSize,[om.fontFamily]:fu.fontFamily,[om.labelFontSize]:fu.labelFontSize,[om.labelFontWeight]:fu.labelFontWeight,[om.labelTextColor]:fu.labelTextColor,[om.labelRequiredIndicator]:fu.requiredIndicator,[om.errorMessageTextColor]:fu.errorMessageTextColor,[om.inputValueTextColor]:fu.valueTextColor,[om.inputPlaceholderTextColor]:fu.placeholderTextColor,[om.inputBorderStyle]:fu.borderStyle,[om.inputBorderWidth]:fu.borderWidth,[om.inputBorderColor]:fu.borderColor,[om.inputBorderRadius]:fu.borderRadius,[om.inputOutlineStyle]:fu.outlineStyle,[om.inputOutlineWidth]:fu.outlineWidth,[om.inputOutlineColor]:fu.outlineColor,[om.inputOutlineOffset]:fu.outlineOffset,[om.labelPosition]:fu.labelPosition,[om.labelTopPosition]:fu.labelTopPosition,[om.labelHorizontalPosition]:fu.labelHorizontalPosition,[om.inputTransformY]:fu.inputTransformY,[om.inputTransition]:fu.inputTransition,[om.marginInlineStart]:fu.marginInlineStart,[om.valueInputHeight]:fu.valueInputHeight,[om.valueInputMarginBottom]:fu.valueInputMarginBottom,[om.inputHorizontalPadding]:"0",[om.errorMessageIcon]:fu.errorMessageIcon,[om.errorMessageIconSize]:fu.errorMessageIconSize,[om.errorMessageIconPadding]:fu.errorMessageIconPadding,[om.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[om.errorMessageIconPosition]:fu.errorMessageIconPosition,[om.errorMessageFontSize]:fu.errorMessageFontSize,_fullWidth:{[om.hostWidth]:fu.width}};var nm=Object.freeze({__proto__:null,default:im,vars:om});const am=ft(Xp),sm=vs.cssVarList,lm={[sm.hostWidth]:fu.width,[sm.hostMinWidth]:fu.minWidth,[sm.hostDirection]:fu.direction,[sm.fontSize]:fu.fontSize,[sm.fontFamily]:fu.fontFamily,[sm.labelFontSize]:fu.labelFontSize,[sm.labelFontWeight]:fu.labelFontWeight,[sm.labelTextColor]:fu.labelTextColor,[sm.spaceBetweenInputs]:"1em",[sm.errorMessageTextColor]:fu.errorMessageTextColor,[sm.policyPreviewBackgroundColor]:"none",[sm.policyPreviewPadding]:am.spacing.lg,[sm.valueInputHeight]:fu.valueInputHeight,[sm.errorMessageIcon]:fu.errorMessageIcon,[sm.errorMessageIconSize]:fu.errorMessageIconSize,[sm.errorMessageIconPadding]:fu.errorMessageIconPadding,[sm.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[sm.errorMessageIconPosition]:fu.errorMessageIconPosition,[sm.errorMessageFontSize]:fu.errorMessageFontSize,_required:{[sm.inputsRequiredIndicator]:fu.requiredIndicator}};var dm=Object.freeze({__proto__:null,default:lm,vars:sm});const cm=$s.cssVarList,pm={[cm.hostDirection]:fu.direction,[cm.labelTextColor]:fu.labelTextColor,[cm.fontFamily]:fu.fontFamily,[cm.iconSize]:"2em",[cm.hostPadding]:"0.75em",[cm.gap]:"0.5em",[cm.fontSize]:"16px",[cm.titleFontWeight]:"500",[cm.lineHeight]:"1em",[cm.borderWidth]:fu.borderWidth,[cm.borderColor]:fu.borderColor,[cm.borderRadius]:fu.borderRadius,[cm.borderStyle]:"dashed",_required:{[cm.requiredIndicator]:fu.requiredIndicator},size:{xs:{[cm.hostHeight]:"196px",[cm.hostWidth]:"200px",[cm.titleFontSize]:"0.875em",[cm.descriptionFontSize]:"0.875em",[cm.lineHeight]:"1.25em"},sm:{[cm.hostHeight]:"216px",[cm.hostWidth]:"230px",[cm.titleFontSize]:"1em",[cm.descriptionFontSize]:"0.875em",[cm.lineHeight]:"1.25em"},md:{[cm.hostHeight]:"256px",[cm.hostWidth]:"312px",[cm.titleFontSize]:"1.125em",[cm.descriptionFontSize]:"1em",[cm.lineHeight]:"1.5em"},lg:{[cm.hostHeight]:"280px",[cm.hostWidth]:"336px",[cm.titleFontSize]:"1.125em",[cm.descriptionFontSize]:"1.125em",[cm.lineHeight]:"1.75em"}},_fullWidth:{[cm.hostWidth]:fu.width}};var um=Object.freeze({__proto__:null,default:pm,vars:cm});const hm=ft(Xp),mm=nl.cssVarList,gm={[mm.hostDirection]:"inherit",[mm.backgroundColor]:hm.colors.surface.main,[mm.labelTextColor]:hm.colors.surface.contrast,[mm.borderColor]:hm.colors.surface.light,[mm.borderStyle]:"solid",[mm.borderRadius]:hm.radius.sm,[mm.outlineColor]:"transparent",[mm.borderWidth]:hm.border.xs,_hover:{[mm.backgroundColor]:hm.colors.surface.highlight},_focused:{[mm.outlineColor]:hm.colors.surface.light},_selected:{[mm.borderColor]:hm.colors.surface.contrast,[mm.backgroundColor]:hm.colors.surface.contrast,[mm.labelTextColor]:hm.colors.surface.main}};var bm=Object.freeze({__proto__:null,default:gm,vars:mm});const ym=ft(Xp),fm=e=>({[e.hostDirection]:fu.direction,[e.fontFamily]:fu.fontFamily,[e.labelTextColor]:fu.labelTextColor,[e.labelRequiredIndicator]:fu.requiredIndicator,[e.itemsSpacing]:ym.spacing.sm,[e.hostWidth]:fu.width,[e.errorMessageTextColor]:fu.errorMessageTextColor,[e.errorMessageIcon]:fu.errorMessageIcon,[e.errorMessageIconSize]:fu.errorMessageIconSize,[e.errorMessageIconPadding]:fu.errorMessageIconPadding,[e.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[e.errorMessageIconPosition]:fu.errorMessageIconPosition,[e.errorMessageFontSize]:fu.errorMessageFontSize}),vm=rl.cssVarList,xm={...fm(vm)};var Cm=Object.freeze({__proto__:null,default:xm,vars:vm});const wm=dl.cssVarList,Im={...fm(wm)};var Mm=Object.freeze({__proto__:null,default:Im,vars:wm});const Sm=ft(Xp),Am=ic.cssVarList,Em={[Am.overlayBackgroundColor]:Sm.colors.surface.main,[Am.overlayShadow]:Sm.shadow.wide["2xl"],[Am.overlayWidth]:"540px"},Tm={...Am};var km=Object.freeze({__proto__:null,default:Em,vars:Tm});const zm=ft(Xp),Lm=jd.cssVarList,Nm={[Lm.hostWidth]:"100%",[Lm.hostHeight]:"100%",[Lm.hostMinHeight]:"400px",[Lm.fontWeight]:"400",[Lm.backgroundColor]:zm.colors.surface.main,[Lm.fontSize]:fu.fontSize,[Lm.fontFamily]:fu.fontFamily,[Lm.sortIndicatorsColor]:zm.colors.surface.light,[Lm.activeSortIndicator]:zm.colors.surface.dark,[Lm.resizeHandleColor]:zm.colors.surface.light,[Lm.borderWidth]:fu.borderWidth,[Lm.borderStyle]:fu.borderStyle,[Lm.borderRadius]:fu.borderRadius,[Lm.borderColor]:"transparent",[Lm.headerRowTextColor]:zm.colors.surface.dark,[Lm.separatorColor]:zm.colors.surface.light,[Lm.valueTextColor]:zm.colors.surface.contrast,[Lm.selectedBackgroundColor]:zm.colors.surface.highlight,[Lm.hostDirection]:zm.direction,[Lm.toggleDetailsPanelButtonSize]:"1em",[Lm.toggleDetailsPanelButtonOpenedColor]:zm.colors.surface.contrast,[Lm.toggleDetailsPanelButtonClosedColor]:zm.colors.surface.light,[Lm.toggleDetailsPanelButtonCursor]:"pointer",[Lm.detailsPanelBackgroundColor]:zm.colors.surface.highlight,[Lm.detailsPanelBorderTopColor]:zm.colors.surface.light,[Lm.detailsPanelLabelsColor]:zm.colors.surface.dark,[Lm.detailsPanelLabelsFontSize]:"0.8em",[Lm.detailsPanelItemsGap]:"2em",[Lm.detailsPanelPadding]:"12px 0",_bordered:{[Lm.borderColor]:fu.borderColor}};var Dm=Object.freeze({__proto__:null,default:Nm,grid:Nm,vars:Lm});const Vm=ft(Xp),Pm=lc.cssVarList,Bm="#00000020",Rm={[Pm.hostMinWidth]:"415px",[Pm.fontFamily]:Vm.fonts.font1.family,[Pm.fontSize]:Vm.typography.body1.size,[Pm.backgroundColor]:Vm.colors.surface.main,[Pm.textColor]:Vm.colors.surface.contrast,[Pm.boxShadow]:`${Vm.shadow.wide.xl} ${Bm}, ${Vm.shadow.narrow.xl} ${Bm}`,[Pm.verticalPadding]:"0.625em",[Pm.horizontalPadding]:"1.5em",[Pm.borderRadius]:Vm.radius.xs,_bordered:{[Pm.borderWidth]:Vm.border.sm,[Pm.borderStyle]:"solid",[Pm.borderColor]:"transparent"},size:{xs:{[Pm.fontSize]:"12px"},sm:{[Pm.fontSize]:"14px"},md:{[Pm.fontSize]:"16px"},lg:{[Pm.fontSize]:"18px"}},mode:{primary:{[Pm.backgroundColor]:Vm.colors.primary.main,[Pm.textColor]:Vm.colors.primary.contrast,[Pm.borderColor]:Vm.colors.primary.light},success:{[Pm.backgroundColor]:Vm.colors.success.main,[Pm.textColor]:Vm.colors.success.contrast,[Pm.borderColor]:Vm.colors.success.light},error:{[Pm.backgroundColor]:Vm.colors.error.main,[Pm.textColor]:Vm.colors.error.contrast,[Pm.borderColor]:Vm.colors.error.light}}};var Om=Object.freeze({__proto__:null,default:Rm,vars:Pm});const jm=ft(Xp),Fm=tc.cssVarList,Wm={[Fm.hostWidth]:fu.width,[Fm.hostDirection]:fu.direction,[Fm.fontSize]:fu.fontSize,[Fm.fontFamily]:fu.fontFamily,[Fm.labelFontSize]:fu.labelFontSize,[Fm.labelFontWeight]:fu.labelFontWeight,[Fm.labelTextColor]:fu.labelTextColor,[Fm.errorMessageTextColor]:fu.errorMessageTextColor,[Fm.inputBorderColor]:fu.borderColor,[Fm.inputBorderWidth]:fu.borderWidth,[Fm.inputBorderStyle]:fu.borderStyle,[Fm.inputBorderRadius]:fu.borderRadius,[Fm.inputOutlineColor]:fu.outlineColor,[Fm.inputOutlineOffset]:fu.outlineOffset,[Fm.inputOutlineWidth]:fu.outlineWidth,[Fm.inputOutlineStyle]:fu.outlineStyle,[Fm.labelRequiredIndicator]:fu.requiredIndicator,[Fm.inputValueTextColor]:fu.valueTextColor,[Fm.inputPlaceholderTextColor]:fu.placeholderTextColor,[Fm.inputBackgroundColor]:fu.backgroundColor,[Fm.inputHorizontalPadding]:fu.horizontalPadding,[Fm.inputVerticalPadding]:fu.verticalPadding,[Fm.inputHeight]:fu.inputHeight,[Fm.inputDropdownButtonColor]:jm.colors.surface.dark,[Fm.inputDropdownButtonCursor]:"pointer",[Fm.inputDropdownButtonSize]:fu.toggleButtonSize,[Fm.inputDropdownButtonOffset]:jm.spacing.xs,[Fm.overlayItemPaddingInlineStart]:jm.spacing.xs,[Fm.overlayItemPaddingInlineEnd]:jm.spacing.lg,[Fm.chipFontSize]:fu.chipFontSize,[Fm.chipTextColor]:jm.colors.surface.contrast,[Fm.chipBackgroundColor]:jm.colors.surface.light,[Fm.labelPosition]:fu.labelPosition,[Fm.labelTopPosition]:fu.labelTopPosition,[Fm.labelLeftPosition]:fu.labelLeftPosition,[Fm.labelHorizontalPosition]:fu.labelHorizontalPosition,[Fm.inputTransformY]:fu.inputTransformY,[Fm.inputTransition]:fu.inputTransition,[Fm.marginInlineStart]:fu.marginInlineStart,[Fm.placeholderOpacity]:fu.placeholderOpacity,[Fm.inputVerticalAlignment]:fu.inputVerticalAlignment,[Fm.errorMessageIcon]:fu.errorMessageIcon,[Fm.errorMessageIconSize]:fu.errorMessageIconSize,[Fm.errorMessageIconPadding]:fu.errorMessageIconPadding,[Fm.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Fm.errorMessageIconPosition]:fu.errorMessageIconPosition,[Fm.errorMessageFontSize]:fu.errorMessageFontSize,labelType:{floating:{[Fm.inputHorizontalPadding]:"0.25em",_hasValue:{[Fm.inputHorizontalPadding]:"0.45em"}}},_readonly:{[Fm.inputDropdownButtonCursor]:"default"},[Fm.overlayFontSize]:fu.fontSize,[Fm.overlayFontFamily]:fu.fontFamily,[Fm.overlayCursor]:"pointer",[Fm.overlayItemBoxShadow]:"none",[Fm.overlayBackground]:fu.backgroundColor,[Fm.overlayTextColor]:fu.valueTextColor,[Fm.overlay.minHeight]:"400px",[Fm.overlay.margin]:"0"};var _m=Object.freeze({__proto__:null,default:Wm,multiSelectComboBox:Wm,vars:Fm});const $m=Q(iu),Hm=zc.cssVarList,qm={[Hm.hostWidth]:"fit-content",[Hm.hostDirection]:$m.direction,[Hm.textAlign]:"center",[Hm.fontFamily]:$m.fonts.font1.family,[Hm.fontWeight]:"400",[Hm.verticalPadding]:"0.25em",[Hm.horizontalPadding]:"0.5em",[Hm.borderWidth]:$m.border.xs,[Hm.borderRadius]:$m.radius.xs,[Hm.borderColor]:"transparent",[Hm.borderStyle]:"solid",_fullWidth:{[Hm.hostWidth]:"100%"},size:{xs:{[Hm.fontSize]:"12px"},sm:{[Hm.fontSize]:"14px"},md:{[Hm.fontSize]:"16px"},lg:{[Hm.fontSize]:"18px"}},mode:{default:{[Hm.textColor]:$m.colors.surface.dark,_bordered:{[Hm.borderColor]:$m.colors.surface.light}},primary:{[Hm.textColor]:$m.colors.primary.main,_bordered:{[Hm.borderColor]:$m.colors.primary.light}},secondary:{[Hm.textColor]:$m.colors.secondary.main,_bordered:{[Hm.borderColor]:$m.colors.secondary.light}},error:{[Hm.textColor]:$m.colors.error.main,_bordered:{[Hm.borderColor]:$m.colors.error.light}},success:{[Hm.textColor]:$m.colors.success.main,_bordered:{[Hm.borderColor]:$m.colors.success.light}}}};var Ym=Object.freeze({__proto__:null,default:qm,vars:Hm});const Um=k("avatar");class Gm extends(ue({componentName:Um,baseSelector:":host > .wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <vaadin-avatar></vaadin-avatar>\n <div class="editableBadge">\n <vaadin-icon icon="vaadin:pencil"></vaadin-icon>\n </div>\n </div>\n\t\t',N("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .editableBadge {\n border: 1px solid;\n border-radius: 100%;\n height: fit-content;\n width: 25%;\n height: 25%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n inset-inline-end: 0;\n }\n\n vaadin-icon {\n color: currentcolor;\n }\n\n vaadin-avatar {\n width: 100%;\n height: 100%;\n margin: 0;\n border: none\n }\n\n .wrapper {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 100%;\n }\n ",this),this.avatarComponent=this.shadowRoot.querySelector("vaadin-avatar"),L(this,this.avatarComponent,{includeAttrs:["display-name","img","abbr"],mapAttrs:{"display-name":"name"}});const e=this.shadowRoot.querySelector(".editableBadge");S(this,()=>{e.style.display=this.isEditable?"":"none"},{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:Zm,editableBadge:Qm,avatar:Jm}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Km=I(ne({mappings:{hostWidth:[{...Zm,property:"width"},{...Zm,property:"min-width"}],hostHeight:{...Zm,property:"height"},cursor:[Jm,Zm],hostDirection:{...Zm,property:"direction"},avatarTextColor:{...Jm,property:"color"},avatarBackgroundColor:{...Jm,property:"background-color"},editableIconColor:{...Qm,property:"color"},editableBorderColor:{...Qm,property:"border-color"},editableBackgroundColor:{...Qm,property:"background-color"}}}),ae,se)(Gm),Xm=Q(iu),eg=Km.cssVarList,tg={[eg.hostDirection]:Xm.direction,[eg.editableIconColor]:Xm.colors.surface.dark,[eg.editableBorderColor]:Xm.colors.surface.dark,[eg.editableBackgroundColor]:Xm.colors.surface.main,[eg.avatarTextColor]:Xm.colors.surface.main,[eg.avatarBackgroundColor]:Xm.colors.surface.dark,_editable:{[eg.cursor]:"pointer"},size:{xs:{[eg.hostWidth]:"30px",[eg.hostHeight]:"30px"},sm:{[eg.hostWidth]:"40px",[eg.hostHeight]:"40px"},md:{[eg.hostWidth]:"60px",[eg.hostHeight]:"60px"},lg:{[eg.hostWidth]:"98px",[eg.hostHeight]:"98px"}}},rg={...eg};var og=Object.freeze({__proto__:null,default:tg,vars:rg});const ig=ft(Xp),ng=Mc.cssVarList,ag={[ng.hostWidth]:fu.width,[ng.hostDirection]:fu.direction,[ng.fontSize]:fu.fontSize,[ng.fontFamily]:fu.fontFamily,[ng.separatorFontSize]:"14px",[ng.labelsFontSize]:"14px",[ng.labelsLineHeight]:"1",[ng.labelsMarginBottom]:"6px",[ng.labelTextColor]:fu.labelTextColor,[ng.itemMarginBottom]:"1em",[ng.valueLabelMinWidth]:fu.minWidth,[ng.attrLabelMinWidth]:`calc(12em + 2 * ${ig.border.xs})`,[ng.separatorWidth]:"70px",[ng.removeButtonWidth]:"60px"};var sg=Object.freeze({__proto__:null,default:ag,mappingsField:ag,vars:ng});const lg=ft(Xp),dg=jc.cssVarList,cg={[dg.labelMinWidth]:"150px",[dg.hostDirection]:lg.direction,[dg.contentMinWidth]:`calc(100% - ${It(dg.labelMinWidth)} - ${It(dg.itemsGap)})`,[dg.badgeMaxWidth]:"85px",[dg.itemsGap]:"4px",[dg.hostMinWidth]:"310px",[dg.hostWidth]:"530px",[dg.hostMaxWidth]:"100%",_fullWidth:{[dg.hostWidth]:"100%"}};var pg=Object.freeze({__proto__:null,default:cg,vars:dg});const ug=ft(Xp),hg=Gc.cssVarList,mg={[hg.hostDirection]:ug.direction,[hg.itemsGap]:"16px",[hg.hostMinWidth]:"310px",[hg.hostWidth]:"530px",[hg.hostMaxWidth]:"100%",[hg.iconSize]:"24px",[hg.iconColor]:"currentcolor",_fullWidth:{[hg.hostWidth]:"100%"}};var gg=Object.freeze({__proto__:null,default:mg,vars:hg});const bg=tp.cssVarList,yg={[bg.hostWidth]:fu.width,[bg.hostDirection]:fu.direction,[bg.groupNameInputMarginBottom]:"1em",[bg.errorMessageIcon]:fu.errorMessageIcon,[bg.errorMessageIconSize]:fu.errorMessageIconSize,[bg.errorMessageIconPadding]:fu.errorMessageIconPadding,[bg.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[bg.errorMessageIconPosition]:fu.errorMessageIconPosition,[bg.errorMessageFontSize]:fu.errorMessageFontSize};var fg=Object.freeze({__proto__:null,default:yg,samlGroupMappings:yg,vars:bg});const vg=ft(Xp),xg=ds.cssVarList,Cg={[xg.fontFamily]:fu.fontFamily,[xg.fontSize]:fu.labelFontSize,[xg.textColor]:fu.labelTextColor,[xg.borderWidth]:fu.borderWidth,[xg.borderStyle]:fu.borderStyle,[xg.borderColor]:fu.borderColor,[xg.borderRadius]:vg.radius.sm,[xg.backgroundColor]:"none",[xg.padding]:"0px",[xg.labelMargin]:vg.spacing.sm,[xg.itemsSpacing]:vg.spacing.lg,[xg.itemSymbolDefault]:"'\\2022'",[xg.itemSymbolSuccess]:"'\\2713'",[xg.itemSymbolError]:"'\\2A09'",[xg.itemSymbolSuccessColor]:vg.colors.success.main,[xg.itemSymbolErrorColor]:vg.colors.error.main};var wg=Object.freeze({__proto__:null,default:Cg,vars:xg});const Ig=yo.cssVarList;var Mg=Object.freeze({__proto__:null,default:{},vars:Ig});const Sg=go.cssVarList;var Ag=Object.freeze({__proto__:null,default:{},vars:Sg});const Eg=ft(Xp),Tg=md.cssVarList,kg="#d73a49",zg="#6f42c1",Lg="#005cc5",Ng="#e36209",Dg="#6a737d",Vg="#22863a",Pg="#24292e",Bg="#f0fff4",Rg="#032f62",Og="#ff7b72",jg="#d2a8ff",Fg="#79c0ff",Wg="#ffa657",_g="#8b949e",$g="#7ee787",Hg="#c9d1d9",qg="#f0fff4",Yg="#a5d6ff",Ug={[Tg.rootBgColor]:Eg.colors.surface.main,[Tg.rootTextColor]:Eg.colors.surface.contrast,[Tg.docTagTextColor]:kg,[Tg.keywordTextColor]:kg,[Tg.metaKeywordTextColor]:kg,[Tg.templateTagTextColor]:kg,[Tg.templateVariableTextColor]:kg,[Tg.typeTextColor]:kg,[Tg.variableLanguageTextColor]:kg,[Tg.titleTextColor]:zg,[Tg.titleClassTextColor]:zg,[Tg.titleClassInheritedTextColor]:zg,[Tg.titleFunctionTextColor]:zg,[Tg.attrTextColor]:Lg,[Tg.attributeTextColor]:Lg,[Tg.literalTextColor]:Lg,[Tg.metaTextColor]:Lg,[Tg.numberTextColor]:Lg,[Tg.operatorTextColor]:Lg,[Tg.variableTextColor]:Lg,[Tg.selectorAttrTextColor]:Lg,[Tg.selectorClassTextColor]:Lg,[Tg.selectorIdTextColor]:Lg,[Tg.regexpTextColor]:Rg,[Tg.stringTextColor]:Rg,[Tg.metaStringTextColor]:Rg,[Tg.builtInTextColor]:Ng,[Tg.symbolTextColor]:Ng,[Tg.commentTextColor]:Dg,[Tg.codeTextColor]:Dg,[Tg.formulaTextColor]:Dg,[Tg.nameTextColor]:Vg,[Tg.quoteTextColor]:Vg,[Tg.selectorTagTextColor]:Vg,[Tg.selectorPseudoTextColor]:Vg,[Tg.substTextColor]:Pg,[Tg.sectionTextColor]:Lg,[Tg.bulletTextColor]:"#735c0f",[Tg.emphasisTextColor]:Pg,[Tg.strongTextColor]:Pg,[Tg.additionTextColor]:Vg,[Tg.additionBgColor]:Bg,[Tg.deletionTextColor]:kg,[Tg.deletionBgColor]:Bg},Gg={codeSnippet:{[Tg.rootBgColor]:Eg.colors.surface.main,[Tg.rootTextColor]:Eg.colors.surface.contrast,[Tg.docTagTextColor]:Og,[Tg.keywordTextColor]:Og,[Tg.metaKeywordTextColor]:Og,[Tg.templateTagTextColor]:Og,[Tg.templateVariableTextColor]:Og,[Tg.typeTextColor]:Og,[Tg.variableLanguageTextColor]:Og,[Tg.titleTextColor]:jg,[Tg.titleClassTextColor]:jg,[Tg.titleClassInheritedTextColor]:jg,[Tg.titleFunctionTextColor]:jg,[Tg.attrTextColor]:Fg,[Tg.attributeTextColor]:Fg,[Tg.literalTextColor]:Fg,[Tg.metaTextColor]:Fg,[Tg.numberTextColor]:Fg,[Tg.operatorTextColor]:Fg,[Tg.variableTextColor]:Fg,[Tg.selectorAttrTextColor]:Fg,[Tg.selectorClassTextColor]:Fg,[Tg.selectorIdTextColor]:Fg,[Tg.regexpTextColor]:Yg,[Tg.stringTextColor]:Yg,[Tg.metaStringTextColor]:Yg,[Tg.builtInTextColor]:Wg,[Tg.symbolTextColor]:Wg,[Tg.commentTextColor]:_g,[Tg.codeTextColor]:_g,[Tg.formulaTextColor]:_g,[Tg.nameTextColor]:$g,[Tg.quoteTextColor]:$g,[Tg.selectorTagTextColor]:$g,[Tg.selectorPseudoTextColor]:$g,[Tg.substTextColor]:Hg,[Tg.sectionTextColor]:Fg,[Tg.bulletTextColor]:"#735c0f",[Tg.emphasisTextColor]:Hg,[Tg.strongTextColor]:Hg,[Tg.additionTextColor]:$g,[Tg.additionBgColor]:qg,[Tg.deletionTextColor]:Og,[Tg.deletionBgColor]:qg}};var Zg=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Gg,default:Ug,vars:Tg});const Qg=np.cssVarList,Jg=ft(Xp),Kg={[Qg.buttonsRowGap]:"9px",[Qg.hostWidth]:fu.width,[Qg.hostDirection]:fu.direction,[Qg.fontSize]:fu.fontSize,[Qg.fontFamily]:fu.fontFamily,[Qg.labelTextColor]:fu.labelTextColor,[Qg.labelRequiredIndicator]:fu.requiredIndicator,[Qg.errorMessageTextColor]:fu.errorMessageTextColor,[Qg.errorMessageIcon]:fu.errorMessageIcon,[Qg.errorMessageIconSize]:fu.errorMessageIconSize,[Qg.errorMessageIconPadding]:fu.errorMessageIconPadding,[Qg.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Qg.errorMessageIconPosition]:fu.errorMessageIconPosition,[Qg.errorMessageFontSize]:fu.errorMessageFontSize,[Qg.helperTextColor]:fu.helperTextColor,[Qg.itemsLabelColor]:Jg.colors.surface.contrast,textAlign:{right:{[Qg.inputTextAlign]:"right"},left:{[Qg.inputTextAlign]:"left"},center:{[Qg.inputTextAlign]:"center"}},_fullWidth:{[Qg.buttonsSpacing]:"space-between"},_disabled:{[Qg.itemsLabelColor]:Jg.colors.surface.light}};var Xg=Object.freeze({__proto__:null,default:Kg,radioGroup:Kg,vars:Qg});const eb=op.cssVarList,tb=ft(Xp),rb={[eb.fontFamily]:fu.fontFamily,[eb.radioSize]:"calc(1em + 6px)",[eb.radioMargin]:"auto 4px",[eb.radioCheckedSize]:`calc(var(${eb.radioSize})/5)`,[eb.radioCheckedColor]:tb.colors.surface.light,[eb.radioBackgroundColor]:tb.colors.surface.light,[eb.radioBorderColor]:"none",[eb.radioBorderWidth]:0,_checked:{[eb.radioBackgroundColor]:tb.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[eb.fontSize]:"12px"},sm:{[eb.fontSize]:"14px"},md:{[eb.fontSize]:"16px"},lg:{[eb.fontSize]:"18px"}}};var ob=Object.freeze({__proto__:null,default:rb,radioButton:rb,vars:eb});const ib=ft(Xp),nb=vi.cssVarList,ab={[nb.fontFamily]:fu.fontFamily,[nb.fontSize]:fu.fontSize,[nb.hostDirection]:fu.direction,[nb.calendarPadding]:"1em",[nb.topNavVerticalPadding]:"1em",[nb.topNavAlignment]:"space-between",[nb.topNavGap]:"0",[nb.topNavSelectorsGap]:"0.5em",[nb.bottomNavVerticalPadding]:"0.75em",[nb.bottomNavHorizontalPadding]:"1.5em",[nb.bottomNavAlignment]:"space-between",[nb.bottomNavGap]:"0.5em",[nb.navMarginBottom]:"0.75em",[nb.navBorderBottomWidth]:"1px",[nb.navBorderBottomColor]:ib.colors.surface.highlight,[nb.navBorderBottomStyle]:"solid",[nb.yearInputWidth]:"6em",[nb.monthInputWidth]:"8em",[nb.navButtonSize]:"24px",[nb.navButtonCursor]:"pointer",[nb.weekdayFontSize]:"0.875em",[nb.weekdayFontWeight]:"500",[nb.dayHeight]:"3.125em",[nb.daySize]:"2.125em",[nb.dayFontSize]:"1em",[nb.dayRadius]:"50%",[nb.dayTextAlign]:"center",[nb.dayPadding]:"0",[nb.dayTextColor]:ib.colors.surface.contrast,[nb.dayFontWeight]:"500",[nb.dayBackgroundColor]:"transparent",[nb.dayCursor]:"pointer",[nb.dayBackgroundColorHover]:ib.colors.primary.highlight,[nb.daySelectedBackgroundColor]:ib.colors.primary.main,[nb.daySelectedTextdColor]:ib.colors.primary.contrast,[nb.dayDisabledTextdColor]:ib.colors.surface.light,[nb.currentDayBorderColor]:ib.colors.surface.light,[nb.currentDayBorderWidth]:"1px",[nb.currentDayBorderStyle]:"solid",size:{xs:{[nb.fontSize]:"12px"},sm:{[nb.fontSize]:"14px"},md:{[nb.fontSize]:"16px"},lg:{[nb.fontSize]:"18px"}},[nb.navButtonRotation]:"rotate(180deg)",_disabled:{[nb.navButtonOpacity]:"0.5",[nb.dayBackgroundColorHover]:"none",[nb.navButtonCursor]:"default",[nb.dayCursor]:"default"},_fullWidth:{[nb.hostWidth]:"100%",[nb.dayBlockAlign]:"0 auto"}};var sb=Object.freeze({__proto__:null,default:ab,vars:nb});const lb=ft(Xp),db="#00000020",{shadow:cb}=lb,pb=Xi.cssVarList,ub={[pb.hostWidth]:fu.width,[pb.hostDirection]:fu.direction,[pb.iconMargin]:"0.375em",[pb.overlay.marginTop]:`calc(${fu.outlineWidth} + 1px)`,[pb.overlay.backgroundColor]:fu.backgroundColor,[pb.overlay.backdropBackgroundColor]:"transparent",[pb.overlay.backdropPointerEvents]:"all",[pb.overlay.boxShadow]:`${cb.wide.xl} ${db}, ${cb.narrow.xl} ${db}`,[pb.overlay.outlineWidth]:"0",[pb.overlay.outlineColor]:"transparent",[pb.overlay.outlineStyle]:"none",[pb.overlay.padding]:"0",[pb.rtlInputDirection]:"ltr",[pb.rtlInputAlignment]:"right",[pb.errorMessageIcon]:fu.errorMessageIcon,[pb.errorMessageIconSize]:fu.errorMessageIconSize,[pb.errorMessageIconPadding]:fu.errorMessageIconPadding,[pb.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[pb.errorMessageIconPosition]:fu.errorMessageIconPosition,[pb.errorMessageFontSize]:fu.errorMessageFontSize};var hb=Object.freeze({__proto__:null,default:ub,vars:pb});const mb=k("apps-list"),gb=I(ne({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},itemsFontWeight:{selector:vr.componentName,property:vr.cssVarList.fontWeightOverride},itemsFontSize:{selector:vr.componentName,property:vr.cssVarList.fontSizeOverride},itemsTextAlign:{selector:vr.componentName,property:vr.cssVarList.textAlign},itemBackgroundColor:{selector:hp.componentName,property:hp.cssVarList.backgroundColor},backgroundColor:{selector:bp.componentName,property:bp.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:hp.componentName,property:hp.cssVarList.borderStyleOverride},itemBorderColor:{selector:hp.componentName,property:hp.cssVarList.borderColorOverride},itemBorderWidth:{selector:hp.componentName,property:hp.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:hp.componentName,property:hp.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:hp.componentName,property:hp.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:hp.componentName,property:hp.cssVarList.alignItemsOverride},{selector:vr.componentName,property:vr.cssVarList.textAlign}]}}),ke({itemRenderer:({name:e,icon:t,url:r},o,i)=>`\n <a ${r?`href="${r}" title="${r}"`:""} target="_blank">\n <descope-list-item>\n <descope-avatar\n ${t?`img="${t}"`:""}\n ${e?`display-name="${e}" abbr=${P(e)}`:""}\n size="${i.logoSize||i.size}"\n ></descope-avatar>\n <descope-text\n variant="${i.itemTextVariant}"\n mode="primary"\n >${e}</descope-text>\n </descope-list-item>\n </a>\n`,rerenderAttrsList:["size","item-text-variant","logo-size"]}),ae,se,e=>class extends e{get size(){return this.getAttribute("size")||"sm"}get itemTextVariant(){return this.getAttribute("item-text-variant")||"body1"}get logoSize(){return this.getAttribute("logo-size")}})(we({slots:["empty-state"],wrappedEleName:"descope-list",excludeAttrsSync:["tabindex","class","empty","style"],componentName:mb,style:()=>`\n :host {\n width: 100%;\n display: inline-flex;\n }\n\n descope-text::part(text-wrapper) {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n a {\n text-decoration: none;\n }\n\n descope-text {\n ${vr.cssVarList.hostDirection}: var(${gb.cssVarList.hostDirection});\n max-width: 100%;\n }\n `})),bb=gb.cssVarList,yb=Q(iu),fb="400px",vb={[bb.itemsFontWeight]:"normal",[bb.itemsTextAlign]:"start",[bb.hostDirection]:yb.direction,[bb.maxHeight]:fb,_empty:{[bb.minHeight]:fb},size:{xs:{[bb.itemsFontSize]:"14px"},sm:{[bb.itemsFontSize]:"14px"},md:{[bb.itemsFontSize]:"16px"},lg:{[bb.itemsFontSize]:"20px"}},itemPadding:{xs:{[bb.itemVerticalPadding]:yb.spacing.xs,[bb.itemHorizontalPadding]:yb.spacing.xs},sm:{[bb.itemVerticalPadding]:yb.spacing.sm,[bb.itemHorizontalPadding]:yb.spacing.sm},md:{[bb.itemVerticalPadding]:yb.spacing.md,[bb.itemHorizontalPadding]:yb.spacing.md},lg:{[bb.itemVerticalPadding]:yb.spacing.lg,[bb.itemHorizontalPadding]:yb.spacing.lg},xl:{[bb.itemVerticalPadding]:yb.spacing.xl,[bb.itemHorizontalPadding]:yb.spacing.xl}}};var xb=Object.freeze({__proto__:null,default:vb,vars:bb});const Cb=Q(iu),wb=bp.cssVarList,[Ib,Mb,Sb]=K({shadowColor:"#00000020"},mp),{shadowColor:Ab}=Mb,Eb={...Ib,[wb.hostWidth]:"100%",[wb.backgroundColor]:Cb.colors.surface.main,[wb.fontFamily]:Cb.fonts.font1.family,[wb.borderColor]:Cb.colors.surface.light,[wb.borderStyle]:"solid",[wb.borderWidth]:Cb.border.xs,[wb.borderRadius]:Cb.radius.sm,[wb.gap]:Cb.spacing.md,[wb.verticalPadding]:Cb.spacing.lg,[wb.horizontalPadding]:Cb.spacing.lg,[wb.boxShadow]:`${Cb.shadow.wide.sm} ${Ab}, ${Cb.shadow.narrow.sm} ${Ab}`,[wb.maxHeight]:"100%",[wb.hostDirection]:Cb.direction,[wb.minItemsWidth]:"150px",_empty:{[wb.minHeight]:"150px",[wb.emptyStateTextColor]:Cb.colors.surface.dark,[wb.emptyStateTextFontFamily]:Cb.fonts.font1.family},variant:{tiles:{[wb.gridTemplateColumns]:`repeat(auto-fit, minmax(min(${J(wb.minItemsWidth)}, 100%), 1fr))`,[wb.maxItemsWidth]:"200px",[wb.itemsHorizontalAlign]:"center"}}},Tb={...wb,...Sb};var kb=Object.freeze({__proto__:null,default:Eb,vars:Tb});const zb=Q(iu),Lb=hp.cssVarList,Nb={[Lb.backgroundColor]:zb.colors.surface.main,[Lb.verticalPadding]:zb.spacing.lg,[Lb.horizontalPadding]:zb.spacing.lg,[Lb.gap]:zb.spacing.md,[Lb.borderStyle]:"solid",[Lb.borderWidth]:zb.border.xs,[Lb.borderColor]:zb.colors.surface.main,[Lb.borderRadius]:zb.radius.sm,[Lb.cursor]:"pointer",[Lb.alignItems]:"center",[Lb.flexDirection]:"row",[Lb.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Lb.alignItems]:"flex-start",[Lb.flexDirection]:"column",[Lb.borderColor]:zb.colors.surface.light}},_hover:{[Lb.backgroundColor]:zb.colors.surface.highlight},_active:{[Lb.backgroundColor]:zb.colors.surface.main,[Lb.borderColor]:zb.colors.primary.light,[Lb.outline]:`1px solid ${zb.colors.primary.light}`}};var Db=Object.freeze({__proto__:null,default:Nb,vars:Lb});const Vb=pp.cssVarList,Pb={[Vb.requiredInputBorderColor]:yu._disabled[vu.borderColor],[Vb.requiredInputValueTextColor]:yu._disabled[vu.valueTextColor],[Vb.hostWidth]:"280px",_fullWidth:{[Vb.hostWidth]:"100%"}};var Bb=Object.freeze({__proto__:null,default:Pb,vars:Vb});const Rb=ft(Xp),Ob=Cp.cssVarList,jb={[Ob.gap]:Rb.spacing.lg,[Ob.arrowsColor]:Rb.colors.surface.dark,[Ob.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[Ob.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[Ob.logoMaxHeight]:"30px",[Ob.logoMaxWidth]:"120px"},sm:{[Ob.logoMaxHeight]:"40px",[Ob.logoMaxWidth]:"160px"},md:{[Ob.logoMaxHeight]:"48px",[Ob.logoMaxWidth]:"200px"},lg:{[Ob.logoMaxHeight]:"60px",[Ob.logoMaxWidth]:"240px"}}};var Fb=Object.freeze({__proto__:null,default:jb,vars:Ob});const Wb=Ap.cssVarList,_b={[Wb.hostWidth]:"fit-content",_fullWidth:{[Wb.hostWidth]:"100%"}};var $b=Object.freeze({__proto__:null,default:_b,vars:Wb});const Hb=Vp.cssVarList,qb={[Hb.hostWidth]:"min-content",[Hb.questionCursor]:"pointer",_fullWidth:{[Hb.hostWidth]:"100%"},[Hb.questionFontSize]:fu.fontSize,[Hb.questionFontFamily]:fu.fontFamily};var Yb=Object.freeze({__proto__:null,default:qb,vars:Hb});const Ub=Wp.cssVarList,Gb={[Ub.hostDirection]:fu.direction,[Ub.errorMessageIcon]:fu.errorMessageIcon,[Ub.errorMessageIconSize]:fu.errorMessageIconSize,[Ub.errorMessageIconPadding]:fu.errorMessageIconPadding,[Ub.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Ub.errorMessageIconPosition]:fu.errorMessageIconPosition,[Ub.errorMessageFontSize]:fu.errorMessageFontSize,_fullWidth:{[Ub.hostWidth]:"100%"}};var Zb=Object.freeze({__proto__:null,default:Gb,vars:Ub});const Qb=ft(Xp),Jb=qp.cssVarList,Kb={[Jb.hostDirection]:Qb.direction,[Jb.backgroundColor]:"transparent",[Jb.iconSize]:"1.35em",[Jb.alignItems]:"center",[Jb.borderRadius]:Qb.radius.md,[Jb.horizontalPadding]:"0",[Jb.verticalPadding]:"0",[Jb.gap]:"0.5em",[Jb.fontSize]:It(uh.fontSize),mode:{error:{[Jb.textColor]:Qb.colors.error.main,_bordered:{[Jb.borderColor]:Qb.colors.error.main}},success:{[Jb.textColor]:Qb.colors.success.main,_bordered:{[Jb.borderColor]:Qb.colors.success.main}}},spacing:{xs:{[Jb.horizontalPadding]:Qb.spacing.xs,[Jb.verticalPadding]:Qb.spacing.xs},sm:{[Jb.horizontalPadding]:Qb.spacing.sm,[Jb.verticalPadding]:Qb.spacing.sm},md:{[Jb.horizontalPadding]:Qb.spacing.md,[Jb.verticalPadding]:Qb.spacing.md},lg:{[Jb.horizontalPadding]:Qb.spacing.lg,[Jb.verticalPadding]:Qb.spacing.lg},xl:{[Jb.horizontalPadding]:Qb.spacing.xl,[Jb.verticalPadding]:Qb.spacing.xl}},textAlign:{left:{[Jb.justifyContent]:"left"},center:{[Jb.justifyContent]:"center"},right:{[Jb.justifyContent]:"right"}},_bordered:{[Jb.borderWidth]:Qb.border.xs,[Jb.borderColor]:"transparent",[Jb.borderStyle]:"solid",[Jb.borderWidth]:Qb.border.xs,[Jb.borderRadius]:Qb.radius.sm},_fullWidth:{[Jb.hostWidth]:"100%"}};var Xb=Object.freeze({__proto__:null,default:Kb,vars:Jb});const ey=Zp.cssVarList,ty={enabled:{false:{[ey.maxHeight]:"70px"}}};var ry=Object.freeze({__proto__:null,default:ty,vars:ey});const oy=k("autocomplete-field-internal"),iy=ve({componentName:oy,baseSelector:""}),ny=[],ay="DESCOPE_INVALID_OPTION",sy=k("autocomplete-field"),{host:ly}={host:{selector:()=>":host"}},dy=I(ne({componentNameOverride:k("input-wrapper")}),ne({mappings:{hostWidth:{...ly,property:"width"},hostDirection:{...ly,property:"direction"},fontSize:{...ly},checkmarkDisplay:{selector:co.componentName,property:co.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:co.componentName,property:co.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:co.componentName,property:co.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:co.componentName,property:co.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:co.componentName,property:co.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:co.componentName,property:co.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:co.componentName,property:co.cssVarList.overlayItemHoverBackground}}}),ae,Ae({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),se,e=>class extends e{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${oy}\n tabindex="-1"\n ></${oy}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(oy),L(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),T(this,this.inputElement,{includeAttrs:["invalid"]}),this.inputElement.fetchResults=this.fetchResults,this.setDefaultValue()}set fetchResults(e){this.inputElement.fetchResults=e}})(we({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-autocomplete-field-internal {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n descope-autocomplete-field-internal ::slotted {\n padding: 0;\n }\n ",excludeAttrsSync:["tabindex","error-message","label","style"],componentName:sy})),cy=dy.cssVarList,py=Q(iu),uy={[cy.hostWidth]:Zh.width,[cy.hostDirection]:Zh.direction,[cy.fontSize]:Zh.fontSize,[cy.checkmarkDisplay]:"none",[cy.itemPaddingInlineStart]:py.spacing.lg,[cy.itemPaddingInlineEnd]:py.spacing.lg,[cy.selectedItemBackground]:py.colors.primary.light,[cy.selectedItemHoverBackground]:py.colors.primary.light,[cy.selectedItemFocusBackground]:py.colors.primary.light,[cy.itemHoverBackground]:py.colors.primary.highlight,_fullWidth:{[cy.hostWidth]:"100%"}};var hy=Object.freeze({__proto__:null,default:uy,vars:cy});class my extends(Ce()){#mt=null;#gt=null;constructor(e){super(e),this.#gt=this.#bt()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#bt(){const e=this.getAttribute("public-api-key");if(!this.#mt&&e)try{(e=>{var t,r,o,i,n,a,s,l,d,c,p,u,h;window.google?.maps||(t={key:e},n="The Google Maps JavaScript API",a="google",s="importLibrary",l="__ib__",d=document,c=window,p=(c=c[a]||(c[a]={})).maps||(c.maps={}),u=new Set,h=new URLSearchParams,p[s]?console.warn(n+" only loads once. Ignoring:",t):p[s]=(e,...c)=>u.add(e)&&(r||(r=new Promise(async(e,s)=>{for(i in await(o=d.createElement("script")),h.set("libraries",[...u]+""),t)h.set(i.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),t[i]);h.set("callback",a+".maps."+l),o.src=`https://maps.${a}apis.com/maps/api/js?`+h,p[l]=e,o.onerror=()=>r=s(Error(n+" could not load.")),o.nonce=d.querySelector("script[nonce]")?.nonce||"",d.head.append(o)}))).then(()=>p[s](e,...c)))})(e);const{AutocompleteSuggestion:t}=await google.maps.importLibrary("places");this.#mt=t}catch(e){throw console.error("Failed to initialize Google Maps Autocomplete service:",e),e}}async _fetchResults(e){if(!e?.trim())return{results:[]};try{await this.#gt;const t={input:e};this.getOptionalParams().forEach(({attribute:e,key:r,defaultValue:o})=>{const i=this.getAttribute(e)||o;i&&(t[r]="includedPrimaryTypes"===r?i.split(",").map(e=>e.trim()).filter(Boolean):i)});const{suggestions:r}=await this.#mt.fetchAutocompleteSuggestions(t);return this.#yt(r)}catch(e){return console.error("Google Maps Places Autocomplete failed:",e),{results:[],error:xe}}}#yt(e){return e?.length?{results:e.map(e=>{const t=e.placePrediction;return{id:t.placeId,label:t.text.text,value:t.text.text}})}:{results:[]}}}class gy extends(Ce()){getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"layers",attribute:"address-types"},{key:"limit",attribute:"address-limit"},{key:"lang",attribute:"address-language"},{key:"countryCode",attribute:"address-region"}]}async _fetchResults(e){if(!e?.trim())return{results:[]};const t=this.getAttribute("public-api-key"),r=new URLSearchParams({query:e.trim()});this.getOptionalParams().forEach(({attribute:e,key:t,defaultValue:o})=>{const i=this.getAttribute(e)||o;i&&("layers"===t||"countryCode"===t?r.append(t,i.split(",").map(e=>e.trim()).filter(Boolean).join(",")):r.append(t,i))});try{const e=await fetch(`https://api.radar.io/v1/search/autocomplete?${r.toString()}`,{headers:{Authorization:t}});if(!e.ok)throw new Error(`Radar API returned ${e.status}`);const o=await e.json();return this.#yt(o)}catch(e){return console.error("Radar Places Autocomplete failed:",e),{results:[],error:xe}}}#yt(e){return e?.addresses?.length?{results:e.addresses.map(e=>({label:e.formattedAddress,value:e.formattedAddress}))}:{results:[]}}}const by=k("address-field-internal"),yy="google-maps-places",fy="radar",vy={[yy]:my,[fy]:gy},xy=ve({componentName:by,baseSelector:""}),Cy=["public-api-key"],wy=[...Cy],Iy=I((({connectorClasses:e})=>t=>class extends t{#ft=e;static get observedAttributes(){return[...t.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#ft}set connectorClasses(e){this.#ft=e}get connectorTemplate(){return this.getAttribute("connector-template")}initializeConnector(){const e=this.connectorTemplate;if(!this.connectorClasses[e])return;const t=this.connectorClasses[e];this.connector=new t(this.getAttribute.bind(this))}async fetchConnectorResults(e){if(!this.connector)return console.error(`No connector initialized for the field with template: ${this.connectorTemplate}`),{results:[]};const{results:t,error:r}=await this.connector.fetch(e);return r?{results:[],error:r}:{results:t.map(({label:e,value:t})=>({label:e,value:t}))}}init(){super.init?.(),this.initializeConnector()}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"connector-template"===e&&this.initializeConnector()}})({connectorClasses:vy}))(class extends xy{static get observedAttributes(){return[].concat(xy.observedAttributes||[],wy)}get errorMsgValueMissing(){return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing}constructor(){super(),this.innerHTML="\n <div>\n <descope-autocomplete-field></descope-autocomplete-field>\n </div>\n ",this.autocompleteField=this.querySelector("descope-autocomplete-field")}get value(){return this.autocompleteField.value}set value(e){this.autocompleteField.value=e}focus(){this.autocompleteField.focus()}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.autocompleteField.focus()}),super.init?.(),this.initAutocomplete()}initAutocomplete(){L(this,this.autocompleteField,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","error-message","default-value","data-errormessage-value-missing","st-host-direction","allow-custom-value","min-search-length","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),T(this,this.autocompleteField,{includeAttrs:["invalid"]}),this.autocompleteField.fetchResults=this.fetchConnectorResults.bind(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&Cy.includes(e)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),My=k("address-field"),{host:Sy}={host:{selector:()=>":host"}},Ay=I(ne({componentNameOverride:k("input-wrapper")}),ne({mappings:{hostWidth:{...Sy,property:"width"},hostDirection:{...Sy,property:"direction"}}}),ae,Ae({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),se,e=>class extends e{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(e){this.inputElement.connectorClasses=e}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${by}\n tabindex="-1"\n ></${by}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(by),L(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding","connector-template","public-api-key","address-types","address-language","address-region","address-limit"]}),T(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValue()}})(we({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${by} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${by} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:My})),Ey=Ay.cssVarList,Ty={[Ey.hostWidth]:Zh.width,[Ey.hostDirection]:Zh.direction,_fullWidth:{[Ey.hostWidth]:"100%"}};var ky=Object.freeze({__proto__:null,default:Ty,vars:Ey});const zy=(e,t=2)=>String(e).padStart(t,"0"),Ly=k("timer"),Ny=["seconds","hide-icon","paused"],Dy=ue({componentName:Ly,baseSelector:":host > .wrapper"}),{host:Vy,icon:Py,timer:By}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},Ry=I(ne({mappings:{fontSize:{},iconSize:[{...Py,property:"width"},{...Py,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...By},lineHeight:{...By},textColor:{...By,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...Vy,property:"width"},hostDirection:{...Vy,property:"direction"},iconColor:{...Py,property:yo.cssVarList.fill}}}),ae,se)(class extends Dy{#vt=0;#xt;static get observedAttributes(){return Ny.concat(Dy.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=" class="icon"></descope-icon>\n <div class="timer"></div>\n </div>\n\t\t',N("\n :host {\n display: inline-flex;\n user-select: none;\n -webkit-user-select: none;\n }\n .wrapper {\n display: flex;\n align-items: center;\n flex-direction: row;\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ",this),this.icon=this.shadowRoot.querySelector(".icon"),this.timer=this.shadowRoot.querySelector(".timer")}get seconds(){const e=this.getAttribute("seconds"),t=1e3*parseInt(e||0,10);return Math.max(0,t)}get isPaused(){return"true"===this.getAttribute("paused")}init(){super.init?.(),this.#vt=this.seconds}startInterval(){this.#vt?this.#xt=setInterval(()=>{this.#Ct(),this.#vt||this.stop(),this.#wt(this.#vt)},1e3):this.stop()}stopInterval(){clearInterval(this.#xt)}#Ct(){this.#vt=this.#vt-1e3}reset(){this.#vt=this.seconds,this.#wt(this.#vt),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#vt=0,this.#wt(this.#vt),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#wt(e){this.timer.textContent=((e=0)=>{const t=Math.floor(e/1e3),r=Math.floor(t/3600),o=Math.floor(t%3600/60),i=t%60;return[...r?[zy(r)]:[],zy(o),zy(i)].join(":")})(e)}#It(e){this.icon.classList.toggle("hidden",e)}#Mt(e){setTimeout(()=>{e?this.pause():this.#xt||this.resume()})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("seconds"===e&&this.reset(),"hide-icon"===e&&this.#It("true"===r),"paused"===e&&this.#Mt("true"===r))}}),Oy=Q(iu),jy=Ry.cssVarList,Fy={[jy.hostDirection]:Oy.direction,[jy.gap]:"0.25em",[jy.fontFamily]:Oy.fonts.font1.family,[jy.minHeight]:"1.5em",[jy.lineHeight]:"1em",[jy.fontWeight]:Oy.fonts.font1.fontWeight,[jy.textColor]:Oy.colors.surface.contrast,[jy.iconColor]:Oy.colors.surface.contrast,[jy.iconSize]:"1em",size:{xs:{[jy.fontSize]:"12px"},sm:{[jy.fontSize]:"14px"},md:{[jy.fontSize]:"16px"},lg:{[jy.fontSize]:"18px"}},textAlign:{right:{[jy.textAlign]:"right"},left:{[jy.textAlign]:"left"},center:{[jy.textAlign]:"center"}},_fullWidth:{[jy.hostWidth]:"100%"}};var Wy=Object.freeze({__proto__:null,default:Fy,vars:jy});const _y=k("timer-button"),$y=["button-variant","button-mode","size","text-align","full-width"],Hy={"button-variant":"variant","button-mode":"mode"},qy=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],Yy={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},Uy=ue({componentName:_y,baseSelector:":host > div"}),{host:Gy}={host:{selector:()=>":host"}},Zy=I(ne({mappings:{gap:{},flexDirection:{},hostWidth:{...Gy,property:"width"},hostDirection:{...Gy,property:"direction"}}}),ae,se)(class extends Uy{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-timer class="timer"></descope-timer>\n <descope-button class="button" disabled="true">\n <slot></slot>\n </descope-button>\n </div>\n\t\t',N("\n :host {\n display: inline-flex;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n gap: 0.5em;\n align-items: center;\n width: 100%;\n }\n .timer {\n flex: 1;\n }\n ",this),this.timer=this.shadowRoot.querySelector(".timer"),this.button=this.shadowRoot.querySelector(".button"),this.timer.addEventListener("timer-started",()=>this.onTimerStarted()),this.timer.addEventListener("timer-ended",()=>this.onTimerEnded()),this.button.addEventListener("click",this.onClick.bind(this))}set onclick(e){this.button.onclick=e}init(){super.init?.(),L(this,this.button,{includeAttrs:$y,mapAttrs:Hy}),L(this,this.timer,{includeAttrs:qy,mapAttrs:Yy}),this.button.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}onTimerStarted(){this.toggleButtonDisable(!0)}onTimerEnded(){this.toggleButtonDisable(!1)}onClick(){this.timer.reset()}toggleButtonDisable(e){setTimeout(()=>{e?this.button.setAttribute("disabled","true"):this.button.removeAttribute("disabled")})}}),Qy=Q(iu),Jy=Zy.cssVarList,Ky={[Jy.gap]:Qy.spacing.sm,[Jy.flexDirection]:"column",_horizontal:{[Jy.flexDirection]:"row"},_fullWidth:{[Jy.hostWidth]:"100%"}};var Xy=Object.freeze({__proto__:null,default:Ky,vars:Jy});const ef=k("password-strength");class tf extends(ue({componentName:ef,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["options","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="bars-container"></div>\n <div class="text-container">\n </div>\n </div>\n\t\t',N("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .wrapper {\n display: inline-flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n height: 100%;\n align-items: flex-start;\n }\n\n .bar {\n flex-grow: 1;\n }\n\n .bars-container {\n display: flex;\n flex-grow: 1;\n width: 100%;\n }\n ",this),this.barsContainer=this.shadowRoot.querySelector(".bars-container"),this.textContainer=this.shadowRoot.querySelector(".text-container")}get options(){return this.getAttribute("options")?.split(",")||[]}getCalcScoreFn=()=>Promise.resolve().then(function(){return hv}).then(e=>e.default);#St=-1;async calcScore(){const e=this.getAttribute("value")||"";return e?(await this.getCalcScoreFn())(e).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((e,t)=>{const r=document.createElement("div");return r.classList.add("bar"),r.classList.toggle("filled",t<=this.#St),this.barsContainer.appendChild(r),r})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const e=await this.calcScore();e!==this.#St&&(this.#St=e,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#St})),this.bars?.forEach((e,t)=>{e.classList.toggle("filled",t<=this.#St)}),this.textContainer.innerHTML=this.options[this.#St]||"",-1===this.#St?this.removeAttribute("score"):this.setAttribute("score",this.#St))}attributeChangedCallback(e,t,r){if(t!==r)return"options"===e?this.renderBars():"value"===e?this.onValueChange():void 0}}const{host:rf,bar:of,filledBar:nf,barsContainer:af,text:sf}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},lf=I(ne({componentNameOverride:k("input-wrapper")}),ne({mappings:{hostWidth:[{...rf,property:"width"},{...rf,property:"min-width"}],hostDirection:{...rf,property:"direction"},hostMinWidth:{...rf,property:"min-width"},barHeight:{...of,property:"height"},barBorderRadius:{...of,property:"border-radius"},emptyBarColor:{...of,property:"background-color"},filledBarColor:{...nf,property:"background-color"},textColor:{...sf,property:"color"},spacing:{property:"gap"},barSpacing:{...af,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...of,property:"transition"}}}),ae,se)(tf),df=Q(iu),cf=lf.cssVarList,pf={[cf.hostDirection]:df.direction,[cf.barHeight]:"4px",[cf.barTransition]:"background-color 0.3s",[cf.barBorderRadius]:df.radius.sm,[cf.hostMinWidth]:Zh.minWidth,[cf.barSpacing]:df.spacing.sm,[cf.emptyBarColor]:df.colors.surface.light,[cf.fontFamily]:Zh.fontFamily,[cf.fontSize]:Zh.labelFontSize,[cf.fontWeight]:Zh.labelFontWeight,[cf.spacing]:df.spacing.sm,_fullWidth:{[cf.hostWidth]:"100%"},score:{0:{[cf.filledBarColor]:df.colors.error.light,[cf.textColor]:df.colors.error.light},1:{[cf.filledBarColor]:df.colors.error.main,[cf.textColor]:df.colors.error.main},2:{[cf.filledBarColor]:df.colors.error.dark,[cf.textColor]:df.colors.error.dark},3:{[cf.filledBarColor]:df.colors.success.dark,[cf.textColor]:df.colors.success.dark},4:{[cf.filledBarColor]:df.colors.success.main,[cf.textColor]:df.colors.success.main}}},uf={...cf};var hf=Object.freeze({__proto__:null,default:pf,vars:uf});const mf=k("collapsible-container");class gf extends(ue({componentName:mf,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-text st-host-direction="ltr">\n <div class="header">\n <div class="icon">\n <descope-icon st-fill="currentcolor" src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNy4yMTkzIDkuMjcyODNDMTcuNjU4NCA4Ljg3OTEyIDE4LjMzMzQgOC45MTU4NyAxOC43MjcyIDkuMzU0OTJDMTkuMTIwOSA5Ljc5Mzk3IDE5LjA4NDEgMTAuNDY5MSAxOC42NDUxIDEwLjg2MjhDMTguNjQ1MSAxMC44NjI4IDEzLjA0NTcgMTYuMDAyMiAxMi42NCAxNi4zNjZDMTIuMjM0MyAxNi43Mjk4IDExLjc2MDggMTYuNzI5OCAxMS4zNTUyIDE2LjM2Nkw1LjM1NDkyIDEwLjg2MjhDNC45MTU4NyAxMC40NjkxIDQuODc5MTIgOS43OTM5NyA1LjI3MjgzIDkuMzU0OTJDNS42NjY1NSA4LjkxNTg3IDYuMzQxNjQgOC44NzkxMiA2Ljc4MDY5IDkuMjcyODNMMTIgMTQuMTM2OEwxNy4yMTkzIDkuMjcyODNaIi8+Cjwvc3ZnPgo=></descope-icon>\n </div>\n <span></span>\n </div>\n </descope-text>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n\t',N(`\n div.content {\n transition-property: max-height;\n overflow: auto;\n height: auto;\n\t\t\t}\n\t\t\tslot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n slot:focus-visible {\n outline: none;\n }\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n .header {\n user-select: none;\n display: flex;\n align-items: baseline;\n }\n .icon {\n flex-shrink: 0;\n height: var(${vr.cssVarList.textLineHeight});\n min-height: 24px;\n display: flex;\n align-items: center;\n }\n descope-icon {\n transition-property: transform;\n }\n .rotate {\n transform: rotate(-180deg);\n }\n descope-text {\n width: 100%;\n display: flex;\n }\n span {\n align-self: center;\n word-break: break-word;\n }\n span:empty {\n display: none;\n }\n .wrapper {\n overflow: hidden;\n display: inline-flex;\n width: 100%;\n flex-direction: column;\n }\n `,this),this.header=this.shadowRoot.querySelector(".header"),this.content=this.shadowRoot.querySelector("div.content"),this.icon=this.header.querySelector("descope-icon"),this.headerText=this.header.querySelector("span"),this.textComponent=this.shadowRoot.querySelector("descope-text")}get isCollapsible(){return"true"===this.getAttribute("collapsible")}calcContentHeight(){return this.content.offsetHeight||this.content.scrollHeight}get isCollapsed(){return"true"===this.getAttribute("collapsed")}toggle(){this.setAttribute("collapsed",this.isCollapsed?"false":"true")}collapse(e=!1){const t=()=>{this.content.style.maxHeight="0px"};if(this.icon.classList.add("rotate"),!e)return t();this.content.style.maxHeight=this.calcContentHeight()+"px",setTimeout(t)}expand(e=!1){const t=()=>{this.content.style.maxHeight=""};if(this.icon.classList.remove("rotate"),!e)return t();this.content.addEventListener("transitionend",t,{once:!0}),this.content.style.maxHeight=this.calcContentHeight()+"px"}#At=!1;init(){super.init?.(),this.#At=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),L(this,this.textComponent,{includeAttrs:["text-align","text-variant","text-mode"],mapAttrs:{"text-mode":"mode","text-variant":"variant"}})}updateHeaderText(){const e=this.getAttribute("text")||"";this.headerText.innerText=e}attributeChangedCallback(e,t,r){"text"!==e?this.isCollapsed&&this.isCollapsible?this.collapse(this.#At):this.expand(this.#At):this.updateHeaderText()}}const bf={host:()=>":host",icon:()=>"descope-icon",iconWrapper:()=>".icon",header:()=>".header",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},yf=I(ne({mappings:{hostWidth:{selector:bf.host,property:"width"},hostDirection:{selector:bf.host,property:"direction"},verticalPadding:[{selector:bf.wrapper,property:"padding-top"},{selector:bf.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:bf.wrapper,property:"padding-left"},{selector:bf.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:bf.wrapper},backgroundImage:{selector:bf.wrapper},backgroundPositionX:{selector:bf.wrapper},backgroundPositionY:{selector:bf.wrapper},backgroundSize:{selector:bf.wrapper},backgroundRepeat:{selector:bf.wrapper},borderRadius:{selector:bf.wrapper},borderColor:{selector:bf.wrapper},borderStyle:{selector:bf.wrapper},borderWidth:{selector:bf.wrapper},boxShadow:{selector:bf.wrapper},headerIconOrder:{selector:bf.iconWrapper,property:"order"},headerCursor:{selector:bf.header,property:"cursor"},headerGap:{selector:bf.header,property:"gap"},textGrow:{selector:bf.text,property:"flex-grow"},textDirection:{selector:bf.text,property:"direction"},iconAnimationDuration:{selector:bf.icon,property:"transition-duration"},contentAnimationDuration:{selector:bf.content,property:"transition-duration"}}}),ae,se)(gf),ff=Q(iu),vf=yf.cssVarList,[xf,Cf,wf]=K({shadowColor:"#00000020"},mf),{shadowColor:If}=Cf,Mf={...xf,[vf.hostWidth]:"100%",[vf.boxShadow]:"none",[vf.backgroundColor]:ff.colors.surface.main,[vf.backgroundImage]:"",[vf.backgroundPositionX]:"center",[vf.backgroundPositionY]:"center",[vf.backgroundSize]:"cover",[vf.backgroundRepeat]:"no-repeat",[vf.borderRadius]:"0px",[vf.hostDirection]:ff.direction,[vf.flexDirection]:"column",[vf.alignItems]:"flex-start",[vf.justifyContent]:"flex-start",[vf.headerGap]:ff.spacing.md,[vf.iconAnimationDuration]:"0.1s",[vf.contentAnimationDuration]:"0.1s",[vf.borderWidth]:"0px",[vf.textGrow]:"0",verticalPadding:{sm:{[vf.verticalPadding]:"5px"},md:{[vf.verticalPadding]:"10px"},lg:{[vf.verticalPadding]:"20px"}},horizontalPadding:{sm:{[vf.horizontalPadding]:"5px"},md:{[vf.horizontalPadding]:"10px"},lg:{[vf.horizontalPadding]:"20px"}},spaceBetween:{sm:{[vf.gap]:"10px"},md:{[vf.gap]:"20px"},lg:{[vf.gap]:"30px"}},shadow:{sm:{[vf.boxShadow]:`${ff.shadow.wide.sm} ${If}, ${ff.shadow.narrow.sm} ${If}`},md:{[vf.boxShadow]:`${ff.shadow.wide.md} ${If}, ${ff.shadow.narrow.md} ${If}`},lg:{[vf.boxShadow]:`${ff.shadow.wide.lg} ${If}, ${ff.shadow.narrow.lg} ${If}`},xl:{[vf.boxShadow]:`${ff.shadow.wide.xl} ${If}, ${ff.shadow.narrow.xl} ${If}`},"2xl":{[wf.shadowColor]:"#00000050",[vf.boxShadow]:`${ff.shadow.wide["2xl"]} ${If}`}},borderRadius:{sm:{[vf.borderRadius]:ff.radius.sm},md:{[vf.borderRadius]:ff.radius.md},lg:{[vf.borderRadius]:ff.radius.lg},xl:{[vf.borderRadius]:ff.radius.xl},"2xl":{[vf.borderRadius]:ff.radius["2xl"]},"3xl":{[vf.borderRadius]:ff.radius["3xl"]}},iconPosition:{left:{[vf.headerIconOrder]:"0"},right:{[vf.headerIconOrder]:"1"}},_fillTitle:{[vf.textGrow]:"1"},_border:{[vf.borderColor]:ff.colors.surface.light,[vf.borderWidth]:ff.border.xs,[vf.borderStyle]:"solid"},_collapsible:{[vf.headerCursor]:"pointer"}},Sf={...vf,...wf};var Af=Object.freeze({__proto__:null,default:Mf,vars:Sf});const Ef=k("recovery-codes");class Tf extends(ue({componentName:Ef,baseSelector:":host > div"})){static get observedAttributes(){return["readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="list"></div>\n <descope-text class="icon-wrapper">\n <vaadin-icon class="icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>\n </descope-text>\n </div>\n ',this.list=this.shadowRoot.querySelector(".list"),this.icon=this.shadowRoot.querySelector(".icon"),this.iconWrapper=this.shadowRoot.querySelector(".icon-wrapper"),N("\n :host {\n display: inline-block;\n position: relative;\n }\n .wrapper {\n display: flex;\n justify-content: space-between;\n }\n .list {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n }\n descope-text span {\n display: inline-flex;\n align-items: center;\n width: fit-content;\n }\n descope-text span::before {\n content: '\\02022';\n transform: translateY(-0.06em);\n }\n .icon-wrapper {\n align-self: flex-start;\n }\n .icon {\n cursor: pointer;\n }\n .icon.copied {\n cursor: initial;\n }\n .icon.readonly {\n pointer-events: none;\n }\n ",this)}get variant(){return this.getAttribute("variant")}get mode(){return this.getAttribute("mode")}init(){super.init(),this.icon.addEventListener("click",this.onCopy.bind(this)),L(this,this.iconWrapper,{includeAttrs:["variant","mode"]})}onCopy(){navigator.clipboard.writeText(String(this.data.map(e=>e.value).join("\n"))),this.icon.setAttribute("icon","vaadin:check-circle-o"),this.icon.setAttribute("title","Copied"),this.icon.classList.add("copied"),setTimeout(()=>{this.icon.setAttribute("icon","vaadin:copy-o"),this.icon.setAttribute("title","Copy"),this.icon.classList.remove("copied")},5e3)}onReadOnly(e){this.icon.classList.toggle("readonly",e)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&"readonly"===e&&this.onReadOnly("true"===r)}}const kf=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>vr.componentName,property:vr.cssVarList.hostDirection}],textAlign:{selector:()=>".list",property:"align-items"},iconColor:{selector:()=>"vaadin-icon",property:"color"},iconSize:{selector:()=>"vaadin-icon",property:"font-size"},iconGap:{selector:()=>".wrapper",property:"gap"},bulletGap:{selector:()=>"descope-text span",property:"gap"}}}),ke({itemRenderer:({value:e},t,r)=>`\n <descope-text variant="${r.variant}" mode="${r.mode}">\n <span>${e}</span>\n </descope-text>\n `,rerenderAttrsList:["variant","mode"],targetSelector:".list"}),ae,se)(Tf),zf=Q(iu),Lf=kf.cssVarList,Nf=vr.cssVarList,Df={[Lf.hostMinWidth]:"190px",[Lf.hostDirection]:zf.direction,[Lf.iconColor]:J(Nf.textColor),[Lf.iconSize]:J(Nf.fontSize),[Lf.iconGap]:"8px",[Lf.bulletGap]:"0.35em",textAlign:{right:{[Lf.textAlign]:"flex-end"},left:{[Lf.textAlign]:"flex-start"},center:{[Lf.textAlign]:"center"}},_fullWidth:{[Lf.hostWidth]:"100%"}};var Vf=Object.freeze({__proto__:null,default:Df,vars:Lf});const Pf=k("outbound-apps"),Bf=({name:e,description:t,logo:r,appId:o,isConnected:i},n,a)=>{const s=i?"disconnect":"connect";return`\n <descope-list-item>\n <descope-avatar\n ${r?`img="${r}"`:""}\n ${e?`display-name="${e}" abbr=${P(e)}`:""}\n size=${a.size}\n ${r?'st-avatar-background-color="none"':""}\n class="app-logo"\n ></descope-avatar>\n\n <div class="content">\n <descope-text\n class="app-title"\n variant="subtitle1"\n mode="primary"\n >${e}</descope-text>\n ${t?`\n <descope-text\n class="app-description"\n variant="body2"\n mode="primary"\n >${t}</descope-text>\n `:""}\n </div>\n <div class="controls">\n <descope-button variant="link" mode="primary" size=${a.size} data-action="${s}" data-outbound-app-id="${o}" data-id="${s}">\n ${i?a.disconnectButtonLabel:a.connectButtonLabel}\n </descope-button>\n </div>\n </descope-list-item>\n`},Rf=ue({componentName:Pf,baseSelector:"descope-list"}),{host:Of}={host:{selector:()=>":host"}},jf=I(ne({mappings:{hostWidth:{...Of,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...Of,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:yo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:yo.cssVarList.fill},fontSize:{selector:vr.componentName,property:vr.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:vr.componentName,property:vr.cssVarList.textAlign},itemCursor:{selector:hp.componentName,property:hp.cssVarList.cursor},itemOutline:{selector:hp.componentName,property:hp.cssVarList.outline},itemBorderColor:{selector:hp.componentName,property:hp.cssVarList.borderColor},itemBackgroundColor:{selector:hp.componentName,property:hp.cssVarList.backgroundColor},listBorderWidth:{selector:()=>bp.componentName,property:bp.cssVarList.borderWidth},listBoxShadow:{selector:()=>bp.componentName,property:bp.cssVarList.boxShadow},listPadding:[{selector:()=>bp.componentName,property:bp.cssVarList.verticalPadding},{selector:()=>bp.componentName,property:bp.cssVarList.horizontalPadding}]}}),ae,ke({itemRenderer:Bf,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),se)(class extends Rf{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),N("\n :host {\n width: 100%;\n }\n .controls {\n display: flex;\n min-width: 8em;\n justify-content: end;\n }\n .content {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n .app-title,\n .app-description {\n display: flex;\n direction: inherit;\n }\n descope-list {\n display: block;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Bf,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(e){if(!this.readonly){const t=e.srcElement.getAttribute("data-outbound-app-id"),r=e.srcElement.getAttribute("data-action");t&&r&&this.dispatchEvent(new CustomEvent(`${r}-clicked`,{bubbles:!0,detail:{id:t,action:r}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),Ff=jf.cssVarList,Wf={[Ff.iconColor]:iu.colors.primary.main,[Ff.errorIconColor]:iu.colors.error.main,[Ff.appLogoGap]:iu.spacing.md,[Ff.contentGap]:iu.spacing.xs,[Ff.itemCursor]:"default",[Ff.itemOutline]:"none",[Ff.itemBorderColor]:"transparent",[Ff.listPadding]:"0",[Ff.listBorderWidth]:"0",[Ff.listBoxShadow]:"none",size:{xs:{[Ff.fontSize]:"0.6em"},sm:{[Ff.fontSize]:"0.8em"},md:{[Ff.fontSize]:"1em"},lg:{[Ff.fontSize]:"1.5em"}}};var _f=Object.freeze({__proto__:null,default:Wf,vars:Ff});const $f=k("outbound-app-button");class Hf extends(ue({componentName:$f,baseSelector:":host > descope-button"})){static get observedAttributes(){return["label","icon-src","icon-fill-current-color"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-button>\n <descope-icon class="icon"></descope-icon>\n <span class="label"></span>\n </descope-button>\n ',N("\n :host {\n display: inline-block;\n }\n .hidden {\n display: none;\n }\n ",this),this.button=this.shadowRoot.querySelector("descope-button"),this.icon=this.shadowRoot.querySelector(".icon"),this.label=this.shadowRoot.querySelector(".label")}init(){super.init?.(),L(this,this.button,{excludeAttrs:["style","class","label","icon-src","icon-fill-current-color"]})}updateLabel(e=""){this.label.textContent=e,this.label.classList.toggle("hidden",!e)}updateIcon(e=""){this.icon.setAttribute("src",e),this.icon.classList.toggle("hidden",!e)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("label"===e?this.updateLabel(r):"icon-src"===e&&this.updateIcon(r))}}const qf=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Io.cssVarList.iconColor}}}),ae,se)(Hf),Yf=qf.cssVarList,Uf={[Yf.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Yf.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Yf.hostWidth]:"100%"}},Gf=Yf;var Zf=Object.freeze({__proto__:null,default:Uf,vars:Gf});const Qf=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},Jf={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDFIOEM2LjM0IDEgNSAyLjM0IDUgNFYyMEM1IDIxLjY2IDYuMzQgMjMgOCAyM0gxNkMxNy42NiAyMyAxOSAyMS42NiAxOSAyMFY0QzE5IDIuMzQgMTcuNjYgMSAxNiAxWk0xNyAxOEg3VjRIMTdWMThaTTE0IDIxSDEwVjIwSDE0VjIxWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDEuNUg4QzYuMzQgMS41IDUgMi44NCA1IDQuNVYyMC41QzUgMjIuMTYgNi4zNCAyMy41IDggMjMuNUgxNkMxNy42NiAyMy41IDE5IDIyLjE2IDE5IDIwLjVWNC41QzE5IDIuODQgMTcuNjYgMS41IDE2IDEuNVpNMTcgMTguNUg3VjQuNUgxN1YxOC41Wk0xNCAyMS41SDEwVjIwLjVIMTRWMjEuNVoiIGZpbGw9IiNGNEY1RjYiLz4KPC9zdmc+Cg=="},tablet:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUyNTJfNzY4KSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iIzYzNkM3NCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUyNTJfNzY4Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUzMDNfODYzKSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUzMDNfODYzIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},unknown:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},Kf=k("trusted-devices"),Xf=({id:e,name:t,lastLoginDate:r,deviceType:o,isCurrent:i},n,a)=>{const s=i?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(e=>{const t=Jf[e]||Jf.unknown;return{iconSrc:t.light,iconSrcDark:t.dark}})(o),c=a.lastLoginLabel?`${a.lastLoginLabel} `:"",p=((e,t)=>{if(Number.isNaN(parseInt(e,10)))return"";const r=new Date(e),o=r.getFullYear(),i=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0"),a=r.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),s={"DD-MM-YYYY":`${n}/${i}/${o}`,"YYYY-MM-DD":`${o}/${i}/${n}`,"MM-DD-YYYY":`${i}/${n}/${o}`};return`${s[t]||s["MM/DD/YYYY"]} ${a}`})(r,a.format),u=i?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${a.direction}"\n >\n ${a.currentDeviceLabel}\n </descope-badge>`:"",h=a.hideActions||i?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${e}"\n st-host-direction="${a.direction}"\n ellipsis="true"\n >\n ${a.removeDeviceLabel}\n </descope-link>`,m=document.createElement("template");return m.innerHTML=`\n <descope-list-item ${s}>\n <div class="content">\n <div class="main">\n <span class="device">\n <descope-icon\n class="device-icon"\n src="${l}"\n src-dark="${d}">\n </descope-icon>\n <descope-text\n class="device-name"\n variant="body1"\n mode="primary">\n </descope-text>\n </span>\n <span class="panel">\n ${u}\n ${h}\n </span>\n </div>\n <div class="meta">\n <descope-text\n variant="body2"\n mode="primary"\n >\n ${c}\n </descope-text>\n <descope-text\n class="login-date"\n variant="body2"\n mode="primary"\n >\n ${p}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,m.content.querySelector(".device-name").textContent=t,m},ev=ue({componentName:Kf,baseSelector:bp.componentName}),{host:tv}={host:{selector:()=>":host"}},rv=I(ne({mappings:{hostWidth:{...tv,property:"width"},hostMinWidth:{...tv,property:"min-width"},hostDirection:[{...tv,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:bp.cssVarList.gap},listBackgroundColor:{selector:()=>bp.componentName,property:bp.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bp.componentName,property:bp.cssVarList.borderRadius},listBorderWidth:{selector:()=>bp.componentName,property:bp.cssVarList.borderWidth},listBoxShadow:{selector:()=>bp.componentName,property:bp.cssVarList.boxShadow},listPadding:[{selector:()=>bp.componentName,property:bp.cssVarList.verticalPadding},{selector:()=>bp.componentName,property:bp.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:hp.componentName,property:hp.cssVarList.verticalPadding},itemHorizontalPadding:{selector:hp.componentName,property:hp.cssVarList.horizontalPadding},itemCursor:{selector:hp.componentName,property:hp.cssVarList.cursor},itemOutline:{selector:hp.componentName,property:hp.cssVarList.outline},itemBorderColor:{selector:hp.componentName,property:hp.cssVarList.borderColor},itemBorderRadius:{selector:hp.componentName,property:hp.cssVarList.borderRadius},itemBackgroundColor:{selector:hp.componentName,property:hp.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:zc.componentName,property:zc.cssVarList.borderColor},badgeTextColor:{selector:zc.componentName,property:zc.cssVarList.textColor},badgeBackgroundColor:{selector:zc.componentName,property:zc.cssVarList.backgroundColor},badgeBorderRadius:{selector:zc.componentName,property:zc.cssVarList.borderRadius},devicePanelGap:{selector:()=>".main",property:"gap"},deviceIconGap:{selector:()=>".device",property:"gap"},deviceIconSize:[{selector:()=>".device-icon",property:"width"},{selector:()=>".device-icon",property:"height"}],lastLoginLabelGap:{selector:" .meta",property:"gap"}}}),ae,ke({itemRenderer:Xf,sortFn:(e,t)=>Qf(t.lastLoginDate)-Qf(e.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),se)(class extends ev{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),N("\n :host {\n display: inline-block;\n }\n\n .descope-list-item {\n min-width: 0;\n }\n\n .current-device {\n order: -1;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .main {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n }\n\n .device {\n display: flex;\n min-width: 0;\n }\n\n .device-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .login-date {\n min-width: fit-content;\n }\n\n descope-badge {\n min-width: 0;\n }\n\n descope-text {\n display: flex;\n align-items: center; \n min-width: 0;\n }\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n descope-link {\n overflow: hidden;\n }\n descope-link.remove-device::part(wrapper) {\n display: flex;\n width: 100%;\n }\n descope-link.remove-device {\n width: 100%;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Xf,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(e){if(this.readOnly)return;const t=e.target.closest("[data-device-id]"),r=t?.getAttribute("data-device-id");r&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:r,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),ov=rv.cssVarList,iv={[ov.hostWidth]:"auto",[ov.hostWidth]:"300px",[ov.hostMinWidth]:"300px",[ov.listBackgroundColor]:"transparent",[ov.listBorderRadius]:"0",[ov.listBorderWidth]:"0",[ov.listPadding]:"0",[ov.listBoxShadow]:"none",[ov.listItemsGap]:iu.spacing.lg,[ov.itemBorderColor]:iu.colors.surface.light,[ov.itemVerticalPadding]:iu.spacing.lg,[ov.itemHorizontalPadding]:iu.spacing.lg,[ov.itemBorderRadius]:iu.radius.xs,[ov.itemOutline]:"transparent",[ov.itemBackgroundColor]:"transparent",[ov.itemCursor]:"default",[ov.itemContentGap]:iu.spacing.sm,[ov.badgeBorderColor]:iu.colors.surface.light,[ov.badgeTextColor]:iu.colors.surface.dark,[ov.badgeBorderRadius]:iu.radius.xs,[ov.badgeBackgroundColor]:iu.colors.surface.main,[ov.devicePanelGap]:iu.spacing.md,[ov.deviceIconGap]:iu.spacing.md,[ov.deviceIconSize]:"24px",[ov.lastLoginLabelGap]:iu.spacing.xs,_fullWidth:{[ov.hostWidth]:"100%"}},nv={button:mu,textField:Mu,password:Tu,numberField:Lu,emailField:Vu,textArea:Ru,checkbox:Wu,switchToggle:Yu,container:th,logo:ih,totpImage:sh,notpImage:ch,text:mh,enrichedText:wh,link:fh,divider:zh,passcode:Dh,loaderRadial:qh,loaderLinear:Rh,comboBox:Xh,phoneField:rm,phoneInputBoxField:nm,newPassword:dm,inputWrapper:xu,uploadFile:um,buttonSelectionGroupItem:bm,buttonSelectionGroup:Cm,buttonMultiSelectionGroup:Mm,modal:km,grid:Dm,notificationCard:Om,multiSelectComboBox:_m,badge:Ym,avatar:og,mappingsField:sg,userAttribute:pg,userAuthMethod:gg,samlGroupMappings:fg,policyValidation:wg,image:Ag,icon:Mg,codeSnippet:Zg,radioGroup:Xg,radioButton:ob,calendar:sb,dateField:hb,list:kb,listItem:Db,appsList:xb,scopesList:Bb,thirdPartyAppLogo:Fb,securityQuestionsSetup:$b,securityQuestionsVerify:Yb,hybridField:Zb,alert:Xb,autocompleteField:hy,addressField:ky,timer:Wy,timerButton:Xy,passwordStrength:hf,collapsibleContainer:Af,recoveryCodes:Vf,hcaptcha:ry,outboundApps:_f,outboundAppButton:Zf,trustedDevices:Object.freeze({__proto__:null,default:iv,vars:ov})},av=Object.keys(nv).reduce((e,t)=>({...e,[t]:nv[t].default}),{}),sv=Object.keys(nv).reduce((e,t)=>({...e,[t]:nv[t].vars}),{}),lv={globals:Xp,components:av},dv={globals:eu,components:sv},cv=s()({},lv,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"},warning:{main:"#EF7A33",dark:"#FF985A",light:"#FF6304",highlight:"#C45512",contrast:"#000000"}}},components:{...Gg}});customElements.define(oy,class extends iy{static get observedAttributes(){return[].concat(iy.observedAttributes||[],ny)}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get minSearchLength(){return this.getAttribute("min-search-length")||3}get noResultsFoundMessage(){return this.getAttribute("no-results-message")||"No results found"}get errorFetchingResultsMessage(){return this.getAttribute("error-fetching-results-message")||"An error occurred fetching results"}constructor(){super(),this.innerHTML='\n <div class="autocomplete-field">\n <descope-combo-box clear-button-visible="true" auto-open-disabled="true" has-dynamic-data="true" item-label-path="data-name" item-value-path="data-id" hide-toggle-button="true"></descope-combo-box>\n </div>\n ',this.comboBox=this.querySelector("descope-combo-box")}get value(){return this.comboBox.value}set value(e){this.allowCustomValue?this.comboBox.value=e:(this.comboBox.data=[{label:e,value:e}],setTimeout(()=>{this.comboBox.value=e}))}get defaultValue(){return this.getAttribute("default-value")}async#Et(e){const{results:t,error:r}=await this.fetchResults(e);return r?{error:r}:{results:t}}#Tt(e,t,r,o){return`<span data-name="${r}" data-id="${t}" ${o?'disabled="true"':""}>${e||r}</span>`}#kt(){this.comboBox.renderer=(e,t,r)=>{"true"===r.item.getAttribute("disabled")?e.setAttribute("disabled","true"):e.removeAttribute("disabled"),e.innerHTML=r.item.outerHTML},this.comboBox.renderItem=({displayName:e,value:t,label:r,disabled:o})=>this.#Tt(e,t,r,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#zt(),T(this,this.comboBox,{includeAttrs:["invalid"]})}#zt(){this.debouncedSearch=(e=>{let t=0;const r=new Set,o=new Set,i=n()((i,n)=>{e(...i).then(e=>{n===t&&(r.forEach(t=>t(e)),r.clear())}).catch(e=>{o.forEach(t=>t(e)),o.clear()})},250);return(...e)=>(t++,new Promise((n,a)=>{r.add(n),o.add(a),i(e,t)}))})(async e=>{try{const{results:t,error:r}=await this.#Et(e);return{results:t,error:r,value:e}}catch(t){return{error:t,value:e}}}),L(this,this.comboBox,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","invalid","error-message","data-errormessage-value-missing","st-host-direction","allow-custom-value","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),this.comboBox.addEventListener("filter-changed",this.onSearch.bind(this)),this.#kt()}#Lt(){return[{label:this.noResultsFoundMessage,value:ay,disabled:!0}]}#Nt(){return[{label:this.errorFetchingResultsMessage,value:ay,disabled:!0}]}async onSearch(e){const t=e.detail.value;if(!t||t.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const r=await this.debouncedSearch(t);r&&r.value===t&&(this.comboBox.loading=!1,r.error?this.comboBox.data=this.#Nt():0===r.results?.length?this.comboBox.data=this.#Lt():this.comboBox.data=r.results||[])}fetchResults(e){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(sy,dy),customElements.define(by,Iy),customElements.define(My,Ay),customElements.define(Um,Km),customElements.define(mb,gb),customElements.define(mf,yf),customElements.define($f,qf),customElements.define(Pf,jf),customElements.define(ef,lf);var pv=Object.freeze({__proto__:null,PasswordStrengthClass:lf,componentName:ef});customElements.define(Ef,kf),customElements.define(Ly,Ry),customElements.define(_y,Zy),customElements.define(Kf,rv);const uv={translations:f.A,graphs:y.K,dictionary:{...y.z,...v.z}};b.u2.setOptions(uv);var hv=Object.freeze({__proto__:null,default:b.K1,options:uv})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_descope_flow_components_2_2_2_1761664933847=self.webpackChunk_descope_flow_components_2_2_2_1761664933847||[]).push([[222],{5222:(e,t,r)=>{r.d(t,{$y:()=>Wp,A8:()=>Mc,Ag:()=>$s,C1:()=>jc,C9:()=>co,Cz:()=>cc,Er:()=>Km,G6:()=>dv,HO:()=>Or,HT:()=>$r,J1:()=>Io,Jr:()=>Tr,Lg:()=>qp,MN:()=>Xn,Mz:()=>vs,NF:()=>Va,O7:()=>yf,Od:()=>Cp,QW:()=>ic,Qb:()=>kf,SE:()=>Zr,SQ:()=>yo,TV:()=>Zp,Ul:()=>Ja,VN:()=>md,VX:()=>gn,_w:()=>wt,a5:()=>cv,bL:()=>Xi,bU:()=>Ay,br:()=>B,dX:()=>gb,dq:()=>rv,e7:()=>vt,eA:()=>zc,eo:()=>rl,ew:()=>nt,fp:()=>dl,gZ:()=>pp,h5:()=>jf,jH:()=>yn,k0:()=>ln,l1:()=>Yr,md:()=>hn,ml:()=>De,mq:()=>tp,o9:()=>vn,o_:()=>Ct,pp:()=>Gc,px:()=>Vp,q4:()=>gr,qn:()=>go,rG:()=>Ap,sK:()=>vr,tD:()=>jd,tS:()=>np,td:()=>tc,tl:()=>Wn,ul:()=>Ns,v_:()=>cn,w8:()=>ji,wt:()=>ds,xO:()=>da,xp:()=>bp,xs:()=>vi,yW:()=>qf,yj:()=>Zy,zQ:()=>lv});var o=r(7949),i=r(72),n=r.n(i),a=r(8089),s=r.n(a),l=r(465),d=r.n(l),c=(r(8231),r(4873),r(865),r(4598),r(7519)),p=(r(496),r(9967),r(4155),r(9504),r(1399),r(5877),r(3798),r(8619),r(1394)),u=r(3667),h=(r(8319),r(3826)),m=r(8677),g=r(127),b=(r(5595),r(9849),r(4899),r(3977),r(9435),r(9902),r(9792)),y=r(1206),f=r(268),v=r(8733);const x="descope",C=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),w=(...e)=>C(e.filter(e=>!!e).join("-")),I=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),M=e=>"function"==typeof e,S=(e,t,{excludeAttrs:r=[],includeAttrs:o=[]})=>{const i=Array.from(e.attributes).filter(e=>!r.includes(e.name)&&(!o.length||o.includes(e.name))).map(e=>e.name);t(i),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||r.includes(e.attributeName)||o.length&&!o.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},A=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},E=(e,t,r={})=>o=>{o.forEach(o=>{const i=r[o]||o,n=e.getAttribute(o);null!==n?t.getAttribute(i)!==n&&t.setAttribute(i,n):t.removeAttribute(i)})},T=(e,t,r)=>{S(e,E(e,t),r),S(t,E(t,e),r)},k=e=>w(x,e),z=(...e)=>`--${w(...e)}`,L=(e,t,r={})=>{S(e,E(e,t,r.mapAttrs),r)},N=(e,t,{prepend:r=!1}={})=>{let o;try{o=new CSSStyleSheet}catch(o){return V(e,t,{prepend:r})}const i=t?.shadowRoot||t;if(e&&o.replaceSync(e),i){const e=[...i.adoptedStyleSheets||[]];e[r?"unshift":"push"](o),i.adoptedStyleSheets=e}return e&&!o.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${e}"`),o};class D{constructor(e,t,{prepend:r=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=e,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=t?.shadowRoot||t,this.ref&&(r?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(e){this.styleEle.textContent=e}get cssRules(){return this.styleEle.sheet?.cssRules}}const V=(e,t,{prepend:r=!1}={})=>new D(e,t,{prepend:r}),P=(e,t=2)=>e.trim().split(" ").splice(0,t).map(e=>e[0]?.toUpperCase()).join(""),B=new class{static mountOnPropName="DescopeThemeManager";#e={};#t="light";#r=new Set;#o(){this.#r.forEach(e=>e?.())}get currentThemeName(){return this.#t}set currentThemeName(e){this.#t=e,this.#o()}get currentTheme(){return this.#e[this.currentThemeName]}onCurrentThemeChange(e){return this.#r.add(e),()=>{this.#r.delete(e)}}set themes(e){this.#e=e,this.#o()}get hasThemes(){return!!Object.keys(this.#e).length}},R=.25,O=.1,j=(e,t)=>e.darken(t).hex(),F=e=>{const t=e.isDark();return e.mix(d()(t?"white":"black"),1).saturate(1).hex()},W=(e,t)=>e.lightness()<.5?e.lightness(100*t).hex():e.lighten(t).hex(),_=e=>e.luminosity()>.99,$=(e,t)=>(e=>e.luminosity()<.01)(e)?W(e,R):j(e,.4),H=(e,t)=>_(e)?j(e,R):W(e,.4),q=(e,t)=>_(e)?j(e,O):W(e,.8),Y=(e,t)=>{const r=new(d())(e.main||e);return{main:r.hex(),dark:e.dark||$(r),light:e.light||H(r),highlight:e.highlight||q(r),contrast:e.contrast||F(r)}},U=e=>z(x,...e),G=(e,t,r)=>{const o=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return o.reduce((e,t,i)=>(void 0===e[t]&&(e[t]={}),i===o.length-1&&(e[t]=r),e[t]),e),e},Z=(e,t,r)=>Object.entries(e).reduce((e,[o,i])=>i?.constructor!==Object?s()(e,r(t.concat(o),i)):s()(e,Z(i,[...t,o],r)),{}),Q=(e,t)=>Z(e,[],e=>G({},e,`var(${U(e)})`)),J=(...e)=>e.reduceRight((e,t)=>t.startsWith("--")?`var(${t}${e?`, ${e}`:e})`:`${t}${e?`, ${e}`:e}`,""),K=(e,t)=>{const r=Z(e,[],(e,r)=>{const o=[...e],i=o.splice(-1),n=z(t,i),a={[i]:n},s={[i]:J(n)};return{theme:G({},[...o,n],r),useVars:s,vars:a}});return[r.theme,r.useVars,r.vars]},X=e=>`${e}__override`,ee=(e,t,r=!1)=>{const o=`var(${e}${t?`, ${t}`:""})`;return r?`var(${X(e)}, ${o})`:o};let te=class{constructor(){this.styleMap=new Map}add(e,t,r){this.styleMap.has(e)||this.styleMap.set(e,[]),this.styleMap.set(e,[...this.styleMap.get(e),{property:t,value:r}])}toString(){return Array.from(this.styleMap.entries()).reduce((e,[t,r])=>{const o=r.map(({property:e,value:t})=>`${e}: ${t}`).join(";\n");return`${e}${t} { \n${o} \n}\n\n`},"")}};const re=(e,t="fallback")=>w(e,t),oe=(e,t,{fallback:r})=>{if(!r)return{};const o=re(t,r.suffix),i=((...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(r=e).charAt(0).toUpperCase()+r.slice(1);var r}).join(""))(e,r.suffix||"fallback");return{[i]:o,...oe(i,o,r)}},ie=(e,t)=>Object.keys(t).reduce((r,o)=>{const i=z(e,o);return Object.assign(r,{[o]:i},{[o+"Override"]:X(i)},oe(o,i,t[o]))},{}),ne=({mappings:e={},componentNameOverride:t=""})=>r=>{const o=t||r.componentName;return class t extends r{static get cssVarList(){return{...r.cssVarList,...ie(o,{...e})}}#i;#n;#a;#s;#l;#d;#c;#p;#u;constructor({getRootElement:e,componentNameSuffix:r="",themeSection:o="host",baseSelector:i}={}){super(),this.#s=r,this.#l=o,this.#c=i??this.baseSelector,this.#u=e,this.#p=Object.keys(t.cssVarList).map(e=>w("st",r,e))}get#h(){return B.currentTheme?.[o]||""}#m(){this.#n.replaceSync(this.#h[this.#l]),this.currentThemeName=B.currentThemeName,this.onThemeChange?.(B.currentThemeName)}#g(){this.#n=N("",this.#d,{prepend:!0}),this.#a=B.onCurrentThemeChange(this.#m.bind(this)),this.#m()}#b(){if(this.#p.length){let e=`.${o}`.repeat(5);const t=this.getAttribute("id");t&&(e+=`#${CSS.escape(t)}`),this.#i=N(`:host(${e}) {}`,this.#d)}}#y(e,t){const r=this.#i.cssRules[0].style;if(!r)return;const i=z(o,e.replace(new RegExp("^st-"),""));t?r?.setProperty(i,t):(r?.removeProperty(i),this.removeAttribute(e))}#f(e=[]){e.forEach(e=>{this.#p.includes(e)&&this.#y(e,this.getAttribute(e))})}#v(){if(Object.keys(e).length){const t=((e,t,r)=>{const o=new te,i=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;const r=re(t,e?.suffix);return ee(r,i(e.fallback,r))};return Object.keys(r).forEach(n=>{const a=((e,t)=>{const r={selector:"",property:C(e)};return t&&Object.keys(t).length?Array.isArray(t)?t.map(e=>({...r,...e})):[{...r,...t}]:[r]})(n,r[n]),s=z(e,n);a.forEach(({selector:e,property:r,important:n,fallback:a})=>{const l=i(a,s);o.add(((e="",t="")=>M(t)?t(e):`${e}${/^[A-Za-z]/.test(t)?` ${t}`:t}`)(t,e),M(r)?r():r,ee(s,l,!0)+(n?"!important":""))})}),o.toString()})(w(o,this.#s),this.#c,e);N(t,this.#d,{prepend:!0})}}#x(e){(this.#d.classList||this.#d.host.classList).add(e)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#d=await(this.#u?.(this))||this.shadowRoot,this.#x(o),this.#v(),this.#g(),this.#b(),S(this,this.#f.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#a?.()}}},ae=e=>class extends e{constructor(){super(),N(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",e=>{if(this.isDraggable){const t=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const r=()=>{t?this.baseElement.setAttribute("tabindex",t):this.baseElement.removeAttribute("tabindex"),e.target.removeEventListener("mouseup",r),e.target.removeEventListener("dragend",r)};e.target.addEventListener("mouseup",r,{once:!0}),e.target.addEventListener("dragend",r,{once:!0})}}),super.init?.()}},se=e=>class extends e{#C(){const t=this.localName;if(!e.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(t!==e.componentName)throw Error(`component name mismatch, expected "${e.componentName}", current "${t}"`)}init(){super.init?.(),this.#C()}},le=e=>class extends e{updateComponentsContext(e){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:e}))}},de=e=>class extends e{init(){super.init?.(),this.baseElement.addEventListener("mouseover",e=>{this.setAttribute("hover","true"),e.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},ce=["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","collapsed"],pe=e=>class extends e{init(){super.init?.(),S(this,e=>e.forEach(e=>{const t=this.getAttribute(e);(e=>ce.includes(e))(e)?""===t?this.setAttribute(e,"true"):"false"===t&&this.removeAttribute(e):t||console.debug(`attribute "${e}" has no value, should it be added to the boolean attributes list?`)}),{})}},ue=({componentName:e,baseSelector:t=""})=>{class r extends HTMLElement{static get componentName(){return e}#w;#I=!0;get baseSelector(){return t}get baseElement(){return this.#w??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#w||console.warn("missing base element for component",this.localName),this.#w}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#I&&(this.#I=!1,this.init?.())}}return I(se,de,pe,le)(r)};function he(e,t={}){const r=new Event(e,t);this[`on${e}`]?.(r),this.dispatchEvent(r)}const me=e=>class extends e{#M=he.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",e=>{e.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#M(),this.prevValue=this.value)})}},ge=e=>class extends e{init(){this.#S(),super.init?.()}#S(){["blur","focus","focusin","focusout"].forEach(e=>{this.addEventListener(e,e=>{e.isTrusted&&e.target===this&&e.stopImmediatePropagation()})})}handleFocusEventsDispatching(e){let t;e?.forEach(e=>{e?.addEventListener("focusout",e=>{e.stopImmediatePropagation(),t=setTimeout(()=>{t=null,he.call(this,"blur"),he.call(this,"focusout",{bubbles:!0})})});const r=e=>{e.stopImmediatePropagation(),clearTimeout(t),t||(he.call(this,"focus"),he.call(this,"focusin",{bubbles:!0}))};e?.addEventListener("focusin",r),e?.addEventListener("focus",r)})}handleInputEventDispatching(){let e=this.value;this.addEventListener("input",t=>{this!==t.target&&(t.stopImmediatePropagation(),e!==this.value&&(e=this.value,he.call(this,"input",{bubbles:!0,composed:!0})))})}},be=["required","pattern"],ye=Symbol("validationTarget"),fe=e=>class extends e{#A=ye;static get observedAttributes(){return[...e.observedAttributes||[],...be]}static get formAssociated(){return!0}#E;get internals(){return this.#E}set internals(e){this.#E=e}constructor(){super(),this.#E=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."}getCustomErrorMessage(e,t){return this.hasAttribute(e)?this.getAttribute(e)||" ":t}getErrorMessage(e){const{valueMissing:t,patternMismatch:r,typeMismatch:o,stepMismatch:i,tooShort:n,tooLong:a,rangeOverflow:s,rangeUnderflow:l,badInput:d,customError:c}=e;switch(!0){case t:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case r||i||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case n:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case a:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case s:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#T(){const e=this.isReadOnly?{}:this.getValidity();this.#E.setValidity(e,this.getErrorMessage(e),this.validationTarget)}get validationMessage(){return this.#E.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#E.validity.valid}reportValidity(){return this.#E.reportValidity()}get validity(){return this.#E.validity}get validationTarget(){return this.#A===ye?this.inputElement:this.#A}set validationTarget(e){this.#A=e}setCustomValidity(e){e?this.#E.setValidity({customError:!0},e,this.validationTarget):(this.#E.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.#E.form}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),be.includes(e)&&this.#T()}init(){super.init?.(),this.addEventListener("change",this.#T),this.addEventListener("invalid",e=>e.stopPropagation()),this.addEventListener("input",this.#T),setTimeout(()=>this.#T())}},ve=(...e)=>I(fe,me,pe,ge)(ue(...e)),xe="FETCH_RESULTS_ERROR",Ce=()=>class{constructor(e){this.getAttribute=e,this.isValid=this.#k()}checkConnectorValidity(){this.isValid=this.#k()}#k(){return!this.getRequiredParams().filter(e=>{const t=this.getAttribute(e);return!t||!this.validateParam(e,t)}).length}validateParam(e,t){return t.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(e){return this.isValid?this._fetchResults(e):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(e){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},we=({componentName:e,wrappedEleName:t,slots:r=[],style:o,excludeAttrsSync:i=[],includeAttrsSync:n=[],includeForwardProps:a=[],delegatesFocus:s=!0})=>{class l extends(ue({componentName:e,baseSelector:t})){#z=he.bind(this,"blur");#L=he.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:s}).innerHTML=`\n\t\t\t<${t}>\n\t\t\t${r.map(e=>`<slot ${e?`name="${e}" slot="${e}"`:""}></slot>`).join("")}\n\t\t\t</${t}>\n\t\t`,N((M(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",e=>{this.#z()}),this.baseElement.addEventListener("focus",e=>{this.#L()}),((e,t,r=[])=>{if(!r.length)return;const o=r.reduce((t,r)=>Object.assign(t,{[r]:{get:()=>e[r],set(t){e[r]=t}}}),{});Object.defineProperties(t,o)})(this.baseElement,this,a),T(this.baseElement,this,{excludeAttrs:i,includeAttrs:n})}}return l},Ie=["invalid","required"],Me=e=>{if(!e)return;let t=e;for(let e=0;e<10;e++)if([t]=t.assignedElements(),"slot"!==t?.localName)return t},Se=({proxyProps:e=[],useProxyTargets:t=!1,inputEvent:r="input",triggerValidationEvents:o=[],proxyParentValidation:i=!1})=>n=>class extends(fe(n)){static get observedAttributes(){return[...n.observedAttributes||[],...Ie]}#N;#M=he.bind(this,"change");constructor(){super(),this.#N=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#N&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#N)return this.#N;this.warnIfInputElementIsMissing();const e=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),t=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#N=Me(e)||Me(t),this.#N}set inputElement(e){this.#N=e}getValidity(){return this.inputElement?.validity||{}}#D(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#D(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(e){!e&&this._shouldSetInvalid(e)&&(this.invalid=e)},this.baseElement.addEventListener("input",e=>{e.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(r)?r:[r]).forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#D()})}),this.baseElement.addEventListener("change",()=>{this.#M()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#D()}),e.forEach(e=>{const r=this.querySelector('input[slot="external-input"]')||null,o=t?[this.baseElement,r].filter(Boolean):[];((e,t,r)=>{const o=Array.isArray(t)?t:[t];Object.defineProperty(e,r,{set(e){o.forEach(t=>{t[r]=e})},get:()=>t[0][r],configurable:!0})})(this,[this.inputElement,...o],e)}),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),L(this,this.inputElement,{includeAttrs:["inputmode"]})}),i){const e=this.inputElement.internals,t=this;this.inputElement.internals=new Proxy(e,{get:(e,r)=>"function"==typeof e[r]&&"setValidity"===r?(...o)=>{if(3===o.length){const e=o.slice(0,o.length-1);e.push(t.inputElement),t.internals[r](...e)}else t.internals[r](...o);return e[r](...o)}:"function"==typeof e[r]?(...o)=>(t.internals[r](...o),e[r](...o)):e[r]})}}},Ae=e=>I(Se(e),ne({componentNameOverride:k("input-wrapper")})),Ee=()=>!0,Te=e=>`<pre>${JSON.stringify(e,null,4)}</pre>`,ke=({itemRenderer:e=Te,validateSchema:t=Ee,slotName:r,rerenderAttrsList:o=[],targetSelector:i,sortFn:n=e=>e})=>a=>class extends a{#V=[];#P;#B(e){if(!t)return!0;const r=t(e);return!0===r||(console.error("Data schema validation failed",r||""),!1)}#R(){const e=r?`*[slot="${r}"]`:":not([slot])";this.#P&&this.#P.querySelectorAll(e).forEach(e=>e.remove())}#O(){this.#R(),(n?this.data.sort(n):this.data).forEach((t,r)=>{const o="string"==typeof(i=e(t,r,this))?(e=>{const t=document.createElement("template");return t.innerHTML=e,t})(i).content:i instanceof HTMLTemplateElement?i.content:(console.error("Invalid template",i),null);var i;this.#P&&this.#P.appendChild(o?.cloneNode(!0))})}set data(e){this.#B(e)&&(this.#V=e,this.#O())}get data(){return this.#V}init(){super.init?.(),this.#P=i?this.shadowRoot.querySelector(i):this.baseElement,S(this,e=>{e.includes("data")?this.#j():this.#O()},{includeAttrs:[...o,"data"]})}#j(){const e=this.getAttribute("data");if(e)try{this.data=JSON.parse(e)}catch(t){console.warn("Invalid JSON data",e)}}},ze=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Le=k("enriched-text");class Ne extends(ue({componentName:Le,baseSelector:":host > div"})){#F;#W;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',N("\n :host {\n line-height: 1em;\n word-break: break-word;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n *, *:last-child {\n margin: 0;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin-bottom: 1em;\n }\n a {\n cursor: pointer;\n }\n blockquote {\n padding: 0 2em;\n }\n u {\n text-decoration: underline\n }\n s {\n color: currentColor;\n }\n ",this),this.#_(),A(this,this.#$.bind(this))}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("readonly"===e&&this.onReadOnlyChange("true"===r),"link-target-blank"===e&&this.#_())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(e,t,r,o,i)=>("_"===e[t].markup&&(e[t].tag="u"),this.#W(e,t,r,o,i)),this.processor.renderer.rules.em_close=(e,t,r,o,i)=>("_"===e[t].markup&&(e[t].tag="u"),this.#W(e,t,r,o,i))}#H(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(e,t,r,o,i)=>(e[t].attrSet("target","_blank"),this.#F(e,t,r,o,i)):this.processor.renderer.rules.link_open=this.#F}#q(){this.processor&&this.processor.disable(ze)}#Y(){this.#q()}#U(){this.#F=this.processor.renderer.rules.link_open||((e,t,r,o,i)=>i.renderToken(e,t,r)),this.#W=this.processor.renderer.rules.em_open||((e,t,r,o,i)=>i.renderToken(e,t,r))}#_(){this.processor=new o.A("commonmark",{html:!0}),this.#U(),this.#Y(),this.#H(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#$(){if(!this.processor)return;let e=(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(this.innerHTML);!e?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const t=this.processor.parse(e,{references:void 0});e=this.processor.renderer.render(t,{html:!0,breaks:!0})}catch(e){console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=e,this.contentNode.firstChild?.setAttribute("part","content")}onReadOnlyChange(e){e?this.contentNode.setAttribute("inert",e):this.contentNode.removeAttribute("inert")}}const De=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDisplay:{selector:()=>":host",property:"display",fallback:"inline-block"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},fontWeightBold:[{selector:()=>":host strong",property:"font-weight"},{selector:()=>":host b",property:"font-weight"}],textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"},linkTextDecoration:{selector:"a",property:"text-decoration"},linkHoverTextDecoration:{selector:"a:hover",property:"text-decoration"},minHeight:{},minWidth:{}}}),ne({componentNameOverride:k("link")}),ne({componentNameOverride:k("text")}),ae,se)(Ne),Ve=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),Pe=(...e)=>Ve(e.filter(e=>!!e).join("-")),Be=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),Re=e=>"function"==typeof e,Oe="descope",je="host",Fe=(e,t,{excludeAttrs:r=[],includeAttrs:o=[]})=>{const i=Array.from(e.attributes).filter(e=>!r.includes(e.name)&&(!o.length||o.includes(e.name))).map(e=>e.name);t(i),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||r.includes(e.attributeName)||o.length&&!o.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},We=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},_e=(e,t,r={})=>o=>{o.forEach(o=>{const i=r[o]||o,n=e.getAttribute(o);null!==n?t.getAttribute(i)!==n&&t.setAttribute(i,n):t.removeAttribute(i)})},$e=(e,t,r)=>{Fe(e,_e(e,t),r),Fe(t,_e(t,e),r)},He=e=>Pe(Oe,e),qe=(...e)=>`--${Pe(...e)}`,Ye=(e,t,r={})=>{Fe(e,_e(e,t,r.mapAttrs),r)},Ue=(e,t,r=[])=>{if(!r.length)return;const o=r.reduce((t,r)=>Object.assign(t,{[r]:{get:()=>e[r],set(t){e[r]=t}}}),{});Object.defineProperties(t,o)},Ge=.4,Ze=.25,Qe=.1,Je=(e,t)=>e.darken(t).hex(),Ke=e=>{const t=e.isDark();return e.mix(d()(t?"white":"black"),1).saturate(1).hex()},Xe=(e,t)=>e.lightness()<.5?e.lightness(100*t).hex():e.lighten(t).hex(),et=e=>e.luminosity()<.01,tt=e=>e.luminosity()>.99,rt=(e,t)=>"dark"===t?tt(e)?Je(e,Ze):Xe(e,Ge):et(e)?Xe(e,Ze):Je(e,Ge),ot=(e,t)=>"dark"===t?et(e)?Xe(e,Ze):Je(e,Ge):tt(e)?Je(e,Ze):Xe(e,Ge),it=(e,t)=>"dark"===t?et(e)?Xe(e,Qe):Je(e,.8):tt(e)?Je(e,Qe):Xe(e,.8),nt=(e,t)=>{const r=new(d())(e.main||e);return{main:r.hex(),dark:e.dark||rt(r,t),light:e.light||ot(r,t),highlight:e.highlight||it(r,t),contrast:e.contrast||Ke(r)}},at=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,st=e=>`\n ${e} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,lt=e=>`\n ${e}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,dt=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,ct=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,pt=e=>`\n ${e}::part(input-field)::after {\n background: none;\n }\n`,ut=(e,t)=>`\n ${st(e)}\n ${dt(e)}\n ${ct(e)}\n ${lt(e)}\n ${((e,t)=>`\n ${e} input:-webkit-autofill,\n ${e} input:-webkit-autofill::first-line,\n ${e} input:-webkit-autofill:hover,\n ${e} input:-webkit-autofill:active,\n ${e} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${t.inputValueTextColor});\n box-shadow: 0 0 0 var(${t.inputHeight}) var(${t.inputBackgroundColor}) inset;\n }\n`)(e,t)}\n ${pt(e)}\n ${(e=>`\n ${e}::before {\n\t\theight: unset;\n\t}\n`)(e)}\n ${(e=>`\n ${e} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(e)}\n ${(e=>`\n ${e}::part(input-field)::after {\n border: none;\n }\n`)(e)}\n`,ht=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,mt=e=>qe(Oe,...e),gt=(e,t,r)=>{const o=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return o.reduce((e,t,i)=>(void 0===e[t]&&(e[t]={}),i===o.length-1&&(e[t]=r),e[t]),e),e},bt=(e,t,r)=>Object.entries(e).reduce((e,[o,i])=>i?.constructor!==Object?s()(e,r(t.concat(o),i)):s()(e,bt(i,[...t,o],r)),{}),yt=e=>{switch(!0){case Array.isArray(e):return e.map(e=>e.includes(" ")?`"${e}"`:e).join(", ");case(e=>{try{return new URL(e),!0}catch(e){return!1}})(e):return`url(${e})`;default:return e}},ft=(e,t)=>bt(e,[],e=>gt({},e,`var(${mt(e)})`)),vt=(e,t="")=>{const r=Object.entries((e=>bt(e,[],(e,t)=>({[mt(e)]:yt(t)})))(e)).reduce((e,t)=>`${e}${t.join(":")};\n`,"");return t?`*[data-theme="${t}"] {${r}}`:r},xt=e=>Object.entries(e).reduce((e,[t,r])=>`${e}${t} { \n${Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(";\n")} \n}\n\n`,""),Ct=e=>{const t=(e=>bt(e,[],(e,t)=>{const[r,...o]=e,i=o.pop(),n=He(r);"undefined"===i&&console.warn(n,`theme value: "${t}" is mapped to an invalid property`);let a=je;o[0]&&o[0].startsWith("@")&&(a=o.shift());const s=o.reduce((e,t,r)=>{const[i,n]=function(e){const t=e.match(/^(&+)?(.*)$/);return[t[1]||"",t[2]||""]}(t),a=Math.min(i.length+1,3);if(n.startsWith("_"))return e+`[${Ve(n.replace(/^_/,""))}="true"]`.repeat(a);const s=o[r+1];return"string"!=typeof s||s.startsWith("_")||s.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${t}" is followed by "${s}" which is not allowed`),e):e+`[${Ve(n)}="${o.splice(r+1,1).join("")}"]`.repeat(a)},""),l=":host"+(s?`(${s})`:"");return{[n]:{[a]:{[l]:{[i]:yt(t)}}}}}))(e);return Object.keys(t).reduce((e,r)=>{const o=t[r];return Object.assign(e,{[r]:Object.keys(o).reduce((e,t)=>Object.assign(e,{[t]:xt(o[t])}),{})})},{})},wt=({globals:e,components:t},r)=>({globals:vt(e,r),components:Ct(t)}),It=(...e)=>e.reduceRight((e,t)=>t.startsWith("--")?`var(${t}${e?`, ${e}`:e})`:`${t}${e?`, ${e}`:e}`,""),Mt=(e,t)=>{const r=bt(e,[],(e,r)=>{const o=[...e],i=o.splice(-1),n=qe(t,i),a={[i]:n},s={[i]:It(n)};return{theme:gt({},[...o,n],r),useVars:s,vars:a}});return[r.theme,r.useVars,r.vars]},St=e=>`${e}__override`,At=(e,t,r=!1)=>{const o=`var(${e}${t?`, ${t}`:""})`;return r?`var(${St(e)}, ${o})`:o};class Et{constructor(){this.styleMap=new Map}add(e,t,r){this.styleMap.has(e)||this.styleMap.set(e,[]),this.styleMap.set(e,[...this.styleMap.get(e),{property:t,value:r}])}toString(){return Array.from(this.styleMap.entries()).reduce((e,[t,r])=>{const o=r.map(({property:e,value:t})=>`${e}: ${t}`).join(";\n");return`${e}${t} { \n${o} \n}\n\n`},"")}}const Tt=(e,t="fallback")=>Pe(e,t),kt=(e,t,{fallback:r})=>{if(!r)return{};const o=Tt(t,r.suffix),i=((...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(r=e).charAt(0).toUpperCase()+r.slice(1);var r}).join(""))(e,r.suffix||"fallback");return{[i]:o,...kt(i,o,r)}},zt=(e,t)=>Object.keys(t).reduce((r,o)=>{const i=qe(e,o);return Object.assign(r,{[o]:i},{[o+"Override"]:St(i)},kt(o,i,t[o]))},{}),Lt=({mappings:e={},componentNameOverride:t=""})=>r=>{const o=t||r.componentName;return class t extends r{static get cssVarList(){return{...r.cssVarList,...zt(o,{...e})}}#i;#n;#a;#s;#l;#d;#c;#p;#u;constructor({getRootElement:e,componentNameSuffix:r="",themeSection:o=je,baseSelector:i}={}){super(),this.#s=r,this.#l=o,this.#c=i??this.baseSelector,this.#u=e,this.#p=Object.keys(t.cssVarList).map(e=>Pe("st",r,e))}get#h(){return B.currentTheme?.[o]||""}#m(){this.#n.replaceSync(this.#h[this.#l])}#g(){this.#n=N("",this.#d,{prepend:!0}),this.#a=B.onCurrentThemeChange(this.#m.bind(this)),this.#m()}#b(){if(this.#p.length){let e=`.${o}`.repeat(5);const t=this.getAttribute("id");t&&(e+=`#${CSS.escape(t)}`),this.#i=N(`:host(${e}) {}`,this.#d)}}#y(e,t){const r=this.#i.cssRules[0].style;if(!r)return;const i=qe(o,e.replace(new RegExp("^st-"),""));t?r?.setProperty(i,t):(r?.removeProperty(i),this.removeAttribute(e))}#f(e=[]){e.forEach(e=>{this.#p.includes(e)&&this.#y(e,this.getAttribute(e))})}#v(){if(Object.keys(e).length){const t=((e,t,r)=>{const o=new Et,i=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;const r=Tt(t,e?.suffix);return At(r,i(e.fallback,r))};return Object.keys(r).forEach(n=>{const a=((e,t)=>{const r={selector:"",property:Ve(e)};return t&&Object.keys(t).length?Array.isArray(t)?t.map(e=>({...r,...e})):[{...r,...t}]:[r]})(n,r[n]),s=qe(e,n);a.forEach(({selector:e,property:r,important:n,fallback:a})=>{const l=i(a,s);o.add(((e="",t="")=>Re(t)?t(e):`${e}${/^[A-Za-z]/.test(t)?` ${t}`:t}`)(t,e),Re(r)?r():r,At(s,l,!0)+(n?"!important":""))})}),o.toString()})(Pe(o,this.#s),this.#c,e);N(t,this.#d,{prepend:!0})}}#x(e){(this.#d.classList||this.#d.host.classList).add(e)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#d=await(this.#u?.(this))||this.shadowRoot,this.#x(o),this.#v(),this.#g(),this.#b(),Fe(this,this.#f.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#a?.()}}},Nt=e=>class extends e{constructor(){super(),N(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",e=>{if(this.isDraggable){const t=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const r=()=>{t?this.baseElement.setAttribute("tabindex",t):this.baseElement.removeAttribute("tabindex"),e.target.removeEventListener("mouseup",r),e.target.removeEventListener("dragend",r)};e.target.addEventListener("mouseup",r,{once:!0}),e.target.addEventListener("dragend",r,{once:!0})}}),super.init?.()}},Dt=e=>class extends e{#C(){const t=this.localName;if(!e.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(t!==e.componentName)throw Error(`component name mismatch, expected "${e.componentName}", current "${t}"`)}init(){super.init?.(),this.#C()}},Vt=e=>class extends e{updateComponentsContext(e){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:e}))}},Pt=e=>class extends e{init(){super.init?.(),this.baseElement.addEventListener("mouseover",e=>{this.setAttribute("hover","true"),e.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},Bt=["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","loading"],Rt=e=>class extends e{init(){super.init?.(),Fe(this,e=>e.forEach(e=>{const t=this.getAttribute(e);(e=>Bt.includes(e))(e)?""===t?this.setAttribute(e,"true"):"false"===t&&this.removeAttribute(e):t||console.debug(`attribute "${e}" has no value, should it be added to the boolean attributes list?`)}),{})}},Ot=({componentName:e,baseSelector:t=""})=>{class r extends HTMLElement{static get componentName(){return e}#w;#I=!0;get baseSelector(){return t}get baseElement(){return this.#w??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#w||console.warn("missing base element for component",this.localName),this.#w}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#I&&(this.#I=!1,this.init?.())}}return Be(Dt,Pt,Rt,Vt)(r)};function jt(e,t={}){const r=new Event(e,t);this[`on${e}`]?.(r),this.dispatchEvent(r)}const Ft=({componentName:e,wrappedEleName:t,slots:r=[],style:o,excludeAttrsSync:i=[],includeAttrsSync:n=[],includeForwardProps:a=[],delegatesFocus:s=!0})=>{class l extends(Ot({componentName:e,baseSelector:t})){#z=jt.bind(this,"blur");#L=jt.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:s}).innerHTML=`\n\t\t\t<${t}>\n\t\t\t${r.map(e=>`<slot ${e?`name="${e}" slot="${e}"`:""}></slot>`).join("")}\n\t\t\t</${t}>\n\t\t`,N((Re(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",e=>{this.#z()}),this.baseElement.addEventListener("focus",e=>{this.#L()}),Ue(this.baseElement,this,a),$e(this.baseElement,this,{excludeAttrs:i,includeAttrs:n})}}return l},Wt=["required","pattern"],_t=Symbol("validationTarget"),$t=e=>class extends e{#A=_t;static get observedAttributes(){return[...e.observedAttributes||[],...Wt]}static get formAssociated(){return!0}#E;get internals(){return this.#E}set internals(e){this.#E=e}constructor(){super(),this.#E=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."}getCustomErrorMessage(e,t){return this.hasAttribute(e)?this.getAttribute(e)||" ":t}getErrorMessage(e){const{valueMissing:t,patternMismatch:r,typeMismatch:o,stepMismatch:i,tooShort:n,tooLong:a,rangeOverflow:s,rangeUnderflow:l,badInput:d,customError:c}=e;switch(!0){case t:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case r||i||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case n:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case a:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case s:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#T(){const e=this.isReadOnly?{}:this.getValidity();this.#E.setValidity(e,this.getErrorMessage(e),this.validationTarget)}get validationMessage(){return this.#E.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#E.validity.valid}reportValidity(){return this.#E.reportValidity()}get validity(){return this.#E.validity}get validationTarget(){return this.#A===_t?this.inputElement:this.#A}set validationTarget(e){this.#A=e}setCustomValidity(e){e?this.#E.setValidity({customError:!0},e,this.validationTarget):(this.#E.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.#E.form}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),Wt.includes(e)&&this.#T()}init(){super.init?.(),this.addEventListener("change",this.#T),this.addEventListener("invalid",e=>e.stopPropagation()),this.addEventListener("input",this.#T),setTimeout(()=>this.#T())}},Ht=["invalid","required"],qt=e=>{if(!e)return;let t=e;for(let e=0;e<10;e++)if([t]=t.assignedElements(),"slot"!==t?.localName)return t},Yt=({proxyProps:e=[],useProxyTargets:t=!1,inputEvent:r="input",triggerValidationEvents:o=[],proxyParentValidation:i=!1})=>n=>class extends($t(n)){static get observedAttributes(){return[...n.observedAttributes||[],...Ht]}#N;#M=jt.bind(this,"change");constructor(){super(),this.#N=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#N&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#N)return this.#N;this.warnIfInputElementIsMissing();const e=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),t=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#N=qt(e)||qt(t),this.#N}set inputElement(e){this.#N=e}getValidity(){return this.inputElement?.validity||{}}#D(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#D(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(e){!e&&this._shouldSetInvalid(e)&&(this.invalid=e)},this.baseElement.addEventListener("input",e=>{e.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(r)?r:[r]).forEach(e=>{this.baseElement?.addEventListener(e,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#D()})}),this.baseElement.addEventListener("change",()=>{this.#M()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#D()}),e.forEach(e=>{const r=this.querySelector('input[slot="external-input"]')||null,o=t?[this.baseElement,r].filter(Boolean):[];((e,t,r)=>{const o=Array.isArray(t)?t:[t];Object.defineProperty(e,r,{set(e){o.forEach(t=>{t[r]=e})},get:()=>t[0][r],configurable:!0})})(this,[this.inputElement,...o],e)}),this.setSelectionRange=this.inputElement?.setSelectionRange?.bind(this.inputElement),Ye(this,this.inputElement,{includeAttrs:["inputmode"]})}),i){const e=this.inputElement.internals,t=this;this.inputElement.internals=new Proxy(e,{get:(e,r)=>"function"==typeof e[r]&&"setValidity"===r?(...o)=>{if(3===o.length){const e=o.slice(0,o.length-1);e.push(t.inputElement),t.internals[r](...e)}else t.internals[r](...o);return e[r](...o)}:"function"==typeof e[r]?(...o)=>(t.internals[r](...o),e[r](...o)):e[r]})}}},Ut=e=>Be(Yt(e),Lt({componentNameOverride:He("input-wrapper")})),Gt=e=>async t=>{const r=await e(t);return new Promise(e=>{let t=0;const o=()=>{if(t>20)return console.error("could not get shadow root for element",r),void e(r);t++,r?.shadowRoot?e(r.shadowRoot):setTimeout(o)};o()})},Zt=({name:e,selector:t,mappings:r={},forward:{attributes:o=[],include:i=!0}={}})=>n=>{const a=e,s=Lt({mappings:r})(n);return class extends s{static get cssVarList(){return{...s.cssVarList,[a]:zt(Pe(n.componentName,"_"+a),r)}}#G;constructor(){const e=Gt(async e=>{const r=(e.shadowRoot||e).querySelector(e.baseSelector);return t?(await Gt(()=>r)(e)).querySelector(t):r});super({getRootElement:e,componentNameSuffix:"_"+a,themeSection:"@"+a,baseSelector:":host"}),this.#G=e(this).then(e=>e.host)}async#Z(){const e=await this.#G;e.onmouseenter=e=>{e.target.setAttribute("hover","true")},e.onmouseleave=e=>{e.target.removeAttribute("hover")}}async init(){super.init?.();const e=await this.#G;Ye(this,e,{[i?"includeAttrs":"excludeAttrs"]:o}),this.#Z()}}},Qt=e=>class extends e{#M=jt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",e=>{e.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#M(),this.prevValue=this.value)})}},Jt=e=>class extends e{init(){this.#S(),super.init?.()}#S(){["blur","focus","focusin","focusout"].forEach(e=>{this.addEventListener(e,e=>{e.isTrusted&&e.target===this&&e.stopImmediatePropagation()})})}handleFocusEventsDispatching(e){let t;e?.forEach(e=>{e?.addEventListener("focusout",e=>{e.stopImmediatePropagation(),t=setTimeout(()=>{t=null,jt.call(this,"blur"),jt.call(this,"focusout",{bubbles:!0})})});const r=e=>{e.stopImmediatePropagation(),clearTimeout(t),t||(jt.call(this,"focus"),jt.call(this,"focusin",{bubbles:!0}))};e?.addEventListener("focusin",r),e?.addEventListener("focus",r)})}handleInputEventDispatching(){let e=this.value;this.addEventListener("input",t=>{this!==t.target&&(t.stopImmediatePropagation(),e!==this.value&&(e=this.value,jt.call(this,"input",{bubbles:!0,composed:!0})))})}},Kt=({inputType:e,inputName:t,autocompleteType:r,includeAttrs:o=[],noBlurDispatch:i=!1})=>n=>class extends n{#Q=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const r=this.baseElement.querySelector("input");if(!r)return null;r.setAttribute("tabindex","-1");const i=(()=>{const e=document.createElement("slot");return e.setAttribute("name","external-input"),e.setAttribute("slot","suffix"),e})();return this.baseElement.appendChild(i),this.externalInput=((e,t,r,o)=>{const i=document.createElement("input");return i.setAttribute("slot","external-input"),i.setAttribute("type",t),i.setAttribute("name",o),i.setAttribute("data-hidden-input","true"),i.setAttribute("autocomplete",r),i})(0,e,this.getAutocompleteType(),t),setTimeout(()=>{var e,t,o;e=r,t=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const r=getComputedStyle(e),i=r.getPropertyValue("height"),n=r.getPropertyValue("padding-left"),a=r.getPropertyValue("padding-right"),s=r.getPropertyValue("font-size"),l=r.getPropertyValue("font-family"),d=r.getPropertyValue("letter-spacing"),c=r.getPropertyValue("caret-color"),p=((e,t)=>{const r=e.value;e.value="_";const o=t.getPropertyValue("color");return"_"===e.value&&(e.value=r),o})(e,r);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",i],["left",n],["right",a],["font-size",s],["font-family",l],["letter-spacing",d],["caret-color",c],["color",p]].forEach(([e,r])=>t.style.setProperty(e,r,"important")),"floating"===o){const e=r.getPropertyValue("margin-bottom");t.style.setProperty("margin-bottom",e,"important")}const u=r.getPropertyValue("width");t.style.setProperty("width",`calc(${u} - ${n} - ${a}`,"important")},0)}),this.forwardInputValue(r,this.externalInput),$e(r,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",e=>e.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#Q.forEach(e=>clearTimeout(e)),this.#Q.length=0}dispatchBlur(){return setTimeout(()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0})),this.removeAttribute("focused")})}handleFocusEvents(){this.baseElement.addEventListener("focus",()=>{this.externalInput.focus(),this.clearBlurTimers()}),this.externalInput.addEventListener("focus",()=>{this.clearBlurTimers(),setTimeout(()=>this.baseElement.setAttribute("focused","true"))})}handleBlurEvents(){this.baseElement.addEventListener("blur",e=>{e.stopImmediatePropagation(),i||this.#Q.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",e=>{e.stopImmediatePropagation(),this.#Q.push(this.dispatchBlur())},!0)}handlelInputEvents(e){e.addEventListener("input",e=>{this.value=e.target.value}),e.addEventListener("input",e=>{e.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||r}forwardInputValue(e,t){const r=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(e,"value",{...r,set(e){r.set.call(this,e),t.value=e},configurable:!0})}},Xt=e=>class extends e{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},er=(...e)=>Be($t,Qt,Rt,Jt)(Ot(...e)),tr=He("boolean-field-internal"),rr=["disabled","invalid","readonly"],or=er({componentName:tr,baseSelector:"div"}),ir=e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n\t\t\t\t<${tr}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${tr}>\n\t\t\t`,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(tr),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),Ye(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),Ue(this.inputElement,this,["checked"]),$e(this,this.inputElement,{includeAttrs:["checked"]})}};var nr=e=>`\n:host {\n\tdisplay: inline-flex;\n}\n\n\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n.wrapper {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n}\nvaadin-text-field {\n\tposition: relative;\n\tpadding: 0;\n\tdisplay: inline-flex;\n\talign-items: flex-start;\n}\nvaadin-text-field::before {\n content: unset;\n}\nvaadin-text-field::part(label) {\n position: absolute;\n top: 0;\n}\nvaadin-text-field::part(input-field) {\n\tpadding: 0;\n\tbackground: none;\n\tmin-height: 0;\n}\nvaadin-text-field::part(input-field)::after {\n background: none;\n}\nvaadin-text-field[focus-ring]::part(input-field) {\n\tbox-shadow: none;\n}\n\nvaadin-checkbox [slot="label"] {\n align-self: flex-start;\n padding: 0;\n}\n[required] vaadin-checkbox [slot="label"]:not(:empty) {\n\tpadding-inline-end: 1em;\n}\ndescope-boolean-field-internal {\n -webkit-mask-image: none;\n min-height: initial;\n}\n\ndescope-enriched-text[empty] {\n\t${De.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${De.cssVarList.hostDirection}: var(${e.hostDirection});\n}\n\n`;const ar=He("checkbox"),{host:sr,component:lr,checkboxElement:dr,checkboxSurface:cr,checkboxLabel:pr,requiredIndicator:ur,helperText:hr,errorMessage:mr}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::part(content)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},gr=Be(Lt({mappings:{hostWidth:{...sr,property:"width"},hostDirection:{...sr,property:"direction"},fontSize:[sr,dr,pr],fontFamily:[pr,hr,mr],labelTextColor:{...pr,property:"color"},labelSpacing:{...pr,property:"padding-inline-start"},labelLineHeight:{...pr,property:"line-height"},labelFontWeight:{...pr,property:"font-weight"},labelRequiredIndicator:{...ur,property:"content"},errorMessageTextColor:{...mr,property:"color"},errorMessageIcon:{...mr,property:"background-image"},errorMessageIconSize:{...mr,property:"background-size"},errorMessageIconPadding:{...mr,property:"padding-inline-start"},errorMessageIconRepeat:{...mr,property:"background-repeat"},errorMessageIconPosition:{...mr,property:"background-position"},errorMessageFontSize:{...mr,property:"font-size"},inputValueTextColor:{...cr,property:"color"},inputBackgroundColor:{...dr,property:"background-color"},inputBorderRadius:{...dr,property:"border-radius"},inputBorderWidth:{...dr,property:"border-width"},inputBorderOffset:{...dr,property:"border-offset"},inputBorderColor:{...dr,property:"border-color"},inputBorderStyle:{...dr,property:"border-style"},inputOutlineWidth:{...dr,property:"outline-width"},inputOutlineOffset:{...dr,property:"outline-offset"},inputOutlineColor:{...dr,property:"outline-color"},inputOutlineStyle:{...dr,property:"outline-style"},inputAlign:{...dr,property:"align-self"},inputContainerPadding:{...lr,property:"padding"},inputContainerBackgroundColor:{...lr,property:"background-color"},inputContainerBorderRadius:{...lr,property:"border-radius"},inputContainerBorderWidth:{...lr,property:"border-width"},inputContainerBorderColor:{...lr,property:"border-color"},inputContainerBorderStyle:{...lr,property:"border-style"},inputContainerOutlineWidth:{...lr,property:"outline-width"},inputContainerOutlineOffset:{...lr,property:"outline-offset"},inputContainerOutlineColor:{...lr,property:"outline-color"},inputContainerOutlineStyle:{...lr,property:"outline-style"},inputSize:[{...dr,property:"width"},{...dr,property:"height"},{...cr,property:"font-size"},{...lr,property:"font-size"}]}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,ir)(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${nr(gr.cssVarList)}\n ${at(gr.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n margin: 1px;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n height: 100%;\n }\n\n :host([full-width]) vaadin-checkbox {\n flex-grow: 1;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox)::after {\n top: 0;\n left: 0;\n -webkit-text-fill-color: initial;\n }\n\n vaadin-checkbox label {\n -webkit-text-fill-color: initial;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n `,excludeAttrsSync:["label","tabindex","style"],componentName:ar})),br=k("text");class yr extends(ue({componentName:br,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',N("\n :host {\n display: inline-block;\n line-height: 1em;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n ",this)}get hideWhenEmpty(){return"true"===this.getAttribute("hide-when-empty")}init(){super.init(),A(this,()=>{const e=!!this.childNodes.length;this.style.display=!e&&this.hideWhenEmpty?"none":""})}}const{host:fr}={host:{selector:()=>":host"}},vr=I(ne({mappings:{hostWidth:{...fr,property:"width"},hostDirection:{...fr,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),ae,se)(yr),xr=k("link");class Cr extends(ue({componentName:xr,baseSelector:":host a"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t<div>\n\t\t\t<descope-text part="wrapper">\n\t\t\t\t<a>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</a>\n\t\t\t</descope-text>\n\t\t</div>\n\t\t',N('\n :host {\n\t\t\tdisplay: inline-block;\n line-height: 1em;\n\t\t}\n\t\t:host a {\n\t\t\tdisplay: inline;\n\t\t}\n\n :host([ellipsis="true"]) descope-text {\n display: inline-flex;\n }\n :host([ellipsis="true"]) descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ',this),L(this,this.shadowRoot.querySelector("a"),{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),L(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]})}}const wr={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>vr.componentName}},{anchor:Ir,text:Mr,host:Sr,wrapper:Ar,link:Er}=wr,Tr=I(ne({mappings:{hostWidth:{...Sr,property:"width"},hostDirection:{...Mr,property:"direction"},textAlign:Ar,textDecoration:{...Er,property:"text-decoration",fallback:"none"},textColor:[{...Ir,property:"color"},{...Mr,property:vr.cssVarList.textColor}],cursor:Ir}}),ae,se)(Cr);customElements.define(br,vr),customElements.define(xr,Tr),customElements.define(Le,De),customElements.define(tr,class extends or{static get observedAttributes(){return["readonly","label"]}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper">\n\t\t\t\t<vaadin-checkbox>\n\t\t\t\t\t<descope-enriched-text class="label-content" slot="label"></descope-enriched-text>\n\t\t\t\t</vaadin-checkbox>\n\t\t\t</div>\n\t\t',this.wrapperEle=this.querySelector("div"),this.checkbox=this.querySelector("vaadin-checkbox"),this.labelContent=this.querySelector(".label-content")}get value(){return this.checkbox?.checked}set value(e){this.checkbox.checked=e}get checked(){return this.value}set checked(e){this.value=e}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.checkbox.focus()}),super.init?.(),Ye(this,this.checkbox,{includeAttrs:rr}),$e(this,this.checkbox,{includeAttrs:["checked"]}),this.labelContent.addEventListener("click",e=>{this.hasAttribute("disabled")||this.hasAttribute("readonly")||this.checkbox.click()}),this.handleFocusEventsDispatching([this.checkbox])}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"readonly"===e&&this.onReadOnlyChange(null!==r),"label"===e&&this.onLabelChange()}onLabelChange(){const e=this.getAttribute("label");this.labelContent.textContent=e||""}onReadOnlyChange(e){this.baseElement.setAttribute("inert",e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}}),customElements.define(ar,gr);const kr=He("switch-toggle"),{host:zr,component:Lr,checkboxElement:Nr,checkboxSurface:Dr,checkboxLabel:Vr,requiredIndicator:Pr,helperText:Br,errorMessage:Rr}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::part(content)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Or=Be(Lt({mappings:{hostWidth:{...zr,property:"width"},hostDirection:{...zr,property:"direction"},fontSize:[Lr,Vr,Vr],fontFamily:[Vr,Br,Rr],labelTextColor:[{...Vr,property:"color"},{...Vr,property:"-webkit-text-fill-color"}],labelSpacing:{...Vr,property:"padding-inline-start"},labelLineHeight:{...Vr,property:"line-height"},labelFontWeight:{...Vr,property:"font-weight"},labelRequiredIndicator:{...Pr,property:"content"},errorMessageTextColor:{...Rr,property:"color"},errorMessageIcon:{...Rr,property:"background-image"},errorMessageIconSize:{...Rr,property:"background-size"},errorMessageIconPadding:{...Rr,property:"padding-inline-start"},errorMessageIconRepeat:{...Rr,property:"background-repeat"},errorMessageIconPosition:{...Rr,property:"background-position"},errorMessageFontSize:{...Rr,property:"font-size"},trackBorderWidth:{...Nr,property:"border-width"},trackBorderStyle:{...Nr,property:"border-style"},trackBorderColor:{...Nr,property:"border-color"},trackBackgroundColor:{...Nr,property:"background-color"},trackBorderRadius:{...Nr,property:"border-radius"},trackWidth:[{...Nr,property:"width"}],trackHeight:[{...Dr,property:"font-size"},{...Nr,property:"height"}],knobSize:[{...Dr,property:"width"},{...Dr,property:"height"}],knobTextColor:{...Dr,property:"color"},knobRadius:{...Dr,property:"border-radius"},knobTransitionDuration:{...Dr,property:"transition"},knobColor:{...Dr,property:"background-color"},knobTopOffset:{...Dr,property:"top"},knobLeftOffset:{...Dr,property:"left"},inputOutlineWidth:{...Nr,property:"outline-width"},inputOutlineOffset:{...Nr,property:"outline-offset"},inputOutlineColor:{...Nr,property:"outline-color"},inputOutlineStyle:{...Nr,property:"outline-style"}}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,ir)(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${nr(Or.cssVarList)}\n\t\t\t${at(Or.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n width: 100%;\n }\n\n vaadin-text-field::part(input-field) {\n cursor: pointer;\n }\n\n vaadin-checkbox {\n cursor: pointer;\n }\n\n vaadin-checkbox [slot="label"]:not(:empty) {\n cursor: pointer;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::before {\n content: '';\n\t\t\t}\n\n vaadin-checkbox[active]::part(checkbox) {\n\t\t\t\ttransform: none;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::after {\n\t\t\t\tposition: absolute;\n\t\t\t\topacity: 1;\n\t\t\t\tcontent: '';\n\t\t\t}\n\t\t`,excludeAttrsSync:["label","tabindex","style"],componentName:kr}));customElements.define(kr,Or);const jr=He("loader-linear");class Fr extends(Ot({componentName:jr,baseSelector:":host > div"})){static get componentName(){return jr}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",N("\n @keyframes tilt {\n\t\t\t\t0% { transform: translateX(0); }\n\t\t\t\t50% { transform: translateX(400%); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\tdiv::after {\n\t\t\t\tcontent: '';\n\t\t\t\tanimation-name: tilt;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\twidth: 100%;\n\t\t\t}\n ",this)}}const{after:Wr,host:_r}={after:{selector:"::after"},host:{selector:()=>":host"}},$r=Be(Lt({mappings:{hostDisplay:{},hostWidth:{..._r,property:"width"},barHeight:[{property:"height"},{...Wr,property:"height"}],barBorderRadius:[{property:"border-radius"},{...Wr,property:"border-radius"}],verticalPadding:[{..._r,property:"padding-top"},{..._r,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...Wr,property:"background-color"},barWidth:{...Wr,property:"width"},animationDuration:[{},Wr],animationTimingFunction:[{},Wr],animationIterationCount:[{},Wr]}}),Nt,Dt)(Fr);customElements.define(jr,$r);const Hr=He("loader-radial");class qr extends(Ot({componentName:Hr,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",N("\n @keyframes spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tanimation-name: spin;\n\t\t\t}\n ",this)}}const Yr=Be(Lt({mappings:{hostDisplay:{property:"display"},spinnerSize:[{property:"width"},{property:"height"}],spinnerBorderWidth:{property:"border-width"},spinnerBorderStyle:{property:"border-style"},spinnerBorderRadius:{property:"border-radius"},spinnerQuadrant1Color:{property:"border-top-color"},spinnerQuadrant2Color:{property:"border-bottom-color"},spinnerQuadrant3Color:{property:"border-right-color"},spinnerQuadrant4Color:{property:"border-left-color"},animationDuration:{},animationTimingFunction:{},animationIterationCount:{}}}),Nt,Dt)(qr);customElements.define(Hr,Yr);const Ur=He("container");class Gr extends(Ot({componentName:Ur,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",N("\n\t\t\t:host > slot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n ",this)}}const Zr=Be(Lt({mappings:{hostHeight:{selector:()=>":host",property:"height"},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},itemsGrow:{selector:()=>"::slotted(*)",property:"flex-grow",fallback:"0"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:{},flexWrap:{},backgroundColor:{},backgroundImage:{},backgroundPositionX:{},backgroundPositionY:{},backgroundSize:{},backgroundRepeat:{},color:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{}}}),Nt,Dt)(Gr);customElements.define(Ur,Zr);const Qr=k("combo-box"),{host:Jr,inputField:Kr,inputElement:Xr,placeholder:eo,toggle:to,clearButton:ro,label:oo,requiredIndicator:io,helperText:no,errorMessage:ao,loader:so,overlayContent:lo}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},loader:{selector:"vaadin-combo-box-overlay::part(loader)"},overlayContent:{selector:"vaadin-combo-box-overlay::part(content)"}},co=I(ne({mappings:{hostWidth:{...Jr,property:"width"},hostDirection:{...Jr,property:"direction"},fontSize:[{},Jr],fontFamily:[oo,eo,Kr,no,ao],labelFontSize:{...oo,property:"font-size"},labelFontWeight:{...oo,property:"font-weight"},labelTextColor:[{...oo,property:"color"},{...oo,property:"-webkit-text-fill-color"},{...io,property:"color"}],errorMessageTextColor:{...ao,property:"color"},errorMessageIcon:{...ao,property:"background-image"},errorMessageIconSize:{...ao,property:"background-size"},errorMessageIconPadding:{...ao,property:"padding-inline-start"},errorMessageIconRepeat:{...ao,property:"background-repeat"},errorMessageIconPosition:{...ao,property:"background-position"},errorMessageFontSize:{...ao,property:"font-size"},inputHeight:{...Kr,property:"height"},inputBackgroundColor:{...Kr,property:"background-color"},inputBorderColor:{...Kr,property:"border-color"},inputBorderWidth:{...Kr,property:"border-width"},inputBorderStyle:{...Kr,property:"border-style"},inputBorderRadius:{...Kr,property:"border-radius"},labelRequiredIndicator:{...io,property:"content"},inputValueTextColor:{...Kr,property:"color"},inputPlaceholderTextColor:{...eo,property:"color"},inputDropdownButtonCursor:[{...to,property:"cursor"},{...ro,property:"cursor"}],inputDropdownButtonColor:[{...to,property:"color"},{...ro,property:"color"}],inputDropdownButtonSize:[{...to,property:"font-size"},{...ro,property:"font-size"}],inputDropdownButtonOffset:[{...to,property:"margin-right"},{...to,property:"margin-left"}],inputOutlineColor:{...Kr,property:"outline-color"},inputOutlineWidth:{...Kr,property:"outline-width"},inputOutlineStyle:{...Kr,property:"outline-style"},inputOutlineOffset:{...Kr,property:"outline-offset"},inputHorizontalPadding:[{...Xr,property:"padding-left"},{...Xr,property:"padding-right"}],labelPosition:{...oo,property:"position"},labelTopPosition:{...oo,property:"top"},labelHorizontalPosition:[{...oo,property:"left"},{...oo,property:"right"}],inputTransformY:{...oo,property:"transform"},inputTransition:{...oo,property:"transition"},marginInlineStart:{...oo,property:"margin-inline-start"},placeholderOpacity:{...eo,property:"opacity"},inputVerticalAlignment:{...Kr,property:"align-items"},valueInputHeight:{...Xr,property:"height"},valueInputMarginBottom:{...Xr,property:"margin-bottom"},overlayBackground:{property:()=>co.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>co.cssVarList.overlay.textColor},overlayBorder:{property:()=>co.cssVarList.overlay.border},overlayFontSize:{property:()=>co.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>co.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>co.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>co.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>co.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>co.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>co.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>co.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>co.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>co.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>co.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>co.cssVarList.overlay.itemFocusBackground}}}),ae,(({name:e,selector:t,mappings:r={},forward:{attributes:o=[],include:i=!0}={}})=>t=>{const n=e,a=ne({mappings:r})(t);return class extends a{static get cssVarList(){return{...a.cssVarList,[n]:ie(w(t.componentName,"_"+n),r)}}#G;constructor(){const e=(t=async e=>(e.shadowRoot||e).querySelector(e.baseSelector),async e=>{const r=await t(e);return new Promise(e=>{let t=0;const o=()=>{if(t>20)return console.error("could not get shadow root for element",r),void e(r);t++,r?.shadowRoot?e(r.shadowRoot):setTimeout(o)};o()})});var t;super({getRootElement:e,componentNameSuffix:"_"+n,themeSection:"@"+n,baseSelector:":host"}),this.#G=e(this).then(e=>e.host)}async#Z(){const e=await this.#G;e.onmouseenter=e=>{e.target.setAttribute("hover","true")},e.onmouseleave=e=>{e.target.removeAttribute("hover")}}async init(){super.init?.();const e=await this.#G;L(this,e,{[i?"includeAttrs":"excludeAttrs"]:o}),this.#Z()}}})({name:"overlay",selector:"",mappings:{backgroundColor:[{selector:"vaadin-combo-box-scroller"},{selector:"vaadin-combo-box-overlay::part(overlay)"}],minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"},checkmarkDisplay:{selector:"vaadin-combo-box-item::part(checkmark)",property:"display"},selectedItemBackground:{selector:"vaadin-combo-box-item[selected]",property:"background-color"},selectedItemHoverBackground:{selector:"vaadin-combo-box-item[selected]:hover:not([disabled])",property:"background-color"},selectedItemFocusBackground:{selector:"vaadin-combo-box-item[selected][focused]:not([disabled])",property:"background-color"},itemHoverBackground:{selector:"vaadin-combo-box-item:hover:not([selected]):not([disabled])",property:"background-color"},itemFocusBackground:{selector:"vaadin-combo-box-item[focused]:not([selected]):not([disabled])",property:"background-color"},loaderTop:{...so,property:"top"},loaderLeft:{...so,property:"left"},loaderRight:{...so,property:"right"},loaderMargin:{...so,property:"margin"},loaderWidth:{...so,property:"width"},loaderHeight:{...so,property:"height"},loaderBorder:{...so,property:"border"},loaderBorderColor:{...so,property:"border-color"},loaderBorderRadius:{...so,property:"border-radius"},contentHeight:{...lo,property:"height"},contentOpacity:{...lo,property:"opacity"},scrollerMinHeight:{selector:"vaadin-combo-box-scroller",property:"min-height"}},forward:{include:!1,attributes:["size"]}}),Ae({proxyProps:["selectionStart"],inputEvent:"value-changed"}),se,e=>class extends e{static get observedAttributes(){return["label-type"]}#J=({displayName:e,value:t,label:r})=>`<span data-name="${r}" data-id="${t}">${e||r}</span>`;#V;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#J}set renderItem(e){this.#J=e,this.renderItems()}set renderer(e){this.baseElement.renderer=e}get loading(){return"true"===this.getAttribute("loading")}set loading(e){e?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" -',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.renderItem?.(t||{})||""),"")}renderItems(){if(this.#V||this.getAttribute("data")){const e=this.getItemsTemplate();this.innerHTML=e}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:e}=this.baseElement,t=e?.["data-id"];e&&Array.from(this.children).includes(e)||(t&&this.shouldSelectItemOnItemsChange&&(this.value=t),this.value||this.setDefaultValue())}customValueTransformFn(e){return e}setComboBoxDescriptor(){const e=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),t=this;Object.defineProperties(this.inputElement,{value:{...e,set(r){if(!t.baseElement.items?.length&&!t.allowCustomValue)return;const o=t.customValueTransformFn(r)||"";o!==this.value&&e.set.call(this,o)}}})}#K(){const e=Array.from(this.children);e.forEach(e=>{Object.defineProperty(e,"data-name",{value:e.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(e,"data-id",{value:e.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.handleSelectedItem()},0)}#X(){const e=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");e._attachOverlay=()=>{e.bringToFront()},e._detachOverlay=()=>{},e._enterModalState=()=>{}}#ee(){this.baseElement.renderer=(e,t,r)=>{e.innerHTML=r.item.outerHTML}}#te(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}init(){super.init?.(),this.getValidity=function(){return!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ee(),this.#te(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#X()}),S(this,this.renderItems.bind(this),{includeAttrs:["data"]}),A(this,this.#K.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",e=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:e.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"label-type"===e&&("floating"===r?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#re(e){return this.baseElement.items?.find(t=>t["data-id"]===e)}#oe(e,t){e===this.value&&t!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",e=>{e.stopImmediatePropagation()},{once:!0,capture:!0})}set value(e){const t=this.#re(e);this.#oe(e,t),e&&t?this.baseElement.selectedItem=t:!t&&this.allowCustomValue?this.baseElement.value=e:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get autoOpenDisabled(){return"true"===this.getAttribute("auto-open-disabled")}})(we({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>{return`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${e=co.cssVarList,`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`}\n\t\t\n vaadin-combo-box::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t${((e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`)("vaadin-combo-box")}\n\t\t${(e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`)("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n\n vaadin-combo-box::part(toggle-button),\n vaadin-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-combo-box[hide-toggle-button="true"]::part(toggle-button) {\n display: none;\n }\n\n vaadin-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n \n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n vaadin-combo-box [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`;var e},excludeAttrsSync:["tabindex","size","data","loading","style"],componentName:Qr,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(Qr,co);const po=e=>{const t=c.A.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg")},uo=k("image"),ho=["src","src-dark"];class mo extends(ue({componentName:uo,baseSelector:"slot"})){static get observedAttributes(){return ho}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",N("\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n :host > slot {\n width: 100%;\n height: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n ::slotted(*) {\n width: 100%;\n\t\t\t}\n\n .hidden {\n display: none;\n }\n ",this)}init(){super.init?.(),this.toggleVisibility(this.src)}onThemeChange(){this.renderImage()}toggleVisibility(e){e?this.classList.remove("hidden"):this.classList.add("hidden")}get altText(){return this.getAttribute("alt")||""}get legacySrc(){return this.getAttribute("src")}get themeSrc(){return this.getAttribute(`src-${this.currentThemeName}`)}get src(){return this.themeSrc||this.legacySrc}updateFillColor(e){[e,...e.querySelectorAll("*[fill]")].forEach(e=>{e.setAttribute("fill",`var(${go.cssVarList.fill}, ${e.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.src),(async(e,t)=>{try{let r;if((e=>e.startsWith("data:image/svg+xml;base64,"))(e)){const t=atob(e.slice(26));r=po(t)}else if("svg"===(e=>{const t=e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return t?t[1]:null})(e)){const t=await fetch(e),o=await t.text();r=po(o)}else r=((e,t)=>{const r=document.createElement("img");return r.setAttribute("src",e),r.setAttribute("alt",t),r})(e,t);return r.style.setProperty("max-width","100%"),r.style.setProperty("max-height","100%"),r}catch{return null}})(this.src,this.altText).then(e=>{this.innerHTML="",e&&(this.updateFillColor(e),this.appendChild(e))})}shouldRender(e){const t=this.getAttribute(e);return this.src===t}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&this.shouldRender(e)&&this.renderImage()}}const go=I(ne({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),ae,se)(mo),bo=k("icon"),yo=I(ne({mappings:{fill:[{},{property:go.cssVarList.fill}]}}),ae,se)(we({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n }\n ",excludeAttrsSync:["tabindex","class","style"],componentName:bo})),fo=k("button"),{host:vo,label:xo,slottedIcon:Co}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let wo;const Io=I(ne({mappings:{hostWidth:{property:"width"},hostHeight:{property:"height"},hostDirection:{...vo,property:"direction"},fontSize:{},fontFamily:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-right",fallback:"0.875em"},{property:"padding-left",fallback:"0.875em"}],labelTextColor:{property:"color"},iconColor:{selector:()=>"::slotted(*)",property:yo.cssVarList.fill},labelTextDecoration:{...xo,property:"text-decoration"},labelSpacing:{...xo,property:"gap"},textAlign:{...xo,property:"justify-content",fallback:"center"},iconSize:[{...Co,property:"width"},{...Co,property:"height"}]}}),e=>class extends e{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}},ae,se)(we({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${wo}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Io.cssVarList.outlineWidth}) + var(${Io.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Io.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Io.cssVarList.hostHeight}) - var(${Io.cssVarList.outlineWidth}) - var(${Io.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Io.cssVarList.hostWidth}) - var(${Io.cssVarList.outlineWidth}) - var(${Io.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style"],componentName:fo})),{color:Mo,fontSize:So}=Io.cssVarList;wo=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${Mo});\n\t\ttop: calc(50% - (var(${So}) / 2));\n\t\tleft: calc(50% - (var(${So}) / 2));\n\t\tborder-width: calc(var(${So}) / 10);\n\t\twidth: var(${So});\n\t\theight: var(${So});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"]) ::part(prefix),\n\t:host([loading="true"]) ::part(label) {\n\t\tvisibility: hidden;\n\t}\n`,customElements.define(fo,Io);const Ao=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Eo=Ao[0],To="YYYY-MM-DD",ko="/",zo=["January","February","March","April","May","June","July","August","September","October","November","December"],Lo=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],No={id:"month",min:1,max:12,placeholder:"MM"},Do={id:"day",min:1,max:31,placeholder:"DD"},Vo={id:"year",min:0,max:9999,placeholder:"YYYY"},Po=1900,Bo=2099,Ro=(e,t)=>{if("number"==typeof e)return new Date(e);if("string"==typeof e){const r=new Date(e.replace(/-/g,"/"));return t?new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())):new Date(r)}return new Date},Oo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},jo=e=>{const t=(e=>`^${e.split(ko).map(e=>Oo[e]).join("\\D")}$`)(e),r=(e=>{const t=e.split(ko);return e=>{const r={};return t.forEach((t,o)=>{r[t]=e[o+1]}),[r.YYYY,r.MM,r.DD]}})(e),o=new RegExp(t);return{pattern:t,validate:e=>o.test(e),getDate:e=>((e,t,r)=>{const o=t.exec(e);if(!o)return null;const[i,n,a]=r(o);return Ro([i,n,a].join(ko))})(e,o,r)}},Fo=Object.fromEntries(Ao.map(e=>[e,jo(e)])),Wo=e=>!Number.isNaN(Number(e)),_o=e=>{const t=Ro(e);return[t.getFullYear(),t.getMonth()+1,t.getDate()]},$o=(e,t)=>{const[r,o,i]=_o(e),n={DD:String(i).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(r)};return t.replace(/DD|MM|YYYY/g,e=>n[e])},Ho=()=>Ro().getTime(),qo=e=>Ro(e).getFullYear().toString(),Yo=e=>(Ro(e).getMonth()+1).toString(),Uo=(e,t)=>t?new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).getTime():e.getTime(),Go=(e,t)=>Array.isArray(e)&&e.length===t&&e.filter(Boolean).length===t,Zo=({label:e,dataId:t,dataName:r})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${t}"\n\t\tdata-name="${r}"\n\t>\n\t\t\t${e}\n\t</div>\n`,Qo=(e=zo)=>e.map((e,t)=>Zo({label:e,dataId:t+1,dataName:e})).join(""),Jo=(e,t)=>{const[r,o]=_o(t),[i,n]=_o(e);return i===r&&n===o},Ko=(e,t,r)=>(e.addEventListener("input",t),e.addEventListener("focusout",r),e),Xo=He("calendar"),ei=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],ti=["calendar-label-submit","calendar-label-cancel"],ri=er({componentName:Xo,baseSelector:"div"}),{calendar:oi,day:ii,dayEntry:ni,currentDay:ai,selectedDay:si,disabledDay:li,weekday:di,topNav:ci,topNavSelectors:pi,bottomNav:ui,navPrev:hi,navNext:mi,navPrevRTL:gi,navNextRTL:bi,yearInput:yi,monthInput:fi}={calendar:{selector:()=>".calendar"},topNav:{selector:()=>".nav.top-nav"},topNavSelectors:{selector:()=>".nav.top-nav .selectors > span"},bottomNav:{selector:()=>".nav.bottom-nav"},day:{selector:()=>".day"},dayEntry:{selector:()=>".day-entry"},currentDay:{selector:()=>".day-entry[data-current-day] .day"},selectedDay:{selector:()=>".day-entry[data-selected] .day"},disabledDay:{selector:()=>'.day-entry[data-disabled="true"] .day'},weekday:{selector:()=>".weekday"},navPrev:{selector:()=>".nav-prev"},navNext:{selector:()=>".nav-next"},navPrevRTL:{selector:()=>':host([st-host-direction="rtl"]) .nav-prev'},navNextRTL:{selector:()=>':host([st-host-direction="rtl"]) .nav-next'},yearInput:{selector:()=>".year-input"},monthInput:{selector:()=>".month-input"}},vi=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...ci,property:"padding-top"},{...ci,property:"padding-bottom"}],topNavHorizointalPadding:[{...ci,property:"padding-right"},{...ci,property:"padding-left"}],topNavAlignment:{...ci,property:"justify-content"},topNavGap:{...ci,property:"gap"},topNavSelectorsGap:{...pi,property:"gap"},bottomNavVerticalPadding:[{...ui,property:"padding-top"},{...ui,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...ui,property:"padding-right"},{...ui,property:"padding-left"}],bottomNavAlignment:{...ui,property:"justify-content"},bottomNavGap:{...ui,property:"gap"},navMarginBottom:{...ci,property:"margin-bottom"},calendarPadding:[{...oi,property:"padding-bottom"},{...oi,property:"padding-right"},{...oi,property:"padding-left"}],navBorderBottomWidth:{...ci,property:"border-bottom-width"},navBorderBottomColor:{...ci,property:"border-bottom-color"},navBorderBottomStyle:{...ci,property:"border-bottom-style"},weekdayFontSize:{...di,property:"font-size"},weekdayFontWeight:{...di,property:"font-weight"},currentDayBorderColor:{...ai,property:"border-color"},currentDayBorderWidth:{...ai,property:"border-width"},currentDayBorderStyle:{...ai,property:"border-style"},dayHeight:{...ni,property:"height"},daySize:[{...ii,property:"height"},{...ii,property:"width"}],dayPadding:{...ii,property:"padding"},dayRadius:{...ii,property:"border-radius"},dayTextAlign:{...ii,property:"text-align"},dayBlockAlign:{...ii,property:"margin"},dayTextColor:{...ii,property:"color"},dayFontWeight:{...ii,property:"font-weight"},dayBackgroundColor:{...ii,property:"background-color"},dayCursor:{...ii,property:"cursor"},dayFontSize:{...ii,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...si,property:"color"},daySelectedBackgroundColor:{...si,property:"background-color"},dayDisabledTextdColor:{...li,property:"color"},yearInputWidth:{...yi,property:"width"},monthInputWidth:{...fi,property:"width"},navButtonSize:[{...hi,property:"width"},{...hi,property:"height"},{...mi,property:"width"},{...mi,property:"height"}],navButtonCursor:[{...hi,property:"cursor"},{...mi,property:"cursor"}],navButtonRotation:[{...gi,property:"transform"},{...bi,property:"transform"}],navButtonOpacity:[{...hi,property:"opacity"},{...mi,property:"opacity"}]}}),Nt,Dt)(class extends ri{static get observedAttributes(){return[].concat(ri.observedAttributes||[],ei,ti)}preview;epoch;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <nav class="nav top-nav">\n <div class="nav-prev">\n </div>\n <div class="selectors"></div>\n <div class="nav-next">\n </div>\n </nav>\n <div class="calendar"></div>\n <nav class="nav bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>\n </nav>\n </div>\n ',N(`\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n [data-toggle-calendar] {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n }\n\n [data-disabled="true"] {\n pointer-events: none;\n }\n\n .calendar .day {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n\n .selectors,\n .selectors span {\n display: flex;\n justify-content: center;\n }\n\n descope-button {\n padding: 0;\n ${Io.cssVarList.horizontalPadding}: 0;\n ${Io.cssVarList.verticalPadding}: 0;\n ${Io.cssVarList.outlineWidth}: 0;\n }\n\n .combo-box-item {\n display:flex;\n flex-direction: column;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n `,this)}set value(e){if(!e)return;const t=Ro(e).getTime();Wo(t)&&t!==this.epoch&&(this.epoch=t,this.renderCalendar())}get value(){return this.epoch?$o(this.epoch,To):""}get isSelectedView(){return Jo(this.preview,this.epoch)}get isTodayView(){return Jo(Ho(),this.preview)}get monthNames(){return(e=>{const t=e?.split(",");return Go(t,12)?t:zo})(this.getAttribute("calendar-months"))}get weekdayNames(){return(e=>{const t=e?.split?.(",");return Go(t,7)?t:Lo})(this.getAttribute("calendar-weekdays"))}get hasYearValue(){return!!this.yearInput.value}get hasMonthValue(){return!!this.monthInput.value}get yearsRange(){const e=this.getAttribute("years-range")?.split("-");if(2===e?.length){const[t,r]=e.map(Number);if(t<=r)return[t,r]}const t=Ro().getFullYear();return[t,t+100]}init(){super.init?.(),this.initCalendar(),this.renderCalendar()}initCalendar(){this.calendar=this.shadowRoot.querySelector(".calendar"),this.navPrevEle=this.shadowRoot.querySelector(".nav-prev"),this.navNextEle=this.shadowRoot.querySelector(".nav-next"),this.submitButton=this.shadowRoot.querySelector(".submit-button"),this.cancelButton=this.shadowRoot.querySelector(".cancel-button"),this.initInputs(),this.initNav(),this.addEventListener("day-changed",()=>this.submitButton.removeAttribute("disabled")),this.submitButton.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}initInputs(){const e=(()=>{const e=document.createElement("span");return e.innerHTML=`\n <descope-combo-box\n label-type="static"\n bordered="true"\n item-label-path="data-name"\n item-value-path="data-id"\n class="month-input"\n >\n ${Qo()}\n </descope-combo-box>\n <descope-combo-box\n allow-custom-value="true"\n label-type="static"\n bordered="true"\n item-label-path="data-name"\n item-value-path="data-id"\n class="year-input"\n no-empty-value="true"\n >\n </descope-combo-box>\n `,e})(this.monthNames,this.yearsRange);this.shadowRoot.querySelector(".selectors").appendChild(e),this.monthInput=Ko(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=Ko(this.shadowRoot.querySelector(".year-input"),this.onYearChange.bind(this),this.onYearInputBlur.bind(this)),[this.monthInput,this.yearInput].forEach(e=>Ye(this,e,{includeAttrs:["disabled","size","st-host-direction"]}))}initNav(){this.navPrevEle.addEventListener("click",this.navPrevMonth.bind(this)),this.navNextEle.addEventListener("click",this.navNextMonth.bind(this)),this.cancelButton.addEventListener("click",this.onCancel.bind(this)),this.submitButton.addEventListener("click",this.onSubmit.bind(this)),[this.navPrevEle,this.navNextEle].forEach(e=>Ye(this,e,{includeAttrs:["size"]})),this.shadowRoot.querySelector(".nav-next").innerHTML='\n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.27283 6.78069C8.87912 6.34164 8.91587 5.66655 9.35492 5.27283C9.79397 4.87912 10.4691 4.91587 10.8628 5.35492C10.8628 5.35492 16.0022 10.9543 16.366 11.36C16.7298 11.7657 16.7298 12.2392 16.366 12.6448L10.8628 18.6451C10.4691 19.0841 9.79397 19.1209 9.35492 18.7272C8.91587 18.3334 8.87912 17.6584 9.27283 17.2193L14.1368 12L9.27283 6.78069Z" fill="#808080"/>\n</svg>',this.shadowRoot.querySelector(".nav-prev").innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.7272 17.2193C15.1209 17.6584 15.0841 18.3334 14.6451 18.7272C14.206 19.1209 13.5309 19.0841 13.1372 18.6451C13.1372 18.6451 7.99776 13.0457 7.63399 12.64C7.27023 12.2343 7.27023 11.7608 7.63399 11.3552L13.1372 5.35492C13.5309 4.91587 14.206 4.87912 14.6451 5.27283C15.0841 5.66655 15.1209 6.34164 14.7272 6.78069L9.86322 12L14.7272 17.2193Z" fill="#808080"/>\n</svg>'}onSubmit(){this.isDisabled||this.value&&this.dispatchEvent(new CustomEvent("date-submit",{detail:Ro(this.preview)}))}onCancel(){this.isDisabled||(this.dispatchEvent(new CustomEvent("cancel")),this.dispatchEvent(new CustomEvent("date-cancel")),this.clearSelectedDay())}clearSelectedDay(){this.getSelectedDayEle()?.removeAttribute("data-selected"),this.submitButton.setAttribute("disabled","true"),this.epoch=""}updateInputs(){if(this.yearInput&&this.monthInput){const e=this.preview||Ho(),t=qo(e),r=Yo(e);this.monthInput.value=r,setTimeout(()=>{this.yearInput.baseElement.value=t})}}renderCalendar(){const e=Ro(this.preview||Ho()).getTime(),[t,r]=_o(e);this.calendar&&(this.calendar.innerHTML=((e,t,r)=>{const o=((e,t)=>new Date(e,t,0).getDate())(e,t),i=new Date(e,t-1,1).getDay();let n="<table>";n+=`<thead><tr>${r.reduce((e,t)=>`${e}<th><span class="weekday">${t}</span></th>`,"")}</tr></thead>`,n+="<tbody>",n+="<tr>";for(let e=0;e<i;e++)n+="<td></td>";let a=i;for(let e=1;e<=o;e++)7===a&&(a=0,n+="</tr><tr>"),n+=`\n <td\n data-date-day="${e}"\n class="day-entry">\n <span class="day" data-date-day=${e}>\n ${e}\n </span>\n </td>\n `,a++;for(;a<7;)n+="<td></td>",a++;return n+="</tr></tbody></table>",n})(t,r,this.weekdayNames.map(e=>e.substring(0,3)))),Array.from(this.calendar?.querySelectorAll(".day-entry .day")||[]).forEach(e=>e.addEventListener("click",this.onDayChange.bind(this))),this.updateInputs(),this.setSelectedDay(),this.setCurrentDay()}onDayChange(e){if(this.isDisabled)return;const t=Ro(this.preview);t.setDate(Number(e.target.getAttribute("data-date-day"))),this.value=$o(t.getTime(),To),this.dispatchEvent(new CustomEvent("day-changed",{detail:t}))}onYearChange(e){if(!e.target.value)return;const t=Ro(this.preview);t.setFullYear(Number(e.target.value.trim())),this.preview=t.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("year-changed",{detail:t}))}onMonthChange(e){if(!e.target.value)return;const t=Ro(this.preview);t.setMonth(Number(e.target.value)-1),this.preview=t.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("month-changed",{detail:t}))}onYearInputBlur(e){this.yearInput.baseElement.value=e.target.value||qo(this.preview)}onMonthInputBlur(e){this.monthInput.baseElement.value=e.target.value||Yo(this.preview)}getSelectedDayEle(){const e=Ro(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${e}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${Ro().getDate()}"]`)}clearSelectedDays(){const e=this.calendar?.querySelectorAll("[data-selected]");e&&e.forEach(e=>e.removeAttribute("data-selected"))}setSelectedDay(){this.clearSelectedDays(),this.value&&this.isSelectedView&&this.getSelectedDayEle().setAttribute("data-selected","true")}setCurrentDay(){if(this.isTodayView){const e=this.getCurrentDayEle(),t=this.getAttribute("calendar-label-today")||"Today";e?.setAttribute("data-current-day","true"),e?.setAttribute("title",t)}}navPrevMonth(){if(this.isDisabled)return;const e=(e=>{const t=Ro(e),r=t.getMonth();if(0===r){const e=t.getFullYear();t.setFullYear(e-1),t.setMonth(11)}else t.setMonth(r-1);return t})(this.preview);this.preview=e.getTime(),this.renderCalendar()}navNextMonth(){if(this.isDisabled)return;const e=(e=>{const t=Ro(e),r=t.getMonth();if(11===r){const e=t.getFullYear();t.setFullYear(e+1),t.setMonth(0)}else t.setMonth(r+1);return t})(this.preview);this.preview=e.getTime(),this.renderCalendar()}clearValue(){this.epoch="",this.value="",this.removeAttribute("preview"),this.submitButton.setAttribute("disabled","true")}onInitialValueChange(e){if(this.value)return;const t=Ro(e).getTime();Wo(t)?(this.epoch=t,this.preview=t):this.clearValue()}onYearsRangeChange(){setTimeout(()=>{this.yearInput&&(this.yearInput.innerHTML=(e=>{const[t,r]=e,o=[];for(let e=t;e<=r;e++)o.push(e);return o})(this.yearsRange).map(e=>Zo({label:e,dataId:e,dataName:e})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=Qo(this.monthNames))})}onSubmitLabelChange(e){this.submitButton&&(this.submitButton.textContent=e||"Done")}onCancelLabelChange(e){this.cancelButton&&(this.cancelButton.textContent=e||"Cancel")}onInitialMonthChange(e){const t=qo(this.preview);this.preview=Ro(`${t}/${e}/1`).getTime()}onInitialYearChange(e){const t=Yo(this.preview);this.preview=Ro(`${e}/${t}/1`).getTime()}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),t!==r&&(ti.includes(e)?("calendar-label-submit"===e&&this.onSubmitLabelChange(r),"calendar-label-cancel"===e&&this.onCancelLabelChange(r)):(r&&"initial-value"===e&&this.onInitialValueChange(r),r&&"initial-month"===e&&this.onInitialMonthChange(r),r&&"initial-year"===e&&this.onInitialYearChange(r),"years-range"===e&&this.onYearsRangeChange(Number(r)),"calendar-months"===e&&this.onMonthNamesChange(),"calendar-label-today"===e&&this.setCurrentDay(r),"disabled"===e&&setTimeout(()=>{this.cancelButton?.setAttribute("disabled","true"===r)}),this.renderCalendar()))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}});customElements.define(Xo,vi);const{host:xi,label:Ci,placeholder:wi,requiredIndicator:Ii,inputField:Mi,input:Si,inputMask:Ai,helperText:Ei,errorMessage:Ti,disabledPlaceholder:ki,inputDisabled:zi,inputIcon:Li,externalInput:Ni,externalInputDisabled:Di,externalPlaceholder:Vi,externalDisabledPlaceholder:Pi}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}};var Bi={fontSize:[{},xi],fontFamily:[Ci,Mi,Ei,Ti],labelFontSize:{...Ci,property:"font-size"},labelFontWeight:{...Ci,property:"font-weight"},labelTextColor:[{...Ci,property:"color"},{...Ii,property:"color"},{...Ci,property:"-webkit-text-fill-color"},{...Ii,property:"-webkit-text-fill-color"}],hostWidth:{...xi,property:"width"},hostMinWidth:{...xi,property:"min-width"},hostDirection:{...xi,property:"direction"},inputDirection:{...Si,property:"direction"},inputBackgroundColor:[{...Mi,property:"background-color"},{...Ai,property:"background-color"}],errorMessageTextColor:{...Ti,property:"color"},errorMessageIcon:{...Ti,property:"background-image"},errorMessageIconSize:{...Ti,property:"background-size"},errorMessageIconPadding:{...Ti,property:"padding-inline-start"},errorMessageIconRepeat:{...Ti,property:"background-repeat"},errorMessageIconPosition:{...Ti,property:"background-position"},errorMessageFontSize:{...Ti,property:"font-size"},helperTextColor:{...Ei,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Mi,property:"color"},{...zi,property:"-webkit-text-fill-color"},{...Di,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Si,property:"caret-color"},{...Ni,property:"caret-color"}],labelRequiredIndicator:{...Ii,property:"content"},inputBorderColor:{...Mi,property:"border-color"},inputBorderWidth:{...Mi,property:"border-width"},inputBorderStyle:{...Mi,property:"border-style"},inputBorderRadius:{...Mi,property:"border-radius"},inputHeight:{...Mi,property:"height"},inputHorizontalPadding:[{...Si,property:"padding-left"},{...Si,property:"padding-right"},{...Ni,property:"padding-left"},{...Ni,property:"padding-right"}],inputOutlineColor:{...Mi,property:"outline-color"},inputOutlineStyle:{...Mi,property:"outline-style"},inputOutlineWidth:{...Mi,property:"outline-width"},inputOutlineOffset:{...Mi,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Si,property:"text-align"},{...Ni,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Vi,property:"color"},{...wi,property:"color"},{...ki,property:"-webkit-text-fill-color"},{...Pi,property:"-webkit-text-fill-color"}],labelPosition:{...Ci,property:"position"},labelTopPosition:{...Ci,property:"top"},labelHorizontalPosition:[{...Ci,property:"left"},{...Ci,property:"right"}],inputTransformY:{...Ci,property:"transform"},inputTransition:{...Ci,property:"transition"},marginInlineStart:{...Ci,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Vi,property:"opacity"}],inputVerticalAlignment:[{...Mi,property:"align-items"},{...Ni,property:"align-items"}],valueInputHeight:[{...Si,property:"height"},{...Ni,property:"height"}],valueInputMarginBottom:[{...Si,property:"margin-bottom"},{...Ni,property:"margin-bottom"}],inputIconOffset:[{...Li,property:"margin-right"},{...Li,property:"margin-left"}],inputIconSize:{...Li,property:"font-size"},inputIconColor:{...Li,property:"color"}};const Ri=He("text-field"),Oi=["type","label-type","copy-to-clipboard"],ji=Be(Lt({mappings:Bi}),Nt,Ut({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Dt,e=>class extends e{static get observedAttributes(){return Oi.concat(e.observedAttributes||[])}icon;init(){super.init?.()}renderCopyToClipboard(e){if(!e)return void this.icon?.remove();const t={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},r={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"};this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",...t}),this.baseElement.appendChild(this.icon),this.icon.addEventListener("click",()=>{navigator.clipboard.writeText(this.value),Object.assign(this.icon,r),setTimeout(()=>{Object.assign(this.icon,t)},5e3)})}onLabelClick(){this.focus()}attributeChangedCallback(e,t,r){super.attributeChangeCallback?.(e,t,r),"type"===e&&this.baseElement._setType(r),t!==r&&("label-type"===e?"floating"===r?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===e&&this.renderCopyToClipboard("true"===r))}})(Ft({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${ji.cssVarList.inputOutlineWidth}) + var(${ji.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {\n opacity: 1;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n ${ht("vaadin-text-field")}\n\t\t\t${at(ji.cssVarList)}\n\t\t\t${ut("vaadin-text-field",ji.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-text-field vaadin-icon {\n align-self: center;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ri}));customElements.define(Ri,ji);class Fi{#V=Object.freeze([]);constructor({id:e,min:t,max:r,placeholder:o},i){this.id=e,this.min=t,this.max=r,this.placeholder=o,this.onChange=i}get data(){return this.#V}set data(e){this.#V=Object.freeze(e),this.onChange?.()}get#ie(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(e){this.data=e.toString().split("")}add(e){let t=this.data;return t=[...t,e],Number(t.join(""))>this.max?t=[e]:this.length<t.length&&(t=t.slice(1,t.length)),this.data=t,e}del(){this.data.filter(e=>"0"!==e).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(e){this.replaceValue(this.#ie<this.max?Math.max(this.#ie+(e||1),this.min):this.min)}dec(e){this.replaceValue(this.#ie>this.min?Math.min(this.#ie-(e||1),this.max):this.max)}isInRange(e){return e>=this.min&&e<=this.max}replaceValue(e){this.isInRange(e)&&(this.data=e.toString().padStart(this.length,0).split(""))}setMin(e){this.min=Number(e)}setMax(e){this.max=Number(e)}}const Wi=He("date-field"),_i=er({componentName:Wi,baseSelector:"vaadin-popover"}),$i=["format","opened","initial-value","readonly","disable-calendar","utc-time"],Hi=["years-range","calendar-months","calendar-weekdays"],qi=[...$i,...Hi],Yi=ji.cssVarList,{host:Ui,input:Gi,inputEleRTL:Zi,toggleButton:Qi,overlay:Ji,backdrop:Ki}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-calendar"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},Xi=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{iconMargin:{...Qi,property:"margin-inline-end"},hostWidth:{...Ui,property:"width"},hostDirection:{...Ui,property:"direction"},textAlign:{...Gi,property:"text-align"},rtlInputDirection:{...Zi,property:Yi.inputDirection},rtlInputAlignment:{...Zi,property:Yi.inputTextAlign},overlayGap:{property:()=>Xi.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Xi.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Xi.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Xi.overlayBoxShadow},overlayOutlineWidth:{property:()=>Xi.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Xi.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Xi.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:ji.componentName,property:ji.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:ji.componentName,property:ji.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:ji.componentName,property:ji.cssVarList.errorMessageFontSize}}}),Zt({name:"overlay",selector:"",mappings:{marginTop:{...Ji,property:"margin-top"},backgroundColor:{...Ji},backdropBackgroundColor:{...Ki,property:"background-color"},backdropPointerEvents:{...Ki,property:"pointer-events"},padding:{...Ji},boxShadow:{...Ji},outlineWidth:{...Ji},outlineColor:{...Ji},outlineStyle:{...Ji}}}),Nt,Dt)(class extends _i{epoch="";format=Eo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.updateEpoch("");else{const e=Fo[this.format].getDate(this.inputElement.value);this.updateEpoch(Uo(e,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#ne()};updateEpoch(e){Number.isNaN(e)||!e.toString()?.length?this.epoch="":this.epoch=Uo(Ro(e,this.isUtcTime),this.isUtcTime)}dateCounters=[new Fi(No,this.onDateCounterChange.bind(this)),new Fi(Do,this.onDateCounterChange.bind(this)),new Fi(Vo,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(_i.observedAttributes||[],qi)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-calendar">\n \n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>\n</svg>\n\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',N('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-calendar {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-calendar {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-calendar")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get displayValueEpoch(){const e=Fo[this.format].getDate(this.inputElement.value);return Wo(e?.getTime())?e.getTime():null}get sortedCounters(){return this.format.split(ko).map(e=>this.dateCounters.find(t=>t.placeholder===e))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(e=>e.stringValue).join(ko)}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay.shadowRoot?.querySelector("#backdrop")}get calendar(){return this.overlay?.querySelector("descope-calendar")}get isRTL(){const e=getComputedStyle(this.baseElement).getPropertyValue("direction");return e?"rtl"===e:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(e){let t=parseInt(e,10);Number.isNaN(t)?(this.updateEpoch(""),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(t),this.updateDateCounters(Ro(t)))}get isCountersEmpty(){return this.dateCounters.every(e=>e.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(e=>!e.isInRange(e.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const e=this.inputElement.baseElement.inputElement;return e.value.length===e.selectionStart+e.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#ne(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=$o(Ro(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#X()},0)}initInputElement(){this.inputElement.getValidity=this.getValidity.bind(this),this.inputElement.baseElement.checkValidity=this.checkValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.onPopoverToggle.bind(this)),this.inputElement.addEventListener("focus",this.onFocus.bind(this)),this.inputElement.addEventListener("blur",this.onBlur.bind(this)),this.inputElement.addEventListener("click",this.handleMouseCaretPositionChange.bind(this)),this.inputElement.addEventListener("keydown",this.handleKeyboard.bind(this)),this.inputElement.addEventListener("beforeinput",this.handleInput.bind(this)),this.inputElement.addEventListener("pointerdown",this.onPointerDown.bind(this)),this.inputElement.addEventListener("paste",this.onPaste.bind(this)),Ye(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","bordered","data-errormessage-value-missing","data-errormessage-pattern-mismatch","data-errormessage-range-underflow","data-errormessage-range-overflow","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}handleInput(e){var t;e.preventDefault(),this.handleSelectAll(),e.data&&(t=e.data,String(t||"").trim()&&!Number.isNaN(Number(t)))?(this.parseDigits(e.data),this.updateCountersDisplay()):e.inputType&&this.handleNavKeys(e)}initPopover(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#ae.bind(this),this.baseElement.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#se;#ae(e){e.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),e.appendChild(this.#le()),(e=>{const t=new CSSStyleSheet;t.insertRule(":host{display:block!important;}"),e?.shadowRoot?.adoptedStyleSheets?.push(t)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),e.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#de(e),e.style.setProperty("visibility","visible"),this.updateCalendarView(e)},100)}#de(){const e=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#se?.remove();const t=document.body.getBoundingClientRect(),r=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),i=this.isRTL?"right":"left",n=r[i]-o[i],a=o.left,s=t.width-o.right;let l;l=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),a),N(`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `,e)}#le(){const e=document.createElement("span");e.innerHTML="<descope-calendar></descope-calendar>";const t=e.querySelector("descope-calendar");return t.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),t.addEventListener("cancel",this.closePopover.bind(this)),e}#X(){this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{}}onPopoverToggle(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disableCalendar||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}getCounterById(e){return this.dateCounters.find(t=>t.id===e)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const e=Ro(this.calendar.value);this.value=Uo(e,this.isUtcTime),this.getCounterById("year").replaceValue(e.getFullYear()),this.getCounterById("month").replaceValue(e.getMonth()+1),this.getCounterById("day").replaceValue(e.getDate()),this.#ne()}this.closePopover()}updateCalendarView(){const e=Wo(Ro(this.inputElement.value||"").getTime())&&Fo[this.format].validate(this.inputElement.value);this.displayValueEpoch||e?this.calendar.setAttribute("initial-value",$o(this.displayValueEpoch||this.epoch,To)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",$o(Ho(),To))),Ye(this,this.calendar,{includeAttrs:["st-host-direction","readonly","initial-month","initial-year","years-range","calendar-label-submit","calendar-label-cancel","calendar-months","calendar-weekdays","calendar-weekdays-short"]})}onPointerDown(e){setTimeout(()=>this.handleMouseCaretPositionChange(e),150)}onFocus(){this.isReadOnly||setTimeout(()=>this.resetDisplay())}resetDisplay(){this.inputElement.value||(this.inputElement.value=this.format),this.selectFirstCounter(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}onBlur(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}clearInputEle(){this.inputElement.value=""}onFormatUpdate(e){Object.keys(Fo).includes(e)&&(this.format=e,this.updateFormatPattern())}updateFormatPattern(){const e=this.getAttribute("format")||this.format||Eo;this.setAttribute("type","date"),this.setAttribute("pattern",Fo[e].pattern)}parseDigits(e){this.activeCounter.add(e),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(e){const[t,r]=this.sortedCounters.map(e=>e.length);return[e<=t,e>=t&&e<=t+r+1,e>=t+r+2].indexOf(!0)}setSelectedCounterByCaretPosition(e){this.selectedCounterIdx=this.getCounterIdx(e.target?.selectionStart||this.inputElement.selectionStart)}selectFirstCounter(){this.selectedCounterIdx=0}selectNextCounter(){this.selectedCounterIdx<this.dateCounters.length&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx+1,2))}selectPrevCounter(){this.selectedCounterIdx>0&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx-1,1))}setInputSelectionRange(){this.selectedCounterIdx<0||setTimeout(()=>{const e=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((e,t)=>e+t.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(e,e+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(e=>e.clear())}updateDateCounters(e){this.dateCounters.forEach(t=>{switch(t.id){case No.id:t.set(this.isUtcTime?e.getUTCMonth()+1:e.getMonth()+1);break;case Vo.id:t.set(this.isUtcTime?e.getUTCFullYear():e.getFullYear());break;case Do.id:t.set(this.isUtcTime?e.getUTCDate():e.getDate())}})}handleKeyboard(e){e.metaKey||e.ctrlKey?"x"===e.key.toLowerCase()&&this.onCut(e):(this.handleSelectAll(),"ArrowUp"===e.key?this.activeCounter.inc():"ArrowDown"===e.key?this.activeCounter.dec():"ArrowRight"===e.key?this.selectNextCounter():"ArrowLeft"===e.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(e){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===e.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const e=this.activeCounter;e.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):e.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(e){this.opened||(e.preventDefault(),this.setSelectedCounterByCaretPosition(e),this.setInputSelectionRange())}onInitialValueChange(e){this.value||setTimeout(()=>{Number.isNaN(parseInt(e,10))||(this.value=Number(e))})}togglePopoverAccess(e){e?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("disable-calendar"===e&&this.togglePopoverAccess("true"!==r),$i.includes(e)?(r&&"format"===e&&this.onFormatUpdate(r),"initial-value"===e&&this.onInitialValueChange(r)):Hi.includes(e)&&(r?this.calendar?.setAttribute(e,r):this.calendar?.removeAttribute(e)))}isInvalidDate(){const e=this.getCounterById("year"),t=e.numberValue>Bo||e.numberValue<Po,r=Object.entries(this.getDateVals()).some(([e,t])=>{const r=this.getCounterById(e);return!t||r.numberValue!==t});return t||r}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersOutOfRange||this.isInvalidDate()?{patternMismatch:!0}:{}}getDateVals(){const e={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return e;try{const t=this.isUtcTime?new Date(this.epoch):Ro(this.epoch);this.isUtcTime?(e.month=t.getUTCMonth()+1,e.day=t.getUTCDate(),e.year=t.getUTCFullYear()):(e.month=t.getMonth()+1,e.day=t.getDate(),e.year=t.getFullYear())}catch(e){}return e}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(e){e.preventDefault(),this.isSelectAll?(this.#ce(this.countersValue),this.resetToInitialState()):(this.#ce(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ce(e){try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy date value:",e)}}onPaste(e){e.preventDefault();const t=(e.clipboardData||window.clipboardData).getData("Text"),r=((e,t)=>{const r=e.trim?.();return r?Fo[t].getDate(r):null})(t,this.format);if(r)this.value=Uo(r,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const e=Number(t);e&&this.activeCounter.min<=e&&this.activeCounter.max>=e&&(this.activeCounter.set(String(e)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(Wi,Xi);const en=He("divider");class tn extends(Ot({componentName:en,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div>\n\t\t\t\t<descope-text>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</descope-text>\n\t\t\t</div>\n\t\t",N("\n \t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t:host > div::before,\n\t\t\t\t:host > div::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t\tdescope-text {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t\t:host(:empty) descope-text {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t\t:host([vertical=\"true\"]) div {\n\t\t\t\t\twidth: fit-content;\n\t\t\t\t}\n ",this),this.textComponent=this.shadowRoot.querySelector("descope-text"),Ye(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const rn=vr.cssVarList,{host:on,before:nn,after:an,text:sn}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},ln=Be(Lt({mappings:{hostWidth:{...on,property:"width"},hostPadding:{...on,property:"padding"},hostDirection:{...sn,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...sn,property:rn.textAlign},labelTextWidth:{...sn,property:"width"},labelTextMaxWidth:{...sn,property:"max-width"},labelTextVerticalSpacing:[{...sn,property:"padding-top"},{...sn,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...sn,property:"padding-right"},{...sn,property:"padding-left"}],stripeColor:[{...nn,property:"background-color"},{...an,property:"background-color"}],stripeHorizontalThickness:[{...nn,property:"height"},{...an,property:"height"}],stripeVerticalThickness:[{...nn,property:"width"},{...an,property:"width"}],stripeColorOpacity:[{...nn,property:"opacity"},{...an,property:"opacity"}]}}),Nt,Dt)(tn);customElements.define(en,ln);const dn=He("email-field"),cn=Be(Lt({mappings:Bi}),Nt,Kt({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),Ut({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Dt,e=>class extends e{init(){super.init?.(),this.baseElement.setAttribute("pattern","^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$"),this.getAttribute("autocomplete")||this.setAttribute("autocomplete","username"),this.createExternalInput()}})(Ft({slots:["","suffix"],wrappedEleName:"vaadin-email-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${cn.cssVarList.inputOutlineWidth}) + var(${cn.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${ht("vaadin-email-field")}\n\t\t\t${at(cn.cssVarList)}\n\t\t\t${ut("vaadin-email-field",cn.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-email-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n :host ::slotted(*) {\n -webkit-mask-image: none;\n }\n\n vaadin-email-field[external-input="true"] > input:not(:placeholder-shown) {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:dn}));customElements.define(dn,cn);const pn=({componentName:e,varName:t,fallbackVarName:r})=>{let o;class i extends(Ot({componentName:e,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div></div>\n\t\t\t",N(`\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t\tmargin: auto;\n\t\t\t\t\t${o}\n\t\t\t\t}\n `,this)}}const n=Be(Lt({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[t]:{property:"content"},[r]:{property:"content"}}}),Nt,Dt)(i);return o=`content: var(${n.cssVarList[t]}, var(${n.cssVarList[r]}));`,n},un=He("logo"),hn=pn({componentName:un,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(un,hn);const mn=He("totp-image"),gn=pn({componentName:mn,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(mn,gn);const bn=He("notp-image"),yn=pn({componentName:bn,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(bn,yn);const fn=He("number-field"),vn=Be(Lt({mappings:Bi}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt)(Ft({slots:["","prefix","suffix"],wrappedEleName:"vaadin-number-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${vn.cssVarList.inputOutlineWidth}) + var(${vn.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${ht("vaadin-number-field")}\n\t\t\t${at(vn.cssVarList)}\n\t\t\t${ut("vaadin-number-field",vn.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-number-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-number-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:fn}));customElements.define(fn,vn);const xn="--descope-input-mask-content",Cn="--descope-input-mask-display",wn="--descope-input-mask-fallback",In=e=>{e?.focus(),e?.setSelectionRange?.(1,1)},Mn=e=>e.replace(/\D/g,"")||"",Sn=(e,t)=>{t?(e.style.setProperty(xn,`"${t}"`),e.style.setProperty(Cn,"flex")):(e.style.removeProperty(xn),e.style.removeProperty(Cn))},An=He("passcode-internal"),En=["digits","loading"],Tn=["disabled","bordered","size","invalid","readonly","aria-labelledby"],kn=er({componentName:An,baseSelector:"div"}),zn=He("passcode"),Ln=["digits"],{host:Nn,digitField:Dn,label:Vn,requiredIndicator:Pn,internalWrapper:Bn,focusedDigitField:Rn,errorMessage:On}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${ji.componentName}[focused="true"]`},digitField:{selector:()=>ji.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},jn=ji.cssVarList,Fn=Yr.cssVarList,Wn=Be(Lt({mappings:{fontSize:[{...Dn,property:jn.fontSize},Nn],hostWidth:{property:"width"},hostDirection:{...Nn,property:"direction"},fontFamily:[Nn,{...Vn}],labelTextColor:[{...Vn,property:"color"},{...Vn,property:"-webkit-text-fill-color"},{...Pn,property:"color"},{...Pn,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Pn,property:"content"},errorMessageTextColor:{...On,property:"color"},errorMessageIcon:{...On,property:"background-image"},errorMessageIconSize:{...On,property:"background-size"},errorMessageIconPadding:{...On,property:"padding-inline-start"},errorMessageIconRepeat:{...On,property:"background-repeat"},errorMessageIconPosition:{...On,property:"background-position"},errorMessageFontSize:{...On,property:"font-size"},digitValueTextColor:{selector:ji.componentName,property:jn.inputValueTextColor},digitSize:[{...Dn,property:"height"},{...Dn,property:"width"}],digitPadding:{...Dn,property:jn.inputHorizontalPadding},digitTextAlign:{...Dn,property:jn.inputTextAlign},digitCaretTextColor:{...Dn,property:jn.inputCaretTextColor},digitSpacing:{...Bn,property:"gap"},digitOutlineColor:{...Dn,property:jn.inputOutlineColor},digitOutlineWidth:{...Dn,property:jn.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Rn,property:jn.inputOutlineColor},overlayOpacity:{...Bn,property:"opacity"},spinnerSize:{selector:Yr.componentName,property:Fn.spinnerSize}}}),Nt,Xt,Ut({proxyProps:["value","selectionStart"]}),Dt,e=>class extends e{static get observedAttributes(){return Ln.concat(e.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.(),N("\n .wrapper {\n display: flex;\n width: 100%;\n justify-content: space-between;\n direction: ltr;\n position: relative;\n }\n\n descope-text-field {\n direction: ltr;\n }\n\n .loader-container {\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n ",this);const e=document.createElement("template");e.innerHTML=`\n <${An}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${An}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(An),Ye(this,this.inputElement,{includeAttrs:["digits","size","loading","disabled"]})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"digits"===e&&(this.style["--passcode-digits-count"]=r)}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: calc(var(--passcode-digits-count) * 2em);\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n :host([loading="true"]) descope-passcode-internal .loader-container {\n display: block;\n }\n\n\t\t\tdescope-passcode-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal .wrapper {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: initial;\n\t\t\t\theight: 100%;\n\t\t\t\tjustify-content: space-between;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal descope-text-field {\n\t\t\t\tmin-width: 2em;\n\t\t\t\tmax-width: var(${jn.inputHeight});\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n /* safari */\n\t\t\tvaadin-text-field::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${ht("vaadin-text-field")}\n\t\t\t${dt("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:zn}));customElements.define(An,class extends kn{static get observedAttributes(){return En.concat(kn.observedAttributes||[])}constructor(){super(),this.innerHTML='\n\t\t<div class="wrapper"></div>\n\t\t<div class="loader-container">\n <descope-loader-radial size="xs" mode="primary"></descope-loader-radial>\n </div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper"),this.loaderContainer=this.querySelector(".loader-container")}renderInputs(){const e=[...Array(this.digits).keys()].map(e=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${e}\n\t\t\ttype="tel"\n\t\t\tautocomplete="one-time-code"\n\t\t\tinputMode="numeric"\n\t\t></descope-text-field>\n\t`);this.wrapperEle.innerHTML=e.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(e){e?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:e})=>e).join("")||""}set value(e){e!==this.value&&this.parseInputValue(this.inputs[0],Mn(e))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.pattern&&!new RegExp(this.pattern).test(this.value)?{patternMismatch:!0}:{}}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.inputs[0].focus()}),super.init?.(),this.renderInputs()}getInputIdx(e){return Number.parseInt(e.getAttribute("data-id"),10)}getNextInput(e){const t=this.getInputIdx(e),r=Math.min(t+1,this.inputs.length-1);return this.inputs[r]}getPrevInput(e){const t=this.getInputIdx(e),r=Math.max(t-1,0);return this.inputs[r]}fillDigits(e,t){for(let r=0;r<e.length;r+=1){t.value=e[r]??"";const o=this.getNextInput(t);if(o===t)break;t=o}In(t)}parseInputValue(e,t=""){const r=t.split("");r.length?this.fillDigits(r,e):e.value=""}initInputs(){this.inputs.forEach(e=>{N(`\n vaadin-text-field::part(input-field)::before {\n ${wn}: '';\n content: var(${xn}, var(${wn}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Cn}, none);\n align-items: center;\n justify-content: center;\n }`,e);const t=n()(t=>{this.parseInputValue(e,t),Sn(e)},0,{trailing:!0});e.addEventListener("input",r=>{e.value=Mn(e.value),e.value&&Sn(e,e.value[0]),setTimeout(()=>{"deleteContentBackward"===r?.inputType&&In(this.getPrevInput(e))}),t(e.value)}),e.onkeydown=({key:t})=>{"Backspace"===t?e.value?e.setSelectionRange(1,1):setTimeout(()=>In(this.getPrevInput(e)),0):1===t.length&&(e.value="")},Ye(this,e,{includeAttrs:Tn}),e.shadowRoot.querySelector("input").setAttribute("aria-label","passcode digit")}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&En.includes(e)&&("digits"===e&&this.renderInputs(),"loading"===e&&this.handleLoadingState("true"===r))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(zn,Wn);const _n=He("password"),{host:$n,inputField:Hn,inputElement:qn,inputElementPlaceholder:Yn,revealButtonContainer:Un,revealButtonIcon:Gn,label:Zn,requiredIndicator:Qn,errorMessage:Jn,helperText:Kn}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"> input"},inputElementPlaceholder:{selector:()=>":host input:placeholder-shown"},revealButtonContainer:{selector:"::part(reveal-button)"},revealButtonIcon:{selector:"::part(reveal-button)::before"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Xn=Be(Lt({mappings:{hostWidth:{...$n,property:"width"},hostMinWidth:{...$n,property:"min-width"},hostDirection:{...$n,property:"direction"},fontSize:[{},$n],fontFamily:[Zn,Hn,Jn,Kn],inputHeight:{...Hn,property:"height"},inputHorizontalPadding:[{...qn,property:"padding-left"},{...qn,property:"padding-right"}],inputBackgroundColor:{...Hn,property:"background-color"},inputBorderStyle:{...Hn,property:"border-style"},inputBorderWidth:{...Hn,property:"border-width"},inputBorderColor:{...Hn,property:"border-color"},inputBorderRadius:{...Hn,property:"border-radius"},inputOutlineColor:{...Hn,property:"outline-color"},inputOutlineStyle:{...Hn,property:"outline-style"},inputOutlineOffset:{...Hn,property:"outline-offset"},inputOutlineWidth:{...Hn,property:"outline-width"},labelFontSize:{...Zn,property:"font-size"},labelFontWeight:{...Zn,property:"font-weight"},labelTextColor:[{...Zn,property:"color"},{...Zn,property:"-webkit-text-fill-color"},{...Qn,property:"color"},{...Qn,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Qn,property:"content"},errorMessageTextColor:{...Jn,property:"color"},errorMessageIcon:{...Jn,property:"background-image"},errorMessageIconSize:{...Jn,property:"background-size"},errorMessageIconPadding:{...Jn,property:"padding-inline-start"},errorMessageIconRepeat:{...Jn,property:"background-repeat"},errorMessageIconPosition:{...Jn,property:"background-position"},errorMessageFontSize:{...Jn,property:"font-size"},inputPlaceholderTextColor:[{...Yn,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...qn,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...Un,property:"margin-right"},{...Un,property:"margin-left"}],revealButtonSize:{...Un,property:"font-size"},revealButtonColor:{...Gn,property:"color"},labelPosition:{...Zn,property:"position"},labelTopPosition:{...Zn,property:"top"},labelHorizontalPosition:[{...Zn,property:"left"},{...Zn,property:"right"}],inputTransformY:{...Zn,property:"transform"},inputTransition:{...Zn,property:"transition"},marginInlineStart:{...Zn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...qn,property:"opacity"}],inputVerticalAlignment:{...Hn,property:"align-items"},valueInputHeight:{...qn,property:"height"}}}),Nt,Kt({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),Ut({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Dt,e=>class extends e{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){super.init?.();const e=this.querySelector("input");e?.addEventListener("mousedown",t=>{if(this.isDraggable&&this.isReadOnly){e.setAttribute("inert","true");const r=t.target,o=r.getAttribute("type");r.setAttribute("type","text"),setTimeout(()=>{r.focus()});const i=t=>{r.setAttribute("type",o),e.removeAttribute("inert"),this.removeEventListener("mouseup",i),this.removeEventListener("dragend",i)};this.addEventListener("dragend",i,{once:!0}),this.addEventListener("mouseup",i,{once:!0})}})}},e=>class extends e{static get observedAttributes(){return["manual-visibility-toggle"]}get manualToggleVisibility(){return"true"===this.getAttribute("manual-visibility-toggle")}init(){super.init?.(),this.handleCaretOnVisibilityChange(),this.origSetPasswordVisible=this.baseElement._setPasswordVisible,this.origSetFocused=this.baseElement._setFocused,this.baseElement._setFocused=this.setFocus.bind(this),this.initExternalInput()}initExternalInput(){const e=this.createExternalInput();e&&this.handlePasswordVisibility(e)}get caretPosition(){return this.value?.length||0}handleCaretOnVisibilityChange(){const e=this.baseElement._togglePasswordVisibility.bind(this.baseElement);this.baseElement._togglePasswordVisibility=()=>{setTimeout(()=>(e(),this.inputElement.setSelectionRange(this.caretPosition,this.caretPosition),!1))}}setFocus(e){this.manualToggleVisibility&&(this.baseElement._setPasswordVisible=()=>{}),this.origSetFocused.call(this.baseElement,e),this.baseElement._setPasswordVisible=this.origSetPasswordVisible.bind(this.baseElement)}resetPasswordVisibilityToggle(){this.baseElement._setPasswordVisible=this.origSetPasswordVisible,this.baseElement._setFocused=this.origSetFocus}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r)}handlePasswordVisibility(e){const t=this.baseElement.__boundRevealButtonMouseDown;this.baseElement.querySelector("vaadin-password-field-button").removeEventListener("mousedown",t),this.baseElement._passwordVisibleChanged=()=>{},this.baseElement._togglePasswordVisibility=()=>{"password"===e.getAttribute("type")?this.showPasswordVisibility(e):this.hidePasswordVisibility(e)}}showPasswordVisibility(e){e.setAttribute("type","text"),this.setAttribute("password-visible","true")}hidePasswordVisibility(e){e.setAttribute("type","password"),this.setAttribute("password-visible","false")}})(Ft({slots:["","suffix"],wrappedEleName:"vaadin-password-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 10em;\n box-sizing: border-box;\n position: relative;\n\t\t\t}\n\t\t\t${at(Xn.cssVarList)}\n\t\t\t${dt("vaadin-password-field")}\n ${ht("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${Xn.cssVarList.inputOutlineColor});\n\t\t\t}\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n ::part(reveal-button) {\n align-self: center;\n }\n\n vaadin-password-field[external-input="true"] > input:not(:placeholder-shown) {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:_n}));customElements.define(_n,Xn);const ea=He("text-area"),{host:ta,label:ra,placeholder:oa,inputField:ia,textArea:na,requiredIndicator:aa,helperText:sa,errorMessage:la}={host:{selector:()=>":host"},label:{selector:"::part(label)"},placeholder:{selector:"textarea:placeholder-shown"},inputField:{selector:"::part(input-field)"},textArea:{selector:"> textarea"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},da=Be(Lt({mappings:{hostWidth:{...ta,property:"width"},hostMinWidth:{...ta,property:"min-width"},hostDirection:{...ta,property:"direction"},fontSize:[ta,na],fontFamily:[ra,ia,sa,la],labelTextColor:[{...ra,property:"color"},{...ra,property:"-webkit-text-fill-color"},{...aa,property:"color"}],labelRequiredIndicator:{...aa,property:"content"},errorMessageTextColor:{...la,property:"color"},errorMessageIcon:{...la,property:"background-image"},errorMessageIconSize:{...la,property:"background-size"},errorMessageIconPadding:{...la,property:"padding-inline-start"},errorMessageIconRepeat:{...la,property:"background-repeat"},errorMessageIconPosition:{...la,property:"background-position"},errorMessageFontSize:{...la,property:"font-size"},inputBackgroundColor:{...ia,property:"background-color"},inputValueTextColor:{...na,property:"color"},inputPlaceholderTextColor:{...oa,property:"color"},inputBorderWidth:{...ia,property:"border-width"},inputBorderStyle:{...ia,property:"border-style"},inputBorderColor:{...ia,property:"border-color"},inputBorderRadius:{...ia,property:"border-radius"},inputOutlineStyle:{...ia,property:"outline-Style"},inputOutlineColor:{...ia,property:"outline-color"},inputOutlineOffset:{...ia,property:"outline-offset"},inputOutlineWidth:{...ia,property:"outline-width"},inputResizeType:{...na,property:"resize"},inputMinHeight:{...na,property:"min-height"},inputTextAlign:{...na,property:"text-align"}}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt)(Ft({slots:[],wrappedEleName:"vaadin-text-area",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n box-sizing: border-box;\n\t\t\t}\n\t\t\ttextarea {\n\t\t\t\theight: 100%;\n\t\t\t}\n ${ht("vaadin-text-area")}\n\t\t\t${at(da.cssVarList)}\n\t\t\t${st("vaadin-text-area")}\n\t\t\t${lt("vaadin-text-area")}\n\t\t\t${ct("vaadin-text-area","textarea")}\n\t\t\t${dt("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:ea}));customElements.define(ea,da);var ca=[{name:"United States",dialCode:"+1",code:"US"},...[{name:"Afghanistan",dialCode:"+93",code:"AF"},{name:"Aland Islands",dialCode:"+358",code:"AX"},{name:"Albania",dialCode:"+355",code:"AL"},{name:"Algeria",dialCode:"+213",code:"DZ"},{name:"AmericanSamoa",dialCode:"+1684",code:"AS"},{name:"Andorra",dialCode:"+376",code:"AD"},{name:"Angola",dialCode:"+244",code:"AO"},{name:"Anguilla",dialCode:"+1264",code:"AI"},{name:"Antarctica",dialCode:"+672",code:"AQ"},{name:"Antigua and Barbuda",dialCode:"+1268",code:"AG"},{name:"Argentina",dialCode:"+54",code:"AR"},{name:"Armenia",dialCode:"+374",code:"AM"},{name:"Aruba",dialCode:"+297",code:"AW"},{name:"Australia",dialCode:"+61",code:"AU"},{name:"Austria",dialCode:"+43",code:"AT"},{name:"Azerbaijan",dialCode:"+994",code:"AZ"},{name:"Bahamas",dialCode:"+1242",code:"BS"},{name:"Bahrain",dialCode:"+973",code:"BH"},{name:"Bangladesh",dialCode:"+880",code:"BD"},{name:"Barbados",dialCode:"+1246",code:"BB"},{name:"Belarus",dialCode:"+375",code:"BY"},{name:"Belgium",dialCode:"+32",code:"BE"},{name:"Belize",dialCode:"+501",code:"BZ"},{name:"Benin",dialCode:"+229",code:"BJ"},{name:"Bermuda",dialCode:"+1441",code:"BM"},{name:"Bhutan",dialCode:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dialCode:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dialCode:"+387",code:"BA"},{name:"Botswana",dialCode:"+267",code:"BW"},{name:"Brazil",dialCode:"+55",code:"BR"},{name:"British Indian Ocean Territory",dialCode:"+246",code:"IO"},{name:"Brunei Darussalam",dialCode:"+673",code:"BN"},{name:"Bulgaria",dialCode:"+359",code:"BG"},{name:"Burkina Faso",dialCode:"+226",code:"BF"},{name:"Burundi",dialCode:"+257",code:"BI"},{name:"Cambodia",dialCode:"+855",code:"KH"},{name:"Cameroon",dialCode:"+237",code:"CM"},{name:"Canada",dialCode:"+1",code:"CA"},{name:"Cape Verde",dialCode:"+238",code:"CV"},{name:"Cayman Islands",dialCode:"+345",code:"KY"},{name:"Central African Republic",dialCode:"+236",code:"CF"},{name:"Chad",dialCode:"+235",code:"TD"},{name:"Chile",dialCode:"+56",code:"CL"},{name:"China",dialCode:"+86",code:"CN"},{name:"Christmas Island",dialCode:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dialCode:"+61",code:"CC"},{name:"Colombia",dialCode:"+57",code:"CO"},{name:"Comoros",dialCode:"+269",code:"KM"},{name:"Congo",dialCode:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dialCode:"+243",code:"CD"},{name:"Cook Islands",dialCode:"+682",code:"CK"},{name:"Costa Rica",dialCode:"+506",code:"CR"},{name:"Cote d'Ivoire",dialCode:"+225",code:"CI"},{name:"Croatia",dialCode:"+385",code:"HR"},{name:"Cuba",dialCode:"+53",code:"CU"},{name:"Cyprus",dialCode:"+357",code:"CY"},{name:"Czech Republic",dialCode:"+420",code:"CZ"},{name:"Denmark",dialCode:"+45",code:"DK"},{name:"Djibouti",dialCode:"+253",code:"DJ"},{name:"Dominica",dialCode:"+1767",code:"DM"},{name:"Dominican Republic",dialCode:"+1849",code:"DO"},{name:"Ecuador",dialCode:"+593",code:"EC"},{name:"Egypt",dialCode:"+20",code:"EG"},{name:"El Salvador",dialCode:"+503",code:"SV"},{name:"Equatorial Guinea",dialCode:"+240",code:"GQ"},{name:"Eritrea",dialCode:"+291",code:"ER"},{name:"Estonia",dialCode:"+372",code:"EE"},{name:"Ethiopia",dialCode:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dialCode:"+500",code:"FK"},{name:"Faroe Islands",dialCode:"+298",code:"FO"},{name:"Fiji",dialCode:"+679",code:"FJ"},{name:"Finland",dialCode:"+358",code:"FI"},{name:"France",dialCode:"+33",code:"FR"},{name:"French Guiana",dialCode:"+594",code:"GF"},{name:"French Polynesia",dialCode:"+689",code:"PF"},{name:"Gabon",dialCode:"+241",code:"GA"},{name:"Gambia",dialCode:"+220",code:"GM"},{name:"Georgia",dialCode:"+995",code:"GE"},{name:"Germany",dialCode:"+49",code:"DE"},{name:"Ghana",dialCode:"+233",code:"GH"},{name:"Gibraltar",dialCode:"+350",code:"GI"},{name:"Greece",dialCode:"+30",code:"GR"},{name:"Greenland",dialCode:"+299",code:"GL"},{name:"Grenada",dialCode:"+1473",code:"GD"},{name:"Guadeloupe",dialCode:"+590",code:"GP"},{name:"Guam",dialCode:"+1671",code:"GU"},{name:"Guatemala",dialCode:"+502",code:"GT"},{name:"Guernsey",dialCode:"+44",code:"GG"},{name:"Guinea",dialCode:"+224",code:"GN"},{name:"Guinea-Bissau",dialCode:"+245",code:"GW"},{name:"Guyana",dialCode:"+595",code:"GY"},{name:"Haiti",dialCode:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dialCode:"+379",code:"VA"},{name:"Honduras",dialCode:"+504",code:"HN"},{name:"Hong Kong",dialCode:"+852",code:"HK"},{name:"Hungary",dialCode:"+36",code:"HU"},{name:"Iceland",dialCode:"+354",code:"IS"},{name:"India",dialCode:"+91",code:"IN"},{name:"Indonesia",dialCode:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dialCode:"+98",code:"IR"},{name:"Iraq",dialCode:"+964",code:"IQ"},{name:"Ireland",dialCode:"+353",code:"IE"},{name:"Isle of Man",dialCode:"+44",code:"IM"},{name:"Israel",dialCode:"+972",code:"IL"},{name:"Italy",dialCode:"+39",code:"IT"},{name:"Jamaica",dialCode:"+1876",code:"JM"},{name:"Japan",dialCode:"+81",code:"JP"},{name:"Jersey",dialCode:"+44",code:"JE"},{name:"Jordan",dialCode:"+962",code:"JO"},{name:"Kazakhstan",dialCode:"+77",code:"KZ"},{name:"Kenya",dialCode:"+254",code:"KE"},{name:"Kiribati",dialCode:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dialCode:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dialCode:"+82",code:"KR"},{name:"Kuwait",dialCode:"+965",code:"KW"},{name:"Kyrgyzstan",dialCode:"+996",code:"KG"},{name:"Laos",dialCode:"+856",code:"LA"},{name:"Latvia",dialCode:"+371",code:"LV"},{name:"Lebanon",dialCode:"+961",code:"LB"},{name:"Lesotho",dialCode:"+266",code:"LS"},{name:"Liberia",dialCode:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dialCode:"+218",code:"LY"},{name:"Liechtenstein",dialCode:"+423",code:"LI"},{name:"Lithuania",dialCode:"+370",code:"LT"},{name:"Luxembourg",dialCode:"+352",code:"LU"},{name:"Macao",dialCode:"+853",code:"MO"},{name:"Macedonia",dialCode:"+389",code:"MK"},{name:"Madagascar",dialCode:"+261",code:"MG"},{name:"Malawi",dialCode:"+265",code:"MW"},{name:"Malaysia",dialCode:"+60",code:"MY"},{name:"Maldives",dialCode:"+960",code:"MV"},{name:"Mali",dialCode:"+223",code:"ML"},{name:"Malta",dialCode:"+356",code:"MT"},{name:"Marshall Islands",dialCode:"+692",code:"MH"},{name:"Martinique",dialCode:"+596",code:"MQ"},{name:"Mauritania",dialCode:"+222",code:"MR"},{name:"Mauritius",dialCode:"+230",code:"MU"},{name:"Mayotte",dialCode:"+262",code:"YT"},{name:"Mexico",dialCode:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dialCode:"+691",code:"FM"},{name:"Moldova",dialCode:"+373",code:"MD"},{name:"Monaco",dialCode:"+377",code:"MC"},{name:"Mongolia",dialCode:"+976",code:"MN"},{name:"Montenegro",dialCode:"+382",code:"ME"},{name:"Montserrat",dialCode:"+1664",code:"MS"},{name:"Morocco",dialCode:"+212",code:"MA"},{name:"Mozambique",dialCode:"+258",code:"MZ"},{name:"Myanmar",dialCode:"+95",code:"MM"},{name:"Namibia",dialCode:"+264",code:"NA"},{name:"Nauru",dialCode:"+674",code:"NR"},{name:"Nepal",dialCode:"+977",code:"NP"},{name:"Netherlands",dialCode:"+31",code:"NL"},{name:"Netherlands Antilles",dialCode:"+599",code:"AN"},{name:"New Caledonia",dialCode:"+687",code:"NC"},{name:"New Zealand",dialCode:"+64",code:"NZ"},{name:"Nicaragua",dialCode:"+505",code:"NI"},{name:"Niger",dialCode:"+227",code:"NE"},{name:"Nigeria",dialCode:"+234",code:"NG"},{name:"Niue",dialCode:"+683",code:"NU"},{name:"Norfolk Island",dialCode:"+672",code:"NF"},{name:"Northern Mariana Islands",dialCode:"+1670",code:"MP"},{name:"Norway",dialCode:"+47",code:"NO"},{name:"Oman",dialCode:"+968",code:"OM"},{name:"Pakistan",dialCode:"+92",code:"PK"},{name:"Palau",dialCode:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dialCode:"+970",code:"PS"},{name:"Panama",dialCode:"+507",code:"PA"},{name:"Papua New Guinea",dialCode:"+675",code:"PG"},{name:"Paraguay",dialCode:"+595",code:"PY"},{name:"Peru",dialCode:"+51",code:"PE"},{name:"Philippines",dialCode:"+63",code:"PH"},{name:"Pitcairn",dialCode:"+872",code:"PN"},{name:"Poland",dialCode:"+48",code:"PL"},{name:"Portugal",dialCode:"+351",code:"PT"},{name:"Qatar",dialCode:"+974",code:"QA"},{name:"Romania",dialCode:"+40",code:"RO"},{name:"Russia",dialCode:"+7",code:"RU"},{name:"Rwanda",dialCode:"+250",code:"RW"},{name:"Reunion",dialCode:"+262",code:"RE"},{name:"Saint Barthelemy",dialCode:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dialCode:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dialCode:"+1869",code:"KN"},{name:"Saint Lucia",dialCode:"+1758",code:"LC"},{name:"Saint Martin",dialCode:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dialCode:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dialCode:"+1784",code:"VC"},{name:"Samoa",dialCode:"+685",code:"WS"},{name:"San Marino",dialCode:"+378",code:"SM"},{name:"Sao Tome and Principe",dialCode:"+239",code:"ST"},{name:"Saudi Arabia",dialCode:"+966",code:"SA"},{name:"Senegal",dialCode:"+221",code:"SN"},{name:"Serbia",dialCode:"+381",code:"RS"},{name:"Seychelles",dialCode:"+248",code:"SC"},{name:"Sierra Leone",dialCode:"+232",code:"SL"},{name:"Singapore",dialCode:"+65",code:"SG"},{name:"Slovakia",dialCode:"+421",code:"SK"},{name:"Slovenia",dialCode:"+386",code:"SI"},{name:"Solomon Islands",dialCode:"+677",code:"SB"},{name:"Somalia",dialCode:"+252",code:"SO"},{name:"South Africa",dialCode:"+27",code:"ZA"},{name:"South Sudan",dialCode:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dialCode:"+500",code:"GS"},{name:"Spain",dialCode:"+34",code:"ES"},{name:"Sri Lanka",dialCode:"+94",code:"LK"},{name:"Sudan",dialCode:"+249",code:"SD"},{name:"Suriname",dialCode:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dialCode:"+47",code:"SJ"},{name:"Swaziland",dialCode:"+268",code:"SZ"},{name:"Sweden",dialCode:"+46",code:"SE"},{name:"Switzerland",dialCode:"+41",code:"CH"},{name:"Syrian Arab Republic",dialCode:"+963",code:"SY"},{name:"Taiwan",dialCode:"+886",code:"TW"},{name:"Tajikistan",dialCode:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dialCode:"+255",code:"TZ"},{name:"Thailand",dialCode:"+66",code:"TH"},{name:"Timor-Leste",dialCode:"+670",code:"TL"},{name:"Togo",dialCode:"+228",code:"TG"},{name:"Tokelau",dialCode:"+690",code:"TK"},{name:"Tonga",dialCode:"+676",code:"TO"},{name:"Trinidad and Tobago",dialCode:"+1868",code:"TT"},{name:"Tunisia",dialCode:"+216",code:"TN"},{name:"Turkey",dialCode:"+90",code:"TR"},{name:"Turkmenistan",dialCode:"+993",code:"TM"},{name:"Turks and Caicos Islands",dialCode:"+1649",code:"TC"},{name:"Tuvalu",dialCode:"+688",code:"TV"},{name:"Uganda",dialCode:"+256",code:"UG"},{name:"Ukraine",dialCode:"+380",code:"UA"},{name:"United Arab Emirates",dialCode:"+971",code:"AE"},{name:"United Kingdom",dialCode:"+44",code:"GB"},{name:"Uruguay",dialCode:"+598",code:"UY"},{name:"Uzbekistan",dialCode:"+998",code:"UZ"},{name:"Vanuatu",dialCode:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dialCode:"+58",code:"VE"},{name:"Vietnam",dialCode:"+84",code:"VN"},{name:"Virgin Islands, British",dialCode:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dialCode:"+1340",code:"VI"},{name:"Wallis and Futuna",dialCode:"+681",code:"WF"},{name:"Yemen",dialCode:"+967",code:"YE"},{name:"Zambia",dialCode:"+260",code:"ZM"},{name:"Zimbabwe",dialCode:"+263",code:"ZW"}].sort((e,t)=>e.name<t.name?-1:1)];const pa=({code:e,dialCode:t,name:r})=>`\n\t<div\n\t\tdata-id="${t}"\n\t\tdata-name="${e} ${t} ${r}"\n\t\tdata-country-code="${e}"\n\t>\n\t\t<div>\n\t\t\t<span>\n\t\t\t\t<img src="${(e=>`https://static.descope.com/npm/svg-country-flags@1.2.10/svg/${e.toLowerCase()}.svg`)(e)}" width="20"/>\n\t\t\t</span>\n\t\t\t<span>${r}</span>\n\t\t</div>\n\t\t<div>\n\t\t\t<span>${e}</span>\n\t\t\t<span>${t}</span>\n\t\t</div>\n\t</div>\n`,ua=e=>{const t=e||"";let r="",o="";const i=(0,p.l)(t);if(i)i.countryCallingCode&&(r=`+${i.countryCallingCode}`),i.nationalNumber&&(o=i.nationalNumber);else{const[e,i]=t.split("-");r=e||"",o=i||""}return[r,o]},ha=He("phone-field-internal"),ma=["disabled","size","bordered","readonly"],ga=["country-input-placeholder","default-code","restrict-countries"],ba=["phone-input-placeholder","maxlength","autocomplete","name"],ya=["label-type","country-input-label","label"],fa={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder"},va=[].concat(ma,ga,ba,ya),xa=er({componentName:ha,baseSelector:"div"});customElements.define(ha,class extends xa{static get observedAttributes(){return[].concat(xa.observedAttributes||[],va)}#pe;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n >\n ${ca.map(e=>pa(e)).join("")}\n </descope-combo-box>\n <div class="separator"></div>\n <descope-text-field type="tel"></descope-text-field>\n </div>\n `,this.comboBox=this.querySelector("descope-combo-box"),this.textField=this.querySelector("descope-text-field"),this.inputs=[this.comboBox,this.textField],Ye(this,this.comboBox,{includeAttrs:["label-type"]}),Ye(this,this.textField,{includeAttrs:["label-type","required"]}),this.comboBox.customValueTransformFn=e=>{const[,t]=e?.split?.(" ")||[];return t}}get countryCodeInputData(){return this.comboBox.items}get countryCodeValue(){return this.comboBox.shadowRoot.querySelector("input").value}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get defaultCode(){return this.getAttribute("default-code")}get selectionStart(){return this.textField.selectionStart}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get selectedCountryCode(){return this.comboBox?.selectedItem?.getAttribute("data-country-code")}get restrictCountries(){const e=this.getAttribute("restrict-countries");return e?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){if(!this.comboBox.value||!this.textField.value)return"";const[e,t]=ua(`${this.comboBox.value}-${this.textField.value}`);return`${e||this.comboBox.value}-${t||this.textField.value}`}set value(e){const[t,r]=ua(e);this.#ue(t),this.#he(r)}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#me()}getValidity(){const e=this.comboBox.value,t=this.textField.value,r=!e||!t,o=t&&t.length>=this.minLength;if(this.isRequired&&r)return{valueMissing:!0};if(this.value){if(!o)return{tooShort:!0};if(this.isStrictValidation&&!this.#ge())return{patternMismatch:!0}}return{}}setSelectionRange(...e){this.textField.setSelectionRange(...e)}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),t!==r){if("default-code"===e&&r)this.#be(r);else if(va.includes(e)){const t=fa[e]||e;ma.includes(e)?this.inputs.forEach(e=>e.setAttribute(t,r)):ga.includes(e)?this.comboBox.setAttribute(t,r):ba.includes(e)&&this.textField.setAttribute(t,r)}ya.includes(e)&&this.#ye(e,r),"restrict-countries"===e&&this.#fe(this.restrictCountries)}}#me(){this.textField.addEventListener("input",e=>{if(!this.allowAlphanumericInput){const t=/^\d$/,r=e.target.value.split("").filter(e=>t.test(e)).join("");e.target.value=r}}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching(),this.addEventListener("input",this.#ve.bind(this))}#ue(e){if(!e||e===this.selectedCountryCode)return;let t;if(this.value){const r=this.#xe(`${e}-${this.textField.value}`);t=this.#Ce(r)}t||(t=this.#we(e)),this.comboBox.selectedItem=t}#he(e){this.isFormatValue&&(e=this.#Ie(e)),this.textField.value!==e&&(this.textField.value=e)}#Ie(e=""){return this.#pe&&this.#pe.country===this.selectedCountryCode||(this.#pe=new u.Q(this.selectedCountryCode)),this.#pe.reset(),this.#pe.input(e)||e}#ge(){const e=(0,p.l)(this.value);return!!(e&&e.isValid?.()&&e.country&&this.#Me(e.country))}#Me(e){return!this.restrictCountries.length||this.restrictCountries.includes(e)}#we(e){return this.comboBox.items?.find(t=>t.getAttribute("data-id")===e)||void 0}#Ce(e){return this.comboBox.items?.find(t=>t.getAttribute("data-country-code")===e)}#xe(e){if(!e)return;const t=(0,p.l)(e);if(!t?.country)return;const r=this.#Ce(t.country);return r?.getAttribute("data-country-code")}#fe(e){const t=e.length?ca.filter(t=>e.includes(t.code)):ca;this.querySelector("descope-combo-box").innerHTML=t.map(e=>pa(e)).join("")}#be(e){if(!this.comboBox.value){const t=this.#Ce(e);t&&setTimeout(()=>{this.comboBox.selectedItem=t})}}#ve(){if(!this.value)return;const e=this.#xe(this.value);if(e&&this.selectedCountryCode!==e){const t=this.#Ce(e);t&&(this.comboBox.selectedItem=t)}}#ye(e,t){const r=fa[e]||e;"label-type"===e?this.#Se(t):"floating"===this.getAttribute("label-type")&&("country-input-label"===e?this.comboBox.setAttribute(r,t):"label"===e&&this.textField.setAttribute(r,t))}#Se(e){"floating"===e?(this.comboBox.setAttribute("label",this.getAttribute("country-input-label")||""),this.comboBox.setAttribute("placeholder",this.getAttribute("country-input-placeholder")||""),this.textField.setAttribute("label",this.getAttribute("label")||""),this.textField.setAttribute("placeholder",this.getAttribute("phone-input-placeholder")||"")):this.inputs.forEach(e=>e.removeAttribute("label"))}});const Ca=ji.cssVarList,wa=co.cssVarList,Ia=He("phone-field"),{host:Ma,label:Sa,requiredIndicator:Aa,inputField:Ea,internalAfter:Ta,countryCodeInput:ka,phoneInput:za,separator:La,errorMessage:Na,helperText:Da}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},internalAfter:{selector:"descope-phone-field-internal::after"},phoneInput:{selector:()=>"descope-text-field"},countryCodeInput:{selector:()=>"descope-combo-box"},separator:{selector:"descope-phone-field-internal .separator"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Va=Be(Lt({mappings:{fontSize:[Ma,Ea,{selector:ji.componentName,property:ji.cssVarList.fontSize},{selector:co.componentName,property:co.cssVarList.fontSize}],fontFamily:[Sa,Na,Da,{...ka,property:co.cssVarList.overlay.fontFamily}],hostWidth:[{...Ma,property:"width"},{...za,property:"width"},{...ka,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Ma,property:"direction"},inputBorderStyle:[{...Ta,property:"border-style"},{...La,property:"border-left-style"}],inputBorderWidth:[{...Ta,property:"border-width"},{...La,property:"border-left-width"}],inputBorderColor:[{...Ta,property:"border-color"},{...La,property:"border-left-color"}],inputBorderRadius:[{...Ea,property:"border-radius"},{...Ta,property:"border-radius"}],countryCodeInputWidth:{...ka,property:wa.hostWidth},countryCodeDropdownWidth:{...ka,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...za,property:"width"},horizontalPadding:[{...za,property:"padding-left"},{...za,property:"padding-right"},{...ka,property:"padding-left"},{...ka,property:"padding-right"}],labelTextColor:[{...Sa,property:"color"},{...Sa,property:"-webkit-text-fill-color"},{...Aa,property:"color"}],labelRequiredIndicator:{...Aa,property:"content"},errorMessageTextColor:{...Na,property:"color"},errorMessageIcon:{...Na,property:"background-image"},errorMessageIconSize:{...Na,property:"background-size"},errorMessageIconPadding:{...Na,property:"padding-inline-start"},errorMessageIconRepeat:{...Na,property:"background-repeat"},errorMessageIconPosition:{...Na,property:"background-position"},errorMessageFontSize:{...Na,property:"font-size"},inputValueTextColor:[{...za,property:Ca.inputValueTextColor},{...ka,property:wa.inputValueTextColor}],inputPlaceholderTextColor:{...za,property:Ca.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:wa.overlayItemBackgroundColor},inputOutlineStyle:{...Ea,property:"outline-style"},inputOutlineColor:{...Ea,property:"outline-color"},inputOutlineWidth:{...Ea,property:"outline-width"},inputOutlineOffset:{...Ea,property:"outline-offset"},valueInputHeight:[{...ka,property:wa.valueInputHeight}],valueInputMarginBottom:[{...za,property:Ca.valueInputMarginBottom}],marginInlineStart:[{...za,property:Ca.marginInlineStart},{...ka,property:wa.marginInlineStart}]}}),Nt,Xt,Ut({proxyProps:["value","selectionStart"]}),e=>class extends e{static get CountryCodes(){return ca}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n\t\t\t\t<${ha}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${ha}>\n \t\t`,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ha),Ye(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","minlength","maxlength","default-code","country-input-placeholder","phone-input-placeholder","disabled","restrict-countries","country-input-label","readonly","label","label-type","allow-alphanumeric-input","format-value","strict-validation"]})}get countryCodeItems(){return this.inputElement?.countryCodeValue}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}get countryCodeInputData(){return this.inputElement?.countryCodeInputData}get countryCodes(){return Array.from(this.inputElement.countryCodeInputData).map(e=>e.getAttribute("data-country-code"))}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 15em;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\t${at(Va.cssVarList)}\n\t\t\t${dt("vaadin-text-field")}\n\t\t\t${pt("vaadin-text-field")}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n\t\t\tdiv {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\tvaadin-text-field {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\t\t\tvaadin-text-field::part(label) {\n margin-left: 0;\n margin-right: 0;\n }\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tpadding: 0;\n\t\t\t\tbackground: transparent;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t\tdescope-phone-field-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n direction: ltr;\n position: relative;\n\t\t\t}\n descope-phone-field-internal::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n outline-offset: calc(var(${Va.cssVarList.inputBorderWidth}) * -1);\n pointer-events: none;\n }\n\t\t\tdescope-phone-field-internal > div {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\tdescope-phone-field-internal .separator {\n\t\t\t\tflex: 0;\n\t\t\t\tborder: none;\n\t\t\t}\n\n\t\t\tdescope-combo-box {\n\t\t\t\tflex-shrink: 0;\n min-width: 5.75em;\n\t\t\t\t${wa.inputOutlineWidth}: 0;\n\t\t\t\t${wa.inputOutlineOffset}: 0;\n\t\t\t\t${wa.inputBorderWidth}: 0;\n\t\t\t\t${wa.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Ca.inputOutlineWidth}: 0;\n\t\t\t\t${Ca.inputOutlineOffset}: 0;\n\t\t\t\t${Ca.inputBorderWidth}: 0;\n\t\t\t\t${Ca.inputBorderRadius}: 0;\n }\n\n :host([label-type="floating"]) vaadin-text-field::part(label) {\n display: none;\n }\n descope-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n descope-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tborder: none;\n\t\t\t}\n ${ht("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ia}));customElements.define(Ia,Va);const Pa=He("phone-field-internal-input-box"),Ba=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type"],Ra={"phone-input-placeholder":"placeholder"},Oa=er({componentName:Pa,baseSelector:"div"});customElements.define(Pa,class extends Oa{static get observedAttributes(){return[].concat(Oa.observedAttributes||[],Ba)}#pe;constructor(){super(),this.innerHTML='\n <div>\n <descope-text-field tabindex="1" type="tel" bordered="false"></descope-text-field>\n </div>\n ',this.textField=this.querySelector("descope-text-field")}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get defaultDialCode(){return e=this.getAttribute("default-code"),ca.find(t=>t.code===e)?.dialCode;var e}get defaultCode(){return this.getAttribute("default-code")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get maxLength(){return parseInt(this.getAttribute("maxlength"),10)||50}get restrictCountries(){return this.getAttribute("restrict-countries")?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){if(!this.textField.value)return"";if(!this.isStrictValidation)return this.#Ae();const e=this.#Ee();return e?.country&&e?.countryCallingCode&&e?.nationalNumber?`+${[e?.countryCallingCode,e?.nationalNumber].join("-")}`:this.textField.value}set value(e){this.textField.value=e}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#Te.bind(this)),this.handleFocusEventsDispatching([this.textField])}getValidity(){const e=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,t=this.#ke(this.textField.value||"");if(this.isRequired&&!this.textField.value)return{valueMissing:!0};if(this.textField.value){if(t.length<this.minLength)return{tooShort:!0};if(this.isStrictValidation&&this.textField.value&&!this.#ge()||!this.isStrictValidation&&this.textField.value&&!e.test(this.value))return{patternMismatch:!0}}return{}}setSelectionRange(...e){this.textField.setSelectionRange(...e)}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),t!==r&&Ba.includes(e)){const t=Ra[e]||e;this.textField.setAttribute(t,r)}}#Te(e){let t=this.#ze(e.target.value);this.isFormatValue&&this.#Le(t)&&(t=this.#Ne(t)),e.target.value=t}#Ae(){if(!this.defaultDialCode)return this.textField.value;const e=this.#De(this.textField.value),t=this.#ke(e);return[this.defaultDialCode,t].join("-")}#Ee(){return this.defaultDialCode?(0,p.l)([this.defaultDialCode,this.#ke(this.textField.value)].filter(Boolean).join("")):(0,p.l)(this.textField.value)}#ke(e){return e.replace(/\D/g,"")}#De(e){if("+"===this.textField.value?.[0]){const t=new RegExp(`^\\${this.defaultDialCode}`);return e.replace(t,"")}return e}#ge(){const e=(0,p.l)(this.value);return!(!e||!e.isValid?.()||!e.country||!this.#Me(e.country)||this.defaultCode&&this.defaultCode!==e.country)}#Me(e){return!this.restrictCountries.length||this.restrictCountries.includes(e)}#ze(e){if(e=e.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const t=/^[+\d-\(\)]+$/;e=e.split("").filter(e=>t.test(e)).join("")}return e}#Ne(e=""){const t=this.defaultCode||this.#Ve(e);return t?(this.#pe&&this.#pe.country===t||(this.#pe=new u.Q(t)),this.#pe.reset(),this.#pe.input(e)||e):e}#Ve(e){const t=(0,p.l)(e);return t?.country||""}#Le(e){return!!(e=>{const t=e.match(/\(/g),r=e.match(/\)/g);return t?.length===r?.length})(e)}});const ja=ji.cssVarList,Fa=He("phone-input-box-field"),{host:Wa,label:_a,inputElement:$a,requiredIndicator:Ha,inputField:qa,internalComponent:Ya,internalComponentAfter:Ua,phoneInput:Ga,errorMessage:Za,helperText:Qa}={host:{selector:()=>":host"},label:{selector:"::part(label)"},inputElement:{selector:"input"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:()=>"vaadin-text-field::part(input-field)"},internalComponent:{selector:"descope-phone-field-internal-input-box"},internalComponentAfter:{selector:"descope-phone-field-internal-input-box::after"},phoneInput:{selector:()=>"descope-text-field"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ja=Be(Lt({mappings:{fontSize:[Wa,qa,{selector:ji.componentName,property:ji.cssVarList.fontSize}],fontFamily:[_a,Za,Qa],hostWidth:{...Wa,property:"width"},hostMinWidth:{...Wa,property:"min-width"},hostDirection:{...Wa,property:"direction"},inputHorizontalPadding:[{...Ga,property:"padding-left"},{...Ga,property:"padding-right"}],labelFontSize:{..._a,property:"font-size"},labelFontWeight:{..._a,property:"font-weight"},labelTextColor:[{..._a,property:"color"},{..._a,property:"-webkit-text-fill-color"},{...Ha,property:"color"}],labelRequiredIndicator:{...Ha,property:"content"},errorMessageTextColor:{...Za,property:"color"},errorMessageIcon:{...Za,property:"background-image"},errorMessageIconSize:{...Za,property:"background-size"},errorMessageIconPadding:{...Za,property:"padding-inline-start"},errorMessageIconRepeat:{...Za,property:"background-repeat"},errorMessageIconPosition:{...Za,property:"background-position"},errorMessageFontSize:{...Za,property:"font-size"},inputValueTextColor:{...Ga,property:ja.inputValueTextColor},inputPlaceholderTextColor:{...Ga,property:ja.inputPlaceholderColor},inputBorderStyle:{...Ua,property:"border-style"},inputBorderWidth:{...Ua,property:"border-width"},inputBorderColor:{...Ua,property:"border-color"},inputBorderRadius:[{...Ya,property:"border-radius"},{...Ua,property:"border-radius"}],inputOutlineStyle:{...Ya,property:"outline-style"},inputOutlineColor:{...Ya,property:"outline-color"},inputOutlineWidth:{...Ya,property:"outline-width"},inputOutlineOffset:{...Ya,property:"outline-offset"},labelPosition:{..._a,property:"position"},labelTopPosition:{..._a,property:"top"},labelHorizontalPosition:[{..._a,property:"left"},{..._a,property:"right"}],inputTransformY:{..._a,property:"transform"},inputTransition:{..._a,property:"transition"},marginInlineStart:{..._a,property:"margin-inline-start"},valueInputHeight:{...$a,property:"height"},valueInputMarginBottom:{selector:ji.componentName,property:ja.valueInputMarginBottom}}}),Nt,Xt,Ut({proxyProps:["value","selectionStart"]}),e=>class extends e{static get CountryCodes(){return ca}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n\t\t\t\t<${Pa}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Pa}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Pa),Ye(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","minlength","maxlength","default-code","disabled","phone-input-placeholder","label","label-type","allow-alphanumeric-input","restrict-countries","format-value","strict-validation","data-errormessage-type-mismatch"]})}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${at(Ja.cssVarList)}\n ${dt("vaadin-text-field")}\n ${pt("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n }\n descope-phone-field-internal-input-box descope-text-field {\n ${ja.inputOutlineWidth}: 0;\n ${ja.inputOutlineOffset}: 0;\n }\n descope-phone-field-internal-input-box::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n pointer-events: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] input:placeholder-shown {\n opacity: 0;\n }\n\n ${ht("vaadin-text-field")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Fa}));customElements.define(Fa,Ja);const Ka=He("new-password-internal"),Xa=(e,t)=>e.replace(/{{(\w+)+}}/g,(e,r)=>t?.[r]||e),es=He("policy-validation"),ts=["data","active-policies","overrides","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-actual-passwordstrength"],rs=["label","value",...ts];class os extends(Ot({componentName:es,baseSelector:":host > div"})){#Pe;#Be=[];#Re;static get observedAttributes(){return rs}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n\t\t',N("\n :host > div {\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .label {\n max-width: 100%;\n text-wrap: wrap;\n overflow-wrap: break-word;\n }\n .hide-label .label {\n display: none;\n }\n ul {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n }\n ul, li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n li::before {\n display: inline-block;\n width: 1em;\n text-align: center;\n }\n ",this),this.panel=this.shadowRoot.querySelector(":host > div"),this.label=this.shadowRoot.querySelector(".label"),this.list=this.shadowRoot.querySelector("ul")}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback?.(e,t,r),t!==r){if("label"===e&&this.updateLabel(r),ts.includes(e)){if("data"===e)try{this.availablePolicies=JSON.parse(r)}catch{console.error("Failed to set available policies")}if("active-policies"===e&&(this.#Be=(r||"").split(",")),"data-password-policy-value-minlength"===e){const e=Number(r);!Number.isNaN(e)&&e>0&&(this.#Re={...this.#Re,minlength:{value:`${e}`}})}if("data-password-policy-value-passwordstrength"===e){const e=parseInt(r);!Number.isNaN(e)&&e>=0&&(this.#Re={...this.#Re,passwordstrength:{...this.#Re?.passwordstrength,expected:e}})}if("data-password-policy-actual-passwordstrength"===e){const e=Number(r);!Number.isNaN(e)&&e>=0&&(this.#Re={...this.#Re,passwordstrength:{...this.#Re?.passwordstrength,actual:e}})}}this.renderItems(this.#Pe,this.#Be,this.#Re)}}get availablePolicies(){return this.#Pe||[]}set availablePolicies(e){this.#Pe=e}get value(){return this.getAttribute("value")||""}getStrengthScore(){return this.value.length}compareValues(e,t,r){switch(e.toUpperCase()){case"GTE":return r>=t;case"GT":return r>t;case"LTE":return r<=t;case"LT":return r<t;case"EQ":return r===t;case"NEQ":return r!==t;default:throw new Error(`Invalid comparison type: ${e}`)}}validate(){let e=this.#Pe;return this.#Re&&(e=this.#Pe.map(e=>{const t=this.#Re[e.id];return t?{...e,data:t}:e})),this.#Be.reduce((t,r)=>{const o=e.find(e=>e.id===r);if(!o)return t;const{pattern:i,message:n,data:a,compare:s}=o;if(!i&&!s||!n)return t;const l={message:Xa(n,a),id:r};if(i){const e=new RegExp(Xa(i,a));l.valid=e.test(this.value)}else s&&(l.valid=this.compareValues(s,a?.expected??-1,a?.actual??-1));return t.push(l),t},[])}get isValid(){return!this.validate().some(({valid:e})=>!1===e)}getValidationItemTemplate({valid:e,message:t}){return`\n <li class="item" data-valid="${this.value?e:"none"}">\n <span class="message">${t}</span>\n </li>\n `}renderItems(e,t){e&&t.length&&(this.list.innerHTML=this.validate().map(this.getValidationItemTemplate.bind(this)).join(""))}updateLabel(e){e?(this.label.textContent=e,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.textContent="")}}const{host:is,item:ns,symbolDefault:as,symbolSuccess:ss,symbolError:ls}={host:{selector:()=>":host > div"},item:{selector:()=>".item"},symbolDefault:{selector:()=>'.item[data-valid="none"]::before'},symbolSuccess:{selector:()=>'.item[data-valid="true"]::before'},symbolError:{selector:()=>'.item[data-valid="false"]::before'}},ds=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...is,property:"border-width"},borderStyle:{...is,property:"border-style"},borderColor:{...is,property:"border-color"},borderRadius:{...is,property:"border-radius"},backgroundColor:{...is,property:"background-color"},textColor:{property:"color"},labelMargin:{...is,property:"gap"},itemsSpacing:{...ns,property:"line-height"},itemSymbolSuccessColor:{...ss,property:"color"},itemSymbolErrorColor:{...ls,property:"color"},itemSymbolDefault:{...as,property:"content"},itemSymbolSuccess:{...ss,property:"content"},itemSymbolError:{...ls,property:"content"}}}),Nt,Dt)(os),cs=He("new-password"),ps=ds.cssVarList,{host:us,label:hs,internalInputsWrapper:ms,errorMessage:gs,helperText:bs,passwordInput:ys,policyPreview:fs}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-password-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},passwordInput:{selector:"descope-password"},policyPreview:{selector:"descope-policy-validation"}},vs=Be(Lt({mappings:{fontSize:[us,{},{selector:Xn.componentName,property:Xn.cssVarList.fontSize}],fontFamily:[hs,gs,bs],labelFontSize:{...hs,property:"font-size"},labelFontWeight:{...hs,property:"font-weight"},labelTextColor:{...hs,property:"color"},errorMessageTextColor:{...gs,property:"color"},errorMessageIcon:{...gs,property:"background-image"},errorMessageIconSize:{...gs,property:"background-size"},errorMessageIconPadding:{...gs,property:"padding-inline-start"},errorMessageIconRepeat:{...gs,property:"background-repeat"},errorMessageIconPosition:{...gs,property:"background-position"},errorMessageFontSize:{...gs,property:"font-size"},hostWidth:{...us,property:"width"},hostMinWidth:{...us,property:"min-width"},hostDirection:[{...us,property:"direction"},{...ys,property:Xn.cssVarList.hostDirection}],inputsRequiredIndicator:{...us,property:"content"},spaceBetweenInputs:{...ms,property:"gap"},policyPreviewBackgroundColor:{...fs,property:ps.backgroundColor},policyPreviewPadding:{...fs,property:ps.padding},valueInputHeight:{...ys,property:Xn.cssVarList.valueInputHeight},valueInputMarginBottom:{...ys,property:Xn.cssVarList.valueInputMarginBottom}}}),Nt,Ut({proxyProps:["value","selectionStart"]}),e=>class extends e{init(){super.init?.();const e=document.createElement("template"),t=this.getAttribute("external-input");e.innerHTML=`\n\t\t\t<${Ka}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${t}"\n\t\t\t>\n </${Ka}>\n\t\t\t`,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Ka),"true"===this.getAttribute("external-input")&&this.initExternalInput(),Ye(this,this.inputElement,{includeAttrs:["password-label","password-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","label","has-confirm","invalid","readonly","disabled","draggable","has-validation","policy-label","active-policies","available-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","label-type","manual-visibility-toggle"]})}createSlottedExternalInput(e,t){const r=e.querySelector("input"),o=document.createElement("slot"),i=r.getAttribute("slot");o.setAttribute("name",t),o.setAttribute("slot",i),e.appendChild(o),r.setAttribute("slot",t),r.setAttribute("name",this.getAttribute("name")),r.setAttribute("data-hidden-input","true"),this.appendChild(r)}initExternalInput(){this.passwordInput=this.inputElement.querySelector('[data-id="password"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.passwordInput,"external-password-input"),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input")}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n :host ::part(error-message) {\n direction: ltr;\n }\n\t\t${at(Xn.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-password-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-password-internal > .wrapper {\n -webkit-mask-image: none;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-password {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\tdescope-new-password-internal vaadin-password-field::before {\n\t\t\theight: initial;\n\t\t}\n descope-policy-validation {\n margin-top: 8px;\n display: flex;\n }\n .hidden {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:cs}));customElements.define(es,ds);const xs=/^password-/,Cs=/^confirm-/,ws=(e,t)=>e.replace(t,""),Is=["password-label","password-placeholder"],Ms=["confirm-label","confirm-placeholder"],Ss=["has-validation","policy-label","available-policies","active-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","manual-visibility-toggle"],As=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Es=[].concat(As,Is,Ms,Ss),Ts=er({componentName:Ka,baseSelector:"div"});customElements.define(Ka,class extends Ts{static get observedAttributes(){return[].concat(Ts.observedAttributes||[],Es)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.passwordInput?.value||""}set value(e){e!==this.value&&(this.passwordInput.value=e)}get hasConfirm(){return"true"===this.getAttribute("has-confirm")}onHasConfirmChange(e){this.confirmInput.classList.toggle("hidden",!e)}onHasValidationChange(e){this.policyPanel.classList.toggle("hidden",!e)}get hasValidation(){return"true"===this.getAttribute("has-validation")}getValidity(){if(this.isRequired&&!this.value)return{valueMissing:!0};if(this.value&&!this.policyPanel.isValid)return{typeMismatch:!0};if(this.hasConfirm&&this.confirmInput&&this.value!==this.confirmInput.value)return{patternMismatch:!0};const e=this.getAttribute("minlength"),t=parseInt(e,10)||0;return this.value.length>=t?{}:{tooShort:!0}}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.passwordInput.focus()}),super.init?.(),this.renderInputs(this.hasConfirm,this.hasValidation)}renderInputs(){const e="true"===this.getAttribute("external-input"),t=`\n <div class="password-input-container">\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n data-id="password"\n external-input="${e}"\n ></descope-password>\n <descope-policy-validation></descope-policy-validation>\n </div>\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n external-input="${e}"\n data-id="confirm"\n ></descope-password>\n `;this.wrapperEle.innerHTML=t,this.passwordInput=this.querySelector('[data-id="password"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.policyPanel=this.querySelector("descope-policy-validation"),this.passwordStrength=this.querySelector("descope-password-strength"),this.inputs=[this.passwordInput,this.confirmInput],this.initInputs(),this.passwordInput.addEventListener("input",e=>{this.passwordStrength?.addEventListener("score-changed",({detail:e})=>{this.policyPanel.setAttribute("data-password-policy-actual-passwordstrength",e)},{once:!0}),this.passwordStrength?.setAttribute("value",e.target.value),this.policyPanel.setAttribute("value",e.target.value)}),Ye(this,this.policyPanel,{includeAttrs:Ss,mapAttrs:{"policy-label":"label","available-policies":"data"}})}handleIndicatorStyle(){this.inputs.forEach(e=>{N(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${vs.cssVarList.inputsRequiredIndicator});\n width: 1em;\n text-align: center;\n\t\t\t\t}\n :host ::part(required-indicator) {\n display: inline-flex;\n }\n\t\t\t\t`,e)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(e=>{e&&Fe(e,t=>{if(t.includes("invalid")){const t=e.getAttribute("invalid"),r=this.getAttribute("invalid");this.isInvalid&&r!==t&&e.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}async togglePasswordStrength(){this.activePolicies.includes("passwordstrength")?this.passwordStrength||(await Promise.resolve().then(function(){return pv}),this.passwordStrength=document.createElement("descope-password-strength"),this.passwordStrength.setAttribute("options","Very weak,Weak,Average,Strong,Very strong"),this.passwordStrength.setAttribute("value",this.passwordInput.value||""),this.passwordStrength.setAttribute("st-host-direction",this.getAttribute("st-host-direction")),this.passwordStrength.setAttribute("full-width","true"),this.querySelector(".password-input-container").insertBefore(this.passwordStrength,this.policyPanel)):this.passwordStrength&&(this.passwordStrength.remove(),this.passwordStrength=null)}get activePolicies(){return(this.getAttribute("active-policies")||"").split(",")}toggleBooleanAttribute(e,t,r){null===r?e?.removeAttribute(t):e?.setAttribute(t,r)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("has-validation"===e?this.onHasValidationChange("true"===r):"has-confirm"===e?this.onHasConfirmChange("true"===r):As.includes(e)?this.inputs.forEach(t=>this.toggleBooleanAttribute(t,e,r)):Is.includes(e)?this.toggleBooleanAttribute(this.passwordInput,ws(e,xs),r):Ms.includes(e)&&this.toggleBooleanAttribute(this.confirmInput,ws(e,Cs),r),"active-policies"===e&&this.togglePasswordStrength())}}),customElements.define(cs,vs);const ks=He("recaptcha"),zs=["enabled","site-key","action","enterprise"],Ls=Ot({componentName:ks,baseSelector:":host > div"}),Ns=Be(Nt)(class extends Ls{static get observedAttributes(){return zs.concat(Ls.observedAttributes||[])}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"enabled"===e&&this.#Oe("true"===r)}renderRecaptcha(e){this.children.length?this.updatePreview():this.toggleRecaptchaEles(e)}toggleRecaptchaEles(e){e?(this.recaptchaEle.style.display="",this.mockRecaptchaEle.style.display="none"):(this.recaptchaEle.style.display="none",this.mockRecaptchaEle.style.display="")}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',N('\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #recaptcha .grecaptcha-badge {\n box-shadow: none !important;\n }\n :host #recaptcha .grecaptcha-logo {\n height: 100%;\n }\n :host #recaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host img {\n width: 256px;\n }\n :host([full-width="true"]) {\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ',this),this.recaptchaEle=this.baseElement.querySelector("#recaptcha"),this.mockRecaptchaEle=this.baseElement.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge")}init(){super.init?.(),We(this,this.updatePreview.bind(this))}updatePreview(){this.children.length?(this.recaptchaEle.style.display="none",this.mockRecaptchaEle.style.display="none",this.badge.classList.add("hidden")):(this.toggleRecaptchaEles(this.enabled),this.badge.classList.remove("hidden"))}get enterprise(){return"true"===this.getAttribute("enterprise")}get siteKey(){return this.getAttribute("site-key")}get action(){return this.getAttribute("action")||"load"}get enabled(){return"true"===this.getAttribute("enabled")}get scriptURL(){const e=new URL("https://www.google.com/recaptcha/");return e.pathname+=(this.enterprise?"enterprise":"api")+".js",e.searchParams.append("onload","onRecaptchaLoadCallback"),e.searchParams.append("render","explicit"),e.toString()}#Oe(e){this.renderRecaptcha(e),e&&(this.#je(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Fe())}#Fe(){const e=document.createElement("script");e.src=this.scriptURL,e.async=!0,e.id="recaptcha-script",e.defer=!0,document.body.appendChild(e)}get grecaptchaInstance(){return this.enterprise?window.grecaptcha?.enterprise:window.grecaptcha}#We(e,t,r){this.isConnected&&e.ready(()=>{const o=t.querySelector('textarea[name^="g-recaptcha-response"]')?.cloneNode();if(o&&(o.style.display="none",document.body.appendChild(o)),!this.siteKey)return;const i=e?.execute(r,{action:this.action});i.then((i,n)=>{n?console.warn("could not execute recaptcha",n):(this.updateComponentsContext({risktoken:i,riskaction:this.action}),this.isConnected&&setTimeout(()=>{this.#We(e,t,r)},11e4)),o.remove()})})}#je(){window.onRecaptchaLoadCallback=()=>{const e=this.recaptchaEle;if(e.hasChildNodes())return;const{grecaptchaInstance:t}=this;t&&setTimeout(()=>{const r=t.render(e,{sitekey:this.siteKey,badge:"inline",size:"invisible"});this.#We(t,e,r)},0)}}});customElements.define(ks,Ns);const Ds=He("upload-file"),Vs=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Ps=er({componentName:Ds,baseSelector:":host > div"}),Bs=Io.cssVarList,{host:Rs,wrapper:Os,icon:js,title:Fs,description:Ws,requiredIndicator:_s}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},$s=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...Rs,property:"height"},hostWidth:{...Rs,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...Rs,property:"direction"},{selector:()=>Io.componentName,property:Bs.hostDirection}],gap:{...Os},lineHeight:{...Os,property:"line-height"},titleFontSize:{...Fs,property:"font-size"},titleFontWeight:{...Fs,property:"font-weight"},descriptionFontSize:{...Ws,property:"font-size"},labelTextColor:[{...Fs,property:"color"},{...Ws,property:"color"}],iconSize:{...js,property:"width"},requiredIndicator:{..._s,property:"content"}}}),Nt,Dt)(class extends Ps{static get observedAttributes(){return Vs.concat(Ps.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" aria-labelledby="button"/>\n\t\t\t\t\t<descope-button id="button"></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',N("\n :host {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\ttext-align: center;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.button-wrapper {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t}\n ",this),this.wrapperEle=this.shadowRoot.querySelector(".wrapper"),this.inputElement=this.shadowRoot.querySelector("input"),this.button.onclick=()=>this.inputElement.click(),this.inputElement.onchange=async e=>{const t=e.target.files;var r;t.length&&(this.value=await(r=t[0],new Promise(e=>{const t=new FileReader;t.onload=t=>e(t.target.result),t.readAsDataURL(r)})),this.updateDescription((e=>e.name.replace(/^.*\\/,""))(t[0])))},this.oninvalid=()=>{this.setAttribute("invalid","true")}}getValidity(){return this.isRequired&&!this.input.value?{valueMissing:!0}:(this.removeAttribute("invalid"),{})}initInputs(){this.rootElement.querySelector("descope-button").onclick=()=>this.inputElement.click()}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("title"===e?this.updateTitle(r):"description"===e?this.updateDescription(r):"button-label"===e?this.updateButtonLabel(r):"button-mode"===e?this.updateButtonMode(r):"button-variant"===e?this.updateButtonVariant(r):"size"===e?this.updateButtonSize(r):"accept"===e?this.updateInputAccept(r):"readonly"===e&&this.updateReadOnly(r))}get button(){return this.shadowRoot.querySelector("descope-button")}get input(){return this.shadowRoot.querySelector("input")}get title(){return this.shadowRoot.querySelector(".title-text")}get description(){return this.shadowRoot.querySelector(".description")}get icon(){return this.shadowRoot.querySelector(".icon")}updateTitle(e){this.title.textContent=e}updateDescription(e){this.description.textContent=e}updateButtonLabel(e){this.button.textContent=e}updateButtonSize(e){this.button.setAttribute("size",e)}updateButtonMode(e){this.button.setAttribute("mode",e)}updateButtonVariant(e){this.button.setAttribute("variant",e)}updateInputAccept(e){this.input.setAttribute("accept",e)}updateReadOnly(e){"true"===e?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}});customElements.define(Ds,$s);const Hs=e=>{class t extends(er({componentName:e,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=jt.bind(this,"change");get items(){return this.querySelector("slot").assignedElements()}get isReadonly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"md"}get value(){console.warn("get value","is not implemented")}set value(e){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach(e=>{e.setAttribute("size",this.size)})}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(e){e.forEach(e=>{switch(e){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}})}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.items[0]?.focus()}),super.init?.(),Fe(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return t},qs=He("button-selection-group-internal");class Ys extends(Hs(qs)){getSelectedNode(){return this.items.find(e=>e.hasAttribute("selected"))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(e){e.target!==e.currentTarget&&(e.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(e.target),this.dispatchChange())}setSelected(e){e!==this.getSelectedNode()&&(this.removeSelected(),e?.setAttribute("selected","true"))}get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue,this.setCustomValidity())})}get value(){return this.getSelectedNode()?.value||""}set value(e){const t=this.items.find(t=>t.value===e);this.setSelected(t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const Us=e=>class extends e{#J=({value:e,label:t})=>`<descope-button-selection-group-item value="${e}">${t}</descope-button-selection-group-item>`;#V;get renderItem(){return this.#J}set renderItem(e){this.#J=e,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" - ',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.renderItem?.(t||{})||""),"")}renderItems(){const e=this.getItemsTemplate();e&&(this.innerHTML=e)}init(){super.init?.(),this.renderItems(),Fe(this,this.renderItems.bind(this),{includeAttrs:["data"]}),We(this,({addedNodes:e})=>{e.forEach(e=>{e.setAttribute("size",this.size)})})}},{host:Gs,label:Zs,requiredIndicator:Qs,internalWrapper:Js,errorMessage:Ks}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:()=>':host [part="internal-component"] slot'},errorMessage:{selector:"::part(error-message)"}},Xs={hostWidth:{...Gs,property:"width"},hostDirection:{...Gs,property:"direction"},fontFamily:Gs,labelTextColor:[{...Zs,property:"color"},{...Qs,property:"color"}],labelRequiredIndicator:{...Qs,property:"content"},errorMessageTextColor:{...Ks,property:"color"},errorMessageIcon:{...Ks,property:"background-image"},errorMessageIconSize:{...Ks,property:"background-size"},errorMessageIconPadding:{...Ks,property:"padding-inline-start"},errorMessageIconRepeat:{...Ks,property:"background-repeat"},errorMessageIconPosition:{...Ks,property:"background-position"},errorMessageFontSize:{...Ks,property:"font-size"},itemsSpacing:{...Js,property:"gap"}},el=`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n [part="internal-component"] slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${ht("vaadin-text-field")}\n\t\t\t${dt("vaadin-text-field")}\n `,tl=He("button-selection-group"),rl=Be(Lt({mappings:{...Xs}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,Us,e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${qs}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${qs}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(qs),Ye(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>el,excludeAttrsSync:["tabindex","style"],componentName:tl}));customElements.define(qs,Ys);const ol=He("button-selection-group-item");class il extends(Ot({componentName:ol,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(e){this.setAttribute("value",e)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,N("\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n ",this),Ye(this,this.baseElement,{includeAttrs:["size","variant"]}),Ye(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",e=>{e.isTrusted&&this.handleFocus()})}}const nl=Be(Lt({mappings:{hostDirection:{selector:()=>Io.componentName,property:Io.cssVarList.hostDirection},backgroundColor:{selector:()=>Io.componentName,property:Io.cssVarList.backgroundColor},labelTextColor:{selector:()=>Io.componentName,property:Io.cssVarList.labelTextColor},borderColor:{selector:()=>Io.componentName,property:Io.cssVarList.borderColor},borderWidth:{selector:()=>Io.componentName,property:Io.cssVarList.borderWidth},borderStyle:{selector:()=>Io.componentName,property:Io.cssVarList.borderStyle},borderRadius:{selector:()=>Io.componentName,property:Io.cssVarList.borderRadius},outlineColor:{selector:()=>Io.componentName,property:Io.cssVarList.outlineColor}}}),Nt,Dt)(il);customElements.define(ol,nl),customElements.define(tl,rl);const al=He("button-multi-selection-group-internal");class sl extends(Hs(al)){#_e(){return this.items.filter(e=>e.hasAttribute("selected"))}onClick(e){e.target!==e.currentTarget&&(this.#_e().includes(e.target)?e.target.removeAttribute("selected"):e.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#_e().map(e=>e.value)}set value(e){this.items.forEach(t=>{e.includes(t.value)?t.setAttribute("selected","true"):t.removeAttribute("selected")})}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#$e(e){const t=Array.isArray(e);return t||console.error("default-values must be an array, received:",e),t}get defaultValues(){const e=this.getAttribute("default-values");if(e)try{const t=JSON.parse(e);if(this.#$e(t))return t}catch(e){console.error('could not parse data string from attribute "default-values" -',e.message)}return[]}setDefaultValues(){setTimeout(()=>{this.defaultValues&&(this.value=this.defaultValues,this.setCustomValidity())})}getValidity(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}}init(){super.init(),this.setDefaultValues(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const ll=He("button-multi-selection-group"),dl=Be(Lt({mappings:{...Xs}}),Nt,Ut({proxyProps:["value","selectionStart"]}),Dt,Us,e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${al}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${al}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(al),Ye(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(Ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>el,excludeAttrsSync:["tabindex","style"],componentName:ll}));customElements.define(al,sl),customElements.define(ll,dl);class cl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(e,t,r){const o=r.item[this.path]||"",i=Array.isArray(o)?o.join(", "):o;this.__setTextContent(e,i),e.title=i}_defaultHeaderRenderer(e,t){this.sortable?super._defaultHeaderRenderer(e,t):this.__setTextContent(e,this.__getHeader(this.header,this.path))}}const pl=He("grid-text-column");customElements.define(pl,cl);const ul=He("grid-custom-column");customElements.define(ul,class extends cl{_defaultRenderer(e,t,r){const o=r.item[this.path]||"",i=Array.from(this.children).find(e=>{const t=e.getAttribute("data-pattern");return!t||new RegExp(t).test(o)});if(!i)return void this.__setTextContent(e,r.item[this.path]||"");const n=i.cloneNode(!0);n.textContent=o||"",e.innerHTML="",e.append(n)}});const hl=()=>{const e=document.createElement("descope-checkbox");return e.setAttribute("bordered","true"),e.setAttribute("size","xs"),e},ml=e=>!!e.items?.length&&e.selectedItems.length===e.items.length;class gl extends m.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(e){const t=e.parentNode;let r=e.querySelector("descope-checkbox");r||(r=hl(),r.addEventListener("input",()=>{const e=ml(t);t.selectedItems=e?[]:t.items}),e.appendChild(r)),r.setAttribute("checked",ml(t))}_defaultRenderer(e,t,r){const o=e.parentNode;let i=e.querySelector("descope-checkbox");i||(i=hl(),e.appendChild(i)),i.onchange=()=>{i.checked?o.selectItem(r.item):o.deselectItem(r.item)},i.setAttribute("checked",r.selected)}}const bl=He("grid-selection-column");customElements.define(bl,gl);class yl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(e,t,r){const o=t._gridValue,i=o.detailsOpenedItems?.indexOf(r.item)??-1,n=-1!==i,a=document.createElement("vaadin-icon");a.icon=n?"vaadin:angle-up":"vaadin:angle-down",a.classList.add("toggle-details-button",n?"opened":"closed"),e.innerHTML="",e.append(a),a.onclick=()=>{o.detailsOpenedItems=n?o.detailsOpenedItems.toSpliced(i,1):[...o.detailsOpenedItems,r.item]}}_defaultHeaderRenderer(e,t){this.sortable?super._defaultHeaderRenderer(e,t):this.__setTextContent(e,this.__getHeader(this.header,this.path))}}const fl=He("grid-item-details-column");customElements.define(fl,yl);const vl=He("code-snippet");let xl=class extends(Ot({componentName:vl,baseSelector:":host > code"})){static get observedAttributes(){return["lang","inline"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <code class="hljs"></code>\n ',N("\n :host {\n display: inline-block;\n width: 100%;\n }\n code {\n display: block;\n width: 100%;\n min-height: 1em;\n overflow-x: scroll;\n overflow-y: scroll;\n }\n pre {\n margin: 0;\n }\n ",this)}init(){super.init?.(),this.lang=this.getAttribute("lang"),this.isInline="true"===this.getAttribute("inline"),We(this,this.#He.bind(this))}get contentNode(){return this.shadowRoot.querySelector(this.baseSelector)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("inline"===e&&(this.isInline=r),"lang"===e&&(this.lang=r),this.#He())}#He(){const e=(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(this.textContent),t=this.lang;if(!t)return void(this.contentNode.textContent=e);const{value:r}=g.A.highlight(e,{language:t});this.contentNode.innerHTML=(e=>this.isInline?e:`<pre>${e}</pre>`)(r)}};const{root:Cl,docTag:wl,keyword:Il,metaKeyword:Ml,templateTag:Sl,templateVariable:Al,type:El,variableLanguage:Tl,title:kl,titleClass:zl,titleClassInherited:Ll,titleFunction:Nl,attr:Dl,attribute:Vl,literal:Pl,meta:Bl,number:Rl,operator:Ol,variable:jl,selectorAttr:Fl,selectorClass:Wl,selectorId:_l,regexp:$l,string:Hl,metaString:ql,builtIn:Yl,symbol:Ul,comment:Gl,code:Zl,formula:Ql,name:Jl,quote:Kl,selectorTag:Xl,selectorPseudo:ed,subst:td,section:rd,bullet:od,emphasis:id,strong:nd,addition:ad,deletion:sd,charEscape:ld,link:dd,params:cd,property:pd,punctuation:ud,tag:hd}={root:{selector:()=>".hljs"},docTag:{selector:()=>".hljs-doctag"},keyword:{selector:()=>".hljs-keyword"},metaKeyword:{selector:()=>".hljs-meta .hljs-keyword"},templateTag:{selector:()=>".hljs-template-tag"},templateVariable:{selector:()=>".hljs-template-variable"},type:{selector:()=>".hljs-type"},variableLanguage:{selector:()=>".hljs-variable.language"},title:{selector:()=>".hljs-title"},titleClass:{selector:()=>".hljs-title.class_"},titleClassInherited:{selector:()=>".hljs-title.class_.inherited__"},titleFunction:{selector:()=>".hljs-title.function_"},attr:{selector:()=>".hljs-attr"},attribute:{selector:()=>".hljs-attribute"},literal:{selector:()=>".hljs-literal"},meta:{selector:()=>".hljs-meta"},number:{selector:()=>".hljs-number"},operator:{selector:()=>".hljs-operator"},variable:{selector:()=>".hljs-variable"},selectorAttr:{selector:()=>".hljs-selector-attr"},selectorClass:{selector:()=>".hljs-selector-class"},selectorId:{selector:()=>".hljs-selector-id"},regexp:{selector:()=>".hljs-regexp"},string:{selector:()=>".hljs-string"},metaString:{selector:()=>".hljs-meta .hljs-string"},builtIn:{selector:()=>".hljs-built_in"},symbol:{selector:()=>".hljs-symbol"},comment:{selector:()=>".hljs-comment"},code:{selector:()=>".hljs-code"},formula:{selector:()=>".hljs-formula"},name:{selector:()=>".hljs-name"},quote:{selector:()=>".hljs-quote"},selectorTag:{selector:()=>".hljs-selector-tag"},selectorPseudo:{selector:()=>".hljs-selector-pseudo"},subst:{selector:()=>".hljs-subst"},section:{selector:()=>".hljs-section"},bullet:{selector:()=>".hljs-bullet"},emphasis:{selector:()=>".hljs-emphasis"},strong:{selector:()=>".hljs-strong"},addition:{selector:()=>".hljs-addition"},deletion:{selector:()=>".hljs-deletion"},charEscape:{selector:()=>".hljs-char.escape"},link:{selector:()=>".hljs-link"},params:{selector:()=>".hljs-params"},property:{selector:()=>".hljs-property"},punctuation:{selector:()=>".hljs-punctuation"},tag:{selector:()=>".hljs-tag"}},md=Be(Lt({mappings:{rootBgColor:{...Cl,property:"background-color"},rootTextColor:{...Cl,property:"color"},docTagTextColor:{...wl,property:"color"},keywordTextColor:{...Il,property:"color"},metaKeywordTextColor:{...Ml,property:"color"},templateTagTextColor:{...Sl,property:"color"},templateVariableTextColor:{...Al,property:"color"},typeTextColor:{...El,property:"color"},variableLanguageTextColor:{...Tl,property:"color"},titleTextColor:{...kl,property:"color"},titleClassTextColor:{...zl,property:"color"},titleClassInheritedTextColor:{...Ll,property:"color"},titleFunctionTextColor:{...Nl,property:"color"},attrTextColor:{...Dl,property:"color"},attributeTextColor:{...Vl,property:"color"},literalTextColor:{...Pl,property:"color"},metaTextColor:{...Bl,property:"color"},numberTextColor:{...Rl,property:"color"},operatorTextColor:{...Ol,property:"color"},variableTextColor:{...jl,property:"color"},selectorAttrTextColor:{...Fl,property:"color"},selectorClassTextColor:{...Wl,property:"color"},selectorIdTextColor:{..._l,property:"color"},regexpTextColor:{...$l,property:"color"},stringTextColor:{...Hl,property:"color"},metaStringTextColor:{...ql,property:"color"},builtInTextColor:{...Yl,property:"color"},symbolTextColor:{...Ul,property:"color"},commentTextColor:{...Gl,property:"color"},codeTextColor:{...Zl,property:"color"},formulaTextColor:{...Ql,property:"color"},nameTextColor:{...Jl,property:"color"},quoteTextColor:{...Kl,property:"color"},selectorTagTextColor:{...Xl,property:"color"},selectorPseudoTextColor:{...ed,property:"color"},substTextColor:{...td,property:"color"},sectionTextColor:{...rd,property:"color"},bulletTextColor:{...od,property:"color"},emphasisTextColor:{...id,property:"color"},strongTextColor:{...nd,property:"color"},additionTextColor:{...ad,property:"color"},additionBgColor:{...ad,property:"background-color"},deletionTextColor:{...sd,property:"color"},deletionBgColor:{...sd,property:"background-color"},charEscapeTextColor:{...ld,property:"color"},linkTextColor:{...dd,property:"color"},paramsTextColor:{...cd,property:"color"},propertyTextColor:{...pd,property:"color"},punctuationTextColor:{...ud,property:"color"},tagTextColor:{...hd,property:"color"}}}),Nt,Dt)(xl);customElements.define(vl,md);const gd=e=>{const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t},bd=e=>{const t=document.createElement("div");return t.textContent=e,t.innerHTML},yd=e=>(e=>e?.constructor===Object)(e)?"object":Array.isArray(e)?"array":/^\s*<[\s\S]*>/.test(e)?"xml":"text",fd=(e,t)=>`<descope-code-snippet lang="${t}" class="row-details__value code">${bd(e)}</descope-code-snippet>`,vd=e=>`<div class="row-details__value text" title="${e}">${bd(e)}</div>`,xd=e=>fd(JSON.stringify(e,null,2),"json"),Cd=He("grid"),{host:wd,headerRow:Id,headerRowCell:Md,contentRow:Sd,firstRow:Ad,sortIndicators:Ed,activeSortIndicator:Td,selectedRow:kd,rowSeparator:zd,resizeHandle:Ld,toggleDetailsPanelButton:Nd,toggleDetailsPanelButtonOpened:Dd,toggleDetailsPanelButtonClosed:Vd,detailsPanel:Pd,detailsPanelLabels:Bd,selectedRowCell:Rd,detailsPanelContent:Od}={host:{selector:()=>"vaadin-grid"},headerRow:{selector:()=>"::part(header-cell)"},headerRowCell:{selector:()=>"vaadin-grid::part(header-cell)"},contentRow:{selector:()=>"::part(cell)"},firstRow:{selector:()=>"::part(first-header-row-cell)"},selectedRow:{selector:()=>"::part(selected-row)"},selectedRowCell:{selector:()=>"::part(selected-row-cell)"},sortIndicators:{selector:()=>"vaadin-grid-sorter::part(indicators)"},activeSortIndicator:{selector:()=>"vaadin-grid-sorter[direction]"},rowSeparator:{selector:()=>"vaadin-grid::part(body-cell)"},resizeHandle:{selector:()=>"::part(resize-handle)"},toggleDetailsPanelButton:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button"},toggleDetailsPanelButtonOpened:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button.opened"},toggleDetailsPanelButtonClosed:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button.closed"},detailsPanel:{selector:()=>"vaadin-grid::part(details-cell)"},detailsPanelLabels:{selector:()=>"vaadin-grid .row-details__label"},detailsPanelContent:{selector:()=>"vaadin-grid .row-details"}},jd=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Id},{...Sd}],fontSize:[{...Id},{...Sd}],fontWeight:{...Sd},valueTextColor:{...Sd,property:"color"},backgroundColor:[{...wd,property:"background-color"},{...Sd,property:"background-color"}],sortIndicatorsColor:{...Ed,property:"color"},activeSortIndicator:{...Td,property:"color"},borderColor:{...wd,property:"border-color"},borderWidth:{...wd,property:"border-width"},borderStyle:{...wd,property:"border-style"},borderRadius:{...wd,property:"border-radius"},selectedBackgroundColor:[{...kd,property:"background-color"},{...Rd,property:"background-color"}],headerRowTextColor:{...Md,property:"color"},separatorColor:[{...Ad,property:"border-bottom-color"},{...zd,property:"border-top-color"}],resizeHandleColor:{...Ld,property:"background-color"},hostDirection:{...wd,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Nd,property:"width"},{...Nd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...Dd,property:"color"},toggleDetailsPanelButtonClosedColor:{...Vd,property:"color"},toggleDetailsPanelButtonCursor:{...Nd,property:"cursor"},detailsPanelBackgroundColor:{...Pd,property:"background-color"},detailsPanelBorderTopColor:{...Pd,property:"border-top-color"},detailsPanelLabelsColor:{...Bd,property:"color"},detailsPanelLabelsFontSize:{...Bd,property:"font-size"},detailsPanelItemsGap:{...Od,property:"grid-gap"},detailsPanelPadding:{...Od,property:"padding"}}}),Nt,Dt,e=>class extends e{#qe;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{};const e=this.baseElement._updateDetailsCellHeight;this.baseElement._updateDetailsCellHeight=t=>{t&&e.call(this.baseElement,t)},this.baseElement.rowDetailsRenderer=this.#Ye.bind(this)}#Ye=async(e,t,r)=>{e.addEventListener("mousedown",e=>e.stopImmediatePropagation(),!0);const o=this.getRowDetailsTemplate(r.item);e.innerHTML="",e.append(o.content.cloneNode(!0))};getRowDetailsTemplate(e){const t=this.#qe.reduce((e,{path:t,header:r})=>t&&r?{...e,[t]:r}:e,{}),r=this.rowDetailsRenderer?.(e,t)??((e,t)=>`\n <div class="row-details">\n ${Object.entries(e).map(([e,r])=>{return`<div class="row-details__item" >\n <div class="row-details__label">${t[e]||(o=e,o.replace(/([A-Z])/g," $1").trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))}</div>\n ${(e=>{const t=yd(e);return"object"===t?xd(e):"xml"===t?(e=>fd(e,"xml"))(e):"array"===t?e.some(e=>"object"===yd(e))?xd(e):vd(e.join(",\n")):vd(e)})(r)}\n </div>`;var o}).join("\n")}\n</div>\n `)(e,t);switch(!0){case r instanceof HTMLTemplateElement:return r;case"string"==typeof r:return Object.assign(document.createElement("template"),{innerHTML:r});default:throw new Error("rowDetailsRenderer should return a string or a template")}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",e=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:e.detail}))})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"columns"===e&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#qe=Array.from(this.children).map(e=>({path:e.getAttribute("path"),header:e.getAttribute("header"),type:e.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce((t,r)=>{const o=e.getAttribute(r);return o&&(t[r]=o),t},{})}))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const e=JSON.parse(this.columnsAttr);gd(e)&&(this.columns=e)}catch(e){console.error('could not parse data string from attribute "columns" -',e.message)}}#Ue=({path:e,header:t,type:r,attrs:o})=>{const i=`descope-grid-${r}-column`;return`<${i} header="${t}" path="${e}" ${Object.entries(o).map(([e,t])=>`${e}="${t}"`).join(" ")}></${i}>`};get renderColumn(){return this.#Ue}set renderColumn(e){this.#Ue=e,this.renderColumns()}getColumnsTemplate(){return this.#qe?.reduce?.((e,t)=>e+(this.renderColumn?.(t||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#Ye.bind(this)},0)}renderColumns(){const e=this.getColumnsTemplate();e&&(this.reassignRowDetailsRenderer(),this.innerHTML=e)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(e){if(gd(e)&&this.grid.items!==e&&(this.grid.items=e,this.grid.selectedItems)){const e=new Set(this.grid.items.map(e=>e[this.uniqueColumnId]??e)),t=this.grid.selectedItems.filter(t=>e.has(t[this.uniqueColumnId]??t));this.grid.selectedItems.length!==t.length&&(this.grid.selectedItems=t)}}get columns(){return this.#qe}set columns(e){this.#qe=e,this.renderColumns()}get paths(){return this.columns.map(e=>e.path)}get uniqueColumnId(){return this.getAttribute("unique-column-id")}})(Ft({delegatesFocus:!1,slots:[""],wrappedEleName:"vaadin-grid",style:()=>`\n /*css*/\n vaadin-grid {\n overflow: hidden;\n height: 100%;\n min-height: 300px;\n }\n vaadin-grid-cell-content {\n display: flex;\n }\n vaadin-grid::part(selected-row-cell) {\n background-image: none;\n box-shadow: none;\n background-color: inherit;\n }\n vaadin-grid::part(details-cell) {\n border-top-style: dashed;\n border-top-width: 1px;\n }\n vaadin-grid .row-details {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(max(200px, calc(100%/4 - var(${jd.cssVarList.detailsPanelItemsGap}))), 1fr));\n width: 100%;\n }\n vaadin-grid .row-details__item:has(.row-details__value.code) {\n grid-column: 1 / -1;\n order: 2;\n }\n vaadin-grid .row-details__value.text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n }\n vaadin-grid .row-details__value.code {\n margin-top: 5px;\n max-height: 120px;\n overflow: scroll;\n font-size: 0.85em;\n }\n vaadin-grid vaadin-icon.toggle-details-button {\n margin: auto;\n }\n /*!css*/\n\t\t`,excludeAttrsSync:["columns","tabindex","style"],componentName:Cd}));customElements.define(Cd,jd);const Fd=He("multi-select-combo-box"),{host:Wd,inputField:_d,inputElement:$d,placeholder:Hd,toggle:qd,clearButton:Yd,label:Ud,requiredIndicator:Gd,helperText:Zd,errorMessage:Qd,chip:Jd,chipLabel:Kd,overflowChipFirstBorder:Xd,overflowChipSecondBorder:ec}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},chip:{selector:"vaadin-multi-select-combo-box-chip"},chipLabel:{selector:"vaadin-multi-select-combo-box-chip::part(label)"},overflowChipFirstBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::before"},overflowChipSecondBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::after"}},tc=Be(Lt({mappings:{hostWidth:{...Wd,property:"width"},hostDirection:{...Wd,property:"direction"},fontSize:[{},Wd],chipFontSize:{...Kd,property:"font-size"},fontFamily:[Ud,Hd,_d,Zd,Qd,Kd],labelFontSize:{...Ud,property:"font-size"},labelFontWeight:{...Ud,property:"font-weight"},labelTextColor:[{...Ud,property:"color"},{...Gd,property:"color"}],errorMessageTextColor:{...Qd,property:"color"},errorMessageIcon:{...Qd,property:"background-image"},errorMessageIconSize:{...Qd,property:"background-size"},errorMessageIconPadding:{...Qd,property:"padding-inline-start"},errorMessageIconRepeat:{...Qd,property:"background-repeat"},errorMessageIconPosition:{...Qd,property:"background-position"},errorMessageFontSize:{...Qd,property:"font-size"},inputHeight:{..._d,property:"min-height"},inputBackgroundColor:{..._d,property:"background-color"},inputBorderColor:{..._d,property:"border-color"},inputBorderWidth:{..._d,property:"border-width"},inputBorderStyle:{..._d,property:"border-style"},inputBorderRadius:{..._d,property:"border-radius"},labelRequiredIndicator:{...Gd,property:"content"},inputValueTextColor:{..._d,property:"color"},inputPlaceholderTextColor:{...Hd,property:"color"},inputDropdownButtonCursor:[{...qd,property:"cursor"},{...Yd,property:"cursor"}],inputDropdownButtonColor:[{...qd,property:"color"},{...Yd,property:"color"}],inputDropdownButtonSize:[{...qd,property:"font-size"},{...Yd,property:"font-size"}],inputDropdownButtonOffset:[{...qd,property:"margin-right"},{...qd,property:"margin-left"}],inputOutlineColor:{..._d,property:"outline-color"},inputOutlineWidth:{..._d,property:"outline-width"},inputOutlineStyle:{..._d,property:"outline-style"},inputOutlineOffset:{..._d,property:"outline-offset"},inputHorizontalPadding:[{...$d,property:"padding-left"},{...$d,property:"padding-right"},{..._d,property:"padding-inline-start"}],inputVerticalPadding:[{..._d,property:"padding-top"},{..._d,property:"padding-bottom"}],chipTextColor:{...Kd,property:"color"},chipBackgroundColor:[{...Jd,property:"background-color"},{...Xd,property:"border-color"},{...ec,property:"border-color"}],labelPosition:{...Ud,property:"position"},labelTopPosition:{...Ud,property:"top"},labelLeftPosition:{...Ud,property:"left"},labelHorizontalPosition:[{...Ud,property:"left"},{...Ud,property:"right"}],inputTransformY:{...Ud,property:"transform"},inputTransition:{...Ud,property:"transition"},marginInlineStart:{...Ud,property:"margin-inline-start"},placeholderOpacity:{...Hd,property:"opacity"},inputVerticalAlignment:{..._d,property:"align-items"},overlayBackground:{property:()=>tc.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>tc.cssVarList.overlay.textColor},overlayBorder:{property:()=>tc.cssVarList.overlay.border},overlayFontSize:{property:()=>tc.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>tc.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>tc.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>tc.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>tc.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>tc.cssVarList.overlay.itemPaddingInlineEnd}}}),Nt,Zt({name:"overlay",selector:"vaadin-multi-select-combo-box-internal",mappings:{backgroundColor:{selector:"vaadin-multi-select-combo-box-scroller"},minHeight:{selector:"vaadin-multi-select-combo-box-overlay"},margin:{selector:"vaadin-multi-select-combo-box-overlay"},cursor:{selector:"vaadin-multi-select-combo-box-item"},fontFamily:{selector:"vaadin-multi-select-combo-box-item"},textColor:{selector:"vaadin-multi-select-combo-box-item",property:"color"},fontSize:{selector:"vaadin-multi-select-combo-box-item"},itemBoxShadow:{selector:"vaadin-multi-select-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Ut({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),Qt,Dt,e=>class extends e{static get observedAttributes(){return["readonly"]}#J=({displayName:e,value:t,label:r})=>{const o=document.createElement("span");return o.setAttribute("data-name",r),o.setAttribute("data-id",t),o.textContent=e||r,o.outerHTML};#V;#Ge=[];get defaultValues(){const e=this.getAttribute("default-values");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "default-values" -',e.message)}return[]}get renderItem(){return this.#J}set renderItem(e){this.#J=e,this.renderItems()}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" -',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}get allowCustomValues(){return"true"===this.getAttribute("allow-custom-value")}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data and default-values must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.renderItem?.(t||{})||""),"")}renderItems(){const e=this.getItemsTemplate();e&&(this.innerHTML=e)}updateSelectedItems(){const e=this.baseElement.selectedItems?.map(e=>e.getAttribute("data-id"))||[];e.length>0&&(this.value=e),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(e){return e}setComboBoxDescriptor(){const e=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),t=this;Object.defineProperties(this.inputElement,{value:{...e,set(r){const o=t.customValueTransformFn(r)||"";o!==this.value&&e.set.call(this,o)}}})}#Ze(e){return Array.from(new Map(e.map(e=>[e.getAttribute("data-id"),e])).values())}#K(){const e=Array.from(this.children),t=this.#Ze(e);e.length?(this.removeAttribute("has-no-options"),t.forEach(e=>{Object.defineProperty(e,"data-name",{value:e.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(e,"data-id",{value:e.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(e,t,r)=>{e.innerHTML=r.item.outerHTML}}#X(){const e=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");e._attachOverlay=()=>{e.bringToFront()},e._detachOverlay=()=>{},e._enterModalState=()=>{}}#Qe(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",e=>{const t=this.#J({label:e.detail,displayName:e.detail,value:e.detail});this.innerHTML+=t,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,e.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const e=new RegExp(this.pattern);if(this.value.some(t=>!e.test(t)))return{patternMismatch:!0}}return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const e=this;this.baseElement.checkValidity=()=>e.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#Qe(),this.renderItems(),Fe(this,this.renderItems.bind(this),{includeAttrs:["data"]}),We(this,this.#K.bind(this)),Ye(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#X()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#Je(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#Je(){this.#Ge=this.baseElement.selectedItems?.map(e=>e.getAttribute("data-id"))||[]}set value(e){if(e&&e.length>0){const t=this.baseElement.items?.filter(t=>e.includes(t["data-id"]));if(this.allowCustomValues){const r=t?.map(e=>e.getAttribute("data-id"))||[],o=e.filter(e=>!r.includes(e));if(o.length){const t=o.reduce((e,t)=>e+this.#J({label:t,displayName:t,value:t}),"");return this.innerHTML+=t,void setTimeout(()=>{this.value=e},0)}}const r=t?.map(e=>e.getAttribute("data-id"))||[];((e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;const r=e.slice().sort(),o=t.slice().sort();for(let e=0;e<r.length;e++)if(r[e]!==o[e])return!1;return!0})(this.#Ge,r)||(this.baseElement.selectedItems=t)}else this.baseElement.selectedItems=[]}get value(){return this.#Ge}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"readonly"===e&&this.onReadOnlyChange(null!==r&&"true"===r)}onReadOnlyChange(e){e?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",e):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}})(Ft({slots:["","prefix"],wrappedEleName:"vaadin-multi-select-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${at(tc.cssVarList)}\n\t\t\n vaadin-multi-select-combo-box::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t${ct("vaadin-multi-select-combo-box")}\n\t\t${dt("vaadin-multi-select-combo-box")}\n\n\t\tvaadin-multi-select-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-multi-select-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-multi-select-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n align-self: center;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\tvaadin-multi-select-combo-box[readonly] [slot="input"] {\n flex-grow: 1;\n flex-basis: 4em;\n\t\t}\n\n\t\t::part(input-field) {\n padding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${ht("vaadin-multi-select-combo-box")}\n :host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {\n display: block;\n }\n\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -4px;\n right: -4px;\n border-left-width: 0;\n border-inline-start-style: solid;\n border-inline-start-width: 2px;\n }\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -8px;\n right: -8px;\n }\n\n :host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {\n display: none;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-multi-select-combo-box::part(toggle-button),\n vaadin-multi-select-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t`,excludeAttrsSync:["tabindex","size","data","placeholder","style"],componentName:Fd,includeForwardProps:["items","renderer","selectedItems"]}));customElements.define(Fd,tc);const rc=He("modal"),oc=["opened"],ic=Be(Lt({mappings:{overlayBackgroundColor:{property:()=>ic.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>ic.cssVarList.overlay.shadow},overlayWidth:{property:()=>ic.cssVarList.overlay.width}}}),Zt({name:"overlay",selector:"",mappings:{hostDisplay:{selector:()=>":host(.descope-modal)",property:"display",important:!0},backgroundColor:[{selector:()=>"::part(content)",property:"background-color"},{selector:()=>"::part(overlay)",property:"background-color"}],width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened","style"]}}),Nt,Dt,e=>class extends e{static get observedAttributes(){return[].concat(e.observedAttributes||[],oc)}get opened(){return"true"===this.getAttribute("opened")}handleOpened(){this.opened?this.style.display="":this.style.display="none"}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"opened"===e&&this.handleOpened()}init(){super.init?.(),this.style.display="none",setTimeout(()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#X(),Ye(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#X(){const e=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");e._attachOverlay=()=>{e.bringToFront(),N("\n :host {\n display: flex!important;\n }\n ",this.baseElement)},e._detachOverlay=()=>{this.baseElement.style.display="none"},e._enterModalState=()=>{},e.close=()=>!1}})(Ft({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:rc}));customElements.define(rc,ic);const nc=window.customElements.get("vaadin-notification-container");if(!nc)throw new Error("could not get vaadin-notification-container class");customElements.define(He("notification-container"),class extends nc{});const ac=He("notification-card"),sc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},lc=Be(Lt({mappings:{hostMinWidth:{selector:sc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:sc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:sc.content,property:"border-width"},borderColor:{selector:sc.content,property:"border-color"},borderStyle:{selector:sc.content,property:"border-style"},borderRadius:[{selector:sc.content,property:"border-radius"},{selector:sc.overlay,property:"border-radius"}],verticalPadding:[{selector:sc.content,property:"padding-top"},{selector:sc.content,property:"padding-bottom"}],horizontalPadding:[{selector:sc.content,property:"padding-right"},{selector:sc.content,property:"padding-left"}]}}),e=>class extends e{close(){this.baseElement.addEventListener("animationend",()=>{this.remove(),this.dispatchEvent(new Event("card-closed"))}),this.setAttribute("opened","false")}constructor(){super(),this.baseElement.innerHTML='\n <div part="root">\n <div part="content">\n <slot></slot>\n </div>\n <div part="close">\n <slot name="close"></slot>\n </div>\n </div>\n ',this.closeEle=this.shadowRoot.querySelector('[part="close"]')}init(){super.init?.(),this.closeEle.onclick=()=>{this.close()}}})(Ft({slots:[],wrappedEleName:"vaadin-notification-card",style:()=>'\n vaadin-notification-card {\n box-shadow: none;\n }\n ::part(overlay) {\n box-shadow: none;\n background: none;\n }\n\n [part="close"] {\n cursor: pointer;\n display: flex;\n }\n\n [part="content"] {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n [part="root"] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n ',excludeAttrsSync:["tabindex","style"],componentName:ac}));customElements.define(ac,lc);const dc=He("notification"),cc=Be(Nt,Dt,Pt,e=>class t extends e{#Ke;constructor(){super();const e=this;Object.defineProperty(this.baseElement,"_container",{get:()=>(t._container||(t._container=document.createElement("descope-notification-container"),t._container.style.position="absolute",document.body.appendChild(t._container)),t._container.isConnected||setTimeout(()=>e.parentNode.appendChild(t._container)),t._container)}),Object.defineProperty(this.baseElement,"_card",{get:()=>e.#Ke}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#Ke.close()}init(){super.init?.(),this.createCard(),Ye(this,this.#Ke),$e(this.#Ke,this,{includeAttrs:["opened"]}),this.baseElement.renderer=e=>{Array.from(this.childNodes).forEach(t=>e.appendChild(t))}}get isContainerEmpty(){return!t._container.children.length}removeContainer(){t._container.remove()}removeNotification(){this.remove(),this.isContainerEmpty&&this.removeContainer()}createCard(){this.#Ke=document.createElement("descope-notification-card"),this.#Ke.addEventListener("card-closed",this.removeNotification.bind(this))}})(Ft({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:dc}));customElements.define(dc,cc);const pc=He("mappings-field-internal"),uc=er({componentName:pc,baseSelector:"div"}),hc=He("mappings-field"),{host:mc,helperText:gc,errorMessage:bc,mappingItem:yc,labels:fc,labelsText:vc,valueLabel:xc,attrLabel:Cc,separator:wc,labelsContainer:Ic}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},Mc=Be(Lt({mappings:{hostWidth:{...mc,property:"width"},hostDirection:{...mc,property:"direction"},fontSize:[{},mc,{...wc,property:"margin-top"}],fontFamily:[gc,bc,fc],separatorFontSize:{...wc,property:"font-size"},labelsFontSize:{...vc,property:"font-size"},labelsLineHeight:[{...vc,property:"line-height"},{...fc,property:"line-height"}],labelTextColor:[{...fc,property:vr.cssVarList.textColor},{...wc,property:"color"}],itemMarginBottom:{...yc,property:"margin-bottom"},valueLabelMinWidth:{...xc,property:"min-width"},attrLabelMinWidth:{...Cc,property:"min-width"},labelsMarginBottom:{...Ic,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Nt,Ut({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Dt,e=>class extends e{get defaultValues(){const e=this.getAttribute("default-values");if(e)try{return JSON.parse(e)}catch(e){console.error('could not parse data string from attribute "default-values" -',e.message)}return[]}setDefaultValues(){const e=this.defaultValues;Object.keys(e).length>0&&(this.inputElement.value=e)}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${pc}\n tabindex="-1"\n ></${pc}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(pc),Ye(this,this.inputElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","default-values","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),$e(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(Ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-mappings-field-internal [part="labels"] {\n display: none;\n grid-template-columns: 1fr var(${Mc.cssVarList.separatorWidth}) 1fr var(${Mc.cssVarList.removeButtonWidth});\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"],\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n ${vr.cssVarList.fontWeight}: 500;\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"] {\n grid-column: 1 / span 1;\n }\n\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n grid-column: 3 / span 1;\n }\n\n descope-mapping-item::part(wrapper) {\n display: grid;\n grid-template-columns: 1fr var(${Mc.cssVarList.separatorWidth}) 1fr var(${Mc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:hc}));customElements.define(pc,class extends uc{#Xe;static get observedAttributes(){return[].concat(uc.observedAttributes||[],["label-value","label-attr","button-label","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"])}isValidDataType(e){try{return e.every(e=>"object"==typeof e&&!Array.isArray(e)&&1===Object.getOwnPropertyNames(e).length&&"string"==typeof e[Object.keys(e)[0]]&&""!==e[Object.keys(e)[0]].trim())}catch(e){return!1}}get labelValue(){return this.getAttribute("label-value")||"Value"}get labelAttr(){return this.getAttribute("label-attr")||"Attribute"}get buttonLabel(){return this.getAttribute("button-label")||"Add mapping"}get options(){return this.getAttribute("options")||[]}addNewMappingItem(e){const t=document.createElement("descope-mapping-item");return t.setAttribute("bordered","true"),this.mappingsContainerEle.appendChild(t),Ye(this,t,{includeAttrs:["size","full-width","separator","options","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),setTimeout(()=>{this.setCustomValidity(""),t.addEventListener("mapping-item-removed",()=>{t===this.#Xe&&(this.resetInvalidIndication(),this.#Xe=void 0),t.remove(),this.setCustomValidity("")}),this.dispatchEvent(new CustomEvent("mapping-item-added",{bubbles:!0,composed:!0})),e&&t.focus()},0),t}get items(){return Array.from(this.mappingsContainerEle.querySelectorAll("descope-mapping-item"))}get value(){return this.items.reduce((e,t)=>t.value?[...e,t.value]:e,[])}set value(e){if(!this.isValidDataType(e))return void console.error("received invalid value to set - should be an array of objects with one key-value pair");const t=this.items;if(t.length>e.length)for(let r=e.length;r<t.length;r++)this.mappingsContainerEle.removeChild(t[r]);e.forEach((e,r)=>{const o=t[r];if(o)o.value=e;else{const t=this.addNewMappingItem(!1);setTimeout(()=>{t.value=e},0)}})}constructor(){super(),this.innerHTML='\n <div class="labels-container" part="labels"></div>\n <div class="mappings-container"></div>\n <div class="button-container"></div>\n ',this.labelsEle=this.querySelector(".labels-container"),this.mappingsContainerEle=this.querySelector(".mappings-container"),this.buttonContainer=this.querySelector(".button-container")}initLabels(){this.labelsEle.innerHTML=`\n <descope-text variant="body2" part="value-label">${this.labelValue}</descope-text>\n <descope-text variant="body2" part="attr-label">${this.labelAttr}</descope-text>\n `}initAddButton(){this.buttonContainer.innerHTML=`\n <descope-button variant="link" mode="primary" disabled="${this.isDisabled}">\n <vaadin-icon icon="vaadin:plus"></vaadin-icon>\n ${this.buttonLabel}\n </descope-button>\n `;const e=this.querySelector("descope-button");e.onclick=()=>{this.addNewMappingItem(!0)},Ye(this,e,{includeAttrs:["disabled"]})}#et(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",e=>{e.isTrusted&&(this.#Xe||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#Xe)&&this.#Xe?.checkValidity()&&(this.resetInvalidIndication(),this.#Xe.removeAttribute("invalid"),this.#Xe=void 0)}),We(this.mappingsContainerEle,this.#et.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const e=this.items.find(e=>!e.checkValidity());return e?e.validity:{}}#tt(e){e&&(this.#Xe=this.items.find(e=>!e.checkValidity()),this.#Xe?.reportValidity(),this.#Xe?.setAttribute("invalid","true"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"label-value"!==e&&"label-attr"!==e||this.initLabels(),"button-label"===e&&this.initAddButton(),"invalid"===e&&this.#tt("true"===r),"readonly"===e&&this.toggleAttribute("inert","true"===r)}});const Sc=He("mapping-item"),Ac=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Ec=er({componentName:Sc,baseSelector:"div"});customElements.define(Sc,class extends Ec{static get observedAttributes(){return[].concat(Ec.observedAttributes||[],Ac,["separator","options","invalid","disabled"])}get separator(){return this.getAttribute("separator")||"map to"}get value(){const e=this.attributeInput.value,t=this.valueInput.value;return e&&t?{[e]:t}:null}set value(e){if(1!==Object.entries(e).length)return void console.error("descope-mapping item expected expects only one key-value pair in the value but received: ",e);const[t,r]=Object.entries(e)[0];this.valueInput.value=r,this.attributeInput.value=t,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper" part="wrapper">\n <descope-text-field required="true"></descope-text-field>\n <div class="separator" part="separator">${this.separator}</div>\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n required="true"\n >\n </descope-combo-box>\n <descope-button variant="link" mode="primary">\n <vaadin-icon icon="vaadin:minus"></vaadin-icon>\n </descope-button>\n </div>\n\t`,N("\n .wrapper {\n display: flex;\n }\n .separator {\n text-align: center;\n flex-shrink: 0;\n }\n ",this),this.valueInput=this.shadowRoot.querySelector("descope-text-field"),this.attributeInput=this.shadowRoot.querySelector("descope-combo-box"),this.inputs=[this.valueInput,this.attributeInput],this.removeButton=this.shadowRoot.querySelector("descope-button"),Ye(this,this.valueInput,{includeAttrs:Ac}),Ye(this,this.attributeInput,{includeAttrs:[...Ac,"options"],mapAttrs:{options:"data"}}),Ye(this,this.removeButton,{includeAttrs:["disabled"]})}initRemoveButton(){this.removeButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("mapping-item-removed",{bubbles:!0,composed:!0})))}init(){super.init?.(),this.initRemoveButton()}getValidity(){const e=this.attributeInput.value,t=this.valueInput.value;return e&&t?{}:{badInput:!0}}reportValidity(){this.inputs.forEach(e=>e.reportValidity())}focus(){(this.checkValidity()||!this.valueInput.checkValidity()?this.valueInput:this.attributeInput).focus()}handleSeparatorChange(){this.shadowRoot.querySelector(".separator").textContent=this.separator}#rt(e){"true"===e&&(this.valueInput.value||(this.valueInput.setAttribute("invalid","true"),this.valueInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)),this.attributeInput.value||(this.attributeInput.setAttribute("invalid","true"),this.attributeInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"separator"===e&&this.handleSeparatorChange(),"invalid"===e&&this.#rt(r)}}),customElements.define(hc,Mc);const Tc=k("badge");class kc extends(ue({componentName:Tc,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n :host > div {\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ",this)}}const zc=I(ne({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{}}}),ae,se)(kc),Lc=He("user-attribute");class Nc extends(Ot({componentName:Lc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="root">\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>\n <div class="content-wrapper">\n <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>\n <div class="btn-wrapper">\n <descope-badge mode="default" bordered="true" size="xs"></descope-badge>\n <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjAwMDIgMC45OTIxNDlDMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNSAxMC4wMDAyIDEuMDE2MTVMOC4yMjQxOSAzLjAwODE1SDIuOTkyMTlDMi40NjQxOSAzLjAwODE1IDIuMDA4MTkgMy40NDAxNSAyLjAwODE5IDMuOTkyMTVWMTIuMDA4MkMyLjAwODE5IDEyLjUzNjIgMi40NDAxOSAxMi45OTIyIDIuOTkyMTkgMTIuOTkyMkg1LjUzNjE5QzUuODQ4MTkgMTMuMDQwMiA2LjE2MDE5IDEzLjA0MDIgNi40NzIxOSAxMi45OTIySDExLjAwODJDMTEuNTM2MiAxMi45OTIyIDExLjk5MjIgMTIuNTYwMiAxMS45OTIyIDEyLjAwODJWNy43ODQxNkwxMy45MzYyIDUuNjI0MTVMMTQuMDA4MiA1LjY3MjE1VjExLjk4NDJDMTQuMDA4MiAxMy42NjQyIDEyLjY2NDIgMTUuMDA4MiAxMS4wMDgyIDE1LjAwODJIMy4wMTYxOUMxLjMzNjE5IDE1LjAwODIgLTAuMDA3ODEyNSAxMy42NjQyIC0wLjAwNzgxMjUgMTEuOTg0MlYzLjk5MjE1Qy0wLjAwNzgxMjUgMi4zMzYxNSAxLjMzNjE5IDAuOTkyMTQ5IDMuMDE2MTkgMC45OTIxNDlIMTAuMDAwMlpNMTEuMjcyMiAyLjYyNDE1TDEyLjYxNjIgNC4xMTIxNUw3LjcyMDE5IDkuNjgwMTZDNy41MDQxOSA5LjkyMDE2IDYuODMyMTkgMTAuMjMyMiA1LjY4MDE5IDEwLjYxNjJDNS42NTYxOSAxMC42NDAyIDUuNjA4MTkgMTAuNjQwMiA1LjU2MDE5IDEwLjYxNjJDNS40NjQxOSAxMC41OTIyIDUuMzkyMTkgMTAuNDcyMiA1LjQ0MDE5IDEwLjM3NjJDNS43NTIxOSA5LjI0ODE2IDYuMDQwMTkgOC41NTIxNiA2LjI1NjE5IDguMzEyMTZMMTEuMjcyMiAyLjYyNDE1Wk0xMS45MjAyIDEuODU2MTVMMTMuMjg4MiAwLjMyMDE0OUMxMy42NDgyIC0wLjA4Nzg1MTYgMTQuMjcyMiAtMC4xMTE4NTIgMTQuNjgwMiAwLjI3MjE0OUMxNS4wODgyIDAuNjMyMTQ5IDE1LjExMjIgMS4yODAxNSAxNC43NTIyIDEuNjg4MTVMMTMuMjY0MiAzLjM2ODE1TDExLjkyMDIgMS44NTYxNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K></vaadin-icon>\n </descope-button>\n <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTZDMSAxNy4xIDEuOSAxOCAzIDE4SDExQzEyLjEgMTggMTMgMTcuMSAxMyAxNlY0SDFWMTZaTTMgNkgxMVYxNkgzVjZaTTEwLjUgMUw5LjUgMEg0LjVMMy41IDFIMFYzSDE0VjFIMTAuNVoiIGZpbGw9ImN1cnJlbnRjb2xvciIvPgo8L3N2Zz4K></vaadin-icon>\n </descope-button>\n </div>\n </div>\n </div>\n\t\t',N(`\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n container-type: inline-size;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n @container (max-width: 529px) {\n .root {\n flex-wrap: wrap;\n }\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .content-wrapper {\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n max-width: 100%;\n min-width: 0;\n }\n\n .label {\n flex-grow: 1;\n width: 100%;\n }\n\n .value {\n flex-grow: 1;\n }\n\n descope-badge {\n margin-inline-end: 10px;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${vr.cssVarList.textColor});\n }\n\n :host([readonly="true"]) descope-button {\n visibility: hidden;\n }\n `,this),this.deleteButton=this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]'),this.editButton=this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]'),this.badge=this.shadowRoot.querySelector("descope-badge"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]'),this.valueText=this.shadowRoot.querySelector('descope-text[data-id="value-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onValueOrPlaceholderChange(){const e=this.value||this.placeholder,t=this.value?"primary":"secondary";this.valueText.innerText=e,this.valueText.setAttribute("title",e),this.valueText.setAttribute("mode",t)}onBadgeLabelChange(){this.badgeLabel?(this.badge.innerText=this.badgeLabel,this.badge.style.display=""):this.badge.style.display="none"}onBadgeTooltipTextChange(){this.badge.setAttribute("title",this.badgeTooltipText||this.badgeLabel)}onIsRequiredChange(){this.labelText.classList.toggle("required",this.isRequired)}get label(){return this.getAttribute("label")||""}get value(){return this.getAttribute("value")||""}get placeholder(){return this.getAttribute("placeholder")||""}get isRequired(){return"true"===this.getAttribute("required")}get badgeLabel(){return this.getAttribute("badge-label")||""}get badgeTooltipText(){return this.getAttribute("badge-tooltip-text")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.handleDeleteButtonVisibility(),this.deleteButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,composed:!0}))),this.editButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("edit-clicked",{bubbles:!0,composed:!0})))}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("label"===e?this.onLabelChange():"value"===e||"placeholder"===e?this.onValueOrPlaceholderChange():"required"===e?this.onIsRequiredChange():"badge-label"===e?this.onBadgeLabelChange():"badge-tooltip-text"===e&&this.onBadgeTooltipTextChange(),"value"!==e&&"required"!==e||this.handleDeleteButtonVisibility())}}const{host:Dc,textFields:Vc,buttons:Pc,badge:Bc,labelText:Rc,contentWrapper:Oc}={host:{selector:()=>":host"},textFields:{selector:"descope-text"},labelText:{selector:'descope-text[data-id="label-text"]'},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},contentWrapper:{selector:" .content-wrapper"}},jc=Be(Lt({mappings:{hostWidth:{...Dc,property:"width"},hostMinWidth:{...Dc,property:"min-width"},hostMaxWidth:{...Dc,property:"max-width"},hostDirection:[{...Dc,property:"direction"},{...Vc,property:vr.cssVarList.hostDirection},{...Pc,property:Io.cssVarList.hostDirection},{...Bc,property:zc.cssVarList.hostDirection}],labelMinWidth:{...Rc,property:"min-width"},contentMinWidth:{...Oc,property:"min-width"},badgeMaxWidth:{...Bc,property:"max-width"},itemsGap:[{property:"gap"},{...Oc,property:"gap"}]}}),Nt,Dt)(Nc);customElements.define(Tc,zc),customElements.define(Lc,jc);const Fc=He("user-auth-method");class Wc extends(Ot({componentName:Fc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="root">\n <div class="text-wrapper">\n <slot name="method-icon"></slot>\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-button class="btn unfulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n <descope-button class="btn fulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="fulfilled-button-icon"></slot>\n </descope-button>\n <div class="status-indicator hidden">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==></vaadin-icon>\n </div>\n <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>\n </div>\n </div>\n\t\t',N('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n min-width: 0;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n min-width: 0;\n }\n\n .status-indicator {\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n padding-inline-end: 1em;\n }\n\n .hidden {\n display: none;\n }\n\n .hidden-btn {\n width: 0;\n overflow: hidden;\n opacity: 0;\n pointer-events: none;\n }\n\n slot[name="method-icon"]{\n display: inline-flex;\n align-items: center;\n }\n ',this),this.unfulfilledButton=this.shadowRoot.querySelector(".btn.unfulfilled"),this.fulfilledButton=this.shadowRoot.querySelector(".btn.fulfilled"),this.statusIndicator=this.shadowRoot.querySelector(".status-indicator"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}updateButtonLabel(e,t){let r=e.querySelector("span");t?(r||(r=document.createElement("span"),e.appendChild(r)),r.innerText=t):r&&e.removeChild(r)}onFulfilledChange(){this.isFulfilled?(this.unfulfilledButton.classList.add("hidden"),this.handleFulfilled()):(this.fulfilledButton.classList.add("hidden"),this.handleUnfulfilled())}handleFulfilled(){this.fulfilledButton.classList.toggle("hidden",!this.isFulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isFulfilledEditable)}handleUnfulfilled(){this.unfulfilledButton.classList.toggle("hidden",!this.isUnfulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isUnfulfilledEditable)}get label(){return this.getAttribute("label")||""}get unfulfilledButtonLabel(){return this.getAttribute("button-label")||""}get fulfilledButtonLabel(){return this.getAttribute("fulfilled-button-label")||""}get isFulfilled(){return"true"===this.getAttribute("fulfilled")}get isFulfilledEditable(){return"true"===this.getAttribute("fulfilled-editable")}get isUnfulfilledEditable(){return"false"!==this.getAttribute("unfulfilled-editable")}init(){this.onLabelChange(),this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel),this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel),this.onFulfilledChange(),this.unfulfilledButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0}))),this.fulfilledButton.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("fulfilled-button-clicked",{bubbles:!0,composed:!0}))})}static get observedAttributes(){return["label","fulfilled","button-label","fulfilled-button-label","fulfilled-editable","unfulfilled-editable"].concat(super.observedAttributes)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("label"===e?this.onLabelChange():"fulfilled"===e?this.onFulfilledChange():"button-label"===e?this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel):"fulfilled-button-label"===e?this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel):"fulfilled-editable"===e&&this.isFulfilled?this.handleFulfilled():"unfulfilled-editable"!==e||this.isFulfilled||this.handleUnfulfilled())}}const{host:_c,textField:$c,buttons:Hc,badge:qc,textWrapper:Yc,methodIconSlot:Uc}={host:{selector:()=>":host"},textField:{selector:"descope-text"},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"},methodIconSlot:{selector:'slot[name="method-icon"]'}},Gc=Be(Lt({mappings:{hostWidth:{..._c,property:"width"},hostMinWidth:{..._c,property:"min-width"},hostMaxWidth:{..._c,property:"max-width"},hostDirection:[{..._c,property:"direction"},{...$c,property:vr.cssVarList.hostDirection},{...Hc,property:Io.cssVarList.hostDirection},{...qc,property:zc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Yc,property:"gap"}],iconSize:[{...Uc,property:"width"},{...Uc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:yo.cssVarList.fill}]}}),Nt,Dt)(Wc);customElements.define(Fc,Gc);const Zc=He("saml-group-mappings-internal"),Qc=er({componentName:Zc,baseSelector:""}),Jc=He("saml-group-mappings"),{host:Kc,groupInput:Xc,errorMessage:ep}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},tp=Be(Lt({mappings:{hostWidth:{...Kc,property:"width"},hostDirection:{...Kc,property:"direction"},groupNameInputMarginBottom:{...Xc,property:"margin-bottom"},errorMessageIcon:{...ep,property:"background-image"},errorMessageIconSize:{...ep,property:"background-size"},errorMessageIconPadding:{...ep,property:"padding-inline-start"},errorMessageIconRepeat:{...ep,property:"background-repeat"},errorMessageIconPosition:{...ep,property:"background-position"},errorMessageFontSize:{...ep,property:"font-size"}}}),Nt,Ut({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Dt,e=>class extends e{init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${Zc}\n tabindex="-1"\n ></${Zc}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Zc),Ye(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),$e(this,this.inputElement,{includeAttrs:["invalid"]})}})(Ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-text-field {\n width: auto;\n }\n\n descope-mappings-field {\n display: block;\n }\n ",excludeAttrsSync:["tabindex","label-group","label-value","label-attr","button-label","separator","options","error-message","style"],componentName:Jc}));customElements.define(Zc,class extends Qc{static get observedAttributes(){return["invalid"].concat(Qc.observedAttributes||[])}constructor(){super(),this.innerHTML='\n <descope-text-field variant="body2" bordered="true"></descope-text-field>\n <descope-mappings-field></descope-mappings-field>\n ',this.groupInputElement=this.querySelector("descope-text-field"),this.mappingsElement=this.querySelector("descope-mappings-field")}resetInvalidIndication(){this.removeAttribute("invalid")}handleMappingsInvalidChange(e){e.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",e=>{e.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),Ye(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),Ye(this,this.mappingsElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","readonly","disabled","data-errormessage-pattern-mismatch"]}),Fe(this.mappingsElement,this.handleMappingsInvalidChange.bind(this),{includeAttrs:["invalid"]})}get value(){return{group:this.groupInputElement.value,mappings:this.mappingsElement.value}}set value(e){e?.group&&"string"==typeof e.group&&(this.groupInputElement.value=e.group),Array.isArray(e?.mappings)&&(this.mappingsElement.value=e.mappings)}getValidity(){return this.groupInputElement.checkValidity()?this.mappingsElement.checkValidity()?{}:this.mappingsElement.validity:this.groupInputElement.validity}#ot(e){if(e){if(!this.groupInputElement.checkValidity())return void this.groupInputElement.setAttribute("invalid","true");this.mappingsElement.checkValidity()||this.mappingsElement.setAttribute("invalid","true")}}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),"invalid"===e&&this.#ot("true"===r)}}),customElements.define(Jc,tp);const rp=He("radio-button"),op=Be(Lt({mappings:{cursor:[{},{selector:"label"}],fontSize:[{selector:"label"},{}],labelTextColor:{selector:"label",property:"color"},fontFamily:{selector:"label"},radioSize:[{selector:"::part(radio)",property:"height"},{selector:"::part(radio)",property:"width"}],radioBackgroundColor:{selector:"::part(radio)",property:"background-color"},radioMargin:{selector:"::part(radio)",property:"margin"},radioCheckedSize:{selector:"::part(radio)::after",property:"border-width"},radioCheckedColor:{selector:"::part(radio)::after",property:"border-color"},radioBorderColor:{selector:"::part(radio)",property:"border-color",fallback:"none"},radioBorderWidth:{selector:"::part(radio)",property:"border-width",fallback:0},radioBorderStyle:{selector:"::part(radio)",property:"border-style",fallback:"solid"}}}),Ut({proxyProps:["setSelectionRange"]}),Dt,e=>class extends e{constructor(){super(),this.baseElement.checkValidity=()=>{}}init(){this.baseElement.addEventListener("checked-changed",e=>{this.dispatchEvent(new CustomEvent("checked-changed",{detail:e.detail},{bubbles:!0,composed:!0}))}),super.init?.(),We(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(Ft({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:rp})),ip=He("radio-group"),np=Be(Lt({mappings:{...Bi,buttonsSpacing:{selector:"::part(group-field)",property:"justify-content"},buttonsRowGap:{selector:"::part(group-field)",property:"row-gap"},buttonsColumnGap:{selector:"::part(group-field)",property:"column-gap"},itemsLabelColor:{selector:()=>`::slotted(${op.componentName})`,property:op.cssVarList.labelTextColor}}}),Nt,Ut({proxyProps:["setSelectionRange"]}),Dt,e=>class extends e{#J=({value:e,label:t})=>`<descope-radio-button value="${e}">${t}</descope-radio-button>`;#V;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(rp)}),this.baseElement.__filterRadioButtons=e=>e.filter(e=>e.localName===rp),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#V)return this.#V;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" - ',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#V=e,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.((e,t)=>e+(this.#J?.(t||{})||""),"")}renderItems(){const e=this.getItemsTemplate();e&&(this.innerHTML=e)}init(){super.init?.(),this.inputElement=this.baseElement,this.renderItems(),Fe(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),Ye(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),We(this,({addedNodes:e})=>{e.forEach(e=>{e.setAttribute("size",this.size)})}),Fe(this,()=>{this.items.forEach(e=>{e.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(Ft({slots:["","prefix"],wrappedEleName:"vaadin-radio-group",style:()=>`\n :host {\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n vaadin-radio-group {\n padding: 0;\n width: 100%;\n }\n\n ${ht("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:ip,includeForwardProps:["value"]}));customElements.define(ip,np),customElements.define(rp,op);const ap=()=>!0,sp=e=>`<pre>${JSON.stringify(e,null,4)}</pre>`,lp=He("scopes-list"),dp=["checkbox","switch"];class cp extends(Ot({componentName:lp,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get isReadOnly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"sm"}#it(){return Array.from(this.shadowRoot.querySelector("div").children)}reportValidity(){this.checkValidity()}checkValidity(){return this.data.every(e=>!e.required||this.value.includes(e.id))}get value(){return this.#it().filter(e=>e.checked).map(e=>e.getAttribute("data-id"))}set value(e=[]){this.#it().forEach(t=>{t.checked=e.includes(t.getAttribute("data-id"))})}get variant(){const e=this.getAttribute("variant");return dp.includes(e)?e:dp[0]}}const pp=Be(Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>gr.componentName,property:gr.cssVarList.hostDirection},{selector:()=>Or.componentName,property:Or.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${gr.componentName}[required="true"]`,property:gr.cssVarList.inputBorderColor},{selector:`${Or.componentName}[required="true"]`,property:Or.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${gr.componentName}[required="true"]`,property:gr.cssVarList.inputValueTextColor},{selector:`${Or.componentName}[required="true"]`,property:Or.cssVarList.knobColor}]}}),(({itemRenderer:e=sp,validateSchema:t=ap,slotName:r,rerenderAttrsList:o=[]})=>i=>class extends i{#V=[];#B(e){if(!t)return!0;const r=t(e);return!0===r||(console.error("Data schema validation failed",r||""),!1)}#R(){const e=r?`*[slot="${r}"]`:":not([slot])";this.baseElement.querySelectorAll(e).forEach(e=>e.remove())}#O(){this.#R(),this.data.forEach((t,r)=>{const o="string"==typeof(i=e(t,r,this))?(e=>{const t=document.createElement("template");return t.innerHTML=e,t})(i).content:i instanceof HTMLTemplateElement?i.content:(console.error("Invalid template",i),null);var i;this.baseElement.appendChild(o?.cloneNode(!0))})}set data(e){this.#B(e)&&(this.#V=e,this.#O())}get data(){return this.#V}init(){super.init?.(),Fe(this,e=>{e.includes("data")?this.#j():this.#O()},{includeAttrs:[...o,"data"]})}#j(){const e=this.getAttribute("data");if(e)try{this.data=JSON.parse(e)}catch(t){console.warn("Invalid JSON data",e)}}})({itemRenderer:({id:e,desc:t,required:r=!1},o,i)=>{const n="checkbox"===i.variant?gr:Or;return`\n <${n.componentName}\n bordered="true"\n size=${i.size}\n label="${t}"\n data-id="${e}"\n readonly="${r||i.isReadOnly}"\n required="${r}"\n checked="true"\n ></${n.componentName}>\n`},rerenderAttrsList:["size","variant"]}),Nt,Dt)(cp),up=k("list-item"),hp=I(ne({mappings:{verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],backgroundColor:{},borderColor:{},borderStyle:{},borderWidth:{},borderRadius:{},outline:{},cursor:{},gap:{},maxWidth:{selector:()=>":host"},alignItems:{},flexDirection:{},transition:{}}}),ae,se,e=>class extends e{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",N("\n slot {\n width: 100%;\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n :host {\n display: block;\n }\n ",this)}},e=>class extends e{init(){super.init?.(),this.baseElement.addEventListener("mousedown",e=>{e.preventDefault(),this.setAttribute("active","true"),window.addEventListener("mouseup",()=>this.removeAttribute("active"),{once:!0})})}})(ue({componentName:up,baseSelector:"slot"}));customElements.define(up,hp);const mp=k("list");class gp extends(ue({componentName:mp,baseSelector:".wrapper"})){static get observedAttributes(){return["variant","readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <slot></slot>\n <slot name="empty-state">\n No item...\n </slot>\n </div>\n\t',N('\n .wrapper {\n overflow: auto;\n display: grid;\n max-height: 100%;\n width: 100%;\n }\n\n :host {\n display: inline-flex;\n width: 100%;\n }\n slot[name="empty-state"] {\n justify-content: center;\n align-items: center;\n display: flex;\n flex-grow: 1;\n }\n\n :host slot[name="empty-state"] {\n display: none;\n }\n :host([empty]) slot[name="empty-state"] {\n display: flex;\n }\n ::slotted(:not([slot])) {\n width: 100%;\n }\n ',this)}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}#nt(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#at(){this.items.forEach(e=>{let t=e;t.localName!==hp.componentName&&(t=e.querySelector(hp.componentName));const r="tiles"===this.variant?"tile":"row";t?.setAttribute("variant",r)})}init(){super.init?.(),A(this,()=>{this.#nt(),this.#at(),this.#st()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#st(){this.items.forEach(e=>{this.isReadOnly?e.setAttribute("inert",""):e.removeAttribute("inert")})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("variant"===e?this.#at():"readonly"===e&&this.#st())}}const bp=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},maxHeight:{selector:()=>":host"},minHeight:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],hostDirection:{selector:()=>":host",property:"direction"},fontFamily:{},gap:{},backgroundColor:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{},gridTemplateColumns:{},maxItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"max-width"},minItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"min-width"},itemsHorizontalAlign:{selector:()=>"::slotted(*)",property:"justify-self"},emptyStateTextColor:{selector:()=>'slot[name="empty-state"]',property:"color"},emptyStateTextFontFamily:{selector:()=>'slot[name="empty-state"]',property:"font-family"}}}),ae,se)(gp);customElements.define(mp,bp),customElements.define(lp,pp);const yp=He("third-party-app-logo");class fp extends(Ot({componentName:yp,baseSelector:".wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div class="wrapper">\n <div class="third-party-app-logo-wrapper">\n <div class="third-party-app-logo"></div>\n </div>\n <div class="arrows">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMTQ0OTIgMTUuNjQ1TDcuNDk5OTIgMTRMMi44MzMyNSAxOC42NjY3TDcuNDk5OTIgMjMuMzMzM0w5LjE0NDkyIDIxLjY4ODNMNy4zMDE1OSAxOS44MzMzSDI0Ljk5OTlWMTcuNUg3LjMwMTU5TDkuMTQ0OTIgMTUuNjQ1WiIgZmlsbD0iIzYzNkM3NCIvPgo8cGF0aCBkPSJNMTkuODU1IDEyLjM1NTNMMjEuNSAxNC4wMDAzTDI2LjE2NjcgOS4zMzM2NkwyMS41IDQuNjY2OTlMMTkuODU1IDYuMzExOTlMMjEuNjk4MyA4LjE2Njk5SDRWMTAuNTAwM0gyMS42OTgzTDE5Ljg1NSAxMi4zNTUzWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K"></descope-icon>\n </div>\n <div class="company-logo-wrapper">\n <descope-logo st-height="100%"></descope-logo>\n </div>\n </div>\n\t\t\t',N('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\n .wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: max-content;\n }\n\n\t\t\t\t.third-party-app-logo {\n flex-shrink: 0;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t}\n\n .company-logo-wrapper, .third-party-app-logo-wrapper {\n flex-shrink: 0;\n display: inline-flex;\n }\n\n .company-logo-wrapper {\n justify-content: flex-end;\n }\n\n .third-party-app-logo-wrapper {\n justify-content: flex-start;\n }\n\n .arrows {\n flex-shrink: 0;\n display: flex;\n }\n ',this)}}const vp=">.company-logo-wrapper",xp=">.third-party-app-logo-wrapper",Cp=Be(Lt({mappings:{logoMaxHeight:[{selector:vp,property:"height"},{selector:xp,property:"height"}],logoMaxWidth:[{selector:vp,property:"max-width"},{selector:xp,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:hn.componentName,property:hn.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:yo.componentName,property:yo.cssVarList.fill}}}),Nt,Dt)(fp);customElements.define(uo,go),customElements.define(bo,yo),customElements.define(yp,Cp);const wp=He("security-questions-setup"),Ip=["full-width","readonly","size","label-type","question-label","question-placeholder","question-data-errormessage-value-missing","answer-label","answer-placeholder","answer-data-errormessage-value-missing","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Mp=["count","questions"];class Sp extends(Ot({componentName:wp,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get count(){return Number(this.getAttribute("count"))||0}#lt(){const e=Array.from({length:this.count}).map((e,t)=>`\n <div class="question-wrapper">\n <descope-combo-box\n data-id="${t}"\n item-label-path="data-name"\n item-value-path="data-id"\n bordered="true"\n required="true"\n clear-button-visible="true"\n ></descope-combo-box>\n\n <descope-text-field\n data-id="${t}"\n required="true"\n bordered="true"\n minlength="2"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=e.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.comboBoxes.forEach(e=>{e.addEventListener("change",e=>{this.updateRemainingCombosData(e.target),this.getAttachedTextField(e.target).value=""}),e.data=this.data}),this.#dt(Ip)}getAttachedTextField(e){const t=`descope-text-field[data-id="${e.getAttribute("data-id")}"]`;return this.baseElement.querySelector(t)}filterData(e){const t=this.data.filter(t=>t.value===e||!this.selectedQuestionIds.includes(t.value));return t}reportValidity(){return this.inputs.reverse().forEach(e=>e.reportValidity()),this.checkValidity()}checkValidity(){return[...this.comboBoxes,...this.textFields].every(e=>e.checkValidity())}updateRemainingCombosData(e){this.comboBoxes.filter(t=>t!==e).forEach(e=>{e.data=this.filterData(e.value)})}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(e){return console.error(wp,"Error parsing questions attribute",e),[]}}get data(){return this.questions.map(({id:e,text:t})=>({value:e,label:t}))}get comboBoxes(){return Array.from(this.baseElement.querySelectorAll("descope-combo-box"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get inputs(){return Array.from(this.baseElement.querySelectorAll("descope-combo-box, descope-text-field"))}get selectedQuestionIds(){return this.comboBoxes.map(e=>e.value)}get value(){return this.comboBoxes.map(e=>({id:e.value,answer:this.getAttachedTextField(e).value}))}set value(e=[]){e.forEach((e,t)=>{const r=this.comboBoxes[t],o=this.getAttachedTextField(r);r.value=e.id,o.value=e.answer})}#ct(e,t,r){null===r?e.removeAttribute(t):e.setAttribute(t,r)}#dt(e){const t={question:this.comboBoxes,answer:this.textFields};e.forEach(e=>{const[r,...o]=e.split("-"),i=t[r]||this.inputs,n=t[r]?o.join("-"):e;i.forEach(t=>{this.#ct(t,n,this.getAttribute(e))})})}init(){super.init?.(),Fe(this,()=>{this.#lt()},{includeAttrs:Mp}),Fe(this,this.#dt.bind(this),{includeAttrs:Ip})}}const Ap=Be(Lt({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>co.componentName,property:co.cssVarList.hostDirection},{selector:()=>ji.componentName,property:ji.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Nt,Dt)(Sp);customElements.define(wp,Ap);const Ep=He("security-questions-verify"),Tp=["full-width","readonly","size","answer-placeholder","answer-data-errormessage-value-missing","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],kp=["question-mode"],zp={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},Lp=[...Tp,...kp],Np=["questions"];class Dp extends(Ot({componentName:Ep,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",N("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#lt(){const e=this.questions.map(({id:e,text:t})=>`\n <div class="question-wrapper">\n <descope-text\n data-id="${e}"\n >${t}</descope-text>\n\n <descope-text-field\n data-id="${e}"\n required="true"\n bordered="true"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=e.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.#dt(Lp),this.texts.forEach(e=>{const t=this.textFields.find(t=>t.getAttribute("data-id")===e.getAttribute("data-id"));t&&(e.onclick=t.focus.bind(t))})}reportValidity(){return this.textFields.reverse().forEach(e=>e.reportValidity()),this.checkValidity()}checkValidity(){return this.textFields.every(e=>e.checkValidity())}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(e){return console.error(Ep,"Error parsing questions attribute",e),[]}}get texts(){return Array.from(this.baseElement.querySelectorAll("descope-text"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get elements(){return Array.from(this.baseElement.querySelectorAll("descope-text, descope-text-field"))}get value(){return this.textFields.map(e=>({id:e.getAttribute("data-id"),answer:e.value}))}set value(e=[]){e.forEach(({id:e,answer:t})=>{const r=this.textFields.find(t=>t.getAttribute("data-id")===e);r&&(r.value=t)})}#ct(e,t,r){null===r?e.removeAttribute(t):e.setAttribute(t,r)}#pt(e){switch(!0){case Tp.includes(e):return this.textFields;case kp.includes(e):return this.texts;default:return[]}}#dt(e){e.forEach(e=>{this.#pt(e).forEach(t=>{this.#ct(t,zp[e]||e,this.getAttribute(e))})})}init(){super.init?.(),Fe(this,()=>{this.#lt()},{includeAttrs:Np}),Fe(this,this.#dt.bind(this),{includeAttrs:Lp})}}const Vp=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>vr.componentName,property:vr.cssVarList.hostDirection},{selector:()=>ji.componentName,property:ji.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>vr.componentName,property:vr.cssVarList.textAlign},questionFontSize:{selector:()=>vr.componentName,property:vr.cssVarList.fontSize},questionFontFamily:{selector:()=>vr.componentName,property:vr.cssVarList.fontFamily},questionCursor:{selector:()=>vr.componentName,property:"cursor"},errorMessageIcon:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>vr.componentName,property:vr.cssVarList.errorMessageFontSize}}}),Nt,Dt)(Dp);customElements.define(Ep,Vp);const Pp=/^\d+$/,Bp=He("hybrid-field"),Rp={shared:["bordered","full-width","label-type","size","disabled","readonly","required","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],email:["label","placeholder","data-errormessage-value-missing-email","data-errormessage-pattern-mismatch-email","external-input"],phone:{countryCode:["phone-input-label","country-input-label","country-input-placeholder","restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","data-errormessage-value-missing-phone"],inputBox:["label","restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","data-errormessage-value-missing-phone"]}},Op={email:{"data-errormessage-value-missing-email":"data-errormessage-value-missing","data-errormessage-pattern-mismatch-email":"data-errormessage-pattern-mismatch"},phone:{"phone-input-label":"label","phone-minlength":"minlength","phone-format-value":"format-value","phone-strict-validation":"strict-validation","data-errormessage-value-missing-phone":"data-errormessage-value-missing"}},jp="descope-phone-field",Fp=Ot({componentName:Bp,baseSelector:"div"}),Wp=Be(Lt({componentNameOverride:He("input-wrapper")}),Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>"descope-email-field",property:"direction"},{selector:()=>"descope-phone-field",property:"direction"},{selector:()=>"descope-phone-input-box-field",property:"direction"}],errorMessageIcon:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIcon},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconSize},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconPadding},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconRepeat},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageIconPosition},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Va.componentName,property:Va.cssVarList.errorMessageFontSize},{selector:()=>Ja.componentName,property:Ja.cssVarList.errorMessageFontSize}]}}),Nt,Dt)(class extends Fp{#ut=!1;#ht;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper">\n <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>\n <descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>\n <descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>\n </div>\n\t\t`,N("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n padding: 0;\n gap: 0;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n descope-email-field,\n descope-phone-field,\n descope-phone-input-box-field {\n grid-area: 1/1;\n width: 100%;\n height: 100%;\n }\n .hidden {\n visibility: hidden;\n }\n ",this)}get isExternalInput(){return"true"===this.getAttribute("external-input")}get emailInputEle(){return this.isExternalInput?this.emailInput.externalInput:this.emailInput.inputElement}get phoneVariant(){return"inputBox"===this.getAttribute("phone-variant")?this.phoneInputBoxInput:this.phoneCountryCodeInput}get defaultCode(){const e=this.phoneCountryCodeInput.countryCodes?.[0]||"";return this.getAttribute("default-code")||e}get activeInputEle(){return this.activeInput===this.emailInput?this.emailInputEle:this.phoneVariant.phoneNumberInputEle}get value(){return this.activeInput?.value||""}set value(e){this.handleActiveInput(e),this.activeInput.value=e}async init(){super.init?.(),this.initInputs(),this.updateAttrs(),this.toggleInputVisibility(),await this.waitForInputs(),this.initInputEles(),this.overrideEmailInputType(),this.overrideEmailSetAttribute()}waitForInputs(){return new Promise(e=>{const t=setInterval(()=>{this.emailInputEle&&(clearInterval(t),e())})})}initInputs(){this.emailInput=this.shadowRoot.querySelector("descope-email-field"),this.phoneCountryCodeInput=this.shadowRoot.querySelector(jp),this.phoneInputBoxInput=this.shadowRoot.querySelector("descope-phone-input-box-field"),this.inputs=[this.emailInput,this.phoneCountryCodeInput,this.phoneInputBoxInput],this.activeInput=this.emailInput}initInputEles(){[this.emailInputEle,this.phoneCountryCodeInput.phoneNumberInputEle,this.phoneInputBoxInput.phoneNumberInputEle].forEach(e=>{e.addEventListener("input",this.onValueChange.bind(this))})}overrideEmailInputType(){this.emailInputEle.addEventListener("focus",()=>{this.emailInputEle.setAttribute("type","text")}),this.emailInputEle.addEventListener("blur",()=>{setTimeout(()=>{this.emailInputEle.setAttribute("type","email")})})}overrideEmailSetAttribute(){const e=this.emailInput.setAttribute.bind(this.emailInputEle);this.emailInputEle.setAttribute=(t,r)=>("type"!==t||"email"!==r||!this.emailInput.hasAttribute("focused"))&&e(t,r)}updateAttrs(){Ye(this,this.emailInput,{includeAttrs:Rp.email,mapAttrs:Op.email}),Ye(this,this.phoneCountryCodeInput,{includeAttrs:Rp.phone.countryCode,mapAttrs:Op.phone}),Ye(this,this.phoneInputBoxInput,{includeAttrs:Rp.phone.inputBox,mapAttrs:Op.phone}),this.inputs.forEach(e=>Ye(this,e,{includeAttrs:Rp.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#ht=this.activeInputEle.selectionStart,this.handleActiveInput(this.activeInput.value)}handleActiveInput(e){const t=(e=>Pp.test(e.replaceAll("+","").replaceAll("-","")))(e)?this.phoneVariant:this.emailInput;this.activeInput!==t&&this.setActiveInput(t)}setActiveInput(e){const t=this.activeInput.value;this.activeInput=e,this.setActiveInputValue(t),this.#ut&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{this.activeInputEle.focus(),this.activeInputEle.setSelectionRange?.(this.#ht,this.#ht)})}setActiveInputValue(e){const t=(e=>e.replace(/\+\d+-/,""))(e),r=this.activeInput.localName===jp?`${this.phoneCountryCodeInput.countryCodeItems}-${t}`:t;this.activeInput.value=r}toggleInputVisibility(){this.inputs.forEach(e=>{e!==this.activeInput?e.classList.add("hidden"):e.classList.remove("hidden")})}reportValidity(){this.#ut=!0;const e=this.activeInputEle,t=e.type;return e.setAttribute("type","text"),setTimeout(()=>{e.setSelectionRange?.(e.value.length,e.value.length),e.setAttribute("type",t)}),this.activeInput.reportValidity()}checkValidity(){return this.activeInput.checkValidity()}});customElements.define(Bp,Wp);const _p=He("alert");class $p extends(Ot({componentName:_p,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="icon"></div>\n <div class="content">\n <descope-enriched-text>\n <slot></slot>\n </descope-enriched-text>\n </div>\n </div>\n ',N('\n :host {\n display: inline-flex;\n }\n :host > div {\n display: flex;\n width: 100%;\n }\n :host([empty="true"]) {\n display: none;\n }\n .icon {\n flex-shrink: 0;\n }\n .content {\n display: flex;\n flex-wrap: wrap;\n white-space: normal;\n overflow-wrap: break-word;\n }\n ',this)}init(){super.init?.(),this.slotEle=this.shadowRoot.querySelector("slot"),this.textComp=this.shadowRoot.querySelector("descope-enriched-text"),this.slotEle.addEventListener("slotchange",this.handleSlotChange.bind(this)),T(this.textComp,this,{includeAttrs:["empty"]}),A(this,this.handleChildrenChange.bind(this)),Ye(this,this.textComp,{includeAttrs:["variant","full-width","link-target-blank"]})}handleChildrenChange(){this.textComp.textContent=this.textContent}handleSlotChange(){const e=this.slotEle.assignedNodes({flatten:!0});e.length&&(this.textComp.textContent=e[0]?.textContent||"")}}const{icon:Hp}={icon:{selector:()=>".icon"}},qp=Be(Lt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:De.componentName,property:De.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:De.componentName,property:De.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:De.componentName,property:De.cssVarList.textAlign}],icon:[{...Hp,property:"content"},{...Hp,property:"display",fallback:"none"}],iconSize:[{...Hp,property:"width"},{...Hp,property:"height"}]}}),Lt({componentNameOverride:He("enriched-text")}),Lt({componentNameOverride:He("text")}),Nt,Dt)($p);customElements.define(_p,qp);const Yp=He("hcaptcha"),Up=["enabled","site-key"],Gp=er({componentName:Yp,baseSelector:":host > div"}),Zp=Be(Lt({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],maxHeight:[{selector:">img",property:"height"},{selector:">#hcaptcha",property:"height"}],maxWidth:[{selector:">img",property:"max-width"},{selector:">hcaptcha",property:"max-width"}]}}),Nt,Dt)(class extends Gp{static get observedAttributes(){return Up.concat(Gp.observedAttributes||[])}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"enabled"===e&&this.toggleCaptchaEles("true"===r)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="hcaptcha"></span>\n <input id="hcaptcha-input" type="hidden" name="hcaptcha" required />\n <img src="https://imgs.descope.com/connectors/templates/hcaptcha/hcaptcha-big.png" alt="hcaptcha"/>\n </div>\n <slot></slot>\n\t',N("\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #hcaptcha-input {\n display: none;\n }\n :host #hcaptcha .hcaptcha-logo {\n height: 100%;\n }\n :host #hcaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n .hidden {\n display: none;\n }\n ",this),this.captchaEle=this.shadowRoot.querySelector("#hcaptcha"),this.mockCaptchaEle=this.shadowRoot.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge"),this.inputElement=this.shadowRoot.querySelector("input")}init(){super.init?.(),A(this,this.updatePreview.bind(this)),this.inputElement.getValidity=null,this.inputElement.checkValidity=null}toggleCaptchaEles(e){e?(this.captchaEle.style.display="",this.mockCaptchaEle.style.display="none"):(this.captchaEle.style.display="none",this.mockCaptchaEle.style.display="")}updatePreview(){this.toggleCaptchaEles(this.enabled)}getValidity(){return this.inputElement.value?{}:{valueMissing:!0}}checkValidity(){return!!this.inputElement.value}get siteKey(){return this.getAttribute("site-key")}get enabled(){return"true"===this.getAttribute("enabled")}});customElements.define(Yp,Zp);const Qp=(nu={surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}},Object.keys(nu).reduce((e,t)=>{const r=nu[t];return Object.assign(e,{[t]:nt(r)})},{})),Jp={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},Kp=ft({fonts:Jp}).fonts,Xp={colors:Qp,typography:{h1:{font:Kp.font1.family,weight:"900",size:"48px"},h2:{font:Kp.font1.family,weight:"800",size:"38px"},h3:{font:Kp.font1.family,weight:"600",size:"28px"},subtitle1:{font:Kp.font2.family,weight:"500",size:"22px"},subtitle2:{font:Kp.font2.family,weight:"400",size:"20px"},body1:{font:Kp.font1.family,weight:"400",size:"16px"},body2:{font:Kp.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:Jp,direction:"ltr"},eu=(e=>bt(e,[],e=>gt({},e,mt(e))))(Xp),tu=(e=>Object.keys(e).reduce((t,r)=>{const o=e[r];return Object.assign(t,{[r]:Y(o)})},{}))({surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}}),ru={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},ou=Q({fonts:ru}).fonts,iu={colors:tu,typography:{h1:{font:ou.font1.family,weight:"900",size:"48px"},h2:{font:ou.font1.family,weight:"800",size:"38px"},h3:{font:ou.font1.family,weight:"600",size:"28px"},subtitle1:{font:ou.font2.family,weight:"500",size:"22px"},subtitle2:{font:ou.font2.family,weight:"400",size:"20px"},body1:{font:ou.font1.family,weight:"400",size:"16px"},body2:{font:ou.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:ru,direction:"ltr"};var nu;(e=>{Z(e,[],e=>G({},e,U(e)))})(iu);const au=Q(iu),su=Io.cssVarList,lu={primary:au.colors.primary,secondary:au.colors.secondary,success:au.colors.success,error:au.colors.error,surface:au.colors.surface},[du,cu,pu]=K({mode:lu},fo),uu={...du,[su.fontFamily]:au.fonts.font1.family,[su.cursor]:"pointer",[su.hostHeight]:"3em",[su.hostWidth]:"auto",[su.hostDirection]:au.direction,[su.borderRadius]:au.radius.sm,[su.borderWidth]:au.border.xs,[su.borderStyle]:"solid",[su.borderColor]:"transparent",[su.labelSpacing]:"0.25em",[su.textAlign]:"center",textAlign:{right:{[su.textAlign]:"right"},left:{[su.textAlign]:"left"},center:{[su.textAlign]:"center"}},[su.verticalPadding]:"1em",[su.horizontalPadding]:"0.875em",[su.outlineWidth]:iu.border.sm,[su.outlineOffset]:"0px",[su.outlineStyle]:"solid",[su.outlineColor]:"transparent",[su.iconSize]:"1.5em",size:{xs:{[su.fontSize]:"12px"},sm:{[su.fontSize]:"14px"},md:{[su.fontSize]:"16px"},lg:{[su.fontSize]:"18px"}},_square:{[su.hostHeight]:"3em",[su.hostWidth]:"3em",[su.verticalPadding]:"0"},_fullWidth:{[su.hostWidth]:"100%"},_loading:{[su.cursor]:"wait",[su.labelTextColor]:cu.main},_disabled:{[pu.main]:au.colors.surface.light,[pu.dark]:au.colors.surface.dark,[pu.light]:au.colors.surface.light,[pu.contrast]:au.colors.surface.main,[su.iconColor]:au.colors.surface.main},variant:{contained:{[su.labelTextColor]:cu.contrast,[su.backgroundColor]:cu.main,_hover:{[su.backgroundColor]:cu.dark,_loading:{[su.backgroundColor]:cu.main}},_active:{[su.backgroundColor]:cu.main}},outline:{[su.labelTextColor]:cu.main,[su.borderColor]:cu.main,_hover:{[su.labelTextColor]:cu.dark,[su.borderColor]:cu.dark},_active:{[su.labelTextColor]:cu.main,[su.borderColor]:cu.main}},link:{[su.labelTextColor]:cu.main,[su.horizontalPadding]:"0.125em",_hover:{[su.labelTextColor]:cu.dark,[su.labelTextDecoration]:"underline"},_active:{[su.labelTextColor]:cu.main}}},_focused:{[su.outlineColor]:cu.light}},hu={...su,...pu};var mu=Object.freeze({__proto__:null,default:uu,vars:hu});const gu=He("input-wrapper"),bu=ft(Xp),[yu,fu,vu]=Mt({labelTextColor:bu.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",valueTextColor:bu.colors.surface.contrast,placeholderTextColor:bu.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:bu.colors.surface.dark,errorMessageTextColor:bu.colors.error.main,successMessageTextColor:bu.colors.success.main,borderWidth:bu.border.xs,borderRadius:bu.radius.xs,borderColor:"transparent",outlineWidth:bu.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputIconSize:"1em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",textAlign:"start",backgroundColor:bu.colors.surface.main,fontFamily:bu.fonts.font1.family,direction:bu.direction,overlayOpacity:"0.3",errorMessageIcon:"",errorMessageIconSize:"0",errorMessageIconPadding:"0",errorMessageIconPosition:"0 0.4em",errorMessageFontSize:"0.8125rem",errorMessageIconRepeat:"no-repeat",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},labelType:{static:{valueInputHeight:"3em",valueInputMarginBottom:"auto"},floating:{labelPosition:"absolute",labelTopPosition:"0",labelHorizontalPosition:"0.9em",labelFontSize:"1em",placeholderOpacity:0,inputHeight:"3.5em",inputVerticalAlignment:"flex-end",inputTransformY:"translateY(1.55em)",inputTransition:"all 75ms ease-in-out",marginInlineStart:"0",valueInputHeight:"1.5702em",valueInputMarginBottom:"0.5em",_focused:{labelFontSize:"0.75em",inputTransformY:"translateY(1.05em)",labelFontWeight:"400",placeholderOpacity:1},_readOnly:{placeholderOpacity:0},_hasValue:{inputTransformY:"translateY(1.05em)",labelFontSize:"0.75em",labelFontWeight:"400"}}},_fullWidth:{width:"100%"},_bordered:{outlineWidth:bu.border.xs,borderColor:bu.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:bu.colors.error.main}},_focused:{outlineColor:bu.colors.surface.light,_invalid:{outlineColor:bu.colors.error.main}},_disabled:{labelTextColor:bu.colors.surface.light,borderColor:bu.colors.surface.light,valueTextColor:bu.colors.surface.light,placeholderTextColor:bu.colors.surface.light,helperTextColor:bu.colors.surface.light,backgroundColor:bu.colors.surface.main}},gu);var xu=Object.freeze({__proto__:null,default:yu,refs:fu,vars:vu});const Cu=ft(Xp),wu=ji.cssVarList,Iu={[wu.hostWidth]:fu.width,[wu.hostMinWidth]:fu.minWidth,[wu.hostDirection]:fu.direction,[wu.fontSize]:fu.fontSize,[wu.fontFamily]:fu.fontFamily,[wu.labelFontSize]:fu.labelFontSize,[wu.labelFontWeight]:fu.labelFontWeight,[wu.labelTextColor]:fu.labelTextColor,[wu.labelRequiredIndicator]:fu.requiredIndicator,[wu.errorMessageTextColor]:fu.errorMessageTextColor,[wu.inputValueTextColor]:fu.valueTextColor,[wu.inputPlaceholderColor]:fu.placeholderTextColor,[wu.inputBorderWidth]:fu.borderWidth,[wu.inputBorderStyle]:fu.borderStyle,[wu.inputBorderColor]:fu.borderColor,[wu.inputBorderRadius]:fu.borderRadius,[wu.inputOutlineWidth]:fu.outlineWidth,[wu.inputOutlineStyle]:fu.outlineStyle,[wu.inputOutlineColor]:fu.outlineColor,[wu.inputOutlineOffset]:fu.outlineOffset,[wu.inputBackgroundColor]:fu.backgroundColor,[wu.inputHeight]:fu.inputHeight,[wu.inputHorizontalPadding]:fu.horizontalPadding,[wu.helperTextColor]:fu.helperTextColor,[wu.textAlign]:fu.textAlign,textAlign:{right:{[wu.inputTextAlign]:"right"},left:{[wu.inputTextAlign]:"left"},center:{[wu.inputTextAlign]:"center"}},[wu.labelPosition]:fu.labelPosition,[wu.labelTopPosition]:fu.labelTopPosition,[wu.labelHorizontalPosition]:fu.labelHorizontalPosition,[wu.inputTransformY]:fu.inputTransformY,[wu.inputTransition]:fu.inputTransition,[wu.marginInlineStart]:fu.marginInlineStart,[wu.placeholderOpacity]:fu.placeholderOpacity,[wu.inputVerticalAlignment]:fu.inputVerticalAlignment,[wu.valueInputHeight]:fu.valueInputHeight,[wu.valueInputMarginBottom]:fu.valueInputMarginBottom,[wu.inputIconOffset]:Cu.spacing.md,[wu.inputIconSize]:fu.inputIconSize,[wu.inputIconColor]:fu.placeholderTextColor,[wu.errorMessageIcon]:fu.errorMessageIcon,[wu.errorMessageIconSize]:fu.errorMessageIconSize,[wu.errorMessageIconPadding]:fu.errorMessageIconPadding,[wu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[wu.errorMessageIconPosition]:fu.errorMessageIconPosition,[wu.errorMessageFontSize]:fu.errorMessageFontSize};var Mu=Object.freeze({__proto__:null,default:Iu,textField:Iu,vars:wu});const Su=ft(Xp),Au=Xn.cssVarList,Eu={[Au.hostWidth]:fu.width,[Au.hostMinWidth]:fu.minWidth,[Au.hostDirection]:fu.direction,[Au.fontSize]:fu.fontSize,[Au.fontFamily]:fu.fontFamily,[Au.labelFontSize]:fu.labelFontSize,[Au.labelFontWeight]:fu.labelFontWeight,[Au.labelTextColor]:fu.labelTextColor,[Au.errorMessageTextColor]:fu.errorMessageTextColor,[Au.inputHorizontalPadding]:fu.horizontalPadding,[Au.inputHeight]:fu.inputHeight,[Au.inputBackgroundColor]:fu.backgroundColor,[Au.labelRequiredIndicator]:fu.requiredIndicator,[Au.inputValueTextColor]:fu.valueTextColor,[Au.inputPlaceholderTextColor]:fu.placeholderTextColor,[Au.inputBorderWidth]:fu.borderWidth,[Au.inputBorderStyle]:fu.borderStyle,[Au.inputBorderColor]:fu.borderColor,[Au.inputBorderRadius]:fu.borderRadius,[Au.inputOutlineWidth]:fu.outlineWidth,[Au.inputOutlineStyle]:fu.outlineStyle,[Au.inputOutlineColor]:fu.outlineColor,[Au.inputOutlineOffset]:fu.outlineOffset,[Au.revealButtonOffset]:Su.spacing.md,[Au.revealButtonSize]:fu.toggleButtonSize,[Au.revealButtonColor]:fu.placeholderTextColor,[Au.labelPosition]:fu.labelPosition,[Au.labelTopPosition]:fu.labelTopPosition,[Au.labelHorizontalPosition]:fu.labelHorizontalPosition,[Au.inputTransformY]:fu.inputTransformY,[Au.inputTransition]:fu.inputTransition,[Au.marginInlineStart]:fu.marginInlineStart,[Au.placeholderOpacity]:fu.placeholderOpacity,[Au.inputVerticalAlignment]:fu.inputVerticalAlignment,[Au.valueInputHeight]:fu.valueInputHeight,[Au.errorMessageIcon]:fu.errorMessageIcon,[Au.errorMessageIconSize]:fu.errorMessageIconSize,[Au.errorMessageIconPadding]:fu.errorMessageIconPadding,[Au.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Au.errorMessageIconPosition]:fu.errorMessageIconPosition,[Au.errorMessageFontSize]:fu.errorMessageFontSize};var Tu=Object.freeze({__proto__:null,default:Eu,vars:Au});const ku=vn.cssVarList,zu={[ku.hostWidth]:fu.width,[ku.hostMinWidth]:fu.minWidth,[ku.hostDirection]:fu.direction,[ku.fontSize]:fu.fontSize,[ku.fontFamily]:fu.fontFamily,[ku.labelFontSize]:fu.labelFontSize,[ku.labelFontWeight]:fu.labelFontWeight,[ku.labelTextColor]:fu.labelTextColor,[ku.errorMessageTextColor]:fu.errorMessageTextColor,[ku.inputValueTextColor]:fu.valueTextColor,[ku.inputPlaceholderColor]:fu.placeholderTextColor,[ku.inputBorderWidth]:fu.borderWidth,[ku.inputBorderStyle]:fu.borderStyle,[ku.inputBorderColor]:fu.borderColor,[ku.inputBorderRadius]:fu.borderRadius,[ku.inputOutlineWidth]:fu.outlineWidth,[ku.inputOutlineStyle]:fu.outlineStyle,[ku.inputOutlineColor]:fu.outlineColor,[ku.inputOutlineOffset]:fu.outlineOffset,[ku.inputBackgroundColor]:fu.backgroundColor,[ku.labelRequiredIndicator]:fu.requiredIndicator,[ku.inputHorizontalPadding]:fu.horizontalPadding,[ku.inputHeight]:fu.inputHeight,[ku.labelPosition]:fu.labelPosition,[ku.labelTopPosition]:fu.labelTopPosition,[ku.labelHorizontalPosition]:fu.labelHorizontalPosition,[ku.inputTransformY]:fu.inputTransformY,[ku.inputTransition]:fu.inputTransition,[ku.marginInlineStart]:fu.marginInlineStart,[ku.placeholderOpacity]:fu.placeholderOpacity,[ku.inputVerticalAlignment]:fu.inputVerticalAlignment,[ku.valueInputHeight]:fu.valueInputHeight,[ku.valueInputMarginBottom]:fu.valueInputMarginBottom,[ku.errorMessageIcon]:fu.errorMessageIcon,[ku.errorMessageIconSize]:fu.errorMessageIconSize,[ku.errorMessageIconPadding]:fu.errorMessageIconPadding,[ku.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[ku.errorMessageIconPosition]:fu.errorMessageIconPosition,[ku.errorMessageFontSize]:fu.errorMessageFontSize};var Lu=Object.freeze({__proto__:null,default:zu,vars:ku});const Nu=cn.cssVarList,Du={[Nu.hostWidth]:fu.width,[Nu.hostMinWidth]:fu.minWidth,[Nu.hostDirection]:fu.direction,[Nu.fontSize]:fu.fontSize,[Nu.fontFamily]:fu.fontFamily,[Nu.labelFontSize]:fu.labelFontSize,[Nu.labelFontWeight]:fu.labelFontWeight,[Nu.labelTextColor]:fu.labelTextColor,[Nu.errorMessageTextColor]:fu.errorMessageTextColor,[Nu.inputValueTextColor]:fu.valueTextColor,[Nu.labelRequiredIndicator]:fu.requiredIndicator,[Nu.inputPlaceholderColor]:fu.placeholderTextColor,[Nu.inputBorderWidth]:fu.borderWidth,[Nu.inputBorderStyle]:fu.borderStyle,[Nu.inputBorderColor]:fu.borderColor,[Nu.inputBorderRadius]:fu.borderRadius,[Nu.inputOutlineWidth]:fu.outlineWidth,[Nu.inputOutlineStyle]:fu.outlineStyle,[Nu.inputOutlineColor]:fu.outlineColor,[Nu.inputOutlineOffset]:fu.outlineOffset,[Nu.inputBackgroundColor]:fu.backgroundColor,[Nu.inputHorizontalPadding]:fu.horizontalPadding,[Nu.inputHeight]:fu.inputHeight,[Nu.labelPosition]:fu.labelPosition,[Nu.labelTopPosition]:fu.labelTopPosition,[Nu.labelHorizontalPosition]:fu.labelHorizontalPosition,[Nu.inputTransformY]:fu.inputTransformY,[Nu.inputTransition]:fu.inputTransition,[Nu.marginInlineStart]:fu.marginInlineStart,[Nu.placeholderOpacity]:fu.placeholderOpacity,[Nu.inputVerticalAlignment]:fu.inputVerticalAlignment,[Nu.valueInputHeight]:fu.valueInputHeight,[Nu.valueInputMarginBottom]:fu.valueInputMarginBottom,[Nu.errorMessageIcon]:fu.errorMessageIcon,[Nu.errorMessageIconSize]:fu.errorMessageIconSize,[Nu.errorMessageIconPadding]:fu.errorMessageIconPadding,[Nu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Nu.errorMessageIconPosition]:fu.errorMessageIconPosition,[Nu.errorMessageFontSize]:fu.errorMessageFontSize};var Vu=Object.freeze({__proto__:null,default:Du,vars:Nu});const Pu=da.cssVarList,Bu={[Pu.hostWidth]:fu.width,[Pu.hostMinWidth]:fu.minWidth,[Pu.hostDirection]:fu.direction,[Pu.fontSize]:fu.fontSize,[Pu.fontFamily]:fu.fontFamily,[Pu.labelTextColor]:fu.labelTextColor,[Pu.labelRequiredIndicator]:fu.requiredIndicator,[Pu.errorMessageTextColor]:fu.errorMessageTextColor,[Pu.inputBackgroundColor]:fu.backgroundColor,[Pu.inputValueTextColor]:fu.valueTextColor,[Pu.inputPlaceholderTextColor]:fu.placeholderTextColor,[Pu.inputBorderRadius]:fu.borderRadius,[Pu.inputBorderWidth]:fu.borderWidth,[Pu.inputBorderStyle]:fu.borderStyle,[Pu.inputBorderColor]:fu.borderColor,[Pu.inputOutlineWidth]:fu.outlineWidth,[Pu.inputOutlineStyle]:fu.outlineStyle,[Pu.inputOutlineColor]:fu.outlineColor,[Pu.inputOutlineOffset]:fu.outlineOffset,[Pu.inputResizeType]:"vertical",[Pu.inputMinHeight]:"5em",[Pu.errorMessageIcon]:fu.errorMessageIcon,[Pu.errorMessageIconSize]:fu.errorMessageIconSize,[Pu.errorMessageIconPadding]:fu.errorMessageIconPadding,[Pu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Pu.errorMessageIconPosition]:fu.errorMessageIconPosition,[Pu.errorMessageFontSize]:fu.errorMessageFontSize,textAlign:{right:{[Pu.inputTextAlign]:"right"},left:{[Pu.inputTextAlign]:"left"},center:{[Pu.inputTextAlign]:"center"}},_readonly:{[Pu.inputResizeType]:"none"}};var Ru=Object.freeze({__proto__:null,default:Bu,vars:Pu});const Ou=gr.cssVarList,ju="1.35em",Fu={[Ou.hostWidth]:fu.width,[Ou.hostDirection]:fu.direction,[Ou.fontSize]:fu.fontSize,[Ou.fontFamily]:fu.fontFamily,[Ou.labelTextColor]:fu.labelTextColor,[Ou.labelRequiredIndicator]:fu.requiredIndicator,[Ou.labelFontWeight]:"400",[Ou.labelLineHeight]:ju,[Ou.labelSpacing]:"1em",[Ou.errorMessageTextColor]:fu.errorMessageTextColor,[Ou.inputOutlineWidth]:fu.outlineWidth,[Ou.inputOutlineOffset]:fu.outlineOffset,[Ou.inputOutlineColor]:fu.outlineColor,[Ou.inputOutlineStyle]:fu.outlineStyle,[Ou.inputBorderRadius]:fu.borderRadius,[Ou.inputBorderColor]:fu.borderColor,[Ou.inputBorderWidth]:fu.borderWidth,[Ou.inputBorderStyle]:fu.borderStyle,[Ou.inputBackgroundColor]:fu.backgroundColor,[Ou.inputSize]:ju,[Ou.inputValueTextColor]:fu.valueTextColor,[Ou.errorMessageIcon]:fu.errorMessageIcon,[Ou.errorMessageIconSize]:fu.errorMessageIconSize,[Ou.errorMessageIconPadding]:fu.errorMessageIconPadding,[Ou.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Ou.errorMessageIconPosition]:fu.errorMessageIconPosition,[Ou.errorMessageFontSize]:fu.errorMessageFontSize};var Wu=Object.freeze({__proto__:null,default:Fu,vars:Ou});const _u="2px",$u=ft(Xp),Hu=Or.cssVarList,qu={[Hu.hostWidth]:fu.width,[Hu.hostDirection]:fu.direction,[Hu.fontSize]:fu.fontSize,[Hu.fontFamily]:fu.fontFamily,[Hu.inputOutlineWidth]:fu.outlineWidth,[Hu.inputOutlineOffset]:fu.outlineOffset,[Hu.inputOutlineColor]:fu.outlineColor,[Hu.inputOutlineStyle]:fu.outlineStyle,[Hu.trackBorderStyle]:fu.borderStyle,[Hu.trackBorderWidth]:fu.borderWidth,[Hu.trackBorderColor]:fu.borderColor,[Hu.trackBackgroundColor]:fu.backgroundColor,[Hu.trackBorderRadius]:$u.radius.md,[Hu.trackWidth]:"2.5em",[Hu.trackHeight]:"1.25em",[Hu.knobSize]:`calc(1em - ${_u})`,[Hu.knobRadius]:"50%",[Hu.knobTopOffset]:"1px",[Hu.knobLeftOffset]:_u,[Hu.knobColor]:fu.labelTextColor,[Hu.knobTransitionDuration]:"0.3s",[Hu.labelTextColor]:fu.labelTextColor,[Hu.labelFontWeight]:"400",[Hu.labelLineHeight]:"1.35em",[Hu.labelSpacing]:"1em",[Hu.labelRequiredIndicator]:fu.requiredIndicator,[Hu.errorMessageTextColor]:fu.errorMessageTextColor,[Hu.errorMessageIcon]:fu.errorMessageIcon,[Hu.errorMessageIconSize]:fu.errorMessageIconSize,[Hu.errorMessageIconPadding]:fu.errorMessageIconPadding,[Hu.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Hu.errorMessageIconPosition]:fu.errorMessageIconPosition,[Hu.errorMessageFontSize]:fu.errorMessageFontSize,_checked:{[Hu.trackBorderColor]:fu.borderColor,[Hu.knobLeftOffset]:`calc(100% - var(${Hu.knobSize}) - ${_u})`,[Hu.knobColor]:fu.valueTextColor,[Hu.knobTextColor]:fu.valueTextColor},_disabled:{[Hu.knobColor]:$u.colors.surface.light,[Hu.trackBorderColor]:$u.colors.surface.light,[Hu.trackBackgroundColor]:$u.colors.surface.main,[Hu.labelTextColor]:fu.labelTextColor,_checked:{[Hu.knobColor]:$u.colors.surface.light,[Hu.trackBackgroundColor]:$u.colors.surface.main}},_invalid:{[Hu.trackBorderColor]:$u.colors.error.main,[Hu.knobColor]:$u.colors.error.main}};var Yu=Object.freeze({__proto__:null,default:qu,vars:Hu});const Uu=ft(Xp),Gu=Zr.cssVarList,[Zu,Qu,Ju]=Mt({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},Ur),{shadowColor:Ku}=Qu,Xu={...Zu,[Gu.itemsGrow]:"0",[Gu.hostWidth]:"100%",[Gu.boxShadow]:"none",[Gu.backgroundColor]:Uu.colors.surface.main,[Gu.backgroundImage]:"",[Gu.backgroundPositionX]:"center",[Gu.backgroundPositionY]:"center",[Gu.backgroundSize]:"cover",[Gu.backgroundRepeat]:"no-repeat",[Gu.color]:Uu.colors.surface.contrast,[Gu.borderRadius]:"0px",[Gu.hostDirection]:Uu.direction,[Gu.borderStyle]:"none",[Gu.borderWidth]:"unset",[Gu.borderColor]:"unset",verticalPadding:{sm:{[Gu.verticalPadding]:"5px"},md:{[Gu.verticalPadding]:"10px"},lg:{[Gu.verticalPadding]:"20px"}},horizontalPadding:{sm:{[Gu.horizontalPadding]:"5px"},md:{[Gu.horizontalPadding]:"10px"},lg:{[Gu.horizontalPadding]:"20px"}},direction:{row:{[Gu.flexDirection]:"row",[Gu.alignItems]:Qu.verticalAlignment,[Gu.justifyContent]:Qu.horizontalAlignment,[Gu.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[Ju.horizontalAlignment]:"space-between"}}},column:{[Gu.flexDirection]:"column",[Gu.alignItems]:Qu.horizontalAlignment,[Gu.justifyContent]:Qu.verticalAlignment,verticalAlignment:{spaceBetween:{[Ju.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[Gu.gap]:"10px"},md:{[Gu.gap]:"20px"},lg:{[Gu.gap]:"30px"}},shadow:{sm:{[Gu.boxShadow]:`${Uu.shadow.wide.sm} ${Ku}, ${Uu.shadow.narrow.sm} ${Ku}`},md:{[Gu.boxShadow]:`${Uu.shadow.wide.md} ${Ku}, ${Uu.shadow.narrow.md} ${Ku}`},lg:{[Gu.boxShadow]:`${Uu.shadow.wide.lg} ${Ku}, ${Uu.shadow.narrow.lg} ${Ku}`},xl:{[Gu.boxShadow]:`${Uu.shadow.wide.xl} ${Ku}, ${Uu.shadow.narrow.xl} ${Ku}`},"2xl":{[Ju.shadowColor]:"#00000050",[Gu.boxShadow]:`${Uu.shadow.wide["2xl"]} ${Ku}`}},"&borderRadius":{sm:{[Gu.borderRadius]:Uu.radius.sm},md:{[Gu.borderRadius]:Uu.radius.md},lg:{[Gu.borderRadius]:Uu.radius.lg},xl:{[Gu.borderRadius]:Uu.radius.xl},"2xl":{[Gu.borderRadius]:Uu.radius["2xl"]},"3xl":{[Gu.borderRadius]:Uu.radius["3xl"]}}},eh={...Gu,...Ju};var th=Object.freeze({__proto__:null,default:Xu,vars:eh});const rh=hn.cssVarList,oh={[rh.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var ih=Object.freeze({__proto__:null,default:oh,vars:rh});const nh=gn.cssVarList,ah={[nh.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var sh=Object.freeze({__proto__:null,default:ah,vars:nh});const lh=yn.cssVarList,dh={[lh.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var ch=Object.freeze({__proto__:null,default:dh,vars:lh});const ph=Q(iu),uh=vr.cssVarList,hh={[uh.hostDirection]:ph.direction,[uh.textLineHeight]:"1.35em",[uh.textAlign]:"start",[uh.textColor]:ph.colors.surface.dark,variant:{h1:{[uh.fontSize]:ph.typography.h1.size,[uh.fontWeight]:ph.typography.h1.weight,[uh.fontFamily]:ph.typography.h1.font},h2:{[uh.fontSize]:ph.typography.h2.size,[uh.fontWeight]:ph.typography.h2.weight,[uh.fontFamily]:ph.typography.h2.font},h3:{[uh.fontSize]:ph.typography.h3.size,[uh.fontWeight]:ph.typography.h3.weight,[uh.fontFamily]:ph.typography.h3.font},subtitle1:{[uh.fontSize]:ph.typography.subtitle1.size,[uh.fontWeight]:ph.typography.subtitle1.weight,[uh.fontFamily]:ph.typography.subtitle1.font},subtitle2:{[uh.fontSize]:ph.typography.subtitle2.size,[uh.fontWeight]:ph.typography.subtitle2.weight,[uh.fontFamily]:ph.typography.subtitle2.font},body1:{[uh.fontSize]:ph.typography.body1.size,[uh.fontWeight]:ph.typography.body1.weight,[uh.fontFamily]:ph.typography.body1.font},body2:{[uh.fontSize]:ph.typography.body2.size,[uh.fontWeight]:ph.typography.body2.weight,[uh.fontFamily]:ph.typography.body2.font}},mode:{primary:{[uh.textColor]:ph.colors.surface.contrast},secondary:{[uh.textColor]:ph.colors.surface.dark},error:{[uh.textColor]:ph.colors.error.main},"error-dark":{[uh.textColor]:ph.colors.error.dark},success:{[uh.textColor]:ph.colors.success.main},"success-dark":{[uh.textColor]:ph.colors.success.dark},warning:{[uh.textColor]:ph.colors.warning.main},"warning-dark":{[uh.textColor]:ph.colors.warning.dark}},textAlign:{right:{[uh.textAlign]:"right"},left:{[uh.textAlign]:"left"},center:{[uh.textAlign]:"center"}},_fullWidth:{[uh.hostWidth]:"100%"},_italic:{[uh.fontStyle]:"italic"},_uppercase:{[uh.textTransform]:"uppercase"},_lowercase:{[uh.textTransform]:"lowercase"}};var mh=Object.freeze({__proto__:null,default:hh,vars:uh});const gh=Q(iu),bh=Tr.cssVarList,yh={[bh.hostDirection]:gh.direction,[bh.cursor]:"pointer",[bh.textColor]:gh.colors.primary.main,textAlign:{right:{[bh.textAlign]:"right"},left:{[bh.textAlign]:"left"},center:{[bh.textAlign]:"center"}},_fullWidth:{[bh.hostWidth]:"100%"},_hover:{[bh.textDecoration]:"underline"},mode:{secondary:{[bh.textColor]:gh.colors.secondary.main}}};var fh=Object.freeze({__proto__:null,default:yh,vars:bh});const vh=Q(iu),xh=De.cssVarList,Ch={[xh.hostDirection]:vh.direction,[xh.hostWidth]:J(uh.hostWidth),[xh.textLineHeight]:J(uh.textLineHeight),[xh.textColor]:J(uh.textColor),[xh.textAlign]:J(uh.textAlign),[xh.fontSize]:J(uh.fontSize),[xh.fontWeight]:J(uh.fontWeight),[xh.fontFamily]:J(uh.fontFamily),[xh.linkColor]:J(bh.textColor),[xh.linkTextDecoration]:"none",[xh.linkHoverTextDecoration]:"underline",[xh.fontWeightBold]:"900",[xh.minWidth]:"0.25em",[xh.minHeight]:"1.35em",[xh.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[xh.hostDisplay]:"none"}}};var wh=Object.freeze({__proto__:null,default:Ch,vars:xh});const Ih=ft(Xp),Mh=ln.cssVarList,[Sh,Ah,Eh]=Mt({thickness:"2px",spacing:"10px"},en),Th={...Sh,[Mh.hostDirection]:Ih.direction,[Mh.alignItems]:"center",[Mh.flexDirection]:"row",[Mh.alignSelf]:"stretch",[Mh.hostWidth]:"100%",[Mh.stripeColor]:Ih.colors.surface.light,[Mh.stripeColorOpacity]:"0.5",[Mh.stripeHorizontalThickness]:Ah.thickness,[Mh.labelTextWidth]:"fit-content",[Mh.labelTextMaxWidth]:"calc(100% - 100px)",[Mh.labelTextHorizontalSpacing]:Ah.spacing,[Mh.textAlign]:"center",_vertical:{[Mh.minHeight]:"200px",[Mh.flexDirection]:"column",[Mh.hostWidth]:"fit-content",[Mh.hostPadding]:`0 calc(${Ah.thickness} * 3)`,[Mh.stripeVerticalThickness]:Ah.thickness,[Mh.labelTextWidth]:"fit-content",[Mh.labelTextMaxWidth]:"100%",[Mh.labelTextVerticalSpacing]:Ah.spacing}},kh={...Mh,...Eh};var zh=Object.freeze({__proto__:null,default:Th,vars:kh});const Lh=Wn.cssVarList,Nh={[Lh.hostDirection]:fu.direction,[Lh.fontFamily]:fu.fontFamily,[Lh.fontSize]:fu.fontSize,[Lh.labelTextColor]:fu.labelTextColor,[Lh.labelRequiredIndicator]:fu.requiredIndicator,[Lh.errorMessageTextColor]:fu.errorMessageTextColor,[Lh.digitValueTextColor]:fu.valueTextColor,[Lh.digitPadding]:"0",[Lh.digitTextAlign]:"center",[Lh.digitSpacing]:"4px",[Lh.hostWidth]:fu.width,[Lh.digitOutlineColor]:"transparent",[Lh.digitOutlineWidth]:fu.outlineWidth,[Lh.focusedDigitFieldOutlineColor]:fu.outlineColor,[Lh.digitSize]:fu.inputHeight,[Lh.errorMessageIcon]:fu.errorMessageIcon,[Lh.errorMessageIconSize]:fu.errorMessageIconSize,[Lh.errorMessageIconPadding]:fu.errorMessageIconPadding,[Lh.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Lh.errorMessageIconPosition]:fu.errorMessageIconPosition,[Lh.errorMessageFontSize]:fu.errorMessageFontSize,size:{xs:{[Lh.spinnerSize]:"15px"},sm:{[Lh.spinnerSize]:"20px"},md:{[Lh.spinnerSize]:"20px"},lg:{[Lh.spinnerSize]:"20px"}},_hideCursor:{[Lh.digitCaretTextColor]:"transparent"},_loading:{[Lh.overlayOpacity]:fu.overlayOpacity}};var Dh=Object.freeze({__proto__:null,default:Nh,vars:Lh});const Vh=ft(Xp),Ph=$r.cssVarList,Bh={[Ph.hostDisplay]:"inline-block",[Ph.hostWidth]:"100%",[Ph.barColor]:Vh.colors.surface.contrast,[Ph.barWidth]:"20%",[Ph.barBackgroundColor]:Vh.colors.surface.light,[Ph.barBorderRadius]:"4px",[Ph.animationDuration]:"2s",[Ph.animationTimingFunction]:"linear",[Ph.animationIterationCount]:"infinite",[Ph.verticalPadding]:"0.25em",size:{xs:{[Ph.barHeight]:"2px"},sm:{[Ph.barHeight]:"4px"},md:{[Ph.barHeight]:"6px"},lg:{[Ph.barHeight]:"8px"}},mode:{primary:{[Ph.barColor]:Vh.colors.primary.main},secondary:{[Ph.barColor]:Vh.colors.secondary.main}},_hidden:{[Ph.hostDisplay]:"none"}};var Rh=Object.freeze({__proto__:null,default:Bh,vars:Ph});const Oh=ft(Xp),jh=Yr.cssVarList,[Fh,Wh,_h]=Mt({spinnerColor:Oh.colors.surface.contrast,mode:{primary:{spinnerColor:Oh.colors.primary.main},secondary:{spinnerColor:Oh.colors.secondary.main}}},Hr),$h={...Fh,[jh.animationDuration]:"2s",[jh.animationTimingFunction]:"linear",[jh.animationIterationCount]:"infinite",[jh.spinnerBorderStyle]:"solid",[jh.spinnerBorderWidth]:"0.2em",[jh.spinnerBorderRadius]:"50%",[jh.spinnerQuadrant1Color]:Wh.spinnerColor,[jh.spinnerQuadrant2Color]:"transparent",[jh.spinnerQuadrant3Color]:Wh.spinnerColor,[jh.spinnerQuadrant4Color]:"transparent",size:{xs:{[jh.spinnerSize]:"20px"},sm:{[jh.spinnerSize]:"30px"},md:{[jh.spinnerSize]:"40px"},lg:{[jh.spinnerSize]:"60px"},xl:{[jh.spinnerSize]:"80px"}},_hidden:{[jh.hostDisplay]:"none"}},Hh={...jh,..._h};var qh=Object.freeze({__proto__:null,default:$h,vars:Hh});const Yh=k("input-wrapper"),Uh=Q(iu),[Gh,Zh]=K({labelTextColor:Uh.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",valueTextColor:Uh.colors.surface.contrast,placeholderTextColor:Uh.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Uh.colors.surface.dark,errorMessageTextColor:Uh.colors.error.main,successMessageTextColor:Uh.colors.success.main,borderWidth:Uh.border.xs,borderRadius:Uh.radius.xs,borderColor:"transparent",outlineWidth:Uh.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputIconSize:"1em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",textAlign:"start",backgroundColor:Uh.colors.surface.main,fontFamily:Uh.fonts.font1.family,direction:Uh.direction,overlayOpacity:"0.3",errorMessageIcon:"",errorMessageIconSize:"0",errorMessageIconPadding:"0",errorMessageIconPosition:"0 0.4em",errorMessageFontSize:"0.8125rem",errorMessageIconRepeat:"no-repeat",errorMessageIconRepeat:"no-repeat",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},labelType:{static:{valueInputHeight:"3em",valueInputMarginBottom:"auto"},floating:{labelPosition:"absolute",labelTopPosition:"0",labelHorizontalPosition:"0.9em",labelFontSize:"1em",placeholderOpacity:0,inputHeight:"3.5em",inputVerticalAlignment:"flex-end",inputTransformY:"translateY(1.55em)",inputTransition:"all 75ms ease-in-out",marginInlineStart:"0",valueInputHeight:"1.5702em",valueInputMarginBottom:"0.5em",_focused:{labelFontSize:"0.75em",inputTransformY:"translateY(1.05em)",labelFontWeight:"400",placeholderOpacity:1},_readOnly:{placeholderOpacity:0},_hasValue:{inputTransformY:"translateY(1.05em)",labelFontSize:"0.75em",labelFontWeight:"400"}}},_fullWidth:{width:"100%"},_focused:{outlineColor:Uh.colors.surface.light,_invalid:{outlineColor:Uh.colors.error.main}},_bordered:{outlineWidth:Uh.border.xs,borderColor:Uh.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Uh.colors.error.main}},_disabled:{labelTextColor:Uh.colors.surface.light,borderColor:Uh.colors.surface.light,valueTextColor:Uh.colors.surface.light,placeholderTextColor:Uh.colors.surface.light,helperTextColor:Uh.colors.surface.light,backgroundColor:Uh.colors.surface.main}},Yh),Qh=Q(iu),Jh=co.cssVarList,Kh={[Jh.hostWidth]:Zh.width,[Jh.hostDirection]:Zh.direction,[Jh.fontSize]:Zh.fontSize,[Jh.fontFamily]:Zh.fontFamily,[Jh.labelFontSize]:Zh.labelFontSize,[Jh.labelFontWeight]:Zh.labelFontWeight,[Jh.labelTextColor]:Zh.labelTextColor,[Jh.errorMessageTextColor]:Zh.errorMessageTextColor,[Jh.inputBorderColor]:Zh.borderColor,[Jh.inputBorderWidth]:Zh.borderWidth,[Jh.inputBorderStyle]:Zh.borderStyle,[Jh.inputBorderRadius]:Zh.borderRadius,[Jh.inputOutlineColor]:Zh.outlineColor,[Jh.inputOutlineOffset]:Zh.outlineOffset,[Jh.inputOutlineWidth]:Zh.outlineWidth,[Jh.inputOutlineStyle]:Zh.outlineStyle,[Jh.labelRequiredIndicator]:Zh.requiredIndicator,[Jh.inputValueTextColor]:Zh.valueTextColor,[Jh.inputPlaceholderTextColor]:Zh.placeholderTextColor,[Jh.inputBackgroundColor]:Zh.backgroundColor,[Jh.inputHorizontalPadding]:Zh.horizontalPadding,[Jh.inputHeight]:Zh.inputHeight,[Jh.inputDropdownButtonColor]:Qh.colors.surface.dark,[Jh.inputDropdownButtonCursor]:"pointer",[Jh.inputDropdownButtonSize]:Zh.toggleButtonSize,[Jh.inputDropdownButtonOffset]:Qh.spacing.xs,[Jh.overlayItemPaddingInlineStart]:Qh.spacing.xs,[Jh.overlayItemPaddingInlineEnd]:Qh.spacing.lg,[Jh.labelPosition]:Zh.labelPosition,[Jh.labelTopPosition]:Zh.labelTopPosition,[Jh.labelHorizontalPosition]:Zh.labelHorizontalPosition,[Jh.inputTransformY]:Zh.inputTransformY,[Jh.inputTransition]:Zh.inputTransition,[Jh.marginInlineStart]:Zh.marginInlineStart,[Jh.placeholderOpacity]:Zh.placeholderOpacity,[Jh.inputVerticalAlignment]:Zh.inputVerticalAlignment,[Jh.valueInputHeight]:Zh.valueInputHeight,[Jh.valueInputMarginBottom]:Zh.valueInputMarginBottom,[Jh.errorMessageIcon]:Zh.errorMessageIcon,[Jh.errorMessageIconSize]:Zh.errorMessageIconSize,[Jh.errorMessageIconPadding]:Zh.errorMessageIconPadding,[Jh.errorMessageIconRepeat]:Zh.errorMessageIconRepeat,[Jh.errorMessageIconPosition]:Zh.errorMessageIconPosition,[Jh.errorMessageFontSize]:Zh.errorMessageFontSize,_readonly:{[Jh.inputDropdownButtonCursor]:"default"},[Jh.overlayFontSize]:Zh.fontSize,[Jh.overlayFontFamily]:Zh.fontFamily,[Jh.overlayCursor]:"pointer",[Jh.overlayItemBoxShadow]:"none",[Jh.overlayBackground]:Zh.backgroundColor,[Jh.overlayTextColor]:Zh.valueTextColor,[Jh.overlayCheckmarkDisplay]:"initial",[Jh.overlaySelectedItemBackground]:"initial",[Jh.overlaySelectedItemHoverBackground]:Qh.colors.primary.highlight,[Jh.overlaySelectedItemFocusBackground]:Qh.colors.primary.highlight,[Jh.overlayItemHoverBackground]:Qh.colors.primary.highlight,[Jh.overlayItemFocusBackground]:Qh.colors.primary.highlight,[Jh.overlay.minHeight]:"400px",[Jh.overlay.margin]:"0",[Jh.overlay.contentHeight]:"100%",[Jh.overlay.contentOpacity]:"1",[Jh.overlay.scrollerMinHeight]:"1px",_loading:{[Jh.overlay.loaderTop]:"50%",[Jh.overlay.loaderLeft]:"50%",[Jh.overlay.loaderRight]:"auto",[Jh.overlay.loaderMargin]:"-15px 0 0 -15px",[Jh.overlay.loaderWidth]:"30px",[Jh.overlay.loaderHeight]:"30px",[Jh.overlay.loaderBorder]:"2px solid transparent",[Jh.overlay.loaderBorderColor]:`${Qh.colors.primary.highlight} ${Qh.colors.primary.highlight} ${Qh.colors.primary.main} ${Qh.colors.primary.main}`,[Jh.overlay.loaderBorderRadius]:"50%",[Jh.overlay.contentHeight]:"100px",[Jh.overlay.scrollerMinHeight]:"100px",[Jh.overlay.contentOpacity]:"0"}};var Xh=Object.freeze({__proto__:null,comboBox:Kh,default:Kh,vars:Jh});const em=Va.cssVarList,tm={[em.hostWidth]:fu.width,[em.hostDirection]:fu.direction,[em.fontSize]:fu.fontSize,[em.fontFamily]:fu.fontFamily,[em.labelTextColor]:fu.labelTextColor,[em.labelRequiredIndicator]:fu.requiredIndicator,[em.errorMessageTextColor]:fu.errorMessageTextColor,[em.inputValueTextColor]:fu.valueTextColor,[em.inputPlaceholderTextColor]:fu.placeholderTextColor,[em.inputBorderStyle]:fu.borderStyle,[em.inputBorderWidth]:fu.borderWidth,[em.inputBorderColor]:fu.borderColor,[em.inputBorderRadius]:fu.borderRadius,[em.inputOutlineStyle]:fu.outlineStyle,[em.inputOutlineWidth]:fu.outlineWidth,[em.inputOutlineColor]:fu.outlineColor,[em.inputOutlineOffset]:fu.outlineOffset,[em.phoneInputWidth]:fu.minWidth,[em.countryCodeInputWidth]:"5em",[em.countryCodeDropdownWidth]:"20em",[em.marginInlineStart]:"-0.25em",[em.valueInputHeight]:fu.valueInputHeight,[em.valueInputMarginBottom]:fu.valueInputMarginBottom,[em.errorMessageIcon]:fu.errorMessageIcon,[em.errorMessageIconSize]:fu.errorMessageIconSize,[em.errorMessageIconPadding]:fu.errorMessageIconPadding,[em.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[em.errorMessageIconPosition]:fu.errorMessageIconPosition,[em.errorMessageFontSize]:fu.errorMessageFontSize};var rm=Object.freeze({__proto__:null,default:tm,vars:em});const om=Ja.cssVarList,im={[om.hostWidth]:"16em",[om.hostMinWidth]:fu.minWidth,[om.hostDirection]:fu.direction,[om.fontSize]:fu.fontSize,[om.fontFamily]:fu.fontFamily,[om.labelFontSize]:fu.labelFontSize,[om.labelFontWeight]:fu.labelFontWeight,[om.labelTextColor]:fu.labelTextColor,[om.labelRequiredIndicator]:fu.requiredIndicator,[om.errorMessageTextColor]:fu.errorMessageTextColor,[om.inputValueTextColor]:fu.valueTextColor,[om.inputPlaceholderTextColor]:fu.placeholderTextColor,[om.inputBorderStyle]:fu.borderStyle,[om.inputBorderWidth]:fu.borderWidth,[om.inputBorderColor]:fu.borderColor,[om.inputBorderRadius]:fu.borderRadius,[om.inputOutlineStyle]:fu.outlineStyle,[om.inputOutlineWidth]:fu.outlineWidth,[om.inputOutlineColor]:fu.outlineColor,[om.inputOutlineOffset]:fu.outlineOffset,[om.labelPosition]:fu.labelPosition,[om.labelTopPosition]:fu.labelTopPosition,[om.labelHorizontalPosition]:fu.labelHorizontalPosition,[om.inputTransformY]:fu.inputTransformY,[om.inputTransition]:fu.inputTransition,[om.marginInlineStart]:fu.marginInlineStart,[om.valueInputHeight]:fu.valueInputHeight,[om.valueInputMarginBottom]:fu.valueInputMarginBottom,[om.inputHorizontalPadding]:"0",[om.errorMessageIcon]:fu.errorMessageIcon,[om.errorMessageIconSize]:fu.errorMessageIconSize,[om.errorMessageIconPadding]:fu.errorMessageIconPadding,[om.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[om.errorMessageIconPosition]:fu.errorMessageIconPosition,[om.errorMessageFontSize]:fu.errorMessageFontSize,_fullWidth:{[om.hostWidth]:fu.width}};var nm=Object.freeze({__proto__:null,default:im,vars:om});const am=ft(Xp),sm=vs.cssVarList,lm={[sm.hostWidth]:fu.width,[sm.hostMinWidth]:fu.minWidth,[sm.hostDirection]:fu.direction,[sm.fontSize]:fu.fontSize,[sm.fontFamily]:fu.fontFamily,[sm.labelFontSize]:fu.labelFontSize,[sm.labelFontWeight]:fu.labelFontWeight,[sm.labelTextColor]:fu.labelTextColor,[sm.spaceBetweenInputs]:"1em",[sm.errorMessageTextColor]:fu.errorMessageTextColor,[sm.policyPreviewBackgroundColor]:"none",[sm.policyPreviewPadding]:am.spacing.lg,[sm.valueInputHeight]:fu.valueInputHeight,[sm.errorMessageIcon]:fu.errorMessageIcon,[sm.errorMessageIconSize]:fu.errorMessageIconSize,[sm.errorMessageIconPadding]:fu.errorMessageIconPadding,[sm.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[sm.errorMessageIconPosition]:fu.errorMessageIconPosition,[sm.errorMessageFontSize]:fu.errorMessageFontSize,_required:{[sm.inputsRequiredIndicator]:fu.requiredIndicator}};var dm=Object.freeze({__proto__:null,default:lm,vars:sm});const cm=$s.cssVarList,pm={[cm.hostDirection]:fu.direction,[cm.labelTextColor]:fu.labelTextColor,[cm.fontFamily]:fu.fontFamily,[cm.iconSize]:"2em",[cm.hostPadding]:"0.75em",[cm.gap]:"0.5em",[cm.fontSize]:"16px",[cm.titleFontWeight]:"500",[cm.lineHeight]:"1em",[cm.borderWidth]:fu.borderWidth,[cm.borderColor]:fu.borderColor,[cm.borderRadius]:fu.borderRadius,[cm.borderStyle]:"dashed",_required:{[cm.requiredIndicator]:fu.requiredIndicator},size:{xs:{[cm.hostHeight]:"196px",[cm.hostWidth]:"200px",[cm.titleFontSize]:"0.875em",[cm.descriptionFontSize]:"0.875em",[cm.lineHeight]:"1.25em"},sm:{[cm.hostHeight]:"216px",[cm.hostWidth]:"230px",[cm.titleFontSize]:"1em",[cm.descriptionFontSize]:"0.875em",[cm.lineHeight]:"1.25em"},md:{[cm.hostHeight]:"256px",[cm.hostWidth]:"312px",[cm.titleFontSize]:"1.125em",[cm.descriptionFontSize]:"1em",[cm.lineHeight]:"1.5em"},lg:{[cm.hostHeight]:"280px",[cm.hostWidth]:"336px",[cm.titleFontSize]:"1.125em",[cm.descriptionFontSize]:"1.125em",[cm.lineHeight]:"1.75em"}},_fullWidth:{[cm.hostWidth]:fu.width}};var um=Object.freeze({__proto__:null,default:pm,vars:cm});const hm=ft(Xp),mm=nl.cssVarList,gm={[mm.hostDirection]:"inherit",[mm.backgroundColor]:hm.colors.surface.main,[mm.labelTextColor]:hm.colors.surface.contrast,[mm.borderColor]:hm.colors.surface.light,[mm.borderStyle]:"solid",[mm.borderRadius]:hm.radius.sm,[mm.outlineColor]:"transparent",[mm.borderWidth]:hm.border.xs,_hover:{[mm.backgroundColor]:hm.colors.surface.highlight},_focused:{[mm.outlineColor]:hm.colors.surface.light},_selected:{[mm.borderColor]:hm.colors.surface.contrast,[mm.backgroundColor]:hm.colors.surface.contrast,[mm.labelTextColor]:hm.colors.surface.main}};var bm=Object.freeze({__proto__:null,default:gm,vars:mm});const ym=ft(Xp),fm=e=>({[e.hostDirection]:fu.direction,[e.fontFamily]:fu.fontFamily,[e.labelTextColor]:fu.labelTextColor,[e.labelRequiredIndicator]:fu.requiredIndicator,[e.itemsSpacing]:ym.spacing.sm,[e.hostWidth]:fu.width,[e.errorMessageTextColor]:fu.errorMessageTextColor,[e.errorMessageIcon]:fu.errorMessageIcon,[e.errorMessageIconSize]:fu.errorMessageIconSize,[e.errorMessageIconPadding]:fu.errorMessageIconPadding,[e.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[e.errorMessageIconPosition]:fu.errorMessageIconPosition,[e.errorMessageFontSize]:fu.errorMessageFontSize}),vm=rl.cssVarList,xm={...fm(vm)};var Cm=Object.freeze({__proto__:null,default:xm,vars:vm});const wm=dl.cssVarList,Im={...fm(wm)};var Mm=Object.freeze({__proto__:null,default:Im,vars:wm});const Sm=ft(Xp),Am=ic.cssVarList,Em={[Am.overlayBackgroundColor]:Sm.colors.surface.main,[Am.overlayShadow]:Sm.shadow.wide["2xl"],[Am.overlayWidth]:"540px"},Tm={...Am};var km=Object.freeze({__proto__:null,default:Em,vars:Tm});const zm=ft(Xp),Lm=jd.cssVarList,Nm={[Lm.hostWidth]:"100%",[Lm.hostHeight]:"100%",[Lm.hostMinHeight]:"400px",[Lm.fontWeight]:"400",[Lm.backgroundColor]:zm.colors.surface.main,[Lm.fontSize]:fu.fontSize,[Lm.fontFamily]:fu.fontFamily,[Lm.sortIndicatorsColor]:zm.colors.surface.light,[Lm.activeSortIndicator]:zm.colors.surface.dark,[Lm.resizeHandleColor]:zm.colors.surface.light,[Lm.borderWidth]:fu.borderWidth,[Lm.borderStyle]:fu.borderStyle,[Lm.borderRadius]:fu.borderRadius,[Lm.borderColor]:"transparent",[Lm.headerRowTextColor]:zm.colors.surface.dark,[Lm.separatorColor]:zm.colors.surface.light,[Lm.valueTextColor]:zm.colors.surface.contrast,[Lm.selectedBackgroundColor]:zm.colors.surface.highlight,[Lm.hostDirection]:zm.direction,[Lm.toggleDetailsPanelButtonSize]:"1em",[Lm.toggleDetailsPanelButtonOpenedColor]:zm.colors.surface.contrast,[Lm.toggleDetailsPanelButtonClosedColor]:zm.colors.surface.light,[Lm.toggleDetailsPanelButtonCursor]:"pointer",[Lm.detailsPanelBackgroundColor]:zm.colors.surface.highlight,[Lm.detailsPanelBorderTopColor]:zm.colors.surface.light,[Lm.detailsPanelLabelsColor]:zm.colors.surface.dark,[Lm.detailsPanelLabelsFontSize]:"0.8em",[Lm.detailsPanelItemsGap]:"2em",[Lm.detailsPanelPadding]:"12px 0",_bordered:{[Lm.borderColor]:fu.borderColor}};var Dm=Object.freeze({__proto__:null,default:Nm,grid:Nm,vars:Lm});const Vm=ft(Xp),Pm=lc.cssVarList,Bm="#00000020",Rm={[Pm.hostMinWidth]:"415px",[Pm.fontFamily]:Vm.fonts.font1.family,[Pm.fontSize]:Vm.typography.body1.size,[Pm.backgroundColor]:Vm.colors.surface.main,[Pm.textColor]:Vm.colors.surface.contrast,[Pm.boxShadow]:`${Vm.shadow.wide.xl} ${Bm}, ${Vm.shadow.narrow.xl} ${Bm}`,[Pm.verticalPadding]:"0.625em",[Pm.horizontalPadding]:"1.5em",[Pm.borderRadius]:Vm.radius.xs,_bordered:{[Pm.borderWidth]:Vm.border.sm,[Pm.borderStyle]:"solid",[Pm.borderColor]:"transparent"},size:{xs:{[Pm.fontSize]:"12px"},sm:{[Pm.fontSize]:"14px"},md:{[Pm.fontSize]:"16px"},lg:{[Pm.fontSize]:"18px"}},mode:{primary:{[Pm.backgroundColor]:Vm.colors.primary.main,[Pm.textColor]:Vm.colors.primary.contrast,[Pm.borderColor]:Vm.colors.primary.light},success:{[Pm.backgroundColor]:Vm.colors.success.main,[Pm.textColor]:Vm.colors.success.contrast,[Pm.borderColor]:Vm.colors.success.light},error:{[Pm.backgroundColor]:Vm.colors.error.main,[Pm.textColor]:Vm.colors.error.contrast,[Pm.borderColor]:Vm.colors.error.light}}};var Om=Object.freeze({__proto__:null,default:Rm,vars:Pm});const jm=ft(Xp),Fm=tc.cssVarList,Wm={[Fm.hostWidth]:fu.width,[Fm.hostDirection]:fu.direction,[Fm.fontSize]:fu.fontSize,[Fm.fontFamily]:fu.fontFamily,[Fm.labelFontSize]:fu.labelFontSize,[Fm.labelFontWeight]:fu.labelFontWeight,[Fm.labelTextColor]:fu.labelTextColor,[Fm.errorMessageTextColor]:fu.errorMessageTextColor,[Fm.inputBorderColor]:fu.borderColor,[Fm.inputBorderWidth]:fu.borderWidth,[Fm.inputBorderStyle]:fu.borderStyle,[Fm.inputBorderRadius]:fu.borderRadius,[Fm.inputOutlineColor]:fu.outlineColor,[Fm.inputOutlineOffset]:fu.outlineOffset,[Fm.inputOutlineWidth]:fu.outlineWidth,[Fm.inputOutlineStyle]:fu.outlineStyle,[Fm.labelRequiredIndicator]:fu.requiredIndicator,[Fm.inputValueTextColor]:fu.valueTextColor,[Fm.inputPlaceholderTextColor]:fu.placeholderTextColor,[Fm.inputBackgroundColor]:fu.backgroundColor,[Fm.inputHorizontalPadding]:fu.horizontalPadding,[Fm.inputVerticalPadding]:fu.verticalPadding,[Fm.inputHeight]:fu.inputHeight,[Fm.inputDropdownButtonColor]:jm.colors.surface.dark,[Fm.inputDropdownButtonCursor]:"pointer",[Fm.inputDropdownButtonSize]:fu.toggleButtonSize,[Fm.inputDropdownButtonOffset]:jm.spacing.xs,[Fm.overlayItemPaddingInlineStart]:jm.spacing.xs,[Fm.overlayItemPaddingInlineEnd]:jm.spacing.lg,[Fm.chipFontSize]:fu.chipFontSize,[Fm.chipTextColor]:jm.colors.surface.contrast,[Fm.chipBackgroundColor]:jm.colors.surface.light,[Fm.labelPosition]:fu.labelPosition,[Fm.labelTopPosition]:fu.labelTopPosition,[Fm.labelLeftPosition]:fu.labelLeftPosition,[Fm.labelHorizontalPosition]:fu.labelHorizontalPosition,[Fm.inputTransformY]:fu.inputTransformY,[Fm.inputTransition]:fu.inputTransition,[Fm.marginInlineStart]:fu.marginInlineStart,[Fm.placeholderOpacity]:fu.placeholderOpacity,[Fm.inputVerticalAlignment]:fu.inputVerticalAlignment,[Fm.errorMessageIcon]:fu.errorMessageIcon,[Fm.errorMessageIconSize]:fu.errorMessageIconSize,[Fm.errorMessageIconPadding]:fu.errorMessageIconPadding,[Fm.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Fm.errorMessageIconPosition]:fu.errorMessageIconPosition,[Fm.errorMessageFontSize]:fu.errorMessageFontSize,labelType:{floating:{[Fm.inputHorizontalPadding]:"0.25em",_hasValue:{[Fm.inputHorizontalPadding]:"0.45em"}}},_readonly:{[Fm.inputDropdownButtonCursor]:"default"},[Fm.overlayFontSize]:fu.fontSize,[Fm.overlayFontFamily]:fu.fontFamily,[Fm.overlayCursor]:"pointer",[Fm.overlayItemBoxShadow]:"none",[Fm.overlayBackground]:fu.backgroundColor,[Fm.overlayTextColor]:fu.valueTextColor,[Fm.overlay.minHeight]:"400px",[Fm.overlay.margin]:"0"};var _m=Object.freeze({__proto__:null,default:Wm,multiSelectComboBox:Wm,vars:Fm});const $m=Q(iu),Hm=zc.cssVarList,qm={[Hm.hostWidth]:"fit-content",[Hm.hostDirection]:$m.direction,[Hm.textAlign]:"center",[Hm.fontFamily]:$m.fonts.font1.family,[Hm.fontWeight]:"400",[Hm.verticalPadding]:"0.25em",[Hm.horizontalPadding]:"0.5em",[Hm.borderWidth]:$m.border.xs,[Hm.borderRadius]:$m.radius.xs,[Hm.borderColor]:"transparent",[Hm.borderStyle]:"solid",_fullWidth:{[Hm.hostWidth]:"100%"},size:{xs:{[Hm.fontSize]:"12px"},sm:{[Hm.fontSize]:"14px"},md:{[Hm.fontSize]:"16px"},lg:{[Hm.fontSize]:"18px"}},mode:{default:{[Hm.textColor]:$m.colors.surface.dark,_bordered:{[Hm.borderColor]:$m.colors.surface.light}},primary:{[Hm.textColor]:$m.colors.primary.main,_bordered:{[Hm.borderColor]:$m.colors.primary.light}},secondary:{[Hm.textColor]:$m.colors.secondary.main,_bordered:{[Hm.borderColor]:$m.colors.secondary.light}},error:{[Hm.textColor]:$m.colors.error.main,_bordered:{[Hm.borderColor]:$m.colors.error.light}},success:{[Hm.textColor]:$m.colors.success.main,_bordered:{[Hm.borderColor]:$m.colors.success.light}}}};var Ym=Object.freeze({__proto__:null,default:qm,vars:Hm});const Um=k("avatar");class Gm extends(ue({componentName:Um,baseSelector:":host > .wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <vaadin-avatar></vaadin-avatar>\n <div class="editableBadge">\n <vaadin-icon icon="vaadin:pencil"></vaadin-icon>\n </div>\n </div>\n\t\t',N("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .editableBadge {\n border: 1px solid;\n border-radius: 100%;\n height: fit-content;\n width: 25%;\n height: 25%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n inset-inline-end: 0;\n }\n\n vaadin-icon {\n color: currentcolor;\n }\n\n vaadin-avatar {\n width: 100%;\n height: 100%;\n margin: 0;\n border: none\n }\n\n .wrapper {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 100%;\n }\n ",this),this.avatarComponent=this.shadowRoot.querySelector("vaadin-avatar"),L(this,this.avatarComponent,{includeAttrs:["display-name","img","abbr"],mapAttrs:{"display-name":"name"}});const e=this.shadowRoot.querySelector(".editableBadge");S(this,()=>{e.style.display=this.isEditable?"":"none"},{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:Zm,editableBadge:Qm,avatar:Jm}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Km=I(ne({mappings:{hostWidth:[{...Zm,property:"width"},{...Zm,property:"min-width"}],hostHeight:{...Zm,property:"height"},cursor:[Jm,Zm],hostDirection:{...Zm,property:"direction"},avatarTextColor:{...Jm,property:"color"},avatarBackgroundColor:{...Jm,property:"background-color"},editableIconColor:{...Qm,property:"color"},editableBorderColor:{...Qm,property:"border-color"},editableBackgroundColor:{...Qm,property:"background-color"}}}),ae,se)(Gm),Xm=Q(iu),eg=Km.cssVarList,tg={[eg.hostDirection]:Xm.direction,[eg.editableIconColor]:Xm.colors.surface.dark,[eg.editableBorderColor]:Xm.colors.surface.dark,[eg.editableBackgroundColor]:Xm.colors.surface.main,[eg.avatarTextColor]:Xm.colors.surface.main,[eg.avatarBackgroundColor]:Xm.colors.surface.dark,_editable:{[eg.cursor]:"pointer"},size:{xs:{[eg.hostWidth]:"30px",[eg.hostHeight]:"30px"},sm:{[eg.hostWidth]:"40px",[eg.hostHeight]:"40px"},md:{[eg.hostWidth]:"60px",[eg.hostHeight]:"60px"},lg:{[eg.hostWidth]:"98px",[eg.hostHeight]:"98px"}}},rg={...eg};var og=Object.freeze({__proto__:null,default:tg,vars:rg});const ig=ft(Xp),ng=Mc.cssVarList,ag={[ng.hostWidth]:fu.width,[ng.hostDirection]:fu.direction,[ng.fontSize]:fu.fontSize,[ng.fontFamily]:fu.fontFamily,[ng.separatorFontSize]:"14px",[ng.labelsFontSize]:"14px",[ng.labelsLineHeight]:"1",[ng.labelsMarginBottom]:"6px",[ng.labelTextColor]:fu.labelTextColor,[ng.itemMarginBottom]:"1em",[ng.valueLabelMinWidth]:fu.minWidth,[ng.attrLabelMinWidth]:`calc(12em + 2 * ${ig.border.xs})`,[ng.separatorWidth]:"70px",[ng.removeButtonWidth]:"60px"};var sg=Object.freeze({__proto__:null,default:ag,mappingsField:ag,vars:ng});const lg=ft(Xp),dg=jc.cssVarList,cg={[dg.labelMinWidth]:"150px",[dg.hostDirection]:lg.direction,[dg.contentMinWidth]:`calc(100% - ${It(dg.labelMinWidth)} - ${It(dg.itemsGap)})`,[dg.badgeMaxWidth]:"85px",[dg.itemsGap]:"4px",[dg.hostMinWidth]:"310px",[dg.hostWidth]:"530px",[dg.hostMaxWidth]:"100%",_fullWidth:{[dg.hostWidth]:"100%"}};var pg=Object.freeze({__proto__:null,default:cg,vars:dg});const ug=ft(Xp),hg=Gc.cssVarList,mg={[hg.hostDirection]:ug.direction,[hg.itemsGap]:"16px",[hg.hostMinWidth]:"310px",[hg.hostWidth]:"530px",[hg.hostMaxWidth]:"100%",[hg.iconSize]:"24px",[hg.iconColor]:"currentcolor",_fullWidth:{[hg.hostWidth]:"100%"}};var gg=Object.freeze({__proto__:null,default:mg,vars:hg});const bg=tp.cssVarList,yg={[bg.hostWidth]:fu.width,[bg.hostDirection]:fu.direction,[bg.groupNameInputMarginBottom]:"1em",[bg.errorMessageIcon]:fu.errorMessageIcon,[bg.errorMessageIconSize]:fu.errorMessageIconSize,[bg.errorMessageIconPadding]:fu.errorMessageIconPadding,[bg.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[bg.errorMessageIconPosition]:fu.errorMessageIconPosition,[bg.errorMessageFontSize]:fu.errorMessageFontSize};var fg=Object.freeze({__proto__:null,default:yg,samlGroupMappings:yg,vars:bg});const vg=ft(Xp),xg=ds.cssVarList,Cg={[xg.fontFamily]:fu.fontFamily,[xg.fontSize]:fu.labelFontSize,[xg.textColor]:fu.labelTextColor,[xg.borderWidth]:fu.borderWidth,[xg.borderStyle]:fu.borderStyle,[xg.borderColor]:fu.borderColor,[xg.borderRadius]:vg.radius.sm,[xg.backgroundColor]:"none",[xg.padding]:"0px",[xg.labelMargin]:vg.spacing.sm,[xg.itemsSpacing]:vg.spacing.lg,[xg.itemSymbolDefault]:"'\\2022'",[xg.itemSymbolSuccess]:"'\\2713'",[xg.itemSymbolError]:"'\\2A09'",[xg.itemSymbolSuccessColor]:vg.colors.success.main,[xg.itemSymbolErrorColor]:vg.colors.error.main};var wg=Object.freeze({__proto__:null,default:Cg,vars:xg});const Ig=yo.cssVarList;var Mg=Object.freeze({__proto__:null,default:{},vars:Ig});const Sg=go.cssVarList;var Ag=Object.freeze({__proto__:null,default:{},vars:Sg});const Eg=ft(Xp),Tg=md.cssVarList,kg="#d73a49",zg="#6f42c1",Lg="#005cc5",Ng="#e36209",Dg="#6a737d",Vg="#22863a",Pg="#24292e",Bg="#f0fff4",Rg="#032f62",Og="#ff7b72",jg="#d2a8ff",Fg="#79c0ff",Wg="#ffa657",_g="#8b949e",$g="#7ee787",Hg="#c9d1d9",qg="#f0fff4",Yg="#a5d6ff",Ug={[Tg.rootBgColor]:Eg.colors.surface.main,[Tg.rootTextColor]:Eg.colors.surface.contrast,[Tg.docTagTextColor]:kg,[Tg.keywordTextColor]:kg,[Tg.metaKeywordTextColor]:kg,[Tg.templateTagTextColor]:kg,[Tg.templateVariableTextColor]:kg,[Tg.typeTextColor]:kg,[Tg.variableLanguageTextColor]:kg,[Tg.titleTextColor]:zg,[Tg.titleClassTextColor]:zg,[Tg.titleClassInheritedTextColor]:zg,[Tg.titleFunctionTextColor]:zg,[Tg.attrTextColor]:Lg,[Tg.attributeTextColor]:Lg,[Tg.literalTextColor]:Lg,[Tg.metaTextColor]:Lg,[Tg.numberTextColor]:Lg,[Tg.operatorTextColor]:Lg,[Tg.variableTextColor]:Lg,[Tg.selectorAttrTextColor]:Lg,[Tg.selectorClassTextColor]:Lg,[Tg.selectorIdTextColor]:Lg,[Tg.regexpTextColor]:Rg,[Tg.stringTextColor]:Rg,[Tg.metaStringTextColor]:Rg,[Tg.builtInTextColor]:Ng,[Tg.symbolTextColor]:Ng,[Tg.commentTextColor]:Dg,[Tg.codeTextColor]:Dg,[Tg.formulaTextColor]:Dg,[Tg.nameTextColor]:Vg,[Tg.quoteTextColor]:Vg,[Tg.selectorTagTextColor]:Vg,[Tg.selectorPseudoTextColor]:Vg,[Tg.substTextColor]:Pg,[Tg.sectionTextColor]:Lg,[Tg.bulletTextColor]:"#735c0f",[Tg.emphasisTextColor]:Pg,[Tg.strongTextColor]:Pg,[Tg.additionTextColor]:Vg,[Tg.additionBgColor]:Bg,[Tg.deletionTextColor]:kg,[Tg.deletionBgColor]:Bg},Gg={codeSnippet:{[Tg.rootBgColor]:Eg.colors.surface.main,[Tg.rootTextColor]:Eg.colors.surface.contrast,[Tg.docTagTextColor]:Og,[Tg.keywordTextColor]:Og,[Tg.metaKeywordTextColor]:Og,[Tg.templateTagTextColor]:Og,[Tg.templateVariableTextColor]:Og,[Tg.typeTextColor]:Og,[Tg.variableLanguageTextColor]:Og,[Tg.titleTextColor]:jg,[Tg.titleClassTextColor]:jg,[Tg.titleClassInheritedTextColor]:jg,[Tg.titleFunctionTextColor]:jg,[Tg.attrTextColor]:Fg,[Tg.attributeTextColor]:Fg,[Tg.literalTextColor]:Fg,[Tg.metaTextColor]:Fg,[Tg.numberTextColor]:Fg,[Tg.operatorTextColor]:Fg,[Tg.variableTextColor]:Fg,[Tg.selectorAttrTextColor]:Fg,[Tg.selectorClassTextColor]:Fg,[Tg.selectorIdTextColor]:Fg,[Tg.regexpTextColor]:Yg,[Tg.stringTextColor]:Yg,[Tg.metaStringTextColor]:Yg,[Tg.builtInTextColor]:Wg,[Tg.symbolTextColor]:Wg,[Tg.commentTextColor]:_g,[Tg.codeTextColor]:_g,[Tg.formulaTextColor]:_g,[Tg.nameTextColor]:$g,[Tg.quoteTextColor]:$g,[Tg.selectorTagTextColor]:$g,[Tg.selectorPseudoTextColor]:$g,[Tg.substTextColor]:Hg,[Tg.sectionTextColor]:Fg,[Tg.bulletTextColor]:"#735c0f",[Tg.emphasisTextColor]:Hg,[Tg.strongTextColor]:Hg,[Tg.additionTextColor]:$g,[Tg.additionBgColor]:qg,[Tg.deletionTextColor]:Og,[Tg.deletionBgColor]:qg}};var Zg=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Gg,default:Ug,vars:Tg});const Qg=np.cssVarList,Jg=ft(Xp),Kg={[Qg.buttonsRowGap]:"9px",[Qg.hostWidth]:fu.width,[Qg.hostDirection]:fu.direction,[Qg.fontSize]:fu.fontSize,[Qg.fontFamily]:fu.fontFamily,[Qg.labelTextColor]:fu.labelTextColor,[Qg.labelRequiredIndicator]:fu.requiredIndicator,[Qg.errorMessageTextColor]:fu.errorMessageTextColor,[Qg.errorMessageIcon]:fu.errorMessageIcon,[Qg.errorMessageIconSize]:fu.errorMessageIconSize,[Qg.errorMessageIconPadding]:fu.errorMessageIconPadding,[Qg.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Qg.errorMessageIconPosition]:fu.errorMessageIconPosition,[Qg.errorMessageFontSize]:fu.errorMessageFontSize,[Qg.helperTextColor]:fu.helperTextColor,[Qg.itemsLabelColor]:Jg.colors.surface.contrast,textAlign:{right:{[Qg.inputTextAlign]:"right"},left:{[Qg.inputTextAlign]:"left"},center:{[Qg.inputTextAlign]:"center"}},_fullWidth:{[Qg.buttonsSpacing]:"space-between"},_disabled:{[Qg.itemsLabelColor]:Jg.colors.surface.light}};var Xg=Object.freeze({__proto__:null,default:Kg,radioGroup:Kg,vars:Qg});const eb=op.cssVarList,tb=ft(Xp),rb={[eb.fontFamily]:fu.fontFamily,[eb.radioSize]:"calc(1em + 6px)",[eb.radioMargin]:"auto 4px",[eb.radioCheckedSize]:`calc(var(${eb.radioSize})/5)`,[eb.radioCheckedColor]:tb.colors.surface.light,[eb.radioBackgroundColor]:tb.colors.surface.light,[eb.radioBorderColor]:"none",[eb.radioBorderWidth]:0,_checked:{[eb.radioBackgroundColor]:tb.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[eb.fontSize]:"12px"},sm:{[eb.fontSize]:"14px"},md:{[eb.fontSize]:"16px"},lg:{[eb.fontSize]:"18px"}}};var ob=Object.freeze({__proto__:null,default:rb,radioButton:rb,vars:eb});const ib=ft(Xp),nb=vi.cssVarList,ab={[nb.fontFamily]:fu.fontFamily,[nb.fontSize]:fu.fontSize,[nb.hostDirection]:fu.direction,[nb.calendarPadding]:"1em",[nb.topNavVerticalPadding]:"1em",[nb.topNavAlignment]:"space-between",[nb.topNavGap]:"0",[nb.topNavSelectorsGap]:"0.5em",[nb.bottomNavVerticalPadding]:"0.75em",[nb.bottomNavHorizontalPadding]:"1.5em",[nb.bottomNavAlignment]:"space-between",[nb.bottomNavGap]:"0.5em",[nb.navMarginBottom]:"0.75em",[nb.navBorderBottomWidth]:"1px",[nb.navBorderBottomColor]:ib.colors.surface.highlight,[nb.navBorderBottomStyle]:"solid",[nb.yearInputWidth]:"6em",[nb.monthInputWidth]:"8em",[nb.navButtonSize]:"24px",[nb.navButtonCursor]:"pointer",[nb.weekdayFontSize]:"0.875em",[nb.weekdayFontWeight]:"500",[nb.dayHeight]:"3.125em",[nb.daySize]:"2.125em",[nb.dayFontSize]:"1em",[nb.dayRadius]:"50%",[nb.dayTextAlign]:"center",[nb.dayPadding]:"0",[nb.dayTextColor]:ib.colors.surface.contrast,[nb.dayFontWeight]:"500",[nb.dayBackgroundColor]:"transparent",[nb.dayCursor]:"pointer",[nb.dayBackgroundColorHover]:ib.colors.primary.highlight,[nb.daySelectedBackgroundColor]:ib.colors.primary.main,[nb.daySelectedTextdColor]:ib.colors.primary.contrast,[nb.dayDisabledTextdColor]:ib.colors.surface.light,[nb.currentDayBorderColor]:ib.colors.surface.light,[nb.currentDayBorderWidth]:"1px",[nb.currentDayBorderStyle]:"solid",size:{xs:{[nb.fontSize]:"12px"},sm:{[nb.fontSize]:"14px"},md:{[nb.fontSize]:"16px"},lg:{[nb.fontSize]:"18px"}},[nb.navButtonRotation]:"rotate(180deg)",_disabled:{[nb.navButtonOpacity]:"0.5",[nb.dayBackgroundColorHover]:"none",[nb.navButtonCursor]:"default",[nb.dayCursor]:"default"},_fullWidth:{[nb.hostWidth]:"100%",[nb.dayBlockAlign]:"0 auto"}};var sb=Object.freeze({__proto__:null,default:ab,vars:nb});const lb=ft(Xp),db="#00000020",{shadow:cb}=lb,pb=Xi.cssVarList,ub={[pb.hostWidth]:fu.width,[pb.hostDirection]:fu.direction,[pb.iconMargin]:"0.375em",[pb.overlay.marginTop]:`calc(${fu.outlineWidth} + 1px)`,[pb.overlay.backgroundColor]:fu.backgroundColor,[pb.overlay.backdropBackgroundColor]:"transparent",[pb.overlay.backdropPointerEvents]:"all",[pb.overlay.boxShadow]:`${cb.wide.xl} ${db}, ${cb.narrow.xl} ${db}`,[pb.overlay.outlineWidth]:"0",[pb.overlay.outlineColor]:"transparent",[pb.overlay.outlineStyle]:"none",[pb.overlay.padding]:"0",[pb.rtlInputDirection]:"ltr",[pb.rtlInputAlignment]:"right",[pb.errorMessageIcon]:fu.errorMessageIcon,[pb.errorMessageIconSize]:fu.errorMessageIconSize,[pb.errorMessageIconPadding]:fu.errorMessageIconPadding,[pb.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[pb.errorMessageIconPosition]:fu.errorMessageIconPosition,[pb.errorMessageFontSize]:fu.errorMessageFontSize};var hb=Object.freeze({__proto__:null,default:ub,vars:pb});const mb=k("apps-list"),gb=I(ne({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},itemsFontWeight:{selector:vr.componentName,property:vr.cssVarList.fontWeightOverride},itemsFontSize:{selector:vr.componentName,property:vr.cssVarList.fontSizeOverride},itemsTextAlign:{selector:vr.componentName,property:vr.cssVarList.textAlign},itemBackgroundColor:{selector:hp.componentName,property:hp.cssVarList.backgroundColor},backgroundColor:{selector:bp.componentName,property:bp.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:hp.componentName,property:hp.cssVarList.borderStyleOverride},itemBorderColor:{selector:hp.componentName,property:hp.cssVarList.borderColorOverride},itemBorderWidth:{selector:hp.componentName,property:hp.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:hp.componentName,property:hp.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:hp.componentName,property:hp.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:vr.componentName,property:vr.cssVarList.textAlign}]}}),ke({itemRenderer:({name:e,icon:t,url:r},o,i)=>`\n <a ${r?`href="${r}" title="${r}"`:""} target="_blank">\n <descope-list-item>\n <div class="avatar-wrapper">\n <descope-avatar\n ${t?`img="${t}"`:""}\n ${e?`display-name="${e}" abbr=${P(e)}`:""}\n size="${i.logoSize||i.size}"\n ></descope-avatar>\n </div>\n <descope-text\n variant="${i.itemTextVariant}"\n mode="primary"\n >${e}</descope-text>\n </descope-list-item>\n </a>\n`,rerenderAttrsList:["size","item-text-variant","logo-size"]}),ae,se,e=>class extends e{get size(){return this.getAttribute("size")||"sm"}get itemTextVariant(){return this.getAttribute("item-text-variant")||"body1"}get logoSize(){return this.getAttribute("logo-size")}})(we({slots:["empty-state"],wrappedEleName:"descope-list",excludeAttrsSync:["tabindex","class","empty","style"],componentName:mb,style:()=>`\n :host {\n width: 100%;\n display: inline-flex;\n }\n\n descope-text::part(text-wrapper) {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n descope-list-item[variant="tile"] .avatar-wrapper {\n width: 100%;\n }\n\n .avatar-wrapper {\n line-height: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n descope-text {\n ${vr.cssVarList.hostDirection}: var(${gb.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),bb=gb.cssVarList,yb=Q(iu),fb="400px",vb={[bb.itemsFontWeight]:"normal",[bb.itemsTextAlign]:"start",[bb.hostDirection]:yb.direction,[bb.maxHeight]:fb,_empty:{[bb.minHeight]:fb},size:{xs:{[bb.itemsFontSize]:"14px"},sm:{[bb.itemsFontSize]:"14px"},md:{[bb.itemsFontSize]:"16px"},lg:{[bb.itemsFontSize]:"20px"}},itemPadding:{xs:{[bb.itemVerticalPadding]:yb.spacing.xs,[bb.itemHorizontalPadding]:yb.spacing.xs},sm:{[bb.itemVerticalPadding]:yb.spacing.sm,[bb.itemHorizontalPadding]:yb.spacing.sm},md:{[bb.itemVerticalPadding]:yb.spacing.md,[bb.itemHorizontalPadding]:yb.spacing.md},lg:{[bb.itemVerticalPadding]:yb.spacing.lg,[bb.itemHorizontalPadding]:yb.spacing.lg},xl:{[bb.itemVerticalPadding]:yb.spacing.xl,[bb.itemHorizontalPadding]:yb.spacing.xl}}};var xb=Object.freeze({__proto__:null,default:vb,vars:bb});const Cb=Q(iu),wb=bp.cssVarList,[Ib,Mb,Sb]=K({shadowColor:"#00000020"},mp),{shadowColor:Ab}=Mb,Eb={...Ib,[wb.hostWidth]:"100%",[wb.backgroundColor]:Cb.colors.surface.main,[wb.fontFamily]:Cb.fonts.font1.family,[wb.borderColor]:Cb.colors.surface.light,[wb.borderStyle]:"solid",[wb.borderWidth]:Cb.border.xs,[wb.borderRadius]:Cb.radius.sm,[wb.gap]:Cb.spacing.md,[wb.verticalPadding]:Cb.spacing.lg,[wb.horizontalPadding]:Cb.spacing.lg,[wb.boxShadow]:`${Cb.shadow.wide.sm} ${Ab}, ${Cb.shadow.narrow.sm} ${Ab}`,[wb.maxHeight]:"100%",[wb.hostDirection]:Cb.direction,[wb.minItemsWidth]:"150px",_empty:{[wb.minHeight]:"150px",[wb.emptyStateTextColor]:Cb.colors.surface.dark,[wb.emptyStateTextFontFamily]:Cb.fonts.font1.family},variant:{tiles:{[wb.gridTemplateColumns]:`repeat(auto-fit, minmax(min(${J(wb.minItemsWidth)}, 100%), 1fr))`,[wb.maxItemsWidth]:"200px",[wb.itemsHorizontalAlign]:"center"}}},Tb={...wb,...Sb};var kb=Object.freeze({__proto__:null,default:Eb,vars:Tb});const zb=Q(iu),Lb=hp.cssVarList,Nb={[Lb.backgroundColor]:zb.colors.surface.main,[Lb.verticalPadding]:zb.spacing.lg,[Lb.horizontalPadding]:zb.spacing.lg,[Lb.gap]:zb.spacing.md,[Lb.borderStyle]:"solid",[Lb.borderWidth]:zb.border.xs,[Lb.borderColor]:zb.colors.surface.main,[Lb.borderRadius]:zb.radius.sm,[Lb.cursor]:"pointer",[Lb.alignItems]:"center",[Lb.flexDirection]:"row",[Lb.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Lb.alignItems]:"flex-start",[Lb.flexDirection]:"column",[Lb.borderColor]:zb.colors.surface.light}},_hover:{[Lb.backgroundColor]:zb.colors.surface.highlight},_active:{[Lb.backgroundColor]:zb.colors.surface.main,[Lb.borderColor]:zb.colors.primary.light,[Lb.outline]:`1px solid ${zb.colors.primary.light}`}};var Db=Object.freeze({__proto__:null,default:Nb,vars:Lb});const Vb=pp.cssVarList,Pb={[Vb.requiredInputBorderColor]:yu._disabled[vu.borderColor],[Vb.requiredInputValueTextColor]:yu._disabled[vu.valueTextColor],[Vb.hostWidth]:"280px",_fullWidth:{[Vb.hostWidth]:"100%"}};var Bb=Object.freeze({__proto__:null,default:Pb,vars:Vb});const Rb=ft(Xp),Ob=Cp.cssVarList,jb={[Ob.gap]:Rb.spacing.lg,[Ob.arrowsColor]:Rb.colors.surface.dark,[Ob.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[Ob.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[Ob.logoMaxHeight]:"30px",[Ob.logoMaxWidth]:"120px"},sm:{[Ob.logoMaxHeight]:"40px",[Ob.logoMaxWidth]:"160px"},md:{[Ob.logoMaxHeight]:"48px",[Ob.logoMaxWidth]:"200px"},lg:{[Ob.logoMaxHeight]:"60px",[Ob.logoMaxWidth]:"240px"}}};var Fb=Object.freeze({__proto__:null,default:jb,vars:Ob});const Wb=Ap.cssVarList,_b={[Wb.hostWidth]:"fit-content",_fullWidth:{[Wb.hostWidth]:"100%"}};var $b=Object.freeze({__proto__:null,default:_b,vars:Wb});const Hb=Vp.cssVarList,qb={[Hb.hostWidth]:"min-content",[Hb.questionCursor]:"pointer",_fullWidth:{[Hb.hostWidth]:"100%"},[Hb.questionFontSize]:fu.fontSize,[Hb.questionFontFamily]:fu.fontFamily};var Yb=Object.freeze({__proto__:null,default:qb,vars:Hb});const Ub=Wp.cssVarList,Gb={[Ub.hostDirection]:fu.direction,[Ub.errorMessageIcon]:fu.errorMessageIcon,[Ub.errorMessageIconSize]:fu.errorMessageIconSize,[Ub.errorMessageIconPadding]:fu.errorMessageIconPadding,[Ub.errorMessageIconRepeat]:fu.errorMessageIconRepeat,[Ub.errorMessageIconPosition]:fu.errorMessageIconPosition,[Ub.errorMessageFontSize]:fu.errorMessageFontSize,_fullWidth:{[Ub.hostWidth]:"100%"}};var Zb=Object.freeze({__proto__:null,default:Gb,vars:Ub});const Qb=ft(Xp),Jb=qp.cssVarList,Kb={[Jb.hostDirection]:Qb.direction,[Jb.backgroundColor]:"transparent",[Jb.iconSize]:"1.35em",[Jb.alignItems]:"center",[Jb.borderRadius]:Qb.radius.md,[Jb.horizontalPadding]:"0",[Jb.verticalPadding]:"0",[Jb.gap]:"0.5em",[Jb.fontSize]:It(uh.fontSize),mode:{error:{[Jb.textColor]:Qb.colors.error.main,_bordered:{[Jb.borderColor]:Qb.colors.error.main}},success:{[Jb.textColor]:Qb.colors.success.main,_bordered:{[Jb.borderColor]:Qb.colors.success.main}}},spacing:{xs:{[Jb.horizontalPadding]:Qb.spacing.xs,[Jb.verticalPadding]:Qb.spacing.xs},sm:{[Jb.horizontalPadding]:Qb.spacing.sm,[Jb.verticalPadding]:Qb.spacing.sm},md:{[Jb.horizontalPadding]:Qb.spacing.md,[Jb.verticalPadding]:Qb.spacing.md},lg:{[Jb.horizontalPadding]:Qb.spacing.lg,[Jb.verticalPadding]:Qb.spacing.lg},xl:{[Jb.horizontalPadding]:Qb.spacing.xl,[Jb.verticalPadding]:Qb.spacing.xl}},textAlign:{left:{[Jb.justifyContent]:"left"},center:{[Jb.justifyContent]:"center"},right:{[Jb.justifyContent]:"right"}},_bordered:{[Jb.borderWidth]:Qb.border.xs,[Jb.borderColor]:"transparent",[Jb.borderStyle]:"solid",[Jb.borderWidth]:Qb.border.xs,[Jb.borderRadius]:Qb.radius.sm},_fullWidth:{[Jb.hostWidth]:"100%"}};var Xb=Object.freeze({__proto__:null,default:Kb,vars:Jb});const ey=Zp.cssVarList,ty={enabled:{false:{[ey.maxHeight]:"70px"}}};var ry=Object.freeze({__proto__:null,default:ty,vars:ey});const oy=k("autocomplete-field-internal"),iy=ve({componentName:oy,baseSelector:""}),ny=[],ay="DESCOPE_INVALID_OPTION",sy=k("autocomplete-field"),{host:ly}={host:{selector:()=>":host"}},dy=I(ne({componentNameOverride:k("input-wrapper")}),ne({mappings:{hostWidth:{...ly,property:"width"},hostDirection:{...ly,property:"direction"},fontSize:{...ly},checkmarkDisplay:{selector:co.componentName,property:co.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:co.componentName,property:co.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:co.componentName,property:co.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:co.componentName,property:co.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:co.componentName,property:co.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:co.componentName,property:co.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:co.componentName,property:co.cssVarList.overlayItemHoverBackground}}}),ae,Ae({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),se,e=>class extends e{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${oy}\n tabindex="-1"\n ></${oy}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(oy),L(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),T(this,this.inputElement,{includeAttrs:["invalid"]}),this.inputElement.fetchResults=this.fetchResults,this.setDefaultValue()}set fetchResults(e){this.inputElement.fetchResults=e}})(we({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-autocomplete-field-internal {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n descope-autocomplete-field-internal ::slotted {\n padding: 0;\n }\n ",excludeAttrsSync:["tabindex","error-message","label","style"],componentName:sy})),cy=dy.cssVarList,py=Q(iu),uy={[cy.hostWidth]:Zh.width,[cy.hostDirection]:Zh.direction,[cy.fontSize]:Zh.fontSize,[cy.checkmarkDisplay]:"none",[cy.itemPaddingInlineStart]:py.spacing.lg,[cy.itemPaddingInlineEnd]:py.spacing.lg,[cy.selectedItemBackground]:py.colors.primary.light,[cy.selectedItemHoverBackground]:py.colors.primary.light,[cy.selectedItemFocusBackground]:py.colors.primary.light,[cy.itemHoverBackground]:py.colors.primary.highlight,_fullWidth:{[cy.hostWidth]:"100%"}};var hy=Object.freeze({__proto__:null,default:uy,vars:cy});class my extends(Ce()){#mt=null;#gt=null;constructor(e){super(e),this.#gt=this.#bt()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#bt(){const e=this.getAttribute("public-api-key");if(!this.#mt&&e)try{(e=>{var t,r,o,i,n,a,s,l,d,c,p,u,h;window.google?.maps||(t={key:e},n="The Google Maps JavaScript API",a="google",s="importLibrary",l="__ib__",d=document,c=window,p=(c=c[a]||(c[a]={})).maps||(c.maps={}),u=new Set,h=new URLSearchParams,p[s]?console.warn(n+" only loads once. Ignoring:",t):p[s]=(e,...c)=>u.add(e)&&(r||(r=new Promise(async(e,s)=>{for(i in await(o=d.createElement("script")),h.set("libraries",[...u]+""),t)h.set(i.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),t[i]);h.set("callback",a+".maps."+l),o.src=`https://maps.${a}apis.com/maps/api/js?`+h,p[l]=e,o.onerror=()=>r=s(Error(n+" could not load.")),o.nonce=d.querySelector("script[nonce]")?.nonce||"",d.head.append(o)}))).then(()=>p[s](e,...c)))})(e);const{AutocompleteSuggestion:t}=await google.maps.importLibrary("places");this.#mt=t}catch(e){throw console.error("Failed to initialize Google Maps Autocomplete service:",e),e}}async _fetchResults(e){if(!e?.trim())return{results:[]};try{await this.#gt;const t={input:e};this.getOptionalParams().forEach(({attribute:e,key:r,defaultValue:o})=>{const i=this.getAttribute(e)||o;i&&(t[r]="includedPrimaryTypes"===r?i.split(",").map(e=>e.trim()).filter(Boolean):i)});const{suggestions:r}=await this.#mt.fetchAutocompleteSuggestions(t);return this.#yt(r)}catch(e){return console.error("Google Maps Places Autocomplete failed:",e),{results:[],error:xe}}}#yt(e){return e?.length?{results:e.map(e=>{const t=e.placePrediction;return{id:t.placeId,label:t.text.text,value:t.text.text}})}:{results:[]}}}class gy extends(Ce()){getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"layers",attribute:"address-types"},{key:"limit",attribute:"address-limit"},{key:"lang",attribute:"address-language"},{key:"countryCode",attribute:"address-region"}]}async _fetchResults(e){if(!e?.trim())return{results:[]};const t=this.getAttribute("public-api-key"),r=new URLSearchParams({query:e.trim()});this.getOptionalParams().forEach(({attribute:e,key:t,defaultValue:o})=>{const i=this.getAttribute(e)||o;i&&("layers"===t||"countryCode"===t?r.append(t,i.split(",").map(e=>e.trim()).filter(Boolean).join(",")):r.append(t,i))});try{const e=await fetch(`https://api.radar.io/v1/search/autocomplete?${r.toString()}`,{headers:{Authorization:t}});if(!e.ok)throw new Error(`Radar API returned ${e.status}`);const o=await e.json();return this.#yt(o)}catch(e){return console.error("Radar Places Autocomplete failed:",e),{results:[],error:xe}}}#yt(e){return e?.addresses?.length?{results:e.addresses.map(e=>({label:e.formattedAddress,value:e.formattedAddress}))}:{results:[]}}}const by=k("address-field-internal"),yy="google-maps-places",fy="radar",vy={[yy]:my,[fy]:gy},xy=ve({componentName:by,baseSelector:""}),Cy=["public-api-key"],wy=[...Cy],Iy=I((({connectorClasses:e})=>t=>class extends t{#ft=e;static get observedAttributes(){return[...t.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#ft}set connectorClasses(e){this.#ft=e}get connectorTemplate(){return this.getAttribute("connector-template")}initializeConnector(){const e=this.connectorTemplate;if(!this.connectorClasses[e])return;const t=this.connectorClasses[e];this.connector=new t(this.getAttribute.bind(this))}async fetchConnectorResults(e){if(!this.connector)return console.error(`No connector initialized for the field with template: ${this.connectorTemplate}`),{results:[]};const{results:t,error:r}=await this.connector.fetch(e);return r?{results:[],error:r}:{results:t.map(({label:e,value:t})=>({label:e,value:t}))}}init(){super.init?.(),this.initializeConnector()}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"connector-template"===e&&this.initializeConnector()}})({connectorClasses:vy}))(class extends xy{static get observedAttributes(){return[].concat(xy.observedAttributes||[],wy)}get errorMsgValueMissing(){return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing}constructor(){super(),this.innerHTML="\n <div>\n <descope-autocomplete-field></descope-autocomplete-field>\n </div>\n ",this.autocompleteField=this.querySelector("descope-autocomplete-field")}get value(){return this.autocompleteField.value}set value(e){this.autocompleteField.value=e}focus(){this.autocompleteField.focus()}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.autocompleteField.focus()}),super.init?.(),this.initAutocomplete()}initAutocomplete(){L(this,this.autocompleteField,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","error-message","default-value","data-errormessage-value-missing","st-host-direction","allow-custom-value","min-search-length","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),T(this,this.autocompleteField,{includeAttrs:["invalid"]}),this.autocompleteField.fetchResults=this.fetchConnectorResults.bind(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&Cy.includes(e)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),My=k("address-field"),{host:Sy}={host:{selector:()=>":host"}},Ay=I(ne({componentNameOverride:k("input-wrapper")}),ne({mappings:{hostWidth:{...Sy,property:"width"},hostDirection:{...Sy,property:"direction"}}}),ae,Ae({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),se,e=>class extends e{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(e){this.inputElement.connectorClasses=e}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const e=document.createElement("template");e.innerHTML=`\n <${by}\n tabindex="-1"\n ></${by}>\n `,this.baseElement.appendChild(e.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(by),L(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding","connector-template","public-api-key","address-types","address-language","address-region","address-limit"]}),T(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValue()}})(we({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${by} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${by} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:My})),Ey=Ay.cssVarList,Ty={[Ey.hostWidth]:Zh.width,[Ey.hostDirection]:Zh.direction,_fullWidth:{[Ey.hostWidth]:"100%"}};var ky=Object.freeze({__proto__:null,default:Ty,vars:Ey});const zy=(e,t=2)=>String(e).padStart(t,"0"),Ly=k("timer"),Ny=["seconds","hide-icon","paused"],Dy=ue({componentName:Ly,baseSelector:":host > .wrapper"}),{host:Vy,icon:Py,timer:By}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},Ry=I(ne({mappings:{fontSize:{},iconSize:[{...Py,property:"width"},{...Py,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...By},lineHeight:{...By},textColor:{...By,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...Vy,property:"width"},hostDirection:{...Vy,property:"direction"},iconColor:{...Py,property:yo.cssVarList.fill}}}),ae,se)(class extends Dy{#vt=0;#xt;static get observedAttributes(){return Ny.concat(Dy.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=" class="icon"></descope-icon>\n <div class="timer"></div>\n </div>\n\t\t',N("\n :host {\n display: inline-flex;\n user-select: none;\n -webkit-user-select: none;\n }\n .wrapper {\n display: flex;\n align-items: center;\n flex-direction: row;\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ",this),this.icon=this.shadowRoot.querySelector(".icon"),this.timer=this.shadowRoot.querySelector(".timer")}get seconds(){const e=this.getAttribute("seconds"),t=1e3*parseInt(e||0,10);return Math.max(0,t)}get isPaused(){return"true"===this.getAttribute("paused")}init(){super.init?.(),this.#vt=this.seconds}startInterval(){this.#vt?this.#xt=setInterval(()=>{this.#Ct(),this.#vt||this.stop(),this.#wt(this.#vt)},1e3):this.stop()}stopInterval(){clearInterval(this.#xt)}#Ct(){this.#vt=this.#vt-1e3}reset(){this.#vt=this.seconds,this.#wt(this.#vt),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#vt=0,this.#wt(this.#vt),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#wt(e){this.timer.textContent=((e=0)=>{const t=Math.floor(e/1e3),r=Math.floor(t/3600),o=Math.floor(t%3600/60),i=t%60;return[...r?[zy(r)]:[],zy(o),zy(i)].join(":")})(e)}#It(e){this.icon.classList.toggle("hidden",e)}#Mt(e){setTimeout(()=>{e?this.pause():this.#xt||this.resume()})}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&("seconds"===e&&this.reset(),"hide-icon"===e&&this.#It("true"===r),"paused"===e&&this.#Mt("true"===r))}}),Oy=Q(iu),jy=Ry.cssVarList,Fy={[jy.hostDirection]:Oy.direction,[jy.gap]:"0.25em",[jy.fontFamily]:Oy.fonts.font1.family,[jy.minHeight]:"1.5em",[jy.lineHeight]:"1em",[jy.fontWeight]:Oy.fonts.font1.fontWeight,[jy.textColor]:Oy.colors.surface.contrast,[jy.iconColor]:Oy.colors.surface.contrast,[jy.iconSize]:"1em",size:{xs:{[jy.fontSize]:"12px"},sm:{[jy.fontSize]:"14px"},md:{[jy.fontSize]:"16px"},lg:{[jy.fontSize]:"18px"}},textAlign:{right:{[jy.textAlign]:"right"},left:{[jy.textAlign]:"left"},center:{[jy.textAlign]:"center"}},_fullWidth:{[jy.hostWidth]:"100%"}};var Wy=Object.freeze({__proto__:null,default:Fy,vars:jy});const _y=k("timer-button"),$y=["button-variant","button-mode","size","text-align","full-width"],Hy={"button-variant":"variant","button-mode":"mode"},qy=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],Yy={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},Uy=ue({componentName:_y,baseSelector:":host > div"}),{host:Gy}={host:{selector:()=>":host"}},Zy=I(ne({mappings:{gap:{},flexDirection:{},hostWidth:{...Gy,property:"width"},hostDirection:{...Gy,property:"direction"}}}),ae,se)(class extends Uy{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-timer class="timer"></descope-timer>\n <descope-button class="button" disabled="true">\n <slot></slot>\n </descope-button>\n </div>\n\t\t',N("\n :host {\n display: inline-flex;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n gap: 0.5em;\n align-items: center;\n width: 100%;\n }\n .timer {\n flex: 1;\n }\n ",this),this.timer=this.shadowRoot.querySelector(".timer"),this.button=this.shadowRoot.querySelector(".button"),this.timer.addEventListener("timer-started",()=>this.onTimerStarted()),this.timer.addEventListener("timer-ended",()=>this.onTimerEnded()),this.button.addEventListener("click",this.onClick.bind(this))}set onclick(e){this.button.onclick=e}init(){super.init?.(),L(this,this.button,{includeAttrs:$y,mapAttrs:Hy}),L(this,this.timer,{includeAttrs:qy,mapAttrs:Yy}),this.button.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}onTimerStarted(){this.toggleButtonDisable(!0)}onTimerEnded(){this.toggleButtonDisable(!1)}onClick(){this.timer.reset()}toggleButtonDisable(e){setTimeout(()=>{e?this.button.setAttribute("disabled","true"):this.button.removeAttribute("disabled")})}}),Qy=Q(iu),Jy=Zy.cssVarList,Ky={[Jy.gap]:Qy.spacing.sm,[Jy.flexDirection]:"column",_horizontal:{[Jy.flexDirection]:"row"},_fullWidth:{[Jy.hostWidth]:"100%"}};var Xy=Object.freeze({__proto__:null,default:Ky,vars:Jy});const ef=k("password-strength");class tf extends(ue({componentName:ef,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["options","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="bars-container"></div>\n <div class="text-container">\n </div>\n </div>\n\t\t',N("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .wrapper {\n display: inline-flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n height: 100%;\n align-items: flex-start;\n }\n\n .bar {\n flex-grow: 1;\n }\n\n .bars-container {\n display: flex;\n flex-grow: 1;\n width: 100%;\n }\n ",this),this.barsContainer=this.shadowRoot.querySelector(".bars-container"),this.textContainer=this.shadowRoot.querySelector(".text-container")}get options(){return this.getAttribute("options")?.split(",")||[]}getCalcScoreFn=()=>Promise.resolve().then(function(){return hv}).then(e=>e.default);#St=-1;async calcScore(){const e=this.getAttribute("value")||"";return e?(await this.getCalcScoreFn())(e).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((e,t)=>{const r=document.createElement("div");return r.classList.add("bar"),r.classList.toggle("filled",t<=this.#St),this.barsContainer.appendChild(r),r})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const e=await this.calcScore();e!==this.#St&&(this.#St=e,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#St})),this.bars?.forEach((e,t)=>{e.classList.toggle("filled",t<=this.#St)}),this.textContainer.innerHTML=this.options[this.#St]||"",-1===this.#St?this.removeAttribute("score"):this.setAttribute("score",this.#St))}attributeChangedCallback(e,t,r){if(t!==r)return"options"===e?this.renderBars():"value"===e?this.onValueChange():void 0}}const{host:rf,bar:of,filledBar:nf,barsContainer:af,text:sf}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},lf=I(ne({componentNameOverride:k("input-wrapper")}),ne({mappings:{hostWidth:[{...rf,property:"width"},{...rf,property:"min-width"}],hostDirection:{...rf,property:"direction"},hostMinWidth:{...rf,property:"min-width"},barHeight:{...of,property:"height"},barBorderRadius:{...of,property:"border-radius"},emptyBarColor:{...of,property:"background-color"},filledBarColor:{...nf,property:"background-color"},textColor:{...sf,property:"color"},spacing:{property:"gap"},barSpacing:{...af,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...of,property:"transition"}}}),ae,se)(tf),df=Q(iu),cf=lf.cssVarList,pf={[cf.hostDirection]:df.direction,[cf.barHeight]:"4px",[cf.barTransition]:"background-color 0.3s",[cf.barBorderRadius]:df.radius.sm,[cf.hostMinWidth]:Zh.minWidth,[cf.barSpacing]:df.spacing.sm,[cf.emptyBarColor]:df.colors.surface.light,[cf.fontFamily]:Zh.fontFamily,[cf.fontSize]:Zh.labelFontSize,[cf.fontWeight]:Zh.labelFontWeight,[cf.spacing]:df.spacing.sm,_fullWidth:{[cf.hostWidth]:"100%"},score:{0:{[cf.filledBarColor]:df.colors.error.light,[cf.textColor]:df.colors.error.light},1:{[cf.filledBarColor]:df.colors.error.main,[cf.textColor]:df.colors.error.main},2:{[cf.filledBarColor]:df.colors.error.dark,[cf.textColor]:df.colors.error.dark},3:{[cf.filledBarColor]:df.colors.success.dark,[cf.textColor]:df.colors.success.dark},4:{[cf.filledBarColor]:df.colors.success.main,[cf.textColor]:df.colors.success.main}}},uf={...cf};var hf=Object.freeze({__proto__:null,default:pf,vars:uf});const mf=k("collapsible-container");class gf extends(ue({componentName:mf,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-text st-host-direction="ltr">\n <div class="header">\n <div class="icon">\n <descope-icon st-fill="currentcolor" src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNy4yMTkzIDkuMjcyODNDMTcuNjU4NCA4Ljg3OTEyIDE4LjMzMzQgOC45MTU4NyAxOC43MjcyIDkuMzU0OTJDMTkuMTIwOSA5Ljc5Mzk3IDE5LjA4NDEgMTAuNDY5MSAxOC42NDUxIDEwLjg2MjhDMTguNjQ1MSAxMC44NjI4IDEzLjA0NTcgMTYuMDAyMiAxMi42NCAxNi4zNjZDMTIuMjM0MyAxNi43Mjk4IDExLjc2MDggMTYuNzI5OCAxMS4zNTUyIDE2LjM2Nkw1LjM1NDkyIDEwLjg2MjhDNC45MTU4NyAxMC40NjkxIDQuODc5MTIgOS43OTM5NyA1LjI3MjgzIDkuMzU0OTJDNS42NjY1NSA4LjkxNTg3IDYuMzQxNjQgOC44NzkxMiA2Ljc4MDY5IDkuMjcyODNMMTIgMTQuMTM2OEwxNy4yMTkzIDkuMjcyODNaIi8+Cjwvc3ZnPgo=></descope-icon>\n </div>\n <span></span>\n </div>\n </descope-text>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n\t',N(`\n div.content {\n transition-property: max-height;\n overflow: auto;\n height: auto;\n\t\t\t}\n\t\t\tslot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n slot:focus-visible {\n outline: none;\n }\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n .header {\n user-select: none;\n display: flex;\n align-items: baseline;\n }\n .icon {\n flex-shrink: 0;\n height: var(${vr.cssVarList.textLineHeight});\n min-height: 24px;\n display: flex;\n align-items: center;\n }\n descope-icon {\n transition-property: transform;\n }\n .rotate {\n transform: rotate(-180deg);\n }\n descope-text {\n width: 100%;\n display: flex;\n }\n span {\n align-self: center;\n word-break: break-word;\n }\n span:empty {\n display: none;\n }\n .wrapper {\n overflow: hidden;\n display: inline-flex;\n width: 100%;\n flex-direction: column;\n }\n `,this),this.header=this.shadowRoot.querySelector(".header"),this.content=this.shadowRoot.querySelector("div.content"),this.icon=this.header.querySelector("descope-icon"),this.headerText=this.header.querySelector("span"),this.textComponent=this.shadowRoot.querySelector("descope-text")}get isCollapsible(){return"true"===this.getAttribute("collapsible")}calcContentHeight(){return this.content.offsetHeight||this.content.scrollHeight}get isCollapsed(){return"true"===this.getAttribute("collapsed")}toggle(){this.setAttribute("collapsed",this.isCollapsed?"false":"true")}collapse(e=!1){const t=()=>{this.content.style.maxHeight="0px"};if(this.icon.classList.add("rotate"),!e)return t();this.content.style.maxHeight=this.calcContentHeight()+"px",setTimeout(t)}expand(e=!1){const t=()=>{this.content.style.maxHeight=""};if(this.icon.classList.remove("rotate"),!e)return t();this.content.addEventListener("transitionend",t,{once:!0}),this.content.style.maxHeight=this.calcContentHeight()+"px"}#At=!1;init(){super.init?.(),this.#At=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),L(this,this.textComponent,{includeAttrs:["text-align","text-variant","text-mode"],mapAttrs:{"text-mode":"mode","text-variant":"variant"}})}updateHeaderText(){const e=this.getAttribute("text")||"";this.headerText.innerText=e}attributeChangedCallback(e,t,r){"text"!==e?this.isCollapsed&&this.isCollapsible?this.collapse(this.#At):this.expand(this.#At):this.updateHeaderText()}}const bf={host:()=>":host",icon:()=>"descope-icon",iconWrapper:()=>".icon",header:()=>".header",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},yf=I(ne({mappings:{hostWidth:{selector:bf.host,property:"width"},hostDirection:{selector:bf.host,property:"direction"},verticalPadding:[{selector:bf.wrapper,property:"padding-top"},{selector:bf.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:bf.wrapper,property:"padding-left"},{selector:bf.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:bf.wrapper},backgroundImage:{selector:bf.wrapper},backgroundPositionX:{selector:bf.wrapper},backgroundPositionY:{selector:bf.wrapper},backgroundSize:{selector:bf.wrapper},backgroundRepeat:{selector:bf.wrapper},borderRadius:{selector:bf.wrapper},borderColor:{selector:bf.wrapper},borderStyle:{selector:bf.wrapper},borderWidth:{selector:bf.wrapper},boxShadow:{selector:bf.wrapper},headerIconOrder:{selector:bf.iconWrapper,property:"order"},headerCursor:{selector:bf.header,property:"cursor"},headerGap:{selector:bf.header,property:"gap"},textGrow:{selector:bf.text,property:"flex-grow"},textDirection:{selector:bf.text,property:"direction"},iconAnimationDuration:{selector:bf.icon,property:"transition-duration"},contentAnimationDuration:{selector:bf.content,property:"transition-duration"}}}),ae,se)(gf),ff=Q(iu),vf=yf.cssVarList,[xf,Cf,wf]=K({shadowColor:"#00000020"},mf),{shadowColor:If}=Cf,Mf={...xf,[vf.hostWidth]:"100%",[vf.boxShadow]:"none",[vf.backgroundColor]:ff.colors.surface.main,[vf.backgroundImage]:"",[vf.backgroundPositionX]:"center",[vf.backgroundPositionY]:"center",[vf.backgroundSize]:"cover",[vf.backgroundRepeat]:"no-repeat",[vf.borderRadius]:"0px",[vf.hostDirection]:ff.direction,[vf.flexDirection]:"column",[vf.alignItems]:"flex-start",[vf.justifyContent]:"flex-start",[vf.headerGap]:ff.spacing.md,[vf.iconAnimationDuration]:"0.1s",[vf.contentAnimationDuration]:"0.1s",[vf.borderWidth]:"0px",[vf.textGrow]:"0",verticalPadding:{sm:{[vf.verticalPadding]:"5px"},md:{[vf.verticalPadding]:"10px"},lg:{[vf.verticalPadding]:"20px"}},horizontalPadding:{sm:{[vf.horizontalPadding]:"5px"},md:{[vf.horizontalPadding]:"10px"},lg:{[vf.horizontalPadding]:"20px"}},spaceBetween:{sm:{[vf.gap]:"10px"},md:{[vf.gap]:"20px"},lg:{[vf.gap]:"30px"}},shadow:{sm:{[vf.boxShadow]:`${ff.shadow.wide.sm} ${If}, ${ff.shadow.narrow.sm} ${If}`},md:{[vf.boxShadow]:`${ff.shadow.wide.md} ${If}, ${ff.shadow.narrow.md} ${If}`},lg:{[vf.boxShadow]:`${ff.shadow.wide.lg} ${If}, ${ff.shadow.narrow.lg} ${If}`},xl:{[vf.boxShadow]:`${ff.shadow.wide.xl} ${If}, ${ff.shadow.narrow.xl} ${If}`},"2xl":{[wf.shadowColor]:"#00000050",[vf.boxShadow]:`${ff.shadow.wide["2xl"]} ${If}`}},borderRadius:{sm:{[vf.borderRadius]:ff.radius.sm},md:{[vf.borderRadius]:ff.radius.md},lg:{[vf.borderRadius]:ff.radius.lg},xl:{[vf.borderRadius]:ff.radius.xl},"2xl":{[vf.borderRadius]:ff.radius["2xl"]},"3xl":{[vf.borderRadius]:ff.radius["3xl"]}},iconPosition:{left:{[vf.headerIconOrder]:"0"},right:{[vf.headerIconOrder]:"1"}},_fillTitle:{[vf.textGrow]:"1"},_border:{[vf.borderColor]:ff.colors.surface.light,[vf.borderWidth]:ff.border.xs,[vf.borderStyle]:"solid"},_collapsible:{[vf.headerCursor]:"pointer"}},Sf={...vf,...wf};var Af=Object.freeze({__proto__:null,default:Mf,vars:Sf});const Ef=k("recovery-codes");class Tf extends(ue({componentName:Ef,baseSelector:":host > div"})){static get observedAttributes(){return["readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="list"></div>\n <descope-text class="icon-wrapper">\n <vaadin-icon class="icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>\n </descope-text>\n </div>\n ',this.list=this.shadowRoot.querySelector(".list"),this.icon=this.shadowRoot.querySelector(".icon"),this.iconWrapper=this.shadowRoot.querySelector(".icon-wrapper"),N("\n :host {\n display: inline-block;\n position: relative;\n }\n .wrapper {\n display: flex;\n justify-content: space-between;\n }\n .list {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n }\n descope-text span {\n display: inline-flex;\n align-items: center;\n width: fit-content;\n }\n descope-text span::before {\n content: '\\02022';\n transform: translateY(-0.06em);\n }\n .icon-wrapper {\n align-self: flex-start;\n }\n .icon {\n cursor: pointer;\n }\n .icon.copied {\n cursor: initial;\n }\n .icon.readonly {\n pointer-events: none;\n }\n ",this)}get variant(){return this.getAttribute("variant")}get mode(){return this.getAttribute("mode")}init(){super.init(),this.icon.addEventListener("click",this.onCopy.bind(this)),L(this,this.iconWrapper,{includeAttrs:["variant","mode"]})}onCopy(){navigator.clipboard.writeText(String(this.data.map(e=>e.value).join("\n"))),this.icon.setAttribute("icon","vaadin:check-circle-o"),this.icon.setAttribute("title","Copied"),this.icon.classList.add("copied"),setTimeout(()=>{this.icon.setAttribute("icon","vaadin:copy-o"),this.icon.setAttribute("title","Copy"),this.icon.classList.remove("copied")},5e3)}onReadOnly(e){this.icon.classList.toggle("readonly",e)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),r!==t&&"readonly"===e&&this.onReadOnly("true"===r)}}const kf=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>vr.componentName,property:vr.cssVarList.hostDirection}],textAlign:{selector:()=>".list",property:"align-items"},iconColor:{selector:()=>"vaadin-icon",property:"color"},iconSize:{selector:()=>"vaadin-icon",property:"font-size"},iconGap:{selector:()=>".wrapper",property:"gap"},bulletGap:{selector:()=>"descope-text span",property:"gap"}}}),ke({itemRenderer:({value:e},t,r)=>`\n <descope-text variant="${r.variant}" mode="${r.mode}">\n <span>${e}</span>\n </descope-text>\n `,rerenderAttrsList:["variant","mode"],targetSelector:".list"}),ae,se)(Tf),zf=Q(iu),Lf=kf.cssVarList,Nf=vr.cssVarList,Df={[Lf.hostMinWidth]:"190px",[Lf.hostDirection]:zf.direction,[Lf.iconColor]:J(Nf.textColor),[Lf.iconSize]:J(Nf.fontSize),[Lf.iconGap]:"8px",[Lf.bulletGap]:"0.35em",textAlign:{right:{[Lf.textAlign]:"flex-end"},left:{[Lf.textAlign]:"flex-start"},center:{[Lf.textAlign]:"center"}},_fullWidth:{[Lf.hostWidth]:"100%"}};var Vf=Object.freeze({__proto__:null,default:Df,vars:Lf});const Pf=k("outbound-apps"),Bf=({name:e,description:t,logo:r,appId:o,isConnected:i},n,a)=>{const s=i?"disconnect":"connect";return`\n <descope-list-item>\n <descope-avatar\n ${r?`img="${r}"`:""}\n ${e?`display-name="${e}" abbr=${P(e)}`:""}\n size=${a.size}\n ${r?'st-avatar-background-color="none"':""}\n class="app-logo"\n ></descope-avatar>\n\n <div class="content">\n <descope-text\n class="app-title"\n variant="subtitle1"\n mode="primary"\n >${e}</descope-text>\n ${t?`\n <descope-text\n class="app-description"\n variant="body2"\n mode="primary"\n >${t}</descope-text>\n `:""}\n </div>\n <div class="controls">\n <descope-button variant="link" mode="primary" size=${a.size} data-action="${s}" data-outbound-app-id="${o}" data-id="${s}">\n ${i?a.disconnectButtonLabel:a.connectButtonLabel}\n </descope-button>\n </div>\n </descope-list-item>\n`},Rf=ue({componentName:Pf,baseSelector:"descope-list"}),{host:Of}={host:{selector:()=>":host"}},jf=I(ne({mappings:{hostWidth:{...Of,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...Of,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:yo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:yo.cssVarList.fill},fontSize:{selector:vr.componentName,property:vr.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:vr.componentName,property:vr.cssVarList.textAlign},itemCursor:{selector:hp.componentName,property:hp.cssVarList.cursor},itemOutline:{selector:hp.componentName,property:hp.cssVarList.outline},itemBorderColor:{selector:hp.componentName,property:hp.cssVarList.borderColor},itemBackgroundColor:{selector:hp.componentName,property:hp.cssVarList.backgroundColor},listBorderWidth:{selector:()=>bp.componentName,property:bp.cssVarList.borderWidth},listBoxShadow:{selector:()=>bp.componentName,property:bp.cssVarList.boxShadow},listPadding:[{selector:()=>bp.componentName,property:bp.cssVarList.verticalPadding},{selector:()=>bp.componentName,property:bp.cssVarList.horizontalPadding}]}}),ae,ke({itemRenderer:Bf,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),se)(class extends Rf{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),N("\n :host {\n width: 100%;\n }\n .controls {\n display: flex;\n min-width: 8em;\n justify-content: end;\n }\n .content {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n .app-title,\n .app-description {\n display: flex;\n direction: inherit;\n }\n descope-list {\n display: block;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Bf,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(e){if(!this.readonly){const t=e.srcElement.getAttribute("data-outbound-app-id"),r=e.srcElement.getAttribute("data-action");t&&r&&this.dispatchEvent(new CustomEvent(`${r}-clicked`,{bubbles:!0,detail:{id:t,action:r}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),Ff=jf.cssVarList,Wf={[Ff.iconColor]:iu.colors.primary.main,[Ff.errorIconColor]:iu.colors.error.main,[Ff.appLogoGap]:iu.spacing.md,[Ff.contentGap]:iu.spacing.xs,[Ff.itemCursor]:"default",[Ff.itemOutline]:"none",[Ff.itemBorderColor]:"transparent",[Ff.listPadding]:"0",[Ff.listBorderWidth]:"0",[Ff.listBoxShadow]:"none",size:{xs:{[Ff.fontSize]:"0.6em"},sm:{[Ff.fontSize]:"0.8em"},md:{[Ff.fontSize]:"1em"},lg:{[Ff.fontSize]:"1.5em"}}};var _f=Object.freeze({__proto__:null,default:Wf,vars:Ff});const $f=k("outbound-app-button");class Hf extends(ue({componentName:$f,baseSelector:":host > descope-button"})){static get observedAttributes(){return["label","icon-src","icon-fill-current-color"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-button>\n <descope-icon class="icon"></descope-icon>\n <span class="label"></span>\n </descope-button>\n ',N("\n :host {\n display: inline-block;\n }\n .hidden {\n display: none;\n }\n ",this),this.button=this.shadowRoot.querySelector("descope-button"),this.icon=this.shadowRoot.querySelector(".icon"),this.label=this.shadowRoot.querySelector(".label")}init(){super.init?.(),L(this,this.button,{excludeAttrs:["style","class","label","icon-src","icon-fill-current-color"]})}updateLabel(e=""){this.label.textContent=e,this.label.classList.toggle("hidden",!e)}updateIcon(e=""){this.icon.setAttribute("src",e),this.icon.classList.toggle("hidden",!e)}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&("label"===e?this.updateLabel(r):"icon-src"===e&&this.updateIcon(r))}}const qf=I(ne({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Io.cssVarList.iconColor}}}),ae,se)(Hf),Yf=qf.cssVarList,Uf={[Yf.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Yf.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Yf.hostWidth]:"100%"}},Gf=Yf;var Zf=Object.freeze({__proto__:null,default:Uf,vars:Gf});const Qf=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},Jf={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDFIOEM2LjM0IDEgNSAyLjM0IDUgNFYyMEM1IDIxLjY2IDYuMzQgMjMgOCAyM0gxNkMxNy42NiAyMyAxOSAyMS42NiAxOSAyMFY0QzE5IDIuMzQgMTcuNjYgMSAxNiAxWk0xNyAxOEg3VjRIMTdWMThaTTE0IDIxSDEwVjIwSDE0VjIxWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDEuNUg4QzYuMzQgMS41IDUgMi44NCA1IDQuNVYyMC41QzUgMjIuMTYgNi4zNCAyMy41IDggMjMuNUgxNkMxNy42NiAyMy41IDE5IDIyLjE2IDE5IDIwLjVWNC41QzE5IDIuODQgMTcuNjYgMS41IDE2IDEuNVpNMTcgMTguNUg3VjQuNUgxN1YxOC41Wk0xNCAyMS41SDEwVjIwLjVIMTRWMjEuNVoiIGZpbGw9IiNGNEY1RjYiLz4KPC9zdmc+Cg=="},tablet:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUyNTJfNzY4KSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iIzYzNkM3NCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUyNTJfNzY4Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUzMDNfODYzKSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUzMDNfODYzIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},unknown:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},Kf=k("trusted-devices"),Xf=({id:e,name:t,lastLoginDate:r,deviceType:o,isCurrent:i},n,a)=>{const s=i?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(e=>{const t=Jf[e]||Jf.unknown;return{iconSrc:t.light,iconSrcDark:t.dark}})(o),c=a.lastLoginLabel?`${a.lastLoginLabel} `:"",p=((e,t)=>{if(Number.isNaN(parseInt(e,10)))return"";const r=new Date(e),o=r.getFullYear(),i=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0"),a=r.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),s={"DD-MM-YYYY":`${n}/${i}/${o}`,"YYYY-MM-DD":`${o}/${i}/${n}`,"MM-DD-YYYY":`${i}/${n}/${o}`};return`${s[t]||s["MM/DD/YYYY"]} ${a}`})(r,a.format),u=i?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${a.direction}"\n >\n ${a.currentDeviceLabel}\n </descope-badge>`:"",h=a.hideActions||i?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${e}"\n st-host-direction="${a.direction}"\n ellipsis="true"\n >\n ${a.removeDeviceLabel}\n </descope-link>`,m=document.createElement("template");return m.innerHTML=`\n <descope-list-item ${s}>\n <div class="content">\n <div class="main">\n <span class="device">\n <descope-icon\n class="device-icon"\n src="${l}"\n src-dark="${d}">\n </descope-icon>\n <descope-text\n class="device-name"\n variant="body1"\n mode="primary">\n </descope-text>\n </span>\n <span class="panel">\n ${u}\n ${h}\n </span>\n </div>\n <div class="meta">\n <descope-text\n variant="body2"\n mode="primary"\n >\n ${c}\n </descope-text>\n <descope-text\n class="login-date"\n variant="body2"\n mode="primary"\n >\n ${p}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,m.content.querySelector(".device-name").textContent=t,m},ev=ue({componentName:Kf,baseSelector:bp.componentName}),{host:tv}={host:{selector:()=>":host"}},rv=I(ne({mappings:{hostWidth:{...tv,property:"width"},hostMinWidth:{...tv,property:"min-width"},hostDirection:[{...tv,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:bp.cssVarList.gap},listBackgroundColor:{selector:()=>bp.componentName,property:bp.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bp.componentName,property:bp.cssVarList.borderRadius},listBorderWidth:{selector:()=>bp.componentName,property:bp.cssVarList.borderWidth},listBoxShadow:{selector:()=>bp.componentName,property:bp.cssVarList.boxShadow},listPadding:[{selector:()=>bp.componentName,property:bp.cssVarList.verticalPadding},{selector:()=>bp.componentName,property:bp.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:hp.componentName,property:hp.cssVarList.verticalPadding},itemHorizontalPadding:{selector:hp.componentName,property:hp.cssVarList.horizontalPadding},itemCursor:{selector:hp.componentName,property:hp.cssVarList.cursor},itemOutline:{selector:hp.componentName,property:hp.cssVarList.outline},itemBorderColor:{selector:hp.componentName,property:hp.cssVarList.borderColor},itemBorderRadius:{selector:hp.componentName,property:hp.cssVarList.borderRadius},itemBackgroundColor:{selector:hp.componentName,property:hp.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:zc.componentName,property:zc.cssVarList.borderColor},badgeTextColor:{selector:zc.componentName,property:zc.cssVarList.textColor},badgeBackgroundColor:{selector:zc.componentName,property:zc.cssVarList.backgroundColor},badgeBorderRadius:{selector:zc.componentName,property:zc.cssVarList.borderRadius},devicePanelGap:{selector:()=>".main",property:"gap"},deviceIconGap:{selector:()=>".device",property:"gap"},deviceIconSize:[{selector:()=>".device-icon",property:"width"},{selector:()=>".device-icon",property:"height"}],lastLoginLabelGap:{selector:" .meta",property:"gap"}}}),ae,ke({itemRenderer:Xf,sortFn:(e,t)=>Qf(t.lastLoginDate)-Qf(e.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),se)(class extends ev{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),N("\n :host {\n display: inline-block;\n }\n\n .descope-list-item {\n min-width: 0;\n }\n\n .current-device {\n order: -1;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .main {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n }\n\n .device {\n display: flex;\n min-width: 0;\n }\n\n .device-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .login-date {\n min-width: fit-content;\n }\n\n descope-badge {\n min-width: 0;\n }\n\n descope-text {\n display: flex;\n align-items: center; \n min-width: 0;\n }\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n descope-link {\n overflow: hidden;\n }\n descope-link.remove-device::part(wrapper) {\n display: flex;\n width: 100%;\n }\n descope-link.remove-device {\n width: 100%;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Xf,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(e){if(this.readOnly)return;const t=e.target.closest("[data-device-id]"),r=t?.getAttribute("data-device-id");r&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:r,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),ov=rv.cssVarList,iv={[ov.hostWidth]:"auto",[ov.hostWidth]:"300px",[ov.hostMinWidth]:"300px",[ov.listBackgroundColor]:"transparent",[ov.listBorderRadius]:"0",[ov.listBorderWidth]:"0",[ov.listPadding]:"0",[ov.listBoxShadow]:"none",[ov.listItemsGap]:iu.spacing.lg,[ov.itemBorderColor]:iu.colors.surface.light,[ov.itemVerticalPadding]:iu.spacing.lg,[ov.itemHorizontalPadding]:iu.spacing.lg,[ov.itemBorderRadius]:iu.radius.xs,[ov.itemOutline]:"transparent",[ov.itemBackgroundColor]:"transparent",[ov.itemCursor]:"default",[ov.itemContentGap]:iu.spacing.sm,[ov.badgeBorderColor]:iu.colors.surface.light,[ov.badgeTextColor]:iu.colors.surface.dark,[ov.badgeBorderRadius]:iu.radius.xs,[ov.badgeBackgroundColor]:iu.colors.surface.main,[ov.devicePanelGap]:iu.spacing.md,[ov.deviceIconGap]:iu.spacing.md,[ov.deviceIconSize]:"24px",[ov.lastLoginLabelGap]:iu.spacing.xs,_fullWidth:{[ov.hostWidth]:"100%"}},nv={button:mu,textField:Mu,password:Tu,numberField:Lu,emailField:Vu,textArea:Ru,checkbox:Wu,switchToggle:Yu,container:th,logo:ih,totpImage:sh,notpImage:ch,text:mh,enrichedText:wh,link:fh,divider:zh,passcode:Dh,loaderRadial:qh,loaderLinear:Rh,comboBox:Xh,phoneField:rm,phoneInputBoxField:nm,newPassword:dm,inputWrapper:xu,uploadFile:um,buttonSelectionGroupItem:bm,buttonSelectionGroup:Cm,buttonMultiSelectionGroup:Mm,modal:km,grid:Dm,notificationCard:Om,multiSelectComboBox:_m,badge:Ym,avatar:og,mappingsField:sg,userAttribute:pg,userAuthMethod:gg,samlGroupMappings:fg,policyValidation:wg,image:Ag,icon:Mg,codeSnippet:Zg,radioGroup:Xg,radioButton:ob,calendar:sb,dateField:hb,list:kb,listItem:Db,appsList:xb,scopesList:Bb,thirdPartyAppLogo:Fb,securityQuestionsSetup:$b,securityQuestionsVerify:Yb,hybridField:Zb,alert:Xb,autocompleteField:hy,addressField:ky,timer:Wy,timerButton:Xy,passwordStrength:hf,collapsibleContainer:Af,recoveryCodes:Vf,hcaptcha:ry,outboundApps:_f,outboundAppButton:Zf,trustedDevices:Object.freeze({__proto__:null,default:iv,vars:ov})},av=Object.keys(nv).reduce((e,t)=>({...e,[t]:nv[t].default}),{}),sv=Object.keys(nv).reduce((e,t)=>({...e,[t]:nv[t].vars}),{}),lv={globals:Xp,components:av},dv={globals:eu,components:sv},cv=s()({},lv,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"},warning:{main:"#EF7A33",dark:"#FF985A",light:"#FF6304",highlight:"#C45512",contrast:"#000000"}}},components:{...Gg}});customElements.define(oy,class extends iy{static get observedAttributes(){return[].concat(iy.observedAttributes||[],ny)}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get minSearchLength(){return this.getAttribute("min-search-length")||3}get noResultsFoundMessage(){return this.getAttribute("no-results-message")||"No results found"}get errorFetchingResultsMessage(){return this.getAttribute("error-fetching-results-message")||"An error occurred fetching results"}constructor(){super(),this.innerHTML='\n <div class="autocomplete-field">\n <descope-combo-box clear-button-visible="true" auto-open-disabled="true" has-dynamic-data="true" item-label-path="data-name" item-value-path="data-id" hide-toggle-button="true"></descope-combo-box>\n </div>\n ',this.comboBox=this.querySelector("descope-combo-box")}get value(){return this.comboBox.value}set value(e){this.allowCustomValue?this.comboBox.value=e:(this.comboBox.data=[{label:e,value:e}],setTimeout(()=>{this.comboBox.value=e}))}get defaultValue(){return this.getAttribute("default-value")}async#Et(e){const{results:t,error:r}=await this.fetchResults(e);return r?{error:r}:{results:t}}#Tt(e,t,r,o){return`<span data-name="${r}" data-id="${t}" ${o?'disabled="true"':""}>${e||r}</span>`}#kt(){this.comboBox.renderer=(e,t,r)=>{"true"===r.item.getAttribute("disabled")?e.setAttribute("disabled","true"):e.removeAttribute("disabled"),e.innerHTML=r.item.outerHTML},this.comboBox.renderItem=({displayName:e,value:t,label:r,disabled:o})=>this.#Tt(e,t,r,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",e=>{e.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#zt(),T(this,this.comboBox,{includeAttrs:["invalid"]})}#zt(){this.debouncedSearch=(e=>{let t=0;const r=new Set,o=new Set,i=n()((i,n)=>{e(...i).then(e=>{n===t&&(r.forEach(t=>t(e)),r.clear())}).catch(e=>{o.forEach(t=>t(e)),o.clear()})},250);return(...e)=>(t++,new Promise((n,a)=>{r.add(n),o.add(a),i(e,t)}))})(async e=>{try{const{results:t,error:r}=await this.#Et(e);return{results:t,error:r,value:e}}catch(t){return{error:t,value:e}}}),L(this,this.comboBox,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","invalid","error-message","data-errormessage-value-missing","st-host-direction","allow-custom-value","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),this.comboBox.addEventListener("filter-changed",this.onSearch.bind(this)),this.#kt()}#Lt(){return[{label:this.noResultsFoundMessage,value:ay,disabled:!0}]}#Nt(){return[{label:this.errorFetchingResultsMessage,value:ay,disabled:!0}]}async onSearch(e){const t=e.detail.value;if(!t||t.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const r=await this.debouncedSearch(t);r&&r.value===t&&(this.comboBox.loading=!1,r.error?this.comboBox.data=this.#Nt():0===r.results?.length?this.comboBox.data=this.#Lt():this.comboBox.data=r.results||[])}fetchResults(e){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(sy,dy),customElements.define(by,Iy),customElements.define(My,Ay),customElements.define(Um,Km),customElements.define(mb,gb),customElements.define(mf,yf),customElements.define($f,qf),customElements.define(Pf,jf),customElements.define(ef,lf);var pv=Object.freeze({__proto__:null,PasswordStrengthClass:lf,componentName:ef});customElements.define(Ef,kf),customElements.define(Ly,Ry),customElements.define(_y,Zy),customElements.define(Kf,rv);const uv={translations:f.A,graphs:y.K,dictionary:{...y.z,...v.z}};b.u2.setOptions(uv);var hv=Object.freeze({__proto__:null,default:b.K1,options:uv})}}]);
|