@descope/flow-components 3.22.2 → 3.22.3
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/114.js +1 -1
- package/dist/fm/114.js.map +1 -1
- package/dist/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +21 -3
- package/package.json +2 -2
package/dist/fm/222.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_descope_flow_components_3_22_2_1791288706924=self.webpackChunk_descope_flow_components_3_22_2_1791288706924||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>cb,$y:()=>Bu,A8:()=>Dc,Ag:()=>il,C1:()=>Yc,C9:()=>To,Cz:()=>cc,Er:()=>Jp,G6:()=>JT,HO:()=>qi,HT:()=>eo,J1:()=>Oo,Jr:()=>Yi,Lg:()=>Gu,MN:()=>ps,Mz:()=>Aa,NF:()=>Gs,O7:()=>xM,Od:()=>Tu,QW:()=>nc,Qb:()=>WM,R3:()=>bm,SE:()=>ao,SQ:()=>Lo,T$:()=>Ay,T1:()=>oj,TV:()=>qu,Ul:()=>da,VN:()=>Ld,VX:()=>Sr,_w:()=>ke,a5:()=>$T,bL:()=>pr,bU:()=>Cg,br:()=>W,dS:()=>dN,dX:()=>rh,dq:()=>cm,du:()=>qh,e7:()=>Se,eA:()=>wc,eo:()=>Ml,ew:()=>ge,fp:()=>Tl,gZ:()=>pu,h5:()=>HM,jH:()=>wr,k0:()=>Ir,l1:()=>no,lZ:()=>Cb,md:()=>zr,ml:()=>Bt,mq:()=>iu,o9:()=>fr,o_:()=>Ee,pp:()=>$c,px:()=>Ou,q:()=>my,q4:()=>zi,qn:()=>Co,rG:()=>Cu,sK:()=>wi,tD:()=>ec,tS:()=>su,td:()=>Uh,tl:()=>ts,ul:()=>Fa,v_:()=>jr,w8:()=>Xn,wt:()=>xa,xO:()=>Ts,xp:()=>yu,xs:()=>fn,yW:()=>KM,yi:()=>Sm,yj:()=>tM,zQ:()=>HT,zZ:()=>ay});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(7822),i(5595),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(),T=(...t)=>x(t.filter(t=>!!t).join("-")),j=(...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=>T(I,t),w=(...t)=>`--${T(...t)}`,A=(t,e,i={})=>v(t,C(t,e,i.mapAttrs),i),f=(t,e,{prepend:i=!1}={})=>{let o;try{o=new CSSStyleSheet}catch{return k(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 E{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 k=(t,e,{prepend:i=!1}={})=>new E(t,e,{prepend:i}),O=(t,e=2)=>t.trim().split(" ").splice(0,e).map(t=>t[0]?.toUpperCase()).join(""),V=(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},W=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,U=.1,Y=(t,e)=>t.darken(e).hex(),Q=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},B=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),P=t=>t.luminosity()>.99,Z=(t,e)=>(t=>t.luminosity()<.01)(t)?B(t,R):Y(t,.4),F=(t,e)=>P(t)?Y(t,R):B(t,.4),G=(t,e)=>P(t)?Y(t,U):B(t,.8),H=(t,e)=>{const i=new(d())(t.main||t);return{main:i.hex(),dark:t.dark||Z(i),light:t.light||F(i),highlight:t.highlight||G(i),contrast:t.contrast||Q(i)}},J=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,$=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,q=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,_=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,X=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`,K=t=>w(I,...t),tt=(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},et=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,et(n,[...e,o],i)),{}),it=(t,e)=>et(t,[],t=>tt({},t,`var(${K(t)})`)),ot=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),nt=(t,e)=>{const i=et(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=w(e,n),s={[n]:r},a={[n]:ot(r)};return{theme:tt({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},rt=t=>`${t}__override`,st=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${rt(t)}, ${o})`:o};let at=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 lt=(t,e="fallback")=>T(t,e),dt=(t,e,{fallback:i})=>{if(!i)return{};const o=lt(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,...dt(n,o,i)}},ct=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=w(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:rt(n)},dt(o,n,e[o]))},{}),ut=({mappings:t={},componentNameOverride:e=""})=>i=>{const o=e||i.componentName;return class e extends i{static get cssVarList(){return{...i.cssVarList,...ct(o,{...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=>T("st",i,t))}get#h(){return W.currentTheme?.[o]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=W.currentThemeName,this.onThemeChange?.(W.currentThemeName)}#M(){this.#r=f("",this.#d,{prepend:!0}),this.#s=W.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${o}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=f(`:host(${t}) {}`,this.#d)}}#y(t,e){const i=this.#n.cssRules[0].style;if(!i)return;const n=w(o,t.replace(new RegExp("^st-"),""));e?i?.setProperty(n,e):(i?.removeProperty(n),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 at,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=lt(e,t?.suffix);return st(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=w(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,st(a,l,!0)+(r?"!important":""))})}),o.toString()})(T(o,this.#a),this.#c,t);f(e,this.#d,{prepend:!0})}}#I(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.#I(o),this.#N(),this.#M(),this.#m(),v(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},pt=t=>class extends t{constructor(){super(),f(':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?.()}},ht=t=>class extends t{#x(){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.#x()}},gt=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})})}},mt=["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"],yt=t=>class extends t{init(){super.init?.(),v(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>mt.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?`)}),{})}},bt=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#j=!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.#j&&(this.#j=!1,this.init?.())}}return j(ht,Mt,yt,gt)(i)};function Nt(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const It=t=>class extends t{#D=Nt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#D(),this.prevValue=this.value)})}},xt=t=>class extends t{init(){this.#v(),super.init?.()}#v(){["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,Nt.call(this,"blur"),Nt.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Nt.call(this,"focus"),Nt.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,Nt.call(this,"input",{bubbles:!0,composed:!0})))})}},Tt=["required","pattern"],jt=Symbol("validationTarget"),Dt=t=>class extends t{#z=jt;static get observedAttributes(){return[...t.observedAttributes||[],...Tt]}static get formAssociated(){return!0}#C;get internals(){return this.#C}set internals(t){this.#C=t}constructor(){super(),this.#C=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""}}#S(){const t=this.isReadOnly?{}:this.getValidity();this.#C.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#C.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#C.validity.valid}reportValidity(){return this.#C.reportValidity()}get validity(){return this.#C.validity}get validationTarget(){return this.#z===jt?this.inputElement:this.#z}set validationTarget(t){this.#z=t}setCustomValidity(t){t?this.#C.setValidity({customError:!0},t,this.validationTarget):(this.#C.setValidity({}),this.#S())}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.#C.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Tt.includes(t)&&this.#S()}init(){super.init?.(),this.addEventListener("change",this.#S),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#S),setTimeout(()=>this.#S())}},vt=(...t)=>j(Dt,It,yt,xt)(bt(...t)),zt="FETCH_RESULTS_ERROR",Ct=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#L()}checkConnectorValidity(){this.isValid=this.#L()}#L(){return!this.getRequiredParams().filter(t=>{const e=this.getAttribute(t);return!e||!this.validateParam(t,e)}).length}validateParam(t,e){return e.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(t){return this.isValid?this._fetchResults(t):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(t){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},St=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(bt({componentName:t,baseSelector:e})){#w=Nt.bind(this,"blur");#A=Nt.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`,f((D(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#w()}),this.baseElement.addEventListener("focus",t=>{this.#A()}),((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},Lt=["invalid","required"],wt=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},At=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(Dt(r)){static get observedAttributes(){return[...r.observedAttributes||[],...Lt]}#f;#D=Nt.bind(this,"change");constructor(){super(),this.#f=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#f&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#f)return this.#f;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#f=wt(t)||wt(e),this.#f}set inputElement(t){this.#f=t}getValidity(){return this.inputElement?.validity||{}}#E(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#E(),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.#E()})}),this.baseElement.addEventListener("change",()=>{this.#D()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#E()}),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),A(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]})}}},ft=t=>j(At(t),ut({componentNameOverride:L("input-wrapper")})),Et=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()})},kt=({name:t,selector:e,mappings:i={},forward:{attributes:o=[],include:n=!0}={}})=>r=>{const s=t||(t=>t.replace(/[^\w\s]/gi,""))(e),a=ut({mappings:i})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:ct(s?T(r.componentName,"_"+s):r.componentName,i)}}#k;constructor(){const t=Et(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);return e&&t.shadowRoot?(await Et(()=>i)(t)).querySelector(e):i});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#O=()=>t(this).then(t=>t?.host||t)}#O;async#V(){const t=await this.#k;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#k=this.#O();const t=await this.#k;A(this,t,{[n?"includeAttrs":"excludeAttrs"]:o}),this.#V()}}},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{#W=[];#R;#U(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Y(){const t=i?`*[slot="${i}"]`:":not([slot])";this.#R&&this.#R.querySelectorAll(t).forEach(t=>t.remove())}#Q(){this.#Y(),(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.#U(t)&&(this.#W=t,this.#Q())}get data(){return this.#W}init(){super.init?.(),this.#R=n?this.shadowRoot.querySelector(n):this.baseElement,v(this,t=>{t.includes("data")?this.#B():this.#Q()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}},Rt=({triggers:t=[]}={})=>e=>class extends e{static get observedAttributes(){return[...e.observedAttributes||[],...t.map(({attr:t})=>t)]}get#P(){return t.some(({attr:t,value:e})=>this.getAttribute(t)===e)}#Z=()=>{this.toggleAttribute("stretch",this.#P)};attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.#Z()}init(){super.init?.(),this.#Z()}},Ut=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Yt=L("enriched-text");class Qt extends(bt({componentName:Yt,baseSelector:":host > div"})){#F;#G;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',f("\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.#H(),z(this,this.#J.bind(this)),this.contentNode?.addEventListener("click",t=>{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.#H())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#G(t,e,i,o,n)),this.processor.renderer.rules.em_close=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#G(t,e,i,o,n))}#$(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(t,e,i,o,n)=>(t[e].attrSet("target","_blank"),this.#F(t,e,i,o,n)):this.processor.renderer.rules.link_open=this.#F}#q(){this.processor&&this.processor.disable(Ut)}#_(){this.#q()}#X(){this.#F=this.processor.renderer.rules.link_open||((t,e,i,o,n)=>n.renderToken(t,e,i)),this.#G=this.processor.renderer.rules.em_open||((t,e,i,o,n)=>n.renderToken(t,e,i))}#H(){this.processor=new o.A("commonmark",{html:!0}),this.#X(),this.#_(),this.#$(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#J(){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=j(ut({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:{}}}),ut({componentNameOverride:L("link")}),ut({componentNameOverride:L("text")}),Rt({triggers:[{attr:"full-width",value:"true"}]}),pt,ht)(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`,Te=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,je=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(${je(t)})`)),Se=(t,e="")=>{const i=Object.entries((t=>ve(t,[],(t,e)=>({[je(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`,Re=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${We(t)}, ${o})`:o};class Ue{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=""})=>i=>{const o=e||i.componentName;return class e extends i{static get cssVarList(){return{...i.cssVarList,...Be(o,{...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 W.currentTheme?.[o]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=f("",this.#d,{prepend:!0}),this.#s=W.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${o}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=f(`:host(${t}) {}`,this.#d)}}#y(t,e){const{style:i}=this.#n.cssRules[0];if(!i)return;const n=te(o,t.replace(new RegExp("^st-"),""));e?i?.setProperty(n,e):(i?.removeProperty(n),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 Ue,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Ye(e,t?.suffix);return Re(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,Re(a,l,!0)+(r?"!important":""))})}),o.toString()})(Zt(o,this.#a),this.#c,t);f(e,this.#d,{prepend:!0})}}#I(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.#I(o),this.#N(),this.#M(),this.#m(),$t(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},Ze=t=>class extends t{constructor(){super(),f(':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{#x(){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.#x()}},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;#j=!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.#j&&(this.#j=!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})){#w=_e.bind(this,"blur");#A=_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`,f((Gt(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#w()}),this.baseElement.addEventListener("focus",t=>{this.#A()}),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{#z=ti;static get observedAttributes(){return[...t.observedAttributes||[],...Ke]}static get formAssociated(){return!0}#C;get internals(){return this.#C}set internals(t){this.#C=t}constructor(){super(),this.#C=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""}}#S(){const t=this.isReadOnly?{}:this.getValidity();this.#C.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#C.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#C.validity.valid}reportValidity(){return this.#C.reportValidity()}get validity(){return this.#C.validity}get validationTarget(){return this.#z===ti?this.inputElement:this.#z}set validationTarget(t){this.#z=t}setCustomValidity(t){t?this.#C.setValidity({customError:!0},t,this.validationTarget):(this.#C.setValidity({}),this.#S())}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.#C.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Ke.includes(t)&&this.#S()}init(){super.init?.(),this.addEventListener("change",this.#S),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#S),setTimeout(()=>this.#S())}},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]}#f;#D=_e.bind(this,"change");constructor(){super(),this.#f=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#f&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#f)return this.#f;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#f=oi(t)||oi(e),this.#f}set inputElement(t){this.#f=t}getValidity(){return this.inputElement?.validity||{}}#E(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#E(),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.#E()})}),this.baseElement.addEventListener("change",()=>{this.#D()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#E()}),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={},forward:{attributes:o=[],include:n=!0}={}})=>e=>{const r=t,s=Pe({mappings:i})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Be(Zt(e.componentName,"_"+r),i)}}#k;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.#O=()=>t(this).then(t=>t?.host||t)}#O;async#V(){const t=await this.#k;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#k=this.#O();const t=await this.#k;ee(this,t,{[n?"includeAttrs":"excludeAttrs"]:o}),this.#V()}}},ai=t=>class extends t{#D=_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.#D(),this.prevValue=this.value)})}},li=t=>class extends t{init(){this.#v(),super.init?.()}#v(){["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{#K=[];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.#K.forEach(t=>clearTimeout(t)),this.#K.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.#K.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#K.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:Ti,requiredIndicator:ji,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,Ti],fontFamily:[Ti,Di,vi],labelTextColor:{...Ti,property:"color"},labelSpacing:{...Ti,property:"padding-inline-start"},labelLineHeight:{...Ti,property:"line-height"},labelFontWeight:{...Ti,property:"font-weight"},labelRequiredIndicator:{...ji,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=L("text");class Si extends(bt({componentName:Ci,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',f("\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=j(ut({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:{}}}),Rt({triggers:[{attr:"full-width",value:"true"}]}),pt,ht)(Si),Ai=L("link"),fi=["href","readonly"];class Ei extends(bt({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',f('\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"),A(this,this.anchor,{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),A(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:Ri,link:Ui}=ki,Yi=j(ut({mappings:{hostWidth:{...Wi,property:"width"},hostDirection:{...Vi,property:"direction"},textAlign:Ri,textDecoration:{...Ui,property:"text-decoration",fallback:"none"},textColor:[{...Oi,property:"color"},{...Vi,property:wi.cssVarList.textColor}],cursor:Oi}}),Rt({triggers:[{attr:"full-width",value:"true"}]}),pt,ht)(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",f("\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",f("\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",f("\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=L("combo-box"),{host:co,inputField:uo,inputElement:po,placeholder:ho,toggle:go,clearButton:Mo,label:mo,requiredIndicator:yo,helperText:bo,errorMessage:No,loader:Io,overlayContent:xo}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},loader:{selector:"vaadin-combo-box-overlay::part(loader)"},overlayContent:{selector:"vaadin-combo-box-overlay::part(content)"}},To=j(ut({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:()=>To.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>To.cssVarList.overlay.textColor},overlayBorder:{property:()=>To.cssVarList.overlay.border},overlayFontSize:{property:()=>To.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>To.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>To.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>To.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>To.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>To.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>To.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>To.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>To.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>To.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>To.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>To.cssVarList.overlay.itemFocusBackground}}}),pt,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"]}}),ft({proxyProps:["selectionStart"],inputEvent:"value-changed"}),t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},ht,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#tt=({displayName:t,value:e,label:i})=>`<span data-name="${i}" data-id="${e}">${t||i}</span>`;#W;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}set renderer(t){this.baseElement.renderer=t}get loading(){return"true"===this.getAttribute("loading")}set loading(t){t?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#W)return this.#W;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.#W=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.#W||this.getAttribute("data")){const t=this.getItemsTemplate();this.innerHTML=t}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:t}=this.baseElement,e=t?.["data-id"];t&&Array.from(this.children).includes(t)||(e&&this.shouldSelectItemOnItemsChange&&(this.value=e),this.value||this.setDefaultValue())}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){if(!e.baseElement.items?.length&&!e.allowCustomValue)return;const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#et(){const t=Array.from(this.children);t.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.handleSelectedItem()},0)}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#ot(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#nt(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}isValueMatch(){const t=this.baseElement.querySelector("input").value;return!t||this.baseElement.items.some(e=>e.dataset.name===t||e.dataset.id===t)}init(){super.init?.(),A(this,this.baseElement,{includeAttrs:["placeholder"]}),this.getValidity=function(){return this.requireMatch&&!this.isValueMatch()?{patternMismatch:!0}:!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ot(),this.#nt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",t=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}handleRequireMatchChange(t){this.baseElement.allowCustomValue=t||this.allowCustomValue}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"require-match"===t&&this.handleRequireMatchChange("true"===i))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#rt(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#st(t,e){t===this.value&&e!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",t=>{t.stopImmediatePropagation()},{once:!0,capture:!0})}set value(t){const e=this.#rt(t);this.#st(t,e),t&&e?this.baseElement.selectedItem=e:!e&&this.allowCustomValue?this.baseElement.value=t:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get autoOpenDisabled(){return"true"===this.getAttribute("auto-open-disabled")}})(St({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${J(To.cssVarList)}\n\t\t${_("vaadin-combo-box")}\n\t\t${q("vaadin-combo-box")}\n\t\t${$("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 ${X("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,To);const jo=t=>{const e=c.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},Do=L("image"),vo=["src","src-dark"];class zo extends(bt({componentName:Do,baseSelector:"slot"})){static get observedAttributes(){return vo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",f("\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=jo(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=jo(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=j(ut({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),pt,ht)(zo),So=L("icon"),Lo=j(ut({mappings:{fill:[{},{property:Co.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),pt,ht)(St({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=L("button"),{host:Ao,label:fo,slottedIcon:Eo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let ko;const Oo=j(Rt({triggers:[{attr:"full-width",value:"true"}]}),ut({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()}},pt,ht)(St({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 Ro=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Uo=Ro[0],Yo="YYYY-MM-DD",Qo="/",Bo=["January","February","March","April","May","June","July","August","September","October","November","December"],Po=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zo={id:"month",min:1,max:12,placeholder:"MM"},Fo={id:"day",min:1,max:31,placeholder:"DD"},Go={id:"year",min:0,max:9999,placeholder:"YYYY"},Ho=1900,Jo=2099,$o=(t,e)=>{if("number"==typeof t)return new Date(t);if("string"==typeof t){const e=new Date(t.replace(/-/g,"/"));return new Date(e)}return new Date},qo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},_o=t=>{const e=(t=>`^${t.split(Qo).map(t=>qo[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Qo);return t=>{const i={};return e.forEach((e,o)=>{i[e]=t[o+1]}),[i.YYYY,i.MM,i.DD]}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getDate:t=>((t,e,i)=>{const o=e.exec(t);if(!o)return null;const[n,r,s]=i(o);return $o([n,r,s].join(Qo))})(t,o,i)}},Xo=Object.fromEntries(Ro.map(t=>[t,_o(t)])),Ko=t=>!Number.isNaN(Number(t)),tn=t=>{const e=$o(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},en=(t,e)=>{const[i,o,n]=tn(t),r={DD:String(n).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(i)};return e.replace(/DD|MM|YYYY/g,t=>r[t])},on=()=>$o().getTime(),nn=t=>$o(t).getFullYear().toString(),rn=t=>($o(t).getMonth()+1).toString(),sn=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),an=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,ln=({label:t,dataId:e,dataName:i})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${e}"\n\t\tdata-name="${i}"\n\t>\n\t\t\t${t}\n\t</div>\n`,dn=(t=Bo)=>t.map((t,e)=>ln({label:t,dataId:e+1,dataName:t})).join(""),cn=(t,e)=>{const[i,o]=tn(e),[n,r]=tn(t);return n===i&&r===o},un=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),pn=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:Tn,topNav:jn,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:[{...jn,property:"padding-top"},{...jn,property:"padding-bottom"}],topNavHorizointalPadding:[{...jn,property:"padding-right"},{...jn,property:"padding-left"}],topNavAlignment:{...jn,property:"justify-content"},topNavGap:{...jn,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:{...jn,property:"margin-bottom"},calendarPadding:[{...mn,property:"padding-bottom"},{...mn,property:"padding-right"},{...mn,property:"padding-left"}],navBorderBottomWidth:{...jn,property:"border-bottom-width"},navBorderBottomColor:{...jn,property:"border-bottom-color"},navBorderBottomStyle:{...jn,property:"border-bottom-style"},weekdayFontSize:{...Tn,property:"font-size"},weekdayFontWeight:{...Tn,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 ',f(`\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:Rn,inputMask:Un,helperText:Yn,errorMessage:Qn,disabledPlaceholder:Bn,inputDisabled:Pn,inputIcon:Zn,externalInput:Fn,externalInputDisabled:Gn,externalPlaceholder:Hn,externalDisabledPlaceholder:Jn}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}};var $n={fontSize:[{},En],fontFamily:[kn,Wn,Yn,Qn],labelFontSize:{...kn,property:"font-size"},labelFontWeight:{...kn,property:"font-weight"},inputValueFontWeight:[{...Rn,property:"font-weight"},{...Fn,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...Hn,property:"font-weight"}],helperTextFontWeight:{...Yn,property:"font-weight"},errorMessageFontWeight:{...Qn,property:"font-weight"},labelTextColor:[{...kn,property:"color"},{...Vn,property:"color"},{...kn,property:"-webkit-text-fill-color"},{...Vn,property:"-webkit-text-fill-color"}],hostWidth:{...En,property:"width"},hostMinWidth:{...En,property:"min-width"},hostDirection:{...En,property:"direction"},inputDirection:{...Rn,property:"direction"},inputBackgroundColor:[{...Wn,property:"background-color"},{...Un,property:"background-color"}],errorMessageTextColor:{...Qn,property:"color"},errorMessageIcon:{...Qn,property:"background-image"},errorMessageIconSize:{...Qn,property:"background-size"},errorMessageIconPadding:{...Qn,property:"padding-inline-start"},errorMessageIconRepeat:{...Qn,property:"background-repeat"},errorMessageIconPosition:{...Qn,property:"background-position"},errorMessageFontSize:{...Qn,property:"font-size"},helperTextColor:{...Yn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Wn,property:"color"},{...Pn,property:"-webkit-text-fill-color"},{...Gn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Rn,property:"caret-color"},{...Fn,property:"caret-color"}],labelRequiredIndicator:{...Vn,property:"content"},inputBorderColor:{...Wn,property:"border-color"},inputBorderWidth:{...Wn,property:"border-width"},inputBorderStyle:{...Wn,property:"border-style"},inputBorderRadius:{...Wn,property:"border-radius"},inputHeight:{...Wn,property:"height"},inputHorizontalPadding:[{...Rn,property:"padding-left"},{...Rn,property:"padding-right"},{...Fn,property:"padding-left"},{...Fn,property:"padding-right"}],inputOutlineColor:{...Wn,property:"outline-color"},inputOutlineStyle:{...Wn,property:"outline-style"},inputOutlineWidth:{...Wn,property:"outline-width"},inputOutlineOffset:{...Wn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Rn,property:"text-align"},{...Fn,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Hn,property:"color"},{...On,property:"color"},{...Bn,property:"-webkit-text-fill-color"},{...Jn,property:"-webkit-text-fill-color"}],labelPosition:{...kn,property:"position"},labelTopPosition:{...kn,property:"top"},labelHorizontalPosition:[{...kn,property:"left"},{...kn,property:"right"}],inputTransformY:{...kn,property:"transform"},inputTransition:{...kn,property:"transition"},marginInlineStart:{...kn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Hn,property:"opacity"}],inputVerticalAlignment:[{...Wn,property:"align-items"},{...Fn,property:"align-items"}],valueInputHeight:[{...Rn,property:"height"},{...Fn,property:"height"}],valueInputMarginBottom:[{...Rn,property:"margin-bottom"},{...Fn,property:"margin-bottom"}],inputIconOffset:[{...Zn,property:"margin-right"},{...Zn,property:"margin-left"}],inputIconSize:{...Zn,property:"font-size"},inputIconColor:{...Zn,property:"color"},inputTextSecurity:[{...Rn,property:"-webkit-text-security"},{...Rn,property:"text-security"},{...Fn,property:"-webkit-text-security"},{...Fn,property:"text-security"}]};const qn=L("text-field"),_n=["type","label-type","copy-to-clipboard"],Xn=j(ut({mappings:$n}),pt,ft({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),ht,t=>class extends t{static get observedAttributes(){return _n.concat(t.observedAttributes||[])}icon;init(){super.init?.(),A(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))}})(St({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 ${X("vaadin-text-field")}\n\t\t\t${J(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 ${$(t)}\n ${q(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{#W=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.#W}set data(t){this.#W=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const tr=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=Uo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=Xo[this.format].getDate(this.inputElement.value);this.updateEpoch(sn(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=sn(t,this.isUtcTime)}dateCounters=[new Kn(Zo,this.onDateCounterChange.bind(this)),new Kn(Fo,this.onDateCounterChange.bind(this)),new Kn(Go,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(er.observedAttributes||[],nr)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-calendar">\n \n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>\n</svg>\n\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',f('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-calendar {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-calendar {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-calendar")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get displayValueEpoch(){const t=Xo[this.format].getDate(this.inputElement.value);return Ko(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Qo).map(t=>this.dateCounters.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(Qo)}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay.shadowRoot?.querySelector("#backdrop")}get calendar(){return this.overlay?.querySelector("descope-calendar")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(t){const e=parseInt(t,10);Number.isNaN(e)?(this.resetEpoch(),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(e),this.updateDateCounters(new Date(e)))}resetEpoch(){this.epoch=""}get isCountersEmpty(){return this.dateCounters.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(t=>!t.isInRange(t.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const t=this.inputElement.baseElement.inputElement;return t.value.length===t.selectionStart+t.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#lt(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=en($o(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#it()},0)}initInputElement(){this.inputElement.getValidity=this.getValidity.bind(this),this.inputElement.baseElement.checkValidity=this.checkValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.onPopoverToggle.bind(this)),this.inputElement.addEventListener("focus",this.onFocus.bind(this)),this.inputElement.addEventListener("blur",this.onBlur.bind(this)),this.inputElement.addEventListener("click",this.handleMouseCaretPositionChange.bind(this)),this.inputElement.addEventListener("keydown",this.handleKeyboard.bind(this)),this.inputElement.addEventListener("beforeinput",this.handleInput.bind(this)),this.inputElement.addEventListener("pointerdown",this.onPointerDown.bind(this)),this.inputElement.addEventListener("paste",this.onPaste.bind(this)),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.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=f(d,t)}#ut(){const t=document.createElement("span");t.innerHTML="<descope-calendar></descope-calendar>";const e=t.querySelector("descope-calendar");return e.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),e.addEventListener("cancel",this.closePopover.bind(this)),t}#it(){this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{}}onPopoverToggle(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disableCalendar||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}getCounterById(t){return this.dateCounters.find(e=>e.id===t)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const t=$o(this.calendar.value);this.value=sn(t,this.isUtcTime),this.getCounterById("year").replaceValue(t.getFullYear()),this.getCounterById("month").replaceValue(t.getMonth()+1),this.getCounterById("day").replaceValue(t.getDate()),this.#lt()}this.closePopover()}updateCalendarView(){const t=Ko($o(this.inputElement.value||"").getTime())&&Xo[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",en(this.displayValueEpoch||this.epoch,Yo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",en(on(),Yo))),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||Uo;this.setAttribute("type","date"),this.setAttribute("pattern",Xo[t].pattern)}parseDigits(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(t){const[e,i]=this.sortedCounters.map(t=>t.length);return[t<=e,t>=e&&t<=e+i+1,t>=e+i+2].indexOf(!0)}setSelectedCounterByCaretPosition(t){this.selectedCounterIdx=this.getCounterIdx(t.target?.selectionStart||this.inputElement.selectionStart)}selectFirstCounter(){this.selectedCounterIdx=0}selectNextCounter(){this.selectedCounterIdx<this.dateCounters.length&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx+1,2))}selectPrevCounter(){this.selectedCounterIdx>0&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx-1,1))}setInputSelectionRange(){this.selectedCounterIdx<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((t,e)=>t+e.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(t=>t.clear())}updateDateCounters(t){this.dateCounters.forEach(e=>{switch(e.id){case Zo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case Go.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case Fo.id:e.set(this.isUtcTime?t.getUTCDate():t.getDate())}})}handleKeyboard(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.onCut(t):(this.handleSelectAll(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.selectNextCounter():"ArrowLeft"===t.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const t=this.activeCounter;t.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(t){this.opened||(t.preventDefault(),this.setSelectedCounterByCaretPosition(t),this.setInputSelectionRange())}onInitialValueChange(t){this.value||setTimeout(()=>{Number.isNaN(parseInt(t,10))||(this.value=Number(t))})}togglePopoverAccess(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-calendar"===t&&this.togglePopoverAccess("true"!==i),ir.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):or.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>Jo||t.numberValue<Ho,i=Object.entries(this.getDateVals()).some(([t,e])=>{const i=this.getCounterById(t);return!e||i.numberValue!==e});return e||i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersOutOfRange||this.isInvalidDate()?{patternMismatch:!0}:{}}getDateVals(){const t={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return t;try{const e=new Date(this.epoch);this.isUtcTime?(t.month=e.getUTCMonth()+1,t.day=e.getUTCDate(),t.year=e.getUTCFullYear()):(t.month=e.getMonth()+1,t.day=e.getDate(),t.year=e.getFullYear())}catch(t){}return t}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.resetToInitialState()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy date value:",t)}}onPaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=((t,e)=>{const i=t.trim?.();return i?Xo[e].getDate(i):null})(e,this.format);if(i)this.value=sn(i,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const t=Number(e);t&&this.activeCounter.min<=t&&this.activeCounter.max>=t&&(this.activeCounter.set(String(t)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(tr,pr);const hr=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",f("\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"),Tr="email",jr=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",Tr),this.externalInput?.setAttribute("inputmode",Tr)}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(${jr.cssVarList.inputOutlineWidth}) + var(${jr.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${Te("vaadin-email-field")}\n\t\t\t${Me(jr.cssVarList)}\n\t\t\t${xe("vaadin-email-field",jr.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,jr);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",f(`\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 ${Te("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,"")||"",Rr=(t,e)=>{e?(t.style.setProperty(Er,`"${e}"`),t.style.setProperty(kr,"flex")):(t.style.removeProperty(Er),t.style.removeProperty(kr))},Ur=Kt("passcode-internal"),Yr=["digits","loading"],Qr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Br=ui({componentName:Ur,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?.(),f("\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 <${Ur}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${Ur}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Ur),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 ${Te("vaadin-text-field")}\n\t\t\t${be("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Pr}));customElements.define(Ur,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=>{f(`\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),Rr(t)},0,{trailing:!0});let i=!1;t.addEventListener("input",o=>{t.value=Wr(t.value),t.value&&Rr(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()}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.baseElement.querySelector("vaadin-password-field-button").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 ${Te("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${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)"}},Ts=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 ${Te("vaadin-text-area")}\n\t\t\t${Me(Ts.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,Ts);var js=[{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)}#gt;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 ${js.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.#mt(t)}#mt(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=js.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.#yt(i):this.textField.value=i}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#bt()}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.#Nt())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.#It(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.#xt(t,i),"restrict-countries"===t&&this.#Tt(this.restrictCountries)}}#bt(){this.textField.addEventListener("input",this.#jt.bind(this)),this.comboBox.addEventListener("change",this.#Dt.bind(this)),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}#jt(){const t=this.allowAlphanumericInput?this.textField.value:this.textField.value.replace(/\D+/g,"");this.textField.value=this.isFormatValue?this.#yt(t):t}#Dt(){if(!this.isFormatValue)return;const t=this.textField.value.replace(/\D+/g,"");this.textField.value=this.#yt(t)}#yt(t=""){return this.#gt&&this.#gt.country===this.selectedCountryCode||(this.#gt=new p.Q(this.selectedCountryCode)),this.#gt.reset(),this.#gt.input(t)||t}#Nt(){const t=(0,u.l)(this.value);return!!(t&&t.isValid?.()&&t.country&&this.#vt(t.country))}#vt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#zt(t){return this.comboBox.items?.find(e=>e.getAttribute("data-country-code")===t)}#Tt(t){const e=t.length?js.filter(e=>t.includes(e.code)):js;this.querySelector("descope-combo-box").innerHTML=e.map(t=>Ds(t)).join("")}#It(t){if(!this.comboBox.value){const e=this.#zt(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#xt(t,e){const i=ws[t]||t;"label-type"===t?this.#Ct(e):"floating"===this.getAttribute("label-type")&&("country-input-label"===t?this.comboBox.setAttribute(i,e):"label"===t&&this.textField.setAttribute(i,e))}#Ct(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=To.cssVarList,Os=Kt("phone-field"),{host:Vs,label:Ws,requiredIndicator:Rs,inputField:Us,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,Us,{selector:Xn.componentName,property:Xn.cssVarList.fontSize},{selector:To.componentName,property:To.cssVarList.fontSize}],fontFamily:[Ws,Zs,Fs,{...Qs,property:To.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:[{...Us,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"},{...Rs,property:"color"}],labelRequiredIndicator:{...Rs,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:{...Us,property:"outline-style"},inputOutlineColor:{...Us,property:"outline-color"},inputOutlineWidth:{...Us,property:"outline-width"},inputOutlineOffset:{...Us,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 js}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 ${Te("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)}#gt;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"),js.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.#St();const t=this.#Lt();return t?.country&&t?.countryCallingCode&&t?.nationalNumber?`+${[t?.countryCallingCode,t?.nationalNumber].join("-")}`:this.textField.value}set value(t){this.textField.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#wt.bind(this)),this.handleFocusEventsDispatching([this.textField]),A(this.textField,this,{includeAttrs:["has-value"]}),A(this,this.textField,{includeAttrs:["phone-input-type"],mapAttrs:{"phone-input-type":"type"}})}getValidity(){const t=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,e=this.#At(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.#Nt()||!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)}}#wt(t){let e=this.#ft(t.target.value);this.isFormatValue&&this.#Et(e)&&(e=this.#kt(e)),t.target.value=e}#St(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Ot(this.textField.value),e=this.#At(t);return[this.defaultDialCode,e].join("-")}#Lt(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#At(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#At(t){return t.replace(/\D/g,"")}#Ot(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#Nt(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#vt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#vt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#ft(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}#kt(t=""){const e=this.defaultCode||this.#Vt(t);return e?(this.#gt&&this.#gt.country===e||(this.#gt=new p.Q(e)),this.#gt.reset(),this.#gt.input(t)||t):t}#Vt(t){const e=(0,u.l)(t);return e?.country||""}#Et(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 js}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 ${Te("vaadin-text-field")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","style"],componentName: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"})){#Wt;#Rt=[];#Ut;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',f("\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.#Ut={...this.#Ut,minlength:{value:`${t}`}})}if("data-password-policy-value-passwordstrength"===t){const t=parseInt(i);!Number.isNaN(t)&&t>=0&&(this.#Ut={...this.#Ut,passwordstrength:{...this.#Ut?.passwordstrength,expected:t}})}if("data-password-policy-actual-passwordstrength"===t){const t=Number(i);!Number.isNaN(t)&&t>=0&&(this.#Ut={...this.#Ut,passwordstrength:{...this.#Ut?.passwordstrength,actual:t}})}if("data-password-policy-value-disallowedchars"===t)if(i)this.#Ut={...this.#Ut,disallowedchars:{...this.#Ut?.disallowedchars,value:i}};else if(this.#Ut?.disallowedchars){const{disallowedchars:t,...e}=this.#Ut;this.#Ut=e}if("data-password-policy-value-email"===t)if(i)this.#Ut={...this.#Ut,disallowemail:{...this.#Ut?.disallowemail,expected:i}};else if(this.#Ut?.disallowemail){const{disallowemail:t,...e}=this.#Ut;this.#Ut=e}}this.renderItems(this.#Wt,this.#Rt,this.#Ut)}}get availablePolicies(){return this.#Wt||[]}set availablePolicies(t){this.#Wt=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.#Wt;return this.#Ut&&(t=this.#Wt.map(t=>{const e=this.#Ut[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),Ta=Kt("new-password"),ja=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:ja.backgroundColor},policyPreviewPadding:{...wa,property:ja.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:Ta}));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"],Ra=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ua=[].concat(Ra,Oa,Va,Wa),Ya=ui({componentName:ca,baseSelector:"div"});customElements.define(ca,class extends Ya{static get observedAttributes(){return[].concat(Ya.observedAttributes||[],Ua)}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=>{f(`\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 KT}),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):Ra.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(Ta,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{#Yt=null;static get observedAttributes(){return Ba.concat(Za.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Qt("true"===i),"variant"===t&&(this.#Bt(),this.updatePreview()))}renderRecaptcha(t){this.children.length?this.updatePreview():this.toggleRecaptchaEles(t)}displayRecaptcha(){this.isWidgetVariant?this.displayWidget():this.displayDeprecated()}displayWidget(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="",this.depercatedRecaptchaEle.style.display="none"}hideRecaptcha(){this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display="none",this.mockRecaptchaEle.style.display=""}displayDeprecated(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display=""}toggleRecaptchaEles(t){t?this.displayRecaptcha():this.hideRecaptcha()}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <span id="recaptcha-widget"></span>\n <input id="recaptcha-widget-input" type="hidden" name="recaptcha-widget" required />\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',f('\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.#Bt()}#Bt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Pa),this.#Yt=Pa):this.#Yt&&this.getAttribute("name")===this.#Yt&&(this.removeAttribute("name"),this.#Yt=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()}#Qt(t){this.renderRecaptcha(t),this.isWidgetVariant||t&&(this.#Pt(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Zt())}#Zt(){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}#Ft(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.#Ft(t,e,i)},11e4)),o.remove()})})}#Pt(){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.#Ft(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',f("\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{#tt=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#W;get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#W)return this.#W;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.#W=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 ${Te("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`,f("\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)){#Gt(){return this.items.filter(t=>t.hasAttribute("selected"))}onClick(t){t.target!==t.currentTarget&&(this.#Gt().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Gt().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}#Ht(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.#Ht(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"),Tl=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,Tl);class jl 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,jl);const vl=Kt("grid-custom-column");customElements.define(vl,class extends jl{_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 ',f("\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.#Jt(),qt(this,this.#$t.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.#Jt():this.#qt()),this.#$t())}#Jt(){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.#_t()),this.shadowRoot.querySelector(".wrapper").appendChild(t)}#qt(){this.shadowRoot.querySelector(".copy-btn")?.remove()}#_t(){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(()=>{})}#$t(){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:Rl,metaKeyword:Ul,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:Td,charEscape:jd,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:{...Rl,property:"color"},metaKeywordTextColor:{...Ul,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:{...Td,property:"color"},deletionBgColor:{...Td,property:"background-color"},charEscapeTextColor:{...jd,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:Rd,headerRow:Ud,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:[{...Ud},{...Qd}],fontSize:[{...Ud},{...Qd}],fontWeight:{...Qd},valueTextColor:{...Qd,property:"color"},backgroundColor:[{...Rd,property:"background-color"},{...Qd,property:"background-color"}],sortIndicatorsColor:{...Pd,property:"color"},activeSortIndicator:{...Zd,property:"color"},borderColor:{...Rd,property:"border-color"},borderWidth:{...Rd,property:"border-width"},borderStyle:{...Rd,property:"border-style"},borderRadius:{...Rd,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:{...Rd,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{#Xt;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.#Kt.bind(this),this.baseElement.addEventListener("wheel",t=>{t.target.closest("descope-code-snippet")&&t.stopPropagation()},!0)}#Kt=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.#Xt.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.#Xt=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)}}#te=({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.#te}set renderColumn(t){this.#te=t,this.renderColumns()}getColumnsTemplate(){return this.#Xt?.reduce?.((t,e)=>t+(this.renderColumn?.(e||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#Kt.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.#Xt}set columns(t){this.#Xt=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.#it(),ee(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),f("\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{#ee;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.#ee}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#ee.close()}init(){super.init?.(),this.createCard(),ee(this,this.#ee),Xt(this.#ee,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.#ee=document.createElement("descope-notification-card"),this.#ee.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:Tc,labelsContainer:jc}={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,{...Tc,property:"margin-top"}],fontFamily:[Mc,mc,bc],separatorFontSize:{...Tc,property:"font-size"},labelsFontSize:{...Nc,property:"font-size"},labelsLineHeight:[{...Nc,property:"line-height"},{...bc,property:"line-height"}],labelTextColor:[{...bc,property:wi.cssVarList.textColor},{...Tc,property:"color"}],itemMarginBottom:{...yc,property:"margin-bottom"},valueLabelMinWidth:{...Ic,property:"min-width"},attrLabelMinWidth:{...xc,property:"min-width"},labelsMarginBottom:{...jc,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{#ie;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.#ie&&(this.resetInvalidIndication(),this.#ie=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"]})}#oe(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",t=>{t.isTrusted&&(this.#ie||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#ie)&&this.#ie?.checkValidity()&&(this.resetInvalidIndication(),this.#ie.removeAttribute("invalid"),this.#ie=void 0)}),qt(this.mappingsContainerEle,this.#oe.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const t=this.items.find(t=>!t.checkValidity());return t?t.validity:{}}#ne(t){t&&(this.#ie=this.items.find(t=>!t.checkValidity()),this.#ie?.reportValidity(),this.#ie?.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.#ne("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`,f("\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}#re(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.#re(i)}}),customElements.define(hc,Dc);const Sc=L("badge");class Lc extends(bt({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",f("\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}#se(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.#se(i)}}const wc=j(ut({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:{}}}),pt,ht)(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`,f(`\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.#_t()),this.setDefaultChildren()}#_t(){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")}#ae(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.#ae("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==","delete-icon"),this.querySelector('[slot="edit-icon"]')||this.#ae("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MDE1IDIuMDA4MTkgMy45OTIxNVYxMi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S42ODgxNUwxMy4yNjQyIDMuMzY4MTVMMTEuOTIwMiAxLjg1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPgo=","edit-icon"),this.setDefaultCopyIcon()}setDefaultCopyIcon(){this.isCopyEnabled&&!this.querySelector('[slot="copy-icon"]')&&this.#ae("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:Rc,contentWrapper:Uc}={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:{...Rc,property:"min-width"},contentMinWidth:{...Uc,property:"min-width"},badgeMaxWidth:{...Wc,property:"max-width"},itemsGap:[{property:"gap"},{...Uc,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',f('\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}#le(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.#le("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{#tt=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#W;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.#W)return this.#W;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.#W=t,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.#tt?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.inputElement=this.baseElement,this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),this.renderItems(),$t(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),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 ${Te("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",f("\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"}#de(){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.#de().filter(t=>t.checked).map(t=>t.getAttribute("data-id"))}set value(t=[]){this.#de().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{#W=[];#U(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Y(){const t=i?`*[slot="${i}"]`:":not([slot])";this.baseElement.querySelectorAll(t).forEach(t=>t.remove())}#Q(){this.#Y(),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.#U(t)&&(this.#W=t,this.#Q())}get data(){return this.#W}init(){super.init?.(),$t(this,t=>{t.includes("data")?this.#B():this.#Q()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}})({itemRenderer:({id:t,desc:e,required:i=!1},o,n)=>{const r="checkbox"===n.variant?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=L("list-item"),gu=j(ut({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:{}}}),pt,ht,t=>class extends t{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",f("\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})})}})(bt({componentName:hu,baseSelector:"slot"}));customElements.define(hu,gu);const Mu=L("list");class mu extends(bt({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',f('\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()}#ce(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#ue(){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.#ce(),this.#ue(),this.#pe()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#pe(){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.#ue():"readonly"===t&&this.#pe())}}const yu=j(ut({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"}]}}),pt,ht)(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',f('\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",Tu=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,Tu);const ju=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:ju,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",f("\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}#he(){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.#ge(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(ju,"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)}#ge(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.#he()},{includeAttrs:vu}),$t(this,this.#ge.bind(this),{includeAttrs:Du})}}const Cu=Ft(Pe({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>To.componentName,property:To.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Ze,Fe)(zu);customElements.define(ju,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",f("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#he(){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.#ge(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)}#me(t){switch(!0){case Lu.includes(t):return this.textFields;case wu.includes(t):return this.texts;default:return[]}}#ge(t){t.forEach(t=>{this.#me(t).forEach(e=>{this.#Me(e,Au[t]||t,this.getAttribute(t))})})}init(){super.init?.(),$t(this,()=>{this.#he()},{includeAttrs:Eu}),$t(this,this.#ge.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"),Ru={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"]}},Uu={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{#ye=!1;#be;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`,f("\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:Ru.email,mapAttrs:Uu.email}),ee(this,this.phoneCountryCodeInput,{includeAttrs:Ru.phone.countryCode,mapAttrs:Uu.phone}),ee(this,this.phoneInputBoxInput,{includeAttrs:Ru.phone.inputBox,mapAttrs:Uu.phone}),this.inputs.forEach(t=>ee(this,t,{includeAttrs:Ru.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#be=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.#ye&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{const t=this.activeInputEle;t.focus();try{t.setSelectionRange?.(this.#be,this.#be)}catch{}})}#Ne(){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.#Ne();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.#ye=!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 ',f('\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',f("\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,je(t))))(tp),ip=(t=>Object.keys(t).reduce((e,i)=>{const o=t[i];return Object.assign(e,{[i]:H(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=it({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=>{et(t,[],t=>tt({},t,K(t)))})(rp);const ap=it(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]=nt({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=it(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=it(rp),xp=Yi.cssVarList,Tp={[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 jp=Object.freeze({__proto__:null,default:Tp,vars:xp});const Dp=it(rp),vp=Bt.cssVarList,zp={[vp.hostDirection]:Dp.direction,[vp.hostWidth]:ot(yp.hostWidth),[vp.textLineHeight]:ot(yp.textLineHeight),[vp.textColor]:ot(yp.textColor),[vp.textAlign]:ot(yp.textAlign),[vp.fontSize]:ot(yp.fontSize),[vp.fontWeight]:ot(yp.fontWeight),[vp.fontFamily]:ot(yp.fontFamily),[vp.linkColor]:ot(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=L("input-wrapper"),Lp=it(rp),[wp,Ap]=nt({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=it(rp),Ep=To.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=it(rp),[Wp,Rp]=nt({shadowColor:"#00000020"},Sc),{shadowColor:Up}=Rp,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} ${Up}, ${Vp.shadow.narrow.sm} ${Up}`},md:{[Yp.boxShadow]:`${Vp.shadow.wide.md} ${Up}, ${Vp.shadow.narrow.md} ${Up}`},lg:{[Yp.boxShadow]:`${Vp.shadow.wide.lg} ${Up}, ${Vp.shadow.narrow.lg} ${Up}`},xl:{[Yp.boxShadow]:`${Vp.shadow.wide.xl} ${Up}, ${Vp.shadow.narrow.xl} ${Up}`}}};var Bp=Object.freeze({__proto__:null,default:Qp,vars:Yp});const Pp=L("avatar");class Zp extends(bt({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',f("\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"),A(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=j(ut({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"}}}),pt,ht)(Zp),$p=it(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=L("apps-list"),rh=j(ut({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=${O(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"]}),pt,ht,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")}})(St({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=it(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=it(rp),ph=yu.cssVarList,[hh,gh,Mh]=nt({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(${ot(ph.minItemsWidth)}, 100%),\n calc((100% - (${ot(ph.maxRowItems)} - 1) * ${ot(ph.gap)}) / ${ot(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=it(rp),xh=gu.cssVarList,Th={[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 jh=Object.freeze({__proto__:null,default:Th,vars:xh});const Dh=L("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:Rh}={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"}},Uh=j(ut({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"},{...Rh,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:()=>Uh.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Uh.cssVarList.overlay.textColor},overlayBorder:{property:()=>Uh.cssVarList.overlay.border},overlayFontSize:{property:()=>Uh.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Uh.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Uh.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Uh.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Uh.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Uh.cssVarList.overlay.itemPaddingInlineEnd}}}),pt,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"]}}),ft({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),It,ht,t=>class extends t{static get observedAttributes(){return["readonly"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#W;#Ie=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get data(){if(this.#W)return this.#W;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.#W=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||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}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)}}})}#xe(t){return Array.from(new Map(t.map(t=>[t.getAttribute("data-id"),t])).values())}#et(){const t=Array.from(this.children),e=this.#xe(t);t.length?(this.removeAttribute("has-no-options"),e.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#Te(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",t=>{const e=this.#tt({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,t.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const t=new RegExp(this.pattern);if(this.value.some(e=>!t.test(e)))return{patternMismatch:!0}}return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#Te(),this.renderItems(),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),A(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#je(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#je(){this.#Ie=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter(e=>t.includes(e["data-id"]));if(this.allowCustomValues){const i=e?.map(t=>t.getAttribute("data-id"))||[],o=t.filter(t=>!i.includes(t));if(o.length){const e=o.reduce((t,e)=>t+this.#tt({label:e,displayName:e,value:e}),"");return this.innerHTML+=e,void setTimeout(()=>{this.value=t},0)}}const i=e?.map(t=>t.getAttribute("data-id"))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const i=t.slice().sort(),o=e.slice().sort();for(let t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0})(this.#Ie,i)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#Ie}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")}})(St({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${J(Uh.cssVarList)}\n\t\t${_("vaadin-multi-select-combo-box")}\n\t\t${q("vaadin-multi-select-combo-box")}\n\t\t${$("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 ${X("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=L("multi-line-mappings"),Qh=bt({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=j(ut({mappings:{hostWidth:{...Hh,property:"width"},hostDirection:[{...Hh,property:"direction"},{selector:Uh.componentName,property:Uh.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"}}}),pt)(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"]}#De=[{firstValues:[],secondValues:[]}];#ve=null;#ze=[];#Ce={};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 ',f("\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.#Ce}get value(){return this.#De.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.#ve=t,this.#De=this.#Se(t),this.#Le(),this.#we()}#Ae(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.#ze=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.#Ce=Object.fromEntries(this.#ze.map(({value:t,options:e})=>[t,e]))}init(){super.init?.(),this.#fe(),this.addButtonElement.addEventListener("click",()=>this.#Ee()),this.#we()}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("data"===t)return this.#Ae(i),this.#Le(),void this.#we();if("size"===t)return[...this.#ke(),...this.#Oe()].forEach(t=>t.setAttribute("size",this.size)),this.#fe(),void this.#Ve();if(["disabled","readonly"].includes(t))return this.#ke().forEach(t=>{t[this.disabled?"setAttribute":"removeAttribute"]("disabled","true"),t[this.readonly?"setAttribute":"removeAttribute"]("readonly","true")}),this.#Oe().forEach(t=>t[this.disabled||this.readonly?"setAttribute":"removeAttribute"]("disabled","true")),void this.#Ve();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.#Ve(),"merge-rows"===t&&null!==this.#ve&&(this.#De=this.#Se(this.#ve),this.#Le(),this.#we())}}#ke(){return Array.from(this.rowsElement.querySelectorAll("descope-multi-select-combo-box"))}#Oe(){return Array.from(this.rowsElement.querySelectorAll(".remove-button"))}#Ee(){if(this.disabled||this.readonly||this.#We())return;const t={firstValues:[],secondValues:[]};this.#De=[...this.#De,t],this.rowsElement.append(this.#Re(t)),this.#Ve()}#Se(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}#Le(){const t=new Set(this.#ze.map(t=>t.value));this.#De=this.#De.map(e=>{const i=e.firstValues.filter(e=>t.has(e)),o=this.#Ue(i),n=new Set(o.map(t=>t.value));return{firstValues:i,secondValues:e.secondValues.filter(t=>n.has(t))}})}#Ue(t){const e=t.length?t.map(t=>this.#Ce[t]||[]).filter(t=>t.length):Object.values(this.#Ce).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))}#Ye({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.#Qe(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Be({rowIndex:i,type:e,selectedValues:Ph(s.value||[])})}),s}#Qe(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})}#Pe(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.#Ze(e)}),e}#we(){this.rowsElement.innerHTML="",this.#De.forEach(t=>{this.rowsElement.append(this.#Re(t))}),this.#Ve()}#Re(t){const e=document.createElement("div");e.className="row";const i=()=>Array.from(this.rowsElement.children).indexOf(e),o=this.#Ye({getRowIndex:i,type:"first",label:this.firstLabel,placeholder:this.firstPlaceholder,options:this.#ze.map(({value:t,label:e})=>({value:t,label:e})),selectedValues:t.firstValues}),n=this.#Ue(t.firstValues),r=this.#Ye({getRowIndex:i,type:"second",label:this.secondLabel,placeholder:this.secondPlaceholder,options:n,selectedValues:t.secondValues});return e.append(o,r,this.#Pe(i)),e}#Fe(t){const e=this.#De[t];if(!e)return;const i=this.rowsElement.children[t],o=i?.querySelector(".second-combo");if(!o)return void this.#we();const n=this.#Ue(e.firstValues);o.data=n,this.#Qe(o,e.secondValues)}#fe(){this.addButtonElement.setAttribute("size",this.size)}#Ve(){this.disabled||this.readonly||this.#We()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#We(){return Number.isFinite(this.maxRows)&&this.#De.length>=this.maxRows}#Ge(t){this.rowsElement.children[t]?.remove()}#Be({rowIndex:t,type:e,selectedValues:i}){if(this.disabled||this.readonly)return;const o=this.#De[t];if(o){if("first"===e){const e=this.#Ue(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.#De[t]={firstValues:i,secondValues:r},this.#Fe(t),void this.#He()}Gh(o.secondValues,i)||(this.#De[t]={...o,secondValues:i},this.#He())}}#Ze(t){if(this.disabled||this.readonly||this.#De.length<=1)return;const e=this.#De[t];this.#De=this.#De.filter((e,i)=>i!==t),this.#Ge(t),this.#Ve(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#He()}#He(){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=it(rp),eg=Uh.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=L("autocomplete-field-internal"),rg=vt({componentName:ng,baseSelector:""}),sg=[],ag="DESCOPE_INVALID_OPTION",lg=L("autocomplete-field"),{host:dg}={host:{selector:()=>":host"}},cg=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{hostWidth:{...dg,property:"width"},hostDirection:{...dg,property:"direction"},fontSize:{...dg},checkmarkDisplay:{selector:To.componentName,property:To.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:To.componentName,property:To.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:To.componentName,property:To.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:To.componentName,property:To.cssVarList.overlayItemHoverBackground}}}),pt,ft({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),ht,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),A(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}})(St({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=it(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(Ct()){#Je=null;#$e=null;constructor(t){super(t),this.#$e=this.#qe()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#qe(){const t=this.getAttribute("public-api-key");if(!this.#Je&&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.#Je=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.#Je.fetchAutocompleteSuggestions(e);return this.#_e(i)}catch(t){return console.error("Google Maps Places Autocomplete failed:",t),{results:[],error:zt}}}#_e(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(Ct()){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.#_e(o)}catch(t){return console.error("Radar Places Autocomplete failed:",t),{results:[],error:zt}}}#_e(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const yg=L("address-field-internal"),bg="google-maps-places",Ng="radar",Ig={[bg]:Mg,[Ng]:mg},xg=vt({componentName:yg,baseSelector:""}),Tg=["public-api-key"],jg=[...Tg],Dg=j((({connectorClasses:t})=>e=>class extends e{#Xe=t;static get observedAttributes(){return[...e.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#Xe}set connectorClasses(t){this.#Xe=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||[],jg)}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(){A(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&&Tg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),vg=L("address-field"),{host:zg}={host:{selector:()=>":host"}},Cg=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{hostWidth:{...zg,property:"width"},hostDirection:{...zg,property:"direction"}}}),pt,ft({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),ht,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),A(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()}})(St({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=L("timer"),Eg=["seconds","hide-icon","paused"],kg=bt({componentName:fg,baseSelector:":host > .wrapper"}),{host:Og,icon:Vg,timer:Wg}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},Rg=j(ut({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}}}),pt,ht)(class extends kg{#Ke=0;#ti;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',f("\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.#Ke=this.seconds}startInterval(){this.#Ke?this.#ti=setInterval(()=>{this.#ei(),this.#Ke||this.stop(),this.#ii(this.#Ke)},1e3):this.stop()}stopInterval(){clearInterval(this.#ti)}#ei(){this.#Ke=this.#Ke-1e3}reset(){this.#Ke=this.seconds,this.#ii(this.#Ke),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#Ke=0,this.#ii(this.#Ke),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#ii(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)}#oi(t){this.icon.classList.toggle("hidden",t)}#ni(t){setTimeout(()=>{t?this.pause():this.#ti||this.resume()})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("seconds"===t&&this.reset(),"hide-icon"===t&&this.#oi("true"===i),"paused"===t&&this.#ni("true"===i))}}),Ug=it(rp),Yg=Rg.cssVarList,Qg={[Yg.hostDirection]:Ug.direction,[Yg.gap]:"0.25em",[Yg.fontFamily]:Ug.fonts.font1.family,[Yg.minHeight]:"1.5em",[Yg.lineHeight]:"1em",[Yg.fontWeight]:Ug.fonts.font1.fontWeight,[Yg.textColor]:Ug.colors.surface.contrast,[Yg.iconColor]:Ug.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=L("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=bt({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=j(ut({mappings:{gap:{},flexDirection:{},hostWidth:{...$g,property:"width"},hostDirection:{...$g,property:"direction"},timerTextColor:{...qg,property:Rg.cssVarList.textColor},timerIconColor:{...qg,property:Rg.cssVarList.iconColor},timerHostWidth:{...qg,property:Rg.cssVarList.hostWidth},buttonLabelSpacing:{..._g,property:Oo.cssVarList.labelSpacing},timerInsideGapEnd:{...Xg,property:"margin-inline-end"},timerInsideGapStart:{...Kg,property:"margin-inline-start"}}}),pt,ht)(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',f('\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#ri(){return"true"===this.getAttribute("timer-inside")}get#si(){return"end"===this.getAttribute("timer-position")}syncTimerPlacement(){this.#ri?this.#ai(this.#si):this.#li()}#ai(t){t?this.timer.previousSibling!==this.forwardingSlot&&this.button.appendChild(this.timer):this.timer.nextSibling!==this.forwardingSlot&&this.button.insertBefore(this.timer,this.forwardingSlot)}#li(){this.timer.parentElement!==this.wrapper&&this.wrapper.insertBefore(this.timer,this.button)}set onclick(t){this.button.onclick=t}init(){super.init?.(),A(this,this.button,{includeAttrs:Zg,mapAttrs:Fg}),A(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=it(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=L("password-strength");class sM extends(bt({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',f("\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 rj}).then(t=>t.default);#di=-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.#di),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#di&&(this.#di=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#di})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#di)}),this.textContainer.innerHTML=this.options[this.#di]||"",-1===this.#di?this.removeAttribute("score"):this.setAttribute("score",this.#di))}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=j(ut({componentNameOverride:L("input-wrapper")}),ut({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"}}}),pt,ht)(sM),hM=it(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=L("collapsible-container");class NM extends(bt({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',f(`\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"}#ci=!1;init(){super.init?.(),this.#ci=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),A(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.#ci):this.expand(this.#ci):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=j(ut({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)"}}}),pt,ht)(NM),TM=it(rp),jM=xM.cssVarList,[DM,vM,zM]=nt({shadowColor:"#00000020"},bM),{shadowColor:CM}=vM,SM={...DM,[jM.hostWidth]:"100%",[jM.boxShadow]:"none",[jM.backgroundColor]:TM.colors.surface.main,[jM.backgroundImage]:"",[jM.backgroundPositionX]:"center",[jM.backgroundPositionY]:"center",[jM.backgroundSize]:"cover",[jM.backgroundRepeat]:"no-repeat",[jM.borderRadius]:"0px",[jM.hostDirection]:TM.direction,[jM.flexDirection]:"column",[jM.alignItems]:"flex-start",[jM.justifyContent]:"flex-start",[jM.headerGap]:TM.spacing.md,[jM.chevronRotation]:"rotate(180deg)",[jM.iconAnimationDuration]:"0.1s",[jM.contentAnimationDuration]:"0.1s",[jM.borderWidth]:"0px",[jM.textGrow]:"0",verticalPadding:{sm:{[jM.verticalPadding]:"5px"},md:{[jM.verticalPadding]:"10px"},lg:{[jM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[jM.horizontalPadding]:"5px"},md:{[jM.horizontalPadding]:"10px"},lg:{[jM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[jM.gap]:"10px"},md:{[jM.gap]:"20px"},lg:{[jM.gap]:"30px"}},shadow:{sm:{[jM.boxShadow]:`${TM.shadow.wide.sm} ${CM}, ${TM.shadow.narrow.sm} ${CM}`},md:{[jM.boxShadow]:`${TM.shadow.wide.md} ${CM}, ${TM.shadow.narrow.md} ${CM}`},lg:{[jM.boxShadow]:`${TM.shadow.wide.lg} ${CM}, ${TM.shadow.narrow.lg} ${CM}`},xl:{[jM.boxShadow]:`${TM.shadow.wide.xl} ${CM}, ${TM.shadow.narrow.xl} ${CM}`},"2xl":{[zM.shadowColor]:"#00000050",[jM.boxShadow]:`${TM.shadow.wide["2xl"]} ${CM}`}},borderRadius:{sm:{[jM.borderRadius]:TM.radius.sm},md:{[jM.borderRadius]:TM.radius.md},lg:{[jM.borderRadius]:TM.radius.lg},xl:{[jM.borderRadius]:TM.radius.xl},"2xl":{[jM.borderRadius]:TM.radius["2xl"]},"3xl":{[jM.borderRadius]:TM.radius["3xl"]}},iconPosition:{left:{[jM.headerIconOrder]:"0"},right:{[jM.headerIconOrder]:"1"}},_fillTitle:{[jM.textGrow]:"1"},_border:{[jM.borderColor]:TM.colors.surface.light,[jM.borderWidth]:TM.border.xs,[jM.borderStyle]:"solid"},_collapsible:{[jM.headerCursor]:"pointer"}},LM={...jM,...zM};var wM=Object.freeze({__proto__:null,default:SM,vars:LM});const AM=L("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(bt({componentName:AM,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...OM]}#ui=fM;#pi=!1;#hi=!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"),f('\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.#ui}#gi(t){return this.hasAttribute(t)&&"false"!==this.getAttribute(t)}get isRequired(){return this.#gi("required")}get isReadOnly(){return this.#gi("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)),A(this,this.iconWrapper,{includeAttrs:["variant","mode"]}),this.renderButtons(),this.#hi=!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.#ui=t,this.dispatchEvent(new Event("change",{bubbles:!0})),this.checkValidity()&&(this.#pi=!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.#pi=!t,this.syncValidityUI(),t}syncValidityUI(){this.toggleAttribute("invalid",this.#pi),this.errorMessageEle&&(this.errorMessageEle.textContent=this.#pi?this.errorMessage:"")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("required"!==t||this.isRequired||(this.#pi=!1,this.syncValidityUI()),this.#hi&&OM.includes(t)&&this.renderButtons())}}const WM=j(ut({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"}}}),ut({componentNameOverride:L("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"}),pt,ht)(VM),RM=it(rp),UM=WM.cssVarList,YM=wi.cssVarList,QM={[UM.hostMinWidth]:"190px",[UM.hostDirection]:RM.direction,[UM.iconColor]:ot(YM.textColor),[UM.iconSize]:ot(YM.fontSize),[UM.iconGap]:"8px",[UM.iconStackGap]:"16px",[UM.buttonsGap]:"8px",[UM.sectionsGap]:"8px",[UM.bulletGap]:"0.35em",[UM.verticalPadding]:"0",[UM.horizontalPadding]:"0",[UM.errorBorderColor]:"transparent",[UM.errorBorderWidth]:Ap.borderWidth,[UM.boxBorderRadius]:Ap.borderRadius,[UM.boxBorderStyle]:"solid",[UM.errorMessageColor]:Ap.errorMessageTextColor,[UM.errorMessageFontSize]:Ap.errorMessageFontSize,[UM.errorMessageFontWeight]:Ap.errorMessageFontWeight,[UM.errorMessageFontFamily]:Ap.fontFamily,textAlign:{right:{[UM.textAlign]:"flex-end"},left:{[UM.textAlign]:"flex-start"},center:{[UM.textAlign]:"center"}},_fullWidth:{[UM.hostWidth]:"100%"},_invalid:{[UM.errorBorderColor]:Ap.errorMessageTextColor}};var BM=Object.freeze({__proto__:null,default:QM,vars:UM});const PM=L("outbound-apps"),ZM=({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=${O(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`},FM=bt({componentName:PM,baseSelector:"descope-list"}),{host:GM}={host:{selector:()=>":host"}},HM=j(ut({mappings:{hostWidth:{...GM,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...GM,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}}}),pt,Wt({itemRenderer:ZM,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),ht)(class extends FM{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"),f("\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=ZM,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),JM=HM.cssVarList,$M={[JM.iconColor]:rp.colors.primary.main,[JM.errorIconColor]:rp.colors.error.main,[JM.appLogoGap]:rp.spacing.md,[JM.contentGap]:rp.spacing.xs,[JM.itemCursor]:"default",[JM.itemOutline]:"none",[JM.itemBorderColor]:"transparent",[JM.listPadding]:"0",[JM.listBorderWidth]:"0",[JM.listBoxShadow]:"none",[JM.emptyStateMinHeight]:"0",[JM.emptyStateVerticalPadding]:rp.spacing.lg,size:{xs:{[JM.fontSize]:"0.6em"},sm:{[JM.fontSize]:"0.8em"},md:{[JM.fontSize]:"1em"},lg:{[JM.fontSize]:"1.5em"}}};var qM=Object.freeze({__proto__:null,default:$M,vars:JM});const _M=L("outbound-app-button");class XM extends(bt({componentName:_M,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 ',f("\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?.(),A(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 KM=j(ut({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Oo.cssVarList.iconColor}}}),pt,ht)(XM),tm=KM.cssVarList,em={[tm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[tm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[tm.hostWidth]:"100%"}},im=tm;var om=Object.freeze({__proto__:null,default:em,vars:im});const nm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},rm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1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SAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},sm=L("trusted-devices"),am=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=rm[t]||rm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),c=s.lastLoginLabel?`${s.lastLoginLabel} `:"",u=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,s.format),p=n?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${s.direction}"\n >\n ${s.currentDeviceLabel}\n </descope-badge>`:"",h=s.hideActions||n?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${t}"\n st-host-direction="${s.direction}"\n ellipsis="true"\n >\n ${s.removeDeviceLabel}\n </descope-link>`,g=document.createElement("template");return g.innerHTML=`\n <descope-list-item ${a}>\n <div class="content">\n <div class="main">\n <span class="device">\n <descope-icon\n class="device-icon"\n src="${l}"\n src-dark="${d}">\n </descope-icon>\n <descope-text\n class="device-name"\n variant="body1"\n mode="primary">\n </descope-text>\n </span>\n <span class="panel">\n ${p}\n ${h}\n </span>\n </div>\n <div class="meta">\n <descope-text\n variant="body2"\n mode="primary"\n >\n ${c}\n </descope-text>\n <descope-text\n class="login-date"\n variant="body2"\n mode="primary"\n >\n ${u}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,g.content.querySelector(".device-name").textContent=e,g},lm=bt({componentName:sm,baseSelector:yu.componentName}),{host:dm}={host:{selector:()=>":host"}},cm=j(ut({mappings:{hostWidth:{...dm,property:"width"},hostMinWidth:{...dm,property:"min-width"},hostDirection:[{...dm,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"}}}),pt,Wt({itemRenderer:am,sortFn:(t,e)=>nm(e.lastLoginDate)-nm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),ht)(class extends lm{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"),f("\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=am,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),um=cm.cssVarList,pm={[um.hostWidth]:"auto",[um.hostWidth]:"300px",[um.hostMinWidth]:"300px",[um.listBackgroundColor]:"transparent",[um.listBorderRadius]:"0",[um.listBorderWidth]:"0",[um.listPadding]:"0",[um.listBoxShadow]:"none",[um.listItemsGap]:rp.spacing.lg,[um.emptyStateMinHeight]:"0",[um.emptyStateVerticalPadding]:rp.spacing.lg,[um.itemBorderColor]:rp.colors.surface.light,[um.itemVerticalPadding]:rp.spacing.lg,[um.itemHorizontalPadding]:rp.spacing.lg,[um.itemBorderRadius]:rp.radius.xs,[um.itemOutline]:"transparent",[um.itemBackgroundColor]:"transparent",[um.itemCursor]:"default",[um.itemContentGap]:rp.spacing.sm,[um.badgeBorderColor]:rp.colors.surface.light,[um.badgeTextColor]:rp.colors.surface.dark,[um.badgeBorderRadius]:rp.radius.xs,[um.badgeBackgroundColor]:rp.colors.surface.main,[um.devicePanelGap]:rp.spacing.md,[um.deviceIconGap]:rp.spacing.md,[um.deviceIconSize]:"24px",[um.lastLoginLabelGap]:rp.spacing.xs,_fullWidth:{[um.hostWidth]:"100%"}};var hm=Object.freeze({__proto__:null,default:pm,vars:um});const gm=L("multi-sso"),Mm=({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=V(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=V(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},mm=bt({componentName:gm,baseSelector:"span.wrapper"}),{host:ym}={host:{selector:()=>":host"}},bm=j(ut({mappings:{hostWidth:{...ym,property:"width"},hostMinWidth:{...ym,property:"min-width"},hostDirection:[{...ym,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}]}}),pt,Wt({targetSelector:"descope-list",itemRenderer:Mm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),ht)(class extends mm{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"]'),f('\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)=>Mm(t,0,this),this.shadowRoot.querySelector('[data-action="create"]').addEventListener("click",this.onCreateClick.bind(this)),this.listEl.addEventListener("click",this.onItemClick.bind(this)),A(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)}}),Nm=bm.cssVarList,Im=it(rp),xm={[Nm.hostWidth]:"300px",[Nm.headerGap]:Im.spacing.md,[Nm.headerListGap]:Im.spacing.md,[Nm.itemContentGap]:Im.spacing.md,[Nm.actionGap]:Im.spacing.sm,[Nm.authTypeRowGap]:Im.spacing.sm,[Nm.unconfiguredAuthTypeTextColor]:Im.colors.surface.dark,[Nm.unconfiguredAuthTypeTextFontStyle]:"italic",[Nm.buttonMaxWidth]:"50%",[Nm.listBackgroundColor]:"transparent",[Nm.listBorderRadius]:"0",[Nm.listBorderWidth]:"0",[Nm.listPadding]:"0",[Nm.listBoxShadow]:"none",[Nm.listItemsGap]:Im.spacing.lg,[Nm.itemBorderColor]:Im.colors.surface.light,[Nm.itemVerticalPadding]:Im.spacing.lg,[Nm.itemHorizontalPadding]:Im.spacing.lg,[Nm.itemBorderRadius]:Im.radius.xs,[Nm.itemOutline]:"transparent",[Nm.itemBackgroundColor]:"transparent",[Nm.itemCursor]:"default",[Nm.badgeBorderColor]:Im.colors.surface.light,[Nm.badgeTextColor]:Im.colors.surface.dark,[Nm.badgeBorderRadius]:Im.radius.xs,[Nm.badgeBackgroundColor]:Im.colors.surface.main,[Nm.titleIconSize]:"24px",[Nm.createButtonIconSize]:"12px",[Nm.actionIconSize]:"20px",[Nm.actionIconColor]:Im.colors.surface.dark,_fullWidth:{[Nm.hostWidth]:"100%"}};var Tm=Object.freeze({__proto__:null,default:xm,vars:Nm});const jm=L("tooltip"),Dm=["text","position","hide-delay","hover-delay","opened"];class vm extends(bt({componentName:jm,baseSelector:"vaadin-tooltip"})){#Mi=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")}#mi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}static get observedAttributes(){return Dm.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"]')}#yi(){this.isStaticDisplay?(this.#bi(),this.setAttribute("inert","true")):this.removeAttribute("inert")}#bi(){this.overlay&&(this.overlay.style.display="block",this.overlay.style.position="static")}init(){super.init?.(),f('\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.#Ni()),this.#Ni(),setTimeout(()=>this.#Ii())}#xi(){this.#Mi?.disconnect(),this.anchored&&(this.#Mi=v(this.anchored,()=>this.#mi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#mi(),this.#xi()}disconnectedCallback(){super.disconnectedCallback?.(),this.#Mi?.disconnect()}#Ni(){const t=this.defaultSlot?.assignedElements()?.[0];t&&(this.tooltip.target=t)}#Ii(){this.#Ti(),this.#ji(),A(this,this.tooltip,{includeAttrs:["position","opened"]}),this.#Di()}#vi(){this.overlayContentNode.innerHTML=""}#zi(){const t=document.createElement("descope-enriched-text");return t.setAttribute("link-target-blank","true"),t.textContent=this.tooltipText,t}#Ti(){this.overlayContentNode&&setTimeout(()=>{this.#vi(),this.textComponent=this.#zi(),this.overlayContentNode.appendChild(this.textComponent),this.srLabel&&!this.tooltipText&&this.srLabel.setAttribute("aria-hidden","true"),A(this,this.textComponent,{includeAttrs:["readonly"]})})}#ji(){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.#yi(),this.overlay._updatePosition?.()})}#Di(){this.tooltip?.toggleAttribute("manual",this.isOpened)}#Ci(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.#Ci(i),"opened"===t&&this.#Di())}}const{overlay:zm,content:Cm}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},Sm=j(ht,kt({selector:"",mappings:{fontFamily:{...Cm,property:Bt.cssVarList.fontFamilyOverride},fontSize:{...Cm,property:Bt.cssVarList.fontSizeOverride},fontWeight:{...Cm,property:Bt.cssVarList.fontWeightOverride},textColor:{...Cm,property:Bt.cssVarList.textColorOverride},hostDirection:{...Cm,property:Bt.cssVarList.hostDirectionOverride},backgroundColor:[{...zm},{...Cm}],borderColor:{...zm},borderStyle:{...zm},borderWidth:{...zm},borderRadius:{...zm},boxShadow:{...zm},horizontalPadding:[{...Cm,property:"padding-left"},{...Cm,property:"padding-right"}],verticalPadding:[{...Cm,property:"padding-top"},{...Cm,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(vm),Lm=it(rp),wm=Sm.cssVarList,[Am,fm,Em]=nt({shadowColor:"#00000020"},jm),{shadowColor:km}=fm,Om=`${Lm.shadow.wide.sm} ${km}, ${Lm.shadow.narrow.sm} ${km}`,Vm={...Am,[wm.fontFamily]:Lm.fonts.font1.family,[wm.fontSize]:rp.typography.body2.size,[wm.fontWeight]:rp.typography.body2.weight,[wm.textColor]:Lm.colors.surface.contrast,[wm.hostDirection]:Lm.direction,[wm.backgroundColor]:Lm.colors.surface.main,[wm.borderColor]:Lm.colors.surface.light,[wm.borderStyle]:"solid",[wm.borderWidth]:Lm.border.xs,[wm.borderRadius]:Lm.radius.xs,[wm.horizontalPadding]:Lm.spacing.md,[wm.verticalPadding]:Lm.spacing.sm,[wm.boxShadow]:Om,shadow:{sm:{[wm.boxShadow]:Om},md:{[wm.boxShadow]:`${Lm.shadow.wide.md} ${km}, ${Lm.shadow.narrow.md} ${km}`},lg:{[wm.boxShadow]:`${Lm.shadow.wide.lg} ${km}, ${Lm.shadow.narrow.lg} ${km}`},xl:{[wm.boxShadow]:`${Lm.shadow.wide.xl} ${km}, ${Lm.shadow.narrow.xl} ${km}`},"2xl":{[Em.shadowColor]:"#00000050",[wm.boxShadow]:`${Lm.shadow.wide["2xl"]} ${km}`}}};var Wm=Object.freeze({__proto__:null,default:Vm,vars:wm});const Rm=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},Um=async t=>Rm(`${t}/countries.json`),Ym=async(t,e)=>{try{return(await Rm(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},Qm=async(t,e,i)=>Rm(`${i}/countries/${t}/subdivisions/${e}/cities.json`),Bm=async t=>{const e=new URL("../labels.json",`${t}/`).href;return Rm(e)},Pm=async(t,e)=>Rm(`${e}/countries/${t}/cities.json`),Zm=L("country-subdivision-city-field-internal"),Fm=Symbol("selecting"),Gm=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,Hm=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",Jm=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=Gm({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=Hm(e),l=Hm(s.join(" ")),d=Hm(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},$m=({name:t,state_code:e,translations:i,lang:o})=>{const n=Gm({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=Hm(e),a=Hm(r.join(" ")),l=Hm(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},qm=({name:t,translations:e,lang:i})=>{const o=Gm({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=Hm(t),s=Hm(n.join(" ")),a=Hm(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},_m=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,Xm=vt({componentName:Zm,baseSelector:""}),Km=["disabled","readonly","size","bordered"],ty=["hide-country","hide-subdivision","hide-city"],ey=[...Km,"label-type","country-label","subdivision-label","city-label",...ty,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],iy=j()(class extends Xm{static get observedAttributes(){return[].concat(Xm.observedAttributes||[],ey)}#Si;#Li;#wi;#Ai=!1;#fi=!1;#Ei=new Map;#ki=null;#Oi=null;#Vi=null;#Wi=null;#Ri=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${_m("country-combo")}\n ${_m("subdivision-combo")}\n ${_m("city-combo")}\n </div>\n `,this.#Si=this.querySelector("#country-combo"),this.#Li=this.querySelector("#subdivision-combo"),this.#wi=this.querySelector("#city-combo"),this.#Ui(),this.#Yi()}get#Qi(){return"true"===this.getAttribute("hide-country")}get#Bi(){return"true"===this.getAttribute("hide-subdivision")}get#Pi(){return"true"===this.getAttribute("hide-city")}get#Zi(){return!this.#Fi}get#Fi(){return this.getAttribute("data-source-base-url")||void 0}get#Gi(){const t=this.getAttribute("lang")||void 0;if(t)try{const[e]=Intl.getCanonicalLocales(t);return e}catch{return}}get#Hi(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#Ji(){return this.getAttribute("subdivision-label")||void 0}get#$i(){return this.getAttribute("subdivision-placeholder")||void 0}get#qi(){return(this.getAttribute("allowed-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#_i(){return(this.getAttribute("pinned-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#Xi(){return[this.#Si,this.#Li,this.#wi]}get value(){return{country:this.#Qi?this.#Hi:this.#Si.value||void 0,subdivision:!this.#Bi&&this.#Ai&&this.#Li.value||void 0,city:!this.#Pi&&this.#fi&&this.#wi.value||void 0}}set value(t){if(!t)return;let e;try{e="string"==typeof t?JSON.parse(t):t}catch{return}this.#Ri={...e},this.#Fi&&this.#Ki()}init(){this.addEventListener("focus",t=>{if(t.isTrusted){const t=this.#Xi.find(t=>!t.classList.contains(`${Zm}-hidden`)&&!t.checkValidity());(t||this.#to())?.focus()}}),super.init?.(),this.#eo(),this.#io(),this.#oo(),this.#no()}#no(){this.#Si.renderItem=Jm,this.#Li.renderItem=$m,this.#wi.renderItem=qm}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ro();else if(ty.includes(t)||"data-source-base-url"===t)this.#eo(),"data-source-base-url"===t&&this.#oo();else if("default-country"===t){const t=i?.toUpperCase();if(t&&t!==i)return void this.setAttribute("default-country",t);t&&this.#Ei.size?this.#so(t):t&&this.#Qi&&this.#ao()}else"lang"===t?this.#lo():"invalid"===t?"true"===i&&this.#do():"allowed-countries"===t||"pinned-countries"===t?this.#Qi||(this.#ki?this.#co(this.#ki):this.#ao()):"country-label"===t?this.#uo(this.#Si,"label",i):"subdivision-label"===t?this.#uo(this.#Li,"label",i):"city-label"===t&&this.#uo(this.#wi,"label",i)}getValidity(){if(!this.isRequired)return{};const t=!this.#Qi&&!this.#Si.value,e=!this.#Bi&&(this.#Zi||this.#Ai)&&!this.#Li.value,i=!this.#Pi&&(this.#Zi||this.#fi)&&!this.#wi.value;return t||e||i?{valueMissing:!0}:{}}#do(){for(const t of[...this.#Xi].reverse())t.classList.contains(`${Zm}-hidden`)||t.checkValidity()||t.reportValidity()}#Ui(){[this.#Si,this.#Li,this.#wi].forEach(t=>{t.customValueTransformFn=e=>{const i=t.baseElement?.items?.find(t=>t["data-name"]===e);return i?.getAttribute("data-label")??e}})}#Yi(){this.#Xi.forEach(t=>{A(this,t,{includeAttrs:[...Km,"label-type"]})}),A(this,this.#Si,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#Si,"country-placeholder"],[this.#Li,"subdivision-placeholder"],[this.#wi,"city-placeholder"]].forEach(([t,e])=>{A(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#io(){this.#Si.addEventListener("input",()=>this.#po()),this.#Li.addEventListener("input",()=>this.#ho()),this.#wi.addEventListener("input",()=>this.#go()),this.handleFocusEventsDispatching(this.#Xi)}#oo(){this.#Fi&&(this.#Ri?this.#Ki():this.#Qi&&!this.#Hi||this.#ao())}async#Ki(){const{country:t,subdivision:e,city:i}=this.#Ri,o=!!e&&!this.#Bi,n=!!i&&!this.#Pi,r=this.#ki??Um(this.#Fi),s=this.#Wi??Bm(this.#Fi),a=o&&t?Ym(t,this.#Fi):null,l=n&&t?o&&e?Qm(t,e,this.#Fi):Pm(t,this.#Fi):null,[d,c,u,p]=(await Promise.allSettled([r,s,a,l])).map(t=>"fulfilled"===t.status?t.value:null);if(!this.#Ri)return;c&&(this.#Wi=c);const h=[];d&&(this.#ki||(this.#ki=d,this.#co(d)),t&&!this.#Qi&&h.push([this.#Si,t]));const g=t?this.#Ei.get(t):null;g?.subdivisionType&&this.#Mo(g.subdivisionType),u&&(this.#Oi=u,this.#Ai=u.length>0,u.length>0&&(this.#Li.data=u.map(t=>({...t,lang:this.#Gi})),e&&h.push([this.#Li,e]))),p&&(this.#fi=p.length>0,p.length>0&&(this.#Vi=p,this.#wi.data=p.map(t=>({...t,lang:this.#Gi})),i&&h.push([this.#wi,i]))),this.#eo(),this.#Ri=Fm,setTimeout(()=>{if(this.#Ri===Fm){for(const[t,e]of h){const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)}this.#Ri=null}})}#po(){this.#Ri!==Fm&&(this.#Ri=null,this.#mo(),this.#yo(),this.#so(this.#Si.value),this.#go())}#ho(){if(this.#Ri===Fm)return;this.#Ri=null;const t=this.#Li.value;if(this.#yo(),!this.#Pi&&t){const e=this.#Si.value;e&&this.#bo(e,t)}this.#go()}#so(t){if(!t)return;const e=this.#Ei.get(t);if(!e)return;const{hasSubdivisions:i,subdivisionType:o}=e;!this.#Bi&&i?(this.#Mo(o),this.#No(t)):this.#Pi||this.#bo(t)}#Mo(t){const e=this.#Io(t);this.#Ji||this.#uo(this.#Li,"label",e||null),this.#$i||this.#uo(this.#Li,"placeholder",e||null)}#Io(t){const e=this.#Wi?.subdivisionTypes,i=e?.[t]??e?._fallback;if(!i)return t;const o=this.#Gi;return o&&(i[o]||i[o.split("-")[0]])||i.en||t}async#xo(){try{this.#Wi=await Bm(this.#Fi)}catch{}}async#ao(){if(this.#Fi){this.#Si.setAttribute("loading","true");try{const[t]=await Promise.all([Um(this.#Fi),this.#xo()]);this.#ki=t,this.#co(t),!this.#Ri&&this.#Hi&&this.#so(this.#Hi)}catch(t){console.error(`[${Zm}] Failed to load countries`,t)}finally{this.#Si.removeAttribute("loading")}}}async#No(t){this.#To(this.#Li,!0),this.#Li.setAttribute("loading","true");try{const e=await Ym(t,this.#Fi);this.#Oi=e,this.#Ai=e.length>0,this.#eo(),e.length>0?this.#Li.data=e.map(t=>({...t,lang:this.#Gi})):this.#Pi||this.#bo(t)}catch(e){console.error(`[${Zm}] Failed to load subdivisions for ${t}`,e),this.#Ai=!1,this.#jo()}finally{this.#Li.removeAttribute("loading")}}async#bo(t,e){this.#wi.setAttribute("loading","true");try{const i=await(e?Qm(t,e,this.#Fi):Pm(t,this.#Fi));this.#fi=i.length>0,this.#eo(),i.length>0&&(this.#Vi=i,this.#wi.data=i.map(t=>({...t,lang:this.#Gi})))}catch(i){console.error(`[${Zm}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#wi.removeAttribute("loading")}}#lo(){if(this.#ki){const t=this.#Si.value;this.#co(this.#ki),t&&this.#Do(this.#Si,t)}if(this.#Oi&&this.#Ai){const t=this.#Li.value;this.#Li.data=this.#Oi.map(t=>({...t,lang:this.#Gi})),t&&this.#Do(this.#Li,t)}if(this.#Vi&&this.#fi){const t=this.#wi.value;this.#wi.data=this.#Vi.map(t=>({...t,lang:this.#Gi})),t&&this.#Do(this.#wi,t)}const t=this.#Si.value;if(t){const e=this.#Ei.get(t);e?.subdivisionType&&this.#Mo(e.subdivisionType)}}#co(t){const e=this.#vo(t);this.#Si.data=e.map(t=>({...t,lang:this.#Gi})),this.#Ei=new Map(t.map(t=>[t.iso2,t]))}#vo(t){const e=this.#qi,i=this.#_i;let o=e.length?t.filter(t=>e.includes(t.iso2)):[...t];return o.sort((t,e)=>Gm(t,this.#Gi).localeCompare(Gm(e,this.#Gi),this.#Gi)),i.length?[...i.map(t=>o.find(e=>e.iso2===t)).filter(Boolean),...o.filter(t=>!i.includes(t.iso2))]:o}#jo(){this.#To(this.#Si,!this.#Qi),this.#To(this.#Li,!this.#Bi&&(this.#Zi||this.#Ai)),this.#To(this.#wi,!this.#Pi&&(this.#Zi||this.#fi))}#To(t,e){t?.classList.toggle(`${Zm}-hidden`,!e)}#ro(){const t=this.hasAttribute("required")?"true":null;this.#uo(this.#Si,"required",this.#Qi?null:t),this.#uo(this.#Li,"required",this.#Bi||!this.#Zi&&!this.#Ai?null:t),this.#uo(this.#wi,"required",this.#Pi||!this.#Zi&&!this.#fi?null:t)}#eo(){this.#jo(),this.#ro(),this.setCustomValidity("")}#mo(){this.#Li.value="",this.#Li.data=[],this.#Ai=!1,this.#Ji||this.#Li.removeAttribute("label"),this.#$i||this.#Li.removeAttribute("placeholder"),this.#eo()}#yo(){this.#wi.value="",this.#wi.data=[],this.#Vi=null,this.#fi=!1,this.#eo()}#go(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#uo(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#to(){return this.#Xi.find(t=>!t.classList.contains(`${Zm}-hidden`))}#Do(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),oy=L("country-subdivision-city-field"),ny={selector:()=>":host"},ry={selector:`${Zm} > .wrapper`},sy={selector:`${Zm} > .wrapper > descope-combo-box`},ay=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{hostWidth:{...ny,property:"width"},hostDirection:[{...ny,property:"direction"},{...sy,property:To.cssVarList.hostDirection}],flexDirection:{...ry,property:"flex-direction"},flexGap:{...ry,property:"gap"},itemAlignment:{...ry,property:"align-items"},itemMinWidth:{...sy,property:"min-width"},itemFlexGrow:{...sy,property:"flex-grow"},itemWidth:{...sy,property:To.cssVarList.hostWidth}}}),pt,ft({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),ht,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Zm}\n tabindex="-1"\n ></${Zm}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Zm),A(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"]})}})(St({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 ${Zm} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Zm} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${Zm}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:oy})),ly=ay.cssVarList,dy={[ly.hostWidth]:Ap.width,[ly.hostDirection]:Ap.direction,[ly.flexDirection]:"column",[ly.flexGap]:"0.5em",[ly.itemAlignment]:"stretch",[ly.itemFlexGrow]:"0",[ly.itemWidth]:"auto",_fullWidth:{[ly.hostWidth]:"100%"},_horizontal:{[ly.flexDirection]:"row",[ly.itemFlexGrow]:"1"}};var cy=Object.freeze({__proto__:null,default:dy,vars:ly});const uy=L("attachment"),py=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],hy=py[0];class gy extends(bt({componentName:uy,baseSelector:"descope-anchored"})){#Mi=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#zo(){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.#Co()}init(){super.init?.(),f("\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.#Co();const t=this.shadowRoot.querySelector(".attachment-container");v(t,()=>this.#So(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#So()),this.defaultSlot.addEventListener("slotchange",()=>{this.#Lo(),window.requestAnimationFrame(()=>this.#wo())}),window.requestAnimationFrame(()=>this.#Lo())}#mi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#xi(){this.#Mi?.disconnect(),this.anchored&&(this.#Mi=v(this.anchored,()=>this.#mi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#mi(),this.#xi()}disconnectedCallback(){super.disconnectedCallback?.(),this.#Mi?.disconnect()}#wo(){const t=this.defaultSlot?.assignedElements()?.[0],e=t?.getBoundingClientRect();if(e){const t=e.width;this.#zo?.setAttribute("data-attachment-size",Number(t))}}#Lo(){const t=this.defaultSlot?.assignedElements()?.length>0;this.classList.toggle("hidden",!t)}#So(){const t=this.shadowRoot.querySelector(".attachment-container")?.getAttribute("st-host-direction");t&&this.#zo?.setAttribute("st-host-direction",t)}get offsetX(){return this.getAttribute("offset-x")||"0px"}get offsetY(){return this.getAttribute("offset-y")||"0px"}#Co(){const t=this.getAttribute("position");py.includes(t)||this.setAttribute("position",hy)}}const My={selector:()=>".attachment-container"},my=j(ut({mappings:{transform:{...My},justifyContent:{...My},maxWidth:{...My},top:{...My},bottom:{...My},left:{...My},right:{...My},offsetX:{},offsetY:{}}}),pt,ht)(gy),yy=my.cssVarList,by=`calc(8px + var(${yy.offsetX}))`,Ny={[yy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[yy.transform]:"translateY(-50%)",[yy.justifyContent]:"start",[yy.left]:by,[yy.top]:ot(yy.offsetY)},"top-center":{[yy.transform]:"translate(-50%, -50%)",[yy.justifyContent]:"center",[yy.top]:ot(yy.offsetY),[yy.left]:"50%"},"top-end":{[yy.transform]:"translateY(-50%)",[yy.justifyContent]:"end",[yy.right]:by,[yy.top]:ot(yy.offsetY)},"bottom-start":{[yy.transform]:"translateY(50%)",[yy.justifyContent]:"start",[yy.left]:by,[yy.bottom]:ot(yy.offsetY)},"bottom-center":{[yy.bottom]:ot(yy.offsetY),[yy.transform]:"translate(-50%, 50%)",[yy.justifyContent]:"center",[yy.left]:"50%"},"bottom-end":{[yy.transform]:"translateY(50%)",[yy.justifyContent]:"end",[yy.right]:by,[yy.bottom]:ot(yy.offsetY)}}};var Iy=Object.freeze({__proto__:null,default:Ny}),xy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",Ty="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2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42NSAwLTMtMS4zNS0zLTNzMS4zNS0zIDMtMyAzIDEuMzUgMyAzLTEuMzUgMy0zIDN6bTAtNGMtLjU1IDAtMSAuNDUtMSAxcy40NSAxIDEgMSAxLS40NSAxLTEtLjQ1LTEtMS0xeiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},phone:{light:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iIzYzNmM3NCIvPjwvc3ZnPg==",dark:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:Ty,dark:xy}},vy=L("user-passkeys"),zy=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=Dy[t]||Dy.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=V(i,"remove-button");n&&o.append(n)})(c,t,r),c},Cy=bt({componentName:vy,baseSelector:yu.componentName}),{host:Sy,methodIconSlotted:Ly,addIconSlotted:wy}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},Ay=j(ut({mappings:{hostWidth:{...Sy,property:"width"},hostMinWidth:{...Sy,property:"min-width"},hostDirection:[{...Sy,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:[{...Ly,property:"height"},{...wy,property:"height"}]}}),pt,Wt({itemRenderer:zy,sortFn:(t,e)=>jy(e.createdAt)-jy(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),ht)(class extends Cy{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"]'),f('\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=zy,this.appsList.addEventListener("click",this.onRemoveClick.bind(this)),this.addPasskeyButton.addEventListener("click",this.onAddClick.bind(this)),A(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))}}),fy=Ay.cssVarList,Ey={[fy.hostWidth]:"auto",[fy.hostWidth]:"300px",[fy.hostMinWidth]:"300px",[fy.headerGap]:rp.spacing.lg,[fy.listGap]:rp.spacing.xl,[fy.listBackgroundColor]:"transparent",[fy.listBorderRadius]:"0",[fy.listBorderWidth]:"0",[fy.listPadding]:"0",[fy.listBoxShadow]:"none",[fy.listItemsGap]:rp.spacing.lg,[fy.itemBorderColor]:rp.colors.surface.light,[fy.itemVerticalPadding]:rp.spacing.lg,[fy.itemHorizontalPadding]:rp.spacing.lg,[fy.itemBorderRadius]:rp.radius.xs,[fy.itemOutline]:"transparent",[fy.itemBackgroundColor]:"transparent",[fy.itemCursor]:"default",[fy.itemContentGap]:rp.spacing.sm,[fy.itemPanelGap]:rp.spacing.md,[fy.itemIconGap]:rp.spacing.md,[fy.itemIconSize]:"24px",[fy.addButtonGap]:rp.spacing.sm,[fy.dateGap]:rp.spacing.xs,[fy.removeButtonGap]:rp.spacing.sm,[fy.iconSize]:"1.5em",[fy.iconColor]:"currentcolor",_fullWidth:{[fy.hostWidth]:"100%"}};var ky=Object.freeze({__proto__:null,default:Ey,vars:fy});const Oy=it(rp),Vy=Xn.cssVarList,Wy={[Vy.hostWidth]:Ap.width,[Vy.hostMinWidth]:Ap.minWidth,[Vy.hostDirection]:Ap.direction,[Vy.fontSize]:Ap.fontSize,[Vy.fontFamily]:Ap.fontFamily,[Vy.labelFontSize]:Ap.labelFontSize,[Vy.labelFontWeight]:Ap.labelFontWeight,[Vy.inputValueFontWeight]:Ap.inputValueFontWeight,[Vy.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Vy.helperTextFontWeight]:Ap.helperTextFontWeight,[Vy.errorMessageFontWeight]:Ap.errorMessageFontWeight,[Vy.labelTextColor]:Ap.labelTextColor,[Vy.labelRequiredIndicator]:Ap.requiredIndicator,[Vy.errorMessageTextColor]:Ap.errorMessageTextColor,[Vy.inputValueTextColor]:Ap.valueTextColor,[Vy.inputPlaceholderColor]:Ap.placeholderTextColor,[Vy.inputBorderWidth]:Ap.borderWidth,[Vy.inputBorderStyle]:Ap.borderStyle,[Vy.inputBorderColor]:Ap.borderColor,[Vy.inputBorderRadius]:Ap.borderRadius,[Vy.inputOutlineWidth]:Ap.outlineWidth,[Vy.inputOutlineStyle]:Ap.outlineStyle,[Vy.inputOutlineColor]:Ap.outlineColor,[Vy.inputOutlineOffset]:Ap.outlineOffset,[Vy.inputBackgroundColor]:Ap.backgroundColor,[Vy.inputHeight]:Ap.inputHeight,[Vy.inputHorizontalPadding]:Ap.horizontalPadding,[Vy.helperTextColor]:Ap.helperTextColor,[Vy.textAlign]:Ap.textAlign,textAlign:{right:{[Vy.inputTextAlign]:"right"},left:{[Vy.inputTextAlign]:"left"},center:{[Vy.inputTextAlign]:"center"}},[Vy.labelPosition]:Ap.labelPosition,[Vy.labelTopPosition]:Ap.labelTopPosition,[Vy.labelHorizontalPosition]:Ap.labelHorizontalPosition,[Vy.inputTransformY]:Ap.inputTransformY,[Vy.inputTransition]:Ap.inputTransition,[Vy.marginInlineStart]:Ap.marginInlineStart,[Vy.placeholderOpacity]:Ap.placeholderOpacity,[Vy.inputVerticalAlignment]:Ap.inputVerticalAlignment,[Vy.valueInputHeight]:Ap.valueInputHeight,[Vy.valueInputMarginBottom]:Ap.valueInputMarginBottom,[Vy.inputIconOffset]:Oy.spacing.md,[Vy.inputIconSize]:Ap.inputIconSize,[Vy.inputIconColor]:Ap.placeholderTextColor,[Vy.errorMessageIcon]:Ap.errorMessageIcon,[Vy.errorMessageIconSize]:Ap.errorMessageIconSize,[Vy.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Vy.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Vy.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Vy.errorMessageFontSize]:Ap.errorMessageFontSize,[Vy.inputTextSecurity]:Ap.inputTextSecurity};var Ry=Object.freeze({__proto__:null,default:Wy,textField:Wy,vars:Vy});class Uy{#W=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.#W}set data(t){this.#W=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const Yy=["MM/DD","DD/MM"],Qy=Yy[0],By="/",Py=[31,29,31,30,31,30,31,31,30,31,30,31],Zy={id:"month",min:1,max:12,placeholder:"MM"},Fy={id:"day",min:1,max:31,placeholder:"DD"},Gy={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},Hy=t=>{const e=(t=>`^${t.split(By).map(t=>Gy[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(By);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}}},Jy=Object.fromEntries(Yy.map(t=>[t,Hy(t)])),$y=(t,e)=>{const i=t?.trim?.();return i?Jy[e]?.getParts(i)??null:null},qy=L("month-day-field"),_y=vt({componentName:qy,baseSelector:"vaadin-popover"}),Xy=["format","opened","initial-value","readonly","disable-picker"],Ky=["picker-months","picker-label-submit","picker-label-cancel"],tb=[...Xy,...Ky],eb=Xn.cssVarList,{host:ib,input:ob,inputEleRTL:nb,toggleButton:rb,overlay:sb,backdrop:ab,bottomNav:lb,navButton:db}={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"}},cb=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{iconMargin:{...rb,property:"margin-inline-end"},hostWidth:{...ib,property:"width"},hostDirection:{...ib,property:"direction"},textAlign:{...ob,property:"text-align"},rtlInputDirection:{...nb,property:eb.inputDirection},rtlInputAlignment:{...nb,property:eb.inputTextAlign},overlayGap:{property:()=>cb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>cb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>cb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>cb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>cb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>cb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>cb.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:{...sb,property:"margin-top"},backgroundColor:{...sb},backdropBackgroundColor:{...ab,property:"background-color"},backdropPointerEvents:{...ab,property:"pointer-events"},padding:{...sb},boxShadow:{...sb},outlineWidth:{...sb},outlineColor:{...sb},outlineStyle:{...sb},bottomNavTopPadding:{...lb,property:"padding-top"},bottomNavBottomPadding:{...lb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...lb,property:"padding-left"},{...lb,property:"padding-right"}],bottomNavAlignment:{...lb,property:"justify-content"},bottomNavGap:{...lb,property:"gap"},navButtonPadding:[{...db,property:Oo.cssVarList.horizontalPadding},{...db,property:Oo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...db,property:Oo.cssVarList.outlineWidth}}}),pt,ht)(class extends _y{format=Qy;#Ao=0;#fo=()=>{this.updateCountersDisplay(),this.#Eo(),this.#lt()};#ko=[new Uy(Zy,this.#fo.bind(this)),new Uy(Fy,this.#fo.bind(this))];static get observedAttributes(){return[].concat(_y.observedAttributes||[],tb)}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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3IDEwLjc4NiA2Ljc3NDA0IDExIDYuNDk1MzIgMTFINS41MDQ2OEM1LjIxNDA0IDExIDUgMTAuNzc0IDUgMTAuNDk1M1Y5LjUwNDY4QzUgOS4yMTQwNCA1LjIyNTk1IDkgNS41MDQ2OC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E3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+Cjwvc3ZnPgo="></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',f('\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.#ko.find(t=>t.id===Zy.id)}get dayCounter(){return this.#ko.find(t=>t.id===Fy.id)}get sortedCounters(){return this.format.split(By).map(t=>this.#ko.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#Ao]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(By)}get isCountersEmpty(){return this.#ko.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#ko.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?$y(String(t),this.format):null;e?this.#Oo(e.month,e.day):(this.#ko.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()}#Eo(){const t=this.monthCounter.numberValue,e=Py[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#Oo(t,e){this.monthCounter.replaceValue(t),this.#Eo(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#lt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#ko.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Vo(),this.#Wo(),this.#fo(),this.#Ro(),setTimeout(()=>this.#it(),0)}#Ro(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#Uo.bind(this)),this.inputElement.addEventListener("focus",this.#Yo.bind(this)),this.inputElement.addEventListener("blur",this.#Qo.bind(this)),this.inputElement.addEventListener("click",this.#Bo.bind(this)),this.inputElement.addEventListener("keydown",this.#Po.bind(this)),this.inputElement.addEventListener("beforeinput",this.#Zo.bind(this)),this.inputElement.addEventListener("pointerdown",this.#Fo.bind(this)),this.inputElement.addEventListener("paste",this.#Go.bind(this)),A(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"]})}#Wo(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),f("\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.#Ho(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#pt(),t.classList.remove("overlay-hidden")},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { margin-left: 0; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.picker.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${l}px;\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=f(d,t)}#ut(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#Jo(),this.cancelButton.addEventListener("click",this.#$o.bind(this)),this.submitButton.addEventListener("click",this.#qo.bind(this)),e.addEventListener("change",this.#_o.bind(this)),t}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#Ho(){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),A(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#Xo(){return this.getAttribute("picker-label-submit")||"Done"}get#Ko(){return this.getAttribute("picker-label-cancel")||"Cancel"}#Jo(){this.submitButton&&(this.submitButton.textContent=this.#Xo,this.cancelButton.textContent=this.#Ko)}#_o(t){const{month:e,day:i}=t.detail||{};this.#tn(null==e||null==i)}#tn(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()}#qo(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#Oo(t,e),this.#lt(),this.closePopover()):this.closePopover()}#Uo(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#en(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#Zo(t){var e;t.preventDefault(),this.#in(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#on(t.data),this.updateCountersDisplay()):t.inputType&&this.#nn(t)}#in(){this.isSelectAll&&this.#rn()}#on(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#sn(),this.#an()}#ln(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#dn(t){this.#Ao=this.#ln(t.target?.selectionStart||this.inputElement.selectionStart)}#rn(){this.#Ao=0}#sn(){this.#Ao<this.#ko.length-1&&(this.#Ao=Math.min(this.#Ao+1,1))}#cn(){this.#Ao>0&&(this.#Ao=0)}#an(){this.#Ao<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#Ao).reduce((t,e)=>t+e.length,this.#Ao);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#Ao].length)})}#Po(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#un(t):(this.#in(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#sn():"ArrowLeft"===t.key&&this.#cn(),this.#an())}#nn(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#pn(),this.#an()))}#pn(){if(this.isSelectAll)return void this.#hn();const t=this.activeCounter;t.isEmpty?(this.#cn(),this.#an()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#an()})}#Bo(t){this.opened||(t.preventDefault(),this.#dn(t),this.#an())}#Fo(t){setTimeout(()=>this.#Bo(t),150)}#Yo(){this.isReadOnly||setTimeout(()=>this.#gn())}#Qo(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#gn(){this.inputElement.value||(this.inputElement.value=this.format),this.#rn(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#hn(){this.resetCounters(),this.#rn(),this.#gn()}#Mn(t){Object.keys(Jy).includes(t)&&(this.format=t,this.#Vo(),this.updateCountersDisplay())}#Vo(){const t=this.getAttribute("format")||this.format||Qy,e=Jy[t]?t:Qy;this.format=e,this.setAttribute("pattern",Jy[e].pattern)}#un(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.#hn()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.#an()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#Go(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=$y(e,this.format);if(i)return this.#Oo(i.month,i.day),this.#fo(),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.#an()))}#mn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#en("true"!==i),Xy.includes(t)?(i&&"format"===t&&this.#Mn(i),"initial-value"===t&&this.#mn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#Jo():Ky.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),ub=it(rp),pb="#00000020",{shadow:hb}=ub,gb=cb.cssVarList,Mb={[gb.hostWidth]:Ap.width,[gb.hostDirection]:Ap.direction,[gb.iconMargin]:"0.375em",[gb.overlay.marginTop]:Ap.outlineWidth,[gb.overlay.backgroundColor]:Ap.backgroundColor,[gb.overlay.backdropBackgroundColor]:"transparent",[gb.overlay.backdropPointerEvents]:"all",[gb.overlay.boxShadow]:`${hb.wide.xl} ${pb}, ${hb.narrow.xl} ${pb}`,[gb.overlay.outlineWidth]:"0",[gb.overlay.outlineColor]:"transparent",[gb.overlay.outlineStyle]:"none",[gb.overlay.padding]:"0",[gb.overlay.bottomNavTopPadding]:"0",[gb.overlay.bottomNavBottomPadding]:"0.75em",[gb.overlay.bottomNavHorizontalPadding]:"1em",[gb.overlay.bottomNavAlignment]:"space-between",[gb.overlay.bottomNavGap]:"0.5em",[gb.overlay.navButtonPadding]:"0",[gb.overlay.navButtonOutlineWidth]:"0",[gb.rtlInputDirection]:"ltr",[gb.rtlInputAlignment]:"right",[gb.errorMessageIcon]:Ap.errorMessageIcon,[gb.errorMessageIconSize]:Ap.errorMessageIconSize,[gb.errorMessageIconPadding]:Ap.errorMessageIconPadding,[gb.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[gb.errorMessageIconPosition]:Ap.errorMessageIconPosition,[gb.errorMessageFontSize]:Ap.errorMessageFontSize,[gb.labelFontWeight]:Ap.labelFontWeight,[gb.inputValueFontWeight]:Ap.inputValueFontWeight,[gb.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[gb.helperTextFontWeight]:Ap.helperTextFontWeight,[gb.errorMessageFontWeight]:Ap.errorMessageFontWeight};var mb=Object.freeze({__proto__:null,default:Mb,vars:gb});const yb=[31,29,31,30,31,30,31,31,30,31,30,31],bb=["January","February","March","April","May","June","July","August","September","October","November","December"],Nb=L("month-day-field-picker"),Ib=["initial-value","picker-months","st-host-direction","disabled","full-width"],xb=vt({componentName:Nb,baseSelector:"div"}),Tb=(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:jb,monthInput:Db,dayInput:vb,inputsRow:zb}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},Cb=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...jb,property:"padding"},inputsRowGap:{...zb,property:"gap"},inputWidth:[{...Db,property:"width"},{...vb,property:"width"}]}}),pt,ht)(class extends xb{static get observedAttributes(){return[].concat(xb.observedAttributes||[],Ib)}#yn=null;#bn=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 ',f("\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.#yn}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#yn=null:this.#yn=e,null!=this.#bn&&null!=this.#yn&&this.#bn>yb[this.#yn-1]&&(this.#bn=1),this.#Nn(),this.#In(),this.#xn(),this.#D()}get day(){return this.#bn}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#yn&&e>yb[this.#yn-1]?this.#bn=null:this.#bn=e,this.#xn(),this.#D()}set value(t){if(!t)return void this.#Tn();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}#Tn(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#yn||null==this.#bn?"":`${String(this.#yn).padStart(2,"0")}/${String(this.#bn).padStart(2,"0")}`}init(){super.init?.(),this.#jn(),this.#Dn();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#yn&&this.#Tn(),A(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),A(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.#vn())}get#zn(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:bb})(this.getAttribute("picker-months"))}#jn(){this.#vn(),this.monthInput.addEventListener("input",this.#Cn.bind(this))}#Dn(){this.dayInput.addEventListener("input",this.#Sn.bind(this))}#vn(){Tb(this.#zn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#Nn()}#In(){const t=yb[this.#yn-1]??0;Tb((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#Nn(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#yn?String(this.#yn):"")})}#xn(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#bn?String(this.#bn):"")})}#Cn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#yn&&(this.month=i)}#Sn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#bn&&(this.day=i)}#D(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#yn,day:this.#bn},bubbles:!0,composed:!0}))}getValidity(){return{}}}),Sb=Cb.cssVarList,Lb={[Sb.fontFamily]:Ap.fontFamily,[Sb.fontSize]:Ap.fontSize,[Sb.hostDirection]:Ap.direction,[Sb.inputWidth]:"130px",[Sb.pickerPadding]:"1em 1em",[Sb.inputsRowGap]:"0.5em",_fullWidth:{[Sb.hostWidth]:"100%"}};var wb=Object.freeze({__proto__:null,default:Lb,vars:Sb});const Ab={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}},fb=Object.keys(Ab).map(t=>`data-operator-label-${t}`),Eb={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"]},kb=(t,e)=>({id:t,...e[t]||{}}),Ob=(t,e,i,o=Ab)=>{const n=((i||Eb)[t]||[]).map(t=>kb(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)||kb(e,o),...i}}):n},Vb=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,Ab[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},Wb=(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))},Rb=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):[]},Ub=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var Yb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const Qb=L("filter-row"),Bb=["text","number","email"],Pb=["boolean","singleselect"],Zb=t=>!t||Bb.includes(t),Fb=t=>Pb.includes(t),Gb=t=>"multiselect"===t,Hb=()=>new Promise(t=>setTimeout(t)),{host:Jb}={host:{selector:()=>":host"}},$b=j(ut({mappings:{hostWidth:{...Jb,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...Jb,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>To.componentName,property:To.cssVarList.hostDirection},{selector:()=>Uh.componentName,property:Uh.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>To.componentName,property:To.cssVarList.hostWidth},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostWidth},{selector:()=>Uh.componentName,property:Uh.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Oo.componentName}.delete-btn[disabled="true"]`,property:Oo.cssVarList.iconColor}}}),ht,t=>class extends t{#Xt=[];#Ln=null;#wn=!1;#An;#fn;#En;#kn;#On;#Vn;#Wn=null;#Rn=(t=>{let e;const i=(...i)=>{clearTimeout(e),e=setTimeout(()=>t(...i),350)};return i.cancel=()=>clearTimeout(e),i})(()=>this.#D());static get observedAttributes(){return[...t.observedAttributes||[],"data","value","disable-delete","label-type","operators-catalog","data-value-label-true","data-value-label-false",...fb]}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="${Yb}" src-dark="${Yb}"></descope-icon>\n </slot>\n </descope-button>\n </div>\n `,f("\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.#An=this.shadowRoot.querySelector(".col-select"),this.#fn=this.shadowRoot.querySelector(".op-select"),this.#En=this.shadowRoot.querySelector(".text-value"),this.#kn=this.shadowRoot.querySelector(".combo-value"),this.#On=this.shadowRoot.querySelector(".multi-value"),this.#Vn=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Un(),this.#Vn.addEventListener("click",()=>this.#Yn("delete")),this.#Yi()}#Yi(){const t=[this.#An,this.#fn,this.#En,this.#kn,this.#On];[...t,this.#Vn].forEach(t=>A(this,t,{includeAttrs:["size","disabled"]})),this.#Qn(),t.forEach(t=>A(this,t,{includeAttrs:["label-type"]}))}#Qn(){const t=t=>({includeAttrs:[t],mapAttrs:{[t]:"placeholder"}});A(this,this.#An,t("data-column-placeholder")),A(this,this.#fn,t("data-operator-placeholder")),[this.#En,this.#kn,this.#On].forEach(e=>A(this,e,t("data-value-placeholder")))}#Bn(t,e){const i=this.#wn;this.#wn=!0,t.value=e,this.#wn=i}#Un(){this.shadowRoot.querySelector(".row").addEventListener("input",t=>{this.#wn||(t.target===this.#An?this.#Pn():t.target===this.#fn?this.#Zn():this.#Fn()?this.#Rn():this.#D())})}#Fn(){return!this.#En.classList.contains("hidden")}#Gn(t){return this.#Xt.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"}#Hn(){return[{value:"true",label:this.trueLabel},{value:"false",label:this.falseLabel}]}#Jn(t){return t?Ob(t.inputType,t.operators,Ub(this,"operators-catalog")).map(t=>{const e=this.getAttribute(`data-operator-label-${t.id}`);return e?{...t,label:e}:t}):[]}#Pn(){const t=this.#Gn(this.#An.value);if(!t)return;this.#Rn.cancel();const e=this.#Jn(t);this.#fn.data=e.map(t=>({value:t.id,label:t.label}));const i=e.find(t=>t.id===this.#fn.value)||e[0];i&&this.#Bn(this.#fn,i.id);const o=this.#Wn,n=t.inputType,r=o!==n;this.#Wn=n,this.#$n(t,i,{resetValue:r}),this.#D()}#Zn(){const t=this.#Gn(this.#An.value),e=this.#Jn(t).find(t=>t.id===this.#fn.value);this.#$n(t,e),this.#D()}#$n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#qn(o),Zb(o)?this.#_n(o,n):Fb(o)?this.#Xn(t,n):Gb(o)&&this.#Kn(t,n)}#qn(t){this.#En.classList.toggle("hidden",!Zb(t)),this.#kn.classList.toggle("hidden",!Fb(t)),this.#On.classList.toggle("hidden",!Gb(t))}#_n(t,e){"number"===t?this.#En.setAttribute("type","number"):"email"===t?this.#En.setAttribute("type","email"):this.#En.removeAttribute("type"),e&&this.#Bn(this.#En,"")}#Xn(t,e){const i="boolean"===t.inputType?this.#Hn():t.options||[];this.#kn.data=i.map(t=>({value:t.value,label:t.label})),e&&this.#Bn(this.#kn,"")}#Kn(t,e){this.#On.data=(t.options||[]).map(t=>({value:t.value,label:t.label})),e&&this.#Bn(this.#On,[])}#tr(t){return Gb(t)?this.#On:Fb(t)?this.#kn:Zb(t)?this.#En:null}#er(t){const e=this.#tr(t.inputType);return e?e.value??(Gb(t.inputType)?[]:""):null}#ir(){const t=this.#An?.value||"",e=this.#fn?.value||"",i=this.#Gn(t),o=this.#Jn(i).find(t=>t.id===e),n=!!o?.noValue,r=o&&!n&&i?this.#er(i):null;return{id:this.#Ln,column:t,operator:e,value:r,noValue:n}}#Yn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#D(){this.#Yn("change",{value:this.#ir()})}async#or(t){if(this.#Ln=t.id??null,t.column){this.#wn=!0;try{const e=this.#Gn(t.column);if(!e)return;await Hb(),this.#An.value=t.column;const i=this.#Jn(e);if(this.#fn.data=i.map(t=>({value:t.id,label:t.label})),t.operator){await Hb(),this.#fn.value=t.operator;const o=i.find(e=>e.id===t.operator);this.#$n(e,o)}null!==t.value&&void 0!==t.value&&(await Hb(),this.#nr(e,t.value))}finally{this.#wn=!1}}}#nr(t,e){const i=t.inputType,o=this.#tr(i);o&&(Gb(i)?this.#Bn(o,Array.isArray(e)?e:[]):Fb(i)?this.#Bn(o,String(e)):this.#Bn(o,e??""))}#rr(t){const e="floating"===t;[this.#An,this.#fn,this.#En,this.#kn,this.#On].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.#ir())}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.#sr(i),"value"===t&&this.#ar(i),"label-type"===t&&this.#rr(i),"disable-delete"===t&&this.#lr(i),("operators-catalog"===t||t.startsWith("data-operator-label-"))&&this.#dr(),"data-value-label-true"!==t&&"data-value-label-false"!==t||this.#cr())}#sr(t){if(t)try{this.#Xt=JSON.parse(t),this.#An.data=this.#Xt.map(t=>({value:t.id,label:t.label}))}catch{}}#ar(t){if(t)try{this.#or(JSON.parse(t))}catch{}}#lr(t){null!==t&&"false"!==t?this.#Vn.setAttribute("disabled","true"):this.#Vn.removeAttribute("disabled")}#cr(){const t=this.#Gn(this.#An?.value);t&&"boolean"===t.inputType&&this.#kn&&(this.#kn.data=this.#Hn())}#dr(){const t=this.#Gn(this.#An?.value);if(!t||!this.#fn)return;const e=this.#Jn(t);this.#fn.data=e.map(t=>({value:t.id,label:t.label}))}})(bt({componentName:Qb,baseSelector:".row"})),qb=L("filter-rows"),{host:_b,container:Xb,rowsList:Kb,actions:tN,addRowIcon:eN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},iN=j(ut({mappings:{hostWidth:{..._b,property:"width"},hostMinWidth:{..._b,property:"min-width"},hostDirection:[{..._b,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>$b.componentName,property:$b.cssVarList.hostDirection}],containerWidth:{...Xb,property:"width"},containerPadding:{...Xb,property:"padding"},containerGap:{...Xb,property:"gap"},listGap:{...Kb,property:"gap"},listMaxHeight:{...Kb,property:"max-height"},actionsGap:{...tN,property:"gap"},addRowIconSize:[{...eN,property:"width"},{...eN,property:"height"}]}}),ht,t=>class extends t{#De=[];#ur=0;#pr(){return this.#ur+=1,`row-${this.#ur}`}#hr(){return{id:this.#pr(),column:"",operator:"",value:null}}#gr(t){const e=t.value,i=null!=e&&""!==e&&!(Array.isArray(e)&&0===e.length);return!t.column&&!t.operator&&!i}#Mr=[];#mr;#yr;#br;#Nr;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 ',f('\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.#mr=this.shadowRoot.querySelector(".rows-list"),this.#yr=this.shadowRoot.querySelector(".add-row"),this.#br=this.shadowRoot.querySelector(".add-button-label"),this.#Nr=this.shadowRoot.querySelector(".clear-all")}init(){super.init?.(),z(this,this.#Ir.bind(this)),this.#yr.addEventListener("click",this.#xr.bind(this)),this.#Nr.addEventListener("click",this.#Tr.bind(this)),this.#mr.addEventListener("change",this.#jr.bind(this)),this.#mr.addEventListener("delete",this.#Dr.bind(this)),[this.#yr,this.#Nr].forEach(t=>A(this,t,{includeAttrs:["size"]})),this.#vr(),this.#Ir(),this.#zr(),this.#we(),setTimeout(()=>this.#Cr())}#vr(){const t=Ub(this,"data");this.#Mr=Array.isArray(t)?t:[]}#Ir(){this.#mr.querySelectorAll(Qb).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#Sr(t)})}#Lr(){const t=new Set(this.#De.map(t=>t.id));this.#mr.querySelectorAll(Qb).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#wr(t){return this.#mr.querySelector(`${Qb}[data-row-id="${t}"]`)}#we(){this.#Lr(),this.#De.forEach(t=>{(this.#wr(t.id)||this.#Ar(t.id)).setAttribute("value",JSON.stringify(t))}),this.#Cr(),this.#fr()}#Ar(t){const e=document.createElement(Qb);return e.dataset.rowId=t,this.#mr.appendChild(e),A(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",...fb]}),this.#Sr(e),e}#Sr(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)})}#Cr(){const t=1===this.#De.length&&this.#gr(this.#De[0]);this.#mr.querySelectorAll(Qb).forEach(e=>{t?e.setAttribute("disable-delete",""):e.removeAttribute("disable-delete")}),t?this.#Nr.setAttribute("disabled","true"):this.#Nr.removeAttribute("disabled")}#zr(){0===this.#De.length&&(this.#De=[this.#hr()])}#fr(){const t=parseInt(this.getAttribute("max-rows"),10),e=!Number.isNaN(t)&&this.#De.length>=t;this.#yr.classList.toggle("hidden",e)}#xr(){this.#De=[...this.#De,this.#hr()],this.#we(),this.#D()}#Tr(){this.#De=[this.#hr()],this.#we(),this.#Yn("clear")}#jr(t){const e=t.target.closest(Qb);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#De=this.#De.map(e=>e.id===i?t.detail.value:e),this.#Cr(),this.#D()}#Dr(t){const e=t.target.closest(Qb);if(!e)return;const i=e.dataset.rowId;this.#De=this.#De.filter(t=>t.id!==i),this.#zr(),this.#we(),this.#D()}#Yn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Er({column:t,operator:e}){const i=this.#Mr.find(e=>e.id===t);return i&&Ob(i.inputType,i.operators,Ub(this,"operators-catalog")).find(t=>t.id===e)||null}#kr(t){const e=this.#Er(t);return e?{...null!=e.prefix&&{prefix:e.prefix},...null!=e.suffix&&{suffix:e.suffix}}:{}}#D(){const t=t=>({column:t.column,operator:t.operator,value:t.value,...this.#kr(t)}),e=this.#De.filter(Vb).map(t),i=this.#De.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Yn("change",{value:e,rows:i})}get value(){return JSON.stringify(this.#De)}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"}#Or(){this.#br.textContent=this.addButtonLabel}#Vr(){this.#Nr.textContent=this.clearAllButtonLabel}#Wr(t){if(t)try{const e=JSON.parse(t);this.#De=(Array.isArray(e)?e:[]).map(t=>{const e=this.#Er(t);return{...t,id:t.id||this.#pr(),...e&&{noValue:!!e.noValue}}}),this.#zr(),this.#we()}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&(this.#vr(),this.#we()),"value"===t&&this.#Wr(i),"add-button-label"===t&&this.#Or(),"clear-all-button-label"===t&&this.#Vr(),"max-rows"===t&&this.#fr())}})(bt({componentName:qb,baseSelector:".container"})),oN=L("filter"),nN=bt({componentName:oN,baseSelector:"vaadin-popover"}),rN=["add-row-icon","delete-row-icon"],{host:sN,overlay:aN,backdrop:lN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},dN=j(ut({mappings:{hostWidth:{...sN,property:"width"},hostDirection:[{...sN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>iN.componentName,property:iN.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:()=>my.componentName,property:my.cssVarList.offsetX},counterOffsetY:{selector:()=>my.componentName,property:my.cssVarList.offsetY},rowsHostWidth:{selector:()=>iN.componentName,property:iN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>iN.componentName,property:iN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>iN.componentName,property:iN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>iN.componentName,property:iN.cssVarList.containerGap},rowsListGap:{selector:()=>iN.componentName,property:iN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>iN.componentName,property:iN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>iN.componentName,property:iN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>iN.componentName,property:iN.cssVarList.addRowIconSize},rowWidth:{...sN,property:$b.cssVarList.hostWidth},rowMinWidth:{...sN,property:$b.cssVarList.hostMinWidth},rowValueWidth:{...sN,property:$b.cssVarList.inputWidth},rowGap:{...sN,property:$b.cssVarList.rowGap},rowDisabledDeleteColor:{...sN,property:$b.cssVarList.deleteDisabledIconColor}}}),kt({name:"overlay",selector:"",mappings:{marginTop:{...aN,property:"margin-top"},width:{...aN},backgroundColor:{...aN},backdropBackgroundColor:{...lN,property:"background-color"},backdropPointerEvents:{...lN,property:"pointer-events"},padding:{...aN},boxShadow:{...aN},borderRadius:{...aN},outlineWidth:{...aN},outlineColor:{...aN},outlineStyle:{...aN}}}),pt,ht)(class extends nN{#Rr=[];#Ur=!1;#ct;#W=null;#Yr=null;#Qr=null;static get observedAttributes(){return[...nN.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 ',f('\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.#Qr??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Qr}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(qb)||null}init(){super.init?.(),this.#Wo(),this.#Br(),this.#Pr(),A(this,this.triggerBtn,{includeAttrs:["button-mode","button-variant","size","full-width"],mapAttrs:{"button-mode":"mode","button-variant":"variant"}}),this.#Zr(),setTimeout(()=>{this.#it()})}#Zr(){rN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Yr?.isConnected&&Wb(this,this.#Yr,[t])})})}#Wo(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#dt(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(qb);A(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",...fb],mapAttrs:{operators:"operators-catalog"}}),this.#Fr(e),t.appendChild(e),this.#Yr=e,e.setAttribute("value",JSON.stringify(this.#Rr)),e.addEventListener("change",this.#Gr.bind(this)),e.addEventListener("clear",this.#Hr.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.#Yr&&Wb(this,this.#Yr,rN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(),t.style.setProperty("visibility","visible")},50)}#pt(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ct&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ct));const e=document.body.getBoundingClientRect(),i=this.triggerBtn.getBoundingClientRect(),o=this.overlay.getBoundingClientRect(),n=i.left-o.left,r=o.left,s=e.width-o.right;let a;a=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),r);const l=Math.round(this.getBoundingClientRect().width);this.#ct=f(`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${a}px;\n ${this.isFullWidth?`width: ${l}px; max-width: ${l}px;`:""}\n }\n `,t)}#Yn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Jr(t){this.#Ur=!0,this.setAttribute("value",JSON.stringify(Rb(t))),this.#Ur=!1}#Gr(t){const e=Rb(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Rr)&&(this.#Jr(e),this.#Yn("filter-apply",{value:this.#Rr,action:"apply"}))}#Hr(){this.#Jr([]),this.#Yn("filter-clear",{value:this.#Rr,action:"clear-all"})}#Br(){if(!this.counter)return;const t=this.#Rr.length;this.counterText.textContent=String(t),this.counter.classList.toggle("hidden",t<1||!this.isIndicatorVisible)}#Pr(){if(!this.triggerLabel)return;const t=this.getAttribute("label")||"";this.triggerLabel.textContent=t,this.triggerLabel.classList.toggle("hidden",!t)}#Fr(t){t&&this.#W&&t.setAttribute("data",JSON.stringify(this.#W))}get value(){return JSON.stringify(this.#Rr)}set value(t){this.#Jr(t)}set data(t){this.#W=Array.isArray(t)?t:null,this.filterRowsElement&&this.#W&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#W))}get data(){return this.#W}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{})}get readOnly(){return"true"===this.getAttribute("read-only")}onPopoverToggle(){this.readOnly||(this.opened?this.closePopover():this.openPopover())}openPopover(){this.setAttribute("opened","true"),this.baseElement.opened=!0}closePopover(){this.removeAttribute("opened"),this.baseElement.opened=!1}#$r(t){t&&(this.#Rr=Rb(t),this.#Br(),this.#Ur||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Rr)))}#qr(t){if(t)try{this.#W=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#W))}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("value"===t&&this.#$r(i),"data"===t&&this.#qr(i),"label"===t&&this.#Pr(),"disable-indicator"===t&&this.#Br())}}),cN=it(rp),uN="#00000020",{shadow:pN}=cN,hN=dN.cssVarList,gN={[hN.counterBorderRadius]:"50%",[hN.counterWidth]:"1.5em",[hN.counterHeight]:"1.5em",[hN.counterFontSize]:"0.5em",[hN.counterLineHeight]:"2.25em",[hN.counterBackgroundColor]:cN.colors.primary.main,[hN.counterTextColor]:cN.colors.primary.contrast,[hN.counterOffsetX]:"-0.725em",[hN.counterOffsetY]:"0",_fullWidth:{[hN.hostWidth]:"100%"},[hN.overlay.backgroundColor]:cN.colors.surface.main,[hN.overlay.backdropBackgroundColor]:"transparent",[hN.overlay.backdropPointerEvents]:"all",[hN.overlay.boxShadow]:`${pN.wide.xl} ${uN}, ${pN.narrow.xl} ${uN}`,[hN.overlay.borderRadius]:rp.radius.xs,[hN.overlay.outlineWidth]:"0",[hN.overlay.outlineColor]:"transparent",[hN.overlay.outlineStyle]:"none",[hN.overlay.padding]:"0",[hN.rowsHostWidth]:"100%",[hN.rowsContainerWidth]:"100%",[hN.rowsContainerPadding]:cN.spacing.lg,[hN.rowsContainerGap]:cN.spacing.md,[hN.rowsListGap]:cN.spacing.sm,[hN.rowsListMaxHeight]:"400px",[hN.rowsActionsGap]:cN.spacing.md,[hN.rowsAddRowIconSize]:"1.25em",[hN.rowWidth]:"100%",[hN.rowMinWidth]:"30em",[hN.rowValueWidth]:"100%",[hN.rowGap]:cN.spacing.md,[hN.rowDisabledDeleteColor]:cN.colors.surface.light};var MN=Object.freeze({__proto__:null,default:gN,vars:hN});const mN=Kt("input-wrapper"),yN=Ce(tp),[bN,NN,IN]=Ve({labelTextColor:yN.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:yN.colors.surface.contrast,placeholderTextColor:yN.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:yN.colors.surface.dark,errorMessageTextColor:yN.colors.error.main,successMessageTextColor:yN.colors.success.main,borderWidth:yN.border.xs,borderRadius:yN.radius.xs,borderColor:"transparent",outlineWidth:yN.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:yN.colors.surface.main,fontFamily:yN.fonts.font1.family,direction:yN.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:yN.border.xs,borderColor:yN.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:yN.colors.error.main}},_focused:{outlineColor:yN.colors.surface.light,_invalid:{outlineColor:yN.colors.error.main}},_disabled:{labelTextColor:yN.colors.surface.light,borderColor:yN.colors.surface.light,valueTextColor:yN.colors.surface.light,placeholderTextColor:yN.colors.surface.light,helperTextColor:yN.colors.surface.light,backgroundColor:yN.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},mN);var xN=Object.freeze({__proto__:null,default:bN,refs:NN,vars:IN});const TN=Ce(tp),jN=ps.cssVarList,DN={[jN.hostWidth]:NN.width,[jN.hostMinWidth]:NN.minWidth,[jN.hostDirection]:NN.direction,[jN.fontSize]:NN.fontSize,[jN.fontFamily]:NN.fontFamily,[jN.labelFontSize]:NN.labelFontSize,[jN.labelFontWeight]:NN.labelFontWeight,[jN.inputValueFontWeight]:NN.inputValueFontWeight,[jN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[jN.helperTextFontWeight]:NN.helperTextFontWeight,[jN.errorMessageFontWeight]:NN.errorMessageFontWeight,[jN.labelTextColor]:NN.labelTextColor,[jN.errorMessageTextColor]:NN.errorMessageTextColor,[jN.inputHorizontalPadding]:NN.horizontalPadding,[jN.inputHeight]:NN.inputHeight,[jN.inputBackgroundColor]:NN.backgroundColor,[jN.labelRequiredIndicator]:NN.requiredIndicator,[jN.inputValueTextColor]:NN.valueTextColor,[jN.inputPlaceholderTextColor]:NN.placeholderTextColor,[jN.inputBorderWidth]:NN.borderWidth,[jN.inputBorderStyle]:NN.borderStyle,[jN.inputBorderColor]:NN.borderColor,[jN.inputBorderRadius]:NN.borderRadius,[jN.inputOutlineWidth]:NN.outlineWidth,[jN.inputOutlineStyle]:NN.outlineStyle,[jN.inputOutlineColor]:NN.outlineColor,[jN.inputOutlineOffset]:NN.outlineOffset,[jN.revealButtonOffset]:TN.spacing.md,[jN.revealButtonSize]:NN.toggleButtonSize,[jN.revealButtonColor]:NN.placeholderTextColor,[jN.labelPosition]:NN.labelPosition,[jN.labelTopPosition]:NN.labelTopPosition,[jN.labelHorizontalPosition]:NN.labelHorizontalPosition,[jN.inputTransformY]:NN.inputTransformY,[jN.inputTransition]:NN.inputTransition,[jN.marginInlineStart]:NN.marginInlineStart,[jN.placeholderOpacity]:NN.placeholderOpacity,[jN.inputVerticalAlignment]:NN.inputVerticalAlignment,[jN.valueInputHeight]:NN.valueInputHeight,[jN.errorMessageIcon]:NN.errorMessageIcon,[jN.errorMessageIconSize]:NN.errorMessageIconSize,[jN.errorMessageIconPadding]:NN.errorMessageIconPadding,[jN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[jN.errorMessageIconPosition]:NN.errorMessageIconPosition,[jN.errorMessageFontSize]:NN.errorMessageFontSize};var vN=Object.freeze({__proto__:null,default:DN,vars:jN});const zN=fr.cssVarList,CN={[zN.hostWidth]:NN.width,[zN.hostMinWidth]:NN.minWidth,[zN.hostDirection]:NN.direction,[zN.fontSize]:NN.fontSize,[zN.fontFamily]:NN.fontFamily,[zN.labelFontSize]:NN.labelFontSize,[zN.labelFontWeight]:NN.labelFontWeight,[zN.inputValueFontWeight]:NN.inputValueFontWeight,[zN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[zN.helperTextFontWeight]:NN.helperTextFontWeight,[zN.errorMessageFontWeight]:NN.errorMessageFontWeight,[zN.labelTextColor]:NN.labelTextColor,[zN.errorMessageTextColor]:NN.errorMessageTextColor,[zN.inputValueTextColor]:NN.valueTextColor,[zN.inputPlaceholderColor]:NN.placeholderTextColor,[zN.inputBorderWidth]:NN.borderWidth,[zN.inputBorderStyle]:NN.borderStyle,[zN.inputBorderColor]:NN.borderColor,[zN.inputBorderRadius]:NN.borderRadius,[zN.inputOutlineWidth]:NN.outlineWidth,[zN.inputOutlineStyle]:NN.outlineStyle,[zN.inputOutlineColor]:NN.outlineColor,[zN.inputOutlineOffset]:NN.outlineOffset,[zN.inputBackgroundColor]:NN.backgroundColor,[zN.labelRequiredIndicator]:NN.requiredIndicator,[zN.inputHorizontalPadding]:NN.horizontalPadding,[zN.inputHeight]:NN.inputHeight,[zN.labelPosition]:NN.labelPosition,[zN.labelTopPosition]:NN.labelTopPosition,[zN.labelHorizontalPosition]:NN.labelHorizontalPosition,[zN.inputTransformY]:NN.inputTransformY,[zN.inputTransition]:NN.inputTransition,[zN.marginInlineStart]:NN.marginInlineStart,[zN.placeholderOpacity]:NN.placeholderOpacity,[zN.inputVerticalAlignment]:NN.inputVerticalAlignment,[zN.valueInputHeight]:NN.valueInputHeight,[zN.valueInputMarginBottom]:NN.valueInputMarginBottom,[zN.errorMessageIcon]:NN.errorMessageIcon,[zN.errorMessageIconSize]:NN.errorMessageIconSize,[zN.errorMessageIconPadding]:NN.errorMessageIconPadding,[zN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[zN.errorMessageIconPosition]:NN.errorMessageIconPosition,[zN.errorMessageFontSize]:NN.errorMessageFontSize};var SN=Object.freeze({__proto__:null,default:CN,vars:zN});const LN=jr.cssVarList,wN={[LN.hostWidth]:NN.width,[LN.hostMinWidth]:NN.minWidth,[LN.hostDirection]:NN.direction,[LN.fontSize]:NN.fontSize,[LN.fontFamily]:NN.fontFamily,[LN.labelFontSize]:NN.labelFontSize,[LN.labelFontWeight]:NN.labelFontWeight,[LN.inputValueFontWeight]:NN.inputValueFontWeight,[LN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[LN.helperTextFontWeight]:NN.helperTextFontWeight,[LN.errorMessageFontWeight]:NN.errorMessageFontWeight,[LN.labelTextColor]:NN.labelTextColor,[LN.errorMessageTextColor]:NN.errorMessageTextColor,[LN.inputValueTextColor]:NN.valueTextColor,[LN.labelRequiredIndicator]:NN.requiredIndicator,[LN.inputPlaceholderColor]:NN.placeholderTextColor,[LN.inputBorderWidth]:NN.borderWidth,[LN.inputBorderStyle]:NN.borderStyle,[LN.inputBorderColor]:NN.borderColor,[LN.inputBorderRadius]:NN.borderRadius,[LN.inputOutlineWidth]:NN.outlineWidth,[LN.inputOutlineStyle]:NN.outlineStyle,[LN.inputOutlineColor]:NN.outlineColor,[LN.inputOutlineOffset]:NN.outlineOffset,[LN.inputBackgroundColor]:NN.backgroundColor,[LN.inputHorizontalPadding]:NN.horizontalPadding,[LN.inputHeight]:NN.inputHeight,[LN.labelPosition]:NN.labelPosition,[LN.labelTopPosition]:NN.labelTopPosition,[LN.labelHorizontalPosition]:NN.labelHorizontalPosition,[LN.inputTransformY]:NN.inputTransformY,[LN.inputTransition]:NN.inputTransition,[LN.marginInlineStart]:NN.marginInlineStart,[LN.placeholderOpacity]:NN.placeholderOpacity,[LN.inputVerticalAlignment]:NN.inputVerticalAlignment,[LN.valueInputHeight]:NN.valueInputHeight,[LN.valueInputMarginBottom]:NN.valueInputMarginBottom,[LN.errorMessageIcon]:NN.errorMessageIcon,[LN.errorMessageIconSize]:NN.errorMessageIconSize,[LN.errorMessageIconPadding]:NN.errorMessageIconPadding,[LN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[LN.errorMessageIconPosition]:NN.errorMessageIconPosition,[LN.errorMessageFontSize]:NN.errorMessageFontSize};var AN=Object.freeze({__proto__:null,default:wN,vars:LN});const fN=Ts.cssVarList,EN={[fN.hostWidth]:NN.width,[fN.hostMinWidth]:NN.minWidth,[fN.hostDirection]:NN.direction,[fN.fontSize]:NN.fontSize,[fN.fontFamily]:NN.fontFamily,[fN.labelFontSize]:NN.labelFontSize,[fN.labelFontWeight]:NN.labelFontWeight,[fN.inputValueFontWeight]:NN.inputValueFontWeight,[fN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[fN.helperTextFontWeight]:NN.helperTextFontWeight,[fN.errorMessageFontWeight]:NN.errorMessageFontWeight,[fN.labelTextColor]:NN.labelTextColor,[fN.labelRequiredIndicator]:NN.requiredIndicator,[fN.errorMessageTextColor]:NN.errorMessageTextColor,[fN.inputBackgroundColor]:NN.backgroundColor,[fN.inputValueTextColor]:NN.valueTextColor,[fN.inputPlaceholderTextColor]:NN.placeholderTextColor,[fN.inputBorderRadius]:NN.borderRadius,[fN.inputBorderWidth]:NN.borderWidth,[fN.inputBorderStyle]:NN.borderStyle,[fN.inputBorderColor]:NN.borderColor,[fN.inputOutlineWidth]:NN.outlineWidth,[fN.inputOutlineStyle]:NN.outlineStyle,[fN.inputOutlineColor]:NN.outlineColor,[fN.inputOutlineOffset]:NN.outlineOffset,[fN.inputResizeType]:"vertical",[fN.inputMinHeight]:"5em",[fN.errorMessageIcon]:NN.errorMessageIcon,[fN.errorMessageIconSize]:NN.errorMessageIconSize,[fN.errorMessageIconPadding]:NN.errorMessageIconPadding,[fN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[fN.errorMessageIconPosition]:NN.errorMessageIconPosition,[fN.errorMessageFontSize]:NN.errorMessageFontSize,textAlign:{right:{[fN.inputTextAlign]:"right"},left:{[fN.inputTextAlign]:"left"},center:{[fN.inputTextAlign]:"center"}},_readonly:{[fN.inputResizeType]:"none"}};var kN=Object.freeze({__proto__:null,default:EN,vars:fN});const ON=zi.cssVarList,VN="1.35em",WN={[ON.hostWidth]:NN.width,[ON.hostDirection]:NN.direction,[ON.fontSize]:NN.fontSize,[ON.fontFamily]:NN.fontFamily,[ON.labelTextColor]:NN.labelTextColor,[ON.labelRequiredIndicator]:NN.requiredIndicator,[ON.labelFontWeight]:"400",[ON.labelLineHeight]:VN,[ON.labelSpacing]:"1em",[ON.errorMessageTextColor]:NN.errorMessageTextColor,[ON.inputOutlineWidth]:NN.outlineWidth,[ON.inputOutlineOffset]:NN.outlineOffset,[ON.inputOutlineColor]:NN.outlineColor,[ON.inputOutlineStyle]:NN.outlineStyle,[ON.inputBorderRadius]:NN.borderRadius,[ON.inputBorderColor]:NN.borderColor,[ON.inputBorderWidth]:NN.borderWidth,[ON.inputBorderStyle]:NN.borderStyle,[ON.inputBackgroundColor]:NN.backgroundColor,[ON.inputSize]:VN,[ON.inputValueTextColor]:NN.valueTextColor,[ON.errorMessageIcon]:NN.errorMessageIcon,[ON.errorMessageIconSize]:NN.errorMessageIconSize,[ON.errorMessageIconPadding]:NN.errorMessageIconPadding,[ON.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[ON.errorMessageIconPosition]:NN.errorMessageIconPosition,[ON.errorMessageFontSize]:NN.errorMessageFontSize};var RN=Object.freeze({__proto__:null,default:WN,vars:ON});const UN="2px",YN=Ce(tp),QN=qi.cssVarList,BN={[QN.hostWidth]:NN.width,[QN.hostDirection]:NN.direction,[QN.fontSize]:NN.fontSize,[QN.fontFamily]:NN.fontFamily,[QN.inputOutlineWidth]:NN.outlineWidth,[QN.inputOutlineOffset]:NN.outlineOffset,[QN.inputOutlineColor]:NN.outlineColor,[QN.inputOutlineStyle]:NN.outlineStyle,[QN.trackBorderStyle]:NN.borderStyle,[QN.trackBorderWidth]:NN.borderWidth,[QN.trackBorderColor]:NN.borderColor,[QN.trackBackgroundColor]:NN.backgroundColor,[QN.trackBorderRadius]:YN.radius.md,[QN.trackWidth]:"2.5em",[QN.trackHeight]:"1.25em",[QN.knobSize]:`calc(1em - ${UN})`,[QN.knobRadius]:"50%",[QN.knobTopOffset]:"1px",[QN.knobLeftOffset]:UN,[QN.knobColor]:NN.labelTextColor,[QN.knobTransitionDuration]:"0.3s",[QN.labelTextColor]:NN.labelTextColor,[QN.labelFontWeight]:"400",[QN.labelLineHeight]:"1.35em",[QN.labelSpacing]:"1em",[QN.labelRequiredIndicator]:NN.requiredIndicator,[QN.errorMessageTextColor]:NN.errorMessageTextColor,[QN.errorMessageIcon]:NN.errorMessageIcon,[QN.errorMessageIconSize]:NN.errorMessageIconSize,[QN.errorMessageIconPadding]:NN.errorMessageIconPadding,[QN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[QN.errorMessageIconPosition]:NN.errorMessageIconPosition,[QN.errorMessageFontSize]:NN.errorMessageFontSize,_checked:{[QN.trackBorderColor]:NN.borderColor,[QN.knobLeftOffset]:`calc(100% - var(${QN.knobSize}) - ${UN})`,[QN.knobColor]:NN.valueTextColor,[QN.knobTextColor]:NN.valueTextColor},_disabled:{[QN.knobColor]:YN.colors.surface.light,[QN.trackBorderColor]:YN.colors.surface.light,[QN.trackBackgroundColor]:YN.colors.surface.main,[QN.labelTextColor]:NN.labelTextColor,_checked:{[QN.knobColor]:YN.colors.surface.light,[QN.trackBackgroundColor]:YN.colors.surface.main}},_invalid:{[QN.trackBorderColor]:YN.colors.error.main,[QN.knobColor]:YN.colors.error.main}};var PN=Object.freeze({__proto__:null,default:BN,vars:QN});const ZN=Ce(tp),FN=ao.cssVarList,[GN,HN,JN]=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:$N}=HN,qN={...GN,[FN.itemsGrow]:"0",[FN.hostWidth]:"100%",[FN.hostHeight]:"auto",[FN.boxShadow]:"none",[FN.backgroundColor]:ZN.colors.surface.main,[FN.backgroundImage]:"",[FN.backgroundPositionX]:"center",[FN.backgroundPositionY]:"center",[FN.backgroundSize]:"cover",[FN.backgroundRepeat]:"no-repeat",[FN.color]:ZN.colors.surface.contrast,[FN.borderRadius]:"0px",[FN.hostDirection]:ZN.direction,[FN.borderStyle]:"none",[FN.borderWidth]:"unset",[FN.borderColor]:"unset",verticalPadding:{sm:{[FN.verticalPadding]:"5px"},md:{[FN.verticalPadding]:"10px"},lg:{[FN.verticalPadding]:"20px"}},horizontalPadding:{sm:{[FN.horizontalPadding]:"5px"},md:{[FN.horizontalPadding]:"10px"},lg:{[FN.horizontalPadding]:"20px"}},direction:{row:{[FN.flexDirection]:"row",[FN.alignItems]:HN.verticalAlignment,[FN.justifyContent]:HN.horizontalAlignment,[FN.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[JN.horizontalAlignment]:"space-between"}}},column:{[FN.flexDirection]:"column",[FN.alignItems]:HN.horizontalAlignment,[FN.justifyContent]:HN.verticalAlignment,verticalAlignment:{spaceBetween:{[JN.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[FN.gap]:"10px"},md:{[FN.gap]:"20px"},lg:{[FN.gap]:"30px"}},shadow:{sm:{[FN.boxShadow]:`${ZN.shadow.wide.sm} ${$N}, ${ZN.shadow.narrow.sm} ${$N}`},md:{[FN.boxShadow]:`${ZN.shadow.wide.md} ${$N}, ${ZN.shadow.narrow.md} ${$N}`},lg:{[FN.boxShadow]:`${ZN.shadow.wide.lg} ${$N}, ${ZN.shadow.narrow.lg} ${$N}`},xl:{[FN.boxShadow]:`${ZN.shadow.wide.xl} ${$N}, ${ZN.shadow.narrow.xl} ${$N}`},"2xl":{[JN.shadowColor]:"#00000050",[FN.boxShadow]:`${ZN.shadow.wide["2xl"]} ${$N}`}},"&borderRadius":{sm:{[FN.borderRadius]:ZN.radius.sm},md:{[FN.borderRadius]:ZN.radius.md},lg:{[FN.borderRadius]:ZN.radius.lg},xl:{[FN.borderRadius]:ZN.radius.xl},"2xl":{[FN.borderRadius]:ZN.radius["2xl"]},"3xl":{[FN.borderRadius]:ZN.radius["3xl"]}}},_N={...FN,...JN};var XN=Object.freeze({__proto__:null,default:qN,vars:_N});const KN=zr.cssVarList,tI={[KN.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var eI=Object.freeze({__proto__:null,default:tI,vars:KN});const iI=Sr.cssVarList,oI={[iI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var nI=Object.freeze({__proto__:null,default:oI,vars:iI});const rI=wr.cssVarList,sI={[rI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var aI=Object.freeze({__proto__:null,default:sI,vars:rI});const lI=Ce(tp),dI=Ir.cssVarList,[cI,uI,pI]=Ve({thickness:"2px",spacing:"10px"},hr),hI={...cI,[dI.hostDirection]:lI.direction,[dI.alignItems]:"center",[dI.flexDirection]:"row",[dI.alignSelf]:"stretch",[dI.hostWidth]:"100%",[dI.stripeColor]:lI.colors.surface.light,[dI.stripeColorOpacity]:"0.5",[dI.stripeHorizontalThickness]:uI.thickness,[dI.labelTextWidth]:"fit-content",[dI.labelTextMaxWidth]:"calc(100% - 100px)",[dI.labelTextHorizontalSpacing]:uI.spacing,[dI.textAlign]:"center",_vertical:{[dI.minHeight]:"200px",[dI.flexDirection]:"column",[dI.hostWidth]:"fit-content",[dI.hostPadding]:`0 calc(${uI.thickness} * 3)`,[dI.stripeVerticalThickness]:uI.thickness,[dI.labelTextWidth]:"fit-content",[dI.labelTextMaxWidth]:"100%",[dI.labelTextVerticalSpacing]:uI.spacing}},gI={...dI,...pI};var MI=Object.freeze({__proto__:null,default:hI,vars:gI});const mI=ts.cssVarList,yI={[mI.hostDirection]:NN.direction,[mI.fontFamily]:NN.fontFamily,[mI.fontSize]:NN.fontSize,[mI.labelTextColor]:NN.labelTextColor,[mI.labelRequiredIndicator]:NN.requiredIndicator,[mI.labelFontWeight]:NN.labelFontWeight,[mI.errorMessageTextColor]:NN.errorMessageTextColor,[mI.errorMessageFontWeight]:NN.errorMessageFontWeight,[mI.digitValueTextColor]:NN.valueTextColor,[mI.digitValueFontWeight]:NN.inputValueFontWeight,[mI.digitPadding]:"0",[mI.digitTextAlign]:"center",[mI.digitSpacing]:"4px",[mI.hostWidth]:NN.width,[mI.digitOutlineColor]:"transparent",[mI.digitOutlineWidth]:NN.outlineWidth,[mI.focusedDigitFieldOutlineColor]:NN.outlineColor,[mI.digitSize]:NN.inputHeight,[mI.errorMessageIcon]:NN.errorMessageIcon,[mI.errorMessageIconSize]:NN.errorMessageIconSize,[mI.errorMessageIconPadding]:NN.errorMessageIconPadding,[mI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[mI.errorMessageIconPosition]:NN.errorMessageIconPosition,[mI.errorMessageFontSize]:NN.errorMessageFontSize,size:{xs:{[mI.spinnerSize]:"15px"},sm:{[mI.spinnerSize]:"20px"},md:{[mI.spinnerSize]:"20px"},lg:{[mI.spinnerSize]:"20px"}},_hideCursor:{[mI.digitCaretTextColor]:"transparent"},_loading:{[mI.overlayOpacity]:NN.overlayOpacity}};var bI=Object.freeze({__proto__:null,default:yI,vars:mI});const NI=Ce(tp),II=eo.cssVarList,xI={[II.hostDisplay]:"inline-block",[II.hostWidth]:"100%",[II.barColor]:NI.colors.surface.contrast,[II.barWidth]:"20%",[II.barBackgroundColor]:NI.colors.surface.light,[II.barBorderRadius]:"4px",[II.animationDuration]:"2s",[II.animationTimingFunction]:"linear",[II.animationIterationCount]:"infinite",[II.verticalPadding]:"0.25em",size:{xs:{[II.barHeight]:"2px"},sm:{[II.barHeight]:"4px"},md:{[II.barHeight]:"6px"},lg:{[II.barHeight]:"8px"}},mode:{primary:{[II.barColor]:NI.colors.primary.main},secondary:{[II.barColor]:NI.colors.secondary.main}},_hidden:{[II.hostDisplay]:"none"}};var TI=Object.freeze({__proto__:null,default:xI,vars:II});const jI=Ce(tp),DI=no.cssVarList,[vI,zI,CI]=Ve({spinnerColor:jI.colors.surface.contrast,mode:{primary:{spinnerColor:jI.colors.primary.main},secondary:{spinnerColor:jI.colors.secondary.main}}},io),SI={...vI,[DI.animationDuration]:"2s",[DI.animationTimingFunction]:"linear",[DI.animationIterationCount]:"infinite",[DI.spinnerBorderStyle]:"solid",[DI.spinnerBorderWidth]:"0.2em",[DI.spinnerBorderRadius]:"50%",[DI.spinnerQuadrant1Color]:zI.spinnerColor,[DI.spinnerQuadrant2Color]:"transparent",[DI.spinnerQuadrant3Color]:zI.spinnerColor,[DI.spinnerQuadrant4Color]:"transparent",size:{xs:{[DI.spinnerSize]:"20px"},sm:{[DI.spinnerSize]:"30px"},md:{[DI.spinnerSize]:"40px"},lg:{[DI.spinnerSize]:"60px"},xl:{[DI.spinnerSize]:"80px"}},_hidden:{[DI.hostDisplay]:"none"}},LI={...DI,...CI};var wI=Object.freeze({__proto__:null,default:SI,vars:LI});const AI=Gs.cssVarList,fI={[AI.hostWidth]:NN.width,[AI.hostDirection]:NN.direction,[AI.fontSize]:NN.fontSize,[AI.fontFamily]:NN.fontFamily,[AI.labelFontSize]:NN.labelFontSize,[AI.labelFontWeight]:NN.labelFontWeight,[AI.inputValueFontWeight]:NN.inputValueFontWeight,[AI.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[AI.helperTextFontWeight]:NN.helperTextFontWeight,[AI.errorMessageFontWeight]:NN.errorMessageFontWeight,[AI.labelTextColor]:NN.labelTextColor,[AI.labelRequiredIndicator]:NN.requiredIndicator,[AI.errorMessageTextColor]:NN.errorMessageTextColor,[AI.inputValueTextColor]:NN.valueTextColor,[AI.inputPlaceholderTextColor]:NN.placeholderTextColor,[AI.inputBorderStyle]:NN.borderStyle,[AI.inputBorderWidth]:NN.borderWidth,[AI.inputBorderColor]:NN.borderColor,[AI.inputBorderRadius]:NN.borderRadius,[AI.inputOutlineStyle]:NN.outlineStyle,[AI.inputOutlineWidth]:NN.outlineWidth,[AI.inputOutlineColor]:NN.outlineColor,[AI.inputOutlineOffset]:NN.outlineOffset,[AI.phoneInputWidth]:NN.minWidth,[AI.countryCodeInputWidth]:"5em",[AI.countryCodeDropdownWidth]:"20em",[AI.marginInlineStart]:"-0.25em",[AI.valueInputHeight]:NN.valueInputHeight,[AI.valueInputMarginBottom]:NN.valueInputMarginBottom,[AI.errorMessageIcon]:NN.errorMessageIcon,[AI.errorMessageIconSize]:NN.errorMessageIconSize,[AI.errorMessageIconPadding]:NN.errorMessageIconPadding,[AI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[AI.errorMessageIconPosition]:NN.errorMessageIconPosition,[AI.errorMessageFontSize]:NN.errorMessageFontSize};var EI=Object.freeze({__proto__:null,default:fI,vars:AI});const kI=da.cssVarList,OI={[kI.hostWidth]:"16em",[kI.hostMinWidth]:NN.minWidth,[kI.hostDirection]:NN.direction,[kI.fontSize]:NN.fontSize,[kI.fontFamily]:NN.fontFamily,[kI.labelFontSize]:NN.labelFontSize,[kI.labelFontWeight]:NN.labelFontWeight,[kI.inputValueFontWeight]:NN.inputValueFontWeight,[kI.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[kI.helperTextFontWeight]:NN.helperTextFontWeight,[kI.errorMessageFontWeight]:NN.errorMessageFontWeight,[kI.labelTextColor]:NN.labelTextColor,[kI.labelRequiredIndicator]:NN.requiredIndicator,[kI.errorMessageTextColor]:NN.errorMessageTextColor,[kI.inputValueTextColor]:NN.valueTextColor,[kI.inputPlaceholderTextColor]:NN.placeholderTextColor,[kI.inputBorderStyle]:NN.borderStyle,[kI.inputBorderWidth]:NN.borderWidth,[kI.inputBorderColor]:NN.borderColor,[kI.inputBorderRadius]:NN.borderRadius,[kI.inputOutlineStyle]:NN.outlineStyle,[kI.inputOutlineWidth]:NN.outlineWidth,[kI.inputOutlineColor]:NN.outlineColor,[kI.inputOutlineOffset]:NN.outlineOffset,[kI.labelPosition]:NN.labelPosition,[kI.labelTopPosition]:NN.labelTopPosition,[kI.labelHorizontalPosition]:NN.labelHorizontalPosition,[kI.inputTransformY]:NN.inputTransformY,[kI.inputTransition]:NN.inputTransition,[kI.marginInlineStart]:NN.marginInlineStart,[kI.valueInputHeight]:NN.valueInputHeight,[kI.valueInputMarginBottom]:NN.valueInputMarginBottom,[kI.inputHorizontalPadding]:"0",[kI.errorMessageIcon]:NN.errorMessageIcon,[kI.errorMessageIconSize]:NN.errorMessageIconSize,[kI.errorMessageIconPadding]:NN.errorMessageIconPadding,[kI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[kI.errorMessageIconPosition]:NN.errorMessageIconPosition,[kI.errorMessageFontSize]:NN.errorMessageFontSize,_fullWidth:{[kI.hostWidth]:NN.width}};var VI=Object.freeze({__proto__:null,default:OI,vars:kI});const WI=Ce(tp),RI=Aa.cssVarList,UI={[RI.hostWidth]:NN.width,[RI.hostMinWidth]:NN.minWidth,[RI.hostDirection]:NN.direction,[RI.fontSize]:NN.fontSize,[RI.fontFamily]:NN.fontFamily,[RI.labelFontSize]:NN.labelFontSize,[RI.labelFontWeight]:NN.labelFontWeight,[RI.inputValueFontWeight]:NN.inputValueFontWeight,[RI.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[RI.helperTextFontWeight]:NN.helperTextFontWeight,[RI.errorMessageFontWeight]:NN.errorMessageFontWeight,[RI.labelTextColor]:NN.labelTextColor,[RI.spaceBetweenInputs]:"1em",[RI.errorMessageTextColor]:NN.errorMessageTextColor,[RI.policyPreviewBackgroundColor]:"none",[RI.policyPreviewPadding]:WI.spacing.lg,[RI.valueInputHeight]:NN.valueInputHeight,[RI.errorMessageIcon]:NN.errorMessageIcon,[RI.errorMessageIconSize]:NN.errorMessageIconSize,[RI.errorMessageIconPadding]:NN.errorMessageIconPadding,[RI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[RI.errorMessageIconPosition]:NN.errorMessageIconPosition,[RI.errorMessageFontSize]:NN.errorMessageFontSize,_required:{[RI.inputsRequiredIndicator]:NN.requiredIndicator}};var YI=Object.freeze({__proto__:null,default:UI,vars:RI});const QI=il.cssVarList,BI={[QI.hostDirection]:NN.direction,[QI.labelTextColor]:NN.labelTextColor,[QI.fontFamily]:NN.fontFamily,[QI.iconSize]:"2em",[QI.hostPadding]:"0.75em",[QI.gap]:"0.5em",[QI.fontSize]:"16px",[QI.titleFontWeight]:"500",[QI.lineHeight]:"1em",[QI.borderWidth]:NN.borderWidth,[QI.borderColor]:NN.borderColor,[QI.borderRadius]:NN.borderRadius,[QI.borderStyle]:"dashed",_required:{[QI.requiredIndicator]:NN.requiredIndicator},size:{xs:{[QI.hostHeight]:"196px",[QI.hostWidth]:"200px",[QI.titleFontSize]:"0.875em",[QI.descriptionFontSize]:"0.875em",[QI.lineHeight]:"1.25em"},sm:{[QI.hostHeight]:"216px",[QI.hostWidth]:"230px",[QI.titleFontSize]:"1em",[QI.descriptionFontSize]:"0.875em",[QI.lineHeight]:"1.25em"},md:{[QI.hostHeight]:"256px",[QI.hostWidth]:"312px",[QI.titleFontSize]:"1.125em",[QI.descriptionFontSize]:"1em",[QI.lineHeight]:"1.5em"},lg:{[QI.hostHeight]:"280px",[QI.hostWidth]:"336px",[QI.titleFontSize]:"1.125em",[QI.descriptionFontSize]:"1.125em",[QI.lineHeight]:"1.75em"}},_fullWidth:{[QI.hostWidth]:NN.width}};var PI=Object.freeze({__proto__:null,default:BI,vars:QI});const ZI=Ce(tp),FI=bl.cssVarList,GI={[FI.hostDirection]:"inherit",[FI.backgroundColor]:ZI.colors.surface.main,[FI.labelTextColor]:ZI.colors.surface.contrast,[FI.borderColor]:ZI.colors.surface.light,[FI.borderStyle]:"solid",[FI.borderRadius]:ZI.radius.sm,[FI.outlineColor]:"transparent",[FI.borderWidth]:ZI.border.xs,_hover:{[FI.backgroundColor]:ZI.colors.surface.highlight},_focused:{[FI.outlineColor]:ZI.colors.surface.light},_selected:{[FI.borderColor]:ZI.colors.surface.contrast,[FI.backgroundColor]:ZI.colors.surface.contrast,[FI.labelTextColor]:ZI.colors.surface.main}};var HI=Object.freeze({__proto__:null,default:GI,vars:FI});const JI=Ce(tp),$I=t=>({[t.hostDirection]:NN.direction,[t.fontFamily]:NN.fontFamily,[t.labelTextColor]:NN.labelTextColor,[t.labelRequiredIndicator]:NN.requiredIndicator,[t.itemsSpacing]:JI.spacing.sm,[t.hostWidth]:NN.width,[t.errorMessageTextColor]:NN.errorMessageTextColor,[t.errorMessageIcon]:NN.errorMessageIcon,[t.errorMessageIconSize]:NN.errorMessageIconSize,[t.errorMessageIconPadding]:NN.errorMessageIconPadding,[t.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[t.errorMessageIconPosition]:NN.errorMessageIconPosition,[t.errorMessageFontSize]:NN.errorMessageFontSize}),qI=Ml.cssVarList,_I={...$I(qI)};var XI=Object.freeze({__proto__:null,default:_I,vars:qI});const KI=Tl.cssVarList,tx={...$I(KI)};var ex=Object.freeze({__proto__:null,default:tx,vars:KI});const ix=Ce(tp),ox=nc.cssVarList,nx={[ox.overlayBackgroundColor]:ix.colors.surface.main,[ox.overlayShadow]:ix.shadow.wide["2xl"],[ox.overlayWidth]:"540px",[ox.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},rx={...ox};var sx=Object.freeze({__proto__:null,default:nx,vars:rx});const ax=Ce(tp),lx=ec.cssVarList,dx={[lx.hostWidth]:"100%",[lx.hostHeight]:"100%",[lx.hostMinHeight]:"400px",[lx.fontWeight]:"400",[lx.backgroundColor]:ax.colors.surface.main,[lx.fontSize]:NN.fontSize,[lx.fontFamily]:NN.fontFamily,[lx.sortIndicatorsColor]:ax.colors.surface.light,[lx.activeSortIndicator]:ax.colors.surface.dark,[lx.resizeHandleColor]:ax.colors.surface.light,[lx.borderWidth]:NN.borderWidth,[lx.borderStyle]:NN.borderStyle,[lx.borderRadius]:NN.borderRadius,[lx.borderColor]:"transparent",[lx.headerRowTextColor]:ax.colors.surface.dark,[lx.separatorColor]:ax.colors.surface.light,[lx.valueTextColor]:ax.colors.surface.contrast,[lx.selectedBackgroundColor]:ax.colors.surface.highlight,[lx.hostDirection]:ax.direction,[lx.toggleDetailsPanelButtonSize]:"1em",[lx.toggleDetailsPanelButtonOpenedColor]:ax.colors.surface.contrast,[lx.toggleDetailsPanelButtonClosedColor]:ax.colors.surface.light,[lx.toggleDetailsPanelButtonCursor]:"pointer",[lx.detailsPanelBackgroundColor]:ax.colors.surface.highlight,[lx.detailsPanelBorderTopColor]:ax.colors.surface.light,[lx.detailsPanelLabelsColor]:ax.colors.surface.dark,[lx.detailsPanelLabelsFontSize]:"0.8em",[lx.detailsPanelItemsGap]:"2em",[lx.detailsPanelPadding]:"12px 0",_bordered:{[lx.borderColor]:NN.borderColor}};var cx=Object.freeze({__proto__:null,default:dx,grid:dx,vars:lx});const ux=Ce(tp),px=lc.cssVarList,hx="#00000020",gx={[px.hostMinWidth]:"415px",[px.fontFamily]:ux.fonts.font1.family,[px.fontSize]:ux.typography.body1.size,[px.backgroundColor]:ux.colors.surface.main,[px.textColor]:ux.colors.surface.contrast,[px.boxShadow]:`${ux.shadow.wide.xl} ${hx}, ${ux.shadow.narrow.xl} ${hx}`,[px.verticalPadding]:"0.625em",[px.horizontalPadding]:"1.5em",[px.borderRadius]:ux.radius.xs,_bordered:{[px.borderWidth]:ux.border.sm,[px.borderStyle]:"solid",[px.borderColor]:"transparent"},size:{xs:{[px.fontSize]:"12px"},sm:{[px.fontSize]:"14px"},md:{[px.fontSize]:"16px"},lg:{[px.fontSize]:"18px"}},mode:{primary:{[px.backgroundColor]:ux.colors.primary.main,[px.textColor]:ux.colors.primary.contrast,[px.borderColor]:ux.colors.primary.light},success:{[px.backgroundColor]:ux.colors.success.main,[px.textColor]:ux.colors.success.contrast,[px.borderColor]:ux.colors.success.light},error:{[px.backgroundColor]:ux.colors.error.main,[px.textColor]:ux.colors.error.contrast,[px.borderColor]:ux.colors.error.light}}};var Mx=Object.freeze({__proto__:null,default:gx,vars:px});const mx=Ce(tp),yx=Dc.cssVarList,bx={[yx.hostWidth]:NN.width,[yx.hostDirection]:NN.direction,[yx.fontSize]:NN.fontSize,[yx.fontFamily]:NN.fontFamily,[yx.separatorFontSize]:"14px",[yx.labelsFontSize]:"14px",[yx.labelsLineHeight]:"1",[yx.labelsMarginBottom]:"6px",[yx.labelTextColor]:NN.labelTextColor,[yx.itemMarginBottom]:"1em",[yx.valueLabelMinWidth]:NN.minWidth,[yx.attrLabelMinWidth]:`calc(12em + 2 * ${mx.border.xs})`,[yx.separatorWidth]:"70px",[yx.removeButtonWidth]:"60px"};var Nx=Object.freeze({__proto__:null,default:bx,mappingsField:bx,vars:yx});const Ix=Ce(tp),xx=Yc.cssVarList,Tx={[xx.labelMinWidth]:"150px",[xx.hostDirection]:Ix.direction,[xx.contentMinWidth]:`calc(100% - ${Oe(xx.labelMinWidth)} - ${Oe(xx.itemsGap)})`,[xx.badgeMaxWidth]:"85px",[xx.itemsGap]:"4px",[xx.hostMinWidth]:"310px",[xx.hostWidth]:"530px",[xx.hostMaxWidth]:"100%",[xx.iconColor]:"currentcolor",_fullWidth:{[xx.hostWidth]:"100%"}};var jx=Object.freeze({__proto__:null,default:Tx,vars:xx});const Dx=Ce(tp),vx=$c.cssVarList,zx={[vx.hostDirection]:Dx.direction,[vx.itemsGap]:"16px",[vx.hostMinWidth]:"310px",[vx.hostWidth]:"530px",[vx.hostMaxWidth]:"100%",[vx.iconSize]:"24px",[vx.iconColor]:"currentcolor",_fullWidth:{[vx.hostWidth]:"100%"}};var Cx=Object.freeze({__proto__:null,default:zx,vars:vx});const Sx=iu.cssVarList,Lx={[Sx.hostWidth]:NN.width,[Sx.hostDirection]:NN.direction,[Sx.groupNameInputMarginBottom]:"1em",[Sx.errorMessageIcon]:NN.errorMessageIcon,[Sx.errorMessageIconSize]:NN.errorMessageIconSize,[Sx.errorMessageIconPadding]:NN.errorMessageIconPadding,[Sx.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[Sx.errorMessageIconPosition]:NN.errorMessageIconPosition,[Sx.errorMessageFontSize]:NN.errorMessageFontSize};var wx=Object.freeze({__proto__:null,default:Lx,samlGroupMappings:Lx,vars:Sx});const Ax=Ce(tp),fx=xa.cssVarList,Ex={[fx.fontFamily]:NN.fontFamily,[fx.fontSize]:NN.labelFontSize,[fx.textColor]:NN.labelTextColor,[fx.borderWidth]:NN.borderWidth,[fx.borderStyle]:NN.borderStyle,[fx.borderColor]:NN.borderColor,[fx.borderRadius]:Ax.radius.sm,[fx.backgroundColor]:"none",[fx.padding]:"0px",[fx.labelMargin]:Ax.spacing.sm,[fx.itemsSpacing]:Ax.spacing.lg,[fx.itemSymbolDefault]:"'\\2022'",[fx.itemSymbolSuccess]:"'\\2713'",[fx.itemSymbolError]:"'\\2A09'",[fx.itemSymbolSuccessColor]:Ax.colors.success.main,[fx.itemSymbolErrorColor]:Ax.colors.error.main};var kx=Object.freeze({__proto__:null,default:Ex,vars:fx});const Ox=Ce(tp),Vx=Ld.cssVarList,Wx="#d73a49",Rx="#6f42c1",Ux="#005cc5",Yx="#e36209",Qx="#6a737d",Bx="#22863a",Px="#24292e",Zx="#f0fff4",Fx="#032f62",Gx="#ff7b72",Hx="#d2a8ff",Jx="#79c0ff",$x="#ffa657",qx="#8b949e",_x="#7ee787",Xx="#c9d1d9",Kx="#f0fff4",tT="#a5d6ff",eT={[Vx.copyButtonSize]:"32px",[Vx.copyButtonBorderRadius]:Ox.radius.xs,[Vx.copyButtonBorderWidth]:Ox.border.xs,[Vx.copyButtonBorderColor]:Ox.colors.surface.light,[Vx.copyButtonBgColor]:Ox.colors.surface.highlight,[Vx.copyButtonHoverBgColor]:Ox.colors.surface.light,[Vx.copyButtonColor]:Ox.colors.surface.contrast,[Vx.rootBgColor]:Ox.colors.surface.main,[Vx.rootTextColor]:Ox.colors.surface.contrast,[Vx.docTagTextColor]:Wx,[Vx.keywordTextColor]:Wx,[Vx.metaKeywordTextColor]:Wx,[Vx.templateTagTextColor]:Wx,[Vx.templateVariableTextColor]:Wx,[Vx.typeTextColor]:Wx,[Vx.variableLanguageTextColor]:Wx,[Vx.titleTextColor]:Rx,[Vx.titleClassTextColor]:Rx,[Vx.titleClassInheritedTextColor]:Rx,[Vx.titleFunctionTextColor]:Rx,[Vx.attrTextColor]:Ux,[Vx.attributeTextColor]:Ux,[Vx.literalTextColor]:Ux,[Vx.metaTextColor]:Ux,[Vx.numberTextColor]:Ux,[Vx.operatorTextColor]:Ux,[Vx.variableTextColor]:Ux,[Vx.selectorAttrTextColor]:Ux,[Vx.selectorClassTextColor]:Ux,[Vx.selectorIdTextColor]:Ux,[Vx.regexpTextColor]:Fx,[Vx.stringTextColor]:Fx,[Vx.metaStringTextColor]:Fx,[Vx.builtInTextColor]:Yx,[Vx.symbolTextColor]:Yx,[Vx.commentTextColor]:Qx,[Vx.codeTextColor]:Qx,[Vx.formulaTextColor]:Qx,[Vx.nameTextColor]:Bx,[Vx.quoteTextColor]:Bx,[Vx.selectorTagTextColor]:Bx,[Vx.selectorPseudoTextColor]:Bx,[Vx.substTextColor]:Px,[Vx.sectionTextColor]:Ux,[Vx.bulletTextColor]:"#735c0f",[Vx.emphasisTextColor]:Px,[Vx.strongTextColor]:Px,[Vx.additionTextColor]:Bx,[Vx.additionBgColor]:Zx,[Vx.deletionTextColor]:Wx,[Vx.deletionBgColor]:Zx},iT={codeSnippet:{[Vx.rootBgColor]:Ox.colors.surface.main,[Vx.rootTextColor]:Ox.colors.surface.contrast,[Vx.docTagTextColor]:Gx,[Vx.keywordTextColor]:Gx,[Vx.metaKeywordTextColor]:Gx,[Vx.templateTagTextColor]:Gx,[Vx.templateVariableTextColor]:Gx,[Vx.typeTextColor]:Gx,[Vx.variableLanguageTextColor]:Gx,[Vx.titleTextColor]:Hx,[Vx.titleClassTextColor]:Hx,[Vx.titleClassInheritedTextColor]:Hx,[Vx.titleFunctionTextColor]:Hx,[Vx.attrTextColor]:Jx,[Vx.attributeTextColor]:Jx,[Vx.literalTextColor]:Jx,[Vx.metaTextColor]:Jx,[Vx.numberTextColor]:Jx,[Vx.operatorTextColor]:Jx,[Vx.variableTextColor]:Jx,[Vx.selectorAttrTextColor]:Jx,[Vx.selectorClassTextColor]:Jx,[Vx.selectorIdTextColor]:Jx,[Vx.regexpTextColor]:tT,[Vx.stringTextColor]:tT,[Vx.metaStringTextColor]:tT,[Vx.builtInTextColor]:$x,[Vx.symbolTextColor]:$x,[Vx.commentTextColor]:qx,[Vx.codeTextColor]:qx,[Vx.formulaTextColor]:qx,[Vx.nameTextColor]:_x,[Vx.quoteTextColor]:_x,[Vx.selectorTagTextColor]:_x,[Vx.selectorPseudoTextColor]:_x,[Vx.substTextColor]:Xx,[Vx.sectionTextColor]:Jx,[Vx.bulletTextColor]:"#735c0f",[Vx.emphasisTextColor]:Xx,[Vx.strongTextColor]:Xx,[Vx.additionTextColor]:_x,[Vx.additionBgColor]:Kx,[Vx.deletionTextColor]:Gx,[Vx.deletionBgColor]:Kx}};var oT=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:iT,default:eT,vars:Vx});const nT=su.cssVarList,rT=Ce(tp),sT={[nT.buttonsRowGap]:"9px",[nT.hostWidth]:NN.width,[nT.hostDirection]:NN.direction,[nT.fontSize]:NN.fontSize,[nT.fontFamily]:NN.fontFamily,[nT.labelFontWeight]:NN.labelFontWeight,[nT.labelTextColor]:NN.labelTextColor,[nT.labelRequiredIndicator]:NN.requiredIndicator,[nT.errorMessageTextColor]:NN.errorMessageTextColor,[nT.errorMessageIcon]:NN.errorMessageIcon,[nT.errorMessageIconSize]:NN.errorMessageIconSize,[nT.errorMessageIconPadding]:NN.errorMessageIconPadding,[nT.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[nT.errorMessageIconPosition]:NN.errorMessageIconPosition,[nT.errorMessageFontSize]:NN.errorMessageFontSize,[nT.helperTextColor]:NN.helperTextColor,[nT.itemsLabelColor]:rT.colors.surface.contrast,[nT.itemsLabelFontWeight]:NN.inputValueFontWeight,[nT.itemsFontFamily]:NN.fontFamily,[nT.itemsRadioCheckedColor]:rT.colors.surface.light,[nT.itemsRadioBackgroundColor]:rT.colors.surface.light,[nT.itemsRadioCheckedBackgroundColor]:rT.colors.surface.contrast,textAlign:{right:{[nT.inputTextAlign]:"right"},left:{[nT.inputTextAlign]:"left"},center:{[nT.inputTextAlign]:"center"}},_fullWidth:{[nT.buttonsSpacing]:"space-between"},_disabled:{[nT.itemsLabelColor]:rT.colors.surface.light}};var aT=Object.freeze({__proto__:null,default:sT,radioGroup:sT,vars:nT});const lT=nu.cssVarList,dT=Ce(tp),cT={[lT.fontFamily]:NN.fontFamily,[lT.labelFontWeight]:NN.inputValueFontWeight,[lT.radioSize]:"calc(1em + 6px)",[lT.radioMargin]:"auto 4px",[lT.radioCheckedSize]:`calc(var(${lT.radioSize})/5)`,[lT.radioCheckedColor]:dT.colors.surface.light,[lT.radioBackgroundColor]:dT.colors.surface.light,[lT.radioBorderColor]:"none",[lT.radioBorderWidth]:0,_checked:{[lT.radioBackgroundColor]:dT.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[lT.fontSize]:"12px"},sm:{[lT.fontSize]:"14px"},md:{[lT.fontSize]:"16px"},lg:{[lT.fontSize]:"18px"}}};var uT=Object.freeze({__proto__:null,default:cT,radioButton:cT,vars:lT});const pT=Ce(tp),hT=fn.cssVarList,gT={[hT.fontFamily]:NN.fontFamily,[hT.fontSize]:NN.fontSize,[hT.hostDirection]:NN.direction,[hT.calendarPadding]:"1em",[hT.topNavVerticalPadding]:"1em",[hT.topNavAlignment]:"space-between",[hT.topNavGap]:"0",[hT.topNavSelectorsGap]:"0.5em",[hT.bottomNavVerticalPadding]:"0.75em",[hT.bottomNavHorizontalPadding]:"1.5em",[hT.bottomNavAlignment]:"space-between",[hT.bottomNavGap]:"0.5em",[hT.navMarginBottom]:"0.75em",[hT.navBorderBottomWidth]:"1px",[hT.navBorderBottomColor]:pT.colors.surface.highlight,[hT.navBorderBottomStyle]:"solid",[hT.yearInputWidth]:"6em",[hT.monthInputWidth]:"8em",[hT.navButtonSize]:"24px",[hT.navButtonCursor]:"pointer",[hT.weekdayFontSize]:"0.875em",[hT.weekdayFontWeight]:"500",[hT.dayHeight]:"3.125em",[hT.daySize]:"2.125em",[hT.dayFontSize]:"1em",[hT.dayRadius]:"50%",[hT.dayTextAlign]:"center",[hT.dayPadding]:"0",[hT.dayTextColor]:pT.colors.surface.contrast,[hT.dayFontWeight]:"500",[hT.dayBackgroundColor]:"transparent",[hT.dayCursor]:"pointer",[hT.dayBackgroundColorHover]:pT.colors.primary.highlight,[hT.daySelectedBackgroundColor]:pT.colors.primary.main,[hT.daySelectedTextdColor]:pT.colors.primary.contrast,[hT.dayDisabledTextdColor]:pT.colors.surface.light,[hT.currentDayBorderColor]:pT.colors.surface.light,[hT.currentDayBorderWidth]:"1px",[hT.currentDayBorderStyle]:"solid",size:{xs:{[hT.fontSize]:"12px"},sm:{[hT.fontSize]:"14px"},md:{[hT.fontSize]:"16px"},lg:{[hT.fontSize]:"18px"}},[hT.navButtonRotation]:"rotate(180deg)",_disabled:{[hT.navButtonOpacity]:"0.5",[hT.dayBackgroundColorHover]:"none",[hT.navButtonCursor]:"default",[hT.dayCursor]:"default"},_fullWidth:{[hT.hostWidth]:"100%",[hT.dayBlockAlign]:"0 auto"}};var MT=Object.freeze({__proto__:null,default:gT,vars:hT});const mT=Ce(tp),yT="#00000020",{shadow:bT}=mT,NT=pr.cssVarList,IT={[NT.hostWidth]:NN.width,[NT.hostDirection]:NN.direction,[NT.iconMargin]:"0.375em",[NT.overlay.marginTop]:`calc(${NN.outlineWidth} + 1px)`,[NT.overlay.backgroundColor]:NN.backgroundColor,[NT.overlay.backdropBackgroundColor]:"transparent",[NT.overlay.backdropPointerEvents]:"all",[NT.overlay.boxShadow]:`${bT.wide.xl} ${yT}, ${bT.narrow.xl} ${yT}`,[NT.overlay.outlineWidth]:"0",[NT.overlay.outlineColor]:"transparent",[NT.overlay.outlineStyle]:"none",[NT.overlay.padding]:"0",[NT.rtlInputDirection]:"ltr",[NT.rtlInputAlignment]:"right",[NT.errorMessageIcon]:NN.errorMessageIcon,[NT.errorMessageIconSize]:NN.errorMessageIconSize,[NT.errorMessageIconPadding]:NN.errorMessageIconPadding,[NT.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[NT.errorMessageIconPosition]:NN.errorMessageIconPosition,[NT.errorMessageFontSize]:NN.errorMessageFontSize,[NT.labelFontWeight]:NN.labelFontWeight,[NT.inputValueFontWeight]:NN.inputValueFontWeight,[NT.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[NT.helperTextFontWeight]:NN.helperTextFontWeight,[NT.errorMessageFontWeight]:NN.errorMessageFontWeight};var xT=Object.freeze({__proto__:null,default:IT,vars:NT});const TT=pu.cssVarList,jT={[TT.requiredInputBorderColor]:bN._disabled[IN.borderColor],[TT.requiredInputValueTextColor]:bN._disabled[IN.valueTextColor],[TT.hostWidth]:"280px",_fullWidth:{[TT.hostWidth]:"100%"}};var DT=Object.freeze({__proto__:null,default:jT,vars:TT});const vT=Ce(tp),zT=Tu.cssVarList,CT={[zT.gap]:vT.spacing.lg,[zT.arrowsColor]:vT.colors.surface.dark,[zT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[zT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[zT.logoMaxHeight]:"30px",[zT.logoMaxWidth]:"120px"},sm:{[zT.logoMaxHeight]:"40px",[zT.logoMaxWidth]:"160px"},md:{[zT.logoMaxHeight]:"48px",[zT.logoMaxWidth]:"200px"},lg:{[zT.logoMaxHeight]:"60px",[zT.logoMaxWidth]:"240px"}}};var ST=Object.freeze({__proto__:null,default:CT,vars:zT});const LT=Cu.cssVarList,wT={[LT.hostWidth]:"fit-content",_fullWidth:{[LT.hostWidth]:"100%"}};var AT=Object.freeze({__proto__:null,default:wT,vars:LT});const fT=Ou.cssVarList,ET={[fT.hostWidth]:"min-content",[fT.questionCursor]:"pointer",_fullWidth:{[fT.hostWidth]:"100%"},[fT.questionFontSize]:NN.fontSize,[fT.questionFontFamily]:NN.fontFamily};var kT=Object.freeze({__proto__:null,default:ET,vars:fT});const OT=Bu.cssVarList,VT={[OT.hostDirection]:NN.direction,[OT.labelFontWeight]:NN.labelFontWeight,[OT.inputValueFontWeight]:NN.inputValueFontWeight,[OT.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[OT.helperTextFontWeight]:NN.helperTextFontWeight,[OT.errorMessageFontWeight]:NN.errorMessageFontWeight,[OT.errorMessageIcon]:NN.errorMessageIcon,[OT.errorMessageIconSize]:NN.errorMessageIconSize,[OT.errorMessageIconPadding]:NN.errorMessageIconPadding,[OT.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[OT.errorMessageIconPosition]:NN.errorMessageIconPosition,[OT.errorMessageFontSize]:NN.errorMessageFontSize,_fullWidth:{[OT.hostWidth]:"100%"}};var WT=Object.freeze({__proto__:null,default:VT,vars:OT});const RT=Ce(tp),UT=Gu.cssVarList,YT={[UT.hostDirection]:RT.direction,[UT.backgroundColor]:"transparent",[UT.iconSize]:"1.35em",[UT.alignItems]:"center",[UT.borderRadius]:RT.radius.md,[UT.horizontalPadding]:"0",[UT.verticalPadding]:"0",[UT.gap]:"0.5em",[UT.fontSize]:Oe(yp.fontSize),mode:{error:{[UT.textColor]:RT.colors.error.main,_bordered:{[UT.borderColor]:RT.colors.error.main}},success:{[UT.textColor]:RT.colors.success.main,_bordered:{[UT.borderColor]:RT.colors.success.main}}},spacing:{xs:{[UT.horizontalPadding]:RT.spacing.xs,[UT.verticalPadding]:RT.spacing.xs},sm:{[UT.horizontalPadding]:RT.spacing.sm,[UT.verticalPadding]:RT.spacing.sm},md:{[UT.horizontalPadding]:RT.spacing.md,[UT.verticalPadding]:RT.spacing.md},lg:{[UT.horizontalPadding]:RT.spacing.lg,[UT.verticalPadding]:RT.spacing.lg},xl:{[UT.horizontalPadding]:RT.spacing.xl,[UT.verticalPadding]:RT.spacing.xl}},textAlign:{left:{[UT.justifyContent]:"left"},center:{[UT.justifyContent]:"center"},right:{[UT.justifyContent]:"right"}},_bordered:{[UT.borderWidth]:RT.border.xs,[UT.borderColor]:"transparent",[UT.borderStyle]:"solid",[UT.borderWidth]:RT.border.xs,[UT.borderRadius]:RT.radius.sm},_fullWidth:{[UT.hostWidth]:"100%"}};var QT=Object.freeze({__proto__:null,default:YT,vars:UT});const BT=qu.cssVarList,PT={enabled:{false:{[BT.maxHeight]:"70px"}}},ZT={button:Mp,textField:Ry,password:vN,numberField:SN,emailField:AN,textArea:kN,checkbox:RN,switchToggle:PN,container:XN,logo:eI,totpImage:nI,notpImage:aI,text:Np,enrichedText:Cp,link:jp,divider:MI,passcode:bI,loaderRadial:wI,loaderLinear:TI,comboBox:Op,phoneField:EI,phoneInputBoxField:VI,newPassword:YI,inputWrapper:xN,uploadFile:PI,buttonSelectionGroupItem:HI,buttonSelectionGroup:XI,buttonMultiSelectionGroup:ex,modal:sx,grid:cx,notificationCard:Mx,multiSelectComboBox:og,badge:Bp,avatar:Kp,mappingsField:Nx,userAttribute:jx,userAuthMethod:Cx,samlGroupMappings:wx,policyValidation:kx,image:oh,icon:eh,codeSnippet:oT,radioGroup:aT,radioButton:uT,calendar:MT,dateField:xT,monthDayField:mb,monthDayFieldPicker:wb,list:Nh,listItem:jh,multiLineMappings:Kh,appsList:ch,scopesList:DT,thirdPartyAppLogo:ST,securityQuestionsSetup:AT,securityQuestionsVerify:kT,hybridField:WT,alert:QT,autocompleteField:gg,addressField:wg,countrySubdivisionCityField:cy,timer:Bg,timerButton:nM,passwordStrength:yM,collapsibleContainer:wM,recoveryCodes:BM,hcaptcha:Object.freeze({__proto__:null,default:PT,vars:BT}),outboundApps:qM,outboundAppButton:om,trustedDevices:hm,multiSso:Tm,tooltip:Wm,filter:MN,attachment:Iy,userPasskeys:ky},FT=Object.keys(ZT).reduce((t,e)=>({...t,[e]:ZT[e].default}),{}),GT=Object.keys(ZT).reduce((t,e)=>({...t,[e]:ZT[e].vars}),{}),HT={globals:tp,components:FT},JT={globals:ep,components:GT},$T=a()({},HT,{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:{...iT}});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#_r(t){const{results:e,error:i}=await this.fetchResults(t);return i?{error:i}:{results:e}}#Xr(t,e,i,o){return`<span data-name="${i}" data-id="${e}" ${o?'disabled="true"':""}>${t||i}</span>`}#Kr(){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.#Xr(t,e,i,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#ts(),S(this,this.comboBox,{includeAttrs:["invalid"]})}#ts(){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.#_r(t);return{results:e,error:i,value:t}}catch(e){return{error:e,value:t}}}),A(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.#Kr()}#es(){return[{label:this.noResultsFoundMessage,value:ag,disabled:!0}]}#is(){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.#is():0===i.results?.length?this.comboBox.data=this.#es():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 qT=L("anchored");class _T extends(bt({componentName:qT,baseSelector:".anchored-root"})){#os=null;#ns=null;#rs=null;#ss=null;get#as(){return this.defaultSlot.assignedElements({flatten:!0})[0]}get#ls(){return this.shadowRoot.querySelector('slot[name="anchored"]')?.assignedElements()[0]}get#ds(){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?.(),f("\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.#cs(),this.defaultSlot.addEventListener("slotchange",()=>this.#us()),this.#us()}#mi(){const t=this.#as?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#us(){this.#ps(),this.#os=this.#hs(this.#os,this.#ds,"stretch"),this.#ns=this.#hs(this.#ns,this.#ls,"st-host-direction"),this.#gs()}#gs(){this.#ss?.disconnect(),this.#as&&(this.#ss=v(this.#as,()=>this.#mi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#gs(),this.#mi()}#cs(){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.#rs?this.#rs.replaceSync(t):this.#ds&&(this.#rs=f(t,this.#ds))}#hs(t,e,i){return t?.disconnect(),e?.removeAttribute(i),this.#as&&e?A(this.#as,e,{includeAttrs:[i]}):null}disconnectedCallback(){super.disconnectedCallback?.(),this.#os?.disconnect(),this.#ns?.disconnect(),this.#ss?.disconnect()}#ps(){this.toggleAttribute("has-anchor",!!this.#as),this.#mi()}}const XT=j(ht)(_T);customElements.define(qT,XT),customElements.define(Pp,Jp),customElements.define(nh,rh),customElements.define(uy,my),customElements.define(bM,xM),customElements.define(Zm,iy),customElements.define(oy,ay),customElements.define(Dh,Uh),customElements.define(Qb,$b),customElements.define(qb,iN),customElements.define(oN,dN),customElements.define(Nb,Cb),customElements.define(qy,cb),customElements.define(Yh,qh),customElements.define(gm,bm),customElements.define(_M,KM),customElements.define(PM,HM),customElements.define(rM,pM);var KT=Object.freeze({__proto__:null,PasswordStrengthClass:pM,componentName:rM});const tj=L("ponyhot"),ej="dhp-",ij=bt({componentName:tj,baseSelector:""}),oj=j(ht)(class extends ij{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#Ms(),this.#ms(),this.#ys())}#Ms(){const t=["input","change","click","keydown","keyup","mouseover","mousedown"],e=i=>{this.input.value=`${ej}${i.type}`,t.forEach(t=>{this.input.removeEventListener(t,e)})};t.forEach(t=>{this.input.addEventListener(t,e)})}#ms(){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(ej)&&e!==i?t.set.call(this,`${ej}direct-set`):t.set.call(this,e)},configurable:!0})}#ys(){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(tj,oj),customElements.define(AM,WM),customElements.define(fg,Rg),customElements.define(Pg,tM),customElements.define(jm,Sm),customElements.define(sm,cm),customElements.define(vy,Ay);const nj={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}};m.u2.setOptions(nj);var rj=Object.freeze({__proto__:null,default:m.K1,options:nj})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_descope_flow_components_3_22_3_1791471386685=self.webpackChunk_descope_flow_components_3_22_3_1791471386685||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>cb,$y:()=>Bu,A8:()=>Dc,Ag:()=>il,C1:()=>Yc,C9:()=>To,Cz:()=>cc,Er:()=>Jp,G6:()=>JT,HO:()=>qi,HT:()=>eo,J1:()=>Oo,Jr:()=>Yi,Lg:()=>Gu,MN:()=>ps,Mz:()=>Aa,NF:()=>Gs,O7:()=>xM,Od:()=>Tu,QW:()=>nc,Qb:()=>WM,R3:()=>bm,SE:()=>ao,SQ:()=>Lo,T$:()=>Ay,T1:()=>oj,TV:()=>qu,Ul:()=>da,VN:()=>Ld,VX:()=>Sr,_w:()=>ke,a5:()=>$T,bL:()=>pr,bU:()=>Cg,br:()=>W,dS:()=>dN,dX:()=>rh,dq:()=>cm,du:()=>qh,e7:()=>Se,eA:()=>wc,eo:()=>Ml,ew:()=>ge,fp:()=>Tl,gZ:()=>pu,h5:()=>HM,jH:()=>wr,k0:()=>Ir,l1:()=>no,lZ:()=>Cb,md:()=>zr,ml:()=>Bt,mq:()=>iu,o9:()=>fr,o_:()=>Ee,pp:()=>$c,px:()=>Ou,q:()=>my,q4:()=>zi,qn:()=>Co,rG:()=>Cu,sK:()=>wi,tD:()=>ec,tS:()=>su,td:()=>Uh,tl:()=>ts,ul:()=>Fa,v_:()=>jr,w8:()=>Xn,wt:()=>xa,xO:()=>Ts,xp:()=>yu,xs:()=>fn,yW:()=>KM,yi:()=>Sm,yj:()=>tM,zQ:()=>HT,zZ:()=>ay});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(7822),i(5595),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(),T=(...t)=>x(t.filter(t=>!!t).join("-")),j=(...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=>T(I,t),w=(...t)=>`--${T(...t)}`,A=(t,e,i={})=>v(t,C(t,e,i.mapAttrs),i),f=(t,e,{prepend:i=!1}={})=>{let o;try{o=new CSSStyleSheet}catch{return k(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 E{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 k=(t,e,{prepend:i=!1}={})=>new E(t,e,{prepend:i}),O=(t,e=2)=>t.trim().split(" ").splice(0,e).map(t=>t[0]?.toUpperCase()).join(""),V=(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},W=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,U=.1,Y=(t,e)=>t.darken(e).hex(),Q=t=>{const e=t.isDark();return t.mix(d()(e?"white":"black"),1).saturate(1).hex()},B=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),P=t=>t.luminosity()>.99,Z=(t,e)=>(t=>t.luminosity()<.01)(t)?B(t,R):Y(t,.4),F=(t,e)=>P(t)?Y(t,R):B(t,.4),G=(t,e)=>P(t)?Y(t,U):B(t,.8),H=(t,e)=>{const i=new(d())(t.main||t);return{main:i.hex(),dark:t.dark||Z(i),light:t.light||F(i),highlight:t.highlight||G(i),contrast:t.contrast||Q(i)}},J=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,$=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,q=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,_=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,X=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`,K=t=>w(I,...t),tt=(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},et=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?a()(t,i(e.concat(o),n)):a()(t,et(n,[...e,o],i)),{}),it=(t,e)=>et(t,[],t=>tt({},t,`var(${K(t)})`)),ot=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),nt=(t,e)=>{const i=et(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=w(e,n),s={[n]:r},a={[n]:ot(r)};return{theme:tt({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},rt=t=>`${t}__override`,st=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${rt(t)}, ${o})`:o};let at=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 lt=(t,e="fallback")=>T(t,e),dt=(t,e,{fallback:i})=>{if(!i)return{};const o=lt(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,...dt(n,o,i)}},ct=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=w(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:rt(n)},dt(o,n,e[o]))},{}),ut=({mappings:t={},componentNameOverride:e=""})=>i=>{const o=e||i.componentName;return class e extends i{static get cssVarList(){return{...i.cssVarList,...ct(o,{...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=>T("st",i,t))}get#h(){return W.currentTheme?.[o]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=W.currentThemeName,this.onThemeChange?.(W.currentThemeName)}#M(){this.#r=f("",this.#d,{prepend:!0}),this.#s=W.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${o}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=f(`:host(${t}) {}`,this.#d)}}#y(t,e){const i=this.#n.cssRules[0].style;if(!i)return;const n=w(o,t.replace(new RegExp("^st-"),""));e?i?.setProperty(n,e):(i?.removeProperty(n),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 at,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=lt(e,t?.suffix);return st(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=w(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,st(a,l,!0)+(r?"!important":""))})}),o.toString()})(T(o,this.#a),this.#c,t);f(e,this.#d,{prepend:!0})}}#I(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.#I(o),this.#N(),this.#M(),this.#m(),v(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},pt=t=>class extends t{constructor(){super(),f(':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?.()}},ht=t=>class extends t{#x(){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.#x()}},gt=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})})}},mt=["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"],yt=t=>class extends t{init(){super.init?.(),v(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>mt.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?`)}),{})}},bt=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#j=!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.#j&&(this.#j=!1,this.init?.())}}return j(ht,Mt,yt,gt)(i)};function Nt(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const It=t=>class extends t{#D=Nt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#D(),this.prevValue=this.value)})}},xt=t=>class extends t{init(){this.#v(),super.init?.()}#v(){["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,Nt.call(this,"blur"),Nt.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Nt.call(this,"focus"),Nt.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,Nt.call(this,"input",{bubbles:!0,composed:!0})))})}},Tt=["required","pattern"],jt=Symbol("validationTarget"),Dt=t=>class extends t{#z=jt;static get observedAttributes(){return[...t.observedAttributes||[],...Tt]}static get formAssociated(){return!0}#C;get internals(){return this.#C}set internals(t){this.#C=t}constructor(){super(),this.#C=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""}}#S(){const t=this.isReadOnly?{}:this.getValidity();this.#C.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#C.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#C.validity.valid}reportValidity(){return this.#C.reportValidity()}get validity(){return this.#C.validity}get validationTarget(){return this.#z===jt?this.inputElement:this.#z}set validationTarget(t){this.#z=t}setCustomValidity(t){t?this.#C.setValidity({customError:!0},t,this.validationTarget):(this.#C.setValidity({}),this.#S())}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.#C.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Tt.includes(t)&&this.#S()}init(){super.init?.(),this.addEventListener("change",this.#S),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#S),setTimeout(()=>this.#S())}},vt=(...t)=>j(Dt,It,yt,xt)(bt(...t)),zt="FETCH_RESULTS_ERROR",Ct=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#L()}checkConnectorValidity(){this.isValid=this.#L()}#L(){return!this.getRequiredParams().filter(t=>{const e=this.getAttribute(t);return!e||!this.validateParam(t,e)}).length}validateParam(t,e){return e.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(t){return this.isValid?this._fetchResults(t):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(t){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},St=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(bt({componentName:t,baseSelector:e})){#w=Nt.bind(this,"blur");#A=Nt.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`,f((D(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#w()}),this.baseElement.addEventListener("focus",t=>{this.#A()}),((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},Lt=["invalid","required"],wt=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},At=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(Dt(r)){static get observedAttributes(){return[...r.observedAttributes||[],...Lt]}#f;#D=Nt.bind(this,"change");constructor(){super(),this.#f=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#f&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#f)return this.#f;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#f=wt(t)||wt(e),this.#f}set inputElement(t){this.#f=t}getValidity(){return this.inputElement?.validity||{}}#E(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#E(),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.#E()})}),this.baseElement.addEventListener("change",()=>{this.#D()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#E()}),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),A(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]})}}},ft=t=>j(At(t),ut({componentNameOverride:L("input-wrapper")})),Et=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()})},kt=({name:t,selector:e,mappings:i={},forward:{attributes:o=[],include:n=!0}={}})=>r=>{const s=t||(t=>t.replace(/[^\w\s]/gi,""))(e),a=ut({mappings:i})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:ct(s?T(r.componentName,"_"+s):r.componentName,i)}}#k;constructor(){const t=Et(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);return e&&t.shadowRoot?(await Et(()=>i)(t)).querySelector(e):i});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#O=()=>t(this).then(t=>t?.host||t)}#O;async#V(){const t=await this.#k;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#k=this.#O();const t=await this.#k;A(this,t,{[n?"includeAttrs":"excludeAttrs"]:o}),this.#V()}}},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{#W=[];#R;#U(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Y(){const t=i?`*[slot="${i}"]`:":not([slot])";this.#R&&this.#R.querySelectorAll(t).forEach(t=>t.remove())}#Q(){this.#Y(),(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.#U(t)&&(this.#W=t,this.#Q())}get data(){return this.#W}init(){super.init?.(),this.#R=n?this.shadowRoot.querySelector(n):this.baseElement,v(this,t=>{t.includes("data")?this.#B():this.#Q()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}},Rt=({triggers:t=[]}={})=>e=>class extends e{static get observedAttributes(){return[...e.observedAttributes||[],...t.map(({attr:t})=>t)]}get#P(){return t.some(({attr:t,value:e})=>this.getAttribute(t)===e)}#Z=()=>{this.toggleAttribute("stretch",this.#P)};attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.#Z()}init(){super.init?.(),this.#Z()}},Ut=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Yt=L("enriched-text");class Qt extends(bt({componentName:Yt,baseSelector:":host > div"})){#F;#G;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',f("\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.#H(),z(this,this.#J.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.#H())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#G(t,e,i,o,n)),this.processor.renderer.rules.em_close=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#G(t,e,i,o,n))}#$(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(t,e,i,o,n)=>(t[e].attrSet("target","_blank"),this.#F(t,e,i,o,n)):this.processor.renderer.rules.link_open=this.#F}#q(){this.processor&&this.processor.disable(Ut)}#_(){this.#q()}#X(){this.#F=this.processor.renderer.rules.link_open||((t,e,i,o,n)=>n.renderToken(t,e,i)),this.#G=this.processor.renderer.rules.em_open||((t,e,i,o,n)=>n.renderToken(t,e,i))}#H(){this.processor=new o.A("commonmark",{html:!0}),this.#X(),this.#_(),this.#$(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#J(){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=j(ut({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:{}}}),ut({componentNameOverride:L("link")}),ut({componentNameOverride:L("text")}),Rt({triggers:[{attr:"full-width",value:"true"}]}),pt,ht)(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`,Te=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,je=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(${je(t)})`)),Se=(t,e="")=>{const i=Object.entries((t=>ve(t,[],(t,e)=>({[je(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`,Re=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${We(t)}, ${o})`:o};class Ue{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=""})=>i=>{const o=e||i.componentName;return class e extends i{static get cssVarList(){return{...i.cssVarList,...Be(o,{...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 W.currentTheme?.[o]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=f("",this.#d,{prepend:!0}),this.#s=W.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${o}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=f(`:host(${t}) {}`,this.#d)}}#y(t,e){const{style:i}=this.#n.cssRules[0];if(!i)return;const n=te(o,t.replace(new RegExp("^st-"),""));e?i?.setProperty(n,e):(i?.removeProperty(n),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 Ue,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Ye(e,t?.suffix);return Re(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,Re(a,l,!0)+(r?"!important":""))})}),o.toString()})(Zt(o,this.#a),this.#c,t);f(e,this.#d,{prepend:!0})}}#I(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.#I(o),this.#N(),this.#M(),this.#m(),$t(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},Ze=t=>class extends t{constructor(){super(),f(':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{#x(){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.#x()}},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;#j=!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.#j&&(this.#j=!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})){#w=_e.bind(this,"blur");#A=_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`,f((Gt(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#w()}),this.baseElement.addEventListener("focus",t=>{this.#A()}),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{#z=ti;static get observedAttributes(){return[...t.observedAttributes||[],...Ke]}static get formAssociated(){return!0}#C;get internals(){return this.#C}set internals(t){this.#C=t}constructor(){super(),this.#C=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""}}#S(){const t=this.isReadOnly?{}:this.getValidity();this.#C.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#C.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#C.validity.valid}reportValidity(){return this.#C.reportValidity()}get validity(){return this.#C.validity}get validationTarget(){return this.#z===ti?this.inputElement:this.#z}set validationTarget(t){this.#z=t}setCustomValidity(t){t?this.#C.setValidity({customError:!0},t,this.validationTarget):(this.#C.setValidity({}),this.#S())}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.#C.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Ke.includes(t)&&this.#S()}init(){super.init?.(),this.addEventListener("change",this.#S),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#S),setTimeout(()=>this.#S())}},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]}#f;#D=_e.bind(this,"change");constructor(){super(),this.#f=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#f&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#f)return this.#f;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#f=oi(t)||oi(e),this.#f}set inputElement(t){this.#f=t}getValidity(){return this.inputElement?.validity||{}}#E(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#E(),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.#E()})}),this.baseElement.addEventListener("change",()=>{this.#D()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#E()}),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={},forward:{attributes:o=[],include:n=!0}={}})=>e=>{const r=t,s=Pe({mappings:i})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Be(Zt(e.componentName,"_"+r),i)}}#k;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.#O=()=>t(this).then(t=>t?.host||t)}#O;async#V(){const t=await this.#k;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#k=this.#O();const t=await this.#k;ee(this,t,{[n?"includeAttrs":"excludeAttrs"]:o}),this.#V()}}},ai=t=>class extends t{#D=_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.#D(),this.prevValue=this.value)})}},li=t=>class extends t{init(){this.#v(),super.init?.()}#v(){["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{#K=[];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.#K.forEach(t=>clearTimeout(t)),this.#K.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.#K.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#K.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:Ti,requiredIndicator:ji,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,Ti],fontFamily:[Ti,Di,vi],labelTextColor:{...Ti,property:"color"},labelSpacing:{...Ti,property:"padding-inline-start"},labelLineHeight:{...Ti,property:"line-height"},labelFontWeight:{...Ti,property:"font-weight"},labelRequiredIndicator:{...ji,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=L("text");class Si extends(bt({componentName:Ci,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',f("\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=j(ut({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:{}}}),Rt({triggers:[{attr:"full-width",value:"true"}]}),pt,ht)(Si),Ai=L("link"),fi=["href","readonly"];class Ei extends(bt({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',f('\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"),A(this,this.anchor,{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),A(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:Ri,link:Ui}=ki,Yi=j(ut({mappings:{hostWidth:{...Wi,property:"width"},hostDirection:{...Vi,property:"direction"},textAlign:Ri,textDecoration:{...Ui,property:"text-decoration",fallback:"none"},textColor:[{...Oi,property:"color"},{...Vi,property:wi.cssVarList.textColor}],cursor:Oi}}),Rt({triggers:[{attr:"full-width",value:"true"}]}),pt,ht)(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",f("\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",f("\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",f("\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=L("combo-box"),{host:co,inputField:uo,inputElement:po,placeholder:ho,toggle:go,clearButton:Mo,label:mo,requiredIndicator:yo,helperText:bo,errorMessage:No,loader:Io,overlayContent:xo}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},loader:{selector:"vaadin-combo-box-overlay::part(loader)"},overlayContent:{selector:"vaadin-combo-box-overlay::part(content)"}},To=j(ut({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:()=>To.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>To.cssVarList.overlay.textColor},overlayBorder:{property:()=>To.cssVarList.overlay.border},overlayFontSize:{property:()=>To.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>To.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>To.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>To.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>To.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>To.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>To.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>To.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>To.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>To.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>To.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>To.cssVarList.overlay.itemFocusBackground}}}),pt,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"]}}),ft({proxyProps:["selectionStart"],inputEvent:"value-changed"}),t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},ht,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#tt=({displayName:t,value:e,label:i})=>`<span data-name="${i}" data-id="${e}">${t||i}</span>`;#W;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}set renderer(t){this.baseElement.renderer=t}get loading(){return"true"===this.getAttribute("loading")}set loading(t){t?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#W)return this.#W;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.#W=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.#W||this.getAttribute("data")){const t=this.getItemsTemplate();this.innerHTML=t}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:t}=this.baseElement,e=t?.["data-id"];t&&Array.from(this.children).includes(t)||(e&&this.shouldSelectItemOnItemsChange&&(this.value=e),this.value||this.setDefaultValue())}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){if(!e.baseElement.items?.length&&!e.allowCustomValue)return;const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#et(){const t=Array.from(this.children);t.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.handleSelectedItem()},0)}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#ot(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#nt(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}isValueMatch(){const t=this.baseElement.querySelector("input").value;return!t||this.baseElement.items.some(e=>e.dataset.name===t||e.dataset.id===t)}init(){super.init?.(),A(this,this.baseElement,{includeAttrs:["placeholder"]}),this.getValidity=function(){return this.requireMatch&&!this.isValueMatch()?{patternMismatch:!0}:!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ot(),this.#nt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",t=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}handleRequireMatchChange(t){this.baseElement.allowCustomValue=t||this.allowCustomValue}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"require-match"===t&&this.handleRequireMatchChange("true"===i))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#rt(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#st(t,e){t===this.value&&e!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",t=>{t.stopImmediatePropagation()},{once:!0,capture:!0})}set value(t){const e=this.#rt(t);this.#st(t,e),t&&e?this.baseElement.selectedItem=e:!e&&this.allowCustomValue?this.baseElement.value=t:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get autoOpenDisabled(){return"true"===this.getAttribute("auto-open-disabled")}})(St({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${J(To.cssVarList)}\n\t\t${_("vaadin-combo-box")}\n\t\t${q("vaadin-combo-box")}\n\t\t${$("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 ${X("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,To);const jo=t=>{const e=c.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},Do=L("image"),vo=["src","src-dark"];class zo extends(bt({componentName:Do,baseSelector:"slot"})){static get observedAttributes(){return vo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",f("\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=jo(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=jo(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=j(ut({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),pt,ht)(zo),So=L("icon"),Lo=j(ut({mappings:{fill:[{},{property:Co.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),pt,ht)(St({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=L("button"),{host:Ao,label:fo,slottedIcon:Eo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let ko;const Oo=j(Rt({triggers:[{attr:"full-width",value:"true"}]}),ut({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()}},pt,ht)(St({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 Ro=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Uo=Ro[0],Yo="YYYY-MM-DD",Qo="/",Bo=["January","February","March","April","May","June","July","August","September","October","November","December"],Po=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zo={id:"month",min:1,max:12,placeholder:"MM"},Fo={id:"day",min:1,max:31,placeholder:"DD"},Go={id:"year",min:0,max:9999,placeholder:"YYYY"},Ho=1900,Jo=2099,$o=(t,e)=>{if("number"==typeof t)return new Date(t);if("string"==typeof t){const e=new Date(t.replace(/-/g,"/"));return new Date(e)}return new Date},qo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},_o=t=>{const e=(t=>`^${t.split(Qo).map(t=>qo[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Qo);return t=>{const i={};return e.forEach((e,o)=>{i[e]=t[o+1]}),[i.YYYY,i.MM,i.DD]}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getDate:t=>((t,e,i)=>{const o=e.exec(t);if(!o)return null;const[n,r,s]=i(o);return $o([n,r,s].join(Qo))})(t,o,i)}},Xo=Object.fromEntries(Ro.map(t=>[t,_o(t)])),Ko=t=>!Number.isNaN(Number(t)),tn=t=>{const e=$o(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},en=(t,e)=>{const[i,o,n]=tn(t),r={DD:String(n).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(i)};return e.replace(/DD|MM|YYYY/g,t=>r[t])},on=()=>$o().getTime(),nn=t=>$o(t).getFullYear().toString(),rn=t=>($o(t).getMonth()+1).toString(),sn=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),an=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,ln=({label:t,dataId:e,dataName:i})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${e}"\n\t\tdata-name="${i}"\n\t>\n\t\t\t${t}\n\t</div>\n`,dn=(t=Bo)=>t.map((t,e)=>ln({label:t,dataId:e+1,dataName:t})).join(""),cn=(t,e)=>{const[i,o]=tn(e),[n,r]=tn(t);return n===i&&r===o},un=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),pn=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:Tn,topNav:jn,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:[{...jn,property:"padding-top"},{...jn,property:"padding-bottom"}],topNavHorizointalPadding:[{...jn,property:"padding-right"},{...jn,property:"padding-left"}],topNavAlignment:{...jn,property:"justify-content"},topNavGap:{...jn,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:{...jn,property:"margin-bottom"},calendarPadding:[{...mn,property:"padding-bottom"},{...mn,property:"padding-right"},{...mn,property:"padding-left"}],navBorderBottomWidth:{...jn,property:"border-bottom-width"},navBorderBottomColor:{...jn,property:"border-bottom-color"},navBorderBottomStyle:{...jn,property:"border-bottom-style"},weekdayFontSize:{...Tn,property:"font-size"},weekdayFontWeight:{...Tn,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 ',f(`\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:Rn,inputMask:Un,helperText:Yn,errorMessage:Qn,disabledPlaceholder:Bn,inputDisabled:Pn,inputIcon:Zn,externalInput:Fn,externalInputDisabled:Gn,externalPlaceholder:Hn,externalDisabledPlaceholder:Jn}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}};var $n={fontSize:[{},En],fontFamily:[kn,Wn,Yn,Qn],labelFontSize:{...kn,property:"font-size"},labelFontWeight:{...kn,property:"font-weight"},inputValueFontWeight:[{...Rn,property:"font-weight"},{...Fn,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...Hn,property:"font-weight"}],helperTextFontWeight:{...Yn,property:"font-weight"},errorMessageFontWeight:{...Qn,property:"font-weight"},labelTextColor:[{...kn,property:"color"},{...Vn,property:"color"},{...kn,property:"-webkit-text-fill-color"},{...Vn,property:"-webkit-text-fill-color"}],hostWidth:{...En,property:"width"},hostMinWidth:{...En,property:"min-width"},hostDirection:{...En,property:"direction"},inputDirection:{...Rn,property:"direction"},inputBackgroundColor:[{...Wn,property:"background-color"},{...Un,property:"background-color"}],errorMessageTextColor:{...Qn,property:"color"},errorMessageIcon:{...Qn,property:"background-image"},errorMessageIconSize:{...Qn,property:"background-size"},errorMessageIconPadding:{...Qn,property:"padding-inline-start"},errorMessageIconRepeat:{...Qn,property:"background-repeat"},errorMessageIconPosition:{...Qn,property:"background-position"},errorMessageFontSize:{...Qn,property:"font-size"},helperTextColor:{...Yn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Wn,property:"color"},{...Pn,property:"-webkit-text-fill-color"},{...Gn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Rn,property:"caret-color"},{...Fn,property:"caret-color"}],labelRequiredIndicator:{...Vn,property:"content"},inputBorderColor:{...Wn,property:"border-color"},inputBorderWidth:{...Wn,property:"border-width"},inputBorderStyle:{...Wn,property:"border-style"},inputBorderRadius:{...Wn,property:"border-radius"},inputHeight:{...Wn,property:"height"},inputHorizontalPadding:[{...Rn,property:"padding-left"},{...Rn,property:"padding-right"},{...Fn,property:"padding-left"},{...Fn,property:"padding-right"}],inputOutlineColor:{...Wn,property:"outline-color"},inputOutlineStyle:{...Wn,property:"outline-style"},inputOutlineWidth:{...Wn,property:"outline-width"},inputOutlineOffset:{...Wn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Rn,property:"text-align"},{...Fn,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...Hn,property:"color"},{...On,property:"color"},{...Bn,property:"-webkit-text-fill-color"},{...Jn,property:"-webkit-text-fill-color"}],labelPosition:{...kn,property:"position"},labelTopPosition:{...kn,property:"top"},labelHorizontalPosition:[{...kn,property:"left"},{...kn,property:"right"}],inputTransformY:{...kn,property:"transform"},inputTransition:{...kn,property:"transition"},marginInlineStart:{...kn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...Hn,property:"opacity"}],inputVerticalAlignment:[{...Wn,property:"align-items"},{...Fn,property:"align-items"}],valueInputHeight:[{...Rn,property:"height"},{...Fn,property:"height"}],valueInputMarginBottom:[{...Rn,property:"margin-bottom"},{...Fn,property:"margin-bottom"}],inputIconOffset:[{...Zn,property:"margin-right"},{...Zn,property:"margin-left"}],inputIconSize:{...Zn,property:"font-size"},inputIconColor:{...Zn,property:"color"},inputTextSecurity:[{...Rn,property:"-webkit-text-security"},{...Rn,property:"text-security"},{...Fn,property:"-webkit-text-security"},{...Fn,property:"text-security"}]};const qn=L("text-field"),_n=["type","label-type","copy-to-clipboard"],Xn=j(ut({mappings:$n}),pt,ft({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),ht,t=>class extends t{static get observedAttributes(){return _n.concat(t.observedAttributes||[])}icon;init(){super.init?.(),A(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))}})(St({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 ${X("vaadin-text-field")}\n\t\t\t${J(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 ${$(t)}\n ${q(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{#W=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.#W}set data(t){this.#W=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const tr=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=Uo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=Xo[this.format].getDate(this.inputElement.value);this.updateEpoch(sn(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=sn(t,this.isUtcTime)}dateCounters=[new Kn(Zo,this.onDateCounterChange.bind(this)),new Kn(Fo,this.onDateCounterChange.bind(this)),new Kn(Go,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(er.observedAttributes||[],nr)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-calendar">\n \n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>\n</svg>\n\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',f('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-calendar {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-calendar {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-calendar")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get displayValueEpoch(){const t=Xo[this.format].getDate(this.inputElement.value);return Ko(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Qo).map(t=>this.dateCounters.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(Qo)}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay.shadowRoot?.querySelector("#backdrop")}get calendar(){return this.overlay?.querySelector("descope-calendar")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(t){const e=parseInt(t,10);Number.isNaN(e)?(this.resetEpoch(),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(e),this.updateDateCounters(new Date(e)))}resetEpoch(){this.epoch=""}get isCountersEmpty(){return this.dateCounters.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(t=>!t.isInRange(t.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const t=this.inputElement.baseElement.inputElement;return t.value.length===t.selectionStart+t.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#lt(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=en($o(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#it()},0)}initInputElement(){this.inputElement.getValidity=this.getValidity.bind(this),this.inputElement.baseElement.checkValidity=this.checkValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.onPopoverToggle.bind(this)),this.inputElement.addEventListener("focus",this.onFocus.bind(this)),this.inputElement.addEventListener("blur",this.onBlur.bind(this)),this.inputElement.addEventListener("click",this.handleMouseCaretPositionChange.bind(this)),this.inputElement.addEventListener("keydown",this.handleKeyboard.bind(this)),this.inputElement.addEventListener("beforeinput",this.handleInput.bind(this)),this.inputElement.addEventListener("pointerdown",this.onPointerDown.bind(this)),this.inputElement.addEventListener("paste",this.onPaste.bind(this)),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.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=f(d,t)}#ut(){const t=document.createElement("span");t.innerHTML="<descope-calendar></descope-calendar>";const e=t.querySelector("descope-calendar");return e.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),e.addEventListener("cancel",this.closePopover.bind(this)),t}#it(){this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{}}onPopoverToggle(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disableCalendar||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}getCounterById(t){return this.dateCounters.find(e=>e.id===t)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const t=$o(this.calendar.value);this.value=sn(t,this.isUtcTime),this.getCounterById("year").replaceValue(t.getFullYear()),this.getCounterById("month").replaceValue(t.getMonth()+1),this.getCounterById("day").replaceValue(t.getDate()),this.#lt()}this.closePopover()}updateCalendarView(){const t=Ko($o(this.inputElement.value||"").getTime())&&Xo[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",en(this.displayValueEpoch||this.epoch,Yo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",en(on(),Yo))),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||Uo;this.setAttribute("type","date"),this.setAttribute("pattern",Xo[t].pattern)}parseDigits(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(t){const[e,i]=this.sortedCounters.map(t=>t.length);return[t<=e,t>=e&&t<=e+i+1,t>=e+i+2].indexOf(!0)}setSelectedCounterByCaretPosition(t){this.selectedCounterIdx=this.getCounterIdx(t.target?.selectionStart||this.inputElement.selectionStart)}selectFirstCounter(){this.selectedCounterIdx=0}selectNextCounter(){this.selectedCounterIdx<this.dateCounters.length&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx+1,2))}selectPrevCounter(){this.selectedCounterIdx>0&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx-1,1))}setInputSelectionRange(){this.selectedCounterIdx<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((t,e)=>t+e.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(t=>t.clear())}updateDateCounters(t){this.dateCounters.forEach(e=>{switch(e.id){case Zo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case Go.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case Fo.id:e.set(this.isUtcTime?t.getUTCDate():t.getDate())}})}handleKeyboard(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.onCut(t):(this.handleSelectAll(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.selectNextCounter():"ArrowLeft"===t.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const t=this.activeCounter;t.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(t){this.opened||(t.preventDefault(),this.setSelectedCounterByCaretPosition(t),this.setInputSelectionRange())}onInitialValueChange(t){this.value||setTimeout(()=>{Number.isNaN(parseInt(t,10))||(this.value=Number(t))})}togglePopoverAccess(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-calendar"===t&&this.togglePopoverAccess("true"!==i),ir.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):or.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>Jo||t.numberValue<Ho,i=Object.entries(this.getDateVals()).some(([t,e])=>{const i=this.getCounterById(t);return!e||i.numberValue!==e});return e||i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersOutOfRange||this.isInvalidDate()?{patternMismatch:!0}:{}}getDateVals(){const t={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return t;try{const e=new Date(this.epoch);this.isUtcTime?(t.month=e.getUTCMonth()+1,t.day=e.getUTCDate(),t.year=e.getUTCFullYear()):(t.month=e.getMonth()+1,t.day=e.getDate(),t.year=e.getFullYear())}catch(t){}return t}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.resetToInitialState()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy date value:",t)}}onPaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=((t,e)=>{const i=t.trim?.();return i?Xo[e].getDate(i):null})(e,this.format);if(i)this.value=sn(i,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const t=Number(e);t&&this.activeCounter.min<=t&&this.activeCounter.max>=t&&(this.activeCounter.set(String(t)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(tr,pr);const hr=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",f("\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"),Tr="email",jr=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",Tr),this.externalInput?.setAttribute("inputmode",Tr)}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(${jr.cssVarList.inputOutlineWidth}) + var(${jr.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${Te("vaadin-email-field")}\n\t\t\t${Me(jr.cssVarList)}\n\t\t\t${xe("vaadin-email-field",jr.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,jr);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",f(`\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 ${Te("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,"")||"",Rr=(t,e)=>{e?(t.style.setProperty(Er,`"${e}"`),t.style.setProperty(kr,"flex")):(t.style.removeProperty(Er),t.style.removeProperty(kr))},Ur=Kt("passcode-internal"),Yr=["digits","loading"],Qr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Br=ui({componentName:Ur,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?.(),f("\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 <${Ur}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n ><slot></slot></${Ur}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Ur),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 ${Te("vaadin-text-field")}\n\t\t\t${be("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Pr}));customElements.define(Ur,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=>{f(`\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),Rr(t)},0,{trailing:!0});let i=!1;t.addEventListener("input",o=>{t.value=Wr(t.value),t.value&&Rr(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 ${Te("vaadin-password-field")}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${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)"}},Ts=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 ${Te("vaadin-text-area")}\n\t\t\t${Me(Ts.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,Ts);var js=[{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)}#gt;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 ${js.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.#mt(t)}#mt(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=js.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.#yt(i):this.textField.value=i}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#bt()}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.#Nt())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.#It(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.#xt(t,i),"restrict-countries"===t&&this.#Tt(this.restrictCountries)}}#bt(){this.textField.addEventListener("input",this.#jt.bind(this)),this.comboBox.addEventListener("change",this.#Dt.bind(this)),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}#jt(){const t=this.allowAlphanumericInput?this.textField.value:this.textField.value.replace(/\D+/g,"");this.textField.value=this.isFormatValue?this.#yt(t):t}#Dt(){if(!this.isFormatValue)return;const t=this.textField.value.replace(/\D+/g,"");this.textField.value=this.#yt(t)}#yt(t=""){return this.#gt&&this.#gt.country===this.selectedCountryCode||(this.#gt=new p.Q(this.selectedCountryCode)),this.#gt.reset(),this.#gt.input(t)||t}#Nt(){const t=(0,u.l)(this.value);return!!(t&&t.isValid?.()&&t.country&&this.#vt(t.country))}#vt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#zt(t){return this.comboBox.items?.find(e=>e.getAttribute("data-country-code")===t)}#Tt(t){const e=t.length?js.filter(e=>t.includes(e.code)):js;this.querySelector("descope-combo-box").innerHTML=e.map(t=>Ds(t)).join("")}#It(t){if(!this.comboBox.value){const e=this.#zt(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#xt(t,e){const i=ws[t]||t;"label-type"===t?this.#Ct(e):"floating"===this.getAttribute("label-type")&&("country-input-label"===t?this.comboBox.setAttribute(i,e):"label"===t&&this.textField.setAttribute(i,e))}#Ct(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=To.cssVarList,Os=Kt("phone-field"),{host:Vs,label:Ws,requiredIndicator:Rs,inputField:Us,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,Us,{selector:Xn.componentName,property:Xn.cssVarList.fontSize},{selector:To.componentName,property:To.cssVarList.fontSize}],fontFamily:[Ws,Zs,Fs,{...Qs,property:To.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:[{...Us,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"},{...Rs,property:"color"}],labelRequiredIndicator:{...Rs,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:{...Us,property:"outline-style"},inputOutlineColor:{...Us,property:"outline-color"},inputOutlineWidth:{...Us,property:"outline-width"},inputOutlineOffset:{...Us,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 js}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 ${Te("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)}#gt;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"),js.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.#St();const t=this.#Lt();return t?.country&&t?.countryCallingCode&&t?.nationalNumber?`+${[t?.countryCallingCode,t?.nationalNumber].join("-")}`:this.textField.value}set value(t){this.textField.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#wt.bind(this)),this.handleFocusEventsDispatching([this.textField]),A(this.textField,this,{includeAttrs:["has-value"]}),A(this,this.textField,{includeAttrs:["phone-input-type"],mapAttrs:{"phone-input-type":"type"}})}getValidity(){const t=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,e=this.#At(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.#Nt()||!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)}}#wt(t){let e=this.#ft(t.target.value);this.isFormatValue&&this.#Et(e)&&(e=this.#kt(e)),t.target.value=e}#St(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Ot(this.textField.value),e=this.#At(t);return[this.defaultDialCode,e].join("-")}#Lt(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#At(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#At(t){return t.replace(/\D/g,"")}#Ot(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#Nt(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#vt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#vt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#ft(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}#kt(t=""){const e=this.defaultCode||this.#Vt(t);return e?(this.#gt&&this.#gt.country===e||(this.#gt=new p.Q(e)),this.#gt.reset(),this.#gt.input(t)||t):t}#Vt(t){const e=(0,u.l)(t);return e?.country||""}#Et(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 js}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 ${Te("vaadin-text-field")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","style"],componentName: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"})){#Wt;#Rt=[];#Ut;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',f("\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.#Ut={...this.#Ut,minlength:{value:`${t}`}})}if("data-password-policy-value-passwordstrength"===t){const t=parseInt(i);!Number.isNaN(t)&&t>=0&&(this.#Ut={...this.#Ut,passwordstrength:{...this.#Ut?.passwordstrength,expected:t}})}if("data-password-policy-actual-passwordstrength"===t){const t=Number(i);!Number.isNaN(t)&&t>=0&&(this.#Ut={...this.#Ut,passwordstrength:{...this.#Ut?.passwordstrength,actual:t}})}if("data-password-policy-value-disallowedchars"===t)if(i)this.#Ut={...this.#Ut,disallowedchars:{...this.#Ut?.disallowedchars,value:i}};else if(this.#Ut?.disallowedchars){const{disallowedchars:t,...e}=this.#Ut;this.#Ut=e}if("data-password-policy-value-email"===t)if(i)this.#Ut={...this.#Ut,disallowemail:{...this.#Ut?.disallowemail,expected:i}};else if(this.#Ut?.disallowemail){const{disallowemail:t,...e}=this.#Ut;this.#Ut=e}}this.renderItems(this.#Wt,this.#Rt,this.#Ut)}}get availablePolicies(){return this.#Wt||[]}set availablePolicies(t){this.#Wt=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.#Wt;return this.#Ut&&(t=this.#Wt.map(t=>{const e=this.#Ut[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),Ta=Kt("new-password"),ja=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:ja.backgroundColor},policyPreviewPadding:{...wa,property:ja.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:Ta}));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"],Ra=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ua=[].concat(Ra,Oa,Va,Wa),Ya=ui({componentName:ca,baseSelector:"div"});customElements.define(ca,class extends Ya{static get observedAttributes(){return[].concat(Ya.observedAttributes||[],Ua)}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=>{f(`\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 KT}),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):Ra.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(Ta,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{#Yt=null;static get observedAttributes(){return Ba.concat(Za.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Qt("true"===i),"variant"===t&&(this.#Bt(),this.updatePreview()))}renderRecaptcha(t){this.children.length?this.updatePreview():this.toggleRecaptchaEles(t)}displayRecaptcha(){this.isWidgetVariant?this.displayWidget():this.displayDeprecated()}displayWidget(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="",this.depercatedRecaptchaEle.style.display="none"}hideRecaptcha(){this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display="none",this.mockRecaptchaEle.style.display=""}displayDeprecated(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display=""}toggleRecaptchaEles(t){t?this.displayRecaptcha():this.hideRecaptcha()}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <span id="recaptcha-widget"></span>\n <input id="recaptcha-widget-input" type="hidden" name="recaptcha-widget" required />\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',f('\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.#Bt()}#Bt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Pa),this.#Yt=Pa):this.#Yt&&this.getAttribute("name")===this.#Yt&&(this.removeAttribute("name"),this.#Yt=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()}#Qt(t){this.renderRecaptcha(t),this.isWidgetVariant||t&&(this.#Pt(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Zt())}#Zt(){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}#Ft(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.#Ft(t,e,i)},11e4)),o.remove()})})}#Pt(){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.#Ft(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',f("\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{#tt=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#W;get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#W)return this.#W;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.#W=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 ${Te("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`,f("\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)){#Gt(){return this.items.filter(t=>t.hasAttribute("selected"))}onClick(t){t.target!==t.currentTarget&&(this.#Gt().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Gt().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}#Ht(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.#Ht(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"),Tl=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,Tl);class jl 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,jl);const vl=Kt("grid-custom-column");customElements.define(vl,class extends jl{_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 ',f("\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.#Jt(),qt(this,this.#$t.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.#Jt():this.#qt()),this.#$t())}#Jt(){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.#_t()),this.shadowRoot.querySelector(".wrapper").appendChild(t)}#qt(){this.shadowRoot.querySelector(".copy-btn")?.remove()}#_t(){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(()=>{})}#$t(){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:Rl,metaKeyword:Ul,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:Td,charEscape:jd,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:{...Rl,property:"color"},metaKeywordTextColor:{...Ul,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:{...Td,property:"color"},deletionBgColor:{...Td,property:"background-color"},charEscapeTextColor:{...jd,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:Rd,headerRow:Ud,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:[{...Ud},{...Qd}],fontSize:[{...Ud},{...Qd}],fontWeight:{...Qd},valueTextColor:{...Qd,property:"color"},backgroundColor:[{...Rd,property:"background-color"},{...Qd,property:"background-color"}],sortIndicatorsColor:{...Pd,property:"color"},activeSortIndicator:{...Zd,property:"color"},borderColor:{...Rd,property:"border-color"},borderWidth:{...Rd,property:"border-width"},borderStyle:{...Rd,property:"border-style"},borderRadius:{...Rd,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:{...Rd,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{#Xt;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.#Kt.bind(this),this.baseElement.addEventListener("wheel",t=>{t.target.closest("descope-code-snippet")&&t.stopPropagation()},!0)}#Kt=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.#Xt.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.#Xt=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)}}#te=({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.#te}set renderColumn(t){this.#te=t,this.renderColumns()}getColumnsTemplate(){return this.#Xt?.reduce?.((t,e)=>t+(this.renderColumn?.(e||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#Kt.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.#Xt}set columns(t){this.#Xt=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.#it(),ee(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),f("\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{#ee;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.#ee}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#ee.close()}init(){super.init?.(),this.createCard(),ee(this,this.#ee),Xt(this.#ee,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.#ee=document.createElement("descope-notification-card"),this.#ee.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:Tc,labelsContainer:jc}={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,{...Tc,property:"margin-top"}],fontFamily:[Mc,mc,bc],separatorFontSize:{...Tc,property:"font-size"},labelsFontSize:{...Nc,property:"font-size"},labelsLineHeight:[{...Nc,property:"line-height"},{...bc,property:"line-height"}],labelTextColor:[{...bc,property:wi.cssVarList.textColor},{...Tc,property:"color"}],itemMarginBottom:{...yc,property:"margin-bottom"},valueLabelMinWidth:{...Ic,property:"min-width"},attrLabelMinWidth:{...xc,property:"min-width"},labelsMarginBottom:{...jc,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{#ie;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.#ie&&(this.resetInvalidIndication(),this.#ie=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"]})}#oe(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",t=>{t.isTrusted&&(this.#ie||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#ie)&&this.#ie?.checkValidity()&&(this.resetInvalidIndication(),this.#ie.removeAttribute("invalid"),this.#ie=void 0)}),qt(this.mappingsContainerEle,this.#oe.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const t=this.items.find(t=>!t.checkValidity());return t?t.validity:{}}#ne(t){t&&(this.#ie=this.items.find(t=>!t.checkValidity()),this.#ie?.reportValidity(),this.#ie?.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.#ne("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`,f("\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}#re(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.#re(i)}}),customElements.define(hc,Dc);const Sc=L("badge");class Lc extends(bt({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",f("\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}#se(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.#se(i)}}const wc=j(ut({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:{}}}),pt,ht)(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`,f(`\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.#_t()),this.setDefaultChildren()}#_t(){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")}#ae(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.#ae("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==","delete-icon"),this.querySelector('[sl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DgxOSAxMC42NDAyIDUuNTYwMTkgMTAuNjE2MkM1LjQ2NDE5IDEwLjU5MjIgNS4zOTIxOSAxMC40NzIyIDUuNDQwMTkgMTAuMzc2MkM1Ljc1MjE5IDkuMjQ4MTYgNi4wNDAxOSA4LjU1MjE2IDYuMjU2MTkgOC4zMTIxNkwxMS4yNzIyIDIuNjI0MTVaTTExLjkyMDIgMS44NTYxNUwxMy4yODgyIDAuMzIwMTQ5QzEzLjY0ODIgLTAuMDg3ODUxNiAxNC4yNzIyIC0wLjExMTg1MiAxNC42ODAyIDAuMjcyMTQ5QzE1LjA4ODIgMC42MzIxNDkgMTUuMTEyMiAxLjI4MDE1IDE0Ljc1MjIgMS42ODgxNUwxMy4yNjQyIDMuMzY4MTVMMTEuOTIwMiAxLjg1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPgo=","edit-icon"),this.setDefaultCopyIcon()}setDefaultCopyIcon(){this.isCopyEnabled&&!this.querySelector('[slot="copy-icon"]')&&this.#ae("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:Rc,contentWrapper:Uc}={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:{...Rc,property:"min-width"},contentMinWidth:{...Uc,property:"min-width"},badgeMaxWidth:{...Wc,property:"max-width"},itemsGap:[{property:"gap"},{...Uc,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',f('\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}#le(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.#le("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{#tt=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#W;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.#W)return this.#W;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.#W=t,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.#tt?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.inputElement=this.baseElement,this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),this.renderItems(),$t(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),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 ${Te("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",f("\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"}#de(){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.#de().filter(t=>t.checked).map(t=>t.getAttribute("data-id"))}set value(t=[]){this.#de().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{#W=[];#U(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Y(){const t=i?`*[slot="${i}"]`:":not([slot])";this.baseElement.querySelectorAll(t).forEach(t=>t.remove())}#Q(){this.#Y(),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.#U(t)&&(this.#W=t,this.#Q())}get data(){return this.#W}init(){super.init?.(),$t(this,t=>{t.includes("data")?this.#B():this.#Q()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}})({itemRenderer:({id:t,desc:e,required:i=!1},o,n)=>{const r="checkbox"===n.variant?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=L("list-item"),gu=j(ut({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:{}}}),pt,ht,t=>class extends t{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",f("\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})})}})(bt({componentName:hu,baseSelector:"slot"}));customElements.define(hu,gu);const Mu=L("list");class mu extends(bt({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',f('\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()}#ce(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#ue(){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.#ce(),this.#ue(),this.#pe()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#pe(){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.#ue():"readonly"===t&&this.#pe())}}const yu=j(ut({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"}]}}),pt,ht)(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',f('\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",Tu=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,Tu);const ju=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:ju,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",f("\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}#he(){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.#ge(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(ju,"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)}#ge(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.#he()},{includeAttrs:vu}),$t(this,this.#ge.bind(this),{includeAttrs:Du})}}const Cu=Ft(Pe({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>To.componentName,property:To.cssVarList.hostDirection},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),Ze,Fe)(zu);customElements.define(ju,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",f("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#he(){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.#ge(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)}#me(t){switch(!0){case Lu.includes(t):return this.textFields;case wu.includes(t):return this.texts;default:return[]}}#ge(t){t.forEach(t=>{this.#me(t).forEach(e=>{this.#Me(e,Au[t]||t,this.getAttribute(t))})})}init(){super.init?.(),$t(this,()=>{this.#he()},{includeAttrs:Eu}),$t(this,this.#ge.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"),Ru={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"]}},Uu={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{#ye=!1;#be;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`,f("\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:Ru.email,mapAttrs:Uu.email}),ee(this,this.phoneCountryCodeInput,{includeAttrs:Ru.phone.countryCode,mapAttrs:Uu.phone}),ee(this,this.phoneInputBoxInput,{includeAttrs:Ru.phone.inputBox,mapAttrs:Uu.phone}),this.inputs.forEach(t=>ee(this,t,{includeAttrs:Ru.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#be=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.#ye&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{const t=this.activeInputEle;t.focus();try{t.setSelectionRange?.(this.#be,this.#be)}catch{}})}#Ne(){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.#Ne();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.#ye=!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 ',f('\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',f("\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,je(t))))(tp),ip=(t=>Object.keys(t).reduce((e,i)=>{const o=t[i];return Object.assign(e,{[i]:H(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=it({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=>{et(t,[],t=>tt({},t,K(t)))})(rp);const ap=it(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]=nt({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=it(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=it(rp),xp=Yi.cssVarList,Tp={[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 jp=Object.freeze({__proto__:null,default:Tp,vars:xp});const Dp=it(rp),vp=Bt.cssVarList,zp={[vp.hostDirection]:Dp.direction,[vp.hostWidth]:ot(yp.hostWidth),[vp.textLineHeight]:ot(yp.textLineHeight),[vp.textColor]:ot(yp.textColor),[vp.textAlign]:ot(yp.textAlign),[vp.fontSize]:ot(yp.fontSize),[vp.fontWeight]:ot(yp.fontWeight),[vp.fontFamily]:ot(yp.fontFamily),[vp.linkColor]:ot(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=L("input-wrapper"),Lp=it(rp),[wp,Ap]=nt({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=it(rp),Ep=To.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=it(rp),[Wp,Rp]=nt({shadowColor:"#00000020"},Sc),{shadowColor:Up}=Rp,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} ${Up}, ${Vp.shadow.narrow.sm} ${Up}`},md:{[Yp.boxShadow]:`${Vp.shadow.wide.md} ${Up}, ${Vp.shadow.narrow.md} ${Up}`},lg:{[Yp.boxShadow]:`${Vp.shadow.wide.lg} ${Up}, ${Vp.shadow.narrow.lg} ${Up}`},xl:{[Yp.boxShadow]:`${Vp.shadow.wide.xl} ${Up}, ${Vp.shadow.narrow.xl} ${Up}`}}};var Bp=Object.freeze({__proto__:null,default:Qp,vars:Yp});const Pp=L("avatar");class Zp extends(bt({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',f("\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"),A(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=j(ut({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"}}}),pt,ht)(Zp),$p=it(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=L("apps-list"),rh=j(ut({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=${O(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"]}),pt,ht,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")}})(St({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=it(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=it(rp),ph=yu.cssVarList,[hh,gh,Mh]=nt({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(${ot(ph.minItemsWidth)}, 100%),\n calc((100% - (${ot(ph.maxRowItems)} - 1) * ${ot(ph.gap)}) / ${ot(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=it(rp),xh=gu.cssVarList,Th={[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 jh=Object.freeze({__proto__:null,default:Th,vars:xh});const Dh=L("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:Rh}={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"}},Uh=j(ut({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"},{...Rh,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:()=>Uh.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Uh.cssVarList.overlay.textColor},overlayBorder:{property:()=>Uh.cssVarList.overlay.border},overlayFontSize:{property:()=>Uh.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Uh.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Uh.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Uh.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Uh.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Uh.cssVarList.overlay.itemPaddingInlineEnd}}}),pt,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"]}}),ft({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),It,ht,t=>class extends t{static get observedAttributes(){return["readonly"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#W;#Ie=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get data(){if(this.#W)return this.#W;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.#W=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||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}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)}}})}#xe(t){return Array.from(new Map(t.map(t=>[t.getAttribute("data-id"),t])).values())}#et(){const t=Array.from(this.children),e=this.#xe(t);t.length?(this.removeAttribute("has-no-options"),e.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#Te(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",t=>{const e=this.#tt({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,t.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const t=new RegExp(this.pattern);if(this.value.some(e=>!t.test(e)))return{patternMismatch:!0}}return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#Te(),this.renderItems(),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),A(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#je(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#je(){this.#Ie=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter(e=>t.includes(e["data-id"]));if(this.allowCustomValues){const i=e?.map(t=>t.getAttribute("data-id"))||[],o=t.filter(t=>!i.includes(t));if(o.length){const e=o.reduce((t,e)=>t+this.#tt({label:e,displayName:e,value:e}),"");return this.innerHTML+=e,void setTimeout(()=>{this.value=t},0)}}const i=e?.map(t=>t.getAttribute("data-id"))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const i=t.slice().sort(),o=e.slice().sort();for(let t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0})(this.#Ie,i)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#Ie}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")}})(St({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${J(Uh.cssVarList)}\n\t\t${_("vaadin-multi-select-combo-box")}\n\t\t${q("vaadin-multi-select-combo-box")}\n\t\t${$("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 ${X("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=L("multi-line-mappings"),Qh=bt({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=j(ut({mappings:{hostWidth:{...Hh,property:"width"},hostDirection:[{...Hh,property:"direction"},{selector:Uh.componentName,property:Uh.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"}}}),pt)(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"]}#De=[{firstValues:[],secondValues:[]}];#ve=null;#ze=[];#Ce={};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 ',f("\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.#Ce}get value(){return this.#De.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.#ve=t,this.#De=this.#Se(t),this.#Le(),this.#we()}#Ae(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.#ze=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.#Ce=Object.fromEntries(this.#ze.map(({value:t,options:e})=>[t,e]))}init(){super.init?.(),this.#fe(),this.addButtonElement.addEventListener("click",()=>this.#Ee()),this.#we()}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("data"===t)return this.#Ae(i),this.#Le(),void this.#we();if("size"===t)return[...this.#ke(),...this.#Oe()].forEach(t=>t.setAttribute("size",this.size)),this.#fe(),void this.#Ve();if(["disabled","readonly"].includes(t))return this.#ke().forEach(t=>{t[this.disabled?"setAttribute":"removeAttribute"]("disabled","true"),t[this.readonly?"setAttribute":"removeAttribute"]("readonly","true")}),this.#Oe().forEach(t=>t[this.disabled||this.readonly?"setAttribute":"removeAttribute"]("disabled","true")),void this.#Ve();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.#Ve(),"merge-rows"===t&&null!==this.#ve&&(this.#De=this.#Se(this.#ve),this.#Le(),this.#we())}}#ke(){return Array.from(this.rowsElement.querySelectorAll("descope-multi-select-combo-box"))}#Oe(){return Array.from(this.rowsElement.querySelectorAll(".remove-button"))}#Ee(){if(this.disabled||this.readonly||this.#We())return;const t={firstValues:[],secondValues:[]};this.#De=[...this.#De,t],this.rowsElement.append(this.#Re(t)),this.#Ve()}#Se(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}#Le(){const t=new Set(this.#ze.map(t=>t.value));this.#De=this.#De.map(e=>{const i=e.firstValues.filter(e=>t.has(e)),o=this.#Ue(i),n=new Set(o.map(t=>t.value));return{firstValues:i,secondValues:e.secondValues.filter(t=>n.has(t))}})}#Ue(t){const e=t.length?t.map(t=>this.#Ce[t]||[]).filter(t=>t.length):Object.values(this.#Ce).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))}#Ye({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.#Qe(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Be({rowIndex:i,type:e,selectedValues:Ph(s.value||[])})}),s}#Qe(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})}#Pe(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.#Ze(e)}),e}#we(){this.rowsElement.innerHTML="",this.#De.forEach(t=>{this.rowsElement.append(this.#Re(t))}),this.#Ve()}#Re(t){const e=document.createElement("div");e.className="row";const i=()=>Array.from(this.rowsElement.children).indexOf(e),o=this.#Ye({getRowIndex:i,type:"first",label:this.firstLabel,placeholder:this.firstPlaceholder,options:this.#ze.map(({value:t,label:e})=>({value:t,label:e})),selectedValues:t.firstValues}),n=this.#Ue(t.firstValues),r=this.#Ye({getRowIndex:i,type:"second",label:this.secondLabel,placeholder:this.secondPlaceholder,options:n,selectedValues:t.secondValues});return e.append(o,r,this.#Pe(i)),e}#Fe(t){const e=this.#De[t];if(!e)return;const i=this.rowsElement.children[t],o=i?.querySelector(".second-combo");if(!o)return void this.#we();const n=this.#Ue(e.firstValues);o.data=n,this.#Qe(o,e.secondValues)}#fe(){this.addButtonElement.setAttribute("size",this.size)}#Ve(){this.disabled||this.readonly||this.#We()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#We(){return Number.isFinite(this.maxRows)&&this.#De.length>=this.maxRows}#Ge(t){this.rowsElement.children[t]?.remove()}#Be({rowIndex:t,type:e,selectedValues:i}){if(this.disabled||this.readonly)return;const o=this.#De[t];if(o){if("first"===e){const e=this.#Ue(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.#De[t]={firstValues:i,secondValues:r},this.#Fe(t),void this.#He()}Gh(o.secondValues,i)||(this.#De[t]={...o,secondValues:i},this.#He())}}#Ze(t){if(this.disabled||this.readonly||this.#De.length<=1)return;const e=this.#De[t];this.#De=this.#De.filter((e,i)=>i!==t),this.#Ge(t),this.#Ve(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#He()}#He(){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=it(rp),eg=Uh.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=L("autocomplete-field-internal"),rg=vt({componentName:ng,baseSelector:""}),sg=[],ag="DESCOPE_INVALID_OPTION",lg=L("autocomplete-field"),{host:dg}={host:{selector:()=>":host"}},cg=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{hostWidth:{...dg,property:"width"},hostDirection:{...dg,property:"direction"},fontSize:{...dg},checkmarkDisplay:{selector:To.componentName,property:To.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:To.componentName,property:To.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:To.componentName,property:To.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:To.componentName,property:To.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:To.componentName,property:To.cssVarList.overlayItemHoverBackground}}}),pt,ft({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),ht,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),A(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}})(St({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=it(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(Ct()){#Je=null;#$e=null;constructor(t){super(t),this.#$e=this.#qe()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#qe(){const t=this.getAttribute("public-api-key");if(!this.#Je&&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.#Je=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.#Je.fetchAutocompleteSuggestions(e);return this.#_e(i)}catch(t){return console.error("Google Maps Places Autocomplete failed:",t),{results:[],error:zt}}}#_e(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(Ct()){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.#_e(o)}catch(t){return console.error("Radar Places Autocomplete failed:",t),{results:[],error:zt}}}#_e(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const yg=L("address-field-internal"),bg="google-maps-places",Ng="radar",Ig={[bg]:Mg,[Ng]:mg},xg=vt({componentName:yg,baseSelector:""}),Tg=["public-api-key"],jg=[...Tg],Dg=j((({connectorClasses:t})=>e=>class extends e{#Xe=t;static get observedAttributes(){return[...e.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#Xe}set connectorClasses(t){this.#Xe=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||[],jg)}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(){A(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&&Tg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),vg=L("address-field"),{host:zg}={host:{selector:()=>":host"}},Cg=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{hostWidth:{...zg,property:"width"},hostDirection:{...zg,property:"direction"}}}),pt,ft({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),ht,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),A(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()}})(St({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=L("timer"),Eg=["seconds","hide-icon","paused"],kg=bt({componentName:fg,baseSelector:":host > .wrapper"}),{host:Og,icon:Vg,timer:Wg}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},Rg=j(ut({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}}}),pt,ht)(class extends kg{#Ke=0;#ti;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',f("\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.#Ke=this.seconds}startInterval(){this.#Ke?this.#ti=setInterval(()=>{this.#ei(),this.#Ke||this.stop(),this.#ii(this.#Ke)},1e3):this.stop()}stopInterval(){clearInterval(this.#ti)}#ei(){this.#Ke=this.#Ke-1e3}reset(){this.#Ke=this.seconds,this.#ii(this.#Ke),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#Ke=0,this.#ii(this.#Ke),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#ii(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)}#oi(t){this.icon.classList.toggle("hidden",t)}#ni(t){setTimeout(()=>{t?this.pause():this.#ti||this.resume()})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("seconds"===t&&this.reset(),"hide-icon"===t&&this.#oi("true"===i),"paused"===t&&this.#ni("true"===i))}}),Ug=it(rp),Yg=Rg.cssVarList,Qg={[Yg.hostDirection]:Ug.direction,[Yg.gap]:"0.25em",[Yg.fontFamily]:Ug.fonts.font1.family,[Yg.minHeight]:"1.5em",[Yg.lineHeight]:"1em",[Yg.fontWeight]:Ug.fonts.font1.fontWeight,[Yg.textColor]:Ug.colors.surface.contrast,[Yg.iconColor]:Ug.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=L("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=bt({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=j(ut({mappings:{gap:{},flexDirection:{},hostWidth:{...$g,property:"width"},hostDirection:{...$g,property:"direction"},timerTextColor:{...qg,property:Rg.cssVarList.textColor},timerIconColor:{...qg,property:Rg.cssVarList.iconColor},timerHostWidth:{...qg,property:Rg.cssVarList.hostWidth},buttonLabelSpacing:{..._g,property:Oo.cssVarList.labelSpacing},timerInsideGapEnd:{...Xg,property:"margin-inline-end"},timerInsideGapStart:{...Kg,property:"margin-inline-start"}}}),pt,ht)(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',f('\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#ri(){return"true"===this.getAttribute("timer-inside")}get#si(){return"end"===this.getAttribute("timer-position")}syncTimerPlacement(){this.#ri?this.#ai(this.#si):this.#li()}#ai(t){t?this.timer.previousSibling!==this.forwardingSlot&&this.button.appendChild(this.timer):this.timer.nextSibling!==this.forwardingSlot&&this.button.insertBefore(this.timer,this.forwardingSlot)}#li(){this.timer.parentElement!==this.wrapper&&this.wrapper.insertBefore(this.timer,this.button)}set onclick(t){this.button.onclick=t}init(){super.init?.(),A(this,this.button,{includeAttrs:Zg,mapAttrs:Fg}),A(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=it(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=L("password-strength");class sM extends(bt({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',f("\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 rj}).then(t=>t.default);#di=-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.#di),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#di&&(this.#di=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#di})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#di)}),this.textContainer.innerHTML=this.options[this.#di]||"",-1===this.#di?this.removeAttribute("score"):this.setAttribute("score",this.#di))}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=j(ut({componentNameOverride:L("input-wrapper")}),ut({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"}}}),pt,ht)(sM),hM=it(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=L("collapsible-container");class NM extends(bt({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',f(`\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"}#ci=!1;init(){super.init?.(),this.#ci=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),A(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.#ci):this.expand(this.#ci):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=j(ut({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)"}}}),pt,ht)(NM),TM=it(rp),jM=xM.cssVarList,[DM,vM,zM]=nt({shadowColor:"#00000020"},bM),{shadowColor:CM}=vM,SM={...DM,[jM.hostWidth]:"100%",[jM.boxShadow]:"none",[jM.backgroundColor]:TM.colors.surface.main,[jM.backgroundImage]:"",[jM.backgroundPositionX]:"center",[jM.backgroundPositionY]:"center",[jM.backgroundSize]:"cover",[jM.backgroundRepeat]:"no-repeat",[jM.borderRadius]:"0px",[jM.hostDirection]:TM.direction,[jM.flexDirection]:"column",[jM.alignItems]:"flex-start",[jM.justifyContent]:"flex-start",[jM.headerGap]:TM.spacing.md,[jM.chevronRotation]:"rotate(180deg)",[jM.iconAnimationDuration]:"0.1s",[jM.contentAnimationDuration]:"0.1s",[jM.borderWidth]:"0px",[jM.textGrow]:"0",verticalPadding:{sm:{[jM.verticalPadding]:"5px"},md:{[jM.verticalPadding]:"10px"},lg:{[jM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[jM.horizontalPadding]:"5px"},md:{[jM.horizontalPadding]:"10px"},lg:{[jM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[jM.gap]:"10px"},md:{[jM.gap]:"20px"},lg:{[jM.gap]:"30px"}},shadow:{sm:{[jM.boxShadow]:`${TM.shadow.wide.sm} ${CM}, ${TM.shadow.narrow.sm} ${CM}`},md:{[jM.boxShadow]:`${TM.shadow.wide.md} ${CM}, ${TM.shadow.narrow.md} ${CM}`},lg:{[jM.boxShadow]:`${TM.shadow.wide.lg} ${CM}, ${TM.shadow.narrow.lg} ${CM}`},xl:{[jM.boxShadow]:`${TM.shadow.wide.xl} ${CM}, ${TM.shadow.narrow.xl} ${CM}`},"2xl":{[zM.shadowColor]:"#00000050",[jM.boxShadow]:`${TM.shadow.wide["2xl"]} ${CM}`}},borderRadius:{sm:{[jM.borderRadius]:TM.radius.sm},md:{[jM.borderRadius]:TM.radius.md},lg:{[jM.borderRadius]:TM.radius.lg},xl:{[jM.borderRadius]:TM.radius.xl},"2xl":{[jM.borderRadius]:TM.radius["2xl"]},"3xl":{[jM.borderRadius]:TM.radius["3xl"]}},iconPosition:{left:{[jM.headerIconOrder]:"0"},right:{[jM.headerIconOrder]:"1"}},_fillTitle:{[jM.textGrow]:"1"},_border:{[jM.borderColor]:TM.colors.surface.light,[jM.borderWidth]:TM.border.xs,[jM.borderStyle]:"solid"},_collapsible:{[jM.headerCursor]:"pointer"}},LM={...jM,...zM};var wM=Object.freeze({__proto__:null,default:SM,vars:LM});const AM=L("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(bt({componentName:AM,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...OM]}#ui=fM;#pi=!1;#hi=!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"),f('\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.#ui}#gi(t){return this.hasAttribute(t)&&"false"!==this.getAttribute(t)}get isRequired(){return this.#gi("required")}get isReadOnly(){return this.#gi("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)),A(this,this.iconWrapper,{includeAttrs:["variant","mode"]}),this.renderButtons(),this.#hi=!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.#ui=t,this.dispatchEvent(new Event("change",{bubbles:!0})),this.checkValidity()&&(this.#pi=!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.#pi=!t,this.syncValidityUI(),t}syncValidityUI(){this.toggleAttribute("invalid",this.#pi),this.errorMessageEle&&(this.errorMessageEle.textContent=this.#pi?this.errorMessage:"")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("required"!==t||this.isRequired||(this.#pi=!1,this.syncValidityUI()),this.#hi&&OM.includes(t)&&this.renderButtons())}}const WM=j(ut({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"}}}),ut({componentNameOverride:L("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"}),pt,ht)(VM),RM=it(rp),UM=WM.cssVarList,YM=wi.cssVarList,QM={[UM.hostMinWidth]:"190px",[UM.hostDirection]:RM.direction,[UM.iconColor]:ot(YM.textColor),[UM.iconSize]:ot(YM.fontSize),[UM.iconGap]:"8px",[UM.iconStackGap]:"16px",[UM.buttonsGap]:"8px",[UM.sectionsGap]:"8px",[UM.bulletGap]:"0.35em",[UM.verticalPadding]:"0",[UM.horizontalPadding]:"0",[UM.errorBorderColor]:"transparent",[UM.errorBorderWidth]:Ap.borderWidth,[UM.boxBorderRadius]:Ap.borderRadius,[UM.boxBorderStyle]:"solid",[UM.errorMessageColor]:Ap.errorMessageTextColor,[UM.errorMessageFontSize]:Ap.errorMessageFontSize,[UM.errorMessageFontWeight]:Ap.errorMessageFontWeight,[UM.errorMessageFontFamily]:Ap.fontFamily,textAlign:{right:{[UM.textAlign]:"flex-end"},left:{[UM.textAlign]:"flex-start"},center:{[UM.textAlign]:"center"}},_fullWidth:{[UM.hostWidth]:"100%"},_invalid:{[UM.errorBorderColor]:Ap.errorMessageTextColor}};var BM=Object.freeze({__proto__:null,default:QM,vars:UM});const PM=L("outbound-apps"),ZM=({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=${O(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`},FM=bt({componentName:PM,baseSelector:"descope-list"}),{host:GM}={host:{selector:()=>":host"}},HM=j(ut({mappings:{hostWidth:{...GM,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...GM,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}}}),pt,Wt({itemRenderer:ZM,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),ht)(class extends FM{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"),f("\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=ZM,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),JM=HM.cssVarList,$M={[JM.iconColor]:rp.colors.primary.main,[JM.errorIconColor]:rp.colors.error.main,[JM.appLogoGap]:rp.spacing.md,[JM.contentGap]:rp.spacing.xs,[JM.itemCursor]:"default",[JM.itemOutline]:"none",[JM.itemBorderColor]:"transparent",[JM.listPadding]:"0",[JM.listBorderWidth]:"0",[JM.listBoxShadow]:"none",[JM.emptyStateMinHeight]:"0",[JM.emptyStateVerticalPadding]:rp.spacing.lg,size:{xs:{[JM.fontSize]:"0.6em"},sm:{[JM.fontSize]:"0.8em"},md:{[JM.fontSize]:"1em"},lg:{[JM.fontSize]:"1.5em"}}};var qM=Object.freeze({__proto__:null,default:$M,vars:JM});const _M=L("outbound-app-button");class XM extends(bt({componentName:_M,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 ',f("\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?.(),A(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 KM=j(ut({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Oo.cssVarList.iconColor}}}),pt,ht)(XM),tm=KM.cssVarList,em={[tm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[tm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[tm.hostWidth]:"100%"}},im=tm;var om=Object.freeze({__proto__:null,default:em,vars:im});const nm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},rm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4K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Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},sm=L("trusted-devices"),am=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=rm[t]||rm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),c=s.lastLoginLabel?`${s.lastLoginLabel} `:"",u=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,s.format),p=n?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${s.direction}"\n >\n ${s.currentDeviceLabel}\n </descope-badge>`:"",h=s.hideActions||n?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${t}"\n st-host-direction="${s.direction}"\n ellipsis="true"\n >\n ${s.removeDeviceLabel}\n </descope-link>`,g=document.createElement("template");return g.innerHTML=`\n <descope-list-item ${a}>\n <div class="content">\n <div class="main">\n <span class="device">\n <descope-icon\n class="device-icon"\n src="${l}"\n src-dark="${d}">\n </descope-icon>\n <descope-text\n class="device-name"\n variant="body1"\n mode="primary">\n </descope-text>\n </span>\n <span class="panel">\n ${p}\n ${h}\n </span>\n </div>\n <div class="meta">\n <descope-text\n variant="body2"\n mode="primary"\n >\n ${c}\n </descope-text>\n <descope-text\n class="login-date"\n variant="body2"\n mode="primary"\n >\n ${u}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,g.content.querySelector(".device-name").textContent=e,g},lm=bt({componentName:sm,baseSelector:yu.componentName}),{host:dm}={host:{selector:()=>":host"}},cm=j(ut({mappings:{hostWidth:{...dm,property:"width"},hostMinWidth:{...dm,property:"min-width"},hostDirection:[{...dm,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"}}}),pt,Wt({itemRenderer:am,sortFn:(t,e)=>nm(e.lastLoginDate)-nm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),ht)(class extends lm{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"),f("\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=am,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),um=cm.cssVarList,pm={[um.hostWidth]:"auto",[um.hostWidth]:"300px",[um.hostMinWidth]:"300px",[um.listBackgroundColor]:"transparent",[um.listBorderRadius]:"0",[um.listBorderWidth]:"0",[um.listPadding]:"0",[um.listBoxShadow]:"none",[um.listItemsGap]:rp.spacing.lg,[um.emptyStateMinHeight]:"0",[um.emptyStateVerticalPadding]:rp.spacing.lg,[um.itemBorderColor]:rp.colors.surface.light,[um.itemVerticalPadding]:rp.spacing.lg,[um.itemHorizontalPadding]:rp.spacing.lg,[um.itemBorderRadius]:rp.radius.xs,[um.itemOutline]:"transparent",[um.itemBackgroundColor]:"transparent",[um.itemCursor]:"default",[um.itemContentGap]:rp.spacing.sm,[um.badgeBorderColor]:rp.colors.surface.light,[um.badgeTextColor]:rp.colors.surface.dark,[um.badgeBorderRadius]:rp.radius.xs,[um.badgeBackgroundColor]:rp.colors.surface.main,[um.devicePanelGap]:rp.spacing.md,[um.deviceIconGap]:rp.spacing.md,[um.deviceIconSize]:"24px",[um.lastLoginLabelGap]:rp.spacing.xs,_fullWidth:{[um.hostWidth]:"100%"}};var hm=Object.freeze({__proto__:null,default:pm,vars:um});const gm=L("multi-sso"),Mm=({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=V(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=V(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},mm=bt({componentName:gm,baseSelector:"span.wrapper"}),{host:ym}={host:{selector:()=>":host"}},bm=j(ut({mappings:{hostWidth:{...ym,property:"width"},hostMinWidth:{...ym,property:"min-width"},hostDirection:[{...ym,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}]}}),pt,Wt({targetSelector:"descope-list",itemRenderer:Mm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),ht)(class extends mm{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"]'),f('\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)=>Mm(t,0,this),this.shadowRoot.querySelector('[data-action="create"]').addEventListener("click",this.onCreateClick.bind(this)),this.listEl.addEventListener("click",this.onItemClick.bind(this)),A(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)}}),Nm=bm.cssVarList,Im=it(rp),xm={[Nm.hostWidth]:"300px",[Nm.headerGap]:Im.spacing.md,[Nm.headerListGap]:Im.spacing.md,[Nm.itemContentGap]:Im.spacing.md,[Nm.actionGap]:Im.spacing.sm,[Nm.authTypeRowGap]:Im.spacing.sm,[Nm.unconfiguredAuthTypeTextColor]:Im.colors.surface.dark,[Nm.unconfiguredAuthTypeTextFontStyle]:"italic",[Nm.buttonMaxWidth]:"50%",[Nm.listBackgroundColor]:"transparent",[Nm.listBorderRadius]:"0",[Nm.listBorderWidth]:"0",[Nm.listPadding]:"0",[Nm.listBoxShadow]:"none",[Nm.listItemsGap]:Im.spacing.lg,[Nm.itemBorderColor]:Im.colors.surface.light,[Nm.itemVerticalPadding]:Im.spacing.lg,[Nm.itemHorizontalPadding]:Im.spacing.lg,[Nm.itemBorderRadius]:Im.radius.xs,[Nm.itemOutline]:"transparent",[Nm.itemBackgroundColor]:"transparent",[Nm.itemCursor]:"default",[Nm.badgeBorderColor]:Im.colors.surface.light,[Nm.badgeTextColor]:Im.colors.surface.dark,[Nm.badgeBorderRadius]:Im.radius.xs,[Nm.badgeBackgroundColor]:Im.colors.surface.main,[Nm.titleIconSize]:"24px",[Nm.createButtonIconSize]:"12px",[Nm.actionIconSize]:"20px",[Nm.actionIconColor]:Im.colors.surface.dark,_fullWidth:{[Nm.hostWidth]:"100%"}};var Tm=Object.freeze({__proto__:null,default:xm,vars:Nm});const jm=L("tooltip"),Dm=["text","position","hide-delay","hover-delay","opened"];class vm extends(bt({componentName:jm,baseSelector:"vaadin-tooltip"})){#Mi=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")}#mi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}static get observedAttributes(){return Dm.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"]')}#yi(){this.isStaticDisplay?(this.#bi(),this.setAttribute("inert","true")):this.removeAttribute("inert")}#bi(){this.overlay&&(this.overlay.style.display="block",this.overlay.style.position="static")}init(){super.init?.(),f('\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.#Ni()),this.#Ni(),setTimeout(()=>this.#Ii())}#xi(){this.#Mi?.disconnect(),this.anchored&&(this.#Mi=v(this.anchored,()=>this.#mi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#mi(),this.#xi()}disconnectedCallback(){super.disconnectedCallback?.(),this.#Mi?.disconnect()}#Ni(){const t=this.defaultSlot?.assignedElements()?.[0];t&&(this.tooltip.target=t)}#Ii(){this.#Ti(),this.#ji(),A(this,this.tooltip,{includeAttrs:["position","opened"]}),this.#Di()}#vi(){this.overlayContentNode.innerHTML=""}#zi(){const t=document.createElement("descope-enriched-text");return t.setAttribute("link-target-blank","true"),t.textContent=this.tooltipText,t}#Ti(){this.overlayContentNode&&setTimeout(()=>{this.#vi(),this.textComponent=this.#zi(),this.overlayContentNode.appendChild(this.textComponent),this.srLabel&&!this.tooltipText&&this.srLabel.setAttribute("aria-hidden","true"),A(this,this.textComponent,{includeAttrs:["readonly"]})})}#ji(){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.#yi(),this.overlay._updatePosition?.()})}#Di(){this.tooltip?.toggleAttribute("manual",this.isOpened)}#Ci(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.#Ci(i),"opened"===t&&this.#Di())}}const{overlay:zm,content:Cm}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},Sm=j(ht,kt({selector:"",mappings:{fontFamily:{...Cm,property:Bt.cssVarList.fontFamilyOverride},fontSize:{...Cm,property:Bt.cssVarList.fontSizeOverride},fontWeight:{...Cm,property:Bt.cssVarList.fontWeightOverride},textColor:{...Cm,property:Bt.cssVarList.textColorOverride},hostDirection:{...Cm,property:Bt.cssVarList.hostDirectionOverride},backgroundColor:[{...zm},{...Cm}],borderColor:{...zm},borderStyle:{...zm},borderWidth:{...zm},borderRadius:{...zm},boxShadow:{...zm},horizontalPadding:[{...Cm,property:"padding-left"},{...Cm,property:"padding-right"}],verticalPadding:[{...Cm,property:"padding-top"},{...Cm,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(vm),Lm=it(rp),wm=Sm.cssVarList,[Am,fm,Em]=nt({shadowColor:"#00000020"},jm),{shadowColor:km}=fm,Om=`${Lm.shadow.wide.sm} ${km}, ${Lm.shadow.narrow.sm} ${km}`,Vm={...Am,[wm.fontFamily]:Lm.fonts.font1.family,[wm.fontSize]:rp.typography.body2.size,[wm.fontWeight]:rp.typography.body2.weight,[wm.textColor]:Lm.colors.surface.contrast,[wm.hostDirection]:Lm.direction,[wm.backgroundColor]:Lm.colors.surface.main,[wm.borderColor]:Lm.colors.surface.light,[wm.borderStyle]:"solid",[wm.borderWidth]:Lm.border.xs,[wm.borderRadius]:Lm.radius.xs,[wm.horizontalPadding]:Lm.spacing.md,[wm.verticalPadding]:Lm.spacing.sm,[wm.boxShadow]:Om,shadow:{sm:{[wm.boxShadow]:Om},md:{[wm.boxShadow]:`${Lm.shadow.wide.md} ${km}, ${Lm.shadow.narrow.md} ${km}`},lg:{[wm.boxShadow]:`${Lm.shadow.wide.lg} ${km}, ${Lm.shadow.narrow.lg} ${km}`},xl:{[wm.boxShadow]:`${Lm.shadow.wide.xl} ${km}, ${Lm.shadow.narrow.xl} ${km}`},"2xl":{[Em.shadowColor]:"#00000050",[wm.boxShadow]:`${Lm.shadow.wide["2xl"]} ${km}`}}};var Wm=Object.freeze({__proto__:null,default:Vm,vars:wm});const Rm=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},Um=async t=>Rm(`${t}/countries.json`),Ym=async(t,e)=>{try{return(await Rm(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},Qm=async(t,e,i)=>Rm(`${i}/countries/${t}/subdivisions/${e}/cities.json`),Bm=async t=>{const e=new URL("../labels.json",`${t}/`).href;return Rm(e)},Pm=async(t,e)=>Rm(`${e}/countries/${t}/cities.json`),Zm=L("country-subdivision-city-field-internal"),Fm=Symbol("selecting"),Gm=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,Hm=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",Jm=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=Gm({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=Hm(e),l=Hm(s.join(" ")),d=Hm(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},$m=({name:t,state_code:e,translations:i,lang:o})=>{const n=Gm({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=Hm(e),a=Hm(r.join(" ")),l=Hm(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},qm=({name:t,translations:e,lang:i})=>{const o=Gm({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=Hm(t),s=Hm(n.join(" ")),a=Hm(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},_m=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,Xm=vt({componentName:Zm,baseSelector:""}),Km=["disabled","readonly","size","bordered"],ty=["hide-country","hide-subdivision","hide-city"],ey=[...Km,"label-type","country-label","subdivision-label","city-label",...ty,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],iy=j()(class extends Xm{static get observedAttributes(){return[].concat(Xm.observedAttributes||[],ey)}#Si;#Li;#wi;#Ai=!1;#fi=!1;#Ei=new Map;#ki=null;#Oi=null;#Vi=null;#Wi=null;#Ri=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${_m("country-combo")}\n ${_m("subdivision-combo")}\n ${_m("city-combo")}\n </div>\n `,this.#Si=this.querySelector("#country-combo"),this.#Li=this.querySelector("#subdivision-combo"),this.#wi=this.querySelector("#city-combo"),this.#Ui(),this.#Yi()}get#Qi(){return"true"===this.getAttribute("hide-country")}get#Bi(){return"true"===this.getAttribute("hide-subdivision")}get#Pi(){return"true"===this.getAttribute("hide-city")}get#Zi(){return!this.#Fi}get#Fi(){return this.getAttribute("data-source-base-url")||void 0}get#Gi(){const t=this.getAttribute("lang")||void 0;if(t)try{const[e]=Intl.getCanonicalLocales(t);return e}catch{return}}get#Hi(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#Ji(){return this.getAttribute("subdivision-label")||void 0}get#$i(){return this.getAttribute("subdivision-placeholder")||void 0}get#qi(){return(this.getAttribute("allowed-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#_i(){return(this.getAttribute("pinned-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#Xi(){return[this.#Si,this.#Li,this.#wi]}get value(){return{country:this.#Qi?this.#Hi:this.#Si.value||void 0,subdivision:!this.#Bi&&this.#Ai&&this.#Li.value||void 0,city:!this.#Pi&&this.#fi&&this.#wi.value||void 0}}set value(t){if(!t)return;let e;try{e="string"==typeof t?JSON.parse(t):t}catch{return}this.#Ri={...e},this.#Fi&&this.#Ki()}init(){this.addEventListener("focus",t=>{if(t.isTrusted){const t=this.#Xi.find(t=>!t.classList.contains(`${Zm}-hidden`)&&!t.checkValidity());(t||this.#to())?.focus()}}),super.init?.(),this.#eo(),this.#io(),this.#oo(),this.#no()}#no(){this.#Si.renderItem=Jm,this.#Li.renderItem=$m,this.#wi.renderItem=qm}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ro();else if(ty.includes(t)||"data-source-base-url"===t)this.#eo(),"data-source-base-url"===t&&this.#oo();else if("default-country"===t){const t=i?.toUpperCase();if(t&&t!==i)return void this.setAttribute("default-country",t);t&&this.#Ei.size?this.#so(t):t&&this.#Qi&&this.#ao()}else"lang"===t?this.#lo():"invalid"===t?"true"===i&&this.#do():"allowed-countries"===t||"pinned-countries"===t?this.#Qi||(this.#ki?this.#co(this.#ki):this.#ao()):"country-label"===t?this.#uo(this.#Si,"label",i):"subdivision-label"===t?this.#uo(this.#Li,"label",i):"city-label"===t&&this.#uo(this.#wi,"label",i)}getValidity(){if(!this.isRequired)return{};const t=!this.#Qi&&!this.#Si.value,e=!this.#Bi&&(this.#Zi||this.#Ai)&&!this.#Li.value,i=!this.#Pi&&(this.#Zi||this.#fi)&&!this.#wi.value;return t||e||i?{valueMissing:!0}:{}}#do(){for(const t of[...this.#Xi].reverse())t.classList.contains(`${Zm}-hidden`)||t.checkValidity()||t.reportValidity()}#Ui(){[this.#Si,this.#Li,this.#wi].forEach(t=>{t.customValueTransformFn=e=>{const i=t.baseElement?.items?.find(t=>t["data-name"]===e);return i?.getAttribute("data-label")??e}})}#Yi(){this.#Xi.forEach(t=>{A(this,t,{includeAttrs:[...Km,"label-type"]})}),A(this,this.#Si,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#Si,"country-placeholder"],[this.#Li,"subdivision-placeholder"],[this.#wi,"city-placeholder"]].forEach(([t,e])=>{A(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#io(){this.#Si.addEventListener("input",()=>this.#po()),this.#Li.addEventListener("input",()=>this.#ho()),this.#wi.addEventListener("input",()=>this.#go()),this.handleFocusEventsDispatching(this.#Xi)}#oo(){this.#Fi&&(this.#Ri?this.#Ki():this.#Qi&&!this.#Hi||this.#ao())}async#Ki(){const{country:t,subdivision:e,city:i}=this.#Ri,o=!!e&&!this.#Bi,n=!!i&&!this.#Pi,r=this.#ki??Um(this.#Fi),s=this.#Wi??Bm(this.#Fi),a=o&&t?Ym(t,this.#Fi):null,l=n&&t?o&&e?Qm(t,e,this.#Fi):Pm(t,this.#Fi):null,[d,c,u,p]=(await Promise.allSettled([r,s,a,l])).map(t=>"fulfilled"===t.status?t.value:null);if(!this.#Ri)return;c&&(this.#Wi=c);const h=[];d&&(this.#ki||(this.#ki=d,this.#co(d)),t&&!this.#Qi&&h.push([this.#Si,t]));const g=t?this.#Ei.get(t):null;g?.subdivisionType&&this.#Mo(g.subdivisionType),u&&(this.#Oi=u,this.#Ai=u.length>0,u.length>0&&(this.#Li.data=u.map(t=>({...t,lang:this.#Gi})),e&&h.push([this.#Li,e]))),p&&(this.#fi=p.length>0,p.length>0&&(this.#Vi=p,this.#wi.data=p.map(t=>({...t,lang:this.#Gi})),i&&h.push([this.#wi,i]))),this.#eo(),this.#Ri=Fm,setTimeout(()=>{if(this.#Ri===Fm){for(const[t,e]of h){const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)}this.#Ri=null}})}#po(){this.#Ri!==Fm&&(this.#Ri=null,this.#mo(),this.#yo(),this.#so(this.#Si.value),this.#go())}#ho(){if(this.#Ri===Fm)return;this.#Ri=null;const t=this.#Li.value;if(this.#yo(),!this.#Pi&&t){const e=this.#Si.value;e&&this.#bo(e,t)}this.#go()}#so(t){if(!t)return;const e=this.#Ei.get(t);if(!e)return;const{hasSubdivisions:i,subdivisionType:o}=e;!this.#Bi&&i?(this.#Mo(o),this.#No(t)):this.#Pi||this.#bo(t)}#Mo(t){const e=this.#Io(t);this.#Ji||this.#uo(this.#Li,"label",e||null),this.#$i||this.#uo(this.#Li,"placeholder",e||null)}#Io(t){const e=this.#Wi?.subdivisionTypes,i=e?.[t]??e?._fallback;if(!i)return t;const o=this.#Gi;return o&&(i[o]||i[o.split("-")[0]])||i.en||t}async#xo(){try{this.#Wi=await Bm(this.#Fi)}catch{}}async#ao(){if(this.#Fi){this.#Si.setAttribute("loading","true");try{const[t]=await Promise.all([Um(this.#Fi),this.#xo()]);this.#ki=t,this.#co(t),!this.#Ri&&this.#Hi&&this.#so(this.#Hi)}catch(t){console.error(`[${Zm}] Failed to load countries`,t)}finally{this.#Si.removeAttribute("loading")}}}async#No(t){this.#To(this.#Li,!0),this.#Li.setAttribute("loading","true");try{const e=await Ym(t,this.#Fi);this.#Oi=e,this.#Ai=e.length>0,this.#eo(),e.length>0?this.#Li.data=e.map(t=>({...t,lang:this.#Gi})):this.#Pi||this.#bo(t)}catch(e){console.error(`[${Zm}] Failed to load subdivisions for ${t}`,e),this.#Ai=!1,this.#jo()}finally{this.#Li.removeAttribute("loading")}}async#bo(t,e){this.#wi.setAttribute("loading","true");try{const i=await(e?Qm(t,e,this.#Fi):Pm(t,this.#Fi));this.#fi=i.length>0,this.#eo(),i.length>0&&(this.#Vi=i,this.#wi.data=i.map(t=>({...t,lang:this.#Gi})))}catch(i){console.error(`[${Zm}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#wi.removeAttribute("loading")}}#lo(){if(this.#ki){const t=this.#Si.value;this.#co(this.#ki),t&&this.#Do(this.#Si,t)}if(this.#Oi&&this.#Ai){const t=this.#Li.value;this.#Li.data=this.#Oi.map(t=>({...t,lang:this.#Gi})),t&&this.#Do(this.#Li,t)}if(this.#Vi&&this.#fi){const t=this.#wi.value;this.#wi.data=this.#Vi.map(t=>({...t,lang:this.#Gi})),t&&this.#Do(this.#wi,t)}const t=this.#Si.value;if(t){const e=this.#Ei.get(t);e?.subdivisionType&&this.#Mo(e.subdivisionType)}}#co(t){const e=this.#vo(t);this.#Si.data=e.map(t=>({...t,lang:this.#Gi})),this.#Ei=new Map(t.map(t=>[t.iso2,t]))}#vo(t){const e=this.#qi,i=this.#_i;let o=e.length?t.filter(t=>e.includes(t.iso2)):[...t];return o.sort((t,e)=>Gm(t,this.#Gi).localeCompare(Gm(e,this.#Gi),this.#Gi)),i.length?[...i.map(t=>o.find(e=>e.iso2===t)).filter(Boolean),...o.filter(t=>!i.includes(t.iso2))]:o}#jo(){this.#To(this.#Si,!this.#Qi),this.#To(this.#Li,!this.#Bi&&(this.#Zi||this.#Ai)),this.#To(this.#wi,!this.#Pi&&(this.#Zi||this.#fi))}#To(t,e){t?.classList.toggle(`${Zm}-hidden`,!e)}#ro(){const t=this.hasAttribute("required")?"true":null;this.#uo(this.#Si,"required",this.#Qi?null:t),this.#uo(this.#Li,"required",this.#Bi||!this.#Zi&&!this.#Ai?null:t),this.#uo(this.#wi,"required",this.#Pi||!this.#Zi&&!this.#fi?null:t)}#eo(){this.#jo(),this.#ro(),this.setCustomValidity("")}#mo(){this.#Li.value="",this.#Li.data=[],this.#Ai=!1,this.#Ji||this.#Li.removeAttribute("label"),this.#$i||this.#Li.removeAttribute("placeholder"),this.#eo()}#yo(){this.#wi.value="",this.#wi.data=[],this.#Vi=null,this.#fi=!1,this.#eo()}#go(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#uo(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#to(){return this.#Xi.find(t=>!t.classList.contains(`${Zm}-hidden`))}#Do(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),oy=L("country-subdivision-city-field"),ny={selector:()=>":host"},ry={selector:`${Zm} > .wrapper`},sy={selector:`${Zm} > .wrapper > descope-combo-box`},ay=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{hostWidth:{...ny,property:"width"},hostDirection:[{...ny,property:"direction"},{...sy,property:To.cssVarList.hostDirection}],flexDirection:{...ry,property:"flex-direction"},flexGap:{...ry,property:"gap"},itemAlignment:{...ry,property:"align-items"},itemMinWidth:{...sy,property:"min-width"},itemFlexGrow:{...sy,property:"flex-grow"},itemWidth:{...sy,property:To.cssVarList.hostWidth}}}),pt,ft({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),ht,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Zm}\n tabindex="-1"\n ></${Zm}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Zm),A(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"]})}})(St({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 ${Zm} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Zm} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${Zm}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:oy})),ly=ay.cssVarList,dy={[ly.hostWidth]:Ap.width,[ly.hostDirection]:Ap.direction,[ly.flexDirection]:"column",[ly.flexGap]:"0.5em",[ly.itemAlignment]:"stretch",[ly.itemFlexGrow]:"0",[ly.itemWidth]:"auto",_fullWidth:{[ly.hostWidth]:"100%"},_horizontal:{[ly.flexDirection]:"row",[ly.itemFlexGrow]:"1"}};var cy=Object.freeze({__proto__:null,default:dy,vars:ly});const uy=L("attachment"),py=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],hy=py[0];class gy extends(bt({componentName:uy,baseSelector:"descope-anchored"})){#Mi=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#zo(){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.#Co()}init(){super.init?.(),f("\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.#Co();const t=this.shadowRoot.querySelector(".attachment-container");v(t,()=>this.#So(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#So()),this.defaultSlot.addEventListener("slotchange",()=>{this.#Lo(),window.requestAnimationFrame(()=>this.#wo())}),window.requestAnimationFrame(()=>this.#Lo())}#mi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#xi(){this.#Mi?.disconnect(),this.anchored&&(this.#Mi=v(this.anchored,()=>this.#mi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#mi(),this.#xi()}disconnectedCallback(){super.disconnectedCallback?.(),this.#Mi?.disconnect()}#wo(){const t=this.defaultSlot?.assignedElements()?.[0],e=t?.getBoundingClientRect();if(e){const t=e.width;this.#zo?.setAttribute("data-attachment-size",Number(t))}}#Lo(){const t=this.defaultSlot?.assignedElements()?.length>0;this.classList.toggle("hidden",!t)}#So(){const t=this.shadowRoot.querySelector(".attachment-container")?.getAttribute("st-host-direction");t&&this.#zo?.setAttribute("st-host-direction",t)}get offsetX(){return this.getAttribute("offset-x")||"0px"}get offsetY(){return this.getAttribute("offset-y")||"0px"}#Co(){const t=this.getAttribute("position");py.includes(t)||this.setAttribute("position",hy)}}const My={selector:()=>".attachment-container"},my=j(ut({mappings:{transform:{...My},justifyContent:{...My},maxWidth:{...My},top:{...My},bottom:{...My},left:{...My},right:{...My},offsetX:{},offsetY:{}}}),pt,ht)(gy),yy=my.cssVarList,by=`calc(8px + var(${yy.offsetX}))`,Ny={[yy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[yy.transform]:"translateY(-50%)",[yy.justifyContent]:"start",[yy.left]:by,[yy.top]:ot(yy.offsetY)},"top-center":{[yy.transform]:"translate(-50%, -50%)",[yy.justifyContent]:"center",[yy.top]:ot(yy.offsetY),[yy.left]:"50%"},"top-end":{[yy.transform]:"translateY(-50%)",[yy.justifyContent]:"end",[yy.right]:by,[yy.top]:ot(yy.offsetY)},"bottom-start":{[yy.transform]:"translateY(50%)",[yy.justifyContent]:"start",[yy.left]:by,[yy.bottom]:ot(yy.offsetY)},"bottom-center":{[yy.bottom]:ot(yy.offsetY),[yy.transform]:"translate(-50%, 50%)",[yy.justifyContent]:"center",[yy.left]:"50%"},"bottom-end":{[yy.transform]:"translateY(50%)",[yy.justifyContent]:"end",[yy.right]:by,[yy.bottom]:ot(yy.offsetY)}}};var Iy=Object.freeze({__proto__:null,default:Ny}),xy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC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cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:Ty,dark:xy}},vy=L("user-passkeys"),zy=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=Dy[t]||Dy.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=V(i,"remove-button");n&&o.append(n)})(c,t,r),c},Cy=bt({componentName:vy,baseSelector:yu.componentName}),{host:Sy,methodIconSlotted:Ly,addIconSlotted:wy}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},Ay=j(ut({mappings:{hostWidth:{...Sy,property:"width"},hostMinWidth:{...Sy,property:"min-width"},hostDirection:[{...Sy,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:[{...Ly,property:"height"},{...wy,property:"height"}]}}),pt,Wt({itemRenderer:zy,sortFn:(t,e)=>jy(e.createdAt)-jy(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),ht)(class extends Cy{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"]'),f('\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=zy,this.appsList.addEventListener("click",this.onRemoveClick.bind(this)),this.addPasskeyButton.addEventListener("click",this.onAddClick.bind(this)),A(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))}}),fy=Ay.cssVarList,Ey={[fy.hostWidth]:"auto",[fy.hostWidth]:"300px",[fy.hostMinWidth]:"300px",[fy.headerGap]:rp.spacing.lg,[fy.listGap]:rp.spacing.xl,[fy.listBackgroundColor]:"transparent",[fy.listBorderRadius]:"0",[fy.listBorderWidth]:"0",[fy.listPadding]:"0",[fy.listBoxShadow]:"none",[fy.listItemsGap]:rp.spacing.lg,[fy.itemBorderColor]:rp.colors.surface.light,[fy.itemVerticalPadding]:rp.spacing.lg,[fy.itemHorizontalPadding]:rp.spacing.lg,[fy.itemBorderRadius]:rp.radius.xs,[fy.itemOutline]:"transparent",[fy.itemBackgroundColor]:"transparent",[fy.itemCursor]:"default",[fy.itemContentGap]:rp.spacing.sm,[fy.itemPanelGap]:rp.spacing.md,[fy.itemIconGap]:rp.spacing.md,[fy.itemIconSize]:"24px",[fy.addButtonGap]:rp.spacing.sm,[fy.dateGap]:rp.spacing.xs,[fy.removeButtonGap]:rp.spacing.sm,[fy.iconSize]:"1.5em",[fy.iconColor]:"currentcolor",_fullWidth:{[fy.hostWidth]:"100%"}};var ky=Object.freeze({__proto__:null,default:Ey,vars:fy});const Oy=it(rp),Vy=Xn.cssVarList,Wy={[Vy.hostWidth]:Ap.width,[Vy.hostMinWidth]:Ap.minWidth,[Vy.hostDirection]:Ap.direction,[Vy.fontSize]:Ap.fontSize,[Vy.fontFamily]:Ap.fontFamily,[Vy.labelFontSize]:Ap.labelFontSize,[Vy.labelFontWeight]:Ap.labelFontWeight,[Vy.inputValueFontWeight]:Ap.inputValueFontWeight,[Vy.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[Vy.helperTextFontWeight]:Ap.helperTextFontWeight,[Vy.errorMessageFontWeight]:Ap.errorMessageFontWeight,[Vy.labelTextColor]:Ap.labelTextColor,[Vy.labelRequiredIndicator]:Ap.requiredIndicator,[Vy.errorMessageTextColor]:Ap.errorMessageTextColor,[Vy.inputValueTextColor]:Ap.valueTextColor,[Vy.inputPlaceholderColor]:Ap.placeholderTextColor,[Vy.inputBorderWidth]:Ap.borderWidth,[Vy.inputBorderStyle]:Ap.borderStyle,[Vy.inputBorderColor]:Ap.borderColor,[Vy.inputBorderRadius]:Ap.borderRadius,[Vy.inputOutlineWidth]:Ap.outlineWidth,[Vy.inputOutlineStyle]:Ap.outlineStyle,[Vy.inputOutlineColor]:Ap.outlineColor,[Vy.inputOutlineOffset]:Ap.outlineOffset,[Vy.inputBackgroundColor]:Ap.backgroundColor,[Vy.inputHeight]:Ap.inputHeight,[Vy.inputHorizontalPadding]:Ap.horizontalPadding,[Vy.helperTextColor]:Ap.helperTextColor,[Vy.textAlign]:Ap.textAlign,textAlign:{right:{[Vy.inputTextAlign]:"right"},left:{[Vy.inputTextAlign]:"left"},center:{[Vy.inputTextAlign]:"center"}},[Vy.labelPosition]:Ap.labelPosition,[Vy.labelTopPosition]:Ap.labelTopPosition,[Vy.labelHorizontalPosition]:Ap.labelHorizontalPosition,[Vy.inputTransformY]:Ap.inputTransformY,[Vy.inputTransition]:Ap.inputTransition,[Vy.marginInlineStart]:Ap.marginInlineStart,[Vy.placeholderOpacity]:Ap.placeholderOpacity,[Vy.inputVerticalAlignment]:Ap.inputVerticalAlignment,[Vy.valueInputHeight]:Ap.valueInputHeight,[Vy.valueInputMarginBottom]:Ap.valueInputMarginBottom,[Vy.inputIconOffset]:Oy.spacing.md,[Vy.inputIconSize]:Ap.inputIconSize,[Vy.inputIconColor]:Ap.placeholderTextColor,[Vy.errorMessageIcon]:Ap.errorMessageIcon,[Vy.errorMessageIconSize]:Ap.errorMessageIconSize,[Vy.errorMessageIconPadding]:Ap.errorMessageIconPadding,[Vy.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[Vy.errorMessageIconPosition]:Ap.errorMessageIconPosition,[Vy.errorMessageFontSize]:Ap.errorMessageFontSize,[Vy.inputTextSecurity]:Ap.inputTextSecurity};var Ry=Object.freeze({__proto__:null,default:Wy,textField:Wy,vars:Vy});class Uy{#W=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.#W}set data(t){this.#W=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const Yy=["MM/DD","DD/MM"],Qy=Yy[0],By="/",Py=[31,29,31,30,31,30,31,31,30,31,30,31],Zy={id:"month",min:1,max:12,placeholder:"MM"},Fy={id:"day",min:1,max:31,placeholder:"DD"},Gy={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},Hy=t=>{const e=(t=>`^${t.split(By).map(t=>Gy[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(By);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}}},Jy=Object.fromEntries(Yy.map(t=>[t,Hy(t)])),$y=(t,e)=>{const i=t?.trim?.();return i?Jy[e]?.getParts(i)??null:null},qy=L("month-day-field"),_y=vt({componentName:qy,baseSelector:"vaadin-popover"}),Xy=["format","opened","initial-value","readonly","disable-picker"],Ky=["picker-months","picker-label-submit","picker-label-cancel"],tb=[...Xy,...Ky],eb=Xn.cssVarList,{host:ib,input:ob,inputEleRTL:nb,toggleButton:rb,overlay:sb,backdrop:ab,bottomNav:lb,navButton:db}={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"}},cb=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{iconMargin:{...rb,property:"margin-inline-end"},hostWidth:{...ib,property:"width"},hostDirection:{...ib,property:"direction"},textAlign:{...ob,property:"text-align"},rtlInputDirection:{...nb,property:eb.inputDirection},rtlInputAlignment:{...nb,property:eb.inputTextAlign},overlayGap:{property:()=>cb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>cb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>cb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>cb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>cb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>cb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>cb.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:{...sb,property:"margin-top"},backgroundColor:{...sb},backdropBackgroundColor:{...ab,property:"background-color"},backdropPointerEvents:{...ab,property:"pointer-events"},padding:{...sb},boxShadow:{...sb},outlineWidth:{...sb},outlineColor:{...sb},outlineStyle:{...sb},bottomNavTopPadding:{...lb,property:"padding-top"},bottomNavBottomPadding:{...lb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...lb,property:"padding-left"},{...lb,property:"padding-right"}],bottomNavAlignment:{...lb,property:"justify-content"},bottomNavGap:{...lb,property:"gap"},navButtonPadding:[{...db,property:Oo.cssVarList.horizontalPadding},{...db,property:Oo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...db,property:Oo.cssVarList.outlineWidth}}}),pt,ht)(class extends _y{format=Qy;#Ao=0;#fo=()=>{this.updateCountersDisplay(),this.#Eo(),this.#lt()};#ko=[new Uy(Zy,this.#fo.bind(this)),new Uy(Fy,this.#fo.bind(this))];static get observedAttributes(){return[].concat(_y.observedAttributes||[],tb)}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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNS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uNTA0NyAxMkgxOC40OTUzQzE4Ljc4NiAxMiAxOSAxMi4yMjYgMTkgMTIuNTA0N1YxMy40OTUzQzE5IDEzLjc4NiAxOC43NzQgMTQgMTguNDk1MyAxNEgxNy41MDQ3QzE3LjIxNCAxNCAxNyAxMy43NzQgMTcgMTMuNDk1M1YxMi41MDQ3QzE3IDEyLjIxNCAxNy4yMjYgMTIgMTcuNTA0NyAxMlpNMTcuNTA0NyA5SDE4LjQ5NTNDMTguNzg2IDkgMTkgOS4yMjU5NiAxOSA5LjUwNDY4VjEwLjQ5NTNDMTkgMTAuNzg2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+Cjwvc3ZnPgo="></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',f('\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.#ko.find(t=>t.id===Zy.id)}get dayCounter(){return this.#ko.find(t=>t.id===Fy.id)}get sortedCounters(){return this.format.split(By).map(t=>this.#ko.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#Ao]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(By)}get isCountersEmpty(){return this.#ko.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#ko.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?$y(String(t),this.format):null;e?this.#Oo(e.month,e.day):(this.#ko.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()}#Eo(){const t=this.monthCounter.numberValue,e=Py[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#Oo(t,e){this.monthCounter.replaceValue(t),this.#Eo(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#lt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#ko.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Vo(),this.#Wo(),this.#fo(),this.#Ro(),setTimeout(()=>this.#it(),0)}#Ro(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#Uo.bind(this)),this.inputElement.addEventListener("focus",this.#Yo.bind(this)),this.inputElement.addEventListener("blur",this.#Qo.bind(this)),this.inputElement.addEventListener("click",this.#Bo.bind(this)),this.inputElement.addEventListener("keydown",this.#Po.bind(this)),this.inputElement.addEventListener("beforeinput",this.#Zo.bind(this)),this.inputElement.addEventListener("pointerdown",this.#Fo.bind(this)),this.inputElement.addEventListener("paste",this.#Go.bind(this)),A(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"]})}#Wo(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),f("\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.#Ho(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#pt(),t.classList.remove("overlay-hidden")},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { margin-left: 0; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.picker.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${l}px;\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=f(d,t)}#ut(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#Jo(),this.cancelButton.addEventListener("click",this.#$o.bind(this)),this.submitButton.addEventListener("click",this.#qo.bind(this)),e.addEventListener("change",this.#_o.bind(this)),t}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#Ho(){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),A(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#Xo(){return this.getAttribute("picker-label-submit")||"Done"}get#Ko(){return this.getAttribute("picker-label-cancel")||"Cancel"}#Jo(){this.submitButton&&(this.submitButton.textContent=this.#Xo,this.cancelButton.textContent=this.#Ko)}#_o(t){const{month:e,day:i}=t.detail||{};this.#tn(null==e||null==i)}#tn(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()}#qo(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#Oo(t,e),this.#lt(),this.closePopover()):this.closePopover()}#Uo(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#en(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#Zo(t){var e;t.preventDefault(),this.#in(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#on(t.data),this.updateCountersDisplay()):t.inputType&&this.#nn(t)}#in(){this.isSelectAll&&this.#rn()}#on(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#sn(),this.#an()}#ln(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#dn(t){this.#Ao=this.#ln(t.target?.selectionStart||this.inputElement.selectionStart)}#rn(){this.#Ao=0}#sn(){this.#Ao<this.#ko.length-1&&(this.#Ao=Math.min(this.#Ao+1,1))}#cn(){this.#Ao>0&&(this.#Ao=0)}#an(){this.#Ao<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#Ao).reduce((t,e)=>t+e.length,this.#Ao);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#Ao].length)})}#Po(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#un(t):(this.#in(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#sn():"ArrowLeft"===t.key&&this.#cn(),this.#an())}#nn(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#pn(),this.#an()))}#pn(){if(this.isSelectAll)return void this.#hn();const t=this.activeCounter;t.isEmpty?(this.#cn(),this.#an()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#an()})}#Bo(t){this.opened||(t.preventDefault(),this.#dn(t),this.#an())}#Fo(t){setTimeout(()=>this.#Bo(t),150)}#Yo(){this.isReadOnly||setTimeout(()=>this.#gn())}#Qo(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#gn(){this.inputElement.value||(this.inputElement.value=this.format),this.#rn(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#hn(){this.resetCounters(),this.#rn(),this.#gn()}#Mn(t){Object.keys(Jy).includes(t)&&(this.format=t,this.#Vo(),this.updateCountersDisplay())}#Vo(){const t=this.getAttribute("format")||this.format||Qy,e=Jy[t]?t:Qy;this.format=e,this.setAttribute("pattern",Jy[e].pattern)}#un(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.#hn()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.#an()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#Go(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=$y(e,this.format);if(i)return this.#Oo(i.month,i.day),this.#fo(),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.#an()))}#mn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#en("true"!==i),Xy.includes(t)?(i&&"format"===t&&this.#Mn(i),"initial-value"===t&&this.#mn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#Jo():Ky.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),ub=it(rp),pb="#00000020",{shadow:hb}=ub,gb=cb.cssVarList,Mb={[gb.hostWidth]:Ap.width,[gb.hostDirection]:Ap.direction,[gb.iconMargin]:"0.375em",[gb.overlay.marginTop]:Ap.outlineWidth,[gb.overlay.backgroundColor]:Ap.backgroundColor,[gb.overlay.backdropBackgroundColor]:"transparent",[gb.overlay.backdropPointerEvents]:"all",[gb.overlay.boxShadow]:`${hb.wide.xl} ${pb}, ${hb.narrow.xl} ${pb}`,[gb.overlay.outlineWidth]:"0",[gb.overlay.outlineColor]:"transparent",[gb.overlay.outlineStyle]:"none",[gb.overlay.padding]:"0",[gb.overlay.bottomNavTopPadding]:"0",[gb.overlay.bottomNavBottomPadding]:"0.75em",[gb.overlay.bottomNavHorizontalPadding]:"1em",[gb.overlay.bottomNavAlignment]:"space-between",[gb.overlay.bottomNavGap]:"0.5em",[gb.overlay.navButtonPadding]:"0",[gb.overlay.navButtonOutlineWidth]:"0",[gb.rtlInputDirection]:"ltr",[gb.rtlInputAlignment]:"right",[gb.errorMessageIcon]:Ap.errorMessageIcon,[gb.errorMessageIconSize]:Ap.errorMessageIconSize,[gb.errorMessageIconPadding]:Ap.errorMessageIconPadding,[gb.errorMessageIconRepeat]:Ap.errorMessageIconRepeat,[gb.errorMessageIconPosition]:Ap.errorMessageIconPosition,[gb.errorMessageFontSize]:Ap.errorMessageFontSize,[gb.labelFontWeight]:Ap.labelFontWeight,[gb.inputValueFontWeight]:Ap.inputValueFontWeight,[gb.inputPlaceholderFontWeight]:Ap.inputPlaceholderFontWeight,[gb.helperTextFontWeight]:Ap.helperTextFontWeight,[gb.errorMessageFontWeight]:Ap.errorMessageFontWeight};var mb=Object.freeze({__proto__:null,default:Mb,vars:gb});const yb=[31,29,31,30,31,30,31,31,30,31,30,31],bb=["January","February","March","April","May","June","July","August","September","October","November","December"],Nb=L("month-day-field-picker"),Ib=["initial-value","picker-months","st-host-direction","disabled","full-width"],xb=vt({componentName:Nb,baseSelector:"div"}),Tb=(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:jb,monthInput:Db,dayInput:vb,inputsRow:zb}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},Cb=j(ut({componentNameOverride:L("input-wrapper")}),ut({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...jb,property:"padding"},inputsRowGap:{...zb,property:"gap"},inputWidth:[{...Db,property:"width"},{...vb,property:"width"}]}}),pt,ht)(class extends xb{static get observedAttributes(){return[].concat(xb.observedAttributes||[],Ib)}#yn=null;#bn=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 ',f("\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.#yn}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#yn=null:this.#yn=e,null!=this.#bn&&null!=this.#yn&&this.#bn>yb[this.#yn-1]&&(this.#bn=1),this.#Nn(),this.#In(),this.#xn(),this.#D()}get day(){return this.#bn}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#yn&&e>yb[this.#yn-1]?this.#bn=null:this.#bn=e,this.#xn(),this.#D()}set value(t){if(!t)return void this.#Tn();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}#Tn(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#yn||null==this.#bn?"":`${String(this.#yn).padStart(2,"0")}/${String(this.#bn).padStart(2,"0")}`}init(){super.init?.(),this.#jn(),this.#Dn();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#yn&&this.#Tn(),A(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),A(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.#vn())}get#zn(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:bb})(this.getAttribute("picker-months"))}#jn(){this.#vn(),this.monthInput.addEventListener("input",this.#Cn.bind(this))}#Dn(){this.dayInput.addEventListener("input",this.#Sn.bind(this))}#vn(){Tb(this.#zn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#Nn()}#In(){const t=yb[this.#yn-1]??0;Tb((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#Nn(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#yn?String(this.#yn):"")})}#xn(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#bn?String(this.#bn):"")})}#Cn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#yn&&(this.month=i)}#Sn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#bn&&(this.day=i)}#D(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#yn,day:this.#bn},bubbles:!0,composed:!0}))}getValidity(){return{}}}),Sb=Cb.cssVarList,Lb={[Sb.fontFamily]:Ap.fontFamily,[Sb.fontSize]:Ap.fontSize,[Sb.hostDirection]:Ap.direction,[Sb.inputWidth]:"130px",[Sb.pickerPadding]:"1em 1em",[Sb.inputsRowGap]:"0.5em",_fullWidth:{[Sb.hostWidth]:"100%"}};var wb=Object.freeze({__proto__:null,default:Lb,vars:Sb});const Ab={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}},fb=Object.keys(Ab).map(t=>`data-operator-label-${t}`),Eb={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"]},kb=(t,e)=>({id:t,...e[t]||{}}),Ob=(t,e,i,o=Ab)=>{const n=((i||Eb)[t]||[]).map(t=>kb(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)||kb(e,o),...i}}):n},Vb=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,Ab[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},Wb=(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))},Rb=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):[]},Ub=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var Yb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const Qb=L("filter-row"),Bb=["text","number","email"],Pb=["boolean","singleselect"],Zb=t=>!t||Bb.includes(t),Fb=t=>Pb.includes(t),Gb=t=>"multiselect"===t,Hb=()=>new Promise(t=>setTimeout(t)),{host:Jb}={host:{selector:()=>":host"}},$b=j(ut({mappings:{hostWidth:{...Jb,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...Jb,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>To.componentName,property:To.cssVarList.hostDirection},{selector:()=>Uh.componentName,property:Uh.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>To.componentName,property:To.cssVarList.hostWidth},{selector:()=>Xn.componentName,property:Xn.cssVarList.hostWidth},{selector:()=>Uh.componentName,property:Uh.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Oo.componentName}.delete-btn[disabled="true"]`,property:Oo.cssVarList.iconColor}}}),ht,t=>class extends t{#Xt=[];#Ln=null;#wn=!1;#An;#fn;#En;#kn;#On;#Vn;#Wn=null;#Rn=(t=>{let e;const i=(...i)=>{clearTimeout(e),e=setTimeout(()=>t(...i),350)};return i.cancel=()=>clearTimeout(e),i})(()=>this.#D());static get observedAttributes(){return[...t.observedAttributes||[],"data","value","disable-delete","label-type","operators-catalog","data-value-label-true","data-value-label-false",...fb]}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="${Yb}" src-dark="${Yb}"></descope-icon>\n </slot>\n </descope-button>\n </div>\n `,f("\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.#An=this.shadowRoot.querySelector(".col-select"),this.#fn=this.shadowRoot.querySelector(".op-select"),this.#En=this.shadowRoot.querySelector(".text-value"),this.#kn=this.shadowRoot.querySelector(".combo-value"),this.#On=this.shadowRoot.querySelector(".multi-value"),this.#Vn=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Un(),this.#Vn.addEventListener("click",()=>this.#Yn("delete")),this.#Yi()}#Yi(){const t=[this.#An,this.#fn,this.#En,this.#kn,this.#On];[...t,this.#Vn].forEach(t=>A(this,t,{includeAttrs:["size","disabled"]})),this.#Qn(),t.forEach(t=>A(this,t,{includeAttrs:["label-type"]}))}#Qn(){const t=t=>({includeAttrs:[t],mapAttrs:{[t]:"placeholder"}});A(this,this.#An,t("data-column-placeholder")),A(this,this.#fn,t("data-operator-placeholder")),[this.#En,this.#kn,this.#On].forEach(e=>A(this,e,t("data-value-placeholder")))}#Bn(t,e){const i=this.#wn;this.#wn=!0,t.value=e,this.#wn=i}#Un(){this.shadowRoot.querySelector(".row").addEventListener("input",t=>{this.#wn||(t.target===this.#An?this.#Pn():t.target===this.#fn?this.#Zn():this.#Fn()?this.#Rn():this.#D())})}#Fn(){return!this.#En.classList.contains("hidden")}#Gn(t){return this.#Xt.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"}#Hn(){return[{value:"true",label:this.trueLabel},{value:"false",label:this.falseLabel}]}#Jn(t){return t?Ob(t.inputType,t.operators,Ub(this,"operators-catalog")).map(t=>{const e=this.getAttribute(`data-operator-label-${t.id}`);return e?{...t,label:e}:t}):[]}#Pn(){const t=this.#Gn(this.#An.value);if(!t)return;this.#Rn.cancel();const e=this.#Jn(t);this.#fn.data=e.map(t=>({value:t.id,label:t.label}));const i=e.find(t=>t.id===this.#fn.value)||e[0];i&&this.#Bn(this.#fn,i.id);const o=this.#Wn,n=t.inputType,r=o!==n;this.#Wn=n,this.#$n(t,i,{resetValue:r}),this.#D()}#Zn(){const t=this.#Gn(this.#An.value),e=this.#Jn(t).find(t=>t.id===this.#fn.value);this.#$n(t,e),this.#D()}#$n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#qn(o),Zb(o)?this.#_n(o,n):Fb(o)?this.#Xn(t,n):Gb(o)&&this.#Kn(t,n)}#qn(t){this.#En.classList.toggle("hidden",!Zb(t)),this.#kn.classList.toggle("hidden",!Fb(t)),this.#On.classList.toggle("hidden",!Gb(t))}#_n(t,e){"number"===t?this.#En.setAttribute("type","number"):"email"===t?this.#En.setAttribute("type","email"):this.#En.removeAttribute("type"),e&&this.#Bn(this.#En,"")}#Xn(t,e){const i="boolean"===t.inputType?this.#Hn():t.options||[];this.#kn.data=i.map(t=>({value:t.value,label:t.label})),e&&this.#Bn(this.#kn,"")}#Kn(t,e){this.#On.data=(t.options||[]).map(t=>({value:t.value,label:t.label})),e&&this.#Bn(this.#On,[])}#tr(t){return Gb(t)?this.#On:Fb(t)?this.#kn:Zb(t)?this.#En:null}#er(t){const e=this.#tr(t.inputType);return e?e.value??(Gb(t.inputType)?[]:""):null}#ir(){const t=this.#An?.value||"",e=this.#fn?.value||"",i=this.#Gn(t),o=this.#Jn(i).find(t=>t.id===e),n=!!o?.noValue,r=o&&!n&&i?this.#er(i):null;return{id:this.#Ln,column:t,operator:e,value:r,noValue:n}}#Yn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#D(){this.#Yn("change",{value:this.#ir()})}async#or(t){if(this.#Ln=t.id??null,t.column){this.#wn=!0;try{const e=this.#Gn(t.column);if(!e)return;await Hb(),this.#An.value=t.column;const i=this.#Jn(e);if(this.#fn.data=i.map(t=>({value:t.id,label:t.label})),t.operator){await Hb(),this.#fn.value=t.operator;const o=i.find(e=>e.id===t.operator);this.#$n(e,o)}null!==t.value&&void 0!==t.value&&(await Hb(),this.#nr(e,t.value))}finally{this.#wn=!1}}}#nr(t,e){const i=t.inputType,o=this.#tr(i);o&&(Gb(i)?this.#Bn(o,Array.isArray(e)?e:[]):Fb(i)?this.#Bn(o,String(e)):this.#Bn(o,e??""))}#rr(t){const e="floating"===t;[this.#An,this.#fn,this.#En,this.#kn,this.#On].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.#ir())}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.#sr(i),"value"===t&&this.#ar(i),"label-type"===t&&this.#rr(i),"disable-delete"===t&&this.#lr(i),("operators-catalog"===t||t.startsWith("data-operator-label-"))&&this.#dr(),"data-value-label-true"!==t&&"data-value-label-false"!==t||this.#cr())}#sr(t){if(t)try{this.#Xt=JSON.parse(t),this.#An.data=this.#Xt.map(t=>({value:t.id,label:t.label}))}catch{}}#ar(t){if(t)try{this.#or(JSON.parse(t))}catch{}}#lr(t){null!==t&&"false"!==t?this.#Vn.setAttribute("disabled","true"):this.#Vn.removeAttribute("disabled")}#cr(){const t=this.#Gn(this.#An?.value);t&&"boolean"===t.inputType&&this.#kn&&(this.#kn.data=this.#Hn())}#dr(){const t=this.#Gn(this.#An?.value);if(!t||!this.#fn)return;const e=this.#Jn(t);this.#fn.data=e.map(t=>({value:t.id,label:t.label}))}})(bt({componentName:Qb,baseSelector:".row"})),qb=L("filter-rows"),{host:_b,container:Xb,rowsList:Kb,actions:tN,addRowIcon:eN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},iN=j(ut({mappings:{hostWidth:{..._b,property:"width"},hostMinWidth:{..._b,property:"min-width"},hostDirection:[{..._b,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>$b.componentName,property:$b.cssVarList.hostDirection}],containerWidth:{...Xb,property:"width"},containerPadding:{...Xb,property:"padding"},containerGap:{...Xb,property:"gap"},listGap:{...Kb,property:"gap"},listMaxHeight:{...Kb,property:"max-height"},actionsGap:{...tN,property:"gap"},addRowIconSize:[{...eN,property:"width"},{...eN,property:"height"}]}}),ht,t=>class extends t{#De=[];#ur=0;#pr(){return this.#ur+=1,`row-${this.#ur}`}#hr(){return{id:this.#pr(),column:"",operator:"",value:null}}#gr(t){const e=t.value,i=null!=e&&""!==e&&!(Array.isArray(e)&&0===e.length);return!t.column&&!t.operator&&!i}#Mr=[];#mr;#yr;#br;#Nr;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 ',f('\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.#mr=this.shadowRoot.querySelector(".rows-list"),this.#yr=this.shadowRoot.querySelector(".add-row"),this.#br=this.shadowRoot.querySelector(".add-button-label"),this.#Nr=this.shadowRoot.querySelector(".clear-all")}init(){super.init?.(),z(this,this.#Ir.bind(this)),this.#yr.addEventListener("click",this.#xr.bind(this)),this.#Nr.addEventListener("click",this.#Tr.bind(this)),this.#mr.addEventListener("change",this.#jr.bind(this)),this.#mr.addEventListener("delete",this.#Dr.bind(this)),[this.#yr,this.#Nr].forEach(t=>A(this,t,{includeAttrs:["size"]})),this.#vr(),this.#Ir(),this.#zr(),this.#we(),setTimeout(()=>this.#Cr())}#vr(){const t=Ub(this,"data");this.#Mr=Array.isArray(t)?t:[]}#Ir(){this.#mr.querySelectorAll(Qb).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#Sr(t)})}#Lr(){const t=new Set(this.#De.map(t=>t.id));this.#mr.querySelectorAll(Qb).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#wr(t){return this.#mr.querySelector(`${Qb}[data-row-id="${t}"]`)}#we(){this.#Lr(),this.#De.forEach(t=>{(this.#wr(t.id)||this.#Ar(t.id)).setAttribute("value",JSON.stringify(t))}),this.#Cr(),this.#fr()}#Ar(t){const e=document.createElement(Qb);return e.dataset.rowId=t,this.#mr.appendChild(e),A(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",...fb]}),this.#Sr(e),e}#Sr(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)})}#Cr(){const t=1===this.#De.length&&this.#gr(this.#De[0]);this.#mr.querySelectorAll(Qb).forEach(e=>{t?e.setAttribute("disable-delete",""):e.removeAttribute("disable-delete")}),t?this.#Nr.setAttribute("disabled","true"):this.#Nr.removeAttribute("disabled")}#zr(){0===this.#De.length&&(this.#De=[this.#hr()])}#fr(){const t=parseInt(this.getAttribute("max-rows"),10),e=!Number.isNaN(t)&&this.#De.length>=t;this.#yr.classList.toggle("hidden",e)}#xr(){this.#De=[...this.#De,this.#hr()],this.#we(),this.#D()}#Tr(){this.#De=[this.#hr()],this.#we(),this.#Yn("clear")}#jr(t){const e=t.target.closest(Qb);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#De=this.#De.map(e=>e.id===i?t.detail.value:e),this.#Cr(),this.#D()}#Dr(t){const e=t.target.closest(Qb);if(!e)return;const i=e.dataset.rowId;this.#De=this.#De.filter(t=>t.id!==i),this.#zr(),this.#we(),this.#D()}#Yn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Er({column:t,operator:e}){const i=this.#Mr.find(e=>e.id===t);return i&&Ob(i.inputType,i.operators,Ub(this,"operators-catalog")).find(t=>t.id===e)||null}#kr(t){const e=this.#Er(t);return e?{...null!=e.prefix&&{prefix:e.prefix},...null!=e.suffix&&{suffix:e.suffix}}:{}}#D(){const t=t=>({column:t.column,operator:t.operator,value:t.value,...this.#kr(t)}),e=this.#De.filter(Vb).map(t),i=this.#De.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Yn("change",{value:e,rows:i})}get value(){return JSON.stringify(this.#De)}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"}#Or(){this.#br.textContent=this.addButtonLabel}#Vr(){this.#Nr.textContent=this.clearAllButtonLabel}#Wr(t){if(t)try{const e=JSON.parse(t);this.#De=(Array.isArray(e)?e:[]).map(t=>{const e=this.#Er(t);return{...t,id:t.id||this.#pr(),...e&&{noValue:!!e.noValue}}}),this.#zr(),this.#we()}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&(this.#vr(),this.#we()),"value"===t&&this.#Wr(i),"add-button-label"===t&&this.#Or(),"clear-all-button-label"===t&&this.#Vr(),"max-rows"===t&&this.#fr())}})(bt({componentName:qb,baseSelector:".container"})),oN=L("filter"),nN=bt({componentName:oN,baseSelector:"vaadin-popover"}),rN=["add-row-icon","delete-row-icon"],{host:sN,overlay:aN,backdrop:lN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},dN=j(ut({mappings:{hostWidth:{...sN,property:"width"},hostDirection:[{...sN,property:"direction"},{selector:()=>Oo.componentName,property:Oo.cssVarList.hostDirection},{selector:()=>iN.componentName,property:iN.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:()=>my.componentName,property:my.cssVarList.offsetX},counterOffsetY:{selector:()=>my.componentName,property:my.cssVarList.offsetY},rowsHostWidth:{selector:()=>iN.componentName,property:iN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>iN.componentName,property:iN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>iN.componentName,property:iN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>iN.componentName,property:iN.cssVarList.containerGap},rowsListGap:{selector:()=>iN.componentName,property:iN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>iN.componentName,property:iN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>iN.componentName,property:iN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>iN.componentName,property:iN.cssVarList.addRowIconSize},rowWidth:{...sN,property:$b.cssVarList.hostWidth},rowMinWidth:{...sN,property:$b.cssVarList.hostMinWidth},rowValueWidth:{...sN,property:$b.cssVarList.inputWidth},rowGap:{...sN,property:$b.cssVarList.rowGap},rowDisabledDeleteColor:{...sN,property:$b.cssVarList.deleteDisabledIconColor}}}),kt({name:"overlay",selector:"",mappings:{marginTop:{...aN,property:"margin-top"},width:{...aN},backgroundColor:{...aN},backdropBackgroundColor:{...lN,property:"background-color"},backdropPointerEvents:{...lN,property:"pointer-events"},padding:{...aN},boxShadow:{...aN},borderRadius:{...aN},outlineWidth:{...aN},outlineColor:{...aN},outlineStyle:{...aN}}}),pt,ht)(class extends nN{#Rr=[];#Ur=!1;#ct;#W=null;#Yr=null;#Qr=null;static get observedAttributes(){return[...nN.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 ',f('\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.#Qr??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Qr}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(qb)||null}init(){super.init?.(),this.#Wo(),this.#Br(),this.#Pr(),A(this,this.triggerBtn,{includeAttrs:["button-mode","button-variant","size","full-width"],mapAttrs:{"button-mode":"mode","button-variant":"variant"}}),this.#Zr(),setTimeout(()=>{this.#it()})}#Zr(){rN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Yr?.isConnected&&Wb(this,this.#Yr,[t])})})}#Wo(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#dt(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(qb);A(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",...fb],mapAttrs:{operators:"operators-catalog"}}),this.#Fr(e),t.appendChild(e),this.#Yr=e,e.setAttribute("value",JSON.stringify(this.#Rr)),e.addEventListener("change",this.#Gr.bind(this)),e.addEventListener("clear",this.#Hr.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.#Yr&&Wb(this,this.#Yr,rN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(),t.style.setProperty("visibility","visible")},50)}#pt(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ct&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ct));const e=document.body.getBoundingClientRect(),i=this.triggerBtn.getBoundingClientRect(),o=this.overlay.getBoundingClientRect(),n=i.left-o.left,r=o.left,s=e.width-o.right;let a;a=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),r);const l=Math.round(this.getBoundingClientRect().width);this.#ct=f(`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${a}px;\n ${this.isFullWidth?`width: ${l}px; max-width: ${l}px;`:""}\n }\n `,t)}#Yn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Jr(t){this.#Ur=!0,this.setAttribute("value",JSON.stringify(Rb(t))),this.#Ur=!1}#Gr(t){const e=Rb(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Rr)&&(this.#Jr(e),this.#Yn("filter-apply",{value:this.#Rr,action:"apply"}))}#Hr(){this.#Jr([]),this.#Yn("filter-clear",{value:this.#Rr,action:"clear-all"})}#Br(){if(!this.counter)return;const t=this.#Rr.length;this.counterText.textContent=String(t),this.counter.classList.toggle("hidden",t<1||!this.isIndicatorVisible)}#Pr(){if(!this.triggerLabel)return;const t=this.getAttribute("label")||"";this.triggerLabel.textContent=t,this.triggerLabel.classList.toggle("hidden",!t)}#Fr(t){t&&this.#W&&t.setAttribute("data",JSON.stringify(this.#W))}get value(){return JSON.stringify(this.#Rr)}set value(t){this.#Jr(t)}set data(t){this.#W=Array.isArray(t)?t:null,this.filterRowsElement&&this.#W&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#W))}get data(){return this.#W}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{})}get readOnly(){return"true"===this.getAttribute("read-only")}onPopoverToggle(){this.readOnly||(this.opened?this.closePopover():this.openPopover())}openPopover(){this.setAttribute("opened","true"),this.baseElement.opened=!0}closePopover(){this.removeAttribute("opened"),this.baseElement.opened=!1}#$r(t){t&&(this.#Rr=Rb(t),this.#Br(),this.#Ur||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Rr)))}#qr(t){if(t)try{this.#W=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#W))}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("value"===t&&this.#$r(i),"data"===t&&this.#qr(i),"label"===t&&this.#Pr(),"disable-indicator"===t&&this.#Br())}}),cN=it(rp),uN="#00000020",{shadow:pN}=cN,hN=dN.cssVarList,gN={[hN.counterBorderRadius]:"50%",[hN.counterWidth]:"1.5em",[hN.counterHeight]:"1.5em",[hN.counterFontSize]:"0.5em",[hN.counterLineHeight]:"2.25em",[hN.counterBackgroundColor]:cN.colors.primary.main,[hN.counterTextColor]:cN.colors.primary.contrast,[hN.counterOffsetX]:"-0.725em",[hN.counterOffsetY]:"0",_fullWidth:{[hN.hostWidth]:"100%"},[hN.overlay.backgroundColor]:cN.colors.surface.main,[hN.overlay.backdropBackgroundColor]:"transparent",[hN.overlay.backdropPointerEvents]:"all",[hN.overlay.boxShadow]:`${pN.wide.xl} ${uN}, ${pN.narrow.xl} ${uN}`,[hN.overlay.borderRadius]:rp.radius.xs,[hN.overlay.outlineWidth]:"0",[hN.overlay.outlineColor]:"transparent",[hN.overlay.outlineStyle]:"none",[hN.overlay.padding]:"0",[hN.rowsHostWidth]:"100%",[hN.rowsContainerWidth]:"100%",[hN.rowsContainerPadding]:cN.spacing.lg,[hN.rowsContainerGap]:cN.spacing.md,[hN.rowsListGap]:cN.spacing.sm,[hN.rowsListMaxHeight]:"400px",[hN.rowsActionsGap]:cN.spacing.md,[hN.rowsAddRowIconSize]:"1.25em",[hN.rowWidth]:"100%",[hN.rowMinWidth]:"30em",[hN.rowValueWidth]:"100%",[hN.rowGap]:cN.spacing.md,[hN.rowDisabledDeleteColor]:cN.colors.surface.light};var MN=Object.freeze({__proto__:null,default:gN,vars:hN});const mN=Kt("input-wrapper"),yN=Ce(tp),[bN,NN,IN]=Ve({labelTextColor:yN.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:yN.colors.surface.contrast,placeholderTextColor:yN.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:yN.colors.surface.dark,errorMessageTextColor:yN.colors.error.main,successMessageTextColor:yN.colors.success.main,borderWidth:yN.border.xs,borderRadius:yN.radius.xs,borderColor:"transparent",outlineWidth:yN.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:yN.colors.surface.main,fontFamily:yN.fonts.font1.family,direction:yN.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:yN.border.xs,borderColor:yN.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:yN.colors.error.main}},_focused:{outlineColor:yN.colors.surface.light,_invalid:{outlineColor:yN.colors.error.main}},_disabled:{labelTextColor:yN.colors.surface.light,borderColor:yN.colors.surface.light,valueTextColor:yN.colors.surface.light,placeholderTextColor:yN.colors.surface.light,helperTextColor:yN.colors.surface.light,backgroundColor:yN.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},mN);var xN=Object.freeze({__proto__:null,default:bN,refs:NN,vars:IN});const TN=Ce(tp),jN=ps.cssVarList,DN={[jN.hostWidth]:NN.width,[jN.hostMinWidth]:NN.minWidth,[jN.hostDirection]:NN.direction,[jN.fontSize]:NN.fontSize,[jN.fontFamily]:NN.fontFamily,[jN.labelFontSize]:NN.labelFontSize,[jN.labelFontWeight]:NN.labelFontWeight,[jN.inputValueFontWeight]:NN.inputValueFontWeight,[jN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[jN.helperTextFontWeight]:NN.helperTextFontWeight,[jN.errorMessageFontWeight]:NN.errorMessageFontWeight,[jN.labelTextColor]:NN.labelTextColor,[jN.errorMessageTextColor]:NN.errorMessageTextColor,[jN.inputHorizontalPadding]:NN.horizontalPadding,[jN.inputHeight]:NN.inputHeight,[jN.inputBackgroundColor]:NN.backgroundColor,[jN.labelRequiredIndicator]:NN.requiredIndicator,[jN.inputValueTextColor]:NN.valueTextColor,[jN.inputPlaceholderTextColor]:NN.placeholderTextColor,[jN.inputBorderWidth]:NN.borderWidth,[jN.inputBorderStyle]:NN.borderStyle,[jN.inputBorderColor]:NN.borderColor,[jN.inputBorderRadius]:NN.borderRadius,[jN.inputOutlineWidth]:NN.outlineWidth,[jN.inputOutlineStyle]:NN.outlineStyle,[jN.inputOutlineColor]:NN.outlineColor,[jN.inputOutlineOffset]:NN.outlineOffset,[jN.revealButtonOffset]:TN.spacing.md,[jN.revealButtonSize]:NN.toggleButtonSize,[jN.revealButtonColor]:NN.placeholderTextColor,[jN.labelPosition]:NN.labelPosition,[jN.labelTopPosition]:NN.labelTopPosition,[jN.labelHorizontalPosition]:NN.labelHorizontalPosition,[jN.inputTransformY]:NN.inputTransformY,[jN.inputTransition]:NN.inputTransition,[jN.marginInlineStart]:NN.marginInlineStart,[jN.placeholderOpacity]:NN.placeholderOpacity,[jN.inputVerticalAlignment]:NN.inputVerticalAlignment,[jN.valueInputHeight]:NN.valueInputHeight,[jN.errorMessageIcon]:NN.errorMessageIcon,[jN.errorMessageIconSize]:NN.errorMessageIconSize,[jN.errorMessageIconPadding]:NN.errorMessageIconPadding,[jN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[jN.errorMessageIconPosition]:NN.errorMessageIconPosition,[jN.errorMessageFontSize]:NN.errorMessageFontSize};var vN=Object.freeze({__proto__:null,default:DN,vars:jN});const zN=fr.cssVarList,CN={[zN.hostWidth]:NN.width,[zN.hostMinWidth]:NN.minWidth,[zN.hostDirection]:NN.direction,[zN.fontSize]:NN.fontSize,[zN.fontFamily]:NN.fontFamily,[zN.labelFontSize]:NN.labelFontSize,[zN.labelFontWeight]:NN.labelFontWeight,[zN.inputValueFontWeight]:NN.inputValueFontWeight,[zN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[zN.helperTextFontWeight]:NN.helperTextFontWeight,[zN.errorMessageFontWeight]:NN.errorMessageFontWeight,[zN.labelTextColor]:NN.labelTextColor,[zN.errorMessageTextColor]:NN.errorMessageTextColor,[zN.inputValueTextColor]:NN.valueTextColor,[zN.inputPlaceholderColor]:NN.placeholderTextColor,[zN.inputBorderWidth]:NN.borderWidth,[zN.inputBorderStyle]:NN.borderStyle,[zN.inputBorderColor]:NN.borderColor,[zN.inputBorderRadius]:NN.borderRadius,[zN.inputOutlineWidth]:NN.outlineWidth,[zN.inputOutlineStyle]:NN.outlineStyle,[zN.inputOutlineColor]:NN.outlineColor,[zN.inputOutlineOffset]:NN.outlineOffset,[zN.inputBackgroundColor]:NN.backgroundColor,[zN.labelRequiredIndicator]:NN.requiredIndicator,[zN.inputHorizontalPadding]:NN.horizontalPadding,[zN.inputHeight]:NN.inputHeight,[zN.labelPosition]:NN.labelPosition,[zN.labelTopPosition]:NN.labelTopPosition,[zN.labelHorizontalPosition]:NN.labelHorizontalPosition,[zN.inputTransformY]:NN.inputTransformY,[zN.inputTransition]:NN.inputTransition,[zN.marginInlineStart]:NN.marginInlineStart,[zN.placeholderOpacity]:NN.placeholderOpacity,[zN.inputVerticalAlignment]:NN.inputVerticalAlignment,[zN.valueInputHeight]:NN.valueInputHeight,[zN.valueInputMarginBottom]:NN.valueInputMarginBottom,[zN.errorMessageIcon]:NN.errorMessageIcon,[zN.errorMessageIconSize]:NN.errorMessageIconSize,[zN.errorMessageIconPadding]:NN.errorMessageIconPadding,[zN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[zN.errorMessageIconPosition]:NN.errorMessageIconPosition,[zN.errorMessageFontSize]:NN.errorMessageFontSize};var SN=Object.freeze({__proto__:null,default:CN,vars:zN});const LN=jr.cssVarList,wN={[LN.hostWidth]:NN.width,[LN.hostMinWidth]:NN.minWidth,[LN.hostDirection]:NN.direction,[LN.fontSize]:NN.fontSize,[LN.fontFamily]:NN.fontFamily,[LN.labelFontSize]:NN.labelFontSize,[LN.labelFontWeight]:NN.labelFontWeight,[LN.inputValueFontWeight]:NN.inputValueFontWeight,[LN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[LN.helperTextFontWeight]:NN.helperTextFontWeight,[LN.errorMessageFontWeight]:NN.errorMessageFontWeight,[LN.labelTextColor]:NN.labelTextColor,[LN.errorMessageTextColor]:NN.errorMessageTextColor,[LN.inputValueTextColor]:NN.valueTextColor,[LN.labelRequiredIndicator]:NN.requiredIndicator,[LN.inputPlaceholderColor]:NN.placeholderTextColor,[LN.inputBorderWidth]:NN.borderWidth,[LN.inputBorderStyle]:NN.borderStyle,[LN.inputBorderColor]:NN.borderColor,[LN.inputBorderRadius]:NN.borderRadius,[LN.inputOutlineWidth]:NN.outlineWidth,[LN.inputOutlineStyle]:NN.outlineStyle,[LN.inputOutlineColor]:NN.outlineColor,[LN.inputOutlineOffset]:NN.outlineOffset,[LN.inputBackgroundColor]:NN.backgroundColor,[LN.inputHorizontalPadding]:NN.horizontalPadding,[LN.inputHeight]:NN.inputHeight,[LN.labelPosition]:NN.labelPosition,[LN.labelTopPosition]:NN.labelTopPosition,[LN.labelHorizontalPosition]:NN.labelHorizontalPosition,[LN.inputTransformY]:NN.inputTransformY,[LN.inputTransition]:NN.inputTransition,[LN.marginInlineStart]:NN.marginInlineStart,[LN.placeholderOpacity]:NN.placeholderOpacity,[LN.inputVerticalAlignment]:NN.inputVerticalAlignment,[LN.valueInputHeight]:NN.valueInputHeight,[LN.valueInputMarginBottom]:NN.valueInputMarginBottom,[LN.errorMessageIcon]:NN.errorMessageIcon,[LN.errorMessageIconSize]:NN.errorMessageIconSize,[LN.errorMessageIconPadding]:NN.errorMessageIconPadding,[LN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[LN.errorMessageIconPosition]:NN.errorMessageIconPosition,[LN.errorMessageFontSize]:NN.errorMessageFontSize};var AN=Object.freeze({__proto__:null,default:wN,vars:LN});const fN=Ts.cssVarList,EN={[fN.hostWidth]:NN.width,[fN.hostMinWidth]:NN.minWidth,[fN.hostDirection]:NN.direction,[fN.fontSize]:NN.fontSize,[fN.fontFamily]:NN.fontFamily,[fN.labelFontSize]:NN.labelFontSize,[fN.labelFontWeight]:NN.labelFontWeight,[fN.inputValueFontWeight]:NN.inputValueFontWeight,[fN.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[fN.helperTextFontWeight]:NN.helperTextFontWeight,[fN.errorMessageFontWeight]:NN.errorMessageFontWeight,[fN.labelTextColor]:NN.labelTextColor,[fN.labelRequiredIndicator]:NN.requiredIndicator,[fN.errorMessageTextColor]:NN.errorMessageTextColor,[fN.inputBackgroundColor]:NN.backgroundColor,[fN.inputValueTextColor]:NN.valueTextColor,[fN.inputPlaceholderTextColor]:NN.placeholderTextColor,[fN.inputBorderRadius]:NN.borderRadius,[fN.inputBorderWidth]:NN.borderWidth,[fN.inputBorderStyle]:NN.borderStyle,[fN.inputBorderColor]:NN.borderColor,[fN.inputOutlineWidth]:NN.outlineWidth,[fN.inputOutlineStyle]:NN.outlineStyle,[fN.inputOutlineColor]:NN.outlineColor,[fN.inputOutlineOffset]:NN.outlineOffset,[fN.inputResizeType]:"vertical",[fN.inputMinHeight]:"5em",[fN.errorMessageIcon]:NN.errorMessageIcon,[fN.errorMessageIconSize]:NN.errorMessageIconSize,[fN.errorMessageIconPadding]:NN.errorMessageIconPadding,[fN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[fN.errorMessageIconPosition]:NN.errorMessageIconPosition,[fN.errorMessageFontSize]:NN.errorMessageFontSize,textAlign:{right:{[fN.inputTextAlign]:"right"},left:{[fN.inputTextAlign]:"left"},center:{[fN.inputTextAlign]:"center"}},_readonly:{[fN.inputResizeType]:"none"}};var kN=Object.freeze({__proto__:null,default:EN,vars:fN});const ON=zi.cssVarList,VN="1.35em",WN={[ON.hostWidth]:NN.width,[ON.hostDirection]:NN.direction,[ON.fontSize]:NN.fontSize,[ON.fontFamily]:NN.fontFamily,[ON.labelTextColor]:NN.labelTextColor,[ON.labelRequiredIndicator]:NN.requiredIndicator,[ON.labelFontWeight]:"400",[ON.labelLineHeight]:VN,[ON.labelSpacing]:"1em",[ON.errorMessageTextColor]:NN.errorMessageTextColor,[ON.inputOutlineWidth]:NN.outlineWidth,[ON.inputOutlineOffset]:NN.outlineOffset,[ON.inputOutlineColor]:NN.outlineColor,[ON.inputOutlineStyle]:NN.outlineStyle,[ON.inputBorderRadius]:NN.borderRadius,[ON.inputBorderColor]:NN.borderColor,[ON.inputBorderWidth]:NN.borderWidth,[ON.inputBorderStyle]:NN.borderStyle,[ON.inputBackgroundColor]:NN.backgroundColor,[ON.inputSize]:VN,[ON.inputValueTextColor]:NN.valueTextColor,[ON.errorMessageIcon]:NN.errorMessageIcon,[ON.errorMessageIconSize]:NN.errorMessageIconSize,[ON.errorMessageIconPadding]:NN.errorMessageIconPadding,[ON.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[ON.errorMessageIconPosition]:NN.errorMessageIconPosition,[ON.errorMessageFontSize]:NN.errorMessageFontSize};var RN=Object.freeze({__proto__:null,default:WN,vars:ON});const UN="2px",YN=Ce(tp),QN=qi.cssVarList,BN={[QN.hostWidth]:NN.width,[QN.hostDirection]:NN.direction,[QN.fontSize]:NN.fontSize,[QN.fontFamily]:NN.fontFamily,[QN.inputOutlineWidth]:NN.outlineWidth,[QN.inputOutlineOffset]:NN.outlineOffset,[QN.inputOutlineColor]:NN.outlineColor,[QN.inputOutlineStyle]:NN.outlineStyle,[QN.trackBorderStyle]:NN.borderStyle,[QN.trackBorderWidth]:NN.borderWidth,[QN.trackBorderColor]:NN.borderColor,[QN.trackBackgroundColor]:NN.backgroundColor,[QN.trackBorderRadius]:YN.radius.md,[QN.trackWidth]:"2.5em",[QN.trackHeight]:"1.25em",[QN.knobSize]:`calc(1em - ${UN})`,[QN.knobRadius]:"50%",[QN.knobTopOffset]:"1px",[QN.knobLeftOffset]:UN,[QN.knobColor]:NN.labelTextColor,[QN.knobTransitionDuration]:"0.3s",[QN.labelTextColor]:NN.labelTextColor,[QN.labelFontWeight]:"400",[QN.labelLineHeight]:"1.35em",[QN.labelSpacing]:"1em",[QN.labelRequiredIndicator]:NN.requiredIndicator,[QN.errorMessageTextColor]:NN.errorMessageTextColor,[QN.errorMessageIcon]:NN.errorMessageIcon,[QN.errorMessageIconSize]:NN.errorMessageIconSize,[QN.errorMessageIconPadding]:NN.errorMessageIconPadding,[QN.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[QN.errorMessageIconPosition]:NN.errorMessageIconPosition,[QN.errorMessageFontSize]:NN.errorMessageFontSize,_checked:{[QN.trackBorderColor]:NN.borderColor,[QN.knobLeftOffset]:`calc(100% - var(${QN.knobSize}) - ${UN})`,[QN.knobColor]:NN.valueTextColor,[QN.knobTextColor]:NN.valueTextColor},_disabled:{[QN.knobColor]:YN.colors.surface.light,[QN.trackBorderColor]:YN.colors.surface.light,[QN.trackBackgroundColor]:YN.colors.surface.main,[QN.labelTextColor]:NN.labelTextColor,_checked:{[QN.knobColor]:YN.colors.surface.light,[QN.trackBackgroundColor]:YN.colors.surface.main}},_invalid:{[QN.trackBorderColor]:YN.colors.error.main,[QN.knobColor]:YN.colors.error.main}};var PN=Object.freeze({__proto__:null,default:BN,vars:QN});const ZN=Ce(tp),FN=ao.cssVarList,[GN,HN,JN]=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:$N}=HN,qN={...GN,[FN.itemsGrow]:"0",[FN.hostWidth]:"100%",[FN.hostHeight]:"auto",[FN.boxShadow]:"none",[FN.backgroundColor]:ZN.colors.surface.main,[FN.backgroundImage]:"",[FN.backgroundPositionX]:"center",[FN.backgroundPositionY]:"center",[FN.backgroundSize]:"cover",[FN.backgroundRepeat]:"no-repeat",[FN.color]:ZN.colors.surface.contrast,[FN.borderRadius]:"0px",[FN.hostDirection]:ZN.direction,[FN.borderStyle]:"none",[FN.borderWidth]:"unset",[FN.borderColor]:"unset",verticalPadding:{sm:{[FN.verticalPadding]:"5px"},md:{[FN.verticalPadding]:"10px"},lg:{[FN.verticalPadding]:"20px"}},horizontalPadding:{sm:{[FN.horizontalPadding]:"5px"},md:{[FN.horizontalPadding]:"10px"},lg:{[FN.horizontalPadding]:"20px"}},direction:{row:{[FN.flexDirection]:"row",[FN.alignItems]:HN.verticalAlignment,[FN.justifyContent]:HN.horizontalAlignment,[FN.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[JN.horizontalAlignment]:"space-between"}}},column:{[FN.flexDirection]:"column",[FN.alignItems]:HN.horizontalAlignment,[FN.justifyContent]:HN.verticalAlignment,verticalAlignment:{spaceBetween:{[JN.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[FN.gap]:"10px"},md:{[FN.gap]:"20px"},lg:{[FN.gap]:"30px"}},shadow:{sm:{[FN.boxShadow]:`${ZN.shadow.wide.sm} ${$N}, ${ZN.shadow.narrow.sm} ${$N}`},md:{[FN.boxShadow]:`${ZN.shadow.wide.md} ${$N}, ${ZN.shadow.narrow.md} ${$N}`},lg:{[FN.boxShadow]:`${ZN.shadow.wide.lg} ${$N}, ${ZN.shadow.narrow.lg} ${$N}`},xl:{[FN.boxShadow]:`${ZN.shadow.wide.xl} ${$N}, ${ZN.shadow.narrow.xl} ${$N}`},"2xl":{[JN.shadowColor]:"#00000050",[FN.boxShadow]:`${ZN.shadow.wide["2xl"]} ${$N}`}},"&borderRadius":{sm:{[FN.borderRadius]:ZN.radius.sm},md:{[FN.borderRadius]:ZN.radius.md},lg:{[FN.borderRadius]:ZN.radius.lg},xl:{[FN.borderRadius]:ZN.radius.xl},"2xl":{[FN.borderRadius]:ZN.radius["2xl"]},"3xl":{[FN.borderRadius]:ZN.radius["3xl"]}}},_N={...FN,...JN};var XN=Object.freeze({__proto__:null,default:qN,vars:_N});const KN=zr.cssVarList,tI={[KN.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var eI=Object.freeze({__proto__:null,default:tI,vars:KN});const iI=Sr.cssVarList,oI={[iI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var nI=Object.freeze({__proto__:null,default:oI,vars:iI});const rI=wr.cssVarList,sI={[rI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var aI=Object.freeze({__proto__:null,default:sI,vars:rI});const lI=Ce(tp),dI=Ir.cssVarList,[cI,uI,pI]=Ve({thickness:"2px",spacing:"10px"},hr),hI={...cI,[dI.hostDirection]:lI.direction,[dI.alignItems]:"center",[dI.flexDirection]:"row",[dI.alignSelf]:"stretch",[dI.hostWidth]:"100%",[dI.stripeColor]:lI.colors.surface.light,[dI.stripeColorOpacity]:"0.5",[dI.stripeHorizontalThickness]:uI.thickness,[dI.labelTextWidth]:"fit-content",[dI.labelTextMaxWidth]:"calc(100% - 100px)",[dI.labelTextHorizontalSpacing]:uI.spacing,[dI.textAlign]:"center",_vertical:{[dI.minHeight]:"200px",[dI.flexDirection]:"column",[dI.hostWidth]:"fit-content",[dI.hostPadding]:`0 calc(${uI.thickness} * 3)`,[dI.stripeVerticalThickness]:uI.thickness,[dI.labelTextWidth]:"fit-content",[dI.labelTextMaxWidth]:"100%",[dI.labelTextVerticalSpacing]:uI.spacing}},gI={...dI,...pI};var MI=Object.freeze({__proto__:null,default:hI,vars:gI});const mI=ts.cssVarList,yI={[mI.hostDirection]:NN.direction,[mI.fontFamily]:NN.fontFamily,[mI.fontSize]:NN.fontSize,[mI.labelTextColor]:NN.labelTextColor,[mI.labelRequiredIndicator]:NN.requiredIndicator,[mI.labelFontWeight]:NN.labelFontWeight,[mI.errorMessageTextColor]:NN.errorMessageTextColor,[mI.errorMessageFontWeight]:NN.errorMessageFontWeight,[mI.digitValueTextColor]:NN.valueTextColor,[mI.digitValueFontWeight]:NN.inputValueFontWeight,[mI.digitPadding]:"0",[mI.digitTextAlign]:"center",[mI.digitSpacing]:"4px",[mI.hostWidth]:NN.width,[mI.digitOutlineColor]:"transparent",[mI.digitOutlineWidth]:NN.outlineWidth,[mI.focusedDigitFieldOutlineColor]:NN.outlineColor,[mI.digitSize]:NN.inputHeight,[mI.errorMessageIcon]:NN.errorMessageIcon,[mI.errorMessageIconSize]:NN.errorMessageIconSize,[mI.errorMessageIconPadding]:NN.errorMessageIconPadding,[mI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[mI.errorMessageIconPosition]:NN.errorMessageIconPosition,[mI.errorMessageFontSize]:NN.errorMessageFontSize,size:{xs:{[mI.spinnerSize]:"15px"},sm:{[mI.spinnerSize]:"20px"},md:{[mI.spinnerSize]:"20px"},lg:{[mI.spinnerSize]:"20px"}},_hideCursor:{[mI.digitCaretTextColor]:"transparent"},_loading:{[mI.overlayOpacity]:NN.overlayOpacity}};var bI=Object.freeze({__proto__:null,default:yI,vars:mI});const NI=Ce(tp),II=eo.cssVarList,xI={[II.hostDisplay]:"inline-block",[II.hostWidth]:"100%",[II.barColor]:NI.colors.surface.contrast,[II.barWidth]:"20%",[II.barBackgroundColor]:NI.colors.surface.light,[II.barBorderRadius]:"4px",[II.animationDuration]:"2s",[II.animationTimingFunction]:"linear",[II.animationIterationCount]:"infinite",[II.verticalPadding]:"0.25em",size:{xs:{[II.barHeight]:"2px"},sm:{[II.barHeight]:"4px"},md:{[II.barHeight]:"6px"},lg:{[II.barHeight]:"8px"}},mode:{primary:{[II.barColor]:NI.colors.primary.main},secondary:{[II.barColor]:NI.colors.secondary.main}},_hidden:{[II.hostDisplay]:"none"}};var TI=Object.freeze({__proto__:null,default:xI,vars:II});const jI=Ce(tp),DI=no.cssVarList,[vI,zI,CI]=Ve({spinnerColor:jI.colors.surface.contrast,mode:{primary:{spinnerColor:jI.colors.primary.main},secondary:{spinnerColor:jI.colors.secondary.main}}},io),SI={...vI,[DI.animationDuration]:"2s",[DI.animationTimingFunction]:"linear",[DI.animationIterationCount]:"infinite",[DI.spinnerBorderStyle]:"solid",[DI.spinnerBorderWidth]:"0.2em",[DI.spinnerBorderRadius]:"50%",[DI.spinnerQuadrant1Color]:zI.spinnerColor,[DI.spinnerQuadrant2Color]:"transparent",[DI.spinnerQuadrant3Color]:zI.spinnerColor,[DI.spinnerQuadrant4Color]:"transparent",size:{xs:{[DI.spinnerSize]:"20px"},sm:{[DI.spinnerSize]:"30px"},md:{[DI.spinnerSize]:"40px"},lg:{[DI.spinnerSize]:"60px"},xl:{[DI.spinnerSize]:"80px"}},_hidden:{[DI.hostDisplay]:"none"}},LI={...DI,...CI};var wI=Object.freeze({__proto__:null,default:SI,vars:LI});const AI=Gs.cssVarList,fI={[AI.hostWidth]:NN.width,[AI.hostDirection]:NN.direction,[AI.fontSize]:NN.fontSize,[AI.fontFamily]:NN.fontFamily,[AI.labelFontSize]:NN.labelFontSize,[AI.labelFontWeight]:NN.labelFontWeight,[AI.inputValueFontWeight]:NN.inputValueFontWeight,[AI.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[AI.helperTextFontWeight]:NN.helperTextFontWeight,[AI.errorMessageFontWeight]:NN.errorMessageFontWeight,[AI.labelTextColor]:NN.labelTextColor,[AI.labelRequiredIndicator]:NN.requiredIndicator,[AI.errorMessageTextColor]:NN.errorMessageTextColor,[AI.inputValueTextColor]:NN.valueTextColor,[AI.inputPlaceholderTextColor]:NN.placeholderTextColor,[AI.inputBorderStyle]:NN.borderStyle,[AI.inputBorderWidth]:NN.borderWidth,[AI.inputBorderColor]:NN.borderColor,[AI.inputBorderRadius]:NN.borderRadius,[AI.inputOutlineStyle]:NN.outlineStyle,[AI.inputOutlineWidth]:NN.outlineWidth,[AI.inputOutlineColor]:NN.outlineColor,[AI.inputOutlineOffset]:NN.outlineOffset,[AI.phoneInputWidth]:NN.minWidth,[AI.countryCodeInputWidth]:"5em",[AI.countryCodeDropdownWidth]:"20em",[AI.marginInlineStart]:"-0.25em",[AI.valueInputHeight]:NN.valueInputHeight,[AI.valueInputMarginBottom]:NN.valueInputMarginBottom,[AI.errorMessageIcon]:NN.errorMessageIcon,[AI.errorMessageIconSize]:NN.errorMessageIconSize,[AI.errorMessageIconPadding]:NN.errorMessageIconPadding,[AI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[AI.errorMessageIconPosition]:NN.errorMessageIconPosition,[AI.errorMessageFontSize]:NN.errorMessageFontSize};var EI=Object.freeze({__proto__:null,default:fI,vars:AI});const kI=da.cssVarList,OI={[kI.hostWidth]:"16em",[kI.hostMinWidth]:NN.minWidth,[kI.hostDirection]:NN.direction,[kI.fontSize]:NN.fontSize,[kI.fontFamily]:NN.fontFamily,[kI.labelFontSize]:NN.labelFontSize,[kI.labelFontWeight]:NN.labelFontWeight,[kI.inputValueFontWeight]:NN.inputValueFontWeight,[kI.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[kI.helperTextFontWeight]:NN.helperTextFontWeight,[kI.errorMessageFontWeight]:NN.errorMessageFontWeight,[kI.labelTextColor]:NN.labelTextColor,[kI.labelRequiredIndicator]:NN.requiredIndicator,[kI.errorMessageTextColor]:NN.errorMessageTextColor,[kI.inputValueTextColor]:NN.valueTextColor,[kI.inputPlaceholderTextColor]:NN.placeholderTextColor,[kI.inputBorderStyle]:NN.borderStyle,[kI.inputBorderWidth]:NN.borderWidth,[kI.inputBorderColor]:NN.borderColor,[kI.inputBorderRadius]:NN.borderRadius,[kI.inputOutlineStyle]:NN.outlineStyle,[kI.inputOutlineWidth]:NN.outlineWidth,[kI.inputOutlineColor]:NN.outlineColor,[kI.inputOutlineOffset]:NN.outlineOffset,[kI.labelPosition]:NN.labelPosition,[kI.labelTopPosition]:NN.labelTopPosition,[kI.labelHorizontalPosition]:NN.labelHorizontalPosition,[kI.inputTransformY]:NN.inputTransformY,[kI.inputTransition]:NN.inputTransition,[kI.marginInlineStart]:NN.marginInlineStart,[kI.valueInputHeight]:NN.valueInputHeight,[kI.valueInputMarginBottom]:NN.valueInputMarginBottom,[kI.inputHorizontalPadding]:"0",[kI.errorMessageIcon]:NN.errorMessageIcon,[kI.errorMessageIconSize]:NN.errorMessageIconSize,[kI.errorMessageIconPadding]:NN.errorMessageIconPadding,[kI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[kI.errorMessageIconPosition]:NN.errorMessageIconPosition,[kI.errorMessageFontSize]:NN.errorMessageFontSize,_fullWidth:{[kI.hostWidth]:NN.width}};var VI=Object.freeze({__proto__:null,default:OI,vars:kI});const WI=Ce(tp),RI=Aa.cssVarList,UI={[RI.hostWidth]:NN.width,[RI.hostMinWidth]:NN.minWidth,[RI.hostDirection]:NN.direction,[RI.fontSize]:NN.fontSize,[RI.fontFamily]:NN.fontFamily,[RI.labelFontSize]:NN.labelFontSize,[RI.labelFontWeight]:NN.labelFontWeight,[RI.inputValueFontWeight]:NN.inputValueFontWeight,[RI.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[RI.helperTextFontWeight]:NN.helperTextFontWeight,[RI.errorMessageFontWeight]:NN.errorMessageFontWeight,[RI.labelTextColor]:NN.labelTextColor,[RI.spaceBetweenInputs]:"1em",[RI.errorMessageTextColor]:NN.errorMessageTextColor,[RI.policyPreviewBackgroundColor]:"none",[RI.policyPreviewPadding]:WI.spacing.lg,[RI.valueInputHeight]:NN.valueInputHeight,[RI.errorMessageIcon]:NN.errorMessageIcon,[RI.errorMessageIconSize]:NN.errorMessageIconSize,[RI.errorMessageIconPadding]:NN.errorMessageIconPadding,[RI.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[RI.errorMessageIconPosition]:NN.errorMessageIconPosition,[RI.errorMessageFontSize]:NN.errorMessageFontSize,_required:{[RI.inputsRequiredIndicator]:NN.requiredIndicator}};var YI=Object.freeze({__proto__:null,default:UI,vars:RI});const QI=il.cssVarList,BI={[QI.hostDirection]:NN.direction,[QI.labelTextColor]:NN.labelTextColor,[QI.fontFamily]:NN.fontFamily,[QI.iconSize]:"2em",[QI.hostPadding]:"0.75em",[QI.gap]:"0.5em",[QI.fontSize]:"16px",[QI.titleFontWeight]:"500",[QI.lineHeight]:"1em",[QI.borderWidth]:NN.borderWidth,[QI.borderColor]:NN.borderColor,[QI.borderRadius]:NN.borderRadius,[QI.borderStyle]:"dashed",_required:{[QI.requiredIndicator]:NN.requiredIndicator},size:{xs:{[QI.hostHeight]:"196px",[QI.hostWidth]:"200px",[QI.titleFontSize]:"0.875em",[QI.descriptionFontSize]:"0.875em",[QI.lineHeight]:"1.25em"},sm:{[QI.hostHeight]:"216px",[QI.hostWidth]:"230px",[QI.titleFontSize]:"1em",[QI.descriptionFontSize]:"0.875em",[QI.lineHeight]:"1.25em"},md:{[QI.hostHeight]:"256px",[QI.hostWidth]:"312px",[QI.titleFontSize]:"1.125em",[QI.descriptionFontSize]:"1em",[QI.lineHeight]:"1.5em"},lg:{[QI.hostHeight]:"280px",[QI.hostWidth]:"336px",[QI.titleFontSize]:"1.125em",[QI.descriptionFontSize]:"1.125em",[QI.lineHeight]:"1.75em"}},_fullWidth:{[QI.hostWidth]:NN.width}};var PI=Object.freeze({__proto__:null,default:BI,vars:QI});const ZI=Ce(tp),FI=bl.cssVarList,GI={[FI.hostDirection]:"inherit",[FI.backgroundColor]:ZI.colors.surface.main,[FI.labelTextColor]:ZI.colors.surface.contrast,[FI.borderColor]:ZI.colors.surface.light,[FI.borderStyle]:"solid",[FI.borderRadius]:ZI.radius.sm,[FI.outlineColor]:"transparent",[FI.borderWidth]:ZI.border.xs,_hover:{[FI.backgroundColor]:ZI.colors.surface.highlight},_focused:{[FI.outlineColor]:ZI.colors.surface.light},_selected:{[FI.borderColor]:ZI.colors.surface.contrast,[FI.backgroundColor]:ZI.colors.surface.contrast,[FI.labelTextColor]:ZI.colors.surface.main}};var HI=Object.freeze({__proto__:null,default:GI,vars:FI});const JI=Ce(tp),$I=t=>({[t.hostDirection]:NN.direction,[t.fontFamily]:NN.fontFamily,[t.labelTextColor]:NN.labelTextColor,[t.labelRequiredIndicator]:NN.requiredIndicator,[t.itemsSpacing]:JI.spacing.sm,[t.hostWidth]:NN.width,[t.errorMessageTextColor]:NN.errorMessageTextColor,[t.errorMessageIcon]:NN.errorMessageIcon,[t.errorMessageIconSize]:NN.errorMessageIconSize,[t.errorMessageIconPadding]:NN.errorMessageIconPadding,[t.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[t.errorMessageIconPosition]:NN.errorMessageIconPosition,[t.errorMessageFontSize]:NN.errorMessageFontSize}),qI=Ml.cssVarList,_I={...$I(qI)};var XI=Object.freeze({__proto__:null,default:_I,vars:qI});const KI=Tl.cssVarList,tx={...$I(KI)};var ex=Object.freeze({__proto__:null,default:tx,vars:KI});const ix=Ce(tp),ox=nc.cssVarList,nx={[ox.overlayBackgroundColor]:ix.colors.surface.main,[ox.overlayShadow]:ix.shadow.wide["2xl"],[ox.overlayWidth]:"540px",[ox.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},rx={...ox};var sx=Object.freeze({__proto__:null,default:nx,vars:rx});const ax=Ce(tp),lx=ec.cssVarList,dx={[lx.hostWidth]:"100%",[lx.hostHeight]:"100%",[lx.hostMinHeight]:"400px",[lx.fontWeight]:"400",[lx.backgroundColor]:ax.colors.surface.main,[lx.fontSize]:NN.fontSize,[lx.fontFamily]:NN.fontFamily,[lx.sortIndicatorsColor]:ax.colors.surface.light,[lx.activeSortIndicator]:ax.colors.surface.dark,[lx.resizeHandleColor]:ax.colors.surface.light,[lx.borderWidth]:NN.borderWidth,[lx.borderStyle]:NN.borderStyle,[lx.borderRadius]:NN.borderRadius,[lx.borderColor]:"transparent",[lx.headerRowTextColor]:ax.colors.surface.dark,[lx.separatorColor]:ax.colors.surface.light,[lx.valueTextColor]:ax.colors.surface.contrast,[lx.selectedBackgroundColor]:ax.colors.surface.highlight,[lx.hostDirection]:ax.direction,[lx.toggleDetailsPanelButtonSize]:"1em",[lx.toggleDetailsPanelButtonOpenedColor]:ax.colors.surface.contrast,[lx.toggleDetailsPanelButtonClosedColor]:ax.colors.surface.light,[lx.toggleDetailsPanelButtonCursor]:"pointer",[lx.detailsPanelBackgroundColor]:ax.colors.surface.highlight,[lx.detailsPanelBorderTopColor]:ax.colors.surface.light,[lx.detailsPanelLabelsColor]:ax.colors.surface.dark,[lx.detailsPanelLabelsFontSize]:"0.8em",[lx.detailsPanelItemsGap]:"2em",[lx.detailsPanelPadding]:"12px 0",_bordered:{[lx.borderColor]:NN.borderColor}};var cx=Object.freeze({__proto__:null,default:dx,grid:dx,vars:lx});const ux=Ce(tp),px=lc.cssVarList,hx="#00000020",gx={[px.hostMinWidth]:"415px",[px.fontFamily]:ux.fonts.font1.family,[px.fontSize]:ux.typography.body1.size,[px.backgroundColor]:ux.colors.surface.main,[px.textColor]:ux.colors.surface.contrast,[px.boxShadow]:`${ux.shadow.wide.xl} ${hx}, ${ux.shadow.narrow.xl} ${hx}`,[px.verticalPadding]:"0.625em",[px.horizontalPadding]:"1.5em",[px.borderRadius]:ux.radius.xs,_bordered:{[px.borderWidth]:ux.border.sm,[px.borderStyle]:"solid",[px.borderColor]:"transparent"},size:{xs:{[px.fontSize]:"12px"},sm:{[px.fontSize]:"14px"},md:{[px.fontSize]:"16px"},lg:{[px.fontSize]:"18px"}},mode:{primary:{[px.backgroundColor]:ux.colors.primary.main,[px.textColor]:ux.colors.primary.contrast,[px.borderColor]:ux.colors.primary.light},success:{[px.backgroundColor]:ux.colors.success.main,[px.textColor]:ux.colors.success.contrast,[px.borderColor]:ux.colors.success.light},error:{[px.backgroundColor]:ux.colors.error.main,[px.textColor]:ux.colors.error.contrast,[px.borderColor]:ux.colors.error.light}}};var Mx=Object.freeze({__proto__:null,default:gx,vars:px});const mx=Ce(tp),yx=Dc.cssVarList,bx={[yx.hostWidth]:NN.width,[yx.hostDirection]:NN.direction,[yx.fontSize]:NN.fontSize,[yx.fontFamily]:NN.fontFamily,[yx.separatorFontSize]:"14px",[yx.labelsFontSize]:"14px",[yx.labelsLineHeight]:"1",[yx.labelsMarginBottom]:"6px",[yx.labelTextColor]:NN.labelTextColor,[yx.itemMarginBottom]:"1em",[yx.valueLabelMinWidth]:NN.minWidth,[yx.attrLabelMinWidth]:`calc(12em + 2 * ${mx.border.xs})`,[yx.separatorWidth]:"70px",[yx.removeButtonWidth]:"60px"};var Nx=Object.freeze({__proto__:null,default:bx,mappingsField:bx,vars:yx});const Ix=Ce(tp),xx=Yc.cssVarList,Tx={[xx.labelMinWidth]:"150px",[xx.hostDirection]:Ix.direction,[xx.contentMinWidth]:`calc(100% - ${Oe(xx.labelMinWidth)} - ${Oe(xx.itemsGap)})`,[xx.badgeMaxWidth]:"85px",[xx.itemsGap]:"4px",[xx.hostMinWidth]:"310px",[xx.hostWidth]:"530px",[xx.hostMaxWidth]:"100%",[xx.iconColor]:"currentcolor",_fullWidth:{[xx.hostWidth]:"100%"}};var jx=Object.freeze({__proto__:null,default:Tx,vars:xx});const Dx=Ce(tp),vx=$c.cssVarList,zx={[vx.hostDirection]:Dx.direction,[vx.itemsGap]:"16px",[vx.hostMinWidth]:"310px",[vx.hostWidth]:"530px",[vx.hostMaxWidth]:"100%",[vx.iconSize]:"24px",[vx.iconColor]:"currentcolor",_fullWidth:{[vx.hostWidth]:"100%"}};var Cx=Object.freeze({__proto__:null,default:zx,vars:vx});const Sx=iu.cssVarList,Lx={[Sx.hostWidth]:NN.width,[Sx.hostDirection]:NN.direction,[Sx.groupNameInputMarginBottom]:"1em",[Sx.errorMessageIcon]:NN.errorMessageIcon,[Sx.errorMessageIconSize]:NN.errorMessageIconSize,[Sx.errorMessageIconPadding]:NN.errorMessageIconPadding,[Sx.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[Sx.errorMessageIconPosition]:NN.errorMessageIconPosition,[Sx.errorMessageFontSize]:NN.errorMessageFontSize};var wx=Object.freeze({__proto__:null,default:Lx,samlGroupMappings:Lx,vars:Sx});const Ax=Ce(tp),fx=xa.cssVarList,Ex={[fx.fontFamily]:NN.fontFamily,[fx.fontSize]:NN.labelFontSize,[fx.textColor]:NN.labelTextColor,[fx.borderWidth]:NN.borderWidth,[fx.borderStyle]:NN.borderStyle,[fx.borderColor]:NN.borderColor,[fx.borderRadius]:Ax.radius.sm,[fx.backgroundColor]:"none",[fx.padding]:"0px",[fx.labelMargin]:Ax.spacing.sm,[fx.itemsSpacing]:Ax.spacing.lg,[fx.itemSymbolDefault]:"'\\2022'",[fx.itemSymbolSuccess]:"'\\2713'",[fx.itemSymbolError]:"'\\2A09'",[fx.itemSymbolSuccessColor]:Ax.colors.success.main,[fx.itemSymbolErrorColor]:Ax.colors.error.main};var kx=Object.freeze({__proto__:null,default:Ex,vars:fx});const Ox=Ce(tp),Vx=Ld.cssVarList,Wx="#d73a49",Rx="#6f42c1",Ux="#005cc5",Yx="#e36209",Qx="#6a737d",Bx="#22863a",Px="#24292e",Zx="#f0fff4",Fx="#032f62",Gx="#ff7b72",Hx="#d2a8ff",Jx="#79c0ff",$x="#ffa657",qx="#8b949e",_x="#7ee787",Xx="#c9d1d9",Kx="#f0fff4",tT="#a5d6ff",eT={[Vx.copyButtonSize]:"32px",[Vx.copyButtonBorderRadius]:Ox.radius.xs,[Vx.copyButtonBorderWidth]:Ox.border.xs,[Vx.copyButtonBorderColor]:Ox.colors.surface.light,[Vx.copyButtonBgColor]:Ox.colors.surface.highlight,[Vx.copyButtonHoverBgColor]:Ox.colors.surface.light,[Vx.copyButtonColor]:Ox.colors.surface.contrast,[Vx.rootBgColor]:Ox.colors.surface.main,[Vx.rootTextColor]:Ox.colors.surface.contrast,[Vx.docTagTextColor]:Wx,[Vx.keywordTextColor]:Wx,[Vx.metaKeywordTextColor]:Wx,[Vx.templateTagTextColor]:Wx,[Vx.templateVariableTextColor]:Wx,[Vx.typeTextColor]:Wx,[Vx.variableLanguageTextColor]:Wx,[Vx.titleTextColor]:Rx,[Vx.titleClassTextColor]:Rx,[Vx.titleClassInheritedTextColor]:Rx,[Vx.titleFunctionTextColor]:Rx,[Vx.attrTextColor]:Ux,[Vx.attributeTextColor]:Ux,[Vx.literalTextColor]:Ux,[Vx.metaTextColor]:Ux,[Vx.numberTextColor]:Ux,[Vx.operatorTextColor]:Ux,[Vx.variableTextColor]:Ux,[Vx.selectorAttrTextColor]:Ux,[Vx.selectorClassTextColor]:Ux,[Vx.selectorIdTextColor]:Ux,[Vx.regexpTextColor]:Fx,[Vx.stringTextColor]:Fx,[Vx.metaStringTextColor]:Fx,[Vx.builtInTextColor]:Yx,[Vx.symbolTextColor]:Yx,[Vx.commentTextColor]:Qx,[Vx.codeTextColor]:Qx,[Vx.formulaTextColor]:Qx,[Vx.nameTextColor]:Bx,[Vx.quoteTextColor]:Bx,[Vx.selectorTagTextColor]:Bx,[Vx.selectorPseudoTextColor]:Bx,[Vx.substTextColor]:Px,[Vx.sectionTextColor]:Ux,[Vx.bulletTextColor]:"#735c0f",[Vx.emphasisTextColor]:Px,[Vx.strongTextColor]:Px,[Vx.additionTextColor]:Bx,[Vx.additionBgColor]:Zx,[Vx.deletionTextColor]:Wx,[Vx.deletionBgColor]:Zx},iT={codeSnippet:{[Vx.rootBgColor]:Ox.colors.surface.main,[Vx.rootTextColor]:Ox.colors.surface.contrast,[Vx.docTagTextColor]:Gx,[Vx.keywordTextColor]:Gx,[Vx.metaKeywordTextColor]:Gx,[Vx.templateTagTextColor]:Gx,[Vx.templateVariableTextColor]:Gx,[Vx.typeTextColor]:Gx,[Vx.variableLanguageTextColor]:Gx,[Vx.titleTextColor]:Hx,[Vx.titleClassTextColor]:Hx,[Vx.titleClassInheritedTextColor]:Hx,[Vx.titleFunctionTextColor]:Hx,[Vx.attrTextColor]:Jx,[Vx.attributeTextColor]:Jx,[Vx.literalTextColor]:Jx,[Vx.metaTextColor]:Jx,[Vx.numberTextColor]:Jx,[Vx.operatorTextColor]:Jx,[Vx.variableTextColor]:Jx,[Vx.selectorAttrTextColor]:Jx,[Vx.selectorClassTextColor]:Jx,[Vx.selectorIdTextColor]:Jx,[Vx.regexpTextColor]:tT,[Vx.stringTextColor]:tT,[Vx.metaStringTextColor]:tT,[Vx.builtInTextColor]:$x,[Vx.symbolTextColor]:$x,[Vx.commentTextColor]:qx,[Vx.codeTextColor]:qx,[Vx.formulaTextColor]:qx,[Vx.nameTextColor]:_x,[Vx.quoteTextColor]:_x,[Vx.selectorTagTextColor]:_x,[Vx.selectorPseudoTextColor]:_x,[Vx.substTextColor]:Xx,[Vx.sectionTextColor]:Jx,[Vx.bulletTextColor]:"#735c0f",[Vx.emphasisTextColor]:Xx,[Vx.strongTextColor]:Xx,[Vx.additionTextColor]:_x,[Vx.additionBgColor]:Kx,[Vx.deletionTextColor]:Gx,[Vx.deletionBgColor]:Kx}};var oT=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:iT,default:eT,vars:Vx});const nT=su.cssVarList,rT=Ce(tp),sT={[nT.buttonsRowGap]:"9px",[nT.hostWidth]:NN.width,[nT.hostDirection]:NN.direction,[nT.fontSize]:NN.fontSize,[nT.fontFamily]:NN.fontFamily,[nT.labelFontWeight]:NN.labelFontWeight,[nT.labelTextColor]:NN.labelTextColor,[nT.labelRequiredIndicator]:NN.requiredIndicator,[nT.errorMessageTextColor]:NN.errorMessageTextColor,[nT.errorMessageIcon]:NN.errorMessageIcon,[nT.errorMessageIconSize]:NN.errorMessageIconSize,[nT.errorMessageIconPadding]:NN.errorMessageIconPadding,[nT.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[nT.errorMessageIconPosition]:NN.errorMessageIconPosition,[nT.errorMessageFontSize]:NN.errorMessageFontSize,[nT.helperTextColor]:NN.helperTextColor,[nT.itemsLabelColor]:rT.colors.surface.contrast,[nT.itemsLabelFontWeight]:NN.inputValueFontWeight,[nT.itemsFontFamily]:NN.fontFamily,[nT.itemsRadioCheckedColor]:rT.colors.surface.light,[nT.itemsRadioBackgroundColor]:rT.colors.surface.light,[nT.itemsRadioCheckedBackgroundColor]:rT.colors.surface.contrast,textAlign:{right:{[nT.inputTextAlign]:"right"},left:{[nT.inputTextAlign]:"left"},center:{[nT.inputTextAlign]:"center"}},_fullWidth:{[nT.buttonsSpacing]:"space-between"},_disabled:{[nT.itemsLabelColor]:rT.colors.surface.light}};var aT=Object.freeze({__proto__:null,default:sT,radioGroup:sT,vars:nT});const lT=nu.cssVarList,dT=Ce(tp),cT={[lT.fontFamily]:NN.fontFamily,[lT.labelFontWeight]:NN.inputValueFontWeight,[lT.radioSize]:"calc(1em + 6px)",[lT.radioMargin]:"auto 4px",[lT.radioCheckedSize]:`calc(var(${lT.radioSize})/5)`,[lT.radioCheckedColor]:dT.colors.surface.light,[lT.radioBackgroundColor]:dT.colors.surface.light,[lT.radioBorderColor]:"none",[lT.radioBorderWidth]:0,_checked:{[lT.radioBackgroundColor]:dT.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[lT.fontSize]:"12px"},sm:{[lT.fontSize]:"14px"},md:{[lT.fontSize]:"16px"},lg:{[lT.fontSize]:"18px"}}};var uT=Object.freeze({__proto__:null,default:cT,radioButton:cT,vars:lT});const pT=Ce(tp),hT=fn.cssVarList,gT={[hT.fontFamily]:NN.fontFamily,[hT.fontSize]:NN.fontSize,[hT.hostDirection]:NN.direction,[hT.calendarPadding]:"1em",[hT.topNavVerticalPadding]:"1em",[hT.topNavAlignment]:"space-between",[hT.topNavGap]:"0",[hT.topNavSelectorsGap]:"0.5em",[hT.bottomNavVerticalPadding]:"0.75em",[hT.bottomNavHorizontalPadding]:"1.5em",[hT.bottomNavAlignment]:"space-between",[hT.bottomNavGap]:"0.5em",[hT.navMarginBottom]:"0.75em",[hT.navBorderBottomWidth]:"1px",[hT.navBorderBottomColor]:pT.colors.surface.highlight,[hT.navBorderBottomStyle]:"solid",[hT.yearInputWidth]:"6em",[hT.monthInputWidth]:"8em",[hT.navButtonSize]:"24px",[hT.navButtonCursor]:"pointer",[hT.weekdayFontSize]:"0.875em",[hT.weekdayFontWeight]:"500",[hT.dayHeight]:"3.125em",[hT.daySize]:"2.125em",[hT.dayFontSize]:"1em",[hT.dayRadius]:"50%",[hT.dayTextAlign]:"center",[hT.dayPadding]:"0",[hT.dayTextColor]:pT.colors.surface.contrast,[hT.dayFontWeight]:"500",[hT.dayBackgroundColor]:"transparent",[hT.dayCursor]:"pointer",[hT.dayBackgroundColorHover]:pT.colors.primary.highlight,[hT.daySelectedBackgroundColor]:pT.colors.primary.main,[hT.daySelectedTextdColor]:pT.colors.primary.contrast,[hT.dayDisabledTextdColor]:pT.colors.surface.light,[hT.currentDayBorderColor]:pT.colors.surface.light,[hT.currentDayBorderWidth]:"1px",[hT.currentDayBorderStyle]:"solid",size:{xs:{[hT.fontSize]:"12px"},sm:{[hT.fontSize]:"14px"},md:{[hT.fontSize]:"16px"},lg:{[hT.fontSize]:"18px"}},[hT.navButtonRotation]:"rotate(180deg)",_disabled:{[hT.navButtonOpacity]:"0.5",[hT.dayBackgroundColorHover]:"none",[hT.navButtonCursor]:"default",[hT.dayCursor]:"default"},_fullWidth:{[hT.hostWidth]:"100%",[hT.dayBlockAlign]:"0 auto"}};var MT=Object.freeze({__proto__:null,default:gT,vars:hT});const mT=Ce(tp),yT="#00000020",{shadow:bT}=mT,NT=pr.cssVarList,IT={[NT.hostWidth]:NN.width,[NT.hostDirection]:NN.direction,[NT.iconMargin]:"0.375em",[NT.overlay.marginTop]:`calc(${NN.outlineWidth} + 1px)`,[NT.overlay.backgroundColor]:NN.backgroundColor,[NT.overlay.backdropBackgroundColor]:"transparent",[NT.overlay.backdropPointerEvents]:"all",[NT.overlay.boxShadow]:`${bT.wide.xl} ${yT}, ${bT.narrow.xl} ${yT}`,[NT.overlay.outlineWidth]:"0",[NT.overlay.outlineColor]:"transparent",[NT.overlay.outlineStyle]:"none",[NT.overlay.padding]:"0",[NT.rtlInputDirection]:"ltr",[NT.rtlInputAlignment]:"right",[NT.errorMessageIcon]:NN.errorMessageIcon,[NT.errorMessageIconSize]:NN.errorMessageIconSize,[NT.errorMessageIconPadding]:NN.errorMessageIconPadding,[NT.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[NT.errorMessageIconPosition]:NN.errorMessageIconPosition,[NT.errorMessageFontSize]:NN.errorMessageFontSize,[NT.labelFontWeight]:NN.labelFontWeight,[NT.inputValueFontWeight]:NN.inputValueFontWeight,[NT.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[NT.helperTextFontWeight]:NN.helperTextFontWeight,[NT.errorMessageFontWeight]:NN.errorMessageFontWeight};var xT=Object.freeze({__proto__:null,default:IT,vars:NT});const TT=pu.cssVarList,jT={[TT.requiredInputBorderColor]:bN._disabled[IN.borderColor],[TT.requiredInputValueTextColor]:bN._disabled[IN.valueTextColor],[TT.hostWidth]:"280px",_fullWidth:{[TT.hostWidth]:"100%"}};var DT=Object.freeze({__proto__:null,default:jT,vars:TT});const vT=Ce(tp),zT=Tu.cssVarList,CT={[zT.gap]:vT.spacing.lg,[zT.arrowsColor]:vT.colors.surface.dark,[zT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[zT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[zT.logoMaxHeight]:"30px",[zT.logoMaxWidth]:"120px"},sm:{[zT.logoMaxHeight]:"40px",[zT.logoMaxWidth]:"160px"},md:{[zT.logoMaxHeight]:"48px",[zT.logoMaxWidth]:"200px"},lg:{[zT.logoMaxHeight]:"60px",[zT.logoMaxWidth]:"240px"}}};var ST=Object.freeze({__proto__:null,default:CT,vars:zT});const LT=Cu.cssVarList,wT={[LT.hostWidth]:"fit-content",_fullWidth:{[LT.hostWidth]:"100%"}};var AT=Object.freeze({__proto__:null,default:wT,vars:LT});const fT=Ou.cssVarList,ET={[fT.hostWidth]:"min-content",[fT.questionCursor]:"pointer",_fullWidth:{[fT.hostWidth]:"100%"},[fT.questionFontSize]:NN.fontSize,[fT.questionFontFamily]:NN.fontFamily};var kT=Object.freeze({__proto__:null,default:ET,vars:fT});const OT=Bu.cssVarList,VT={[OT.hostDirection]:NN.direction,[OT.labelFontWeight]:NN.labelFontWeight,[OT.inputValueFontWeight]:NN.inputValueFontWeight,[OT.inputPlaceholderFontWeight]:NN.inputPlaceholderFontWeight,[OT.helperTextFontWeight]:NN.helperTextFontWeight,[OT.errorMessageFontWeight]:NN.errorMessageFontWeight,[OT.errorMessageIcon]:NN.errorMessageIcon,[OT.errorMessageIconSize]:NN.errorMessageIconSize,[OT.errorMessageIconPadding]:NN.errorMessageIconPadding,[OT.errorMessageIconRepeat]:NN.errorMessageIconRepeat,[OT.errorMessageIconPosition]:NN.errorMessageIconPosition,[OT.errorMessageFontSize]:NN.errorMessageFontSize,_fullWidth:{[OT.hostWidth]:"100%"}};var WT=Object.freeze({__proto__:null,default:VT,vars:OT});const RT=Ce(tp),UT=Gu.cssVarList,YT={[UT.hostDirection]:RT.direction,[UT.backgroundColor]:"transparent",[UT.iconSize]:"1.35em",[UT.alignItems]:"center",[UT.borderRadius]:RT.radius.md,[UT.horizontalPadding]:"0",[UT.verticalPadding]:"0",[UT.gap]:"0.5em",[UT.fontSize]:Oe(yp.fontSize),mode:{error:{[UT.textColor]:RT.colors.error.main,_bordered:{[UT.borderColor]:RT.colors.error.main}},success:{[UT.textColor]:RT.colors.success.main,_bordered:{[UT.borderColor]:RT.colors.success.main}}},spacing:{xs:{[UT.horizontalPadding]:RT.spacing.xs,[UT.verticalPadding]:RT.spacing.xs},sm:{[UT.horizontalPadding]:RT.spacing.sm,[UT.verticalPadding]:RT.spacing.sm},md:{[UT.horizontalPadding]:RT.spacing.md,[UT.verticalPadding]:RT.spacing.md},lg:{[UT.horizontalPadding]:RT.spacing.lg,[UT.verticalPadding]:RT.spacing.lg},xl:{[UT.horizontalPadding]:RT.spacing.xl,[UT.verticalPadding]:RT.spacing.xl}},textAlign:{left:{[UT.justifyContent]:"left"},center:{[UT.justifyContent]:"center"},right:{[UT.justifyContent]:"right"}},_bordered:{[UT.borderWidth]:RT.border.xs,[UT.borderColor]:"transparent",[UT.borderStyle]:"solid",[UT.borderWidth]:RT.border.xs,[UT.borderRadius]:RT.radius.sm},_fullWidth:{[UT.hostWidth]:"100%"}};var QT=Object.freeze({__proto__:null,default:YT,vars:UT});const BT=qu.cssVarList,PT={enabled:{false:{[BT.maxHeight]:"70px"}}},ZT={button:Mp,textField:Ry,password:vN,numberField:SN,emailField:AN,textArea:kN,checkbox:RN,switchToggle:PN,container:XN,logo:eI,totpImage:nI,notpImage:aI,text:Np,enrichedText:Cp,link:jp,divider:MI,passcode:bI,loaderRadial:wI,loaderLinear:TI,comboBox:Op,phoneField:EI,phoneInputBoxField:VI,newPassword:YI,inputWrapper:xN,uploadFile:PI,buttonSelectionGroupItem:HI,buttonSelectionGroup:XI,buttonMultiSelectionGroup:ex,modal:sx,grid:cx,notificationCard:Mx,multiSelectComboBox:og,badge:Bp,avatar:Kp,mappingsField:Nx,userAttribute:jx,userAuthMethod:Cx,samlGroupMappings:wx,policyValidation:kx,image:oh,icon:eh,codeSnippet:oT,radioGroup:aT,radioButton:uT,calendar:MT,dateField:xT,monthDayField:mb,monthDayFieldPicker:wb,list:Nh,listItem:jh,multiLineMappings:Kh,appsList:ch,scopesList:DT,thirdPartyAppLogo:ST,securityQuestionsSetup:AT,securityQuestionsVerify:kT,hybridField:WT,alert:QT,autocompleteField:gg,addressField:wg,countrySubdivisionCityField:cy,timer:Bg,timerButton:nM,passwordStrength:yM,collapsibleContainer:wM,recoveryCodes:BM,hcaptcha:Object.freeze({__proto__:null,default:PT,vars:BT}),outboundApps:qM,outboundAppButton:om,trustedDevices:hm,multiSso:Tm,tooltip:Wm,filter:MN,attachment:Iy,userPasskeys:ky},FT=Object.keys(ZT).reduce((t,e)=>({...t,[e]:ZT[e].default}),{}),GT=Object.keys(ZT).reduce((t,e)=>({...t,[e]:ZT[e].vars}),{}),HT={globals:tp,components:FT},JT={globals:ep,components:GT},$T=a()({},HT,{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:{...iT}});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#_r(t){const{results:e,error:i}=await this.fetchResults(t);return i?{error:i}:{results:e}}#Xr(t,e,i,o){return`<span data-name="${i}" data-id="${e}" ${o?'disabled="true"':""}>${t||i}</span>`}#Kr(){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.#Xr(t,e,i,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#ts(),S(this,this.comboBox,{includeAttrs:["invalid"]})}#ts(){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.#_r(t);return{results:e,error:i,value:t}}catch(e){return{error:e,value:t}}}),A(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.#Kr()}#es(){return[{label:this.noResultsFoundMessage,value:ag,disabled:!0}]}#is(){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.#is():0===i.results?.length?this.comboBox.data=this.#es():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 qT=L("anchored");class _T extends(bt({componentName:qT,baseSelector:".anchored-root"})){#os=null;#ns=null;#rs=null;#ss=null;get#as(){return this.defaultSlot.assignedElements({flatten:!0})[0]}get#ls(){return this.shadowRoot.querySelector('slot[name="anchored"]')?.assignedElements()[0]}get#ds(){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?.(),f("\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.#cs(),this.defaultSlot.addEventListener("slotchange",()=>this.#us()),this.#us()}#mi(){const t=this.#as?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#us(){this.#ps(),this.#os=this.#hs(this.#os,this.#ds,"stretch"),this.#ns=this.#hs(this.#ns,this.#ls,"st-host-direction"),this.#gs()}#gs(){this.#ss?.disconnect(),this.#as&&(this.#ss=v(this.#as,()=>this.#mi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#gs(),this.#mi()}#cs(){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.#rs?this.#rs.replaceSync(t):this.#ds&&(this.#rs=f(t,this.#ds))}#hs(t,e,i){return t?.disconnect(),e?.removeAttribute(i),this.#as&&e?A(this.#as,e,{includeAttrs:[i]}):null}disconnectedCallback(){super.disconnectedCallback?.(),this.#os?.disconnect(),this.#ns?.disconnect(),this.#ss?.disconnect()}#ps(){this.toggleAttribute("has-anchor",!!this.#as),this.#mi()}}const XT=j(ht)(_T);customElements.define(qT,XT),customElements.define(Pp,Jp),customElements.define(nh,rh),customElements.define(uy,my),customElements.define(bM,xM),customElements.define(Zm,iy),customElements.define(oy,ay),customElements.define(Dh,Uh),customElements.define(Qb,$b),customElements.define(qb,iN),customElements.define(oN,dN),customElements.define(Nb,Cb),customElements.define(qy,cb),customElements.define(Yh,qh),customElements.define(gm,bm),customElements.define(_M,KM),customElements.define(PM,HM),customElements.define(rM,pM);var KT=Object.freeze({__proto__:null,PasswordStrengthClass:pM,componentName:rM});const tj=L("ponyhot"),ej="dhp-",ij=bt({componentName:tj,baseSelector:""}),oj=j(ht)(class extends ij{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#Ms(),this.#ms(),this.#ys())}#Ms(){const t=["input","change","click","keydown","keyup","mouseover","mousedown"],e=i=>{this.input.value=`${ej}${i.type}`,t.forEach(t=>{this.input.removeEventListener(t,e)})};t.forEach(t=>{this.input.addEventListener(t,e)})}#ms(){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(ej)&&e!==i?t.set.call(this,`${ej}direct-set`):t.set.call(this,e)},configurable:!0})}#ys(){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(tj,oj),customElements.define(AM,WM),customElements.define(fg,Rg),customElements.define(Pg,tM),customElements.define(jm,Sm),customElements.define(sm,cm),customElements.define(vy,Ay);const nj={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}};m.u2.setOptions(nj);var rj=Object.freeze({__proto__:null,default:m.K1,options:nj})}}]);
|
|
2
2
|
//# sourceMappingURL=222.js.map
|