@descope/flow-components 3.27.5 → 3.27.7
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/222.js.map +1 -1
- package/dist/fm/734.js +1 -1
- package/dist/fm/734.js.map +1 -1
- package/dist/fm/761.js +1 -1
- package/dist/fm/761.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +102 -19
- package/package.json +2 -2
package/dist/fm/222.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_descope_flow_components_3_27_5_1794850958808=self.webpackChunk_descope_flow_components_3_27_5_1794850958808||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Yb,$y:()=>lp,A8:()=>jc,Ag:()=>tl,C1:()=>Rc,C9:()=>To,Cz:()=>lc,Er:()=>gh,G6:()=>VT,HO:()=>_i,HT:()=>io,J1:()=>Vo,JQ:()=>oI,Jr:()=>Qi,Lg:()=>pp,MN:()=>cs,Mz:()=>wa,NF:()=>Zs,O7:()=>QM,Od:()=>Iu,QW:()=>ic,Qb:()=>om,R3:()=>Jm,SE:()=>lo,SQ:()=>Lo,T$:()=>ab,T1:()=>KT,TV:()=>mp,U6:()=>Mm,Ul:()=>aa,VN:()=>Cd,VX:()=>zr,_w:()=>Ve,a5:()=>WT,bL:()=>hr,bU:()=>Hg,br:()=>R,dS:()=>UN,dX:()=>vh,dq:()=>Ym,du:()=>mg,e7:()=>Le,eA:()=>Sc,eo:()=>ml,ew:()=>me,fp:()=>Il,gZ:()=>cu,h5:()=>Tm,jH:()=>Sr,k0:()=>xr,l1:()=>ro,lZ:()=>oN,md:()=>Dr,ml:()=>Zt,mq:()=>tu,o9:()=>Lr,o_:()=>Oe,pp:()=>Hc,px:()=>Eu,q:()=>Gy,q4:()=>Ci,qn:()=>So,rG:()=>vu,sK:()=>Ai,tD:()=>Kd,tS:()=>nu,td:()=>rg,tl:()=>Xr,ul:()=>Ba,v_:()=>ep,w8:()=>Kn,wt:()=>Na,xO:()=>Is,xp:()=>Mu,xs:()=>En,yW:()=>wm,yi:()=>ny,yj:()=>IM,zQ:()=>OT,zZ:()=>Wy});var o=i(7949),n=i(72),r=i.n(n),s=i(8089),a=i.n(s),l=i(465),d=i.n(l),c=(i(8231),i(4873),i(865),i(4598),i(7519)),u=(i(496),i(7726),i(4155),i(9504),i(5877),i(3798),i(8619),i(1394)),p=i(3667),h=(i(8319),i(3826)),g=i(8677),M=i(127),m=(i(9849),i(4899),i(3977),i(9435),i(1399),i(5595),i(7822),i(6601),i(2381)),y=i(6916),b=i(418),N=i(1479);const I="descope",x=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),j=(...t)=>x(t.filter(t=>!!t).join("-")),T=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),D=t=>"function"==typeof t,v=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n);const r=new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})});return r.observe(t,{attributes:!0}),{disconnect:()=>r.disconnect()}},z=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},C=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},S=(t,e,i)=>{v(t,C(t,e),i),v(e,C(e,t),i)},w=t=>async e=>{const i=await t(e);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})},L=t=>j(I,t),A=(...t)=>`--${j(...t)}`,f=(t,e,i={})=>v(t,C(t,e,i.mapAttrs),i),E=(t,e,{prepend:i=!1}={})=>{let o;try{o=new CSSStyleSheet}catch{return O(t,e,{prepend:i})}const n=e?.shadowRoot||e;if(t&&o.replaceSync(t),n){const t=[...n.adoptedStyleSheets||[]];t[i?"unshift":"push"](o),n.adoptedStyleSheets=t}return t&&!o.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${t}"`),o};class k{constructor(t,e,{prepend:i=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=t,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=e?.shadowRoot||e,this.ref&&(i?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(t){this.styleEle.textContent=t}get cssRules(){return this.styleEle.sheet?.cssRules}}const O=(t,e,{prepend:i=!1}={})=>new k(t,e,{prepend:i}),V=(t,e=2)=>t.trim().split(" ").splice(0,e).map(t=>t[0]?.toUpperCase()).join(""),W=(t,e)=>{if(!t||!e)return null;const i=t.querySelectorAll(`:scope > [slot="${e}"]`);if(!i.length)return null;const o=document.createDocumentFragment();return i.forEach(t=>{const e=t.content?t.content.cloneNode(!0):t.cloneNode(!0);e.removeAttribute&&e.removeAttribute("slot"),o.append(e)}),o},R=new class{static mountOnPropName="DescopeThemeManager";#t={};#e="light";#i=new Set;#o(){this.#i.forEach(t=>t?.())}get currentThemeName(){return this.#e}set currentThemeName(t){this.#e=t,this.#o()}get currentTheme(){return this.#t[this.currentThemeName]}onCurrentThemeChange(t){return this.#i.add(t),()=>{this.#i.delete(t)}}set themes(t){this.#t=t,this.#o()}get hasThemes(){return!!Object.keys(this.#t).length}},U=.25,Y=.1,Q=(t,e)=>t.darken(e).hex(),P=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},B=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),Z=t=>t.luminosity()>.99,F=(t,e)=>(t=>t.luminosity()<.01)(t)?B(t,U):Q(t,.4),G=(t,e)=>Z(t)?Q(t,U):B(t,.4),H=(t,e)=>Z(t)?Q(t,Y):B(t,.8),J=(t,e)=>{const i=new(d())(t.main||t);return{main:i.hex(),dark:t.dark||F(i),light:t.light||G(i),highlight:t.highlight||H(i),contrast:t.contrast||P(i)}},$=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,q=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,_=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,X=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,K=(t,e)=>`\n ${(t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`)(t)}\n ${q(t)}\n ${_(t)}\n ${(t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`)(t)}\n ${((t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`)(t,e)}\n ${(t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`)(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`,tt=t=>`\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 ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,et=t=>A(I,...t),it=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},ot=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,ot(n,[...e,o],i)),{}),nt=(t,e)=>ot(t,[],t=>it({},t,`var(${et(t)})`)),rt=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),st=(t,e)=>{const i=ot(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=A(e,n),s={[n]:r},a={[n]:rt(r)};return{theme:it({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},at=t=>`${t}__override`,lt=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${at(t)}, ${o})`:o};let dt=class{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}};const ct=(t,e="fallback")=>j(t,e),ut=(t,e,{fallback:i})=>{if(!i)return{};const o=ct(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...ut(n,o,i)}},pt=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=A(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:at(n)},ut(o,n,e[o]))},{}),ht=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...pt(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o="host",baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>j("st",i,t))}get#h(){return R.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=R.currentThemeName,this.onThemeChange?.(R.currentThemeName)}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=R.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=E(`:host(${t}) {}`,this.#d)}}#y(t,e){const i=this.#n.cssRules[0].style;if(!i)return;const o=A(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new dt,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=ct(e,t?.suffix);return lt(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:x(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=A(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>D(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),D(i)?i():i,lt(a,l,!0)+(r?"!important":""))})}),o.toString()})(j(n,this.#a),this.#c,t);E(e,this.#d,{prepend:!0})}}#I(){const t=D(i)?i():i;t&&E(t,this.#d,{prepend:!0})}#x(t){(this.#d?.classList||this.#d?.host?.classList||this.classList).add(t)}async init(){super.init?.(),!this.shadowRoot?.isConnected&&this.shadowRoot||(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),v(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},gt=t=>class extends t{constructor(){super(),E(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},Mt=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},mt=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},yt=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.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","collapsed","hide-country","hide-subdivision","hide-city"],Nt=t=>class extends t{init(){super.init?.(),v(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>bt.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},It=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return T(Mt,yt,Nt,mt)(i)};function xt(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const jt=t=>class extends t{#v=xt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},Tt=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,xt.call(this,"blur"),xt.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(xt.call(this,"focus"),xt.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,xt.call(this,"input",{bubbles:!0,composed:!0})))})}},Dt=["required","pattern"],vt=Symbol("validationTarget"),zt=t=>class extends t{#C=vt;static get observedAttributes(){return[...t.observedAttributes||[],...Dt]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=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(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===vt?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}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.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Dt.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},Ct=(...t)=>T(zt,jt,Nt,Tt)(It(...t)),St="FETCH_RESULTS_ERROR",wt=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#L()}checkConnectorValidity(){this.isValid=this.#L()}#L(){return!this.getRequiredParams().filter(t=>{const e=this.getAttribute(t);return!e||!this.validateParam(t,e)}).length}validateParam(t,e){return e.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(t){return this.isValid?this._fetchResults(t):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(t){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},Lt=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(It({componentName:t,baseSelector:e})){#A=xt.bind(this,"blur");#f=xt.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,E((D(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#A()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),((t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)})(this.baseElement,this,s),S(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},At=["invalid","required"],ft=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},Et=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(zt(r)){static get observedAttributes(){return[...r.observedAttributes||[],...At]}#E;#v=xt.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=ft(t)||ft(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),f(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},kt=t=>T(Et(t),ht({componentNameOverride:L("input-wrapper")})),Ot=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>r=>{if(D(e)&&!t)throw new Error("portalMixin: a function selector requires a name");const s=t||(t=>t.replace(/[^\w\s]/gi,""))(e),a=ht({mappings:i,style:o})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:pt(s?j(r.componentName,"_"+s):r.componentName,i)}}#O;constructor(){const t=w(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);if(!e||!t.shadowRoot)return i;const o=await w(()=>i)(t);return D(e)?e(o):o.querySelector(e)});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;f(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},Vt=()=>!0,Wt=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,Rt=({itemRenderer:t=Wt,validateSchema:e=Vt,slotName:i,rerenderAttrsList:o=[],targetSelector:n,sortFn:r=t=>t})=>s=>class extends s{#R=[];#U;#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.#U&&this.#U.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),(r?this.data.sort(r):this.data).forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.#U&&this.#U.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),this.#U=n?this.shadowRoot.querySelector(n):this.baseElement,v(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}},Ut=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},Yt=({triggers:t=[]}={})=>e=>class extends e{static get observedAttributes(){return[...e.observedAttributes||[],...t.map(({attr:t})=>t)]}get#Z(){return t.some(({attr:t,value:e})=>this.getAttribute(t)===e)}#F=()=>{this.toggleAttribute("stretch",this.#Z)};attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.#F()}init(){super.init?.(),this.#F()}},Qt=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Pt=L("enriched-text");class Bt extends(It({componentName:Pt,baseSelector:":host > div"})){#G;#H;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',E("\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.#J(),z(this,this.#$.bind(this)),this.contentNode?.addEventListener("click",t=>{t.target instanceof HTMLAnchorElement&&t.stopPropagation()}),this.contentNode?.addEventListener("keydown",t=>{"Enter"===t.key&&t.target instanceof HTMLAnchorElement&&t.stopPropagation()})}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("readonly"===t&&this.onReadOnlyChange("true"===i),"link-target-blank"===t&&this.#J())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n)),this.processor.renderer.rules.em_close=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n))}#q(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(t,e,i,o,n)=>(t[e].attrSet("target","_blank"),this.#G(t,e,i,o,n)):this.processor.renderer.rules.link_open=this.#G}#_(){this.processor&&this.processor.disable(Qt)}#X(){this.#_()}#K(){this.#G=this.processor.renderer.rules.link_open||((t,e,i,o,n)=>n.renderToken(t,e,i)),this.#H=this.processor.renderer.rules.em_open||((t,e,i,o,n)=>n.renderToken(t,e,i))}#J(){this.processor=new o.A("commonmark",{html:!0}),this.#K(),this.#X(),this.#q(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#$(){if(!this.processor)return;let t=(t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value})(this.innerHTML);!t?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const e=this.processor.parse(t,{references:void 0});t=this.processor.renderer.render(e,{html:!0,breaks:!0})}catch{console.warn("Not parsing invalid markdown token")}this.contentNode.innerHTML=t,this.contentNode.firstChild?.setAttribute("part","content")}onReadOnlyChange(t){t?this.contentNode.setAttribute("inert",t):this.contentNode.removeAttribute("inert")}}const Zt=T(ht({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:{}}}),ht({componentNameOverride:L("link")}),ht({componentNameOverride:L("text")}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(Bt),Ft=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),Gt=(...t)=>Ft(t.filter(t=>!!t).join("-")),Ht=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),Jt=t=>"function"==typeof t,$t="descope",qt="host",_t=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n),new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})}).observe(t,{attributes:!0})},Xt=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},Kt=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},te=(t,e,i)=>{_t(t,Kt(t,e),i),_t(e,Kt(e,t),i)},ee=t=>Gt($t,t),ie=(...t)=>`--${Gt(...t)}`,oe=(t,e,i={})=>{_t(t,Kt(t,e,i.mapAttrs),i)},ne=(t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)},re=.4,se=.25,ae=.1,le=(t,e)=>t.darken(e).hex(),de=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},ce=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),ue=t=>t.luminosity()<.01,pe=t=>t.luminosity()>.99,he=(t,e)=>"dark"===e?pe(t)?le(t,se):ce(t,re):ue(t)?ce(t,se):le(t,re),ge=(t,e)=>"dark"===e?ue(t)?ce(t,se):le(t,re):pe(t)?le(t,se):ce(t,re),Me=(t,e)=>"dark"===e?ue(t)?ce(t,ae):le(t,.8):pe(t)?le(t,ae):ce(t,.8),me=(t,e)=>{const i=new(d())(t.main||t);return{main:i.hex(),dark:t.dark||he(i,e),light:t.light||ge(i,e),highlight:t.highlight||Me(i,e),contrast:t.contrast||de(i)}},ye=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,be=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,Ne=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,Ie=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,xe=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,je=(t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`,Te=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,De=t=>`\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 ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,ve=t=>ie($t,...t),ze=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},Ce=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,Ce(n,[...e,o],i)),{}),Se=t=>{switch(!0){case Array.isArray(t):return t.map(t=>t.includes(" ")?`"${t}"`:t).join(", ");case(t=>{try{return new URL(t),!0}catch(t){return!1}})(t):return`url(${t})`;default:return t}},we=(t,e)=>Ce(t,[],t=>ze({},t,`var(${ve(t)})`)),Le=(t,e="")=>{const i=Object.entries((t=>Ce(t,[],(t,e)=>({[ve(t)]:Se(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},Ae="@container",fe="$breakpoints",Ee=t=>t.startsWith("$breakpoints."),ke=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(Ae))(e)?`${t}${e} {\n${ke(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),Oe=t=>{const e=(t=>Ce(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===fe)return{};const r=n.pop(),s=ee(o);"undefined"===r&&console.warn(s,`theme value: "${i}" is mapped to an invalid property`);const a=qt,l=t[o]?.[fe]||{},d=n.filter(Ee),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>Ee(t)?`${Ae} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!Ee(t)));const p=n.reduce((t,e,i)=>{const[o,r]=function(t){const e=t.match(/^(&+)?(.*)$/);return[e[1]||"",e[2]||""]}(e),s=Math.min(o.length+1,3);if(r.startsWith("_"))return t+`[${Ft(r.replace(/^_/,""))}="true"]`.repeat(s);const a=n[i+1];return"string"!=typeof a||a.startsWith("_")||a.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${e}" is followed by "${a}" which is not allowed`),t):t+`[${Ft(r)}="${n.splice(i+1,1).join("")}"]`.repeat(s)},""),h=":host"+(p?`(${p})`:""),g=u.reduceRight((t,e)=>({[e]:t}),{[h]:{[r]:Se(i)}});return{[s]:{[a]:g}}}))(t);return Object.keys(e).reduce((t,i)=>{const o=e[i];return Object.assign(t,{[i]:Object.keys(o).reduce((t,e)=>Object.assign(t,{[e]:ke(o[e])}),{})})},{})},Ve=({globals:t,components:e},i)=>({globals:Le(t,i),components:Oe(e)}),We=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),Re=(t,e)=>{const i=Ce(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=ie(e,n),s={[n]:r},a={[n]:We(r)};return{theme:ze({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},Ue=t=>`${t}__override`,Ye=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${Ue(t)}, ${o})`:o};class Qe{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}}const Pe=(t,e="fallback")=>Gt(t,e),Be=(t,e,{fallback:i})=>{if(!i)return{};const o=Pe(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...Be(n,o,i)}},Ze=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=ie(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:Ue(n)},Be(o,n,e[o]))},{}),Fe=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...Ze(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o=qt,baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>Gt("st",i,t))}get#h(){return R.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=R.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=E(`:host(${t}) {}`,this.#d)}}#y(t,e){const{style:i}=this.#n.cssRules[0];if(!i)return;const o=ie(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new Qe,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Pe(e,t?.suffix);return Ye(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:Ft(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=ie(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>Jt(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),Jt(i)?i():i,Ye(a,l,!0)+(r?"!important":""))})}),o.toString()})(Gt(n,this.#a),this.#c,t);E(e,this.#d,{prepend:!0})}}#I(){const t=Jt(i)?i():i;t&&E(t,this.#d,{prepend:!0})}#x(t){(this.#d.classList||this.#d.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot?.isConnected&&(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),_t(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},Ge=t=>class extends t{constructor(){super(),E(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},He=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},Je=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},$e=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},qe=["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"],_e=t=>class extends t{init(){super.init?.(),_t(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>qe.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},Xe=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return Ht(He,$e,_e,Je)(i)};function Ke(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const ti=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(Xe({componentName:t,baseSelector:e})){#A=Ke.bind(this,"blur");#f=Ke.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,E((Jt(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#A()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),ne(this.baseElement,this,s),te(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},ei=["required","pattern"],ii=Symbol("validationTarget"),oi=t=>class extends t{#C=ii;static get observedAttributes(){return[...t.observedAttributes||[],...ei]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=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(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===ii?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}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.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),ei.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},ni=["invalid","required"],ri=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},si=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(oi(r)){static get observedAttributes(){return[...r.observedAttributes||[],...ni]}#E;#v=Ke.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=ri(t)||ri(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement?.setSelectionRange?.bind(this.inputElement),oe(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},ai=t=>Ht(si(t),Fe({componentNameOverride:ee("input-wrapper")})),li=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Fe({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Ze(Gt(e.componentName,"_"+r),i)}}#O;constructor(){const t=(e=async t=>(t.shadowRoot||t).querySelector(t.baseSelector),async t=>{const i=await e(t);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})});var e;super({getRootElement:t,componentNameSuffix:"_"+r,themeSection:"_"+r,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;oe(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},di=t=>class extends t{#v=Ke.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},ci=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,Ke.call(this,"blur"),Ke.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Ke.call(this,"focus"),Ke.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,Ke.call(this,"input",{bubbles:!0,composed:!0})))})}},ui=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},pi=(...t)=>Ht(oi,di,_e,ci)(Xe(...t)),hi=ee("boolean-field-internal"),gi=["disabled","invalid","readonly"],Mi=pi({componentName:hi,baseSelector:"div"}),mi=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${hi}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${hi}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(hi),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),oe(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),ne(this.inputElement,this,["checked"]),te(this,this.inputElement,{includeAttrs:["checked"]})}};var yi=t=>`\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${Zt.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${Zt.cssVarList.hostDirection}: var(${t.hostDirection});\n}\n\n`;const bi=ee("checkbox"),{host:Ni,component:Ii,checkboxElement:xi,checkboxSurface:ji,checkboxLabel:Ti,requiredIndicator:Di,helperText:vi,errorMessage:zi}={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)"}},Ci=Ht(Fe({mappings:{hostWidth:{...Ni,property:"width"},hostDirection:{...Ni,property:"direction"},fontSize:[Ni,xi,Ti],fontFamily:[Ti,vi,zi],labelTextColor:{...Ti,property:"color"},labelSpacing:{...Ti,property:"padding-inline-start"},labelLineHeight:{...Ti,property:"line-height"},labelFontWeight:{...Ti,property:"font-weight"},labelRequiredIndicator:{...Di,property:"content"},errorMessageTextColor:{...zi,property:"color"},errorMessageIcon:{...zi,property:"background-image"},errorMessageIconSize:{...zi,property:"background-size"},errorMessageIconPadding:{...zi,property:"padding-inline-start"},errorMessageIconRepeat:{...zi,property:"background-repeat"},errorMessageIconPosition:{...zi,property:"background-position"},errorMessageFontSize:{...zi,property:"font-size"},inputValueTextColor:{...ji,property:"color"},inputBackgroundColor:{...xi,property:"background-color"},inputBorderRadius:{...xi,property:"border-radius"},inputBorderWidth:{...xi,property:"border-width"},inputBorderOffset:{...xi,property:"border-offset"},inputBorderColor:{...xi,property:"border-color"},inputBorderStyle:{...xi,property:"border-style"},inputOutlineWidth:{...xi,property:"outline-width"},inputOutlineOffset:{...xi,property:"outline-offset"},inputOutlineColor:{...xi,property:"outline-color"},inputOutlineStyle:{...xi,property:"outline-style"},inputAlign:{...xi,property:"align-self"},inputContainerPadding:{...Ii,property:"padding"},inputContainerBackgroundColor:{...Ii,property:"background-color"},inputContainerBorderRadius:{...Ii,property:"border-radius"},inputContainerBorderWidth:{...Ii,property:"border-width"},inputContainerBorderColor:{...Ii,property:"border-color"},inputContainerBorderStyle:{...Ii,property:"border-style"},inputContainerOutlineWidth:{...Ii,property:"outline-width"},inputContainerOutlineOffset:{...Ii,property:"outline-offset"},inputContainerOutlineColor:{...Ii,property:"outline-color"},inputContainerOutlineStyle:{...Ii,property:"outline-style"},inputSize:[{...xi,property:"width"},{...xi,property:"height"},{...ji,property:"font-size"},{...Ii,property:"font-size"}]}}),Ge,ai({proxyProps:["value","selectionStart"]}),He,mi)(ti({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${yi(Ci.cssVarList)}\n ${ye(Ci.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 descope-boolean-field-internal {\n\t\t\t\tpadding: 2px;\n\t\t\t\twidth: 100%;\n height: 100%;\n box-sizing: border-box;\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:bi})),Si=L("text");class wi extends(It({componentName:Si,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',E("\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(),z(this,()=>{const t=!!this.childNodes.length;this.style.display=!t&&this.hideWhenEmpty?"none":""})}}const{host:Li}={host:{selector:()=>":host"}},Ai=T(ht({mappings:{hostWidth:{...Li,property:"width"},hostDirection:{...Li,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(wi),fi=L("link"),Ei=["href","readonly"];class ki extends(It({componentName:fi,baseSelector:":host a"})){static get observedAttributes(){return Ei.concat(super.observedAttributes||[])}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',E('\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),this.anchor=this.shadowRoot.querySelector("a"),f(this,this.anchor,{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),f(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]}),this.anchor.addEventListener("click",t=>{this.readOnly&&t.preventDefault()})}get readOnly(){return"true"===this.getAttribute("readonly")}}const Oi={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>Ai.componentName}},{anchor:Vi,text:Wi,host:Ri,wrapper:Ui,link:Yi}=Oi,Qi=T(ht({mappings:{hostWidth:{...Ri,property:"width"},hostDirection:{...Wi,property:"direction"},textAlign:Ui,textDecoration:{...Yi,property:"text-decoration",fallback:"none"},textColor:[{...Vi,property:"color"},{...Wi,property:Ai.cssVarList.textColor}],cursor:Vi}}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(ki);customElements.define(Si,Ai),customElements.define(fi,Qi),customElements.define(Pt,Zt),customElements.define(hi,class extends Mi{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 link-target-blank="true" 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(t){this.checkbox.checked=t}get checked(){return this.value}set checked(t){this.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.checkbox.focus()}),super.init?.(),oe(this,this.checkbox,{includeAttrs:gi}),te(this,this.checkbox,{includeAttrs:["checked"]}),this.labelContent.addEventListener("click",t=>{this.hasAttribute("disabled")||this.hasAttribute("readonly")||this.checkbox.click()}),this.handleFocusEventsDispatching([this.checkbox])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i),"label"===t&&this.onLabelChange()}onLabelChange(){const t=this.getAttribute("label");this.labelContent.textContent=t||""}onReadOnlyChange(t){this.baseElement.setAttribute("inert",t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}}),customElements.define(bi,Ci);const Pi=ee("switch-toggle"),{host:Bi,component:Zi,checkboxElement:Fi,checkboxSurface:Gi,checkboxLabel:Hi,requiredIndicator:Ji,helperText:$i,errorMessage:qi}={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)"}},_i=Ht(Fe({mappings:{hostWidth:{...Bi,property:"width"},hostDirection:{...Bi,property:"direction"},fontSize:[Zi,Hi,Hi],fontFamily:[Hi,$i,qi],labelTextColor:[{...Hi,property:"color"},{...Hi,property:"-webkit-text-fill-color"}],labelSpacing:{...Hi,property:"padding-inline-start"},labelLineHeight:{...Hi,property:"line-height"},labelFontWeight:{...Hi,property:"font-weight"},labelRequiredIndicator:{...Ji,property:"content"},errorMessageTextColor:{...qi,property:"color"},errorMessageIcon:{...qi,property:"background-image"},errorMessageIconSize:{...qi,property:"background-size"},errorMessageIconPadding:{...qi,property:"padding-inline-start"},errorMessageIconRepeat:{...qi,property:"background-repeat"},errorMessageIconPosition:{...qi,property:"background-position"},errorMessageFontSize:{...qi,property:"font-size"},trackBorderWidth:{...Fi,property:"border-width"},trackBorderStyle:{...Fi,property:"border-style"},trackBorderColor:{...Fi,property:"border-color"},trackBackgroundColor:{...Fi,property:"background-color"},trackBorderRadius:{...Fi,property:"border-radius"},trackWidth:[{...Fi,property:"width"}],trackHeight:[{...Gi,property:"font-size"},{...Fi,property:"height"}],knobSize:[{...Gi,property:"width"},{...Gi,property:"height"}],knobTextColor:{...Gi,property:"color"},knobRadius:{...Gi,property:"border-radius"},knobTransitionDuration:{...Gi,property:"transition"},knobColor:{...Gi,property:"background-color"},knobTopOffset:{...Gi,property:"top"},knobLeftOffset:{...Gi,property:"left"},inputOutlineWidth:{...Fi,property:"outline-width"},inputOutlineOffset:{...Fi,property:"outline-offset"},inputOutlineColor:{...Fi,property:"outline-color"},inputOutlineStyle:{...Fi,property:"outline-style"}}}),Ge,ai({proxyProps:["value","selectionStart"]}),He,mi)(ti({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${yi(_i.cssVarList)}\n\t\t\t${ye(_i.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:Pi}));customElements.define(Pi,_i);const Xi=ee("loader-linear");class Ki extends(Xe({componentName:Xi,baseSelector:":host > div"})){static get componentName(){return Xi}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",E("\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:to,host:eo}={after:{selector:"::after"},host:{selector:()=>":host"}},io=Ht(Fe({mappings:{hostDisplay:{},hostWidth:{...eo,property:"width"},barHeight:[{property:"height"},{...to,property:"height"}],barBorderRadius:[{property:"border-radius"},{...to,property:"border-radius"}],verticalPadding:[{...eo,property:"padding-top"},{...eo,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...to,property:"background-color"},barWidth:{...to,property:"width"},animationDuration:[{},to],animationTimingFunction:[{},to],animationIterationCount:[{},to]}}),Ge,He)(Ki);customElements.define(Xi,io);const oo=ee("loader-radial");class no extends(Xe({componentName:oo,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",E("\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 ro=Ht(Fe({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:{}}}),Ge,He)(no);customElements.define(oo,ro);const so=ee("container");class ao extends(Xe({componentName:so,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",E("\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 lo=Ht(Fe({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:{}}}),Ge,He)(ao);customElements.define(so,lo);const co=L("combo-box"),{host:uo,inputField:po,inputElement:ho,placeholder:go,toggle:Mo,clearButton:mo,label:yo,requiredIndicator:bo,helperText:No,errorMessage:Io,loader:xo,overlayContent:jo}={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)"}},To=T(ht({mappings:{hostWidth:{...uo,property:"width"},hostDirection:{...uo,property:"direction"},fontSize:[{},uo],fontFamily:[yo,go,po,No,Io],labelFontSize:{...yo,property:"font-size"},labelFontWeight:{...yo,property:"font-weight"},inputValueFontWeight:{...po,property:"font-weight"},inputPlaceholderFontWeight:{...go,property:"font-weight"},helperTextFontWeight:{...No,property:"font-weight"},errorMessageFontWeight:{...Io,property:"font-weight"},labelTextColor:[{...yo,property:"color"},{...yo,property:"-webkit-text-fill-color"},{...bo,property:"color"}],errorMessageTextColor:{...Io,property:"color"},errorMessageIcon:{...Io,property:"background-image"},errorMessageIconSize:{...Io,property:"background-size"},errorMessageIconPadding:{...Io,property:"padding-inline-start"},errorMessageIconRepeat:{...Io,property:"background-repeat"},errorMessageIconPosition:{...Io,property:"background-position"},errorMessageFontSize:{...Io,property:"font-size"},inputHeight:{...po,property:"height"},inputBackgroundColor:{...po,property:"background-color"},inputBorderColor:{...po,property:"border-color"},inputBorderWidth:{...po,property:"border-width"},inputBorderStyle:{...po,property:"border-style"},inputBorderRadius:{...po,property:"border-radius"},labelRequiredIndicator:{...bo,property:"content"},inputValueTextColor:{...po,property:"color"},inputPlaceholderTextColor:{...go,property:"color"},inputDropdownButtonCursor:[{...Mo,property:"cursor"},{...mo,property:"cursor"}],inputDropdownButtonColor:[{...Mo,property:"color"},{...mo,property:"color"}],inputDropdownButtonSize:[{...Mo,property:"font-size"},{...mo,property:"font-size"}],inputDropdownButtonOffset:[{...Mo,property:"margin-right"},{...Mo,property:"margin-left"}],inputOutlineColor:{...po,property:"outline-color"},inputOutlineWidth:{...po,property:"outline-width"},inputOutlineStyle:{...po,property:"outline-style"},inputOutlineOffset:{...po,property:"outline-offset"},inputHorizontalPadding:[{...ho,property:"padding-left"},{...ho,property:"padding-right"}],labelPosition:{...yo,property:"position"},labelTopPosition:{...yo,property:"top"},labelHorizontalPosition:[{...yo,property:"left"},{...yo,property:"right"}],inputTransformY:{...yo,property:"transform"},inputTransition:{...yo,property:"transition"},marginInlineStart:{...yo,property:"margin-inline-start"},placeholderOpacity:{...go,property:"opacity"},inputVerticalAlignment:{...po,property:"align-items"},valueInputHeight:{...ho,property:"height"},valueInputMarginBottom:{...ho,property:"margin-bottom"},overlayBackground:{property:()=>To.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>To.cssVarList.overlay.textColor},overlayBorder:{property:()=>To.cssVarList.overlay.border},overlayFontSize:{property:()=>To.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>To.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>To.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>To.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>To.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>To.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>To.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>To.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>To.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>To.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>To.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>To.cssVarList.overlay.itemFocusBackground}}}),gt,Ot({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:{...xo,property:"top"},loaderLeft:{...xo,property:"left"},loaderRight:{...xo,property:"right"},loaderMargin:{...xo,property:"margin"},loaderWidth:{...xo,property:"width"},loaderHeight:{...xo,property:"height"},loaderBorder:{...xo,property:"border"},loaderBorderColor:{...xo,property:"border-color"},loaderBorderRadius:{...xo,property:"border-radius"},contentHeight:{...jo,property:"height"},contentOpacity:{...jo,property:"opacity"},scrollerMinHeight:{selector:"vaadin-combo-box-scroller",property:"min-height"}},forward:{include:!1,attributes:["size"]}}),kt({proxyProps:["selectionStart"],inputEvent:"value-changed"}),Ut,Mt,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#tt=({displayName:t,value:e,label:i})=>`<span data-name="${i}" data-id="${e}">${t||i}</span>`;#R;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}set renderer(t){this.baseElement.renderer=t}get loading(){return"true"===this.getAttribute("loading")}set loading(t){t?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get requireMatch(){return"true"===this.getAttribute("require-match")&&!this.allowCustomValue}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){if(this.#R||this.getAttribute("data")){const t=this.getItemsTemplate();this.innerHTML=t}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:t}=this.baseElement,e=t?.["data-id"];t&&Array.from(this.children).includes(t)||(e&&this.shouldSelectItemOnItemsChange&&(this.value=e),this.value||this.setDefaultValue())}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){if(!e.baseElement.items?.length&&!e.allowCustomValue)return;const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#et(){const t=Array.from(this.children);t.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.handleSelectedItem()},0)}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#ot(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#nt(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}isValueMatch(){const t=this.baseElement.querySelector("input").value;return!t||this.baseElement.items.some(e=>e.dataset.name===t||e.dataset.id===t)}init(){super.init?.(),f(this,this.baseElement,{includeAttrs:["placeholder"]}),this.getValidity=function(){return this.requireMatch&&!this.isValueMatch()?{patternMismatch:!0}:!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ot(),this.#nt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",t=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}handleRequireMatchChange(t){this.baseElement.allowCustomValue=t||this.allowCustomValue}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"require-match"===t&&this.handleRequireMatchChange("true"===i))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#rt(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#st(t,e){t===this.value&&e!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",t=>{t.stopImmediatePropagation()},{once:!0,capture:!0})}set value(t){const e=this.#rt(t);this.#st(t,e),t&&e?this.baseElement.selectedItem=e:!e&&this.allowCustomValue?this.baseElement.value=t: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")}})(Lt({slots:["","prefix"],wrappedEleName:"vaadin-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${$(To.cssVarList)}\n\t\t${X("vaadin-combo-box")}\n\t\t${_("vaadin-combo-box")}\n\t\t${q("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 ${tt("vaadin-combo-box")}\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","size","placeholder","data","loading","style"],componentName:co,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(co,To);const Do=t=>{const e=c.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},vo=L("image"),zo=["src","src-dark"];class Co extends(It({componentName:vo,baseSelector:"slot"})){static get observedAttributes(){return zo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",E("\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.getSrc)}onThemeChange(){this.renderImage()}toggleVisibility(t){t?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 getSrc(){return this.themeSrc||this.legacySrc}updateFillColor(t){[t,...t.querySelectorAll("*[fill]")].forEach(t=>{t.setAttribute("fill",`var(${So.cssVarList.fill}, ${t.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.getSrc),(async(t,e)=>{try{let i;if((t=>t.startsWith("data:image/svg+xml;base64,"))(t)){const e=atob(t.slice(26));i=Do(e)}else if("svg"===(t=>{const e=t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return e?e[1]:null})(t)){const e=await fetch(t),o=await e.text();i=Do(o)}else i=((t,e)=>{const i=document.createElement("img");return i.setAttribute("src",t),i.setAttribute("alt",e),i})(t,e);return i.style.setProperty("max-width","100%"),i.style.setProperty("max-height","100%"),i}catch{return null}})(this.getSrc,this.altText).then(t=>{this.innerHTML="",t&&(this.updateFillColor(t),this.appendChild(t))})}shouldRender(t){const e=this.getAttribute(t);return this.getSrc===e}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.shouldRender(t)&&this.renderImage()}}const So=T(ht({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),gt,Mt)(Co),wo=L("icon"),Lo=T(ht({mappings:{fill:[{},{property:So.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),gt,Mt)(Lt({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n max-height: 100%;\n }\n ",excludeAttrsSync:["tabindex","class","style","st-height","st-width"],componentName:wo})),Ao=L("button"),{host:fo,label:Eo,slottedIcon:ko}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let Oo;const Vo=T(Yt({triggers:[{attr:"full-width",value:"true"}]}),ht({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...fo,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...fo,property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},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:Lo.cssVarList.fill},labelTextDecoration:{...Eo,property:"text-decoration"},labelSpacing:{...Eo,property:"gap"},textAlign:{...Eo,property:"justify-content",fallback:"center"},iconSize:[{...ko,property:"width"},{...ko,property:"height"}]}}),t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}},gt,Mt)(Lt({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${Oo}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Vo.cssVarList.outlineWidth}) + var(${Vo.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Vo.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Vo.cssVarList.hostHeight}) - var(${Vo.cssVarList.outlineWidth}) - var(${Vo.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Vo.cssVarList.hostWidth}) - var(${Vo.cssVarList.outlineWidth}) - var(${Vo.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style","role"],componentName:Ao})),{color:Wo,fontSize:Ro}=Vo.cssVarList;Oo=`\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(${Wo});\n\t\ttop: calc(50% - (var(${Ro}) / 2));\n\t\tleft: calc(50% - (var(${Ro}) / 2));\n\t\tborder-width: calc(var(${Ro}) / 10);\n\t\twidth: var(${Ro});\n\t\theight: var(${Ro});\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(Ao,Vo);const Uo=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Yo=Uo[0],Qo="YYYY-MM-DD",Po="/",Bo=["January","February","March","April","May","June","July","August","September","October","November","December"],Zo=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Fo={id:"month",min:1,max:12,placeholder:"MM"},Go={id:"day",min:1,max:31,placeholder:"DD"},Ho={id:"year",min:0,max:9999,placeholder:"YYYY"},Jo=1900,$o=2099,qo=(t,e)=>{if("number"==typeof t)return new Date(t);if("string"==typeof t){const e=new Date(t.replace(/-/g,"/"));return new Date(e)}return new Date},_o={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},Xo=t=>{const e=(t=>`^${t.split(Po).map(t=>_o[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Po);return t=>{const i={};return e.forEach((e,o)=>{i[e]=t[o+1]}),[i.YYYY,i.MM,i.DD]}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getDate:t=>((t,e,i)=>{const o=e.exec(t);if(!o)return null;const[n,r,s]=i(o);return qo([n,r,s].join(Po))})(t,o,i)}},Ko=Object.fromEntries(Uo.map(t=>[t,Xo(t)])),tn=t=>!Number.isNaN(Number(t)),en=t=>{const e=qo(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},on=(t,e)=>{const[i,o,n]=en(t),r={DD:String(n).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(i)};return e.replace(/DD|MM|YYYY/g,t=>r[t])},nn=()=>qo().getTime(),rn=t=>qo(t).getFullYear().toString(),sn=t=>(qo(t).getMonth()+1).toString(),an=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),ln=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,dn=({label:t,dataId:e,dataName:i})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${e}"\n\t\tdata-name="${i}"\n\t>\n\t\t\t${t}\n\t</div>\n`,cn=(t=Bo)=>t.map((t,e)=>dn({label:t,dataId:e+1,dataName:t})).join(""),un=(t,e)=>{const[i,o]=en(e),[n,r]=en(t);return n===i&&r===o},pn=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),hn=ee("calendar"),gn=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],Mn=["calendar-label-submit","calendar-label-cancel"],mn=pi({componentName:hn,baseSelector:"div"}),{calendar:yn,day:bn,dayEntry:Nn,currentDay:In,selectedDay:xn,disabledDay:jn,weekday:Tn,topNav:Dn,topNavSelectors:vn,bottomNav:zn,navPrev:Cn,navNext:Sn,navPrevRTL:wn,navNextRTL:Ln,yearInput:An,monthInput:fn}={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"}},En=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...Dn,property:"padding-top"},{...Dn,property:"padding-bottom"}],topNavHorizointalPadding:[{...Dn,property:"padding-right"},{...Dn,property:"padding-left"}],topNavAlignment:{...Dn,property:"justify-content"},topNavGap:{...Dn,property:"gap"},topNavSelectorsGap:{...vn,property:"gap"},bottomNavVerticalPadding:[{...zn,property:"padding-top"},{...zn,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...zn,property:"padding-right"},{...zn,property:"padding-left"}],bottomNavAlignment:{...zn,property:"justify-content"},bottomNavGap:{...zn,property:"gap"},navMarginBottom:{...Dn,property:"margin-bottom"},calendarPadding:[{...yn,property:"padding-bottom"},{...yn,property:"padding-right"},{...yn,property:"padding-left"}],navBorderBottomWidth:{...Dn,property:"border-bottom-width"},navBorderBottomColor:{...Dn,property:"border-bottom-color"},navBorderBottomStyle:{...Dn,property:"border-bottom-style"},weekdayFontSize:{...Tn,property:"font-size"},weekdayFontWeight:{...Tn,property:"font-weight"},currentDayBorderColor:{...In,property:"border-color"},currentDayBorderWidth:{...In,property:"border-width"},currentDayBorderStyle:{...In,property:"border-style"},dayHeight:{...Nn,property:"height"},daySize:[{...bn,property:"height"},{...bn,property:"width"}],dayPadding:{...bn,property:"padding"},dayRadius:{...bn,property:"border-radius"},dayTextAlign:{...bn,property:"text-align"},dayBlockAlign:{...bn,property:"margin"},dayTextColor:{...bn,property:"color"},dayFontWeight:{...bn,property:"font-weight"},dayBackgroundColor:{...bn,property:"background-color"},dayCursor:{...bn,property:"cursor"},dayFontSize:{...bn,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...xn,property:"color"},daySelectedBackgroundColor:{...xn,property:"background-color"},dayDisabledTextdColor:{...jn,property:"color"},yearInputWidth:{...An,property:"width"},monthInputWidth:{...fn,property:"width"},navButtonSize:[{...Cn,property:"width"},{...Cn,property:"height"},{...Sn,property:"width"},{...Sn,property:"height"}],navButtonCursor:[{...Cn,property:"cursor"},{...Sn,property:"cursor"}],navButtonRotation:[{...wn,property:"transform"},{...Ln,property:"transform"}],navButtonOpacity:[{...Cn,property:"opacity"},{...Sn,property:"opacity"}]}}),Ge,He)(class extends mn{static get observedAttributes(){return[].concat(mn.observedAttributes||[],gn,Mn)}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 ',E(`\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 ${Vo.cssVarList.horizontalPadding}: 0;\n ${Vo.cssVarList.verticalPadding}: 0;\n ${Vo.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(t){if(!t)return;const e=qo(t).getTime();tn(e)&&e!==this.epoch&&(this.epoch=e,this.renderCalendar())}get value(){return this.epoch?on(this.epoch,Qo):""}get isSelectedView(){return un(this.preview,this.epoch)}get isTodayView(){return un(nn(),this.preview)}get monthNames(){return(t=>{const e=t?.split(",");return ln(e,12)?e:Bo})(this.getAttribute("calendar-months"))}get weekdayNames(){return(t=>{const e=t?.split?.(",");return ln(e,7)?e:Zo})(this.getAttribute("calendar-weekdays"))}get hasYearValue(){return!!this.yearInput.value}get hasMonthValue(){return!!this.monthInput.value}get yearsRange(){const t=this.getAttribute("years-range")?.split("-");if(2===t?.length){const[e,i]=t.map(Number);if(e<=i)return[e,i]}const e=qo().getFullYear();return[e,e+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 t=(()=>{const t=document.createElement("span");return t.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 ${cn()}\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 `,t})(this.monthNames,this.yearsRange);this.shadowRoot.querySelector(".selectors").appendChild(t),this.monthInput=pn(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=pn(this.shadowRoot.querySelector(".year-input"),this.onYearChange.bind(this),this.onYearInputBlur.bind(this)),[this.monthInput,this.yearInput].forEach(t=>oe(this,t,{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(t=>oe(this,t,{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:qo(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 t=this.preview||nn(),e=rn(t),i=sn(t);this.monthInput.value=i,setTimeout(()=>{this.yearInput.baseElement.value=e})}}renderCalendar(){const t=qo(this.preview||nn()).getTime(),[e,i]=en(t);this.calendar&&(this.calendar.innerHTML=((t,e,i)=>{const o=((t,e)=>new Date(t,e,0).getDate())(t,e),n=new Date(t,e-1,1).getDay();let r="<table>";r+=`<thead><tr>${i.reduce((t,e)=>`${t}<th><span class="weekday">${e}</span></th>`,"")}</tr></thead>`,r+="<tbody>",r+="<tr>";for(let t=0;t<n;t++)r+="<td></td>";let s=n;for(let t=1;t<=o;t++)7===s&&(s=0,r+="</tr><tr>"),r+=`\n <td\n data-date-day="${t}"\n class="day-entry">\n <span class="day" data-date-day=${t}>\n ${t}\n </span>\n </td>\n `,s++;for(;s<7;)r+="<td></td>",s++;return r+="</tr></tbody></table>",r})(e,i,this.weekdayNames.map(t=>t.substring(0,3)))),Array.from(this.calendar?.querySelectorAll(".day-entry .day")||[]).forEach(t=>t.addEventListener("click",this.onDayChange.bind(this))),this.updateInputs(),this.setSelectedDay(),this.setCurrentDay()}onDayChange(t){if(this.isDisabled)return;const e=qo(this.preview);e.setDate(Number(t.target.getAttribute("data-date-day"))),this.value=on(e.getTime(),Qo),this.dispatchEvent(new CustomEvent("day-changed",{detail:e}))}onYearChange(t){if(!t.target.value)return;const e=qo(this.preview);e.setFullYear(Number(t.target.value.trim())),this.preview=e.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("year-changed",{detail:e}))}onMonthChange(t){if(!t.target.value)return;const e=qo(this.preview);e.setMonth(Number(t.target.value)-1),this.preview=e.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("month-changed",{detail:e}))}onYearInputBlur(t){this.yearInput.baseElement.value=t.target.value||rn(this.preview)}onMonthInputBlur(t){this.monthInput.baseElement.value=t.target.value||sn(this.preview)}getSelectedDayEle(){const t=qo(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${t}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${qo().getDate()}"]`)}clearSelectedDays(){const t=this.calendar?.querySelectorAll("[data-selected]");t&&t.forEach(t=>t.removeAttribute("data-selected"))}setSelectedDay(){this.clearSelectedDays(),this.value&&this.isSelectedView&&this.getSelectedDayEle().setAttribute("data-selected","true")}setCurrentDay(){if(this.isTodayView){const t=this.getCurrentDayEle(),e=this.getAttribute("calendar-label-today")||"Today";t?.setAttribute("data-current-day","true"),t?.setAttribute("title",e)}}navPrevMonth(){if(this.isDisabled)return;const t=(t=>{const e=qo(t),i=e.getMonth();if(0===i){const t=e.getFullYear();e.setFullYear(t-1),e.setMonth(11)}else e.setMonth(i-1);return e})(this.preview);this.preview=t.getTime(),this.renderCalendar()}navNextMonth(){if(this.isDisabled)return;const t=(t=>{const e=qo(t),i=e.getMonth();if(11===i){const t=e.getFullYear();e.setFullYear(t+1),e.setMonth(0)}else e.setMonth(i+1);return e})(this.preview);this.preview=t.getTime(),this.renderCalendar()}clearValue(){this.epoch="",this.value="",this.removeAttribute("preview"),this.submitButton.setAttribute("disabled","true")}onInitialValueChange(t){if(this.value)return;const e=qo(t).getTime();tn(e)?(this.epoch=e,this.preview=e):this.clearValue()}onYearsRangeChange(){setTimeout(()=>{this.yearInput&&(this.yearInput.innerHTML=(t=>{const[e,i]=t,o=[];for(let t=e;t<=i;t++)o.push(t);return o})(this.yearsRange).map(t=>dn({label:t,dataId:t,dataName:t})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=cn(this.monthNames))})}onSubmitLabelChange(t){this.submitButton&&(this.submitButton.textContent=t||"Done")}onCancelLabelChange(t){this.cancelButton&&(this.cancelButton.textContent=t||"Cancel")}onInitialMonthChange(t){const e=rn(this.preview);this.preview=qo(`${e}/${t}/1`).getTime()}onInitialYearChange(t){const e=sn(this.preview);this.preview=qo(`${t}/${e}/1`).getTime()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),e!==i&&(Mn.includes(t)?("calendar-label-submit"===t&&this.onSubmitLabelChange(i),"calendar-label-cancel"===t&&this.onCancelLabelChange(i)):(i&&"initial-value"===t&&this.onInitialValueChange(i),i&&"initial-month"===t&&this.onInitialMonthChange(i),i&&"initial-year"===t&&this.onInitialYearChange(i),"years-range"===t&&this.onYearsRangeChange(Number(i)),"calendar-months"===t&&this.onMonthNamesChange(),"calendar-label-today"===t&&this.setCurrentDay(i),"disabled"===t&&setTimeout(()=>{this.cancelButton?.setAttribute("disabled","true"===i)}),this.renderCalendar()))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}});customElements.define(hn,En);const{host:kn,label:On,placeholder:Vn,requiredIndicator:Wn,inputField:Rn,input:Un,inputMask:Yn,helperText:Qn,errorMessage:Pn,disabledPlaceholder:Bn,inputDisabled:Zn,inputIcon:Fn,externalInput:Gn,externalInputDisabled:Hn,externalPlaceholder:Jn,externalDisabledPlaceholder:$n}={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 qn={fontSize:[{},kn],fontFamily:[On,Rn,Qn,Pn],labelFontSize:{...On,property:"font-size"},labelFontWeight:{...On,property:"font-weight"},inputValueFontWeight:[{...Un,property:"font-weight"},{...Gn,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...Jn,property:"font-weight"}],helperTextFontWeight:{...Qn,property:"font-weight"},errorMessageFontWeight:{...Pn,property:"font-weight"},labelTextColor:[{...On,property:"color"},{...Wn,property:"color"},{...On,property:"-webkit-text-fill-color"},{...Wn,property:"-webkit-text-fill-color"}],hostWidth:{...kn,property:"width"},hostMinWidth:{...kn,property:"min-width"},hostDirection:{...kn,property:"direction"},inputDirection:{...Un,property:"direction"},inputBackgroundColor:[{...Rn,property:"background-color"},{...Yn,property:"background-color"}],errorMessageTextColor:{...Pn,property:"color"},errorMessageIcon:{...Pn,property:"background-image"},errorMessageIconSize:{...Pn,property:"background-size"},errorMessageIconPadding:{...Pn,property:"padding-inline-start"},errorMessageIconRepeat:{...Pn,property:"background-repeat"},errorMessageIconPosition:{...Pn,property:"background-position"},errorMessageFontSize:{...Pn,property:"font-size"},helperTextColor:{...Qn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Rn,property:"color"},{...Zn,property:"-webkit-text-fill-color"},{...Hn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Un,property:"caret-color"},{...Gn,property:"caret-color"}],labelRequiredIndicator:{...Wn,property:"content"},inputBorderColor:{...Rn,property:"border-color"},inputBorderWidth:{...Rn,property:"border-width"},inputBorderStyle:{...Rn,property:"border-style"},inputBorderRadius:{...Rn,property:"border-radius"},inputHeight:{...Rn,property:"height"},inputHorizontalPadding:[{...Un,property:"padding-left"},{...Un,property:"padding-right"},{...Gn,property:"padding-left"},{...Gn,property:"padding-right"}],inputOutlineColor:{...Rn,property:"outline-color"},inputOutlineStyle:{...Rn,property:"outline-style"},inputOutlineWidth:{...Rn,property:"outline-width"},inputOutlineOffset:{...Rn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Un,property:"text-align"},{...Gn,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Jn,property:"color"},{...Vn,property:"color"},{...Bn,property:"-webkit-text-fill-color"},{...$n,property:"-webkit-text-fill-color"}],labelPosition:{...On,property:"position"},labelTopPosition:{...On,property:"top"},labelHorizontalPosition:[{...On,property:"left"},{...On,property:"right"}],inputTransformY:{...On,property:"transform"},inputTransition:{...On,property:"transition"},marginInlineStart:{...On,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Jn,property:"opacity"}],inputVerticalAlignment:[{...Rn,property:"align-items"},{...Gn,property:"align-items"}],valueInputHeight:[{...Un,property:"height"},{...Gn,property:"height"}],valueInputMarginBottom:[{...Un,property:"margin-bottom"},{...Gn,property:"margin-bottom"}],inputIconOffset:[{...Fn,property:"margin-right"},{...Fn,property:"margin-left"}],inputIconSize:{...Fn,property:"font-size"},inputIconColor:{...Fn,property:"color"},inputTextSecurity:[{...Un,property:"-webkit-text-security"},{...Un,property:"text-security"},{...Gn,property:"-webkit-text-security"},{...Gn,property:"text-security"}]};const _n=L("text-field"),Xn=["type","label-type","copy-to-clipboard"],Kn=T(ht({mappings:qn}),gt,kt({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),Mt,t=>class extends t{static get observedAttributes(){return Xn.concat(t.observedAttributes||[])}icon;init(){super.init?.(),f(this,this.baseElement,{includeAttrs:["placeholder"]})}renderCopyToClipboard(t){if(!t)return this.icon?.remove(),void this.copyLiveRegion?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"},o=t=>{Object.assign(this.icon,t),this.icon.setAttribute("aria-label",t.title)};let n;this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",tabIndex:0}),this.icon.setAttribute("role","button"),o(e),this.copyLiveRegion=document.createElement("span"),this.copyLiveRegion.setAttribute("aria-live","polite"),this.copyLiveRegion.style.cssText="position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;",this.baseElement.appendChild(this.icon),this.shadowRoot.appendChild(this.copyLiveRegion);const r=async()=>{try{await navigator.clipboard.writeText(this.value)}catch{return}o(i),this.copyLiveRegion.textContent="Copied",clearTimeout(n),n=setTimeout(()=>{o(e),this.copyLiveRegion.textContent=""},3e3)};this.icon.addEventListener("click",r),this.icon.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),r())})}onLabelClick(){this.focus()}attributeChangedCallback(t,e,i){super.attributeChangeCallback?.(t,e,i),"type"===t&&this.baseElement._setType(i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===t&&this.renderCopyToClipboard("true"===i))}})(Lt({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(${Kn.cssVarList.inputOutlineWidth}) + var(${Kn.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 ${tt("vaadin-text-field")}\n\t\t\t${$(Kn.cssVarList)}\n\t\t\t${K("vaadin-text-field",Kn.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","placeholder"],componentName:_n}));customElements.define(_n,Kn);class tr{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){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(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const er=ee("date-field"),ir=pi({componentName:er,baseSelector:"vaadin-popover"}),or=["format","opened","initial-value","readonly","disable-calendar","utc-time"],nr=["years-range","calendar-months","calendar-weekdays"],rr=[...or,...nr],sr=Kn.cssVarList,{host:ar,input:lr,inputEleRTL:dr,toggleButton:cr,overlay:ur,backdrop:pr}={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)"}},hr=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({mappings:{iconMargin:{...cr,property:"margin-inline-end"},hostWidth:{...ar,property:"width"},hostDirection:{...ar,property:"direction"},textAlign:{...lr,property:"text-align"},rtlInputDirection:{...dr,property:sr.inputDirection},rtlInputAlignment:{...dr,property:sr.inputTextAlign},overlayGap:{property:()=>hr.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>hr.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>hr.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>hr.overlayBoxShadow},overlayOutlineWidth:{property:()=>hr.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>hr.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>hr.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageFontSize},labelFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.labelFontWeight},inputValueFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageFontWeight}}}),li({name:"overlay",selector:"",mappings:{marginTop:{...ur,property:"margin-top"},backgroundColor:{...ur},backdropBackgroundColor:{...pr,property:"background-color"},backdropPointerEvents:{...pr,property:"pointer-events"},padding:{...ur},boxShadow:{...ur},outlineWidth:{...ur},outlineColor:{...ur},outlineStyle:{...ur}}}),Ge,He)(class extends ir{epoch="";format=Yo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=Ko[this.format].getDate(this.inputElement.value);this.updateEpoch(an(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=an(t,this.isUtcTime)}dateCounters=[new tr(Fo,this.onDateCounterChange.bind(this)),new tr(Go,this.onDateCounterChange.bind(this)),new tr(Ho,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(ir.observedAttributes||[],rr)}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 ',E('\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 t=Ko[this.format].getDate(this.inputElement.value);return tn(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Po).map(t=>this.dateCounters.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(Po)}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 t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(t){const e=parseInt(t,10);Number.isNaN(e)?(this.resetEpoch(),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(e),this.updateDateCounters(new Date(e)))}resetEpoch(){this.epoch=""}get isCountersEmpty(){return this.dateCounters.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(t=>!t.isInRange(t.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const t=this.inputElement.baseElement.inputElement;return t.value.length===t.selectionStart+t.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#lt(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=on(qo(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#it()},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)),oe(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(t){var e;t.preventDefault(),this.handleSelectAll(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.parseDigits(t.data),this.updateCountersDisplay()):t.inputType&&this.handleNavKeys(t)}initPopover(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=E(d,t)}#ut(){const t=document.createElement("span");t.innerHTML="<descope-calendar></descope-calendar>";const e=t.querySelector("descope-calendar");return e.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),e.addEventListener("cancel",this.closePopover.bind(this)),t}#it(){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(t){return this.dateCounters.find(e=>e.id===t)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const t=qo(this.calendar.value);this.value=an(t,this.isUtcTime),this.getCounterById("year").replaceValue(t.getFullYear()),this.getCounterById("month").replaceValue(t.getMonth()+1),this.getCounterById("day").replaceValue(t.getDate()),this.#lt()}this.closePopover()}updateCalendarView(){const t=tn(qo(this.inputElement.value||"").getTime())&&Ko[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",on(this.displayValueEpoch||this.epoch,Qo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",on(nn(),Qo))),oe(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(t){setTimeout(()=>this.handleMouseCaretPositionChange(t),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(t){Object.keys(Ko).includes(t)&&(this.format=t,this.updateFormatPattern())}updateFormatPattern(){const t=this.getAttribute("format")||this.format||Yo;this.setAttribute("type","date"),this.setAttribute("pattern",Ko[t].pattern)}parseDigits(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(t){const[e,i]=this.sortedCounters.map(t=>t.length);return[t<=e,t>=e&&t<=e+i+1,t>=e+i+2].indexOf(!0)}setSelectedCounterByCaretPosition(t){this.selectedCounterIdx=this.getCounterIdx(t.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 t=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((t,e)=>t+e.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(t=>t.clear())}updateDateCounters(t){this.dateCounters.forEach(e=>{switch(e.id){case Fo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case Ho.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case Go.id:e.set(this.isUtcTime?t.getUTCDate():t.getDate())}})}handleKeyboard(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.onCut(t):(this.handleSelectAll(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.selectNextCounter():"ArrowLeft"===t.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const t=this.activeCounter;t.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(t){this.opened||(t.preventDefault(),this.setSelectedCounterByCaretPosition(t),this.setInputSelectionRange())}onInitialValueChange(t){this.value||setTimeout(()=>{Number.isNaN(parseInt(t,10))||(this.value=Number(t))})}togglePopoverAccess(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-calendar"===t&&this.togglePopoverAccess("true"!==i),or.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):nr.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>$o||t.numberValue<Jo,i=Object.entries(this.getDateVals()).some(([t,e])=>{const i=this.getCounterById(t);return!e||i.numberValue!==e});return e||i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersEmpty||!this.isCountersOutOfRange&&!this.isInvalidDate()?{}:{patternMismatch:!0}}getDateVals(){const t={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return t;try{const e=new Date(this.epoch);this.isUtcTime?(t.month=e.getUTCMonth()+1,t.day=e.getUTCDate(),t.year=e.getUTCFullYear()):(t.month=e.getMonth()+1,t.day=e.getDate(),t.year=e.getFullYear())}catch(t){}return t}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.resetToInitialState()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy date value:",t)}}onPaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=((t,e)=>{const i=t.trim?.();return i?Ko[e].getDate(i):null})(e,this.format);if(i)this.value=an(i,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const t=Number(e);t&&this.activeCounter.min<=t&&this.activeCounter.max>=t&&(this.activeCounter.set(String(t)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(er,hr);const gr=ee("divider");class Mr extends(Xe({componentName:gr,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",E("\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"),oe(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const mr=Ai.cssVarList,{host:yr,before:br,after:Nr,text:Ir}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},xr=Ht(Fe({mappings:{hostWidth:{...yr,property:"width"},hostPadding:{...yr,property:"padding"},hostDirection:{...Ir,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Ir,property:mr.textAlign},labelTextWidth:{...Ir,property:"width"},labelTextMaxWidth:{...Ir,property:"max-width"},labelTextVerticalSpacing:[{...Ir,property:"padding-top"},{...Ir,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Ir,property:"padding-right"},{...Ir,property:"padding-left"}],stripeColor:[{...br,property:"background-color"},{...Nr,property:"background-color"}],stripeHorizontalThickness:[{...br,property:"height"},{...Nr,property:"height"}],stripeVerticalThickness:[{...br,property:"width"},{...Nr,property:"width"}],stripeColorOpacity:[{...br,property:"opacity"},{...Nr,property:"opacity"}]}}),Ge,He)(Mr);customElements.define(gr,xr);const jr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(Xe({componentName:t,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div></div>\n\t\t\t",E(`\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 r=Ht(Fe({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),Ge,He)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},Tr=ee("logo"),Dr=jr({componentName:Tr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Tr,Dr);const vr=ee("totp-image"),zr=jr({componentName:vr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(vr,zr);const Cr=ee("notp-image"),Sr=jr({componentName:Cr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Cr,Sr);const wr=ee("number-field"),Lr=Ht(Fe({mappings:qn}),Ge,ai({proxyProps:["value","selectionStart"]}),He)(ti({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(${Lr.cssVarList.inputOutlineWidth}) + var(${Lr.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${De("vaadin-number-field")}\n\t\t\t${ye(Lr.cssVarList)}\n\t\t\t${((t,e)=>`\n ${be(t)}\n ${Ie(t)}\n ${xe(t)}\n ${Ne(t)}\n ${je(t,e)}\n ${Te(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`)("vaadin-number-field",Lr.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:wr}));customElements.define(wr,Lr);const Ar="--descope-input-mask-content",fr="--descope-input-mask-display",Er="--descope-input-mask-fallback",kr=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},Or=t=>t.replace(/\D/g,"")||"",Vr=(t,e)=>{e?(t.style.setProperty(Ar,`"${e}"`),t.style.setProperty(fr,"flex")):(t.style.removeProperty(Ar),t.style.removeProperty(fr))},Wr=ee("passcode-internal"),Rr=["digits","loading"],Ur=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Yr=pi({componentName:Wr,baseSelector:"div"}),Qr=ee("passcode"),Pr=["digits"],{host:Br,digitField:Zr,label:Fr,requiredIndicator:Gr,internalWrapper:Hr,focusedDigitField:Jr,errorMessage:$r}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${Kn.componentName}[focused="true"]`},digitField:{selector:()=>Kn.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},qr=Kn.cssVarList,_r=ro.cssVarList,Xr=Ht(Fe({mappings:{fontSize:[{...Zr,property:qr.fontSize},Br],hostWidth:{property:"width"},hostDirection:{...Br,property:"direction"},fontFamily:[Br,{...Fr}],labelFontWeight:{...Fr,property:"font-weight"},errorMessageFontWeight:{...$r,property:"font-weight"},digitValueFontWeight:{selector:Kn.componentName,property:qr.inputValueFontWeight},labelTextColor:[{...Fr,property:"color"},{...Fr,property:"-webkit-text-fill-color"},{...Gr,property:"color"},{...Gr,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Gr,property:"content"},errorMessageTextColor:{...$r,property:"color"},errorMessageIcon:{...$r,property:"background-image"},errorMessageIconSize:{...$r,property:"background-size"},errorMessageIconPadding:{...$r,property:"padding-inline-start"},errorMessageIconRepeat:{...$r,property:"background-repeat"},errorMessageIconPosition:{...$r,property:"background-position"},errorMessageFontSize:{...$r,property:"font-size"},digitValueTextColor:{selector:Kn.componentName,property:qr.inputValueTextColor},digitSize:[{...Zr,property:"height"},{...Zr,property:"width"}],digitPadding:{...Zr,property:qr.inputHorizontalPadding},digitTextAlign:{...Zr,property:qr.inputTextAlign},digitCaretTextColor:{...Zr,property:qr.inputCaretTextColor},digitSpacing:{...Hr,property:"gap"},digitOutlineColor:{...Zr,property:qr.inputOutlineColor},digitOutlineWidth:{...Zr,property:qr.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Jr,property:qr.inputOutlineColor},overlayOpacity:{...Hr,property:"opacity"},spinnerSize:{selector:ro.componentName,property:_r.spinnerSize}}}),Ge,ui,ai({proxyProps:["value","selectionStart"]}),He,t=>class extends t{static get observedAttributes(){return Pr.concat(t.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.(),E("\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 t=document.createElement("template");t.innerHTML=`\n <${Wr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n aria-label="passcode"\n ><slot></slot></${Wr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Wr),oe(this,this.inputElement,{includeAttrs:["digits","size","loading","disabled"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"digits"===t&&(this.style["--passcode-digits-count"]=i)}})(ti({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(${qr.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 ${De("vaadin-text-field")}\n\t\t\t${Ie("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Qr}));customElements.define(Wr,class extends Yr{static get observedAttributes(){return Rr.concat(Yr.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 t=[...Array(this.digits).keys()].map(t=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${t}\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=t.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(t){t?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:t})=>t).join("")||""}set value(t){t!==this.value&&this.parseInputValue(this.inputs[0],Or(t))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.pattern&&!new RegExp(this.pattern).test(this.value)?{patternMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[0].focus()}),super.init?.(),this.renderInputs()}getInputIdx(t){return Number.parseInt(t.getAttribute("data-id"),10)}getNextInput(t){const e=this.getInputIdx(t),i=Math.min(e+1,this.inputs.length-1);return this.inputs[i]}getPrevInput(t){const e=this.getInputIdx(t),i=Math.max(e-1,0);return this.inputs[i]}fillDigits(t,e){for(let i=0;i<t.length;i+=1){e.value=t[i]??"";const o=this.getNextInput(e);if(o===e)break;e=o}kr(e)}parseInputValue(t,e=""){const i=e.split("");i.length?this.fillDigits(i,t):t.value=""}initInputs(){this.inputs.forEach((t,e)=>{E(`\n vaadin-text-field::part(input-field)::before {\n ${Er}: '';\n content: var(${Ar}, var(${Er}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${fr}, none);\n align-items: center;\n justify-content: center;\n }`,t);const i=r()(e=>{this.parseInputValue(t,e),Vr(t)},0,{trailing:!0});let o=!1;t.addEventListener("input",e=>{t.value=Or(t.value),t.value&&Vr(t,t.value[0]);const n="deleteContentBackward"===e?.inputType||o;o=!1,n&&kr(this.getPrevInput(t)),i(t.value)}),t.onkeydown=e=>{const{key:i}=e;"Backspace"===i?t.value?(t.setSelectionRange(1,1),o=!0):(e.preventDefault(),o=!1,kr(this.getPrevInput(t))):(o=!1,1===i.length&&(t.value=""))},oe(this,t,{includeAttrs:Ur}),t.shadowRoot.querySelector("input").setAttribute("aria-label",`Digit ${e+1} of ${this.inputs.length}`)}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Rr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Qr,Xr);const Kr=ee("password"),{host:ts,inputField:es,inputElement:is,inputElementPlaceholder:os,revealButtonContainer:ns,revealButtonIcon:rs,label:ss,requiredIndicator:as,errorMessage:ls,helperText:ds}={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)"}},cs=Ht(Fe({mappings:{hostWidth:{...ts,property:"width"},hostMinWidth:{...ts,property:"min-width"},hostDirection:{...ts,property:"direction"},fontSize:[{},ts],fontFamily:[ss,es,ls,ds],inputHeight:{...es,property:"height"},inputHorizontalPadding:[{...is,property:"padding-left"},{...is,property:"padding-right"}],inputBackgroundColor:{...es,property:"background-color"},inputBorderStyle:{...es,property:"border-style"},inputBorderWidth:{...es,property:"border-width"},inputBorderColor:{...es,property:"border-color"},inputBorderRadius:{...es,property:"border-radius"},inputOutlineColor:{...es,property:"outline-color"},inputOutlineStyle:{...es,property:"outline-style"},inputOutlineOffset:{...es,property:"outline-offset"},inputOutlineWidth:{...es,property:"outline-width"},labelFontSize:{...ss,property:"font-size"},labelFontWeight:{...ss,property:"font-weight"},inputValueFontWeight:[{...is,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...os,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...ds,property:"font-weight"},errorMessageFontWeight:{...ls,property:"font-weight"},labelTextColor:[{...ss,property:"color"},{...ss,property:"-webkit-text-fill-color"},{...as,property:"color"},{...as,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...as,property:"content"},errorMessageTextColor:{...ls,property:"color"},errorMessageIcon:{...ls,property:"background-image"},errorMessageIconSize:{...ls,property:"background-size"},errorMessageIconPadding:{...ls,property:"padding-inline-start"},errorMessageIconRepeat:{...ls,property:"background-repeat"},errorMessageIconPosition:{...ls,property:"background-position"},errorMessageFontSize:{...ls,property:"font-size"},inputPlaceholderTextColor:[{...os,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...is,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...ns,property:"margin-right"},{...ns,property:"margin-left"}],revealButtonSize:{...ns,property:"font-size"},revealButtonColor:{...rs,property:"color"},labelPosition:{...ss,property:"position"},labelTopPosition:{...ss,property:"top"},labelHorizontalPosition:[{...ss,property:"left"},{...ss,property:"right"}],inputTransformY:{...ss,property:"transform"},inputTransition:{...ss,property:"transition"},marginInlineStart:{...ss,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...is,property:"opacity"}],inputVerticalAlignment:{...es,property:"align-items"},valueInputHeight:{...is,property:"height"}}}),Ge,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),te(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.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",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),ai({proxyProps:["value","selectionStart"],useProxyTargets:!0}),He,t=>class extends t{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){super.init?.();const t=this.querySelector("input");t?.addEventListener("mousedown",e=>{if(this.isDraggable&&this.isReadOnly){t.setAttribute("inert","true");const i=e.target,o=i.getAttribute("type");i.setAttribute("type","text"),setTimeout(()=>{i.focus()});const n=e=>{i.setAttribute("type",o),t.removeAttribute("inert"),this.removeEventListener("mouseup",n),this.removeEventListener("dragend",n)};this.addEventListener("dragend",n,{once:!0}),this.addEventListener("mouseup",n,{once:!0})}})}},t=>class extends t{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(),this.stopRevealButtonEnterPropagation()}stopRevealButtonEnterPropagation(){this.revealButton?.addEventListener("keydown",t=>{"Enter"===t.key&&t.stopPropagation()})}get revealButton(){return this.baseElement.querySelector("vaadin-password-field-button")}initExternalInput(){const t=this.createExternalInput();t&&this.handlePasswordVisibility(t)}get caretPosition(){return this.value?.length||0}handleCaretOnVisibilityChange(){const t=this.baseElement._togglePasswordVisibility.bind(this.baseElement);this.baseElement._togglePasswordVisibility=()=>{setTimeout(()=>(t(),this.inputElement.setSelectionRange(this.caretPosition,this.caretPosition),!1))}}setFocus(t){this.manualToggleVisibility&&(this.baseElement._setPasswordVisible=()=>{}),this.origSetFocused.call(this.baseElement,t),this.baseElement._setPasswordVisible=this.origSetPasswordVisible.bind(this.baseElement)}resetPasswordVisibilityToggle(){this.baseElement._setPasswordVisible=this.origSetPasswordVisible,this.baseElement._setFocused=this.origSetFocus}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i)}handlePasswordVisibility(t){const e=this.baseElement.__boundRevealButtonMouseDown;this.revealButton?.removeEventListener("mousedown",e),this.baseElement._passwordVisibleChanged=()=>{},this.baseElement._togglePasswordVisibility=()=>{"password"===t.getAttribute("type")?this.showPasswordVisibility(t):this.hidePasswordVisibility(t)}}showPasswordVisibility(t){t.setAttribute("type","text"),this.setAttribute("password-visible","true")}hidePasswordVisibility(t){t.setAttribute("type","password"),this.setAttribute("password-visible","false")}})(ti({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${ye(cs.cssVarList)}\n\t\t\t${Ie("vaadin-password-field")}\n ${De("vaadin-password-field")}\n ${je("vaadin-password-field",cs.cssVarList)}\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(${cs.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:Kr}));customElements.define(Kr,cs);const us=ee("text-area"),{host:ps,label:hs,placeholder:gs,inputField:Ms,textArea:ms,requiredIndicator:ys,helperText:bs,errorMessage:Ns}={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)"}},Is=Ht(Fe({mappings:{hostWidth:{...ps,property:"width"},hostMinWidth:{...ps,property:"min-width"},hostDirection:{...ps,property:"direction"},fontSize:[ps,ms],fontFamily:[hs,Ms,bs,Ns],labelFontSize:{...hs,property:"font-size"},labelFontWeight:{...hs,property:"font-weight"},inputValueFontWeight:{...ms,property:"font-weight"},inputPlaceholderFontWeight:{...gs,property:"font-weight"},helperTextFontWeight:{...bs,property:"font-weight"},errorMessageFontWeight:{...Ns,property:"font-weight"},labelTextColor:[{...hs,property:"color"},{...hs,property:"-webkit-text-fill-color"},{...ys,property:"color"}],labelRequiredIndicator:{...ys,property:"content"},errorMessageTextColor:{...Ns,property:"color"},errorMessageIcon:{...Ns,property:"background-image"},errorMessageIconSize:{...Ns,property:"background-size"},errorMessageIconPadding:{...Ns,property:"padding-inline-start"},errorMessageIconRepeat:{...Ns,property:"background-repeat"},errorMessageIconPosition:{...Ns,property:"background-position"},errorMessageFontSize:{...Ns,property:"font-size"},inputBackgroundColor:{...Ms,property:"background-color"},inputValueTextColor:{...ms,property:"color"},inputPlaceholderTextColor:{...gs,property:"color"},inputBorderWidth:{...Ms,property:"border-width"},inputBorderStyle:{...Ms,property:"border-style"},inputBorderColor:{...Ms,property:"border-color"},inputBorderRadius:{...Ms,property:"border-radius"},inputOutlineStyle:{...Ms,property:"outline-Style"},inputOutlineColor:{...Ms,property:"outline-color"},inputOutlineOffset:{...Ms,property:"outline-offset"},inputOutlineWidth:{...Ms,property:"outline-width"},inputResizeType:{...ms,property:"resize"},inputMinHeight:{...ms,property:"min-height"},inputTextAlign:{...ms,property:"text-align"}}}),Ge,ai({proxyProps:["value","selectionStart"]}),He)(ti({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 ${De("vaadin-text-area")}\n\t\t\t${ye(Is.cssVarList)}\n\t\t\t${be("vaadin-text-area")}\n\t\t\t${Ne("vaadin-text-area")}\n\t\t\t${xe("vaadin-text-area","textarea")}\n\t\t\t${Ie("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:us}));customElements.define(us,Is);var xs=[{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:"+592",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((t,e)=>t.name<e.name?-1:1)];const js=({code:t,dialCode:e,name:i})=>`\n\t<div\n\t\tdata-id="${e}"\n\t\tdata-name="${t} ${e} ${i}"\n\t\tdata-country-code="${t}"\n\t>\n\t\t<div>\n\t\t\t<span>\n\t\t\t\t<img src="${(t=>`https://static.descope.com/npm/svg-country-flags@1.2.10/svg/${t.toLowerCase()}.svg`)(t)}" width="20" loading="lazy" />\n\t\t\t</span>\n\t\t\t<span>${i}</span>\n\t\t</div>\n\t\t<div>\n\t\t\t<span>${t}</span>\n\t\t\t<span>${e}</span>\n\t\t</div>\n\t</div>\n`,Ts=ee("phone-field-internal"),Ds=["disabled","size","bordered","readonly"],vs=["country-input-placeholder","default-code","restrict-countries"],zs=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],Cs=["label-type","country-input-label","label"],Ss={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},ws=[].concat(Ds,vs,zs,Cs),Ls=pi({componentName:Ts,baseSelector:"div"});customElements.define(Ts,class extends Ls{static get observedAttributes(){return[].concat(Ls.observedAttributes||[],ws)}#Mt;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 ${xs.map(t=>js(t)).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],oe(this,this.comboBox,{includeAttrs:["label-type"]}),oe(this,this.textField,{includeAttrs:["label-type","required","phone-input-type"],mapAttrs:{"phone-input-type":"type"}}),this.comboBox.customValueTransformFn=t=>{const[,e]=t?.split?.(" ")||[];return e}}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 t=this.getAttribute("restrict-countries");return t?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){return this.comboBox.value&&this.textField.value?this.allowAlphanumericInput?`${this.comboBox.value}-${this.textField.value}`:`${this.comboBox.value}-${this.textField.value.replace(/\D+/g,"")}`:""}#mt(){this.comboBox.selectedItem=void 0,this.textField.value=""}set value(t){this.#yt(t)}#yt(t){if(!t||!/\d/.test(t))return void this.#mt();t.startsWith("+")||(t=`+${t}`);let e="",i="";if(t.includes("-")){const o=t.indexOf("-");e=t.slice(0,o),i=t.slice(o+1).replace(/\D+/g,"")}else{const o=(0,u.l)(t);o?.countryCallingCode&&(e=`+${o.countryCallingCode}`,i=t.slice(e.length).replace(/\D+/g,""))}if(!/\d/.test(e))return void this.#mt();const o=xs.filter(t=>t.dialCode===e).map(t=>t.code),n=this.selectedCountryCode;if(!o.includes(n)){const t=this.comboBox.items?.find(t=>o.includes(t.getAttribute("data-country-code")));t&&(this.comboBox.selectedItem=t)}this.isFormatValue?this.textField.value=this.#bt(i):this.textField.value=i}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#Nt()}getValidity(){const t=this.comboBox.value,e=this.textField.value,i=!t||!e,o=e&&e.length>=this.minLength;if(this.isRequired&&i)return{valueMissing:!0};if(this.value){if(!o)return{tooShort:!0};if(this.isStrictValidation&&!this.#It())return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i){if("default-code"===t&&i&&!this.selectedCountryCode)this.#xt(i);else if(ws.includes(t)){const e=Ss[t]||t;Ds.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):vs.includes(t)?this.comboBox.setAttribute(e,i):zs.includes(t)&&this.textField.setAttribute(e,i)}Cs.includes(t)&&this.#jt(t,i),"restrict-countries"===t&&this.#Tt(this.restrictCountries)}}#Nt(){this.textField.addEventListener("input",this.#Dt.bind(this)),this.comboBox.addEventListener("change",this.#vt.bind(this)),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}#Dt(){const t=this.allowAlphanumericInput?this.textField.value:this.textField.value.replace(/\D+/g,"");this.textField.value=this.isFormatValue?this.#bt(t):t}#vt(){if(!this.isFormatValue)return;const t=this.textField.value.replace(/\D+/g,"");this.textField.value=this.#bt(t)}#bt(t=""){return this.#Mt&&this.#Mt.country===this.selectedCountryCode||(this.#Mt=new p.Q(this.selectedCountryCode)),this.#Mt.reset(),this.#Mt.input(t)||t}#It(){const t=(0,u.l)(this.value);return!!(t&&t.isValid?.()&&t.country&&this.#zt(t.country))}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Ct(t){return this.comboBox.items?.find(e=>e.getAttribute("data-country-code")===t)}#Tt(t){const e=t.length?xs.filter(e=>t.includes(e.code)):xs;this.querySelector("descope-combo-box").innerHTML=e.map(t=>js(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=Ss[t]||t;"label-type"===t?this.#St(e):"floating"===this.getAttribute("label-type")&&("country-input-label"===t?this.comboBox.setAttribute(i,e):"label"===t&&this.textField.setAttribute(i,e))}#St(t){"floating"===t?(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(t=>t.removeAttribute("label"))}});const As=Kn.cssVarList,fs=To.cssVarList,Es=ee("phone-field"),{host:ks,label:Os,requiredIndicator:Vs,inputField:Ws,internalAfter:Rs,countryCodeInput:Us,phoneInput:Ys,separator:Qs,errorMessage:Ps,helperText:Bs}={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)"}},Zs=Ht(Fe({mappings:{fontSize:[ks,Ws,{selector:Kn.componentName,property:Kn.cssVarList.fontSize},{selector:To.componentName,property:To.cssVarList.fontSize}],fontFamily:[Os,Ps,Bs,{...Us,property:To.cssVarList.overlay.fontFamily}],hostWidth:[{...ks,property:"width"},{...Ys,property:"width"},{...Us,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...ks,property:"direction"},inputBorderStyle:[{...Rs,property:"border-style"},{...Qs,property:"border-left-style"}],inputBorderWidth:[{...Rs,property:"border-width"},{...Qs,property:"border-left-width"}],inputBorderColor:[{...Rs,property:"border-color"},{...Qs,property:"border-left-color"}],inputBorderRadius:[{...Ws,property:"border-radius"},{...Rs,property:"border-radius"}],countryCodeInputWidth:{...Us,property:fs.hostWidth},countryCodeDropdownWidth:{...Us,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Ys,property:"width"},horizontalPadding:[{...Ys,property:"padding-left"},{...Ys,property:"padding-right"},{...Us,property:"padding-left"},{...Us,property:"padding-right"}],labelFontSize:{...Os,property:"font-size"},labelFontWeight:{...Os,property:"font-weight"},inputValueFontWeight:[{...Ys,property:As.inputValueFontWeight},{...Us,property:fs.inputValueFontWeight}],inputPlaceholderFontWeight:{...Ys,property:As.inputPlaceholderFontWeight},helperTextFontWeight:{...Bs,property:"font-weight"},errorMessageFontWeight:{...Ps,property:"font-weight"},labelTextColor:[{...Os,property:"color"},{...Os,property:"-webkit-text-fill-color"},{...Vs,property:"color"}],labelRequiredIndicator:{...Vs,property:"content"},errorMessageTextColor:{...Ps,property:"color"},errorMessageIcon:{...Ps,property:"background-image"},errorMessageIconSize:{...Ps,property:"background-size"},errorMessageIconPadding:{...Ps,property:"padding-inline-start"},errorMessageIconRepeat:{...Ps,property:"background-repeat"},errorMessageIconPosition:{...Ps,property:"background-position"},errorMessageFontSize:{...Ps,property:"font-size"},inputValueTextColor:[{...Ys,property:As.inputValueTextColor},{...Us,property:fs.inputValueTextColor}],inputPlaceholderTextColor:{...Ys,property:As.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:fs.overlayItemBackgroundColor},inputOutlineStyle:{...Ws,property:"outline-style"},inputOutlineColor:{...Ws,property:"outline-color"},inputOutlineWidth:{...Ws,property:"outline-width"},inputOutlineOffset:{...Ws,property:"outline-offset"},valueInputHeight:[{...Us,property:fs.valueInputHeight}],valueInputMarginBottom:[{...Ys,property:As.valueInputMarginBottom}],marginInlineStart:[{...Ys,property:As.marginInlineStart},{...Us,property:fs.marginInlineStart}]}}),Ge,ui,ai({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return xs}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${Ts}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Ts}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(Ts),oe(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","phone-input-type"]})}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(t=>t.getAttribute("data-country-code"))}})(ti({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${ye(Zs.cssVarList)}\n\t\t\t${Ie("vaadin-text-field")}\n\t\t\t${Te("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(${Zs.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${fs.inputOutlineWidth}: 0;\n\t\t\t\t${fs.inputOutlineOffset}: 0;\n\t\t\t\t${fs.inputBorderWidth}: 0;\n\t\t\t\t${fs.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${As.inputOutlineWidth}: 0;\n\t\t\t\t${As.inputOutlineOffset}: 0;\n\t\t\t\t${As.inputBorderWidth}: 0;\n\t\t\t\t${As.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 ${De("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Es}));customElements.define(Es,Zs);const Fs=ee("phone-field-internal-input-box"),Gs=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],Hs={"phone-input-placeholder":"placeholder","phone-input-type":"type"},Js=pi({componentName:Fs,baseSelector:"div"});customElements.define(Fs,class extends Js{static get observedAttributes(){return[].concat(Js.observedAttributes||[],Gs)}#Mt;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 t=this.getAttribute("default-code"),xs.find(e=>e.code===t)?.dialCode;var t}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.#wt();const t=this.#Lt();return t?.country&&t?.countryCallingCode&&t?.nationalNumber?`+${[t?.countryCallingCode,t?.nationalNumber].join("-")}`:this.textField.value}set value(t){this.textField.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#At.bind(this)),this.handleFocusEventsDispatching([this.textField]),f(this.textField,this,{includeAttrs:["has-value"]}),f(this,this.textField,{includeAttrs:["phone-input-type"],mapAttrs:{"phone-input-type":"type"}})}getValidity(){const t=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,e=this.#ft(this.textField.value||"");if(this.isRequired&&!this.textField.value)return{valueMissing:!0};if(this.textField.value){if(e.length<this.minLength)return{tooShort:!0};if(this.isStrictValidation&&this.textField.value&&!this.#It()||!this.isStrictValidation&&this.textField.value&&!t.test(this.value))return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i&&Gs.includes(t)){const e=Hs[t]||t;this.textField.setAttribute(e,i)}}#At(t){let e=this.#Et(t.target.value);this.isFormatValue&&this.#kt(e)&&(e=this.#Ot(e)),t.target.value=e}#wt(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Vt(this.textField.value),e=this.#ft(t);return[this.defaultDialCode,e].join("-")}#Lt(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#ft(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#ft(t){return t.replace(/\D/g,"")}#Vt(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#It(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#zt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Et(t){if(t=t.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const e=/^[+\d-\(\)]+$/;t=t.split("").filter(t=>e.test(t)).join("")}return t}#Ot(t=""){const e=this.defaultCode||this.#Wt(t);return e?(this.#Mt&&this.#Mt.country===e||(this.#Mt=new p.Q(e)),this.#Mt.reset(),this.#Mt.input(t)||t):t}#Wt(t){const e=(0,u.l)(t);return e?.country||""}#kt(t){return!!(t=>{const e=t.match(/\(/g),i=t.match(/\)/g);return e?.length===i?.length})(t)}});const $s=Kn.cssVarList,qs=ee("phone-input-box-field"),{host:_s,label:Xs,inputElement:Ks,requiredIndicator:ta,inputField:ea,internalComponent:ia,internalComponentAfter:oa,phoneInput:na,errorMessage:ra,helperText:sa}={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)"}},aa=Ht(Fe({mappings:{fontSize:[_s,ea,{selector:Kn.componentName,property:Kn.cssVarList.fontSize}],fontFamily:[Xs,ra,sa],hostWidth:{..._s,property:"width"},hostMinWidth:{..._s,property:"min-width"},hostDirection:{..._s,property:"direction"},inputHorizontalPadding:[{...na,property:"padding-left"},{...na,property:"padding-right"}],labelFontSize:{...Xs,property:"font-size"},labelFontWeight:{...Xs,property:"font-weight"},inputValueFontWeight:{...na,property:$s.inputValueFontWeight},inputPlaceholderFontWeight:{...na,property:$s.inputPlaceholderFontWeight},helperTextFontWeight:{...sa,property:"font-weight"},errorMessageFontWeight:{...ra,property:"font-weight"},labelTextColor:[{...Xs,property:"color"},{...Xs,property:"-webkit-text-fill-color"},{...ta,property:"color"}],labelRequiredIndicator:{...ta,property:"content"},errorMessageTextColor:{...ra,property:"color"},errorMessageIcon:{...ra,property:"background-image"},errorMessageIconSize:{...ra,property:"background-size"},errorMessageIconPadding:{...ra,property:"padding-inline-start"},errorMessageIconRepeat:{...ra,property:"background-repeat"},errorMessageIconPosition:{...ra,property:"background-position"},errorMessageFontSize:{...ra,property:"font-size"},inputValueTextColor:{...na,property:$s.inputValueTextColor},inputPlaceholderTextColor:{...na,property:$s.inputPlaceholderColor},inputBorderStyle:{...oa,property:"border-style"},inputBorderWidth:{...oa,property:"border-width"},inputBorderColor:{...oa,property:"border-color"},inputBorderRadius:[{...ia,property:"border-radius"},{...oa,property:"border-radius"}],inputOutlineStyle:{...ia,property:"outline-style"},inputOutlineColor:{...ia,property:"outline-color"},inputOutlineWidth:{...ia,property:"outline-width"},inputOutlineOffset:{...ia,property:"outline-offset"},labelPosition:{...Xs,property:"position"},labelTopPosition:{...Xs,property:"top"},labelHorizontalPosition:[{...Xs,property:"left"},{...Xs,property:"right"}],inputTransformY:{...Xs,property:"transform"},inputTransition:{...Xs,property:"transition"},marginInlineStart:{...Xs,property:"margin-inline-start"},valueInputHeight:{...Ks,property:"height"},valueInputMarginBottom:{selector:Kn.componentName,property:$s.valueInputMarginBottom}}}),Ge,ui,ai({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return xs}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${Fs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Fs}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Fs),S(this,this.inputElement,{includeAttrs:["has-value"]}),oe(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","phone-input-type"]})}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}})(ti({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${ye(aa.cssVarList)}\n ${Ie("vaadin-text-field")}\n ${Te("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 ${$s.inputOutlineWidth}: 0;\n ${$s.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 ${De("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:qs}));customElements.define(qs,aa);const la=ee("new-password-internal"),da=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),ca=ee("policy-validation"),ua=["data","active-policies","overrides","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-actual-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse"],pa=["label","value",...ua];class ha extends(Xe({componentName:ca,baseSelector:":host > div"})){#Rt;#Ut=[];#Yt;static get observedAttributes(){return pa}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n\t\t',E("\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(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("label"===t&&this.updateLabel(i),ua.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(i)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Ut=(i||"").split(",")),"data-password-policy-value-minlength"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,minlength:{value:`${t}`}})}if("data-password-policy-value-reuse"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,reuse:{value:`${t}`}})}if("data-password-policy-value-passwordstrength"===t){const t=parseInt(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,expected:t}})}if("data-password-policy-actual-passwordstrength"===t){const t=Number(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,actual:t}})}if("data-password-policy-value-disallowedchars"===t)if(i)this.#Yt={...this.#Yt,disallowedchars:{...this.#Yt?.disallowedchars,value:i}};else if(this.#Yt?.disallowedchars){const{disallowedchars:t,...e}=this.#Yt;this.#Yt=e}if("data-password-policy-value-email"===t)if(i)this.#Yt={...this.#Yt,disallowemail:{...this.#Yt?.disallowemail,expected:i}};else if(this.#Yt?.disallowemail){const{disallowemail:t,...e}=this.#Yt;this.#Yt=e}}this.renderItems(this.#Rt,this.#Ut,this.#Yt)}}get availablePolicies(){return this.#Rt||[]}set availablePolicies(t){this.#Rt=t}get value(){return this.getAttribute("value")||""}getStrengthScore(){return this.value.length}compareValues(t,e,i){switch(t.toUpperCase()){case"GTE":return i>=e;case"GT":return i>e;case"LTE":return i<=e;case"LT":return i<e;case"EQ":return i===e;case"NEQ":return i!==e;default:throw new Error(`Invalid comparison type: ${t}`)}}validate(){let t=this.#Rt;return this.#Yt&&(t=this.#Rt.map(t=>{const e=this.#Yt[t.id];return e?{...t,data:e}:t})),this.#Ut.reduce((e,i)=>{const o=t.find(t=>t.id===i);if(!o)return e;const{pattern:n,message:r,data:s,compare:a,info:l}=o,d="string"==typeof a?a.toUpperCase():a;if(!n&&!a&&!l||!r)return e;const c={message:da(r,s),id:i};if(l)c.info=!0;else if(n){const t=new RegExp(da(n,s));c.valid=t.test(this.value)}else if("STR_NEQ_CI"===d){const t=(s?.expected??"").toLowerCase(),e=(this.value??"").toLowerCase();if(t&&e){const i=t.indexOf("@"),o=i>0?t.slice(0,i):t;c.valid=e!==t&&e!==o}else c.valid=!0}else a&&(c.valid=this.compareValues(d,s?.expected??-1,s?.actual??-1));return e.push(c),e},[]).sort((t,e)=>Number(!!t.info)-Number(!!e.info))}get isValid(){return!this.validate().some(({valid:t})=>!1===t)}buildValidationItem({valid:t,message:e,info:i}){const o=!this.value||i?"none":t,n=document.createElement("li");n.className="item",n.dataset.valid=o;const r=document.createElement("span");return r.className="message",r.textContent=e??"",n.appendChild(r),n}renderItems(t,e){t&&e.length&&this.list.replaceChildren(...this.validate().map(this.buildValidationItem.bind(this)))}updateLabel(t){t?(this.label.textContent=t,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.textContent="")}}const{host:ga,item:Ma,symbolDefault:ma,symbolSuccess:ya,symbolError:ba}={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'}},Na=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ga,property:"border-width"},borderStyle:{...ga,property:"border-style"},borderColor:{...ga,property:"border-color"},borderRadius:{...ga,property:"border-radius"},backgroundColor:{...ga,property:"background-color"},textColor:{property:"color"},labelMargin:{...ga,property:"gap"},itemsSpacing:{...Ma,property:"line-height"},itemSymbolSuccessColor:{...ya,property:"color"},itemSymbolErrorColor:{...ba,property:"color"},itemSymbolDefault:{...ma,property:"content"},itemSymbolSuccess:{...ya,property:"content"},itemSymbolError:{...ba,property:"content"}}}),Ge,He)(ha),Ia=ee("new-password"),xa=Na.cssVarList,{host:ja,label:Ta,internalInputsWrapper:Da,errorMessage:va,helperText:za,passwordInput:Ca,policyPreview:Sa}={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"}},wa=Ht(Fe({mappings:{fontSize:[ja,{},{selector:cs.componentName,property:cs.cssVarList.fontSize}],fontFamily:[Ta,va,za],labelFontSize:{...Ta,property:"font-size"},labelFontWeight:{...Ta,property:"font-weight"},inputValueFontWeight:{...Ca,property:cs.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...Ca,property:cs.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...za,property:"font-weight"},errorMessageFontWeight:{...va,property:"font-weight"},labelTextColor:{...Ta,property:"color"},errorMessageTextColor:{...va,property:"color"},errorMessageIcon:{...va,property:"background-image"},errorMessageIconSize:{...va,property:"background-size"},errorMessageIconPadding:{...va,property:"padding-inline-start"},errorMessageIconRepeat:{...va,property:"background-repeat"},errorMessageIconPosition:{...va,property:"background-position"},errorMessageFontSize:{...va,property:"font-size"},hostWidth:{...ja,property:"width"},hostMinWidth:{...ja,property:"min-width"},hostDirection:[{...ja,property:"direction"},{...Ca,property:cs.cssVarList.hostDirection}],inputsRequiredIndicator:{...ja,property:"content"},spaceBetweenInputs:{...Da,property:"gap"},policyPreviewBackgroundColor:{...Sa,property:xa.backgroundColor},policyPreviewPadding:{...Sa,property:xa.padding},valueInputHeight:{...Ca,property:cs.cssVarList.valueInputHeight},valueInputMarginBottom:{...Ca,property:cs.cssVarList.valueInputMarginBottom}}}),Ge,ai({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e=this.getAttribute("external-input");t.innerHTML=`\n\t\t\t<${la}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n\t\t\t>\n </${la}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(la),"true"===this.getAttribute("external-input")&&this.initExternalInput(),oe(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","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","label-type","manual-visibility-toggle"]})}createSlottedExternalInput(t,e){const i=t.querySelector("input"),o=document.createElement("slot"),n=i.getAttribute("slot");o.setAttribute("name",e),o.setAttribute("slot",n),t.appendChild(o),i.setAttribute("slot",e),i.setAttribute("name",this.getAttribute("name")),i.setAttribute("data-hidden-input","true"),this.appendChild(i)}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")}})(ti({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${ye(cs.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:Ia}));customElements.define(ca,Na);const La=/^password-/,Aa=/^confirm-/,fa=(t,e)=>t.replace(e,""),Ea=["password-label","password-placeholder"],ka=["confirm-label","confirm-placeholder"],Oa=["has-validation","policy-label","available-policies","active-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","manual-visibility-toggle"],Va=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Wa=[].concat(Va,Ea,ka,Oa),Ra=pi({componentName:la,baseSelector:"div"});customElements.define(la,class extends Ra{static get observedAttributes(){return[].concat(Ra.observedAttributes||[],Wa)}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(t){t!==this.value&&(this.passwordInput.value=t)}get hasConfirm(){return"true"===this.getAttribute("has-confirm")}onHasConfirmChange(t){this.confirmInput.classList.toggle("hidden",!t)}onHasValidationChange(t){this.policyPanel.classList.toggle("hidden",!t)}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 t=this.getAttribute("minlength"),e=parseInt(t,10)||0;return this.value.length>=e?{}:{tooShort:!0}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.passwordInput.focus()}),super.init?.(),this.renderInputs(this.hasConfirm,this.hasValidation)}renderInputs(){const t="true"===this.getAttribute("external-input"),e=`\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="${t}"\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="${t}"\n data-id="confirm"\n ></descope-password>\n `;this.wrapperEle.innerHTML=e,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",t=>{this.passwordStrength?.addEventListener("score-changed",({detail:t})=>{this.policyPanel.setAttribute("data-password-policy-actual-passwordstrength",t)},{once:!0}),this.passwordStrength?.setAttribute("value",t.target.value),this.policyPanel.setAttribute("value",t.target.value)}),oe(this,this.policyPanel,{includeAttrs:Oa,mapAttrs:{"policy-label":"label","available-policies":"data"}})}handleIndicatorStyle(){this.inputs.forEach(t=>{E(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${wa.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`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&_t(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.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 $T}),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(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("has-validation"===t?this.onHasValidationChange("true"===i):"has-confirm"===t?this.onHasConfirmChange("true"===i):Va.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):Ea.includes(t)?this.toggleBooleanAttribute(this.passwordInput,fa(t,La),i):ka.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,fa(t,Aa),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(Ia,wa);const Ua=ee("recaptcha"),Ya=["enabled","site-key","action","enterprise","variant"],Qa="recaptcha",Pa=pi({componentName:Ua,baseSelector:":host > div"}),Ba=Ht(Ge)(class extends Pa{#Qt=null;static get observedAttributes(){return Ya.concat(Pa.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Pt("true"===i),"variant"===t&&(this.#Bt(),this.updatePreview()))}renderRecaptcha(t){this.children.length?this.updatePreview():this.toggleRecaptchaEles(t)}displayRecaptcha(){this.isWidgetVariant?this.displayWidget():this.displayDeprecated()}displayWidget(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="",this.depercatedRecaptchaEle.style.display="none"}hideRecaptcha(){this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display="none",this.mockRecaptchaEle.style.display=""}displayDeprecated(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display=""}toggleRecaptchaEles(t){t?this.displayRecaptcha():this.hideRecaptcha()}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <span id="recaptcha-widget"></span>\n <input id="recaptcha-widget-input" type="hidden" name="recaptcha-widget" required />\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',E('\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 #recaptcha-widget {\n width: 100%;\n height: 100%;\n }\n :host #recaptcha-widget-input {\n display: none;\n }\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.depercatedRecaptchaEle=this.baseElement.querySelector("#recaptcha"),this.recaptchaWidgetEle=this.baseElement.querySelector("#recaptcha-widget"),this.recaptchaWidgetInputEle=this.baseElement.querySelector("#recaptcha-widget-input"),this.mockRecaptchaEle=this.baseElement.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge")}init(){super.init?.(),Xt(this,this.updatePreview.bind(this)),this.inputElement=this.recaptchaWidgetInputEle,this.recaptchaWidgetInputEle.getValidity=null,this.recaptchaWidgetInputEle.checkValidity=null,this.#Bt()}#Bt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Qa),this.#Qt=Qa):this.#Qt&&this.getAttribute("name")===this.#Qt&&(this.removeAttribute("name"),this.#Qt=null),this.dispatchEvent(new Event("change"))}updatePreview(){this.children.length?(this.depercatedRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.mockRecaptchaEle.style.display="none",this.badge.classList.add("hidden")):(this.toggleRecaptchaEles(this.enabled),this.badge.classList.remove("hidden"))}getValidity(){return this.isWidgetVariant?this.recaptchaWidgetInputEle.value?{}:{valueMissing:!0}:{}}checkValidity(){return!this.isWidgetVariant||!!this.recaptchaWidgetInputEle.value}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 variant(){return this.getAttribute("variant")||"text"}get isWidgetVariant(){return"widget"===this.variant}get scriptURL(){const t=new URL("https://www.google.com/recaptcha/");return t.pathname+=(this.enterprise?"enterprise":"api")+".js",t.searchParams.append("onload","onRecaptchaLoadCallback"),t.searchParams.append("render","explicit"),t.toString()}#Pt(t){this.renderRecaptcha(t),this.isWidgetVariant||t&&(this.#Zt(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Ft())}#Ft(){const t=document.createElement("script");t.src=this.scriptURL,t.async=!0,t.id="recaptcha-script",t.defer=!0,document.body.appendChild(t)}get grecaptchaInstance(){return this.enterprise?window.grecaptcha?.enterprise:window.grecaptcha}#Gt(t,e,i){this.isConnected&&t.ready(()=>{const o=e.querySelector('textarea[name^="g-recaptcha-response"]')?.cloneNode();if(o&&(o.style.display="none",document.body.appendChild(o)),!this.siteKey)return;const n=t?.execute(i,{action:this.action});n.then((n,r)=>{r?console.warn("could not execute recaptcha",r):(this.updateComponentsContext({risktoken:n,riskaction:this.action}),this.isConnected&&setTimeout(()=>{this.#Gt(t,e,i)},11e4)),o.remove()})})}#Zt(){window.onRecaptchaLoadCallback=()=>{const t=this.depercatedRecaptchaEle;if(t.hasChildNodes())return;const{grecaptchaInstance:e}=this;e&&setTimeout(()=>{const i=e.render(t,{sitekey:this.siteKey,badge:"inline",size:"invisible"});this.#Gt(e,t,i)},0)}}});customElements.define(Ua,Ba);const Za=ee("upload-file"),Fa=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Ga=pi({componentName:Za,baseSelector:":host > div"}),Ha=Vo.cssVarList,{host:Ja,wrapper:$a,icon:qa,title:_a,description:Xa,requiredIndicator:Ka}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},tl=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...Ja,property:"height"},hostWidth:{...Ja,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...Ja,property:"direction"},{selector:()=>Vo.componentName,property:Ha.hostDirection}],gap:{...$a},lineHeight:{...$a,property:"line-height"},titleFontSize:{..._a,property:"font-size"},titleFontWeight:{..._a,property:"font-weight"},descriptionFontSize:{...Xa,property:"font-size"},labelTextColor:[{..._a,property:"color"},{...Xa,property:"color"}],iconSize:{...qa,property:"width"},requiredIndicator:{...Ka,property:"content"}}}),Ge,He)(class extends Ga{static get observedAttributes(){return Fa.concat(Ga.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-hidden="true"/>\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',E("\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 t=>{const e=t.target.files;var i;e.length&&(this.value=await(i=e[0],new Promise(t=>{const e=new FileReader;e.onload=e=>t(e.target.result),e.readAsDataURL(i)})),this.updateDescription((t=>t.name.replace(/^.*\\/,""))(e[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(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("title"===t?this.updateTitle(i):"description"===t?this.updateDescription(i):"button-label"===t?this.updateButtonLabel(i):"button-mode"===t?this.updateButtonMode(i):"button-variant"===t?this.updateButtonVariant(i):"size"===t?this.updateButtonSize(i):"accept"===t?this.updateInputAccept(i):"readonly"===t&&this.updateReadOnly(i))}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(t){this.title.textContent=t}updateDescription(t){this.description.textContent=t}updateButtonLabel(t){this.button.textContent=t}updateButtonSize(t){this.button.setAttribute("size",t)}updateButtonMode(t){this.button.setAttribute("mode",t)}updateButtonVariant(t){this.button.setAttribute("variant",t)}updateInputAccept(t){this.input.setAttribute("accept",t)}updateReadOnly(t){"true"===t?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}});customElements.define(Za,tl);const el=t=>{class e extends(pi({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=Ke.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(t){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach(t=>{t.setAttribute("size",this.size)})}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(t){t.forEach(t=>{switch(t){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}})}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.items[0]?.focus()}),super.init?.(),_t(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return e},il=ee("button-selection-group-internal");class ol extends(el(il)){getSelectedNode(){return this.items.find(t=>t.hasAttribute("selected"))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(t){t.target!==t.currentTarget&&(t.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(t.target),this.dispatchChange())}setSelected(t){t!==this.getSelectedNode()&&(this.removeSelected(),t?.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(t){const e=this.items.find(e=>e.value===t);this.setSelected(e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const nl=ee("button-selection-group-item");class rl extends(Xe({componentName:nl,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(t){this.setAttribute("value",t)}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`,E("\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),oe(this,this.baseElement,{includeAttrs:["size","variant"]}),oe(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",t=>{t.isTrusted&&this.handleFocus()})}}const sl=Ht(Fe({mappings:{hostDirection:{selector:()=>Vo.componentName,property:Vo.cssVarList.hostDirection},hostWidth:{selector:()=>Vo.componentName,property:"width"},backgroundColor:{selector:()=>Vo.componentName,property:Vo.cssVarList.backgroundColor},labelTextColor:{selector:()=>Vo.componentName,property:Vo.cssVarList.labelTextColor},borderColor:{selector:()=>Vo.componentName,property:Vo.cssVarList.borderColor},borderWidth:{selector:()=>Vo.componentName,property:Vo.cssVarList.borderWidth},borderStyle:{selector:()=>Vo.componentName,property:Vo.cssVarList.borderStyle},borderRadius:{selector:()=>Vo.componentName,property:Vo.cssVarList.borderRadius},outlineColor:{selector:()=>Vo.componentName,property:Vo.cssVarList.outlineColor}}}),Ge,He)(rl),al=t=>class extends t{#tt=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#R;get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.renderItems(),_t(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Xt(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})})}},{host:ll,label:dl,requiredIndicator:cl,internalWrapper:ul,errorMessage:pl}={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)"}},hl={hostWidth:{...ll,property:"width"},hostDirection:{...ll,property:"direction"},fontFamily:ll,labelTextColor:[{...dl,property:"color"},{...cl,property:"color"}],labelRequiredIndicator:{...cl,property:"content"},errorMessageTextColor:{...pl,property:"color"},errorMessageIcon:{...pl,property:"background-image"},errorMessageIconSize:{...pl,property:"background-size"},errorMessageIconPadding:{...pl,property:"padding-inline-start"},errorMessageIconRepeat:{...pl,property:"background-repeat"},errorMessageIconPosition:{...pl,property:"background-position"},errorMessageFontSize:{...pl,property:"font-size"},itemsSpacing:{...ul,property:"gap"},itemsDirection:{...ul,property:"flex-direction"},itemsAlignment:{...ul,property:"align-items"},itemsWidth:{selector:()=>`::slotted(${sl.componentName})`,property:sl.cssVarList.hostWidth}},gl=`\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\tvaadin-text-field::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 ${De("vaadin-text-field")}\n\t\t\t${Ie("vaadin-text-field")}\n `,Ml=ee("button-selection-group"),ml=Ht(Fe({mappings:{...hl}}),Ge,ai({proxyProps:["value","selectionStart"]}),He,al,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${il}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${il}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(il),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),oe(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(ti({slots:[],wrappedEleName:"vaadin-text-field",style:()=>gl,excludeAttrsSync:["tabindex","style"],componentName:Ml}));customElements.define(il,ol),customElements.define(nl,sl),customElements.define(Ml,ml);const yl=ee("button-multi-selection-group-internal");class bl extends(el(yl)){#Ht(){return this.items.filter(t=>t.hasAttribute("selected"))}onClick(t){t.target!==t.currentTarget&&(this.#Ht().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Ht().map(t=>t.value)}set value(t){this.items.forEach(e=>{t.includes(e.value)?e.setAttribute("selected","true"):e.removeAttribute("selected")})}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#Jt(t){const e=Array.isArray(t);return e||console.error("default-values must be an array, received:",t),e}get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.#Jt(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.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 Nl=ee("button-multi-selection-group"),Il=Ht(Fe({mappings:{...hl}}),Ge,ai({proxyProps:["value","selectionStart"]}),He,al,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${yl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${yl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(yl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),oe(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(ti({slots:[],wrappedEleName:"vaadin-text-field",style:()=>gl,excludeAttrsSync:["tabindex","style"],componentName:Nl}));customElements.define(yl,bl),customElements.define(Nl,Il);class xl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(t,e,i){const o=i.item[this.path]||"",n=Array.isArray(o)?o.join(", "):o;this.__setTextContent(t,n),t.title=n}_defaultHeaderRenderer(t,e){this.sortable?super._defaultHeaderRenderer(t,e):this.__setTextContent(t,this.__getHeader(this.header,this.path))}}const jl=ee("grid-text-column");customElements.define(jl,xl);const Tl=ee("grid-custom-column");customElements.define(Tl,class extends xl{_defaultRenderer(t,e,i){const o=i.item[this.path]||"",n=Array.from(this.children).find(t=>{const e=t.getAttribute("data-pattern");return!e||new RegExp(e).test(o)});if(!n)return void this.__setTextContent(t,i.item[this.path]||"");const r=n.cloneNode(!0);r.textContent=o||"",t.innerHTML="",t.append(r)}});const Dl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},vl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class zl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=Dl(),i.addEventListener("input",()=>{const t=vl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",vl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=Dl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const Cl=ee("grid-selection-column");customElements.define(Cl,zl);class Sl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(t,e,i){const o=e._gridValue,n=o.detailsOpenedItems?.indexOf(i.item)??-1,r=-1!==n,s=document.createElement("vaadin-icon");s.icon=r?"vaadin:angle-up":"vaadin:angle-down",s.classList.add("toggle-details-button",r?"opened":"closed"),t.innerHTML="",t.append(s),s.onclick=()=>{o.detailsOpenedItems=r?o.detailsOpenedItems.toSpliced(n,1):[...o.detailsOpenedItems,i.item]}}_defaultHeaderRenderer(t,e){this.sortable?super._defaultHeaderRenderer(t,e):this.__setTextContent(t,this.__getHeader(this.header,this.path))}}const wl=ee("grid-item-details-column");customElements.define(wl,Sl),customElements.define(vo,So),customElements.define(wo,Lo);const Ll=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},Al=ee("code-snippet");let fl=class extends(Xe({componentName:Al,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["lang","inline","copy-button"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <code class="hljs"></code>\n </div>\n ',E("\n :host {\n display: inline-block;\n width: 100%;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n code {\n grid-area: 1 / 1;\n display: block;\n width: 100%;\n min-height: 1em;\n overflow-x: auto;\n }\n pre {\n margin: 0;\n }\n .copy-btn {\n grid-area: 1 / 1;\n place-self: start end;\n margin: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-style: solid;\n cursor: pointer;\n opacity: 0;\n transition: opacity 150ms ease, background 150ms ease;\n }\n .wrapper:hover .copy-btn,\n .copy-btn:focus-visible {\n opacity: 1;\n }\n .copy-btn descope-icon {\n width: 16px;\n height: 16px;\n pointer-events: none;\n flex-shrink: 0;\n }\n .copy-btn .check-icon {\n display: none;\n }\n .copy-btn.copied .check-icon {\n display: block;\n }\n .copy-btn.copied descope-icon:not(.check-icon) {\n display: none;\n }\n ",this)}init(){super.init?.(),this.lang=this.getAttribute("lang"),this.isInline="true"===this.getAttribute("inline"),"true"===this.getAttribute("copy-button")&&this.#$t(),Xt(this,this.#qt.bind(this))}get contentNode(){return this.shadowRoot.querySelector("code")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("inline"===t&&(this.isInline=i),"lang"===t&&(this.lang=i),"copy-button"===t&&("true"===i?this.#$t():this.#_t()),this.#qt())}#$t(){if(this.shadowRoot.querySelector(".copy-btn"))return;const t=document.createElement("button");t.className="copy-btn",t.type="button",t.setAttribute("aria-label","Copy code");const e=document.createElement("descope-icon");e.setAttribute("src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogIDxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+CiAgPHBhdGggZD0iTTUgMTVINGEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg5YTIgMiAwIDAgMSAyIDJ2MSI+PC9wYXRoPgo8L3N2Zz4K");const i=document.createElement("descope-icon");i.setAttribute("src","data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iY2hlY2staWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT4KPC9zdmc+Cg=="),i.classList.add("check-icon"),t.appendChild(e),t.appendChild(i),t.addEventListener("click",()=>this.#Xt()),this.shadowRoot.querySelector(".wrapper").appendChild(t)}#_t(){this.shadowRoot.querySelector(".copy-btn")?.remove()}#Xt(){const t=this.shadowRoot.querySelector(".copy-btn");navigator.clipboard.writeText(Ll(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=Ll(this.textContent),e=this.lang;if(!e)return void(this.contentNode.textContent=t);const{value:i}=M.A.highlight(t,{language:e});this.contentNode.innerHTML=(t=>this.isInline?t:`<pre>${t}</pre>`)(i)}};const El={selector:()=>".copy-btn"},{root:kl,docTag:Ol,keyword:Vl,metaKeyword:Wl,templateTag:Rl,templateVariable:Ul,type:Yl,variableLanguage:Ql,title:Pl,titleClass:Bl,titleClassInherited:Zl,titleFunction:Fl,attr:Gl,attribute:Hl,literal:Jl,meta:$l,number:ql,operator:_l,variable:Xl,selectorAttr:Kl,selectorClass:td,selectorId:ed,regexp:id,string:od,metaString:nd,builtIn:rd,symbol:sd,comment:ad,code:ld,formula:dd,name:cd,quote:ud,selectorTag:pd,selectorPseudo:hd,subst:gd,section:Md,bullet:md,emphasis:yd,strong:bd,addition:Nd,deletion:Id,charEscape:xd,link:jd,params:Td,property:Dd,punctuation:vd,tag:zd}={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"}},Cd=Ht(Fe({mappings:{rootBgColor:{...kl,property:"background-color"},rootTextColor:{...kl,property:"color"},docTagTextColor:{...Ol,property:"color"},keywordTextColor:{...Vl,property:"color"},metaKeywordTextColor:{...Wl,property:"color"},templateTagTextColor:{...Rl,property:"color"},templateVariableTextColor:{...Ul,property:"color"},typeTextColor:{...Yl,property:"color"},variableLanguageTextColor:{...Ql,property:"color"},titleTextColor:{...Pl,property:"color"},titleClassTextColor:{...Bl,property:"color"},titleClassInheritedTextColor:{...Zl,property:"color"},titleFunctionTextColor:{...Fl,property:"color"},attrTextColor:{...Gl,property:"color"},attributeTextColor:{...Hl,property:"color"},literalTextColor:{...Jl,property:"color"},metaTextColor:{...$l,property:"color"},numberTextColor:{...ql,property:"color"},operatorTextColor:{..._l,property:"color"},variableTextColor:{...Xl,property:"color"},selectorAttrTextColor:{...Kl,property:"color"},selectorClassTextColor:{...td,property:"color"},selectorIdTextColor:{...ed,property:"color"},regexpTextColor:{...id,property:"color"},stringTextColor:{...od,property:"color"},metaStringTextColor:{...nd,property:"color"},builtInTextColor:{...rd,property:"color"},symbolTextColor:{...sd,property:"color"},commentTextColor:{...ad,property:"color"},codeTextColor:{...ld,property:"color"},formulaTextColor:{...dd,property:"color"},nameTextColor:{...cd,property:"color"},quoteTextColor:{...ud,property:"color"},selectorTagTextColor:{...pd,property:"color"},selectorPseudoTextColor:{...hd,property:"color"},substTextColor:{...gd,property:"color"},sectionTextColor:{...Md,property:"color"},bulletTextColor:{...md,property:"color"},emphasisTextColor:{...yd,property:"color"},strongTextColor:{...bd,property:"color"},additionTextColor:{...Nd,property:"color"},additionBgColor:{...Nd,property:"background-color"},deletionTextColor:{...Id,property:"color"},deletionBgColor:{...Id,property:"background-color"},charEscapeTextColor:{...xd,property:"color"},linkTextColor:{...jd,property:"color"},paramsTextColor:{...Td,property:"color"},propertyTextColor:{...Dd,property:"color"},punctuationTextColor:{...vd,property:"color"},tagTextColor:{...zd,property:"color"},copyButtonSize:[{...El,property:"width"},{...El,property:"height"}],copyButtonBorderRadius:{...El,property:"border-radius"},copyButtonBorderWidth:{...El,property:"border-width"},copyButtonBorderColor:{...El,property:"border-color"},copyButtonBgColor:{...El,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...El,property:"color"}}}),Ge,He)(fl);customElements.define(Al,Cd);const Sd=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},wd=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},Ld=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",Ad=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${wd(t)}</descope-code-snippet>`,fd=t=>`<div class="row-details__value text" title="${t}">${wd(t)}</div>`,Ed=t=>Ad(JSON.stringify(t,null,2),"json"),kd=t=>{const e=Ld(t);return"object"===e?Ed(t):"xml"===e?(t=>Ad(t,"xml"))(t):"array"===e?t.some(t=>"object"===Ld(t))?Ed(t):fd(t.join(",\n")):fd(t)},Od=ee("grid"),{host:Vd,headerRow:Wd,headerRowCell:Rd,contentRow:Ud,firstRow:Yd,sortIndicators:Qd,activeSortIndicator:Pd,selectedRow:Bd,rowSeparator:Zd,resizeHandle:Fd,toggleDetailsPanelButton:Gd,toggleDetailsPanelButtonOpened:Hd,toggleDetailsPanelButtonClosed:Jd,detailsPanel:$d,detailsPanelLabels:qd,selectedRowCell:_d,detailsPanelContent:Xd}={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"}},Kd=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Wd},{...Ud}],fontSize:[{...Wd},{...Ud}],fontWeight:{...Ud},valueTextColor:{...Ud,property:"color"},backgroundColor:[{...Vd,property:"background-color"},{...Ud,property:"background-color"}],sortIndicatorsColor:{...Qd,property:"color"},activeSortIndicator:{...Pd,property:"color"},borderColor:{...Vd,property:"border-color"},borderWidth:{...Vd,property:"border-width"},borderStyle:{...Vd,property:"border-style"},borderRadius:{...Vd,property:"border-radius"},selectedBackgroundColor:[{...Bd,property:"background-color"},{..._d,property:"background-color"}],headerRowTextColor:{...Rd,property:"color"},separatorColor:[{...Yd,property:"border-bottom-color"},{...Zd,property:"border-top-color"}],resizeHandleColor:{...Fd,property:"background-color"},hostDirection:{...Vd,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Gd,property:"width"},{...Gd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...Hd,property:"color"},toggleDetailsPanelButtonClosedColor:{...Jd,property:"color"},toggleDetailsPanelButtonCursor:{...Gd,property:"cursor"},detailsPanelBackgroundColor:{...$d,property:"background-color"},detailsPanelBorderTopColor:{...$d,property:"border-top-color"},detailsPanelLabelsColor:{...qd,property:"color"},detailsPanelLabelsFontSize:{...qd,property:"font-size"},detailsPanelItemsGap:{...Xd,property:"grid-gap"},detailsPanelPadding:{...Xd,property:"padding"}}}),Ge,He,t=>class extends t{#Kt;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{};const t=this.baseElement._updateDetailsCellHeight;this.baseElement._updateDetailsCellHeight=e=>{e&&t.call(this.baseElement,e)},this.baseElement.rowDetailsRenderer=this.#te.bind(this),this.baseElement.addEventListener("wheel",t=>{t.target.closest("descope-code-snippet")&&t.stopPropagation()},!0)}#te=async(t,e,i)=>{t.addEventListener("mousedown",t=>t.stopImmediatePropagation(),!0);const o=this.getRowDetailsTemplate(i.item);t.innerHTML="",t.append(o.content.cloneNode(!0))};getRowDetailsTemplate(t){const e=this.#Kt.reduce((t,{path:e,header:i})=>e&&i?{...t,[e]:i}:t,{}),i=this.rowDetailsRenderer?.(t,e)??((t,e)=>`\n <div class="row-details">\n ${Object.entries(t).map(([t,i])=>{const o=e[t]||t.replace(/([A-Z])/g," $1").trim().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");return(t=>{const e=Ld(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===Ld(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${kd(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${kd(i)}\n </div>`}).join("\n")}\n</div>\n `)(t,e);switch(!0){case i instanceof HTMLTemplateElement:return i;case"string"==typeof i:return Object.assign(document.createElement("template"),{innerHTML:i});default:throw new Error("rowDetailsRenderer should return a string or a template")}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",t=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"columns"===t&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#Kt=Array.from(this.children).map(t=>({path:t.getAttribute("path"),header:t.getAttribute("header"),type:t.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce((e,i)=>{const o=t.getAttribute(i);return o&&(e[i]=o),e},{})}))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const t=JSON.parse(this.columnsAttr);Sd(t)&&(this.columns=t)}catch(t){console.error('could not parse data string from attribute "columns" -',t.message)}}#ee=({path:t,header:e,type:i,attrs:o})=>{const n=`descope-grid-${i}-column`;return`<${n} header="${e}" path="${t}" ${Object.entries(o).map(([t,e])=>`${t}="${e}"`).join(" ")}></${n}>`};get renderColumn(){return this.#ee}set renderColumn(t){this.#ee=t,this.renderColumns()}getColumnsTemplate(){return this.#Kt?.reduce?.((t,e)=>t+(this.renderColumn?.(e||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#te.bind(this)},0)}renderColumns(){const t=this.getColumnsTemplate();t&&(this.reassignRowDetailsRenderer(),this.innerHTML=t)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(t){if(Sd(t)&&this.grid.items!==t&&(this.grid.items=t,this.grid.selectedItems)){const t=new Set(this.grid.items.map(t=>t[this.uniqueColumnId]??t)),e=this.grid.selectedItems.filter(e=>t.has(e[this.uniqueColumnId]??e));this.grid.selectedItems.length!==e.length&&(this.grid.selectedItems=e)}}get columns(){return this.#Kt}set columns(t){this.#Kt=t,this.renderColumns()}get paths(){return this.columns.map(t=>t.path)}get uniqueColumnId(){return this.getAttribute("unique-column-id")}})(ti({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(${Kd.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 details.row-details__item {\n padding: 0;\n }\n vaadin-grid details.row-details__item > summary.row-details__label {\n cursor: pointer;\n list-style: revert;\n display: revert;\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 overflow-x: auto;\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:Od}));customElements.define(Od,Kd);const tc=ee("modal"),ec=["opened"],ic=Ht(Fe({mappings:{overlayBackdropColor:{property:()=>ic.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>ic.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>ic.cssVarList.overlay.shadow},overlayWidth:{property:()=>ic.cssVarList.overlay.width},overlayBorderWidth:{property:()=>ic.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>ic.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>ic.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>ic.cssVarList.overlay.borderRadius}}}),li({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"}],backdropColor:{selector:()=>"::part(backdrop)",property:"background-color"},borderStyle:{selector:()=>"::part(content)",property:"border-style"},borderWidth:{selector:()=>"::part(content)",property:"border-width"},borderColor:{selector:()=>"::part(content)",property:"border-color"},borderRadius:{selector:()=>"::part(content)",property:"border-radius "},width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened","style"]}}),Ge,He,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],ec)}get opened(){return"true"===this.getAttribute("opened")}get closeOnOutsideClick(){return"true"===this.getAttribute("close-on-outside-click")}handleOpened(){this.opened?this.style.display="":this.style.display="none"}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"opened"===t&&this.handleOpened()}init(){super.init?.(),this.style.display="none",setTimeout(()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#it(),oe(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),E("\n :host {\n display: flex!important;\n }\n ",this.baseElement)},t._detachOverlay=()=>{this.baseElement.style.display="none"},t._enterModalState=()=>{},t.close=()=>!1,t.addEventListener("click",e=>{if(!this.closeOnOutsideClick||!this.opened)return;const i=t.shadowRoot?.querySelector('[part="overlay"]');i&&!e.composedPath().includes(i)&&this.removeAttribute("opened")})}})(ti({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:tc}));customElements.define(tc,ic);const oc=window.customElements.get("vaadin-notification-container");if(!oc)throw new Error("could not get vaadin-notification-container class");customElements.define(ee("notification-container"),class extends oc{});const nc=ee("notification-card"),rc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},sc=Ht(Fe({mappings:{hostMinWidth:{selector:rc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:rc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:rc.content,property:"border-width"},borderColor:{selector:rc.content,property:"border-color"},borderStyle:{selector:rc.content,property:"border-style"},borderRadius:[{selector:rc.content,property:"border-radius"},{selector:rc.overlay,property:"border-radius"}],verticalPadding:[{selector:rc.content,property:"padding-top"},{selector:rc.content,property:"padding-bottom"}],horizontalPadding:[{selector:rc.content,property:"padding-right"},{selector:rc.content,property:"padding-left"}]}}),t=>class extends t{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()}}})(ti({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:nc}));customElements.define(nc,sc);const ac=ee("notification"),lc=Ht(Ge,He,$e,t=>class e extends t{#ie;constructor(){super();const t=this;Object.defineProperty(this.baseElement,"_container",{get:()=>(e._container||(e._container=document.createElement("descope-notification-container"),e._container.style.position="absolute",document.body.appendChild(e._container)),e._container.isConnected||setTimeout(()=>t.parentNode.appendChild(e._container)),e._container)}),Object.defineProperty(this.baseElement,"_card",{get:()=>t.#ie}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#ie.close()}init(){super.init?.(),this.createCard(),oe(this,this.#ie),te(this.#ie,this,{includeAttrs:["opened"]}),this.baseElement.renderer=t=>{Array.from(this.childNodes).forEach(e=>t.appendChild(e))}}get isContainerEmpty(){return!e._container.children.length}removeContainer(){e._container.remove()}removeNotification(){this.remove(),this.isContainerEmpty&&this.removeContainer()}createCard(){this.#ie=document.createElement("descope-notification-card"),this.#ie.addEventListener("card-closed",this.removeNotification.bind(this))}})(ti({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:ac}));customElements.define(ac,lc);const dc=ee("mappings-field-internal"),cc=pi({componentName:dc,baseSelector:"div"}),uc=ee("mappings-field"),{host:pc,helperText:hc,errorMessage:gc,mappingItem:Mc,labels:mc,labelsText:yc,valueLabel:bc,attrLabel:Nc,separator:Ic,labelsContainer:xc}={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"]'}},jc=Ht(Fe({mappings:{hostWidth:{...pc,property:"width"},hostDirection:{...pc,property:"direction"},fontSize:[{},pc,{...Ic,property:"margin-top"}],fontFamily:[hc,gc,mc],separatorFontSize:{...Ic,property:"font-size"},labelsFontSize:{...yc,property:"font-size"},labelsLineHeight:[{...yc,property:"line-height"},{...mc,property:"line-height"}],labelTextColor:[{...mc,property:Ai.cssVarList.textColor},{...Ic,property:"color"}],itemMarginBottom:{...Mc,property:"margin-bottom"},valueLabelMinWidth:{...bc,property:"min-width"},attrLabelMinWidth:{...Nc,property:"min-width"},labelsMarginBottom:{...xc,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Ge,ai({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),He,t=>class extends t{get defaultValues(){const t=this.getAttribute("default-values");if(t)try{return JSON.parse(t)}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){const t=this.defaultValues;Object.keys(t).length>0&&(this.inputElement.value=t)}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${dc}\n tabindex="-1"\n ></${dc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(dc),oe(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"]}),te(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(ti({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(${jc.cssVarList.separatorWidth}) 1fr var(${jc.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 ${Ai.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(${jc.cssVarList.separatorWidth}) 1fr var(${jc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:uc}));customElements.define(dc,class extends cc{#oe;static get observedAttributes(){return[].concat(cc.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(t){try{return t.every(t=>"object"==typeof t&&!Array.isArray(t)&&1===Object.getOwnPropertyNames(t).length&&"string"==typeof t[Object.keys(t)[0]]&&""!==t[Object.keys(t)[0]].trim())}catch(t){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(t){const e=document.createElement("descope-mapping-item");return e.setAttribute("bordered","true"),this.mappingsContainerEle.appendChild(e),oe(this,e,{includeAttrs:["size","full-width","separator","options","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),setTimeout(()=>{this.setCustomValidity(""),e.addEventListener("mapping-item-removed",()=>{e===this.#oe&&(this.resetInvalidIndication(),this.#oe=void 0),e.remove(),this.setCustomValidity("")}),this.dispatchEvent(new CustomEvent("mapping-item-added",{bubbles:!0,composed:!0})),t&&e.focus()},0),e}get items(){return Array.from(this.mappingsContainerEle.querySelectorAll("descope-mapping-item"))}get value(){return this.items.reduce((t,e)=>e.value?[...t,e.value]:t,[])}set value(t){if(!this.isValidDataType(t))return void console.error("received invalid value to set - should be an array of objects with one key-value pair");const e=this.items;if(e.length>t.length)for(let i=t.length;i<e.length;i++)this.mappingsContainerEle.removeChild(e[i]);t.forEach((t,i)=>{const o=e[i];if(o)o.value=t;else{const e=this.addNewMappingItem(!1);setTimeout(()=>{e.value=t},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 t=this.querySelector("descope-button");t.onclick=()=>{this.addNewMappingItem(!0)},oe(this,t,{includeAttrs:["disabled"]})}#ne(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",t=>{t.isTrusted&&(this.#oe||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#oe)&&this.#oe?.checkValidity()&&(this.resetInvalidIndication(),this.#oe.removeAttribute("invalid"),this.#oe=void 0)}),Xt(this.mappingsContainerEle,this.#ne.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const t=this.items.find(t=>!t.checkValidity());return t?t.validity:{}}#re(t){t&&(this.#oe=this.items.find(t=>!t.checkValidity()),this.#oe?.reportValidity(),this.#oe?.setAttribute("invalid","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"label-value"!==t&&"label-attr"!==t||this.initLabels(),"button-label"===t&&this.initAddButton(),"invalid"===t&&this.#re("true"===i),"readonly"===t&&this.toggleAttribute("inert","true"===i)}});const Tc=ee("mapping-item"),Dc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],vc=pi({componentName:Tc,baseSelector:"div"});customElements.define(Tc,class extends vc{static get observedAttributes(){return[].concat(vc.observedAttributes||[],Dc,["separator","options","invalid","disabled"])}get separator(){return this.getAttribute("separator")||"map to"}get value(){const t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{[t]:e}:null}set value(t){if(1!==Object.entries(t).length)return void console.error("descope-mapping item expected expects only one key-value pair in the value but received: ",t);const[e,i]=Object.entries(t)[0];this.valueInput.value=i,this.attributeInput.value=e,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`,E("\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"),oe(this,this.valueInput,{includeAttrs:Dc}),oe(this,this.attributeInput,{includeAttrs:[...Dc,"options"],mapAttrs:{options:"data"}}),oe(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 t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{}:{badInput:!0}}reportValidity(){this.inputs.forEach(t=>t.reportValidity())}focus(){(this.checkValidity()||!this.valueInput.checkValidity()?this.valueInput:this.attributeInput).focus()}handleSeparatorChange(){this.shadowRoot.querySelector(".separator").textContent=this.separator}#se(t){"true"===t&&(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(t,e,i){super.attributeChangedCallback?.(t,e,i),"separator"===t&&this.handleSeparatorChange(),"invalid"===t&&this.#se(i)}}),customElements.define(uc,jc);const zc=L("badge");class Cc extends(It({componentName:zc,baseSelector:":host > div"})){static get observedAttributes(){return["data-attachment-size","shrink-to-indicator-threshold"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t",E("\n :host {\n display: inline-flex;\n }\n :host > div {\n position: relative;\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ",this)}get shrinkToIndicatorThreshold(){return this.getAttribute("shrink-to-indicator-threshold")||65}#ae(t){this.toggleAttribute("shrink-to-indicator",parseFloat(t)<this.shrinkToIndicatorThreshold)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"data-attachment-size"===t&&e!==i&&this.#ae(i)}}const Sc=T(ht({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostHeight:[{selector:()=>":host",property:"height"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},lineHeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{},boxShadow:{},textIndent:{}}}),gt,Mt)(Cc);var wc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const Lc=ee("user-attribute");class Ac extends(Xe({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="sm" data-id="copy-btn" variant="link" mode="primary">\n <slot name="copy-icon"></slot>\n <descope-icon class="check-icon" src="${wc}" src-dark="${wc}"></descope-icon>\n </descope-button>\n <descope-button size="sm" data-id="delete-btn" variant="link" mode="primary">\n <slot name="delete-icon"></slot>\n </descope-button>\n <descope-button size="sm" data-id="edit-btn" variant="link" mode="primary">\n <slot name="edit-icon"></slot>\n </descope-button>\n </div>\n </div>\n </div>\n\t\t`,E(`\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n container-type: inline-size;\n\t\t\t\t}\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n ::slotted(*) {\n display: flex;\n align-items: center;\n justify-content: 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 flex-shrink: 0;\n }\n\n slot[name="edit-icon"],\n slot[name="delete-icon"],\n slot[name="copy-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n }\n\n descope-button[data-id="copy-btn"].hidden {\n display: none;\n }\n\n descope-button[data-id="copy-btn"] .check-icon {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied slot[name="copy-icon"] {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied .check-icon {\n display: inline-flex;\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 width: 0;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${Ai.cssVarList.textColor});\n }\n\n :host([readonly="true"]) descope-button:not([data-id="copy-btn"]) {\n visibility: hidden;\n width: 0;\n }\n `,this),this.copyButton=this.shadowRoot.querySelector('descope-button[data-id="copy-btn"]'),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 t=this.value||this.placeholder,e=this.value?"primary":"secondary";this.valueText.innerText=t,this.valueText.setAttribute("title",t),this.valueText.setAttribute("mode",e)}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)}updateButtonLabel(t,e){let i=t.querySelector("span.btn-label");e?(i||(i=document.createElement("span"),i.classList.add("btn-label"),t.appendChild(i)),i.innerText=e):i?.remove()}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")||""}get editButtonLabel(){return this.getAttribute("edit-button-label")||""}get deleteButtonLabel(){return this.getAttribute("delete-button-label")||""}get isDeleteHidden(){return"true"===this.getAttribute("hide-delete")}get isCopyEnabled(){return"true"===this.getAttribute("show-copy")}get copyButtonLabel(){return this.getAttribute("copy-button-label")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.updateButtonLabel(this.editButton,this.editButtonLabel),this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel),this.updateButtonLabel(this.copyButton,this.copyButtonLabel),this.handleDeleteButtonVisibility(),this.handleCopyButtonState(),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}))),this.copyButton.addEventListener("click",()=>this.#Xt()),this.setDefaultChildren()}#Xt(){this.value&&!this.isDraggable&&navigator.clipboard&&navigator.clipboard.writeText(this.value).then(()=>{this.copyButton.classList.add("copied"),setTimeout(()=>this.copyButton.classList.remove("copied"),2e3)}).catch(()=>{})}handleCopyButtonState(){this.copyButton.classList.toggle("hidden",!this.isCopyEnabled),this.value?this.copyButton.removeAttribute("disabled"):this.copyButton.setAttribute("disabled","true")}#le(t,e){const i=document.createElement("descope-icon");i.setAttribute("src",t),i.setAttribute("src-dark",t),i.setAttribute("slot",e),this.appendChild(i)}setDefaultChildren(){this.querySelector('[slot="delete-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==","delete-icon"),this.querySelector('[slot="edit-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MDE1IDIuMDA4MTkgMy45OTIxNVYxMi4wMDgyQzIuMDA4MTkgMTIuNTM2MiAyLjQ0MDE5IDEyLjk5MjIgMi45OTIxOSAxMi45OTIySDUuNTM2MTlDNS44NDgxOSAxMy4wNDAyIDYuMTYwMTkgMTMuMDQwMiA2LjQ3MjE5IDEyLjk5MjJIMTEuMDA4MkMxMS41MzYyIDEyLjk5MjIgMTEuOTkyMiAxMi41NjAyIDExLjk5MjIgMTIuMDA4MlY3Ljc4NDE2TDEzLjkzNjIgNS42MjQxNUwxNC4wMDgyIDUuNjcyMTVWMTEuOT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HA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTYgMUg0Yy0xLjEgMC0yIC45LTIgMnYxNGgyVjNoMTJWMXptMyA0SDhjLTEuMSAwLTIgLjktMiAydjE0YzAgMS4xLjkgMiAyIDJoMTFjMS4xIDAgMi0uOSAyLTJWN2MwLTEuMS0uOS0yLTItMnptMCAxNkg4VjdoMTF2MTR6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==","copy-icon")}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text","edit-button-label","delete-button-label","copy-button-label","hide-delete","show-copy"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value||this.isDeleteHidden)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"value"===t||"placeholder"===t?this.onValueOrPlaceholderChange():"required"===t?this.onIsRequiredChange():"badge-label"===t?this.onBadgeLabelChange():"badge-tooltip-text"===t?this.onBadgeTooltipTextChange():"edit-button-label"===t?this.updateButtonLabel(this.editButton,this.editButtonLabel):"delete-button-label"===t?this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel):"copy-button-label"===t?this.updateButtonLabel(this.copyButton,this.copyButtonLabel):"show-copy"===t&&this.setDefaultCopyIcon(),"value"!==t&&"required"!==t&&"hide-delete"!==t||this.handleDeleteButtonVisibility(),"value"!==t&&"show-copy"!==t||this.handleCopyButtonState())}}const{host:fc,textFields:Ec,buttons:kc,badge:Oc,labelText:Vc,contentWrapper:Wc}={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"}},Rc=Ht(Fe({mappings:{hostWidth:{...fc,property:"width"},hostMinWidth:{...fc,property:"min-width"},hostMaxWidth:{...fc,property:"max-width"},hostDirection:[{...fc,property:"direction"},{...Ec,property:Ai.cssVarList.hostDirection},{...kc,property:Vo.cssVarList.hostDirection},{...Oc,property:Sc.cssVarList.hostDirection}],labelMinWidth:{...Vc,property:"min-width"},contentMinWidth:{...Wc,property:"min-width"},badgeMaxWidth:{...Oc,property:"max-width"},itemsGap:[{property:"gap"},{...Wc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill},{selector:()=>".check-icon",property:Lo.cssVarList.fill}]}}),Ge,He)(Ac);customElements.define(zc,Sc),customElements.define(Lc,Rc);const Uc=ee("user-auth-method");class Yc extends(Xe({componentName:Uc,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',E('\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"]:not(:empty) {\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(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.innerText=e):i&&t.removeChild(i)}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(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"fulfilled"===t?this.onFulfilledChange():"button-label"===t?this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel):"fulfilled-button-label"===t?this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel):"fulfilled-editable"===t&&this.isFulfilled?this.handleFulfilled():"unfulfilled-editable"!==t||this.isFulfilled||this.handleUnfulfilled())}}const{host:Qc,textField:Pc,buttons:Bc,badge:Zc,textWrapper:Fc,methodIconSlot:Gc}={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"]:not(:empty)'}},Hc=Ht(Fe({mappings:{hostWidth:{...Qc,property:"width"},hostMinWidth:{...Qc,property:"min-width"},hostMaxWidth:{...Qc,property:"max-width"},hostDirection:[{...Qc,property:"direction"},{...Pc,property:Ai.cssVarList.hostDirection},{...Bc,property:Vo.cssVarList.hostDirection},{...Zc,property:Sc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Fc,property:"gap"}],iconSize:[{...Gc,property:"width"},{...Gc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill}]}}),Ge,He)(Yc);customElements.define(Uc,Hc);const Jc=ee("saml-group-mappings-internal"),$c=pi({componentName:Jc,baseSelector:""}),qc=ee("saml-group-mappings"),{host:_c,groupInput:Xc,errorMessage:Kc}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},tu=Ht(Fe({mappings:{hostWidth:{..._c,property:"width"},hostDirection:{..._c,property:"direction"},groupNameInputMarginBottom:{...Xc,property:"margin-bottom"},errorMessageIcon:{...Kc,property:"background-image"},errorMessageIconSize:{...Kc,property:"background-size"},errorMessageIconPadding:{...Kc,property:"padding-inline-start"},errorMessageIconRepeat:{...Kc,property:"background-repeat"},errorMessageIconPosition:{...Kc,property:"background-position"},errorMessageFontSize:{...Kc,property:"font-size"}}}),Ge,ai({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),He,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Jc}\n tabindex="-1"\n ></${Jc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Jc),oe(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),te(this,this.inputElement,{includeAttrs:["invalid"]})}})(ti({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:qc}));customElements.define(Jc,class extends $c{static get observedAttributes(){return["invalid"].concat($c.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(t){t.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",t=>{t.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),oe(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),oe(this,this.mappingsElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","readonly","disabled","data-errormessage-pattern-mismatch"]}),_t(this.mappingsElement,this.handleMappingsInvalidChange.bind(this),{includeAttrs:["invalid"]})}get value(){return{group:this.groupInputElement.value,mappings:this.mappingsElement.value}}set value(t){t?.group&&"string"==typeof t.group&&(this.groupInputElement.value=t.group),Array.isArray(t?.mappings)&&(this.mappingsElement.value=t.mappings)}getValidity(){return this.groupInputElement.checkValidity()?this.mappingsElement.checkValidity()?{}:this.mappingsElement.validity:this.groupInputElement.validity}#de(t){if(t){if(!this.groupInputElement.checkValidity())return void this.groupInputElement.setAttribute("invalid","true");this.mappingsElement.checkValidity()||this.mappingsElement.setAttribute("invalid","true")}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"invalid"===t&&this.#de("true"===i)}}),customElements.define(qc,tu);const eu=ee("radio-button"),iu=Ht(Fe({mappings:{cursor:[{},{selector:"label"}],fontSize:[{selector:"label"},{}],labelTextColor:{selector:"label",property:"color"},fontFamily:{selector:"label"},labelFontWeight:{selector:"label",property:"font-weight"},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"}}}),ai({proxyProps:["setSelectionRange"]}),He,t=>class extends t{constructor(){super(),this.baseElement.checkValidity=()=>{}}init(){this.baseElement.addEventListener("checked-changed",t=>{this.dispatchEvent(new CustomEvent("checked-changed",{detail:t.detail},{bubbles:!0,composed:!0}))}),super.init?.(),Xt(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(ti({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:eu})),ou=ee("radio-group"),nu=Ht(Fe({mappings:{...qn,buttonsSpacing:{selector:"::part(group-field)",property:"justify-content"},buttonsRowGap:{selector:"::part(group-field)",property:"row-gap"},buttonsColumnGap:{selector:"::part(group-field)",property:"column-gap"},itemsFontFamily:{selector:()=>`::slotted(${iu.componentName})`,property:iu.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${iu.componentName})`,property:iu.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${iu.componentName})`,property:iu.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${iu.componentName})`,property:iu.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${iu.componentName})`,property:iu.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${iu.componentName}[checked="true"])`,property:iu.cssVarList.radioBackgroundColor}}}),Ge,ai({proxyProps:["setSelectionRange"]}),He,t=>class extends t{#tt=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#R;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(eu)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===eu),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.#tt?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.inputElement=this.baseElement,this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),this.renderItems(),_t(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),oe(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),Xt(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})}),_t(this,()=>{this.items.forEach(t=>{t.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(ti({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 ${De("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:ou,includeForwardProps:["value"]}));customElements.define(eu,iu),customElements.define(ou,nu);const ru=()=>!0,su=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,au=ee("scopes-list"),lu=["checkbox","switch"];class du extends(Xe({componentName:au,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",E("\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"}#ce(){return Array.from(this.shadowRoot.querySelector("div").children)}reportValidity(){this.checkValidity()}checkValidity(){return this.data.every(t=>!t.required||this.value.includes(t.id))}get value(){return this.#ce().filter(t=>t.checked).map(t=>t.getAttribute("data-id"))}set value(t=[]){this.#ce().forEach(e=>{e.checked=t.includes(e.getAttribute("data-id"))})}get variant(){const t=this.getAttribute("variant");return lu.includes(t)?t:lu[0]}}const cu=Ht(Fe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Ci.componentName,property:Ci.cssVarList.hostDirection},{selector:()=>_i.componentName,property:_i.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${Ci.componentName}[required="true"]`,property:Ci.cssVarList.inputBorderColor},{selector:`${_i.componentName}[required="true"]`,property:_i.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${Ci.componentName}[required="true"]`,property:Ci.cssVarList.inputValueTextColor},{selector:`${_i.componentName}[required="true"]`,property:_i.cssVarList.knobColor}]}}),(({itemRenderer:t=su,validateSchema:e=ru,slotName:i,rerenderAttrsList:o=[]})=>n=>class extends n{#R=[];#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.baseElement.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),this.data.forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.baseElement.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),_t(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}})({itemRenderer:({id:t,desc:e,required:i=!1},o,n)=>{const r="checkbox"===n.variant?Ci:_i;return`\n <${r.componentName}\n bordered="true"\n size=${n.size}\n label="${e}"\n data-id="${t}"\n readonly="${i||n.isReadOnly}"\n required="${i}"\n checked="true"\n ></${r.componentName}>\n`},rerenderAttrsList:["size","variant"]}),Ge,He)(du),uu=L("list-item"),pu=T(ht({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:{}}}),gt,Mt,t=>class extends t{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",E("\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)}},t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mousedown",t=>{t.preventDefault(),this.setAttribute("active","true"),window.addEventListener("mouseup",()=>this.removeAttribute("active"),{once:!0})})}})(It({componentName:uu,baseSelector:"slot"}));customElements.define(uu,pu);const hu=L("list");class gu extends(It({componentName:hu,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',E('\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()}#ue(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#pe(){this.items.forEach(t=>{let e=t;e.localName!==pu.componentName&&(e=t.querySelector(pu.componentName));const i="tiles"===this.variant?"tile":"row";e?.setAttribute("variant",i)})}init(){super.init?.(),z(this,()=>{this.#ue(),this.#pe(),this.#he()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#he(){this.items.forEach(t=>{this.isReadOnly?t.setAttribute("inert",""):t.removeAttribute("inert")})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("variant"===t?this.#pe():"readonly"===t&&this.#he())}}const Mu=T(ht({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"},maxRowItems:{property:"max-row-items"},itemsHorizontalAlign:{selector:()=>"::slotted(*)",property:"justify-self"},emptyStateTextColor:{selector:()=>'slot[name="empty-state"]',property:"color"},emptyStateTextFontFamily:{selector:()=>'slot[name="empty-state"]',property:"font-family"},emptyStateVerticalPadding:[{selector:()=>'slot[name="empty-state"]',property:"padding-top"},{selector:()=>'slot[name="empty-state"]',property:"padding-bottom"}]}}),gt,Mt)(gu);customElements.define(hu,Mu),customElements.define(au,cu);const mu=ee("third-party-app-logo");class yu extends(Xe({componentName:mu,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',E('\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 bu=">.company-logo-wrapper",Nu=">.third-party-app-logo-wrapper",Iu=Ht(Fe({mappings:{logoMaxHeight:[{selector:bu,property:"height"},{selector:Nu,property:"height"}],logoMaxWidth:[{selector:bu,property:"max-width"},{selector:Nu,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:Dr.componentName,property:Dr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:Lo.componentName,property:Lo.cssVarList.fill}}}),Ge,He)(yu);customElements.define(mu,Iu);const xu=ee("security-questions-setup"),ju=["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"],Tu=["count","questions"];class Du extends(Xe({componentName:xu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",E("\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}#ge(){const t=Array.from({length:this.count}).map((t,e)=>`\n <div class="question-wrapper">\n <descope-combo-box\n data-id="${e}"\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="${e}"\n required="true"\n bordered="true"\n minlength="2"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.comboBoxes.forEach(t=>{t.addEventListener("change",t=>{this.updateRemainingCombosData(t.target),this.getAttachedTextField(t.target).value=""}),t.data=this.data}),this.#Me(ju)}getAttachedTextField(t){const e=`descope-text-field[data-id="${t.getAttribute("data-id")}"]`;return this.baseElement.querySelector(e)}filterData(t){const e=this.data.filter(e=>e.value===t||!this.selectedQuestionIds.includes(e.value));return e}reportValidity(){return this.inputs.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return[...this.comboBoxes,...this.textFields].every(t=>t.checkValidity())}updateRemainingCombosData(t){this.comboBoxes.filter(e=>e!==t).forEach(t=>{t.data=this.filterData(t.value)})}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(xu,"Error parsing questions attribute",t),[]}}get data(){return this.questions.map(({id:t,text:e})=>({value:t,label:e}))}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(t=>t.value)}get value(){return this.comboBoxes.map(t=>({id:t.value,answer:this.getAttachedTextField(t).value}))}set value(t=[]){t.forEach((t,e)=>{const i=this.comboBoxes[e],o=this.getAttachedTextField(i);i.value=t.id,o.value=t.answer})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#Me(t){const e={question:this.comboBoxes,answer:this.textFields};t.forEach(t=>{const[i,...o]=t.split("-"),n=e[i]||this.inputs,r=e[i]?o.join("-"):t;n.forEach(e=>{this.#me(e,r,this.getAttribute(t))})})}init(){super.init?.(),_t(this,()=>{this.#ge()},{includeAttrs:Tu}),_t(this,this.#Me.bind(this),{includeAttrs:ju})}}const vu=Ht(Fe({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>To.componentName,property:To.cssVarList.hostDirection},{selector:()=>Kn.componentName,property:Kn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Ge,He)(Du);customElements.define(xu,vu);const zu=ee("security-questions-verify"),Cu=["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"],Su=["question-mode"],wu={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},Lu=[...Cu,...Su],Au=["questions"];class fu extends(Xe({componentName:zu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",E("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#ge(){const t=this.questions.map(({id:t,text:e})=>`\n <div class="question-wrapper">\n <descope-text\n data-id="${t}"\n >${e}</descope-text>\n\n <descope-text-field\n data-id="${t}"\n required="true"\n bordered="true"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.#Me(Lu),this.texts.forEach(t=>{const e=this.textFields.find(e=>e.getAttribute("data-id")===t.getAttribute("data-id"));e&&(t.onclick=e.focus.bind(e))})}reportValidity(){return this.textFields.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return this.textFields.every(t=>t.checkValidity())}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(zu,"Error parsing questions attribute",t),[]}}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(t=>({id:t.getAttribute("data-id"),answer:t.value}))}set value(t=[]){t.forEach(({id:t,answer:e})=>{const i=this.textFields.find(e=>e.getAttribute("data-id")===t);i&&(i.value=e)})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#ye(t){switch(!0){case Cu.includes(t):return this.textFields;case Su.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,wu[t]||t,this.getAttribute(t))})})}init(){super.init?.(),_t(this,()=>{this.#ge()},{includeAttrs:Au}),_t(this,this.#Me.bind(this),{includeAttrs:Lu})}}const Eu=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Ai.componentName,property:Ai.cssVarList.hostDirection},{selector:()=>Kn.componentName,property:Kn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>Ai.componentName,property:Ai.cssVarList.textAlign},questionFontSize:{selector:()=>Ai.componentName,property:Ai.cssVarList.fontSize},questionFontFamily:{selector:()=>Ai.componentName,property:Ai.cssVarList.fontFamily},questionCursor:{selector:()=>Ai.componentName,property:"cursor"},errorMessageIcon:{selector:()=>Ai.componentName,property:Ai.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>Ai.componentName,property:Ai.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>Ai.componentName,property:Ai.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>Ai.componentName,property:Ai.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>Ai.componentName,property:Ai.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>Ai.componentName,property:Ai.cssVarList.errorMessageFontSize}}}),Ge,He)(fu);customElements.define(zu,Eu);const ku="^[\\w\\.\\%\\+\\-']+@(?:[A-Za-z0-9](?:[A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$",Ou="^[\\p{L}\\p{M}\\p{N}._%+'\\-]+@(?:[\\p{L}\\p{M}\\p{N}](?:[\\p{L}\\p{M}\\p{N}\\-]*[\\p{L}\\p{M}\\p{N}])?\\.)+[\\p{L}\\p{M}][\\p{L}\\p{M}\\p{N}\\-]+$",Vu=t=>{const e=(t||"").split(/\s+/).filter(t=>t&&!["username","email","on","off"].includes(t)),i=e.indexOf("webauthn");return e.splice(-1===i?e.length:i,0,"email"),e.join(" ")},Wu=L("email-field"),Ru="email",{host:Uu,label:Yu,placeholder:Qu,requiredIndicator:Pu,inputField:Bu,input:Zu,inputMask:Fu,helperText:Gu,errorMessage:Hu,disabledPlaceholder:Ju,inputDisabled:$u,inputIcon:qu,externalInput:_u,externalInputDisabled:Xu,externalPlaceholder:Ku,externalDisabledPlaceholder:tp}={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)"}},ep=T(ht({mappings:{fontSize:[{},Uu],fontFamily:[Yu,Bu,Gu,Hu],labelFontSize:{...Yu,property:"font-size"},labelFontWeight:{...Yu,property:"font-weight"},inputValueFontWeight:[{...Zu,property:"font-weight"},{..._u,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...Ku,property:"font-weight"}],helperTextFontWeight:{...Gu,property:"font-weight"},errorMessageFontWeight:{...Hu,property:"font-weight"},labelTextColor:[{...Yu,property:"color"},{...Pu,property:"color"},{...Yu,property:"-webkit-text-fill-color"},{...Pu,property:"-webkit-text-fill-color"}],hostWidth:{...Uu,property:"width"},hostMinWidth:{...Uu,property:"min-width"},hostDirection:{...Uu,property:"direction"},inputDirection:{...Zu,property:"direction"},inputBackgroundColor:[{...Bu,property:"background-color"},{...Fu,property:"background-color"}],errorMessageTextColor:{...Hu,property:"color"},errorMessageIcon:{...Hu,property:"background-image"},errorMessageIconSize:{...Hu,property:"background-size"},errorMessageIconPadding:{...Hu,property:"padding-inline-start"},errorMessageIconRepeat:{...Hu,property:"background-repeat"},errorMessageIconPosition:{...Hu,property:"background-position"},errorMessageFontSize:{...Hu,property:"font-size"},helperTextColor:{...Gu,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Bu,property:"color"},{...$u,property:"-webkit-text-fill-color"},{...Xu,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Zu,property:"caret-color"},{..._u,property:"caret-color"}],labelRequiredIndicator:{...Pu,property:"content"},inputBorderColor:{...Bu,property:"border-color"},inputBorderWidth:{...Bu,property:"border-width"},inputBorderStyle:{...Bu,property:"border-style"},inputBorderRadius:{...Bu,property:"border-radius"},inputHeight:{...Bu,property:"height"},inputHorizontalPadding:[{...Zu,property:"padding-left"},{...Zu,property:"padding-right"},{..._u,property:"padding-left"},{..._u,property:"padding-right"}],inputOutlineColor:{...Bu,property:"outline-color"},inputOutlineStyle:{...Bu,property:"outline-style"},inputOutlineWidth:{...Bu,property:"outline-width"},inputOutlineOffset:{...Bu,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Zu,property:"text-align"},{..._u,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Ku,property:"color"},{...Qu,property:"color"},{...Ju,property:"-webkit-text-fill-color"},{...tp,property:"-webkit-text-fill-color"}],labelPosition:{...Yu,property:"position"},labelTopPosition:{...Yu,property:"top"},labelHorizontalPosition:[{...Yu,property:"left"},{...Yu,property:"right"}],inputTransformY:{...Yu,property:"transform"},inputTransition:{...Yu,property:"transition"},marginInlineStart:{...Yu,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Ku,property:"opacity"}],inputVerticalAlignment:[{...Bu,property:"align-items"},{..._u,property:"align-items"}],valueInputHeight:[{...Zu,property:"height"},{..._u,property:"height"}],valueInputMarginBottom:[{...Zu,property:"margin-bottom"},{..._u,property:"margin-bottom"}],inputIconOffset:[{...qu,property:"margin-right"},{...qu,property:"margin-left"}],inputIconSize:{...qu,property:"font-size"},inputIconColor:{...qu,property:"color"},inputTextSecurity:[{...Zu,property:"-webkit-text-security"},{...Zu,property:"text-security"},{..._u,property:"-webkit-text-security"},{..._u,property:"text-security"}]}}),gt,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),S(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.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",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),kt({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Mt,t=>class extends t{get acceptsUnicode(){return"false"!==this.getAttribute("accept-unicode")}get validatesFormat(){return"false"!==this.getAttribute("validate-format")}init(){super.init?.(),this.baseElement.setAttribute("pattern",ku),this.getAttribute("autocomplete")||this.setAttribute("autocomplete","username"),this.createExternalInput(),[this.inputElement,this.externalInput].filter(Boolean).forEach(t=>{t.addEventListener("change",this.stripSurroundingWhitespace)}),this.acceptsUnicode&&this.enableUnicode(),this.validatesFormat||this.disableFormatValidation(),this.emailVerification&&this.enableEmailVerification()}get emailVerification(){return"true"===this.getAttribute("email-verification")}enableEmailVerification(){const{baseElement:t}=this,e=t._delegateAttribute.bind(t);t._delegateAttribute=(t,i)=>e(t,"autocomplete"===t?Vu(i):i),t._delegateAttribute("autocomplete",t.autocomplete),this.externalInput?.setAttribute("autocomplete",Vu(this.getAttribute("autocomplete")))}enableUnicode(){this.baseElement.setAttribute("pattern",Ou),this.useTextType()}disableFormatValidation(){this.baseElement.removeAttribute("pattern"),this.useTextType()}useTextType(){this.baseElement._setType("text"),this.externalInput&&(this.externalInput.type="text"),this.getAttribute("inputmode")||this.setAttribute("inputmode",Ru),this.externalInput?.setAttribute("inputmode",Ru)}stripSurroundingWhitespace=t=>{const e=t.target.value.trim();e!==t.target.value&&(this.value=e,this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}})(Lt({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(${ep.cssVarList.inputOutlineWidth}) + var(${ep.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${tt("vaadin-email-field")}\n\t\t\t${$(ep.cssVarList)}\n\t\t\t${K("vaadin-email-field",ep.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:Wu}));customElements.define(Wu,ep);const ip=/[^\d\s+\-()]/,op=ee("hybrid-field"),np={shared:["label","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:["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","phone-input-type","data-errormessage-value-missing-phone"],inputBox:["restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","phone-input-type","data-errormessage-value-missing-phone"]}},rp={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"}},sp="descope-phone-field",ap=Xe({componentName:op,baseSelector:"div"}),lp=Ht(Fe({componentNameOverride:ee("input-wrapper")}),Fe({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:()=>Zs.componentName,property:Zs.cssVarList.errorMessageIcon},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Zs.componentName,property:Zs.cssVarList.errorMessageIconSize},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Zs.componentName,property:Zs.cssVarList.errorMessageIconPadding},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Zs.componentName,property:Zs.cssVarList.errorMessageIconRepeat},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Zs.componentName,property:Zs.cssVarList.errorMessageIconPosition},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Zs.componentName,property:Zs.cssVarList.errorMessageFontSize},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Zs.componentName,property:Zs.cssVarList.labelFontWeight},{selector:()=>aa.componentName,property:aa.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Zs.componentName,property:Zs.cssVarList.inputValueFontWeight},{selector:()=>aa.componentName,property:aa.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Zs.componentName,property:Zs.cssVarList.inputPlaceholderFontWeight},{selector:()=>aa.componentName,property:aa.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Zs.componentName,property:Zs.cssVarList.helperTextFontWeight},{selector:()=>aa.componentName,property:aa.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Zs.componentName,property:Zs.cssVarList.errorMessageFontWeight},{selector:()=>aa.componentName,property:aa.cssVarList.errorMessageFontWeight}]}}),Ge,He)(class extends ap{#be=!1;#Ne;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" phone-input-type="text"></descope-phone-field>\n <descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>\n </div>\n\t\t`,E("\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 t=this.phoneCountryCodeInput.countryCodes?.[0]||"";return this.getAttribute("default-code")||t}get activeInputEle(){return this.activeInput===this.emailInput?this.emailInputEle:this.phoneVariant.phoneNumberInputEle}get value(){return this.activeInput?.value||""}set value(t){this.handleActiveInput(t),setTimeout(()=>{this.activeInput.value=t})}async init(){super.init?.(),this.initInputs(),this.updateAttrs(),this.toggleInputVisibility(),await this.waitForInputs(),this.initInputEles(),this.overrideEmailInputType(),this.overrideEmailSetAttribute()}waitForInputs(){return new Promise(t=>{const e=setInterval(()=>{this.emailInputEle&&(clearInterval(e),t())})})}initInputs(){this.emailInput=this.shadowRoot.querySelector("descope-email-field"),this.phoneCountryCodeInput=this.shadowRoot.querySelector(sp),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(t=>{t.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 t=this.emailInput.setAttribute.bind(this.emailInputEle);this.emailInputEle.setAttribute=(e,i)=>("type"!==e||"email"!==i||!this.emailInput.hasAttribute("focused"))&&t(e,i)}updateAttrs(){oe(this,this.emailInput,{includeAttrs:np.email,mapAttrs:rp.email}),oe(this,this.phoneCountryCodeInput,{includeAttrs:np.phone.countryCode,mapAttrs:rp.phone}),oe(this,this.phoneInputBoxInput,{includeAttrs:np.phone.inputBox,mapAttrs:rp.phone}),this.inputs.forEach(t=>oe(this,t,{includeAttrs:np.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#Ne=this.activeInputEle.selectionStart,this.handleActiveInput(this.activeInputEle.value||this.activeInput.value)}handleActiveInput(t){const e=(t=>!!t&&!ip.test(t))(t)?this.phoneVariant:this.emailInput;this.activeInput!==e&&this.setActiveInput(e)}setActiveInput(t){const e=this.activeInputEle.value||this.activeInput.value;this.activeInput=t,this.setActiveInputValue(e),this.#be&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{const t=this.activeInputEle;t.focus();try{t.setSelectionRange?.(this.#Ne,this.#Ne)}catch{}})}#Ie(){const t=this.getAttribute("default-code"),e=t&&Zs.CountryCodes.find(e=>e.code===t);return e?.dialCode||Zs.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===sp){const t=this.phoneCountryCodeInput.countryCodeItems||this.#Ie();this.activeInput.value=`${t}-${e}`}else this.activeInput.value=e}toggleInputVisibility(){this.inputs.forEach(t=>{t!==this.activeInput?t.classList.add("hidden"):t.classList.remove("hidden")})}reportValidity(){this.#be=!0;const t=this.activeInputEle,e=t.type;return t.setAttribute("type","text"),setTimeout(()=>{t.setSelectionRange?.(t.value.length,t.value.length),t.setAttribute("type",e)}),this.activeInput.reportValidity()}checkValidity(){return this.activeInput.checkValidity()}});customElements.define(op,lp);const dp=ee("alert");class cp extends(Xe({componentName:dp,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 ',E('\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)),S(this.textComp,this,{includeAttrs:["empty"]}),z(this,this.handleChildrenChange.bind(this)),oe(this,this.textComp,{includeAttrs:["variant","full-width","link-target-blank"]})}handleChildrenChange(){this.textComp.textContent=this.textContent}handleSlotChange(){const t=this.slotEle.assignedNodes({flatten:!0});t.length&&(this.textComp.textContent=t[0]?.textContent||"")}}const{icon:up}={icon:{selector:()=>".icon"}},pp=Ht(Fe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:Zt.componentName,property:Zt.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:Zt.componentName,property:Zt.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:Zt.componentName,property:Zt.cssVarList.textAlign}],icon:[{...up,property:"content"},{...up,property:"display",fallback:"none"}],iconSize:[{...up,property:"width"},{...up,property:"height"}]}}),Fe({componentNameOverride:ee("enriched-text")}),Fe({componentNameOverride:ee("text")}),Ge,He)(cp);customElements.define(dp,pp);const hp=ee("hcaptcha"),gp=["enabled","site-key"],Mp=pi({componentName:hp,baseSelector:":host > div"}),mp=Ht(Fe({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"}]}}),Ge,He)(class extends Mp{static get observedAttributes(){return gp.concat(Mp.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"enabled"===t&&this.toggleCaptchaEles("true"===i)}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',E("\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?.(),z(this,this.updatePreview.bind(this)),this.inputElement.getValidity=null,this.inputElement.checkValidity=null}toggleCaptchaEles(t){t?(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(hp,mp);const yp=(zp={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(zp).reduce((t,e)=>{const i=zp[e];return Object.assign(t,{[e]:me(i)})},{})),bp={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"}},Np=we({fonts:bp}).fonts,Ip={colors:yp,typography:{h1:{font:Np.font1.family,weight:"900",size:"48px"},h2:{font:Np.font1.family,weight:"800",size:"38px"},h3:{font:Np.font1.family,weight:"600",size:"28px"},subtitle1:{font:Np.font2.family,weight:"500",size:"22px"},subtitle2:{font:Np.font2.family,weight:"400",size:"20px"},body1:{font:Np.font1.family,weight:"400",size:"16px"},body2:{font:Np.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:bp,direction:"ltr"},xp=(t=>Ce(t,[],t=>ze({},t,ve(t))))(Ip),jp=(t=>Object.keys(t).reduce((e,i)=>{const o=t[i];return Object.assign(e,{[i]:J(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"}}),Tp={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"}},Dp=nt({fonts:Tp}).fonts,vp={colors:jp,typography:{h1:{font:Dp.font1.family,weight:"900",size:"48px"},h2:{font:Dp.font1.family,weight:"800",size:"38px"},h3:{font:Dp.font1.family,weight:"600",size:"28px"},subtitle1:{font:Dp.font2.family,weight:"500",size:"22px"},subtitle2:{font:Dp.font2.family,weight:"400",size:"20px"},body1:{font:Dp.font1.family,weight:"400",size:"16px"},body2:{font:Dp.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:Tp,direction:"ltr"};var zp;(t=>{ot(t,[],t=>it({},t,et(t)))})(vp);const Cp=nt(vp),Sp=Vo.cssVarList,wp={primary:Cp.colors.primary,secondary:Cp.colors.secondary,success:Cp.colors.success,error:Cp.colors.error,surface:Cp.colors.surface},[Lp,Ap,fp]=st({mode:wp},Ao),Ep={...Lp,[Sp.fontFamily]:Cp.fonts.font1.family,[Sp.fontWeight]:"400",[Sp.cursor]:"pointer",[Sp.hostHeight]:"3em",[Sp.hostWidth]:"auto",[Sp.hostDirection]:Cp.direction,[Sp.borderRadius]:Cp.radius.sm,[Sp.borderWidth]:Cp.border.xs,[Sp.borderStyle]:"solid",[Sp.borderColor]:"transparent",[Sp.labelSpacing]:"0.25em",[Sp.textAlign]:"center",textAlign:{right:{[Sp.textAlign]:"right"},left:{[Sp.textAlign]:"left"},center:{[Sp.textAlign]:"center"}},[Sp.verticalPadding]:"1em",[Sp.horizontalPadding]:"0.875em",[Sp.outlineWidth]:vp.border.sm,[Sp.outlineOffset]:"0px",[Sp.outlineStyle]:"solid",[Sp.outlineColor]:"transparent",[Sp.iconSize]:"1.5em",size:{xs:{[Sp.fontSize]:"12px"},sm:{[Sp.fontSize]:"14px"},md:{[Sp.fontSize]:"16px"},lg:{[Sp.fontSize]:"18px"}},_square:{[Sp.hostHeight]:"3em",[Sp.hostWidth]:"3em",[Sp.verticalPadding]:"0"},_fullWidth:{[Sp.hostWidth]:"100%"},_loading:{[Sp.cursor]:"wait",[Sp.labelTextColor]:Ap.main},_disabled:{[fp.main]:Cp.colors.surface.light,[fp.dark]:Cp.colors.surface.dark,[fp.light]:Cp.colors.surface.light,[fp.contrast]:Cp.colors.surface.main,[Sp.iconColor]:Cp.colors.surface.main},variant:{contained:{[Sp.labelTextColor]:Ap.contrast,[Sp.backgroundColor]:Ap.main,_hover:{[Sp.backgroundColor]:Ap.dark,_loading:{[Sp.backgroundColor]:Ap.main}},_active:{[Sp.backgroundColor]:Ap.main}},outline:{[Sp.labelTextColor]:Ap.main,[Sp.borderColor]:Ap.main,_hover:{[Sp.labelTextColor]:Ap.dark,[Sp.borderColor]:Ap.dark},_active:{[Sp.labelTextColor]:Ap.main,[Sp.borderColor]:Ap.main},_disabled:{[Sp.iconColor]:Ap.main}},link:{[Sp.labelTextColor]:Ap.main,[Sp.horizontalPadding]:"0.125em",_hover:{[Sp.labelTextColor]:Ap.dark,[Sp.labelTextDecoration]:"underline"},_active:{[Sp.labelTextColor]:Ap.main},_disabled:{[Sp.iconColor]:Ap.main}}},_focused:{[Sp.outlineColor]:Ap.light}},kp={...Sp,...fp};var Op=Object.freeze({__proto__:null,default:Ep,vars:kp});const Vp=nt(vp),Wp=Ai.cssVarList,Rp={[Wp.hostDirection]:Vp.direction,[Wp.textLineHeight]:"1.35em",[Wp.textAlign]:"start",[Wp.textColor]:Vp.colors.surface.dark,variant:{h1:{[Wp.fontSize]:Vp.typography.h1.size,[Wp.fontWeight]:Vp.typography.h1.weight,[Wp.fontFamily]:Vp.typography.h1.font},h2:{[Wp.fontSize]:Vp.typography.h2.size,[Wp.fontWeight]:Vp.typography.h2.weight,[Wp.fontFamily]:Vp.typography.h2.font},h3:{[Wp.fontSize]:Vp.typography.h3.size,[Wp.fontWeight]:Vp.typography.h3.weight,[Wp.fontFamily]:Vp.typography.h3.font},subtitle1:{[Wp.fontSize]:Vp.typography.subtitle1.size,[Wp.fontWeight]:Vp.typography.subtitle1.weight,[Wp.fontFamily]:Vp.typography.subtitle1.font},subtitle2:{[Wp.fontSize]:Vp.typography.subtitle2.size,[Wp.fontWeight]:Vp.typography.subtitle2.weight,[Wp.fontFamily]:Vp.typography.subtitle2.font},body1:{[Wp.fontSize]:Vp.typography.body1.size,[Wp.fontWeight]:Vp.typography.body1.weight,[Wp.fontFamily]:Vp.typography.body1.font},body2:{[Wp.fontSize]:Vp.typography.body2.size,[Wp.fontWeight]:Vp.typography.body2.weight,[Wp.fontFamily]:Vp.typography.body2.font}},mode:{primary:{[Wp.textColor]:Vp.colors.surface.contrast},secondary:{[Wp.textColor]:Vp.colors.surface.dark},error:{[Wp.textColor]:Vp.colors.error.main},"error-dark":{[Wp.textColor]:Vp.colors.error.dark},success:{[Wp.textColor]:Vp.colors.success.main},"success-dark":{[Wp.textColor]:Vp.colors.success.dark},warning:{[Wp.textColor]:Vp.colors.warning.main},"warning-dark":{[Wp.textColor]:Vp.colors.warning.dark}},textAlign:{right:{[Wp.textAlign]:"right"},left:{[Wp.textAlign]:"left"},center:{[Wp.textAlign]:"center"}},_fullWidth:{[Wp.hostWidth]:"100%"},_italic:{[Wp.fontStyle]:"italic"},_uppercase:{[Wp.textTransform]:"uppercase"},_lowercase:{[Wp.textTransform]:"lowercase"}};var Up=Object.freeze({__proto__:null,default:Rp,vars:Wp});const Yp=nt(vp),Qp=Qi.cssVarList,Pp={[Qp.hostDirection]:Yp.direction,[Qp.cursor]:"pointer",[Qp.textColor]:Yp.colors.primary.main,textAlign:{right:{[Qp.textAlign]:"right"},left:{[Qp.textAlign]:"left"},center:{[Qp.textAlign]:"center"}},_fullWidth:{[Qp.hostWidth]:"100%"},_hover:{[Qp.textDecoration]:"underline"},mode:{secondary:{[Qp.textColor]:Yp.colors.secondary.main}}};var Bp=Object.freeze({__proto__:null,default:Pp,vars:Qp});const Zp=nt(vp),Fp=Zt.cssVarList,Gp={[Fp.hostDirection]:Zp.direction,[Fp.hostWidth]:rt(Wp.hostWidth),[Fp.textLineHeight]:rt(Wp.textLineHeight),[Fp.textColor]:rt(Wp.textColor),[Fp.textAlign]:rt(Wp.textAlign),[Fp.fontSize]:rt(Wp.fontSize),[Fp.fontWeight]:rt(Wp.fontWeight),[Fp.fontFamily]:rt(Wp.fontFamily),[Fp.linkColor]:rt(Qp.textColor),[Fp.linkTextDecoration]:"none",[Fp.linkHoverTextDecoration]:"underline",[Fp.fontWeightBold]:"900",[Fp.minWidth]:"0.25em",[Fp.minHeight]:"1.35em",[Fp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[Fp.hostDisplay]:"none"}}};var Hp=Object.freeze({__proto__:null,default:Gp,vars:Fp});const Jp=L("input-wrapper"),$p=nt(vp),[qp,_p]=st({labelTextColor:$p.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:$p.colors.surface.contrast,placeholderTextColor:$p.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:$p.colors.surface.dark,errorMessageTextColor:$p.colors.error.main,successMessageTextColor:$p.colors.success.main,borderWidth:$p.border.xs,borderRadius:$p.radius.xs,borderColor:"transparent",outlineWidth:$p.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:$p.colors.surface.main,fontFamily:$p.fonts.font1.family,direction:$p.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%"},_focused:{outlineColor:$p.colors.surface.light,_invalid:{outlineColor:$p.colors.error.main}},_bordered:{outlineWidth:$p.border.xs,borderColor:$p.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:$p.colors.error.main}},_disabled:{labelTextColor:$p.colors.surface.light,borderColor:$p.colors.surface.light,valueTextColor:$p.colors.surface.light,placeholderTextColor:$p.colors.surface.light,helperTextColor:$p.colors.surface.light,backgroundColor:$p.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},Jp),Xp=nt(vp),Kp=To.cssVarList,th={[Kp.hostWidth]:_p.width,[Kp.hostDirection]:_p.direction,[Kp.fontSize]:_p.fontSize,[Kp.fontFamily]:_p.fontFamily,[Kp.labelFontSize]:_p.labelFontSize,[Kp.labelFontWeight]:_p.labelFontWeight,[Kp.inputValueFontWeight]:_p.inputValueFontWeight,[Kp.inputPlaceholderFontWeight]:_p.inputPlaceholderFontWeight,[Kp.helperTextFontWeight]:_p.helperTextFontWeight,[Kp.errorMessageFontWeight]:_p.errorMessageFontWeight,[Kp.labelTextColor]:_p.labelTextColor,[Kp.errorMessageTextColor]:_p.errorMessageTextColor,[Kp.inputBorderColor]:_p.borderColor,[Kp.inputBorderWidth]:_p.borderWidth,[Kp.inputBorderStyle]:_p.borderStyle,[Kp.inputBorderRadius]:_p.borderRadius,[Kp.inputOutlineColor]:_p.outlineColor,[Kp.inputOutlineOffset]:_p.outlineOffset,[Kp.inputOutlineWidth]:_p.outlineWidth,[Kp.inputOutlineStyle]:_p.outlineStyle,[Kp.labelRequiredIndicator]:_p.requiredIndicator,[Kp.inputValueTextColor]:_p.valueTextColor,[Kp.inputPlaceholderTextColor]:_p.placeholderTextColor,[Kp.inputBackgroundColor]:_p.backgroundColor,[Kp.inputHorizontalPadding]:_p.horizontalPadding,[Kp.inputHeight]:_p.inputHeight,[Kp.inputDropdownButtonColor]:Xp.colors.surface.dark,[Kp.inputDropdownButtonCursor]:"pointer",[Kp.inputDropdownButtonSize]:_p.toggleButtonSize,[Kp.inputDropdownButtonOffset]:Xp.spacing.xs,[Kp.overlayItemPaddingInlineStart]:Xp.spacing.xs,[Kp.overlayItemPaddingInlineEnd]:Xp.spacing.lg,[Kp.labelPosition]:_p.labelPosition,[Kp.labelTopPosition]:_p.labelTopPosition,[Kp.labelHorizontalPosition]:_p.labelHorizontalPosition,[Kp.inputTransformY]:_p.inputTransformY,[Kp.inputTransition]:_p.inputTransition,[Kp.marginInlineStart]:_p.marginInlineStart,[Kp.placeholderOpacity]:_p.placeholderOpacity,[Kp.inputVerticalAlignment]:_p.inputVerticalAlignment,[Kp.valueInputHeight]:_p.valueInputHeight,[Kp.valueInputMarginBottom]:_p.valueInputMarginBottom,[Kp.errorMessageIcon]:_p.errorMessageIcon,[Kp.errorMessageIconSize]:_p.errorMessageIconSize,[Kp.errorMessageIconPadding]:_p.errorMessageIconPadding,[Kp.errorMessageIconRepeat]:_p.errorMessageIconRepeat,[Kp.errorMessageIconPosition]:_p.errorMessageIconPosition,[Kp.errorMessageFontSize]:_p.errorMessageFontSize,_readonly:{[Kp.inputDropdownButtonCursor]:"default"},[Kp.overlayFontSize]:_p.fontSize,[Kp.overlayFontFamily]:_p.fontFamily,[Kp.overlayCursor]:"pointer",[Kp.overlayItemBoxShadow]:"none",[Kp.overlayBackground]:_p.backgroundColor,[Kp.overlayTextColor]:_p.valueTextColor,[Kp.overlayCheckmarkDisplay]:"initial",[Kp.overlaySelectedItemBackground]:"initial",[Kp.overlaySelectedItemHoverBackground]:Xp.colors.primary.highlight,[Kp.overlaySelectedItemFocusBackground]:Xp.colors.primary.highlight,[Kp.overlayItemHoverBackground]:Xp.colors.primary.highlight,[Kp.overlayItemFocusBackground]:Xp.colors.primary.highlight,[Kp.overlay.margin]:"0",[Kp.overlay.contentHeight]:"100%",[Kp.overlay.contentOpacity]:"1",[Kp.overlay.scrollerMinHeight]:"1px",_loading:{[Kp.overlay.loaderTop]:"50%",[Kp.overlay.loaderLeft]:"50%",[Kp.overlay.loaderRight]:"auto",[Kp.overlay.loaderMargin]:"-15px 0 0 -15px",[Kp.overlay.loaderWidth]:"30px",[Kp.overlay.loaderHeight]:"30px",[Kp.overlay.loaderBorder]:"2px solid transparent",[Kp.overlay.loaderBorderColor]:`${Xp.colors.primary.highlight} ${Xp.colors.primary.highlight} ${Xp.colors.primary.main} ${Xp.colors.primary.main}`,[Kp.overlay.loaderBorderRadius]:"50%",[Kp.overlay.contentHeight]:"100px",[Kp.overlay.scrollerMinHeight]:"100px",[Kp.overlay.contentOpacity]:"0"}};var eh=Object.freeze({__proto__:null,comboBox:th,default:th,vars:Kp});const ih=nt(vp),[oh,nh]=st({shadowColor:"#00000020"},zc),{shadowColor:rh}=nh,sh=Sc.cssVarList,ah={...oh,[sh.hostWidth]:"fit-content",[sh.hostDirection]:ih.direction,[sh.textAlign]:"center",[sh.fontFamily]:ih.fonts.font1.family,[sh.fontWeight]:"400",[sh.verticalPadding]:"0.25em",[sh.horizontalPadding]:"0.5em",[sh.borderWidth]:ih.border.xs,[sh.borderRadius]:ih.radius.xs,[sh.borderColor]:"transparent",[sh.borderStyle]:"solid",_fullWidth:{[sh.hostWidth]:"100%"},size:{xs:{[sh.fontSize]:"12px"},sm:{[sh.fontSize]:"14px"},md:{[sh.fontSize]:"16px"},lg:{[sh.fontSize]:"18px"}},variant:{contained:{[sh.backgroundColor]:ih.colors.surface.main}},_shrinkToIndicator:{[sh.hostWidth]:"13px",[sh.hostHeight]:"13px",[sh.borderRadius]:"50%",[sh.fontSize]:"0",[sh.textIndent]:"-9999px"},mode:{default:{[sh.textColor]:ih.colors.surface.dark,_bordered:{[sh.borderColor]:ih.colors.surface.light}},primary:{[sh.textColor]:ih.colors.primary.main,_bordered:{[sh.borderColor]:ih.colors.primary.light}},secondary:{[sh.textColor]:ih.colors.secondary.main,_bordered:{[sh.borderColor]:ih.colors.secondary.light}},error:{[sh.textColor]:ih.colors.error.main,_bordered:{[sh.borderColor]:ih.colors.error.light}},success:{[sh.textColor]:ih.colors.success.main,_bordered:{[sh.borderColor]:ih.colors.success.light}}},shadow:{sm:{[sh.boxShadow]:`${ih.shadow.wide.sm} ${rh}, ${ih.shadow.narrow.sm} ${rh}`},md:{[sh.boxShadow]:`${ih.shadow.wide.md} ${rh}, ${ih.shadow.narrow.md} ${rh}`},lg:{[sh.boxShadow]:`${ih.shadow.wide.lg} ${rh}, ${ih.shadow.narrow.lg} ${rh}`},xl:{[sh.boxShadow]:`${ih.shadow.wide.xl} ${rh}, ${ih.shadow.narrow.xl} ${rh}`}}};var lh=Object.freeze({__proto__:null,default:ah,vars:sh});const dh=L("avatar");class ch extends(It({componentName:dh,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',E("\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"),f(this,this.avatarComponent,{includeAttrs:["display-name","img","abbr"],mapAttrs:{"display-name":"name"}});const t=this.shadowRoot.querySelector(".editableBadge");v(this,()=>{t.style.display=this.isEditable?"":"none"},{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:uh,editableBadge:ph,avatar:hh}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},gh=T(ht({mappings:{hostWidth:[{...uh,property:"width"},{...uh,property:"min-width"}],hostHeight:{...uh,property:"height"},cursor:[hh,uh],hostDirection:{...uh,property:"direction"},avatarTextColor:{...hh,property:"color"},avatarBackgroundColor:{...hh,property:"background-color"},editableIconColor:{...ph,property:"color"},editableBorderColor:{...ph,property:"border-color"},editableBackgroundColor:{...ph,property:"background-color"}}}),gt,Mt)(ch),Mh=nt(vp),mh=gh.cssVarList,yh={[mh.hostDirection]:Mh.direction,[mh.editableIconColor]:Mh.colors.surface.dark,[mh.editableBorderColor]:Mh.colors.surface.dark,[mh.editableBackgroundColor]:Mh.colors.surface.main,[mh.avatarTextColor]:Mh.colors.surface.main,[mh.avatarBackgroundColor]:Mh.colors.surface.dark,_editable:{[mh.cursor]:"pointer"},size:{xs:{[mh.hostWidth]:"30px",[mh.hostHeight]:"30px"},sm:{[mh.hostWidth]:"40px",[mh.hostHeight]:"40px"},md:{[mh.hostWidth]:"60px",[mh.hostHeight]:"60px"},lg:{[mh.hostWidth]:"98px",[mh.hostHeight]:"98px"},xl:{[mh.hostWidth]:"120px",[mh.hostHeight]:"120px"},"2xl":{[mh.hostWidth]:"140px",[mh.hostHeight]:"140px"}}},bh={...mh};var Nh=Object.freeze({__proto__:null,default:yh,vars:bh});const Ih=Lo.cssVarList;var xh=Object.freeze({__proto__:null,default:{},vars:Ih});const jh=So.cssVarList;var Th=Object.freeze({__proto__:null,default:{},vars:jh});const Dh=L("apps-list"),vh=T(ht({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:Mu.componentName,property:Mu.cssVarList.gap},maxRowItems:{selector:Mu.componentName,property:Mu.cssVarList.maxRowItems},itemsFontWeight:{selector:Ai.componentName,property:Ai.cssVarList.fontWeightOverride},itemsFontSize:{selector:Ai.componentName,property:Ai.cssVarList.fontSizeOverride},itemsTextAlign:{selector:Ai.componentName,property:Ai.cssVarList.textAlign},itemBackgroundColor:{selector:pu.componentName,property:pu.cssVarList.backgroundColor},logoBackgroundColor:{selector:gh.componentName,property:gh.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:gh.componentName,property:gh.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${pu.componentName}:hover`,property:pu.cssVarList.backgroundColor},backgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:pu.componentName,property:pu.cssVarList.borderStyleOverride},itemBorderColor:{selector:pu.componentName,property:pu.cssVarList.borderColorOverride},itemBorderWidth:{selector:pu.componentName,property:pu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:pu.componentName,property:pu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:pu.componentName,property:pu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:Ai.componentName,property:Ai.cssVarList.textAlign}]}}),Rt({itemRenderer:({name:t,icon:e,url:i},o,n)=>`\n <a ${i?`href="${i}" title="${i}"`:""} ${n.openInSameWindow?"":'target="_blank"'}>\n <descope-list-item>\n <div class="avatar-wrapper">\n <descope-avatar\n ${e?`img="${e}"`:""}\n ${t?`display-name="${t}" abbr=${V(t)}`:""}\n size="${n.logoSize||n.size}"\n ></descope-avatar>\n </div>\n <descope-text\n variant="${n.itemTextVariant}"\n mode="primary"\n >${t}</descope-text>\n </descope-list-item>\n </a>\n`,rerenderAttrsList:["size","item-text-variant","logo-size","open-in-same-window"]}),gt,Mt,t=>class extends t{get size(){return this.getAttribute("size")||"sm"}get itemTextVariant(){return this.getAttribute("item-text-variant")||"body1"}get logoSize(){return this.getAttribute("logo-size")}get openInSameWindow(){return"true"===this.getAttribute("open-in-same-window")}})(Lt({slots:["empty-state"],wrappedEleName:"descope-list",excludeAttrsSync:["tabindex","class","empty","style"],componentName:Dh,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 ${Ai.cssVarList.hostDirection}: var(${vh.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),zh=vh.cssVarList,Ch=nt(vp),Sh="400px",wh={[zh.itemsTextAlign]:"start",[zh.hostDirection]:Ch.direction,[zh.maxHeight]:Sh,[zh.itemHoverBackgroundColor]:Ch.colors.surface.highlight,_empty:{[zh.minHeight]:Sh},size:{xs:{[zh.itemsFontSize]:"14px",[zh.itemsFontWeight]:"normal"},sm:{[zh.itemsFontSize]:"14px",[zh.itemsFontWeight]:"normal"},md:{[zh.itemsFontSize]:"16px",[zh.itemsFontWeight]:"normal"},lg:{[zh.itemsFontSize]:"20px",[zh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[zh.itemVerticalPadding]:Ch.spacing.xs,[zh.itemHorizontalPadding]:Ch.spacing.xs},sm:{[zh.itemVerticalPadding]:Ch.spacing.sm,[zh.itemHorizontalPadding]:Ch.spacing.sm},md:{[zh.itemVerticalPadding]:Ch.spacing.md,[zh.itemHorizontalPadding]:Ch.spacing.md},lg:{[zh.itemVerticalPadding]:Ch.spacing.lg,[zh.itemHorizontalPadding]:Ch.spacing.lg},xl:{[zh.itemVerticalPadding]:Ch.spacing.xl,[zh.itemHorizontalPadding]:Ch.spacing.xl}}};var Lh=Object.freeze({__proto__:null,default:wh,vars:zh});const Ah=nt(vp),fh=Mu.cssVarList,[Eh,kh,Oh]=st({shadowColor:"#00000020"},hu),{shadowColor:Vh}=kh,Wh={...Eh,[fh.hostWidth]:"100%",[fh.backgroundColor]:Ah.colors.surface.main,[fh.fontFamily]:Ah.fonts.font1.family,[fh.borderColor]:Ah.colors.surface.light,[fh.borderStyle]:"solid",[fh.borderWidth]:Ah.border.xs,[fh.borderRadius]:Ah.radius.sm,[fh.gap]:Ah.spacing.md,[fh.verticalPadding]:Ah.spacing.lg,[fh.horizontalPadding]:Ah.spacing.lg,[fh.boxShadow]:`${Ah.shadow.wide.sm} ${Vh}, ${Ah.shadow.narrow.sm} ${Vh}`,[fh.maxHeight]:"100%",[fh.hostDirection]:Ah.direction,[fh.minItemsWidth]:"150px",[fh.maxRowItems]:"1000",_empty:{[fh.minHeight]:"150px",[fh.emptyStateTextColor]:Ah.colors.surface.dark,[fh.emptyStateTextFontFamily]:Ah.fonts.font1.family},variant:{tiles:{[fh.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${rt(fh.minItemsWidth)}, 100%),\n calc((100% - (${rt(fh.maxRowItems)} - 1) * ${rt(fh.gap)}) / ${rt(fh.maxRowItems)})),\n 1fr))`,[fh.maxItemsWidth]:"200px",[fh.itemsHorizontalAlign]:"center"}},gap:{xs:{[fh.gap]:Ah.spacing.xs},sm:{[fh.gap]:Ah.spacing.sm},md:{[fh.gap]:Ah.spacing.md},lg:{[fh.gap]:Ah.spacing.lg},xl:{[fh.gap]:Ah.spacing.xl}}},Rh={...fh,...Oh};var Uh=Object.freeze({__proto__:null,default:Wh,vars:Rh});const Yh=nt(vp),Qh=pu.cssVarList,Ph={[Qh.backgroundColor]:Yh.colors.surface.main,[Qh.verticalPadding]:Yh.spacing.lg,[Qh.horizontalPadding]:Yh.spacing.lg,[Qh.gap]:Yh.spacing.md,[Qh.borderStyle]:"solid",[Qh.borderWidth]:Yh.border.xs,[Qh.borderColor]:Yh.colors.surface.main,[Qh.borderRadius]:Yh.radius.sm,[Qh.cursor]:"pointer",[Qh.alignItems]:"center",[Qh.flexDirection]:"row",[Qh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Qh.alignItems]:"flex-start",[Qh.flexDirection]:"column",[Qh.borderColor]:Yh.colors.surface.light}},_hover:{[Qh.backgroundColor]:Yh.colors.surface.highlight},_active:{[Qh.backgroundColor]:Yh.colors.surface.main,[Qh.borderColor]:Yh.colors.primary.light,[Qh.outline]:`1px solid ${Yh.colors.primary.light}`}};var Bh=Object.freeze({__proto__:null,default:Ph,vars:Qh});const Zh=L("multi-select-combo-box"),{host:Fh,inputField:Gh,inputElement:Hh,placeholder:Jh,toggle:$h,clearButton:qh,label:_h,requiredIndicator:Xh,helperText:Kh,errorMessage:tg,chip:eg,chipLabel:ig,overflowChipFirstBorder:og,overflowChipSecondBorder:ng}={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"}},rg=T(ht({mappings:{hostWidth:{...Fh,property:"width"},hostDirection:{...Fh,property:"direction"},fontSize:[{},Fh],chipFontSize:{...ig,property:"font-size"},fontFamily:[_h,Jh,Gh,Kh,tg,ig],labelFontSize:{..._h,property:"font-size"},labelFontWeight:{..._h,property:"font-weight"},inputValueFontWeight:{...Gh,property:"font-weight"},inputPlaceholderFontWeight:{...Jh,property:"font-weight"},helperTextFontWeight:{...Kh,property:"font-weight"},errorMessageFontWeight:{...tg,property:"font-weight"},labelTextColor:[{..._h,property:"color"},{...Xh,property:"color"}],errorMessageTextColor:{...tg,property:"color"},errorMessageIcon:{...tg,property:"background-image"},errorMessageIconSize:{...tg,property:"background-size"},errorMessageIconPadding:{...tg,property:"padding-inline-start"},errorMessageIconRepeat:{...tg,property:"background-repeat"},errorMessageIconPosition:{...tg,property:"background-position"},errorMessageFontSize:{...tg,property:"font-size"},inputHeight:{...Gh,property:"min-height"},inputBackgroundColor:{...Gh,property:"background-color"},inputBorderColor:{...Gh,property:"border-color"},inputBorderWidth:{...Gh,property:"border-width"},inputBorderStyle:{...Gh,property:"border-style"},inputBorderRadius:{...Gh,property:"border-radius"},labelRequiredIndicator:{...Xh,property:"content"},inputValueTextColor:{...Gh,property:"color"},inputPlaceholderTextColor:{...Jh,property:"color"},inputDropdownButtonCursor:[{...$h,property:"cursor"},{...qh,property:"cursor"}],inputDropdownButtonColor:[{...$h,property:"color"},{...qh,property:"color"}],inputDropdownButtonSize:[{...$h,property:"font-size"},{...qh,property:"font-size"}],inputDropdownButtonOffset:[{...$h,property:"margin-right"},{...$h,property:"margin-left"}],inputOutlineColor:{...Gh,property:"outline-color"},inputOutlineWidth:{...Gh,property:"outline-width"},inputOutlineStyle:{...Gh,property:"outline-style"},inputOutlineOffset:{...Gh,property:"outline-offset"},inputHorizontalPadding:[{...Hh,property:"padding-left"},{...Hh,property:"padding-right"},{...Gh,property:"padding-inline-start"}],inputVerticalPadding:[{...Gh,property:"padding-top"},{...Gh,property:"padding-bottom"}],chipTextColor:{...ig,property:"color"},chipBackgroundColor:[{...eg,property:"background-color"},{...og,property:"border-color"},{...ng,property:"border-color"}],labelPosition:{..._h,property:"position"},labelTopPosition:{..._h,property:"top"},labelLeftPosition:{..._h,property:"left"},labelHorizontalPosition:[{..._h,property:"left"},{..._h,property:"right"}],inputTransformY:{..._h,property:"transform"},inputTransition:{..._h,property:"transition"},marginInlineStart:{..._h,property:"margin-inline-start"},placeholderOpacity:{...Jh,property:"opacity"},inputVerticalAlignment:{...Gh,property:"align-items"},overlayBackground:{property:()=>rg.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>rg.cssVarList.overlay.textColor},overlayBorder:{property:()=>rg.cssVarList.overlay.border},overlayFontSize:{property:()=>rg.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>rg.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>rg.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>rg.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>rg.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>rg.cssVarList.overlay.itemPaddingInlineEnd}}}),gt,Ot({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"]}}),kt({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),jt,Mt,t=>class extends t{static get observedAttributes(){return["readonly"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#R;#xe=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,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(t){const e=Array.isArray(t);return e||console.error("data and default-values must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}#je(){if(this.#R)return!0;const t=this.getAttribute("data");if(!t)return!1;try{return Array.isArray(JSON.parse(t))}catch{return!1}}renderItems(){const t=this.getItemsTemplate();t?this.innerHTML=t:this.#je()&&(this.innerHTML="")}updateSelectedItems(){const t=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[];t.length>0&&(this.value=t),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#Te(t){return Array.from(new Map(t.map(t=>[t.getAttribute("data-id"),t])).values())}#et(){const t=Array.from(this.children),e=this.#Te(t);t.length?(this.removeAttribute("has-no-options"),e.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#De(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",t=>{const e=this.#tt({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,t.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const t=new RegExp(this.pattern);if(this.value.some(e=>!t.test(e)))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 t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#De(),this.renderItems(),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),f(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#ve(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#ve(){this.#xe=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter(e=>t.includes(e["data-id"]));if(this.allowCustomValues){const i=e?.map(t=>t.getAttribute("data-id"))||[],o=t.filter(t=>!i.includes(t));if(o.length){const e=o.reduce((t,e)=>t+this.#tt({label:e,displayName:e,value:e}),"");return this.innerHTML+=e,void setTimeout(()=>{this.value=t},0)}}const i=e?.map(t=>t.getAttribute("data-id"))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const i=t.slice().sort(),o=e.slice().sort();for(let t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0})(this.#xe,i)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#xe}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i&&"true"===i)}onReadOnlyChange(t){t?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",t):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}})(Lt({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${$(rg.cssVarList)}\n\t\t${X("vaadin-multi-select-combo-box")}\n\t\t${_("vaadin-multi-select-combo-box")}\n\t\t${q("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 ${tt("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:Zh,includeForwardProps:["items","renderer","selectedItems"]})),sg=L("multi-line-mappings"),ag=It({componentName:sg}),lg=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),dg=t=>[...new Set(t.map(lg).filter(Boolean))],cg=t=>{const e=lg(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},ug=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(cg).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},pg=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),hg={selector:()=>":host"},gg={selector:".row"},Mg={selector:".add-action"},mg=T(ht({mappings:{hostWidth:{...hg,property:"width"},hostDirection:[{...hg,property:"direction"},{selector:rg.componentName,property:rg.cssVarList.hostDirection},{selector:Vo.componentName,property:Vo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...gg,property:"gap"},rowAlignItems:{...gg,property:"align-items"},rowWrap:{...gg,property:"flex-wrap"},addActionJustifyContent:{...Mg,property:"justify-content"},addActionMarginTop:{...Mg,property:"margin-top"}}}),gt)(class extends ag{static get observedAttributes(){return["data","max-rows","size","disabled","readonly","first-value-key","second-value-key","first-label","second-label","first-placeholder","second-placeholder","full-width","merge-rows"]}#ze=[{firstValues:[],secondValues:[]}];#Ce=null;#Se=[];#we={};constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="rows"></div>\n <div class="add-action">\n <descope-button\n class="add-button"\n variant="link"\n mode="primary"\n >\n <slot name="add-button-content">Add line</slot>\n </descope-button>\n </div>\n </div>\n ',E("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n max-width: 100%;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows > .row {\n display: flex;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n align-items: flex-end;\n }\n\n .row descope-multi-select-combo-box {\n flex: 1 1 0;\n box-sizing: border-box;\n }\n\n .row .remove-button {\n flex: 0 0 auto;\n align-self: flex-end;\n }\n\n .row:only-child .remove-button {\n display: none;\n pointer-events: none;\n }\n\n .add-action {\n display: flex;\n }\n ",this),this.rowsElement=this.shadowRoot.querySelector(".rows"),this.addButtonElement=this.shadowRoot.querySelector(".add-button")}get size(){return this.getAttribute("size")||"md"}get firstValueKey(){return this.getAttribute("first-value-key")||"firstValues"}get secondValueKey(){return this.getAttribute("second-value-key")||"secondValues"}get firstLabel(){return this.getAttribute("first-label")||""}get secondLabel(){return this.getAttribute("second-label")||""}get firstPlaceholder(){return this.getAttribute("first-placeholder")||""}get secondPlaceholder(){return this.getAttribute("second-placeholder")||""}get disabled(){return"true"===this.getAttribute("disabled")}get readonly(){return"true"===this.getAttribute("readonly")}get mergeRows(){return"true"===this.getAttribute("merge-rows")}get maxRows(){const t=Number(this.getAttribute("max-rows"));return Number.isFinite(t)&&t>0?t:void 0}get data(){return this.#we}get value(){return this.#ze.filter(t=>t.firstValues.length>0||t.secondValues.length>0).flatMap(t=>(t.firstValues.length?t.firstValues:[""]).map(e=>({[this.firstValueKey]:e,[this.secondValueKey]:[...t.secondValues]})))}set value(t){this.#Ce=t,this.#ze=this.#Le(t),this.#Ae(),this.#fe()}#Ee(t){const e=((t,e,i="unknown")=>{if("string"!=typeof t||!t?.trim())return e;try{return JSON.parse(t)}catch(t){return console.error(`[descope-multi-line-mappings] Failed to parse JSON from "${i}"`,t),e}})(t,{},"data attribute"),i=e&&"object"==typeof e&&!Array.isArray(e)?e:{};this.#Se=Object.entries(i).map(([t,e])=>{const i=String(t),o=null!=e&&"object"==typeof e&&!Array.isArray(e),n=o?e.options??[]:e;return{value:i,label:o&&null!=e.label?String(e.label):i,options:ug(n)}}),this.#we=Object.fromEntries(this.#Se.map(({value:t,options:e})=>[t,e]))}init(){super.init?.(),this.#ke(),this.addButtonElement.addEventListener("click",()=>this.#Oe()),this.#fe()}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("data"===t)return this.#Ee(i),this.#Ae(),void this.#fe();if("size"===t)return[...this.#Ve(),...this.#We()].forEach(t=>t.setAttribute("size",this.size)),this.#ke(),void this.#Re();if(["disabled","readonly"].includes(t))return this.#Ve().forEach(t=>{t[this.disabled?"setAttribute":"removeAttribute"]("disabled","true"),t[this.readonly?"setAttribute":"removeAttribute"]("readonly","true")}),this.#We().forEach(t=>t[this.disabled||this.readonly?"setAttribute":"removeAttribute"]("disabled","true")),void this.#Re();if(["first-label","second-label"].includes(t)){const e="first-label"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("label",i):o?.removeAttribute("label")})}if(["first-placeholder","second-placeholder"].includes(t)){const e="first-placeholder"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("placeholder",i):o?.removeAttribute("placeholder")})}"max-rows"===t&&this.#Re(),"merge-rows"===t&&null!==this.#Ce&&(this.#ze=this.#Le(this.#Ce),this.#Ae(),this.#fe())}}#Ve(){return Array.from(this.rowsElement.querySelectorAll("descope-multi-select-combo-box"))}#We(){return Array.from(this.rowsElement.querySelectorAll(".remove-button"))}#Oe(){if(this.disabled||this.readonly||this.#Ue())return;const t={firstValues:[],secondValues:[]};this.#ze=[...this.#ze,t],this.rowsElement.append(this.#Ye(t)),this.#Re()}#Le(t){if(!Array.isArray(t)||!t.length)return[{firstValues:[],secondValues:[]}];let e=t.map(t=>{const e=t?.[this.firstValueKey];return{firstValues:null!=e&&""!==String(e)?[String(e)]:[],secondValues:dg(t?.[this.secondValueKey]??[])}});if(this.mergeRows){const t=new Map;for(const i of e){const e=[...i.secondValues].sort().join("\0");t.has(e)?t.get(e).firstValues.push(...i.firstValues):t.set(e,{firstValues:[...i.firstValues],secondValues:i.secondValues})}e=[...t.values()]}return e}#Ae(){const t=new Set(this.#Se.map(t=>t.value));this.#ze=this.#ze.map(e=>{const i=e.firstValues.filter(e=>t.has(e)),o=this.#Qe(i),n=new Set(o.map(t=>t.value));return{firstValues:i,secondValues:e.secondValues.filter(t=>n.has(t))}})}#Qe(t){const e=t.length?t.map(t=>this.#we[t]||[]).filter(t=>t.length):Object.values(this.#we).filter(t=>t.length);if(!e.length||t.length&&e.length!==t.length)return[];if(1===e.length)return e[0];const[i,...o]=e,n=new Set(i.map(t=>t.value));for(const t of o){const e=new Set(t.map(t=>t.value));for(const t of n)e.has(t)||n.delete(t)}return i.filter(t=>n.has(t.value))}#Pe({getRowIndex:t,type:e,label:i,placeholder:o,options:n,selectedValues:r}){const s=document.createElement("descope-multi-select-combo-box");return s.className=`combo ${e}-combo`,s.setAttribute("size",this.size),s.setAttribute("bordered","true"),s.setAttribute("item-label-path","data-name"),s.setAttribute("item-value-path","data-id"),i&&s.setAttribute("label",i),o&&s.setAttribute("placeholder",o),this.disabled&&s.setAttribute("disabled","true"),this.readonly&&s.setAttribute("readonly","true"),s.data=n,this.#Be(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Ze({rowIndex:i,type:e,selectedValues:dg(s.value||[])})}),s}#Be(t,e){t.__descopeSyncingSelection=!0,Promise.resolve().then(()=>{const i=new Set(e||[]);t.selectedItems=(t.items||[]).filter(t=>i.has(t["data-id"]||t.getAttribute?.("data-id"))),t.__descopeSyncingSelection=!1})}#Fe(t){const e=document.createElement("descope-button");return e.className="remove-button",e.setAttribute("variant","link"),e.setAttribute("mode","primary"),e.setAttribute("size",this.size),e.setAttribute("aria-label","Remove row"),e.innerHTML='<vaadin-icon icon="vaadin:minus"></vaadin-icon>',(this.disabled||this.readonly)&&e.setAttribute("disabled","true"),e.addEventListener("click",()=>{const e=t();-1!==e&&this.#Ge(e)}),e}#fe(){this.rowsElement.innerHTML="",this.#ze.forEach(t=>{this.rowsElement.append(this.#Ye(t))}),this.#Re()}#Ye(t){const e=document.createElement("div");e.className="row";const i=()=>Array.from(this.rowsElement.children).indexOf(e),o=this.#Pe({getRowIndex:i,type:"first",label:this.firstLabel,placeholder:this.firstPlaceholder,options:this.#Se.map(({value:t,label:e})=>({value:t,label:e})),selectedValues:t.firstValues}),n=this.#Qe(t.firstValues),r=this.#Pe({getRowIndex:i,type:"second",label:this.secondLabel,placeholder:this.secondPlaceholder,options:n,selectedValues:t.secondValues});return e.append(o,r,this.#Fe(i)),e}#He(t){const e=this.#ze[t];if(!e)return;const i=this.rowsElement.children[t],o=i?.querySelector(".second-combo");if(!o)return void this.#fe();const n=this.#Qe(e.firstValues);o.data=n,this.#Be(o,e.secondValues)}#ke(){this.addButtonElement.setAttribute("size",this.size)}#Re(){this.disabled||this.readonly||this.#Ue()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#Ue(){return Number.isFinite(this.maxRows)&&this.#ze.length>=this.maxRows}#Je(t){this.rowsElement.children[t]?.remove()}#Ze({rowIndex:t,type:e,selectedValues:i}){if(this.disabled||this.readonly)return;const o=this.#ze[t];if(o){if("first"===e){const e=this.#Qe(i),n=new Set(e.map(t=>t.value)),r=o.secondValues.filter(t=>n.has(t));if(pg(o.firstValues,i)&&pg(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}pg(o.secondValues,i)||(this.#ze[t]={...o,secondValues:i},this.#$e())}}#Ge(t){if(this.disabled||this.readonly||this.#ze.length<=1)return;const e=this.#ze[t];this.#ze=this.#ze.filter((e,i)=>i!==t),this.#Je(t),this.#Re(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#$e()}#$e(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}),yg=mg.cssVarList,bg={[yg.hostDirection]:_p.direction,[yg.rowsGap]:vp.spacing.sm,[yg.rowGap]:vp.spacing.sm,[yg.rowAlignItems]:"flex-end",[yg.rowWrap]:"nowrap",[yg.addActionJustifyContent]:"flex-start",[yg.addActionMarginTop]:vp.spacing.xs,_fullWidth:{[yg.hostWidth]:"100%"}};var Ng=Object.freeze({__proto__:null,default:bg,vars:yg});const Ig=nt(vp),xg=rg.cssVarList,jg={[xg.hostWidth]:_p.width,[xg.hostDirection]:_p.direction,[xg.fontSize]:_p.fontSize,[xg.fontFamily]:_p.fontFamily,[xg.labelFontSize]:_p.labelFontSize,[xg.labelFontWeight]:_p.labelFontWeight,[xg.inputValueFontWeight]:_p.inputValueFontWeight,[xg.inputPlaceholderFontWeight]:_p.inputPlaceholderFontWeight,[xg.helperTextFontWeight]:_p.helperTextFontWeight,[xg.errorMessageFontWeight]:_p.errorMessageFontWeight,[xg.labelTextColor]:_p.labelTextColor,[xg.errorMessageTextColor]:_p.errorMessageTextColor,[xg.inputBorderColor]:_p.borderColor,[xg.inputBorderWidth]:_p.borderWidth,[xg.inputBorderStyle]:_p.borderStyle,[xg.inputBorderRadius]:_p.borderRadius,[xg.inputOutlineColor]:_p.outlineColor,[xg.inputOutlineOffset]:_p.outlineOffset,[xg.inputOutlineWidth]:_p.outlineWidth,[xg.inputOutlineStyle]:_p.outlineStyle,[xg.labelRequiredIndicator]:_p.requiredIndicator,[xg.inputValueTextColor]:_p.valueTextColor,[xg.inputPlaceholderTextColor]:_p.placeholderTextColor,[xg.inputBackgroundColor]:_p.backgroundColor,[xg.inputHorizontalPadding]:_p.horizontalPadding,[xg.inputVerticalPadding]:_p.verticalPadding,[xg.inputHeight]:_p.inputHeight,[xg.inputDropdownButtonColor]:Ig.colors.surface.dark,[xg.inputDropdownButtonCursor]:"pointer",[xg.inputDropdownButtonSize]:_p.toggleButtonSize,[xg.inputDropdownButtonOffset]:Ig.spacing.xs,[xg.overlayItemPaddingInlineStart]:Ig.spacing.xs,[xg.overlayItemPaddingInlineEnd]:Ig.spacing.lg,[xg.chipFontSize]:_p.chipFontSize,[xg.chipTextColor]:Ig.colors.surface.contrast,[xg.chipBackgroundColor]:Ig.colors.surface.light,[xg.labelPosition]:_p.labelPosition,[xg.labelTopPosition]:_p.labelTopPosition,[xg.labelLeftPosition]:_p.labelLeftPosition,[xg.labelHorizontalPosition]:_p.labelHorizontalPosition,[xg.inputTransformY]:_p.inputTransformY,[xg.inputTransition]:_p.inputTransition,[xg.marginInlineStart]:_p.marginInlineStart,[xg.placeholderOpacity]:_p.placeholderOpacity,[xg.inputVerticalAlignment]:_p.inputVerticalAlignment,[xg.errorMessageIcon]:_p.errorMessageIcon,[xg.errorMessageIconSize]:_p.errorMessageIconSize,[xg.errorMessageIconPadding]:_p.errorMessageIconPadding,[xg.errorMessageIconRepeat]:_p.errorMessageIconRepeat,[xg.errorMessageIconPosition]:_p.errorMessageIconPosition,[xg.errorMessageFontSize]:_p.errorMessageFontSize,labelType:{floating:{[xg.inputHorizontalPadding]:"0.25em",_hasValue:{[xg.inputHorizontalPadding]:"0.45em"}}},_readonly:{[xg.inputDropdownButtonCursor]:"default"},[xg.overlayFontSize]:_p.fontSize,[xg.overlayFontFamily]:_p.fontFamily,[xg.overlayCursor]:"pointer",[xg.overlayItemBoxShadow]:"none",[xg.overlayBackground]:_p.backgroundColor,[xg.overlayTextColor]:_p.valueTextColor,[xg.overlay.minHeight]:"400px",[xg.overlay.margin]:"0"};var Tg=Object.freeze({__proto__:null,default:jg,multiSelectComboBox:jg,vars:xg});const Dg=L("autocomplete-field-internal"),vg=Ct({componentName:Dg,baseSelector:""}),zg=[],Cg="DESCOPE_INVALID_OPTION",Sg=L("autocomplete-field"),{host:wg}={host:{selector:()=>":host"}},Lg=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...wg,property:"width"},hostDirection:{...wg,property:"direction"},fontSize:{...wg},checkmarkDisplay:{selector:To.componentName,property:To.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:To.componentName,property:To.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:To.componentName,property:To.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:To.componentName,property:To.cssVarList.overlayItemHoverBackground}}}),gt,kt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Mt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Dg}\n tabindex="-1"\n ></${Dg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Dg),f(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"]}),S(this,this.inputElement,{includeAttrs:["invalid"]}),this.inputElement.fetchResults=this.fetchResults,this.setDefaultValue()}set fetchResults(t){this.inputElement.fetchResults=t}})(Lt({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:Sg})),Ag=Lg.cssVarList,fg=nt(vp),Eg={[Ag.hostWidth]:_p.width,[Ag.hostDirection]:_p.direction,[Ag.fontSize]:_p.fontSize,[Ag.checkmarkDisplay]:"none",[Ag.itemPaddingInlineStart]:fg.spacing.lg,[Ag.itemPaddingInlineEnd]:fg.spacing.lg,[Ag.selectedItemBackground]:fg.colors.primary.light,[Ag.selectedItemHoverBackground]:fg.colors.primary.light,[Ag.selectedItemFocusBackground]:fg.colors.primary.light,[Ag.itemHoverBackground]:fg.colors.primary.highlight,_fullWidth:{[Ag.hostWidth]:"100%"}};var kg=Object.freeze({__proto__:null,default:Eg,vars:Ag});class Og extends(wt()){#qe=null;#_e=null;constructor(t){super(t),this.#_e=this.#Xe()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#Xe(){const t=this.getAttribute("public-api-key");if(!this.#qe&&t)try{(t=>{var e,i,o,n,r,s,a,l,d,c,u,p,h;window.google?.maps||(e={key:t},r="The Google Maps JavaScript API",s="google",a="importLibrary",l="__ib__",d=document,c=window,u=(c=c[s]||(c[s]={})).maps||(c.maps={}),p=new Set,h=new URLSearchParams,u[a]?console.warn(r+" only loads once. Ignoring:",e):u[a]=(t,...c)=>p.add(t)&&(i||(i=new Promise(async(t,a)=>{for(n in await(o=d.createElement("script")),h.set("libraries",[...p]+""),e)h.set(n.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),e[n]);h.set("callback",s+".maps."+l),o.src=`https://maps.${s}apis.com/maps/api/js?`+h,u[l]=t,o.onerror=()=>i=a(Error(r+" could not load.")),o.nonce=d.querySelector("script[nonce]")?.nonce||"",d.head.append(o)}))).then(()=>u[a](t,...c)))})(t);const{AutocompleteSuggestion:e}=await google.maps.importLibrary("places");this.#qe=e}catch(t){throw console.error("Failed to initialize Google Maps Autocomplete service:",t),t}}async _fetchResults(t){if(!t?.trim())return{results:[]};try{await this.#_e;const e={input:t};this.getOptionalParams().forEach(({attribute:t,key:i,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&(e[i]="includedPrimaryTypes"===i?n.split(",").map(t=>t.trim()).filter(Boolean):n)});const{suggestions:i}=await this.#qe.fetchAutocompleteSuggestions(e);return this.#Ke(i)}catch(t){return console.error("Google Maps Places Autocomplete failed:",t),{results:[],error:St}}}#Ke(t){return t?.length?{results:t.map(t=>{const e=t.placePrediction;return{id:e.placeId,label:e.text.text,value:e.text.text}})}:{results:[]}}}class Vg extends(wt()){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(t){if(!t?.trim())return{results:[]};const e=this.getAttribute("public-api-key"),i=new URLSearchParams({query:t.trim()});this.getOptionalParams().forEach(({attribute:t,key:e,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&("layers"===e||"countryCode"===e?i.append(e,n.split(",").map(t=>t.trim()).filter(Boolean).join(",")):i.append(e,n))});try{const t=await fetch(`https://api.radar.io/v1/search/autocomplete?${i.toString()}`,{headers:{Authorization:e}});if(!t.ok)throw new Error(`Radar API returned ${t.status}`);const o=await t.json();return this.#Ke(o)}catch(t){return console.error("Radar Places Autocomplete failed:",t),{results:[],error:St}}}#Ke(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const Wg=L("address-field-internal"),Rg="google-maps-places",Ug="radar",Yg={[Rg]:Og,[Ug]:Vg},Qg=Ct({componentName:Wg,baseSelector:""}),Pg=["public-api-key"],Bg=[...Pg],Zg=T((({connectorClasses:t})=>e=>class extends e{#ti=t;static get observedAttributes(){return[...e.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#ti}set connectorClasses(t){this.#ti=t}get connectorTemplate(){return this.getAttribute("connector-template")}initializeConnector(){const t=this.connectorTemplate;if(!this.connectorClasses[t])return;const e=this.connectorClasses[t];this.connector=new e(this.getAttribute.bind(this))}async fetchConnectorResults(t){if(!this.connector)return console.error(`No connector initialized for the field with template: ${this.connectorTemplate}`),{results:[]};const{results:e,error:i}=await this.connector.fetch(t);return i?{results:[],error:i}:{results:e.map(({label:t,value:e})=>({label:t,value:e}))}}init(){super.init?.(),this.initializeConnector()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"connector-template"===t&&this.initializeConnector()}})({connectorClasses:Yg}))(class extends Qg{static get observedAttributes(){return[].concat(Qg.observedAttributes||[],Bg)}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(t){this.autocompleteField.value=t}focus(){this.autocompleteField.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.autocompleteField.focus()}),super.init?.(),this.initAutocomplete()}initAutocomplete(){f(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"]}),S(this,this.autocompleteField,{includeAttrs:["invalid"]}),this.autocompleteField.fetchResults=this.fetchConnectorResults.bind(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Pg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),Fg=L("address-field"),{host:Gg}={host:{selector:()=>":host"}},Hg=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...Gg,property:"width"},hostDirection:{...Gg,property:"direction"}}}),gt,kt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Mt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(t){this.inputElement.connectorClasses=t}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Wg}\n tabindex="-1"\n ></${Wg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Wg),f(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"]}),S(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValue()}})(Lt({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 ${Wg} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Wg} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Fg})),Jg=Hg.cssVarList,$g={[Jg.hostWidth]:_p.width,[Jg.hostDirection]:_p.direction,_fullWidth:{[Jg.hostWidth]:"100%"}};var qg=Object.freeze({__proto__:null,default:$g,vars:Jg});const _g=(t,e=2)=>String(t).padStart(e,"0"),Xg=L("timer"),Kg=["seconds","hide-icon","paused"],tM=It({componentName:Xg,baseSelector:":host > .wrapper"}),{host:eM,icon:iM,timer:oM}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},nM=T(ht({mappings:{fontSize:{},iconSize:[{...iM,property:"width"},{...iM,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...oM},lineHeight:{...oM},textColor:{...oM,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...eM,property:"width"},hostDirection:{...eM,property:"direction"},iconColor:{...iM,property:Lo.cssVarList.fill}}}),gt,Mt)(class extends tM{#ei=0;#ii;static get observedAttributes(){return Kg.concat(tM.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',E("\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 t=this.getAttribute("seconds"),e=1e3*parseInt(t||0,10);return Math.max(0,e)}get isPaused(){return"true"===this.getAttribute("paused")}init(){super.init?.(),this.#ei=this.seconds}startInterval(){this.#ei?this.#ii=setInterval(()=>{this.#oi(),this.#ei||this.stop(),this.#ni(this.#ei)},1e3):this.stop()}stopInterval(){clearInterval(this.#ii)}#oi(){this.#ei=this.#ei-1e3}reset(){this.#ei=this.seconds,this.#ni(this.#ei),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#ei=0,this.#ni(this.#ei),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#ni(t){this.timer.textContent=((t=0)=>{const e=Math.floor(t/1e3),i=Math.floor(e/3600),o=Math.floor(e%3600/60),n=e%60;return[...i?[_g(i)]:[],_g(o),_g(n)].join(":")})(t)}#ri(t){this.icon.classList.toggle("hidden",t)}#si(t){setTimeout(()=>{t?this.pause():this.#ii||this.resume()})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("seconds"===t&&this.reset(),"hide-icon"===t&&this.#ri("true"===i),"paused"===t&&this.#si("true"===i))}}),rM=nt(vp),sM=nM.cssVarList,aM={[sM.hostDirection]:rM.direction,[sM.gap]:"0.25em",[sM.fontFamily]:rM.fonts.font1.family,[sM.minHeight]:"1.5em",[sM.lineHeight]:"1em",[sM.fontWeight]:rM.fonts.font1.fontWeight,[sM.textColor]:rM.colors.surface.contrast,[sM.iconColor]:rM.colors.surface.contrast,[sM.iconSize]:"1em",size:{xs:{[sM.fontSize]:"12px"},sm:{[sM.fontSize]:"14px"},md:{[sM.fontSize]:"16px"},lg:{[sM.fontSize]:"18px"}},textAlign:{right:{[sM.textAlign]:"right"},left:{[sM.textAlign]:"left"},center:{[sM.textAlign]:"center"}},_fullWidth:{[sM.hostWidth]:"100%"}};var lM=Object.freeze({__proto__:null,default:aM,vars:sM});const dM=L("timer-button"),cM=["button-variant","button-mode","size","text-align","full-width"],uM={"button-variant":"variant","button-mode":"mode"},pM=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],hM={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},gM=It({componentName:dM,baseSelector:":host > div"}),{host:MM,nestedTimer:mM,nestedButton:yM,timerInsideNotReversed:bM,timerInsideReversed:NM}={host:{selector:()=>":host"},nestedTimer:{selector:()=>':host([timer-inside="true"]) .timer'},nestedButton:{selector:()=>':host([timer-inside="true"]) .button'},timerInsideNotReversed:{selector:()=>':host([timer-inside="true"]:not([timer-position="end"])) .timer'},timerInsideReversed:{selector:()=>':host([timer-inside="true"][timer-position="end"]) .timer'}},IM=T(ht({mappings:{gap:{},flexDirection:{},hostWidth:{...MM,property:"width"},hostDirection:{...MM,property:"direction"},timerTextColor:{...mM,property:nM.cssVarList.textColor},timerIconColor:{...mM,property:nM.cssVarList.iconColor},timerHostWidth:{...mM,property:nM.cssVarList.hostWidth},buttonLabelSpacing:{...yM,property:Vo.cssVarList.labelSpacing},timerInsideGapEnd:{...bM,property:"margin-inline-end"},timerInsideGapStart:{...NM,property:"margin-inline-start"}}}),gt,Mt)(class extends gM{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',E('\n :host {\n display: inline-flex;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n }\n /* allow timer to grow along the main axis in the wrapper flex container */\n :host(:not([timer-inside="true"])) .timer {\n flex: 1;\n }\n :host([timer-inside="true"]) .timer {\n flex: 0 0 auto;\n }\n ',this),this.wrapper=this.shadowRoot.querySelector(".wrapper"),this.timer=this.shadowRoot.querySelector(".timer"),this.button=this.shadowRoot.querySelector(".button"),this.forwardingSlot=this.shadowRoot.querySelector(".button slot"),this.timer.addEventListener("timer-started",()=>this.onTimerStarted()),this.timer.addEventListener("timer-ended",()=>this.onTimerEnded()),this.syncTimerPlacement(),this.button.addEventListener("click",this.onClick.bind(this))}static get observedAttributes(){return[...super.observedAttributes||[],"timer-inside","timer-position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"timer-inside"!==t&&"timer-position"!==t||this.syncTimerPlacement()}get#ai(){return"true"===this.getAttribute("timer-inside")}get#li(){return"end"===this.getAttribute("timer-position")}syncTimerPlacement(){this.#ai?this.#di(this.#li):this.#ci()}#di(t){t?this.timer.previousSibling!==this.forwardingSlot&&this.button.appendChild(this.timer):this.timer.nextSibling!==this.forwardingSlot&&this.button.insertBefore(this.timer,this.forwardingSlot)}#ci(){this.timer.parentElement!==this.wrapper&&this.wrapper.insertBefore(this.timer,this.button)}set onclick(t){this.button.onclick=t}init(){super.init?.(),f(this,this.button,{includeAttrs:cM,mapAttrs:uM}),f(this,this.timer,{includeAttrs:pM,mapAttrs:hM}),this.button.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}onTimerStarted(){this.toggleButtonDisable(!0)}onTimerEnded(){this.toggleButtonDisable(!1)}onClick(){this.timer.reset()}toggleButtonDisable(t){setTimeout(()=>{t?this.button.setAttribute("disabled","true"):this.button.removeAttribute("disabled")})}}),xM=nt(vp),jM=IM.cssVarList,TM={[jM.gap]:xM.spacing.sm,[jM.flexDirection]:"column",_horizontal:{[jM.flexDirection]:"row",timerPosition:{end:{[jM.flexDirection]:"row-reverse"}}},timerPosition:{end:{[jM.flexDirection]:"column-reverse"}},_fullWidth:{[jM.hostWidth]:"100%"},_timerInside:{[jM.timerTextColor]:"currentColor",[jM.timerIconColor]:"currentColor",[jM.timerHostWidth]:"auto",[jM.buttonLabelSpacing]:"0",[jM.timerInsideGapEnd]:`var(${jM.gap})`,timerPosition:{end:{[jM.timerInsideGapStart]:`var(${jM.gap})`}}}};var DM=Object.freeze({__proto__:null,default:TM,vars:jM});const vM=L("password-strength");class zM extends(It({componentName:vM,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',E("\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 iD}).then(t=>t.default);#ui=-1;async calcScore(){const t=this.getAttribute("value")||"";return t?(await this.getCalcScoreFn())(t).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((t,e)=>{const i=document.createElement("div");return i.classList.add("bar"),i.classList.toggle("filled",e<=this.#ui),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#ui&&(this.#ui=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#ui})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#ui)}),this.textContainer.innerHTML=this.options[this.#ui]||"",-1===this.#ui?this.removeAttribute("score"):this.setAttribute("score",this.#ui))}attributeChangedCallback(t,e,i){if(e!==i)return"options"===t?this.renderBars():"value"===t?this.onValueChange():void 0}}const{host:CM,bar:SM,filledBar:wM,barsContainer:LM,text:AM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},fM=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:[{...CM,property:"width"},{...CM,property:"min-width"}],hostDirection:{...CM,property:"direction"},hostMinWidth:{...CM,property:"min-width"},barHeight:{...SM,property:"height"},barBorderRadius:{...SM,property:"border-radius"},emptyBarColor:{...SM,property:"background-color"},filledBarColor:{...wM,property:"background-color"},textColor:{...AM,property:"color"},spacing:{property:"gap"},barSpacing:{...LM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...SM,property:"transition"}}}),gt,Mt)(zM),EM=nt(vp),kM=fM.cssVarList,OM={[kM.hostDirection]:EM.direction,[kM.barHeight]:"4px",[kM.barTransition]:"background-color 0.3s",[kM.barBorderRadius]:EM.radius.sm,[kM.hostMinWidth]:_p.minWidth,[kM.barSpacing]:EM.spacing.sm,[kM.emptyBarColor]:EM.colors.surface.light,[kM.fontFamily]:_p.fontFamily,[kM.fontSize]:_p.labelFontSize,[kM.fontWeight]:_p.labelFontWeight,[kM.spacing]:EM.spacing.sm,_fullWidth:{[kM.hostWidth]:"100%"},score:{0:{[kM.filledBarColor]:EM.colors.error.light,[kM.textColor]:EM.colors.error.light},1:{[kM.filledBarColor]:EM.colors.error.main,[kM.textColor]:EM.colors.error.main},2:{[kM.filledBarColor]:EM.colors.error.dark,[kM.textColor]:EM.colors.error.dark},3:{[kM.filledBarColor]:EM.colors.success.dark,[kM.textColor]:EM.colors.success.dark},4:{[kM.filledBarColor]:EM.colors.success.main,[kM.textColor]:EM.colors.success.main}}},VM={...kM};var WM=Object.freeze({__proto__:null,default:OM,vars:VM});const RM=L("collapsible-container");class UM extends(It({componentName:RM,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text","aria-label"]}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="title">\n <div class="icon">\n <descope-icon st-fill="currentcolor" src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K></descope-icon>\n </div>\n <span></span>\n </div>\n </div>\n </descope-text>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n\t',E(`\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 .title {\n display: contents;\n }\n :host([attach-icon="true"]) .header {\n display: block;\n }\n :host([attach-icon="true"]) .title {\n display: inline-flex;\n align-items: baseline;\n }\n .icon {\n flex-shrink: 0;\n height: var(${Ai.cssVarList.textLineHeight});\n min-height: 24px;\n display: flex;\n align-items: center;\n }\n descope-icon {\n transition-property: transform;\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")}updateHeaderA11y(){this.isCollapsible?(this.header.setAttribute("role","button"),this.header.setAttribute("tabindex","0"),this.header.setAttribute("aria-expanded",String(!this.isCollapsed)),this.getAttribute("text")?this.header.removeAttribute("aria-label"):this.header.setAttribute("aria-label",this.getAttribute("aria-label")||"Toggle section")):["role","tabindex","aria-expanded","aria-label"].forEach(t=>this.header.removeAttribute(t))}collapse(t=!1){this.content.inert=!0;const e=()=>{this.content.style.maxHeight="0px"};if(this.icon.classList.add("rotate"),!t)return e();this.content.style.maxHeight=this.calcContentHeight()+"px",setTimeout(e)}expand(t=!1){this.content.inert=!1;const e=()=>{this.content.style.maxHeight=""};if(this.icon.classList.remove("rotate"),!t)return e();this.content.addEventListener("transitionend",e,{once:!0}),this.content.style.maxHeight=this.calcContentHeight()+"px"}#pi=!1;init(){super.init?.(),this.#pi=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),this.header.addEventListener("keydown",t=>{!this.isCollapsible||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.toggle())}),f(this,this.textComponent,{includeAttrs:["text-align","text-variant","text-mode"],mapAttrs:{"text-mode":"mode","text-variant":"variant"}})}updateHeaderText(){const t=this.getAttribute("text")||"";this.headerText.innerText=t}attributeChangedCallback(t,e,i){if("text"===t)return this.updateHeaderText(),void this.updateHeaderA11y();"aria-label"!==t?(this.updateHeaderA11y(),this.isCollapsed&&this.isCollapsible?this.collapse(this.#pi):this.expand(this.#pi)):this.updateHeaderA11y()}}const YM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},QM=T(ht({mappings:{hostWidth:{selector:YM.host,property:"width"},hostDirection:{selector:YM.host,property:"direction"},verticalPadding:[{selector:YM.wrapper,property:"padding-top"},{selector:YM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:YM.wrapper,property:"padding-left"},{selector:YM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:YM.wrapper},backgroundImage:{selector:YM.wrapper},backgroundPositionX:{selector:YM.wrapper},backgroundPositionY:{selector:YM.wrapper},backgroundSize:{selector:YM.wrapper},backgroundRepeat:{selector:YM.wrapper},borderRadius:{selector:YM.wrapper},borderColor:{selector:YM.wrapper},borderStyle:{selector:YM.wrapper},borderWidth:{selector:YM.wrapper},boxShadow:{selector:YM.wrapper},headerIconOrder:{selector:YM.iconWrapper,property:"order"},headerCursor:{selector:YM.header,property:"cursor"},headerGap:{selector:YM.iconAndText,property:"gap"},textGrow:{selector:YM.text,property:"flex-grow"},textDirection:{selector:YM.text,property:"direction"},iconAnimationDuration:{selector:YM.icon,property:"transition-duration"},contentAnimationDuration:{selector:YM.content,property:"transition-duration"},chevronRotation:{selector:YM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),gt,Mt)(UM),PM=nt(vp),BM=QM.cssVarList,[ZM,FM,GM]=st({shadowColor:"#00000020"},RM),{shadowColor:HM}=FM,JM={...ZM,[BM.hostWidth]:"100%",[BM.boxShadow]:"none",[BM.backgroundColor]:PM.colors.surface.main,[BM.backgroundImage]:"",[BM.backgroundPositionX]:"center",[BM.backgroundPositionY]:"center",[BM.backgroundSize]:"cover",[BM.backgroundRepeat]:"no-repeat",[BM.borderRadius]:"0px",[BM.hostDirection]:PM.direction,[BM.flexDirection]:"column",[BM.alignItems]:"flex-start",[BM.justifyContent]:"flex-start",[BM.headerGap]:PM.spacing.md,[BM.chevronRotation]:"rotate(180deg)",[BM.iconAnimationDuration]:"0.1s",[BM.contentAnimationDuration]:"0.1s",[BM.borderWidth]:"0px",[BM.textGrow]:"0",verticalPadding:{sm:{[BM.verticalPadding]:"5px"},md:{[BM.verticalPadding]:"10px"},lg:{[BM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[BM.horizontalPadding]:"5px"},md:{[BM.horizontalPadding]:"10px"},lg:{[BM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[BM.gap]:"10px"},md:{[BM.gap]:"20px"},lg:{[BM.gap]:"30px"}},shadow:{sm:{[BM.boxShadow]:`${PM.shadow.wide.sm} ${HM}, ${PM.shadow.narrow.sm} ${HM}`},md:{[BM.boxShadow]:`${PM.shadow.wide.md} ${HM}, ${PM.shadow.narrow.md} ${HM}`},lg:{[BM.boxShadow]:`${PM.shadow.wide.lg} ${HM}, ${PM.shadow.narrow.lg} ${HM}`},xl:{[BM.boxShadow]:`${PM.shadow.wide.xl} ${HM}, ${PM.shadow.narrow.xl} ${HM}`},"2xl":{[GM.shadowColor]:"#00000050",[BM.boxShadow]:`${PM.shadow.wide["2xl"]} ${HM}`}},borderRadius:{sm:{[BM.borderRadius]:PM.radius.sm},md:{[BM.borderRadius]:PM.radius.md},lg:{[BM.borderRadius]:PM.radius.lg},xl:{[BM.borderRadius]:PM.radius.xl},"2xl":{[BM.borderRadius]:PM.radius["2xl"]},"3xl":{[BM.borderRadius]:PM.radius["3xl"]}},iconPosition:{left:{[BM.headerIconOrder]:"0"},right:{[BM.headerIconOrder]:"1"}},_fillTitle:{[BM.textGrow]:"1"},_border:{[BM.borderColor]:PM.colors.surface.light,[BM.borderWidth]:PM.border.xs,[BM.borderStyle]:"solid"},_collapsible:{[BM.headerCursor]:"pointer"}},$M={...BM,...GM};var qM=Object.freeze({__proto__:null,default:JM,vars:$M});const _M=L("recovery-codes"),XM="none",KM={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},tm=["text","variant","color","size","icon","icon-dark"],em=["show-download",...Object.keys(KM).flatMap(t=>tm.map(e=>`${t}-${e}`))];class im extends(It({componentName:_M,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...em]}#hi=XM;#gi=!1;#Mi=!1;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="codes-box">\n <div class="list"><div class="codes-list"></div></div>\n <descope-text class="icon-wrapper">\n <div class="icons">\n <vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>\n <vaadin-icon class="icon download-icon" icon="vaadin:download-alt" title="Download"></vaadin-icon>\n </div>\n </descope-text>\n </div>\n <div class="error-message"></div>\n <div class="buttons-row"></div>\n </div>\n ',this.list=this.shadowRoot.querySelector(".list"),this.copyIcon=this.shadowRoot.querySelector(".copy-icon"),this.downloadIcon=this.shadowRoot.querySelector(".download-icon"),this.iconWrapper=this.shadowRoot.querySelector(".icon-wrapper"),this.errorMessageEle=this.shadowRoot.querySelector(".error-message"),this.buttonsRow=this.shadowRoot.querySelector(".buttons-row"),E('\n :host {\n display: inline-block;\n position: relative;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n }\n .codes-box {\n display: flex;\n justify-content: space-between;\n box-sizing: border-box;\n /* border shows the error ring inside the box; style/width/color/radius come from theme */\n }\n .list {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n /* text-align maps to align-items here, so it positions the codes block\n (start/center/end) inside the available space, not each row */\n }\n .codes-list {\n display: flex;\n flex-direction: column;\n /* rows always start-aligned so the bullets line up in any font.\n width:fit-content hugs the codes so .list can position the whole\n block (keep it, it also defeats the stretch fallback) */\n align-items: flex-start;\n width: fit-content;\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 .icons {\n display: flex;\n flex-direction: column;\n }\n .icon {\n cursor: pointer;\n }\n .icon.copied {\n cursor: initial;\n /* block re-clicks while the checkmark shows, so rapid clicks cannot repeat the action */\n pointer-events: none;\n }\n /* readonly is a host attribute, so disable pointer events from one place */\n :host([readonly="true"]) .icon,\n :host([readonly="true"]) .buttons-row {\n pointer-events: none;\n }\n .download-icon {\n display: none;\n }\n :host([show-download="true"]) .download-icon {\n display: inline-flex;\n }\n .error-message {\n display: none;\n /* width:0 + min-width:100% lets the message wrap to the component width without\n its text expanding the (shrink-to-fit) component; full-width still fills the parent */\n width: 0;\n min-width: 100%;\n box-sizing: border-box;\n line-height: 1.2;\n overflow-wrap: break-word;\n }\n :host([invalid]) .error-message {\n display: block;\n }\n .buttons-row {\n display: none;\n }\n :host([display-variant="buttons"]) .icon-wrapper {\n display: none;\n }\n :host([display-variant="buttons"]) .buttons-row {\n display: flex;\n flex-wrap: wrap;\n }\n /* grow to fill equally; don\'t shrink below content, so they wrap to a new line\n when they don\'t fit (like a container with auto-fit items) */\n .buttons-row > descope-button {\n flex: 1 0 auto;\n }\n ',this)}get variant(){return this.getAttribute("variant")}get mode(){return this.getAttribute("mode")}get value(){return this.#hi}#mi(t){return this.hasAttribute(t)&&"false"!==this.getAttribute(t)}get isRequired(){return this.#mi("required")}get isReadOnly(){return this.#mi("readonly")}get errorMessage(){return this.getAttribute("data-errormessage-value-missing")||"Copy or download your recovery codes to continue."}get codesText(){return String((this.data||[]).map(t=>t.value).join("\n"))}init(){super.init(),this.copyIcon.addEventListener("click",this.onCopy.bind(this)),this.downloadIcon.addEventListener("click",this.onDownload.bind(this)),f(this,this.iconWrapper,{includeAttrs:["variant","mode"]}),this.renderButtons(),this.#Mi=!0}get isDownloadEnabled(){return"true"===this.getAttribute("show-download")}renderButtons(){if(!this.buttonsRow)return;const t=[this.buildButton("copy")];this.isDownloadEnabled&&t.push(this.buildButton("download")),this.buttonsRow.replaceChildren(...t)}buildButton(t){const{defaultText:e}=KM[t],i=(e,i)=>this.getAttribute(`${t}-${e}`)||i,o=document.createElement("descope-button");o.setAttribute("data-action",t),o.setAttribute("variant",i("variant","outline")),o.setAttribute("mode",i("color","primary")),o.setAttribute("size",i("size","md"));const n=this.getAttribute(`${t}-icon`);if(n){const e=document.createElement("descope-icon");e.setAttribute("src",n);const i=this.getAttribute(`${t}-icon-dark`);i&&e.setAttribute("src-dark",i),o.appendChild(e)}return o.appendChild(document.createTextNode(i("text",e))),o.addEventListener("click",()=>"copy"===t?this.onCopy():this.onDownload()),o}onCopy(){this.isReadOnly||(navigator.clipboard.writeText(this.codesText),this.showActionFeedback(this.copyIcon,"Copied"),this.recordAction("copied"))}onDownload(){if(this.isReadOnly)return;const t=new Blob([this.codesText],{type:"text/plain"}),e=URL.createObjectURL(t),i=document.createElement("a");i.href=e,i.download="recovery-codes.txt",i.click(),URL.revokeObjectURL(e),this.showActionFeedback(this.downloadIcon,"Downloaded"),this.recordAction("downloaded")}recordAction(t){this.#hi=t,this.dispatchEvent(new Event("change",{bubbles:!0})),this.checkValidity()&&(this.#gi=!1),this.syncValidityUI()}showActionFeedback(t,e){t.feedbackTimer?clearTimeout(t.feedbackTimer):(t.originalIcon=t.getAttribute("icon"),t.originalTitle=t.getAttribute("title")),t.setAttribute("icon","vaadin:check-circle-o"),t.setAttribute("title",e),t.classList.add("copied"),t.feedbackTimer=setTimeout(()=>{t.setAttribute("icon",t.originalIcon),t.setAttribute("title",t.originalTitle),t.classList.remove("copied"),t.feedbackTimer=null},5e3)}checkValidity(){return this.isReadOnly||!this.isRequired||this.value!==XM}reportValidity(){const t=this.checkValidity();return this.#gi=!t,this.syncValidityUI(),t}syncValidityUI(){this.toggleAttribute("invalid",this.#gi),this.errorMessageEle&&(this.errorMessageEle.textContent=this.#gi?this.errorMessage:"")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("required"!==t||this.isRequired||(this.#gi=!1,this.syncValidityUI()),this.#Mi&&em.includes(t)&&this.renderButtons())}}const om=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Ai.componentName,property:Ai.cssVarList.hostDirection}],textAlign:{selector:()=>".list",property:"align-items"},iconColor:{selector:()=>"vaadin-icon",property:"color"},iconSize:{selector:()=>"vaadin-icon",property:"font-size"},iconGap:{selector:()=>".codes-box",property:"gap"},iconStackGap:{selector:()=>".icons",property:"gap"},buttonsGap:{selector:()=>".buttons-row",property:"gap"},sectionsGap:{selector:()=>".wrapper",property:"gap"},bulletGap:{selector:()=>"descope-text span",property:"gap"},verticalPadding:[{selector:()=>".codes-box",property:"padding-top"},{selector:()=>".codes-box",property:"padding-bottom"},{selector:()=>".buttons-row",property:"padding-bottom"}],horizontalPadding:[{selector:()=>".codes-box",property:"padding-left"},{selector:()=>".codes-box",property:"padding-right"},{selector:()=>".buttons-row",property:"padding-left"},{selector:()=>".buttons-row",property:"padding-right"}],errorBorderColor:{selector:()=>".codes-box",property:"border-color"},errorMessageColor:{selector:()=>".error-message",property:"color"},errorMessageFontSize:{selector:()=>".error-message",property:"font-size"},errorMessageFontWeight:{selector:()=>".error-message",property:"font-weight"},errorMessageFontFamily:{selector:()=>".error-message",property:"font-family"},boxBorderRadius:{selector:()=>".codes-box",property:"border-radius"},errorBorderWidth:{selector:()=>".codes-box",property:"border-width"},boxBorderStyle:{selector:()=>".codes-box",property:"border-style"}}}),ht({componentNameOverride:L("input-wrapper")}),Rt({itemRenderer:({value:t},e,i)=>`\n <descope-text variant="${i.variant}" mode="${i.mode}">\n <span>${t}</span>\n </descope-text>\n `,rerenderAttrsList:["variant","mode"],targetSelector:".codes-list"}),gt,Mt)(im),nm=nt(vp),rm=om.cssVarList,sm=Ai.cssVarList,am={[rm.hostMinWidth]:"190px",[rm.hostDirection]:nm.direction,[rm.iconColor]:rt(sm.textColor),[rm.iconSize]:rt(sm.fontSize),[rm.iconGap]:"8px",[rm.iconStackGap]:"16px",[rm.buttonsGap]:"8px",[rm.sectionsGap]:"8px",[rm.bulletGap]:"0.35em",[rm.verticalPadding]:"0",[rm.horizontalPadding]:"0",[rm.errorBorderColor]:"transparent",[rm.errorBorderWidth]:_p.borderWidth,[rm.boxBorderRadius]:_p.borderRadius,[rm.boxBorderStyle]:"solid",[rm.errorMessageColor]:_p.errorMessageTextColor,[rm.errorMessageFontSize]:_p.errorMessageFontSize,[rm.errorMessageFontWeight]:_p.errorMessageFontWeight,[rm.errorMessageFontFamily]:_p.fontFamily,textAlign:{right:{[rm.textAlign]:"flex-end"},left:{[rm.textAlign]:"flex-start"},center:{[rm.textAlign]:"center"}},displayVariant:{buttons:{[rm.hostMinWidth]:"100px"}},_fullWidth:{[rm.hostWidth]:"100%"},_invalid:{[rm.errorBorderColor]:_p.errorMessageTextColor}};var lm=Object.freeze({__proto__:null,default:am,vars:rm});const dm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0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2hpdGUiLz4KPC9zdmc+Cg=="}},cm=L("active-sessions"),um=rg.componentName;let pm;const hm={selector:()=>":host"},gm={selector:()=>um},Mm=T(ht({mappings:{hostWidth:[{...hm,property:"width"},{...gm,property:rg.cssVarList.hostWidth}],hostDirection:[{...hm,property:"direction"},{...gm,property:rg.cssVarList.hostDirection}]}}),gt,Ot({name:"overlay",forward:!1,selector:async t=>{const e=await(async t=>{if(!t)return null;const e=await w(()=>t)();return e instanceof ShadowRoot?e:null})(t?.querySelector("vaadin-multi-select-combo-box"));return e?.querySelector("vaadin-multi-select-combo-box-internal")},style:"\n .session {\n display: flex;\n flex-direction: column;\n }\n /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the\n title and widen the space to the location line. */\n .session .device descope-text,\n .session .device descope-text::part(text-wrapper) {\n display: block;\n }\n /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,\n so a container outside would only ever see the slot as its single item. */\n .session .device-row {\n display: flex;\n align-items: center;\n }\n .session .device-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n }\n",mappings:{rowGap:{selector:".session",property:"gap"},deviceRowGap:{selector:".device-row",property:"gap"}}}),kt({proxyProps:["value"],inputEvent:"change",proxyParentValidation:!0}),Mt,t=>class extends t{get lastLoginLabel(){return this.getAttribute("last-login-label")??"Last login:"}get unknownDeviceLabel(){return this.getAttribute("unknown-device-label")??"Unknown device"}init(){var t;super.init?.(),this.inputElement=this.baseElement,this.inputElement.renderItem=(t=this,({value:e,deviceName:i,deviceType:o,city:n,country:r,loginTime:s}={})=>{const a=i||t.unknownDeviceLabel,l=(pm||(pm=document.createElement("template"),pm.innerHTML='\n <div class="session">\n <div class="device">\n <descope-text variant="body1" mode="primary" st-font-size="1em">\n <div class="device-row">\n <descope-icon class="device-icon" aria-hidden="true"></descope-icon>\n <span class="device-name"></span>\n </div>\n </descope-text>\n </div>\n <div class="location">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n <div class="last-login">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n </div>\n ',pm)).content.cloneNode(!0).firstElementChild;l.setAttribute("data-id",e??""),l.setAttribute("data-name",a),l.querySelector(".device-name").textContent=a;const{iconSrc:d,iconSrcDark:c}=(t=>{const e=dm[t]||dm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),u=l.querySelector(".device-icon");u.setAttribute("src",d),u.setAttribute("src-dark",c);const p=(t,e)=>{const i=l.querySelector(t);e?i.firstElementChild.textContent=e:i.remove()};p(".location",(({country:t,city:e})=>[e,t].filter(Boolean).join(", "))({country:r,city:n}));const h=(t=>{const e=parseInt(t,10);if(Number.isNaN(e)||e<=0)return"";const i=new Date(1e3*e),o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};try{return i.toLocaleString(void 0,{...o,timeZoneName:"shortOffset"})}catch{return i.toLocaleString(void 0,o)}})(s);return p(".last-login",h&&t.lastLoginLabel?`${t.lastLoginLabel} ${h}`:h),l.outerHTML}),this.inputElement.setAttribute("allow-custom-value","false"),this.inputElement.setAttribute("item-label-path","data-name"),this.inputElement.setAttribute("item-value-path","data-id")}})(Lt({slots:[],wrappedEleName:um,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${um} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:cm})),mm=Mm.cssVarList,ym={[mm.hostWidth]:_p.width,[mm.hostDirection]:_p.direction,[mm.overlay.rowGap]:"0.125em",[mm.overlay.deviceRowGap]:"0.5em",_fullWidth:{[mm.hostWidth]:"100%"}};var bm=Object.freeze({__proto__:null,default:ym,vars:mm});const Nm=L("outbound-apps"),Im=({name:t,description:e,logo:i,appId:o,isConnected:n},r,s)=>{const a=n?"disconnect":"connect";return`\n <descope-list-item>\n <descope-avatar\n ${i?`img="${i}"`:""}\n ${t?`display-name="${t}" abbr=${V(t)}`:""}\n size=${s.size}\n ${i?'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 >${t}</descope-text>\n ${e?`\n <descope-text\n class="app-description"\n variant="body2"\n mode="primary"\n >${e}</descope-text>\n `:""}\n </div>\n <div class="controls">\n <descope-button variant="link" mode="primary" size=${s.size} data-action="${a}" data-outbound-app-id="${o}" data-id="${a}">\n ${n?s.disconnectButtonLabel:s.connectButtonLabel}\n </descope-button>\n </div>\n </descope-list-item>\n`},xm=It({componentName:Nm,baseSelector:"descope-list"}),{host:jm}={host:{selector:()=>":host"}},Tm=T(ht({mappings:{hostWidth:{...jm,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...jm,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:Lo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:Lo.cssVarList.fill},fontSize:{selector:Ai.componentName,property:Ai.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:Ai.componentName,property:Ai.cssVarList.textAlign},itemCursor:{selector:pu.componentName,property:pu.cssVarList.cursor},itemOutline:{selector:pu.componentName,property:pu.cssVarList.outline},itemBorderColor:{selector:pu.componentName,property:pu.cssVarList.borderColor},itemBackgroundColor:{selector:pu.componentName,property:pu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>Mu.componentName,property:Mu.cssVarList.boxShadow},listPadding:[{selector:()=>Mu.componentName,property:Mu.cssVarList.verticalPadding},{selector:()=>Mu.componentName,property:Mu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>Mu.componentName,property:Mu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>Mu.componentName,property:Mu.cssVarList.emptyStateVerticalPadding}}}),gt,Rt({itemRenderer:Im,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),Mt)(class extends xm{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"),E("\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=Im,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}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"}}),Dm=Tm.cssVarList,vm={[Dm.iconColor]:vp.colors.primary.main,[Dm.errorIconColor]:vp.colors.error.main,[Dm.appLogoGap]:vp.spacing.md,[Dm.contentGap]:vp.spacing.xs,[Dm.itemCursor]:"default",[Dm.itemOutline]:"none",[Dm.itemBorderColor]:"transparent",[Dm.listPadding]:"0",[Dm.listBorderWidth]:"0",[Dm.listBoxShadow]:"none",[Dm.emptyStateMinHeight]:"0",[Dm.emptyStateVerticalPadding]:vp.spacing.lg,size:{xs:{[Dm.fontSize]:"0.6em"},sm:{[Dm.fontSize]:"0.8em"},md:{[Dm.fontSize]:"1em"},lg:{[Dm.fontSize]:"1.5em"}}};var zm=Object.freeze({__proto__:null,default:vm,vars:Dm});const Cm=L("outbound-app-button");class Sm extends(It({componentName:Cm,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 ',E("\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?.(),f(this,this.button,{excludeAttrs:["style","class","label","icon-src","icon-fill-current-color"]})}updateLabel(t=""){this.label.textContent=t,this.label.classList.toggle("hidden",!t)}updateIcon(t=""){this.icon.setAttribute("src",t),this.icon.classList.toggle("hidden",!t)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.updateLabel(i):"icon-src"===t&&this.updateIcon(i))}}const wm=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Vo.cssVarList.iconColor}}}),gt,Mt)(Sm),Lm=wm.cssVarList,Am={[Lm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Lm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Lm.hostWidth]:"100%"}},fm=Lm;var Em=Object.freeze({__proto__:null,default:Am,vars:fm});const km=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Om={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNC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IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},Vm=L("trusted-devices"),Wm=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=Om[t]||Om.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),c=s.lastLoginLabel?`${s.lastLoginLabel} `:"",u=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,s.format),p=n?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${s.direction}"\n >\n ${s.currentDeviceLabel}\n </descope-badge>`:"",h=s.hideActions||n?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${t}"\n st-host-direction="${s.direction}"\n ellipsis="true"\n >\n ${s.removeDeviceLabel}\n </descope-link>`,g=document.createElement("template");return g.innerHTML=`\n <descope-list-item ${a}>\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 ${p}\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 ${u}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,g.content.querySelector(".device-name").textContent=e,g},Rm=It({componentName:Vm,baseSelector:Mu.componentName}),{host:Um}={host:{selector:()=>":host"}},Ym=T(ht({mappings:{hostWidth:{...Um,property:"width"},hostMinWidth:{...Um,property:"min-width"},hostDirection:[{...Um,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:Mu.cssVarList.gap},listBackgroundColor:{selector:()=>Mu.componentName,property:Mu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderRadius},listBorderWidth:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>Mu.componentName,property:Mu.cssVarList.boxShadow},listPadding:[{selector:()=>Mu.componentName,property:Mu.cssVarList.verticalPadding},{selector:()=>Mu.componentName,property:Mu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>Mu.componentName,property:Mu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>Mu.componentName,property:Mu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:pu.componentName,property:pu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:pu.componentName,property:pu.cssVarList.horizontalPadding},itemCursor:{selector:pu.componentName,property:pu.cssVarList.cursor},itemOutline:{selector:pu.componentName,property:pu.cssVarList.outline},itemBorderColor:{selector:pu.componentName,property:pu.cssVarList.borderColor},itemBorderRadius:{selector:pu.componentName,property:pu.cssVarList.borderRadius},itemBackgroundColor:{selector:pu.componentName,property:pu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:Sc.componentName,property:Sc.cssVarList.borderColor},badgeTextColor:{selector:Sc.componentName,property:Sc.cssVarList.textColor},badgeBackgroundColor:{selector:Sc.componentName,property:Sc.cssVarList.backgroundColor},badgeBorderRadius:{selector:Sc.componentName,property:Sc.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"}}}),gt,Rt({itemRenderer:Wm,sortFn:(t,e)=>km(e.lastLoginDate)-km(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),Mt)(class extends Rm{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"),E("\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=Wm,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,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")}}),Qm=Ym.cssVarList,Pm={[Qm.hostWidth]:"auto",[Qm.hostWidth]:"300px",[Qm.hostMinWidth]:"300px",[Qm.listBackgroundColor]:"transparent",[Qm.listBorderRadius]:"0",[Qm.listBorderWidth]:"0",[Qm.listPadding]:"0",[Qm.listBoxShadow]:"none",[Qm.listItemsGap]:vp.spacing.lg,[Qm.emptyStateMinHeight]:"0",[Qm.emptyStateVerticalPadding]:vp.spacing.lg,[Qm.itemBorderColor]:vp.colors.surface.light,[Qm.itemVerticalPadding]:vp.spacing.lg,[Qm.itemHorizontalPadding]:vp.spacing.lg,[Qm.itemBorderRadius]:vp.radius.xs,[Qm.itemOutline]:"transparent",[Qm.itemBackgroundColor]:"transparent",[Qm.itemCursor]:"default",[Qm.itemContentGap]:vp.spacing.sm,[Qm.badgeBorderColor]:vp.colors.surface.light,[Qm.badgeTextColor]:vp.colors.surface.dark,[Qm.badgeBorderRadius]:vp.radius.xs,[Qm.badgeBackgroundColor]:vp.colors.surface.main,[Qm.devicePanelGap]:vp.spacing.md,[Qm.deviceIconGap]:vp.spacing.md,[Qm.deviceIconSize]:"24px",[Qm.lastLoginLabelGap]:vp.spacing.xs,_fullWidth:{[Qm.hostWidth]:"100%"}};var Bm=Object.freeze({__proto__:null,default:Pm,vars:Qm});const Zm=L("multi-sso"),Fm=({id:t,name:e,isDefault:i,link:o,authType:n,authOnly:r},s,a)=>{const l=!i&&a?.allowDelete?`<span\n class="delete-btn delete-icon"\n data-action="delete"\n role="button"\n tabindex="0"\n title="${a.deleteTooltipLabel}"\n ></span>`:"",d=o&&a?.allowConfigure?`<a\n class="external-link external-link-icon"\n target="_blank"\n rel="noopener noreferrer"\n title="${a.configureTooltipLabel}"\n ></a>`:"",{label:c,configured:u}=(t=>t&&"none"!==t?{label:t.toUpperCase(),configured:!0}:{label:"Not Configured",configured:!1})(n),p=r?'<descope-badge class="auth-only-badge" size="xs"><span class="auth-only-text"></span></descope-badge>':"",h=u?`<div class="auth-type-row">\n <descope-badge class="auth-type-badge" size="xs"></descope-badge>\n ${p}\n </div>`:`<div class="auth-type-row">\n <descope-text\n not-configured\n variant="body2"\n mode="secondary"\n >${a?.notConfiguredLabel}</descope-text>\n ${p}\n </div>`,g=document.createElement("template");g.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="top-row">\n <descope-text\n class="config-name"\n variant="body1"\n mode="primary"\n ></descope-text>\n <span class="action">\n ${l}\n ${d}\n </span>\n </div>\n ${h}\n </div>\n </descope-list-item>\n `,g.content.querySelector(".config-name").textContent=e;const M=g.content.querySelector(".delete-btn");if(M){M.dataset.id=t,M.dataset.name=e,M.setAttribute("aria-label",a.deleteTooltipLabel);const i=W(a,"delete-icon");i&&M.append(i)}const m=g.content.querySelector(".external-link");if(m){m.setAttribute("aria-label",a.configureTooltipLabel),o&&m.setAttribute("href",o);const t=W(a,"external-link-icon");t&&m.append(t)}const y=g.content.querySelector(".auth-type-badge");y&&(y.textContent=c);const b=g.content.querySelector(".auth-only-text");return b&&(b.textContent=a?.authOnlyLabel),g},Gm=It({componentName:Zm,baseSelector:"span.wrapper"}),{host:Hm}={host:{selector:()=>":host"}},Jm=T(ht({mappings:{hostWidth:{...Hm,property:"width"},hostMinWidth:{...Hm,property:"min-width"},hostDirection:[{...Hm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],headerGap:{selector:()=>".header",property:"gap"},headerListGap:{selector:()=>"descope-list",property:"margin-top"},itemContentGap:{selector:()=>".content",property:"gap"},actionGap:{selector:()=>".action",property:"gap"},authTypeRowGap:{selector:()=>".auth-type-row",property:"gap"},unconfiguredAuthTypeTextColor:{selector:()=>"[not-configured]",property:Ai.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Vo.componentName,property:Vo.cssVarList.hostMaxWidth},listItemsGap:{property:Mu.cssVarList.gap},listBackgroundColor:{selector:()=>Mu.componentName,property:Mu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderRadius},listBorderWidth:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>Mu.componentName,property:Mu.cssVarList.boxShadow},listPadding:[{selector:()=>Mu.componentName,property:Mu.cssVarList.verticalPadding},{selector:()=>Mu.componentName,property:Mu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:pu.componentName,property:pu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:pu.componentName,property:pu.cssVarList.horizontalPadding},itemCursor:{selector:pu.componentName,property:pu.cssVarList.cursor},itemOutline:{selector:pu.componentName,property:pu.cssVarList.outline},itemBorderColor:{selector:pu.componentName,property:pu.cssVarList.borderColor},itemBorderRadius:{selector:pu.componentName,property:pu.cssVarList.borderRadius},itemBackgroundColor:{selector:pu.componentName,property:pu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>Sc.componentName,property:Sc.cssVarList.borderColor},badgeTextColor:{selector:()=>Sc.componentName,property:Sc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>Sc.componentName,property:Sc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>Sc.componentName,property:Sc.cssVarList.borderRadius},titleIconSize:[{selector:()=>'::slotted([slot="title-icon"])',property:"width"},{selector:()=>'::slotted([slot="title-icon"])',property:"height"}],createButtonIconSize:[{selector:()=>'::slotted([slot="create-button-icon"])',property:"width"},{selector:()=>'::slotted([slot="create-button-icon"])',property:"height"}],actionIconSize:[{selector:()=>".delete-icon",property:"width"},{selector:()=>".delete-icon",property:"height"},{selector:()=>".external-link-icon",property:"width"},{selector:()=>".external-link-icon",property:"height"}],actionIconColor:[{selector:()=>".delete-icon",property:Lo.cssVarList.fill},{selector:()=>".external-link-icon",property:Lo.cssVarList.fill}]}}),gt,Rt({targetSelector:"descope-list",itemRenderer:Fm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),Mt)(class extends Gm{static get observedAttributes(){return["label","create-button-label","not-configured-label","delete-tooltip-label","configure-tooltip-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <span class="wrapper">\n <div class="header">\n <slot name="title-icon"></slot>\n <descope-text class="title" variant="body1" mode="primary"></descope-text>\n <descope-button\n class="create-button"\n size="sm"\n variant="link"\n mode="primary"\n data-action="create"\n >\n <slot name="create-button-icon" slot="prefix"></slot>\n <span class="create-button-label"></span>\n </descope-button>\n </div>\n <descope-list></descope-list>\n <slot name="delete-icon" class="hidden"></slot>\n <slot name="external-link-icon" class="hidden"></slot>\n </span>\n ',this.listEl=this.shadowRoot.querySelector("descope-list"),this.deleteIconSlot=this.shadowRoot.querySelector('slot[name="delete-icon"]'),this.externalLinkIconSlot=this.shadowRoot.querySelector('slot[name="external-link-icon"]'),E('\n :host {\n display: inline-block;\n }\n\n :host(:not([allow-create="true"])) .create-button {\n display: none;\n }\n\n .create-button {\n min-width: 0;\n flex-shrink:1;\n }\n\n .header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n slot[name="title-icon"] {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .title {\n flex: 1;\n min-width: 0;\n width:0;\n flex-shrink: 0;\n\n }\n\n .title::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n }\n\n .top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n }\n\n .config-name {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .config-name::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .auth-type-row {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n /* The auth type is short and fixed, so it keeps its size and the consumer-supplied label is\n the one that gives way. */\n .auth-type-badge {\n flex-shrink: 0;\n }\n\n /* The label is consumer-supplied and localized, so it can be far longer than the row. It\n shrinks to whatever the row leaves it and ellipsises only then, rather than being held to a\n fixed width that would truncate it while space is still going spare. */\n .auth-only-badge {\n min-width: 0;\n flex-shrink: 1;\n }\n\n .auth-only-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .action {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .hidden {\n display: none;\n }\n\n .delete-btn {\n cursor: pointer;\n display: flex;\n }\n\n .delete-icon > *,\n .external-link-icon > * {\n width: 100%;\n height: 100%;\n }\n\n .external-link {\n cursor: pointer;\n color: inherit;\n display: flex;\n }\n\n descope-text {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n ',this)}get deleteTooltipLabel(){return this.getAttribute("delete-tooltip-label")??""}get configureTooltipLabel(){return this.getAttribute("configure-tooltip-label")??""}get authOnlyLabel(){return this.getAttribute("auth-only-label")||"Authentication only"}init(){super.init?.(),this.shadowRoot.querySelector(".title").textContent=this.label,this.shadowRoot.querySelector(".create-button-label").textContent=this.createButtonLabel,this.listEl.itemRenderer=(t,e)=>Fm(t,0,this),this.shadowRoot.querySelector('[data-action="create"]').addEventListener("click",this.onCreateClick.bind(this)),this.listEl.addEventListener("click",this.onItemClick.bind(this)),f(this.listEl,this,{includeAttrs:["empty"]});const t=()=>{this.data&&(this.data=[...this.data])};this.deleteIconSlot.addEventListener("slotchange",t),this.externalLinkIconSlot.addEventListener("slotchange",t)}onCreateClick(){this.dispatchEvent(new CustomEvent("create-clicked",{bubbles:!0,detail:{}}))}onItemClick(t){const e=t.target.closest('[data-action="delete"]');if(!e)return;const i=e.getAttribute("data-id"),o=e.getAttribute("data-name");i&&this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,detail:{id:i,name:o}}))}get allowCreate(){return"true"===this.getAttribute("allow-create")}get allowDelete(){return"true"===this.getAttribute("allow-delete")}get allowConfigure(){return"true"===this.getAttribute("allow-configure")}get label(){return this.getAttribute("label")}get createButtonLabel(){return this.getAttribute("create-button-label")}get notConfiguredLabel(){return this.getAttribute("not-configured-label")||"Not Configured"}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("label"===t){const t=this.shadowRoot?.querySelector(".title");t&&(t.textContent=this.label)}else if("create-button-label"===t){const t=this.shadowRoot?.querySelector(".create-button-label");t&&(t.textContent=this.createButtonLabel)}else"empty"===t&&this.listEl.classList.toggle("hidden","true"===i)}}),$m=Jm.cssVarList,qm=nt(vp),_m={[$m.hostWidth]:"300px",[$m.headerGap]:qm.spacing.md,[$m.headerListGap]:qm.spacing.md,[$m.itemContentGap]:qm.spacing.md,[$m.actionGap]:qm.spacing.sm,[$m.authTypeRowGap]:qm.spacing.sm,[$m.unconfiguredAuthTypeTextColor]:qm.colors.surface.dark,[$m.unconfiguredAuthTypeTextFontStyle]:"italic",[$m.buttonMaxWidth]:"50%",[$m.listBackgroundColor]:"transparent",[$m.listBorderRadius]:"0",[$m.listBorderWidth]:"0",[$m.listPadding]:"0",[$m.listBoxShadow]:"none",[$m.listItemsGap]:qm.spacing.lg,[$m.itemBorderColor]:qm.colors.surface.light,[$m.itemVerticalPadding]:qm.spacing.lg,[$m.itemHorizontalPadding]:qm.spacing.lg,[$m.itemBorderRadius]:qm.radius.xs,[$m.itemOutline]:"transparent",[$m.itemBackgroundColor]:"transparent",[$m.itemCursor]:"default",[$m.badgeBorderColor]:qm.colors.surface.light,[$m.badgeTextColor]:qm.colors.surface.dark,[$m.badgeBorderRadius]:qm.radius.xs,[$m.badgeBackgroundColor]:qm.colors.surface.main,[$m.titleIconSize]:"24px",[$m.createButtonIconSize]:"12px",[$m.actionIconSize]:"20px",[$m.actionIconColor]:qm.colors.surface.dark,_fullWidth:{[$m.hostWidth]:"100%"}};var Xm=Object.freeze({__proto__:null,default:_m,vars:$m});const Km=L("tooltip"),ty=["text","position","hide-delay","hover-delay","opened"];class ey extends(It({componentName:Km,baseSelector:"vaadin-tooltip"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <vaadin-tooltip slot="anchored"></vaadin-tooltip>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.tooltip=this.shadowRoot.querySelector("vaadin-tooltip"),this.anchored=this.shadowRoot.querySelector("descope-anchored")}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}static get observedAttributes(){return ty.concat(super.observedAttributes||[])}get isOpened(){return"true"===this.getAttribute("opened")}get overlay(){return this.tooltip?._overlayElement}get overlayContentNode(){return this.overlay?.shadowRoot.querySelector('[part="content"]')}get tooltipText(){return this.getAttribute("text")?.trim()||""}get isStaticDisplay(){return"true"===this.getAttribute("static-display")}get srLabel(){return this.tooltip?.querySelector('[slot="sr-label"]')}#Ni(){this.isStaticDisplay?(this.#Ii(),this.setAttribute("inert","true")):this.removeAttribute("inert")}#Ii(){this.overlay&&(this.overlay.style.display="block",this.overlay.style.position="static")}init(){super.init?.(),E('\n :host {\n display: inline-block;\n }\n vaadin-tooltip {\n display: block;\n position: absolute;\n width: 0;\n height: 0;\n overflow: hidden;\n }\n /* Stack anchor above the anchored element so the tooltip flows below it inline. */\n :host([static-display="true"]) descope-anchored::part(root) {\n flex-direction: column;\n }\n :host([static-display="true"]) descope-anchored::part(anchored) {\n position: static;\n inset: unset;\n }\n :host([static-display="true"]) vaadin-tooltip {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n }\n :host([static-display="true"]) vaadin-tooltip [slot="sr-label"] {\n display: none;\n }\n',this),this.tooltip.ariaTarget=this.anchored,this.defaultSlot.addEventListener("slotchange",()=>this.#xi()),this.#xi(),setTimeout(()=>this.#ji())}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=v(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#xi(){const t=this.defaultSlot?.assignedElements()?.[0];t&&(this.tooltip.target=t)}#ji(){this.#Di(),this.#vi(),f(this,this.tooltip,{includeAttrs:["position","opened"]}),this.#zi()}#Ci(){this.overlayContentNode.innerHTML=""}#Si(){const t=document.createElement("descope-enriched-text");return t.setAttribute("link-target-blank","true"),t.textContent=this.tooltipText,t}#Di(){this.overlayContentNode&&setTimeout(()=>{this.#Ci(),this.textComponent=this.#Si(),this.overlayContentNode.appendChild(this.textComponent),this.srLabel&&!this.tooltipText&&this.srLabel.setAttribute("aria-hidden","true"),f(this,this.textComponent,{includeAttrs:["readonly"]})})}#vi(){if(!this.overlay)return;const t=this.overlay._attachOverlay?.bind(this.overlay);this.overlay._detachOverlay=()=>{},this.overlay._attachOverlay=()=>{t?.(),setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.overlay._updatePosition?.()})},this.isOpened&&setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.#Ni(),this.overlay._updatePosition?.()})}#zi(){this.tooltip?.toggleAttribute("manual",this.isOpened)}#wi(t){if(!this.textComponent)return;const e=(t??"").trim();this.textComponent.textContent=e,this.srLabel&&(e?this.srLabel.removeAttribute("aria-hidden"):this.srLabel.setAttribute("aria-hidden","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("text"===t&&this.#wi(i),"opened"===t&&this.#zi())}}const{overlay:iy,content:oy}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},ny=T(Mt,Ot({selector:"",mappings:{fontFamily:{...oy,property:Zt.cssVarList.fontFamilyOverride},fontSize:{...oy,property:Zt.cssVarList.fontSizeOverride},fontWeight:{...oy,property:Zt.cssVarList.fontWeightOverride},textColor:{...oy,property:Zt.cssVarList.textColorOverride},hostDirection:{...oy,property:Zt.cssVarList.hostDirectionOverride},backgroundColor:[{...iy},{...oy}],borderColor:{...iy},borderStyle:{...iy},borderWidth:{...iy},borderRadius:{...iy},boxShadow:{...iy},horizontalPadding:[{...oy,property:"padding-left"},{...oy,property:"padding-right"}],verticalPadding:[{...oy,property:"padding-top"},{...oy,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(ey),ry=nt(vp),sy=ny.cssVarList,[ay,ly,dy]=st({shadowColor:"#00000020"},Km),{shadowColor:cy}=ly,uy=`${ry.shadow.wide.sm} ${cy}, ${ry.shadow.narrow.sm} ${cy}`,py={...ay,[sy.fontFamily]:ry.fonts.font1.family,[sy.fontSize]:vp.typography.body2.size,[sy.fontWeight]:vp.typography.body2.weight,[sy.textColor]:ry.colors.surface.contrast,[sy.hostDirection]:ry.direction,[sy.backgroundColor]:ry.colors.surface.main,[sy.borderColor]:ry.colors.surface.light,[sy.borderStyle]:"solid",[sy.borderWidth]:ry.border.xs,[sy.borderRadius]:ry.radius.xs,[sy.horizontalPadding]:ry.spacing.md,[sy.verticalPadding]:ry.spacing.sm,[sy.boxShadow]:uy,shadow:{sm:{[sy.boxShadow]:uy},md:{[sy.boxShadow]:`${ry.shadow.wide.md} ${cy}, ${ry.shadow.narrow.md} ${cy}`},lg:{[sy.boxShadow]:`${ry.shadow.wide.lg} ${cy}, ${ry.shadow.narrow.lg} ${cy}`},xl:{[sy.boxShadow]:`${ry.shadow.wide.xl} ${cy}, ${ry.shadow.narrow.xl} ${cy}`},"2xl":{[dy.shadowColor]:"#00000050",[sy.boxShadow]:`${ry.shadow.wide["2xl"]} ${cy}`}}};var hy=Object.freeze({__proto__:null,default:py,vars:sy});const gy=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[dataService] ${e.status} ${t}`);const i=await e.json();return i.data??i},My=async t=>gy(`${t}/countries.json`),my=async(t,e)=>{try{return(await gy(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},yy=async(t,e,i)=>gy(`${i}/countries/${t}/subdivisions/${e}/cities.json`),by=async t=>{const e=new URL("../labels.json",`${t}/`).href;return gy(e)},Ny=async(t,e)=>gy(`${e}/countries/${t}/cities.json`),Iy=L("country-subdivision-city-field-internal"),xy=Symbol("selecting"),jy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,Ty=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",Dy=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=jy({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=Ty(e),l=Ty(s.join(" ")),d=Ty(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},vy=({name:t,state_code:e,translations:i,lang:o})=>{const n=jy({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=Ty(e),a=Ty(r.join(" ")),l=Ty(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},zy=({name:t,translations:e,lang:i})=>{const o=jy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=Ty(t),s=Ty(n.join(" ")),a=Ty(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},Cy=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,Sy=Ct({componentName:Iy,baseSelector:""}),wy=["disabled","readonly","size","bordered"],Ly=["hide-country","hide-subdivision","hide-city"],Ay=[...wy,"label-type","country-label","subdivision-label","city-label",...Ly,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],fy=T()(class extends Sy{static get observedAttributes(){return[].concat(Sy.observedAttributes||[],Ay)}#Li;#Ai;#fi;#Ei=!1;#ki=!1;#Oi=new Map;#Vi=null;#Wi=null;#Ri=null;#Ui=null;#Yi=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${Cy("country-combo")}\n ${Cy("subdivision-combo")}\n ${Cy("city-combo")}\n </div>\n `,this.#Li=this.querySelector("#country-combo"),this.#Ai=this.querySelector("#subdivision-combo"),this.#fi=this.querySelector("#city-combo"),this.#Qi(),this.#Pi()}get#Bi(){return"true"===this.getAttribute("hide-country")}get#Zi(){return"true"===this.getAttribute("hide-subdivision")}get#Fi(){return"true"===this.getAttribute("hide-city")}get#Gi(){return!this.#Hi}get#Hi(){return this.getAttribute("data-source-base-url")||void 0}get#Ji(){const t=this.getAttribute("lang")||void 0;if(t)try{const[e]=Intl.getCanonicalLocales(t);return e}catch{return}}get#$i(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#qi(){return this.getAttribute("subdivision-label")||void 0}get#_i(){return this.getAttribute("subdivision-placeholder")||void 0}get#Xi(){return(this.getAttribute("allowed-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#Ki(){return(this.getAttribute("pinned-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#to(){return[this.#Li,this.#Ai,this.#fi]}get value(){return{country:this.#Bi?this.#$i:this.#Li.value||void 0,subdivision:!this.#Zi&&this.#Ei&&this.#Ai.value||void 0,city:!this.#Fi&&this.#ki&&this.#fi.value||void 0}}set value(t){if(!t)return;let e;try{e="string"==typeof t?JSON.parse(t):t}catch{return}this.#Yi={...e},this.#Hi&&this.#eo()}init(){this.addEventListener("focus",t=>{if(t.isTrusted){const t=this.#to.find(t=>!t.classList.contains(`${Iy}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#Li.renderItem=Dy,this.#Ai.renderItem=vy,this.#fi.renderItem=zy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(Ly.includes(t)||"data-source-base-url"===t)this.#oo(),"data-source-base-url"===t&&this.#ro();else if("default-country"===t){const t=i?.toUpperCase();if(t&&t!==i)return void this.setAttribute("default-country",t);t&&this.#Oi.size?this.#lo(t):t&&this.#Bi&&this.#do()}else"lang"===t?this.#co():"invalid"===t?"true"===i&&this.#uo():"allowed-countries"===t||"pinned-countries"===t?this.#Bi||(this.#Vi?this.#po(this.#Vi):this.#do()):"country-label"===t?this.#ho(this.#Li,"label",i):"subdivision-label"===t?this.#ho(this.#Ai,"label",i):"city-label"===t&&this.#ho(this.#fi,"label",i)}getValidity(){if(!this.isRequired)return{};const t=!this.#Bi&&!this.#Li.value,e=!this.#Zi&&(this.#Gi||this.#Ei)&&!this.#Ai.value,i=!this.#Fi&&(this.#Gi||this.#ki)&&!this.#fi.value;return t||e||i?{valueMissing:!0}:{}}#uo(){for(const t of[...this.#to].reverse())t.classList.contains(`${Iy}-hidden`)||t.checkValidity()||t.reportValidity()}#Qi(){[this.#Li,this.#Ai,this.#fi].forEach(t=>{t.customValueTransformFn=e=>{const i=t.baseElement?.items?.find(t=>t["data-name"]===e);return i?.getAttribute("data-label")??e}})}#Pi(){this.#to.forEach(t=>{f(this,t,{includeAttrs:[...wy,"label-type"]})}),f(this,this.#Li,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#Li,"country-placeholder"],[this.#Ai,"subdivision-placeholder"],[this.#fi,"city-placeholder"]].forEach(([t,e])=>{f(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#no(){this.#Li.addEventListener("input",()=>this.#go()),this.#Ai.addEventListener("input",()=>this.#Mo()),this.#fi.addEventListener("input",()=>this.#mo()),this.handleFocusEventsDispatching(this.#to)}#ro(){this.#Hi&&(this.#Yi?this.#eo():this.#Bi&&!this.#$i||this.#do())}async#eo(){const{country:t,subdivision:e,city:i}=this.#Yi,o=!!e&&!this.#Zi,n=!!i&&!this.#Fi,r=this.#Vi??My(this.#Hi),s=this.#Ui??by(this.#Hi),a=o&&t?my(t,this.#Hi):null,l=n&&t?o&&e?yy(t,e,this.#Hi):Ny(t,this.#Hi):null,[d,c,u,p]=(await Promise.allSettled([r,s,a,l])).map(t=>"fulfilled"===t.status?t.value:null);if(!this.#Yi)return;c&&(this.#Ui=c);const h=[];d&&(this.#Vi||(this.#Vi=d,this.#po(d)),t&&!this.#Bi&&h.push([this.#Li,t]));const g=t?this.#Oi.get(t):null;g?.subdivisionType&&this.#yo(g.subdivisionType),u&&(this.#Wi=u,this.#Ei=u.length>0,u.length>0&&(this.#Ai.data=u.map(t=>({...t,lang:this.#Ji})),e&&h.push([this.#Ai,e]))),p&&(this.#ki=p.length>0,p.length>0&&(this.#Ri=p,this.#fi.data=p.map(t=>({...t,lang:this.#Ji})),i&&h.push([this.#fi,i]))),this.#oo(),this.#Yi=xy,setTimeout(()=>{if(this.#Yi===xy){for(const[t,e]of h){const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)}this.#Yi=null}})}#go(){this.#Yi!==xy&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#Li.value),this.#mo())}#Mo(){if(this.#Yi===xy)return;this.#Yi=null;const t=this.#Ai.value;if(this.#No(),!this.#Fi&&t){const e=this.#Li.value;e&&this.#Io(e,t)}this.#mo()}#lo(t){if(!t)return;const e=this.#Oi.get(t);if(!e)return;const{hasSubdivisions:i,subdivisionType:o}=e;!this.#Zi&&i?(this.#yo(o),this.#xo(t)):this.#Fi||this.#Io(t)}#yo(t){const e=this.#jo(t);this.#qi||this.#ho(this.#Ai,"label",e||null),this.#_i||this.#ho(this.#Ai,"placeholder",e||null)}#jo(t){const e=this.#Ui?.subdivisionTypes,i=e?.[t]??e?._fallback;if(!i)return t;const o=this.#Ji;return o&&(i[o]||i[o.split("-")[0]])||i.en||t}async#To(){try{this.#Ui=await by(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#Li.setAttribute("loading","true");try{const[t]=await Promise.all([My(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${Iy}] Failed to load countries`,t)}finally{this.#Li.removeAttribute("loading")}}}async#xo(t){this.#Do(this.#Ai,!0),this.#Ai.setAttribute("loading","true");try{const e=await my(t,this.#Hi);this.#Wi=e,this.#Ei=e.length>0,this.#oo(),e.length>0?this.#Ai.data=e.map(t=>({...t,lang:this.#Ji})):this.#Fi||this.#Io(t)}catch(e){console.error(`[${Iy}] Failed to load subdivisions for ${t}`,e),this.#Ei=!1,this.#vo()}finally{this.#Ai.removeAttribute("loading")}}async#Io(t,e){this.#fi.setAttribute("loading","true");try{const i=await(e?yy(t,e,this.#Hi):Ny(t,this.#Hi));this.#ki=i.length>0,this.#oo(),i.length>0&&(this.#Ri=i,this.#fi.data=i.map(t=>({...t,lang:this.#Ji})))}catch(i){console.error(`[${Iy}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#fi.removeAttribute("loading")}}#co(){if(this.#Vi){const t=this.#Li.value;this.#po(this.#Vi),t&&this.#zo(this.#Li,t)}if(this.#Wi&&this.#Ei){const t=this.#Ai.value;this.#Ai.data=this.#Wi.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#Ai,t)}if(this.#Ri&&this.#ki){const t=this.#fi.value;this.#fi.data=this.#Ri.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#fi,t)}const t=this.#Li.value;if(t){const e=this.#Oi.get(t);e?.subdivisionType&&this.#yo(e.subdivisionType)}}#po(t){const e=this.#Co(t);this.#Li.data=e.map(t=>({...t,lang:this.#Ji})),this.#Oi=new Map(t.map(t=>[t.iso2,t]))}#Co(t){const e=this.#Xi,i=this.#Ki;let o=e.length?t.filter(t=>e.includes(t.iso2)):[...t];return o.sort((t,e)=>jy(t,this.#Ji).localeCompare(jy(e,this.#Ji),this.#Ji)),i.length?[...i.map(t=>o.find(e=>e.iso2===t)).filter(Boolean),...o.filter(t=>!i.includes(t.iso2))]:o}#vo(){this.#Do(this.#Li,!this.#Bi),this.#Do(this.#Ai,!this.#Zi&&(this.#Gi||this.#Ei)),this.#Do(this.#fi,!this.#Fi&&(this.#Gi||this.#ki))}#Do(t,e){t?.classList.toggle(`${Iy}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#Li,"required",this.#Bi?null:t),this.#ho(this.#Ai,"required",this.#Zi||!this.#Gi&&!this.#Ei?null:t),this.#ho(this.#fi,"required",this.#Fi||!this.#Gi&&!this.#ki?null:t)}#oo(){this.#vo(),this.#ao(),this.setCustomValidity("")}#bo(){this.#Ai.value="",this.#Ai.data=[],this.#Ei=!1,this.#qi||this.#Ai.removeAttribute("label"),this.#_i||this.#Ai.removeAttribute("placeholder"),this.#oo()}#No(){this.#fi.value="",this.#fi.data=[],this.#Ri=null,this.#ki=!1,this.#oo()}#mo(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#ho(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#io(){return this.#to.find(t=>!t.classList.contains(`${Iy}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),Ey=L("country-subdivision-city-field"),ky={selector:()=>":host"},Oy={selector:`${Iy} > .wrapper`},Vy={selector:`${Iy} > .wrapper > descope-combo-box`},Wy=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...ky,property:"width"},hostDirection:[{...ky,property:"direction"},{...Vy,property:To.cssVarList.hostDirection}],flexDirection:{...Oy,property:"flex-direction"},flexGap:{...Oy,property:"gap"},itemAlignment:{...Oy,property:"align-items"},itemMinWidth:{...Vy,property:"min-width"},itemFlexGrow:{...Vy,property:"flex-grow"},itemWidth:{...Vy,property:To.cssVarList.hostWidth}}}),gt,kt({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),Mt,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Iy}\n tabindex="-1"\n ></${Iy}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Iy),f(this,this.inputElement,{includeAttrs:["size","bordered","required","label-type","disabled","readonly","hide-country","hide-subdivision","hide-city","default-country","allowed-countries","pinned-countries","country-label","subdivision-label","city-label","country-placeholder","subdivision-placeholder","city-placeholder","data-source-base-url","lang","invalid"]}),S(this,this.inputElement,{includeAttrs:["invalid"]})}})(Lt({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${Iy} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Iy} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${Iy}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:Ey})),Ry=Wy.cssVarList,Uy={[Ry.hostWidth]:_p.width,[Ry.hostDirection]:_p.direction,[Ry.flexDirection]:"column",[Ry.flexGap]:"0.5em",[Ry.itemAlignment]:"stretch",[Ry.itemFlexGrow]:"0",[Ry.itemWidth]:"auto",_fullWidth:{[Ry.hostWidth]:"100%"},_horizontal:{[Ry.flexDirection]:"row",[Ry.itemFlexGrow]:"1"}};var Yy=Object.freeze({__proto__:null,default:Uy,vars:Ry});const Qy=L("attachment"),Py=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],By=Py[0];class Zy extends(It({componentName:Qy,baseSelector:"descope-anchored"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <div slot="anchored" class="attachment-container">\n <slot name="attachment"></slot>\n </div>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.attachmentSlot=this.shadowRoot.querySelector('slot[name="attachment"]'),this.anchored=this.shadowRoot.querySelector("descope-anchored")}get#So(){return this.attachmentSlot?.assignedElements()[0]}static get observedAttributes(){return[...super.observedAttributes||[],"position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"position"===t&&e!==i&&this.#wo()}init(){super.init?.(),E("\n :host {\n display: inline-block;\n }\n :host(.hidden) {\n display: none;\n }\n .attachment-container {\n position: absolute;\n z-index: 1;\n pointer-events: none;\n width: 100%;\n display: flex;\n align-items: center;\n container-type: inline-size;\n }\n",this),this.#wo();const t=this.shadowRoot.querySelector(".attachment-container");v(t,()=>this.#Lo(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#Lo()),this.defaultSlot.addEventListener("slotchange",()=>{this.#Ao(),window.requestAnimationFrame(()=>this.#fo())}),window.requestAnimationFrame(()=>this.#Ao())}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=v(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#fo(){const t=this.defaultSlot?.assignedElements()?.[0],e=t?.getBoundingClientRect();if(e){const t=e.width;this.#So?.setAttribute("data-attachment-size",Number(t))}}#Ao(){const t=this.defaultSlot?.assignedElements()?.length>0;this.classList.toggle("hidden",!t)}#Lo(){const t=this.shadowRoot.querySelector(".attachment-container")?.getAttribute("st-host-direction");t&&this.#So?.setAttribute("st-host-direction",t)}get offsetX(){return this.getAttribute("offset-x")||"0px"}get offsetY(){return this.getAttribute("offset-y")||"0px"}#wo(){const t=this.getAttribute("position");Py.includes(t)||this.setAttribute("position",By)}}const Fy={selector:()=>".attachment-container"},Gy=T(ht({mappings:{transform:{...Fy},justifyContent:{...Fy},maxWidth:{...Fy},top:{...Fy},bottom:{...Fy},left:{...Fy},right:{...Fy},offsetX:{},offsetY:{}}}),gt,Mt)(Zy),Hy=Gy.cssVarList,Jy=`calc(8px + var(${Hy.offsetX}))`,$y={[Hy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[Hy.transform]:"translateY(-50%)",[Hy.justifyContent]:"start",[Hy.left]:Jy,[Hy.top]:rt(Hy.offsetY)},"top-center":{[Hy.transform]:"translate(-50%, -50%)",[Hy.justifyContent]:"center",[Hy.top]:rt(Hy.offsetY),[Hy.left]:"50%"},"top-end":{[Hy.transform]:"translateY(-50%)",[Hy.justifyContent]:"end",[Hy.right]:Jy,[Hy.top]:rt(Hy.offsetY)},"bottom-start":{[Hy.transform]:"translateY(50%)",[Hy.justifyContent]:"start",[Hy.left]:Jy,[Hy.bottom]:rt(Hy.offsetY)},"bottom-center":{[Hy.bottom]:rt(Hy.offsetY),[Hy.transform]:"translate(-50%, 50%)",[Hy.justifyContent]:"center",[Hy.left]:"50%"},"bottom-end":{[Hy.transform]:"translateY(50%)",[Hy.justifyContent]:"end",[Hy.right]:Jy,[Hy.bottom]:rt(Hy.offsetY)}}};var qy=Object.freeze({__proto__:null,default:$y}),_y="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",Xy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=";const Ky=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},tb={apple:{light:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9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d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iIzYzNmM3NCIvPjwvc3ZnPg==",dark:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:Xy,dark:_y}},eb=L("user-passkeys"),ib=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=tb[t]||tb.other;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),l=i&&r.createdAtLabel?`${r.createdAtLabel} `:"",d=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,r.format),c=document.createElement("template");return c.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="main">\n <span class="item">\n <descope-icon class="item-icon" src="${s}" src-dark="${a}"></descope-icon>\n <descope-text class="item-name" variant="body1" mode="primary"></descope-text>\n </span>\n <span class="item-panel">\n ${r.allowRemove?'<descope-link variant="text" mode="primary" size="md" ellipsis="true" data-action="remove-passkey" class="remove-button">\n <div class="remove-button-content">\n </div>\n </descope-link>':'<descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg=="></descope-icon>'}\n </span>\n </div>\n <div class="meta">\n <descope-text variant="body2" mode="primary">${l}</descope-text>\n <descope-text class="date" variant="body2" mode="primary">\n ${d}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,c.content.querySelector(".item-name").textContent=e,r.allowRemove&&((t,e,i)=>{const o=t.content.querySelector(".remove-button-content");o.dataset.passkeyId=e;const n=W(i,"remove-button");n&&o.append(n)})(c,t,r),c},ob=It({componentName:eb,baseSelector:Mu.componentName}),{host:nb,methodIconSlotted:rb,addIconSlotted:sb}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},ab=T(ht({mappings:{hostWidth:{...nb,property:"width"},hostMinWidth:{...nb,property:"min-width"},hostDirection:[{...nb,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"},{selector:()=>"descope-link",property:Qi.cssVarList.hostDirection}],headerGap:{selector:()=>".method",property:"gap"},listGap:{selector:()=>"descope-list",property:"margin-top"},listItemsGap:{property:Mu.cssVarList.gap},listBackgroundColor:{selector:()=>Mu.componentName,property:Mu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderRadius},listBorderWidth:{selector:()=>Mu.componentName,property:Mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>Mu.componentName,property:Mu.cssVarList.boxShadow},listPadding:[{selector:()=>Mu.componentName,property:Mu.cssVarList.verticalPadding},{selector:()=>Mu.componentName,property:Mu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:pu.componentName,property:pu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:pu.componentName,property:pu.cssVarList.horizontalPadding},itemCursor:{selector:pu.componentName,property:pu.cssVarList.cursor},itemOutline:{selector:pu.componentName,property:pu.cssVarList.outline},itemBorderColor:{selector:pu.componentName,property:pu.cssVarList.borderColor},itemBorderRadius:{selector:pu.componentName,property:pu.cssVarList.borderRadius},itemBackgroundColor:{selector:pu.componentName,property:pu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},itemPanelGap:{selector:()=>".main",property:"gap"},itemIconGap:{selector:()=>".item",property:"gap"},itemIconSize:[{selector:()=>".item-icon",property:"width"},{selector:()=>".item-icon",property:"height"}],addButtonGap:{selector:()=>".button",property:"margin-inline-end"},dateGap:{selector:" .meta",property:"gap"},removeButtonGap:{selector:()=>".remove-button-content",property:"gap"},iconColor:{selector:()=>Vo.componentName,property:Vo.cssVarList.iconColor},iconSize:[{...rb,property:"height"},{...sb,property:"height"}]}}),gt,Rt({itemRenderer:ib,sortFn:(t,e)=>Ky(e.createdAt)-Ky(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),Mt)(class extends ob{static get observedAttributes(){return["label","add-passkey-button-label","remove-passkey-button-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="header">\n <div class="method">\n <slot name="method-icon"></slot>\n <descope-text class="method-label" st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n <span class="button">\n <descope-button class="add-passkey-button" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n </span>\n </div>\n\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n\n <slot name="remove-button" class="hidden"></slot>\n ',this.methodLabel=this.shadowRoot.querySelector(".method-label"),this.addPasskeyButton=this.shadowRoot.querySelector(".add-passkey-button"),this.appsList=this.shadowRoot.querySelector("descope-list"),this.removeButton=this.shadowRoot.querySelector('slot[name="remove-button"]'),E('\n .remove-button-content {\n display: flex;\n align-items: center;\n }\n :host {\n display: inline-block;\n }\n\n .header {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header .method {\n display: flex;\n flex: 1;\n min-width: 0;\n }\n\n slot[name="method-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n }\n\n .button {\n min-width: 0;\n max-width: 50%;\n flex-shrink: 1;\n }\n\n .add-passkey-button {\n align-self: center;\n max-width: 100%;\n }\n\n .add-passkey-button > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .descope-list-item {\n min-width: 0;\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 .item-panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n align-items: center;\n cursor: pointer;\n }\n\n .item {\n display: flex;\n min-width: 0;\n }\n\n .item-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .date {\n min-width: fit-content;\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-button {\n width: 100%;\n }\n descope-link.remove-button::part(wrapper) {\n display: flex;\n width: 100%;\n }\n .hidden {\n display: none\n }\n\n ',this)}init(){super.init?.(),this.appsList.itemRenderer=ib,this.appsList.addEventListener("click",this.onRemoveClick.bind(this)),this.addPasskeyButton.addEventListener("click",this.onAddClick.bind(this)),f(this.appsList,this,{includeAttrs:["empty"]}),this.removeButton.addEventListener("slotchange",()=>{this.data=[...this.data]}),this.onLabelChange(),this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel)}onAddClick(){this.readOnly||this.dispatchEvent(new CustomEvent("add-passkey-clicked",{bubbles:!0,detail:{action:"add-passkey"}}))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-passkey-id]"),i=e?.getAttribute("data-passkey-id");i&&this.dispatchEvent(new CustomEvent("remove-passkey-clicked",{bubbles:!0,detail:{id:i,action:"remove-passkey"}}))}get label(){return this.getAttribute("label")||"Passkey"}get readOnly(){return"true"===this.getAttribute("readonly")}get allowRemove(){return"true"===this.getAttribute("allow-remove")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get addPasskeyButtonLabel(){return this.getAttribute("add-passkey-button-label")||"Add"}get removePasskeyButtonLabel(){return this.getAttribute("remove-passkey-button-label")||"Remove"}get createdAtLabel(){return this.getAttribute("created-at-label")||"Date added:"}get direction(){return this.getAttribute("st-host-direction")}onLabelChange(){this.methodLabel.innerText=this.label,this.methodLabel.setAttribute("title",this.label)}updateButtonLabel(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.textContent=e):i&&t.removeChild(i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"add-passkey-button-label"===t?this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel):"empty"===t&&this.appsList.classList.toggle("hidden","true"===i))}}),lb=ab.cssVarList,db={[lb.hostWidth]:"auto",[lb.hostWidth]:"300px",[lb.hostMinWidth]:"300px",[lb.headerGap]:vp.spacing.lg,[lb.listGap]:vp.spacing.xl,[lb.listBackgroundColor]:"transparent",[lb.listBorderRadius]:"0",[lb.listBorderWidth]:"0",[lb.listPadding]:"0",[lb.listBoxShadow]:"none",[lb.listItemsGap]:vp.spacing.lg,[lb.itemBorderColor]:vp.colors.surface.light,[lb.itemVerticalPadding]:vp.spacing.lg,[lb.itemHorizontalPadding]:vp.spacing.lg,[lb.itemBorderRadius]:vp.radius.xs,[lb.itemOutline]:"transparent",[lb.itemBackgroundColor]:"transparent",[lb.itemCursor]:"default",[lb.itemContentGap]:vp.spacing.sm,[lb.itemPanelGap]:vp.spacing.md,[lb.itemIconGap]:vp.spacing.md,[lb.itemIconSize]:"24px",[lb.addButtonGap]:vp.spacing.sm,[lb.dateGap]:vp.spacing.xs,[lb.removeButtonGap]:vp.spacing.sm,[lb.iconSize]:"1.5em",[lb.iconColor]:"currentcolor",_fullWidth:{[lb.hostWidth]:"100%"}};var cb=Object.freeze({__proto__:null,default:db,vars:lb});const ub=nt(vp),pb=Kn.cssVarList,hb={[pb.hostWidth]:_p.width,[pb.hostMinWidth]:_p.minWidth,[pb.hostDirection]:_p.direction,[pb.fontSize]:_p.fontSize,[pb.fontFamily]:_p.fontFamily,[pb.labelFontSize]:_p.labelFontSize,[pb.labelFontWeight]:_p.labelFontWeight,[pb.inputValueFontWeight]:_p.inputValueFontWeight,[pb.inputPlaceholderFontWeight]:_p.inputPlaceholderFontWeight,[pb.helperTextFontWeight]:_p.helperTextFontWeight,[pb.errorMessageFontWeight]:_p.errorMessageFontWeight,[pb.labelTextColor]:_p.labelTextColor,[pb.labelRequiredIndicator]:_p.requiredIndicator,[pb.errorMessageTextColor]:_p.errorMessageTextColor,[pb.inputValueTextColor]:_p.valueTextColor,[pb.inputPlaceholderColor]:_p.placeholderTextColor,[pb.inputBorderWidth]:_p.borderWidth,[pb.inputBorderStyle]:_p.borderStyle,[pb.inputBorderColor]:_p.borderColor,[pb.inputBorderRadius]:_p.borderRadius,[pb.inputOutlineWidth]:_p.outlineWidth,[pb.inputOutlineStyle]:_p.outlineStyle,[pb.inputOutlineColor]:_p.outlineColor,[pb.inputOutlineOffset]:_p.outlineOffset,[pb.inputBackgroundColor]:_p.backgroundColor,[pb.inputHeight]:_p.inputHeight,[pb.inputHorizontalPadding]:_p.horizontalPadding,[pb.helperTextColor]:_p.helperTextColor,[pb.textAlign]:_p.textAlign,textAlign:{right:{[pb.inputTextAlign]:"right"},left:{[pb.inputTextAlign]:"left"},center:{[pb.inputTextAlign]:"center"}},[pb.labelPosition]:_p.labelPosition,[pb.labelTopPosition]:_p.labelTopPosition,[pb.labelHorizontalPosition]:_p.labelHorizontalPosition,[pb.inputTransformY]:_p.inputTransformY,[pb.inputTransition]:_p.inputTransition,[pb.marginInlineStart]:_p.marginInlineStart,[pb.placeholderOpacity]:_p.placeholderOpacity,[pb.inputVerticalAlignment]:_p.inputVerticalAlignment,[pb.valueInputHeight]:_p.valueInputHeight,[pb.valueInputMarginBottom]:_p.valueInputMarginBottom,[pb.inputIconOffset]:ub.spacing.md,[pb.inputIconSize]:_p.inputIconSize,[pb.inputIconColor]:_p.placeholderTextColor,[pb.errorMessageIcon]:_p.errorMessageIcon,[pb.errorMessageIconSize]:_p.errorMessageIconSize,[pb.errorMessageIconPadding]:_p.errorMessageIconPadding,[pb.errorMessageIconRepeat]:_p.errorMessageIconRepeat,[pb.errorMessageIconPosition]:_p.errorMessageIconPosition,[pb.errorMessageFontSize]:_p.errorMessageFontSize,[pb.inputTextSecurity]:_p.inputTextSecurity};var gb=Object.freeze({__proto__:null,default:hb,textField:hb,vars:pb});class Mb{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){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(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const mb=["MM/DD","DD/MM"],yb=mb[0],bb="/",Nb=[31,29,31,30,31,30,31,31,30,31,30,31],Ib={id:"month",min:1,max:12,placeholder:"MM"},xb={id:"day",min:1,max:31,placeholder:"DD"},jb={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},Tb=t=>{const e=(t=>`^${t.split(bb).map(t=>jb[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(bb);return t=>{const i={};return e.forEach((e,o)=>{i[e]=Number(t[o+1])}),{month:i.MM,day:i.DD}}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getParts:t=>{const e=o.exec(t);return e?i(e):null}}},Db=Object.fromEntries(mb.map(t=>[t,Tb(t)])),vb=(t,e)=>{const i=t?.trim?.();return i?Db[e]?.getParts(i)??null:null},zb=L("month-day-field"),Cb=Ct({componentName:zb,baseSelector:"vaadin-popover"}),Sb=["format","opened","initial-value","readonly","disable-picker"],wb=["picker-months","picker-label-submit","picker-label-cancel"],Lb=[...Sb,...wb],Ab=Kn.cssVarList,{host:fb,input:Eb,inputEleRTL:kb,toggleButton:Ob,overlay:Vb,backdrop:Wb,bottomNav:Rb,navButton:Ub}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-picker"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"},bottomNav:{selector:"vaadin-popover-overlay .bottom-nav"},navButton:{selector:"vaadin-popover-overlay .bottom-nav descope-button"}},Yb=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{iconMargin:{...Ob,property:"margin-inline-end"},hostWidth:{...fb,property:"width"},hostDirection:{...fb,property:"direction"},textAlign:{...Eb,property:"text-align"},rtlInputDirection:{...kb,property:Ab.inputDirection},rtlInputAlignment:{...kb,property:Ab.inputTextAlign},overlayGap:{property:()=>Yb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Yb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Yb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Yb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Yb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Yb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Yb.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageFontSize},labelFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.labelFontWeight},inputValueFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:Kn.componentName,property:Kn.cssVarList.errorMessageFontWeight}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...Vb,property:"margin-top"},backgroundColor:{...Vb},backdropBackgroundColor:{...Wb,property:"background-color"},backdropPointerEvents:{...Wb,property:"pointer-events"},padding:{...Vb},boxShadow:{...Vb},outlineWidth:{...Vb},outlineColor:{...Vb},outlineStyle:{...Vb},bottomNavTopPadding:{...Rb,property:"padding-top"},bottomNavBottomPadding:{...Rb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...Rb,property:"padding-left"},{...Rb,property:"padding-right"}],bottomNavAlignment:{...Rb,property:"justify-content"},bottomNavGap:{...Rb,property:"gap"},navButtonPadding:[{...Ub,property:Vo.cssVarList.horizontalPadding},{...Ub,property:Vo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Ub,property:Vo.cssVarList.outlineWidth}}}),gt,Mt)(class extends Cb{format=yb;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#lt()};#Vo=[new Mb(Ib,this.#ko.bind(this)),new Mb(xb,this.#ko.bind(this))];static get observedAttributes(){return[].concat(Cb.observedAttributes||[],Lb)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-picker">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik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IxNCAyMCAxNCAxOS43NzQgMTQgMTkuNDk1M1YxOC41MDQ3QzE0IDE4LjIxNCAxNC4yMjYgMTggMTQuNTA0NyAxOFpNMTcuNTA0NyAxOEgxOC40OTUzQzE4Ljc4NiAxOCAxOSAxOC4yMjYgMTkgMTguNTA0N1YxOS40OTUzQzE5IDE5Ljc4NiAxOC43NzQgMjAgMTguNDk1MyAyMEgxNy41MDQ3QzE3LjIxNCAyMCAxNyAxOS43NzQgMTcgMTkuNDk1M1YxOC41MDQ3QzE3IDE4LjIxNCAxNy4yMjYgMTggMTcuNTA0NyAxOFpNMTcuNTA0NyAxMkgxOC40OTUzQzE4Ljc4NiAxMiAxOSAxMi4yMjYgMTkgMTIuNTA0N1YxMy40OTUzQzE5IDEzLjc4NiAxOC43NzQgMTQgMTguNDk1MyAxNEgxNy41MDQ3QzE3LjIxNCAxNCAxNyAxMy43NzQgMTcgMTMuNDk1M1YxMi41MDQ3QzE3IDEyLjIxNCAxNy4yMjYgMTIgMTcuNTA0NyAxMlpNMTcuNTA0NyA5SDE4LjQ5NTNDMTguNzg2IDkgMTkgOS4yMjU5NiAxOSA5LjUwNDY4VjEwLjQ5NTNDMTkgMTAuNzg2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+Cjwvc3ZnPgo="></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',E('\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-picker {\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-picker {\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-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#Vo.find(t=>t.id===Ib.id)}get dayCounter(){return this.#Vo.find(t=>t.id===xb.id)}get sortedCounters(){return this.format.split(bb).map(t=>this.#Vo.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#Eo]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(bb)}get isCountersEmpty(){return this.#Vo.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#Vo.some(t=>!t.isInRange(t.numberValue))}get disablePicker(){return"true"===this.getAttribute("disable-picker")}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get picker(){return this.overlay?.querySelector("descope-month-day-field-picker")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isCountersEmpty||this.isCountersOutOfRange?"":((t,e)=>this.format.replace(/MM|DD/g,i=>String("MM"===i?t:e).padStart(2,"0")))(this.monthCounter.numberValue,this.dayCounter.numberValue)}set value(t){const e=t?vb(String(t),this.format):null;e?this.#Wo(e.month,e.day):(this.#Vo.forEach(t=>t.clear()),this.clearInputEle())}get isSelectAll(){const{value:t,selectionStart:e,selectionEnd:i}=this.inputElement;return t.length===e+i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:!this.isCountersEmpty&&this.isCountersOutOfRange?{patternMismatch:!0}:{}}reportValidity(){this.inputElement.reportValidity()}#Oo(){const t=this.monthCounter.numberValue,e=Nb[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#Wo(t,e){this.monthCounter.replaceValue(t),this.#Oo(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#lt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#Vo.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Ro(),this.#Uo(),this.#ko(),this.#Yo(),setTimeout(()=>this.#it(),0)}#Yo(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#Qo.bind(this)),this.inputElement.addEventListener("focus",this.#Po.bind(this)),this.inputElement.addEventListener("blur",this.#Bo.bind(this)),this.inputElement.addEventListener("click",this.#Zo.bind(this)),this.inputElement.addEventListener("keydown",this.#Fo.bind(this)),this.inputElement.addEventListener("beforeinput",this.#Go.bind(this)),this.inputElement.addEventListener("pointerdown",this.#Ho.bind(this)),this.inputElement.addEventListener("paste",this.#Jo.bind(this)),f(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","data-errormessage-value-missing","data-errormessage-pattern-mismatch","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}#Uo(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),E("\n .overlay-hidden { visibility: hidden; }\n .bottom-nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n ",t.getRootNode())),this.#$o(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#pt(),t.classList.remove("overlay-hidden")},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { margin-left: 0; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.picker.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${l}px;\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=E(d,t)}#ut(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#qo(),this.cancelButton.addEventListener("click",this.#_o.bind(this)),this.submitButton.addEventListener("click",this.#Xo.bind(this)),e.addEventListener("change",this.#Ko.bind(this)),t}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#$o(){this.picker&&(this.isCountersEmpty?this.picker.value="":(this.picker.month=this.monthCounter.isEmpty?null:this.monthCounter.numberValue,this.picker.day=this.dayCounter.isEmpty?null:this.dayCounter.numberValue),f(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#tn(){return this.getAttribute("picker-label-submit")||"Done"}get#en(){return this.getAttribute("picker-label-cancel")||"Cancel"}#qo(){this.submitButton&&(this.submitButton.textContent=this.#tn,this.cancelButton.textContent=this.#en)}#Ko(t){const{month:e,day:i}=t.detail||{};this.#in(null==e||null==i)}#in(t){if(!this.submitButton)return;const e=this.submitButton.shadowRoot?.querySelector("vaadin-button");t?(this.submitButton.setAttribute("disabled","true"),e?.setAttribute("disabled","true")):(this.submitButton.removeAttribute("disabled"),e?.removeAttribute("disabled"))}#_o(){this.closePopover()}#Xo(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#Wo(t,e),this.#lt(),this.closePopover()):this.closePopover()}#Qo(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#on(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#Go(t){var e;t.preventDefault(),this.#nn(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#rn(t.data),this.updateCountersDisplay()):t.inputType&&this.#sn(t)}#nn(){this.isSelectAll&&this.#an()}#rn(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#ln(),this.#dn()}#cn(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#un(t){this.#Eo=this.#cn(t.target?.selectionStart||this.inputElement.selectionStart)}#an(){this.#Eo=0}#ln(){this.#Eo<this.#Vo.length-1&&(this.#Eo=Math.min(this.#Eo+1,1))}#pn(){this.#Eo>0&&(this.#Eo=0)}#dn(){this.#Eo<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#Eo).reduce((t,e)=>t+e.length,this.#Eo);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#Eo].length)})}#Fo(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#hn(t):(this.#nn(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#ln():"ArrowLeft"===t.key&&this.#pn(),this.#dn())}#sn(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#gn(),this.#dn()))}#gn(){if(this.isSelectAll)return void this.#Mn();const t=this.activeCounter;t.isEmpty?(this.#pn(),this.#dn()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#dn()})}#Zo(t){this.opened||(t.preventDefault(),this.#un(t),this.#dn())}#Ho(t){setTimeout(()=>this.#Zo(t),150)}#Po(){this.isReadOnly||setTimeout(()=>this.#mn())}#Bo(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#mn(){this.inputElement.value||(this.inputElement.value=this.format),this.#an(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#Mn(){this.resetCounters(),this.#an(),this.#mn()}#yn(t){Object.keys(Db).includes(t)&&(this.format=t,this.#Ro(),this.updateCountersDisplay())}#Ro(){const t=this.getAttribute("format")||this.format||yb,e=Db[t]?t:yb;this.format=e,this.setAttribute("pattern",Db[e].pattern)}#hn(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.#Mn()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.#dn()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#Jo(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=vb(e,this.format);if(i)return this.#Wo(i.month,i.day),this.#ko(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const o=Number(e);o&&this.activeCounter.isInRange(o)&&(this.activeCounter.set(String(o)),setTimeout(()=>this.#dn()))}#bn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#on("true"!==i),Sb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():wb.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),Qb=nt(vp),Pb="#00000020",{shadow:Bb}=Qb,Zb=Yb.cssVarList,Fb={[Zb.hostWidth]:_p.width,[Zb.hostDirection]:_p.direction,[Zb.iconMargin]:"0.375em",[Zb.overlay.marginTop]:_p.outlineWidth,[Zb.overlay.backgroundColor]:_p.backgroundColor,[Zb.overlay.backdropBackgroundColor]:"transparent",[Zb.overlay.backdropPointerEvents]:"all",[Zb.overlay.boxShadow]:`${Bb.wide.xl} ${Pb}, ${Bb.narrow.xl} ${Pb}`,[Zb.overlay.outlineWidth]:"0",[Zb.overlay.outlineColor]:"transparent",[Zb.overlay.outlineStyle]:"none",[Zb.overlay.padding]:"0",[Zb.overlay.bottomNavTopPadding]:"0",[Zb.overlay.bottomNavBottomPadding]:"0.75em",[Zb.overlay.bottomNavHorizontalPadding]:"1em",[Zb.overlay.bottomNavAlignment]:"space-between",[Zb.overlay.bottomNavGap]:"0.5em",[Zb.overlay.navButtonPadding]:"0",[Zb.overlay.navButtonOutlineWidth]:"0",[Zb.rtlInputDirection]:"ltr",[Zb.rtlInputAlignment]:"right",[Zb.errorMessageIcon]:_p.errorMessageIcon,[Zb.errorMessageIconSize]:_p.errorMessageIconSize,[Zb.errorMessageIconPadding]:_p.errorMessageIconPadding,[Zb.errorMessageIconRepeat]:_p.errorMessageIconRepeat,[Zb.errorMessageIconPosition]:_p.errorMessageIconPosition,[Zb.errorMessageFontSize]:_p.errorMessageFontSize,[Zb.labelFontWeight]:_p.labelFontWeight,[Zb.inputValueFontWeight]:_p.inputValueFontWeight,[Zb.inputPlaceholderFontWeight]:_p.inputPlaceholderFontWeight,[Zb.helperTextFontWeight]:_p.helperTextFontWeight,[Zb.errorMessageFontWeight]:_p.errorMessageFontWeight};var Gb=Object.freeze({__proto__:null,default:Fb,vars:Zb});const Hb=[31,29,31,30,31,30,31,31,30,31,30,31],Jb=["January","February","March","April","May","June","July","August","September","October","November","December"],$b=L("month-day-field-picker"),qb=["initial-value","picker-months","st-host-direction","disabled","full-width"],_b=Ct({componentName:$b,baseSelector:"div"}),Xb=(t,e)=>{const i=document.createDocumentFragment();t.forEach(({id:t,name:e})=>{const o=document.createElement("div");o.className="combo-box-item",o.setAttribute("data-id",String(t)),o.setAttribute("data-name",e),o.textContent=e,i.appendChild(o)}),e.replaceChildren(i)},{picker:Kb,monthInput:tN,dayInput:eN,inputsRow:iN}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},oN=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...Kb,property:"padding"},inputsRowGap:{...iN,property:"gap"},inputWidth:[{...tN,property:"width"},{...eN,property:"width"}]}}),gt,Mt)(class extends _b{static get observedAttributes(){return[].concat(_b.observedAttributes||[],qb)}#Nn=null;#In=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="picker">\n <div class="inputs-row">\n <descope-combo-box\n class="month-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n <descope-combo-box\n class="day-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n </div>\n </div>\n ',E("\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 .inputs-row {\n display: flex;\n }\n\n .inputs-row > descope-combo-box {\n flex: 1;\n min-width: 0;\n }\n ",this),this.monthInput=this.shadowRoot.querySelector(".month-input"),this.dayInput=this.shadowRoot.querySelector(".day-input")}get month(){return this.#Nn}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#Nn=null:this.#Nn=e,null!=this.#In&&null!=this.#Nn&&this.#In>Hb[this.#Nn-1]&&(this.#In=1),this.#xn(),this.#jn(),this.#Tn(),this.#v()}get day(){return this.#In}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#Nn&&e>Hb[this.#Nn-1]?this.#In=null:this.#In=e,this.#Tn(),this.#v()}set value(t){if(!t)return void this.#Dn();const e=/^(0?[1-9]|1[0-2])\D(0?[1-9]|[12][0-9]|3[01])$/.exec(String(t).trim());if(!e)return;const i=Number(e[1]),o=Number(e[2]);this.month=i,this.day=o}#Dn(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#Nn||null==this.#In?"":`${String(this.#Nn).padStart(2,"0")}/${String(this.#In).padStart(2,"0")}`}init(){super.init?.(),this.#vn(),this.#zn();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#Nn&&this.#Dn(),f(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),f(this,this.dayInput,{includeAttrs:["disabled","size","st-host-direction"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("initial-value"===t?this.value=i:"picker-months"===t&&this.#Cn())}get#Sn(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:Jb})(this.getAttribute("picker-months"))}#vn(){this.#Cn(),this.monthInput.addEventListener("input",this.#wn.bind(this))}#zn(){this.dayInput.addEventListener("input",this.#Ln.bind(this))}#Cn(){Xb(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=Hb[this.#Nn-1]??0;Xb((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#xn(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#Nn?String(this.#Nn):"")})}#Tn(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#In?String(this.#In):"")})}#wn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#Nn&&(this.month=i)}#Ln(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#In&&(this.day=i)}#v(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#Nn,day:this.#In},bubbles:!0,composed:!0}))}getValidity(){return{}}}),nN=oN.cssVarList,rN={[nN.fontFamily]:_p.fontFamily,[nN.fontSize]:_p.fontSize,[nN.hostDirection]:_p.direction,[nN.inputWidth]:"130px",[nN.pickerPadding]:"1em 1em",[nN.inputsRowGap]:"0.5em",_fullWidth:{[nN.hostWidth]:"100%"}};var sN=Object.freeze({__proto__:null,default:rN,vars:nN});const aN={equal:{label:"Equal"},"not-equal":{label:"Not Equal"},contains:{label:"Contains"},"not-contains":{label:"Excludes"},"starts-with":{label:"Starts with"},"ends-with":{label:"Ends with"},gt:{label:"Greater Than"},lt:{label:"Less Than"},gte:{label:"Not Less Than"},lte:{label:"Not Greater Than"},"is-any-of":{label:"Is any of"},"not-any-of":{label:"Not any of"},"is-empty":{label:"Is empty",noValue:!0},"is-not-empty":{label:"Is not empty",noValue:!0}},lN=Object.keys(aN).map(t=>`data-operator-label-${t}`),dN={text:["contains","not-contains","equal","not-equal","starts-with","ends-with","is-empty","is-not-empty"],number:["equal","not-equal","gt","lte","lt","gte","is-empty","is-not-empty"],email:["equal","not-equal","contains","not-contains","is-empty","is-not-empty"],boolean:["equal","not-equal","is-empty","is-not-empty"],singleselect:["equal","not-equal","is-empty","is-not-empty"],multiselect:["is-any-of","not-any-of","is-empty","is-not-empty"]},cN=(t,e)=>({id:t,...e[t]||{}}),uN=(t,e,i,o=aN)=>{const n=((i||dN)[t]||[]).map(t=>cN(t,o));return Array.isArray(e)&&0!==e.length?e.every(t=>"string"==typeof t)?n.filter(t=>e.includes(t.id)):e.map(t=>{const e="string"==typeof t?t:t.id,i="string"==typeof t?{}:t;return{...n.find(t=>t.id===e)||cN(e,o),...i}}):n},pN=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,aN[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},hN=(t,e,i)=>{i.forEach(i=>((t,e,i)=>{Array.from(e.querySelectorAll(`:scope > [data-slot-copy="${i}"]`)).forEach(t=>t.remove()),Array.from(t.children).filter(t=>t.getAttribute?.("slot")===i).forEach(t=>{const o=t.cloneNode(!0);o.setAttribute("data-slot-copy",i),e.appendChild(o)})})(t,e,i))},gN=t=>{let e=t;if("string"==typeof e)try{e=JSON.parse(e)}catch{return[]}return Array.isArray(e)?e.filter(t=>t&&"object"==typeof t&&"string"==typeof t.column&&"string"==typeof t.operator):[]},MN=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var mN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const yN=L("filter-row"),bN=["text","number","email"],NN=["boolean","singleselect"],IN=t=>!t||bN.includes(t),xN=t=>NN.includes(t),jN=t=>"multiselect"===t,TN=()=>new Promise(t=>setTimeout(t)),{host:DN}={host:{selector:()=>":host"}},vN=T(ht({mappings:{hostWidth:{...DN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...DN,property:"direction"},{selector:()=>Vo.componentName,property:Vo.cssVarList.hostDirection},{selector:()=>To.componentName,property:To.cssVarList.hostDirection},{selector:()=>rg.componentName,property:rg.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>To.componentName,property:To.cssVarList.hostWidth},{selector:()=>Kn.componentName,property:Kn.cssVarList.hostWidth},{selector:()=>rg.componentName,property:rg.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Vo.componentName}.delete-btn[disabled="true"]`,property:Vo.cssVarList.iconColor}}}),Mt,t=>class extends t{#Kt=[];#An=null;#fn=!1;#En;#kn;#On;#Vn;#Wn;#Rn;#Un=null;#Yn=(t=>{let e;const i=(...i)=>{clearTimeout(e),e=setTimeout(()=>t(...i),350)};return i.cancel=()=>clearTimeout(e),i})(()=>this.#v());static get observedAttributes(){return[...t.observedAttributes||[],"data","value","disable-delete","label-type","operators-catalog","data-value-label-true","data-value-label-false",...lN]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="row">\n <descope-combo-box class="col-select" placeholder="Column" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <descope-combo-box class="op-select" placeholder="Operator" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <div class="value-wrapper">\n <descope-text-field class="text-value" placeholder="Value" bordered="true"></descope-text-field>\n <descope-combo-box class="combo-value hidden" placeholder="Value" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <descope-multi-select-combo-box class="multi-value hidden" placeholder="Value" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-multi-select-combo-box>\n </div>\n <descope-button class="delete-btn" variant="link" mode="primary" size="md" square="true">\n <slot name="delete-row-icon">\n <descope-icon src="${mN}" src-dark="${mN}"></descope-icon>\n </slot>\n </descope-button>\n </div>\n `,E("\n :host {\n display: block;\n }\n .row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;\n align-items: center;\n }\n .col-select,\n .op-select,\n .value-wrapper {\n min-width: 0;\n overflow: hidden;\n }\n /* Let value inputs shrink to the cell instead of growing to fit their\n content (e.g. the multi-select's chip area). */\n .text-value,\n .combo-value,\n .multi-value {\n min-width: 0;\n }\n .hidden {\n display: none;\n }\n .value-wrapper.no-value {\n visibility: hidden;\n }\n ",this),this.#En=this.shadowRoot.querySelector(".col-select"),this.#kn=this.shadowRoot.querySelector(".op-select"),this.#On=this.shadowRoot.querySelector(".text-value"),this.#Vn=this.shadowRoot.querySelector(".combo-value"),this.#Wn=this.shadowRoot.querySelector(".multi-value"),this.#Rn=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Qn(),this.#Rn.addEventListener("click",()=>this.#Pn("delete")),this.#Pi()}#Pi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Rn].forEach(t=>f(this,t,{includeAttrs:["size","disabled"]})),this.#Bn(),t.forEach(t=>f(this,t,{includeAttrs:["label-type"]}))}#Bn(){const t=t=>({includeAttrs:[t],mapAttrs:{[t]:"placeholder"}});f(this,this.#En,t("data-column-placeholder")),f(this,this.#kn,t("data-operator-placeholder")),[this.#On,this.#Vn,this.#Wn].forEach(e=>f(this,e,t("data-value-placeholder")))}#Zn(t,e){const i=this.#fn;this.#fn=!0,t.value=e,this.#fn=i}#Qn(){this.shadowRoot.querySelector(".row").addEventListener("input",t=>{this.#fn||(t.target===this.#En?this.#Fn():t.target===this.#kn?this.#Gn():this.#Hn()?this.#Yn():this.#v())})}#Hn(){return!this.#On.classList.contains("hidden")}#Jn(t){return this.#Kt.find(e=>e.id===t)}get trueLabel(){return this.getAttribute("data-value-label-true")||"True"}get falseLabel(){return this.getAttribute("data-value-label-false")||"False"}#$n(){return[{value:"true",label:this.trueLabel},{value:"false",label:this.falseLabel}]}#qn(t){return t?uN(t.inputType,t.operators,MN(this,"operators-catalog")).map(t=>{const e=this.getAttribute(`data-operator-label-${t.id}`);return e?{...t,label:e}:t}):[]}#Fn(){const t=this.#Jn(this.#En.value);if(!t)return;this.#Yn.cancel();const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}));const i=e.find(t=>t.id===this.#kn.value)||e[0];i&&this.#Zn(this.#kn,i.id);const o=this.#Un,n=t.inputType,r=o!==n;this.#Un=n,this.#_n(t,i,{resetValue:r}),this.#v()}#Gn(){const t=this.#Jn(this.#En.value),e=this.#qn(t).find(t=>t.id===this.#kn.value);this.#_n(t,e),this.#v()}#_n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#Xn(o),IN(o)?this.#Kn(o,n):xN(o)?this.#tr(t,n):jN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!IN(t)),this.#Vn.classList.toggle("hidden",!xN(t)),this.#Wn.classList.toggle("hidden",!jN(t))}#Kn(t,e){"number"===t?this.#On.setAttribute("type","number"):"email"===t?this.#On.setAttribute("type","email"):this.#On.removeAttribute("type"),e&&this.#Zn(this.#On,"")}#tr(t,e){const i="boolean"===t.inputType?this.#$n():t.options||[];this.#Vn.data=i.map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Vn,"")}#er(t,e){this.#Wn.data=(t.options||[]).map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Wn,[])}#ir(t){return jN(t)?this.#Wn:xN(t)?this.#Vn:IN(t)?this.#On:null}#or(t){const e=this.#ir(t.inputType);return e?e.value??(jN(t.inputType)?[]:""):null}#nr(){const t=this.#En?.value||"",e=this.#kn?.value||"",i=this.#Jn(t),o=this.#qn(i).find(t=>t.id===e),n=!!o?.noValue,r=o&&!n&&i?this.#or(i):null;return{id:this.#An,column:t,operator:e,value:r,noValue:n}}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#v(){this.#Pn("change",{value:this.#nr()})}async#rr(t){if(this.#An=t.id??null,t.column){this.#fn=!0;try{const e=this.#Jn(t.column);if(!e)return;await TN(),this.#En.value=t.column;const i=this.#qn(e);if(this.#kn.data=i.map(t=>({value:t.id,label:t.label})),t.operator){await TN(),this.#kn.value=t.operator;const o=i.find(e=>e.id===t.operator);this.#_n(e,o)}null!==t.value&&void 0!==t.value&&(await TN(),this.#sr(e,t.value))}finally{this.#fn=!1}}}#sr(t,e){const i=t.inputType,o=this.#ir(i);o&&(jN(i)?this.#Zn(o,Array.isArray(e)?e:[]):xN(i)?this.#Zn(o,String(e)):this.#Zn(o,e??""))}#ar(t){const e="floating"===t;[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn].forEach(t=>{if(t)if(e){const e=t.getAttribute("placeholder");e&&t.setAttribute("label",e)}else t.removeAttribute("label")})}get value(){return JSON.stringify(this.#nr())}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&this.#lr(i),"value"===t&&this.#dr(i),"label-type"===t&&this.#ar(i),"disable-delete"===t&&this.#cr(i),("operators-catalog"===t||t.startsWith("data-operator-label-"))&&this.#ur(),"data-value-label-true"!==t&&"data-value-label-false"!==t||this.#pr())}#lr(t){if(t)try{this.#Kt=JSON.parse(t),this.#En.data=this.#Kt.map(t=>({value:t.id,label:t.label}))}catch{}}#dr(t){if(t)try{this.#rr(JSON.parse(t))}catch{}}#cr(t){null!==t&&"false"!==t?this.#Rn.setAttribute("disabled","true"):this.#Rn.removeAttribute("disabled")}#pr(){const t=this.#Jn(this.#En?.value);t&&"boolean"===t.inputType&&this.#Vn&&(this.#Vn.data=this.#$n())}#ur(){const t=this.#Jn(this.#En?.value);if(!t||!this.#kn)return;const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}))}})(It({componentName:yN,baseSelector:".row"})),zN=L("filter-rows"),{host:CN,container:SN,rowsList:wN,actions:LN,addRowIcon:AN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},fN=T(ht({mappings:{hostWidth:{...CN,property:"width"},hostMinWidth:{...CN,property:"min-width"},hostDirection:[{...CN,property:"direction"},{selector:()=>Vo.componentName,property:Vo.cssVarList.hostDirection},{selector:()=>vN.componentName,property:vN.cssVarList.hostDirection}],containerWidth:{...SN,property:"width"},containerPadding:{...SN,property:"padding"},containerGap:{...SN,property:"gap"},listGap:{...wN,property:"gap"},listMaxHeight:{...wN,property:"max-height"},actionsGap:{...LN,property:"gap"},addRowIconSize:[{...AN,property:"width"},{...AN,property:"height"}]}}),Mt,t=>class extends t{#ze=[];#hr=0;#gr(){return this.#hr+=1,`row-${this.#hr}`}#Mr(){return{id:this.#gr(),column:"",operator:"",value:null}}#mr(t){const e=t.value,i=null!=e&&""!==e&&!(Array.isArray(e)&&0===e.length);return!t.column&&!t.operator&&!i}#yr=[];#br;#Nr;#Ir;#xr;static get observedAttributes(){return[...t.observedAttributes||[],"data","value","clear-all-button-label","add-button-label","max-rows"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="container">\n <div class="rows-list"></div>\n <div class="actions">\n <descope-button class="add-row" variant="link" mode="primary">\n <slot name="add-row-icon" slot="prefix"></slot>\n <span class="add-button-label">Add filter</span>\n </descope-button>\n <descope-button class="clear-all" variant="link" mode="error">Clear all</descope-button>\n </div>\n </div>\n ',E('\n :host {\n display: block;\n box-sizing: border-box;\n }\n .container {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .rows-list {\n display: flex;\n flex-direction: column;\n overflow: hidden auto;\n }\n .rows-list:empty {\n display: none;\n }\n .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n .add-row {\n margin-inline-end: auto;\n }\n .hidden {\n display: none;\n }\n ::slotted([slot="add-row-icon"]) {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n ',this),this.#br=this.shadowRoot.querySelector(".rows-list"),this.#Nr=this.shadowRoot.querySelector(".add-row"),this.#Ir=this.shadowRoot.querySelector(".add-button-label"),this.#xr=this.shadowRoot.querySelector(".clear-all")}init(){super.init?.(),z(this,this.#jr.bind(this)),this.#Nr.addEventListener("click",this.#Tr.bind(this)),this.#xr.addEventListener("click",this.#Dr.bind(this)),this.#br.addEventListener("change",this.#vr.bind(this)),this.#br.addEventListener("delete",this.#zr.bind(this)),[this.#Nr,this.#xr].forEach(t=>f(this,t,{includeAttrs:["size"]})),this.#Cr(),this.#jr(),this.#Sr(),this.#fe(),setTimeout(()=>this.#wr())}#Cr(){const t=MN(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(yN).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#Lr(t)})}#Ar(){const t=new Set(this.#ze.map(t=>t.id));this.#br.querySelectorAll(yN).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${yN}[data-row-id="${t}"]`)}#fe(){this.#Ar(),this.#ze.forEach(t=>{(this.#fr(t.id)||this.#Er(t.id)).setAttribute("value",JSON.stringify(t))}),this.#wr(),this.#kr()}#Er(t){const e=document.createElement(yN);return e.dataset.rowId=t,this.#br.appendChild(e),f(this,e,{includeAttrs:["data","size","label-type","operators-catalog","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...lN]}),this.#Lr(e),e}#Lr(t){Array.from(this.children).filter(t=>"delete-row-icon"===t.getAttribute?.("slot")).forEach(e=>{const i=e.cloneNode(!0);i.setAttribute("slot","delete-row-icon"),t.appendChild(i)})}#wr(){const t=1===this.#ze.length&&this.#mr(this.#ze[0]);this.#br.querySelectorAll(yN).forEach(e=>{t?e.setAttribute("disable-delete",""):e.removeAttribute("disable-delete")}),t?this.#xr.setAttribute("disabled","true"):this.#xr.removeAttribute("disabled")}#Sr(){0===this.#ze.length&&(this.#ze=[this.#Mr()])}#kr(){const t=parseInt(this.getAttribute("max-rows"),10),e=!Number.isNaN(t)&&this.#ze.length>=t;this.#Nr.classList.toggle("hidden",e)}#Tr(){this.#ze=[...this.#ze,this.#Mr()],this.#fe(),this.#v()}#Dr(){this.#ze=[this.#Mr()],this.#fe(),this.#Pn("clear")}#vr(t){const e=t.target.closest(yN);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#ze=this.#ze.map(e=>e.id===i?t.detail.value:e),this.#wr(),this.#v()}#zr(t){const e=t.target.closest(yN);if(!e)return;const i=e.dataset.rowId;this.#ze=this.#ze.filter(t=>t.id!==i),this.#Sr(),this.#fe(),this.#v()}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Or({column:t,operator:e}){const i=this.#yr.find(e=>e.id===t);return i&&uN(i.inputType,i.operators,MN(this,"operators-catalog")).find(t=>t.id===e)||null}#Vr(t){const e=this.#Or(t);return e?{...null!=e.prefix&&{prefix:e.prefix},...null!=e.suffix&&{suffix:e.suffix}}:{}}#v(){const t=t=>({column:t.column,operator:t.operator,value:t.value,...this.#Vr(t)}),e=this.#ze.filter(pN).map(t),i=this.#ze.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Pn("change",{value:e,rows:i})}get value(){return JSON.stringify(this.#ze)}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}get addButtonLabel(){return this.getAttribute("add-button-label")||"Add filter"}get clearAllButtonLabel(){return this.getAttribute("clear-all-button-label")||"Clear all"}#Wr(){this.#Ir.textContent=this.addButtonLabel}#Rr(){this.#xr.textContent=this.clearAllButtonLabel}#Ur(t){if(t)try{const e=JSON.parse(t);this.#ze=(Array.isArray(e)?e:[]).map(t=>{const e=this.#Or(t);return{...t,id:t.id||this.#gr(),...e&&{noValue:!!e.noValue}}}),this.#Sr(),this.#fe()}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&(this.#Cr(),this.#fe()),"value"===t&&this.#Ur(i),"add-button-label"===t&&this.#Wr(),"clear-all-button-label"===t&&this.#Rr(),"max-rows"===t&&this.#kr())}})(It({componentName:zN,baseSelector:".container"})),EN=L("filter"),kN=It({componentName:EN,baseSelector:"vaadin-popover"}),ON=["add-row-icon","delete-row-icon"],{host:VN,overlay:WN,backdrop:RN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},UN=T(ht({mappings:{hostWidth:{...VN,property:"width"},hostDirection:[{...VN,property:"direction"},{selector:()=>Vo.componentName,property:Vo.cssVarList.hostDirection},{selector:()=>fN.componentName,property:fN.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>Sc.componentName,property:Sc.cssVarList.borderRadius},counterWidth:{selector:()=>Sc.componentName,property:Sc.cssVarList.hostWidth},counterHeight:{selector:()=>Sc.componentName,property:Sc.cssVarList.hostHeight},counterFontSize:{selector:()=>Sc.componentName,property:Sc.cssVarList.fontSize},counterLineHeight:{selector:()=>Sc.componentName,property:Sc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>Sc.componentName,property:Sc.cssVarList.backgroundColor},counterTextColor:{selector:()=>Sc.componentName,property:Sc.cssVarList.textColor},counterBorderColor:{selector:()=>Sc.componentName,property:Sc.cssVarList.borderColor},counterOffsetX:{selector:()=>Gy.componentName,property:Gy.cssVarList.offsetX},counterOffsetY:{selector:()=>Gy.componentName,property:Gy.cssVarList.offsetY},rowsHostWidth:{selector:()=>fN.componentName,property:fN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>fN.componentName,property:fN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>fN.componentName,property:fN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>fN.componentName,property:fN.cssVarList.containerGap},rowsListGap:{selector:()=>fN.componentName,property:fN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>fN.componentName,property:fN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>fN.componentName,property:fN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>fN.componentName,property:fN.cssVarList.addRowIconSize},rowWidth:{...VN,property:vN.cssVarList.hostWidth},rowMinWidth:{...VN,property:vN.cssVarList.hostMinWidth},rowValueWidth:{...VN,property:vN.cssVarList.inputWidth},rowGap:{...VN,property:vN.cssVarList.rowGap},rowDisabledDeleteColor:{...VN,property:vN.cssVarList.deleteDisabledIconColor}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...WN,property:"margin-top"},width:{...WN},backgroundColor:{...WN},backdropBackgroundColor:{...RN,property:"background-color"},backdropPointerEvents:{...RN,property:"pointer-events"},padding:{...WN},boxShadow:{...WN},borderRadius:{...WN},outlineWidth:{...WN},outlineColor:{...WN},outlineStyle:{...WN}}}),gt,Mt)(class extends kN{#Yr=[];#Qr=!1;#ct;#R=null;#Pr=null;#Br=null;static get observedAttributes(){return[...kN.observedAttributes||[],"label","disable-indicator","data","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-attachment class="attachment" position="top-end" st-offset-x="0px">\n <descope-button class="trigger-btn">\n <slot name="button-icon"></slot>\n <span class="trigger-label"></span>\n </descope-button>\n <descope-badge slot="attachment" class="counter hidden" mode="primary" variant="contained" bordered="true" size="xs">\n <span class="counter-text">0</span>\n </descope-badge>\n </descope-attachment>\n <vaadin-popover></vaadin-popover>\n <slot name="add-row-icon" class="hidden"></slot>\n <slot name="delete-row-icon" class="hidden"></slot>\n </div>\n ',E('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host([full-width="true"]) {\n display: block;\n }\n\n /* Block (not the attachment\'s own inline-block) so host width set from\n outside (e.g. container items-grow) flows down to the trigger button;\n anchored\'s flex-grow on the anchor carries it the rest of the way. */\n .attachment {\n display: block;\n }\n\n\n .hidden {\n display: none;\n }\n\n :host([read-only="true"]) .trigger-btn {\n pointer-events: none;\n }\n ',this),this.triggerBtn=this.shadowRoot.querySelector(".trigger-btn"),this.triggerLabel=this.shadowRoot.querySelector(".trigger-label"),this.counter=this.shadowRoot.querySelector(".counter"),this.counterText=this.shadowRoot.querySelector(".counter-text")}get opened(){return"true"===this.getAttribute("opened")}get isIndicatorVisible(){return"true"!==this.getAttribute("disable-indicator")}get isFullWidth(){return"true"===this.getAttribute("full-width")}get overlay(){return this.#Br??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Br}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(zN)||null}init(){super.init?.(),this.#Uo(),this.#Zr(),this.#Fr(),f(this,this.triggerBtn,{includeAttrs:["button-mode","button-variant","size","full-width"],mapAttrs:{"button-mode":"mode","button-variant":"variant"}}),this.#Gr(),setTimeout(()=>{this.#it()})}#Gr(){ON.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Pr?.isConnected&&hN(this,this.#Pr,[t])})})}#Uo(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#dt(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(zN);f(this,e,{includeAttrs:["operators","size","max-rows","clear-all-button-label","add-button-label","label-type","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...lN],mapAttrs:{operators:"operators-catalog"}}),this.#Hr(e),t.appendChild(e),this.#Pr=e,e.setAttribute("value",JSON.stringify(this.#Yr)),e.addEventListener("change",this.#Jr.bind(this)),e.addEventListener("clear",this.#$r.bind(this));const i=new CSSStyleSheet;i.insertRule(":host{display:block!important;}"),this.baseElement?.shadowRoot?.adoptedStyleSheets?.push(i),this.backdrop?.addEventListener("click",()=>this.closePopover())}this.#Pr&&hN(this,this.#Pr,ON),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(),t.style.setProperty("visibility","visible")},50)}#pt(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ct&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ct));const e=document.body.getBoundingClientRect(),i=this.triggerBtn.getBoundingClientRect(),o=this.overlay.getBoundingClientRect(),n=i.left-o.left,r=o.left,s=e.width-o.right;let a;a=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),r);const l=Math.round(this.getBoundingClientRect().width);this.#ct=E(`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${a}px;\n ${this.isFullWidth?`width: ${l}px; max-width: ${l}px;`:""}\n }\n `,t)}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#qr(t){this.#Qr=!0,this.setAttribute("value",JSON.stringify(gN(t))),this.#Qr=!1}#Jr(t){const e=gN(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Yr)&&(this.#qr(e),this.#Pn("filter-apply",{value:this.#Yr,action:"apply"}))}#$r(){this.#qr([]),this.#Pn("filter-clear",{value:this.#Yr,action:"clear-all"})}#Zr(){if(!this.counter)return;const t=this.#Yr.length;this.counterText.textContent=String(t),this.counter.classList.toggle("hidden",t<1||!this.isIndicatorVisible)}#Fr(){if(!this.triggerLabel)return;const t=this.getAttribute("label")||"";this.triggerLabel.textContent=t,this.triggerLabel.classList.toggle("hidden",!t)}#Hr(t){t&&this.#R&&t.setAttribute("data",JSON.stringify(this.#R))}get value(){return JSON.stringify(this.#Yr)}set value(t){this.#qr(t)}set data(t){this.#R=Array.isArray(t)?t:null,this.filterRowsElement&&this.#R&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#R))}get data(){return this.#R}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{})}get readOnly(){return"true"===this.getAttribute("read-only")}onPopoverToggle(){this.readOnly||(this.opened?this.closePopover():this.openPopover())}openPopover(){this.setAttribute("opened","true"),this.baseElement.opened=!0}closePopover(){this.removeAttribute("opened"),this.baseElement.opened=!1}#_r(t){t&&(this.#Yr=gN(t),this.#Zr(),this.#Qr||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Yr)))}#Xr(t){if(t)try{this.#R=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#R))}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("value"===t&&this.#_r(i),"data"===t&&this.#Xr(i),"label"===t&&this.#Fr(),"disable-indicator"===t&&this.#Zr())}}),YN=nt(vp),QN="#00000020",{shadow:PN}=YN,BN=UN.cssVarList,ZN={[BN.counterBorderRadius]:"50%",[BN.counterWidth]:"1.5em",[BN.counterHeight]:"1.5em",[BN.counterFontSize]:"0.5em",[BN.counterLineHeight]:"2.25em",[BN.counterBackgroundColor]:YN.colors.primary.main,[BN.counterTextColor]:YN.colors.primary.contrast,[BN.counterOffsetX]:"-0.725em",[BN.counterOffsetY]:"0",_fullWidth:{[BN.hostWidth]:"100%"},[BN.overlay.backgroundColor]:YN.colors.surface.main,[BN.overlay.backdropBackgroundColor]:"transparent",[BN.overlay.backdropPointerEvents]:"all",[BN.overlay.boxShadow]:`${PN.wide.xl} ${QN}, ${PN.narrow.xl} ${QN}`,[BN.overlay.borderRadius]:vp.radius.xs,[BN.overlay.outlineWidth]:"0",[BN.overlay.outlineColor]:"transparent",[BN.overlay.outlineStyle]:"none",[BN.overlay.padding]:"0",[BN.rowsHostWidth]:"100%",[BN.rowsContainerWidth]:"100%",[BN.rowsContainerPadding]:YN.spacing.lg,[BN.rowsContainerGap]:YN.spacing.md,[BN.rowsListGap]:YN.spacing.sm,[BN.rowsListMaxHeight]:"400px",[BN.rowsActionsGap]:YN.spacing.md,[BN.rowsAddRowIconSize]:"1.25em",[BN.rowWidth]:"100%",[BN.rowMinWidth]:"30em",[BN.rowValueWidth]:"100%",[BN.rowGap]:YN.spacing.md,[BN.rowDisabledDeleteColor]:YN.colors.surface.light};var FN=Object.freeze({__proto__:null,default:ZN,vars:BN});const GN=ep.cssVarList,HN={[GN.hostWidth]:_p.width,[GN.hostMinWidth]:_p.minWidth,[GN.hostDirection]:_p.direction,[GN.fontSize]:_p.fontSize,[GN.fontFamily]:_p.fontFamily,[GN.labelFontSize]:_p.labelFontSize,[GN.labelFontWeight]:_p.labelFontWeight,[GN.inputValueFontWeight]:_p.inputValueFontWeight,[GN.inputPlaceholderFontWeight]:_p.inputPlaceholderFontWeight,[GN.helperTextFontWeight]:_p.helperTextFontWeight,[GN.errorMessageFontWeight]:_p.errorMessageFontWeight,[GN.labelTextColor]:_p.labelTextColor,[GN.errorMessageTextColor]:_p.errorMessageTextColor,[GN.inputValueTextColor]:_p.valueTextColor,[GN.labelRequiredIndicator]:_p.requiredIndicator,[GN.inputPlaceholderColor]:_p.placeholderTextColor,[GN.inputBorderWidth]:_p.borderWidth,[GN.inputBorderStyle]:_p.borderStyle,[GN.inputBorderColor]:_p.borderColor,[GN.inputBorderRadius]:_p.borderRadius,[GN.inputOutlineWidth]:_p.outlineWidth,[GN.inputOutlineStyle]:_p.outlineStyle,[GN.inputOutlineColor]:_p.outlineColor,[GN.inputOutlineOffset]:_p.outlineOffset,[GN.inputBackgroundColor]:_p.backgroundColor,[GN.inputHorizontalPadding]:_p.horizontalPadding,[GN.inputHeight]:_p.inputHeight,[GN.labelPosition]:_p.labelPosition,[GN.labelTopPosition]:_p.labelTopPosition,[GN.labelHorizontalPosition]:_p.labelHorizontalPosition,[GN.inputTransformY]:_p.inputTransformY,[GN.inputTransition]:_p.inputTransition,[GN.marginInlineStart]:_p.marginInlineStart,[GN.placeholderOpacity]:_p.placeholderOpacity,[GN.inputVerticalAlignment]:_p.inputVerticalAlignment,[GN.valueInputHeight]:_p.valueInputHeight,[GN.valueInputMarginBottom]:_p.valueInputMarginBottom,[GN.errorMessageIcon]:_p.errorMessageIcon,[GN.errorMessageIconSize]:_p.errorMessageIconSize,[GN.errorMessageIconPadding]:_p.errorMessageIconPadding,[GN.errorMessageIconRepeat]:_p.errorMessageIconRepeat,[GN.errorMessageIconPosition]:_p.errorMessageIconPosition,[GN.errorMessageFontSize]:_p.errorMessageFontSize};var JN=Object.freeze({__proto__:null,default:HN,vars:GN});const $N=L("new-email-internal"),qN=L("new-email"),{host:_N,label:XN,internalInputsWrapper:KN,errorMessage:tI,helperText:eI,emailInput:iI}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-email-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},emailInput:{selector:"descope-email-field"}},oI=T(ht({mappings:{fontSize:[_N,{},{selector:ep.componentName,property:ep.cssVarList.fontSize}],fontFamily:[XN,tI,eI],labelFontSize:{...XN,property:"font-size"},labelFontWeight:{...XN,property:"font-weight"},inputValueFontWeight:{...iI,property:ep.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...iI,property:ep.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...eI,property:"font-weight"},errorMessageFontWeight:{...tI,property:"font-weight"},labelTextColor:{...XN,property:"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"},hostWidth:{..._N,property:"width"},hostMinWidth:{..._N,property:"min-width"},hostDirection:[{..._N,property:"direction"},{...iI,property:ep.cssVarList.hostDirection}],inputsRequiredIndicator:{..._N,property:"content"},spaceBetweenInputs:{...KN,property:"gap"},valueInputHeight:{...iI,property:ep.cssVarList.valueInputHeight},valueInputMarginBottom:{...iI,property:ep.cssVarList.valueInputMarginBottom}}}),gt,Ut,kt({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e="true"===this.getAttribute("external-input"),i="false"!==this.getAttribute("accept-unicode");t.innerHTML=`\n\t\t\t<${$N}\n\t\t\t\tname="new-email"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n accept-unicode="${i}"\n\t\t\t>\n </${$N}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector($N),e&&this.initExternalInput(),f(this,this.inputElement,{includeAttrs:["email-label","email-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","invalid","readonly","disabled","draggable","label-type"]})}createSlottedExternalInput(t,e,i){const o=t.querySelector("input"),n=document.createElement("slot"),r=o.getAttribute("slot");return n.setAttribute("name",e),n.setAttribute("slot",r),t.appendChild(n),o.setAttribute("slot",e),o.setAttribute("name",i),o.setAttribute("data-hidden-input","true"),this.appendChild(o),o}initExternalInput(){this.emailInput=this.inputElement.querySelector('[data-id="email"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.emailInput,"external-email-input",this.getAttribute("name")),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input",`${this.getAttribute("name")}-confirm`).setAttribute("data-exclude-field","true")}})(Lt({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${$(ep.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-email-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-email-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-email-field {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:qN})),nI=oI.cssVarList,rI={[nI.hostWidth]:_p.width,[nI.hostMinWidth]:_p.minWidth,[nI.hostDirection]:_p.direction,[nI.fontSize]:_p.fontSize,[nI.fontFamily]:_p.fontFamily,[nI.labelFontSize]:_p.labelFontSize,[nI.labelFontWeight]:_p.labelFontWeight,[nI.inputValueFontWeight]:_p.inputValueFontWeight,[nI.inputPlaceholderFontWeight]:_p.inputPlaceholderFontWeight,[nI.helperTextFontWeight]:_p.helperTextFontWeight,[nI.errorMessageFontWeight]:_p.errorMessageFontWeight,[nI.labelTextColor]:_p.labelTextColor,[nI.spaceBetweenInputs]:"1em",[nI.errorMessageTextColor]:_p.errorMessageTextColor,[nI.valueInputHeight]:_p.valueInputHeight,[nI.valueInputMarginBottom]:_p.valueInputMarginBottom,[nI.errorMessageIcon]:_p.errorMessageIcon,[nI.errorMessageIconSize]:_p.errorMessageIconSize,[nI.errorMessageIconPadding]:_p.errorMessageIconPadding,[nI.errorMessageIconRepeat]:_p.errorMessageIconRepeat,[nI.errorMessageIconPosition]:_p.errorMessageIconPosition,[nI.errorMessageFontSize]:_p.errorMessageFontSize,_required:{[nI.inputsRequiredIndicator]:_p.requiredIndicator}};var sI=Object.freeze({__proto__:null,default:rI,vars:nI});const aI=ee("input-wrapper"),lI=we(Ip),[dI,cI,uI]=Re({labelTextColor:lI.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:lI.colors.surface.contrast,placeholderTextColor:lI.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:lI.colors.surface.dark,errorMessageTextColor:lI.colors.error.main,successMessageTextColor:lI.colors.success.main,borderWidth:lI.border.xs,borderRadius:lI.radius.xs,borderColor:"transparent",outlineWidth:lI.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:lI.colors.surface.main,fontFamily:lI.fonts.font1.family,direction:lI.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:lI.border.xs,borderColor:lI.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:lI.colors.error.main}},_focused:{outlineColor:lI.colors.surface.light,_invalid:{outlineColor:lI.colors.error.main}},_disabled:{labelTextColor:lI.colors.surface.light,borderColor:lI.colors.surface.light,valueTextColor:lI.colors.surface.light,placeholderTextColor:lI.colors.surface.light,helperTextColor:lI.colors.surface.light,backgroundColor:lI.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},aI);var pI=Object.freeze({__proto__:null,default:dI,refs:cI,vars:uI});const hI=we(Ip),gI=cs.cssVarList,MI={[gI.hostWidth]:cI.width,[gI.hostMinWidth]:cI.minWidth,[gI.hostDirection]:cI.direction,[gI.fontSize]:cI.fontSize,[gI.fontFamily]:cI.fontFamily,[gI.labelFontSize]:cI.labelFontSize,[gI.labelFontWeight]:cI.labelFontWeight,[gI.inputValueFontWeight]:cI.inputValueFontWeight,[gI.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[gI.helperTextFontWeight]:cI.helperTextFontWeight,[gI.errorMessageFontWeight]:cI.errorMessageFontWeight,[gI.labelTextColor]:cI.labelTextColor,[gI.errorMessageTextColor]:cI.errorMessageTextColor,[gI.inputHorizontalPadding]:cI.horizontalPadding,[gI.inputHeight]:cI.inputHeight,[gI.inputBackgroundColor]:cI.backgroundColor,[gI.labelRequiredIndicator]:cI.requiredIndicator,[gI.inputValueTextColor]:cI.valueTextColor,[gI.inputPlaceholderTextColor]:cI.placeholderTextColor,[gI.inputBorderWidth]:cI.borderWidth,[gI.inputBorderStyle]:cI.borderStyle,[gI.inputBorderColor]:cI.borderColor,[gI.inputBorderRadius]:cI.borderRadius,[gI.inputOutlineWidth]:cI.outlineWidth,[gI.inputOutlineStyle]:cI.outlineStyle,[gI.inputOutlineColor]:cI.outlineColor,[gI.inputOutlineOffset]:cI.outlineOffset,[gI.revealButtonOffset]:hI.spacing.md,[gI.revealButtonSize]:cI.toggleButtonSize,[gI.revealButtonColor]:cI.placeholderTextColor,[gI.labelPosition]:cI.labelPosition,[gI.labelTopPosition]:cI.labelTopPosition,[gI.labelHorizontalPosition]:cI.labelHorizontalPosition,[gI.inputTransformY]:cI.inputTransformY,[gI.inputTransition]:cI.inputTransition,[gI.marginInlineStart]:cI.marginInlineStart,[gI.placeholderOpacity]:cI.placeholderOpacity,[gI.inputVerticalAlignment]:cI.inputVerticalAlignment,[gI.valueInputHeight]:cI.valueInputHeight,[gI.errorMessageIcon]:cI.errorMessageIcon,[gI.errorMessageIconSize]:cI.errorMessageIconSize,[gI.errorMessageIconPadding]:cI.errorMessageIconPadding,[gI.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[gI.errorMessageIconPosition]:cI.errorMessageIconPosition,[gI.errorMessageFontSize]:cI.errorMessageFontSize};var mI=Object.freeze({__proto__:null,default:MI,vars:gI});const yI=Lr.cssVarList,bI={[yI.hostWidth]:cI.width,[yI.hostMinWidth]:cI.minWidth,[yI.hostDirection]:cI.direction,[yI.fontSize]:cI.fontSize,[yI.fontFamily]:cI.fontFamily,[yI.labelFontSize]:cI.labelFontSize,[yI.labelFontWeight]:cI.labelFontWeight,[yI.inputValueFontWeight]:cI.inputValueFontWeight,[yI.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[yI.helperTextFontWeight]:cI.helperTextFontWeight,[yI.errorMessageFontWeight]:cI.errorMessageFontWeight,[yI.labelTextColor]:cI.labelTextColor,[yI.errorMessageTextColor]:cI.errorMessageTextColor,[yI.inputValueTextColor]:cI.valueTextColor,[yI.inputPlaceholderColor]:cI.placeholderTextColor,[yI.inputBorderWidth]:cI.borderWidth,[yI.inputBorderStyle]:cI.borderStyle,[yI.inputBorderColor]:cI.borderColor,[yI.inputBorderRadius]:cI.borderRadius,[yI.inputOutlineWidth]:cI.outlineWidth,[yI.inputOutlineStyle]:cI.outlineStyle,[yI.inputOutlineColor]:cI.outlineColor,[yI.inputOutlineOffset]:cI.outlineOffset,[yI.inputBackgroundColor]:cI.backgroundColor,[yI.labelRequiredIndicator]:cI.requiredIndicator,[yI.inputHorizontalPadding]:cI.horizontalPadding,[yI.inputHeight]:cI.inputHeight,[yI.labelPosition]:cI.labelPosition,[yI.labelTopPosition]:cI.labelTopPosition,[yI.labelHorizontalPosition]:cI.labelHorizontalPosition,[yI.inputTransformY]:cI.inputTransformY,[yI.inputTransition]:cI.inputTransition,[yI.marginInlineStart]:cI.marginInlineStart,[yI.placeholderOpacity]:cI.placeholderOpacity,[yI.inputVerticalAlignment]:cI.inputVerticalAlignment,[yI.valueInputHeight]:cI.valueInputHeight,[yI.valueInputMarginBottom]:cI.valueInputMarginBottom,[yI.errorMessageIcon]:cI.errorMessageIcon,[yI.errorMessageIconSize]:cI.errorMessageIconSize,[yI.errorMessageIconPadding]:cI.errorMessageIconPadding,[yI.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[yI.errorMessageIconPosition]:cI.errorMessageIconPosition,[yI.errorMessageFontSize]:cI.errorMessageFontSize};var NI=Object.freeze({__proto__:null,default:bI,vars:yI});const II=Is.cssVarList,xI={[II.hostWidth]:cI.width,[II.hostMinWidth]:cI.minWidth,[II.hostDirection]:cI.direction,[II.fontSize]:cI.fontSize,[II.fontFamily]:cI.fontFamily,[II.labelFontSize]:cI.labelFontSize,[II.labelFontWeight]:cI.labelFontWeight,[II.inputValueFontWeight]:cI.inputValueFontWeight,[II.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[II.helperTextFontWeight]:cI.helperTextFontWeight,[II.errorMessageFontWeight]:cI.errorMessageFontWeight,[II.labelTextColor]:cI.labelTextColor,[II.labelRequiredIndicator]:cI.requiredIndicator,[II.errorMessageTextColor]:cI.errorMessageTextColor,[II.inputBackgroundColor]:cI.backgroundColor,[II.inputValueTextColor]:cI.valueTextColor,[II.inputPlaceholderTextColor]:cI.placeholderTextColor,[II.inputBorderRadius]:cI.borderRadius,[II.inputBorderWidth]:cI.borderWidth,[II.inputBorderStyle]:cI.borderStyle,[II.inputBorderColor]:cI.borderColor,[II.inputOutlineWidth]:cI.outlineWidth,[II.inputOutlineStyle]:cI.outlineStyle,[II.inputOutlineColor]:cI.outlineColor,[II.inputOutlineOffset]:cI.outlineOffset,[II.inputResizeType]:"vertical",[II.inputMinHeight]:"5em",[II.errorMessageIcon]:cI.errorMessageIcon,[II.errorMessageIconSize]:cI.errorMessageIconSize,[II.errorMessageIconPadding]:cI.errorMessageIconPadding,[II.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[II.errorMessageIconPosition]:cI.errorMessageIconPosition,[II.errorMessageFontSize]:cI.errorMessageFontSize,textAlign:{right:{[II.inputTextAlign]:"right"},left:{[II.inputTextAlign]:"left"},center:{[II.inputTextAlign]:"center"}},_readonly:{[II.inputResizeType]:"none"}};var jI=Object.freeze({__proto__:null,default:xI,vars:II});const TI=Ci.cssVarList,DI="1.35em",vI={[TI.hostWidth]:cI.width,[TI.hostDirection]:cI.direction,[TI.fontSize]:cI.fontSize,[TI.fontFamily]:cI.fontFamily,[TI.labelTextColor]:cI.labelTextColor,[TI.labelRequiredIndicator]:cI.requiredIndicator,[TI.labelFontWeight]:"400",[TI.labelLineHeight]:DI,[TI.labelSpacing]:"1em",[TI.errorMessageTextColor]:cI.errorMessageTextColor,[TI.inputOutlineWidth]:cI.outlineWidth,[TI.inputOutlineOffset]:cI.outlineOffset,[TI.inputOutlineColor]:cI.outlineColor,[TI.inputOutlineStyle]:cI.outlineStyle,[TI.inputBorderRadius]:cI.borderRadius,[TI.inputBorderColor]:cI.borderColor,[TI.inputBorderWidth]:cI.borderWidth,[TI.inputBorderStyle]:cI.borderStyle,[TI.inputBackgroundColor]:cI.backgroundColor,[TI.inputSize]:DI,[TI.inputValueTextColor]:cI.valueTextColor,[TI.errorMessageIcon]:cI.errorMessageIcon,[TI.errorMessageIconSize]:cI.errorMessageIconSize,[TI.errorMessageIconPadding]:cI.errorMessageIconPadding,[TI.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[TI.errorMessageIconPosition]:cI.errorMessageIconPosition,[TI.errorMessageFontSize]:cI.errorMessageFontSize};var zI=Object.freeze({__proto__:null,default:vI,vars:TI});const CI="2px",SI=we(Ip),wI=_i.cssVarList,LI={[wI.hostWidth]:cI.width,[wI.hostDirection]:cI.direction,[wI.fontSize]:cI.fontSize,[wI.fontFamily]:cI.fontFamily,[wI.inputOutlineWidth]:cI.outlineWidth,[wI.inputOutlineOffset]:cI.outlineOffset,[wI.inputOutlineColor]:cI.outlineColor,[wI.inputOutlineStyle]:cI.outlineStyle,[wI.trackBorderStyle]:cI.borderStyle,[wI.trackBorderWidth]:cI.borderWidth,[wI.trackBorderColor]:cI.borderColor,[wI.trackBackgroundColor]:cI.backgroundColor,[wI.trackBorderRadius]:SI.radius.md,[wI.trackWidth]:"2.5em",[wI.trackHeight]:"1.25em",[wI.knobSize]:`calc(1em - ${CI})`,[wI.knobRadius]:"50%",[wI.knobTopOffset]:"1px",[wI.knobLeftOffset]:CI,[wI.knobColor]:cI.labelTextColor,[wI.knobTransitionDuration]:"0.3s",[wI.labelTextColor]:cI.labelTextColor,[wI.labelFontWeight]:"400",[wI.labelLineHeight]:"1.35em",[wI.labelSpacing]:"1em",[wI.labelRequiredIndicator]:cI.requiredIndicator,[wI.errorMessageTextColor]:cI.errorMessageTextColor,[wI.errorMessageIcon]:cI.errorMessageIcon,[wI.errorMessageIconSize]:cI.errorMessageIconSize,[wI.errorMessageIconPadding]:cI.errorMessageIconPadding,[wI.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[wI.errorMessageIconPosition]:cI.errorMessageIconPosition,[wI.errorMessageFontSize]:cI.errorMessageFontSize,_checked:{[wI.trackBorderColor]:cI.borderColor,[wI.knobLeftOffset]:`calc(100% - var(${wI.knobSize}) - ${CI})`,[wI.knobColor]:cI.valueTextColor,[wI.knobTextColor]:cI.valueTextColor},_disabled:{[wI.knobColor]:SI.colors.surface.light,[wI.trackBorderColor]:SI.colors.surface.light,[wI.trackBackgroundColor]:SI.colors.surface.main,[wI.labelTextColor]:cI.labelTextColor,_checked:{[wI.knobColor]:SI.colors.surface.light,[wI.trackBackgroundColor]:SI.colors.surface.main}},_invalid:{[wI.trackBorderColor]:SI.colors.error.main,[wI.knobColor]:SI.colors.error.main}};var AI=Object.freeze({__proto__:null,default:LI,vars:wI});const fI=we(Ip),EI=lo.cssVarList,[kI,OI,VI]=Re({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},so),{shadowColor:WI}=OI,RI={...kI,[EI.itemsGrow]:"0",[EI.hostWidth]:"100%",[EI.hostHeight]:"auto",[EI.boxShadow]:"none",[EI.backgroundColor]:fI.colors.surface.main,[EI.backgroundImage]:"",[EI.backgroundPositionX]:"center",[EI.backgroundPositionY]:"center",[EI.backgroundSize]:"cover",[EI.backgroundRepeat]:"no-repeat",[EI.color]:fI.colors.surface.contrast,[EI.borderRadius]:"0px",[EI.hostDirection]:fI.direction,[EI.borderStyle]:"none",[EI.borderWidth]:"unset",[EI.borderColor]:"unset",verticalPadding:{sm:{[EI.verticalPadding]:"5px"},md:{[EI.verticalPadding]:"10px"},lg:{[EI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[EI.horizontalPadding]:"5px"},md:{[EI.horizontalPadding]:"10px"},lg:{[EI.horizontalPadding]:"20px"}},direction:{row:{[EI.flexDirection]:"row",[EI.alignItems]:OI.verticalAlignment,[EI.justifyContent]:OI.horizontalAlignment,[EI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[VI.horizontalAlignment]:"space-between"}}},column:{[EI.flexDirection]:"column",[EI.alignItems]:OI.horizontalAlignment,[EI.justifyContent]:OI.verticalAlignment,verticalAlignment:{spaceBetween:{[VI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[EI.gap]:"10px"},md:{[EI.gap]:"20px"},lg:{[EI.gap]:"30px"}},shadow:{sm:{[EI.boxShadow]:`${fI.shadow.wide.sm} ${WI}, ${fI.shadow.narrow.sm} ${WI}`},md:{[EI.boxShadow]:`${fI.shadow.wide.md} ${WI}, ${fI.shadow.narrow.md} ${WI}`},lg:{[EI.boxShadow]:`${fI.shadow.wide.lg} ${WI}, ${fI.shadow.narrow.lg} ${WI}`},xl:{[EI.boxShadow]:`${fI.shadow.wide.xl} ${WI}, ${fI.shadow.narrow.xl} ${WI}`},"2xl":{[VI.shadowColor]:"#00000050",[EI.boxShadow]:`${fI.shadow.wide["2xl"]} ${WI}`}},"&borderRadius":{sm:{[EI.borderRadius]:fI.radius.sm},md:{[EI.borderRadius]:fI.radius.md},lg:{[EI.borderRadius]:fI.radius.lg},xl:{[EI.borderRadius]:fI.radius.xl},"2xl":{[EI.borderRadius]:fI.radius["2xl"]},"3xl":{[EI.borderRadius]:fI.radius["3xl"]}}},UI={...EI,...VI};var YI=Object.freeze({__proto__:null,default:RI,vars:UI});const QI=Dr.cssVarList,PI={[QI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var BI=Object.freeze({__proto__:null,default:PI,vars:QI});const ZI=zr.cssVarList,FI={[ZI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var GI=Object.freeze({__proto__:null,default:FI,vars:ZI});const HI=Sr.cssVarList,JI={[HI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var $I=Object.freeze({__proto__:null,default:JI,vars:HI});const qI=we(Ip),_I=xr.cssVarList,[XI,KI,tx]=Re({thickness:"2px",spacing:"10px"},gr),ex={...XI,[_I.hostDirection]:qI.direction,[_I.alignItems]:"center",[_I.flexDirection]:"row",[_I.alignSelf]:"stretch",[_I.hostWidth]:"100%",[_I.stripeColor]:qI.colors.surface.light,[_I.stripeColorOpacity]:"0.5",[_I.stripeHorizontalThickness]:KI.thickness,[_I.labelTextWidth]:"fit-content",[_I.labelTextMaxWidth]:"calc(100% - 100px)",[_I.labelTextHorizontalSpacing]:KI.spacing,[_I.textAlign]:"center",_vertical:{[_I.minHeight]:"200px",[_I.flexDirection]:"column",[_I.hostWidth]:"fit-content",[_I.hostPadding]:`0 calc(${KI.thickness} * 3)`,[_I.stripeVerticalThickness]:KI.thickness,[_I.labelTextWidth]:"fit-content",[_I.labelTextMaxWidth]:"100%",[_I.labelTextVerticalSpacing]:KI.spacing}},ix={..._I,...tx};var ox=Object.freeze({__proto__:null,default:ex,vars:ix});const nx=Xr.cssVarList,rx={[nx.hostDirection]:cI.direction,[nx.fontFamily]:cI.fontFamily,[nx.fontSize]:cI.fontSize,[nx.labelTextColor]:cI.labelTextColor,[nx.labelRequiredIndicator]:cI.requiredIndicator,[nx.labelFontWeight]:cI.labelFontWeight,[nx.errorMessageTextColor]:cI.errorMessageTextColor,[nx.errorMessageFontWeight]:cI.errorMessageFontWeight,[nx.digitValueTextColor]:cI.valueTextColor,[nx.digitValueFontWeight]:cI.inputValueFontWeight,[nx.digitPadding]:"0",[nx.digitTextAlign]:"center",[nx.digitSpacing]:"4px",[nx.hostWidth]:cI.width,[nx.digitOutlineColor]:"transparent",[nx.digitOutlineWidth]:cI.outlineWidth,[nx.focusedDigitFieldOutlineColor]:cI.outlineColor,[nx.digitSize]:cI.inputHeight,[nx.errorMessageIcon]:cI.errorMessageIcon,[nx.errorMessageIconSize]:cI.errorMessageIconSize,[nx.errorMessageIconPadding]:cI.errorMessageIconPadding,[nx.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[nx.errorMessageIconPosition]:cI.errorMessageIconPosition,[nx.errorMessageFontSize]:cI.errorMessageFontSize,size:{xs:{[nx.spinnerSize]:"15px"},sm:{[nx.spinnerSize]:"20px"},md:{[nx.spinnerSize]:"20px"},lg:{[nx.spinnerSize]:"20px"}},_hideCursor:{[nx.digitCaretTextColor]:"transparent"},_loading:{[nx.overlayOpacity]:cI.overlayOpacity}};var sx=Object.freeze({__proto__:null,default:rx,vars:nx});const ax=we(Ip),lx=io.cssVarList,dx={[lx.hostDisplay]:"inline-block",[lx.hostWidth]:"100%",[lx.barColor]:ax.colors.surface.contrast,[lx.barWidth]:"20%",[lx.barBackgroundColor]:ax.colors.surface.light,[lx.barBorderRadius]:"4px",[lx.animationDuration]:"2s",[lx.animationTimingFunction]:"linear",[lx.animationIterationCount]:"infinite",[lx.verticalPadding]:"0.25em",size:{xs:{[lx.barHeight]:"2px"},sm:{[lx.barHeight]:"4px"},md:{[lx.barHeight]:"6px"},lg:{[lx.barHeight]:"8px"}},mode:{primary:{[lx.barColor]:ax.colors.primary.main},secondary:{[lx.barColor]:ax.colors.secondary.main}},_hidden:{[lx.hostDisplay]:"none"}};var cx=Object.freeze({__proto__:null,default:dx,vars:lx});const ux=we(Ip),px=ro.cssVarList,[hx,gx,Mx]=Re({spinnerColor:ux.colors.surface.contrast,mode:{primary:{spinnerColor:ux.colors.primary.main},secondary:{spinnerColor:ux.colors.secondary.main}}},oo),mx={...hx,[px.animationDuration]:"2s",[px.animationTimingFunction]:"linear",[px.animationIterationCount]:"infinite",[px.spinnerBorderStyle]:"solid",[px.spinnerBorderWidth]:"0.2em",[px.spinnerBorderRadius]:"50%",[px.spinnerQuadrant1Color]:gx.spinnerColor,[px.spinnerQuadrant2Color]:"transparent",[px.spinnerQuadrant3Color]:gx.spinnerColor,[px.spinnerQuadrant4Color]:"transparent",size:{xs:{[px.spinnerSize]:"20px"},sm:{[px.spinnerSize]:"30px"},md:{[px.spinnerSize]:"40px"},lg:{[px.spinnerSize]:"60px"},xl:{[px.spinnerSize]:"80px"}},_hidden:{[px.hostDisplay]:"none"}},yx={...px,...Mx};var bx=Object.freeze({__proto__:null,default:mx,vars:yx});const Nx=Zs.cssVarList,Ix={[Nx.hostWidth]:cI.width,[Nx.hostDirection]:cI.direction,[Nx.fontSize]:cI.fontSize,[Nx.fontFamily]:cI.fontFamily,[Nx.labelFontSize]:cI.labelFontSize,[Nx.labelFontWeight]:cI.labelFontWeight,[Nx.inputValueFontWeight]:cI.inputValueFontWeight,[Nx.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[Nx.helperTextFontWeight]:cI.helperTextFontWeight,[Nx.errorMessageFontWeight]:cI.errorMessageFontWeight,[Nx.labelTextColor]:cI.labelTextColor,[Nx.labelRequiredIndicator]:cI.requiredIndicator,[Nx.errorMessageTextColor]:cI.errorMessageTextColor,[Nx.inputValueTextColor]:cI.valueTextColor,[Nx.inputPlaceholderTextColor]:cI.placeholderTextColor,[Nx.inputBorderStyle]:cI.borderStyle,[Nx.inputBorderWidth]:cI.borderWidth,[Nx.inputBorderColor]:cI.borderColor,[Nx.inputBorderRadius]:cI.borderRadius,[Nx.inputOutlineStyle]:cI.outlineStyle,[Nx.inputOutlineWidth]:cI.outlineWidth,[Nx.inputOutlineColor]:cI.outlineColor,[Nx.inputOutlineOffset]:cI.outlineOffset,[Nx.phoneInputWidth]:cI.minWidth,[Nx.countryCodeInputWidth]:"5em",[Nx.countryCodeDropdownWidth]:"20em",[Nx.marginInlineStart]:"-0.25em",[Nx.valueInputHeight]:cI.valueInputHeight,[Nx.valueInputMarginBottom]:cI.valueInputMarginBottom,[Nx.errorMessageIcon]:cI.errorMessageIcon,[Nx.errorMessageIconSize]:cI.errorMessageIconSize,[Nx.errorMessageIconPadding]:cI.errorMessageIconPadding,[Nx.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[Nx.errorMessageIconPosition]:cI.errorMessageIconPosition,[Nx.errorMessageFontSize]:cI.errorMessageFontSize};var xx=Object.freeze({__proto__:null,default:Ix,vars:Nx});const jx=aa.cssVarList,Tx={[jx.hostWidth]:"16em",[jx.hostMinWidth]:cI.minWidth,[jx.hostDirection]:cI.direction,[jx.fontSize]:cI.fontSize,[jx.fontFamily]:cI.fontFamily,[jx.labelFontSize]:cI.labelFontSize,[jx.labelFontWeight]:cI.labelFontWeight,[jx.inputValueFontWeight]:cI.inputValueFontWeight,[jx.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[jx.helperTextFontWeight]:cI.helperTextFontWeight,[jx.errorMessageFontWeight]:cI.errorMessageFontWeight,[jx.labelTextColor]:cI.labelTextColor,[jx.labelRequiredIndicator]:cI.requiredIndicator,[jx.errorMessageTextColor]:cI.errorMessageTextColor,[jx.inputValueTextColor]:cI.valueTextColor,[jx.inputPlaceholderTextColor]:cI.placeholderTextColor,[jx.inputBorderStyle]:cI.borderStyle,[jx.inputBorderWidth]:cI.borderWidth,[jx.inputBorderColor]:cI.borderColor,[jx.inputBorderRadius]:cI.borderRadius,[jx.inputOutlineStyle]:cI.outlineStyle,[jx.inputOutlineWidth]:cI.outlineWidth,[jx.inputOutlineColor]:cI.outlineColor,[jx.inputOutlineOffset]:cI.outlineOffset,[jx.labelPosition]:cI.labelPosition,[jx.labelTopPosition]:cI.labelTopPosition,[jx.labelHorizontalPosition]:cI.labelHorizontalPosition,[jx.inputTransformY]:cI.inputTransformY,[jx.inputTransition]:cI.inputTransition,[jx.marginInlineStart]:cI.marginInlineStart,[jx.valueInputHeight]:cI.valueInputHeight,[jx.valueInputMarginBottom]:cI.valueInputMarginBottom,[jx.inputHorizontalPadding]:"0",[jx.errorMessageIcon]:cI.errorMessageIcon,[jx.errorMessageIconSize]:cI.errorMessageIconSize,[jx.errorMessageIconPadding]:cI.errorMessageIconPadding,[jx.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[jx.errorMessageIconPosition]:cI.errorMessageIconPosition,[jx.errorMessageFontSize]:cI.errorMessageFontSize,_fullWidth:{[jx.hostWidth]:cI.width}};var Dx=Object.freeze({__proto__:null,default:Tx,vars:jx});const vx=we(Ip),zx=wa.cssVarList,Cx={[zx.hostWidth]:cI.width,[zx.hostMinWidth]:cI.minWidth,[zx.hostDirection]:cI.direction,[zx.fontSize]:cI.fontSize,[zx.fontFamily]:cI.fontFamily,[zx.labelFontSize]:cI.labelFontSize,[zx.labelFontWeight]:cI.labelFontWeight,[zx.inputValueFontWeight]:cI.inputValueFontWeight,[zx.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[zx.helperTextFontWeight]:cI.helperTextFontWeight,[zx.errorMessageFontWeight]:cI.errorMessageFontWeight,[zx.labelTextColor]:cI.labelTextColor,[zx.spaceBetweenInputs]:"1em",[zx.errorMessageTextColor]:cI.errorMessageTextColor,[zx.policyPreviewBackgroundColor]:"none",[zx.policyPreviewPadding]:vx.spacing.lg,[zx.valueInputHeight]:cI.valueInputHeight,[zx.errorMessageIcon]:cI.errorMessageIcon,[zx.errorMessageIconSize]:cI.errorMessageIconSize,[zx.errorMessageIconPadding]:cI.errorMessageIconPadding,[zx.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[zx.errorMessageIconPosition]:cI.errorMessageIconPosition,[zx.errorMessageFontSize]:cI.errorMessageFontSize,_required:{[zx.inputsRequiredIndicator]:cI.requiredIndicator}};var Sx=Object.freeze({__proto__:null,default:Cx,vars:zx});const wx=tl.cssVarList,Lx={[wx.hostDirection]:cI.direction,[wx.labelTextColor]:cI.labelTextColor,[wx.fontFamily]:cI.fontFamily,[wx.iconSize]:"2em",[wx.hostPadding]:"0.75em",[wx.gap]:"0.5em",[wx.fontSize]:"16px",[wx.titleFontWeight]:"500",[wx.lineHeight]:"1em",[wx.borderWidth]:cI.borderWidth,[wx.borderColor]:cI.borderColor,[wx.borderRadius]:cI.borderRadius,[wx.borderStyle]:"dashed",_required:{[wx.requiredIndicator]:cI.requiredIndicator},size:{xs:{[wx.hostHeight]:"196px",[wx.hostWidth]:"200px",[wx.titleFontSize]:"0.875em",[wx.descriptionFontSize]:"0.875em",[wx.lineHeight]:"1.25em"},sm:{[wx.hostHeight]:"216px",[wx.hostWidth]:"230px",[wx.titleFontSize]:"1em",[wx.descriptionFontSize]:"0.875em",[wx.lineHeight]:"1.25em"},md:{[wx.hostHeight]:"256px",[wx.hostWidth]:"312px",[wx.titleFontSize]:"1.125em",[wx.descriptionFontSize]:"1em",[wx.lineHeight]:"1.5em"},lg:{[wx.hostHeight]:"280px",[wx.hostWidth]:"336px",[wx.titleFontSize]:"1.125em",[wx.descriptionFontSize]:"1.125em",[wx.lineHeight]:"1.75em"}},_fullWidth:{[wx.hostWidth]:cI.width}};var Ax=Object.freeze({__proto__:null,default:Lx,vars:wx});const fx=we(Ip),Ex=sl.cssVarList,kx={[Ex.hostDirection]:"inherit",[Ex.hostWidth]:"auto",[Ex.backgroundColor]:fx.colors.surface.main,[Ex.labelTextColor]:fx.colors.surface.contrast,[Ex.borderColor]:fx.colors.surface.light,[Ex.borderStyle]:"solid",[Ex.borderRadius]:fx.radius.sm,[Ex.outlineColor]:"transparent",[Ex.borderWidth]:fx.border.xs,_hover:{[Ex.backgroundColor]:fx.colors.surface.highlight},_focused:{[Ex.outlineColor]:fx.colors.surface.light},_selected:{[Ex.borderColor]:fx.colors.surface.contrast,[Ex.backgroundColor]:fx.colors.surface.contrast,[Ex.labelTextColor]:fx.colors.surface.main}};var Ox=Object.freeze({__proto__:null,default:kx,vars:Ex});const Vx=we(Ip),Wx=t=>({[t.hostDirection]:cI.direction,[t.fontFamily]:cI.fontFamily,[t.labelTextColor]:cI.labelTextColor,[t.labelRequiredIndicator]:cI.requiredIndicator,[t.itemsSpacing]:Vx.spacing.sm,[t.hostWidth]:cI.width,[t.errorMessageTextColor]:cI.errorMessageTextColor,[t.errorMessageIcon]:cI.errorMessageIcon,[t.errorMessageIconSize]:cI.errorMessageIconSize,[t.errorMessageIconPadding]:cI.errorMessageIconPadding,[t.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[t.errorMessageIconPosition]:cI.errorMessageIconPosition,[t.errorMessageFontSize]:cI.errorMessageFontSize,layout:{vertical:{[t.itemsDirection]:"column",[t.itemsAlignment]:"flex-start",_fullWidth:{[t.itemsAlignment]:"stretch",[t.itemsWidth]:"100%"}}}}),Rx=ml.cssVarList,Ux={...Wx(Rx)};var Yx=Object.freeze({__proto__:null,default:Ux,vars:Rx});const Qx=Il.cssVarList,Px={...Wx(Qx)};var Bx=Object.freeze({__proto__:null,default:Px,vars:Qx});const Zx=we(Ip),Fx=ic.cssVarList,Gx={[Fx.overlayBackgroundColor]:Zx.colors.surface.main,[Fx.overlayShadow]:Zx.shadow.wide["2xl"],[Fx.overlayWidth]:"540px",[Fx.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},Hx={...Fx};var Jx=Object.freeze({__proto__:null,default:Gx,vars:Hx});const $x=we(Ip),qx=Kd.cssVarList,_x={[qx.hostWidth]:"100%",[qx.hostHeight]:"100%",[qx.hostMinHeight]:"400px",[qx.fontWeight]:"400",[qx.backgroundColor]:$x.colors.surface.main,[qx.fontSize]:cI.fontSize,[qx.fontFamily]:cI.fontFamily,[qx.sortIndicatorsColor]:$x.colors.surface.light,[qx.activeSortIndicator]:$x.colors.surface.dark,[qx.resizeHandleColor]:$x.colors.surface.light,[qx.borderWidth]:cI.borderWidth,[qx.borderStyle]:cI.borderStyle,[qx.borderRadius]:cI.borderRadius,[qx.borderColor]:"transparent",[qx.headerRowTextColor]:$x.colors.surface.dark,[qx.separatorColor]:$x.colors.surface.light,[qx.valueTextColor]:$x.colors.surface.contrast,[qx.selectedBackgroundColor]:$x.colors.surface.highlight,[qx.hostDirection]:$x.direction,[qx.toggleDetailsPanelButtonSize]:"1em",[qx.toggleDetailsPanelButtonOpenedColor]:$x.colors.surface.contrast,[qx.toggleDetailsPanelButtonClosedColor]:$x.colors.surface.light,[qx.toggleDetailsPanelButtonCursor]:"pointer",[qx.detailsPanelBackgroundColor]:$x.colors.surface.highlight,[qx.detailsPanelBorderTopColor]:$x.colors.surface.light,[qx.detailsPanelLabelsColor]:$x.colors.surface.dark,[qx.detailsPanelLabelsFontSize]:"0.8em",[qx.detailsPanelItemsGap]:"2em",[qx.detailsPanelPadding]:"12px 0",_bordered:{[qx.borderColor]:cI.borderColor}};var Xx=Object.freeze({__proto__:null,default:_x,grid:_x,vars:qx});const Kx=we(Ip),tj=sc.cssVarList,ej="#00000020",ij={[tj.hostMinWidth]:"415px",[tj.fontFamily]:Kx.fonts.font1.family,[tj.fontSize]:Kx.typography.body1.size,[tj.backgroundColor]:Kx.colors.surface.main,[tj.textColor]:Kx.colors.surface.contrast,[tj.boxShadow]:`${Kx.shadow.wide.xl} ${ej}, ${Kx.shadow.narrow.xl} ${ej}`,[tj.verticalPadding]:"0.625em",[tj.horizontalPadding]:"1.5em",[tj.borderRadius]:Kx.radius.xs,_bordered:{[tj.borderWidth]:Kx.border.sm,[tj.borderStyle]:"solid",[tj.borderColor]:"transparent"},size:{xs:{[tj.fontSize]:"12px"},sm:{[tj.fontSize]:"14px"},md:{[tj.fontSize]:"16px"},lg:{[tj.fontSize]:"18px"}},mode:{primary:{[tj.backgroundColor]:Kx.colors.primary.main,[tj.textColor]:Kx.colors.primary.contrast,[tj.borderColor]:Kx.colors.primary.light},success:{[tj.backgroundColor]:Kx.colors.success.main,[tj.textColor]:Kx.colors.success.contrast,[tj.borderColor]:Kx.colors.success.light},error:{[tj.backgroundColor]:Kx.colors.error.main,[tj.textColor]:Kx.colors.error.contrast,[tj.borderColor]:Kx.colors.error.light}}};var oj=Object.freeze({__proto__:null,default:ij,vars:tj});const nj=we(Ip),rj=jc.cssVarList,sj={[rj.hostWidth]:cI.width,[rj.hostDirection]:cI.direction,[rj.fontSize]:cI.fontSize,[rj.fontFamily]:cI.fontFamily,[rj.separatorFontSize]:"14px",[rj.labelsFontSize]:"14px",[rj.labelsLineHeight]:"1",[rj.labelsMarginBottom]:"6px",[rj.labelTextColor]:cI.labelTextColor,[rj.itemMarginBottom]:"1em",[rj.valueLabelMinWidth]:cI.minWidth,[rj.attrLabelMinWidth]:`calc(12em + 2 * ${nj.border.xs})`,[rj.separatorWidth]:"70px",[rj.removeButtonWidth]:"60px"};var aj=Object.freeze({__proto__:null,default:sj,mappingsField:sj,vars:rj});const lj=we(Ip),dj=Rc.cssVarList,cj={[dj.labelMinWidth]:"150px",[dj.hostDirection]:lj.direction,[dj.contentMinWidth]:`calc(100% - ${We(dj.labelMinWidth)} - ${We(dj.itemsGap)})`,[dj.badgeMaxWidth]:"85px",[dj.itemsGap]:"4px",[dj.hostMinWidth]:"310px",[dj.hostWidth]:"530px",[dj.hostMaxWidth]:"100%",[dj.iconColor]:"currentcolor",_fullWidth:{[dj.hostWidth]:"100%"}};var uj=Object.freeze({__proto__:null,default:cj,vars:dj});const pj=we(Ip),hj=Hc.cssVarList,gj={[hj.hostDirection]:pj.direction,[hj.itemsGap]:"16px",[hj.hostMinWidth]:"310px",[hj.hostWidth]:"530px",[hj.hostMaxWidth]:"100%",[hj.iconSize]:"24px",[hj.iconColor]:"currentcolor",_fullWidth:{[hj.hostWidth]:"100%"}};var Mj=Object.freeze({__proto__:null,default:gj,vars:hj});const mj=tu.cssVarList,yj={[mj.hostWidth]:cI.width,[mj.hostDirection]:cI.direction,[mj.groupNameInputMarginBottom]:"1em",[mj.errorMessageIcon]:cI.errorMessageIcon,[mj.errorMessageIconSize]:cI.errorMessageIconSize,[mj.errorMessageIconPadding]:cI.errorMessageIconPadding,[mj.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[mj.errorMessageIconPosition]:cI.errorMessageIconPosition,[mj.errorMessageFontSize]:cI.errorMessageFontSize};var bj=Object.freeze({__proto__:null,default:yj,samlGroupMappings:yj,vars:mj});const Nj=we(Ip),Ij=Na.cssVarList,xj={[Ij.fontFamily]:cI.fontFamily,[Ij.fontSize]:cI.labelFontSize,[Ij.textColor]:cI.labelTextColor,[Ij.borderWidth]:cI.borderWidth,[Ij.borderStyle]:cI.borderStyle,[Ij.borderColor]:cI.borderColor,[Ij.borderRadius]:Nj.radius.sm,[Ij.backgroundColor]:"none",[Ij.padding]:"0px",[Ij.labelMargin]:Nj.spacing.sm,[Ij.itemsSpacing]:Nj.spacing.lg,[Ij.itemSymbolDefault]:"'\\2022'",[Ij.itemSymbolSuccess]:"'\\2713'",[Ij.itemSymbolError]:"'\\2A09'",[Ij.itemSymbolSuccessColor]:Nj.colors.success.main,[Ij.itemSymbolErrorColor]:Nj.colors.error.main};var jj=Object.freeze({__proto__:null,default:xj,vars:Ij});const Tj=we(Ip),Dj=Cd.cssVarList,vj="#d73a49",zj="#6f42c1",Cj="#005cc5",Sj="#e36209",wj="#6a737d",Lj="#22863a",Aj="#24292e",fj="#f0fff4",Ej="#032f62",kj="#ff7b72",Oj="#d2a8ff",Vj="#79c0ff",Wj="#ffa657",Rj="#8b949e",Uj="#7ee787",Yj="#c9d1d9",Qj="#f0fff4",Pj="#a5d6ff",Bj={[Dj.copyButtonSize]:"32px",[Dj.copyButtonBorderRadius]:Tj.radius.xs,[Dj.copyButtonBorderWidth]:Tj.border.xs,[Dj.copyButtonBorderColor]:Tj.colors.surface.light,[Dj.copyButtonBgColor]:Tj.colors.surface.highlight,[Dj.copyButtonHoverBgColor]:Tj.colors.surface.light,[Dj.copyButtonColor]:Tj.colors.surface.contrast,[Dj.rootBgColor]:Tj.colors.surface.main,[Dj.rootTextColor]:Tj.colors.surface.contrast,[Dj.docTagTextColor]:vj,[Dj.keywordTextColor]:vj,[Dj.metaKeywordTextColor]:vj,[Dj.templateTagTextColor]:vj,[Dj.templateVariableTextColor]:vj,[Dj.typeTextColor]:vj,[Dj.variableLanguageTextColor]:vj,[Dj.titleTextColor]:zj,[Dj.titleClassTextColor]:zj,[Dj.titleClassInheritedTextColor]:zj,[Dj.titleFunctionTextColor]:zj,[Dj.attrTextColor]:Cj,[Dj.attributeTextColor]:Cj,[Dj.literalTextColor]:Cj,[Dj.metaTextColor]:Cj,[Dj.numberTextColor]:Cj,[Dj.operatorTextColor]:Cj,[Dj.variableTextColor]:Cj,[Dj.selectorAttrTextColor]:Cj,[Dj.selectorClassTextColor]:Cj,[Dj.selectorIdTextColor]:Cj,[Dj.regexpTextColor]:Ej,[Dj.stringTextColor]:Ej,[Dj.metaStringTextColor]:Ej,[Dj.builtInTextColor]:Sj,[Dj.symbolTextColor]:Sj,[Dj.commentTextColor]:wj,[Dj.codeTextColor]:wj,[Dj.formulaTextColor]:wj,[Dj.nameTextColor]:Lj,[Dj.quoteTextColor]:Lj,[Dj.selectorTagTextColor]:Lj,[Dj.selectorPseudoTextColor]:Lj,[Dj.substTextColor]:Aj,[Dj.sectionTextColor]:Cj,[Dj.bulletTextColor]:"#735c0f",[Dj.emphasisTextColor]:Aj,[Dj.strongTextColor]:Aj,[Dj.additionTextColor]:Lj,[Dj.additionBgColor]:fj,[Dj.deletionTextColor]:vj,[Dj.deletionBgColor]:fj},Zj={codeSnippet:{[Dj.rootBgColor]:Tj.colors.surface.main,[Dj.rootTextColor]:Tj.colors.surface.contrast,[Dj.docTagTextColor]:kj,[Dj.keywordTextColor]:kj,[Dj.metaKeywordTextColor]:kj,[Dj.templateTagTextColor]:kj,[Dj.templateVariableTextColor]:kj,[Dj.typeTextColor]:kj,[Dj.variableLanguageTextColor]:kj,[Dj.titleTextColor]:Oj,[Dj.titleClassTextColor]:Oj,[Dj.titleClassInheritedTextColor]:Oj,[Dj.titleFunctionTextColor]:Oj,[Dj.attrTextColor]:Vj,[Dj.attributeTextColor]:Vj,[Dj.literalTextColor]:Vj,[Dj.metaTextColor]:Vj,[Dj.numberTextColor]:Vj,[Dj.operatorTextColor]:Vj,[Dj.variableTextColor]:Vj,[Dj.selectorAttrTextColor]:Vj,[Dj.selectorClassTextColor]:Vj,[Dj.selectorIdTextColor]:Vj,[Dj.regexpTextColor]:Pj,[Dj.stringTextColor]:Pj,[Dj.metaStringTextColor]:Pj,[Dj.builtInTextColor]:Wj,[Dj.symbolTextColor]:Wj,[Dj.commentTextColor]:Rj,[Dj.codeTextColor]:Rj,[Dj.formulaTextColor]:Rj,[Dj.nameTextColor]:Uj,[Dj.quoteTextColor]:Uj,[Dj.selectorTagTextColor]:Uj,[Dj.selectorPseudoTextColor]:Uj,[Dj.substTextColor]:Yj,[Dj.sectionTextColor]:Vj,[Dj.bulletTextColor]:"#735c0f",[Dj.emphasisTextColor]:Yj,[Dj.strongTextColor]:Yj,[Dj.additionTextColor]:Uj,[Dj.additionBgColor]:Qj,[Dj.deletionTextColor]:kj,[Dj.deletionBgColor]:Qj}};var Fj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Zj,default:Bj,vars:Dj});const Gj=nu.cssVarList,Hj=we(Ip),Jj={[Gj.buttonsRowGap]:"9px",[Gj.hostWidth]:cI.width,[Gj.hostDirection]:cI.direction,[Gj.fontSize]:cI.fontSize,[Gj.fontFamily]:cI.fontFamily,[Gj.labelFontWeight]:cI.labelFontWeight,[Gj.labelTextColor]:cI.labelTextColor,[Gj.labelRequiredIndicator]:cI.requiredIndicator,[Gj.errorMessageTextColor]:cI.errorMessageTextColor,[Gj.errorMessageIcon]:cI.errorMessageIcon,[Gj.errorMessageIconSize]:cI.errorMessageIconSize,[Gj.errorMessageIconPadding]:cI.errorMessageIconPadding,[Gj.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[Gj.errorMessageIconPosition]:cI.errorMessageIconPosition,[Gj.errorMessageFontSize]:cI.errorMessageFontSize,[Gj.helperTextColor]:cI.helperTextColor,[Gj.itemsLabelColor]:Hj.colors.surface.contrast,[Gj.itemsLabelFontWeight]:cI.inputValueFontWeight,[Gj.itemsFontFamily]:cI.fontFamily,[Gj.itemsRadioCheckedColor]:Hj.colors.surface.light,[Gj.itemsRadioBackgroundColor]:Hj.colors.surface.light,[Gj.itemsRadioCheckedBackgroundColor]:Hj.colors.surface.contrast,textAlign:{right:{[Gj.inputTextAlign]:"right"},left:{[Gj.inputTextAlign]:"left"},center:{[Gj.inputTextAlign]:"center"}},_fullWidth:{[Gj.buttonsSpacing]:"space-between"},_disabled:{[Gj.itemsLabelColor]:Hj.colors.surface.light}};var $j=Object.freeze({__proto__:null,default:Jj,radioGroup:Jj,vars:Gj});const qj=iu.cssVarList,_j=we(Ip),Xj={[qj.fontFamily]:cI.fontFamily,[qj.labelFontWeight]:cI.inputValueFontWeight,[qj.radioSize]:"calc(1em + 6px)",[qj.radioMargin]:"auto 4px",[qj.radioCheckedSize]:`calc(var(${qj.radioSize})/5)`,[qj.radioCheckedColor]:_j.colors.surface.light,[qj.radioBackgroundColor]:_j.colors.surface.light,[qj.radioBorderColor]:"none",[qj.radioBorderWidth]:0,_checked:{[qj.radioBackgroundColor]:_j.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[qj.fontSize]:"12px"},sm:{[qj.fontSize]:"14px"},md:{[qj.fontSize]:"16px"},lg:{[qj.fontSize]:"18px"}}};var Kj=Object.freeze({__proto__:null,default:Xj,radioButton:Xj,vars:qj});const tT=we(Ip),eT=En.cssVarList,iT={[eT.fontFamily]:cI.fontFamily,[eT.fontSize]:cI.fontSize,[eT.hostDirection]:cI.direction,[eT.calendarPadding]:"1em",[eT.topNavVerticalPadding]:"1em",[eT.topNavAlignment]:"space-between",[eT.topNavGap]:"0",[eT.topNavSelectorsGap]:"0.5em",[eT.bottomNavVerticalPadding]:"0.75em",[eT.bottomNavHorizontalPadding]:"1.5em",[eT.bottomNavAlignment]:"space-between",[eT.bottomNavGap]:"0.5em",[eT.navMarginBottom]:"0.75em",[eT.navBorderBottomWidth]:"1px",[eT.navBorderBottomColor]:tT.colors.surface.highlight,[eT.navBorderBottomStyle]:"solid",[eT.yearInputWidth]:"6em",[eT.monthInputWidth]:"8em",[eT.navButtonSize]:"24px",[eT.navButtonCursor]:"pointer",[eT.weekdayFontSize]:"0.875em",[eT.weekdayFontWeight]:"500",[eT.dayHeight]:"3.125em",[eT.daySize]:"2.125em",[eT.dayFontSize]:"1em",[eT.dayRadius]:"50%",[eT.dayTextAlign]:"center",[eT.dayPadding]:"0",[eT.dayTextColor]:tT.colors.surface.contrast,[eT.dayFontWeight]:"500",[eT.dayBackgroundColor]:"transparent",[eT.dayCursor]:"pointer",[eT.dayBackgroundColorHover]:tT.colors.primary.highlight,[eT.daySelectedBackgroundColor]:tT.colors.primary.main,[eT.daySelectedTextdColor]:tT.colors.primary.contrast,[eT.dayDisabledTextdColor]:tT.colors.surface.light,[eT.currentDayBorderColor]:tT.colors.surface.light,[eT.currentDayBorderWidth]:"1px",[eT.currentDayBorderStyle]:"solid",size:{xs:{[eT.fontSize]:"12px"},sm:{[eT.fontSize]:"14px"},md:{[eT.fontSize]:"16px"},lg:{[eT.fontSize]:"18px"}},[eT.navButtonRotation]:"rotate(180deg)",_disabled:{[eT.navButtonOpacity]:"0.5",[eT.dayBackgroundColorHover]:"none",[eT.navButtonCursor]:"default",[eT.dayCursor]:"default"},_fullWidth:{[eT.hostWidth]:"100%",[eT.dayBlockAlign]:"0 auto"}};var oT=Object.freeze({__proto__:null,default:iT,vars:eT});const nT=we(Ip),rT="#00000020",{shadow:sT}=nT,aT=hr.cssVarList,lT={[aT.hostWidth]:cI.width,[aT.hostDirection]:cI.direction,[aT.iconMargin]:"0.375em",[aT.overlay.marginTop]:`calc(${cI.outlineWidth} + 1px)`,[aT.overlay.backgroundColor]:cI.backgroundColor,[aT.overlay.backdropBackgroundColor]:"transparent",[aT.overlay.backdropPointerEvents]:"all",[aT.overlay.boxShadow]:`${sT.wide.xl} ${rT}, ${sT.narrow.xl} ${rT}`,[aT.overlay.outlineWidth]:"0",[aT.overlay.outlineColor]:"transparent",[aT.overlay.outlineStyle]:"none",[aT.overlay.padding]:"0",[aT.rtlInputDirection]:"ltr",[aT.rtlInputAlignment]:"right",[aT.errorMessageIcon]:cI.errorMessageIcon,[aT.errorMessageIconSize]:cI.errorMessageIconSize,[aT.errorMessageIconPadding]:cI.errorMessageIconPadding,[aT.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[aT.errorMessageIconPosition]:cI.errorMessageIconPosition,[aT.errorMessageFontSize]:cI.errorMessageFontSize,[aT.labelFontWeight]:cI.labelFontWeight,[aT.inputValueFontWeight]:cI.inputValueFontWeight,[aT.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[aT.helperTextFontWeight]:cI.helperTextFontWeight,[aT.errorMessageFontWeight]:cI.errorMessageFontWeight};var dT=Object.freeze({__proto__:null,default:lT,vars:aT});const cT=cu.cssVarList,uT={[cT.requiredInputBorderColor]:dI._disabled[uI.borderColor],[cT.requiredInputValueTextColor]:dI._disabled[uI.valueTextColor],[cT.hostWidth]:"280px",_fullWidth:{[cT.hostWidth]:"100%"}};var pT=Object.freeze({__proto__:null,default:uT,vars:cT});const hT=we(Ip),gT=Iu.cssVarList,MT={[gT.gap]:hT.spacing.lg,[gT.arrowsColor]:hT.colors.surface.dark,[gT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[gT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[gT.logoMaxHeight]:"30px",[gT.logoMaxWidth]:"120px"},sm:{[gT.logoMaxHeight]:"40px",[gT.logoMaxWidth]:"160px"},md:{[gT.logoMaxHeight]:"48px",[gT.logoMaxWidth]:"200px"},lg:{[gT.logoMaxHeight]:"60px",[gT.logoMaxWidth]:"240px"}}};var mT=Object.freeze({__proto__:null,default:MT,vars:gT});const yT=vu.cssVarList,bT={[yT.hostWidth]:"fit-content",_fullWidth:{[yT.hostWidth]:"100%"}};var NT=Object.freeze({__proto__:null,default:bT,vars:yT});const IT=Eu.cssVarList,xT={[IT.hostWidth]:"min-content",[IT.questionCursor]:"pointer",_fullWidth:{[IT.hostWidth]:"100%"},[IT.questionFontSize]:cI.fontSize,[IT.questionFontFamily]:cI.fontFamily};var jT=Object.freeze({__proto__:null,default:xT,vars:IT});const TT=lp.cssVarList,DT={[TT.hostDirection]:cI.direction,[TT.labelFontWeight]:cI.labelFontWeight,[TT.inputValueFontWeight]:cI.inputValueFontWeight,[TT.inputPlaceholderFontWeight]:cI.inputPlaceholderFontWeight,[TT.helperTextFontWeight]:cI.helperTextFontWeight,[TT.errorMessageFontWeight]:cI.errorMessageFontWeight,[TT.errorMessageIcon]:cI.errorMessageIcon,[TT.errorMessageIconSize]:cI.errorMessageIconSize,[TT.errorMessageIconPadding]:cI.errorMessageIconPadding,[TT.errorMessageIconRepeat]:cI.errorMessageIconRepeat,[TT.errorMessageIconPosition]:cI.errorMessageIconPosition,[TT.errorMessageFontSize]:cI.errorMessageFontSize,_fullWidth:{[TT.hostWidth]:"100%"}};var vT=Object.freeze({__proto__:null,default:DT,vars:TT});const zT=we(Ip),CT=pp.cssVarList,ST={[CT.hostDirection]:zT.direction,[CT.backgroundColor]:"transparent",[CT.iconSize]:"1.35em",[CT.alignItems]:"center",[CT.borderRadius]:zT.radius.md,[CT.horizontalPadding]:"0",[CT.verticalPadding]:"0",[CT.gap]:"0.5em",[CT.fontSize]:We(Wp.fontSize),mode:{error:{[CT.textColor]:zT.colors.error.main,_bordered:{[CT.borderColor]:zT.colors.error.main}},success:{[CT.textColor]:zT.colors.success.main,_bordered:{[CT.borderColor]:zT.colors.success.main}}},spacing:{xs:{[CT.horizontalPadding]:zT.spacing.xs,[CT.verticalPadding]:zT.spacing.xs},sm:{[CT.horizontalPadding]:zT.spacing.sm,[CT.verticalPadding]:zT.spacing.sm},md:{[CT.horizontalPadding]:zT.spacing.md,[CT.verticalPadding]:zT.spacing.md},lg:{[CT.horizontalPadding]:zT.spacing.lg,[CT.verticalPadding]:zT.spacing.lg},xl:{[CT.horizontalPadding]:zT.spacing.xl,[CT.verticalPadding]:zT.spacing.xl}},textAlign:{left:{[CT.justifyContent]:"left"},center:{[CT.justifyContent]:"center"},right:{[CT.justifyContent]:"right"}},_bordered:{[CT.borderWidth]:zT.border.xs,[CT.borderColor]:"transparent",[CT.borderStyle]:"solid",[CT.borderWidth]:zT.border.xs,[CT.borderRadius]:zT.radius.sm},_fullWidth:{[CT.hostWidth]:"100%"}};var wT=Object.freeze({__proto__:null,default:ST,vars:CT});const LT=mp.cssVarList,AT={enabled:{false:{[LT.maxHeight]:"70px"}}},fT={button:Op,textField:gb,password:mI,numberField:NI,emailField:JN,textArea:jI,checkbox:zI,switchToggle:AI,container:YI,logo:BI,totpImage:GI,notpImage:$I,text:Up,enrichedText:Hp,link:Bp,divider:ox,passcode:sx,loaderRadial:bx,loaderLinear:cx,comboBox:eh,phoneField:xx,phoneInputBoxField:Dx,newPassword:Sx,newEmail:sI,inputWrapper:pI,uploadFile:Ax,buttonSelectionGroupItem:Ox,buttonSelectionGroup:Yx,buttonMultiSelectionGroup:Bx,modal:Jx,grid:Xx,notificationCard:oj,multiSelectComboBox:Tg,badge:lh,avatar:Nh,mappingsField:aj,userAttribute:uj,userAuthMethod:Mj,samlGroupMappings:bj,policyValidation:jj,image:Th,icon:xh,codeSnippet:Fj,radioGroup:$j,radioButton:Kj,calendar:oT,dateField:dT,monthDayField:Gb,monthDayFieldPicker:sN,list:Uh,listItem:Bh,multiLineMappings:Ng,appsList:Lh,scopesList:pT,thirdPartyAppLogo:mT,securityQuestionsSetup:NT,securityQuestionsVerify:jT,hybridField:vT,alert:wT,autocompleteField:kg,addressField:qg,countrySubdivisionCityField:Yy,timer:lM,timerButton:DM,passwordStrength:WM,collapsibleContainer:qM,recoveryCodes:lm,activeSessions:bm,hcaptcha:Object.freeze({__proto__:null,default:AT,vars:LT}),outboundApps:zm,outboundAppButton:Em,trustedDevices:Bm,multiSso:Xm,tooltip:hy,filter:FN,attachment:qy,userPasskeys:cb},ET=Object.keys(fT).reduce((t,e)=>({...t,[e]:fT[e].default}),{}),kT=Object.keys(fT).reduce((t,e)=>({...t,[e]:fT[e].vars}),{}),OT={globals:Ip,components:ET},VT={globals:xp,components:kT},WT=a()({},OT,{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:{...Zj}});customElements.define(Zh,rg),customElements.define(cm,Mm),customElements.define(Dg,class extends vg{static get observedAttributes(){return[].concat(vg.observedAttributes||[],zg)}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(t){this.allowCustomValue?this.comboBox.value=t:(this.comboBox.data=[{label:t,value:t}],setTimeout(()=>{this.comboBox.value=t}))}get defaultValue(){return this.getAttribute("default-value")}async#Kr(t){const{results:e,error:i}=await this.fetchResults(t);return i?{error:i}:{results:e}}#ts(t,e,i,o){return`<span data-name="${i}" data-id="${e}" ${o?'disabled="true"':""}>${t||i}</span>`}#es(){this.comboBox.renderer=(t,e,i)=>{"true"===i.item.getAttribute("disabled")?t.setAttribute("disabled","true"):t.removeAttribute("disabled"),t.innerHTML=i.item.outerHTML},this.comboBox.renderItem=({displayName:t,value:e,label:i,disabled:o})=>this.#ts(t,e,i,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#is(),S(this,this.comboBox,{includeAttrs:["invalid"]})}#is(){this.debouncedSearch=(t=>{let e=0;const i=new Set,o=new Set,n=r()((n,r)=>{t(...n).then(t=>{r===e&&(i.forEach(e=>e(t)),i.clear())}).catch(t=>{o.forEach(e=>e(t)),o.clear()})},250);return(...t)=>(e++,new Promise((r,s)=>{i.add(r),o.add(s),n(t,e)}))})(async t=>{try{const{results:e,error:i}=await this.#Kr(t);return{results:e,error:i,value:t}}catch(e){return{error:e,value:t}}}),f(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.#es()}#os(){return[{label:this.noResultsFoundMessage,value:Cg,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:Cg,disabled:!0}]}async onSearch(t){const e=t.detail.value;if(!e||e.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const i=await this.debouncedSearch(e);i&&i.value===e&&(this.comboBox.loading=!1,i.error?this.comboBox.data=this.#ns():0===i.results?.length?this.comboBox.data=this.#os():this.comboBox.data=i.results||[])}fetchResults(t){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(Sg,Lg),customElements.define(Wg,Zg),customElements.define(Fg,Hg);const RT=L("anchored");class UT extends(It({componentName:RT,baseSelector:".anchored-root"})){#rs=null;#ss=null;#as=null;#ls=null;get#ds(){return this.defaultSlot.assignedElements({flatten:!0})[0]}get#cs(){return this.shadowRoot.querySelector('slot[name="anchored"]')?.assignedElements()[0]}get#us(){return this.getRootNode().host}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="anchored-root" part="root">\n <slot></slot>\n <div class="anchored-host" part="anchored">\n <slot name="anchored"></slot>\n </div>\n </div>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])")}init(){super.init?.(),E("\n :host {\n display: inline-flex;\n position: relative;\n box-sizing: border-box;\n }\n\n :host(:not([has-anchor])) {\n display: none;\n }\n\n .anchored-root {\n position: relative;\n display: flex;\n width: 100%;\n min-width: 0;\n }\n\n /* Make anchor fill the flex row and allow it to shrink. */\n ::slotted(*:not([slot])) {\n flex-grow: 1; /* fill the flex row */\n flex-shrink: 1; /* compress when constrained */\n flex-basis: auto; /* start from the anchor's natural size */\n min-width: 0; /* flex items won't shrink below content size without this */\n }\n\n /* Anchored container covers the anchor but is invisible to pointer events. */\n .anchored-host {\n position: absolute;\n inset: 0;\n pointer-events: none;\n }\n\n /* Restore interactivity for actual anchored content. */\n ::slotted([slot=\"anchored\"]) {\n pointer-events: auto;\n }\n ",this),this.#ps(),this.defaultSlot.addEventListener("slotchange",()=>this.#hs()),this.#hs()}#bi(){const t=this.#ds?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#hs(){this.#gs(),this.#rs=this.#Ms(this.#rs,this.#us,"stretch"),this.#ss=this.#Ms(this.#ss,this.#cs,"st-host-direction"),this.#ms()}#ms(){this.#ls?.disconnect(),this.#ds&&(this.#ls=v(this.#ds,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#ms(),this.#bi()}#ps(){const t="\n descope-anchored {\n width: 100%; /* fill the outer host so the anchored element spans the full anchor width */\n }\n :host([stretch]) {\n display: inline-flex; /* switch from inline-block so internal children are flex items */\n width: 100%; /* fill non-flex parents */\n flex-grow: 1; /* absorb extra space in flex parents */\n flex-shrink: 0; /* hold full width — shrink:1 would let siblings squeeze it below 100% */\n flex-basis: auto; /* defer to width:100% on the main axis; avoids forcing 100% height in column-flex parents */\n min-width: 0; /* prevent overflow when the outer host is itself inside a constrained flex row */\n }\n ";this.#as?this.#as.replaceSync(t):this.#us&&(this.#as=E(t,this.#us))}#Ms(t,e,i){return t?.disconnect(),e?.removeAttribute(i),this.#ds&&e?f(this.#ds,e,{includeAttrs:[i]}):null}disconnectedCallback(){super.disconnectedCallback?.(),this.#rs?.disconnect(),this.#ss?.disconnect(),this.#ls?.disconnect()}#gs(){this.toggleAttribute("has-anchor",!!this.#ds),this.#bi()}}const YT=T(Mt)(UT);customElements.define(RT,YT),customElements.define(dh,gh),customElements.define(Dh,vh),customElements.define(Qy,Gy),customElements.define(RM,QM),customElements.define(Iy,fy),customElements.define(Ey,Wy),customElements.define(yN,vN),customElements.define(zN,fN),customElements.define(EN,UN),customElements.define($b,oN),customElements.define(zb,Yb),customElements.define(sg,mg),customElements.define(Zm,Jm);const QT=/^email-/,PT=/^confirm-/,BT=(t,e)=>t.replace(e,""),ZT=["email-label","email-placeholder"],FT=["confirm-label","confirm-placeholder"],GT=["disabled","bordered","size","full-width","invalid","readonly","draggable","label-type"],HT=[].concat(GT,ZT,FT),JT=Ct({componentName:$N,baseSelector:"div"});customElements.define($N,class extends JT{static get observedAttributes(){return[].concat(JT.observedAttributes||[],HT)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.emailInput?.value||""}set value(t){t!==this.value&&(this.emailInput.value=t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.value&&!this.emailFormat.test(this.value)?{patternMismatch:!0}:this.value!==(this.confirmInput?.value||"")?{typeMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.emailInput.focus()}),super.init?.(),this.renderInputs()}renderInputs(){const t="true"===this.getAttribute("external-input"),e="false"!==this.getAttribute("accept-unicode");this.emailFormat=e?new RegExp(Ou,"u"):new RegExp(ku);const i=`\n <descope-email-field\n data-id="email"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n ></descope-email-field>\n <descope-email-field\n data-id="confirm"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n autocomplete="off"\n ></descope-email-field>\n `;this.wrapperEle.innerHTML=i,this.emailInput=this.querySelector('[data-id="email"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.inputs=[this.emailInput,this.confirmInput],this.initInputs()}handleIndicatorStyle(){this.inputs.forEach(t=>{E(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${oI.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`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&v(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&(GT.includes(t)?this.inputs?.forEach(e=>this.toggleBooleanAttribute(e,t,i)):ZT.includes(t)?this.toggleBooleanAttribute(this.emailInput,BT(t,QT),i):FT.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,BT(t,PT),i))}}),customElements.define(qN,oI),customElements.define(Cm,wm),customElements.define(Nm,Tm),customElements.define(vM,fM);var $T=Object.freeze({__proto__:null,PasswordStrengthClass:fM,componentName:vM});const qT=L("ponyhot"),_T="dhp-",XT=It({componentName:qT,baseSelector:""}),KT=T(Mt)(class extends XT{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#ys(),this.#bs(),this.#Ns())}#ys(){const t=["input","change","click","keydown","keyup","mouseover","mousedown"],e=i=>{this.input.value=`${_T}${i.type}`,t.forEach(t=>{this.input.removeEventListener(t,e)})};t.forEach(t=>{this.input.addEventListener(t,e)})}#bs(){const t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.input,"value",{get(){return t.get.call(this)},set(e){const i=t.get.call(this);e&&!e.startsWith(_T)&&e!==i?t.set.call(this,`${_T}direct-set`):t.set.call(this,e)},configurable:!0})}#Ns(){Object.entries({position:"absolute",opacity:"0.01",width:"1px",height:"1px",pointerEvents:"none",zIndex:"-1",left:"-999999px"}).forEach(([t,e])=>{this.style[t]=e})}});customElements.define(qT,KT),customElements.define(_M,om),customElements.define(Xg,nM),customElements.define(dM,IM),customElements.define(Km,ny),customElements.define(Vm,Ym),customElements.define(eb,ab);const tD={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}},eD=new m.Qn(tD);var iD=Object.freeze({__proto__:null,default:t=>eD.check(t),options:tD})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_descope_flow_components_3_27_7_1795603468344=self.webpackChunk_descope_flow_components_3_27_7_1795603468344||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Bb,$y:()=>up,A8:()=>vc,Ag:()=>ol,C1:()=>Qc,C9:()=>zo,Cz:()=>uc,Er:()=>yh,G6:()=>UT,HO:()=>to,HT:()=>ro,J1:()=>Uo,JQ:()=>sI,Jr:()=>Zi,Lg:()=>Mp,MN:()=>hs,Mz:()=>fa,NF:()=>Hs,O7:()=>ZM,Od:()=>Tu,QW:()=>rc,Qb:()=>sm,R3:()=>_m,SE:()=>po,SQ:()=>Eo,T$:()=>cb,T1:()=>iD,TV:()=>Np,U6:()=>bm,Ul:()=>ca,VN:()=>Ad,VX:()=>wr,_w:()=>Ue,a5:()=>YT,bL:()=>mr,bU:()=>qg,br:()=>Y,dS:()=>PN,dX:()=>Sh,dq:()=>Bm,du:()=>Ng,e7:()=>Ee,eA:()=>Lc,eo:()=>Nl,ew:()=>Ne,fp:()=>Tl,gZ:()=>hu,h5:()=>zm,jH:()=>Lr,k0:()=>Dr,l1:()=>lo,lZ:()=>sN,md:()=>Cr,ml:()=>Ht,mq:()=>ou,o9:()=>Er,o_:()=>Re,pp:()=>qc,px:()=>Vu,q:()=>$y,q4:()=>Ai,qn:()=>Lo,rG:()=>Su,sK:()=>ki,tD:()=>ic,tS:()=>au,td:()=>lg,tl:()=>es,ul:()=>Ga,v_:()=>np,w8:()=>ir,wt:()=>ja,xO:()=>Ts,xp:()=>bu,xs:()=>Vn,yW:()=>fm,yi:()=>ay,yj:()=>TM,zQ:()=>RT,zZ:()=>Yy});var o=i(7949),n=i(7519),r=i(72),s=i.n(r),a=i(8089),l=i.n(a),d=i(465),c=i.n(d),u=(i(8231),i(4873),i(865),i(4598),i(496),i(7726),i(4155),i(9504),i(5877),i(3798),i(8619),i(1394)),p=i(3667),h=(i(8319),i(3826)),g=i(8677),M=i(127),m=(i(9849),i(4899),i(3977),i(9435),i(1399),i(5595),i(7822),i(6601),i(2381)),y=i(6916),b=i(418),N=i(1479);const I="descope",x=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),j=(...t)=>x(t.filter(t=>!!t).join("-")),T=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),D=t=>"function"==typeof t,v=["javascript:","vbscript:","file:"],z=(t,{allowDataImage:e=!1}={})=>{if("string"!=typeof t||!t)return"";try{const{protocol:i}=new URL(t,"https://base.invalid");return v.includes(i)?"":"data:"===i?e&&/^\s*data:image\//i.test(t)?t:"":t}catch{return""}},C=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n);const r=new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})});return r.observe(t,{attributes:!0}),{disconnect:()=>r.disconnect()}},S=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},w=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},A=(t,e,i)=>{C(t,w(t,e),i),C(e,w(e,t),i)},L=t=>async e=>{const i=await t(e);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})},f=t=>j(I,t),E=(...t)=>`--${j(...t)}`,k=(t,e,i={})=>C(t,w(t,e,i.mapAttrs),i),O=(t,e,{prepend:i=!1}={})=>{let o;try{o=new CSSStyleSheet}catch{return W(t,e,{prepend:i})}const n=e?.shadowRoot||e;if(t&&o.replaceSync(t),n){const t=[...n.adoptedStyleSheets||[]];t[i?"unshift":"push"](o),n.adoptedStyleSheets=t}return t&&!o.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${t}"`),o};class V{constructor(t,e,{prepend:i=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=t,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=e?.shadowRoot||e,this.ref&&(i?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(t){this.styleEle.textContent=t}get cssRules(){return this.styleEle.sheet?.cssRules}}const W=(t,e,{prepend:i=!1}={})=>new V(t,e,{prepend:i}),R=(t,e=2)=>t.trim().split(" ").splice(0,e).map(t=>t[0]?.toUpperCase()).join(""),U=(t,e)=>{if(!t||!e)return null;const i=t.querySelectorAll(`:scope > [slot="${e}"]`);if(!i.length)return null;const o=document.createDocumentFragment();return i.forEach(t=>{const e=t.content?t.content.cloneNode(!0):t.cloneNode(!0);e.removeAttribute&&e.removeAttribute("slot"),o.append(e)}),o},Y=new class{static mountOnPropName="DescopeThemeManager";#t={};#e="light";#i=new Set;#o(){this.#i.forEach(t=>t?.())}get currentThemeName(){return this.#e}set currentThemeName(t){this.#e=t,this.#o()}get currentTheme(){return this.#t[this.currentThemeName]}onCurrentThemeChange(t){return this.#i.add(t),()=>{this.#i.delete(t)}}set themes(t){this.#t=t,this.#o()}get hasThemes(){return!!Object.keys(this.#t).length}},Q=.25,P=.1,B=(t,e)=>t.darken(e).hex(),Z=t=>{const e=t.isDark();return t.mix(c()(e?"white":"black"),1).saturate(1).hex()},F=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),G=t=>t.luminosity()>.99,H=(t,e)=>(t=>t.luminosity()<.01)(t)?F(t,Q):B(t,.4),J=(t,e)=>G(t)?B(t,Q):F(t,.4),$=(t,e)=>G(t)?B(t,P):F(t,.8),q=(t,e)=>{const i=new(c())(t.main||t);return{main:i.hex(),dark:t.dark||H(i),light:t.light||J(i),highlight:t.highlight||$(i),contrast:t.contrast||Z(i)}},_=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,X=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,K=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,tt=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,et=(t,e)=>`\n ${(t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`)(t)}\n ${X(t)}\n ${K(t)}\n ${(t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`)(t)}\n ${((t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`)(t,e)}\n ${(t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`)(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`,it=t=>`\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 ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,ot=t=>E(I,...t),nt=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},rt=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?l()(t,i(e.concat(o),n)):l()(t,rt(n,[...e,o],i)),{}),st=(t,e)=>rt(t,[],t=>nt({},t,`var(${ot(t)})`)),at=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),lt=(t,e)=>{const i=rt(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=E(e,n),s={[n]:r},a={[n]:at(r)};return{theme:nt({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},dt=t=>`${t}__override`,ct=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${dt(t)}, ${o})`:o};let ut=class{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}};const pt=(t,e="fallback")=>j(t,e),ht=(t,e,{fallback:i})=>{if(!i)return{};const o=pt(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...ht(n,o,i)}},gt=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=E(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:dt(n)},ht(o,n,e[o]))},{}),Mt=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...gt(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o="host",baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>j("st",i,t))}get#h(){return Y.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=Y.currentThemeName,this.onThemeChange?.(Y.currentThemeName)}#M(){this.#r=O("",this.#d,{prepend:!0}),this.#s=Y.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=O(`:host(${t}) {}`,this.#d)}}#y(t,e){const i=this.#n.cssRules[0].style;if(!i)return;const o=E(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new ut,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=pt(e,t?.suffix);return ct(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:x(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=E(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>D(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),D(i)?i():i,ct(a,l,!0)+(r?"!important":""))})}),o.toString()})(j(n,this.#a),this.#c,t);O(e,this.#d,{prepend:!0})}}#I(){const t=D(i)?i():i;t&&O(t,this.#d,{prepend:!0})}#x(t){(this.#d?.classList||this.#d?.host?.classList||this.classList).add(t)}async init(){super.init?.(),!this.shadowRoot?.isConnected&&this.shadowRoot||(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),C(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},mt=t=>class extends t{constructor(){super(),O(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},yt=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},bt=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},Nt=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},It=["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","hide-country","hide-subdivision","hide-city"],xt=t=>class extends t{init(){super.init?.(),C(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>It.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},jt=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return T(yt,Nt,xt,bt)(i)};function Tt(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const Dt=t=>class extends t{#v=Tt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},vt=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,Tt.call(this,"blur"),Tt.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Tt.call(this,"focus"),Tt.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,Tt.call(this,"input",{bubbles:!0,composed:!0})))})}},zt=["required","pattern"],Ct=Symbol("validationTarget"),St=t=>class extends t{#C=Ct;static get observedAttributes(){return[...t.observedAttributes||[],...zt]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=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(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===Ct?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}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.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),zt.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},wt=(...t)=>T(St,Dt,xt,vt)(jt(...t)),At="FETCH_RESULTS_ERROR",Lt=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#A()}checkConnectorValidity(){this.isValid=this.#A()}#A(){return!this.getRequiredParams().filter(t=>{const e=this.getAttribute(t);return!e||!this.validateParam(t,e)}).length}validateParam(t,e){return e.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(t){return this.isValid?this._fetchResults(t):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(t){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},ft=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(jt({componentName:t,baseSelector:e})){#L=Tt.bind(this,"blur");#f=Tt.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,O((D(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#L()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),((t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)})(this.baseElement,this,s),A(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},Et=["invalid","required"],kt=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},Ot=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(St(r)){static get observedAttributes(){return[...r.observedAttributes||[],...Et]}#E;#v=Tt.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=kt(t)||kt(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),k(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},Vt=t=>T(Ot(t),Mt({componentNameOverride:f("input-wrapper")})),Wt=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>r=>{if(D(e)&&!t)throw new Error("portalMixin: a function selector requires a name");const s=t||(t=>t.replace(/[^\w\s]/gi,""))(e),a=Mt({mappings:i,style:o})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:gt(s?j(r.componentName,"_"+s):r.componentName,i)}}#O;constructor(){const t=L(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);if(!e||!t.shadowRoot)return i;const o=await L(()=>i)(t);return D(e)?e(o):o.querySelector(e)});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;k(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},Rt=()=>!0,Ut=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,Yt=({itemRenderer:t=Ut,validateSchema:e=Rt,slotName:i,rerenderAttrsList:o=[],targetSelector:n,sortFn:r=t=>t})=>s=>class extends s{#R=[];#U;#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.#U&&this.#U.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),(r?this.data.sort(r):this.data).forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.#U&&this.#U.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),this.#U=n?this.shadowRoot.querySelector(n):this.baseElement,C(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}},Qt=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},Pt=({triggers:t=[]}={})=>e=>class extends e{static get observedAttributes(){return[...e.observedAttributes||[],...t.map(({attr:t})=>t)]}get#Z(){return t.some(({attr:t,value:e})=>this.getAttribute(t)===e)}#F=()=>{this.toggleAttribute("stretch",this.#Z)};attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.#F()}init(){super.init?.(),this.#F()}},Bt=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Zt=f("enriched-text"),Ft={ADD_ATTR:["target"],ALLOWED_URI_REGEXP:/^(?!(?:vbscript|javascript|file|data):)|^data:image\/(?:gif|png|jpeg|webp);/i,FORBID_TAGS:["form","input","button","textarea","select","style"]};class Gt extends(jt({componentName:Zt,baseSelector:":host > div"})){#G;#H;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',O("\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.#J(),S(this,this.#$.bind(this)),this.contentNode?.addEventListener("click",t=>{t.target instanceof HTMLAnchorElement&&t.stopPropagation()}),this.contentNode?.addEventListener("keydown",t=>{"Enter"===t.key&&t.target instanceof HTMLAnchorElement&&t.stopPropagation()})}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("readonly"===t&&this.onReadOnlyChange("true"===i),"link-target-blank"===t&&this.#J())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n)),this.processor.renderer.rules.em_close=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n))}#q(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(t,e,i,o,n)=>(t[e].attrSet("target","_blank"),this.#G(t,e,i,o,n)):this.processor.renderer.rules.link_open=this.#G}#_(){this.processor&&this.processor.disable(Bt)}#X(){this.#_()}#K(){this.#G=this.processor.renderer.rules.link_open||((t,e,i,o,n)=>n.renderToken(t,e,i)),this.#H=this.processor.renderer.rules.em_open||((t,e,i,o,n)=>n.renderToken(t,e,i))}#J(){this.processor=new o.A("commonmark",{html:!0}),this.#K(),this.#X(),this.#q(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#$(){if(!this.processor)return;let t=(t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value})(this.innerHTML);!t?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const e=this.processor.parse(t,{references:void 0});t=this.processor.renderer.render(e,{html:!0,breaks:!0})}catch{console.warn("Not parsing invalid markdown token")}t=n.A.sanitize(t,Ft),this.contentNode.innerHTML=t,this.contentNode.firstElementChild?.setAttribute("part","content")}onReadOnlyChange(t){t?this.contentNode.setAttribute("inert",t):this.contentNode.removeAttribute("inert")}}const Ht=T(Mt({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:{}}}),Mt({componentNameOverride:f("link")}),Mt({componentNameOverride:f("text")}),Pt({triggers:[{attr:"full-width",value:"true"}]}),mt,yt)(Gt),Jt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),$t=(...t)=>Jt(t.filter(t=>!!t).join("-")),qt=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),_t=t=>"function"==typeof t,Xt="descope",Kt="host",te=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n),new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})}).observe(t,{attributes:!0})},ee=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},ie=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},oe=(t,e,i)=>{te(t,ie(t,e),i),te(e,ie(e,t),i)},ne=t=>$t(Xt,t),re=(...t)=>`--${$t(...t)}`,se=(t,e,i={})=>{te(t,ie(t,e,i.mapAttrs),i)},ae=(t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)},le=.4,de=.25,ce=.1,ue=(t,e)=>t.darken(e).hex(),pe=t=>{const e=t.isDark();return t.mix(c()(e?"white":"black"),1).saturate(1).hex()},he=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),ge=t=>t.luminosity()<.01,Me=t=>t.luminosity()>.99,me=(t,e)=>"dark"===e?Me(t)?ue(t,de):he(t,le):ge(t)?he(t,de):ue(t,le),ye=(t,e)=>"dark"===e?ge(t)?he(t,de):ue(t,le):Me(t)?ue(t,de):he(t,le),be=(t,e)=>"dark"===e?ge(t)?he(t,ce):ue(t,.8):Me(t)?ue(t,ce):he(t,.8),Ne=(t,e)=>{const i=new(c())(t.main||t);return{main:i.hex(),dark:t.dark||me(i,e),light:t.light||ye(i,e),highlight:t.highlight||be(i,e),contrast:t.contrast||pe(i)}},Ie=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,xe=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,je=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,Te=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,De=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,ve=(t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`,ze=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,Ce=t=>`\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 ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,Se=t=>re(Xt,...t),we=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},Ae=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?l()(t,i(e.concat(o),n)):l()(t,Ae(n,[...e,o],i)),{}),Le=t=>{switch(!0){case Array.isArray(t):return t.map(t=>t.includes(" ")?`"${t}"`:t).join(", ");case(t=>{try{return new URL(t),!0}catch(t){return!1}})(t):return`url(${t})`;default:return t}},fe=(t,e)=>Ae(t,[],t=>we({},t,`var(${Se(t)})`)),Ee=(t,e="")=>{const i=Object.entries((t=>Ae(t,[],(t,e)=>({[Se(t)]:Le(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},ke="@container",Oe="$breakpoints",Ve=t=>t.startsWith("$breakpoints."),We=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(ke))(e)?`${t}${e} {\n${We(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),Re=t=>{const e=(t=>Ae(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===Oe)return{};const r=n.pop(),s=ne(o);"undefined"===r&&console.warn(s,`theme value: "${i}" is mapped to an invalid property`);const a=Kt,l=t[o]?.[Oe]||{},d=n.filter(Ve),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>Ve(t)?`${ke} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!Ve(t)));const p=n.reduce((t,e,i)=>{const[o,r]=function(t){const e=t.match(/^(&+)?(.*)$/);return[e[1]||"",e[2]||""]}(e),s=Math.min(o.length+1,3);if(r.startsWith("_"))return t+`[${Jt(r.replace(/^_/,""))}="true"]`.repeat(s);const a=n[i+1];return"string"!=typeof a||a.startsWith("_")||a.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${e}" is followed by "${a}" which is not allowed`),t):t+`[${Jt(r)}="${n.splice(i+1,1).join("")}"]`.repeat(s)},""),h=":host"+(p?`(${p})`:""),g=u.reduceRight((t,e)=>({[e]:t}),{[h]:{[r]:Le(i)}});return{[s]:{[a]:g}}}))(t);return Object.keys(e).reduce((t,i)=>{const o=e[i];return Object.assign(t,{[i]:Object.keys(o).reduce((t,e)=>Object.assign(t,{[e]:We(o[e])}),{})})},{})},Ue=({globals:t,components:e},i)=>({globals:Ee(t,i),components:Re(e)}),Ye=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),Qe=(t,e)=>{const i=Ae(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=re(e,n),s={[n]:r},a={[n]:Ye(r)};return{theme:we({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},Pe=t=>`${t}__override`,Be=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${Pe(t)}, ${o})`:o};class Ze{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}}const Fe=(t,e="fallback")=>$t(t,e),Ge=(t,e,{fallback:i})=>{if(!i)return{};const o=Fe(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...Ge(n,o,i)}},He=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=re(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:Pe(n)},Ge(o,n,e[o]))},{}),Je=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...He(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o=Kt,baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>$t("st",i,t))}get#h(){return Y.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=O("",this.#d,{prepend:!0}),this.#s=Y.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=O(`:host(${t}) {}`,this.#d)}}#y(t,e){const{style:i}=this.#n.cssRules[0];if(!i)return;const o=re(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new Ze,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Fe(e,t?.suffix);return Be(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:Jt(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=re(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>_t(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),_t(i)?i():i,Be(a,l,!0)+(r?"!important":""))})}),o.toString()})($t(n,this.#a),this.#c,t);O(e,this.#d,{prepend:!0})}}#I(){const t=_t(i)?i():i;t&&O(t,this.#d,{prepend:!0})}#x(t){(this.#d.classList||this.#d.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot?.isConnected&&(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),te(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},$e=t=>class extends t{constructor(){super(),O(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},qe=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},_e=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},Xe=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},Ke=["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"],ti=t=>class extends t{init(){super.init?.(),te(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>Ke.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},ei=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return qt(qe,Xe,ti,_e)(i)};function ii(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const oi=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(ei({componentName:t,baseSelector:e})){#L=ii.bind(this,"blur");#f=ii.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,O((_t(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#L()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),ae(this.baseElement,this,s),oe(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},ni=["required","pattern"],ri=Symbol("validationTarget"),si=t=>class extends t{#C=ri;static get observedAttributes(){return[...t.observedAttributes||[],...ni]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=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(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===ri?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}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.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),ni.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},ai=["invalid","required"],li=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},di=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(si(r)){static get observedAttributes(){return[...r.observedAttributes||[],...ai]}#E;#v=ii.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=li(t)||li(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement?.setSelectionRange?.bind(this.inputElement),se(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},ci=t=>qt(di(t),Je({componentNameOverride:ne("input-wrapper")})),ui=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Je({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:He($t(e.componentName,"_"+r),i)}}#O;constructor(){const t=(e=async t=>(t.shadowRoot||t).querySelector(t.baseSelector),async t=>{const i=await e(t);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})});var e;super({getRootElement:t,componentNameSuffix:"_"+r,themeSection:"_"+r,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;se(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},pi=t=>class extends t{#v=ii.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},hi=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,ii.call(this,"blur"),ii.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(ii.call(this,"focus"),ii.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,ii.call(this,"input",{bubbles:!0,composed:!0})))})}},gi=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},Mi=(...t)=>qt(si,pi,ti,hi)(ei(...t)),mi=ne("boolean-field-internal"),yi=["disabled","invalid","readonly"],bi=Mi({componentName:mi,baseSelector:"div"}),Ni=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${mi}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${mi}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(mi),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),se(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),ae(this.inputElement,this,["checked"]),oe(this,this.inputElement,{includeAttrs:["checked"]})}};var Ii=t=>`\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${Ht.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${Ht.cssVarList.hostDirection}: var(${t.hostDirection});\n}\n\n`;const xi=ne("checkbox"),{host:ji,component:Ti,checkboxElement:Di,checkboxSurface:vi,checkboxLabel:zi,requiredIndicator:Ci,helperText:Si,errorMessage:wi}={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)"}},Ai=qt(Je({mappings:{hostWidth:{...ji,property:"width"},hostDirection:{...ji,property:"direction"},fontSize:[ji,Di,zi],fontFamily:[zi,Si,wi],labelTextColor:{...zi,property:"color"},labelSpacing:{...zi,property:"padding-inline-start"},labelLineHeight:{...zi,property:"line-height"},labelFontWeight:{...zi,property:"font-weight"},labelRequiredIndicator:{...Ci,property:"content"},errorMessageTextColor:{...wi,property:"color"},errorMessageIcon:{...wi,property:"background-image"},errorMessageIconSize:{...wi,property:"background-size"},errorMessageIconPadding:{...wi,property:"padding-inline-start"},errorMessageIconRepeat:{...wi,property:"background-repeat"},errorMessageIconPosition:{...wi,property:"background-position"},errorMessageFontSize:{...wi,property:"font-size"},inputValueTextColor:{...vi,property:"color"},inputBackgroundColor:{...Di,property:"background-color"},inputBorderRadius:{...Di,property:"border-radius"},inputBorderWidth:{...Di,property:"border-width"},inputBorderOffset:{...Di,property:"border-offset"},inputBorderColor:{...Di,property:"border-color"},inputBorderStyle:{...Di,property:"border-style"},inputOutlineWidth:{...Di,property:"outline-width"},inputOutlineOffset:{...Di,property:"outline-offset"},inputOutlineColor:{...Di,property:"outline-color"},inputOutlineStyle:{...Di,property:"outline-style"},inputAlign:{...Di,property:"align-self"},inputContainerPadding:{...Ti,property:"padding"},inputContainerBackgroundColor:{...Ti,property:"background-color"},inputContainerBorderRadius:{...Ti,property:"border-radius"},inputContainerBorderWidth:{...Ti,property:"border-width"},inputContainerBorderColor:{...Ti,property:"border-color"},inputContainerBorderStyle:{...Ti,property:"border-style"},inputContainerOutlineWidth:{...Ti,property:"outline-width"},inputContainerOutlineOffset:{...Ti,property:"outline-offset"},inputContainerOutlineColor:{...Ti,property:"outline-color"},inputContainerOutlineStyle:{...Ti,property:"outline-style"},inputSize:[{...Di,property:"width"},{...Di,property:"height"},{...vi,property:"font-size"},{...Ti,property:"font-size"}]}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,Ni)(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Ii(Ai.cssVarList)}\n ${Ie(Ai.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 descope-boolean-field-internal {\n\t\t\t\tpadding: 2px;\n\t\t\t\twidth: 100%;\n height: 100%;\n box-sizing: border-box;\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:xi})),Li=f("text");class fi extends(jt({componentName:Li,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',O("\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(),S(this,()=>{const t=!!this.childNodes.length;this.style.display=!t&&this.hideWhenEmpty?"none":""})}}const{host:Ei}={host:{selector:()=>":host"}},ki=T(Mt({mappings:{hostWidth:{...Ei,property:"width"},hostDirection:{...Ei,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Pt({triggers:[{attr:"full-width",value:"true"}]}),mt,yt)(fi),Oi=f("link"),Vi=["href","readonly"];class Wi extends(jt({componentName:Oi,baseSelector:":host a"})){static get observedAttributes(){return Vi.concat(super.observedAttributes||[])}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',O('\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),this.anchor=this.shadowRoot.querySelector("a"),k(this,this.anchor,{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),k(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]}),this.anchor.addEventListener("click",t=>{this.readOnly&&t.preventDefault()})}get readOnly(){return"true"===this.getAttribute("readonly")}}const Ri={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>ki.componentName}},{anchor:Ui,text:Yi,host:Qi,wrapper:Pi,link:Bi}=Ri,Zi=T(Mt({mappings:{hostWidth:{...Qi,property:"width"},hostDirection:{...Yi,property:"direction"},textAlign:Pi,textDecoration:{...Bi,property:"text-decoration",fallback:"none"},textColor:[{...Ui,property:"color"},{...Yi,property:ki.cssVarList.textColor}],cursor:Ui}}),Pt({triggers:[{attr:"full-width",value:"true"}]}),mt,yt)(Wi);customElements.define(Li,ki),customElements.define(Oi,Zi),customElements.define(Zt,Ht),customElements.define(mi,class extends bi{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 link-target-blank="true" 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(t){this.checkbox.checked=t}get checked(){return this.value}set checked(t){this.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.checkbox.focus()}),super.init?.(),se(this,this.checkbox,{includeAttrs:yi}),oe(this,this.checkbox,{includeAttrs:["checked"]}),this.labelContent.addEventListener("click",t=>{this.hasAttribute("disabled")||this.hasAttribute("readonly")||this.checkbox.click()}),this.handleFocusEventsDispatching([this.checkbox])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i),"label"===t&&this.onLabelChange()}onLabelChange(){const t=this.getAttribute("label");this.labelContent.textContent=t||""}onReadOnlyChange(t){this.baseElement.setAttribute("inert",t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}}),customElements.define(xi,Ai);const Fi=ne("switch-toggle"),{host:Gi,component:Hi,checkboxElement:Ji,checkboxSurface:$i,checkboxLabel:qi,requiredIndicator:_i,helperText:Xi,errorMessage:Ki}={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)"}},to=qt(Je({mappings:{hostWidth:{...Gi,property:"width"},hostDirection:{...Gi,property:"direction"},fontSize:[Hi,qi,qi],fontFamily:[qi,Xi,Ki],labelTextColor:[{...qi,property:"color"},{...qi,property:"-webkit-text-fill-color"}],labelSpacing:{...qi,property:"padding-inline-start"},labelLineHeight:{...qi,property:"line-height"},labelFontWeight:{...qi,property:"font-weight"},labelRequiredIndicator:{..._i,property:"content"},errorMessageTextColor:{...Ki,property:"color"},errorMessageIcon:{...Ki,property:"background-image"},errorMessageIconSize:{...Ki,property:"background-size"},errorMessageIconPadding:{...Ki,property:"padding-inline-start"},errorMessageIconRepeat:{...Ki,property:"background-repeat"},errorMessageIconPosition:{...Ki,property:"background-position"},errorMessageFontSize:{...Ki,property:"font-size"},trackBorderWidth:{...Ji,property:"border-width"},trackBorderStyle:{...Ji,property:"border-style"},trackBorderColor:{...Ji,property:"border-color"},trackBackgroundColor:{...Ji,property:"background-color"},trackBorderRadius:{...Ji,property:"border-radius"},trackWidth:[{...Ji,property:"width"}],trackHeight:[{...$i,property:"font-size"},{...Ji,property:"height"}],knobSize:[{...$i,property:"width"},{...$i,property:"height"}],knobTextColor:{...$i,property:"color"},knobRadius:{...$i,property:"border-radius"},knobTransitionDuration:{...$i,property:"transition"},knobColor:{...$i,property:"background-color"},knobTopOffset:{...$i,property:"top"},knobLeftOffset:{...$i,property:"left"},inputOutlineWidth:{...Ji,property:"outline-width"},inputOutlineOffset:{...Ji,property:"outline-offset"},inputOutlineColor:{...Ji,property:"outline-color"},inputOutlineStyle:{...Ji,property:"outline-style"}}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,Ni)(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Ii(to.cssVarList)}\n\t\t\t${Ie(to.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:Fi}));customElements.define(Fi,to);const eo=ne("loader-linear");class io extends(ei({componentName:eo,baseSelector:":host > div"})){static get componentName(){return eo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",O("\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:oo,host:no}={after:{selector:"::after"},host:{selector:()=>":host"}},ro=qt(Je({mappings:{hostDisplay:{},hostWidth:{...no,property:"width"},barHeight:[{property:"height"},{...oo,property:"height"}],barBorderRadius:[{property:"border-radius"},{...oo,property:"border-radius"}],verticalPadding:[{...no,property:"padding-top"},{...no,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...oo,property:"background-color"},barWidth:{...oo,property:"width"},animationDuration:[{},oo],animationTimingFunction:[{},oo],animationIterationCount:[{},oo]}}),$e,qe)(io);customElements.define(eo,ro);const so=ne("loader-radial");class ao extends(ei({componentName:so,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",O("\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 lo=qt(Je({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:{}}}),$e,qe)(ao);customElements.define(so,lo);const co=ne("container");class uo extends(ei({componentName:co,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",O("\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 po=qt(Je({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:{}}}),$e,qe)(uo);customElements.define(co,po);const ho=f("combo-box"),{host:go,inputField:Mo,inputElement:mo,placeholder:yo,toggle:bo,clearButton:No,label:Io,requiredIndicator:xo,helperText:jo,errorMessage:To,loader:Do,overlayContent:vo}={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)"}},zo=T(Mt({mappings:{hostWidth:{...go,property:"width"},hostDirection:{...go,property:"direction"},fontSize:[{},go],fontFamily:[Io,yo,Mo,jo,To],labelFontSize:{...Io,property:"font-size"},labelFontWeight:{...Io,property:"font-weight"},inputValueFontWeight:{...Mo,property:"font-weight"},inputPlaceholderFontWeight:{...yo,property:"font-weight"},helperTextFontWeight:{...jo,property:"font-weight"},errorMessageFontWeight:{...To,property:"font-weight"},labelTextColor:[{...Io,property:"color"},{...Io,property:"-webkit-text-fill-color"},{...xo,property:"color"}],errorMessageTextColor:{...To,property:"color"},errorMessageIcon:{...To,property:"background-image"},errorMessageIconSize:{...To,property:"background-size"},errorMessageIconPadding:{...To,property:"padding-inline-start"},errorMessageIconRepeat:{...To,property:"background-repeat"},errorMessageIconPosition:{...To,property:"background-position"},errorMessageFontSize:{...To,property:"font-size"},inputHeight:{...Mo,property:"height"},inputBackgroundColor:{...Mo,property:"background-color"},inputBorderColor:{...Mo,property:"border-color"},inputBorderWidth:{...Mo,property:"border-width"},inputBorderStyle:{...Mo,property:"border-style"},inputBorderRadius:{...Mo,property:"border-radius"},labelRequiredIndicator:{...xo,property:"content"},inputValueTextColor:{...Mo,property:"color"},inputPlaceholderTextColor:{...yo,property:"color"},inputDropdownButtonCursor:[{...bo,property:"cursor"},{...No,property:"cursor"}],inputDropdownButtonColor:[{...bo,property:"color"},{...No,property:"color"}],inputDropdownButtonSize:[{...bo,property:"font-size"},{...No,property:"font-size"}],inputDropdownButtonOffset:[{...bo,property:"margin-right"},{...bo,property:"margin-left"}],inputOutlineColor:{...Mo,property:"outline-color"},inputOutlineWidth:{...Mo,property:"outline-width"},inputOutlineStyle:{...Mo,property:"outline-style"},inputOutlineOffset:{...Mo,property:"outline-offset"},inputHorizontalPadding:[{...mo,property:"padding-left"},{...mo,property:"padding-right"}],labelPosition:{...Io,property:"position"},labelTopPosition:{...Io,property:"top"},labelHorizontalPosition:[{...Io,property:"left"},{...Io,property:"right"}],inputTransformY:{...Io,property:"transform"},inputTransition:{...Io,property:"transition"},marginInlineStart:{...Io,property:"margin-inline-start"},placeholderOpacity:{...yo,property:"opacity"},inputVerticalAlignment:{...Mo,property:"align-items"},valueInputHeight:{...mo,property:"height"},valueInputMarginBottom:{...mo,property:"margin-bottom"},overlayBackground:{property:()=>zo.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>zo.cssVarList.overlay.textColor},overlayBorder:{property:()=>zo.cssVarList.overlay.border},overlayFontSize:{property:()=>zo.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>zo.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>zo.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>zo.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>zo.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>zo.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>zo.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>zo.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>zo.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>zo.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>zo.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>zo.cssVarList.overlay.itemFocusBackground}}}),mt,Wt({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:{...Do,property:"top"},loaderLeft:{...Do,property:"left"},loaderRight:{...Do,property:"right"},loaderMargin:{...Do,property:"margin"},loaderWidth:{...Do,property:"width"},loaderHeight:{...Do,property:"height"},loaderBorder:{...Do,property:"border"},loaderBorderColor:{...Do,property:"border-color"},loaderBorderRadius:{...Do,property:"border-radius"},contentHeight:{...vo,property:"height"},contentOpacity:{...vo,property:"opacity"},scrollerMinHeight:{selector:"vaadin-combo-box-scroller",property:"min-height"}},forward:{include:!1,attributes:["size"]}}),Vt({proxyProps:["selectionStart"],inputEvent:"value-changed"}),Qt,yt,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#R;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}set renderer(t){this.baseElement.renderer=t}get loading(){return"true"===this.getAttribute("loading")}set loading(t){t?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get requireMatch(){return"true"===this.getAttribute("require-match")&&!this.allowCustomValue}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){if(this.#R||this.getAttribute("data")){const t=this.getItemsTemplate();this.innerHTML=t}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:t}=this.baseElement,e=t?.["data-id"];t&&Array.from(this.children).includes(t)||(e&&this.shouldSelectItemOnItemsChange&&(this.value=e),this.value||this.setDefaultValue())}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){if(!e.baseElement.items?.length&&!e.allowCustomValue)return;const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#et(){const t=Array.from(this.children);t.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.handleSelectedItem()},0)}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#ot(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#nt(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}isValueMatch(){const t=this.baseElement.querySelector("input").value;return!t||this.baseElement.items.some(e=>e.dataset.name===t||e.dataset.id===t)}init(){super.init?.(),k(this,this.baseElement,{includeAttrs:["placeholder"]}),this.getValidity=function(){return this.requireMatch&&!this.isValueMatch()?{patternMismatch:!0}:!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ot(),this.#nt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),C(this,this.renderItems.bind(this),{includeAttrs:["data"]}),S(this,this.#et.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",t=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}handleRequireMatchChange(t){this.baseElement.allowCustomValue=t||this.allowCustomValue}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"require-match"===t&&this.handleRequireMatchChange("true"===i))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#rt(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#st(t,e){t===this.value&&e!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",t=>{t.stopImmediatePropagation()},{once:!0,capture:!0})}set value(t){const e=this.#rt(t);this.#st(t,e),t&&e?this.baseElement.selectedItem=e:!e&&this.allowCustomValue?this.baseElement.value=t: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")}})(ft({slots:["","prefix"],wrappedEleName:"vaadin-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${_(zo.cssVarList)}\n\t\t${tt("vaadin-combo-box")}\n\t\t${K("vaadin-combo-box")}\n\t\t${X("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 ${it("vaadin-combo-box")}\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","size","placeholder","data","loading","style"],componentName:ho,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(ho,zo);const Co=t=>{const e=n.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},So=f("image"),wo=["src","src-dark"];class Ao extends(jt({componentName:So,baseSelector:"slot"})){static get observedAttributes(){return wo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",O("\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.getSrc)}onThemeChange(){this.renderImage()}toggleVisibility(t){t?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 getSrc(){return this.themeSrc||this.legacySrc}updateFillColor(t){[t,...t.querySelectorAll("*[fill]")].forEach(t=>{t.setAttribute("fill",`var(${Lo.cssVarList.fill}, ${t.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.getSrc),(async(t,e)=>{try{let i;if((t=>t.startsWith("data:image/svg+xml;base64,"))(t)){const e=atob(t.slice(26));i=Co(e)}else if("svg"===(t=>{const e=t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return e?e[1]:null})(t)){const e=await fetch(t),o=await e.text();i=Co(o)}else i=((t,e)=>{const i=document.createElement("img");return i.setAttribute("src",t),i.setAttribute("alt",e),i})(t,e);return i.style.setProperty("max-width","100%"),i.style.setProperty("max-height","100%"),i}catch{return null}})(this.getSrc,this.altText).then(t=>{this.innerHTML="",t&&(this.updateFillColor(t),this.appendChild(t))})}shouldRender(t){const e=this.getAttribute(t);return this.getSrc===e}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.shouldRender(t)&&this.renderImage()}}const Lo=T(Mt({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),mt,yt)(Ao),fo=f("icon"),Eo=T(Mt({mappings:{fill:[{},{property:Lo.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),mt,yt)(ft({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n max-height: 100%;\n }\n ",excludeAttrsSync:["tabindex","class","style","st-height","st-width"],componentName:fo})),ko=f("button"),{host:Oo,label:Vo,slottedIcon:Wo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let Ro;const Uo=T(Pt({triggers:[{attr:"full-width",value:"true"}]}),Mt({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...Oo,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...Oo,property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},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:Eo.cssVarList.fill},labelTextDecoration:{...Vo,property:"text-decoration"},labelSpacing:{...Vo,property:"gap"},textAlign:{...Vo,property:"justify-content",fallback:"center"},iconSize:[{...Wo,property:"width"},{...Wo,property:"height"}]}}),t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}},mt,yt)(ft({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${Ro}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Uo.cssVarList.outlineWidth}) + var(${Uo.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Uo.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Uo.cssVarList.hostHeight}) - var(${Uo.cssVarList.outlineWidth}) - var(${Uo.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Uo.cssVarList.hostWidth}) - var(${Uo.cssVarList.outlineWidth}) - var(${Uo.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style","role"],componentName:ko})),{color:Yo,fontSize:Qo}=Uo.cssVarList;Ro=`\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(${Yo});\n\t\ttop: calc(50% - (var(${Qo}) / 2));\n\t\tleft: calc(50% - (var(${Qo}) / 2));\n\t\tborder-width: calc(var(${Qo}) / 10);\n\t\twidth: var(${Qo});\n\t\theight: var(${Qo});\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(ko,Uo);const Po=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Bo=Po[0],Zo="YYYY-MM-DD",Fo="/",Go=["January","February","March","April","May","June","July","August","September","October","November","December"],Ho=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Jo={id:"month",min:1,max:12,placeholder:"MM"},$o={id:"day",min:1,max:31,placeholder:"DD"},qo={id:"year",min:0,max:9999,placeholder:"YYYY"},_o=1900,Xo=2099,Ko=(t,e)=>{if("number"==typeof t)return new Date(t);if("string"==typeof t){const e=new Date(t.replace(/-/g,"/"));return new Date(e)}return new Date},tn={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},en=t=>{const e=(t=>`^${t.split(Fo).map(t=>tn[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Fo);return t=>{const i={};return e.forEach((e,o)=>{i[e]=t[o+1]}),[i.YYYY,i.MM,i.DD]}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getDate:t=>((t,e,i)=>{const o=e.exec(t);if(!o)return null;const[n,r,s]=i(o);return Ko([n,r,s].join(Fo))})(t,o,i)}},on=Object.fromEntries(Po.map(t=>[t,en(t)])),nn=t=>!Number.isNaN(Number(t)),rn=t=>{const e=Ko(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},sn=(t,e)=>{const[i,o,n]=rn(t),r={DD:String(n).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(i)};return e.replace(/DD|MM|YYYY/g,t=>r[t])},an=()=>Ko().getTime(),ln=t=>Ko(t).getFullYear().toString(),dn=t=>(Ko(t).getMonth()+1).toString(),cn=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),un=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,pn=({label:t,dataId:e,dataName:i})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${e}"\n\t\tdata-name="${i}"\n\t>\n\t\t\t${t}\n\t</div>\n`,hn=(t=Go)=>t.map((t,e)=>pn({label:t,dataId:e+1,dataName:t})).join(""),gn=(t,e)=>{const[i,o]=rn(e),[n,r]=rn(t);return n===i&&r===o},Mn=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),mn=ne("calendar"),yn=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],bn=["calendar-label-submit","calendar-label-cancel"],Nn=Mi({componentName:mn,baseSelector:"div"}),{calendar:In,day:xn,dayEntry:jn,currentDay:Tn,selectedDay:Dn,disabledDay:vn,weekday:zn,topNav:Cn,topNavSelectors:Sn,bottomNav:wn,navPrev:An,navNext:Ln,navPrevRTL:fn,navNextRTL:En,yearInput:kn,monthInput:On}={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"}},Vn=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...Cn,property:"padding-top"},{...Cn,property:"padding-bottom"}],topNavHorizointalPadding:[{...Cn,property:"padding-right"},{...Cn,property:"padding-left"}],topNavAlignment:{...Cn,property:"justify-content"},topNavGap:{...Cn,property:"gap"},topNavSelectorsGap:{...Sn,property:"gap"},bottomNavVerticalPadding:[{...wn,property:"padding-top"},{...wn,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...wn,property:"padding-right"},{...wn,property:"padding-left"}],bottomNavAlignment:{...wn,property:"justify-content"},bottomNavGap:{...wn,property:"gap"},navMarginBottom:{...Cn,property:"margin-bottom"},calendarPadding:[{...In,property:"padding-bottom"},{...In,property:"padding-right"},{...In,property:"padding-left"}],navBorderBottomWidth:{...Cn,property:"border-bottom-width"},navBorderBottomColor:{...Cn,property:"border-bottom-color"},navBorderBottomStyle:{...Cn,property:"border-bottom-style"},weekdayFontSize:{...zn,property:"font-size"},weekdayFontWeight:{...zn,property:"font-weight"},currentDayBorderColor:{...Tn,property:"border-color"},currentDayBorderWidth:{...Tn,property:"border-width"},currentDayBorderStyle:{...Tn,property:"border-style"},dayHeight:{...jn,property:"height"},daySize:[{...xn,property:"height"},{...xn,property:"width"}],dayPadding:{...xn,property:"padding"},dayRadius:{...xn,property:"border-radius"},dayTextAlign:{...xn,property:"text-align"},dayBlockAlign:{...xn,property:"margin"},dayTextColor:{...xn,property:"color"},dayFontWeight:{...xn,property:"font-weight"},dayBackgroundColor:{...xn,property:"background-color"},dayCursor:{...xn,property:"cursor"},dayFontSize:{...xn,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...Dn,property:"color"},daySelectedBackgroundColor:{...Dn,property:"background-color"},dayDisabledTextdColor:{...vn,property:"color"},yearInputWidth:{...kn,property:"width"},monthInputWidth:{...On,property:"width"},navButtonSize:[{...An,property:"width"},{...An,property:"height"},{...Ln,property:"width"},{...Ln,property:"height"}],navButtonCursor:[{...An,property:"cursor"},{...Ln,property:"cursor"}],navButtonRotation:[{...fn,property:"transform"},{...En,property:"transform"}],navButtonOpacity:[{...An,property:"opacity"},{...Ln,property:"opacity"}]}}),$e,qe)(class extends Nn{static get observedAttributes(){return[].concat(Nn.observedAttributes||[],yn,bn)}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 ',O(`\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 ${Uo.cssVarList.horizontalPadding}: 0;\n ${Uo.cssVarList.verticalPadding}: 0;\n ${Uo.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(t){if(!t)return;const e=Ko(t).getTime();nn(e)&&e!==this.epoch&&(this.epoch=e,this.renderCalendar())}get value(){return this.epoch?sn(this.epoch,Zo):""}get isSelectedView(){return gn(this.preview,this.epoch)}get isTodayView(){return gn(an(),this.preview)}get monthNames(){return(t=>{const e=t?.split(",");return un(e,12)?e:Go})(this.getAttribute("calendar-months"))}get weekdayNames(){return(t=>{const e=t?.split?.(",");return un(e,7)?e:Ho})(this.getAttribute("calendar-weekdays"))}get hasYearValue(){return!!this.yearInput.value}get hasMonthValue(){return!!this.monthInput.value}get yearsRange(){const t=this.getAttribute("years-range")?.split("-");if(2===t?.length){const[e,i]=t.map(Number);if(e<=i)return[e,i]}const e=Ko().getFullYear();return[e,e+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 t=(()=>{const t=document.createElement("span");return t.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 ${hn()}\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 `,t})(this.monthNames,this.yearsRange);this.shadowRoot.querySelector(".selectors").appendChild(t),this.monthInput=Mn(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=Mn(this.shadowRoot.querySelector(".year-input"),this.onYearChange.bind(this),this.onYearInputBlur.bind(this)),[this.monthInput,this.yearInput].forEach(t=>se(this,t,{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(t=>se(this,t,{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:Ko(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 t=this.preview||an(),e=ln(t),i=dn(t);this.monthInput.value=i,setTimeout(()=>{this.yearInput.baseElement.value=e})}}renderCalendar(){const t=Ko(this.preview||an()).getTime(),[e,i]=rn(t);this.calendar&&(this.calendar.innerHTML=((t,e,i)=>{const o=((t,e)=>new Date(t,e,0).getDate())(t,e),n=new Date(t,e-1,1).getDay();let r="<table>";r+=`<thead><tr>${i.reduce((t,e)=>`${t}<th><span class="weekday">${e}</span></th>`,"")}</tr></thead>`,r+="<tbody>",r+="<tr>";for(let t=0;t<n;t++)r+="<td></td>";let s=n;for(let t=1;t<=o;t++)7===s&&(s=0,r+="</tr><tr>"),r+=`\n <td\n data-date-day="${t}"\n class="day-entry">\n <span class="day" data-date-day=${t}>\n ${t}\n </span>\n </td>\n `,s++;for(;s<7;)r+="<td></td>",s++;return r+="</tr></tbody></table>",r})(e,i,this.weekdayNames.map(t=>t.substring(0,3)))),Array.from(this.calendar?.querySelectorAll(".day-entry .day")||[]).forEach(t=>t.addEventListener("click",this.onDayChange.bind(this))),this.updateInputs(),this.setSelectedDay(),this.setCurrentDay()}onDayChange(t){if(this.isDisabled)return;const e=Ko(this.preview);e.setDate(Number(t.target.getAttribute("data-date-day"))),this.value=sn(e.getTime(),Zo),this.dispatchEvent(new CustomEvent("day-changed",{detail:e}))}onYearChange(t){if(!t.target.value)return;const e=Ko(this.preview);e.setFullYear(Number(t.target.value.trim())),this.preview=e.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("year-changed",{detail:e}))}onMonthChange(t){if(!t.target.value)return;const e=Ko(this.preview);e.setMonth(Number(t.target.value)-1),this.preview=e.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("month-changed",{detail:e}))}onYearInputBlur(t){this.yearInput.baseElement.value=t.target.value||ln(this.preview)}onMonthInputBlur(t){this.monthInput.baseElement.value=t.target.value||dn(this.preview)}getSelectedDayEle(){const t=Ko(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${t}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${Ko().getDate()}"]`)}clearSelectedDays(){const t=this.calendar?.querySelectorAll("[data-selected]");t&&t.forEach(t=>t.removeAttribute("data-selected"))}setSelectedDay(){this.clearSelectedDays(),this.value&&this.isSelectedView&&this.getSelectedDayEle().setAttribute("data-selected","true")}setCurrentDay(){if(this.isTodayView){const t=this.getCurrentDayEle(),e=this.getAttribute("calendar-label-today")||"Today";t?.setAttribute("data-current-day","true"),t?.setAttribute("title",e)}}navPrevMonth(){if(this.isDisabled)return;const t=(t=>{const e=Ko(t),i=e.getMonth();if(0===i){const t=e.getFullYear();e.setFullYear(t-1),e.setMonth(11)}else e.setMonth(i-1);return e})(this.preview);this.preview=t.getTime(),this.renderCalendar()}navNextMonth(){if(this.isDisabled)return;const t=(t=>{const e=Ko(t),i=e.getMonth();if(11===i){const t=e.getFullYear();e.setFullYear(t+1),e.setMonth(0)}else e.setMonth(i+1);return e})(this.preview);this.preview=t.getTime(),this.renderCalendar()}clearValue(){this.epoch="",this.value="",this.removeAttribute("preview"),this.submitButton.setAttribute("disabled","true")}onInitialValueChange(t){if(this.value)return;const e=Ko(t).getTime();nn(e)?(this.epoch=e,this.preview=e):this.clearValue()}onYearsRangeChange(){setTimeout(()=>{this.yearInput&&(this.yearInput.innerHTML=(t=>{const[e,i]=t,o=[];for(let t=e;t<=i;t++)o.push(t);return o})(this.yearsRange).map(t=>pn({label:t,dataId:t,dataName:t})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=hn(this.monthNames))})}onSubmitLabelChange(t){this.submitButton&&(this.submitButton.textContent=t||"Done")}onCancelLabelChange(t){this.cancelButton&&(this.cancelButton.textContent=t||"Cancel")}onInitialMonthChange(t){const e=ln(this.preview);this.preview=Ko(`${e}/${t}/1`).getTime()}onInitialYearChange(t){const e=dn(this.preview);this.preview=Ko(`${t}/${e}/1`).getTime()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),e!==i&&(bn.includes(t)?("calendar-label-submit"===t&&this.onSubmitLabelChange(i),"calendar-label-cancel"===t&&this.onCancelLabelChange(i)):(i&&"initial-value"===t&&this.onInitialValueChange(i),i&&"initial-month"===t&&this.onInitialMonthChange(i),i&&"initial-year"===t&&this.onInitialYearChange(i),"years-range"===t&&this.onYearsRangeChange(Number(i)),"calendar-months"===t&&this.onMonthNamesChange(),"calendar-label-today"===t&&this.setCurrentDay(i),"disabled"===t&&setTimeout(()=>{this.cancelButton?.setAttribute("disabled","true"===i)}),this.renderCalendar()))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}});customElements.define(mn,Vn);const{host:Wn,label:Rn,placeholder:Un,requiredIndicator:Yn,inputField:Qn,input:Pn,inputMask:Bn,helperText:Zn,errorMessage:Fn,disabledPlaceholder:Gn,inputDisabled:Hn,inputIcon:Jn,externalInput:$n,externalInputDisabled:qn,externalPlaceholder:_n,externalDisabledPlaceholder:Xn}={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 Kn={fontSize:[{},Wn],fontFamily:[Rn,Qn,Zn,Fn],labelFontSize:{...Rn,property:"font-size"},labelFontWeight:{...Rn,property:"font-weight"},inputValueFontWeight:[{...Pn,property:"font-weight"},{...$n,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{..._n,property:"font-weight"}],helperTextFontWeight:{...Zn,property:"font-weight"},errorMessageFontWeight:{...Fn,property:"font-weight"},labelTextColor:[{...Rn,property:"color"},{...Yn,property:"color"},{...Rn,property:"-webkit-text-fill-color"},{...Yn,property:"-webkit-text-fill-color"}],hostWidth:{...Wn,property:"width"},hostMinWidth:{...Wn,property:"min-width"},hostDirection:{...Wn,property:"direction"},inputDirection:{...Pn,property:"direction"},inputBackgroundColor:[{...Qn,property:"background-color"},{...Bn,property:"background-color"}],errorMessageTextColor:{...Fn,property:"color"},errorMessageIcon:{...Fn,property:"background-image"},errorMessageIconSize:{...Fn,property:"background-size"},errorMessageIconPadding:{...Fn,property:"padding-inline-start"},errorMessageIconRepeat:{...Fn,property:"background-repeat"},errorMessageIconPosition:{...Fn,property:"background-position"},errorMessageFontSize:{...Fn,property:"font-size"},helperTextColor:{...Zn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Qn,property:"color"},{...Hn,property:"-webkit-text-fill-color"},{...qn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Pn,property:"caret-color"},{...$n,property:"caret-color"}],labelRequiredIndicator:{...Yn,property:"content"},inputBorderColor:{...Qn,property:"border-color"},inputBorderWidth:{...Qn,property:"border-width"},inputBorderStyle:{...Qn,property:"border-style"},inputBorderRadius:{...Qn,property:"border-radius"},inputHeight:{...Qn,property:"height"},inputHorizontalPadding:[{...Pn,property:"padding-left"},{...Pn,property:"padding-right"},{...$n,property:"padding-left"},{...$n,property:"padding-right"}],inputOutlineColor:{...Qn,property:"outline-color"},inputOutlineStyle:{...Qn,property:"outline-style"},inputOutlineWidth:{...Qn,property:"outline-width"},inputOutlineOffset:{...Qn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Pn,property:"text-align"},{...$n,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{..._n,property:"color"},{...Un,property:"color"},{...Gn,property:"-webkit-text-fill-color"},{...Xn,property:"-webkit-text-fill-color"}],labelPosition:{...Rn,property:"position"},labelTopPosition:{...Rn,property:"top"},labelHorizontalPosition:[{...Rn,property:"left"},{...Rn,property:"right"}],inputTransformY:{...Rn,property:"transform"},inputTransition:{...Rn,property:"transition"},marginInlineStart:{...Rn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{..._n,property:"opacity"}],inputVerticalAlignment:[{...Qn,property:"align-items"},{...$n,property:"align-items"}],valueInputHeight:[{...Pn,property:"height"},{...$n,property:"height"}],valueInputMarginBottom:[{...Pn,property:"margin-bottom"},{...$n,property:"margin-bottom"}],inputIconOffset:[{...Jn,property:"margin-right"},{...Jn,property:"margin-left"}],inputIconSize:{...Jn,property:"font-size"},inputIconColor:{...Jn,property:"color"},inputTextSecurity:[{...Pn,property:"-webkit-text-security"},{...Pn,property:"text-security"},{...$n,property:"-webkit-text-security"},{...$n,property:"text-security"}]};const tr=f("text-field"),er=["type","label-type","copy-to-clipboard"],ir=T(Mt({mappings:Kn}),mt,Vt({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),yt,t=>class extends t{static get observedAttributes(){return er.concat(t.observedAttributes||[])}icon;init(){super.init?.(),k(this,this.baseElement,{includeAttrs:["placeholder"]})}renderCopyToClipboard(t){if(!t)return this.icon?.remove(),void this.copyLiveRegion?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"},o=t=>{Object.assign(this.icon,t),this.icon.setAttribute("aria-label",t.title)};let n;this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",tabIndex:0}),this.icon.setAttribute("role","button"),o(e),this.copyLiveRegion=document.createElement("span"),this.copyLiveRegion.setAttribute("aria-live","polite"),this.copyLiveRegion.style.cssText="position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;",this.baseElement.appendChild(this.icon),this.shadowRoot.appendChild(this.copyLiveRegion);const r=async()=>{try{await navigator.clipboard.writeText(this.value)}catch{return}o(i),this.copyLiveRegion.textContent="Copied",clearTimeout(n),n=setTimeout(()=>{o(e),this.copyLiveRegion.textContent=""},3e3)};this.icon.addEventListener("click",r),this.icon.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),r())})}onLabelClick(){this.focus()}attributeChangedCallback(t,e,i){super.attributeChangeCallback?.(t,e,i),"type"===t&&this.baseElement._setType(i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===t&&this.renderCopyToClipboard("true"===i))}})(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(${ir.cssVarList.inputOutlineWidth}) + var(${ir.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 ${it("vaadin-text-field")}\n\t\t\t${_(ir.cssVarList)}\n\t\t\t${et("vaadin-text-field",ir.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","placeholder"],componentName:tr}));customElements.define(tr,ir);class or{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){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(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const nr=ne("date-field"),rr=Mi({componentName:nr,baseSelector:"vaadin-popover"}),sr=["format","opened","initial-value","readonly","disable-calendar","utc-time"],ar=["years-range","calendar-months","calendar-weekdays"],lr=[...sr,...ar],dr=ir.cssVarList,{host:cr,input:ur,inputEleRTL:pr,toggleButton:hr,overlay:gr,backdrop:Mr}={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)"}},mr=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{iconMargin:{...hr,property:"margin-inline-end"},hostWidth:{...cr,property:"width"},hostDirection:{...cr,property:"direction"},textAlign:{...ur,property:"text-align"},rtlInputDirection:{...pr,property:dr.inputDirection},rtlInputAlignment:{...pr,property:dr.inputTextAlign},overlayGap:{property:()=>mr.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>mr.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>mr.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>mr.overlayBoxShadow},overlayOutlineWidth:{property:()=>mr.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>mr.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>mr.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:ir.componentName,property:ir.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontSize},labelFontWeight:{selector:ir.componentName,property:ir.cssVarList.labelFontWeight},inputValueFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:ir.componentName,property:ir.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontWeight}}}),ui({name:"overlay",selector:"",mappings:{marginTop:{...gr,property:"margin-top"},backgroundColor:{...gr},backdropBackgroundColor:{...Mr,property:"background-color"},backdropPointerEvents:{...Mr,property:"pointer-events"},padding:{...gr},boxShadow:{...gr},outlineWidth:{...gr},outlineColor:{...gr},outlineStyle:{...gr}}}),$e,qe)(class extends rr{epoch="";format=Bo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=on[this.format].getDate(this.inputElement.value);this.updateEpoch(cn(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=cn(t,this.isUtcTime)}dateCounters=[new or(Jo,this.onDateCounterChange.bind(this)),new or($o,this.onDateCounterChange.bind(this)),new or(qo,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(rr.observedAttributes||[],lr)}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 ',O('\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 t=on[this.format].getDate(this.inputElement.value);return nn(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Fo).map(t=>this.dateCounters.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(Fo)}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 t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(t){const e=parseInt(t,10);Number.isNaN(e)?(this.resetEpoch(),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(e),this.updateDateCounters(new Date(e)))}resetEpoch(){this.epoch=""}get isCountersEmpty(){return this.dateCounters.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(t=>!t.isInRange(t.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const t=this.inputElement.baseElement.inputElement;return t.value.length===t.selectionStart+t.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#lt(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=sn(Ko(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#it()},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)),se(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(t){var e;t.preventDefault(),this.handleSelectAll(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.parseDigits(t.data),this.updateCountersDisplay()):t.inputType&&this.handleNavKeys(t)}initPopover(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=O(d,t)}#ut(){const t=document.createElement("span");t.innerHTML="<descope-calendar></descope-calendar>";const e=t.querySelector("descope-calendar");return e.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),e.addEventListener("cancel",this.closePopover.bind(this)),t}#it(){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(t){return this.dateCounters.find(e=>e.id===t)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const t=Ko(this.calendar.value);this.value=cn(t,this.isUtcTime),this.getCounterById("year").replaceValue(t.getFullYear()),this.getCounterById("month").replaceValue(t.getMonth()+1),this.getCounterById("day").replaceValue(t.getDate()),this.#lt()}this.closePopover()}updateCalendarView(){const t=nn(Ko(this.inputElement.value||"").getTime())&&on[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",sn(this.displayValueEpoch||this.epoch,Zo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",sn(an(),Zo))),se(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(t){setTimeout(()=>this.handleMouseCaretPositionChange(t),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(t){Object.keys(on).includes(t)&&(this.format=t,this.updateFormatPattern())}updateFormatPattern(){const t=this.getAttribute("format")||this.format||Bo;this.setAttribute("type","date"),this.setAttribute("pattern",on[t].pattern)}parseDigits(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(t){const[e,i]=this.sortedCounters.map(t=>t.length);return[t<=e,t>=e&&t<=e+i+1,t>=e+i+2].indexOf(!0)}setSelectedCounterByCaretPosition(t){this.selectedCounterIdx=this.getCounterIdx(t.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 t=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((t,e)=>t+e.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(t=>t.clear())}updateDateCounters(t){this.dateCounters.forEach(e=>{switch(e.id){case Jo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case qo.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case $o.id:e.set(this.isUtcTime?t.getUTCDate():t.getDate())}})}handleKeyboard(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.onCut(t):(this.handleSelectAll(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.selectNextCounter():"ArrowLeft"===t.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const t=this.activeCounter;t.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(t){this.opened||(t.preventDefault(),this.setSelectedCounterByCaretPosition(t),this.setInputSelectionRange())}onInitialValueChange(t){this.value||setTimeout(()=>{Number.isNaN(parseInt(t,10))||(this.value=Number(t))})}togglePopoverAccess(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-calendar"===t&&this.togglePopoverAccess("true"!==i),sr.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):ar.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>Xo||t.numberValue<_o,i=Object.entries(this.getDateVals()).some(([t,e])=>{const i=this.getCounterById(t);return!e||i.numberValue!==e});return e||i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersEmpty||!this.isCountersOutOfRange&&!this.isInvalidDate()?{}:{patternMismatch:!0}}getDateVals(){const t={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return t;try{const e=new Date(this.epoch);this.isUtcTime?(t.month=e.getUTCMonth()+1,t.day=e.getUTCDate(),t.year=e.getUTCFullYear()):(t.month=e.getMonth()+1,t.day=e.getDate(),t.year=e.getFullYear())}catch(t){}return t}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.resetToInitialState()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy date value:",t)}}onPaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=((t,e)=>{const i=t.trim?.();return i?on[e].getDate(i):null})(e,this.format);if(i)this.value=cn(i,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const t=Number(e);t&&this.activeCounter.min<=t&&this.activeCounter.max>=t&&(this.activeCounter.set(String(t)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(nr,mr);const yr=ne("divider");class br extends(ei({componentName:yr,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",O("\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"),se(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const Nr=ki.cssVarList,{host:Ir,before:xr,after:jr,text:Tr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},Dr=qt(Je({mappings:{hostWidth:{...Ir,property:"width"},hostPadding:{...Ir,property:"padding"},hostDirection:{...Tr,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Tr,property:Nr.textAlign},labelTextWidth:{...Tr,property:"width"},labelTextMaxWidth:{...Tr,property:"max-width"},labelTextVerticalSpacing:[{...Tr,property:"padding-top"},{...Tr,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Tr,property:"padding-right"},{...Tr,property:"padding-left"}],stripeColor:[{...xr,property:"background-color"},{...jr,property:"background-color"}],stripeHorizontalThickness:[{...xr,property:"height"},{...jr,property:"height"}],stripeVerticalThickness:[{...xr,property:"width"},{...jr,property:"width"}],stripeColorOpacity:[{...xr,property:"opacity"},{...jr,property:"opacity"}]}}),$e,qe)(br);customElements.define(yr,Dr);const vr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(ei({componentName:t,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div></div>\n\t\t\t",O(`\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 r=qt(Je({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),$e,qe)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},zr=ne("logo"),Cr=vr({componentName:zr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(zr,Cr);const Sr=ne("totp-image"),wr=vr({componentName:Sr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Sr,wr);const Ar=ne("notp-image"),Lr=vr({componentName:Ar,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Ar,Lr);const fr=ne("number-field"),Er=qt(Je({mappings:Kn}),$e,ci({proxyProps:["value","selectionStart"]}),qe)(oi({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(${Er.cssVarList.inputOutlineWidth}) + var(${Er.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${Ce("vaadin-number-field")}\n\t\t\t${Ie(Er.cssVarList)}\n\t\t\t${((t,e)=>`\n ${xe(t)}\n ${Te(t)}\n ${De(t)}\n ${je(t)}\n ${ve(t,e)}\n ${ze(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`)("vaadin-number-field",Er.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:fr}));customElements.define(fr,Er);const kr="--descope-input-mask-content",Or="--descope-input-mask-display",Vr="--descope-input-mask-fallback",Wr=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},Rr=t=>t.replace(/\D/g,"")||"",Ur=(t,e)=>{e?(t.style.setProperty(kr,`"${e}"`),t.style.setProperty(Or,"flex")):(t.style.removeProperty(kr),t.style.removeProperty(Or))},Yr=ne("passcode-internal"),Qr=["digits","loading"],Pr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Br=Mi({componentName:Yr,baseSelector:"div"}),Zr=ne("passcode"),Fr=["digits"],{host:Gr,digitField:Hr,label:Jr,requiredIndicator:$r,internalWrapper:qr,focusedDigitField:_r,errorMessage:Xr}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${ir.componentName}[focused="true"]`},digitField:{selector:()=>ir.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},Kr=ir.cssVarList,ts=lo.cssVarList,es=qt(Je({mappings:{fontSize:[{...Hr,property:Kr.fontSize},Gr],hostWidth:{property:"width"},hostDirection:{...Gr,property:"direction"},fontFamily:[Gr,{...Jr}],labelFontWeight:{...Jr,property:"font-weight"},errorMessageFontWeight:{...Xr,property:"font-weight"},digitValueFontWeight:{selector:ir.componentName,property:Kr.inputValueFontWeight},labelTextColor:[{...Jr,property:"color"},{...Jr,property:"-webkit-text-fill-color"},{...$r,property:"color"},{...$r,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...$r,property:"content"},errorMessageTextColor:{...Xr,property:"color"},errorMessageIcon:{...Xr,property:"background-image"},errorMessageIconSize:{...Xr,property:"background-size"},errorMessageIconPadding:{...Xr,property:"padding-inline-start"},errorMessageIconRepeat:{...Xr,property:"background-repeat"},errorMessageIconPosition:{...Xr,property:"background-position"},errorMessageFontSize:{...Xr,property:"font-size"},digitValueTextColor:{selector:ir.componentName,property:Kr.inputValueTextColor},digitSize:[{...Hr,property:"height"},{...Hr,property:"width"}],digitPadding:{...Hr,property:Kr.inputHorizontalPadding},digitTextAlign:{...Hr,property:Kr.inputTextAlign},digitCaretTextColor:{...Hr,property:Kr.inputCaretTextColor},digitSpacing:{...qr,property:"gap"},digitOutlineColor:{...Hr,property:Kr.inputOutlineColor},digitOutlineWidth:{...Hr,property:Kr.inputOutlineWidth},focusedDigitFieldOutlineColor:{..._r,property:Kr.inputOutlineColor},overlayOpacity:{...qr,property:"opacity"},spinnerSize:{selector:lo.componentName,property:ts.spinnerSize}}}),$e,gi,ci({proxyProps:["value","selectionStart"]}),qe,t=>class extends t{static get observedAttributes(){return Fr.concat(t.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.(),O("\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 t=document.createElement("template");t.innerHTML=`\n <${Yr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n aria-label="passcode"\n ><slot></slot></${Yr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Yr),se(this,this.inputElement,{includeAttrs:["digits","size","loading","disabled"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"digits"===t&&(this.style["--passcode-digits-count"]=i)}})(oi({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(${Kr.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 ${Ce("vaadin-text-field")}\n\t\t\t${Te("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Zr}));customElements.define(Yr,class extends Br{static get observedAttributes(){return Qr.concat(Br.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 t=[...Array(this.digits).keys()].map(t=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${t}\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=t.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(t){t?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:t})=>t).join("")||""}set value(t){t!==this.value&&this.parseInputValue(this.inputs[0],Rr(t))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.pattern&&!new RegExp(this.pattern).test(this.value)?{patternMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[0].focus()}),super.init?.(),this.renderInputs()}getInputIdx(t){return Number.parseInt(t.getAttribute("data-id"),10)}getNextInput(t){const e=this.getInputIdx(t),i=Math.min(e+1,this.inputs.length-1);return this.inputs[i]}getPrevInput(t){const e=this.getInputIdx(t),i=Math.max(e-1,0);return this.inputs[i]}fillDigits(t,e){for(let i=0;i<t.length;i+=1){e.value=t[i]??"";const o=this.getNextInput(e);if(o===e)break;e=o}Wr(e)}parseInputValue(t,e=""){const i=e.split("");i.length?this.fillDigits(i,t):t.value=""}initInputs(){this.inputs.forEach((t,e)=>{O(`\n vaadin-text-field::part(input-field)::before {\n ${Vr}: '';\n content: var(${kr}, var(${Vr}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Or}, none);\n align-items: center;\n justify-content: center;\n }`,t);const i=s()(e=>{this.parseInputValue(t,e),Ur(t)},0,{trailing:!0});let o=!1;t.addEventListener("input",e=>{t.value=Rr(t.value),t.value&&Ur(t,t.value[0]);const n="deleteContentBackward"===e?.inputType||o;o=!1,n&&Wr(this.getPrevInput(t)),i(t.value)}),t.onkeydown=e=>{const{key:i}=e;"Backspace"===i?t.value?(t.setSelectionRange(1,1),o=!0):(e.preventDefault(),o=!1,Wr(this.getPrevInput(t))):(o=!1,1===i.length&&(t.value=""))},se(this,t,{includeAttrs:Pr}),t.shadowRoot.querySelector("input").setAttribute("aria-label",`Digit ${e+1} of ${this.inputs.length}`)}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Qr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Zr,es);const is=ne("password"),{host:os,inputField:ns,inputElement:rs,inputElementPlaceholder:ss,revealButtonContainer:as,revealButtonIcon:ls,label:ds,requiredIndicator:cs,errorMessage:us,helperText:ps}={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)"}},hs=qt(Je({mappings:{hostWidth:{...os,property:"width"},hostMinWidth:{...os,property:"min-width"},hostDirection:{...os,property:"direction"},fontSize:[{},os],fontFamily:[ds,ns,us,ps],inputHeight:{...ns,property:"height"},inputHorizontalPadding:[{...rs,property:"padding-left"},{...rs,property:"padding-right"}],inputBackgroundColor:{...ns,property:"background-color"},inputBorderStyle:{...ns,property:"border-style"},inputBorderWidth:{...ns,property:"border-width"},inputBorderColor:{...ns,property:"border-color"},inputBorderRadius:{...ns,property:"border-radius"},inputOutlineColor:{...ns,property:"outline-color"},inputOutlineStyle:{...ns,property:"outline-style"},inputOutlineOffset:{...ns,property:"outline-offset"},inputOutlineWidth:{...ns,property:"outline-width"},labelFontSize:{...ds,property:"font-size"},labelFontWeight:{...ds,property:"font-weight"},inputValueFontWeight:[{...rs,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...ss,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...ps,property:"font-weight"},errorMessageFontWeight:{...us,property:"font-weight"},labelTextColor:[{...ds,property:"color"},{...ds,property:"-webkit-text-fill-color"},{...cs,property:"color"},{...cs,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...cs,property:"content"},errorMessageTextColor:{...us,property:"color"},errorMessageIcon:{...us,property:"background-image"},errorMessageIconSize:{...us,property:"background-size"},errorMessageIconPadding:{...us,property:"padding-inline-start"},errorMessageIconRepeat:{...us,property:"background-repeat"},errorMessageIconPosition:{...us,property:"background-position"},errorMessageFontSize:{...us,property:"font-size"},inputPlaceholderTextColor:[{...ss,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...rs,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...as,property:"margin-right"},{...as,property:"margin-left"}],revealButtonSize:{...as,property:"font-size"},revealButtonColor:{...ls,property:"color"},labelPosition:{...ds,property:"position"},labelTopPosition:{...ds,property:"top"},labelHorizontalPosition:[{...ds,property:"left"},{...ds,property:"right"}],inputTransformY:{...ds,property:"transform"},inputTransition:{...ds,property:"transition"},marginInlineStart:{...ds,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...rs,property:"opacity"}],inputVerticalAlignment:{...ns,property:"align-items"},valueInputHeight:{...rs,property:"height"}}}),$e,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),oe(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.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",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),ci({proxyProps:["value","selectionStart"],useProxyTargets:!0}),qe,t=>class extends t{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){super.init?.();const t=this.querySelector("input");t?.addEventListener("mousedown",e=>{if(this.isDraggable&&this.isReadOnly){t.setAttribute("inert","true");const i=e.target,o=i.getAttribute("type");i.setAttribute("type","text"),setTimeout(()=>{i.focus()});const n=e=>{i.setAttribute("type",o),t.removeAttribute("inert"),this.removeEventListener("mouseup",n),this.removeEventListener("dragend",n)};this.addEventListener("dragend",n,{once:!0}),this.addEventListener("mouseup",n,{once:!0})}})}},t=>class extends t{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(),this.stopRevealButtonEnterPropagation()}stopRevealButtonEnterPropagation(){this.revealButton?.addEventListener("keydown",t=>{"Enter"===t.key&&t.stopPropagation()})}get revealButton(){return this.baseElement.querySelector("vaadin-password-field-button")}initExternalInput(){const t=this.createExternalInput();t&&this.handlePasswordVisibility(t)}get caretPosition(){return this.value?.length||0}handleCaretOnVisibilityChange(){const t=this.baseElement._togglePasswordVisibility.bind(this.baseElement);this.baseElement._togglePasswordVisibility=()=>{setTimeout(()=>(t(),this.inputElement.setSelectionRange(this.caretPosition,this.caretPosition),!1))}}setFocus(t){this.manualToggleVisibility&&(this.baseElement._setPasswordVisible=()=>{}),this.origSetFocused.call(this.baseElement,t),this.baseElement._setPasswordVisible=this.origSetPasswordVisible.bind(this.baseElement)}resetPasswordVisibilityToggle(){this.baseElement._setPasswordVisible=this.origSetPasswordVisible,this.baseElement._setFocused=this.origSetFocus}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i)}handlePasswordVisibility(t){const e=this.baseElement.__boundRevealButtonMouseDown;this.revealButton?.removeEventListener("mousedown",e),this.baseElement._passwordVisibleChanged=()=>{},this.baseElement._togglePasswordVisibility=()=>{"password"===t.getAttribute("type")?this.showPasswordVisibility(t):this.hidePasswordVisibility(t)}}showPasswordVisibility(t){t.setAttribute("type","text"),this.setAttribute("password-visible","true")}hidePasswordVisibility(t){t.setAttribute("type","password"),this.setAttribute("password-visible","false")}})(oi({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${Ie(hs.cssVarList)}\n\t\t\t${Te("vaadin-password-field")}\n ${Ce("vaadin-password-field")}\n ${ve("vaadin-password-field",hs.cssVarList)}\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(${hs.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:is}));customElements.define(is,hs);const gs=ne("text-area"),{host:Ms,label:ms,placeholder:ys,inputField:bs,textArea:Ns,requiredIndicator:Is,helperText:xs,errorMessage:js}={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)"}},Ts=qt(Je({mappings:{hostWidth:{...Ms,property:"width"},hostMinWidth:{...Ms,property:"min-width"},hostDirection:{...Ms,property:"direction"},fontSize:[Ms,Ns],fontFamily:[ms,bs,xs,js],labelFontSize:{...ms,property:"font-size"},labelFontWeight:{...ms,property:"font-weight"},inputValueFontWeight:{...Ns,property:"font-weight"},inputPlaceholderFontWeight:{...ys,property:"font-weight"},helperTextFontWeight:{...xs,property:"font-weight"},errorMessageFontWeight:{...js,property:"font-weight"},labelTextColor:[{...ms,property:"color"},{...ms,property:"-webkit-text-fill-color"},{...Is,property:"color"}],labelRequiredIndicator:{...Is,property:"content"},errorMessageTextColor:{...js,property:"color"},errorMessageIcon:{...js,property:"background-image"},errorMessageIconSize:{...js,property:"background-size"},errorMessageIconPadding:{...js,property:"padding-inline-start"},errorMessageIconRepeat:{...js,property:"background-repeat"},errorMessageIconPosition:{...js,property:"background-position"},errorMessageFontSize:{...js,property:"font-size"},inputBackgroundColor:{...bs,property:"background-color"},inputValueTextColor:{...Ns,property:"color"},inputPlaceholderTextColor:{...ys,property:"color"},inputBorderWidth:{...bs,property:"border-width"},inputBorderStyle:{...bs,property:"border-style"},inputBorderColor:{...bs,property:"border-color"},inputBorderRadius:{...bs,property:"border-radius"},inputOutlineStyle:{...bs,property:"outline-Style"},inputOutlineColor:{...bs,property:"outline-color"},inputOutlineOffset:{...bs,property:"outline-offset"},inputOutlineWidth:{...bs,property:"outline-width"},inputResizeType:{...Ns,property:"resize"},inputMinHeight:{...Ns,property:"min-height"},inputTextAlign:{...Ns,property:"text-align"}}}),$e,ci({proxyProps:["value","selectionStart"]}),qe)(oi({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 ${Ce("vaadin-text-area")}\n\t\t\t${Ie(Ts.cssVarList)}\n\t\t\t${xe("vaadin-text-area")}\n\t\t\t${je("vaadin-text-area")}\n\t\t\t${De("vaadin-text-area","textarea")}\n\t\t\t${Te("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:gs}));customElements.define(gs,Ts);var Ds=[{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:"+592",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((t,e)=>t.name<e.name?-1:1)];const vs=({code:t,dialCode:e,name:i})=>`\n\t<div\n\t\tdata-id="${e}"\n\t\tdata-name="${t} ${e} ${i}"\n\t\tdata-country-code="${t}"\n\t>\n\t\t<div>\n\t\t\t<span>\n\t\t\t\t<img src="${(t=>`https://static.descope.com/npm/svg-country-flags@1.2.10/svg/${t.toLowerCase()}.svg`)(t)}" width="20" loading="lazy" />\n\t\t\t</span>\n\t\t\t<span>${i}</span>\n\t\t</div>\n\t\t<div>\n\t\t\t<span>${t}</span>\n\t\t\t<span>${e}</span>\n\t\t</div>\n\t</div>\n`,zs=ne("phone-field-internal"),Cs=["disabled","size","bordered","readonly"],Ss=["country-input-placeholder","default-code","restrict-countries"],ws=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],As=["label-type","country-input-label","label"],Ls={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},fs=[].concat(Cs,Ss,ws,As),Es=Mi({componentName:zs,baseSelector:"div"});customElements.define(zs,class extends Es{static get observedAttributes(){return[].concat(Es.observedAttributes||[],fs)}#Mt;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 ${Ds.map(t=>vs(t)).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],se(this,this.comboBox,{includeAttrs:["label-type"]}),se(this,this.textField,{includeAttrs:["label-type","required","phone-input-type"],mapAttrs:{"phone-input-type":"type"}}),this.comboBox.customValueTransformFn=t=>{const[,e]=t?.split?.(" ")||[];return e}}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 t=this.getAttribute("restrict-countries");return t?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){return this.comboBox.value&&this.textField.value?this.allowAlphanumericInput?`${this.comboBox.value}-${this.textField.value}`:`${this.comboBox.value}-${this.textField.value.replace(/\D+/g,"")}`:""}#mt(){this.comboBox.selectedItem=void 0,this.textField.value=""}set value(t){this.#yt(t)}#yt(t){if(!t||!/\d/.test(t))return void this.#mt();t.startsWith("+")||(t=`+${t}`);let e="",i="";if(t.includes("-")){const o=t.indexOf("-");e=t.slice(0,o),i=t.slice(o+1).replace(/\D+/g,"")}else{const o=(0,u.l)(t);o?.countryCallingCode&&(e=`+${o.countryCallingCode}`,i=t.slice(e.length).replace(/\D+/g,""))}if(!/\d/.test(e))return void this.#mt();const o=Ds.filter(t=>t.dialCode===e).map(t=>t.code),n=this.selectedCountryCode;if(!o.includes(n)){const t=this.comboBox.items?.find(t=>o.includes(t.getAttribute("data-country-code")));t&&(this.comboBox.selectedItem=t)}this.isFormatValue?this.textField.value=this.#bt(i):this.textField.value=i}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#Nt()}getValidity(){const t=this.comboBox.value,e=this.textField.value,i=!t||!e,o=e&&e.length>=this.minLength;if(this.isRequired&&i)return{valueMissing:!0};if(this.value){if(!o)return{tooShort:!0};if(this.isStrictValidation&&!this.#It())return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i){if("default-code"===t&&i&&!this.selectedCountryCode)this.#xt(i);else if(fs.includes(t)){const e=Ls[t]||t;Cs.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):Ss.includes(t)?this.comboBox.setAttribute(e,i):ws.includes(t)&&this.textField.setAttribute(e,i)}As.includes(t)&&this.#jt(t,i),"restrict-countries"===t&&this.#Tt(this.restrictCountries)}}#Nt(){this.textField.addEventListener("input",this.#Dt.bind(this)),this.comboBox.addEventListener("change",this.#vt.bind(this)),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}#Dt(){const t=this.allowAlphanumericInput?this.textField.value:this.textField.value.replace(/\D+/g,"");this.textField.value=this.isFormatValue?this.#bt(t):t}#vt(){if(!this.isFormatValue)return;const t=this.textField.value.replace(/\D+/g,"");this.textField.value=this.#bt(t)}#bt(t=""){return this.#Mt&&this.#Mt.country===this.selectedCountryCode||(this.#Mt=new p.Q(this.selectedCountryCode)),this.#Mt.reset(),this.#Mt.input(t)||t}#It(){const t=(0,u.l)(this.value);return!!(t&&t.isValid?.()&&t.country&&this.#zt(t.country))}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Ct(t){return this.comboBox.items?.find(e=>e.getAttribute("data-country-code")===t)}#Tt(t){const e=t.length?Ds.filter(e=>t.includes(e.code)):Ds;this.querySelector("descope-combo-box").innerHTML=e.map(t=>vs(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=Ls[t]||t;"label-type"===t?this.#St(e):"floating"===this.getAttribute("label-type")&&("country-input-label"===t?this.comboBox.setAttribute(i,e):"label"===t&&this.textField.setAttribute(i,e))}#St(t){"floating"===t?(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(t=>t.removeAttribute("label"))}});const ks=ir.cssVarList,Os=zo.cssVarList,Vs=ne("phone-field"),{host:Ws,label:Rs,requiredIndicator:Us,inputField:Ys,internalAfter:Qs,countryCodeInput:Ps,phoneInput:Bs,separator:Zs,errorMessage:Fs,helperText:Gs}={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)"}},Hs=qt(Je({mappings:{fontSize:[Ws,Ys,{selector:ir.componentName,property:ir.cssVarList.fontSize},{selector:zo.componentName,property:zo.cssVarList.fontSize}],fontFamily:[Rs,Fs,Gs,{...Ps,property:zo.cssVarList.overlay.fontFamily}],hostWidth:[{...Ws,property:"width"},{...Bs,property:"width"},{...Ps,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Ws,property:"direction"},inputBorderStyle:[{...Qs,property:"border-style"},{...Zs,property:"border-left-style"}],inputBorderWidth:[{...Qs,property:"border-width"},{...Zs,property:"border-left-width"}],inputBorderColor:[{...Qs,property:"border-color"},{...Zs,property:"border-left-color"}],inputBorderRadius:[{...Ys,property:"border-radius"},{...Qs,property:"border-radius"}],countryCodeInputWidth:{...Ps,property:Os.hostWidth},countryCodeDropdownWidth:{...Ps,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Bs,property:"width"},horizontalPadding:[{...Bs,property:"padding-left"},{...Bs,property:"padding-right"},{...Ps,property:"padding-left"},{...Ps,property:"padding-right"}],labelFontSize:{...Rs,property:"font-size"},labelFontWeight:{...Rs,property:"font-weight"},inputValueFontWeight:[{...Bs,property:ks.inputValueFontWeight},{...Ps,property:Os.inputValueFontWeight}],inputPlaceholderFontWeight:{...Bs,property:ks.inputPlaceholderFontWeight},helperTextFontWeight:{...Gs,property:"font-weight"},errorMessageFontWeight:{...Fs,property:"font-weight"},labelTextColor:[{...Rs,property:"color"},{...Rs,property:"-webkit-text-fill-color"},{...Us,property:"color"}],labelRequiredIndicator:{...Us,property:"content"},errorMessageTextColor:{...Fs,property:"color"},errorMessageIcon:{...Fs,property:"background-image"},errorMessageIconSize:{...Fs,property:"background-size"},errorMessageIconPadding:{...Fs,property:"padding-inline-start"},errorMessageIconRepeat:{...Fs,property:"background-repeat"},errorMessageIconPosition:{...Fs,property:"background-position"},errorMessageFontSize:{...Fs,property:"font-size"},inputValueTextColor:[{...Bs,property:ks.inputValueTextColor},{...Ps,property:Os.inputValueTextColor}],inputPlaceholderTextColor:{...Bs,property:ks.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:Os.overlayItemBackgroundColor},inputOutlineStyle:{...Ys,property:"outline-style"},inputOutlineColor:{...Ys,property:"outline-color"},inputOutlineWidth:{...Ys,property:"outline-width"},inputOutlineOffset:{...Ys,property:"outline-offset"},valueInputHeight:[{...Ps,property:Os.valueInputHeight}],valueInputMarginBottom:[{...Bs,property:ks.valueInputMarginBottom}],marginInlineStart:[{...Bs,property:ks.marginInlineStart},{...Ps,property:Os.marginInlineStart}]}}),$e,gi,ci({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ds}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${zs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${zs}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(zs),se(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","phone-input-type"]})}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(t=>t.getAttribute("data-country-code"))}})(oi({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${Ie(Hs.cssVarList)}\n\t\t\t${Te("vaadin-text-field")}\n\t\t\t${ze("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(${Hs.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${Os.inputOutlineWidth}: 0;\n\t\t\t\t${Os.inputOutlineOffset}: 0;\n\t\t\t\t${Os.inputBorderWidth}: 0;\n\t\t\t\t${Os.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${ks.inputOutlineWidth}: 0;\n\t\t\t\t${ks.inputOutlineOffset}: 0;\n\t\t\t\t${ks.inputBorderWidth}: 0;\n\t\t\t\t${ks.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 ${Ce("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Vs}));customElements.define(Vs,Hs);const Js=ne("phone-field-internal-input-box"),$s=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],qs={"phone-input-placeholder":"placeholder","phone-input-type":"type"},_s=Mi({componentName:Js,baseSelector:"div"});customElements.define(Js,class extends _s{static get observedAttributes(){return[].concat(_s.observedAttributes||[],$s)}#Mt;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 t=this.getAttribute("default-code"),Ds.find(e=>e.code===t)?.dialCode;var t}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.#wt();const t=this.#At();return t?.country&&t?.countryCallingCode&&t?.nationalNumber?`+${[t?.countryCallingCode,t?.nationalNumber].join("-")}`:this.textField.value}set value(t){this.textField.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#Lt.bind(this)),this.handleFocusEventsDispatching([this.textField]),k(this.textField,this,{includeAttrs:["has-value"]}),k(this,this.textField,{includeAttrs:["phone-input-type"],mapAttrs:{"phone-input-type":"type"}})}getValidity(){const t=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,e=this.#ft(this.textField.value||"");if(this.isRequired&&!this.textField.value)return{valueMissing:!0};if(this.textField.value){if(e.length<this.minLength)return{tooShort:!0};if(this.isStrictValidation&&this.textField.value&&!this.#It()||!this.isStrictValidation&&this.textField.value&&!t.test(this.value))return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i&&$s.includes(t)){const e=qs[t]||t;this.textField.setAttribute(e,i)}}#Lt(t){let e=this.#Et(t.target.value);this.isFormatValue&&this.#kt(e)&&(e=this.#Ot(e)),t.target.value=e}#wt(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Vt(this.textField.value),e=this.#ft(t);return[this.defaultDialCode,e].join("-")}#At(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#ft(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#ft(t){return t.replace(/\D/g,"")}#Vt(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#It(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#zt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Et(t){if(t=t.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const e=/^[+\d-\(\)]+$/;t=t.split("").filter(t=>e.test(t)).join("")}return t}#Ot(t=""){const e=this.defaultCode||this.#Wt(t);return e?(this.#Mt&&this.#Mt.country===e||(this.#Mt=new p.Q(e)),this.#Mt.reset(),this.#Mt.input(t)||t):t}#Wt(t){const e=(0,u.l)(t);return e?.country||""}#kt(t){return!!(t=>{const e=t.match(/\(/g),i=t.match(/\)/g);return e?.length===i?.length})(t)}});const Xs=ir.cssVarList,Ks=ne("phone-input-box-field"),{host:ta,label:ea,inputElement:ia,requiredIndicator:oa,inputField:na,internalComponent:ra,internalComponentAfter:sa,phoneInput:aa,errorMessage:la,helperText:da}={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)"}},ca=qt(Je({mappings:{fontSize:[ta,na,{selector:ir.componentName,property:ir.cssVarList.fontSize}],fontFamily:[ea,la,da],hostWidth:{...ta,property:"width"},hostMinWidth:{...ta,property:"min-width"},hostDirection:{...ta,property:"direction"},inputHorizontalPadding:[{...aa,property:"padding-left"},{...aa,property:"padding-right"}],labelFontSize:{...ea,property:"font-size"},labelFontWeight:{...ea,property:"font-weight"},inputValueFontWeight:{...aa,property:Xs.inputValueFontWeight},inputPlaceholderFontWeight:{...aa,property:Xs.inputPlaceholderFontWeight},helperTextFontWeight:{...da,property:"font-weight"},errorMessageFontWeight:{...la,property:"font-weight"},labelTextColor:[{...ea,property:"color"},{...ea,property:"-webkit-text-fill-color"},{...oa,property:"color"}],labelRequiredIndicator:{...oa,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"},inputValueTextColor:{...aa,property:Xs.inputValueTextColor},inputPlaceholderTextColor:{...aa,property:Xs.inputPlaceholderColor},inputBorderStyle:{...sa,property:"border-style"},inputBorderWidth:{...sa,property:"border-width"},inputBorderColor:{...sa,property:"border-color"},inputBorderRadius:[{...ra,property:"border-radius"},{...sa,property:"border-radius"}],inputOutlineStyle:{...ra,property:"outline-style"},inputOutlineColor:{...ra,property:"outline-color"},inputOutlineWidth:{...ra,property:"outline-width"},inputOutlineOffset:{...ra,property:"outline-offset"},labelPosition:{...ea,property:"position"},labelTopPosition:{...ea,property:"top"},labelHorizontalPosition:[{...ea,property:"left"},{...ea,property:"right"}],inputTransformY:{...ea,property:"transform"},inputTransition:{...ea,property:"transition"},marginInlineStart:{...ea,property:"margin-inline-start"},valueInputHeight:{...ia,property:"height"},valueInputMarginBottom:{selector:ir.componentName,property:Xs.valueInputMarginBottom}}}),$e,gi,ci({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ds}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${Js}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Js}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Js),A(this,this.inputElement,{includeAttrs:["has-value"]}),se(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","phone-input-type"]})}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${Ie(ca.cssVarList)}\n ${Te("vaadin-text-field")}\n ${ze("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 ${Xs.inputOutlineWidth}: 0;\n ${Xs.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 ${Ce("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:Ks}));customElements.define(Ks,ca);const ua=ne("new-password-internal"),pa=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),ha=ne("policy-validation"),ga=["data","active-policies","overrides","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-actual-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse"],Ma=["label","value",...ga];class ma extends(ei({componentName:ha,baseSelector:":host > div"})){#Rt;#Ut=[];#Yt;static get observedAttributes(){return Ma}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n\t\t',O("\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(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("label"===t&&this.updateLabel(i),ga.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(i)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Ut=(i||"").split(",")),"data-password-policy-value-minlength"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,minlength:{value:`${t}`}})}if("data-password-policy-value-reuse"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,reuse:{value:`${t}`}})}if("data-password-policy-value-passwordstrength"===t){const t=parseInt(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,expected:t}})}if("data-password-policy-actual-passwordstrength"===t){const t=Number(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,actual:t}})}if("data-password-policy-value-disallowedchars"===t)if(i)this.#Yt={...this.#Yt,disallowedchars:{...this.#Yt?.disallowedchars,value:i}};else if(this.#Yt?.disallowedchars){const{disallowedchars:t,...e}=this.#Yt;this.#Yt=e}if("data-password-policy-value-email"===t)if(i)this.#Yt={...this.#Yt,disallowemail:{...this.#Yt?.disallowemail,expected:i}};else if(this.#Yt?.disallowemail){const{disallowemail:t,...e}=this.#Yt;this.#Yt=e}}this.renderItems(this.#Rt,this.#Ut,this.#Yt)}}get availablePolicies(){return this.#Rt||[]}set availablePolicies(t){this.#Rt=t}get value(){return this.getAttribute("value")||""}getStrengthScore(){return this.value.length}compareValues(t,e,i){switch(t.toUpperCase()){case"GTE":return i>=e;case"GT":return i>e;case"LTE":return i<=e;case"LT":return i<e;case"EQ":return i===e;case"NEQ":return i!==e;default:throw new Error(`Invalid comparison type: ${t}`)}}validate(){let t=this.#Rt;return this.#Yt&&(t=this.#Rt.map(t=>{const e=this.#Yt[t.id];return e?{...t,data:e}:t})),this.#Ut.reduce((e,i)=>{const o=t.find(t=>t.id===i);if(!o)return e;const{pattern:n,message:r,data:s,compare:a,info:l}=o,d="string"==typeof a?a.toUpperCase():a;if(!n&&!a&&!l||!r)return e;const c={message:pa(r,s),id:i};if(l)c.info=!0;else if(n){const t=new RegExp(pa(n,s));c.valid=t.test(this.value)}else if("STR_NEQ_CI"===d){const t=(s?.expected??"").toLowerCase(),e=(this.value??"").toLowerCase();if(t&&e){const i=t.indexOf("@"),o=i>0?t.slice(0,i):t;c.valid=e!==t&&e!==o}else c.valid=!0}else a&&(c.valid=this.compareValues(d,s?.expected??-1,s?.actual??-1));return e.push(c),e},[]).sort((t,e)=>Number(!!t.info)-Number(!!e.info))}get isValid(){return!this.validate().some(({valid:t})=>!1===t)}buildValidationItem({valid:t,message:e,info:i}){const o=!this.value||i?"none":t,n=document.createElement("li");n.className="item",n.dataset.valid=o;const r=document.createElement("span");return r.className="message",r.textContent=e??"",n.appendChild(r),n}renderItems(t,e){t&&e.length&&this.list.replaceChildren(...this.validate().map(this.buildValidationItem.bind(this)))}updateLabel(t){t?(this.label.textContent=t,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.textContent="")}}const{host:ya,item:ba,symbolDefault:Na,symbolSuccess:Ia,symbolError:xa}={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'}},ja=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ya,property:"border-width"},borderStyle:{...ya,property:"border-style"},borderColor:{...ya,property:"border-color"},borderRadius:{...ya,property:"border-radius"},backgroundColor:{...ya,property:"background-color"},textColor:{property:"color"},labelMargin:{...ya,property:"gap"},itemsSpacing:{...ba,property:"line-height"},itemSymbolSuccessColor:{...Ia,property:"color"},itemSymbolErrorColor:{...xa,property:"color"},itemSymbolDefault:{...Na,property:"content"},itemSymbolSuccess:{...Ia,property:"content"},itemSymbolError:{...xa,property:"content"}}}),$e,qe)(ma),Ta=ne("new-password"),Da=ja.cssVarList,{host:va,label:za,internalInputsWrapper:Ca,errorMessage:Sa,helperText:wa,passwordInput:Aa,policyPreview:La}={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"}},fa=qt(Je({mappings:{fontSize:[va,{},{selector:hs.componentName,property:hs.cssVarList.fontSize}],fontFamily:[za,Sa,wa],labelFontSize:{...za,property:"font-size"},labelFontWeight:{...za,property:"font-weight"},inputValueFontWeight:{...Aa,property:hs.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...Aa,property:hs.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...wa,property:"font-weight"},errorMessageFontWeight:{...Sa,property:"font-weight"},labelTextColor:{...za,property:"color"},errorMessageTextColor:{...Sa,property:"color"},errorMessageIcon:{...Sa,property:"background-image"},errorMessageIconSize:{...Sa,property:"background-size"},errorMessageIconPadding:{...Sa,property:"padding-inline-start"},errorMessageIconRepeat:{...Sa,property:"background-repeat"},errorMessageIconPosition:{...Sa,property:"background-position"},errorMessageFontSize:{...Sa,property:"font-size"},hostWidth:{...va,property:"width"},hostMinWidth:{...va,property:"min-width"},hostDirection:[{...va,property:"direction"},{...Aa,property:hs.cssVarList.hostDirection}],inputsRequiredIndicator:{...va,property:"content"},spaceBetweenInputs:{...Ca,property:"gap"},policyPreviewBackgroundColor:{...La,property:Da.backgroundColor},policyPreviewPadding:{...La,property:Da.padding},valueInputHeight:{...Aa,property:hs.cssVarList.valueInputHeight},valueInputMarginBottom:{...Aa,property:hs.cssVarList.valueInputMarginBottom}}}),$e,ci({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e=this.getAttribute("external-input");t.innerHTML=`\n\t\t\t<${ua}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n\t\t\t>\n </${ua}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ua),"true"===this.getAttribute("external-input")&&this.initExternalInput(),se(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","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","label-type","manual-visibility-toggle"]})}createSlottedExternalInput(t,e){const i=t.querySelector("input"),o=document.createElement("slot"),n=i.getAttribute("slot");o.setAttribute("name",e),o.setAttribute("slot",n),t.appendChild(o),i.setAttribute("slot",e),i.setAttribute("name",this.getAttribute("name")),i.setAttribute("data-hidden-input","true"),this.appendChild(i)}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")}})(oi({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${Ie(hs.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:Ta}));customElements.define(ha,ja);const Ea=/^password-/,ka=/^confirm-/,Oa=(t,e)=>t.replace(e,""),Va=["password-label","password-placeholder"],Wa=["confirm-label","confirm-placeholder"],Ra=["has-validation","policy-label","available-policies","active-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","manual-visibility-toggle"],Ua=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ya=[].concat(Ua,Va,Wa,Ra),Qa=Mi({componentName:ua,baseSelector:"div"});customElements.define(ua,class extends Qa{static get observedAttributes(){return[].concat(Qa.observedAttributes||[],Ya)}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(t){t!==this.value&&(this.passwordInput.value=t)}get hasConfirm(){return"true"===this.getAttribute("has-confirm")}onHasConfirmChange(t){this.confirmInput.classList.toggle("hidden",!t)}onHasValidationChange(t){this.policyPanel.classList.toggle("hidden",!t)}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 t=this.getAttribute("minlength"),e=parseInt(t,10)||0;return this.value.length>=e?{}:{tooShort:!0}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.passwordInput.focus()}),super.init?.(),this.renderInputs(this.hasConfirm,this.hasValidation)}renderInputs(){const t="true"===this.getAttribute("external-input"),e=`\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="${t}"\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="${t}"\n data-id="confirm"\n ></descope-password>\n `;this.wrapperEle.innerHTML=e,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",t=>{this.passwordStrength?.addEventListener("score-changed",({detail:t})=>{this.policyPanel.setAttribute("data-password-policy-actual-passwordstrength",t)},{once:!0}),this.passwordStrength?.setAttribute("value",t.target.value),this.policyPanel.setAttribute("value",t.target.value)}),se(this,this.policyPanel,{includeAttrs:Ra,mapAttrs:{"policy-label":"label","available-policies":"data"}})}handleIndicatorStyle(){this.inputs.forEach(t=>{O(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${fa.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`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&te(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.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 XT}),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(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("has-validation"===t?this.onHasValidationChange("true"===i):"has-confirm"===t?this.onHasConfirmChange("true"===i):Ua.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):Va.includes(t)?this.toggleBooleanAttribute(this.passwordInput,Oa(t,Ea),i):Wa.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,Oa(t,ka),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(Ta,fa);const Pa=ne("recaptcha"),Ba=["enabled","site-key","action","enterprise","variant"],Za="recaptcha",Fa=Mi({componentName:Pa,baseSelector:":host > div"}),Ga=qt($e)(class extends Fa{#Qt=null;static get observedAttributes(){return Ba.concat(Fa.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Pt("true"===i),"variant"===t&&(this.#Bt(),this.updatePreview()))}renderRecaptcha(t){this.children.length?this.updatePreview():this.toggleRecaptchaEles(t)}displayRecaptcha(){this.isWidgetVariant?this.displayWidget():this.displayDeprecated()}displayWidget(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="",this.depercatedRecaptchaEle.style.display="none"}hideRecaptcha(){this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display="none",this.mockRecaptchaEle.style.display=""}displayDeprecated(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display=""}toggleRecaptchaEles(t){t?this.displayRecaptcha():this.hideRecaptcha()}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <span id="recaptcha-widget"></span>\n <input id="recaptcha-widget-input" type="hidden" name="recaptcha-widget" required />\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',O('\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 #recaptcha-widget {\n width: 100%;\n height: 100%;\n }\n :host #recaptcha-widget-input {\n display: none;\n }\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.depercatedRecaptchaEle=this.baseElement.querySelector("#recaptcha"),this.recaptchaWidgetEle=this.baseElement.querySelector("#recaptcha-widget"),this.recaptchaWidgetInputEle=this.baseElement.querySelector("#recaptcha-widget-input"),this.mockRecaptchaEle=this.baseElement.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge")}init(){super.init?.(),ee(this,this.updatePreview.bind(this)),this.inputElement=this.recaptchaWidgetInputEle,this.recaptchaWidgetInputEle.getValidity=null,this.recaptchaWidgetInputEle.checkValidity=null,this.#Bt()}#Bt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Za),this.#Qt=Za):this.#Qt&&this.getAttribute("name")===this.#Qt&&(this.removeAttribute("name"),this.#Qt=null),this.dispatchEvent(new Event("change"))}updatePreview(){this.children.length?(this.depercatedRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.mockRecaptchaEle.style.display="none",this.badge.classList.add("hidden")):(this.toggleRecaptchaEles(this.enabled),this.badge.classList.remove("hidden"))}getValidity(){return this.isWidgetVariant?this.recaptchaWidgetInputEle.value?{}:{valueMissing:!0}:{}}checkValidity(){return!this.isWidgetVariant||!!this.recaptchaWidgetInputEle.value}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 variant(){return this.getAttribute("variant")||"text"}get isWidgetVariant(){return"widget"===this.variant}get scriptURL(){const t=new URL("https://www.google.com/recaptcha/");return t.pathname+=(this.enterprise?"enterprise":"api")+".js",t.searchParams.append("onload","onRecaptchaLoadCallback"),t.searchParams.append("render","explicit"),t.toString()}#Pt(t){this.renderRecaptcha(t),this.isWidgetVariant||t&&(this.#Zt(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Ft())}#Ft(){const t=document.createElement("script");t.src=this.scriptURL,t.async=!0,t.id="recaptcha-script",t.defer=!0,document.body.appendChild(t)}get grecaptchaInstance(){return this.enterprise?window.grecaptcha?.enterprise:window.grecaptcha}#Gt(t,e,i){this.isConnected&&t.ready(()=>{const o=e.querySelector('textarea[name^="g-recaptcha-response"]')?.cloneNode();if(o&&(o.style.display="none",document.body.appendChild(o)),!this.siteKey)return;const n=t?.execute(i,{action:this.action});n.then((n,r)=>{r?console.warn("could not execute recaptcha",r):(this.updateComponentsContext({risktoken:n,riskaction:this.action}),this.isConnected&&setTimeout(()=>{this.#Gt(t,e,i)},11e4)),o.remove()})})}#Zt(){window.onRecaptchaLoadCallback=()=>{const t=this.depercatedRecaptchaEle;if(t.hasChildNodes())return;const{grecaptchaInstance:e}=this;e&&setTimeout(()=>{const i=e.render(t,{sitekey:this.siteKey,badge:"inline",size:"invisible"});this.#Gt(e,t,i)},0)}}});customElements.define(Pa,Ga);const Ha=ne("upload-file"),Ja=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],$a=Mi({componentName:Ha,baseSelector:":host > div"}),qa=Uo.cssVarList,{host:_a,wrapper:Xa,icon:Ka,title:tl,description:el,requiredIndicator:il}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},ol=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{..._a,property:"height"},hostWidth:{..._a,property:"width"},hostPadding:{property:"padding"},hostDirection:[{..._a,property:"direction"},{selector:()=>Uo.componentName,property:qa.hostDirection}],gap:{...Xa},lineHeight:{...Xa,property:"line-height"},titleFontSize:{...tl,property:"font-size"},titleFontWeight:{...tl,property:"font-weight"},descriptionFontSize:{...el,property:"font-size"},labelTextColor:[{...tl,property:"color"},{...el,property:"color"}],iconSize:{...Ka,property:"width"},requiredIndicator:{...il,property:"content"}}}),$e,qe)(class extends $a{static get observedAttributes(){return Ja.concat($a.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-hidden="true"/>\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',O("\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 t=>{const e=t.target.files;var i;e.length&&(this.value=await(i=e[0],new Promise(t=>{const e=new FileReader;e.onload=e=>t(e.target.result),e.readAsDataURL(i)})),this.updateDescription((t=>t.name.replace(/^.*\\/,""))(e[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(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("title"===t?this.updateTitle(i):"description"===t?this.updateDescription(i):"button-label"===t?this.updateButtonLabel(i):"button-mode"===t?this.updateButtonMode(i):"button-variant"===t?this.updateButtonVariant(i):"size"===t?this.updateButtonSize(i):"accept"===t?this.updateInputAccept(i):"readonly"===t&&this.updateReadOnly(i))}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(t){this.title.textContent=t}updateDescription(t){this.description.textContent=t}updateButtonLabel(t){this.button.textContent=t}updateButtonSize(t){this.button.setAttribute("size",t)}updateButtonMode(t){this.button.setAttribute("mode",t)}updateButtonVariant(t){this.button.setAttribute("variant",t)}updateInputAccept(t){this.input.setAttribute("accept",t)}updateReadOnly(t){"true"===t?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}});customElements.define(Ha,ol);const nl=t=>{class e extends(Mi({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=ii.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(t){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach(t=>{t.setAttribute("size",this.size)})}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(t){t.forEach(t=>{switch(t){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}})}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.items[0]?.focus()}),super.init?.(),te(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return e},rl=ne("button-selection-group-internal");class sl extends(nl(rl)){getSelectedNode(){return this.items.find(t=>t.hasAttribute("selected"))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(t){t.target!==t.currentTarget&&(t.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(t.target),this.dispatchChange())}setSelected(t){t!==this.getSelectedNode()&&(this.removeSelected(),t?.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(t){const e=this.items.find(e=>e.value===t);this.setSelected(e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const al=ne("button-selection-group-item");class ll extends(ei({componentName:al,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(t){this.setAttribute("value",t)}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`,O("\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),se(this,this.baseElement,{includeAttrs:["size","variant"]}),se(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",t=>{t.isTrusted&&this.handleFocus()})}}const dl=qt(Je({mappings:{hostDirection:{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},hostWidth:{selector:()=>Uo.componentName,property:"width"},backgroundColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.backgroundColor},labelTextColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.labelTextColor},borderColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderColor},borderWidth:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderWidth},borderStyle:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderStyle},borderRadius:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderRadius},outlineColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.outlineColor}}}),$e,qe)(ll),cl=t=>class extends t{#tt=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#R;get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.renderItems(),te(this,this.renderItems.bind(this),{includeAttrs:["data"]}),ee(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})})}},{host:ul,label:pl,requiredIndicator:hl,internalWrapper:gl,errorMessage:Ml}={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)"}},ml={hostWidth:{...ul,property:"width"},hostDirection:{...ul,property:"direction"},fontFamily:ul,labelTextColor:[{...pl,property:"color"},{...hl,property:"color"}],labelRequiredIndicator:{...hl,property:"content"},errorMessageTextColor:{...Ml,property:"color"},errorMessageIcon:{...Ml,property:"background-image"},errorMessageIconSize:{...Ml,property:"background-size"},errorMessageIconPadding:{...Ml,property:"padding-inline-start"},errorMessageIconRepeat:{...Ml,property:"background-repeat"},errorMessageIconPosition:{...Ml,property:"background-position"},errorMessageFontSize:{...Ml,property:"font-size"},itemsSpacing:{...gl,property:"gap"},itemsDirection:{...gl,property:"flex-direction"},itemsAlignment:{...gl,property:"align-items"},itemsWidth:{selector:()=>`::slotted(${dl.componentName})`,property:dl.cssVarList.hostWidth}},yl=`\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\tvaadin-text-field::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 ${Ce("vaadin-text-field")}\n\t\t\t${Te("vaadin-text-field")}\n `,bl=ne("button-selection-group"),Nl=qt(Je({mappings:{...ml}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,cl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${rl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${rl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(rl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),se(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>yl,excludeAttrsSync:["tabindex","style"],componentName:bl}));customElements.define(rl,sl),customElements.define(al,dl),customElements.define(bl,Nl);const Il=ne("button-multi-selection-group-internal");class xl extends(nl(Il)){#Ht(){return this.items.filter(t=>t.hasAttribute("selected"))}onClick(t){t.target!==t.currentTarget&&(this.#Ht().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Ht().map(t=>t.value)}set value(t){this.items.forEach(e=>{t.includes(e.value)?e.setAttribute("selected","true"):e.removeAttribute("selected")})}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#Jt(t){const e=Array.isArray(t);return e||console.error("default-values must be an array, received:",t),e}get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.#Jt(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.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 jl=ne("button-multi-selection-group"),Tl=qt(Je({mappings:{...ml}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,cl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Il}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${Il}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Il),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),se(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>yl,excludeAttrsSync:["tabindex","style"],componentName:jl}));customElements.define(Il,xl),customElements.define(jl,Tl);class Dl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(t,e,i){const o=i.item[this.path]||"",n=Array.isArray(o)?o.join(", "):o;this.__setTextContent(t,n),t.title=n}_defaultHeaderRenderer(t,e){this.sortable?super._defaultHeaderRenderer(t,e):this.__setTextContent(t,this.__getHeader(this.header,this.path))}}const vl=ne("grid-text-column");customElements.define(vl,Dl);const zl=ne("grid-custom-column");customElements.define(zl,class extends Dl{_defaultRenderer(t,e,i){const o=i.item[this.path]||"",n=Array.from(this.children).find(t=>{const e=t.getAttribute("data-pattern");return!e||new RegExp(e).test(o)});if(!n)return void this.__setTextContent(t,i.item[this.path]||"");const r=n.cloneNode(!0);r.textContent=o||"",t.innerHTML="",t.append(r)}});const Cl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},Sl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class wl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=Cl(),i.addEventListener("input",()=>{const t=Sl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",Sl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=Cl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const Al=ne("grid-selection-column");customElements.define(Al,wl);class Ll extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(t,e,i){const o=e._gridValue,n=o.detailsOpenedItems?.indexOf(i.item)??-1,r=-1!==n,s=document.createElement("vaadin-icon");s.icon=r?"vaadin:angle-up":"vaadin:angle-down",s.classList.add("toggle-details-button",r?"opened":"closed"),t.innerHTML="",t.append(s),s.onclick=()=>{o.detailsOpenedItems=r?o.detailsOpenedItems.toSpliced(n,1):[...o.detailsOpenedItems,i.item]}}_defaultHeaderRenderer(t,e){this.sortable?super._defaultHeaderRenderer(t,e):this.__setTextContent(t,this.__getHeader(this.header,this.path))}}const fl=ne("grid-item-details-column");customElements.define(fl,Ll),customElements.define(So,Lo),customElements.define(fo,Eo);const El=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},kl=ne("code-snippet");let Ol=class extends(ei({componentName:kl,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["lang","inline","copy-button"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <code class="hljs"></code>\n </div>\n ',O("\n :host {\n display: inline-block;\n width: 100%;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n code {\n grid-area: 1 / 1;\n display: block;\n width: 100%;\n min-height: 1em;\n overflow-x: auto;\n }\n pre {\n margin: 0;\n }\n .copy-btn {\n grid-area: 1 / 1;\n place-self: start end;\n margin: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-style: solid;\n cursor: pointer;\n opacity: 0;\n transition: opacity 150ms ease, background 150ms ease;\n }\n .wrapper:hover .copy-btn,\n .copy-btn:focus-visible {\n opacity: 1;\n }\n .copy-btn descope-icon {\n width: 16px;\n height: 16px;\n pointer-events: none;\n flex-shrink: 0;\n }\n .copy-btn .check-icon {\n display: none;\n }\n .copy-btn.copied .check-icon {\n display: block;\n }\n .copy-btn.copied descope-icon:not(.check-icon) {\n display: none;\n }\n ",this)}init(){super.init?.(),this.lang=this.getAttribute("lang"),this.isInline="true"===this.getAttribute("inline"),"true"===this.getAttribute("copy-button")&&this.#$t(),ee(this,this.#qt.bind(this))}get contentNode(){return this.shadowRoot.querySelector("code")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("inline"===t&&(this.isInline=i),"lang"===t&&(this.lang=i),"copy-button"===t&&("true"===i?this.#$t():this.#_t()),this.#qt())}#$t(){if(this.shadowRoot.querySelector(".copy-btn"))return;const t=document.createElement("button");t.className="copy-btn",t.type="button",t.setAttribute("aria-label","Copy code");const e=document.createElement("descope-icon");e.setAttribute("src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogIDxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+CiAgPHBhdGggZD0iTTUgMTVINGEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg5YTIgMiAwIDAgMSAyIDJ2MSI+PC9wYXRoPgo8L3N2Zz4K");const i=document.createElement("descope-icon");i.setAttribute("src","data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iY2hlY2staWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT4KPC9zdmc+Cg=="),i.classList.add("check-icon"),t.appendChild(e),t.appendChild(i),t.addEventListener("click",()=>this.#Xt()),this.shadowRoot.querySelector(".wrapper").appendChild(t)}#_t(){this.shadowRoot.querySelector(".copy-btn")?.remove()}#Xt(){const t=this.shadowRoot.querySelector(".copy-btn");navigator.clipboard.writeText(El(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=El(this.textContent),e=this.lang;if(!e)return void(this.contentNode.textContent=t);const{value:i}=M.A.highlight(t,{language:e});this.contentNode.innerHTML=(t=>this.isInline?t:`<pre>${t}</pre>`)(i)}};const Vl={selector:()=>".copy-btn"},{root:Wl,docTag:Rl,keyword:Ul,metaKeyword:Yl,templateTag:Ql,templateVariable:Pl,type:Bl,variableLanguage:Zl,title:Fl,titleClass:Gl,titleClassInherited:Hl,titleFunction:Jl,attr:$l,attribute:ql,literal:_l,meta:Xl,number:Kl,operator:td,variable:ed,selectorAttr:id,selectorClass:od,selectorId:nd,regexp:rd,string:sd,metaString:ad,builtIn:ld,symbol:dd,comment:cd,code:ud,formula:pd,name:hd,quote:gd,selectorTag:Md,selectorPseudo:md,subst:yd,section:bd,bullet:Nd,emphasis:Id,strong:xd,addition:jd,deletion:Td,charEscape:Dd,link:vd,params:zd,property:Cd,punctuation:Sd,tag:wd}={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"}},Ad=qt(Je({mappings:{rootBgColor:{...Wl,property:"background-color"},rootTextColor:{...Wl,property:"color"},docTagTextColor:{...Rl,property:"color"},keywordTextColor:{...Ul,property:"color"},metaKeywordTextColor:{...Yl,property:"color"},templateTagTextColor:{...Ql,property:"color"},templateVariableTextColor:{...Pl,property:"color"},typeTextColor:{...Bl,property:"color"},variableLanguageTextColor:{...Zl,property:"color"},titleTextColor:{...Fl,property:"color"},titleClassTextColor:{...Gl,property:"color"},titleClassInheritedTextColor:{...Hl,property:"color"},titleFunctionTextColor:{...Jl,property:"color"},attrTextColor:{...$l,property:"color"},attributeTextColor:{...ql,property:"color"},literalTextColor:{..._l,property:"color"},metaTextColor:{...Xl,property:"color"},numberTextColor:{...Kl,property:"color"},operatorTextColor:{...td,property:"color"},variableTextColor:{...ed,property:"color"},selectorAttrTextColor:{...id,property:"color"},selectorClassTextColor:{...od,property:"color"},selectorIdTextColor:{...nd,property:"color"},regexpTextColor:{...rd,property:"color"},stringTextColor:{...sd,property:"color"},metaStringTextColor:{...ad,property:"color"},builtInTextColor:{...ld,property:"color"},symbolTextColor:{...dd,property:"color"},commentTextColor:{...cd,property:"color"},codeTextColor:{...ud,property:"color"},formulaTextColor:{...pd,property:"color"},nameTextColor:{...hd,property:"color"},quoteTextColor:{...gd,property:"color"},selectorTagTextColor:{...Md,property:"color"},selectorPseudoTextColor:{...md,property:"color"},substTextColor:{...yd,property:"color"},sectionTextColor:{...bd,property:"color"},bulletTextColor:{...Nd,property:"color"},emphasisTextColor:{...Id,property:"color"},strongTextColor:{...xd,property:"color"},additionTextColor:{...jd,property:"color"},additionBgColor:{...jd,property:"background-color"},deletionTextColor:{...Td,property:"color"},deletionBgColor:{...Td,property:"background-color"},charEscapeTextColor:{...Dd,property:"color"},linkTextColor:{...vd,property:"color"},paramsTextColor:{...zd,property:"color"},propertyTextColor:{...Cd,property:"color"},punctuationTextColor:{...Sd,property:"color"},tagTextColor:{...wd,property:"color"},copyButtonSize:[{...Vl,property:"width"},{...Vl,property:"height"}],copyButtonBorderRadius:{...Vl,property:"border-radius"},copyButtonBorderWidth:{...Vl,property:"border-width"},copyButtonBorderColor:{...Vl,property:"border-color"},copyButtonBgColor:{...Vl,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...Vl,property:"color"}}}),$e,qe)(Ol);customElements.define(kl,Ad);const Ld=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},fd=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML.replace(/"/g,""")},Ed=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",kd=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${fd(t)}</descope-code-snippet>`,Od=t=>`<div class="row-details__value text" title="${fd(t)}">${fd(t)}</div>`,Vd=t=>kd(JSON.stringify(t,null,2),"json"),Wd=t=>{const e=Ed(t);return"object"===e?Vd(t):"xml"===e?(t=>kd(t,"xml"))(t):"array"===e?t.some(t=>"object"===Ed(t))?Vd(t):Od(t.join(",\n")):Od(t)},Rd=ne("grid"),{host:Ud,headerRow:Yd,headerRowCell:Qd,contentRow:Pd,firstRow:Bd,sortIndicators:Zd,activeSortIndicator:Fd,selectedRow:Gd,rowSeparator:Hd,resizeHandle:Jd,toggleDetailsPanelButton:$d,toggleDetailsPanelButtonOpened:qd,toggleDetailsPanelButtonClosed:_d,detailsPanel:Xd,detailsPanelLabels:Kd,selectedRowCell:tc,detailsPanelContent:ec}={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"}},ic=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Yd},{...Pd}],fontSize:[{...Yd},{...Pd}],fontWeight:{...Pd},valueTextColor:{...Pd,property:"color"},backgroundColor:[{...Ud,property:"background-color"},{...Pd,property:"background-color"}],sortIndicatorsColor:{...Zd,property:"color"},activeSortIndicator:{...Fd,property:"color"},borderColor:{...Ud,property:"border-color"},borderWidth:{...Ud,property:"border-width"},borderStyle:{...Ud,property:"border-style"},borderRadius:{...Ud,property:"border-radius"},selectedBackgroundColor:[{...Gd,property:"background-color"},{...tc,property:"background-color"}],headerRowTextColor:{...Qd,property:"color"},separatorColor:[{...Bd,property:"border-bottom-color"},{...Hd,property:"border-top-color"}],resizeHandleColor:{...Jd,property:"background-color"},hostDirection:{...Ud,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...$d,property:"width"},{...$d,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...qd,property:"color"},toggleDetailsPanelButtonClosedColor:{..._d,property:"color"},toggleDetailsPanelButtonCursor:{...$d,property:"cursor"},detailsPanelBackgroundColor:{...Xd,property:"background-color"},detailsPanelBorderTopColor:{...Xd,property:"border-top-color"},detailsPanelLabelsColor:{...Kd,property:"color"},detailsPanelLabelsFontSize:{...Kd,property:"font-size"},detailsPanelItemsGap:{...ec,property:"grid-gap"},detailsPanelPadding:{...ec,property:"padding"}}}),$e,qe,t=>class extends t{#Kt;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{};const t=this.baseElement._updateDetailsCellHeight;this.baseElement._updateDetailsCellHeight=e=>{e&&t.call(this.baseElement,e)},this.baseElement.rowDetailsRenderer=this.#te.bind(this),this.baseElement.addEventListener("wheel",t=>{t.target.closest("descope-code-snippet")&&t.stopPropagation()},!0)}#te=async(t,e,i)=>{t.addEventListener("mousedown",t=>t.stopImmediatePropagation(),!0);const o=this.getRowDetailsTemplate(i.item);t.innerHTML="",t.append(o.content.cloneNode(!0))};getRowDetailsTemplate(t){const e=this.#Kt.reduce((t,{path:e,header:i})=>e&&i?{...t,[e]:i}:t,{}),i=this.rowDetailsRenderer?.(t,e)??((t,e)=>`\n <div class="row-details">\n ${Object.entries(t).map(([t,i])=>{const o=fd(e[t]||t.replace(/([A-Z])/g," $1").trim().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "));return(t=>{const e=Ed(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===Ed(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Wd(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Wd(i)}\n </div>`}).join("\n")}\n</div>\n `)(t,e);switch(!0){case i instanceof HTMLTemplateElement:return i;case"string"==typeof i:return Object.assign(document.createElement("template"),{innerHTML:i});default:throw new Error("rowDetailsRenderer should return a string or a template")}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",t=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"columns"===t&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#Kt=Array.from(this.children).map(t=>({path:t.getAttribute("path"),header:t.getAttribute("header"),type:t.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce((e,i)=>{const o=t.getAttribute(i);return o&&(e[i]=o),e},{})}))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const t=JSON.parse(this.columnsAttr);Ld(t)&&(this.columns=t)}catch(t){console.error('could not parse data string from attribute "columns" -',t.message)}}#ee=({path:t,header:e,type:i,attrs:o})=>{const n=`descope-grid-${i}-column`;return`<${n} header="${e}" path="${t}" ${Object.entries(o).map(([t,e])=>`${t}="${e}"`).join(" ")}></${n}>`};get renderColumn(){return this.#ee}set renderColumn(t){this.#ee=t,this.renderColumns()}getColumnsTemplate(){return this.#Kt?.reduce?.((t,e)=>t+(this.renderColumn?.(e||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#te.bind(this)},0)}renderColumns(){const t=this.getColumnsTemplate();t&&(this.reassignRowDetailsRenderer(),this.innerHTML=t)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(t){if(Ld(t)&&this.grid.items!==t&&(this.grid.items=t,this.grid.selectedItems)){const t=new Set(this.grid.items.map(t=>t[this.uniqueColumnId]??t)),e=this.grid.selectedItems.filter(e=>t.has(e[this.uniqueColumnId]??e));this.grid.selectedItems.length!==e.length&&(this.grid.selectedItems=e)}}get columns(){return this.#Kt}set columns(t){this.#Kt=t,this.renderColumns()}get paths(){return this.columns.map(t=>t.path)}get uniqueColumnId(){return this.getAttribute("unique-column-id")}})(oi({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(${ic.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 details.row-details__item {\n padding: 0;\n }\n vaadin-grid details.row-details__item > summary.row-details__label {\n cursor: pointer;\n list-style: revert;\n display: revert;\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 overflow-x: auto;\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:Rd}));customElements.define(Rd,ic);const oc=ne("modal"),nc=["opened"],rc=qt(Je({mappings:{overlayBackdropColor:{property:()=>rc.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>rc.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>rc.cssVarList.overlay.shadow},overlayWidth:{property:()=>rc.cssVarList.overlay.width},overlayBorderWidth:{property:()=>rc.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>rc.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>rc.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>rc.cssVarList.overlay.borderRadius}}}),ui({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"}],backdropColor:{selector:()=>"::part(backdrop)",property:"background-color"},borderStyle:{selector:()=>"::part(content)",property:"border-style"},borderWidth:{selector:()=>"::part(content)",property:"border-width"},borderColor:{selector:()=>"::part(content)",property:"border-color"},borderRadius:{selector:()=>"::part(content)",property:"border-radius "},width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened","style"]}}),$e,qe,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],nc)}get opened(){return"true"===this.getAttribute("opened")}get closeOnOutsideClick(){return"true"===this.getAttribute("close-on-outside-click")}handleOpened(){this.opened?this.style.display="":this.style.display="none"}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"opened"===t&&this.handleOpened()}init(){super.init?.(),this.style.display="none",setTimeout(()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#it(),se(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),O("\n :host {\n display: flex!important;\n }\n ",this.baseElement)},t._detachOverlay=()=>{this.baseElement.style.display="none"},t._enterModalState=()=>{},t.close=()=>!1,t.addEventListener("click",e=>{if(!this.closeOnOutsideClick||!this.opened)return;const i=t.shadowRoot?.querySelector('[part="overlay"]');i&&!e.composedPath().includes(i)&&this.removeAttribute("opened")})}})(oi({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:oc}));customElements.define(oc,rc);const sc=window.customElements.get("vaadin-notification-container");if(!sc)throw new Error("could not get vaadin-notification-container class");customElements.define(ne("notification-container"),class extends sc{});const ac=ne("notification-card"),lc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},dc=qt(Je({mappings:{hostMinWidth:{selector:lc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:lc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:lc.content,property:"border-width"},borderColor:{selector:lc.content,property:"border-color"},borderStyle:{selector:lc.content,property:"border-style"},borderRadius:[{selector:lc.content,property:"border-radius"},{selector:lc.overlay,property:"border-radius"}],verticalPadding:[{selector:lc.content,property:"padding-top"},{selector:lc.content,property:"padding-bottom"}],horizontalPadding:[{selector:lc.content,property:"padding-right"},{selector:lc.content,property:"padding-left"}]}}),t=>class extends t{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()}}})(oi({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,dc);const cc=ne("notification"),uc=qt($e,qe,Xe,t=>class e extends t{#ie;constructor(){super();const t=this;Object.defineProperty(this.baseElement,"_container",{get:()=>(e._container||(e._container=document.createElement("descope-notification-container"),e._container.style.position="absolute",document.body.appendChild(e._container)),e._container.isConnected||setTimeout(()=>t.parentNode.appendChild(e._container)),e._container)}),Object.defineProperty(this.baseElement,"_card",{get:()=>t.#ie}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#ie.close()}init(){super.init?.(),this.createCard(),se(this,this.#ie),oe(this.#ie,this,{includeAttrs:["opened"]}),this.baseElement.renderer=t=>{Array.from(this.childNodes).forEach(e=>t.appendChild(e))}}get isContainerEmpty(){return!e._container.children.length}removeContainer(){e._container.remove()}removeNotification(){this.remove(),this.isContainerEmpty&&this.removeContainer()}createCard(){this.#ie=document.createElement("descope-notification-card"),this.#ie.addEventListener("card-closed",this.removeNotification.bind(this))}})(oi({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:cc}));customElements.define(cc,uc);const pc=ne("mappings-field-internal"),hc=Mi({componentName:pc,baseSelector:"div"}),gc=ne("mappings-field"),{host:Mc,helperText:mc,errorMessage:yc,mappingItem:bc,labels:Nc,labelsText:Ic,valueLabel:xc,attrLabel:jc,separator:Tc,labelsContainer:Dc}={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"]'}},vc=qt(Je({mappings:{hostWidth:{...Mc,property:"width"},hostDirection:{...Mc,property:"direction"},fontSize:[{},Mc,{...Tc,property:"margin-top"}],fontFamily:[mc,yc,Nc],separatorFontSize:{...Tc,property:"font-size"},labelsFontSize:{...Ic,property:"font-size"},labelsLineHeight:[{...Ic,property:"line-height"},{...Nc,property:"line-height"}],labelTextColor:[{...Nc,property:ki.cssVarList.textColor},{...Tc,property:"color"}],itemMarginBottom:{...bc,property:"margin-bottom"},valueLabelMinWidth:{...xc,property:"min-width"},attrLabelMinWidth:{...jc,property:"min-width"},labelsMarginBottom:{...Dc,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),$e,ci({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),qe,t=>class extends t{get defaultValues(){const t=this.getAttribute("default-values");if(t)try{return JSON.parse(t)}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){const t=this.defaultValues;Object.keys(t).length>0&&(this.inputElement.value=t)}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${pc}\n tabindex="-1"\n ></${pc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(pc),se(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"]}),oe(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(oi({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(${vc.cssVarList.separatorWidth}) 1fr var(${vc.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 ${ki.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(${vc.cssVarList.separatorWidth}) 1fr var(${vc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:gc}));customElements.define(pc,class extends hc{#oe;static get observedAttributes(){return[].concat(hc.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(t){try{return t.every(t=>"object"==typeof t&&!Array.isArray(t)&&1===Object.getOwnPropertyNames(t).length&&"string"==typeof t[Object.keys(t)[0]]&&""!==t[Object.keys(t)[0]].trim())}catch(t){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(t){const e=document.createElement("descope-mapping-item");return e.setAttribute("bordered","true"),this.mappingsContainerEle.appendChild(e),se(this,e,{includeAttrs:["size","full-width","separator","options","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),setTimeout(()=>{this.setCustomValidity(""),e.addEventListener("mapping-item-removed",()=>{e===this.#oe&&(this.resetInvalidIndication(),this.#oe=void 0),e.remove(),this.setCustomValidity("")}),this.dispatchEvent(new CustomEvent("mapping-item-added",{bubbles:!0,composed:!0})),t&&e.focus()},0),e}get items(){return Array.from(this.mappingsContainerEle.querySelectorAll("descope-mapping-item"))}get value(){return this.items.reduce((t,e)=>e.value?[...t,e.value]:t,[])}set value(t){if(!this.isValidDataType(t))return void console.error("received invalid value to set - should be an array of objects with one key-value pair");const e=this.items;if(e.length>t.length)for(let i=t.length;i<e.length;i++)this.mappingsContainerEle.removeChild(e[i]);t.forEach((t,i)=>{const o=e[i];if(o)o.value=t;else{const e=this.addNewMappingItem(!1);setTimeout(()=>{e.value=t},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 t=this.querySelector("descope-button");t.onclick=()=>{this.addNewMappingItem(!0)},se(this,t,{includeAttrs:["disabled"]})}#ne(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",t=>{t.isTrusted&&(this.#oe||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#oe)&&this.#oe?.checkValidity()&&(this.resetInvalidIndication(),this.#oe.removeAttribute("invalid"),this.#oe=void 0)}),ee(this.mappingsContainerEle,this.#ne.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const t=this.items.find(t=>!t.checkValidity());return t?t.validity:{}}#re(t){t&&(this.#oe=this.items.find(t=>!t.checkValidity()),this.#oe?.reportValidity(),this.#oe?.setAttribute("invalid","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"label-value"!==t&&"label-attr"!==t||this.initLabels(),"button-label"===t&&this.initAddButton(),"invalid"===t&&this.#re("true"===i),"readonly"===t&&this.toggleAttribute("inert","true"===i)}});const zc=ne("mapping-item"),Cc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Sc=Mi({componentName:zc,baseSelector:"div"});customElements.define(zc,class extends Sc{static get observedAttributes(){return[].concat(Sc.observedAttributes||[],Cc,["separator","options","invalid","disabled"])}get separator(){return this.getAttribute("separator")||"map to"}get value(){const t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{[t]:e}:null}set value(t){if(1!==Object.entries(t).length)return void console.error("descope-mapping item expected expects only one key-value pair in the value but received: ",t);const[e,i]=Object.entries(t)[0];this.valueInput.value=i,this.attributeInput.value=e,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`,O("\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"),se(this,this.valueInput,{includeAttrs:Cc}),se(this,this.attributeInput,{includeAttrs:[...Cc,"options"],mapAttrs:{options:"data"}}),se(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 t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{}:{badInput:!0}}reportValidity(){this.inputs.forEach(t=>t.reportValidity())}focus(){(this.checkValidity()||!this.valueInput.checkValidity()?this.valueInput:this.attributeInput).focus()}handleSeparatorChange(){this.shadowRoot.querySelector(".separator").textContent=this.separator}#se(t){"true"===t&&(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(t,e,i){super.attributeChangedCallback?.(t,e,i),"separator"===t&&this.handleSeparatorChange(),"invalid"===t&&this.#se(i)}}),customElements.define(gc,vc);const wc=f("badge");class Ac extends(jt({componentName:wc,baseSelector:":host > div"})){static get observedAttributes(){return["data-attachment-size","shrink-to-indicator-threshold"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t",O("\n :host {\n display: inline-flex;\n }\n :host > div {\n position: relative;\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ",this)}get shrinkToIndicatorThreshold(){return this.getAttribute("shrink-to-indicator-threshold")||65}#ae(t){this.toggleAttribute("shrink-to-indicator",parseFloat(t)<this.shrinkToIndicatorThreshold)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"data-attachment-size"===t&&e!==i&&this.#ae(i)}}const Lc=T(Mt({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostHeight:[{selector:()=>":host",property:"height"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},lineHeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{},boxShadow:{},textIndent:{}}}),mt,yt)(Ac);var fc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const Ec=ne("user-attribute");class kc extends(ei({componentName:Ec,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="sm" data-id="copy-btn" variant="link" mode="primary">\n <slot name="copy-icon"></slot>\n <descope-icon class="check-icon" src="${fc}" src-dark="${fc}"></descope-icon>\n </descope-button>\n <descope-button size="sm" data-id="delete-btn" variant="link" mode="primary">\n <slot name="delete-icon"></slot>\n </descope-button>\n <descope-button size="sm" data-id="edit-btn" variant="link" mode="primary">\n <slot name="edit-icon"></slot>\n </descope-button>\n </div>\n </div>\n </div>\n\t\t`,O(`\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n container-type: inline-size;\n\t\t\t\t}\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n ::slotted(*) {\n display: flex;\n align-items: center;\n justify-content: 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 flex-shrink: 0;\n }\n\n slot[name="edit-icon"],\n slot[name="delete-icon"],\n slot[name="copy-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n }\n\n descope-button[data-id="copy-btn"].hidden {\n display: none;\n }\n\n descope-button[data-id="copy-btn"] .check-icon {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied slot[name="copy-icon"] {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied .check-icon {\n display: inline-flex;\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 width: 0;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${ki.cssVarList.textColor});\n }\n\n :host([readonly="true"]) descope-button:not([data-id="copy-btn"]) {\n visibility: hidden;\n width: 0;\n }\n `,this),this.copyButton=this.shadowRoot.querySelector('descope-button[data-id="copy-btn"]'),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 t=this.value||this.placeholder,e=this.value?"primary":"secondary";this.valueText.innerText=t,this.valueText.setAttribute("title",t),this.valueText.setAttribute("mode",e)}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)}updateButtonLabel(t,e){let i=t.querySelector("span.btn-label");e?(i||(i=document.createElement("span"),i.classList.add("btn-label"),t.appendChild(i)),i.innerText=e):i?.remove()}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")||""}get editButtonLabel(){return this.getAttribute("edit-button-label")||""}get deleteButtonLabel(){return this.getAttribute("delete-button-label")||""}get isDeleteHidden(){return"true"===this.getAttribute("hide-delete")}get isCopyEnabled(){return"true"===this.getAttribute("show-copy")}get copyButtonLabel(){return this.getAttribute("copy-button-label")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.updateButtonLabel(this.editButton,this.editButtonLabel),this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel),this.updateButtonLabel(this.copyButton,this.copyButtonLabel),this.handleDeleteButtonVisibility(),this.handleCopyButtonState(),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}))),this.copyButton.addEventListener("click",()=>this.#Xt()),this.setDefaultChildren()}#Xt(){this.value&&!this.isDraggable&&navigator.clipboard&&navigator.clipboard.writeText(this.value).then(()=>{this.copyButton.classList.add("copied"),setTimeout(()=>this.copyButton.classList.remove("copied"),2e3)}).catch(()=>{})}handleCopyButtonState(){this.copyButton.classList.toggle("hidden",!this.isCopyEnabled),this.value?this.copyButton.removeAttribute("disabled"):this.copyButton.setAttribute("disabled","true")}#le(t,e){const i=document.createElement("descope-icon");i.setAttribute("src",t),i.setAttribute("src-dark",t),i.setAttribute("slot",e),this.appendChild(i)}setDefaultChildren(){this.querySelector('[slot="delete-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==","delete-icon"),this.querySelector('[slot="edit-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAu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IDIuNjI0MTVaTTExLjkyMDIgMS44NTYxNUwxMy4yODgyIDAuMzIwMTQ5QzEzLjY0ODIgLTAuMDg3ODUxNiAxNC4yNzIyIC0wLjExMTg1MiAxNC42ODAyIDAuMjcyMTQ5QzE1LjA4ODIgMC42MzIxNDkgMTUuMTEyMiAxLjI4MDE1IDE0Ljc1MjIgMS42ODgxNUwxMy4yNjQyIDMuMzY4MTVMMTEuOTIwMiAxLjg1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPgo=","edit-icon"),this.setDefaultCopyIcon()}setDefaultCopyIcon(){this.isCopyEnabled&&!this.querySelector('[slot="copy-icon"]')&&this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTYgMUg0Yy0xLjEgMC0yIC45LTIgMnYxNGgyVjNoMTJWMXptMyA0SDhjLTEuMSAwLTIgLjktMiAydjE0YzAgMS4xLjkgMiAyIDJoMTFjMS4xIDAgMi0uOSAyLTJWN2MwLTEuMS0uOS0yLTItMnptMCAxNkg4VjdoMTF2MTR6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==","copy-icon")}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text","edit-button-label","delete-button-label","copy-button-label","hide-delete","show-copy"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value||this.isDeleteHidden)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"value"===t||"placeholder"===t?this.onValueOrPlaceholderChange():"required"===t?this.onIsRequiredChange():"badge-label"===t?this.onBadgeLabelChange():"badge-tooltip-text"===t?this.onBadgeTooltipTextChange():"edit-button-label"===t?this.updateButtonLabel(this.editButton,this.editButtonLabel):"delete-button-label"===t?this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel):"copy-button-label"===t?this.updateButtonLabel(this.copyButton,this.copyButtonLabel):"show-copy"===t&&this.setDefaultCopyIcon(),"value"!==t&&"required"!==t&&"hide-delete"!==t||this.handleDeleteButtonVisibility(),"value"!==t&&"show-copy"!==t||this.handleCopyButtonState())}}const{host:Oc,textFields:Vc,buttons:Wc,badge:Rc,labelText:Uc,contentWrapper:Yc}={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"}},Qc=qt(Je({mappings:{hostWidth:{...Oc,property:"width"},hostMinWidth:{...Oc,property:"min-width"},hostMaxWidth:{...Oc,property:"max-width"},hostDirection:[{...Oc,property:"direction"},{...Vc,property:ki.cssVarList.hostDirection},{...Wc,property:Uo.cssVarList.hostDirection},{...Rc,property:Lc.cssVarList.hostDirection}],labelMinWidth:{...Uc,property:"min-width"},contentMinWidth:{...Yc,property:"min-width"},badgeMaxWidth:{...Rc,property:"max-width"},itemsGap:[{property:"gap"},{...Yc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:Eo.cssVarList.fill},{selector:()=>".check-icon",property:Eo.cssVarList.fill}]}}),$e,qe)(kc);customElements.define(wc,Lc),customElements.define(Ec,Qc);const Pc=ne("user-auth-method");class Bc extends(ei({componentName:Pc,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',O('\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"]:not(:empty) {\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(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.innerText=e):i&&t.removeChild(i)}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(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"fulfilled"===t?this.onFulfilledChange():"button-label"===t?this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel):"fulfilled-button-label"===t?this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel):"fulfilled-editable"===t&&this.isFulfilled?this.handleFulfilled():"unfulfilled-editable"!==t||this.isFulfilled||this.handleUnfulfilled())}}const{host:Zc,textField:Fc,buttons:Gc,badge:Hc,textWrapper:Jc,methodIconSlot:$c}={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"]:not(:empty)'}},qc=qt(Je({mappings:{hostWidth:{...Zc,property:"width"},hostMinWidth:{...Zc,property:"min-width"},hostMaxWidth:{...Zc,property:"max-width"},hostDirection:[{...Zc,property:"direction"},{...Fc,property:ki.cssVarList.hostDirection},{...Gc,property:Uo.cssVarList.hostDirection},{...Hc,property:Lc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Jc,property:"gap"}],iconSize:[{...$c,property:"width"},{...$c,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:Eo.cssVarList.fill}]}}),$e,qe)(Bc);customElements.define(Pc,qc);const _c=ne("saml-group-mappings-internal"),Xc=Mi({componentName:_c,baseSelector:""}),Kc=ne("saml-group-mappings"),{host:tu,groupInput:eu,errorMessage:iu}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},ou=qt(Je({mappings:{hostWidth:{...tu,property:"width"},hostDirection:{...tu,property:"direction"},groupNameInputMarginBottom:{...eu,property:"margin-bottom"},errorMessageIcon:{...iu,property:"background-image"},errorMessageIconSize:{...iu,property:"background-size"},errorMessageIconPadding:{...iu,property:"padding-inline-start"},errorMessageIconRepeat:{...iu,property:"background-repeat"},errorMessageIconPosition:{...iu,property:"background-position"},errorMessageFontSize:{...iu,property:"font-size"}}}),$e,ci({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),qe,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${_c}\n tabindex="-1"\n ></${_c}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(_c),se(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),oe(this,this.inputElement,{includeAttrs:["invalid"]})}})(oi({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:Kc}));customElements.define(_c,class extends Xc{static get observedAttributes(){return["invalid"].concat(Xc.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(t){t.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",t=>{t.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),se(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),se(this,this.mappingsElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","readonly","disabled","data-errormessage-pattern-mismatch"]}),te(this.mappingsElement,this.handleMappingsInvalidChange.bind(this),{includeAttrs:["invalid"]})}get value(){return{group:this.groupInputElement.value,mappings:this.mappingsElement.value}}set value(t){t?.group&&"string"==typeof t.group&&(this.groupInputElement.value=t.group),Array.isArray(t?.mappings)&&(this.mappingsElement.value=t.mappings)}getValidity(){return this.groupInputElement.checkValidity()?this.mappingsElement.checkValidity()?{}:this.mappingsElement.validity:this.groupInputElement.validity}#de(t){if(t){if(!this.groupInputElement.checkValidity())return void this.groupInputElement.setAttribute("invalid","true");this.mappingsElement.checkValidity()||this.mappingsElement.setAttribute("invalid","true")}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"invalid"===t&&this.#de("true"===i)}}),customElements.define(Kc,ou);const nu=ne("radio-button"),ru=qt(Je({mappings:{cursor:[{},{selector:"label"}],fontSize:[{selector:"label"},{}],labelTextColor:{selector:"label",property:"color"},fontFamily:{selector:"label"},labelFontWeight:{selector:"label",property:"font-weight"},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"}}}),ci({proxyProps:["setSelectionRange"]}),qe,t=>class extends t{constructor(){super(),this.baseElement.checkValidity=()=>{}}init(){this.baseElement.addEventListener("checked-changed",t=>{this.dispatchEvent(new CustomEvent("checked-changed",{detail:t.detail},{bubbles:!0,composed:!0}))}),super.init?.(),ee(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(oi({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:nu})),su=ne("radio-group"),au=qt(Je({mappings:{...Kn,buttonsSpacing:{selector:"::part(group-field)",property:"justify-content"},buttonsRowGap:{selector:"::part(group-field)",property:"row-gap"},buttonsColumnGap:{selector:"::part(group-field)",property:"column-gap"},itemsFontFamily:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${ru.componentName}[checked="true"])`,property:ru.cssVarList.radioBackgroundColor}}}),$e,ci({proxyProps:["setSelectionRange"]}),qe,t=>class extends t{#tt=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#R;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(nu)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===nu),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.#tt?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.inputElement=this.baseElement,this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),this.renderItems(),te(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),se(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),ee(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})}),te(this,()=>{this.items.forEach(t=>{t.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(oi({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 ${Ce("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:su,includeForwardProps:["value"]}));customElements.define(nu,ru),customElements.define(su,au);const lu=()=>!0,du=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,cu=ne("scopes-list"),uu=["checkbox","switch"];class pu extends(ei({componentName:cu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",O("\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"}#ce(){return Array.from(this.shadowRoot.querySelector("div").children)}reportValidity(){this.checkValidity()}checkValidity(){return this.data.every(t=>!t.required||this.value.includes(t.id))}get value(){return this.#ce().filter(t=>t.checked).map(t=>t.getAttribute("data-id"))}set value(t=[]){this.#ce().forEach(e=>{e.checked=t.includes(e.getAttribute("data-id"))})}get variant(){const t=this.getAttribute("variant");return uu.includes(t)?t:uu[0]}}const hu=qt(Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Ai.componentName,property:Ai.cssVarList.hostDirection},{selector:()=>to.componentName,property:to.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${Ai.componentName}[required="true"]`,property:Ai.cssVarList.inputBorderColor},{selector:`${to.componentName}[required="true"]`,property:to.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${Ai.componentName}[required="true"]`,property:Ai.cssVarList.inputValueTextColor},{selector:`${to.componentName}[required="true"]`,property:to.cssVarList.knobColor}]}}),(({itemRenderer:t=du,validateSchema:e=lu,slotName:i,rerenderAttrsList:o=[]})=>n=>class extends n{#R=[];#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.baseElement.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),this.data.forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.baseElement.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),te(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}})({itemRenderer:({id:t,desc:e,required:i=!1},o,n)=>{const r="checkbox"===n.variant?Ai:to;return`\n <${r.componentName}\n bordered="true"\n size=${n.size}\n label="${e}"\n data-id="${t}"\n readonly="${i||n.isReadOnly}"\n required="${i}"\n checked="true"\n ></${r.componentName}>\n`},rerenderAttrsList:["size","variant"]}),$e,qe)(pu),gu=f("list-item"),Mu=T(Mt({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:{}}}),mt,yt,t=>class extends t{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",O("\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)}},t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mousedown",t=>{t.preventDefault(),this.setAttribute("active","true"),window.addEventListener("mouseup",()=>this.removeAttribute("active"),{once:!0})})}})(jt({componentName:gu,baseSelector:"slot"}));customElements.define(gu,Mu);const mu=f("list");class yu extends(jt({componentName:mu,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',O('\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()}#ue(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#pe(){this.items.forEach(t=>{let e=t;e.localName!==Mu.componentName&&(e=t.querySelector(Mu.componentName));const i="tiles"===this.variant?"tile":"row";e?.setAttribute("variant",i)})}init(){super.init?.(),S(this,()=>{this.#ue(),this.#pe(),this.#he()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#he(){this.items.forEach(t=>{this.isReadOnly?t.setAttribute("inert",""):t.removeAttribute("inert")})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("variant"===t?this.#pe():"readonly"===t&&this.#he())}}const bu=T(Mt({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"},maxRowItems:{property:"max-row-items"},itemsHorizontalAlign:{selector:()=>"::slotted(*)",property:"justify-self"},emptyStateTextColor:{selector:()=>'slot[name="empty-state"]',property:"color"},emptyStateTextFontFamily:{selector:()=>'slot[name="empty-state"]',property:"font-family"},emptyStateVerticalPadding:[{selector:()=>'slot[name="empty-state"]',property:"padding-top"},{selector:()=>'slot[name="empty-state"]',property:"padding-bottom"}]}}),mt,yt)(yu);customElements.define(mu,bu),customElements.define(cu,hu);const Nu=ne("third-party-app-logo");class Iu extends(ei({componentName:Nu,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',O('\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 xu=">.company-logo-wrapper",ju=">.third-party-app-logo-wrapper",Tu=qt(Je({mappings:{logoMaxHeight:[{selector:xu,property:"height"},{selector:ju,property:"height"}],logoMaxWidth:[{selector:xu,property:"max-width"},{selector:ju,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:Cr.componentName,property:Cr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:Eo.componentName,property:Eo.cssVarList.fill}}}),$e,qe)(Iu);customElements.define(Nu,Tu);const Du=ne("security-questions-setup"),vu=["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"],zu=["count","questions"];class Cu extends(ei({componentName:Du,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",O("\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}#ge(){const t=Array.from({length:this.count}).map((t,e)=>`\n <div class="question-wrapper">\n <descope-combo-box\n data-id="${e}"\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="${e}"\n required="true"\n bordered="true"\n minlength="2"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.comboBoxes.forEach(t=>{t.addEventListener("change",t=>{this.updateRemainingCombosData(t.target),this.getAttachedTextField(t.target).value=""}),t.data=this.data}),this.#Me(vu)}getAttachedTextField(t){const e=`descope-text-field[data-id="${t.getAttribute("data-id")}"]`;return this.baseElement.querySelector(e)}filterData(t){const e=this.data.filter(e=>e.value===t||!this.selectedQuestionIds.includes(e.value));return e}reportValidity(){return this.inputs.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return[...this.comboBoxes,...this.textFields].every(t=>t.checkValidity())}updateRemainingCombosData(t){this.comboBoxes.filter(e=>e!==t).forEach(t=>{t.data=this.filterData(t.value)})}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(Du,"Error parsing questions attribute",t),[]}}get data(){return this.questions.map(({id:t,text:e})=>({value:t,label:e}))}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(t=>t.value)}get value(){return this.comboBoxes.map(t=>({id:t.value,answer:this.getAttachedTextField(t).value}))}set value(t=[]){t.forEach((t,e)=>{const i=this.comboBoxes[e],o=this.getAttachedTextField(i);i.value=t.id,o.value=t.answer})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#Me(t){const e={question:this.comboBoxes,answer:this.textFields};t.forEach(t=>{const[i,...o]=t.split("-"),n=e[i]||this.inputs,r=e[i]?o.join("-"):t;n.forEach(e=>{this.#me(e,r,this.getAttribute(t))})})}init(){super.init?.(),te(this,()=>{this.#ge()},{includeAttrs:zu}),te(this,this.#Me.bind(this),{includeAttrs:vu})}}const Su=qt(Je({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>zo.componentName,property:zo.cssVarList.hostDirection},{selector:()=>ir.componentName,property:ir.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),$e,qe)(Cu);customElements.define(Du,Su);const wu=ne("security-questions-verify"),Au=["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"],Lu=["question-mode"],fu={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},Eu=[...Au,...Lu],ku=["questions"];class Ou extends(ei({componentName:wu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",O("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#ge(){const t=this.questions.map(({id:t,text:e})=>`\n <div class="question-wrapper">\n <descope-text\n data-id="${t}"\n >${e}</descope-text>\n\n <descope-text-field\n data-id="${t}"\n required="true"\n bordered="true"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.#Me(Eu),this.texts.forEach(t=>{const e=this.textFields.find(e=>e.getAttribute("data-id")===t.getAttribute("data-id"));e&&(t.onclick=e.focus.bind(e))})}reportValidity(){return this.textFields.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return this.textFields.every(t=>t.checkValidity())}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(wu,"Error parsing questions attribute",t),[]}}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(t=>({id:t.getAttribute("data-id"),answer:t.value}))}set value(t=[]){t.forEach(({id:t,answer:e})=>{const i=this.textFields.find(e=>e.getAttribute("data-id")===t);i&&(i.value=e)})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#ye(t){switch(!0){case Au.includes(t):return this.textFields;case Lu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,fu[t]||t,this.getAttribute(t))})})}init(){super.init?.(),te(this,()=>{this.#ge()},{includeAttrs:ku}),te(this,this.#Me.bind(this),{includeAttrs:Eu})}}const Vu=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>ki.componentName,property:ki.cssVarList.hostDirection},{selector:()=>ir.componentName,property:ir.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>ki.componentName,property:ki.cssVarList.textAlign},questionFontSize:{selector:()=>ki.componentName,property:ki.cssVarList.fontSize},questionFontFamily:{selector:()=>ki.componentName,property:ki.cssVarList.fontFamily},questionCursor:{selector:()=>ki.componentName,property:"cursor"},errorMessageIcon:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageFontSize}}}),$e,qe)(Ou);customElements.define(wu,Vu);const Wu="^[\\w\\.\\%\\+\\-']+@(?:[A-Za-z0-9](?:[A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$",Ru="^[\\p{L}\\p{M}\\p{N}._%+'\\-]+@(?:[\\p{L}\\p{M}\\p{N}](?:[\\p{L}\\p{M}\\p{N}\\-]*[\\p{L}\\p{M}\\p{N}])?\\.)+[\\p{L}\\p{M}][\\p{L}\\p{M}\\p{N}\\-]+$",Uu=t=>{const e=(t||"").split(/\s+/).filter(t=>t&&!["username","email","on","off"].includes(t)),i=e.indexOf("webauthn");return e.splice(-1===i?e.length:i,0,"email"),e.join(" ")},Yu=f("email-field"),Qu="email",{host:Pu,label:Bu,placeholder:Zu,requiredIndicator:Fu,inputField:Gu,input:Hu,inputMask:Ju,helperText:$u,errorMessage:qu,disabledPlaceholder:_u,inputDisabled:Xu,inputIcon:Ku,externalInput:tp,externalInputDisabled:ep,externalPlaceholder:ip,externalDisabledPlaceholder:op}={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)"}},np=T(Mt({mappings:{fontSize:[{},Pu],fontFamily:[Bu,Gu,$u,qu],labelFontSize:{...Bu,property:"font-size"},labelFontWeight:{...Bu,property:"font-weight"},inputValueFontWeight:[{...Hu,property:"font-weight"},{...tp,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...ip,property:"font-weight"}],helperTextFontWeight:{...$u,property:"font-weight"},errorMessageFontWeight:{...qu,property:"font-weight"},labelTextColor:[{...Bu,property:"color"},{...Fu,property:"color"},{...Bu,property:"-webkit-text-fill-color"},{...Fu,property:"-webkit-text-fill-color"}],hostWidth:{...Pu,property:"width"},hostMinWidth:{...Pu,property:"min-width"},hostDirection:{...Pu,property:"direction"},inputDirection:{...Hu,property:"direction"},inputBackgroundColor:[{...Gu,property:"background-color"},{...Ju,property:"background-color"}],errorMessageTextColor:{...qu,property:"color"},errorMessageIcon:{...qu,property:"background-image"},errorMessageIconSize:{...qu,property:"background-size"},errorMessageIconPadding:{...qu,property:"padding-inline-start"},errorMessageIconRepeat:{...qu,property:"background-repeat"},errorMessageIconPosition:{...qu,property:"background-position"},errorMessageFontSize:{...qu,property:"font-size"},helperTextColor:{...$u,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Gu,property:"color"},{...Xu,property:"-webkit-text-fill-color"},{...ep,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Hu,property:"caret-color"},{...tp,property:"caret-color"}],labelRequiredIndicator:{...Fu,property:"content"},inputBorderColor:{...Gu,property:"border-color"},inputBorderWidth:{...Gu,property:"border-width"},inputBorderStyle:{...Gu,property:"border-style"},inputBorderRadius:{...Gu,property:"border-radius"},inputHeight:{...Gu,property:"height"},inputHorizontalPadding:[{...Hu,property:"padding-left"},{...Hu,property:"padding-right"},{...tp,property:"padding-left"},{...tp,property:"padding-right"}],inputOutlineColor:{...Gu,property:"outline-color"},inputOutlineStyle:{...Gu,property:"outline-style"},inputOutlineWidth:{...Gu,property:"outline-width"},inputOutlineOffset:{...Gu,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Hu,property:"text-align"},{...tp,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...ip,property:"color"},{...Zu,property:"color"},{..._u,property:"-webkit-text-fill-color"},{...op,property:"-webkit-text-fill-color"}],labelPosition:{...Bu,property:"position"},labelTopPosition:{...Bu,property:"top"},labelHorizontalPosition:[{...Bu,property:"left"},{...Bu,property:"right"}],inputTransformY:{...Bu,property:"transform"},inputTransition:{...Bu,property:"transition"},marginInlineStart:{...Bu,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...ip,property:"opacity"}],inputVerticalAlignment:[{...Gu,property:"align-items"},{...tp,property:"align-items"}],valueInputHeight:[{...Hu,property:"height"},{...tp,property:"height"}],valueInputMarginBottom:[{...Hu,property:"margin-bottom"},{...tp,property:"margin-bottom"}],inputIconOffset:[{...Ku,property:"margin-right"},{...Ku,property:"margin-left"}],inputIconSize:{...Ku,property:"font-size"},inputIconColor:{...Ku,property:"color"},inputTextSecurity:[{...Hu,property:"-webkit-text-security"},{...Hu,property:"text-security"},{...tp,property:"-webkit-text-security"},{...tp,property:"text-security"}]}}),mt,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),A(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.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",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),Vt({proxyProps:["value","selectionStart"],useProxyTargets:!0}),yt,t=>class extends t{get acceptsUnicode(){return"false"!==this.getAttribute("accept-unicode")}get validatesFormat(){return"false"!==this.getAttribute("validate-format")}init(){super.init?.(),this.baseElement.setAttribute("pattern",Wu),this.getAttribute("autocomplete")||this.setAttribute("autocomplete","username"),this.createExternalInput(),[this.inputElement,this.externalInput].filter(Boolean).forEach(t=>{t.addEventListener("change",this.stripSurroundingWhitespace)}),this.acceptsUnicode&&this.enableUnicode(),this.validatesFormat||this.disableFormatValidation(),this.emailVerification&&this.enableEmailVerification()}get emailVerification(){return"true"===this.getAttribute("email-verification")}enableEmailVerification(){const{baseElement:t}=this,e=t._delegateAttribute.bind(t);t._delegateAttribute=(t,i)=>e(t,"autocomplete"===t?Uu(i):i),t._delegateAttribute("autocomplete",t.autocomplete),this.externalInput?.setAttribute("autocomplete",Uu(this.getAttribute("autocomplete")))}enableUnicode(){this.baseElement.setAttribute("pattern",Ru),this.useTextType()}disableFormatValidation(){this.baseElement.removeAttribute("pattern"),this.useTextType()}useTextType(){this.baseElement._setType("text"),this.externalInput&&(this.externalInput.type="text"),this.getAttribute("inputmode")||this.setAttribute("inputmode",Qu),this.externalInput?.setAttribute("inputmode",Qu)}stripSurroundingWhitespace=t=>{const e=t.target.value.trim();e!==t.target.value&&(this.value=e,this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}})(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(${np.cssVarList.inputOutlineWidth}) + var(${np.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${it("vaadin-email-field")}\n\t\t\t${_(np.cssVarList)}\n\t\t\t${et("vaadin-email-field",np.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:Yu}));customElements.define(Yu,np);const rp=/[^\d\s+\-()]/,sp=ne("hybrid-field"),ap={shared:["label","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:["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","phone-input-type","data-errormessage-value-missing-phone"],inputBox:["restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","phone-input-type","data-errormessage-value-missing-phone"]}},lp={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"}},dp="descope-phone-field",cp=ei({componentName:sp,baseSelector:"div"}),up=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({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:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIcon},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconSize},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconPadding},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconRepeat},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconPosition},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageFontSize},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.labelFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.inputValueFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.inputPlaceholderFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.helperTextFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageFontWeight}]}}),$e,qe)(class extends cp{#be=!1;#Ne;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" phone-input-type="text"></descope-phone-field>\n <descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>\n </div>\n\t\t`,O("\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 t=this.phoneCountryCodeInput.countryCodes?.[0]||"";return this.getAttribute("default-code")||t}get activeInputEle(){return this.activeInput===this.emailInput?this.emailInputEle:this.phoneVariant.phoneNumberInputEle}get value(){return this.activeInput?.value||""}set value(t){this.handleActiveInput(t),setTimeout(()=>{this.activeInput.value=t})}async init(){super.init?.(),this.initInputs(),this.updateAttrs(),this.toggleInputVisibility(),await this.waitForInputs(),this.initInputEles(),this.overrideEmailInputType(),this.overrideEmailSetAttribute()}waitForInputs(){return new Promise(t=>{const e=setInterval(()=>{this.emailInputEle&&(clearInterval(e),t())})})}initInputs(){this.emailInput=this.shadowRoot.querySelector("descope-email-field"),this.phoneCountryCodeInput=this.shadowRoot.querySelector(dp),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(t=>{t.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 t=this.emailInput.setAttribute.bind(this.emailInputEle);this.emailInputEle.setAttribute=(e,i)=>("type"!==e||"email"!==i||!this.emailInput.hasAttribute("focused"))&&t(e,i)}updateAttrs(){se(this,this.emailInput,{includeAttrs:ap.email,mapAttrs:lp.email}),se(this,this.phoneCountryCodeInput,{includeAttrs:ap.phone.countryCode,mapAttrs:lp.phone}),se(this,this.phoneInputBoxInput,{includeAttrs:ap.phone.inputBox,mapAttrs:lp.phone}),this.inputs.forEach(t=>se(this,t,{includeAttrs:ap.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#Ne=this.activeInputEle.selectionStart,this.handleActiveInput(this.activeInputEle.value||this.activeInput.value)}handleActiveInput(t){const e=(t=>!!t&&!rp.test(t))(t)?this.phoneVariant:this.emailInput;this.activeInput!==e&&this.setActiveInput(e)}setActiveInput(t){const e=this.activeInputEle.value||this.activeInput.value;this.activeInput=t,this.setActiveInputValue(e),this.#be&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{const t=this.activeInputEle;t.focus();try{t.setSelectionRange?.(this.#Ne,this.#Ne)}catch{}})}#Ie(){const t=this.getAttribute("default-code"),e=t&&Hs.CountryCodes.find(e=>e.code===t);return e?.dialCode||Hs.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===dp){const t=this.phoneCountryCodeInput.countryCodeItems||this.#Ie();this.activeInput.value=`${t}-${e}`}else this.activeInput.value=e}toggleInputVisibility(){this.inputs.forEach(t=>{t!==this.activeInput?t.classList.add("hidden"):t.classList.remove("hidden")})}reportValidity(){this.#be=!0;const t=this.activeInputEle,e=t.type;return t.setAttribute("type","text"),setTimeout(()=>{t.setSelectionRange?.(t.value.length,t.value.length),t.setAttribute("type",e)}),this.activeInput.reportValidity()}checkValidity(){return this.activeInput.checkValidity()}});customElements.define(sp,up);const pp=ne("alert");class hp extends(ei({componentName:pp,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 ',O('\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)),A(this.textComp,this,{includeAttrs:["empty"]}),S(this,this.handleChildrenChange.bind(this)),se(this,this.textComp,{includeAttrs:["variant","full-width","link-target-blank"]})}handleChildrenChange(){this.textComp.textContent=this.textContent}handleSlotChange(){const t=this.slotEle.assignedNodes({flatten:!0});t.length&&(this.textComp.textContent=t[0]?.textContent||"")}}const{icon:gp}={icon:{selector:()=>".icon"}},Mp=qt(Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:Ht.componentName,property:Ht.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:Ht.componentName,property:Ht.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:Ht.componentName,property:Ht.cssVarList.textAlign}],icon:[{...gp,property:"content"},{...gp,property:"display",fallback:"none"}],iconSize:[{...gp,property:"width"},{...gp,property:"height"}]}}),Je({componentNameOverride:ne("enriched-text")}),Je({componentNameOverride:ne("text")}),$e,qe)(hp);customElements.define(pp,Mp);const mp=ne("hcaptcha"),yp=["enabled","site-key"],bp=Mi({componentName:mp,baseSelector:":host > div"}),Np=qt(Je({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"}]}}),$e,qe)(class extends bp{static get observedAttributes(){return yp.concat(bp.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"enabled"===t&&this.toggleCaptchaEles("true"===i)}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',O("\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?.(),S(this,this.updatePreview.bind(this)),this.inputElement.getValidity=null,this.inputElement.checkValidity=null}toggleCaptchaEles(t){t?(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(mp,Np);const Ip=(wp={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(wp).reduce((t,e)=>{const i=wp[e];return Object.assign(t,{[e]:Ne(i)})},{})),xp={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"}},jp=fe({fonts:xp}).fonts,Tp={colors:Ip,typography:{h1:{font:jp.font1.family,weight:"900",size:"48px"},h2:{font:jp.font1.family,weight:"800",size:"38px"},h3:{font:jp.font1.family,weight:"600",size:"28px"},subtitle1:{font:jp.font2.family,weight:"500",size:"22px"},subtitle2:{font:jp.font2.family,weight:"400",size:"20px"},body1:{font:jp.font1.family,weight:"400",size:"16px"},body2:{font:jp.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:xp,direction:"ltr"},Dp=(t=>Ae(t,[],t=>we({},t,Se(t))))(Tp),vp=(t=>Object.keys(t).reduce((e,i)=>{const o=t[i];return Object.assign(e,{[i]:q(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"}}),zp={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"}},Cp=st({fonts:zp}).fonts,Sp={colors:vp,typography:{h1:{font:Cp.font1.family,weight:"900",size:"48px"},h2:{font:Cp.font1.family,weight:"800",size:"38px"},h3:{font:Cp.font1.family,weight:"600",size:"28px"},subtitle1:{font:Cp.font2.family,weight:"500",size:"22px"},subtitle2:{font:Cp.font2.family,weight:"400",size:"20px"},body1:{font:Cp.font1.family,weight:"400",size:"16px"},body2:{font:Cp.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:zp,direction:"ltr"};var wp;(t=>{rt(t,[],t=>nt({},t,ot(t)))})(Sp);const Ap=st(Sp),Lp=Uo.cssVarList,fp={primary:Ap.colors.primary,secondary:Ap.colors.secondary,success:Ap.colors.success,error:Ap.colors.error,surface:Ap.colors.surface},[Ep,kp,Op]=lt({mode:fp},ko),Vp={...Ep,[Lp.fontFamily]:Ap.fonts.font1.family,[Lp.fontWeight]:"400",[Lp.cursor]:"pointer",[Lp.hostHeight]:"3em",[Lp.hostWidth]:"auto",[Lp.hostDirection]:Ap.direction,[Lp.borderRadius]:Ap.radius.sm,[Lp.borderWidth]:Ap.border.xs,[Lp.borderStyle]:"solid",[Lp.borderColor]:"transparent",[Lp.labelSpacing]:"0.25em",[Lp.textAlign]:"center",textAlign:{right:{[Lp.textAlign]:"right"},left:{[Lp.textAlign]:"left"},center:{[Lp.textAlign]:"center"}},[Lp.verticalPadding]:"1em",[Lp.horizontalPadding]:"0.875em",[Lp.outlineWidth]:Sp.border.sm,[Lp.outlineOffset]:"0px",[Lp.outlineStyle]:"solid",[Lp.outlineColor]:"transparent",[Lp.iconSize]:"1.5em",size:{xs:{[Lp.fontSize]:"12px"},sm:{[Lp.fontSize]:"14px"},md:{[Lp.fontSize]:"16px"},lg:{[Lp.fontSize]:"18px"}},_square:{[Lp.hostHeight]:"3em",[Lp.hostWidth]:"3em",[Lp.verticalPadding]:"0"},_fullWidth:{[Lp.hostWidth]:"100%"},_loading:{[Lp.cursor]:"wait",[Lp.labelTextColor]:kp.main},_disabled:{[Op.main]:Ap.colors.surface.light,[Op.dark]:Ap.colors.surface.dark,[Op.light]:Ap.colors.surface.light,[Op.contrast]:Ap.colors.surface.main,[Lp.iconColor]:Ap.colors.surface.main},variant:{contained:{[Lp.labelTextColor]:kp.contrast,[Lp.backgroundColor]:kp.main,_hover:{[Lp.backgroundColor]:kp.dark,_loading:{[Lp.backgroundColor]:kp.main}},_active:{[Lp.backgroundColor]:kp.main}},outline:{[Lp.labelTextColor]:kp.main,[Lp.borderColor]:kp.main,_hover:{[Lp.labelTextColor]:kp.dark,[Lp.borderColor]:kp.dark},_active:{[Lp.labelTextColor]:kp.main,[Lp.borderColor]:kp.main},_disabled:{[Lp.iconColor]:kp.main}},link:{[Lp.labelTextColor]:kp.main,[Lp.horizontalPadding]:"0.125em",_hover:{[Lp.labelTextColor]:kp.dark,[Lp.labelTextDecoration]:"underline"},_active:{[Lp.labelTextColor]:kp.main},_disabled:{[Lp.iconColor]:kp.main}}},_focused:{[Lp.outlineColor]:kp.light}},Wp={...Lp,...Op};var Rp=Object.freeze({__proto__:null,default:Vp,vars:Wp});const Up=st(Sp),Yp=ki.cssVarList,Qp={[Yp.hostDirection]:Up.direction,[Yp.textLineHeight]:"1.35em",[Yp.textAlign]:"start",[Yp.textColor]:Up.colors.surface.dark,variant:{h1:{[Yp.fontSize]:Up.typography.h1.size,[Yp.fontWeight]:Up.typography.h1.weight,[Yp.fontFamily]:Up.typography.h1.font},h2:{[Yp.fontSize]:Up.typography.h2.size,[Yp.fontWeight]:Up.typography.h2.weight,[Yp.fontFamily]:Up.typography.h2.font},h3:{[Yp.fontSize]:Up.typography.h3.size,[Yp.fontWeight]:Up.typography.h3.weight,[Yp.fontFamily]:Up.typography.h3.font},subtitle1:{[Yp.fontSize]:Up.typography.subtitle1.size,[Yp.fontWeight]:Up.typography.subtitle1.weight,[Yp.fontFamily]:Up.typography.subtitle1.font},subtitle2:{[Yp.fontSize]:Up.typography.subtitle2.size,[Yp.fontWeight]:Up.typography.subtitle2.weight,[Yp.fontFamily]:Up.typography.subtitle2.font},body1:{[Yp.fontSize]:Up.typography.body1.size,[Yp.fontWeight]:Up.typography.body1.weight,[Yp.fontFamily]:Up.typography.body1.font},body2:{[Yp.fontSize]:Up.typography.body2.size,[Yp.fontWeight]:Up.typography.body2.weight,[Yp.fontFamily]:Up.typography.body2.font}},mode:{primary:{[Yp.textColor]:Up.colors.surface.contrast},secondary:{[Yp.textColor]:Up.colors.surface.dark},error:{[Yp.textColor]:Up.colors.error.main},"error-dark":{[Yp.textColor]:Up.colors.error.dark},success:{[Yp.textColor]:Up.colors.success.main},"success-dark":{[Yp.textColor]:Up.colors.success.dark},warning:{[Yp.textColor]:Up.colors.warning.main},"warning-dark":{[Yp.textColor]:Up.colors.warning.dark}},textAlign:{right:{[Yp.textAlign]:"right"},left:{[Yp.textAlign]:"left"},center:{[Yp.textAlign]:"center"}},_fullWidth:{[Yp.hostWidth]:"100%"},_italic:{[Yp.fontStyle]:"italic"},_uppercase:{[Yp.textTransform]:"uppercase"},_lowercase:{[Yp.textTransform]:"lowercase"}};var Pp=Object.freeze({__proto__:null,default:Qp,vars:Yp});const Bp=st(Sp),Zp=Zi.cssVarList,Fp={[Zp.hostDirection]:Bp.direction,[Zp.cursor]:"pointer",[Zp.textColor]:Bp.colors.primary.main,textAlign:{right:{[Zp.textAlign]:"right"},left:{[Zp.textAlign]:"left"},center:{[Zp.textAlign]:"center"}},_fullWidth:{[Zp.hostWidth]:"100%"},_hover:{[Zp.textDecoration]:"underline"},mode:{secondary:{[Zp.textColor]:Bp.colors.secondary.main}}};var Gp=Object.freeze({__proto__:null,default:Fp,vars:Zp});const Hp=st(Sp),Jp=Ht.cssVarList,$p={[Jp.hostDirection]:Hp.direction,[Jp.hostWidth]:at(Yp.hostWidth),[Jp.textLineHeight]:at(Yp.textLineHeight),[Jp.textColor]:at(Yp.textColor),[Jp.textAlign]:at(Yp.textAlign),[Jp.fontSize]:at(Yp.fontSize),[Jp.fontWeight]:at(Yp.fontWeight),[Jp.fontFamily]:at(Yp.fontFamily),[Jp.linkColor]:at(Zp.textColor),[Jp.linkTextDecoration]:"none",[Jp.linkHoverTextDecoration]:"underline",[Jp.fontWeightBold]:"900",[Jp.minWidth]:"0.25em",[Jp.minHeight]:"1.35em",[Jp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[Jp.hostDisplay]:"none"}}};var qp=Object.freeze({__proto__:null,default:$p,vars:Jp});const _p=f("input-wrapper"),Xp=st(Sp),[Kp,th]=lt({labelTextColor:Xp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:Xp.colors.surface.contrast,placeholderTextColor:Xp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Xp.colors.surface.dark,errorMessageTextColor:Xp.colors.error.main,successMessageTextColor:Xp.colors.success.main,borderWidth:Xp.border.xs,borderRadius:Xp.radius.xs,borderColor:"transparent",outlineWidth:Xp.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:Xp.colors.surface.main,fontFamily:Xp.fonts.font1.family,direction:Xp.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%"},_focused:{outlineColor:Xp.colors.surface.light,_invalid:{outlineColor:Xp.colors.error.main}},_bordered:{outlineWidth:Xp.border.xs,borderColor:Xp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Xp.colors.error.main}},_disabled:{labelTextColor:Xp.colors.surface.light,borderColor:Xp.colors.surface.light,valueTextColor:Xp.colors.surface.light,placeholderTextColor:Xp.colors.surface.light,helperTextColor:Xp.colors.surface.light,backgroundColor:Xp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},_p),eh=st(Sp),ih=zo.cssVarList,oh={[ih.hostWidth]:th.width,[ih.hostDirection]:th.direction,[ih.fontSize]:th.fontSize,[ih.fontFamily]:th.fontFamily,[ih.labelFontSize]:th.labelFontSize,[ih.labelFontWeight]:th.labelFontWeight,[ih.inputValueFontWeight]:th.inputValueFontWeight,[ih.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[ih.helperTextFontWeight]:th.helperTextFontWeight,[ih.errorMessageFontWeight]:th.errorMessageFontWeight,[ih.labelTextColor]:th.labelTextColor,[ih.errorMessageTextColor]:th.errorMessageTextColor,[ih.inputBorderColor]:th.borderColor,[ih.inputBorderWidth]:th.borderWidth,[ih.inputBorderStyle]:th.borderStyle,[ih.inputBorderRadius]:th.borderRadius,[ih.inputOutlineColor]:th.outlineColor,[ih.inputOutlineOffset]:th.outlineOffset,[ih.inputOutlineWidth]:th.outlineWidth,[ih.inputOutlineStyle]:th.outlineStyle,[ih.labelRequiredIndicator]:th.requiredIndicator,[ih.inputValueTextColor]:th.valueTextColor,[ih.inputPlaceholderTextColor]:th.placeholderTextColor,[ih.inputBackgroundColor]:th.backgroundColor,[ih.inputHorizontalPadding]:th.horizontalPadding,[ih.inputHeight]:th.inputHeight,[ih.inputDropdownButtonColor]:eh.colors.surface.dark,[ih.inputDropdownButtonCursor]:"pointer",[ih.inputDropdownButtonSize]:th.toggleButtonSize,[ih.inputDropdownButtonOffset]:eh.spacing.xs,[ih.overlayItemPaddingInlineStart]:eh.spacing.xs,[ih.overlayItemPaddingInlineEnd]:eh.spacing.lg,[ih.labelPosition]:th.labelPosition,[ih.labelTopPosition]:th.labelTopPosition,[ih.labelHorizontalPosition]:th.labelHorizontalPosition,[ih.inputTransformY]:th.inputTransformY,[ih.inputTransition]:th.inputTransition,[ih.marginInlineStart]:th.marginInlineStart,[ih.placeholderOpacity]:th.placeholderOpacity,[ih.inputVerticalAlignment]:th.inputVerticalAlignment,[ih.valueInputHeight]:th.valueInputHeight,[ih.valueInputMarginBottom]:th.valueInputMarginBottom,[ih.errorMessageIcon]:th.errorMessageIcon,[ih.errorMessageIconSize]:th.errorMessageIconSize,[ih.errorMessageIconPadding]:th.errorMessageIconPadding,[ih.errorMessageIconRepeat]:th.errorMessageIconRepeat,[ih.errorMessageIconPosition]:th.errorMessageIconPosition,[ih.errorMessageFontSize]:th.errorMessageFontSize,_readonly:{[ih.inputDropdownButtonCursor]:"default"},[ih.overlayFontSize]:th.fontSize,[ih.overlayFontFamily]:th.fontFamily,[ih.overlayCursor]:"pointer",[ih.overlayItemBoxShadow]:"none",[ih.overlayBackground]:th.backgroundColor,[ih.overlayTextColor]:th.valueTextColor,[ih.overlayCheckmarkDisplay]:"initial",[ih.overlaySelectedItemBackground]:"initial",[ih.overlaySelectedItemHoverBackground]:eh.colors.primary.highlight,[ih.overlaySelectedItemFocusBackground]:eh.colors.primary.highlight,[ih.overlayItemHoverBackground]:eh.colors.primary.highlight,[ih.overlayItemFocusBackground]:eh.colors.primary.highlight,[ih.overlay.margin]:"0",[ih.overlay.contentHeight]:"100%",[ih.overlay.contentOpacity]:"1",[ih.overlay.scrollerMinHeight]:"1px",_loading:{[ih.overlay.loaderTop]:"50%",[ih.overlay.loaderLeft]:"50%",[ih.overlay.loaderRight]:"auto",[ih.overlay.loaderMargin]:"-15px 0 0 -15px",[ih.overlay.loaderWidth]:"30px",[ih.overlay.loaderHeight]:"30px",[ih.overlay.loaderBorder]:"2px solid transparent",[ih.overlay.loaderBorderColor]:`${eh.colors.primary.highlight} ${eh.colors.primary.highlight} ${eh.colors.primary.main} ${eh.colors.primary.main}`,[ih.overlay.loaderBorderRadius]:"50%",[ih.overlay.contentHeight]:"100px",[ih.overlay.scrollerMinHeight]:"100px",[ih.overlay.contentOpacity]:"0"}};var nh=Object.freeze({__proto__:null,comboBox:oh,default:oh,vars:ih});const rh=st(Sp),[sh,ah]=lt({shadowColor:"#00000020"},wc),{shadowColor:lh}=ah,dh=Lc.cssVarList,ch={...sh,[dh.hostWidth]:"fit-content",[dh.hostDirection]:rh.direction,[dh.textAlign]:"center",[dh.fontFamily]:rh.fonts.font1.family,[dh.fontWeight]:"400",[dh.verticalPadding]:"0.25em",[dh.horizontalPadding]:"0.5em",[dh.borderWidth]:rh.border.xs,[dh.borderRadius]:rh.radius.xs,[dh.borderColor]:"transparent",[dh.borderStyle]:"solid",_fullWidth:{[dh.hostWidth]:"100%"},size:{xs:{[dh.fontSize]:"12px"},sm:{[dh.fontSize]:"14px"},md:{[dh.fontSize]:"16px"},lg:{[dh.fontSize]:"18px"}},variant:{contained:{[dh.backgroundColor]:rh.colors.surface.main}},_shrinkToIndicator:{[dh.hostWidth]:"13px",[dh.hostHeight]:"13px",[dh.borderRadius]:"50%",[dh.fontSize]:"0",[dh.textIndent]:"-9999px"},mode:{default:{[dh.textColor]:rh.colors.surface.dark,_bordered:{[dh.borderColor]:rh.colors.surface.light}},primary:{[dh.textColor]:rh.colors.primary.main,_bordered:{[dh.borderColor]:rh.colors.primary.light}},secondary:{[dh.textColor]:rh.colors.secondary.main,_bordered:{[dh.borderColor]:rh.colors.secondary.light}},error:{[dh.textColor]:rh.colors.error.main,_bordered:{[dh.borderColor]:rh.colors.error.light}},success:{[dh.textColor]:rh.colors.success.main,_bordered:{[dh.borderColor]:rh.colors.success.light}}},shadow:{sm:{[dh.boxShadow]:`${rh.shadow.wide.sm} ${lh}, ${rh.shadow.narrow.sm} ${lh}`},md:{[dh.boxShadow]:`${rh.shadow.wide.md} ${lh}, ${rh.shadow.narrow.md} ${lh}`},lg:{[dh.boxShadow]:`${rh.shadow.wide.lg} ${lh}, ${rh.shadow.narrow.lg} ${lh}`},xl:{[dh.boxShadow]:`${rh.shadow.wide.xl} ${lh}, ${rh.shadow.narrow.xl} ${lh}`}}};var uh=Object.freeze({__proto__:null,default:ch,vars:dh});const ph=f("avatar");class hh extends(jt({componentName:ph,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',O("\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"),k(this,this.avatarComponent,{includeAttrs:["display-name","img","abbr"],mapAttrs:{"display-name":"name"}});const t=this.shadowRoot.querySelector(".editableBadge");C(this,()=>{t.style.display=this.isEditable?"":"none"},{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:gh,editableBadge:Mh,avatar:mh}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},yh=T(Mt({mappings:{hostWidth:[{...gh,property:"width"},{...gh,property:"min-width"}],hostHeight:{...gh,property:"height"},cursor:[mh,gh],hostDirection:{...gh,property:"direction"},avatarTextColor:{...mh,property:"color"},avatarBackgroundColor:{...mh,property:"background-color"},editableIconColor:{...Mh,property:"color"},editableBorderColor:{...Mh,property:"border-color"},editableBackgroundColor:{...Mh,property:"background-color"}}}),mt,yt)(hh),bh=st(Sp),Nh=yh.cssVarList,Ih={[Nh.hostDirection]:bh.direction,[Nh.editableIconColor]:bh.colors.surface.dark,[Nh.editableBorderColor]:bh.colors.surface.dark,[Nh.editableBackgroundColor]:bh.colors.surface.main,[Nh.avatarTextColor]:bh.colors.surface.main,[Nh.avatarBackgroundColor]:bh.colors.surface.dark,_editable:{[Nh.cursor]:"pointer"},size:{xs:{[Nh.hostWidth]:"30px",[Nh.hostHeight]:"30px"},sm:{[Nh.hostWidth]:"40px",[Nh.hostHeight]:"40px"},md:{[Nh.hostWidth]:"60px",[Nh.hostHeight]:"60px"},lg:{[Nh.hostWidth]:"98px",[Nh.hostHeight]:"98px"},xl:{[Nh.hostWidth]:"120px",[Nh.hostHeight]:"120px"},"2xl":{[Nh.hostWidth]:"140px",[Nh.hostHeight]:"140px"}}},xh={...Nh};var jh=Object.freeze({__proto__:null,default:Ih,vars:xh});const Th=Eo.cssVarList;var Dh=Object.freeze({__proto__:null,default:{},vars:Th});const vh=Lo.cssVarList;var zh=Object.freeze({__proto__:null,default:{},vars:vh});const Ch=f("apps-list"),Sh=T(Mt({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:bu.componentName,property:bu.cssVarList.gap},maxRowItems:{selector:bu.componentName,property:bu.cssVarList.maxRowItems},itemsFontWeight:{selector:ki.componentName,property:ki.cssVarList.fontWeightOverride},itemsFontSize:{selector:ki.componentName,property:ki.cssVarList.fontSizeOverride},itemsTextAlign:{selector:ki.componentName,property:ki.cssVarList.textAlign},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},logoBackgroundColor:{selector:yh.componentName,property:yh.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:yh.componentName,property:yh.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${Mu.componentName}:hover`,property:Mu.cssVarList.backgroundColor},backgroundColor:{selector:bu.componentName,property:bu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:Mu.componentName,property:Mu.cssVarList.borderStyleOverride},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColorOverride},itemBorderWidth:{selector:Mu.componentName,property:Mu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:ki.componentName,property:ki.cssVarList.textAlign}]}}),Yt({itemRenderer:({name:t,icon:e,url:i},o,n)=>{const r=document.createElement("template");r.innerHTML=`\n <a ${n.openInSameWindow?"":'target="_blank"'}>\n <descope-list-item>\n <div class="avatar-wrapper">\n <descope-avatar\n size="${n.logoSize||n.size}"\n ></descope-avatar>\n </div>\n <descope-text\n variant="${n.itemTextVariant}"\n mode="primary"\n ></descope-text>\n </descope-list-item>\n </a>\n`;const s=r.content.querySelector("a"),a=z(i);a&&(s.setAttribute("href",a),s.setAttribute("title",a));const l=r.content.querySelector("descope-avatar"),d=z(e,{allowDataImage:!0});return d&&l.setAttribute("img",d),t&&(l.setAttribute("display-name",t),l.setAttribute("abbr",R(t))),r.content.querySelector("descope-text").textContent=t??"",r},rerenderAttrsList:["size","item-text-variant","logo-size","open-in-same-window"]}),mt,yt,t=>class extends t{get size(){return this.getAttribute("size")||"sm"}get itemTextVariant(){return this.getAttribute("item-text-variant")||"body1"}get logoSize(){return this.getAttribute("logo-size")}get openInSameWindow(){return"true"===this.getAttribute("open-in-same-window")}})(ft({slots:["empty-state"],wrappedEleName:"descope-list",excludeAttrsSync:["tabindex","class","empty","style"],componentName:Ch,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 ${ki.cssVarList.hostDirection}: var(${Sh.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),wh=Sh.cssVarList,Ah=st(Sp),Lh="400px",fh={[wh.itemsTextAlign]:"start",[wh.hostDirection]:Ah.direction,[wh.maxHeight]:Lh,[wh.itemHoverBackgroundColor]:Ah.colors.surface.highlight,_empty:{[wh.minHeight]:Lh},size:{xs:{[wh.itemsFontSize]:"14px",[wh.itemsFontWeight]:"normal"},sm:{[wh.itemsFontSize]:"14px",[wh.itemsFontWeight]:"normal"},md:{[wh.itemsFontSize]:"16px",[wh.itemsFontWeight]:"normal"},lg:{[wh.itemsFontSize]:"20px",[wh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[wh.itemVerticalPadding]:Ah.spacing.xs,[wh.itemHorizontalPadding]:Ah.spacing.xs},sm:{[wh.itemVerticalPadding]:Ah.spacing.sm,[wh.itemHorizontalPadding]:Ah.spacing.sm},md:{[wh.itemVerticalPadding]:Ah.spacing.md,[wh.itemHorizontalPadding]:Ah.spacing.md},lg:{[wh.itemVerticalPadding]:Ah.spacing.lg,[wh.itemHorizontalPadding]:Ah.spacing.lg},xl:{[wh.itemVerticalPadding]:Ah.spacing.xl,[wh.itemHorizontalPadding]:Ah.spacing.xl}}};var Eh=Object.freeze({__proto__:null,default:fh,vars:wh});const kh=st(Sp),Oh=bu.cssVarList,[Vh,Wh,Rh]=lt({shadowColor:"#00000020"},mu),{shadowColor:Uh}=Wh,Yh={...Vh,[Oh.hostWidth]:"100%",[Oh.backgroundColor]:kh.colors.surface.main,[Oh.fontFamily]:kh.fonts.font1.family,[Oh.borderColor]:kh.colors.surface.light,[Oh.borderStyle]:"solid",[Oh.borderWidth]:kh.border.xs,[Oh.borderRadius]:kh.radius.sm,[Oh.gap]:kh.spacing.md,[Oh.verticalPadding]:kh.spacing.lg,[Oh.horizontalPadding]:kh.spacing.lg,[Oh.boxShadow]:`${kh.shadow.wide.sm} ${Uh}, ${kh.shadow.narrow.sm} ${Uh}`,[Oh.maxHeight]:"100%",[Oh.hostDirection]:kh.direction,[Oh.minItemsWidth]:"150px",[Oh.maxRowItems]:"1000",_empty:{[Oh.minHeight]:"150px",[Oh.emptyStateTextColor]:kh.colors.surface.dark,[Oh.emptyStateTextFontFamily]:kh.fonts.font1.family},variant:{tiles:{[Oh.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${at(Oh.minItemsWidth)}, 100%),\n calc((100% - (${at(Oh.maxRowItems)} - 1) * ${at(Oh.gap)}) / ${at(Oh.maxRowItems)})),\n 1fr))`,[Oh.maxItemsWidth]:"200px",[Oh.itemsHorizontalAlign]:"center"}},gap:{xs:{[Oh.gap]:kh.spacing.xs},sm:{[Oh.gap]:kh.spacing.sm},md:{[Oh.gap]:kh.spacing.md},lg:{[Oh.gap]:kh.spacing.lg},xl:{[Oh.gap]:kh.spacing.xl}}},Qh={...Oh,...Rh};var Ph=Object.freeze({__proto__:null,default:Yh,vars:Qh});const Bh=st(Sp),Zh=Mu.cssVarList,Fh={[Zh.backgroundColor]:Bh.colors.surface.main,[Zh.verticalPadding]:Bh.spacing.lg,[Zh.horizontalPadding]:Bh.spacing.lg,[Zh.gap]:Bh.spacing.md,[Zh.borderStyle]:"solid",[Zh.borderWidth]:Bh.border.xs,[Zh.borderColor]:Bh.colors.surface.main,[Zh.borderRadius]:Bh.radius.sm,[Zh.cursor]:"pointer",[Zh.alignItems]:"center",[Zh.flexDirection]:"row",[Zh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Zh.alignItems]:"flex-start",[Zh.flexDirection]:"column",[Zh.borderColor]:Bh.colors.surface.light}},_hover:{[Zh.backgroundColor]:Bh.colors.surface.highlight},_active:{[Zh.backgroundColor]:Bh.colors.surface.main,[Zh.borderColor]:Bh.colors.primary.light,[Zh.outline]:`1px solid ${Bh.colors.primary.light}`}};var Gh=Object.freeze({__proto__:null,default:Fh,vars:Zh});const Hh=f("multi-select-combo-box"),{host:Jh,inputField:$h,inputElement:qh,placeholder:_h,toggle:Xh,clearButton:Kh,label:tg,requiredIndicator:eg,helperText:ig,errorMessage:og,chip:ng,chipLabel:rg,overflowChipFirstBorder:sg,overflowChipSecondBorder:ag}={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"}},lg=T(Mt({mappings:{hostWidth:{...Jh,property:"width"},hostDirection:{...Jh,property:"direction"},fontSize:[{},Jh],chipFontSize:{...rg,property:"font-size"},fontFamily:[tg,_h,$h,ig,og,rg],labelFontSize:{...tg,property:"font-size"},labelFontWeight:{...tg,property:"font-weight"},inputValueFontWeight:{...$h,property:"font-weight"},inputPlaceholderFontWeight:{..._h,property:"font-weight"},helperTextFontWeight:{...ig,property:"font-weight"},errorMessageFontWeight:{...og,property:"font-weight"},labelTextColor:[{...tg,property:"color"},{...eg,property:"color"}],errorMessageTextColor:{...og,property:"color"},errorMessageIcon:{...og,property:"background-image"},errorMessageIconSize:{...og,property:"background-size"},errorMessageIconPadding:{...og,property:"padding-inline-start"},errorMessageIconRepeat:{...og,property:"background-repeat"},errorMessageIconPosition:{...og,property:"background-position"},errorMessageFontSize:{...og,property:"font-size"},inputHeight:{...$h,property:"min-height"},inputBackgroundColor:{...$h,property:"background-color"},inputBorderColor:{...$h,property:"border-color"},inputBorderWidth:{...$h,property:"border-width"},inputBorderStyle:{...$h,property:"border-style"},inputBorderRadius:{...$h,property:"border-radius"},labelRequiredIndicator:{...eg,property:"content"},inputValueTextColor:{...$h,property:"color"},inputPlaceholderTextColor:{..._h,property:"color"},inputDropdownButtonCursor:[{...Xh,property:"cursor"},{...Kh,property:"cursor"}],inputDropdownButtonColor:[{...Xh,property:"color"},{...Kh,property:"color"}],inputDropdownButtonSize:[{...Xh,property:"font-size"},{...Kh,property:"font-size"}],inputDropdownButtonOffset:[{...Xh,property:"margin-right"},{...Xh,property:"margin-left"}],inputOutlineColor:{...$h,property:"outline-color"},inputOutlineWidth:{...$h,property:"outline-width"},inputOutlineStyle:{...$h,property:"outline-style"},inputOutlineOffset:{...$h,property:"outline-offset"},inputHorizontalPadding:[{...qh,property:"padding-left"},{...qh,property:"padding-right"},{...$h,property:"padding-inline-start"}],inputVerticalPadding:[{...$h,property:"padding-top"},{...$h,property:"padding-bottom"}],chipTextColor:{...rg,property:"color"},chipBackgroundColor:[{...ng,property:"background-color"},{...sg,property:"border-color"},{...ag,property:"border-color"}],labelPosition:{...tg,property:"position"},labelTopPosition:{...tg,property:"top"},labelLeftPosition:{...tg,property:"left"},labelHorizontalPosition:[{...tg,property:"left"},{...tg,property:"right"}],inputTransformY:{...tg,property:"transform"},inputTransition:{...tg,property:"transition"},marginInlineStart:{...tg,property:"margin-inline-start"},placeholderOpacity:{..._h,property:"opacity"},inputVerticalAlignment:{...$h,property:"align-items"},overlayBackground:{property:()=>lg.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>lg.cssVarList.overlay.textColor},overlayBorder:{property:()=>lg.cssVarList.overlay.border},overlayFontSize:{property:()=>lg.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>lg.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>lg.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>lg.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>lg.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>lg.cssVarList.overlay.itemPaddingInlineEnd}}}),mt,Wt({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"]}}),Vt({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),Dt,yt,t=>class extends t{static get observedAttributes(){return["readonly"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#R;#xe=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,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(t){const e=Array.isArray(t);return e||console.error("data and default-values must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}#je(){if(this.#R)return!0;const t=this.getAttribute("data");if(!t)return!1;try{return Array.isArray(JSON.parse(t))}catch{return!1}}renderItems(){const t=this.getItemsTemplate();t?this.innerHTML=t:this.#je()&&(this.innerHTML="")}updateSelectedItems(){const t=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[];t.length>0&&(this.value=t),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#Te(t){return Array.from(new Map(t.map(t=>[t.getAttribute("data-id"),t])).values())}#et(){const t=Array.from(this.children),e=this.#Te(t);t.length?(this.removeAttribute("has-no-options"),e.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#De(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",t=>{const e=this.#tt({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,t.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const t=new RegExp(this.pattern);if(this.value.some(e=>!t.test(e)))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 t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#De(),this.renderItems(),C(this,this.renderItems.bind(this),{includeAttrs:["data"]}),S(this,this.#et.bind(this)),k(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#ve(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#ve(){this.#xe=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter(e=>t.includes(e["data-id"]));if(this.allowCustomValues){const i=e?.map(t=>t.getAttribute("data-id"))||[],o=t.filter(t=>!i.includes(t));if(o.length){const e=o.reduce((t,e)=>t+this.#tt({label:e,displayName:e,value:e}),"");return this.innerHTML+=e,void setTimeout(()=>{this.value=t},0)}}const i=e?.map(t=>t.getAttribute("data-id"))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const i=t.slice().sort(),o=e.slice().sort();for(let t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0})(this.#xe,i)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#xe}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i&&"true"===i)}onReadOnlyChange(t){t?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",t):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${_(lg.cssVarList)}\n\t\t${tt("vaadin-multi-select-combo-box")}\n\t\t${K("vaadin-multi-select-combo-box")}\n\t\t${X("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 ${it("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:Hh,includeForwardProps:["items","renderer","selectedItems"]})),dg=f("multi-line-mappings"),cg=jt({componentName:dg}),ug=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),pg=t=>[...new Set(t.map(ug).filter(Boolean))],hg=t=>{const e=ug(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},gg=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(hg).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},Mg=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),mg={selector:()=>":host"},yg={selector:".row"},bg={selector:".add-action"},Ng=T(Mt({mappings:{hostWidth:{...mg,property:"width"},hostDirection:[{...mg,property:"direction"},{selector:lg.componentName,property:lg.cssVarList.hostDirection},{selector:Uo.componentName,property:Uo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...yg,property:"gap"},rowAlignItems:{...yg,property:"align-items"},rowWrap:{...yg,property:"flex-wrap"},addActionJustifyContent:{...bg,property:"justify-content"},addActionMarginTop:{...bg,property:"margin-top"}}}),mt)(class extends cg{static get observedAttributes(){return["data","max-rows","size","disabled","readonly","first-value-key","second-value-key","first-label","second-label","first-placeholder","second-placeholder","full-width","merge-rows"]}#ze=[{firstValues:[],secondValues:[]}];#Ce=null;#Se=[];#we={};constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="rows"></div>\n <div class="add-action">\n <descope-button\n class="add-button"\n variant="link"\n mode="primary"\n >\n <slot name="add-button-content">Add line</slot>\n </descope-button>\n </div>\n </div>\n ',O("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n max-width: 100%;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows > .row {\n display: flex;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n align-items: flex-end;\n }\n\n .row descope-multi-select-combo-box {\n flex: 1 1 0;\n box-sizing: border-box;\n }\n\n .row .remove-button {\n flex: 0 0 auto;\n align-self: flex-end;\n }\n\n .row:only-child .remove-button {\n display: none;\n pointer-events: none;\n }\n\n .add-action {\n display: flex;\n }\n ",this),this.rowsElement=this.shadowRoot.querySelector(".rows"),this.addButtonElement=this.shadowRoot.querySelector(".add-button")}get size(){return this.getAttribute("size")||"md"}get firstValueKey(){return this.getAttribute("first-value-key")||"firstValues"}get secondValueKey(){return this.getAttribute("second-value-key")||"secondValues"}get firstLabel(){return this.getAttribute("first-label")||""}get secondLabel(){return this.getAttribute("second-label")||""}get firstPlaceholder(){return this.getAttribute("first-placeholder")||""}get secondPlaceholder(){return this.getAttribute("second-placeholder")||""}get disabled(){return"true"===this.getAttribute("disabled")}get readonly(){return"true"===this.getAttribute("readonly")}get mergeRows(){return"true"===this.getAttribute("merge-rows")}get maxRows(){const t=Number(this.getAttribute("max-rows"));return Number.isFinite(t)&&t>0?t:void 0}get data(){return this.#we}get value(){return this.#ze.filter(t=>t.firstValues.length>0||t.secondValues.length>0).flatMap(t=>(t.firstValues.length?t.firstValues:[""]).map(e=>({[this.firstValueKey]:e,[this.secondValueKey]:[...t.secondValues]})))}set value(t){this.#Ce=t,this.#ze=this.#Ae(t),this.#Le(),this.#fe()}#Ee(t){const e=((t,e,i="unknown")=>{if("string"!=typeof t||!t?.trim())return e;try{return JSON.parse(t)}catch(t){return console.error(`[descope-multi-line-mappings] Failed to parse JSON from "${i}"`,t),e}})(t,{},"data attribute"),i=e&&"object"==typeof e&&!Array.isArray(e)?e:{};this.#Se=Object.entries(i).map(([t,e])=>{const i=String(t),o=null!=e&&"object"==typeof e&&!Array.isArray(e),n=o?e.options??[]:e;return{value:i,label:o&&null!=e.label?String(e.label):i,options:gg(n)}}),this.#we=Object.fromEntries(this.#Se.map(({value:t,options:e})=>[t,e]))}init(){super.init?.(),this.#ke(),this.addButtonElement.addEventListener("click",()=>this.#Oe()),this.#fe()}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("data"===t)return this.#Ee(i),this.#Le(),void this.#fe();if("size"===t)return[...this.#Ve(),...this.#We()].forEach(t=>t.setAttribute("size",this.size)),this.#ke(),void this.#Re();if(["disabled","readonly"].includes(t))return this.#Ve().forEach(t=>{t[this.disabled?"setAttribute":"removeAttribute"]("disabled","true"),t[this.readonly?"setAttribute":"removeAttribute"]("readonly","true")}),this.#We().forEach(t=>t[this.disabled||this.readonly?"setAttribute":"removeAttribute"]("disabled","true")),void this.#Re();if(["first-label","second-label"].includes(t)){const e="first-label"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("label",i):o?.removeAttribute("label")})}if(["first-placeholder","second-placeholder"].includes(t)){const e="first-placeholder"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("placeholder",i):o?.removeAttribute("placeholder")})}"max-rows"===t&&this.#Re(),"merge-rows"===t&&null!==this.#Ce&&(this.#ze=this.#Ae(this.#Ce),this.#Le(),this.#fe())}}#Ve(){return Array.from(this.rowsElement.querySelectorAll("descope-multi-select-combo-box"))}#We(){return Array.from(this.rowsElement.querySelectorAll(".remove-button"))}#Oe(){if(this.disabled||this.readonly||this.#Ue())return;const t={firstValues:[],secondValues:[]};this.#ze=[...this.#ze,t],this.rowsElement.append(this.#Ye(t)),this.#Re()}#Ae(t){if(!Array.isArray(t)||!t.length)return[{firstValues:[],secondValues:[]}];let e=t.map(t=>{const e=t?.[this.firstValueKey];return{firstValues:null!=e&&""!==String(e)?[String(e)]:[],secondValues:pg(t?.[this.secondValueKey]??[])}});if(this.mergeRows){const t=new Map;for(const i of e){const e=[...i.secondValues].sort().join("\0");t.has(e)?t.get(e).firstValues.push(...i.firstValues):t.set(e,{firstValues:[...i.firstValues],secondValues:i.secondValues})}e=[...t.values()]}return e}#Le(){const t=new Set(this.#Se.map(t=>t.value));this.#ze=this.#ze.map(e=>{const i=e.firstValues.filter(e=>t.has(e)),o=this.#Qe(i),n=new Set(o.map(t=>t.value));return{firstValues:i,secondValues:e.secondValues.filter(t=>n.has(t))}})}#Qe(t){const e=t.length?t.map(t=>this.#we[t]||[]).filter(t=>t.length):Object.values(this.#we).filter(t=>t.length);if(!e.length||t.length&&e.length!==t.length)return[];if(1===e.length)return e[0];const[i,...o]=e,n=new Set(i.map(t=>t.value));for(const t of o){const e=new Set(t.map(t=>t.value));for(const t of n)e.has(t)||n.delete(t)}return i.filter(t=>n.has(t.value))}#Pe({getRowIndex:t,type:e,label:i,placeholder:o,options:n,selectedValues:r}){const s=document.createElement("descope-multi-select-combo-box");return s.className=`combo ${e}-combo`,s.setAttribute("size",this.size),s.setAttribute("bordered","true"),s.setAttribute("item-label-path","data-name"),s.setAttribute("item-value-path","data-id"),i&&s.setAttribute("label",i),o&&s.setAttribute("placeholder",o),this.disabled&&s.setAttribute("disabled","true"),this.readonly&&s.setAttribute("readonly","true"),s.data=n,this.#Be(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Ze({rowIndex:i,type:e,selectedValues:pg(s.value||[])})}),s}#Be(t,e){t.__descopeSyncingSelection=!0,Promise.resolve().then(()=>{const i=new Set(e||[]);t.selectedItems=(t.items||[]).filter(t=>i.has(t["data-id"]||t.getAttribute?.("data-id"))),t.__descopeSyncingSelection=!1})}#Fe(t){const e=document.createElement("descope-button");return e.className="remove-button",e.setAttribute("variant","link"),e.setAttribute("mode","primary"),e.setAttribute("size",this.size),e.setAttribute("aria-label","Remove row"),e.innerHTML='<vaadin-icon icon="vaadin:minus"></vaadin-icon>',(this.disabled||this.readonly)&&e.setAttribute("disabled","true"),e.addEventListener("click",()=>{const e=t();-1!==e&&this.#Ge(e)}),e}#fe(){this.rowsElement.innerHTML="",this.#ze.forEach(t=>{this.rowsElement.append(this.#Ye(t))}),this.#Re()}#Ye(t){const e=document.createElement("div");e.className="row";const i=()=>Array.from(this.rowsElement.children).indexOf(e),o=this.#Pe({getRowIndex:i,type:"first",label:this.firstLabel,placeholder:this.firstPlaceholder,options:this.#Se.map(({value:t,label:e})=>({value:t,label:e})),selectedValues:t.firstValues}),n=this.#Qe(t.firstValues),r=this.#Pe({getRowIndex:i,type:"second",label:this.secondLabel,placeholder:this.secondPlaceholder,options:n,selectedValues:t.secondValues});return e.append(o,r,this.#Fe(i)),e}#He(t){const e=this.#ze[t];if(!e)return;const i=this.rowsElement.children[t],o=i?.querySelector(".second-combo");if(!o)return void this.#fe();const n=this.#Qe(e.firstValues);o.data=n,this.#Be(o,e.secondValues)}#ke(){this.addButtonElement.setAttribute("size",this.size)}#Re(){this.disabled||this.readonly||this.#Ue()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#Ue(){return Number.isFinite(this.maxRows)&&this.#ze.length>=this.maxRows}#Je(t){this.rowsElement.children[t]?.remove()}#Ze({rowIndex:t,type:e,selectedValues:i}){if(this.disabled||this.readonly)return;const o=this.#ze[t];if(o){if("first"===e){const e=this.#Qe(i),n=new Set(e.map(t=>t.value)),r=o.secondValues.filter(t=>n.has(t));if(Mg(o.firstValues,i)&&Mg(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}Mg(o.secondValues,i)||(this.#ze[t]={...o,secondValues:i},this.#$e())}}#Ge(t){if(this.disabled||this.readonly||this.#ze.length<=1)return;const e=this.#ze[t];this.#ze=this.#ze.filter((e,i)=>i!==t),this.#Je(t),this.#Re(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#$e()}#$e(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}),Ig=Ng.cssVarList,xg={[Ig.hostDirection]:th.direction,[Ig.rowsGap]:Sp.spacing.sm,[Ig.rowGap]:Sp.spacing.sm,[Ig.rowAlignItems]:"flex-end",[Ig.rowWrap]:"nowrap",[Ig.addActionJustifyContent]:"flex-start",[Ig.addActionMarginTop]:Sp.spacing.xs,_fullWidth:{[Ig.hostWidth]:"100%"}};var jg=Object.freeze({__proto__:null,default:xg,vars:Ig});const Tg=st(Sp),Dg=lg.cssVarList,vg={[Dg.hostWidth]:th.width,[Dg.hostDirection]:th.direction,[Dg.fontSize]:th.fontSize,[Dg.fontFamily]:th.fontFamily,[Dg.labelFontSize]:th.labelFontSize,[Dg.labelFontWeight]:th.labelFontWeight,[Dg.inputValueFontWeight]:th.inputValueFontWeight,[Dg.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[Dg.helperTextFontWeight]:th.helperTextFontWeight,[Dg.errorMessageFontWeight]:th.errorMessageFontWeight,[Dg.labelTextColor]:th.labelTextColor,[Dg.errorMessageTextColor]:th.errorMessageTextColor,[Dg.inputBorderColor]:th.borderColor,[Dg.inputBorderWidth]:th.borderWidth,[Dg.inputBorderStyle]:th.borderStyle,[Dg.inputBorderRadius]:th.borderRadius,[Dg.inputOutlineColor]:th.outlineColor,[Dg.inputOutlineOffset]:th.outlineOffset,[Dg.inputOutlineWidth]:th.outlineWidth,[Dg.inputOutlineStyle]:th.outlineStyle,[Dg.labelRequiredIndicator]:th.requiredIndicator,[Dg.inputValueTextColor]:th.valueTextColor,[Dg.inputPlaceholderTextColor]:th.placeholderTextColor,[Dg.inputBackgroundColor]:th.backgroundColor,[Dg.inputHorizontalPadding]:th.horizontalPadding,[Dg.inputVerticalPadding]:th.verticalPadding,[Dg.inputHeight]:th.inputHeight,[Dg.inputDropdownButtonColor]:Tg.colors.surface.dark,[Dg.inputDropdownButtonCursor]:"pointer",[Dg.inputDropdownButtonSize]:th.toggleButtonSize,[Dg.inputDropdownButtonOffset]:Tg.spacing.xs,[Dg.overlayItemPaddingInlineStart]:Tg.spacing.xs,[Dg.overlayItemPaddingInlineEnd]:Tg.spacing.lg,[Dg.chipFontSize]:th.chipFontSize,[Dg.chipTextColor]:Tg.colors.surface.contrast,[Dg.chipBackgroundColor]:Tg.colors.surface.light,[Dg.labelPosition]:th.labelPosition,[Dg.labelTopPosition]:th.labelTopPosition,[Dg.labelLeftPosition]:th.labelLeftPosition,[Dg.labelHorizontalPosition]:th.labelHorizontalPosition,[Dg.inputTransformY]:th.inputTransformY,[Dg.inputTransition]:th.inputTransition,[Dg.marginInlineStart]:th.marginInlineStart,[Dg.placeholderOpacity]:th.placeholderOpacity,[Dg.inputVerticalAlignment]:th.inputVerticalAlignment,[Dg.errorMessageIcon]:th.errorMessageIcon,[Dg.errorMessageIconSize]:th.errorMessageIconSize,[Dg.errorMessageIconPadding]:th.errorMessageIconPadding,[Dg.errorMessageIconRepeat]:th.errorMessageIconRepeat,[Dg.errorMessageIconPosition]:th.errorMessageIconPosition,[Dg.errorMessageFontSize]:th.errorMessageFontSize,labelType:{floating:{[Dg.inputHorizontalPadding]:"0.25em",_hasValue:{[Dg.inputHorizontalPadding]:"0.45em"}}},_readonly:{[Dg.inputDropdownButtonCursor]:"default"},[Dg.overlayFontSize]:th.fontSize,[Dg.overlayFontFamily]:th.fontFamily,[Dg.overlayCursor]:"pointer",[Dg.overlayItemBoxShadow]:"none",[Dg.overlayBackground]:th.backgroundColor,[Dg.overlayTextColor]:th.valueTextColor,[Dg.overlay.minHeight]:"400px",[Dg.overlay.margin]:"0"};var zg=Object.freeze({__proto__:null,default:vg,multiSelectComboBox:vg,vars:Dg});const Cg=f("autocomplete-field-internal"),Sg=wt({componentName:Cg,baseSelector:""}),wg=[],Ag="DESCOPE_INVALID_OPTION",Lg=f("autocomplete-field"),{host:fg}={host:{selector:()=>":host"}},Eg=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:{...fg,property:"width"},hostDirection:{...fg,property:"direction"},fontSize:{...fg},checkmarkDisplay:{selector:zo.componentName,property:zo.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:zo.componentName,property:zo.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:zo.componentName,property:zo.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:zo.componentName,property:zo.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:zo.componentName,property:zo.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:zo.componentName,property:zo.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:zo.componentName,property:zo.cssVarList.overlayItemHoverBackground}}}),mt,Vt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),yt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Cg}\n tabindex="-1"\n ></${Cg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Cg),k(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"]}),A(this,this.inputElement,{includeAttrs:["invalid"]}),this.inputElement.fetchResults=this.fetchResults,this.setDefaultValue()}set fetchResults(t){this.inputElement.fetchResults=t}})(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-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:Lg})),kg=Eg.cssVarList,Og=st(Sp),Vg={[kg.hostWidth]:th.width,[kg.hostDirection]:th.direction,[kg.fontSize]:th.fontSize,[kg.checkmarkDisplay]:"none",[kg.itemPaddingInlineStart]:Og.spacing.lg,[kg.itemPaddingInlineEnd]:Og.spacing.lg,[kg.selectedItemBackground]:Og.colors.primary.light,[kg.selectedItemHoverBackground]:Og.colors.primary.light,[kg.selectedItemFocusBackground]:Og.colors.primary.light,[kg.itemHoverBackground]:Og.colors.primary.highlight,_fullWidth:{[kg.hostWidth]:"100%"}};var Wg=Object.freeze({__proto__:null,default:Vg,vars:kg});class Rg extends(Lt()){#qe=null;#_e=null;constructor(t){super(t),this.#_e=this.#Xe()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#Xe(){const t=this.getAttribute("public-api-key");if(!this.#qe&&t)try{(t=>{var e,i,o,n,r,s,a,l,d,c,u,p,h;window.google?.maps||(e={key:t},r="The Google Maps JavaScript API",s="google",a="importLibrary",l="__ib__",d=document,c=window,u=(c=c[s]||(c[s]={})).maps||(c.maps={}),p=new Set,h=new URLSearchParams,u[a]?console.warn(r+" only loads once. Ignoring:",e):u[a]=(t,...c)=>p.add(t)&&(i||(i=new Promise(async(t,a)=>{for(n in await(o=d.createElement("script")),h.set("libraries",[...p]+""),e)h.set(n.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),e[n]);h.set("callback",s+".maps."+l),o.src=`https://maps.${s}apis.com/maps/api/js?`+h,u[l]=t,o.onerror=()=>i=a(Error(r+" could not load.")),o.nonce=d.querySelector("script[nonce]")?.nonce||"",d.head.append(o)}))).then(()=>u[a](t,...c)))})(t);const{AutocompleteSuggestion:e}=await google.maps.importLibrary("places");this.#qe=e}catch(t){throw console.error("Failed to initialize Google Maps Autocomplete service:",t),t}}async _fetchResults(t){if(!t?.trim())return{results:[]};try{await this.#_e;const e={input:t};this.getOptionalParams().forEach(({attribute:t,key:i,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&(e[i]="includedPrimaryTypes"===i?n.split(",").map(t=>t.trim()).filter(Boolean):n)});const{suggestions:i}=await this.#qe.fetchAutocompleteSuggestions(e);return this.#Ke(i)}catch(t){return console.error("Google Maps Places Autocomplete failed:",t),{results:[],error:At}}}#Ke(t){return t?.length?{results:t.map(t=>{const e=t.placePrediction;return{id:e.placeId,label:e.text.text,value:e.text.text}})}:{results:[]}}}class Ug extends(Lt()){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(t){if(!t?.trim())return{results:[]};const e=this.getAttribute("public-api-key"),i=new URLSearchParams({query:t.trim()});this.getOptionalParams().forEach(({attribute:t,key:e,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&("layers"===e||"countryCode"===e?i.append(e,n.split(",").map(t=>t.trim()).filter(Boolean).join(",")):i.append(e,n))});try{const t=await fetch(`https://api.radar.io/v1/search/autocomplete?${i.toString()}`,{headers:{Authorization:e}});if(!t.ok)throw new Error(`Radar API returned ${t.status}`);const o=await t.json();return this.#Ke(o)}catch(t){return console.error("Radar Places Autocomplete failed:",t),{results:[],error:At}}}#Ke(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const Yg=f("address-field-internal"),Qg="google-maps-places",Pg="radar",Bg={[Qg]:Rg,[Pg]:Ug},Zg=wt({componentName:Yg,baseSelector:""}),Fg=["public-api-key"],Gg=[...Fg],Hg=T((({connectorClasses:t})=>e=>class extends e{#ti=t;static get observedAttributes(){return[...e.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#ti}set connectorClasses(t){this.#ti=t}get connectorTemplate(){return this.getAttribute("connector-template")}initializeConnector(){const t=this.connectorTemplate;if(!this.connectorClasses[t])return;const e=this.connectorClasses[t];this.connector=new e(this.getAttribute.bind(this))}async fetchConnectorResults(t){if(!this.connector)return console.error(`No connector initialized for the field with template: ${this.connectorTemplate}`),{results:[]};const{results:e,error:i}=await this.connector.fetch(t);return i?{results:[],error:i}:{results:e.map(({label:t,value:e})=>({label:t,value:e}))}}init(){super.init?.(),this.initializeConnector()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"connector-template"===t&&this.initializeConnector()}})({connectorClasses:Bg}))(class extends Zg{static get observedAttributes(){return[].concat(Zg.observedAttributes||[],Gg)}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(t){this.autocompleteField.value=t}focus(){this.autocompleteField.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.autocompleteField.focus()}),super.init?.(),this.initAutocomplete()}initAutocomplete(){k(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"]}),A(this,this.autocompleteField,{includeAttrs:["invalid"]}),this.autocompleteField.fetchResults=this.fetchConnectorResults.bind(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Fg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),Jg=f("address-field"),{host:$g}={host:{selector:()=>":host"}},qg=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:{...$g,property:"width"},hostDirection:{...$g,property:"direction"}}}),mt,Vt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),yt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(t){this.inputElement.connectorClasses=t}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Yg}\n tabindex="-1"\n ></${Yg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Yg),k(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"]}),A(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValue()}})(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 ${Yg} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Yg} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Jg})),_g=qg.cssVarList,Xg={[_g.hostWidth]:th.width,[_g.hostDirection]:th.direction,_fullWidth:{[_g.hostWidth]:"100%"}};var Kg=Object.freeze({__proto__:null,default:Xg,vars:_g});const tM=(t,e=2)=>String(t).padStart(e,"0"),eM=f("timer"),iM=["seconds","hide-icon","paused"],oM=jt({componentName:eM,baseSelector:":host > .wrapper"}),{host:nM,icon:rM,timer:sM}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},aM=T(Mt({mappings:{fontSize:{},iconSize:[{...rM,property:"width"},{...rM,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...sM},lineHeight:{...sM},textColor:{...sM,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...nM,property:"width"},hostDirection:{...nM,property:"direction"},iconColor:{...rM,property:Eo.cssVarList.fill}}}),mt,yt)(class extends oM{#ei=0;#ii;static get observedAttributes(){return iM.concat(oM.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',O("\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 t=this.getAttribute("seconds"),e=1e3*parseInt(t||0,10);return Math.max(0,e)}get isPaused(){return"true"===this.getAttribute("paused")}init(){super.init?.(),this.#ei=this.seconds}startInterval(){this.#ei?this.#ii=setInterval(()=>{this.#oi(),this.#ei||this.stop(),this.#ni(this.#ei)},1e3):this.stop()}stopInterval(){clearInterval(this.#ii)}#oi(){this.#ei=this.#ei-1e3}reset(){this.#ei=this.seconds,this.#ni(this.#ei),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#ei=0,this.#ni(this.#ei),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#ni(t){this.timer.textContent=((t=0)=>{const e=Math.floor(t/1e3),i=Math.floor(e/3600),o=Math.floor(e%3600/60),n=e%60;return[...i?[tM(i)]:[],tM(o),tM(n)].join(":")})(t)}#ri(t){this.icon.classList.toggle("hidden",t)}#si(t){setTimeout(()=>{t?this.pause():this.#ii||this.resume()})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("seconds"===t&&this.reset(),"hide-icon"===t&&this.#ri("true"===i),"paused"===t&&this.#si("true"===i))}}),lM=st(Sp),dM=aM.cssVarList,cM={[dM.hostDirection]:lM.direction,[dM.gap]:"0.25em",[dM.fontFamily]:lM.fonts.font1.family,[dM.minHeight]:"1.5em",[dM.lineHeight]:"1em",[dM.fontWeight]:lM.fonts.font1.fontWeight,[dM.textColor]:lM.colors.surface.contrast,[dM.iconColor]:lM.colors.surface.contrast,[dM.iconSize]:"1em",size:{xs:{[dM.fontSize]:"12px"},sm:{[dM.fontSize]:"14px"},md:{[dM.fontSize]:"16px"},lg:{[dM.fontSize]:"18px"}},textAlign:{right:{[dM.textAlign]:"right"},left:{[dM.textAlign]:"left"},center:{[dM.textAlign]:"center"}},_fullWidth:{[dM.hostWidth]:"100%"}};var uM=Object.freeze({__proto__:null,default:cM,vars:dM});const pM=f("timer-button"),hM=["button-variant","button-mode","size","text-align","full-width"],gM={"button-variant":"variant","button-mode":"mode"},MM=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],mM={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},yM=jt({componentName:pM,baseSelector:":host > div"}),{host:bM,nestedTimer:NM,nestedButton:IM,timerInsideNotReversed:xM,timerInsideReversed:jM}={host:{selector:()=>":host"},nestedTimer:{selector:()=>':host([timer-inside="true"]) .timer'},nestedButton:{selector:()=>':host([timer-inside="true"]) .button'},timerInsideNotReversed:{selector:()=>':host([timer-inside="true"]:not([timer-position="end"])) .timer'},timerInsideReversed:{selector:()=>':host([timer-inside="true"][timer-position="end"]) .timer'}},TM=T(Mt({mappings:{gap:{},flexDirection:{},hostWidth:{...bM,property:"width"},hostDirection:{...bM,property:"direction"},timerTextColor:{...NM,property:aM.cssVarList.textColor},timerIconColor:{...NM,property:aM.cssVarList.iconColor},timerHostWidth:{...NM,property:aM.cssVarList.hostWidth},buttonLabelSpacing:{...IM,property:Uo.cssVarList.labelSpacing},timerInsideGapEnd:{...xM,property:"margin-inline-end"},timerInsideGapStart:{...jM,property:"margin-inline-start"}}}),mt,yt)(class extends yM{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',O('\n :host {\n display: inline-flex;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n }\n /* allow timer to grow along the main axis in the wrapper flex container */\n :host(:not([timer-inside="true"])) .timer {\n flex: 1;\n }\n :host([timer-inside="true"]) .timer {\n flex: 0 0 auto;\n }\n ',this),this.wrapper=this.shadowRoot.querySelector(".wrapper"),this.timer=this.shadowRoot.querySelector(".timer"),this.button=this.shadowRoot.querySelector(".button"),this.forwardingSlot=this.shadowRoot.querySelector(".button slot"),this.timer.addEventListener("timer-started",()=>this.onTimerStarted()),this.timer.addEventListener("timer-ended",()=>this.onTimerEnded()),this.syncTimerPlacement(),this.button.addEventListener("click",this.onClick.bind(this))}static get observedAttributes(){return[...super.observedAttributes||[],"timer-inside","timer-position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"timer-inside"!==t&&"timer-position"!==t||this.syncTimerPlacement()}get#ai(){return"true"===this.getAttribute("timer-inside")}get#li(){return"end"===this.getAttribute("timer-position")}syncTimerPlacement(){this.#ai?this.#di(this.#li):this.#ci()}#di(t){t?this.timer.previousSibling!==this.forwardingSlot&&this.button.appendChild(this.timer):this.timer.nextSibling!==this.forwardingSlot&&this.button.insertBefore(this.timer,this.forwardingSlot)}#ci(){this.timer.parentElement!==this.wrapper&&this.wrapper.insertBefore(this.timer,this.button)}set onclick(t){this.button.onclick=t}init(){super.init?.(),k(this,this.button,{includeAttrs:hM,mapAttrs:gM}),k(this,this.timer,{includeAttrs:MM,mapAttrs:mM}),this.button.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}onTimerStarted(){this.toggleButtonDisable(!0)}onTimerEnded(){this.toggleButtonDisable(!1)}onClick(){this.timer.reset()}toggleButtonDisable(t){setTimeout(()=>{t?this.button.setAttribute("disabled","true"):this.button.removeAttribute("disabled")})}}),DM=st(Sp),vM=TM.cssVarList,zM={[vM.gap]:DM.spacing.sm,[vM.flexDirection]:"column",_horizontal:{[vM.flexDirection]:"row",timerPosition:{end:{[vM.flexDirection]:"row-reverse"}}},timerPosition:{end:{[vM.flexDirection]:"column-reverse"}},_fullWidth:{[vM.hostWidth]:"100%"},_timerInside:{[vM.timerTextColor]:"currentColor",[vM.timerIconColor]:"currentColor",[vM.timerHostWidth]:"auto",[vM.buttonLabelSpacing]:"0",[vM.timerInsideGapEnd]:`var(${vM.gap})`,timerPosition:{end:{[vM.timerInsideGapStart]:`var(${vM.gap})`}}}};var CM=Object.freeze({__proto__:null,default:zM,vars:vM});const SM=f("password-strength");class wM extends(jt({componentName:SM,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',O("\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 rD}).then(t=>t.default);#ui=-1;async calcScore(){const t=this.getAttribute("value")||"";return t?(await this.getCalcScoreFn())(t).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((t,e)=>{const i=document.createElement("div");return i.classList.add("bar"),i.classList.toggle("filled",e<=this.#ui),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#ui&&(this.#ui=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#ui})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#ui)}),this.textContainer.innerHTML=this.options[this.#ui]||"",-1===this.#ui?this.removeAttribute("score"):this.setAttribute("score",this.#ui))}attributeChangedCallback(t,e,i){if(e!==i)return"options"===t?this.renderBars():"value"===t?this.onValueChange():void 0}}const{host:AM,bar:LM,filledBar:fM,barsContainer:EM,text:kM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},OM=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:[{...AM,property:"width"},{...AM,property:"min-width"}],hostDirection:{...AM,property:"direction"},hostMinWidth:{...AM,property:"min-width"},barHeight:{...LM,property:"height"},barBorderRadius:{...LM,property:"border-radius"},emptyBarColor:{...LM,property:"background-color"},filledBarColor:{...fM,property:"background-color"},textColor:{...kM,property:"color"},spacing:{property:"gap"},barSpacing:{...EM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...LM,property:"transition"}}}),mt,yt)(wM),VM=st(Sp),WM=OM.cssVarList,RM={[WM.hostDirection]:VM.direction,[WM.barHeight]:"4px",[WM.barTransition]:"background-color 0.3s",[WM.barBorderRadius]:VM.radius.sm,[WM.hostMinWidth]:th.minWidth,[WM.barSpacing]:VM.spacing.sm,[WM.emptyBarColor]:VM.colors.surface.light,[WM.fontFamily]:th.fontFamily,[WM.fontSize]:th.labelFontSize,[WM.fontWeight]:th.labelFontWeight,[WM.spacing]:VM.spacing.sm,_fullWidth:{[WM.hostWidth]:"100%"},score:{0:{[WM.filledBarColor]:VM.colors.error.light,[WM.textColor]:VM.colors.error.light},1:{[WM.filledBarColor]:VM.colors.error.main,[WM.textColor]:VM.colors.error.main},2:{[WM.filledBarColor]:VM.colors.error.dark,[WM.textColor]:VM.colors.error.dark},3:{[WM.filledBarColor]:VM.colors.success.dark,[WM.textColor]:VM.colors.success.dark},4:{[WM.filledBarColor]:VM.colors.success.main,[WM.textColor]:VM.colors.success.main}}},UM={...WM};var YM=Object.freeze({__proto__:null,default:RM,vars:UM});const QM=f("collapsible-container");class PM extends(jt({componentName:QM,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text","aria-label"]}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="title">\n <div class="icon">\n <descope-icon st-fill="currentcolor" src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K></descope-icon>\n </div>\n <span></span>\n </div>\n </div>\n </descope-text>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n\t',O(`\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 .title {\n display: contents;\n }\n :host([attach-icon="true"]) .header {\n display: block;\n }\n :host([attach-icon="true"]) .title {\n display: inline-flex;\n align-items: baseline;\n }\n .icon {\n flex-shrink: 0;\n height: var(${ki.cssVarList.textLineHeight});\n min-height: 24px;\n display: flex;\n align-items: center;\n }\n descope-icon {\n transition-property: transform;\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")}updateHeaderA11y(){this.isCollapsible?(this.header.setAttribute("role","button"),this.header.setAttribute("tabindex","0"),this.header.setAttribute("aria-expanded",String(!this.isCollapsed)),this.getAttribute("text")?this.header.removeAttribute("aria-label"):this.header.setAttribute("aria-label",this.getAttribute("aria-label")||"Toggle section")):["role","tabindex","aria-expanded","aria-label"].forEach(t=>this.header.removeAttribute(t))}collapse(t=!1){this.content.inert=!0;const e=()=>{this.content.style.maxHeight="0px"};if(this.icon.classList.add("rotate"),!t)return e();this.content.style.maxHeight=this.calcContentHeight()+"px",setTimeout(e)}expand(t=!1){this.content.inert=!1;const e=()=>{this.content.style.maxHeight=""};if(this.icon.classList.remove("rotate"),!t)return e();this.content.addEventListener("transitionend",e,{once:!0}),this.content.style.maxHeight=this.calcContentHeight()+"px"}#pi=!1;init(){super.init?.(),this.#pi=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),this.header.addEventListener("keydown",t=>{!this.isCollapsible||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.toggle())}),k(this,this.textComponent,{includeAttrs:["text-align","text-variant","text-mode"],mapAttrs:{"text-mode":"mode","text-variant":"variant"}})}updateHeaderText(){const t=this.getAttribute("text")||"";this.headerText.innerText=t}attributeChangedCallback(t,e,i){if("text"===t)return this.updateHeaderText(),void this.updateHeaderA11y();"aria-label"!==t?(this.updateHeaderA11y(),this.isCollapsed&&this.isCollapsible?this.collapse(this.#pi):this.expand(this.#pi)):this.updateHeaderA11y()}}const BM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},ZM=T(Mt({mappings:{hostWidth:{selector:BM.host,property:"width"},hostDirection:{selector:BM.host,property:"direction"},verticalPadding:[{selector:BM.wrapper,property:"padding-top"},{selector:BM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:BM.wrapper,property:"padding-left"},{selector:BM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:BM.wrapper},backgroundImage:{selector:BM.wrapper},backgroundPositionX:{selector:BM.wrapper},backgroundPositionY:{selector:BM.wrapper},backgroundSize:{selector:BM.wrapper},backgroundRepeat:{selector:BM.wrapper},borderRadius:{selector:BM.wrapper},borderColor:{selector:BM.wrapper},borderStyle:{selector:BM.wrapper},borderWidth:{selector:BM.wrapper},boxShadow:{selector:BM.wrapper},headerIconOrder:{selector:BM.iconWrapper,property:"order"},headerCursor:{selector:BM.header,property:"cursor"},headerGap:{selector:BM.iconAndText,property:"gap"},textGrow:{selector:BM.text,property:"flex-grow"},textDirection:{selector:BM.text,property:"direction"},iconAnimationDuration:{selector:BM.icon,property:"transition-duration"},contentAnimationDuration:{selector:BM.content,property:"transition-duration"},chevronRotation:{selector:BM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),mt,yt)(PM),FM=st(Sp),GM=ZM.cssVarList,[HM,JM,$M]=lt({shadowColor:"#00000020"},QM),{shadowColor:qM}=JM,_M={...HM,[GM.hostWidth]:"100%",[GM.boxShadow]:"none",[GM.backgroundColor]:FM.colors.surface.main,[GM.backgroundImage]:"",[GM.backgroundPositionX]:"center",[GM.backgroundPositionY]:"center",[GM.backgroundSize]:"cover",[GM.backgroundRepeat]:"no-repeat",[GM.borderRadius]:"0px",[GM.hostDirection]:FM.direction,[GM.flexDirection]:"column",[GM.alignItems]:"flex-start",[GM.justifyContent]:"flex-start",[GM.headerGap]:FM.spacing.md,[GM.chevronRotation]:"rotate(180deg)",[GM.iconAnimationDuration]:"0.1s",[GM.contentAnimationDuration]:"0.1s",[GM.borderWidth]:"0px",[GM.textGrow]:"0",verticalPadding:{sm:{[GM.verticalPadding]:"5px"},md:{[GM.verticalPadding]:"10px"},lg:{[GM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[GM.horizontalPadding]:"5px"},md:{[GM.horizontalPadding]:"10px"},lg:{[GM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[GM.gap]:"10px"},md:{[GM.gap]:"20px"},lg:{[GM.gap]:"30px"}},shadow:{sm:{[GM.boxShadow]:`${FM.shadow.wide.sm} ${qM}, ${FM.shadow.narrow.sm} ${qM}`},md:{[GM.boxShadow]:`${FM.shadow.wide.md} ${qM}, ${FM.shadow.narrow.md} ${qM}`},lg:{[GM.boxShadow]:`${FM.shadow.wide.lg} ${qM}, ${FM.shadow.narrow.lg} ${qM}`},xl:{[GM.boxShadow]:`${FM.shadow.wide.xl} ${qM}, ${FM.shadow.narrow.xl} ${qM}`},"2xl":{[$M.shadowColor]:"#00000050",[GM.boxShadow]:`${FM.shadow.wide["2xl"]} ${qM}`}},borderRadius:{sm:{[GM.borderRadius]:FM.radius.sm},md:{[GM.borderRadius]:FM.radius.md},lg:{[GM.borderRadius]:FM.radius.lg},xl:{[GM.borderRadius]:FM.radius.xl},"2xl":{[GM.borderRadius]:FM.radius["2xl"]},"3xl":{[GM.borderRadius]:FM.radius["3xl"]}},iconPosition:{left:{[GM.headerIconOrder]:"0"},right:{[GM.headerIconOrder]:"1"}},_fillTitle:{[GM.textGrow]:"1"},_border:{[GM.borderColor]:FM.colors.surface.light,[GM.borderWidth]:FM.border.xs,[GM.borderStyle]:"solid"},_collapsible:{[GM.headerCursor]:"pointer"}},XM={...GM,...$M};var KM=Object.freeze({__proto__:null,default:_M,vars:XM});const tm=f("recovery-codes"),em="none",im={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},om=["text","variant","color","size","icon","icon-dark"],nm=["show-download",...Object.keys(im).flatMap(t=>om.map(e=>`${t}-${e}`))];class rm extends(jt({componentName:tm,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...nm]}#hi=em;#gi=!1;#Mi=!1;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="codes-box">\n <div class="list"><div class="codes-list"></div></div>\n <descope-text class="icon-wrapper">\n <div class="icons">\n <vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>\n <vaadin-icon class="icon download-icon" icon="vaadin:download-alt" title="Download"></vaadin-icon>\n </div>\n </descope-text>\n </div>\n <div class="error-message"></div>\n <div class="buttons-row"></div>\n </div>\n ',this.list=this.shadowRoot.querySelector(".list"),this.copyIcon=this.shadowRoot.querySelector(".copy-icon"),this.downloadIcon=this.shadowRoot.querySelector(".download-icon"),this.iconWrapper=this.shadowRoot.querySelector(".icon-wrapper"),this.errorMessageEle=this.shadowRoot.querySelector(".error-message"),this.buttonsRow=this.shadowRoot.querySelector(".buttons-row"),O('\n :host {\n display: inline-block;\n position: relative;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n }\n .codes-box {\n display: flex;\n justify-content: space-between;\n box-sizing: border-box;\n /* border shows the error ring inside the box; style/width/color/radius come from theme */\n }\n .list {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n /* text-align maps to align-items here, so it positions the codes block\n (start/center/end) inside the available space, not each row */\n }\n .codes-list {\n display: flex;\n flex-direction: column;\n /* rows always start-aligned so the bullets line up in any font.\n width:fit-content hugs the codes so .list can position the whole\n block (keep it, it also defeats the stretch fallback) */\n align-items: flex-start;\n width: fit-content;\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 .icons {\n display: flex;\n flex-direction: column;\n }\n .icon {\n cursor: pointer;\n }\n .icon.copied {\n cursor: initial;\n /* block re-clicks while the checkmark shows, so rapid clicks cannot repeat the action */\n pointer-events: none;\n }\n /* readonly is a host attribute, so disable pointer events from one place */\n :host([readonly="true"]) .icon,\n :host([readonly="true"]) .buttons-row {\n pointer-events: none;\n }\n .download-icon {\n display: none;\n }\n :host([show-download="true"]) .download-icon {\n display: inline-flex;\n }\n .error-message {\n display: none;\n /* width:0 + min-width:100% lets the message wrap to the component width without\n its text expanding the (shrink-to-fit) component; full-width still fills the parent */\n width: 0;\n min-width: 100%;\n box-sizing: border-box;\n line-height: 1.2;\n overflow-wrap: break-word;\n }\n :host([invalid]) .error-message {\n display: block;\n }\n .buttons-row {\n display: none;\n }\n :host([display-variant="buttons"]) .icon-wrapper {\n display: none;\n }\n :host([display-variant="buttons"]) .buttons-row {\n display: flex;\n flex-wrap: wrap;\n }\n /* grow to fill equally; don\'t shrink below content, so they wrap to a new line\n when they don\'t fit (like a container with auto-fit items) */\n .buttons-row > descope-button {\n flex: 1 0 auto;\n }\n ',this)}get variant(){return this.getAttribute("variant")}get mode(){return this.getAttribute("mode")}get value(){return this.#hi}#mi(t){return this.hasAttribute(t)&&"false"!==this.getAttribute(t)}get isRequired(){return this.#mi("required")}get isReadOnly(){return this.#mi("readonly")}get errorMessage(){return this.getAttribute("data-errormessage-value-missing")||"Copy or download your recovery codes to continue."}get codesText(){return String((this.data||[]).map(t=>t.value).join("\n"))}init(){super.init(),this.copyIcon.addEventListener("click",this.onCopy.bind(this)),this.downloadIcon.addEventListener("click",this.onDownload.bind(this)),k(this,this.iconWrapper,{includeAttrs:["variant","mode"]}),this.renderButtons(),this.#Mi=!0}get isDownloadEnabled(){return"true"===this.getAttribute("show-download")}renderButtons(){if(!this.buttonsRow)return;const t=[this.buildButton("copy")];this.isDownloadEnabled&&t.push(this.buildButton("download")),this.buttonsRow.replaceChildren(...t)}buildButton(t){const{defaultText:e}=im[t],i=(e,i)=>this.getAttribute(`${t}-${e}`)||i,o=document.createElement("descope-button");o.setAttribute("data-action",t),o.setAttribute("variant",i("variant","outline")),o.setAttribute("mode",i("color","primary")),o.setAttribute("size",i("size","md"));const n=this.getAttribute(`${t}-icon`);if(n){const e=document.createElement("descope-icon");e.setAttribute("src",n);const i=this.getAttribute(`${t}-icon-dark`);i&&e.setAttribute("src-dark",i),o.appendChild(e)}return o.appendChild(document.createTextNode(i("text",e))),o.addEventListener("click",()=>"copy"===t?this.onCopy():this.onDownload()),o}onCopy(){this.isReadOnly||(navigator.clipboard.writeText(this.codesText),this.showActionFeedback(this.copyIcon,"Copied"),this.recordAction("copied"))}onDownload(){if(this.isReadOnly)return;const t=new Blob([this.codesText],{type:"text/plain"}),e=URL.createObjectURL(t),i=document.createElement("a");i.href=e,i.download="recovery-codes.txt",i.click(),URL.revokeObjectURL(e),this.showActionFeedback(this.downloadIcon,"Downloaded"),this.recordAction("downloaded")}recordAction(t){this.#hi=t,this.dispatchEvent(new Event("change",{bubbles:!0})),this.checkValidity()&&(this.#gi=!1),this.syncValidityUI()}showActionFeedback(t,e){t.feedbackTimer?clearTimeout(t.feedbackTimer):(t.originalIcon=t.getAttribute("icon"),t.originalTitle=t.getAttribute("title")),t.setAttribute("icon","vaadin:check-circle-o"),t.setAttribute("title",e),t.classList.add("copied"),t.feedbackTimer=setTimeout(()=>{t.setAttribute("icon",t.originalIcon),t.setAttribute("title",t.originalTitle),t.classList.remove("copied"),t.feedbackTimer=null},5e3)}checkValidity(){return this.isReadOnly||!this.isRequired||this.value!==em}reportValidity(){const t=this.checkValidity();return this.#gi=!t,this.syncValidityUI(),t}syncValidityUI(){this.toggleAttribute("invalid",this.#gi),this.errorMessageEle&&(this.errorMessageEle.textContent=this.#gi?this.errorMessage:"")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("required"!==t||this.isRequired||(this.#gi=!1,this.syncValidityUI()),this.#Mi&&nm.includes(t)&&this.renderButtons())}}const sm=T(Mt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>ki.componentName,property:ki.cssVarList.hostDirection}],textAlign:{selector:()=>".list",property:"align-items"},iconColor:{selector:()=>"vaadin-icon",property:"color"},iconSize:{selector:()=>"vaadin-icon",property:"font-size"},iconGap:{selector:()=>".codes-box",property:"gap"},iconStackGap:{selector:()=>".icons",property:"gap"},buttonsGap:{selector:()=>".buttons-row",property:"gap"},sectionsGap:{selector:()=>".wrapper",property:"gap"},bulletGap:{selector:()=>"descope-text span",property:"gap"},verticalPadding:[{selector:()=>".codes-box",property:"padding-top"},{selector:()=>".codes-box",property:"padding-bottom"},{selector:()=>".buttons-row",property:"padding-bottom"}],horizontalPadding:[{selector:()=>".codes-box",property:"padding-left"},{selector:()=>".codes-box",property:"padding-right"},{selector:()=>".buttons-row",property:"padding-left"},{selector:()=>".buttons-row",property:"padding-right"}],errorBorderColor:{selector:()=>".codes-box",property:"border-color"},errorMessageColor:{selector:()=>".error-message",property:"color"},errorMessageFontSize:{selector:()=>".error-message",property:"font-size"},errorMessageFontWeight:{selector:()=>".error-message",property:"font-weight"},errorMessageFontFamily:{selector:()=>".error-message",property:"font-family"},boxBorderRadius:{selector:()=>".codes-box",property:"border-radius"},errorBorderWidth:{selector:()=>".codes-box",property:"border-width"},boxBorderStyle:{selector:()=>".codes-box",property:"border-style"}}}),Mt({componentNameOverride:f("input-wrapper")}),Yt({itemRenderer:({value:t},e,i)=>`\n <descope-text variant="${i.variant}" mode="${i.mode}">\n <span>${t}</span>\n </descope-text>\n `,rerenderAttrsList:["variant","mode"],targetSelector:".codes-list"}),mt,yt)(rm),am=st(Sp),lm=sm.cssVarList,dm=ki.cssVarList,cm={[lm.hostMinWidth]:"190px",[lm.hostDirection]:am.direction,[lm.iconColor]:at(dm.textColor),[lm.iconSize]:at(dm.fontSize),[lm.iconGap]:"8px",[lm.iconStackGap]:"16px",[lm.buttonsGap]:"8px",[lm.sectionsGap]:"8px",[lm.bulletGap]:"0.35em",[lm.verticalPadding]:"0",[lm.horizontalPadding]:"0",[lm.errorBorderColor]:"transparent",[lm.errorBorderWidth]:th.borderWidth,[lm.boxBorderRadius]:th.borderRadius,[lm.boxBorderStyle]:"solid",[lm.errorMessageColor]:th.errorMessageTextColor,[lm.errorMessageFontSize]:th.errorMessageFontSize,[lm.errorMessageFontWeight]:th.errorMessageFontWeight,[lm.errorMessageFontFamily]:th.fontFamily,textAlign:{right:{[lm.textAlign]:"flex-end"},left:{[lm.textAlign]:"flex-start"},center:{[lm.textAlign]:"center"}},displayVariant:{buttons:{[lm.hostMinWidth]:"100px"}},_fullWidth:{[lm.hostWidth]:"100%"},_invalid:{[lm.errorBorderColor]:th.errorMessageTextColor}};var um=Object.freeze({__proto__:null,default:cm,vars:lm});const pm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40ID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g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},hm=f("active-sessions"),gm=lg.componentName;let Mm;const mm={selector:()=>":host"},ym={selector:()=>gm},bm=T(Mt({mappings:{hostWidth:[{...mm,property:"width"},{...ym,property:lg.cssVarList.hostWidth}],hostDirection:[{...mm,property:"direction"},{...ym,property:lg.cssVarList.hostDirection}]}}),mt,Wt({name:"overlay",forward:!1,selector:async t=>{const e=await(async t=>{if(!t)return null;const e=await L(()=>t)();return e instanceof ShadowRoot?e:null})(t?.querySelector("vaadin-multi-select-combo-box"));return e?.querySelector("vaadin-multi-select-combo-box-internal")},style:"\n .session {\n display: flex;\n flex-direction: column;\n }\n /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the\n title and widen the space to the location line. */\n .session .device descope-text,\n .session .device descope-text::part(text-wrapper) {\n display: block;\n }\n /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,\n so a container outside would only ever see the slot as its single item. */\n .session .device-row {\n display: flex;\n align-items: center;\n }\n .session .device-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n }\n",mappings:{rowGap:{selector:".session",property:"gap"},deviceRowGap:{selector:".device-row",property:"gap"}}}),Vt({proxyProps:["value"],inputEvent:"change",proxyParentValidation:!0}),yt,t=>class extends t{get lastLoginLabel(){return this.getAttribute("last-login-label")??"Last login:"}get unknownDeviceLabel(){return this.getAttribute("unknown-device-label")??"Unknown device"}init(){var t;super.init?.(),this.inputElement=this.baseElement,this.inputElement.renderItem=(t=this,({value:e,deviceName:i,deviceType:o,city:n,country:r,loginTime:s}={})=>{const a=i||t.unknownDeviceLabel,l=(Mm||(Mm=document.createElement("template"),Mm.innerHTML='\n <div class="session">\n <div class="device">\n <descope-text variant="body1" mode="primary" st-font-size="1em">\n <div class="device-row">\n <descope-icon class="device-icon" aria-hidden="true"></descope-icon>\n <span class="device-name"></span>\n </div>\n </descope-text>\n </div>\n <div class="location">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n <div class="last-login">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n </div>\n ',Mm)).content.cloneNode(!0).firstElementChild;l.setAttribute("data-id",e??""),l.setAttribute("data-name",a),l.querySelector(".device-name").textContent=a;const{iconSrc:d,iconSrcDark:c}=(t=>{const e=pm[t]||pm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),u=l.querySelector(".device-icon");u.setAttribute("src",d),u.setAttribute("src-dark",c);const p=(t,e)=>{const i=l.querySelector(t);e?i.firstElementChild.textContent=e:i.remove()};p(".location",(({country:t,city:e})=>[e,t].filter(Boolean).join(", "))({country:r,city:n}));const h=(t=>{const e=parseInt(t,10);if(Number.isNaN(e)||e<=0)return"";const i=new Date(1e3*e),o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};try{return i.toLocaleString(void 0,{...o,timeZoneName:"shortOffset"})}catch{return i.toLocaleString(void 0,o)}})(s);return p(".last-login",h&&t.lastLoginLabel?`${t.lastLoginLabel} ${h}`:h),l.outerHTML}),this.inputElement.setAttribute("allow-custom-value","false"),this.inputElement.setAttribute("item-label-path","data-name"),this.inputElement.setAttribute("item-value-path","data-id")}})(ft({slots:[],wrappedEleName:gm,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${gm} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:hm})),Nm=bm.cssVarList,Im={[Nm.hostWidth]:th.width,[Nm.hostDirection]:th.direction,[Nm.overlay.rowGap]:"0.125em",[Nm.overlay.deviceRowGap]:"0.5em",_fullWidth:{[Nm.hostWidth]:"100%"}};var xm=Object.freeze({__proto__:null,default:Im,vars:Nm});const jm=f("outbound-apps"),Tm=({name:t,description:e,logo:i,appId:o,isConnected:n},r,s)=>{const a=n?"disconnect":"connect",l=document.createElement("template");l.innerHTML=`\n <descope-list-item>\n <descope-avatar\n size=${s.size}\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 ></descope-text>\n ${e?'\n <descope-text\n class="app-description"\n variant="body2"\n mode="primary"\n ></descope-text>\n ':""}\n </div>\n <div class="controls">\n <descope-button variant="link" mode="primary" size=${s.size} data-action="${a}" data-id="${a}">\n ${n?s.disconnectButtonLabel:s.connectButtonLabel}\n </descope-button>\n </div>\n </descope-list-item>\n`;const d=l.content.querySelector("descope-avatar"),c=z(i,{allowDataImage:!0});return c&&(d.setAttribute("img",c),d.setAttribute("st-avatar-background-color","none")),t&&(d.setAttribute("display-name",t),d.setAttribute("abbr",R(t))),l.content.querySelector(".app-title").textContent=t??"",e&&(l.content.querySelector(".app-description").textContent=e),l.content.querySelector("descope-button").setAttribute("data-outbound-app-id",o),l},Dm=jt({componentName:jm,baseSelector:"descope-list"}),{host:vm}={host:{selector:()=>":host"}},zm=T(Mt({mappings:{hostWidth:{...vm,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...vm,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:Eo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:Eo.cssVarList.fill},fontSize:{selector:ki.componentName,property:ki.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:ki.componentName,property:ki.cssVarList.textAlign},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>bu.componentName,property:bu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>bu.componentName,property:bu.cssVarList.emptyStateVerticalPadding}}}),mt,Yt({itemRenderer:Tm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),yt)(class extends Dm{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"),O("\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=Tm,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}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"}}),Cm=zm.cssVarList,Sm={[Cm.iconColor]:Sp.colors.primary.main,[Cm.errorIconColor]:Sp.colors.error.main,[Cm.appLogoGap]:Sp.spacing.md,[Cm.contentGap]:Sp.spacing.xs,[Cm.itemCursor]:"default",[Cm.itemOutline]:"none",[Cm.itemBorderColor]:"transparent",[Cm.listPadding]:"0",[Cm.listBorderWidth]:"0",[Cm.listBoxShadow]:"none",[Cm.emptyStateMinHeight]:"0",[Cm.emptyStateVerticalPadding]:Sp.spacing.lg,size:{xs:{[Cm.fontSize]:"0.6em"},sm:{[Cm.fontSize]:"0.8em"},md:{[Cm.fontSize]:"1em"},lg:{[Cm.fontSize]:"1.5em"}}};var wm=Object.freeze({__proto__:null,default:Sm,vars:Cm});const Am=f("outbound-app-button");class Lm extends(jt({componentName:Am,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 ',O("\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?.(),k(this,this.button,{excludeAttrs:["style","class","label","icon-src","icon-fill-current-color"]})}updateLabel(t=""){this.label.textContent=t,this.label.classList.toggle("hidden",!t)}updateIcon(t=""){this.icon.setAttribute("src",t),this.icon.classList.toggle("hidden",!t)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.updateLabel(i):"icon-src"===t&&this.updateIcon(i))}}const fm=T(Mt({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Uo.cssVarList.iconColor}}}),mt,yt)(Lm),Em=fm.cssVarList,km={[Em.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Em.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Em.hostWidth]:"100%"}},Om=Em;var Vm=Object.freeze({__proto__:null,default:km,vars:Om});const Wm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Rm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dH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DIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},Um=f("trusted-devices"),Ym=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=Rm[t]||Rm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),c=s.lastLoginLabel?`${s.lastLoginLabel} `:"",u=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,s.format),p=n?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${s.direction}"\n >\n ${s.currentDeviceLabel}\n </descope-badge>`:"",h=s.hideActions||n?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${t}"\n st-host-direction="${s.direction}"\n ellipsis="true"\n >\n ${s.removeDeviceLabel}\n </descope-link>`,g=document.createElement("template");return g.innerHTML=`\n <descope-list-item ${a}>\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 ${p}\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 ${u}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,g.content.querySelector(".device-name").textContent=e,g},Qm=jt({componentName:Um,baseSelector:bu.componentName}),{host:Pm}={host:{selector:()=>":host"}},Bm=T(Mt({mappings:{hostWidth:{...Pm,property:"width"},hostMinWidth:{...Pm,property:"min-width"},hostDirection:[{...Pm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:bu.cssVarList.gap},listBackgroundColor:{selector:()=>bu.componentName,property:bu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bu.componentName,property:bu.cssVarList.borderRadius},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>bu.componentName,property:bu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>bu.componentName,property:bu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPadding},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBorderRadius:{selector:Mu.componentName,property:Mu.cssVarList.borderRadius},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:Lc.componentName,property:Lc.cssVarList.borderColor},badgeTextColor:{selector:Lc.componentName,property:Lc.cssVarList.textColor},badgeBackgroundColor:{selector:Lc.componentName,property:Lc.cssVarList.backgroundColor},badgeBorderRadius:{selector:Lc.componentName,property:Lc.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"}}}),mt,Yt({itemRenderer:Ym,sortFn:(t,e)=>Wm(e.lastLoginDate)-Wm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),yt)(class extends Qm{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"),O("\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=Ym,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,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")}}),Zm=Bm.cssVarList,Fm={[Zm.hostWidth]:"auto",[Zm.hostWidth]:"300px",[Zm.hostMinWidth]:"300px",[Zm.listBackgroundColor]:"transparent",[Zm.listBorderRadius]:"0",[Zm.listBorderWidth]:"0",[Zm.listPadding]:"0",[Zm.listBoxShadow]:"none",[Zm.listItemsGap]:Sp.spacing.lg,[Zm.emptyStateMinHeight]:"0",[Zm.emptyStateVerticalPadding]:Sp.spacing.lg,[Zm.itemBorderColor]:Sp.colors.surface.light,[Zm.itemVerticalPadding]:Sp.spacing.lg,[Zm.itemHorizontalPadding]:Sp.spacing.lg,[Zm.itemBorderRadius]:Sp.radius.xs,[Zm.itemOutline]:"transparent",[Zm.itemBackgroundColor]:"transparent",[Zm.itemCursor]:"default",[Zm.itemContentGap]:Sp.spacing.sm,[Zm.badgeBorderColor]:Sp.colors.surface.light,[Zm.badgeTextColor]:Sp.colors.surface.dark,[Zm.badgeBorderRadius]:Sp.radius.xs,[Zm.badgeBackgroundColor]:Sp.colors.surface.main,[Zm.devicePanelGap]:Sp.spacing.md,[Zm.deviceIconGap]:Sp.spacing.md,[Zm.deviceIconSize]:"24px",[Zm.lastLoginLabelGap]:Sp.spacing.xs,_fullWidth:{[Zm.hostWidth]:"100%"}};var Gm=Object.freeze({__proto__:null,default:Fm,vars:Zm});const Hm=f("multi-sso"),Jm=({id:t,name:e,isDefault:i,link:o,authType:n,authOnly:r},s,a)=>{const l=!i&&a?.allowDelete?`<span\n class="delete-btn delete-icon"\n data-action="delete"\n role="button"\n tabindex="0"\n title="${a.deleteTooltipLabel}"\n ></span>`:"",d=o&&a?.allowConfigure?`<a\n class="external-link external-link-icon"\n target="_blank"\n rel="noopener noreferrer"\n title="${a.configureTooltipLabel}"\n ></a>`:"",{label:c,configured:u}=(t=>t&&"none"!==t?{label:t.toUpperCase(),configured:!0}:{label:"Not Configured",configured:!1})(n),p=r?'<descope-badge class="auth-only-badge" size="xs"><span class="auth-only-text"></span></descope-badge>':"",h=u?`<div class="auth-type-row">\n <descope-badge class="auth-type-badge" size="xs"></descope-badge>\n ${p}\n </div>`:`<div class="auth-type-row">\n <descope-text\n not-configured\n variant="body2"\n mode="secondary"\n >${a?.notConfiguredLabel}</descope-text>\n ${p}\n </div>`,g=document.createElement("template");g.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="top-row">\n <descope-text\n class="config-name"\n variant="body1"\n mode="primary"\n ></descope-text>\n <span class="action">\n ${l}\n ${d}\n </span>\n </div>\n ${h}\n </div>\n </descope-list-item>\n `,g.content.querySelector(".config-name").textContent=e;const M=g.content.querySelector(".delete-btn");if(M){M.dataset.id=t,M.dataset.name=e,M.setAttribute("aria-label",a.deleteTooltipLabel);const i=U(a,"delete-icon");i&&M.append(i)}const m=g.content.querySelector(".external-link");if(m){m.setAttribute("aria-label",a.configureTooltipLabel),o&&m.setAttribute("href",o);const t=U(a,"external-link-icon");t&&m.append(t)}const y=g.content.querySelector(".auth-type-badge");y&&(y.textContent=c);const b=g.content.querySelector(".auth-only-text");return b&&(b.textContent=a?.authOnlyLabel),g},$m=jt({componentName:Hm,baseSelector:"span.wrapper"}),{host:qm}={host:{selector:()=>":host"}},_m=T(Mt({mappings:{hostWidth:{...qm,property:"width"},hostMinWidth:{...qm,property:"min-width"},hostDirection:[{...qm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],headerGap:{selector:()=>".header",property:"gap"},headerListGap:{selector:()=>"descope-list",property:"margin-top"},itemContentGap:{selector:()=>".content",property:"gap"},actionGap:{selector:()=>".action",property:"gap"},authTypeRowGap:{selector:()=>".auth-type-row",property:"gap"},unconfiguredAuthTypeTextColor:{selector:()=>"[not-configured]",property:ki.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Uo.componentName,property:Uo.cssVarList.hostMaxWidth},listItemsGap:{property:bu.cssVarList.gap},listBackgroundColor:{selector:()=>bu.componentName,property:bu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bu.componentName,property:bu.cssVarList.borderRadius},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPadding},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBorderRadius:{selector:Mu.componentName,property:Mu.cssVarList.borderRadius},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderColor},badgeTextColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderRadius},titleIconSize:[{selector:()=>'::slotted([slot="title-icon"])',property:"width"},{selector:()=>'::slotted([slot="title-icon"])',property:"height"}],createButtonIconSize:[{selector:()=>'::slotted([slot="create-button-icon"])',property:"width"},{selector:()=>'::slotted([slot="create-button-icon"])',property:"height"}],actionIconSize:[{selector:()=>".delete-icon",property:"width"},{selector:()=>".delete-icon",property:"height"},{selector:()=>".external-link-icon",property:"width"},{selector:()=>".external-link-icon",property:"height"}],actionIconColor:[{selector:()=>".delete-icon",property:Eo.cssVarList.fill},{selector:()=>".external-link-icon",property:Eo.cssVarList.fill}]}}),mt,Yt({targetSelector:"descope-list",itemRenderer:Jm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),yt)(class extends $m{static get observedAttributes(){return["label","create-button-label","not-configured-label","delete-tooltip-label","configure-tooltip-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <span class="wrapper">\n <div class="header">\n <slot name="title-icon"></slot>\n <descope-text class="title" variant="body1" mode="primary"></descope-text>\n <descope-button\n class="create-button"\n size="sm"\n variant="link"\n mode="primary"\n data-action="create"\n >\n <slot name="create-button-icon" slot="prefix"></slot>\n <span class="create-button-label"></span>\n </descope-button>\n </div>\n <descope-list></descope-list>\n <slot name="delete-icon" class="hidden"></slot>\n <slot name="external-link-icon" class="hidden"></slot>\n </span>\n ',this.listEl=this.shadowRoot.querySelector("descope-list"),this.deleteIconSlot=this.shadowRoot.querySelector('slot[name="delete-icon"]'),this.externalLinkIconSlot=this.shadowRoot.querySelector('slot[name="external-link-icon"]'),O('\n :host {\n display: inline-block;\n }\n\n :host(:not([allow-create="true"])) .create-button {\n display: none;\n }\n\n .create-button {\n min-width: 0;\n flex-shrink:1;\n }\n\n .header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n slot[name="title-icon"] {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .title {\n flex: 1;\n min-width: 0;\n width:0;\n flex-shrink: 0;\n\n }\n\n .title::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n }\n\n .top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n }\n\n .config-name {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .config-name::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .auth-type-row {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n /* The auth type is short and fixed, so it keeps its size and the consumer-supplied label is\n the one that gives way. */\n .auth-type-badge {\n flex-shrink: 0;\n }\n\n /* The label is consumer-supplied and localized, so it can be far longer than the row. It\n shrinks to whatever the row leaves it and ellipsises only then, rather than being held to a\n fixed width that would truncate it while space is still going spare. */\n .auth-only-badge {\n min-width: 0;\n flex-shrink: 1;\n }\n\n .auth-only-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .action {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .hidden {\n display: none;\n }\n\n .delete-btn {\n cursor: pointer;\n display: flex;\n }\n\n .delete-icon > *,\n .external-link-icon > * {\n width: 100%;\n height: 100%;\n }\n\n .external-link {\n cursor: pointer;\n color: inherit;\n display: flex;\n }\n\n descope-text {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n ',this)}get deleteTooltipLabel(){return this.getAttribute("delete-tooltip-label")??""}get configureTooltipLabel(){return this.getAttribute("configure-tooltip-label")??""}get authOnlyLabel(){return this.getAttribute("auth-only-label")||"Authentication only"}init(){super.init?.(),this.shadowRoot.querySelector(".title").textContent=this.label,this.shadowRoot.querySelector(".create-button-label").textContent=this.createButtonLabel,this.listEl.itemRenderer=(t,e)=>Jm(t,0,this),this.shadowRoot.querySelector('[data-action="create"]').addEventListener("click",this.onCreateClick.bind(this)),this.listEl.addEventListener("click",this.onItemClick.bind(this)),k(this.listEl,this,{includeAttrs:["empty"]});const t=()=>{this.data&&(this.data=[...this.data])};this.deleteIconSlot.addEventListener("slotchange",t),this.externalLinkIconSlot.addEventListener("slotchange",t)}onCreateClick(){this.dispatchEvent(new CustomEvent("create-clicked",{bubbles:!0,detail:{}}))}onItemClick(t){const e=t.target.closest('[data-action="delete"]');if(!e)return;const i=e.getAttribute("data-id"),o=e.getAttribute("data-name");i&&this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,detail:{id:i,name:o}}))}get allowCreate(){return"true"===this.getAttribute("allow-create")}get allowDelete(){return"true"===this.getAttribute("allow-delete")}get allowConfigure(){return"true"===this.getAttribute("allow-configure")}get label(){return this.getAttribute("label")}get createButtonLabel(){return this.getAttribute("create-button-label")}get notConfiguredLabel(){return this.getAttribute("not-configured-label")||"Not Configured"}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("label"===t){const t=this.shadowRoot?.querySelector(".title");t&&(t.textContent=this.label)}else if("create-button-label"===t){const t=this.shadowRoot?.querySelector(".create-button-label");t&&(t.textContent=this.createButtonLabel)}else"empty"===t&&this.listEl.classList.toggle("hidden","true"===i)}}),Xm=_m.cssVarList,Km=st(Sp),ty={[Xm.hostWidth]:"300px",[Xm.headerGap]:Km.spacing.md,[Xm.headerListGap]:Km.spacing.md,[Xm.itemContentGap]:Km.spacing.md,[Xm.actionGap]:Km.spacing.sm,[Xm.authTypeRowGap]:Km.spacing.sm,[Xm.unconfiguredAuthTypeTextColor]:Km.colors.surface.dark,[Xm.unconfiguredAuthTypeTextFontStyle]:"italic",[Xm.buttonMaxWidth]:"50%",[Xm.listBackgroundColor]:"transparent",[Xm.listBorderRadius]:"0",[Xm.listBorderWidth]:"0",[Xm.listPadding]:"0",[Xm.listBoxShadow]:"none",[Xm.listItemsGap]:Km.spacing.lg,[Xm.itemBorderColor]:Km.colors.surface.light,[Xm.itemVerticalPadding]:Km.spacing.lg,[Xm.itemHorizontalPadding]:Km.spacing.lg,[Xm.itemBorderRadius]:Km.radius.xs,[Xm.itemOutline]:"transparent",[Xm.itemBackgroundColor]:"transparent",[Xm.itemCursor]:"default",[Xm.badgeBorderColor]:Km.colors.surface.light,[Xm.badgeTextColor]:Km.colors.surface.dark,[Xm.badgeBorderRadius]:Km.radius.xs,[Xm.badgeBackgroundColor]:Km.colors.surface.main,[Xm.titleIconSize]:"24px",[Xm.createButtonIconSize]:"12px",[Xm.actionIconSize]:"20px",[Xm.actionIconColor]:Km.colors.surface.dark,_fullWidth:{[Xm.hostWidth]:"100%"}};var ey=Object.freeze({__proto__:null,default:ty,vars:Xm});const iy=f("tooltip"),oy=["text","position","hide-delay","hover-delay","opened"];class ny extends(jt({componentName:iy,baseSelector:"vaadin-tooltip"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <vaadin-tooltip slot="anchored"></vaadin-tooltip>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.tooltip=this.shadowRoot.querySelector("vaadin-tooltip"),this.anchored=this.shadowRoot.querySelector("descope-anchored")}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}static get observedAttributes(){return oy.concat(super.observedAttributes||[])}get isOpened(){return"true"===this.getAttribute("opened")}get overlay(){return this.tooltip?._overlayElement}get overlayContentNode(){return this.overlay?.shadowRoot.querySelector('[part="content"]')}get tooltipText(){return this.getAttribute("text")?.trim()||""}get isStaticDisplay(){return"true"===this.getAttribute("static-display")}get srLabel(){return this.tooltip?.querySelector('[slot="sr-label"]')}#Ni(){this.isStaticDisplay?(this.#Ii(),this.setAttribute("inert","true")):this.removeAttribute("inert")}#Ii(){this.overlay&&(this.overlay.style.display="block",this.overlay.style.position="static")}init(){super.init?.(),O('\n :host {\n display: inline-block;\n }\n vaadin-tooltip {\n display: block;\n position: absolute;\n width: 0;\n height: 0;\n overflow: hidden;\n }\n /* Stack anchor above the anchored element so the tooltip flows below it inline. */\n :host([static-display="true"]) descope-anchored::part(root) {\n flex-direction: column;\n }\n :host([static-display="true"]) descope-anchored::part(anchored) {\n position: static;\n inset: unset;\n }\n :host([static-display="true"]) vaadin-tooltip {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n }\n :host([static-display="true"]) vaadin-tooltip [slot="sr-label"] {\n display: none;\n }\n',this),this.tooltip.ariaTarget=this.anchored,this.defaultSlot.addEventListener("slotchange",()=>this.#xi()),this.#xi(),setTimeout(()=>this.#ji())}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=C(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#xi(){const t=this.defaultSlot?.assignedElements()?.[0];t&&(this.tooltip.target=t)}#ji(){this.#Di(),this.#vi(),k(this,this.tooltip,{includeAttrs:["position","opened"]}),this.#zi()}#Ci(){this.overlayContentNode.innerHTML=""}#Si(){const t=document.createElement("descope-enriched-text");return t.setAttribute("link-target-blank","true"),t.textContent=this.tooltipText,t}#Di(){this.overlayContentNode&&setTimeout(()=>{this.#Ci(),this.textComponent=this.#Si(),this.overlayContentNode.appendChild(this.textComponent),this.srLabel&&!this.tooltipText&&this.srLabel.setAttribute("aria-hidden","true"),k(this,this.textComponent,{includeAttrs:["readonly"]})})}#vi(){if(!this.overlay)return;const t=this.overlay._attachOverlay?.bind(this.overlay);this.overlay._detachOverlay=()=>{},this.overlay._attachOverlay=()=>{t?.(),setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.overlay._updatePosition?.()})},this.isOpened&&setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.#Ni(),this.overlay._updatePosition?.()})}#zi(){this.tooltip?.toggleAttribute("manual",this.isOpened)}#wi(t){if(!this.textComponent)return;const e=(t??"").trim();this.textComponent.textContent=e,this.srLabel&&(e?this.srLabel.removeAttribute("aria-hidden"):this.srLabel.setAttribute("aria-hidden","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("text"===t&&this.#wi(i),"opened"===t&&this.#zi())}}const{overlay:ry,content:sy}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},ay=T(yt,Wt({selector:"",mappings:{fontFamily:{...sy,property:Ht.cssVarList.fontFamilyOverride},fontSize:{...sy,property:Ht.cssVarList.fontSizeOverride},fontWeight:{...sy,property:Ht.cssVarList.fontWeightOverride},textColor:{...sy,property:Ht.cssVarList.textColorOverride},hostDirection:{...sy,property:Ht.cssVarList.hostDirectionOverride},backgroundColor:[{...ry},{...sy}],borderColor:{...ry},borderStyle:{...ry},borderWidth:{...ry},borderRadius:{...ry},boxShadow:{...ry},horizontalPadding:[{...sy,property:"padding-left"},{...sy,property:"padding-right"}],verticalPadding:[{...sy,property:"padding-top"},{...sy,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(ny),ly=st(Sp),dy=ay.cssVarList,[cy,uy,py]=lt({shadowColor:"#00000020"},iy),{shadowColor:hy}=uy,gy=`${ly.shadow.wide.sm} ${hy}, ${ly.shadow.narrow.sm} ${hy}`,My={...cy,[dy.fontFamily]:ly.fonts.font1.family,[dy.fontSize]:Sp.typography.body2.size,[dy.fontWeight]:Sp.typography.body2.weight,[dy.textColor]:ly.colors.surface.contrast,[dy.hostDirection]:ly.direction,[dy.backgroundColor]:ly.colors.surface.main,[dy.borderColor]:ly.colors.surface.light,[dy.borderStyle]:"solid",[dy.borderWidth]:ly.border.xs,[dy.borderRadius]:ly.radius.xs,[dy.horizontalPadding]:ly.spacing.md,[dy.verticalPadding]:ly.spacing.sm,[dy.boxShadow]:gy,shadow:{sm:{[dy.boxShadow]:gy},md:{[dy.boxShadow]:`${ly.shadow.wide.md} ${hy}, ${ly.shadow.narrow.md} ${hy}`},lg:{[dy.boxShadow]:`${ly.shadow.wide.lg} ${hy}, ${ly.shadow.narrow.lg} ${hy}`},xl:{[dy.boxShadow]:`${ly.shadow.wide.xl} ${hy}, ${ly.shadow.narrow.xl} ${hy}`},"2xl":{[py.shadowColor]:"#00000050",[dy.boxShadow]:`${ly.shadow.wide["2xl"]} ${hy}`}}};var my=Object.freeze({__proto__:null,default:My,vars:dy});const yy=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[dataService] ${e.status} ${t}`);const i=await e.json();return i.data??i},by=async t=>yy(`${t}/countries.json`),Ny=async(t,e)=>{try{return(await yy(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},Iy=async(t,e,i)=>yy(`${i}/countries/${t}/subdivisions/${e}/cities.json`),xy=async t=>{const e=new URL("../labels.json",`${t}/`).href;return yy(e)},jy=async(t,e)=>yy(`${e}/countries/${t}/cities.json`),Ty=f("country-subdivision-city-field-internal"),Dy=Symbol("selecting"),vy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,zy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",Cy=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=vy({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=zy(e),l=zy(s.join(" ")),d=zy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},Sy=({name:t,state_code:e,translations:i,lang:o})=>{const n=vy({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=zy(e),a=zy(r.join(" ")),l=zy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},wy=({name:t,translations:e,lang:i})=>{const o=vy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=zy(t),s=zy(n.join(" ")),a=zy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},Ay=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,Ly=wt({componentName:Ty,baseSelector:""}),fy=["disabled","readonly","size","bordered"],Ey=["hide-country","hide-subdivision","hide-city"],ky=[...fy,"label-type","country-label","subdivision-label","city-label",...Ey,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],Oy=T()(class extends Ly{static get observedAttributes(){return[].concat(Ly.observedAttributes||[],ky)}#Ai;#Li;#fi;#Ei=!1;#ki=!1;#Oi=new Map;#Vi=null;#Wi=null;#Ri=null;#Ui=null;#Yi=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${Ay("country-combo")}\n ${Ay("subdivision-combo")}\n ${Ay("city-combo")}\n </div>\n `,this.#Ai=this.querySelector("#country-combo"),this.#Li=this.querySelector("#subdivision-combo"),this.#fi=this.querySelector("#city-combo"),this.#Qi(),this.#Pi()}get#Bi(){return"true"===this.getAttribute("hide-country")}get#Zi(){return"true"===this.getAttribute("hide-subdivision")}get#Fi(){return"true"===this.getAttribute("hide-city")}get#Gi(){return!this.#Hi}get#Hi(){return this.getAttribute("data-source-base-url")||void 0}get#Ji(){const t=this.getAttribute("lang")||void 0;if(t)try{const[e]=Intl.getCanonicalLocales(t);return e}catch{return}}get#$i(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#qi(){return this.getAttribute("subdivision-label")||void 0}get#_i(){return this.getAttribute("subdivision-placeholder")||void 0}get#Xi(){return(this.getAttribute("allowed-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#Ki(){return(this.getAttribute("pinned-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#to(){return[this.#Ai,this.#Li,this.#fi]}get value(){return{country:this.#Bi?this.#$i:this.#Ai.value||void 0,subdivision:!this.#Zi&&this.#Ei&&this.#Li.value||void 0,city:!this.#Fi&&this.#ki&&this.#fi.value||void 0}}set value(t){if(!t)return;let e;try{e="string"==typeof t?JSON.parse(t):t}catch{return}this.#Yi={...e},this.#Hi&&this.#eo()}init(){this.addEventListener("focus",t=>{if(t.isTrusted){const t=this.#to.find(t=>!t.classList.contains(`${Ty}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#Ai.renderItem=Cy,this.#Li.renderItem=Sy,this.#fi.renderItem=wy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(Ey.includes(t)||"data-source-base-url"===t)this.#oo(),"data-source-base-url"===t&&this.#ro();else if("default-country"===t){const t=i?.toUpperCase();if(t&&t!==i)return void this.setAttribute("default-country",t);t&&this.#Oi.size?this.#lo(t):t&&this.#Bi&&this.#do()}else"lang"===t?this.#co():"invalid"===t?"true"===i&&this.#uo():"allowed-countries"===t||"pinned-countries"===t?this.#Bi||(this.#Vi?this.#po(this.#Vi):this.#do()):"country-label"===t?this.#ho(this.#Ai,"label",i):"subdivision-label"===t?this.#ho(this.#Li,"label",i):"city-label"===t&&this.#ho(this.#fi,"label",i)}getValidity(){if(!this.isRequired)return{};const t=!this.#Bi&&!this.#Ai.value,e=!this.#Zi&&(this.#Gi||this.#Ei)&&!this.#Li.value,i=!this.#Fi&&(this.#Gi||this.#ki)&&!this.#fi.value;return t||e||i?{valueMissing:!0}:{}}#uo(){for(const t of[...this.#to].reverse())t.classList.contains(`${Ty}-hidden`)||t.checkValidity()||t.reportValidity()}#Qi(){[this.#Ai,this.#Li,this.#fi].forEach(t=>{t.customValueTransformFn=e=>{const i=t.baseElement?.items?.find(t=>t["data-name"]===e);return i?.getAttribute("data-label")??e}})}#Pi(){this.#to.forEach(t=>{k(this,t,{includeAttrs:[...fy,"label-type"]})}),k(this,this.#Ai,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#Ai,"country-placeholder"],[this.#Li,"subdivision-placeholder"],[this.#fi,"city-placeholder"]].forEach(([t,e])=>{k(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#no(){this.#Ai.addEventListener("input",()=>this.#go()),this.#Li.addEventListener("input",()=>this.#Mo()),this.#fi.addEventListener("input",()=>this.#mo()),this.handleFocusEventsDispatching(this.#to)}#ro(){this.#Hi&&(this.#Yi?this.#eo():this.#Bi&&!this.#$i||this.#do())}async#eo(){const{country:t,subdivision:e,city:i}=this.#Yi,o=!!e&&!this.#Zi,n=!!i&&!this.#Fi,r=this.#Vi??by(this.#Hi),s=this.#Ui??xy(this.#Hi),a=o&&t?Ny(t,this.#Hi):null,l=n&&t?o&&e?Iy(t,e,this.#Hi):jy(t,this.#Hi):null,[d,c,u,p]=(await Promise.allSettled([r,s,a,l])).map(t=>"fulfilled"===t.status?t.value:null);if(!this.#Yi)return;c&&(this.#Ui=c);const h=[];d&&(this.#Vi||(this.#Vi=d,this.#po(d)),t&&!this.#Bi&&h.push([this.#Ai,t]));const g=t?this.#Oi.get(t):null;g?.subdivisionType&&this.#yo(g.subdivisionType),u&&(this.#Wi=u,this.#Ei=u.length>0,u.length>0&&(this.#Li.data=u.map(t=>({...t,lang:this.#Ji})),e&&h.push([this.#Li,e]))),p&&(this.#ki=p.length>0,p.length>0&&(this.#Ri=p,this.#fi.data=p.map(t=>({...t,lang:this.#Ji})),i&&h.push([this.#fi,i]))),this.#oo(),this.#Yi=Dy,setTimeout(()=>{if(this.#Yi===Dy){for(const[t,e]of h){const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)}this.#Yi=null}})}#go(){this.#Yi!==Dy&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#Ai.value),this.#mo())}#Mo(){if(this.#Yi===Dy)return;this.#Yi=null;const t=this.#Li.value;if(this.#No(),!this.#Fi&&t){const e=this.#Ai.value;e&&this.#Io(e,t)}this.#mo()}#lo(t){if(!t)return;const e=this.#Oi.get(t);if(!e)return;const{hasSubdivisions:i,subdivisionType:o}=e;!this.#Zi&&i?(this.#yo(o),this.#xo(t)):this.#Fi||this.#Io(t)}#yo(t){const e=this.#jo(t);this.#qi||this.#ho(this.#Li,"label",e||null),this.#_i||this.#ho(this.#Li,"placeholder",e||null)}#jo(t){const e=this.#Ui?.subdivisionTypes,i=e?.[t]??e?._fallback;if(!i)return t;const o=this.#Ji;return o&&(i[o]||i[o.split("-")[0]])||i.en||t}async#To(){try{this.#Ui=await xy(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#Ai.setAttribute("loading","true");try{const[t]=await Promise.all([by(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${Ty}] Failed to load countries`,t)}finally{this.#Ai.removeAttribute("loading")}}}async#xo(t){this.#Do(this.#Li,!0),this.#Li.setAttribute("loading","true");try{const e=await Ny(t,this.#Hi);this.#Wi=e,this.#Ei=e.length>0,this.#oo(),e.length>0?this.#Li.data=e.map(t=>({...t,lang:this.#Ji})):this.#Fi||this.#Io(t)}catch(e){console.error(`[${Ty}] Failed to load subdivisions for ${t}`,e),this.#Ei=!1,this.#vo()}finally{this.#Li.removeAttribute("loading")}}async#Io(t,e){this.#fi.setAttribute("loading","true");try{const i=await(e?Iy(t,e,this.#Hi):jy(t,this.#Hi));this.#ki=i.length>0,this.#oo(),i.length>0&&(this.#Ri=i,this.#fi.data=i.map(t=>({...t,lang:this.#Ji})))}catch(i){console.error(`[${Ty}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#fi.removeAttribute("loading")}}#co(){if(this.#Vi){const t=this.#Ai.value;this.#po(this.#Vi),t&&this.#zo(this.#Ai,t)}if(this.#Wi&&this.#Ei){const t=this.#Li.value;this.#Li.data=this.#Wi.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#Li,t)}if(this.#Ri&&this.#ki){const t=this.#fi.value;this.#fi.data=this.#Ri.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#fi,t)}const t=this.#Ai.value;if(t){const e=this.#Oi.get(t);e?.subdivisionType&&this.#yo(e.subdivisionType)}}#po(t){const e=this.#Co(t);this.#Ai.data=e.map(t=>({...t,lang:this.#Ji})),this.#Oi=new Map(t.map(t=>[t.iso2,t]))}#Co(t){const e=this.#Xi,i=this.#Ki;let o=e.length?t.filter(t=>e.includes(t.iso2)):[...t];return o.sort((t,e)=>vy(t,this.#Ji).localeCompare(vy(e,this.#Ji),this.#Ji)),i.length?[...i.map(t=>o.find(e=>e.iso2===t)).filter(Boolean),...o.filter(t=>!i.includes(t.iso2))]:o}#vo(){this.#Do(this.#Ai,!this.#Bi),this.#Do(this.#Li,!this.#Zi&&(this.#Gi||this.#Ei)),this.#Do(this.#fi,!this.#Fi&&(this.#Gi||this.#ki))}#Do(t,e){t?.classList.toggle(`${Ty}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#Ai,"required",this.#Bi?null:t),this.#ho(this.#Li,"required",this.#Zi||!this.#Gi&&!this.#Ei?null:t),this.#ho(this.#fi,"required",this.#Fi||!this.#Gi&&!this.#ki?null:t)}#oo(){this.#vo(),this.#ao(),this.setCustomValidity("")}#bo(){this.#Li.value="",this.#Li.data=[],this.#Ei=!1,this.#qi||this.#Li.removeAttribute("label"),this.#_i||this.#Li.removeAttribute("placeholder"),this.#oo()}#No(){this.#fi.value="",this.#fi.data=[],this.#Ri=null,this.#ki=!1,this.#oo()}#mo(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#ho(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#io(){return this.#to.find(t=>!t.classList.contains(`${Ty}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),Vy=f("country-subdivision-city-field"),Wy={selector:()=>":host"},Ry={selector:`${Ty} > .wrapper`},Uy={selector:`${Ty} > .wrapper > descope-combo-box`},Yy=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:{...Wy,property:"width"},hostDirection:[{...Wy,property:"direction"},{...Uy,property:zo.cssVarList.hostDirection}],flexDirection:{...Ry,property:"flex-direction"},flexGap:{...Ry,property:"gap"},itemAlignment:{...Ry,property:"align-items"},itemMinWidth:{...Uy,property:"min-width"},itemFlexGrow:{...Uy,property:"flex-grow"},itemWidth:{...Uy,property:zo.cssVarList.hostWidth}}}),mt,Vt({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),yt,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Ty}\n tabindex="-1"\n ></${Ty}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Ty),k(this,this.inputElement,{includeAttrs:["size","bordered","required","label-type","disabled","readonly","hide-country","hide-subdivision","hide-city","default-country","allowed-countries","pinned-countries","country-label","subdivision-label","city-label","country-placeholder","subdivision-placeholder","city-placeholder","data-source-base-url","lang","invalid"]}),A(this,this.inputElement,{includeAttrs:["invalid"]})}})(ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${Ty} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Ty} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${Ty}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:Vy})),Qy=Yy.cssVarList,Py={[Qy.hostWidth]:th.width,[Qy.hostDirection]:th.direction,[Qy.flexDirection]:"column",[Qy.flexGap]:"0.5em",[Qy.itemAlignment]:"stretch",[Qy.itemFlexGrow]:"0",[Qy.itemWidth]:"auto",_fullWidth:{[Qy.hostWidth]:"100%"},_horizontal:{[Qy.flexDirection]:"row",[Qy.itemFlexGrow]:"1"}};var By=Object.freeze({__proto__:null,default:Py,vars:Qy});const Zy=f("attachment"),Fy=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Gy=Fy[0];class Hy extends(jt({componentName:Zy,baseSelector:"descope-anchored"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <div slot="anchored" class="attachment-container">\n <slot name="attachment"></slot>\n </div>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.attachmentSlot=this.shadowRoot.querySelector('slot[name="attachment"]'),this.anchored=this.shadowRoot.querySelector("descope-anchored")}get#So(){return this.attachmentSlot?.assignedElements()[0]}static get observedAttributes(){return[...super.observedAttributes||[],"position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"position"===t&&e!==i&&this.#wo()}init(){super.init?.(),O("\n :host {\n display: inline-block;\n }\n :host(.hidden) {\n display: none;\n }\n .attachment-container {\n position: absolute;\n z-index: 1;\n pointer-events: none;\n width: 100%;\n display: flex;\n align-items: center;\n container-type: inline-size;\n }\n",this),this.#wo();const t=this.shadowRoot.querySelector(".attachment-container");C(t,()=>this.#Ao(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#Ao()),this.defaultSlot.addEventListener("slotchange",()=>{this.#Lo(),window.requestAnimationFrame(()=>this.#fo())}),window.requestAnimationFrame(()=>this.#Lo())}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=C(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#fo(){const t=this.defaultSlot?.assignedElements()?.[0],e=t?.getBoundingClientRect();if(e){const t=e.width;this.#So?.setAttribute("data-attachment-size",Number(t))}}#Lo(){const t=this.defaultSlot?.assignedElements()?.length>0;this.classList.toggle("hidden",!t)}#Ao(){const t=this.shadowRoot.querySelector(".attachment-container")?.getAttribute("st-host-direction");t&&this.#So?.setAttribute("st-host-direction",t)}get offsetX(){return this.getAttribute("offset-x")||"0px"}get offsetY(){return this.getAttribute("offset-y")||"0px"}#wo(){const t=this.getAttribute("position");Fy.includes(t)||this.setAttribute("position",Gy)}}const Jy={selector:()=>".attachment-container"},$y=T(Mt({mappings:{transform:{...Jy},justifyContent:{...Jy},maxWidth:{...Jy},top:{...Jy},bottom:{...Jy},left:{...Jy},right:{...Jy},offsetX:{},offsetY:{}}}),mt,yt)(Hy),qy=$y.cssVarList,_y=`calc(8px + var(${qy.offsetX}))`,Xy={[qy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[qy.transform]:"translateY(-50%)",[qy.justifyContent]:"start",[qy.left]:_y,[qy.top]:at(qy.offsetY)},"top-center":{[qy.transform]:"translate(-50%, -50%)",[qy.justifyContent]:"center",[qy.top]:at(qy.offsetY),[qy.left]:"50%"},"top-end":{[qy.transform]:"translateY(-50%)",[qy.justifyContent]:"end",[qy.right]:_y,[qy.top]:at(qy.offsetY)},"bottom-start":{[qy.transform]:"translateY(50%)",[qy.justifyContent]:"start",[qy.left]:_y,[qy.bottom]:at(qy.offsetY)},"bottom-center":{[qy.bottom]:at(qy.offsetY),[qy.transform]:"translate(-50%, 50%)",[qy.justifyContent]:"center",[qy.left]:"50%"},"bottom-end":{[qy.transform]:"translateY(50%)",[qy.justifyContent]:"end",[qy.right]:_y,[qy.bottom]:at(qy.offsetY)}}};var Ky=Object.freeze({__proto__:null,default:Xy}),tb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",eb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9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zRjYSIvPjwvc3ZnPg=="},other:{light:eb,dark:tb}},nb=f("user-passkeys"),rb=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=ob[t]||ob.other;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),l=i&&r.createdAtLabel?`${r.createdAtLabel} `:"",d=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,r.format),c=document.createElement("template");return c.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="main">\n <span class="item">\n <descope-icon class="item-icon" src="${s}" src-dark="${a}"></descope-icon>\n <descope-text class="item-name" variant="body1" mode="primary"></descope-text>\n </span>\n <span class="item-panel">\n ${r.allowRemove?'<descope-link variant="text" mode="primary" size="md" ellipsis="true" data-action="remove-passkey" class="remove-button">\n <div class="remove-button-content">\n </div>\n </descope-link>':'<descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg=="></descope-icon>'}\n </span>\n </div>\n <div class="meta">\n <descope-text variant="body2" mode="primary">${l}</descope-text>\n <descope-text class="date" variant="body2" mode="primary">\n ${d}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,c.content.querySelector(".item-name").textContent=e,r.allowRemove&&((t,e,i)=>{const o=t.content.querySelector(".remove-button-content");o.dataset.passkeyId=e;const n=U(i,"remove-button");n&&o.append(n)})(c,t,r),c},sb=jt({componentName:nb,baseSelector:bu.componentName}),{host:ab,methodIconSlotted:lb,addIconSlotted:db}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},cb=T(Mt({mappings:{hostWidth:{...ab,property:"width"},hostMinWidth:{...ab,property:"min-width"},hostDirection:[{...ab,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"},{selector:()=>"descope-link",property:Zi.cssVarList.hostDirection}],headerGap:{selector:()=>".method",property:"gap"},listGap:{selector:()=>"descope-list",property:"margin-top"},listItemsGap:{property:bu.cssVarList.gap},listBackgroundColor:{selector:()=>bu.componentName,property:bu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bu.componentName,property:bu.cssVarList.borderRadius},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPadding},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBorderRadius:{selector:Mu.componentName,property:Mu.cssVarList.borderRadius},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},itemPanelGap:{selector:()=>".main",property:"gap"},itemIconGap:{selector:()=>".item",property:"gap"},itemIconSize:[{selector:()=>".item-icon",property:"width"},{selector:()=>".item-icon",property:"height"}],addButtonGap:{selector:()=>".button",property:"margin-inline-end"},dateGap:{selector:" .meta",property:"gap"},removeButtonGap:{selector:()=>".remove-button-content",property:"gap"},iconColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.iconColor},iconSize:[{...lb,property:"height"},{...db,property:"height"}]}}),mt,Yt({itemRenderer:rb,sortFn:(t,e)=>ib(e.createdAt)-ib(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),yt)(class extends sb{static get observedAttributes(){return["label","add-passkey-button-label","remove-passkey-button-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="header">\n <div class="method">\n <slot name="method-icon"></slot>\n <descope-text class="method-label" st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n <span class="button">\n <descope-button class="add-passkey-button" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n </span>\n </div>\n\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n\n <slot name="remove-button" class="hidden"></slot>\n ',this.methodLabel=this.shadowRoot.querySelector(".method-label"),this.addPasskeyButton=this.shadowRoot.querySelector(".add-passkey-button"),this.appsList=this.shadowRoot.querySelector("descope-list"),this.removeButton=this.shadowRoot.querySelector('slot[name="remove-button"]'),O('\n .remove-button-content {\n display: flex;\n align-items: center;\n }\n :host {\n display: inline-block;\n }\n\n .header {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header .method {\n display: flex;\n flex: 1;\n min-width: 0;\n }\n\n slot[name="method-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n }\n\n .button {\n min-width: 0;\n max-width: 50%;\n flex-shrink: 1;\n }\n\n .add-passkey-button {\n align-self: center;\n max-width: 100%;\n }\n\n .add-passkey-button > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .descope-list-item {\n min-width: 0;\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 .item-panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n align-items: center;\n cursor: pointer;\n }\n\n .item {\n display: flex;\n min-width: 0;\n }\n\n .item-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .date {\n min-width: fit-content;\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-button {\n width: 100%;\n }\n descope-link.remove-button::part(wrapper) {\n display: flex;\n width: 100%;\n }\n .hidden {\n display: none\n }\n\n ',this)}init(){super.init?.(),this.appsList.itemRenderer=rb,this.appsList.addEventListener("click",this.onRemoveClick.bind(this)),this.addPasskeyButton.addEventListener("click",this.onAddClick.bind(this)),k(this.appsList,this,{includeAttrs:["empty"]}),this.removeButton.addEventListener("slotchange",()=>{this.data=[...this.data]}),this.onLabelChange(),this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel)}onAddClick(){this.readOnly||this.dispatchEvent(new CustomEvent("add-passkey-clicked",{bubbles:!0,detail:{action:"add-passkey"}}))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-passkey-id]"),i=e?.getAttribute("data-passkey-id");i&&this.dispatchEvent(new CustomEvent("remove-passkey-clicked",{bubbles:!0,detail:{id:i,action:"remove-passkey"}}))}get label(){return this.getAttribute("label")||"Passkey"}get readOnly(){return"true"===this.getAttribute("readonly")}get allowRemove(){return"true"===this.getAttribute("allow-remove")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get addPasskeyButtonLabel(){return this.getAttribute("add-passkey-button-label")||"Add"}get removePasskeyButtonLabel(){return this.getAttribute("remove-passkey-button-label")||"Remove"}get createdAtLabel(){return this.getAttribute("created-at-label")||"Date added:"}get direction(){return this.getAttribute("st-host-direction")}onLabelChange(){this.methodLabel.innerText=this.label,this.methodLabel.setAttribute("title",this.label)}updateButtonLabel(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.textContent=e):i&&t.removeChild(i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"add-passkey-button-label"===t?this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel):"empty"===t&&this.appsList.classList.toggle("hidden","true"===i))}}),ub=cb.cssVarList,pb={[ub.hostWidth]:"auto",[ub.hostWidth]:"300px",[ub.hostMinWidth]:"300px",[ub.headerGap]:Sp.spacing.lg,[ub.listGap]:Sp.spacing.xl,[ub.listBackgroundColor]:"transparent",[ub.listBorderRadius]:"0",[ub.listBorderWidth]:"0",[ub.listPadding]:"0",[ub.listBoxShadow]:"none",[ub.listItemsGap]:Sp.spacing.lg,[ub.itemBorderColor]:Sp.colors.surface.light,[ub.itemVerticalPadding]:Sp.spacing.lg,[ub.itemHorizontalPadding]:Sp.spacing.lg,[ub.itemBorderRadius]:Sp.radius.xs,[ub.itemOutline]:"transparent",[ub.itemBackgroundColor]:"transparent",[ub.itemCursor]:"default",[ub.itemContentGap]:Sp.spacing.sm,[ub.itemPanelGap]:Sp.spacing.md,[ub.itemIconGap]:Sp.spacing.md,[ub.itemIconSize]:"24px",[ub.addButtonGap]:Sp.spacing.sm,[ub.dateGap]:Sp.spacing.xs,[ub.removeButtonGap]:Sp.spacing.sm,[ub.iconSize]:"1.5em",[ub.iconColor]:"currentcolor",_fullWidth:{[ub.hostWidth]:"100%"}};var hb=Object.freeze({__proto__:null,default:pb,vars:ub});const gb=st(Sp),Mb=ir.cssVarList,mb={[Mb.hostWidth]:th.width,[Mb.hostMinWidth]:th.minWidth,[Mb.hostDirection]:th.direction,[Mb.fontSize]:th.fontSize,[Mb.fontFamily]:th.fontFamily,[Mb.labelFontSize]:th.labelFontSize,[Mb.labelFontWeight]:th.labelFontWeight,[Mb.inputValueFontWeight]:th.inputValueFontWeight,[Mb.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[Mb.helperTextFontWeight]:th.helperTextFontWeight,[Mb.errorMessageFontWeight]:th.errorMessageFontWeight,[Mb.labelTextColor]:th.labelTextColor,[Mb.labelRequiredIndicator]:th.requiredIndicator,[Mb.errorMessageTextColor]:th.errorMessageTextColor,[Mb.inputValueTextColor]:th.valueTextColor,[Mb.inputPlaceholderColor]:th.placeholderTextColor,[Mb.inputBorderWidth]:th.borderWidth,[Mb.inputBorderStyle]:th.borderStyle,[Mb.inputBorderColor]:th.borderColor,[Mb.inputBorderRadius]:th.borderRadius,[Mb.inputOutlineWidth]:th.outlineWidth,[Mb.inputOutlineStyle]:th.outlineStyle,[Mb.inputOutlineColor]:th.outlineColor,[Mb.inputOutlineOffset]:th.outlineOffset,[Mb.inputBackgroundColor]:th.backgroundColor,[Mb.inputHeight]:th.inputHeight,[Mb.inputHorizontalPadding]:th.horizontalPadding,[Mb.helperTextColor]:th.helperTextColor,[Mb.textAlign]:th.textAlign,textAlign:{right:{[Mb.inputTextAlign]:"right"},left:{[Mb.inputTextAlign]:"left"},center:{[Mb.inputTextAlign]:"center"}},[Mb.labelPosition]:th.labelPosition,[Mb.labelTopPosition]:th.labelTopPosition,[Mb.labelHorizontalPosition]:th.labelHorizontalPosition,[Mb.inputTransformY]:th.inputTransformY,[Mb.inputTransition]:th.inputTransition,[Mb.marginInlineStart]:th.marginInlineStart,[Mb.placeholderOpacity]:th.placeholderOpacity,[Mb.inputVerticalAlignment]:th.inputVerticalAlignment,[Mb.valueInputHeight]:th.valueInputHeight,[Mb.valueInputMarginBottom]:th.valueInputMarginBottom,[Mb.inputIconOffset]:gb.spacing.md,[Mb.inputIconSize]:th.inputIconSize,[Mb.inputIconColor]:th.placeholderTextColor,[Mb.errorMessageIcon]:th.errorMessageIcon,[Mb.errorMessageIconSize]:th.errorMessageIconSize,[Mb.errorMessageIconPadding]:th.errorMessageIconPadding,[Mb.errorMessageIconRepeat]:th.errorMessageIconRepeat,[Mb.errorMessageIconPosition]:th.errorMessageIconPosition,[Mb.errorMessageFontSize]:th.errorMessageFontSize,[Mb.inputTextSecurity]:th.inputTextSecurity};var yb=Object.freeze({__proto__:null,default:mb,textField:mb,vars:Mb});class bb{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){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(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const Nb=["MM/DD","DD/MM"],Ib=Nb[0],xb="/",jb=[31,29,31,30,31,30,31,31,30,31,30,31],Tb={id:"month",min:1,max:12,placeholder:"MM"},Db={id:"day",min:1,max:31,placeholder:"DD"},vb={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},zb=t=>{const e=(t=>`^${t.split(xb).map(t=>vb[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(xb);return t=>{const i={};return e.forEach((e,o)=>{i[e]=Number(t[o+1])}),{month:i.MM,day:i.DD}}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getParts:t=>{const e=o.exec(t);return e?i(e):null}}},Cb=Object.fromEntries(Nb.map(t=>[t,zb(t)])),Sb=(t,e)=>{const i=t?.trim?.();return i?Cb[e]?.getParts(i)??null:null},wb=f("month-day-field"),Ab=wt({componentName:wb,baseSelector:"vaadin-popover"}),Lb=["format","opened","initial-value","readonly","disable-picker"],fb=["picker-months","picker-label-submit","picker-label-cancel"],Eb=[...Lb,...fb],kb=ir.cssVarList,{host:Ob,input:Vb,inputEleRTL:Wb,toggleButton:Rb,overlay:Ub,backdrop:Yb,bottomNav:Qb,navButton:Pb}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-picker"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"},bottomNav:{selector:"vaadin-popover-overlay .bottom-nav"},navButton:{selector:"vaadin-popover-overlay .bottom-nav descope-button"}},Bb=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{iconMargin:{...Rb,property:"margin-inline-end"},hostWidth:{...Ob,property:"width"},hostDirection:{...Ob,property:"direction"},textAlign:{...Vb,property:"text-align"},rtlInputDirection:{...Wb,property:kb.inputDirection},rtlInputAlignment:{...Wb,property:kb.inputTextAlign},overlayGap:{property:()=>Bb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Bb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Bb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Bb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Bb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Bb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Bb.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:ir.componentName,property:ir.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontSize},labelFontWeight:{selector:ir.componentName,property:ir.cssVarList.labelFontWeight},inputValueFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:ir.componentName,property:ir.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontWeight}}}),Wt({name:"overlay",selector:"",mappings:{marginTop:{...Ub,property:"margin-top"},backgroundColor:{...Ub},backdropBackgroundColor:{...Yb,property:"background-color"},backdropPointerEvents:{...Yb,property:"pointer-events"},padding:{...Ub},boxShadow:{...Ub},outlineWidth:{...Ub},outlineColor:{...Ub},outlineStyle:{...Ub},bottomNavTopPadding:{...Qb,property:"padding-top"},bottomNavBottomPadding:{...Qb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...Qb,property:"padding-left"},{...Qb,property:"padding-right"}],bottomNavAlignment:{...Qb,property:"justify-content"},bottomNavGap:{...Qb,property:"gap"},navButtonPadding:[{...Pb,property:Uo.cssVarList.horizontalPadding},{...Pb,property:Uo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Pb,property:Uo.cssVarList.outlineWidth}}}),mt,yt)(class extends Ab{format=Ib;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#lt()};#Vo=[new bb(Tb,this.#ko.bind(this)),new bb(Db,this.#ko.bind(this))];static get observedAttributes(){return[].concat(Ab.observedAttributes||[],Eb)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-picker">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3IDEwLjc4NiA2Ljc3NDA0IDExIDYuNDk1Mz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kgOS4yMjU5NiAxOSA5LjUwNDY4VjEwLjQ5NTNDMTkgMTAuNzg2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+Cjwvc3ZnPgo="></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',O('\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-picker {\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-picker {\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-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#Vo.find(t=>t.id===Tb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===Db.id)}get sortedCounters(){return this.format.split(xb).map(t=>this.#Vo.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#Eo]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(xb)}get isCountersEmpty(){return this.#Vo.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#Vo.some(t=>!t.isInRange(t.numberValue))}get disablePicker(){return"true"===this.getAttribute("disable-picker")}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get picker(){return this.overlay?.querySelector("descope-month-day-field-picker")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isCountersEmpty||this.isCountersOutOfRange?"":((t,e)=>this.format.replace(/MM|DD/g,i=>String("MM"===i?t:e).padStart(2,"0")))(this.monthCounter.numberValue,this.dayCounter.numberValue)}set value(t){const e=t?Sb(String(t),this.format):null;e?this.#Wo(e.month,e.day):(this.#Vo.forEach(t=>t.clear()),this.clearInputEle())}get isSelectAll(){const{value:t,selectionStart:e,selectionEnd:i}=this.inputElement;return t.length===e+i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:!this.isCountersEmpty&&this.isCountersOutOfRange?{patternMismatch:!0}:{}}reportValidity(){this.inputElement.reportValidity()}#Oo(){const t=this.monthCounter.numberValue,e=jb[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#Wo(t,e){this.monthCounter.replaceValue(t),this.#Oo(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#lt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#Vo.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Ro(),this.#Uo(),this.#ko(),this.#Yo(),setTimeout(()=>this.#it(),0)}#Yo(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#Qo.bind(this)),this.inputElement.addEventListener("focus",this.#Po.bind(this)),this.inputElement.addEventListener("blur",this.#Bo.bind(this)),this.inputElement.addEventListener("click",this.#Zo.bind(this)),this.inputElement.addEventListener("keydown",this.#Fo.bind(this)),this.inputElement.addEventListener("beforeinput",this.#Go.bind(this)),this.inputElement.addEventListener("pointerdown",this.#Ho.bind(this)),this.inputElement.addEventListener("paste",this.#Jo.bind(this)),k(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","data-errormessage-value-missing","data-errormessage-pattern-mismatch","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}#Uo(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),O("\n .overlay-hidden { visibility: hidden; }\n .bottom-nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n ",t.getRootNode())),this.#$o(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#pt(),t.classList.remove("overlay-hidden")},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { margin-left: 0; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.picker.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${l}px;\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=O(d,t)}#ut(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#qo(),this.cancelButton.addEventListener("click",this.#_o.bind(this)),this.submitButton.addEventListener("click",this.#Xo.bind(this)),e.addEventListener("change",this.#Ko.bind(this)),t}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#$o(){this.picker&&(this.isCountersEmpty?this.picker.value="":(this.picker.month=this.monthCounter.isEmpty?null:this.monthCounter.numberValue,this.picker.day=this.dayCounter.isEmpty?null:this.dayCounter.numberValue),k(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#tn(){return this.getAttribute("picker-label-submit")||"Done"}get#en(){return this.getAttribute("picker-label-cancel")||"Cancel"}#qo(){this.submitButton&&(this.submitButton.textContent=this.#tn,this.cancelButton.textContent=this.#en)}#Ko(t){const{month:e,day:i}=t.detail||{};this.#in(null==e||null==i)}#in(t){if(!this.submitButton)return;const e=this.submitButton.shadowRoot?.querySelector("vaadin-button");t?(this.submitButton.setAttribute("disabled","true"),e?.setAttribute("disabled","true")):(this.submitButton.removeAttribute("disabled"),e?.removeAttribute("disabled"))}#_o(){this.closePopover()}#Xo(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#Wo(t,e),this.#lt(),this.closePopover()):this.closePopover()}#Qo(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#on(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#Go(t){var e;t.preventDefault(),this.#nn(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#rn(t.data),this.updateCountersDisplay()):t.inputType&&this.#sn(t)}#nn(){this.isSelectAll&&this.#an()}#rn(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#ln(),this.#dn()}#cn(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#un(t){this.#Eo=this.#cn(t.target?.selectionStart||this.inputElement.selectionStart)}#an(){this.#Eo=0}#ln(){this.#Eo<this.#Vo.length-1&&(this.#Eo=Math.min(this.#Eo+1,1))}#pn(){this.#Eo>0&&(this.#Eo=0)}#dn(){this.#Eo<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#Eo).reduce((t,e)=>t+e.length,this.#Eo);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#Eo].length)})}#Fo(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#hn(t):(this.#nn(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#ln():"ArrowLeft"===t.key&&this.#pn(),this.#dn())}#sn(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#gn(),this.#dn()))}#gn(){if(this.isSelectAll)return void this.#Mn();const t=this.activeCounter;t.isEmpty?(this.#pn(),this.#dn()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#dn()})}#Zo(t){this.opened||(t.preventDefault(),this.#un(t),this.#dn())}#Ho(t){setTimeout(()=>this.#Zo(t),150)}#Po(){this.isReadOnly||setTimeout(()=>this.#mn())}#Bo(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#mn(){this.inputElement.value||(this.inputElement.value=this.format),this.#an(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#Mn(){this.resetCounters(),this.#an(),this.#mn()}#yn(t){Object.keys(Cb).includes(t)&&(this.format=t,this.#Ro(),this.updateCountersDisplay())}#Ro(){const t=this.getAttribute("format")||this.format||Ib,e=Cb[t]?t:Ib;this.format=e,this.setAttribute("pattern",Cb[e].pattern)}#hn(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.#Mn()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.#dn()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#Jo(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=Sb(e,this.format);if(i)return this.#Wo(i.month,i.day),this.#ko(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const o=Number(e);o&&this.activeCounter.isInRange(o)&&(this.activeCounter.set(String(o)),setTimeout(()=>this.#dn()))}#bn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#on("true"!==i),Lb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():fb.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),Zb=st(Sp),Fb="#00000020",{shadow:Gb}=Zb,Hb=Bb.cssVarList,Jb={[Hb.hostWidth]:th.width,[Hb.hostDirection]:th.direction,[Hb.iconMargin]:"0.375em",[Hb.overlay.marginTop]:th.outlineWidth,[Hb.overlay.backgroundColor]:th.backgroundColor,[Hb.overlay.backdropBackgroundColor]:"transparent",[Hb.overlay.backdropPointerEvents]:"all",[Hb.overlay.boxShadow]:`${Gb.wide.xl} ${Fb}, ${Gb.narrow.xl} ${Fb}`,[Hb.overlay.outlineWidth]:"0",[Hb.overlay.outlineColor]:"transparent",[Hb.overlay.outlineStyle]:"none",[Hb.overlay.padding]:"0",[Hb.overlay.bottomNavTopPadding]:"0",[Hb.overlay.bottomNavBottomPadding]:"0.75em",[Hb.overlay.bottomNavHorizontalPadding]:"1em",[Hb.overlay.bottomNavAlignment]:"space-between",[Hb.overlay.bottomNavGap]:"0.5em",[Hb.overlay.navButtonPadding]:"0",[Hb.overlay.navButtonOutlineWidth]:"0",[Hb.rtlInputDirection]:"ltr",[Hb.rtlInputAlignment]:"right",[Hb.errorMessageIcon]:th.errorMessageIcon,[Hb.errorMessageIconSize]:th.errorMessageIconSize,[Hb.errorMessageIconPadding]:th.errorMessageIconPadding,[Hb.errorMessageIconRepeat]:th.errorMessageIconRepeat,[Hb.errorMessageIconPosition]:th.errorMessageIconPosition,[Hb.errorMessageFontSize]:th.errorMessageFontSize,[Hb.labelFontWeight]:th.labelFontWeight,[Hb.inputValueFontWeight]:th.inputValueFontWeight,[Hb.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[Hb.helperTextFontWeight]:th.helperTextFontWeight,[Hb.errorMessageFontWeight]:th.errorMessageFontWeight};var $b=Object.freeze({__proto__:null,default:Jb,vars:Hb});const qb=[31,29,31,30,31,30,31,31,30,31,30,31],_b=["January","February","March","April","May","June","July","August","September","October","November","December"],Xb=f("month-day-field-picker"),Kb=["initial-value","picker-months","st-host-direction","disabled","full-width"],tN=wt({componentName:Xb,baseSelector:"div"}),eN=(t,e)=>{const i=document.createDocumentFragment();t.forEach(({id:t,name:e})=>{const o=document.createElement("div");o.className="combo-box-item",o.setAttribute("data-id",String(t)),o.setAttribute("data-name",e),o.textContent=e,i.appendChild(o)}),e.replaceChildren(i)},{picker:iN,monthInput:oN,dayInput:nN,inputsRow:rN}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},sN=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...iN,property:"padding"},inputsRowGap:{...rN,property:"gap"},inputWidth:[{...oN,property:"width"},{...nN,property:"width"}]}}),mt,yt)(class extends tN{static get observedAttributes(){return[].concat(tN.observedAttributes||[],Kb)}#Nn=null;#In=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="picker">\n <div class="inputs-row">\n <descope-combo-box\n class="month-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n <descope-combo-box\n class="day-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n </div>\n </div>\n ',O("\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 .inputs-row {\n display: flex;\n }\n\n .inputs-row > descope-combo-box {\n flex: 1;\n min-width: 0;\n }\n ",this),this.monthInput=this.shadowRoot.querySelector(".month-input"),this.dayInput=this.shadowRoot.querySelector(".day-input")}get month(){return this.#Nn}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#Nn=null:this.#Nn=e,null!=this.#In&&null!=this.#Nn&&this.#In>qb[this.#Nn-1]&&(this.#In=1),this.#xn(),this.#jn(),this.#Tn(),this.#v()}get day(){return this.#In}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#Nn&&e>qb[this.#Nn-1]?this.#In=null:this.#In=e,this.#Tn(),this.#v()}set value(t){if(!t)return void this.#Dn();const e=/^(0?[1-9]|1[0-2])\D(0?[1-9]|[12][0-9]|3[01])$/.exec(String(t).trim());if(!e)return;const i=Number(e[1]),o=Number(e[2]);this.month=i,this.day=o}#Dn(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#Nn||null==this.#In?"":`${String(this.#Nn).padStart(2,"0")}/${String(this.#In).padStart(2,"0")}`}init(){super.init?.(),this.#vn(),this.#zn();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#Nn&&this.#Dn(),k(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),k(this,this.dayInput,{includeAttrs:["disabled","size","st-host-direction"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("initial-value"===t?this.value=i:"picker-months"===t&&this.#Cn())}get#Sn(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:_b})(this.getAttribute("picker-months"))}#vn(){this.#Cn(),this.monthInput.addEventListener("input",this.#wn.bind(this))}#zn(){this.dayInput.addEventListener("input",this.#An.bind(this))}#Cn(){eN(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=qb[this.#Nn-1]??0;eN((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#xn(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#Nn?String(this.#Nn):"")})}#Tn(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#In?String(this.#In):"")})}#wn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#Nn&&(this.month=i)}#An(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#In&&(this.day=i)}#v(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#Nn,day:this.#In},bubbles:!0,composed:!0}))}getValidity(){return{}}}),aN=sN.cssVarList,lN={[aN.fontFamily]:th.fontFamily,[aN.fontSize]:th.fontSize,[aN.hostDirection]:th.direction,[aN.inputWidth]:"130px",[aN.pickerPadding]:"1em 1em",[aN.inputsRowGap]:"0.5em",_fullWidth:{[aN.hostWidth]:"100%"}};var dN=Object.freeze({__proto__:null,default:lN,vars:aN});const cN={equal:{label:"Equal"},"not-equal":{label:"Not Equal"},contains:{label:"Contains"},"not-contains":{label:"Excludes"},"starts-with":{label:"Starts with"},"ends-with":{label:"Ends with"},gt:{label:"Greater Than"},lt:{label:"Less Than"},gte:{label:"Not Less Than"},lte:{label:"Not Greater Than"},"is-any-of":{label:"Is any of"},"not-any-of":{label:"Not any of"},"is-empty":{label:"Is empty",noValue:!0},"is-not-empty":{label:"Is not empty",noValue:!0}},uN=Object.keys(cN).map(t=>`data-operator-label-${t}`),pN={text:["contains","not-contains","equal","not-equal","starts-with","ends-with","is-empty","is-not-empty"],number:["equal","not-equal","gt","lte","lt","gte","is-empty","is-not-empty"],email:["equal","not-equal","contains","not-contains","is-empty","is-not-empty"],boolean:["equal","not-equal","is-empty","is-not-empty"],singleselect:["equal","not-equal","is-empty","is-not-empty"],multiselect:["is-any-of","not-any-of","is-empty","is-not-empty"]},hN=(t,e)=>({id:t,...e[t]||{}}),gN=(t,e,i,o=cN)=>{const n=((i||pN)[t]||[]).map(t=>hN(t,o));return Array.isArray(e)&&0!==e.length?e.every(t=>"string"==typeof t)?n.filter(t=>e.includes(t.id)):e.map(t=>{const e="string"==typeof t?t:t.id,i="string"==typeof t?{}:t;return{...n.find(t=>t.id===e)||hN(e,o),...i}}):n},MN=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,cN[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},mN=(t,e,i)=>{i.forEach(i=>((t,e,i)=>{Array.from(e.querySelectorAll(`:scope > [data-slot-copy="${i}"]`)).forEach(t=>t.remove()),Array.from(t.children).filter(t=>t.getAttribute?.("slot")===i).forEach(t=>{const o=t.cloneNode(!0);o.setAttribute("data-slot-copy",i),e.appendChild(o)})})(t,e,i))},yN=t=>{let e=t;if("string"==typeof e)try{e=JSON.parse(e)}catch{return[]}return Array.isArray(e)?e.filter(t=>t&&"object"==typeof t&&"string"==typeof t.column&&"string"==typeof t.operator):[]},bN=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var NN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const IN=f("filter-row"),xN=["text","number","email"],jN=["boolean","singleselect"],TN=t=>!t||xN.includes(t),DN=t=>jN.includes(t),vN=t=>"multiselect"===t,zN=()=>new Promise(t=>setTimeout(t)),{host:CN}={host:{selector:()=>":host"}},SN=T(Mt({mappings:{hostWidth:{...CN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...CN,property:"direction"},{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},{selector:()=>zo.componentName,property:zo.cssVarList.hostDirection},{selector:()=>lg.componentName,property:lg.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>zo.componentName,property:zo.cssVarList.hostWidth},{selector:()=>ir.componentName,property:ir.cssVarList.hostWidth},{selector:()=>lg.componentName,property:lg.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Uo.componentName}.delete-btn[disabled="true"]`,property:Uo.cssVarList.iconColor}}}),yt,t=>class extends t{#Kt=[];#Ln=null;#fn=!1;#En;#kn;#On;#Vn;#Wn;#Rn;#Un=null;#Yn=(t=>{let e;const i=(...i)=>{clearTimeout(e),e=setTimeout(()=>t(...i),350)};return i.cancel=()=>clearTimeout(e),i})(()=>this.#v());static get observedAttributes(){return[...t.observedAttributes||[],"data","value","disable-delete","label-type","operators-catalog","data-value-label-true","data-value-label-false",...uN]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="row">\n <descope-combo-box class="col-select" placeholder="Column" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <descope-combo-box class="op-select" placeholder="Operator" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <div class="value-wrapper">\n <descope-text-field class="text-value" placeholder="Value" bordered="true"></descope-text-field>\n <descope-combo-box class="combo-value hidden" placeholder="Value" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <descope-multi-select-combo-box class="multi-value hidden" placeholder="Value" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-multi-select-combo-box>\n </div>\n <descope-button class="delete-btn" variant="link" mode="primary" size="md" square="true">\n <slot name="delete-row-icon">\n <descope-icon src="${NN}" src-dark="${NN}"></descope-icon>\n </slot>\n </descope-button>\n </div>\n `,O("\n :host {\n display: block;\n }\n .row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;\n align-items: center;\n }\n .col-select,\n .op-select,\n .value-wrapper {\n min-width: 0;\n overflow: hidden;\n }\n /* Let value inputs shrink to the cell instead of growing to fit their\n content (e.g. the multi-select's chip area). */\n .text-value,\n .combo-value,\n .multi-value {\n min-width: 0;\n }\n .hidden {\n display: none;\n }\n .value-wrapper.no-value {\n visibility: hidden;\n }\n ",this),this.#En=this.shadowRoot.querySelector(".col-select"),this.#kn=this.shadowRoot.querySelector(".op-select"),this.#On=this.shadowRoot.querySelector(".text-value"),this.#Vn=this.shadowRoot.querySelector(".combo-value"),this.#Wn=this.shadowRoot.querySelector(".multi-value"),this.#Rn=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Qn(),this.#Rn.addEventListener("click",()=>this.#Pn("delete")),this.#Pi()}#Pi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Rn].forEach(t=>k(this,t,{includeAttrs:["size","disabled"]})),this.#Bn(),t.forEach(t=>k(this,t,{includeAttrs:["label-type"]}))}#Bn(){const t=t=>({includeAttrs:[t],mapAttrs:{[t]:"placeholder"}});k(this,this.#En,t("data-column-placeholder")),k(this,this.#kn,t("data-operator-placeholder")),[this.#On,this.#Vn,this.#Wn].forEach(e=>k(this,e,t("data-value-placeholder")))}#Zn(t,e){const i=this.#fn;this.#fn=!0,t.value=e,this.#fn=i}#Qn(){this.shadowRoot.querySelector(".row").addEventListener("input",t=>{this.#fn||(t.target===this.#En?this.#Fn():t.target===this.#kn?this.#Gn():this.#Hn()?this.#Yn():this.#v())})}#Hn(){return!this.#On.classList.contains("hidden")}#Jn(t){return this.#Kt.find(e=>e.id===t)}get trueLabel(){return this.getAttribute("data-value-label-true")||"True"}get falseLabel(){return this.getAttribute("data-value-label-false")||"False"}#$n(){return[{value:"true",label:this.trueLabel},{value:"false",label:this.falseLabel}]}#qn(t){return t?gN(t.inputType,t.operators,bN(this,"operators-catalog")).map(t=>{const e=this.getAttribute(`data-operator-label-${t.id}`);return e?{...t,label:e}:t}):[]}#Fn(){const t=this.#Jn(this.#En.value);if(!t)return;this.#Yn.cancel();const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}));const i=e.find(t=>t.id===this.#kn.value)||e[0];i&&this.#Zn(this.#kn,i.id);const o=this.#Un,n=t.inputType,r=o!==n;this.#Un=n,this.#_n(t,i,{resetValue:r}),this.#v()}#Gn(){const t=this.#Jn(this.#En.value),e=this.#qn(t).find(t=>t.id===this.#kn.value);this.#_n(t,e),this.#v()}#_n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#Xn(o),TN(o)?this.#Kn(o,n):DN(o)?this.#tr(t,n):vN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!TN(t)),this.#Vn.classList.toggle("hidden",!DN(t)),this.#Wn.classList.toggle("hidden",!vN(t))}#Kn(t,e){"number"===t?this.#On.setAttribute("type","number"):"email"===t?this.#On.setAttribute("type","email"):this.#On.removeAttribute("type"),e&&this.#Zn(this.#On,"")}#tr(t,e){const i="boolean"===t.inputType?this.#$n():t.options||[];this.#Vn.data=i.map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Vn,"")}#er(t,e){this.#Wn.data=(t.options||[]).map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Wn,[])}#ir(t){return vN(t)?this.#Wn:DN(t)?this.#Vn:TN(t)?this.#On:null}#or(t){const e=this.#ir(t.inputType);return e?e.value??(vN(t.inputType)?[]:""):null}#nr(){const t=this.#En?.value||"",e=this.#kn?.value||"",i=this.#Jn(t),o=this.#qn(i).find(t=>t.id===e),n=!!o?.noValue,r=o&&!n&&i?this.#or(i):null;return{id:this.#Ln,column:t,operator:e,value:r,noValue:n}}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#v(){this.#Pn("change",{value:this.#nr()})}async#rr(t){if(this.#Ln=t.id??null,t.column){this.#fn=!0;try{const e=this.#Jn(t.column);if(!e)return;await zN(),this.#En.value=t.column;const i=this.#qn(e);if(this.#kn.data=i.map(t=>({value:t.id,label:t.label})),t.operator){await zN(),this.#kn.value=t.operator;const o=i.find(e=>e.id===t.operator);this.#_n(e,o)}null!==t.value&&void 0!==t.value&&(await zN(),this.#sr(e,t.value))}finally{this.#fn=!1}}}#sr(t,e){const i=t.inputType,o=this.#ir(i);o&&(vN(i)?this.#Zn(o,Array.isArray(e)?e:[]):DN(i)?this.#Zn(o,String(e)):this.#Zn(o,e??""))}#ar(t){const e="floating"===t;[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn].forEach(t=>{if(t)if(e){const e=t.getAttribute("placeholder");e&&t.setAttribute("label",e)}else t.removeAttribute("label")})}get value(){return JSON.stringify(this.#nr())}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&this.#lr(i),"value"===t&&this.#dr(i),"label-type"===t&&this.#ar(i),"disable-delete"===t&&this.#cr(i),("operators-catalog"===t||t.startsWith("data-operator-label-"))&&this.#ur(),"data-value-label-true"!==t&&"data-value-label-false"!==t||this.#pr())}#lr(t){if(t)try{this.#Kt=JSON.parse(t),this.#En.data=this.#Kt.map(t=>({value:t.id,label:t.label}))}catch{}}#dr(t){if(t)try{this.#rr(JSON.parse(t))}catch{}}#cr(t){null!==t&&"false"!==t?this.#Rn.setAttribute("disabled","true"):this.#Rn.removeAttribute("disabled")}#pr(){const t=this.#Jn(this.#En?.value);t&&"boolean"===t.inputType&&this.#Vn&&(this.#Vn.data=this.#$n())}#ur(){const t=this.#Jn(this.#En?.value);if(!t||!this.#kn)return;const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}))}})(jt({componentName:IN,baseSelector:".row"})),wN=f("filter-rows"),{host:AN,container:LN,rowsList:fN,actions:EN,addRowIcon:kN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},ON=T(Mt({mappings:{hostWidth:{...AN,property:"width"},hostMinWidth:{...AN,property:"min-width"},hostDirection:[{...AN,property:"direction"},{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},{selector:()=>SN.componentName,property:SN.cssVarList.hostDirection}],containerWidth:{...LN,property:"width"},containerPadding:{...LN,property:"padding"},containerGap:{...LN,property:"gap"},listGap:{...fN,property:"gap"},listMaxHeight:{...fN,property:"max-height"},actionsGap:{...EN,property:"gap"},addRowIconSize:[{...kN,property:"width"},{...kN,property:"height"}]}}),yt,t=>class extends t{#ze=[];#hr=0;#gr(){return this.#hr+=1,`row-${this.#hr}`}#Mr(){return{id:this.#gr(),column:"",operator:"",value:null}}#mr(t){const e=t.value,i=null!=e&&""!==e&&!(Array.isArray(e)&&0===e.length);return!t.column&&!t.operator&&!i}#yr=[];#br;#Nr;#Ir;#xr;static get observedAttributes(){return[...t.observedAttributes||[],"data","value","clear-all-button-label","add-button-label","max-rows"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="container">\n <div class="rows-list"></div>\n <div class="actions">\n <descope-button class="add-row" variant="link" mode="primary">\n <slot name="add-row-icon" slot="prefix"></slot>\n <span class="add-button-label">Add filter</span>\n </descope-button>\n <descope-button class="clear-all" variant="link" mode="error">Clear all</descope-button>\n </div>\n </div>\n ',O('\n :host {\n display: block;\n box-sizing: border-box;\n }\n .container {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .rows-list {\n display: flex;\n flex-direction: column;\n overflow: hidden auto;\n }\n .rows-list:empty {\n display: none;\n }\n .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n .add-row {\n margin-inline-end: auto;\n }\n .hidden {\n display: none;\n }\n ::slotted([slot="add-row-icon"]) {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n ',this),this.#br=this.shadowRoot.querySelector(".rows-list"),this.#Nr=this.shadowRoot.querySelector(".add-row"),this.#Ir=this.shadowRoot.querySelector(".add-button-label"),this.#xr=this.shadowRoot.querySelector(".clear-all")}init(){super.init?.(),S(this,this.#jr.bind(this)),this.#Nr.addEventListener("click",this.#Tr.bind(this)),this.#xr.addEventListener("click",this.#Dr.bind(this)),this.#br.addEventListener("change",this.#vr.bind(this)),this.#br.addEventListener("delete",this.#zr.bind(this)),[this.#Nr,this.#xr].forEach(t=>k(this,t,{includeAttrs:["size"]})),this.#Cr(),this.#jr(),this.#Sr(),this.#fe(),setTimeout(()=>this.#wr())}#Cr(){const t=bN(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(IN).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#Ar(t)})}#Lr(){const t=new Set(this.#ze.map(t=>t.id));this.#br.querySelectorAll(IN).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${IN}[data-row-id="${t}"]`)}#fe(){this.#Lr(),this.#ze.forEach(t=>{(this.#fr(t.id)||this.#Er(t.id)).setAttribute("value",JSON.stringify(t))}),this.#wr(),this.#kr()}#Er(t){const e=document.createElement(IN);return e.dataset.rowId=t,this.#br.appendChild(e),k(this,e,{includeAttrs:["data","size","label-type","operators-catalog","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...uN]}),this.#Ar(e),e}#Ar(t){Array.from(this.children).filter(t=>"delete-row-icon"===t.getAttribute?.("slot")).forEach(e=>{const i=e.cloneNode(!0);i.setAttribute("slot","delete-row-icon"),t.appendChild(i)})}#wr(){const t=1===this.#ze.length&&this.#mr(this.#ze[0]);this.#br.querySelectorAll(IN).forEach(e=>{t?e.setAttribute("disable-delete",""):e.removeAttribute("disable-delete")}),t?this.#xr.setAttribute("disabled","true"):this.#xr.removeAttribute("disabled")}#Sr(){0===this.#ze.length&&(this.#ze=[this.#Mr()])}#kr(){const t=parseInt(this.getAttribute("max-rows"),10),e=!Number.isNaN(t)&&this.#ze.length>=t;this.#Nr.classList.toggle("hidden",e)}#Tr(){this.#ze=[...this.#ze,this.#Mr()],this.#fe(),this.#v()}#Dr(){this.#ze=[this.#Mr()],this.#fe(),this.#Pn("clear")}#vr(t){const e=t.target.closest(IN);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#ze=this.#ze.map(e=>e.id===i?t.detail.value:e),this.#wr(),this.#v()}#zr(t){const e=t.target.closest(IN);if(!e)return;const i=e.dataset.rowId;this.#ze=this.#ze.filter(t=>t.id!==i),this.#Sr(),this.#fe(),this.#v()}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Or({column:t,operator:e}){const i=this.#yr.find(e=>e.id===t);return i&&gN(i.inputType,i.operators,bN(this,"operators-catalog")).find(t=>t.id===e)||null}#Vr(t){const e=this.#Or(t);return e?{...null!=e.prefix&&{prefix:e.prefix},...null!=e.suffix&&{suffix:e.suffix}}:{}}#v(){const t=t=>({column:t.column,operator:t.operator,value:t.value,...this.#Vr(t)}),e=this.#ze.filter(MN).map(t),i=this.#ze.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Pn("change",{value:e,rows:i})}get value(){return JSON.stringify(this.#ze)}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}get addButtonLabel(){return this.getAttribute("add-button-label")||"Add filter"}get clearAllButtonLabel(){return this.getAttribute("clear-all-button-label")||"Clear all"}#Wr(){this.#Ir.textContent=this.addButtonLabel}#Rr(){this.#xr.textContent=this.clearAllButtonLabel}#Ur(t){if(t)try{const e=JSON.parse(t);this.#ze=(Array.isArray(e)?e:[]).map(t=>{const e=this.#Or(t);return{...t,id:t.id||this.#gr(),...e&&{noValue:!!e.noValue}}}),this.#Sr(),this.#fe()}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&(this.#Cr(),this.#fe()),"value"===t&&this.#Ur(i),"add-button-label"===t&&this.#Wr(),"clear-all-button-label"===t&&this.#Rr(),"max-rows"===t&&this.#kr())}})(jt({componentName:wN,baseSelector:".container"})),VN=f("filter"),WN=jt({componentName:VN,baseSelector:"vaadin-popover"}),RN=["add-row-icon","delete-row-icon"],{host:UN,overlay:YN,backdrop:QN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},PN=T(Mt({mappings:{hostWidth:{...UN,property:"width"},hostDirection:[{...UN,property:"direction"},{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},{selector:()=>ON.componentName,property:ON.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderRadius},counterWidth:{selector:()=>Lc.componentName,property:Lc.cssVarList.hostWidth},counterHeight:{selector:()=>Lc.componentName,property:Lc.cssVarList.hostHeight},counterFontSize:{selector:()=>Lc.componentName,property:Lc.cssVarList.fontSize},counterLineHeight:{selector:()=>Lc.componentName,property:Lc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.backgroundColor},counterTextColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.textColor},counterBorderColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderColor},counterOffsetX:{selector:()=>$y.componentName,property:$y.cssVarList.offsetX},counterOffsetY:{selector:()=>$y.componentName,property:$y.cssVarList.offsetY},rowsHostWidth:{selector:()=>ON.componentName,property:ON.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>ON.componentName,property:ON.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>ON.componentName,property:ON.cssVarList.containerPadding},rowsContainerGap:{selector:()=>ON.componentName,property:ON.cssVarList.containerGap},rowsListGap:{selector:()=>ON.componentName,property:ON.cssVarList.listGap},rowsListMaxHeight:{selector:()=>ON.componentName,property:ON.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>ON.componentName,property:ON.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>ON.componentName,property:ON.cssVarList.addRowIconSize},rowWidth:{...UN,property:SN.cssVarList.hostWidth},rowMinWidth:{...UN,property:SN.cssVarList.hostMinWidth},rowValueWidth:{...UN,property:SN.cssVarList.inputWidth},rowGap:{...UN,property:SN.cssVarList.rowGap},rowDisabledDeleteColor:{...UN,property:SN.cssVarList.deleteDisabledIconColor}}}),Wt({name:"overlay",selector:"",mappings:{marginTop:{...YN,property:"margin-top"},width:{...YN},backgroundColor:{...YN},backdropBackgroundColor:{...QN,property:"background-color"},backdropPointerEvents:{...QN,property:"pointer-events"},padding:{...YN},boxShadow:{...YN},borderRadius:{...YN},outlineWidth:{...YN},outlineColor:{...YN},outlineStyle:{...YN}}}),mt,yt)(class extends WN{#Yr=[];#Qr=!1;#ct;#R=null;#Pr=null;#Br=null;static get observedAttributes(){return[...WN.observedAttributes||[],"label","disable-indicator","data","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-attachment class="attachment" position="top-end" st-offset-x="0px">\n <descope-button class="trigger-btn">\n <slot name="button-icon"></slot>\n <span class="trigger-label"></span>\n </descope-button>\n <descope-badge slot="attachment" class="counter hidden" mode="primary" variant="contained" bordered="true" size="xs">\n <span class="counter-text">0</span>\n </descope-badge>\n </descope-attachment>\n <vaadin-popover></vaadin-popover>\n <slot name="add-row-icon" class="hidden"></slot>\n <slot name="delete-row-icon" class="hidden"></slot>\n </div>\n ',O('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host([full-width="true"]) {\n display: block;\n }\n\n /* Block (not the attachment\'s own inline-block) so host width set from\n outside (e.g. container items-grow) flows down to the trigger button;\n anchored\'s flex-grow on the anchor carries it the rest of the way. */\n .attachment {\n display: block;\n }\n\n\n .hidden {\n display: none;\n }\n\n :host([read-only="true"]) .trigger-btn {\n pointer-events: none;\n }\n ',this),this.triggerBtn=this.shadowRoot.querySelector(".trigger-btn"),this.triggerLabel=this.shadowRoot.querySelector(".trigger-label"),this.counter=this.shadowRoot.querySelector(".counter"),this.counterText=this.shadowRoot.querySelector(".counter-text")}get opened(){return"true"===this.getAttribute("opened")}get isIndicatorVisible(){return"true"!==this.getAttribute("disable-indicator")}get isFullWidth(){return"true"===this.getAttribute("full-width")}get overlay(){return this.#Br??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Br}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(wN)||null}init(){super.init?.(),this.#Uo(),this.#Zr(),this.#Fr(),k(this,this.triggerBtn,{includeAttrs:["button-mode","button-variant","size","full-width"],mapAttrs:{"button-mode":"mode","button-variant":"variant"}}),this.#Gr(),setTimeout(()=>{this.#it()})}#Gr(){RN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Pr?.isConnected&&mN(this,this.#Pr,[t])})})}#Uo(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#dt(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(wN);k(this,e,{includeAttrs:["operators","size","max-rows","clear-all-button-label","add-button-label","label-type","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...uN],mapAttrs:{operators:"operators-catalog"}}),this.#Hr(e),t.appendChild(e),this.#Pr=e,e.setAttribute("value",JSON.stringify(this.#Yr)),e.addEventListener("change",this.#Jr.bind(this)),e.addEventListener("clear",this.#$r.bind(this));const i=new CSSStyleSheet;i.insertRule(":host{display:block!important;}"),this.baseElement?.shadowRoot?.adoptedStyleSheets?.push(i),this.backdrop?.addEventListener("click",()=>this.closePopover())}this.#Pr&&mN(this,this.#Pr,RN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(),t.style.setProperty("visibility","visible")},50)}#pt(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ct&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ct));const e=document.body.getBoundingClientRect(),i=this.triggerBtn.getBoundingClientRect(),o=this.overlay.getBoundingClientRect(),n=i.left-o.left,r=o.left,s=e.width-o.right;let a;a=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),r);const l=Math.round(this.getBoundingClientRect().width);this.#ct=O(`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${a}px;\n ${this.isFullWidth?`width: ${l}px; max-width: ${l}px;`:""}\n }\n `,t)}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#qr(t){this.#Qr=!0,this.setAttribute("value",JSON.stringify(yN(t))),this.#Qr=!1}#Jr(t){const e=yN(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Yr)&&(this.#qr(e),this.#Pn("filter-apply",{value:this.#Yr,action:"apply"}))}#$r(){this.#qr([]),this.#Pn("filter-clear",{value:this.#Yr,action:"clear-all"})}#Zr(){if(!this.counter)return;const t=this.#Yr.length;this.counterText.textContent=String(t),this.counter.classList.toggle("hidden",t<1||!this.isIndicatorVisible)}#Fr(){if(!this.triggerLabel)return;const t=this.getAttribute("label")||"";this.triggerLabel.textContent=t,this.triggerLabel.classList.toggle("hidden",!t)}#Hr(t){t&&this.#R&&t.setAttribute("data",JSON.stringify(this.#R))}get value(){return JSON.stringify(this.#Yr)}set value(t){this.#qr(t)}set data(t){this.#R=Array.isArray(t)?t:null,this.filterRowsElement&&this.#R&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#R))}get data(){return this.#R}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{})}get readOnly(){return"true"===this.getAttribute("read-only")}onPopoverToggle(){this.readOnly||(this.opened?this.closePopover():this.openPopover())}openPopover(){this.setAttribute("opened","true"),this.baseElement.opened=!0}closePopover(){this.removeAttribute("opened"),this.baseElement.opened=!1}#_r(t){t&&(this.#Yr=yN(t),this.#Zr(),this.#Qr||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Yr)))}#Xr(t){if(t)try{this.#R=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#R))}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("value"===t&&this.#_r(i),"data"===t&&this.#Xr(i),"label"===t&&this.#Fr(),"disable-indicator"===t&&this.#Zr())}}),BN=st(Sp),ZN="#00000020",{shadow:FN}=BN,GN=PN.cssVarList,HN={[GN.counterBorderRadius]:"50%",[GN.counterWidth]:"1.5em",[GN.counterHeight]:"1.5em",[GN.counterFontSize]:"0.5em",[GN.counterLineHeight]:"2.25em",[GN.counterBackgroundColor]:BN.colors.primary.main,[GN.counterTextColor]:BN.colors.primary.contrast,[GN.counterOffsetX]:"-0.725em",[GN.counterOffsetY]:"0",_fullWidth:{[GN.hostWidth]:"100%"},[GN.overlay.backgroundColor]:BN.colors.surface.main,[GN.overlay.backdropBackgroundColor]:"transparent",[GN.overlay.backdropPointerEvents]:"all",[GN.overlay.boxShadow]:`${FN.wide.xl} ${ZN}, ${FN.narrow.xl} ${ZN}`,[GN.overlay.borderRadius]:Sp.radius.xs,[GN.overlay.outlineWidth]:"0",[GN.overlay.outlineColor]:"transparent",[GN.overlay.outlineStyle]:"none",[GN.overlay.padding]:"0",[GN.rowsHostWidth]:"100%",[GN.rowsContainerWidth]:"100%",[GN.rowsContainerPadding]:BN.spacing.lg,[GN.rowsContainerGap]:BN.spacing.md,[GN.rowsListGap]:BN.spacing.sm,[GN.rowsListMaxHeight]:"400px",[GN.rowsActionsGap]:BN.spacing.md,[GN.rowsAddRowIconSize]:"1.25em",[GN.rowWidth]:"100%",[GN.rowMinWidth]:"30em",[GN.rowValueWidth]:"100%",[GN.rowGap]:BN.spacing.md,[GN.rowDisabledDeleteColor]:BN.colors.surface.light};var JN=Object.freeze({__proto__:null,default:HN,vars:GN});const $N=np.cssVarList,qN={[$N.hostWidth]:th.width,[$N.hostMinWidth]:th.minWidth,[$N.hostDirection]:th.direction,[$N.fontSize]:th.fontSize,[$N.fontFamily]:th.fontFamily,[$N.labelFontSize]:th.labelFontSize,[$N.labelFontWeight]:th.labelFontWeight,[$N.inputValueFontWeight]:th.inputValueFontWeight,[$N.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[$N.helperTextFontWeight]:th.helperTextFontWeight,[$N.errorMessageFontWeight]:th.errorMessageFontWeight,[$N.labelTextColor]:th.labelTextColor,[$N.errorMessageTextColor]:th.errorMessageTextColor,[$N.inputValueTextColor]:th.valueTextColor,[$N.labelRequiredIndicator]:th.requiredIndicator,[$N.inputPlaceholderColor]:th.placeholderTextColor,[$N.inputBorderWidth]:th.borderWidth,[$N.inputBorderStyle]:th.borderStyle,[$N.inputBorderColor]:th.borderColor,[$N.inputBorderRadius]:th.borderRadius,[$N.inputOutlineWidth]:th.outlineWidth,[$N.inputOutlineStyle]:th.outlineStyle,[$N.inputOutlineColor]:th.outlineColor,[$N.inputOutlineOffset]:th.outlineOffset,[$N.inputBackgroundColor]:th.backgroundColor,[$N.inputHorizontalPadding]:th.horizontalPadding,[$N.inputHeight]:th.inputHeight,[$N.labelPosition]:th.labelPosition,[$N.labelTopPosition]:th.labelTopPosition,[$N.labelHorizontalPosition]:th.labelHorizontalPosition,[$N.inputTransformY]:th.inputTransformY,[$N.inputTransition]:th.inputTransition,[$N.marginInlineStart]:th.marginInlineStart,[$N.placeholderOpacity]:th.placeholderOpacity,[$N.inputVerticalAlignment]:th.inputVerticalAlignment,[$N.valueInputHeight]:th.valueInputHeight,[$N.valueInputMarginBottom]:th.valueInputMarginBottom,[$N.errorMessageIcon]:th.errorMessageIcon,[$N.errorMessageIconSize]:th.errorMessageIconSize,[$N.errorMessageIconPadding]:th.errorMessageIconPadding,[$N.errorMessageIconRepeat]:th.errorMessageIconRepeat,[$N.errorMessageIconPosition]:th.errorMessageIconPosition,[$N.errorMessageFontSize]:th.errorMessageFontSize};var _N=Object.freeze({__proto__:null,default:qN,vars:$N});const XN=f("new-email-internal"),KN=f("new-email"),{host:tI,label:eI,internalInputsWrapper:iI,errorMessage:oI,helperText:nI,emailInput:rI}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-email-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},emailInput:{selector:"descope-email-field"}},sI=T(Mt({mappings:{fontSize:[tI,{},{selector:np.componentName,property:np.cssVarList.fontSize}],fontFamily:[eI,oI,nI],labelFontSize:{...eI,property:"font-size"},labelFontWeight:{...eI,property:"font-weight"},inputValueFontWeight:{...rI,property:np.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...rI,property:np.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...nI,property:"font-weight"},errorMessageFontWeight:{...oI,property:"font-weight"},labelTextColor:{...eI,property:"color"},errorMessageTextColor:{...oI,property:"color"},errorMessageIcon:{...oI,property:"background-image"},errorMessageIconSize:{...oI,property:"background-size"},errorMessageIconPadding:{...oI,property:"padding-inline-start"},errorMessageIconRepeat:{...oI,property:"background-repeat"},errorMessageIconPosition:{...oI,property:"background-position"},errorMessageFontSize:{...oI,property:"font-size"},hostWidth:{...tI,property:"width"},hostMinWidth:{...tI,property:"min-width"},hostDirection:[{...tI,property:"direction"},{...rI,property:np.cssVarList.hostDirection}],inputsRequiredIndicator:{...tI,property:"content"},spaceBetweenInputs:{...iI,property:"gap"},valueInputHeight:{...rI,property:np.cssVarList.valueInputHeight},valueInputMarginBottom:{...rI,property:np.cssVarList.valueInputMarginBottom}}}),mt,Qt,Vt({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e="true"===this.getAttribute("external-input"),i="false"!==this.getAttribute("accept-unicode");t.innerHTML=`\n\t\t\t<${XN}\n\t\t\t\tname="new-email"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n accept-unicode="${i}"\n\t\t\t>\n </${XN}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(XN),e&&this.initExternalInput(),k(this,this.inputElement,{includeAttrs:["email-label","email-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","invalid","readonly","disabled","draggable","label-type"]})}createSlottedExternalInput(t,e,i){const o=t.querySelector("input"),n=document.createElement("slot"),r=o.getAttribute("slot");return n.setAttribute("name",e),n.setAttribute("slot",r),t.appendChild(n),o.setAttribute("slot",e),o.setAttribute("name",i),o.setAttribute("data-hidden-input","true"),this.appendChild(o),o}initExternalInput(){this.emailInput=this.inputElement.querySelector('[data-id="email"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.emailInput,"external-email-input",this.getAttribute("name")),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input",`${this.getAttribute("name")}-confirm`).setAttribute("data-exclude-field","true")}})(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${_(np.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-email-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-email-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-email-field {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:KN})),aI=sI.cssVarList,lI={[aI.hostWidth]:th.width,[aI.hostMinWidth]:th.minWidth,[aI.hostDirection]:th.direction,[aI.fontSize]:th.fontSize,[aI.fontFamily]:th.fontFamily,[aI.labelFontSize]:th.labelFontSize,[aI.labelFontWeight]:th.labelFontWeight,[aI.inputValueFontWeight]:th.inputValueFontWeight,[aI.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[aI.helperTextFontWeight]:th.helperTextFontWeight,[aI.errorMessageFontWeight]:th.errorMessageFontWeight,[aI.labelTextColor]:th.labelTextColor,[aI.spaceBetweenInputs]:"1em",[aI.errorMessageTextColor]:th.errorMessageTextColor,[aI.valueInputHeight]:th.valueInputHeight,[aI.valueInputMarginBottom]:th.valueInputMarginBottom,[aI.errorMessageIcon]:th.errorMessageIcon,[aI.errorMessageIconSize]:th.errorMessageIconSize,[aI.errorMessageIconPadding]:th.errorMessageIconPadding,[aI.errorMessageIconRepeat]:th.errorMessageIconRepeat,[aI.errorMessageIconPosition]:th.errorMessageIconPosition,[aI.errorMessageFontSize]:th.errorMessageFontSize,_required:{[aI.inputsRequiredIndicator]:th.requiredIndicator}};var dI=Object.freeze({__proto__:null,default:lI,vars:aI});const cI=ne("input-wrapper"),uI=fe(Tp),[pI,hI,gI]=Qe({labelTextColor:uI.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:uI.colors.surface.contrast,placeholderTextColor:uI.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:uI.colors.surface.dark,errorMessageTextColor:uI.colors.error.main,successMessageTextColor:uI.colors.success.main,borderWidth:uI.border.xs,borderRadius:uI.radius.xs,borderColor:"transparent",outlineWidth:uI.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:uI.colors.surface.main,fontFamily:uI.fonts.font1.family,direction:uI.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:uI.border.xs,borderColor:uI.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:uI.colors.error.main}},_focused:{outlineColor:uI.colors.surface.light,_invalid:{outlineColor:uI.colors.error.main}},_disabled:{labelTextColor:uI.colors.surface.light,borderColor:uI.colors.surface.light,valueTextColor:uI.colors.surface.light,placeholderTextColor:uI.colors.surface.light,helperTextColor:uI.colors.surface.light,backgroundColor:uI.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},cI);var MI=Object.freeze({__proto__:null,default:pI,refs:hI,vars:gI});const mI=fe(Tp),yI=hs.cssVarList,bI={[yI.hostWidth]:hI.width,[yI.hostMinWidth]:hI.minWidth,[yI.hostDirection]:hI.direction,[yI.fontSize]:hI.fontSize,[yI.fontFamily]:hI.fontFamily,[yI.labelFontSize]:hI.labelFontSize,[yI.labelFontWeight]:hI.labelFontWeight,[yI.inputValueFontWeight]:hI.inputValueFontWeight,[yI.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[yI.helperTextFontWeight]:hI.helperTextFontWeight,[yI.errorMessageFontWeight]:hI.errorMessageFontWeight,[yI.labelTextColor]:hI.labelTextColor,[yI.errorMessageTextColor]:hI.errorMessageTextColor,[yI.inputHorizontalPadding]:hI.horizontalPadding,[yI.inputHeight]:hI.inputHeight,[yI.inputBackgroundColor]:hI.backgroundColor,[yI.labelRequiredIndicator]:hI.requiredIndicator,[yI.inputValueTextColor]:hI.valueTextColor,[yI.inputPlaceholderTextColor]:hI.placeholderTextColor,[yI.inputBorderWidth]:hI.borderWidth,[yI.inputBorderStyle]:hI.borderStyle,[yI.inputBorderColor]:hI.borderColor,[yI.inputBorderRadius]:hI.borderRadius,[yI.inputOutlineWidth]:hI.outlineWidth,[yI.inputOutlineStyle]:hI.outlineStyle,[yI.inputOutlineColor]:hI.outlineColor,[yI.inputOutlineOffset]:hI.outlineOffset,[yI.revealButtonOffset]:mI.spacing.md,[yI.revealButtonSize]:hI.toggleButtonSize,[yI.revealButtonColor]:hI.placeholderTextColor,[yI.labelPosition]:hI.labelPosition,[yI.labelTopPosition]:hI.labelTopPosition,[yI.labelHorizontalPosition]:hI.labelHorizontalPosition,[yI.inputTransformY]:hI.inputTransformY,[yI.inputTransition]:hI.inputTransition,[yI.marginInlineStart]:hI.marginInlineStart,[yI.placeholderOpacity]:hI.placeholderOpacity,[yI.inputVerticalAlignment]:hI.inputVerticalAlignment,[yI.valueInputHeight]:hI.valueInputHeight,[yI.errorMessageIcon]:hI.errorMessageIcon,[yI.errorMessageIconSize]:hI.errorMessageIconSize,[yI.errorMessageIconPadding]:hI.errorMessageIconPadding,[yI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[yI.errorMessageIconPosition]:hI.errorMessageIconPosition,[yI.errorMessageFontSize]:hI.errorMessageFontSize};var NI=Object.freeze({__proto__:null,default:bI,vars:yI});const II=Er.cssVarList,xI={[II.hostWidth]:hI.width,[II.hostMinWidth]:hI.minWidth,[II.hostDirection]:hI.direction,[II.fontSize]:hI.fontSize,[II.fontFamily]:hI.fontFamily,[II.labelFontSize]:hI.labelFontSize,[II.labelFontWeight]:hI.labelFontWeight,[II.inputValueFontWeight]:hI.inputValueFontWeight,[II.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[II.helperTextFontWeight]:hI.helperTextFontWeight,[II.errorMessageFontWeight]:hI.errorMessageFontWeight,[II.labelTextColor]:hI.labelTextColor,[II.errorMessageTextColor]:hI.errorMessageTextColor,[II.inputValueTextColor]:hI.valueTextColor,[II.inputPlaceholderColor]:hI.placeholderTextColor,[II.inputBorderWidth]:hI.borderWidth,[II.inputBorderStyle]:hI.borderStyle,[II.inputBorderColor]:hI.borderColor,[II.inputBorderRadius]:hI.borderRadius,[II.inputOutlineWidth]:hI.outlineWidth,[II.inputOutlineStyle]:hI.outlineStyle,[II.inputOutlineColor]:hI.outlineColor,[II.inputOutlineOffset]:hI.outlineOffset,[II.inputBackgroundColor]:hI.backgroundColor,[II.labelRequiredIndicator]:hI.requiredIndicator,[II.inputHorizontalPadding]:hI.horizontalPadding,[II.inputHeight]:hI.inputHeight,[II.labelPosition]:hI.labelPosition,[II.labelTopPosition]:hI.labelTopPosition,[II.labelHorizontalPosition]:hI.labelHorizontalPosition,[II.inputTransformY]:hI.inputTransformY,[II.inputTransition]:hI.inputTransition,[II.marginInlineStart]:hI.marginInlineStart,[II.placeholderOpacity]:hI.placeholderOpacity,[II.inputVerticalAlignment]:hI.inputVerticalAlignment,[II.valueInputHeight]:hI.valueInputHeight,[II.valueInputMarginBottom]:hI.valueInputMarginBottom,[II.errorMessageIcon]:hI.errorMessageIcon,[II.errorMessageIconSize]:hI.errorMessageIconSize,[II.errorMessageIconPadding]:hI.errorMessageIconPadding,[II.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[II.errorMessageIconPosition]:hI.errorMessageIconPosition,[II.errorMessageFontSize]:hI.errorMessageFontSize};var jI=Object.freeze({__proto__:null,default:xI,vars:II});const TI=Ts.cssVarList,DI={[TI.hostWidth]:hI.width,[TI.hostMinWidth]:hI.minWidth,[TI.hostDirection]:hI.direction,[TI.fontSize]:hI.fontSize,[TI.fontFamily]:hI.fontFamily,[TI.labelFontSize]:hI.labelFontSize,[TI.labelFontWeight]:hI.labelFontWeight,[TI.inputValueFontWeight]:hI.inputValueFontWeight,[TI.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[TI.helperTextFontWeight]:hI.helperTextFontWeight,[TI.errorMessageFontWeight]:hI.errorMessageFontWeight,[TI.labelTextColor]:hI.labelTextColor,[TI.labelRequiredIndicator]:hI.requiredIndicator,[TI.errorMessageTextColor]:hI.errorMessageTextColor,[TI.inputBackgroundColor]:hI.backgroundColor,[TI.inputValueTextColor]:hI.valueTextColor,[TI.inputPlaceholderTextColor]:hI.placeholderTextColor,[TI.inputBorderRadius]:hI.borderRadius,[TI.inputBorderWidth]:hI.borderWidth,[TI.inputBorderStyle]:hI.borderStyle,[TI.inputBorderColor]:hI.borderColor,[TI.inputOutlineWidth]:hI.outlineWidth,[TI.inputOutlineStyle]:hI.outlineStyle,[TI.inputOutlineColor]:hI.outlineColor,[TI.inputOutlineOffset]:hI.outlineOffset,[TI.inputResizeType]:"vertical",[TI.inputMinHeight]:"5em",[TI.errorMessageIcon]:hI.errorMessageIcon,[TI.errorMessageIconSize]:hI.errorMessageIconSize,[TI.errorMessageIconPadding]:hI.errorMessageIconPadding,[TI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[TI.errorMessageIconPosition]:hI.errorMessageIconPosition,[TI.errorMessageFontSize]:hI.errorMessageFontSize,textAlign:{right:{[TI.inputTextAlign]:"right"},left:{[TI.inputTextAlign]:"left"},center:{[TI.inputTextAlign]:"center"}},_readonly:{[TI.inputResizeType]:"none"}};var vI=Object.freeze({__proto__:null,default:DI,vars:TI});const zI=Ai.cssVarList,CI="1.35em",SI={[zI.hostWidth]:hI.width,[zI.hostDirection]:hI.direction,[zI.fontSize]:hI.fontSize,[zI.fontFamily]:hI.fontFamily,[zI.labelTextColor]:hI.labelTextColor,[zI.labelRequiredIndicator]:hI.requiredIndicator,[zI.labelFontWeight]:"400",[zI.labelLineHeight]:CI,[zI.labelSpacing]:"1em",[zI.errorMessageTextColor]:hI.errorMessageTextColor,[zI.inputOutlineWidth]:hI.outlineWidth,[zI.inputOutlineOffset]:hI.outlineOffset,[zI.inputOutlineColor]:hI.outlineColor,[zI.inputOutlineStyle]:hI.outlineStyle,[zI.inputBorderRadius]:hI.borderRadius,[zI.inputBorderColor]:hI.borderColor,[zI.inputBorderWidth]:hI.borderWidth,[zI.inputBorderStyle]:hI.borderStyle,[zI.inputBackgroundColor]:hI.backgroundColor,[zI.inputSize]:CI,[zI.inputValueTextColor]:hI.valueTextColor,[zI.errorMessageIcon]:hI.errorMessageIcon,[zI.errorMessageIconSize]:hI.errorMessageIconSize,[zI.errorMessageIconPadding]:hI.errorMessageIconPadding,[zI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[zI.errorMessageIconPosition]:hI.errorMessageIconPosition,[zI.errorMessageFontSize]:hI.errorMessageFontSize};var wI=Object.freeze({__proto__:null,default:SI,vars:zI});const AI="2px",LI=fe(Tp),fI=to.cssVarList,EI={[fI.hostWidth]:hI.width,[fI.hostDirection]:hI.direction,[fI.fontSize]:hI.fontSize,[fI.fontFamily]:hI.fontFamily,[fI.inputOutlineWidth]:hI.outlineWidth,[fI.inputOutlineOffset]:hI.outlineOffset,[fI.inputOutlineColor]:hI.outlineColor,[fI.inputOutlineStyle]:hI.outlineStyle,[fI.trackBorderStyle]:hI.borderStyle,[fI.trackBorderWidth]:hI.borderWidth,[fI.trackBorderColor]:hI.borderColor,[fI.trackBackgroundColor]:hI.backgroundColor,[fI.trackBorderRadius]:LI.radius.md,[fI.trackWidth]:"2.5em",[fI.trackHeight]:"1.25em",[fI.knobSize]:`calc(1em - ${AI})`,[fI.knobRadius]:"50%",[fI.knobTopOffset]:"1px",[fI.knobLeftOffset]:AI,[fI.knobColor]:hI.labelTextColor,[fI.knobTransitionDuration]:"0.3s",[fI.labelTextColor]:hI.labelTextColor,[fI.labelFontWeight]:"400",[fI.labelLineHeight]:"1.35em",[fI.labelSpacing]:"1em",[fI.labelRequiredIndicator]:hI.requiredIndicator,[fI.errorMessageTextColor]:hI.errorMessageTextColor,[fI.errorMessageIcon]:hI.errorMessageIcon,[fI.errorMessageIconSize]:hI.errorMessageIconSize,[fI.errorMessageIconPadding]:hI.errorMessageIconPadding,[fI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[fI.errorMessageIconPosition]:hI.errorMessageIconPosition,[fI.errorMessageFontSize]:hI.errorMessageFontSize,_checked:{[fI.trackBorderColor]:hI.borderColor,[fI.knobLeftOffset]:`calc(100% - var(${fI.knobSize}) - ${AI})`,[fI.knobColor]:hI.valueTextColor,[fI.knobTextColor]:hI.valueTextColor},_disabled:{[fI.knobColor]:LI.colors.surface.light,[fI.trackBorderColor]:LI.colors.surface.light,[fI.trackBackgroundColor]:LI.colors.surface.main,[fI.labelTextColor]:hI.labelTextColor,_checked:{[fI.knobColor]:LI.colors.surface.light,[fI.trackBackgroundColor]:LI.colors.surface.main}},_invalid:{[fI.trackBorderColor]:LI.colors.error.main,[fI.knobColor]:LI.colors.error.main}};var kI=Object.freeze({__proto__:null,default:EI,vars:fI});const OI=fe(Tp),VI=po.cssVarList,[WI,RI,UI]=Qe({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},co),{shadowColor:YI}=RI,QI={...WI,[VI.itemsGrow]:"0",[VI.hostWidth]:"100%",[VI.hostHeight]:"auto",[VI.boxShadow]:"none",[VI.backgroundColor]:OI.colors.surface.main,[VI.backgroundImage]:"",[VI.backgroundPositionX]:"center",[VI.backgroundPositionY]:"center",[VI.backgroundSize]:"cover",[VI.backgroundRepeat]:"no-repeat",[VI.color]:OI.colors.surface.contrast,[VI.borderRadius]:"0px",[VI.hostDirection]:OI.direction,[VI.borderStyle]:"none",[VI.borderWidth]:"unset",[VI.borderColor]:"unset",verticalPadding:{sm:{[VI.verticalPadding]:"5px"},md:{[VI.verticalPadding]:"10px"},lg:{[VI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[VI.horizontalPadding]:"5px"},md:{[VI.horizontalPadding]:"10px"},lg:{[VI.horizontalPadding]:"20px"}},direction:{row:{[VI.flexDirection]:"row",[VI.alignItems]:RI.verticalAlignment,[VI.justifyContent]:RI.horizontalAlignment,[VI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[UI.horizontalAlignment]:"space-between"}}},column:{[VI.flexDirection]:"column",[VI.alignItems]:RI.horizontalAlignment,[VI.justifyContent]:RI.verticalAlignment,verticalAlignment:{spaceBetween:{[UI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[VI.gap]:"10px"},md:{[VI.gap]:"20px"},lg:{[VI.gap]:"30px"}},shadow:{sm:{[VI.boxShadow]:`${OI.shadow.wide.sm} ${YI}, ${OI.shadow.narrow.sm} ${YI}`},md:{[VI.boxShadow]:`${OI.shadow.wide.md} ${YI}, ${OI.shadow.narrow.md} ${YI}`},lg:{[VI.boxShadow]:`${OI.shadow.wide.lg} ${YI}, ${OI.shadow.narrow.lg} ${YI}`},xl:{[VI.boxShadow]:`${OI.shadow.wide.xl} ${YI}, ${OI.shadow.narrow.xl} ${YI}`},"2xl":{[UI.shadowColor]:"#00000050",[VI.boxShadow]:`${OI.shadow.wide["2xl"]} ${YI}`}},"&borderRadius":{sm:{[VI.borderRadius]:OI.radius.sm},md:{[VI.borderRadius]:OI.radius.md},lg:{[VI.borderRadius]:OI.radius.lg},xl:{[VI.borderRadius]:OI.radius.xl},"2xl":{[VI.borderRadius]:OI.radius["2xl"]},"3xl":{[VI.borderRadius]:OI.radius["3xl"]}}},PI={...VI,...UI};var BI=Object.freeze({__proto__:null,default:QI,vars:PI});const ZI=Cr.cssVarList,FI={[ZI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var GI=Object.freeze({__proto__:null,default:FI,vars:ZI});const HI=wr.cssVarList,JI={[HI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var $I=Object.freeze({__proto__:null,default:JI,vars:HI});const qI=Lr.cssVarList,_I={[qI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var XI=Object.freeze({__proto__:null,default:_I,vars:qI});const KI=fe(Tp),tx=Dr.cssVarList,[ex,ix,ox]=Qe({thickness:"2px",spacing:"10px"},yr),nx={...ex,[tx.hostDirection]:KI.direction,[tx.alignItems]:"center",[tx.flexDirection]:"row",[tx.alignSelf]:"stretch",[tx.hostWidth]:"100%",[tx.stripeColor]:KI.colors.surface.light,[tx.stripeColorOpacity]:"0.5",[tx.stripeHorizontalThickness]:ix.thickness,[tx.labelTextWidth]:"fit-content",[tx.labelTextMaxWidth]:"calc(100% - 100px)",[tx.labelTextHorizontalSpacing]:ix.spacing,[tx.textAlign]:"center",_vertical:{[tx.minHeight]:"200px",[tx.flexDirection]:"column",[tx.hostWidth]:"fit-content",[tx.hostPadding]:`0 calc(${ix.thickness} * 3)`,[tx.stripeVerticalThickness]:ix.thickness,[tx.labelTextWidth]:"fit-content",[tx.labelTextMaxWidth]:"100%",[tx.labelTextVerticalSpacing]:ix.spacing}},rx={...tx,...ox};var sx=Object.freeze({__proto__:null,default:nx,vars:rx});const ax=es.cssVarList,lx={[ax.hostDirection]:hI.direction,[ax.fontFamily]:hI.fontFamily,[ax.fontSize]:hI.fontSize,[ax.labelTextColor]:hI.labelTextColor,[ax.labelRequiredIndicator]:hI.requiredIndicator,[ax.labelFontWeight]:hI.labelFontWeight,[ax.errorMessageTextColor]:hI.errorMessageTextColor,[ax.errorMessageFontWeight]:hI.errorMessageFontWeight,[ax.digitValueTextColor]:hI.valueTextColor,[ax.digitValueFontWeight]:hI.inputValueFontWeight,[ax.digitPadding]:"0",[ax.digitTextAlign]:"center",[ax.digitSpacing]:"4px",[ax.hostWidth]:hI.width,[ax.digitOutlineColor]:"transparent",[ax.digitOutlineWidth]:hI.outlineWidth,[ax.focusedDigitFieldOutlineColor]:hI.outlineColor,[ax.digitSize]:hI.inputHeight,[ax.errorMessageIcon]:hI.errorMessageIcon,[ax.errorMessageIconSize]:hI.errorMessageIconSize,[ax.errorMessageIconPadding]:hI.errorMessageIconPadding,[ax.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[ax.errorMessageIconPosition]:hI.errorMessageIconPosition,[ax.errorMessageFontSize]:hI.errorMessageFontSize,size:{xs:{[ax.spinnerSize]:"15px"},sm:{[ax.spinnerSize]:"20px"},md:{[ax.spinnerSize]:"20px"},lg:{[ax.spinnerSize]:"20px"}},_hideCursor:{[ax.digitCaretTextColor]:"transparent"},_loading:{[ax.overlayOpacity]:hI.overlayOpacity}};var dx=Object.freeze({__proto__:null,default:lx,vars:ax});const cx=fe(Tp),ux=ro.cssVarList,px={[ux.hostDisplay]:"inline-block",[ux.hostWidth]:"100%",[ux.barColor]:cx.colors.surface.contrast,[ux.barWidth]:"20%",[ux.barBackgroundColor]:cx.colors.surface.light,[ux.barBorderRadius]:"4px",[ux.animationDuration]:"2s",[ux.animationTimingFunction]:"linear",[ux.animationIterationCount]:"infinite",[ux.verticalPadding]:"0.25em",size:{xs:{[ux.barHeight]:"2px"},sm:{[ux.barHeight]:"4px"},md:{[ux.barHeight]:"6px"},lg:{[ux.barHeight]:"8px"}},mode:{primary:{[ux.barColor]:cx.colors.primary.main},secondary:{[ux.barColor]:cx.colors.secondary.main}},_hidden:{[ux.hostDisplay]:"none"}};var hx=Object.freeze({__proto__:null,default:px,vars:ux});const gx=fe(Tp),Mx=lo.cssVarList,[mx,yx,bx]=Qe({spinnerColor:gx.colors.surface.contrast,mode:{primary:{spinnerColor:gx.colors.primary.main},secondary:{spinnerColor:gx.colors.secondary.main}}},so),Nx={...mx,[Mx.animationDuration]:"2s",[Mx.animationTimingFunction]:"linear",[Mx.animationIterationCount]:"infinite",[Mx.spinnerBorderStyle]:"solid",[Mx.spinnerBorderWidth]:"0.2em",[Mx.spinnerBorderRadius]:"50%",[Mx.spinnerQuadrant1Color]:yx.spinnerColor,[Mx.spinnerQuadrant2Color]:"transparent",[Mx.spinnerQuadrant3Color]:yx.spinnerColor,[Mx.spinnerQuadrant4Color]:"transparent",size:{xs:{[Mx.spinnerSize]:"20px"},sm:{[Mx.spinnerSize]:"30px"},md:{[Mx.spinnerSize]:"40px"},lg:{[Mx.spinnerSize]:"60px"},xl:{[Mx.spinnerSize]:"80px"}},_hidden:{[Mx.hostDisplay]:"none"}},Ix={...Mx,...bx};var xx=Object.freeze({__proto__:null,default:Nx,vars:Ix});const jx=Hs.cssVarList,Tx={[jx.hostWidth]:hI.width,[jx.hostDirection]:hI.direction,[jx.fontSize]:hI.fontSize,[jx.fontFamily]:hI.fontFamily,[jx.labelFontSize]:hI.labelFontSize,[jx.labelFontWeight]:hI.labelFontWeight,[jx.inputValueFontWeight]:hI.inputValueFontWeight,[jx.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[jx.helperTextFontWeight]:hI.helperTextFontWeight,[jx.errorMessageFontWeight]:hI.errorMessageFontWeight,[jx.labelTextColor]:hI.labelTextColor,[jx.labelRequiredIndicator]:hI.requiredIndicator,[jx.errorMessageTextColor]:hI.errorMessageTextColor,[jx.inputValueTextColor]:hI.valueTextColor,[jx.inputPlaceholderTextColor]:hI.placeholderTextColor,[jx.inputBorderStyle]:hI.borderStyle,[jx.inputBorderWidth]:hI.borderWidth,[jx.inputBorderColor]:hI.borderColor,[jx.inputBorderRadius]:hI.borderRadius,[jx.inputOutlineStyle]:hI.outlineStyle,[jx.inputOutlineWidth]:hI.outlineWidth,[jx.inputOutlineColor]:hI.outlineColor,[jx.inputOutlineOffset]:hI.outlineOffset,[jx.phoneInputWidth]:hI.minWidth,[jx.countryCodeInputWidth]:"5em",[jx.countryCodeDropdownWidth]:"20em",[jx.marginInlineStart]:"-0.25em",[jx.valueInputHeight]:hI.valueInputHeight,[jx.valueInputMarginBottom]:hI.valueInputMarginBottom,[jx.errorMessageIcon]:hI.errorMessageIcon,[jx.errorMessageIconSize]:hI.errorMessageIconSize,[jx.errorMessageIconPadding]:hI.errorMessageIconPadding,[jx.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[jx.errorMessageIconPosition]:hI.errorMessageIconPosition,[jx.errorMessageFontSize]:hI.errorMessageFontSize};var Dx=Object.freeze({__proto__:null,default:Tx,vars:jx});const vx=ca.cssVarList,zx={[vx.hostWidth]:"16em",[vx.hostMinWidth]:hI.minWidth,[vx.hostDirection]:hI.direction,[vx.fontSize]:hI.fontSize,[vx.fontFamily]:hI.fontFamily,[vx.labelFontSize]:hI.labelFontSize,[vx.labelFontWeight]:hI.labelFontWeight,[vx.inputValueFontWeight]:hI.inputValueFontWeight,[vx.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[vx.helperTextFontWeight]:hI.helperTextFontWeight,[vx.errorMessageFontWeight]:hI.errorMessageFontWeight,[vx.labelTextColor]:hI.labelTextColor,[vx.labelRequiredIndicator]:hI.requiredIndicator,[vx.errorMessageTextColor]:hI.errorMessageTextColor,[vx.inputValueTextColor]:hI.valueTextColor,[vx.inputPlaceholderTextColor]:hI.placeholderTextColor,[vx.inputBorderStyle]:hI.borderStyle,[vx.inputBorderWidth]:hI.borderWidth,[vx.inputBorderColor]:hI.borderColor,[vx.inputBorderRadius]:hI.borderRadius,[vx.inputOutlineStyle]:hI.outlineStyle,[vx.inputOutlineWidth]:hI.outlineWidth,[vx.inputOutlineColor]:hI.outlineColor,[vx.inputOutlineOffset]:hI.outlineOffset,[vx.labelPosition]:hI.labelPosition,[vx.labelTopPosition]:hI.labelTopPosition,[vx.labelHorizontalPosition]:hI.labelHorizontalPosition,[vx.inputTransformY]:hI.inputTransformY,[vx.inputTransition]:hI.inputTransition,[vx.marginInlineStart]:hI.marginInlineStart,[vx.valueInputHeight]:hI.valueInputHeight,[vx.valueInputMarginBottom]:hI.valueInputMarginBottom,[vx.inputHorizontalPadding]:"0",[vx.errorMessageIcon]:hI.errorMessageIcon,[vx.errorMessageIconSize]:hI.errorMessageIconSize,[vx.errorMessageIconPadding]:hI.errorMessageIconPadding,[vx.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[vx.errorMessageIconPosition]:hI.errorMessageIconPosition,[vx.errorMessageFontSize]:hI.errorMessageFontSize,_fullWidth:{[vx.hostWidth]:hI.width}};var Cx=Object.freeze({__proto__:null,default:zx,vars:vx});const Sx=fe(Tp),wx=fa.cssVarList,Ax={[wx.hostWidth]:hI.width,[wx.hostMinWidth]:hI.minWidth,[wx.hostDirection]:hI.direction,[wx.fontSize]:hI.fontSize,[wx.fontFamily]:hI.fontFamily,[wx.labelFontSize]:hI.labelFontSize,[wx.labelFontWeight]:hI.labelFontWeight,[wx.inputValueFontWeight]:hI.inputValueFontWeight,[wx.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[wx.helperTextFontWeight]:hI.helperTextFontWeight,[wx.errorMessageFontWeight]:hI.errorMessageFontWeight,[wx.labelTextColor]:hI.labelTextColor,[wx.spaceBetweenInputs]:"1em",[wx.errorMessageTextColor]:hI.errorMessageTextColor,[wx.policyPreviewBackgroundColor]:"none",[wx.policyPreviewPadding]:Sx.spacing.lg,[wx.valueInputHeight]:hI.valueInputHeight,[wx.errorMessageIcon]:hI.errorMessageIcon,[wx.errorMessageIconSize]:hI.errorMessageIconSize,[wx.errorMessageIconPadding]:hI.errorMessageIconPadding,[wx.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[wx.errorMessageIconPosition]:hI.errorMessageIconPosition,[wx.errorMessageFontSize]:hI.errorMessageFontSize,_required:{[wx.inputsRequiredIndicator]:hI.requiredIndicator}};var Lx=Object.freeze({__proto__:null,default:Ax,vars:wx});const fx=ol.cssVarList,Ex={[fx.hostDirection]:hI.direction,[fx.labelTextColor]:hI.labelTextColor,[fx.fontFamily]:hI.fontFamily,[fx.iconSize]:"2em",[fx.hostPadding]:"0.75em",[fx.gap]:"0.5em",[fx.fontSize]:"16px",[fx.titleFontWeight]:"500",[fx.lineHeight]:"1em",[fx.borderWidth]:hI.borderWidth,[fx.borderColor]:hI.borderColor,[fx.borderRadius]:hI.borderRadius,[fx.borderStyle]:"dashed",_required:{[fx.requiredIndicator]:hI.requiredIndicator},size:{xs:{[fx.hostHeight]:"196px",[fx.hostWidth]:"200px",[fx.titleFontSize]:"0.875em",[fx.descriptionFontSize]:"0.875em",[fx.lineHeight]:"1.25em"},sm:{[fx.hostHeight]:"216px",[fx.hostWidth]:"230px",[fx.titleFontSize]:"1em",[fx.descriptionFontSize]:"0.875em",[fx.lineHeight]:"1.25em"},md:{[fx.hostHeight]:"256px",[fx.hostWidth]:"312px",[fx.titleFontSize]:"1.125em",[fx.descriptionFontSize]:"1em",[fx.lineHeight]:"1.5em"},lg:{[fx.hostHeight]:"280px",[fx.hostWidth]:"336px",[fx.titleFontSize]:"1.125em",[fx.descriptionFontSize]:"1.125em",[fx.lineHeight]:"1.75em"}},_fullWidth:{[fx.hostWidth]:hI.width}};var kx=Object.freeze({__proto__:null,default:Ex,vars:fx});const Ox=fe(Tp),Vx=dl.cssVarList,Wx={[Vx.hostDirection]:"inherit",[Vx.hostWidth]:"auto",[Vx.backgroundColor]:Ox.colors.surface.main,[Vx.labelTextColor]:Ox.colors.surface.contrast,[Vx.borderColor]:Ox.colors.surface.light,[Vx.borderStyle]:"solid",[Vx.borderRadius]:Ox.radius.sm,[Vx.outlineColor]:"transparent",[Vx.borderWidth]:Ox.border.xs,_hover:{[Vx.backgroundColor]:Ox.colors.surface.highlight},_focused:{[Vx.outlineColor]:Ox.colors.surface.light},_selected:{[Vx.borderColor]:Ox.colors.surface.contrast,[Vx.backgroundColor]:Ox.colors.surface.contrast,[Vx.labelTextColor]:Ox.colors.surface.main}};var Rx=Object.freeze({__proto__:null,default:Wx,vars:Vx});const Ux=fe(Tp),Yx=t=>({[t.hostDirection]:hI.direction,[t.fontFamily]:hI.fontFamily,[t.labelTextColor]:hI.labelTextColor,[t.labelRequiredIndicator]:hI.requiredIndicator,[t.itemsSpacing]:Ux.spacing.sm,[t.hostWidth]:hI.width,[t.errorMessageTextColor]:hI.errorMessageTextColor,[t.errorMessageIcon]:hI.errorMessageIcon,[t.errorMessageIconSize]:hI.errorMessageIconSize,[t.errorMessageIconPadding]:hI.errorMessageIconPadding,[t.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[t.errorMessageIconPosition]:hI.errorMessageIconPosition,[t.errorMessageFontSize]:hI.errorMessageFontSize,layout:{vertical:{[t.itemsDirection]:"column",[t.itemsAlignment]:"flex-start",_fullWidth:{[t.itemsAlignment]:"stretch",[t.itemsWidth]:"100%"}}}}),Qx=Nl.cssVarList,Px={...Yx(Qx)};var Bx=Object.freeze({__proto__:null,default:Px,vars:Qx});const Zx=Tl.cssVarList,Fx={...Yx(Zx)};var Gx=Object.freeze({__proto__:null,default:Fx,vars:Zx});const Hx=fe(Tp),Jx=rc.cssVarList,$x={[Jx.overlayBackgroundColor]:Hx.colors.surface.main,[Jx.overlayShadow]:Hx.shadow.wide["2xl"],[Jx.overlayWidth]:"540px",[Jx.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},qx={...Jx};var _x=Object.freeze({__proto__:null,default:$x,vars:qx});const Xx=fe(Tp),Kx=ic.cssVarList,tj={[Kx.hostWidth]:"100%",[Kx.hostHeight]:"100%",[Kx.hostMinHeight]:"400px",[Kx.fontWeight]:"400",[Kx.backgroundColor]:Xx.colors.surface.main,[Kx.fontSize]:hI.fontSize,[Kx.fontFamily]:hI.fontFamily,[Kx.sortIndicatorsColor]:Xx.colors.surface.light,[Kx.activeSortIndicator]:Xx.colors.surface.dark,[Kx.resizeHandleColor]:Xx.colors.surface.light,[Kx.borderWidth]:hI.borderWidth,[Kx.borderStyle]:hI.borderStyle,[Kx.borderRadius]:hI.borderRadius,[Kx.borderColor]:"transparent",[Kx.headerRowTextColor]:Xx.colors.surface.dark,[Kx.separatorColor]:Xx.colors.surface.light,[Kx.valueTextColor]:Xx.colors.surface.contrast,[Kx.selectedBackgroundColor]:Xx.colors.surface.highlight,[Kx.hostDirection]:Xx.direction,[Kx.toggleDetailsPanelButtonSize]:"1em",[Kx.toggleDetailsPanelButtonOpenedColor]:Xx.colors.surface.contrast,[Kx.toggleDetailsPanelButtonClosedColor]:Xx.colors.surface.light,[Kx.toggleDetailsPanelButtonCursor]:"pointer",[Kx.detailsPanelBackgroundColor]:Xx.colors.surface.highlight,[Kx.detailsPanelBorderTopColor]:Xx.colors.surface.light,[Kx.detailsPanelLabelsColor]:Xx.colors.surface.dark,[Kx.detailsPanelLabelsFontSize]:"0.8em",[Kx.detailsPanelItemsGap]:"2em",[Kx.detailsPanelPadding]:"12px 0",_bordered:{[Kx.borderColor]:hI.borderColor}};var ej=Object.freeze({__proto__:null,default:tj,grid:tj,vars:Kx});const ij=fe(Tp),oj=dc.cssVarList,nj="#00000020",rj={[oj.hostMinWidth]:"415px",[oj.fontFamily]:ij.fonts.font1.family,[oj.fontSize]:ij.typography.body1.size,[oj.backgroundColor]:ij.colors.surface.main,[oj.textColor]:ij.colors.surface.contrast,[oj.boxShadow]:`${ij.shadow.wide.xl} ${nj}, ${ij.shadow.narrow.xl} ${nj}`,[oj.verticalPadding]:"0.625em",[oj.horizontalPadding]:"1.5em",[oj.borderRadius]:ij.radius.xs,_bordered:{[oj.borderWidth]:ij.border.sm,[oj.borderStyle]:"solid",[oj.borderColor]:"transparent"},size:{xs:{[oj.fontSize]:"12px"},sm:{[oj.fontSize]:"14px"},md:{[oj.fontSize]:"16px"},lg:{[oj.fontSize]:"18px"}},mode:{primary:{[oj.backgroundColor]:ij.colors.primary.main,[oj.textColor]:ij.colors.primary.contrast,[oj.borderColor]:ij.colors.primary.light},success:{[oj.backgroundColor]:ij.colors.success.main,[oj.textColor]:ij.colors.success.contrast,[oj.borderColor]:ij.colors.success.light},error:{[oj.backgroundColor]:ij.colors.error.main,[oj.textColor]:ij.colors.error.contrast,[oj.borderColor]:ij.colors.error.light}}};var sj=Object.freeze({__proto__:null,default:rj,vars:oj});const aj=fe(Tp),lj=vc.cssVarList,dj={[lj.hostWidth]:hI.width,[lj.hostDirection]:hI.direction,[lj.fontSize]:hI.fontSize,[lj.fontFamily]:hI.fontFamily,[lj.separatorFontSize]:"14px",[lj.labelsFontSize]:"14px",[lj.labelsLineHeight]:"1",[lj.labelsMarginBottom]:"6px",[lj.labelTextColor]:hI.labelTextColor,[lj.itemMarginBottom]:"1em",[lj.valueLabelMinWidth]:hI.minWidth,[lj.attrLabelMinWidth]:`calc(12em + 2 * ${aj.border.xs})`,[lj.separatorWidth]:"70px",[lj.removeButtonWidth]:"60px"};var cj=Object.freeze({__proto__:null,default:dj,mappingsField:dj,vars:lj});const uj=fe(Tp),pj=Qc.cssVarList,hj={[pj.labelMinWidth]:"150px",[pj.hostDirection]:uj.direction,[pj.contentMinWidth]:`calc(100% - ${Ye(pj.labelMinWidth)} - ${Ye(pj.itemsGap)})`,[pj.badgeMaxWidth]:"85px",[pj.itemsGap]:"4px",[pj.hostMinWidth]:"310px",[pj.hostWidth]:"530px",[pj.hostMaxWidth]:"100%",[pj.iconColor]:"currentcolor",_fullWidth:{[pj.hostWidth]:"100%"}};var gj=Object.freeze({__proto__:null,default:hj,vars:pj});const Mj=fe(Tp),mj=qc.cssVarList,yj={[mj.hostDirection]:Mj.direction,[mj.itemsGap]:"16px",[mj.hostMinWidth]:"310px",[mj.hostWidth]:"530px",[mj.hostMaxWidth]:"100%",[mj.iconSize]:"24px",[mj.iconColor]:"currentcolor",_fullWidth:{[mj.hostWidth]:"100%"}};var bj=Object.freeze({__proto__:null,default:yj,vars:mj});const Nj=ou.cssVarList,Ij={[Nj.hostWidth]:hI.width,[Nj.hostDirection]:hI.direction,[Nj.groupNameInputMarginBottom]:"1em",[Nj.errorMessageIcon]:hI.errorMessageIcon,[Nj.errorMessageIconSize]:hI.errorMessageIconSize,[Nj.errorMessageIconPadding]:hI.errorMessageIconPadding,[Nj.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[Nj.errorMessageIconPosition]:hI.errorMessageIconPosition,[Nj.errorMessageFontSize]:hI.errorMessageFontSize};var xj=Object.freeze({__proto__:null,default:Ij,samlGroupMappings:Ij,vars:Nj});const jj=fe(Tp),Tj=ja.cssVarList,Dj={[Tj.fontFamily]:hI.fontFamily,[Tj.fontSize]:hI.labelFontSize,[Tj.textColor]:hI.labelTextColor,[Tj.borderWidth]:hI.borderWidth,[Tj.borderStyle]:hI.borderStyle,[Tj.borderColor]:hI.borderColor,[Tj.borderRadius]:jj.radius.sm,[Tj.backgroundColor]:"none",[Tj.padding]:"0px",[Tj.labelMargin]:jj.spacing.sm,[Tj.itemsSpacing]:jj.spacing.lg,[Tj.itemSymbolDefault]:"'\\2022'",[Tj.itemSymbolSuccess]:"'\\2713'",[Tj.itemSymbolError]:"'\\2A09'",[Tj.itemSymbolSuccessColor]:jj.colors.success.main,[Tj.itemSymbolErrorColor]:jj.colors.error.main};var vj=Object.freeze({__proto__:null,default:Dj,vars:Tj});const zj=fe(Tp),Cj=Ad.cssVarList,Sj="#d73a49",wj="#6f42c1",Aj="#005cc5",Lj="#e36209",fj="#6a737d",Ej="#22863a",kj="#24292e",Oj="#f0fff4",Vj="#032f62",Wj="#ff7b72",Rj="#d2a8ff",Uj="#79c0ff",Yj="#ffa657",Qj="#8b949e",Pj="#7ee787",Bj="#c9d1d9",Zj="#f0fff4",Fj="#a5d6ff",Gj={[Cj.copyButtonSize]:"32px",[Cj.copyButtonBorderRadius]:zj.radius.xs,[Cj.copyButtonBorderWidth]:zj.border.xs,[Cj.copyButtonBorderColor]:zj.colors.surface.light,[Cj.copyButtonBgColor]:zj.colors.surface.highlight,[Cj.copyButtonHoverBgColor]:zj.colors.surface.light,[Cj.copyButtonColor]:zj.colors.surface.contrast,[Cj.rootBgColor]:zj.colors.surface.main,[Cj.rootTextColor]:zj.colors.surface.contrast,[Cj.docTagTextColor]:Sj,[Cj.keywordTextColor]:Sj,[Cj.metaKeywordTextColor]:Sj,[Cj.templateTagTextColor]:Sj,[Cj.templateVariableTextColor]:Sj,[Cj.typeTextColor]:Sj,[Cj.variableLanguageTextColor]:Sj,[Cj.titleTextColor]:wj,[Cj.titleClassTextColor]:wj,[Cj.titleClassInheritedTextColor]:wj,[Cj.titleFunctionTextColor]:wj,[Cj.attrTextColor]:Aj,[Cj.attributeTextColor]:Aj,[Cj.literalTextColor]:Aj,[Cj.metaTextColor]:Aj,[Cj.numberTextColor]:Aj,[Cj.operatorTextColor]:Aj,[Cj.variableTextColor]:Aj,[Cj.selectorAttrTextColor]:Aj,[Cj.selectorClassTextColor]:Aj,[Cj.selectorIdTextColor]:Aj,[Cj.regexpTextColor]:Vj,[Cj.stringTextColor]:Vj,[Cj.metaStringTextColor]:Vj,[Cj.builtInTextColor]:Lj,[Cj.symbolTextColor]:Lj,[Cj.commentTextColor]:fj,[Cj.codeTextColor]:fj,[Cj.formulaTextColor]:fj,[Cj.nameTextColor]:Ej,[Cj.quoteTextColor]:Ej,[Cj.selectorTagTextColor]:Ej,[Cj.selectorPseudoTextColor]:Ej,[Cj.substTextColor]:kj,[Cj.sectionTextColor]:Aj,[Cj.bulletTextColor]:"#735c0f",[Cj.emphasisTextColor]:kj,[Cj.strongTextColor]:kj,[Cj.additionTextColor]:Ej,[Cj.additionBgColor]:Oj,[Cj.deletionTextColor]:Sj,[Cj.deletionBgColor]:Oj},Hj={codeSnippet:{[Cj.rootBgColor]:zj.colors.surface.main,[Cj.rootTextColor]:zj.colors.surface.contrast,[Cj.docTagTextColor]:Wj,[Cj.keywordTextColor]:Wj,[Cj.metaKeywordTextColor]:Wj,[Cj.templateTagTextColor]:Wj,[Cj.templateVariableTextColor]:Wj,[Cj.typeTextColor]:Wj,[Cj.variableLanguageTextColor]:Wj,[Cj.titleTextColor]:Rj,[Cj.titleClassTextColor]:Rj,[Cj.titleClassInheritedTextColor]:Rj,[Cj.titleFunctionTextColor]:Rj,[Cj.attrTextColor]:Uj,[Cj.attributeTextColor]:Uj,[Cj.literalTextColor]:Uj,[Cj.metaTextColor]:Uj,[Cj.numberTextColor]:Uj,[Cj.operatorTextColor]:Uj,[Cj.variableTextColor]:Uj,[Cj.selectorAttrTextColor]:Uj,[Cj.selectorClassTextColor]:Uj,[Cj.selectorIdTextColor]:Uj,[Cj.regexpTextColor]:Fj,[Cj.stringTextColor]:Fj,[Cj.metaStringTextColor]:Fj,[Cj.builtInTextColor]:Yj,[Cj.symbolTextColor]:Yj,[Cj.commentTextColor]:Qj,[Cj.codeTextColor]:Qj,[Cj.formulaTextColor]:Qj,[Cj.nameTextColor]:Pj,[Cj.quoteTextColor]:Pj,[Cj.selectorTagTextColor]:Pj,[Cj.selectorPseudoTextColor]:Pj,[Cj.substTextColor]:Bj,[Cj.sectionTextColor]:Uj,[Cj.bulletTextColor]:"#735c0f",[Cj.emphasisTextColor]:Bj,[Cj.strongTextColor]:Bj,[Cj.additionTextColor]:Pj,[Cj.additionBgColor]:Zj,[Cj.deletionTextColor]:Wj,[Cj.deletionBgColor]:Zj}};var Jj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Hj,default:Gj,vars:Cj});const $j=au.cssVarList,qj=fe(Tp),_j={[$j.buttonsRowGap]:"9px",[$j.hostWidth]:hI.width,[$j.hostDirection]:hI.direction,[$j.fontSize]:hI.fontSize,[$j.fontFamily]:hI.fontFamily,[$j.labelFontWeight]:hI.labelFontWeight,[$j.labelTextColor]:hI.labelTextColor,[$j.labelRequiredIndicator]:hI.requiredIndicator,[$j.errorMessageTextColor]:hI.errorMessageTextColor,[$j.errorMessageIcon]:hI.errorMessageIcon,[$j.errorMessageIconSize]:hI.errorMessageIconSize,[$j.errorMessageIconPadding]:hI.errorMessageIconPadding,[$j.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[$j.errorMessageIconPosition]:hI.errorMessageIconPosition,[$j.errorMessageFontSize]:hI.errorMessageFontSize,[$j.helperTextColor]:hI.helperTextColor,[$j.itemsLabelColor]:qj.colors.surface.contrast,[$j.itemsLabelFontWeight]:hI.inputValueFontWeight,[$j.itemsFontFamily]:hI.fontFamily,[$j.itemsRadioCheckedColor]:qj.colors.surface.light,[$j.itemsRadioBackgroundColor]:qj.colors.surface.light,[$j.itemsRadioCheckedBackgroundColor]:qj.colors.surface.contrast,textAlign:{right:{[$j.inputTextAlign]:"right"},left:{[$j.inputTextAlign]:"left"},center:{[$j.inputTextAlign]:"center"}},_fullWidth:{[$j.buttonsSpacing]:"space-between"},_disabled:{[$j.itemsLabelColor]:qj.colors.surface.light}};var Xj=Object.freeze({__proto__:null,default:_j,radioGroup:_j,vars:$j});const Kj=ru.cssVarList,tT=fe(Tp),eT={[Kj.fontFamily]:hI.fontFamily,[Kj.labelFontWeight]:hI.inputValueFontWeight,[Kj.radioSize]:"calc(1em + 6px)",[Kj.radioMargin]:"auto 4px",[Kj.radioCheckedSize]:`calc(var(${Kj.radioSize})/5)`,[Kj.radioCheckedColor]:tT.colors.surface.light,[Kj.radioBackgroundColor]:tT.colors.surface.light,[Kj.radioBorderColor]:"none",[Kj.radioBorderWidth]:0,_checked:{[Kj.radioBackgroundColor]:tT.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[Kj.fontSize]:"12px"},sm:{[Kj.fontSize]:"14px"},md:{[Kj.fontSize]:"16px"},lg:{[Kj.fontSize]:"18px"}}};var iT=Object.freeze({__proto__:null,default:eT,radioButton:eT,vars:Kj});const oT=fe(Tp),nT=Vn.cssVarList,rT={[nT.fontFamily]:hI.fontFamily,[nT.fontSize]:hI.fontSize,[nT.hostDirection]:hI.direction,[nT.calendarPadding]:"1em",[nT.topNavVerticalPadding]:"1em",[nT.topNavAlignment]:"space-between",[nT.topNavGap]:"0",[nT.topNavSelectorsGap]:"0.5em",[nT.bottomNavVerticalPadding]:"0.75em",[nT.bottomNavHorizontalPadding]:"1.5em",[nT.bottomNavAlignment]:"space-between",[nT.bottomNavGap]:"0.5em",[nT.navMarginBottom]:"0.75em",[nT.navBorderBottomWidth]:"1px",[nT.navBorderBottomColor]:oT.colors.surface.highlight,[nT.navBorderBottomStyle]:"solid",[nT.yearInputWidth]:"6em",[nT.monthInputWidth]:"8em",[nT.navButtonSize]:"24px",[nT.navButtonCursor]:"pointer",[nT.weekdayFontSize]:"0.875em",[nT.weekdayFontWeight]:"500",[nT.dayHeight]:"3.125em",[nT.daySize]:"2.125em",[nT.dayFontSize]:"1em",[nT.dayRadius]:"50%",[nT.dayTextAlign]:"center",[nT.dayPadding]:"0",[nT.dayTextColor]:oT.colors.surface.contrast,[nT.dayFontWeight]:"500",[nT.dayBackgroundColor]:"transparent",[nT.dayCursor]:"pointer",[nT.dayBackgroundColorHover]:oT.colors.primary.highlight,[nT.daySelectedBackgroundColor]:oT.colors.primary.main,[nT.daySelectedTextdColor]:oT.colors.primary.contrast,[nT.dayDisabledTextdColor]:oT.colors.surface.light,[nT.currentDayBorderColor]:oT.colors.surface.light,[nT.currentDayBorderWidth]:"1px",[nT.currentDayBorderStyle]:"solid",size:{xs:{[nT.fontSize]:"12px"},sm:{[nT.fontSize]:"14px"},md:{[nT.fontSize]:"16px"},lg:{[nT.fontSize]:"18px"}},[nT.navButtonRotation]:"rotate(180deg)",_disabled:{[nT.navButtonOpacity]:"0.5",[nT.dayBackgroundColorHover]:"none",[nT.navButtonCursor]:"default",[nT.dayCursor]:"default"},_fullWidth:{[nT.hostWidth]:"100%",[nT.dayBlockAlign]:"0 auto"}};var sT=Object.freeze({__proto__:null,default:rT,vars:nT});const aT=fe(Tp),lT="#00000020",{shadow:dT}=aT,cT=mr.cssVarList,uT={[cT.hostWidth]:hI.width,[cT.hostDirection]:hI.direction,[cT.iconMargin]:"0.375em",[cT.overlay.marginTop]:`calc(${hI.outlineWidth} + 1px)`,[cT.overlay.backgroundColor]:hI.backgroundColor,[cT.overlay.backdropBackgroundColor]:"transparent",[cT.overlay.backdropPointerEvents]:"all",[cT.overlay.boxShadow]:`${dT.wide.xl} ${lT}, ${dT.narrow.xl} ${lT}`,[cT.overlay.outlineWidth]:"0",[cT.overlay.outlineColor]:"transparent",[cT.overlay.outlineStyle]:"none",[cT.overlay.padding]:"0",[cT.rtlInputDirection]:"ltr",[cT.rtlInputAlignment]:"right",[cT.errorMessageIcon]:hI.errorMessageIcon,[cT.errorMessageIconSize]:hI.errorMessageIconSize,[cT.errorMessageIconPadding]:hI.errorMessageIconPadding,[cT.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[cT.errorMessageIconPosition]:hI.errorMessageIconPosition,[cT.errorMessageFontSize]:hI.errorMessageFontSize,[cT.labelFontWeight]:hI.labelFontWeight,[cT.inputValueFontWeight]:hI.inputValueFontWeight,[cT.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[cT.helperTextFontWeight]:hI.helperTextFontWeight,[cT.errorMessageFontWeight]:hI.errorMessageFontWeight};var pT=Object.freeze({__proto__:null,default:uT,vars:cT});const hT=hu.cssVarList,gT={[hT.requiredInputBorderColor]:pI._disabled[gI.borderColor],[hT.requiredInputValueTextColor]:pI._disabled[gI.valueTextColor],[hT.hostWidth]:"280px",_fullWidth:{[hT.hostWidth]:"100%"}};var MT=Object.freeze({__proto__:null,default:gT,vars:hT});const mT=fe(Tp),yT=Tu.cssVarList,bT={[yT.gap]:mT.spacing.lg,[yT.arrowsColor]:mT.colors.surface.dark,[yT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[yT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[yT.logoMaxHeight]:"30px",[yT.logoMaxWidth]:"120px"},sm:{[yT.logoMaxHeight]:"40px",[yT.logoMaxWidth]:"160px"},md:{[yT.logoMaxHeight]:"48px",[yT.logoMaxWidth]:"200px"},lg:{[yT.logoMaxHeight]:"60px",[yT.logoMaxWidth]:"240px"}}};var NT=Object.freeze({__proto__:null,default:bT,vars:yT});const IT=Su.cssVarList,xT={[IT.hostWidth]:"fit-content",_fullWidth:{[IT.hostWidth]:"100%"}};var jT=Object.freeze({__proto__:null,default:xT,vars:IT});const TT=Vu.cssVarList,DT={[TT.hostWidth]:"min-content",[TT.questionCursor]:"pointer",_fullWidth:{[TT.hostWidth]:"100%"},[TT.questionFontSize]:hI.fontSize,[TT.questionFontFamily]:hI.fontFamily};var vT=Object.freeze({__proto__:null,default:DT,vars:TT});const zT=up.cssVarList,CT={[zT.hostDirection]:hI.direction,[zT.labelFontWeight]:hI.labelFontWeight,[zT.inputValueFontWeight]:hI.inputValueFontWeight,[zT.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[zT.helperTextFontWeight]:hI.helperTextFontWeight,[zT.errorMessageFontWeight]:hI.errorMessageFontWeight,[zT.errorMessageIcon]:hI.errorMessageIcon,[zT.errorMessageIconSize]:hI.errorMessageIconSize,[zT.errorMessageIconPadding]:hI.errorMessageIconPadding,[zT.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[zT.errorMessageIconPosition]:hI.errorMessageIconPosition,[zT.errorMessageFontSize]:hI.errorMessageFontSize,_fullWidth:{[zT.hostWidth]:"100%"}};var ST=Object.freeze({__proto__:null,default:CT,vars:zT});const wT=fe(Tp),AT=Mp.cssVarList,LT={[AT.hostDirection]:wT.direction,[AT.backgroundColor]:"transparent",[AT.iconSize]:"1.35em",[AT.alignItems]:"center",[AT.borderRadius]:wT.radius.md,[AT.horizontalPadding]:"0",[AT.verticalPadding]:"0",[AT.gap]:"0.5em",[AT.fontSize]:Ye(Yp.fontSize),mode:{error:{[AT.textColor]:wT.colors.error.main,_bordered:{[AT.borderColor]:wT.colors.error.main}},success:{[AT.textColor]:wT.colors.success.main,_bordered:{[AT.borderColor]:wT.colors.success.main}}},spacing:{xs:{[AT.horizontalPadding]:wT.spacing.xs,[AT.verticalPadding]:wT.spacing.xs},sm:{[AT.horizontalPadding]:wT.spacing.sm,[AT.verticalPadding]:wT.spacing.sm},md:{[AT.horizontalPadding]:wT.spacing.md,[AT.verticalPadding]:wT.spacing.md},lg:{[AT.horizontalPadding]:wT.spacing.lg,[AT.verticalPadding]:wT.spacing.lg},xl:{[AT.horizontalPadding]:wT.spacing.xl,[AT.verticalPadding]:wT.spacing.xl}},textAlign:{left:{[AT.justifyContent]:"left"},center:{[AT.justifyContent]:"center"},right:{[AT.justifyContent]:"right"}},_bordered:{[AT.borderWidth]:wT.border.xs,[AT.borderColor]:"transparent",[AT.borderStyle]:"solid",[AT.borderWidth]:wT.border.xs,[AT.borderRadius]:wT.radius.sm},_fullWidth:{[AT.hostWidth]:"100%"}};var fT=Object.freeze({__proto__:null,default:LT,vars:AT});const ET=Np.cssVarList,kT={enabled:{false:{[ET.maxHeight]:"70px"}}},OT={button:Rp,textField:yb,password:NI,numberField:jI,emailField:_N,textArea:vI,checkbox:wI,switchToggle:kI,container:BI,logo:GI,totpImage:$I,notpImage:XI,text:Pp,enrichedText:qp,link:Gp,divider:sx,passcode:dx,loaderRadial:xx,loaderLinear:hx,comboBox:nh,phoneField:Dx,phoneInputBoxField:Cx,newPassword:Lx,newEmail:dI,inputWrapper:MI,uploadFile:kx,buttonSelectionGroupItem:Rx,buttonSelectionGroup:Bx,buttonMultiSelectionGroup:Gx,modal:_x,grid:ej,notificationCard:sj,multiSelectComboBox:zg,badge:uh,avatar:jh,mappingsField:cj,userAttribute:gj,userAuthMethod:bj,samlGroupMappings:xj,policyValidation:vj,image:zh,icon:Dh,codeSnippet:Jj,radioGroup:Xj,radioButton:iT,calendar:sT,dateField:pT,monthDayField:$b,monthDayFieldPicker:dN,list:Ph,listItem:Gh,multiLineMappings:jg,appsList:Eh,scopesList:MT,thirdPartyAppLogo:NT,securityQuestionsSetup:jT,securityQuestionsVerify:vT,hybridField:ST,alert:fT,autocompleteField:Wg,addressField:Kg,countrySubdivisionCityField:By,timer:uM,timerButton:CM,passwordStrength:YM,collapsibleContainer:KM,recoveryCodes:um,activeSessions:xm,hcaptcha:Object.freeze({__proto__:null,default:kT,vars:ET}),outboundApps:wm,outboundAppButton:Vm,trustedDevices:Gm,multiSso:ey,tooltip:my,filter:JN,attachment:Ky,userPasskeys:hb},VT=Object.keys(OT).reduce((t,e)=>({...t,[e]:OT[e].default}),{}),WT=Object.keys(OT).reduce((t,e)=>({...t,[e]:OT[e].vars}),{}),RT={globals:Tp,components:VT},UT={globals:Dp,components:WT},YT=l()({},RT,{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:{...Hj}});customElements.define(Hh,lg),customElements.define(hm,bm),customElements.define(Cg,class extends Sg{static get observedAttributes(){return[].concat(Sg.observedAttributes||[],wg)}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(t){this.allowCustomValue?this.comboBox.value=t:(this.comboBox.data=[{label:t,value:t}],setTimeout(()=>{this.comboBox.value=t}))}get defaultValue(){return this.getAttribute("default-value")}async#Kr(t){const{results:e,error:i}=await this.fetchResults(t);return i?{error:i}:{results:e}}#ts(t,e,i,o){return`<span data-name="${i}" data-id="${e}" ${o?'disabled="true"':""}>${t||i}</span>`}#es(){this.comboBox.renderer=(t,e,i)=>{"true"===i.item.getAttribute("disabled")?t.setAttribute("disabled","true"):t.removeAttribute("disabled"),t.innerHTML=i.item.outerHTML},this.comboBox.renderItem=({displayName:t,value:e,label:i,disabled:o})=>this.#ts(t,e,i,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#is(),A(this,this.comboBox,{includeAttrs:["invalid"]})}#is(){this.debouncedSearch=(t=>{let e=0;const i=new Set,o=new Set,n=s()((n,r)=>{t(...n).then(t=>{r===e&&(i.forEach(e=>e(t)),i.clear())}).catch(t=>{o.forEach(e=>e(t)),o.clear()})},250);return(...t)=>(e++,new Promise((r,s)=>{i.add(r),o.add(s),n(t,e)}))})(async t=>{try{const{results:e,error:i}=await this.#Kr(t);return{results:e,error:i,value:t}}catch(e){return{error:e,value:t}}}),k(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.#es()}#os(){return[{label:this.noResultsFoundMessage,value:Ag,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:Ag,disabled:!0}]}async onSearch(t){const e=t.detail.value;if(!e||e.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const i=await this.debouncedSearch(e);i&&i.value===e&&(this.comboBox.loading=!1,i.error?this.comboBox.data=this.#ns():0===i.results?.length?this.comboBox.data=this.#os():this.comboBox.data=i.results||[])}fetchResults(t){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(Lg,Eg),customElements.define(Yg,Hg),customElements.define(Jg,qg);const QT=f("anchored");class PT extends(jt({componentName:QT,baseSelector:".anchored-root"})){#rs=null;#ss=null;#as=null;#ls=null;get#ds(){return this.defaultSlot.assignedElements({flatten:!0})[0]}get#cs(){return this.shadowRoot.querySelector('slot[name="anchored"]')?.assignedElements()[0]}get#us(){return this.getRootNode().host}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="anchored-root" part="root">\n <slot></slot>\n <div class="anchored-host" part="anchored">\n <slot name="anchored"></slot>\n </div>\n </div>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])")}init(){super.init?.(),O("\n :host {\n display: inline-flex;\n position: relative;\n box-sizing: border-box;\n }\n\n :host(:not([has-anchor])) {\n display: none;\n }\n\n .anchored-root {\n position: relative;\n display: flex;\n width: 100%;\n min-width: 0;\n }\n\n /* Make anchor fill the flex row and allow it to shrink. */\n ::slotted(*:not([slot])) {\n flex-grow: 1; /* fill the flex row */\n flex-shrink: 1; /* compress when constrained */\n flex-basis: auto; /* start from the anchor's natural size */\n min-width: 0; /* flex items won't shrink below content size without this */\n }\n\n /* Anchored container covers the anchor but is invisible to pointer events. */\n .anchored-host {\n position: absolute;\n inset: 0;\n pointer-events: none;\n }\n\n /* Restore interactivity for actual anchored content. */\n ::slotted([slot=\"anchored\"]) {\n pointer-events: auto;\n }\n ",this),this.#ps(),this.defaultSlot.addEventListener("slotchange",()=>this.#hs()),this.#hs()}#bi(){const t=this.#ds?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#hs(){this.#gs(),this.#rs=this.#Ms(this.#rs,this.#us,"stretch"),this.#ss=this.#Ms(this.#ss,this.#cs,"st-host-direction"),this.#ms()}#ms(){this.#ls?.disconnect(),this.#ds&&(this.#ls=C(this.#ds,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#ms(),this.#bi()}#ps(){const t="\n descope-anchored {\n width: 100%; /* fill the outer host so the anchored element spans the full anchor width */\n }\n :host([stretch]) {\n display: inline-flex; /* switch from inline-block so internal children are flex items */\n width: 100%; /* fill non-flex parents */\n flex-grow: 1; /* absorb extra space in flex parents */\n flex-shrink: 0; /* hold full width — shrink:1 would let siblings squeeze it below 100% */\n flex-basis: auto; /* defer to width:100% on the main axis; avoids forcing 100% height in column-flex parents */\n min-width: 0; /* prevent overflow when the outer host is itself inside a constrained flex row */\n }\n ";this.#as?this.#as.replaceSync(t):this.#us&&(this.#as=O(t,this.#us))}#Ms(t,e,i){return t?.disconnect(),e?.removeAttribute(i),this.#ds&&e?k(this.#ds,e,{includeAttrs:[i]}):null}disconnectedCallback(){super.disconnectedCallback?.(),this.#rs?.disconnect(),this.#ss?.disconnect(),this.#ls?.disconnect()}#gs(){this.toggleAttribute("has-anchor",!!this.#ds),this.#bi()}}const BT=T(yt)(PT);customElements.define(QT,BT),customElements.define(ph,yh),customElements.define(Ch,Sh),customElements.define(Zy,$y),customElements.define(QM,ZM),customElements.define(Ty,Oy),customElements.define(Vy,Yy),customElements.define(IN,SN),customElements.define(wN,ON),customElements.define(VN,PN),customElements.define(Xb,sN),customElements.define(wb,Bb),customElements.define(dg,Ng),customElements.define(Hm,_m);const ZT=/^email-/,FT=/^confirm-/,GT=(t,e)=>t.replace(e,""),HT=["email-label","email-placeholder"],JT=["confirm-label","confirm-placeholder"],$T=["disabled","bordered","size","full-width","invalid","readonly","draggable","label-type"],qT=[].concat($T,HT,JT),_T=wt({componentName:XN,baseSelector:"div"});customElements.define(XN,class extends _T{static get observedAttributes(){return[].concat(_T.observedAttributes||[],qT)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.emailInput?.value||""}set value(t){t!==this.value&&(this.emailInput.value=t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.value&&!this.emailFormat.test(this.value)?{patternMismatch:!0}:this.value!==(this.confirmInput?.value||"")?{typeMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.emailInput.focus()}),super.init?.(),this.renderInputs()}renderInputs(){const t="true"===this.getAttribute("external-input"),e="false"!==this.getAttribute("accept-unicode");this.emailFormat=e?new RegExp(Ru,"u"):new RegExp(Wu);const i=`\n <descope-email-field\n data-id="email"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n ></descope-email-field>\n <descope-email-field\n data-id="confirm"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n autocomplete="off"\n ></descope-email-field>\n `;this.wrapperEle.innerHTML=i,this.emailInput=this.querySelector('[data-id="email"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.inputs=[this.emailInput,this.confirmInput],this.initInputs()}handleIndicatorStyle(){this.inputs.forEach(t=>{O(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${sI.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`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&C(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&($T.includes(t)?this.inputs?.forEach(e=>this.toggleBooleanAttribute(e,t,i)):HT.includes(t)?this.toggleBooleanAttribute(this.emailInput,GT(t,ZT),i):JT.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,GT(t,FT),i))}}),customElements.define(KN,sI),customElements.define(Am,fm),customElements.define(jm,zm),customElements.define(SM,OM);var XT=Object.freeze({__proto__:null,PasswordStrengthClass:OM,componentName:SM});const KT=f("ponyhot"),tD="dhp-",eD=jt({componentName:KT,baseSelector:""}),iD=T(yt)(class extends eD{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#ys(),this.#bs(),this.#Ns())}#ys(){const t=["input","change","click","keydown","keyup","mouseover","mousedown"],e=i=>{this.input.value=`${tD}${i.type}`,t.forEach(t=>{this.input.removeEventListener(t,e)})};t.forEach(t=>{this.input.addEventListener(t,e)})}#bs(){const t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.input,"value",{get(){return t.get.call(this)},set(e){const i=t.get.call(this);e&&!e.startsWith(tD)&&e!==i?t.set.call(this,`${tD}direct-set`):t.set.call(this,e)},configurable:!0})}#Ns(){Object.entries({position:"absolute",opacity:"0.01",width:"1px",height:"1px",pointerEvents:"none",zIndex:"-1",left:"-999999px"}).forEach(([t,e])=>{this.style[t]=e})}});customElements.define(KT,iD),customElements.define(tm,sm),customElements.define(eM,aM),customElements.define(pM,TM),customElements.define(iy,ay),customElements.define(Um,Bm),customElements.define(nb,cb);const oD={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}},nD=new m.Qn(oD);var rD=Object.freeze({__proto__:null,default:t=>nD.check(t),options:oD})}}]);
|
|
2
2
|
//# sourceMappingURL=222.js.map
|