@descope/flow-components 3.23.0 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fm/222.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_descope_flow_components_3_23_0_1791715176439=self.webpackChunk_descope_flow_components_3_23_0_1791715176439||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Ib,$y:()=>Bu,A8:()=>Dc,Ag:()=>il,C1:()=>Yc,C9:()=>jo,Cz:()=>cc,Er:()=>Jp,G6:()=>nT,HO:()=>qi,HT:()=>eo,J1:()=>Oo,Jr:()=>Yi,Lg:()=>Gu,MN:()=>ps,Mz:()=>Aa,NF:()=>Gs,O7:()=>xM,Od:()=>ju,QW:()=>nc,Qb:()=>WM,R3:()=>Sm,SE:()=>ao,SQ:()=>Lo,T$:()=>Qy,T1:()=>hT,TV:()=>qu,U6:()=>$M,Ul:()=>da,VN:()=>Ld,VX:()=>Sr,_w:()=>ke,a5:()=>rT,bL:()=>pr,bU:()=>Cg,br:()=>U,dS:()=>NN,dX:()=>rh,dq:()=>Im,du:()=>qh,e7:()=>Se,eA:()=>wc,eo:()=>Ml,ew:()=>ge,fp:()=>jl,gZ:()=>pu,h5:()=>om,jH:()=>wr,k0:()=>Ir,l1:()=>no,lZ:()=>Wb,md:()=>zr,ml:()=>Bt,mq:()=>iu,o9:()=>fr,o_:()=>Ee,pp:()=>$c,px:()=>Ou,q:()=>zy,q4:()=>zi,qn:()=>Co,rG:()=>Cu,sK:()=>wi,tD:()=>ec,tS:()=>su,td:()=>Rh,tl:()=>ts,ul:()=>Fa,v_:()=>Tr,w8:()=>Xn,wt:()=>xa,xO:()=>js,xp:()=>yu,xs:()=>fn,yW:()=>dm,yi:()=>Um,yj:()=>tM,zQ:()=>oT,zZ:()=>yy});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(1399),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(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)},L=t=>async e=>{const i=await t(e);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})},w=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},U=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}},R=.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,R):Q(t,.4),G=(t,e)=>Z(t)?Q(t,R):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=>`\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`,tt=t=>A(I,...t),et=(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},it=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,it(n,[...e,o],i)),{}),ot=(t,e)=>it(t,[],t=>et({},t,`var(${tt(t)})`)),nt=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),rt=(t,e)=>{const i=it(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=A(e,n),s={[n]:r},a={[n]:nt(r)};return{theme:et({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},st=t=>`${t}__override`,at=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${st(t)}, ${o})`:o};let lt=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 dt=(t,e="fallback")=>j(t,e),ct=(t,e,{fallback:i})=>{if(!i)return{};const o=dt(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,...ct(n,o,i)}},ut=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=A(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:st(n)},ct(o,n,e[o]))},{}),pt=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...ut(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 U.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=U.currentThemeName,this.onThemeChange?.(U.currentThemeName)}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=U.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 lt,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=dt(e,t?.suffix);return at(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,at(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?.()}}},ht=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?.()}},gt=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}))}},mt=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})})}},yt=["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"],bt=t=>class extends t{init(){super.init?.(),v(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>yt.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?`)}),{})}},Nt=({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(gt,mt,bt,Mt)(i)};function It(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const xt=t=>class extends t{#v=It.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)})}},jt=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,It.call(this,"blur"),It.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(It.call(this,"focus"),It.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,It.call(this,"input",{bubbles:!0,composed:!0})))})}},Tt=["required","pattern"],Dt=Symbol("validationTarget"),vt=t=>class extends t{#C=Dt;static get observedAttributes(){return[...t.observedAttributes||[],...Tt]}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""}}#L(){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===Dt?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.#L())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Tt.includes(t)&&this.#L()}init(){super.init?.(),this.addEventListener("change",this.#L),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#L),setTimeout(()=>this.#L())}},zt=(...t)=>T(vt,xt,bt,jt)(Nt(...t)),Ct="FETCH_RESULTS_ERROR",St=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#w()}checkConnectorValidity(){this.isValid=this.#w()}#w(){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(Nt({componentName:t,baseSelector:e})){#A=It.bind(this,"blur");#f=It.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},wt=["invalid","required"],At=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ft=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(vt(r)){static get observedAttributes(){return[...r.observedAttributes||[],...wt]}#E;#v=It.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=At(t)||At(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]})}}},Et=t=>T(ft(t),pt({componentNameOverride:w("input-wrapper")})),kt=({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=pt({mappings:i,style:o})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:ut(s?j(r.componentName,"_"+s):r.componentName,i)}}#O;constructor(){const t=L(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);if(!e||!t.shadowRoot)return i;const o=await L(()=>i)(t);return D(e)?e(o):o.querySelector(e)});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;f(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},Ot=()=>!0,Vt=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,Wt=({itemRenderer:t=Vt,validateSchema:e=Ot,slotName:i,rerenderAttrsList:o=[],targetSelector:n,sortFn:r=t=>t})=>s=>class extends s{#U=[];#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.#R&&this.#R.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.#R&&this.#R.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#U=t,this.#B())}get data(){return this.#U}init(){super.init?.(),this.#R=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=({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()}},Rt=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Yt=w("enriched-text");class Qt extends(Nt({componentName:Yt,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(Rt)}#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 Bt=T(pt({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:{}}}),pt({componentNameOverride:w("link")}),pt({componentNameOverride:w("text")}),Ut({triggers:[{attr:"full-width",value:"true"}]}),ht,gt)(Qt),Pt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),Zt=(...t)=>Pt(t.filter(t=>!!t).join("-")),Ft=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),Gt=t=>"function"==typeof t,Ht="descope",Jt="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})},qt=(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})},_t=(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))})},Xt=(t,e,i)=>{$t(t,_t(t,e),i),$t(e,_t(e,t),i)},Kt=t=>Zt(Ht,t),te=(...t)=>`--${Zt(...t)}`,ee=(t,e,i={})=>{$t(t,_t(t,e,i.mapAttrs),i)},ie=(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)},oe=.4,ne=.25,re=.1,se=(t,e)=>t.darken(e).hex(),ae=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},le=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),de=t=>t.luminosity()<.01,ce=t=>t.luminosity()>.99,ue=(t,e)=>"dark"===e?ce(t)?se(t,ne):le(t,oe):de(t)?le(t,ne):se(t,oe),pe=(t,e)=>"dark"===e?de(t)?le(t,ne):se(t,oe):ce(t)?se(t,ne):le(t,oe),he=(t,e)=>"dark"===e?de(t)?le(t,re):se(t,.8):ce(t)?se(t,re):le(t,.8),ge=(t,e)=>{const i=new(d())(t.main||t);return{main:i.hex(),dark:t.dark||ue(i,e),light:t.light||pe(i,e),highlight:t.highlight||he(i,e),contrast:t.contrast||ae(i)}},Me=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,me=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,ye=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,be=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,Ne=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,Ie=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,xe=(t,e)=>`\n ${me(t)}\n ${be(t)}\n ${Ne(t)}\n ${ye(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 ${Ie(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`,je=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`,Te=t=>te(Ht,...t),De=(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},ve=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,ve(n,[...e,o],i)),{}),ze=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}},Ce=(t,e)=>ve(t,[],t=>De({},t,`var(${Te(t)})`)),Se=(t,e="")=>{const i=Object.entries((t=>ve(t,[],(t,e)=>({[Te(t)]:ze(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},Le="@container",we="$breakpoints",Ae=t=>t.startsWith("$breakpoints."),fe=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(Le))(e)?`${t}${e} {\n${fe(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),Ee=t=>{const e=(t=>ve(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===we)return{};const r=n.pop(),s=Kt(o);"undefined"===r&&console.warn(s,`theme value: "${i}" is mapped to an invalid property`);const a=Jt,l=t[o]?.[we]||{},d=n.filter(Ae),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>Ae(t)?`${Le} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!Ae(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+`[${Pt(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+`[${Pt(r)}="${n.splice(i+1,1).join("")}"]`.repeat(s)},""),h=":host"+(p?`(${p})`:""),g=u.reduceRight((t,e)=>({[e]:t}),{[h]:{[r]:ze(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]:fe(o[e])}),{})})},{})},ke=({globals:t,components:e},i)=>({globals:Se(t,i),components:Ee(e)}),Oe=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),Ve=(t,e)=>{const i=ve(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=te(e,n),s={[n]:r},a={[n]:Oe(r)};return{theme:De({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},We=t=>`${t}__override`,Ue=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${We(t)}, ${o})`:o};class Re{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 Ye=(t,e="fallback")=>Zt(t,e),Qe=(t,e,{fallback:i})=>{if(!i)return{};const o=Ye(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,...Qe(n,o,i)}},Be=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=te(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:We(n)},Qe(o,n,e[o]))},{}),Pe=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...Be(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o=Jt,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=>Zt("st",i,t))}get#h(){return U.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=U.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=te(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 Re,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Ye(e,t?.suffix);return Ue(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:Pt(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=te(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>Gt(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),Gt(i)?i():i,Ue(a,l,!0)+(r?"!important":""))})}),o.toString()})(Zt(n,this.#a),this.#c,t);E(e,this.#d,{prepend:!0})}}#I(){const t=Gt(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?.()}}},Ze=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?.()}},Fe=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()}},Ge=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},He=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})})}},Je=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value","loading"],$e=t=>class extends t{init(){super.init?.(),$t(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>Je.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?`)}),{})}},qe=({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 Ft(Fe,He,$e,Ge)(i)};function _e(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const Xe=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(qe({componentName:t,baseSelector:e})){#A=_e.bind(this,"blur");#f=_e.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((Gt(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#A()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),ie(this.baseElement,this,s),Xt(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},Ke=["required","pattern"],ti=Symbol("validationTarget"),ei=t=>class extends t{#C=ti;static get observedAttributes(){return[...t.observedAttributes||[],...Ke]}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""}}#L(){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===ti?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.#L())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Ke.includes(t)&&this.#L()}init(){super.init?.(),this.addEventListener("change",this.#L),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#L),setTimeout(()=>this.#L())}},ii=["invalid","required"],oi=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ni=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(ei(r)){static get observedAttributes(){return[...r.observedAttributes||[],...ii]}#E;#v=_e.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=oi(t)||oi(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),ee(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]})}}},ri=t=>Ft(ni(t),Pe({componentNameOverride:Kt("input-wrapper")})),si=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Pe({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Be(Zt(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;ee(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},ai=t=>class extends t{#v=_e.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)})}},li=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,_e.call(this,"blur"),_e.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(_e.call(this,"focus"),_e.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,_e.call(this,"input",{bubbles:!0,composed:!0})))})}},di=({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#tt=[];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),Xt(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.#tt.forEach(t=>clearTimeout(t)),this.#tt.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.#tt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#tt.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})}},ci=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},ui=(...t)=>Ft(ei,ai,$e,li)(qe(...t)),pi=Kt("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"),ee(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),ie(this.inputElement,this,["checked"]),Xt(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${Bt.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${Bt.cssVarList.hostDirection}: var(${t.hostDirection});\n}\n\n`;const yi=Kt("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=Ft(Pe({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"}]}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,Mi)(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(zi.cssVarList)}\n ${Me(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=w("text");class Si extends(Nt({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:Li}={host:{selector:()=>":host"}},wi=T(pt({mappings:{hostWidth:{...Li,property:"width"},hostDirection:{...Li,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Ut({triggers:[{attr:"full-width",value:"true"}]}),ht,gt)(Si),Ai=w("link"),fi=["href","readonly"];class Ei extends(Nt({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:()=>wi.componentName}},{anchor:Oi,text:Vi,host:Wi,wrapper:Ui,link:Ri}=ki,Yi=T(pt({mappings:{hostWidth:{...Wi,property:"width"},hostDirection:{...Vi,property:"direction"},textAlign:Ui,textDecoration:{...Ri,property:"text-decoration",fallback:"none"},textColor:[{...Oi,property:"color"},{...Vi,property:wi.cssVarList.textColor}],cursor:Oi}}),Ut({triggers:[{attr:"full-width",value:"true"}]}),ht,gt)(Ei);customElements.define(Ci,wi),customElements.define(Ai,Yi),customElements.define(Yt,Bt),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?.(),ee(this,this.checkbox,{includeAttrs:hi}),Xt(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=Kt("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=Ft(Pe({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"}}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,Mi)(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(qi.cssVarList)}\n\t\t\t${Me(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=Kt("loader-linear");class Xi extends(qe({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=Ft(Pe({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]}}),Ze,Fe)(Xi);customElements.define(_i,eo);const io=Kt("loader-radial");class oo extends(qe({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=Ft(Pe({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:{}}}),Ze,Fe)(oo);customElements.define(io,no);const ro=Kt("container");class so extends(qe({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=Ft(Pe({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:{}}}),Ze,Fe)(so);customElements.define(ro,ao);const lo=w("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(pt({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}}}),ht,kt({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"]}}),Et({proxyProps:["selectionStart"],inputEvent:"value-changed"}),t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},gt,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#et=({displayName:t,value:e,label:i})=>`<span data-name="${i}" data-id="${e}">${t||i}</span>`;#U;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#et}set renderItem(t){this.#et=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.#U)return this.#U;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.#U=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.#U||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)}}})}#it(){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)}#ot(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#nt(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#rt(){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.#nt(),this.#rt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#ot()}),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#it.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)}#st(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#at(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.#st(t);this.#at(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 ${K("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=w("image"),vo=["src","src-dark"];class zo extends(Nt({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(pt({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),ht,gt)(zo),So=w("icon"),Lo=T(pt({mappings:{fill:[{},{property:Co.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),ht,gt)(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})),wo=w("button"),{host:Ao,label:fo,slottedIcon:Eo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let ko;const Oo=T(Ut({triggers:[{attr:"full-width",value:"true"}]}),pt({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:Lo.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()}},ht,gt)(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:wo})),{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(wo,Oo);const Uo=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Ro=Uo[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(Uo.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=Kt("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:Ln,yearInput:wn,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=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({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:{...wn,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"},{...Ln,property:"transform"}],navButtonOpacity:[{...zn,property:"opacity"},{...Cn,property:"opacity"}]}}),Ze,Fe)(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=>ee(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=>ee(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:Un,inputMask:Rn,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:[{...Un,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:{...Un,property:"direction"},inputBackgroundColor:[{...Wn,property:"background-color"},{...Rn,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:[{...Un,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:[{...Un,property:"padding-left"},{...Un,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:[{...Un,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:[{...Un,property:"height"},{...Fn,property:"height"}],valueInputMarginBottom:[{...Un,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:[{...Un,property:"-webkit-text-security"},{...Un,property:"text-security"},{...Fn,property:"-webkit-text-security"},{...Fn,property:"text-security"}]};const qn=w("text-field"),_n=["type","label-type","copy-to-clipboard"],Xn=T(pt({mappings:$n}),ht,Et({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),gt,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 ${K("vaadin-text-field")}\n\t\t\t${$(Xn.cssVarList)}\n\t\t\t${((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`)("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{#U=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.#U}set data(t){this.#U=Object.freeze(t),this.onChange?.()}get#lt(){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.#lt<this.max?Math.max(this.#lt+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#lt>this.min?Math.min(this.#lt-(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=Kt("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=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({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}}}),si({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}}}),Ze,Fe)(class extends er{epoch="";format=Ro;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.#dt()};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()}#dt(){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.#ot()},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)),ee(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.#ct.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ut;#ct(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#pt()),(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.#ht(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#ht(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ut?.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.#ut?this.#ut.replaceSync(d):this.#ut=E(d,t)}#pt(){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}#ot(){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.#dt()}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))),ee(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||Ro;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.#gt(this.countersValue),this.resetToInitialState()):(this.#gt(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#gt(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=Kt("divider");class gr extends(qe({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"),ee(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const Mr=wi.cssVarList,{host:mr,before:yr,after:br,text:Nr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},Ir=Ft(Pe({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"}]}}),Ze,Fe)(gr);customElements.define(hr,Ir);const xr=Kt("email-field"),jr="email",Tr=Ft(Pe({mappings:$n}),Ze,di({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),ri({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Fe,t=>class extends t{get acceptsUnicode(){return"false"!==this.getAttribute("accept-unicode")}init(){super.init?.(),this.baseElement.setAttribute("pattern","^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$"),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()}enableUnicode(){this.baseElement.setAttribute("pattern","^[\\p{L}\\p{M}\\p{N}._%+'\\-]+@[\\p{L}\\p{M}\\p{N}.\\-]+\\.[\\p{L}\\p{M}][\\p{L}\\p{M}\\p{N}\\-]+$"),this.baseElement._setType("text"),this.externalInput&&(this.externalInput.type="text"),this.getAttribute("inputmode")||this.setAttribute("inputmode",jr),this.externalInput?.setAttribute("inputmode",jr)}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})))}})(Xe({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(${Tr.cssVarList.inputOutlineWidth}) + var(${Tr.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${je("vaadin-email-field")}\n\t\t\t${Me(Tr.cssVarList)}\n\t\t\t${xe("vaadin-email-field",Tr.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:xr}));customElements.define(xr,Tr);const Dr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(qe({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=Ft(Pe({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),Ze,Fe)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},vr=Kt("logo"),zr=Dr({componentName:vr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(vr,zr);const Cr=Kt("totp-image"),Sr=Dr({componentName:Cr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Cr,Sr);const Lr=Kt("notp-image"),wr=Dr({componentName:Lr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Lr,wr);const Ar=Kt("number-field"),fr=Ft(Pe({mappings:$n}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe)(Xe({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(${fr.cssVarList.inputOutlineWidth}) + var(${fr.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${je("vaadin-number-field")}\n\t\t\t${Me(fr.cssVarList)}\n\t\t\t${xe("vaadin-number-field",fr.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:Ar}));customElements.define(Ar,fr);const Er="--descope-input-mask-content",kr="--descope-input-mask-display",Or="--descope-input-mask-fallback",Vr=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},Wr=t=>t.replace(/\D/g,"")||"",Ur=(t,e)=>{e?(t.style.setProperty(Er,`"${e}"`),t.style.setProperty(kr,"flex")):(t.style.removeProperty(Er),t.style.removeProperty(kr))},Rr=Kt("passcode-internal"),Yr=["digits","loading"],Qr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Br=ui({componentName:Rr,baseSelector:"div"}),Pr=Kt("passcode"),Zr=["digits"],{host:Fr,digitField:Gr,label:Hr,requiredIndicator:Jr,internalWrapper:$r,focusedDigitField:qr,errorMessage:_r}={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)"}},Xr=Xn.cssVarList,Kr=no.cssVarList,ts=Ft(Pe({mappings:{fontSize:[{...Gr,property:Xr.fontSize},Fr],hostWidth:{property:"width"},hostDirection:{...Fr,property:"direction"},fontFamily:[Fr,{...Hr}],labelFontWeight:{...Hr,property:"font-weight"},errorMessageFontWeight:{..._r,property:"font-weight"},digitValueFontWeight:{selector:Xn.componentName,property:Xr.inputValueFontWeight},labelTextColor:[{...Hr,property:"color"},{...Hr,property:"-webkit-text-fill-color"},{...Jr,property:"color"},{...Jr,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Jr,property:"content"},errorMessageTextColor:{..._r,property:"color"},errorMessageIcon:{..._r,property:"background-image"},errorMessageIconSize:{..._r,property:"background-size"},errorMessageIconPadding:{..._r,property:"padding-inline-start"},errorMessageIconRepeat:{..._r,property:"background-repeat"},errorMessageIconPosition:{..._r,property:"background-position"},errorMessageFontSize:{..._r,property:"font-size"},digitValueTextColor:{selector:Xn.componentName,property:Xr.inputValueTextColor},digitSize:[{...Gr,property:"height"},{...Gr,property:"width"}],digitPadding:{...Gr,property:Xr.inputHorizontalPadding},digitTextAlign:{...Gr,property:Xr.inputTextAlign},digitCaretTextColor:{...Gr,property:Xr.inputCaretTextColor},digitSpacing:{...$r,property:"gap"},digitOutlineColor:{...Gr,property:Xr.inputOutlineColor},digitOutlineWidth:{...Gr,property:Xr.inputOutlineWidth},focusedDigitFieldOutlineColor:{...qr,property:Xr.inputOutlineColor},overlayOpacity:{...$r,property:"opacity"},spinnerSize:{selector:no.componentName,property:Kr.spinnerSize}}}),Ze,ci,ri({proxyProps:["value","selectionStart"]}),Fe,t=>class extends t{static get observedAttributes(){return Zr.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 <${Rr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${Rr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Rr),ee(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)}})(Xe({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(${Xr.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 ${je("vaadin-text-field")}\n\t\t\t${be("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Pr}));customElements.define(Rr,class extends Br{static get observedAttributes(){return Yr.concat(Br.observedAttributes||[])}constructor(){super(),this.innerHTML='\n\t\t<div class="wrapper"></div>\n\t\t<div class="loader-container">\n <descope-loader-radial size="xs" mode="primary"></descope-loader-radial>\n </div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper"),this.loaderContainer=this.querySelector(".loader-container")}renderInputs(){const t=[...Array(this.digits).keys()].map(t=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${t}\n\t\t\ttype="tel"\n\t\t\tautocomplete="one-time-code"\n\t\t\tinputMode="numeric"\n\t\t></descope-text-field>\n\t`);this.wrapperEle.innerHTML=t.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(t){t?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:t})=>t).join("")||""}set value(t){t!==this.value&&this.parseInputValue(this.inputs[0],Wr(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}Vr(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 ${Or}: '';\n content: var(${Er}, var(${Or}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${kr}, none);\n align-items: center;\n justify-content: center;\n }`,t);const e=r()(e=>{this.parseInputValue(t,e),Ur(t)},0,{trailing:!0});let i=!1;t.addEventListener("input",o=>{t.value=Wr(t.value),t.value&&Ur(t,t.value[0]);const n="deleteContentBackward"===o?.inputType||i;i=!1,n&&Vr(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,Vr(this.getPrevInput(t))):(i=!1,1===o.length&&(t.value=""))},ee(this,t,{includeAttrs:Qr}),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&&Yr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Pr,ts);const es=Kt("password"),{host:is,inputField:os,inputElement:ns,inputElementPlaceholder:rs,revealButtonContainer:ss,revealButtonIcon:as,label:ls,requiredIndicator:ds,errorMessage:cs,helperText:us}={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)"}},ps=Ft(Pe({mappings:{hostWidth:{...is,property:"width"},hostMinWidth:{...is,property:"min-width"},hostDirection:{...is,property:"direction"},fontSize:[{},is],fontFamily:[ls,os,cs,us],inputHeight:{...os,property:"height"},inputHorizontalPadding:[{...ns,property:"padding-left"},{...ns,property:"padding-right"}],inputBackgroundColor:{...os,property:"background-color"},inputBorderStyle:{...os,property:"border-style"},inputBorderWidth:{...os,property:"border-width"},inputBorderColor:{...os,property:"border-color"},inputBorderRadius:{...os,property:"border-radius"},inputOutlineColor:{...os,property:"outline-color"},inputOutlineStyle:{...os,property:"outline-style"},inputOutlineOffset:{...os,property:"outline-offset"},inputOutlineWidth:{...os,property:"outline-width"},labelFontSize:{...ls,property:"font-size"},labelFontWeight:{...ls,property:"font-weight"},inputValueFontWeight:[{...ns,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...rs,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...us,property:"font-weight"},errorMessageFontWeight:{...cs,property:"font-weight"},labelTextColor:[{...ls,property:"color"},{...ls,property:"-webkit-text-fill-color"},{...ds,property:"color"},{...ds,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...ds,property:"content"},errorMessageTextColor:{...cs,property:"color"},errorMessageIcon:{...cs,property:"background-image"},errorMessageIconSize:{...cs,property:"background-size"},errorMessageIconPadding:{...cs,property:"padding-inline-start"},errorMessageIconRepeat:{...cs,property:"background-repeat"},errorMessageIconPosition:{...cs,property:"background-position"},errorMessageFontSize:{...cs,property:"font-size"},inputPlaceholderTextColor:[{...rs,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...ns,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...ss,property:"margin-right"},{...ss,property:"margin-left"}],revealButtonSize:{...ss,property:"font-size"},revealButtonColor:{...as,property:"color"},labelPosition:{...ls,property:"position"},labelTopPosition:{...ls,property:"top"},labelHorizontalPosition:[{...ls,property:"left"},{...ls,property:"right"}],inputTransformY:{...ls,property:"transform"},inputTransition:{...ls,property:"transition"},marginInlineStart:{...ls,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...ns,property:"opacity"}],inputVerticalAlignment:{...os,property:"align-items"},valueInputHeight:{...ns,property:"height"}}}),Ze,di({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),ri({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Fe,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")}})(Xe({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${Me(ps.cssVarList)}\n\t\t\t${be("vaadin-password-field")}\n ${je("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(${ps.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:es}));customElements.define(es,ps);const hs=Kt("text-area"),{host:gs,label:Ms,placeholder:ms,inputField:ys,textArea:bs,requiredIndicator:Ns,helperText:Is,errorMessage:xs}={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)"}},js=Ft(Pe({mappings:{hostWidth:{...gs,property:"width"},hostMinWidth:{...gs,property:"min-width"},hostDirection:{...gs,property:"direction"},fontSize:[gs,bs],fontFamily:[Ms,ys,Is,xs],labelFontSize:{...Ms,property:"font-size"},labelFontWeight:{...Ms,property:"font-weight"},inputValueFontWeight:{...bs,property:"font-weight"},inputPlaceholderFontWeight:{...ms,property:"font-weight"},helperTextFontWeight:{...Is,property:"font-weight"},errorMessageFontWeight:{...xs,property:"font-weight"},labelTextColor:[{...Ms,property:"color"},{...Ms,property:"-webkit-text-fill-color"},{...Ns,property:"color"}],labelRequiredIndicator:{...Ns,property:"content"},errorMessageTextColor:{...xs,property:"color"},errorMessageIcon:{...xs,property:"background-image"},errorMessageIconSize:{...xs,property:"background-size"},errorMessageIconPadding:{...xs,property:"padding-inline-start"},errorMessageIconRepeat:{...xs,property:"background-repeat"},errorMessageIconPosition:{...xs,property:"background-position"},errorMessageFontSize:{...xs,property:"font-size"},inputBackgroundColor:{...ys,property:"background-color"},inputValueTextColor:{...bs,property:"color"},inputPlaceholderTextColor:{...ms,property:"color"},inputBorderWidth:{...ys,property:"border-width"},inputBorderStyle:{...ys,property:"border-style"},inputBorderColor:{...ys,property:"border-color"},inputBorderRadius:{...ys,property:"border-radius"},inputOutlineStyle:{...ys,property:"outline-Style"},inputOutlineColor:{...ys,property:"outline-color"},inputOutlineOffset:{...ys,property:"outline-offset"},inputOutlineWidth:{...ys,property:"outline-width"},inputResizeType:{...bs,property:"resize"},inputMinHeight:{...bs,property:"min-height"},inputTextAlign:{...bs,property:"text-align"}}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe)(Xe({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 ${je("vaadin-text-area")}\n\t\t\t${Me(js.cssVarList)}\n\t\t\t${me("vaadin-text-area")}\n\t\t\t${ye("vaadin-text-area")}\n\t\t\t${Ne("vaadin-text-area","textarea")}\n\t\t\t${be("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:hs}));customElements.define(hs,js);var Ts=[{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 Ds=({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`,vs=Kt("phone-field-internal"),zs=["disabled","size","bordered","readonly"],Cs=["country-input-placeholder","default-code","restrict-countries"],Ss=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],Ls=["label-type","country-input-label","label"],ws={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},As=[].concat(zs,Cs,Ss,Ls),fs=ui({componentName:vs,baseSelector:"div"});customElements.define(vs,class extends fs{static get observedAttributes(){return[].concat(fs.observedAttributes||[],As)}#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 ${Ts.map(t=>Ds(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],ee(this,this.comboBox,{includeAttrs:["label-type"]}),ee(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=Ts.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(As.includes(t)){const e=ws[t]||t;zs.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):Cs.includes(t)?this.comboBox.setAttribute(e,i):Ss.includes(t)&&this.textField.setAttribute(e,i)}Ls.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?Ts.filter(e=>t.includes(e.code)):Ts;this.querySelector("descope-combo-box").innerHTML=e.map(t=>Ds(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=ws[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 Es=Xn.cssVarList,ks=jo.cssVarList,Os=Kt("phone-field"),{host:Vs,label:Ws,requiredIndicator:Us,inputField:Rs,internalAfter:Ys,countryCodeInput:Qs,phoneInput:Bs,separator:Ps,errorMessage:Zs,helperText:Fs}={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)"}},Gs=Ft(Pe({mappings:{fontSize:[Vs,Rs,{selector:Xn.componentName,property:Xn.cssVarList.fontSize},{selector:jo.componentName,property:jo.cssVarList.fontSize}],fontFamily:[Ws,Zs,Fs,{...Qs,property:jo.cssVarList.overlay.fontFamily}],hostWidth:[{...Vs,property:"width"},{...Bs,property:"width"},{...Qs,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Vs,property:"direction"},inputBorderStyle:[{...Ys,property:"border-style"},{...Ps,property:"border-left-style"}],inputBorderWidth:[{...Ys,property:"border-width"},{...Ps,property:"border-left-width"}],inputBorderColor:[{...Ys,property:"border-color"},{...Ps,property:"border-left-color"}],inputBorderRadius:[{...Rs,property:"border-radius"},{...Ys,property:"border-radius"}],countryCodeInputWidth:{...Qs,property:ks.hostWidth},countryCodeDropdownWidth:{...Qs,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Bs,property:"width"},horizontalPadding:[{...Bs,property:"padding-left"},{...Bs,property:"padding-right"},{...Qs,property:"padding-left"},{...Qs,property:"padding-right"}],labelFontSize:{...Ws,property:"font-size"},labelFontWeight:{...Ws,property:"font-weight"},inputValueFontWeight:[{...Bs,property:Es.inputValueFontWeight},{...Qs,property:ks.inputValueFontWeight}],inputPlaceholderFontWeight:{...Bs,property:Es.inputPlaceholderFontWeight},helperTextFontWeight:{...Fs,property:"font-weight"},errorMessageFontWeight:{...Zs,property:"font-weight"},labelTextColor:[{...Ws,property:"color"},{...Ws,property:"-webkit-text-fill-color"},{...Us,property:"color"}],labelRequiredIndicator:{...Us,property:"content"},errorMessageTextColor:{...Zs,property:"color"},errorMessageIcon:{...Zs,property:"background-image"},errorMessageIconSize:{...Zs,property:"background-size"},errorMessageIconPadding:{...Zs,property:"padding-inline-start"},errorMessageIconRepeat:{...Zs,property:"background-repeat"},errorMessageIconPosition:{...Zs,property:"background-position"},errorMessageFontSize:{...Zs,property:"font-size"},inputValueTextColor:[{...Bs,property:Es.inputValueTextColor},{...Qs,property:ks.inputValueTextColor}],inputPlaceholderTextColor:{...Bs,property:Es.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:ks.overlayItemBackgroundColor},inputOutlineStyle:{...Rs,property:"outline-style"},inputOutlineColor:{...Rs,property:"outline-color"},inputOutlineWidth:{...Rs,property:"outline-width"},inputOutlineOffset:{...Rs,property:"outline-offset"},valueInputHeight:[{...Qs,property:ks.valueInputHeight}],valueInputMarginBottom:[{...Bs,property:Es.valueInputMarginBottom}],marginInlineStart:[{...Bs,property:Es.marginInlineStart},{...Qs,property:ks.marginInlineStart}]}}),Ze,ci,ri({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ts}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${vs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${vs}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(vs),ee(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"))}})(Xe({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${Me(Gs.cssVarList)}\n\t\t\t${be("vaadin-text-field")}\n\t\t\t${Ie("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(${Gs.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${ks.inputOutlineWidth}: 0;\n\t\t\t\t${ks.inputOutlineOffset}: 0;\n\t\t\t\t${ks.inputBorderWidth}: 0;\n\t\t\t\t${ks.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Es.inputOutlineWidth}: 0;\n\t\t\t\t${Es.inputOutlineOffset}: 0;\n\t\t\t\t${Es.inputBorderWidth}: 0;\n\t\t\t\t${Es.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 ${je("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Os}));customElements.define(Os,Gs);const Hs=Kt("phone-field-internal-input-box"),Js=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],$s={"phone-input-placeholder":"placeholder","phone-input-type":"type"},qs=ui({componentName:Hs,baseSelector:"div"});customElements.define(Hs,class extends qs{static get observedAttributes(){return[].concat(qs.observedAttributes||[],Js)}#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"),Ts.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.#Lt();const t=this.#wt();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&&Js.includes(t)){const e=$s[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}#Lt(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Vt(this.textField.value),e=this.#ft(t);return[this.defaultDialCode,e].join("-")}#wt(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#ft(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#ft(t){return t.replace(/\D/g,"")}#Vt(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#It(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#zt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Et(t){if(t=t.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const e=/^[+\d-\(\)]+$/;t=t.split("").filter(t=>e.test(t)).join("")}return t}#Ot(t=""){const e=this.defaultCode||this.#Wt(t);return e?(this.#Mt&&this.#Mt.country===e||(this.#Mt=new p.Q(e)),this.#Mt.reset(),this.#Mt.input(t)||t):t}#Wt(t){const e=(0,u.l)(t);return e?.country||""}#kt(t){return!!(t=>{const e=t.match(/\(/g),i=t.match(/\)/g);return e?.length===i?.length})(t)}});const _s=Xn.cssVarList,Xs=Kt("phone-input-box-field"),{host:Ks,label:ta,inputElement:ea,requiredIndicator:ia,inputField:oa,internalComponent:na,internalComponentAfter:ra,phoneInput:sa,errorMessage:aa,helperText:la}={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)"}},da=Ft(Pe({mappings:{fontSize:[Ks,oa,{selector:Xn.componentName,property:Xn.cssVarList.fontSize}],fontFamily:[ta,aa,la],hostWidth:{...Ks,property:"width"},hostMinWidth:{...Ks,property:"min-width"},hostDirection:{...Ks,property:"direction"},inputHorizontalPadding:[{...sa,property:"padding-left"},{...sa,property:"padding-right"}],labelFontSize:{...ta,property:"font-size"},labelFontWeight:{...ta,property:"font-weight"},inputValueFontWeight:{...sa,property:_s.inputValueFontWeight},inputPlaceholderFontWeight:{...sa,property:_s.inputPlaceholderFontWeight},helperTextFontWeight:{...la,property:"font-weight"},errorMessageFontWeight:{...aa,property:"font-weight"},labelTextColor:[{...ta,property:"color"},{...ta,property:"-webkit-text-fill-color"},{...ia,property:"color"}],labelRequiredIndicator:{...ia,property:"content"},errorMessageTextColor:{...aa,property:"color"},errorMessageIcon:{...aa,property:"background-image"},errorMessageIconSize:{...aa,property:"background-size"},errorMessageIconPadding:{...aa,property:"padding-inline-start"},errorMessageIconRepeat:{...aa,property:"background-repeat"},errorMessageIconPosition:{...aa,property:"background-position"},errorMessageFontSize:{...aa,property:"font-size"},inputValueTextColor:{...sa,property:_s.inputValueTextColor},inputPlaceholderTextColor:{...sa,property:_s.inputPlaceholderColor},inputBorderStyle:{...ra,property:"border-style"},inputBorderWidth:{...ra,property:"border-width"},inputBorderColor:{...ra,property:"border-color"},inputBorderRadius:[{...na,property:"border-radius"},{...ra,property:"border-radius"}],inputOutlineStyle:{...na,property:"outline-style"},inputOutlineColor:{...na,property:"outline-color"},inputOutlineWidth:{...na,property:"outline-width"},inputOutlineOffset:{...na,property:"outline-offset"},labelPosition:{...ta,property:"position"},labelTopPosition:{...ta,property:"top"},labelHorizontalPosition:[{...ta,property:"left"},{...ta,property:"right"}],inputTransformY:{...ta,property:"transform"},inputTransition:{...ta,property:"transition"},marginInlineStart:{...ta,property:"margin-inline-start"},valueInputHeight:{...ea,property:"height"},valueInputMarginBottom:{selector:Xn.componentName,property:_s.valueInputMarginBottom}}}),Ze,ci,ri({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ts}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${Hs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Hs}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Hs),S(this,this.inputElement,{includeAttrs:["has-value"]}),ee(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}})(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${Me(da.cssVarList)}\n ${be("vaadin-text-field")}\n ${Ie("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n }\n descope-phone-field-internal-input-box descope-text-field {\n ${_s.inputOutlineWidth}: 0;\n ${_s.inputOutlineOffset}: 0;\n }\n descope-phone-field-internal-input-box::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n pointer-events: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] input:placeholder-shown {\n opacity: 0;\n }\n\n ${je("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:Xs}));customElements.define(Xs,da);const ca=Kt("new-password-internal"),ua=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),pa=Kt("policy-validation"),ha=["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"],ga=["label","value",...ha];class Ma extends(qe({componentName:pa,baseSelector:":host > div"})){#Ut;#Rt=[];#Yt;static get observedAttributes(){return ga}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),ha.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(i)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Rt=(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-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.#Ut,this.#Rt,this.#Yt)}}get availablePolicies(){return this.#Ut||[]}set availablePolicies(t){this.#Ut=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.#Ut;return this.#Yt&&(t=this.#Ut.map(t=>{const e=this.#Yt[t.id];return e?{...t,data:e}:t})),this.#Rt.reduce((e,i)=>{const o=t.find(t=>t.id===i);if(!o)return e;const{pattern:n,message:r,data:s,compare:a}=o,l="string"==typeof a?a.toUpperCase():a;if(!n&&!a||!r)return e;const d={message:ua(r,s),id:i};if(n){const t=new RegExp(ua(n,s));d.valid=t.test(this.value)}else if("STR_NEQ_CI"===l){const t=(s?.expected??"").toLowerCase(),e=(this.value??"").toLowerCase();if(t&&e){const i=t.indexOf("@"),o=i>0?t.slice(0,i):t;d.valid=e!==t&&e!==o}else d.valid=!0}else a&&(d.valid=this.compareValues(l,s?.expected??-1,s?.actual??-1));return e.push(d),e},[])}get isValid(){return!this.validate().some(({valid:t})=>!1===t)}buildValidationItem({valid:t,message:e}){const i=this.value?t:"none",o=document.createElement("li");o.className="item",o.dataset.valid=i;const n=document.createElement("span");return n.className="message",n.textContent=e??"",o.appendChild(n),o}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:ma,item:ya,symbolDefault:ba,symbolSuccess:Na,symbolError:Ia}={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'}},xa=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ma,property:"border-width"},borderStyle:{...ma,property:"border-style"},borderColor:{...ma,property:"border-color"},borderRadius:{...ma,property:"border-radius"},backgroundColor:{...ma,property:"background-color"},textColor:{property:"color"},labelMargin:{...ma,property:"gap"},itemsSpacing:{...ya,property:"line-height"},itemSymbolSuccessColor:{...Na,property:"color"},itemSymbolErrorColor:{...Ia,property:"color"},itemSymbolDefault:{...ba,property:"content"},itemSymbolSuccess:{...Na,property:"content"},itemSymbolError:{...Ia,property:"content"}}}),Ze,Fe)(Ma),ja=Kt("new-password"),Ta=xa.cssVarList,{host:Da,label:va,internalInputsWrapper:za,errorMessage:Ca,helperText:Sa,passwordInput:La,policyPreview:wa}={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"}},Aa=Ft(Pe({mappings:{fontSize:[Da,{},{selector:ps.componentName,property:ps.cssVarList.fontSize}],fontFamily:[va,Ca,Sa],labelFontSize:{...va,property:"font-size"},labelFontWeight:{...va,property:"font-weight"},inputValueFontWeight:{...La,property:ps.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...La,property:ps.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...Sa,property:"font-weight"},errorMessageFontWeight:{...Ca,property:"font-weight"},labelTextColor:{...va,property:"color"},errorMessageTextColor:{...Ca,property:"color"},errorMessageIcon:{...Ca,property:"background-image"},errorMessageIconSize:{...Ca,property:"background-size"},errorMessageIconPadding:{...Ca,property:"padding-inline-start"},errorMessageIconRepeat:{...Ca,property:"background-repeat"},errorMessageIconPosition:{...Ca,property:"background-position"},errorMessageFontSize:{...Ca,property:"font-size"},hostWidth:{...Da,property:"width"},hostMinWidth:{...Da,property:"min-width"},hostDirection:[{...Da,property:"direction"},{...La,property:ps.cssVarList.hostDirection}],inputsRequiredIndicator:{...Da,property:"content"},spaceBetweenInputs:{...za,property:"gap"},policyPreviewBackgroundColor:{...wa,property:Ta.backgroundColor},policyPreviewPadding:{...wa,property:Ta.padding},valueInputHeight:{...La,property:ps.cssVarList.valueInputHeight},valueInputMarginBottom:{...La,property:ps.cssVarList.valueInputMarginBottom}}}),Ze,ri({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<${ca}\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 </${ca}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ca),"true"===this.getAttribute("external-input")&&this.initExternalInput(),ee(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","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")}})(Xe({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${Me(ps.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:ja}));customElements.define(pa,xa);const fa=/^password-/,Ea=/^confirm-/,ka=(t,e)=>t.replace(e,""),Oa=["password-label","password-placeholder"],Va=["confirm-label","confirm-placeholder"],Wa=["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","manual-visibility-toggle"],Ua=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ra=[].concat(Ua,Oa,Va,Wa),Ya=ui({componentName:ca,baseSelector:"div"});customElements.define(ca,class extends Ya{static get observedAttributes(){return[].concat(Ya.observedAttributes||[],Ra)}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)}),ee(this,this.policyPanel,{includeAttrs:Wa,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(${Aa.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 dT}),this.passwordStrength=document.createElement("descope-password-strength"),this.passwordStrength.setAttribute("options","Very weak,Weak,Average,Strong,Very strong"),this.passwordStrength.setAttribute("value",this.passwordInput.value||""),this.passwordStrength.setAttribute("st-host-direction",this.getAttribute("st-host-direction")),this.passwordStrength.setAttribute("full-width","true"),this.querySelector(".password-input-container").insertBefore(this.passwordStrength,this.policyPanel)):this.passwordStrength&&(this.passwordStrength.remove(),this.passwordStrength=null)}get activePolicies(){return(this.getAttribute("active-policies")||"").split(",")}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("has-validation"===t?this.onHasValidationChange("true"===i):"has-confirm"===t?this.onHasConfirmChange("true"===i):Ua.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):Oa.includes(t)?this.toggleBooleanAttribute(this.passwordInput,ka(t,fa),i):Va.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,ka(t,Ea),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(ja,Aa);const Qa=Kt("recaptcha"),Ba=["enabled","site-key","action","enterprise","variant"],Pa="recaptcha",Za=ui({componentName:Qa,baseSelector:":host > div"}),Fa=Ft(Ze)(class extends Za{#Qt=null;static get observedAttributes(){return Ba.concat(Za.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?.(),qt(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",Pa),this.#Qt=Pa):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(Qa,Fa);const Ga=Kt("upload-file"),Ha=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Ja=ui({componentName:Ga,baseSelector:":host > div"}),$a=Oo.cssVarList,{host:qa,wrapper:_a,icon:Xa,title:Ka,description:tl,requiredIndicator:el}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},il=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...qa,property:"height"},hostWidth:{...qa,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...qa,property:"direction"},{selector:()=>Oo.componentName,property:$a.hostDirection}],gap:{..._a},lineHeight:{..._a,property:"line-height"},titleFontSize:{...Ka,property:"font-size"},titleFontWeight:{...Ka,property:"font-weight"},descriptionFontSize:{...tl,property:"font-size"},labelTextColor:[{...Ka,property:"color"},{...tl,property:"color"}],iconSize:{...Xa,property:"width"},requiredIndicator:{...el,property:"content"}}}),Ze,Fe)(class extends Ja{static get observedAttributes(){return Ha.concat(Ja.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(Ga,il);const ol=t=>{class e extends(ui({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=_e.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},nl=Kt("button-selection-group-internal");class rl extends(ol(nl)){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 sl=t=>class extends t{#et=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#U;get renderItem(){return this.#et}set renderItem(t){this.#et=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#U)return this.#U;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.#U=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"]}),qt(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"}},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\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n [part="internal-component"] slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${je("vaadin-text-field")}\n\t\t\t${be("vaadin-text-field")}\n `,gl=Kt("button-selection-group"),Ml=Ft(Pe({mappings:{...pl}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${nl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${nl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(nl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),ee(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:gl}));customElements.define(nl,rl);const ml=Kt("button-selection-group-item");class yl extends(qe({componentName:ml,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),ee(this,this.baseElement,{includeAttrs:["size","variant"]}),ee(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 bl=Ft(Pe({mappings:{hostDirection:{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},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}}}),Ze,Fe)(yl);customElements.define(ml,bl),customElements.define(gl,Ml);const Nl=Kt("button-multi-selection-group-internal");class Il extends(ol(Nl)){#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 xl=Kt("button-multi-selection-group"),jl=Ft(Pe({mappings:{...pl}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Nl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${Nl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Nl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),ee(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:xl}));customElements.define(Nl,Il),customElements.define(xl,jl);class Tl 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 Dl=Kt("grid-text-column");customElements.define(Dl,Tl);const vl=Kt("grid-custom-column");customElements.define(vl,class extends Tl{_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 zl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},Cl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class Sl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=zl(),i.addEventListener("input",()=>{const t=Cl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",Cl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=zl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const Ll=Kt("grid-selection-column");customElements.define(Ll,Sl);class wl 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 Al=Kt("grid-item-details-column");customElements.define(Al,wl),customElements.define(Do,Co),customElements.define(So,Lo);const fl=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},El=Kt("code-snippet");let kl=class extends(qe({componentName:El,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(),qt(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(fl(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=fl(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 Ol={selector:()=>".copy-btn"},{root:Vl,docTag:Wl,keyword:Ul,metaKeyword:Rl,templateTag:Yl,templateVariable:Ql,type:Bl,variableLanguage:Pl,title:Zl,titleClass:Fl,titleClassInherited:Gl,titleFunction:Hl,attr:Jl,attribute:$l,literal:ql,meta:_l,number:Xl,operator:Kl,variable:td,selectorAttr:ed,selectorClass:id,selectorId:od,regexp:nd,string:rd,metaString:sd,builtIn:ad,symbol:ld,comment:dd,code:cd,formula:ud,name:pd,quote:hd,selectorTag:gd,selectorPseudo:Md,subst:md,section:yd,bullet:bd,emphasis:Nd,strong:Id,addition:xd,deletion:jd,charEscape:Td,link:Dd,params:vd,property:zd,punctuation:Cd,tag:Sd}={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"}},Ld=Ft(Pe({mappings:{rootBgColor:{...Vl,property:"background-color"},rootTextColor:{...Vl,property:"color"},docTagTextColor:{...Wl,property:"color"},keywordTextColor:{...Ul,property:"color"},metaKeywordTextColor:{...Rl,property:"color"},templateTagTextColor:{...Yl,property:"color"},templateVariableTextColor:{...Ql,property:"color"},typeTextColor:{...Bl,property:"color"},variableLanguageTextColor:{...Pl,property:"color"},titleTextColor:{...Zl,property:"color"},titleClassTextColor:{...Fl,property:"color"},titleClassInheritedTextColor:{...Gl,property:"color"},titleFunctionTextColor:{...Hl,property:"color"},attrTextColor:{...Jl,property:"color"},attributeTextColor:{...$l,property:"color"},literalTextColor:{...ql,property:"color"},metaTextColor:{..._l,property:"color"},numberTextColor:{...Xl,property:"color"},operatorTextColor:{...Kl,property:"color"},variableTextColor:{...td,property:"color"},selectorAttrTextColor:{...ed,property:"color"},selectorClassTextColor:{...id,property:"color"},selectorIdTextColor:{...od,property:"color"},regexpTextColor:{...nd,property:"color"},stringTextColor:{...rd,property:"color"},metaStringTextColor:{...sd,property:"color"},builtInTextColor:{...ad,property:"color"},symbolTextColor:{...ld,property:"color"},commentTextColor:{...dd,property:"color"},codeTextColor:{...cd,property:"color"},formulaTextColor:{...ud,property:"color"},nameTextColor:{...pd,property:"color"},quoteTextColor:{...hd,property:"color"},selectorTagTextColor:{...gd,property:"color"},selectorPseudoTextColor:{...Md,property:"color"},substTextColor:{...md,property:"color"},sectionTextColor:{...yd,property:"color"},bulletTextColor:{...bd,property:"color"},emphasisTextColor:{...Nd,property:"color"},strongTextColor:{...Id,property:"color"},additionTextColor:{...xd,property:"color"},additionBgColor:{...xd,property:"background-color"},deletionTextColor:{...jd,property:"color"},deletionBgColor:{...jd,property:"background-color"},charEscapeTextColor:{...Td,property:"color"},linkTextColor:{...Dd,property:"color"},paramsTextColor:{...vd,property:"color"},propertyTextColor:{...zd,property:"color"},punctuationTextColor:{...Cd,property:"color"},tagTextColor:{...Sd,property:"color"},copyButtonSize:[{...Ol,property:"width"},{...Ol,property:"height"}],copyButtonBorderRadius:{...Ol,property:"border-radius"},copyButtonBorderWidth:{...Ol,property:"border-width"},copyButtonBorderColor:{...Ol,property:"border-color"},copyButtonBgColor:{...Ol,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...Ol,property:"color"}}}),Ze,Fe)(kl);customElements.define(El,Ld);const wd=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},Ad=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},fd=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",Ed=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${Ad(t)}</descope-code-snippet>`,kd=t=>`<div class="row-details__value text" title="${t}">${Ad(t)}</div>`,Od=t=>Ed(JSON.stringify(t,null,2),"json"),Vd=t=>{const e=fd(t);return"object"===e?Od(t):"xml"===e?(t=>Ed(t,"xml"))(t):"array"===e?t.some(t=>"object"===fd(t))?Od(t):kd(t.join(",\n")):kd(t)},Wd=Kt("grid"),{host:Ud,headerRow:Rd,headerRowCell:Yd,contentRow:Qd,firstRow:Bd,sortIndicators:Pd,activeSortIndicator:Zd,selectedRow:Fd,rowSeparator:Gd,resizeHandle:Hd,toggleDetailsPanelButton:Jd,toggleDetailsPanelButtonOpened:$d,toggleDetailsPanelButtonClosed:qd,detailsPanel:_d,detailsPanelLabels:Xd,selectedRowCell:Kd,detailsPanelContent:tc}={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"}},ec=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Rd},{...Qd}],fontSize:[{...Rd},{...Qd}],fontWeight:{...Qd},valueTextColor:{...Qd,property:"color"},backgroundColor:[{...Ud,property:"background-color"},{...Qd,property:"background-color"}],sortIndicatorsColor:{...Pd,property:"color"},activeSortIndicator:{...Zd,property:"color"},borderColor:{...Ud,property:"border-color"},borderWidth:{...Ud,property:"border-width"},borderStyle:{...Ud,property:"border-style"},borderRadius:{...Ud,property:"border-radius"},selectedBackgroundColor:[{...Fd,property:"background-color"},{...Kd,property:"background-color"}],headerRowTextColor:{...Yd,property:"color"},separatorColor:[{...Bd,property:"border-bottom-color"},{...Gd,property:"border-top-color"}],resizeHandleColor:{...Hd,property:"background-color"},hostDirection:{...Ud,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Jd,property:"width"},{...Jd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...$d,property:"color"},toggleDetailsPanelButtonClosedColor:{...qd,property:"color"},toggleDetailsPanelButtonCursor:{...Jd,property:"cursor"},detailsPanelBackgroundColor:{..._d,property:"background-color"},detailsPanelBorderTopColor:{..._d,property:"border-top-color"},detailsPanelLabelsColor:{...Xd,property:"color"},detailsPanelLabelsFontSize:{...Xd,property:"font-size"},detailsPanelItemsGap:{...tc,property:"grid-gap"},detailsPanelPadding:{...tc,property:"padding"}}}),Ze,Fe,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=fd(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===fd(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Vd(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Vd(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);wd(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(wd(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")}})(Xe({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(${ec.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:Wd}));customElements.define(Wd,ec);const ic=Kt("modal"),oc=["opened"],nc=Ft(Pe({mappings:{overlayBackdropColor:{property:()=>nc.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>nc.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>nc.cssVarList.overlay.shadow},overlayWidth:{property:()=>nc.cssVarList.overlay.width},overlayBorderWidth:{property:()=>nc.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>nc.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>nc.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>nc.cssVarList.overlay.borderRadius}}}),si({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"]}}),Ze,Fe,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],oc)}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.#ot(),ee(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#ot(){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")})}})(Xe({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:ic}));customElements.define(ic,nc);const rc=window.customElements.get("vaadin-notification-container");if(!rc)throw new Error("could not get vaadin-notification-container class");customElements.define(Kt("notification-container"),class extends rc{});const sc=Kt("notification-card"),ac={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},lc=Ft(Pe({mappings:{hostMinWidth:{selector:ac.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:ac.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:ac.content,property:"border-width"},borderColor:{selector:ac.content,property:"border-color"},borderStyle:{selector:ac.content,property:"border-style"},borderRadius:[{selector:ac.content,property:"border-radius"},{selector:ac.overlay,property:"border-radius"}],verticalPadding:[{selector:ac.content,property:"padding-top"},{selector:ac.content,property:"padding-bottom"}],horizontalPadding:[{selector:ac.content,property:"padding-right"},{selector:ac.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()}}})(Xe({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:sc}));customElements.define(sc,lc);const dc=Kt("notification"),cc=Ft(Ze,Fe,He,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(),ee(this,this.#ie),Xt(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))}})(Xe({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:dc}));customElements.define(dc,cc);const uc=Kt("mappings-field-internal"),pc=ui({componentName:uc,baseSelector:"div"}),hc=Kt("mappings-field"),{host:gc,helperText:Mc,errorMessage:mc,mappingItem:yc,labels:bc,labelsText:Nc,valueLabel:Ic,attrLabel:xc,separator:jc,labelsContainer:Tc}={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"]'}},Dc=Ft(Pe({mappings:{hostWidth:{...gc,property:"width"},hostDirection:{...gc,property:"direction"},fontSize:[{},gc,{...jc,property:"margin-top"}],fontFamily:[Mc,mc,bc],separatorFontSize:{...jc,property:"font-size"},labelsFontSize:{...Nc,property:"font-size"},labelsLineHeight:[{...Nc,property:"line-height"},{...bc,property:"line-height"}],labelTextColor:[{...bc,property:wi.cssVarList.textColor},{...jc,property:"color"}],itemMarginBottom:{...yc,property:"margin-bottom"},valueLabelMinWidth:{...Ic,property:"min-width"},attrLabelMinWidth:{...xc,property:"min-width"},labelsMarginBottom:{...Tc,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Ze,ri({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Fe,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 <${uc}\n tabindex="-1"\n ></${uc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(uc),ee(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"]}),Xt(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(Xe({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(${Dc.cssVarList.separatorWidth}) 1fr var(${Dc.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 ${wi.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(${Dc.cssVarList.separatorWidth}) 1fr var(${Dc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:hc}));customElements.define(uc,class extends pc{#oe;static get observedAttributes(){return[].concat(pc.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),ee(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)},ee(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)}),qt(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 vc=Kt("mapping-item"),zc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Cc=ui({componentName:vc,baseSelector:"div"});customElements.define(vc,class extends Cc{static get observedAttributes(){return[].concat(Cc.observedAttributes||[],zc,["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"),ee(this,this.valueInput,{includeAttrs:zc}),ee(this,this.attributeInput,{includeAttrs:[...zc,"options"],mapAttrs:{options:"data"}}),ee(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(hc,Dc);const Sc=w("badge");class Lc extends(Nt({componentName:Sc,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 wc=T(pt({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:{}}}),ht,gt)(Lc);var Ac="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const fc=Kt("user-attribute");class Ec extends(qe({componentName:fc,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="${Ac}" src-dark="${Ac}"></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(${wi.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,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MDE1IDIuMDA4MTkgMy45OTIxNVYxMi4wMDgyQzIuMDA4MTkgMTIuNTM2MiAyLjQ0MDE5IDEyLjk5MjIgMi45OTIxOSAxMi45OTIySDUuNTM2MTl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+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:kc,textFields:Oc,buttons:Vc,badge:Wc,labelText:Uc,contentWrapper:Rc}={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"}},Yc=Ft(Pe({mappings:{hostWidth:{...kc,property:"width"},hostMinWidth:{...kc,property:"min-width"},hostMaxWidth:{...kc,property:"max-width"},hostDirection:[{...kc,property:"direction"},{...Oc,property:wi.cssVarList.hostDirection},{...Vc,property:Oo.cssVarList.hostDirection},{...Wc,property:wc.cssVarList.hostDirection}],labelMinWidth:{...Uc,property:"min-width"},contentMinWidth:{...Rc,property:"min-width"},badgeMaxWidth:{...Wc,property:"max-width"},itemsGap:[{property:"gap"},{...Rc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill},{selector:()=>".check-icon",property:Lo.cssVarList.fill}]}}),Ze,Fe)(Ec);customElements.define(Sc,wc),customElements.define(fc,Yc);const Qc=Kt("user-auth-method");class Bc extends(qe({componentName:Qc,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:Pc,textField:Zc,buttons:Fc,badge:Gc,textWrapper:Hc,methodIconSlot:Jc}={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)'}},$c=Ft(Pe({mappings:{hostWidth:{...Pc,property:"width"},hostMinWidth:{...Pc,property:"min-width"},hostMaxWidth:{...Pc,property:"max-width"},hostDirection:[{...Pc,property:"direction"},{...Zc,property:wi.cssVarList.hostDirection},{...Fc,property:Oo.cssVarList.hostDirection},{...Gc,property:wc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Hc,property:"gap"}],iconSize:[{...Jc,property:"width"},{...Jc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill}]}}),Ze,Fe)(Bc);customElements.define(Qc,$c);const qc=Kt("saml-group-mappings-internal"),_c=ui({componentName:qc,baseSelector:""}),Xc=Kt("saml-group-mappings"),{host:Kc,groupInput:tu,errorMessage:eu}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},iu=Ft(Pe({mappings:{hostWidth:{...Kc,property:"width"},hostDirection:{...Kc,property:"direction"},groupNameInputMarginBottom:{...tu,property:"margin-bottom"},errorMessageIcon:{...eu,property:"background-image"},errorMessageIconSize:{...eu,property:"background-size"},errorMessageIconPadding:{...eu,property:"padding-inline-start"},errorMessageIconRepeat:{...eu,property:"background-repeat"},errorMessageIconPosition:{...eu,property:"background-position"},errorMessageFontSize:{...eu,property:"font-size"}}}),Ze,ri({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Fe,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${qc}\n tabindex="-1"\n ></${qc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(qc),ee(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),Xt(this,this.inputElement,{includeAttrs:["invalid"]})}})(Xe({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:Xc}));customElements.define(qc,class extends _c{static get observedAttributes(){return["invalid"].concat(_c.observedAttributes||[])}constructor(){super(),this.innerHTML='\n <descope-text-field variant="body2" bordered="true"></descope-text-field>\n <descope-mappings-field></descope-mappings-field>\n ',this.groupInputElement=this.querySelector("descope-text-field"),this.mappingsElement=this.querySelector("descope-mappings-field")}resetInvalidIndication(){this.removeAttribute("invalid")}handleMappingsInvalidChange(t){t.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",t=>{t.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),ee(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),ee(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(Xc,iu);const ou=Kt("radio-button"),nu=Ft(Pe({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"}}}),ri({proxyProps:["setSelectionRange"]}),Fe,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?.(),qt(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(Xe({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:ou})),ru=Kt("radio-group"),su=Ft(Pe({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(${nu.componentName})`,property:nu.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${nu.componentName}[checked="true"])`,property:nu.cssVarList.radioBackgroundColor}}}),Ze,ri({proxyProps:["setSelectionRange"]}),Fe,t=>class extends t{#et=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#U;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(ou)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===ou),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#U)return this.#U;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.#U=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.#et?.(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()})}),ee(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),qt(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})}),$t(this,()=>{this.items.forEach(t=>{t.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(Xe({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 ${je("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:ru,includeForwardProps:["value"]}));customElements.define(ou,nu),customElements.define(ru,su);const au=()=>!0,lu=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,du=Kt("scopes-list"),cu=["checkbox","switch"];class uu extends(qe({componentName:du,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 cu.includes(t)?t:cu[0]}}const pu=Ft(Pe({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=lu,validateSchema:e=au,slotName:i,rerenderAttrsList:o=[]})=>n=>class extends n{#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.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.#U=t,this.#B())}get data(){return this.#U}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"]}),Ze,Fe)(uu),hu=w("list-item"),gu=T(pt({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:{}}}),ht,gt,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})})}})(Nt({componentName:hu,baseSelector:"slot"}));customElements.define(hu,gu);const Mu=w("list");class mu extends(Nt({componentName:Mu,baseSelector:".wrapper"})){static get observedAttributes(){return["variant","readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <slot></slot>\n <slot name="empty-state">\n No item...\n </slot>\n </div>\n\t',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!==gu.componentName&&(e=t.querySelector(gu.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 yu=T(pt({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"}]}}),ht,gt)(mu);customElements.define(Mu,yu),customElements.define(du,pu);const bu=Kt("third-party-app-logo");class Nu extends(qe({componentName:bu,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 Iu=">.company-logo-wrapper",xu=">.third-party-app-logo-wrapper",ju=Ft(Pe({mappings:{logoMaxHeight:[{selector:Iu,property:"height"},{selector:xu,property:"height"}],logoMaxWidth:[{selector:Iu,property:"max-width"},{selector:xu,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:zr.componentName,property:zr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:Lo.componentName,property:Lo.cssVarList.fill}}}),Ze,Fe)(Nu);customElements.define(bu,ju);const Tu=Kt("security-questions-setup"),Du=["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"],vu=["count","questions"];class zu extends(qe({componentName:Tu,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(Du)}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(Tu,"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:vu}),$t(this,this.#Me.bind(this),{includeAttrs:Du})}}const Cu=Ft(Pe({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"}}}),Ze,Fe)(zu);customElements.define(Tu,Cu);const Su=Kt("security-questions-verify"),Lu=["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"],wu=["question-mode"],Au={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},fu=[...Lu,...wu],Eu=["questions"];class ku extends(qe({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)}#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(fu),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(Su,"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 Lu.includes(t):return this.textFields;case wu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,Au[t]||t,this.getAttribute(t))})})}init(){super.init?.(),$t(this,()=>{this.#ge()},{includeAttrs:Eu}),$t(this,this.#Me.bind(this),{includeAttrs:fu})}}const Ou=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>wi.componentName,property:wi.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>wi.componentName,property:wi.cssVarList.textAlign},questionFontSize:{selector:()=>wi.componentName,property:wi.cssVarList.fontSize},questionFontFamily:{selector:()=>wi.componentName,property:wi.cssVarList.fontFamily},questionCursor:{selector:()=>wi.componentName,property:"cursor"},errorMessageIcon:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageFontSize}}}),Ze,Fe)(ku);customElements.define(Su,Ou);const Vu=/[^\d\s+\-()]/,Wu=Kt("hybrid-field"),Uu={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"]}},Ru={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"}},Yu="descope-phone-field",Qu=qe({componentName:Wu,baseSelector:"div"}),Bu=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({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:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIcon},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconSize},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconPadding},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconRepeat},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconPosition},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageFontSize},{selector:()=>da.componentName,property:da.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.labelFontWeight},{selector:()=>da.componentName,property:da.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.inputValueFontWeight},{selector:()=>da.componentName,property:da.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.inputPlaceholderFontWeight},{selector:()=>da.componentName,property:da.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.helperTextFontWeight},{selector:()=>da.componentName,property:da.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageFontWeight},{selector:()=>da.componentName,property:da.cssVarList.errorMessageFontWeight}]}}),Ze,Fe)(class extends Qu{#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(Yu),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(){ee(this,this.emailInput,{includeAttrs:Uu.email,mapAttrs:Ru.email}),ee(this,this.phoneCountryCodeInput,{includeAttrs:Uu.phone.countryCode,mapAttrs:Ru.phone}),ee(this,this.phoneInputBoxInput,{includeAttrs:Uu.phone.inputBox,mapAttrs:Ru.phone}),this.inputs.forEach(t=>ee(this,t,{includeAttrs:Uu.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&&!Vu.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&&Gs.CountryCodes.find(e=>e.code===t);return e?.dialCode||Gs.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===Yu){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(Wu,Bu);const Pu=Kt("alert");class Zu extends(qe({componentName:Pu,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)),ee(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:Fu}={icon:{selector:()=>".icon"}},Gu=Ft(Pe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:Bt.componentName,property:Bt.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:Bt.componentName,property:Bt.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:Bt.componentName,property:Bt.cssVarList.textAlign}],icon:[{...Fu,property:"content"},{...Fu,property:"display",fallback:"none"}],iconSize:[{...Fu,property:"width"},{...Fu,property:"height"}]}}),Pe({componentNameOverride:Kt("enriched-text")}),Pe({componentNameOverride:Kt("text")}),Ze,Fe)(Zu);customElements.define(Pu,Gu);const Hu=Kt("hcaptcha"),Ju=["enabled","site-key"],$u=ui({componentName:Hu,baseSelector:":host > div"}),qu=Ft(Pe({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"}]}}),Ze,Fe)(class extends $u{static get observedAttributes(){return Ju.concat($u.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(Hu,qu);const _u=(sp={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(sp).reduce((t,e)=>{const i=sp[e];return Object.assign(t,{[e]:ge(i)})},{})),Xu={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"}},Ku=Ce({fonts:Xu}).fonts,tp={colors:_u,typography:{h1:{font:Ku.font1.family,weight:"900",size:"48px"},h2:{font:Ku.font1.family,weight:"800",size:"38px"},h3:{font:Ku.font1.family,weight:"600",size:"28px"},subtitle1:{font:Ku.font2.family,weight:"500",size:"22px"},subtitle2:{font:Ku.font2.family,weight:"400",size:"20px"},body1:{font:Ku.font1.family,weight:"400",size:"16px"},body2:{font:Ku.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:Xu,direction:"ltr"},ep=(t=>ve(t,[],t=>De({},t,Te(t))))(tp),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"}}),op={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},np=ot({fonts:op}).fonts,rp={colors:ip,typography:{h1:{font:np.font1.family,weight:"900",size:"48px"},h2:{font:np.font1.family,weight:"800",size:"38px"},h3:{font:np.font1.family,weight:"600",size:"28px"},subtitle1:{font:np.font2.family,weight:"500",size:"22px"},subtitle2:{font:np.font2.family,weight:"400",size:"20px"},body1:{font:np.font1.family,weight:"400",size:"16px"},body2:{font:np.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:op,direction:"ltr"};var sp;(t=>{it(t,[],t=>et({},t,tt(t)))})(rp);const ap=ot(rp),lp=Oo.cssVarList,dp={primary:ap.colors.primary,secondary:ap.colors.secondary,success:ap.colors.success,error:ap.colors.error,surface:ap.colors.surface},[cp,up,pp]=rt({mode:dp},wo),hp={...cp,[lp.fontFamily]:ap.fonts.font1.family,[lp.fontWeight]:"400",[lp.cursor]:"pointer",[lp.hostHeight]:"3em",[lp.hostWidth]:"auto",[lp.hostDirection]:ap.direction,[lp.borderRadius]:ap.radius.sm,[lp.borderWidth]:ap.border.xs,[lp.borderStyle]:"solid",[lp.borderColor]:"transparent",[lp.labelSpacing]:"0.25em",[lp.textAlign]:"center",textAlign:{right:{[lp.textAlign]:"right"},left:{[lp.textAlign]:"left"},center:{[lp.textAlign]:"center"}},[lp.verticalPadding]:"1em",[lp.horizontalPadding]:"0.875em",[lp.outlineWidth]:rp.border.sm,[lp.outlineOffset]:"0px",[lp.outlineStyle]:"solid",[lp.outlineColor]:"transparent",[lp.iconSize]:"1.5em",size:{xs:{[lp.fontSize]:"12px"},sm:{[lp.fontSize]:"14px"},md:{[lp.fontSize]:"16px"},lg:{[lp.fontSize]:"18px"}},_square:{[lp.hostHeight]:"3em",[lp.hostWidth]:"3em",[lp.verticalPadding]:"0"},_fullWidth:{[lp.hostWidth]:"100%"},_loading:{[lp.cursor]:"wait",[lp.labelTextColor]:up.main},_disabled:{[pp.main]:ap.colors.surface.light,[pp.dark]:ap.colors.surface.dark,[pp.light]:ap.colors.surface.light,[pp.contrast]:ap.colors.surface.main,[lp.iconColor]:ap.colors.surface.main},variant:{contained:{[lp.labelTextColor]:up.contrast,[lp.backgroundColor]:up.main,_hover:{[lp.backgroundColor]:up.dark,_loading:{[lp.backgroundColor]:up.main}},_active:{[lp.backgroundColor]:up.main}},outline:{[lp.labelTextColor]:up.main,[lp.borderColor]:up.main,_hover:{[lp.labelTextColor]:up.dark,[lp.borderColor]:up.dark},_active:{[lp.labelTextColor]:up.main,[lp.borderColor]:up.main},_disabled:{[lp.iconColor]:up.main}},link:{[lp.labelTextColor]:up.main,[lp.horizontalPadding]:"0.125em",_hover:{[lp.labelTextColor]:up.dark,[lp.labelTextDecoration]:"underline"},_active:{[lp.labelTextColor]:up.main},_disabled:{[lp.iconColor]:up.main}}},_focused:{[lp.outlineColor]:up.light}},gp={...lp,...pp};var Mp=Object.freeze({__proto__:null,default:hp,vars:gp});const mp=ot(rp),yp=wi.cssVarList,bp={[yp.hostDirection]:mp.direction,[yp.textLineHeight]:"1.35em",[yp.textAlign]:"start",[yp.textColor]:mp.colors.surface.dark,variant:{h1:{[yp.fontSize]:mp.typography.h1.size,[yp.fontWeight]:mp.typography.h1.weight,[yp.fontFamily]:mp.typography.h1.font},h2:{[yp.fontSize]:mp.typography.h2.size,[yp.fontWeight]:mp.typography.h2.weight,[yp.fontFamily]:mp.typography.h2.font},h3:{[yp.fontSize]:mp.typography.h3.size,[yp.fontWeight]:mp.typography.h3.weight,[yp.fontFamily]:mp.typography.h3.font},subtitle1:{[yp.fontSize]:mp.typography.subtitle1.size,[yp.fontWeight]:mp.typography.subtitle1.weight,[yp.fontFamily]:mp.typography.subtitle1.font},subtitle2:{[yp.fontSize]:mp.typography.subtitle2.size,[yp.fontWeight]:mp.typography.subtitle2.weight,[yp.fontFamily]:mp.typography.subtitle2.font},body1:{[yp.fontSize]:mp.typography.body1.size,[yp.fontWeight]:mp.typography.body1.weight,[yp.fontFamily]:mp.typography.body1.font},body2:{[yp.fontSize]:mp.typography.body2.size,[yp.fontWeight]:mp.typography.body2.weight,[yp.fontFamily]:mp.typography.body2.font}},mode:{primary:{[yp.textColor]:mp.colors.surface.contrast},secondary:{[yp.textColor]:mp.colors.surface.dark},error:{[yp.textColor]:mp.colors.error.main},"error-dark":{[yp.textColor]:mp.colors.error.dark},success:{[yp.textColor]:mp.colors.success.main},"success-dark":{[yp.textColor]:mp.colors.success.dark},warning:{[yp.textColor]:mp.colors.warning.main},"warning-dark":{[yp.textColor]:mp.colors.warning.dark}},textAlign:{right:{[yp.textAlign]:"right"},left:{[yp.textAlign]:"left"},center:{[yp.textAlign]:"center"}},_fullWidth:{[yp.hostWidth]:"100%"},_italic:{[yp.fontStyle]:"italic"},_uppercase:{[yp.textTransform]:"uppercase"},_lowercase:{[yp.textTransform]:"lowercase"}};var Np=Object.freeze({__proto__:null,default:bp,vars:yp});const Ip=ot(rp),xp=Yi.cssVarList,jp={[xp.hostDirection]:Ip.direction,[xp.cursor]:"pointer",[xp.textColor]:Ip.colors.primary.main,textAlign:{right:{[xp.textAlign]:"right"},left:{[xp.textAlign]:"left"},center:{[xp.textAlign]:"center"}},_fullWidth:{[xp.hostWidth]:"100%"},_hover:{[xp.textDecoration]:"underline"},mode:{secondary:{[xp.textColor]:Ip.colors.secondary.main}}};var Tp=Object.freeze({__proto__:null,default:jp,vars:xp});const Dp=ot(rp),vp=Bt.cssVarList,zp={[vp.hostDirection]:Dp.direction,[vp.hostWidth]:nt(yp.hostWidth),[vp.textLineHeight]:nt(yp.textLineHeight),[vp.textColor]:nt(yp.textColor),[vp.textAlign]:nt(yp.textAlign),[vp.fontSize]:nt(yp.fontSize),[vp.fontWeight]:nt(yp.fontWeight),[vp.fontFamily]:nt(yp.fontFamily),[vp.linkColor]:nt(xp.textColor),[vp.linkTextDecoration]:"none",[vp.linkHoverTextDecoration]:"underline",[vp.fontWeightBold]:"900",[vp.minWidth]:"0.25em",[vp.minHeight]:"1.35em",[vp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[vp.hostDisplay]:"none"}}};var Cp=Object.freeze({__proto__:null,default:zp,vars:vp});const Sp=w("input-wrapper"),Lp=ot(rp),[wp,Ap]=rt({labelTextColor:Lp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:Lp.colors.surface.contrast,placeholderTextColor:Lp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Lp.colors.surface.dark,errorMessageTextColor:Lp.colors.error.main,successMessageTextColor:Lp.colors.success.main,borderWidth:Lp.border.xs,borderRadius:Lp.radius.xs,borderColor:"transparent",outlineWidth:Lp.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:Lp.colors.surface.main,fontFamily:Lp.fonts.font1.family,direction:Lp.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:Lp.colors.surface.light,_invalid:{outlineColor:Lp.colors.error.main}},_bordered:{outlineWidth:Lp.border.xs,borderColor:Lp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Lp.colors.error.main}},_disabled:{labelTextColor:Lp.colors.surface.light,borderColor:Lp.colors.surface.light,valueTextColor:Lp.colors.surface.light,placeholderTextColor:Lp.colors.surface.light,helperTextColor:Lp.colors.surface.light,backgroundColor:Lp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},Sp),fp=ot(rp),Ep=jo.cssVarList,kp={[Ep.hostWidth]:Ap.width,[Ep.hostDirection]:Ap.direction,[Ep.fontSize]:Ap.fontSize,[Ep.fontFamily]:Ap.fontFamily,[Ep.labelFontSize]:Ap.labelFontSize,[Ep.labelFontWeight]:Ap.labelFontWeight,[Ep.inputValueFontWeight]:Ap.inputValueFontWeight,[Ep.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Ep.helperTextFontWeight]:Ap.helperTextFontWeight,[Ep.errorMessageFontWeight]:Ap.errorMessageFontWeight,[Ep.labelTextColor]:Ap.labelTextColor,[Ep.errorMessageTextColor]:Ap.errorMessageTextColor,[Ep.inputBorderColor]:Ap.borderColor,[Ep.inputBorderWidth]:Ap.borderWidth,[Ep.inputBorderStyle]:Ap.borderStyle,[Ep.inputBorderRadius]:Ap.borderRadius,[Ep.inputOutlineColor]:Ap.outlineColor,[Ep.inputOutlineOffset]:Ap.outlineOffset,[Ep.inputOutlineWidth]:Ap.outlineWidth,[Ep.inputOutlineStyle]:Ap.outlineStyle,[Ep.labelRequiredIndicator]:Ap.requiredIndicator,[Ep.inputValueTextColor]:Ap.valueTextColor,[Ep.inputPlaceholderTextColor]:Ap.placeholderTextColor,[Ep.inputBackgroundColor]:Ap.backgroundColor,[Ep.inputHorizontalPadding]:Ap.horizontalPadding,[Ep.inputHeight]:Ap.inputHeight,[Ep.inputDropdownButtonColor]:fp.colors.surface.dark,[Ep.inputDropdownButtonCursor]:"pointer",[Ep.inputDropdownButtonSize]:Ap.toggleButtonSize,[Ep.inputDropdownButtonOffset]:fp.spacing.xs,[Ep.overlayItemPaddingInlineStart]:fp.spacing.xs,[Ep.overlayItemPaddingInlineEnd]:fp.spacing.lg,[Ep.labelPosition]:Ap.labelPosition,[Ep.labelTopPosition]:Ap.labelTopPosition,[Ep.labelHorizontalPosition]:Ap.labelHorizontalPosition,[Ep.inputTransformY]:Ap.inputTransformY,[Ep.inputTransition]:Ap.inputTransition,[Ep.marginInlineStart]:Ap.marginInlineStart,[Ep.placeholderOpacity]:Ap.placeholderOpacity,[Ep.inputVerticalAlignment]:Ap.inputVerticalAlignment,[Ep.valueInputHeight]:Ap.valueInputHeight,[Ep.valueInputMarginBottom]:Ap.valueInputMarginBottom,[Ep.errorMessageIcon]:Ap.errorMessageIcon,[Ep.errorMessageIconSize]:Ap.errorMessageIconSize,[Ep.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Ep.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Ep.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Ep.errorMessageFontSize]:Ap.errorMessageFontSize,_readonly:{[Ep.inputDropdownButtonCursor]:"default"},[Ep.overlayFontSize]:Ap.fontSize,[Ep.overlayFontFamily]:Ap.fontFamily,[Ep.overlayCursor]:"pointer",[Ep.overlayItemBoxShadow]:"none",[Ep.overlayBackground]:Ap.backgroundColor,[Ep.overlayTextColor]:Ap.valueTextColor,[Ep.overlayCheckmarkDisplay]:"initial",[Ep.overlaySelectedItemBackground]:"initial",[Ep.overlaySelectedItemHoverBackground]:fp.colors.primary.highlight,[Ep.overlaySelectedItemFocusBackground]:fp.colors.primary.highlight,[Ep.overlayItemHoverBackground]:fp.colors.primary.highlight,[Ep.overlayItemFocusBackground]:fp.colors.primary.highlight,[Ep.overlay.margin]:"0",[Ep.overlay.contentHeight]:"100%",[Ep.overlay.contentOpacity]:"1",[Ep.overlay.scrollerMinHeight]:"1px",_loading:{[Ep.overlay.loaderTop]:"50%",[Ep.overlay.loaderLeft]:"50%",[Ep.overlay.loaderRight]:"auto",[Ep.overlay.loaderMargin]:"-15px 0 0 -15px",[Ep.overlay.loaderWidth]:"30px",[Ep.overlay.loaderHeight]:"30px",[Ep.overlay.loaderBorder]:"2px solid transparent",[Ep.overlay.loaderBorderColor]:`${fp.colors.primary.highlight} ${fp.colors.primary.highlight} ${fp.colors.primary.main} ${fp.colors.primary.main}`,[Ep.overlay.loaderBorderRadius]:"50%",[Ep.overlay.contentHeight]:"100px",[Ep.overlay.scrollerMinHeight]:"100px",[Ep.overlay.contentOpacity]:"0"}};var Op=Object.freeze({__proto__:null,comboBox:kp,default:kp,vars:Ep});const Vp=ot(rp),[Wp,Up]=rt({shadowColor:"#00000020"},Sc),{shadowColor:Rp}=Up,Yp=wc.cssVarList,Qp={...Wp,[Yp.hostWidth]:"fit-content",[Yp.hostDirection]:Vp.direction,[Yp.textAlign]:"center",[Yp.fontFamily]:Vp.fonts.font1.family,[Yp.fontWeight]:"400",[Yp.verticalPadding]:"0.25em",[Yp.horizontalPadding]:"0.5em",[Yp.borderWidth]:Vp.border.xs,[Yp.borderRadius]:Vp.radius.xs,[Yp.borderColor]:"transparent",[Yp.borderStyle]:"solid",_fullWidth:{[Yp.hostWidth]:"100%"},size:{xs:{[Yp.fontSize]:"12px"},sm:{[Yp.fontSize]:"14px"},md:{[Yp.fontSize]:"16px"},lg:{[Yp.fontSize]:"18px"}},variant:{contained:{[Yp.backgroundColor]:Vp.colors.surface.main}},_shrinkToIndicator:{[Yp.hostWidth]:"13px",[Yp.hostHeight]:"13px",[Yp.borderRadius]:"50%",[Yp.fontSize]:"0",[Yp.textIndent]:"-9999px"},mode:{default:{[Yp.textColor]:Vp.colors.surface.dark,_bordered:{[Yp.borderColor]:Vp.colors.surface.light}},primary:{[Yp.textColor]:Vp.colors.primary.main,_bordered:{[Yp.borderColor]:Vp.colors.primary.light}},secondary:{[Yp.textColor]:Vp.colors.secondary.main,_bordered:{[Yp.borderColor]:Vp.colors.secondary.light}},error:{[Yp.textColor]:Vp.colors.error.main,_bordered:{[Yp.borderColor]:Vp.colors.error.light}},success:{[Yp.textColor]:Vp.colors.success.main,_bordered:{[Yp.borderColor]:Vp.colors.success.light}}},shadow:{sm:{[Yp.boxShadow]:`${Vp.shadow.wide.sm} ${Rp}, ${Vp.shadow.narrow.sm} ${Rp}`},md:{[Yp.boxShadow]:`${Vp.shadow.wide.md} ${Rp}, ${Vp.shadow.narrow.md} ${Rp}`},lg:{[Yp.boxShadow]:`${Vp.shadow.wide.lg} ${Rp}, ${Vp.shadow.narrow.lg} ${Rp}`},xl:{[Yp.boxShadow]:`${Vp.shadow.wide.xl} ${Rp}, ${Vp.shadow.narrow.xl} ${Rp}`}}};var Bp=Object.freeze({__proto__:null,default:Qp,vars:Yp});const Pp=w("avatar");class Zp extends(Nt({componentName:Pp,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:Fp,editableBadge:Gp,avatar:Hp}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Jp=T(pt({mappings:{hostWidth:[{...Fp,property:"width"},{...Fp,property:"min-width"}],hostHeight:{...Fp,property:"height"},cursor:[Hp,Fp],hostDirection:{...Fp,property:"direction"},avatarTextColor:{...Hp,property:"color"},avatarBackgroundColor:{...Hp,property:"background-color"},editableIconColor:{...Gp,property:"color"},editableBorderColor:{...Gp,property:"border-color"},editableBackgroundColor:{...Gp,property:"background-color"}}}),ht,gt)(Zp),$p=ot(rp),qp=Jp.cssVarList,_p={[qp.hostDirection]:$p.direction,[qp.editableIconColor]:$p.colors.surface.dark,[qp.editableBorderColor]:$p.colors.surface.dark,[qp.editableBackgroundColor]:$p.colors.surface.main,[qp.avatarTextColor]:$p.colors.surface.main,[qp.avatarBackgroundColor]:$p.colors.surface.dark,_editable:{[qp.cursor]:"pointer"},size:{xs:{[qp.hostWidth]:"30px",[qp.hostHeight]:"30px"},sm:{[qp.hostWidth]:"40px",[qp.hostHeight]:"40px"},md:{[qp.hostWidth]:"60px",[qp.hostHeight]:"60px"},lg:{[qp.hostWidth]:"98px",[qp.hostHeight]:"98px"},xl:{[qp.hostWidth]:"120px",[qp.hostHeight]:"120px"},"2xl":{[qp.hostWidth]:"140px",[qp.hostHeight]:"140px"}}},Xp={...qp};var Kp=Object.freeze({__proto__:null,default:_p,vars:Xp});const th=Lo.cssVarList;var eh=Object.freeze({__proto__:null,default:{},vars:th});const ih=Co.cssVarList;var oh=Object.freeze({__proto__:null,default:{},vars:ih});const nh=w("apps-list"),rh=T(pt({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:yu.componentName,property:yu.cssVarList.gap},maxRowItems:{selector:yu.componentName,property:yu.cssVarList.maxRowItems},itemsFontWeight:{selector:wi.componentName,property:wi.cssVarList.fontWeightOverride},itemsFontSize:{selector:wi.componentName,property:wi.cssVarList.fontSizeOverride},itemsTextAlign:{selector:wi.componentName,property:wi.cssVarList.textAlign},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},logoBackgroundColor:{selector:Jp.componentName,property:Jp.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:Jp.componentName,property:Jp.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${gu.componentName}:hover`,property:gu.cssVarList.backgroundColor},backgroundColor:{selector:yu.componentName,property:yu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:gu.componentName,property:gu.cssVarList.borderStyleOverride},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColorOverride},itemBorderWidth:{selector:gu.componentName,property:gu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:wi.componentName,property:wi.cssVarList.textAlign}]}}),Wt({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"]}),ht,gt,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:nh,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 ${wi.cssVarList.hostDirection}: var(${rh.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),sh=rh.cssVarList,ah=ot(rp),lh="400px",dh={[sh.itemsTextAlign]:"start",[sh.hostDirection]:ah.direction,[sh.maxHeight]:lh,[sh.itemHoverBackgroundColor]:ah.colors.surface.highlight,_empty:{[sh.minHeight]:lh},size:{xs:{[sh.itemsFontSize]:"14px",[sh.itemsFontWeight]:"normal"},sm:{[sh.itemsFontSize]:"14px",[sh.itemsFontWeight]:"normal"},md:{[sh.itemsFontSize]:"16px",[sh.itemsFontWeight]:"normal"},lg:{[sh.itemsFontSize]:"20px",[sh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[sh.itemVerticalPadding]:ah.spacing.xs,[sh.itemHorizontalPadding]:ah.spacing.xs},sm:{[sh.itemVerticalPadding]:ah.spacing.sm,[sh.itemHorizontalPadding]:ah.spacing.sm},md:{[sh.itemVerticalPadding]:ah.spacing.md,[sh.itemHorizontalPadding]:ah.spacing.md},lg:{[sh.itemVerticalPadding]:ah.spacing.lg,[sh.itemHorizontalPadding]:ah.spacing.lg},xl:{[sh.itemVerticalPadding]:ah.spacing.xl,[sh.itemHorizontalPadding]:ah.spacing.xl}}};var ch=Object.freeze({__proto__:null,default:dh,vars:sh});const uh=ot(rp),ph=yu.cssVarList,[hh,gh,Mh]=rt({shadowColor:"#00000020"},Mu),{shadowColor:mh}=gh,yh={...hh,[ph.hostWidth]:"100%",[ph.backgroundColor]:uh.colors.surface.main,[ph.fontFamily]:uh.fonts.font1.family,[ph.borderColor]:uh.colors.surface.light,[ph.borderStyle]:"solid",[ph.borderWidth]:uh.border.xs,[ph.borderRadius]:uh.radius.sm,[ph.gap]:uh.spacing.md,[ph.verticalPadding]:uh.spacing.lg,[ph.horizontalPadding]:uh.spacing.lg,[ph.boxShadow]:`${uh.shadow.wide.sm} ${mh}, ${uh.shadow.narrow.sm} ${mh}`,[ph.maxHeight]:"100%",[ph.hostDirection]:uh.direction,[ph.minItemsWidth]:"150px",[ph.maxRowItems]:"1000",_empty:{[ph.minHeight]:"150px",[ph.emptyStateTextColor]:uh.colors.surface.dark,[ph.emptyStateTextFontFamily]:uh.fonts.font1.family},variant:{tiles:{[ph.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${nt(ph.minItemsWidth)}, 100%),\n calc((100% - (${nt(ph.maxRowItems)} - 1) * ${nt(ph.gap)}) / ${nt(ph.maxRowItems)})),\n 1fr))`,[ph.maxItemsWidth]:"200px",[ph.itemsHorizontalAlign]:"center"}},gap:{xs:{[ph.gap]:uh.spacing.xs},sm:{[ph.gap]:uh.spacing.sm},md:{[ph.gap]:uh.spacing.md},lg:{[ph.gap]:uh.spacing.lg},xl:{[ph.gap]:uh.spacing.xl}}},bh={...ph,...Mh};var Nh=Object.freeze({__proto__:null,default:yh,vars:bh});const Ih=ot(rp),xh=gu.cssVarList,jh={[xh.backgroundColor]:Ih.colors.surface.main,[xh.verticalPadding]:Ih.spacing.lg,[xh.horizontalPadding]:Ih.spacing.lg,[xh.gap]:Ih.spacing.md,[xh.borderStyle]:"solid",[xh.borderWidth]:Ih.border.xs,[xh.borderColor]:Ih.colors.surface.main,[xh.borderRadius]:Ih.radius.sm,[xh.cursor]:"pointer",[xh.alignItems]:"center",[xh.flexDirection]:"row",[xh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[xh.alignItems]:"flex-start",[xh.flexDirection]:"column",[xh.borderColor]:Ih.colors.surface.light}},_hover:{[xh.backgroundColor]:Ih.colors.surface.highlight},_active:{[xh.backgroundColor]:Ih.colors.surface.main,[xh.borderColor]:Ih.colors.primary.light,[xh.outline]:`1px solid ${Ih.colors.primary.light}`}};var Th=Object.freeze({__proto__:null,default:jh,vars:xh});const Dh=w("multi-select-combo-box"),{host:vh,inputField:zh,inputElement:Ch,placeholder:Sh,toggle:Lh,clearButton:wh,label:Ah,requiredIndicator:fh,helperText:Eh,errorMessage:kh,chip:Oh,chipLabel:Vh,overflowChipFirstBorder:Wh,overflowChipSecondBorder:Uh}={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"}},Rh=T(pt({mappings:{hostWidth:{...vh,property:"width"},hostDirection:{...vh,property:"direction"},fontSize:[{},vh],chipFontSize:{...Vh,property:"font-size"},fontFamily:[Ah,Sh,zh,Eh,kh,Vh],labelFontSize:{...Ah,property:"font-size"},labelFontWeight:{...Ah,property:"font-weight"},inputValueFontWeight:{...zh,property:"font-weight"},inputPlaceholderFontWeight:{...Sh,property:"font-weight"},helperTextFontWeight:{...Eh,property:"font-weight"},errorMessageFontWeight:{...kh,property:"font-weight"},labelTextColor:[{...Ah,property:"color"},{...fh,property:"color"}],errorMessageTextColor:{...kh,property:"color"},errorMessageIcon:{...kh,property:"background-image"},errorMessageIconSize:{...kh,property:"background-size"},errorMessageIconPadding:{...kh,property:"padding-inline-start"},errorMessageIconRepeat:{...kh,property:"background-repeat"},errorMessageIconPosition:{...kh,property:"background-position"},errorMessageFontSize:{...kh,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:{...fh,property:"content"},inputValueTextColor:{...zh,property:"color"},inputPlaceholderTextColor:{...Sh,property:"color"},inputDropdownButtonCursor:[{...Lh,property:"cursor"},{...wh,property:"cursor"}],inputDropdownButtonColor:[{...Lh,property:"color"},{...wh,property:"color"}],inputDropdownButtonSize:[{...Lh,property:"font-size"},{...wh,property:"font-size"}],inputDropdownButtonOffset:[{...Lh,property:"margin-right"},{...Lh,property:"margin-left"}],inputOutlineColor:{...zh,property:"outline-color"},inputOutlineWidth:{...zh,property:"outline-width"},inputOutlineStyle:{...zh,property:"outline-style"},inputOutlineOffset:{...zh,property:"outline-offset"},inputHorizontalPadding:[{...Ch,property:"padding-left"},{...Ch,property:"padding-right"},{...zh,property:"padding-inline-start"}],inputVerticalPadding:[{...zh,property:"padding-top"},{...zh,property:"padding-bottom"}],chipTextColor:{...Vh,property:"color"},chipBackgroundColor:[{...Oh,property:"background-color"},{...Wh,property:"border-color"},{...Uh,property:"border-color"}],labelPosition:{...Ah,property:"position"},labelTopPosition:{...Ah,property:"top"},labelLeftPosition:{...Ah,property:"left"},labelHorizontalPosition:[{...Ah,property:"left"},{...Ah,property:"right"}],inputTransformY:{...Ah,property:"transform"},inputTransition:{...Ah,property:"transition"},marginInlineStart:{...Ah,property:"margin-inline-start"},placeholderOpacity:{...Sh,property:"opacity"},inputVerticalAlignment:{...zh,property:"align-items"},overlayBackground:{property:()=>Rh.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Rh.cssVarList.overlay.textColor},overlayBorder:{property:()=>Rh.cssVarList.overlay.border},overlayFontSize:{property:()=>Rh.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Rh.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Rh.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Rh.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Rh.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Rh.cssVarList.overlay.itemPaddingInlineEnd}}}),ht,kt({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"]}}),Et({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),xt,gt,t=>class extends t{static get observedAttributes(){return["readonly"]}#et=({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};#U;#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.#et}set renderItem(t){this.#et=t,this.renderItems()}get data(){if(this.#U)return this.#U;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.#U=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.#U)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())}#it(){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}}#ot(){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.#et({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.#it.bind(this)),f(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#ot()}),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.#et({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${$(Rh.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 ${K("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:Dh,includeForwardProps:["items","renderer","selectedItems"]})),Yh=w("multi-line-mappings"),Qh=Nt({componentName:Yh}),Bh=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),Ph=t=>[...new Set(t.map(Bh).filter(Boolean))],Zh=t=>{const e=Bh(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},Fh=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(Zh).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},Gh=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),Hh={selector:()=>":host"},Jh={selector:".row"},$h={selector:".add-action"},qh=T(pt({mappings:{hostWidth:{...Hh,property:"width"},hostDirection:[{...Hh,property:"direction"},{selector:Rh.componentName,property:Rh.cssVarList.hostDirection},{selector:Oo.componentName,property:Oo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...Jh,property:"gap"},rowAlignItems:{...Jh,property:"align-items"},rowWrap:{...Jh,property:"flex-wrap"},addActionJustifyContent:{...$h,property:"justify-content"},addActionMarginTop:{...$h,property:"margin-top"}}}),ht)(class extends Qh{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=[];#Le={};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.#Le}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.#we(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:Fh(n)}}),this.#Le=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.#Ue();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.#Ue();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.#Ue(),"merge-rows"===t&&null!==this.#Ce&&(this.#ze=this.#we(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.#Re())return;const t={firstValues:[],secondValues:[]};this.#ze=[...this.#ze,t],this.rowsElement.append(this.#Ye(t)),this.#Ue()}#we(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:Ph(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.#Le[t]||[]).filter(t=>t.length):Object.values(this.#Le).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:Ph(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.#Ue()}#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)}#Ue(){this.disabled||this.readonly||this.#Re()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#Re(){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(Gh(o.firstValues,i)&&Gh(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}Gh(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.#Ue(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#$e()}#$e(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}),_h=qh.cssVarList,Xh={[_h.hostDirection]:Ap.direction,[_h.rowsGap]:rp.spacing.sm,[_h.rowGap]:rp.spacing.sm,[_h.rowAlignItems]:"flex-end",[_h.rowWrap]:"nowrap",[_h.addActionJustifyContent]:"flex-start",[_h.addActionMarginTop]:rp.spacing.xs,_fullWidth:{[_h.hostWidth]:"100%"}};var Kh=Object.freeze({__proto__:null,default:Xh,vars:_h});const tg=ot(rp),eg=Rh.cssVarList,ig={[eg.hostWidth]:Ap.width,[eg.hostDirection]:Ap.direction,[eg.fontSize]:Ap.fontSize,[eg.fontFamily]:Ap.fontFamily,[eg.labelFontSize]:Ap.labelFontSize,[eg.labelFontWeight]:Ap.labelFontWeight,[eg.inputValueFontWeight]:Ap.inputValueFontWeight,[eg.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[eg.helperTextFontWeight]:Ap.helperTextFontWeight,[eg.errorMessageFontWeight]:Ap.errorMessageFontWeight,[eg.labelTextColor]:Ap.labelTextColor,[eg.errorMessageTextColor]:Ap.errorMessageTextColor,[eg.inputBorderColor]:Ap.borderColor,[eg.inputBorderWidth]:Ap.borderWidth,[eg.inputBorderStyle]:Ap.borderStyle,[eg.inputBorderRadius]:Ap.borderRadius,[eg.inputOutlineColor]:Ap.outlineColor,[eg.inputOutlineOffset]:Ap.outlineOffset,[eg.inputOutlineWidth]:Ap.outlineWidth,[eg.inputOutlineStyle]:Ap.outlineStyle,[eg.labelRequiredIndicator]:Ap.requiredIndicator,[eg.inputValueTextColor]:Ap.valueTextColor,[eg.inputPlaceholderTextColor]:Ap.placeholderTextColor,[eg.inputBackgroundColor]:Ap.backgroundColor,[eg.inputHorizontalPadding]:Ap.horizontalPadding,[eg.inputVerticalPadding]:Ap.verticalPadding,[eg.inputHeight]:Ap.inputHeight,[eg.inputDropdownButtonColor]:tg.colors.surface.dark,[eg.inputDropdownButtonCursor]:"pointer",[eg.inputDropdownButtonSize]:Ap.toggleButtonSize,[eg.inputDropdownButtonOffset]:tg.spacing.xs,[eg.overlayItemPaddingInlineStart]:tg.spacing.xs,[eg.overlayItemPaddingInlineEnd]:tg.spacing.lg,[eg.chipFontSize]:Ap.chipFontSize,[eg.chipTextColor]:tg.colors.surface.contrast,[eg.chipBackgroundColor]:tg.colors.surface.light,[eg.labelPosition]:Ap.labelPosition,[eg.labelTopPosition]:Ap.labelTopPosition,[eg.labelLeftPosition]:Ap.labelLeftPosition,[eg.labelHorizontalPosition]:Ap.labelHorizontalPosition,[eg.inputTransformY]:Ap.inputTransformY,[eg.inputTransition]:Ap.inputTransition,[eg.marginInlineStart]:Ap.marginInlineStart,[eg.placeholderOpacity]:Ap.placeholderOpacity,[eg.inputVerticalAlignment]:Ap.inputVerticalAlignment,[eg.errorMessageIcon]:Ap.errorMessageIcon,[eg.errorMessageIconSize]:Ap.errorMessageIconSize,[eg.errorMessageIconPadding]:Ap.errorMessageIconPadding,[eg.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[eg.errorMessageIconPosition]:Ap.errorMessageIconPosition,[eg.errorMessageFontSize]:Ap.errorMessageFontSize,labelType:{floating:{[eg.inputHorizontalPadding]:"0.25em",_hasValue:{[eg.inputHorizontalPadding]:"0.45em"}}},_readonly:{[eg.inputDropdownButtonCursor]:"default"},[eg.overlayFontSize]:Ap.fontSize,[eg.overlayFontFamily]:Ap.fontFamily,[eg.overlayCursor]:"pointer",[eg.overlayItemBoxShadow]:"none",[eg.overlayBackground]:Ap.backgroundColor,[eg.overlayTextColor]:Ap.valueTextColor,[eg.overlay.minHeight]:"400px",[eg.overlay.margin]:"0"};var og=Object.freeze({__proto__:null,default:ig,multiSelectComboBox:ig,vars:eg});const ng=w("autocomplete-field-internal"),rg=zt({componentName:ng,baseSelector:""}),sg=[],ag="DESCOPE_INVALID_OPTION",lg=w("autocomplete-field"),{host:dg}={host:{selector:()=>":host"}},cg=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:{...dg,property:"width"},hostDirection:{...dg,property:"direction"},fontSize:{...dg},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}}}),ht,Et({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),gt,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 <${ng}\n tabindex="-1"\n ></${ng}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ng),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:lg})),ug=cg.cssVarList,pg=ot(rp),hg={[ug.hostWidth]:Ap.width,[ug.hostDirection]:Ap.direction,[ug.fontSize]:Ap.fontSize,[ug.checkmarkDisplay]:"none",[ug.itemPaddingInlineStart]:pg.spacing.lg,[ug.itemPaddingInlineEnd]:pg.spacing.lg,[ug.selectedItemBackground]:pg.colors.primary.light,[ug.selectedItemHoverBackground]:pg.colors.primary.light,[ug.selectedItemFocusBackground]:pg.colors.primary.light,[ug.itemHoverBackground]:pg.colors.primary.highlight,_fullWidth:{[ug.hostWidth]:"100%"}};var gg=Object.freeze({__proto__:null,default:hg,vars:ug});class Mg extends(St()){#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:Ct}}}#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 mg extends(St()){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:Ct}}}#Ke(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const yg=w("address-field-internal"),bg="google-maps-places",Ng="radar",Ig={[bg]:Mg,[Ng]:mg},xg=zt({componentName:yg,baseSelector:""}),jg=["public-api-key"],Tg=[...jg],Dg=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:Ig}))(class extends xg{static get observedAttributes(){return[].concat(xg.observedAttributes||[],Tg)}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&&jg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),vg=w("address-field"),{host:zg}={host:{selector:()=>":host"}},Cg=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:{...zg,property:"width"},hostDirection:{...zg,property:"direction"}}}),ht,Et({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),gt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(t){this.inputElement.connectorClasses=t}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${yg}\n tabindex="-1"\n ></${yg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(yg),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 ${yg} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${yg} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:vg})),Sg=Cg.cssVarList,Lg={[Sg.hostWidth]:Ap.width,[Sg.hostDirection]:Ap.direction,_fullWidth:{[Sg.hostWidth]:"100%"}};var wg=Object.freeze({__proto__:null,default:Lg,vars:Sg});const Ag=(t,e=2)=>String(t).padStart(e,"0"),fg=w("timer"),Eg=["seconds","hide-icon","paused"],kg=Nt({componentName:fg,baseSelector:":host > .wrapper"}),{host:Og,icon:Vg,timer:Wg}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},Ug=T(pt({mappings:{fontSize:{},iconSize:[{...Vg,property:"width"},{...Vg,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...Wg},lineHeight:{...Wg},textColor:{...Wg,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...Og,property:"width"},hostDirection:{...Og,property:"direction"},iconColor:{...Vg,property:Lo.cssVarList.fill}}}),ht,gt)(class extends kg{#ei=0;#ii;static get observedAttributes(){return Eg.concat(kg.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?[Ag(i)]:[],Ag(o),Ag(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))}}),Rg=ot(rp),Yg=Ug.cssVarList,Qg={[Yg.hostDirection]:Rg.direction,[Yg.gap]:"0.25em",[Yg.fontFamily]:Rg.fonts.font1.family,[Yg.minHeight]:"1.5em",[Yg.lineHeight]:"1em",[Yg.fontWeight]:Rg.fonts.font1.fontWeight,[Yg.textColor]:Rg.colors.surface.contrast,[Yg.iconColor]:Rg.colors.surface.contrast,[Yg.iconSize]:"1em",size:{xs:{[Yg.fontSize]:"12px"},sm:{[Yg.fontSize]:"14px"},md:{[Yg.fontSize]:"16px"},lg:{[Yg.fontSize]:"18px"}},textAlign:{right:{[Yg.textAlign]:"right"},left:{[Yg.textAlign]:"left"},center:{[Yg.textAlign]:"center"}},_fullWidth:{[Yg.hostWidth]:"100%"}};var Bg=Object.freeze({__proto__:null,default:Qg,vars:Yg});const Pg=w("timer-button"),Zg=["button-variant","button-mode","size","text-align","full-width"],Fg={"button-variant":"variant","button-mode":"mode"},Gg=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],Hg={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},Jg=Nt({componentName:Pg,baseSelector:":host > div"}),{host:$g,nestedTimer:qg,nestedButton:_g,timerInsideNotReversed:Xg,timerInsideReversed:Kg}={host:{selector:()=>":host"},nestedTimer:{selector:()=>':host([timer-inside="true"]) .timer'},nestedButton:{selector:()=>':host([timer-inside="true"]) .button'},timerInsideNotReversed:{selector:()=>':host([timer-inside="true"]:not([timer-position="end"])) .timer'},timerInsideReversed:{selector:()=>':host([timer-inside="true"][timer-position="end"]) .timer'}},tM=T(pt({mappings:{gap:{},flexDirection:{},hostWidth:{...$g,property:"width"},hostDirection:{...$g,property:"direction"},timerTextColor:{...qg,property:Ug.cssVarList.textColor},timerIconColor:{...qg,property:Ug.cssVarList.iconColor},timerHostWidth:{...qg,property:Ug.cssVarList.hostWidth},buttonLabelSpacing:{..._g,property:Oo.cssVarList.labelSpacing},timerInsideGapEnd:{...Xg,property:"margin-inline-end"},timerInsideGapStart:{...Kg,property:"margin-inline-start"}}}),ht,gt)(class extends Jg{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:Zg,mapAttrs:Fg}),f(this,this.timer,{includeAttrs:Gg,mapAttrs:Hg}),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")})}}),eM=ot(rp),iM=tM.cssVarList,oM={[iM.gap]:eM.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 nM=Object.freeze({__proto__:null,default:oM,vars:iM});const rM=w("password-strength");class sM extends(Nt({componentName:rM,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 MT}).then(t=>t.default);#ui=-1;async calcScore(){const t=this.getAttribute("value")||"";return t?(await this.getCalcScoreFn())(t).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((t,e)=>{const i=document.createElement("div");return i.classList.add("bar"),i.classList.toggle("filled",e<=this.#ui),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#ui&&(this.#ui=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#ui})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#ui)}),this.textContainer.innerHTML=this.options[this.#ui]||"",-1===this.#ui?this.removeAttribute("score"):this.setAttribute("score",this.#ui))}attributeChangedCallback(t,e,i){if(e!==i)return"options"===t?this.renderBars():"value"===t?this.onValueChange():void 0}}const{host:aM,bar:lM,filledBar:dM,barsContainer:cM,text:uM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},pM=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:[{...aM,property:"width"},{...aM,property:"min-width"}],hostDirection:{...aM,property:"direction"},hostMinWidth:{...aM,property:"min-width"},barHeight:{...lM,property:"height"},barBorderRadius:{...lM,property:"border-radius"},emptyBarColor:{...lM,property:"background-color"},filledBarColor:{...dM,property:"background-color"},textColor:{...uM,property:"color"},spacing:{property:"gap"},barSpacing:{...cM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...lM,property:"transition"}}}),ht,gt)(sM),hM=ot(rp),gM=pM.cssVarList,MM={[gM.hostDirection]:hM.direction,[gM.barHeight]:"4px",[gM.barTransition]:"background-color 0.3s",[gM.barBorderRadius]:hM.radius.sm,[gM.hostMinWidth]:Ap.minWidth,[gM.barSpacing]:hM.spacing.sm,[gM.emptyBarColor]:hM.colors.surface.light,[gM.fontFamily]:Ap.fontFamily,[gM.fontSize]:Ap.labelFontSize,[gM.fontWeight]:Ap.labelFontWeight,[gM.spacing]:hM.spacing.sm,_fullWidth:{[gM.hostWidth]:"100%"},score:{0:{[gM.filledBarColor]:hM.colors.error.light,[gM.textColor]:hM.colors.error.light},1:{[gM.filledBarColor]:hM.colors.error.main,[gM.textColor]:hM.colors.error.main},2:{[gM.filledBarColor]:hM.colors.error.dark,[gM.textColor]:hM.colors.error.dark},3:{[gM.filledBarColor]:hM.colors.success.dark,[gM.textColor]:hM.colors.success.dark},4:{[gM.filledBarColor]:hM.colors.success.main,[gM.textColor]:hM.colors.success.main}}},mM={...gM};var yM=Object.freeze({__proto__:null,default:MM,vars:mM});const bM=w("collapsible-container");class NM extends(Nt({componentName:bM,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(${wi.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 IM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},xM=T(pt({mappings:{hostWidth:{selector:IM.host,property:"width"},hostDirection:{selector:IM.host,property:"direction"},verticalPadding:[{selector:IM.wrapper,property:"padding-top"},{selector:IM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:IM.wrapper,property:"padding-left"},{selector:IM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:IM.wrapper},backgroundImage:{selector:IM.wrapper},backgroundPositionX:{selector:IM.wrapper},backgroundPositionY:{selector:IM.wrapper},backgroundSize:{selector:IM.wrapper},backgroundRepeat:{selector:IM.wrapper},borderRadius:{selector:IM.wrapper},borderColor:{selector:IM.wrapper},borderStyle:{selector:IM.wrapper},borderWidth:{selector:IM.wrapper},boxShadow:{selector:IM.wrapper},headerIconOrder:{selector:IM.iconWrapper,property:"order"},headerCursor:{selector:IM.header,property:"cursor"},headerGap:{selector:IM.iconAndText,property:"gap"},textGrow:{selector:IM.text,property:"flex-grow"},textDirection:{selector:IM.text,property:"direction"},iconAnimationDuration:{selector:IM.icon,property:"transition-duration"},contentAnimationDuration:{selector:IM.content,property:"transition-duration"},chevronRotation:{selector:IM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),ht,gt)(NM),jM=ot(rp),TM=xM.cssVarList,[DM,vM,zM]=rt({shadowColor:"#00000020"},bM),{shadowColor:CM}=vM,SM={...DM,[TM.hostWidth]:"100%",[TM.boxShadow]:"none",[TM.backgroundColor]:jM.colors.surface.main,[TM.backgroundImage]:"",[TM.backgroundPositionX]:"center",[TM.backgroundPositionY]:"center",[TM.backgroundSize]:"cover",[TM.backgroundRepeat]:"no-repeat",[TM.borderRadius]:"0px",[TM.hostDirection]:jM.direction,[TM.flexDirection]:"column",[TM.alignItems]:"flex-start",[TM.justifyContent]:"flex-start",[TM.headerGap]:jM.spacing.md,[TM.chevronRotation]:"rotate(180deg)",[TM.iconAnimationDuration]:"0.1s",[TM.contentAnimationDuration]:"0.1s",[TM.borderWidth]:"0px",[TM.textGrow]:"0",verticalPadding:{sm:{[TM.verticalPadding]:"5px"},md:{[TM.verticalPadding]:"10px"},lg:{[TM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[TM.horizontalPadding]:"5px"},md:{[TM.horizontalPadding]:"10px"},lg:{[TM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[TM.gap]:"10px"},md:{[TM.gap]:"20px"},lg:{[TM.gap]:"30px"}},shadow:{sm:{[TM.boxShadow]:`${jM.shadow.wide.sm} ${CM}, ${jM.shadow.narrow.sm} ${CM}`},md:{[TM.boxShadow]:`${jM.shadow.wide.md} ${CM}, ${jM.shadow.narrow.md} ${CM}`},lg:{[TM.boxShadow]:`${jM.shadow.wide.lg} ${CM}, ${jM.shadow.narrow.lg} ${CM}`},xl:{[TM.boxShadow]:`${jM.shadow.wide.xl} ${CM}, ${jM.shadow.narrow.xl} ${CM}`},"2xl":{[zM.shadowColor]:"#00000050",[TM.boxShadow]:`${jM.shadow.wide["2xl"]} ${CM}`}},borderRadius:{sm:{[TM.borderRadius]:jM.radius.sm},md:{[TM.borderRadius]:jM.radius.md},lg:{[TM.borderRadius]:jM.radius.lg},xl:{[TM.borderRadius]:jM.radius.xl},"2xl":{[TM.borderRadius]:jM.radius["2xl"]},"3xl":{[TM.borderRadius]:jM.radius["3xl"]}},iconPosition:{left:{[TM.headerIconOrder]:"0"},right:{[TM.headerIconOrder]:"1"}},_fillTitle:{[TM.textGrow]:"1"},_border:{[TM.borderColor]:jM.colors.surface.light,[TM.borderWidth]:jM.border.xs,[TM.borderStyle]:"solid"},_collapsible:{[TM.headerCursor]:"pointer"}},LM={...TM,...zM};var wM=Object.freeze({__proto__:null,default:SM,vars:LM});const AM=w("recovery-codes"),fM="none",EM={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},kM=["text","variant","color","size","icon","icon-dark"],OM=["show-download",...Object.keys(EM).flatMap(t=>kM.map(e=>`${t}-${e}`))];class VM extends(Nt({componentName:AM,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...OM]}#hi=fM;#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>\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 }\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}=EM[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!==fM}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&&OM.includes(t)&&this.renderButtons())}}const WM=T(pt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>wi.componentName,property:wi.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"}}}),pt({componentNameOverride:w("input-wrapper")}),Wt({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:".list"}),ht,gt)(VM),UM=ot(rp),RM=WM.cssVarList,YM=wi.cssVarList,QM={[RM.hostMinWidth]:"190px",[RM.hostDirection]:UM.direction,[RM.iconColor]:nt(YM.textColor),[RM.iconSize]:nt(YM.fontSize),[RM.iconGap]:"8px",[RM.iconStackGap]:"16px",[RM.buttonsGap]:"8px",[RM.sectionsGap]:"8px",[RM.bulletGap]:"0.35em",[RM.verticalPadding]:"0",[RM.horizontalPadding]:"0",[RM.errorBorderColor]:"transparent",[RM.errorBorderWidth]:Ap.borderWidth,[RM.boxBorderRadius]:Ap.borderRadius,[RM.boxBorderStyle]:"solid",[RM.errorMessageColor]:Ap.errorMessageTextColor,[RM.errorMessageFontSize]:Ap.errorMessageFontSize,[RM.errorMessageFontWeight]:Ap.errorMessageFontWeight,[RM.errorMessageFontFamily]:Ap.fontFamily,textAlign:{right:{[RM.textAlign]:"flex-end"},left:{[RM.textAlign]:"flex-start"},center:{[RM.textAlign]:"center"}},_fullWidth:{[RM.hostWidth]:"100%"},_invalid:{[RM.errorBorderColor]:Ap.errorMessageTextColor}};var BM=Object.freeze({__proto__:null,default:QM,vars:RM});const PM={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEu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MjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},ZM=w("active-sessions"),FM=Rh.componentName;let GM;const HM={selector:()=>":host"},JM={selector:()=>FM},$M=T(pt({mappings:{hostWidth:[{...HM,property:"width"},{...JM,property:Rh.cssVarList.hostWidth}],hostDirection:[{...HM,property:"direction"},{...JM,property:Rh.cssVarList.hostDirection}]}}),ht,kt({name:"overlay",forward:!1,selector:async t=>{const e=await(async t=>{if(!t)return null;const e=await L(()=>t)();return e instanceof ShadowRoot?e:null})(t?.querySelector("vaadin-multi-select-combo-box"));return e?.querySelector("vaadin-multi-select-combo-box-internal")},style:"\n .session {\n display: flex;\n flex-direction: column;\n }\n /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the\n title and widen the space to the location line. */\n .session .device descope-text,\n .session .device descope-text::part(text-wrapper) {\n display: block;\n }\n /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,\n so a container outside would only ever see the slot as its single item. */\n .session .device-row {\n display: flex;\n align-items: center;\n }\n .session .device-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n }\n",mappings:{rowGap:{selector:".session",property:"gap"},deviceRowGap:{selector:".device-row",property:"gap"}}}),Et({proxyProps:["value"],inputEvent:"change",proxyParentValidation:!0}),gt,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=(GM||(GM=document.createElement("template"),GM.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 ',GM)).content.cloneNode(!0).firstElementChild;l.setAttribute("data-id",e??""),l.setAttribute("data-name",a),l.querySelector(".device-name").textContent=a;const{iconSrc:d,iconSrcDark:c}=(t=>{const e=PM[t]||PM.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),u=l.querySelector(".device-icon");u.setAttribute("src",d),u.setAttribute("src-dark",c);const p=(t,e)=>{const i=l.querySelector(t);e?i.firstElementChild.textContent=e:i.remove()};p(".location",(({country:t,city:e})=>[e,t].filter(Boolean).join(", "))({country:r,city:n}));const h=(t=>{const e=parseInt(t,10);if(Number.isNaN(e)||e<=0)return"";const i=new Date(1e3*e),o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};try{return i.toLocaleString(void 0,{...o,timeZoneName:"shortOffset"})}catch{return i.toLocaleString(void 0,o)}})(s);return p(".last-login",h&&t.lastLoginLabel?`${t.lastLoginLabel} ${h}`:h),l.outerHTML}),this.inputElement.setAttribute("allow-custom-value","false"),this.inputElement.setAttribute("item-label-path","data-name"),this.inputElement.setAttribute("item-value-path","data-id")}})(Lt({slots:[],wrappedEleName:FM,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${FM} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:ZM})),qM=$M.cssVarList,_M={[qM.hostWidth]:Ap.width,[qM.hostDirection]:Ap.direction,[qM.overlay.rowGap]:"0.125em",[qM.overlay.deviceRowGap]:"0.5em",_fullWidth:{[qM.hostWidth]:"100%"}};var XM=Object.freeze({__proto__:null,default:_M,vars:qM});const KM=w("outbound-apps"),tm=({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`},em=Nt({componentName:KM,baseSelector:"descope-list"}),{host:im}={host:{selector:()=>":host"}},om=T(pt({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:Lo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:Lo.cssVarList.fill},fontSize:{selector:wi.componentName,property:wi.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:wi.componentName,property:wi.cssVarList.textAlign},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>yu.componentName,property:yu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>yu.componentName,property:yu.cssVarList.emptyStateVerticalPadding}}}),ht,Wt({itemRenderer:tm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),gt)(class extends em{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=tm,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),nm=om.cssVarList,rm={[nm.iconColor]:rp.colors.primary.main,[nm.errorIconColor]:rp.colors.error.main,[nm.appLogoGap]:rp.spacing.md,[nm.contentGap]:rp.spacing.xs,[nm.itemCursor]:"default",[nm.itemOutline]:"none",[nm.itemBorderColor]:"transparent",[nm.listPadding]:"0",[nm.listBorderWidth]:"0",[nm.listBoxShadow]:"none",[nm.emptyStateMinHeight]:"0",[nm.emptyStateVerticalPadding]:rp.spacing.lg,size:{xs:{[nm.fontSize]:"0.6em"},sm:{[nm.fontSize]:"0.8em"},md:{[nm.fontSize]:"1em"},lg:{[nm.fontSize]:"1.5em"}}};var sm=Object.freeze({__proto__:null,default:rm,vars:nm});const am=w("outbound-app-button");class lm extends(Nt({componentName:am,baseSelector:":host > descope-button"})){static get observedAttributes(){return["label","icon-src","icon-fill-current-color"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-button>\n <descope-icon class="icon"></descope-icon>\n <span class="label"></span>\n </descope-button>\n ',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 dm=T(pt({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Oo.cssVarList.iconColor}}}),ht,gt)(lm),cm=dm.cssVarList,um={[cm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[cm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[cm.hostWidth]:"100%"}},pm=cm;var hm=Object.freeze({__proto__:null,default:um,vars:pm});const gm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},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jUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},unknown:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},mm=w("trusted-devices"),ym=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=Mm[t]||Mm.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},bm=Nt({componentName:mm,baseSelector:yu.componentName}),{host:Nm}={host:{selector:()=>":host"}},Im=T(pt({mappings:{hostWidth:{...Nm,property:"width"},hostMinWidth:{...Nm,property:"min-width"},hostDirection:[{...Nm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:yu.cssVarList.gap},listBackgroundColor:{selector:()=>yu.componentName,property:yu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>yu.componentName,property:yu.cssVarList.borderRadius},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>yu.componentName,property:yu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>yu.componentName,property:yu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPadding},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBorderRadius:{selector:gu.componentName,property:gu.cssVarList.borderRadius},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:wc.componentName,property:wc.cssVarList.borderColor},badgeTextColor:{selector:wc.componentName,property:wc.cssVarList.textColor},badgeBackgroundColor:{selector:wc.componentName,property:wc.cssVarList.backgroundColor},badgeBorderRadius:{selector:wc.componentName,property:wc.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"}}}),ht,Wt({itemRenderer:ym,sortFn:(t,e)=>gm(e.lastLoginDate)-gm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),gt)(class extends bm{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=ym,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),xm=Im.cssVarList,jm={[xm.hostWidth]:"auto",[xm.hostWidth]:"300px",[xm.hostMinWidth]:"300px",[xm.listBackgroundColor]:"transparent",[xm.listBorderRadius]:"0",[xm.listBorderWidth]:"0",[xm.listPadding]:"0",[xm.listBoxShadow]:"none",[xm.listItemsGap]:rp.spacing.lg,[xm.emptyStateMinHeight]:"0",[xm.emptyStateVerticalPadding]:rp.spacing.lg,[xm.itemBorderColor]:rp.colors.surface.light,[xm.itemVerticalPadding]:rp.spacing.lg,[xm.itemHorizontalPadding]:rp.spacing.lg,[xm.itemBorderRadius]:rp.radius.xs,[xm.itemOutline]:"transparent",[xm.itemBackgroundColor]:"transparent",[xm.itemCursor]:"default",[xm.itemContentGap]:rp.spacing.sm,[xm.badgeBorderColor]:rp.colors.surface.light,[xm.badgeTextColor]:rp.colors.surface.dark,[xm.badgeBorderRadius]:rp.radius.xs,[xm.badgeBackgroundColor]:rp.colors.surface.main,[xm.devicePanelGap]:rp.spacing.md,[xm.deviceIconGap]:rp.spacing.md,[xm.deviceIconSize]:"24px",[xm.lastLoginLabelGap]:rp.spacing.xs,_fullWidth:{[xm.hostWidth]:"100%"}};var Tm=Object.freeze({__proto__:null,default:jm,vars:xm});const Dm=w("multi-sso"),vm=({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=Nt({componentName:Dm,baseSelector:"span.wrapper"}),{host:Cm}={host:{selector:()=>":host"}},Sm=T(pt({mappings:{hostWidth:{...Cm,property:"width"},hostMinWidth:{...Cm,property:"min-width"},hostDirection:[{...Cm,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:wi.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Oo.componentName,property:Oo.cssVarList.hostMaxWidth},listItemsGap:{property:yu.cssVarList.gap},listBackgroundColor:{selector:()=>yu.componentName,property:yu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>yu.componentName,property:yu.cssVarList.borderRadius},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPadding},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBorderRadius:{selector:gu.componentName,property:gu.cssVarList.borderRadius},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>wc.componentName,property:wc.cssVarList.borderColor},badgeTextColor:{selector:()=>wc.componentName,property:wc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>wc.componentName,property:wc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>wc.componentName,property:wc.cssVarList.borderRadius},titleIconSize:[{selector:()=>'::slotted([slot="title-icon"])',property:"width"},{selector:()=>'::slotted([slot="title-icon"])',property:"height"}],createButtonIconSize:[{selector:()=>'::slotted([slot="create-button-icon"])',property:"width"},{selector:()=>'::slotted([slot="create-button-icon"])',property:"height"}],actionIconSize:[{selector:()=>".delete-icon",property:"width"},{selector:()=>".delete-icon",property:"height"},{selector:()=>".external-link-icon",property:"width"},{selector:()=>".external-link-icon",property:"height"}],actionIconColor:[{selector:()=>".delete-icon",property:Lo.cssVarList.fill},{selector:()=>".external-link-icon",property:Lo.cssVarList.fill}]}}),ht,Wt({targetSelector:"descope-list",itemRenderer:vm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),gt)(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)=>vm(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)}}),Lm=Sm.cssVarList,wm=ot(rp),Am={[Lm.hostWidth]:"300px",[Lm.headerGap]:wm.spacing.md,[Lm.headerListGap]:wm.spacing.md,[Lm.itemContentGap]:wm.spacing.md,[Lm.actionGap]:wm.spacing.sm,[Lm.authTypeRowGap]:wm.spacing.sm,[Lm.unconfiguredAuthTypeTextColor]:wm.colors.surface.dark,[Lm.unconfiguredAuthTypeTextFontStyle]:"italic",[Lm.buttonMaxWidth]:"50%",[Lm.listBackgroundColor]:"transparent",[Lm.listBorderRadius]:"0",[Lm.listBorderWidth]:"0",[Lm.listPadding]:"0",[Lm.listBoxShadow]:"none",[Lm.listItemsGap]:wm.spacing.lg,[Lm.itemBorderColor]:wm.colors.surface.light,[Lm.itemVerticalPadding]:wm.spacing.lg,[Lm.itemHorizontalPadding]:wm.spacing.lg,[Lm.itemBorderRadius]:wm.radius.xs,[Lm.itemOutline]:"transparent",[Lm.itemBackgroundColor]:"transparent",[Lm.itemCursor]:"default",[Lm.badgeBorderColor]:wm.colors.surface.light,[Lm.badgeTextColor]:wm.colors.surface.dark,[Lm.badgeBorderRadius]:wm.radius.xs,[Lm.badgeBackgroundColor]:wm.colors.surface.main,[Lm.titleIconSize]:"24px",[Lm.createButtonIconSize]:"12px",[Lm.actionIconSize]:"20px",[Lm.actionIconColor]:wm.colors.surface.dark,_fullWidth:{[Lm.hostWidth]:"100%"}};var fm=Object.freeze({__proto__:null,default:Am,vars:Lm});const Em=w("tooltip"),km=["text","position","hide-delay","hover-delay","opened"];class Om extends(Nt({componentName:Em,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 km.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)}#Li(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.#Li(i),"opened"===t&&this.#zi())}}const{overlay:Vm,content:Wm}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},Um=T(gt,kt({selector:"",mappings:{fontFamily:{...Wm,property:Bt.cssVarList.fontFamilyOverride},fontSize:{...Wm,property:Bt.cssVarList.fontSizeOverride},fontWeight:{...Wm,property:Bt.cssVarList.fontWeightOverride},textColor:{...Wm,property:Bt.cssVarList.textColorOverride},hostDirection:{...Wm,property:Bt.cssVarList.hostDirectionOverride},backgroundColor:[{...Vm},{...Wm}],borderColor:{...Vm},borderStyle:{...Vm},borderWidth:{...Vm},borderRadius:{...Vm},boxShadow:{...Vm},horizontalPadding:[{...Wm,property:"padding-left"},{...Wm,property:"padding-right"}],verticalPadding:[{...Wm,property:"padding-top"},{...Wm,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(Om),Rm=ot(rp),Ym=Um.cssVarList,[Qm,Bm,Pm]=rt({shadowColor:"#00000020"},Em),{shadowColor:Zm}=Bm,Fm=`${Rm.shadow.wide.sm} ${Zm}, ${Rm.shadow.narrow.sm} ${Zm}`,Gm={...Qm,[Ym.fontFamily]:Rm.fonts.font1.family,[Ym.fontSize]:rp.typography.body2.size,[Ym.fontWeight]:rp.typography.body2.weight,[Ym.textColor]:Rm.colors.surface.contrast,[Ym.hostDirection]:Rm.direction,[Ym.backgroundColor]:Rm.colors.surface.main,[Ym.borderColor]:Rm.colors.surface.light,[Ym.borderStyle]:"solid",[Ym.borderWidth]:Rm.border.xs,[Ym.borderRadius]:Rm.radius.xs,[Ym.horizontalPadding]:Rm.spacing.md,[Ym.verticalPadding]:Rm.spacing.sm,[Ym.boxShadow]:Fm,shadow:{sm:{[Ym.boxShadow]:Fm},md:{[Ym.boxShadow]:`${Rm.shadow.wide.md} ${Zm}, ${Rm.shadow.narrow.md} ${Zm}`},lg:{[Ym.boxShadow]:`${Rm.shadow.wide.lg} ${Zm}, ${Rm.shadow.narrow.lg} ${Zm}`},xl:{[Ym.boxShadow]:`${Rm.shadow.wide.xl} ${Zm}, ${Rm.shadow.narrow.xl} ${Zm}`},"2xl":{[Pm.shadowColor]:"#00000050",[Ym.boxShadow]:`${Rm.shadow.wide["2xl"]} ${Zm}`}}};var Hm=Object.freeze({__proto__:null,default:Gm,vars:Ym});const Jm=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},$m=async t=>Jm(`${t}/countries.json`),qm=async(t,e)=>{try{return(await Jm(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},_m=async(t,e,i)=>Jm(`${i}/countries/${t}/subdivisions/${e}/cities.json`),Xm=async t=>{const e=new URL("../labels.json",`${t}/`).href;return Jm(e)},Km=async(t,e)=>Jm(`${e}/countries/${t}/cities.json`),ty=w("country-subdivision-city-field-internal"),ey=Symbol("selecting"),iy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,oy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",ny=({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=oy(e),l=oy(s.join(" ")),d=oy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},ry=({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=oy(e),a=oy(r.join(" ")),l=oy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},sy=({name:t,translations:e,lang:i})=>{const o=iy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=oy(t),s=oy(n.join(" ")),a=oy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},ay=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,ly=zt({componentName:ty,baseSelector:""}),dy=["disabled","readonly","size","bordered"],cy=["hide-country","hide-subdivision","hide-city"],uy=[...dy,"label-type","country-label","subdivision-label","city-label",...cy,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],py=T()(class extends ly{static get observedAttributes(){return[].concat(ly.observedAttributes||[],uy)}#wi;#Ai;#fi;#Ei=!1;#ki=!1;#Oi=new Map;#Vi=null;#Wi=null;#Ui=null;#Ri=null;#Yi=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${ay("country-combo")}\n ${ay("subdivision-combo")}\n ${ay("city-combo")}\n </div>\n `,this.#wi=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.#wi,this.#Ai,this.#fi]}get value(){return{country:this.#Pi?this.#$i:this.#wi.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(`${ty}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#wi.renderItem=ny,this.#Ai.renderItem=ry,this.#fi.renderItem=sy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(cy.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.#wi,"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.#wi.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(`${ty}-hidden`)||t.checkValidity()||t.reportValidity()}#Qi(){[this.#wi,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:[...dy,"label-type"]})}),f(this,this.#wi,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#wi,"country-placeholder"],[this.#Ai,"subdivision-placeholder"],[this.#fi,"city-placeholder"]].forEach(([t,e])=>{f(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#no(){this.#wi.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??$m(this.#Hi),s=this.#Ri??Xm(this.#Hi),a=o&&t?qm(t,this.#Hi):null,l=n&&t?o&&e?_m(t,e,this.#Hi):Km(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.#Ri=c);const h=[];d&&(this.#Vi||(this.#Vi=d,this.#po(d)),t&&!this.#Pi&&h.push([this.#wi,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.#Ui=p,this.#fi.data=p.map(t=>({...t,lang:this.#Ji})),i&&h.push([this.#fi,i]))),this.#oo(),this.#Yi=ey,setTimeout(()=>{if(this.#Yi===ey){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!==ey&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#wi.value),this.#mo())}#Mo(){if(this.#Yi===ey)return;this.#Yi=null;const t=this.#Ai.value;if(this.#No(),!this.#Fi&&t){const e=this.#wi.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.#Ri?.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.#Ri=await Xm(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#wi.setAttribute("loading","true");try{const[t]=await Promise.all([$m(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${ty}] Failed to load countries`,t)}finally{this.#wi.removeAttribute("loading")}}}async#xo(t){this.#Do(this.#Ai,!0),this.#Ai.setAttribute("loading","true");try{const e=await qm(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(`[${ty}] 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?_m(t,e,this.#Hi):Km(t,this.#Hi));this.#ki=i.length>0,this.#oo(),i.length>0&&(this.#Ui=i,this.#fi.data=i.map(t=>({...t,lang:this.#Ji})))}catch(i){console.error(`[${ty}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#fi.removeAttribute("loading")}}#co(){if(this.#Vi){const t=this.#wi.value;this.#po(this.#Vi),t&&this.#zo(this.#wi,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.#Ui&&this.#ki){const t=this.#fi.value;this.#fi.data=this.#Ui.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#fi,t)}const t=this.#wi.value;if(t){const e=this.#Oi.get(t);e?.subdivisionType&&this.#yo(e.subdivisionType)}}#po(t){const e=this.#Co(t);this.#wi.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.#wi,!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(`${ty}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#wi,"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.#Ui=null,this.#ki=!1,this.#oo()}#mo(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#ho(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#io(){return this.#to.find(t=>!t.classList.contains(`${ty}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),hy=w("country-subdivision-city-field"),gy={selector:()=>":host"},My={selector:`${ty} > .wrapper`},my={selector:`${ty} > .wrapper > descope-combo-box`},yy=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:{...gy,property:"width"},hostDirection:[{...gy,property:"direction"},{...my,property:jo.cssVarList.hostDirection}],flexDirection:{...My,property:"flex-direction"},flexGap:{...My,property:"gap"},itemAlignment:{...My,property:"align-items"},itemMinWidth:{...my,property:"min-width"},itemFlexGrow:{...my,property:"flex-grow"},itemWidth:{...my,property:jo.cssVarList.hostWidth}}}),ht,Et({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),gt,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${ty}\n tabindex="-1"\n ></${ty}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ty),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 ${ty} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${ty} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${ty}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:hy})),by=yy.cssVarList,Ny={[by.hostWidth]:Ap.width,[by.hostDirection]:Ap.direction,[by.flexDirection]:"column",[by.flexGap]:"0.5em",[by.itemAlignment]:"stretch",[by.itemFlexGrow]:"0",[by.itemWidth]:"auto",_fullWidth:{[by.hostWidth]:"100%"},_horizontal:{[by.flexDirection]:"row",[by.itemFlexGrow]:"1"}};var Iy=Object.freeze({__proto__:null,default:Ny,vars:by});const xy=w("attachment"),jy=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Ty=jy[0];class Dy extends(Nt({componentName:xy,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.#Lo()}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.#Lo();const t=this.shadowRoot.querySelector(".attachment-container");v(t,()=>this.#wo(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#wo()),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)}#wo(){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"}#Lo(){const t=this.getAttribute("position");jy.includes(t)||this.setAttribute("position",Ty)}}const vy={selector:()=>".attachment-container"},zy=T(pt({mappings:{transform:{...vy},justifyContent:{...vy},maxWidth:{...vy},top:{...vy},bottom:{...vy},left:{...vy},right:{...vy},offsetX:{},offsetY:{}}}),ht,gt)(Dy),Cy=zy.cssVarList,Sy=`calc(8px + var(${Cy.offsetX}))`,Ly={[Cy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[Cy.transform]:"translateY(-50%)",[Cy.justifyContent]:"start",[Cy.left]:Sy,[Cy.top]:nt(Cy.offsetY)},"top-center":{[Cy.transform]:"translate(-50%, -50%)",[Cy.justifyContent]:"center",[Cy.top]:nt(Cy.offsetY),[Cy.left]:"50%"},"top-end":{[Cy.transform]:"translateY(-50%)",[Cy.justifyContent]:"end",[Cy.right]:Sy,[Cy.top]:nt(Cy.offsetY)},"bottom-start":{[Cy.transform]:"translateY(50%)",[Cy.justifyContent]:"start",[Cy.left]:Sy,[Cy.bottom]:nt(Cy.offsetY)},"bottom-center":{[Cy.bottom]:nt(Cy.offsetY),[Cy.transform]:"translate(-50%, 50%)",[Cy.justifyContent]:"center",[Cy.left]:"50%"},"bottom-end":{[Cy.transform]:"translateY(50%)",[Cy.justifyContent]:"end",[Cy.right]:Sy,[Cy.bottom]:nt(Cy.offsetY)}}};var wy=Object.freeze({__proto__:null,default:Ly}),Ay="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",fy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjA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AzLTEuMzUgMy0zIDN6bTAtNGMtLjU1IDAtMSAuNDUtMSAxcy40NSAxIDEgMSAxLS40NSAxLTEtLjQ1LTEtMS0xeiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},phone:{light:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iIzYzNmM3NCIvPjwvc3ZnPg==",dark:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:fy,dark:Ay}},Oy=w("user-passkeys"),Vy=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=ky[t]||ky.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},Wy=Nt({componentName:Oy,baseSelector:yu.componentName}),{host:Uy,methodIconSlotted:Ry,addIconSlotted:Yy}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},Qy=T(pt({mappings:{hostWidth:{...Uy,property:"width"},hostMinWidth:{...Uy,property:"min-width"},hostDirection:[{...Uy,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:yu.cssVarList.gap},listBackgroundColor:{selector:()=>yu.componentName,property:yu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>yu.componentName,property:yu.cssVarList.borderRadius},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPadding},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBorderRadius:{selector:gu.componentName,property:gu.cssVarList.borderRadius},itemBackgroundColor:{selector:gu.componentName,property:gu.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:[{...Ry,property:"height"},{...Yy,property:"height"}]}}),ht,Wt({itemRenderer:Vy,sortFn:(t,e)=>Ey(e.createdAt)-Ey(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),gt)(class extends Wy{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=Vy,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))}}),By=Qy.cssVarList,Py={[By.hostWidth]:"auto",[By.hostWidth]:"300px",[By.hostMinWidth]:"300px",[By.headerGap]:rp.spacing.lg,[By.listGap]:rp.spacing.xl,[By.listBackgroundColor]:"transparent",[By.listBorderRadius]:"0",[By.listBorderWidth]:"0",[By.listPadding]:"0",[By.listBoxShadow]:"none",[By.listItemsGap]:rp.spacing.lg,[By.itemBorderColor]:rp.colors.surface.light,[By.itemVerticalPadding]:rp.spacing.lg,[By.itemHorizontalPadding]:rp.spacing.lg,[By.itemBorderRadius]:rp.radius.xs,[By.itemOutline]:"transparent",[By.itemBackgroundColor]:"transparent",[By.itemCursor]:"default",[By.itemContentGap]:rp.spacing.sm,[By.itemPanelGap]:rp.spacing.md,[By.itemIconGap]:rp.spacing.md,[By.itemIconSize]:"24px",[By.addButtonGap]:rp.spacing.sm,[By.dateGap]:rp.spacing.xs,[By.removeButtonGap]:rp.spacing.sm,[By.iconSize]:"1.5em",[By.iconColor]:"currentcolor",_fullWidth:{[By.hostWidth]:"100%"}};var Zy=Object.freeze({__proto__:null,default:Py,vars:By});const Fy=ot(rp),Gy=Xn.cssVarList,Hy={[Gy.hostWidth]:Ap.width,[Gy.hostMinWidth]:Ap.minWidth,[Gy.hostDirection]:Ap.direction,[Gy.fontSize]:Ap.fontSize,[Gy.fontFamily]:Ap.fontFamily,[Gy.labelFontSize]:Ap.labelFontSize,[Gy.labelFontWeight]:Ap.labelFontWeight,[Gy.inputValueFontWeight]:Ap.inputValueFontWeight,[Gy.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Gy.helperTextFontWeight]:Ap.helperTextFontWeight,[Gy.errorMessageFontWeight]:Ap.errorMessageFontWeight,[Gy.labelTextColor]:Ap.labelTextColor,[Gy.labelRequiredIndicator]:Ap.requiredIndicator,[Gy.errorMessageTextColor]:Ap.errorMessageTextColor,[Gy.inputValueTextColor]:Ap.valueTextColor,[Gy.inputPlaceholderColor]:Ap.placeholderTextColor,[Gy.inputBorderWidth]:Ap.borderWidth,[Gy.inputBorderStyle]:Ap.borderStyle,[Gy.inputBorderColor]:Ap.borderColor,[Gy.inputBorderRadius]:Ap.borderRadius,[Gy.inputOutlineWidth]:Ap.outlineWidth,[Gy.inputOutlineStyle]:Ap.outlineStyle,[Gy.inputOutlineColor]:Ap.outlineColor,[Gy.inputOutlineOffset]:Ap.outlineOffset,[Gy.inputBackgroundColor]:Ap.backgroundColor,[Gy.inputHeight]:Ap.inputHeight,[Gy.inputHorizontalPadding]:Ap.horizontalPadding,[Gy.helperTextColor]:Ap.helperTextColor,[Gy.textAlign]:Ap.textAlign,textAlign:{right:{[Gy.inputTextAlign]:"right"},left:{[Gy.inputTextAlign]:"left"},center:{[Gy.inputTextAlign]:"center"}},[Gy.labelPosition]:Ap.labelPosition,[Gy.labelTopPosition]:Ap.labelTopPosition,[Gy.labelHorizontalPosition]:Ap.labelHorizontalPosition,[Gy.inputTransformY]:Ap.inputTransformY,[Gy.inputTransition]:Ap.inputTransition,[Gy.marginInlineStart]:Ap.marginInlineStart,[Gy.placeholderOpacity]:Ap.placeholderOpacity,[Gy.inputVerticalAlignment]:Ap.inputVerticalAlignment,[Gy.valueInputHeight]:Ap.valueInputHeight,[Gy.valueInputMarginBottom]:Ap.valueInputMarginBottom,[Gy.inputIconOffset]:Fy.spacing.md,[Gy.inputIconSize]:Ap.inputIconSize,[Gy.inputIconColor]:Ap.placeholderTextColor,[Gy.errorMessageIcon]:Ap.errorMessageIcon,[Gy.errorMessageIconSize]:Ap.errorMessageIconSize,[Gy.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Gy.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Gy.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Gy.errorMessageFontSize]:Ap.errorMessageFontSize,[Gy.inputTextSecurity]:Ap.inputTextSecurity};var Jy=Object.freeze({__proto__:null,default:Hy,textField:Hy,vars:Gy});class $y{#U=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.#U}set data(t){this.#U=Object.freeze(t),this.onChange?.()}get#lt(){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.#lt<this.max?Math.max(this.#lt+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#lt>this.min?Math.min(this.#lt-(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 qy=["MM/DD","DD/MM"],_y=qy[0],Xy="/",Ky=[31,29,31,30,31,30,31,31,30,31,30,31],tb={id:"month",min:1,max:12,placeholder:"MM"},eb={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])"},ob=t=>{const e=(t=>`^${t.split(Xy).map(t=>ib[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Xy);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}}},nb=Object.fromEntries(qy.map(t=>[t,ob(t)])),rb=(t,e)=>{const i=t?.trim?.();return i?nb[e]?.getParts(i)??null:null},sb=w("month-day-field"),ab=zt({componentName:sb,baseSelector:"vaadin-popover"}),lb=["format","opened","initial-value","readonly","disable-picker"],db=["picker-months","picker-label-submit","picker-label-cancel"],cb=[...lb,...db],ub=Xn.cssVarList,{host:pb,input:hb,inputEleRTL:gb,toggleButton:Mb,overlay:mb,backdrop:yb,bottomNav:bb,navButton:Nb}={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"}},Ib=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{iconMargin:{...Mb,property:"margin-inline-end"},hostWidth:{...pb,property:"width"},hostDirection:{...pb,property:"direction"},textAlign:{...hb,property:"text-align"},rtlInputDirection:{...gb,property:ub.inputDirection},rtlInputAlignment:{...gb,property:ub.inputTextAlign},overlayGap:{property:()=>Ib.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Ib.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Ib.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Ib.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Ib.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Ib.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Ib.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}}}),kt({name:"overlay",selector:"",mappings:{marginTop:{...mb,property:"margin-top"},backgroundColor:{...mb},backdropBackgroundColor:{...yb,property:"background-color"},backdropPointerEvents:{...yb,property:"pointer-events"},padding:{...mb},boxShadow:{...mb},outlineWidth:{...mb},outlineColor:{...mb},outlineStyle:{...mb},bottomNavTopPadding:{...bb,property:"padding-top"},bottomNavBottomPadding:{...bb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...bb,property:"padding-left"},{...bb,property:"padding-right"}],bottomNavAlignment:{...bb,property:"justify-content"},bottomNavGap:{...bb,property:"gap"},navButtonPadding:[{...Nb,property:Oo.cssVarList.horizontalPadding},{...Nb,property:Oo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Nb,property:Oo.cssVarList.outlineWidth}}}),ht,gt)(class extends ab{format=_y;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#dt()};#Vo=[new $y(tb,this.#ko.bind(this)),new $y(eb,this.#ko.bind(this))];static get observedAttributes(){return[].concat(ab.observedAttributes||[],cb)}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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3IDEwLjc4NiA2Ljc3NDA0IDExIDYuNDk1MzIgMTFINS41MDQ2OEM1LjIxNDA0IDExIDUgMTAuNzc0IDUgMTAuNDk1M1Y5LjUwNDY4QzUgOS4yMTQwNCA1LjIyNTk1IDkgNS41MDQ2OCA5Wk04LjUwNDY4IDlIOS40OTUzMkM5Ljc4NTk2IDkgMTAgOS4yMjU5NiAxMCA5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SAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+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===tb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===eb.id)}get sortedCounters(){return this.format.split(Xy).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(Xy)}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?rb(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=Ky[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}#dt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#Vo.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Uo(),this.#Ro(),this.#ko(),this.#Yo(),setTimeout(()=>this.#ot(),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"]})}#Ro(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#ct.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ut;#ct(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#pt()),(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.#ht(),t.classList.remove("overlay-hidden")},100)}#ht(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ut?.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.#ut?this.#ut.replaceSync(d):this.#ut=E(d,t)}#pt(){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}#ot(){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.#dt(),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(nb).includes(t)&&(this.format=t,this.#Uo(),this.updateCountersDisplay())}#Uo(){const t=this.getAttribute("format")||this.format||_y,e=nb[t]?t:_y;this.format=e,this.setAttribute("pattern",nb[e].pattern)}#hn(t){t.preventDefault(),this.isSelectAll?(this.#gt(this.countersValue),this.#Mn()):(this.#gt(this.activeCounter.stringValue),this.activeCounter.set("")),this.#dn()}#gt(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=rb(e,this.format);if(i)return this.#Wo(i.month,i.day),this.#ko(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const o=Number(e);o&&this.activeCounter.isInRange(o)&&(this.activeCounter.set(String(o)),setTimeout(()=>this.#dn()))}#bn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#on("true"!==i),lb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():db.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),xb=ot(rp),jb="#00000020",{shadow:Tb}=xb,Db=Ib.cssVarList,vb={[Db.hostWidth]:Ap.width,[Db.hostDirection]:Ap.direction,[Db.iconMargin]:"0.375em",[Db.overlay.marginTop]:Ap.outlineWidth,[Db.overlay.backgroundColor]:Ap.backgroundColor,[Db.overlay.backdropBackgroundColor]:"transparent",[Db.overlay.backdropPointerEvents]:"all",[Db.overlay.boxShadow]:`${Tb.wide.xl} ${jb}, ${Tb.narrow.xl} ${jb}`,[Db.overlay.outlineWidth]:"0",[Db.overlay.outlineColor]:"transparent",[Db.overlay.outlineStyle]:"none",[Db.overlay.padding]:"0",[Db.overlay.bottomNavTopPadding]:"0",[Db.overlay.bottomNavBottomPadding]:"0.75em",[Db.overlay.bottomNavHorizontalPadding]:"1em",[Db.overlay.bottomNavAlignment]:"space-between",[Db.overlay.bottomNavGap]:"0.5em",[Db.overlay.navButtonPadding]:"0",[Db.overlay.navButtonOutlineWidth]:"0",[Db.rtlInputDirection]:"ltr",[Db.rtlInputAlignment]:"right",[Db.errorMessageIcon]:Ap.errorMessageIcon,[Db.errorMessageIconSize]:Ap.errorMessageIconSize,[Db.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Db.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Db.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Db.errorMessageFontSize]:Ap.errorMessageFontSize,[Db.labelFontWeight]:Ap.labelFontWeight,[Db.inputValueFontWeight]:Ap.inputValueFontWeight,[Db.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Db.helperTextFontWeight]:Ap.helperTextFontWeight,[Db.errorMessageFontWeight]:Ap.errorMessageFontWeight};var zb=Object.freeze({__proto__:null,default:vb,vars:Db});const Cb=[31,29,31,30,31,30,31,31,30,31,30,31],Sb=["January","February","March","April","May","June","July","August","September","October","November","December"],Lb=w("month-day-field-picker"),wb=["initial-value","picker-months","st-host-direction","disabled","full-width"],Ab=zt({componentName:Lb,baseSelector:"div"}),fb=(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:Eb,monthInput:kb,dayInput:Ob,inputsRow:Vb}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},Wb=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...Eb,property:"padding"},inputsRowGap:{...Vb,property:"gap"},inputWidth:[{...kb,property:"width"},{...Ob,property:"width"}]}}),ht,gt)(class extends Ab{static get observedAttributes(){return[].concat(Ab.observedAttributes||[],wb)}#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>Cb[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>Cb[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:Sb})(this.getAttribute("picker-months"))}#vn(){this.#Cn(),this.monthInput.addEventListener("input",this.#Ln.bind(this))}#zn(){this.dayInput.addEventListener("input",this.#wn.bind(this))}#Cn(){fb(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=Cb[this.#Nn-1]??0;fb((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):"")})}#Ln(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#Nn&&(this.month=i)}#wn(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{}}}),Ub=Wb.cssVarList,Rb={[Ub.fontFamily]:Ap.fontFamily,[Ub.fontSize]:Ap.fontSize,[Ub.hostDirection]:Ap.direction,[Ub.inputWidth]:"130px",[Ub.pickerPadding]:"1em 1em",[Ub.inputsRowGap]:"0.5em",_fullWidth:{[Ub.hostWidth]:"100%"}};var Yb=Object.freeze({__proto__:null,default:Rb,vars:Ub});const Qb={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}},Bb=Object.keys(Qb).map(t=>`data-operator-label-${t}`),Pb={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"]},Zb=(t,e)=>({id:t,...e[t]||{}}),Fb=(t,e,i,o=Qb)=>{const n=((i||Pb)[t]||[]).map(t=>Zb(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)||Zb(e,o),...i}}):n},Gb=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,Qb[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},Hb=(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))},Jb=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):[]},$b=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var qb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const _b=w("filter-row"),Xb=["text","number","email"],Kb=["boolean","singleselect"],tN=t=>!t||Xb.includes(t),eN=t=>Kb.includes(t),iN=t=>"multiselect"===t,oN=()=>new Promise(t=>setTimeout(t)),{host:nN}={host:{selector:()=>":host"}},rN=T(pt({mappings:{hostWidth:{...nN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...nN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>jo.componentName,property:jo.cssVarList.hostDirection},{selector:()=>Rh.componentName,property:Rh.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>jo.componentName,property:jo.cssVarList.hostWidth},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostWidth},{selector:()=>Rh.componentName,property:Rh.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Oo.componentName}.delete-btn[disabled="true"]`,property:Oo.cssVarList.iconColor}}}),gt,t=>class extends t{#Kt=[];#An=null;#fn=!1;#En;#kn;#On;#Vn;#Wn;#Un;#Rn=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",...Bb]}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="${qb}" src-dark="${qb}"></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.#Un=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Qn(),this.#Un.addEventListener("click",()=>this.#Bn("delete")),this.#Bi()}#Bi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Un].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?Fb(t.inputType,t.operators,$b(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.#Rn,n=t.inputType,r=o!==n;this.#Rn=n,this.#_n(t,i,{resetValue:r}),this.#v()}#Gn(){const t=this.#Jn(this.#En.value),e=this.#qn(t).find(t=>t.id===this.#kn.value);this.#_n(t,e),this.#v()}#_n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#Xn(o),tN(o)?this.#Kn(o,n):eN(o)?this.#tr(t,n):iN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!tN(t)),this.#Vn.classList.toggle("hidden",!eN(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:eN(t)?this.#Vn:tN(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 oN(),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 oN(),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 oN(),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:[]):eN(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.#Un.setAttribute("disabled","true"):this.#Un.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}))}})(Nt({componentName:_b,baseSelector:".row"})),sN=w("filter-rows"),{host:aN,container:lN,rowsList:dN,actions:cN,addRowIcon:uN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},pN=T(pt({mappings:{hostWidth:{...aN,property:"width"},hostMinWidth:{...aN,property:"min-width"},hostDirection:[{...aN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>rN.componentName,property:rN.cssVarList.hostDirection}],containerWidth:{...lN,property:"width"},containerPadding:{...lN,property:"padding"},containerGap:{...lN,property:"gap"},listGap:{...dN,property:"gap"},listMaxHeight:{...dN,property:"max-height"},actionsGap:{...cN,property:"gap"},addRowIconSize:[{...uN,property:"width"},{...uN,property:"height"}]}}),gt,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.#Lr())}#Cr(){const t=$b(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(_b).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#wr(t)})}#Ar(){const t=new Set(this.#ze.map(t=>t.id));this.#br.querySelectorAll(_b).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${_b}[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.#Lr(),this.#kr()}#Er(t){const e=document.createElement(_b);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",...Bb]}),this.#wr(e),e}#wr(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)})}#Lr(){const t=1===this.#ze.length&&this.#mr(this.#ze[0]);this.#br.querySelectorAll(_b).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(_b);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#ze=this.#ze.map(e=>e.id===i?t.detail.value:e),this.#Lr(),this.#v()}#zr(t){const e=t.target.closest(_b);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&&Fb(i.inputType,i.operators,$b(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(Gb).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}#Ur(){this.#xr.textContent=this.clearAllButtonLabel}#Rr(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.#Rr(i),"add-button-label"===t&&this.#Wr(),"clear-all-button-label"===t&&this.#Ur(),"max-rows"===t&&this.#kr())}})(Nt({componentName:sN,baseSelector:".container"})),hN=w("filter"),gN=Nt({componentName:hN,baseSelector:"vaadin-popover"}),MN=["add-row-icon","delete-row-icon"],{host:mN,overlay:yN,backdrop:bN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},NN=T(pt({mappings:{hostWidth:{...mN,property:"width"},hostDirection:[{...mN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>pN.componentName,property:pN.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>wc.componentName,property:wc.cssVarList.borderRadius},counterWidth:{selector:()=>wc.componentName,property:wc.cssVarList.hostWidth},counterHeight:{selector:()=>wc.componentName,property:wc.cssVarList.hostHeight},counterFontSize:{selector:()=>wc.componentName,property:wc.cssVarList.fontSize},counterLineHeight:{selector:()=>wc.componentName,property:wc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>wc.componentName,property:wc.cssVarList.backgroundColor},counterTextColor:{selector:()=>wc.componentName,property:wc.cssVarList.textColor},counterBorderColor:{selector:()=>wc.componentName,property:wc.cssVarList.borderColor},counterOffsetX:{selector:()=>zy.componentName,property:zy.cssVarList.offsetX},counterOffsetY:{selector:()=>zy.componentName,property:zy.cssVarList.offsetY},rowsHostWidth:{selector:()=>pN.componentName,property:pN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>pN.componentName,property:pN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>pN.componentName,property:pN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>pN.componentName,property:pN.cssVarList.containerGap},rowsListGap:{selector:()=>pN.componentName,property:pN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>pN.componentName,property:pN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>pN.componentName,property:pN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>pN.componentName,property:pN.cssVarList.addRowIconSize},rowWidth:{...mN,property:rN.cssVarList.hostWidth},rowMinWidth:{...mN,property:rN.cssVarList.hostMinWidth},rowValueWidth:{...mN,property:rN.cssVarList.inputWidth},rowGap:{...mN,property:rN.cssVarList.rowGap},rowDisabledDeleteColor:{...mN,property:rN.cssVarList.deleteDisabledIconColor}}}),kt({name:"overlay",selector:"",mappings:{marginTop:{...yN,property:"margin-top"},width:{...yN},backgroundColor:{...yN},backdropBackgroundColor:{...bN,property:"background-color"},backdropPointerEvents:{...bN,property:"pointer-events"},padding:{...yN},boxShadow:{...yN},borderRadius:{...yN},outlineWidth:{...yN},outlineColor:{...yN},outlineStyle:{...yN}}}),ht,gt)(class extends gN{#Yr=[];#Qr=!1;#ut;#U=null;#Br=null;#Pr=null;static get observedAttributes(){return[...gN.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(sN)||null}init(){super.init?.(),this.#Ro(),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.#ot()})}#Gr(){MN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Br?.isConnected&&Hb(this,this.#Br,[t])})})}#Ro(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#ct.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#ct(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(sN);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",...Bb],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&&Hb(this,this.#Br,MN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#ht(),t.style.setProperty("visibility","visible")},50)}#ht(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ut&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ut));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.#ut=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(Jb(t))),this.#Qr=!1}#Jr(t){const e=Jb(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.#U&&t.setAttribute("data",JSON.stringify(this.#U))}get value(){return JSON.stringify(this.#Yr)}set value(t){this.#qr(t)}set data(t){this.#U=Array.isArray(t)?t:null,this.filterRowsElement&&this.#U&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#U))}get data(){return this.#U}#ot(){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=Jb(t),this.#Zr(),this.#Qr||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Yr)))}#Xr(t){if(t)try{this.#U=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#U))}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())}}),IN=ot(rp),xN="#00000020",{shadow:jN}=IN,TN=NN.cssVarList,DN={[TN.counterBorderRadius]:"50%",[TN.counterWidth]:"1.5em",[TN.counterHeight]:"1.5em",[TN.counterFontSize]:"0.5em",[TN.counterLineHeight]:"2.25em",[TN.counterBackgroundColor]:IN.colors.primary.main,[TN.counterTextColor]:IN.colors.primary.contrast,[TN.counterOffsetX]:"-0.725em",[TN.counterOffsetY]:"0",_fullWidth:{[TN.hostWidth]:"100%"},[TN.overlay.backgroundColor]:IN.colors.surface.main,[TN.overlay.backdropBackgroundColor]:"transparent",[TN.overlay.backdropPointerEvents]:"all",[TN.overlay.boxShadow]:`${jN.wide.xl} ${xN}, ${jN.narrow.xl} ${xN}`,[TN.overlay.borderRadius]:rp.radius.xs,[TN.overlay.outlineWidth]:"0",[TN.overlay.outlineColor]:"transparent",[TN.overlay.outlineStyle]:"none",[TN.overlay.padding]:"0",[TN.rowsHostWidth]:"100%",[TN.rowsContainerWidth]:"100%",[TN.rowsContainerPadding]:IN.spacing.lg,[TN.rowsContainerGap]:IN.spacing.md,[TN.rowsListGap]:IN.spacing.sm,[TN.rowsListMaxHeight]:"400px",[TN.rowsActionsGap]:IN.spacing.md,[TN.rowsAddRowIconSize]:"1.25em",[TN.rowWidth]:"100%",[TN.rowMinWidth]:"30em",[TN.rowValueWidth]:"100%",[TN.rowGap]:IN.spacing.md,[TN.rowDisabledDeleteColor]:IN.colors.surface.light};var vN=Object.freeze({__proto__:null,default:DN,vars:TN});const zN=Kt("input-wrapper"),CN=Ce(tp),[SN,LN,wN]=Ve({labelTextColor:CN.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:CN.colors.surface.contrast,placeholderTextColor:CN.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:CN.colors.surface.dark,errorMessageTextColor:CN.colors.error.main,successMessageTextColor:CN.colors.success.main,borderWidth:CN.border.xs,borderRadius:CN.radius.xs,borderColor:"transparent",outlineWidth:CN.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:CN.colors.surface.main,fontFamily:CN.fonts.font1.family,direction:CN.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:CN.border.xs,borderColor:CN.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:CN.colors.error.main}},_focused:{outlineColor:CN.colors.surface.light,_invalid:{outlineColor:CN.colors.error.main}},_disabled:{labelTextColor:CN.colors.surface.light,borderColor:CN.colors.surface.light,valueTextColor:CN.colors.surface.light,placeholderTextColor:CN.colors.surface.light,helperTextColor:CN.colors.surface.light,backgroundColor:CN.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},zN);var AN=Object.freeze({__proto__:null,default:SN,refs:LN,vars:wN});const fN=Ce(tp),EN=ps.cssVarList,kN={[EN.hostWidth]:LN.width,[EN.hostMinWidth]:LN.minWidth,[EN.hostDirection]:LN.direction,[EN.fontSize]:LN.fontSize,[EN.fontFamily]:LN.fontFamily,[EN.labelFontSize]:LN.labelFontSize,[EN.labelFontWeight]:LN.labelFontWeight,[EN.inputValueFontWeight]:LN.inputValueFontWeight,[EN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[EN.helperTextFontWeight]:LN.helperTextFontWeight,[EN.errorMessageFontWeight]:LN.errorMessageFontWeight,[EN.labelTextColor]:LN.labelTextColor,[EN.errorMessageTextColor]:LN.errorMessageTextColor,[EN.inputHorizontalPadding]:LN.horizontalPadding,[EN.inputHeight]:LN.inputHeight,[EN.inputBackgroundColor]:LN.backgroundColor,[EN.labelRequiredIndicator]:LN.requiredIndicator,[EN.inputValueTextColor]:LN.valueTextColor,[EN.inputPlaceholderTextColor]:LN.placeholderTextColor,[EN.inputBorderWidth]:LN.borderWidth,[EN.inputBorderStyle]:LN.borderStyle,[EN.inputBorderColor]:LN.borderColor,[EN.inputBorderRadius]:LN.borderRadius,[EN.inputOutlineWidth]:LN.outlineWidth,[EN.inputOutlineStyle]:LN.outlineStyle,[EN.inputOutlineColor]:LN.outlineColor,[EN.inputOutlineOffset]:LN.outlineOffset,[EN.revealButtonOffset]:fN.spacing.md,[EN.revealButtonSize]:LN.toggleButtonSize,[EN.revealButtonColor]:LN.placeholderTextColor,[EN.labelPosition]:LN.labelPosition,[EN.labelTopPosition]:LN.labelTopPosition,[EN.labelHorizontalPosition]:LN.labelHorizontalPosition,[EN.inputTransformY]:LN.inputTransformY,[EN.inputTransition]:LN.inputTransition,[EN.marginInlineStart]:LN.marginInlineStart,[EN.placeholderOpacity]:LN.placeholderOpacity,[EN.inputVerticalAlignment]:LN.inputVerticalAlignment,[EN.valueInputHeight]:LN.valueInputHeight,[EN.errorMessageIcon]:LN.errorMessageIcon,[EN.errorMessageIconSize]:LN.errorMessageIconSize,[EN.errorMessageIconPadding]:LN.errorMessageIconPadding,[EN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[EN.errorMessageIconPosition]:LN.errorMessageIconPosition,[EN.errorMessageFontSize]:LN.errorMessageFontSize};var ON=Object.freeze({__proto__:null,default:kN,vars:EN});const VN=fr.cssVarList,WN={[VN.hostWidth]:LN.width,[VN.hostMinWidth]:LN.minWidth,[VN.hostDirection]:LN.direction,[VN.fontSize]:LN.fontSize,[VN.fontFamily]:LN.fontFamily,[VN.labelFontSize]:LN.labelFontSize,[VN.labelFontWeight]:LN.labelFontWeight,[VN.inputValueFontWeight]:LN.inputValueFontWeight,[VN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[VN.helperTextFontWeight]:LN.helperTextFontWeight,[VN.errorMessageFontWeight]:LN.errorMessageFontWeight,[VN.labelTextColor]:LN.labelTextColor,[VN.errorMessageTextColor]:LN.errorMessageTextColor,[VN.inputValueTextColor]:LN.valueTextColor,[VN.inputPlaceholderColor]:LN.placeholderTextColor,[VN.inputBorderWidth]:LN.borderWidth,[VN.inputBorderStyle]:LN.borderStyle,[VN.inputBorderColor]:LN.borderColor,[VN.inputBorderRadius]:LN.borderRadius,[VN.inputOutlineWidth]:LN.outlineWidth,[VN.inputOutlineStyle]:LN.outlineStyle,[VN.inputOutlineColor]:LN.outlineColor,[VN.inputOutlineOffset]:LN.outlineOffset,[VN.inputBackgroundColor]:LN.backgroundColor,[VN.labelRequiredIndicator]:LN.requiredIndicator,[VN.inputHorizontalPadding]:LN.horizontalPadding,[VN.inputHeight]:LN.inputHeight,[VN.labelPosition]:LN.labelPosition,[VN.labelTopPosition]:LN.labelTopPosition,[VN.labelHorizontalPosition]:LN.labelHorizontalPosition,[VN.inputTransformY]:LN.inputTransformY,[VN.inputTransition]:LN.inputTransition,[VN.marginInlineStart]:LN.marginInlineStart,[VN.placeholderOpacity]:LN.placeholderOpacity,[VN.inputVerticalAlignment]:LN.inputVerticalAlignment,[VN.valueInputHeight]:LN.valueInputHeight,[VN.valueInputMarginBottom]:LN.valueInputMarginBottom,[VN.errorMessageIcon]:LN.errorMessageIcon,[VN.errorMessageIconSize]:LN.errorMessageIconSize,[VN.errorMessageIconPadding]:LN.errorMessageIconPadding,[VN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[VN.errorMessageIconPosition]:LN.errorMessageIconPosition,[VN.errorMessageFontSize]:LN.errorMessageFontSize};var UN=Object.freeze({__proto__:null,default:WN,vars:VN});const RN=Tr.cssVarList,YN={[RN.hostWidth]:LN.width,[RN.hostMinWidth]:LN.minWidth,[RN.hostDirection]:LN.direction,[RN.fontSize]:LN.fontSize,[RN.fontFamily]:LN.fontFamily,[RN.labelFontSize]:LN.labelFontSize,[RN.labelFontWeight]:LN.labelFontWeight,[RN.inputValueFontWeight]:LN.inputValueFontWeight,[RN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[RN.helperTextFontWeight]:LN.helperTextFontWeight,[RN.errorMessageFontWeight]:LN.errorMessageFontWeight,[RN.labelTextColor]:LN.labelTextColor,[RN.errorMessageTextColor]:LN.errorMessageTextColor,[RN.inputValueTextColor]:LN.valueTextColor,[RN.labelRequiredIndicator]:LN.requiredIndicator,[RN.inputPlaceholderColor]:LN.placeholderTextColor,[RN.inputBorderWidth]:LN.borderWidth,[RN.inputBorderStyle]:LN.borderStyle,[RN.inputBorderColor]:LN.borderColor,[RN.inputBorderRadius]:LN.borderRadius,[RN.inputOutlineWidth]:LN.outlineWidth,[RN.inputOutlineStyle]:LN.outlineStyle,[RN.inputOutlineColor]:LN.outlineColor,[RN.inputOutlineOffset]:LN.outlineOffset,[RN.inputBackgroundColor]:LN.backgroundColor,[RN.inputHorizontalPadding]:LN.horizontalPadding,[RN.inputHeight]:LN.inputHeight,[RN.labelPosition]:LN.labelPosition,[RN.labelTopPosition]:LN.labelTopPosition,[RN.labelHorizontalPosition]:LN.labelHorizontalPosition,[RN.inputTransformY]:LN.inputTransformY,[RN.inputTransition]:LN.inputTransition,[RN.marginInlineStart]:LN.marginInlineStart,[RN.placeholderOpacity]:LN.placeholderOpacity,[RN.inputVerticalAlignment]:LN.inputVerticalAlignment,[RN.valueInputHeight]:LN.valueInputHeight,[RN.valueInputMarginBottom]:LN.valueInputMarginBottom,[RN.errorMessageIcon]:LN.errorMessageIcon,[RN.errorMessageIconSize]:LN.errorMessageIconSize,[RN.errorMessageIconPadding]:LN.errorMessageIconPadding,[RN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[RN.errorMessageIconPosition]:LN.errorMessageIconPosition,[RN.errorMessageFontSize]:LN.errorMessageFontSize};var QN=Object.freeze({__proto__:null,default:YN,vars:RN});const BN=js.cssVarList,PN={[BN.hostWidth]:LN.width,[BN.hostMinWidth]:LN.minWidth,[BN.hostDirection]:LN.direction,[BN.fontSize]:LN.fontSize,[BN.fontFamily]:LN.fontFamily,[BN.labelFontSize]:LN.labelFontSize,[BN.labelFontWeight]:LN.labelFontWeight,[BN.inputValueFontWeight]:LN.inputValueFontWeight,[BN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[BN.helperTextFontWeight]:LN.helperTextFontWeight,[BN.errorMessageFontWeight]:LN.errorMessageFontWeight,[BN.labelTextColor]:LN.labelTextColor,[BN.labelRequiredIndicator]:LN.requiredIndicator,[BN.errorMessageTextColor]:LN.errorMessageTextColor,[BN.inputBackgroundColor]:LN.backgroundColor,[BN.inputValueTextColor]:LN.valueTextColor,[BN.inputPlaceholderTextColor]:LN.placeholderTextColor,[BN.inputBorderRadius]:LN.borderRadius,[BN.inputBorderWidth]:LN.borderWidth,[BN.inputBorderStyle]:LN.borderStyle,[BN.inputBorderColor]:LN.borderColor,[BN.inputOutlineWidth]:LN.outlineWidth,[BN.inputOutlineStyle]:LN.outlineStyle,[BN.inputOutlineColor]:LN.outlineColor,[BN.inputOutlineOffset]:LN.outlineOffset,[BN.inputResizeType]:"vertical",[BN.inputMinHeight]:"5em",[BN.errorMessageIcon]:LN.errorMessageIcon,[BN.errorMessageIconSize]:LN.errorMessageIconSize,[BN.errorMessageIconPadding]:LN.errorMessageIconPadding,[BN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[BN.errorMessageIconPosition]:LN.errorMessageIconPosition,[BN.errorMessageFontSize]:LN.errorMessageFontSize,textAlign:{right:{[BN.inputTextAlign]:"right"},left:{[BN.inputTextAlign]:"left"},center:{[BN.inputTextAlign]:"center"}},_readonly:{[BN.inputResizeType]:"none"}};var ZN=Object.freeze({__proto__:null,default:PN,vars:BN});const FN=zi.cssVarList,GN="1.35em",HN={[FN.hostWidth]:LN.width,[FN.hostDirection]:LN.direction,[FN.fontSize]:LN.fontSize,[FN.fontFamily]:LN.fontFamily,[FN.labelTextColor]:LN.labelTextColor,[FN.labelRequiredIndicator]:LN.requiredIndicator,[FN.labelFontWeight]:"400",[FN.labelLineHeight]:GN,[FN.labelSpacing]:"1em",[FN.errorMessageTextColor]:LN.errorMessageTextColor,[FN.inputOutlineWidth]:LN.outlineWidth,[FN.inputOutlineOffset]:LN.outlineOffset,[FN.inputOutlineColor]:LN.outlineColor,[FN.inputOutlineStyle]:LN.outlineStyle,[FN.inputBorderRadius]:LN.borderRadius,[FN.inputBorderColor]:LN.borderColor,[FN.inputBorderWidth]:LN.borderWidth,[FN.inputBorderStyle]:LN.borderStyle,[FN.inputBackgroundColor]:LN.backgroundColor,[FN.inputSize]:GN,[FN.inputValueTextColor]:LN.valueTextColor,[FN.errorMessageIcon]:LN.errorMessageIcon,[FN.errorMessageIconSize]:LN.errorMessageIconSize,[FN.errorMessageIconPadding]:LN.errorMessageIconPadding,[FN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[FN.errorMessageIconPosition]:LN.errorMessageIconPosition,[FN.errorMessageFontSize]:LN.errorMessageFontSize};var JN=Object.freeze({__proto__:null,default:HN,vars:FN});const $N="2px",qN=Ce(tp),_N=qi.cssVarList,XN={[_N.hostWidth]:LN.width,[_N.hostDirection]:LN.direction,[_N.fontSize]:LN.fontSize,[_N.fontFamily]:LN.fontFamily,[_N.inputOutlineWidth]:LN.outlineWidth,[_N.inputOutlineOffset]:LN.outlineOffset,[_N.inputOutlineColor]:LN.outlineColor,[_N.inputOutlineStyle]:LN.outlineStyle,[_N.trackBorderStyle]:LN.borderStyle,[_N.trackBorderWidth]:LN.borderWidth,[_N.trackBorderColor]:LN.borderColor,[_N.trackBackgroundColor]:LN.backgroundColor,[_N.trackBorderRadius]:qN.radius.md,[_N.trackWidth]:"2.5em",[_N.trackHeight]:"1.25em",[_N.knobSize]:`calc(1em - ${$N})`,[_N.knobRadius]:"50%",[_N.knobTopOffset]:"1px",[_N.knobLeftOffset]:$N,[_N.knobColor]:LN.labelTextColor,[_N.knobTransitionDuration]:"0.3s",[_N.labelTextColor]:LN.labelTextColor,[_N.labelFontWeight]:"400",[_N.labelLineHeight]:"1.35em",[_N.labelSpacing]:"1em",[_N.labelRequiredIndicator]:LN.requiredIndicator,[_N.errorMessageTextColor]:LN.errorMessageTextColor,[_N.errorMessageIcon]:LN.errorMessageIcon,[_N.errorMessageIconSize]:LN.errorMessageIconSize,[_N.errorMessageIconPadding]:LN.errorMessageIconPadding,[_N.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[_N.errorMessageIconPosition]:LN.errorMessageIconPosition,[_N.errorMessageFontSize]:LN.errorMessageFontSize,_checked:{[_N.trackBorderColor]:LN.borderColor,[_N.knobLeftOffset]:`calc(100% - var(${_N.knobSize}) - ${$N})`,[_N.knobColor]:LN.valueTextColor,[_N.knobTextColor]:LN.valueTextColor},_disabled:{[_N.knobColor]:qN.colors.surface.light,[_N.trackBorderColor]:qN.colors.surface.light,[_N.trackBackgroundColor]:qN.colors.surface.main,[_N.labelTextColor]:LN.labelTextColor,_checked:{[_N.knobColor]:qN.colors.surface.light,[_N.trackBackgroundColor]:qN.colors.surface.main}},_invalid:{[_N.trackBorderColor]:qN.colors.error.main,[_N.knobColor]:qN.colors.error.main}};var KN=Object.freeze({__proto__:null,default:XN,vars:_N});const tI=Ce(tp),eI=ao.cssVarList,[iI,oI,nI]=Ve({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:rI}=oI,sI={...iI,[eI.itemsGrow]:"0",[eI.hostWidth]:"100%",[eI.hostHeight]:"auto",[eI.boxShadow]:"none",[eI.backgroundColor]:tI.colors.surface.main,[eI.backgroundImage]:"",[eI.backgroundPositionX]:"center",[eI.backgroundPositionY]:"center",[eI.backgroundSize]:"cover",[eI.backgroundRepeat]:"no-repeat",[eI.color]:tI.colors.surface.contrast,[eI.borderRadius]:"0px",[eI.hostDirection]:tI.direction,[eI.borderStyle]:"none",[eI.borderWidth]:"unset",[eI.borderColor]:"unset",verticalPadding:{sm:{[eI.verticalPadding]:"5px"},md:{[eI.verticalPadding]:"10px"},lg:{[eI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[eI.horizontalPadding]:"5px"},md:{[eI.horizontalPadding]:"10px"},lg:{[eI.horizontalPadding]:"20px"}},direction:{row:{[eI.flexDirection]:"row",[eI.alignItems]:oI.verticalAlignment,[eI.justifyContent]:oI.horizontalAlignment,[eI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[nI.horizontalAlignment]:"space-between"}}},column:{[eI.flexDirection]:"column",[eI.alignItems]:oI.horizontalAlignment,[eI.justifyContent]:oI.verticalAlignment,verticalAlignment:{spaceBetween:{[nI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[eI.gap]:"10px"},md:{[eI.gap]:"20px"},lg:{[eI.gap]:"30px"}},shadow:{sm:{[eI.boxShadow]:`${tI.shadow.wide.sm} ${rI}, ${tI.shadow.narrow.sm} ${rI}`},md:{[eI.boxShadow]:`${tI.shadow.wide.md} ${rI}, ${tI.shadow.narrow.md} ${rI}`},lg:{[eI.boxShadow]:`${tI.shadow.wide.lg} ${rI}, ${tI.shadow.narrow.lg} ${rI}`},xl:{[eI.boxShadow]:`${tI.shadow.wide.xl} ${rI}, ${tI.shadow.narrow.xl} ${rI}`},"2xl":{[nI.shadowColor]:"#00000050",[eI.boxShadow]:`${tI.shadow.wide["2xl"]} ${rI}`}},"&borderRadius":{sm:{[eI.borderRadius]:tI.radius.sm},md:{[eI.borderRadius]:tI.radius.md},lg:{[eI.borderRadius]:tI.radius.lg},xl:{[eI.borderRadius]:tI.radius.xl},"2xl":{[eI.borderRadius]:tI.radius["2xl"]},"3xl":{[eI.borderRadius]:tI.radius["3xl"]}}},aI={...eI,...nI};var lI=Object.freeze({__proto__:null,default:sI,vars:aI});const dI=zr.cssVarList,cI={[dI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var uI=Object.freeze({__proto__:null,default:cI,vars:dI});const pI=Sr.cssVarList,hI={[pI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var gI=Object.freeze({__proto__:null,default:hI,vars:pI});const MI=wr.cssVarList,mI={[MI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var yI=Object.freeze({__proto__:null,default:mI,vars:MI});const bI=Ce(tp),NI=Ir.cssVarList,[II,xI,jI]=Ve({thickness:"2px",spacing:"10px"},hr),TI={...II,[NI.hostDirection]:bI.direction,[NI.alignItems]:"center",[NI.flexDirection]:"row",[NI.alignSelf]:"stretch",[NI.hostWidth]:"100%",[NI.stripeColor]:bI.colors.surface.light,[NI.stripeColorOpacity]:"0.5",[NI.stripeHorizontalThickness]:xI.thickness,[NI.labelTextWidth]:"fit-content",[NI.labelTextMaxWidth]:"calc(100% - 100px)",[NI.labelTextHorizontalSpacing]:xI.spacing,[NI.textAlign]:"center",_vertical:{[NI.minHeight]:"200px",[NI.flexDirection]:"column",[NI.hostWidth]:"fit-content",[NI.hostPadding]:`0 calc(${xI.thickness} * 3)`,[NI.stripeVerticalThickness]:xI.thickness,[NI.labelTextWidth]:"fit-content",[NI.labelTextMaxWidth]:"100%",[NI.labelTextVerticalSpacing]:xI.spacing}},DI={...NI,...jI};var vI=Object.freeze({__proto__:null,default:TI,vars:DI});const zI=ts.cssVarList,CI={[zI.hostDirection]:LN.direction,[zI.fontFamily]:LN.fontFamily,[zI.fontSize]:LN.fontSize,[zI.labelTextColor]:LN.labelTextColor,[zI.labelRequiredIndicator]:LN.requiredIndicator,[zI.labelFontWeight]:LN.labelFontWeight,[zI.errorMessageTextColor]:LN.errorMessageTextColor,[zI.errorMessageFontWeight]:LN.errorMessageFontWeight,[zI.digitValueTextColor]:LN.valueTextColor,[zI.digitValueFontWeight]:LN.inputValueFontWeight,[zI.digitPadding]:"0",[zI.digitTextAlign]:"center",[zI.digitSpacing]:"4px",[zI.hostWidth]:LN.width,[zI.digitOutlineColor]:"transparent",[zI.digitOutlineWidth]:LN.outlineWidth,[zI.focusedDigitFieldOutlineColor]:LN.outlineColor,[zI.digitSize]:LN.inputHeight,[zI.errorMessageIcon]:LN.errorMessageIcon,[zI.errorMessageIconSize]:LN.errorMessageIconSize,[zI.errorMessageIconPadding]:LN.errorMessageIconPadding,[zI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[zI.errorMessageIconPosition]:LN.errorMessageIconPosition,[zI.errorMessageFontSize]:LN.errorMessageFontSize,size:{xs:{[zI.spinnerSize]:"15px"},sm:{[zI.spinnerSize]:"20px"},md:{[zI.spinnerSize]:"20px"},lg:{[zI.spinnerSize]:"20px"}},_hideCursor:{[zI.digitCaretTextColor]:"transparent"},_loading:{[zI.overlayOpacity]:LN.overlayOpacity}};var SI=Object.freeze({__proto__:null,default:CI,vars:zI});const LI=Ce(tp),wI=eo.cssVarList,AI={[wI.hostDisplay]:"inline-block",[wI.hostWidth]:"100%",[wI.barColor]:LI.colors.surface.contrast,[wI.barWidth]:"20%",[wI.barBackgroundColor]:LI.colors.surface.light,[wI.barBorderRadius]:"4px",[wI.animationDuration]:"2s",[wI.animationTimingFunction]:"linear",[wI.animationIterationCount]:"infinite",[wI.verticalPadding]:"0.25em",size:{xs:{[wI.barHeight]:"2px"},sm:{[wI.barHeight]:"4px"},md:{[wI.barHeight]:"6px"},lg:{[wI.barHeight]:"8px"}},mode:{primary:{[wI.barColor]:LI.colors.primary.main},secondary:{[wI.barColor]:LI.colors.secondary.main}},_hidden:{[wI.hostDisplay]:"none"}};var fI=Object.freeze({__proto__:null,default:AI,vars:wI});const EI=Ce(tp),kI=no.cssVarList,[OI,VI,WI]=Ve({spinnerColor:EI.colors.surface.contrast,mode:{primary:{spinnerColor:EI.colors.primary.main},secondary:{spinnerColor:EI.colors.secondary.main}}},io),UI={...OI,[kI.animationDuration]:"2s",[kI.animationTimingFunction]:"linear",[kI.animationIterationCount]:"infinite",[kI.spinnerBorderStyle]:"solid",[kI.spinnerBorderWidth]:"0.2em",[kI.spinnerBorderRadius]:"50%",[kI.spinnerQuadrant1Color]:VI.spinnerColor,[kI.spinnerQuadrant2Color]:"transparent",[kI.spinnerQuadrant3Color]:VI.spinnerColor,[kI.spinnerQuadrant4Color]:"transparent",size:{xs:{[kI.spinnerSize]:"20px"},sm:{[kI.spinnerSize]:"30px"},md:{[kI.spinnerSize]:"40px"},lg:{[kI.spinnerSize]:"60px"},xl:{[kI.spinnerSize]:"80px"}},_hidden:{[kI.hostDisplay]:"none"}},RI={...kI,...WI};var YI=Object.freeze({__proto__:null,default:UI,vars:RI});const QI=Gs.cssVarList,BI={[QI.hostWidth]:LN.width,[QI.hostDirection]:LN.direction,[QI.fontSize]:LN.fontSize,[QI.fontFamily]:LN.fontFamily,[QI.labelFontSize]:LN.labelFontSize,[QI.labelFontWeight]:LN.labelFontWeight,[QI.inputValueFontWeight]:LN.inputValueFontWeight,[QI.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[QI.helperTextFontWeight]:LN.helperTextFontWeight,[QI.errorMessageFontWeight]:LN.errorMessageFontWeight,[QI.labelTextColor]:LN.labelTextColor,[QI.labelRequiredIndicator]:LN.requiredIndicator,[QI.errorMessageTextColor]:LN.errorMessageTextColor,[QI.inputValueTextColor]:LN.valueTextColor,[QI.inputPlaceholderTextColor]:LN.placeholderTextColor,[QI.inputBorderStyle]:LN.borderStyle,[QI.inputBorderWidth]:LN.borderWidth,[QI.inputBorderColor]:LN.borderColor,[QI.inputBorderRadius]:LN.borderRadius,[QI.inputOutlineStyle]:LN.outlineStyle,[QI.inputOutlineWidth]:LN.outlineWidth,[QI.inputOutlineColor]:LN.outlineColor,[QI.inputOutlineOffset]:LN.outlineOffset,[QI.phoneInputWidth]:LN.minWidth,[QI.countryCodeInputWidth]:"5em",[QI.countryCodeDropdownWidth]:"20em",[QI.marginInlineStart]:"-0.25em",[QI.valueInputHeight]:LN.valueInputHeight,[QI.valueInputMarginBottom]:LN.valueInputMarginBottom,[QI.errorMessageIcon]:LN.errorMessageIcon,[QI.errorMessageIconSize]:LN.errorMessageIconSize,[QI.errorMessageIconPadding]:LN.errorMessageIconPadding,[QI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[QI.errorMessageIconPosition]:LN.errorMessageIconPosition,[QI.errorMessageFontSize]:LN.errorMessageFontSize};var PI=Object.freeze({__proto__:null,default:BI,vars:QI});const ZI=da.cssVarList,FI={[ZI.hostWidth]:"16em",[ZI.hostMinWidth]:LN.minWidth,[ZI.hostDirection]:LN.direction,[ZI.fontSize]:LN.fontSize,[ZI.fontFamily]:LN.fontFamily,[ZI.labelFontSize]:LN.labelFontSize,[ZI.labelFontWeight]:LN.labelFontWeight,[ZI.inputValueFontWeight]:LN.inputValueFontWeight,[ZI.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[ZI.helperTextFontWeight]:LN.helperTextFontWeight,[ZI.errorMessageFontWeight]:LN.errorMessageFontWeight,[ZI.labelTextColor]:LN.labelTextColor,[ZI.labelRequiredIndicator]:LN.requiredIndicator,[ZI.errorMessageTextColor]:LN.errorMessageTextColor,[ZI.inputValueTextColor]:LN.valueTextColor,[ZI.inputPlaceholderTextColor]:LN.placeholderTextColor,[ZI.inputBorderStyle]:LN.borderStyle,[ZI.inputBorderWidth]:LN.borderWidth,[ZI.inputBorderColor]:LN.borderColor,[ZI.inputBorderRadius]:LN.borderRadius,[ZI.inputOutlineStyle]:LN.outlineStyle,[ZI.inputOutlineWidth]:LN.outlineWidth,[ZI.inputOutlineColor]:LN.outlineColor,[ZI.inputOutlineOffset]:LN.outlineOffset,[ZI.labelPosition]:LN.labelPosition,[ZI.labelTopPosition]:LN.labelTopPosition,[ZI.labelHorizontalPosition]:LN.labelHorizontalPosition,[ZI.inputTransformY]:LN.inputTransformY,[ZI.inputTransition]:LN.inputTransition,[ZI.marginInlineStart]:LN.marginInlineStart,[ZI.valueInputHeight]:LN.valueInputHeight,[ZI.valueInputMarginBottom]:LN.valueInputMarginBottom,[ZI.inputHorizontalPadding]:"0",[ZI.errorMessageIcon]:LN.errorMessageIcon,[ZI.errorMessageIconSize]:LN.errorMessageIconSize,[ZI.errorMessageIconPadding]:LN.errorMessageIconPadding,[ZI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[ZI.errorMessageIconPosition]:LN.errorMessageIconPosition,[ZI.errorMessageFontSize]:LN.errorMessageFontSize,_fullWidth:{[ZI.hostWidth]:LN.width}};var GI=Object.freeze({__proto__:null,default:FI,vars:ZI});const HI=Ce(tp),JI=Aa.cssVarList,$I={[JI.hostWidth]:LN.width,[JI.hostMinWidth]:LN.minWidth,[JI.hostDirection]:LN.direction,[JI.fontSize]:LN.fontSize,[JI.fontFamily]:LN.fontFamily,[JI.labelFontSize]:LN.labelFontSize,[JI.labelFontWeight]:LN.labelFontWeight,[JI.inputValueFontWeight]:LN.inputValueFontWeight,[JI.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[JI.helperTextFontWeight]:LN.helperTextFontWeight,[JI.errorMessageFontWeight]:LN.errorMessageFontWeight,[JI.labelTextColor]:LN.labelTextColor,[JI.spaceBetweenInputs]:"1em",[JI.errorMessageTextColor]:LN.errorMessageTextColor,[JI.policyPreviewBackgroundColor]:"none",[JI.policyPreviewPadding]:HI.spacing.lg,[JI.valueInputHeight]:LN.valueInputHeight,[JI.errorMessageIcon]:LN.errorMessageIcon,[JI.errorMessageIconSize]:LN.errorMessageIconSize,[JI.errorMessageIconPadding]:LN.errorMessageIconPadding,[JI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[JI.errorMessageIconPosition]:LN.errorMessageIconPosition,[JI.errorMessageFontSize]:LN.errorMessageFontSize,_required:{[JI.inputsRequiredIndicator]:LN.requiredIndicator}};var qI=Object.freeze({__proto__:null,default:$I,vars:JI});const _I=il.cssVarList,XI={[_I.hostDirection]:LN.direction,[_I.labelTextColor]:LN.labelTextColor,[_I.fontFamily]:LN.fontFamily,[_I.iconSize]:"2em",[_I.hostPadding]:"0.75em",[_I.gap]:"0.5em",[_I.fontSize]:"16px",[_I.titleFontWeight]:"500",[_I.lineHeight]:"1em",[_I.borderWidth]:LN.borderWidth,[_I.borderColor]:LN.borderColor,[_I.borderRadius]:LN.borderRadius,[_I.borderStyle]:"dashed",_required:{[_I.requiredIndicator]:LN.requiredIndicator},size:{xs:{[_I.hostHeight]:"196px",[_I.hostWidth]:"200px",[_I.titleFontSize]:"0.875em",[_I.descriptionFontSize]:"0.875em",[_I.lineHeight]:"1.25em"},sm:{[_I.hostHeight]:"216px",[_I.hostWidth]:"230px",[_I.titleFontSize]:"1em",[_I.descriptionFontSize]:"0.875em",[_I.lineHeight]:"1.25em"},md:{[_I.hostHeight]:"256px",[_I.hostWidth]:"312px",[_I.titleFontSize]:"1.125em",[_I.descriptionFontSize]:"1em",[_I.lineHeight]:"1.5em"},lg:{[_I.hostHeight]:"280px",[_I.hostWidth]:"336px",[_I.titleFontSize]:"1.125em",[_I.descriptionFontSize]:"1.125em",[_I.lineHeight]:"1.75em"}},_fullWidth:{[_I.hostWidth]:LN.width}};var KI=Object.freeze({__proto__:null,default:XI,vars:_I});const tx=Ce(tp),ex=bl.cssVarList,ix={[ex.hostDirection]:"inherit",[ex.backgroundColor]:tx.colors.surface.main,[ex.labelTextColor]:tx.colors.surface.contrast,[ex.borderColor]:tx.colors.surface.light,[ex.borderStyle]:"solid",[ex.borderRadius]:tx.radius.sm,[ex.outlineColor]:"transparent",[ex.borderWidth]:tx.border.xs,_hover:{[ex.backgroundColor]:tx.colors.surface.highlight},_focused:{[ex.outlineColor]:tx.colors.surface.light},_selected:{[ex.borderColor]:tx.colors.surface.contrast,[ex.backgroundColor]:tx.colors.surface.contrast,[ex.labelTextColor]:tx.colors.surface.main}};var ox=Object.freeze({__proto__:null,default:ix,vars:ex});const nx=Ce(tp),rx=t=>({[t.hostDirection]:LN.direction,[t.fontFamily]:LN.fontFamily,[t.labelTextColor]:LN.labelTextColor,[t.labelRequiredIndicator]:LN.requiredIndicator,[t.itemsSpacing]:nx.spacing.sm,[t.hostWidth]:LN.width,[t.errorMessageTextColor]:LN.errorMessageTextColor,[t.errorMessageIcon]:LN.errorMessageIcon,[t.errorMessageIconSize]:LN.errorMessageIconSize,[t.errorMessageIconPadding]:LN.errorMessageIconPadding,[t.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[t.errorMessageIconPosition]:LN.errorMessageIconPosition,[t.errorMessageFontSize]:LN.errorMessageFontSize}),sx=Ml.cssVarList,ax={...rx(sx)};var lx=Object.freeze({__proto__:null,default:ax,vars:sx});const dx=jl.cssVarList,cx={...rx(dx)};var ux=Object.freeze({__proto__:null,default:cx,vars:dx});const px=Ce(tp),hx=nc.cssVarList,gx={[hx.overlayBackgroundColor]:px.colors.surface.main,[hx.overlayShadow]:px.shadow.wide["2xl"],[hx.overlayWidth]:"540px",[hx.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},Mx={...hx};var mx=Object.freeze({__proto__:null,default:gx,vars:Mx});const yx=Ce(tp),bx=ec.cssVarList,Nx={[bx.hostWidth]:"100%",[bx.hostHeight]:"100%",[bx.hostMinHeight]:"400px",[bx.fontWeight]:"400",[bx.backgroundColor]:yx.colors.surface.main,[bx.fontSize]:LN.fontSize,[bx.fontFamily]:LN.fontFamily,[bx.sortIndicatorsColor]:yx.colors.surface.light,[bx.activeSortIndicator]:yx.colors.surface.dark,[bx.resizeHandleColor]:yx.colors.surface.light,[bx.borderWidth]:LN.borderWidth,[bx.borderStyle]:LN.borderStyle,[bx.borderRadius]:LN.borderRadius,[bx.borderColor]:"transparent",[bx.headerRowTextColor]:yx.colors.surface.dark,[bx.separatorColor]:yx.colors.surface.light,[bx.valueTextColor]:yx.colors.surface.contrast,[bx.selectedBackgroundColor]:yx.colors.surface.highlight,[bx.hostDirection]:yx.direction,[bx.toggleDetailsPanelButtonSize]:"1em",[bx.toggleDetailsPanelButtonOpenedColor]:yx.colors.surface.contrast,[bx.toggleDetailsPanelButtonClosedColor]:yx.colors.surface.light,[bx.toggleDetailsPanelButtonCursor]:"pointer",[bx.detailsPanelBackgroundColor]:yx.colors.surface.highlight,[bx.detailsPanelBorderTopColor]:yx.colors.surface.light,[bx.detailsPanelLabelsColor]:yx.colors.surface.dark,[bx.detailsPanelLabelsFontSize]:"0.8em",[bx.detailsPanelItemsGap]:"2em",[bx.detailsPanelPadding]:"12px 0",_bordered:{[bx.borderColor]:LN.borderColor}};var Ix=Object.freeze({__proto__:null,default:Nx,grid:Nx,vars:bx});const xx=Ce(tp),jx=lc.cssVarList,Tx="#00000020",Dx={[jx.hostMinWidth]:"415px",[jx.fontFamily]:xx.fonts.font1.family,[jx.fontSize]:xx.typography.body1.size,[jx.backgroundColor]:xx.colors.surface.main,[jx.textColor]:xx.colors.surface.contrast,[jx.boxShadow]:`${xx.shadow.wide.xl} ${Tx}, ${xx.shadow.narrow.xl} ${Tx}`,[jx.verticalPadding]:"0.625em",[jx.horizontalPadding]:"1.5em",[jx.borderRadius]:xx.radius.xs,_bordered:{[jx.borderWidth]:xx.border.sm,[jx.borderStyle]:"solid",[jx.borderColor]:"transparent"},size:{xs:{[jx.fontSize]:"12px"},sm:{[jx.fontSize]:"14px"},md:{[jx.fontSize]:"16px"},lg:{[jx.fontSize]:"18px"}},mode:{primary:{[jx.backgroundColor]:xx.colors.primary.main,[jx.textColor]:xx.colors.primary.contrast,[jx.borderColor]:xx.colors.primary.light},success:{[jx.backgroundColor]:xx.colors.success.main,[jx.textColor]:xx.colors.success.contrast,[jx.borderColor]:xx.colors.success.light},error:{[jx.backgroundColor]:xx.colors.error.main,[jx.textColor]:xx.colors.error.contrast,[jx.borderColor]:xx.colors.error.light}}};var vx=Object.freeze({__proto__:null,default:Dx,vars:jx});const zx=Ce(tp),Cx=Dc.cssVarList,Sx={[Cx.hostWidth]:LN.width,[Cx.hostDirection]:LN.direction,[Cx.fontSize]:LN.fontSize,[Cx.fontFamily]:LN.fontFamily,[Cx.separatorFontSize]:"14px",[Cx.labelsFontSize]:"14px",[Cx.labelsLineHeight]:"1",[Cx.labelsMarginBottom]:"6px",[Cx.labelTextColor]:LN.labelTextColor,[Cx.itemMarginBottom]:"1em",[Cx.valueLabelMinWidth]:LN.minWidth,[Cx.attrLabelMinWidth]:`calc(12em + 2 * ${zx.border.xs})`,[Cx.separatorWidth]:"70px",[Cx.removeButtonWidth]:"60px"};var Lx=Object.freeze({__proto__:null,default:Sx,mappingsField:Sx,vars:Cx});const wx=Ce(tp),Ax=Yc.cssVarList,fx={[Ax.labelMinWidth]:"150px",[Ax.hostDirection]:wx.direction,[Ax.contentMinWidth]:`calc(100% - ${Oe(Ax.labelMinWidth)} - ${Oe(Ax.itemsGap)})`,[Ax.badgeMaxWidth]:"85px",[Ax.itemsGap]:"4px",[Ax.hostMinWidth]:"310px",[Ax.hostWidth]:"530px",[Ax.hostMaxWidth]:"100%",[Ax.iconColor]:"currentcolor",_fullWidth:{[Ax.hostWidth]:"100%"}};var Ex=Object.freeze({__proto__:null,default:fx,vars:Ax});const kx=Ce(tp),Ox=$c.cssVarList,Vx={[Ox.hostDirection]:kx.direction,[Ox.itemsGap]:"16px",[Ox.hostMinWidth]:"310px",[Ox.hostWidth]:"530px",[Ox.hostMaxWidth]:"100%",[Ox.iconSize]:"24px",[Ox.iconColor]:"currentcolor",_fullWidth:{[Ox.hostWidth]:"100%"}};var Wx=Object.freeze({__proto__:null,default:Vx,vars:Ox});const Ux=iu.cssVarList,Rx={[Ux.hostWidth]:LN.width,[Ux.hostDirection]:LN.direction,[Ux.groupNameInputMarginBottom]:"1em",[Ux.errorMessageIcon]:LN.errorMessageIcon,[Ux.errorMessageIconSize]:LN.errorMessageIconSize,[Ux.errorMessageIconPadding]:LN.errorMessageIconPadding,[Ux.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[Ux.errorMessageIconPosition]:LN.errorMessageIconPosition,[Ux.errorMessageFontSize]:LN.errorMessageFontSize};var Yx=Object.freeze({__proto__:null,default:Rx,samlGroupMappings:Rx,vars:Ux});const Qx=Ce(tp),Bx=xa.cssVarList,Px={[Bx.fontFamily]:LN.fontFamily,[Bx.fontSize]:LN.labelFontSize,[Bx.textColor]:LN.labelTextColor,[Bx.borderWidth]:LN.borderWidth,[Bx.borderStyle]:LN.borderStyle,[Bx.borderColor]:LN.borderColor,[Bx.borderRadius]:Qx.radius.sm,[Bx.backgroundColor]:"none",[Bx.padding]:"0px",[Bx.labelMargin]:Qx.spacing.sm,[Bx.itemsSpacing]:Qx.spacing.lg,[Bx.itemSymbolDefault]:"'\\2022'",[Bx.itemSymbolSuccess]:"'\\2713'",[Bx.itemSymbolError]:"'\\2A09'",[Bx.itemSymbolSuccessColor]:Qx.colors.success.main,[Bx.itemSymbolErrorColor]:Qx.colors.error.main};var Zx=Object.freeze({__proto__:null,default:Px,vars:Bx});const Fx=Ce(tp),Gx=Ld.cssVarList,Hx="#d73a49",Jx="#6f42c1",$x="#005cc5",qx="#e36209",_x="#6a737d",Xx="#22863a",Kx="#24292e",tj="#f0fff4",ej="#032f62",ij="#ff7b72",oj="#d2a8ff",nj="#79c0ff",rj="#ffa657",sj="#8b949e",aj="#7ee787",lj="#c9d1d9",dj="#f0fff4",cj="#a5d6ff",uj={[Gx.copyButtonSize]:"32px",[Gx.copyButtonBorderRadius]:Fx.radius.xs,[Gx.copyButtonBorderWidth]:Fx.border.xs,[Gx.copyButtonBorderColor]:Fx.colors.surface.light,[Gx.copyButtonBgColor]:Fx.colors.surface.highlight,[Gx.copyButtonHoverBgColor]:Fx.colors.surface.light,[Gx.copyButtonColor]:Fx.colors.surface.contrast,[Gx.rootBgColor]:Fx.colors.surface.main,[Gx.rootTextColor]:Fx.colors.surface.contrast,[Gx.docTagTextColor]:Hx,[Gx.keywordTextColor]:Hx,[Gx.metaKeywordTextColor]:Hx,[Gx.templateTagTextColor]:Hx,[Gx.templateVariableTextColor]:Hx,[Gx.typeTextColor]:Hx,[Gx.variableLanguageTextColor]:Hx,[Gx.titleTextColor]:Jx,[Gx.titleClassTextColor]:Jx,[Gx.titleClassInheritedTextColor]:Jx,[Gx.titleFunctionTextColor]:Jx,[Gx.attrTextColor]:$x,[Gx.attributeTextColor]:$x,[Gx.literalTextColor]:$x,[Gx.metaTextColor]:$x,[Gx.numberTextColor]:$x,[Gx.operatorTextColor]:$x,[Gx.variableTextColor]:$x,[Gx.selectorAttrTextColor]:$x,[Gx.selectorClassTextColor]:$x,[Gx.selectorIdTextColor]:$x,[Gx.regexpTextColor]:ej,[Gx.stringTextColor]:ej,[Gx.metaStringTextColor]:ej,[Gx.builtInTextColor]:qx,[Gx.symbolTextColor]:qx,[Gx.commentTextColor]:_x,[Gx.codeTextColor]:_x,[Gx.formulaTextColor]:_x,[Gx.nameTextColor]:Xx,[Gx.quoteTextColor]:Xx,[Gx.selectorTagTextColor]:Xx,[Gx.selectorPseudoTextColor]:Xx,[Gx.substTextColor]:Kx,[Gx.sectionTextColor]:$x,[Gx.bulletTextColor]:"#735c0f",[Gx.emphasisTextColor]:Kx,[Gx.strongTextColor]:Kx,[Gx.additionTextColor]:Xx,[Gx.additionBgColor]:tj,[Gx.deletionTextColor]:Hx,[Gx.deletionBgColor]:tj},pj={codeSnippet:{[Gx.rootBgColor]:Fx.colors.surface.main,[Gx.rootTextColor]:Fx.colors.surface.contrast,[Gx.docTagTextColor]:ij,[Gx.keywordTextColor]:ij,[Gx.metaKeywordTextColor]:ij,[Gx.templateTagTextColor]:ij,[Gx.templateVariableTextColor]:ij,[Gx.typeTextColor]:ij,[Gx.variableLanguageTextColor]:ij,[Gx.titleTextColor]:oj,[Gx.titleClassTextColor]:oj,[Gx.titleClassInheritedTextColor]:oj,[Gx.titleFunctionTextColor]:oj,[Gx.attrTextColor]:nj,[Gx.attributeTextColor]:nj,[Gx.literalTextColor]:nj,[Gx.metaTextColor]:nj,[Gx.numberTextColor]:nj,[Gx.operatorTextColor]:nj,[Gx.variableTextColor]:nj,[Gx.selectorAttrTextColor]:nj,[Gx.selectorClassTextColor]:nj,[Gx.selectorIdTextColor]:nj,[Gx.regexpTextColor]:cj,[Gx.stringTextColor]:cj,[Gx.metaStringTextColor]:cj,[Gx.builtInTextColor]:rj,[Gx.symbolTextColor]:rj,[Gx.commentTextColor]:sj,[Gx.codeTextColor]:sj,[Gx.formulaTextColor]:sj,[Gx.nameTextColor]:aj,[Gx.quoteTextColor]:aj,[Gx.selectorTagTextColor]:aj,[Gx.selectorPseudoTextColor]:aj,[Gx.substTextColor]:lj,[Gx.sectionTextColor]:nj,[Gx.bulletTextColor]:"#735c0f",[Gx.emphasisTextColor]:lj,[Gx.strongTextColor]:lj,[Gx.additionTextColor]:aj,[Gx.additionBgColor]:dj,[Gx.deletionTextColor]:ij,[Gx.deletionBgColor]:dj}};var hj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:pj,default:uj,vars:Gx});const gj=su.cssVarList,Mj=Ce(tp),mj={[gj.buttonsRowGap]:"9px",[gj.hostWidth]:LN.width,[gj.hostDirection]:LN.direction,[gj.fontSize]:LN.fontSize,[gj.fontFamily]:LN.fontFamily,[gj.labelFontWeight]:LN.labelFontWeight,[gj.labelTextColor]:LN.labelTextColor,[gj.labelRequiredIndicator]:LN.requiredIndicator,[gj.errorMessageTextColor]:LN.errorMessageTextColor,[gj.errorMessageIcon]:LN.errorMessageIcon,[gj.errorMessageIconSize]:LN.errorMessageIconSize,[gj.errorMessageIconPadding]:LN.errorMessageIconPadding,[gj.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[gj.errorMessageIconPosition]:LN.errorMessageIconPosition,[gj.errorMessageFontSize]:LN.errorMessageFontSize,[gj.helperTextColor]:LN.helperTextColor,[gj.itemsLabelColor]:Mj.colors.surface.contrast,[gj.itemsLabelFontWeight]:LN.inputValueFontWeight,[gj.itemsFontFamily]:LN.fontFamily,[gj.itemsRadioCheckedColor]:Mj.colors.surface.light,[gj.itemsRadioBackgroundColor]:Mj.colors.surface.light,[gj.itemsRadioCheckedBackgroundColor]:Mj.colors.surface.contrast,textAlign:{right:{[gj.inputTextAlign]:"right"},left:{[gj.inputTextAlign]:"left"},center:{[gj.inputTextAlign]:"center"}},_fullWidth:{[gj.buttonsSpacing]:"space-between"},_disabled:{[gj.itemsLabelColor]:Mj.colors.surface.light}};var yj=Object.freeze({__proto__:null,default:mj,radioGroup:mj,vars:gj});const bj=nu.cssVarList,Nj=Ce(tp),Ij={[bj.fontFamily]:LN.fontFamily,[bj.labelFontWeight]:LN.inputValueFontWeight,[bj.radioSize]:"calc(1em + 6px)",[bj.radioMargin]:"auto 4px",[bj.radioCheckedSize]:`calc(var(${bj.radioSize})/5)`,[bj.radioCheckedColor]:Nj.colors.surface.light,[bj.radioBackgroundColor]:Nj.colors.surface.light,[bj.radioBorderColor]:"none",[bj.radioBorderWidth]:0,_checked:{[bj.radioBackgroundColor]:Nj.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[bj.fontSize]:"12px"},sm:{[bj.fontSize]:"14px"},md:{[bj.fontSize]:"16px"},lg:{[bj.fontSize]:"18px"}}};var xj=Object.freeze({__proto__:null,default:Ij,radioButton:Ij,vars:bj});const jj=Ce(tp),Tj=fn.cssVarList,Dj={[Tj.fontFamily]:LN.fontFamily,[Tj.fontSize]:LN.fontSize,[Tj.hostDirection]:LN.direction,[Tj.calendarPadding]:"1em",[Tj.topNavVerticalPadding]:"1em",[Tj.topNavAlignment]:"space-between",[Tj.topNavGap]:"0",[Tj.topNavSelectorsGap]:"0.5em",[Tj.bottomNavVerticalPadding]:"0.75em",[Tj.bottomNavHorizontalPadding]:"1.5em",[Tj.bottomNavAlignment]:"space-between",[Tj.bottomNavGap]:"0.5em",[Tj.navMarginBottom]:"0.75em",[Tj.navBorderBottomWidth]:"1px",[Tj.navBorderBottomColor]:jj.colors.surface.highlight,[Tj.navBorderBottomStyle]:"solid",[Tj.yearInputWidth]:"6em",[Tj.monthInputWidth]:"8em",[Tj.navButtonSize]:"24px",[Tj.navButtonCursor]:"pointer",[Tj.weekdayFontSize]:"0.875em",[Tj.weekdayFontWeight]:"500",[Tj.dayHeight]:"3.125em",[Tj.daySize]:"2.125em",[Tj.dayFontSize]:"1em",[Tj.dayRadius]:"50%",[Tj.dayTextAlign]:"center",[Tj.dayPadding]:"0",[Tj.dayTextColor]:jj.colors.surface.contrast,[Tj.dayFontWeight]:"500",[Tj.dayBackgroundColor]:"transparent",[Tj.dayCursor]:"pointer",[Tj.dayBackgroundColorHover]:jj.colors.primary.highlight,[Tj.daySelectedBackgroundColor]:jj.colors.primary.main,[Tj.daySelectedTextdColor]:jj.colors.primary.contrast,[Tj.dayDisabledTextdColor]:jj.colors.surface.light,[Tj.currentDayBorderColor]:jj.colors.surface.light,[Tj.currentDayBorderWidth]:"1px",[Tj.currentDayBorderStyle]:"solid",size:{xs:{[Tj.fontSize]:"12px"},sm:{[Tj.fontSize]:"14px"},md:{[Tj.fontSize]:"16px"},lg:{[Tj.fontSize]:"18px"}},[Tj.navButtonRotation]:"rotate(180deg)",_disabled:{[Tj.navButtonOpacity]:"0.5",[Tj.dayBackgroundColorHover]:"none",[Tj.navButtonCursor]:"default",[Tj.dayCursor]:"default"},_fullWidth:{[Tj.hostWidth]:"100%",[Tj.dayBlockAlign]:"0 auto"}};var vj=Object.freeze({__proto__:null,default:Dj,vars:Tj});const zj=Ce(tp),Cj="#00000020",{shadow:Sj}=zj,Lj=pr.cssVarList,wj={[Lj.hostWidth]:LN.width,[Lj.hostDirection]:LN.direction,[Lj.iconMargin]:"0.375em",[Lj.overlay.marginTop]:`calc(${LN.outlineWidth} + 1px)`,[Lj.overlay.backgroundColor]:LN.backgroundColor,[Lj.overlay.backdropBackgroundColor]:"transparent",[Lj.overlay.backdropPointerEvents]:"all",[Lj.overlay.boxShadow]:`${Sj.wide.xl} ${Cj}, ${Sj.narrow.xl} ${Cj}`,[Lj.overlay.outlineWidth]:"0",[Lj.overlay.outlineColor]:"transparent",[Lj.overlay.outlineStyle]:"none",[Lj.overlay.padding]:"0",[Lj.rtlInputDirection]:"ltr",[Lj.rtlInputAlignment]:"right",[Lj.errorMessageIcon]:LN.errorMessageIcon,[Lj.errorMessageIconSize]:LN.errorMessageIconSize,[Lj.errorMessageIconPadding]:LN.errorMessageIconPadding,[Lj.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[Lj.errorMessageIconPosition]:LN.errorMessageIconPosition,[Lj.errorMessageFontSize]:LN.errorMessageFontSize,[Lj.labelFontWeight]:LN.labelFontWeight,[Lj.inputValueFontWeight]:LN.inputValueFontWeight,[Lj.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[Lj.helperTextFontWeight]:LN.helperTextFontWeight,[Lj.errorMessageFontWeight]:LN.errorMessageFontWeight};var Aj=Object.freeze({__proto__:null,default:wj,vars:Lj});const fj=pu.cssVarList,Ej={[fj.requiredInputBorderColor]:SN._disabled[wN.borderColor],[fj.requiredInputValueTextColor]:SN._disabled[wN.valueTextColor],[fj.hostWidth]:"280px",_fullWidth:{[fj.hostWidth]:"100%"}};var kj=Object.freeze({__proto__:null,default:Ej,vars:fj});const Oj=Ce(tp),Vj=ju.cssVarList,Wj={[Vj.gap]:Oj.spacing.lg,[Vj.arrowsColor]:Oj.colors.surface.dark,[Vj.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[Vj.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[Vj.logoMaxHeight]:"30px",[Vj.logoMaxWidth]:"120px"},sm:{[Vj.logoMaxHeight]:"40px",[Vj.logoMaxWidth]:"160px"},md:{[Vj.logoMaxHeight]:"48px",[Vj.logoMaxWidth]:"200px"},lg:{[Vj.logoMaxHeight]:"60px",[Vj.logoMaxWidth]:"240px"}}};var Uj=Object.freeze({__proto__:null,default:Wj,vars:Vj});const Rj=Cu.cssVarList,Yj={[Rj.hostWidth]:"fit-content",_fullWidth:{[Rj.hostWidth]:"100%"}};var Qj=Object.freeze({__proto__:null,default:Yj,vars:Rj});const Bj=Ou.cssVarList,Pj={[Bj.hostWidth]:"min-content",[Bj.questionCursor]:"pointer",_fullWidth:{[Bj.hostWidth]:"100%"},[Bj.questionFontSize]:LN.fontSize,[Bj.questionFontFamily]:LN.fontFamily};var Zj=Object.freeze({__proto__:null,default:Pj,vars:Bj});const Fj=Bu.cssVarList,Gj={[Fj.hostDirection]:LN.direction,[Fj.labelFontWeight]:LN.labelFontWeight,[Fj.inputValueFontWeight]:LN.inputValueFontWeight,[Fj.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[Fj.helperTextFontWeight]:LN.helperTextFontWeight,[Fj.errorMessageFontWeight]:LN.errorMessageFontWeight,[Fj.errorMessageIcon]:LN.errorMessageIcon,[Fj.errorMessageIconSize]:LN.errorMessageIconSize,[Fj.errorMessageIconPadding]:LN.errorMessageIconPadding,[Fj.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[Fj.errorMessageIconPosition]:LN.errorMessageIconPosition,[Fj.errorMessageFontSize]:LN.errorMessageFontSize,_fullWidth:{[Fj.hostWidth]:"100%"}};var Hj=Object.freeze({__proto__:null,default:Gj,vars:Fj});const Jj=Ce(tp),$j=Gu.cssVarList,qj={[$j.hostDirection]:Jj.direction,[$j.backgroundColor]:"transparent",[$j.iconSize]:"1.35em",[$j.alignItems]:"center",[$j.borderRadius]:Jj.radius.md,[$j.horizontalPadding]:"0",[$j.verticalPadding]:"0",[$j.gap]:"0.5em",[$j.fontSize]:Oe(yp.fontSize),mode:{error:{[$j.textColor]:Jj.colors.error.main,_bordered:{[$j.borderColor]:Jj.colors.error.main}},success:{[$j.textColor]:Jj.colors.success.main,_bordered:{[$j.borderColor]:Jj.colors.success.main}}},spacing:{xs:{[$j.horizontalPadding]:Jj.spacing.xs,[$j.verticalPadding]:Jj.spacing.xs},sm:{[$j.horizontalPadding]:Jj.spacing.sm,[$j.verticalPadding]:Jj.spacing.sm},md:{[$j.horizontalPadding]:Jj.spacing.md,[$j.verticalPadding]:Jj.spacing.md},lg:{[$j.horizontalPadding]:Jj.spacing.lg,[$j.verticalPadding]:Jj.spacing.lg},xl:{[$j.horizontalPadding]:Jj.spacing.xl,[$j.verticalPadding]:Jj.spacing.xl}},textAlign:{left:{[$j.justifyContent]:"left"},center:{[$j.justifyContent]:"center"},right:{[$j.justifyContent]:"right"}},_bordered:{[$j.borderWidth]:Jj.border.xs,[$j.borderColor]:"transparent",[$j.borderStyle]:"solid",[$j.borderWidth]:Jj.border.xs,[$j.borderRadius]:Jj.radius.sm},_fullWidth:{[$j.hostWidth]:"100%"}};var _j=Object.freeze({__proto__:null,default:qj,vars:$j});const Xj=qu.cssVarList,Kj={enabled:{false:{[Xj.maxHeight]:"70px"}}},tT={button:Mp,textField:Jy,password:ON,numberField:UN,emailField:QN,textArea:ZN,checkbox:JN,switchToggle:KN,container:lI,logo:uI,totpImage:gI,notpImage:yI,text:Np,enrichedText:Cp,link:Tp,divider:vI,passcode:SI,loaderRadial:YI,loaderLinear:fI,comboBox:Op,phoneField:PI,phoneInputBoxField:GI,newPassword:qI,inputWrapper:AN,uploadFile:KI,buttonSelectionGroupItem:ox,buttonSelectionGroup:lx,buttonMultiSelectionGroup:ux,modal:mx,grid:Ix,notificationCard:vx,multiSelectComboBox:og,badge:Bp,avatar:Kp,mappingsField:Lx,userAttribute:Ex,userAuthMethod:Wx,samlGroupMappings:Yx,policyValidation:Zx,image:oh,icon:eh,codeSnippet:hj,radioGroup:yj,radioButton:xj,calendar:vj,dateField:Aj,monthDayField:zb,monthDayFieldPicker:Yb,list:Nh,listItem:Th,multiLineMappings:Kh,appsList:ch,scopesList:kj,thirdPartyAppLogo:Uj,securityQuestionsSetup:Qj,securityQuestionsVerify:Zj,hybridField:Hj,alert:_j,autocompleteField:gg,addressField:wg,countrySubdivisionCityField:Iy,timer:Bg,timerButton:nM,passwordStrength:yM,collapsibleContainer:wM,recoveryCodes:BM,activeSessions:XM,hcaptcha:Object.freeze({__proto__:null,default:Kj,vars:Xj}),outboundApps:sm,outboundAppButton:hm,trustedDevices:Tm,multiSso:fm,tooltip:Hm,filter:vN,attachment:wy,userPasskeys:Zy},eT=Object.keys(tT).reduce((t,e)=>({...t,[e]:tT[e].default}),{}),iT=Object.keys(tT).reduce((t,e)=>({...t,[e]:tT[e].vars}),{}),oT={globals:tp,components:eT},nT={globals:ep,components:iT},rT=a()({},oT,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"},warning:{main:"#EF7A33",dark:"#FF985A",light:"#FF6304",highlight:"#C45512",contrast:"#000000"}}},components:{...pj}});customElements.define(Dh,Rh),customElements.define(ZM,$M),customElements.define(ng,class extends rg{static get observedAttributes(){return[].concat(rg.observedAttributes||[],sg)}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:ag,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:ag,disabled:!0}]}async onSearch(t){const e=t.detail.value;if(!e||e.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const i=await this.debouncedSearch(e);i&&i.value===e&&(this.comboBox.loading=!1,i.error?this.comboBox.data=this.#ns():0===i.results?.length?this.comboBox.data=this.#os():this.comboBox.data=i.results||[])}fetchResults(t){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(lg,cg),customElements.define(yg,Dg),customElements.define(vg,Cg);const sT=w("anchored");class aT extends(Nt({componentName:sT,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 lT=T(gt)(aT);customElements.define(sT,lT),customElements.define(Pp,Jp),customElements.define(nh,rh),customElements.define(xy,zy),customElements.define(bM,xM),customElements.define(ty,py),customElements.define(hy,yy),customElements.define(_b,rN),customElements.define(sN,pN),customElements.define(hN,NN),customElements.define(Lb,Wb),customElements.define(sb,Ib),customElements.define(Yh,qh),customElements.define(Dm,Sm),customElements.define(am,dm),customElements.define(KM,om),customElements.define(rM,pM);var dT=Object.freeze({__proto__:null,PasswordStrengthClass:pM,componentName:rM});const cT=w("ponyhot"),uT="dhp-",pT=Nt({componentName:cT,baseSelector:""}),hT=T(gt)(class extends pT{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=`${uT}${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(uT)&&e!==i?t.set.call(this,`${uT}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(cT,hT),customElements.define(AM,WM),customElements.define(fg,Ug),customElements.define(Pg,tM),customElements.define(Em,Um),customElements.define(mm,Im),customElements.define(Oy,Qy);const gT={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}};m.u2.setOptions(gT);var MT=Object.freeze({__proto__:null,default:m.K1,options:gT})}}]);
1
+ "use strict";(self.webpackChunk_descope_flow_components_3_23_2_1791810568581=self.webpackChunk_descope_flow_components_3_23_2_1791810568581||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Ib,$y:()=>Bu,A8:()=>Dc,Ag:()=>il,C1:()=>Yc,C9:()=>jo,Cz:()=>cc,Er:()=>Jp,G6:()=>nT,HO:()=>qi,HT:()=>eo,J1:()=>Oo,Jr:()=>Yi,Lg:()=>Gu,MN:()=>ps,Mz:()=>Aa,NF:()=>Gs,O7:()=>xM,Od:()=>ju,QW:()=>nc,Qb:()=>WM,R3:()=>Sm,SE:()=>ao,SQ:()=>Lo,T$:()=>Qy,T1:()=>hT,TV:()=>qu,U6:()=>$M,Ul:()=>da,VN:()=>Ld,VX:()=>Sr,_w:()=>ke,a5:()=>rT,bL:()=>pr,bU:()=>Cg,br:()=>U,dS:()=>NN,dX:()=>rh,dq:()=>Im,du:()=>qh,e7:()=>Se,eA:()=>wc,eo:()=>Ml,ew:()=>ge,fp:()=>jl,gZ:()=>pu,h5:()=>om,jH:()=>wr,k0:()=>Ir,l1:()=>no,lZ:()=>Wb,md:()=>zr,ml:()=>Bt,mq:()=>iu,o9:()=>fr,o_:()=>Ee,pp:()=>$c,px:()=>Ou,q:()=>zy,q4:()=>zi,qn:()=>Co,rG:()=>Cu,sK:()=>wi,tD:()=>ec,tS:()=>su,td:()=>Rh,tl:()=>ts,ul:()=>Fa,v_:()=>Tr,w8:()=>Xn,wt:()=>xa,xO:()=>js,xp:()=>yu,xs:()=>fn,yW:()=>dm,yi:()=>Um,yj:()=>tM,zQ:()=>oT,zZ:()=>yy});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(1399),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(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)},L=t=>async e=>{const i=await t(e);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})},w=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},U=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}},R=.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,R):Q(t,.4),G=(t,e)=>Z(t)?Q(t,R):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=>`\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`,tt=t=>A(I,...t),et=(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},it=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,it(n,[...e,o],i)),{}),ot=(t,e)=>it(t,[],t=>et({},t,`var(${tt(t)})`)),nt=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),rt=(t,e)=>{const i=it(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=A(e,n),s={[n]:r},a={[n]:nt(r)};return{theme:et({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},st=t=>`${t}__override`,at=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${st(t)}, ${o})`:o};let lt=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 dt=(t,e="fallback")=>j(t,e),ct=(t,e,{fallback:i})=>{if(!i)return{};const o=dt(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,...ct(n,o,i)}},ut=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=A(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:st(n)},ct(o,n,e[o]))},{}),pt=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...ut(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 U.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=U.currentThemeName,this.onThemeChange?.(U.currentThemeName)}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=U.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 lt,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=dt(e,t?.suffix);return at(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,at(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?.()}}},ht=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?.()}},gt=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}))}},mt=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})})}},yt=["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"],bt=t=>class extends t{init(){super.init?.(),v(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>yt.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?`)}),{})}},Nt=({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(gt,mt,bt,Mt)(i)};function It(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const xt=t=>class extends t{#v=It.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)})}},jt=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,It.call(this,"blur"),It.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(It.call(this,"focus"),It.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,It.call(this,"input",{bubbles:!0,composed:!0})))})}},Tt=["required","pattern"],Dt=Symbol("validationTarget"),vt=t=>class extends t{#C=Dt;static get observedAttributes(){return[...t.observedAttributes||[],...Tt]}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""}}#L(){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===Dt?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.#L())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Tt.includes(t)&&this.#L()}init(){super.init?.(),this.addEventListener("change",this.#L),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#L),setTimeout(()=>this.#L())}},zt=(...t)=>T(vt,xt,bt,jt)(Nt(...t)),Ct="FETCH_RESULTS_ERROR",St=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#w()}checkConnectorValidity(){this.isValid=this.#w()}#w(){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(Nt({componentName:t,baseSelector:e})){#A=It.bind(this,"blur");#f=It.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},wt=["invalid","required"],At=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ft=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(vt(r)){static get observedAttributes(){return[...r.observedAttributes||[],...wt]}#E;#v=It.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=At(t)||At(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]})}}},Et=t=>T(ft(t),pt({componentNameOverride:w("input-wrapper")})),kt=({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=pt({mappings:i,style:o})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:ut(s?j(r.componentName,"_"+s):r.componentName,i)}}#O;constructor(){const t=L(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);if(!e||!t.shadowRoot)return i;const o=await L(()=>i)(t);return D(e)?e(o):o.querySelector(e)});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;f(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},Ot=()=>!0,Vt=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,Wt=({itemRenderer:t=Vt,validateSchema:e=Ot,slotName:i,rerenderAttrsList:o=[],targetSelector:n,sortFn:r=t=>t})=>s=>class extends s{#U=[];#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.#R&&this.#R.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.#R&&this.#R.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#U=t,this.#B())}get data(){return this.#U}init(){super.init?.(),this.#R=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=({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()}},Rt=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Yt=w("enriched-text");class Qt extends(Nt({componentName:Yt,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(Rt)}#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 Bt=T(pt({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:{}}}),pt({componentNameOverride:w("link")}),pt({componentNameOverride:w("text")}),Ut({triggers:[{attr:"full-width",value:"true"}]}),ht,gt)(Qt),Pt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),Zt=(...t)=>Pt(t.filter(t=>!!t).join("-")),Ft=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),Gt=t=>"function"==typeof t,Ht="descope",Jt="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})},qt=(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})},_t=(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))})},Xt=(t,e,i)=>{$t(t,_t(t,e),i),$t(e,_t(e,t),i)},Kt=t=>Zt(Ht,t),te=(...t)=>`--${Zt(...t)}`,ee=(t,e,i={})=>{$t(t,_t(t,e,i.mapAttrs),i)},ie=(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)},oe=.4,ne=.25,re=.1,se=(t,e)=>t.darken(e).hex(),ae=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},le=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),de=t=>t.luminosity()<.01,ce=t=>t.luminosity()>.99,ue=(t,e)=>"dark"===e?ce(t)?se(t,ne):le(t,oe):de(t)?le(t,ne):se(t,oe),pe=(t,e)=>"dark"===e?de(t)?le(t,ne):se(t,oe):ce(t)?se(t,ne):le(t,oe),he=(t,e)=>"dark"===e?de(t)?le(t,re):se(t,.8):ce(t)?se(t,re):le(t,.8),ge=(t,e)=>{const i=new(d())(t.main||t);return{main:i.hex(),dark:t.dark||ue(i,e),light:t.light||pe(i,e),highlight:t.highlight||he(i,e),contrast:t.contrast||ae(i)}},Me=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,me=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,ye=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,be=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,Ne=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,Ie=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,xe=(t,e)=>`\n ${me(t)}\n ${be(t)}\n ${Ne(t)}\n ${ye(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 ${Ie(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`,je=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`,Te=t=>te(Ht,...t),De=(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},ve=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,ve(n,[...e,o],i)),{}),ze=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}},Ce=(t,e)=>ve(t,[],t=>De({},t,`var(${Te(t)})`)),Se=(t,e="")=>{const i=Object.entries((t=>ve(t,[],(t,e)=>({[Te(t)]:ze(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},Le="@container",we="$breakpoints",Ae=t=>t.startsWith("$breakpoints."),fe=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(Le))(e)?`${t}${e} {\n${fe(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),Ee=t=>{const e=(t=>ve(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===we)return{};const r=n.pop(),s=Kt(o);"undefined"===r&&console.warn(s,`theme value: "${i}" is mapped to an invalid property`);const a=Jt,l=t[o]?.[we]||{},d=n.filter(Ae),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>Ae(t)?`${Le} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!Ae(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+`[${Pt(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+`[${Pt(r)}="${n.splice(i+1,1).join("")}"]`.repeat(s)},""),h=":host"+(p?`(${p})`:""),g=u.reduceRight((t,e)=>({[e]:t}),{[h]:{[r]:ze(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]:fe(o[e])}),{})})},{})},ke=({globals:t,components:e},i)=>({globals:Se(t,i),components:Ee(e)}),Oe=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),Ve=(t,e)=>{const i=ve(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=te(e,n),s={[n]:r},a={[n]:Oe(r)};return{theme:De({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},We=t=>`${t}__override`,Ue=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${We(t)}, ${o})`:o};class Re{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 Ye=(t,e="fallback")=>Zt(t,e),Qe=(t,e,{fallback:i})=>{if(!i)return{};const o=Ye(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,...Qe(n,o,i)}},Be=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=te(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:We(n)},Qe(o,n,e[o]))},{}),Pe=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...Be(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o=Jt,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=>Zt("st",i,t))}get#h(){return U.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=U.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=te(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 Re,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Ye(e,t?.suffix);return Ue(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:Pt(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=te(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>Gt(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),Gt(i)?i():i,Ue(a,l,!0)+(r?"!important":""))})}),o.toString()})(Zt(n,this.#a),this.#c,t);E(e,this.#d,{prepend:!0})}}#I(){const t=Gt(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?.()}}},Ze=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?.()}},Fe=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()}},Ge=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},He=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})})}},Je=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value","loading"],$e=t=>class extends t{init(){super.init?.(),$t(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>Je.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?`)}),{})}},qe=({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 Ft(Fe,He,$e,Ge)(i)};function _e(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const Xe=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(qe({componentName:t,baseSelector:e})){#A=_e.bind(this,"blur");#f=_e.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((Gt(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#A()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),ie(this.baseElement,this,s),Xt(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},Ke=["required","pattern"],ti=Symbol("validationTarget"),ei=t=>class extends t{#C=ti;static get observedAttributes(){return[...t.observedAttributes||[],...Ke]}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""}}#L(){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===ti?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.#L())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Ke.includes(t)&&this.#L()}init(){super.init?.(),this.addEventListener("change",this.#L),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#L),setTimeout(()=>this.#L())}},ii=["invalid","required"],oi=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ni=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(ei(r)){static get observedAttributes(){return[...r.observedAttributes||[],...ii]}#E;#v=_e.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=oi(t)||oi(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),ee(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]})}}},ri=t=>Ft(ni(t),Pe({componentNameOverride:Kt("input-wrapper")})),si=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Pe({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Be(Zt(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;ee(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},ai=t=>class extends t{#v=_e.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)})}},li=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,_e.call(this,"blur"),_e.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(_e.call(this,"focus"),_e.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,_e.call(this,"input",{bubbles:!0,composed:!0})))})}},di=({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#tt=[];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),Xt(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.#tt.forEach(t=>clearTimeout(t)),this.#tt.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.#tt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#tt.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})}},ci=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},ui=(...t)=>Ft(ei,ai,$e,li)(qe(...t)),pi=Kt("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"),ee(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),ie(this.inputElement,this,["checked"]),Xt(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${Bt.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${Bt.cssVarList.hostDirection}: var(${t.hostDirection});\n}\n\n`;const yi=Kt("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=Ft(Pe({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"}]}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,Mi)(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(zi.cssVarList)}\n ${Me(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=w("text");class Si extends(Nt({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:Li}={host:{selector:()=>":host"}},wi=T(pt({mappings:{hostWidth:{...Li,property:"width"},hostDirection:{...Li,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Ut({triggers:[{attr:"full-width",value:"true"}]}),ht,gt)(Si),Ai=w("link"),fi=["href","readonly"];class Ei extends(Nt({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:()=>wi.componentName}},{anchor:Oi,text:Vi,host:Wi,wrapper:Ui,link:Ri}=ki,Yi=T(pt({mappings:{hostWidth:{...Wi,property:"width"},hostDirection:{...Vi,property:"direction"},textAlign:Ui,textDecoration:{...Ri,property:"text-decoration",fallback:"none"},textColor:[{...Oi,property:"color"},{...Vi,property:wi.cssVarList.textColor}],cursor:Oi}}),Ut({triggers:[{attr:"full-width",value:"true"}]}),ht,gt)(Ei);customElements.define(Ci,wi),customElements.define(Ai,Yi),customElements.define(Yt,Bt),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?.(),ee(this,this.checkbox,{includeAttrs:hi}),Xt(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=Kt("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=Ft(Pe({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"}}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,Mi)(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${mi(qi.cssVarList)}\n\t\t\t${Me(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=Kt("loader-linear");class Xi extends(qe({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=Ft(Pe({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]}}),Ze,Fe)(Xi);customElements.define(_i,eo);const io=Kt("loader-radial");class oo extends(qe({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=Ft(Pe({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:{}}}),Ze,Fe)(oo);customElements.define(io,no);const ro=Kt("container");class so extends(qe({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=Ft(Pe({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:{}}}),Ze,Fe)(so);customElements.define(ro,ao);const lo=w("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(pt({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}}}),ht,kt({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"]}}),Et({proxyProps:["selectionStart"],inputEvent:"value-changed"}),t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},gt,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#et=({displayName:t,value:e,label:i})=>`<span data-name="${i}" data-id="${e}">${t||i}</span>`;#U;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#et}set renderItem(t){this.#et=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.#U)return this.#U;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.#U=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.#U||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)}}})}#it(){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)}#ot(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#nt(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#rt(){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.#nt(),this.#rt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#ot()}),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#it.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)}#st(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#at(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.#st(t);this.#at(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 ${K("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=w("image"),vo=["src","src-dark"];class zo extends(Nt({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(pt({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),ht,gt)(zo),So=w("icon"),Lo=T(pt({mappings:{fill:[{},{property:Co.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),ht,gt)(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})),wo=w("button"),{host:Ao,label:fo,slottedIcon:Eo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let ko;const Oo=T(Ut({triggers:[{attr:"full-width",value:"true"}]}),pt({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:Lo.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()}},ht,gt)(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:wo})),{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(wo,Oo);const Uo=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Ro=Uo[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(Uo.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=Kt("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:Ln,yearInput:wn,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=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({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:{...wn,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"},{...Ln,property:"transform"}],navButtonOpacity:[{...zn,property:"opacity"},{...Cn,property:"opacity"}]}}),Ze,Fe)(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=>ee(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=>ee(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:Un,inputMask:Rn,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:[{...Un,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:{...Un,property:"direction"},inputBackgroundColor:[{...Wn,property:"background-color"},{...Rn,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:[{...Un,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:[{...Un,property:"padding-left"},{...Un,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:[{...Un,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:[{...Un,property:"height"},{...Fn,property:"height"}],valueInputMarginBottom:[{...Un,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:[{...Un,property:"-webkit-text-security"},{...Un,property:"text-security"},{...Fn,property:"-webkit-text-security"},{...Fn,property:"text-security"}]};const qn=w("text-field"),_n=["type","label-type","copy-to-clipboard"],Xn=T(pt({mappings:$n}),ht,Et({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),gt,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 ${K("vaadin-text-field")}\n\t\t\t${$(Xn.cssVarList)}\n\t\t\t${((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`)("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{#U=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.#U}set data(t){this.#U=Object.freeze(t),this.onChange?.()}get#lt(){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.#lt<this.max?Math.max(this.#lt+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#lt>this.min?Math.min(this.#lt-(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=Kt("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=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({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}}}),si({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}}}),Ze,Fe)(class extends er{epoch="";format=Ro;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.#dt()};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()}#dt(){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.#ot()},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)),ee(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.#ct.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ut;#ct(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#pt()),(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.#ht(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#ht(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ut?.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.#ut?this.#ut.replaceSync(d):this.#ut=E(d,t)}#pt(){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}#ot(){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.#dt()}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))),ee(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||Ro;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.#gt(this.countersValue),this.resetToInitialState()):(this.#gt(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#gt(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=Kt("divider");class gr extends(qe({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"),ee(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const Mr=wi.cssVarList,{host:mr,before:yr,after:br,text:Nr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},Ir=Ft(Pe({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"}]}}),Ze,Fe)(gr);customElements.define(hr,Ir);const xr=Kt("email-field"),jr="email",Tr=Ft(Pe({mappings:$n}),Ze,di({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),ri({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Fe,t=>class extends t{get acceptsUnicode(){return"false"!==this.getAttribute("accept-unicode")}init(){super.init?.(),this.baseElement.setAttribute("pattern","^[\\w\\.\\%\\+\\-']+@[\\w\\.\\-]+\\.[A-Za-z]{2,}$"),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()}enableUnicode(){this.baseElement.setAttribute("pattern","^[\\p{L}\\p{M}\\p{N}._%+'\\-]+@[\\p{L}\\p{M}\\p{N}.\\-]+\\.[\\p{L}\\p{M}][\\p{L}\\p{M}\\p{N}\\-]+$"),this.baseElement._setType("text"),this.externalInput&&(this.externalInput.type="text"),this.getAttribute("inputmode")||this.setAttribute("inputmode",jr),this.externalInput?.setAttribute("inputmode",jr)}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})))}})(Xe({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(${Tr.cssVarList.inputOutlineWidth}) + var(${Tr.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${je("vaadin-email-field")}\n\t\t\t${Me(Tr.cssVarList)}\n\t\t\t${xe("vaadin-email-field",Tr.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:xr}));customElements.define(xr,Tr);const Dr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(qe({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=Ft(Pe({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),Ze,Fe)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},vr=Kt("logo"),zr=Dr({componentName:vr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(vr,zr);const Cr=Kt("totp-image"),Sr=Dr({componentName:Cr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Cr,Sr);const Lr=Kt("notp-image"),wr=Dr({componentName:Lr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Lr,wr);const Ar=Kt("number-field"),fr=Ft(Pe({mappings:$n}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe)(Xe({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(${fr.cssVarList.inputOutlineWidth}) + var(${fr.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${je("vaadin-number-field")}\n\t\t\t${Me(fr.cssVarList)}\n\t\t\t${xe("vaadin-number-field",fr.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:Ar}));customElements.define(Ar,fr);const Er="--descope-input-mask-content",kr="--descope-input-mask-display",Or="--descope-input-mask-fallback",Vr=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},Wr=t=>t.replace(/\D/g,"")||"",Ur=(t,e)=>{e?(t.style.setProperty(Er,`"${e}"`),t.style.setProperty(kr,"flex")):(t.style.removeProperty(Er),t.style.removeProperty(kr))},Rr=Kt("passcode-internal"),Yr=["digits","loading"],Qr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Br=ui({componentName:Rr,baseSelector:"div"}),Pr=Kt("passcode"),Zr=["digits"],{host:Fr,digitField:Gr,label:Hr,requiredIndicator:Jr,internalWrapper:$r,focusedDigitField:qr,errorMessage:_r}={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)"}},Xr=Xn.cssVarList,Kr=no.cssVarList,ts=Ft(Pe({mappings:{fontSize:[{...Gr,property:Xr.fontSize},Fr],hostWidth:{property:"width"},hostDirection:{...Fr,property:"direction"},fontFamily:[Fr,{...Hr}],labelFontWeight:{...Hr,property:"font-weight"},errorMessageFontWeight:{..._r,property:"font-weight"},digitValueFontWeight:{selector:Xn.componentName,property:Xr.inputValueFontWeight},labelTextColor:[{...Hr,property:"color"},{...Hr,property:"-webkit-text-fill-color"},{...Jr,property:"color"},{...Jr,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Jr,property:"content"},errorMessageTextColor:{..._r,property:"color"},errorMessageIcon:{..._r,property:"background-image"},errorMessageIconSize:{..._r,property:"background-size"},errorMessageIconPadding:{..._r,property:"padding-inline-start"},errorMessageIconRepeat:{..._r,property:"background-repeat"},errorMessageIconPosition:{..._r,property:"background-position"},errorMessageFontSize:{..._r,property:"font-size"},digitValueTextColor:{selector:Xn.componentName,property:Xr.inputValueTextColor},digitSize:[{...Gr,property:"height"},{...Gr,property:"width"}],digitPadding:{...Gr,property:Xr.inputHorizontalPadding},digitTextAlign:{...Gr,property:Xr.inputTextAlign},digitCaretTextColor:{...Gr,property:Xr.inputCaretTextColor},digitSpacing:{...$r,property:"gap"},digitOutlineColor:{...Gr,property:Xr.inputOutlineColor},digitOutlineWidth:{...Gr,property:Xr.inputOutlineWidth},focusedDigitFieldOutlineColor:{...qr,property:Xr.inputOutlineColor},overlayOpacity:{...$r,property:"opacity"},spinnerSize:{selector:no.componentName,property:Kr.spinnerSize}}}),Ze,ci,ri({proxyProps:["value","selectionStart"]}),Fe,t=>class extends t{static get observedAttributes(){return Zr.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 <${Rr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${Rr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Rr),ee(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)}})(Xe({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(${Xr.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 ${je("vaadin-text-field")}\n\t\t\t${be("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Pr}));customElements.define(Rr,class extends Br{static get observedAttributes(){return Yr.concat(Br.observedAttributes||[])}constructor(){super(),this.innerHTML='\n\t\t<div class="wrapper"></div>\n\t\t<div class="loader-container">\n <descope-loader-radial size="xs" mode="primary"></descope-loader-radial>\n </div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper"),this.loaderContainer=this.querySelector(".loader-container")}renderInputs(){const t=[...Array(this.digits).keys()].map(t=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${t}\n\t\t\ttype="tel"\n\t\t\tautocomplete="one-time-code"\n\t\t\tinputMode="numeric"\n\t\t></descope-text-field>\n\t`);this.wrapperEle.innerHTML=t.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(t){t?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:t})=>t).join("")||""}set value(t){t!==this.value&&this.parseInputValue(this.inputs[0],Wr(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}Vr(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 ${Or}: '';\n content: var(${Er}, var(${Or}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${kr}, none);\n align-items: center;\n justify-content: center;\n }`,t);const e=r()(e=>{this.parseInputValue(t,e),Ur(t)},0,{trailing:!0});let i=!1;t.addEventListener("input",o=>{t.value=Wr(t.value),t.value&&Ur(t,t.value[0]);const n="deleteContentBackward"===o?.inputType||i;i=!1,n&&Vr(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,Vr(this.getPrevInput(t))):(i=!1,1===o.length&&(t.value=""))},ee(this,t,{includeAttrs:Qr}),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&&Yr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Pr,ts);const es=Kt("password"),{host:is,inputField:os,inputElement:ns,inputElementPlaceholder:rs,revealButtonContainer:ss,revealButtonIcon:as,label:ls,requiredIndicator:ds,errorMessage:cs,helperText:us}={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)"}},ps=Ft(Pe({mappings:{hostWidth:{...is,property:"width"},hostMinWidth:{...is,property:"min-width"},hostDirection:{...is,property:"direction"},fontSize:[{},is],fontFamily:[ls,os,cs,us],inputHeight:{...os,property:"height"},inputHorizontalPadding:[{...ns,property:"padding-left"},{...ns,property:"padding-right"}],inputBackgroundColor:{...os,property:"background-color"},inputBorderStyle:{...os,property:"border-style"},inputBorderWidth:{...os,property:"border-width"},inputBorderColor:{...os,property:"border-color"},inputBorderRadius:{...os,property:"border-radius"},inputOutlineColor:{...os,property:"outline-color"},inputOutlineStyle:{...os,property:"outline-style"},inputOutlineOffset:{...os,property:"outline-offset"},inputOutlineWidth:{...os,property:"outline-width"},labelFontSize:{...ls,property:"font-size"},labelFontWeight:{...ls,property:"font-weight"},inputValueFontWeight:[{...ns,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...rs,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...us,property:"font-weight"},errorMessageFontWeight:{...cs,property:"font-weight"},labelTextColor:[{...ls,property:"color"},{...ls,property:"-webkit-text-fill-color"},{...ds,property:"color"},{...ds,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...ds,property:"content"},errorMessageTextColor:{...cs,property:"color"},errorMessageIcon:{...cs,property:"background-image"},errorMessageIconSize:{...cs,property:"background-size"},errorMessageIconPadding:{...cs,property:"padding-inline-start"},errorMessageIconRepeat:{...cs,property:"background-repeat"},errorMessageIconPosition:{...cs,property:"background-position"},errorMessageFontSize:{...cs,property:"font-size"},inputPlaceholderTextColor:[{...rs,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...ns,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...ss,property:"margin-right"},{...ss,property:"margin-left"}],revealButtonSize:{...ss,property:"font-size"},revealButtonColor:{...as,property:"color"},labelPosition:{...ls,property:"position"},labelTopPosition:{...ls,property:"top"},labelHorizontalPosition:[{...ls,property:"left"},{...ls,property:"right"}],inputTransformY:{...ls,property:"transform"},inputTransition:{...ls,property:"transition"},marginInlineStart:{...ls,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...ns,property:"opacity"}],inputVerticalAlignment:{...os,property:"align-items"},valueInputHeight:{...ns,property:"height"}}}),Ze,di({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),ri({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Fe,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")}})(Xe({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${Me(ps.cssVarList)}\n\t\t\t${be("vaadin-password-field")}\n ${je("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(${ps.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:es}));customElements.define(es,ps);const hs=Kt("text-area"),{host:gs,label:Ms,placeholder:ms,inputField:ys,textArea:bs,requiredIndicator:Ns,helperText:Is,errorMessage:xs}={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)"}},js=Ft(Pe({mappings:{hostWidth:{...gs,property:"width"},hostMinWidth:{...gs,property:"min-width"},hostDirection:{...gs,property:"direction"},fontSize:[gs,bs],fontFamily:[Ms,ys,Is,xs],labelFontSize:{...Ms,property:"font-size"},labelFontWeight:{...Ms,property:"font-weight"},inputValueFontWeight:{...bs,property:"font-weight"},inputPlaceholderFontWeight:{...ms,property:"font-weight"},helperTextFontWeight:{...Is,property:"font-weight"},errorMessageFontWeight:{...xs,property:"font-weight"},labelTextColor:[{...Ms,property:"color"},{...Ms,property:"-webkit-text-fill-color"},{...Ns,property:"color"}],labelRequiredIndicator:{...Ns,property:"content"},errorMessageTextColor:{...xs,property:"color"},errorMessageIcon:{...xs,property:"background-image"},errorMessageIconSize:{...xs,property:"background-size"},errorMessageIconPadding:{...xs,property:"padding-inline-start"},errorMessageIconRepeat:{...xs,property:"background-repeat"},errorMessageIconPosition:{...xs,property:"background-position"},errorMessageFontSize:{...xs,property:"font-size"},inputBackgroundColor:{...ys,property:"background-color"},inputValueTextColor:{...bs,property:"color"},inputPlaceholderTextColor:{...ms,property:"color"},inputBorderWidth:{...ys,property:"border-width"},inputBorderStyle:{...ys,property:"border-style"},inputBorderColor:{...ys,property:"border-color"},inputBorderRadius:{...ys,property:"border-radius"},inputOutlineStyle:{...ys,property:"outline-Style"},inputOutlineColor:{...ys,property:"outline-color"},inputOutlineOffset:{...ys,property:"outline-offset"},inputOutlineWidth:{...ys,property:"outline-width"},inputResizeType:{...bs,property:"resize"},inputMinHeight:{...bs,property:"min-height"},inputTextAlign:{...bs,property:"text-align"}}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe)(Xe({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 ${je("vaadin-text-area")}\n\t\t\t${Me(js.cssVarList)}\n\t\t\t${me("vaadin-text-area")}\n\t\t\t${ye("vaadin-text-area")}\n\t\t\t${Ne("vaadin-text-area","textarea")}\n\t\t\t${be("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:hs}));customElements.define(hs,js);var Ts=[{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 Ds=({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`,vs=Kt("phone-field-internal"),zs=["disabled","size","bordered","readonly"],Cs=["country-input-placeholder","default-code","restrict-countries"],Ss=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],Ls=["label-type","country-input-label","label"],ws={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},As=[].concat(zs,Cs,Ss,Ls),fs=ui({componentName:vs,baseSelector:"div"});customElements.define(vs,class extends fs{static get observedAttributes(){return[].concat(fs.observedAttributes||[],As)}#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 ${Ts.map(t=>Ds(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],ee(this,this.comboBox,{includeAttrs:["label-type"]}),ee(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=Ts.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(As.includes(t)){const e=ws[t]||t;zs.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):Cs.includes(t)?this.comboBox.setAttribute(e,i):Ss.includes(t)&&this.textField.setAttribute(e,i)}Ls.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?Ts.filter(e=>t.includes(e.code)):Ts;this.querySelector("descope-combo-box").innerHTML=e.map(t=>Ds(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=ws[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 Es=Xn.cssVarList,ks=jo.cssVarList,Os=Kt("phone-field"),{host:Vs,label:Ws,requiredIndicator:Us,inputField:Rs,internalAfter:Ys,countryCodeInput:Qs,phoneInput:Bs,separator:Ps,errorMessage:Zs,helperText:Fs}={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)"}},Gs=Ft(Pe({mappings:{fontSize:[Vs,Rs,{selector:Xn.componentName,property:Xn.cssVarList.fontSize},{selector:jo.componentName,property:jo.cssVarList.fontSize}],fontFamily:[Ws,Zs,Fs,{...Qs,property:jo.cssVarList.overlay.fontFamily}],hostWidth:[{...Vs,property:"width"},{...Bs,property:"width"},{...Qs,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Vs,property:"direction"},inputBorderStyle:[{...Ys,property:"border-style"},{...Ps,property:"border-left-style"}],inputBorderWidth:[{...Ys,property:"border-width"},{...Ps,property:"border-left-width"}],inputBorderColor:[{...Ys,property:"border-color"},{...Ps,property:"border-left-color"}],inputBorderRadius:[{...Rs,property:"border-radius"},{...Ys,property:"border-radius"}],countryCodeInputWidth:{...Qs,property:ks.hostWidth},countryCodeDropdownWidth:{...Qs,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Bs,property:"width"},horizontalPadding:[{...Bs,property:"padding-left"},{...Bs,property:"padding-right"},{...Qs,property:"padding-left"},{...Qs,property:"padding-right"}],labelFontSize:{...Ws,property:"font-size"},labelFontWeight:{...Ws,property:"font-weight"},inputValueFontWeight:[{...Bs,property:Es.inputValueFontWeight},{...Qs,property:ks.inputValueFontWeight}],inputPlaceholderFontWeight:{...Bs,property:Es.inputPlaceholderFontWeight},helperTextFontWeight:{...Fs,property:"font-weight"},errorMessageFontWeight:{...Zs,property:"font-weight"},labelTextColor:[{...Ws,property:"color"},{...Ws,property:"-webkit-text-fill-color"},{...Us,property:"color"}],labelRequiredIndicator:{...Us,property:"content"},errorMessageTextColor:{...Zs,property:"color"},errorMessageIcon:{...Zs,property:"background-image"},errorMessageIconSize:{...Zs,property:"background-size"},errorMessageIconPadding:{...Zs,property:"padding-inline-start"},errorMessageIconRepeat:{...Zs,property:"background-repeat"},errorMessageIconPosition:{...Zs,property:"background-position"},errorMessageFontSize:{...Zs,property:"font-size"},inputValueTextColor:[{...Bs,property:Es.inputValueTextColor},{...Qs,property:ks.inputValueTextColor}],inputPlaceholderTextColor:{...Bs,property:Es.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:ks.overlayItemBackgroundColor},inputOutlineStyle:{...Rs,property:"outline-style"},inputOutlineColor:{...Rs,property:"outline-color"},inputOutlineWidth:{...Rs,property:"outline-width"},inputOutlineOffset:{...Rs,property:"outline-offset"},valueInputHeight:[{...Qs,property:ks.valueInputHeight}],valueInputMarginBottom:[{...Bs,property:Es.valueInputMarginBottom}],marginInlineStart:[{...Bs,property:Es.marginInlineStart},{...Qs,property:ks.marginInlineStart}]}}),Ze,ci,ri({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ts}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${vs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${vs}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(vs),ee(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"))}})(Xe({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${Me(Gs.cssVarList)}\n\t\t\t${be("vaadin-text-field")}\n\t\t\t${Ie("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(${Gs.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${ks.inputOutlineWidth}: 0;\n\t\t\t\t${ks.inputOutlineOffset}: 0;\n\t\t\t\t${ks.inputBorderWidth}: 0;\n\t\t\t\t${ks.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${Es.inputOutlineWidth}: 0;\n\t\t\t\t${Es.inputOutlineOffset}: 0;\n\t\t\t\t${Es.inputBorderWidth}: 0;\n\t\t\t\t${Es.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 ${je("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Os}));customElements.define(Os,Gs);const Hs=Kt("phone-field-internal-input-box"),Js=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],$s={"phone-input-placeholder":"placeholder","phone-input-type":"type"},qs=ui({componentName:Hs,baseSelector:"div"});customElements.define(Hs,class extends qs{static get observedAttributes(){return[].concat(qs.observedAttributes||[],Js)}#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"),Ts.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.#Lt();const t=this.#wt();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&&Js.includes(t)){const e=$s[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}#Lt(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Vt(this.textField.value),e=this.#ft(t);return[this.defaultDialCode,e].join("-")}#wt(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#ft(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#ft(t){return t.replace(/\D/g,"")}#Vt(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#It(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#zt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Et(t){if(t=t.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const e=/^[+\d-\(\)]+$/;t=t.split("").filter(t=>e.test(t)).join("")}return t}#Ot(t=""){const e=this.defaultCode||this.#Wt(t);return e?(this.#Mt&&this.#Mt.country===e||(this.#Mt=new p.Q(e)),this.#Mt.reset(),this.#Mt.input(t)||t):t}#Wt(t){const e=(0,u.l)(t);return e?.country||""}#kt(t){return!!(t=>{const e=t.match(/\(/g),i=t.match(/\)/g);return e?.length===i?.length})(t)}});const _s=Xn.cssVarList,Xs=Kt("phone-input-box-field"),{host:Ks,label:ta,inputElement:ea,requiredIndicator:ia,inputField:oa,internalComponent:na,internalComponentAfter:ra,phoneInput:sa,errorMessage:aa,helperText:la}={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)"}},da=Ft(Pe({mappings:{fontSize:[Ks,oa,{selector:Xn.componentName,property:Xn.cssVarList.fontSize}],fontFamily:[ta,aa,la],hostWidth:{...Ks,property:"width"},hostMinWidth:{...Ks,property:"min-width"},hostDirection:{...Ks,property:"direction"},inputHorizontalPadding:[{...sa,property:"padding-left"},{...sa,property:"padding-right"}],labelFontSize:{...ta,property:"font-size"},labelFontWeight:{...ta,property:"font-weight"},inputValueFontWeight:{...sa,property:_s.inputValueFontWeight},inputPlaceholderFontWeight:{...sa,property:_s.inputPlaceholderFontWeight},helperTextFontWeight:{...la,property:"font-weight"},errorMessageFontWeight:{...aa,property:"font-weight"},labelTextColor:[{...ta,property:"color"},{...ta,property:"-webkit-text-fill-color"},{...ia,property:"color"}],labelRequiredIndicator:{...ia,property:"content"},errorMessageTextColor:{...aa,property:"color"},errorMessageIcon:{...aa,property:"background-image"},errorMessageIconSize:{...aa,property:"background-size"},errorMessageIconPadding:{...aa,property:"padding-inline-start"},errorMessageIconRepeat:{...aa,property:"background-repeat"},errorMessageIconPosition:{...aa,property:"background-position"},errorMessageFontSize:{...aa,property:"font-size"},inputValueTextColor:{...sa,property:_s.inputValueTextColor},inputPlaceholderTextColor:{...sa,property:_s.inputPlaceholderColor},inputBorderStyle:{...ra,property:"border-style"},inputBorderWidth:{...ra,property:"border-width"},inputBorderColor:{...ra,property:"border-color"},inputBorderRadius:[{...na,property:"border-radius"},{...ra,property:"border-radius"}],inputOutlineStyle:{...na,property:"outline-style"},inputOutlineColor:{...na,property:"outline-color"},inputOutlineWidth:{...na,property:"outline-width"},inputOutlineOffset:{...na,property:"outline-offset"},labelPosition:{...ta,property:"position"},labelTopPosition:{...ta,property:"top"},labelHorizontalPosition:[{...ta,property:"left"},{...ta,property:"right"}],inputTransformY:{...ta,property:"transform"},inputTransition:{...ta,property:"transition"},marginInlineStart:{...ta,property:"margin-inline-start"},valueInputHeight:{...ea,property:"height"},valueInputMarginBottom:{selector:Xn.componentName,property:_s.valueInputMarginBottom}}}),Ze,ci,ri({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ts}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${Hs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Hs}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Hs),S(this,this.inputElement,{includeAttrs:["has-value"]}),ee(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}})(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${Me(da.cssVarList)}\n ${be("vaadin-text-field")}\n ${Ie("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n }\n descope-phone-field-internal-input-box descope-text-field {\n ${_s.inputOutlineWidth}: 0;\n ${_s.inputOutlineOffset}: 0;\n }\n descope-phone-field-internal-input-box::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n pointer-events: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] input:placeholder-shown {\n opacity: 0;\n }\n\n ${je("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:Xs}));customElements.define(Xs,da);const ca=Kt("new-password-internal"),ua=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),pa=Kt("policy-validation"),ha=["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"],ga=["label","value",...ha];class Ma extends(qe({componentName:pa,baseSelector:":host > div"})){#Ut;#Rt=[];#Yt;static get observedAttributes(){return ga}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),ha.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(i)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Rt=(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-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.#Ut,this.#Rt,this.#Yt)}}get availablePolicies(){return this.#Ut||[]}set availablePolicies(t){this.#Ut=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.#Ut;return this.#Yt&&(t=this.#Ut.map(t=>{const e=this.#Yt[t.id];return e?{...t,data:e}:t})),this.#Rt.reduce((e,i)=>{const o=t.find(t=>t.id===i);if(!o)return e;const{pattern:n,message:r,data:s,compare:a}=o,l="string"==typeof a?a.toUpperCase():a;if(!n&&!a||!r)return e;const d={message:ua(r,s),id:i};if(n){const t=new RegExp(ua(n,s));d.valid=t.test(this.value)}else if("STR_NEQ_CI"===l){const t=(s?.expected??"").toLowerCase(),e=(this.value??"").toLowerCase();if(t&&e){const i=t.indexOf("@"),o=i>0?t.slice(0,i):t;d.valid=e!==t&&e!==o}else d.valid=!0}else a&&(d.valid=this.compareValues(l,s?.expected??-1,s?.actual??-1));return e.push(d),e},[])}get isValid(){return!this.validate().some(({valid:t})=>!1===t)}buildValidationItem({valid:t,message:e}){const i=this.value?t:"none",o=document.createElement("li");o.className="item",o.dataset.valid=i;const n=document.createElement("span");return n.className="message",n.textContent=e??"",o.appendChild(n),o}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:ma,item:ya,symbolDefault:ba,symbolSuccess:Na,symbolError:Ia}={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'}},xa=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ma,property:"border-width"},borderStyle:{...ma,property:"border-style"},borderColor:{...ma,property:"border-color"},borderRadius:{...ma,property:"border-radius"},backgroundColor:{...ma,property:"background-color"},textColor:{property:"color"},labelMargin:{...ma,property:"gap"},itemsSpacing:{...ya,property:"line-height"},itemSymbolSuccessColor:{...Na,property:"color"},itemSymbolErrorColor:{...Ia,property:"color"},itemSymbolDefault:{...ba,property:"content"},itemSymbolSuccess:{...Na,property:"content"},itemSymbolError:{...Ia,property:"content"}}}),Ze,Fe)(Ma),ja=Kt("new-password"),Ta=xa.cssVarList,{host:Da,label:va,internalInputsWrapper:za,errorMessage:Ca,helperText:Sa,passwordInput:La,policyPreview:wa}={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"}},Aa=Ft(Pe({mappings:{fontSize:[Da,{},{selector:ps.componentName,property:ps.cssVarList.fontSize}],fontFamily:[va,Ca,Sa],labelFontSize:{...va,property:"font-size"},labelFontWeight:{...va,property:"font-weight"},inputValueFontWeight:{...La,property:ps.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...La,property:ps.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...Sa,property:"font-weight"},errorMessageFontWeight:{...Ca,property:"font-weight"},labelTextColor:{...va,property:"color"},errorMessageTextColor:{...Ca,property:"color"},errorMessageIcon:{...Ca,property:"background-image"},errorMessageIconSize:{...Ca,property:"background-size"},errorMessageIconPadding:{...Ca,property:"padding-inline-start"},errorMessageIconRepeat:{...Ca,property:"background-repeat"},errorMessageIconPosition:{...Ca,property:"background-position"},errorMessageFontSize:{...Ca,property:"font-size"},hostWidth:{...Da,property:"width"},hostMinWidth:{...Da,property:"min-width"},hostDirection:[{...Da,property:"direction"},{...La,property:ps.cssVarList.hostDirection}],inputsRequiredIndicator:{...Da,property:"content"},spaceBetweenInputs:{...za,property:"gap"},policyPreviewBackgroundColor:{...wa,property:Ta.backgroundColor},policyPreviewPadding:{...wa,property:Ta.padding},valueInputHeight:{...La,property:ps.cssVarList.valueInputHeight},valueInputMarginBottom:{...La,property:ps.cssVarList.valueInputMarginBottom}}}),Ze,ri({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<${ca}\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 </${ca}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ca),"true"===this.getAttribute("external-input")&&this.initExternalInput(),ee(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","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")}})(Xe({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${Me(ps.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:ja}));customElements.define(pa,xa);const fa=/^password-/,Ea=/^confirm-/,ka=(t,e)=>t.replace(e,""),Oa=["password-label","password-placeholder"],Va=["confirm-label","confirm-placeholder"],Wa=["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","manual-visibility-toggle"],Ua=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ra=[].concat(Ua,Oa,Va,Wa),Ya=ui({componentName:ca,baseSelector:"div"});customElements.define(ca,class extends Ya{static get observedAttributes(){return[].concat(Ya.observedAttributes||[],Ra)}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)}),ee(this,this.policyPanel,{includeAttrs:Wa,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(${Aa.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 dT}),this.passwordStrength=document.createElement("descope-password-strength"),this.passwordStrength.setAttribute("options","Very weak,Weak,Average,Strong,Very strong"),this.passwordStrength.setAttribute("value",this.passwordInput.value||""),this.passwordStrength.setAttribute("st-host-direction",this.getAttribute("st-host-direction")),this.passwordStrength.setAttribute("full-width","true"),this.querySelector(".password-input-container").insertBefore(this.passwordStrength,this.policyPanel)):this.passwordStrength&&(this.passwordStrength.remove(),this.passwordStrength=null)}get activePolicies(){return(this.getAttribute("active-policies")||"").split(",")}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("has-validation"===t?this.onHasValidationChange("true"===i):"has-confirm"===t?this.onHasConfirmChange("true"===i):Ua.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):Oa.includes(t)?this.toggleBooleanAttribute(this.passwordInput,ka(t,fa),i):Va.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,ka(t,Ea),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(ja,Aa);const Qa=Kt("recaptcha"),Ba=["enabled","site-key","action","enterprise","variant"],Pa="recaptcha",Za=ui({componentName:Qa,baseSelector:":host > div"}),Fa=Ft(Ze)(class extends Za{#Qt=null;static get observedAttributes(){return Ba.concat(Za.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?.(),qt(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",Pa),this.#Qt=Pa):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(Qa,Fa);const Ga=Kt("upload-file"),Ha=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Ja=ui({componentName:Ga,baseSelector:":host > div"}),$a=Oo.cssVarList,{host:qa,wrapper:_a,icon:Xa,title:Ka,description:tl,requiredIndicator:el}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},il=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...qa,property:"height"},hostWidth:{...qa,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...qa,property:"direction"},{selector:()=>Oo.componentName,property:$a.hostDirection}],gap:{..._a},lineHeight:{..._a,property:"line-height"},titleFontSize:{...Ka,property:"font-size"},titleFontWeight:{...Ka,property:"font-weight"},descriptionFontSize:{...tl,property:"font-size"},labelTextColor:[{...Ka,property:"color"},{...tl,property:"color"}],iconSize:{...Xa,property:"width"},requiredIndicator:{...el,property:"content"}}}),Ze,Fe)(class extends Ja{static get observedAttributes(){return Ha.concat(Ja.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(Ga,il);const ol=t=>{class e extends(ui({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=_e.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},nl=Kt("button-selection-group-internal");class rl extends(ol(nl)){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 sl=t=>class extends t{#et=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#U;get renderItem(){return this.#et}set renderItem(t){this.#et=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#U)return this.#U;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.#U=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"]}),qt(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"}},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\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n [part="internal-component"] slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${je("vaadin-text-field")}\n\t\t\t${be("vaadin-text-field")}\n `,gl=Kt("button-selection-group"),Ml=Ft(Pe({mappings:{...pl}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${nl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${nl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(nl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),ee(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:gl}));customElements.define(nl,rl);const ml=Kt("button-selection-group-item");class yl extends(qe({componentName:ml,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),ee(this,this.baseElement,{includeAttrs:["size","variant"]}),ee(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 bl=Ft(Pe({mappings:{hostDirection:{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},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}}}),Ze,Fe)(yl);customElements.define(ml,bl),customElements.define(gl,Ml);const Nl=Kt("button-multi-selection-group-internal");class Il extends(ol(Nl)){#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 xl=Kt("button-multi-selection-group"),jl=Ft(Pe({mappings:{...pl}}),Ze,ri({proxyProps:["value","selectionStart"]}),Fe,sl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Nl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${Nl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Nl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),ee(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(Xe({slots:[],wrappedEleName:"vaadin-text-field",style:()=>hl,excludeAttrsSync:["tabindex","style"],componentName:xl}));customElements.define(Nl,Il),customElements.define(xl,jl);class Tl 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 Dl=Kt("grid-text-column");customElements.define(Dl,Tl);const vl=Kt("grid-custom-column");customElements.define(vl,class extends Tl{_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 zl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},Cl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class Sl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=zl(),i.addEventListener("input",()=>{const t=Cl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",Cl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=zl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const Ll=Kt("grid-selection-column");customElements.define(Ll,Sl);class wl 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 Al=Kt("grid-item-details-column");customElements.define(Al,wl),customElements.define(Do,Co),customElements.define(So,Lo);const fl=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},El=Kt("code-snippet");let kl=class extends(qe({componentName:El,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(),qt(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(fl(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=fl(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 Ol={selector:()=>".copy-btn"},{root:Vl,docTag:Wl,keyword:Ul,metaKeyword:Rl,templateTag:Yl,templateVariable:Ql,type:Bl,variableLanguage:Pl,title:Zl,titleClass:Fl,titleClassInherited:Gl,titleFunction:Hl,attr:Jl,attribute:$l,literal:ql,meta:_l,number:Xl,operator:Kl,variable:td,selectorAttr:ed,selectorClass:id,selectorId:od,regexp:nd,string:rd,metaString:sd,builtIn:ad,symbol:ld,comment:dd,code:cd,formula:ud,name:pd,quote:hd,selectorTag:gd,selectorPseudo:Md,subst:md,section:yd,bullet:bd,emphasis:Nd,strong:Id,addition:xd,deletion:jd,charEscape:Td,link:Dd,params:vd,property:zd,punctuation:Cd,tag:Sd}={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"}},Ld=Ft(Pe({mappings:{rootBgColor:{...Vl,property:"background-color"},rootTextColor:{...Vl,property:"color"},docTagTextColor:{...Wl,property:"color"},keywordTextColor:{...Ul,property:"color"},metaKeywordTextColor:{...Rl,property:"color"},templateTagTextColor:{...Yl,property:"color"},templateVariableTextColor:{...Ql,property:"color"},typeTextColor:{...Bl,property:"color"},variableLanguageTextColor:{...Pl,property:"color"},titleTextColor:{...Zl,property:"color"},titleClassTextColor:{...Fl,property:"color"},titleClassInheritedTextColor:{...Gl,property:"color"},titleFunctionTextColor:{...Hl,property:"color"},attrTextColor:{...Jl,property:"color"},attributeTextColor:{...$l,property:"color"},literalTextColor:{...ql,property:"color"},metaTextColor:{..._l,property:"color"},numberTextColor:{...Xl,property:"color"},operatorTextColor:{...Kl,property:"color"},variableTextColor:{...td,property:"color"},selectorAttrTextColor:{...ed,property:"color"},selectorClassTextColor:{...id,property:"color"},selectorIdTextColor:{...od,property:"color"},regexpTextColor:{...nd,property:"color"},stringTextColor:{...rd,property:"color"},metaStringTextColor:{...sd,property:"color"},builtInTextColor:{...ad,property:"color"},symbolTextColor:{...ld,property:"color"},commentTextColor:{...dd,property:"color"},codeTextColor:{...cd,property:"color"},formulaTextColor:{...ud,property:"color"},nameTextColor:{...pd,property:"color"},quoteTextColor:{...hd,property:"color"},selectorTagTextColor:{...gd,property:"color"},selectorPseudoTextColor:{...Md,property:"color"},substTextColor:{...md,property:"color"},sectionTextColor:{...yd,property:"color"},bulletTextColor:{...bd,property:"color"},emphasisTextColor:{...Nd,property:"color"},strongTextColor:{...Id,property:"color"},additionTextColor:{...xd,property:"color"},additionBgColor:{...xd,property:"background-color"},deletionTextColor:{...jd,property:"color"},deletionBgColor:{...jd,property:"background-color"},charEscapeTextColor:{...Td,property:"color"},linkTextColor:{...Dd,property:"color"},paramsTextColor:{...vd,property:"color"},propertyTextColor:{...zd,property:"color"},punctuationTextColor:{...Cd,property:"color"},tagTextColor:{...Sd,property:"color"},copyButtonSize:[{...Ol,property:"width"},{...Ol,property:"height"}],copyButtonBorderRadius:{...Ol,property:"border-radius"},copyButtonBorderWidth:{...Ol,property:"border-width"},copyButtonBorderColor:{...Ol,property:"border-color"},copyButtonBgColor:{...Ol,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...Ol,property:"color"}}}),Ze,Fe)(kl);customElements.define(El,Ld);const wd=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},Ad=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},fd=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",Ed=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${Ad(t)}</descope-code-snippet>`,kd=t=>`<div class="row-details__value text" title="${t}">${Ad(t)}</div>`,Od=t=>Ed(JSON.stringify(t,null,2),"json"),Vd=t=>{const e=fd(t);return"object"===e?Od(t):"xml"===e?(t=>Ed(t,"xml"))(t):"array"===e?t.some(t=>"object"===fd(t))?Od(t):kd(t.join(",\n")):kd(t)},Wd=Kt("grid"),{host:Ud,headerRow:Rd,headerRowCell:Yd,contentRow:Qd,firstRow:Bd,sortIndicators:Pd,activeSortIndicator:Zd,selectedRow:Fd,rowSeparator:Gd,resizeHandle:Hd,toggleDetailsPanelButton:Jd,toggleDetailsPanelButtonOpened:$d,toggleDetailsPanelButtonClosed:qd,detailsPanel:_d,detailsPanelLabels:Xd,selectedRowCell:Kd,detailsPanelContent:tc}={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"}},ec=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Rd},{...Qd}],fontSize:[{...Rd},{...Qd}],fontWeight:{...Qd},valueTextColor:{...Qd,property:"color"},backgroundColor:[{...Ud,property:"background-color"},{...Qd,property:"background-color"}],sortIndicatorsColor:{...Pd,property:"color"},activeSortIndicator:{...Zd,property:"color"},borderColor:{...Ud,property:"border-color"},borderWidth:{...Ud,property:"border-width"},borderStyle:{...Ud,property:"border-style"},borderRadius:{...Ud,property:"border-radius"},selectedBackgroundColor:[{...Fd,property:"background-color"},{...Kd,property:"background-color"}],headerRowTextColor:{...Yd,property:"color"},separatorColor:[{...Bd,property:"border-bottom-color"},{...Gd,property:"border-top-color"}],resizeHandleColor:{...Hd,property:"background-color"},hostDirection:{...Ud,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Jd,property:"width"},{...Jd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...$d,property:"color"},toggleDetailsPanelButtonClosedColor:{...qd,property:"color"},toggleDetailsPanelButtonCursor:{...Jd,property:"cursor"},detailsPanelBackgroundColor:{..._d,property:"background-color"},detailsPanelBorderTopColor:{..._d,property:"border-top-color"},detailsPanelLabelsColor:{...Xd,property:"color"},detailsPanelLabelsFontSize:{...Xd,property:"font-size"},detailsPanelItemsGap:{...tc,property:"grid-gap"},detailsPanelPadding:{...tc,property:"padding"}}}),Ze,Fe,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=fd(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===fd(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Vd(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Vd(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);wd(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(wd(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")}})(Xe({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(${ec.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:Wd}));customElements.define(Wd,ec);const ic=Kt("modal"),oc=["opened"],nc=Ft(Pe({mappings:{overlayBackdropColor:{property:()=>nc.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>nc.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>nc.cssVarList.overlay.shadow},overlayWidth:{property:()=>nc.cssVarList.overlay.width},overlayBorderWidth:{property:()=>nc.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>nc.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>nc.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>nc.cssVarList.overlay.borderRadius}}}),si({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"]}}),Ze,Fe,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],oc)}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.#ot(),ee(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#ot(){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")})}})(Xe({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:ic}));customElements.define(ic,nc);const rc=window.customElements.get("vaadin-notification-container");if(!rc)throw new Error("could not get vaadin-notification-container class");customElements.define(Kt("notification-container"),class extends rc{});const sc=Kt("notification-card"),ac={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},lc=Ft(Pe({mappings:{hostMinWidth:{selector:ac.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:ac.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:ac.content,property:"border-width"},borderColor:{selector:ac.content,property:"border-color"},borderStyle:{selector:ac.content,property:"border-style"},borderRadius:[{selector:ac.content,property:"border-radius"},{selector:ac.overlay,property:"border-radius"}],verticalPadding:[{selector:ac.content,property:"padding-top"},{selector:ac.content,property:"padding-bottom"}],horizontalPadding:[{selector:ac.content,property:"padding-right"},{selector:ac.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()}}})(Xe({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:sc}));customElements.define(sc,lc);const dc=Kt("notification"),cc=Ft(Ze,Fe,He,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(),ee(this,this.#ie),Xt(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))}})(Xe({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:dc}));customElements.define(dc,cc);const uc=Kt("mappings-field-internal"),pc=ui({componentName:uc,baseSelector:"div"}),hc=Kt("mappings-field"),{host:gc,helperText:Mc,errorMessage:mc,mappingItem:yc,labels:bc,labelsText:Nc,valueLabel:Ic,attrLabel:xc,separator:jc,labelsContainer:Tc}={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"]'}},Dc=Ft(Pe({mappings:{hostWidth:{...gc,property:"width"},hostDirection:{...gc,property:"direction"},fontSize:[{},gc,{...jc,property:"margin-top"}],fontFamily:[Mc,mc,bc],separatorFontSize:{...jc,property:"font-size"},labelsFontSize:{...Nc,property:"font-size"},labelsLineHeight:[{...Nc,property:"line-height"},{...bc,property:"line-height"}],labelTextColor:[{...bc,property:wi.cssVarList.textColor},{...jc,property:"color"}],itemMarginBottom:{...yc,property:"margin-bottom"},valueLabelMinWidth:{...Ic,property:"min-width"},attrLabelMinWidth:{...xc,property:"min-width"},labelsMarginBottom:{...Tc,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),Ze,ri({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Fe,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 <${uc}\n tabindex="-1"\n ></${uc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(uc),ee(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"]}),Xt(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(Xe({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(${Dc.cssVarList.separatorWidth}) 1fr var(${Dc.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 ${wi.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(${Dc.cssVarList.separatorWidth}) 1fr var(${Dc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:hc}));customElements.define(uc,class extends pc{#oe;static get observedAttributes(){return[].concat(pc.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),ee(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)},ee(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)}),qt(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 vc=Kt("mapping-item"),zc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Cc=ui({componentName:vc,baseSelector:"div"});customElements.define(vc,class extends Cc{static get observedAttributes(){return[].concat(Cc.observedAttributes||[],zc,["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"),ee(this,this.valueInput,{includeAttrs:zc}),ee(this,this.attributeInput,{includeAttrs:[...zc,"options"],mapAttrs:{options:"data"}}),ee(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(hc,Dc);const Sc=w("badge");class Lc extends(Nt({componentName:Sc,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 wc=T(pt({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:{}}}),ht,gt)(Lc);var Ac="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const fc=Kt("user-attribute");class Ec extends(qe({componentName:fc,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="${Ac}" src-dark="${Ac}"></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(${wi.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,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MDE1IDIuMDA4MTkgMy45OTIxNVYxMi4wMDgyQzIuMDA4MTkgMTIuNTM2MiAyLjQ0MDE5IDEyLjk5MjIgMi45OTIxOSAxMi45OTIySDUuNTM2MTlDNS44NDgxOSAxMy4wNDAyIDYuMTYwMTkgMTMuMDQwMiA2LjQ3MjE5IDEyLjk5MjJIMTEuMDA4MkMxMS41MzYyIDEyLjk5MjIgMTEuOTkyMiAxMi41N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aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTYgMUg0Yy0xLjEgMC0yIC45LTIgMnYxNGgyVjNoMTJWMXptMyA0SDhjLTEuMSAwLTIgLjktMiAydjE0YzAgMS4xLjkgMiAyIDJoMTFjMS4xIDAgMi0uOSAyLTJWN2MwLTEuMS0uOS0yLTItMnptMCAxNkg4VjdoMTF2MTR6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+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:kc,textFields:Oc,buttons:Vc,badge:Wc,labelText:Uc,contentWrapper:Rc}={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"}},Yc=Ft(Pe({mappings:{hostWidth:{...kc,property:"width"},hostMinWidth:{...kc,property:"min-width"},hostMaxWidth:{...kc,property:"max-width"},hostDirection:[{...kc,property:"direction"},{...Oc,property:wi.cssVarList.hostDirection},{...Vc,property:Oo.cssVarList.hostDirection},{...Wc,property:wc.cssVarList.hostDirection}],labelMinWidth:{...Uc,property:"min-width"},contentMinWidth:{...Rc,property:"min-width"},badgeMaxWidth:{...Wc,property:"max-width"},itemsGap:[{property:"gap"},{...Rc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill},{selector:()=>".check-icon",property:Lo.cssVarList.fill}]}}),Ze,Fe)(Ec);customElements.define(Sc,wc),customElements.define(fc,Yc);const Qc=Kt("user-auth-method");class Bc extends(qe({componentName:Qc,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:Pc,textField:Zc,buttons:Fc,badge:Gc,textWrapper:Hc,methodIconSlot:Jc}={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)'}},$c=Ft(Pe({mappings:{hostWidth:{...Pc,property:"width"},hostMinWidth:{...Pc,property:"min-width"},hostMaxWidth:{...Pc,property:"max-width"},hostDirection:[{...Pc,property:"direction"},{...Zc,property:wi.cssVarList.hostDirection},{...Fc,property:Oo.cssVarList.hostDirection},{...Gc,property:wc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Hc,property:"gap"}],iconSize:[{...Jc,property:"width"},{...Jc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill}]}}),Ze,Fe)(Bc);customElements.define(Qc,$c);const qc=Kt("saml-group-mappings-internal"),_c=ui({componentName:qc,baseSelector:""}),Xc=Kt("saml-group-mappings"),{host:Kc,groupInput:tu,errorMessage:eu}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},iu=Ft(Pe({mappings:{hostWidth:{...Kc,property:"width"},hostDirection:{...Kc,property:"direction"},groupNameInputMarginBottom:{...tu,property:"margin-bottom"},errorMessageIcon:{...eu,property:"background-image"},errorMessageIconSize:{...eu,property:"background-size"},errorMessageIconPadding:{...eu,property:"padding-inline-start"},errorMessageIconRepeat:{...eu,property:"background-repeat"},errorMessageIconPosition:{...eu,property:"background-position"},errorMessageFontSize:{...eu,property:"font-size"}}}),Ze,ri({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Fe,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${qc}\n tabindex="-1"\n ></${qc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(qc),ee(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),Xt(this,this.inputElement,{includeAttrs:["invalid"]})}})(Xe({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:Xc}));customElements.define(qc,class extends _c{static get observedAttributes(){return["invalid"].concat(_c.observedAttributes||[])}constructor(){super(),this.innerHTML='\n <descope-text-field variant="body2" bordered="true"></descope-text-field>\n <descope-mappings-field></descope-mappings-field>\n ',this.groupInputElement=this.querySelector("descope-text-field"),this.mappingsElement=this.querySelector("descope-mappings-field")}resetInvalidIndication(){this.removeAttribute("invalid")}handleMappingsInvalidChange(t){t.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",t=>{t.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),ee(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),ee(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(Xc,iu);const ou=Kt("radio-button"),nu=Ft(Pe({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"}}}),ri({proxyProps:["setSelectionRange"]}),Fe,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?.(),qt(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(Xe({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:ou})),ru=Kt("radio-group"),su=Ft(Pe({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(${nu.componentName})`,property:nu.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${nu.componentName})`,property:nu.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${nu.componentName}[checked="true"])`,property:nu.cssVarList.radioBackgroundColor}}}),Ze,ri({proxyProps:["setSelectionRange"]}),Fe,t=>class extends t{#et=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#U;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(ou)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===ou),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#U)return this.#U;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.#U=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.#et?.(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()})}),ee(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),qt(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})}),$t(this,()=>{this.items.forEach(t=>{t.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(Xe({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 ${je("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:ru,includeForwardProps:["value"]}));customElements.define(ou,nu),customElements.define(ru,su);const au=()=>!0,lu=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,du=Kt("scopes-list"),cu=["checkbox","switch"];class uu extends(qe({componentName:du,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 cu.includes(t)?t:cu[0]}}const pu=Ft(Pe({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=lu,validateSchema:e=au,slotName:i,rerenderAttrsList:o=[]})=>n=>class extends n{#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.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.#U=t,this.#B())}get data(){return this.#U}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"]}),Ze,Fe)(uu),hu=w("list-item"),gu=T(pt({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:{}}}),ht,gt,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})})}})(Nt({componentName:hu,baseSelector:"slot"}));customElements.define(hu,gu);const Mu=w("list");class mu extends(Nt({componentName:Mu,baseSelector:".wrapper"})){static get observedAttributes(){return["variant","readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <slot></slot>\n <slot name="empty-state">\n No item...\n </slot>\n </div>\n\t',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!==gu.componentName&&(e=t.querySelector(gu.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 yu=T(pt({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"}]}}),ht,gt)(mu);customElements.define(Mu,yu),customElements.define(du,pu);const bu=Kt("third-party-app-logo");class Nu extends(qe({componentName:bu,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 Iu=">.company-logo-wrapper",xu=">.third-party-app-logo-wrapper",ju=Ft(Pe({mappings:{logoMaxHeight:[{selector:Iu,property:"height"},{selector:xu,property:"height"}],logoMaxWidth:[{selector:Iu,property:"max-width"},{selector:xu,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:zr.componentName,property:zr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:Lo.componentName,property:Lo.cssVarList.fill}}}),Ze,Fe)(Nu);customElements.define(bu,ju);const Tu=Kt("security-questions-setup"),Du=["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"],vu=["count","questions"];class zu extends(qe({componentName:Tu,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(Du)}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(Tu,"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:vu}),$t(this,this.#Me.bind(this),{includeAttrs:Du})}}const Cu=Ft(Pe({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"}}}),Ze,Fe)(zu);customElements.define(Tu,Cu);const Su=Kt("security-questions-verify"),Lu=["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"],wu=["question-mode"],Au={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},fu=[...Lu,...wu],Eu=["questions"];class ku extends(qe({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)}#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(fu),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(Su,"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 Lu.includes(t):return this.textFields;case wu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,Au[t]||t,this.getAttribute(t))})})}init(){super.init?.(),$t(this,()=>{this.#ge()},{includeAttrs:Eu}),$t(this,this.#Me.bind(this),{includeAttrs:fu})}}const Ou=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>wi.componentName,property:wi.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>wi.componentName,property:wi.cssVarList.textAlign},questionFontSize:{selector:()=>wi.componentName,property:wi.cssVarList.fontSize},questionFontFamily:{selector:()=>wi.componentName,property:wi.cssVarList.fontFamily},questionCursor:{selector:()=>wi.componentName,property:"cursor"},errorMessageIcon:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>wi.componentName,property:wi.cssVarList.errorMessageFontSize}}}),Ze,Fe)(ku);customElements.define(Su,Ou);const Vu=/[^\d\s+\-()]/,Wu=Kt("hybrid-field"),Uu={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"]}},Ru={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"}},Yu="descope-phone-field",Qu=qe({componentName:Wu,baseSelector:"div"}),Bu=Ft(Pe({componentNameOverride:Kt("input-wrapper")}),Pe({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:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIcon},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconSize},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconPadding},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconRepeat},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageIconPosition},{selector:()=>da.componentName,property:da.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageFontSize},{selector:()=>da.componentName,property:da.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.labelFontWeight},{selector:()=>da.componentName,property:da.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.inputValueFontWeight},{selector:()=>da.componentName,property:da.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.inputPlaceholderFontWeight},{selector:()=>da.componentName,property:da.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.helperTextFontWeight},{selector:()=>da.componentName,property:da.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Gs.componentName,property:Gs.cssVarList.errorMessageFontWeight},{selector:()=>da.componentName,property:da.cssVarList.errorMessageFontWeight}]}}),Ze,Fe)(class extends Qu{#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(Yu),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(){ee(this,this.emailInput,{includeAttrs:Uu.email,mapAttrs:Ru.email}),ee(this,this.phoneCountryCodeInput,{includeAttrs:Uu.phone.countryCode,mapAttrs:Ru.phone}),ee(this,this.phoneInputBoxInput,{includeAttrs:Uu.phone.inputBox,mapAttrs:Ru.phone}),this.inputs.forEach(t=>ee(this,t,{includeAttrs:Uu.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&&!Vu.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&&Gs.CountryCodes.find(e=>e.code===t);return e?.dialCode||Gs.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===Yu){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(Wu,Bu);const Pu=Kt("alert");class Zu extends(qe({componentName:Pu,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)),ee(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:Fu}={icon:{selector:()=>".icon"}},Gu=Ft(Pe({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:Bt.componentName,property:Bt.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:Bt.componentName,property:Bt.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:Bt.componentName,property:Bt.cssVarList.textAlign}],icon:[{...Fu,property:"content"},{...Fu,property:"display",fallback:"none"}],iconSize:[{...Fu,property:"width"},{...Fu,property:"height"}]}}),Pe({componentNameOverride:Kt("enriched-text")}),Pe({componentNameOverride:Kt("text")}),Ze,Fe)(Zu);customElements.define(Pu,Gu);const Hu=Kt("hcaptcha"),Ju=["enabled","site-key"],$u=ui({componentName:Hu,baseSelector:":host > div"}),qu=Ft(Pe({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"}]}}),Ze,Fe)(class extends $u{static get observedAttributes(){return Ju.concat($u.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(Hu,qu);const _u=(sp={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(sp).reduce((t,e)=>{const i=sp[e];return Object.assign(t,{[e]:ge(i)})},{})),Xu={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"}},Ku=Ce({fonts:Xu}).fonts,tp={colors:_u,typography:{h1:{font:Ku.font1.family,weight:"900",size:"48px"},h2:{font:Ku.font1.family,weight:"800",size:"38px"},h3:{font:Ku.font1.family,weight:"600",size:"28px"},subtitle1:{font:Ku.font2.family,weight:"500",size:"22px"},subtitle2:{font:Ku.font2.family,weight:"400",size:"20px"},body1:{font:Ku.font1.family,weight:"400",size:"16px"},body2:{font:Ku.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:Xu,direction:"ltr"},ep=(t=>ve(t,[],t=>De({},t,Te(t))))(tp),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"}}),op={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},np=ot({fonts:op}).fonts,rp={colors:ip,typography:{h1:{font:np.font1.family,weight:"900",size:"48px"},h2:{font:np.font1.family,weight:"800",size:"38px"},h3:{font:np.font1.family,weight:"600",size:"28px"},subtitle1:{font:np.font2.family,weight:"500",size:"22px"},subtitle2:{font:np.font2.family,weight:"400",size:"20px"},body1:{font:np.font1.family,weight:"400",size:"16px"},body2:{font:np.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:op,direction:"ltr"};var sp;(t=>{it(t,[],t=>et({},t,tt(t)))})(rp);const ap=ot(rp),lp=Oo.cssVarList,dp={primary:ap.colors.primary,secondary:ap.colors.secondary,success:ap.colors.success,error:ap.colors.error,surface:ap.colors.surface},[cp,up,pp]=rt({mode:dp},wo),hp={...cp,[lp.fontFamily]:ap.fonts.font1.family,[lp.fontWeight]:"400",[lp.cursor]:"pointer",[lp.hostHeight]:"3em",[lp.hostWidth]:"auto",[lp.hostDirection]:ap.direction,[lp.borderRadius]:ap.radius.sm,[lp.borderWidth]:ap.border.xs,[lp.borderStyle]:"solid",[lp.borderColor]:"transparent",[lp.labelSpacing]:"0.25em",[lp.textAlign]:"center",textAlign:{right:{[lp.textAlign]:"right"},left:{[lp.textAlign]:"left"},center:{[lp.textAlign]:"center"}},[lp.verticalPadding]:"1em",[lp.horizontalPadding]:"0.875em",[lp.outlineWidth]:rp.border.sm,[lp.outlineOffset]:"0px",[lp.outlineStyle]:"solid",[lp.outlineColor]:"transparent",[lp.iconSize]:"1.5em",size:{xs:{[lp.fontSize]:"12px"},sm:{[lp.fontSize]:"14px"},md:{[lp.fontSize]:"16px"},lg:{[lp.fontSize]:"18px"}},_square:{[lp.hostHeight]:"3em",[lp.hostWidth]:"3em",[lp.verticalPadding]:"0"},_fullWidth:{[lp.hostWidth]:"100%"},_loading:{[lp.cursor]:"wait",[lp.labelTextColor]:up.main},_disabled:{[pp.main]:ap.colors.surface.light,[pp.dark]:ap.colors.surface.dark,[pp.light]:ap.colors.surface.light,[pp.contrast]:ap.colors.surface.main,[lp.iconColor]:ap.colors.surface.main},variant:{contained:{[lp.labelTextColor]:up.contrast,[lp.backgroundColor]:up.main,_hover:{[lp.backgroundColor]:up.dark,_loading:{[lp.backgroundColor]:up.main}},_active:{[lp.backgroundColor]:up.main}},outline:{[lp.labelTextColor]:up.main,[lp.borderColor]:up.main,_hover:{[lp.labelTextColor]:up.dark,[lp.borderColor]:up.dark},_active:{[lp.labelTextColor]:up.main,[lp.borderColor]:up.main},_disabled:{[lp.iconColor]:up.main}},link:{[lp.labelTextColor]:up.main,[lp.horizontalPadding]:"0.125em",_hover:{[lp.labelTextColor]:up.dark,[lp.labelTextDecoration]:"underline"},_active:{[lp.labelTextColor]:up.main},_disabled:{[lp.iconColor]:up.main}}},_focused:{[lp.outlineColor]:up.light}},gp={...lp,...pp};var Mp=Object.freeze({__proto__:null,default:hp,vars:gp});const mp=ot(rp),yp=wi.cssVarList,bp={[yp.hostDirection]:mp.direction,[yp.textLineHeight]:"1.35em",[yp.textAlign]:"start",[yp.textColor]:mp.colors.surface.dark,variant:{h1:{[yp.fontSize]:mp.typography.h1.size,[yp.fontWeight]:mp.typography.h1.weight,[yp.fontFamily]:mp.typography.h1.font},h2:{[yp.fontSize]:mp.typography.h2.size,[yp.fontWeight]:mp.typography.h2.weight,[yp.fontFamily]:mp.typography.h2.font},h3:{[yp.fontSize]:mp.typography.h3.size,[yp.fontWeight]:mp.typography.h3.weight,[yp.fontFamily]:mp.typography.h3.font},subtitle1:{[yp.fontSize]:mp.typography.subtitle1.size,[yp.fontWeight]:mp.typography.subtitle1.weight,[yp.fontFamily]:mp.typography.subtitle1.font},subtitle2:{[yp.fontSize]:mp.typography.subtitle2.size,[yp.fontWeight]:mp.typography.subtitle2.weight,[yp.fontFamily]:mp.typography.subtitle2.font},body1:{[yp.fontSize]:mp.typography.body1.size,[yp.fontWeight]:mp.typography.body1.weight,[yp.fontFamily]:mp.typography.body1.font},body2:{[yp.fontSize]:mp.typography.body2.size,[yp.fontWeight]:mp.typography.body2.weight,[yp.fontFamily]:mp.typography.body2.font}},mode:{primary:{[yp.textColor]:mp.colors.surface.contrast},secondary:{[yp.textColor]:mp.colors.surface.dark},error:{[yp.textColor]:mp.colors.error.main},"error-dark":{[yp.textColor]:mp.colors.error.dark},success:{[yp.textColor]:mp.colors.success.main},"success-dark":{[yp.textColor]:mp.colors.success.dark},warning:{[yp.textColor]:mp.colors.warning.main},"warning-dark":{[yp.textColor]:mp.colors.warning.dark}},textAlign:{right:{[yp.textAlign]:"right"},left:{[yp.textAlign]:"left"},center:{[yp.textAlign]:"center"}},_fullWidth:{[yp.hostWidth]:"100%"},_italic:{[yp.fontStyle]:"italic"},_uppercase:{[yp.textTransform]:"uppercase"},_lowercase:{[yp.textTransform]:"lowercase"}};var Np=Object.freeze({__proto__:null,default:bp,vars:yp});const Ip=ot(rp),xp=Yi.cssVarList,jp={[xp.hostDirection]:Ip.direction,[xp.cursor]:"pointer",[xp.textColor]:Ip.colors.primary.main,textAlign:{right:{[xp.textAlign]:"right"},left:{[xp.textAlign]:"left"},center:{[xp.textAlign]:"center"}},_fullWidth:{[xp.hostWidth]:"100%"},_hover:{[xp.textDecoration]:"underline"},mode:{secondary:{[xp.textColor]:Ip.colors.secondary.main}}};var Tp=Object.freeze({__proto__:null,default:jp,vars:xp});const Dp=ot(rp),vp=Bt.cssVarList,zp={[vp.hostDirection]:Dp.direction,[vp.hostWidth]:nt(yp.hostWidth),[vp.textLineHeight]:nt(yp.textLineHeight),[vp.textColor]:nt(yp.textColor),[vp.textAlign]:nt(yp.textAlign),[vp.fontSize]:nt(yp.fontSize),[vp.fontWeight]:nt(yp.fontWeight),[vp.fontFamily]:nt(yp.fontFamily),[vp.linkColor]:nt(xp.textColor),[vp.linkTextDecoration]:"none",[vp.linkHoverTextDecoration]:"underline",[vp.fontWeightBold]:"900",[vp.minWidth]:"0.25em",[vp.minHeight]:"1.35em",[vp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[vp.hostDisplay]:"none"}}};var Cp=Object.freeze({__proto__:null,default:zp,vars:vp});const Sp=w("input-wrapper"),Lp=ot(rp),[wp,Ap]=rt({labelTextColor:Lp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:Lp.colors.surface.contrast,placeholderTextColor:Lp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Lp.colors.surface.dark,errorMessageTextColor:Lp.colors.error.main,successMessageTextColor:Lp.colors.success.main,borderWidth:Lp.border.xs,borderRadius:Lp.radius.xs,borderColor:"transparent",outlineWidth:Lp.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:Lp.colors.surface.main,fontFamily:Lp.fonts.font1.family,direction:Lp.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:Lp.colors.surface.light,_invalid:{outlineColor:Lp.colors.error.main}},_bordered:{outlineWidth:Lp.border.xs,borderColor:Lp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Lp.colors.error.main}},_disabled:{labelTextColor:Lp.colors.surface.light,borderColor:Lp.colors.surface.light,valueTextColor:Lp.colors.surface.light,placeholderTextColor:Lp.colors.surface.light,helperTextColor:Lp.colors.surface.light,backgroundColor:Lp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},Sp),fp=ot(rp),Ep=jo.cssVarList,kp={[Ep.hostWidth]:Ap.width,[Ep.hostDirection]:Ap.direction,[Ep.fontSize]:Ap.fontSize,[Ep.fontFamily]:Ap.fontFamily,[Ep.labelFontSize]:Ap.labelFontSize,[Ep.labelFontWeight]:Ap.labelFontWeight,[Ep.inputValueFontWeight]:Ap.inputValueFontWeight,[Ep.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Ep.helperTextFontWeight]:Ap.helperTextFontWeight,[Ep.errorMessageFontWeight]:Ap.errorMessageFontWeight,[Ep.labelTextColor]:Ap.labelTextColor,[Ep.errorMessageTextColor]:Ap.errorMessageTextColor,[Ep.inputBorderColor]:Ap.borderColor,[Ep.inputBorderWidth]:Ap.borderWidth,[Ep.inputBorderStyle]:Ap.borderStyle,[Ep.inputBorderRadius]:Ap.borderRadius,[Ep.inputOutlineColor]:Ap.outlineColor,[Ep.inputOutlineOffset]:Ap.outlineOffset,[Ep.inputOutlineWidth]:Ap.outlineWidth,[Ep.inputOutlineStyle]:Ap.outlineStyle,[Ep.labelRequiredIndicator]:Ap.requiredIndicator,[Ep.inputValueTextColor]:Ap.valueTextColor,[Ep.inputPlaceholderTextColor]:Ap.placeholderTextColor,[Ep.inputBackgroundColor]:Ap.backgroundColor,[Ep.inputHorizontalPadding]:Ap.horizontalPadding,[Ep.inputHeight]:Ap.inputHeight,[Ep.inputDropdownButtonColor]:fp.colors.surface.dark,[Ep.inputDropdownButtonCursor]:"pointer",[Ep.inputDropdownButtonSize]:Ap.toggleButtonSize,[Ep.inputDropdownButtonOffset]:fp.spacing.xs,[Ep.overlayItemPaddingInlineStart]:fp.spacing.xs,[Ep.overlayItemPaddingInlineEnd]:fp.spacing.lg,[Ep.labelPosition]:Ap.labelPosition,[Ep.labelTopPosition]:Ap.labelTopPosition,[Ep.labelHorizontalPosition]:Ap.labelHorizontalPosition,[Ep.inputTransformY]:Ap.inputTransformY,[Ep.inputTransition]:Ap.inputTransition,[Ep.marginInlineStart]:Ap.marginInlineStart,[Ep.placeholderOpacity]:Ap.placeholderOpacity,[Ep.inputVerticalAlignment]:Ap.inputVerticalAlignment,[Ep.valueInputHeight]:Ap.valueInputHeight,[Ep.valueInputMarginBottom]:Ap.valueInputMarginBottom,[Ep.errorMessageIcon]:Ap.errorMessageIcon,[Ep.errorMessageIconSize]:Ap.errorMessageIconSize,[Ep.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Ep.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Ep.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Ep.errorMessageFontSize]:Ap.errorMessageFontSize,_readonly:{[Ep.inputDropdownButtonCursor]:"default"},[Ep.overlayFontSize]:Ap.fontSize,[Ep.overlayFontFamily]:Ap.fontFamily,[Ep.overlayCursor]:"pointer",[Ep.overlayItemBoxShadow]:"none",[Ep.overlayBackground]:Ap.backgroundColor,[Ep.overlayTextColor]:Ap.valueTextColor,[Ep.overlayCheckmarkDisplay]:"initial",[Ep.overlaySelectedItemBackground]:"initial",[Ep.overlaySelectedItemHoverBackground]:fp.colors.primary.highlight,[Ep.overlaySelectedItemFocusBackground]:fp.colors.primary.highlight,[Ep.overlayItemHoverBackground]:fp.colors.primary.highlight,[Ep.overlayItemFocusBackground]:fp.colors.primary.highlight,[Ep.overlay.margin]:"0",[Ep.overlay.contentHeight]:"100%",[Ep.overlay.contentOpacity]:"1",[Ep.overlay.scrollerMinHeight]:"1px",_loading:{[Ep.overlay.loaderTop]:"50%",[Ep.overlay.loaderLeft]:"50%",[Ep.overlay.loaderRight]:"auto",[Ep.overlay.loaderMargin]:"-15px 0 0 -15px",[Ep.overlay.loaderWidth]:"30px",[Ep.overlay.loaderHeight]:"30px",[Ep.overlay.loaderBorder]:"2px solid transparent",[Ep.overlay.loaderBorderColor]:`${fp.colors.primary.highlight} ${fp.colors.primary.highlight} ${fp.colors.primary.main} ${fp.colors.primary.main}`,[Ep.overlay.loaderBorderRadius]:"50%",[Ep.overlay.contentHeight]:"100px",[Ep.overlay.scrollerMinHeight]:"100px",[Ep.overlay.contentOpacity]:"0"}};var Op=Object.freeze({__proto__:null,comboBox:kp,default:kp,vars:Ep});const Vp=ot(rp),[Wp,Up]=rt({shadowColor:"#00000020"},Sc),{shadowColor:Rp}=Up,Yp=wc.cssVarList,Qp={...Wp,[Yp.hostWidth]:"fit-content",[Yp.hostDirection]:Vp.direction,[Yp.textAlign]:"center",[Yp.fontFamily]:Vp.fonts.font1.family,[Yp.fontWeight]:"400",[Yp.verticalPadding]:"0.25em",[Yp.horizontalPadding]:"0.5em",[Yp.borderWidth]:Vp.border.xs,[Yp.borderRadius]:Vp.radius.xs,[Yp.borderColor]:"transparent",[Yp.borderStyle]:"solid",_fullWidth:{[Yp.hostWidth]:"100%"},size:{xs:{[Yp.fontSize]:"12px"},sm:{[Yp.fontSize]:"14px"},md:{[Yp.fontSize]:"16px"},lg:{[Yp.fontSize]:"18px"}},variant:{contained:{[Yp.backgroundColor]:Vp.colors.surface.main}},_shrinkToIndicator:{[Yp.hostWidth]:"13px",[Yp.hostHeight]:"13px",[Yp.borderRadius]:"50%",[Yp.fontSize]:"0",[Yp.textIndent]:"-9999px"},mode:{default:{[Yp.textColor]:Vp.colors.surface.dark,_bordered:{[Yp.borderColor]:Vp.colors.surface.light}},primary:{[Yp.textColor]:Vp.colors.primary.main,_bordered:{[Yp.borderColor]:Vp.colors.primary.light}},secondary:{[Yp.textColor]:Vp.colors.secondary.main,_bordered:{[Yp.borderColor]:Vp.colors.secondary.light}},error:{[Yp.textColor]:Vp.colors.error.main,_bordered:{[Yp.borderColor]:Vp.colors.error.light}},success:{[Yp.textColor]:Vp.colors.success.main,_bordered:{[Yp.borderColor]:Vp.colors.success.light}}},shadow:{sm:{[Yp.boxShadow]:`${Vp.shadow.wide.sm} ${Rp}, ${Vp.shadow.narrow.sm} ${Rp}`},md:{[Yp.boxShadow]:`${Vp.shadow.wide.md} ${Rp}, ${Vp.shadow.narrow.md} ${Rp}`},lg:{[Yp.boxShadow]:`${Vp.shadow.wide.lg} ${Rp}, ${Vp.shadow.narrow.lg} ${Rp}`},xl:{[Yp.boxShadow]:`${Vp.shadow.wide.xl} ${Rp}, ${Vp.shadow.narrow.xl} ${Rp}`}}};var Bp=Object.freeze({__proto__:null,default:Qp,vars:Yp});const Pp=w("avatar");class Zp extends(Nt({componentName:Pp,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:Fp,editableBadge:Gp,avatar:Hp}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Jp=T(pt({mappings:{hostWidth:[{...Fp,property:"width"},{...Fp,property:"min-width"}],hostHeight:{...Fp,property:"height"},cursor:[Hp,Fp],hostDirection:{...Fp,property:"direction"},avatarTextColor:{...Hp,property:"color"},avatarBackgroundColor:{...Hp,property:"background-color"},editableIconColor:{...Gp,property:"color"},editableBorderColor:{...Gp,property:"border-color"},editableBackgroundColor:{...Gp,property:"background-color"}}}),ht,gt)(Zp),$p=ot(rp),qp=Jp.cssVarList,_p={[qp.hostDirection]:$p.direction,[qp.editableIconColor]:$p.colors.surface.dark,[qp.editableBorderColor]:$p.colors.surface.dark,[qp.editableBackgroundColor]:$p.colors.surface.main,[qp.avatarTextColor]:$p.colors.surface.main,[qp.avatarBackgroundColor]:$p.colors.surface.dark,_editable:{[qp.cursor]:"pointer"},size:{xs:{[qp.hostWidth]:"30px",[qp.hostHeight]:"30px"},sm:{[qp.hostWidth]:"40px",[qp.hostHeight]:"40px"},md:{[qp.hostWidth]:"60px",[qp.hostHeight]:"60px"},lg:{[qp.hostWidth]:"98px",[qp.hostHeight]:"98px"},xl:{[qp.hostWidth]:"120px",[qp.hostHeight]:"120px"},"2xl":{[qp.hostWidth]:"140px",[qp.hostHeight]:"140px"}}},Xp={...qp};var Kp=Object.freeze({__proto__:null,default:_p,vars:Xp});const th=Lo.cssVarList;var eh=Object.freeze({__proto__:null,default:{},vars:th});const ih=Co.cssVarList;var oh=Object.freeze({__proto__:null,default:{},vars:ih});const nh=w("apps-list"),rh=T(pt({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:yu.componentName,property:yu.cssVarList.gap},maxRowItems:{selector:yu.componentName,property:yu.cssVarList.maxRowItems},itemsFontWeight:{selector:wi.componentName,property:wi.cssVarList.fontWeightOverride},itemsFontSize:{selector:wi.componentName,property:wi.cssVarList.fontSizeOverride},itemsTextAlign:{selector:wi.componentName,property:wi.cssVarList.textAlign},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},logoBackgroundColor:{selector:Jp.componentName,property:Jp.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:Jp.componentName,property:Jp.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${gu.componentName}:hover`,property:gu.cssVarList.backgroundColor},backgroundColor:{selector:yu.componentName,property:yu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:gu.componentName,property:gu.cssVarList.borderStyleOverride},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColorOverride},itemBorderWidth:{selector:gu.componentName,property:gu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:wi.componentName,property:wi.cssVarList.textAlign}]}}),Wt({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"]}),ht,gt,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:nh,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 ${wi.cssVarList.hostDirection}: var(${rh.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),sh=rh.cssVarList,ah=ot(rp),lh="400px",dh={[sh.itemsTextAlign]:"start",[sh.hostDirection]:ah.direction,[sh.maxHeight]:lh,[sh.itemHoverBackgroundColor]:ah.colors.surface.highlight,_empty:{[sh.minHeight]:lh},size:{xs:{[sh.itemsFontSize]:"14px",[sh.itemsFontWeight]:"normal"},sm:{[sh.itemsFontSize]:"14px",[sh.itemsFontWeight]:"normal"},md:{[sh.itemsFontSize]:"16px",[sh.itemsFontWeight]:"normal"},lg:{[sh.itemsFontSize]:"20px",[sh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[sh.itemVerticalPadding]:ah.spacing.xs,[sh.itemHorizontalPadding]:ah.spacing.xs},sm:{[sh.itemVerticalPadding]:ah.spacing.sm,[sh.itemHorizontalPadding]:ah.spacing.sm},md:{[sh.itemVerticalPadding]:ah.spacing.md,[sh.itemHorizontalPadding]:ah.spacing.md},lg:{[sh.itemVerticalPadding]:ah.spacing.lg,[sh.itemHorizontalPadding]:ah.spacing.lg},xl:{[sh.itemVerticalPadding]:ah.spacing.xl,[sh.itemHorizontalPadding]:ah.spacing.xl}}};var ch=Object.freeze({__proto__:null,default:dh,vars:sh});const uh=ot(rp),ph=yu.cssVarList,[hh,gh,Mh]=rt({shadowColor:"#00000020"},Mu),{shadowColor:mh}=gh,yh={...hh,[ph.hostWidth]:"100%",[ph.backgroundColor]:uh.colors.surface.main,[ph.fontFamily]:uh.fonts.font1.family,[ph.borderColor]:uh.colors.surface.light,[ph.borderStyle]:"solid",[ph.borderWidth]:uh.border.xs,[ph.borderRadius]:uh.radius.sm,[ph.gap]:uh.spacing.md,[ph.verticalPadding]:uh.spacing.lg,[ph.horizontalPadding]:uh.spacing.lg,[ph.boxShadow]:`${uh.shadow.wide.sm} ${mh}, ${uh.shadow.narrow.sm} ${mh}`,[ph.maxHeight]:"100%",[ph.hostDirection]:uh.direction,[ph.minItemsWidth]:"150px",[ph.maxRowItems]:"1000",_empty:{[ph.minHeight]:"150px",[ph.emptyStateTextColor]:uh.colors.surface.dark,[ph.emptyStateTextFontFamily]:uh.fonts.font1.family},variant:{tiles:{[ph.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${nt(ph.minItemsWidth)}, 100%),\n calc((100% - (${nt(ph.maxRowItems)} - 1) * ${nt(ph.gap)}) / ${nt(ph.maxRowItems)})),\n 1fr))`,[ph.maxItemsWidth]:"200px",[ph.itemsHorizontalAlign]:"center"}},gap:{xs:{[ph.gap]:uh.spacing.xs},sm:{[ph.gap]:uh.spacing.sm},md:{[ph.gap]:uh.spacing.md},lg:{[ph.gap]:uh.spacing.lg},xl:{[ph.gap]:uh.spacing.xl}}},bh={...ph,...Mh};var Nh=Object.freeze({__proto__:null,default:yh,vars:bh});const Ih=ot(rp),xh=gu.cssVarList,jh={[xh.backgroundColor]:Ih.colors.surface.main,[xh.verticalPadding]:Ih.spacing.lg,[xh.horizontalPadding]:Ih.spacing.lg,[xh.gap]:Ih.spacing.md,[xh.borderStyle]:"solid",[xh.borderWidth]:Ih.border.xs,[xh.borderColor]:Ih.colors.surface.main,[xh.borderRadius]:Ih.radius.sm,[xh.cursor]:"pointer",[xh.alignItems]:"center",[xh.flexDirection]:"row",[xh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[xh.alignItems]:"flex-start",[xh.flexDirection]:"column",[xh.borderColor]:Ih.colors.surface.light}},_hover:{[xh.backgroundColor]:Ih.colors.surface.highlight},_active:{[xh.backgroundColor]:Ih.colors.surface.main,[xh.borderColor]:Ih.colors.primary.light,[xh.outline]:`1px solid ${Ih.colors.primary.light}`}};var Th=Object.freeze({__proto__:null,default:jh,vars:xh});const Dh=w("multi-select-combo-box"),{host:vh,inputField:zh,inputElement:Ch,placeholder:Sh,toggle:Lh,clearButton:wh,label:Ah,requiredIndicator:fh,helperText:Eh,errorMessage:kh,chip:Oh,chipLabel:Vh,overflowChipFirstBorder:Wh,overflowChipSecondBorder:Uh}={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"}},Rh=T(pt({mappings:{hostWidth:{...vh,property:"width"},hostDirection:{...vh,property:"direction"},fontSize:[{},vh],chipFontSize:{...Vh,property:"font-size"},fontFamily:[Ah,Sh,zh,Eh,kh,Vh],labelFontSize:{...Ah,property:"font-size"},labelFontWeight:{...Ah,property:"font-weight"},inputValueFontWeight:{...zh,property:"font-weight"},inputPlaceholderFontWeight:{...Sh,property:"font-weight"},helperTextFontWeight:{...Eh,property:"font-weight"},errorMessageFontWeight:{...kh,property:"font-weight"},labelTextColor:[{...Ah,property:"color"},{...fh,property:"color"}],errorMessageTextColor:{...kh,property:"color"},errorMessageIcon:{...kh,property:"background-image"},errorMessageIconSize:{...kh,property:"background-size"},errorMessageIconPadding:{...kh,property:"padding-inline-start"},errorMessageIconRepeat:{...kh,property:"background-repeat"},errorMessageIconPosition:{...kh,property:"background-position"},errorMessageFontSize:{...kh,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:{...fh,property:"content"},inputValueTextColor:{...zh,property:"color"},inputPlaceholderTextColor:{...Sh,property:"color"},inputDropdownButtonCursor:[{...Lh,property:"cursor"},{...wh,property:"cursor"}],inputDropdownButtonColor:[{...Lh,property:"color"},{...wh,property:"color"}],inputDropdownButtonSize:[{...Lh,property:"font-size"},{...wh,property:"font-size"}],inputDropdownButtonOffset:[{...Lh,property:"margin-right"},{...Lh,property:"margin-left"}],inputOutlineColor:{...zh,property:"outline-color"},inputOutlineWidth:{...zh,property:"outline-width"},inputOutlineStyle:{...zh,property:"outline-style"},inputOutlineOffset:{...zh,property:"outline-offset"},inputHorizontalPadding:[{...Ch,property:"padding-left"},{...Ch,property:"padding-right"},{...zh,property:"padding-inline-start"}],inputVerticalPadding:[{...zh,property:"padding-top"},{...zh,property:"padding-bottom"}],chipTextColor:{...Vh,property:"color"},chipBackgroundColor:[{...Oh,property:"background-color"},{...Wh,property:"border-color"},{...Uh,property:"border-color"}],labelPosition:{...Ah,property:"position"},labelTopPosition:{...Ah,property:"top"},labelLeftPosition:{...Ah,property:"left"},labelHorizontalPosition:[{...Ah,property:"left"},{...Ah,property:"right"}],inputTransformY:{...Ah,property:"transform"},inputTransition:{...Ah,property:"transition"},marginInlineStart:{...Ah,property:"margin-inline-start"},placeholderOpacity:{...Sh,property:"opacity"},inputVerticalAlignment:{...zh,property:"align-items"},overlayBackground:{property:()=>Rh.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Rh.cssVarList.overlay.textColor},overlayBorder:{property:()=>Rh.cssVarList.overlay.border},overlayFontSize:{property:()=>Rh.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Rh.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Rh.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Rh.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Rh.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Rh.cssVarList.overlay.itemPaddingInlineEnd}}}),ht,kt({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"]}}),Et({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),xt,gt,t=>class extends t{static get observedAttributes(){return["readonly"]}#et=({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};#U;#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.#et}set renderItem(t){this.#et=t,this.renderItems()}get data(){if(this.#U)return this.#U;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.#U=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.#U)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())}#it(){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}}#ot(){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.#et({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.#it.bind(this)),f(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#ot()}),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.#et({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${$(Rh.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 ${K("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:Dh,includeForwardProps:["items","renderer","selectedItems"]})),Yh=w("multi-line-mappings"),Qh=Nt({componentName:Yh}),Bh=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),Ph=t=>[...new Set(t.map(Bh).filter(Boolean))],Zh=t=>{const e=Bh(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},Fh=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(Zh).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},Gh=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),Hh={selector:()=>":host"},Jh={selector:".row"},$h={selector:".add-action"},qh=T(pt({mappings:{hostWidth:{...Hh,property:"width"},hostDirection:[{...Hh,property:"direction"},{selector:Rh.componentName,property:Rh.cssVarList.hostDirection},{selector:Oo.componentName,property:Oo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...Jh,property:"gap"},rowAlignItems:{...Jh,property:"align-items"},rowWrap:{...Jh,property:"flex-wrap"},addActionJustifyContent:{...$h,property:"justify-content"},addActionMarginTop:{...$h,property:"margin-top"}}}),ht)(class extends Qh{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=[];#Le={};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.#Le}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.#we(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:Fh(n)}}),this.#Le=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.#Ue();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.#Ue();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.#Ue(),"merge-rows"===t&&null!==this.#Ce&&(this.#ze=this.#we(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.#Re())return;const t={firstValues:[],secondValues:[]};this.#ze=[...this.#ze,t],this.rowsElement.append(this.#Ye(t)),this.#Ue()}#we(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:Ph(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.#Le[t]||[]).filter(t=>t.length):Object.values(this.#Le).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:Ph(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.#Ue()}#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)}#Ue(){this.disabled||this.readonly||this.#Re()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#Re(){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(Gh(o.firstValues,i)&&Gh(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}Gh(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.#Ue(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#$e()}#$e(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}),_h=qh.cssVarList,Xh={[_h.hostDirection]:Ap.direction,[_h.rowsGap]:rp.spacing.sm,[_h.rowGap]:rp.spacing.sm,[_h.rowAlignItems]:"flex-end",[_h.rowWrap]:"nowrap",[_h.addActionJustifyContent]:"flex-start",[_h.addActionMarginTop]:rp.spacing.xs,_fullWidth:{[_h.hostWidth]:"100%"}};var Kh=Object.freeze({__proto__:null,default:Xh,vars:_h});const tg=ot(rp),eg=Rh.cssVarList,ig={[eg.hostWidth]:Ap.width,[eg.hostDirection]:Ap.direction,[eg.fontSize]:Ap.fontSize,[eg.fontFamily]:Ap.fontFamily,[eg.labelFontSize]:Ap.labelFontSize,[eg.labelFontWeight]:Ap.labelFontWeight,[eg.inputValueFontWeight]:Ap.inputValueFontWeight,[eg.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[eg.helperTextFontWeight]:Ap.helperTextFontWeight,[eg.errorMessageFontWeight]:Ap.errorMessageFontWeight,[eg.labelTextColor]:Ap.labelTextColor,[eg.errorMessageTextColor]:Ap.errorMessageTextColor,[eg.inputBorderColor]:Ap.borderColor,[eg.inputBorderWidth]:Ap.borderWidth,[eg.inputBorderStyle]:Ap.borderStyle,[eg.inputBorderRadius]:Ap.borderRadius,[eg.inputOutlineColor]:Ap.outlineColor,[eg.inputOutlineOffset]:Ap.outlineOffset,[eg.inputOutlineWidth]:Ap.outlineWidth,[eg.inputOutlineStyle]:Ap.outlineStyle,[eg.labelRequiredIndicator]:Ap.requiredIndicator,[eg.inputValueTextColor]:Ap.valueTextColor,[eg.inputPlaceholderTextColor]:Ap.placeholderTextColor,[eg.inputBackgroundColor]:Ap.backgroundColor,[eg.inputHorizontalPadding]:Ap.horizontalPadding,[eg.inputVerticalPadding]:Ap.verticalPadding,[eg.inputHeight]:Ap.inputHeight,[eg.inputDropdownButtonColor]:tg.colors.surface.dark,[eg.inputDropdownButtonCursor]:"pointer",[eg.inputDropdownButtonSize]:Ap.toggleButtonSize,[eg.inputDropdownButtonOffset]:tg.spacing.xs,[eg.overlayItemPaddingInlineStart]:tg.spacing.xs,[eg.overlayItemPaddingInlineEnd]:tg.spacing.lg,[eg.chipFontSize]:Ap.chipFontSize,[eg.chipTextColor]:tg.colors.surface.contrast,[eg.chipBackgroundColor]:tg.colors.surface.light,[eg.labelPosition]:Ap.labelPosition,[eg.labelTopPosition]:Ap.labelTopPosition,[eg.labelLeftPosition]:Ap.labelLeftPosition,[eg.labelHorizontalPosition]:Ap.labelHorizontalPosition,[eg.inputTransformY]:Ap.inputTransformY,[eg.inputTransition]:Ap.inputTransition,[eg.marginInlineStart]:Ap.marginInlineStart,[eg.placeholderOpacity]:Ap.placeholderOpacity,[eg.inputVerticalAlignment]:Ap.inputVerticalAlignment,[eg.errorMessageIcon]:Ap.errorMessageIcon,[eg.errorMessageIconSize]:Ap.errorMessageIconSize,[eg.errorMessageIconPadding]:Ap.errorMessageIconPadding,[eg.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[eg.errorMessageIconPosition]:Ap.errorMessageIconPosition,[eg.errorMessageFontSize]:Ap.errorMessageFontSize,labelType:{floating:{[eg.inputHorizontalPadding]:"0.25em",_hasValue:{[eg.inputHorizontalPadding]:"0.45em"}}},_readonly:{[eg.inputDropdownButtonCursor]:"default"},[eg.overlayFontSize]:Ap.fontSize,[eg.overlayFontFamily]:Ap.fontFamily,[eg.overlayCursor]:"pointer",[eg.overlayItemBoxShadow]:"none",[eg.overlayBackground]:Ap.backgroundColor,[eg.overlayTextColor]:Ap.valueTextColor,[eg.overlay.minHeight]:"400px",[eg.overlay.margin]:"0"};var og=Object.freeze({__proto__:null,default:ig,multiSelectComboBox:ig,vars:eg});const ng=w("autocomplete-field-internal"),rg=zt({componentName:ng,baseSelector:""}),sg=[],ag="DESCOPE_INVALID_OPTION",lg=w("autocomplete-field"),{host:dg}={host:{selector:()=>":host"}},cg=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:{...dg,property:"width"},hostDirection:{...dg,property:"direction"},fontSize:{...dg},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}}}),ht,Et({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),gt,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 <${ng}\n tabindex="-1"\n ></${ng}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ng),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:lg})),ug=cg.cssVarList,pg=ot(rp),hg={[ug.hostWidth]:Ap.width,[ug.hostDirection]:Ap.direction,[ug.fontSize]:Ap.fontSize,[ug.checkmarkDisplay]:"none",[ug.itemPaddingInlineStart]:pg.spacing.lg,[ug.itemPaddingInlineEnd]:pg.spacing.lg,[ug.selectedItemBackground]:pg.colors.primary.light,[ug.selectedItemHoverBackground]:pg.colors.primary.light,[ug.selectedItemFocusBackground]:pg.colors.primary.light,[ug.itemHoverBackground]:pg.colors.primary.highlight,_fullWidth:{[ug.hostWidth]:"100%"}};var gg=Object.freeze({__proto__:null,default:hg,vars:ug});class Mg extends(St()){#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:Ct}}}#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 mg extends(St()){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:Ct}}}#Ke(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const yg=w("address-field-internal"),bg="google-maps-places",Ng="radar",Ig={[bg]:Mg,[Ng]:mg},xg=zt({componentName:yg,baseSelector:""}),jg=["public-api-key"],Tg=[...jg],Dg=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:Ig}))(class extends xg{static get observedAttributes(){return[].concat(xg.observedAttributes||[],Tg)}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&&jg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),vg=w("address-field"),{host:zg}={host:{selector:()=>":host"}},Cg=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:{...zg,property:"width"},hostDirection:{...zg,property:"direction"}}}),ht,Et({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),gt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(t){this.inputElement.connectorClasses=t}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${yg}\n tabindex="-1"\n ></${yg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(yg),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 ${yg} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${yg} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:vg})),Sg=Cg.cssVarList,Lg={[Sg.hostWidth]:Ap.width,[Sg.hostDirection]:Ap.direction,_fullWidth:{[Sg.hostWidth]:"100%"}};var wg=Object.freeze({__proto__:null,default:Lg,vars:Sg});const Ag=(t,e=2)=>String(t).padStart(e,"0"),fg=w("timer"),Eg=["seconds","hide-icon","paused"],kg=Nt({componentName:fg,baseSelector:":host > .wrapper"}),{host:Og,icon:Vg,timer:Wg}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},Ug=T(pt({mappings:{fontSize:{},iconSize:[{...Vg,property:"width"},{...Vg,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...Wg},lineHeight:{...Wg},textColor:{...Wg,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...Og,property:"width"},hostDirection:{...Og,property:"direction"},iconColor:{...Vg,property:Lo.cssVarList.fill}}}),ht,gt)(class extends kg{#ei=0;#ii;static get observedAttributes(){return Eg.concat(kg.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?[Ag(i)]:[],Ag(o),Ag(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))}}),Rg=ot(rp),Yg=Ug.cssVarList,Qg={[Yg.hostDirection]:Rg.direction,[Yg.gap]:"0.25em",[Yg.fontFamily]:Rg.fonts.font1.family,[Yg.minHeight]:"1.5em",[Yg.lineHeight]:"1em",[Yg.fontWeight]:Rg.fonts.font1.fontWeight,[Yg.textColor]:Rg.colors.surface.contrast,[Yg.iconColor]:Rg.colors.surface.contrast,[Yg.iconSize]:"1em",size:{xs:{[Yg.fontSize]:"12px"},sm:{[Yg.fontSize]:"14px"},md:{[Yg.fontSize]:"16px"},lg:{[Yg.fontSize]:"18px"}},textAlign:{right:{[Yg.textAlign]:"right"},left:{[Yg.textAlign]:"left"},center:{[Yg.textAlign]:"center"}},_fullWidth:{[Yg.hostWidth]:"100%"}};var Bg=Object.freeze({__proto__:null,default:Qg,vars:Yg});const Pg=w("timer-button"),Zg=["button-variant","button-mode","size","text-align","full-width"],Fg={"button-variant":"variant","button-mode":"mode"},Gg=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],Hg={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},Jg=Nt({componentName:Pg,baseSelector:":host > div"}),{host:$g,nestedTimer:qg,nestedButton:_g,timerInsideNotReversed:Xg,timerInsideReversed:Kg}={host:{selector:()=>":host"},nestedTimer:{selector:()=>':host([timer-inside="true"]) .timer'},nestedButton:{selector:()=>':host([timer-inside="true"]) .button'},timerInsideNotReversed:{selector:()=>':host([timer-inside="true"]:not([timer-position="end"])) .timer'},timerInsideReversed:{selector:()=>':host([timer-inside="true"][timer-position="end"]) .timer'}},tM=T(pt({mappings:{gap:{},flexDirection:{},hostWidth:{...$g,property:"width"},hostDirection:{...$g,property:"direction"},timerTextColor:{...qg,property:Ug.cssVarList.textColor},timerIconColor:{...qg,property:Ug.cssVarList.iconColor},timerHostWidth:{...qg,property:Ug.cssVarList.hostWidth},buttonLabelSpacing:{..._g,property:Oo.cssVarList.labelSpacing},timerInsideGapEnd:{...Xg,property:"margin-inline-end"},timerInsideGapStart:{...Kg,property:"margin-inline-start"}}}),ht,gt)(class extends Jg{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:Zg,mapAttrs:Fg}),f(this,this.timer,{includeAttrs:Gg,mapAttrs:Hg}),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")})}}),eM=ot(rp),iM=tM.cssVarList,oM={[iM.gap]:eM.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 nM=Object.freeze({__proto__:null,default:oM,vars:iM});const rM=w("password-strength");class sM extends(Nt({componentName:rM,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 MT}).then(t=>t.default);#ui=-1;async calcScore(){const t=this.getAttribute("value")||"";return t?(await this.getCalcScoreFn())(t).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((t,e)=>{const i=document.createElement("div");return i.classList.add("bar"),i.classList.toggle("filled",e<=this.#ui),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#ui&&(this.#ui=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#ui})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#ui)}),this.textContainer.innerHTML=this.options[this.#ui]||"",-1===this.#ui?this.removeAttribute("score"):this.setAttribute("score",this.#ui))}attributeChangedCallback(t,e,i){if(e!==i)return"options"===t?this.renderBars():"value"===t?this.onValueChange():void 0}}const{host:aM,bar:lM,filledBar:dM,barsContainer:cM,text:uM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},pM=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:[{...aM,property:"width"},{...aM,property:"min-width"}],hostDirection:{...aM,property:"direction"},hostMinWidth:{...aM,property:"min-width"},barHeight:{...lM,property:"height"},barBorderRadius:{...lM,property:"border-radius"},emptyBarColor:{...lM,property:"background-color"},filledBarColor:{...dM,property:"background-color"},textColor:{...uM,property:"color"},spacing:{property:"gap"},barSpacing:{...cM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...lM,property:"transition"}}}),ht,gt)(sM),hM=ot(rp),gM=pM.cssVarList,MM={[gM.hostDirection]:hM.direction,[gM.barHeight]:"4px",[gM.barTransition]:"background-color 0.3s",[gM.barBorderRadius]:hM.radius.sm,[gM.hostMinWidth]:Ap.minWidth,[gM.barSpacing]:hM.spacing.sm,[gM.emptyBarColor]:hM.colors.surface.light,[gM.fontFamily]:Ap.fontFamily,[gM.fontSize]:Ap.labelFontSize,[gM.fontWeight]:Ap.labelFontWeight,[gM.spacing]:hM.spacing.sm,_fullWidth:{[gM.hostWidth]:"100%"},score:{0:{[gM.filledBarColor]:hM.colors.error.light,[gM.textColor]:hM.colors.error.light},1:{[gM.filledBarColor]:hM.colors.error.main,[gM.textColor]:hM.colors.error.main},2:{[gM.filledBarColor]:hM.colors.error.dark,[gM.textColor]:hM.colors.error.dark},3:{[gM.filledBarColor]:hM.colors.success.dark,[gM.textColor]:hM.colors.success.dark},4:{[gM.filledBarColor]:hM.colors.success.main,[gM.textColor]:hM.colors.success.main}}},mM={...gM};var yM=Object.freeze({__proto__:null,default:MM,vars:mM});const bM=w("collapsible-container");class NM extends(Nt({componentName:bM,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(${wi.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 IM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},xM=T(pt({mappings:{hostWidth:{selector:IM.host,property:"width"},hostDirection:{selector:IM.host,property:"direction"},verticalPadding:[{selector:IM.wrapper,property:"padding-top"},{selector:IM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:IM.wrapper,property:"padding-left"},{selector:IM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:IM.wrapper},backgroundImage:{selector:IM.wrapper},backgroundPositionX:{selector:IM.wrapper},backgroundPositionY:{selector:IM.wrapper},backgroundSize:{selector:IM.wrapper},backgroundRepeat:{selector:IM.wrapper},borderRadius:{selector:IM.wrapper},borderColor:{selector:IM.wrapper},borderStyle:{selector:IM.wrapper},borderWidth:{selector:IM.wrapper},boxShadow:{selector:IM.wrapper},headerIconOrder:{selector:IM.iconWrapper,property:"order"},headerCursor:{selector:IM.header,property:"cursor"},headerGap:{selector:IM.iconAndText,property:"gap"},textGrow:{selector:IM.text,property:"flex-grow"},textDirection:{selector:IM.text,property:"direction"},iconAnimationDuration:{selector:IM.icon,property:"transition-duration"},contentAnimationDuration:{selector:IM.content,property:"transition-duration"},chevronRotation:{selector:IM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),ht,gt)(NM),jM=ot(rp),TM=xM.cssVarList,[DM,vM,zM]=rt({shadowColor:"#00000020"},bM),{shadowColor:CM}=vM,SM={...DM,[TM.hostWidth]:"100%",[TM.boxShadow]:"none",[TM.backgroundColor]:jM.colors.surface.main,[TM.backgroundImage]:"",[TM.backgroundPositionX]:"center",[TM.backgroundPositionY]:"center",[TM.backgroundSize]:"cover",[TM.backgroundRepeat]:"no-repeat",[TM.borderRadius]:"0px",[TM.hostDirection]:jM.direction,[TM.flexDirection]:"column",[TM.alignItems]:"flex-start",[TM.justifyContent]:"flex-start",[TM.headerGap]:jM.spacing.md,[TM.chevronRotation]:"rotate(180deg)",[TM.iconAnimationDuration]:"0.1s",[TM.contentAnimationDuration]:"0.1s",[TM.borderWidth]:"0px",[TM.textGrow]:"0",verticalPadding:{sm:{[TM.verticalPadding]:"5px"},md:{[TM.verticalPadding]:"10px"},lg:{[TM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[TM.horizontalPadding]:"5px"},md:{[TM.horizontalPadding]:"10px"},lg:{[TM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[TM.gap]:"10px"},md:{[TM.gap]:"20px"},lg:{[TM.gap]:"30px"}},shadow:{sm:{[TM.boxShadow]:`${jM.shadow.wide.sm} ${CM}, ${jM.shadow.narrow.sm} ${CM}`},md:{[TM.boxShadow]:`${jM.shadow.wide.md} ${CM}, ${jM.shadow.narrow.md} ${CM}`},lg:{[TM.boxShadow]:`${jM.shadow.wide.lg} ${CM}, ${jM.shadow.narrow.lg} ${CM}`},xl:{[TM.boxShadow]:`${jM.shadow.wide.xl} ${CM}, ${jM.shadow.narrow.xl} ${CM}`},"2xl":{[zM.shadowColor]:"#00000050",[TM.boxShadow]:`${jM.shadow.wide["2xl"]} ${CM}`}},borderRadius:{sm:{[TM.borderRadius]:jM.radius.sm},md:{[TM.borderRadius]:jM.radius.md},lg:{[TM.borderRadius]:jM.radius.lg},xl:{[TM.borderRadius]:jM.radius.xl},"2xl":{[TM.borderRadius]:jM.radius["2xl"]},"3xl":{[TM.borderRadius]:jM.radius["3xl"]}},iconPosition:{left:{[TM.headerIconOrder]:"0"},right:{[TM.headerIconOrder]:"1"}},_fillTitle:{[TM.textGrow]:"1"},_border:{[TM.borderColor]:jM.colors.surface.light,[TM.borderWidth]:jM.border.xs,[TM.borderStyle]:"solid"},_collapsible:{[TM.headerCursor]:"pointer"}},LM={...TM,...zM};var wM=Object.freeze({__proto__:null,default:SM,vars:LM});const AM=w("recovery-codes"),fM="none",EM={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},kM=["text","variant","color","size","icon","icon-dark"],OM=["show-download",...Object.keys(EM).flatMap(t=>kM.map(e=>`${t}-${e}`))];class VM extends(Nt({componentName:AM,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...OM]}#hi=fM;#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>\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 }\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}=EM[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!==fM}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&&OM.includes(t)&&this.renderButtons())}}const WM=T(pt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>wi.componentName,property:wi.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"}}}),pt({componentNameOverride:w("input-wrapper")}),Wt({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:".list"}),ht,gt)(VM),UM=ot(rp),RM=WM.cssVarList,YM=wi.cssVarList,QM={[RM.hostMinWidth]:"190px",[RM.hostDirection]:UM.direction,[RM.iconColor]:nt(YM.textColor),[RM.iconSize]:nt(YM.fontSize),[RM.iconGap]:"8px",[RM.iconStackGap]:"16px",[RM.buttonsGap]:"8px",[RM.sectionsGap]:"8px",[RM.bulletGap]:"0.35em",[RM.verticalPadding]:"0",[RM.horizontalPadding]:"0",[RM.errorBorderColor]:"transparent",[RM.errorBorderWidth]:Ap.borderWidth,[RM.boxBorderRadius]:Ap.borderRadius,[RM.boxBorderStyle]:"solid",[RM.errorMessageColor]:Ap.errorMessageTextColor,[RM.errorMessageFontSize]:Ap.errorMessageFontSize,[RM.errorMessageFontWeight]:Ap.errorMessageFontWeight,[RM.errorMessageFontFamily]:Ap.fontFamily,textAlign:{right:{[RM.textAlign]:"flex-end"},left:{[RM.textAlign]:"flex-start"},center:{[RM.textAlign]:"center"}},_fullWidth:{[RM.hostWidth]:"100%"},_invalid:{[RM.errorBorderColor]:Ap.errorMessageTextColor}};var BM=Object.freeze({__proto__:null,default:QM,vars:RM});const PM={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41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BhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},ZM=w("active-sessions"),FM=Rh.componentName;let GM;const HM={selector:()=>":host"},JM={selector:()=>FM},$M=T(pt({mappings:{hostWidth:[{...HM,property:"width"},{...JM,property:Rh.cssVarList.hostWidth}],hostDirection:[{...HM,property:"direction"},{...JM,property:Rh.cssVarList.hostDirection}]}}),ht,kt({name:"overlay",forward:!1,selector:async t=>{const e=await(async t=>{if(!t)return null;const e=await L(()=>t)();return e instanceof ShadowRoot?e:null})(t?.querySelector("vaadin-multi-select-combo-box"));return e?.querySelector("vaadin-multi-select-combo-box-internal")},style:"\n .session {\n display: flex;\n flex-direction: column;\n }\n /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the\n title and widen the space to the location line. */\n .session .device descope-text,\n .session .device descope-text::part(text-wrapper) {\n display: block;\n }\n /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,\n so a container outside would only ever see the slot as its single item. */\n .session .device-row {\n display: flex;\n align-items: center;\n }\n .session .device-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n }\n",mappings:{rowGap:{selector:".session",property:"gap"},deviceRowGap:{selector:".device-row",property:"gap"}}}),Et({proxyProps:["value"],inputEvent:"change",proxyParentValidation:!0}),gt,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=(GM||(GM=document.createElement("template"),GM.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 ',GM)).content.cloneNode(!0).firstElementChild;l.setAttribute("data-id",e??""),l.setAttribute("data-name",a),l.querySelector(".device-name").textContent=a;const{iconSrc:d,iconSrcDark:c}=(t=>{const e=PM[t]||PM.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),u=l.querySelector(".device-icon");u.setAttribute("src",d),u.setAttribute("src-dark",c);const p=(t,e)=>{const i=l.querySelector(t);e?i.firstElementChild.textContent=e:i.remove()};p(".location",(({country:t,city:e})=>[e,t].filter(Boolean).join(", "))({country:r,city:n}));const h=(t=>{const e=parseInt(t,10);if(Number.isNaN(e)||e<=0)return"";const i=new Date(1e3*e),o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};try{return i.toLocaleString(void 0,{...o,timeZoneName:"shortOffset"})}catch{return i.toLocaleString(void 0,o)}})(s);return p(".last-login",h&&t.lastLoginLabel?`${t.lastLoginLabel} ${h}`:h),l.outerHTML}),this.inputElement.setAttribute("allow-custom-value","false"),this.inputElement.setAttribute("item-label-path","data-name"),this.inputElement.setAttribute("item-value-path","data-id")}})(Lt({slots:[],wrappedEleName:FM,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${FM} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:ZM})),qM=$M.cssVarList,_M={[qM.hostWidth]:Ap.width,[qM.hostDirection]:Ap.direction,[qM.overlay.rowGap]:"0.125em",[qM.overlay.deviceRowGap]:"0.5em",_fullWidth:{[qM.hostWidth]:"100%"}};var XM=Object.freeze({__proto__:null,default:_M,vars:qM});const KM=w("outbound-apps"),tm=({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`},em=Nt({componentName:KM,baseSelector:"descope-list"}),{host:im}={host:{selector:()=>":host"}},om=T(pt({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:Lo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:Lo.cssVarList.fill},fontSize:{selector:wi.componentName,property:wi.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:wi.componentName,property:wi.cssVarList.textAlign},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>yu.componentName,property:yu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>yu.componentName,property:yu.cssVarList.emptyStateVerticalPadding}}}),ht,Wt({itemRenderer:tm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),gt)(class extends em{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=tm,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),nm=om.cssVarList,rm={[nm.iconColor]:rp.colors.primary.main,[nm.errorIconColor]:rp.colors.error.main,[nm.appLogoGap]:rp.spacing.md,[nm.contentGap]:rp.spacing.xs,[nm.itemCursor]:"default",[nm.itemOutline]:"none",[nm.itemBorderColor]:"transparent",[nm.listPadding]:"0",[nm.listBorderWidth]:"0",[nm.listBoxShadow]:"none",[nm.emptyStateMinHeight]:"0",[nm.emptyStateVerticalPadding]:rp.spacing.lg,size:{xs:{[nm.fontSize]:"0.6em"},sm:{[nm.fontSize]:"0.8em"},md:{[nm.fontSize]:"1em"},lg:{[nm.fontSize]:"1.5em"}}};var sm=Object.freeze({__proto__:null,default:rm,vars:nm});const am=w("outbound-app-button");class lm extends(Nt({componentName:am,baseSelector:":host > descope-button"})){static get observedAttributes(){return["label","icon-src","icon-fill-current-color"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-button>\n <descope-icon class="icon"></descope-icon>\n <span class="label"></span>\n </descope-button>\n ',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 dm=T(pt({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Oo.cssVarList.iconColor}}}),ht,gt)(lm),cm=dm.cssVarList,um={[cm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[cm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[cm.hostWidth]:"100%"}},pm=cm;var hm=Object.freeze({__proto__:null,default:um,vars:pm});const gm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Mm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9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dCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},mm=w("trusted-devices"),ym=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=Mm[t]||Mm.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},bm=Nt({componentName:mm,baseSelector:yu.componentName}),{host:Nm}={host:{selector:()=>":host"}},Im=T(pt({mappings:{hostWidth:{...Nm,property:"width"},hostMinWidth:{...Nm,property:"min-width"},hostDirection:[{...Nm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:yu.cssVarList.gap},listBackgroundColor:{selector:()=>yu.componentName,property:yu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>yu.componentName,property:yu.cssVarList.borderRadius},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>yu.componentName,property:yu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>yu.componentName,property:yu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPadding},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBorderRadius:{selector:gu.componentName,property:gu.cssVarList.borderRadius},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:wc.componentName,property:wc.cssVarList.borderColor},badgeTextColor:{selector:wc.componentName,property:wc.cssVarList.textColor},badgeBackgroundColor:{selector:wc.componentName,property:wc.cssVarList.backgroundColor},badgeBorderRadius:{selector:wc.componentName,property:wc.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"}}}),ht,Wt({itemRenderer:ym,sortFn:(t,e)=>gm(e.lastLoginDate)-gm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),gt)(class extends bm{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=ym,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),xm=Im.cssVarList,jm={[xm.hostWidth]:"auto",[xm.hostWidth]:"300px",[xm.hostMinWidth]:"300px",[xm.listBackgroundColor]:"transparent",[xm.listBorderRadius]:"0",[xm.listBorderWidth]:"0",[xm.listPadding]:"0",[xm.listBoxShadow]:"none",[xm.listItemsGap]:rp.spacing.lg,[xm.emptyStateMinHeight]:"0",[xm.emptyStateVerticalPadding]:rp.spacing.lg,[xm.itemBorderColor]:rp.colors.surface.light,[xm.itemVerticalPadding]:rp.spacing.lg,[xm.itemHorizontalPadding]:rp.spacing.lg,[xm.itemBorderRadius]:rp.radius.xs,[xm.itemOutline]:"transparent",[xm.itemBackgroundColor]:"transparent",[xm.itemCursor]:"default",[xm.itemContentGap]:rp.spacing.sm,[xm.badgeBorderColor]:rp.colors.surface.light,[xm.badgeTextColor]:rp.colors.surface.dark,[xm.badgeBorderRadius]:rp.radius.xs,[xm.badgeBackgroundColor]:rp.colors.surface.main,[xm.devicePanelGap]:rp.spacing.md,[xm.deviceIconGap]:rp.spacing.md,[xm.deviceIconSize]:"24px",[xm.lastLoginLabelGap]:rp.spacing.xs,_fullWidth:{[xm.hostWidth]:"100%"}};var Tm=Object.freeze({__proto__:null,default:jm,vars:xm});const Dm=w("multi-sso"),vm=({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=Nt({componentName:Dm,baseSelector:"span.wrapper"}),{host:Cm}={host:{selector:()=>":host"}},Sm=T(pt({mappings:{hostWidth:{...Cm,property:"width"},hostMinWidth:{...Cm,property:"min-width"},hostDirection:[{...Cm,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:wi.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Oo.componentName,property:Oo.cssVarList.hostMaxWidth},listItemsGap:{property:yu.cssVarList.gap},listBackgroundColor:{selector:()=>yu.componentName,property:yu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>yu.componentName,property:yu.cssVarList.borderRadius},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPadding},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBorderRadius:{selector:gu.componentName,property:gu.cssVarList.borderRadius},itemBackgroundColor:{selector:gu.componentName,property:gu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>wc.componentName,property:wc.cssVarList.borderColor},badgeTextColor:{selector:()=>wc.componentName,property:wc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>wc.componentName,property:wc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>wc.componentName,property:wc.cssVarList.borderRadius},titleIconSize:[{selector:()=>'::slotted([slot="title-icon"])',property:"width"},{selector:()=>'::slotted([slot="title-icon"])',property:"height"}],createButtonIconSize:[{selector:()=>'::slotted([slot="create-button-icon"])',property:"width"},{selector:()=>'::slotted([slot="create-button-icon"])',property:"height"}],actionIconSize:[{selector:()=>".delete-icon",property:"width"},{selector:()=>".delete-icon",property:"height"},{selector:()=>".external-link-icon",property:"width"},{selector:()=>".external-link-icon",property:"height"}],actionIconColor:[{selector:()=>".delete-icon",property:Lo.cssVarList.fill},{selector:()=>".external-link-icon",property:Lo.cssVarList.fill}]}}),ht,Wt({targetSelector:"descope-list",itemRenderer:vm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),gt)(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)=>vm(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)}}),Lm=Sm.cssVarList,wm=ot(rp),Am={[Lm.hostWidth]:"300px",[Lm.headerGap]:wm.spacing.md,[Lm.headerListGap]:wm.spacing.md,[Lm.itemContentGap]:wm.spacing.md,[Lm.actionGap]:wm.spacing.sm,[Lm.authTypeRowGap]:wm.spacing.sm,[Lm.unconfiguredAuthTypeTextColor]:wm.colors.surface.dark,[Lm.unconfiguredAuthTypeTextFontStyle]:"italic",[Lm.buttonMaxWidth]:"50%",[Lm.listBackgroundColor]:"transparent",[Lm.listBorderRadius]:"0",[Lm.listBorderWidth]:"0",[Lm.listPadding]:"0",[Lm.listBoxShadow]:"none",[Lm.listItemsGap]:wm.spacing.lg,[Lm.itemBorderColor]:wm.colors.surface.light,[Lm.itemVerticalPadding]:wm.spacing.lg,[Lm.itemHorizontalPadding]:wm.spacing.lg,[Lm.itemBorderRadius]:wm.radius.xs,[Lm.itemOutline]:"transparent",[Lm.itemBackgroundColor]:"transparent",[Lm.itemCursor]:"default",[Lm.badgeBorderColor]:wm.colors.surface.light,[Lm.badgeTextColor]:wm.colors.surface.dark,[Lm.badgeBorderRadius]:wm.radius.xs,[Lm.badgeBackgroundColor]:wm.colors.surface.main,[Lm.titleIconSize]:"24px",[Lm.createButtonIconSize]:"12px",[Lm.actionIconSize]:"20px",[Lm.actionIconColor]:wm.colors.surface.dark,_fullWidth:{[Lm.hostWidth]:"100%"}};var fm=Object.freeze({__proto__:null,default:Am,vars:Lm});const Em=w("tooltip"),km=["text","position","hide-delay","hover-delay","opened"];class Om extends(Nt({componentName:Em,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 km.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)}#Li(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.#Li(i),"opened"===t&&this.#zi())}}const{overlay:Vm,content:Wm}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},Um=T(gt,kt({selector:"",mappings:{fontFamily:{...Wm,property:Bt.cssVarList.fontFamilyOverride},fontSize:{...Wm,property:Bt.cssVarList.fontSizeOverride},fontWeight:{...Wm,property:Bt.cssVarList.fontWeightOverride},textColor:{...Wm,property:Bt.cssVarList.textColorOverride},hostDirection:{...Wm,property:Bt.cssVarList.hostDirectionOverride},backgroundColor:[{...Vm},{...Wm}],borderColor:{...Vm},borderStyle:{...Vm},borderWidth:{...Vm},borderRadius:{...Vm},boxShadow:{...Vm},horizontalPadding:[{...Wm,property:"padding-left"},{...Wm,property:"padding-right"}],verticalPadding:[{...Wm,property:"padding-top"},{...Wm,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(Om),Rm=ot(rp),Ym=Um.cssVarList,[Qm,Bm,Pm]=rt({shadowColor:"#00000020"},Em),{shadowColor:Zm}=Bm,Fm=`${Rm.shadow.wide.sm} ${Zm}, ${Rm.shadow.narrow.sm} ${Zm}`,Gm={...Qm,[Ym.fontFamily]:Rm.fonts.font1.family,[Ym.fontSize]:rp.typography.body2.size,[Ym.fontWeight]:rp.typography.body2.weight,[Ym.textColor]:Rm.colors.surface.contrast,[Ym.hostDirection]:Rm.direction,[Ym.backgroundColor]:Rm.colors.surface.main,[Ym.borderColor]:Rm.colors.surface.light,[Ym.borderStyle]:"solid",[Ym.borderWidth]:Rm.border.xs,[Ym.borderRadius]:Rm.radius.xs,[Ym.horizontalPadding]:Rm.spacing.md,[Ym.verticalPadding]:Rm.spacing.sm,[Ym.boxShadow]:Fm,shadow:{sm:{[Ym.boxShadow]:Fm},md:{[Ym.boxShadow]:`${Rm.shadow.wide.md} ${Zm}, ${Rm.shadow.narrow.md} ${Zm}`},lg:{[Ym.boxShadow]:`${Rm.shadow.wide.lg} ${Zm}, ${Rm.shadow.narrow.lg} ${Zm}`},xl:{[Ym.boxShadow]:`${Rm.shadow.wide.xl} ${Zm}, ${Rm.shadow.narrow.xl} ${Zm}`},"2xl":{[Pm.shadowColor]:"#00000050",[Ym.boxShadow]:`${Rm.shadow.wide["2xl"]} ${Zm}`}}};var Hm=Object.freeze({__proto__:null,default:Gm,vars:Ym});const Jm=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},$m=async t=>Jm(`${t}/countries.json`),qm=async(t,e)=>{try{return(await Jm(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},_m=async(t,e,i)=>Jm(`${i}/countries/${t}/subdivisions/${e}/cities.json`),Xm=async t=>{const e=new URL("../labels.json",`${t}/`).href;return Jm(e)},Km=async(t,e)=>Jm(`${e}/countries/${t}/cities.json`),ty=w("country-subdivision-city-field-internal"),ey=Symbol("selecting"),iy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,oy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",ny=({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=oy(e),l=oy(s.join(" ")),d=oy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},ry=({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=oy(e),a=oy(r.join(" ")),l=oy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},sy=({name:t,translations:e,lang:i})=>{const o=iy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=oy(t),s=oy(n.join(" ")),a=oy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},ay=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,ly=zt({componentName:ty,baseSelector:""}),dy=["disabled","readonly","size","bordered"],cy=["hide-country","hide-subdivision","hide-city"],uy=[...dy,"label-type","country-label","subdivision-label","city-label",...cy,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],py=T()(class extends ly{static get observedAttributes(){return[].concat(ly.observedAttributes||[],uy)}#wi;#Ai;#fi;#Ei=!1;#ki=!1;#Oi=new Map;#Vi=null;#Wi=null;#Ui=null;#Ri=null;#Yi=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${ay("country-combo")}\n ${ay("subdivision-combo")}\n ${ay("city-combo")}\n </div>\n `,this.#wi=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.#wi,this.#Ai,this.#fi]}get value(){return{country:this.#Pi?this.#$i:this.#wi.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(`${ty}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#wi.renderItem=ny,this.#Ai.renderItem=ry,this.#fi.renderItem=sy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(cy.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.#wi,"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.#wi.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(`${ty}-hidden`)||t.checkValidity()||t.reportValidity()}#Qi(){[this.#wi,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:[...dy,"label-type"]})}),f(this,this.#wi,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#wi,"country-placeholder"],[this.#Ai,"subdivision-placeholder"],[this.#fi,"city-placeholder"]].forEach(([t,e])=>{f(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#no(){this.#wi.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??$m(this.#Hi),s=this.#Ri??Xm(this.#Hi),a=o&&t?qm(t,this.#Hi):null,l=n&&t?o&&e?_m(t,e,this.#Hi):Km(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.#Ri=c);const h=[];d&&(this.#Vi||(this.#Vi=d,this.#po(d)),t&&!this.#Pi&&h.push([this.#wi,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.#Ui=p,this.#fi.data=p.map(t=>({...t,lang:this.#Ji})),i&&h.push([this.#fi,i]))),this.#oo(),this.#Yi=ey,setTimeout(()=>{if(this.#Yi===ey){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!==ey&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#wi.value),this.#mo())}#Mo(){if(this.#Yi===ey)return;this.#Yi=null;const t=this.#Ai.value;if(this.#No(),!this.#Fi&&t){const e=this.#wi.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.#Ri?.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.#Ri=await Xm(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#wi.setAttribute("loading","true");try{const[t]=await Promise.all([$m(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${ty}] Failed to load countries`,t)}finally{this.#wi.removeAttribute("loading")}}}async#xo(t){this.#Do(this.#Ai,!0),this.#Ai.setAttribute("loading","true");try{const e=await qm(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(`[${ty}] 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?_m(t,e,this.#Hi):Km(t,this.#Hi));this.#ki=i.length>0,this.#oo(),i.length>0&&(this.#Ui=i,this.#fi.data=i.map(t=>({...t,lang:this.#Ji})))}catch(i){console.error(`[${ty}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#fi.removeAttribute("loading")}}#co(){if(this.#Vi){const t=this.#wi.value;this.#po(this.#Vi),t&&this.#zo(this.#wi,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.#Ui&&this.#ki){const t=this.#fi.value;this.#fi.data=this.#Ui.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#fi,t)}const t=this.#wi.value;if(t){const e=this.#Oi.get(t);e?.subdivisionType&&this.#yo(e.subdivisionType)}}#po(t){const e=this.#Co(t);this.#wi.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.#wi,!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(`${ty}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#wi,"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.#Ui=null,this.#ki=!1,this.#oo()}#mo(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#ho(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#io(){return this.#to.find(t=>!t.classList.contains(`${ty}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),hy=w("country-subdivision-city-field"),gy={selector:()=>":host"},My={selector:`${ty} > .wrapper`},my={selector:`${ty} > .wrapper > descope-combo-box`},yy=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{hostWidth:{...gy,property:"width"},hostDirection:[{...gy,property:"direction"},{...my,property:jo.cssVarList.hostDirection}],flexDirection:{...My,property:"flex-direction"},flexGap:{...My,property:"gap"},itemAlignment:{...My,property:"align-items"},itemMinWidth:{...my,property:"min-width"},itemFlexGrow:{...my,property:"flex-grow"},itemWidth:{...my,property:jo.cssVarList.hostWidth}}}),ht,Et({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),gt,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${ty}\n tabindex="-1"\n ></${ty}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ty),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 ${ty} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${ty} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${ty}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:hy})),by=yy.cssVarList,Ny={[by.hostWidth]:Ap.width,[by.hostDirection]:Ap.direction,[by.flexDirection]:"column",[by.flexGap]:"0.5em",[by.itemAlignment]:"stretch",[by.itemFlexGrow]:"0",[by.itemWidth]:"auto",_fullWidth:{[by.hostWidth]:"100%"},_horizontal:{[by.flexDirection]:"row",[by.itemFlexGrow]:"1"}};var Iy=Object.freeze({__proto__:null,default:Ny,vars:by});const xy=w("attachment"),jy=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Ty=jy[0];class Dy extends(Nt({componentName:xy,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.#Lo()}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.#Lo();const t=this.shadowRoot.querySelector(".attachment-container");v(t,()=>this.#wo(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#wo()),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)}#wo(){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"}#Lo(){const t=this.getAttribute("position");jy.includes(t)||this.setAttribute("position",Ty)}}const vy={selector:()=>".attachment-container"},zy=T(pt({mappings:{transform:{...vy},justifyContent:{...vy},maxWidth:{...vy},top:{...vy},bottom:{...vy},left:{...vy},right:{...vy},offsetX:{},offsetY:{}}}),ht,gt)(Dy),Cy=zy.cssVarList,Sy=`calc(8px + var(${Cy.offsetX}))`,Ly={[Cy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[Cy.transform]:"translateY(-50%)",[Cy.justifyContent]:"start",[Cy.left]:Sy,[Cy.top]:nt(Cy.offsetY)},"top-center":{[Cy.transform]:"translate(-50%, -50%)",[Cy.justifyContent]:"center",[Cy.top]:nt(Cy.offsetY),[Cy.left]:"50%"},"top-end":{[Cy.transform]:"translateY(-50%)",[Cy.justifyContent]:"end",[Cy.right]:Sy,[Cy.top]:nt(Cy.offsetY)},"bottom-start":{[Cy.transform]:"translateY(50%)",[Cy.justifyContent]:"start",[Cy.left]:Sy,[Cy.bottom]:nt(Cy.offsetY)},"bottom-center":{[Cy.bottom]:nt(Cy.offsetY),[Cy.transform]:"translate(-50%, 50%)",[Cy.justifyContent]:"center",[Cy.left]:"50%"},"bottom-end":{[Cy.transform]:"translateY(50%)",[Cy.justifyContent]:"end",[Cy.right]:Sy,[Cy.bottom]:nt(Cy.offsetY)}}};var wy=Object.freeze({__proto__:null,default:Ly}),Ay="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",fy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIi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vc3ZnPg=="},phone:{light:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iIzYzNmM3NCIvPjwvc3ZnPg==",dark:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:fy,dark:Ay}},Oy=w("user-passkeys"),Vy=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=ky[t]||ky.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},Wy=Nt({componentName:Oy,baseSelector:yu.componentName}),{host:Uy,methodIconSlotted:Ry,addIconSlotted:Yy}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},Qy=T(pt({mappings:{hostWidth:{...Uy,property:"width"},hostMinWidth:{...Uy,property:"min-width"},hostDirection:[{...Uy,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:yu.cssVarList.gap},listBackgroundColor:{selector:()=>yu.componentName,property:yu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>yu.componentName,property:yu.cssVarList.borderRadius},listBorderWidth:{selector:()=>yu.componentName,property:yu.cssVarList.borderWidth},listBoxShadow:{selector:()=>yu.componentName,property:yu.cssVarList.boxShadow},listPadding:[{selector:()=>yu.componentName,property:yu.cssVarList.verticalPadding},{selector:()=>yu.componentName,property:yu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:gu.componentName,property:gu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:gu.componentName,property:gu.cssVarList.horizontalPadding},itemCursor:{selector:gu.componentName,property:gu.cssVarList.cursor},itemOutline:{selector:gu.componentName,property:gu.cssVarList.outline},itemBorderColor:{selector:gu.componentName,property:gu.cssVarList.borderColor},itemBorderRadius:{selector:gu.componentName,property:gu.cssVarList.borderRadius},itemBackgroundColor:{selector:gu.componentName,property:gu.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:[{...Ry,property:"height"},{...Yy,property:"height"}]}}),ht,Wt({itemRenderer:Vy,sortFn:(t,e)=>Ey(e.createdAt)-Ey(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),gt)(class extends Wy{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=Vy,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))}}),By=Qy.cssVarList,Py={[By.hostWidth]:"auto",[By.hostWidth]:"300px",[By.hostMinWidth]:"300px",[By.headerGap]:rp.spacing.lg,[By.listGap]:rp.spacing.xl,[By.listBackgroundColor]:"transparent",[By.listBorderRadius]:"0",[By.listBorderWidth]:"0",[By.listPadding]:"0",[By.listBoxShadow]:"none",[By.listItemsGap]:rp.spacing.lg,[By.itemBorderColor]:rp.colors.surface.light,[By.itemVerticalPadding]:rp.spacing.lg,[By.itemHorizontalPadding]:rp.spacing.lg,[By.itemBorderRadius]:rp.radius.xs,[By.itemOutline]:"transparent",[By.itemBackgroundColor]:"transparent",[By.itemCursor]:"default",[By.itemContentGap]:rp.spacing.sm,[By.itemPanelGap]:rp.spacing.md,[By.itemIconGap]:rp.spacing.md,[By.itemIconSize]:"24px",[By.addButtonGap]:rp.spacing.sm,[By.dateGap]:rp.spacing.xs,[By.removeButtonGap]:rp.spacing.sm,[By.iconSize]:"1.5em",[By.iconColor]:"currentcolor",_fullWidth:{[By.hostWidth]:"100%"}};var Zy=Object.freeze({__proto__:null,default:Py,vars:By});const Fy=ot(rp),Gy=Xn.cssVarList,Hy={[Gy.hostWidth]:Ap.width,[Gy.hostMinWidth]:Ap.minWidth,[Gy.hostDirection]:Ap.direction,[Gy.fontSize]:Ap.fontSize,[Gy.fontFamily]:Ap.fontFamily,[Gy.labelFontSize]:Ap.labelFontSize,[Gy.labelFontWeight]:Ap.labelFontWeight,[Gy.inputValueFontWeight]:Ap.inputValueFontWeight,[Gy.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Gy.helperTextFontWeight]:Ap.helperTextFontWeight,[Gy.errorMessageFontWeight]:Ap.errorMessageFontWeight,[Gy.labelTextColor]:Ap.labelTextColor,[Gy.labelRequiredIndicator]:Ap.requiredIndicator,[Gy.errorMessageTextColor]:Ap.errorMessageTextColor,[Gy.inputValueTextColor]:Ap.valueTextColor,[Gy.inputPlaceholderColor]:Ap.placeholderTextColor,[Gy.inputBorderWidth]:Ap.borderWidth,[Gy.inputBorderStyle]:Ap.borderStyle,[Gy.inputBorderColor]:Ap.borderColor,[Gy.inputBorderRadius]:Ap.borderRadius,[Gy.inputOutlineWidth]:Ap.outlineWidth,[Gy.inputOutlineStyle]:Ap.outlineStyle,[Gy.inputOutlineColor]:Ap.outlineColor,[Gy.inputOutlineOffset]:Ap.outlineOffset,[Gy.inputBackgroundColor]:Ap.backgroundColor,[Gy.inputHeight]:Ap.inputHeight,[Gy.inputHorizontalPadding]:Ap.horizontalPadding,[Gy.helperTextColor]:Ap.helperTextColor,[Gy.textAlign]:Ap.textAlign,textAlign:{right:{[Gy.inputTextAlign]:"right"},left:{[Gy.inputTextAlign]:"left"},center:{[Gy.inputTextAlign]:"center"}},[Gy.labelPosition]:Ap.labelPosition,[Gy.labelTopPosition]:Ap.labelTopPosition,[Gy.labelHorizontalPosition]:Ap.labelHorizontalPosition,[Gy.inputTransformY]:Ap.inputTransformY,[Gy.inputTransition]:Ap.inputTransition,[Gy.marginInlineStart]:Ap.marginInlineStart,[Gy.placeholderOpacity]:Ap.placeholderOpacity,[Gy.inputVerticalAlignment]:Ap.inputVerticalAlignment,[Gy.valueInputHeight]:Ap.valueInputHeight,[Gy.valueInputMarginBottom]:Ap.valueInputMarginBottom,[Gy.inputIconOffset]:Fy.spacing.md,[Gy.inputIconSize]:Ap.inputIconSize,[Gy.inputIconColor]:Ap.placeholderTextColor,[Gy.errorMessageIcon]:Ap.errorMessageIcon,[Gy.errorMessageIconSize]:Ap.errorMessageIconSize,[Gy.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Gy.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Gy.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Gy.errorMessageFontSize]:Ap.errorMessageFontSize,[Gy.inputTextSecurity]:Ap.inputTextSecurity};var Jy=Object.freeze({__proto__:null,default:Hy,textField:Hy,vars:Gy});class $y{#U=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.#U}set data(t){this.#U=Object.freeze(t),this.onChange?.()}get#lt(){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.#lt<this.max?Math.max(this.#lt+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#lt>this.min?Math.min(this.#lt-(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 qy=["MM/DD","DD/MM"],_y=qy[0],Xy="/",Ky=[31,29,31,30,31,30,31,31,30,31,30,31],tb={id:"month",min:1,max:12,placeholder:"MM"},eb={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])"},ob=t=>{const e=(t=>`^${t.split(Xy).map(t=>ib[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Xy);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}}},nb=Object.fromEntries(qy.map(t=>[t,ob(t)])),rb=(t,e)=>{const i=t?.trim?.();return i?nb[e]?.getParts(i)??null:null},sb=w("month-day-field"),ab=zt({componentName:sb,baseSelector:"vaadin-popover"}),lb=["format","opened","initial-value","readonly","disable-picker"],db=["picker-months","picker-label-submit","picker-label-cancel"],cb=[...lb,...db],ub=Xn.cssVarList,{host:pb,input:hb,inputEleRTL:gb,toggleButton:Mb,overlay:mb,backdrop:yb,bottomNav:bb,navButton:Nb}={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"}},Ib=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{iconMargin:{...Mb,property:"margin-inline-end"},hostWidth:{...pb,property:"width"},hostDirection:{...pb,property:"direction"},textAlign:{...hb,property:"text-align"},rtlInputDirection:{...gb,property:ub.inputDirection},rtlInputAlignment:{...gb,property:ub.inputTextAlign},overlayGap:{property:()=>Ib.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Ib.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Ib.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Ib.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Ib.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Ib.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Ib.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}}}),kt({name:"overlay",selector:"",mappings:{marginTop:{...mb,property:"margin-top"},backgroundColor:{...mb},backdropBackgroundColor:{...yb,property:"background-color"},backdropPointerEvents:{...yb,property:"pointer-events"},padding:{...mb},boxShadow:{...mb},outlineWidth:{...mb},outlineColor:{...mb},outlineStyle:{...mb},bottomNavTopPadding:{...bb,property:"padding-top"},bottomNavBottomPadding:{...bb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...bb,property:"padding-left"},{...bb,property:"padding-right"}],bottomNavAlignment:{...bb,property:"justify-content"},bottomNavGap:{...bb,property:"gap"},navButtonPadding:[{...Nb,property:Oo.cssVarList.horizontalPadding},{...Nb,property:Oo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Nb,property:Oo.cssVarList.outlineWidth}}}),ht,gt)(class extends ab{format=_y;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#dt()};#Vo=[new $y(tb,this.#ko.bind(this)),new $y(eb,this.#ko.bind(this))];static get observedAttributes(){return[].concat(ab.observedAttributes||[],cb)}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,PHN2ZyB3aWR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: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-picker {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-picker {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#Vo.find(t=>t.id===tb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===eb.id)}get sortedCounters(){return this.format.split(Xy).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(Xy)}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?rb(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=Ky[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}#dt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#Vo.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Uo(),this.#Ro(),this.#ko(),this.#Yo(),setTimeout(()=>this.#ot(),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"]})}#Ro(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#ct.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ut;#ct(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#pt()),(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.#ht(),t.classList.remove("overlay-hidden")},100)}#ht(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ut?.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.#ut?this.#ut.replaceSync(d):this.#ut=E(d,t)}#pt(){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}#ot(){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.#dt(),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(nb).includes(t)&&(this.format=t,this.#Uo(),this.updateCountersDisplay())}#Uo(){const t=this.getAttribute("format")||this.format||_y,e=nb[t]?t:_y;this.format=e,this.setAttribute("pattern",nb[e].pattern)}#hn(t){t.preventDefault(),this.isSelectAll?(this.#gt(this.countersValue),this.#Mn()):(this.#gt(this.activeCounter.stringValue),this.activeCounter.set("")),this.#dn()}#gt(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=rb(e,this.format);if(i)return this.#Wo(i.month,i.day),this.#ko(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const o=Number(e);o&&this.activeCounter.isInRange(o)&&(this.activeCounter.set(String(o)),setTimeout(()=>this.#dn()))}#bn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#on("true"!==i),lb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():db.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),xb=ot(rp),jb="#00000020",{shadow:Tb}=xb,Db=Ib.cssVarList,vb={[Db.hostWidth]:Ap.width,[Db.hostDirection]:Ap.direction,[Db.iconMargin]:"0.375em",[Db.overlay.marginTop]:Ap.outlineWidth,[Db.overlay.backgroundColor]:Ap.backgroundColor,[Db.overlay.backdropBackgroundColor]:"transparent",[Db.overlay.backdropPointerEvents]:"all",[Db.overlay.boxShadow]:`${Tb.wide.xl} ${jb}, ${Tb.narrow.xl} ${jb}`,[Db.overlay.outlineWidth]:"0",[Db.overlay.outlineColor]:"transparent",[Db.overlay.outlineStyle]:"none",[Db.overlay.padding]:"0",[Db.overlay.bottomNavTopPadding]:"0",[Db.overlay.bottomNavBottomPadding]:"0.75em",[Db.overlay.bottomNavHorizontalPadding]:"1em",[Db.overlay.bottomNavAlignment]:"space-between",[Db.overlay.bottomNavGap]:"0.5em",[Db.overlay.navButtonPadding]:"0",[Db.overlay.navButtonOutlineWidth]:"0",[Db.rtlInputDirection]:"ltr",[Db.rtlInputAlignment]:"right",[Db.errorMessageIcon]:Ap.errorMessageIcon,[Db.errorMessageIconSize]:Ap.errorMessageIconSize,[Db.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Db.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Db.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Db.errorMessageFontSize]:Ap.errorMessageFontSize,[Db.labelFontWeight]:Ap.labelFontWeight,[Db.inputValueFontWeight]:Ap.inputValueFontWeight,[Db.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Db.helperTextFontWeight]:Ap.helperTextFontWeight,[Db.errorMessageFontWeight]:Ap.errorMessageFontWeight};var zb=Object.freeze({__proto__:null,default:vb,vars:Db});const Cb=[31,29,31,30,31,30,31,31,30,31,30,31],Sb=["January","February","March","April","May","June","July","August","September","October","November","December"],Lb=w("month-day-field-picker"),wb=["initial-value","picker-months","st-host-direction","disabled","full-width"],Ab=zt({componentName:Lb,baseSelector:"div"}),fb=(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:Eb,monthInput:kb,dayInput:Ob,inputsRow:Vb}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},Wb=T(pt({componentNameOverride:w("input-wrapper")}),pt({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...Eb,property:"padding"},inputsRowGap:{...Vb,property:"gap"},inputWidth:[{...kb,property:"width"},{...Ob,property:"width"}]}}),ht,gt)(class extends Ab{static get observedAttributes(){return[].concat(Ab.observedAttributes||[],wb)}#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>Cb[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>Cb[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:Sb})(this.getAttribute("picker-months"))}#vn(){this.#Cn(),this.monthInput.addEventListener("input",this.#Ln.bind(this))}#zn(){this.dayInput.addEventListener("input",this.#wn.bind(this))}#Cn(){fb(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=Cb[this.#Nn-1]??0;fb((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):"")})}#Ln(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#Nn&&(this.month=i)}#wn(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{}}}),Ub=Wb.cssVarList,Rb={[Ub.fontFamily]:Ap.fontFamily,[Ub.fontSize]:Ap.fontSize,[Ub.hostDirection]:Ap.direction,[Ub.inputWidth]:"130px",[Ub.pickerPadding]:"1em 1em",[Ub.inputsRowGap]:"0.5em",_fullWidth:{[Ub.hostWidth]:"100%"}};var Yb=Object.freeze({__proto__:null,default:Rb,vars:Ub});const Qb={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}},Bb=Object.keys(Qb).map(t=>`data-operator-label-${t}`),Pb={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"]},Zb=(t,e)=>({id:t,...e[t]||{}}),Fb=(t,e,i,o=Qb)=>{const n=((i||Pb)[t]||[]).map(t=>Zb(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)||Zb(e,o),...i}}):n},Gb=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,Qb[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},Hb=(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))},Jb=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):[]},$b=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var qb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const _b=w("filter-row"),Xb=["text","number","email"],Kb=["boolean","singleselect"],tN=t=>!t||Xb.includes(t),eN=t=>Kb.includes(t),iN=t=>"multiselect"===t,oN=()=>new Promise(t=>setTimeout(t)),{host:nN}={host:{selector:()=>":host"}},rN=T(pt({mappings:{hostWidth:{...nN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...nN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>jo.componentName,property:jo.cssVarList.hostDirection},{selector:()=>Rh.componentName,property:Rh.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>jo.componentName,property:jo.cssVarList.hostWidth},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostWidth},{selector:()=>Rh.componentName,property:Rh.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Oo.componentName}.delete-btn[disabled="true"]`,property:Oo.cssVarList.iconColor}}}),gt,t=>class extends t{#Kt=[];#An=null;#fn=!1;#En;#kn;#On;#Vn;#Wn;#Un;#Rn=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",...Bb]}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="${qb}" src-dark="${qb}"></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.#Un=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Qn(),this.#Un.addEventListener("click",()=>this.#Bn("delete")),this.#Bi()}#Bi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Un].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?Fb(t.inputType,t.operators,$b(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.#Rn,n=t.inputType,r=o!==n;this.#Rn=n,this.#_n(t,i,{resetValue:r}),this.#v()}#Gn(){const t=this.#Jn(this.#En.value),e=this.#qn(t).find(t=>t.id===this.#kn.value);this.#_n(t,e),this.#v()}#_n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#Xn(o),tN(o)?this.#Kn(o,n):eN(o)?this.#tr(t,n):iN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!tN(t)),this.#Vn.classList.toggle("hidden",!eN(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:eN(t)?this.#Vn:tN(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 oN(),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 oN(),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 oN(),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:[]):eN(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.#Un.setAttribute("disabled","true"):this.#Un.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}))}})(Nt({componentName:_b,baseSelector:".row"})),sN=w("filter-rows"),{host:aN,container:lN,rowsList:dN,actions:cN,addRowIcon:uN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},pN=T(pt({mappings:{hostWidth:{...aN,property:"width"},hostMinWidth:{...aN,property:"min-width"},hostDirection:[{...aN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>rN.componentName,property:rN.cssVarList.hostDirection}],containerWidth:{...lN,property:"width"},containerPadding:{...lN,property:"padding"},containerGap:{...lN,property:"gap"},listGap:{...dN,property:"gap"},listMaxHeight:{...dN,property:"max-height"},actionsGap:{...cN,property:"gap"},addRowIconSize:[{...uN,property:"width"},{...uN,property:"height"}]}}),gt,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.#Lr())}#Cr(){const t=$b(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(_b).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#wr(t)})}#Ar(){const t=new Set(this.#ze.map(t=>t.id));this.#br.querySelectorAll(_b).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${_b}[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.#Lr(),this.#kr()}#Er(t){const e=document.createElement(_b);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",...Bb]}),this.#wr(e),e}#wr(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)})}#Lr(){const t=1===this.#ze.length&&this.#mr(this.#ze[0]);this.#br.querySelectorAll(_b).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(_b);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#ze=this.#ze.map(e=>e.id===i?t.detail.value:e),this.#Lr(),this.#v()}#zr(t){const e=t.target.closest(_b);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&&Fb(i.inputType,i.operators,$b(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(Gb).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}#Ur(){this.#xr.textContent=this.clearAllButtonLabel}#Rr(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.#Rr(i),"add-button-label"===t&&this.#Wr(),"clear-all-button-label"===t&&this.#Ur(),"max-rows"===t&&this.#kr())}})(Nt({componentName:sN,baseSelector:".container"})),hN=w("filter"),gN=Nt({componentName:hN,baseSelector:"vaadin-popover"}),MN=["add-row-icon","delete-row-icon"],{host:mN,overlay:yN,backdrop:bN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},NN=T(pt({mappings:{hostWidth:{...mN,property:"width"},hostDirection:[{...mN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>pN.componentName,property:pN.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>wc.componentName,property:wc.cssVarList.borderRadius},counterWidth:{selector:()=>wc.componentName,property:wc.cssVarList.hostWidth},counterHeight:{selector:()=>wc.componentName,property:wc.cssVarList.hostHeight},counterFontSize:{selector:()=>wc.componentName,property:wc.cssVarList.fontSize},counterLineHeight:{selector:()=>wc.componentName,property:wc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>wc.componentName,property:wc.cssVarList.backgroundColor},counterTextColor:{selector:()=>wc.componentName,property:wc.cssVarList.textColor},counterBorderColor:{selector:()=>wc.componentName,property:wc.cssVarList.borderColor},counterOffsetX:{selector:()=>zy.componentName,property:zy.cssVarList.offsetX},counterOffsetY:{selector:()=>zy.componentName,property:zy.cssVarList.offsetY},rowsHostWidth:{selector:()=>pN.componentName,property:pN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>pN.componentName,property:pN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>pN.componentName,property:pN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>pN.componentName,property:pN.cssVarList.containerGap},rowsListGap:{selector:()=>pN.componentName,property:pN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>pN.componentName,property:pN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>pN.componentName,property:pN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>pN.componentName,property:pN.cssVarList.addRowIconSize},rowWidth:{...mN,property:rN.cssVarList.hostWidth},rowMinWidth:{...mN,property:rN.cssVarList.hostMinWidth},rowValueWidth:{...mN,property:rN.cssVarList.inputWidth},rowGap:{...mN,property:rN.cssVarList.rowGap},rowDisabledDeleteColor:{...mN,property:rN.cssVarList.deleteDisabledIconColor}}}),kt({name:"overlay",selector:"",mappings:{marginTop:{...yN,property:"margin-top"},width:{...yN},backgroundColor:{...yN},backdropBackgroundColor:{...bN,property:"background-color"},backdropPointerEvents:{...bN,property:"pointer-events"},padding:{...yN},boxShadow:{...yN},borderRadius:{...yN},outlineWidth:{...yN},outlineColor:{...yN},outlineStyle:{...yN}}}),ht,gt)(class extends gN{#Yr=[];#Qr=!1;#ut;#U=null;#Br=null;#Pr=null;static get observedAttributes(){return[...gN.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(sN)||null}init(){super.init?.(),this.#Ro(),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.#ot()})}#Gr(){MN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Br?.isConnected&&Hb(this,this.#Br,[t])})})}#Ro(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#ct.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#ct(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(sN);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",...Bb],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&&Hb(this,this.#Br,MN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#ht(),t.style.setProperty("visibility","visible")},50)}#ht(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ut&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ut));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.#ut=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(Jb(t))),this.#Qr=!1}#Jr(t){const e=Jb(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.#U&&t.setAttribute("data",JSON.stringify(this.#U))}get value(){return JSON.stringify(this.#Yr)}set value(t){this.#qr(t)}set data(t){this.#U=Array.isArray(t)?t:null,this.filterRowsElement&&this.#U&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#U))}get data(){return this.#U}#ot(){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=Jb(t),this.#Zr(),this.#Qr||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Yr)))}#Xr(t){if(t)try{this.#U=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#U))}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())}}),IN=ot(rp),xN="#00000020",{shadow:jN}=IN,TN=NN.cssVarList,DN={[TN.counterBorderRadius]:"50%",[TN.counterWidth]:"1.5em",[TN.counterHeight]:"1.5em",[TN.counterFontSize]:"0.5em",[TN.counterLineHeight]:"2.25em",[TN.counterBackgroundColor]:IN.colors.primary.main,[TN.counterTextColor]:IN.colors.primary.contrast,[TN.counterOffsetX]:"-0.725em",[TN.counterOffsetY]:"0",_fullWidth:{[TN.hostWidth]:"100%"},[TN.overlay.backgroundColor]:IN.colors.surface.main,[TN.overlay.backdropBackgroundColor]:"transparent",[TN.overlay.backdropPointerEvents]:"all",[TN.overlay.boxShadow]:`${jN.wide.xl} ${xN}, ${jN.narrow.xl} ${xN}`,[TN.overlay.borderRadius]:rp.radius.xs,[TN.overlay.outlineWidth]:"0",[TN.overlay.outlineColor]:"transparent",[TN.overlay.outlineStyle]:"none",[TN.overlay.padding]:"0",[TN.rowsHostWidth]:"100%",[TN.rowsContainerWidth]:"100%",[TN.rowsContainerPadding]:IN.spacing.lg,[TN.rowsContainerGap]:IN.spacing.md,[TN.rowsListGap]:IN.spacing.sm,[TN.rowsListMaxHeight]:"400px",[TN.rowsActionsGap]:IN.spacing.md,[TN.rowsAddRowIconSize]:"1.25em",[TN.rowWidth]:"100%",[TN.rowMinWidth]:"30em",[TN.rowValueWidth]:"100%",[TN.rowGap]:IN.spacing.md,[TN.rowDisabledDeleteColor]:IN.colors.surface.light};var vN=Object.freeze({__proto__:null,default:DN,vars:TN});const zN=Kt("input-wrapper"),CN=Ce(tp),[SN,LN,wN]=Ve({labelTextColor:CN.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:CN.colors.surface.contrast,placeholderTextColor:CN.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:CN.colors.surface.dark,errorMessageTextColor:CN.colors.error.main,successMessageTextColor:CN.colors.success.main,borderWidth:CN.border.xs,borderRadius:CN.radius.xs,borderColor:"transparent",outlineWidth:CN.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:CN.colors.surface.main,fontFamily:CN.fonts.font1.family,direction:CN.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:CN.border.xs,borderColor:CN.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:CN.colors.error.main}},_focused:{outlineColor:CN.colors.surface.light,_invalid:{outlineColor:CN.colors.error.main}},_disabled:{labelTextColor:CN.colors.surface.light,borderColor:CN.colors.surface.light,valueTextColor:CN.colors.surface.light,placeholderTextColor:CN.colors.surface.light,helperTextColor:CN.colors.surface.light,backgroundColor:CN.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},zN);var AN=Object.freeze({__proto__:null,default:SN,refs:LN,vars:wN});const fN=Ce(tp),EN=ps.cssVarList,kN={[EN.hostWidth]:LN.width,[EN.hostMinWidth]:LN.minWidth,[EN.hostDirection]:LN.direction,[EN.fontSize]:LN.fontSize,[EN.fontFamily]:LN.fontFamily,[EN.labelFontSize]:LN.labelFontSize,[EN.labelFontWeight]:LN.labelFontWeight,[EN.inputValueFontWeight]:LN.inputValueFontWeight,[EN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[EN.helperTextFontWeight]:LN.helperTextFontWeight,[EN.errorMessageFontWeight]:LN.errorMessageFontWeight,[EN.labelTextColor]:LN.labelTextColor,[EN.errorMessageTextColor]:LN.errorMessageTextColor,[EN.inputHorizontalPadding]:LN.horizontalPadding,[EN.inputHeight]:LN.inputHeight,[EN.inputBackgroundColor]:LN.backgroundColor,[EN.labelRequiredIndicator]:LN.requiredIndicator,[EN.inputValueTextColor]:LN.valueTextColor,[EN.inputPlaceholderTextColor]:LN.placeholderTextColor,[EN.inputBorderWidth]:LN.borderWidth,[EN.inputBorderStyle]:LN.borderStyle,[EN.inputBorderColor]:LN.borderColor,[EN.inputBorderRadius]:LN.borderRadius,[EN.inputOutlineWidth]:LN.outlineWidth,[EN.inputOutlineStyle]:LN.outlineStyle,[EN.inputOutlineColor]:LN.outlineColor,[EN.inputOutlineOffset]:LN.outlineOffset,[EN.revealButtonOffset]:fN.spacing.md,[EN.revealButtonSize]:LN.toggleButtonSize,[EN.revealButtonColor]:LN.placeholderTextColor,[EN.labelPosition]:LN.labelPosition,[EN.labelTopPosition]:LN.labelTopPosition,[EN.labelHorizontalPosition]:LN.labelHorizontalPosition,[EN.inputTransformY]:LN.inputTransformY,[EN.inputTransition]:LN.inputTransition,[EN.marginInlineStart]:LN.marginInlineStart,[EN.placeholderOpacity]:LN.placeholderOpacity,[EN.inputVerticalAlignment]:LN.inputVerticalAlignment,[EN.valueInputHeight]:LN.valueInputHeight,[EN.errorMessageIcon]:LN.errorMessageIcon,[EN.errorMessageIconSize]:LN.errorMessageIconSize,[EN.errorMessageIconPadding]:LN.errorMessageIconPadding,[EN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[EN.errorMessageIconPosition]:LN.errorMessageIconPosition,[EN.errorMessageFontSize]:LN.errorMessageFontSize};var ON=Object.freeze({__proto__:null,default:kN,vars:EN});const VN=fr.cssVarList,WN={[VN.hostWidth]:LN.width,[VN.hostMinWidth]:LN.minWidth,[VN.hostDirection]:LN.direction,[VN.fontSize]:LN.fontSize,[VN.fontFamily]:LN.fontFamily,[VN.labelFontSize]:LN.labelFontSize,[VN.labelFontWeight]:LN.labelFontWeight,[VN.inputValueFontWeight]:LN.inputValueFontWeight,[VN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[VN.helperTextFontWeight]:LN.helperTextFontWeight,[VN.errorMessageFontWeight]:LN.errorMessageFontWeight,[VN.labelTextColor]:LN.labelTextColor,[VN.errorMessageTextColor]:LN.errorMessageTextColor,[VN.inputValueTextColor]:LN.valueTextColor,[VN.inputPlaceholderColor]:LN.placeholderTextColor,[VN.inputBorderWidth]:LN.borderWidth,[VN.inputBorderStyle]:LN.borderStyle,[VN.inputBorderColor]:LN.borderColor,[VN.inputBorderRadius]:LN.borderRadius,[VN.inputOutlineWidth]:LN.outlineWidth,[VN.inputOutlineStyle]:LN.outlineStyle,[VN.inputOutlineColor]:LN.outlineColor,[VN.inputOutlineOffset]:LN.outlineOffset,[VN.inputBackgroundColor]:LN.backgroundColor,[VN.labelRequiredIndicator]:LN.requiredIndicator,[VN.inputHorizontalPadding]:LN.horizontalPadding,[VN.inputHeight]:LN.inputHeight,[VN.labelPosition]:LN.labelPosition,[VN.labelTopPosition]:LN.labelTopPosition,[VN.labelHorizontalPosition]:LN.labelHorizontalPosition,[VN.inputTransformY]:LN.inputTransformY,[VN.inputTransition]:LN.inputTransition,[VN.marginInlineStart]:LN.marginInlineStart,[VN.placeholderOpacity]:LN.placeholderOpacity,[VN.inputVerticalAlignment]:LN.inputVerticalAlignment,[VN.valueInputHeight]:LN.valueInputHeight,[VN.valueInputMarginBottom]:LN.valueInputMarginBottom,[VN.errorMessageIcon]:LN.errorMessageIcon,[VN.errorMessageIconSize]:LN.errorMessageIconSize,[VN.errorMessageIconPadding]:LN.errorMessageIconPadding,[VN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[VN.errorMessageIconPosition]:LN.errorMessageIconPosition,[VN.errorMessageFontSize]:LN.errorMessageFontSize};var UN=Object.freeze({__proto__:null,default:WN,vars:VN});const RN=Tr.cssVarList,YN={[RN.hostWidth]:LN.width,[RN.hostMinWidth]:LN.minWidth,[RN.hostDirection]:LN.direction,[RN.fontSize]:LN.fontSize,[RN.fontFamily]:LN.fontFamily,[RN.labelFontSize]:LN.labelFontSize,[RN.labelFontWeight]:LN.labelFontWeight,[RN.inputValueFontWeight]:LN.inputValueFontWeight,[RN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[RN.helperTextFontWeight]:LN.helperTextFontWeight,[RN.errorMessageFontWeight]:LN.errorMessageFontWeight,[RN.labelTextColor]:LN.labelTextColor,[RN.errorMessageTextColor]:LN.errorMessageTextColor,[RN.inputValueTextColor]:LN.valueTextColor,[RN.labelRequiredIndicator]:LN.requiredIndicator,[RN.inputPlaceholderColor]:LN.placeholderTextColor,[RN.inputBorderWidth]:LN.borderWidth,[RN.inputBorderStyle]:LN.borderStyle,[RN.inputBorderColor]:LN.borderColor,[RN.inputBorderRadius]:LN.borderRadius,[RN.inputOutlineWidth]:LN.outlineWidth,[RN.inputOutlineStyle]:LN.outlineStyle,[RN.inputOutlineColor]:LN.outlineColor,[RN.inputOutlineOffset]:LN.outlineOffset,[RN.inputBackgroundColor]:LN.backgroundColor,[RN.inputHorizontalPadding]:LN.horizontalPadding,[RN.inputHeight]:LN.inputHeight,[RN.labelPosition]:LN.labelPosition,[RN.labelTopPosition]:LN.labelTopPosition,[RN.labelHorizontalPosition]:LN.labelHorizontalPosition,[RN.inputTransformY]:LN.inputTransformY,[RN.inputTransition]:LN.inputTransition,[RN.marginInlineStart]:LN.marginInlineStart,[RN.placeholderOpacity]:LN.placeholderOpacity,[RN.inputVerticalAlignment]:LN.inputVerticalAlignment,[RN.valueInputHeight]:LN.valueInputHeight,[RN.valueInputMarginBottom]:LN.valueInputMarginBottom,[RN.errorMessageIcon]:LN.errorMessageIcon,[RN.errorMessageIconSize]:LN.errorMessageIconSize,[RN.errorMessageIconPadding]:LN.errorMessageIconPadding,[RN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[RN.errorMessageIconPosition]:LN.errorMessageIconPosition,[RN.errorMessageFontSize]:LN.errorMessageFontSize};var QN=Object.freeze({__proto__:null,default:YN,vars:RN});const BN=js.cssVarList,PN={[BN.hostWidth]:LN.width,[BN.hostMinWidth]:LN.minWidth,[BN.hostDirection]:LN.direction,[BN.fontSize]:LN.fontSize,[BN.fontFamily]:LN.fontFamily,[BN.labelFontSize]:LN.labelFontSize,[BN.labelFontWeight]:LN.labelFontWeight,[BN.inputValueFontWeight]:LN.inputValueFontWeight,[BN.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[BN.helperTextFontWeight]:LN.helperTextFontWeight,[BN.errorMessageFontWeight]:LN.errorMessageFontWeight,[BN.labelTextColor]:LN.labelTextColor,[BN.labelRequiredIndicator]:LN.requiredIndicator,[BN.errorMessageTextColor]:LN.errorMessageTextColor,[BN.inputBackgroundColor]:LN.backgroundColor,[BN.inputValueTextColor]:LN.valueTextColor,[BN.inputPlaceholderTextColor]:LN.placeholderTextColor,[BN.inputBorderRadius]:LN.borderRadius,[BN.inputBorderWidth]:LN.borderWidth,[BN.inputBorderStyle]:LN.borderStyle,[BN.inputBorderColor]:LN.borderColor,[BN.inputOutlineWidth]:LN.outlineWidth,[BN.inputOutlineStyle]:LN.outlineStyle,[BN.inputOutlineColor]:LN.outlineColor,[BN.inputOutlineOffset]:LN.outlineOffset,[BN.inputResizeType]:"vertical",[BN.inputMinHeight]:"5em",[BN.errorMessageIcon]:LN.errorMessageIcon,[BN.errorMessageIconSize]:LN.errorMessageIconSize,[BN.errorMessageIconPadding]:LN.errorMessageIconPadding,[BN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[BN.errorMessageIconPosition]:LN.errorMessageIconPosition,[BN.errorMessageFontSize]:LN.errorMessageFontSize,textAlign:{right:{[BN.inputTextAlign]:"right"},left:{[BN.inputTextAlign]:"left"},center:{[BN.inputTextAlign]:"center"}},_readonly:{[BN.inputResizeType]:"none"}};var ZN=Object.freeze({__proto__:null,default:PN,vars:BN});const FN=zi.cssVarList,GN="1.35em",HN={[FN.hostWidth]:LN.width,[FN.hostDirection]:LN.direction,[FN.fontSize]:LN.fontSize,[FN.fontFamily]:LN.fontFamily,[FN.labelTextColor]:LN.labelTextColor,[FN.labelRequiredIndicator]:LN.requiredIndicator,[FN.labelFontWeight]:"400",[FN.labelLineHeight]:GN,[FN.labelSpacing]:"1em",[FN.errorMessageTextColor]:LN.errorMessageTextColor,[FN.inputOutlineWidth]:LN.outlineWidth,[FN.inputOutlineOffset]:LN.outlineOffset,[FN.inputOutlineColor]:LN.outlineColor,[FN.inputOutlineStyle]:LN.outlineStyle,[FN.inputBorderRadius]:LN.borderRadius,[FN.inputBorderColor]:LN.borderColor,[FN.inputBorderWidth]:LN.borderWidth,[FN.inputBorderStyle]:LN.borderStyle,[FN.inputBackgroundColor]:LN.backgroundColor,[FN.inputSize]:GN,[FN.inputValueTextColor]:LN.valueTextColor,[FN.errorMessageIcon]:LN.errorMessageIcon,[FN.errorMessageIconSize]:LN.errorMessageIconSize,[FN.errorMessageIconPadding]:LN.errorMessageIconPadding,[FN.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[FN.errorMessageIconPosition]:LN.errorMessageIconPosition,[FN.errorMessageFontSize]:LN.errorMessageFontSize};var JN=Object.freeze({__proto__:null,default:HN,vars:FN});const $N="2px",qN=Ce(tp),_N=qi.cssVarList,XN={[_N.hostWidth]:LN.width,[_N.hostDirection]:LN.direction,[_N.fontSize]:LN.fontSize,[_N.fontFamily]:LN.fontFamily,[_N.inputOutlineWidth]:LN.outlineWidth,[_N.inputOutlineOffset]:LN.outlineOffset,[_N.inputOutlineColor]:LN.outlineColor,[_N.inputOutlineStyle]:LN.outlineStyle,[_N.trackBorderStyle]:LN.borderStyle,[_N.trackBorderWidth]:LN.borderWidth,[_N.trackBorderColor]:LN.borderColor,[_N.trackBackgroundColor]:LN.backgroundColor,[_N.trackBorderRadius]:qN.radius.md,[_N.trackWidth]:"2.5em",[_N.trackHeight]:"1.25em",[_N.knobSize]:`calc(1em - ${$N})`,[_N.knobRadius]:"50%",[_N.knobTopOffset]:"1px",[_N.knobLeftOffset]:$N,[_N.knobColor]:LN.labelTextColor,[_N.knobTransitionDuration]:"0.3s",[_N.labelTextColor]:LN.labelTextColor,[_N.labelFontWeight]:"400",[_N.labelLineHeight]:"1.35em",[_N.labelSpacing]:"1em",[_N.labelRequiredIndicator]:LN.requiredIndicator,[_N.errorMessageTextColor]:LN.errorMessageTextColor,[_N.errorMessageIcon]:LN.errorMessageIcon,[_N.errorMessageIconSize]:LN.errorMessageIconSize,[_N.errorMessageIconPadding]:LN.errorMessageIconPadding,[_N.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[_N.errorMessageIconPosition]:LN.errorMessageIconPosition,[_N.errorMessageFontSize]:LN.errorMessageFontSize,_checked:{[_N.trackBorderColor]:LN.borderColor,[_N.knobLeftOffset]:`calc(100% - var(${_N.knobSize}) - ${$N})`,[_N.knobColor]:LN.valueTextColor,[_N.knobTextColor]:LN.valueTextColor},_disabled:{[_N.knobColor]:qN.colors.surface.light,[_N.trackBorderColor]:qN.colors.surface.light,[_N.trackBackgroundColor]:qN.colors.surface.main,[_N.labelTextColor]:LN.labelTextColor,_checked:{[_N.knobColor]:qN.colors.surface.light,[_N.trackBackgroundColor]:qN.colors.surface.main}},_invalid:{[_N.trackBorderColor]:qN.colors.error.main,[_N.knobColor]:qN.colors.error.main}};var KN=Object.freeze({__proto__:null,default:XN,vars:_N});const tI=Ce(tp),eI=ao.cssVarList,[iI,oI,nI]=Ve({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:rI}=oI,sI={...iI,[eI.itemsGrow]:"0",[eI.hostWidth]:"100%",[eI.hostHeight]:"auto",[eI.boxShadow]:"none",[eI.backgroundColor]:tI.colors.surface.main,[eI.backgroundImage]:"",[eI.backgroundPositionX]:"center",[eI.backgroundPositionY]:"center",[eI.backgroundSize]:"cover",[eI.backgroundRepeat]:"no-repeat",[eI.color]:tI.colors.surface.contrast,[eI.borderRadius]:"0px",[eI.hostDirection]:tI.direction,[eI.borderStyle]:"none",[eI.borderWidth]:"unset",[eI.borderColor]:"unset",verticalPadding:{sm:{[eI.verticalPadding]:"5px"},md:{[eI.verticalPadding]:"10px"},lg:{[eI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[eI.horizontalPadding]:"5px"},md:{[eI.horizontalPadding]:"10px"},lg:{[eI.horizontalPadding]:"20px"}},direction:{row:{[eI.flexDirection]:"row",[eI.alignItems]:oI.verticalAlignment,[eI.justifyContent]:oI.horizontalAlignment,[eI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[nI.horizontalAlignment]:"space-between"}}},column:{[eI.flexDirection]:"column",[eI.alignItems]:oI.horizontalAlignment,[eI.justifyContent]:oI.verticalAlignment,verticalAlignment:{spaceBetween:{[nI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[eI.gap]:"10px"},md:{[eI.gap]:"20px"},lg:{[eI.gap]:"30px"}},shadow:{sm:{[eI.boxShadow]:`${tI.shadow.wide.sm} ${rI}, ${tI.shadow.narrow.sm} ${rI}`},md:{[eI.boxShadow]:`${tI.shadow.wide.md} ${rI}, ${tI.shadow.narrow.md} ${rI}`},lg:{[eI.boxShadow]:`${tI.shadow.wide.lg} ${rI}, ${tI.shadow.narrow.lg} ${rI}`},xl:{[eI.boxShadow]:`${tI.shadow.wide.xl} ${rI}, ${tI.shadow.narrow.xl} ${rI}`},"2xl":{[nI.shadowColor]:"#00000050",[eI.boxShadow]:`${tI.shadow.wide["2xl"]} ${rI}`}},"&borderRadius":{sm:{[eI.borderRadius]:tI.radius.sm},md:{[eI.borderRadius]:tI.radius.md},lg:{[eI.borderRadius]:tI.radius.lg},xl:{[eI.borderRadius]:tI.radius.xl},"2xl":{[eI.borderRadius]:tI.radius["2xl"]},"3xl":{[eI.borderRadius]:tI.radius["3xl"]}}},aI={...eI,...nI};var lI=Object.freeze({__proto__:null,default:sI,vars:aI});const dI=zr.cssVarList,cI={[dI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var uI=Object.freeze({__proto__:null,default:cI,vars:dI});const pI=Sr.cssVarList,hI={[pI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var gI=Object.freeze({__proto__:null,default:hI,vars:pI});const MI=wr.cssVarList,mI={[MI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var yI=Object.freeze({__proto__:null,default:mI,vars:MI});const bI=Ce(tp),NI=Ir.cssVarList,[II,xI,jI]=Ve({thickness:"2px",spacing:"10px"},hr),TI={...II,[NI.hostDirection]:bI.direction,[NI.alignItems]:"center",[NI.flexDirection]:"row",[NI.alignSelf]:"stretch",[NI.hostWidth]:"100%",[NI.stripeColor]:bI.colors.surface.light,[NI.stripeColorOpacity]:"0.5",[NI.stripeHorizontalThickness]:xI.thickness,[NI.labelTextWidth]:"fit-content",[NI.labelTextMaxWidth]:"calc(100% - 100px)",[NI.labelTextHorizontalSpacing]:xI.spacing,[NI.textAlign]:"center",_vertical:{[NI.minHeight]:"200px",[NI.flexDirection]:"column",[NI.hostWidth]:"fit-content",[NI.hostPadding]:`0 calc(${xI.thickness} * 3)`,[NI.stripeVerticalThickness]:xI.thickness,[NI.labelTextWidth]:"fit-content",[NI.labelTextMaxWidth]:"100%",[NI.labelTextVerticalSpacing]:xI.spacing}},DI={...NI,...jI};var vI=Object.freeze({__proto__:null,default:TI,vars:DI});const zI=ts.cssVarList,CI={[zI.hostDirection]:LN.direction,[zI.fontFamily]:LN.fontFamily,[zI.fontSize]:LN.fontSize,[zI.labelTextColor]:LN.labelTextColor,[zI.labelRequiredIndicator]:LN.requiredIndicator,[zI.labelFontWeight]:LN.labelFontWeight,[zI.errorMessageTextColor]:LN.errorMessageTextColor,[zI.errorMessageFontWeight]:LN.errorMessageFontWeight,[zI.digitValueTextColor]:LN.valueTextColor,[zI.digitValueFontWeight]:LN.inputValueFontWeight,[zI.digitPadding]:"0",[zI.digitTextAlign]:"center",[zI.digitSpacing]:"4px",[zI.hostWidth]:LN.width,[zI.digitOutlineColor]:"transparent",[zI.digitOutlineWidth]:LN.outlineWidth,[zI.focusedDigitFieldOutlineColor]:LN.outlineColor,[zI.digitSize]:LN.inputHeight,[zI.errorMessageIcon]:LN.errorMessageIcon,[zI.errorMessageIconSize]:LN.errorMessageIconSize,[zI.errorMessageIconPadding]:LN.errorMessageIconPadding,[zI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[zI.errorMessageIconPosition]:LN.errorMessageIconPosition,[zI.errorMessageFontSize]:LN.errorMessageFontSize,size:{xs:{[zI.spinnerSize]:"15px"},sm:{[zI.spinnerSize]:"20px"},md:{[zI.spinnerSize]:"20px"},lg:{[zI.spinnerSize]:"20px"}},_hideCursor:{[zI.digitCaretTextColor]:"transparent"},_loading:{[zI.overlayOpacity]:LN.overlayOpacity}};var SI=Object.freeze({__proto__:null,default:CI,vars:zI});const LI=Ce(tp),wI=eo.cssVarList,AI={[wI.hostDisplay]:"inline-block",[wI.hostWidth]:"100%",[wI.barColor]:LI.colors.surface.contrast,[wI.barWidth]:"20%",[wI.barBackgroundColor]:LI.colors.surface.light,[wI.barBorderRadius]:"4px",[wI.animationDuration]:"2s",[wI.animationTimingFunction]:"linear",[wI.animationIterationCount]:"infinite",[wI.verticalPadding]:"0.25em",size:{xs:{[wI.barHeight]:"2px"},sm:{[wI.barHeight]:"4px"},md:{[wI.barHeight]:"6px"},lg:{[wI.barHeight]:"8px"}},mode:{primary:{[wI.barColor]:LI.colors.primary.main},secondary:{[wI.barColor]:LI.colors.secondary.main}},_hidden:{[wI.hostDisplay]:"none"}};var fI=Object.freeze({__proto__:null,default:AI,vars:wI});const EI=Ce(tp),kI=no.cssVarList,[OI,VI,WI]=Ve({spinnerColor:EI.colors.surface.contrast,mode:{primary:{spinnerColor:EI.colors.primary.main},secondary:{spinnerColor:EI.colors.secondary.main}}},io),UI={...OI,[kI.animationDuration]:"2s",[kI.animationTimingFunction]:"linear",[kI.animationIterationCount]:"infinite",[kI.spinnerBorderStyle]:"solid",[kI.spinnerBorderWidth]:"0.2em",[kI.spinnerBorderRadius]:"50%",[kI.spinnerQuadrant1Color]:VI.spinnerColor,[kI.spinnerQuadrant2Color]:"transparent",[kI.spinnerQuadrant3Color]:VI.spinnerColor,[kI.spinnerQuadrant4Color]:"transparent",size:{xs:{[kI.spinnerSize]:"20px"},sm:{[kI.spinnerSize]:"30px"},md:{[kI.spinnerSize]:"40px"},lg:{[kI.spinnerSize]:"60px"},xl:{[kI.spinnerSize]:"80px"}},_hidden:{[kI.hostDisplay]:"none"}},RI={...kI,...WI};var YI=Object.freeze({__proto__:null,default:UI,vars:RI});const QI=Gs.cssVarList,BI={[QI.hostWidth]:LN.width,[QI.hostDirection]:LN.direction,[QI.fontSize]:LN.fontSize,[QI.fontFamily]:LN.fontFamily,[QI.labelFontSize]:LN.labelFontSize,[QI.labelFontWeight]:LN.labelFontWeight,[QI.inputValueFontWeight]:LN.inputValueFontWeight,[QI.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[QI.helperTextFontWeight]:LN.helperTextFontWeight,[QI.errorMessageFontWeight]:LN.errorMessageFontWeight,[QI.labelTextColor]:LN.labelTextColor,[QI.labelRequiredIndicator]:LN.requiredIndicator,[QI.errorMessageTextColor]:LN.errorMessageTextColor,[QI.inputValueTextColor]:LN.valueTextColor,[QI.inputPlaceholderTextColor]:LN.placeholderTextColor,[QI.inputBorderStyle]:LN.borderStyle,[QI.inputBorderWidth]:LN.borderWidth,[QI.inputBorderColor]:LN.borderColor,[QI.inputBorderRadius]:LN.borderRadius,[QI.inputOutlineStyle]:LN.outlineStyle,[QI.inputOutlineWidth]:LN.outlineWidth,[QI.inputOutlineColor]:LN.outlineColor,[QI.inputOutlineOffset]:LN.outlineOffset,[QI.phoneInputWidth]:LN.minWidth,[QI.countryCodeInputWidth]:"5em",[QI.countryCodeDropdownWidth]:"20em",[QI.marginInlineStart]:"-0.25em",[QI.valueInputHeight]:LN.valueInputHeight,[QI.valueInputMarginBottom]:LN.valueInputMarginBottom,[QI.errorMessageIcon]:LN.errorMessageIcon,[QI.errorMessageIconSize]:LN.errorMessageIconSize,[QI.errorMessageIconPadding]:LN.errorMessageIconPadding,[QI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[QI.errorMessageIconPosition]:LN.errorMessageIconPosition,[QI.errorMessageFontSize]:LN.errorMessageFontSize};var PI=Object.freeze({__proto__:null,default:BI,vars:QI});const ZI=da.cssVarList,FI={[ZI.hostWidth]:"16em",[ZI.hostMinWidth]:LN.minWidth,[ZI.hostDirection]:LN.direction,[ZI.fontSize]:LN.fontSize,[ZI.fontFamily]:LN.fontFamily,[ZI.labelFontSize]:LN.labelFontSize,[ZI.labelFontWeight]:LN.labelFontWeight,[ZI.inputValueFontWeight]:LN.inputValueFontWeight,[ZI.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[ZI.helperTextFontWeight]:LN.helperTextFontWeight,[ZI.errorMessageFontWeight]:LN.errorMessageFontWeight,[ZI.labelTextColor]:LN.labelTextColor,[ZI.labelRequiredIndicator]:LN.requiredIndicator,[ZI.errorMessageTextColor]:LN.errorMessageTextColor,[ZI.inputValueTextColor]:LN.valueTextColor,[ZI.inputPlaceholderTextColor]:LN.placeholderTextColor,[ZI.inputBorderStyle]:LN.borderStyle,[ZI.inputBorderWidth]:LN.borderWidth,[ZI.inputBorderColor]:LN.borderColor,[ZI.inputBorderRadius]:LN.borderRadius,[ZI.inputOutlineStyle]:LN.outlineStyle,[ZI.inputOutlineWidth]:LN.outlineWidth,[ZI.inputOutlineColor]:LN.outlineColor,[ZI.inputOutlineOffset]:LN.outlineOffset,[ZI.labelPosition]:LN.labelPosition,[ZI.labelTopPosition]:LN.labelTopPosition,[ZI.labelHorizontalPosition]:LN.labelHorizontalPosition,[ZI.inputTransformY]:LN.inputTransformY,[ZI.inputTransition]:LN.inputTransition,[ZI.marginInlineStart]:LN.marginInlineStart,[ZI.valueInputHeight]:LN.valueInputHeight,[ZI.valueInputMarginBottom]:LN.valueInputMarginBottom,[ZI.inputHorizontalPadding]:"0",[ZI.errorMessageIcon]:LN.errorMessageIcon,[ZI.errorMessageIconSize]:LN.errorMessageIconSize,[ZI.errorMessageIconPadding]:LN.errorMessageIconPadding,[ZI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[ZI.errorMessageIconPosition]:LN.errorMessageIconPosition,[ZI.errorMessageFontSize]:LN.errorMessageFontSize,_fullWidth:{[ZI.hostWidth]:LN.width}};var GI=Object.freeze({__proto__:null,default:FI,vars:ZI});const HI=Ce(tp),JI=Aa.cssVarList,$I={[JI.hostWidth]:LN.width,[JI.hostMinWidth]:LN.minWidth,[JI.hostDirection]:LN.direction,[JI.fontSize]:LN.fontSize,[JI.fontFamily]:LN.fontFamily,[JI.labelFontSize]:LN.labelFontSize,[JI.labelFontWeight]:LN.labelFontWeight,[JI.inputValueFontWeight]:LN.inputValueFontWeight,[JI.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[JI.helperTextFontWeight]:LN.helperTextFontWeight,[JI.errorMessageFontWeight]:LN.errorMessageFontWeight,[JI.labelTextColor]:LN.labelTextColor,[JI.spaceBetweenInputs]:"1em",[JI.errorMessageTextColor]:LN.errorMessageTextColor,[JI.policyPreviewBackgroundColor]:"none",[JI.policyPreviewPadding]:HI.spacing.lg,[JI.valueInputHeight]:LN.valueInputHeight,[JI.errorMessageIcon]:LN.errorMessageIcon,[JI.errorMessageIconSize]:LN.errorMessageIconSize,[JI.errorMessageIconPadding]:LN.errorMessageIconPadding,[JI.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[JI.errorMessageIconPosition]:LN.errorMessageIconPosition,[JI.errorMessageFontSize]:LN.errorMessageFontSize,_required:{[JI.inputsRequiredIndicator]:LN.requiredIndicator}};var qI=Object.freeze({__proto__:null,default:$I,vars:JI});const _I=il.cssVarList,XI={[_I.hostDirection]:LN.direction,[_I.labelTextColor]:LN.labelTextColor,[_I.fontFamily]:LN.fontFamily,[_I.iconSize]:"2em",[_I.hostPadding]:"0.75em",[_I.gap]:"0.5em",[_I.fontSize]:"16px",[_I.titleFontWeight]:"500",[_I.lineHeight]:"1em",[_I.borderWidth]:LN.borderWidth,[_I.borderColor]:LN.borderColor,[_I.borderRadius]:LN.borderRadius,[_I.borderStyle]:"dashed",_required:{[_I.requiredIndicator]:LN.requiredIndicator},size:{xs:{[_I.hostHeight]:"196px",[_I.hostWidth]:"200px",[_I.titleFontSize]:"0.875em",[_I.descriptionFontSize]:"0.875em",[_I.lineHeight]:"1.25em"},sm:{[_I.hostHeight]:"216px",[_I.hostWidth]:"230px",[_I.titleFontSize]:"1em",[_I.descriptionFontSize]:"0.875em",[_I.lineHeight]:"1.25em"},md:{[_I.hostHeight]:"256px",[_I.hostWidth]:"312px",[_I.titleFontSize]:"1.125em",[_I.descriptionFontSize]:"1em",[_I.lineHeight]:"1.5em"},lg:{[_I.hostHeight]:"280px",[_I.hostWidth]:"336px",[_I.titleFontSize]:"1.125em",[_I.descriptionFontSize]:"1.125em",[_I.lineHeight]:"1.75em"}},_fullWidth:{[_I.hostWidth]:LN.width}};var KI=Object.freeze({__proto__:null,default:XI,vars:_I});const tx=Ce(tp),ex=bl.cssVarList,ix={[ex.hostDirection]:"inherit",[ex.backgroundColor]:tx.colors.surface.main,[ex.labelTextColor]:tx.colors.surface.contrast,[ex.borderColor]:tx.colors.surface.light,[ex.borderStyle]:"solid",[ex.borderRadius]:tx.radius.sm,[ex.outlineColor]:"transparent",[ex.borderWidth]:tx.border.xs,_hover:{[ex.backgroundColor]:tx.colors.surface.highlight},_focused:{[ex.outlineColor]:tx.colors.surface.light},_selected:{[ex.borderColor]:tx.colors.surface.contrast,[ex.backgroundColor]:tx.colors.surface.contrast,[ex.labelTextColor]:tx.colors.surface.main}};var ox=Object.freeze({__proto__:null,default:ix,vars:ex});const nx=Ce(tp),rx=t=>({[t.hostDirection]:LN.direction,[t.fontFamily]:LN.fontFamily,[t.labelTextColor]:LN.labelTextColor,[t.labelRequiredIndicator]:LN.requiredIndicator,[t.itemsSpacing]:nx.spacing.sm,[t.hostWidth]:LN.width,[t.errorMessageTextColor]:LN.errorMessageTextColor,[t.errorMessageIcon]:LN.errorMessageIcon,[t.errorMessageIconSize]:LN.errorMessageIconSize,[t.errorMessageIconPadding]:LN.errorMessageIconPadding,[t.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[t.errorMessageIconPosition]:LN.errorMessageIconPosition,[t.errorMessageFontSize]:LN.errorMessageFontSize}),sx=Ml.cssVarList,ax={...rx(sx)};var lx=Object.freeze({__proto__:null,default:ax,vars:sx});const dx=jl.cssVarList,cx={...rx(dx)};var ux=Object.freeze({__proto__:null,default:cx,vars:dx});const px=Ce(tp),hx=nc.cssVarList,gx={[hx.overlayBackgroundColor]:px.colors.surface.main,[hx.overlayShadow]:px.shadow.wide["2xl"],[hx.overlayWidth]:"540px",[hx.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},Mx={...hx};var mx=Object.freeze({__proto__:null,default:gx,vars:Mx});const yx=Ce(tp),bx=ec.cssVarList,Nx={[bx.hostWidth]:"100%",[bx.hostHeight]:"100%",[bx.hostMinHeight]:"400px",[bx.fontWeight]:"400",[bx.backgroundColor]:yx.colors.surface.main,[bx.fontSize]:LN.fontSize,[bx.fontFamily]:LN.fontFamily,[bx.sortIndicatorsColor]:yx.colors.surface.light,[bx.activeSortIndicator]:yx.colors.surface.dark,[bx.resizeHandleColor]:yx.colors.surface.light,[bx.borderWidth]:LN.borderWidth,[bx.borderStyle]:LN.borderStyle,[bx.borderRadius]:LN.borderRadius,[bx.borderColor]:"transparent",[bx.headerRowTextColor]:yx.colors.surface.dark,[bx.separatorColor]:yx.colors.surface.light,[bx.valueTextColor]:yx.colors.surface.contrast,[bx.selectedBackgroundColor]:yx.colors.surface.highlight,[bx.hostDirection]:yx.direction,[bx.toggleDetailsPanelButtonSize]:"1em",[bx.toggleDetailsPanelButtonOpenedColor]:yx.colors.surface.contrast,[bx.toggleDetailsPanelButtonClosedColor]:yx.colors.surface.light,[bx.toggleDetailsPanelButtonCursor]:"pointer",[bx.detailsPanelBackgroundColor]:yx.colors.surface.highlight,[bx.detailsPanelBorderTopColor]:yx.colors.surface.light,[bx.detailsPanelLabelsColor]:yx.colors.surface.dark,[bx.detailsPanelLabelsFontSize]:"0.8em",[bx.detailsPanelItemsGap]:"2em",[bx.detailsPanelPadding]:"12px 0",_bordered:{[bx.borderColor]:LN.borderColor}};var Ix=Object.freeze({__proto__:null,default:Nx,grid:Nx,vars:bx});const xx=Ce(tp),jx=lc.cssVarList,Tx="#00000020",Dx={[jx.hostMinWidth]:"415px",[jx.fontFamily]:xx.fonts.font1.family,[jx.fontSize]:xx.typography.body1.size,[jx.backgroundColor]:xx.colors.surface.main,[jx.textColor]:xx.colors.surface.contrast,[jx.boxShadow]:`${xx.shadow.wide.xl} ${Tx}, ${xx.shadow.narrow.xl} ${Tx}`,[jx.verticalPadding]:"0.625em",[jx.horizontalPadding]:"1.5em",[jx.borderRadius]:xx.radius.xs,_bordered:{[jx.borderWidth]:xx.border.sm,[jx.borderStyle]:"solid",[jx.borderColor]:"transparent"},size:{xs:{[jx.fontSize]:"12px"},sm:{[jx.fontSize]:"14px"},md:{[jx.fontSize]:"16px"},lg:{[jx.fontSize]:"18px"}},mode:{primary:{[jx.backgroundColor]:xx.colors.primary.main,[jx.textColor]:xx.colors.primary.contrast,[jx.borderColor]:xx.colors.primary.light},success:{[jx.backgroundColor]:xx.colors.success.main,[jx.textColor]:xx.colors.success.contrast,[jx.borderColor]:xx.colors.success.light},error:{[jx.backgroundColor]:xx.colors.error.main,[jx.textColor]:xx.colors.error.contrast,[jx.borderColor]:xx.colors.error.light}}};var vx=Object.freeze({__proto__:null,default:Dx,vars:jx});const zx=Ce(tp),Cx=Dc.cssVarList,Sx={[Cx.hostWidth]:LN.width,[Cx.hostDirection]:LN.direction,[Cx.fontSize]:LN.fontSize,[Cx.fontFamily]:LN.fontFamily,[Cx.separatorFontSize]:"14px",[Cx.labelsFontSize]:"14px",[Cx.labelsLineHeight]:"1",[Cx.labelsMarginBottom]:"6px",[Cx.labelTextColor]:LN.labelTextColor,[Cx.itemMarginBottom]:"1em",[Cx.valueLabelMinWidth]:LN.minWidth,[Cx.attrLabelMinWidth]:`calc(12em + 2 * ${zx.border.xs})`,[Cx.separatorWidth]:"70px",[Cx.removeButtonWidth]:"60px"};var Lx=Object.freeze({__proto__:null,default:Sx,mappingsField:Sx,vars:Cx});const wx=Ce(tp),Ax=Yc.cssVarList,fx={[Ax.labelMinWidth]:"150px",[Ax.hostDirection]:wx.direction,[Ax.contentMinWidth]:`calc(100% - ${Oe(Ax.labelMinWidth)} - ${Oe(Ax.itemsGap)})`,[Ax.badgeMaxWidth]:"85px",[Ax.itemsGap]:"4px",[Ax.hostMinWidth]:"310px",[Ax.hostWidth]:"530px",[Ax.hostMaxWidth]:"100%",[Ax.iconColor]:"currentcolor",_fullWidth:{[Ax.hostWidth]:"100%"}};var Ex=Object.freeze({__proto__:null,default:fx,vars:Ax});const kx=Ce(tp),Ox=$c.cssVarList,Vx={[Ox.hostDirection]:kx.direction,[Ox.itemsGap]:"16px",[Ox.hostMinWidth]:"310px",[Ox.hostWidth]:"530px",[Ox.hostMaxWidth]:"100%",[Ox.iconSize]:"24px",[Ox.iconColor]:"currentcolor",_fullWidth:{[Ox.hostWidth]:"100%"}};var Wx=Object.freeze({__proto__:null,default:Vx,vars:Ox});const Ux=iu.cssVarList,Rx={[Ux.hostWidth]:LN.width,[Ux.hostDirection]:LN.direction,[Ux.groupNameInputMarginBottom]:"1em",[Ux.errorMessageIcon]:LN.errorMessageIcon,[Ux.errorMessageIconSize]:LN.errorMessageIconSize,[Ux.errorMessageIconPadding]:LN.errorMessageIconPadding,[Ux.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[Ux.errorMessageIconPosition]:LN.errorMessageIconPosition,[Ux.errorMessageFontSize]:LN.errorMessageFontSize};var Yx=Object.freeze({__proto__:null,default:Rx,samlGroupMappings:Rx,vars:Ux});const Qx=Ce(tp),Bx=xa.cssVarList,Px={[Bx.fontFamily]:LN.fontFamily,[Bx.fontSize]:LN.labelFontSize,[Bx.textColor]:LN.labelTextColor,[Bx.borderWidth]:LN.borderWidth,[Bx.borderStyle]:LN.borderStyle,[Bx.borderColor]:LN.borderColor,[Bx.borderRadius]:Qx.radius.sm,[Bx.backgroundColor]:"none",[Bx.padding]:"0px",[Bx.labelMargin]:Qx.spacing.sm,[Bx.itemsSpacing]:Qx.spacing.lg,[Bx.itemSymbolDefault]:"'\\2022'",[Bx.itemSymbolSuccess]:"'\\2713'",[Bx.itemSymbolError]:"'\\2A09'",[Bx.itemSymbolSuccessColor]:Qx.colors.success.main,[Bx.itemSymbolErrorColor]:Qx.colors.error.main};var Zx=Object.freeze({__proto__:null,default:Px,vars:Bx});const Fx=Ce(tp),Gx=Ld.cssVarList,Hx="#d73a49",Jx="#6f42c1",$x="#005cc5",qx="#e36209",_x="#6a737d",Xx="#22863a",Kx="#24292e",tj="#f0fff4",ej="#032f62",ij="#ff7b72",oj="#d2a8ff",nj="#79c0ff",rj="#ffa657",sj="#8b949e",aj="#7ee787",lj="#c9d1d9",dj="#f0fff4",cj="#a5d6ff",uj={[Gx.copyButtonSize]:"32px",[Gx.copyButtonBorderRadius]:Fx.radius.xs,[Gx.copyButtonBorderWidth]:Fx.border.xs,[Gx.copyButtonBorderColor]:Fx.colors.surface.light,[Gx.copyButtonBgColor]:Fx.colors.surface.highlight,[Gx.copyButtonHoverBgColor]:Fx.colors.surface.light,[Gx.copyButtonColor]:Fx.colors.surface.contrast,[Gx.rootBgColor]:Fx.colors.surface.main,[Gx.rootTextColor]:Fx.colors.surface.contrast,[Gx.docTagTextColor]:Hx,[Gx.keywordTextColor]:Hx,[Gx.metaKeywordTextColor]:Hx,[Gx.templateTagTextColor]:Hx,[Gx.templateVariableTextColor]:Hx,[Gx.typeTextColor]:Hx,[Gx.variableLanguageTextColor]:Hx,[Gx.titleTextColor]:Jx,[Gx.titleClassTextColor]:Jx,[Gx.titleClassInheritedTextColor]:Jx,[Gx.titleFunctionTextColor]:Jx,[Gx.attrTextColor]:$x,[Gx.attributeTextColor]:$x,[Gx.literalTextColor]:$x,[Gx.metaTextColor]:$x,[Gx.numberTextColor]:$x,[Gx.operatorTextColor]:$x,[Gx.variableTextColor]:$x,[Gx.selectorAttrTextColor]:$x,[Gx.selectorClassTextColor]:$x,[Gx.selectorIdTextColor]:$x,[Gx.regexpTextColor]:ej,[Gx.stringTextColor]:ej,[Gx.metaStringTextColor]:ej,[Gx.builtInTextColor]:qx,[Gx.symbolTextColor]:qx,[Gx.commentTextColor]:_x,[Gx.codeTextColor]:_x,[Gx.formulaTextColor]:_x,[Gx.nameTextColor]:Xx,[Gx.quoteTextColor]:Xx,[Gx.selectorTagTextColor]:Xx,[Gx.selectorPseudoTextColor]:Xx,[Gx.substTextColor]:Kx,[Gx.sectionTextColor]:$x,[Gx.bulletTextColor]:"#735c0f",[Gx.emphasisTextColor]:Kx,[Gx.strongTextColor]:Kx,[Gx.additionTextColor]:Xx,[Gx.additionBgColor]:tj,[Gx.deletionTextColor]:Hx,[Gx.deletionBgColor]:tj},pj={codeSnippet:{[Gx.rootBgColor]:Fx.colors.surface.main,[Gx.rootTextColor]:Fx.colors.surface.contrast,[Gx.docTagTextColor]:ij,[Gx.keywordTextColor]:ij,[Gx.metaKeywordTextColor]:ij,[Gx.templateTagTextColor]:ij,[Gx.templateVariableTextColor]:ij,[Gx.typeTextColor]:ij,[Gx.variableLanguageTextColor]:ij,[Gx.titleTextColor]:oj,[Gx.titleClassTextColor]:oj,[Gx.titleClassInheritedTextColor]:oj,[Gx.titleFunctionTextColor]:oj,[Gx.attrTextColor]:nj,[Gx.attributeTextColor]:nj,[Gx.literalTextColor]:nj,[Gx.metaTextColor]:nj,[Gx.numberTextColor]:nj,[Gx.operatorTextColor]:nj,[Gx.variableTextColor]:nj,[Gx.selectorAttrTextColor]:nj,[Gx.selectorClassTextColor]:nj,[Gx.selectorIdTextColor]:nj,[Gx.regexpTextColor]:cj,[Gx.stringTextColor]:cj,[Gx.metaStringTextColor]:cj,[Gx.builtInTextColor]:rj,[Gx.symbolTextColor]:rj,[Gx.commentTextColor]:sj,[Gx.codeTextColor]:sj,[Gx.formulaTextColor]:sj,[Gx.nameTextColor]:aj,[Gx.quoteTextColor]:aj,[Gx.selectorTagTextColor]:aj,[Gx.selectorPseudoTextColor]:aj,[Gx.substTextColor]:lj,[Gx.sectionTextColor]:nj,[Gx.bulletTextColor]:"#735c0f",[Gx.emphasisTextColor]:lj,[Gx.strongTextColor]:lj,[Gx.additionTextColor]:aj,[Gx.additionBgColor]:dj,[Gx.deletionTextColor]:ij,[Gx.deletionBgColor]:dj}};var hj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:pj,default:uj,vars:Gx});const gj=su.cssVarList,Mj=Ce(tp),mj={[gj.buttonsRowGap]:"9px",[gj.hostWidth]:LN.width,[gj.hostDirection]:LN.direction,[gj.fontSize]:LN.fontSize,[gj.fontFamily]:LN.fontFamily,[gj.labelFontWeight]:LN.labelFontWeight,[gj.labelTextColor]:LN.labelTextColor,[gj.labelRequiredIndicator]:LN.requiredIndicator,[gj.errorMessageTextColor]:LN.errorMessageTextColor,[gj.errorMessageIcon]:LN.errorMessageIcon,[gj.errorMessageIconSize]:LN.errorMessageIconSize,[gj.errorMessageIconPadding]:LN.errorMessageIconPadding,[gj.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[gj.errorMessageIconPosition]:LN.errorMessageIconPosition,[gj.errorMessageFontSize]:LN.errorMessageFontSize,[gj.helperTextColor]:LN.helperTextColor,[gj.itemsLabelColor]:Mj.colors.surface.contrast,[gj.itemsLabelFontWeight]:LN.inputValueFontWeight,[gj.itemsFontFamily]:LN.fontFamily,[gj.itemsRadioCheckedColor]:Mj.colors.surface.light,[gj.itemsRadioBackgroundColor]:Mj.colors.surface.light,[gj.itemsRadioCheckedBackgroundColor]:Mj.colors.surface.contrast,textAlign:{right:{[gj.inputTextAlign]:"right"},left:{[gj.inputTextAlign]:"left"},center:{[gj.inputTextAlign]:"center"}},_fullWidth:{[gj.buttonsSpacing]:"space-between"},_disabled:{[gj.itemsLabelColor]:Mj.colors.surface.light}};var yj=Object.freeze({__proto__:null,default:mj,radioGroup:mj,vars:gj});const bj=nu.cssVarList,Nj=Ce(tp),Ij={[bj.fontFamily]:LN.fontFamily,[bj.labelFontWeight]:LN.inputValueFontWeight,[bj.radioSize]:"calc(1em + 6px)",[bj.radioMargin]:"auto 4px",[bj.radioCheckedSize]:`calc(var(${bj.radioSize})/5)`,[bj.radioCheckedColor]:Nj.colors.surface.light,[bj.radioBackgroundColor]:Nj.colors.surface.light,[bj.radioBorderColor]:"none",[bj.radioBorderWidth]:0,_checked:{[bj.radioBackgroundColor]:Nj.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[bj.fontSize]:"12px"},sm:{[bj.fontSize]:"14px"},md:{[bj.fontSize]:"16px"},lg:{[bj.fontSize]:"18px"}}};var xj=Object.freeze({__proto__:null,default:Ij,radioButton:Ij,vars:bj});const jj=Ce(tp),Tj=fn.cssVarList,Dj={[Tj.fontFamily]:LN.fontFamily,[Tj.fontSize]:LN.fontSize,[Tj.hostDirection]:LN.direction,[Tj.calendarPadding]:"1em",[Tj.topNavVerticalPadding]:"1em",[Tj.topNavAlignment]:"space-between",[Tj.topNavGap]:"0",[Tj.topNavSelectorsGap]:"0.5em",[Tj.bottomNavVerticalPadding]:"0.75em",[Tj.bottomNavHorizontalPadding]:"1.5em",[Tj.bottomNavAlignment]:"space-between",[Tj.bottomNavGap]:"0.5em",[Tj.navMarginBottom]:"0.75em",[Tj.navBorderBottomWidth]:"1px",[Tj.navBorderBottomColor]:jj.colors.surface.highlight,[Tj.navBorderBottomStyle]:"solid",[Tj.yearInputWidth]:"6em",[Tj.monthInputWidth]:"8em",[Tj.navButtonSize]:"24px",[Tj.navButtonCursor]:"pointer",[Tj.weekdayFontSize]:"0.875em",[Tj.weekdayFontWeight]:"500",[Tj.dayHeight]:"3.125em",[Tj.daySize]:"2.125em",[Tj.dayFontSize]:"1em",[Tj.dayRadius]:"50%",[Tj.dayTextAlign]:"center",[Tj.dayPadding]:"0",[Tj.dayTextColor]:jj.colors.surface.contrast,[Tj.dayFontWeight]:"500",[Tj.dayBackgroundColor]:"transparent",[Tj.dayCursor]:"pointer",[Tj.dayBackgroundColorHover]:jj.colors.primary.highlight,[Tj.daySelectedBackgroundColor]:jj.colors.primary.main,[Tj.daySelectedTextdColor]:jj.colors.primary.contrast,[Tj.dayDisabledTextdColor]:jj.colors.surface.light,[Tj.currentDayBorderColor]:jj.colors.surface.light,[Tj.currentDayBorderWidth]:"1px",[Tj.currentDayBorderStyle]:"solid",size:{xs:{[Tj.fontSize]:"12px"},sm:{[Tj.fontSize]:"14px"},md:{[Tj.fontSize]:"16px"},lg:{[Tj.fontSize]:"18px"}},[Tj.navButtonRotation]:"rotate(180deg)",_disabled:{[Tj.navButtonOpacity]:"0.5",[Tj.dayBackgroundColorHover]:"none",[Tj.navButtonCursor]:"default",[Tj.dayCursor]:"default"},_fullWidth:{[Tj.hostWidth]:"100%",[Tj.dayBlockAlign]:"0 auto"}};var vj=Object.freeze({__proto__:null,default:Dj,vars:Tj});const zj=Ce(tp),Cj="#00000020",{shadow:Sj}=zj,Lj=pr.cssVarList,wj={[Lj.hostWidth]:LN.width,[Lj.hostDirection]:LN.direction,[Lj.iconMargin]:"0.375em",[Lj.overlay.marginTop]:`calc(${LN.outlineWidth} + 1px)`,[Lj.overlay.backgroundColor]:LN.backgroundColor,[Lj.overlay.backdropBackgroundColor]:"transparent",[Lj.overlay.backdropPointerEvents]:"all",[Lj.overlay.boxShadow]:`${Sj.wide.xl} ${Cj}, ${Sj.narrow.xl} ${Cj}`,[Lj.overlay.outlineWidth]:"0",[Lj.overlay.outlineColor]:"transparent",[Lj.overlay.outlineStyle]:"none",[Lj.overlay.padding]:"0",[Lj.rtlInputDirection]:"ltr",[Lj.rtlInputAlignment]:"right",[Lj.errorMessageIcon]:LN.errorMessageIcon,[Lj.errorMessageIconSize]:LN.errorMessageIconSize,[Lj.errorMessageIconPadding]:LN.errorMessageIconPadding,[Lj.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[Lj.errorMessageIconPosition]:LN.errorMessageIconPosition,[Lj.errorMessageFontSize]:LN.errorMessageFontSize,[Lj.labelFontWeight]:LN.labelFontWeight,[Lj.inputValueFontWeight]:LN.inputValueFontWeight,[Lj.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[Lj.helperTextFontWeight]:LN.helperTextFontWeight,[Lj.errorMessageFontWeight]:LN.errorMessageFontWeight};var Aj=Object.freeze({__proto__:null,default:wj,vars:Lj});const fj=pu.cssVarList,Ej={[fj.requiredInputBorderColor]:SN._disabled[wN.borderColor],[fj.requiredInputValueTextColor]:SN._disabled[wN.valueTextColor],[fj.hostWidth]:"280px",_fullWidth:{[fj.hostWidth]:"100%"}};var kj=Object.freeze({__proto__:null,default:Ej,vars:fj});const Oj=Ce(tp),Vj=ju.cssVarList,Wj={[Vj.gap]:Oj.spacing.lg,[Vj.arrowsColor]:Oj.colors.surface.dark,[Vj.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[Vj.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[Vj.logoMaxHeight]:"30px",[Vj.logoMaxWidth]:"120px"},sm:{[Vj.logoMaxHeight]:"40px",[Vj.logoMaxWidth]:"160px"},md:{[Vj.logoMaxHeight]:"48px",[Vj.logoMaxWidth]:"200px"},lg:{[Vj.logoMaxHeight]:"60px",[Vj.logoMaxWidth]:"240px"}}};var Uj=Object.freeze({__proto__:null,default:Wj,vars:Vj});const Rj=Cu.cssVarList,Yj={[Rj.hostWidth]:"fit-content",_fullWidth:{[Rj.hostWidth]:"100%"}};var Qj=Object.freeze({__proto__:null,default:Yj,vars:Rj});const Bj=Ou.cssVarList,Pj={[Bj.hostWidth]:"min-content",[Bj.questionCursor]:"pointer",_fullWidth:{[Bj.hostWidth]:"100%"},[Bj.questionFontSize]:LN.fontSize,[Bj.questionFontFamily]:LN.fontFamily};var Zj=Object.freeze({__proto__:null,default:Pj,vars:Bj});const Fj=Bu.cssVarList,Gj={[Fj.hostDirection]:LN.direction,[Fj.labelFontWeight]:LN.labelFontWeight,[Fj.inputValueFontWeight]:LN.inputValueFontWeight,[Fj.inputPlaceholderFontWeight]:LN.inputPlaceholderFontWeight,[Fj.helperTextFontWeight]:LN.helperTextFontWeight,[Fj.errorMessageFontWeight]:LN.errorMessageFontWeight,[Fj.errorMessageIcon]:LN.errorMessageIcon,[Fj.errorMessageIconSize]:LN.errorMessageIconSize,[Fj.errorMessageIconPadding]:LN.errorMessageIconPadding,[Fj.errorMessageIconRepeat]:LN.errorMessageIconRepeat,[Fj.errorMessageIconPosition]:LN.errorMessageIconPosition,[Fj.errorMessageFontSize]:LN.errorMessageFontSize,_fullWidth:{[Fj.hostWidth]:"100%"}};var Hj=Object.freeze({__proto__:null,default:Gj,vars:Fj});const Jj=Ce(tp),$j=Gu.cssVarList,qj={[$j.hostDirection]:Jj.direction,[$j.backgroundColor]:"transparent",[$j.iconSize]:"1.35em",[$j.alignItems]:"center",[$j.borderRadius]:Jj.radius.md,[$j.horizontalPadding]:"0",[$j.verticalPadding]:"0",[$j.gap]:"0.5em",[$j.fontSize]:Oe(yp.fontSize),mode:{error:{[$j.textColor]:Jj.colors.error.main,_bordered:{[$j.borderColor]:Jj.colors.error.main}},success:{[$j.textColor]:Jj.colors.success.main,_bordered:{[$j.borderColor]:Jj.colors.success.main}}},spacing:{xs:{[$j.horizontalPadding]:Jj.spacing.xs,[$j.verticalPadding]:Jj.spacing.xs},sm:{[$j.horizontalPadding]:Jj.spacing.sm,[$j.verticalPadding]:Jj.spacing.sm},md:{[$j.horizontalPadding]:Jj.spacing.md,[$j.verticalPadding]:Jj.spacing.md},lg:{[$j.horizontalPadding]:Jj.spacing.lg,[$j.verticalPadding]:Jj.spacing.lg},xl:{[$j.horizontalPadding]:Jj.spacing.xl,[$j.verticalPadding]:Jj.spacing.xl}},textAlign:{left:{[$j.justifyContent]:"left"},center:{[$j.justifyContent]:"center"},right:{[$j.justifyContent]:"right"}},_bordered:{[$j.borderWidth]:Jj.border.xs,[$j.borderColor]:"transparent",[$j.borderStyle]:"solid",[$j.borderWidth]:Jj.border.xs,[$j.borderRadius]:Jj.radius.sm},_fullWidth:{[$j.hostWidth]:"100%"}};var _j=Object.freeze({__proto__:null,default:qj,vars:$j});const Xj=qu.cssVarList,Kj={enabled:{false:{[Xj.maxHeight]:"70px"}}},tT={button:Mp,textField:Jy,password:ON,numberField:UN,emailField:QN,textArea:ZN,checkbox:JN,switchToggle:KN,container:lI,logo:uI,totpImage:gI,notpImage:yI,text:Np,enrichedText:Cp,link:Tp,divider:vI,passcode:SI,loaderRadial:YI,loaderLinear:fI,comboBox:Op,phoneField:PI,phoneInputBoxField:GI,newPassword:qI,inputWrapper:AN,uploadFile:KI,buttonSelectionGroupItem:ox,buttonSelectionGroup:lx,buttonMultiSelectionGroup:ux,modal:mx,grid:Ix,notificationCard:vx,multiSelectComboBox:og,badge:Bp,avatar:Kp,mappingsField:Lx,userAttribute:Ex,userAuthMethod:Wx,samlGroupMappings:Yx,policyValidation:Zx,image:oh,icon:eh,codeSnippet:hj,radioGroup:yj,radioButton:xj,calendar:vj,dateField:Aj,monthDayField:zb,monthDayFieldPicker:Yb,list:Nh,listItem:Th,multiLineMappings:Kh,appsList:ch,scopesList:kj,thirdPartyAppLogo:Uj,securityQuestionsSetup:Qj,securityQuestionsVerify:Zj,hybridField:Hj,alert:_j,autocompleteField:gg,addressField:wg,countrySubdivisionCityField:Iy,timer:Bg,timerButton:nM,passwordStrength:yM,collapsibleContainer:wM,recoveryCodes:BM,activeSessions:XM,hcaptcha:Object.freeze({__proto__:null,default:Kj,vars:Xj}),outboundApps:sm,outboundAppButton:hm,trustedDevices:Tm,multiSso:fm,tooltip:Hm,filter:vN,attachment:wy,userPasskeys:Zy},eT=Object.keys(tT).reduce((t,e)=>({...t,[e]:tT[e].default}),{}),iT=Object.keys(tT).reduce((t,e)=>({...t,[e]:tT[e].vars}),{}),oT={globals:tp,components:eT},nT={globals:ep,components:iT},rT=a()({},oT,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"},warning:{main:"#EF7A33",dark:"#FF985A",light:"#FF6304",highlight:"#C45512",contrast:"#000000"}}},components:{...pj}});customElements.define(Dh,Rh),customElements.define(ZM,$M),customElements.define(ng,class extends rg{static get observedAttributes(){return[].concat(rg.observedAttributes||[],sg)}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:ag,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:ag,disabled:!0}]}async onSearch(t){const e=t.detail.value;if(!e||e.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const i=await this.debouncedSearch(e);i&&i.value===e&&(this.comboBox.loading=!1,i.error?this.comboBox.data=this.#ns():0===i.results?.length?this.comboBox.data=this.#os():this.comboBox.data=i.results||[])}fetchResults(t){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(lg,cg),customElements.define(yg,Dg),customElements.define(vg,Cg);const sT=w("anchored");class aT extends(Nt({componentName:sT,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 lT=T(gt)(aT);customElements.define(sT,lT),customElements.define(Pp,Jp),customElements.define(nh,rh),customElements.define(xy,zy),customElements.define(bM,xM),customElements.define(ty,py),customElements.define(hy,yy),customElements.define(_b,rN),customElements.define(sN,pN),customElements.define(hN,NN),customElements.define(Lb,Wb),customElements.define(sb,Ib),customElements.define(Yh,qh),customElements.define(Dm,Sm),customElements.define(am,dm),customElements.define(KM,om),customElements.define(rM,pM);var dT=Object.freeze({__proto__:null,PasswordStrengthClass:pM,componentName:rM});const cT=w("ponyhot"),uT="dhp-",pT=Nt({componentName:cT,baseSelector:""}),hT=T(gt)(class extends pT{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=`${uT}${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(uT)&&e!==i?t.set.call(this,`${uT}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(cT,hT),customElements.define(AM,WM),customElements.define(fg,Ug),customElements.define(Pg,tM),customElements.define(Em,Um),customElements.define(mm,Im),customElements.define(Oy,Qy);const gT={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}};m.u2.setOptions(gT);var MT=Object.freeze({__proto__:null,default:m.K1,options:gT})}}]);
2
2
  //# sourceMappingURL=222.js.map