@descope/flow-components 3.26.3 → 3.26.4

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 CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_descope_flow_components_3_26_3_1792548568214=self.webpackChunk_descope_flow_components_3_26_3_1792548568214||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Rb,$y:()=>sp,A8:()=>xc,Ag:()=>Ka,C1:()=>Wc,C9:()=>jo,Cz:()=>ac,Er:()=>ph,G6:()=>kT,HO:()=>qi,HT:()=>eo,J1:()=>Oo,JQ:()=>eI,Jr:()=>Yi,Lg:()=>cp,MN:()=>ds,Mz:()=>Sa,NF:()=>Ps,O7:()=>UM,Od:()=>Nu,QW:()=>ec,Qb:()=>em,R3:()=>Gm,SE:()=>ao,SQ:()=>wo,T$:()=>rb,T1:()=>_T,TV:()=>gp,U6:()=>hm,Ul:()=>sa,VN:()=>zd,VX:()=>vr,_w:()=>Oe,a5:()=>OT,bL:()=>pr,bU:()=>Fg,br:()=>R,dS:()=>WN,dX:()=>Th,dq:()=>Rm,du:()=>gg,e7:()=>we,eA:()=>Cc,eo:()=>Ml,ew:()=>me,fp:()=>Nl,gZ:()=>du,h5:()=>xm,jH:()=>Cr,k0:()=>Ir,l1:()=>no,lZ:()=>eN,md:()=>Tr,ml:()=>Zt,mq:()=>Kc,o9:()=>wr,o_:()=>ke,pp:()=>Gc,px:()=>fu,q:()=>Zy,q4:()=>zi,qn:()=>Co,rG:()=>Du,sK:()=>Li,tD:()=>Xd,tS:()=>ou,td:()=>og,tl:()=>_r,ul:()=>Ba,v_:()=>Ku,w8:()=>Xn,wt:()=>ba,xO:()=>Ns,xp:()=>gu,xs:()=>fn,yW:()=>Cm,yi:()=>iy,yj:()=>bM,zQ:()=>ET,zZ:()=>Oy});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(9792)),y=i(1206),b=i(8733),N=i(268);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(),B=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},P=(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)?P(t,U):Q(t,.4),G=(t,e)=>Z(t)?Q(t,U):P(t,.4),H=(t,e)=>Z(t)?Q(t,Y):P(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||B(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())}#B(){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.#B())}get data(){return this.#R}init(){super.init?.(),this.#U=n?this.shadowRoot.querySelector(n):this.baseElement,v(this,t=>{t.includes("data")?this.#P():this.#B()},{includeAttrs:[...o,"data"]})}#P(){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"],Bt=L("enriched-text");class Pt extends(It({componentName:Bt,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)(Pt),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=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,Te=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`,De=t=>ie($t,...t),ve=(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},ze=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,ze(n,[...e,o],i)),{}),Ce=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}},Se=(t,e)=>ze(t,[],t=>ve({},t,`var(${De(t)})`)),we=(t,e="")=>{const i=Object.entries((t=>ze(t,[],(t,e)=>({[De(t)]:Ce(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},Le="@container",Ae="$breakpoints",fe=t=>t.startsWith("$breakpoints."),Ee=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(Le))(e)?`${t}${e} {\n${Ee(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),ke=t=>{const e=(t=>ze(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===Ae)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]?.[Ae]||{},d=n.filter(fe),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>fe(t)?`${Le} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!fe(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]:Ce(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]:Ee(o[e])}),{})})},{})},Oe=({globals:t,components:e},i)=>({globals:we(t,i),components:ke(e)}),Ve=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),We=(t,e)=>{const i=ze(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=ie(e,n),s={[n]:r},a={[n]:Ve(r)};return{theme:ve({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},Re=t=>`${t}__override`,Ue=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${Re(t)}, ${o})`:o};class Ye{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 Qe=(t,e="fallback")=>Gt(t,e),Be=(t,e,{fallback:i})=>{if(!i)return{};const o=Qe(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)}},Pe=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=ie(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:Re(n)},Be(o,n,e[o]))},{}),Ze=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...Pe(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 Ye,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Qe(e,t?.suffix);return Ue(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,Ue(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?.()}}},Fe=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?.()}},Ge=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()}},He=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},Je=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})})}},$e=["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"],qe=t=>class extends t{init(){super.init?.(),_t(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>$e.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?`)}),{})}},_e=({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(Ge,Je,qe,He)(i)};function Xe(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const Ke=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(_e({componentName:t,baseSelector:e})){#A=Xe.bind(this,"blur");#f=Xe.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},ti=["required","pattern"],ei=Symbol("validationTarget"),ii=t=>class extends t{#C=ei;static get observedAttributes(){return[...t.observedAttributes||[],...ti]}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===ei?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),ti.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())}},oi=["invalid","required"],ni=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ri=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(ii(r)){static get observedAttributes(){return[...r.observedAttributes||[],...oi]}#E;#v=Xe.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=ni(t)||ni(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]})}}},si=t=>Ht(ri(t),Ze({componentNameOverride:ee("input-wrapper")})),ai=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Ze({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Pe(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()}}},li=t=>class extends t{#v=Xe.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)})}},di=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,Xe.call(this,"blur"),Xe.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Xe.call(this,"focus"),Xe.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,Xe.call(this,"input",{bubbles:!0,composed:!0})))})}},ci=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},ui=(...t)=>Ht(ii,li,qe,di)(_e(...t)),pi=ee("boolean-field-internal"),hi=["disabled","invalid","readonly"],gi=ui({componentName:pi,baseSelector:"div"}),Mi=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${pi}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${pi}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(pi),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 mi=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 yi=ee("checkbox"),{host:bi,component:Ni,checkboxElement:Ii,checkboxSurface:xi,checkboxLabel:ji,requiredIndicator:Ti,helperText:Di,errorMessage:vi}={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)"}},zi=Ht(Ze({mappings:{hostWidth:{...bi,property:"width"},hostDirection:{...bi,property:"direction"},fontSize:[bi,Ii,ji],fontFamily:[ji,Di,vi],labelTextColor:{...ji,property:"color"},labelSpacing:{...ji,property:"padding-inline-start"},labelLineHeight:{...ji,property:"line-height"},labelFontWeight:{...ji,property:"font-weight"},labelRequiredIndicator:{...Ti,property:"content"},errorMessageTextColor:{...vi,property:"color"},errorMessageIcon:{...vi,property:"background-image"},errorMessageIconSize:{...vi,property:"background-size"},errorMessageIconPadding:{...vi,property:"padding-inline-start"},errorMessageIconRepeat:{...vi,property:"background-repeat"},errorMessageIconPosition:{...vi,property:"background-position"},errorMessageFontSize:{...vi,property:"font-size"},inputValueTextColor:{...xi,property:"color"},inputBackgroundColor:{...Ii,property:"background-color"},inputBorderRadius:{...Ii,property:"border-radius"},inputBorderWidth:{...Ii,property:"border-width"},inputBorderOffset:{...Ii,property:"border-offset"},inputBorderColor:{...Ii,property:"border-color"},inputBorderStyle:{...Ii,property:"border-style"},inputOutlineWidth:{...Ii,property:"outline-width"},inputOutlineOffset:{...Ii,property:"outline-offset"},inputOutlineColor:{...Ii,property:"outline-color"},inputOutlineStyle:{...Ii,property:"outline-style"},inputAlign:{...Ii,property:"align-self"},inputContainerPadding:{...Ni,property:"padding"},inputContainerBackgroundColor:{...Ni,property:"background-color"},inputContainerBorderRadius:{...Ni,property:"border-radius"},inputContainerBorderWidth:{...Ni,property:"border-width"},inputContainerBorderColor:{...Ni,property:"border-color"},inputContainerBorderStyle:{...Ni,property:"border-style"},inputContainerOutlineWidth:{...Ni,property:"outline-width"},inputContainerOutlineOffset:{...Ni,property:"outline-offset"},inputContainerOutlineColor:{...Ni,property:"outline-color"},inputContainerOutlineStyle:{...Ni,property:"outline-style"},inputSize:[{...Ii,property:"width"},{...Ii,property:"height"},{...xi,property:"font-size"},{...Ni,property:"font-size"}]}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,Mi)(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(zi.cssVarList)}\n ${ye(zi.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:yi})),Ci=L("text");class Si extends(It({componentName:Ci,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:wi}={host:{selector:()=>":host"}},Li=T(ht({mappings:{hostWidth:{...wi,property:"width"},hostDirection:{...wi,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)(Si),Ai=L("link"),fi=["href","readonly"];class Ei extends(It({componentName:Ai,baseSelector:":host a"})){static get observedAttributes(){return fi.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 ki={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>Li.componentName}},{anchor:Oi,text:Vi,host:Wi,wrapper:Ri,link:Ui}=ki,Yi=T(ht({mappings:{hostWidth:{...Wi,property:"width"},hostDirection:{...Vi,property:"direction"},textAlign:Ri,textDecoration:{...Ui,property:"text-decoration",fallback:"none"},textColor:[{...Oi,property:"color"},{...Vi,property:Li.cssVarList.textColor}],cursor:Oi}}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(Ei);customElements.define(Ci,Li),customElements.define(Ai,Yi),customElements.define(Bt,Zt),customElements.define(pi,class extends gi{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:hi}),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(yi,zi);const Qi=ee("switch-toggle"),{host:Bi,component:Pi,checkboxElement:Zi,checkboxSurface:Fi,checkboxLabel:Gi,requiredIndicator:Hi,helperText:Ji,errorMessage:$i}={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)"}},qi=Ht(Ze({mappings:{hostWidth:{...Bi,property:"width"},hostDirection:{...Bi,property:"direction"},fontSize:[Pi,Gi,Gi],fontFamily:[Gi,Ji,$i],labelTextColor:[{...Gi,property:"color"},{...Gi,property:"-webkit-text-fill-color"}],labelSpacing:{...Gi,property:"padding-inline-start"},labelLineHeight:{...Gi,property:"line-height"},labelFontWeight:{...Gi,property:"font-weight"},labelRequiredIndicator:{...Hi,property:"content"},errorMessageTextColor:{...$i,property:"color"},errorMessageIcon:{...$i,property:"background-image"},errorMessageIconSize:{...$i,property:"background-size"},errorMessageIconPadding:{...$i,property:"padding-inline-start"},errorMessageIconRepeat:{...$i,property:"background-repeat"},errorMessageIconPosition:{...$i,property:"background-position"},errorMessageFontSize:{...$i,property:"font-size"},trackBorderWidth:{...Zi,property:"border-width"},trackBorderStyle:{...Zi,property:"border-style"},trackBorderColor:{...Zi,property:"border-color"},trackBackgroundColor:{...Zi,property:"background-color"},trackBorderRadius:{...Zi,property:"border-radius"},trackWidth:[{...Zi,property:"width"}],trackHeight:[{...Fi,property:"font-size"},{...Zi,property:"height"}],knobSize:[{...Fi,property:"width"},{...Fi,property:"height"}],knobTextColor:{...Fi,property:"color"},knobRadius:{...Fi,property:"border-radius"},knobTransitionDuration:{...Fi,property:"transition"},knobColor:{...Fi,property:"background-color"},knobTopOffset:{...Fi,property:"top"},knobLeftOffset:{...Fi,property:"left"},inputOutlineWidth:{...Zi,property:"outline-width"},inputOutlineOffset:{...Zi,property:"outline-offset"},inputOutlineColor:{...Zi,property:"outline-color"},inputOutlineStyle:{...Zi,property:"outline-style"}}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,Mi)(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(qi.cssVarList)}\n\t\t\t${ye(qi.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:Qi}));customElements.define(Qi,qi);const _i=ee("loader-linear");class Xi extends(_e({componentName:_i,baseSelector:":host > div"})){static get componentName(){return _i}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:Ki,host:to}={after:{selector:"::after"},host:{selector:()=>":host"}},eo=Ht(Ze({mappings:{hostDisplay:{},hostWidth:{...to,property:"width"},barHeight:[{property:"height"},{...Ki,property:"height"}],barBorderRadius:[{property:"border-radius"},{...Ki,property:"border-radius"}],verticalPadding:[{...to,property:"padding-top"},{...to,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...Ki,property:"background-color"},barWidth:{...Ki,property:"width"},animationDuration:[{},Ki],animationTimingFunction:[{},Ki],animationIterationCount:[{},Ki]}}),Fe,Ge)(Xi);customElements.define(_i,eo);const io=ee("loader-radial");class oo extends(_e({componentName:io,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 no=Ht(Ze({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:{}}}),Fe,Ge)(oo);customElements.define(io,no);const ro=ee("container");class so extends(_e({componentName:ro,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 ao=Ht(Ze({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:{}}}),Fe,Ge)(so);customElements.define(ro,ao);const lo=L("combo-box"),{host:co,inputField:uo,inputElement:po,placeholder:ho,toggle:go,clearButton:Mo,label:mo,requiredIndicator:yo,helperText:bo,errorMessage:No,loader:Io,overlayContent:xo}={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)"}},jo=T(ht({mappings:{hostWidth:{...co,property:"width"},hostDirection:{...co,property:"direction"},fontSize:[{},co],fontFamily:[mo,ho,uo,bo,No],labelFontSize:{...mo,property:"font-size"},labelFontWeight:{...mo,property:"font-weight"},inputValueFontWeight:{...uo,property:"font-weight"},inputPlaceholderFontWeight:{...ho,property:"font-weight"},helperTextFontWeight:{...bo,property:"font-weight"},errorMessageFontWeight:{...No,property:"font-weight"},labelTextColor:[{...mo,property:"color"},{...mo,property:"-webkit-text-fill-color"},{...yo,property:"color"}],errorMessageTextColor:{...No,property:"color"},errorMessageIcon:{...No,property:"background-image"},errorMessageIconSize:{...No,property:"background-size"},errorMessageIconPadding:{...No,property:"padding-inline-start"},errorMessageIconRepeat:{...No,property:"background-repeat"},errorMessageIconPosition:{...No,property:"background-position"},errorMessageFontSize:{...No,property:"font-size"},inputHeight:{...uo,property:"height"},inputBackgroundColor:{...uo,property:"background-color"},inputBorderColor:{...uo,property:"border-color"},inputBorderWidth:{...uo,property:"border-width"},inputBorderStyle:{...uo,property:"border-style"},inputBorderRadius:{...uo,property:"border-radius"},labelRequiredIndicator:{...yo,property:"content"},inputValueTextColor:{...uo,property:"color"},inputPlaceholderTextColor:{...ho,property:"color"},inputDropdownButtonCursor:[{...go,property:"cursor"},{...Mo,property:"cursor"}],inputDropdownButtonColor:[{...go,property:"color"},{...Mo,property:"color"}],inputDropdownButtonSize:[{...go,property:"font-size"},{...Mo,property:"font-size"}],inputDropdownButtonOffset:[{...go,property:"margin-right"},{...go,property:"margin-left"}],inputOutlineColor:{...uo,property:"outline-color"},inputOutlineWidth:{...uo,property:"outline-width"},inputOutlineStyle:{...uo,property:"outline-style"},inputOutlineOffset:{...uo,property:"outline-offset"},inputHorizontalPadding:[{...po,property:"padding-left"},{...po,property:"padding-right"}],labelPosition:{...mo,property:"position"},labelTopPosition:{...mo,property:"top"},labelHorizontalPosition:[{...mo,property:"left"},{...mo,property:"right"}],inputTransformY:{...mo,property:"transform"},inputTransition:{...mo,property:"transition"},marginInlineStart:{...mo,property:"margin-inline-start"},placeholderOpacity:{...ho,property:"opacity"},inputVerticalAlignment:{...uo,property:"align-items"},valueInputHeight:{...po,property:"height"},valueInputMarginBottom:{...po,property:"margin-bottom"},overlayBackground:{property:()=>jo.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>jo.cssVarList.overlay.textColor},overlayBorder:{property:()=>jo.cssVarList.overlay.border},overlayFontSize:{property:()=>jo.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>jo.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>jo.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>jo.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>jo.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>jo.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>jo.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>jo.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>jo.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>jo.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>jo.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>jo.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:{...Io,property:"top"},loaderLeft:{...Io,property:"left"},loaderRight:{...Io,property:"right"},loaderMargin:{...Io,property:"margin"},loaderWidth:{...Io,property:"width"},loaderHeight:{...Io,property:"height"},loaderBorder:{...Io,property:"border"},loaderBorderColor:{...Io,property:"border-color"},loaderBorderRadius:{...Io,property:"border-radius"},contentHeight:{...xo,property:"height"},contentOpacity:{...xo,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${$(jo.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:lo,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(lo,jo);const To=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")},Do=L("image"),vo=["src","src-dark"];class zo extends(It({componentName:Do,baseSelector:"slot"})){static get observedAttributes(){return vo}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(${Co.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=To(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=To(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 Co=T(ht({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),gt,Mt)(zo),So=L("icon"),wo=T(ht({mappings:{fill:[{},{property:Co.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:So})),Lo=L("button"),{host:Ao,label:fo,slottedIcon:Eo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let ko;const Oo=T(Yt({triggers:[{attr:"full-width",value:"true"}]}),ht({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...Ao,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...Ao,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:wo.cssVarList.fill},labelTextDecoration:{...fo,property:"text-decoration"},labelSpacing:{...fo,property:"gap"},textAlign:{...fo,property:"justify-content",fallback:"center"},iconSize:[{...Eo,property:"width"},{...Eo,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${ko}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Oo.cssVarList.outlineWidth}) + var(${Oo.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Oo.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Oo.cssVarList.hostHeight}) - var(${Oo.cssVarList.outlineWidth}) - var(${Oo.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Oo.cssVarList.hostWidth}) - var(${Oo.cssVarList.outlineWidth}) - var(${Oo.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style"],componentName:Lo})),{color:Vo,fontSize:Wo}=Oo.cssVarList;ko=`\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(${Vo});\n\t\ttop: calc(50% - (var(${Wo}) / 2));\n\t\tleft: calc(50% - (var(${Wo}) / 2));\n\t\tborder-width: calc(var(${Wo}) / 10);\n\t\twidth: var(${Wo});\n\t\theight: var(${Wo});\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(Lo,Oo);const Ro=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Uo=Ro[0],Yo="YYYY-MM-DD",Qo="/",Bo=["January","February","March","April","May","June","July","August","September","October","November","December"],Po=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zo={id:"month",min:1,max:12,placeholder:"MM"},Fo={id:"day",min:1,max:31,placeholder:"DD"},Go={id:"year",min:0,max:9999,placeholder:"YYYY"},Ho=1900,Jo=2099,$o=(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},qo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},_o=t=>{const e=(t=>`^${t.split(Qo).map(t=>qo[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Qo);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 $o([n,r,s].join(Qo))})(t,o,i)}},Xo=Object.fromEntries(Ro.map(t=>[t,_o(t)])),Ko=t=>!Number.isNaN(Number(t)),tn=t=>{const e=$o(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},en=(t,e)=>{const[i,o,n]=tn(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])},on=()=>$o().getTime(),nn=t=>$o(t).getFullYear().toString(),rn=t=>($o(t).getMonth()+1).toString(),sn=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),an=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,ln=({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`,dn=(t=Bo)=>t.map((t,e)=>ln({label:t,dataId:e+1,dataName:t})).join(""),cn=(t,e)=>{const[i,o]=tn(e),[n,r]=tn(t);return n===i&&r===o},un=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),pn=ee("calendar"),hn=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],gn=["calendar-label-submit","calendar-label-cancel"],Mn=ui({componentName:pn,baseSelector:"div"}),{calendar:mn,day:yn,dayEntry:bn,currentDay:Nn,selectedDay:In,disabledDay:xn,weekday:jn,topNav:Tn,topNavSelectors:Dn,bottomNav:vn,navPrev:zn,navNext:Cn,navPrevRTL:Sn,navNextRTL:wn,yearInput:Ln,monthInput:An}={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"}},fn=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...Tn,property:"padding-top"},{...Tn,property:"padding-bottom"}],topNavHorizointalPadding:[{...Tn,property:"padding-right"},{...Tn,property:"padding-left"}],topNavAlignment:{...Tn,property:"justify-content"},topNavGap:{...Tn,property:"gap"},topNavSelectorsGap:{...Dn,property:"gap"},bottomNavVerticalPadding:[{...vn,property:"padding-top"},{...vn,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...vn,property:"padding-right"},{...vn,property:"padding-left"}],bottomNavAlignment:{...vn,property:"justify-content"},bottomNavGap:{...vn,property:"gap"},navMarginBottom:{...Tn,property:"margin-bottom"},calendarPadding:[{...mn,property:"padding-bottom"},{...mn,property:"padding-right"},{...mn,property:"padding-left"}],navBorderBottomWidth:{...Tn,property:"border-bottom-width"},navBorderBottomColor:{...Tn,property:"border-bottom-color"},navBorderBottomStyle:{...Tn,property:"border-bottom-style"},weekdayFontSize:{...jn,property:"font-size"},weekdayFontWeight:{...jn,property:"font-weight"},currentDayBorderColor:{...Nn,property:"border-color"},currentDayBorderWidth:{...Nn,property:"border-width"},currentDayBorderStyle:{...Nn,property:"border-style"},dayHeight:{...bn,property:"height"},daySize:[{...yn,property:"height"},{...yn,property:"width"}],dayPadding:{...yn,property:"padding"},dayRadius:{...yn,property:"border-radius"},dayTextAlign:{...yn,property:"text-align"},dayBlockAlign:{...yn,property:"margin"},dayTextColor:{...yn,property:"color"},dayFontWeight:{...yn,property:"font-weight"},dayBackgroundColor:{...yn,property:"background-color"},dayCursor:{...yn,property:"cursor"},dayFontSize:{...yn,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...In,property:"color"},daySelectedBackgroundColor:{...In,property:"background-color"},dayDisabledTextdColor:{...xn,property:"color"},yearInputWidth:{...Ln,property:"width"},monthInputWidth:{...An,property:"width"},navButtonSize:[{...zn,property:"width"},{...zn,property:"height"},{...Cn,property:"width"},{...Cn,property:"height"}],navButtonCursor:[{...zn,property:"cursor"},{...Cn,property:"cursor"}],navButtonRotation:[{...Sn,property:"transform"},{...wn,property:"transform"}],navButtonOpacity:[{...zn,property:"opacity"},{...Cn,property:"opacity"}]}}),Fe,Ge)(class extends Mn{static get observedAttributes(){return[].concat(Mn.observedAttributes||[],hn,gn)}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 ${Oo.cssVarList.horizontalPadding}: 0;\n ${Oo.cssVarList.verticalPadding}: 0;\n ${Oo.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=$o(t).getTime();Ko(e)&&e!==this.epoch&&(this.epoch=e,this.renderCalendar())}get value(){return this.epoch?en(this.epoch,Yo):""}get isSelectedView(){return cn(this.preview,this.epoch)}get isTodayView(){return cn(on(),this.preview)}get monthNames(){return(t=>{const e=t?.split(",");return an(e,12)?e:Bo})(this.getAttribute("calendar-months"))}get weekdayNames(){return(t=>{const e=t?.split?.(",");return an(e,7)?e:Po})(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=$o().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 ${dn()}\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=un(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=un(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:$o(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||on(),e=nn(t),i=rn(t);this.monthInput.value=i,setTimeout(()=>{this.yearInput.baseElement.value=e})}}renderCalendar(){const t=$o(this.preview||on()).getTime(),[e,i]=tn(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=$o(this.preview);e.setDate(Number(t.target.getAttribute("data-date-day"))),this.value=en(e.getTime(),Yo),this.dispatchEvent(new CustomEvent("day-changed",{detail:e}))}onYearChange(t){if(!t.target.value)return;const e=$o(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=$o(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||nn(this.preview)}onMonthInputBlur(t){this.monthInput.baseElement.value=t.target.value||rn(this.preview)}getSelectedDayEle(){const t=$o(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${t}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${$o().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=$o(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=$o(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=$o(t).getTime();Ko(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=>ln({label:t,dataId:t,dataName:t})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=dn(this.monthNames))})}onSubmitLabelChange(t){this.submitButton&&(this.submitButton.textContent=t||"Done")}onCancelLabelChange(t){this.cancelButton&&(this.cancelButton.textContent=t||"Cancel")}onInitialMonthChange(t){const e=nn(this.preview);this.preview=$o(`${e}/${t}/1`).getTime()}onInitialYearChange(t){const e=rn(this.preview);this.preview=$o(`${t}/${e}/1`).getTime()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),e!==i&&(gn.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(pn,fn);const{host:En,label:kn,placeholder:On,requiredIndicator:Vn,inputField:Wn,input:Rn,inputMask:Un,helperText:Yn,errorMessage:Qn,disabledPlaceholder:Bn,inputDisabled:Pn,inputIcon:Zn,externalInput:Fn,externalInputDisabled:Gn,externalPlaceholder:Hn,externalDisabledPlaceholder:Jn}={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 $n={fontSize:[{},En],fontFamily:[kn,Wn,Yn,Qn],labelFontSize:{...kn,property:"font-size"},labelFontWeight:{...kn,property:"font-weight"},inputValueFontWeight:[{...Rn,property:"font-weight"},{...Fn,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...Hn,property:"font-weight"}],helperTextFontWeight:{...Yn,property:"font-weight"},errorMessageFontWeight:{...Qn,property:"font-weight"},labelTextColor:[{...kn,property:"color"},{...Vn,property:"color"},{...kn,property:"-webkit-text-fill-color"},{...Vn,property:"-webkit-text-fill-color"}],hostWidth:{...En,property:"width"},hostMinWidth:{...En,property:"min-width"},hostDirection:{...En,property:"direction"},inputDirection:{...Rn,property:"direction"},inputBackgroundColor:[{...Wn,property:"background-color"},{...Un,property:"background-color"}],errorMessageTextColor:{...Qn,property:"color"},errorMessageIcon:{...Qn,property:"background-image"},errorMessageIconSize:{...Qn,property:"background-size"},errorMessageIconPadding:{...Qn,property:"padding-inline-start"},errorMessageIconRepeat:{...Qn,property:"background-repeat"},errorMessageIconPosition:{...Qn,property:"background-position"},errorMessageFontSize:{...Qn,property:"font-size"},helperTextColor:{...Yn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Wn,property:"color"},{...Pn,property:"-webkit-text-fill-color"},{...Gn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Rn,property:"caret-color"},{...Fn,property:"caret-color"}],labelRequiredIndicator:{...Vn,property:"content"},inputBorderColor:{...Wn,property:"border-color"},inputBorderWidth:{...Wn,property:"border-width"},inputBorderStyle:{...Wn,property:"border-style"},inputBorderRadius:{...Wn,property:"border-radius"},inputHeight:{...Wn,property:"height"},inputHorizontalPadding:[{...Rn,property:"padding-left"},{...Rn,property:"padding-right"},{...Fn,property:"padding-left"},{...Fn,property:"padding-right"}],inputOutlineColor:{...Wn,property:"outline-color"},inputOutlineStyle:{...Wn,property:"outline-style"},inputOutlineWidth:{...Wn,property:"outline-width"},inputOutlineOffset:{...Wn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Rn,property:"text-align"},{...Fn,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Hn,property:"color"},{...On,property:"color"},{...Bn,property:"-webkit-text-fill-color"},{...Jn,property:"-webkit-text-fill-color"}],labelPosition:{...kn,property:"position"},labelTopPosition:{...kn,property:"top"},labelHorizontalPosition:[{...kn,property:"left"},{...kn,property:"right"}],inputTransformY:{...kn,property:"transform"},inputTransition:{...kn,property:"transition"},marginInlineStart:{...kn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Hn,property:"opacity"}],inputVerticalAlignment:[{...Wn,property:"align-items"},{...Fn,property:"align-items"}],valueInputHeight:[{...Rn,property:"height"},{...Fn,property:"height"}],valueInputMarginBottom:[{...Rn,property:"margin-bottom"},{...Fn,property:"margin-bottom"}],inputIconOffset:[{...Zn,property:"margin-right"},{...Zn,property:"margin-left"}],inputIconSize:{...Zn,property:"font-size"},inputIconColor:{...Zn,property:"color"},inputTextSecurity:[{...Rn,property:"-webkit-text-security"},{...Rn,property:"text-security"},{...Fn,property:"-webkit-text-security"},{...Fn,property:"text-security"}]};const qn=L("text-field"),_n=["type","label-type","copy-to-clipboard"],Xn=T(ht({mappings:$n}),gt,kt({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),Mt,t=>class extends t{static get observedAttributes(){return _n.concat(t.observedAttributes||[])}icon;init(){super.init?.(),f(this,this.baseElement,{includeAttrs:["placeholder"]})}renderCopyToClipboard(t){if(!t)return void this.icon?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"};this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",...e}),this.baseElement.appendChild(this.icon),this.icon.addEventListener("click",()=>{navigator.clipboard.writeText(this.value),Object.assign(this.icon,i),setTimeout(()=>{Object.assign(this.icon,e)},5e3)})}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(${Xn.cssVarList.inputOutlineWidth}) + var(${Xn.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${$(Xn.cssVarList)}\n\t\t\t${K("vaadin-text-field",Xn.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:qn}));customElements.define(qn,Xn);class Kn{#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 tr=ee("date-field"),er=ui({componentName:tr,baseSelector:"vaadin-popover"}),ir=["format","opened","initial-value","readonly","disable-calendar","utc-time"],or=["years-range","calendar-months","calendar-weekdays"],nr=[...ir,...or],rr=Xn.cssVarList,{host:sr,input:ar,inputEleRTL:lr,toggleButton:dr,overlay:cr,backdrop:ur}={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)"}},pr=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{iconMargin:{...dr,property:"margin-inline-end"},hostWidth:{...sr,property:"width"},hostDirection:{...sr,property:"direction"},textAlign:{...ar,property:"text-align"},rtlInputDirection:{...lr,property:rr.inputDirection},rtlInputAlignment:{...lr,property:rr.inputTextAlign},overlayGap:{property:()=>pr.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>pr.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>pr.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>pr.overlayBoxShadow},overlayOutlineWidth:{property:()=>pr.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>pr.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>pr.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontSize},labelFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.labelFontWeight},inputValueFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontWeight}}}),ai({name:"overlay",selector:"",mappings:{marginTop:{...cr,property:"margin-top"},backgroundColor:{...cr},backdropBackgroundColor:{...ur,property:"background-color"},backdropPointerEvents:{...ur,property:"pointer-events"},padding:{...cr},boxShadow:{...cr},outlineWidth:{...cr},outlineColor:{...cr},outlineStyle:{...cr}}}),Fe,Ge)(class extends er{epoch="";format=Uo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=Xo[this.format].getDate(this.inputElement.value);this.updateEpoch(sn(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=sn(t,this.isUtcTime)}dateCounters=[new Kn(Zo,this.onDateCounterChange.bind(this)),new Kn(Fo,this.onDateCounterChange.bind(this)),new Kn(Go,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(er.observedAttributes||[],nr)}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=Xo[this.format].getDate(this.inputElement.value);return Ko(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Qo).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(Qo)}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=en($o(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=$o(this.calendar.value);this.value=sn(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=Ko($o(this.inputElement.value||"").getTime())&&Xo[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",en(this.displayValueEpoch||this.epoch,Yo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",en(on(),Yo))),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(Xo).includes(t)&&(this.format=t,this.updateFormatPattern())}updateFormatPattern(){const t=this.getAttribute("format")||this.format||Uo;this.setAttribute("type","date"),this.setAttribute("pattern",Xo[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 Zo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case Go.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case Fo.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),ir.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):or.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>Jo||t.numberValue<Ho,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.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?Xo[e].getDate(i):null})(e,this.format);if(i)this.value=sn(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(tr,pr);const hr=ee("divider");class gr extends(_e({componentName:hr,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=Li.cssVarList,{host:mr,before:yr,after:br,text:Nr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},Ir=Ht(Ze({mappings:{hostWidth:{...mr,property:"width"},hostPadding:{...mr,property:"padding"},hostDirection:{...Nr,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Nr,property:Mr.textAlign},labelTextWidth:{...Nr,property:"width"},labelTextMaxWidth:{...Nr,property:"max-width"},labelTextVerticalSpacing:[{...Nr,property:"padding-top"},{...Nr,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Nr,property:"padding-right"},{...Nr,property:"padding-left"}],stripeColor:[{...yr,property:"background-color"},{...br,property:"background-color"}],stripeHorizontalThickness:[{...yr,property:"height"},{...br,property:"height"}],stripeVerticalThickness:[{...yr,property:"width"},{...br,property:"width"}],stripeColorOpacity:[{...yr,property:"opacity"},{...br,property:"opacity"}]}}),Fe,Ge)(gr);customElements.define(hr,Ir);const xr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(_e({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(Ze({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),Fe,Ge)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},jr=ee("logo"),Tr=xr({componentName:jr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(jr,Tr);const Dr=ee("totp-image"),vr=xr({componentName:Dr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Dr,vr);const zr=ee("notp-image"),Cr=xr({componentName:zr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(zr,Cr);const Sr=ee("number-field"),wr=Ht(Ze({mappings:$n}),Fe,si({proxyProps:["value","selectionStart"]}),Ge)(Ke({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(${wr.cssVarList.inputOutlineWidth}) + var(${wr.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${Te("vaadin-number-field")}\n\t\t\t${ye(wr.cssVarList)}\n\t\t\t${((t,e)=>`\n ${be(t)}\n ${Ie(t)}\n ${xe(t)}\n ${Ne(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 ${je(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",wr.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:Sr}));customElements.define(Sr,wr);const Lr="--descope-input-mask-content",Ar="--descope-input-mask-display",fr="--descope-input-mask-fallback",Er=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},kr=t=>t.replace(/\D/g,"")||"",Or=(t,e)=>{e?(t.style.setProperty(Lr,`"${e}"`),t.style.setProperty(Ar,"flex")):(t.style.removeProperty(Lr),t.style.removeProperty(Ar))},Vr=ee("passcode-internal"),Wr=["digits","loading"],Rr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Ur=ui({componentName:Vr,baseSelector:"div"}),Yr=ee("passcode"),Qr=["digits"],{host:Br,digitField:Pr,label:Zr,requiredIndicator:Fr,internalWrapper:Gr,focusedDigitField:Hr,errorMessage:Jr}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${Xn.componentName}[focused="true"]`},digitField:{selector:()=>Xn.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},$r=Xn.cssVarList,qr=no.cssVarList,_r=Ht(Ze({mappings:{fontSize:[{...Pr,property:$r.fontSize},Br],hostWidth:{property:"width"},hostDirection:{...Br,property:"direction"},fontFamily:[Br,{...Zr}],labelFontWeight:{...Zr,property:"font-weight"},errorMessageFontWeight:{...Jr,property:"font-weight"},digitValueFontWeight:{selector:Xn.componentName,property:$r.inputValueFontWeight},labelTextColor:[{...Zr,property:"color"},{...Zr,property:"-webkit-text-fill-color"},{...Fr,property:"color"},{...Fr,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Fr,property:"content"},errorMessageTextColor:{...Jr,property:"color"},errorMessageIcon:{...Jr,property:"background-image"},errorMessageIconSize:{...Jr,property:"background-size"},errorMessageIconPadding:{...Jr,property:"padding-inline-start"},errorMessageIconRepeat:{...Jr,property:"background-repeat"},errorMessageIconPosition:{...Jr,property:"background-position"},errorMessageFontSize:{...Jr,property:"font-size"},digitValueTextColor:{selector:Xn.componentName,property:$r.inputValueTextColor},digitSize:[{...Pr,property:"height"},{...Pr,property:"width"}],digitPadding:{...Pr,property:$r.inputHorizontalPadding},digitTextAlign:{...Pr,property:$r.inputTextAlign},digitCaretTextColor:{...Pr,property:$r.inputCaretTextColor},digitSpacing:{...Gr,property:"gap"},digitOutlineColor:{...Pr,property:$r.inputOutlineColor},digitOutlineWidth:{...Pr,property:$r.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Hr,property:$r.inputOutlineColor},overlayOpacity:{...Gr,property:"opacity"},spinnerSize:{selector:no.componentName,property:qr.spinnerSize}}}),Fe,ci,si({proxyProps:["value","selectionStart"]}),Ge,t=>class extends t{static get observedAttributes(){return Qr.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 <${Vr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${Vr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Vr),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)}})(Ke({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(${$r.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 ${Te("vaadin-text-field")}\n\t\t\t${Ie("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Yr}));customElements.define(Vr,class extends Ur{static get observedAttributes(){return Wr.concat(Ur.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],kr(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}Er(e)}parseInputValue(t,e=""){const i=e.split("");i.length?this.fillDigits(i,t):t.value=""}initInputs(){this.inputs.forEach(t=>{E(`\n vaadin-text-field::part(input-field)::before {\n ${fr}: '';\n content: var(${Lr}, var(${fr}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Ar}, none);\n align-items: center;\n justify-content: center;\n }`,t);const e=r()(e=>{this.parseInputValue(t,e),Or(t)},0,{trailing:!0});let i=!1;t.addEventListener("input",o=>{t.value=kr(t.value),t.value&&Or(t,t.value[0]);const n="deleteContentBackward"===o?.inputType||i;i=!1,n&&Er(this.getPrevInput(t)),e(t.value)}),t.onkeydown=e=>{const{key:o}=e;"Backspace"===o?t.value?(t.setSelectionRange(1,1),i=!0):(e.preventDefault(),i=!1,Er(this.getPrevInput(t))):(i=!1,1===o.length&&(t.value=""))},oe(this,t,{includeAttrs:Rr}),t.shadowRoot.querySelector("input").setAttribute("aria-label","passcode digit")}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Wr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Yr,_r);const Xr=ee("password"),{host:Kr,inputField:ts,inputElement:es,inputElementPlaceholder:is,revealButtonContainer:os,revealButtonIcon:ns,label:rs,requiredIndicator:ss,errorMessage:as,helperText:ls}={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)"}},ds=Ht(Ze({mappings:{hostWidth:{...Kr,property:"width"},hostMinWidth:{...Kr,property:"min-width"},hostDirection:{...Kr,property:"direction"},fontSize:[{},Kr],fontFamily:[rs,ts,as,ls],inputHeight:{...ts,property:"height"},inputHorizontalPadding:[{...es,property:"padding-left"},{...es,property:"padding-right"}],inputBackgroundColor:{...ts,property:"background-color"},inputBorderStyle:{...ts,property:"border-style"},inputBorderWidth:{...ts,property:"border-width"},inputBorderColor:{...ts,property:"border-color"},inputBorderRadius:{...ts,property:"border-radius"},inputOutlineColor:{...ts,property:"outline-color"},inputOutlineStyle:{...ts,property:"outline-style"},inputOutlineOffset:{...ts,property:"outline-offset"},inputOutlineWidth:{...ts,property:"outline-width"},labelFontSize:{...rs,property:"font-size"},labelFontWeight:{...rs,property:"font-weight"},inputValueFontWeight:[{...es,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...is,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...ls,property:"font-weight"},errorMessageFontWeight:{...as,property:"font-weight"},labelTextColor:[{...rs,property:"color"},{...rs,property:"-webkit-text-fill-color"},{...ss,property:"color"},{...ss,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...ss,property:"content"},errorMessageTextColor:{...as,property:"color"},errorMessageIcon:{...as,property:"background-image"},errorMessageIconSize:{...as,property:"background-size"},errorMessageIconPadding:{...as,property:"padding-inline-start"},errorMessageIconRepeat:{...as,property:"background-repeat"},errorMessageIconPosition:{...as,property:"background-position"},errorMessageFontSize:{...as,property:"font-size"},inputPlaceholderTextColor:[{...is,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...es,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...os,property:"margin-right"},{...os,property:"margin-left"}],revealButtonSize:{...os,property:"font-size"},revealButtonColor:{...ns,property:"color"},labelPosition:{...rs,property:"position"},labelTopPosition:{...rs,property:"top"},labelHorizontalPosition:[{...rs,property:"left"},{...rs,property:"right"}],inputTransformY:{...rs,property:"transform"},inputTransition:{...rs,property:"transition"},marginInlineStart:{...rs,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...es,property:"opacity"}],inputVerticalAlignment:{...ts,property:"align-items"},valueInputHeight:{...es,property:"height"}}}),Fe,(({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}),si({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Ge,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")}})(Ke({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(ds.cssVarList)}\n\t\t\t${Ie("vaadin-password-field")}\n ${Te("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${ds.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:Xr}));customElements.define(Xr,ds);const cs=ee("text-area"),{host:us,label:ps,placeholder:hs,inputField:gs,textArea:Ms,requiredIndicator:ms,helperText:ys,errorMessage:bs}={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)"}},Ns=Ht(Ze({mappings:{hostWidth:{...us,property:"width"},hostMinWidth:{...us,property:"min-width"},hostDirection:{...us,property:"direction"},fontSize:[us,Ms],fontFamily:[ps,gs,ys,bs],labelFontSize:{...ps,property:"font-size"},labelFontWeight:{...ps,property:"font-weight"},inputValueFontWeight:{...Ms,property:"font-weight"},inputPlaceholderFontWeight:{...hs,property:"font-weight"},helperTextFontWeight:{...ys,property:"font-weight"},errorMessageFontWeight:{...bs,property:"font-weight"},labelTextColor:[{...ps,property:"color"},{...ps,property:"-webkit-text-fill-color"},{...ms,property:"color"}],labelRequiredIndicator:{...ms,property:"content"},errorMessageTextColor:{...bs,property:"color"},errorMessageIcon:{...bs,property:"background-image"},errorMessageIconSize:{...bs,property:"background-size"},errorMessageIconPadding:{...bs,property:"padding-inline-start"},errorMessageIconRepeat:{...bs,property:"background-repeat"},errorMessageIconPosition:{...bs,property:"background-position"},errorMessageFontSize:{...bs,property:"font-size"},inputBackgroundColor:{...gs,property:"background-color"},inputValueTextColor:{...Ms,property:"color"},inputPlaceholderTextColor:{...hs,property:"color"},inputBorderWidth:{...gs,property:"border-width"},inputBorderStyle:{...gs,property:"border-style"},inputBorderColor:{...gs,property:"border-color"},inputBorderRadius:{...gs,property:"border-radius"},inputOutlineStyle:{...gs,property:"outline-Style"},inputOutlineColor:{...gs,property:"outline-color"},inputOutlineOffset:{...gs,property:"outline-offset"},inputOutlineWidth:{...gs,property:"outline-width"},inputResizeType:{...Ms,property:"resize"},inputMinHeight:{...Ms,property:"min-height"},inputTextAlign:{...Ms,property:"text-align"}}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge)(Ke({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 ${Te("vaadin-text-area")}\n\t\t\t${ye(Ns.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:cs}));customElements.define(cs,Ns);var Is=[{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 xs=({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`,js=ee("phone-field-internal"),Ts=["disabled","size","bordered","readonly"],Ds=["country-input-placeholder","default-code","restrict-countries"],vs=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],zs=["label-type","country-input-label","label"],Cs={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},Ss=[].concat(Ts,Ds,vs,zs),ws=ui({componentName:js,baseSelector:"div"});customElements.define(js,class extends ws{static get observedAttributes(){return[].concat(ws.observedAttributes||[],Ss)}#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 ${Is.map(t=>xs(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=Is.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(Ss.includes(t)){const e=Cs[t]||t;Ts.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):Ds.includes(t)?this.comboBox.setAttribute(e,i):vs.includes(t)&&this.textField.setAttribute(e,i)}zs.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?Is.filter(e=>t.includes(e.code)):Is;this.querySelector("descope-combo-box").innerHTML=e.map(t=>xs(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=Cs[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 Ls=Xn.cssVarList,As=jo.cssVarList,fs=ee("phone-field"),{host:Es,label:ks,requiredIndicator:Os,inputField:Vs,internalAfter:Ws,countryCodeInput:Rs,phoneInput:Us,separator:Ys,errorMessage:Qs,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)"}},Ps=Ht(Ze({mappings:{fontSize:[Es,Vs,{selector:Xn.componentName,property:Xn.cssVarList.fontSize},{selector:jo.componentName,property:jo.cssVarList.fontSize}],fontFamily:[ks,Qs,Bs,{...Rs,property:jo.cssVarList.overlay.fontFamily}],hostWidth:[{...Es,property:"width"},{...Us,property:"width"},{...Rs,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Es,property:"direction"},inputBorderStyle:[{...Ws,property:"border-style"},{...Ys,property:"border-left-style"}],inputBorderWidth:[{...Ws,property:"border-width"},{...Ys,property:"border-left-width"}],inputBorderColor:[{...Ws,property:"border-color"},{...Ys,property:"border-left-color"}],inputBorderRadius:[{...Vs,property:"border-radius"},{...Ws,property:"border-radius"}],countryCodeInputWidth:{...Rs,property:As.hostWidth},countryCodeDropdownWidth:{...Rs,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Us,property:"width"},horizontalPadding:[{...Us,property:"padding-left"},{...Us,property:"padding-right"},{...Rs,property:"padding-left"},{...Rs,property:"padding-right"}],labelFontSize:{...ks,property:"font-size"},labelFontWeight:{...ks,property:"font-weight"},inputValueFontWeight:[{...Us,property:Ls.inputValueFontWeight},{...Rs,property:As.inputValueFontWeight}],inputPlaceholderFontWeight:{...Us,property:Ls.inputPlaceholderFontWeight},helperTextFontWeight:{...Bs,property:"font-weight"},errorMessageFontWeight:{...Qs,property:"font-weight"},labelTextColor:[{...ks,property:"color"},{...ks,property:"-webkit-text-fill-color"},{...Os,property:"color"}],labelRequiredIndicator:{...Os,property:"content"},errorMessageTextColor:{...Qs,property:"color"},errorMessageIcon:{...Qs,property:"background-image"},errorMessageIconSize:{...Qs,property:"background-size"},errorMessageIconPadding:{...Qs,property:"padding-inline-start"},errorMessageIconRepeat:{...Qs,property:"background-repeat"},errorMessageIconPosition:{...Qs,property:"background-position"},errorMessageFontSize:{...Qs,property:"font-size"},inputValueTextColor:[{...Us,property:Ls.inputValueTextColor},{...Rs,property:As.inputValueTextColor}],inputPlaceholderTextColor:{...Us,property:Ls.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:As.overlayItemBackgroundColor},inputOutlineStyle:{...Vs,property:"outline-style"},inputOutlineColor:{...Vs,property:"outline-color"},inputOutlineWidth:{...Vs,property:"outline-width"},inputOutlineOffset:{...Vs,property:"outline-offset"},valueInputHeight:[{...Rs,property:As.valueInputHeight}],valueInputMarginBottom:[{...Us,property:Ls.valueInputMarginBottom}],marginInlineStart:[{...Us,property:Ls.marginInlineStart},{...Rs,property:As.marginInlineStart}]}}),Fe,ci,si({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Is}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 \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(js),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"))}})(Ke({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(Ps.cssVarList)}\n\t\t\t${Ie("vaadin-text-field")}\n\t\t\t${je("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(${Ps.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${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\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Ls.inputOutlineWidth}: 0;\n\t\t\t\t${Ls.inputOutlineOffset}: 0;\n\t\t\t\t${Ls.inputBorderWidth}: 0;\n\t\t\t\t${Ls.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 ${Te("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:fs}));customElements.define(fs,Ps);const Zs=ee("phone-field-internal-input-box"),Fs=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],Gs={"phone-input-placeholder":"placeholder","phone-input-type":"type"},Hs=ui({componentName:Zs,baseSelector:"div"});customElements.define(Zs,class extends Hs{static get observedAttributes(){return[].concat(Hs.observedAttributes||[],Fs)}#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"),Is.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&&Fs.includes(t)){const e=Gs[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 Js=Xn.cssVarList,$s=ee("phone-input-box-field"),{host:qs,label:_s,inputElement:Xs,requiredIndicator:Ks,inputField:ta,internalComponent:ea,internalComponentAfter:ia,phoneInput:oa,errorMessage:na,helperText:ra}={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)"}},sa=Ht(Ze({mappings:{fontSize:[qs,ta,{selector:Xn.componentName,property:Xn.cssVarList.fontSize}],fontFamily:[_s,na,ra],hostWidth:{...qs,property:"width"},hostMinWidth:{...qs,property:"min-width"},hostDirection:{...qs,property:"direction"},inputHorizontalPadding:[{...oa,property:"padding-left"},{...oa,property:"padding-right"}],labelFontSize:{..._s,property:"font-size"},labelFontWeight:{..._s,property:"font-weight"},inputValueFontWeight:{...oa,property:Js.inputValueFontWeight},inputPlaceholderFontWeight:{...oa,property:Js.inputPlaceholderFontWeight},helperTextFontWeight:{...ra,property:"font-weight"},errorMessageFontWeight:{...na,property:"font-weight"},labelTextColor:[{..._s,property:"color"},{..._s,property:"-webkit-text-fill-color"},{...Ks,property:"color"}],labelRequiredIndicator:{...Ks,property:"content"},errorMessageTextColor:{...na,property:"color"},errorMessageIcon:{...na,property:"background-image"},errorMessageIconSize:{...na,property:"background-size"},errorMessageIconPadding:{...na,property:"padding-inline-start"},errorMessageIconRepeat:{...na,property:"background-repeat"},errorMessageIconPosition:{...na,property:"background-position"},errorMessageFontSize:{...na,property:"font-size"},inputValueTextColor:{...oa,property:Js.inputValueTextColor},inputPlaceholderTextColor:{...oa,property:Js.inputPlaceholderColor},inputBorderStyle:{...ia,property:"border-style"},inputBorderWidth:{...ia,property:"border-width"},inputBorderColor:{...ia,property:"border-color"},inputBorderRadius:[{...ea,property:"border-radius"},{...ia,property:"border-radius"}],inputOutlineStyle:{...ea,property:"outline-style"},inputOutlineColor:{...ea,property:"outline-color"},inputOutlineWidth:{...ea,property:"outline-width"},inputOutlineOffset:{...ea,property:"outline-offset"},labelPosition:{..._s,property:"position"},labelTopPosition:{..._s,property:"top"},labelHorizontalPosition:[{..._s,property:"left"},{..._s,property:"right"}],inputTransformY:{..._s,property:"transform"},inputTransition:{..._s,property:"transition"},marginInlineStart:{..._s,property:"margin-inline-start"},valueInputHeight:{...Xs,property:"height"},valueInputMarginBottom:{selector:Xn.componentName,property:Js.valueInputMarginBottom}}}),Fe,ci,si({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Is}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 `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Zs),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}})(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${ye(sa.cssVarList)}\n ${Ie("vaadin-text-field")}\n ${je("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 ${Js.inputOutlineWidth}: 0;\n ${Js.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 ${Te("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:$s}));customElements.define($s,sa);const aa=ee("new-password-internal"),la=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),da=ee("policy-validation"),ca=["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"],ua=["label","value",...ca];class pa extends(_e({componentName:da,baseSelector:":host > div"})){#Rt;#Ut=[];#Yt;static get observedAttributes(){return ua}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),ca.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:la(r,s),id:i};if(l)c.info=!0;else if(n){const t=new RegExp(la(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:ha,item:ga,symbolDefault:Ma,symbolSuccess:ma,symbolError:ya}={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'}},ba=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ha,property:"border-width"},borderStyle:{...ha,property:"border-style"},borderColor:{...ha,property:"border-color"},borderRadius:{...ha,property:"border-radius"},backgroundColor:{...ha,property:"background-color"},textColor:{property:"color"},labelMargin:{...ha,property:"gap"},itemsSpacing:{...ga,property:"line-height"},itemSymbolSuccessColor:{...ma,property:"color"},itemSymbolErrorColor:{...ya,property:"color"},itemSymbolDefault:{...Ma,property:"content"},itemSymbolSuccess:{...ma,property:"content"},itemSymbolError:{...ya,property:"content"}}}),Fe,Ge)(pa),Na=ee("new-password"),Ia=ba.cssVarList,{host:xa,label:ja,internalInputsWrapper:Ta,errorMessage:Da,helperText:va,passwordInput:za,policyPreview:Ca}={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"}},Sa=Ht(Ze({mappings:{fontSize:[xa,{},{selector:ds.componentName,property:ds.cssVarList.fontSize}],fontFamily:[ja,Da,va],labelFontSize:{...ja,property:"font-size"},labelFontWeight:{...ja,property:"font-weight"},inputValueFontWeight:{...za,property:ds.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...za,property:ds.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...va,property:"font-weight"},errorMessageFontWeight:{...Da,property:"font-weight"},labelTextColor:{...ja,property:"color"},errorMessageTextColor:{...Da,property:"color"},errorMessageIcon:{...Da,property:"background-image"},errorMessageIconSize:{...Da,property:"background-size"},errorMessageIconPadding:{...Da,property:"padding-inline-start"},errorMessageIconRepeat:{...Da,property:"background-repeat"},errorMessageIconPosition:{...Da,property:"background-position"},errorMessageFontSize:{...Da,property:"font-size"},hostWidth:{...xa,property:"width"},hostMinWidth:{...xa,property:"min-width"},hostDirection:[{...xa,property:"direction"},{...za,property:ds.cssVarList.hostDirection}],inputsRequiredIndicator:{...xa,property:"content"},spaceBetweenInputs:{...Ta,property:"gap"},policyPreviewBackgroundColor:{...Ca,property:Ia.backgroundColor},policyPreviewPadding:{...Ca,property:Ia.padding},valueInputHeight:{...za,property:ds.cssVarList.valueInputHeight},valueInputMarginBottom:{...za,property:ds.cssVarList.valueInputMarginBottom}}}),Fe,si({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<${aa}\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 </${aa}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(aa),"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")}})(Ke({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(ds.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:Na}));customElements.define(da,ba);const wa=/^password-/,La=/^confirm-/,Aa=(t,e)=>t.replace(e,""),fa=["password-label","password-placeholder"],Ea=["confirm-label","confirm-placeholder"],ka=["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"],Oa=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Va=[].concat(Oa,fa,Ea,ka),Wa=ui({componentName:aa,baseSelector:"div"});customElements.define(aa,class extends Wa{static get observedAttributes(){return[].concat(Wa.observedAttributes||[],Va)}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:ka,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(${Sa.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 HT}),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):Oa.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):fa.includes(t)?this.toggleBooleanAttribute(this.passwordInput,Aa(t,wa),i):Ea.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,Aa(t,La),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(Na,Sa);const Ra=ee("recaptcha"),Ua=["enabled","site-key","action","enterprise","variant"],Ya="recaptcha",Qa=ui({componentName:Ra,baseSelector:":host > div"}),Ba=Ht(Fe)(class extends Qa{#Qt=null;static get observedAttributes(){return Ua.concat(Qa.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Bt("true"===i),"variant"===t&&(this.#Pt(),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.#Pt()}#Pt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Ya),this.#Qt=Ya):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()}#Bt(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(Ra,Ba);const Pa=ee("upload-file"),Za=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Fa=ui({componentName:Pa,baseSelector:":host > div"}),Ga=Oo.cssVarList,{host:Ha,wrapper:Ja,icon:$a,title:qa,description:_a,requiredIndicator:Xa}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},Ka=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...Ha,property:"height"},hostWidth:{...Ha,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...Ha,property:"direction"},{selector:()=>Oo.componentName,property:Ga.hostDirection}],gap:{...Ja},lineHeight:{...Ja,property:"line-height"},titleFontSize:{...qa,property:"font-size"},titleFontWeight:{...qa,property:"font-weight"},descriptionFontSize:{..._a,property:"font-size"},labelTextColor:[{...qa,property:"color"},{..._a,property:"color"}],iconSize:{...$a,property:"width"},requiredIndicator:{...Xa,property:"content"}}}),Fe,Ge)(class extends Fa{static get observedAttributes(){return Za.concat(Fa.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" aria-labelledby="button"/>\n\t\t\t\t\t<descope-button id="button"></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',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(Pa,Ka);const tl=t=>{class e extends(ui({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=Xe.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},el=ee("button-selection-group-internal");class il extends(tl(el)){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 ol=ee("button-selection-group-item");class nl extends(_e({componentName:ol,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(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 rl=Ht(Ze({mappings:{hostDirection:{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},hostWidth:{selector:()=>Oo.componentName,property:"width"},backgroundColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.backgroundColor},labelTextColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.labelTextColor},borderColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderColor},borderWidth:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderWidth},borderStyle:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderStyle},borderRadius:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderRadius},outlineColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.outlineColor}}}),Fe,Ge)(nl),sl=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:al,label:ll,requiredIndicator:dl,internalWrapper:cl,errorMessage:ul}={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)"}},pl={hostWidth:{...al,property:"width"},hostDirection:{...al,property:"direction"},fontFamily:al,labelTextColor:[{...ll,property:"color"},{...dl,property:"color"}],labelRequiredIndicator:{...dl,property:"content"},errorMessageTextColor:{...ul,property:"color"},errorMessageIcon:{...ul,property:"background-image"},errorMessageIconSize:{...ul,property:"background-size"},errorMessageIconPadding:{...ul,property:"padding-inline-start"},errorMessageIconRepeat:{...ul,property:"background-repeat"},errorMessageIconPosition:{...ul,property:"background-position"},errorMessageFontSize:{...ul,property:"font-size"},itemsSpacing:{...cl,property:"gap"},itemsDirection:{...cl,property:"flex-direction"},itemsAlignment:{...cl,property:"align-items"},itemsWidth:{selector:()=>`::slotted(${rl.componentName})`,property:rl.cssVarList.hostWidth}},hl=`\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 ${Te("vaadin-text-field")}\n\t\t\t${Ie("vaadin-text-field")}\n `,gl=ee("button-selection-group"),Ml=Ht(Ze({mappings:{...pl}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${el}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${el}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(el),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"]})}})(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:gl}));customElements.define(el,il),customElements.define(ol,rl),customElements.define(gl,Ml);const ml=ee("button-multi-selection-group-internal");class yl extends(tl(ml)){#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 bl=ee("button-multi-selection-group"),Nl=Ht(Ze({mappings:{...pl}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${ml}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${ml}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ml),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"]})}})(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:bl}));customElements.define(ml,yl),customElements.define(bl,Nl);class Il 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 xl=ee("grid-text-column");customElements.define(xl,Il);const jl=ee("grid-custom-column");customElements.define(jl,class extends Il{_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 Tl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},Dl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class vl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=Tl(),i.addEventListener("input",()=>{const t=Dl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",Dl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=Tl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const zl=ee("grid-selection-column");customElements.define(zl,vl);class Cl 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 Sl=ee("grid-item-details-column");customElements.define(Sl,Cl),customElements.define(Do,Co),customElements.define(So,wo);const wl=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},Ll=ee("code-snippet");let Al=class extends(_e({componentName:Ll,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(wl(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=wl(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 fl={selector:()=>".copy-btn"},{root:El,docTag:kl,keyword:Ol,metaKeyword:Vl,templateTag:Wl,templateVariable:Rl,type:Ul,variableLanguage:Yl,title:Ql,titleClass:Bl,titleClassInherited:Pl,titleFunction:Zl,attr:Fl,attribute:Gl,literal:Hl,meta:Jl,number:$l,operator:ql,variable:_l,selectorAttr:Xl,selectorClass:Kl,selectorId:td,regexp:ed,string:id,metaString:od,builtIn:nd,symbol:rd,comment:sd,code:ad,formula:ld,name:dd,quote:cd,selectorTag:ud,selectorPseudo:pd,subst:hd,section:gd,bullet:Md,emphasis:md,strong:yd,addition:bd,deletion:Nd,charEscape:Id,link:xd,params:jd,property:Td,punctuation:Dd,tag:vd}={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"}},zd=Ht(Ze({mappings:{rootBgColor:{...El,property:"background-color"},rootTextColor:{...El,property:"color"},docTagTextColor:{...kl,property:"color"},keywordTextColor:{...Ol,property:"color"},metaKeywordTextColor:{...Vl,property:"color"},templateTagTextColor:{...Wl,property:"color"},templateVariableTextColor:{...Rl,property:"color"},typeTextColor:{...Ul,property:"color"},variableLanguageTextColor:{...Yl,property:"color"},titleTextColor:{...Ql,property:"color"},titleClassTextColor:{...Bl,property:"color"},titleClassInheritedTextColor:{...Pl,property:"color"},titleFunctionTextColor:{...Zl,property:"color"},attrTextColor:{...Fl,property:"color"},attributeTextColor:{...Gl,property:"color"},literalTextColor:{...Hl,property:"color"},metaTextColor:{...Jl,property:"color"},numberTextColor:{...$l,property:"color"},operatorTextColor:{...ql,property:"color"},variableTextColor:{..._l,property:"color"},selectorAttrTextColor:{...Xl,property:"color"},selectorClassTextColor:{...Kl,property:"color"},selectorIdTextColor:{...td,property:"color"},regexpTextColor:{...ed,property:"color"},stringTextColor:{...id,property:"color"},metaStringTextColor:{...od,property:"color"},builtInTextColor:{...nd,property:"color"},symbolTextColor:{...rd,property:"color"},commentTextColor:{...sd,property:"color"},codeTextColor:{...ad,property:"color"},formulaTextColor:{...ld,property:"color"},nameTextColor:{...dd,property:"color"},quoteTextColor:{...cd,property:"color"},selectorTagTextColor:{...ud,property:"color"},selectorPseudoTextColor:{...pd,property:"color"},substTextColor:{...hd,property:"color"},sectionTextColor:{...gd,property:"color"},bulletTextColor:{...Md,property:"color"},emphasisTextColor:{...md,property:"color"},strongTextColor:{...yd,property:"color"},additionTextColor:{...bd,property:"color"},additionBgColor:{...bd,property:"background-color"},deletionTextColor:{...Nd,property:"color"},deletionBgColor:{...Nd,property:"background-color"},charEscapeTextColor:{...Id,property:"color"},linkTextColor:{...xd,property:"color"},paramsTextColor:{...jd,property:"color"},propertyTextColor:{...Td,property:"color"},punctuationTextColor:{...Dd,property:"color"},tagTextColor:{...vd,property:"color"},copyButtonSize:[{...fl,property:"width"},{...fl,property:"height"}],copyButtonBorderRadius:{...fl,property:"border-radius"},copyButtonBorderWidth:{...fl,property:"border-width"},copyButtonBorderColor:{...fl,property:"border-color"},copyButtonBgColor:{...fl,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...fl,property:"color"}}}),Fe,Ge)(Al);customElements.define(Ll,zd);const Cd=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},Sd=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},wd=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",Ld=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${Sd(t)}</descope-code-snippet>`,Ad=t=>`<div class="row-details__value text" title="${t}">${Sd(t)}</div>`,fd=t=>Ld(JSON.stringify(t,null,2),"json"),Ed=t=>{const e=wd(t);return"object"===e?fd(t):"xml"===e?(t=>Ld(t,"xml"))(t):"array"===e?t.some(t=>"object"===wd(t))?fd(t):Ad(t.join(",\n")):Ad(t)},kd=ee("grid"),{host:Od,headerRow:Vd,headerRowCell:Wd,contentRow:Rd,firstRow:Ud,sortIndicators:Yd,activeSortIndicator:Qd,selectedRow:Bd,rowSeparator:Pd,resizeHandle:Zd,toggleDetailsPanelButton:Fd,toggleDetailsPanelButtonOpened:Gd,toggleDetailsPanelButtonClosed:Hd,detailsPanel:Jd,detailsPanelLabels:$d,selectedRowCell:qd,detailsPanelContent:_d}={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"}},Xd=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Vd},{...Rd}],fontSize:[{...Vd},{...Rd}],fontWeight:{...Rd},valueTextColor:{...Rd,property:"color"},backgroundColor:[{...Od,property:"background-color"},{...Rd,property:"background-color"}],sortIndicatorsColor:{...Yd,property:"color"},activeSortIndicator:{...Qd,property:"color"},borderColor:{...Od,property:"border-color"},borderWidth:{...Od,property:"border-width"},borderStyle:{...Od,property:"border-style"},borderRadius:{...Od,property:"border-radius"},selectedBackgroundColor:[{...Bd,property:"background-color"},{...qd,property:"background-color"}],headerRowTextColor:{...Wd,property:"color"},separatorColor:[{...Ud,property:"border-bottom-color"},{...Pd,property:"border-top-color"}],resizeHandleColor:{...Zd,property:"background-color"},hostDirection:{...Od,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Fd,property:"width"},{...Fd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...Gd,property:"color"},toggleDetailsPanelButtonClosedColor:{...Hd,property:"color"},toggleDetailsPanelButtonCursor:{...Fd,property:"cursor"},detailsPanelBackgroundColor:{...Jd,property:"background-color"},detailsPanelBorderTopColor:{...Jd,property:"border-top-color"},detailsPanelLabelsColor:{...$d,property:"color"},detailsPanelLabelsFontSize:{...$d,property:"font-size"},detailsPanelItemsGap:{..._d,property:"grid-gap"},detailsPanelPadding:{..._d,property:"padding"}}}),Fe,Ge,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=wd(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===wd(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Ed(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Ed(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);Cd(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(Cd(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")}})(Ke({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(${Xd.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:kd}));customElements.define(kd,Xd);const Kd=ee("modal"),tc=["opened"],ec=Ht(Ze({mappings:{overlayBackdropColor:{property:()=>ec.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>ec.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>ec.cssVarList.overlay.shadow},overlayWidth:{property:()=>ec.cssVarList.overlay.width},overlayBorderWidth:{property:()=>ec.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>ec.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>ec.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>ec.cssVarList.overlay.borderRadius}}}),ai({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"]}}),Fe,Ge,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],tc)}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")})}})(Ke({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:Kd}));customElements.define(Kd,ec);const ic=window.customElements.get("vaadin-notification-container");if(!ic)throw new Error("could not get vaadin-notification-container class");customElements.define(ee("notification-container"),class extends ic{});const oc=ee("notification-card"),nc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},rc=Ht(Ze({mappings:{hostMinWidth:{selector:nc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:nc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:nc.content,property:"border-width"},borderColor:{selector:nc.content,property:"border-color"},borderStyle:{selector:nc.content,property:"border-style"},borderRadius:[{selector:nc.content,property:"border-radius"},{selector:nc.overlay,property:"border-radius"}],verticalPadding:[{selector:nc.content,property:"padding-top"},{selector:nc.content,property:"padding-bottom"}],horizontalPadding:[{selector:nc.content,property:"padding-right"},{selector:nc.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()}}})(Ke({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:oc}));customElements.define(oc,rc);const sc=ee("notification"),ac=Ht(Fe,Ge,Je,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))}})(Ke({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:sc}));customElements.define(sc,ac);const lc=ee("mappings-field-internal"),dc=ui({componentName:lc,baseSelector:"div"}),cc=ee("mappings-field"),{host:uc,helperText:pc,errorMessage:hc,mappingItem:gc,labels:Mc,labelsText:mc,valueLabel:yc,attrLabel:bc,separator:Nc,labelsContainer:Ic}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},xc=Ht(Ze({mappings:{hostWidth:{...uc,property:"width"},hostDirection:{...uc,property:"direction"},fontSize:[{},uc,{...Nc,property:"margin-top"}],fontFamily:[pc,hc,Mc],separatorFontSize:{...Nc,property:"font-size"},labelsFontSize:{...mc,property:"font-size"},labelsLineHeight:[{...mc,property:"line-height"},{...Mc,property:"line-height"}],labelTextColor:[{...Mc,property:Li.cssVarList.textColor},{...Nc,property:"color"}],itemMarginBottom:{...gc,property:"margin-bottom"},valueLabelMinWidth:{...yc,property:"min-width"},attrLabelMinWidth:{...bc,property:"min-width"},labelsMarginBottom:{...Ic,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Fe,si({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Ge,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 <${lc}\n tabindex="-1"\n ></${lc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(lc),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()}})(Ke({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(${xc.cssVarList.separatorWidth}) 1fr var(${xc.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 ${Li.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(${xc.cssVarList.separatorWidth}) 1fr var(${xc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:cc}));customElements.define(lc,class extends dc{#oe;static get observedAttributes(){return[].concat(dc.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 jc=ee("mapping-item"),Tc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Dc=ui({componentName:jc,baseSelector:"div"});customElements.define(jc,class extends Dc{static get observedAttributes(){return[].concat(Dc.observedAttributes||[],Tc,["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:Tc}),oe(this,this.attributeInput,{includeAttrs:[...Tc,"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(cc,xc);const vc=L("badge");class zc extends(It({componentName:vc,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 Cc=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)(zc);var Sc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const wc=ee("user-attribute");class Lc extends(_e({componentName:wc,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="${Sc}" src-dark="${Sc}"></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(${Li.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,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MDE1IDIuMDA4MTkgMy45OTIxNVYxMi4wMDgyQzIuMDA4MTkgMTIuNTM2MiAyLjQ0MDE5IDEyL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g1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+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:Ac,textFields:fc,buttons:Ec,badge:kc,labelText:Oc,contentWrapper:Vc}={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"}},Wc=Ht(Ze({mappings:{hostWidth:{...Ac,property:"width"},hostMinWidth:{...Ac,property:"min-width"},hostMaxWidth:{...Ac,property:"max-width"},hostDirection:[{...Ac,property:"direction"},{...fc,property:Li.cssVarList.hostDirection},{...Ec,property:Oo.cssVarList.hostDirection},{...kc,property:Cc.cssVarList.hostDirection}],labelMinWidth:{...Oc,property:"min-width"},contentMinWidth:{...Vc,property:"min-width"},badgeMaxWidth:{...kc,property:"max-width"},itemsGap:[{property:"gap"},{...Vc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:wo.cssVarList.fill},{selector:()=>".check-icon",property:wo.cssVarList.fill}]}}),Fe,Ge)(Lc);customElements.define(vc,Cc),customElements.define(wc,Wc);const Rc=ee("user-auth-method");class Uc extends(_e({componentName:Rc,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:Yc,textField:Qc,buttons:Bc,badge:Pc,textWrapper:Zc,methodIconSlot:Fc}={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)'}},Gc=Ht(Ze({mappings:{hostWidth:{...Yc,property:"width"},hostMinWidth:{...Yc,property:"min-width"},hostMaxWidth:{...Yc,property:"max-width"},hostDirection:[{...Yc,property:"direction"},{...Qc,property:Li.cssVarList.hostDirection},{...Bc,property:Oo.cssVarList.hostDirection},{...Pc,property:Cc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Zc,property:"gap"}],iconSize:[{...Fc,property:"width"},{...Fc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:wo.cssVarList.fill}]}}),Fe,Ge)(Uc);customElements.define(Rc,Gc);const Hc=ee("saml-group-mappings-internal"),Jc=ui({componentName:Hc,baseSelector:""}),$c=ee("saml-group-mappings"),{host:qc,groupInput:_c,errorMessage:Xc}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},Kc=Ht(Ze({mappings:{hostWidth:{...qc,property:"width"},hostDirection:{...qc,property:"direction"},groupNameInputMarginBottom:{..._c,property:"margin-bottom"},errorMessageIcon:{...Xc,property:"background-image"},errorMessageIconSize:{...Xc,property:"background-size"},errorMessageIconPadding:{...Xc,property:"padding-inline-start"},errorMessageIconRepeat:{...Xc,property:"background-repeat"},errorMessageIconPosition:{...Xc,property:"background-position"},errorMessageFontSize:{...Xc,property:"font-size"}}}),Fe,si({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Ge,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Hc}\n tabindex="-1"\n ></${Hc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Hc),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"]})}})(Ke({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:$c}));customElements.define(Hc,class extends Jc{static get observedAttributes(){return["invalid"].concat(Jc.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($c,Kc);const tu=ee("radio-button"),eu=Ht(Ze({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"}}}),si({proxyProps:["setSelectionRange"]}),Ge,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")}})(Ke({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:tu})),iu=ee("radio-group"),ou=Ht(Ze({mappings:{...$n,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(${eu.componentName})`,property:eu.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${eu.componentName}[checked="true"])`,property:eu.cssVarList.radioBackgroundColor}}}),Fe,si({proxyProps:["setSelectionRange"]}),Ge,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(tu)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===tu),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"]})}})(Ke({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 ${Te("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:iu,includeForwardProps:["value"]}));customElements.define(tu,eu),customElements.define(iu,ou);const nu=()=>!0,ru=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,su=ee("scopes-list"),au=["checkbox","switch"];class lu extends(_e({componentName:su,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 au.includes(t)?t:au[0]}}const du=Ht(Ze({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>zi.componentName,property:zi.cssVarList.hostDirection},{selector:()=>qi.componentName,property:qi.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${zi.componentName}[required="true"]`,property:zi.cssVarList.inputBorderColor},{selector:`${qi.componentName}[required="true"]`,property:qi.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${zi.componentName}[required="true"]`,property:zi.cssVarList.inputValueTextColor},{selector:`${qi.componentName}[required="true"]`,property:qi.cssVarList.knobColor}]}}),(({itemRenderer:t=ru,validateSchema:e=nu,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())}#B(){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.#B())}get data(){return this.#R}init(){super.init?.(),_t(this,t=>{t.includes("data")?this.#P():this.#B()},{includeAttrs:[...o,"data"]})}#P(){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?zi:qi;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"]}),Fe,Ge)(lu),cu=L("list-item"),uu=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:cu,baseSelector:"slot"}));customElements.define(cu,uu);const pu=L("list");class hu extends(It({componentName:pu,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!==uu.componentName&&(e=t.querySelector(uu.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 gu=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)(hu);customElements.define(pu,gu),customElements.define(su,du);const Mu=ee("third-party-app-logo");class mu extends(_e({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 yu=">.company-logo-wrapper",bu=">.third-party-app-logo-wrapper",Nu=Ht(Ze({mappings:{logoMaxHeight:[{selector:yu,property:"height"},{selector:bu,property:"height"}],logoMaxWidth:[{selector:yu,property:"max-width"},{selector:bu,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:Tr.componentName,property:Tr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:wo.componentName,property:wo.cssVarList.fill}}}),Fe,Ge)(mu);customElements.define(Mu,Nu);const Iu=ee("security-questions-setup"),xu=["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"],ju=["count","questions"];class Tu extends(_e({componentName:Iu,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(xu)}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(Iu,"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:ju}),_t(this,this.#Me.bind(this),{includeAttrs:xu})}}const Du=Ht(Ze({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>jo.componentName,property:jo.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Fe,Ge)(Tu);customElements.define(Iu,Du);const vu=ee("security-questions-verify"),zu=["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"],Cu=["question-mode"],Su={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},wu=[...zu,...Cu],Lu=["questions"];class Au extends(_e({componentName:vu,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(wu),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(vu,"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 zu.includes(t):return this.textFields;case Cu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,Su[t]||t,this.getAttribute(t))})})}init(){super.init?.(),_t(this,()=>{this.#ge()},{includeAttrs:Lu}),_t(this,this.#Me.bind(this),{includeAttrs:wu})}}const fu=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Li.componentName,property:Li.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>Li.componentName,property:Li.cssVarList.textAlign},questionFontSize:{selector:()=>Li.componentName,property:Li.cssVarList.fontSize},questionFontFamily:{selector:()=>Li.componentName,property:Li.cssVarList.fontFamily},questionCursor:{selector:()=>Li.componentName,property:"cursor"},errorMessageIcon:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageFontSize}}}),Fe,Ge)(Au);customElements.define(vu,fu);const Eu="^[\\w\\.\\%\\+\\-']+@(?:[A-Za-z0-9](?:[A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$",ku="^[\\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}\\-]+$",Ou=L("email-field"),Vu="email",{host:Wu,label:Ru,placeholder:Uu,requiredIndicator:Yu,inputField:Qu,input:Bu,inputMask:Pu,helperText:Zu,errorMessage:Fu,disabledPlaceholder:Gu,inputDisabled:Hu,inputIcon:Ju,externalInput:$u,externalInputDisabled:qu,externalPlaceholder:_u,externalDisabledPlaceholder:Xu}={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)"}},Ku=T(ht({mappings:{fontSize:[{},Wu],fontFamily:[Ru,Qu,Zu,Fu],labelFontSize:{...Ru,property:"font-size"},labelFontWeight:{...Ru,property:"font-weight"},inputValueFontWeight:[{...Bu,property:"font-weight"},{...$u,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{..._u,property:"font-weight"}],helperTextFontWeight:{...Zu,property:"font-weight"},errorMessageFontWeight:{...Fu,property:"font-weight"},labelTextColor:[{...Ru,property:"color"},{...Yu,property:"color"},{...Ru,property:"-webkit-text-fill-color"},{...Yu,property:"-webkit-text-fill-color"}],hostWidth:{...Wu,property:"width"},hostMinWidth:{...Wu,property:"min-width"},hostDirection:{...Wu,property:"direction"},inputDirection:{...Bu,property:"direction"},inputBackgroundColor:[{...Qu,property:"background-color"},{...Pu,property:"background-color"}],errorMessageTextColor:{...Fu,property:"color"},errorMessageIcon:{...Fu,property:"background-image"},errorMessageIconSize:{...Fu,property:"background-size"},errorMessageIconPadding:{...Fu,property:"padding-inline-start"},errorMessageIconRepeat:{...Fu,property:"background-repeat"},errorMessageIconPosition:{...Fu,property:"background-position"},errorMessageFontSize:{...Fu,property:"font-size"},helperTextColor:{...Zu,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Qu,property:"color"},{...Hu,property:"-webkit-text-fill-color"},{...qu,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Bu,property:"caret-color"},{...$u,property:"caret-color"}],labelRequiredIndicator:{...Yu,property:"content"},inputBorderColor:{...Qu,property:"border-color"},inputBorderWidth:{...Qu,property:"border-width"},inputBorderStyle:{...Qu,property:"border-style"},inputBorderRadius:{...Qu,property:"border-radius"},inputHeight:{...Qu,property:"height"},inputHorizontalPadding:[{...Bu,property:"padding-left"},{...Bu,property:"padding-right"},{...$u,property:"padding-left"},{...$u,property:"padding-right"}],inputOutlineColor:{...Qu,property:"outline-color"},inputOutlineStyle:{...Qu,property:"outline-style"},inputOutlineWidth:{...Qu,property:"outline-width"},inputOutlineOffset:{...Qu,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Bu,property:"text-align"},{...$u,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{..._u,property:"color"},{...Uu,property:"color"},{...Gu,property:"-webkit-text-fill-color"},{...Xu,property:"-webkit-text-fill-color"}],labelPosition:{...Ru,property:"position"},labelTopPosition:{...Ru,property:"top"},labelHorizontalPosition:[{...Ru,property:"left"},{...Ru,property:"right"}],inputTransformY:{...Ru,property:"transform"},inputTransition:{...Ru,property:"transition"},marginInlineStart:{...Ru,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{..._u,property:"opacity"}],inputVerticalAlignment:[{...Qu,property:"align-items"},{...$u,property:"align-items"}],valueInputHeight:[{...Bu,property:"height"},{...$u,property:"height"}],valueInputMarginBottom:[{...Bu,property:"margin-bottom"},{...$u,property:"margin-bottom"}],inputIconOffset:[{...Ju,property:"margin-right"},{...Ju,property:"margin-left"}],inputIconSize:{...Ju,property:"font-size"},inputIconColor:{...Ju,property:"color"},inputTextSecurity:[{...Bu,property:"-webkit-text-security"},{...Bu,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",Eu),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()}enableUnicode(){this.baseElement.setAttribute("pattern",ku),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",Vu),this.externalInput?.setAttribute("inputmode",Vu)}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(${Ku.cssVarList.inputOutlineWidth}) + var(${Ku.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${tt("vaadin-email-field")}\n\t\t\t${$(Ku.cssVarList)}\n\t\t\t${K("vaadin-email-field",Ku.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:Ou}));customElements.define(Ou,Ku);const tp=/[^\d\s+\-()]/,ep=ee("hybrid-field"),ip={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"]}},op={email:{"data-errormessage-value-missing-email":"data-errormessage-value-missing","data-errormessage-pattern-mismatch-email":"data-errormessage-pattern-mismatch"},phone:{"phone-input-label":"label","phone-minlength":"minlength","phone-format-value":"format-value","phone-strict-validation":"strict-validation","data-errormessage-value-missing-phone":"data-errormessage-value-missing"}},np="descope-phone-field",rp=_e({componentName:ep,baseSelector:"div"}),sp=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({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:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIcon},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconSize},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconPadding},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconRepeat},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconPosition},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageFontSize},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.labelFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.inputValueFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.inputPlaceholderFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.helperTextFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageFontWeight}]}}),Fe,Ge)(class extends rp{#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(np),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:ip.email,mapAttrs:op.email}),oe(this,this.phoneCountryCodeInput,{includeAttrs:ip.phone.countryCode,mapAttrs:op.phone}),oe(this,this.phoneInputBoxInput,{includeAttrs:ip.phone.inputBox,mapAttrs:op.phone}),this.inputs.forEach(t=>oe(this,t,{includeAttrs:ip.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&&!tp.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&&Ps.CountryCodes.find(e=>e.code===t);return e?.dialCode||Ps.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===np){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(ep,sp);const ap=ee("alert");class lp extends(_e({componentName:ap,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:dp}={icon:{selector:()=>".icon"}},cp=Ht(Ze({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:[{...dp,property:"content"},{...dp,property:"display",fallback:"none"}],iconSize:[{...dp,property:"width"},{...dp,property:"height"}]}}),Ze({componentNameOverride:ee("enriched-text")}),Ze({componentNameOverride:ee("text")}),Fe,Ge)(lp);customElements.define(ap,cp);const up=ee("hcaptcha"),pp=["enabled","site-key"],hp=ui({componentName:up,baseSelector:":host > div"}),gp=Ht(Ze({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"}]}}),Fe,Ge)(class extends hp{static get observedAttributes(){return pp.concat(hp.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(up,gp);const Mp=(Dp={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(Dp).reduce((t,e)=>{const i=Dp[e];return Object.assign(t,{[e]:me(i)})},{})),mp={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"}},yp=Se({fonts:mp}).fonts,bp={colors:Mp,typography:{h1:{font:yp.font1.family,weight:"900",size:"48px"},h2:{font:yp.font1.family,weight:"800",size:"38px"},h3:{font:yp.font1.family,weight:"600",size:"28px"},subtitle1:{font:yp.font2.family,weight:"500",size:"22px"},subtitle2:{font:yp.font2.family,weight:"400",size:"20px"},body1:{font:yp.font1.family,weight:"400",size:"16px"},body2:{font:yp.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:mp,direction:"ltr"},Np=(t=>ze(t,[],t=>ve({},t,De(t))))(bp),Ip=(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"}}),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=nt({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"};var Dp;(t=>{ot(t,[],t=>it({},t,et(t)))})(Tp);const vp=nt(Tp),zp=Oo.cssVarList,Cp={primary:vp.colors.primary,secondary:vp.colors.secondary,success:vp.colors.success,error:vp.colors.error,surface:vp.colors.surface},[Sp,wp,Lp]=st({mode:Cp},Lo),Ap={...Sp,[zp.fontFamily]:vp.fonts.font1.family,[zp.fontWeight]:"400",[zp.cursor]:"pointer",[zp.hostHeight]:"3em",[zp.hostWidth]:"auto",[zp.hostDirection]:vp.direction,[zp.borderRadius]:vp.radius.sm,[zp.borderWidth]:vp.border.xs,[zp.borderStyle]:"solid",[zp.borderColor]:"transparent",[zp.labelSpacing]:"0.25em",[zp.textAlign]:"center",textAlign:{right:{[zp.textAlign]:"right"},left:{[zp.textAlign]:"left"},center:{[zp.textAlign]:"center"}},[zp.verticalPadding]:"1em",[zp.horizontalPadding]:"0.875em",[zp.outlineWidth]:Tp.border.sm,[zp.outlineOffset]:"0px",[zp.outlineStyle]:"solid",[zp.outlineColor]:"transparent",[zp.iconSize]:"1.5em",size:{xs:{[zp.fontSize]:"12px"},sm:{[zp.fontSize]:"14px"},md:{[zp.fontSize]:"16px"},lg:{[zp.fontSize]:"18px"}},_square:{[zp.hostHeight]:"3em",[zp.hostWidth]:"3em",[zp.verticalPadding]:"0"},_fullWidth:{[zp.hostWidth]:"100%"},_loading:{[zp.cursor]:"wait",[zp.labelTextColor]:wp.main},_disabled:{[Lp.main]:vp.colors.surface.light,[Lp.dark]:vp.colors.surface.dark,[Lp.light]:vp.colors.surface.light,[Lp.contrast]:vp.colors.surface.main,[zp.iconColor]:vp.colors.surface.main},variant:{contained:{[zp.labelTextColor]:wp.contrast,[zp.backgroundColor]:wp.main,_hover:{[zp.backgroundColor]:wp.dark,_loading:{[zp.backgroundColor]:wp.main}},_active:{[zp.backgroundColor]:wp.main}},outline:{[zp.labelTextColor]:wp.main,[zp.borderColor]:wp.main,_hover:{[zp.labelTextColor]:wp.dark,[zp.borderColor]:wp.dark},_active:{[zp.labelTextColor]:wp.main,[zp.borderColor]:wp.main},_disabled:{[zp.iconColor]:wp.main}},link:{[zp.labelTextColor]:wp.main,[zp.horizontalPadding]:"0.125em",_hover:{[zp.labelTextColor]:wp.dark,[zp.labelTextDecoration]:"underline"},_active:{[zp.labelTextColor]:wp.main},_disabled:{[zp.iconColor]:wp.main}}},_focused:{[zp.outlineColor]:wp.light}},fp={...zp,...Lp};var Ep=Object.freeze({__proto__:null,default:Ap,vars:fp});const kp=nt(Tp),Op=Li.cssVarList,Vp={[Op.hostDirection]:kp.direction,[Op.textLineHeight]:"1.35em",[Op.textAlign]:"start",[Op.textColor]:kp.colors.surface.dark,variant:{h1:{[Op.fontSize]:kp.typography.h1.size,[Op.fontWeight]:kp.typography.h1.weight,[Op.fontFamily]:kp.typography.h1.font},h2:{[Op.fontSize]:kp.typography.h2.size,[Op.fontWeight]:kp.typography.h2.weight,[Op.fontFamily]:kp.typography.h2.font},h3:{[Op.fontSize]:kp.typography.h3.size,[Op.fontWeight]:kp.typography.h3.weight,[Op.fontFamily]:kp.typography.h3.font},subtitle1:{[Op.fontSize]:kp.typography.subtitle1.size,[Op.fontWeight]:kp.typography.subtitle1.weight,[Op.fontFamily]:kp.typography.subtitle1.font},subtitle2:{[Op.fontSize]:kp.typography.subtitle2.size,[Op.fontWeight]:kp.typography.subtitle2.weight,[Op.fontFamily]:kp.typography.subtitle2.font},body1:{[Op.fontSize]:kp.typography.body1.size,[Op.fontWeight]:kp.typography.body1.weight,[Op.fontFamily]:kp.typography.body1.font},body2:{[Op.fontSize]:kp.typography.body2.size,[Op.fontWeight]:kp.typography.body2.weight,[Op.fontFamily]:kp.typography.body2.font}},mode:{primary:{[Op.textColor]:kp.colors.surface.contrast},secondary:{[Op.textColor]:kp.colors.surface.dark},error:{[Op.textColor]:kp.colors.error.main},"error-dark":{[Op.textColor]:kp.colors.error.dark},success:{[Op.textColor]:kp.colors.success.main},"success-dark":{[Op.textColor]:kp.colors.success.dark},warning:{[Op.textColor]:kp.colors.warning.main},"warning-dark":{[Op.textColor]:kp.colors.warning.dark}},textAlign:{right:{[Op.textAlign]:"right"},left:{[Op.textAlign]:"left"},center:{[Op.textAlign]:"center"}},_fullWidth:{[Op.hostWidth]:"100%"},_italic:{[Op.fontStyle]:"italic"},_uppercase:{[Op.textTransform]:"uppercase"},_lowercase:{[Op.textTransform]:"lowercase"}};var Wp=Object.freeze({__proto__:null,default:Vp,vars:Op});const Rp=nt(Tp),Up=Yi.cssVarList,Yp={[Up.hostDirection]:Rp.direction,[Up.cursor]:"pointer",[Up.textColor]:Rp.colors.primary.main,textAlign:{right:{[Up.textAlign]:"right"},left:{[Up.textAlign]:"left"},center:{[Up.textAlign]:"center"}},_fullWidth:{[Up.hostWidth]:"100%"},_hover:{[Up.textDecoration]:"underline"},mode:{secondary:{[Up.textColor]:Rp.colors.secondary.main}}};var Qp=Object.freeze({__proto__:null,default:Yp,vars:Up});const Bp=nt(Tp),Pp=Zt.cssVarList,Zp={[Pp.hostDirection]:Bp.direction,[Pp.hostWidth]:rt(Op.hostWidth),[Pp.textLineHeight]:rt(Op.textLineHeight),[Pp.textColor]:rt(Op.textColor),[Pp.textAlign]:rt(Op.textAlign),[Pp.fontSize]:rt(Op.fontSize),[Pp.fontWeight]:rt(Op.fontWeight),[Pp.fontFamily]:rt(Op.fontFamily),[Pp.linkColor]:rt(Up.textColor),[Pp.linkTextDecoration]:"none",[Pp.linkHoverTextDecoration]:"underline",[Pp.fontWeightBold]:"900",[Pp.minWidth]:"0.25em",[Pp.minHeight]:"1.35em",[Pp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[Pp.hostDisplay]:"none"}}};var Fp=Object.freeze({__proto__:null,default:Zp,vars:Pp});const Gp=L("input-wrapper"),Hp=nt(Tp),[Jp,$p]=st({labelTextColor:Hp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:Hp.colors.surface.contrast,placeholderTextColor:Hp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Hp.colors.surface.dark,errorMessageTextColor:Hp.colors.error.main,successMessageTextColor:Hp.colors.success.main,borderWidth:Hp.border.xs,borderRadius:Hp.radius.xs,borderColor:"transparent",outlineWidth:Hp.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:Hp.colors.surface.main,fontFamily:Hp.fonts.font1.family,direction:Hp.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:Hp.colors.surface.light,_invalid:{outlineColor:Hp.colors.error.main}},_bordered:{outlineWidth:Hp.border.xs,borderColor:Hp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Hp.colors.error.main}},_disabled:{labelTextColor:Hp.colors.surface.light,borderColor:Hp.colors.surface.light,valueTextColor:Hp.colors.surface.light,placeholderTextColor:Hp.colors.surface.light,helperTextColor:Hp.colors.surface.light,backgroundColor:Hp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},Gp),qp=nt(Tp),_p=jo.cssVarList,Xp={[_p.hostWidth]:$p.width,[_p.hostDirection]:$p.direction,[_p.fontSize]:$p.fontSize,[_p.fontFamily]:$p.fontFamily,[_p.labelFontSize]:$p.labelFontSize,[_p.labelFontWeight]:$p.labelFontWeight,[_p.inputValueFontWeight]:$p.inputValueFontWeight,[_p.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[_p.helperTextFontWeight]:$p.helperTextFontWeight,[_p.errorMessageFontWeight]:$p.errorMessageFontWeight,[_p.labelTextColor]:$p.labelTextColor,[_p.errorMessageTextColor]:$p.errorMessageTextColor,[_p.inputBorderColor]:$p.borderColor,[_p.inputBorderWidth]:$p.borderWidth,[_p.inputBorderStyle]:$p.borderStyle,[_p.inputBorderRadius]:$p.borderRadius,[_p.inputOutlineColor]:$p.outlineColor,[_p.inputOutlineOffset]:$p.outlineOffset,[_p.inputOutlineWidth]:$p.outlineWidth,[_p.inputOutlineStyle]:$p.outlineStyle,[_p.labelRequiredIndicator]:$p.requiredIndicator,[_p.inputValueTextColor]:$p.valueTextColor,[_p.inputPlaceholderTextColor]:$p.placeholderTextColor,[_p.inputBackgroundColor]:$p.backgroundColor,[_p.inputHorizontalPadding]:$p.horizontalPadding,[_p.inputHeight]:$p.inputHeight,[_p.inputDropdownButtonColor]:qp.colors.surface.dark,[_p.inputDropdownButtonCursor]:"pointer",[_p.inputDropdownButtonSize]:$p.toggleButtonSize,[_p.inputDropdownButtonOffset]:qp.spacing.xs,[_p.overlayItemPaddingInlineStart]:qp.spacing.xs,[_p.overlayItemPaddingInlineEnd]:qp.spacing.lg,[_p.labelPosition]:$p.labelPosition,[_p.labelTopPosition]:$p.labelTopPosition,[_p.labelHorizontalPosition]:$p.labelHorizontalPosition,[_p.inputTransformY]:$p.inputTransformY,[_p.inputTransition]:$p.inputTransition,[_p.marginInlineStart]:$p.marginInlineStart,[_p.placeholderOpacity]:$p.placeholderOpacity,[_p.inputVerticalAlignment]:$p.inputVerticalAlignment,[_p.valueInputHeight]:$p.valueInputHeight,[_p.valueInputMarginBottom]:$p.valueInputMarginBottom,[_p.errorMessageIcon]:$p.errorMessageIcon,[_p.errorMessageIconSize]:$p.errorMessageIconSize,[_p.errorMessageIconPadding]:$p.errorMessageIconPadding,[_p.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[_p.errorMessageIconPosition]:$p.errorMessageIconPosition,[_p.errorMessageFontSize]:$p.errorMessageFontSize,_readonly:{[_p.inputDropdownButtonCursor]:"default"},[_p.overlayFontSize]:$p.fontSize,[_p.overlayFontFamily]:$p.fontFamily,[_p.overlayCursor]:"pointer",[_p.overlayItemBoxShadow]:"none",[_p.overlayBackground]:$p.backgroundColor,[_p.overlayTextColor]:$p.valueTextColor,[_p.overlayCheckmarkDisplay]:"initial",[_p.overlaySelectedItemBackground]:"initial",[_p.overlaySelectedItemHoverBackground]:qp.colors.primary.highlight,[_p.overlaySelectedItemFocusBackground]:qp.colors.primary.highlight,[_p.overlayItemHoverBackground]:qp.colors.primary.highlight,[_p.overlayItemFocusBackground]:qp.colors.primary.highlight,[_p.overlay.margin]:"0",[_p.overlay.contentHeight]:"100%",[_p.overlay.contentOpacity]:"1",[_p.overlay.scrollerMinHeight]:"1px",_loading:{[_p.overlay.loaderTop]:"50%",[_p.overlay.loaderLeft]:"50%",[_p.overlay.loaderRight]:"auto",[_p.overlay.loaderMargin]:"-15px 0 0 -15px",[_p.overlay.loaderWidth]:"30px",[_p.overlay.loaderHeight]:"30px",[_p.overlay.loaderBorder]:"2px solid transparent",[_p.overlay.loaderBorderColor]:`${qp.colors.primary.highlight} ${qp.colors.primary.highlight} ${qp.colors.primary.main} ${qp.colors.primary.main}`,[_p.overlay.loaderBorderRadius]:"50%",[_p.overlay.contentHeight]:"100px",[_p.overlay.scrollerMinHeight]:"100px",[_p.overlay.contentOpacity]:"0"}};var Kp=Object.freeze({__proto__:null,comboBox:Xp,default:Xp,vars:_p});const th=nt(Tp),[eh,ih]=st({shadowColor:"#00000020"},vc),{shadowColor:oh}=ih,nh=Cc.cssVarList,rh={...eh,[nh.hostWidth]:"fit-content",[nh.hostDirection]:th.direction,[nh.textAlign]:"center",[nh.fontFamily]:th.fonts.font1.family,[nh.fontWeight]:"400",[nh.verticalPadding]:"0.25em",[nh.horizontalPadding]:"0.5em",[nh.borderWidth]:th.border.xs,[nh.borderRadius]:th.radius.xs,[nh.borderColor]:"transparent",[nh.borderStyle]:"solid",_fullWidth:{[nh.hostWidth]:"100%"},size:{xs:{[nh.fontSize]:"12px"},sm:{[nh.fontSize]:"14px"},md:{[nh.fontSize]:"16px"},lg:{[nh.fontSize]:"18px"}},variant:{contained:{[nh.backgroundColor]:th.colors.surface.main}},_shrinkToIndicator:{[nh.hostWidth]:"13px",[nh.hostHeight]:"13px",[nh.borderRadius]:"50%",[nh.fontSize]:"0",[nh.textIndent]:"-9999px"},mode:{default:{[nh.textColor]:th.colors.surface.dark,_bordered:{[nh.borderColor]:th.colors.surface.light}},primary:{[nh.textColor]:th.colors.primary.main,_bordered:{[nh.borderColor]:th.colors.primary.light}},secondary:{[nh.textColor]:th.colors.secondary.main,_bordered:{[nh.borderColor]:th.colors.secondary.light}},error:{[nh.textColor]:th.colors.error.main,_bordered:{[nh.borderColor]:th.colors.error.light}},success:{[nh.textColor]:th.colors.success.main,_bordered:{[nh.borderColor]:th.colors.success.light}}},shadow:{sm:{[nh.boxShadow]:`${th.shadow.wide.sm} ${oh}, ${th.shadow.narrow.sm} ${oh}`},md:{[nh.boxShadow]:`${th.shadow.wide.md} ${oh}, ${th.shadow.narrow.md} ${oh}`},lg:{[nh.boxShadow]:`${th.shadow.wide.lg} ${oh}, ${th.shadow.narrow.lg} ${oh}`},xl:{[nh.boxShadow]:`${th.shadow.wide.xl} ${oh}, ${th.shadow.narrow.xl} ${oh}`}}};var sh=Object.freeze({__proto__:null,default:rh,vars:nh});const ah=L("avatar");class lh extends(It({componentName:ah,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:dh,editableBadge:ch,avatar:uh}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},ph=T(ht({mappings:{hostWidth:[{...dh,property:"width"},{...dh,property:"min-width"}],hostHeight:{...dh,property:"height"},cursor:[uh,dh],hostDirection:{...dh,property:"direction"},avatarTextColor:{...uh,property:"color"},avatarBackgroundColor:{...uh,property:"background-color"},editableIconColor:{...ch,property:"color"},editableBorderColor:{...ch,property:"border-color"},editableBackgroundColor:{...ch,property:"background-color"}}}),gt,Mt)(lh),hh=nt(Tp),gh=ph.cssVarList,Mh={[gh.hostDirection]:hh.direction,[gh.editableIconColor]:hh.colors.surface.dark,[gh.editableBorderColor]:hh.colors.surface.dark,[gh.editableBackgroundColor]:hh.colors.surface.main,[gh.avatarTextColor]:hh.colors.surface.main,[gh.avatarBackgroundColor]:hh.colors.surface.dark,_editable:{[gh.cursor]:"pointer"},size:{xs:{[gh.hostWidth]:"30px",[gh.hostHeight]:"30px"},sm:{[gh.hostWidth]:"40px",[gh.hostHeight]:"40px"},md:{[gh.hostWidth]:"60px",[gh.hostHeight]:"60px"},lg:{[gh.hostWidth]:"98px",[gh.hostHeight]:"98px"},xl:{[gh.hostWidth]:"120px",[gh.hostHeight]:"120px"},"2xl":{[gh.hostWidth]:"140px",[gh.hostHeight]:"140px"}}},mh={...gh};var yh=Object.freeze({__proto__:null,default:Mh,vars:mh});const bh=wo.cssVarList;var Nh=Object.freeze({__proto__:null,default:{},vars:bh});const Ih=Co.cssVarList;var xh=Object.freeze({__proto__:null,default:{},vars:Ih});const jh=L("apps-list"),Th=T(ht({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:gu.componentName,property:gu.cssVarList.gap},maxRowItems:{selector:gu.componentName,property:gu.cssVarList.maxRowItems},itemsFontWeight:{selector:Li.componentName,property:Li.cssVarList.fontWeightOverride},itemsFontSize:{selector:Li.componentName,property:Li.cssVarList.fontSizeOverride},itemsTextAlign:{selector:Li.componentName,property:Li.cssVarList.textAlign},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},logoBackgroundColor:{selector:ph.componentName,property:ph.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:ph.componentName,property:ph.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${uu.componentName}:hover`,property:uu.cssVarList.backgroundColor},backgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:uu.componentName,property:uu.cssVarList.borderStyleOverride},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColorOverride},itemBorderWidth:{selector:uu.componentName,property:uu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:Li.componentName,property:Li.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:jh,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 ${Li.cssVarList.hostDirection}: var(${Th.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),Dh=Th.cssVarList,vh=nt(Tp),zh="400px",Ch={[Dh.itemsTextAlign]:"start",[Dh.hostDirection]:vh.direction,[Dh.maxHeight]:zh,[Dh.itemHoverBackgroundColor]:vh.colors.surface.highlight,_empty:{[Dh.minHeight]:zh},size:{xs:{[Dh.itemsFontSize]:"14px",[Dh.itemsFontWeight]:"normal"},sm:{[Dh.itemsFontSize]:"14px",[Dh.itemsFontWeight]:"normal"},md:{[Dh.itemsFontSize]:"16px",[Dh.itemsFontWeight]:"normal"},lg:{[Dh.itemsFontSize]:"20px",[Dh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[Dh.itemVerticalPadding]:vh.spacing.xs,[Dh.itemHorizontalPadding]:vh.spacing.xs},sm:{[Dh.itemVerticalPadding]:vh.spacing.sm,[Dh.itemHorizontalPadding]:vh.spacing.sm},md:{[Dh.itemVerticalPadding]:vh.spacing.md,[Dh.itemHorizontalPadding]:vh.spacing.md},lg:{[Dh.itemVerticalPadding]:vh.spacing.lg,[Dh.itemHorizontalPadding]:vh.spacing.lg},xl:{[Dh.itemVerticalPadding]:vh.spacing.xl,[Dh.itemHorizontalPadding]:vh.spacing.xl}}};var Sh=Object.freeze({__proto__:null,default:Ch,vars:Dh});const wh=nt(Tp),Lh=gu.cssVarList,[Ah,fh,Eh]=st({shadowColor:"#00000020"},pu),{shadowColor:kh}=fh,Oh={...Ah,[Lh.hostWidth]:"100%",[Lh.backgroundColor]:wh.colors.surface.main,[Lh.fontFamily]:wh.fonts.font1.family,[Lh.borderColor]:wh.colors.surface.light,[Lh.borderStyle]:"solid",[Lh.borderWidth]:wh.border.xs,[Lh.borderRadius]:wh.radius.sm,[Lh.gap]:wh.spacing.md,[Lh.verticalPadding]:wh.spacing.lg,[Lh.horizontalPadding]:wh.spacing.lg,[Lh.boxShadow]:`${wh.shadow.wide.sm} ${kh}, ${wh.shadow.narrow.sm} ${kh}`,[Lh.maxHeight]:"100%",[Lh.hostDirection]:wh.direction,[Lh.minItemsWidth]:"150px",[Lh.maxRowItems]:"1000",_empty:{[Lh.minHeight]:"150px",[Lh.emptyStateTextColor]:wh.colors.surface.dark,[Lh.emptyStateTextFontFamily]:wh.fonts.font1.family},variant:{tiles:{[Lh.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${rt(Lh.minItemsWidth)}, 100%),\n calc((100% - (${rt(Lh.maxRowItems)} - 1) * ${rt(Lh.gap)}) / ${rt(Lh.maxRowItems)})),\n 1fr))`,[Lh.maxItemsWidth]:"200px",[Lh.itemsHorizontalAlign]:"center"}},gap:{xs:{[Lh.gap]:wh.spacing.xs},sm:{[Lh.gap]:wh.spacing.sm},md:{[Lh.gap]:wh.spacing.md},lg:{[Lh.gap]:wh.spacing.lg},xl:{[Lh.gap]:wh.spacing.xl}}},Vh={...Lh,...Eh};var Wh=Object.freeze({__proto__:null,default:Oh,vars:Vh});const Rh=nt(Tp),Uh=uu.cssVarList,Yh={[Uh.backgroundColor]:Rh.colors.surface.main,[Uh.verticalPadding]:Rh.spacing.lg,[Uh.horizontalPadding]:Rh.spacing.lg,[Uh.gap]:Rh.spacing.md,[Uh.borderStyle]:"solid",[Uh.borderWidth]:Rh.border.xs,[Uh.borderColor]:Rh.colors.surface.main,[Uh.borderRadius]:Rh.radius.sm,[Uh.cursor]:"pointer",[Uh.alignItems]:"center",[Uh.flexDirection]:"row",[Uh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Uh.alignItems]:"flex-start",[Uh.flexDirection]:"column",[Uh.borderColor]:Rh.colors.surface.light}},_hover:{[Uh.backgroundColor]:Rh.colors.surface.highlight},_active:{[Uh.backgroundColor]:Rh.colors.surface.main,[Uh.borderColor]:Rh.colors.primary.light,[Uh.outline]:`1px solid ${Rh.colors.primary.light}`}};var Qh=Object.freeze({__proto__:null,default:Yh,vars:Uh});const Bh=L("multi-select-combo-box"),{host:Ph,inputField:Zh,inputElement:Fh,placeholder:Gh,toggle:Hh,clearButton:Jh,label:$h,requiredIndicator:qh,helperText:_h,errorMessage:Xh,chip:Kh,chipLabel:tg,overflowChipFirstBorder:eg,overflowChipSecondBorder:ig}={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"}},og=T(ht({mappings:{hostWidth:{...Ph,property:"width"},hostDirection:{...Ph,property:"direction"},fontSize:[{},Ph],chipFontSize:{...tg,property:"font-size"},fontFamily:[$h,Gh,Zh,_h,Xh,tg],labelFontSize:{...$h,property:"font-size"},labelFontWeight:{...$h,property:"font-weight"},inputValueFontWeight:{...Zh,property:"font-weight"},inputPlaceholderFontWeight:{...Gh,property:"font-weight"},helperTextFontWeight:{..._h,property:"font-weight"},errorMessageFontWeight:{...Xh,property:"font-weight"},labelTextColor:[{...$h,property:"color"},{...qh,property:"color"}],errorMessageTextColor:{...Xh,property:"color"},errorMessageIcon:{...Xh,property:"background-image"},errorMessageIconSize:{...Xh,property:"background-size"},errorMessageIconPadding:{...Xh,property:"padding-inline-start"},errorMessageIconRepeat:{...Xh,property:"background-repeat"},errorMessageIconPosition:{...Xh,property:"background-position"},errorMessageFontSize:{...Xh,property:"font-size"},inputHeight:{...Zh,property:"min-height"},inputBackgroundColor:{...Zh,property:"background-color"},inputBorderColor:{...Zh,property:"border-color"},inputBorderWidth:{...Zh,property:"border-width"},inputBorderStyle:{...Zh,property:"border-style"},inputBorderRadius:{...Zh,property:"border-radius"},labelRequiredIndicator:{...qh,property:"content"},inputValueTextColor:{...Zh,property:"color"},inputPlaceholderTextColor:{...Gh,property:"color"},inputDropdownButtonCursor:[{...Hh,property:"cursor"},{...Jh,property:"cursor"}],inputDropdownButtonColor:[{...Hh,property:"color"},{...Jh,property:"color"}],inputDropdownButtonSize:[{...Hh,property:"font-size"},{...Jh,property:"font-size"}],inputDropdownButtonOffset:[{...Hh,property:"margin-right"},{...Hh,property:"margin-left"}],inputOutlineColor:{...Zh,property:"outline-color"},inputOutlineWidth:{...Zh,property:"outline-width"},inputOutlineStyle:{...Zh,property:"outline-style"},inputOutlineOffset:{...Zh,property:"outline-offset"},inputHorizontalPadding:[{...Fh,property:"padding-left"},{...Fh,property:"padding-right"},{...Zh,property:"padding-inline-start"}],inputVerticalPadding:[{...Zh,property:"padding-top"},{...Zh,property:"padding-bottom"}],chipTextColor:{...tg,property:"color"},chipBackgroundColor:[{...Kh,property:"background-color"},{...eg,property:"border-color"},{...ig,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:{...Gh,property:"opacity"},inputVerticalAlignment:{...Zh,property:"align-items"},overlayBackground:{property:()=>og.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>og.cssVarList.overlay.textColor},overlayBorder:{property:()=>og.cssVarList.overlay.border},overlayFontSize:{property:()=>og.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>og.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>og.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>og.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>og.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>og.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${$(og.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:Bh,includeForwardProps:["items","renderer","selectedItems"]})),ng=L("multi-line-mappings"),rg=It({componentName:ng}),sg=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),ag=t=>[...new Set(t.map(sg).filter(Boolean))],lg=t=>{const e=sg(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},dg=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(lg).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},cg=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),ug={selector:()=>":host"},pg={selector:".row"},hg={selector:".add-action"},gg=T(ht({mappings:{hostWidth:{...ug,property:"width"},hostDirection:[{...ug,property:"direction"},{selector:og.componentName,property:og.cssVarList.hostDirection},{selector:Oo.componentName,property:Oo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...pg,property:"gap"},rowAlignItems:{...pg,property:"align-items"},rowWrap:{...pg,property:"flex-wrap"},addActionJustifyContent:{...hg,property:"justify-content"},addActionMarginTop:{...hg,property:"margin-top"}}}),gt)(class extends rg{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:dg(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:ag(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))}#Be({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.#Pe(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Ze({rowIndex:i,type:e,selectedValues:ag(s.value||[])})}),s}#Pe(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.#Be({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.#Be({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.#Pe(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(cg(o.firstValues,i)&&cg(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}cg(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}))}}),Mg=gg.cssVarList,mg={[Mg.hostDirection]:$p.direction,[Mg.rowsGap]:Tp.spacing.sm,[Mg.rowGap]:Tp.spacing.sm,[Mg.rowAlignItems]:"flex-end",[Mg.rowWrap]:"nowrap",[Mg.addActionJustifyContent]:"flex-start",[Mg.addActionMarginTop]:Tp.spacing.xs,_fullWidth:{[Mg.hostWidth]:"100%"}};var yg=Object.freeze({__proto__:null,default:mg,vars:Mg});const bg=nt(Tp),Ng=og.cssVarList,Ig={[Ng.hostWidth]:$p.width,[Ng.hostDirection]:$p.direction,[Ng.fontSize]:$p.fontSize,[Ng.fontFamily]:$p.fontFamily,[Ng.labelFontSize]:$p.labelFontSize,[Ng.labelFontWeight]:$p.labelFontWeight,[Ng.inputValueFontWeight]:$p.inputValueFontWeight,[Ng.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[Ng.helperTextFontWeight]:$p.helperTextFontWeight,[Ng.errorMessageFontWeight]:$p.errorMessageFontWeight,[Ng.labelTextColor]:$p.labelTextColor,[Ng.errorMessageTextColor]:$p.errorMessageTextColor,[Ng.inputBorderColor]:$p.borderColor,[Ng.inputBorderWidth]:$p.borderWidth,[Ng.inputBorderStyle]:$p.borderStyle,[Ng.inputBorderRadius]:$p.borderRadius,[Ng.inputOutlineColor]:$p.outlineColor,[Ng.inputOutlineOffset]:$p.outlineOffset,[Ng.inputOutlineWidth]:$p.outlineWidth,[Ng.inputOutlineStyle]:$p.outlineStyle,[Ng.labelRequiredIndicator]:$p.requiredIndicator,[Ng.inputValueTextColor]:$p.valueTextColor,[Ng.inputPlaceholderTextColor]:$p.placeholderTextColor,[Ng.inputBackgroundColor]:$p.backgroundColor,[Ng.inputHorizontalPadding]:$p.horizontalPadding,[Ng.inputVerticalPadding]:$p.verticalPadding,[Ng.inputHeight]:$p.inputHeight,[Ng.inputDropdownButtonColor]:bg.colors.surface.dark,[Ng.inputDropdownButtonCursor]:"pointer",[Ng.inputDropdownButtonSize]:$p.toggleButtonSize,[Ng.inputDropdownButtonOffset]:bg.spacing.xs,[Ng.overlayItemPaddingInlineStart]:bg.spacing.xs,[Ng.overlayItemPaddingInlineEnd]:bg.spacing.lg,[Ng.chipFontSize]:$p.chipFontSize,[Ng.chipTextColor]:bg.colors.surface.contrast,[Ng.chipBackgroundColor]:bg.colors.surface.light,[Ng.labelPosition]:$p.labelPosition,[Ng.labelTopPosition]:$p.labelTopPosition,[Ng.labelLeftPosition]:$p.labelLeftPosition,[Ng.labelHorizontalPosition]:$p.labelHorizontalPosition,[Ng.inputTransformY]:$p.inputTransformY,[Ng.inputTransition]:$p.inputTransition,[Ng.marginInlineStart]:$p.marginInlineStart,[Ng.placeholderOpacity]:$p.placeholderOpacity,[Ng.inputVerticalAlignment]:$p.inputVerticalAlignment,[Ng.errorMessageIcon]:$p.errorMessageIcon,[Ng.errorMessageIconSize]:$p.errorMessageIconSize,[Ng.errorMessageIconPadding]:$p.errorMessageIconPadding,[Ng.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[Ng.errorMessageIconPosition]:$p.errorMessageIconPosition,[Ng.errorMessageFontSize]:$p.errorMessageFontSize,labelType:{floating:{[Ng.inputHorizontalPadding]:"0.25em",_hasValue:{[Ng.inputHorizontalPadding]:"0.45em"}}},_readonly:{[Ng.inputDropdownButtonCursor]:"default"},[Ng.overlayFontSize]:$p.fontSize,[Ng.overlayFontFamily]:$p.fontFamily,[Ng.overlayCursor]:"pointer",[Ng.overlayItemBoxShadow]:"none",[Ng.overlayBackground]:$p.backgroundColor,[Ng.overlayTextColor]:$p.valueTextColor,[Ng.overlay.minHeight]:"400px",[Ng.overlay.margin]:"0"};var xg=Object.freeze({__proto__:null,default:Ig,multiSelectComboBox:Ig,vars:Ng});const jg=L("autocomplete-field-internal"),Tg=Ct({componentName:jg,baseSelector:""}),Dg=[],vg="DESCOPE_INVALID_OPTION",zg=L("autocomplete-field"),{host:Cg}={host:{selector:()=>":host"}},Sg=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...Cg,property:"width"},hostDirection:{...Cg,property:"direction"},fontSize:{...Cg},checkmarkDisplay:{selector:jo.componentName,property:jo.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:jo.componentName,property:jo.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:jo.componentName,property:jo.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:jo.componentName,property:jo.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:jo.componentName,property:jo.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:jo.componentName,property:jo.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:jo.componentName,property:jo.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 <${jg}\n tabindex="-1"\n ></${jg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(jg),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:zg})),wg=Sg.cssVarList,Lg=nt(Tp),Ag={[wg.hostWidth]:$p.width,[wg.hostDirection]:$p.direction,[wg.fontSize]:$p.fontSize,[wg.checkmarkDisplay]:"none",[wg.itemPaddingInlineStart]:Lg.spacing.lg,[wg.itemPaddingInlineEnd]:Lg.spacing.lg,[wg.selectedItemBackground]:Lg.colors.primary.light,[wg.selectedItemHoverBackground]:Lg.colors.primary.light,[wg.selectedItemFocusBackground]:Lg.colors.primary.light,[wg.itemHoverBackground]:Lg.colors.primary.highlight,_fullWidth:{[wg.hostWidth]:"100%"}};var fg=Object.freeze({__proto__:null,default:Ag,vars:wg});class Eg 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 kg 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 Og=L("address-field-internal"),Vg="google-maps-places",Wg="radar",Rg={[Vg]:Eg,[Wg]:kg},Ug=Ct({componentName:Og,baseSelector:""}),Yg=["public-api-key"],Qg=[...Yg],Bg=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:Rg}))(class extends Ug{static get observedAttributes(){return[].concat(Ug.observedAttributes||[],Qg)}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&&Yg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),Pg=L("address-field"),{host:Zg}={host:{selector:()=>":host"}},Fg=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...Zg,property:"width"},hostDirection:{...Zg,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 <${Og}\n tabindex="-1"\n ></${Og}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Og),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 ${Og} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Og} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Pg})),Gg=Fg.cssVarList,Hg={[Gg.hostWidth]:$p.width,[Gg.hostDirection]:$p.direction,_fullWidth:{[Gg.hostWidth]:"100%"}};var Jg=Object.freeze({__proto__:null,default:Hg,vars:Gg});const $g=(t,e=2)=>String(t).padStart(e,"0"),qg=L("timer"),_g=["seconds","hide-icon","paused"],Xg=It({componentName:qg,baseSelector:":host > .wrapper"}),{host:Kg,icon:tM,timer:eM}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},iM=T(ht({mappings:{fontSize:{},iconSize:[{...tM,property:"width"},{...tM,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...eM},lineHeight:{...eM},textColor:{...eM,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...Kg,property:"width"},hostDirection:{...Kg,property:"direction"},iconColor:{...tM,property:wo.cssVarList.fill}}}),gt,Mt)(class extends Xg{#ei=0;#ii;static get observedAttributes(){return _g.concat(Xg.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))}}),oM=nt(Tp),nM=iM.cssVarList,rM={[nM.hostDirection]:oM.direction,[nM.gap]:"0.25em",[nM.fontFamily]:oM.fonts.font1.family,[nM.minHeight]:"1.5em",[nM.lineHeight]:"1em",[nM.fontWeight]:oM.fonts.font1.fontWeight,[nM.textColor]:oM.colors.surface.contrast,[nM.iconColor]:oM.colors.surface.contrast,[nM.iconSize]:"1em",size:{xs:{[nM.fontSize]:"12px"},sm:{[nM.fontSize]:"14px"},md:{[nM.fontSize]:"16px"},lg:{[nM.fontSize]:"18px"}},textAlign:{right:{[nM.textAlign]:"right"},left:{[nM.textAlign]:"left"},center:{[nM.textAlign]:"center"}},_fullWidth:{[nM.hostWidth]:"100%"}};var sM=Object.freeze({__proto__:null,default:rM,vars:nM});const aM=L("timer-button"),lM=["button-variant","button-mode","size","text-align","full-width"],dM={"button-variant":"variant","button-mode":"mode"},cM=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],uM={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},pM=It({componentName:aM,baseSelector:":host > div"}),{host:hM,nestedTimer:gM,nestedButton:MM,timerInsideNotReversed:mM,timerInsideReversed:yM}={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'}},bM=T(ht({mappings:{gap:{},flexDirection:{},hostWidth:{...hM,property:"width"},hostDirection:{...hM,property:"direction"},timerTextColor:{...gM,property:iM.cssVarList.textColor},timerIconColor:{...gM,property:iM.cssVarList.iconColor},timerHostWidth:{...gM,property:iM.cssVarList.hostWidth},buttonLabelSpacing:{...MM,property:Oo.cssVarList.labelSpacing},timerInsideGapEnd:{...mM,property:"margin-inline-end"},timerInsideGapStart:{...yM,property:"margin-inline-start"}}}),gt,Mt)(class extends pM{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:lM,mapAttrs:dM}),f(this,this.timer,{includeAttrs:cM,mapAttrs:uM}),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")})}}),NM=nt(Tp),IM=bM.cssVarList,xM={[IM.gap]:NM.spacing.sm,[IM.flexDirection]:"column",_horizontal:{[IM.flexDirection]:"row",timerPosition:{end:{[IM.flexDirection]:"row-reverse"}}},timerPosition:{end:{[IM.flexDirection]:"column-reverse"}},_fullWidth:{[IM.hostWidth]:"100%"},_timerInside:{[IM.timerTextColor]:"currentColor",[IM.timerIconColor]:"currentColor",[IM.timerHostWidth]:"auto",[IM.buttonLabelSpacing]:"0",[IM.timerInsideGapEnd]:`var(${IM.gap})`,timerPosition:{end:{[IM.timerInsideGapStart]:`var(${IM.gap})`}}}};var jM=Object.freeze({__proto__:null,default:xM,vars:IM});const TM=L("password-strength");class DM extends(It({componentName:TM,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 KT}).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:vM,bar:zM,filledBar:CM,barsContainer:SM,text:wM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},LM=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:[{...vM,property:"width"},{...vM,property:"min-width"}],hostDirection:{...vM,property:"direction"},hostMinWidth:{...vM,property:"min-width"},barHeight:{...zM,property:"height"},barBorderRadius:{...zM,property:"border-radius"},emptyBarColor:{...zM,property:"background-color"},filledBarColor:{...CM,property:"background-color"},textColor:{...wM,property:"color"},spacing:{property:"gap"},barSpacing:{...SM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...zM,property:"transition"}}}),gt,Mt)(DM),AM=nt(Tp),fM=LM.cssVarList,EM={[fM.hostDirection]:AM.direction,[fM.barHeight]:"4px",[fM.barTransition]:"background-color 0.3s",[fM.barBorderRadius]:AM.radius.sm,[fM.hostMinWidth]:$p.minWidth,[fM.barSpacing]:AM.spacing.sm,[fM.emptyBarColor]:AM.colors.surface.light,[fM.fontFamily]:$p.fontFamily,[fM.fontSize]:$p.labelFontSize,[fM.fontWeight]:$p.labelFontWeight,[fM.spacing]:AM.spacing.sm,_fullWidth:{[fM.hostWidth]:"100%"},score:{0:{[fM.filledBarColor]:AM.colors.error.light,[fM.textColor]:AM.colors.error.light},1:{[fM.filledBarColor]:AM.colors.error.main,[fM.textColor]:AM.colors.error.main},2:{[fM.filledBarColor]:AM.colors.error.dark,[fM.textColor]:AM.colors.error.dark},3:{[fM.filledBarColor]:AM.colors.success.dark,[fM.textColor]:AM.colors.success.dark},4:{[fM.filledBarColor]:AM.colors.success.main,[fM.textColor]:AM.colors.success.main}}},kM={...fM};var OM=Object.freeze({__proto__:null,default:EM,vars:kM});const VM=L("collapsible-container");class WM extends(It({componentName:VM,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-text st-host-direction="ltr">\n <div class="header">\n <div class="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(${Li.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")}collapse(t=!1){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){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()}),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){"text"!==t?this.isCollapsed&&this.isCollapsible?this.collapse(this.#pi):this.expand(this.#pi):this.updateHeaderText()}}const RM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},UM=T(ht({mappings:{hostWidth:{selector:RM.host,property:"width"},hostDirection:{selector:RM.host,property:"direction"},verticalPadding:[{selector:RM.wrapper,property:"padding-top"},{selector:RM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:RM.wrapper,property:"padding-left"},{selector:RM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:RM.wrapper},backgroundImage:{selector:RM.wrapper},backgroundPositionX:{selector:RM.wrapper},backgroundPositionY:{selector:RM.wrapper},backgroundSize:{selector:RM.wrapper},backgroundRepeat:{selector:RM.wrapper},borderRadius:{selector:RM.wrapper},borderColor:{selector:RM.wrapper},borderStyle:{selector:RM.wrapper},borderWidth:{selector:RM.wrapper},boxShadow:{selector:RM.wrapper},headerIconOrder:{selector:RM.iconWrapper,property:"order"},headerCursor:{selector:RM.header,property:"cursor"},headerGap:{selector:RM.iconAndText,property:"gap"},textGrow:{selector:RM.text,property:"flex-grow"},textDirection:{selector:RM.text,property:"direction"},iconAnimationDuration:{selector:RM.icon,property:"transition-duration"},contentAnimationDuration:{selector:RM.content,property:"transition-duration"},chevronRotation:{selector:RM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),gt,Mt)(WM),YM=nt(Tp),QM=UM.cssVarList,[BM,PM,ZM]=st({shadowColor:"#00000020"},VM),{shadowColor:FM}=PM,GM={...BM,[QM.hostWidth]:"100%",[QM.boxShadow]:"none",[QM.backgroundColor]:YM.colors.surface.main,[QM.backgroundImage]:"",[QM.backgroundPositionX]:"center",[QM.backgroundPositionY]:"center",[QM.backgroundSize]:"cover",[QM.backgroundRepeat]:"no-repeat",[QM.borderRadius]:"0px",[QM.hostDirection]:YM.direction,[QM.flexDirection]:"column",[QM.alignItems]:"flex-start",[QM.justifyContent]:"flex-start",[QM.headerGap]:YM.spacing.md,[QM.chevronRotation]:"rotate(180deg)",[QM.iconAnimationDuration]:"0.1s",[QM.contentAnimationDuration]:"0.1s",[QM.borderWidth]:"0px",[QM.textGrow]:"0",verticalPadding:{sm:{[QM.verticalPadding]:"5px"},md:{[QM.verticalPadding]:"10px"},lg:{[QM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[QM.horizontalPadding]:"5px"},md:{[QM.horizontalPadding]:"10px"},lg:{[QM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[QM.gap]:"10px"},md:{[QM.gap]:"20px"},lg:{[QM.gap]:"30px"}},shadow:{sm:{[QM.boxShadow]:`${YM.shadow.wide.sm} ${FM}, ${YM.shadow.narrow.sm} ${FM}`},md:{[QM.boxShadow]:`${YM.shadow.wide.md} ${FM}, ${YM.shadow.narrow.md} ${FM}`},lg:{[QM.boxShadow]:`${YM.shadow.wide.lg} ${FM}, ${YM.shadow.narrow.lg} ${FM}`},xl:{[QM.boxShadow]:`${YM.shadow.wide.xl} ${FM}, ${YM.shadow.narrow.xl} ${FM}`},"2xl":{[ZM.shadowColor]:"#00000050",[QM.boxShadow]:`${YM.shadow.wide["2xl"]} ${FM}`}},borderRadius:{sm:{[QM.borderRadius]:YM.radius.sm},md:{[QM.borderRadius]:YM.radius.md},lg:{[QM.borderRadius]:YM.radius.lg},xl:{[QM.borderRadius]:YM.radius.xl},"2xl":{[QM.borderRadius]:YM.radius["2xl"]},"3xl":{[QM.borderRadius]:YM.radius["3xl"]}},iconPosition:{left:{[QM.headerIconOrder]:"0"},right:{[QM.headerIconOrder]:"1"}},_fillTitle:{[QM.textGrow]:"1"},_border:{[QM.borderColor]:YM.colors.surface.light,[QM.borderWidth]:YM.border.xs,[QM.borderStyle]:"solid"},_collapsible:{[QM.headerCursor]:"pointer"}},HM={...QM,...ZM};var JM=Object.freeze({__proto__:null,default:GM,vars:HM});const $M=L("recovery-codes"),qM="none",_M={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},XM=["text","variant","color","size","icon","icon-dark"],KM=["show-download",...Object.keys(_M).flatMap(t=>XM.map(e=>`${t}-${e}`))];class tm extends(It({componentName:$M,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...KM]}#hi=qM;#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}=_M[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!==qM}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&&KM.includes(t)&&this.renderButtons())}}const em=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Li.componentName,property:Li.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)(tm),im=nt(Tp),om=em.cssVarList,nm=Li.cssVarList,rm={[om.hostMinWidth]:"190px",[om.hostDirection]:im.direction,[om.iconColor]:rt(nm.textColor),[om.iconSize]:rt(nm.fontSize),[om.iconGap]:"8px",[om.iconStackGap]:"16px",[om.buttonsGap]:"8px",[om.sectionsGap]:"8px",[om.bulletGap]:"0.35em",[om.verticalPadding]:"0",[om.horizontalPadding]:"0",[om.errorBorderColor]:"transparent",[om.errorBorderWidth]:$p.borderWidth,[om.boxBorderRadius]:$p.borderRadius,[om.boxBorderStyle]:"solid",[om.errorMessageColor]:$p.errorMessageTextColor,[om.errorMessageFontSize]:$p.errorMessageFontSize,[om.errorMessageFontWeight]:$p.errorMessageFontWeight,[om.errorMessageFontFamily]:$p.fontFamily,textAlign:{right:{[om.textAlign]:"flex-end"},left:{[om.textAlign]:"flex-start"},center:{[om.textAlign]:"center"}},_fullWidth:{[om.hostWidth]:"100%"},_invalid:{[om.errorBorderColor]:$p.errorMessageTextColor}};var sm=Object.freeze({__proto__:null,default:rm,vars:om});const am={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTT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ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},lm=L("active-sessions"),dm=og.componentName;let cm;const um={selector:()=>":host"},pm={selector:()=>dm},hm=T(ht({mappings:{hostWidth:[{...um,property:"width"},{...pm,property:og.cssVarList.hostWidth}],hostDirection:[{...um,property:"direction"},{...pm,property:og.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=(cm||(cm=document.createElement("template"),cm.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 ',cm)).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=am[t]||am.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:dm,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${dm} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:lm})),gm=hm.cssVarList,Mm={[gm.hostWidth]:$p.width,[gm.hostDirection]:$p.direction,[gm.overlay.rowGap]:"0.125em",[gm.overlay.deviceRowGap]:"0.5em",_fullWidth:{[gm.hostWidth]:"100%"}};var mm=Object.freeze({__proto__:null,default:Mm,vars:gm});const ym=L("outbound-apps"),bm=({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`},Nm=It({componentName:ym,baseSelector:"descope-list"}),{host:Im}={host:{selector:()=>":host"}},xm=T(ht({mappings:{hostWidth:{...Im,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...Im,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:wo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:wo.cssVarList.fill},fontSize:{selector:Li.componentName,property:Li.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:Li.componentName,property:Li.cssVarList.textAlign},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>gu.componentName,property:gu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>gu.componentName,property:gu.cssVarList.emptyStateVerticalPadding}}}),gt,Rt({itemRenderer:bm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),Mt)(class extends Nm{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=bm,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"}}),jm=xm.cssVarList,Tm={[jm.iconColor]:Tp.colors.primary.main,[jm.errorIconColor]:Tp.colors.error.main,[jm.appLogoGap]:Tp.spacing.md,[jm.contentGap]:Tp.spacing.xs,[jm.itemCursor]:"default",[jm.itemOutline]:"none",[jm.itemBorderColor]:"transparent",[jm.listPadding]:"0",[jm.listBorderWidth]:"0",[jm.listBoxShadow]:"none",[jm.emptyStateMinHeight]:"0",[jm.emptyStateVerticalPadding]:Tp.spacing.lg,size:{xs:{[jm.fontSize]:"0.6em"},sm:{[jm.fontSize]:"0.8em"},md:{[jm.fontSize]:"1em"},lg:{[jm.fontSize]:"1.5em"}}};var Dm=Object.freeze({__proto__:null,default:Tm,vars:jm});const vm=L("outbound-app-button");class zm extends(It({componentName:vm,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 Cm=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Oo.cssVarList.iconColor}}}),gt,Mt)(zm),Sm=Cm.cssVarList,wm={[Sm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Sm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Sm.hostWidth]:"100%"}},Lm=Sm;var Am=Object.freeze({__proto__:null,default:wm,vars:Lm});const fm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Em={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDFIOEM2LjM0IDEgNSAyLjM0IDUgNFYyMEM1IDIxLjY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e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=Em[t]||Em.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},Vm=It({componentName:km,baseSelector:gu.componentName}),{host:Wm}={host:{selector:()=>":host"}},Rm=T(ht({mappings:{hostWidth:{...Wm,property:"width"},hostMinWidth:{...Wm,property:"min-width"},hostDirection:[{...Wm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:gu.cssVarList.gap},listBackgroundColor:{selector:()=>gu.componentName,property:gu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>gu.componentName,property:gu.cssVarList.borderRadius},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>gu.componentName,property:gu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>gu.componentName,property:gu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPadding},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBorderRadius:{selector:uu.componentName,property:uu.cssVarList.borderRadius},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:Cc.componentName,property:Cc.cssVarList.borderColor},badgeTextColor:{selector:Cc.componentName,property:Cc.cssVarList.textColor},badgeBackgroundColor:{selector:Cc.componentName,property:Cc.cssVarList.backgroundColor},badgeBorderRadius:{selector:Cc.componentName,property:Cc.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:Om,sortFn:(t,e)=>fm(e.lastLoginDate)-fm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),Mt)(class extends Vm{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=Om,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")}}),Um=Rm.cssVarList,Ym={[Um.hostWidth]:"auto",[Um.hostWidth]:"300px",[Um.hostMinWidth]:"300px",[Um.listBackgroundColor]:"transparent",[Um.listBorderRadius]:"0",[Um.listBorderWidth]:"0",[Um.listPadding]:"0",[Um.listBoxShadow]:"none",[Um.listItemsGap]:Tp.spacing.lg,[Um.emptyStateMinHeight]:"0",[Um.emptyStateVerticalPadding]:Tp.spacing.lg,[Um.itemBorderColor]:Tp.colors.surface.light,[Um.itemVerticalPadding]:Tp.spacing.lg,[Um.itemHorizontalPadding]:Tp.spacing.lg,[Um.itemBorderRadius]:Tp.radius.xs,[Um.itemOutline]:"transparent",[Um.itemBackgroundColor]:"transparent",[Um.itemCursor]:"default",[Um.itemContentGap]:Tp.spacing.sm,[Um.badgeBorderColor]:Tp.colors.surface.light,[Um.badgeTextColor]:Tp.colors.surface.dark,[Um.badgeBorderRadius]:Tp.radius.xs,[Um.badgeBackgroundColor]:Tp.colors.surface.main,[Um.devicePanelGap]:Tp.spacing.md,[Um.deviceIconGap]:Tp.spacing.md,[Um.deviceIconSize]:"24px",[Um.lastLoginLabelGap]:Tp.spacing.xs,_fullWidth:{[Um.hostWidth]:"100%"}};var Qm=Object.freeze({__proto__:null,default:Ym,vars:Um});const Bm=L("multi-sso"),Pm=({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},Zm=It({componentName:Bm,baseSelector:"span.wrapper"}),{host:Fm}={host:{selector:()=>":host"}},Gm=T(ht({mappings:{hostWidth:{...Fm,property:"width"},hostMinWidth:{...Fm,property:"min-width"},hostDirection:[{...Fm,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:Li.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Oo.componentName,property:Oo.cssVarList.hostMaxWidth},listItemsGap:{property:gu.cssVarList.gap},listBackgroundColor:{selector:()=>gu.componentName,property:gu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>gu.componentName,property:gu.cssVarList.borderRadius},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPadding},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBorderRadius:{selector:uu.componentName,property:uu.cssVarList.borderRadius},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.borderColor},badgeTextColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>Cc.componentName,property:Cc.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:wo.cssVarList.fill},{selector:()=>".external-link-icon",property:wo.cssVarList.fill}]}}),gt,Rt({targetSelector:"descope-list",itemRenderer:Pm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),Mt)(class extends Zm{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)=>Pm(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)}}),Hm=Gm.cssVarList,Jm=nt(Tp),$m={[Hm.hostWidth]:"300px",[Hm.headerGap]:Jm.spacing.md,[Hm.headerListGap]:Jm.spacing.md,[Hm.itemContentGap]:Jm.spacing.md,[Hm.actionGap]:Jm.spacing.sm,[Hm.authTypeRowGap]:Jm.spacing.sm,[Hm.unconfiguredAuthTypeTextColor]:Jm.colors.surface.dark,[Hm.unconfiguredAuthTypeTextFontStyle]:"italic",[Hm.buttonMaxWidth]:"50%",[Hm.listBackgroundColor]:"transparent",[Hm.listBorderRadius]:"0",[Hm.listBorderWidth]:"0",[Hm.listPadding]:"0",[Hm.listBoxShadow]:"none",[Hm.listItemsGap]:Jm.spacing.lg,[Hm.itemBorderColor]:Jm.colors.surface.light,[Hm.itemVerticalPadding]:Jm.spacing.lg,[Hm.itemHorizontalPadding]:Jm.spacing.lg,[Hm.itemBorderRadius]:Jm.radius.xs,[Hm.itemOutline]:"transparent",[Hm.itemBackgroundColor]:"transparent",[Hm.itemCursor]:"default",[Hm.badgeBorderColor]:Jm.colors.surface.light,[Hm.badgeTextColor]:Jm.colors.surface.dark,[Hm.badgeBorderRadius]:Jm.radius.xs,[Hm.badgeBackgroundColor]:Jm.colors.surface.main,[Hm.titleIconSize]:"24px",[Hm.createButtonIconSize]:"12px",[Hm.actionIconSize]:"20px",[Hm.actionIconColor]:Jm.colors.surface.dark,_fullWidth:{[Hm.hostWidth]:"100%"}};var qm=Object.freeze({__proto__:null,default:$m,vars:Hm});const _m=L("tooltip"),Xm=["text","position","hide-delay","hover-delay","opened"];class Km extends(It({componentName:_m,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 Xm.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.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:ty,content:ey}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},iy=T(Mt,Ot({selector:"",mappings:{fontFamily:{...ey,property:Zt.cssVarList.fontFamilyOverride},fontSize:{...ey,property:Zt.cssVarList.fontSizeOverride},fontWeight:{...ey,property:Zt.cssVarList.fontWeightOverride},textColor:{...ey,property:Zt.cssVarList.textColorOverride},hostDirection:{...ey,property:Zt.cssVarList.hostDirectionOverride},backgroundColor:[{...ty},{...ey}],borderColor:{...ty},borderStyle:{...ty},borderWidth:{...ty},borderRadius:{...ty},boxShadow:{...ty},horizontalPadding:[{...ey,property:"padding-left"},{...ey,property:"padding-right"}],verticalPadding:[{...ey,property:"padding-top"},{...ey,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(Km),oy=nt(Tp),ny=iy.cssVarList,[ry,sy,ay]=st({shadowColor:"#00000020"},_m),{shadowColor:ly}=sy,dy=`${oy.shadow.wide.sm} ${ly}, ${oy.shadow.narrow.sm} ${ly}`,cy={...ry,[ny.fontFamily]:oy.fonts.font1.family,[ny.fontSize]:Tp.typography.body2.size,[ny.fontWeight]:Tp.typography.body2.weight,[ny.textColor]:oy.colors.surface.contrast,[ny.hostDirection]:oy.direction,[ny.backgroundColor]:oy.colors.surface.main,[ny.borderColor]:oy.colors.surface.light,[ny.borderStyle]:"solid",[ny.borderWidth]:oy.border.xs,[ny.borderRadius]:oy.radius.xs,[ny.horizontalPadding]:oy.spacing.md,[ny.verticalPadding]:oy.spacing.sm,[ny.boxShadow]:dy,shadow:{sm:{[ny.boxShadow]:dy},md:{[ny.boxShadow]:`${oy.shadow.wide.md} ${ly}, ${oy.shadow.narrow.md} ${ly}`},lg:{[ny.boxShadow]:`${oy.shadow.wide.lg} ${ly}, ${oy.shadow.narrow.lg} ${ly}`},xl:{[ny.boxShadow]:`${oy.shadow.wide.xl} ${ly}, ${oy.shadow.narrow.xl} ${ly}`},"2xl":{[ay.shadowColor]:"#00000050",[ny.boxShadow]:`${oy.shadow.wide["2xl"]} ${ly}`}}};var uy=Object.freeze({__proto__:null,default:cy,vars:ny});const py=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},hy=async t=>py(`${t}/countries.json`),gy=async(t,e)=>{try{return(await py(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},My=async(t,e,i)=>py(`${i}/countries/${t}/subdivisions/${e}/cities.json`),my=async t=>{const e=new URL("../labels.json",`${t}/`).href;return py(e)},yy=async(t,e)=>py(`${e}/countries/${t}/cities.json`),by=L("country-subdivision-city-field-internal"),Ny=Symbol("selecting"),Iy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,xy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",jy=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=Iy({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=xy(e),l=xy(s.join(" ")),d=xy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},Ty=({name:t,state_code:e,translations:i,lang:o})=>{const n=Iy({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=xy(e),a=xy(r.join(" ")),l=xy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},Dy=({name:t,translations:e,lang:i})=>{const o=Iy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=xy(t),s=xy(n.join(" ")),a=xy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},vy=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,zy=Ct({componentName:by,baseSelector:""}),Cy=["disabled","readonly","size","bordered"],Sy=["hide-country","hide-subdivision","hide-city"],wy=[...Cy,"label-type","country-label","subdivision-label","city-label",...Sy,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],Ly=T()(class extends zy{static get observedAttributes(){return[].concat(zy.observedAttributes||[],wy)}#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 ${vy("country-combo")}\n ${vy("subdivision-combo")}\n ${vy("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.#Bi()}get#Pi(){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.#Pi?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(`${by}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#Li.renderItem=jy,this.#Ai.renderItem=Ty,this.#fi.renderItem=Dy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(Sy.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.#Pi&&this.#do()}else"lang"===t?this.#co():"invalid"===t?"true"===i&&this.#uo():"allowed-countries"===t||"pinned-countries"===t?this.#Pi||(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.#Pi&&!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(`${by}-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}})}#Bi(){this.#to.forEach(t=>{f(this,t,{includeAttrs:[...Cy,"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.#Pi&&!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??hy(this.#Hi),s=this.#Ui??my(this.#Hi),a=o&&t?gy(t,this.#Hi):null,l=n&&t?o&&e?My(t,e,this.#Hi):yy(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.#Pi&&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=Ny,setTimeout(()=>{if(this.#Yi===Ny){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!==Ny&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#Li.value),this.#mo())}#Mo(){if(this.#Yi===Ny)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 my(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#Li.setAttribute("loading","true");try{const[t]=await Promise.all([hy(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${by}] 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 gy(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(`[${by}] 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?My(t,e,this.#Hi):yy(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(`[${by}] 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)=>Iy(t,this.#Ji).localeCompare(Iy(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.#Pi),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(`${by}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#Li,"required",this.#Pi?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(`${by}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),Ay=L("country-subdivision-city-field"),fy={selector:()=>":host"},Ey={selector:`${by} > .wrapper`},ky={selector:`${by} > .wrapper > descope-combo-box`},Oy=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...fy,property:"width"},hostDirection:[{...fy,property:"direction"},{...ky,property:jo.cssVarList.hostDirection}],flexDirection:{...Ey,property:"flex-direction"},flexGap:{...Ey,property:"gap"},itemAlignment:{...Ey,property:"align-items"},itemMinWidth:{...ky,property:"min-width"},itemFlexGrow:{...ky,property:"flex-grow"},itemWidth:{...ky,property:jo.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 <${by}\n tabindex="-1"\n ></${by}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(by),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 ${by} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${by} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${by}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:Ay})),Vy=Oy.cssVarList,Wy={[Vy.hostWidth]:$p.width,[Vy.hostDirection]:$p.direction,[Vy.flexDirection]:"column",[Vy.flexGap]:"0.5em",[Vy.itemAlignment]:"stretch",[Vy.itemFlexGrow]:"0",[Vy.itemWidth]:"auto",_fullWidth:{[Vy.hostWidth]:"100%"},_horizontal:{[Vy.flexDirection]:"row",[Vy.itemFlexGrow]:"1"}};var Ry=Object.freeze({__proto__:null,default:Wy,vars:Vy});const Uy=L("attachment"),Yy=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Qy=Yy[0];class By extends(It({componentName:Uy,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");Yy.includes(t)||this.setAttribute("position",Qy)}}const Py={selector:()=>".attachment-container"},Zy=T(ht({mappings:{transform:{...Py},justifyContent:{...Py},maxWidth:{...Py},top:{...Py},bottom:{...Py},left:{...Py},right:{...Py},offsetX:{},offsetY:{}}}),gt,Mt)(By),Fy=Zy.cssVarList,Gy=`calc(8px + var(${Fy.offsetX}))`,Hy={[Fy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[Fy.transform]:"translateY(-50%)",[Fy.justifyContent]:"start",[Fy.left]:Gy,[Fy.top]:rt(Fy.offsetY)},"top-center":{[Fy.transform]:"translate(-50%, -50%)",[Fy.justifyContent]:"center",[Fy.top]:rt(Fy.offsetY),[Fy.left]:"50%"},"top-end":{[Fy.transform]:"translateY(-50%)",[Fy.justifyContent]:"end",[Fy.right]:Gy,[Fy.top]:rt(Fy.offsetY)},"bottom-start":{[Fy.transform]:"translateY(50%)",[Fy.justifyContent]:"start",[Fy.left]:Gy,[Fy.bottom]:rt(Fy.offsetY)},"bottom-center":{[Fy.bottom]:rt(Fy.offsetY),[Fy.transform]:"translate(-50%, 50%)",[Fy.justifyContent]:"center",[Fy.left]:"50%"},"bottom-end":{[Fy.transform]:"translateY(50%)",[Fy.justifyContent]:"end",[Fy.right]:Gy,[Fy.bottom]:rt(Fy.offsetY)}}};var Jy=Object.freeze({__proto__:null,default:Hy}),$y="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",qy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSA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em0tMTEtMmMtMS42NSAwLTMtMS4zNS0zLTNzMS4zNS0zIDMtMyAzIDEuMzUgMyAzLTEuMzUgMy0zIDN6bTAtNGMtLjU1IDAtMSAuNDUtMSAxcy40NSAxIDEgMSAxLS40NSAxLTEtLjQ1LTEtMS0xeiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},phone:{light:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iIzYzNmM3NCIvPjwvc3ZnPg==",dark:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:qy,dark:$y}},Ky=L("user-passkeys"),tb=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=Xy[t]||Xy.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},eb=It({componentName:Ky,baseSelector:gu.componentName}),{host:ib,methodIconSlotted:ob,addIconSlotted:nb}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},rb=T(ht({mappings:{hostWidth:{...ib,property:"width"},hostMinWidth:{...ib,property:"min-width"},hostDirection:[{...ib,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"},{selector:()=>"descope-link",property:Yi.cssVarList.hostDirection}],headerGap:{selector:()=>".method",property:"gap"},listGap:{selector:()=>"descope-list",property:"margin-top"},listItemsGap:{property:gu.cssVarList.gap},listBackgroundColor:{selector:()=>gu.componentName,property:gu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>gu.componentName,property:gu.cssVarList.borderRadius},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPadding},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBorderRadius:{selector:uu.componentName,property:uu.cssVarList.borderRadius},itemBackgroundColor:{selector:uu.componentName,property:uu.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:()=>Oo.componentName,property:Oo.cssVarList.iconColor},iconSize:[{...ob,property:"height"},{...nb,property:"height"}]}}),gt,Rt({itemRenderer:tb,sortFn:(t,e)=>_y(e.createdAt)-_y(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),Mt)(class extends eb{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=tb,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))}}),sb=rb.cssVarList,ab={[sb.hostWidth]:"auto",[sb.hostWidth]:"300px",[sb.hostMinWidth]:"300px",[sb.headerGap]:Tp.spacing.lg,[sb.listGap]:Tp.spacing.xl,[sb.listBackgroundColor]:"transparent",[sb.listBorderRadius]:"0",[sb.listBorderWidth]:"0",[sb.listPadding]:"0",[sb.listBoxShadow]:"none",[sb.listItemsGap]:Tp.spacing.lg,[sb.itemBorderColor]:Tp.colors.surface.light,[sb.itemVerticalPadding]:Tp.spacing.lg,[sb.itemHorizontalPadding]:Tp.spacing.lg,[sb.itemBorderRadius]:Tp.radius.xs,[sb.itemOutline]:"transparent",[sb.itemBackgroundColor]:"transparent",[sb.itemCursor]:"default",[sb.itemContentGap]:Tp.spacing.sm,[sb.itemPanelGap]:Tp.spacing.md,[sb.itemIconGap]:Tp.spacing.md,[sb.itemIconSize]:"24px",[sb.addButtonGap]:Tp.spacing.sm,[sb.dateGap]:Tp.spacing.xs,[sb.removeButtonGap]:Tp.spacing.sm,[sb.iconSize]:"1.5em",[sb.iconColor]:"currentcolor",_fullWidth:{[sb.hostWidth]:"100%"}};var lb=Object.freeze({__proto__:null,default:ab,vars:sb});const db=nt(Tp),cb=Xn.cssVarList,ub={[cb.hostWidth]:$p.width,[cb.hostMinWidth]:$p.minWidth,[cb.hostDirection]:$p.direction,[cb.fontSize]:$p.fontSize,[cb.fontFamily]:$p.fontFamily,[cb.labelFontSize]:$p.labelFontSize,[cb.labelFontWeight]:$p.labelFontWeight,[cb.inputValueFontWeight]:$p.inputValueFontWeight,[cb.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[cb.helperTextFontWeight]:$p.helperTextFontWeight,[cb.errorMessageFontWeight]:$p.errorMessageFontWeight,[cb.labelTextColor]:$p.labelTextColor,[cb.labelRequiredIndicator]:$p.requiredIndicator,[cb.errorMessageTextColor]:$p.errorMessageTextColor,[cb.inputValueTextColor]:$p.valueTextColor,[cb.inputPlaceholderColor]:$p.placeholderTextColor,[cb.inputBorderWidth]:$p.borderWidth,[cb.inputBorderStyle]:$p.borderStyle,[cb.inputBorderColor]:$p.borderColor,[cb.inputBorderRadius]:$p.borderRadius,[cb.inputOutlineWidth]:$p.outlineWidth,[cb.inputOutlineStyle]:$p.outlineStyle,[cb.inputOutlineColor]:$p.outlineColor,[cb.inputOutlineOffset]:$p.outlineOffset,[cb.inputBackgroundColor]:$p.backgroundColor,[cb.inputHeight]:$p.inputHeight,[cb.inputHorizontalPadding]:$p.horizontalPadding,[cb.helperTextColor]:$p.helperTextColor,[cb.textAlign]:$p.textAlign,textAlign:{right:{[cb.inputTextAlign]:"right"},left:{[cb.inputTextAlign]:"left"},center:{[cb.inputTextAlign]:"center"}},[cb.labelPosition]:$p.labelPosition,[cb.labelTopPosition]:$p.labelTopPosition,[cb.labelHorizontalPosition]:$p.labelHorizontalPosition,[cb.inputTransformY]:$p.inputTransformY,[cb.inputTransition]:$p.inputTransition,[cb.marginInlineStart]:$p.marginInlineStart,[cb.placeholderOpacity]:$p.placeholderOpacity,[cb.inputVerticalAlignment]:$p.inputVerticalAlignment,[cb.valueInputHeight]:$p.valueInputHeight,[cb.valueInputMarginBottom]:$p.valueInputMarginBottom,[cb.inputIconOffset]:db.spacing.md,[cb.inputIconSize]:$p.inputIconSize,[cb.inputIconColor]:$p.placeholderTextColor,[cb.errorMessageIcon]:$p.errorMessageIcon,[cb.errorMessageIconSize]:$p.errorMessageIconSize,[cb.errorMessageIconPadding]:$p.errorMessageIconPadding,[cb.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[cb.errorMessageIconPosition]:$p.errorMessageIconPosition,[cb.errorMessageFontSize]:$p.errorMessageFontSize,[cb.inputTextSecurity]:$p.inputTextSecurity};var pb=Object.freeze({__proto__:null,default:ub,textField:ub,vars:cb});class hb{#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 gb=["MM/DD","DD/MM"],Mb=gb[0],mb="/",yb=[31,29,31,30,31,30,31,31,30,31,30,31],bb={id:"month",min:1,max:12,placeholder:"MM"},Nb={id:"day",min:1,max:31,placeholder:"DD"},Ib={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},xb=t=>{const e=(t=>`^${t.split(mb).map(t=>Ib[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(mb);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}}},jb=Object.fromEntries(gb.map(t=>[t,xb(t)])),Tb=(t,e)=>{const i=t?.trim?.();return i?jb[e]?.getParts(i)??null:null},Db=L("month-day-field"),vb=Ct({componentName:Db,baseSelector:"vaadin-popover"}),zb=["format","opened","initial-value","readonly","disable-picker"],Cb=["picker-months","picker-label-submit","picker-label-cancel"],Sb=[...zb,...Cb],wb=Xn.cssVarList,{host:Lb,input:Ab,inputEleRTL:fb,toggleButton:Eb,overlay:kb,backdrop:Ob,bottomNav:Vb,navButton:Wb}={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"}},Rb=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{iconMargin:{...Eb,property:"margin-inline-end"},hostWidth:{...Lb,property:"width"},hostDirection:{...Lb,property:"direction"},textAlign:{...Ab,property:"text-align"},rtlInputDirection:{...fb,property:wb.inputDirection},rtlInputAlignment:{...fb,property:wb.inputTextAlign},overlayGap:{property:()=>Rb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Rb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Rb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Rb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Rb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Rb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Rb.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontSize},labelFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.labelFontWeight},inputValueFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontWeight}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...kb,property:"margin-top"},backgroundColor:{...kb},backdropBackgroundColor:{...Ob,property:"background-color"},backdropPointerEvents:{...Ob,property:"pointer-events"},padding:{...kb},boxShadow:{...kb},outlineWidth:{...kb},outlineColor:{...kb},outlineStyle:{...kb},bottomNavTopPadding:{...Vb,property:"padding-top"},bottomNavBottomPadding:{...Vb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...Vb,property:"padding-left"},{...Vb,property:"padding-right"}],bottomNavAlignment:{...Vb,property:"justify-content"},bottomNavGap:{...Vb,property:"gap"},navButtonPadding:[{...Wb,property:Oo.cssVarList.horizontalPadding},{...Wb,property:Oo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Wb,property:Oo.cssVarList.outlineWidth}}}),gt,Mt)(class extends vb{format=Mb;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#lt()};#Vo=[new hb(bb,this.#ko.bind(this)),new hb(Nb,this.#ko.bind(this))];static get observedAttributes(){return[].concat(vb.observedAttributes||[],Sb)}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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3IDEwLjc4NiA2Ljc3NDA0IDExIDYuNDk1MzIgMTFINS41MDQ2OEM1LjIxNDA0IDExIDUgMTAuNzc0IDUgMTAuNDk1M1Y5LjUwNDY4QzUgOS4yMTQwNCA1LjIyNTk1IDkgNS41MDQ2OCA5Wk04LjUwNDY4IDlIOS40OTUzMkM5Ljc4NTk2IDkgMTAgOS4yMjU5NiAxMCA5Lj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xNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+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===bb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===Nb.id)}get sortedCounters(){return this.format.split(mb).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(mb)}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?Tb(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=yb[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.#Bo.bind(this)),this.inputElement.addEventListener("blur",this.#Po.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)}#Bo(){this.isReadOnly||setTimeout(()=>this.#mn())}#Po(){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(jb).includes(t)&&(this.format=t,this.#Ro(),this.updateCountersDisplay())}#Ro(){const t=this.getAttribute("format")||this.format||Mb,e=jb[t]?t:Mb;this.format=e,this.setAttribute("pattern",jb[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=Tb(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),zb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():Cb.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),Ub=nt(Tp),Yb="#00000020",{shadow:Qb}=Ub,Bb=Rb.cssVarList,Pb={[Bb.hostWidth]:$p.width,[Bb.hostDirection]:$p.direction,[Bb.iconMargin]:"0.375em",[Bb.overlay.marginTop]:$p.outlineWidth,[Bb.overlay.backgroundColor]:$p.backgroundColor,[Bb.overlay.backdropBackgroundColor]:"transparent",[Bb.overlay.backdropPointerEvents]:"all",[Bb.overlay.boxShadow]:`${Qb.wide.xl} ${Yb}, ${Qb.narrow.xl} ${Yb}`,[Bb.overlay.outlineWidth]:"0",[Bb.overlay.outlineColor]:"transparent",[Bb.overlay.outlineStyle]:"none",[Bb.overlay.padding]:"0",[Bb.overlay.bottomNavTopPadding]:"0",[Bb.overlay.bottomNavBottomPadding]:"0.75em",[Bb.overlay.bottomNavHorizontalPadding]:"1em",[Bb.overlay.bottomNavAlignment]:"space-between",[Bb.overlay.bottomNavGap]:"0.5em",[Bb.overlay.navButtonPadding]:"0",[Bb.overlay.navButtonOutlineWidth]:"0",[Bb.rtlInputDirection]:"ltr",[Bb.rtlInputAlignment]:"right",[Bb.errorMessageIcon]:$p.errorMessageIcon,[Bb.errorMessageIconSize]:$p.errorMessageIconSize,[Bb.errorMessageIconPadding]:$p.errorMessageIconPadding,[Bb.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[Bb.errorMessageIconPosition]:$p.errorMessageIconPosition,[Bb.errorMessageFontSize]:$p.errorMessageFontSize,[Bb.labelFontWeight]:$p.labelFontWeight,[Bb.inputValueFontWeight]:$p.inputValueFontWeight,[Bb.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[Bb.helperTextFontWeight]:$p.helperTextFontWeight,[Bb.errorMessageFontWeight]:$p.errorMessageFontWeight};var Zb=Object.freeze({__proto__:null,default:Pb,vars:Bb});const Fb=[31,29,31,30,31,30,31,31,30,31,30,31],Gb=["January","February","March","April","May","June","July","August","September","October","November","December"],Hb=L("month-day-field-picker"),Jb=["initial-value","picker-months","st-host-direction","disabled","full-width"],$b=Ct({componentName:Hb,baseSelector:"div"}),qb=(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:_b,monthInput:Xb,dayInput:Kb,inputsRow:tN}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},eN=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{..._b,property:"padding"},inputsRowGap:{...tN,property:"gap"},inputWidth:[{...Xb,property:"width"},{...Kb,property:"width"}]}}),gt,Mt)(class extends $b{static get observedAttributes(){return[].concat($b.observedAttributes||[],Jb)}#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>Fb[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>Fb[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:Gb})(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(){qb(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=Fb[this.#Nn-1]??0;qb((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{}}}),iN=eN.cssVarList,oN={[iN.fontFamily]:$p.fontFamily,[iN.fontSize]:$p.fontSize,[iN.hostDirection]:$p.direction,[iN.inputWidth]:"130px",[iN.pickerPadding]:"1em 1em",[iN.inputsRowGap]:"0.5em",_fullWidth:{[iN.hostWidth]:"100%"}};var nN=Object.freeze({__proto__:null,default:oN,vars:iN});const rN={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}},sN=Object.keys(rN).map(t=>`data-operator-label-${t}`),aN={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"]},lN=(t,e)=>({id:t,...e[t]||{}}),dN=(t,e,i,o=rN)=>{const n=((i||aN)[t]||[]).map(t=>lN(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)||lN(e,o),...i}}):n},cN=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,rN[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},uN=(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))},pN=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):[]},hN=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var gN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const MN=L("filter-row"),mN=["text","number","email"],yN=["boolean","singleselect"],bN=t=>!t||mN.includes(t),NN=t=>yN.includes(t),IN=t=>"multiselect"===t,xN=()=>new Promise(t=>setTimeout(t)),{host:jN}={host:{selector:()=>":host"}},TN=T(ht({mappings:{hostWidth:{...jN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...jN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>jo.componentName,property:jo.cssVarList.hostDirection},{selector:()=>og.componentName,property:og.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>jo.componentName,property:jo.cssVarList.hostWidth},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostWidth},{selector:()=>og.componentName,property:og.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Oo.componentName}.delete-btn[disabled="true"]`,property:Oo.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",...sN]}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="${gN}" src-dark="${gN}"></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.#Bn("delete")),this.#Bi()}#Bi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Rn].forEach(t=>f(this,t,{includeAttrs:["size","disabled"]})),this.#Pn(),t.forEach(t=>f(this,t,{includeAttrs:["label-type"]}))}#Pn(){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?dN(t.inputType,t.operators,hN(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),bN(o)?this.#Kn(o,n):NN(o)?this.#tr(t,n):IN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!bN(t)),this.#Vn.classList.toggle("hidden",!NN(t)),this.#Wn.classList.toggle("hidden",!IN(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 IN(t)?this.#Wn:NN(t)?this.#Vn:bN(t)?this.#On:null}#or(t){const e=this.#ir(t.inputType);return e?e.value??(IN(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}}#Bn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#v(){this.#Bn("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 xN(),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 xN(),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 xN(),this.#sr(e,t.value))}finally{this.#fn=!1}}}#sr(t,e){const i=t.inputType,o=this.#ir(i);o&&(IN(i)?this.#Zn(o,Array.isArray(e)?e:[]):NN(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:MN,baseSelector:".row"})),DN=L("filter-rows"),{host:vN,container:zN,rowsList:CN,actions:SN,addRowIcon:wN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},LN=T(ht({mappings:{hostWidth:{...vN,property:"width"},hostMinWidth:{...vN,property:"min-width"},hostDirection:[{...vN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>TN.componentName,property:TN.cssVarList.hostDirection}],containerWidth:{...zN,property:"width"},containerPadding:{...zN,property:"padding"},containerGap:{...zN,property:"gap"},listGap:{...CN,property:"gap"},listMaxHeight:{...CN,property:"max-height"},actionsGap:{...SN,property:"gap"},addRowIconSize:[{...wN,property:"width"},{...wN,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=hN(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(MN).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(MN).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${MN}[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(MN);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",...sN]}),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(MN).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.#Bn("clear")}#vr(t){const e=t.target.closest(MN);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(MN);if(!e)return;const i=e.dataset.rowId;this.#ze=this.#ze.filter(t=>t.id!==i),this.#Sr(),this.#fe(),this.#v()}#Bn(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&&dN(i.inputType,i.operators,hN(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(cN).map(t),i=this.#ze.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Bn("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:DN,baseSelector:".container"})),AN=L("filter"),fN=It({componentName:AN,baseSelector:"vaadin-popover"}),EN=["add-row-icon","delete-row-icon"],{host:kN,overlay:ON,backdrop:VN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},WN=T(ht({mappings:{hostWidth:{...kN,property:"width"},hostDirection:[{...kN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>LN.componentName,property:LN.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>Cc.componentName,property:Cc.cssVarList.borderRadius},counterWidth:{selector:()=>Cc.componentName,property:Cc.cssVarList.hostWidth},counterHeight:{selector:()=>Cc.componentName,property:Cc.cssVarList.hostHeight},counterFontSize:{selector:()=>Cc.componentName,property:Cc.cssVarList.fontSize},counterLineHeight:{selector:()=>Cc.componentName,property:Cc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.backgroundColor},counterTextColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.textColor},counterBorderColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.borderColor},counterOffsetX:{selector:()=>Zy.componentName,property:Zy.cssVarList.offsetX},counterOffsetY:{selector:()=>Zy.componentName,property:Zy.cssVarList.offsetY},rowsHostWidth:{selector:()=>LN.componentName,property:LN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>LN.componentName,property:LN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>LN.componentName,property:LN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>LN.componentName,property:LN.cssVarList.containerGap},rowsListGap:{selector:()=>LN.componentName,property:LN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>LN.componentName,property:LN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>LN.componentName,property:LN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>LN.componentName,property:LN.cssVarList.addRowIconSize},rowWidth:{...kN,property:TN.cssVarList.hostWidth},rowMinWidth:{...kN,property:TN.cssVarList.hostMinWidth},rowValueWidth:{...kN,property:TN.cssVarList.inputWidth},rowGap:{...kN,property:TN.cssVarList.rowGap},rowDisabledDeleteColor:{...kN,property:TN.cssVarList.deleteDisabledIconColor}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...ON,property:"margin-top"},width:{...ON},backgroundColor:{...ON},backdropBackgroundColor:{...VN,property:"background-color"},backdropPointerEvents:{...VN,property:"pointer-events"},padding:{...ON},boxShadow:{...ON},borderRadius:{...ON},outlineWidth:{...ON},outlineColor:{...ON},outlineStyle:{...ON}}}),gt,Mt)(class extends fN{#Yr=[];#Qr=!1;#ct;#R=null;#Br=null;#Pr=null;static get observedAttributes(){return[...fN.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.#Pr??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Pr}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(DN)||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(){EN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Br?.isConnected&&uN(this,this.#Br,[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(DN);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",...sN],mapAttrs:{operators:"operators-catalog"}}),this.#Hr(e),t.appendChild(e),this.#Br=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.#Br&&uN(this,this.#Br,EN),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)}#Bn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#qr(t){this.#Qr=!0,this.setAttribute("value",JSON.stringify(pN(t))),this.#Qr=!1}#Jr(t){const e=pN(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Yr)&&(this.#qr(e),this.#Bn("filter-apply",{value:this.#Yr,action:"apply"}))}#$r(){this.#qr([]),this.#Bn("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=pN(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())}}),RN=nt(Tp),UN="#00000020",{shadow:YN}=RN,QN=WN.cssVarList,BN={[QN.counterBorderRadius]:"50%",[QN.counterWidth]:"1.5em",[QN.counterHeight]:"1.5em",[QN.counterFontSize]:"0.5em",[QN.counterLineHeight]:"2.25em",[QN.counterBackgroundColor]:RN.colors.primary.main,[QN.counterTextColor]:RN.colors.primary.contrast,[QN.counterOffsetX]:"-0.725em",[QN.counterOffsetY]:"0",_fullWidth:{[QN.hostWidth]:"100%"},[QN.overlay.backgroundColor]:RN.colors.surface.main,[QN.overlay.backdropBackgroundColor]:"transparent",[QN.overlay.backdropPointerEvents]:"all",[QN.overlay.boxShadow]:`${YN.wide.xl} ${UN}, ${YN.narrow.xl} ${UN}`,[QN.overlay.borderRadius]:Tp.radius.xs,[QN.overlay.outlineWidth]:"0",[QN.overlay.outlineColor]:"transparent",[QN.overlay.outlineStyle]:"none",[QN.overlay.padding]:"0",[QN.rowsHostWidth]:"100%",[QN.rowsContainerWidth]:"100%",[QN.rowsContainerPadding]:RN.spacing.lg,[QN.rowsContainerGap]:RN.spacing.md,[QN.rowsListGap]:RN.spacing.sm,[QN.rowsListMaxHeight]:"400px",[QN.rowsActionsGap]:RN.spacing.md,[QN.rowsAddRowIconSize]:"1.25em",[QN.rowWidth]:"100%",[QN.rowMinWidth]:"30em",[QN.rowValueWidth]:"100%",[QN.rowGap]:RN.spacing.md,[QN.rowDisabledDeleteColor]:RN.colors.surface.light};var PN=Object.freeze({__proto__:null,default:BN,vars:QN});const ZN=Ku.cssVarList,FN={[ZN.hostWidth]:$p.width,[ZN.hostMinWidth]:$p.minWidth,[ZN.hostDirection]:$p.direction,[ZN.fontSize]:$p.fontSize,[ZN.fontFamily]:$p.fontFamily,[ZN.labelFontSize]:$p.labelFontSize,[ZN.labelFontWeight]:$p.labelFontWeight,[ZN.inputValueFontWeight]:$p.inputValueFontWeight,[ZN.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[ZN.helperTextFontWeight]:$p.helperTextFontWeight,[ZN.errorMessageFontWeight]:$p.errorMessageFontWeight,[ZN.labelTextColor]:$p.labelTextColor,[ZN.errorMessageTextColor]:$p.errorMessageTextColor,[ZN.inputValueTextColor]:$p.valueTextColor,[ZN.labelRequiredIndicator]:$p.requiredIndicator,[ZN.inputPlaceholderColor]:$p.placeholderTextColor,[ZN.inputBorderWidth]:$p.borderWidth,[ZN.inputBorderStyle]:$p.borderStyle,[ZN.inputBorderColor]:$p.borderColor,[ZN.inputBorderRadius]:$p.borderRadius,[ZN.inputOutlineWidth]:$p.outlineWidth,[ZN.inputOutlineStyle]:$p.outlineStyle,[ZN.inputOutlineColor]:$p.outlineColor,[ZN.inputOutlineOffset]:$p.outlineOffset,[ZN.inputBackgroundColor]:$p.backgroundColor,[ZN.inputHorizontalPadding]:$p.horizontalPadding,[ZN.inputHeight]:$p.inputHeight,[ZN.labelPosition]:$p.labelPosition,[ZN.labelTopPosition]:$p.labelTopPosition,[ZN.labelHorizontalPosition]:$p.labelHorizontalPosition,[ZN.inputTransformY]:$p.inputTransformY,[ZN.inputTransition]:$p.inputTransition,[ZN.marginInlineStart]:$p.marginInlineStart,[ZN.placeholderOpacity]:$p.placeholderOpacity,[ZN.inputVerticalAlignment]:$p.inputVerticalAlignment,[ZN.valueInputHeight]:$p.valueInputHeight,[ZN.valueInputMarginBottom]:$p.valueInputMarginBottom,[ZN.errorMessageIcon]:$p.errorMessageIcon,[ZN.errorMessageIconSize]:$p.errorMessageIconSize,[ZN.errorMessageIconPadding]:$p.errorMessageIconPadding,[ZN.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[ZN.errorMessageIconPosition]:$p.errorMessageIconPosition,[ZN.errorMessageFontSize]:$p.errorMessageFontSize};var GN=Object.freeze({__proto__:null,default:FN,vars:ZN});const HN=L("new-email-internal"),JN=L("new-email"),{host:$N,label:qN,internalInputsWrapper:_N,errorMessage:XN,helperText:KN,emailInput:tI}={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"}},eI=T(ht({mappings:{fontSize:[$N,{},{selector:Ku.componentName,property:Ku.cssVarList.fontSize}],fontFamily:[qN,XN,KN],labelFontSize:{...qN,property:"font-size"},labelFontWeight:{...qN,property:"font-weight"},inputValueFontWeight:{...tI,property:Ku.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...tI,property:Ku.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...KN,property:"font-weight"},errorMessageFontWeight:{...XN,property:"font-weight"},labelTextColor:{...qN,property:"color"},errorMessageTextColor:{...XN,property:"color"},errorMessageIcon:{...XN,property:"background-image"},errorMessageIconSize:{...XN,property:"background-size"},errorMessageIconPadding:{...XN,property:"padding-inline-start"},errorMessageIconRepeat:{...XN,property:"background-repeat"},errorMessageIconPosition:{...XN,property:"background-position"},errorMessageFontSize:{...XN,property:"font-size"},hostWidth:{...$N,property:"width"},hostMinWidth:{...$N,property:"min-width"},hostDirection:[{...$N,property:"direction"},{...tI,property:Ku.cssVarList.hostDirection}],inputsRequiredIndicator:{...$N,property:"content"},spaceBetweenInputs:{..._N,property:"gap"},valueInputHeight:{...tI,property:Ku.cssVarList.valueInputHeight},valueInputMarginBottom:{...tI,property:Ku.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<${HN}\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 </${HN}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(HN),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${$(Ku.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:JN})),iI=eI.cssVarList,oI={[iI.hostWidth]:$p.width,[iI.hostMinWidth]:$p.minWidth,[iI.hostDirection]:$p.direction,[iI.fontSize]:$p.fontSize,[iI.fontFamily]:$p.fontFamily,[iI.labelFontSize]:$p.labelFontSize,[iI.labelFontWeight]:$p.labelFontWeight,[iI.inputValueFontWeight]:$p.inputValueFontWeight,[iI.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[iI.helperTextFontWeight]:$p.helperTextFontWeight,[iI.errorMessageFontWeight]:$p.errorMessageFontWeight,[iI.labelTextColor]:$p.labelTextColor,[iI.spaceBetweenInputs]:"1em",[iI.errorMessageTextColor]:$p.errorMessageTextColor,[iI.valueInputHeight]:$p.valueInputHeight,[iI.valueInputMarginBottom]:$p.valueInputMarginBottom,[iI.errorMessageIcon]:$p.errorMessageIcon,[iI.errorMessageIconSize]:$p.errorMessageIconSize,[iI.errorMessageIconPadding]:$p.errorMessageIconPadding,[iI.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[iI.errorMessageIconPosition]:$p.errorMessageIconPosition,[iI.errorMessageFontSize]:$p.errorMessageFontSize,_required:{[iI.inputsRequiredIndicator]:$p.requiredIndicator}};var nI=Object.freeze({__proto__:null,default:oI,vars:iI});const rI=ee("input-wrapper"),sI=Se(bp),[aI,lI,dI]=We({labelTextColor:sI.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:sI.colors.surface.contrast,placeholderTextColor:sI.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:sI.colors.surface.dark,errorMessageTextColor:sI.colors.error.main,successMessageTextColor:sI.colors.success.main,borderWidth:sI.border.xs,borderRadius:sI.radius.xs,borderColor:"transparent",outlineWidth:sI.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:sI.colors.surface.main,fontFamily:sI.fonts.font1.family,direction:sI.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:sI.border.xs,borderColor:sI.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:sI.colors.error.main}},_focused:{outlineColor:sI.colors.surface.light,_invalid:{outlineColor:sI.colors.error.main}},_disabled:{labelTextColor:sI.colors.surface.light,borderColor:sI.colors.surface.light,valueTextColor:sI.colors.surface.light,placeholderTextColor:sI.colors.surface.light,helperTextColor:sI.colors.surface.light,backgroundColor:sI.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},rI);var cI=Object.freeze({__proto__:null,default:aI,refs:lI,vars:dI});const uI=Se(bp),pI=ds.cssVarList,hI={[pI.hostWidth]:lI.width,[pI.hostMinWidth]:lI.minWidth,[pI.hostDirection]:lI.direction,[pI.fontSize]:lI.fontSize,[pI.fontFamily]:lI.fontFamily,[pI.labelFontSize]:lI.labelFontSize,[pI.labelFontWeight]:lI.labelFontWeight,[pI.inputValueFontWeight]:lI.inputValueFontWeight,[pI.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[pI.helperTextFontWeight]:lI.helperTextFontWeight,[pI.errorMessageFontWeight]:lI.errorMessageFontWeight,[pI.labelTextColor]:lI.labelTextColor,[pI.errorMessageTextColor]:lI.errorMessageTextColor,[pI.inputHorizontalPadding]:lI.horizontalPadding,[pI.inputHeight]:lI.inputHeight,[pI.inputBackgroundColor]:lI.backgroundColor,[pI.labelRequiredIndicator]:lI.requiredIndicator,[pI.inputValueTextColor]:lI.valueTextColor,[pI.inputPlaceholderTextColor]:lI.placeholderTextColor,[pI.inputBorderWidth]:lI.borderWidth,[pI.inputBorderStyle]:lI.borderStyle,[pI.inputBorderColor]:lI.borderColor,[pI.inputBorderRadius]:lI.borderRadius,[pI.inputOutlineWidth]:lI.outlineWidth,[pI.inputOutlineStyle]:lI.outlineStyle,[pI.inputOutlineColor]:lI.outlineColor,[pI.inputOutlineOffset]:lI.outlineOffset,[pI.revealButtonOffset]:uI.spacing.md,[pI.revealButtonSize]:lI.toggleButtonSize,[pI.revealButtonColor]:lI.placeholderTextColor,[pI.labelPosition]:lI.labelPosition,[pI.labelTopPosition]:lI.labelTopPosition,[pI.labelHorizontalPosition]:lI.labelHorizontalPosition,[pI.inputTransformY]:lI.inputTransformY,[pI.inputTransition]:lI.inputTransition,[pI.marginInlineStart]:lI.marginInlineStart,[pI.placeholderOpacity]:lI.placeholderOpacity,[pI.inputVerticalAlignment]:lI.inputVerticalAlignment,[pI.valueInputHeight]:lI.valueInputHeight,[pI.errorMessageIcon]:lI.errorMessageIcon,[pI.errorMessageIconSize]:lI.errorMessageIconSize,[pI.errorMessageIconPadding]:lI.errorMessageIconPadding,[pI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[pI.errorMessageIconPosition]:lI.errorMessageIconPosition,[pI.errorMessageFontSize]:lI.errorMessageFontSize};var gI=Object.freeze({__proto__:null,default:hI,vars:pI});const MI=wr.cssVarList,mI={[MI.hostWidth]:lI.width,[MI.hostMinWidth]:lI.minWidth,[MI.hostDirection]:lI.direction,[MI.fontSize]:lI.fontSize,[MI.fontFamily]:lI.fontFamily,[MI.labelFontSize]:lI.labelFontSize,[MI.labelFontWeight]:lI.labelFontWeight,[MI.inputValueFontWeight]:lI.inputValueFontWeight,[MI.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[MI.helperTextFontWeight]:lI.helperTextFontWeight,[MI.errorMessageFontWeight]:lI.errorMessageFontWeight,[MI.labelTextColor]:lI.labelTextColor,[MI.errorMessageTextColor]:lI.errorMessageTextColor,[MI.inputValueTextColor]:lI.valueTextColor,[MI.inputPlaceholderColor]:lI.placeholderTextColor,[MI.inputBorderWidth]:lI.borderWidth,[MI.inputBorderStyle]:lI.borderStyle,[MI.inputBorderColor]:lI.borderColor,[MI.inputBorderRadius]:lI.borderRadius,[MI.inputOutlineWidth]:lI.outlineWidth,[MI.inputOutlineStyle]:lI.outlineStyle,[MI.inputOutlineColor]:lI.outlineColor,[MI.inputOutlineOffset]:lI.outlineOffset,[MI.inputBackgroundColor]:lI.backgroundColor,[MI.labelRequiredIndicator]:lI.requiredIndicator,[MI.inputHorizontalPadding]:lI.horizontalPadding,[MI.inputHeight]:lI.inputHeight,[MI.labelPosition]:lI.labelPosition,[MI.labelTopPosition]:lI.labelTopPosition,[MI.labelHorizontalPosition]:lI.labelHorizontalPosition,[MI.inputTransformY]:lI.inputTransformY,[MI.inputTransition]:lI.inputTransition,[MI.marginInlineStart]:lI.marginInlineStart,[MI.placeholderOpacity]:lI.placeholderOpacity,[MI.inputVerticalAlignment]:lI.inputVerticalAlignment,[MI.valueInputHeight]:lI.valueInputHeight,[MI.valueInputMarginBottom]:lI.valueInputMarginBottom,[MI.errorMessageIcon]:lI.errorMessageIcon,[MI.errorMessageIconSize]:lI.errorMessageIconSize,[MI.errorMessageIconPadding]:lI.errorMessageIconPadding,[MI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[MI.errorMessageIconPosition]:lI.errorMessageIconPosition,[MI.errorMessageFontSize]:lI.errorMessageFontSize};var yI=Object.freeze({__proto__:null,default:mI,vars:MI});const bI=Ns.cssVarList,NI={[bI.hostWidth]:lI.width,[bI.hostMinWidth]:lI.minWidth,[bI.hostDirection]:lI.direction,[bI.fontSize]:lI.fontSize,[bI.fontFamily]:lI.fontFamily,[bI.labelFontSize]:lI.labelFontSize,[bI.labelFontWeight]:lI.labelFontWeight,[bI.inputValueFontWeight]:lI.inputValueFontWeight,[bI.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[bI.helperTextFontWeight]:lI.helperTextFontWeight,[bI.errorMessageFontWeight]:lI.errorMessageFontWeight,[bI.labelTextColor]:lI.labelTextColor,[bI.labelRequiredIndicator]:lI.requiredIndicator,[bI.errorMessageTextColor]:lI.errorMessageTextColor,[bI.inputBackgroundColor]:lI.backgroundColor,[bI.inputValueTextColor]:lI.valueTextColor,[bI.inputPlaceholderTextColor]:lI.placeholderTextColor,[bI.inputBorderRadius]:lI.borderRadius,[bI.inputBorderWidth]:lI.borderWidth,[bI.inputBorderStyle]:lI.borderStyle,[bI.inputBorderColor]:lI.borderColor,[bI.inputOutlineWidth]:lI.outlineWidth,[bI.inputOutlineStyle]:lI.outlineStyle,[bI.inputOutlineColor]:lI.outlineColor,[bI.inputOutlineOffset]:lI.outlineOffset,[bI.inputResizeType]:"vertical",[bI.inputMinHeight]:"5em",[bI.errorMessageIcon]:lI.errorMessageIcon,[bI.errorMessageIconSize]:lI.errorMessageIconSize,[bI.errorMessageIconPadding]:lI.errorMessageIconPadding,[bI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[bI.errorMessageIconPosition]:lI.errorMessageIconPosition,[bI.errorMessageFontSize]:lI.errorMessageFontSize,textAlign:{right:{[bI.inputTextAlign]:"right"},left:{[bI.inputTextAlign]:"left"},center:{[bI.inputTextAlign]:"center"}},_readonly:{[bI.inputResizeType]:"none"}};var II=Object.freeze({__proto__:null,default:NI,vars:bI});const xI=zi.cssVarList,jI="1.35em",TI={[xI.hostWidth]:lI.width,[xI.hostDirection]:lI.direction,[xI.fontSize]:lI.fontSize,[xI.fontFamily]:lI.fontFamily,[xI.labelTextColor]:lI.labelTextColor,[xI.labelRequiredIndicator]:lI.requiredIndicator,[xI.labelFontWeight]:"400",[xI.labelLineHeight]:jI,[xI.labelSpacing]:"1em",[xI.errorMessageTextColor]:lI.errorMessageTextColor,[xI.inputOutlineWidth]:lI.outlineWidth,[xI.inputOutlineOffset]:lI.outlineOffset,[xI.inputOutlineColor]:lI.outlineColor,[xI.inputOutlineStyle]:lI.outlineStyle,[xI.inputBorderRadius]:lI.borderRadius,[xI.inputBorderColor]:lI.borderColor,[xI.inputBorderWidth]:lI.borderWidth,[xI.inputBorderStyle]:lI.borderStyle,[xI.inputBackgroundColor]:lI.backgroundColor,[xI.inputSize]:jI,[xI.inputValueTextColor]:lI.valueTextColor,[xI.errorMessageIcon]:lI.errorMessageIcon,[xI.errorMessageIconSize]:lI.errorMessageIconSize,[xI.errorMessageIconPadding]:lI.errorMessageIconPadding,[xI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[xI.errorMessageIconPosition]:lI.errorMessageIconPosition,[xI.errorMessageFontSize]:lI.errorMessageFontSize};var DI=Object.freeze({__proto__:null,default:TI,vars:xI});const vI="2px",zI=Se(bp),CI=qi.cssVarList,SI={[CI.hostWidth]:lI.width,[CI.hostDirection]:lI.direction,[CI.fontSize]:lI.fontSize,[CI.fontFamily]:lI.fontFamily,[CI.inputOutlineWidth]:lI.outlineWidth,[CI.inputOutlineOffset]:lI.outlineOffset,[CI.inputOutlineColor]:lI.outlineColor,[CI.inputOutlineStyle]:lI.outlineStyle,[CI.trackBorderStyle]:lI.borderStyle,[CI.trackBorderWidth]:lI.borderWidth,[CI.trackBorderColor]:lI.borderColor,[CI.trackBackgroundColor]:lI.backgroundColor,[CI.trackBorderRadius]:zI.radius.md,[CI.trackWidth]:"2.5em",[CI.trackHeight]:"1.25em",[CI.knobSize]:`calc(1em - ${vI})`,[CI.knobRadius]:"50%",[CI.knobTopOffset]:"1px",[CI.knobLeftOffset]:vI,[CI.knobColor]:lI.labelTextColor,[CI.knobTransitionDuration]:"0.3s",[CI.labelTextColor]:lI.labelTextColor,[CI.labelFontWeight]:"400",[CI.labelLineHeight]:"1.35em",[CI.labelSpacing]:"1em",[CI.labelRequiredIndicator]:lI.requiredIndicator,[CI.errorMessageTextColor]:lI.errorMessageTextColor,[CI.errorMessageIcon]:lI.errorMessageIcon,[CI.errorMessageIconSize]:lI.errorMessageIconSize,[CI.errorMessageIconPadding]:lI.errorMessageIconPadding,[CI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[CI.errorMessageIconPosition]:lI.errorMessageIconPosition,[CI.errorMessageFontSize]:lI.errorMessageFontSize,_checked:{[CI.trackBorderColor]:lI.borderColor,[CI.knobLeftOffset]:`calc(100% - var(${CI.knobSize}) - ${vI})`,[CI.knobColor]:lI.valueTextColor,[CI.knobTextColor]:lI.valueTextColor},_disabled:{[CI.knobColor]:zI.colors.surface.light,[CI.trackBorderColor]:zI.colors.surface.light,[CI.trackBackgroundColor]:zI.colors.surface.main,[CI.labelTextColor]:lI.labelTextColor,_checked:{[CI.knobColor]:zI.colors.surface.light,[CI.trackBackgroundColor]:zI.colors.surface.main}},_invalid:{[CI.trackBorderColor]:zI.colors.error.main,[CI.knobColor]:zI.colors.error.main}};var wI=Object.freeze({__proto__:null,default:SI,vars:CI});const LI=Se(bp),AI=ao.cssVarList,[fI,EI,kI]=We({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},ro),{shadowColor:OI}=EI,VI={...fI,[AI.itemsGrow]:"0",[AI.hostWidth]:"100%",[AI.hostHeight]:"auto",[AI.boxShadow]:"none",[AI.backgroundColor]:LI.colors.surface.main,[AI.backgroundImage]:"",[AI.backgroundPositionX]:"center",[AI.backgroundPositionY]:"center",[AI.backgroundSize]:"cover",[AI.backgroundRepeat]:"no-repeat",[AI.color]:LI.colors.surface.contrast,[AI.borderRadius]:"0px",[AI.hostDirection]:LI.direction,[AI.borderStyle]:"none",[AI.borderWidth]:"unset",[AI.borderColor]:"unset",verticalPadding:{sm:{[AI.verticalPadding]:"5px"},md:{[AI.verticalPadding]:"10px"},lg:{[AI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[AI.horizontalPadding]:"5px"},md:{[AI.horizontalPadding]:"10px"},lg:{[AI.horizontalPadding]:"20px"}},direction:{row:{[AI.flexDirection]:"row",[AI.alignItems]:EI.verticalAlignment,[AI.justifyContent]:EI.horizontalAlignment,[AI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[kI.horizontalAlignment]:"space-between"}}},column:{[AI.flexDirection]:"column",[AI.alignItems]:EI.horizontalAlignment,[AI.justifyContent]:EI.verticalAlignment,verticalAlignment:{spaceBetween:{[kI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[AI.gap]:"10px"},md:{[AI.gap]:"20px"},lg:{[AI.gap]:"30px"}},shadow:{sm:{[AI.boxShadow]:`${LI.shadow.wide.sm} ${OI}, ${LI.shadow.narrow.sm} ${OI}`},md:{[AI.boxShadow]:`${LI.shadow.wide.md} ${OI}, ${LI.shadow.narrow.md} ${OI}`},lg:{[AI.boxShadow]:`${LI.shadow.wide.lg} ${OI}, ${LI.shadow.narrow.lg} ${OI}`},xl:{[AI.boxShadow]:`${LI.shadow.wide.xl} ${OI}, ${LI.shadow.narrow.xl} ${OI}`},"2xl":{[kI.shadowColor]:"#00000050",[AI.boxShadow]:`${LI.shadow.wide["2xl"]} ${OI}`}},"&borderRadius":{sm:{[AI.borderRadius]:LI.radius.sm},md:{[AI.borderRadius]:LI.radius.md},lg:{[AI.borderRadius]:LI.radius.lg},xl:{[AI.borderRadius]:LI.radius.xl},"2xl":{[AI.borderRadius]:LI.radius["2xl"]},"3xl":{[AI.borderRadius]:LI.radius["3xl"]}}},WI={...AI,...kI};var RI=Object.freeze({__proto__:null,default:VI,vars:WI});const UI=Tr.cssVarList,YI={[UI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var QI=Object.freeze({__proto__:null,default:YI,vars:UI});const BI=vr.cssVarList,PI={[BI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var ZI=Object.freeze({__proto__:null,default:PI,vars:BI});const FI=Cr.cssVarList,GI={[FI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var HI=Object.freeze({__proto__:null,default:GI,vars:FI});const JI=Se(bp),$I=Ir.cssVarList,[qI,_I,XI]=We({thickness:"2px",spacing:"10px"},hr),KI={...qI,[$I.hostDirection]:JI.direction,[$I.alignItems]:"center",[$I.flexDirection]:"row",[$I.alignSelf]:"stretch",[$I.hostWidth]:"100%",[$I.stripeColor]:JI.colors.surface.light,[$I.stripeColorOpacity]:"0.5",[$I.stripeHorizontalThickness]:_I.thickness,[$I.labelTextWidth]:"fit-content",[$I.labelTextMaxWidth]:"calc(100% - 100px)",[$I.labelTextHorizontalSpacing]:_I.spacing,[$I.textAlign]:"center",_vertical:{[$I.minHeight]:"200px",[$I.flexDirection]:"column",[$I.hostWidth]:"fit-content",[$I.hostPadding]:`0 calc(${_I.thickness} * 3)`,[$I.stripeVerticalThickness]:_I.thickness,[$I.labelTextWidth]:"fit-content",[$I.labelTextMaxWidth]:"100%",[$I.labelTextVerticalSpacing]:_I.spacing}},tx={...$I,...XI};var ex=Object.freeze({__proto__:null,default:KI,vars:tx});const ix=_r.cssVarList,ox={[ix.hostDirection]:lI.direction,[ix.fontFamily]:lI.fontFamily,[ix.fontSize]:lI.fontSize,[ix.labelTextColor]:lI.labelTextColor,[ix.labelRequiredIndicator]:lI.requiredIndicator,[ix.labelFontWeight]:lI.labelFontWeight,[ix.errorMessageTextColor]:lI.errorMessageTextColor,[ix.errorMessageFontWeight]:lI.errorMessageFontWeight,[ix.digitValueTextColor]:lI.valueTextColor,[ix.digitValueFontWeight]:lI.inputValueFontWeight,[ix.digitPadding]:"0",[ix.digitTextAlign]:"center",[ix.digitSpacing]:"4px",[ix.hostWidth]:lI.width,[ix.digitOutlineColor]:"transparent",[ix.digitOutlineWidth]:lI.outlineWidth,[ix.focusedDigitFieldOutlineColor]:lI.outlineColor,[ix.digitSize]:lI.inputHeight,[ix.errorMessageIcon]:lI.errorMessageIcon,[ix.errorMessageIconSize]:lI.errorMessageIconSize,[ix.errorMessageIconPadding]:lI.errorMessageIconPadding,[ix.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[ix.errorMessageIconPosition]:lI.errorMessageIconPosition,[ix.errorMessageFontSize]:lI.errorMessageFontSize,size:{xs:{[ix.spinnerSize]:"15px"},sm:{[ix.spinnerSize]:"20px"},md:{[ix.spinnerSize]:"20px"},lg:{[ix.spinnerSize]:"20px"}},_hideCursor:{[ix.digitCaretTextColor]:"transparent"},_loading:{[ix.overlayOpacity]:lI.overlayOpacity}};var nx=Object.freeze({__proto__:null,default:ox,vars:ix});const rx=Se(bp),sx=eo.cssVarList,ax={[sx.hostDisplay]:"inline-block",[sx.hostWidth]:"100%",[sx.barColor]:rx.colors.surface.contrast,[sx.barWidth]:"20%",[sx.barBackgroundColor]:rx.colors.surface.light,[sx.barBorderRadius]:"4px",[sx.animationDuration]:"2s",[sx.animationTimingFunction]:"linear",[sx.animationIterationCount]:"infinite",[sx.verticalPadding]:"0.25em",size:{xs:{[sx.barHeight]:"2px"},sm:{[sx.barHeight]:"4px"},md:{[sx.barHeight]:"6px"},lg:{[sx.barHeight]:"8px"}},mode:{primary:{[sx.barColor]:rx.colors.primary.main},secondary:{[sx.barColor]:rx.colors.secondary.main}},_hidden:{[sx.hostDisplay]:"none"}};var lx=Object.freeze({__proto__:null,default:ax,vars:sx});const dx=Se(bp),cx=no.cssVarList,[ux,px,hx]=We({spinnerColor:dx.colors.surface.contrast,mode:{primary:{spinnerColor:dx.colors.primary.main},secondary:{spinnerColor:dx.colors.secondary.main}}},io),gx={...ux,[cx.animationDuration]:"2s",[cx.animationTimingFunction]:"linear",[cx.animationIterationCount]:"infinite",[cx.spinnerBorderStyle]:"solid",[cx.spinnerBorderWidth]:"0.2em",[cx.spinnerBorderRadius]:"50%",[cx.spinnerQuadrant1Color]:px.spinnerColor,[cx.spinnerQuadrant2Color]:"transparent",[cx.spinnerQuadrant3Color]:px.spinnerColor,[cx.spinnerQuadrant4Color]:"transparent",size:{xs:{[cx.spinnerSize]:"20px"},sm:{[cx.spinnerSize]:"30px"},md:{[cx.spinnerSize]:"40px"},lg:{[cx.spinnerSize]:"60px"},xl:{[cx.spinnerSize]:"80px"}},_hidden:{[cx.hostDisplay]:"none"}},Mx={...cx,...hx};var mx=Object.freeze({__proto__:null,default:gx,vars:Mx});const yx=Ps.cssVarList,bx={[yx.hostWidth]:lI.width,[yx.hostDirection]:lI.direction,[yx.fontSize]:lI.fontSize,[yx.fontFamily]:lI.fontFamily,[yx.labelFontSize]:lI.labelFontSize,[yx.labelFontWeight]:lI.labelFontWeight,[yx.inputValueFontWeight]:lI.inputValueFontWeight,[yx.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[yx.helperTextFontWeight]:lI.helperTextFontWeight,[yx.errorMessageFontWeight]:lI.errorMessageFontWeight,[yx.labelTextColor]:lI.labelTextColor,[yx.labelRequiredIndicator]:lI.requiredIndicator,[yx.errorMessageTextColor]:lI.errorMessageTextColor,[yx.inputValueTextColor]:lI.valueTextColor,[yx.inputPlaceholderTextColor]:lI.placeholderTextColor,[yx.inputBorderStyle]:lI.borderStyle,[yx.inputBorderWidth]:lI.borderWidth,[yx.inputBorderColor]:lI.borderColor,[yx.inputBorderRadius]:lI.borderRadius,[yx.inputOutlineStyle]:lI.outlineStyle,[yx.inputOutlineWidth]:lI.outlineWidth,[yx.inputOutlineColor]:lI.outlineColor,[yx.inputOutlineOffset]:lI.outlineOffset,[yx.phoneInputWidth]:lI.minWidth,[yx.countryCodeInputWidth]:"5em",[yx.countryCodeDropdownWidth]:"20em",[yx.marginInlineStart]:"-0.25em",[yx.valueInputHeight]:lI.valueInputHeight,[yx.valueInputMarginBottom]:lI.valueInputMarginBottom,[yx.errorMessageIcon]:lI.errorMessageIcon,[yx.errorMessageIconSize]:lI.errorMessageIconSize,[yx.errorMessageIconPadding]:lI.errorMessageIconPadding,[yx.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[yx.errorMessageIconPosition]:lI.errorMessageIconPosition,[yx.errorMessageFontSize]:lI.errorMessageFontSize};var Nx=Object.freeze({__proto__:null,default:bx,vars:yx});const Ix=sa.cssVarList,xx={[Ix.hostWidth]:"16em",[Ix.hostMinWidth]:lI.minWidth,[Ix.hostDirection]:lI.direction,[Ix.fontSize]:lI.fontSize,[Ix.fontFamily]:lI.fontFamily,[Ix.labelFontSize]:lI.labelFontSize,[Ix.labelFontWeight]:lI.labelFontWeight,[Ix.inputValueFontWeight]:lI.inputValueFontWeight,[Ix.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[Ix.helperTextFontWeight]:lI.helperTextFontWeight,[Ix.errorMessageFontWeight]:lI.errorMessageFontWeight,[Ix.labelTextColor]:lI.labelTextColor,[Ix.labelRequiredIndicator]:lI.requiredIndicator,[Ix.errorMessageTextColor]:lI.errorMessageTextColor,[Ix.inputValueTextColor]:lI.valueTextColor,[Ix.inputPlaceholderTextColor]:lI.placeholderTextColor,[Ix.inputBorderStyle]:lI.borderStyle,[Ix.inputBorderWidth]:lI.borderWidth,[Ix.inputBorderColor]:lI.borderColor,[Ix.inputBorderRadius]:lI.borderRadius,[Ix.inputOutlineStyle]:lI.outlineStyle,[Ix.inputOutlineWidth]:lI.outlineWidth,[Ix.inputOutlineColor]:lI.outlineColor,[Ix.inputOutlineOffset]:lI.outlineOffset,[Ix.labelPosition]:lI.labelPosition,[Ix.labelTopPosition]:lI.labelTopPosition,[Ix.labelHorizontalPosition]:lI.labelHorizontalPosition,[Ix.inputTransformY]:lI.inputTransformY,[Ix.inputTransition]:lI.inputTransition,[Ix.marginInlineStart]:lI.marginInlineStart,[Ix.valueInputHeight]:lI.valueInputHeight,[Ix.valueInputMarginBottom]:lI.valueInputMarginBottom,[Ix.inputHorizontalPadding]:"0",[Ix.errorMessageIcon]:lI.errorMessageIcon,[Ix.errorMessageIconSize]:lI.errorMessageIconSize,[Ix.errorMessageIconPadding]:lI.errorMessageIconPadding,[Ix.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[Ix.errorMessageIconPosition]:lI.errorMessageIconPosition,[Ix.errorMessageFontSize]:lI.errorMessageFontSize,_fullWidth:{[Ix.hostWidth]:lI.width}};var jx=Object.freeze({__proto__:null,default:xx,vars:Ix});const Tx=Se(bp),Dx=Sa.cssVarList,vx={[Dx.hostWidth]:lI.width,[Dx.hostMinWidth]:lI.minWidth,[Dx.hostDirection]:lI.direction,[Dx.fontSize]:lI.fontSize,[Dx.fontFamily]:lI.fontFamily,[Dx.labelFontSize]:lI.labelFontSize,[Dx.labelFontWeight]:lI.labelFontWeight,[Dx.inputValueFontWeight]:lI.inputValueFontWeight,[Dx.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[Dx.helperTextFontWeight]:lI.helperTextFontWeight,[Dx.errorMessageFontWeight]:lI.errorMessageFontWeight,[Dx.labelTextColor]:lI.labelTextColor,[Dx.spaceBetweenInputs]:"1em",[Dx.errorMessageTextColor]:lI.errorMessageTextColor,[Dx.policyPreviewBackgroundColor]:"none",[Dx.policyPreviewPadding]:Tx.spacing.lg,[Dx.valueInputHeight]:lI.valueInputHeight,[Dx.errorMessageIcon]:lI.errorMessageIcon,[Dx.errorMessageIconSize]:lI.errorMessageIconSize,[Dx.errorMessageIconPadding]:lI.errorMessageIconPadding,[Dx.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[Dx.errorMessageIconPosition]:lI.errorMessageIconPosition,[Dx.errorMessageFontSize]:lI.errorMessageFontSize,_required:{[Dx.inputsRequiredIndicator]:lI.requiredIndicator}};var zx=Object.freeze({__proto__:null,default:vx,vars:Dx});const Cx=Ka.cssVarList,Sx={[Cx.hostDirection]:lI.direction,[Cx.labelTextColor]:lI.labelTextColor,[Cx.fontFamily]:lI.fontFamily,[Cx.iconSize]:"2em",[Cx.hostPadding]:"0.75em",[Cx.gap]:"0.5em",[Cx.fontSize]:"16px",[Cx.titleFontWeight]:"500",[Cx.lineHeight]:"1em",[Cx.borderWidth]:lI.borderWidth,[Cx.borderColor]:lI.borderColor,[Cx.borderRadius]:lI.borderRadius,[Cx.borderStyle]:"dashed",_required:{[Cx.requiredIndicator]:lI.requiredIndicator},size:{xs:{[Cx.hostHeight]:"196px",[Cx.hostWidth]:"200px",[Cx.titleFontSize]:"0.875em",[Cx.descriptionFontSize]:"0.875em",[Cx.lineHeight]:"1.25em"},sm:{[Cx.hostHeight]:"216px",[Cx.hostWidth]:"230px",[Cx.titleFontSize]:"1em",[Cx.descriptionFontSize]:"0.875em",[Cx.lineHeight]:"1.25em"},md:{[Cx.hostHeight]:"256px",[Cx.hostWidth]:"312px",[Cx.titleFontSize]:"1.125em",[Cx.descriptionFontSize]:"1em",[Cx.lineHeight]:"1.5em"},lg:{[Cx.hostHeight]:"280px",[Cx.hostWidth]:"336px",[Cx.titleFontSize]:"1.125em",[Cx.descriptionFontSize]:"1.125em",[Cx.lineHeight]:"1.75em"}},_fullWidth:{[Cx.hostWidth]:lI.width}};var wx=Object.freeze({__proto__:null,default:Sx,vars:Cx});const Lx=Se(bp),Ax=rl.cssVarList,fx={[Ax.hostDirection]:"inherit",[Ax.hostWidth]:"auto",[Ax.backgroundColor]:Lx.colors.surface.main,[Ax.labelTextColor]:Lx.colors.surface.contrast,[Ax.borderColor]:Lx.colors.surface.light,[Ax.borderStyle]:"solid",[Ax.borderRadius]:Lx.radius.sm,[Ax.outlineColor]:"transparent",[Ax.borderWidth]:Lx.border.xs,_hover:{[Ax.backgroundColor]:Lx.colors.surface.highlight},_focused:{[Ax.outlineColor]:Lx.colors.surface.light},_selected:{[Ax.borderColor]:Lx.colors.surface.contrast,[Ax.backgroundColor]:Lx.colors.surface.contrast,[Ax.labelTextColor]:Lx.colors.surface.main}};var Ex=Object.freeze({__proto__:null,default:fx,vars:Ax});const kx=Se(bp),Ox=t=>({[t.hostDirection]:lI.direction,[t.fontFamily]:lI.fontFamily,[t.labelTextColor]:lI.labelTextColor,[t.labelRequiredIndicator]:lI.requiredIndicator,[t.itemsSpacing]:kx.spacing.sm,[t.hostWidth]:lI.width,[t.errorMessageTextColor]:lI.errorMessageTextColor,[t.errorMessageIcon]:lI.errorMessageIcon,[t.errorMessageIconSize]:lI.errorMessageIconSize,[t.errorMessageIconPadding]:lI.errorMessageIconPadding,[t.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[t.errorMessageIconPosition]:lI.errorMessageIconPosition,[t.errorMessageFontSize]:lI.errorMessageFontSize,layout:{vertical:{[t.itemsDirection]:"column",[t.itemsAlignment]:"flex-start",_fullWidth:{[t.itemsAlignment]:"stretch",[t.itemsWidth]:"100%"}}}}),Vx=Ml.cssVarList,Wx={...Ox(Vx)};var Rx=Object.freeze({__proto__:null,default:Wx,vars:Vx});const Ux=Nl.cssVarList,Yx={...Ox(Ux)};var Qx=Object.freeze({__proto__:null,default:Yx,vars:Ux});const Bx=Se(bp),Px=ec.cssVarList,Zx={[Px.overlayBackgroundColor]:Bx.colors.surface.main,[Px.overlayShadow]:Bx.shadow.wide["2xl"],[Px.overlayWidth]:"540px",[Px.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},Fx={...Px};var Gx=Object.freeze({__proto__:null,default:Zx,vars:Fx});const Hx=Se(bp),Jx=Xd.cssVarList,$x={[Jx.hostWidth]:"100%",[Jx.hostHeight]:"100%",[Jx.hostMinHeight]:"400px",[Jx.fontWeight]:"400",[Jx.backgroundColor]:Hx.colors.surface.main,[Jx.fontSize]:lI.fontSize,[Jx.fontFamily]:lI.fontFamily,[Jx.sortIndicatorsColor]:Hx.colors.surface.light,[Jx.activeSortIndicator]:Hx.colors.surface.dark,[Jx.resizeHandleColor]:Hx.colors.surface.light,[Jx.borderWidth]:lI.borderWidth,[Jx.borderStyle]:lI.borderStyle,[Jx.borderRadius]:lI.borderRadius,[Jx.borderColor]:"transparent",[Jx.headerRowTextColor]:Hx.colors.surface.dark,[Jx.separatorColor]:Hx.colors.surface.light,[Jx.valueTextColor]:Hx.colors.surface.contrast,[Jx.selectedBackgroundColor]:Hx.colors.surface.highlight,[Jx.hostDirection]:Hx.direction,[Jx.toggleDetailsPanelButtonSize]:"1em",[Jx.toggleDetailsPanelButtonOpenedColor]:Hx.colors.surface.contrast,[Jx.toggleDetailsPanelButtonClosedColor]:Hx.colors.surface.light,[Jx.toggleDetailsPanelButtonCursor]:"pointer",[Jx.detailsPanelBackgroundColor]:Hx.colors.surface.highlight,[Jx.detailsPanelBorderTopColor]:Hx.colors.surface.light,[Jx.detailsPanelLabelsColor]:Hx.colors.surface.dark,[Jx.detailsPanelLabelsFontSize]:"0.8em",[Jx.detailsPanelItemsGap]:"2em",[Jx.detailsPanelPadding]:"12px 0",_bordered:{[Jx.borderColor]:lI.borderColor}};var qx=Object.freeze({__proto__:null,default:$x,grid:$x,vars:Jx});const _x=Se(bp),Xx=rc.cssVarList,Kx="#00000020",tj={[Xx.hostMinWidth]:"415px",[Xx.fontFamily]:_x.fonts.font1.family,[Xx.fontSize]:_x.typography.body1.size,[Xx.backgroundColor]:_x.colors.surface.main,[Xx.textColor]:_x.colors.surface.contrast,[Xx.boxShadow]:`${_x.shadow.wide.xl} ${Kx}, ${_x.shadow.narrow.xl} ${Kx}`,[Xx.verticalPadding]:"0.625em",[Xx.horizontalPadding]:"1.5em",[Xx.borderRadius]:_x.radius.xs,_bordered:{[Xx.borderWidth]:_x.border.sm,[Xx.borderStyle]:"solid",[Xx.borderColor]:"transparent"},size:{xs:{[Xx.fontSize]:"12px"},sm:{[Xx.fontSize]:"14px"},md:{[Xx.fontSize]:"16px"},lg:{[Xx.fontSize]:"18px"}},mode:{primary:{[Xx.backgroundColor]:_x.colors.primary.main,[Xx.textColor]:_x.colors.primary.contrast,[Xx.borderColor]:_x.colors.primary.light},success:{[Xx.backgroundColor]:_x.colors.success.main,[Xx.textColor]:_x.colors.success.contrast,[Xx.borderColor]:_x.colors.success.light},error:{[Xx.backgroundColor]:_x.colors.error.main,[Xx.textColor]:_x.colors.error.contrast,[Xx.borderColor]:_x.colors.error.light}}};var ej=Object.freeze({__proto__:null,default:tj,vars:Xx});const ij=Se(bp),oj=xc.cssVarList,nj={[oj.hostWidth]:lI.width,[oj.hostDirection]:lI.direction,[oj.fontSize]:lI.fontSize,[oj.fontFamily]:lI.fontFamily,[oj.separatorFontSize]:"14px",[oj.labelsFontSize]:"14px",[oj.labelsLineHeight]:"1",[oj.labelsMarginBottom]:"6px",[oj.labelTextColor]:lI.labelTextColor,[oj.itemMarginBottom]:"1em",[oj.valueLabelMinWidth]:lI.minWidth,[oj.attrLabelMinWidth]:`calc(12em + 2 * ${ij.border.xs})`,[oj.separatorWidth]:"70px",[oj.removeButtonWidth]:"60px"};var rj=Object.freeze({__proto__:null,default:nj,mappingsField:nj,vars:oj});const sj=Se(bp),aj=Wc.cssVarList,lj={[aj.labelMinWidth]:"150px",[aj.hostDirection]:sj.direction,[aj.contentMinWidth]:`calc(100% - ${Ve(aj.labelMinWidth)} - ${Ve(aj.itemsGap)})`,[aj.badgeMaxWidth]:"85px",[aj.itemsGap]:"4px",[aj.hostMinWidth]:"310px",[aj.hostWidth]:"530px",[aj.hostMaxWidth]:"100%",[aj.iconColor]:"currentcolor",_fullWidth:{[aj.hostWidth]:"100%"}};var dj=Object.freeze({__proto__:null,default:lj,vars:aj});const cj=Se(bp),uj=Gc.cssVarList,pj={[uj.hostDirection]:cj.direction,[uj.itemsGap]:"16px",[uj.hostMinWidth]:"310px",[uj.hostWidth]:"530px",[uj.hostMaxWidth]:"100%",[uj.iconSize]:"24px",[uj.iconColor]:"currentcolor",_fullWidth:{[uj.hostWidth]:"100%"}};var hj=Object.freeze({__proto__:null,default:pj,vars:uj});const gj=Kc.cssVarList,Mj={[gj.hostWidth]:lI.width,[gj.hostDirection]:lI.direction,[gj.groupNameInputMarginBottom]:"1em",[gj.errorMessageIcon]:lI.errorMessageIcon,[gj.errorMessageIconSize]:lI.errorMessageIconSize,[gj.errorMessageIconPadding]:lI.errorMessageIconPadding,[gj.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[gj.errorMessageIconPosition]:lI.errorMessageIconPosition,[gj.errorMessageFontSize]:lI.errorMessageFontSize};var mj=Object.freeze({__proto__:null,default:Mj,samlGroupMappings:Mj,vars:gj});const yj=Se(bp),bj=ba.cssVarList,Nj={[bj.fontFamily]:lI.fontFamily,[bj.fontSize]:lI.labelFontSize,[bj.textColor]:lI.labelTextColor,[bj.borderWidth]:lI.borderWidth,[bj.borderStyle]:lI.borderStyle,[bj.borderColor]:lI.borderColor,[bj.borderRadius]:yj.radius.sm,[bj.backgroundColor]:"none",[bj.padding]:"0px",[bj.labelMargin]:yj.spacing.sm,[bj.itemsSpacing]:yj.spacing.lg,[bj.itemSymbolDefault]:"'\\2022'",[bj.itemSymbolSuccess]:"'\\2713'",[bj.itemSymbolError]:"'\\2A09'",[bj.itemSymbolSuccessColor]:yj.colors.success.main,[bj.itemSymbolErrorColor]:yj.colors.error.main};var Ij=Object.freeze({__proto__:null,default:Nj,vars:bj});const xj=Se(bp),jj=zd.cssVarList,Tj="#d73a49",Dj="#6f42c1",vj="#005cc5",zj="#e36209",Cj="#6a737d",Sj="#22863a",wj="#24292e",Lj="#f0fff4",Aj="#032f62",fj="#ff7b72",Ej="#d2a8ff",kj="#79c0ff",Oj="#ffa657",Vj="#8b949e",Wj="#7ee787",Rj="#c9d1d9",Uj="#f0fff4",Yj="#a5d6ff",Qj={[jj.copyButtonSize]:"32px",[jj.copyButtonBorderRadius]:xj.radius.xs,[jj.copyButtonBorderWidth]:xj.border.xs,[jj.copyButtonBorderColor]:xj.colors.surface.light,[jj.copyButtonBgColor]:xj.colors.surface.highlight,[jj.copyButtonHoverBgColor]:xj.colors.surface.light,[jj.copyButtonColor]:xj.colors.surface.contrast,[jj.rootBgColor]:xj.colors.surface.main,[jj.rootTextColor]:xj.colors.surface.contrast,[jj.docTagTextColor]:Tj,[jj.keywordTextColor]:Tj,[jj.metaKeywordTextColor]:Tj,[jj.templateTagTextColor]:Tj,[jj.templateVariableTextColor]:Tj,[jj.typeTextColor]:Tj,[jj.variableLanguageTextColor]:Tj,[jj.titleTextColor]:Dj,[jj.titleClassTextColor]:Dj,[jj.titleClassInheritedTextColor]:Dj,[jj.titleFunctionTextColor]:Dj,[jj.attrTextColor]:vj,[jj.attributeTextColor]:vj,[jj.literalTextColor]:vj,[jj.metaTextColor]:vj,[jj.numberTextColor]:vj,[jj.operatorTextColor]:vj,[jj.variableTextColor]:vj,[jj.selectorAttrTextColor]:vj,[jj.selectorClassTextColor]:vj,[jj.selectorIdTextColor]:vj,[jj.regexpTextColor]:Aj,[jj.stringTextColor]:Aj,[jj.metaStringTextColor]:Aj,[jj.builtInTextColor]:zj,[jj.symbolTextColor]:zj,[jj.commentTextColor]:Cj,[jj.codeTextColor]:Cj,[jj.formulaTextColor]:Cj,[jj.nameTextColor]:Sj,[jj.quoteTextColor]:Sj,[jj.selectorTagTextColor]:Sj,[jj.selectorPseudoTextColor]:Sj,[jj.substTextColor]:wj,[jj.sectionTextColor]:vj,[jj.bulletTextColor]:"#735c0f",[jj.emphasisTextColor]:wj,[jj.strongTextColor]:wj,[jj.additionTextColor]:Sj,[jj.additionBgColor]:Lj,[jj.deletionTextColor]:Tj,[jj.deletionBgColor]:Lj},Bj={codeSnippet:{[jj.rootBgColor]:xj.colors.surface.main,[jj.rootTextColor]:xj.colors.surface.contrast,[jj.docTagTextColor]:fj,[jj.keywordTextColor]:fj,[jj.metaKeywordTextColor]:fj,[jj.templateTagTextColor]:fj,[jj.templateVariableTextColor]:fj,[jj.typeTextColor]:fj,[jj.variableLanguageTextColor]:fj,[jj.titleTextColor]:Ej,[jj.titleClassTextColor]:Ej,[jj.titleClassInheritedTextColor]:Ej,[jj.titleFunctionTextColor]:Ej,[jj.attrTextColor]:kj,[jj.attributeTextColor]:kj,[jj.literalTextColor]:kj,[jj.metaTextColor]:kj,[jj.numberTextColor]:kj,[jj.operatorTextColor]:kj,[jj.variableTextColor]:kj,[jj.selectorAttrTextColor]:kj,[jj.selectorClassTextColor]:kj,[jj.selectorIdTextColor]:kj,[jj.regexpTextColor]:Yj,[jj.stringTextColor]:Yj,[jj.metaStringTextColor]:Yj,[jj.builtInTextColor]:Oj,[jj.symbolTextColor]:Oj,[jj.commentTextColor]:Vj,[jj.codeTextColor]:Vj,[jj.formulaTextColor]:Vj,[jj.nameTextColor]:Wj,[jj.quoteTextColor]:Wj,[jj.selectorTagTextColor]:Wj,[jj.selectorPseudoTextColor]:Wj,[jj.substTextColor]:Rj,[jj.sectionTextColor]:kj,[jj.bulletTextColor]:"#735c0f",[jj.emphasisTextColor]:Rj,[jj.strongTextColor]:Rj,[jj.additionTextColor]:Wj,[jj.additionBgColor]:Uj,[jj.deletionTextColor]:fj,[jj.deletionBgColor]:Uj}};var Pj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Bj,default:Qj,vars:jj});const Zj=ou.cssVarList,Fj=Se(bp),Gj={[Zj.buttonsRowGap]:"9px",[Zj.hostWidth]:lI.width,[Zj.hostDirection]:lI.direction,[Zj.fontSize]:lI.fontSize,[Zj.fontFamily]:lI.fontFamily,[Zj.labelFontWeight]:lI.labelFontWeight,[Zj.labelTextColor]:lI.labelTextColor,[Zj.labelRequiredIndicator]:lI.requiredIndicator,[Zj.errorMessageTextColor]:lI.errorMessageTextColor,[Zj.errorMessageIcon]:lI.errorMessageIcon,[Zj.errorMessageIconSize]:lI.errorMessageIconSize,[Zj.errorMessageIconPadding]:lI.errorMessageIconPadding,[Zj.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[Zj.errorMessageIconPosition]:lI.errorMessageIconPosition,[Zj.errorMessageFontSize]:lI.errorMessageFontSize,[Zj.helperTextColor]:lI.helperTextColor,[Zj.itemsLabelColor]:Fj.colors.surface.contrast,[Zj.itemsLabelFontWeight]:lI.inputValueFontWeight,[Zj.itemsFontFamily]:lI.fontFamily,[Zj.itemsRadioCheckedColor]:Fj.colors.surface.light,[Zj.itemsRadioBackgroundColor]:Fj.colors.surface.light,[Zj.itemsRadioCheckedBackgroundColor]:Fj.colors.surface.contrast,textAlign:{right:{[Zj.inputTextAlign]:"right"},left:{[Zj.inputTextAlign]:"left"},center:{[Zj.inputTextAlign]:"center"}},_fullWidth:{[Zj.buttonsSpacing]:"space-between"},_disabled:{[Zj.itemsLabelColor]:Fj.colors.surface.light}};var Hj=Object.freeze({__proto__:null,default:Gj,radioGroup:Gj,vars:Zj});const Jj=eu.cssVarList,$j=Se(bp),qj={[Jj.fontFamily]:lI.fontFamily,[Jj.labelFontWeight]:lI.inputValueFontWeight,[Jj.radioSize]:"calc(1em + 6px)",[Jj.radioMargin]:"auto 4px",[Jj.radioCheckedSize]:`calc(var(${Jj.radioSize})/5)`,[Jj.radioCheckedColor]:$j.colors.surface.light,[Jj.radioBackgroundColor]:$j.colors.surface.light,[Jj.radioBorderColor]:"none",[Jj.radioBorderWidth]:0,_checked:{[Jj.radioBackgroundColor]:$j.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[Jj.fontSize]:"12px"},sm:{[Jj.fontSize]:"14px"},md:{[Jj.fontSize]:"16px"},lg:{[Jj.fontSize]:"18px"}}};var _j=Object.freeze({__proto__:null,default:qj,radioButton:qj,vars:Jj});const Xj=Se(bp),Kj=fn.cssVarList,tT={[Kj.fontFamily]:lI.fontFamily,[Kj.fontSize]:lI.fontSize,[Kj.hostDirection]:lI.direction,[Kj.calendarPadding]:"1em",[Kj.topNavVerticalPadding]:"1em",[Kj.topNavAlignment]:"space-between",[Kj.topNavGap]:"0",[Kj.topNavSelectorsGap]:"0.5em",[Kj.bottomNavVerticalPadding]:"0.75em",[Kj.bottomNavHorizontalPadding]:"1.5em",[Kj.bottomNavAlignment]:"space-between",[Kj.bottomNavGap]:"0.5em",[Kj.navMarginBottom]:"0.75em",[Kj.navBorderBottomWidth]:"1px",[Kj.navBorderBottomColor]:Xj.colors.surface.highlight,[Kj.navBorderBottomStyle]:"solid",[Kj.yearInputWidth]:"6em",[Kj.monthInputWidth]:"8em",[Kj.navButtonSize]:"24px",[Kj.navButtonCursor]:"pointer",[Kj.weekdayFontSize]:"0.875em",[Kj.weekdayFontWeight]:"500",[Kj.dayHeight]:"3.125em",[Kj.daySize]:"2.125em",[Kj.dayFontSize]:"1em",[Kj.dayRadius]:"50%",[Kj.dayTextAlign]:"center",[Kj.dayPadding]:"0",[Kj.dayTextColor]:Xj.colors.surface.contrast,[Kj.dayFontWeight]:"500",[Kj.dayBackgroundColor]:"transparent",[Kj.dayCursor]:"pointer",[Kj.dayBackgroundColorHover]:Xj.colors.primary.highlight,[Kj.daySelectedBackgroundColor]:Xj.colors.primary.main,[Kj.daySelectedTextdColor]:Xj.colors.primary.contrast,[Kj.dayDisabledTextdColor]:Xj.colors.surface.light,[Kj.currentDayBorderColor]:Xj.colors.surface.light,[Kj.currentDayBorderWidth]:"1px",[Kj.currentDayBorderStyle]:"solid",size:{xs:{[Kj.fontSize]:"12px"},sm:{[Kj.fontSize]:"14px"},md:{[Kj.fontSize]:"16px"},lg:{[Kj.fontSize]:"18px"}},[Kj.navButtonRotation]:"rotate(180deg)",_disabled:{[Kj.navButtonOpacity]:"0.5",[Kj.dayBackgroundColorHover]:"none",[Kj.navButtonCursor]:"default",[Kj.dayCursor]:"default"},_fullWidth:{[Kj.hostWidth]:"100%",[Kj.dayBlockAlign]:"0 auto"}};var eT=Object.freeze({__proto__:null,default:tT,vars:Kj});const iT=Se(bp),oT="#00000020",{shadow:nT}=iT,rT=pr.cssVarList,sT={[rT.hostWidth]:lI.width,[rT.hostDirection]:lI.direction,[rT.iconMargin]:"0.375em",[rT.overlay.marginTop]:`calc(${lI.outlineWidth} + 1px)`,[rT.overlay.backgroundColor]:lI.backgroundColor,[rT.overlay.backdropBackgroundColor]:"transparent",[rT.overlay.backdropPointerEvents]:"all",[rT.overlay.boxShadow]:`${nT.wide.xl} ${oT}, ${nT.narrow.xl} ${oT}`,[rT.overlay.outlineWidth]:"0",[rT.overlay.outlineColor]:"transparent",[rT.overlay.outlineStyle]:"none",[rT.overlay.padding]:"0",[rT.rtlInputDirection]:"ltr",[rT.rtlInputAlignment]:"right",[rT.errorMessageIcon]:lI.errorMessageIcon,[rT.errorMessageIconSize]:lI.errorMessageIconSize,[rT.errorMessageIconPadding]:lI.errorMessageIconPadding,[rT.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[rT.errorMessageIconPosition]:lI.errorMessageIconPosition,[rT.errorMessageFontSize]:lI.errorMessageFontSize,[rT.labelFontWeight]:lI.labelFontWeight,[rT.inputValueFontWeight]:lI.inputValueFontWeight,[rT.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[rT.helperTextFontWeight]:lI.helperTextFontWeight,[rT.errorMessageFontWeight]:lI.errorMessageFontWeight};var aT=Object.freeze({__proto__:null,default:sT,vars:rT});const lT=du.cssVarList,dT={[lT.requiredInputBorderColor]:aI._disabled[dI.borderColor],[lT.requiredInputValueTextColor]:aI._disabled[dI.valueTextColor],[lT.hostWidth]:"280px",_fullWidth:{[lT.hostWidth]:"100%"}};var cT=Object.freeze({__proto__:null,default:dT,vars:lT});const uT=Se(bp),pT=Nu.cssVarList,hT={[pT.gap]:uT.spacing.lg,[pT.arrowsColor]:uT.colors.surface.dark,[pT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[pT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[pT.logoMaxHeight]:"30px",[pT.logoMaxWidth]:"120px"},sm:{[pT.logoMaxHeight]:"40px",[pT.logoMaxWidth]:"160px"},md:{[pT.logoMaxHeight]:"48px",[pT.logoMaxWidth]:"200px"},lg:{[pT.logoMaxHeight]:"60px",[pT.logoMaxWidth]:"240px"}}};var gT=Object.freeze({__proto__:null,default:hT,vars:pT});const MT=Du.cssVarList,mT={[MT.hostWidth]:"fit-content",_fullWidth:{[MT.hostWidth]:"100%"}};var yT=Object.freeze({__proto__:null,default:mT,vars:MT});const bT=fu.cssVarList,NT={[bT.hostWidth]:"min-content",[bT.questionCursor]:"pointer",_fullWidth:{[bT.hostWidth]:"100%"},[bT.questionFontSize]:lI.fontSize,[bT.questionFontFamily]:lI.fontFamily};var IT=Object.freeze({__proto__:null,default:NT,vars:bT});const xT=sp.cssVarList,jT={[xT.hostDirection]:lI.direction,[xT.labelFontWeight]:lI.labelFontWeight,[xT.inputValueFontWeight]:lI.inputValueFontWeight,[xT.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[xT.helperTextFontWeight]:lI.helperTextFontWeight,[xT.errorMessageFontWeight]:lI.errorMessageFontWeight,[xT.errorMessageIcon]:lI.errorMessageIcon,[xT.errorMessageIconSize]:lI.errorMessageIconSize,[xT.errorMessageIconPadding]:lI.errorMessageIconPadding,[xT.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[xT.errorMessageIconPosition]:lI.errorMessageIconPosition,[xT.errorMessageFontSize]:lI.errorMessageFontSize,_fullWidth:{[xT.hostWidth]:"100%"}};var TT=Object.freeze({__proto__:null,default:jT,vars:xT});const DT=Se(bp),vT=cp.cssVarList,zT={[vT.hostDirection]:DT.direction,[vT.backgroundColor]:"transparent",[vT.iconSize]:"1.35em",[vT.alignItems]:"center",[vT.borderRadius]:DT.radius.md,[vT.horizontalPadding]:"0",[vT.verticalPadding]:"0",[vT.gap]:"0.5em",[vT.fontSize]:Ve(Op.fontSize),mode:{error:{[vT.textColor]:DT.colors.error.main,_bordered:{[vT.borderColor]:DT.colors.error.main}},success:{[vT.textColor]:DT.colors.success.main,_bordered:{[vT.borderColor]:DT.colors.success.main}}},spacing:{xs:{[vT.horizontalPadding]:DT.spacing.xs,[vT.verticalPadding]:DT.spacing.xs},sm:{[vT.horizontalPadding]:DT.spacing.sm,[vT.verticalPadding]:DT.spacing.sm},md:{[vT.horizontalPadding]:DT.spacing.md,[vT.verticalPadding]:DT.spacing.md},lg:{[vT.horizontalPadding]:DT.spacing.lg,[vT.verticalPadding]:DT.spacing.lg},xl:{[vT.horizontalPadding]:DT.spacing.xl,[vT.verticalPadding]:DT.spacing.xl}},textAlign:{left:{[vT.justifyContent]:"left"},center:{[vT.justifyContent]:"center"},right:{[vT.justifyContent]:"right"}},_bordered:{[vT.borderWidth]:DT.border.xs,[vT.borderColor]:"transparent",[vT.borderStyle]:"solid",[vT.borderWidth]:DT.border.xs,[vT.borderRadius]:DT.radius.sm},_fullWidth:{[vT.hostWidth]:"100%"}};var CT=Object.freeze({__proto__:null,default:zT,vars:vT});const ST=gp.cssVarList,wT={enabled:{false:{[ST.maxHeight]:"70px"}}},LT={button:Ep,textField:pb,password:gI,numberField:yI,emailField:GN,textArea:II,checkbox:DI,switchToggle:wI,container:RI,logo:QI,totpImage:ZI,notpImage:HI,text:Wp,enrichedText:Fp,link:Qp,divider:ex,passcode:nx,loaderRadial:mx,loaderLinear:lx,comboBox:Kp,phoneField:Nx,phoneInputBoxField:jx,newPassword:zx,newEmail:nI,inputWrapper:cI,uploadFile:wx,buttonSelectionGroupItem:Ex,buttonSelectionGroup:Rx,buttonMultiSelectionGroup:Qx,modal:Gx,grid:qx,notificationCard:ej,multiSelectComboBox:xg,badge:sh,avatar:yh,mappingsField:rj,userAttribute:dj,userAuthMethod:hj,samlGroupMappings:mj,policyValidation:Ij,image:xh,icon:Nh,codeSnippet:Pj,radioGroup:Hj,radioButton:_j,calendar:eT,dateField:aT,monthDayField:Zb,monthDayFieldPicker:nN,list:Wh,listItem:Qh,multiLineMappings:yg,appsList:Sh,scopesList:cT,thirdPartyAppLogo:gT,securityQuestionsSetup:yT,securityQuestionsVerify:IT,hybridField:TT,alert:CT,autocompleteField:fg,addressField:Jg,countrySubdivisionCityField:Ry,timer:sM,timerButton:jM,passwordStrength:OM,collapsibleContainer:JM,recoveryCodes:sm,activeSessions:mm,hcaptcha:Object.freeze({__proto__:null,default:wT,vars:ST}),outboundApps:Dm,outboundAppButton:Am,trustedDevices:Qm,multiSso:qm,tooltip:uy,filter:PN,attachment:Jy,userPasskeys:lb},AT=Object.keys(LT).reduce((t,e)=>({...t,[e]:LT[e].default}),{}),fT=Object.keys(LT).reduce((t,e)=>({...t,[e]:LT[e].vars}),{}),ET={globals:bp,components:AT},kT={globals:Np,components:fT},OT=a()({},ET,{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:{...Bj}});customElements.define(Bh,og),customElements.define(lm,hm),customElements.define(jg,class extends Tg{static get observedAttributes(){return[].concat(Tg.observedAttributes||[],Dg)}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:vg,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:vg,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(zg,Sg),customElements.define(Og,Bg),customElements.define(Pg,Fg);const VT=L("anchored");class WT extends(It({componentName:VT,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 RT=T(Mt)(WT);customElements.define(VT,RT),customElements.define(ah,ph),customElements.define(jh,Th),customElements.define(Uy,Zy),customElements.define(VM,UM),customElements.define(by,Ly),customElements.define(Ay,Oy),customElements.define(MN,TN),customElements.define(DN,LN),customElements.define(AN,WN),customElements.define(Hb,eN),customElements.define(Db,Rb),customElements.define(ng,gg),customElements.define(Bm,Gm);const UT=/^email-/,YT=/^confirm-/,QT=(t,e)=>t.replace(e,""),BT=["email-label","email-placeholder"],PT=["confirm-label","confirm-placeholder"],ZT=["disabled","bordered","size","full-width","invalid","readonly","draggable","label-type"],FT=[].concat(ZT,BT,PT),GT=Ct({componentName:HN,baseSelector:"div"});customElements.define(HN,class extends GT{static get observedAttributes(){return[].concat(GT.observedAttributes||[],FT)}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(ku,"u"):new RegExp(Eu);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(${eI.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&&(ZT.includes(t)?this.inputs?.forEach(e=>this.toggleBooleanAttribute(e,t,i)):BT.includes(t)?this.toggleBooleanAttribute(this.emailInput,QT(t,UT),i):PT.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,QT(t,YT),i))}}),customElements.define(JN,eI),customElements.define(vm,Cm),customElements.define(ym,xm),customElements.define(TM,LM);var HT=Object.freeze({__proto__:null,PasswordStrengthClass:LM,componentName:TM});const JT=L("ponyhot"),$T="dhp-",qT=It({componentName:JT,baseSelector:""}),_T=T(Mt)(class extends qT{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(JT,_T),customElements.define($M,em),customElements.define(qg,iM),customElements.define(aM,bM),customElements.define(_m,iy),customElements.define(km,Rm),customElements.define(Ky,rb);const XT={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}};m.u2.setOptions(XT);var KT=Object.freeze({__proto__:null,default:m.K1,options:XT})}}]);
1
+ "use strict";(self.webpackChunk_descope_flow_components_3_26_4_1793526461638=self.webpackChunk_descope_flow_components_3_26_4_1793526461638||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Rb,$y:()=>sp,A8:()=>xc,Ag:()=>Ka,C1:()=>Wc,C9:()=>jo,Cz:()=>ac,Er:()=>ph,G6:()=>kT,HO:()=>qi,HT:()=>eo,J1:()=>Oo,JQ:()=>eI,Jr:()=>Yi,Lg:()=>cp,MN:()=>ds,Mz:()=>Sa,NF:()=>Ps,O7:()=>UM,Od:()=>Nu,QW:()=>ec,Qb:()=>em,R3:()=>Gm,SE:()=>ao,SQ:()=>wo,T$:()=>rb,T1:()=>_T,TV:()=>gp,U6:()=>hm,Ul:()=>sa,VN:()=>zd,VX:()=>vr,_w:()=>Oe,a5:()=>OT,bL:()=>pr,bU:()=>Fg,br:()=>R,dS:()=>WN,dX:()=>Th,dq:()=>Rm,du:()=>gg,e7:()=>we,eA:()=>Cc,eo:()=>Ml,ew:()=>me,fp:()=>Nl,gZ:()=>du,h5:()=>xm,jH:()=>Cr,k0:()=>Ir,l1:()=>no,lZ:()=>eN,md:()=>Tr,ml:()=>Zt,mq:()=>Kc,o9:()=>wr,o_:()=>ke,pp:()=>Gc,px:()=>fu,q:()=>Zy,q4:()=>zi,qn:()=>Co,rG:()=>Du,sK:()=>Li,tD:()=>Xd,tS:()=>ou,td:()=>og,tl:()=>_r,ul:()=>Ba,v_:()=>Ku,w8:()=>Xn,wt:()=>ba,xO:()=>Ns,xp:()=>gu,xs:()=>fn,yW:()=>Cm,yi:()=>iy,yj:()=>bM,zQ:()=>ET,zZ:()=>Oy});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(),B=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},P=(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)?P(t,U):Q(t,.4),G=(t,e)=>Z(t)?Q(t,U):P(t,.4),H=(t,e)=>Z(t)?Q(t,Y):P(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||B(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())}#B(){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.#B())}get data(){return this.#R}init(){super.init?.(),this.#U=n?this.shadowRoot.querySelector(n):this.baseElement,v(this,t=>{t.includes("data")?this.#P():this.#B()},{includeAttrs:[...o,"data"]})}#P(){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"],Bt=L("enriched-text");class Pt extends(It({componentName:Bt,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)(Pt),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=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,Te=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`,De=t=>ie($t,...t),ve=(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},ze=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,ze(n,[...e,o],i)),{}),Ce=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}},Se=(t,e)=>ze(t,[],t=>ve({},t,`var(${De(t)})`)),we=(t,e="")=>{const i=Object.entries((t=>ze(t,[],(t,e)=>({[De(t)]:Ce(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},Le="@container",Ae="$breakpoints",fe=t=>t.startsWith("$breakpoints."),Ee=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(Le))(e)?`${t}${e} {\n${Ee(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),ke=t=>{const e=(t=>ze(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===Ae)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]?.[Ae]||{},d=n.filter(fe),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>fe(t)?`${Le} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!fe(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]:Ce(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]:Ee(o[e])}),{})})},{})},Oe=({globals:t,components:e},i)=>({globals:we(t,i),components:ke(e)}),Ve=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),We=(t,e)=>{const i=ze(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=ie(e,n),s={[n]:r},a={[n]:Ve(r)};return{theme:ve({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},Re=t=>`${t}__override`,Ue=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${Re(t)}, ${o})`:o};class Ye{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 Qe=(t,e="fallback")=>Gt(t,e),Be=(t,e,{fallback:i})=>{if(!i)return{};const o=Qe(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)}},Pe=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=ie(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:Re(n)},Be(o,n,e[o]))},{}),Ze=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...Pe(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 Ye,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Qe(e,t?.suffix);return Ue(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,Ue(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?.()}}},Fe=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?.()}},Ge=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()}},He=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},Je=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})})}},$e=["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"],qe=t=>class extends t{init(){super.init?.(),_t(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>$e.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?`)}),{})}},_e=({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(Ge,Je,qe,He)(i)};function Xe(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const Ke=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(_e({componentName:t,baseSelector:e})){#A=Xe.bind(this,"blur");#f=Xe.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},ti=["required","pattern"],ei=Symbol("validationTarget"),ii=t=>class extends t{#C=ei;static get observedAttributes(){return[...t.observedAttributes||[],...ti]}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===ei?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),ti.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())}},oi=["invalid","required"],ni=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ri=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(ii(r)){static get observedAttributes(){return[...r.observedAttributes||[],...oi]}#E;#v=Xe.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=ni(t)||ni(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]})}}},si=t=>Ht(ri(t),Ze({componentNameOverride:ee("input-wrapper")})),ai=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Ze({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Pe(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()}}},li=t=>class extends t{#v=Xe.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)})}},di=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,Xe.call(this,"blur"),Xe.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Xe.call(this,"focus"),Xe.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,Xe.call(this,"input",{bubbles:!0,composed:!0})))})}},ci=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},ui=(...t)=>Ht(ii,li,qe,di)(_e(...t)),pi=ee("boolean-field-internal"),hi=["disabled","invalid","readonly"],gi=ui({componentName:pi,baseSelector:"div"}),Mi=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${pi}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${pi}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(pi),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 mi=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 yi=ee("checkbox"),{host:bi,component:Ni,checkboxElement:Ii,checkboxSurface:xi,checkboxLabel:ji,requiredIndicator:Ti,helperText:Di,errorMessage:vi}={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)"}},zi=Ht(Ze({mappings:{hostWidth:{...bi,property:"width"},hostDirection:{...bi,property:"direction"},fontSize:[bi,Ii,ji],fontFamily:[ji,Di,vi],labelTextColor:{...ji,property:"color"},labelSpacing:{...ji,property:"padding-inline-start"},labelLineHeight:{...ji,property:"line-height"},labelFontWeight:{...ji,property:"font-weight"},labelRequiredIndicator:{...Ti,property:"content"},errorMessageTextColor:{...vi,property:"color"},errorMessageIcon:{...vi,property:"background-image"},errorMessageIconSize:{...vi,property:"background-size"},errorMessageIconPadding:{...vi,property:"padding-inline-start"},errorMessageIconRepeat:{...vi,property:"background-repeat"},errorMessageIconPosition:{...vi,property:"background-position"},errorMessageFontSize:{...vi,property:"font-size"},inputValueTextColor:{...xi,property:"color"},inputBackgroundColor:{...Ii,property:"background-color"},inputBorderRadius:{...Ii,property:"border-radius"},inputBorderWidth:{...Ii,property:"border-width"},inputBorderOffset:{...Ii,property:"border-offset"},inputBorderColor:{...Ii,property:"border-color"},inputBorderStyle:{...Ii,property:"border-style"},inputOutlineWidth:{...Ii,property:"outline-width"},inputOutlineOffset:{...Ii,property:"outline-offset"},inputOutlineColor:{...Ii,property:"outline-color"},inputOutlineStyle:{...Ii,property:"outline-style"},inputAlign:{...Ii,property:"align-self"},inputContainerPadding:{...Ni,property:"padding"},inputContainerBackgroundColor:{...Ni,property:"background-color"},inputContainerBorderRadius:{...Ni,property:"border-radius"},inputContainerBorderWidth:{...Ni,property:"border-width"},inputContainerBorderColor:{...Ni,property:"border-color"},inputContainerBorderStyle:{...Ni,property:"border-style"},inputContainerOutlineWidth:{...Ni,property:"outline-width"},inputContainerOutlineOffset:{...Ni,property:"outline-offset"},inputContainerOutlineColor:{...Ni,property:"outline-color"},inputContainerOutlineStyle:{...Ni,property:"outline-style"},inputSize:[{...Ii,property:"width"},{...Ii,property:"height"},{...xi,property:"font-size"},{...Ni,property:"font-size"}]}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,Mi)(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(zi.cssVarList)}\n ${ye(zi.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:yi})),Ci=L("text");class Si extends(It({componentName:Ci,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:wi}={host:{selector:()=>":host"}},Li=T(ht({mappings:{hostWidth:{...wi,property:"width"},hostDirection:{...wi,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)(Si),Ai=L("link"),fi=["href","readonly"];class Ei extends(It({componentName:Ai,baseSelector:":host a"})){static get observedAttributes(){return fi.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 ki={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>Li.componentName}},{anchor:Oi,text:Vi,host:Wi,wrapper:Ri,link:Ui}=ki,Yi=T(ht({mappings:{hostWidth:{...Wi,property:"width"},hostDirection:{...Vi,property:"direction"},textAlign:Ri,textDecoration:{...Ui,property:"text-decoration",fallback:"none"},textColor:[{...Oi,property:"color"},{...Vi,property:Li.cssVarList.textColor}],cursor:Oi}}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(Ei);customElements.define(Ci,Li),customElements.define(Ai,Yi),customElements.define(Bt,Zt),customElements.define(pi,class extends gi{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:hi}),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(yi,zi);const Qi=ee("switch-toggle"),{host:Bi,component:Pi,checkboxElement:Zi,checkboxSurface:Fi,checkboxLabel:Gi,requiredIndicator:Hi,helperText:Ji,errorMessage:$i}={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)"}},qi=Ht(Ze({mappings:{hostWidth:{...Bi,property:"width"},hostDirection:{...Bi,property:"direction"},fontSize:[Pi,Gi,Gi],fontFamily:[Gi,Ji,$i],labelTextColor:[{...Gi,property:"color"},{...Gi,property:"-webkit-text-fill-color"}],labelSpacing:{...Gi,property:"padding-inline-start"},labelLineHeight:{...Gi,property:"line-height"},labelFontWeight:{...Gi,property:"font-weight"},labelRequiredIndicator:{...Hi,property:"content"},errorMessageTextColor:{...$i,property:"color"},errorMessageIcon:{...$i,property:"background-image"},errorMessageIconSize:{...$i,property:"background-size"},errorMessageIconPadding:{...$i,property:"padding-inline-start"},errorMessageIconRepeat:{...$i,property:"background-repeat"},errorMessageIconPosition:{...$i,property:"background-position"},errorMessageFontSize:{...$i,property:"font-size"},trackBorderWidth:{...Zi,property:"border-width"},trackBorderStyle:{...Zi,property:"border-style"},trackBorderColor:{...Zi,property:"border-color"},trackBackgroundColor:{...Zi,property:"background-color"},trackBorderRadius:{...Zi,property:"border-radius"},trackWidth:[{...Zi,property:"width"}],trackHeight:[{...Fi,property:"font-size"},{...Zi,property:"height"}],knobSize:[{...Fi,property:"width"},{...Fi,property:"height"}],knobTextColor:{...Fi,property:"color"},knobRadius:{...Fi,property:"border-radius"},knobTransitionDuration:{...Fi,property:"transition"},knobColor:{...Fi,property:"background-color"},knobTopOffset:{...Fi,property:"top"},knobLeftOffset:{...Fi,property:"left"},inputOutlineWidth:{...Zi,property:"outline-width"},inputOutlineOffset:{...Zi,property:"outline-offset"},inputOutlineColor:{...Zi,property:"outline-color"},inputOutlineStyle:{...Zi,property:"outline-style"}}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,Mi)(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(qi.cssVarList)}\n\t\t\t${ye(qi.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:Qi}));customElements.define(Qi,qi);const _i=ee("loader-linear");class Xi extends(_e({componentName:_i,baseSelector:":host > div"})){static get componentName(){return _i}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:Ki,host:to}={after:{selector:"::after"},host:{selector:()=>":host"}},eo=Ht(Ze({mappings:{hostDisplay:{},hostWidth:{...to,property:"width"},barHeight:[{property:"height"},{...Ki,property:"height"}],barBorderRadius:[{property:"border-radius"},{...Ki,property:"border-radius"}],verticalPadding:[{...to,property:"padding-top"},{...to,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...Ki,property:"background-color"},barWidth:{...Ki,property:"width"},animationDuration:[{},Ki],animationTimingFunction:[{},Ki],animationIterationCount:[{},Ki]}}),Fe,Ge)(Xi);customElements.define(_i,eo);const io=ee("loader-radial");class oo extends(_e({componentName:io,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 no=Ht(Ze({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:{}}}),Fe,Ge)(oo);customElements.define(io,no);const ro=ee("container");class so extends(_e({componentName:ro,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 ao=Ht(Ze({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:{}}}),Fe,Ge)(so);customElements.define(ro,ao);const lo=L("combo-box"),{host:co,inputField:uo,inputElement:po,placeholder:ho,toggle:go,clearButton:Mo,label:mo,requiredIndicator:yo,helperText:bo,errorMessage:No,loader:Io,overlayContent:xo}={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)"}},jo=T(ht({mappings:{hostWidth:{...co,property:"width"},hostDirection:{...co,property:"direction"},fontSize:[{},co],fontFamily:[mo,ho,uo,bo,No],labelFontSize:{...mo,property:"font-size"},labelFontWeight:{...mo,property:"font-weight"},inputValueFontWeight:{...uo,property:"font-weight"},inputPlaceholderFontWeight:{...ho,property:"font-weight"},helperTextFontWeight:{...bo,property:"font-weight"},errorMessageFontWeight:{...No,property:"font-weight"},labelTextColor:[{...mo,property:"color"},{...mo,property:"-webkit-text-fill-color"},{...yo,property:"color"}],errorMessageTextColor:{...No,property:"color"},errorMessageIcon:{...No,property:"background-image"},errorMessageIconSize:{...No,property:"background-size"},errorMessageIconPadding:{...No,property:"padding-inline-start"},errorMessageIconRepeat:{...No,property:"background-repeat"},errorMessageIconPosition:{...No,property:"background-position"},errorMessageFontSize:{...No,property:"font-size"},inputHeight:{...uo,property:"height"},inputBackgroundColor:{...uo,property:"background-color"},inputBorderColor:{...uo,property:"border-color"},inputBorderWidth:{...uo,property:"border-width"},inputBorderStyle:{...uo,property:"border-style"},inputBorderRadius:{...uo,property:"border-radius"},labelRequiredIndicator:{...yo,property:"content"},inputValueTextColor:{...uo,property:"color"},inputPlaceholderTextColor:{...ho,property:"color"},inputDropdownButtonCursor:[{...go,property:"cursor"},{...Mo,property:"cursor"}],inputDropdownButtonColor:[{...go,property:"color"},{...Mo,property:"color"}],inputDropdownButtonSize:[{...go,property:"font-size"},{...Mo,property:"font-size"}],inputDropdownButtonOffset:[{...go,property:"margin-right"},{...go,property:"margin-left"}],inputOutlineColor:{...uo,property:"outline-color"},inputOutlineWidth:{...uo,property:"outline-width"},inputOutlineStyle:{...uo,property:"outline-style"},inputOutlineOffset:{...uo,property:"outline-offset"},inputHorizontalPadding:[{...po,property:"padding-left"},{...po,property:"padding-right"}],labelPosition:{...mo,property:"position"},labelTopPosition:{...mo,property:"top"},labelHorizontalPosition:[{...mo,property:"left"},{...mo,property:"right"}],inputTransformY:{...mo,property:"transform"},inputTransition:{...mo,property:"transition"},marginInlineStart:{...mo,property:"margin-inline-start"},placeholderOpacity:{...ho,property:"opacity"},inputVerticalAlignment:{...uo,property:"align-items"},valueInputHeight:{...po,property:"height"},valueInputMarginBottom:{...po,property:"margin-bottom"},overlayBackground:{property:()=>jo.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>jo.cssVarList.overlay.textColor},overlayBorder:{property:()=>jo.cssVarList.overlay.border},overlayFontSize:{property:()=>jo.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>jo.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>jo.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>jo.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>jo.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>jo.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>jo.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>jo.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>jo.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>jo.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>jo.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>jo.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:{...Io,property:"top"},loaderLeft:{...Io,property:"left"},loaderRight:{...Io,property:"right"},loaderMargin:{...Io,property:"margin"},loaderWidth:{...Io,property:"width"},loaderHeight:{...Io,property:"height"},loaderBorder:{...Io,property:"border"},loaderBorderColor:{...Io,property:"border-color"},loaderBorderRadius:{...Io,property:"border-radius"},contentHeight:{...xo,property:"height"},contentOpacity:{...xo,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${$(jo.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:lo,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(lo,jo);const To=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")},Do=L("image"),vo=["src","src-dark"];class zo extends(It({componentName:Do,baseSelector:"slot"})){static get observedAttributes(){return vo}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(${Co.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=To(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=To(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 Co=T(ht({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),gt,Mt)(zo),So=L("icon"),wo=T(ht({mappings:{fill:[{},{property:Co.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:So})),Lo=L("button"),{host:Ao,label:fo,slottedIcon:Eo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let ko;const Oo=T(Yt({triggers:[{attr:"full-width",value:"true"}]}),ht({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...Ao,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...Ao,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:wo.cssVarList.fill},labelTextDecoration:{...fo,property:"text-decoration"},labelSpacing:{...fo,property:"gap"},textAlign:{...fo,property:"justify-content",fallback:"center"},iconSize:[{...Eo,property:"width"},{...Eo,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${ko}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Oo.cssVarList.outlineWidth}) + var(${Oo.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Oo.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Oo.cssVarList.hostHeight}) - var(${Oo.cssVarList.outlineWidth}) - var(${Oo.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Oo.cssVarList.hostWidth}) - var(${Oo.cssVarList.outlineWidth}) - var(${Oo.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style"],componentName:Lo})),{color:Vo,fontSize:Wo}=Oo.cssVarList;ko=`\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(${Vo});\n\t\ttop: calc(50% - (var(${Wo}) / 2));\n\t\tleft: calc(50% - (var(${Wo}) / 2));\n\t\tborder-width: calc(var(${Wo}) / 10);\n\t\twidth: var(${Wo});\n\t\theight: var(${Wo});\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(Lo,Oo);const Ro=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Uo=Ro[0],Yo="YYYY-MM-DD",Qo="/",Bo=["January","February","March","April","May","June","July","August","September","October","November","December"],Po=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zo={id:"month",min:1,max:12,placeholder:"MM"},Fo={id:"day",min:1,max:31,placeholder:"DD"},Go={id:"year",min:0,max:9999,placeholder:"YYYY"},Ho=1900,Jo=2099,$o=(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},qo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},_o=t=>{const e=(t=>`^${t.split(Qo).map(t=>qo[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Qo);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 $o([n,r,s].join(Qo))})(t,o,i)}},Xo=Object.fromEntries(Ro.map(t=>[t,_o(t)])),Ko=t=>!Number.isNaN(Number(t)),tn=t=>{const e=$o(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},en=(t,e)=>{const[i,o,n]=tn(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])},on=()=>$o().getTime(),nn=t=>$o(t).getFullYear().toString(),rn=t=>($o(t).getMonth()+1).toString(),sn=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),an=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,ln=({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`,dn=(t=Bo)=>t.map((t,e)=>ln({label:t,dataId:e+1,dataName:t})).join(""),cn=(t,e)=>{const[i,o]=tn(e),[n,r]=tn(t);return n===i&&r===o},un=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),pn=ee("calendar"),hn=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],gn=["calendar-label-submit","calendar-label-cancel"],Mn=ui({componentName:pn,baseSelector:"div"}),{calendar:mn,day:yn,dayEntry:bn,currentDay:Nn,selectedDay:In,disabledDay:xn,weekday:jn,topNav:Tn,topNavSelectors:Dn,bottomNav:vn,navPrev:zn,navNext:Cn,navPrevRTL:Sn,navNextRTL:wn,yearInput:Ln,monthInput:An}={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"}},fn=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...Tn,property:"padding-top"},{...Tn,property:"padding-bottom"}],topNavHorizointalPadding:[{...Tn,property:"padding-right"},{...Tn,property:"padding-left"}],topNavAlignment:{...Tn,property:"justify-content"},topNavGap:{...Tn,property:"gap"},topNavSelectorsGap:{...Dn,property:"gap"},bottomNavVerticalPadding:[{...vn,property:"padding-top"},{...vn,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...vn,property:"padding-right"},{...vn,property:"padding-left"}],bottomNavAlignment:{...vn,property:"justify-content"},bottomNavGap:{...vn,property:"gap"},navMarginBottom:{...Tn,property:"margin-bottom"},calendarPadding:[{...mn,property:"padding-bottom"},{...mn,property:"padding-right"},{...mn,property:"padding-left"}],navBorderBottomWidth:{...Tn,property:"border-bottom-width"},navBorderBottomColor:{...Tn,property:"border-bottom-color"},navBorderBottomStyle:{...Tn,property:"border-bottom-style"},weekdayFontSize:{...jn,property:"font-size"},weekdayFontWeight:{...jn,property:"font-weight"},currentDayBorderColor:{...Nn,property:"border-color"},currentDayBorderWidth:{...Nn,property:"border-width"},currentDayBorderStyle:{...Nn,property:"border-style"},dayHeight:{...bn,property:"height"},daySize:[{...yn,property:"height"},{...yn,property:"width"}],dayPadding:{...yn,property:"padding"},dayRadius:{...yn,property:"border-radius"},dayTextAlign:{...yn,property:"text-align"},dayBlockAlign:{...yn,property:"margin"},dayTextColor:{...yn,property:"color"},dayFontWeight:{...yn,property:"font-weight"},dayBackgroundColor:{...yn,property:"background-color"},dayCursor:{...yn,property:"cursor"},dayFontSize:{...yn,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...In,property:"color"},daySelectedBackgroundColor:{...In,property:"background-color"},dayDisabledTextdColor:{...xn,property:"color"},yearInputWidth:{...Ln,property:"width"},monthInputWidth:{...An,property:"width"},navButtonSize:[{...zn,property:"width"},{...zn,property:"height"},{...Cn,property:"width"},{...Cn,property:"height"}],navButtonCursor:[{...zn,property:"cursor"},{...Cn,property:"cursor"}],navButtonRotation:[{...Sn,property:"transform"},{...wn,property:"transform"}],navButtonOpacity:[{...zn,property:"opacity"},{...Cn,property:"opacity"}]}}),Fe,Ge)(class extends Mn{static get observedAttributes(){return[].concat(Mn.observedAttributes||[],hn,gn)}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 ${Oo.cssVarList.horizontalPadding}: 0;\n ${Oo.cssVarList.verticalPadding}: 0;\n ${Oo.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=$o(t).getTime();Ko(e)&&e!==this.epoch&&(this.epoch=e,this.renderCalendar())}get value(){return this.epoch?en(this.epoch,Yo):""}get isSelectedView(){return cn(this.preview,this.epoch)}get isTodayView(){return cn(on(),this.preview)}get monthNames(){return(t=>{const e=t?.split(",");return an(e,12)?e:Bo})(this.getAttribute("calendar-months"))}get weekdayNames(){return(t=>{const e=t?.split?.(",");return an(e,7)?e:Po})(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=$o().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 ${dn()}\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=un(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=un(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:$o(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||on(),e=nn(t),i=rn(t);this.monthInput.value=i,setTimeout(()=>{this.yearInput.baseElement.value=e})}}renderCalendar(){const t=$o(this.preview||on()).getTime(),[e,i]=tn(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=$o(this.preview);e.setDate(Number(t.target.getAttribute("data-date-day"))),this.value=en(e.getTime(),Yo),this.dispatchEvent(new CustomEvent("day-changed",{detail:e}))}onYearChange(t){if(!t.target.value)return;const e=$o(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=$o(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||nn(this.preview)}onMonthInputBlur(t){this.monthInput.baseElement.value=t.target.value||rn(this.preview)}getSelectedDayEle(){const t=$o(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${t}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${$o().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=$o(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=$o(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=$o(t).getTime();Ko(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=>ln({label:t,dataId:t,dataName:t})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=dn(this.monthNames))})}onSubmitLabelChange(t){this.submitButton&&(this.submitButton.textContent=t||"Done")}onCancelLabelChange(t){this.cancelButton&&(this.cancelButton.textContent=t||"Cancel")}onInitialMonthChange(t){const e=nn(this.preview);this.preview=$o(`${e}/${t}/1`).getTime()}onInitialYearChange(t){const e=rn(this.preview);this.preview=$o(`${t}/${e}/1`).getTime()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),e!==i&&(gn.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(pn,fn);const{host:En,label:kn,placeholder:On,requiredIndicator:Vn,inputField:Wn,input:Rn,inputMask:Un,helperText:Yn,errorMessage:Qn,disabledPlaceholder:Bn,inputDisabled:Pn,inputIcon:Zn,externalInput:Fn,externalInputDisabled:Gn,externalPlaceholder:Hn,externalDisabledPlaceholder:Jn}={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 $n={fontSize:[{},En],fontFamily:[kn,Wn,Yn,Qn],labelFontSize:{...kn,property:"font-size"},labelFontWeight:{...kn,property:"font-weight"},inputValueFontWeight:[{...Rn,property:"font-weight"},{...Fn,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...Hn,property:"font-weight"}],helperTextFontWeight:{...Yn,property:"font-weight"},errorMessageFontWeight:{...Qn,property:"font-weight"},labelTextColor:[{...kn,property:"color"},{...Vn,property:"color"},{...kn,property:"-webkit-text-fill-color"},{...Vn,property:"-webkit-text-fill-color"}],hostWidth:{...En,property:"width"},hostMinWidth:{...En,property:"min-width"},hostDirection:{...En,property:"direction"},inputDirection:{...Rn,property:"direction"},inputBackgroundColor:[{...Wn,property:"background-color"},{...Un,property:"background-color"}],errorMessageTextColor:{...Qn,property:"color"},errorMessageIcon:{...Qn,property:"background-image"},errorMessageIconSize:{...Qn,property:"background-size"},errorMessageIconPadding:{...Qn,property:"padding-inline-start"},errorMessageIconRepeat:{...Qn,property:"background-repeat"},errorMessageIconPosition:{...Qn,property:"background-position"},errorMessageFontSize:{...Qn,property:"font-size"},helperTextColor:{...Yn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Wn,property:"color"},{...Pn,property:"-webkit-text-fill-color"},{...Gn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Rn,property:"caret-color"},{...Fn,property:"caret-color"}],labelRequiredIndicator:{...Vn,property:"content"},inputBorderColor:{...Wn,property:"border-color"},inputBorderWidth:{...Wn,property:"border-width"},inputBorderStyle:{...Wn,property:"border-style"},inputBorderRadius:{...Wn,property:"border-radius"},inputHeight:{...Wn,property:"height"},inputHorizontalPadding:[{...Rn,property:"padding-left"},{...Rn,property:"padding-right"},{...Fn,property:"padding-left"},{...Fn,property:"padding-right"}],inputOutlineColor:{...Wn,property:"outline-color"},inputOutlineStyle:{...Wn,property:"outline-style"},inputOutlineWidth:{...Wn,property:"outline-width"},inputOutlineOffset:{...Wn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Rn,property:"text-align"},{...Fn,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Hn,property:"color"},{...On,property:"color"},{...Bn,property:"-webkit-text-fill-color"},{...Jn,property:"-webkit-text-fill-color"}],labelPosition:{...kn,property:"position"},labelTopPosition:{...kn,property:"top"},labelHorizontalPosition:[{...kn,property:"left"},{...kn,property:"right"}],inputTransformY:{...kn,property:"transform"},inputTransition:{...kn,property:"transition"},marginInlineStart:{...kn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Hn,property:"opacity"}],inputVerticalAlignment:[{...Wn,property:"align-items"},{...Fn,property:"align-items"}],valueInputHeight:[{...Rn,property:"height"},{...Fn,property:"height"}],valueInputMarginBottom:[{...Rn,property:"margin-bottom"},{...Fn,property:"margin-bottom"}],inputIconOffset:[{...Zn,property:"margin-right"},{...Zn,property:"margin-left"}],inputIconSize:{...Zn,property:"font-size"},inputIconColor:{...Zn,property:"color"},inputTextSecurity:[{...Rn,property:"-webkit-text-security"},{...Rn,property:"text-security"},{...Fn,property:"-webkit-text-security"},{...Fn,property:"text-security"}]};const qn=L("text-field"),_n=["type","label-type","copy-to-clipboard"],Xn=T(ht({mappings:$n}),gt,kt({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),Mt,t=>class extends t{static get observedAttributes(){return _n.concat(t.observedAttributes||[])}icon;init(){super.init?.(),f(this,this.baseElement,{includeAttrs:["placeholder"]})}renderCopyToClipboard(t){if(!t)return void this.icon?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"};this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",...e}),this.baseElement.appendChild(this.icon),this.icon.addEventListener("click",()=>{navigator.clipboard.writeText(this.value),Object.assign(this.icon,i),setTimeout(()=>{Object.assign(this.icon,e)},5e3)})}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(${Xn.cssVarList.inputOutlineWidth}) + var(${Xn.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${$(Xn.cssVarList)}\n\t\t\t${K("vaadin-text-field",Xn.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:qn}));customElements.define(qn,Xn);class Kn{#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 tr=ee("date-field"),er=ui({componentName:tr,baseSelector:"vaadin-popover"}),ir=["format","opened","initial-value","readonly","disable-calendar","utc-time"],or=["years-range","calendar-months","calendar-weekdays"],nr=[...ir,...or],rr=Xn.cssVarList,{host:sr,input:ar,inputEleRTL:lr,toggleButton:dr,overlay:cr,backdrop:ur}={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)"}},pr=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{iconMargin:{...dr,property:"margin-inline-end"},hostWidth:{...sr,property:"width"},hostDirection:{...sr,property:"direction"},textAlign:{...ar,property:"text-align"},rtlInputDirection:{...lr,property:rr.inputDirection},rtlInputAlignment:{...lr,property:rr.inputTextAlign},overlayGap:{property:()=>pr.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>pr.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>pr.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>pr.overlayBoxShadow},overlayOutlineWidth:{property:()=>pr.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>pr.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>pr.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontSize},labelFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.labelFontWeight},inputValueFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontWeight}}}),ai({name:"overlay",selector:"",mappings:{marginTop:{...cr,property:"margin-top"},backgroundColor:{...cr},backdropBackgroundColor:{...ur,property:"background-color"},backdropPointerEvents:{...ur,property:"pointer-events"},padding:{...cr},boxShadow:{...cr},outlineWidth:{...cr},outlineColor:{...cr},outlineStyle:{...cr}}}),Fe,Ge)(class extends er{epoch="";format=Uo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=Xo[this.format].getDate(this.inputElement.value);this.updateEpoch(sn(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=sn(t,this.isUtcTime)}dateCounters=[new Kn(Zo,this.onDateCounterChange.bind(this)),new Kn(Fo,this.onDateCounterChange.bind(this)),new Kn(Go,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(er.observedAttributes||[],nr)}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=Xo[this.format].getDate(this.inputElement.value);return Ko(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Qo).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(Qo)}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=en($o(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=$o(this.calendar.value);this.value=sn(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=Ko($o(this.inputElement.value||"").getTime())&&Xo[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",en(this.displayValueEpoch||this.epoch,Yo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",en(on(),Yo))),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(Xo).includes(t)&&(this.format=t,this.updateFormatPattern())}updateFormatPattern(){const t=this.getAttribute("format")||this.format||Uo;this.setAttribute("type","date"),this.setAttribute("pattern",Xo[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 Zo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case Go.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case Fo.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),ir.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):or.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>Jo||t.numberValue<Ho,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?Xo[e].getDate(i):null})(e,this.format);if(i)this.value=sn(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(tr,pr);const hr=ee("divider");class gr extends(_e({componentName:hr,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=Li.cssVarList,{host:mr,before:yr,after:br,text:Nr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},Ir=Ht(Ze({mappings:{hostWidth:{...mr,property:"width"},hostPadding:{...mr,property:"padding"},hostDirection:{...Nr,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Nr,property:Mr.textAlign},labelTextWidth:{...Nr,property:"width"},labelTextMaxWidth:{...Nr,property:"max-width"},labelTextVerticalSpacing:[{...Nr,property:"padding-top"},{...Nr,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Nr,property:"padding-right"},{...Nr,property:"padding-left"}],stripeColor:[{...yr,property:"background-color"},{...br,property:"background-color"}],stripeHorizontalThickness:[{...yr,property:"height"},{...br,property:"height"}],stripeVerticalThickness:[{...yr,property:"width"},{...br,property:"width"}],stripeColorOpacity:[{...yr,property:"opacity"},{...br,property:"opacity"}]}}),Fe,Ge)(gr);customElements.define(hr,Ir);const xr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(_e({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(Ze({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),Fe,Ge)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},jr=ee("logo"),Tr=xr({componentName:jr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(jr,Tr);const Dr=ee("totp-image"),vr=xr({componentName:Dr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Dr,vr);const zr=ee("notp-image"),Cr=xr({componentName:zr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(zr,Cr);const Sr=ee("number-field"),wr=Ht(Ze({mappings:$n}),Fe,si({proxyProps:["value","selectionStart"]}),Ge)(Ke({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(${wr.cssVarList.inputOutlineWidth}) + var(${wr.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${Te("vaadin-number-field")}\n\t\t\t${ye(wr.cssVarList)}\n\t\t\t${((t,e)=>`\n ${be(t)}\n ${Ie(t)}\n ${xe(t)}\n ${Ne(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 ${je(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",wr.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:Sr}));customElements.define(Sr,wr);const Lr="--descope-input-mask-content",Ar="--descope-input-mask-display",fr="--descope-input-mask-fallback",Er=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},kr=t=>t.replace(/\D/g,"")||"",Or=(t,e)=>{e?(t.style.setProperty(Lr,`"${e}"`),t.style.setProperty(Ar,"flex")):(t.style.removeProperty(Lr),t.style.removeProperty(Ar))},Vr=ee("passcode-internal"),Wr=["digits","loading"],Rr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Ur=ui({componentName:Vr,baseSelector:"div"}),Yr=ee("passcode"),Qr=["digits"],{host:Br,digitField:Pr,label:Zr,requiredIndicator:Fr,internalWrapper:Gr,focusedDigitField:Hr,errorMessage:Jr}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${Xn.componentName}[focused="true"]`},digitField:{selector:()=>Xn.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},$r=Xn.cssVarList,qr=no.cssVarList,_r=Ht(Ze({mappings:{fontSize:[{...Pr,property:$r.fontSize},Br],hostWidth:{property:"width"},hostDirection:{...Br,property:"direction"},fontFamily:[Br,{...Zr}],labelFontWeight:{...Zr,property:"font-weight"},errorMessageFontWeight:{...Jr,property:"font-weight"},digitValueFontWeight:{selector:Xn.componentName,property:$r.inputValueFontWeight},labelTextColor:[{...Zr,property:"color"},{...Zr,property:"-webkit-text-fill-color"},{...Fr,property:"color"},{...Fr,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Fr,property:"content"},errorMessageTextColor:{...Jr,property:"color"},errorMessageIcon:{...Jr,property:"background-image"},errorMessageIconSize:{...Jr,property:"background-size"},errorMessageIconPadding:{...Jr,property:"padding-inline-start"},errorMessageIconRepeat:{...Jr,property:"background-repeat"},errorMessageIconPosition:{...Jr,property:"background-position"},errorMessageFontSize:{...Jr,property:"font-size"},digitValueTextColor:{selector:Xn.componentName,property:$r.inputValueTextColor},digitSize:[{...Pr,property:"height"},{...Pr,property:"width"}],digitPadding:{...Pr,property:$r.inputHorizontalPadding},digitTextAlign:{...Pr,property:$r.inputTextAlign},digitCaretTextColor:{...Pr,property:$r.inputCaretTextColor},digitSpacing:{...Gr,property:"gap"},digitOutlineColor:{...Pr,property:$r.inputOutlineColor},digitOutlineWidth:{...Pr,property:$r.inputOutlineWidth},focusedDigitFieldOutlineColor:{...Hr,property:$r.inputOutlineColor},overlayOpacity:{...Gr,property:"opacity"},spinnerSize:{selector:no.componentName,property:qr.spinnerSize}}}),Fe,ci,si({proxyProps:["value","selectionStart"]}),Ge,t=>class extends t{static get observedAttributes(){return Qr.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 <${Vr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${Vr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Vr),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)}})(Ke({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(${$r.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 ${Te("vaadin-text-field")}\n\t\t\t${Ie("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Yr}));customElements.define(Vr,class extends Ur{static get observedAttributes(){return Wr.concat(Ur.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],kr(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}Er(e)}parseInputValue(t,e=""){const i=e.split("");i.length?this.fillDigits(i,t):t.value=""}initInputs(){this.inputs.forEach(t=>{E(`\n vaadin-text-field::part(input-field)::before {\n ${fr}: '';\n content: var(${Lr}, var(${fr}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Ar}, none);\n align-items: center;\n justify-content: center;\n }`,t);const e=r()(e=>{this.parseInputValue(t,e),Or(t)},0,{trailing:!0});let i=!1;t.addEventListener("input",o=>{t.value=kr(t.value),t.value&&Or(t,t.value[0]);const n="deleteContentBackward"===o?.inputType||i;i=!1,n&&Er(this.getPrevInput(t)),e(t.value)}),t.onkeydown=e=>{const{key:o}=e;"Backspace"===o?t.value?(t.setSelectionRange(1,1),i=!0):(e.preventDefault(),i=!1,Er(this.getPrevInput(t))):(i=!1,1===o.length&&(t.value=""))},oe(this,t,{includeAttrs:Rr}),t.shadowRoot.querySelector("input").setAttribute("aria-label","passcode digit")}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Wr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Yr,_r);const Xr=ee("password"),{host:Kr,inputField:ts,inputElement:es,inputElementPlaceholder:is,revealButtonContainer:os,revealButtonIcon:ns,label:rs,requiredIndicator:ss,errorMessage:as,helperText:ls}={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)"}},ds=Ht(Ze({mappings:{hostWidth:{...Kr,property:"width"},hostMinWidth:{...Kr,property:"min-width"},hostDirection:{...Kr,property:"direction"},fontSize:[{},Kr],fontFamily:[rs,ts,as,ls],inputHeight:{...ts,property:"height"},inputHorizontalPadding:[{...es,property:"padding-left"},{...es,property:"padding-right"}],inputBackgroundColor:{...ts,property:"background-color"},inputBorderStyle:{...ts,property:"border-style"},inputBorderWidth:{...ts,property:"border-width"},inputBorderColor:{...ts,property:"border-color"},inputBorderRadius:{...ts,property:"border-radius"},inputOutlineColor:{...ts,property:"outline-color"},inputOutlineStyle:{...ts,property:"outline-style"},inputOutlineOffset:{...ts,property:"outline-offset"},inputOutlineWidth:{...ts,property:"outline-width"},labelFontSize:{...rs,property:"font-size"},labelFontWeight:{...rs,property:"font-weight"},inputValueFontWeight:[{...es,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...is,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...ls,property:"font-weight"},errorMessageFontWeight:{...as,property:"font-weight"},labelTextColor:[{...rs,property:"color"},{...rs,property:"-webkit-text-fill-color"},{...ss,property:"color"},{...ss,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...ss,property:"content"},errorMessageTextColor:{...as,property:"color"},errorMessageIcon:{...as,property:"background-image"},errorMessageIconSize:{...as,property:"background-size"},errorMessageIconPadding:{...as,property:"padding-inline-start"},errorMessageIconRepeat:{...as,property:"background-repeat"},errorMessageIconPosition:{...as,property:"background-position"},errorMessageFontSize:{...as,property:"font-size"},inputPlaceholderTextColor:[{...is,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...es,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...os,property:"margin-right"},{...os,property:"margin-left"}],revealButtonSize:{...os,property:"font-size"},revealButtonColor:{...ns,property:"color"},labelPosition:{...rs,property:"position"},labelTopPosition:{...rs,property:"top"},labelHorizontalPosition:[{...rs,property:"left"},{...rs,property:"right"}],inputTransformY:{...rs,property:"transform"},inputTransition:{...rs,property:"transition"},marginInlineStart:{...rs,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...es,property:"opacity"}],inputVerticalAlignment:{...ts,property:"align-items"},valueInputHeight:{...es,property:"height"}}}),Fe,(({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}),si({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Ge,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")}})(Ke({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(ds.cssVarList)}\n\t\t\t${Ie("vaadin-password-field")}\n ${Te("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${ds.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:Xr}));customElements.define(Xr,ds);const cs=ee("text-area"),{host:us,label:ps,placeholder:hs,inputField:gs,textArea:Ms,requiredIndicator:ms,helperText:ys,errorMessage:bs}={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)"}},Ns=Ht(Ze({mappings:{hostWidth:{...us,property:"width"},hostMinWidth:{...us,property:"min-width"},hostDirection:{...us,property:"direction"},fontSize:[us,Ms],fontFamily:[ps,gs,ys,bs],labelFontSize:{...ps,property:"font-size"},labelFontWeight:{...ps,property:"font-weight"},inputValueFontWeight:{...Ms,property:"font-weight"},inputPlaceholderFontWeight:{...hs,property:"font-weight"},helperTextFontWeight:{...ys,property:"font-weight"},errorMessageFontWeight:{...bs,property:"font-weight"},labelTextColor:[{...ps,property:"color"},{...ps,property:"-webkit-text-fill-color"},{...ms,property:"color"}],labelRequiredIndicator:{...ms,property:"content"},errorMessageTextColor:{...bs,property:"color"},errorMessageIcon:{...bs,property:"background-image"},errorMessageIconSize:{...bs,property:"background-size"},errorMessageIconPadding:{...bs,property:"padding-inline-start"},errorMessageIconRepeat:{...bs,property:"background-repeat"},errorMessageIconPosition:{...bs,property:"background-position"},errorMessageFontSize:{...bs,property:"font-size"},inputBackgroundColor:{...gs,property:"background-color"},inputValueTextColor:{...Ms,property:"color"},inputPlaceholderTextColor:{...hs,property:"color"},inputBorderWidth:{...gs,property:"border-width"},inputBorderStyle:{...gs,property:"border-style"},inputBorderColor:{...gs,property:"border-color"},inputBorderRadius:{...gs,property:"border-radius"},inputOutlineStyle:{...gs,property:"outline-Style"},inputOutlineColor:{...gs,property:"outline-color"},inputOutlineOffset:{...gs,property:"outline-offset"},inputOutlineWidth:{...gs,property:"outline-width"},inputResizeType:{...Ms,property:"resize"},inputMinHeight:{...Ms,property:"min-height"},inputTextAlign:{...Ms,property:"text-align"}}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge)(Ke({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 ${Te("vaadin-text-area")}\n\t\t\t${ye(Ns.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:cs}));customElements.define(cs,Ns);var Is=[{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 xs=({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`,js=ee("phone-field-internal"),Ts=["disabled","size","bordered","readonly"],Ds=["country-input-placeholder","default-code","restrict-countries"],vs=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],zs=["label-type","country-input-label","label"],Cs={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},Ss=[].concat(Ts,Ds,vs,zs),ws=ui({componentName:js,baseSelector:"div"});customElements.define(js,class extends ws{static get observedAttributes(){return[].concat(ws.observedAttributes||[],Ss)}#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 ${Is.map(t=>xs(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=Is.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(Ss.includes(t)){const e=Cs[t]||t;Ts.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):Ds.includes(t)?this.comboBox.setAttribute(e,i):vs.includes(t)&&this.textField.setAttribute(e,i)}zs.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?Is.filter(e=>t.includes(e.code)):Is;this.querySelector("descope-combo-box").innerHTML=e.map(t=>xs(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=Cs[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 Ls=Xn.cssVarList,As=jo.cssVarList,fs=ee("phone-field"),{host:Es,label:ks,requiredIndicator:Os,inputField:Vs,internalAfter:Ws,countryCodeInput:Rs,phoneInput:Us,separator:Ys,errorMessage:Qs,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)"}},Ps=Ht(Ze({mappings:{fontSize:[Es,Vs,{selector:Xn.componentName,property:Xn.cssVarList.fontSize},{selector:jo.componentName,property:jo.cssVarList.fontSize}],fontFamily:[ks,Qs,Bs,{...Rs,property:jo.cssVarList.overlay.fontFamily}],hostWidth:[{...Es,property:"width"},{...Us,property:"width"},{...Rs,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Es,property:"direction"},inputBorderStyle:[{...Ws,property:"border-style"},{...Ys,property:"border-left-style"}],inputBorderWidth:[{...Ws,property:"border-width"},{...Ys,property:"border-left-width"}],inputBorderColor:[{...Ws,property:"border-color"},{...Ys,property:"border-left-color"}],inputBorderRadius:[{...Vs,property:"border-radius"},{...Ws,property:"border-radius"}],countryCodeInputWidth:{...Rs,property:As.hostWidth},countryCodeDropdownWidth:{...Rs,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Us,property:"width"},horizontalPadding:[{...Us,property:"padding-left"},{...Us,property:"padding-right"},{...Rs,property:"padding-left"},{...Rs,property:"padding-right"}],labelFontSize:{...ks,property:"font-size"},labelFontWeight:{...ks,property:"font-weight"},inputValueFontWeight:[{...Us,property:Ls.inputValueFontWeight},{...Rs,property:As.inputValueFontWeight}],inputPlaceholderFontWeight:{...Us,property:Ls.inputPlaceholderFontWeight},helperTextFontWeight:{...Bs,property:"font-weight"},errorMessageFontWeight:{...Qs,property:"font-weight"},labelTextColor:[{...ks,property:"color"},{...ks,property:"-webkit-text-fill-color"},{...Os,property:"color"}],labelRequiredIndicator:{...Os,property:"content"},errorMessageTextColor:{...Qs,property:"color"},errorMessageIcon:{...Qs,property:"background-image"},errorMessageIconSize:{...Qs,property:"background-size"},errorMessageIconPadding:{...Qs,property:"padding-inline-start"},errorMessageIconRepeat:{...Qs,property:"background-repeat"},errorMessageIconPosition:{...Qs,property:"background-position"},errorMessageFontSize:{...Qs,property:"font-size"},inputValueTextColor:[{...Us,property:Ls.inputValueTextColor},{...Rs,property:As.inputValueTextColor}],inputPlaceholderTextColor:{...Us,property:Ls.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:As.overlayItemBackgroundColor},inputOutlineStyle:{...Vs,property:"outline-style"},inputOutlineColor:{...Vs,property:"outline-color"},inputOutlineWidth:{...Vs,property:"outline-width"},inputOutlineOffset:{...Vs,property:"outline-offset"},valueInputHeight:[{...Rs,property:As.valueInputHeight}],valueInputMarginBottom:[{...Us,property:Ls.valueInputMarginBottom}],marginInlineStart:[{...Us,property:Ls.marginInlineStart},{...Rs,property:As.marginInlineStart}]}}),Fe,ci,si({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Is}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 \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(js),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"))}})(Ke({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(Ps.cssVarList)}\n\t\t\t${Ie("vaadin-text-field")}\n\t\t\t${je("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(${Ps.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${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\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Ls.inputOutlineWidth}: 0;\n\t\t\t\t${Ls.inputOutlineOffset}: 0;\n\t\t\t\t${Ls.inputBorderWidth}: 0;\n\t\t\t\t${Ls.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 ${Te("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:fs}));customElements.define(fs,Ps);const Zs=ee("phone-field-internal-input-box"),Fs=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],Gs={"phone-input-placeholder":"placeholder","phone-input-type":"type"},Hs=ui({componentName:Zs,baseSelector:"div"});customElements.define(Zs,class extends Hs{static get observedAttributes(){return[].concat(Hs.observedAttributes||[],Fs)}#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"),Is.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&&Fs.includes(t)){const e=Gs[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 Js=Xn.cssVarList,$s=ee("phone-input-box-field"),{host:qs,label:_s,inputElement:Xs,requiredIndicator:Ks,inputField:ta,internalComponent:ea,internalComponentAfter:ia,phoneInput:oa,errorMessage:na,helperText:ra}={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)"}},sa=Ht(Ze({mappings:{fontSize:[qs,ta,{selector:Xn.componentName,property:Xn.cssVarList.fontSize}],fontFamily:[_s,na,ra],hostWidth:{...qs,property:"width"},hostMinWidth:{...qs,property:"min-width"},hostDirection:{...qs,property:"direction"},inputHorizontalPadding:[{...oa,property:"padding-left"},{...oa,property:"padding-right"}],labelFontSize:{..._s,property:"font-size"},labelFontWeight:{..._s,property:"font-weight"},inputValueFontWeight:{...oa,property:Js.inputValueFontWeight},inputPlaceholderFontWeight:{...oa,property:Js.inputPlaceholderFontWeight},helperTextFontWeight:{...ra,property:"font-weight"},errorMessageFontWeight:{...na,property:"font-weight"},labelTextColor:[{..._s,property:"color"},{..._s,property:"-webkit-text-fill-color"},{...Ks,property:"color"}],labelRequiredIndicator:{...Ks,property:"content"},errorMessageTextColor:{...na,property:"color"},errorMessageIcon:{...na,property:"background-image"},errorMessageIconSize:{...na,property:"background-size"},errorMessageIconPadding:{...na,property:"padding-inline-start"},errorMessageIconRepeat:{...na,property:"background-repeat"},errorMessageIconPosition:{...na,property:"background-position"},errorMessageFontSize:{...na,property:"font-size"},inputValueTextColor:{...oa,property:Js.inputValueTextColor},inputPlaceholderTextColor:{...oa,property:Js.inputPlaceholderColor},inputBorderStyle:{...ia,property:"border-style"},inputBorderWidth:{...ia,property:"border-width"},inputBorderColor:{...ia,property:"border-color"},inputBorderRadius:[{...ea,property:"border-radius"},{...ia,property:"border-radius"}],inputOutlineStyle:{...ea,property:"outline-style"},inputOutlineColor:{...ea,property:"outline-color"},inputOutlineWidth:{...ea,property:"outline-width"},inputOutlineOffset:{...ea,property:"outline-offset"},labelPosition:{..._s,property:"position"},labelTopPosition:{..._s,property:"top"},labelHorizontalPosition:[{..._s,property:"left"},{..._s,property:"right"}],inputTransformY:{..._s,property:"transform"},inputTransition:{..._s,property:"transition"},marginInlineStart:{..._s,property:"margin-inline-start"},valueInputHeight:{...Xs,property:"height"},valueInputMarginBottom:{selector:Xn.componentName,property:Js.valueInputMarginBottom}}}),Fe,ci,si({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Is}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 `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Zs),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}})(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${ye(sa.cssVarList)}\n ${Ie("vaadin-text-field")}\n ${je("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 ${Js.inputOutlineWidth}: 0;\n ${Js.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 ${Te("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:$s}));customElements.define($s,sa);const aa=ee("new-password-internal"),la=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),da=ee("policy-validation"),ca=["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"],ua=["label","value",...ca];class pa extends(_e({componentName:da,baseSelector:":host > div"})){#Rt;#Ut=[];#Yt;static get observedAttributes(){return ua}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),ca.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:la(r,s),id:i};if(l)c.info=!0;else if(n){const t=new RegExp(la(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:ha,item:ga,symbolDefault:Ma,symbolSuccess:ma,symbolError:ya}={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'}},ba=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ha,property:"border-width"},borderStyle:{...ha,property:"border-style"},borderColor:{...ha,property:"border-color"},borderRadius:{...ha,property:"border-radius"},backgroundColor:{...ha,property:"background-color"},textColor:{property:"color"},labelMargin:{...ha,property:"gap"},itemsSpacing:{...ga,property:"line-height"},itemSymbolSuccessColor:{...ma,property:"color"},itemSymbolErrorColor:{...ya,property:"color"},itemSymbolDefault:{...Ma,property:"content"},itemSymbolSuccess:{...ma,property:"content"},itemSymbolError:{...ya,property:"content"}}}),Fe,Ge)(pa),Na=ee("new-password"),Ia=ba.cssVarList,{host:xa,label:ja,internalInputsWrapper:Ta,errorMessage:Da,helperText:va,passwordInput:za,policyPreview:Ca}={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"}},Sa=Ht(Ze({mappings:{fontSize:[xa,{},{selector:ds.componentName,property:ds.cssVarList.fontSize}],fontFamily:[ja,Da,va],labelFontSize:{...ja,property:"font-size"},labelFontWeight:{...ja,property:"font-weight"},inputValueFontWeight:{...za,property:ds.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...za,property:ds.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...va,property:"font-weight"},errorMessageFontWeight:{...Da,property:"font-weight"},labelTextColor:{...ja,property:"color"},errorMessageTextColor:{...Da,property:"color"},errorMessageIcon:{...Da,property:"background-image"},errorMessageIconSize:{...Da,property:"background-size"},errorMessageIconPadding:{...Da,property:"padding-inline-start"},errorMessageIconRepeat:{...Da,property:"background-repeat"},errorMessageIconPosition:{...Da,property:"background-position"},errorMessageFontSize:{...Da,property:"font-size"},hostWidth:{...xa,property:"width"},hostMinWidth:{...xa,property:"min-width"},hostDirection:[{...xa,property:"direction"},{...za,property:ds.cssVarList.hostDirection}],inputsRequiredIndicator:{...xa,property:"content"},spaceBetweenInputs:{...Ta,property:"gap"},policyPreviewBackgroundColor:{...Ca,property:Ia.backgroundColor},policyPreviewPadding:{...Ca,property:Ia.padding},valueInputHeight:{...za,property:ds.cssVarList.valueInputHeight},valueInputMarginBottom:{...za,property:ds.cssVarList.valueInputMarginBottom}}}),Fe,si({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<${aa}\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 </${aa}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(aa),"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")}})(Ke({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(ds.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:Na}));customElements.define(da,ba);const wa=/^password-/,La=/^confirm-/,Aa=(t,e)=>t.replace(e,""),fa=["password-label","password-placeholder"],Ea=["confirm-label","confirm-placeholder"],ka=["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"],Oa=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Va=[].concat(Oa,fa,Ea,ka),Wa=ui({componentName:aa,baseSelector:"div"});customElements.define(aa,class extends Wa{static get observedAttributes(){return[].concat(Wa.observedAttributes||[],Va)}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:ka,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(${Sa.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 HT}),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):Oa.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):fa.includes(t)?this.toggleBooleanAttribute(this.passwordInput,Aa(t,wa),i):Ea.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,Aa(t,La),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(Na,Sa);const Ra=ee("recaptcha"),Ua=["enabled","site-key","action","enterprise","variant"],Ya="recaptcha",Qa=ui({componentName:Ra,baseSelector:":host > div"}),Ba=Ht(Fe)(class extends Qa{#Qt=null;static get observedAttributes(){return Ua.concat(Qa.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Bt("true"===i),"variant"===t&&(this.#Pt(),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.#Pt()}#Pt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Ya),this.#Qt=Ya):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()}#Bt(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(Ra,Ba);const Pa=ee("upload-file"),Za=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Fa=ui({componentName:Pa,baseSelector:":host > div"}),Ga=Oo.cssVarList,{host:Ha,wrapper:Ja,icon:$a,title:qa,description:_a,requiredIndicator:Xa}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},Ka=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...Ha,property:"height"},hostWidth:{...Ha,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...Ha,property:"direction"},{selector:()=>Oo.componentName,property:Ga.hostDirection}],gap:{...Ja},lineHeight:{...Ja,property:"line-height"},titleFontSize:{...qa,property:"font-size"},titleFontWeight:{...qa,property:"font-weight"},descriptionFontSize:{..._a,property:"font-size"},labelTextColor:[{...qa,property:"color"},{..._a,property:"color"}],iconSize:{...$a,property:"width"},requiredIndicator:{...Xa,property:"content"}}}),Fe,Ge)(class extends Fa{static get observedAttributes(){return Za.concat(Fa.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" aria-labelledby="button"/>\n\t\t\t\t\t<descope-button id="button"></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',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(Pa,Ka);const tl=t=>{class e extends(ui({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=Xe.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},el=ee("button-selection-group-internal");class il extends(tl(el)){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 ol=ee("button-selection-group-item");class nl extends(_e({componentName:ol,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(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 rl=Ht(Ze({mappings:{hostDirection:{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},hostWidth:{selector:()=>Oo.componentName,property:"width"},backgroundColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.backgroundColor},labelTextColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.labelTextColor},borderColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderColor},borderWidth:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderWidth},borderStyle:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderStyle},borderRadius:{selector:()=>Oo.componentName,property:Oo.cssVarList.borderRadius},outlineColor:{selector:()=>Oo.componentName,property:Oo.cssVarList.outlineColor}}}),Fe,Ge)(nl),sl=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:al,label:ll,requiredIndicator:dl,internalWrapper:cl,errorMessage:ul}={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)"}},pl={hostWidth:{...al,property:"width"},hostDirection:{...al,property:"direction"},fontFamily:al,labelTextColor:[{...ll,property:"color"},{...dl,property:"color"}],labelRequiredIndicator:{...dl,property:"content"},errorMessageTextColor:{...ul,property:"color"},errorMessageIcon:{...ul,property:"background-image"},errorMessageIconSize:{...ul,property:"background-size"},errorMessageIconPadding:{...ul,property:"padding-inline-start"},errorMessageIconRepeat:{...ul,property:"background-repeat"},errorMessageIconPosition:{...ul,property:"background-position"},errorMessageFontSize:{...ul,property:"font-size"},itemsSpacing:{...cl,property:"gap"},itemsDirection:{...cl,property:"flex-direction"},itemsAlignment:{...cl,property:"align-items"},itemsWidth:{selector:()=>`::slotted(${rl.componentName})`,property:rl.cssVarList.hostWidth}},hl=`\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 ${Te("vaadin-text-field")}\n\t\t\t${Ie("vaadin-text-field")}\n `,gl=ee("button-selection-group"),Ml=Ht(Ze({mappings:{...pl}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${el}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${el}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(el),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"]})}})(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:gl}));customElements.define(el,il),customElements.define(ol,rl),customElements.define(gl,Ml);const ml=ee("button-multi-selection-group-internal");class yl extends(tl(ml)){#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 bl=ee("button-multi-selection-group"),Nl=Ht(Ze({mappings:{...pl}}),Fe,si({proxyProps:["value","selectionStart"]}),Ge,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${ml}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${ml}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ml),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"]})}})(Ke({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:bl}));customElements.define(ml,yl),customElements.define(bl,Nl);class Il 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 xl=ee("grid-text-column");customElements.define(xl,Il);const jl=ee("grid-custom-column");customElements.define(jl,class extends Il{_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 Tl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},Dl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class vl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=Tl(),i.addEventListener("input",()=>{const t=Dl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",Dl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=Tl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const zl=ee("grid-selection-column");customElements.define(zl,vl);class Cl 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 Sl=ee("grid-item-details-column");customElements.define(Sl,Cl),customElements.define(Do,Co),customElements.define(So,wo);const wl=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},Ll=ee("code-snippet");let Al=class extends(_e({componentName:Ll,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(wl(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=wl(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 fl={selector:()=>".copy-btn"},{root:El,docTag:kl,keyword:Ol,metaKeyword:Vl,templateTag:Wl,templateVariable:Rl,type:Ul,variableLanguage:Yl,title:Ql,titleClass:Bl,titleClassInherited:Pl,titleFunction:Zl,attr:Fl,attribute:Gl,literal:Hl,meta:Jl,number:$l,operator:ql,variable:_l,selectorAttr:Xl,selectorClass:Kl,selectorId:td,regexp:ed,string:id,metaString:od,builtIn:nd,symbol:rd,comment:sd,code:ad,formula:ld,name:dd,quote:cd,selectorTag:ud,selectorPseudo:pd,subst:hd,section:gd,bullet:Md,emphasis:md,strong:yd,addition:bd,deletion:Nd,charEscape:Id,link:xd,params:jd,property:Td,punctuation:Dd,tag:vd}={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"}},zd=Ht(Ze({mappings:{rootBgColor:{...El,property:"background-color"},rootTextColor:{...El,property:"color"},docTagTextColor:{...kl,property:"color"},keywordTextColor:{...Ol,property:"color"},metaKeywordTextColor:{...Vl,property:"color"},templateTagTextColor:{...Wl,property:"color"},templateVariableTextColor:{...Rl,property:"color"},typeTextColor:{...Ul,property:"color"},variableLanguageTextColor:{...Yl,property:"color"},titleTextColor:{...Ql,property:"color"},titleClassTextColor:{...Bl,property:"color"},titleClassInheritedTextColor:{...Pl,property:"color"},titleFunctionTextColor:{...Zl,property:"color"},attrTextColor:{...Fl,property:"color"},attributeTextColor:{...Gl,property:"color"},literalTextColor:{...Hl,property:"color"},metaTextColor:{...Jl,property:"color"},numberTextColor:{...$l,property:"color"},operatorTextColor:{...ql,property:"color"},variableTextColor:{..._l,property:"color"},selectorAttrTextColor:{...Xl,property:"color"},selectorClassTextColor:{...Kl,property:"color"},selectorIdTextColor:{...td,property:"color"},regexpTextColor:{...ed,property:"color"},stringTextColor:{...id,property:"color"},metaStringTextColor:{...od,property:"color"},builtInTextColor:{...nd,property:"color"},symbolTextColor:{...rd,property:"color"},commentTextColor:{...sd,property:"color"},codeTextColor:{...ad,property:"color"},formulaTextColor:{...ld,property:"color"},nameTextColor:{...dd,property:"color"},quoteTextColor:{...cd,property:"color"},selectorTagTextColor:{...ud,property:"color"},selectorPseudoTextColor:{...pd,property:"color"},substTextColor:{...hd,property:"color"},sectionTextColor:{...gd,property:"color"},bulletTextColor:{...Md,property:"color"},emphasisTextColor:{...md,property:"color"},strongTextColor:{...yd,property:"color"},additionTextColor:{...bd,property:"color"},additionBgColor:{...bd,property:"background-color"},deletionTextColor:{...Nd,property:"color"},deletionBgColor:{...Nd,property:"background-color"},charEscapeTextColor:{...Id,property:"color"},linkTextColor:{...xd,property:"color"},paramsTextColor:{...jd,property:"color"},propertyTextColor:{...Td,property:"color"},punctuationTextColor:{...Dd,property:"color"},tagTextColor:{...vd,property:"color"},copyButtonSize:[{...fl,property:"width"},{...fl,property:"height"}],copyButtonBorderRadius:{...fl,property:"border-radius"},copyButtonBorderWidth:{...fl,property:"border-width"},copyButtonBorderColor:{...fl,property:"border-color"},copyButtonBgColor:{...fl,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...fl,property:"color"}}}),Fe,Ge)(Al);customElements.define(Ll,zd);const Cd=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},Sd=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},wd=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",Ld=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${Sd(t)}</descope-code-snippet>`,Ad=t=>`<div class="row-details__value text" title="${t}">${Sd(t)}</div>`,fd=t=>Ld(JSON.stringify(t,null,2),"json"),Ed=t=>{const e=wd(t);return"object"===e?fd(t):"xml"===e?(t=>Ld(t,"xml"))(t):"array"===e?t.some(t=>"object"===wd(t))?fd(t):Ad(t.join(",\n")):Ad(t)},kd=ee("grid"),{host:Od,headerRow:Vd,headerRowCell:Wd,contentRow:Rd,firstRow:Ud,sortIndicators:Yd,activeSortIndicator:Qd,selectedRow:Bd,rowSeparator:Pd,resizeHandle:Zd,toggleDetailsPanelButton:Fd,toggleDetailsPanelButtonOpened:Gd,toggleDetailsPanelButtonClosed:Hd,detailsPanel:Jd,detailsPanelLabels:$d,selectedRowCell:qd,detailsPanelContent:_d}={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"}},Xd=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Vd},{...Rd}],fontSize:[{...Vd},{...Rd}],fontWeight:{...Rd},valueTextColor:{...Rd,property:"color"},backgroundColor:[{...Od,property:"background-color"},{...Rd,property:"background-color"}],sortIndicatorsColor:{...Yd,property:"color"},activeSortIndicator:{...Qd,property:"color"},borderColor:{...Od,property:"border-color"},borderWidth:{...Od,property:"border-width"},borderStyle:{...Od,property:"border-style"},borderRadius:{...Od,property:"border-radius"},selectedBackgroundColor:[{...Bd,property:"background-color"},{...qd,property:"background-color"}],headerRowTextColor:{...Wd,property:"color"},separatorColor:[{...Ud,property:"border-bottom-color"},{...Pd,property:"border-top-color"}],resizeHandleColor:{...Zd,property:"background-color"},hostDirection:{...Od,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Fd,property:"width"},{...Fd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...Gd,property:"color"},toggleDetailsPanelButtonClosedColor:{...Hd,property:"color"},toggleDetailsPanelButtonCursor:{...Fd,property:"cursor"},detailsPanelBackgroundColor:{...Jd,property:"background-color"},detailsPanelBorderTopColor:{...Jd,property:"border-top-color"},detailsPanelLabelsColor:{...$d,property:"color"},detailsPanelLabelsFontSize:{...$d,property:"font-size"},detailsPanelItemsGap:{..._d,property:"grid-gap"},detailsPanelPadding:{..._d,property:"padding"}}}),Fe,Ge,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=wd(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===wd(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Ed(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Ed(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);Cd(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(Cd(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")}})(Ke({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(${Xd.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:kd}));customElements.define(kd,Xd);const Kd=ee("modal"),tc=["opened"],ec=Ht(Ze({mappings:{overlayBackdropColor:{property:()=>ec.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>ec.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>ec.cssVarList.overlay.shadow},overlayWidth:{property:()=>ec.cssVarList.overlay.width},overlayBorderWidth:{property:()=>ec.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>ec.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>ec.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>ec.cssVarList.overlay.borderRadius}}}),ai({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"]}}),Fe,Ge,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],tc)}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")})}})(Ke({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:Kd}));customElements.define(Kd,ec);const ic=window.customElements.get("vaadin-notification-container");if(!ic)throw new Error("could not get vaadin-notification-container class");customElements.define(ee("notification-container"),class extends ic{});const oc=ee("notification-card"),nc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},rc=Ht(Ze({mappings:{hostMinWidth:{selector:nc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:nc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:nc.content,property:"border-width"},borderColor:{selector:nc.content,property:"border-color"},borderStyle:{selector:nc.content,property:"border-style"},borderRadius:[{selector:nc.content,property:"border-radius"},{selector:nc.overlay,property:"border-radius"}],verticalPadding:[{selector:nc.content,property:"padding-top"},{selector:nc.content,property:"padding-bottom"}],horizontalPadding:[{selector:nc.content,property:"padding-right"},{selector:nc.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()}}})(Ke({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:oc}));customElements.define(oc,rc);const sc=ee("notification"),ac=Ht(Fe,Ge,Je,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))}})(Ke({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:sc}));customElements.define(sc,ac);const lc=ee("mappings-field-internal"),dc=ui({componentName:lc,baseSelector:"div"}),cc=ee("mappings-field"),{host:uc,helperText:pc,errorMessage:hc,mappingItem:gc,labels:Mc,labelsText:mc,valueLabel:yc,attrLabel:bc,separator:Nc,labelsContainer:Ic}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},xc=Ht(Ze({mappings:{hostWidth:{...uc,property:"width"},hostDirection:{...uc,property:"direction"},fontSize:[{},uc,{...Nc,property:"margin-top"}],fontFamily:[pc,hc,Mc],separatorFontSize:{...Nc,property:"font-size"},labelsFontSize:{...mc,property:"font-size"},labelsLineHeight:[{...mc,property:"line-height"},{...Mc,property:"line-height"}],labelTextColor:[{...Mc,property:Li.cssVarList.textColor},{...Nc,property:"color"}],itemMarginBottom:{...gc,property:"margin-bottom"},valueLabelMinWidth:{...yc,property:"min-width"},attrLabelMinWidth:{...bc,property:"min-width"},labelsMarginBottom:{...Ic,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Fe,si({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Ge,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 <${lc}\n tabindex="-1"\n ></${lc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(lc),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()}})(Ke({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(${xc.cssVarList.separatorWidth}) 1fr var(${xc.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 ${Li.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(${xc.cssVarList.separatorWidth}) 1fr var(${xc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:cc}));customElements.define(lc,class extends dc{#oe;static get observedAttributes(){return[].concat(dc.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 jc=ee("mapping-item"),Tc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Dc=ui({componentName:jc,baseSelector:"div"});customElements.define(jc,class extends Dc{static get observedAttributes(){return[].concat(Dc.observedAttributes||[],Tc,["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:Tc}),oe(this,this.attributeInput,{includeAttrs:[...Tc,"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(cc,xc);const vc=L("badge");class zc extends(It({componentName:vc,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 Cc=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)(zc);var Sc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const wc=ee("user-attribute");class Lc extends(_e({componentName:wc,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="${Sc}" src-dark="${Sc}"></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(${Li.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,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MD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yMiAxLjI4MDE1IDE0Ljc1MjIgMS42ODgxNUwxMy4yNjQyIDMuMzY4MTVMMTEuOTIwMiAxLjg1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+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:Ac,textFields:fc,buttons:Ec,badge:kc,labelText:Oc,contentWrapper:Vc}={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"}},Wc=Ht(Ze({mappings:{hostWidth:{...Ac,property:"width"},hostMinWidth:{...Ac,property:"min-width"},hostMaxWidth:{...Ac,property:"max-width"},hostDirection:[{...Ac,property:"direction"},{...fc,property:Li.cssVarList.hostDirection},{...Ec,property:Oo.cssVarList.hostDirection},{...kc,property:Cc.cssVarList.hostDirection}],labelMinWidth:{...Oc,property:"min-width"},contentMinWidth:{...Vc,property:"min-width"},badgeMaxWidth:{...kc,property:"max-width"},itemsGap:[{property:"gap"},{...Vc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:wo.cssVarList.fill},{selector:()=>".check-icon",property:wo.cssVarList.fill}]}}),Fe,Ge)(Lc);customElements.define(vc,Cc),customElements.define(wc,Wc);const Rc=ee("user-auth-method");class Uc extends(_e({componentName:Rc,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:Yc,textField:Qc,buttons:Bc,badge:Pc,textWrapper:Zc,methodIconSlot:Fc}={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)'}},Gc=Ht(Ze({mappings:{hostWidth:{...Yc,property:"width"},hostMinWidth:{...Yc,property:"min-width"},hostMaxWidth:{...Yc,property:"max-width"},hostDirection:[{...Yc,property:"direction"},{...Qc,property:Li.cssVarList.hostDirection},{...Bc,property:Oo.cssVarList.hostDirection},{...Pc,property:Cc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Zc,property:"gap"}],iconSize:[{...Fc,property:"width"},{...Fc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:wo.cssVarList.fill}]}}),Fe,Ge)(Uc);customElements.define(Rc,Gc);const Hc=ee("saml-group-mappings-internal"),Jc=ui({componentName:Hc,baseSelector:""}),$c=ee("saml-group-mappings"),{host:qc,groupInput:_c,errorMessage:Xc}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},Kc=Ht(Ze({mappings:{hostWidth:{...qc,property:"width"},hostDirection:{...qc,property:"direction"},groupNameInputMarginBottom:{..._c,property:"margin-bottom"},errorMessageIcon:{...Xc,property:"background-image"},errorMessageIconSize:{...Xc,property:"background-size"},errorMessageIconPadding:{...Xc,property:"padding-inline-start"},errorMessageIconRepeat:{...Xc,property:"background-repeat"},errorMessageIconPosition:{...Xc,property:"background-position"},errorMessageFontSize:{...Xc,property:"font-size"}}}),Fe,si({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Ge,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Hc}\n tabindex="-1"\n ></${Hc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Hc),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"]})}})(Ke({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:$c}));customElements.define(Hc,class extends Jc{static get observedAttributes(){return["invalid"].concat(Jc.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($c,Kc);const tu=ee("radio-button"),eu=Ht(Ze({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"}}}),si({proxyProps:["setSelectionRange"]}),Ge,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")}})(Ke({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:tu})),iu=ee("radio-group"),ou=Ht(Ze({mappings:{...$n,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(${eu.componentName})`,property:eu.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${eu.componentName})`,property:eu.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${eu.componentName}[checked="true"])`,property:eu.cssVarList.radioBackgroundColor}}}),Fe,si({proxyProps:["setSelectionRange"]}),Ge,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(tu)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===tu),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"]})}})(Ke({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 ${Te("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:iu,includeForwardProps:["value"]}));customElements.define(tu,eu),customElements.define(iu,ou);const nu=()=>!0,ru=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,su=ee("scopes-list"),au=["checkbox","switch"];class lu extends(_e({componentName:su,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 au.includes(t)?t:au[0]}}const du=Ht(Ze({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>zi.componentName,property:zi.cssVarList.hostDirection},{selector:()=>qi.componentName,property:qi.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${zi.componentName}[required="true"]`,property:zi.cssVarList.inputBorderColor},{selector:`${qi.componentName}[required="true"]`,property:qi.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${zi.componentName}[required="true"]`,property:zi.cssVarList.inputValueTextColor},{selector:`${qi.componentName}[required="true"]`,property:qi.cssVarList.knobColor}]}}),(({itemRenderer:t=ru,validateSchema:e=nu,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())}#B(){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.#B())}get data(){return this.#R}init(){super.init?.(),_t(this,t=>{t.includes("data")?this.#P():this.#B()},{includeAttrs:[...o,"data"]})}#P(){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?zi:qi;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"]}),Fe,Ge)(lu),cu=L("list-item"),uu=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:cu,baseSelector:"slot"}));customElements.define(cu,uu);const pu=L("list");class hu extends(It({componentName:pu,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!==uu.componentName&&(e=t.querySelector(uu.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 gu=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)(hu);customElements.define(pu,gu),customElements.define(su,du);const Mu=ee("third-party-app-logo");class mu extends(_e({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 yu=">.company-logo-wrapper",bu=">.third-party-app-logo-wrapper",Nu=Ht(Ze({mappings:{logoMaxHeight:[{selector:yu,property:"height"},{selector:bu,property:"height"}],logoMaxWidth:[{selector:yu,property:"max-width"},{selector:bu,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:Tr.componentName,property:Tr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:wo.componentName,property:wo.cssVarList.fill}}}),Fe,Ge)(mu);customElements.define(Mu,Nu);const Iu=ee("security-questions-setup"),xu=["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"],ju=["count","questions"];class Tu extends(_e({componentName:Iu,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(xu)}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(Iu,"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:ju}),_t(this,this.#Me.bind(this),{includeAttrs:xu})}}const Du=Ht(Ze({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>jo.componentName,property:jo.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Fe,Ge)(Tu);customElements.define(Iu,Du);const vu=ee("security-questions-verify"),zu=["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"],Cu=["question-mode"],Su={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},wu=[...zu,...Cu],Lu=["questions"];class Au extends(_e({componentName:vu,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(wu),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(vu,"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 zu.includes(t):return this.textFields;case Cu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,Su[t]||t,this.getAttribute(t))})})}init(){super.init?.(),_t(this,()=>{this.#ge()},{includeAttrs:Lu}),_t(this,this.#Me.bind(this),{includeAttrs:wu})}}const fu=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Li.componentName,property:Li.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>Li.componentName,property:Li.cssVarList.textAlign},questionFontSize:{selector:()=>Li.componentName,property:Li.cssVarList.fontSize},questionFontFamily:{selector:()=>Li.componentName,property:Li.cssVarList.fontFamily},questionCursor:{selector:()=>Li.componentName,property:"cursor"},errorMessageIcon:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>Li.componentName,property:Li.cssVarList.errorMessageFontSize}}}),Fe,Ge)(Au);customElements.define(vu,fu);const Eu="^[\\w\\.\\%\\+\\-']+@(?:[A-Za-z0-9](?:[A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$",ku="^[\\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}\\-]+$",Ou=L("email-field"),Vu="email",{host:Wu,label:Ru,placeholder:Uu,requiredIndicator:Yu,inputField:Qu,input:Bu,inputMask:Pu,helperText:Zu,errorMessage:Fu,disabledPlaceholder:Gu,inputDisabled:Hu,inputIcon:Ju,externalInput:$u,externalInputDisabled:qu,externalPlaceholder:_u,externalDisabledPlaceholder:Xu}={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)"}},Ku=T(ht({mappings:{fontSize:[{},Wu],fontFamily:[Ru,Qu,Zu,Fu],labelFontSize:{...Ru,property:"font-size"},labelFontWeight:{...Ru,property:"font-weight"},inputValueFontWeight:[{...Bu,property:"font-weight"},{...$u,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{..._u,property:"font-weight"}],helperTextFontWeight:{...Zu,property:"font-weight"},errorMessageFontWeight:{...Fu,property:"font-weight"},labelTextColor:[{...Ru,property:"color"},{...Yu,property:"color"},{...Ru,property:"-webkit-text-fill-color"},{...Yu,property:"-webkit-text-fill-color"}],hostWidth:{...Wu,property:"width"},hostMinWidth:{...Wu,property:"min-width"},hostDirection:{...Wu,property:"direction"},inputDirection:{...Bu,property:"direction"},inputBackgroundColor:[{...Qu,property:"background-color"},{...Pu,property:"background-color"}],errorMessageTextColor:{...Fu,property:"color"},errorMessageIcon:{...Fu,property:"background-image"},errorMessageIconSize:{...Fu,property:"background-size"},errorMessageIconPadding:{...Fu,property:"padding-inline-start"},errorMessageIconRepeat:{...Fu,property:"background-repeat"},errorMessageIconPosition:{...Fu,property:"background-position"},errorMessageFontSize:{...Fu,property:"font-size"},helperTextColor:{...Zu,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Qu,property:"color"},{...Hu,property:"-webkit-text-fill-color"},{...qu,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Bu,property:"caret-color"},{...$u,property:"caret-color"}],labelRequiredIndicator:{...Yu,property:"content"},inputBorderColor:{...Qu,property:"border-color"},inputBorderWidth:{...Qu,property:"border-width"},inputBorderStyle:{...Qu,property:"border-style"},inputBorderRadius:{...Qu,property:"border-radius"},inputHeight:{...Qu,property:"height"},inputHorizontalPadding:[{...Bu,property:"padding-left"},{...Bu,property:"padding-right"},{...$u,property:"padding-left"},{...$u,property:"padding-right"}],inputOutlineColor:{...Qu,property:"outline-color"},inputOutlineStyle:{...Qu,property:"outline-style"},inputOutlineWidth:{...Qu,property:"outline-width"},inputOutlineOffset:{...Qu,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Bu,property:"text-align"},{...$u,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{..._u,property:"color"},{...Uu,property:"color"},{...Gu,property:"-webkit-text-fill-color"},{...Xu,property:"-webkit-text-fill-color"}],labelPosition:{...Ru,property:"position"},labelTopPosition:{...Ru,property:"top"},labelHorizontalPosition:[{...Ru,property:"left"},{...Ru,property:"right"}],inputTransformY:{...Ru,property:"transform"},inputTransition:{...Ru,property:"transition"},marginInlineStart:{...Ru,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{..._u,property:"opacity"}],inputVerticalAlignment:[{...Qu,property:"align-items"},{...$u,property:"align-items"}],valueInputHeight:[{...Bu,property:"height"},{...$u,property:"height"}],valueInputMarginBottom:[{...Bu,property:"margin-bottom"},{...$u,property:"margin-bottom"}],inputIconOffset:[{...Ju,property:"margin-right"},{...Ju,property:"margin-left"}],inputIconSize:{...Ju,property:"font-size"},inputIconColor:{...Ju,property:"color"},inputTextSecurity:[{...Bu,property:"-webkit-text-security"},{...Bu,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",Eu),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()}enableUnicode(){this.baseElement.setAttribute("pattern",ku),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",Vu),this.externalInput?.setAttribute("inputmode",Vu)}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(${Ku.cssVarList.inputOutlineWidth}) + var(${Ku.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${tt("vaadin-email-field")}\n\t\t\t${$(Ku.cssVarList)}\n\t\t\t${K("vaadin-email-field",Ku.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:Ou}));customElements.define(Ou,Ku);const tp=/[^\d\s+\-()]/,ep=ee("hybrid-field"),ip={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"]}},op={email:{"data-errormessage-value-missing-email":"data-errormessage-value-missing","data-errormessage-pattern-mismatch-email":"data-errormessage-pattern-mismatch"},phone:{"phone-input-label":"label","phone-minlength":"minlength","phone-format-value":"format-value","phone-strict-validation":"strict-validation","data-errormessage-value-missing-phone":"data-errormessage-value-missing"}},np="descope-phone-field",rp=_e({componentName:ep,baseSelector:"div"}),sp=Ht(Ze({componentNameOverride:ee("input-wrapper")}),Ze({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:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIcon},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconSize},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconPadding},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconRepeat},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageIconPosition},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageFontSize},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.labelFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.inputValueFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.inputPlaceholderFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.helperTextFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Ps.componentName,property:Ps.cssVarList.errorMessageFontWeight},{selector:()=>sa.componentName,property:sa.cssVarList.errorMessageFontWeight}]}}),Fe,Ge)(class extends rp{#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(np),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:ip.email,mapAttrs:op.email}),oe(this,this.phoneCountryCodeInput,{includeAttrs:ip.phone.countryCode,mapAttrs:op.phone}),oe(this,this.phoneInputBoxInput,{includeAttrs:ip.phone.inputBox,mapAttrs:op.phone}),this.inputs.forEach(t=>oe(this,t,{includeAttrs:ip.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&&!tp.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&&Ps.CountryCodes.find(e=>e.code===t);return e?.dialCode||Ps.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===np){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(ep,sp);const ap=ee("alert");class lp extends(_e({componentName:ap,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:dp}={icon:{selector:()=>".icon"}},cp=Ht(Ze({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:[{...dp,property:"content"},{...dp,property:"display",fallback:"none"}],iconSize:[{...dp,property:"width"},{...dp,property:"height"}]}}),Ze({componentNameOverride:ee("enriched-text")}),Ze({componentNameOverride:ee("text")}),Fe,Ge)(lp);customElements.define(ap,cp);const up=ee("hcaptcha"),pp=["enabled","site-key"],hp=ui({componentName:up,baseSelector:":host > div"}),gp=Ht(Ze({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"}]}}),Fe,Ge)(class extends hp{static get observedAttributes(){return pp.concat(hp.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(up,gp);const Mp=(Dp={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(Dp).reduce((t,e)=>{const i=Dp[e];return Object.assign(t,{[e]:me(i)})},{})),mp={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"}},yp=Se({fonts:mp}).fonts,bp={colors:Mp,typography:{h1:{font:yp.font1.family,weight:"900",size:"48px"},h2:{font:yp.font1.family,weight:"800",size:"38px"},h3:{font:yp.font1.family,weight:"600",size:"28px"},subtitle1:{font:yp.font2.family,weight:"500",size:"22px"},subtitle2:{font:yp.font2.family,weight:"400",size:"20px"},body1:{font:yp.font1.family,weight:"400",size:"16px"},body2:{font:yp.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:mp,direction:"ltr"},Np=(t=>ze(t,[],t=>ve({},t,De(t))))(bp),Ip=(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"}}),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=nt({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"};var Dp;(t=>{ot(t,[],t=>it({},t,et(t)))})(Tp);const vp=nt(Tp),zp=Oo.cssVarList,Cp={primary:vp.colors.primary,secondary:vp.colors.secondary,success:vp.colors.success,error:vp.colors.error,surface:vp.colors.surface},[Sp,wp,Lp]=st({mode:Cp},Lo),Ap={...Sp,[zp.fontFamily]:vp.fonts.font1.family,[zp.fontWeight]:"400",[zp.cursor]:"pointer",[zp.hostHeight]:"3em",[zp.hostWidth]:"auto",[zp.hostDirection]:vp.direction,[zp.borderRadius]:vp.radius.sm,[zp.borderWidth]:vp.border.xs,[zp.borderStyle]:"solid",[zp.borderColor]:"transparent",[zp.labelSpacing]:"0.25em",[zp.textAlign]:"center",textAlign:{right:{[zp.textAlign]:"right"},left:{[zp.textAlign]:"left"},center:{[zp.textAlign]:"center"}},[zp.verticalPadding]:"1em",[zp.horizontalPadding]:"0.875em",[zp.outlineWidth]:Tp.border.sm,[zp.outlineOffset]:"0px",[zp.outlineStyle]:"solid",[zp.outlineColor]:"transparent",[zp.iconSize]:"1.5em",size:{xs:{[zp.fontSize]:"12px"},sm:{[zp.fontSize]:"14px"},md:{[zp.fontSize]:"16px"},lg:{[zp.fontSize]:"18px"}},_square:{[zp.hostHeight]:"3em",[zp.hostWidth]:"3em",[zp.verticalPadding]:"0"},_fullWidth:{[zp.hostWidth]:"100%"},_loading:{[zp.cursor]:"wait",[zp.labelTextColor]:wp.main},_disabled:{[Lp.main]:vp.colors.surface.light,[Lp.dark]:vp.colors.surface.dark,[Lp.light]:vp.colors.surface.light,[Lp.contrast]:vp.colors.surface.main,[zp.iconColor]:vp.colors.surface.main},variant:{contained:{[zp.labelTextColor]:wp.contrast,[zp.backgroundColor]:wp.main,_hover:{[zp.backgroundColor]:wp.dark,_loading:{[zp.backgroundColor]:wp.main}},_active:{[zp.backgroundColor]:wp.main}},outline:{[zp.labelTextColor]:wp.main,[zp.borderColor]:wp.main,_hover:{[zp.labelTextColor]:wp.dark,[zp.borderColor]:wp.dark},_active:{[zp.labelTextColor]:wp.main,[zp.borderColor]:wp.main},_disabled:{[zp.iconColor]:wp.main}},link:{[zp.labelTextColor]:wp.main,[zp.horizontalPadding]:"0.125em",_hover:{[zp.labelTextColor]:wp.dark,[zp.labelTextDecoration]:"underline"},_active:{[zp.labelTextColor]:wp.main},_disabled:{[zp.iconColor]:wp.main}}},_focused:{[zp.outlineColor]:wp.light}},fp={...zp,...Lp};var Ep=Object.freeze({__proto__:null,default:Ap,vars:fp});const kp=nt(Tp),Op=Li.cssVarList,Vp={[Op.hostDirection]:kp.direction,[Op.textLineHeight]:"1.35em",[Op.textAlign]:"start",[Op.textColor]:kp.colors.surface.dark,variant:{h1:{[Op.fontSize]:kp.typography.h1.size,[Op.fontWeight]:kp.typography.h1.weight,[Op.fontFamily]:kp.typography.h1.font},h2:{[Op.fontSize]:kp.typography.h2.size,[Op.fontWeight]:kp.typography.h2.weight,[Op.fontFamily]:kp.typography.h2.font},h3:{[Op.fontSize]:kp.typography.h3.size,[Op.fontWeight]:kp.typography.h3.weight,[Op.fontFamily]:kp.typography.h3.font},subtitle1:{[Op.fontSize]:kp.typography.subtitle1.size,[Op.fontWeight]:kp.typography.subtitle1.weight,[Op.fontFamily]:kp.typography.subtitle1.font},subtitle2:{[Op.fontSize]:kp.typography.subtitle2.size,[Op.fontWeight]:kp.typography.subtitle2.weight,[Op.fontFamily]:kp.typography.subtitle2.font},body1:{[Op.fontSize]:kp.typography.body1.size,[Op.fontWeight]:kp.typography.body1.weight,[Op.fontFamily]:kp.typography.body1.font},body2:{[Op.fontSize]:kp.typography.body2.size,[Op.fontWeight]:kp.typography.body2.weight,[Op.fontFamily]:kp.typography.body2.font}},mode:{primary:{[Op.textColor]:kp.colors.surface.contrast},secondary:{[Op.textColor]:kp.colors.surface.dark},error:{[Op.textColor]:kp.colors.error.main},"error-dark":{[Op.textColor]:kp.colors.error.dark},success:{[Op.textColor]:kp.colors.success.main},"success-dark":{[Op.textColor]:kp.colors.success.dark},warning:{[Op.textColor]:kp.colors.warning.main},"warning-dark":{[Op.textColor]:kp.colors.warning.dark}},textAlign:{right:{[Op.textAlign]:"right"},left:{[Op.textAlign]:"left"},center:{[Op.textAlign]:"center"}},_fullWidth:{[Op.hostWidth]:"100%"},_italic:{[Op.fontStyle]:"italic"},_uppercase:{[Op.textTransform]:"uppercase"},_lowercase:{[Op.textTransform]:"lowercase"}};var Wp=Object.freeze({__proto__:null,default:Vp,vars:Op});const Rp=nt(Tp),Up=Yi.cssVarList,Yp={[Up.hostDirection]:Rp.direction,[Up.cursor]:"pointer",[Up.textColor]:Rp.colors.primary.main,textAlign:{right:{[Up.textAlign]:"right"},left:{[Up.textAlign]:"left"},center:{[Up.textAlign]:"center"}},_fullWidth:{[Up.hostWidth]:"100%"},_hover:{[Up.textDecoration]:"underline"},mode:{secondary:{[Up.textColor]:Rp.colors.secondary.main}}};var Qp=Object.freeze({__proto__:null,default:Yp,vars:Up});const Bp=nt(Tp),Pp=Zt.cssVarList,Zp={[Pp.hostDirection]:Bp.direction,[Pp.hostWidth]:rt(Op.hostWidth),[Pp.textLineHeight]:rt(Op.textLineHeight),[Pp.textColor]:rt(Op.textColor),[Pp.textAlign]:rt(Op.textAlign),[Pp.fontSize]:rt(Op.fontSize),[Pp.fontWeight]:rt(Op.fontWeight),[Pp.fontFamily]:rt(Op.fontFamily),[Pp.linkColor]:rt(Up.textColor),[Pp.linkTextDecoration]:"none",[Pp.linkHoverTextDecoration]:"underline",[Pp.fontWeightBold]:"900",[Pp.minWidth]:"0.25em",[Pp.minHeight]:"1.35em",[Pp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[Pp.hostDisplay]:"none"}}};var Fp=Object.freeze({__proto__:null,default:Zp,vars:Pp});const Gp=L("input-wrapper"),Hp=nt(Tp),[Jp,$p]=st({labelTextColor:Hp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:Hp.colors.surface.contrast,placeholderTextColor:Hp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Hp.colors.surface.dark,errorMessageTextColor:Hp.colors.error.main,successMessageTextColor:Hp.colors.success.main,borderWidth:Hp.border.xs,borderRadius:Hp.radius.xs,borderColor:"transparent",outlineWidth:Hp.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:Hp.colors.surface.main,fontFamily:Hp.fonts.font1.family,direction:Hp.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:Hp.colors.surface.light,_invalid:{outlineColor:Hp.colors.error.main}},_bordered:{outlineWidth:Hp.border.xs,borderColor:Hp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Hp.colors.error.main}},_disabled:{labelTextColor:Hp.colors.surface.light,borderColor:Hp.colors.surface.light,valueTextColor:Hp.colors.surface.light,placeholderTextColor:Hp.colors.surface.light,helperTextColor:Hp.colors.surface.light,backgroundColor:Hp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},Gp),qp=nt(Tp),_p=jo.cssVarList,Xp={[_p.hostWidth]:$p.width,[_p.hostDirection]:$p.direction,[_p.fontSize]:$p.fontSize,[_p.fontFamily]:$p.fontFamily,[_p.labelFontSize]:$p.labelFontSize,[_p.labelFontWeight]:$p.labelFontWeight,[_p.inputValueFontWeight]:$p.inputValueFontWeight,[_p.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[_p.helperTextFontWeight]:$p.helperTextFontWeight,[_p.errorMessageFontWeight]:$p.errorMessageFontWeight,[_p.labelTextColor]:$p.labelTextColor,[_p.errorMessageTextColor]:$p.errorMessageTextColor,[_p.inputBorderColor]:$p.borderColor,[_p.inputBorderWidth]:$p.borderWidth,[_p.inputBorderStyle]:$p.borderStyle,[_p.inputBorderRadius]:$p.borderRadius,[_p.inputOutlineColor]:$p.outlineColor,[_p.inputOutlineOffset]:$p.outlineOffset,[_p.inputOutlineWidth]:$p.outlineWidth,[_p.inputOutlineStyle]:$p.outlineStyle,[_p.labelRequiredIndicator]:$p.requiredIndicator,[_p.inputValueTextColor]:$p.valueTextColor,[_p.inputPlaceholderTextColor]:$p.placeholderTextColor,[_p.inputBackgroundColor]:$p.backgroundColor,[_p.inputHorizontalPadding]:$p.horizontalPadding,[_p.inputHeight]:$p.inputHeight,[_p.inputDropdownButtonColor]:qp.colors.surface.dark,[_p.inputDropdownButtonCursor]:"pointer",[_p.inputDropdownButtonSize]:$p.toggleButtonSize,[_p.inputDropdownButtonOffset]:qp.spacing.xs,[_p.overlayItemPaddingInlineStart]:qp.spacing.xs,[_p.overlayItemPaddingInlineEnd]:qp.spacing.lg,[_p.labelPosition]:$p.labelPosition,[_p.labelTopPosition]:$p.labelTopPosition,[_p.labelHorizontalPosition]:$p.labelHorizontalPosition,[_p.inputTransformY]:$p.inputTransformY,[_p.inputTransition]:$p.inputTransition,[_p.marginInlineStart]:$p.marginInlineStart,[_p.placeholderOpacity]:$p.placeholderOpacity,[_p.inputVerticalAlignment]:$p.inputVerticalAlignment,[_p.valueInputHeight]:$p.valueInputHeight,[_p.valueInputMarginBottom]:$p.valueInputMarginBottom,[_p.errorMessageIcon]:$p.errorMessageIcon,[_p.errorMessageIconSize]:$p.errorMessageIconSize,[_p.errorMessageIconPadding]:$p.errorMessageIconPadding,[_p.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[_p.errorMessageIconPosition]:$p.errorMessageIconPosition,[_p.errorMessageFontSize]:$p.errorMessageFontSize,_readonly:{[_p.inputDropdownButtonCursor]:"default"},[_p.overlayFontSize]:$p.fontSize,[_p.overlayFontFamily]:$p.fontFamily,[_p.overlayCursor]:"pointer",[_p.overlayItemBoxShadow]:"none",[_p.overlayBackground]:$p.backgroundColor,[_p.overlayTextColor]:$p.valueTextColor,[_p.overlayCheckmarkDisplay]:"initial",[_p.overlaySelectedItemBackground]:"initial",[_p.overlaySelectedItemHoverBackground]:qp.colors.primary.highlight,[_p.overlaySelectedItemFocusBackground]:qp.colors.primary.highlight,[_p.overlayItemHoverBackground]:qp.colors.primary.highlight,[_p.overlayItemFocusBackground]:qp.colors.primary.highlight,[_p.overlay.margin]:"0",[_p.overlay.contentHeight]:"100%",[_p.overlay.contentOpacity]:"1",[_p.overlay.scrollerMinHeight]:"1px",_loading:{[_p.overlay.loaderTop]:"50%",[_p.overlay.loaderLeft]:"50%",[_p.overlay.loaderRight]:"auto",[_p.overlay.loaderMargin]:"-15px 0 0 -15px",[_p.overlay.loaderWidth]:"30px",[_p.overlay.loaderHeight]:"30px",[_p.overlay.loaderBorder]:"2px solid transparent",[_p.overlay.loaderBorderColor]:`${qp.colors.primary.highlight} ${qp.colors.primary.highlight} ${qp.colors.primary.main} ${qp.colors.primary.main}`,[_p.overlay.loaderBorderRadius]:"50%",[_p.overlay.contentHeight]:"100px",[_p.overlay.scrollerMinHeight]:"100px",[_p.overlay.contentOpacity]:"0"}};var Kp=Object.freeze({__proto__:null,comboBox:Xp,default:Xp,vars:_p});const th=nt(Tp),[eh,ih]=st({shadowColor:"#00000020"},vc),{shadowColor:oh}=ih,nh=Cc.cssVarList,rh={...eh,[nh.hostWidth]:"fit-content",[nh.hostDirection]:th.direction,[nh.textAlign]:"center",[nh.fontFamily]:th.fonts.font1.family,[nh.fontWeight]:"400",[nh.verticalPadding]:"0.25em",[nh.horizontalPadding]:"0.5em",[nh.borderWidth]:th.border.xs,[nh.borderRadius]:th.radius.xs,[nh.borderColor]:"transparent",[nh.borderStyle]:"solid",_fullWidth:{[nh.hostWidth]:"100%"},size:{xs:{[nh.fontSize]:"12px"},sm:{[nh.fontSize]:"14px"},md:{[nh.fontSize]:"16px"},lg:{[nh.fontSize]:"18px"}},variant:{contained:{[nh.backgroundColor]:th.colors.surface.main}},_shrinkToIndicator:{[nh.hostWidth]:"13px",[nh.hostHeight]:"13px",[nh.borderRadius]:"50%",[nh.fontSize]:"0",[nh.textIndent]:"-9999px"},mode:{default:{[nh.textColor]:th.colors.surface.dark,_bordered:{[nh.borderColor]:th.colors.surface.light}},primary:{[nh.textColor]:th.colors.primary.main,_bordered:{[nh.borderColor]:th.colors.primary.light}},secondary:{[nh.textColor]:th.colors.secondary.main,_bordered:{[nh.borderColor]:th.colors.secondary.light}},error:{[nh.textColor]:th.colors.error.main,_bordered:{[nh.borderColor]:th.colors.error.light}},success:{[nh.textColor]:th.colors.success.main,_bordered:{[nh.borderColor]:th.colors.success.light}}},shadow:{sm:{[nh.boxShadow]:`${th.shadow.wide.sm} ${oh}, ${th.shadow.narrow.sm} ${oh}`},md:{[nh.boxShadow]:`${th.shadow.wide.md} ${oh}, ${th.shadow.narrow.md} ${oh}`},lg:{[nh.boxShadow]:`${th.shadow.wide.lg} ${oh}, ${th.shadow.narrow.lg} ${oh}`},xl:{[nh.boxShadow]:`${th.shadow.wide.xl} ${oh}, ${th.shadow.narrow.xl} ${oh}`}}};var sh=Object.freeze({__proto__:null,default:rh,vars:nh});const ah=L("avatar");class lh extends(It({componentName:ah,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:dh,editableBadge:ch,avatar:uh}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},ph=T(ht({mappings:{hostWidth:[{...dh,property:"width"},{...dh,property:"min-width"}],hostHeight:{...dh,property:"height"},cursor:[uh,dh],hostDirection:{...dh,property:"direction"},avatarTextColor:{...uh,property:"color"},avatarBackgroundColor:{...uh,property:"background-color"},editableIconColor:{...ch,property:"color"},editableBorderColor:{...ch,property:"border-color"},editableBackgroundColor:{...ch,property:"background-color"}}}),gt,Mt)(lh),hh=nt(Tp),gh=ph.cssVarList,Mh={[gh.hostDirection]:hh.direction,[gh.editableIconColor]:hh.colors.surface.dark,[gh.editableBorderColor]:hh.colors.surface.dark,[gh.editableBackgroundColor]:hh.colors.surface.main,[gh.avatarTextColor]:hh.colors.surface.main,[gh.avatarBackgroundColor]:hh.colors.surface.dark,_editable:{[gh.cursor]:"pointer"},size:{xs:{[gh.hostWidth]:"30px",[gh.hostHeight]:"30px"},sm:{[gh.hostWidth]:"40px",[gh.hostHeight]:"40px"},md:{[gh.hostWidth]:"60px",[gh.hostHeight]:"60px"},lg:{[gh.hostWidth]:"98px",[gh.hostHeight]:"98px"},xl:{[gh.hostWidth]:"120px",[gh.hostHeight]:"120px"},"2xl":{[gh.hostWidth]:"140px",[gh.hostHeight]:"140px"}}},mh={...gh};var yh=Object.freeze({__proto__:null,default:Mh,vars:mh});const bh=wo.cssVarList;var Nh=Object.freeze({__proto__:null,default:{},vars:bh});const Ih=Co.cssVarList;var xh=Object.freeze({__proto__:null,default:{},vars:Ih});const jh=L("apps-list"),Th=T(ht({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:gu.componentName,property:gu.cssVarList.gap},maxRowItems:{selector:gu.componentName,property:gu.cssVarList.maxRowItems},itemsFontWeight:{selector:Li.componentName,property:Li.cssVarList.fontWeightOverride},itemsFontSize:{selector:Li.componentName,property:Li.cssVarList.fontSizeOverride},itemsTextAlign:{selector:Li.componentName,property:Li.cssVarList.textAlign},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},logoBackgroundColor:{selector:ph.componentName,property:ph.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:ph.componentName,property:ph.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${uu.componentName}:hover`,property:uu.cssVarList.backgroundColor},backgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:uu.componentName,property:uu.cssVarList.borderStyleOverride},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColorOverride},itemBorderWidth:{selector:uu.componentName,property:uu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:Li.componentName,property:Li.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:jh,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 ${Li.cssVarList.hostDirection}: var(${Th.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),Dh=Th.cssVarList,vh=nt(Tp),zh="400px",Ch={[Dh.itemsTextAlign]:"start",[Dh.hostDirection]:vh.direction,[Dh.maxHeight]:zh,[Dh.itemHoverBackgroundColor]:vh.colors.surface.highlight,_empty:{[Dh.minHeight]:zh},size:{xs:{[Dh.itemsFontSize]:"14px",[Dh.itemsFontWeight]:"normal"},sm:{[Dh.itemsFontSize]:"14px",[Dh.itemsFontWeight]:"normal"},md:{[Dh.itemsFontSize]:"16px",[Dh.itemsFontWeight]:"normal"},lg:{[Dh.itemsFontSize]:"20px",[Dh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[Dh.itemVerticalPadding]:vh.spacing.xs,[Dh.itemHorizontalPadding]:vh.spacing.xs},sm:{[Dh.itemVerticalPadding]:vh.spacing.sm,[Dh.itemHorizontalPadding]:vh.spacing.sm},md:{[Dh.itemVerticalPadding]:vh.spacing.md,[Dh.itemHorizontalPadding]:vh.spacing.md},lg:{[Dh.itemVerticalPadding]:vh.spacing.lg,[Dh.itemHorizontalPadding]:vh.spacing.lg},xl:{[Dh.itemVerticalPadding]:vh.spacing.xl,[Dh.itemHorizontalPadding]:vh.spacing.xl}}};var Sh=Object.freeze({__proto__:null,default:Ch,vars:Dh});const wh=nt(Tp),Lh=gu.cssVarList,[Ah,fh,Eh]=st({shadowColor:"#00000020"},pu),{shadowColor:kh}=fh,Oh={...Ah,[Lh.hostWidth]:"100%",[Lh.backgroundColor]:wh.colors.surface.main,[Lh.fontFamily]:wh.fonts.font1.family,[Lh.borderColor]:wh.colors.surface.light,[Lh.borderStyle]:"solid",[Lh.borderWidth]:wh.border.xs,[Lh.borderRadius]:wh.radius.sm,[Lh.gap]:wh.spacing.md,[Lh.verticalPadding]:wh.spacing.lg,[Lh.horizontalPadding]:wh.spacing.lg,[Lh.boxShadow]:`${wh.shadow.wide.sm} ${kh}, ${wh.shadow.narrow.sm} ${kh}`,[Lh.maxHeight]:"100%",[Lh.hostDirection]:wh.direction,[Lh.minItemsWidth]:"150px",[Lh.maxRowItems]:"1000",_empty:{[Lh.minHeight]:"150px",[Lh.emptyStateTextColor]:wh.colors.surface.dark,[Lh.emptyStateTextFontFamily]:wh.fonts.font1.family},variant:{tiles:{[Lh.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${rt(Lh.minItemsWidth)}, 100%),\n calc((100% - (${rt(Lh.maxRowItems)} - 1) * ${rt(Lh.gap)}) / ${rt(Lh.maxRowItems)})),\n 1fr))`,[Lh.maxItemsWidth]:"200px",[Lh.itemsHorizontalAlign]:"center"}},gap:{xs:{[Lh.gap]:wh.spacing.xs},sm:{[Lh.gap]:wh.spacing.sm},md:{[Lh.gap]:wh.spacing.md},lg:{[Lh.gap]:wh.spacing.lg},xl:{[Lh.gap]:wh.spacing.xl}}},Vh={...Lh,...Eh};var Wh=Object.freeze({__proto__:null,default:Oh,vars:Vh});const Rh=nt(Tp),Uh=uu.cssVarList,Yh={[Uh.backgroundColor]:Rh.colors.surface.main,[Uh.verticalPadding]:Rh.spacing.lg,[Uh.horizontalPadding]:Rh.spacing.lg,[Uh.gap]:Rh.spacing.md,[Uh.borderStyle]:"solid",[Uh.borderWidth]:Rh.border.xs,[Uh.borderColor]:Rh.colors.surface.main,[Uh.borderRadius]:Rh.radius.sm,[Uh.cursor]:"pointer",[Uh.alignItems]:"center",[Uh.flexDirection]:"row",[Uh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Uh.alignItems]:"flex-start",[Uh.flexDirection]:"column",[Uh.borderColor]:Rh.colors.surface.light}},_hover:{[Uh.backgroundColor]:Rh.colors.surface.highlight},_active:{[Uh.backgroundColor]:Rh.colors.surface.main,[Uh.borderColor]:Rh.colors.primary.light,[Uh.outline]:`1px solid ${Rh.colors.primary.light}`}};var Qh=Object.freeze({__proto__:null,default:Yh,vars:Uh});const Bh=L("multi-select-combo-box"),{host:Ph,inputField:Zh,inputElement:Fh,placeholder:Gh,toggle:Hh,clearButton:Jh,label:$h,requiredIndicator:qh,helperText:_h,errorMessage:Xh,chip:Kh,chipLabel:tg,overflowChipFirstBorder:eg,overflowChipSecondBorder:ig}={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"}},og=T(ht({mappings:{hostWidth:{...Ph,property:"width"},hostDirection:{...Ph,property:"direction"},fontSize:[{},Ph],chipFontSize:{...tg,property:"font-size"},fontFamily:[$h,Gh,Zh,_h,Xh,tg],labelFontSize:{...$h,property:"font-size"},labelFontWeight:{...$h,property:"font-weight"},inputValueFontWeight:{...Zh,property:"font-weight"},inputPlaceholderFontWeight:{...Gh,property:"font-weight"},helperTextFontWeight:{..._h,property:"font-weight"},errorMessageFontWeight:{...Xh,property:"font-weight"},labelTextColor:[{...$h,property:"color"},{...qh,property:"color"}],errorMessageTextColor:{...Xh,property:"color"},errorMessageIcon:{...Xh,property:"background-image"},errorMessageIconSize:{...Xh,property:"background-size"},errorMessageIconPadding:{...Xh,property:"padding-inline-start"},errorMessageIconRepeat:{...Xh,property:"background-repeat"},errorMessageIconPosition:{...Xh,property:"background-position"},errorMessageFontSize:{...Xh,property:"font-size"},inputHeight:{...Zh,property:"min-height"},inputBackgroundColor:{...Zh,property:"background-color"},inputBorderColor:{...Zh,property:"border-color"},inputBorderWidth:{...Zh,property:"border-width"},inputBorderStyle:{...Zh,property:"border-style"},inputBorderRadius:{...Zh,property:"border-radius"},labelRequiredIndicator:{...qh,property:"content"},inputValueTextColor:{...Zh,property:"color"},inputPlaceholderTextColor:{...Gh,property:"color"},inputDropdownButtonCursor:[{...Hh,property:"cursor"},{...Jh,property:"cursor"}],inputDropdownButtonColor:[{...Hh,property:"color"},{...Jh,property:"color"}],inputDropdownButtonSize:[{...Hh,property:"font-size"},{...Jh,property:"font-size"}],inputDropdownButtonOffset:[{...Hh,property:"margin-right"},{...Hh,property:"margin-left"}],inputOutlineColor:{...Zh,property:"outline-color"},inputOutlineWidth:{...Zh,property:"outline-width"},inputOutlineStyle:{...Zh,property:"outline-style"},inputOutlineOffset:{...Zh,property:"outline-offset"},inputHorizontalPadding:[{...Fh,property:"padding-left"},{...Fh,property:"padding-right"},{...Zh,property:"padding-inline-start"}],inputVerticalPadding:[{...Zh,property:"padding-top"},{...Zh,property:"padding-bottom"}],chipTextColor:{...tg,property:"color"},chipBackgroundColor:[{...Kh,property:"background-color"},{...eg,property:"border-color"},{...ig,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:{...Gh,property:"opacity"},inputVerticalAlignment:{...Zh,property:"align-items"},overlayBackground:{property:()=>og.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>og.cssVarList.overlay.textColor},overlayBorder:{property:()=>og.cssVarList.overlay.border},overlayFontSize:{property:()=>og.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>og.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>og.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>og.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>og.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>og.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${$(og.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:Bh,includeForwardProps:["items","renderer","selectedItems"]})),ng=L("multi-line-mappings"),rg=It({componentName:ng}),sg=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),ag=t=>[...new Set(t.map(sg).filter(Boolean))],lg=t=>{const e=sg(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},dg=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(lg).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},cg=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),ug={selector:()=>":host"},pg={selector:".row"},hg={selector:".add-action"},gg=T(ht({mappings:{hostWidth:{...ug,property:"width"},hostDirection:[{...ug,property:"direction"},{selector:og.componentName,property:og.cssVarList.hostDirection},{selector:Oo.componentName,property:Oo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...pg,property:"gap"},rowAlignItems:{...pg,property:"align-items"},rowWrap:{...pg,property:"flex-wrap"},addActionJustifyContent:{...hg,property:"justify-content"},addActionMarginTop:{...hg,property:"margin-top"}}}),gt)(class extends rg{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:dg(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:ag(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))}#Be({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.#Pe(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Ze({rowIndex:i,type:e,selectedValues:ag(s.value||[])})}),s}#Pe(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.#Be({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.#Be({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.#Pe(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(cg(o.firstValues,i)&&cg(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}cg(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}))}}),Mg=gg.cssVarList,mg={[Mg.hostDirection]:$p.direction,[Mg.rowsGap]:Tp.spacing.sm,[Mg.rowGap]:Tp.spacing.sm,[Mg.rowAlignItems]:"flex-end",[Mg.rowWrap]:"nowrap",[Mg.addActionJustifyContent]:"flex-start",[Mg.addActionMarginTop]:Tp.spacing.xs,_fullWidth:{[Mg.hostWidth]:"100%"}};var yg=Object.freeze({__proto__:null,default:mg,vars:Mg});const bg=nt(Tp),Ng=og.cssVarList,Ig={[Ng.hostWidth]:$p.width,[Ng.hostDirection]:$p.direction,[Ng.fontSize]:$p.fontSize,[Ng.fontFamily]:$p.fontFamily,[Ng.labelFontSize]:$p.labelFontSize,[Ng.labelFontWeight]:$p.labelFontWeight,[Ng.inputValueFontWeight]:$p.inputValueFontWeight,[Ng.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[Ng.helperTextFontWeight]:$p.helperTextFontWeight,[Ng.errorMessageFontWeight]:$p.errorMessageFontWeight,[Ng.labelTextColor]:$p.labelTextColor,[Ng.errorMessageTextColor]:$p.errorMessageTextColor,[Ng.inputBorderColor]:$p.borderColor,[Ng.inputBorderWidth]:$p.borderWidth,[Ng.inputBorderStyle]:$p.borderStyle,[Ng.inputBorderRadius]:$p.borderRadius,[Ng.inputOutlineColor]:$p.outlineColor,[Ng.inputOutlineOffset]:$p.outlineOffset,[Ng.inputOutlineWidth]:$p.outlineWidth,[Ng.inputOutlineStyle]:$p.outlineStyle,[Ng.labelRequiredIndicator]:$p.requiredIndicator,[Ng.inputValueTextColor]:$p.valueTextColor,[Ng.inputPlaceholderTextColor]:$p.placeholderTextColor,[Ng.inputBackgroundColor]:$p.backgroundColor,[Ng.inputHorizontalPadding]:$p.horizontalPadding,[Ng.inputVerticalPadding]:$p.verticalPadding,[Ng.inputHeight]:$p.inputHeight,[Ng.inputDropdownButtonColor]:bg.colors.surface.dark,[Ng.inputDropdownButtonCursor]:"pointer",[Ng.inputDropdownButtonSize]:$p.toggleButtonSize,[Ng.inputDropdownButtonOffset]:bg.spacing.xs,[Ng.overlayItemPaddingInlineStart]:bg.spacing.xs,[Ng.overlayItemPaddingInlineEnd]:bg.spacing.lg,[Ng.chipFontSize]:$p.chipFontSize,[Ng.chipTextColor]:bg.colors.surface.contrast,[Ng.chipBackgroundColor]:bg.colors.surface.light,[Ng.labelPosition]:$p.labelPosition,[Ng.labelTopPosition]:$p.labelTopPosition,[Ng.labelLeftPosition]:$p.labelLeftPosition,[Ng.labelHorizontalPosition]:$p.labelHorizontalPosition,[Ng.inputTransformY]:$p.inputTransformY,[Ng.inputTransition]:$p.inputTransition,[Ng.marginInlineStart]:$p.marginInlineStart,[Ng.placeholderOpacity]:$p.placeholderOpacity,[Ng.inputVerticalAlignment]:$p.inputVerticalAlignment,[Ng.errorMessageIcon]:$p.errorMessageIcon,[Ng.errorMessageIconSize]:$p.errorMessageIconSize,[Ng.errorMessageIconPadding]:$p.errorMessageIconPadding,[Ng.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[Ng.errorMessageIconPosition]:$p.errorMessageIconPosition,[Ng.errorMessageFontSize]:$p.errorMessageFontSize,labelType:{floating:{[Ng.inputHorizontalPadding]:"0.25em",_hasValue:{[Ng.inputHorizontalPadding]:"0.45em"}}},_readonly:{[Ng.inputDropdownButtonCursor]:"default"},[Ng.overlayFontSize]:$p.fontSize,[Ng.overlayFontFamily]:$p.fontFamily,[Ng.overlayCursor]:"pointer",[Ng.overlayItemBoxShadow]:"none",[Ng.overlayBackground]:$p.backgroundColor,[Ng.overlayTextColor]:$p.valueTextColor,[Ng.overlay.minHeight]:"400px",[Ng.overlay.margin]:"0"};var xg=Object.freeze({__proto__:null,default:Ig,multiSelectComboBox:Ig,vars:Ng});const jg=L("autocomplete-field-internal"),Tg=Ct({componentName:jg,baseSelector:""}),Dg=[],vg="DESCOPE_INVALID_OPTION",zg=L("autocomplete-field"),{host:Cg}={host:{selector:()=>":host"}},Sg=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...Cg,property:"width"},hostDirection:{...Cg,property:"direction"},fontSize:{...Cg},checkmarkDisplay:{selector:jo.componentName,property:jo.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:jo.componentName,property:jo.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:jo.componentName,property:jo.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:jo.componentName,property:jo.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:jo.componentName,property:jo.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:jo.componentName,property:jo.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:jo.componentName,property:jo.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 <${jg}\n tabindex="-1"\n ></${jg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(jg),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:zg})),wg=Sg.cssVarList,Lg=nt(Tp),Ag={[wg.hostWidth]:$p.width,[wg.hostDirection]:$p.direction,[wg.fontSize]:$p.fontSize,[wg.checkmarkDisplay]:"none",[wg.itemPaddingInlineStart]:Lg.spacing.lg,[wg.itemPaddingInlineEnd]:Lg.spacing.lg,[wg.selectedItemBackground]:Lg.colors.primary.light,[wg.selectedItemHoverBackground]:Lg.colors.primary.light,[wg.selectedItemFocusBackground]:Lg.colors.primary.light,[wg.itemHoverBackground]:Lg.colors.primary.highlight,_fullWidth:{[wg.hostWidth]:"100%"}};var fg=Object.freeze({__proto__:null,default:Ag,vars:wg});class Eg 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 kg 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 Og=L("address-field-internal"),Vg="google-maps-places",Wg="radar",Rg={[Vg]:Eg,[Wg]:kg},Ug=Ct({componentName:Og,baseSelector:""}),Yg=["public-api-key"],Qg=[...Yg],Bg=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:Rg}))(class extends Ug{static get observedAttributes(){return[].concat(Ug.observedAttributes||[],Qg)}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&&Yg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),Pg=L("address-field"),{host:Zg}={host:{selector:()=>":host"}},Fg=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...Zg,property:"width"},hostDirection:{...Zg,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 <${Og}\n tabindex="-1"\n ></${Og}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Og),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 ${Og} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Og} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Pg})),Gg=Fg.cssVarList,Hg={[Gg.hostWidth]:$p.width,[Gg.hostDirection]:$p.direction,_fullWidth:{[Gg.hostWidth]:"100%"}};var Jg=Object.freeze({__proto__:null,default:Hg,vars:Gg});const $g=(t,e=2)=>String(t).padStart(e,"0"),qg=L("timer"),_g=["seconds","hide-icon","paused"],Xg=It({componentName:qg,baseSelector:":host > .wrapper"}),{host:Kg,icon:tM,timer:eM}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},iM=T(ht({mappings:{fontSize:{},iconSize:[{...tM,property:"width"},{...tM,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...eM},lineHeight:{...eM},textColor:{...eM,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...Kg,property:"width"},hostDirection:{...Kg,property:"direction"},iconColor:{...tM,property:wo.cssVarList.fill}}}),gt,Mt)(class extends Xg{#ei=0;#ii;static get observedAttributes(){return _g.concat(Xg.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))}}),oM=nt(Tp),nM=iM.cssVarList,rM={[nM.hostDirection]:oM.direction,[nM.gap]:"0.25em",[nM.fontFamily]:oM.fonts.font1.family,[nM.minHeight]:"1.5em",[nM.lineHeight]:"1em",[nM.fontWeight]:oM.fonts.font1.fontWeight,[nM.textColor]:oM.colors.surface.contrast,[nM.iconColor]:oM.colors.surface.contrast,[nM.iconSize]:"1em",size:{xs:{[nM.fontSize]:"12px"},sm:{[nM.fontSize]:"14px"},md:{[nM.fontSize]:"16px"},lg:{[nM.fontSize]:"18px"}},textAlign:{right:{[nM.textAlign]:"right"},left:{[nM.textAlign]:"left"},center:{[nM.textAlign]:"center"}},_fullWidth:{[nM.hostWidth]:"100%"}};var sM=Object.freeze({__proto__:null,default:rM,vars:nM});const aM=L("timer-button"),lM=["button-variant","button-mode","size","text-align","full-width"],dM={"button-variant":"variant","button-mode":"mode"},cM=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],uM={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},pM=It({componentName:aM,baseSelector:":host > div"}),{host:hM,nestedTimer:gM,nestedButton:MM,timerInsideNotReversed:mM,timerInsideReversed:yM}={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'}},bM=T(ht({mappings:{gap:{},flexDirection:{},hostWidth:{...hM,property:"width"},hostDirection:{...hM,property:"direction"},timerTextColor:{...gM,property:iM.cssVarList.textColor},timerIconColor:{...gM,property:iM.cssVarList.iconColor},timerHostWidth:{...gM,property:iM.cssVarList.hostWidth},buttonLabelSpacing:{...MM,property:Oo.cssVarList.labelSpacing},timerInsideGapEnd:{...mM,property:"margin-inline-end"},timerInsideGapStart:{...yM,property:"margin-inline-start"}}}),gt,Mt)(class extends pM{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:lM,mapAttrs:dM}),f(this,this.timer,{includeAttrs:cM,mapAttrs:uM}),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")})}}),NM=nt(Tp),IM=bM.cssVarList,xM={[IM.gap]:NM.spacing.sm,[IM.flexDirection]:"column",_horizontal:{[IM.flexDirection]:"row",timerPosition:{end:{[IM.flexDirection]:"row-reverse"}}},timerPosition:{end:{[IM.flexDirection]:"column-reverse"}},_fullWidth:{[IM.hostWidth]:"100%"},_timerInside:{[IM.timerTextColor]:"currentColor",[IM.timerIconColor]:"currentColor",[IM.timerHostWidth]:"auto",[IM.buttonLabelSpacing]:"0",[IM.timerInsideGapEnd]:`var(${IM.gap})`,timerPosition:{end:{[IM.timerInsideGapStart]:`var(${IM.gap})`}}}};var jM=Object.freeze({__proto__:null,default:xM,vars:IM});const TM=L("password-strength");class DM extends(It({componentName:TM,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 tD}).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:vM,bar:zM,filledBar:CM,barsContainer:SM,text:wM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},LM=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:[{...vM,property:"width"},{...vM,property:"min-width"}],hostDirection:{...vM,property:"direction"},hostMinWidth:{...vM,property:"min-width"},barHeight:{...zM,property:"height"},barBorderRadius:{...zM,property:"border-radius"},emptyBarColor:{...zM,property:"background-color"},filledBarColor:{...CM,property:"background-color"},textColor:{...wM,property:"color"},spacing:{property:"gap"},barSpacing:{...SM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...zM,property:"transition"}}}),gt,Mt)(DM),AM=nt(Tp),fM=LM.cssVarList,EM={[fM.hostDirection]:AM.direction,[fM.barHeight]:"4px",[fM.barTransition]:"background-color 0.3s",[fM.barBorderRadius]:AM.radius.sm,[fM.hostMinWidth]:$p.minWidth,[fM.barSpacing]:AM.spacing.sm,[fM.emptyBarColor]:AM.colors.surface.light,[fM.fontFamily]:$p.fontFamily,[fM.fontSize]:$p.labelFontSize,[fM.fontWeight]:$p.labelFontWeight,[fM.spacing]:AM.spacing.sm,_fullWidth:{[fM.hostWidth]:"100%"},score:{0:{[fM.filledBarColor]:AM.colors.error.light,[fM.textColor]:AM.colors.error.light},1:{[fM.filledBarColor]:AM.colors.error.main,[fM.textColor]:AM.colors.error.main},2:{[fM.filledBarColor]:AM.colors.error.dark,[fM.textColor]:AM.colors.error.dark},3:{[fM.filledBarColor]:AM.colors.success.dark,[fM.textColor]:AM.colors.success.dark},4:{[fM.filledBarColor]:AM.colors.success.main,[fM.textColor]:AM.colors.success.main}}},kM={...fM};var OM=Object.freeze({__proto__:null,default:EM,vars:kM});const VM=L("collapsible-container");class WM extends(It({componentName:VM,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-text st-host-direction="ltr">\n <div class="header">\n <div class="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(${Li.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")}collapse(t=!1){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){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()}),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){"text"!==t?this.isCollapsed&&this.isCollapsible?this.collapse(this.#pi):this.expand(this.#pi):this.updateHeaderText()}}const RM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},UM=T(ht({mappings:{hostWidth:{selector:RM.host,property:"width"},hostDirection:{selector:RM.host,property:"direction"},verticalPadding:[{selector:RM.wrapper,property:"padding-top"},{selector:RM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:RM.wrapper,property:"padding-left"},{selector:RM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:RM.wrapper},backgroundImage:{selector:RM.wrapper},backgroundPositionX:{selector:RM.wrapper},backgroundPositionY:{selector:RM.wrapper},backgroundSize:{selector:RM.wrapper},backgroundRepeat:{selector:RM.wrapper},borderRadius:{selector:RM.wrapper},borderColor:{selector:RM.wrapper},borderStyle:{selector:RM.wrapper},borderWidth:{selector:RM.wrapper},boxShadow:{selector:RM.wrapper},headerIconOrder:{selector:RM.iconWrapper,property:"order"},headerCursor:{selector:RM.header,property:"cursor"},headerGap:{selector:RM.iconAndText,property:"gap"},textGrow:{selector:RM.text,property:"flex-grow"},textDirection:{selector:RM.text,property:"direction"},iconAnimationDuration:{selector:RM.icon,property:"transition-duration"},contentAnimationDuration:{selector:RM.content,property:"transition-duration"},chevronRotation:{selector:RM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),gt,Mt)(WM),YM=nt(Tp),QM=UM.cssVarList,[BM,PM,ZM]=st({shadowColor:"#00000020"},VM),{shadowColor:FM}=PM,GM={...BM,[QM.hostWidth]:"100%",[QM.boxShadow]:"none",[QM.backgroundColor]:YM.colors.surface.main,[QM.backgroundImage]:"",[QM.backgroundPositionX]:"center",[QM.backgroundPositionY]:"center",[QM.backgroundSize]:"cover",[QM.backgroundRepeat]:"no-repeat",[QM.borderRadius]:"0px",[QM.hostDirection]:YM.direction,[QM.flexDirection]:"column",[QM.alignItems]:"flex-start",[QM.justifyContent]:"flex-start",[QM.headerGap]:YM.spacing.md,[QM.chevronRotation]:"rotate(180deg)",[QM.iconAnimationDuration]:"0.1s",[QM.contentAnimationDuration]:"0.1s",[QM.borderWidth]:"0px",[QM.textGrow]:"0",verticalPadding:{sm:{[QM.verticalPadding]:"5px"},md:{[QM.verticalPadding]:"10px"},lg:{[QM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[QM.horizontalPadding]:"5px"},md:{[QM.horizontalPadding]:"10px"},lg:{[QM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[QM.gap]:"10px"},md:{[QM.gap]:"20px"},lg:{[QM.gap]:"30px"}},shadow:{sm:{[QM.boxShadow]:`${YM.shadow.wide.sm} ${FM}, ${YM.shadow.narrow.sm} ${FM}`},md:{[QM.boxShadow]:`${YM.shadow.wide.md} ${FM}, ${YM.shadow.narrow.md} ${FM}`},lg:{[QM.boxShadow]:`${YM.shadow.wide.lg} ${FM}, ${YM.shadow.narrow.lg} ${FM}`},xl:{[QM.boxShadow]:`${YM.shadow.wide.xl} ${FM}, ${YM.shadow.narrow.xl} ${FM}`},"2xl":{[ZM.shadowColor]:"#00000050",[QM.boxShadow]:`${YM.shadow.wide["2xl"]} ${FM}`}},borderRadius:{sm:{[QM.borderRadius]:YM.radius.sm},md:{[QM.borderRadius]:YM.radius.md},lg:{[QM.borderRadius]:YM.radius.lg},xl:{[QM.borderRadius]:YM.radius.xl},"2xl":{[QM.borderRadius]:YM.radius["2xl"]},"3xl":{[QM.borderRadius]:YM.radius["3xl"]}},iconPosition:{left:{[QM.headerIconOrder]:"0"},right:{[QM.headerIconOrder]:"1"}},_fillTitle:{[QM.textGrow]:"1"},_border:{[QM.borderColor]:YM.colors.surface.light,[QM.borderWidth]:YM.border.xs,[QM.borderStyle]:"solid"},_collapsible:{[QM.headerCursor]:"pointer"}},HM={...QM,...ZM};var JM=Object.freeze({__proto__:null,default:GM,vars:HM});const $M=L("recovery-codes"),qM="none",_M={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},XM=["text","variant","color","size","icon","icon-dark"],KM=["show-download",...Object.keys(_M).flatMap(t=>XM.map(e=>`${t}-${e}`))];class tm extends(It({componentName:$M,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...KM]}#hi=qM;#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}=_M[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!==qM}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&&KM.includes(t)&&this.renderButtons())}}const em=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Li.componentName,property:Li.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)(tm),im=nt(Tp),om=em.cssVarList,nm=Li.cssVarList,rm={[om.hostMinWidth]:"190px",[om.hostDirection]:im.direction,[om.iconColor]:rt(nm.textColor),[om.iconSize]:rt(nm.fontSize),[om.iconGap]:"8px",[om.iconStackGap]:"16px",[om.buttonsGap]:"8px",[om.sectionsGap]:"8px",[om.bulletGap]:"0.35em",[om.verticalPadding]:"0",[om.horizontalPadding]:"0",[om.errorBorderColor]:"transparent",[om.errorBorderWidth]:$p.borderWidth,[om.boxBorderRadius]:$p.borderRadius,[om.boxBorderStyle]:"solid",[om.errorMessageColor]:$p.errorMessageTextColor,[om.errorMessageFontSize]:$p.errorMessageFontSize,[om.errorMessageFontWeight]:$p.errorMessageFontWeight,[om.errorMessageFontFamily]:$p.fontFamily,textAlign:{right:{[om.textAlign]:"flex-end"},left:{[om.textAlign]:"flex-start"},center:{[om.textAlign]:"center"}},_fullWidth:{[om.hostWidth]:"100%"},_invalid:{[om.errorBorderColor]:$p.errorMessageTextColor}};var sm=Object.freeze({__proto__:null,default:rm,vars:om});const am={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsb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DguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},lm=L("active-sessions"),dm=og.componentName;let cm;const um={selector:()=>":host"},pm={selector:()=>dm},hm=T(ht({mappings:{hostWidth:[{...um,property:"width"},{...pm,property:og.cssVarList.hostWidth}],hostDirection:[{...um,property:"direction"},{...pm,property:og.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=(cm||(cm=document.createElement("template"),cm.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 ',cm)).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=am[t]||am.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:dm,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${dm} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:lm})),gm=hm.cssVarList,Mm={[gm.hostWidth]:$p.width,[gm.hostDirection]:$p.direction,[gm.overlay.rowGap]:"0.125em",[gm.overlay.deviceRowGap]:"0.5em",_fullWidth:{[gm.hostWidth]:"100%"}};var mm=Object.freeze({__proto__:null,default:Mm,vars:gm});const ym=L("outbound-apps"),bm=({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`},Nm=It({componentName:ym,baseSelector:"descope-list"}),{host:Im}={host:{selector:()=>":host"}},xm=T(ht({mappings:{hostWidth:{...Im,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...Im,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:wo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:wo.cssVarList.fill},fontSize:{selector:Li.componentName,property:Li.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:Li.componentName,property:Li.cssVarList.textAlign},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>gu.componentName,property:gu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>gu.componentName,property:gu.cssVarList.emptyStateVerticalPadding}}}),gt,Rt({itemRenderer:bm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),Mt)(class extends Nm{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=bm,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"}}),jm=xm.cssVarList,Tm={[jm.iconColor]:Tp.colors.primary.main,[jm.errorIconColor]:Tp.colors.error.main,[jm.appLogoGap]:Tp.spacing.md,[jm.contentGap]:Tp.spacing.xs,[jm.itemCursor]:"default",[jm.itemOutline]:"none",[jm.itemBorderColor]:"transparent",[jm.listPadding]:"0",[jm.listBorderWidth]:"0",[jm.listBoxShadow]:"none",[jm.emptyStateMinHeight]:"0",[jm.emptyStateVerticalPadding]:Tp.spacing.lg,size:{xs:{[jm.fontSize]:"0.6em"},sm:{[jm.fontSize]:"0.8em"},md:{[jm.fontSize]:"1em"},lg:{[jm.fontSize]:"1.5em"}}};var Dm=Object.freeze({__proto__:null,default:Tm,vars:jm});const vm=L("outbound-app-button");class zm extends(It({componentName:vm,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 Cm=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Oo.cssVarList.iconColor}}}),gt,Mt)(zm),Sm=Cm.cssVarList,wm={[Sm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Sm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Sm.hostWidth]:"100%"}},Lm=Sm;var Am=Object.freeze({__proto__:null,default:wm,vars:Lm});const fm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Em={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIw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jEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},km=L("trusted-devices"),Om=({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=Em[t]||Em.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},Vm=It({componentName:km,baseSelector:gu.componentName}),{host:Wm}={host:{selector:()=>":host"}},Rm=T(ht({mappings:{hostWidth:{...Wm,property:"width"},hostMinWidth:{...Wm,property:"min-width"},hostDirection:[{...Wm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:gu.cssVarList.gap},listBackgroundColor:{selector:()=>gu.componentName,property:gu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>gu.componentName,property:gu.cssVarList.borderRadius},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>gu.componentName,property:gu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>gu.componentName,property:gu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPadding},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBorderRadius:{selector:uu.componentName,property:uu.cssVarList.borderRadius},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:Cc.componentName,property:Cc.cssVarList.borderColor},badgeTextColor:{selector:Cc.componentName,property:Cc.cssVarList.textColor},badgeBackgroundColor:{selector:Cc.componentName,property:Cc.cssVarList.backgroundColor},badgeBorderRadius:{selector:Cc.componentName,property:Cc.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:Om,sortFn:(t,e)=>fm(e.lastLoginDate)-fm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),Mt)(class extends Vm{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=Om,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")}}),Um=Rm.cssVarList,Ym={[Um.hostWidth]:"auto",[Um.hostWidth]:"300px",[Um.hostMinWidth]:"300px",[Um.listBackgroundColor]:"transparent",[Um.listBorderRadius]:"0",[Um.listBorderWidth]:"0",[Um.listPadding]:"0",[Um.listBoxShadow]:"none",[Um.listItemsGap]:Tp.spacing.lg,[Um.emptyStateMinHeight]:"0",[Um.emptyStateVerticalPadding]:Tp.spacing.lg,[Um.itemBorderColor]:Tp.colors.surface.light,[Um.itemVerticalPadding]:Tp.spacing.lg,[Um.itemHorizontalPadding]:Tp.spacing.lg,[Um.itemBorderRadius]:Tp.radius.xs,[Um.itemOutline]:"transparent",[Um.itemBackgroundColor]:"transparent",[Um.itemCursor]:"default",[Um.itemContentGap]:Tp.spacing.sm,[Um.badgeBorderColor]:Tp.colors.surface.light,[Um.badgeTextColor]:Tp.colors.surface.dark,[Um.badgeBorderRadius]:Tp.radius.xs,[Um.badgeBackgroundColor]:Tp.colors.surface.main,[Um.devicePanelGap]:Tp.spacing.md,[Um.deviceIconGap]:Tp.spacing.md,[Um.deviceIconSize]:"24px",[Um.lastLoginLabelGap]:Tp.spacing.xs,_fullWidth:{[Um.hostWidth]:"100%"}};var Qm=Object.freeze({__proto__:null,default:Ym,vars:Um});const Bm=L("multi-sso"),Pm=({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},Zm=It({componentName:Bm,baseSelector:"span.wrapper"}),{host:Fm}={host:{selector:()=>":host"}},Gm=T(ht({mappings:{hostWidth:{...Fm,property:"width"},hostMinWidth:{...Fm,property:"min-width"},hostDirection:[{...Fm,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:Li.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Oo.componentName,property:Oo.cssVarList.hostMaxWidth},listItemsGap:{property:gu.cssVarList.gap},listBackgroundColor:{selector:()=>gu.componentName,property:gu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>gu.componentName,property:gu.cssVarList.borderRadius},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPadding},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBorderRadius:{selector:uu.componentName,property:uu.cssVarList.borderRadius},itemBackgroundColor:{selector:uu.componentName,property:uu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.borderColor},badgeTextColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>Cc.componentName,property:Cc.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:wo.cssVarList.fill},{selector:()=>".external-link-icon",property:wo.cssVarList.fill}]}}),gt,Rt({targetSelector:"descope-list",itemRenderer:Pm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),Mt)(class extends Zm{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)=>Pm(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)}}),Hm=Gm.cssVarList,Jm=nt(Tp),$m={[Hm.hostWidth]:"300px",[Hm.headerGap]:Jm.spacing.md,[Hm.headerListGap]:Jm.spacing.md,[Hm.itemContentGap]:Jm.spacing.md,[Hm.actionGap]:Jm.spacing.sm,[Hm.authTypeRowGap]:Jm.spacing.sm,[Hm.unconfiguredAuthTypeTextColor]:Jm.colors.surface.dark,[Hm.unconfiguredAuthTypeTextFontStyle]:"italic",[Hm.buttonMaxWidth]:"50%",[Hm.listBackgroundColor]:"transparent",[Hm.listBorderRadius]:"0",[Hm.listBorderWidth]:"0",[Hm.listPadding]:"0",[Hm.listBoxShadow]:"none",[Hm.listItemsGap]:Jm.spacing.lg,[Hm.itemBorderColor]:Jm.colors.surface.light,[Hm.itemVerticalPadding]:Jm.spacing.lg,[Hm.itemHorizontalPadding]:Jm.spacing.lg,[Hm.itemBorderRadius]:Jm.radius.xs,[Hm.itemOutline]:"transparent",[Hm.itemBackgroundColor]:"transparent",[Hm.itemCursor]:"default",[Hm.badgeBorderColor]:Jm.colors.surface.light,[Hm.badgeTextColor]:Jm.colors.surface.dark,[Hm.badgeBorderRadius]:Jm.radius.xs,[Hm.badgeBackgroundColor]:Jm.colors.surface.main,[Hm.titleIconSize]:"24px",[Hm.createButtonIconSize]:"12px",[Hm.actionIconSize]:"20px",[Hm.actionIconColor]:Jm.colors.surface.dark,_fullWidth:{[Hm.hostWidth]:"100%"}};var qm=Object.freeze({__proto__:null,default:$m,vars:Hm});const _m=L("tooltip"),Xm=["text","position","hide-delay","hover-delay","opened"];class Km extends(It({componentName:_m,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 Xm.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.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:ty,content:ey}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},iy=T(Mt,Ot({selector:"",mappings:{fontFamily:{...ey,property:Zt.cssVarList.fontFamilyOverride},fontSize:{...ey,property:Zt.cssVarList.fontSizeOverride},fontWeight:{...ey,property:Zt.cssVarList.fontWeightOverride},textColor:{...ey,property:Zt.cssVarList.textColorOverride},hostDirection:{...ey,property:Zt.cssVarList.hostDirectionOverride},backgroundColor:[{...ty},{...ey}],borderColor:{...ty},borderStyle:{...ty},borderWidth:{...ty},borderRadius:{...ty},boxShadow:{...ty},horizontalPadding:[{...ey,property:"padding-left"},{...ey,property:"padding-right"}],verticalPadding:[{...ey,property:"padding-top"},{...ey,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(Km),oy=nt(Tp),ny=iy.cssVarList,[ry,sy,ay]=st({shadowColor:"#00000020"},_m),{shadowColor:ly}=sy,dy=`${oy.shadow.wide.sm} ${ly}, ${oy.shadow.narrow.sm} ${ly}`,cy={...ry,[ny.fontFamily]:oy.fonts.font1.family,[ny.fontSize]:Tp.typography.body2.size,[ny.fontWeight]:Tp.typography.body2.weight,[ny.textColor]:oy.colors.surface.contrast,[ny.hostDirection]:oy.direction,[ny.backgroundColor]:oy.colors.surface.main,[ny.borderColor]:oy.colors.surface.light,[ny.borderStyle]:"solid",[ny.borderWidth]:oy.border.xs,[ny.borderRadius]:oy.radius.xs,[ny.horizontalPadding]:oy.spacing.md,[ny.verticalPadding]:oy.spacing.sm,[ny.boxShadow]:dy,shadow:{sm:{[ny.boxShadow]:dy},md:{[ny.boxShadow]:`${oy.shadow.wide.md} ${ly}, ${oy.shadow.narrow.md} ${ly}`},lg:{[ny.boxShadow]:`${oy.shadow.wide.lg} ${ly}, ${oy.shadow.narrow.lg} ${ly}`},xl:{[ny.boxShadow]:`${oy.shadow.wide.xl} ${ly}, ${oy.shadow.narrow.xl} ${ly}`},"2xl":{[ay.shadowColor]:"#00000050",[ny.boxShadow]:`${oy.shadow.wide["2xl"]} ${ly}`}}};var uy=Object.freeze({__proto__:null,default:cy,vars:ny});const py=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},hy=async t=>py(`${t}/countries.json`),gy=async(t,e)=>{try{return(await py(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},My=async(t,e,i)=>py(`${i}/countries/${t}/subdivisions/${e}/cities.json`),my=async t=>{const e=new URL("../labels.json",`${t}/`).href;return py(e)},yy=async(t,e)=>py(`${e}/countries/${t}/cities.json`),by=L("country-subdivision-city-field-internal"),Ny=Symbol("selecting"),Iy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,xy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",jy=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=Iy({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=xy(e),l=xy(s.join(" ")),d=xy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},Ty=({name:t,state_code:e,translations:i,lang:o})=>{const n=Iy({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=xy(e),a=xy(r.join(" ")),l=xy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},Dy=({name:t,translations:e,lang:i})=>{const o=Iy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=xy(t),s=xy(n.join(" ")),a=xy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},vy=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,zy=Ct({componentName:by,baseSelector:""}),Cy=["disabled","readonly","size","bordered"],Sy=["hide-country","hide-subdivision","hide-city"],wy=[...Cy,"label-type","country-label","subdivision-label","city-label",...Sy,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],Ly=T()(class extends zy{static get observedAttributes(){return[].concat(zy.observedAttributes||[],wy)}#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 ${vy("country-combo")}\n ${vy("subdivision-combo")}\n ${vy("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.#Bi()}get#Pi(){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.#Pi?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(`${by}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#Li.renderItem=jy,this.#Ai.renderItem=Ty,this.#fi.renderItem=Dy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(Sy.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.#Pi&&this.#do()}else"lang"===t?this.#co():"invalid"===t?"true"===i&&this.#uo():"allowed-countries"===t||"pinned-countries"===t?this.#Pi||(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.#Pi&&!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(`${by}-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}})}#Bi(){this.#to.forEach(t=>{f(this,t,{includeAttrs:[...Cy,"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.#Pi&&!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??hy(this.#Hi),s=this.#Ui??my(this.#Hi),a=o&&t?gy(t,this.#Hi):null,l=n&&t?o&&e?My(t,e,this.#Hi):yy(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.#Pi&&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=Ny,setTimeout(()=>{if(this.#Yi===Ny){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!==Ny&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#Li.value),this.#mo())}#Mo(){if(this.#Yi===Ny)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 my(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#Li.setAttribute("loading","true");try{const[t]=await Promise.all([hy(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${by}] 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 gy(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(`[${by}] 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?My(t,e,this.#Hi):yy(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(`[${by}] 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)=>Iy(t,this.#Ji).localeCompare(Iy(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.#Pi),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(`${by}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#Li,"required",this.#Pi?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(`${by}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),Ay=L("country-subdivision-city-field"),fy={selector:()=>":host"},Ey={selector:`${by} > .wrapper`},ky={selector:`${by} > .wrapper > descope-combo-box`},Oy=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{hostWidth:{...fy,property:"width"},hostDirection:[{...fy,property:"direction"},{...ky,property:jo.cssVarList.hostDirection}],flexDirection:{...Ey,property:"flex-direction"},flexGap:{...Ey,property:"gap"},itemAlignment:{...Ey,property:"align-items"},itemMinWidth:{...ky,property:"min-width"},itemFlexGrow:{...ky,property:"flex-grow"},itemWidth:{...ky,property:jo.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 <${by}\n tabindex="-1"\n ></${by}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(by),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 ${by} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${by} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${by}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:Ay})),Vy=Oy.cssVarList,Wy={[Vy.hostWidth]:$p.width,[Vy.hostDirection]:$p.direction,[Vy.flexDirection]:"column",[Vy.flexGap]:"0.5em",[Vy.itemAlignment]:"stretch",[Vy.itemFlexGrow]:"0",[Vy.itemWidth]:"auto",_fullWidth:{[Vy.hostWidth]:"100%"},_horizontal:{[Vy.flexDirection]:"row",[Vy.itemFlexGrow]:"1"}};var Ry=Object.freeze({__proto__:null,default:Wy,vars:Vy});const Uy=L("attachment"),Yy=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Qy=Yy[0];class By extends(It({componentName:Uy,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");Yy.includes(t)||this.setAttribute("position",Qy)}}const Py={selector:()=>".attachment-container"},Zy=T(ht({mappings:{transform:{...Py},justifyContent:{...Py},maxWidth:{...Py},top:{...Py},bottom:{...Py},left:{...Py},right:{...Py},offsetX:{},offsetY:{}}}),gt,Mt)(By),Fy=Zy.cssVarList,Gy=`calc(8px + var(${Fy.offsetX}))`,Hy={[Fy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[Fy.transform]:"translateY(-50%)",[Fy.justifyContent]:"start",[Fy.left]:Gy,[Fy.top]:rt(Fy.offsetY)},"top-center":{[Fy.transform]:"translate(-50%, -50%)",[Fy.justifyContent]:"center",[Fy.top]:rt(Fy.offsetY),[Fy.left]:"50%"},"top-end":{[Fy.transform]:"translateY(-50%)",[Fy.justifyContent]:"end",[Fy.right]:Gy,[Fy.top]:rt(Fy.offsetY)},"bottom-start":{[Fy.transform]:"translateY(50%)",[Fy.justifyContent]:"start",[Fy.left]:Gy,[Fy.bottom]:rt(Fy.offsetY)},"bottom-center":{[Fy.bottom]:rt(Fy.offsetY),[Fy.transform]:"translate(-50%, 50%)",[Fy.justifyContent]:"center",[Fy.left]:"50%"},"bottom-end":{[Fy.transform]:"translateY(50%)",[Fy.justifyContent]:"end",[Fy.right]:Gy,[Fy.bottom]:rt(Fy.offsetY)}}};var Jy=Object.freeze({__proto__:null,default:Hy}),$y="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",qy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQ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conSrc:s,iconSrcDark:a}=(t=>{const e=Xy[t]||Xy.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},eb=It({componentName:Ky,baseSelector:gu.componentName}),{host:ib,methodIconSlotted:ob,addIconSlotted:nb}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},rb=T(ht({mappings:{hostWidth:{...ib,property:"width"},hostMinWidth:{...ib,property:"min-width"},hostDirection:[{...ib,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"},{selector:()=>"descope-link",property:Yi.cssVarList.hostDirection}],headerGap:{selector:()=>".method",property:"gap"},listGap:{selector:()=>"descope-list",property:"margin-top"},listItemsGap:{property:gu.cssVarList.gap},listBackgroundColor:{selector:()=>gu.componentName,property:gu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>gu.componentName,property:gu.cssVarList.borderRadius},listBorderWidth:{selector:()=>gu.componentName,property:gu.cssVarList.borderWidth},listBoxShadow:{selector:()=>gu.componentName,property:gu.cssVarList.boxShadow},listPadding:[{selector:()=>gu.componentName,property:gu.cssVarList.verticalPadding},{selector:()=>gu.componentName,property:gu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:uu.componentName,property:uu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:uu.componentName,property:uu.cssVarList.horizontalPadding},itemCursor:{selector:uu.componentName,property:uu.cssVarList.cursor},itemOutline:{selector:uu.componentName,property:uu.cssVarList.outline},itemBorderColor:{selector:uu.componentName,property:uu.cssVarList.borderColor},itemBorderRadius:{selector:uu.componentName,property:uu.cssVarList.borderRadius},itemBackgroundColor:{selector:uu.componentName,property:uu.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:()=>Oo.componentName,property:Oo.cssVarList.iconColor},iconSize:[{...ob,property:"height"},{...nb,property:"height"}]}}),gt,Rt({itemRenderer:tb,sortFn:(t,e)=>_y(e.createdAt)-_y(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),Mt)(class extends eb{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=tb,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))}}),sb=rb.cssVarList,ab={[sb.hostWidth]:"auto",[sb.hostWidth]:"300px",[sb.hostMinWidth]:"300px",[sb.headerGap]:Tp.spacing.lg,[sb.listGap]:Tp.spacing.xl,[sb.listBackgroundColor]:"transparent",[sb.listBorderRadius]:"0",[sb.listBorderWidth]:"0",[sb.listPadding]:"0",[sb.listBoxShadow]:"none",[sb.listItemsGap]:Tp.spacing.lg,[sb.itemBorderColor]:Tp.colors.surface.light,[sb.itemVerticalPadding]:Tp.spacing.lg,[sb.itemHorizontalPadding]:Tp.spacing.lg,[sb.itemBorderRadius]:Tp.radius.xs,[sb.itemOutline]:"transparent",[sb.itemBackgroundColor]:"transparent",[sb.itemCursor]:"default",[sb.itemContentGap]:Tp.spacing.sm,[sb.itemPanelGap]:Tp.spacing.md,[sb.itemIconGap]:Tp.spacing.md,[sb.itemIconSize]:"24px",[sb.addButtonGap]:Tp.spacing.sm,[sb.dateGap]:Tp.spacing.xs,[sb.removeButtonGap]:Tp.spacing.sm,[sb.iconSize]:"1.5em",[sb.iconColor]:"currentcolor",_fullWidth:{[sb.hostWidth]:"100%"}};var lb=Object.freeze({__proto__:null,default:ab,vars:sb});const db=nt(Tp),cb=Xn.cssVarList,ub={[cb.hostWidth]:$p.width,[cb.hostMinWidth]:$p.minWidth,[cb.hostDirection]:$p.direction,[cb.fontSize]:$p.fontSize,[cb.fontFamily]:$p.fontFamily,[cb.labelFontSize]:$p.labelFontSize,[cb.labelFontWeight]:$p.labelFontWeight,[cb.inputValueFontWeight]:$p.inputValueFontWeight,[cb.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[cb.helperTextFontWeight]:$p.helperTextFontWeight,[cb.errorMessageFontWeight]:$p.errorMessageFontWeight,[cb.labelTextColor]:$p.labelTextColor,[cb.labelRequiredIndicator]:$p.requiredIndicator,[cb.errorMessageTextColor]:$p.errorMessageTextColor,[cb.inputValueTextColor]:$p.valueTextColor,[cb.inputPlaceholderColor]:$p.placeholderTextColor,[cb.inputBorderWidth]:$p.borderWidth,[cb.inputBorderStyle]:$p.borderStyle,[cb.inputBorderColor]:$p.borderColor,[cb.inputBorderRadius]:$p.borderRadius,[cb.inputOutlineWidth]:$p.outlineWidth,[cb.inputOutlineStyle]:$p.outlineStyle,[cb.inputOutlineColor]:$p.outlineColor,[cb.inputOutlineOffset]:$p.outlineOffset,[cb.inputBackgroundColor]:$p.backgroundColor,[cb.inputHeight]:$p.inputHeight,[cb.inputHorizontalPadding]:$p.horizontalPadding,[cb.helperTextColor]:$p.helperTextColor,[cb.textAlign]:$p.textAlign,textAlign:{right:{[cb.inputTextAlign]:"right"},left:{[cb.inputTextAlign]:"left"},center:{[cb.inputTextAlign]:"center"}},[cb.labelPosition]:$p.labelPosition,[cb.labelTopPosition]:$p.labelTopPosition,[cb.labelHorizontalPosition]:$p.labelHorizontalPosition,[cb.inputTransformY]:$p.inputTransformY,[cb.inputTransition]:$p.inputTransition,[cb.marginInlineStart]:$p.marginInlineStart,[cb.placeholderOpacity]:$p.placeholderOpacity,[cb.inputVerticalAlignment]:$p.inputVerticalAlignment,[cb.valueInputHeight]:$p.valueInputHeight,[cb.valueInputMarginBottom]:$p.valueInputMarginBottom,[cb.inputIconOffset]:db.spacing.md,[cb.inputIconSize]:$p.inputIconSize,[cb.inputIconColor]:$p.placeholderTextColor,[cb.errorMessageIcon]:$p.errorMessageIcon,[cb.errorMessageIconSize]:$p.errorMessageIconSize,[cb.errorMessageIconPadding]:$p.errorMessageIconPadding,[cb.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[cb.errorMessageIconPosition]:$p.errorMessageIconPosition,[cb.errorMessageFontSize]:$p.errorMessageFontSize,[cb.inputTextSecurity]:$p.inputTextSecurity};var pb=Object.freeze({__proto__:null,default:ub,textField:ub,vars:cb});class hb{#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 gb=["MM/DD","DD/MM"],Mb=gb[0],mb="/",yb=[31,29,31,30,31,30,31,31,30,31,30,31],bb={id:"month",min:1,max:12,placeholder:"MM"},Nb={id:"day",min:1,max:31,placeholder:"DD"},Ib={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},xb=t=>{const e=(t=>`^${t.split(mb).map(t=>Ib[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(mb);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}}},jb=Object.fromEntries(gb.map(t=>[t,xb(t)])),Tb=(t,e)=>{const i=t?.trim?.();return i?jb[e]?.getParts(i)??null:null},Db=L("month-day-field"),vb=Ct({componentName:Db,baseSelector:"vaadin-popover"}),zb=["format","opened","initial-value","readonly","disable-picker"],Cb=["picker-months","picker-label-submit","picker-label-cancel"],Sb=[...zb,...Cb],wb=Xn.cssVarList,{host:Lb,input:Ab,inputEleRTL:fb,toggleButton:Eb,overlay:kb,backdrop:Ob,bottomNav:Vb,navButton:Wb}={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"}},Rb=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{iconMargin:{...Eb,property:"margin-inline-end"},hostWidth:{...Lb,property:"width"},hostDirection:{...Lb,property:"direction"},textAlign:{...Ab,property:"text-align"},rtlInputDirection:{...fb,property:wb.inputDirection},rtlInputAlignment:{...fb,property:wb.inputTextAlign},overlayGap:{property:()=>Rb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Rb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Rb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Rb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Rb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Rb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Rb.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontSize},labelFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.labelFontWeight},inputValueFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:Xn.componentName,property:Xn.cssVarList.errorMessageFontWeight}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...kb,property:"margin-top"},backgroundColor:{...kb},backdropBackgroundColor:{...Ob,property:"background-color"},backdropPointerEvents:{...Ob,property:"pointer-events"},padding:{...kb},boxShadow:{...kb},outlineWidth:{...kb},outlineColor:{...kb},outlineStyle:{...kb},bottomNavTopPadding:{...Vb,property:"padding-top"},bottomNavBottomPadding:{...Vb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...Vb,property:"padding-left"},{...Vb,property:"padding-right"}],bottomNavAlignment:{...Vb,property:"justify-content"},bottomNavGap:{...Vb,property:"gap"},navButtonPadding:[{...Wb,property:Oo.cssVarList.horizontalPadding},{...Wb,property:Oo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Wb,property:Oo.cssVarList.outlineWidth}}}),gt,Mt)(class extends vb{format=Mb;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#lt()};#Vo=[new hb(bb,this.#ko.bind(this)),new hb(Nb,this.#ko.bind(this))];static get observedAttributes(){return[].concat(vb.observedAttributes||[],Sb)}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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3IDEwLjc4NiA2Ljc3NDA0IDExIDYuNDk1MzIgMTFINS41MDQ2OEM1LjIxNDA0IDExIDUgMTAuNzc0IDUgMTAuNDk1M1Y5LjUwNDY4QzUgOS4yMTQwNCA1LjIyNTk1IDkgNS41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E0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+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===bb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===Nb.id)}get sortedCounters(){return this.format.split(mb).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(mb)}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?Tb(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=yb[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.#Bo.bind(this)),this.inputElement.addEventListener("blur",this.#Po.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)}#Bo(){this.isReadOnly||setTimeout(()=>this.#mn())}#Po(){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(jb).includes(t)&&(this.format=t,this.#Ro(),this.updateCountersDisplay())}#Ro(){const t=this.getAttribute("format")||this.format||Mb,e=jb[t]?t:Mb;this.format=e,this.setAttribute("pattern",jb[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=Tb(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),zb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():Cb.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),Ub=nt(Tp),Yb="#00000020",{shadow:Qb}=Ub,Bb=Rb.cssVarList,Pb={[Bb.hostWidth]:$p.width,[Bb.hostDirection]:$p.direction,[Bb.iconMargin]:"0.375em",[Bb.overlay.marginTop]:$p.outlineWidth,[Bb.overlay.backgroundColor]:$p.backgroundColor,[Bb.overlay.backdropBackgroundColor]:"transparent",[Bb.overlay.backdropPointerEvents]:"all",[Bb.overlay.boxShadow]:`${Qb.wide.xl} ${Yb}, ${Qb.narrow.xl} ${Yb}`,[Bb.overlay.outlineWidth]:"0",[Bb.overlay.outlineColor]:"transparent",[Bb.overlay.outlineStyle]:"none",[Bb.overlay.padding]:"0",[Bb.overlay.bottomNavTopPadding]:"0",[Bb.overlay.bottomNavBottomPadding]:"0.75em",[Bb.overlay.bottomNavHorizontalPadding]:"1em",[Bb.overlay.bottomNavAlignment]:"space-between",[Bb.overlay.bottomNavGap]:"0.5em",[Bb.overlay.navButtonPadding]:"0",[Bb.overlay.navButtonOutlineWidth]:"0",[Bb.rtlInputDirection]:"ltr",[Bb.rtlInputAlignment]:"right",[Bb.errorMessageIcon]:$p.errorMessageIcon,[Bb.errorMessageIconSize]:$p.errorMessageIconSize,[Bb.errorMessageIconPadding]:$p.errorMessageIconPadding,[Bb.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[Bb.errorMessageIconPosition]:$p.errorMessageIconPosition,[Bb.errorMessageFontSize]:$p.errorMessageFontSize,[Bb.labelFontWeight]:$p.labelFontWeight,[Bb.inputValueFontWeight]:$p.inputValueFontWeight,[Bb.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[Bb.helperTextFontWeight]:$p.helperTextFontWeight,[Bb.errorMessageFontWeight]:$p.errorMessageFontWeight};var Zb=Object.freeze({__proto__:null,default:Pb,vars:Bb});const Fb=[31,29,31,30,31,30,31,31,30,31,30,31],Gb=["January","February","March","April","May","June","July","August","September","October","November","December"],Hb=L("month-day-field-picker"),Jb=["initial-value","picker-months","st-host-direction","disabled","full-width"],$b=Ct({componentName:Hb,baseSelector:"div"}),qb=(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:_b,monthInput:Xb,dayInput:Kb,inputsRow:tN}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},eN=T(ht({componentNameOverride:L("input-wrapper")}),ht({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{..._b,property:"padding"},inputsRowGap:{...tN,property:"gap"},inputWidth:[{...Xb,property:"width"},{...Kb,property:"width"}]}}),gt,Mt)(class extends $b{static get observedAttributes(){return[].concat($b.observedAttributes||[],Jb)}#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>Fb[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>Fb[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:Gb})(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(){qb(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=Fb[this.#Nn-1]??0;qb((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{}}}),iN=eN.cssVarList,oN={[iN.fontFamily]:$p.fontFamily,[iN.fontSize]:$p.fontSize,[iN.hostDirection]:$p.direction,[iN.inputWidth]:"130px",[iN.pickerPadding]:"1em 1em",[iN.inputsRowGap]:"0.5em",_fullWidth:{[iN.hostWidth]:"100%"}};var nN=Object.freeze({__proto__:null,default:oN,vars:iN});const rN={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}},sN=Object.keys(rN).map(t=>`data-operator-label-${t}`),aN={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"]},lN=(t,e)=>({id:t,...e[t]||{}}),dN=(t,e,i,o=rN)=>{const n=((i||aN)[t]||[]).map(t=>lN(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)||lN(e,o),...i}}):n},cN=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,rN[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},uN=(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))},pN=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):[]},hN=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var gN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const MN=L("filter-row"),mN=["text","number","email"],yN=["boolean","singleselect"],bN=t=>!t||mN.includes(t),NN=t=>yN.includes(t),IN=t=>"multiselect"===t,xN=()=>new Promise(t=>setTimeout(t)),{host:jN}={host:{selector:()=>":host"}},TN=T(ht({mappings:{hostWidth:{...jN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...jN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>jo.componentName,property:jo.cssVarList.hostDirection},{selector:()=>og.componentName,property:og.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>jo.componentName,property:jo.cssVarList.hostWidth},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostWidth},{selector:()=>og.componentName,property:og.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Oo.componentName}.delete-btn[disabled="true"]`,property:Oo.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",...sN]}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="${gN}" src-dark="${gN}"></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.#Bn("delete")),this.#Bi()}#Bi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Rn].forEach(t=>f(this,t,{includeAttrs:["size","disabled"]})),this.#Pn(),t.forEach(t=>f(this,t,{includeAttrs:["label-type"]}))}#Pn(){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?dN(t.inputType,t.operators,hN(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),bN(o)?this.#Kn(o,n):NN(o)?this.#tr(t,n):IN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!bN(t)),this.#Vn.classList.toggle("hidden",!NN(t)),this.#Wn.classList.toggle("hidden",!IN(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 IN(t)?this.#Wn:NN(t)?this.#Vn:bN(t)?this.#On:null}#or(t){const e=this.#ir(t.inputType);return e?e.value??(IN(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}}#Bn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#v(){this.#Bn("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 xN(),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 xN(),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 xN(),this.#sr(e,t.value))}finally{this.#fn=!1}}}#sr(t,e){const i=t.inputType,o=this.#ir(i);o&&(IN(i)?this.#Zn(o,Array.isArray(e)?e:[]):NN(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:MN,baseSelector:".row"})),DN=L("filter-rows"),{host:vN,container:zN,rowsList:CN,actions:SN,addRowIcon:wN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},LN=T(ht({mappings:{hostWidth:{...vN,property:"width"},hostMinWidth:{...vN,property:"min-width"},hostDirection:[{...vN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>TN.componentName,property:TN.cssVarList.hostDirection}],containerWidth:{...zN,property:"width"},containerPadding:{...zN,property:"padding"},containerGap:{...zN,property:"gap"},listGap:{...CN,property:"gap"},listMaxHeight:{...CN,property:"max-height"},actionsGap:{...SN,property:"gap"},addRowIconSize:[{...wN,property:"width"},{...wN,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=hN(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(MN).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(MN).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${MN}[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(MN);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",...sN]}),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(MN).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.#Bn("clear")}#vr(t){const e=t.target.closest(MN);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(MN);if(!e)return;const i=e.dataset.rowId;this.#ze=this.#ze.filter(t=>t.id!==i),this.#Sr(),this.#fe(),this.#v()}#Bn(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&&dN(i.inputType,i.operators,hN(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(cN).map(t),i=this.#ze.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Bn("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:DN,baseSelector:".container"})),AN=L("filter"),fN=It({componentName:AN,baseSelector:"vaadin-popover"}),EN=["add-row-icon","delete-row-icon"],{host:kN,overlay:ON,backdrop:VN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},WN=T(ht({mappings:{hostWidth:{...kN,property:"width"},hostDirection:[{...kN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>LN.componentName,property:LN.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>Cc.componentName,property:Cc.cssVarList.borderRadius},counterWidth:{selector:()=>Cc.componentName,property:Cc.cssVarList.hostWidth},counterHeight:{selector:()=>Cc.componentName,property:Cc.cssVarList.hostHeight},counterFontSize:{selector:()=>Cc.componentName,property:Cc.cssVarList.fontSize},counterLineHeight:{selector:()=>Cc.componentName,property:Cc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.backgroundColor},counterTextColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.textColor},counterBorderColor:{selector:()=>Cc.componentName,property:Cc.cssVarList.borderColor},counterOffsetX:{selector:()=>Zy.componentName,property:Zy.cssVarList.offsetX},counterOffsetY:{selector:()=>Zy.componentName,property:Zy.cssVarList.offsetY},rowsHostWidth:{selector:()=>LN.componentName,property:LN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>LN.componentName,property:LN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>LN.componentName,property:LN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>LN.componentName,property:LN.cssVarList.containerGap},rowsListGap:{selector:()=>LN.componentName,property:LN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>LN.componentName,property:LN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>LN.componentName,property:LN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>LN.componentName,property:LN.cssVarList.addRowIconSize},rowWidth:{...kN,property:TN.cssVarList.hostWidth},rowMinWidth:{...kN,property:TN.cssVarList.hostMinWidth},rowValueWidth:{...kN,property:TN.cssVarList.inputWidth},rowGap:{...kN,property:TN.cssVarList.rowGap},rowDisabledDeleteColor:{...kN,property:TN.cssVarList.deleteDisabledIconColor}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...ON,property:"margin-top"},width:{...ON},backgroundColor:{...ON},backdropBackgroundColor:{...VN,property:"background-color"},backdropPointerEvents:{...VN,property:"pointer-events"},padding:{...ON},boxShadow:{...ON},borderRadius:{...ON},outlineWidth:{...ON},outlineColor:{...ON},outlineStyle:{...ON}}}),gt,Mt)(class extends fN{#Yr=[];#Qr=!1;#ct;#R=null;#Br=null;#Pr=null;static get observedAttributes(){return[...fN.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.#Pr??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Pr}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(DN)||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(){EN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Br?.isConnected&&uN(this,this.#Br,[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(DN);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",...sN],mapAttrs:{operators:"operators-catalog"}}),this.#Hr(e),t.appendChild(e),this.#Br=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.#Br&&uN(this,this.#Br,EN),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)}#Bn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#qr(t){this.#Qr=!0,this.setAttribute("value",JSON.stringify(pN(t))),this.#Qr=!1}#Jr(t){const e=pN(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Yr)&&(this.#qr(e),this.#Bn("filter-apply",{value:this.#Yr,action:"apply"}))}#$r(){this.#qr([]),this.#Bn("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=pN(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())}}),RN=nt(Tp),UN="#00000020",{shadow:YN}=RN,QN=WN.cssVarList,BN={[QN.counterBorderRadius]:"50%",[QN.counterWidth]:"1.5em",[QN.counterHeight]:"1.5em",[QN.counterFontSize]:"0.5em",[QN.counterLineHeight]:"2.25em",[QN.counterBackgroundColor]:RN.colors.primary.main,[QN.counterTextColor]:RN.colors.primary.contrast,[QN.counterOffsetX]:"-0.725em",[QN.counterOffsetY]:"0",_fullWidth:{[QN.hostWidth]:"100%"},[QN.overlay.backgroundColor]:RN.colors.surface.main,[QN.overlay.backdropBackgroundColor]:"transparent",[QN.overlay.backdropPointerEvents]:"all",[QN.overlay.boxShadow]:`${YN.wide.xl} ${UN}, ${YN.narrow.xl} ${UN}`,[QN.overlay.borderRadius]:Tp.radius.xs,[QN.overlay.outlineWidth]:"0",[QN.overlay.outlineColor]:"transparent",[QN.overlay.outlineStyle]:"none",[QN.overlay.padding]:"0",[QN.rowsHostWidth]:"100%",[QN.rowsContainerWidth]:"100%",[QN.rowsContainerPadding]:RN.spacing.lg,[QN.rowsContainerGap]:RN.spacing.md,[QN.rowsListGap]:RN.spacing.sm,[QN.rowsListMaxHeight]:"400px",[QN.rowsActionsGap]:RN.spacing.md,[QN.rowsAddRowIconSize]:"1.25em",[QN.rowWidth]:"100%",[QN.rowMinWidth]:"30em",[QN.rowValueWidth]:"100%",[QN.rowGap]:RN.spacing.md,[QN.rowDisabledDeleteColor]:RN.colors.surface.light};var PN=Object.freeze({__proto__:null,default:BN,vars:QN});const ZN=Ku.cssVarList,FN={[ZN.hostWidth]:$p.width,[ZN.hostMinWidth]:$p.minWidth,[ZN.hostDirection]:$p.direction,[ZN.fontSize]:$p.fontSize,[ZN.fontFamily]:$p.fontFamily,[ZN.labelFontSize]:$p.labelFontSize,[ZN.labelFontWeight]:$p.labelFontWeight,[ZN.inputValueFontWeight]:$p.inputValueFontWeight,[ZN.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[ZN.helperTextFontWeight]:$p.helperTextFontWeight,[ZN.errorMessageFontWeight]:$p.errorMessageFontWeight,[ZN.labelTextColor]:$p.labelTextColor,[ZN.errorMessageTextColor]:$p.errorMessageTextColor,[ZN.inputValueTextColor]:$p.valueTextColor,[ZN.labelRequiredIndicator]:$p.requiredIndicator,[ZN.inputPlaceholderColor]:$p.placeholderTextColor,[ZN.inputBorderWidth]:$p.borderWidth,[ZN.inputBorderStyle]:$p.borderStyle,[ZN.inputBorderColor]:$p.borderColor,[ZN.inputBorderRadius]:$p.borderRadius,[ZN.inputOutlineWidth]:$p.outlineWidth,[ZN.inputOutlineStyle]:$p.outlineStyle,[ZN.inputOutlineColor]:$p.outlineColor,[ZN.inputOutlineOffset]:$p.outlineOffset,[ZN.inputBackgroundColor]:$p.backgroundColor,[ZN.inputHorizontalPadding]:$p.horizontalPadding,[ZN.inputHeight]:$p.inputHeight,[ZN.labelPosition]:$p.labelPosition,[ZN.labelTopPosition]:$p.labelTopPosition,[ZN.labelHorizontalPosition]:$p.labelHorizontalPosition,[ZN.inputTransformY]:$p.inputTransformY,[ZN.inputTransition]:$p.inputTransition,[ZN.marginInlineStart]:$p.marginInlineStart,[ZN.placeholderOpacity]:$p.placeholderOpacity,[ZN.inputVerticalAlignment]:$p.inputVerticalAlignment,[ZN.valueInputHeight]:$p.valueInputHeight,[ZN.valueInputMarginBottom]:$p.valueInputMarginBottom,[ZN.errorMessageIcon]:$p.errorMessageIcon,[ZN.errorMessageIconSize]:$p.errorMessageIconSize,[ZN.errorMessageIconPadding]:$p.errorMessageIconPadding,[ZN.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[ZN.errorMessageIconPosition]:$p.errorMessageIconPosition,[ZN.errorMessageFontSize]:$p.errorMessageFontSize};var GN=Object.freeze({__proto__:null,default:FN,vars:ZN});const HN=L("new-email-internal"),JN=L("new-email"),{host:$N,label:qN,internalInputsWrapper:_N,errorMessage:XN,helperText:KN,emailInput:tI}={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"}},eI=T(ht({mappings:{fontSize:[$N,{},{selector:Ku.componentName,property:Ku.cssVarList.fontSize}],fontFamily:[qN,XN,KN],labelFontSize:{...qN,property:"font-size"},labelFontWeight:{...qN,property:"font-weight"},inputValueFontWeight:{...tI,property:Ku.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...tI,property:Ku.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...KN,property:"font-weight"},errorMessageFontWeight:{...XN,property:"font-weight"},labelTextColor:{...qN,property:"color"},errorMessageTextColor:{...XN,property:"color"},errorMessageIcon:{...XN,property:"background-image"},errorMessageIconSize:{...XN,property:"background-size"},errorMessageIconPadding:{...XN,property:"padding-inline-start"},errorMessageIconRepeat:{...XN,property:"background-repeat"},errorMessageIconPosition:{...XN,property:"background-position"},errorMessageFontSize:{...XN,property:"font-size"},hostWidth:{...$N,property:"width"},hostMinWidth:{...$N,property:"min-width"},hostDirection:[{...$N,property:"direction"},{...tI,property:Ku.cssVarList.hostDirection}],inputsRequiredIndicator:{...$N,property:"content"},spaceBetweenInputs:{..._N,property:"gap"},valueInputHeight:{...tI,property:Ku.cssVarList.valueInputHeight},valueInputMarginBottom:{...tI,property:Ku.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<${HN}\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 </${HN}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(HN),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${$(Ku.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:JN})),iI=eI.cssVarList,oI={[iI.hostWidth]:$p.width,[iI.hostMinWidth]:$p.minWidth,[iI.hostDirection]:$p.direction,[iI.fontSize]:$p.fontSize,[iI.fontFamily]:$p.fontFamily,[iI.labelFontSize]:$p.labelFontSize,[iI.labelFontWeight]:$p.labelFontWeight,[iI.inputValueFontWeight]:$p.inputValueFontWeight,[iI.inputPlaceholderFontWeight]:$p.inputPlaceholderFontWeight,[iI.helperTextFontWeight]:$p.helperTextFontWeight,[iI.errorMessageFontWeight]:$p.errorMessageFontWeight,[iI.labelTextColor]:$p.labelTextColor,[iI.spaceBetweenInputs]:"1em",[iI.errorMessageTextColor]:$p.errorMessageTextColor,[iI.valueInputHeight]:$p.valueInputHeight,[iI.valueInputMarginBottom]:$p.valueInputMarginBottom,[iI.errorMessageIcon]:$p.errorMessageIcon,[iI.errorMessageIconSize]:$p.errorMessageIconSize,[iI.errorMessageIconPadding]:$p.errorMessageIconPadding,[iI.errorMessageIconRepeat]:$p.errorMessageIconRepeat,[iI.errorMessageIconPosition]:$p.errorMessageIconPosition,[iI.errorMessageFontSize]:$p.errorMessageFontSize,_required:{[iI.inputsRequiredIndicator]:$p.requiredIndicator}};var nI=Object.freeze({__proto__:null,default:oI,vars:iI});const rI=ee("input-wrapper"),sI=Se(bp),[aI,lI,dI]=We({labelTextColor:sI.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:sI.colors.surface.contrast,placeholderTextColor:sI.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:sI.colors.surface.dark,errorMessageTextColor:sI.colors.error.main,successMessageTextColor:sI.colors.success.main,borderWidth:sI.border.xs,borderRadius:sI.radius.xs,borderColor:"transparent",outlineWidth:sI.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:sI.colors.surface.main,fontFamily:sI.fonts.font1.family,direction:sI.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:sI.border.xs,borderColor:sI.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:sI.colors.error.main}},_focused:{outlineColor:sI.colors.surface.light,_invalid:{outlineColor:sI.colors.error.main}},_disabled:{labelTextColor:sI.colors.surface.light,borderColor:sI.colors.surface.light,valueTextColor:sI.colors.surface.light,placeholderTextColor:sI.colors.surface.light,helperTextColor:sI.colors.surface.light,backgroundColor:sI.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},rI);var cI=Object.freeze({__proto__:null,default:aI,refs:lI,vars:dI});const uI=Se(bp),pI=ds.cssVarList,hI={[pI.hostWidth]:lI.width,[pI.hostMinWidth]:lI.minWidth,[pI.hostDirection]:lI.direction,[pI.fontSize]:lI.fontSize,[pI.fontFamily]:lI.fontFamily,[pI.labelFontSize]:lI.labelFontSize,[pI.labelFontWeight]:lI.labelFontWeight,[pI.inputValueFontWeight]:lI.inputValueFontWeight,[pI.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[pI.helperTextFontWeight]:lI.helperTextFontWeight,[pI.errorMessageFontWeight]:lI.errorMessageFontWeight,[pI.labelTextColor]:lI.labelTextColor,[pI.errorMessageTextColor]:lI.errorMessageTextColor,[pI.inputHorizontalPadding]:lI.horizontalPadding,[pI.inputHeight]:lI.inputHeight,[pI.inputBackgroundColor]:lI.backgroundColor,[pI.labelRequiredIndicator]:lI.requiredIndicator,[pI.inputValueTextColor]:lI.valueTextColor,[pI.inputPlaceholderTextColor]:lI.placeholderTextColor,[pI.inputBorderWidth]:lI.borderWidth,[pI.inputBorderStyle]:lI.borderStyle,[pI.inputBorderColor]:lI.borderColor,[pI.inputBorderRadius]:lI.borderRadius,[pI.inputOutlineWidth]:lI.outlineWidth,[pI.inputOutlineStyle]:lI.outlineStyle,[pI.inputOutlineColor]:lI.outlineColor,[pI.inputOutlineOffset]:lI.outlineOffset,[pI.revealButtonOffset]:uI.spacing.md,[pI.revealButtonSize]:lI.toggleButtonSize,[pI.revealButtonColor]:lI.placeholderTextColor,[pI.labelPosition]:lI.labelPosition,[pI.labelTopPosition]:lI.labelTopPosition,[pI.labelHorizontalPosition]:lI.labelHorizontalPosition,[pI.inputTransformY]:lI.inputTransformY,[pI.inputTransition]:lI.inputTransition,[pI.marginInlineStart]:lI.marginInlineStart,[pI.placeholderOpacity]:lI.placeholderOpacity,[pI.inputVerticalAlignment]:lI.inputVerticalAlignment,[pI.valueInputHeight]:lI.valueInputHeight,[pI.errorMessageIcon]:lI.errorMessageIcon,[pI.errorMessageIconSize]:lI.errorMessageIconSize,[pI.errorMessageIconPadding]:lI.errorMessageIconPadding,[pI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[pI.errorMessageIconPosition]:lI.errorMessageIconPosition,[pI.errorMessageFontSize]:lI.errorMessageFontSize};var gI=Object.freeze({__proto__:null,default:hI,vars:pI});const MI=wr.cssVarList,mI={[MI.hostWidth]:lI.width,[MI.hostMinWidth]:lI.minWidth,[MI.hostDirection]:lI.direction,[MI.fontSize]:lI.fontSize,[MI.fontFamily]:lI.fontFamily,[MI.labelFontSize]:lI.labelFontSize,[MI.labelFontWeight]:lI.labelFontWeight,[MI.inputValueFontWeight]:lI.inputValueFontWeight,[MI.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[MI.helperTextFontWeight]:lI.helperTextFontWeight,[MI.errorMessageFontWeight]:lI.errorMessageFontWeight,[MI.labelTextColor]:lI.labelTextColor,[MI.errorMessageTextColor]:lI.errorMessageTextColor,[MI.inputValueTextColor]:lI.valueTextColor,[MI.inputPlaceholderColor]:lI.placeholderTextColor,[MI.inputBorderWidth]:lI.borderWidth,[MI.inputBorderStyle]:lI.borderStyle,[MI.inputBorderColor]:lI.borderColor,[MI.inputBorderRadius]:lI.borderRadius,[MI.inputOutlineWidth]:lI.outlineWidth,[MI.inputOutlineStyle]:lI.outlineStyle,[MI.inputOutlineColor]:lI.outlineColor,[MI.inputOutlineOffset]:lI.outlineOffset,[MI.inputBackgroundColor]:lI.backgroundColor,[MI.labelRequiredIndicator]:lI.requiredIndicator,[MI.inputHorizontalPadding]:lI.horizontalPadding,[MI.inputHeight]:lI.inputHeight,[MI.labelPosition]:lI.labelPosition,[MI.labelTopPosition]:lI.labelTopPosition,[MI.labelHorizontalPosition]:lI.labelHorizontalPosition,[MI.inputTransformY]:lI.inputTransformY,[MI.inputTransition]:lI.inputTransition,[MI.marginInlineStart]:lI.marginInlineStart,[MI.placeholderOpacity]:lI.placeholderOpacity,[MI.inputVerticalAlignment]:lI.inputVerticalAlignment,[MI.valueInputHeight]:lI.valueInputHeight,[MI.valueInputMarginBottom]:lI.valueInputMarginBottom,[MI.errorMessageIcon]:lI.errorMessageIcon,[MI.errorMessageIconSize]:lI.errorMessageIconSize,[MI.errorMessageIconPadding]:lI.errorMessageIconPadding,[MI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[MI.errorMessageIconPosition]:lI.errorMessageIconPosition,[MI.errorMessageFontSize]:lI.errorMessageFontSize};var yI=Object.freeze({__proto__:null,default:mI,vars:MI});const bI=Ns.cssVarList,NI={[bI.hostWidth]:lI.width,[bI.hostMinWidth]:lI.minWidth,[bI.hostDirection]:lI.direction,[bI.fontSize]:lI.fontSize,[bI.fontFamily]:lI.fontFamily,[bI.labelFontSize]:lI.labelFontSize,[bI.labelFontWeight]:lI.labelFontWeight,[bI.inputValueFontWeight]:lI.inputValueFontWeight,[bI.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[bI.helperTextFontWeight]:lI.helperTextFontWeight,[bI.errorMessageFontWeight]:lI.errorMessageFontWeight,[bI.labelTextColor]:lI.labelTextColor,[bI.labelRequiredIndicator]:lI.requiredIndicator,[bI.errorMessageTextColor]:lI.errorMessageTextColor,[bI.inputBackgroundColor]:lI.backgroundColor,[bI.inputValueTextColor]:lI.valueTextColor,[bI.inputPlaceholderTextColor]:lI.placeholderTextColor,[bI.inputBorderRadius]:lI.borderRadius,[bI.inputBorderWidth]:lI.borderWidth,[bI.inputBorderStyle]:lI.borderStyle,[bI.inputBorderColor]:lI.borderColor,[bI.inputOutlineWidth]:lI.outlineWidth,[bI.inputOutlineStyle]:lI.outlineStyle,[bI.inputOutlineColor]:lI.outlineColor,[bI.inputOutlineOffset]:lI.outlineOffset,[bI.inputResizeType]:"vertical",[bI.inputMinHeight]:"5em",[bI.errorMessageIcon]:lI.errorMessageIcon,[bI.errorMessageIconSize]:lI.errorMessageIconSize,[bI.errorMessageIconPadding]:lI.errorMessageIconPadding,[bI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[bI.errorMessageIconPosition]:lI.errorMessageIconPosition,[bI.errorMessageFontSize]:lI.errorMessageFontSize,textAlign:{right:{[bI.inputTextAlign]:"right"},left:{[bI.inputTextAlign]:"left"},center:{[bI.inputTextAlign]:"center"}},_readonly:{[bI.inputResizeType]:"none"}};var II=Object.freeze({__proto__:null,default:NI,vars:bI});const xI=zi.cssVarList,jI="1.35em",TI={[xI.hostWidth]:lI.width,[xI.hostDirection]:lI.direction,[xI.fontSize]:lI.fontSize,[xI.fontFamily]:lI.fontFamily,[xI.labelTextColor]:lI.labelTextColor,[xI.labelRequiredIndicator]:lI.requiredIndicator,[xI.labelFontWeight]:"400",[xI.labelLineHeight]:jI,[xI.labelSpacing]:"1em",[xI.errorMessageTextColor]:lI.errorMessageTextColor,[xI.inputOutlineWidth]:lI.outlineWidth,[xI.inputOutlineOffset]:lI.outlineOffset,[xI.inputOutlineColor]:lI.outlineColor,[xI.inputOutlineStyle]:lI.outlineStyle,[xI.inputBorderRadius]:lI.borderRadius,[xI.inputBorderColor]:lI.borderColor,[xI.inputBorderWidth]:lI.borderWidth,[xI.inputBorderStyle]:lI.borderStyle,[xI.inputBackgroundColor]:lI.backgroundColor,[xI.inputSize]:jI,[xI.inputValueTextColor]:lI.valueTextColor,[xI.errorMessageIcon]:lI.errorMessageIcon,[xI.errorMessageIconSize]:lI.errorMessageIconSize,[xI.errorMessageIconPadding]:lI.errorMessageIconPadding,[xI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[xI.errorMessageIconPosition]:lI.errorMessageIconPosition,[xI.errorMessageFontSize]:lI.errorMessageFontSize};var DI=Object.freeze({__proto__:null,default:TI,vars:xI});const vI="2px",zI=Se(bp),CI=qi.cssVarList,SI={[CI.hostWidth]:lI.width,[CI.hostDirection]:lI.direction,[CI.fontSize]:lI.fontSize,[CI.fontFamily]:lI.fontFamily,[CI.inputOutlineWidth]:lI.outlineWidth,[CI.inputOutlineOffset]:lI.outlineOffset,[CI.inputOutlineColor]:lI.outlineColor,[CI.inputOutlineStyle]:lI.outlineStyle,[CI.trackBorderStyle]:lI.borderStyle,[CI.trackBorderWidth]:lI.borderWidth,[CI.trackBorderColor]:lI.borderColor,[CI.trackBackgroundColor]:lI.backgroundColor,[CI.trackBorderRadius]:zI.radius.md,[CI.trackWidth]:"2.5em",[CI.trackHeight]:"1.25em",[CI.knobSize]:`calc(1em - ${vI})`,[CI.knobRadius]:"50%",[CI.knobTopOffset]:"1px",[CI.knobLeftOffset]:vI,[CI.knobColor]:lI.labelTextColor,[CI.knobTransitionDuration]:"0.3s",[CI.labelTextColor]:lI.labelTextColor,[CI.labelFontWeight]:"400",[CI.labelLineHeight]:"1.35em",[CI.labelSpacing]:"1em",[CI.labelRequiredIndicator]:lI.requiredIndicator,[CI.errorMessageTextColor]:lI.errorMessageTextColor,[CI.errorMessageIcon]:lI.errorMessageIcon,[CI.errorMessageIconSize]:lI.errorMessageIconSize,[CI.errorMessageIconPadding]:lI.errorMessageIconPadding,[CI.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[CI.errorMessageIconPosition]:lI.errorMessageIconPosition,[CI.errorMessageFontSize]:lI.errorMessageFontSize,_checked:{[CI.trackBorderColor]:lI.borderColor,[CI.knobLeftOffset]:`calc(100% - var(${CI.knobSize}) - ${vI})`,[CI.knobColor]:lI.valueTextColor,[CI.knobTextColor]:lI.valueTextColor},_disabled:{[CI.knobColor]:zI.colors.surface.light,[CI.trackBorderColor]:zI.colors.surface.light,[CI.trackBackgroundColor]:zI.colors.surface.main,[CI.labelTextColor]:lI.labelTextColor,_checked:{[CI.knobColor]:zI.colors.surface.light,[CI.trackBackgroundColor]:zI.colors.surface.main}},_invalid:{[CI.trackBorderColor]:zI.colors.error.main,[CI.knobColor]:zI.colors.error.main}};var wI=Object.freeze({__proto__:null,default:SI,vars:CI});const LI=Se(bp),AI=ao.cssVarList,[fI,EI,kI]=We({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},ro),{shadowColor:OI}=EI,VI={...fI,[AI.itemsGrow]:"0",[AI.hostWidth]:"100%",[AI.hostHeight]:"auto",[AI.boxShadow]:"none",[AI.backgroundColor]:LI.colors.surface.main,[AI.backgroundImage]:"",[AI.backgroundPositionX]:"center",[AI.backgroundPositionY]:"center",[AI.backgroundSize]:"cover",[AI.backgroundRepeat]:"no-repeat",[AI.color]:LI.colors.surface.contrast,[AI.borderRadius]:"0px",[AI.hostDirection]:LI.direction,[AI.borderStyle]:"none",[AI.borderWidth]:"unset",[AI.borderColor]:"unset",verticalPadding:{sm:{[AI.verticalPadding]:"5px"},md:{[AI.verticalPadding]:"10px"},lg:{[AI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[AI.horizontalPadding]:"5px"},md:{[AI.horizontalPadding]:"10px"},lg:{[AI.horizontalPadding]:"20px"}},direction:{row:{[AI.flexDirection]:"row",[AI.alignItems]:EI.verticalAlignment,[AI.justifyContent]:EI.horizontalAlignment,[AI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[kI.horizontalAlignment]:"space-between"}}},column:{[AI.flexDirection]:"column",[AI.alignItems]:EI.horizontalAlignment,[AI.justifyContent]:EI.verticalAlignment,verticalAlignment:{spaceBetween:{[kI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[AI.gap]:"10px"},md:{[AI.gap]:"20px"},lg:{[AI.gap]:"30px"}},shadow:{sm:{[AI.boxShadow]:`${LI.shadow.wide.sm} ${OI}, ${LI.shadow.narrow.sm} ${OI}`},md:{[AI.boxShadow]:`${LI.shadow.wide.md} ${OI}, ${LI.shadow.narrow.md} ${OI}`},lg:{[AI.boxShadow]:`${LI.shadow.wide.lg} ${OI}, ${LI.shadow.narrow.lg} ${OI}`},xl:{[AI.boxShadow]:`${LI.shadow.wide.xl} ${OI}, ${LI.shadow.narrow.xl} ${OI}`},"2xl":{[kI.shadowColor]:"#00000050",[AI.boxShadow]:`${LI.shadow.wide["2xl"]} ${OI}`}},"&borderRadius":{sm:{[AI.borderRadius]:LI.radius.sm},md:{[AI.borderRadius]:LI.radius.md},lg:{[AI.borderRadius]:LI.radius.lg},xl:{[AI.borderRadius]:LI.radius.xl},"2xl":{[AI.borderRadius]:LI.radius["2xl"]},"3xl":{[AI.borderRadius]:LI.radius["3xl"]}}},WI={...AI,...kI};var RI=Object.freeze({__proto__:null,default:VI,vars:WI});const UI=Tr.cssVarList,YI={[UI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var QI=Object.freeze({__proto__:null,default:YI,vars:UI});const BI=vr.cssVarList,PI={[BI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var ZI=Object.freeze({__proto__:null,default:PI,vars:BI});const FI=Cr.cssVarList,GI={[FI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var HI=Object.freeze({__proto__:null,default:GI,vars:FI});const JI=Se(bp),$I=Ir.cssVarList,[qI,_I,XI]=We({thickness:"2px",spacing:"10px"},hr),KI={...qI,[$I.hostDirection]:JI.direction,[$I.alignItems]:"center",[$I.flexDirection]:"row",[$I.alignSelf]:"stretch",[$I.hostWidth]:"100%",[$I.stripeColor]:JI.colors.surface.light,[$I.stripeColorOpacity]:"0.5",[$I.stripeHorizontalThickness]:_I.thickness,[$I.labelTextWidth]:"fit-content",[$I.labelTextMaxWidth]:"calc(100% - 100px)",[$I.labelTextHorizontalSpacing]:_I.spacing,[$I.textAlign]:"center",_vertical:{[$I.minHeight]:"200px",[$I.flexDirection]:"column",[$I.hostWidth]:"fit-content",[$I.hostPadding]:`0 calc(${_I.thickness} * 3)`,[$I.stripeVerticalThickness]:_I.thickness,[$I.labelTextWidth]:"fit-content",[$I.labelTextMaxWidth]:"100%",[$I.labelTextVerticalSpacing]:_I.spacing}},tx={...$I,...XI};var ex=Object.freeze({__proto__:null,default:KI,vars:tx});const ix=_r.cssVarList,ox={[ix.hostDirection]:lI.direction,[ix.fontFamily]:lI.fontFamily,[ix.fontSize]:lI.fontSize,[ix.labelTextColor]:lI.labelTextColor,[ix.labelRequiredIndicator]:lI.requiredIndicator,[ix.labelFontWeight]:lI.labelFontWeight,[ix.errorMessageTextColor]:lI.errorMessageTextColor,[ix.errorMessageFontWeight]:lI.errorMessageFontWeight,[ix.digitValueTextColor]:lI.valueTextColor,[ix.digitValueFontWeight]:lI.inputValueFontWeight,[ix.digitPadding]:"0",[ix.digitTextAlign]:"center",[ix.digitSpacing]:"4px",[ix.hostWidth]:lI.width,[ix.digitOutlineColor]:"transparent",[ix.digitOutlineWidth]:lI.outlineWidth,[ix.focusedDigitFieldOutlineColor]:lI.outlineColor,[ix.digitSize]:lI.inputHeight,[ix.errorMessageIcon]:lI.errorMessageIcon,[ix.errorMessageIconSize]:lI.errorMessageIconSize,[ix.errorMessageIconPadding]:lI.errorMessageIconPadding,[ix.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[ix.errorMessageIconPosition]:lI.errorMessageIconPosition,[ix.errorMessageFontSize]:lI.errorMessageFontSize,size:{xs:{[ix.spinnerSize]:"15px"},sm:{[ix.spinnerSize]:"20px"},md:{[ix.spinnerSize]:"20px"},lg:{[ix.spinnerSize]:"20px"}},_hideCursor:{[ix.digitCaretTextColor]:"transparent"},_loading:{[ix.overlayOpacity]:lI.overlayOpacity}};var nx=Object.freeze({__proto__:null,default:ox,vars:ix});const rx=Se(bp),sx=eo.cssVarList,ax={[sx.hostDisplay]:"inline-block",[sx.hostWidth]:"100%",[sx.barColor]:rx.colors.surface.contrast,[sx.barWidth]:"20%",[sx.barBackgroundColor]:rx.colors.surface.light,[sx.barBorderRadius]:"4px",[sx.animationDuration]:"2s",[sx.animationTimingFunction]:"linear",[sx.animationIterationCount]:"infinite",[sx.verticalPadding]:"0.25em",size:{xs:{[sx.barHeight]:"2px"},sm:{[sx.barHeight]:"4px"},md:{[sx.barHeight]:"6px"},lg:{[sx.barHeight]:"8px"}},mode:{primary:{[sx.barColor]:rx.colors.primary.main},secondary:{[sx.barColor]:rx.colors.secondary.main}},_hidden:{[sx.hostDisplay]:"none"}};var lx=Object.freeze({__proto__:null,default:ax,vars:sx});const dx=Se(bp),cx=no.cssVarList,[ux,px,hx]=We({spinnerColor:dx.colors.surface.contrast,mode:{primary:{spinnerColor:dx.colors.primary.main},secondary:{spinnerColor:dx.colors.secondary.main}}},io),gx={...ux,[cx.animationDuration]:"2s",[cx.animationTimingFunction]:"linear",[cx.animationIterationCount]:"infinite",[cx.spinnerBorderStyle]:"solid",[cx.spinnerBorderWidth]:"0.2em",[cx.spinnerBorderRadius]:"50%",[cx.spinnerQuadrant1Color]:px.spinnerColor,[cx.spinnerQuadrant2Color]:"transparent",[cx.spinnerQuadrant3Color]:px.spinnerColor,[cx.spinnerQuadrant4Color]:"transparent",size:{xs:{[cx.spinnerSize]:"20px"},sm:{[cx.spinnerSize]:"30px"},md:{[cx.spinnerSize]:"40px"},lg:{[cx.spinnerSize]:"60px"},xl:{[cx.spinnerSize]:"80px"}},_hidden:{[cx.hostDisplay]:"none"}},Mx={...cx,...hx};var mx=Object.freeze({__proto__:null,default:gx,vars:Mx});const yx=Ps.cssVarList,bx={[yx.hostWidth]:lI.width,[yx.hostDirection]:lI.direction,[yx.fontSize]:lI.fontSize,[yx.fontFamily]:lI.fontFamily,[yx.labelFontSize]:lI.labelFontSize,[yx.labelFontWeight]:lI.labelFontWeight,[yx.inputValueFontWeight]:lI.inputValueFontWeight,[yx.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[yx.helperTextFontWeight]:lI.helperTextFontWeight,[yx.errorMessageFontWeight]:lI.errorMessageFontWeight,[yx.labelTextColor]:lI.labelTextColor,[yx.labelRequiredIndicator]:lI.requiredIndicator,[yx.errorMessageTextColor]:lI.errorMessageTextColor,[yx.inputValueTextColor]:lI.valueTextColor,[yx.inputPlaceholderTextColor]:lI.placeholderTextColor,[yx.inputBorderStyle]:lI.borderStyle,[yx.inputBorderWidth]:lI.borderWidth,[yx.inputBorderColor]:lI.borderColor,[yx.inputBorderRadius]:lI.borderRadius,[yx.inputOutlineStyle]:lI.outlineStyle,[yx.inputOutlineWidth]:lI.outlineWidth,[yx.inputOutlineColor]:lI.outlineColor,[yx.inputOutlineOffset]:lI.outlineOffset,[yx.phoneInputWidth]:lI.minWidth,[yx.countryCodeInputWidth]:"5em",[yx.countryCodeDropdownWidth]:"20em",[yx.marginInlineStart]:"-0.25em",[yx.valueInputHeight]:lI.valueInputHeight,[yx.valueInputMarginBottom]:lI.valueInputMarginBottom,[yx.errorMessageIcon]:lI.errorMessageIcon,[yx.errorMessageIconSize]:lI.errorMessageIconSize,[yx.errorMessageIconPadding]:lI.errorMessageIconPadding,[yx.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[yx.errorMessageIconPosition]:lI.errorMessageIconPosition,[yx.errorMessageFontSize]:lI.errorMessageFontSize};var Nx=Object.freeze({__proto__:null,default:bx,vars:yx});const Ix=sa.cssVarList,xx={[Ix.hostWidth]:"16em",[Ix.hostMinWidth]:lI.minWidth,[Ix.hostDirection]:lI.direction,[Ix.fontSize]:lI.fontSize,[Ix.fontFamily]:lI.fontFamily,[Ix.labelFontSize]:lI.labelFontSize,[Ix.labelFontWeight]:lI.labelFontWeight,[Ix.inputValueFontWeight]:lI.inputValueFontWeight,[Ix.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[Ix.helperTextFontWeight]:lI.helperTextFontWeight,[Ix.errorMessageFontWeight]:lI.errorMessageFontWeight,[Ix.labelTextColor]:lI.labelTextColor,[Ix.labelRequiredIndicator]:lI.requiredIndicator,[Ix.errorMessageTextColor]:lI.errorMessageTextColor,[Ix.inputValueTextColor]:lI.valueTextColor,[Ix.inputPlaceholderTextColor]:lI.placeholderTextColor,[Ix.inputBorderStyle]:lI.borderStyle,[Ix.inputBorderWidth]:lI.borderWidth,[Ix.inputBorderColor]:lI.borderColor,[Ix.inputBorderRadius]:lI.borderRadius,[Ix.inputOutlineStyle]:lI.outlineStyle,[Ix.inputOutlineWidth]:lI.outlineWidth,[Ix.inputOutlineColor]:lI.outlineColor,[Ix.inputOutlineOffset]:lI.outlineOffset,[Ix.labelPosition]:lI.labelPosition,[Ix.labelTopPosition]:lI.labelTopPosition,[Ix.labelHorizontalPosition]:lI.labelHorizontalPosition,[Ix.inputTransformY]:lI.inputTransformY,[Ix.inputTransition]:lI.inputTransition,[Ix.marginInlineStart]:lI.marginInlineStart,[Ix.valueInputHeight]:lI.valueInputHeight,[Ix.valueInputMarginBottom]:lI.valueInputMarginBottom,[Ix.inputHorizontalPadding]:"0",[Ix.errorMessageIcon]:lI.errorMessageIcon,[Ix.errorMessageIconSize]:lI.errorMessageIconSize,[Ix.errorMessageIconPadding]:lI.errorMessageIconPadding,[Ix.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[Ix.errorMessageIconPosition]:lI.errorMessageIconPosition,[Ix.errorMessageFontSize]:lI.errorMessageFontSize,_fullWidth:{[Ix.hostWidth]:lI.width}};var jx=Object.freeze({__proto__:null,default:xx,vars:Ix});const Tx=Se(bp),Dx=Sa.cssVarList,vx={[Dx.hostWidth]:lI.width,[Dx.hostMinWidth]:lI.minWidth,[Dx.hostDirection]:lI.direction,[Dx.fontSize]:lI.fontSize,[Dx.fontFamily]:lI.fontFamily,[Dx.labelFontSize]:lI.labelFontSize,[Dx.labelFontWeight]:lI.labelFontWeight,[Dx.inputValueFontWeight]:lI.inputValueFontWeight,[Dx.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[Dx.helperTextFontWeight]:lI.helperTextFontWeight,[Dx.errorMessageFontWeight]:lI.errorMessageFontWeight,[Dx.labelTextColor]:lI.labelTextColor,[Dx.spaceBetweenInputs]:"1em",[Dx.errorMessageTextColor]:lI.errorMessageTextColor,[Dx.policyPreviewBackgroundColor]:"none",[Dx.policyPreviewPadding]:Tx.spacing.lg,[Dx.valueInputHeight]:lI.valueInputHeight,[Dx.errorMessageIcon]:lI.errorMessageIcon,[Dx.errorMessageIconSize]:lI.errorMessageIconSize,[Dx.errorMessageIconPadding]:lI.errorMessageIconPadding,[Dx.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[Dx.errorMessageIconPosition]:lI.errorMessageIconPosition,[Dx.errorMessageFontSize]:lI.errorMessageFontSize,_required:{[Dx.inputsRequiredIndicator]:lI.requiredIndicator}};var zx=Object.freeze({__proto__:null,default:vx,vars:Dx});const Cx=Ka.cssVarList,Sx={[Cx.hostDirection]:lI.direction,[Cx.labelTextColor]:lI.labelTextColor,[Cx.fontFamily]:lI.fontFamily,[Cx.iconSize]:"2em",[Cx.hostPadding]:"0.75em",[Cx.gap]:"0.5em",[Cx.fontSize]:"16px",[Cx.titleFontWeight]:"500",[Cx.lineHeight]:"1em",[Cx.borderWidth]:lI.borderWidth,[Cx.borderColor]:lI.borderColor,[Cx.borderRadius]:lI.borderRadius,[Cx.borderStyle]:"dashed",_required:{[Cx.requiredIndicator]:lI.requiredIndicator},size:{xs:{[Cx.hostHeight]:"196px",[Cx.hostWidth]:"200px",[Cx.titleFontSize]:"0.875em",[Cx.descriptionFontSize]:"0.875em",[Cx.lineHeight]:"1.25em"},sm:{[Cx.hostHeight]:"216px",[Cx.hostWidth]:"230px",[Cx.titleFontSize]:"1em",[Cx.descriptionFontSize]:"0.875em",[Cx.lineHeight]:"1.25em"},md:{[Cx.hostHeight]:"256px",[Cx.hostWidth]:"312px",[Cx.titleFontSize]:"1.125em",[Cx.descriptionFontSize]:"1em",[Cx.lineHeight]:"1.5em"},lg:{[Cx.hostHeight]:"280px",[Cx.hostWidth]:"336px",[Cx.titleFontSize]:"1.125em",[Cx.descriptionFontSize]:"1.125em",[Cx.lineHeight]:"1.75em"}},_fullWidth:{[Cx.hostWidth]:lI.width}};var wx=Object.freeze({__proto__:null,default:Sx,vars:Cx});const Lx=Se(bp),Ax=rl.cssVarList,fx={[Ax.hostDirection]:"inherit",[Ax.hostWidth]:"auto",[Ax.backgroundColor]:Lx.colors.surface.main,[Ax.labelTextColor]:Lx.colors.surface.contrast,[Ax.borderColor]:Lx.colors.surface.light,[Ax.borderStyle]:"solid",[Ax.borderRadius]:Lx.radius.sm,[Ax.outlineColor]:"transparent",[Ax.borderWidth]:Lx.border.xs,_hover:{[Ax.backgroundColor]:Lx.colors.surface.highlight},_focused:{[Ax.outlineColor]:Lx.colors.surface.light},_selected:{[Ax.borderColor]:Lx.colors.surface.contrast,[Ax.backgroundColor]:Lx.colors.surface.contrast,[Ax.labelTextColor]:Lx.colors.surface.main}};var Ex=Object.freeze({__proto__:null,default:fx,vars:Ax});const kx=Se(bp),Ox=t=>({[t.hostDirection]:lI.direction,[t.fontFamily]:lI.fontFamily,[t.labelTextColor]:lI.labelTextColor,[t.labelRequiredIndicator]:lI.requiredIndicator,[t.itemsSpacing]:kx.spacing.sm,[t.hostWidth]:lI.width,[t.errorMessageTextColor]:lI.errorMessageTextColor,[t.errorMessageIcon]:lI.errorMessageIcon,[t.errorMessageIconSize]:lI.errorMessageIconSize,[t.errorMessageIconPadding]:lI.errorMessageIconPadding,[t.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[t.errorMessageIconPosition]:lI.errorMessageIconPosition,[t.errorMessageFontSize]:lI.errorMessageFontSize,layout:{vertical:{[t.itemsDirection]:"column",[t.itemsAlignment]:"flex-start",_fullWidth:{[t.itemsAlignment]:"stretch",[t.itemsWidth]:"100%"}}}}),Vx=Ml.cssVarList,Wx={...Ox(Vx)};var Rx=Object.freeze({__proto__:null,default:Wx,vars:Vx});const Ux=Nl.cssVarList,Yx={...Ox(Ux)};var Qx=Object.freeze({__proto__:null,default:Yx,vars:Ux});const Bx=Se(bp),Px=ec.cssVarList,Zx={[Px.overlayBackgroundColor]:Bx.colors.surface.main,[Px.overlayShadow]:Bx.shadow.wide["2xl"],[Px.overlayWidth]:"540px",[Px.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},Fx={...Px};var Gx=Object.freeze({__proto__:null,default:Zx,vars:Fx});const Hx=Se(bp),Jx=Xd.cssVarList,$x={[Jx.hostWidth]:"100%",[Jx.hostHeight]:"100%",[Jx.hostMinHeight]:"400px",[Jx.fontWeight]:"400",[Jx.backgroundColor]:Hx.colors.surface.main,[Jx.fontSize]:lI.fontSize,[Jx.fontFamily]:lI.fontFamily,[Jx.sortIndicatorsColor]:Hx.colors.surface.light,[Jx.activeSortIndicator]:Hx.colors.surface.dark,[Jx.resizeHandleColor]:Hx.colors.surface.light,[Jx.borderWidth]:lI.borderWidth,[Jx.borderStyle]:lI.borderStyle,[Jx.borderRadius]:lI.borderRadius,[Jx.borderColor]:"transparent",[Jx.headerRowTextColor]:Hx.colors.surface.dark,[Jx.separatorColor]:Hx.colors.surface.light,[Jx.valueTextColor]:Hx.colors.surface.contrast,[Jx.selectedBackgroundColor]:Hx.colors.surface.highlight,[Jx.hostDirection]:Hx.direction,[Jx.toggleDetailsPanelButtonSize]:"1em",[Jx.toggleDetailsPanelButtonOpenedColor]:Hx.colors.surface.contrast,[Jx.toggleDetailsPanelButtonClosedColor]:Hx.colors.surface.light,[Jx.toggleDetailsPanelButtonCursor]:"pointer",[Jx.detailsPanelBackgroundColor]:Hx.colors.surface.highlight,[Jx.detailsPanelBorderTopColor]:Hx.colors.surface.light,[Jx.detailsPanelLabelsColor]:Hx.colors.surface.dark,[Jx.detailsPanelLabelsFontSize]:"0.8em",[Jx.detailsPanelItemsGap]:"2em",[Jx.detailsPanelPadding]:"12px 0",_bordered:{[Jx.borderColor]:lI.borderColor}};var qx=Object.freeze({__proto__:null,default:$x,grid:$x,vars:Jx});const _x=Se(bp),Xx=rc.cssVarList,Kx="#00000020",tj={[Xx.hostMinWidth]:"415px",[Xx.fontFamily]:_x.fonts.font1.family,[Xx.fontSize]:_x.typography.body1.size,[Xx.backgroundColor]:_x.colors.surface.main,[Xx.textColor]:_x.colors.surface.contrast,[Xx.boxShadow]:`${_x.shadow.wide.xl} ${Kx}, ${_x.shadow.narrow.xl} ${Kx}`,[Xx.verticalPadding]:"0.625em",[Xx.horizontalPadding]:"1.5em",[Xx.borderRadius]:_x.radius.xs,_bordered:{[Xx.borderWidth]:_x.border.sm,[Xx.borderStyle]:"solid",[Xx.borderColor]:"transparent"},size:{xs:{[Xx.fontSize]:"12px"},sm:{[Xx.fontSize]:"14px"},md:{[Xx.fontSize]:"16px"},lg:{[Xx.fontSize]:"18px"}},mode:{primary:{[Xx.backgroundColor]:_x.colors.primary.main,[Xx.textColor]:_x.colors.primary.contrast,[Xx.borderColor]:_x.colors.primary.light},success:{[Xx.backgroundColor]:_x.colors.success.main,[Xx.textColor]:_x.colors.success.contrast,[Xx.borderColor]:_x.colors.success.light},error:{[Xx.backgroundColor]:_x.colors.error.main,[Xx.textColor]:_x.colors.error.contrast,[Xx.borderColor]:_x.colors.error.light}}};var ej=Object.freeze({__proto__:null,default:tj,vars:Xx});const ij=Se(bp),oj=xc.cssVarList,nj={[oj.hostWidth]:lI.width,[oj.hostDirection]:lI.direction,[oj.fontSize]:lI.fontSize,[oj.fontFamily]:lI.fontFamily,[oj.separatorFontSize]:"14px",[oj.labelsFontSize]:"14px",[oj.labelsLineHeight]:"1",[oj.labelsMarginBottom]:"6px",[oj.labelTextColor]:lI.labelTextColor,[oj.itemMarginBottom]:"1em",[oj.valueLabelMinWidth]:lI.minWidth,[oj.attrLabelMinWidth]:`calc(12em + 2 * ${ij.border.xs})`,[oj.separatorWidth]:"70px",[oj.removeButtonWidth]:"60px"};var rj=Object.freeze({__proto__:null,default:nj,mappingsField:nj,vars:oj});const sj=Se(bp),aj=Wc.cssVarList,lj={[aj.labelMinWidth]:"150px",[aj.hostDirection]:sj.direction,[aj.contentMinWidth]:`calc(100% - ${Ve(aj.labelMinWidth)} - ${Ve(aj.itemsGap)})`,[aj.badgeMaxWidth]:"85px",[aj.itemsGap]:"4px",[aj.hostMinWidth]:"310px",[aj.hostWidth]:"530px",[aj.hostMaxWidth]:"100%",[aj.iconColor]:"currentcolor",_fullWidth:{[aj.hostWidth]:"100%"}};var dj=Object.freeze({__proto__:null,default:lj,vars:aj});const cj=Se(bp),uj=Gc.cssVarList,pj={[uj.hostDirection]:cj.direction,[uj.itemsGap]:"16px",[uj.hostMinWidth]:"310px",[uj.hostWidth]:"530px",[uj.hostMaxWidth]:"100%",[uj.iconSize]:"24px",[uj.iconColor]:"currentcolor",_fullWidth:{[uj.hostWidth]:"100%"}};var hj=Object.freeze({__proto__:null,default:pj,vars:uj});const gj=Kc.cssVarList,Mj={[gj.hostWidth]:lI.width,[gj.hostDirection]:lI.direction,[gj.groupNameInputMarginBottom]:"1em",[gj.errorMessageIcon]:lI.errorMessageIcon,[gj.errorMessageIconSize]:lI.errorMessageIconSize,[gj.errorMessageIconPadding]:lI.errorMessageIconPadding,[gj.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[gj.errorMessageIconPosition]:lI.errorMessageIconPosition,[gj.errorMessageFontSize]:lI.errorMessageFontSize};var mj=Object.freeze({__proto__:null,default:Mj,samlGroupMappings:Mj,vars:gj});const yj=Se(bp),bj=ba.cssVarList,Nj={[bj.fontFamily]:lI.fontFamily,[bj.fontSize]:lI.labelFontSize,[bj.textColor]:lI.labelTextColor,[bj.borderWidth]:lI.borderWidth,[bj.borderStyle]:lI.borderStyle,[bj.borderColor]:lI.borderColor,[bj.borderRadius]:yj.radius.sm,[bj.backgroundColor]:"none",[bj.padding]:"0px",[bj.labelMargin]:yj.spacing.sm,[bj.itemsSpacing]:yj.spacing.lg,[bj.itemSymbolDefault]:"'\\2022'",[bj.itemSymbolSuccess]:"'\\2713'",[bj.itemSymbolError]:"'\\2A09'",[bj.itemSymbolSuccessColor]:yj.colors.success.main,[bj.itemSymbolErrorColor]:yj.colors.error.main};var Ij=Object.freeze({__proto__:null,default:Nj,vars:bj});const xj=Se(bp),jj=zd.cssVarList,Tj="#d73a49",Dj="#6f42c1",vj="#005cc5",zj="#e36209",Cj="#6a737d",Sj="#22863a",wj="#24292e",Lj="#f0fff4",Aj="#032f62",fj="#ff7b72",Ej="#d2a8ff",kj="#79c0ff",Oj="#ffa657",Vj="#8b949e",Wj="#7ee787",Rj="#c9d1d9",Uj="#f0fff4",Yj="#a5d6ff",Qj={[jj.copyButtonSize]:"32px",[jj.copyButtonBorderRadius]:xj.radius.xs,[jj.copyButtonBorderWidth]:xj.border.xs,[jj.copyButtonBorderColor]:xj.colors.surface.light,[jj.copyButtonBgColor]:xj.colors.surface.highlight,[jj.copyButtonHoverBgColor]:xj.colors.surface.light,[jj.copyButtonColor]:xj.colors.surface.contrast,[jj.rootBgColor]:xj.colors.surface.main,[jj.rootTextColor]:xj.colors.surface.contrast,[jj.docTagTextColor]:Tj,[jj.keywordTextColor]:Tj,[jj.metaKeywordTextColor]:Tj,[jj.templateTagTextColor]:Tj,[jj.templateVariableTextColor]:Tj,[jj.typeTextColor]:Tj,[jj.variableLanguageTextColor]:Tj,[jj.titleTextColor]:Dj,[jj.titleClassTextColor]:Dj,[jj.titleClassInheritedTextColor]:Dj,[jj.titleFunctionTextColor]:Dj,[jj.attrTextColor]:vj,[jj.attributeTextColor]:vj,[jj.literalTextColor]:vj,[jj.metaTextColor]:vj,[jj.numberTextColor]:vj,[jj.operatorTextColor]:vj,[jj.variableTextColor]:vj,[jj.selectorAttrTextColor]:vj,[jj.selectorClassTextColor]:vj,[jj.selectorIdTextColor]:vj,[jj.regexpTextColor]:Aj,[jj.stringTextColor]:Aj,[jj.metaStringTextColor]:Aj,[jj.builtInTextColor]:zj,[jj.symbolTextColor]:zj,[jj.commentTextColor]:Cj,[jj.codeTextColor]:Cj,[jj.formulaTextColor]:Cj,[jj.nameTextColor]:Sj,[jj.quoteTextColor]:Sj,[jj.selectorTagTextColor]:Sj,[jj.selectorPseudoTextColor]:Sj,[jj.substTextColor]:wj,[jj.sectionTextColor]:vj,[jj.bulletTextColor]:"#735c0f",[jj.emphasisTextColor]:wj,[jj.strongTextColor]:wj,[jj.additionTextColor]:Sj,[jj.additionBgColor]:Lj,[jj.deletionTextColor]:Tj,[jj.deletionBgColor]:Lj},Bj={codeSnippet:{[jj.rootBgColor]:xj.colors.surface.main,[jj.rootTextColor]:xj.colors.surface.contrast,[jj.docTagTextColor]:fj,[jj.keywordTextColor]:fj,[jj.metaKeywordTextColor]:fj,[jj.templateTagTextColor]:fj,[jj.templateVariableTextColor]:fj,[jj.typeTextColor]:fj,[jj.variableLanguageTextColor]:fj,[jj.titleTextColor]:Ej,[jj.titleClassTextColor]:Ej,[jj.titleClassInheritedTextColor]:Ej,[jj.titleFunctionTextColor]:Ej,[jj.attrTextColor]:kj,[jj.attributeTextColor]:kj,[jj.literalTextColor]:kj,[jj.metaTextColor]:kj,[jj.numberTextColor]:kj,[jj.operatorTextColor]:kj,[jj.variableTextColor]:kj,[jj.selectorAttrTextColor]:kj,[jj.selectorClassTextColor]:kj,[jj.selectorIdTextColor]:kj,[jj.regexpTextColor]:Yj,[jj.stringTextColor]:Yj,[jj.metaStringTextColor]:Yj,[jj.builtInTextColor]:Oj,[jj.symbolTextColor]:Oj,[jj.commentTextColor]:Vj,[jj.codeTextColor]:Vj,[jj.formulaTextColor]:Vj,[jj.nameTextColor]:Wj,[jj.quoteTextColor]:Wj,[jj.selectorTagTextColor]:Wj,[jj.selectorPseudoTextColor]:Wj,[jj.substTextColor]:Rj,[jj.sectionTextColor]:kj,[jj.bulletTextColor]:"#735c0f",[jj.emphasisTextColor]:Rj,[jj.strongTextColor]:Rj,[jj.additionTextColor]:Wj,[jj.additionBgColor]:Uj,[jj.deletionTextColor]:fj,[jj.deletionBgColor]:Uj}};var Pj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Bj,default:Qj,vars:jj});const Zj=ou.cssVarList,Fj=Se(bp),Gj={[Zj.buttonsRowGap]:"9px",[Zj.hostWidth]:lI.width,[Zj.hostDirection]:lI.direction,[Zj.fontSize]:lI.fontSize,[Zj.fontFamily]:lI.fontFamily,[Zj.labelFontWeight]:lI.labelFontWeight,[Zj.labelTextColor]:lI.labelTextColor,[Zj.labelRequiredIndicator]:lI.requiredIndicator,[Zj.errorMessageTextColor]:lI.errorMessageTextColor,[Zj.errorMessageIcon]:lI.errorMessageIcon,[Zj.errorMessageIconSize]:lI.errorMessageIconSize,[Zj.errorMessageIconPadding]:lI.errorMessageIconPadding,[Zj.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[Zj.errorMessageIconPosition]:lI.errorMessageIconPosition,[Zj.errorMessageFontSize]:lI.errorMessageFontSize,[Zj.helperTextColor]:lI.helperTextColor,[Zj.itemsLabelColor]:Fj.colors.surface.contrast,[Zj.itemsLabelFontWeight]:lI.inputValueFontWeight,[Zj.itemsFontFamily]:lI.fontFamily,[Zj.itemsRadioCheckedColor]:Fj.colors.surface.light,[Zj.itemsRadioBackgroundColor]:Fj.colors.surface.light,[Zj.itemsRadioCheckedBackgroundColor]:Fj.colors.surface.contrast,textAlign:{right:{[Zj.inputTextAlign]:"right"},left:{[Zj.inputTextAlign]:"left"},center:{[Zj.inputTextAlign]:"center"}},_fullWidth:{[Zj.buttonsSpacing]:"space-between"},_disabled:{[Zj.itemsLabelColor]:Fj.colors.surface.light}};var Hj=Object.freeze({__proto__:null,default:Gj,radioGroup:Gj,vars:Zj});const Jj=eu.cssVarList,$j=Se(bp),qj={[Jj.fontFamily]:lI.fontFamily,[Jj.labelFontWeight]:lI.inputValueFontWeight,[Jj.radioSize]:"calc(1em + 6px)",[Jj.radioMargin]:"auto 4px",[Jj.radioCheckedSize]:`calc(var(${Jj.radioSize})/5)`,[Jj.radioCheckedColor]:$j.colors.surface.light,[Jj.radioBackgroundColor]:$j.colors.surface.light,[Jj.radioBorderColor]:"none",[Jj.radioBorderWidth]:0,_checked:{[Jj.radioBackgroundColor]:$j.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[Jj.fontSize]:"12px"},sm:{[Jj.fontSize]:"14px"},md:{[Jj.fontSize]:"16px"},lg:{[Jj.fontSize]:"18px"}}};var _j=Object.freeze({__proto__:null,default:qj,radioButton:qj,vars:Jj});const Xj=Se(bp),Kj=fn.cssVarList,tT={[Kj.fontFamily]:lI.fontFamily,[Kj.fontSize]:lI.fontSize,[Kj.hostDirection]:lI.direction,[Kj.calendarPadding]:"1em",[Kj.topNavVerticalPadding]:"1em",[Kj.topNavAlignment]:"space-between",[Kj.topNavGap]:"0",[Kj.topNavSelectorsGap]:"0.5em",[Kj.bottomNavVerticalPadding]:"0.75em",[Kj.bottomNavHorizontalPadding]:"1.5em",[Kj.bottomNavAlignment]:"space-between",[Kj.bottomNavGap]:"0.5em",[Kj.navMarginBottom]:"0.75em",[Kj.navBorderBottomWidth]:"1px",[Kj.navBorderBottomColor]:Xj.colors.surface.highlight,[Kj.navBorderBottomStyle]:"solid",[Kj.yearInputWidth]:"6em",[Kj.monthInputWidth]:"8em",[Kj.navButtonSize]:"24px",[Kj.navButtonCursor]:"pointer",[Kj.weekdayFontSize]:"0.875em",[Kj.weekdayFontWeight]:"500",[Kj.dayHeight]:"3.125em",[Kj.daySize]:"2.125em",[Kj.dayFontSize]:"1em",[Kj.dayRadius]:"50%",[Kj.dayTextAlign]:"center",[Kj.dayPadding]:"0",[Kj.dayTextColor]:Xj.colors.surface.contrast,[Kj.dayFontWeight]:"500",[Kj.dayBackgroundColor]:"transparent",[Kj.dayCursor]:"pointer",[Kj.dayBackgroundColorHover]:Xj.colors.primary.highlight,[Kj.daySelectedBackgroundColor]:Xj.colors.primary.main,[Kj.daySelectedTextdColor]:Xj.colors.primary.contrast,[Kj.dayDisabledTextdColor]:Xj.colors.surface.light,[Kj.currentDayBorderColor]:Xj.colors.surface.light,[Kj.currentDayBorderWidth]:"1px",[Kj.currentDayBorderStyle]:"solid",size:{xs:{[Kj.fontSize]:"12px"},sm:{[Kj.fontSize]:"14px"},md:{[Kj.fontSize]:"16px"},lg:{[Kj.fontSize]:"18px"}},[Kj.navButtonRotation]:"rotate(180deg)",_disabled:{[Kj.navButtonOpacity]:"0.5",[Kj.dayBackgroundColorHover]:"none",[Kj.navButtonCursor]:"default",[Kj.dayCursor]:"default"},_fullWidth:{[Kj.hostWidth]:"100%",[Kj.dayBlockAlign]:"0 auto"}};var eT=Object.freeze({__proto__:null,default:tT,vars:Kj});const iT=Se(bp),oT="#00000020",{shadow:nT}=iT,rT=pr.cssVarList,sT={[rT.hostWidth]:lI.width,[rT.hostDirection]:lI.direction,[rT.iconMargin]:"0.375em",[rT.overlay.marginTop]:`calc(${lI.outlineWidth} + 1px)`,[rT.overlay.backgroundColor]:lI.backgroundColor,[rT.overlay.backdropBackgroundColor]:"transparent",[rT.overlay.backdropPointerEvents]:"all",[rT.overlay.boxShadow]:`${nT.wide.xl} ${oT}, ${nT.narrow.xl} ${oT}`,[rT.overlay.outlineWidth]:"0",[rT.overlay.outlineColor]:"transparent",[rT.overlay.outlineStyle]:"none",[rT.overlay.padding]:"0",[rT.rtlInputDirection]:"ltr",[rT.rtlInputAlignment]:"right",[rT.errorMessageIcon]:lI.errorMessageIcon,[rT.errorMessageIconSize]:lI.errorMessageIconSize,[rT.errorMessageIconPadding]:lI.errorMessageIconPadding,[rT.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[rT.errorMessageIconPosition]:lI.errorMessageIconPosition,[rT.errorMessageFontSize]:lI.errorMessageFontSize,[rT.labelFontWeight]:lI.labelFontWeight,[rT.inputValueFontWeight]:lI.inputValueFontWeight,[rT.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[rT.helperTextFontWeight]:lI.helperTextFontWeight,[rT.errorMessageFontWeight]:lI.errorMessageFontWeight};var aT=Object.freeze({__proto__:null,default:sT,vars:rT});const lT=du.cssVarList,dT={[lT.requiredInputBorderColor]:aI._disabled[dI.borderColor],[lT.requiredInputValueTextColor]:aI._disabled[dI.valueTextColor],[lT.hostWidth]:"280px",_fullWidth:{[lT.hostWidth]:"100%"}};var cT=Object.freeze({__proto__:null,default:dT,vars:lT});const uT=Se(bp),pT=Nu.cssVarList,hT={[pT.gap]:uT.spacing.lg,[pT.arrowsColor]:uT.colors.surface.dark,[pT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[pT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[pT.logoMaxHeight]:"30px",[pT.logoMaxWidth]:"120px"},sm:{[pT.logoMaxHeight]:"40px",[pT.logoMaxWidth]:"160px"},md:{[pT.logoMaxHeight]:"48px",[pT.logoMaxWidth]:"200px"},lg:{[pT.logoMaxHeight]:"60px",[pT.logoMaxWidth]:"240px"}}};var gT=Object.freeze({__proto__:null,default:hT,vars:pT});const MT=Du.cssVarList,mT={[MT.hostWidth]:"fit-content",_fullWidth:{[MT.hostWidth]:"100%"}};var yT=Object.freeze({__proto__:null,default:mT,vars:MT});const bT=fu.cssVarList,NT={[bT.hostWidth]:"min-content",[bT.questionCursor]:"pointer",_fullWidth:{[bT.hostWidth]:"100%"},[bT.questionFontSize]:lI.fontSize,[bT.questionFontFamily]:lI.fontFamily};var IT=Object.freeze({__proto__:null,default:NT,vars:bT});const xT=sp.cssVarList,jT={[xT.hostDirection]:lI.direction,[xT.labelFontWeight]:lI.labelFontWeight,[xT.inputValueFontWeight]:lI.inputValueFontWeight,[xT.inputPlaceholderFontWeight]:lI.inputPlaceholderFontWeight,[xT.helperTextFontWeight]:lI.helperTextFontWeight,[xT.errorMessageFontWeight]:lI.errorMessageFontWeight,[xT.errorMessageIcon]:lI.errorMessageIcon,[xT.errorMessageIconSize]:lI.errorMessageIconSize,[xT.errorMessageIconPadding]:lI.errorMessageIconPadding,[xT.errorMessageIconRepeat]:lI.errorMessageIconRepeat,[xT.errorMessageIconPosition]:lI.errorMessageIconPosition,[xT.errorMessageFontSize]:lI.errorMessageFontSize,_fullWidth:{[xT.hostWidth]:"100%"}};var TT=Object.freeze({__proto__:null,default:jT,vars:xT});const DT=Se(bp),vT=cp.cssVarList,zT={[vT.hostDirection]:DT.direction,[vT.backgroundColor]:"transparent",[vT.iconSize]:"1.35em",[vT.alignItems]:"center",[vT.borderRadius]:DT.radius.md,[vT.horizontalPadding]:"0",[vT.verticalPadding]:"0",[vT.gap]:"0.5em",[vT.fontSize]:Ve(Op.fontSize),mode:{error:{[vT.textColor]:DT.colors.error.main,_bordered:{[vT.borderColor]:DT.colors.error.main}},success:{[vT.textColor]:DT.colors.success.main,_bordered:{[vT.borderColor]:DT.colors.success.main}}},spacing:{xs:{[vT.horizontalPadding]:DT.spacing.xs,[vT.verticalPadding]:DT.spacing.xs},sm:{[vT.horizontalPadding]:DT.spacing.sm,[vT.verticalPadding]:DT.spacing.sm},md:{[vT.horizontalPadding]:DT.spacing.md,[vT.verticalPadding]:DT.spacing.md},lg:{[vT.horizontalPadding]:DT.spacing.lg,[vT.verticalPadding]:DT.spacing.lg},xl:{[vT.horizontalPadding]:DT.spacing.xl,[vT.verticalPadding]:DT.spacing.xl}},textAlign:{left:{[vT.justifyContent]:"left"},center:{[vT.justifyContent]:"center"},right:{[vT.justifyContent]:"right"}},_bordered:{[vT.borderWidth]:DT.border.xs,[vT.borderColor]:"transparent",[vT.borderStyle]:"solid",[vT.borderWidth]:DT.border.xs,[vT.borderRadius]:DT.radius.sm},_fullWidth:{[vT.hostWidth]:"100%"}};var CT=Object.freeze({__proto__:null,default:zT,vars:vT});const ST=gp.cssVarList,wT={enabled:{false:{[ST.maxHeight]:"70px"}}},LT={button:Ep,textField:pb,password:gI,numberField:yI,emailField:GN,textArea:II,checkbox:DI,switchToggle:wI,container:RI,logo:QI,totpImage:ZI,notpImage:HI,text:Wp,enrichedText:Fp,link:Qp,divider:ex,passcode:nx,loaderRadial:mx,loaderLinear:lx,comboBox:Kp,phoneField:Nx,phoneInputBoxField:jx,newPassword:zx,newEmail:nI,inputWrapper:cI,uploadFile:wx,buttonSelectionGroupItem:Ex,buttonSelectionGroup:Rx,buttonMultiSelectionGroup:Qx,modal:Gx,grid:qx,notificationCard:ej,multiSelectComboBox:xg,badge:sh,avatar:yh,mappingsField:rj,userAttribute:dj,userAuthMethod:hj,samlGroupMappings:mj,policyValidation:Ij,image:xh,icon:Nh,codeSnippet:Pj,radioGroup:Hj,radioButton:_j,calendar:eT,dateField:aT,monthDayField:Zb,monthDayFieldPicker:nN,list:Wh,listItem:Qh,multiLineMappings:yg,appsList:Sh,scopesList:cT,thirdPartyAppLogo:gT,securityQuestionsSetup:yT,securityQuestionsVerify:IT,hybridField:TT,alert:CT,autocompleteField:fg,addressField:Jg,countrySubdivisionCityField:Ry,timer:sM,timerButton:jM,passwordStrength:OM,collapsibleContainer:JM,recoveryCodes:sm,activeSessions:mm,hcaptcha:Object.freeze({__proto__:null,default:wT,vars:ST}),outboundApps:Dm,outboundAppButton:Am,trustedDevices:Qm,multiSso:qm,tooltip:uy,filter:PN,attachment:Jy,userPasskeys:lb},AT=Object.keys(LT).reduce((t,e)=>({...t,[e]:LT[e].default}),{}),fT=Object.keys(LT).reduce((t,e)=>({...t,[e]:LT[e].vars}),{}),ET={globals:bp,components:AT},kT={globals:Np,components:fT},OT=a()({},ET,{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:{...Bj}});customElements.define(Bh,og),customElements.define(lm,hm),customElements.define(jg,class extends Tg{static get observedAttributes(){return[].concat(Tg.observedAttributes||[],Dg)}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:vg,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:vg,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(zg,Sg),customElements.define(Og,Bg),customElements.define(Pg,Fg);const VT=L("anchored");class WT extends(It({componentName:VT,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 RT=T(Mt)(WT);customElements.define(VT,RT),customElements.define(ah,ph),customElements.define(jh,Th),customElements.define(Uy,Zy),customElements.define(VM,UM),customElements.define(by,Ly),customElements.define(Ay,Oy),customElements.define(MN,TN),customElements.define(DN,LN),customElements.define(AN,WN),customElements.define(Hb,eN),customElements.define(Db,Rb),customElements.define(ng,gg),customElements.define(Bm,Gm);const UT=/^email-/,YT=/^confirm-/,QT=(t,e)=>t.replace(e,""),BT=["email-label","email-placeholder"],PT=["confirm-label","confirm-placeholder"],ZT=["disabled","bordered","size","full-width","invalid","readonly","draggable","label-type"],FT=[].concat(ZT,BT,PT),GT=Ct({componentName:HN,baseSelector:"div"});customElements.define(HN,class extends GT{static get observedAttributes(){return[].concat(GT.observedAttributes||[],FT)}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(ku,"u"):new RegExp(Eu);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(${eI.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&&(ZT.includes(t)?this.inputs?.forEach(e=>this.toggleBooleanAttribute(e,t,i)):BT.includes(t)?this.toggleBooleanAttribute(this.emailInput,QT(t,UT),i):PT.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,QT(t,YT),i))}}),customElements.define(JN,eI),customElements.define(vm,Cm),customElements.define(ym,xm),customElements.define(TM,LM);var HT=Object.freeze({__proto__:null,PasswordStrengthClass:LM,componentName:TM});const JT=L("ponyhot"),$T="dhp-",qT=It({componentName:JT,baseSelector:""}),_T=T(Mt)(class extends qT{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(JT,_T),customElements.define($M,em),customElements.define(qg,iM),customElements.define(aM,bM),customElements.define(_m,iy),customElements.define(km,Rm),customElements.define(Ky,rb);const XT={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}},KT=new m.Qn(XT);var tD=Object.freeze({__proto__:null,default:t=>KT.check(t),options:XT})}}]);
2
2
  //# sourceMappingURL=222.js.map