@descope/flow-components 3.27.6 → 3.27.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fm/222.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_descope_flow_components_3_27_6_1794932392025=self.webpackChunk_descope_flow_components_3_27_6_1794932392025||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Qb,$y:()=>dp,A8:()=>Tc,Ag:()=>el,C1:()=>Uc,C9:()=>Do,Cz:()=>dc,Er:()=>Mh,G6:()=>WT,HO:()=>Xi,HT:()=>oo,J1:()=>Wo,JQ:()=>nI,Jr:()=>Pi,Lg:()=>hp,MN:()=>us,Mz:()=>Aa,NF:()=>Fs,O7:()=>PM,Od:()=>xu,QW:()=>oc,Qb:()=>nm,R3:()=>$m,SE:()=>co,SQ:()=>Lo,T$:()=>lb,T1:()=>tD,TV:()=>yp,U6:()=>mm,Ul:()=>la,VN:()=>Sd,VX:()=>Cr,_w:()=>We,a5:()=>RT,bL:()=>gr,bU:()=>Jg,br:()=>R,dS:()=>YN,dX:()=>zh,dq:()=>Qm,du:()=>yg,e7:()=>Le,eA:()=>wc,eo:()=>yl,ew:()=>ye,fp:()=>xl,gZ:()=>uu,h5:()=>Dm,jH:()=>wr,k0:()=>jr,l1:()=>so,lZ:()=>nN,md:()=>vr,ml:()=>Ft,mq:()=>eu,o9:()=>Lr,o_:()=>Ve,pp:()=>Jc,px:()=>ku,q:()=>Hy,q4:()=>Si,qn:()=>wo,rG:()=>zu,sK:()=>fi,tD:()=>tc,tS:()=>ru,td:()=>sg,tl:()=>Kr,ul:()=>Za,v_:()=>ip,w8:()=>tr,wt:()=>Ia,xO:()=>xs,xp:()=>mu,xs:()=>kn,yW:()=>Am,yi:()=>ry,yj:()=>xM,zQ:()=>VT,zZ:()=>Ry});var o=i(7949),n=i(7519),r=i(72),s=i.n(r),a=i(8089),l=i.n(a),d=i(465),c=i.n(d),u=(i(8231),i(4873),i(865),i(4598),i(496),i(7726),i(4155),i(9504),i(5877),i(3798),i(8619),i(1394)),p=i(3667),h=(i(8319),i(3826)),g=i(8677),M=i(127),m=(i(9849),i(4899),i(3977),i(9435),i(1399),i(5595),i(7822),i(6601),i(2381)),y=i(6916),b=i(418),N=i(1479);const I="descope",x=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),j=(...t)=>x(t.filter(t=>!!t).join("-")),T=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),D=t=>"function"==typeof t,v=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n);const r=new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})});return r.observe(t,{attributes:!0}),{disconnect:()=>r.disconnect()}},z=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},C=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},S=(t,e,i)=>{v(t,C(t,e),i),v(e,C(e,t),i)},w=t=>async e=>{const i=await t(e);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})},A=t=>j(I,t),L=(...t)=>`--${j(...t)}`,f=(t,e,i={})=>v(t,C(t,e,i.mapAttrs),i),E=(t,e,{prepend:i=!1}={})=>{let o;try{o=new CSSStyleSheet}catch{return O(t,e,{prepend:i})}const n=e?.shadowRoot||e;if(t&&o.replaceSync(t),n){const t=[...n.adoptedStyleSheets||[]];t[i?"unshift":"push"](o),n.adoptedStyleSheets=t}return t&&!o.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${t}"`),o};class k{constructor(t,e,{prepend:i=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=t,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=e?.shadowRoot||e,this.ref&&(i?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(t){this.styleEle.textContent=t}get cssRules(){return this.styleEle.sheet?.cssRules}}const O=(t,e,{prepend:i=!1}={})=>new k(t,e,{prepend:i}),V=(t,e=2)=>t.trim().split(" ").splice(0,e).map(t=>t[0]?.toUpperCase()).join(""),W=(t,e)=>{if(!t||!e)return null;const i=t.querySelectorAll(`:scope > [slot="${e}"]`);if(!i.length)return null;const o=document.createDocumentFragment();return i.forEach(t=>{const e=t.content?t.content.cloneNode(!0):t.cloneNode(!0);e.removeAttribute&&e.removeAttribute("slot"),o.append(e)}),o},R=new class{static mountOnPropName="DescopeThemeManager";#t={};#e="light";#i=new Set;#o(){this.#i.forEach(t=>t?.())}get currentThemeName(){return this.#e}set currentThemeName(t){this.#e=t,this.#o()}get currentTheme(){return this.#t[this.currentThemeName]}onCurrentThemeChange(t){return this.#i.add(t),()=>{this.#i.delete(t)}}set themes(t){this.#t=t,this.#o()}get hasThemes(){return!!Object.keys(this.#t).length}},U=.25,Y=.1,Q=(t,e)=>t.darken(e).hex(),P=t=>{const e=t.isDark();return t.mix(c()(e?"white":"black"),1).saturate(1).hex()},B=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),Z=t=>t.luminosity()>.99,F=(t,e)=>(t=>t.luminosity()<.01)(t)?B(t,U):Q(t,.4),G=(t,e)=>Z(t)?Q(t,U):B(t,.4),H=(t,e)=>Z(t)?Q(t,Y):B(t,.8),J=(t,e)=>{const i=new(c())(t.main||t);return{main:i.hex(),dark:t.dark||F(i),light:t.light||G(i),highlight:t.highlight||H(i),contrast:t.contrast||P(i)}},$=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,q=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,_=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,X=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,K=(t,e)=>`\n ${(t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`)(t)}\n ${q(t)}\n ${_(t)}\n ${(t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`)(t)}\n ${((t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`)(t,e)}\n ${(t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`)(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`,tt=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,et=t=>L(I,...t),it=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},ot=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?l()(t,i(e.concat(o),n)):l()(t,ot(n,[...e,o],i)),{}),nt=(t,e)=>ot(t,[],t=>it({},t,`var(${et(t)})`)),rt=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),st=(t,e)=>{const i=ot(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=L(e,n),s={[n]:r},a={[n]:rt(r)};return{theme:it({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},at=t=>`${t}__override`,lt=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${at(t)}, ${o})`:o};let dt=class{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}};const ct=(t,e="fallback")=>j(t,e),ut=(t,e,{fallback:i})=>{if(!i)return{};const o=ct(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...ut(n,o,i)}},pt=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=L(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:at(n)},ut(o,n,e[o]))},{}),ht=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...pt(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o="host",baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>j("st",i,t))}get#h(){return R.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=R.currentThemeName,this.onThemeChange?.(R.currentThemeName)}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=R.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=E(`:host(${t}) {}`,this.#d)}}#y(t,e){const i=this.#n.cssRules[0].style;if(!i)return;const o=L(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new dt,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=ct(e,t?.suffix);return lt(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:x(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=L(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>D(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),D(i)?i():i,lt(a,l,!0)+(r?"!important":""))})}),o.toString()})(j(n,this.#a),this.#c,t);E(e,this.#d,{prepend:!0})}}#I(){const t=D(i)?i():i;t&&E(t,this.#d,{prepend:!0})}#x(t){(this.#d?.classList||this.#d?.host?.classList||this.classList).add(t)}async init(){super.init?.(),!this.shadowRoot?.isConnected&&this.shadowRoot||(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),v(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},gt=t=>class extends t{constructor(){super(),E(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},Mt=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},mt=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},yt=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},bt=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value","collapsed","hide-country","hide-subdivision","hide-city"],Nt=t=>class extends t{init(){super.init?.(),v(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>bt.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},It=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return T(Mt,yt,Nt,mt)(i)};function xt(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const jt=t=>class extends t{#v=xt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},Tt=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,xt.call(this,"blur"),xt.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(xt.call(this,"focus"),xt.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,xt.call(this,"input",{bubbles:!0,composed:!0})))})}},Dt=["required","pattern"],vt=Symbol("validationTarget"),zt=t=>class extends t{#C=vt;static get observedAttributes(){return[...t.observedAttributes||[],...Dt]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}get defaultErrorMsgTypeMismatch(){return"Please match the requested type."}getCustomErrorMessage(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===vt?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),Dt.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},Ct=(...t)=>T(zt,jt,Nt,Tt)(It(...t)),St="FETCH_RESULTS_ERROR",wt=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#A()}checkConnectorValidity(){this.isValid=this.#A()}#A(){return!this.getRequiredParams().filter(t=>{const e=this.getAttribute(t);return!e||!this.validateParam(t,e)}).length}validateParam(t,e){return e.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(t){return this.isValid?this._fetchResults(t):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(t){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},At=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(It({componentName:t,baseSelector:e})){#L=xt.bind(this,"blur");#f=xt.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,E((D(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#L()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),((t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)})(this.baseElement,this,s),S(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},Lt=["invalid","required"],ft=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},Et=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(zt(r)){static get observedAttributes(){return[...r.observedAttributes||[],...Lt]}#E;#v=xt.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=ft(t)||ft(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),f(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},kt=t=>T(Et(t),ht({componentNameOverride:A("input-wrapper")})),Ot=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>r=>{if(D(e)&&!t)throw new Error("portalMixin: a function selector requires a name");const s=t||(t=>t.replace(/[^\w\s]/gi,""))(e),a=ht({mappings:i,style:o})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:pt(s?j(r.componentName,"_"+s):r.componentName,i)}}#O;constructor(){const t=w(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);if(!e||!t.shadowRoot)return i;const o=await w(()=>i)(t);return D(e)?e(o):o.querySelector(e)});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;f(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},Vt=()=>!0,Wt=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,Rt=({itemRenderer:t=Wt,validateSchema:e=Vt,slotName:i,rerenderAttrsList:o=[],targetSelector:n,sortFn:r=t=>t})=>s=>class extends s{#R=[];#U;#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.#U&&this.#U.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),(r?this.data.sort(r):this.data).forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.#U&&this.#U.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),this.#U=n?this.shadowRoot.querySelector(n):this.baseElement,v(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}},Ut=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},Yt=({triggers:t=[]}={})=>e=>class extends e{static get observedAttributes(){return[...e.observedAttributes||[],...t.map(({attr:t})=>t)]}get#Z(){return t.some(({attr:t,value:e})=>this.getAttribute(t)===e)}#F=()=>{this.toggleAttribute("stretch",this.#Z)};attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.#F()}init(){super.init?.(),this.#F()}},Qt=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Pt=A("enriched-text"),Bt={ADD_ATTR:["target"],ALLOWED_URI_REGEXP:/^(?!(?:vbscript|javascript|file|data):)|^data:image\/(?:gif|png|jpeg|webp);/i,FORBID_TAGS:["form","input","button","textarea","select","style"]};class Zt extends(It({componentName:Pt,baseSelector:":host > div"})){#G;#H;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',E("\n :host {\n line-height: 1em;\n word-break: break-word;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n *, *:last-child {\n margin: 0;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin-bottom: 1em;\n }\n a {\n cursor: pointer;\n }\n blockquote {\n padding: 0 2em;\n }\n u {\n text-decoration: underline\n }\n s {\n color: currentColor;\n }\n ",this),this.#J(),z(this,this.#$.bind(this)),this.contentNode?.addEventListener("click",t=>{t.target instanceof HTMLAnchorElement&&t.stopPropagation()}),this.contentNode?.addEventListener("keydown",t=>{"Enter"===t.key&&t.target instanceof HTMLAnchorElement&&t.stopPropagation()})}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("readonly"===t&&this.onReadOnlyChange("true"===i),"link-target-blank"===t&&this.#J())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n)),this.processor.renderer.rules.em_close=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n))}#q(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(t,e,i,o,n)=>(t[e].attrSet("target","_blank"),this.#G(t,e,i,o,n)):this.processor.renderer.rules.link_open=this.#G}#_(){this.processor&&this.processor.disable(Qt)}#X(){this.#_()}#K(){this.#G=this.processor.renderer.rules.link_open||((t,e,i,o,n)=>n.renderToken(t,e,i)),this.#H=this.processor.renderer.rules.em_open||((t,e,i,o,n)=>n.renderToken(t,e,i))}#J(){this.processor=new o.A("commonmark",{html:!0}),this.#K(),this.#X(),this.#q(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#$(){if(!this.processor)return;let t=(t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value})(this.innerHTML);!t?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const e=this.processor.parse(t,{references:void 0});t=this.processor.renderer.render(e,{html:!0,breaks:!0})}catch{console.warn("Not parsing invalid markdown token")}t=n.A.sanitize(t,Bt),this.contentNode.innerHTML=t,this.contentNode.firstElementChild?.setAttribute("part","content")}onReadOnlyChange(t){t?this.contentNode.setAttribute("inert",t):this.contentNode.removeAttribute("inert")}}const Ft=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDisplay:{selector:()=>":host",property:"display",fallback:"inline-block"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},fontWeightBold:[{selector:()=>":host strong",property:"font-weight"},{selector:()=>":host b",property:"font-weight"}],textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"},linkTextDecoration:{selector:"a",property:"text-decoration"},linkHoverTextDecoration:{selector:"a:hover",property:"text-decoration"},minHeight:{},minWidth:{}}}),ht({componentNameOverride:A("link")}),ht({componentNameOverride:A("text")}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(Zt),Gt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),Ht=(...t)=>Gt(t.filter(t=>!!t).join("-")),Jt=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),$t=t=>"function"==typeof t,qt="descope",_t="host",Xt=(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})},Kt=(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})},te=(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))})},ee=(t,e,i)=>{Xt(t,te(t,e),i),Xt(e,te(e,t),i)},ie=t=>Ht(qt,t),oe=(...t)=>`--${Ht(...t)}`,ne=(t,e,i={})=>{Xt(t,te(t,e,i.mapAttrs),i)},re=(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)},se=.4,ae=.25,le=.1,de=(t,e)=>t.darken(e).hex(),ce=t=>{const e=t.isDark();return t.mix(c()(e?"white":"black"),1).saturate(1).hex()},ue=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),pe=t=>t.luminosity()<.01,he=t=>t.luminosity()>.99,ge=(t,e)=>"dark"===e?he(t)?de(t,ae):ue(t,se):pe(t)?ue(t,ae):de(t,se),Me=(t,e)=>"dark"===e?pe(t)?ue(t,ae):de(t,se):he(t)?de(t,ae):ue(t,se),me=(t,e)=>"dark"===e?pe(t)?ue(t,le):de(t,.8):he(t)?de(t,le):ue(t,.8),ye=(t,e)=>{const i=new(c())(t.main||t);return{main:i.hex(),dark:t.dark||ge(i,e),light:t.light||Me(i,e),highlight:t.highlight||me(i,e),contrast:t.contrast||ce(i)}},be=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,Ne=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,Ie=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,xe=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,je=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,Te=(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`,De=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,ve=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`,ze=t=>oe(qt,...t),Ce=(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},Se=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?l()(t,i(e.concat(o),n)):l()(t,Se(n,[...e,o],i)),{}),we=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}},Ae=(t,e)=>Se(t,[],t=>Ce({},t,`var(${ze(t)})`)),Le=(t,e="")=>{const i=Object.entries((t=>Se(t,[],(t,e)=>({[ze(t)]:we(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},fe="@container",Ee="$breakpoints",ke=t=>t.startsWith("$breakpoints."),Oe=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(fe))(e)?`${t}${e} {\n${Oe(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),Ve=t=>{const e=(t=>Se(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===Ee)return{};const r=n.pop(),s=ie(o);"undefined"===r&&console.warn(s,`theme value: "${i}" is mapped to an invalid property`);const a=_t,l=t[o]?.[Ee]||{},d=n.filter(ke),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>ke(t)?`${fe} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!ke(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+`[${Gt(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+`[${Gt(r)}="${n.splice(i+1,1).join("")}"]`.repeat(s)},""),h=":host"+(p?`(${p})`:""),g=u.reduceRight((t,e)=>({[e]:t}),{[h]:{[r]:we(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]:Oe(o[e])}),{})})},{})},We=({globals:t,components:e},i)=>({globals:Le(t,i),components:Ve(e)}),Re=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),Ue=(t,e)=>{const i=Se(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=oe(e,n),s={[n]:r},a={[n]:Re(r)};return{theme:Ce({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},Ye=t=>`${t}__override`,Qe=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${Ye(t)}, ${o})`:o};class Pe{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 Be=(t,e="fallback")=>Ht(t,e),Ze=(t,e,{fallback:i})=>{if(!i)return{};const o=Be(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,...Ze(n,o,i)}},Fe=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=oe(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:Ye(n)},Ze(o,n,e[o]))},{}),Ge=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...Fe(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o=_t,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=>Ht("st",i,t))}get#h(){return R.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=E("",this.#d,{prepend:!0}),this.#s=R.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=E(`:host(${t}) {}`,this.#d)}}#y(t,e){const{style:i}=this.#n.cssRules[0];if(!i)return;const o=oe(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new Pe,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Be(e,t?.suffix);return Qe(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:Gt(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=oe(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>$t(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),$t(i)?i():i,Qe(a,l,!0)+(r?"!important":""))})}),o.toString()})(Ht(n,this.#a),this.#c,t);E(e,this.#d,{prepend:!0})}}#I(){const t=$t(i)?i():i;t&&E(t,this.#d,{prepend:!0})}#x(t){(this.#d.classList||this.#d.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot?.isConnected&&(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),Xt(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},He=t=>class extends t{constructor(){super(),E(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},Je=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},$e=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},qe=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},_e=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value","loading"],Xe=t=>class extends t{init(){super.init?.(),Xt(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>_e.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},Ke=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return Jt(Je,qe,Xe,$e)(i)};function ti(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const ei=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(Ke({componentName:t,baseSelector:e})){#L=ti.bind(this,"blur");#f=ti.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,E(($t(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#L()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),re(this.baseElement,this,s),ee(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},ii=["required","pattern"],oi=Symbol("validationTarget"),ni=t=>class extends t{#C=oi;static get observedAttributes(){return[...t.observedAttributes||[],...ii]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}get defaultErrorMsgTypeMismatch(){return"Please match the requested type."}getCustomErrorMessage(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===oi?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),ii.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},ri=["invalid","required"],si=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},ai=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(ni(r)){static get observedAttributes(){return[...r.observedAttributes||[],...ri]}#E;#v=ti.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=si(t)||si(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement?.setSelectionRange?.bind(this.inputElement),ne(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]})}}},li=t=>Jt(ai(t),Ge({componentNameOverride:ie("input-wrapper")})),di=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Ge({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:Fe(Ht(e.componentName,"_"+r),i)}}#O;constructor(){const t=(e=async t=>(t.shadowRoot||t).querySelector(t.baseSelector),async t=>{const i=await e(t);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})});var e;super({getRootElement:t,componentNameSuffix:"_"+r,themeSection:"_"+r,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;ne(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},ci=t=>class extends t{#v=ti.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},ui=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,ti.call(this,"blur"),ti.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(ti.call(this,"focus"),ti.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,ti.call(this,"input",{bubbles:!0,composed:!0})))})}},pi=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},hi=(...t)=>Jt(ni,ci,Xe,ui)(Ke(...t)),gi=ie("boolean-field-internal"),Mi=["disabled","invalid","readonly"],mi=hi({componentName:gi,baseSelector:"div"}),yi=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${gi}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${gi}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(gi),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),ne(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),re(this.inputElement,this,["checked"]),ee(this,this.inputElement,{includeAttrs:["checked"]})}};var bi=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${Ft.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${Ft.cssVarList.hostDirection}: var(${t.hostDirection});\n}\n\n`;const Ni=ie("checkbox"),{host:Ii,component:xi,checkboxElement:ji,checkboxSurface:Ti,checkboxLabel:Di,requiredIndicator:vi,helperText:zi,errorMessage:Ci}={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)"}},Si=Jt(Ge({mappings:{hostWidth:{...Ii,property:"width"},hostDirection:{...Ii,property:"direction"},fontSize:[Ii,ji,Di],fontFamily:[Di,zi,Ci],labelTextColor:{...Di,property:"color"},labelSpacing:{...Di,property:"padding-inline-start"},labelLineHeight:{...Di,property:"line-height"},labelFontWeight:{...Di,property:"font-weight"},labelRequiredIndicator:{...vi,property:"content"},errorMessageTextColor:{...Ci,property:"color"},errorMessageIcon:{...Ci,property:"background-image"},errorMessageIconSize:{...Ci,property:"background-size"},errorMessageIconPadding:{...Ci,property:"padding-inline-start"},errorMessageIconRepeat:{...Ci,property:"background-repeat"},errorMessageIconPosition:{...Ci,property:"background-position"},errorMessageFontSize:{...Ci,property:"font-size"},inputValueTextColor:{...Ti,property:"color"},inputBackgroundColor:{...ji,property:"background-color"},inputBorderRadius:{...ji,property:"border-radius"},inputBorderWidth:{...ji,property:"border-width"},inputBorderOffset:{...ji,property:"border-offset"},inputBorderColor:{...ji,property:"border-color"},inputBorderStyle:{...ji,property:"border-style"},inputOutlineWidth:{...ji,property:"outline-width"},inputOutlineOffset:{...ji,property:"outline-offset"},inputOutlineColor:{...ji,property:"outline-color"},inputOutlineStyle:{...ji,property:"outline-style"},inputAlign:{...ji,property:"align-self"},inputContainerPadding:{...xi,property:"padding"},inputContainerBackgroundColor:{...xi,property:"background-color"},inputContainerBorderRadius:{...xi,property:"border-radius"},inputContainerBorderWidth:{...xi,property:"border-width"},inputContainerBorderColor:{...xi,property:"border-color"},inputContainerBorderStyle:{...xi,property:"border-style"},inputContainerOutlineWidth:{...xi,property:"outline-width"},inputContainerOutlineOffset:{...xi,property:"outline-offset"},inputContainerOutlineColor:{...xi,property:"outline-color"},inputContainerOutlineStyle:{...xi,property:"outline-style"},inputSize:[{...ji,property:"width"},{...ji,property:"height"},{...Ti,property:"font-size"},{...xi,property:"font-size"}]}}),He,li({proxyProps:["value","selectionStart"]}),Je,yi)(ei({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${bi(Si.cssVarList)}\n ${be(Si.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:Ni})),wi=A("text");class Ai extends(It({componentName:wi,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',E("\n :host {\n display: inline-block;\n line-height: 1em;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n ",this)}get hideWhenEmpty(){return"true"===this.getAttribute("hide-when-empty")}init(){super.init(),z(this,()=>{const t=!!this.childNodes.length;this.style.display=!t&&this.hideWhenEmpty?"none":""})}}const{host:Li}={host:{selector:()=>":host"}},fi=T(ht({mappings:{hostWidth:{...Li,property:"width"},hostDirection:{...Li,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(Ai),Ei=A("link"),ki=["href","readonly"];class Oi extends(It({componentName:Ei,baseSelector:":host a"})){static get observedAttributes(){return ki.concat(super.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t<div>\n\t\t\t<descope-text part="wrapper">\n\t\t\t\t<a>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</a>\n\t\t\t</descope-text>\n\t\t</div>\n\t\t',E('\n :host {\n\t\t\tdisplay: inline-block;\n line-height: 1em;\n\t\t}\n\t\t:host a {\n\t\t\tdisplay: inline;\n\t\t}\n\n :host([ellipsis="true"]) descope-text {\n display: inline-flex;\n }\n :host([ellipsis="true"]) descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ',this),this.anchor=this.shadowRoot.querySelector("a"),f(this,this.anchor,{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),f(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]}),this.anchor.addEventListener("click",t=>{this.readOnly&&t.preventDefault()})}get readOnly(){return"true"===this.getAttribute("readonly")}}const Vi={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>fi.componentName}},{anchor:Wi,text:Ri,host:Ui,wrapper:Yi,link:Qi}=Vi,Pi=T(ht({mappings:{hostWidth:{...Ui,property:"width"},hostDirection:{...Ri,property:"direction"},textAlign:Yi,textDecoration:{...Qi,property:"text-decoration",fallback:"none"},textColor:[{...Wi,property:"color"},{...Ri,property:fi.cssVarList.textColor}],cursor:Wi}}),Yt({triggers:[{attr:"full-width",value:"true"}]}),gt,Mt)(Oi);customElements.define(wi,fi),customElements.define(Ei,Pi),customElements.define(Pt,Ft),customElements.define(gi,class extends mi{static get observedAttributes(){return["readonly","label"]}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper">\n\t\t\t\t<vaadin-checkbox>\n\t\t\t\t\t<descope-enriched-text link-target-blank="true" class="label-content" slot="label"></descope-enriched-text>\n\t\t\t\t</vaadin-checkbox>\n\t\t\t</div>\n\t\t',this.wrapperEle=this.querySelector("div"),this.checkbox=this.querySelector("vaadin-checkbox"),this.labelContent=this.querySelector(".label-content")}get value(){return this.checkbox?.checked}set value(t){this.checkbox.checked=t}get checked(){return this.value}set checked(t){this.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.checkbox.focus()}),super.init?.(),ne(this,this.checkbox,{includeAttrs:Mi}),ee(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(Ni,Si);const Bi=ie("switch-toggle"),{host:Zi,component:Fi,checkboxElement:Gi,checkboxSurface:Hi,checkboxLabel:Ji,requiredIndicator:$i,helperText:qi,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)"}},Xi=Jt(Ge({mappings:{hostWidth:{...Zi,property:"width"},hostDirection:{...Zi,property:"direction"},fontSize:[Fi,Ji,Ji],fontFamily:[Ji,qi,_i],labelTextColor:[{...Ji,property:"color"},{...Ji,property:"-webkit-text-fill-color"}],labelSpacing:{...Ji,property:"padding-inline-start"},labelLineHeight:{...Ji,property:"line-height"},labelFontWeight:{...Ji,property:"font-weight"},labelRequiredIndicator:{...$i,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:{...Gi,property:"border-width"},trackBorderStyle:{...Gi,property:"border-style"},trackBorderColor:{...Gi,property:"border-color"},trackBackgroundColor:{...Gi,property:"background-color"},trackBorderRadius:{...Gi,property:"border-radius"},trackWidth:[{...Gi,property:"width"}],trackHeight:[{...Hi,property:"font-size"},{...Gi,property:"height"}],knobSize:[{...Hi,property:"width"},{...Hi,property:"height"}],knobTextColor:{...Hi,property:"color"},knobRadius:{...Hi,property:"border-radius"},knobTransitionDuration:{...Hi,property:"transition"},knobColor:{...Hi,property:"background-color"},knobTopOffset:{...Hi,property:"top"},knobLeftOffset:{...Hi,property:"left"},inputOutlineWidth:{...Gi,property:"outline-width"},inputOutlineOffset:{...Gi,property:"outline-offset"},inputOutlineColor:{...Gi,property:"outline-color"},inputOutlineStyle:{...Gi,property:"outline-style"}}}),He,li({proxyProps:["value","selectionStart"]}),Je,yi)(ei({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${bi(Xi.cssVarList)}\n\t\t\t${be(Xi.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:Bi}));customElements.define(Bi,Xi);const Ki=ie("loader-linear");class to extends(Ke({componentName:Ki,baseSelector:":host > div"})){static get componentName(){return Ki}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",E("\n @keyframes tilt {\n\t\t\t\t0% { transform: translateX(0); }\n\t\t\t\t50% { transform: translateX(400%); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\tdiv::after {\n\t\t\t\tcontent: '';\n\t\t\t\tanimation-name: tilt;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\twidth: 100%;\n\t\t\t}\n ",this)}}const{after:eo,host:io}={after:{selector:"::after"},host:{selector:()=>":host"}},oo=Jt(Ge({mappings:{hostDisplay:{},hostWidth:{...io,property:"width"},barHeight:[{property:"height"},{...eo,property:"height"}],barBorderRadius:[{property:"border-radius"},{...eo,property:"border-radius"}],verticalPadding:[{...io,property:"padding-top"},{...io,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...eo,property:"background-color"},barWidth:{...eo,property:"width"},animationDuration:[{},eo],animationTimingFunction:[{},eo],animationIterationCount:[{},eo]}}),He,Je)(to);customElements.define(Ki,oo);const no=ie("loader-radial");class ro extends(Ke({componentName:no,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",E("\n @keyframes spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tanimation-name: spin;\n\t\t\t}\n ",this)}}const so=Jt(Ge({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:{}}}),He,Je)(ro);customElements.define(no,so);const ao=ie("container");class lo extends(Ke({componentName:ao,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",E("\n\t\t\t:host > slot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n ",this)}}const co=Jt(Ge({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:{}}}),He,Je)(lo);customElements.define(ao,co);const uo=A("combo-box"),{host:po,inputField:ho,inputElement:go,placeholder:Mo,toggle:mo,clearButton:yo,label:bo,requiredIndicator:No,helperText:Io,errorMessage:xo,loader:jo,overlayContent:To}={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)"}},Do=T(ht({mappings:{hostWidth:{...po,property:"width"},hostDirection:{...po,property:"direction"},fontSize:[{},po],fontFamily:[bo,Mo,ho,Io,xo],labelFontSize:{...bo,property:"font-size"},labelFontWeight:{...bo,property:"font-weight"},inputValueFontWeight:{...ho,property:"font-weight"},inputPlaceholderFontWeight:{...Mo,property:"font-weight"},helperTextFontWeight:{...Io,property:"font-weight"},errorMessageFontWeight:{...xo,property:"font-weight"},labelTextColor:[{...bo,property:"color"},{...bo,property:"-webkit-text-fill-color"},{...No,property:"color"}],errorMessageTextColor:{...xo,property:"color"},errorMessageIcon:{...xo,property:"background-image"},errorMessageIconSize:{...xo,property:"background-size"},errorMessageIconPadding:{...xo,property:"padding-inline-start"},errorMessageIconRepeat:{...xo,property:"background-repeat"},errorMessageIconPosition:{...xo,property:"background-position"},errorMessageFontSize:{...xo,property:"font-size"},inputHeight:{...ho,property:"height"},inputBackgroundColor:{...ho,property:"background-color"},inputBorderColor:{...ho,property:"border-color"},inputBorderWidth:{...ho,property:"border-width"},inputBorderStyle:{...ho,property:"border-style"},inputBorderRadius:{...ho,property:"border-radius"},labelRequiredIndicator:{...No,property:"content"},inputValueTextColor:{...ho,property:"color"},inputPlaceholderTextColor:{...Mo,property:"color"},inputDropdownButtonCursor:[{...mo,property:"cursor"},{...yo,property:"cursor"}],inputDropdownButtonColor:[{...mo,property:"color"},{...yo,property:"color"}],inputDropdownButtonSize:[{...mo,property:"font-size"},{...yo,property:"font-size"}],inputDropdownButtonOffset:[{...mo,property:"margin-right"},{...mo,property:"margin-left"}],inputOutlineColor:{...ho,property:"outline-color"},inputOutlineWidth:{...ho,property:"outline-width"},inputOutlineStyle:{...ho,property:"outline-style"},inputOutlineOffset:{...ho,property:"outline-offset"},inputHorizontalPadding:[{...go,property:"padding-left"},{...go,property:"padding-right"}],labelPosition:{...bo,property:"position"},labelTopPosition:{...bo,property:"top"},labelHorizontalPosition:[{...bo,property:"left"},{...bo,property:"right"}],inputTransformY:{...bo,property:"transform"},inputTransition:{...bo,property:"transition"},marginInlineStart:{...bo,property:"margin-inline-start"},placeholderOpacity:{...Mo,property:"opacity"},inputVerticalAlignment:{...ho,property:"align-items"},valueInputHeight:{...go,property:"height"},valueInputMarginBottom:{...go,property:"margin-bottom"},overlayBackground:{property:()=>Do.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>Do.cssVarList.overlay.textColor},overlayBorder:{property:()=>Do.cssVarList.overlay.border},overlayFontSize:{property:()=>Do.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>Do.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>Do.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>Do.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>Do.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>Do.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>Do.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>Do.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>Do.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>Do.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>Do.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>Do.cssVarList.overlay.itemFocusBackground}}}),gt,Ot({name:"overlay",selector:"",mappings:{backgroundColor:[{selector:"vaadin-combo-box-scroller"},{selector:"vaadin-combo-box-overlay::part(overlay)"}],minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"},checkmarkDisplay:{selector:"vaadin-combo-box-item::part(checkmark)",property:"display"},selectedItemBackground:{selector:"vaadin-combo-box-item[selected]",property:"background-color"},selectedItemHoverBackground:{selector:"vaadin-combo-box-item[selected]:hover:not([disabled])",property:"background-color"},selectedItemFocusBackground:{selector:"vaadin-combo-box-item[selected][focused]:not([disabled])",property:"background-color"},itemHoverBackground:{selector:"vaadin-combo-box-item:hover:not([selected]):not([disabled])",property:"background-color"},itemFocusBackground:{selector:"vaadin-combo-box-item[focused]:not([selected]):not([disabled])",property:"background-color"},loaderTop:{...jo,property:"top"},loaderLeft:{...jo,property:"left"},loaderRight:{...jo,property:"right"},loaderMargin:{...jo,property:"margin"},loaderWidth:{...jo,property:"width"},loaderHeight:{...jo,property:"height"},loaderBorder:{...jo,property:"border"},loaderBorderColor:{...jo,property:"border-color"},loaderBorderRadius:{...jo,property:"border-radius"},contentHeight:{...To,property:"height"},contentOpacity:{...To,property:"opacity"},scrollerMinHeight:{selector:"vaadin-combo-box-scroller",property:"min-height"}},forward:{include:!1,attributes:["size"]}}),kt({proxyProps:["selectionStart"],inputEvent:"value-changed"}),Ut,Mt,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#tt=({displayName:t,value:e,label:i})=>`<span data-name="${i}" data-id="${e}">${t||i}</span>`;#R;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}set renderer(t){this.baseElement.renderer=t}get loading(){return"true"===this.getAttribute("loading")}set loading(t){t?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get requireMatch(){return"true"===this.getAttribute("require-match")&&!this.allowCustomValue}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){if(this.#R||this.getAttribute("data")){const t=this.getItemsTemplate();this.innerHTML=t}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:t}=this.baseElement,e=t?.["data-id"];t&&Array.from(this.children).includes(t)||(e&&this.shouldSelectItemOnItemsChange&&(this.value=e),this.value||this.setDefaultValue())}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){if(!e.baseElement.items?.length&&!e.allowCustomValue)return;const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#et(){const t=Array.from(this.children);t.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.handleSelectedItem()},0)}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#ot(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#nt(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}isValueMatch(){const t=this.baseElement.querySelector("input").value;return!t||this.baseElement.items.some(e=>e.dataset.name===t||e.dataset.id===t)}init(){super.init?.(),f(this,this.baseElement,{includeAttrs:["placeholder"]}),this.getValidity=function(){return this.requireMatch&&!this.isValueMatch()?{patternMismatch:!0}:!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ot(),this.#nt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",t=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}handleRequireMatchChange(t){this.baseElement.allowCustomValue=t||this.allowCustomValue}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"require-match"===t&&this.handleRequireMatchChange("true"===i))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#rt(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#st(t,e){t===this.value&&e!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",t=>{t.stopImmediatePropagation()},{once:!0,capture:!0})}set value(t){const e=this.#rt(t);this.#st(t,e),t&&e?this.baseElement.selectedItem=e:!e&&this.allowCustomValue?this.baseElement.value=t:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get autoOpenDisabled(){return"true"===this.getAttribute("auto-open-disabled")}})(At({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${$(Do.cssVarList)}\n\t\t${X("vaadin-combo-box")}\n\t\t${_("vaadin-combo-box")}\n\t\t${q("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n\n vaadin-combo-box::part(toggle-button),\n vaadin-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-combo-box[hide-toggle-button="true"]::part(toggle-button) {\n display: none;\n }\n\n vaadin-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n ${tt("vaadin-combo-box")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","size","placeholder","data","loading","style"],componentName:uo,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(uo,Do);const vo=t=>{const e=n.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},zo=A("image"),Co=["src","src-dark"];class So extends(It({componentName:zo,baseSelector:"slot"})){static get observedAttributes(){return Co}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",E("\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n :host > slot {\n width: 100%;\n height: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n ::slotted(*) {\n width: 100%;\n\t\t\t}\n\n .hidden {\n display: none;\n }\n ",this)}init(){super.init?.(),this.toggleVisibility(this.getSrc)}onThemeChange(){this.renderImage()}toggleVisibility(t){t?this.classList.remove("hidden"):this.classList.add("hidden")}get altText(){return this.getAttribute("alt")||""}get legacySrc(){return this.getAttribute("src")}get themeSrc(){return this.getAttribute(`src-${this.currentThemeName}`)}get getSrc(){return this.themeSrc||this.legacySrc}updateFillColor(t){[t,...t.querySelectorAll("*[fill]")].forEach(t=>{t.setAttribute("fill",`var(${wo.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=vo(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=vo(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 wo=T(ht({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),gt,Mt)(So),Ao=A("icon"),Lo=T(ht({mappings:{fill:[{},{property:wo.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),gt,Mt)(At({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:Ao})),fo=A("button"),{host:Eo,label:ko,slottedIcon:Oo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let Vo;const Wo=T(Yt({triggers:[{attr:"full-width",value:"true"}]}),ht({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...Eo,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...Eo,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:{...ko,property:"text-decoration"},labelSpacing:{...ko,property:"gap"},textAlign:{...ko,property:"justify-content",fallback:"center"},iconSize:[{...Oo,property:"width"},{...Oo,property:"height"}]}}),t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}},gt,Mt)(At({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${Vo}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Wo.cssVarList.outlineWidth}) + var(${Wo.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Wo.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Wo.cssVarList.hostHeight}) - var(${Wo.cssVarList.outlineWidth}) - var(${Wo.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Wo.cssVarList.hostWidth}) - var(${Wo.cssVarList.outlineWidth}) - var(${Wo.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style","role"],componentName:fo})),{color:Ro,fontSize:Uo}=Wo.cssVarList;Vo=`\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(${Ro});\n\t\ttop: calc(50% - (var(${Uo}) / 2));\n\t\tleft: calc(50% - (var(${Uo}) / 2));\n\t\tborder-width: calc(var(${Uo}) / 10);\n\t\twidth: var(${Uo});\n\t\theight: var(${Uo});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"]) ::part(prefix),\n\t:host([loading="true"]) ::part(label) {\n\t\tvisibility: hidden;\n\t}\n`,customElements.define(fo,Wo);const Yo=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Qo=Yo[0],Po="YYYY-MM-DD",Bo="/",Zo=["January","February","March","April","May","June","July","August","September","October","November","December"],Fo=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Go={id:"month",min:1,max:12,placeholder:"MM"},Ho={id:"day",min:1,max:31,placeholder:"DD"},Jo={id:"year",min:0,max:9999,placeholder:"YYYY"},$o=1900,qo=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},Xo={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},Ko=t=>{const e=(t=>`^${t.split(Bo).map(t=>Xo[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Bo);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(Bo))})(t,o,i)}},tn=Object.fromEntries(Yo.map(t=>[t,Ko(t)])),en=t=>!Number.isNaN(Number(t)),on=t=>{const e=_o(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},nn=(t,e)=>{const[i,o,n]=on(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])},rn=()=>_o().getTime(),sn=t=>_o(t).getFullYear().toString(),an=t=>(_o(t).getMonth()+1).toString(),ln=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),dn=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,cn=({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`,un=(t=Zo)=>t.map((t,e)=>cn({label:t,dataId:e+1,dataName:t})).join(""),pn=(t,e)=>{const[i,o]=on(e),[n,r]=on(t);return n===i&&r===o},hn=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),gn=ie("calendar"),Mn=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],mn=["calendar-label-submit","calendar-label-cancel"],yn=hi({componentName:gn,baseSelector:"div"}),{calendar:bn,day:Nn,dayEntry:In,currentDay:xn,selectedDay:jn,disabledDay:Tn,weekday:Dn,topNav:vn,topNavSelectors:zn,bottomNav:Cn,navPrev:Sn,navNext:wn,navPrevRTL:An,navNextRTL:Ln,yearInput:fn,monthInput:En}={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"}},kn=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...vn,property:"padding-top"},{...vn,property:"padding-bottom"}],topNavHorizointalPadding:[{...vn,property:"padding-right"},{...vn,property:"padding-left"}],topNavAlignment:{...vn,property:"justify-content"},topNavGap:{...vn,property:"gap"},topNavSelectorsGap:{...zn,property:"gap"},bottomNavVerticalPadding:[{...Cn,property:"padding-top"},{...Cn,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...Cn,property:"padding-right"},{...Cn,property:"padding-left"}],bottomNavAlignment:{...Cn,property:"justify-content"},bottomNavGap:{...Cn,property:"gap"},navMarginBottom:{...vn,property:"margin-bottom"},calendarPadding:[{...bn,property:"padding-bottom"},{...bn,property:"padding-right"},{...bn,property:"padding-left"}],navBorderBottomWidth:{...vn,property:"border-bottom-width"},navBorderBottomColor:{...vn,property:"border-bottom-color"},navBorderBottomStyle:{...vn,property:"border-bottom-style"},weekdayFontSize:{...Dn,property:"font-size"},weekdayFontWeight:{...Dn,property:"font-weight"},currentDayBorderColor:{...xn,property:"border-color"},currentDayBorderWidth:{...xn,property:"border-width"},currentDayBorderStyle:{...xn,property:"border-style"},dayHeight:{...In,property:"height"},daySize:[{...Nn,property:"height"},{...Nn,property:"width"}],dayPadding:{...Nn,property:"padding"},dayRadius:{...Nn,property:"border-radius"},dayTextAlign:{...Nn,property:"text-align"},dayBlockAlign:{...Nn,property:"margin"},dayTextColor:{...Nn,property:"color"},dayFontWeight:{...Nn,property:"font-weight"},dayBackgroundColor:{...Nn,property:"background-color"},dayCursor:{...Nn,property:"cursor"},dayFontSize:{...Nn,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...jn,property:"color"},daySelectedBackgroundColor:{...jn,property:"background-color"},dayDisabledTextdColor:{...Tn,property:"color"},yearInputWidth:{...fn,property:"width"},monthInputWidth:{...En,property:"width"},navButtonSize:[{...Sn,property:"width"},{...Sn,property:"height"},{...wn,property:"width"},{...wn,property:"height"}],navButtonCursor:[{...Sn,property:"cursor"},{...wn,property:"cursor"}],navButtonRotation:[{...An,property:"transform"},{...Ln,property:"transform"}],navButtonOpacity:[{...Sn,property:"opacity"},{...wn,property:"opacity"}]}}),He,Je)(class extends yn{static get observedAttributes(){return[].concat(yn.observedAttributes||[],Mn,mn)}preview;epoch;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <nav class="nav top-nav">\n <div class="nav-prev">\n </div>\n <div class="selectors"></div>\n <div class="nav-next">\n </div>\n </nav>\n <div class="calendar"></div>\n <nav class="nav bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>\n </nav>\n </div>\n ',E(`\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n [data-toggle-calendar] {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n }\n\n [data-disabled="true"] {\n pointer-events: none;\n }\n\n .calendar .day {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n\n .selectors,\n .selectors span {\n display: flex;\n justify-content: center;\n }\n\n descope-button {\n padding: 0;\n ${Wo.cssVarList.horizontalPadding}: 0;\n ${Wo.cssVarList.verticalPadding}: 0;\n ${Wo.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();en(e)&&e!==this.epoch&&(this.epoch=e,this.renderCalendar())}get value(){return this.epoch?nn(this.epoch,Po):""}get isSelectedView(){return pn(this.preview,this.epoch)}get isTodayView(){return pn(rn(),this.preview)}get monthNames(){return(t=>{const e=t?.split(",");return dn(e,12)?e:Zo})(this.getAttribute("calendar-months"))}get weekdayNames(){return(t=>{const e=t?.split?.(",");return dn(e,7)?e:Fo})(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 ${un()}\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=hn(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=hn(this.shadowRoot.querySelector(".year-input"),this.onYearChange.bind(this),this.onYearInputBlur.bind(this)),[this.monthInput,this.yearInput].forEach(t=>ne(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=>ne(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||rn(),e=sn(t),i=an(t);this.monthInput.value=i,setTimeout(()=>{this.yearInput.baseElement.value=e})}}renderCalendar(){const t=_o(this.preview||rn()).getTime(),[e,i]=on(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=nn(e.getTime(),Po),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||sn(this.preview)}onMonthInputBlur(t){this.monthInput.baseElement.value=t.target.value||an(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();en(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=>cn({label:t,dataId:t,dataName:t})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=un(this.monthNames))})}onSubmitLabelChange(t){this.submitButton&&(this.submitButton.textContent=t||"Done")}onCancelLabelChange(t){this.cancelButton&&(this.cancelButton.textContent=t||"Cancel")}onInitialMonthChange(t){const e=sn(this.preview);this.preview=_o(`${e}/${t}/1`).getTime()}onInitialYearChange(t){const e=an(this.preview);this.preview=_o(`${t}/${e}/1`).getTime()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),e!==i&&(mn.includes(t)?("calendar-label-submit"===t&&this.onSubmitLabelChange(i),"calendar-label-cancel"===t&&this.onCancelLabelChange(i)):(i&&"initial-value"===t&&this.onInitialValueChange(i),i&&"initial-month"===t&&this.onInitialMonthChange(i),i&&"initial-year"===t&&this.onInitialYearChange(i),"years-range"===t&&this.onYearsRangeChange(Number(i)),"calendar-months"===t&&this.onMonthNamesChange(),"calendar-label-today"===t&&this.setCurrentDay(i),"disabled"===t&&setTimeout(()=>{this.cancelButton?.setAttribute("disabled","true"===i)}),this.renderCalendar()))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}});customElements.define(gn,kn);const{host:On,label:Vn,placeholder:Wn,requiredIndicator:Rn,inputField:Un,input:Yn,inputMask:Qn,helperText:Pn,errorMessage:Bn,disabledPlaceholder:Zn,inputDisabled:Fn,inputIcon:Gn,externalInput:Hn,externalInputDisabled:Jn,externalPlaceholder:$n,externalDisabledPlaceholder:qn}={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:[{},On],fontFamily:[Vn,Un,Pn,Bn],labelFontSize:{...Vn,property:"font-size"},labelFontWeight:{...Vn,property:"font-weight"},inputValueFontWeight:[{...Yn,property:"font-weight"},{...Hn,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...$n,property:"font-weight"}],helperTextFontWeight:{...Pn,property:"font-weight"},errorMessageFontWeight:{...Bn,property:"font-weight"},labelTextColor:[{...Vn,property:"color"},{...Rn,property:"color"},{...Vn,property:"-webkit-text-fill-color"},{...Rn,property:"-webkit-text-fill-color"}],hostWidth:{...On,property:"width"},hostMinWidth:{...On,property:"min-width"},hostDirection:{...On,property:"direction"},inputDirection:{...Yn,property:"direction"},inputBackgroundColor:[{...Un,property:"background-color"},{...Qn,property:"background-color"}],errorMessageTextColor:{...Bn,property:"color"},errorMessageIcon:{...Bn,property:"background-image"},errorMessageIconSize:{...Bn,property:"background-size"},errorMessageIconPadding:{...Bn,property:"padding-inline-start"},errorMessageIconRepeat:{...Bn,property:"background-repeat"},errorMessageIconPosition:{...Bn,property:"background-position"},errorMessageFontSize:{...Bn,property:"font-size"},helperTextColor:{...Pn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Un,property:"color"},{...Fn,property:"-webkit-text-fill-color"},{...Jn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Yn,property:"caret-color"},{...Hn,property:"caret-color"}],labelRequiredIndicator:{...Rn,property:"content"},inputBorderColor:{...Un,property:"border-color"},inputBorderWidth:{...Un,property:"border-width"},inputBorderStyle:{...Un,property:"border-style"},inputBorderRadius:{...Un,property:"border-radius"},inputHeight:{...Un,property:"height"},inputHorizontalPadding:[{...Yn,property:"padding-left"},{...Yn,property:"padding-right"},{...Hn,property:"padding-left"},{...Hn,property:"padding-right"}],inputOutlineColor:{...Un,property:"outline-color"},inputOutlineStyle:{...Un,property:"outline-style"},inputOutlineWidth:{...Un,property:"outline-width"},inputOutlineOffset:{...Un,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Yn,property:"text-align"},{...Hn,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...$n,property:"color"},{...Wn,property:"color"},{...Zn,property:"-webkit-text-fill-color"},{...qn,property:"-webkit-text-fill-color"}],labelPosition:{...Vn,property:"position"},labelTopPosition:{...Vn,property:"top"},labelHorizontalPosition:[{...Vn,property:"left"},{...Vn,property:"right"}],inputTransformY:{...Vn,property:"transform"},inputTransition:{...Vn,property:"transition"},marginInlineStart:{...Vn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...$n,property:"opacity"}],inputVerticalAlignment:[{...Un,property:"align-items"},{...Hn,property:"align-items"}],valueInputHeight:[{...Yn,property:"height"},{...Hn,property:"height"}],valueInputMarginBottom:[{...Yn,property:"margin-bottom"},{...Hn,property:"margin-bottom"}],inputIconOffset:[{...Gn,property:"margin-right"},{...Gn,property:"margin-left"}],inputIconSize:{...Gn,property:"font-size"},inputIconColor:{...Gn,property:"color"},inputTextSecurity:[{...Yn,property:"-webkit-text-security"},{...Yn,property:"text-security"},{...Hn,property:"-webkit-text-security"},{...Hn,property:"text-security"}]};const Xn=A("text-field"),Kn=["type","label-type","copy-to-clipboard"],tr=T(ht({mappings:_n}),gt,kt({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),Mt,t=>class extends t{static get observedAttributes(){return Kn.concat(t.observedAttributes||[])}icon;init(){super.init?.(),f(this,this.baseElement,{includeAttrs:["placeholder"]})}renderCopyToClipboard(t){if(!t)return this.icon?.remove(),void this.copyLiveRegion?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"},o=t=>{Object.assign(this.icon,t),this.icon.setAttribute("aria-label",t.title)};let n;this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",tabIndex:0}),this.icon.setAttribute("role","button"),o(e),this.copyLiveRegion=document.createElement("span"),this.copyLiveRegion.setAttribute("aria-live","polite"),this.copyLiveRegion.style.cssText="position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;",this.baseElement.appendChild(this.icon),this.shadowRoot.appendChild(this.copyLiveRegion);const r=async()=>{try{await navigator.clipboard.writeText(this.value)}catch{return}o(i),this.copyLiveRegion.textContent="Copied",clearTimeout(n),n=setTimeout(()=>{o(e),this.copyLiveRegion.textContent=""},3e3)};this.icon.addEventListener("click",r),this.icon.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),r())})}onLabelClick(){this.focus()}attributeChangedCallback(t,e,i){super.attributeChangeCallback?.(t,e,i),"type"===t&&this.baseElement._setType(i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===t&&this.renderCopyToClipboard("true"===i))}})(At({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(${tr.cssVarList.inputOutlineWidth}) + var(${tr.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {\n opacity: 1;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n ${tt("vaadin-text-field")}\n\t\t\t${$(tr.cssVarList)}\n\t\t\t${K("vaadin-text-field",tr.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-text-field vaadin-icon {\n align-self: center;\n }\n\t\t`,excludeAttrsSync:["tabindex","style","placeholder"],componentName:Xn}));customElements.define(Xn,tr);class er{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const ir=ie("date-field"),or=hi({componentName:ir,baseSelector:"vaadin-popover"}),nr=["format","opened","initial-value","readonly","disable-calendar","utc-time"],rr=["years-range","calendar-months","calendar-weekdays"],sr=[...nr,...rr],ar=tr.cssVarList,{host:lr,input:dr,inputEleRTL:cr,toggleButton:ur,overlay:pr,backdrop:hr}={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)"}},gr=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({mappings:{iconMargin:{...ur,property:"margin-inline-end"},hostWidth:{...lr,property:"width"},hostDirection:{...lr,property:"direction"},textAlign:{...dr,property:"text-align"},rtlInputDirection:{...cr,property:ar.inputDirection},rtlInputAlignment:{...cr,property:ar.inputTextAlign},overlayGap:{property:()=>gr.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>gr.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>gr.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>gr.overlayBoxShadow},overlayOutlineWidth:{property:()=>gr.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>gr.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>gr.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:tr.componentName,property:tr.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:tr.componentName,property:tr.cssVarList.errorMessageFontSize},labelFontWeight:{selector:tr.componentName,property:tr.cssVarList.labelFontWeight},inputValueFontWeight:{selector:tr.componentName,property:tr.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:tr.componentName,property:tr.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:tr.componentName,property:tr.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:tr.componentName,property:tr.cssVarList.errorMessageFontWeight}}}),di({name:"overlay",selector:"",mappings:{marginTop:{...pr,property:"margin-top"},backgroundColor:{...pr},backdropBackgroundColor:{...hr,property:"background-color"},backdropPointerEvents:{...hr,property:"pointer-events"},padding:{...pr},boxShadow:{...pr},outlineWidth:{...pr},outlineColor:{...pr},outlineStyle:{...pr}}}),He,Je)(class extends or{epoch="";format=Qo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=tn[this.format].getDate(this.inputElement.value);this.updateEpoch(ln(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=ln(t,this.isUtcTime)}dateCounters=[new er(Go,this.onDateCounterChange.bind(this)),new er(Ho,this.onDateCounterChange.bind(this)),new er(Jo,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(or.observedAttributes||[],sr)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-calendar">\n \n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>\n</svg>\n\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',E('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-calendar {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-calendar {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-calendar")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get displayValueEpoch(){const t=tn[this.format].getDate(this.inputElement.value);return en(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Bo).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(Bo)}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=nn(_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)),ne(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","bordered","data-errormessage-value-missing","data-errormessage-pattern-mismatch","data-errormessage-range-underflow","data-errormessage-range-overflow","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}handleInput(t){var e;t.preventDefault(),this.handleSelectAll(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.parseDigits(t.data),this.updateCountersDisplay()):t.inputType&&this.handleNavKeys(t)}initPopover(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=E(d,t)}#ut(){const t=document.createElement("span");t.innerHTML="<descope-calendar></descope-calendar>";const e=t.querySelector("descope-calendar");return e.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),e.addEventListener("cancel",this.closePopover.bind(this)),t}#it(){this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{}}onPopoverToggle(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disableCalendar||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}getCounterById(t){return this.dateCounters.find(e=>e.id===t)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const t=_o(this.calendar.value);this.value=ln(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=en(_o(this.inputElement.value||"").getTime())&&tn[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",nn(this.displayValueEpoch||this.epoch,Po)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",nn(rn(),Po))),ne(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(tn).includes(t)&&(this.format=t,this.updateFormatPattern())}updateFormatPattern(){const t=this.getAttribute("format")||this.format||Qo;this.setAttribute("type","date"),this.setAttribute("pattern",tn[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 Go.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case Jo.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case Ho.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),nr.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):rr.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>qo||t.numberValue<$o,i=Object.entries(this.getDateVals()).some(([t,e])=>{const i=this.getCounterById(t);return!e||i.numberValue!==e});return e||i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersEmpty||!this.isCountersOutOfRange&&!this.isInvalidDate()?{}:{patternMismatch:!0}}getDateVals(){const t={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return t;try{const e=new Date(this.epoch);this.isUtcTime?(t.month=e.getUTCMonth()+1,t.day=e.getUTCDate(),t.year=e.getUTCFullYear()):(t.month=e.getMonth()+1,t.day=e.getDate(),t.year=e.getFullYear())}catch(t){}return t}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.resetToInitialState()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy date value:",t)}}onPaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=((t,e)=>{const i=t.trim?.();return i?tn[e].getDate(i):null})(e,this.format);if(i)this.value=ln(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(ir,gr);const Mr=ie("divider");class mr extends(Ke({componentName:Mr,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div>\n\t\t\t\t<descope-text>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</descope-text>\n\t\t\t</div>\n\t\t",E("\n \t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t:host > div::before,\n\t\t\t\t:host > div::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t\tdescope-text {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t\t:host(:empty) descope-text {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t\t:host([vertical=\"true\"]) div {\n\t\t\t\t\twidth: fit-content;\n\t\t\t\t}\n ",this),this.textComponent=this.shadowRoot.querySelector("descope-text"),ne(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const yr=fi.cssVarList,{host:br,before:Nr,after:Ir,text:xr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},jr=Jt(Ge({mappings:{hostWidth:{...br,property:"width"},hostPadding:{...br,property:"padding"},hostDirection:{...xr,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...xr,property:yr.textAlign},labelTextWidth:{...xr,property:"width"},labelTextMaxWidth:{...xr,property:"max-width"},labelTextVerticalSpacing:[{...xr,property:"padding-top"},{...xr,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...xr,property:"padding-right"},{...xr,property:"padding-left"}],stripeColor:[{...Nr,property:"background-color"},{...Ir,property:"background-color"}],stripeHorizontalThickness:[{...Nr,property:"height"},{...Ir,property:"height"}],stripeVerticalThickness:[{...Nr,property:"width"},{...Ir,property:"width"}],stripeColorOpacity:[{...Nr,property:"opacity"},{...Ir,property:"opacity"}]}}),He,Je)(mr);customElements.define(Mr,jr);const Tr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(Ke({componentName:t,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div></div>\n\t\t\t",E(`\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t\tmargin: auto;\n\t\t\t\t\t${o}\n\t\t\t\t}\n `,this)}}const r=Jt(Ge({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),He,Je)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},Dr=ie("logo"),vr=Tr({componentName:Dr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Dr,vr);const zr=ie("totp-image"),Cr=Tr({componentName:zr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(zr,Cr);const Sr=ie("notp-image"),wr=Tr({componentName:Sr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Sr,wr);const Ar=ie("number-field"),Lr=Jt(Ge({mappings:_n}),He,li({proxyProps:["value","selectionStart"]}),Je)(ei({slots:["","prefix","suffix"],wrappedEleName:"vaadin-number-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${Lr.cssVarList.inputOutlineWidth}) + var(${Lr.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${ve("vaadin-number-field")}\n\t\t\t${be(Lr.cssVarList)}\n\t\t\t${((t,e)=>`\n ${Ne(t)}\n ${xe(t)}\n ${je(t)}\n ${Ie(t)}\n ${Te(t,e)}\n ${De(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`)("vaadin-number-field",Lr.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-number-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-number-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ar}));customElements.define(Ar,Lr);const fr="--descope-input-mask-content",Er="--descope-input-mask-display",kr="--descope-input-mask-fallback",Or=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},Vr=t=>t.replace(/\D/g,"")||"",Wr=(t,e)=>{e?(t.style.setProperty(fr,`"${e}"`),t.style.setProperty(Er,"flex")):(t.style.removeProperty(fr),t.style.removeProperty(Er))},Rr=ie("passcode-internal"),Ur=["digits","loading"],Yr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Qr=hi({componentName:Rr,baseSelector:"div"}),Pr=ie("passcode"),Br=["digits"],{host:Zr,digitField:Fr,label:Gr,requiredIndicator:Hr,internalWrapper:Jr,focusedDigitField:$r,errorMessage:qr}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${tr.componentName}[focused="true"]`},digitField:{selector:()=>tr.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},_r=tr.cssVarList,Xr=so.cssVarList,Kr=Jt(Ge({mappings:{fontSize:[{...Fr,property:_r.fontSize},Zr],hostWidth:{property:"width"},hostDirection:{...Zr,property:"direction"},fontFamily:[Zr,{...Gr}],labelFontWeight:{...Gr,property:"font-weight"},errorMessageFontWeight:{...qr,property:"font-weight"},digitValueFontWeight:{selector:tr.componentName,property:_r.inputValueFontWeight},labelTextColor:[{...Gr,property:"color"},{...Gr,property:"-webkit-text-fill-color"},{...Hr,property:"color"},{...Hr,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...Hr,property:"content"},errorMessageTextColor:{...qr,property:"color"},errorMessageIcon:{...qr,property:"background-image"},errorMessageIconSize:{...qr,property:"background-size"},errorMessageIconPadding:{...qr,property:"padding-inline-start"},errorMessageIconRepeat:{...qr,property:"background-repeat"},errorMessageIconPosition:{...qr,property:"background-position"},errorMessageFontSize:{...qr,property:"font-size"},digitValueTextColor:{selector:tr.componentName,property:_r.inputValueTextColor},digitSize:[{...Fr,property:"height"},{...Fr,property:"width"}],digitPadding:{...Fr,property:_r.inputHorizontalPadding},digitTextAlign:{...Fr,property:_r.inputTextAlign},digitCaretTextColor:{...Fr,property:_r.inputCaretTextColor},digitSpacing:{...Jr,property:"gap"},digitOutlineColor:{...Fr,property:_r.inputOutlineColor},digitOutlineWidth:{...Fr,property:_r.inputOutlineWidth},focusedDigitFieldOutlineColor:{...$r,property:_r.inputOutlineColor},overlayOpacity:{...Jr,property:"opacity"},spinnerSize:{selector:so.componentName,property:Xr.spinnerSize}}}),He,pi,li({proxyProps:["value","selectionStart"]}),Je,t=>class extends t{static get observedAttributes(){return Br.concat(t.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.(),E("\n .wrapper {\n display: flex;\n width: 100%;\n justify-content: space-between;\n direction: ltr;\n position: relative;\n }\n\n descope-text-field {\n direction: ltr;\n }\n\n .loader-container {\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n ",this);const t=document.createElement("template");t.innerHTML=`\n <${Rr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n aria-label="passcode"\n ><slot></slot></${Rr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Rr),ne(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)}})(ei({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: calc(var(--passcode-digits-count) * 2em);\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n :host([loading="true"]) descope-passcode-internal .loader-container {\n display: block;\n }\n\n\t\t\tdescope-passcode-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal .wrapper {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: initial;\n\t\t\t\theight: 100%;\n\t\t\t\tjustify-content: space-between;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal descope-text-field {\n\t\t\t\tmin-width: 2em;\n\t\t\t\tmax-width: var(${_r.inputHeight});\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n /* safari */\n\t\t\tvaadin-text-field::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${ve("vaadin-text-field")}\n\t\t\t${xe("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Pr}));customElements.define(Rr,class extends Qr{static get observedAttributes(){return Ur.concat(Qr.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],Vr(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}Or(e)}parseInputValue(t,e=""){const i=e.split("");i.length?this.fillDigits(i,t):t.value=""}initInputs(){this.inputs.forEach((t,e)=>{E(`\n vaadin-text-field::part(input-field)::before {\n ${kr}: '';\n content: var(${fr}, var(${kr}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Er}, none);\n align-items: center;\n justify-content: center;\n }`,t);const i=s()(e=>{this.parseInputValue(t,e),Wr(t)},0,{trailing:!0});let o=!1;t.addEventListener("input",e=>{t.value=Vr(t.value),t.value&&Wr(t,t.value[0]);const n="deleteContentBackward"===e?.inputType||o;o=!1,n&&Or(this.getPrevInput(t)),i(t.value)}),t.onkeydown=e=>{const{key:i}=e;"Backspace"===i?t.value?(t.setSelectionRange(1,1),o=!0):(e.preventDefault(),o=!1,Or(this.getPrevInput(t))):(o=!1,1===i.length&&(t.value=""))},ne(this,t,{includeAttrs:Yr}),t.shadowRoot.querySelector("input").setAttribute("aria-label",`Digit ${e+1} of ${this.inputs.length}`)}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Ur.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Pr,Kr);const ts=ie("password"),{host:es,inputField:is,inputElement:os,inputElementPlaceholder:ns,revealButtonContainer:rs,revealButtonIcon:ss,label:as,requiredIndicator:ls,errorMessage:ds,helperText:cs}={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)"}},us=Jt(Ge({mappings:{hostWidth:{...es,property:"width"},hostMinWidth:{...es,property:"min-width"},hostDirection:{...es,property:"direction"},fontSize:[{},es],fontFamily:[as,is,ds,cs],inputHeight:{...is,property:"height"},inputHorizontalPadding:[{...os,property:"padding-left"},{...os,property:"padding-right"}],inputBackgroundColor:{...is,property:"background-color"},inputBorderStyle:{...is,property:"border-style"},inputBorderWidth:{...is,property:"border-width"},inputBorderColor:{...is,property:"border-color"},inputBorderRadius:{...is,property:"border-radius"},inputOutlineColor:{...is,property:"outline-color"},inputOutlineStyle:{...is,property:"outline-style"},inputOutlineOffset:{...is,property:"outline-offset"},inputOutlineWidth:{...is,property:"outline-width"},labelFontSize:{...as,property:"font-size"},labelFontWeight:{...as,property:"font-weight"},inputValueFontWeight:[{...os,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...ns,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...cs,property:"font-weight"},errorMessageFontWeight:{...ds,property:"font-weight"},labelTextColor:[{...as,property:"color"},{...as,property:"-webkit-text-fill-color"},{...ls,property:"color"},{...ls,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...ls,property:"content"},errorMessageTextColor:{...ds,property:"color"},errorMessageIcon:{...ds,property:"background-image"},errorMessageIconSize:{...ds,property:"background-size"},errorMessageIconPadding:{...ds,property:"padding-inline-start"},errorMessageIconRepeat:{...ds,property:"background-repeat"},errorMessageIconPosition:{...ds,property:"background-position"},errorMessageFontSize:{...ds,property:"font-size"},inputPlaceholderTextColor:[{...ns,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...os,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...rs,property:"margin-right"},{...rs,property:"margin-left"}],revealButtonSize:{...rs,property:"font-size"},revealButtonColor:{...ss,property:"color"},labelPosition:{...as,property:"position"},labelTopPosition:{...as,property:"top"},labelHorizontalPosition:[{...as,property:"left"},{...as,property:"right"}],inputTransformY:{...as,property:"transform"},inputTransition:{...as,property:"transition"},marginInlineStart:{...as,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...os,property:"opacity"}],inputVerticalAlignment:{...is,property:"align-items"},valueInputHeight:{...os,property:"height"}}}),He,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),ee(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.length=0}dispatchBlur(){return setTimeout(()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0})),this.removeAttribute("focused")})}handleFocusEvents(){this.baseElement.addEventListener("focus",()=>{this.externalInput.focus(),this.clearBlurTimers()}),this.externalInput.addEventListener("focus",()=>{this.clearBlurTimers(),setTimeout(()=>this.baseElement.setAttribute("focused","true"))})}handleBlurEvents(){this.baseElement.addEventListener("blur",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),li({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Je,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")}})(ei({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${be(us.cssVarList)}\n\t\t\t${xe("vaadin-password-field")}\n ${ve("vaadin-password-field")}\n ${Te("vaadin-password-field",us.cssVarList)}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${us.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:ts}));customElements.define(ts,us);const ps=ie("text-area"),{host:hs,label:gs,placeholder:Ms,inputField:ms,textArea:ys,requiredIndicator:bs,helperText:Ns,errorMessage:Is}={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)"}},xs=Jt(Ge({mappings:{hostWidth:{...hs,property:"width"},hostMinWidth:{...hs,property:"min-width"},hostDirection:{...hs,property:"direction"},fontSize:[hs,ys],fontFamily:[gs,ms,Ns,Is],labelFontSize:{...gs,property:"font-size"},labelFontWeight:{...gs,property:"font-weight"},inputValueFontWeight:{...ys,property:"font-weight"},inputPlaceholderFontWeight:{...Ms,property:"font-weight"},helperTextFontWeight:{...Ns,property:"font-weight"},errorMessageFontWeight:{...Is,property:"font-weight"},labelTextColor:[{...gs,property:"color"},{...gs,property:"-webkit-text-fill-color"},{...bs,property:"color"}],labelRequiredIndicator:{...bs,property:"content"},errorMessageTextColor:{...Is,property:"color"},errorMessageIcon:{...Is,property:"background-image"},errorMessageIconSize:{...Is,property:"background-size"},errorMessageIconPadding:{...Is,property:"padding-inline-start"},errorMessageIconRepeat:{...Is,property:"background-repeat"},errorMessageIconPosition:{...Is,property:"background-position"},errorMessageFontSize:{...Is,property:"font-size"},inputBackgroundColor:{...ms,property:"background-color"},inputValueTextColor:{...ys,property:"color"},inputPlaceholderTextColor:{...Ms,property:"color"},inputBorderWidth:{...ms,property:"border-width"},inputBorderStyle:{...ms,property:"border-style"},inputBorderColor:{...ms,property:"border-color"},inputBorderRadius:{...ms,property:"border-radius"},inputOutlineStyle:{...ms,property:"outline-Style"},inputOutlineColor:{...ms,property:"outline-color"},inputOutlineOffset:{...ms,property:"outline-offset"},inputOutlineWidth:{...ms,property:"outline-width"},inputResizeType:{...ys,property:"resize"},inputMinHeight:{...ys,property:"min-height"},inputTextAlign:{...ys,property:"text-align"}}}),He,li({proxyProps:["value","selectionStart"]}),Je)(ei({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 ${ve("vaadin-text-area")}\n\t\t\t${be(xs.cssVarList)}\n\t\t\t${Ne("vaadin-text-area")}\n\t\t\t${Ie("vaadin-text-area")}\n\t\t\t${je("vaadin-text-area","textarea")}\n\t\t\t${xe("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:ps}));customElements.define(ps,xs);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 Ts=({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`,Ds=ie("phone-field-internal"),vs=["disabled","size","bordered","readonly"],zs=["country-input-placeholder","default-code","restrict-countries"],Cs=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],Ss=["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(vs,zs,Cs,Ss),Ls=hi({componentName:Ds,baseSelector:"div"});customElements.define(Ds,class extends Ls{static get observedAttributes(){return[].concat(Ls.observedAttributes||[],As)}#Mt;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n >\n ${js.map(t=>Ts(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],ne(this,this.comboBox,{includeAttrs:["label-type"]}),ne(this,this.textField,{includeAttrs:["label-type","required","phone-input-type"],mapAttrs:{"phone-input-type":"type"}}),this.comboBox.customValueTransformFn=t=>{const[,e]=t?.split?.(" ")||[];return e}}get countryCodeInputData(){return this.comboBox.items}get countryCodeValue(){return this.comboBox.shadowRoot.querySelector("input").value}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get defaultCode(){return this.getAttribute("default-code")}get selectionStart(){return this.textField.selectionStart}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get selectedCountryCode(){return this.comboBox?.selectedItem?.getAttribute("data-country-code")}get restrictCountries(){const t=this.getAttribute("restrict-countries");return t?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){return this.comboBox.value&&this.textField.value?this.allowAlphanumericInput?`${this.comboBox.value}-${this.textField.value}`:`${this.comboBox.value}-${this.textField.value.replace(/\D+/g,"")}`:""}#mt(){this.comboBox.selectedItem=void 0,this.textField.value=""}set value(t){this.#yt(t)}#yt(t){if(!t||!/\d/.test(t))return void this.#mt();t.startsWith("+")||(t=`+${t}`);let e="",i="";if(t.includes("-")){const o=t.indexOf("-");e=t.slice(0,o),i=t.slice(o+1).replace(/\D+/g,"")}else{const o=(0,u.l)(t);o?.countryCallingCode&&(e=`+${o.countryCallingCode}`,i=t.slice(e.length).replace(/\D+/g,""))}if(!/\d/.test(e))return void this.#mt();const o=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.#bt(i):this.textField.value=i}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#Nt()}getValidity(){const t=this.comboBox.value,e=this.textField.value,i=!t||!e,o=e&&e.length>=this.minLength;if(this.isRequired&&i)return{valueMissing:!0};if(this.value){if(!o)return{tooShort:!0};if(this.isStrictValidation&&!this.#It())return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i){if("default-code"===t&&i&&!this.selectedCountryCode)this.#xt(i);else if(As.includes(t)){const e=ws[t]||t;vs.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):zs.includes(t)?this.comboBox.setAttribute(e,i):Cs.includes(t)&&this.textField.setAttribute(e,i)}Ss.includes(t)&&this.#jt(t,i),"restrict-countries"===t&&this.#Tt(this.restrictCountries)}}#Nt(){this.textField.addEventListener("input",this.#Dt.bind(this)),this.comboBox.addEventListener("change",this.#vt.bind(this)),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}#Dt(){const t=this.allowAlphanumericInput?this.textField.value:this.textField.value.replace(/\D+/g,"");this.textField.value=this.isFormatValue?this.#bt(t):t}#vt(){if(!this.isFormatValue)return;const t=this.textField.value.replace(/\D+/g,"");this.textField.value=this.#bt(t)}#bt(t=""){return this.#Mt&&this.#Mt.country===this.selectedCountryCode||(this.#Mt=new p.Q(this.selectedCountryCode)),this.#Mt.reset(),this.#Mt.input(t)||t}#It(){const t=(0,u.l)(this.value);return!!(t&&t.isValid?.()&&t.country&&this.#zt(t.country))}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Ct(t){return this.comboBox.items?.find(e=>e.getAttribute("data-country-code")===t)}#Tt(t){const e=t.length?js.filter(e=>t.includes(e.code)):js;this.querySelector("descope-combo-box").innerHTML=e.map(t=>Ts(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=ws[t]||t;"label-type"===t?this.#St(e):"floating"===this.getAttribute("label-type")&&("country-input-label"===t?this.comboBox.setAttribute(i,e):"label"===t&&this.textField.setAttribute(i,e))}#St(t){"floating"===t?(this.comboBox.setAttribute("label",this.getAttribute("country-input-label")||""),this.comboBox.setAttribute("placeholder",this.getAttribute("country-input-placeholder")||""),this.textField.setAttribute("label",this.getAttribute("label")||""),this.textField.setAttribute("placeholder",this.getAttribute("phone-input-placeholder")||"")):this.inputs.forEach(t=>t.removeAttribute("label"))}});const fs=tr.cssVarList,Es=Do.cssVarList,ks=ie("phone-field"),{host:Os,label:Vs,requiredIndicator:Ws,inputField:Rs,internalAfter:Us,countryCodeInput:Ys,phoneInput:Qs,separator:Ps,errorMessage:Bs,helperText:Zs}={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)"}},Fs=Jt(Ge({mappings:{fontSize:[Os,Rs,{selector:tr.componentName,property:tr.cssVarList.fontSize},{selector:Do.componentName,property:Do.cssVarList.fontSize}],fontFamily:[Vs,Bs,Zs,{...Ys,property:Do.cssVarList.overlay.fontFamily}],hostWidth:[{...Os,property:"width"},{...Qs,property:"width"},{...Ys,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Os,property:"direction"},inputBorderStyle:[{...Us,property:"border-style"},{...Ps,property:"border-left-style"}],inputBorderWidth:[{...Us,property:"border-width"},{...Ps,property:"border-left-width"}],inputBorderColor:[{...Us,property:"border-color"},{...Ps,property:"border-left-color"}],inputBorderRadius:[{...Rs,property:"border-radius"},{...Us,property:"border-radius"}],countryCodeInputWidth:{...Ys,property:Es.hostWidth},countryCodeDropdownWidth:{...Ys,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Qs,property:"width"},horizontalPadding:[{...Qs,property:"padding-left"},{...Qs,property:"padding-right"},{...Ys,property:"padding-left"},{...Ys,property:"padding-right"}],labelFontSize:{...Vs,property:"font-size"},labelFontWeight:{...Vs,property:"font-weight"},inputValueFontWeight:[{...Qs,property:fs.inputValueFontWeight},{...Ys,property:Es.inputValueFontWeight}],inputPlaceholderFontWeight:{...Qs,property:fs.inputPlaceholderFontWeight},helperTextFontWeight:{...Zs,property:"font-weight"},errorMessageFontWeight:{...Bs,property:"font-weight"},labelTextColor:[{...Vs,property:"color"},{...Vs,property:"-webkit-text-fill-color"},{...Ws,property:"color"}],labelRequiredIndicator:{...Ws,property:"content"},errorMessageTextColor:{...Bs,property:"color"},errorMessageIcon:{...Bs,property:"background-image"},errorMessageIconSize:{...Bs,property:"background-size"},errorMessageIconPadding:{...Bs,property:"padding-inline-start"},errorMessageIconRepeat:{...Bs,property:"background-repeat"},errorMessageIconPosition:{...Bs,property:"background-position"},errorMessageFontSize:{...Bs,property:"font-size"},inputValueTextColor:[{...Qs,property:fs.inputValueTextColor},{...Ys,property:Es.inputValueTextColor}],inputPlaceholderTextColor:{...Qs,property:fs.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:Es.overlayItemBackgroundColor},inputOutlineStyle:{...Rs,property:"outline-style"},inputOutlineColor:{...Rs,property:"outline-color"},inputOutlineWidth:{...Rs,property:"outline-width"},inputOutlineOffset:{...Rs,property:"outline-offset"},valueInputHeight:[{...Ys,property:Es.valueInputHeight}],valueInputMarginBottom:[{...Qs,property:fs.valueInputMarginBottom}],marginInlineStart:[{...Qs,property:fs.marginInlineStart},{...Ys,property:Es.marginInlineStart}]}}),He,pi,li({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<${Ds}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Ds}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(Ds),ne(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"))}})(ei({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${be(Fs.cssVarList)}\n\t\t\t${xe("vaadin-text-field")}\n\t\t\t${De("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(${Fs.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${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\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${fs.inputOutlineWidth}: 0;\n\t\t\t\t${fs.inputOutlineOffset}: 0;\n\t\t\t\t${fs.inputBorderWidth}: 0;\n\t\t\t\t${fs.inputBorderRadius}: 0;\n }\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 ${ve("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:ks}));customElements.define(ks,Fs);const Gs=ie("phone-field-internal-input-box"),Hs=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],Js={"phone-input-placeholder":"placeholder","phone-input-type":"type"},$s=hi({componentName:Gs,baseSelector:"div"});customElements.define(Gs,class extends $s{static get observedAttributes(){return[].concat($s.observedAttributes||[],Hs)}#Mt;constructor(){super(),this.innerHTML='\n <div>\n <descope-text-field tabindex="1" type="tel" bordered="false"></descope-text-field>\n </div>\n ',this.textField=this.querySelector("descope-text-field")}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get defaultDialCode(){return t=this.getAttribute("default-code"),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.#wt();const t=this.#At();return t?.country&&t?.countryCallingCode&&t?.nationalNumber?`+${[t?.countryCallingCode,t?.nationalNumber].join("-")}`:this.textField.value}set value(t){this.textField.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#Lt.bind(this)),this.handleFocusEventsDispatching([this.textField]),f(this.textField,this,{includeAttrs:["has-value"]}),f(this,this.textField,{includeAttrs:["phone-input-type"],mapAttrs:{"phone-input-type":"type"}})}getValidity(){const t=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,e=this.#ft(this.textField.value||"");if(this.isRequired&&!this.textField.value)return{valueMissing:!0};if(this.textField.value){if(e.length<this.minLength)return{tooShort:!0};if(this.isStrictValidation&&this.textField.value&&!this.#It()||!this.isStrictValidation&&this.textField.value&&!t.test(this.value))return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i&&Hs.includes(t)){const e=Js[t]||t;this.textField.setAttribute(e,i)}}#Lt(t){let e=this.#Et(t.target.value);this.isFormatValue&&this.#kt(e)&&(e=this.#Ot(e)),t.target.value=e}#wt(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Vt(this.textField.value),e=this.#ft(t);return[this.defaultDialCode,e].join("-")}#At(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#ft(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#ft(t){return t.replace(/\D/g,"")}#Vt(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#It(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#zt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Et(t){if(t=t.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const e=/^[+\d-\(\)]+$/;t=t.split("").filter(t=>e.test(t)).join("")}return t}#Ot(t=""){const e=this.defaultCode||this.#Wt(t);return e?(this.#Mt&&this.#Mt.country===e||(this.#Mt=new p.Q(e)),this.#Mt.reset(),this.#Mt.input(t)||t):t}#Wt(t){const e=(0,u.l)(t);return e?.country||""}#kt(t){return!!(t=>{const e=t.match(/\(/g),i=t.match(/\)/g);return e?.length===i?.length})(t)}});const qs=tr.cssVarList,_s=ie("phone-input-box-field"),{host:Xs,label:Ks,inputElement:ta,requiredIndicator:ea,inputField:ia,internalComponent:oa,internalComponentAfter:na,phoneInput:ra,errorMessage:sa,helperText:aa}={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)"}},la=Jt(Ge({mappings:{fontSize:[Xs,ia,{selector:tr.componentName,property:tr.cssVarList.fontSize}],fontFamily:[Ks,sa,aa],hostWidth:{...Xs,property:"width"},hostMinWidth:{...Xs,property:"min-width"},hostDirection:{...Xs,property:"direction"},inputHorizontalPadding:[{...ra,property:"padding-left"},{...ra,property:"padding-right"}],labelFontSize:{...Ks,property:"font-size"},labelFontWeight:{...Ks,property:"font-weight"},inputValueFontWeight:{...ra,property:qs.inputValueFontWeight},inputPlaceholderFontWeight:{...ra,property:qs.inputPlaceholderFontWeight},helperTextFontWeight:{...aa,property:"font-weight"},errorMessageFontWeight:{...sa,property:"font-weight"},labelTextColor:[{...Ks,property:"color"},{...Ks,property:"-webkit-text-fill-color"},{...ea,property:"color"}],labelRequiredIndicator:{...ea,property:"content"},errorMessageTextColor:{...sa,property:"color"},errorMessageIcon:{...sa,property:"background-image"},errorMessageIconSize:{...sa,property:"background-size"},errorMessageIconPadding:{...sa,property:"padding-inline-start"},errorMessageIconRepeat:{...sa,property:"background-repeat"},errorMessageIconPosition:{...sa,property:"background-position"},errorMessageFontSize:{...sa,property:"font-size"},inputValueTextColor:{...ra,property:qs.inputValueTextColor},inputPlaceholderTextColor:{...ra,property:qs.inputPlaceholderColor},inputBorderStyle:{...na,property:"border-style"},inputBorderWidth:{...na,property:"border-width"},inputBorderColor:{...na,property:"border-color"},inputBorderRadius:[{...oa,property:"border-radius"},{...na,property:"border-radius"}],inputOutlineStyle:{...oa,property:"outline-style"},inputOutlineColor:{...oa,property:"outline-color"},inputOutlineWidth:{...oa,property:"outline-width"},inputOutlineOffset:{...oa,property:"outline-offset"},labelPosition:{...Ks,property:"position"},labelTopPosition:{...Ks,property:"top"},labelHorizontalPosition:[{...Ks,property:"left"},{...Ks,property:"right"}],inputTransformY:{...Ks,property:"transform"},inputTransition:{...Ks,property:"transition"},marginInlineStart:{...Ks,property:"margin-inline-start"},valueInputHeight:{...ta,property:"height"},valueInputMarginBottom:{selector:tr.componentName,property:qs.valueInputMarginBottom}}}),He,pi,li({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<${Gs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Gs}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Gs),S(this,this.inputElement,{includeAttrs:["has-value"]}),ne(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}})(ei({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${be(la.cssVarList)}\n ${xe("vaadin-text-field")}\n ${De("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 ${qs.inputOutlineWidth}: 0;\n ${qs.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 ${ve("vaadin-text-field")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:_s}));customElements.define(_s,la);const da=ie("new-password-internal"),ca=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),ua=ie("policy-validation"),pa=["data","active-policies","overrides","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-actual-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse"],ha=["label","value",...pa];class ga extends(Ke({componentName:ua,baseSelector:":host > div"})){#Rt;#Ut=[];#Yt;static get observedAttributes(){return ha}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n\t\t',E("\n :host > div {\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .label {\n max-width: 100%;\n text-wrap: wrap;\n overflow-wrap: break-word;\n }\n .hide-label .label {\n display: none;\n }\n ul {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n }\n ul, li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n li::before {\n display: inline-block;\n width: 1em;\n text-align: center;\n }\n ",this),this.panel=this.shadowRoot.querySelector(":host > div"),this.label=this.shadowRoot.querySelector(".label"),this.list=this.shadowRoot.querySelector("ul")}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("label"===t&&this.updateLabel(i),pa.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(i)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Ut=(i||"").split(",")),"data-password-policy-value-minlength"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,minlength:{value:`${t}`}})}if("data-password-policy-value-reuse"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,reuse:{value:`${t}`}})}if("data-password-policy-value-passwordstrength"===t){const t=parseInt(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,expected:t}})}if("data-password-policy-actual-passwordstrength"===t){const t=Number(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,actual:t}})}if("data-password-policy-value-disallowedchars"===t)if(i)this.#Yt={...this.#Yt,disallowedchars:{...this.#Yt?.disallowedchars,value:i}};else if(this.#Yt?.disallowedchars){const{disallowedchars:t,...e}=this.#Yt;this.#Yt=e}if("data-password-policy-value-email"===t)if(i)this.#Yt={...this.#Yt,disallowemail:{...this.#Yt?.disallowemail,expected:i}};else if(this.#Yt?.disallowemail){const{disallowemail:t,...e}=this.#Yt;this.#Yt=e}}this.renderItems(this.#Rt,this.#Ut,this.#Yt)}}get availablePolicies(){return this.#Rt||[]}set availablePolicies(t){this.#Rt=t}get value(){return this.getAttribute("value")||""}getStrengthScore(){return this.value.length}compareValues(t,e,i){switch(t.toUpperCase()){case"GTE":return i>=e;case"GT":return i>e;case"LTE":return i<=e;case"LT":return i<e;case"EQ":return i===e;case"NEQ":return i!==e;default:throw new Error(`Invalid comparison type: ${t}`)}}validate(){let t=this.#Rt;return this.#Yt&&(t=this.#Rt.map(t=>{const e=this.#Yt[t.id];return e?{...t,data:e}:t})),this.#Ut.reduce((e,i)=>{const o=t.find(t=>t.id===i);if(!o)return e;const{pattern:n,message:r,data:s,compare:a,info:l}=o,d="string"==typeof a?a.toUpperCase():a;if(!n&&!a&&!l||!r)return e;const c={message:ca(r,s),id:i};if(l)c.info=!0;else if(n){const t=new RegExp(ca(n,s));c.valid=t.test(this.value)}else if("STR_NEQ_CI"===d){const t=(s?.expected??"").toLowerCase(),e=(this.value??"").toLowerCase();if(t&&e){const i=t.indexOf("@"),o=i>0?t.slice(0,i):t;c.valid=e!==t&&e!==o}else c.valid=!0}else a&&(c.valid=this.compareValues(d,s?.expected??-1,s?.actual??-1));return e.push(c),e},[]).sort((t,e)=>Number(!!t.info)-Number(!!e.info))}get isValid(){return!this.validate().some(({valid:t})=>!1===t)}buildValidationItem({valid:t,message:e,info:i}){const o=!this.value||i?"none":t,n=document.createElement("li");n.className="item",n.dataset.valid=o;const r=document.createElement("span");return r.className="message",r.textContent=e??"",n.appendChild(r),n}renderItems(t,e){t&&e.length&&this.list.replaceChildren(...this.validate().map(this.buildValidationItem.bind(this)))}updateLabel(t){t?(this.label.textContent=t,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.textContent="")}}const{host:Ma,item:ma,symbolDefault:ya,symbolSuccess:ba,symbolError:Na}={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'}},Ia=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({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:{...ma,property:"line-height"},itemSymbolSuccessColor:{...ba,property:"color"},itemSymbolErrorColor:{...Na,property:"color"},itemSymbolDefault:{...ya,property:"content"},itemSymbolSuccess:{...ba,property:"content"},itemSymbolError:{...Na,property:"content"}}}),He,Je)(ga),xa=ie("new-password"),ja=Ia.cssVarList,{host:Ta,label:Da,internalInputsWrapper:va,errorMessage:za,helperText:Ca,passwordInput:Sa,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=Jt(Ge({mappings:{fontSize:[Ta,{},{selector:us.componentName,property:us.cssVarList.fontSize}],fontFamily:[Da,za,Ca],labelFontSize:{...Da,property:"font-size"},labelFontWeight:{...Da,property:"font-weight"},inputValueFontWeight:{...Sa,property:us.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...Sa,property:us.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...Ca,property:"font-weight"},errorMessageFontWeight:{...za,property:"font-weight"},labelTextColor:{...Da,property:"color"},errorMessageTextColor:{...za,property:"color"},errorMessageIcon:{...za,property:"background-image"},errorMessageIconSize:{...za,property:"background-size"},errorMessageIconPadding:{...za,property:"padding-inline-start"},errorMessageIconRepeat:{...za,property:"background-repeat"},errorMessageIconPosition:{...za,property:"background-position"},errorMessageFontSize:{...za,property:"font-size"},hostWidth:{...Ta,property:"width"},hostMinWidth:{...Ta,property:"min-width"},hostDirection:[{...Ta,property:"direction"},{...Sa,property:us.cssVarList.hostDirection}],inputsRequiredIndicator:{...Ta,property:"content"},spaceBetweenInputs:{...va,property:"gap"},policyPreviewBackgroundColor:{...wa,property:ja.backgroundColor},policyPreviewPadding:{...wa,property:ja.padding},valueInputHeight:{...Sa,property:us.cssVarList.valueInputHeight},valueInputMarginBottom:{...Sa,property:us.cssVarList.valueInputMarginBottom}}}),He,li({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<${da}\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 </${da}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(da),"true"===this.getAttribute("external-input")&&this.initExternalInput(),ne(this,this.inputElement,{includeAttrs:["password-label","password-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","label","has-confirm","invalid","readonly","disabled","draggable","has-validation","policy-label","active-policies","available-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","label-type","manual-visibility-toggle"]})}createSlottedExternalInput(t,e){const i=t.querySelector("input"),o=document.createElement("slot"),n=i.getAttribute("slot");o.setAttribute("name",e),o.setAttribute("slot",n),t.appendChild(o),i.setAttribute("slot",e),i.setAttribute("name",this.getAttribute("name")),i.setAttribute("data-hidden-input","true"),this.appendChild(i)}initExternalInput(){this.passwordInput=this.inputElement.querySelector('[data-id="password"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.passwordInput,"external-password-input"),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input")}})(ei({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${be(us.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:xa}));customElements.define(ua,Ia);const La=/^password-/,fa=/^confirm-/,Ea=(t,e)=>t.replace(e,""),ka=["password-label","password-placeholder"],Oa=["confirm-label","confirm-placeholder"],Va=["has-validation","policy-label","available-policies","active-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","manual-visibility-toggle"],Wa=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ra=[].concat(Wa,ka,Oa,Va),Ua=hi({componentName:da,baseSelector:"div"});customElements.define(da,class extends Ua{static get observedAttributes(){return[].concat(Ua.observedAttributes||[],Ra)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.passwordInput?.value||""}set value(t){t!==this.value&&(this.passwordInput.value=t)}get hasConfirm(){return"true"===this.getAttribute("has-confirm")}onHasConfirmChange(t){this.confirmInput.classList.toggle("hidden",!t)}onHasValidationChange(t){this.policyPanel.classList.toggle("hidden",!t)}get hasValidation(){return"true"===this.getAttribute("has-validation")}getValidity(){if(this.isRequired&&!this.value)return{valueMissing:!0};if(this.value&&!this.policyPanel.isValid)return{typeMismatch:!0};if(this.hasConfirm&&this.confirmInput&&this.value!==this.confirmInput.value)return{patternMismatch:!0};const t=this.getAttribute("minlength"),e=parseInt(t,10)||0;return this.value.length>=e?{}:{tooShort:!0}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.passwordInput.focus()}),super.init?.(),this.renderInputs(this.hasConfirm,this.hasValidation)}renderInputs(){const t="true"===this.getAttribute("external-input"),e=`\n <div class="password-input-container">\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n data-id="password"\n external-input="${t}"\n ></descope-password>\n <descope-policy-validation></descope-policy-validation>\n </div>\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n external-input="${t}"\n data-id="confirm"\n ></descope-password>\n `;this.wrapperEle.innerHTML=e,this.passwordInput=this.querySelector('[data-id="password"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.policyPanel=this.querySelector("descope-policy-validation"),this.passwordStrength=this.querySelector("descope-password-strength"),this.inputs=[this.passwordInput,this.confirmInput],this.initInputs(),this.passwordInput.addEventListener("input",t=>{this.passwordStrength?.addEventListener("score-changed",({detail:t})=>{this.policyPanel.setAttribute("data-password-policy-actual-passwordstrength",t)},{once:!0}),this.passwordStrength?.setAttribute("value",t.target.value),this.policyPanel.setAttribute("value",t.target.value)}),ne(this,this.policyPanel,{includeAttrs:Va,mapAttrs:{"policy-label":"label","available-policies":"data"}})}handleIndicatorStyle(){this.inputs.forEach(t=>{E(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${Aa.cssVarList.inputsRequiredIndicator});\n width: 1em;\n text-align: center;\n\t\t\t\t}\n :host ::part(required-indicator) {\n display: inline-flex;\n }\n\t\t\t\t`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&Xt(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 qT}),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):Wa.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):ka.includes(t)?this.toggleBooleanAttribute(this.passwordInput,Ea(t,La),i):Oa.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,Ea(t,fa),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(xa,Aa);const Ya=ie("recaptcha"),Qa=["enabled","site-key","action","enterprise","variant"],Pa="recaptcha",Ba=hi({componentName:Ya,baseSelector:":host > div"}),Za=Jt(He)(class extends Ba{#Qt=null;static get observedAttributes(){return Qa.concat(Ba.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Pt("true"===i),"variant"===t&&(this.#Bt(),this.updatePreview()))}renderRecaptcha(t){this.children.length?this.updatePreview():this.toggleRecaptchaEles(t)}displayRecaptcha(){this.isWidgetVariant?this.displayWidget():this.displayDeprecated()}displayWidget(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="",this.depercatedRecaptchaEle.style.display="none"}hideRecaptcha(){this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display="none",this.mockRecaptchaEle.style.display=""}displayDeprecated(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display=""}toggleRecaptchaEles(t){t?this.displayRecaptcha():this.hideRecaptcha()}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <span id="recaptcha-widget"></span>\n <input id="recaptcha-widget-input" type="hidden" name="recaptcha-widget" required />\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',E('\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #recaptcha .grecaptcha-badge {\n box-shadow: none !important;\n }\n :host #recaptcha .grecaptcha-logo {\n height: 100%;\n }\n :host #recaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host #recaptcha-widget {\n width: 100%;\n height: 100%;\n }\n :host #recaptcha-widget-input {\n display: none;\n }\n :host img {\n width: 256px;\n }\n :host([full-width="true"]) {\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ',this),this.depercatedRecaptchaEle=this.baseElement.querySelector("#recaptcha"),this.recaptchaWidgetEle=this.baseElement.querySelector("#recaptcha-widget"),this.recaptchaWidgetInputEle=this.baseElement.querySelector("#recaptcha-widget-input"),this.mockRecaptchaEle=this.baseElement.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge")}init(){super.init?.(),Kt(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.#Qt=Pa):this.#Qt&&this.getAttribute("name")===this.#Qt&&(this.removeAttribute("name"),this.#Qt=null),this.dispatchEvent(new Event("change"))}updatePreview(){this.children.length?(this.depercatedRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.mockRecaptchaEle.style.display="none",this.badge.classList.add("hidden")):(this.toggleRecaptchaEles(this.enabled),this.badge.classList.remove("hidden"))}getValidity(){return this.isWidgetVariant?this.recaptchaWidgetInputEle.value?{}:{valueMissing:!0}:{}}checkValidity(){return!this.isWidgetVariant||!!this.recaptchaWidgetInputEle.value}get enterprise(){return"true"===this.getAttribute("enterprise")}get siteKey(){return this.getAttribute("site-key")}get action(){return this.getAttribute("action")||"load"}get enabled(){return"true"===this.getAttribute("enabled")}get variant(){return this.getAttribute("variant")||"text"}get isWidgetVariant(){return"widget"===this.variant}get scriptURL(){const t=new URL("https://www.google.com/recaptcha/");return t.pathname+=(this.enterprise?"enterprise":"api")+".js",t.searchParams.append("onload","onRecaptchaLoadCallback"),t.searchParams.append("render","explicit"),t.toString()}#Pt(t){this.renderRecaptcha(t),this.isWidgetVariant||t&&(this.#Zt(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Ft())}#Ft(){const t=document.createElement("script");t.src=this.scriptURL,t.async=!0,t.id="recaptcha-script",t.defer=!0,document.body.appendChild(t)}get grecaptchaInstance(){return this.enterprise?window.grecaptcha?.enterprise:window.grecaptcha}#Gt(t,e,i){this.isConnected&&t.ready(()=>{const o=e.querySelector('textarea[name^="g-recaptcha-response"]')?.cloneNode();if(o&&(o.style.display="none",document.body.appendChild(o)),!this.siteKey)return;const n=t?.execute(i,{action:this.action});n.then((n,r)=>{r?console.warn("could not execute recaptcha",r):(this.updateComponentsContext({risktoken:n,riskaction:this.action}),this.isConnected&&setTimeout(()=>{this.#Gt(t,e,i)},11e4)),o.remove()})})}#Zt(){window.onRecaptchaLoadCallback=()=>{const t=this.depercatedRecaptchaEle;if(t.hasChildNodes())return;const{grecaptchaInstance:e}=this;e&&setTimeout(()=>{const i=e.render(t,{sitekey:this.siteKey,badge:"inline",size:"invisible"});this.#Gt(e,t,i)},0)}}});customElements.define(Ya,Za);const Fa=ie("upload-file"),Ga=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],Ha=hi({componentName:Fa,baseSelector:":host > div"}),Ja=Wo.cssVarList,{host:$a,wrapper:qa,icon:_a,title:Xa,description:Ka,requiredIndicator:tl}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},el=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{...$a,property:"height"},hostWidth:{...$a,property:"width"},hostPadding:{property:"padding"},hostDirection:[{...$a,property:"direction"},{selector:()=>Wo.componentName,property:Ja.hostDirection}],gap:{...qa},lineHeight:{...qa,property:"line-height"},titleFontSize:{...Xa,property:"font-size"},titleFontWeight:{...Xa,property:"font-weight"},descriptionFontSize:{...Ka,property:"font-size"},labelTextColor:[{...Xa,property:"color"},{...Ka,property:"color"}],iconSize:{..._a,property:"width"},requiredIndicator:{...tl,property:"content"}}}),He,Je)(class extends Ha{static get observedAttributes(){return Ga.concat(Ha.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" aria-hidden="true"/>\n\t\t\t\t\t<descope-button id="button"></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',E("\n :host {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\ttext-align: center;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.button-wrapper {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t}\n ",this),this.wrapperEle=this.shadowRoot.querySelector(".wrapper"),this.inputElement=this.shadowRoot.querySelector("input"),this.button.onclick=()=>this.inputElement.click(),this.inputElement.onchange=async t=>{const e=t.target.files;var i;e.length&&(this.value=await(i=e[0],new Promise(t=>{const e=new FileReader;e.onload=e=>t(e.target.result),e.readAsDataURL(i)})),this.updateDescription((t=>t.name.replace(/^.*\\/,""))(e[0])))},this.oninvalid=()=>{this.setAttribute("invalid","true")}}getValidity(){return this.isRequired&&!this.input.value?{valueMissing:!0}:(this.removeAttribute("invalid"),{})}initInputs(){this.rootElement.querySelector("descope-button").onclick=()=>this.inputElement.click()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("title"===t?this.updateTitle(i):"description"===t?this.updateDescription(i):"button-label"===t?this.updateButtonLabel(i):"button-mode"===t?this.updateButtonMode(i):"button-variant"===t?this.updateButtonVariant(i):"size"===t?this.updateButtonSize(i):"accept"===t?this.updateInputAccept(i):"readonly"===t&&this.updateReadOnly(i))}get button(){return this.shadowRoot.querySelector("descope-button")}get input(){return this.shadowRoot.querySelector("input")}get title(){return this.shadowRoot.querySelector(".title-text")}get description(){return this.shadowRoot.querySelector(".description")}get icon(){return this.shadowRoot.querySelector(".icon")}updateTitle(t){this.title.textContent=t}updateDescription(t){this.description.textContent=t}updateButtonLabel(t){this.button.textContent=t}updateButtonSize(t){this.button.setAttribute("size",t)}updateButtonMode(t){this.button.setAttribute("mode",t)}updateButtonVariant(t){this.button.setAttribute("variant",t)}updateInputAccept(t){this.input.setAttribute("accept",t)}updateReadOnly(t){"true"===t?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}});customElements.define(Fa,el);const il=t=>{class e extends(hi({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=ti.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?.(),Xt(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return e},ol=ie("button-selection-group-internal");class nl extends(il(ol)){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 rl=ie("button-selection-group-item");class sl extends(Ke({componentName:rl,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,E("\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n ",this),ne(this,this.baseElement,{includeAttrs:["size","variant"]}),ne(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 al=Jt(Ge({mappings:{hostDirection:{selector:()=>Wo.componentName,property:Wo.cssVarList.hostDirection},hostWidth:{selector:()=>Wo.componentName,property:"width"},backgroundColor:{selector:()=>Wo.componentName,property:Wo.cssVarList.backgroundColor},labelTextColor:{selector:()=>Wo.componentName,property:Wo.cssVarList.labelTextColor},borderColor:{selector:()=>Wo.componentName,property:Wo.cssVarList.borderColor},borderWidth:{selector:()=>Wo.componentName,property:Wo.cssVarList.borderWidth},borderStyle:{selector:()=>Wo.componentName,property:Wo.cssVarList.borderStyle},borderRadius:{selector:()=>Wo.componentName,property:Wo.cssVarList.borderRadius},outlineColor:{selector:()=>Wo.componentName,property:Wo.cssVarList.outlineColor}}}),He,Je)(sl),ll=t=>class extends t{#tt=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#R;get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.renderItems(),Xt(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Kt(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})})}},{host:dl,label:cl,requiredIndicator:ul,internalWrapper:pl,errorMessage:hl}={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)"}},gl={hostWidth:{...dl,property:"width"},hostDirection:{...dl,property:"direction"},fontFamily:dl,labelTextColor:[{...cl,property:"color"},{...ul,property:"color"}],labelRequiredIndicator:{...ul,property:"content"},errorMessageTextColor:{...hl,property:"color"},errorMessageIcon:{...hl,property:"background-image"},errorMessageIconSize:{...hl,property:"background-size"},errorMessageIconPadding:{...hl,property:"padding-inline-start"},errorMessageIconRepeat:{...hl,property:"background-repeat"},errorMessageIconPosition:{...hl,property:"background-position"},errorMessageFontSize:{...hl,property:"font-size"},itemsSpacing:{...pl,property:"gap"},itemsDirection:{...pl,property:"flex-direction"},itemsAlignment:{...pl,property:"align-items"},itemsWidth:{selector:()=>`::slotted(${al.componentName})`,property:al.cssVarList.hostWidth}},Ml=`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n [part="internal-component"] slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${ve("vaadin-text-field")}\n\t\t\t${xe("vaadin-text-field")}\n `,ml=ie("button-selection-group"),yl=Jt(Ge({mappings:{...gl}}),He,li({proxyProps:["value","selectionStart"]}),Je,ll,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${ol}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${ol}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ol),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),ne(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(ei({slots:[],wrappedEleName:"vaadin-text-field",style:()=>Ml,excludeAttrsSync:["tabindex","style"],componentName:ml}));customElements.define(ol,nl),customElements.define(rl,al),customElements.define(ml,yl);const bl=ie("button-multi-selection-group-internal");class Nl extends(il(bl)){#Ht(){return this.items.filter(t=>t.hasAttribute("selected"))}onClick(t){t.target!==t.currentTarget&&(this.#Ht().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Ht().map(t=>t.value)}set value(t){this.items.forEach(e=>{t.includes(e.value)?e.setAttribute("selected","true"):e.removeAttribute("selected")})}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#Jt(t){const e=Array.isArray(t);return e||console.error("default-values must be an array, received:",t),e}get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.#Jt(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){setTimeout(()=>{this.defaultValues&&(this.value=this.defaultValues,this.setCustomValidity())})}getValidity(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}}init(){super.init(),this.setDefaultValues(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const Il=ie("button-multi-selection-group"),xl=Jt(Ge({mappings:{...gl}}),He,li({proxyProps:["value","selectionStart"]}),Je,ll,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${bl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${bl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(bl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),ne(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(ei({slots:[],wrappedEleName:"vaadin-text-field",style:()=>Ml,excludeAttrsSync:["tabindex","style"],componentName:Il}));customElements.define(bl,Nl),customElements.define(Il,xl);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 Tl=ie("grid-text-column");customElements.define(Tl,jl);const Dl=ie("grid-custom-column");customElements.define(Dl,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 vl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},zl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class Cl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=vl(),i.addEventListener("input",()=>{const t=zl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",zl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=vl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const Sl=ie("grid-selection-column");customElements.define(Sl,Cl);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=ie("grid-item-details-column");customElements.define(Al,wl),customElements.define(zo,wo),customElements.define(Ao,Lo);const Ll=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},fl=ie("code-snippet");let El=class extends(Ke({componentName:fl,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["lang","inline","copy-button"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <code class="hljs"></code>\n </div>\n ',E("\n :host {\n display: inline-block;\n width: 100%;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n code {\n grid-area: 1 / 1;\n display: block;\n width: 100%;\n min-height: 1em;\n overflow-x: auto;\n }\n pre {\n margin: 0;\n }\n .copy-btn {\n grid-area: 1 / 1;\n place-self: start end;\n margin: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-style: solid;\n cursor: pointer;\n opacity: 0;\n transition: opacity 150ms ease, background 150ms ease;\n }\n .wrapper:hover .copy-btn,\n .copy-btn:focus-visible {\n opacity: 1;\n }\n .copy-btn descope-icon {\n width: 16px;\n height: 16px;\n pointer-events: none;\n flex-shrink: 0;\n }\n .copy-btn .check-icon {\n display: none;\n }\n .copy-btn.copied .check-icon {\n display: block;\n }\n .copy-btn.copied descope-icon:not(.check-icon) {\n display: none;\n }\n ",this)}init(){super.init?.(),this.lang=this.getAttribute("lang"),this.isInline="true"===this.getAttribute("inline"),"true"===this.getAttribute("copy-button")&&this.#$t(),Kt(this,this.#qt.bind(this))}get contentNode(){return this.shadowRoot.querySelector("code")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("inline"===t&&(this.isInline=i),"lang"===t&&(this.lang=i),"copy-button"===t&&("true"===i?this.#$t():this.#_t()),this.#qt())}#$t(){if(this.shadowRoot.querySelector(".copy-btn"))return;const t=document.createElement("button");t.className="copy-btn",t.type="button",t.setAttribute("aria-label","Copy code");const e=document.createElement("descope-icon");e.setAttribute("src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogIDxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+CiAgPHBhdGggZD0iTTUgMTVINGEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg5YTIgMiAwIDAgMSAyIDJ2MSI+PC9wYXRoPgo8L3N2Zz4K");const i=document.createElement("descope-icon");i.setAttribute("src","data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iY2hlY2staWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT4KPC9zdmc+Cg=="),i.classList.add("check-icon"),t.appendChild(e),t.appendChild(i),t.addEventListener("click",()=>this.#Xt()),this.shadowRoot.querySelector(".wrapper").appendChild(t)}#_t(){this.shadowRoot.querySelector(".copy-btn")?.remove()}#Xt(){const t=this.shadowRoot.querySelector(".copy-btn");navigator.clipboard.writeText(Ll(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=Ll(this.textContent),e=this.lang;if(!e)return void(this.contentNode.textContent=t);const{value:i}=M.A.highlight(t,{language:e});this.contentNode.innerHTML=(t=>this.isInline?t:`<pre>${t}</pre>`)(i)}};const kl={selector:()=>".copy-btn"},{root:Ol,docTag:Vl,keyword:Wl,metaKeyword:Rl,templateTag:Ul,templateVariable:Yl,type:Ql,variableLanguage:Pl,title:Bl,titleClass:Zl,titleClassInherited:Fl,titleFunction:Gl,attr:Hl,attribute:Jl,literal:$l,meta:ql,number:_l,operator:Xl,variable:Kl,selectorAttr:td,selectorClass:ed,selectorId:id,regexp:od,string:nd,metaString:rd,builtIn:sd,symbol:ad,comment:ld,code:dd,formula:cd,name:ud,quote:pd,selectorTag:hd,selectorPseudo:gd,subst:Md,section:md,bullet:yd,emphasis:bd,strong:Nd,addition:Id,deletion:xd,charEscape:jd,link:Td,params:Dd,property:vd,punctuation:zd,tag:Cd}={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"}},Sd=Jt(Ge({mappings:{rootBgColor:{...Ol,property:"background-color"},rootTextColor:{...Ol,property:"color"},docTagTextColor:{...Vl,property:"color"},keywordTextColor:{...Wl,property:"color"},metaKeywordTextColor:{...Rl,property:"color"},templateTagTextColor:{...Ul,property:"color"},templateVariableTextColor:{...Yl,property:"color"},typeTextColor:{...Ql,property:"color"},variableLanguageTextColor:{...Pl,property:"color"},titleTextColor:{...Bl,property:"color"},titleClassTextColor:{...Zl,property:"color"},titleClassInheritedTextColor:{...Fl,property:"color"},titleFunctionTextColor:{...Gl,property:"color"},attrTextColor:{...Hl,property:"color"},attributeTextColor:{...Jl,property:"color"},literalTextColor:{...$l,property:"color"},metaTextColor:{...ql,property:"color"},numberTextColor:{..._l,property:"color"},operatorTextColor:{...Xl,property:"color"},variableTextColor:{...Kl,property:"color"},selectorAttrTextColor:{...td,property:"color"},selectorClassTextColor:{...ed,property:"color"},selectorIdTextColor:{...id,property:"color"},regexpTextColor:{...od,property:"color"},stringTextColor:{...nd,property:"color"},metaStringTextColor:{...rd,property:"color"},builtInTextColor:{...sd,property:"color"},symbolTextColor:{...ad,property:"color"},commentTextColor:{...ld,property:"color"},codeTextColor:{...dd,property:"color"},formulaTextColor:{...cd,property:"color"},nameTextColor:{...ud,property:"color"},quoteTextColor:{...pd,property:"color"},selectorTagTextColor:{...hd,property:"color"},selectorPseudoTextColor:{...gd,property:"color"},substTextColor:{...Md,property:"color"},sectionTextColor:{...md,property:"color"},bulletTextColor:{...yd,property:"color"},emphasisTextColor:{...bd,property:"color"},strongTextColor:{...Nd,property:"color"},additionTextColor:{...Id,property:"color"},additionBgColor:{...Id,property:"background-color"},deletionTextColor:{...xd,property:"color"},deletionBgColor:{...xd,property:"background-color"},charEscapeTextColor:{...jd,property:"color"},linkTextColor:{...Td,property:"color"},paramsTextColor:{...Dd,property:"color"},propertyTextColor:{...vd,property:"color"},punctuationTextColor:{...zd,property:"color"},tagTextColor:{...Cd,property:"color"},copyButtonSize:[{...kl,property:"width"},{...kl,property:"height"}],copyButtonBorderRadius:{...kl,property:"border-radius"},copyButtonBorderWidth:{...kl,property:"border-width"},copyButtonBorderColor:{...kl,property:"border-color"},copyButtonBgColor:{...kl,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...kl,property:"color"}}}),He,Je)(El);customElements.define(fl,Sd);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},Ld=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",fd=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${Ad(t)}</descope-code-snippet>`,Ed=t=>`<div class="row-details__value text" title="${t}">${Ad(t)}</div>`,kd=t=>fd(JSON.stringify(t,null,2),"json"),Od=t=>{const e=Ld(t);return"object"===e?kd(t):"xml"===e?(t=>fd(t,"xml"))(t):"array"===e?t.some(t=>"object"===Ld(t))?kd(t):Ed(t.join(",\n")):Ed(t)},Vd=ie("grid"),{host:Wd,headerRow:Rd,headerRowCell:Ud,contentRow:Yd,firstRow:Qd,sortIndicators:Pd,activeSortIndicator:Bd,selectedRow:Zd,rowSeparator:Fd,resizeHandle:Gd,toggleDetailsPanelButton:Hd,toggleDetailsPanelButtonOpened:Jd,toggleDetailsPanelButtonClosed:$d,detailsPanel:qd,detailsPanelLabels:_d,selectedRowCell:Xd,detailsPanelContent:Kd}={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"}},tc=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Rd},{...Yd}],fontSize:[{...Rd},{...Yd}],fontWeight:{...Yd},valueTextColor:{...Yd,property:"color"},backgroundColor:[{...Wd,property:"background-color"},{...Yd,property:"background-color"}],sortIndicatorsColor:{...Pd,property:"color"},activeSortIndicator:{...Bd,property:"color"},borderColor:{...Wd,property:"border-color"},borderWidth:{...Wd,property:"border-width"},borderStyle:{...Wd,property:"border-style"},borderRadius:{...Wd,property:"border-radius"},selectedBackgroundColor:[{...Zd,property:"background-color"},{...Xd,property:"background-color"}],headerRowTextColor:{...Ud,property:"color"},separatorColor:[{...Qd,property:"border-bottom-color"},{...Fd,property:"border-top-color"}],resizeHandleColor:{...Gd,property:"background-color"},hostDirection:{...Wd,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...Hd,property:"width"},{...Hd,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...Jd,property:"color"},toggleDetailsPanelButtonClosedColor:{...$d,property:"color"},toggleDetailsPanelButtonCursor:{...Hd,property:"cursor"},detailsPanelBackgroundColor:{...qd,property:"background-color"},detailsPanelBorderTopColor:{...qd,property:"border-top-color"},detailsPanelLabelsColor:{..._d,property:"color"},detailsPanelLabelsFontSize:{..._d,property:"font-size"},detailsPanelItemsGap:{...Kd,property:"grid-gap"},detailsPanelPadding:{...Kd,property:"padding"}}}),He,Je,t=>class extends t{#Kt;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{};const t=this.baseElement._updateDetailsCellHeight;this.baseElement._updateDetailsCellHeight=e=>{e&&t.call(this.baseElement,e)},this.baseElement.rowDetailsRenderer=this.#te.bind(this),this.baseElement.addEventListener("wheel",t=>{t.target.closest("descope-code-snippet")&&t.stopPropagation()},!0)}#te=async(t,e,i)=>{t.addEventListener("mousedown",t=>t.stopImmediatePropagation(),!0);const o=this.getRowDetailsTemplate(i.item);t.innerHTML="",t.append(o.content.cloneNode(!0))};getRowDetailsTemplate(t){const e=this.#Kt.reduce((t,{path:e,header:i})=>e&&i?{...t,[e]:i}:t,{}),i=this.rowDetailsRenderer?.(t,e)??((t,e)=>`\n <div class="row-details">\n ${Object.entries(t).map(([t,i])=>{const o=e[t]||t.replace(/([A-Z])/g," $1").trim().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");return(t=>{const e=Ld(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===Ld(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Od(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Od(i)}\n </div>`}).join("\n")}\n</div>\n `)(t,e);switch(!0){case i instanceof HTMLTemplateElement:return i;case"string"==typeof i:return Object.assign(document.createElement("template"),{innerHTML:i});default:throw new Error("rowDetailsRenderer should return a string or a template")}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",t=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"columns"===t&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#Kt=Array.from(this.children).map(t=>({path:t.getAttribute("path"),header:t.getAttribute("header"),type:t.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce((e,i)=>{const o=t.getAttribute(i);return o&&(e[i]=o),e},{})}))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const t=JSON.parse(this.columnsAttr);wd(t)&&(this.columns=t)}catch(t){console.error('could not parse data string from attribute "columns" -',t.message)}}#ee=({path:t,header:e,type:i,attrs:o})=>{const n=`descope-grid-${i}-column`;return`<${n} header="${e}" path="${t}" ${Object.entries(o).map(([t,e])=>`${t}="${e}"`).join(" ")}></${n}>`};get renderColumn(){return this.#ee}set renderColumn(t){this.#ee=t,this.renderColumns()}getColumnsTemplate(){return this.#Kt?.reduce?.((t,e)=>t+(this.renderColumn?.(e||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#te.bind(this)},0)}renderColumns(){const t=this.getColumnsTemplate();t&&(this.reassignRowDetailsRenderer(),this.innerHTML=t)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(t){if(wd(t)&&this.grid.items!==t&&(this.grid.items=t,this.grid.selectedItems)){const t=new Set(this.grid.items.map(t=>t[this.uniqueColumnId]??t)),e=this.grid.selectedItems.filter(e=>t.has(e[this.uniqueColumnId]??e));this.grid.selectedItems.length!==e.length&&(this.grid.selectedItems=e)}}get columns(){return this.#Kt}set columns(t){this.#Kt=t,this.renderColumns()}get paths(){return this.columns.map(t=>t.path)}get uniqueColumnId(){return this.getAttribute("unique-column-id")}})(ei({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(${tc.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:Vd}));customElements.define(Vd,tc);const ec=ie("modal"),ic=["opened"],oc=Jt(Ge({mappings:{overlayBackdropColor:{property:()=>oc.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>oc.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>oc.cssVarList.overlay.shadow},overlayWidth:{property:()=>oc.cssVarList.overlay.width},overlayBorderWidth:{property:()=>oc.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>oc.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>oc.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>oc.cssVarList.overlay.borderRadius}}}),di({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"]}}),He,Je,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],ic)}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(),ne(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),E("\n :host {\n display: flex!important;\n }\n ",this.baseElement)},t._detachOverlay=()=>{this.baseElement.style.display="none"},t._enterModalState=()=>{},t.close=()=>!1,t.addEventListener("click",e=>{if(!this.closeOnOutsideClick||!this.opened)return;const i=t.shadowRoot?.querySelector('[part="overlay"]');i&&!e.composedPath().includes(i)&&this.removeAttribute("opened")})}})(ei({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:ec}));customElements.define(ec,oc);const nc=window.customElements.get("vaadin-notification-container");if(!nc)throw new Error("could not get vaadin-notification-container class");customElements.define(ie("notification-container"),class extends nc{});const rc=ie("notification-card"),sc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},ac=Jt(Ge({mappings:{hostMinWidth:{selector:sc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:sc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:sc.content,property:"border-width"},borderColor:{selector:sc.content,property:"border-color"},borderStyle:{selector:sc.content,property:"border-style"},borderRadius:[{selector:sc.content,property:"border-radius"},{selector:sc.overlay,property:"border-radius"}],verticalPadding:[{selector:sc.content,property:"padding-top"},{selector:sc.content,property:"padding-bottom"}],horizontalPadding:[{selector:sc.content,property:"padding-right"},{selector:sc.content,property:"padding-left"}]}}),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()}}})(ei({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:rc}));customElements.define(rc,ac);const lc=ie("notification"),dc=Jt(He,Je,qe,t=>class e extends t{#ie;constructor(){super();const t=this;Object.defineProperty(this.baseElement,"_container",{get:()=>(e._container||(e._container=document.createElement("descope-notification-container"),e._container.style.position="absolute",document.body.appendChild(e._container)),e._container.isConnected||setTimeout(()=>t.parentNode.appendChild(e._container)),e._container)}),Object.defineProperty(this.baseElement,"_card",{get:()=>t.#ie}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#ie.close()}init(){super.init?.(),this.createCard(),ne(this,this.#ie),ee(this.#ie,this,{includeAttrs:["opened"]}),this.baseElement.renderer=t=>{Array.from(this.childNodes).forEach(e=>t.appendChild(e))}}get isContainerEmpty(){return!e._container.children.length}removeContainer(){e._container.remove()}removeNotification(){this.remove(),this.isContainerEmpty&&this.removeContainer()}createCard(){this.#ie=document.createElement("descope-notification-card"),this.#ie.addEventListener("card-closed",this.removeNotification.bind(this))}})(ei({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:lc}));customElements.define(lc,dc);const cc=ie("mappings-field-internal"),uc=hi({componentName:cc,baseSelector:"div"}),pc=ie("mappings-field"),{host:hc,helperText:gc,errorMessage:Mc,mappingItem:mc,labels:yc,labelsText:bc,valueLabel:Nc,attrLabel:Ic,separator:xc,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"]'}},Tc=Jt(Ge({mappings:{hostWidth:{...hc,property:"width"},hostDirection:{...hc,property:"direction"},fontSize:[{},hc,{...xc,property:"margin-top"}],fontFamily:[gc,Mc,yc],separatorFontSize:{...xc,property:"font-size"},labelsFontSize:{...bc,property:"font-size"},labelsLineHeight:[{...bc,property:"line-height"},{...yc,property:"line-height"}],labelTextColor:[{...yc,property:fi.cssVarList.textColor},{...xc,property:"color"}],itemMarginBottom:{...mc,property:"margin-bottom"},valueLabelMinWidth:{...Nc,property:"min-width"},attrLabelMinWidth:{...Ic,property:"min-width"},labelsMarginBottom:{...jc,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),He,li({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Je,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 <${cc}\n tabindex="-1"\n ></${cc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(cc),ne(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"]}),ee(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(ei({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(${Tc.cssVarList.separatorWidth}) 1fr var(${Tc.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 ${fi.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(${Tc.cssVarList.separatorWidth}) 1fr var(${Tc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:pc}));customElements.define(cc,class extends uc{#oe;static get observedAttributes(){return[].concat(uc.observedAttributes||[],["label-value","label-attr","button-label","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"])}isValidDataType(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),ne(this,e,{includeAttrs:["size","full-width","separator","options","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),setTimeout(()=>{this.setCustomValidity(""),e.addEventListener("mapping-item-removed",()=>{e===this.#oe&&(this.resetInvalidIndication(),this.#oe=void 0),e.remove(),this.setCustomValidity("")}),this.dispatchEvent(new CustomEvent("mapping-item-added",{bubbles:!0,composed:!0})),t&&e.focus()},0),e}get items(){return Array.from(this.mappingsContainerEle.querySelectorAll("descope-mapping-item"))}get value(){return this.items.reduce((t,e)=>e.value?[...t,e.value]:t,[])}set value(t){if(!this.isValidDataType(t))return void console.error("received invalid value to set - should be an array of objects with one key-value pair");const e=this.items;if(e.length>t.length)for(let i=t.length;i<e.length;i++)this.mappingsContainerEle.removeChild(e[i]);t.forEach((t,i)=>{const o=e[i];if(o)o.value=t;else{const e=this.addNewMappingItem(!1);setTimeout(()=>{e.value=t},0)}})}constructor(){super(),this.innerHTML='\n <div class="labels-container" part="labels"></div>\n <div class="mappings-container"></div>\n <div class="button-container"></div>\n ',this.labelsEle=this.querySelector(".labels-container"),this.mappingsContainerEle=this.querySelector(".mappings-container"),this.buttonContainer=this.querySelector(".button-container")}initLabels(){this.labelsEle.innerHTML=`\n <descope-text variant="body2" part="value-label">${this.labelValue}</descope-text>\n <descope-text variant="body2" part="attr-label">${this.labelAttr}</descope-text>\n `}initAddButton(){this.buttonContainer.innerHTML=`\n <descope-button variant="link" mode="primary" disabled="${this.isDisabled}">\n <vaadin-icon icon="vaadin:plus"></vaadin-icon>\n ${this.buttonLabel}\n </descope-button>\n `;const t=this.querySelector("descope-button");t.onclick=()=>{this.addNewMappingItem(!0)},ne(this,t,{includeAttrs:["disabled"]})}#ne(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",t=>{t.isTrusted&&(this.#oe||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#oe)&&this.#oe?.checkValidity()&&(this.resetInvalidIndication(),this.#oe.removeAttribute("invalid"),this.#oe=void 0)}),Kt(this.mappingsContainerEle,this.#ne.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const t=this.items.find(t=>!t.checkValidity());return t?t.validity:{}}#re(t){t&&(this.#oe=this.items.find(t=>!t.checkValidity()),this.#oe?.reportValidity(),this.#oe?.setAttribute("invalid","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"label-value"!==t&&"label-attr"!==t||this.initLabels(),"button-label"===t&&this.initAddButton(),"invalid"===t&&this.#re("true"===i),"readonly"===t&&this.toggleAttribute("inert","true"===i)}});const Dc=ie("mapping-item"),vc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],zc=hi({componentName:Dc,baseSelector:"div"});customElements.define(Dc,class extends zc{static get observedAttributes(){return[].concat(zc.observedAttributes||[],vc,["separator","options","invalid","disabled"])}get separator(){return this.getAttribute("separator")||"map to"}get value(){const t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{[t]:e}:null}set value(t){if(1!==Object.entries(t).length)return void console.error("descope-mapping item expected expects only one key-value pair in the value but received: ",t);const[e,i]=Object.entries(t)[0];this.valueInput.value=i,this.attributeInput.value=e,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper" part="wrapper">\n <descope-text-field required="true"></descope-text-field>\n <div class="separator" part="separator">${this.separator}</div>\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n required="true"\n >\n </descope-combo-box>\n <descope-button variant="link" mode="primary">\n <vaadin-icon icon="vaadin:minus"></vaadin-icon>\n </descope-button>\n </div>\n\t`,E("\n .wrapper {\n display: flex;\n }\n .separator {\n text-align: center;\n flex-shrink: 0;\n }\n ",this),this.valueInput=this.shadowRoot.querySelector("descope-text-field"),this.attributeInput=this.shadowRoot.querySelector("descope-combo-box"),this.inputs=[this.valueInput,this.attributeInput],this.removeButton=this.shadowRoot.querySelector("descope-button"),ne(this,this.valueInput,{includeAttrs:vc}),ne(this,this.attributeInput,{includeAttrs:[...vc,"options"],mapAttrs:{options:"data"}}),ne(this,this.removeButton,{includeAttrs:["disabled"]})}initRemoveButton(){this.removeButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("mapping-item-removed",{bubbles:!0,composed:!0})))}init(){super.init?.(),this.initRemoveButton()}getValidity(){const t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{}:{badInput:!0}}reportValidity(){this.inputs.forEach(t=>t.reportValidity())}focus(){(this.checkValidity()||!this.valueInput.checkValidity()?this.valueInput:this.attributeInput).focus()}handleSeparatorChange(){this.shadowRoot.querySelector(".separator").textContent=this.separator}#se(t){"true"===t&&(this.valueInput.value||(this.valueInput.setAttribute("invalid","true"),this.valueInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)),this.attributeInput.value||(this.attributeInput.setAttribute("invalid","true"),this.attributeInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"separator"===t&&this.handleSeparatorChange(),"invalid"===t&&this.#se(i)}}),customElements.define(pc,Tc);const Cc=A("badge");class Sc extends(It({componentName:Cc,baseSelector:":host > div"})){static get observedAttributes(){return["data-attachment-size","shrink-to-indicator-threshold"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t",E("\n :host {\n display: inline-flex;\n }\n :host > div {\n position: relative;\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ",this)}get shrinkToIndicatorThreshold(){return this.getAttribute("shrink-to-indicator-threshold")||65}#ae(t){this.toggleAttribute("shrink-to-indicator",parseFloat(t)<this.shrinkToIndicatorThreshold)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"data-attachment-size"===t&&e!==i&&this.#ae(i)}}const wc=T(ht({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostHeight:[{selector:()=>":host",property:"height"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},lineHeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{},boxShadow:{},textIndent:{}}}),gt,Mt)(Sc);var Ac="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const Lc=ie("user-attribute");class fc extends(Ke({componentName:Lc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="root">\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>\n <div class="content-wrapper">\n <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>\n <div class="btn-wrapper">\n <descope-badge mode="default" bordered="true" size="xs"></descope-badge>\n <descope-button size="sm" data-id="copy-btn" variant="link" mode="primary">\n <slot name="copy-icon"></slot>\n <descope-icon class="check-icon" src="${Ac}" src-dark="${Ac}"></descope-icon>\n </descope-button>\n <descope-button size="sm" data-id="delete-btn" variant="link" mode="primary">\n <slot name="delete-icon"></slot>\n </descope-button>\n <descope-button size="sm" data-id="edit-btn" variant="link" mode="primary">\n <slot name="edit-icon"></slot>\n </descope-button>\n </div>\n </div>\n </div>\n\t\t`,E(`\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n container-type: inline-size;\n\t\t\t\t}\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n ::slotted(*) {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n @container (max-width: 529px) {\n .root {\n flex-wrap: wrap;\n }\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n slot[name="edit-icon"],\n slot[name="delete-icon"],\n slot[name="copy-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n }\n\n descope-button[data-id="copy-btn"].hidden {\n display: none;\n }\n\n descope-button[data-id="copy-btn"] .check-icon {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied slot[name="copy-icon"] {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied .check-icon {\n display: inline-flex;\n }\n\n .content-wrapper {\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n max-width: 100%;\n min-width: 0;\n }\n\n .label {\n flex-grow: 1;\n width: 100%;\n }\n\n .value {\n flex-grow: 1;\n }\n\n descope-badge {\n margin-inline-end: 10px;\n }\n\n .hidden {\n visibility: hidden;\n width: 0;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${fi.cssVarList.textColor});\n }\n\n :host([readonly="true"]) descope-button:not([data-id="copy-btn"]) {\n visibility: hidden;\n width: 0;\n }\n `,this),this.copyButton=this.shadowRoot.querySelector('descope-button[data-id="copy-btn"]'),this.deleteButton=this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]'),this.editButton=this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]'),this.badge=this.shadowRoot.querySelector("descope-badge"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]'),this.valueText=this.shadowRoot.querySelector('descope-text[data-id="value-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onValueOrPlaceholderChange(){const t=this.value||this.placeholder,e=this.value?"primary":"secondary";this.valueText.innerText=t,this.valueText.setAttribute("title",t),this.valueText.setAttribute("mode",e)}onBadgeLabelChange(){this.badgeLabel?(this.badge.innerText=this.badgeLabel,this.badge.style.display=""):this.badge.style.display="none"}onBadgeTooltipTextChange(){this.badge.setAttribute("title",this.badgeTooltipText||this.badgeLabel)}updateButtonLabel(t,e){let i=t.querySelector("span.btn-label");e?(i||(i=document.createElement("span"),i.classList.add("btn-label"),t.appendChild(i)),i.innerText=e):i?.remove()}onIsRequiredChange(){this.labelText.classList.toggle("required",this.isRequired)}get label(){return this.getAttribute("label")||""}get value(){return this.getAttribute("value")||""}get placeholder(){return this.getAttribute("placeholder")||""}get isRequired(){return"true"===this.getAttribute("required")}get badgeLabel(){return this.getAttribute("badge-label")||""}get badgeTooltipText(){return this.getAttribute("badge-tooltip-text")||""}get editButtonLabel(){return this.getAttribute("edit-button-label")||""}get deleteButtonLabel(){return this.getAttribute("delete-button-label")||""}get isDeleteHidden(){return"true"===this.getAttribute("hide-delete")}get isCopyEnabled(){return"true"===this.getAttribute("show-copy")}get copyButtonLabel(){return this.getAttribute("copy-button-label")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.updateButtonLabel(this.editButton,this.editButtonLabel),this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel),this.updateButtonLabel(this.copyButton,this.copyButtonLabel),this.handleDeleteButtonVisibility(),this.handleCopyButtonState(),this.deleteButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,composed:!0}))),this.editButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("edit-clicked",{bubbles:!0,composed:!0}))),this.copyButton.addEventListener("click",()=>this.#Xt()),this.setDefaultChildren()}#Xt(){this.value&&!this.isDraggable&&navigator.clipboard&&navigator.clipboard.writeText(this.value).then(()=>{this.copyButton.classList.add("copied"),setTimeout(()=>this.copyButton.classList.remove("copied"),2e3)}).catch(()=>{})}handleCopyButtonState(){this.copyButton.classList.toggle("hidden",!this.isCopyEnabled),this.value?this.copyButton.removeAttribute("disabled"):this.copyButton.setAttribute("disabled","true")}#le(t,e){const i=document.createElement("descope-icon");i.setAttribute("src",t),i.setAttribute("src-dark",t),i.setAttribute("slot",e),this.appendChild(i)}setDefaultChildren(){this.querySelector('[slot="delete-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==","delete-icon"),this.querySelector('[slot="edit-icon"]')||this.#le("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uNTYwMTkgMTAuNjE2MkM1LjQ2NDE5IDEwLjU5MjIgNS4zOTIxOSAxMC40NzIyIDUuNDQwMTkgMTAuMzc2MkM1Ljc1MjE5IDkuMjQ4MTYgNi4wNDAxOSA4LjU1MjE2IDYuMjU2MTkgOC4zMTIxNkwxMS4yNzIyIDIuNjI0MTVaTTExLjkyMDIgMS44NTYxNUwxMy4yODgyIDAuMzIwMTQ5QzEzLjY0ODIgLTAuMDg3ODUxNiAxNC4yNzIyIC0wLjExMTg1MiAxNC42ODAyIDAuMjcyMTQ5QzE1LjA4ODIgMC42MzIxNDkgMTUuMTEyMiAxLjI4MDE1IDE0Ljc1MjIgMS42ODgxNUwxMy4yNjQyIDMuMzY4MTVMMTEuOTIwMiAxLjg1NjE1WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPgo=","edit-icon"),this.setDefaultCopyIcon()}setDefaultCopyIcon(){this.isCopyEnabled&&!this.querySelector('[slot="copy-icon"]')&&this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTYgMUg0Yy0xLjEgMC0yIC45LTIgMnYxNGgyVjNoMTJWMXptMyA0SDhjLTEuMSAwLTIgLjktMiAydjE0YzAgMS4xLjkgMiAyIDJoMTFjMS4xIDAgMi0uOSAyLTJWN2MwLTEuMS0uOS0yLTItMnptMCAxNkg4VjdoMTF2MTR6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==","copy-icon")}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text","edit-button-label","delete-button-label","copy-button-label","hide-delete","show-copy"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value||this.isDeleteHidden)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"value"===t||"placeholder"===t?this.onValueOrPlaceholderChange():"required"===t?this.onIsRequiredChange():"badge-label"===t?this.onBadgeLabelChange():"badge-tooltip-text"===t?this.onBadgeTooltipTextChange():"edit-button-label"===t?this.updateButtonLabel(this.editButton,this.editButtonLabel):"delete-button-label"===t?this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel):"copy-button-label"===t?this.updateButtonLabel(this.copyButton,this.copyButtonLabel):"show-copy"===t&&this.setDefaultCopyIcon(),"value"!==t&&"required"!==t&&"hide-delete"!==t||this.handleDeleteButtonVisibility(),"value"!==t&&"show-copy"!==t||this.handleCopyButtonState())}}const{host:Ec,textFields:kc,buttons:Oc,badge:Vc,labelText:Wc,contentWrapper:Rc}={host:{selector:()=>":host"},textFields:{selector:"descope-text"},labelText:{selector:'descope-text[data-id="label-text"]'},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},contentWrapper:{selector:" .content-wrapper"}},Uc=Jt(Ge({mappings:{hostWidth:{...Ec,property:"width"},hostMinWidth:{...Ec,property:"min-width"},hostMaxWidth:{...Ec,property:"max-width"},hostDirection:[{...Ec,property:"direction"},{...kc,property:fi.cssVarList.hostDirection},{...Oc,property:Wo.cssVarList.hostDirection},{...Vc,property:wc.cssVarList.hostDirection}],labelMinWidth:{...Wc,property:"min-width"},contentMinWidth:{...Rc,property:"min-width"},badgeMaxWidth:{...Vc,property:"max-width"},itemsGap:[{property:"gap"},{...Rc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill},{selector:()=>".check-icon",property:Lo.cssVarList.fill}]}}),He,Je)(fc);customElements.define(Cc,wc),customElements.define(Lc,Uc);const Yc=ie("user-auth-method");class Qc extends(Ke({componentName:Yc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="root">\n <div class="text-wrapper">\n <slot name="method-icon"></slot>\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-button class="btn unfulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n <descope-button class="btn fulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="fulfilled-button-icon"></slot>\n </descope-button>\n <div class="status-indicator hidden">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==></vaadin-icon>\n </div>\n <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>\n </div>\n </div>\n\t\t',E('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n min-width: 0;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n min-width: 0;\n }\n\n .status-indicator {\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n padding-inline-end: 1em;\n }\n\n .hidden {\n display: none;\n }\n\n .hidden-btn {\n width: 0;\n overflow: hidden;\n opacity: 0;\n pointer-events: none;\n }\n\n slot[name="method-icon"]:not(:empty) {\n display: inline-flex;\n align-items: center;\n }\n ',this),this.unfulfilledButton=this.shadowRoot.querySelector(".btn.unfulfilled"),this.fulfilledButton=this.shadowRoot.querySelector(".btn.fulfilled"),this.statusIndicator=this.shadowRoot.querySelector(".status-indicator"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}updateButtonLabel(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.innerText=e):i&&t.removeChild(i)}onFulfilledChange(){this.isFulfilled?(this.unfulfilledButton.classList.add("hidden"),this.handleFulfilled()):(this.fulfilledButton.classList.add("hidden"),this.handleUnfulfilled())}handleFulfilled(){this.fulfilledButton.classList.toggle("hidden",!this.isFulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isFulfilledEditable)}handleUnfulfilled(){this.unfulfilledButton.classList.toggle("hidden",!this.isUnfulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isUnfulfilledEditable)}get label(){return this.getAttribute("label")||""}get unfulfilledButtonLabel(){return this.getAttribute("button-label")||""}get fulfilledButtonLabel(){return this.getAttribute("fulfilled-button-label")||""}get isFulfilled(){return"true"===this.getAttribute("fulfilled")}get isFulfilledEditable(){return"true"===this.getAttribute("fulfilled-editable")}get isUnfulfilledEditable(){return"false"!==this.getAttribute("unfulfilled-editable")}init(){this.onLabelChange(),this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel),this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel),this.onFulfilledChange(),this.unfulfilledButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0}))),this.fulfilledButton.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("fulfilled-button-clicked",{bubbles:!0,composed:!0}))})}static get observedAttributes(){return["label","fulfilled","button-label","fulfilled-button-label","fulfilled-editable","unfulfilled-editable"].concat(super.observedAttributes)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"fulfilled"===t?this.onFulfilledChange():"button-label"===t?this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel):"fulfilled-button-label"===t?this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel):"fulfilled-editable"===t&&this.isFulfilled?this.handleFulfilled():"unfulfilled-editable"!==t||this.isFulfilled||this.handleUnfulfilled())}}const{host:Pc,textField:Bc,buttons:Zc,badge:Fc,textWrapper:Gc,methodIconSlot:Hc}={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)'}},Jc=Jt(Ge({mappings:{hostWidth:{...Pc,property:"width"},hostMinWidth:{...Pc,property:"min-width"},hostMaxWidth:{...Pc,property:"max-width"},hostDirection:[{...Pc,property:"direction"},{...Bc,property:fi.cssVarList.hostDirection},{...Zc,property:Wo.cssVarList.hostDirection},{...Fc,property:wc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Gc,property:"gap"}],iconSize:[{...Hc,property:"width"},{...Hc,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:Lo.cssVarList.fill}]}}),He,Je)(Qc);customElements.define(Yc,Jc);const $c=ie("saml-group-mappings-internal"),qc=hi({componentName:$c,baseSelector:""}),_c=ie("saml-group-mappings"),{host:Xc,groupInput:Kc,errorMessage:tu}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},eu=Jt(Ge({mappings:{hostWidth:{...Xc,property:"width"},hostDirection:{...Xc,property:"direction"},groupNameInputMarginBottom:{...Kc,property:"margin-bottom"},errorMessageIcon:{...tu,property:"background-image"},errorMessageIconSize:{...tu,property:"background-size"},errorMessageIconPadding:{...tu,property:"padding-inline-start"},errorMessageIconRepeat:{...tu,property:"background-repeat"},errorMessageIconPosition:{...tu,property:"background-position"},errorMessageFontSize:{...tu,property:"font-size"}}}),He,li({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),Je,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${$c}\n tabindex="-1"\n ></${$c}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector($c),ne(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),ee(this,this.inputElement,{includeAttrs:["invalid"]})}})(ei({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-text-field {\n width: auto;\n }\n\n descope-mappings-field {\n display: block;\n }\n ",excludeAttrsSync:["tabindex","label-group","label-value","label-attr","button-label","separator","options","error-message","style"],componentName:_c}));customElements.define($c,class extends qc{static get observedAttributes(){return["invalid"].concat(qc.observedAttributes||[])}constructor(){super(),this.innerHTML='\n <descope-text-field variant="body2" bordered="true"></descope-text-field>\n <descope-mappings-field></descope-mappings-field>\n ',this.groupInputElement=this.querySelector("descope-text-field"),this.mappingsElement=this.querySelector("descope-mappings-field")}resetInvalidIndication(){this.removeAttribute("invalid")}handleMappingsInvalidChange(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?.(),ne(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),ne(this,this.mappingsElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","readonly","disabled","data-errormessage-pattern-mismatch"]}),Xt(this.mappingsElement,this.handleMappingsInvalidChange.bind(this),{includeAttrs:["invalid"]})}get value(){return{group:this.groupInputElement.value,mappings:this.mappingsElement.value}}set value(t){t?.group&&"string"==typeof t.group&&(this.groupInputElement.value=t.group),Array.isArray(t?.mappings)&&(this.mappingsElement.value=t.mappings)}getValidity(){return this.groupInputElement.checkValidity()?this.mappingsElement.checkValidity()?{}:this.mappingsElement.validity:this.groupInputElement.validity}#de(t){if(t){if(!this.groupInputElement.checkValidity())return void this.groupInputElement.setAttribute("invalid","true");this.mappingsElement.checkValidity()||this.mappingsElement.setAttribute("invalid","true")}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"invalid"===t&&this.#de("true"===i)}}),customElements.define(_c,eu);const iu=ie("radio-button"),ou=Jt(Ge({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"}}}),li({proxyProps:["setSelectionRange"]}),Je,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?.(),Kt(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(ei({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:iu})),nu=ie("radio-group"),ru=Jt(Ge({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(${ou.componentName})`,property:ou.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${ou.componentName})`,property:ou.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${ou.componentName})`,property:ou.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${ou.componentName})`,property:ou.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${ou.componentName})`,property:ou.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${ou.componentName}[checked="true"])`,property:ou.cssVarList.radioBackgroundColor}}}),He,li({proxyProps:["setSelectionRange"]}),Je,t=>class extends t{#tt=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#R;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(iu)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===iu),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.#tt?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.inputElement=this.baseElement,this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),this.renderItems(),Xt(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),ne(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),Kt(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})}),Xt(this,()=>{this.items.forEach(t=>{t.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(ei({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 ${ve("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:nu,includeForwardProps:["value"]}));customElements.define(iu,ou),customElements.define(nu,ru);const su=()=>!0,au=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,lu=ie("scopes-list"),du=["checkbox","switch"];class cu extends(Ke({componentName:lu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",E("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get isReadOnly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"sm"}#ce(){return Array.from(this.shadowRoot.querySelector("div").children)}reportValidity(){this.checkValidity()}checkValidity(){return this.data.every(t=>!t.required||this.value.includes(t.id))}get value(){return this.#ce().filter(t=>t.checked).map(t=>t.getAttribute("data-id"))}set value(t=[]){this.#ce().forEach(e=>{e.checked=t.includes(e.getAttribute("data-id"))})}get variant(){const t=this.getAttribute("variant");return du.includes(t)?t:du[0]}}const uu=Jt(Ge({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Si.componentName,property:Si.cssVarList.hostDirection},{selector:()=>Xi.componentName,property:Xi.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${Si.componentName}[required="true"]`,property:Si.cssVarList.inputBorderColor},{selector:`${Xi.componentName}[required="true"]`,property:Xi.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${Si.componentName}[required="true"]`,property:Si.cssVarList.inputValueTextColor},{selector:`${Xi.componentName}[required="true"]`,property:Xi.cssVarList.knobColor}]}}),(({itemRenderer:t=au,validateSchema:e=su,slotName:i,rerenderAttrsList:o=[]})=>n=>class extends n{#R=[];#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.baseElement.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),this.data.forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.baseElement.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),Xt(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}})({itemRenderer:({id:t,desc:e,required:i=!1},o,n)=>{const r="checkbox"===n.variant?Si:Xi;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"]}),He,Je)(cu),pu=A("list-item"),hu=T(ht({mappings:{verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],backgroundColor:{},borderColor:{},borderStyle:{},borderWidth:{},borderRadius:{},outline:{},cursor:{},gap:{},maxWidth:{selector:()=>":host"},alignItems:{},flexDirection:{},transition:{}}}),gt,Mt,t=>class extends t{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",E("\n slot {\n width: 100%;\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n :host {\n display: block;\n }\n ",this)}},t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mousedown",t=>{t.preventDefault(),this.setAttribute("active","true"),window.addEventListener("mouseup",()=>this.removeAttribute("active"),{once:!0})})}})(It({componentName:pu,baseSelector:"slot"}));customElements.define(pu,hu);const gu=A("list");class Mu extends(It({componentName:gu,baseSelector:".wrapper"})){static get observedAttributes(){return["variant","readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <slot></slot>\n <slot name="empty-state">\n No item...\n </slot>\n </div>\n\t',E('\n .wrapper {\n overflow: auto;\n display: grid;\n max-height: 100%;\n width: 100%;\n }\n\n :host {\n display: inline-flex;\n width: 100%;\n }\n slot[name="empty-state"] {\n justify-content: center;\n align-items: center;\n display: flex;\n flex-grow: 1;\n }\n\n :host slot[name="empty-state"] {\n display: none;\n }\n :host([empty]) slot[name="empty-state"] {\n display: flex;\n }\n ::slotted(:not([slot])) {\n width: 100%;\n }\n ',this)}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}#ue(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#pe(){this.items.forEach(t=>{let e=t;e.localName!==hu.componentName&&(e=t.querySelector(hu.componentName));const i="tiles"===this.variant?"tile":"row";e?.setAttribute("variant",i)})}init(){super.init?.(),z(this,()=>{this.#ue(),this.#pe(),this.#he()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#he(){this.items.forEach(t=>{this.isReadOnly?t.setAttribute("inert",""):t.removeAttribute("inert")})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("variant"===t?this.#pe():"readonly"===t&&this.#he())}}const mu=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},maxHeight:{selector:()=>":host"},minHeight:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],hostDirection:{selector:()=>":host",property:"direction"},fontFamily:{},gap:{},backgroundColor:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{},gridTemplateColumns:{},maxItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"max-width"},minItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"min-width"},maxRowItems:{property:"max-row-items"},itemsHorizontalAlign:{selector:()=>"::slotted(*)",property:"justify-self"},emptyStateTextColor:{selector:()=>'slot[name="empty-state"]',property:"color"},emptyStateTextFontFamily:{selector:()=>'slot[name="empty-state"]',property:"font-family"},emptyStateVerticalPadding:[{selector:()=>'slot[name="empty-state"]',property:"padding-top"},{selector:()=>'slot[name="empty-state"]',property:"padding-bottom"}]}}),gt,Mt)(Mu);customElements.define(gu,mu),customElements.define(lu,uu);const yu=ie("third-party-app-logo");class bu extends(Ke({componentName:yu,baseSelector:".wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div class="wrapper">\n <div class="third-party-app-logo-wrapper">\n <div class="third-party-app-logo"></div>\n </div>\n <div class="arrows">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMTQ0OTIgMTUuNjQ1TDcuNDk5OTIgMTRMMi44MzMyNSAxOC42NjY3TDcuNDk5OTIgMjMuMzMzM0w5LjE0NDkyIDIxLjY4ODNMNy4zMDE1OSAxOS44MzMzSDI0Ljk5OTlWMTcuNUg3LjMwMTU5TDkuMTQ0OTIgMTUuNjQ1WiIgZmlsbD0iIzYzNkM3NCIvPgo8cGF0aCBkPSJNMTkuODU1IDEyLjM1NTNMMjEuNSAxNC4wMDAzTDI2LjE2NjcgOS4zMzM2NkwyMS41IDQuNjY2OTlMMTkuODU1IDYuMzExOTlMMjEuNjk4MyA4LjE2Njk5SDRWMTAuNTAwM0gyMS42OTgzTDE5Ljg1NSAxMi4zNTUzWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K"></descope-icon>\n </div>\n <div class="company-logo-wrapper">\n <descope-logo st-height="100%"></descope-logo>\n </div>\n </div>\n\t\t\t',E('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\n .wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: max-content;\n }\n\n\t\t\t\t.third-party-app-logo {\n flex-shrink: 0;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t}\n\n .company-logo-wrapper, .third-party-app-logo-wrapper {\n flex-shrink: 0;\n display: inline-flex;\n }\n\n .company-logo-wrapper {\n justify-content: flex-end;\n }\n\n .third-party-app-logo-wrapper {\n justify-content: flex-start;\n }\n\n .arrows {\n flex-shrink: 0;\n display: flex;\n }\n ',this)}}const Nu=">.company-logo-wrapper",Iu=">.third-party-app-logo-wrapper",xu=Jt(Ge({mappings:{logoMaxHeight:[{selector:Nu,property:"height"},{selector:Iu,property:"height"}],logoMaxWidth:[{selector:Nu,property:"max-width"},{selector:Iu,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:vr.componentName,property:vr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:Lo.componentName,property:Lo.cssVarList.fill}}}),He,Je)(bu);customElements.define(yu,xu);const ju=ie("security-questions-setup"),Tu=["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"],Du=["count","questions"];class vu extends(Ke({componentName:ju,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",E("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get count(){return Number(this.getAttribute("count"))||0}#ge(){const t=Array.from({length:this.count}).map((t,e)=>`\n <div class="question-wrapper">\n <descope-combo-box\n data-id="${e}"\n item-label-path="data-name"\n item-value-path="data-id"\n bordered="true"\n required="true"\n clear-button-visible="true"\n ></descope-combo-box>\n\n <descope-text-field\n data-id="${e}"\n required="true"\n bordered="true"\n minlength="2"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.comboBoxes.forEach(t=>{t.addEventListener("change",t=>{this.updateRemainingCombosData(t.target),this.getAttachedTextField(t.target).value=""}),t.data=this.data}),this.#Me(Tu)}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)}#Me(t){const e={question:this.comboBoxes,answer:this.textFields};t.forEach(t=>{const[i,...o]=t.split("-"),n=e[i]||this.inputs,r=e[i]?o.join("-"):t;n.forEach(e=>{this.#me(e,r,this.getAttribute(t))})})}init(){super.init?.(),Xt(this,()=>{this.#ge()},{includeAttrs:Du}),Xt(this,this.#Me.bind(this),{includeAttrs:Tu})}}const zu=Jt(Ge({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Do.componentName,property:Do.cssVarList.hostDirection},{selector:()=>tr.componentName,property:tr.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),He,Je)(vu);customElements.define(ju,zu);const Cu=ie("security-questions-verify"),Su=["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"},Lu=[...Su,...wu],fu=["questions"];class Eu extends(Ke({componentName:Cu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",E("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#ge(){const t=this.questions.map(({id:t,text:e})=>`\n <div class="question-wrapper">\n <descope-text\n data-id="${t}"\n >${e}</descope-text>\n\n <descope-text-field\n data-id="${t}"\n required="true"\n bordered="true"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.#Me(Lu),this.texts.forEach(t=>{const e=this.textFields.find(e=>e.getAttribute("data-id")===t.getAttribute("data-id"));e&&(t.onclick=e.focus.bind(e))})}reportValidity(){return this.textFields.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return this.textFields.every(t=>t.checkValidity())}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(Cu,"Error parsing questions attribute",t),[]}}get texts(){return Array.from(this.baseElement.querySelectorAll("descope-text"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get elements(){return Array.from(this.baseElement.querySelectorAll("descope-text, descope-text-field"))}get value(){return this.textFields.map(t=>({id:t.getAttribute("data-id"),answer:t.value}))}set value(t=[]){t.forEach(({id:t,answer:e})=>{const i=this.textFields.find(e=>e.getAttribute("data-id")===t);i&&(i.value=e)})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#ye(t){switch(!0){case Su.includes(t):return this.textFields;case wu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,Au[t]||t,this.getAttribute(t))})})}init(){super.init?.(),Xt(this,()=>{this.#ge()},{includeAttrs:fu}),Xt(this,this.#Me.bind(this),{includeAttrs:Lu})}}const ku=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>fi.componentName,property:fi.cssVarList.hostDirection},{selector:()=>tr.componentName,property:tr.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>fi.componentName,property:fi.cssVarList.textAlign},questionFontSize:{selector:()=>fi.componentName,property:fi.cssVarList.fontSize},questionFontFamily:{selector:()=>fi.componentName,property:fi.cssVarList.fontFamily},questionCursor:{selector:()=>fi.componentName,property:"cursor"},errorMessageIcon:{selector:()=>fi.componentName,property:fi.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>fi.componentName,property:fi.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>fi.componentName,property:fi.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>fi.componentName,property:fi.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>fi.componentName,property:fi.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>fi.componentName,property:fi.cssVarList.errorMessageFontSize}}}),He,Je)(Eu);customElements.define(Cu,ku);const Ou="^[\\w\\.\\%\\+\\-']+@(?:[A-Za-z0-9](?:[A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$",Vu="^[\\p{L}\\p{M}\\p{N}._%+'\\-]+@(?:[\\p{L}\\p{M}\\p{N}](?:[\\p{L}\\p{M}\\p{N}\\-]*[\\p{L}\\p{M}\\p{N}])?\\.)+[\\p{L}\\p{M}][\\p{L}\\p{M}\\p{N}\\-]+$",Wu=t=>{const e=(t||"").split(/\s+/).filter(t=>t&&!["username","email","on","off"].includes(t)),i=e.indexOf("webauthn");return e.splice(-1===i?e.length:i,0,"email"),e.join(" ")},Ru=A("email-field"),Uu="email",{host:Yu,label:Qu,placeholder:Pu,requiredIndicator:Bu,inputField:Zu,input:Fu,inputMask:Gu,helperText:Hu,errorMessage:Ju,disabledPlaceholder:$u,inputDisabled:qu,inputIcon:_u,externalInput:Xu,externalInputDisabled:Ku,externalPlaceholder:tp,externalDisabledPlaceholder:ep}={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)"}},ip=T(ht({mappings:{fontSize:[{},Yu],fontFamily:[Qu,Zu,Hu,Ju],labelFontSize:{...Qu,property:"font-size"},labelFontWeight:{...Qu,property:"font-weight"},inputValueFontWeight:[{...Fu,property:"font-weight"},{...Xu,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...tp,property:"font-weight"}],helperTextFontWeight:{...Hu,property:"font-weight"},errorMessageFontWeight:{...Ju,property:"font-weight"},labelTextColor:[{...Qu,property:"color"},{...Bu,property:"color"},{...Qu,property:"-webkit-text-fill-color"},{...Bu,property:"-webkit-text-fill-color"}],hostWidth:{...Yu,property:"width"},hostMinWidth:{...Yu,property:"min-width"},hostDirection:{...Yu,property:"direction"},inputDirection:{...Fu,property:"direction"},inputBackgroundColor:[{...Zu,property:"background-color"},{...Gu,property:"background-color"}],errorMessageTextColor:{...Ju,property:"color"},errorMessageIcon:{...Ju,property:"background-image"},errorMessageIconSize:{...Ju,property:"background-size"},errorMessageIconPadding:{...Ju,property:"padding-inline-start"},errorMessageIconRepeat:{...Ju,property:"background-repeat"},errorMessageIconPosition:{...Ju,property:"background-position"},errorMessageFontSize:{...Ju,property:"font-size"},helperTextColor:{...Hu,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Zu,property:"color"},{...qu,property:"-webkit-text-fill-color"},{...Ku,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Fu,property:"caret-color"},{...Xu,property:"caret-color"}],labelRequiredIndicator:{...Bu,property:"content"},inputBorderColor:{...Zu,property:"border-color"},inputBorderWidth:{...Zu,property:"border-width"},inputBorderStyle:{...Zu,property:"border-style"},inputBorderRadius:{...Zu,property:"border-radius"},inputHeight:{...Zu,property:"height"},inputHorizontalPadding:[{...Fu,property:"padding-left"},{...Fu,property:"padding-right"},{...Xu,property:"padding-left"},{...Xu,property:"padding-right"}],inputOutlineColor:{...Zu,property:"outline-color"},inputOutlineStyle:{...Zu,property:"outline-style"},inputOutlineWidth:{...Zu,property:"outline-width"},inputOutlineOffset:{...Zu,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Fu,property:"text-align"},{...Xu,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...tp,property:"color"},{...Pu,property:"color"},{...$u,property:"-webkit-text-fill-color"},{...ep,property:"-webkit-text-fill-color"}],labelPosition:{...Qu,property:"position"},labelTopPosition:{...Qu,property:"top"},labelHorizontalPosition:[{...Qu,property:"left"},{...Qu,property:"right"}],inputTransformY:{...Qu,property:"transform"},inputTransition:{...Qu,property:"transition"},marginInlineStart:{...Qu,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...tp,property:"opacity"}],inputVerticalAlignment:[{...Zu,property:"align-items"},{...Xu,property:"align-items"}],valueInputHeight:[{...Fu,property:"height"},{...Xu,property:"height"}],valueInputMarginBottom:[{...Fu,property:"margin-bottom"},{...Xu,property:"margin-bottom"}],inputIconOffset:[{..._u,property:"margin-right"},{..._u,property:"margin-left"}],inputIconSize:{..._u,property:"font-size"},inputIconColor:{..._u,property:"color"},inputTextSecurity:[{...Fu,property:"-webkit-text-security"},{...Fu,property:"text-security"},{...Xu,property:"-webkit-text-security"},{...Xu,property:"text-security"}]}}),gt,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),S(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.length=0}dispatchBlur(){return setTimeout(()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0})),this.removeAttribute("focused")})}handleFocusEvents(){this.baseElement.addEventListener("focus",()=>{this.externalInput.focus(),this.clearBlurTimers()}),this.externalInput.addEventListener("focus",()=>{this.clearBlurTimers(),setTimeout(()=>this.baseElement.setAttribute("focused","true"))})}handleBlurEvents(){this.baseElement.addEventListener("blur",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),kt({proxyProps:["value","selectionStart"],useProxyTargets:!0}),Mt,t=>class extends t{get acceptsUnicode(){return"false"!==this.getAttribute("accept-unicode")}get validatesFormat(){return"false"!==this.getAttribute("validate-format")}init(){super.init?.(),this.baseElement.setAttribute("pattern",Ou),this.getAttribute("autocomplete")||this.setAttribute("autocomplete","username"),this.createExternalInput(),[this.inputElement,this.externalInput].filter(Boolean).forEach(t=>{t.addEventListener("change",this.stripSurroundingWhitespace)}),this.acceptsUnicode&&this.enableUnicode(),this.validatesFormat||this.disableFormatValidation(),this.emailVerification&&this.enableEmailVerification()}get emailVerification(){return"true"===this.getAttribute("email-verification")}enableEmailVerification(){const{baseElement:t}=this,e=t._delegateAttribute.bind(t);t._delegateAttribute=(t,i)=>e(t,"autocomplete"===t?Wu(i):i),t._delegateAttribute("autocomplete",t.autocomplete),this.externalInput?.setAttribute("autocomplete",Wu(this.getAttribute("autocomplete")))}enableUnicode(){this.baseElement.setAttribute("pattern",Vu),this.useTextType()}disableFormatValidation(){this.baseElement.removeAttribute("pattern"),this.useTextType()}useTextType(){this.baseElement._setType("text"),this.externalInput&&(this.externalInput.type="text"),this.getAttribute("inputmode")||this.setAttribute("inputmode",Uu),this.externalInput?.setAttribute("inputmode",Uu)}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})))}})(At({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(${ip.cssVarList.inputOutlineWidth}) + var(${ip.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${tt("vaadin-email-field")}\n\t\t\t${$(ip.cssVarList)}\n\t\t\t${K("vaadin-email-field",ip.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:Ru}));customElements.define(Ru,ip);const op=/[^\d\s+\-()]/,np=ie("hybrid-field"),rp={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"]}},sp={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"}},ap="descope-phone-field",lp=Ke({componentName:np,baseSelector:"div"}),dp=Jt(Ge({componentNameOverride:ie("input-wrapper")}),Ge({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:()=>Fs.componentName,property:Fs.cssVarList.errorMessageIcon},{selector:()=>la.componentName,property:la.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Fs.componentName,property:Fs.cssVarList.errorMessageIconSize},{selector:()=>la.componentName,property:la.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Fs.componentName,property:Fs.cssVarList.errorMessageIconPadding},{selector:()=>la.componentName,property:la.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Fs.componentName,property:Fs.cssVarList.errorMessageIconRepeat},{selector:()=>la.componentName,property:la.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Fs.componentName,property:Fs.cssVarList.errorMessageIconPosition},{selector:()=>la.componentName,property:la.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Fs.componentName,property:Fs.cssVarList.errorMessageFontSize},{selector:()=>la.componentName,property:la.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Fs.componentName,property:Fs.cssVarList.labelFontWeight},{selector:()=>la.componentName,property:la.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Fs.componentName,property:Fs.cssVarList.inputValueFontWeight},{selector:()=>la.componentName,property:la.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Fs.componentName,property:Fs.cssVarList.inputPlaceholderFontWeight},{selector:()=>la.componentName,property:la.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Fs.componentName,property:Fs.cssVarList.helperTextFontWeight},{selector:()=>la.componentName,property:la.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Fs.componentName,property:Fs.cssVarList.errorMessageFontWeight},{selector:()=>la.componentName,property:la.cssVarList.errorMessageFontWeight}]}}),He,Je)(class extends lp{#be=!1;#Ne;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper">\n <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>\n <descope-phone-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-field>\n <descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>\n </div>\n\t\t`,E("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n padding: 0;\n gap: 0;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n descope-email-field,\n descope-phone-field,\n descope-phone-input-box-field {\n grid-area: 1/1;\n width: 100%;\n height: 100%;\n }\n .hidden {\n visibility: hidden;\n }\n ",this)}get isExternalInput(){return"true"===this.getAttribute("external-input")}get emailInputEle(){return this.isExternalInput?this.emailInput.externalInput:this.emailInput.inputElement}get phoneVariant(){return"inputBox"===this.getAttribute("phone-variant")?this.phoneInputBoxInput:this.phoneCountryCodeInput}get defaultCode(){const t=this.phoneCountryCodeInput.countryCodes?.[0]||"";return this.getAttribute("default-code")||t}get activeInputEle(){return this.activeInput===this.emailInput?this.emailInputEle:this.phoneVariant.phoneNumberInputEle}get value(){return this.activeInput?.value||""}set value(t){this.handleActiveInput(t),setTimeout(()=>{this.activeInput.value=t})}async init(){super.init?.(),this.initInputs(),this.updateAttrs(),this.toggleInputVisibility(),await this.waitForInputs(),this.initInputEles(),this.overrideEmailInputType(),this.overrideEmailSetAttribute()}waitForInputs(){return new Promise(t=>{const e=setInterval(()=>{this.emailInputEle&&(clearInterval(e),t())})})}initInputs(){this.emailInput=this.shadowRoot.querySelector("descope-email-field"),this.phoneCountryCodeInput=this.shadowRoot.querySelector(ap),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(){ne(this,this.emailInput,{includeAttrs:rp.email,mapAttrs:sp.email}),ne(this,this.phoneCountryCodeInput,{includeAttrs:rp.phone.countryCode,mapAttrs:sp.phone}),ne(this,this.phoneInputBoxInput,{includeAttrs:rp.phone.inputBox,mapAttrs:sp.phone}),this.inputs.forEach(t=>ne(this,t,{includeAttrs:rp.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#Ne=this.activeInputEle.selectionStart,this.handleActiveInput(this.activeInputEle.value||this.activeInput.value)}handleActiveInput(t){const e=(t=>!!t&&!op.test(t))(t)?this.phoneVariant:this.emailInput;this.activeInput!==e&&this.setActiveInput(e)}setActiveInput(t){const e=this.activeInputEle.value||this.activeInput.value;this.activeInput=t,this.setActiveInputValue(e),this.#be&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{const t=this.activeInputEle;t.focus();try{t.setSelectionRange?.(this.#Ne,this.#Ne)}catch{}})}#Ie(){const t=this.getAttribute("default-code"),e=t&&Fs.CountryCodes.find(e=>e.code===t);return e?.dialCode||Fs.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===ap){const t=this.phoneCountryCodeInput.countryCodeItems||this.#Ie();this.activeInput.value=`${t}-${e}`}else this.activeInput.value=e}toggleInputVisibility(){this.inputs.forEach(t=>{t!==this.activeInput?t.classList.add("hidden"):t.classList.remove("hidden")})}reportValidity(){this.#be=!0;const t=this.activeInputEle,e=t.type;return t.setAttribute("type","text"),setTimeout(()=>{t.setSelectionRange?.(t.value.length,t.value.length),t.setAttribute("type",e)}),this.activeInput.reportValidity()}checkValidity(){return this.activeInput.checkValidity()}});customElements.define(np,dp);const cp=ie("alert");class up extends(Ke({componentName:cp,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="icon"></div>\n <div class="content">\n <descope-enriched-text>\n <slot></slot>\n </descope-enriched-text>\n </div>\n </div>\n ',E('\n :host {\n display: inline-flex;\n }\n :host > div {\n display: flex;\n width: 100%;\n }\n :host([empty="true"]) {\n display: none;\n }\n .icon {\n flex-shrink: 0;\n }\n .content {\n display: flex;\n flex-wrap: wrap;\n white-space: normal;\n overflow-wrap: break-word;\n }\n ',this)}init(){super.init?.(),this.slotEle=this.shadowRoot.querySelector("slot"),this.textComp=this.shadowRoot.querySelector("descope-enriched-text"),this.slotEle.addEventListener("slotchange",this.handleSlotChange.bind(this)),S(this.textComp,this,{includeAttrs:["empty"]}),z(this,this.handleChildrenChange.bind(this)),ne(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:pp}={icon:{selector:()=>".icon"}},hp=Jt(Ge({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:Ft.componentName,property:Ft.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:Ft.componentName,property:Ft.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:Ft.componentName,property:Ft.cssVarList.textAlign}],icon:[{...pp,property:"content"},{...pp,property:"display",fallback:"none"}],iconSize:[{...pp,property:"width"},{...pp,property:"height"}]}}),Ge({componentNameOverride:ie("enriched-text")}),Ge({componentNameOverride:ie("text")}),He,Je)(up);customElements.define(cp,hp);const gp=ie("hcaptcha"),Mp=["enabled","site-key"],mp=hi({componentName:gp,baseSelector:":host > div"}),yp=Jt(Ge({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"}]}}),He,Je)(class extends mp{static get observedAttributes(){return Mp.concat(mp.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"enabled"===t&&this.toggleCaptchaEles("true"===i)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="hcaptcha"></span>\n <input id="hcaptcha-input" type="hidden" name="hcaptcha" required />\n <img src="https://imgs.descope.com/connectors/templates/hcaptcha/hcaptcha-big.png" alt="hcaptcha"/>\n </div>\n <slot></slot>\n\t',E("\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #hcaptcha-input {\n display: none;\n }\n :host #hcaptcha .hcaptcha-logo {\n height: 100%;\n }\n :host #hcaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n .hidden {\n display: none;\n }\n ",this),this.captchaEle=this.shadowRoot.querySelector("#hcaptcha"),this.mockCaptchaEle=this.shadowRoot.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge"),this.inputElement=this.shadowRoot.querySelector("input")}init(){super.init?.(),z(this,this.updatePreview.bind(this)),this.inputElement.getValidity=null,this.inputElement.checkValidity=null}toggleCaptchaEles(t){t?(this.captchaEle.style.display="",this.mockCaptchaEle.style.display="none"):(this.captchaEle.style.display="none",this.mockCaptchaEle.style.display="")}updatePreview(){this.toggleCaptchaEles(this.enabled)}getValidity(){return this.inputElement.value?{}:{valueMissing:!0}}checkValidity(){return!!this.inputElement.value}get siteKey(){return this.getAttribute("site-key")}get enabled(){return"true"===this.getAttribute("enabled")}});customElements.define(gp,yp);const bp=(Cp={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(Cp).reduce((t,e)=>{const i=Cp[e];return Object.assign(t,{[e]:ye(i)})},{})),Np={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"}},Ip=Ae({fonts:Np}).fonts,xp={colors:bp,typography:{h1:{font:Ip.font1.family,weight:"900",size:"48px"},h2:{font:Ip.font1.family,weight:"800",size:"38px"},h3:{font:Ip.font1.family,weight:"600",size:"28px"},subtitle1:{font:Ip.font2.family,weight:"500",size:"22px"},subtitle2:{font:Ip.font2.family,weight:"400",size:"20px"},body1:{font:Ip.font1.family,weight:"400",size:"16px"},body2:{font:Ip.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:Np,direction:"ltr"},jp=(t=>Se(t,[],t=>Ce({},t,ze(t))))(xp),Tp=(t=>Object.keys(t).reduce((e,i)=>{const o=t[i];return Object.assign(e,{[i]:J(o)})},{}))({surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}}),Dp={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"}},vp=nt({fonts:Dp}).fonts,zp={colors:Tp,typography:{h1:{font:vp.font1.family,weight:"900",size:"48px"},h2:{font:vp.font1.family,weight:"800",size:"38px"},h3:{font:vp.font1.family,weight:"600",size:"28px"},subtitle1:{font:vp.font2.family,weight:"500",size:"22px"},subtitle2:{font:vp.font2.family,weight:"400",size:"20px"},body1:{font:vp.font1.family,weight:"400",size:"16px"},body2:{font:vp.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:Dp,direction:"ltr"};var Cp;(t=>{ot(t,[],t=>it({},t,et(t)))})(zp);const Sp=nt(zp),wp=Wo.cssVarList,Ap={primary:Sp.colors.primary,secondary:Sp.colors.secondary,success:Sp.colors.success,error:Sp.colors.error,surface:Sp.colors.surface},[Lp,fp,Ep]=st({mode:Ap},fo),kp={...Lp,[wp.fontFamily]:Sp.fonts.font1.family,[wp.fontWeight]:"400",[wp.cursor]:"pointer",[wp.hostHeight]:"3em",[wp.hostWidth]:"auto",[wp.hostDirection]:Sp.direction,[wp.borderRadius]:Sp.radius.sm,[wp.borderWidth]:Sp.border.xs,[wp.borderStyle]:"solid",[wp.borderColor]:"transparent",[wp.labelSpacing]:"0.25em",[wp.textAlign]:"center",textAlign:{right:{[wp.textAlign]:"right"},left:{[wp.textAlign]:"left"},center:{[wp.textAlign]:"center"}},[wp.verticalPadding]:"1em",[wp.horizontalPadding]:"0.875em",[wp.outlineWidth]:zp.border.sm,[wp.outlineOffset]:"0px",[wp.outlineStyle]:"solid",[wp.outlineColor]:"transparent",[wp.iconSize]:"1.5em",size:{xs:{[wp.fontSize]:"12px"},sm:{[wp.fontSize]:"14px"},md:{[wp.fontSize]:"16px"},lg:{[wp.fontSize]:"18px"}},_square:{[wp.hostHeight]:"3em",[wp.hostWidth]:"3em",[wp.verticalPadding]:"0"},_fullWidth:{[wp.hostWidth]:"100%"},_loading:{[wp.cursor]:"wait",[wp.labelTextColor]:fp.main},_disabled:{[Ep.main]:Sp.colors.surface.light,[Ep.dark]:Sp.colors.surface.dark,[Ep.light]:Sp.colors.surface.light,[Ep.contrast]:Sp.colors.surface.main,[wp.iconColor]:Sp.colors.surface.main},variant:{contained:{[wp.labelTextColor]:fp.contrast,[wp.backgroundColor]:fp.main,_hover:{[wp.backgroundColor]:fp.dark,_loading:{[wp.backgroundColor]:fp.main}},_active:{[wp.backgroundColor]:fp.main}},outline:{[wp.labelTextColor]:fp.main,[wp.borderColor]:fp.main,_hover:{[wp.labelTextColor]:fp.dark,[wp.borderColor]:fp.dark},_active:{[wp.labelTextColor]:fp.main,[wp.borderColor]:fp.main},_disabled:{[wp.iconColor]:fp.main}},link:{[wp.labelTextColor]:fp.main,[wp.horizontalPadding]:"0.125em",_hover:{[wp.labelTextColor]:fp.dark,[wp.labelTextDecoration]:"underline"},_active:{[wp.labelTextColor]:fp.main},_disabled:{[wp.iconColor]:fp.main}}},_focused:{[wp.outlineColor]:fp.light}},Op={...wp,...Ep};var Vp=Object.freeze({__proto__:null,default:kp,vars:Op});const Wp=nt(zp),Rp=fi.cssVarList,Up={[Rp.hostDirection]:Wp.direction,[Rp.textLineHeight]:"1.35em",[Rp.textAlign]:"start",[Rp.textColor]:Wp.colors.surface.dark,variant:{h1:{[Rp.fontSize]:Wp.typography.h1.size,[Rp.fontWeight]:Wp.typography.h1.weight,[Rp.fontFamily]:Wp.typography.h1.font},h2:{[Rp.fontSize]:Wp.typography.h2.size,[Rp.fontWeight]:Wp.typography.h2.weight,[Rp.fontFamily]:Wp.typography.h2.font},h3:{[Rp.fontSize]:Wp.typography.h3.size,[Rp.fontWeight]:Wp.typography.h3.weight,[Rp.fontFamily]:Wp.typography.h3.font},subtitle1:{[Rp.fontSize]:Wp.typography.subtitle1.size,[Rp.fontWeight]:Wp.typography.subtitle1.weight,[Rp.fontFamily]:Wp.typography.subtitle1.font},subtitle2:{[Rp.fontSize]:Wp.typography.subtitle2.size,[Rp.fontWeight]:Wp.typography.subtitle2.weight,[Rp.fontFamily]:Wp.typography.subtitle2.font},body1:{[Rp.fontSize]:Wp.typography.body1.size,[Rp.fontWeight]:Wp.typography.body1.weight,[Rp.fontFamily]:Wp.typography.body1.font},body2:{[Rp.fontSize]:Wp.typography.body2.size,[Rp.fontWeight]:Wp.typography.body2.weight,[Rp.fontFamily]:Wp.typography.body2.font}},mode:{primary:{[Rp.textColor]:Wp.colors.surface.contrast},secondary:{[Rp.textColor]:Wp.colors.surface.dark},error:{[Rp.textColor]:Wp.colors.error.main},"error-dark":{[Rp.textColor]:Wp.colors.error.dark},success:{[Rp.textColor]:Wp.colors.success.main},"success-dark":{[Rp.textColor]:Wp.colors.success.dark},warning:{[Rp.textColor]:Wp.colors.warning.main},"warning-dark":{[Rp.textColor]:Wp.colors.warning.dark}},textAlign:{right:{[Rp.textAlign]:"right"},left:{[Rp.textAlign]:"left"},center:{[Rp.textAlign]:"center"}},_fullWidth:{[Rp.hostWidth]:"100%"},_italic:{[Rp.fontStyle]:"italic"},_uppercase:{[Rp.textTransform]:"uppercase"},_lowercase:{[Rp.textTransform]:"lowercase"}};var Yp=Object.freeze({__proto__:null,default:Up,vars:Rp});const Qp=nt(zp),Pp=Pi.cssVarList,Bp={[Pp.hostDirection]:Qp.direction,[Pp.cursor]:"pointer",[Pp.textColor]:Qp.colors.primary.main,textAlign:{right:{[Pp.textAlign]:"right"},left:{[Pp.textAlign]:"left"},center:{[Pp.textAlign]:"center"}},_fullWidth:{[Pp.hostWidth]:"100%"},_hover:{[Pp.textDecoration]:"underline"},mode:{secondary:{[Pp.textColor]:Qp.colors.secondary.main}}};var Zp=Object.freeze({__proto__:null,default:Bp,vars:Pp});const Fp=nt(zp),Gp=Ft.cssVarList,Hp={[Gp.hostDirection]:Fp.direction,[Gp.hostWidth]:rt(Rp.hostWidth),[Gp.textLineHeight]:rt(Rp.textLineHeight),[Gp.textColor]:rt(Rp.textColor),[Gp.textAlign]:rt(Rp.textAlign),[Gp.fontSize]:rt(Rp.fontSize),[Gp.fontWeight]:rt(Rp.fontWeight),[Gp.fontFamily]:rt(Rp.fontFamily),[Gp.linkColor]:rt(Pp.textColor),[Gp.linkTextDecoration]:"none",[Gp.linkHoverTextDecoration]:"underline",[Gp.fontWeightBold]:"900",[Gp.minWidth]:"0.25em",[Gp.minHeight]:"1.35em",[Gp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[Gp.hostDisplay]:"none"}}};var Jp=Object.freeze({__proto__:null,default:Hp,vars:Gp});const $p=A("input-wrapper"),qp=nt(zp),[_p,Xp]=st({labelTextColor:qp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:qp.colors.surface.contrast,placeholderTextColor:qp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:qp.colors.surface.dark,errorMessageTextColor:qp.colors.error.main,successMessageTextColor:qp.colors.success.main,borderWidth:qp.border.xs,borderRadius:qp.radius.xs,borderColor:"transparent",outlineWidth:qp.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:qp.colors.surface.main,fontFamily:qp.fonts.font1.family,direction:qp.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:qp.colors.surface.light,_invalid:{outlineColor:qp.colors.error.main}},_bordered:{outlineWidth:qp.border.xs,borderColor:qp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:qp.colors.error.main}},_disabled:{labelTextColor:qp.colors.surface.light,borderColor:qp.colors.surface.light,valueTextColor:qp.colors.surface.light,placeholderTextColor:qp.colors.surface.light,helperTextColor:qp.colors.surface.light,backgroundColor:qp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},$p),Kp=nt(zp),th=Do.cssVarList,eh={[th.hostWidth]:Xp.width,[th.hostDirection]:Xp.direction,[th.fontSize]:Xp.fontSize,[th.fontFamily]:Xp.fontFamily,[th.labelFontSize]:Xp.labelFontSize,[th.labelFontWeight]:Xp.labelFontWeight,[th.inputValueFontWeight]:Xp.inputValueFontWeight,[th.inputPlaceholderFontWeight]:Xp.inputPlaceholderFontWeight,[th.helperTextFontWeight]:Xp.helperTextFontWeight,[th.errorMessageFontWeight]:Xp.errorMessageFontWeight,[th.labelTextColor]:Xp.labelTextColor,[th.errorMessageTextColor]:Xp.errorMessageTextColor,[th.inputBorderColor]:Xp.borderColor,[th.inputBorderWidth]:Xp.borderWidth,[th.inputBorderStyle]:Xp.borderStyle,[th.inputBorderRadius]:Xp.borderRadius,[th.inputOutlineColor]:Xp.outlineColor,[th.inputOutlineOffset]:Xp.outlineOffset,[th.inputOutlineWidth]:Xp.outlineWidth,[th.inputOutlineStyle]:Xp.outlineStyle,[th.labelRequiredIndicator]:Xp.requiredIndicator,[th.inputValueTextColor]:Xp.valueTextColor,[th.inputPlaceholderTextColor]:Xp.placeholderTextColor,[th.inputBackgroundColor]:Xp.backgroundColor,[th.inputHorizontalPadding]:Xp.horizontalPadding,[th.inputHeight]:Xp.inputHeight,[th.inputDropdownButtonColor]:Kp.colors.surface.dark,[th.inputDropdownButtonCursor]:"pointer",[th.inputDropdownButtonSize]:Xp.toggleButtonSize,[th.inputDropdownButtonOffset]:Kp.spacing.xs,[th.overlayItemPaddingInlineStart]:Kp.spacing.xs,[th.overlayItemPaddingInlineEnd]:Kp.spacing.lg,[th.labelPosition]:Xp.labelPosition,[th.labelTopPosition]:Xp.labelTopPosition,[th.labelHorizontalPosition]:Xp.labelHorizontalPosition,[th.inputTransformY]:Xp.inputTransformY,[th.inputTransition]:Xp.inputTransition,[th.marginInlineStart]:Xp.marginInlineStart,[th.placeholderOpacity]:Xp.placeholderOpacity,[th.inputVerticalAlignment]:Xp.inputVerticalAlignment,[th.valueInputHeight]:Xp.valueInputHeight,[th.valueInputMarginBottom]:Xp.valueInputMarginBottom,[th.errorMessageIcon]:Xp.errorMessageIcon,[th.errorMessageIconSize]:Xp.errorMessageIconSize,[th.errorMessageIconPadding]:Xp.errorMessageIconPadding,[th.errorMessageIconRepeat]:Xp.errorMessageIconRepeat,[th.errorMessageIconPosition]:Xp.errorMessageIconPosition,[th.errorMessageFontSize]:Xp.errorMessageFontSize,_readonly:{[th.inputDropdownButtonCursor]:"default"},[th.overlayFontSize]:Xp.fontSize,[th.overlayFontFamily]:Xp.fontFamily,[th.overlayCursor]:"pointer",[th.overlayItemBoxShadow]:"none",[th.overlayBackground]:Xp.backgroundColor,[th.overlayTextColor]:Xp.valueTextColor,[th.overlayCheckmarkDisplay]:"initial",[th.overlaySelectedItemBackground]:"initial",[th.overlaySelectedItemHoverBackground]:Kp.colors.primary.highlight,[th.overlaySelectedItemFocusBackground]:Kp.colors.primary.highlight,[th.overlayItemHoverBackground]:Kp.colors.primary.highlight,[th.overlayItemFocusBackground]:Kp.colors.primary.highlight,[th.overlay.margin]:"0",[th.overlay.contentHeight]:"100%",[th.overlay.contentOpacity]:"1",[th.overlay.scrollerMinHeight]:"1px",_loading:{[th.overlay.loaderTop]:"50%",[th.overlay.loaderLeft]:"50%",[th.overlay.loaderRight]:"auto",[th.overlay.loaderMargin]:"-15px 0 0 -15px",[th.overlay.loaderWidth]:"30px",[th.overlay.loaderHeight]:"30px",[th.overlay.loaderBorder]:"2px solid transparent",[th.overlay.loaderBorderColor]:`${Kp.colors.primary.highlight} ${Kp.colors.primary.highlight} ${Kp.colors.primary.main} ${Kp.colors.primary.main}`,[th.overlay.loaderBorderRadius]:"50%",[th.overlay.contentHeight]:"100px",[th.overlay.scrollerMinHeight]:"100px",[th.overlay.contentOpacity]:"0"}};var ih=Object.freeze({__proto__:null,comboBox:eh,default:eh,vars:th});const oh=nt(zp),[nh,rh]=st({shadowColor:"#00000020"},Cc),{shadowColor:sh}=rh,ah=wc.cssVarList,lh={...nh,[ah.hostWidth]:"fit-content",[ah.hostDirection]:oh.direction,[ah.textAlign]:"center",[ah.fontFamily]:oh.fonts.font1.family,[ah.fontWeight]:"400",[ah.verticalPadding]:"0.25em",[ah.horizontalPadding]:"0.5em",[ah.borderWidth]:oh.border.xs,[ah.borderRadius]:oh.radius.xs,[ah.borderColor]:"transparent",[ah.borderStyle]:"solid",_fullWidth:{[ah.hostWidth]:"100%"},size:{xs:{[ah.fontSize]:"12px"},sm:{[ah.fontSize]:"14px"},md:{[ah.fontSize]:"16px"},lg:{[ah.fontSize]:"18px"}},variant:{contained:{[ah.backgroundColor]:oh.colors.surface.main}},_shrinkToIndicator:{[ah.hostWidth]:"13px",[ah.hostHeight]:"13px",[ah.borderRadius]:"50%",[ah.fontSize]:"0",[ah.textIndent]:"-9999px"},mode:{default:{[ah.textColor]:oh.colors.surface.dark,_bordered:{[ah.borderColor]:oh.colors.surface.light}},primary:{[ah.textColor]:oh.colors.primary.main,_bordered:{[ah.borderColor]:oh.colors.primary.light}},secondary:{[ah.textColor]:oh.colors.secondary.main,_bordered:{[ah.borderColor]:oh.colors.secondary.light}},error:{[ah.textColor]:oh.colors.error.main,_bordered:{[ah.borderColor]:oh.colors.error.light}},success:{[ah.textColor]:oh.colors.success.main,_bordered:{[ah.borderColor]:oh.colors.success.light}}},shadow:{sm:{[ah.boxShadow]:`${oh.shadow.wide.sm} ${sh}, ${oh.shadow.narrow.sm} ${sh}`},md:{[ah.boxShadow]:`${oh.shadow.wide.md} ${sh}, ${oh.shadow.narrow.md} ${sh}`},lg:{[ah.boxShadow]:`${oh.shadow.wide.lg} ${sh}, ${oh.shadow.narrow.lg} ${sh}`},xl:{[ah.boxShadow]:`${oh.shadow.wide.xl} ${sh}, ${oh.shadow.narrow.xl} ${sh}`}}};var dh=Object.freeze({__proto__:null,default:lh,vars:ah});const ch=A("avatar");class uh extends(It({componentName:ch,baseSelector:":host > .wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <vaadin-avatar></vaadin-avatar>\n <div class="editableBadge">\n <vaadin-icon icon="vaadin:pencil"></vaadin-icon>\n </div>\n </div>\n\t\t',E("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .editableBadge {\n border: 1px solid;\n border-radius: 100%;\n height: fit-content;\n width: 25%;\n height: 25%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n inset-inline-end: 0;\n }\n\n vaadin-icon {\n color: currentcolor;\n }\n\n vaadin-avatar {\n width: 100%;\n height: 100%;\n margin: 0;\n border: none\n }\n\n .wrapper {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 100%;\n }\n ",this),this.avatarComponent=this.shadowRoot.querySelector("vaadin-avatar"),f(this,this.avatarComponent,{includeAttrs:["display-name","img","abbr"],mapAttrs:{"display-name":"name"}});const t=this.shadowRoot.querySelector(".editableBadge");v(this,()=>{t.style.display=this.isEditable?"":"none"},{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:ph,editableBadge:hh,avatar:gh}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},Mh=T(ht({mappings:{hostWidth:[{...ph,property:"width"},{...ph,property:"min-width"}],hostHeight:{...ph,property:"height"},cursor:[gh,ph],hostDirection:{...ph,property:"direction"},avatarTextColor:{...gh,property:"color"},avatarBackgroundColor:{...gh,property:"background-color"},editableIconColor:{...hh,property:"color"},editableBorderColor:{...hh,property:"border-color"},editableBackgroundColor:{...hh,property:"background-color"}}}),gt,Mt)(uh),mh=nt(zp),yh=Mh.cssVarList,bh={[yh.hostDirection]:mh.direction,[yh.editableIconColor]:mh.colors.surface.dark,[yh.editableBorderColor]:mh.colors.surface.dark,[yh.editableBackgroundColor]:mh.colors.surface.main,[yh.avatarTextColor]:mh.colors.surface.main,[yh.avatarBackgroundColor]:mh.colors.surface.dark,_editable:{[yh.cursor]:"pointer"},size:{xs:{[yh.hostWidth]:"30px",[yh.hostHeight]:"30px"},sm:{[yh.hostWidth]:"40px",[yh.hostHeight]:"40px"},md:{[yh.hostWidth]:"60px",[yh.hostHeight]:"60px"},lg:{[yh.hostWidth]:"98px",[yh.hostHeight]:"98px"},xl:{[yh.hostWidth]:"120px",[yh.hostHeight]:"120px"},"2xl":{[yh.hostWidth]:"140px",[yh.hostHeight]:"140px"}}},Nh={...yh};var Ih=Object.freeze({__proto__:null,default:bh,vars:Nh});const xh=Lo.cssVarList;var jh=Object.freeze({__proto__:null,default:{},vars:xh});const Th=wo.cssVarList;var Dh=Object.freeze({__proto__:null,default:{},vars:Th});const vh=A("apps-list"),zh=T(ht({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:mu.componentName,property:mu.cssVarList.gap},maxRowItems:{selector:mu.componentName,property:mu.cssVarList.maxRowItems},itemsFontWeight:{selector:fi.componentName,property:fi.cssVarList.fontWeightOverride},itemsFontSize:{selector:fi.componentName,property:fi.cssVarList.fontSizeOverride},itemsTextAlign:{selector:fi.componentName,property:fi.cssVarList.textAlign},itemBackgroundColor:{selector:hu.componentName,property:hu.cssVarList.backgroundColor},logoBackgroundColor:{selector:Mh.componentName,property:Mh.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:Mh.componentName,property:Mh.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${hu.componentName}:hover`,property:hu.cssVarList.backgroundColor},backgroundColor:{selector:mu.componentName,property:mu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:hu.componentName,property:hu.cssVarList.borderStyleOverride},itemBorderColor:{selector:hu.componentName,property:hu.cssVarList.borderColorOverride},itemBorderWidth:{selector:hu.componentName,property:hu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:hu.componentName,property:hu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:hu.componentName,property:hu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:fi.componentName,property:fi.cssVarList.textAlign}]}}),Rt({itemRenderer:({name:t,icon:e,url:i},o,n)=>`\n <a ${i?`href="${i}" title="${i}"`:""} ${n.openInSameWindow?"":'target="_blank"'}>\n <descope-list-item>\n <div class="avatar-wrapper">\n <descope-avatar\n ${e?`img="${e}"`:""}\n ${t?`display-name="${t}" abbr=${V(t)}`:""}\n size="${n.logoSize||n.size}"\n ></descope-avatar>\n </div>\n <descope-text\n variant="${n.itemTextVariant}"\n mode="primary"\n >${t}</descope-text>\n </descope-list-item>\n </a>\n`,rerenderAttrsList:["size","item-text-variant","logo-size","open-in-same-window"]}),gt,Mt,t=>class extends t{get size(){return this.getAttribute("size")||"sm"}get itemTextVariant(){return this.getAttribute("item-text-variant")||"body1"}get logoSize(){return this.getAttribute("logo-size")}get openInSameWindow(){return"true"===this.getAttribute("open-in-same-window")}})(At({slots:["empty-state"],wrappedEleName:"descope-list",excludeAttrsSync:["tabindex","class","empty","style"],componentName:vh,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 ${fi.cssVarList.hostDirection}: var(${zh.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),Ch=zh.cssVarList,Sh=nt(zp),wh="400px",Ah={[Ch.itemsTextAlign]:"start",[Ch.hostDirection]:Sh.direction,[Ch.maxHeight]:wh,[Ch.itemHoverBackgroundColor]:Sh.colors.surface.highlight,_empty:{[Ch.minHeight]:wh},size:{xs:{[Ch.itemsFontSize]:"14px",[Ch.itemsFontWeight]:"normal"},sm:{[Ch.itemsFontSize]:"14px",[Ch.itemsFontWeight]:"normal"},md:{[Ch.itemsFontSize]:"16px",[Ch.itemsFontWeight]:"normal"},lg:{[Ch.itemsFontSize]:"20px",[Ch.itemsFontWeight]:"normal"}},itemPadding:{xs:{[Ch.itemVerticalPadding]:Sh.spacing.xs,[Ch.itemHorizontalPadding]:Sh.spacing.xs},sm:{[Ch.itemVerticalPadding]:Sh.spacing.sm,[Ch.itemHorizontalPadding]:Sh.spacing.sm},md:{[Ch.itemVerticalPadding]:Sh.spacing.md,[Ch.itemHorizontalPadding]:Sh.spacing.md},lg:{[Ch.itemVerticalPadding]:Sh.spacing.lg,[Ch.itemHorizontalPadding]:Sh.spacing.lg},xl:{[Ch.itemVerticalPadding]:Sh.spacing.xl,[Ch.itemHorizontalPadding]:Sh.spacing.xl}}};var Lh=Object.freeze({__proto__:null,default:Ah,vars:Ch});const fh=nt(zp),Eh=mu.cssVarList,[kh,Oh,Vh]=st({shadowColor:"#00000020"},gu),{shadowColor:Wh}=Oh,Rh={...kh,[Eh.hostWidth]:"100%",[Eh.backgroundColor]:fh.colors.surface.main,[Eh.fontFamily]:fh.fonts.font1.family,[Eh.borderColor]:fh.colors.surface.light,[Eh.borderStyle]:"solid",[Eh.borderWidth]:fh.border.xs,[Eh.borderRadius]:fh.radius.sm,[Eh.gap]:fh.spacing.md,[Eh.verticalPadding]:fh.spacing.lg,[Eh.horizontalPadding]:fh.spacing.lg,[Eh.boxShadow]:`${fh.shadow.wide.sm} ${Wh}, ${fh.shadow.narrow.sm} ${Wh}`,[Eh.maxHeight]:"100%",[Eh.hostDirection]:fh.direction,[Eh.minItemsWidth]:"150px",[Eh.maxRowItems]:"1000",_empty:{[Eh.minHeight]:"150px",[Eh.emptyStateTextColor]:fh.colors.surface.dark,[Eh.emptyStateTextFontFamily]:fh.fonts.font1.family},variant:{tiles:{[Eh.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${rt(Eh.minItemsWidth)}, 100%),\n calc((100% - (${rt(Eh.maxRowItems)} - 1) * ${rt(Eh.gap)}) / ${rt(Eh.maxRowItems)})),\n 1fr))`,[Eh.maxItemsWidth]:"200px",[Eh.itemsHorizontalAlign]:"center"}},gap:{xs:{[Eh.gap]:fh.spacing.xs},sm:{[Eh.gap]:fh.spacing.sm},md:{[Eh.gap]:fh.spacing.md},lg:{[Eh.gap]:fh.spacing.lg},xl:{[Eh.gap]:fh.spacing.xl}}},Uh={...Eh,...Vh};var Yh=Object.freeze({__proto__:null,default:Rh,vars:Uh});const Qh=nt(zp),Ph=hu.cssVarList,Bh={[Ph.backgroundColor]:Qh.colors.surface.main,[Ph.verticalPadding]:Qh.spacing.lg,[Ph.horizontalPadding]:Qh.spacing.lg,[Ph.gap]:Qh.spacing.md,[Ph.borderStyle]:"solid",[Ph.borderWidth]:Qh.border.xs,[Ph.borderColor]:Qh.colors.surface.main,[Ph.borderRadius]:Qh.radius.sm,[Ph.cursor]:"pointer",[Ph.alignItems]:"center",[Ph.flexDirection]:"row",[Ph.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Ph.alignItems]:"flex-start",[Ph.flexDirection]:"column",[Ph.borderColor]:Qh.colors.surface.light}},_hover:{[Ph.backgroundColor]:Qh.colors.surface.highlight},_active:{[Ph.backgroundColor]:Qh.colors.surface.main,[Ph.borderColor]:Qh.colors.primary.light,[Ph.outline]:`1px solid ${Qh.colors.primary.light}`}};var Zh=Object.freeze({__proto__:null,default:Bh,vars:Ph});const Fh=A("multi-select-combo-box"),{host:Gh,inputField:Hh,inputElement:Jh,placeholder:$h,toggle:qh,clearButton:_h,label:Xh,requiredIndicator:Kh,helperText:tg,errorMessage:eg,chip:ig,chipLabel:og,overflowChipFirstBorder:ng,overflowChipSecondBorder:rg}={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"}},sg=T(ht({mappings:{hostWidth:{...Gh,property:"width"},hostDirection:{...Gh,property:"direction"},fontSize:[{},Gh],chipFontSize:{...og,property:"font-size"},fontFamily:[Xh,$h,Hh,tg,eg,og],labelFontSize:{...Xh,property:"font-size"},labelFontWeight:{...Xh,property:"font-weight"},inputValueFontWeight:{...Hh,property:"font-weight"},inputPlaceholderFontWeight:{...$h,property:"font-weight"},helperTextFontWeight:{...tg,property:"font-weight"},errorMessageFontWeight:{...eg,property:"font-weight"},labelTextColor:[{...Xh,property:"color"},{...Kh,property:"color"}],errorMessageTextColor:{...eg,property:"color"},errorMessageIcon:{...eg,property:"background-image"},errorMessageIconSize:{...eg,property:"background-size"},errorMessageIconPadding:{...eg,property:"padding-inline-start"},errorMessageIconRepeat:{...eg,property:"background-repeat"},errorMessageIconPosition:{...eg,property:"background-position"},errorMessageFontSize:{...eg,property:"font-size"},inputHeight:{...Hh,property:"min-height"},inputBackgroundColor:{...Hh,property:"background-color"},inputBorderColor:{...Hh,property:"border-color"},inputBorderWidth:{...Hh,property:"border-width"},inputBorderStyle:{...Hh,property:"border-style"},inputBorderRadius:{...Hh,property:"border-radius"},labelRequiredIndicator:{...Kh,property:"content"},inputValueTextColor:{...Hh,property:"color"},inputPlaceholderTextColor:{...$h,property:"color"},inputDropdownButtonCursor:[{...qh,property:"cursor"},{..._h,property:"cursor"}],inputDropdownButtonColor:[{...qh,property:"color"},{..._h,property:"color"}],inputDropdownButtonSize:[{...qh,property:"font-size"},{..._h,property:"font-size"}],inputDropdownButtonOffset:[{...qh,property:"margin-right"},{...qh,property:"margin-left"}],inputOutlineColor:{...Hh,property:"outline-color"},inputOutlineWidth:{...Hh,property:"outline-width"},inputOutlineStyle:{...Hh,property:"outline-style"},inputOutlineOffset:{...Hh,property:"outline-offset"},inputHorizontalPadding:[{...Jh,property:"padding-left"},{...Jh,property:"padding-right"},{...Hh,property:"padding-inline-start"}],inputVerticalPadding:[{...Hh,property:"padding-top"},{...Hh,property:"padding-bottom"}],chipTextColor:{...og,property:"color"},chipBackgroundColor:[{...ig,property:"background-color"},{...ng,property:"border-color"},{...rg,property:"border-color"}],labelPosition:{...Xh,property:"position"},labelTopPosition:{...Xh,property:"top"},labelLeftPosition:{...Xh,property:"left"},labelHorizontalPosition:[{...Xh,property:"left"},{...Xh,property:"right"}],inputTransformY:{...Xh,property:"transform"},inputTransition:{...Xh,property:"transition"},marginInlineStart:{...Xh,property:"margin-inline-start"},placeholderOpacity:{...$h,property:"opacity"},inputVerticalAlignment:{...Hh,property:"align-items"},overlayBackground:{property:()=>sg.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>sg.cssVarList.overlay.textColor},overlayBorder:{property:()=>sg.cssVarList.overlay.border},overlayFontSize:{property:()=>sg.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>sg.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>sg.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>sg.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>sg.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>sg.cssVarList.overlay.itemPaddingInlineEnd}}}),gt,Ot({name:"overlay",selector:"vaadin-multi-select-combo-box-internal",mappings:{backgroundColor:{selector:"vaadin-multi-select-combo-box-scroller"},minHeight:{selector:"vaadin-multi-select-combo-box-overlay"},margin:{selector:"vaadin-multi-select-combo-box-overlay"},cursor:{selector:"vaadin-multi-select-combo-box-item"},fontFamily:{selector:"vaadin-multi-select-combo-box-item"},textColor:{selector:"vaadin-multi-select-combo-box-item",property:"color"},fontSize:{selector:"vaadin-multi-select-combo-box-item"},itemBoxShadow:{selector:"vaadin-multi-select-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),kt({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),jt,Mt,t=>class extends t{static get observedAttributes(){return["readonly"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#R;#xe=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get allowCustomValues(){return"true"===this.getAttribute("allow-custom-value")}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data and default-values must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}#je(){if(this.#R)return!0;const t=this.getAttribute("data");if(!t)return!1;try{return Array.isArray(JSON.parse(t))}catch{return!1}}renderItems(){const t=this.getItemsTemplate();t?this.innerHTML=t:this.#je()&&(this.innerHTML="")}updateSelectedItems(){const t=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[];t.length>0&&(this.value=t),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#Te(t){return Array.from(new Map(t.map(t=>[t.getAttribute("data-id"),t])).values())}#et(){const t=Array.from(this.children),e=this.#Te(t);t.length?(this.removeAttribute("has-no-options"),e.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#De(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",t=>{const e=this.#tt({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,t.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const t=new RegExp(this.pattern);if(this.value.some(e=>!t.test(e)))return{patternMismatch:!0}}return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#De(),this.renderItems(),v(this,this.renderItems.bind(this),{includeAttrs:["data"]}),z(this,this.#et.bind(this)),f(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#ve(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#ve(){this.#xe=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter(e=>t.includes(e["data-id"]));if(this.allowCustomValues){const i=e?.map(t=>t.getAttribute("data-id"))||[],o=t.filter(t=>!i.includes(t));if(o.length){const e=o.reduce((t,e)=>t+this.#tt({label:e,displayName:e,value:e}),"");return this.innerHTML+=e,void setTimeout(()=>{this.value=t},0)}}const i=e?.map(t=>t.getAttribute("data-id"))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const i=t.slice().sort(),o=e.slice().sort();for(let t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0})(this.#xe,i)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#xe}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i&&"true"===i)}onReadOnlyChange(t){t?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",t):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}})(At({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${$(sg.cssVarList)}\n\t\t${X("vaadin-multi-select-combo-box")}\n\t\t${_("vaadin-multi-select-combo-box")}\n\t\t${q("vaadin-multi-select-combo-box")}\n\n\t\tvaadin-multi-select-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-multi-select-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-multi-select-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n align-self: center;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\tvaadin-multi-select-combo-box[readonly] [slot="input"] {\n flex-grow: 1;\n flex-basis: 4em;\n\t\t}\n\n\t\t::part(input-field) {\n padding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${tt("vaadin-multi-select-combo-box")}\n :host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {\n display: block;\n }\n\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -4px;\n right: -4px;\n border-left-width: 0;\n border-inline-start-style: solid;\n border-inline-start-width: 2px;\n }\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -8px;\n right: -8px;\n }\n\n :host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {\n display: none;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-multi-select-combo-box::part(toggle-button),\n vaadin-multi-select-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t`,excludeAttrsSync:["tabindex","size","data","placeholder","style"],componentName:Fh,includeForwardProps:["items","renderer","selectedItems"]})),ag=A("multi-line-mappings"),lg=It({componentName:ag}),dg=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),cg=t=>[...new Set(t.map(dg).filter(Boolean))],ug=t=>{const e=dg(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},pg=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(ug).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},hg=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),gg={selector:()=>":host"},Mg={selector:".row"},mg={selector:".add-action"},yg=T(ht({mappings:{hostWidth:{...gg,property:"width"},hostDirection:[{...gg,property:"direction"},{selector:sg.componentName,property:sg.cssVarList.hostDirection},{selector:Wo.componentName,property:Wo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...Mg,property:"gap"},rowAlignItems:{...Mg,property:"align-items"},rowWrap:{...Mg,property:"flex-wrap"},addActionJustifyContent:{...mg,property:"justify-content"},addActionMarginTop:{...mg,property:"margin-top"}}}),gt)(class extends lg{static get observedAttributes(){return["data","max-rows","size","disabled","readonly","first-value-key","second-value-key","first-label","second-label","first-placeholder","second-placeholder","full-width","merge-rows"]}#ze=[{firstValues:[],secondValues:[]}];#Ce=null;#Se=[];#we={};constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="rows"></div>\n <div class="add-action">\n <descope-button\n class="add-button"\n variant="link"\n mode="primary"\n >\n <slot name="add-button-content">Add line</slot>\n </descope-button>\n </div>\n </div>\n ',E("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n max-width: 100%;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows > .row {\n display: flex;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n align-items: flex-end;\n }\n\n .row descope-multi-select-combo-box {\n flex: 1 1 0;\n box-sizing: border-box;\n }\n\n .row .remove-button {\n flex: 0 0 auto;\n align-self: flex-end;\n }\n\n .row:only-child .remove-button {\n display: none;\n pointer-events: none;\n }\n\n .add-action {\n display: flex;\n }\n ",this),this.rowsElement=this.shadowRoot.querySelector(".rows"),this.addButtonElement=this.shadowRoot.querySelector(".add-button")}get size(){return this.getAttribute("size")||"md"}get firstValueKey(){return this.getAttribute("first-value-key")||"firstValues"}get secondValueKey(){return this.getAttribute("second-value-key")||"secondValues"}get firstLabel(){return this.getAttribute("first-label")||""}get secondLabel(){return this.getAttribute("second-label")||""}get firstPlaceholder(){return this.getAttribute("first-placeholder")||""}get secondPlaceholder(){return this.getAttribute("second-placeholder")||""}get disabled(){return"true"===this.getAttribute("disabled")}get readonly(){return"true"===this.getAttribute("readonly")}get mergeRows(){return"true"===this.getAttribute("merge-rows")}get maxRows(){const t=Number(this.getAttribute("max-rows"));return Number.isFinite(t)&&t>0?t:void 0}get data(){return this.#we}get value(){return this.#ze.filter(t=>t.firstValues.length>0||t.secondValues.length>0).flatMap(t=>(t.firstValues.length?t.firstValues:[""]).map(e=>({[this.firstValueKey]:e,[this.secondValueKey]:[...t.secondValues]})))}set value(t){this.#Ce=t,this.#ze=this.#Ae(t),this.#Le(),this.#fe()}#Ee(t){const e=((t,e,i="unknown")=>{if("string"!=typeof t||!t?.trim())return e;try{return JSON.parse(t)}catch(t){return console.error(`[descope-multi-line-mappings] Failed to parse JSON from "${i}"`,t),e}})(t,{},"data attribute"),i=e&&"object"==typeof e&&!Array.isArray(e)?e:{};this.#Se=Object.entries(i).map(([t,e])=>{const i=String(t),o=null!=e&&"object"==typeof e&&!Array.isArray(e),n=o?e.options??[]:e;return{value:i,label:o&&null!=e.label?String(e.label):i,options:pg(n)}}),this.#we=Object.fromEntries(this.#Se.map(({value:t,options:e})=>[t,e]))}init(){super.init?.(),this.#ke(),this.addButtonElement.addEventListener("click",()=>this.#Oe()),this.#fe()}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("data"===t)return this.#Ee(i),this.#Le(),void this.#fe();if("size"===t)return[...this.#Ve(),...this.#We()].forEach(t=>t.setAttribute("size",this.size)),this.#ke(),void this.#Re();if(["disabled","readonly"].includes(t))return this.#Ve().forEach(t=>{t[this.disabled?"setAttribute":"removeAttribute"]("disabled","true"),t[this.readonly?"setAttribute":"removeAttribute"]("readonly","true")}),this.#We().forEach(t=>t[this.disabled||this.readonly?"setAttribute":"removeAttribute"]("disabled","true")),void this.#Re();if(["first-label","second-label"].includes(t)){const e="first-label"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("label",i):o?.removeAttribute("label")})}if(["first-placeholder","second-placeholder"].includes(t)){const e="first-placeholder"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("placeholder",i):o?.removeAttribute("placeholder")})}"max-rows"===t&&this.#Re(),"merge-rows"===t&&null!==this.#Ce&&(this.#ze=this.#Ae(this.#Ce),this.#Le(),this.#fe())}}#Ve(){return Array.from(this.rowsElement.querySelectorAll("descope-multi-select-combo-box"))}#We(){return Array.from(this.rowsElement.querySelectorAll(".remove-button"))}#Oe(){if(this.disabled||this.readonly||this.#Ue())return;const t={firstValues:[],secondValues:[]};this.#ze=[...this.#ze,t],this.rowsElement.append(this.#Ye(t)),this.#Re()}#Ae(t){if(!Array.isArray(t)||!t.length)return[{firstValues:[],secondValues:[]}];let e=t.map(t=>{const e=t?.[this.firstValueKey];return{firstValues:null!=e&&""!==String(e)?[String(e)]:[],secondValues:cg(t?.[this.secondValueKey]??[])}});if(this.mergeRows){const t=new Map;for(const i of e){const e=[...i.secondValues].sort().join("\0");t.has(e)?t.get(e).firstValues.push(...i.firstValues):t.set(e,{firstValues:[...i.firstValues],secondValues:i.secondValues})}e=[...t.values()]}return e}#Le(){const t=new Set(this.#Se.map(t=>t.value));this.#ze=this.#ze.map(e=>{const i=e.firstValues.filter(e=>t.has(e)),o=this.#Qe(i),n=new Set(o.map(t=>t.value));return{firstValues:i,secondValues:e.secondValues.filter(t=>n.has(t))}})}#Qe(t){const e=t.length?t.map(t=>this.#we[t]||[]).filter(t=>t.length):Object.values(this.#we).filter(t=>t.length);if(!e.length||t.length&&e.length!==t.length)return[];if(1===e.length)return e[0];const[i,...o]=e,n=new Set(i.map(t=>t.value));for(const t of o){const e=new Set(t.map(t=>t.value));for(const t of n)e.has(t)||n.delete(t)}return i.filter(t=>n.has(t.value))}#Pe({getRowIndex:t,type:e,label:i,placeholder:o,options:n,selectedValues:r}){const s=document.createElement("descope-multi-select-combo-box");return s.className=`combo ${e}-combo`,s.setAttribute("size",this.size),s.setAttribute("bordered","true"),s.setAttribute("item-label-path","data-name"),s.setAttribute("item-value-path","data-id"),i&&s.setAttribute("label",i),o&&s.setAttribute("placeholder",o),this.disabled&&s.setAttribute("disabled","true"),this.readonly&&s.setAttribute("readonly","true"),s.data=n,this.#Be(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Ze({rowIndex:i,type:e,selectedValues:cg(s.value||[])})}),s}#Be(t,e){t.__descopeSyncingSelection=!0,Promise.resolve().then(()=>{const i=new Set(e||[]);t.selectedItems=(t.items||[]).filter(t=>i.has(t["data-id"]||t.getAttribute?.("data-id"))),t.__descopeSyncingSelection=!1})}#Fe(t){const e=document.createElement("descope-button");return e.className="remove-button",e.setAttribute("variant","link"),e.setAttribute("mode","primary"),e.setAttribute("size",this.size),e.setAttribute("aria-label","Remove row"),e.innerHTML='<vaadin-icon icon="vaadin:minus"></vaadin-icon>',(this.disabled||this.readonly)&&e.setAttribute("disabled","true"),e.addEventListener("click",()=>{const e=t();-1!==e&&this.#Ge(e)}),e}#fe(){this.rowsElement.innerHTML="",this.#ze.forEach(t=>{this.rowsElement.append(this.#Ye(t))}),this.#Re()}#Ye(t){const e=document.createElement("div");e.className="row";const i=()=>Array.from(this.rowsElement.children).indexOf(e),o=this.#Pe({getRowIndex:i,type:"first",label:this.firstLabel,placeholder:this.firstPlaceholder,options:this.#Se.map(({value:t,label:e})=>({value:t,label:e})),selectedValues:t.firstValues}),n=this.#Qe(t.firstValues),r=this.#Pe({getRowIndex:i,type:"second",label:this.secondLabel,placeholder:this.secondPlaceholder,options:n,selectedValues:t.secondValues});return e.append(o,r,this.#Fe(i)),e}#He(t){const e=this.#ze[t];if(!e)return;const i=this.rowsElement.children[t],o=i?.querySelector(".second-combo");if(!o)return void this.#fe();const n=this.#Qe(e.firstValues);o.data=n,this.#Be(o,e.secondValues)}#ke(){this.addButtonElement.setAttribute("size",this.size)}#Re(){this.disabled||this.readonly||this.#Ue()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#Ue(){return Number.isFinite(this.maxRows)&&this.#ze.length>=this.maxRows}#Je(t){this.rowsElement.children[t]?.remove()}#Ze({rowIndex:t,type:e,selectedValues:i}){if(this.disabled||this.readonly)return;const o=this.#ze[t];if(o){if("first"===e){const e=this.#Qe(i),n=new Set(e.map(t=>t.value)),r=o.secondValues.filter(t=>n.has(t));if(hg(o.firstValues,i)&&hg(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}hg(o.secondValues,i)||(this.#ze[t]={...o,secondValues:i},this.#$e())}}#Ge(t){if(this.disabled||this.readonly||this.#ze.length<=1)return;const e=this.#ze[t];this.#ze=this.#ze.filter((e,i)=>i!==t),this.#Je(t),this.#Re(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#$e()}#$e(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}),bg=yg.cssVarList,Ng={[bg.hostDirection]:Xp.direction,[bg.rowsGap]:zp.spacing.sm,[bg.rowGap]:zp.spacing.sm,[bg.rowAlignItems]:"flex-end",[bg.rowWrap]:"nowrap",[bg.addActionJustifyContent]:"flex-start",[bg.addActionMarginTop]:zp.spacing.xs,_fullWidth:{[bg.hostWidth]:"100%"}};var Ig=Object.freeze({__proto__:null,default:Ng,vars:bg});const xg=nt(zp),jg=sg.cssVarList,Tg={[jg.hostWidth]:Xp.width,[jg.hostDirection]:Xp.direction,[jg.fontSize]:Xp.fontSize,[jg.fontFamily]:Xp.fontFamily,[jg.labelFontSize]:Xp.labelFontSize,[jg.labelFontWeight]:Xp.labelFontWeight,[jg.inputValueFontWeight]:Xp.inputValueFontWeight,[jg.inputPlaceholderFontWeight]:Xp.inputPlaceholderFontWeight,[jg.helperTextFontWeight]:Xp.helperTextFontWeight,[jg.errorMessageFontWeight]:Xp.errorMessageFontWeight,[jg.labelTextColor]:Xp.labelTextColor,[jg.errorMessageTextColor]:Xp.errorMessageTextColor,[jg.inputBorderColor]:Xp.borderColor,[jg.inputBorderWidth]:Xp.borderWidth,[jg.inputBorderStyle]:Xp.borderStyle,[jg.inputBorderRadius]:Xp.borderRadius,[jg.inputOutlineColor]:Xp.outlineColor,[jg.inputOutlineOffset]:Xp.outlineOffset,[jg.inputOutlineWidth]:Xp.outlineWidth,[jg.inputOutlineStyle]:Xp.outlineStyle,[jg.labelRequiredIndicator]:Xp.requiredIndicator,[jg.inputValueTextColor]:Xp.valueTextColor,[jg.inputPlaceholderTextColor]:Xp.placeholderTextColor,[jg.inputBackgroundColor]:Xp.backgroundColor,[jg.inputHorizontalPadding]:Xp.horizontalPadding,[jg.inputVerticalPadding]:Xp.verticalPadding,[jg.inputHeight]:Xp.inputHeight,[jg.inputDropdownButtonColor]:xg.colors.surface.dark,[jg.inputDropdownButtonCursor]:"pointer",[jg.inputDropdownButtonSize]:Xp.toggleButtonSize,[jg.inputDropdownButtonOffset]:xg.spacing.xs,[jg.overlayItemPaddingInlineStart]:xg.spacing.xs,[jg.overlayItemPaddingInlineEnd]:xg.spacing.lg,[jg.chipFontSize]:Xp.chipFontSize,[jg.chipTextColor]:xg.colors.surface.contrast,[jg.chipBackgroundColor]:xg.colors.surface.light,[jg.labelPosition]:Xp.labelPosition,[jg.labelTopPosition]:Xp.labelTopPosition,[jg.labelLeftPosition]:Xp.labelLeftPosition,[jg.labelHorizontalPosition]:Xp.labelHorizontalPosition,[jg.inputTransformY]:Xp.inputTransformY,[jg.inputTransition]:Xp.inputTransition,[jg.marginInlineStart]:Xp.marginInlineStart,[jg.placeholderOpacity]:Xp.placeholderOpacity,[jg.inputVerticalAlignment]:Xp.inputVerticalAlignment,[jg.errorMessageIcon]:Xp.errorMessageIcon,[jg.errorMessageIconSize]:Xp.errorMessageIconSize,[jg.errorMessageIconPadding]:Xp.errorMessageIconPadding,[jg.errorMessageIconRepeat]:Xp.errorMessageIconRepeat,[jg.errorMessageIconPosition]:Xp.errorMessageIconPosition,[jg.errorMessageFontSize]:Xp.errorMessageFontSize,labelType:{floating:{[jg.inputHorizontalPadding]:"0.25em",_hasValue:{[jg.inputHorizontalPadding]:"0.45em"}}},_readonly:{[jg.inputDropdownButtonCursor]:"default"},[jg.overlayFontSize]:Xp.fontSize,[jg.overlayFontFamily]:Xp.fontFamily,[jg.overlayCursor]:"pointer",[jg.overlayItemBoxShadow]:"none",[jg.overlayBackground]:Xp.backgroundColor,[jg.overlayTextColor]:Xp.valueTextColor,[jg.overlay.minHeight]:"400px",[jg.overlay.margin]:"0"};var Dg=Object.freeze({__proto__:null,default:Tg,multiSelectComboBox:Tg,vars:jg});const vg=A("autocomplete-field-internal"),zg=Ct({componentName:vg,baseSelector:""}),Cg=[],Sg="DESCOPE_INVALID_OPTION",wg=A("autocomplete-field"),{host:Ag}={host:{selector:()=>":host"}},Lg=T(ht({componentNameOverride:A("input-wrapper")}),ht({mappings:{hostWidth:{...Ag,property:"width"},hostDirection:{...Ag,property:"direction"},fontSize:{...Ag},checkmarkDisplay:{selector:Do.componentName,property:Do.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:Do.componentName,property:Do.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:Do.componentName,property:Do.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:Do.componentName,property:Do.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:Do.componentName,property:Do.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:Do.componentName,property:Do.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:Do.componentName,property:Do.cssVarList.overlayItemHoverBackground}}}),gt,kt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Mt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${vg}\n tabindex="-1"\n ></${vg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(vg),f(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),S(this,this.inputElement,{includeAttrs:["invalid"]}),this.inputElement.fetchResults=this.fetchResults,this.setDefaultValue()}set fetchResults(t){this.inputElement.fetchResults=t}})(At({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:wg})),fg=Lg.cssVarList,Eg=nt(zp),kg={[fg.hostWidth]:Xp.width,[fg.hostDirection]:Xp.direction,[fg.fontSize]:Xp.fontSize,[fg.checkmarkDisplay]:"none",[fg.itemPaddingInlineStart]:Eg.spacing.lg,[fg.itemPaddingInlineEnd]:Eg.spacing.lg,[fg.selectedItemBackground]:Eg.colors.primary.light,[fg.selectedItemHoverBackground]:Eg.colors.primary.light,[fg.selectedItemFocusBackground]:Eg.colors.primary.light,[fg.itemHoverBackground]:Eg.colors.primary.highlight,_fullWidth:{[fg.hostWidth]:"100%"}};var Og=Object.freeze({__proto__:null,default:kg,vars:fg});class Vg extends(wt()){#qe=null;#_e=null;constructor(t){super(t),this.#_e=this.#Xe()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#Xe(){const t=this.getAttribute("public-api-key");if(!this.#qe&&t)try{(t=>{var e,i,o,n,r,s,a,l,d,c,u,p,h;window.google?.maps||(e={key:t},r="The Google Maps JavaScript API",s="google",a="importLibrary",l="__ib__",d=document,c=window,u=(c=c[s]||(c[s]={})).maps||(c.maps={}),p=new Set,h=new URLSearchParams,u[a]?console.warn(r+" only loads once. Ignoring:",e):u[a]=(t,...c)=>p.add(t)&&(i||(i=new Promise(async(t,a)=>{for(n in await(o=d.createElement("script")),h.set("libraries",[...p]+""),e)h.set(n.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),e[n]);h.set("callback",s+".maps."+l),o.src=`https://maps.${s}apis.com/maps/api/js?`+h,u[l]=t,o.onerror=()=>i=a(Error(r+" could not load.")),o.nonce=d.querySelector("script[nonce]")?.nonce||"",d.head.append(o)}))).then(()=>u[a](t,...c)))})(t);const{AutocompleteSuggestion:e}=await google.maps.importLibrary("places");this.#qe=e}catch(t){throw console.error("Failed to initialize Google Maps Autocomplete service:",t),t}}async _fetchResults(t){if(!t?.trim())return{results:[]};try{await this.#_e;const e={input:t};this.getOptionalParams().forEach(({attribute:t,key:i,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&(e[i]="includedPrimaryTypes"===i?n.split(",").map(t=>t.trim()).filter(Boolean):n)});const{suggestions:i}=await this.#qe.fetchAutocompleteSuggestions(e);return this.#Ke(i)}catch(t){return console.error("Google Maps Places Autocomplete failed:",t),{results:[],error:St}}}#Ke(t){return t?.length?{results:t.map(t=>{const e=t.placePrediction;return{id:e.placeId,label:e.text.text,value:e.text.text}})}:{results:[]}}}class Wg extends(wt()){getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"layers",attribute:"address-types"},{key:"limit",attribute:"address-limit"},{key:"lang",attribute:"address-language"},{key:"countryCode",attribute:"address-region"}]}async _fetchResults(t){if(!t?.trim())return{results:[]};const e=this.getAttribute("public-api-key"),i=new URLSearchParams({query:t.trim()});this.getOptionalParams().forEach(({attribute:t,key:e,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&("layers"===e||"countryCode"===e?i.append(e,n.split(",").map(t=>t.trim()).filter(Boolean).join(",")):i.append(e,n))});try{const t=await fetch(`https://api.radar.io/v1/search/autocomplete?${i.toString()}`,{headers:{Authorization:e}});if(!t.ok)throw new Error(`Radar API returned ${t.status}`);const o=await t.json();return this.#Ke(o)}catch(t){return console.error("Radar Places Autocomplete failed:",t),{results:[],error:St}}}#Ke(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const Rg=A("address-field-internal"),Ug="google-maps-places",Yg="radar",Qg={[Ug]:Vg,[Yg]:Wg},Pg=Ct({componentName:Rg,baseSelector:""}),Bg=["public-api-key"],Zg=[...Bg],Fg=T((({connectorClasses:t})=>e=>class extends e{#ti=t;static get observedAttributes(){return[...e.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#ti}set connectorClasses(t){this.#ti=t}get connectorTemplate(){return this.getAttribute("connector-template")}initializeConnector(){const t=this.connectorTemplate;if(!this.connectorClasses[t])return;const e=this.connectorClasses[t];this.connector=new e(this.getAttribute.bind(this))}async fetchConnectorResults(t){if(!this.connector)return console.error(`No connector initialized for the field with template: ${this.connectorTemplate}`),{results:[]};const{results:e,error:i}=await this.connector.fetch(t);return i?{results:[],error:i}:{results:e.map(({label:t,value:e})=>({label:t,value:e}))}}init(){super.init?.(),this.initializeConnector()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"connector-template"===t&&this.initializeConnector()}})({connectorClasses:Qg}))(class extends Pg{static get observedAttributes(){return[].concat(Pg.observedAttributes||[],Zg)}get errorMsgValueMissing(){return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing}constructor(){super(),this.innerHTML="\n <div>\n <descope-autocomplete-field></descope-autocomplete-field>\n </div>\n ",this.autocompleteField=this.querySelector("descope-autocomplete-field")}get value(){return this.autocompleteField.value}set value(t){this.autocompleteField.value=t}focus(){this.autocompleteField.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.autocompleteField.focus()}),super.init?.(),this.initAutocomplete()}initAutocomplete(){f(this,this.autocompleteField,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","error-message","default-value","data-errormessage-value-missing","st-host-direction","allow-custom-value","min-search-length","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),S(this,this.autocompleteField,{includeAttrs:["invalid"]}),this.autocompleteField.fetchResults=this.fetchConnectorResults.bind(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Bg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),Gg=A("address-field"),{host:Hg}={host:{selector:()=>":host"}},Jg=T(ht({componentNameOverride:A("input-wrapper")}),ht({mappings:{hostWidth:{...Hg,property:"width"},hostDirection:{...Hg,property:"direction"}}}),gt,kt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),Mt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(t){this.inputElement.connectorClasses=t}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Rg}\n tabindex="-1"\n ></${Rg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Rg),f(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding","connector-template","public-api-key","address-types","address-language","address-region","address-limit"]}),S(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValue()}})(At({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 ${Rg} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Rg} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Gg})),$g=Jg.cssVarList,qg={[$g.hostWidth]:Xp.width,[$g.hostDirection]:Xp.direction,_fullWidth:{[$g.hostWidth]:"100%"}};var _g=Object.freeze({__proto__:null,default:qg,vars:$g});const Xg=(t,e=2)=>String(t).padStart(e,"0"),Kg=A("timer"),tM=["seconds","hide-icon","paused"],eM=It({componentName:Kg,baseSelector:":host > .wrapper"}),{host:iM,icon:oM,timer:nM}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},rM=T(ht({mappings:{fontSize:{},iconSize:[{...oM,property:"width"},{...oM,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...nM},lineHeight:{...nM},textColor:{...nM,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...iM,property:"width"},hostDirection:{...iM,property:"direction"},iconColor:{...oM,property:Lo.cssVarList.fill}}}),gt,Mt)(class extends eM{#ei=0;#ii;static get observedAttributes(){return tM.concat(eM.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=" class="icon"></descope-icon>\n <div class="timer"></div>\n </div>\n\t\t',E("\n :host {\n display: inline-flex;\n user-select: none;\n -webkit-user-select: none;\n }\n .wrapper {\n display: flex;\n align-items: center;\n flex-direction: row;\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ",this),this.icon=this.shadowRoot.querySelector(".icon"),this.timer=this.shadowRoot.querySelector(".timer")}get seconds(){const t=this.getAttribute("seconds"),e=1e3*parseInt(t||0,10);return Math.max(0,e)}get isPaused(){return"true"===this.getAttribute("paused")}init(){super.init?.(),this.#ei=this.seconds}startInterval(){this.#ei?this.#ii=setInterval(()=>{this.#oi(),this.#ei||this.stop(),this.#ni(this.#ei)},1e3):this.stop()}stopInterval(){clearInterval(this.#ii)}#oi(){this.#ei=this.#ei-1e3}reset(){this.#ei=this.seconds,this.#ni(this.#ei),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#ei=0,this.#ni(this.#ei),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#ni(t){this.timer.textContent=((t=0)=>{const e=Math.floor(t/1e3),i=Math.floor(e/3600),o=Math.floor(e%3600/60),n=e%60;return[...i?[Xg(i)]:[],Xg(o),Xg(n)].join(":")})(t)}#ri(t){this.icon.classList.toggle("hidden",t)}#si(t){setTimeout(()=>{t?this.pause():this.#ii||this.resume()})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("seconds"===t&&this.reset(),"hide-icon"===t&&this.#ri("true"===i),"paused"===t&&this.#si("true"===i))}}),sM=nt(zp),aM=rM.cssVarList,lM={[aM.hostDirection]:sM.direction,[aM.gap]:"0.25em",[aM.fontFamily]:sM.fonts.font1.family,[aM.minHeight]:"1.5em",[aM.lineHeight]:"1em",[aM.fontWeight]:sM.fonts.font1.fontWeight,[aM.textColor]:sM.colors.surface.contrast,[aM.iconColor]:sM.colors.surface.contrast,[aM.iconSize]:"1em",size:{xs:{[aM.fontSize]:"12px"},sm:{[aM.fontSize]:"14px"},md:{[aM.fontSize]:"16px"},lg:{[aM.fontSize]:"18px"}},textAlign:{right:{[aM.textAlign]:"right"},left:{[aM.textAlign]:"left"},center:{[aM.textAlign]:"center"}},_fullWidth:{[aM.hostWidth]:"100%"}};var dM=Object.freeze({__proto__:null,default:lM,vars:aM});const cM=A("timer-button"),uM=["button-variant","button-mode","size","text-align","full-width"],pM={"button-variant":"variant","button-mode":"mode"},hM=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],gM={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},MM=It({componentName:cM,baseSelector:":host > div"}),{host:mM,nestedTimer:yM,nestedButton:bM,timerInsideNotReversed:NM,timerInsideReversed:IM}={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'}},xM=T(ht({mappings:{gap:{},flexDirection:{},hostWidth:{...mM,property:"width"},hostDirection:{...mM,property:"direction"},timerTextColor:{...yM,property:rM.cssVarList.textColor},timerIconColor:{...yM,property:rM.cssVarList.iconColor},timerHostWidth:{...yM,property:rM.cssVarList.hostWidth},buttonLabelSpacing:{...bM,property:Wo.cssVarList.labelSpacing},timerInsideGapEnd:{...NM,property:"margin-inline-end"},timerInsideGapStart:{...IM,property:"margin-inline-start"}}}),gt,Mt)(class extends MM{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-timer class="timer"></descope-timer>\n <descope-button class="button" disabled="true">\n <slot></slot>\n </descope-button>\n </div>\n\t\t',E('\n :host {\n display: inline-flex;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n }\n /* allow timer to grow along the main axis in the wrapper flex container */\n :host(:not([timer-inside="true"])) .timer {\n flex: 1;\n }\n :host([timer-inside="true"]) .timer {\n flex: 0 0 auto;\n }\n ',this),this.wrapper=this.shadowRoot.querySelector(".wrapper"),this.timer=this.shadowRoot.querySelector(".timer"),this.button=this.shadowRoot.querySelector(".button"),this.forwardingSlot=this.shadowRoot.querySelector(".button slot"),this.timer.addEventListener("timer-started",()=>this.onTimerStarted()),this.timer.addEventListener("timer-ended",()=>this.onTimerEnded()),this.syncTimerPlacement(),this.button.addEventListener("click",this.onClick.bind(this))}static get observedAttributes(){return[...super.observedAttributes||[],"timer-inside","timer-position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"timer-inside"!==t&&"timer-position"!==t||this.syncTimerPlacement()}get#ai(){return"true"===this.getAttribute("timer-inside")}get#li(){return"end"===this.getAttribute("timer-position")}syncTimerPlacement(){this.#ai?this.#di(this.#li):this.#ci()}#di(t){t?this.timer.previousSibling!==this.forwardingSlot&&this.button.appendChild(this.timer):this.timer.nextSibling!==this.forwardingSlot&&this.button.insertBefore(this.timer,this.forwardingSlot)}#ci(){this.timer.parentElement!==this.wrapper&&this.wrapper.insertBefore(this.timer,this.button)}set onclick(t){this.button.onclick=t}init(){super.init?.(),f(this,this.button,{includeAttrs:uM,mapAttrs:pM}),f(this,this.timer,{includeAttrs:hM,mapAttrs:gM}),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")})}}),jM=nt(zp),TM=xM.cssVarList,DM={[TM.gap]:jM.spacing.sm,[TM.flexDirection]:"column",_horizontal:{[TM.flexDirection]:"row",timerPosition:{end:{[TM.flexDirection]:"row-reverse"}}},timerPosition:{end:{[TM.flexDirection]:"column-reverse"}},_fullWidth:{[TM.hostWidth]:"100%"},_timerInside:{[TM.timerTextColor]:"currentColor",[TM.timerIconColor]:"currentColor",[TM.timerHostWidth]:"auto",[TM.buttonLabelSpacing]:"0",[TM.timerInsideGapEnd]:`var(${TM.gap})`,timerPosition:{end:{[TM.timerInsideGapStart]:`var(${TM.gap})`}}}};var vM=Object.freeze({__proto__:null,default:DM,vars:TM});const zM=A("password-strength");class CM extends(It({componentName:zM,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["options","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="bars-container"></div>\n <div class="text-container">\n </div>\n </div>\n\t\t',E("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .wrapper {\n display: inline-flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n height: 100%;\n align-items: flex-start;\n }\n\n .bar {\n flex-grow: 1;\n }\n\n .bars-container {\n display: flex;\n flex-grow: 1;\n width: 100%;\n }\n ",this),this.barsContainer=this.shadowRoot.querySelector(".bars-container"),this.textContainer=this.shadowRoot.querySelector(".text-container")}get options(){return this.getAttribute("options")?.split(",")||[]}getCalcScoreFn=()=>Promise.resolve().then(function(){return oD}).then(t=>t.default);#ui=-1;async calcScore(){const t=this.getAttribute("value")||"";return t?(await this.getCalcScoreFn())(t).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((t,e)=>{const i=document.createElement("div");return i.classList.add("bar"),i.classList.toggle("filled",e<=this.#ui),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#ui&&(this.#ui=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#ui})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#ui)}),this.textContainer.innerHTML=this.options[this.#ui]||"",-1===this.#ui?this.removeAttribute("score"):this.setAttribute("score",this.#ui))}attributeChangedCallback(t,e,i){if(e!==i)return"options"===t?this.renderBars():"value"===t?this.onValueChange():void 0}}const{host:SM,bar:wM,filledBar:AM,barsContainer:LM,text:fM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},EM=T(ht({componentNameOverride:A("input-wrapper")}),ht({mappings:{hostWidth:[{...SM,property:"width"},{...SM,property:"min-width"}],hostDirection:{...SM,property:"direction"},hostMinWidth:{...SM,property:"min-width"},barHeight:{...wM,property:"height"},barBorderRadius:{...wM,property:"border-radius"},emptyBarColor:{...wM,property:"background-color"},filledBarColor:{...AM,property:"background-color"},textColor:{...fM,property:"color"},spacing:{property:"gap"},barSpacing:{...LM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...wM,property:"transition"}}}),gt,Mt)(CM),kM=nt(zp),OM=EM.cssVarList,VM={[OM.hostDirection]:kM.direction,[OM.barHeight]:"4px",[OM.barTransition]:"background-color 0.3s",[OM.barBorderRadius]:kM.radius.sm,[OM.hostMinWidth]:Xp.minWidth,[OM.barSpacing]:kM.spacing.sm,[OM.emptyBarColor]:kM.colors.surface.light,[OM.fontFamily]:Xp.fontFamily,[OM.fontSize]:Xp.labelFontSize,[OM.fontWeight]:Xp.labelFontWeight,[OM.spacing]:kM.spacing.sm,_fullWidth:{[OM.hostWidth]:"100%"},score:{0:{[OM.filledBarColor]:kM.colors.error.light,[OM.textColor]:kM.colors.error.light},1:{[OM.filledBarColor]:kM.colors.error.main,[OM.textColor]:kM.colors.error.main},2:{[OM.filledBarColor]:kM.colors.error.dark,[OM.textColor]:kM.colors.error.dark},3:{[OM.filledBarColor]:kM.colors.success.dark,[OM.textColor]:kM.colors.success.dark},4:{[OM.filledBarColor]:kM.colors.success.main,[OM.textColor]:kM.colors.success.main}}},WM={...OM};var RM=Object.freeze({__proto__:null,default:VM,vars:WM});const UM=A("collapsible-container");class YM extends(It({componentName:UM,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text","aria-label"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-text st-host-direction="ltr">\n <div class="header">\n <div class="title">\n <div class="icon">\n <descope-icon st-fill="currentcolor" src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K></descope-icon>\n </div>\n <span></span>\n </div>\n </div>\n </descope-text>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n\t',E(`\n div.content {\n transition-property: max-height;\n overflow: auto;\n height: auto;\n\t\t\t}\n\t\t\tslot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n slot:focus-visible {\n outline: none;\n }\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n .header {\n user-select: none;\n display: flex;\n align-items: baseline;\n }\n .title {\n display: contents;\n }\n :host([attach-icon="true"]) .header {\n display: block;\n }\n :host([attach-icon="true"]) .title {\n display: inline-flex;\n align-items: baseline;\n }\n .icon {\n flex-shrink: 0;\n height: var(${fi.cssVarList.textLineHeight});\n min-height: 24px;\n display: flex;\n align-items: center;\n }\n descope-icon {\n transition-property: transform;\n }\n descope-text {\n width: 100%;\n display: flex;\n }\n span {\n align-self: center;\n word-break: break-word;\n }\n span:empty {\n display: none;\n }\n .wrapper {\n overflow: hidden;\n display: inline-flex;\n width: 100%;\n flex-direction: column;\n }\n `,this),this.header=this.shadowRoot.querySelector(".header"),this.content=this.shadowRoot.querySelector("div.content"),this.icon=this.header.querySelector("descope-icon"),this.headerText=this.header.querySelector("span"),this.textComponent=this.shadowRoot.querySelector("descope-text")}get isCollapsible(){return"true"===this.getAttribute("collapsible")}calcContentHeight(){return this.content.offsetHeight||this.content.scrollHeight}get isCollapsed(){return"true"===this.getAttribute("collapsed")}toggle(){this.setAttribute("collapsed",this.isCollapsed?"false":"true")}updateHeaderA11y(){this.isCollapsible?(this.header.setAttribute("role","button"),this.header.setAttribute("tabindex","0"),this.header.setAttribute("aria-expanded",String(!this.isCollapsed)),this.getAttribute("text")?this.header.removeAttribute("aria-label"):this.header.setAttribute("aria-label",this.getAttribute("aria-label")||"Toggle section")):["role","tabindex","aria-expanded","aria-label"].forEach(t=>this.header.removeAttribute(t))}collapse(t=!1){this.content.inert=!0;const e=()=>{this.content.style.maxHeight="0px"};if(this.icon.classList.add("rotate"),!t)return e();this.content.style.maxHeight=this.calcContentHeight()+"px",setTimeout(e)}expand(t=!1){this.content.inert=!1;const e=()=>{this.content.style.maxHeight=""};if(this.icon.classList.remove("rotate"),!t)return e();this.content.addEventListener("transitionend",e,{once:!0}),this.content.style.maxHeight=this.calcContentHeight()+"px"}#pi=!1;init(){super.init?.(),this.#pi=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),this.header.addEventListener("keydown",t=>{!this.isCollapsible||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.toggle())}),f(this,this.textComponent,{includeAttrs:["text-align","text-variant","text-mode"],mapAttrs:{"text-mode":"mode","text-variant":"variant"}})}updateHeaderText(){const t=this.getAttribute("text")||"";this.headerText.innerText=t}attributeChangedCallback(t,e,i){if("text"===t)return this.updateHeaderText(),void this.updateHeaderA11y();"aria-label"!==t?(this.updateHeaderA11y(),this.isCollapsed&&this.isCollapsible?this.collapse(this.#pi):this.expand(this.#pi)):this.updateHeaderA11y()}}const QM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},PM=T(ht({mappings:{hostWidth:{selector:QM.host,property:"width"},hostDirection:{selector:QM.host,property:"direction"},verticalPadding:[{selector:QM.wrapper,property:"padding-top"},{selector:QM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:QM.wrapper,property:"padding-left"},{selector:QM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:QM.wrapper},backgroundImage:{selector:QM.wrapper},backgroundPositionX:{selector:QM.wrapper},backgroundPositionY:{selector:QM.wrapper},backgroundSize:{selector:QM.wrapper},backgroundRepeat:{selector:QM.wrapper},borderRadius:{selector:QM.wrapper},borderColor:{selector:QM.wrapper},borderStyle:{selector:QM.wrapper},borderWidth:{selector:QM.wrapper},boxShadow:{selector:QM.wrapper},headerIconOrder:{selector:QM.iconWrapper,property:"order"},headerCursor:{selector:QM.header,property:"cursor"},headerGap:{selector:QM.iconAndText,property:"gap"},textGrow:{selector:QM.text,property:"flex-grow"},textDirection:{selector:QM.text,property:"direction"},iconAnimationDuration:{selector:QM.icon,property:"transition-duration"},contentAnimationDuration:{selector:QM.content,property:"transition-duration"},chevronRotation:{selector:QM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),gt,Mt)(YM),BM=nt(zp),ZM=PM.cssVarList,[FM,GM,HM]=st({shadowColor:"#00000020"},UM),{shadowColor:JM}=GM,$M={...FM,[ZM.hostWidth]:"100%",[ZM.boxShadow]:"none",[ZM.backgroundColor]:BM.colors.surface.main,[ZM.backgroundImage]:"",[ZM.backgroundPositionX]:"center",[ZM.backgroundPositionY]:"center",[ZM.backgroundSize]:"cover",[ZM.backgroundRepeat]:"no-repeat",[ZM.borderRadius]:"0px",[ZM.hostDirection]:BM.direction,[ZM.flexDirection]:"column",[ZM.alignItems]:"flex-start",[ZM.justifyContent]:"flex-start",[ZM.headerGap]:BM.spacing.md,[ZM.chevronRotation]:"rotate(180deg)",[ZM.iconAnimationDuration]:"0.1s",[ZM.contentAnimationDuration]:"0.1s",[ZM.borderWidth]:"0px",[ZM.textGrow]:"0",verticalPadding:{sm:{[ZM.verticalPadding]:"5px"},md:{[ZM.verticalPadding]:"10px"},lg:{[ZM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[ZM.horizontalPadding]:"5px"},md:{[ZM.horizontalPadding]:"10px"},lg:{[ZM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[ZM.gap]:"10px"},md:{[ZM.gap]:"20px"},lg:{[ZM.gap]:"30px"}},shadow:{sm:{[ZM.boxShadow]:`${BM.shadow.wide.sm} ${JM}, ${BM.shadow.narrow.sm} ${JM}`},md:{[ZM.boxShadow]:`${BM.shadow.wide.md} ${JM}, ${BM.shadow.narrow.md} ${JM}`},lg:{[ZM.boxShadow]:`${BM.shadow.wide.lg} ${JM}, ${BM.shadow.narrow.lg} ${JM}`},xl:{[ZM.boxShadow]:`${BM.shadow.wide.xl} ${JM}, ${BM.shadow.narrow.xl} ${JM}`},"2xl":{[HM.shadowColor]:"#00000050",[ZM.boxShadow]:`${BM.shadow.wide["2xl"]} ${JM}`}},borderRadius:{sm:{[ZM.borderRadius]:BM.radius.sm},md:{[ZM.borderRadius]:BM.radius.md},lg:{[ZM.borderRadius]:BM.radius.lg},xl:{[ZM.borderRadius]:BM.radius.xl},"2xl":{[ZM.borderRadius]:BM.radius["2xl"]},"3xl":{[ZM.borderRadius]:BM.radius["3xl"]}},iconPosition:{left:{[ZM.headerIconOrder]:"0"},right:{[ZM.headerIconOrder]:"1"}},_fillTitle:{[ZM.textGrow]:"1"},_border:{[ZM.borderColor]:BM.colors.surface.light,[ZM.borderWidth]:BM.border.xs,[ZM.borderStyle]:"solid"},_collapsible:{[ZM.headerCursor]:"pointer"}},qM={...ZM,...HM};var _M=Object.freeze({__proto__:null,default:$M,vars:qM});const XM=A("recovery-codes"),KM="none",tm={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},em=["text","variant","color","size","icon","icon-dark"],im=["show-download",...Object.keys(tm).flatMap(t=>em.map(e=>`${t}-${e}`))];class om extends(It({componentName:XM,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...im]}#hi=KM;#gi=!1;#Mi=!1;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="codes-box">\n <div class="list"><div class="codes-list"></div></div>\n <descope-text class="icon-wrapper">\n <div class="icons">\n <vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>\n <vaadin-icon class="icon download-icon" icon="vaadin:download-alt" title="Download"></vaadin-icon>\n </div>\n </descope-text>\n </div>\n <div class="error-message"></div>\n <div class="buttons-row"></div>\n </div>\n ',this.list=this.shadowRoot.querySelector(".list"),this.copyIcon=this.shadowRoot.querySelector(".copy-icon"),this.downloadIcon=this.shadowRoot.querySelector(".download-icon"),this.iconWrapper=this.shadowRoot.querySelector(".icon-wrapper"),this.errorMessageEle=this.shadowRoot.querySelector(".error-message"),this.buttonsRow=this.shadowRoot.querySelector(".buttons-row"),E('\n :host {\n display: inline-block;\n position: relative;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n }\n .codes-box {\n display: flex;\n justify-content: space-between;\n box-sizing: border-box;\n /* border shows the error ring inside the box; style/width/color/radius come from theme */\n }\n .list {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n /* text-align maps to align-items here, so it positions the codes block\n (start/center/end) inside the available space, not each row */\n }\n .codes-list {\n display: flex;\n flex-direction: column;\n /* rows always start-aligned so the bullets line up in any font.\n width:fit-content hugs the codes so .list can position the whole\n block (keep it, it also defeats the stretch fallback) */\n align-items: flex-start;\n width: fit-content;\n }\n descope-text span {\n display: inline-flex;\n align-items: center;\n width: fit-content;\n }\n descope-text span::before {\n content: \'\\02022\';\n transform: translateY(-0.06em);\n }\n .icon-wrapper {\n align-self: flex-start;\n }\n .icons {\n display: flex;\n flex-direction: column;\n }\n .icon {\n cursor: pointer;\n }\n .icon.copied {\n cursor: initial;\n /* block re-clicks while the checkmark shows, so rapid clicks cannot repeat the action */\n pointer-events: none;\n }\n /* readonly is a host attribute, so disable pointer events from one place */\n :host([readonly="true"]) .icon,\n :host([readonly="true"]) .buttons-row {\n pointer-events: none;\n }\n .download-icon {\n display: none;\n }\n :host([show-download="true"]) .download-icon {\n display: inline-flex;\n }\n .error-message {\n display: none;\n /* width:0 + min-width:100% lets the message wrap to the component width without\n its text expanding the (shrink-to-fit) component; full-width still fills the parent */\n width: 0;\n min-width: 100%;\n box-sizing: border-box;\n line-height: 1.2;\n overflow-wrap: break-word;\n }\n :host([invalid]) .error-message {\n display: block;\n }\n .buttons-row {\n display: none;\n }\n :host([display-variant="buttons"]) .icon-wrapper {\n display: none;\n }\n :host([display-variant="buttons"]) .buttons-row {\n display: flex;\n flex-wrap: wrap;\n }\n /* grow to fill equally; don\'t shrink below content, so they wrap to a new line\n when they don\'t fit (like a container with auto-fit items) */\n .buttons-row > descope-button {\n flex: 1 0 auto;\n }\n ',this)}get variant(){return this.getAttribute("variant")}get mode(){return this.getAttribute("mode")}get value(){return this.#hi}#mi(t){return this.hasAttribute(t)&&"false"!==this.getAttribute(t)}get isRequired(){return this.#mi("required")}get isReadOnly(){return this.#mi("readonly")}get errorMessage(){return this.getAttribute("data-errormessage-value-missing")||"Copy or download your recovery codes to continue."}get codesText(){return String((this.data||[]).map(t=>t.value).join("\n"))}init(){super.init(),this.copyIcon.addEventListener("click",this.onCopy.bind(this)),this.downloadIcon.addEventListener("click",this.onDownload.bind(this)),f(this,this.iconWrapper,{includeAttrs:["variant","mode"]}),this.renderButtons(),this.#Mi=!0}get isDownloadEnabled(){return"true"===this.getAttribute("show-download")}renderButtons(){if(!this.buttonsRow)return;const t=[this.buildButton("copy")];this.isDownloadEnabled&&t.push(this.buildButton("download")),this.buttonsRow.replaceChildren(...t)}buildButton(t){const{defaultText:e}=tm[t],i=(e,i)=>this.getAttribute(`${t}-${e}`)||i,o=document.createElement("descope-button");o.setAttribute("data-action",t),o.setAttribute("variant",i("variant","outline")),o.setAttribute("mode",i("color","primary")),o.setAttribute("size",i("size","md"));const n=this.getAttribute(`${t}-icon`);if(n){const e=document.createElement("descope-icon");e.setAttribute("src",n);const i=this.getAttribute(`${t}-icon-dark`);i&&e.setAttribute("src-dark",i),o.appendChild(e)}return o.appendChild(document.createTextNode(i("text",e))),o.addEventListener("click",()=>"copy"===t?this.onCopy():this.onDownload()),o}onCopy(){this.isReadOnly||(navigator.clipboard.writeText(this.codesText),this.showActionFeedback(this.copyIcon,"Copied"),this.recordAction("copied"))}onDownload(){if(this.isReadOnly)return;const t=new Blob([this.codesText],{type:"text/plain"}),e=URL.createObjectURL(t),i=document.createElement("a");i.href=e,i.download="recovery-codes.txt",i.click(),URL.revokeObjectURL(e),this.showActionFeedback(this.downloadIcon,"Downloaded"),this.recordAction("downloaded")}recordAction(t){this.#hi=t,this.dispatchEvent(new Event("change",{bubbles:!0})),this.checkValidity()&&(this.#gi=!1),this.syncValidityUI()}showActionFeedback(t,e){t.feedbackTimer?clearTimeout(t.feedbackTimer):(t.originalIcon=t.getAttribute("icon"),t.originalTitle=t.getAttribute("title")),t.setAttribute("icon","vaadin:check-circle-o"),t.setAttribute("title",e),t.classList.add("copied"),t.feedbackTimer=setTimeout(()=>{t.setAttribute("icon",t.originalIcon),t.setAttribute("title",t.originalTitle),t.classList.remove("copied"),t.feedbackTimer=null},5e3)}checkValidity(){return this.isReadOnly||!this.isRequired||this.value!==KM}reportValidity(){const t=this.checkValidity();return this.#gi=!t,this.syncValidityUI(),t}syncValidityUI(){this.toggleAttribute("invalid",this.#gi),this.errorMessageEle&&(this.errorMessageEle.textContent=this.#gi?this.errorMessage:"")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("required"!==t||this.isRequired||(this.#gi=!1,this.syncValidityUI()),this.#Mi&&im.includes(t)&&this.renderButtons())}}const nm=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>fi.componentName,property:fi.cssVarList.hostDirection}],textAlign:{selector:()=>".list",property:"align-items"},iconColor:{selector:()=>"vaadin-icon",property:"color"},iconSize:{selector:()=>"vaadin-icon",property:"font-size"},iconGap:{selector:()=>".codes-box",property:"gap"},iconStackGap:{selector:()=>".icons",property:"gap"},buttonsGap:{selector:()=>".buttons-row",property:"gap"},sectionsGap:{selector:()=>".wrapper",property:"gap"},bulletGap:{selector:()=>"descope-text span",property:"gap"},verticalPadding:[{selector:()=>".codes-box",property:"padding-top"},{selector:()=>".codes-box",property:"padding-bottom"},{selector:()=>".buttons-row",property:"padding-bottom"}],horizontalPadding:[{selector:()=>".codes-box",property:"padding-left"},{selector:()=>".codes-box",property:"padding-right"},{selector:()=>".buttons-row",property:"padding-left"},{selector:()=>".buttons-row",property:"padding-right"}],errorBorderColor:{selector:()=>".codes-box",property:"border-color"},errorMessageColor:{selector:()=>".error-message",property:"color"},errorMessageFontSize:{selector:()=>".error-message",property:"font-size"},errorMessageFontWeight:{selector:()=>".error-message",property:"font-weight"},errorMessageFontFamily:{selector:()=>".error-message",property:"font-family"},boxBorderRadius:{selector:()=>".codes-box",property:"border-radius"},errorBorderWidth:{selector:()=>".codes-box",property:"border-width"},boxBorderStyle:{selector:()=>".codes-box",property:"border-style"}}}),ht({componentNameOverride:A("input-wrapper")}),Rt({itemRenderer:({value:t},e,i)=>`\n <descope-text variant="${i.variant}" mode="${i.mode}">\n <span>${t}</span>\n </descope-text>\n `,rerenderAttrsList:["variant","mode"],targetSelector:".codes-list"}),gt,Mt)(om),rm=nt(zp),sm=nm.cssVarList,am=fi.cssVarList,lm={[sm.hostMinWidth]:"190px",[sm.hostDirection]:rm.direction,[sm.iconColor]:rt(am.textColor),[sm.iconSize]:rt(am.fontSize),[sm.iconGap]:"8px",[sm.iconStackGap]:"16px",[sm.buttonsGap]:"8px",[sm.sectionsGap]:"8px",[sm.bulletGap]:"0.35em",[sm.verticalPadding]:"0",[sm.horizontalPadding]:"0",[sm.errorBorderColor]:"transparent",[sm.errorBorderWidth]:Xp.borderWidth,[sm.boxBorderRadius]:Xp.borderRadius,[sm.boxBorderStyle]:"solid",[sm.errorMessageColor]:Xp.errorMessageTextColor,[sm.errorMessageFontSize]:Xp.errorMessageFontSize,[sm.errorMessageFontWeight]:Xp.errorMessageFontWeight,[sm.errorMessageFontFamily]:Xp.fontFamily,textAlign:{right:{[sm.textAlign]:"flex-end"},left:{[sm.textAlign]:"flex-start"},center:{[sm.textAlign]:"center"}},displayVariant:{buttons:{[sm.hostMinWidth]:"100px"}},_fullWidth:{[sm.hostWidth]:"100%"},_invalid:{[sm.errorBorderColor]:Xp.errorMessageTextColor}};var dm=Object.freeze({__proto__:null,default:lm,vars:sm});const cm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMj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IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},um=A("active-sessions"),pm=sg.componentName;let hm;const gm={selector:()=>":host"},Mm={selector:()=>pm},mm=T(ht({mappings:{hostWidth:[{...gm,property:"width"},{...Mm,property:sg.cssVarList.hostWidth}],hostDirection:[{...gm,property:"direction"},{...Mm,property:sg.cssVarList.hostDirection}]}}),gt,Ot({name:"overlay",forward:!1,selector:async t=>{const e=await(async t=>{if(!t)return null;const e=await w(()=>t)();return e instanceof ShadowRoot?e:null})(t?.querySelector("vaadin-multi-select-combo-box"));return e?.querySelector("vaadin-multi-select-combo-box-internal")},style:"\n .session {\n display: flex;\n flex-direction: column;\n }\n /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the\n title and widen the space to the location line. */\n .session .device descope-text,\n .session .device descope-text::part(text-wrapper) {\n display: block;\n }\n /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,\n so a container outside would only ever see the slot as its single item. */\n .session .device-row {\n display: flex;\n align-items: center;\n }\n .session .device-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n }\n",mappings:{rowGap:{selector:".session",property:"gap"},deviceRowGap:{selector:".device-row",property:"gap"}}}),kt({proxyProps:["value"],inputEvent:"change",proxyParentValidation:!0}),Mt,t=>class extends t{get lastLoginLabel(){return this.getAttribute("last-login-label")??"Last login:"}get unknownDeviceLabel(){return this.getAttribute("unknown-device-label")??"Unknown device"}init(){var t;super.init?.(),this.inputElement=this.baseElement,this.inputElement.renderItem=(t=this,({value:e,deviceName:i,deviceType:o,city:n,country:r,loginTime:s}={})=>{const a=i||t.unknownDeviceLabel,l=(hm||(hm=document.createElement("template"),hm.innerHTML='\n <div class="session">\n <div class="device">\n <descope-text variant="body1" mode="primary" st-font-size="1em">\n <div class="device-row">\n <descope-icon class="device-icon" aria-hidden="true"></descope-icon>\n <span class="device-name"></span>\n </div>\n </descope-text>\n </div>\n <div class="location">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n <div class="last-login">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n </div>\n ',hm)).content.cloneNode(!0).firstElementChild;l.setAttribute("data-id",e??""),l.setAttribute("data-name",a),l.querySelector(".device-name").textContent=a;const{iconSrc:d,iconSrcDark:c}=(t=>{const e=cm[t]||cm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),u=l.querySelector(".device-icon");u.setAttribute("src",d),u.setAttribute("src-dark",c);const p=(t,e)=>{const i=l.querySelector(t);e?i.firstElementChild.textContent=e:i.remove()};p(".location",(({country:t,city:e})=>[e,t].filter(Boolean).join(", "))({country:r,city:n}));const h=(t=>{const e=parseInt(t,10);if(Number.isNaN(e)||e<=0)return"";const i=new Date(1e3*e),o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};try{return i.toLocaleString(void 0,{...o,timeZoneName:"shortOffset"})}catch{return i.toLocaleString(void 0,o)}})(s);return p(".last-login",h&&t.lastLoginLabel?`${t.lastLoginLabel} ${h}`:h),l.outerHTML}),this.inputElement.setAttribute("allow-custom-value","false"),this.inputElement.setAttribute("item-label-path","data-name"),this.inputElement.setAttribute("item-value-path","data-id")}})(At({slots:[],wrappedEleName:pm,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${pm} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:um})),ym=mm.cssVarList,bm={[ym.hostWidth]:Xp.width,[ym.hostDirection]:Xp.direction,[ym.overlay.rowGap]:"0.125em",[ym.overlay.deviceRowGap]:"0.5em",_fullWidth:{[ym.hostWidth]:"100%"}};var Nm=Object.freeze({__proto__:null,default:bm,vars:ym});const Im=A("outbound-apps"),xm=({name:t,description:e,logo:i,appId:o,isConnected:n},r,s)=>{const a=n?"disconnect":"connect";return`\n <descope-list-item>\n <descope-avatar\n ${i?`img="${i}"`:""}\n ${t?`display-name="${t}" abbr=${V(t)}`:""}\n size=${s.size}\n ${i?'st-avatar-background-color="none"':""}\n class="app-logo"\n ></descope-avatar>\n\n <div class="content">\n <descope-text\n class="app-title"\n variant="subtitle1"\n mode="primary"\n >${t}</descope-text>\n ${e?`\n <descope-text\n class="app-description"\n variant="body2"\n mode="primary"\n >${e}</descope-text>\n `:""}\n </div>\n <div class="controls">\n <descope-button variant="link" mode="primary" size=${s.size} data-action="${a}" data-outbound-app-id="${o}" data-id="${a}">\n ${n?s.disconnectButtonLabel:s.connectButtonLabel}\n </descope-button>\n </div>\n </descope-list-item>\n`},jm=It({componentName:Im,baseSelector:"descope-list"}),{host:Tm}={host:{selector:()=>":host"}},Dm=T(ht({mappings:{hostWidth:{...Tm,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...Tm,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:fi.componentName,property:fi.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:fi.componentName,property:fi.cssVarList.textAlign},itemCursor:{selector:hu.componentName,property:hu.cssVarList.cursor},itemOutline:{selector:hu.componentName,property:hu.cssVarList.outline},itemBorderColor:{selector:hu.componentName,property:hu.cssVarList.borderColor},itemBackgroundColor:{selector:hu.componentName,property:hu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>mu.componentName,property:mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>mu.componentName,property:mu.cssVarList.boxShadow},listPadding:[{selector:()=>mu.componentName,property:mu.cssVarList.verticalPadding},{selector:()=>mu.componentName,property:mu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>mu.componentName,property:mu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>mu.componentName,property:mu.cssVarList.emptyStateVerticalPadding}}}),gt,Rt({itemRenderer:xm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),Mt)(class extends jm{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),E("\n :host {\n width: 100%;\n }\n .controls {\n display: flex;\n min-width: 8em;\n justify-content: end;\n }\n .content {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n .app-title,\n .app-description {\n display: flex;\n direction: inherit;\n }\n descope-list {\n display: block;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=xm,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"}}),vm=Dm.cssVarList,zm={[vm.iconColor]:zp.colors.primary.main,[vm.errorIconColor]:zp.colors.error.main,[vm.appLogoGap]:zp.spacing.md,[vm.contentGap]:zp.spacing.xs,[vm.itemCursor]:"default",[vm.itemOutline]:"none",[vm.itemBorderColor]:"transparent",[vm.listPadding]:"0",[vm.listBorderWidth]:"0",[vm.listBoxShadow]:"none",[vm.emptyStateMinHeight]:"0",[vm.emptyStateVerticalPadding]:zp.spacing.lg,size:{xs:{[vm.fontSize]:"0.6em"},sm:{[vm.fontSize]:"0.8em"},md:{[vm.fontSize]:"1em"},lg:{[vm.fontSize]:"1.5em"}}};var Cm=Object.freeze({__proto__:null,default:zm,vars:vm});const Sm=A("outbound-app-button");class wm extends(It({componentName:Sm,baseSelector:":host > descope-button"})){static get observedAttributes(){return["label","icon-src","icon-fill-current-color"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-button>\n <descope-icon class="icon"></descope-icon>\n <span class="label"></span>\n </descope-button>\n ',E("\n :host {\n display: inline-block;\n }\n .hidden {\n display: none;\n }\n ",this),this.button=this.shadowRoot.querySelector("descope-button"),this.icon=this.shadowRoot.querySelector(".icon"),this.label=this.shadowRoot.querySelector(".label")}init(){super.init?.(),f(this,this.button,{excludeAttrs:["style","class","label","icon-src","icon-fill-current-color"]})}updateLabel(t=""){this.label.textContent=t,this.label.classList.toggle("hidden",!t)}updateIcon(t=""){this.icon.setAttribute("src",t),this.icon.classList.toggle("hidden",!t)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.updateLabel(i):"icon-src"===t&&this.updateIcon(i))}}const Am=T(ht({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Wo.cssVarList.iconColor}}}),gt,Mt)(wm),Lm=Am.cssVarList,fm={[Lm.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Lm.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Lm.hostWidth]:"100%"}},Em=Lm;var km=Object.freeze({__proto__:null,default:fm,vars:Em});const Om=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Vm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAy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jU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},Wm=A("trusted-devices"),Rm=({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=Vm[t]||Vm.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},Um=It({componentName:Wm,baseSelector:mu.componentName}),{host:Ym}={host:{selector:()=>":host"}},Qm=T(ht({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"}],listItemsGap:{property:mu.cssVarList.gap},listBackgroundColor:{selector:()=>mu.componentName,property:mu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>mu.componentName,property:mu.cssVarList.borderRadius},listBorderWidth:{selector:()=>mu.componentName,property:mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>mu.componentName,property:mu.cssVarList.boxShadow},listPadding:[{selector:()=>mu.componentName,property:mu.cssVarList.verticalPadding},{selector:()=>mu.componentName,property:mu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>mu.componentName,property:mu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>mu.componentName,property:mu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:hu.componentName,property:hu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:hu.componentName,property:hu.cssVarList.horizontalPadding},itemCursor:{selector:hu.componentName,property:hu.cssVarList.cursor},itemOutline:{selector:hu.componentName,property:hu.cssVarList.outline},itemBorderColor:{selector:hu.componentName,property:hu.cssVarList.borderColor},itemBorderRadius:{selector:hu.componentName,property:hu.cssVarList.borderRadius},itemBackgroundColor:{selector:hu.componentName,property:hu.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"}}}),gt,Rt({itemRenderer:Rm,sortFn:(t,e)=>Om(e.lastLoginDate)-Om(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),Mt)(class extends Um{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),E("\n :host {\n display: inline-block;\n }\n\n .descope-list-item {\n min-width: 0;\n }\n\n .current-device {\n order: -1;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .main {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n }\n\n .device {\n display: flex;\n min-width: 0;\n }\n\n .device-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .login-date {\n min-width: fit-content;\n }\n\n descope-badge {\n min-width: 0;\n }\n\n descope-text {\n display: flex;\n align-items: center; \n min-width: 0;\n }\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n descope-link {\n overflow: hidden;\n }\n descope-link.remove-device::part(wrapper) {\n display: flex;\n width: 100%;\n }\n descope-link.remove-device {\n width: 100%;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Rm,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")}}),Pm=Qm.cssVarList,Bm={[Pm.hostWidth]:"auto",[Pm.hostWidth]:"300px",[Pm.hostMinWidth]:"300px",[Pm.listBackgroundColor]:"transparent",[Pm.listBorderRadius]:"0",[Pm.listBorderWidth]:"0",[Pm.listPadding]:"0",[Pm.listBoxShadow]:"none",[Pm.listItemsGap]:zp.spacing.lg,[Pm.emptyStateMinHeight]:"0",[Pm.emptyStateVerticalPadding]:zp.spacing.lg,[Pm.itemBorderColor]:zp.colors.surface.light,[Pm.itemVerticalPadding]:zp.spacing.lg,[Pm.itemHorizontalPadding]:zp.spacing.lg,[Pm.itemBorderRadius]:zp.radius.xs,[Pm.itemOutline]:"transparent",[Pm.itemBackgroundColor]:"transparent",[Pm.itemCursor]:"default",[Pm.itemContentGap]:zp.spacing.sm,[Pm.badgeBorderColor]:zp.colors.surface.light,[Pm.badgeTextColor]:zp.colors.surface.dark,[Pm.badgeBorderRadius]:zp.radius.xs,[Pm.badgeBackgroundColor]:zp.colors.surface.main,[Pm.devicePanelGap]:zp.spacing.md,[Pm.deviceIconGap]:zp.spacing.md,[Pm.deviceIconSize]:"24px",[Pm.lastLoginLabelGap]:zp.spacing.xs,_fullWidth:{[Pm.hostWidth]:"100%"}};var Zm=Object.freeze({__proto__:null,default:Bm,vars:Pm});const Fm=A("multi-sso"),Gm=({id:t,name:e,isDefault:i,link:o,authType:n,authOnly:r},s,a)=>{const l=!i&&a?.allowDelete?`<span\n class="delete-btn delete-icon"\n data-action="delete"\n role="button"\n tabindex="0"\n title="${a.deleteTooltipLabel}"\n ></span>`:"",d=o&&a?.allowConfigure?`<a\n class="external-link external-link-icon"\n target="_blank"\n rel="noopener noreferrer"\n title="${a.configureTooltipLabel}"\n ></a>`:"",{label:c,configured:u}=(t=>t&&"none"!==t?{label:t.toUpperCase(),configured:!0}:{label:"Not Configured",configured:!1})(n),p=r?'<descope-badge class="auth-only-badge" size="xs"><span class="auth-only-text"></span></descope-badge>':"",h=u?`<div class="auth-type-row">\n <descope-badge class="auth-type-badge" size="xs"></descope-badge>\n ${p}\n </div>`:`<div class="auth-type-row">\n <descope-text\n not-configured\n variant="body2"\n mode="secondary"\n >${a?.notConfiguredLabel}</descope-text>\n ${p}\n </div>`,g=document.createElement("template");g.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="top-row">\n <descope-text\n class="config-name"\n variant="body1"\n mode="primary"\n ></descope-text>\n <span class="action">\n ${l}\n ${d}\n </span>\n </div>\n ${h}\n </div>\n </descope-list-item>\n `,g.content.querySelector(".config-name").textContent=e;const M=g.content.querySelector(".delete-btn");if(M){M.dataset.id=t,M.dataset.name=e,M.setAttribute("aria-label",a.deleteTooltipLabel);const i=W(a,"delete-icon");i&&M.append(i)}const m=g.content.querySelector(".external-link");if(m){m.setAttribute("aria-label",a.configureTooltipLabel),o&&m.setAttribute("href",o);const t=W(a,"external-link-icon");t&&m.append(t)}const y=g.content.querySelector(".auth-type-badge");y&&(y.textContent=c);const b=g.content.querySelector(".auth-only-text");return b&&(b.textContent=a?.authOnlyLabel),g},Hm=It({componentName:Fm,baseSelector:"span.wrapper"}),{host:Jm}={host:{selector:()=>":host"}},$m=T(ht({mappings:{hostWidth:{...Jm,property:"width"},hostMinWidth:{...Jm,property:"min-width"},hostDirection:[{...Jm,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:fi.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Wo.componentName,property:Wo.cssVarList.hostMaxWidth},listItemsGap:{property:mu.cssVarList.gap},listBackgroundColor:{selector:()=>mu.componentName,property:mu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>mu.componentName,property:mu.cssVarList.borderRadius},listBorderWidth:{selector:()=>mu.componentName,property:mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>mu.componentName,property:mu.cssVarList.boxShadow},listPadding:[{selector:()=>mu.componentName,property:mu.cssVarList.verticalPadding},{selector:()=>mu.componentName,property:mu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:hu.componentName,property:hu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:hu.componentName,property:hu.cssVarList.horizontalPadding},itemCursor:{selector:hu.componentName,property:hu.cssVarList.cursor},itemOutline:{selector:hu.componentName,property:hu.cssVarList.outline},itemBorderColor:{selector:hu.componentName,property:hu.cssVarList.borderColor},itemBorderRadius:{selector:hu.componentName,property:hu.cssVarList.borderRadius},itemBackgroundColor:{selector:hu.componentName,property:hu.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}]}}),gt,Rt({targetSelector:"descope-list",itemRenderer:Gm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),Mt)(class extends Hm{static get observedAttributes(){return["label","create-button-label","not-configured-label","delete-tooltip-label","configure-tooltip-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <span class="wrapper">\n <div class="header">\n <slot name="title-icon"></slot>\n <descope-text class="title" variant="body1" mode="primary"></descope-text>\n <descope-button\n class="create-button"\n size="sm"\n variant="link"\n mode="primary"\n data-action="create"\n >\n <slot name="create-button-icon" slot="prefix"></slot>\n <span class="create-button-label"></span>\n </descope-button>\n </div>\n <descope-list></descope-list>\n <slot name="delete-icon" class="hidden"></slot>\n <slot name="external-link-icon" class="hidden"></slot>\n </span>\n ',this.listEl=this.shadowRoot.querySelector("descope-list"),this.deleteIconSlot=this.shadowRoot.querySelector('slot[name="delete-icon"]'),this.externalLinkIconSlot=this.shadowRoot.querySelector('slot[name="external-link-icon"]'),E('\n :host {\n display: inline-block;\n }\n\n :host(:not([allow-create="true"])) .create-button {\n display: none;\n }\n\n .create-button {\n min-width: 0;\n flex-shrink:1;\n }\n\n .header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n slot[name="title-icon"] {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .title {\n flex: 1;\n min-width: 0;\n width:0;\n flex-shrink: 0;\n\n }\n\n .title::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n }\n\n .top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n }\n\n .config-name {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .config-name::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .auth-type-row {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n /* The auth type is short and fixed, so it keeps its size and the consumer-supplied label is\n the one that gives way. */\n .auth-type-badge {\n flex-shrink: 0;\n }\n\n /* The label is consumer-supplied and localized, so it can be far longer than the row. It\n shrinks to whatever the row leaves it and ellipsises only then, rather than being held to a\n fixed width that would truncate it while space is still going spare. */\n .auth-only-badge {\n min-width: 0;\n flex-shrink: 1;\n }\n\n .auth-only-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .action {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .hidden {\n display: none;\n }\n\n .delete-btn {\n cursor: pointer;\n display: flex;\n }\n\n .delete-icon > *,\n .external-link-icon > * {\n width: 100%;\n height: 100%;\n }\n\n .external-link {\n cursor: pointer;\n color: inherit;\n display: flex;\n }\n\n descope-text {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n ',this)}get deleteTooltipLabel(){return this.getAttribute("delete-tooltip-label")??""}get configureTooltipLabel(){return this.getAttribute("configure-tooltip-label")??""}get authOnlyLabel(){return this.getAttribute("auth-only-label")||"Authentication only"}init(){super.init?.(),this.shadowRoot.querySelector(".title").textContent=this.label,this.shadowRoot.querySelector(".create-button-label").textContent=this.createButtonLabel,this.listEl.itemRenderer=(t,e)=>Gm(t,0,this),this.shadowRoot.querySelector('[data-action="create"]').addEventListener("click",this.onCreateClick.bind(this)),this.listEl.addEventListener("click",this.onItemClick.bind(this)),f(this.listEl,this,{includeAttrs:["empty"]});const t=()=>{this.data&&(this.data=[...this.data])};this.deleteIconSlot.addEventListener("slotchange",t),this.externalLinkIconSlot.addEventListener("slotchange",t)}onCreateClick(){this.dispatchEvent(new CustomEvent("create-clicked",{bubbles:!0,detail:{}}))}onItemClick(t){const e=t.target.closest('[data-action="delete"]');if(!e)return;const i=e.getAttribute("data-id"),o=e.getAttribute("data-name");i&&this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,detail:{id:i,name:o}}))}get allowCreate(){return"true"===this.getAttribute("allow-create")}get allowDelete(){return"true"===this.getAttribute("allow-delete")}get allowConfigure(){return"true"===this.getAttribute("allow-configure")}get label(){return this.getAttribute("label")}get createButtonLabel(){return this.getAttribute("create-button-label")}get notConfiguredLabel(){return this.getAttribute("not-configured-label")||"Not Configured"}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("label"===t){const t=this.shadowRoot?.querySelector(".title");t&&(t.textContent=this.label)}else if("create-button-label"===t){const t=this.shadowRoot?.querySelector(".create-button-label");t&&(t.textContent=this.createButtonLabel)}else"empty"===t&&this.listEl.classList.toggle("hidden","true"===i)}}),qm=$m.cssVarList,_m=nt(zp),Xm={[qm.hostWidth]:"300px",[qm.headerGap]:_m.spacing.md,[qm.headerListGap]:_m.spacing.md,[qm.itemContentGap]:_m.spacing.md,[qm.actionGap]:_m.spacing.sm,[qm.authTypeRowGap]:_m.spacing.sm,[qm.unconfiguredAuthTypeTextColor]:_m.colors.surface.dark,[qm.unconfiguredAuthTypeTextFontStyle]:"italic",[qm.buttonMaxWidth]:"50%",[qm.listBackgroundColor]:"transparent",[qm.listBorderRadius]:"0",[qm.listBorderWidth]:"0",[qm.listPadding]:"0",[qm.listBoxShadow]:"none",[qm.listItemsGap]:_m.spacing.lg,[qm.itemBorderColor]:_m.colors.surface.light,[qm.itemVerticalPadding]:_m.spacing.lg,[qm.itemHorizontalPadding]:_m.spacing.lg,[qm.itemBorderRadius]:_m.radius.xs,[qm.itemOutline]:"transparent",[qm.itemBackgroundColor]:"transparent",[qm.itemCursor]:"default",[qm.badgeBorderColor]:_m.colors.surface.light,[qm.badgeTextColor]:_m.colors.surface.dark,[qm.badgeBorderRadius]:_m.radius.xs,[qm.badgeBackgroundColor]:_m.colors.surface.main,[qm.titleIconSize]:"24px",[qm.createButtonIconSize]:"12px",[qm.actionIconSize]:"20px",[qm.actionIconColor]:_m.colors.surface.dark,_fullWidth:{[qm.hostWidth]:"100%"}};var Km=Object.freeze({__proto__:null,default:Xm,vars:qm});const ty=A("tooltip"),ey=["text","position","hide-delay","hover-delay","opened"];class iy extends(It({componentName:ty,baseSelector:"vaadin-tooltip"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <vaadin-tooltip slot="anchored"></vaadin-tooltip>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.tooltip=this.shadowRoot.querySelector("vaadin-tooltip"),this.anchored=this.shadowRoot.querySelector("descope-anchored")}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}static get observedAttributes(){return ey.concat(super.observedAttributes||[])}get isOpened(){return"true"===this.getAttribute("opened")}get overlay(){return this.tooltip?._overlayElement}get overlayContentNode(){return this.overlay?.shadowRoot.querySelector('[part="content"]')}get tooltipText(){return this.getAttribute("text")?.trim()||""}get isStaticDisplay(){return"true"===this.getAttribute("static-display")}get srLabel(){return this.tooltip?.querySelector('[slot="sr-label"]')}#Ni(){this.isStaticDisplay?(this.#Ii(),this.setAttribute("inert","true")):this.removeAttribute("inert")}#Ii(){this.overlay&&(this.overlay.style.display="block",this.overlay.style.position="static")}init(){super.init?.(),E('\n :host {\n display: inline-block;\n }\n vaadin-tooltip {\n display: block;\n position: absolute;\n width: 0;\n height: 0;\n overflow: hidden;\n }\n /* Stack anchor above the anchored element so the tooltip flows below it inline. */\n :host([static-display="true"]) descope-anchored::part(root) {\n flex-direction: column;\n }\n :host([static-display="true"]) descope-anchored::part(anchored) {\n position: static;\n inset: unset;\n }\n :host([static-display="true"]) vaadin-tooltip {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n }\n :host([static-display="true"]) vaadin-tooltip [slot="sr-label"] {\n display: none;\n }\n',this),this.tooltip.ariaTarget=this.anchored,this.defaultSlot.addEventListener("slotchange",()=>this.#xi()),this.#xi(),setTimeout(()=>this.#ji())}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=v(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#xi(){const t=this.defaultSlot?.assignedElements()?.[0];t&&(this.tooltip.target=t)}#ji(){this.#Di(),this.#vi(),f(this,this.tooltip,{includeAttrs:["position","opened"]}),this.#zi()}#Ci(){this.overlayContentNode.innerHTML=""}#Si(){const t=document.createElement("descope-enriched-text");return t.setAttribute("link-target-blank","true"),t.textContent=this.tooltipText,t}#Di(){this.overlayContentNode&&setTimeout(()=>{this.#Ci(),this.textComponent=this.#Si(),this.overlayContentNode.appendChild(this.textComponent),this.srLabel&&!this.tooltipText&&this.srLabel.setAttribute("aria-hidden","true"),f(this,this.textComponent,{includeAttrs:["readonly"]})})}#vi(){if(!this.overlay)return;const t=this.overlay._attachOverlay?.bind(this.overlay);this.overlay._detachOverlay=()=>{},this.overlay._attachOverlay=()=>{t?.(),setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.overlay._updatePosition?.()})},this.isOpened&&setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.#Ni(),this.overlay._updatePosition?.()})}#zi(){this.tooltip?.toggleAttribute("manual",this.isOpened)}#wi(t){if(!this.textComponent)return;const e=(t??"").trim();this.textComponent.textContent=e,this.srLabel&&(e?this.srLabel.removeAttribute("aria-hidden"):this.srLabel.setAttribute("aria-hidden","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("text"===t&&this.#wi(i),"opened"===t&&this.#zi())}}const{overlay:oy,content:ny}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},ry=T(Mt,Ot({selector:"",mappings:{fontFamily:{...ny,property:Ft.cssVarList.fontFamilyOverride},fontSize:{...ny,property:Ft.cssVarList.fontSizeOverride},fontWeight:{...ny,property:Ft.cssVarList.fontWeightOverride},textColor:{...ny,property:Ft.cssVarList.textColorOverride},hostDirection:{...ny,property:Ft.cssVarList.hostDirectionOverride},backgroundColor:[{...oy},{...ny}],borderColor:{...oy},borderStyle:{...oy},borderWidth:{...oy},borderRadius:{...oy},boxShadow:{...oy},horizontalPadding:[{...ny,property:"padding-left"},{...ny,property:"padding-right"}],verticalPadding:[{...ny,property:"padding-top"},{...ny,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(iy),sy=nt(zp),ay=ry.cssVarList,[ly,dy,cy]=st({shadowColor:"#00000020"},ty),{shadowColor:uy}=dy,py=`${sy.shadow.wide.sm} ${uy}, ${sy.shadow.narrow.sm} ${uy}`,hy={...ly,[ay.fontFamily]:sy.fonts.font1.family,[ay.fontSize]:zp.typography.body2.size,[ay.fontWeight]:zp.typography.body2.weight,[ay.textColor]:sy.colors.surface.contrast,[ay.hostDirection]:sy.direction,[ay.backgroundColor]:sy.colors.surface.main,[ay.borderColor]:sy.colors.surface.light,[ay.borderStyle]:"solid",[ay.borderWidth]:sy.border.xs,[ay.borderRadius]:sy.radius.xs,[ay.horizontalPadding]:sy.spacing.md,[ay.verticalPadding]:sy.spacing.sm,[ay.boxShadow]:py,shadow:{sm:{[ay.boxShadow]:py},md:{[ay.boxShadow]:`${sy.shadow.wide.md} ${uy}, ${sy.shadow.narrow.md} ${uy}`},lg:{[ay.boxShadow]:`${sy.shadow.wide.lg} ${uy}, ${sy.shadow.narrow.lg} ${uy}`},xl:{[ay.boxShadow]:`${sy.shadow.wide.xl} ${uy}, ${sy.shadow.narrow.xl} ${uy}`},"2xl":{[cy.shadowColor]:"#00000050",[ay.boxShadow]:`${sy.shadow.wide["2xl"]} ${uy}`}}};var gy=Object.freeze({__proto__:null,default:hy,vars:ay});const My=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[dataService] ${e.status} ${t}`);const i=await e.json();return i.data??i},my=async t=>My(`${t}/countries.json`),yy=async(t,e)=>{try{return(await My(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},by=async(t,e,i)=>My(`${i}/countries/${t}/subdivisions/${e}/cities.json`),Ny=async t=>{const e=new URL("../labels.json",`${t}/`).href;return My(e)},Iy=async(t,e)=>My(`${e}/countries/${t}/cities.json`),xy=A("country-subdivision-city-field-internal"),jy=Symbol("selecting"),Ty=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,Dy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",vy=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=Ty({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=Dy(e),l=Dy(s.join(" ")),d=Dy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},zy=({name:t,state_code:e,translations:i,lang:o})=>{const n=Ty({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=Dy(e),a=Dy(r.join(" ")),l=Dy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},Cy=({name:t,translations:e,lang:i})=>{const o=Ty({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=Dy(t),s=Dy(n.join(" ")),a=Dy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},Sy=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,wy=Ct({componentName:xy,baseSelector:""}),Ay=["disabled","readonly","size","bordered"],Ly=["hide-country","hide-subdivision","hide-city"],fy=[...Ay,"label-type","country-label","subdivision-label","city-label",...Ly,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],Ey=T()(class extends wy{static get observedAttributes(){return[].concat(wy.observedAttributes||[],fy)}#Ai;#Li;#fi;#Ei=!1;#ki=!1;#Oi=new Map;#Vi=null;#Wi=null;#Ri=null;#Ui=null;#Yi=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${Sy("country-combo")}\n ${Sy("subdivision-combo")}\n ${Sy("city-combo")}\n </div>\n `,this.#Ai=this.querySelector("#country-combo"),this.#Li=this.querySelector("#subdivision-combo"),this.#fi=this.querySelector("#city-combo"),this.#Qi(),this.#Pi()}get#Bi(){return"true"===this.getAttribute("hide-country")}get#Zi(){return"true"===this.getAttribute("hide-subdivision")}get#Fi(){return"true"===this.getAttribute("hide-city")}get#Gi(){return!this.#Hi}get#Hi(){return this.getAttribute("data-source-base-url")||void 0}get#Ji(){const t=this.getAttribute("lang")||void 0;if(t)try{const[e]=Intl.getCanonicalLocales(t);return e}catch{return}}get#$i(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#qi(){return this.getAttribute("subdivision-label")||void 0}get#_i(){return this.getAttribute("subdivision-placeholder")||void 0}get#Xi(){return(this.getAttribute("allowed-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#Ki(){return(this.getAttribute("pinned-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#to(){return[this.#Ai,this.#Li,this.#fi]}get value(){return{country:this.#Bi?this.#$i:this.#Ai.value||void 0,subdivision:!this.#Zi&&this.#Ei&&this.#Li.value||void 0,city:!this.#Fi&&this.#ki&&this.#fi.value||void 0}}set value(t){if(!t)return;let e;try{e="string"==typeof t?JSON.parse(t):t}catch{return}this.#Yi={...e},this.#Hi&&this.#eo()}init(){this.addEventListener("focus",t=>{if(t.isTrusted){const t=this.#to.find(t=>!t.classList.contains(`${xy}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#Ai.renderItem=vy,this.#Li.renderItem=zy,this.#fi.renderItem=Cy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(Ly.includes(t)||"data-source-base-url"===t)this.#oo(),"data-source-base-url"===t&&this.#ro();else if("default-country"===t){const t=i?.toUpperCase();if(t&&t!==i)return void this.setAttribute("default-country",t);t&&this.#Oi.size?this.#lo(t):t&&this.#Bi&&this.#do()}else"lang"===t?this.#co():"invalid"===t?"true"===i&&this.#uo():"allowed-countries"===t||"pinned-countries"===t?this.#Bi||(this.#Vi?this.#po(this.#Vi):this.#do()):"country-label"===t?this.#ho(this.#Ai,"label",i):"subdivision-label"===t?this.#ho(this.#Li,"label",i):"city-label"===t&&this.#ho(this.#fi,"label",i)}getValidity(){if(!this.isRequired)return{};const t=!this.#Bi&&!this.#Ai.value,e=!this.#Zi&&(this.#Gi||this.#Ei)&&!this.#Li.value,i=!this.#Fi&&(this.#Gi||this.#ki)&&!this.#fi.value;return t||e||i?{valueMissing:!0}:{}}#uo(){for(const t of[...this.#to].reverse())t.classList.contains(`${xy}-hidden`)||t.checkValidity()||t.reportValidity()}#Qi(){[this.#Ai,this.#Li,this.#fi].forEach(t=>{t.customValueTransformFn=e=>{const i=t.baseElement?.items?.find(t=>t["data-name"]===e);return i?.getAttribute("data-label")??e}})}#Pi(){this.#to.forEach(t=>{f(this,t,{includeAttrs:[...Ay,"label-type"]})}),f(this,this.#Ai,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#Ai,"country-placeholder"],[this.#Li,"subdivision-placeholder"],[this.#fi,"city-placeholder"]].forEach(([t,e])=>{f(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#no(){this.#Ai.addEventListener("input",()=>this.#go()),this.#Li.addEventListener("input",()=>this.#Mo()),this.#fi.addEventListener("input",()=>this.#mo()),this.handleFocusEventsDispatching(this.#to)}#ro(){this.#Hi&&(this.#Yi?this.#eo():this.#Bi&&!this.#$i||this.#do())}async#eo(){const{country:t,subdivision:e,city:i}=this.#Yi,o=!!e&&!this.#Zi,n=!!i&&!this.#Fi,r=this.#Vi??my(this.#Hi),s=this.#Ui??Ny(this.#Hi),a=o&&t?yy(t,this.#Hi):null,l=n&&t?o&&e?by(t,e,this.#Hi):Iy(t,this.#Hi):null,[d,c,u,p]=(await Promise.allSettled([r,s,a,l])).map(t=>"fulfilled"===t.status?t.value:null);if(!this.#Yi)return;c&&(this.#Ui=c);const h=[];d&&(this.#Vi||(this.#Vi=d,this.#po(d)),t&&!this.#Bi&&h.push([this.#Ai,t]));const g=t?this.#Oi.get(t):null;g?.subdivisionType&&this.#yo(g.subdivisionType),u&&(this.#Wi=u,this.#Ei=u.length>0,u.length>0&&(this.#Li.data=u.map(t=>({...t,lang:this.#Ji})),e&&h.push([this.#Li,e]))),p&&(this.#ki=p.length>0,p.length>0&&(this.#Ri=p,this.#fi.data=p.map(t=>({...t,lang:this.#Ji})),i&&h.push([this.#fi,i]))),this.#oo(),this.#Yi=jy,setTimeout(()=>{if(this.#Yi===jy){for(const[t,e]of h){const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)}this.#Yi=null}})}#go(){this.#Yi!==jy&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#Ai.value),this.#mo())}#Mo(){if(this.#Yi===jy)return;this.#Yi=null;const t=this.#Li.value;if(this.#No(),!this.#Fi&&t){const e=this.#Ai.value;e&&this.#Io(e,t)}this.#mo()}#lo(t){if(!t)return;const e=this.#Oi.get(t);if(!e)return;const{hasSubdivisions:i,subdivisionType:o}=e;!this.#Zi&&i?(this.#yo(o),this.#xo(t)):this.#Fi||this.#Io(t)}#yo(t){const e=this.#jo(t);this.#qi||this.#ho(this.#Li,"label",e||null),this.#_i||this.#ho(this.#Li,"placeholder",e||null)}#jo(t){const e=this.#Ui?.subdivisionTypes,i=e?.[t]??e?._fallback;if(!i)return t;const o=this.#Ji;return o&&(i[o]||i[o.split("-")[0]])||i.en||t}async#To(){try{this.#Ui=await Ny(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#Ai.setAttribute("loading","true");try{const[t]=await Promise.all([my(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${xy}] Failed to load countries`,t)}finally{this.#Ai.removeAttribute("loading")}}}async#xo(t){this.#Do(this.#Li,!0),this.#Li.setAttribute("loading","true");try{const e=await yy(t,this.#Hi);this.#Wi=e,this.#Ei=e.length>0,this.#oo(),e.length>0?this.#Li.data=e.map(t=>({...t,lang:this.#Ji})):this.#Fi||this.#Io(t)}catch(e){console.error(`[${xy}] Failed to load subdivisions for ${t}`,e),this.#Ei=!1,this.#vo()}finally{this.#Li.removeAttribute("loading")}}async#Io(t,e){this.#fi.setAttribute("loading","true");try{const i=await(e?by(t,e,this.#Hi):Iy(t,this.#Hi));this.#ki=i.length>0,this.#oo(),i.length>0&&(this.#Ri=i,this.#fi.data=i.map(t=>({...t,lang:this.#Ji})))}catch(i){console.error(`[${xy}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#fi.removeAttribute("loading")}}#co(){if(this.#Vi){const t=this.#Ai.value;this.#po(this.#Vi),t&&this.#zo(this.#Ai,t)}if(this.#Wi&&this.#Ei){const t=this.#Li.value;this.#Li.data=this.#Wi.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#Li,t)}if(this.#Ri&&this.#ki){const t=this.#fi.value;this.#fi.data=this.#Ri.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#fi,t)}const t=this.#Ai.value;if(t){const e=this.#Oi.get(t);e?.subdivisionType&&this.#yo(e.subdivisionType)}}#po(t){const e=this.#Co(t);this.#Ai.data=e.map(t=>({...t,lang:this.#Ji})),this.#Oi=new Map(t.map(t=>[t.iso2,t]))}#Co(t){const e=this.#Xi,i=this.#Ki;let o=e.length?t.filter(t=>e.includes(t.iso2)):[...t];return o.sort((t,e)=>Ty(t,this.#Ji).localeCompare(Ty(e,this.#Ji),this.#Ji)),i.length?[...i.map(t=>o.find(e=>e.iso2===t)).filter(Boolean),...o.filter(t=>!i.includes(t.iso2))]:o}#vo(){this.#Do(this.#Ai,!this.#Bi),this.#Do(this.#Li,!this.#Zi&&(this.#Gi||this.#Ei)),this.#Do(this.#fi,!this.#Fi&&(this.#Gi||this.#ki))}#Do(t,e){t?.classList.toggle(`${xy}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#Ai,"required",this.#Bi?null:t),this.#ho(this.#Li,"required",this.#Zi||!this.#Gi&&!this.#Ei?null:t),this.#ho(this.#fi,"required",this.#Fi||!this.#Gi&&!this.#ki?null:t)}#oo(){this.#vo(),this.#ao(),this.setCustomValidity("")}#bo(){this.#Li.value="",this.#Li.data=[],this.#Ei=!1,this.#qi||this.#Li.removeAttribute("label"),this.#_i||this.#Li.removeAttribute("placeholder"),this.#oo()}#No(){this.#fi.value="",this.#fi.data=[],this.#Ri=null,this.#ki=!1,this.#oo()}#mo(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#ho(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#io(){return this.#to.find(t=>!t.classList.contains(`${xy}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),ky=A("country-subdivision-city-field"),Oy={selector:()=>":host"},Vy={selector:`${xy} > .wrapper`},Wy={selector:`${xy} > .wrapper > descope-combo-box`},Ry=T(ht({componentNameOverride:A("input-wrapper")}),ht({mappings:{hostWidth:{...Oy,property:"width"},hostDirection:[{...Oy,property:"direction"},{...Wy,property:Do.cssVarList.hostDirection}],flexDirection:{...Vy,property:"flex-direction"},flexGap:{...Vy,property:"gap"},itemAlignment:{...Vy,property:"align-items"},itemMinWidth:{...Wy,property:"min-width"},itemFlexGrow:{...Wy,property:"flex-grow"},itemWidth:{...Wy,property:Do.cssVarList.hostWidth}}}),gt,kt({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),Mt,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${xy}\n tabindex="-1"\n ></${xy}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(xy),f(this,this.inputElement,{includeAttrs:["size","bordered","required","label-type","disabled","readonly","hide-country","hide-subdivision","hide-city","default-country","allowed-countries","pinned-countries","country-label","subdivision-label","city-label","country-placeholder","subdivision-placeholder","city-placeholder","data-source-base-url","lang","invalid"]}),S(this,this.inputElement,{includeAttrs:["invalid"]})}})(At({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 ${xy} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${xy} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${xy}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:ky})),Uy=Ry.cssVarList,Yy={[Uy.hostWidth]:Xp.width,[Uy.hostDirection]:Xp.direction,[Uy.flexDirection]:"column",[Uy.flexGap]:"0.5em",[Uy.itemAlignment]:"stretch",[Uy.itemFlexGrow]:"0",[Uy.itemWidth]:"auto",_fullWidth:{[Uy.hostWidth]:"100%"},_horizontal:{[Uy.flexDirection]:"row",[Uy.itemFlexGrow]:"1"}};var Qy=Object.freeze({__proto__:null,default:Yy,vars:Uy});const Py=A("attachment"),By=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Zy=By[0];class Fy extends(It({componentName:Py,baseSelector:"descope-anchored"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <div slot="anchored" class="attachment-container">\n <slot name="attachment"></slot>\n </div>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.attachmentSlot=this.shadowRoot.querySelector('slot[name="attachment"]'),this.anchored=this.shadowRoot.querySelector("descope-anchored")}get#So(){return this.attachmentSlot?.assignedElements()[0]}static get observedAttributes(){return[...super.observedAttributes||[],"position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"position"===t&&e!==i&&this.#wo()}init(){super.init?.(),E("\n :host {\n display: inline-block;\n }\n :host(.hidden) {\n display: none;\n }\n .attachment-container {\n position: absolute;\n z-index: 1;\n pointer-events: none;\n width: 100%;\n display: flex;\n align-items: center;\n container-type: inline-size;\n }\n",this),this.#wo();const t=this.shadowRoot.querySelector(".attachment-container");v(t,()=>this.#Ao(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#Ao()),this.defaultSlot.addEventListener("slotchange",()=>{this.#Lo(),window.requestAnimationFrame(()=>this.#fo())}),window.requestAnimationFrame(()=>this.#Lo())}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=v(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#fo(){const t=this.defaultSlot?.assignedElements()?.[0],e=t?.getBoundingClientRect();if(e){const t=e.width;this.#So?.setAttribute("data-attachment-size",Number(t))}}#Lo(){const t=this.defaultSlot?.assignedElements()?.length>0;this.classList.toggle("hidden",!t)}#Ao(){const t=this.shadowRoot.querySelector(".attachment-container")?.getAttribute("st-host-direction");t&&this.#So?.setAttribute("st-host-direction",t)}get offsetX(){return this.getAttribute("offset-x")||"0px"}get offsetY(){return this.getAttribute("offset-y")||"0px"}#wo(){const t=this.getAttribute("position");By.includes(t)||this.setAttribute("position",Zy)}}const Gy={selector:()=>".attachment-container"},Hy=T(ht({mappings:{transform:{...Gy},justifyContent:{...Gy},maxWidth:{...Gy},top:{...Gy},bottom:{...Gy},left:{...Gy},right:{...Gy},offsetX:{},offsetY:{}}}),gt,Mt)(Fy),Jy=Hy.cssVarList,$y=`calc(8px + var(${Jy.offsetX}))`,qy={[Jy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[Jy.transform]:"translateY(-50%)",[Jy.justifyContent]:"start",[Jy.left]:$y,[Jy.top]:rt(Jy.offsetY)},"top-center":{[Jy.transform]:"translate(-50%, -50%)",[Jy.justifyContent]:"center",[Jy.top]:rt(Jy.offsetY),[Jy.left]:"50%"},"top-end":{[Jy.transform]:"translateY(-50%)",[Jy.justifyContent]:"end",[Jy.right]:$y,[Jy.top]:rt(Jy.offsetY)},"bottom-start":{[Jy.transform]:"translateY(50%)",[Jy.justifyContent]:"start",[Jy.left]:$y,[Jy.bottom]:rt(Jy.offsetY)},"bottom-center":{[Jy.bottom]:rt(Jy.offsetY),[Jy.transform]:"translate(-50%, 50%)",[Jy.justifyContent]:"center",[Jy.left]:"50%"},"bottom-end":{[Jy.transform]:"translateY(50%)",[Jy.justifyContent]:"end",[Jy.right]:$y,[Jy.bottom]:rt(Jy.offsetY)}}};var _y=Object.freeze({__proto__:null,default:qy}),Xy="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",Ky="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnI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xy}},ib=A("user-passkeys"),ob=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=eb[t]||eb.other;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),l=i&&r.createdAtLabel?`${r.createdAtLabel} `:"",d=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,r.format),c=document.createElement("template");return c.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="main">\n <span class="item">\n <descope-icon class="item-icon" src="${s}" src-dark="${a}"></descope-icon>\n <descope-text class="item-name" variant="body1" mode="primary"></descope-text>\n </span>\n <span class="item-panel">\n ${r.allowRemove?'<descope-link variant="text" mode="primary" size="md" ellipsis="true" data-action="remove-passkey" class="remove-button">\n <div class="remove-button-content">\n </div>\n </descope-link>':'<descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg=="></descope-icon>'}\n </span>\n </div>\n <div class="meta">\n <descope-text variant="body2" mode="primary">${l}</descope-text>\n <descope-text class="date" variant="body2" mode="primary">\n ${d}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,c.content.querySelector(".item-name").textContent=e,r.allowRemove&&((t,e,i)=>{const o=t.content.querySelector(".remove-button-content");o.dataset.passkeyId=e;const n=W(i,"remove-button");n&&o.append(n)})(c,t,r),c},nb=It({componentName:ib,baseSelector:mu.componentName}),{host:rb,methodIconSlotted:sb,addIconSlotted:ab}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},lb=T(ht({mappings:{hostWidth:{...rb,property:"width"},hostMinWidth:{...rb,property:"min-width"},hostDirection:[{...rb,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"},{selector:()=>"descope-link",property:Pi.cssVarList.hostDirection}],headerGap:{selector:()=>".method",property:"gap"},listGap:{selector:()=>"descope-list",property:"margin-top"},listItemsGap:{property:mu.cssVarList.gap},listBackgroundColor:{selector:()=>mu.componentName,property:mu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>mu.componentName,property:mu.cssVarList.borderRadius},listBorderWidth:{selector:()=>mu.componentName,property:mu.cssVarList.borderWidth},listBoxShadow:{selector:()=>mu.componentName,property:mu.cssVarList.boxShadow},listPadding:[{selector:()=>mu.componentName,property:mu.cssVarList.verticalPadding},{selector:()=>mu.componentName,property:mu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:hu.componentName,property:hu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:hu.componentName,property:hu.cssVarList.horizontalPadding},itemCursor:{selector:hu.componentName,property:hu.cssVarList.cursor},itemOutline:{selector:hu.componentName,property:hu.cssVarList.outline},itemBorderColor:{selector:hu.componentName,property:hu.cssVarList.borderColor},itemBorderRadius:{selector:hu.componentName,property:hu.cssVarList.borderRadius},itemBackgroundColor:{selector:hu.componentName,property:hu.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:()=>Wo.componentName,property:Wo.cssVarList.iconColor},iconSize:[{...sb,property:"height"},{...ab,property:"height"}]}}),gt,Rt({itemRenderer:ob,sortFn:(t,e)=>tb(e.createdAt)-tb(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),Mt)(class extends nb{static get observedAttributes(){return["label","add-passkey-button-label","remove-passkey-button-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="header">\n <div class="method">\n <slot name="method-icon"></slot>\n <descope-text class="method-label" st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n <span class="button">\n <descope-button class="add-passkey-button" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n </span>\n </div>\n\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n\n <slot name="remove-button" class="hidden"></slot>\n ',this.methodLabel=this.shadowRoot.querySelector(".method-label"),this.addPasskeyButton=this.shadowRoot.querySelector(".add-passkey-button"),this.appsList=this.shadowRoot.querySelector("descope-list"),this.removeButton=this.shadowRoot.querySelector('slot[name="remove-button"]'),E('\n .remove-button-content {\n display: flex;\n align-items: center;\n }\n :host {\n display: inline-block;\n }\n\n .header {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header .method {\n display: flex;\n flex: 1;\n min-width: 0;\n }\n\n slot[name="method-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n }\n\n .button {\n min-width: 0;\n max-width: 50%;\n flex-shrink: 1;\n }\n\n .add-passkey-button {\n align-self: center;\n max-width: 100%;\n }\n\n .add-passkey-button > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .descope-list-item {\n min-width: 0;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .main {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .item-panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n align-items: center;\n cursor: pointer;\n }\n\n .item {\n display: flex;\n min-width: 0;\n }\n\n .item-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .date {\n min-width: fit-content;\n }\n\n descope-text {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n descope-link {\n overflow: hidden;\n }\n descope-link.remove-button {\n width: 100%;\n }\n descope-link.remove-button::part(wrapper) {\n display: flex;\n width: 100%;\n }\n .hidden {\n display: none\n }\n\n ',this)}init(){super.init?.(),this.appsList.itemRenderer=ob,this.appsList.addEventListener("click",this.onRemoveClick.bind(this)),this.addPasskeyButton.addEventListener("click",this.onAddClick.bind(this)),f(this.appsList,this,{includeAttrs:["empty"]}),this.removeButton.addEventListener("slotchange",()=>{this.data=[...this.data]}),this.onLabelChange(),this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel)}onAddClick(){this.readOnly||this.dispatchEvent(new CustomEvent("add-passkey-clicked",{bubbles:!0,detail:{action:"add-passkey"}}))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-passkey-id]"),i=e?.getAttribute("data-passkey-id");i&&this.dispatchEvent(new CustomEvent("remove-passkey-clicked",{bubbles:!0,detail:{id:i,action:"remove-passkey"}}))}get label(){return this.getAttribute("label")||"Passkey"}get readOnly(){return"true"===this.getAttribute("readonly")}get allowRemove(){return"true"===this.getAttribute("allow-remove")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get addPasskeyButtonLabel(){return this.getAttribute("add-passkey-button-label")||"Add"}get removePasskeyButtonLabel(){return this.getAttribute("remove-passkey-button-label")||"Remove"}get createdAtLabel(){return this.getAttribute("created-at-label")||"Date added:"}get direction(){return this.getAttribute("st-host-direction")}onLabelChange(){this.methodLabel.innerText=this.label,this.methodLabel.setAttribute("title",this.label)}updateButtonLabel(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.textContent=e):i&&t.removeChild(i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"add-passkey-button-label"===t?this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel):"empty"===t&&this.appsList.classList.toggle("hidden","true"===i))}}),db=lb.cssVarList,cb={[db.hostWidth]:"auto",[db.hostWidth]:"300px",[db.hostMinWidth]:"300px",[db.headerGap]:zp.spacing.lg,[db.listGap]:zp.spacing.xl,[db.listBackgroundColor]:"transparent",[db.listBorderRadius]:"0",[db.listBorderWidth]:"0",[db.listPadding]:"0",[db.listBoxShadow]:"none",[db.listItemsGap]:zp.spacing.lg,[db.itemBorderColor]:zp.colors.surface.light,[db.itemVerticalPadding]:zp.spacing.lg,[db.itemHorizontalPadding]:zp.spacing.lg,[db.itemBorderRadius]:zp.radius.xs,[db.itemOutline]:"transparent",[db.itemBackgroundColor]:"transparent",[db.itemCursor]:"default",[db.itemContentGap]:zp.spacing.sm,[db.itemPanelGap]:zp.spacing.md,[db.itemIconGap]:zp.spacing.md,[db.itemIconSize]:"24px",[db.addButtonGap]:zp.spacing.sm,[db.dateGap]:zp.spacing.xs,[db.removeButtonGap]:zp.spacing.sm,[db.iconSize]:"1.5em",[db.iconColor]:"currentcolor",_fullWidth:{[db.hostWidth]:"100%"}};var ub=Object.freeze({__proto__:null,default:cb,vars:db});const pb=nt(zp),hb=tr.cssVarList,gb={[hb.hostWidth]:Xp.width,[hb.hostMinWidth]:Xp.minWidth,[hb.hostDirection]:Xp.direction,[hb.fontSize]:Xp.fontSize,[hb.fontFamily]:Xp.fontFamily,[hb.labelFontSize]:Xp.labelFontSize,[hb.labelFontWeight]:Xp.labelFontWeight,[hb.inputValueFontWeight]:Xp.inputValueFontWeight,[hb.inputPlaceholderFontWeight]:Xp.inputPlaceholderFontWeight,[hb.helperTextFontWeight]:Xp.helperTextFontWeight,[hb.errorMessageFontWeight]:Xp.errorMessageFontWeight,[hb.labelTextColor]:Xp.labelTextColor,[hb.labelRequiredIndicator]:Xp.requiredIndicator,[hb.errorMessageTextColor]:Xp.errorMessageTextColor,[hb.inputValueTextColor]:Xp.valueTextColor,[hb.inputPlaceholderColor]:Xp.placeholderTextColor,[hb.inputBorderWidth]:Xp.borderWidth,[hb.inputBorderStyle]:Xp.borderStyle,[hb.inputBorderColor]:Xp.borderColor,[hb.inputBorderRadius]:Xp.borderRadius,[hb.inputOutlineWidth]:Xp.outlineWidth,[hb.inputOutlineStyle]:Xp.outlineStyle,[hb.inputOutlineColor]:Xp.outlineColor,[hb.inputOutlineOffset]:Xp.outlineOffset,[hb.inputBackgroundColor]:Xp.backgroundColor,[hb.inputHeight]:Xp.inputHeight,[hb.inputHorizontalPadding]:Xp.horizontalPadding,[hb.helperTextColor]:Xp.helperTextColor,[hb.textAlign]:Xp.textAlign,textAlign:{right:{[hb.inputTextAlign]:"right"},left:{[hb.inputTextAlign]:"left"},center:{[hb.inputTextAlign]:"center"}},[hb.labelPosition]:Xp.labelPosition,[hb.labelTopPosition]:Xp.labelTopPosition,[hb.labelHorizontalPosition]:Xp.labelHorizontalPosition,[hb.inputTransformY]:Xp.inputTransformY,[hb.inputTransition]:Xp.inputTransition,[hb.marginInlineStart]:Xp.marginInlineStart,[hb.placeholderOpacity]:Xp.placeholderOpacity,[hb.inputVerticalAlignment]:Xp.inputVerticalAlignment,[hb.valueInputHeight]:Xp.valueInputHeight,[hb.valueInputMarginBottom]:Xp.valueInputMarginBottom,[hb.inputIconOffset]:pb.spacing.md,[hb.inputIconSize]:Xp.inputIconSize,[hb.inputIconColor]:Xp.placeholderTextColor,[hb.errorMessageIcon]:Xp.errorMessageIcon,[hb.errorMessageIconSize]:Xp.errorMessageIconSize,[hb.errorMessageIconPadding]:Xp.errorMessageIconPadding,[hb.errorMessageIconRepeat]:Xp.errorMessageIconRepeat,[hb.errorMessageIconPosition]:Xp.errorMessageIconPosition,[hb.errorMessageFontSize]:Xp.errorMessageFontSize,[hb.inputTextSecurity]:Xp.inputTextSecurity};var Mb=Object.freeze({__proto__:null,default:gb,textField:gb,vars:hb});class mb{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const yb=["MM/DD","DD/MM"],bb=yb[0],Nb="/",Ib=[31,29,31,30,31,30,31,31,30,31,30,31],xb={id:"month",min:1,max:12,placeholder:"MM"},jb={id:"day",min:1,max:31,placeholder:"DD"},Tb={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},Db=t=>{const e=(t=>`^${t.split(Nb).map(t=>Tb[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Nb);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}}},vb=Object.fromEntries(yb.map(t=>[t,Db(t)])),zb=(t,e)=>{const i=t?.trim?.();return i?vb[e]?.getParts(i)??null:null},Cb=A("month-day-field"),Sb=Ct({componentName:Cb,baseSelector:"vaadin-popover"}),wb=["format","opened","initial-value","readonly","disable-picker"],Ab=["picker-months","picker-label-submit","picker-label-cancel"],Lb=[...wb,...Ab],fb=tr.cssVarList,{host:Eb,input:kb,inputEleRTL:Ob,toggleButton:Vb,overlay:Wb,backdrop:Rb,bottomNav:Ub,navButton:Yb}={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"}},Qb=T(ht({componentNameOverride:A("input-wrapper")}),ht({mappings:{iconMargin:{...Vb,property:"margin-inline-end"},hostWidth:{...Eb,property:"width"},hostDirection:{...Eb,property:"direction"},textAlign:{...kb,property:"text-align"},rtlInputDirection:{...Ob,property:fb.inputDirection},rtlInputAlignment:{...Ob,property:fb.inputTextAlign},overlayGap:{property:()=>Qb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Qb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Qb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Qb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Qb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Qb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Qb.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:tr.componentName,property:tr.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:tr.componentName,property:tr.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:tr.componentName,property:tr.cssVarList.errorMessageFontSize},labelFontWeight:{selector:tr.componentName,property:tr.cssVarList.labelFontWeight},inputValueFontWeight:{selector:tr.componentName,property:tr.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:tr.componentName,property:tr.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:tr.componentName,property:tr.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:tr.componentName,property:tr.cssVarList.errorMessageFontWeight}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...Wb,property:"margin-top"},backgroundColor:{...Wb},backdropBackgroundColor:{...Rb,property:"background-color"},backdropPointerEvents:{...Rb,property:"pointer-events"},padding:{...Wb},boxShadow:{...Wb},outlineWidth:{...Wb},outlineColor:{...Wb},outlineStyle:{...Wb},bottomNavTopPadding:{...Ub,property:"padding-top"},bottomNavBottomPadding:{...Ub,property:"padding-bottom"},bottomNavHorizontalPadding:[{...Ub,property:"padding-left"},{...Ub,property:"padding-right"}],bottomNavAlignment:{...Ub,property:"justify-content"},bottomNavGap:{...Ub,property:"gap"},navButtonPadding:[{...Yb,property:Wo.cssVarList.horizontalPadding},{...Yb,property:Wo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Yb,property:Wo.cssVarList.outlineWidth}}}),gt,Mt)(class extends Sb{format=bb;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#lt()};#Vo=[new mb(xb,this.#ko.bind(this)),new mb(jb,this.#ko.bind(this))];static get observedAttributes(){return[].concat(Sb.observedAttributes||[],Lb)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-picker">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDVIMTVWNC41MDQ2OEMxNSA0LjIxNDA0IDE1LjIyNiA0IDE1LjUwNDcgNEgxNi40OTUzQzE2Ljc4NiA0IDE3IDQuMjI1OTUgMTcgNC41MDQ2OFY1SDE4Ljc1NjhDMTkuMzAyOCA1IDE5Ljc1IDUuNDQ3MjUgMTkuNzUgNS45OTg5NlY3LjAwMTA0QzE5Ljc1IDcuNTU3MzQgMTkuMzA1MyA4IDE4Ljc1NjggOEg1LjI0MzE3QzQuNjk3MTcgOCA0LjI1IDcuNTUyNzUgNC4yNSA3LjAwMTA0VjUuOTk4OTZDNC4yNSA1LjQ0MjY2IDQuNjk0NjYgNSA1LjI0MzE3IDVIN1Y0LjUwNDY4QzcgNC4yMTQwNCA3LjIyNTk2IDQgNy41MDQ2OCA0SDguNDk1MzJDOC43ODU5NiA0IDkgNC4yMjU5NSA5IDQuNTA0NjhWNVpNNS41MDQ2OCA5SDYuNDk1MzJDNi43ODU5NiA5IDcgOS4yMjU5NiA3IDkuNTA0NjhWMTAuNDk1M0M3IDEwLjc4NiA2Ljc3NDA0IDExIDYuNDk1MzIgMTFINS41MDQ2OEM1LjIxNDA0IDExIDUgMTAuNzc0IDUgMTAuN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g2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+Cjwvc3ZnPgo="></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',E('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-picker {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-picker {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#Vo.find(t=>t.id===xb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===jb.id)}get sortedCounters(){return this.format.split(Nb).map(t=>this.#Vo.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#Eo]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(Nb)}get isCountersEmpty(){return this.#Vo.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#Vo.some(t=>!t.isInRange(t.numberValue))}get disablePicker(){return"true"===this.getAttribute("disable-picker")}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get picker(){return this.overlay?.querySelector("descope-month-day-field-picker")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isCountersEmpty||this.isCountersOutOfRange?"":((t,e)=>this.format.replace(/MM|DD/g,i=>String("MM"===i?t:e).padStart(2,"0")))(this.monthCounter.numberValue,this.dayCounter.numberValue)}set value(t){const e=t?zb(String(t),this.format):null;e?this.#Wo(e.month,e.day):(this.#Vo.forEach(t=>t.clear()),this.clearInputEle())}get isSelectAll(){const{value:t,selectionStart:e,selectionEnd:i}=this.inputElement;return t.length===e+i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:!this.isCountersEmpty&&this.isCountersOutOfRange?{patternMismatch:!0}:{}}reportValidity(){this.inputElement.reportValidity()}#Oo(){const t=this.monthCounter.numberValue,e=Ib[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#Wo(t,e){this.monthCounter.replaceValue(t),this.#Oo(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#lt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#Vo.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Ro(),this.#Uo(),this.#ko(),this.#Yo(),setTimeout(()=>this.#it(),0)}#Yo(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#Qo.bind(this)),this.inputElement.addEventListener("focus",this.#Po.bind(this)),this.inputElement.addEventListener("blur",this.#Bo.bind(this)),this.inputElement.addEventListener("click",this.#Zo.bind(this)),this.inputElement.addEventListener("keydown",this.#Fo.bind(this)),this.inputElement.addEventListener("beforeinput",this.#Go.bind(this)),this.inputElement.addEventListener("pointerdown",this.#Ho.bind(this)),this.inputElement.addEventListener("paste",this.#Jo.bind(this)),f(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","data-errormessage-value-missing","data-errormessage-pattern-mismatch","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}#Uo(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),E("\n .overlay-hidden { visibility: hidden; }\n .bottom-nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n ",t.getRootNode())),this.#$o(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#pt(),t.classList.remove("overlay-hidden")},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { margin-left: 0; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.picker.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${l}px;\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=E(d,t)}#ut(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#qo(),this.cancelButton.addEventListener("click",this.#_o.bind(this)),this.submitButton.addEventListener("click",this.#Xo.bind(this)),e.addEventListener("change",this.#Ko.bind(this)),t}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#$o(){this.picker&&(this.isCountersEmpty?this.picker.value="":(this.picker.month=this.monthCounter.isEmpty?null:this.monthCounter.numberValue,this.picker.day=this.dayCounter.isEmpty?null:this.dayCounter.numberValue),f(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#tn(){return this.getAttribute("picker-label-submit")||"Done"}get#en(){return this.getAttribute("picker-label-cancel")||"Cancel"}#qo(){this.submitButton&&(this.submitButton.textContent=this.#tn,this.cancelButton.textContent=this.#en)}#Ko(t){const{month:e,day:i}=t.detail||{};this.#in(null==e||null==i)}#in(t){if(!this.submitButton)return;const e=this.submitButton.shadowRoot?.querySelector("vaadin-button");t?(this.submitButton.setAttribute("disabled","true"),e?.setAttribute("disabled","true")):(this.submitButton.removeAttribute("disabled"),e?.removeAttribute("disabled"))}#_o(){this.closePopover()}#Xo(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#Wo(t,e),this.#lt(),this.closePopover()):this.closePopover()}#Qo(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#on(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#Go(t){var e;t.preventDefault(),this.#nn(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#rn(t.data),this.updateCountersDisplay()):t.inputType&&this.#sn(t)}#nn(){this.isSelectAll&&this.#an()}#rn(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#ln(),this.#dn()}#cn(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#un(t){this.#Eo=this.#cn(t.target?.selectionStart||this.inputElement.selectionStart)}#an(){this.#Eo=0}#ln(){this.#Eo<this.#Vo.length-1&&(this.#Eo=Math.min(this.#Eo+1,1))}#pn(){this.#Eo>0&&(this.#Eo=0)}#dn(){this.#Eo<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#Eo).reduce((t,e)=>t+e.length,this.#Eo);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#Eo].length)})}#Fo(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#hn(t):(this.#nn(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#ln():"ArrowLeft"===t.key&&this.#pn(),this.#dn())}#sn(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#gn(),this.#dn()))}#gn(){if(this.isSelectAll)return void this.#Mn();const t=this.activeCounter;t.isEmpty?(this.#pn(),this.#dn()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#dn()})}#Zo(t){this.opened||(t.preventDefault(),this.#un(t),this.#dn())}#Ho(t){setTimeout(()=>this.#Zo(t),150)}#Po(){this.isReadOnly||setTimeout(()=>this.#mn())}#Bo(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#mn(){this.inputElement.value||(this.inputElement.value=this.format),this.#an(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#Mn(){this.resetCounters(),this.#an(),this.#mn()}#yn(t){Object.keys(vb).includes(t)&&(this.format=t,this.#Ro(),this.updateCountersDisplay())}#Ro(){const t=this.getAttribute("format")||this.format||bb,e=vb[t]?t:bb;this.format=e,this.setAttribute("pattern",vb[e].pattern)}#hn(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.#Mn()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.#dn()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#Jo(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=zb(e,this.format);if(i)return this.#Wo(i.month,i.day),this.#ko(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const o=Number(e);o&&this.activeCounter.isInRange(o)&&(this.activeCounter.set(String(o)),setTimeout(()=>this.#dn()))}#bn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#on("true"!==i),wb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():Ab.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),Pb=nt(zp),Bb="#00000020",{shadow:Zb}=Pb,Fb=Qb.cssVarList,Gb={[Fb.hostWidth]:Xp.width,[Fb.hostDirection]:Xp.direction,[Fb.iconMargin]:"0.375em",[Fb.overlay.marginTop]:Xp.outlineWidth,[Fb.overlay.backgroundColor]:Xp.backgroundColor,[Fb.overlay.backdropBackgroundColor]:"transparent",[Fb.overlay.backdropPointerEvents]:"all",[Fb.overlay.boxShadow]:`${Zb.wide.xl} ${Bb}, ${Zb.narrow.xl} ${Bb}`,[Fb.overlay.outlineWidth]:"0",[Fb.overlay.outlineColor]:"transparent",[Fb.overlay.outlineStyle]:"none",[Fb.overlay.padding]:"0",[Fb.overlay.bottomNavTopPadding]:"0",[Fb.overlay.bottomNavBottomPadding]:"0.75em",[Fb.overlay.bottomNavHorizontalPadding]:"1em",[Fb.overlay.bottomNavAlignment]:"space-between",[Fb.overlay.bottomNavGap]:"0.5em",[Fb.overlay.navButtonPadding]:"0",[Fb.overlay.navButtonOutlineWidth]:"0",[Fb.rtlInputDirection]:"ltr",[Fb.rtlInputAlignment]:"right",[Fb.errorMessageIcon]:Xp.errorMessageIcon,[Fb.errorMessageIconSize]:Xp.errorMessageIconSize,[Fb.errorMessageIconPadding]:Xp.errorMessageIconPadding,[Fb.errorMessageIconRepeat]:Xp.errorMessageIconRepeat,[Fb.errorMessageIconPosition]:Xp.errorMessageIconPosition,[Fb.errorMessageFontSize]:Xp.errorMessageFontSize,[Fb.labelFontWeight]:Xp.labelFontWeight,[Fb.inputValueFontWeight]:Xp.inputValueFontWeight,[Fb.inputPlaceholderFontWeight]:Xp.inputPlaceholderFontWeight,[Fb.helperTextFontWeight]:Xp.helperTextFontWeight,[Fb.errorMessageFontWeight]:Xp.errorMessageFontWeight};var Hb=Object.freeze({__proto__:null,default:Gb,vars:Fb});const Jb=[31,29,31,30,31,30,31,31,30,31,30,31],$b=["January","February","March","April","May","June","July","August","September","October","November","December"],qb=A("month-day-field-picker"),_b=["initial-value","picker-months","st-host-direction","disabled","full-width"],Xb=Ct({componentName:qb,baseSelector:"div"}),Kb=(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:tN,monthInput:eN,dayInput:iN,inputsRow:oN}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},nN=T(ht({componentNameOverride:A("input-wrapper")}),ht({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...tN,property:"padding"},inputsRowGap:{...oN,property:"gap"},inputWidth:[{...eN,property:"width"},{...iN,property:"width"}]}}),gt,Mt)(class extends Xb{static get observedAttributes(){return[].concat(Xb.observedAttributes||[],_b)}#Nn=null;#In=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="picker">\n <div class="inputs-row">\n <descope-combo-box\n class="month-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n <descope-combo-box\n class="day-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n </div>\n </div>\n ',E("\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n .inputs-row {\n display: flex;\n }\n\n .inputs-row > descope-combo-box {\n flex: 1;\n min-width: 0;\n }\n ",this),this.monthInput=this.shadowRoot.querySelector(".month-input"),this.dayInput=this.shadowRoot.querySelector(".day-input")}get month(){return this.#Nn}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#Nn=null:this.#Nn=e,null!=this.#In&&null!=this.#Nn&&this.#In>Jb[this.#Nn-1]&&(this.#In=1),this.#xn(),this.#jn(),this.#Tn(),this.#v()}get day(){return this.#In}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#Nn&&e>Jb[this.#Nn-1]?this.#In=null:this.#In=e,this.#Tn(),this.#v()}set value(t){if(!t)return void this.#Dn();const e=/^(0?[1-9]|1[0-2])\D(0?[1-9]|[12][0-9]|3[01])$/.exec(String(t).trim());if(!e)return;const i=Number(e[1]),o=Number(e[2]);this.month=i,this.day=o}#Dn(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#Nn||null==this.#In?"":`${String(this.#Nn).padStart(2,"0")}/${String(this.#In).padStart(2,"0")}`}init(){super.init?.(),this.#vn(),this.#zn();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#Nn&&this.#Dn(),f(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),f(this,this.dayInput,{includeAttrs:["disabled","size","st-host-direction"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("initial-value"===t?this.value=i:"picker-months"===t&&this.#Cn())}get#Sn(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:$b})(this.getAttribute("picker-months"))}#vn(){this.#Cn(),this.monthInput.addEventListener("input",this.#wn.bind(this))}#zn(){this.dayInput.addEventListener("input",this.#An.bind(this))}#Cn(){Kb(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=Jb[this.#Nn-1]??0;Kb((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#xn(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#Nn?String(this.#Nn):"")})}#Tn(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#In?String(this.#In):"")})}#wn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#Nn&&(this.month=i)}#An(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#In&&(this.day=i)}#v(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#Nn,day:this.#In},bubbles:!0,composed:!0}))}getValidity(){return{}}}),rN=nN.cssVarList,sN={[rN.fontFamily]:Xp.fontFamily,[rN.fontSize]:Xp.fontSize,[rN.hostDirection]:Xp.direction,[rN.inputWidth]:"130px",[rN.pickerPadding]:"1em 1em",[rN.inputsRowGap]:"0.5em",_fullWidth:{[rN.hostWidth]:"100%"}};var aN=Object.freeze({__proto__:null,default:sN,vars:rN});const lN={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}},dN=Object.keys(lN).map(t=>`data-operator-label-${t}`),cN={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"]},uN=(t,e)=>({id:t,...e[t]||{}}),pN=(t,e,i,o=lN)=>{const n=((i||cN)[t]||[]).map(t=>uN(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)||uN(e,o),...i}}):n},hN=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,lN[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},gN=(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))},MN=t=>{let e=t;if("string"==typeof e)try{e=JSON.parse(e)}catch{return[]}return Array.isArray(e)?e.filter(t=>t&&"object"==typeof t&&"string"==typeof t.column&&"string"==typeof t.operator):[]},mN=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var yN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const bN=A("filter-row"),NN=["text","number","email"],IN=["boolean","singleselect"],xN=t=>!t||NN.includes(t),jN=t=>IN.includes(t),TN=t=>"multiselect"===t,DN=()=>new Promise(t=>setTimeout(t)),{host:vN}={host:{selector:()=>":host"}},zN=T(ht({mappings:{hostWidth:{...vN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...vN,property:"direction"},{selector:()=>Wo.componentName,property:Wo.cssVarList.hostDirection},{selector:()=>Do.componentName,property:Do.cssVarList.hostDirection},{selector:()=>sg.componentName,property:sg.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>Do.componentName,property:Do.cssVarList.hostWidth},{selector:()=>tr.componentName,property:tr.cssVarList.hostWidth},{selector:()=>sg.componentName,property:sg.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Wo.componentName}.delete-btn[disabled="true"]`,property:Wo.cssVarList.iconColor}}}),Mt,t=>class extends t{#Kt=[];#Ln=null;#fn=!1;#En;#kn;#On;#Vn;#Wn;#Rn;#Un=null;#Yn=(t=>{let e;const i=(...i)=>{clearTimeout(e),e=setTimeout(()=>t(...i),350)};return i.cancel=()=>clearTimeout(e),i})(()=>this.#v());static get observedAttributes(){return[...t.observedAttributes||[],"data","value","disable-delete","label-type","operators-catalog","data-value-label-true","data-value-label-false",...dN]}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="${yN}" src-dark="${yN}"></descope-icon>\n </slot>\n </descope-button>\n </div>\n `,E("\n :host {\n display: block;\n }\n .row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;\n align-items: center;\n }\n .col-select,\n .op-select,\n .value-wrapper {\n min-width: 0;\n overflow: hidden;\n }\n /* Let value inputs shrink to the cell instead of growing to fit their\n content (e.g. the multi-select's chip area). */\n .text-value,\n .combo-value,\n .multi-value {\n min-width: 0;\n }\n .hidden {\n display: none;\n }\n .value-wrapper.no-value {\n visibility: hidden;\n }\n ",this),this.#En=this.shadowRoot.querySelector(".col-select"),this.#kn=this.shadowRoot.querySelector(".op-select"),this.#On=this.shadowRoot.querySelector(".text-value"),this.#Vn=this.shadowRoot.querySelector(".combo-value"),this.#Wn=this.shadowRoot.querySelector(".multi-value"),this.#Rn=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Qn(),this.#Rn.addEventListener("click",()=>this.#Pn("delete")),this.#Pi()}#Pi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Rn].forEach(t=>f(this,t,{includeAttrs:["size","disabled"]})),this.#Bn(),t.forEach(t=>f(this,t,{includeAttrs:["label-type"]}))}#Bn(){const t=t=>({includeAttrs:[t],mapAttrs:{[t]:"placeholder"}});f(this,this.#En,t("data-column-placeholder")),f(this,this.#kn,t("data-operator-placeholder")),[this.#On,this.#Vn,this.#Wn].forEach(e=>f(this,e,t("data-value-placeholder")))}#Zn(t,e){const i=this.#fn;this.#fn=!0,t.value=e,this.#fn=i}#Qn(){this.shadowRoot.querySelector(".row").addEventListener("input",t=>{this.#fn||(t.target===this.#En?this.#Fn():t.target===this.#kn?this.#Gn():this.#Hn()?this.#Yn():this.#v())})}#Hn(){return!this.#On.classList.contains("hidden")}#Jn(t){return this.#Kt.find(e=>e.id===t)}get trueLabel(){return this.getAttribute("data-value-label-true")||"True"}get falseLabel(){return this.getAttribute("data-value-label-false")||"False"}#$n(){return[{value:"true",label:this.trueLabel},{value:"false",label:this.falseLabel}]}#qn(t){return t?pN(t.inputType,t.operators,mN(this,"operators-catalog")).map(t=>{const e=this.getAttribute(`data-operator-label-${t.id}`);return e?{...t,label:e}:t}):[]}#Fn(){const t=this.#Jn(this.#En.value);if(!t)return;this.#Yn.cancel();const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}));const i=e.find(t=>t.id===this.#kn.value)||e[0];i&&this.#Zn(this.#kn,i.id);const o=this.#Un,n=t.inputType,r=o!==n;this.#Un=n,this.#_n(t,i,{resetValue:r}),this.#v()}#Gn(){const t=this.#Jn(this.#En.value),e=this.#qn(t).find(t=>t.id===this.#kn.value);this.#_n(t,e),this.#v()}#_n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#Xn(o),xN(o)?this.#Kn(o,n):jN(o)?this.#tr(t,n):TN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!xN(t)),this.#Vn.classList.toggle("hidden",!jN(t)),this.#Wn.classList.toggle("hidden",!TN(t))}#Kn(t,e){"number"===t?this.#On.setAttribute("type","number"):"email"===t?this.#On.setAttribute("type","email"):this.#On.removeAttribute("type"),e&&this.#Zn(this.#On,"")}#tr(t,e){const i="boolean"===t.inputType?this.#$n():t.options||[];this.#Vn.data=i.map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Vn,"")}#er(t,e){this.#Wn.data=(t.options||[]).map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Wn,[])}#ir(t){return TN(t)?this.#Wn:jN(t)?this.#Vn:xN(t)?this.#On:null}#or(t){const e=this.#ir(t.inputType);return e?e.value??(TN(t.inputType)?[]:""):null}#nr(){const t=this.#En?.value||"",e=this.#kn?.value||"",i=this.#Jn(t),o=this.#qn(i).find(t=>t.id===e),n=!!o?.noValue,r=o&&!n&&i?this.#or(i):null;return{id:this.#Ln,column:t,operator:e,value:r,noValue:n}}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#v(){this.#Pn("change",{value:this.#nr()})}async#rr(t){if(this.#Ln=t.id??null,t.column){this.#fn=!0;try{const e=this.#Jn(t.column);if(!e)return;await DN(),this.#En.value=t.column;const i=this.#qn(e);if(this.#kn.data=i.map(t=>({value:t.id,label:t.label})),t.operator){await DN(),this.#kn.value=t.operator;const o=i.find(e=>e.id===t.operator);this.#_n(e,o)}null!==t.value&&void 0!==t.value&&(await DN(),this.#sr(e,t.value))}finally{this.#fn=!1}}}#sr(t,e){const i=t.inputType,o=this.#ir(i);o&&(TN(i)?this.#Zn(o,Array.isArray(e)?e:[]):jN(i)?this.#Zn(o,String(e)):this.#Zn(o,e??""))}#ar(t){const e="floating"===t;[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn].forEach(t=>{if(t)if(e){const e=t.getAttribute("placeholder");e&&t.setAttribute("label",e)}else t.removeAttribute("label")})}get value(){return JSON.stringify(this.#nr())}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&this.#lr(i),"value"===t&&this.#dr(i),"label-type"===t&&this.#ar(i),"disable-delete"===t&&this.#cr(i),("operators-catalog"===t||t.startsWith("data-operator-label-"))&&this.#ur(),"data-value-label-true"!==t&&"data-value-label-false"!==t||this.#pr())}#lr(t){if(t)try{this.#Kt=JSON.parse(t),this.#En.data=this.#Kt.map(t=>({value:t.id,label:t.label}))}catch{}}#dr(t){if(t)try{this.#rr(JSON.parse(t))}catch{}}#cr(t){null!==t&&"false"!==t?this.#Rn.setAttribute("disabled","true"):this.#Rn.removeAttribute("disabled")}#pr(){const t=this.#Jn(this.#En?.value);t&&"boolean"===t.inputType&&this.#Vn&&(this.#Vn.data=this.#$n())}#ur(){const t=this.#Jn(this.#En?.value);if(!t||!this.#kn)return;const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}))}})(It({componentName:bN,baseSelector:".row"})),CN=A("filter-rows"),{host:SN,container:wN,rowsList:AN,actions:LN,addRowIcon:fN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},EN=T(ht({mappings:{hostWidth:{...SN,property:"width"},hostMinWidth:{...SN,property:"min-width"},hostDirection:[{...SN,property:"direction"},{selector:()=>Wo.componentName,property:Wo.cssVarList.hostDirection},{selector:()=>zN.componentName,property:zN.cssVarList.hostDirection}],containerWidth:{...wN,property:"width"},containerPadding:{...wN,property:"padding"},containerGap:{...wN,property:"gap"},listGap:{...AN,property:"gap"},listMaxHeight:{...AN,property:"max-height"},actionsGap:{...LN,property:"gap"},addRowIconSize:[{...fN,property:"width"},{...fN,property:"height"}]}}),Mt,t=>class extends t{#ze=[];#hr=0;#gr(){return this.#hr+=1,`row-${this.#hr}`}#Mr(){return{id:this.#gr(),column:"",operator:"",value:null}}#mr(t){const e=t.value,i=null!=e&&""!==e&&!(Array.isArray(e)&&0===e.length);return!t.column&&!t.operator&&!i}#yr=[];#br;#Nr;#Ir;#xr;static get observedAttributes(){return[...t.observedAttributes||[],"data","value","clear-all-button-label","add-button-label","max-rows"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="container">\n <div class="rows-list"></div>\n <div class="actions">\n <descope-button class="add-row" variant="link" mode="primary">\n <slot name="add-row-icon" slot="prefix"></slot>\n <span class="add-button-label">Add filter</span>\n </descope-button>\n <descope-button class="clear-all" variant="link" mode="error">Clear all</descope-button>\n </div>\n </div>\n ',E('\n :host {\n display: block;\n box-sizing: border-box;\n }\n .container {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .rows-list {\n display: flex;\n flex-direction: column;\n overflow: hidden auto;\n }\n .rows-list:empty {\n display: none;\n }\n .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n .add-row {\n margin-inline-end: auto;\n }\n .hidden {\n display: none;\n }\n ::slotted([slot="add-row-icon"]) {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n ',this),this.#br=this.shadowRoot.querySelector(".rows-list"),this.#Nr=this.shadowRoot.querySelector(".add-row"),this.#Ir=this.shadowRoot.querySelector(".add-button-label"),this.#xr=this.shadowRoot.querySelector(".clear-all")}init(){super.init?.(),z(this,this.#jr.bind(this)),this.#Nr.addEventListener("click",this.#Tr.bind(this)),this.#xr.addEventListener("click",this.#Dr.bind(this)),this.#br.addEventListener("change",this.#vr.bind(this)),this.#br.addEventListener("delete",this.#zr.bind(this)),[this.#Nr,this.#xr].forEach(t=>f(this,t,{includeAttrs:["size"]})),this.#Cr(),this.#jr(),this.#Sr(),this.#fe(),setTimeout(()=>this.#wr())}#Cr(){const t=mN(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(bN).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#Ar(t)})}#Lr(){const t=new Set(this.#ze.map(t=>t.id));this.#br.querySelectorAll(bN).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${bN}[data-row-id="${t}"]`)}#fe(){this.#Lr(),this.#ze.forEach(t=>{(this.#fr(t.id)||this.#Er(t.id)).setAttribute("value",JSON.stringify(t))}),this.#wr(),this.#kr()}#Er(t){const e=document.createElement(bN);return e.dataset.rowId=t,this.#br.appendChild(e),f(this,e,{includeAttrs:["data","size","label-type","operators-catalog","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...dN]}),this.#Ar(e),e}#Ar(t){Array.from(this.children).filter(t=>"delete-row-icon"===t.getAttribute?.("slot")).forEach(e=>{const i=e.cloneNode(!0);i.setAttribute("slot","delete-row-icon"),t.appendChild(i)})}#wr(){const t=1===this.#ze.length&&this.#mr(this.#ze[0]);this.#br.querySelectorAll(bN).forEach(e=>{t?e.setAttribute("disable-delete",""):e.removeAttribute("disable-delete")}),t?this.#xr.setAttribute("disabled","true"):this.#xr.removeAttribute("disabled")}#Sr(){0===this.#ze.length&&(this.#ze=[this.#Mr()])}#kr(){const t=parseInt(this.getAttribute("max-rows"),10),e=!Number.isNaN(t)&&this.#ze.length>=t;this.#Nr.classList.toggle("hidden",e)}#Tr(){this.#ze=[...this.#ze,this.#Mr()],this.#fe(),this.#v()}#Dr(){this.#ze=[this.#Mr()],this.#fe(),this.#Pn("clear")}#vr(t){const e=t.target.closest(bN);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#ze=this.#ze.map(e=>e.id===i?t.detail.value:e),this.#wr(),this.#v()}#zr(t){const e=t.target.closest(bN);if(!e)return;const i=e.dataset.rowId;this.#ze=this.#ze.filter(t=>t.id!==i),this.#Sr(),this.#fe(),this.#v()}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Or({column:t,operator:e}){const i=this.#yr.find(e=>e.id===t);return i&&pN(i.inputType,i.operators,mN(this,"operators-catalog")).find(t=>t.id===e)||null}#Vr(t){const e=this.#Or(t);return e?{...null!=e.prefix&&{prefix:e.prefix},...null!=e.suffix&&{suffix:e.suffix}}:{}}#v(){const t=t=>({column:t.column,operator:t.operator,value:t.value,...this.#Vr(t)}),e=this.#ze.filter(hN).map(t),i=this.#ze.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Pn("change",{value:e,rows:i})}get value(){return JSON.stringify(this.#ze)}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}get addButtonLabel(){return this.getAttribute("add-button-label")||"Add filter"}get clearAllButtonLabel(){return this.getAttribute("clear-all-button-label")||"Clear all"}#Wr(){this.#Ir.textContent=this.addButtonLabel}#Rr(){this.#xr.textContent=this.clearAllButtonLabel}#Ur(t){if(t)try{const e=JSON.parse(t);this.#ze=(Array.isArray(e)?e:[]).map(t=>{const e=this.#Or(t);return{...t,id:t.id||this.#gr(),...e&&{noValue:!!e.noValue}}}),this.#Sr(),this.#fe()}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&(this.#Cr(),this.#fe()),"value"===t&&this.#Ur(i),"add-button-label"===t&&this.#Wr(),"clear-all-button-label"===t&&this.#Rr(),"max-rows"===t&&this.#kr())}})(It({componentName:CN,baseSelector:".container"})),kN=A("filter"),ON=It({componentName:kN,baseSelector:"vaadin-popover"}),VN=["add-row-icon","delete-row-icon"],{host:WN,overlay:RN,backdrop:UN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},YN=T(ht({mappings:{hostWidth:{...WN,property:"width"},hostDirection:[{...WN,property:"direction"},{selector:()=>Wo.componentName,property:Wo.cssVarList.hostDirection},{selector:()=>EN.componentName,property:EN.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:()=>Hy.componentName,property:Hy.cssVarList.offsetX},counterOffsetY:{selector:()=>Hy.componentName,property:Hy.cssVarList.offsetY},rowsHostWidth:{selector:()=>EN.componentName,property:EN.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>EN.componentName,property:EN.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>EN.componentName,property:EN.cssVarList.containerPadding},rowsContainerGap:{selector:()=>EN.componentName,property:EN.cssVarList.containerGap},rowsListGap:{selector:()=>EN.componentName,property:EN.cssVarList.listGap},rowsListMaxHeight:{selector:()=>EN.componentName,property:EN.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>EN.componentName,property:EN.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>EN.componentName,property:EN.cssVarList.addRowIconSize},rowWidth:{...WN,property:zN.cssVarList.hostWidth},rowMinWidth:{...WN,property:zN.cssVarList.hostMinWidth},rowValueWidth:{...WN,property:zN.cssVarList.inputWidth},rowGap:{...WN,property:zN.cssVarList.rowGap},rowDisabledDeleteColor:{...WN,property:zN.cssVarList.deleteDisabledIconColor}}}),Ot({name:"overlay",selector:"",mappings:{marginTop:{...RN,property:"margin-top"},width:{...RN},backgroundColor:{...RN},backdropBackgroundColor:{...UN,property:"background-color"},backdropPointerEvents:{...UN,property:"pointer-events"},padding:{...RN},boxShadow:{...RN},borderRadius:{...RN},outlineWidth:{...RN},outlineColor:{...RN},outlineStyle:{...RN}}}),gt,Mt)(class extends ON{#Yr=[];#Qr=!1;#ct;#R=null;#Pr=null;#Br=null;static get observedAttributes(){return[...ON.observedAttributes||[],"label","disable-indicator","data","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-attachment class="attachment" position="top-end" st-offset-x="0px">\n <descope-button class="trigger-btn">\n <slot name="button-icon"></slot>\n <span class="trigger-label"></span>\n </descope-button>\n <descope-badge slot="attachment" class="counter hidden" mode="primary" variant="contained" bordered="true" size="xs">\n <span class="counter-text">0</span>\n </descope-badge>\n </descope-attachment>\n <vaadin-popover></vaadin-popover>\n <slot name="add-row-icon" class="hidden"></slot>\n <slot name="delete-row-icon" class="hidden"></slot>\n </div>\n ',E('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host([full-width="true"]) {\n display: block;\n }\n\n /* Block (not the attachment\'s own inline-block) so host width set from\n outside (e.g. container items-grow) flows down to the trigger button;\n anchored\'s flex-grow on the anchor carries it the rest of the way. */\n .attachment {\n display: block;\n }\n\n\n .hidden {\n display: none;\n }\n\n :host([read-only="true"]) .trigger-btn {\n pointer-events: none;\n }\n ',this),this.triggerBtn=this.shadowRoot.querySelector(".trigger-btn"),this.triggerLabel=this.shadowRoot.querySelector(".trigger-label"),this.counter=this.shadowRoot.querySelector(".counter"),this.counterText=this.shadowRoot.querySelector(".counter-text")}get opened(){return"true"===this.getAttribute("opened")}get isIndicatorVisible(){return"true"!==this.getAttribute("disable-indicator")}get isFullWidth(){return"true"===this.getAttribute("full-width")}get overlay(){return this.#Br??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Br}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(CN)||null}init(){super.init?.(),this.#Uo(),this.#Zr(),this.#Fr(),f(this,this.triggerBtn,{includeAttrs:["button-mode","button-variant","size","full-width"],mapAttrs:{"button-mode":"mode","button-variant":"variant"}}),this.#Gr(),setTimeout(()=>{this.#it()})}#Gr(){VN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Pr?.isConnected&&gN(this,this.#Pr,[t])})})}#Uo(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#dt(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(CN);f(this,e,{includeAttrs:["operators","size","max-rows","clear-all-button-label","add-button-label","label-type","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...dN],mapAttrs:{operators:"operators-catalog"}}),this.#Hr(e),t.appendChild(e),this.#Pr=e,e.setAttribute("value",JSON.stringify(this.#Yr)),e.addEventListener("change",this.#Jr.bind(this)),e.addEventListener("clear",this.#$r.bind(this));const i=new CSSStyleSheet;i.insertRule(":host{display:block!important;}"),this.baseElement?.shadowRoot?.adoptedStyleSheets?.push(i),this.backdrop?.addEventListener("click",()=>this.closePopover())}this.#Pr&&gN(this,this.#Pr,VN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(),t.style.setProperty("visibility","visible")},50)}#pt(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ct&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ct));const e=document.body.getBoundingClientRect(),i=this.triggerBtn.getBoundingClientRect(),o=this.overlay.getBoundingClientRect(),n=i.left-o.left,r=o.left,s=e.width-o.right;let a;a=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),r);const l=Math.round(this.getBoundingClientRect().width);this.#ct=E(`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${a}px;\n ${this.isFullWidth?`width: ${l}px; max-width: ${l}px;`:""}\n }\n `,t)}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#qr(t){this.#Qr=!0,this.setAttribute("value",JSON.stringify(MN(t))),this.#Qr=!1}#Jr(t){const e=MN(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Yr)&&(this.#qr(e),this.#Pn("filter-apply",{value:this.#Yr,action:"apply"}))}#$r(){this.#qr([]),this.#Pn("filter-clear",{value:this.#Yr,action:"clear-all"})}#Zr(){if(!this.counter)return;const t=this.#Yr.length;this.counterText.textContent=String(t),this.counter.classList.toggle("hidden",t<1||!this.isIndicatorVisible)}#Fr(){if(!this.triggerLabel)return;const t=this.getAttribute("label")||"";this.triggerLabel.textContent=t,this.triggerLabel.classList.toggle("hidden",!t)}#Hr(t){t&&this.#R&&t.setAttribute("data",JSON.stringify(this.#R))}get value(){return JSON.stringify(this.#Yr)}set value(t){this.#qr(t)}set data(t){this.#R=Array.isArray(t)?t:null,this.filterRowsElement&&this.#R&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#R))}get data(){return this.#R}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{})}get readOnly(){return"true"===this.getAttribute("read-only")}onPopoverToggle(){this.readOnly||(this.opened?this.closePopover():this.openPopover())}openPopover(){this.setAttribute("opened","true"),this.baseElement.opened=!0}closePopover(){this.removeAttribute("opened"),this.baseElement.opened=!1}#_r(t){t&&(this.#Yr=MN(t),this.#Zr(),this.#Qr||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Yr)))}#Xr(t){if(t)try{this.#R=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#R))}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("value"===t&&this.#_r(i),"data"===t&&this.#Xr(i),"label"===t&&this.#Fr(),"disable-indicator"===t&&this.#Zr())}}),QN=nt(zp),PN="#00000020",{shadow:BN}=QN,ZN=YN.cssVarList,FN={[ZN.counterBorderRadius]:"50%",[ZN.counterWidth]:"1.5em",[ZN.counterHeight]:"1.5em",[ZN.counterFontSize]:"0.5em",[ZN.counterLineHeight]:"2.25em",[ZN.counterBackgroundColor]:QN.colors.primary.main,[ZN.counterTextColor]:QN.colors.primary.contrast,[ZN.counterOffsetX]:"-0.725em",[ZN.counterOffsetY]:"0",_fullWidth:{[ZN.hostWidth]:"100%"},[ZN.overlay.backgroundColor]:QN.colors.surface.main,[ZN.overlay.backdropBackgroundColor]:"transparent",[ZN.overlay.backdropPointerEvents]:"all",[ZN.overlay.boxShadow]:`${BN.wide.xl} ${PN}, ${BN.narrow.xl} ${PN}`,[ZN.overlay.borderRadius]:zp.radius.xs,[ZN.overlay.outlineWidth]:"0",[ZN.overlay.outlineColor]:"transparent",[ZN.overlay.outlineStyle]:"none",[ZN.overlay.padding]:"0",[ZN.rowsHostWidth]:"100%",[ZN.rowsContainerWidth]:"100%",[ZN.rowsContainerPadding]:QN.spacing.lg,[ZN.rowsContainerGap]:QN.spacing.md,[ZN.rowsListGap]:QN.spacing.sm,[ZN.rowsListMaxHeight]:"400px",[ZN.rowsActionsGap]:QN.spacing.md,[ZN.rowsAddRowIconSize]:"1.25em",[ZN.rowWidth]:"100%",[ZN.rowMinWidth]:"30em",[ZN.rowValueWidth]:"100%",[ZN.rowGap]:QN.spacing.md,[ZN.rowDisabledDeleteColor]:QN.colors.surface.light};var GN=Object.freeze({__proto__:null,default:FN,vars:ZN});const HN=ip.cssVarList,JN={[HN.hostWidth]:Xp.width,[HN.hostMinWidth]:Xp.minWidth,[HN.hostDirection]:Xp.direction,[HN.fontSize]:Xp.fontSize,[HN.fontFamily]:Xp.fontFamily,[HN.labelFontSize]:Xp.labelFontSize,[HN.labelFontWeight]:Xp.labelFontWeight,[HN.inputValueFontWeight]:Xp.inputValueFontWeight,[HN.inputPlaceholderFontWeight]:Xp.inputPlaceholderFontWeight,[HN.helperTextFontWeight]:Xp.helperTextFontWeight,[HN.errorMessageFontWeight]:Xp.errorMessageFontWeight,[HN.labelTextColor]:Xp.labelTextColor,[HN.errorMessageTextColor]:Xp.errorMessageTextColor,[HN.inputValueTextColor]:Xp.valueTextColor,[HN.labelRequiredIndicator]:Xp.requiredIndicator,[HN.inputPlaceholderColor]:Xp.placeholderTextColor,[HN.inputBorderWidth]:Xp.borderWidth,[HN.inputBorderStyle]:Xp.borderStyle,[HN.inputBorderColor]:Xp.borderColor,[HN.inputBorderRadius]:Xp.borderRadius,[HN.inputOutlineWidth]:Xp.outlineWidth,[HN.inputOutlineStyle]:Xp.outlineStyle,[HN.inputOutlineColor]:Xp.outlineColor,[HN.inputOutlineOffset]:Xp.outlineOffset,[HN.inputBackgroundColor]:Xp.backgroundColor,[HN.inputHorizontalPadding]:Xp.horizontalPadding,[HN.inputHeight]:Xp.inputHeight,[HN.labelPosition]:Xp.labelPosition,[HN.labelTopPosition]:Xp.labelTopPosition,[HN.labelHorizontalPosition]:Xp.labelHorizontalPosition,[HN.inputTransformY]:Xp.inputTransformY,[HN.inputTransition]:Xp.inputTransition,[HN.marginInlineStart]:Xp.marginInlineStart,[HN.placeholderOpacity]:Xp.placeholderOpacity,[HN.inputVerticalAlignment]:Xp.inputVerticalAlignment,[HN.valueInputHeight]:Xp.valueInputHeight,[HN.valueInputMarginBottom]:Xp.valueInputMarginBottom,[HN.errorMessageIcon]:Xp.errorMessageIcon,[HN.errorMessageIconSize]:Xp.errorMessageIconSize,[HN.errorMessageIconPadding]:Xp.errorMessageIconPadding,[HN.errorMessageIconRepeat]:Xp.errorMessageIconRepeat,[HN.errorMessageIconPosition]:Xp.errorMessageIconPosition,[HN.errorMessageFontSize]:Xp.errorMessageFontSize};var $N=Object.freeze({__proto__:null,default:JN,vars:HN});const qN=A("new-email-internal"),_N=A("new-email"),{host:XN,label:KN,internalInputsWrapper:tI,errorMessage:eI,helperText:iI,emailInput:oI}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-email-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},emailInput:{selector:"descope-email-field"}},nI=T(ht({mappings:{fontSize:[XN,{},{selector:ip.componentName,property:ip.cssVarList.fontSize}],fontFamily:[KN,eI,iI],labelFontSize:{...KN,property:"font-size"},labelFontWeight:{...KN,property:"font-weight"},inputValueFontWeight:{...oI,property:ip.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...oI,property:ip.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...iI,property:"font-weight"},errorMessageFontWeight:{...eI,property:"font-weight"},labelTextColor:{...KN,property:"color"},errorMessageTextColor:{...eI,property:"color"},errorMessageIcon:{...eI,property:"background-image"},errorMessageIconSize:{...eI,property:"background-size"},errorMessageIconPadding:{...eI,property:"padding-inline-start"},errorMessageIconRepeat:{...eI,property:"background-repeat"},errorMessageIconPosition:{...eI,property:"background-position"},errorMessageFontSize:{...eI,property:"font-size"},hostWidth:{...XN,property:"width"},hostMinWidth:{...XN,property:"min-width"},hostDirection:[{...XN,property:"direction"},{...oI,property:ip.cssVarList.hostDirection}],inputsRequiredIndicator:{...XN,property:"content"},spaceBetweenInputs:{...tI,property:"gap"},valueInputHeight:{...oI,property:ip.cssVarList.valueInputHeight},valueInputMarginBottom:{...oI,property:ip.cssVarList.valueInputMarginBottom}}}),gt,Ut,kt({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e="true"===this.getAttribute("external-input"),i="false"!==this.getAttribute("accept-unicode");t.innerHTML=`\n\t\t\t<${qN}\n\t\t\t\tname="new-email"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n accept-unicode="${i}"\n\t\t\t>\n </${qN}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(qN),e&&this.initExternalInput(),f(this,this.inputElement,{includeAttrs:["email-label","email-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","invalid","readonly","disabled","draggable","label-type"]})}createSlottedExternalInput(t,e,i){const o=t.querySelector("input"),n=document.createElement("slot"),r=o.getAttribute("slot");return n.setAttribute("name",e),n.setAttribute("slot",r),t.appendChild(n),o.setAttribute("slot",e),o.setAttribute("name",i),o.setAttribute("data-hidden-input","true"),this.appendChild(o),o}initExternalInput(){this.emailInput=this.inputElement.querySelector('[data-id="email"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.emailInput,"external-email-input",this.getAttribute("name")),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input",`${this.getAttribute("name")}-confirm`).setAttribute("data-exclude-field","true")}})(At({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${$(ip.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-email-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-email-internal > .wrapper {\n -webkit-mask-image: none;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-email-field {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:_N})),rI=nI.cssVarList,sI={[rI.hostWidth]:Xp.width,[rI.hostMinWidth]:Xp.minWidth,[rI.hostDirection]:Xp.direction,[rI.fontSize]:Xp.fontSize,[rI.fontFamily]:Xp.fontFamily,[rI.labelFontSize]:Xp.labelFontSize,[rI.labelFontWeight]:Xp.labelFontWeight,[rI.inputValueFontWeight]:Xp.inputValueFontWeight,[rI.inputPlaceholderFontWeight]:Xp.inputPlaceholderFontWeight,[rI.helperTextFontWeight]:Xp.helperTextFontWeight,[rI.errorMessageFontWeight]:Xp.errorMessageFontWeight,[rI.labelTextColor]:Xp.labelTextColor,[rI.spaceBetweenInputs]:"1em",[rI.errorMessageTextColor]:Xp.errorMessageTextColor,[rI.valueInputHeight]:Xp.valueInputHeight,[rI.valueInputMarginBottom]:Xp.valueInputMarginBottom,[rI.errorMessageIcon]:Xp.errorMessageIcon,[rI.errorMessageIconSize]:Xp.errorMessageIconSize,[rI.errorMessageIconPadding]:Xp.errorMessageIconPadding,[rI.errorMessageIconRepeat]:Xp.errorMessageIconRepeat,[rI.errorMessageIconPosition]:Xp.errorMessageIconPosition,[rI.errorMessageFontSize]:Xp.errorMessageFontSize,_required:{[rI.inputsRequiredIndicator]:Xp.requiredIndicator}};var aI=Object.freeze({__proto__:null,default:sI,vars:rI});const lI=ie("input-wrapper"),dI=Ae(xp),[cI,uI,pI]=Ue({labelTextColor:dI.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:dI.colors.surface.contrast,placeholderTextColor:dI.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:dI.colors.surface.dark,errorMessageTextColor:dI.colors.error.main,successMessageTextColor:dI.colors.success.main,borderWidth:dI.border.xs,borderRadius:dI.radius.xs,borderColor:"transparent",outlineWidth:dI.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:dI.colors.surface.main,fontFamily:dI.fonts.font1.family,direction:dI.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:dI.border.xs,borderColor:dI.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:dI.colors.error.main}},_focused:{outlineColor:dI.colors.surface.light,_invalid:{outlineColor:dI.colors.error.main}},_disabled:{labelTextColor:dI.colors.surface.light,borderColor:dI.colors.surface.light,valueTextColor:dI.colors.surface.light,placeholderTextColor:dI.colors.surface.light,helperTextColor:dI.colors.surface.light,backgroundColor:dI.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},lI);var hI=Object.freeze({__proto__:null,default:cI,refs:uI,vars:pI});const gI=Ae(xp),MI=us.cssVarList,mI={[MI.hostWidth]:uI.width,[MI.hostMinWidth]:uI.minWidth,[MI.hostDirection]:uI.direction,[MI.fontSize]:uI.fontSize,[MI.fontFamily]:uI.fontFamily,[MI.labelFontSize]:uI.labelFontSize,[MI.labelFontWeight]:uI.labelFontWeight,[MI.inputValueFontWeight]:uI.inputValueFontWeight,[MI.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[MI.helperTextFontWeight]:uI.helperTextFontWeight,[MI.errorMessageFontWeight]:uI.errorMessageFontWeight,[MI.labelTextColor]:uI.labelTextColor,[MI.errorMessageTextColor]:uI.errorMessageTextColor,[MI.inputHorizontalPadding]:uI.horizontalPadding,[MI.inputHeight]:uI.inputHeight,[MI.inputBackgroundColor]:uI.backgroundColor,[MI.labelRequiredIndicator]:uI.requiredIndicator,[MI.inputValueTextColor]:uI.valueTextColor,[MI.inputPlaceholderTextColor]:uI.placeholderTextColor,[MI.inputBorderWidth]:uI.borderWidth,[MI.inputBorderStyle]:uI.borderStyle,[MI.inputBorderColor]:uI.borderColor,[MI.inputBorderRadius]:uI.borderRadius,[MI.inputOutlineWidth]:uI.outlineWidth,[MI.inputOutlineStyle]:uI.outlineStyle,[MI.inputOutlineColor]:uI.outlineColor,[MI.inputOutlineOffset]:uI.outlineOffset,[MI.revealButtonOffset]:gI.spacing.md,[MI.revealButtonSize]:uI.toggleButtonSize,[MI.revealButtonColor]:uI.placeholderTextColor,[MI.labelPosition]:uI.labelPosition,[MI.labelTopPosition]:uI.labelTopPosition,[MI.labelHorizontalPosition]:uI.labelHorizontalPosition,[MI.inputTransformY]:uI.inputTransformY,[MI.inputTransition]:uI.inputTransition,[MI.marginInlineStart]:uI.marginInlineStart,[MI.placeholderOpacity]:uI.placeholderOpacity,[MI.inputVerticalAlignment]:uI.inputVerticalAlignment,[MI.valueInputHeight]:uI.valueInputHeight,[MI.errorMessageIcon]:uI.errorMessageIcon,[MI.errorMessageIconSize]:uI.errorMessageIconSize,[MI.errorMessageIconPadding]:uI.errorMessageIconPadding,[MI.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[MI.errorMessageIconPosition]:uI.errorMessageIconPosition,[MI.errorMessageFontSize]:uI.errorMessageFontSize};var yI=Object.freeze({__proto__:null,default:mI,vars:MI});const bI=Lr.cssVarList,NI={[bI.hostWidth]:uI.width,[bI.hostMinWidth]:uI.minWidth,[bI.hostDirection]:uI.direction,[bI.fontSize]:uI.fontSize,[bI.fontFamily]:uI.fontFamily,[bI.labelFontSize]:uI.labelFontSize,[bI.labelFontWeight]:uI.labelFontWeight,[bI.inputValueFontWeight]:uI.inputValueFontWeight,[bI.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[bI.helperTextFontWeight]:uI.helperTextFontWeight,[bI.errorMessageFontWeight]:uI.errorMessageFontWeight,[bI.labelTextColor]:uI.labelTextColor,[bI.errorMessageTextColor]:uI.errorMessageTextColor,[bI.inputValueTextColor]:uI.valueTextColor,[bI.inputPlaceholderColor]:uI.placeholderTextColor,[bI.inputBorderWidth]:uI.borderWidth,[bI.inputBorderStyle]:uI.borderStyle,[bI.inputBorderColor]:uI.borderColor,[bI.inputBorderRadius]:uI.borderRadius,[bI.inputOutlineWidth]:uI.outlineWidth,[bI.inputOutlineStyle]:uI.outlineStyle,[bI.inputOutlineColor]:uI.outlineColor,[bI.inputOutlineOffset]:uI.outlineOffset,[bI.inputBackgroundColor]:uI.backgroundColor,[bI.labelRequiredIndicator]:uI.requiredIndicator,[bI.inputHorizontalPadding]:uI.horizontalPadding,[bI.inputHeight]:uI.inputHeight,[bI.labelPosition]:uI.labelPosition,[bI.labelTopPosition]:uI.labelTopPosition,[bI.labelHorizontalPosition]:uI.labelHorizontalPosition,[bI.inputTransformY]:uI.inputTransformY,[bI.inputTransition]:uI.inputTransition,[bI.marginInlineStart]:uI.marginInlineStart,[bI.placeholderOpacity]:uI.placeholderOpacity,[bI.inputVerticalAlignment]:uI.inputVerticalAlignment,[bI.valueInputHeight]:uI.valueInputHeight,[bI.valueInputMarginBottom]:uI.valueInputMarginBottom,[bI.errorMessageIcon]:uI.errorMessageIcon,[bI.errorMessageIconSize]:uI.errorMessageIconSize,[bI.errorMessageIconPadding]:uI.errorMessageIconPadding,[bI.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[bI.errorMessageIconPosition]:uI.errorMessageIconPosition,[bI.errorMessageFontSize]:uI.errorMessageFontSize};var II=Object.freeze({__proto__:null,default:NI,vars:bI});const xI=xs.cssVarList,jI={[xI.hostWidth]:uI.width,[xI.hostMinWidth]:uI.minWidth,[xI.hostDirection]:uI.direction,[xI.fontSize]:uI.fontSize,[xI.fontFamily]:uI.fontFamily,[xI.labelFontSize]:uI.labelFontSize,[xI.labelFontWeight]:uI.labelFontWeight,[xI.inputValueFontWeight]:uI.inputValueFontWeight,[xI.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[xI.helperTextFontWeight]:uI.helperTextFontWeight,[xI.errorMessageFontWeight]:uI.errorMessageFontWeight,[xI.labelTextColor]:uI.labelTextColor,[xI.labelRequiredIndicator]:uI.requiredIndicator,[xI.errorMessageTextColor]:uI.errorMessageTextColor,[xI.inputBackgroundColor]:uI.backgroundColor,[xI.inputValueTextColor]:uI.valueTextColor,[xI.inputPlaceholderTextColor]:uI.placeholderTextColor,[xI.inputBorderRadius]:uI.borderRadius,[xI.inputBorderWidth]:uI.borderWidth,[xI.inputBorderStyle]:uI.borderStyle,[xI.inputBorderColor]:uI.borderColor,[xI.inputOutlineWidth]:uI.outlineWidth,[xI.inputOutlineStyle]:uI.outlineStyle,[xI.inputOutlineColor]:uI.outlineColor,[xI.inputOutlineOffset]:uI.outlineOffset,[xI.inputResizeType]:"vertical",[xI.inputMinHeight]:"5em",[xI.errorMessageIcon]:uI.errorMessageIcon,[xI.errorMessageIconSize]:uI.errorMessageIconSize,[xI.errorMessageIconPadding]:uI.errorMessageIconPadding,[xI.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[xI.errorMessageIconPosition]:uI.errorMessageIconPosition,[xI.errorMessageFontSize]:uI.errorMessageFontSize,textAlign:{right:{[xI.inputTextAlign]:"right"},left:{[xI.inputTextAlign]:"left"},center:{[xI.inputTextAlign]:"center"}},_readonly:{[xI.inputResizeType]:"none"}};var TI=Object.freeze({__proto__:null,default:jI,vars:xI});const DI=Si.cssVarList,vI="1.35em",zI={[DI.hostWidth]:uI.width,[DI.hostDirection]:uI.direction,[DI.fontSize]:uI.fontSize,[DI.fontFamily]:uI.fontFamily,[DI.labelTextColor]:uI.labelTextColor,[DI.labelRequiredIndicator]:uI.requiredIndicator,[DI.labelFontWeight]:"400",[DI.labelLineHeight]:vI,[DI.labelSpacing]:"1em",[DI.errorMessageTextColor]:uI.errorMessageTextColor,[DI.inputOutlineWidth]:uI.outlineWidth,[DI.inputOutlineOffset]:uI.outlineOffset,[DI.inputOutlineColor]:uI.outlineColor,[DI.inputOutlineStyle]:uI.outlineStyle,[DI.inputBorderRadius]:uI.borderRadius,[DI.inputBorderColor]:uI.borderColor,[DI.inputBorderWidth]:uI.borderWidth,[DI.inputBorderStyle]:uI.borderStyle,[DI.inputBackgroundColor]:uI.backgroundColor,[DI.inputSize]:vI,[DI.inputValueTextColor]:uI.valueTextColor,[DI.errorMessageIcon]:uI.errorMessageIcon,[DI.errorMessageIconSize]:uI.errorMessageIconSize,[DI.errorMessageIconPadding]:uI.errorMessageIconPadding,[DI.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[DI.errorMessageIconPosition]:uI.errorMessageIconPosition,[DI.errorMessageFontSize]:uI.errorMessageFontSize};var CI=Object.freeze({__proto__:null,default:zI,vars:DI});const SI="2px",wI=Ae(xp),AI=Xi.cssVarList,LI={[AI.hostWidth]:uI.width,[AI.hostDirection]:uI.direction,[AI.fontSize]:uI.fontSize,[AI.fontFamily]:uI.fontFamily,[AI.inputOutlineWidth]:uI.outlineWidth,[AI.inputOutlineOffset]:uI.outlineOffset,[AI.inputOutlineColor]:uI.outlineColor,[AI.inputOutlineStyle]:uI.outlineStyle,[AI.trackBorderStyle]:uI.borderStyle,[AI.trackBorderWidth]:uI.borderWidth,[AI.trackBorderColor]:uI.borderColor,[AI.trackBackgroundColor]:uI.backgroundColor,[AI.trackBorderRadius]:wI.radius.md,[AI.trackWidth]:"2.5em",[AI.trackHeight]:"1.25em",[AI.knobSize]:`calc(1em - ${SI})`,[AI.knobRadius]:"50%",[AI.knobTopOffset]:"1px",[AI.knobLeftOffset]:SI,[AI.knobColor]:uI.labelTextColor,[AI.knobTransitionDuration]:"0.3s",[AI.labelTextColor]:uI.labelTextColor,[AI.labelFontWeight]:"400",[AI.labelLineHeight]:"1.35em",[AI.labelSpacing]:"1em",[AI.labelRequiredIndicator]:uI.requiredIndicator,[AI.errorMessageTextColor]:uI.errorMessageTextColor,[AI.errorMessageIcon]:uI.errorMessageIcon,[AI.errorMessageIconSize]:uI.errorMessageIconSize,[AI.errorMessageIconPadding]:uI.errorMessageIconPadding,[AI.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[AI.errorMessageIconPosition]:uI.errorMessageIconPosition,[AI.errorMessageFontSize]:uI.errorMessageFontSize,_checked:{[AI.trackBorderColor]:uI.borderColor,[AI.knobLeftOffset]:`calc(100% - var(${AI.knobSize}) - ${SI})`,[AI.knobColor]:uI.valueTextColor,[AI.knobTextColor]:uI.valueTextColor},_disabled:{[AI.knobColor]:wI.colors.surface.light,[AI.trackBorderColor]:wI.colors.surface.light,[AI.trackBackgroundColor]:wI.colors.surface.main,[AI.labelTextColor]:uI.labelTextColor,_checked:{[AI.knobColor]:wI.colors.surface.light,[AI.trackBackgroundColor]:wI.colors.surface.main}},_invalid:{[AI.trackBorderColor]:wI.colors.error.main,[AI.knobColor]:wI.colors.error.main}};var fI=Object.freeze({__proto__:null,default:LI,vars:AI});const EI=Ae(xp),kI=co.cssVarList,[OI,VI,WI]=Ue({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},ao),{shadowColor:RI}=VI,UI={...OI,[kI.itemsGrow]:"0",[kI.hostWidth]:"100%",[kI.hostHeight]:"auto",[kI.boxShadow]:"none",[kI.backgroundColor]:EI.colors.surface.main,[kI.backgroundImage]:"",[kI.backgroundPositionX]:"center",[kI.backgroundPositionY]:"center",[kI.backgroundSize]:"cover",[kI.backgroundRepeat]:"no-repeat",[kI.color]:EI.colors.surface.contrast,[kI.borderRadius]:"0px",[kI.hostDirection]:EI.direction,[kI.borderStyle]:"none",[kI.borderWidth]:"unset",[kI.borderColor]:"unset",verticalPadding:{sm:{[kI.verticalPadding]:"5px"},md:{[kI.verticalPadding]:"10px"},lg:{[kI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[kI.horizontalPadding]:"5px"},md:{[kI.horizontalPadding]:"10px"},lg:{[kI.horizontalPadding]:"20px"}},direction:{row:{[kI.flexDirection]:"row",[kI.alignItems]:VI.verticalAlignment,[kI.justifyContent]:VI.horizontalAlignment,[kI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[WI.horizontalAlignment]:"space-between"}}},column:{[kI.flexDirection]:"column",[kI.alignItems]:VI.horizontalAlignment,[kI.justifyContent]:VI.verticalAlignment,verticalAlignment:{spaceBetween:{[WI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[kI.gap]:"10px"},md:{[kI.gap]:"20px"},lg:{[kI.gap]:"30px"}},shadow:{sm:{[kI.boxShadow]:`${EI.shadow.wide.sm} ${RI}, ${EI.shadow.narrow.sm} ${RI}`},md:{[kI.boxShadow]:`${EI.shadow.wide.md} ${RI}, ${EI.shadow.narrow.md} ${RI}`},lg:{[kI.boxShadow]:`${EI.shadow.wide.lg} ${RI}, ${EI.shadow.narrow.lg} ${RI}`},xl:{[kI.boxShadow]:`${EI.shadow.wide.xl} ${RI}, ${EI.shadow.narrow.xl} ${RI}`},"2xl":{[WI.shadowColor]:"#00000050",[kI.boxShadow]:`${EI.shadow.wide["2xl"]} ${RI}`}},"&borderRadius":{sm:{[kI.borderRadius]:EI.radius.sm},md:{[kI.borderRadius]:EI.radius.md},lg:{[kI.borderRadius]:EI.radius.lg},xl:{[kI.borderRadius]:EI.radius.xl},"2xl":{[kI.borderRadius]:EI.radius["2xl"]},"3xl":{[kI.borderRadius]:EI.radius["3xl"]}}},YI={...kI,...WI};var QI=Object.freeze({__proto__:null,default:UI,vars:YI});const PI=vr.cssVarList,BI={[PI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var ZI=Object.freeze({__proto__:null,default:BI,vars:PI});const FI=Cr.cssVarList,GI={[FI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var HI=Object.freeze({__proto__:null,default:GI,vars:FI});const JI=wr.cssVarList,$I={[JI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var qI=Object.freeze({__proto__:null,default:$I,vars:JI});const _I=Ae(xp),XI=jr.cssVarList,[KI,tx,ex]=Ue({thickness:"2px",spacing:"10px"},Mr),ix={...KI,[XI.hostDirection]:_I.direction,[XI.alignItems]:"center",[XI.flexDirection]:"row",[XI.alignSelf]:"stretch",[XI.hostWidth]:"100%",[XI.stripeColor]:_I.colors.surface.light,[XI.stripeColorOpacity]:"0.5",[XI.stripeHorizontalThickness]:tx.thickness,[XI.labelTextWidth]:"fit-content",[XI.labelTextMaxWidth]:"calc(100% - 100px)",[XI.labelTextHorizontalSpacing]:tx.spacing,[XI.textAlign]:"center",_vertical:{[XI.minHeight]:"200px",[XI.flexDirection]:"column",[XI.hostWidth]:"fit-content",[XI.hostPadding]:`0 calc(${tx.thickness} * 3)`,[XI.stripeVerticalThickness]:tx.thickness,[XI.labelTextWidth]:"fit-content",[XI.labelTextMaxWidth]:"100%",[XI.labelTextVerticalSpacing]:tx.spacing}},ox={...XI,...ex};var nx=Object.freeze({__proto__:null,default:ix,vars:ox});const rx=Kr.cssVarList,sx={[rx.hostDirection]:uI.direction,[rx.fontFamily]:uI.fontFamily,[rx.fontSize]:uI.fontSize,[rx.labelTextColor]:uI.labelTextColor,[rx.labelRequiredIndicator]:uI.requiredIndicator,[rx.labelFontWeight]:uI.labelFontWeight,[rx.errorMessageTextColor]:uI.errorMessageTextColor,[rx.errorMessageFontWeight]:uI.errorMessageFontWeight,[rx.digitValueTextColor]:uI.valueTextColor,[rx.digitValueFontWeight]:uI.inputValueFontWeight,[rx.digitPadding]:"0",[rx.digitTextAlign]:"center",[rx.digitSpacing]:"4px",[rx.hostWidth]:uI.width,[rx.digitOutlineColor]:"transparent",[rx.digitOutlineWidth]:uI.outlineWidth,[rx.focusedDigitFieldOutlineColor]:uI.outlineColor,[rx.digitSize]:uI.inputHeight,[rx.errorMessageIcon]:uI.errorMessageIcon,[rx.errorMessageIconSize]:uI.errorMessageIconSize,[rx.errorMessageIconPadding]:uI.errorMessageIconPadding,[rx.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[rx.errorMessageIconPosition]:uI.errorMessageIconPosition,[rx.errorMessageFontSize]:uI.errorMessageFontSize,size:{xs:{[rx.spinnerSize]:"15px"},sm:{[rx.spinnerSize]:"20px"},md:{[rx.spinnerSize]:"20px"},lg:{[rx.spinnerSize]:"20px"}},_hideCursor:{[rx.digitCaretTextColor]:"transparent"},_loading:{[rx.overlayOpacity]:uI.overlayOpacity}};var ax=Object.freeze({__proto__:null,default:sx,vars:rx});const lx=Ae(xp),dx=oo.cssVarList,cx={[dx.hostDisplay]:"inline-block",[dx.hostWidth]:"100%",[dx.barColor]:lx.colors.surface.contrast,[dx.barWidth]:"20%",[dx.barBackgroundColor]:lx.colors.surface.light,[dx.barBorderRadius]:"4px",[dx.animationDuration]:"2s",[dx.animationTimingFunction]:"linear",[dx.animationIterationCount]:"infinite",[dx.verticalPadding]:"0.25em",size:{xs:{[dx.barHeight]:"2px"},sm:{[dx.barHeight]:"4px"},md:{[dx.barHeight]:"6px"},lg:{[dx.barHeight]:"8px"}},mode:{primary:{[dx.barColor]:lx.colors.primary.main},secondary:{[dx.barColor]:lx.colors.secondary.main}},_hidden:{[dx.hostDisplay]:"none"}};var ux=Object.freeze({__proto__:null,default:cx,vars:dx});const px=Ae(xp),hx=so.cssVarList,[gx,Mx,mx]=Ue({spinnerColor:px.colors.surface.contrast,mode:{primary:{spinnerColor:px.colors.primary.main},secondary:{spinnerColor:px.colors.secondary.main}}},no),yx={...gx,[hx.animationDuration]:"2s",[hx.animationTimingFunction]:"linear",[hx.animationIterationCount]:"infinite",[hx.spinnerBorderStyle]:"solid",[hx.spinnerBorderWidth]:"0.2em",[hx.spinnerBorderRadius]:"50%",[hx.spinnerQuadrant1Color]:Mx.spinnerColor,[hx.spinnerQuadrant2Color]:"transparent",[hx.spinnerQuadrant3Color]:Mx.spinnerColor,[hx.spinnerQuadrant4Color]:"transparent",size:{xs:{[hx.spinnerSize]:"20px"},sm:{[hx.spinnerSize]:"30px"},md:{[hx.spinnerSize]:"40px"},lg:{[hx.spinnerSize]:"60px"},xl:{[hx.spinnerSize]:"80px"}},_hidden:{[hx.hostDisplay]:"none"}},bx={...hx,...mx};var Nx=Object.freeze({__proto__:null,default:yx,vars:bx});const Ix=Fs.cssVarList,xx={[Ix.hostWidth]:uI.width,[Ix.hostDirection]:uI.direction,[Ix.fontSize]:uI.fontSize,[Ix.fontFamily]:uI.fontFamily,[Ix.labelFontSize]:uI.labelFontSize,[Ix.labelFontWeight]:uI.labelFontWeight,[Ix.inputValueFontWeight]:uI.inputValueFontWeight,[Ix.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[Ix.helperTextFontWeight]:uI.helperTextFontWeight,[Ix.errorMessageFontWeight]:uI.errorMessageFontWeight,[Ix.labelTextColor]:uI.labelTextColor,[Ix.labelRequiredIndicator]:uI.requiredIndicator,[Ix.errorMessageTextColor]:uI.errorMessageTextColor,[Ix.inputValueTextColor]:uI.valueTextColor,[Ix.inputPlaceholderTextColor]:uI.placeholderTextColor,[Ix.inputBorderStyle]:uI.borderStyle,[Ix.inputBorderWidth]:uI.borderWidth,[Ix.inputBorderColor]:uI.borderColor,[Ix.inputBorderRadius]:uI.borderRadius,[Ix.inputOutlineStyle]:uI.outlineStyle,[Ix.inputOutlineWidth]:uI.outlineWidth,[Ix.inputOutlineColor]:uI.outlineColor,[Ix.inputOutlineOffset]:uI.outlineOffset,[Ix.phoneInputWidth]:uI.minWidth,[Ix.countryCodeInputWidth]:"5em",[Ix.countryCodeDropdownWidth]:"20em",[Ix.marginInlineStart]:"-0.25em",[Ix.valueInputHeight]:uI.valueInputHeight,[Ix.valueInputMarginBottom]:uI.valueInputMarginBottom,[Ix.errorMessageIcon]:uI.errorMessageIcon,[Ix.errorMessageIconSize]:uI.errorMessageIconSize,[Ix.errorMessageIconPadding]:uI.errorMessageIconPadding,[Ix.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[Ix.errorMessageIconPosition]:uI.errorMessageIconPosition,[Ix.errorMessageFontSize]:uI.errorMessageFontSize};var jx=Object.freeze({__proto__:null,default:xx,vars:Ix});const Tx=la.cssVarList,Dx={[Tx.hostWidth]:"16em",[Tx.hostMinWidth]:uI.minWidth,[Tx.hostDirection]:uI.direction,[Tx.fontSize]:uI.fontSize,[Tx.fontFamily]:uI.fontFamily,[Tx.labelFontSize]:uI.labelFontSize,[Tx.labelFontWeight]:uI.labelFontWeight,[Tx.inputValueFontWeight]:uI.inputValueFontWeight,[Tx.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[Tx.helperTextFontWeight]:uI.helperTextFontWeight,[Tx.errorMessageFontWeight]:uI.errorMessageFontWeight,[Tx.labelTextColor]:uI.labelTextColor,[Tx.labelRequiredIndicator]:uI.requiredIndicator,[Tx.errorMessageTextColor]:uI.errorMessageTextColor,[Tx.inputValueTextColor]:uI.valueTextColor,[Tx.inputPlaceholderTextColor]:uI.placeholderTextColor,[Tx.inputBorderStyle]:uI.borderStyle,[Tx.inputBorderWidth]:uI.borderWidth,[Tx.inputBorderColor]:uI.borderColor,[Tx.inputBorderRadius]:uI.borderRadius,[Tx.inputOutlineStyle]:uI.outlineStyle,[Tx.inputOutlineWidth]:uI.outlineWidth,[Tx.inputOutlineColor]:uI.outlineColor,[Tx.inputOutlineOffset]:uI.outlineOffset,[Tx.labelPosition]:uI.labelPosition,[Tx.labelTopPosition]:uI.labelTopPosition,[Tx.labelHorizontalPosition]:uI.labelHorizontalPosition,[Tx.inputTransformY]:uI.inputTransformY,[Tx.inputTransition]:uI.inputTransition,[Tx.marginInlineStart]:uI.marginInlineStart,[Tx.valueInputHeight]:uI.valueInputHeight,[Tx.valueInputMarginBottom]:uI.valueInputMarginBottom,[Tx.inputHorizontalPadding]:"0",[Tx.errorMessageIcon]:uI.errorMessageIcon,[Tx.errorMessageIconSize]:uI.errorMessageIconSize,[Tx.errorMessageIconPadding]:uI.errorMessageIconPadding,[Tx.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[Tx.errorMessageIconPosition]:uI.errorMessageIconPosition,[Tx.errorMessageFontSize]:uI.errorMessageFontSize,_fullWidth:{[Tx.hostWidth]:uI.width}};var vx=Object.freeze({__proto__:null,default:Dx,vars:Tx});const zx=Ae(xp),Cx=Aa.cssVarList,Sx={[Cx.hostWidth]:uI.width,[Cx.hostMinWidth]:uI.minWidth,[Cx.hostDirection]:uI.direction,[Cx.fontSize]:uI.fontSize,[Cx.fontFamily]:uI.fontFamily,[Cx.labelFontSize]:uI.labelFontSize,[Cx.labelFontWeight]:uI.labelFontWeight,[Cx.inputValueFontWeight]:uI.inputValueFontWeight,[Cx.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[Cx.helperTextFontWeight]:uI.helperTextFontWeight,[Cx.errorMessageFontWeight]:uI.errorMessageFontWeight,[Cx.labelTextColor]:uI.labelTextColor,[Cx.spaceBetweenInputs]:"1em",[Cx.errorMessageTextColor]:uI.errorMessageTextColor,[Cx.policyPreviewBackgroundColor]:"none",[Cx.policyPreviewPadding]:zx.spacing.lg,[Cx.valueInputHeight]:uI.valueInputHeight,[Cx.errorMessageIcon]:uI.errorMessageIcon,[Cx.errorMessageIconSize]:uI.errorMessageIconSize,[Cx.errorMessageIconPadding]:uI.errorMessageIconPadding,[Cx.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[Cx.errorMessageIconPosition]:uI.errorMessageIconPosition,[Cx.errorMessageFontSize]:uI.errorMessageFontSize,_required:{[Cx.inputsRequiredIndicator]:uI.requiredIndicator}};var wx=Object.freeze({__proto__:null,default:Sx,vars:Cx});const Ax=el.cssVarList,Lx={[Ax.hostDirection]:uI.direction,[Ax.labelTextColor]:uI.labelTextColor,[Ax.fontFamily]:uI.fontFamily,[Ax.iconSize]:"2em",[Ax.hostPadding]:"0.75em",[Ax.gap]:"0.5em",[Ax.fontSize]:"16px",[Ax.titleFontWeight]:"500",[Ax.lineHeight]:"1em",[Ax.borderWidth]:uI.borderWidth,[Ax.borderColor]:uI.borderColor,[Ax.borderRadius]:uI.borderRadius,[Ax.borderStyle]:"dashed",_required:{[Ax.requiredIndicator]:uI.requiredIndicator},size:{xs:{[Ax.hostHeight]:"196px",[Ax.hostWidth]:"200px",[Ax.titleFontSize]:"0.875em",[Ax.descriptionFontSize]:"0.875em",[Ax.lineHeight]:"1.25em"},sm:{[Ax.hostHeight]:"216px",[Ax.hostWidth]:"230px",[Ax.titleFontSize]:"1em",[Ax.descriptionFontSize]:"0.875em",[Ax.lineHeight]:"1.25em"},md:{[Ax.hostHeight]:"256px",[Ax.hostWidth]:"312px",[Ax.titleFontSize]:"1.125em",[Ax.descriptionFontSize]:"1em",[Ax.lineHeight]:"1.5em"},lg:{[Ax.hostHeight]:"280px",[Ax.hostWidth]:"336px",[Ax.titleFontSize]:"1.125em",[Ax.descriptionFontSize]:"1.125em",[Ax.lineHeight]:"1.75em"}},_fullWidth:{[Ax.hostWidth]:uI.width}};var fx=Object.freeze({__proto__:null,default:Lx,vars:Ax});const Ex=Ae(xp),kx=al.cssVarList,Ox={[kx.hostDirection]:"inherit",[kx.hostWidth]:"auto",[kx.backgroundColor]:Ex.colors.surface.main,[kx.labelTextColor]:Ex.colors.surface.contrast,[kx.borderColor]:Ex.colors.surface.light,[kx.borderStyle]:"solid",[kx.borderRadius]:Ex.radius.sm,[kx.outlineColor]:"transparent",[kx.borderWidth]:Ex.border.xs,_hover:{[kx.backgroundColor]:Ex.colors.surface.highlight},_focused:{[kx.outlineColor]:Ex.colors.surface.light},_selected:{[kx.borderColor]:Ex.colors.surface.contrast,[kx.backgroundColor]:Ex.colors.surface.contrast,[kx.labelTextColor]:Ex.colors.surface.main}};var Vx=Object.freeze({__proto__:null,default:Ox,vars:kx});const Wx=Ae(xp),Rx=t=>({[t.hostDirection]:uI.direction,[t.fontFamily]:uI.fontFamily,[t.labelTextColor]:uI.labelTextColor,[t.labelRequiredIndicator]:uI.requiredIndicator,[t.itemsSpacing]:Wx.spacing.sm,[t.hostWidth]:uI.width,[t.errorMessageTextColor]:uI.errorMessageTextColor,[t.errorMessageIcon]:uI.errorMessageIcon,[t.errorMessageIconSize]:uI.errorMessageIconSize,[t.errorMessageIconPadding]:uI.errorMessageIconPadding,[t.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[t.errorMessageIconPosition]:uI.errorMessageIconPosition,[t.errorMessageFontSize]:uI.errorMessageFontSize,layout:{vertical:{[t.itemsDirection]:"column",[t.itemsAlignment]:"flex-start",_fullWidth:{[t.itemsAlignment]:"stretch",[t.itemsWidth]:"100%"}}}}),Ux=yl.cssVarList,Yx={...Rx(Ux)};var Qx=Object.freeze({__proto__:null,default:Yx,vars:Ux});const Px=xl.cssVarList,Bx={...Rx(Px)};var Zx=Object.freeze({__proto__:null,default:Bx,vars:Px});const Fx=Ae(xp),Gx=oc.cssVarList,Hx={[Gx.overlayBackgroundColor]:Fx.colors.surface.main,[Gx.overlayShadow]:Fx.shadow.wide["2xl"],[Gx.overlayWidth]:"540px",[Gx.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},Jx={...Gx};var $x=Object.freeze({__proto__:null,default:Hx,vars:Jx});const qx=Ae(xp),_x=tc.cssVarList,Xx={[_x.hostWidth]:"100%",[_x.hostHeight]:"100%",[_x.hostMinHeight]:"400px",[_x.fontWeight]:"400",[_x.backgroundColor]:qx.colors.surface.main,[_x.fontSize]:uI.fontSize,[_x.fontFamily]:uI.fontFamily,[_x.sortIndicatorsColor]:qx.colors.surface.light,[_x.activeSortIndicator]:qx.colors.surface.dark,[_x.resizeHandleColor]:qx.colors.surface.light,[_x.borderWidth]:uI.borderWidth,[_x.borderStyle]:uI.borderStyle,[_x.borderRadius]:uI.borderRadius,[_x.borderColor]:"transparent",[_x.headerRowTextColor]:qx.colors.surface.dark,[_x.separatorColor]:qx.colors.surface.light,[_x.valueTextColor]:qx.colors.surface.contrast,[_x.selectedBackgroundColor]:qx.colors.surface.highlight,[_x.hostDirection]:qx.direction,[_x.toggleDetailsPanelButtonSize]:"1em",[_x.toggleDetailsPanelButtonOpenedColor]:qx.colors.surface.contrast,[_x.toggleDetailsPanelButtonClosedColor]:qx.colors.surface.light,[_x.toggleDetailsPanelButtonCursor]:"pointer",[_x.detailsPanelBackgroundColor]:qx.colors.surface.highlight,[_x.detailsPanelBorderTopColor]:qx.colors.surface.light,[_x.detailsPanelLabelsColor]:qx.colors.surface.dark,[_x.detailsPanelLabelsFontSize]:"0.8em",[_x.detailsPanelItemsGap]:"2em",[_x.detailsPanelPadding]:"12px 0",_bordered:{[_x.borderColor]:uI.borderColor}};var Kx=Object.freeze({__proto__:null,default:Xx,grid:Xx,vars:_x});const tj=Ae(xp),ej=ac.cssVarList,ij="#00000020",oj={[ej.hostMinWidth]:"415px",[ej.fontFamily]:tj.fonts.font1.family,[ej.fontSize]:tj.typography.body1.size,[ej.backgroundColor]:tj.colors.surface.main,[ej.textColor]:tj.colors.surface.contrast,[ej.boxShadow]:`${tj.shadow.wide.xl} ${ij}, ${tj.shadow.narrow.xl} ${ij}`,[ej.verticalPadding]:"0.625em",[ej.horizontalPadding]:"1.5em",[ej.borderRadius]:tj.radius.xs,_bordered:{[ej.borderWidth]:tj.border.sm,[ej.borderStyle]:"solid",[ej.borderColor]:"transparent"},size:{xs:{[ej.fontSize]:"12px"},sm:{[ej.fontSize]:"14px"},md:{[ej.fontSize]:"16px"},lg:{[ej.fontSize]:"18px"}},mode:{primary:{[ej.backgroundColor]:tj.colors.primary.main,[ej.textColor]:tj.colors.primary.contrast,[ej.borderColor]:tj.colors.primary.light},success:{[ej.backgroundColor]:tj.colors.success.main,[ej.textColor]:tj.colors.success.contrast,[ej.borderColor]:tj.colors.success.light},error:{[ej.backgroundColor]:tj.colors.error.main,[ej.textColor]:tj.colors.error.contrast,[ej.borderColor]:tj.colors.error.light}}};var nj=Object.freeze({__proto__:null,default:oj,vars:ej});const rj=Ae(xp),sj=Tc.cssVarList,aj={[sj.hostWidth]:uI.width,[sj.hostDirection]:uI.direction,[sj.fontSize]:uI.fontSize,[sj.fontFamily]:uI.fontFamily,[sj.separatorFontSize]:"14px",[sj.labelsFontSize]:"14px",[sj.labelsLineHeight]:"1",[sj.labelsMarginBottom]:"6px",[sj.labelTextColor]:uI.labelTextColor,[sj.itemMarginBottom]:"1em",[sj.valueLabelMinWidth]:uI.minWidth,[sj.attrLabelMinWidth]:`calc(12em + 2 * ${rj.border.xs})`,[sj.separatorWidth]:"70px",[sj.removeButtonWidth]:"60px"};var lj=Object.freeze({__proto__:null,default:aj,mappingsField:aj,vars:sj});const dj=Ae(xp),cj=Uc.cssVarList,uj={[cj.labelMinWidth]:"150px",[cj.hostDirection]:dj.direction,[cj.contentMinWidth]:`calc(100% - ${Re(cj.labelMinWidth)} - ${Re(cj.itemsGap)})`,[cj.badgeMaxWidth]:"85px",[cj.itemsGap]:"4px",[cj.hostMinWidth]:"310px",[cj.hostWidth]:"530px",[cj.hostMaxWidth]:"100%",[cj.iconColor]:"currentcolor",_fullWidth:{[cj.hostWidth]:"100%"}};var pj=Object.freeze({__proto__:null,default:uj,vars:cj});const hj=Ae(xp),gj=Jc.cssVarList,Mj={[gj.hostDirection]:hj.direction,[gj.itemsGap]:"16px",[gj.hostMinWidth]:"310px",[gj.hostWidth]:"530px",[gj.hostMaxWidth]:"100%",[gj.iconSize]:"24px",[gj.iconColor]:"currentcolor",_fullWidth:{[gj.hostWidth]:"100%"}};var mj=Object.freeze({__proto__:null,default:Mj,vars:gj});const yj=eu.cssVarList,bj={[yj.hostWidth]:uI.width,[yj.hostDirection]:uI.direction,[yj.groupNameInputMarginBottom]:"1em",[yj.errorMessageIcon]:uI.errorMessageIcon,[yj.errorMessageIconSize]:uI.errorMessageIconSize,[yj.errorMessageIconPadding]:uI.errorMessageIconPadding,[yj.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[yj.errorMessageIconPosition]:uI.errorMessageIconPosition,[yj.errorMessageFontSize]:uI.errorMessageFontSize};var Nj=Object.freeze({__proto__:null,default:bj,samlGroupMappings:bj,vars:yj});const Ij=Ae(xp),xj=Ia.cssVarList,jj={[xj.fontFamily]:uI.fontFamily,[xj.fontSize]:uI.labelFontSize,[xj.textColor]:uI.labelTextColor,[xj.borderWidth]:uI.borderWidth,[xj.borderStyle]:uI.borderStyle,[xj.borderColor]:uI.borderColor,[xj.borderRadius]:Ij.radius.sm,[xj.backgroundColor]:"none",[xj.padding]:"0px",[xj.labelMargin]:Ij.spacing.sm,[xj.itemsSpacing]:Ij.spacing.lg,[xj.itemSymbolDefault]:"'\\2022'",[xj.itemSymbolSuccess]:"'\\2713'",[xj.itemSymbolError]:"'\\2A09'",[xj.itemSymbolSuccessColor]:Ij.colors.success.main,[xj.itemSymbolErrorColor]:Ij.colors.error.main};var Tj=Object.freeze({__proto__:null,default:jj,vars:xj});const Dj=Ae(xp),vj=Sd.cssVarList,zj="#d73a49",Cj="#6f42c1",Sj="#005cc5",wj="#e36209",Aj="#6a737d",Lj="#22863a",fj="#24292e",Ej="#f0fff4",kj="#032f62",Oj="#ff7b72",Vj="#d2a8ff",Wj="#79c0ff",Rj="#ffa657",Uj="#8b949e",Yj="#7ee787",Qj="#c9d1d9",Pj="#f0fff4",Bj="#a5d6ff",Zj={[vj.copyButtonSize]:"32px",[vj.copyButtonBorderRadius]:Dj.radius.xs,[vj.copyButtonBorderWidth]:Dj.border.xs,[vj.copyButtonBorderColor]:Dj.colors.surface.light,[vj.copyButtonBgColor]:Dj.colors.surface.highlight,[vj.copyButtonHoverBgColor]:Dj.colors.surface.light,[vj.copyButtonColor]:Dj.colors.surface.contrast,[vj.rootBgColor]:Dj.colors.surface.main,[vj.rootTextColor]:Dj.colors.surface.contrast,[vj.docTagTextColor]:zj,[vj.keywordTextColor]:zj,[vj.metaKeywordTextColor]:zj,[vj.templateTagTextColor]:zj,[vj.templateVariableTextColor]:zj,[vj.typeTextColor]:zj,[vj.variableLanguageTextColor]:zj,[vj.titleTextColor]:Cj,[vj.titleClassTextColor]:Cj,[vj.titleClassInheritedTextColor]:Cj,[vj.titleFunctionTextColor]:Cj,[vj.attrTextColor]:Sj,[vj.attributeTextColor]:Sj,[vj.literalTextColor]:Sj,[vj.metaTextColor]:Sj,[vj.numberTextColor]:Sj,[vj.operatorTextColor]:Sj,[vj.variableTextColor]:Sj,[vj.selectorAttrTextColor]:Sj,[vj.selectorClassTextColor]:Sj,[vj.selectorIdTextColor]:Sj,[vj.regexpTextColor]:kj,[vj.stringTextColor]:kj,[vj.metaStringTextColor]:kj,[vj.builtInTextColor]:wj,[vj.symbolTextColor]:wj,[vj.commentTextColor]:Aj,[vj.codeTextColor]:Aj,[vj.formulaTextColor]:Aj,[vj.nameTextColor]:Lj,[vj.quoteTextColor]:Lj,[vj.selectorTagTextColor]:Lj,[vj.selectorPseudoTextColor]:Lj,[vj.substTextColor]:fj,[vj.sectionTextColor]:Sj,[vj.bulletTextColor]:"#735c0f",[vj.emphasisTextColor]:fj,[vj.strongTextColor]:fj,[vj.additionTextColor]:Lj,[vj.additionBgColor]:Ej,[vj.deletionTextColor]:zj,[vj.deletionBgColor]:Ej},Fj={codeSnippet:{[vj.rootBgColor]:Dj.colors.surface.main,[vj.rootTextColor]:Dj.colors.surface.contrast,[vj.docTagTextColor]:Oj,[vj.keywordTextColor]:Oj,[vj.metaKeywordTextColor]:Oj,[vj.templateTagTextColor]:Oj,[vj.templateVariableTextColor]:Oj,[vj.typeTextColor]:Oj,[vj.variableLanguageTextColor]:Oj,[vj.titleTextColor]:Vj,[vj.titleClassTextColor]:Vj,[vj.titleClassInheritedTextColor]:Vj,[vj.titleFunctionTextColor]:Vj,[vj.attrTextColor]:Wj,[vj.attributeTextColor]:Wj,[vj.literalTextColor]:Wj,[vj.metaTextColor]:Wj,[vj.numberTextColor]:Wj,[vj.operatorTextColor]:Wj,[vj.variableTextColor]:Wj,[vj.selectorAttrTextColor]:Wj,[vj.selectorClassTextColor]:Wj,[vj.selectorIdTextColor]:Wj,[vj.regexpTextColor]:Bj,[vj.stringTextColor]:Bj,[vj.metaStringTextColor]:Bj,[vj.builtInTextColor]:Rj,[vj.symbolTextColor]:Rj,[vj.commentTextColor]:Uj,[vj.codeTextColor]:Uj,[vj.formulaTextColor]:Uj,[vj.nameTextColor]:Yj,[vj.quoteTextColor]:Yj,[vj.selectorTagTextColor]:Yj,[vj.selectorPseudoTextColor]:Yj,[vj.substTextColor]:Qj,[vj.sectionTextColor]:Wj,[vj.bulletTextColor]:"#735c0f",[vj.emphasisTextColor]:Qj,[vj.strongTextColor]:Qj,[vj.additionTextColor]:Yj,[vj.additionBgColor]:Pj,[vj.deletionTextColor]:Oj,[vj.deletionBgColor]:Pj}};var Gj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Fj,default:Zj,vars:vj});const Hj=ru.cssVarList,Jj=Ae(xp),$j={[Hj.buttonsRowGap]:"9px",[Hj.hostWidth]:uI.width,[Hj.hostDirection]:uI.direction,[Hj.fontSize]:uI.fontSize,[Hj.fontFamily]:uI.fontFamily,[Hj.labelFontWeight]:uI.labelFontWeight,[Hj.labelTextColor]:uI.labelTextColor,[Hj.labelRequiredIndicator]:uI.requiredIndicator,[Hj.errorMessageTextColor]:uI.errorMessageTextColor,[Hj.errorMessageIcon]:uI.errorMessageIcon,[Hj.errorMessageIconSize]:uI.errorMessageIconSize,[Hj.errorMessageIconPadding]:uI.errorMessageIconPadding,[Hj.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[Hj.errorMessageIconPosition]:uI.errorMessageIconPosition,[Hj.errorMessageFontSize]:uI.errorMessageFontSize,[Hj.helperTextColor]:uI.helperTextColor,[Hj.itemsLabelColor]:Jj.colors.surface.contrast,[Hj.itemsLabelFontWeight]:uI.inputValueFontWeight,[Hj.itemsFontFamily]:uI.fontFamily,[Hj.itemsRadioCheckedColor]:Jj.colors.surface.light,[Hj.itemsRadioBackgroundColor]:Jj.colors.surface.light,[Hj.itemsRadioCheckedBackgroundColor]:Jj.colors.surface.contrast,textAlign:{right:{[Hj.inputTextAlign]:"right"},left:{[Hj.inputTextAlign]:"left"},center:{[Hj.inputTextAlign]:"center"}},_fullWidth:{[Hj.buttonsSpacing]:"space-between"},_disabled:{[Hj.itemsLabelColor]:Jj.colors.surface.light}};var qj=Object.freeze({__proto__:null,default:$j,radioGroup:$j,vars:Hj});const _j=ou.cssVarList,Xj=Ae(xp),Kj={[_j.fontFamily]:uI.fontFamily,[_j.labelFontWeight]:uI.inputValueFontWeight,[_j.radioSize]:"calc(1em + 6px)",[_j.radioMargin]:"auto 4px",[_j.radioCheckedSize]:`calc(var(${_j.radioSize})/5)`,[_j.radioCheckedColor]:Xj.colors.surface.light,[_j.radioBackgroundColor]:Xj.colors.surface.light,[_j.radioBorderColor]:"none",[_j.radioBorderWidth]:0,_checked:{[_j.radioBackgroundColor]:Xj.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[_j.fontSize]:"12px"},sm:{[_j.fontSize]:"14px"},md:{[_j.fontSize]:"16px"},lg:{[_j.fontSize]:"18px"}}};var tT=Object.freeze({__proto__:null,default:Kj,radioButton:Kj,vars:_j});const eT=Ae(xp),iT=kn.cssVarList,oT={[iT.fontFamily]:uI.fontFamily,[iT.fontSize]:uI.fontSize,[iT.hostDirection]:uI.direction,[iT.calendarPadding]:"1em",[iT.topNavVerticalPadding]:"1em",[iT.topNavAlignment]:"space-between",[iT.topNavGap]:"0",[iT.topNavSelectorsGap]:"0.5em",[iT.bottomNavVerticalPadding]:"0.75em",[iT.bottomNavHorizontalPadding]:"1.5em",[iT.bottomNavAlignment]:"space-between",[iT.bottomNavGap]:"0.5em",[iT.navMarginBottom]:"0.75em",[iT.navBorderBottomWidth]:"1px",[iT.navBorderBottomColor]:eT.colors.surface.highlight,[iT.navBorderBottomStyle]:"solid",[iT.yearInputWidth]:"6em",[iT.monthInputWidth]:"8em",[iT.navButtonSize]:"24px",[iT.navButtonCursor]:"pointer",[iT.weekdayFontSize]:"0.875em",[iT.weekdayFontWeight]:"500",[iT.dayHeight]:"3.125em",[iT.daySize]:"2.125em",[iT.dayFontSize]:"1em",[iT.dayRadius]:"50%",[iT.dayTextAlign]:"center",[iT.dayPadding]:"0",[iT.dayTextColor]:eT.colors.surface.contrast,[iT.dayFontWeight]:"500",[iT.dayBackgroundColor]:"transparent",[iT.dayCursor]:"pointer",[iT.dayBackgroundColorHover]:eT.colors.primary.highlight,[iT.daySelectedBackgroundColor]:eT.colors.primary.main,[iT.daySelectedTextdColor]:eT.colors.primary.contrast,[iT.dayDisabledTextdColor]:eT.colors.surface.light,[iT.currentDayBorderColor]:eT.colors.surface.light,[iT.currentDayBorderWidth]:"1px",[iT.currentDayBorderStyle]:"solid",size:{xs:{[iT.fontSize]:"12px"},sm:{[iT.fontSize]:"14px"},md:{[iT.fontSize]:"16px"},lg:{[iT.fontSize]:"18px"}},[iT.navButtonRotation]:"rotate(180deg)",_disabled:{[iT.navButtonOpacity]:"0.5",[iT.dayBackgroundColorHover]:"none",[iT.navButtonCursor]:"default",[iT.dayCursor]:"default"},_fullWidth:{[iT.hostWidth]:"100%",[iT.dayBlockAlign]:"0 auto"}};var nT=Object.freeze({__proto__:null,default:oT,vars:iT});const rT=Ae(xp),sT="#00000020",{shadow:aT}=rT,lT=gr.cssVarList,dT={[lT.hostWidth]:uI.width,[lT.hostDirection]:uI.direction,[lT.iconMargin]:"0.375em",[lT.overlay.marginTop]:`calc(${uI.outlineWidth} + 1px)`,[lT.overlay.backgroundColor]:uI.backgroundColor,[lT.overlay.backdropBackgroundColor]:"transparent",[lT.overlay.backdropPointerEvents]:"all",[lT.overlay.boxShadow]:`${aT.wide.xl} ${sT}, ${aT.narrow.xl} ${sT}`,[lT.overlay.outlineWidth]:"0",[lT.overlay.outlineColor]:"transparent",[lT.overlay.outlineStyle]:"none",[lT.overlay.padding]:"0",[lT.rtlInputDirection]:"ltr",[lT.rtlInputAlignment]:"right",[lT.errorMessageIcon]:uI.errorMessageIcon,[lT.errorMessageIconSize]:uI.errorMessageIconSize,[lT.errorMessageIconPadding]:uI.errorMessageIconPadding,[lT.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[lT.errorMessageIconPosition]:uI.errorMessageIconPosition,[lT.errorMessageFontSize]:uI.errorMessageFontSize,[lT.labelFontWeight]:uI.labelFontWeight,[lT.inputValueFontWeight]:uI.inputValueFontWeight,[lT.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[lT.helperTextFontWeight]:uI.helperTextFontWeight,[lT.errorMessageFontWeight]:uI.errorMessageFontWeight};var cT=Object.freeze({__proto__:null,default:dT,vars:lT});const uT=uu.cssVarList,pT={[uT.requiredInputBorderColor]:cI._disabled[pI.borderColor],[uT.requiredInputValueTextColor]:cI._disabled[pI.valueTextColor],[uT.hostWidth]:"280px",_fullWidth:{[uT.hostWidth]:"100%"}};var hT=Object.freeze({__proto__:null,default:pT,vars:uT});const gT=Ae(xp),MT=xu.cssVarList,mT={[MT.gap]:gT.spacing.lg,[MT.arrowsColor]:gT.colors.surface.dark,[MT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[MT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[MT.logoMaxHeight]:"30px",[MT.logoMaxWidth]:"120px"},sm:{[MT.logoMaxHeight]:"40px",[MT.logoMaxWidth]:"160px"},md:{[MT.logoMaxHeight]:"48px",[MT.logoMaxWidth]:"200px"},lg:{[MT.logoMaxHeight]:"60px",[MT.logoMaxWidth]:"240px"}}};var yT=Object.freeze({__proto__:null,default:mT,vars:MT});const bT=zu.cssVarList,NT={[bT.hostWidth]:"fit-content",_fullWidth:{[bT.hostWidth]:"100%"}};var IT=Object.freeze({__proto__:null,default:NT,vars:bT});const xT=ku.cssVarList,jT={[xT.hostWidth]:"min-content",[xT.questionCursor]:"pointer",_fullWidth:{[xT.hostWidth]:"100%"},[xT.questionFontSize]:uI.fontSize,[xT.questionFontFamily]:uI.fontFamily};var TT=Object.freeze({__proto__:null,default:jT,vars:xT});const DT=dp.cssVarList,vT={[DT.hostDirection]:uI.direction,[DT.labelFontWeight]:uI.labelFontWeight,[DT.inputValueFontWeight]:uI.inputValueFontWeight,[DT.inputPlaceholderFontWeight]:uI.inputPlaceholderFontWeight,[DT.helperTextFontWeight]:uI.helperTextFontWeight,[DT.errorMessageFontWeight]:uI.errorMessageFontWeight,[DT.errorMessageIcon]:uI.errorMessageIcon,[DT.errorMessageIconSize]:uI.errorMessageIconSize,[DT.errorMessageIconPadding]:uI.errorMessageIconPadding,[DT.errorMessageIconRepeat]:uI.errorMessageIconRepeat,[DT.errorMessageIconPosition]:uI.errorMessageIconPosition,[DT.errorMessageFontSize]:uI.errorMessageFontSize,_fullWidth:{[DT.hostWidth]:"100%"}};var zT=Object.freeze({__proto__:null,default:vT,vars:DT});const CT=Ae(xp),ST=hp.cssVarList,wT={[ST.hostDirection]:CT.direction,[ST.backgroundColor]:"transparent",[ST.iconSize]:"1.35em",[ST.alignItems]:"center",[ST.borderRadius]:CT.radius.md,[ST.horizontalPadding]:"0",[ST.verticalPadding]:"0",[ST.gap]:"0.5em",[ST.fontSize]:Re(Rp.fontSize),mode:{error:{[ST.textColor]:CT.colors.error.main,_bordered:{[ST.borderColor]:CT.colors.error.main}},success:{[ST.textColor]:CT.colors.success.main,_bordered:{[ST.borderColor]:CT.colors.success.main}}},spacing:{xs:{[ST.horizontalPadding]:CT.spacing.xs,[ST.verticalPadding]:CT.spacing.xs},sm:{[ST.horizontalPadding]:CT.spacing.sm,[ST.verticalPadding]:CT.spacing.sm},md:{[ST.horizontalPadding]:CT.spacing.md,[ST.verticalPadding]:CT.spacing.md},lg:{[ST.horizontalPadding]:CT.spacing.lg,[ST.verticalPadding]:CT.spacing.lg},xl:{[ST.horizontalPadding]:CT.spacing.xl,[ST.verticalPadding]:CT.spacing.xl}},textAlign:{left:{[ST.justifyContent]:"left"},center:{[ST.justifyContent]:"center"},right:{[ST.justifyContent]:"right"}},_bordered:{[ST.borderWidth]:CT.border.xs,[ST.borderColor]:"transparent",[ST.borderStyle]:"solid",[ST.borderWidth]:CT.border.xs,[ST.borderRadius]:CT.radius.sm},_fullWidth:{[ST.hostWidth]:"100%"}};var AT=Object.freeze({__proto__:null,default:wT,vars:ST});const LT=yp.cssVarList,fT={enabled:{false:{[LT.maxHeight]:"70px"}}},ET={button:Vp,textField:Mb,password:yI,numberField:II,emailField:$N,textArea:TI,checkbox:CI,switchToggle:fI,container:QI,logo:ZI,totpImage:HI,notpImage:qI,text:Yp,enrichedText:Jp,link:Zp,divider:nx,passcode:ax,loaderRadial:Nx,loaderLinear:ux,comboBox:ih,phoneField:jx,phoneInputBoxField:vx,newPassword:wx,newEmail:aI,inputWrapper:hI,uploadFile:fx,buttonSelectionGroupItem:Vx,buttonSelectionGroup:Qx,buttonMultiSelectionGroup:Zx,modal:$x,grid:Kx,notificationCard:nj,multiSelectComboBox:Dg,badge:dh,avatar:Ih,mappingsField:lj,userAttribute:pj,userAuthMethod:mj,samlGroupMappings:Nj,policyValidation:Tj,image:Dh,icon:jh,codeSnippet:Gj,radioGroup:qj,radioButton:tT,calendar:nT,dateField:cT,monthDayField:Hb,monthDayFieldPicker:aN,list:Yh,listItem:Zh,multiLineMappings:Ig,appsList:Lh,scopesList:hT,thirdPartyAppLogo:yT,securityQuestionsSetup:IT,securityQuestionsVerify:TT,hybridField:zT,alert:AT,autocompleteField:Og,addressField:_g,countrySubdivisionCityField:Qy,timer:dM,timerButton:vM,passwordStrength:RM,collapsibleContainer:_M,recoveryCodes:dm,activeSessions:Nm,hcaptcha:Object.freeze({__proto__:null,default:fT,vars:LT}),outboundApps:Cm,outboundAppButton:km,trustedDevices:Zm,multiSso:Km,tooltip:gy,filter:GN,attachment:_y,userPasskeys:ub},kT=Object.keys(ET).reduce((t,e)=>({...t,[e]:ET[e].default}),{}),OT=Object.keys(ET).reduce((t,e)=>({...t,[e]:ET[e].vars}),{}),VT={globals:xp,components:kT},WT={globals:jp,components:OT},RT=l()({},VT,{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:{...Fj}});customElements.define(Fh,sg),customElements.define(um,mm),customElements.define(vg,class extends zg{static get observedAttributes(){return[].concat(zg.observedAttributes||[],Cg)}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get minSearchLength(){return this.getAttribute("min-search-length")||3}get noResultsFoundMessage(){return this.getAttribute("no-results-message")||"No results found"}get errorFetchingResultsMessage(){return this.getAttribute("error-fetching-results-message")||"An error occurred fetching results"}constructor(){super(),this.innerHTML='\n <div class="autocomplete-field">\n <descope-combo-box clear-button-visible="true" auto-open-disabled="true" has-dynamic-data="true" item-label-path="data-name" item-value-path="data-id" hide-toggle-button="true"></descope-combo-box>\n </div>\n ',this.comboBox=this.querySelector("descope-combo-box")}get value(){return this.comboBox.value}set value(t){this.allowCustomValue?this.comboBox.value=t:(this.comboBox.data=[{label:t,value:t}],setTimeout(()=>{this.comboBox.value=t}))}get defaultValue(){return this.getAttribute("default-value")}async#Kr(t){const{results:e,error:i}=await this.fetchResults(t);return i?{error:i}:{results:e}}#ts(t,e,i,o){return`<span data-name="${i}" data-id="${e}" ${o?'disabled="true"':""}>${t||i}</span>`}#es(){this.comboBox.renderer=(t,e,i)=>{"true"===i.item.getAttribute("disabled")?t.setAttribute("disabled","true"):t.removeAttribute("disabled"),t.innerHTML=i.item.outerHTML},this.comboBox.renderItem=({displayName:t,value:e,label:i,disabled:o})=>this.#ts(t,e,i,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#is(),S(this,this.comboBox,{includeAttrs:["invalid"]})}#is(){this.debouncedSearch=(t=>{let e=0;const i=new Set,o=new Set,n=s()((n,r)=>{t(...n).then(t=>{r===e&&(i.forEach(e=>e(t)),i.clear())}).catch(t=>{o.forEach(e=>e(t)),o.clear()})},250);return(...t)=>(e++,new Promise((r,s)=>{i.add(r),o.add(s),n(t,e)}))})(async t=>{try{const{results:e,error:i}=await this.#Kr(t);return{results:e,error:i,value:t}}catch(e){return{error:e,value:t}}}),f(this,this.comboBox,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","invalid","error-message","data-errormessage-value-missing","st-host-direction","allow-custom-value","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),this.comboBox.addEventListener("filter-changed",this.onSearch.bind(this)),this.#es()}#os(){return[{label:this.noResultsFoundMessage,value:Sg,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:Sg,disabled:!0}]}async onSearch(t){const e=t.detail.value;if(!e||e.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const i=await this.debouncedSearch(e);i&&i.value===e&&(this.comboBox.loading=!1,i.error?this.comboBox.data=this.#ns():0===i.results?.length?this.comboBox.data=this.#os():this.comboBox.data=i.results||[])}fetchResults(t){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(wg,Lg),customElements.define(Rg,Fg),customElements.define(Gg,Jg);const UT=A("anchored");class YT extends(It({componentName:UT,baseSelector:".anchored-root"})){#rs=null;#ss=null;#as=null;#ls=null;get#ds(){return this.defaultSlot.assignedElements({flatten:!0})[0]}get#cs(){return this.shadowRoot.querySelector('slot[name="anchored"]')?.assignedElements()[0]}get#us(){return this.getRootNode().host}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="anchored-root" part="root">\n <slot></slot>\n <div class="anchored-host" part="anchored">\n <slot name="anchored"></slot>\n </div>\n </div>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])")}init(){super.init?.(),E("\n :host {\n display: inline-flex;\n position: relative;\n box-sizing: border-box;\n }\n\n :host(:not([has-anchor])) {\n display: none;\n }\n\n .anchored-root {\n position: relative;\n display: flex;\n width: 100%;\n min-width: 0;\n }\n\n /* Make anchor fill the flex row and allow it to shrink. */\n ::slotted(*:not([slot])) {\n flex-grow: 1; /* fill the flex row */\n flex-shrink: 1; /* compress when constrained */\n flex-basis: auto; /* start from the anchor's natural size */\n min-width: 0; /* flex items won't shrink below content size without this */\n }\n\n /* Anchored container covers the anchor but is invisible to pointer events. */\n .anchored-host {\n position: absolute;\n inset: 0;\n pointer-events: none;\n }\n\n /* Restore interactivity for actual anchored content. */\n ::slotted([slot=\"anchored\"]) {\n pointer-events: auto;\n }\n ",this),this.#ps(),this.defaultSlot.addEventListener("slotchange",()=>this.#hs()),this.#hs()}#bi(){const t=this.#ds?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#hs(){this.#gs(),this.#rs=this.#Ms(this.#rs,this.#us,"stretch"),this.#ss=this.#Ms(this.#ss,this.#cs,"st-host-direction"),this.#ms()}#ms(){this.#ls?.disconnect(),this.#ds&&(this.#ls=v(this.#ds,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#ms(),this.#bi()}#ps(){const t="\n descope-anchored {\n width: 100%; /* fill the outer host so the anchored element spans the full anchor width */\n }\n :host([stretch]) {\n display: inline-flex; /* switch from inline-block so internal children are flex items */\n width: 100%; /* fill non-flex parents */\n flex-grow: 1; /* absorb extra space in flex parents */\n flex-shrink: 0; /* hold full width — shrink:1 would let siblings squeeze it below 100% */\n flex-basis: auto; /* defer to width:100% on the main axis; avoids forcing 100% height in column-flex parents */\n min-width: 0; /* prevent overflow when the outer host is itself inside a constrained flex row */\n }\n ";this.#as?this.#as.replaceSync(t):this.#us&&(this.#as=E(t,this.#us))}#Ms(t,e,i){return t?.disconnect(),e?.removeAttribute(i),this.#ds&&e?f(this.#ds,e,{includeAttrs:[i]}):null}disconnectedCallback(){super.disconnectedCallback?.(),this.#rs?.disconnect(),this.#ss?.disconnect(),this.#ls?.disconnect()}#gs(){this.toggleAttribute("has-anchor",!!this.#ds),this.#bi()}}const QT=T(Mt)(YT);customElements.define(UT,QT),customElements.define(ch,Mh),customElements.define(vh,zh),customElements.define(Py,Hy),customElements.define(UM,PM),customElements.define(xy,Ey),customElements.define(ky,Ry),customElements.define(bN,zN),customElements.define(CN,EN),customElements.define(kN,YN),customElements.define(qb,nN),customElements.define(Cb,Qb),customElements.define(ag,yg),customElements.define(Fm,$m);const PT=/^email-/,BT=/^confirm-/,ZT=(t,e)=>t.replace(e,""),FT=["email-label","email-placeholder"],GT=["confirm-label","confirm-placeholder"],HT=["disabled","bordered","size","full-width","invalid","readonly","draggable","label-type"],JT=[].concat(HT,FT,GT),$T=Ct({componentName:qN,baseSelector:"div"});customElements.define(qN,class extends $T{static get observedAttributes(){return[].concat($T.observedAttributes||[],JT)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.emailInput?.value||""}set value(t){t!==this.value&&(this.emailInput.value=t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.value&&!this.emailFormat.test(this.value)?{patternMismatch:!0}:this.value!==(this.confirmInput?.value||"")?{typeMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.emailInput.focus()}),super.init?.(),this.renderInputs()}renderInputs(){const t="true"===this.getAttribute("external-input"),e="false"!==this.getAttribute("accept-unicode");this.emailFormat=e?new RegExp(Vu,"u"):new RegExp(Ou);const i=`\n <descope-email-field\n data-id="email"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n ></descope-email-field>\n <descope-email-field\n data-id="confirm"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n autocomplete="off"\n ></descope-email-field>\n `;this.wrapperEle.innerHTML=i,this.emailInput=this.querySelector('[data-id="email"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.inputs=[this.emailInput,this.confirmInput],this.initInputs()}handleIndicatorStyle(){this.inputs.forEach(t=>{E(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${nI.cssVarList.inputsRequiredIndicator});\n width: 1em;\n text-align: center;\n\t\t\t\t}\n :host ::part(required-indicator) {\n display: inline-flex;\n }\n\t\t\t\t`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&v(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&(HT.includes(t)?this.inputs?.forEach(e=>this.toggleBooleanAttribute(e,t,i)):FT.includes(t)?this.toggleBooleanAttribute(this.emailInput,ZT(t,PT),i):GT.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,ZT(t,BT),i))}}),customElements.define(_N,nI),customElements.define(Sm,Am),customElements.define(Im,Dm),customElements.define(zM,EM);var qT=Object.freeze({__proto__:null,PasswordStrengthClass:EM,componentName:zM});const _T=A("ponyhot"),XT="dhp-",KT=It({componentName:_T,baseSelector:""}),tD=T(Mt)(class extends KT{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#ys(),this.#bs(),this.#Ns())}#ys(){const t=["input","change","click","keydown","keyup","mouseover","mousedown"],e=i=>{this.input.value=`${XT}${i.type}`,t.forEach(t=>{this.input.removeEventListener(t,e)})};t.forEach(t=>{this.input.addEventListener(t,e)})}#bs(){const t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.input,"value",{get(){return t.get.call(this)},set(e){const i=t.get.call(this);e&&!e.startsWith(XT)&&e!==i?t.set.call(this,`${XT}direct-set`):t.set.call(this,e)},configurable:!0})}#Ns(){Object.entries({position:"absolute",opacity:"0.01",width:"1px",height:"1px",pointerEvents:"none",zIndex:"-1",left:"-999999px"}).forEach(([t,e])=>{this.style[t]=e})}});customElements.define(_T,tD),customElements.define(XM,nm),customElements.define(Kg,rM),customElements.define(cM,xM),customElements.define(ty,ry),customElements.define(Wm,Qm),customElements.define(ib,lb);const eD={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}},iD=new m.Qn(eD);var oD=Object.freeze({__proto__:null,default:t=>iD.check(t),options:eD})}}]);
1
+ "use strict";(self.webpackChunk_descope_flow_components_3_27_8_1795626052917=self.webpackChunk_descope_flow_components_3_27_8_1795626052917||[]).push([[222],{5222(t,e,i){i.d(e,{$9:()=>Bb,$y:()=>up,A8:()=>vc,Ag:()=>ol,C1:()=>Qc,C9:()=>zo,Cz:()=>uc,Er:()=>yh,G6:()=>UT,HO:()=>to,HT:()=>ro,J1:()=>Uo,JQ:()=>sI,Jr:()=>Zi,Lg:()=>Mp,MN:()=>hs,Mz:()=>fa,NF:()=>Hs,O7:()=>ZM,Od:()=>Tu,QW:()=>rc,Qb:()=>sm,R3:()=>_m,SE:()=>po,SQ:()=>Eo,T$:()=>cb,T1:()=>iD,TV:()=>Np,U6:()=>bm,Ul:()=>ca,VN:()=>Ad,VX:()=>wr,_w:()=>Ue,a5:()=>YT,bL:()=>mr,bU:()=>qg,br:()=>Y,dS:()=>PN,dX:()=>Sh,dq:()=>Bm,du:()=>Ng,e7:()=>Ee,eA:()=>Lc,eo:()=>Nl,ew:()=>Ne,fp:()=>Tl,gZ:()=>hu,h5:()=>zm,jH:()=>Lr,k0:()=>Dr,l1:()=>lo,lZ:()=>sN,md:()=>Cr,ml:()=>Ht,mq:()=>ou,o9:()=>Er,o_:()=>Re,pp:()=>qc,px:()=>Vu,q:()=>$y,q4:()=>Ai,qn:()=>Lo,rG:()=>Su,sK:()=>ki,tD:()=>ic,tS:()=>au,td:()=>lg,tl:()=>es,ul:()=>Ga,v_:()=>np,w8:()=>ir,wt:()=>ja,xO:()=>Ts,xp:()=>bu,xs:()=>Vn,yW:()=>fm,yi:()=>ay,yj:()=>TM,zQ:()=>RT,zZ:()=>Yy});var o=i(7949),n=i(7519),r=i(72),s=i.n(r),a=i(8089),l=i.n(a),d=i(465),c=i.n(d),u=(i(8231),i(4873),i(865),i(4598),i(496),i(7726),i(4155),i(9504),i(5877),i(3798),i(8619),i(1394)),p=i(3667),h=(i(8319),i(3826)),g=i(8677),M=i(127),m=(i(9849),i(4899),i(3977),i(9435),i(1399),i(5595),i(7822),i(6601),i(2381)),y=i(6916),b=i(418),N=i(1479);const I="descope",x=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),j=(...t)=>x(t.filter(t=>!!t).join("-")),T=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),D=t=>"function"==typeof t,v=["javascript:","vbscript:","file:"],z=(t,{allowDataImage:e=!1}={})=>{if("string"!=typeof t||!t)return"";try{const{protocol:i}=new URL(t,"https://base.invalid");return v.includes(i)?"":"data:"===i?e&&/^\s*data:image\//i.test(t)?t:"":t}catch{return""}},C=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n);const r=new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})});return r.observe(t,{attributes:!0}),{disconnect:()=>r.disconnect()}},S=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},w=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},A=(t,e,i)=>{C(t,w(t,e),i),C(e,w(e,t),i)},L=t=>async e=>{const i=await t(e);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})},f=t=>j(I,t),E=(...t)=>`--${j(...t)}`,k=(t,e,i={})=>C(t,w(t,e,i.mapAttrs),i),O=(t,e,{prepend:i=!1}={})=>{let o;try{o=new CSSStyleSheet}catch{return W(t,e,{prepend:i})}const n=e?.shadowRoot||e;if(t&&o.replaceSync(t),n){const t=[...n.adoptedStyleSheets||[]];t[i?"unshift":"push"](o),n.adoptedStyleSheets=t}return t&&!o.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${t}"`),o};class V{constructor(t,e,{prepend:i=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=t,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=e?.shadowRoot||e,this.ref&&(i?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(t){this.styleEle.textContent=t}get cssRules(){return this.styleEle.sheet?.cssRules}}const W=(t,e,{prepend:i=!1}={})=>new V(t,e,{prepend:i}),R=(t,e=2)=>t.trim().split(" ").splice(0,e).map(t=>t[0]?.toUpperCase()).join(""),U=(t,e)=>{if(!t||!e)return null;const i=t.querySelectorAll(`:scope > [slot="${e}"]`);if(!i.length)return null;const o=document.createDocumentFragment();return i.forEach(t=>{const e=t.content?t.content.cloneNode(!0):t.cloneNode(!0);e.removeAttribute&&e.removeAttribute("slot"),o.append(e)}),o},Y=new class{static mountOnPropName="DescopeThemeManager";#t={};#e="light";#i=new Set;#o(){this.#i.forEach(t=>t?.())}get currentThemeName(){return this.#e}set currentThemeName(t){this.#e=t,this.#o()}get currentTheme(){return this.#t[this.currentThemeName]}onCurrentThemeChange(t){return this.#i.add(t),()=>{this.#i.delete(t)}}set themes(t){this.#t=t,this.#o()}get hasThemes(){return!!Object.keys(this.#t).length}},Q=.25,P=.1,B=(t,e)=>t.darken(e).hex(),Z=t=>{const e=t.isDark();return t.mix(c()(e?"white":"black"),1).saturate(1).hex()},F=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),G=t=>t.luminosity()>.99,H=(t,e)=>(t=>t.luminosity()<.01)(t)?F(t,Q):B(t,.4),J=(t,e)=>G(t)?B(t,Q):F(t,.4),$=(t,e)=>G(t)?B(t,P):F(t,.8),q=(t,e)=>{const i=new(c())(t.main||t);return{main:i.hex(),dark:t.dark||H(i),light:t.light||J(i),highlight:t.highlight||$(i),contrast:t.contrast||Z(i)}},_=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,X=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,K=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,tt=t=>`\n ${t}::part(input-field)::after {\n opacity: 0;\n }\n`,et=(t,e)=>`\n ${(t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`)(t)}\n ${X(t)}\n ${K(t)}\n ${(t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`)(t)}\n ${((t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`)(t,e)}\n ${(t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`)(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`,it=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,ot=t=>E(I,...t),nt=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},rt=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?l()(t,i(e.concat(o),n)):l()(t,rt(n,[...e,o],i)),{}),st=(t,e)=>rt(t,[],t=>nt({},t,`var(${ot(t)})`)),at=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),lt=(t,e)=>{const i=rt(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=E(e,n),s={[n]:r},a={[n]:at(r)};return{theme:nt({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},dt=t=>`${t}__override`,ct=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${dt(t)}, ${o})`:o};let ut=class{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}};const pt=(t,e="fallback")=>j(t,e),ht=(t,e,{fallback:i})=>{if(!i)return{};const o=pt(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...ht(n,o,i)}},gt=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=E(t,o);return Object.assign(i,{[o]:n},{[o+"Override"]:dt(n)},ht(o,n,e[o]))},{}),Mt=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...gt(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o="host",baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>j("st",i,t))}get#h(){return Y.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l]),this.currentThemeName=Y.currentThemeName,this.onThemeChange?.(Y.currentThemeName)}#M(){this.#r=O("",this.#d,{prepend:!0}),this.#s=Y.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=O(`:host(${t}) {}`,this.#d)}}#y(t,e){const i=this.#n.cssRules[0].style;if(!i)return;const o=E(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new ut,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=pt(e,t?.suffix);return ct(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:x(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=E(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>D(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),D(i)?i():i,ct(a,l,!0)+(r?"!important":""))})}),o.toString()})(j(n,this.#a),this.#c,t);O(e,this.#d,{prepend:!0})}}#I(){const t=D(i)?i():i;t&&O(t,this.#d,{prepend:!0})}#x(t){(this.#d?.classList||this.#d?.host?.classList||this.classList).add(t)}async init(){super.init?.(),!this.shadowRoot?.isConnected&&this.shadowRoot||(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),C(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},mt=t=>class extends t{constructor(){super(),O(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},yt=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},bt=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},Nt=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},It=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value","collapsed","hide-country","hide-subdivision","hide-city"],xt=t=>class extends t{init(){super.init?.(),C(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>It.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},jt=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return T(yt,Nt,xt,bt)(i)};function Tt(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const Dt=t=>class extends t{#v=Tt.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},vt=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,Tt.call(this,"blur"),Tt.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(Tt.call(this,"focus"),Tt.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,Tt.call(this,"input",{bubbles:!0,composed:!0})))})}},zt=["required","pattern"],Ct=Symbol("validationTarget"),St=t=>class extends t{#C=Ct;static get observedAttributes(){return[...t.observedAttributes||[],...zt]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}get defaultErrorMsgTypeMismatch(){return"Please match the requested type."}getCustomErrorMessage(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===Ct?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),zt.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},wt=(...t)=>T(St,Dt,xt,vt)(jt(...t)),At="FETCH_RESULTS_ERROR",Lt=()=>class{constructor(t){this.getAttribute=t,this.isValid=this.#A()}checkConnectorValidity(){this.isValid=this.#A()}#A(){return!this.getRequiredParams().filter(t=>{const e=this.getAttribute(t);return!e||!this.validateParam(t,e)}).length}validateParam(t,e){return e.trim().length>0}getRequiredParams(){return console.error("Connector must implement getRequiredParams"),[]}async fetch(t){return this.isValid?this._fetchResults(t):(console.error(`[${this.constructor.name}] Cannot fetch results: connector is not properly configured`),{results:[],error:"CONNECTOR_INVALID"})}_fetchResults(t){return console.error("Connector must implement fetchResults"),{results:[],error:void 0}}},ft=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(jt({componentName:t,baseSelector:e})){#L=Tt.bind(this,"blur");#f=Tt.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,O((D(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#L()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),((t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)})(this.baseElement,this,s),A(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},Et=["invalid","required"],kt=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},Ot=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(St(r)){static get observedAttributes(){return[...r.observedAttributes||[],...Et]}#E;#v=Tt.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=kt(t)||kt(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),k(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},Vt=t=>T(Ot(t),Mt({componentNameOverride:f("input-wrapper")})),Wt=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>r=>{if(D(e)&&!t)throw new Error("portalMixin: a function selector requires a name");const s=t||(t=>t.replace(/[^\w\s]/gi,""))(e),a=Mt({mappings:i,style:o})(r);return class extends a{static get cssVarList(){return{...a.cssVarList,[s]:gt(s?j(r.componentName,"_"+s):r.componentName,i)}}#O;constructor(){const t=L(async t=>{const i=(t.shadowRoot||t).querySelector(t.baseSelector);if(!e||!t.shadowRoot)return i;const o=await L(()=>i)(t);return D(e)?e(o):o.querySelector(e)});super({getRootElement:t,componentNameSuffix:s&&"_"+s,themeSection:s?"_"+s:void 0,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;k(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},Rt=()=>!0,Ut=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,Yt=({itemRenderer:t=Ut,validateSchema:e=Rt,slotName:i,rerenderAttrsList:o=[],targetSelector:n,sortFn:r=t=>t})=>s=>class extends s{#R=[];#U;#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.#U&&this.#U.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),(r?this.data.sort(r):this.data).forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.#U&&this.#U.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),this.#U=n?this.shadowRoot.querySelector(n):this.baseElement,C(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}},Qt=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},Pt=({triggers:t=[]}={})=>e=>class extends e{static get observedAttributes(){return[...e.observedAttributes||[],...t.map(({attr:t})=>t)]}get#Z(){return t.some(({attr:t,value:e})=>this.getAttribute(t)===e)}#F=()=>{this.toggleAttribute("stretch",this.#Z)};attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.#F()}init(){super.init?.(),this.#F()}},Bt=["blockquote","list","image","table","code","hr","backticks","fence","reference","heading","lheading","html_block"],Zt=f("enriched-text"),Ft={ADD_ATTR:["target"],ALLOWED_URI_REGEXP:/^(?!(?:vbscript|javascript|file|data):)|^data:image\/(?:gif|png|jpeg|webp);/i,FORBID_TAGS:["form","input","button","textarea","select","style"]};class Gt extends(jt({componentName:Zt,baseSelector:":host > div"})){#G;#H;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="content"></div>\n ',O("\n :host {\n line-height: 1em;\n word-break: break-word;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n *, *:last-child {\n margin: 0;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin-bottom: 1em;\n }\n a {\n cursor: pointer;\n }\n blockquote {\n padding: 0 2em;\n }\n u {\n text-decoration: underline\n }\n s {\n color: currentColor;\n }\n ",this),this.#J(),S(this,this.#$.bind(this)),this.contentNode?.addEventListener("click",t=>{t.target instanceof HTMLAnchorElement&&t.stopPropagation()}),this.contentNode?.addEventListener("keydown",t=>{"Enter"===t.key&&t.target instanceof HTMLAnchorElement&&t.stopPropagation()})}static get observedAttributes(){return["readonly","link-target-blank"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("readonly"===t&&this.onReadOnlyChange("true"===i),"link-target-blank"===t&&this.#J())}customUnderlineRenderer(){this.processor.renderer.rules.em_open=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n)),this.processor.renderer.rules.em_close=(t,e,i,o,n)=>("_"===t[e].markup&&(t[e].tag="u"),this.#H(t,e,i,o,n))}#q(){this.linkTargetBlank?this.processor.renderer.rules.link_open=(t,e,i,o,n)=>(t[e].attrSet("target","_blank"),this.#G(t,e,i,o,n)):this.processor.renderer.rules.link_open=this.#G}#_(){this.processor&&this.processor.disable(Bt)}#X(){this.#_()}#K(){this.#G=this.processor.renderer.rules.link_open||((t,e,i,o,n)=>n.renderToken(t,e,i)),this.#H=this.processor.renderer.rules.em_open||((t,e,i,o,n)=>n.renderToken(t,e,i))}#J(){this.processor=new o.A("commonmark",{html:!0}),this.#K(),this.#X(),this.#q(),this.customUnderlineRenderer()}get linkTargetBlank(){return"true"===this.getAttribute("link-target-blank")}get contentNode(){return this.shadowRoot.querySelector(".content")}#$(){if(!this.processor)return;let t=(t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value})(this.innerHTML);!t?.trim()&&this.isConnected?this.setAttribute("empty","true"):this.removeAttribute("empty");try{const e=this.processor.parse(t,{references:void 0});t=this.processor.renderer.render(e,{html:!0,breaks:!0})}catch{console.warn("Not parsing invalid markdown token")}t=n.A.sanitize(t,Ft),this.contentNode.innerHTML=t,this.contentNode.firstElementChild?.setAttribute("part","content")}onReadOnlyChange(t){t?this.contentNode.setAttribute("inert",t):this.contentNode.removeAttribute("inert")}}const Ht=T(Mt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDisplay:{selector:()=>":host",property:"display",fallback:"inline-block"},hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},fontWeightBold:[{selector:()=>":host strong",property:"font-weight"},{selector:()=>":host b",property:"font-weight"}],textColor:{property:"color"},textLineHeight:{property:"line-height"},textAlign:{},linkColor:{selector:"a",property:"color"},linkTextDecoration:{selector:"a",property:"text-decoration"},linkHoverTextDecoration:{selector:"a:hover",property:"text-decoration"},minHeight:{},minWidth:{}}}),Mt({componentNameOverride:f("link")}),Mt({componentNameOverride:f("text")}),Pt({triggers:[{attr:"full-width",value:"true"}]}),mt,yt)(Gt),Jt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),$t=(...t)=>Jt(t.filter(t=>!!t).join("-")),qt=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),_t=t=>"function"==typeof t,Xt="descope",Kt="host",te=(t,e,{excludeAttrs:i=[],includeAttrs:o=[]})=>{const n=Array.from(t.attributes).filter(t=>!i.includes(t.name)&&(!o.length||o.includes(t.name))).map(t=>t.name);e(n),new MutationObserver(t=>{t.forEach(t=>{"attributes"!==t.type||i.includes(t.attributeName)||o.length&&!o.includes(t.attributeName)||e([t.attributeName])})}).observe(t,{attributes:!0})},ee=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver(t=>{t.forEach(t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)})}).observe(t,{childList:!0,characterData:!0,subtree:!0})},ie=(t,e,i={})=>o=>{o.forEach(o=>{const n=i[o]||o,r=t.getAttribute(o);e&&(null!==r?e.getAttribute(n)!==r&&e.setAttribute(n,r):e.removeAttribute(n))})},oe=(t,e,i)=>{te(t,ie(t,e),i),te(e,ie(e,t),i)},ne=t=>$t(Xt,t),re=(...t)=>`--${$t(...t)}`,se=(t,e,i={})=>{te(t,ie(t,e,i.mapAttrs),i)},ae=(t,e,i=[])=>{if(!i.length)return;const o=i.reduce((e,i)=>Object.assign(e,{[i]:{get:()=>t[i],set(e){t[i]=e}}}),{});Object.defineProperties(e,o)},le=.4,de=.25,ce=.1,ue=(t,e)=>t.darken(e).hex(),pe=t=>{const e=t.isDark();return t.mix(c()(e?"white":"black"),1).saturate(1).hex()},he=(t,e)=>t.lightness()<.5?t.lightness(100*e).hex():t.lighten(e).hex(),ge=t=>t.luminosity()<.01,Me=t=>t.luminosity()>.99,me=(t,e)=>"dark"===e?Me(t)?ue(t,de):he(t,le):ge(t)?he(t,de):ue(t,le),ye=(t,e)=>"dark"===e?ge(t)?he(t,de):ue(t,le):Me(t)?ue(t,de):he(t,le),be=(t,e)=>"dark"===e?ge(t)?he(t,ce):ue(t,.8):Me(t)?ue(t,ce):he(t,.8),Ne=(t,e)=>{const i=new(c())(t.main||t);return{main:i.hex(),dark:t.dark||me(i,e),light:t.light||ye(i,e),highlight:t.highlight||be(i,e),contrast:t.contrast||pe(i)}},Ie=t=>`\n :host {\n padding: calc(var(${t.inputOutlineWidth}) + var(${t.inputOutlineOffset}))\n }\n`,xe=t=>`\n ${t} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,je=t=>`\n ${t}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,Te=t=>`\n ${t} > label,\n ${t}::part(label),\n ${t}::part(required-indicator) {\n cursor: pointer;\n }\n`,De=(t,e="input")=>`\n ${t}[disabled] > ${e}:placeholder-shown,\n\t${t}[readonly] > ${e}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,ve=(t,e)=>`\n ${t} input:-webkit-autofill,\n ${t} input:-webkit-autofill::first-line,\n ${t} input:-webkit-autofill:hover,\n ${t} input:-webkit-autofill:active,\n ${t} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${e.inputValueTextColor});\n box-shadow: 0 0 0 var(${e.inputHeight}) var(${e.inputBackgroundColor}) inset;\n }\n`,ze=t=>`\n ${t}::part(input-field)::after {\n background: none;\n }\n`,Ce=t=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${t} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,Se=t=>re(Xt,...t),we=(t,e,i)=>{const o=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return o.reduce((t,e,n)=>(void 0===t[e]&&(t[e]={}),n===o.length-1&&(t[e]=i),t[e]),t),t},Ae=(t,e,i)=>Object.entries(t).reduce((t,[o,n])=>n?.constructor!==Object?l()(t,i(e.concat(o),n)):l()(t,Ae(n,[...e,o],i)),{}),Le=t=>{switch(!0){case Array.isArray(t):return t.map(t=>t.includes(" ")?`"${t}"`:t).join(", ");case(t=>{try{return new URL(t),!0}catch(t){return!1}})(t):return`url(${t})`;default:return t}},fe=(t,e)=>Ae(t,[],t=>we({},t,`var(${Se(t)})`)),Ee=(t,e="")=>{const i=Object.entries((t=>Ae(t,[],(t,e)=>({[Se(t)]:Le(e)})))(t)).reduce((t,e)=>`${t}${e.join(":")};\n`,"");return e?`*[data-theme="${e}"] {${i}}`:i},ke="@container",Oe="$breakpoints",Ve=t=>t.startsWith("$breakpoints."),We=t=>Object.entries(t).reduce((t,[e,i])=>(t=>t.startsWith(ke))(e)?`${t}${e} {\n${We(i)}}\n\n`:`${t}${e} { \n${Object.entries(i).map(([t,e])=>`${t}: ${e}`).join(";\n")} \n}\n\n`,""),Re=t=>{const e=(t=>Ae(t,[],(e,i)=>{const[o,...n]=e;if(n[0]===Oe)return{};const r=n.pop(),s=ne(o);"undefined"===r&&console.warn(s,`theme value: "${i}" is mapped to an invalid property`);const a=Kt,l=t[o]?.[Oe]||{},d=n.filter(Ve),c=d.find(t=>!l[t.slice(13)]);if(c)return console.warn(s,`theme references undefined breakpoint "${c}"`),{};const u=d.map(t=>Ve(t)?`${ke} ${l[t.slice(13)]}`:t);n.splice(0,n.length,...n.filter(t=>!Ve(t)));const p=n.reduce((t,e,i)=>{const[o,r]=function(t){const e=t.match(/^(&+)?(.*)$/);return[e[1]||"",e[2]||""]}(e),s=Math.min(o.length+1,3);if(r.startsWith("_"))return t+`[${Jt(r.replace(/^_/,""))}="true"]`.repeat(s);const a=n[i+1];return"string"!=typeof a||a.startsWith("_")||a.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${e}" is followed by "${a}" which is not allowed`),t):t+`[${Jt(r)}="${n.splice(i+1,1).join("")}"]`.repeat(s)},""),h=":host"+(p?`(${p})`:""),g=u.reduceRight((t,e)=>({[e]:t}),{[h]:{[r]:Le(i)}});return{[s]:{[a]:g}}}))(t);return Object.keys(e).reduce((t,i)=>{const o=e[i];return Object.assign(t,{[i]:Object.keys(o).reduce((t,e)=>Object.assign(t,{[e]:We(o[e])}),{})})},{})},Ue=({globals:t,components:e},i)=>({globals:Ee(t,i),components:Re(e)}),Ye=(...t)=>t.reduceRight((t,e)=>e.startsWith("--")?`var(${e}${t?`, ${t}`:t})`:`${e}${t?`, ${t}`:t}`,""),Qe=(t,e)=>{const i=Ae(t,[],(t,i)=>{const o=[...t],n=o.splice(-1),r=re(e,n),s={[n]:r},a={[n]:Ye(r)};return{theme:we({},[...o,r],i),useVars:a,vars:s}});return[i.theme,i.useVars,i.vars]},Pe=t=>`${t}__override`,Be=(t,e,i=!1)=>{const o=`var(${t}${e?`, ${e}`:""})`;return i?`var(${Pe(t)}, ${o})`:o};class Ze{constructor(){this.styleMap=new Map}add(t,e,i){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:i}])}toString(){return Array.from(this.styleMap.entries()).reduce((t,[e,i])=>{const o=i.map(({property:t,value:e})=>`${t}: ${e}`).join(";\n");return`${t}${e} { \n${o} \n}\n\n`},"")}}const Fe=(t,e="fallback")=>$t(t,e),Ge=(t,e,{fallback:i})=>{if(!i)return{};const o=Fe(e,i.suffix),n=((...t)=>t.filter(Boolean).map((t,e)=>{return 0===e?t:(i=t).charAt(0).toUpperCase()+i.slice(1);var i}).join(""))(t,i.suffix||"fallback");return{[n]:o,...Ge(n,o,i)}},He=(t,e)=>Object.keys(e).reduce((i,o)=>{const n=re(t,o);return Object.assign(i,{[o]:n},{[`${o}Override`]:Pe(n)},Ge(o,n,e[o]))},{}),Je=({mappings:t={},componentNameOverride:e="",style:i=""})=>o=>{const n=e||o.componentName;return class e extends o{static get cssVarList(){return{...o.cssVarList,...He(n,{...t})}}#n;#r;#s;#a;#l;#d;#c;#u;#p;constructor({getRootElement:t,componentNameSuffix:i="",themeSection:o=Kt,baseSelector:n}={}){super(),this.#a=i,this.#l=o,this.#c=n??this.baseSelector,this.#p=t,this.#u=Object.keys(e.cssVarList).map(t=>$t("st",i,t))}get#h(){return Y.currentTheme?.[n]||""}#g(){this.#r.replaceSync(this.#h[this.#l])}#M(){this.#r=O("",this.#d,{prepend:!0}),this.#s=Y.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#m(){if(this.#u.length){let t=`.${n}`.repeat(5);const e=this.getAttribute("id");e&&(t+=`#${CSS.escape(e)}`),this.#n=O(`:host(${t}) {}`,this.#d)}}#y(t,e){const{style:i}=this.#n.cssRules[0];if(!i)return;const o=re(n,t.replace(new RegExp("^st-"),""));e?i?.setProperty(o,e):(i?.removeProperty(o),this.removeAttribute(t))}#b(t=[]){t.forEach(t=>{this.#u.includes(t)&&this.#y(t,this.getAttribute(t))})}#N(){if(Object.keys(t).length){const e=((t,e,i)=>{const o=new Ze,n=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const i=Fe(e,t?.suffix);return Be(i,n(t.fallback,i))};return Object.keys(i).forEach(r=>{const s=((t,e)=>{const i={selector:"",property:Jt(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map(t=>({...i,...t})):[{...i,...e}]:[i]})(r,i[r]),a=re(t,r);s.forEach(({selector:t,property:i,important:r,fallback:s})=>{const l=n(s,a);o.add(((t="",e="")=>_t(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),_t(i)?i():i,Be(a,l,!0)+(r?"!important":""))})}),o.toString()})($t(n,this.#a),this.#c,t);O(e,this.#d,{prepend:!0})}}#I(){const t=_t(i)?i():i;t&&O(t,this.#d,{prepend:!0})}#x(t){(this.#d.classList||this.#d.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot?.isConnected&&(this.#d=await(this.#p?.(this))||this.shadowRoot,this.#x(n),this.#N(),this.#I(),this.#M(),this.#m(),te(this,this.#b.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#s?.()}}},$e=t=>class extends t{constructor(){super(),O(':host([draggable="true"]) * { cursor: inherit!important }',this)}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const i=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",i),t.target.removeEventListener("dragend",i)};t.target.addEventListener("mouseup",i,{once:!0}),t.target.addEventListener("dragend",i,{once:!0})}}),super.init?.()}},qe=t=>class extends t{#j(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#j()}},_e=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}},Xe=t=>class extends t{init(){super.init?.(),(this.baseElement||this).addEventListener("mouseover",t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",()=>this.removeAttribute("hover"),{once:!0})})}},Ke=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value","loading"],ti=t=>class extends t{init(){super.init?.(),te(this,t=>t.forEach(t=>{const e=this.getAttribute(t);(t=>Ke.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}),{})}},ei=({componentName:t,baseSelector:e=""})=>{class i extends HTMLElement{static get componentName(){return t}#T;#D=!0;get baseSelector(){return e}get baseElement(){return this.#T??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#T||console.warn("missing base element for component",this.localName),this.#T}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#D&&(this.#D=!1,this.init?.())}}return qt(qe,Xe,ti,_e)(i)};function ii(t,e={}){const i=new Event(t,e);this[`on${t}`]?.(i),this.dispatchEvent(i)}const oi=({componentName:t,wrappedEleName:e,slots:i=[],style:o,excludeAttrsSync:n=[],includeAttrsSync:r=[],includeForwardProps:s=[],delegatesFocus:a=!0})=>{class l extends(ei({componentName:t,baseSelector:e})){#L=ii.bind(this,"blur");#f=ii.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:a}).innerHTML=`\n\t\t\t<${e}>\n\t\t\t${i.map(t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`).join("")}\n\t\t\t</${e}>\n\t\t`,O((_t(o)?o():o)||"",this)}init(){super.init?.(),this.baseElement.addEventListener("blur",t=>{this.#L()}),this.baseElement.addEventListener("focus",t=>{this.#f()}),ae(this.baseElement,this,s),oe(this.baseElement,this,{excludeAttrs:n,includeAttrs:r})}}return l},ni=["required","pattern"],ri=Symbol("validationTarget"),si=t=>class extends t{#C=ri;static get observedAttributes(){return[...t.observedAttributes||[],...ni]}static get formAssociated(){return!0}#S;get internals(){return this.#S}set internals(t){this.#S=t}constructor(){super(),this.#S=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}get defaultErrorMsgTypeMismatch(){return"Please match the requested type."}getCustomErrorMessage(t,e){return this.hasAttribute(t)?this.getAttribute(t)||" ":e}getErrorMessage(t){const{valueMissing:e,patternMismatch:i,typeMismatch:o,stepMismatch:n,tooShort:r,tooLong:s,rangeOverflow:a,rangeUnderflow:l,badInput:d,customError:c}=t;switch(!0){case e:return this.getCustomErrorMessage("data-errormessage-value-missing",this.defaultErrorMsgValueMissing);case i||n||d:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch",this.defaultErrorMsgPatternMismatch);case o:return this.getCustomErrorMessage("data-errormessage-type-mismatch",this.defaultErrorMsgTypeMismatch);case r:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-short",this.defaultErrorMsgTooShort);case s:return this.getCustomErrorMessage("data-errormessage-pattern-mismatch-too-long",this.defaultErrorMsgTooLong);case l:return this.getCustomErrorMessage("data-errormessage-pattern-range-underflow",this.defaultErrorMsgRangeUnderflow);case a:return this.getCustomErrorMessage("data-errormessage-pattern-range-overflow",this.defaultErrorMsgRangeOverflow);case c:return this.validationMessage;default:return""}}#w(){const t=this.isReadOnly?{}:this.getValidity();this.#S.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#S.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#S.validity.valid}reportValidity(){return this.#S.reportValidity()}get validity(){return this.#S.validity}get validationTarget(){return this.#C===ri?this.inputElement:this.#C}set validationTarget(t){this.#C=t}setCustomValidity(t){t?this.#S.setValidity({customError:!0},t,this.validationTarget):(this.#S.setValidity({}),this.#w())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#S.form}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),ni.includes(t)&&this.#w()}init(){super.init?.(),this.addEventListener("change",this.#w),this.addEventListener("invalid",t=>t.stopPropagation()),this.addEventListener("input",this.#w),setTimeout(()=>this.#w())}},ai=["invalid","required"],li=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},di=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:i="input",triggerValidationEvents:o=[],proxyParentValidation:n=!1})=>r=>class extends(si(r)){static get observedAttributes(){return[...r.observedAttributes||[],...ai]}#E;#v=ii.bind(this,"change");constructor(){super(),this.#E=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout(()=>{!this.#E&&console.warn(this.localName,"no input was found")},0)}get inputElement(){if(this.#E)return this.#E;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#E=li(t)||li(e),this.#E}set inputElement(t){this.#E=t}getValidity(){return this.inputElement?.validity||{}}#k(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#k(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),o.forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.inputElement?.setCustomValidity("")})}),setTimeout(()=>{(Array.isArray(i)?i:[i]).forEach(t=>{this.baseElement?.addEventListener(t,()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#k()})}),this.baseElement.addEventListener("change",()=>{this.#v()}),this.addEventListener("invalid",()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#k()}),t.forEach(t=>{const i=this.querySelector('input[slot="external-input"]')||null,o=e?[this.baseElement,i].filter(Boolean):[];((t,e,i)=>{const o=Array.isArray(e)?e:[e];Object.defineProperty(t,i,{set(t){o.forEach(e=>{e[i]=t})},get:()=>e[0][i],configurable:!0})})(this,[this.inputElement,...o],t)}),this.setSelectionRange=this.inputElement?.setSelectionRange?.bind(this.inputElement),se(this,this.inputElement,{includeAttrs:["inputmode"]})}),n){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,i)=>"function"==typeof t[i]&&"setValidity"===i?(...o)=>{if(3===o.length){const t=o.slice(0,o.length-1);t.push(e.inputElement),e.internals[i](...t)}else e.internals[i](...o);return t[i](...o)}:"function"==typeof t[i]?(...o)=>(e.internals[i](...o),t[i](...o)):t[i]})}}},ci=t=>qt(di(t),Je({componentNameOverride:ne("input-wrapper")})),ui=({name:t,selector:e,mappings:i={},style:o="",forward:n={}})=>e=>{const r=t,s=Je({mappings:i,style:o})(e);return class extends s{static get cssVarList(){return{...s.cssVarList,[r]:He($t(e.componentName,"_"+r),i)}}#O;constructor(){const t=(e=async t=>(t.shadowRoot||t).querySelector(t.baseSelector),async t=>{const i=await e(t);return new Promise(t=>{let e=0;const o=()=>{if(e>20)return console.error("could not get shadow root for element",i),void t(i);e++,i?.shadowRoot?t(i.shadowRoot):setTimeout(o)};o()})});var e;super({getRootElement:t,componentNameSuffix:"_"+r,themeSection:"_"+r,baseSelector:""}),this.#V=()=>t(this).then(t=>t?.host||t)}#V;async#W(){const t=await this.#O;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.(),this.#O=this.#V();const t=await this.#O;if(!1!==n){const{attributes:e=[],include:i=!0}=n;se(this,t,{[i?"includeAttrs":"excludeAttrs"]:e})}this.#W()}}},pi=t=>class extends t{#v=ii.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",t=>{t.stopPropagation()}),this.addEventListener("blur",()=>{this.value!==this.prevValue&&(this.#v(),this.prevValue=this.value)})}},hi=t=>class extends t{init(){this.#z(),super.init?.()}#z(){["blur","focus","focusin","focusout"].forEach(t=>{this.addEventListener(t,t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()})})}handleFocusEventsDispatching(t){let e;t?.forEach(t=>{t?.addEventListener("focusout",t=>{t.stopImmediatePropagation(),e=setTimeout(()=>{e=null,ii.call(this,"blur"),ii.call(this,"focusout",{bubbles:!0})})});const i=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(ii.call(this,"focus"),ii.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",i),t?.addEventListener("focus",i)})}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,ii.call(this,"input",{bubbles:!0,composed:!0})))})}},gi=t=>class extends t{init(){super.init?.(),this.baseElement._hasValidConstraints&&(this.baseElement._hasValidConstraints=()=>!0)}},Mi=(...t)=>qt(si,pi,ti,hi)(ei(...t)),mi=ne("boolean-field-internal"),yi=["disabled","invalid","readonly"],bi=Mi({componentName:mi,baseSelector:"div"}),Ni=t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${mi}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${mi}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(mi),this.checkbox=this.inputElement.querySelector("vaadin-checkbox"),se(this,this.inputElement,{includeAttrs:["required","full-width","size","label","invalid","disabled","readonly"]}),ae(this.inputElement,this,["checked"]),oe(this,this.inputElement,{includeAttrs:["checked"]})}};var Ii=t=>`\n:host {\n\tdisplay: inline-flex;\n}\n\n\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n.wrapper {\n\tdisplay: flex;\n\tbox-sizing: border-box;\n}\nvaadin-text-field {\n\tposition: relative;\n\tpadding: 0;\n\tdisplay: inline-flex;\n\talign-items: flex-start;\n}\nvaadin-text-field::before {\n content: unset;\n}\nvaadin-text-field::part(label) {\n position: absolute;\n top: 0;\n}\nvaadin-text-field::part(input-field) {\n\tpadding: 0;\n\tbackground: none;\n\tmin-height: 0;\n}\nvaadin-text-field::part(input-field)::after {\n background: none;\n}\nvaadin-text-field[focus-ring]::part(input-field) {\n\tbox-shadow: none;\n}\n\nvaadin-checkbox [slot="label"] {\n align-self: flex-start;\n padding: 0;\n}\n[required] vaadin-checkbox [slot="label"]:not(:empty) {\n\tpadding-inline-end: 1em;\n}\ndescope-boolean-field-internal {\n -webkit-mask-image: none;\n min-height: initial;\n}\n\ndescope-enriched-text[empty] {\n\t${Ht.cssVarList.hostDisplay}: none;\n}\n\ndescope-enriched-text {\n\t${Ht.cssVarList.hostDirection}: var(${t.hostDirection});\n}\n\n`;const xi=ne("checkbox"),{host:ji,component:Ti,checkboxElement:Di,checkboxSurface:vi,checkboxLabel:zi,requiredIndicator:Ci,helperText:Si,errorMessage:wi}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::part(content)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ai=qt(Je({mappings:{hostWidth:{...ji,property:"width"},hostDirection:{...ji,property:"direction"},fontSize:[ji,Di,zi],fontFamily:[zi,Si,wi],labelTextColor:{...zi,property:"color"},labelSpacing:{...zi,property:"padding-inline-start"},labelLineHeight:{...zi,property:"line-height"},labelFontWeight:{...zi,property:"font-weight"},labelRequiredIndicator:{...Ci,property:"content"},errorMessageTextColor:{...wi,property:"color"},errorMessageIcon:{...wi,property:"background-image"},errorMessageIconSize:{...wi,property:"background-size"},errorMessageIconPadding:{...wi,property:"padding-inline-start"},errorMessageIconRepeat:{...wi,property:"background-repeat"},errorMessageIconPosition:{...wi,property:"background-position"},errorMessageFontSize:{...wi,property:"font-size"},inputValueTextColor:{...vi,property:"color"},inputBackgroundColor:{...Di,property:"background-color"},inputBorderRadius:{...Di,property:"border-radius"},inputBorderWidth:{...Di,property:"border-width"},inputBorderOffset:{...Di,property:"border-offset"},inputBorderColor:{...Di,property:"border-color"},inputBorderStyle:{...Di,property:"border-style"},inputOutlineWidth:{...Di,property:"outline-width"},inputOutlineOffset:{...Di,property:"outline-offset"},inputOutlineColor:{...Di,property:"outline-color"},inputOutlineStyle:{...Di,property:"outline-style"},inputAlign:{...Di,property:"align-self"},inputContainerPadding:{...Ti,property:"padding"},inputContainerBackgroundColor:{...Ti,property:"background-color"},inputContainerBorderRadius:{...Ti,property:"border-radius"},inputContainerBorderWidth:{...Ti,property:"border-width"},inputContainerBorderColor:{...Ti,property:"border-color"},inputContainerBorderStyle:{...Ti,property:"border-style"},inputContainerOutlineWidth:{...Ti,property:"outline-width"},inputContainerOutlineOffset:{...Ti,property:"outline-offset"},inputContainerOutlineColor:{...Ti,property:"outline-color"},inputContainerOutlineStyle:{...Ti,property:"outline-style"},inputSize:[{...Di,property:"width"},{...Di,property:"height"},{...vi,property:"font-size"},{...Ti,property:"font-size"}]}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,Ni)(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Ii(Ai.cssVarList)}\n ${Ie(Ai.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 2px;\n\t\t\t\twidth: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n\n :host([full-width]) vaadin-checkbox {\n flex-grow: 1;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox)::after {\n top: 0;\n left: 0;\n -webkit-text-fill-color: initial;\n }\n\n vaadin-checkbox label {\n -webkit-text-fill-color: initial;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n `,excludeAttrsSync:["label","tabindex","style"],componentName:xi})),Li=f("text");class fi extends(jt({componentName:Li,baseSelector:":host > slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <slot part="text-wrapper"></slot>\n ',O("\n :host {\n display: inline-block;\n line-height: 1em;\n }\n :host > slot {\n width: 100%;\n display: inline-block;\n }\n ",this)}get hideWhenEmpty(){return"true"===this.getAttribute("hide-when-empty")}init(){super.init(),S(this,()=>{const t=!!this.childNodes.length;this.style.display=!t&&this.hideWhenEmpty?"none":""})}}const{host:Ei}={host:{selector:()=>":host"}},ki=T(Mt({mappings:{hostWidth:{...Ei,property:"width"},hostDirection:{...Ei,property:"direction"},fontSize:{},textColor:[{property:"color"}],textLineHeight:{property:"line-height"},textLetterSpacing:{property:"letter-spacing"},textShadow:{},textAlign:{},textTransform:{},fontFamily:{},fontStyle:{},fontWeight:{},borderWidth:{},borderStyle:{},borderColor:{}}}),Pt({triggers:[{attr:"full-width",value:"true"}]}),mt,yt)(fi),Oi=f("link"),Vi=["href","readonly"];class Wi extends(jt({componentName:Oi,baseSelector:":host a"})){static get observedAttributes(){return Vi.concat(super.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t<div>\n\t\t\t<descope-text part="wrapper">\n\t\t\t\t<a>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</a>\n\t\t\t</descope-text>\n\t\t</div>\n\t\t',O('\n :host {\n\t\t\tdisplay: inline-block;\n line-height: 1em;\n\t\t}\n\t\t:host a {\n\t\t\tdisplay: inline;\n\t\t}\n\n :host([ellipsis="true"]) descope-text {\n display: inline-flex;\n }\n :host([ellipsis="true"]) descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ',this),this.anchor=this.shadowRoot.querySelector("a"),k(this,this.anchor,{includeAttrs:["href","target","tooltip"],mapAttrs:{tooltip:"title"}}),k(this,this.shadowRoot.querySelector("descope-text"),{includeAttrs:["mode","variant"]}),this.anchor.addEventListener("click",t=>{this.readOnly&&t.preventDefault()})}get readOnly(){return"true"===this.getAttribute("readonly")}}const Ri={host:{selector:()=>":host"},link:{selector:()=>":host a"},anchor:{},wrapper:{selector:()=>":host > div"},text:{selector:()=>ki.componentName}},{anchor:Ui,text:Yi,host:Qi,wrapper:Pi,link:Bi}=Ri,Zi=T(Mt({mappings:{hostWidth:{...Qi,property:"width"},hostDirection:{...Yi,property:"direction"},textAlign:Pi,textDecoration:{...Bi,property:"text-decoration",fallback:"none"},textColor:[{...Ui,property:"color"},{...Yi,property:ki.cssVarList.textColor}],cursor:Ui}}),Pt({triggers:[{attr:"full-width",value:"true"}]}),mt,yt)(Wi);customElements.define(Li,ki),customElements.define(Oi,Zi),customElements.define(Zt,Ht),customElements.define(mi,class extends bi{static get observedAttributes(){return["readonly","label"]}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper">\n\t\t\t\t<vaadin-checkbox>\n\t\t\t\t\t<descope-enriched-text link-target-blank="true" class="label-content" slot="label"></descope-enriched-text>\n\t\t\t\t</vaadin-checkbox>\n\t\t\t</div>\n\t\t',this.wrapperEle=this.querySelector("div"),this.checkbox=this.querySelector("vaadin-checkbox"),this.labelContent=this.querySelector(".label-content")}get value(){return this.checkbox?.checked}set value(t){this.checkbox.checked=t}get checked(){return this.value}set checked(t){this.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.checkbox.focus()}),super.init?.(),se(this,this.checkbox,{includeAttrs:yi}),oe(this,this.checkbox,{includeAttrs:["checked"]}),this.labelContent.addEventListener("click",t=>{this.hasAttribute("disabled")||this.hasAttribute("readonly")||this.checkbox.click()}),this.handleFocusEventsDispatching([this.checkbox])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i),"label"===t&&this.onLabelChange()}onLabelChange(){const t=this.getAttribute("label");this.labelContent.textContent=t||""}onReadOnlyChange(t){this.baseElement.setAttribute("inert",t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}}),customElements.define(xi,Ai);const Fi=ne("switch-toggle"),{host:Gi,component:Hi,checkboxElement:Ji,checkboxSurface:$i,checkboxLabel:qi,requiredIndicator:_i,helperText:Xi,errorMessage:Ki}={host:{selector:()=>":host"},requiredIndicator:{selector:'[required] vaadin-checkbox [slot="label"]:not(:empty)::part(content)::after'},component:{selector:"vaadin-checkbox"},checkboxElement:{selector:"vaadin-checkbox::part(checkbox)"},checkboxSurface:{selector:"vaadin-checkbox::part(checkbox)::after"},checkboxLabel:{selector:'vaadin-checkbox [slot="label"]:not(:empty)'},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},to=qt(Je({mappings:{hostWidth:{...Gi,property:"width"},hostDirection:{...Gi,property:"direction"},fontSize:[Hi,qi,qi],fontFamily:[qi,Xi,Ki],labelTextColor:[{...qi,property:"color"},{...qi,property:"-webkit-text-fill-color"}],labelSpacing:{...qi,property:"padding-inline-start"},labelLineHeight:{...qi,property:"line-height"},labelFontWeight:{...qi,property:"font-weight"},labelRequiredIndicator:{..._i,property:"content"},errorMessageTextColor:{...Ki,property:"color"},errorMessageIcon:{...Ki,property:"background-image"},errorMessageIconSize:{...Ki,property:"background-size"},errorMessageIconPadding:{...Ki,property:"padding-inline-start"},errorMessageIconRepeat:{...Ki,property:"background-repeat"},errorMessageIconPosition:{...Ki,property:"background-position"},errorMessageFontSize:{...Ki,property:"font-size"},trackBorderWidth:{...Ji,property:"border-width"},trackBorderStyle:{...Ji,property:"border-style"},trackBorderColor:{...Ji,property:"border-color"},trackBackgroundColor:{...Ji,property:"background-color"},trackBorderRadius:{...Ji,property:"border-radius"},trackWidth:[{...Ji,property:"width"}],trackHeight:[{...$i,property:"font-size"},{...Ji,property:"height"}],knobSize:[{...$i,property:"width"},{...$i,property:"height"}],knobTextColor:{...$i,property:"color"},knobRadius:{...$i,property:"border-radius"},knobTransitionDuration:{...$i,property:"transition"},knobColor:{...$i,property:"background-color"},knobTopOffset:{...$i,property:"top"},knobLeftOffset:{...$i,property:"left"},inputOutlineWidth:{...Ji,property:"outline-width"},inputOutlineOffset:{...Ji,property:"outline-offset"},inputOutlineColor:{...Ji,property:"outline-color"},inputOutlineStyle:{...Ji,property:"outline-style"}}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,Ni)(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t${Ii(to.cssVarList)}\n\t\t\t${Ie(to.cssVarList)}\n\n :host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n }\n\n :host ::part(error-message) {\n direction: ltr;\n }\n\n vaadin-text-field {\n width: 100%;\n }\n\n vaadin-text-field::part(input-field)::after {\n content: none;\n }\n\n descope-boolean-field-internal {\n\t\t\t\tpadding: 0;\n width: 100%;\n }\n\n vaadin-text-field::part(input-field) {\n cursor: pointer;\n }\n\n vaadin-checkbox {\n cursor: pointer;\n }\n\n vaadin-checkbox [slot="label"]:not(:empty) {\n cursor: pointer;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::before {\n content: '';\n\t\t\t}\n\n vaadin-checkbox[active]::part(checkbox) {\n\t\t\t\ttransform: none;\n\t\t\t}\n\n vaadin-checkbox::part(checkbox)::after {\n\t\t\t\tposition: absolute;\n\t\t\t\topacity: 1;\n\t\t\t\tcontent: '';\n\t\t\t}\n\t\t`,excludeAttrsSync:["label","tabindex","style"],componentName:Fi}));customElements.define(Fi,to);const eo=ne("loader-linear");class io extends(ei({componentName:eo,baseSelector:":host > div"})){static get componentName(){return eo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",O("\n @keyframes tilt {\n\t\t\t\t0% { transform: translateX(0); }\n\t\t\t\t50% { transform: translateX(400%); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\tdiv::after {\n\t\t\t\tcontent: '';\n\t\t\t\tanimation-name: tilt;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\twidth: 100%;\n\t\t\t}\n ",this)}}const{after:oo,host:no}={after:{selector:"::after"},host:{selector:()=>":host"}},ro=qt(Je({mappings:{hostDisplay:{},hostWidth:{...no,property:"width"},barHeight:[{property:"height"},{...oo,property:"height"}],barBorderRadius:[{property:"border-radius"},{...oo,property:"border-radius"}],verticalPadding:[{...no,property:"padding-top"},{...no,property:"padding-bottom"}],barBackgroundColor:{property:"background-color"},barColor:{...oo,property:"background-color"},barWidth:{...oo,property:"width"},animationDuration:[{},oo],animationTimingFunction:[{},oo],animationIterationCount:[{},oo]}}),$e,qe)(io);customElements.define(eo,ro);const so=ne("loader-radial");class ao extends(ei({componentName:so,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div></div>\n\t",O("\n @keyframes spin {\n\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tanimation-name: spin;\n\t\t\t}\n ",this)}}const lo=qt(Je({mappings:{hostDisplay:{property:"display"},spinnerSize:[{property:"width"},{property:"height"}],spinnerBorderWidth:{property:"border-width"},spinnerBorderStyle:{property:"border-style"},spinnerBorderRadius:{property:"border-radius"},spinnerQuadrant1Color:{property:"border-top-color"},spinnerQuadrant2Color:{property:"border-bottom-color"},spinnerQuadrant3Color:{property:"border-right-color"},spinnerQuadrant4Color:{property:"border-left-color"},animationDuration:{},animationTimingFunction:{},animationIterationCount:{}}}),$e,qe)(ao);customElements.define(so,lo);const co=ne("container");class uo extends(ei({componentName:co,baseSelector:"slot"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",O("\n\t\t\t:host > slot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: auto;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n ",this)}}const po=qt(Je({mappings:{hostHeight:{selector:()=>":host",property:"height"},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},itemsGrow:{selector:()=>"::slotted(*)",property:"flex-grow",fallback:"0"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:{},flexWrap:{},backgroundColor:{},backgroundImage:{},backgroundPositionX:{},backgroundPositionY:{},backgroundSize:{},backgroundRepeat:{},color:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{}}}),$e,qe)(uo);customElements.define(co,po);const ho=f("combo-box"),{host:go,inputField:Mo,inputElement:mo,placeholder:yo,toggle:bo,clearButton:No,label:Io,requiredIndicator:xo,helperText:jo,errorMessage:To,loader:Do,overlayContent:vo}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},loader:{selector:"vaadin-combo-box-overlay::part(loader)"},overlayContent:{selector:"vaadin-combo-box-overlay::part(content)"}},zo=T(Mt({mappings:{hostWidth:{...go,property:"width"},hostDirection:{...go,property:"direction"},fontSize:[{},go],fontFamily:[Io,yo,Mo,jo,To],labelFontSize:{...Io,property:"font-size"},labelFontWeight:{...Io,property:"font-weight"},inputValueFontWeight:{...Mo,property:"font-weight"},inputPlaceholderFontWeight:{...yo,property:"font-weight"},helperTextFontWeight:{...jo,property:"font-weight"},errorMessageFontWeight:{...To,property:"font-weight"},labelTextColor:[{...Io,property:"color"},{...Io,property:"-webkit-text-fill-color"},{...xo,property:"color"}],errorMessageTextColor:{...To,property:"color"},errorMessageIcon:{...To,property:"background-image"},errorMessageIconSize:{...To,property:"background-size"},errorMessageIconPadding:{...To,property:"padding-inline-start"},errorMessageIconRepeat:{...To,property:"background-repeat"},errorMessageIconPosition:{...To,property:"background-position"},errorMessageFontSize:{...To,property:"font-size"},inputHeight:{...Mo,property:"height"},inputBackgroundColor:{...Mo,property:"background-color"},inputBorderColor:{...Mo,property:"border-color"},inputBorderWidth:{...Mo,property:"border-width"},inputBorderStyle:{...Mo,property:"border-style"},inputBorderRadius:{...Mo,property:"border-radius"},labelRequiredIndicator:{...xo,property:"content"},inputValueTextColor:{...Mo,property:"color"},inputPlaceholderTextColor:{...yo,property:"color"},inputDropdownButtonCursor:[{...bo,property:"cursor"},{...No,property:"cursor"}],inputDropdownButtonColor:[{...bo,property:"color"},{...No,property:"color"}],inputDropdownButtonSize:[{...bo,property:"font-size"},{...No,property:"font-size"}],inputDropdownButtonOffset:[{...bo,property:"margin-right"},{...bo,property:"margin-left"}],inputOutlineColor:{...Mo,property:"outline-color"},inputOutlineWidth:{...Mo,property:"outline-width"},inputOutlineStyle:{...Mo,property:"outline-style"},inputOutlineOffset:{...Mo,property:"outline-offset"},inputHorizontalPadding:[{...mo,property:"padding-left"},{...mo,property:"padding-right"}],labelPosition:{...Io,property:"position"},labelTopPosition:{...Io,property:"top"},labelHorizontalPosition:[{...Io,property:"left"},{...Io,property:"right"}],inputTransformY:{...Io,property:"transform"},inputTransition:{...Io,property:"transition"},marginInlineStart:{...Io,property:"margin-inline-start"},placeholderOpacity:{...yo,property:"opacity"},inputVerticalAlignment:{...Mo,property:"align-items"},valueInputHeight:{...mo,property:"height"},valueInputMarginBottom:{...mo,property:"margin-bottom"},overlayBackground:{property:()=>zo.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>zo.cssVarList.overlay.textColor},overlayBorder:{property:()=>zo.cssVarList.overlay.border},overlayFontSize:{property:()=>zo.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>zo.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>zo.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>zo.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>zo.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>zo.cssVarList.overlay.itemPaddingInlineEnd},overlayCheckmarkDisplay:{property:()=>zo.cssVarList.overlay.checkmarkDisplay},overlaySelectedItemBackground:{property:()=>zo.cssVarList.overlay.selectedItemBackground},overlaySelectedItemHoverBackground:{property:()=>zo.cssVarList.overlay.selectedItemHoverBackground},overlaySelectedItemFocusBackground:{property:()=>zo.cssVarList.overlay.selectedItemFocusBackground},overlayItemHoverBackground:{property:()=>zo.cssVarList.overlay.itemHoverBackground},overlayItemFocusBackground:{property:()=>zo.cssVarList.overlay.itemFocusBackground}}}),mt,Wt({name:"overlay",selector:"",mappings:{backgroundColor:[{selector:"vaadin-combo-box-scroller"},{selector:"vaadin-combo-box-overlay::part(overlay)"}],minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"},checkmarkDisplay:{selector:"vaadin-combo-box-item::part(checkmark)",property:"display"},selectedItemBackground:{selector:"vaadin-combo-box-item[selected]",property:"background-color"},selectedItemHoverBackground:{selector:"vaadin-combo-box-item[selected]:hover:not([disabled])",property:"background-color"},selectedItemFocusBackground:{selector:"vaadin-combo-box-item[selected][focused]:not([disabled])",property:"background-color"},itemHoverBackground:{selector:"vaadin-combo-box-item:hover:not([selected]):not([disabled])",property:"background-color"},itemFocusBackground:{selector:"vaadin-combo-box-item[focused]:not([selected]):not([disabled])",property:"background-color"},loaderTop:{...Do,property:"top"},loaderLeft:{...Do,property:"left"},loaderRight:{...Do,property:"right"},loaderMargin:{...Do,property:"margin"},loaderWidth:{...Do,property:"width"},loaderHeight:{...Do,property:"height"},loaderBorder:{...Do,property:"border"},loaderBorderColor:{...Do,property:"border-color"},loaderBorderRadius:{...Do,property:"border-radius"},contentHeight:{...vo,property:"height"},contentOpacity:{...vo,property:"opacity"},scrollerMinHeight:{selector:"vaadin-combo-box-scroller",property:"min-height"}},forward:{include:!1,attributes:["size"]}}),Vt({proxyProps:["selectionStart"],inputEvent:"value-changed"}),Qt,yt,t=>class extends t{static get observedAttributes(){return["label-type","require-match"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#R;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}set renderer(t){this.baseElement.renderer=t}get loading(){return"true"===this.getAttribute("loading")}set loading(t){t?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get requireMatch(){return"true"===this.getAttribute("require-match")&&!this.allowCustomValue}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){if(this.#R||this.getAttribute("data")){const t=this.getItemsTemplate();this.innerHTML=t}}get hasDynamicData(){return"true"===this.getAttribute("has-dynamic-data")}get shouldSelectItemOnItemsChange(){return!this.hasDynamicData||this.allowCustomValue}handleSelectedItem(){const{selectedItem:t}=this.baseElement,e=t?.["data-id"];t&&Array.from(this.children).includes(t)||(e&&this.shouldSelectItemOnItemsChange&&(this.value=e),this.value||this.setDefaultValue())}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){if(!e.baseElement.items?.length&&!e.allowCustomValue)return;const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#et(){const t=Array.from(this.children);t.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=t,setTimeout(()=>{this.handleSelectedItem()},0)}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#ot(){this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#nt(){this.hasDynamicData&&(this.baseElement._dataProviderFilterChanged=()=>{})}isValueMatch(){const t=this.baseElement.querySelector("input").value;return!t||this.baseElement.items.some(e=>e.dataset.name===t||e.dataset.id===t)}init(){super.init?.(),k(this,this.baseElement,{includeAttrs:["placeholder"]}),this.getValidity=function(){return this.requireMatch&&!this.isValueMatch()?{patternMismatch:!0}:!this.value&&this.isRequired?{valueMissing:!0}:{}},this.#ot(),this.#nt(),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),C(this,this.renderItems.bind(this),{includeAttrs:["data"]}),S(this,this.#et.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}),this.baseElement.addEventListener("filter-changed",t=>{this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.autoOpenDisabled||this.setAttribute("opened","true"))}handleRequireMatchChange(t){this.baseElement.allowCustomValue=t||this.allowCustomValue}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"require-match"===t&&this.handleRequireMatchChange("true"===i))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#rt(t){return this.baseElement.items?.find(e=>e["data-id"]===t)}#st(t,e){t===this.value&&e!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",t=>{t.stopImmediatePropagation()},{once:!0,capture:!0})}set value(t){const e=this.#rt(t);this.#st(t,e),t&&e?this.baseElement.selectedItem=e:!e&&this.allowCustomValue?this.baseElement.value=t:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get autoOpenDisabled(){return"true"===this.getAttribute("auto-open-disabled")}})(ft({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${_(zo.cssVarList)}\n\t\t${tt("vaadin-combo-box")}\n\t\t${K("vaadin-combo-box")}\n\t\t${X("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n\n vaadin-combo-box::part(toggle-button),\n vaadin-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-combo-box[hide-toggle-button="true"]::part(toggle-button) {\n display: none;\n }\n\n vaadin-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n ${it("vaadin-combo-box")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","size","placeholder","data","loading","style"],componentName:ho,includeForwardProps:["items","renderer","selectedItem"]}));customElements.define(ho,zo);const Co=t=>{const e=n.A.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["image"],FORBID_TAGS:["defs"]});return(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("svg")},So=f("image"),wo=["src","src-dark"];class Ao extends(jt({componentName:So,baseSelector:"slot"})){static get observedAttributes(){return wo}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<slot></slot>\n\t",O("\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n :host > slot {\n width: 100%;\n height: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tdisplay: flex;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n ::slotted(*) {\n width: 100%;\n\t\t\t}\n\n .hidden {\n display: none;\n }\n ",this)}init(){super.init?.(),this.toggleVisibility(this.getSrc)}onThemeChange(){this.renderImage()}toggleVisibility(t){t?this.classList.remove("hidden"):this.classList.add("hidden")}get altText(){return this.getAttribute("alt")||""}get legacySrc(){return this.getAttribute("src")}get themeSrc(){return this.getAttribute(`src-${this.currentThemeName}`)}get getSrc(){return this.themeSrc||this.legacySrc}updateFillColor(t){[t,...t.querySelectorAll("*[fill]")].forEach(t=>{t.setAttribute("fill",`var(${Lo.cssVarList.fill}, ${t.getAttribute("fill")||"''"})`)})}renderImage(){this.toggleVisibility(this.getSrc),(async(t,e)=>{try{let i;if((t=>t.startsWith("data:image/svg+xml;base64,"))(t)){const e=atob(t.slice(26));i=Co(e)}else if("svg"===(t=>{const e=t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i);return e?e[1]:null})(t)){const e=await fetch(t),o=await e.text();i=Co(o)}else i=((t,e)=>{const i=document.createElement("img");return i.setAttribute("src",t),i.setAttribute("alt",e),i})(t,e);return i.style.setProperty("max-width","100%"),i.style.setProperty("max-height","100%"),i}catch{return null}})(this.getSrc,this.altText).then(t=>{this.innerHTML="",t&&(this.updateFillColor(t),this.appendChild(t))})}shouldRender(t){const e=this.getAttribute(t);return this.getSrc===e}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&this.shouldRender(t)&&this.renderImage()}}const Lo=T(Mt({mappings:{fill:{},height:{selector:()=>":host"},width:{selector:()=>":host"}}}),mt,yt)(Ao),fo=f("icon"),Eo=T(Mt({mappings:{fill:[{},{property:Lo.cssVarList.fill}],height:{selector:()=>":host"},width:{selector:()=>":host"}}}),mt,yt)(ft({slots:[],wrappedEleName:"descope-image",style:()=>"\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n max-height: 100%;\n }\n ",excludeAttrsSync:["tabindex","class","style","st-height","st-width"],componentName:fo})),ko=f("button"),{host:Oo,label:Vo,slottedIcon:Wo}={host:{selector:()=>":host"},label:{selector:"::part(label)"},slottedIcon:{selector:()=>"::slotted(descope-icon)"}};let Ro;const Uo=T(Pt({triggers:[{attr:"full-width",value:"true"}]}),Mt({mappings:{hostWidth:{property:"width"},hostMaxWidth:{...Oo,property:"max-width"},hostHeight:{property:"height"},hostDirection:{...Oo,property:"direction"},fontSize:{},fontFamily:{},fontWeight:{},cursor:{},backgroundColor:{},outlineOffset:{},outlineColor:{},outlineStyle:{},outlineWidth:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-right",fallback:"0.875em"},{property:"padding-left",fallback:"0.875em"}],labelTextColor:{property:"color"},iconColor:{selector:()=>"::slotted(*)",property:Eo.cssVarList.fill},labelTextDecoration:{...Vo,property:"text-decoration"},labelSpacing:{...Vo,property:"gap"},textAlign:{...Vo,property:"justify-content",fallback:"center"},iconSize:[{...Wo,property:"width"},{...Wo,property:"height"}]}}),t=>class extends t{get isLoading(){return"true"===this.getAttribute("loading")}click(){this.isLoading||super.click()}},mt,yt)(ft({slots:["","prefix","label","suffix"],wrappedEleName:"vaadin-button",style:()=>`\n\t\t\t\n\t:host {\n\t\tdisplay: inline-block;\n\t\tbox-sizing: border-box;\n\t}\n\tvaadin-button::before,\n\tvaadin-button::after {\n\t\topacity: 0;\n\t}\n\tvaadin-button {\n\t\tmargin: 0;\n\t\tmin-width: 0;\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tbox-shadow: none;\n\t}\n\tvaadin-button::part(label) {\n\t\tpadding: 0;\n width: 100%;\n\t}\n\tvaadin-button::part(prefix) {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t\t\t\n\tvaadin-button::part(prefix),\n\tvaadin-button::part(label) {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t\t\t${Ro}\n\t\t\tvaadin-button::part(label) { pointer-events: none; }\n\t\t\t:host {\n\t\t\t\tpadding: calc(var(${Uo.cssVarList.outlineWidth}) + var(${Uo.cssVarList.outlineOffset}));\n\t\t\t}\n :host([full-width="true"]) {\n width: var(${Uo.cssVarList.hostWidth});\n }\n\t\t\tvaadin-button {\n\t\t\t\theight: calc(var(${Uo.cssVarList.hostHeight}) - var(${Uo.cssVarList.outlineWidth}) - var(${Uo.cssVarList.outlineOffset}));\n\t\t\t}\n\t\t\t[square="true"]:not([full-width="true"]) {\n\t\t\t\twidth: calc(var(${Uo.cssVarList.hostWidth}) - var(${Uo.cssVarList.outlineWidth}) - var(${Uo.cssVarList.outlineOffset}));\n padding: 0;\n\t\t\t}\n\t\t`,excludeAttrsSync:["tabindex","class","style","role"],componentName:ko})),{color:Yo,fontSize:Qo}=Uo.cssVarList;Ro=`\n\t@keyframes spin {\n\t\t0% { -webkit-transform: rotate(0deg); }\n\t\t100% { -webkit-transform: rotate(360deg); }\n\t}\n\t:host([loading="true"]) ::before {\n\t\tanimation: spin 2s linear infinite;\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\tz-index: 1;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: 50%;\n\t\tborder-bottom-color: transparent;\n\t\tborder-left-color: transparent;\n\t\tborder-style: solid;\n\t\tcolor: var(${Yo});\n\t\ttop: calc(50% - (var(${Qo}) / 2));\n\t\tleft: calc(50% - (var(${Qo}) / 2));\n\t\tborder-width: calc(var(${Qo}) / 10);\n\t\twidth: var(${Qo});\n\t\theight: var(${Qo});\n\t}\n\t:host([disabled="true"]),\n\t:host([loading="true"]) {\n\t\tpointer-events: none;\n\t}\n\t:host([loading="true"]) ::part(prefix),\n\t:host([loading="true"]) ::part(label) {\n\t\tvisibility: hidden;\n\t}\n`,customElements.define(ko,Uo);const Po=["MM/DD/YYYY","DD/MM/YYYY","YYYY/MM/DD"],Bo=Po[0],Zo="YYYY-MM-DD",Fo="/",Go=["January","February","March","April","May","June","July","August","September","October","November","December"],Ho=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Jo={id:"month",min:1,max:12,placeholder:"MM"},$o={id:"day",min:1,max:31,placeholder:"DD"},qo={id:"year",min:0,max:9999,placeholder:"YYYY"},_o=1900,Xo=2099,Ko=(t,e)=>{if("number"==typeof t)return new Date(t);if("string"==typeof t){const e=new Date(t.replace(/-/g,"/"));return new Date(e)}return new Date},tn={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])",YYYY:"([0-9]{4})"},en=t=>{const e=(t=>`^${t.split(Fo).map(t=>tn[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(Fo);return t=>{const i={};return e.forEach((e,o)=>{i[e]=t[o+1]}),[i.YYYY,i.MM,i.DD]}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getDate:t=>((t,e,i)=>{const o=e.exec(t);if(!o)return null;const[n,r,s]=i(o);return Ko([n,r,s].join(Fo))})(t,o,i)}},on=Object.fromEntries(Po.map(t=>[t,en(t)])),nn=t=>!Number.isNaN(Number(t)),rn=t=>{const e=Ko(t);return[e.getFullYear(),e.getMonth()+1,e.getDate()]},sn=(t,e)=>{const[i,o,n]=rn(t),r={DD:String(n).padStart(2,"0"),MM:String(o).padStart(2,"0"),YYYY:String(i)};return e.replace(/DD|MM|YYYY/g,t=>r[t])},an=()=>Ko().getTime(),ln=t=>Ko(t).getFullYear().toString(),dn=t=>(Ko(t).getMonth()+1).toString(),cn=(t,e)=>"number"==typeof t?t:e?Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()):t.getTime(),un=(t,e)=>Array.isArray(t)&&t.length===e&&t.filter(Boolean).length===e,pn=({label:t,dataId:e,dataName:i})=>`\n\t<div class="combo-box-item"\n\t\tdata-id="${e}"\n\t\tdata-name="${i}"\n\t>\n\t\t\t${t}\n\t</div>\n`,hn=(t=Go)=>t.map((t,e)=>pn({label:t,dataId:e+1,dataName:t})).join(""),gn=(t,e)=>{const[i,o]=rn(e),[n,r]=rn(t);return n===i&&r===o},Mn=(t,e,i)=>(t.addEventListener("input",e),t.addEventListener("focusout",i),t),mn=ne("calendar"),yn=["initial-value","initial-year","initial-month","years-range","calendar-months","calendar-weekdays","calendar-label-today","st-host-direction","disabled","full-width"],bn=["calendar-label-submit","calendar-label-cancel"],Nn=Mi({componentName:mn,baseSelector:"div"}),{calendar:In,day:xn,dayEntry:jn,currentDay:Tn,selectedDay:Dn,disabledDay:vn,weekday:zn,topNav:Cn,topNavSelectors:Sn,bottomNav:wn,navPrev:An,navNext:Ln,navPrevRTL:fn,navNextRTL:En,yearInput:kn,monthInput:On}={calendar:{selector:()=>".calendar"},topNav:{selector:()=>".nav.top-nav"},topNavSelectors:{selector:()=>".nav.top-nav .selectors > span"},bottomNav:{selector:()=>".nav.bottom-nav"},day:{selector:()=>".day"},dayEntry:{selector:()=>".day-entry"},currentDay:{selector:()=>".day-entry[data-current-day] .day"},selectedDay:{selector:()=>".day-entry[data-selected] .day"},disabledDay:{selector:()=>'.day-entry[data-disabled="true"] .day'},weekday:{selector:()=>".weekday"},navPrev:{selector:()=>".nav-prev"},navNext:{selector:()=>".nav-next"},navPrevRTL:{selector:()=>':host([st-host-direction="rtl"]) .nav-prev'},navNextRTL:{selector:()=>':host([st-host-direction="rtl"]) .nav-next'},yearInput:{selector:()=>".year-input"},monthInput:{selector:()=>".month-input"}},Vn=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{fontSize:{},fontFamily:{},hostWidth:[{selector:()=>":host",property:"width"},{selector:"table",property:"width"}],hostDirection:{property:"direction"},topNavVerticalPadding:[{...Cn,property:"padding-top"},{...Cn,property:"padding-bottom"}],topNavHorizointalPadding:[{...Cn,property:"padding-right"},{...Cn,property:"padding-left"}],topNavAlignment:{...Cn,property:"justify-content"},topNavGap:{...Cn,property:"gap"},topNavSelectorsGap:{...Sn,property:"gap"},bottomNavVerticalPadding:[{...wn,property:"padding-top"},{...wn,property:"padding-bottom"}],bottomNavHorizontalPadding:[{...wn,property:"padding-right"},{...wn,property:"padding-left"}],bottomNavAlignment:{...wn,property:"justify-content"},bottomNavGap:{...wn,property:"gap"},navMarginBottom:{...Cn,property:"margin-bottom"},calendarPadding:[{...In,property:"padding-bottom"},{...In,property:"padding-right"},{...In,property:"padding-left"}],navBorderBottomWidth:{...Cn,property:"border-bottom-width"},navBorderBottomColor:{...Cn,property:"border-bottom-color"},navBorderBottomStyle:{...Cn,property:"border-bottom-style"},weekdayFontSize:{...zn,property:"font-size"},weekdayFontWeight:{...zn,property:"font-weight"},currentDayBorderColor:{...Tn,property:"border-color"},currentDayBorderWidth:{...Tn,property:"border-width"},currentDayBorderStyle:{...Tn,property:"border-style"},dayHeight:{...jn,property:"height"},daySize:[{...xn,property:"height"},{...xn,property:"width"}],dayPadding:{...xn,property:"padding"},dayRadius:{...xn,property:"border-radius"},dayTextAlign:{...xn,property:"text-align"},dayBlockAlign:{...xn,property:"margin"},dayTextColor:{...xn,property:"color"},dayFontWeight:{...xn,property:"font-weight"},dayBackgroundColor:{...xn,property:"background-color"},dayCursor:{...xn,property:"cursor"},dayFontSize:{...xn,property:"font-size"},dayBackgroundColorHover:{selector:()=>".day:hover",property:"background-color"},daySelectedTextdColor:{...Dn,property:"color"},daySelectedBackgroundColor:{...Dn,property:"background-color"},dayDisabledTextdColor:{...vn,property:"color"},yearInputWidth:{...kn,property:"width"},monthInputWidth:{...On,property:"width"},navButtonSize:[{...An,property:"width"},{...An,property:"height"},{...Ln,property:"width"},{...Ln,property:"height"}],navButtonCursor:[{...An,property:"cursor"},{...Ln,property:"cursor"}],navButtonRotation:[{...fn,property:"transform"},{...En,property:"transform"}],navButtonOpacity:[{...An,property:"opacity"},{...Ln,property:"opacity"}]}}),$e,qe)(class extends Nn{static get observedAttributes(){return[].concat(Nn.observedAttributes||[],yn,bn)}preview;epoch;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <nav class="nav top-nav">\n <div class="nav-prev">\n </div>\n <div class="selectors"></div>\n <div class="nav-next">\n </div>\n </nav>\n <div class="calendar"></div>\n <nav class="nav bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary">Cancel</descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true">Done</descope-button>\n </nav>\n </div>\n ',O(`\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n [data-toggle-calendar] {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n }\n\n [data-disabled="true"] {\n pointer-events: none;\n }\n\n .calendar .day {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n\n .selectors,\n .selectors span {\n display: flex;\n justify-content: center;\n }\n\n descope-button {\n padding: 0;\n ${Uo.cssVarList.horizontalPadding}: 0;\n ${Uo.cssVarList.verticalPadding}: 0;\n ${Uo.cssVarList.outlineWidth}: 0;\n }\n\n .combo-box-item {\n display:flex;\n flex-direction: column;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n `,this)}set value(t){if(!t)return;const e=Ko(t).getTime();nn(e)&&e!==this.epoch&&(this.epoch=e,this.renderCalendar())}get value(){return this.epoch?sn(this.epoch,Zo):""}get isSelectedView(){return gn(this.preview,this.epoch)}get isTodayView(){return gn(an(),this.preview)}get monthNames(){return(t=>{const e=t?.split(",");return un(e,12)?e:Go})(this.getAttribute("calendar-months"))}get weekdayNames(){return(t=>{const e=t?.split?.(",");return un(e,7)?e:Ho})(this.getAttribute("calendar-weekdays"))}get hasYearValue(){return!!this.yearInput.value}get hasMonthValue(){return!!this.monthInput.value}get yearsRange(){const t=this.getAttribute("years-range")?.split("-");if(2===t?.length){const[e,i]=t.map(Number);if(e<=i)return[e,i]}const e=Ko().getFullYear();return[e,e+100]}init(){super.init?.(),this.initCalendar(),this.renderCalendar()}initCalendar(){this.calendar=this.shadowRoot.querySelector(".calendar"),this.navPrevEle=this.shadowRoot.querySelector(".nav-prev"),this.navNextEle=this.shadowRoot.querySelector(".nav-next"),this.submitButton=this.shadowRoot.querySelector(".submit-button"),this.cancelButton=this.shadowRoot.querySelector(".cancel-button"),this.initInputs(),this.initNav(),this.addEventListener("day-changed",()=>this.submitButton.removeAttribute("disabled")),this.submitButton.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}initInputs(){const t=(()=>{const t=document.createElement("span");return t.innerHTML=`\n <descope-combo-box\n label-type="static"\n bordered="true"\n item-label-path="data-name"\n item-value-path="data-id"\n class="month-input"\n >\n ${hn()}\n </descope-combo-box>\n <descope-combo-box\n allow-custom-value="true"\n label-type="static"\n bordered="true"\n item-label-path="data-name"\n item-value-path="data-id"\n class="year-input"\n no-empty-value="true"\n >\n </descope-combo-box>\n `,t})(this.monthNames,this.yearsRange);this.shadowRoot.querySelector(".selectors").appendChild(t),this.monthInput=Mn(this.shadowRoot.querySelector(".month-input"),this.onMonthChange.bind(this),this.onMonthInputBlur.bind(this)),this.yearInput=Mn(this.shadowRoot.querySelector(".year-input"),this.onYearChange.bind(this),this.onYearInputBlur.bind(this)),[this.monthInput,this.yearInput].forEach(t=>se(this,t,{includeAttrs:["disabled","size","st-host-direction"]}))}initNav(){this.navPrevEle.addEventListener("click",this.navPrevMonth.bind(this)),this.navNextEle.addEventListener("click",this.navNextMonth.bind(this)),this.cancelButton.addEventListener("click",this.onCancel.bind(this)),this.submitButton.addEventListener("click",this.onSubmit.bind(this)),[this.navPrevEle,this.navNextEle].forEach(t=>se(this,t,{includeAttrs:["size"]})),this.shadowRoot.querySelector(".nav-next").innerHTML='\n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.27283 6.78069C8.87912 6.34164 8.91587 5.66655 9.35492 5.27283C9.79397 4.87912 10.4691 4.91587 10.8628 5.35492C10.8628 5.35492 16.0022 10.9543 16.366 11.36C16.7298 11.7657 16.7298 12.2392 16.366 12.6448L10.8628 18.6451C10.4691 19.0841 9.79397 19.1209 9.35492 18.7272C8.91587 18.3334 8.87912 17.6584 9.27283 17.2193L14.1368 12L9.27283 6.78069Z" fill="#808080"/>\n</svg>',this.shadowRoot.querySelector(".nav-prev").innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.7272 17.2193C15.1209 17.6584 15.0841 18.3334 14.6451 18.7272C14.206 19.1209 13.5309 19.0841 13.1372 18.6451C13.1372 18.6451 7.99776 13.0457 7.63399 12.64C7.27023 12.2343 7.27023 11.7608 7.63399 11.3552L13.1372 5.35492C13.5309 4.91587 14.206 4.87912 14.6451 5.27283C15.0841 5.66655 15.1209 6.34164 14.7272 6.78069L9.86322 12L14.7272 17.2193Z" fill="#808080"/>\n</svg>'}onSubmit(){this.isDisabled||this.value&&this.dispatchEvent(new CustomEvent("date-submit",{detail:Ko(this.preview)}))}onCancel(){this.isDisabled||(this.dispatchEvent(new CustomEvent("cancel")),this.dispatchEvent(new CustomEvent("date-cancel")),this.clearSelectedDay())}clearSelectedDay(){this.getSelectedDayEle()?.removeAttribute("data-selected"),this.submitButton.setAttribute("disabled","true"),this.epoch=""}updateInputs(){if(this.yearInput&&this.monthInput){const t=this.preview||an(),e=ln(t),i=dn(t);this.monthInput.value=i,setTimeout(()=>{this.yearInput.baseElement.value=e})}}renderCalendar(){const t=Ko(this.preview||an()).getTime(),[e,i]=rn(t);this.calendar&&(this.calendar.innerHTML=((t,e,i)=>{const o=((t,e)=>new Date(t,e,0).getDate())(t,e),n=new Date(t,e-1,1).getDay();let r="<table>";r+=`<thead><tr>${i.reduce((t,e)=>`${t}<th><span class="weekday">${e}</span></th>`,"")}</tr></thead>`,r+="<tbody>",r+="<tr>";for(let t=0;t<n;t++)r+="<td></td>";let s=n;for(let t=1;t<=o;t++)7===s&&(s=0,r+="</tr><tr>"),r+=`\n <td\n data-date-day="${t}"\n class="day-entry">\n <span class="day" data-date-day=${t}>\n ${t}\n </span>\n </td>\n `,s++;for(;s<7;)r+="<td></td>",s++;return r+="</tr></tbody></table>",r})(e,i,this.weekdayNames.map(t=>t.substring(0,3)))),Array.from(this.calendar?.querySelectorAll(".day-entry .day")||[]).forEach(t=>t.addEventListener("click",this.onDayChange.bind(this))),this.updateInputs(),this.setSelectedDay(),this.setCurrentDay()}onDayChange(t){if(this.isDisabled)return;const e=Ko(this.preview);e.setDate(Number(t.target.getAttribute("data-date-day"))),this.value=sn(e.getTime(),Zo),this.dispatchEvent(new CustomEvent("day-changed",{detail:e}))}onYearChange(t){if(!t.target.value)return;const e=Ko(this.preview);e.setFullYear(Number(t.target.value.trim())),this.preview=e.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("year-changed",{detail:e}))}onMonthChange(t){if(!t.target.value)return;const e=Ko(this.preview);e.setMonth(Number(t.target.value)-1),this.preview=e.getTime(),this.renderCalendar(),this.dispatchEvent(new CustomEvent("month-changed",{detail:e}))}onYearInputBlur(t){this.yearInput.baseElement.value=t.target.value||ln(this.preview)}onMonthInputBlur(t){this.monthInput.baseElement.value=t.target.value||dn(this.preview)}getSelectedDayEle(){const t=Ko(this.epoch).getDate();return this.calendar?.querySelector(`[data-date-day="${t}"]`)}getCurrentDayEle(){return this.calendar?.querySelector(`[data-date-day="${Ko().getDate()}"]`)}clearSelectedDays(){const t=this.calendar?.querySelectorAll("[data-selected]");t&&t.forEach(t=>t.removeAttribute("data-selected"))}setSelectedDay(){this.clearSelectedDays(),this.value&&this.isSelectedView&&this.getSelectedDayEle().setAttribute("data-selected","true")}setCurrentDay(){if(this.isTodayView){const t=this.getCurrentDayEle(),e=this.getAttribute("calendar-label-today")||"Today";t?.setAttribute("data-current-day","true"),t?.setAttribute("title",e)}}navPrevMonth(){if(this.isDisabled)return;const t=(t=>{const e=Ko(t),i=e.getMonth();if(0===i){const t=e.getFullYear();e.setFullYear(t-1),e.setMonth(11)}else e.setMonth(i-1);return e})(this.preview);this.preview=t.getTime(),this.renderCalendar()}navNextMonth(){if(this.isDisabled)return;const t=(t=>{const e=Ko(t),i=e.getMonth();if(11===i){const t=e.getFullYear();e.setFullYear(t+1),e.setMonth(0)}else e.setMonth(i+1);return e})(this.preview);this.preview=t.getTime(),this.renderCalendar()}clearValue(){this.epoch="",this.value="",this.removeAttribute("preview"),this.submitButton.setAttribute("disabled","true")}onInitialValueChange(t){if(this.value)return;const e=Ko(t).getTime();nn(e)?(this.epoch=e,this.preview=e):this.clearValue()}onYearsRangeChange(){setTimeout(()=>{this.yearInput&&(this.yearInput.innerHTML=(t=>{const[e,i]=t,o=[];for(let t=e;t<=i;t++)o.push(t);return o})(this.yearsRange).map(t=>pn({label:t,dataId:t,dataName:t})).join(""))})}onMonthNamesChange(){setTimeout(()=>{this.monthInput&&(this.monthInput.innerHTML=hn(this.monthNames))})}onSubmitLabelChange(t){this.submitButton&&(this.submitButton.textContent=t||"Done")}onCancelLabelChange(t){this.cancelButton&&(this.cancelButton.textContent=t||"Cancel")}onInitialMonthChange(t){const e=ln(this.preview);this.preview=Ko(`${e}/${t}/1`).getTime()}onInitialYearChange(t){const e=dn(this.preview);this.preview=Ko(`${t}/${e}/1`).getTime()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),e!==i&&(bn.includes(t)?("calendar-label-submit"===t&&this.onSubmitLabelChange(i),"calendar-label-cancel"===t&&this.onCancelLabelChange(i)):(i&&"initial-value"===t&&this.onInitialValueChange(i),i&&"initial-month"===t&&this.onInitialMonthChange(i),i&&"initial-year"===t&&this.onInitialYearChange(i),"years-range"===t&&this.onYearsRangeChange(Number(i)),"calendar-months"===t&&this.onMonthNamesChange(),"calendar-label-today"===t&&this.setCurrentDay(i),"disabled"===t&&setTimeout(()=>{this.cancelButton?.setAttribute("disabled","true"===i)}),this.renderCalendar()))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}});customElements.define(mn,Vn);const{host:Wn,label:Rn,placeholder:Un,requiredIndicator:Yn,inputField:Qn,input:Pn,inputMask:Bn,helperText:Zn,errorMessage:Fn,disabledPlaceholder:Gn,inputDisabled:Hn,inputIcon:Jn,externalInput:$n,externalInputDisabled:qn,externalPlaceholder:_n,externalDisabledPlaceholder:Xn}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}};var Kn={fontSize:[{},Wn],fontFamily:[Rn,Qn,Zn,Fn],labelFontSize:{...Rn,property:"font-size"},labelFontWeight:{...Rn,property:"font-weight"},inputValueFontWeight:[{...Pn,property:"font-weight"},{...$n,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{..._n,property:"font-weight"}],helperTextFontWeight:{...Zn,property:"font-weight"},errorMessageFontWeight:{...Fn,property:"font-weight"},labelTextColor:[{...Rn,property:"color"},{...Yn,property:"color"},{...Rn,property:"-webkit-text-fill-color"},{...Yn,property:"-webkit-text-fill-color"}],hostWidth:{...Wn,property:"width"},hostMinWidth:{...Wn,property:"min-width"},hostDirection:{...Wn,property:"direction"},inputDirection:{...Pn,property:"direction"},inputBackgroundColor:[{...Qn,property:"background-color"},{...Bn,property:"background-color"}],errorMessageTextColor:{...Fn,property:"color"},errorMessageIcon:{...Fn,property:"background-image"},errorMessageIconSize:{...Fn,property:"background-size"},errorMessageIconPadding:{...Fn,property:"padding-inline-start"},errorMessageIconRepeat:{...Fn,property:"background-repeat"},errorMessageIconPosition:{...Fn,property:"background-position"},errorMessageFontSize:{...Fn,property:"font-size"},helperTextColor:{...Zn,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Qn,property:"color"},{...Hn,property:"-webkit-text-fill-color"},{...qn,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Pn,property:"caret-color"},{...$n,property:"caret-color"}],labelRequiredIndicator:{...Yn,property:"content"},inputBorderColor:{...Qn,property:"border-color"},inputBorderWidth:{...Qn,property:"border-width"},inputBorderStyle:{...Qn,property:"border-style"},inputBorderRadius:{...Qn,property:"border-radius"},inputHeight:{...Qn,property:"height"},inputHorizontalPadding:[{...Pn,property:"padding-left"},{...Pn,property:"padding-right"},{...$n,property:"padding-left"},{...$n,property:"padding-right"}],inputOutlineColor:{...Qn,property:"outline-color"},inputOutlineStyle:{...Qn,property:"outline-style"},inputOutlineWidth:{...Qn,property:"outline-width"},inputOutlineOffset:{...Qn,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Pn,property:"text-align"},{...$n,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{..._n,property:"color"},{...Un,property:"color"},{...Gn,property:"-webkit-text-fill-color"},{...Xn,property:"-webkit-text-fill-color"}],labelPosition:{...Rn,property:"position"},labelTopPosition:{...Rn,property:"top"},labelHorizontalPosition:[{...Rn,property:"left"},{...Rn,property:"right"}],inputTransformY:{...Rn,property:"transform"},inputTransition:{...Rn,property:"transition"},marginInlineStart:{...Rn,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{..._n,property:"opacity"}],inputVerticalAlignment:[{...Qn,property:"align-items"},{...$n,property:"align-items"}],valueInputHeight:[{...Pn,property:"height"},{...$n,property:"height"}],valueInputMarginBottom:[{...Pn,property:"margin-bottom"},{...$n,property:"margin-bottom"}],inputIconOffset:[{...Jn,property:"margin-right"},{...Jn,property:"margin-left"}],inputIconSize:{...Jn,property:"font-size"},inputIconColor:{...Jn,property:"color"},inputTextSecurity:[{...Pn,property:"-webkit-text-security"},{...Pn,property:"text-security"},{...$n,property:"-webkit-text-security"},{...$n,property:"text-security"}]};const tr=f("text-field"),er=["type","label-type","copy-to-clipboard"],ir=T(Mt({mappings:Kn}),mt,Vt({proxyProps:["value","selectionStart","selectionEnd"],useProxyTargets:!0}),yt,t=>class extends t{static get observedAttributes(){return er.concat(t.observedAttributes||[])}icon;init(){super.init?.(),k(this,this.baseElement,{includeAttrs:["placeholder"]})}renderCopyToClipboard(t){if(!t)return this.icon?.remove(),void this.copyLiveRegion?.remove();const e={icon:"vaadin:copy-o",title:"Copy",style:"cursor: pointer"},i={icon:"vaadin:check-circle-o",title:"Copied",style:"cursor: initial"},o=t=>{Object.assign(this.icon,t),this.icon.setAttribute("aria-label",t.title)};let n;this.icon=Object.assign(document.createElement("vaadin-icon"),{slot:"suffix",tabIndex:0}),this.icon.setAttribute("role","button"),o(e),this.copyLiveRegion=document.createElement("span"),this.copyLiveRegion.setAttribute("aria-live","polite"),this.copyLiveRegion.style.cssText="position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;",this.baseElement.appendChild(this.icon),this.shadowRoot.appendChild(this.copyLiveRegion);const r=async()=>{try{await navigator.clipboard.writeText(this.value)}catch{return}o(i),this.copyLiveRegion.textContent="Copied",clearTimeout(n),n=setTimeout(()=>{o(e),this.copyLiveRegion.textContent=""},3e3)};this.icon.addEventListener("click",r),this.icon.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),r())})}onLabelClick(){this.focus()}attributeChangedCallback(t,e,i){super.attributeChangeCallback?.(t,e,i),"type"===t&&this.baseElement._setType(i),e!==i&&("label-type"===t?"floating"===i?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick):"copy-to-clipboard"===t&&this.renderCopyToClipboard("true"===i))}})(ft({slots:["prefix","suffix"],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${ir.cssVarList.inputOutlineWidth}) + var(${ir.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {\n opacity: 1;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n ${it("vaadin-text-field")}\n\t\t\t${_(ir.cssVarList)}\n\t\t\t${et("vaadin-text-field",ir.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-text-field vaadin-icon {\n align-self: center;\n }\n\t\t`,excludeAttrsSync:["tabindex","style","placeholder"],componentName:tr}));customElements.define(tr,ir);class or{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const nr=ne("date-field"),rr=Mi({componentName:nr,baseSelector:"vaadin-popover"}),sr=["format","opened","initial-value","readonly","disable-calendar","utc-time"],ar=["years-range","calendar-months","calendar-weekdays"],lr=[...sr,...ar],dr=ir.cssVarList,{host:cr,input:ur,inputEleRTL:pr,toggleButton:hr,overlay:gr,backdrop:Mr}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-calendar"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},mr=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{iconMargin:{...hr,property:"margin-inline-end"},hostWidth:{...cr,property:"width"},hostDirection:{...cr,property:"direction"},textAlign:{...ur,property:"text-align"},rtlInputDirection:{...pr,property:dr.inputDirection},rtlInputAlignment:{...pr,property:dr.inputTextAlign},overlayGap:{property:()=>mr.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>mr.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>mr.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>mr.overlayBoxShadow},overlayOutlineWidth:{property:()=>mr.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>mr.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>mr.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:ir.componentName,property:ir.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontSize},labelFontWeight:{selector:ir.componentName,property:ir.cssVarList.labelFontWeight},inputValueFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:ir.componentName,property:ir.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontWeight}}}),ui({name:"overlay",selector:"",mappings:{marginTop:{...gr,property:"margin-top"},backgroundColor:{...gr},backdropBackgroundColor:{...Mr,property:"background-color"},backdropPointerEvents:{...Mr,property:"pointer-events"},padding:{...gr},boxShadow:{...gr},outlineWidth:{...gr},outlineColor:{...gr},outlineStyle:{...gr}}}),$e,qe)(class extends rr{epoch="";format=Bo;selectedCounterIdx=0;updateCountersDisplay(){this.inputElement.value=this.countersValue}updateValue(){if(this.isCountersOutOfRange)this.resetEpoch();else{const t=on[this.format].getDate(this.inputElement.value);this.updateEpoch(cn(t,this.isUtcTime))}}onDateCounterChange=()=>{this.updateCountersDisplay(),this.updateValue(),this.#lt()};updateEpoch(t){this.epoch=cn(t,this.isUtcTime)}dateCounters=[new or(Jo,this.onDateCounterChange.bind(this)),new or($o,this.onDateCounterChange.bind(this)),new or(qo,this.onDateCounterChange.bind(this))];static get observedAttributes(){return[].concat(rr.observedAttributes||[],lr)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-calendar">\n \n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>\n</svg>\n\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',O('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-calendar {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-calendar {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-calendar")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get displayValueEpoch(){const t=on[this.format].getDate(this.inputElement.value);return nn(t?.getTime())?t.getTime():null}get sortedCounters(){return this.format.split(Fo).map(t=>this.dateCounters.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.selectedCounterIdx]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(Fo)}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay.shadowRoot?.querySelector("#backdrop")}get calendar(){return this.overlay?.querySelector("descope-calendar")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isInvalidDate()?"":this.epoch}set value(t){const e=parseInt(t,10);Number.isNaN(e)?(this.resetEpoch(),this.resetDateCounters(),this.clearInputEle()):(this.updateEpoch(e),this.updateDateCounters(new Date(e)))}resetEpoch(){this.epoch=""}get isCountersEmpty(){return this.dateCounters.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.dateCounters.some(t=>!t.isInRange(t.numberValue))}get disableCalendar(){return"true"===this.getAttribute("disable-calendar")}get isUtcTime(){return"true"===this.getAttribute("utc-time")}get isSelectAll(){const t=this.inputElement.baseElement.inputElement;return t.value.length===t.selectionStart+t.selectionEnd}reportValidity(){this.inputElement.reportValidity()}#lt(){this.inputElement.baseElement.dispatchEvent(new Event("input",{bubbles:!0}))}updateInputDisplay(){this.inputElement.value=sn(Ko(this.countersValue).getTime(),this.format)}init(){super.init?.(),this.updateFormatPattern(),this.initPopover(),this.onDateCounterChange(),this.initInputElement(),setTimeout(()=>{this.#it()},0)}initInputElement(){this.inputElement.getValidity=this.getValidity.bind(this),this.inputElement.baseElement.checkValidity=this.checkValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.onPopoverToggle.bind(this)),this.inputElement.addEventListener("focus",this.onFocus.bind(this)),this.inputElement.addEventListener("blur",this.onBlur.bind(this)),this.inputElement.addEventListener("click",this.handleMouseCaretPositionChange.bind(this)),this.inputElement.addEventListener("keydown",this.handleKeyboard.bind(this)),this.inputElement.addEventListener("beforeinput",this.handleInput.bind(this)),this.inputElement.addEventListener("pointerdown",this.onPointerDown.bind(this)),this.inputElement.addEventListener("paste",this.onPaste.bind(this)),se(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","bordered","data-errormessage-value-missing","data-errormessage-pattern-mismatch","data-errormessage-range-underflow","data-errormessage-range-overflow","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}handleInput(t){var e;t.preventDefault(),this.handleSelectAll(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.parseDigits(t.data),this.updateCountersDisplay()):t.inputType&&this.handleNavKeys(t)}initPopover(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}handleSelectAll(){this.isSelectAll&&this.selectFirstCounter()}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-calendar"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop.addEventListener("click",this.closePopover.bind(this))),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(t),t.style.setProperty("visibility","visible"),this.updateCalendarView(t)},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { transform: none; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.calendar.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n transform: translateX(${l}px);\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=O(d,t)}#ut(){const t=document.createElement("span");t.innerHTML="<descope-calendar></descope-calendar>";const e=t.querySelector("descope-calendar");return e.addEventListener("date-submit",this.onCalendarSubmit.bind(this)),e.addEventListener("cancel",this.closePopover.bind(this)),t}#it(){this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{}}onPopoverToggle(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disableCalendar||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}getCounterById(t){return this.dateCounters.find(e=>e.id===t)}onCalendarSubmit(){if(!this.isReadOnly){if(!this.calendar.value)return;const t=Ko(this.calendar.value);this.value=cn(t,this.isUtcTime),this.getCounterById("year").replaceValue(t.getFullYear()),this.getCounterById("month").replaceValue(t.getMonth()+1),this.getCounterById("day").replaceValue(t.getDate()),this.#lt()}this.closePopover()}updateCalendarView(){const t=nn(Ko(this.inputElement.value||"").getTime())&&on[this.format].validate(this.inputElement.value);this.displayValueEpoch||t?this.calendar.setAttribute("initial-value",sn(this.displayValueEpoch||this.epoch,Zo)):(this.calendar.clearValue(),this.calendar.setAttribute("preview",sn(an(),Zo))),se(this,this.calendar,{includeAttrs:["st-host-direction","readonly","initial-month","initial-year","years-range","calendar-label-submit","calendar-label-cancel","calendar-months","calendar-weekdays","calendar-weekdays-short"]})}onPointerDown(t){setTimeout(()=>this.handleMouseCaretPositionChange(t),150)}onFocus(){this.isReadOnly||setTimeout(()=>this.resetDisplay())}resetDisplay(){this.inputElement.value||(this.inputElement.value=this.format),this.selectFirstCounter(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}onBlur(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}clearInputEle(){this.inputElement.value=""}onFormatUpdate(t){Object.keys(on).includes(t)&&(this.format=t,this.updateFormatPattern())}updateFormatPattern(){const t=this.getAttribute("format")||this.format||Bo;this.setAttribute("type","date"),this.setAttribute("pattern",on[t].pattern)}parseDigits(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.selectNextCounter(),this.setInputSelectionRange()}getCounterIdx(t){const[e,i]=this.sortedCounters.map(t=>t.length);return[t<=e,t>=e&&t<=e+i+1,t>=e+i+2].indexOf(!0)}setSelectedCounterByCaretPosition(t){this.selectedCounterIdx=this.getCounterIdx(t.target?.selectionStart||this.inputElement.selectionStart)}selectFirstCounter(){this.selectedCounterIdx=0}selectNextCounter(){this.selectedCounterIdx<this.dateCounters.length&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx+1,2))}selectPrevCounter(){this.selectedCounterIdx>0&&(this.selectedCounterIdx=Math.min(this.selectedCounterIdx-1,1))}setInputSelectionRange(){this.selectedCounterIdx<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.selectedCounterIdx).reduce((t,e)=>t+e.length,this.selectedCounterIdx);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.selectedCounterIdx].length)})}resetDateCounters(){this.dateCounters.forEach(t=>t.clear())}updateDateCounters(t){this.dateCounters.forEach(e=>{switch(e.id){case Jo.id:e.set(this.isUtcTime?t.getUTCMonth()+1:t.getMonth()+1);break;case qo.id:e.set(this.isUtcTime?t.getUTCFullYear():t.getFullYear());break;case $o.id:e.set(this.isUtcTime?t.getUTCDate():t.getDate())}})}handleKeyboard(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.onCut(t):(this.handleSelectAll(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.selectNextCounter():"ArrowLeft"===t.key&&this.selectPrevCounter(),this.setInputSelectionRange())}handleNavKeys(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.handleBackspace(),this.setInputSelectionRange()))}handleBackspace(){if(this.isSelectAll)return void this.resetToInitialState();const t=this.activeCounter;t.isEmpty?(this.selectPrevCounter(),this.setInputSelectionRange()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.setInputSelectionRange()})}handleMouseCaretPositionChange(t){this.opened||(t.preventDefault(),this.setSelectedCounterByCaretPosition(t),this.setInputSelectionRange())}onInitialValueChange(t){this.value||setTimeout(()=>{Number.isNaN(parseInt(t,10))||(this.value=Number(t))})}togglePopoverAccess(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-calendar"===t&&this.togglePopoverAccess("true"!==i),sr.includes(t)?(i&&"format"===t&&this.onFormatUpdate(i),"initial-value"===t&&this.onInitialValueChange(i)):ar.includes(t)&&(i?this.calendar?.setAttribute(t,i):this.calendar?.removeAttribute(t)))}isInvalidDate(){const t=this.getCounterById("year"),e=t.numberValue>Xo||t.numberValue<_o,i=Object.entries(this.getDateVals()).some(([t,e])=>{const i=this.getCounterById(t);return!e||i.numberValue!==e});return e||i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:this.isCountersEmpty||!this.isCountersOutOfRange&&!this.isInvalidDate()?{}:{patternMismatch:!0}}getDateVals(){const t={day:"",month:"",year:""};if(Number.isNaN(this.epoch))return t;try{const e=new Date(this.epoch);this.isUtcTime?(t.month=e.getUTCMonth()+1,t.day=e.getUTCDate(),t.year=e.getUTCFullYear()):(t.month=e.getMonth()+1,t.day=e.getDate(),t.year=e.getFullYear())}catch(t){}return t}resetToInitialState(){this.resetDateCounters(),this.selectFirstCounter(),this.resetDisplay()}onCut(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.resetToInitialState()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.setInputSelectionRange()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy date value:",t)}}onPaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=((t,e)=>{const i=t.trim?.();return i?on[e].getDate(i):null})(e,this.format);if(i)this.value=cn(i,this.isUtcTime),this.onDateCounterChange(),setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));else{const t=Number(e);t&&this.activeCounter.min<=t&&this.activeCounter.max>=t&&(this.activeCounter.set(String(t)),setTimeout(()=>this.setInputSelectionRange()))}}});customElements.define(nr,mr);const yr=ne("divider");class br extends(ei({componentName:yr,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div>\n\t\t\t\t<descope-text>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</descope-text>\n\t\t\t</div>\n\t\t",O("\n \t:host {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t:host > div::before,\n\t\t\t\t:host > div::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t\tdescope-text {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\t\t\t\t:host(:empty) descope-text {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t\t:host([vertical=\"true\"]) div {\n\t\t\t\t\twidth: fit-content;\n\t\t\t\t}\n ",this),this.textComponent=this.shadowRoot.querySelector("descope-text"),se(this,this.textComponent,{includeAttrs:["mode","variant","italic"]})}}const Nr=ki.cssVarList,{host:Ir,before:xr,after:jr,text:Tr}={host:{selector:()=>":host"},before:{selector:"::before"},after:{selector:"::after"},text:{selector:"descope-text"}},Dr=qt(Je({mappings:{hostWidth:{...Ir,property:"width"},hostPadding:{...Ir,property:"padding"},hostDirection:{...Tr,property:"direction"},minHeight:{},alignItems:{},alignSelf:{},flexDirection:{},textAlign:{...Tr,property:Nr.textAlign},labelTextWidth:{...Tr,property:"width"},labelTextMaxWidth:{...Tr,property:"max-width"},labelTextVerticalSpacing:[{...Tr,property:"padding-top"},{...Tr,property:"padding-bottom"}],labelTextHorizontalSpacing:[{...Tr,property:"padding-right"},{...Tr,property:"padding-left"}],stripeColor:[{...xr,property:"background-color"},{...jr,property:"background-color"}],stripeHorizontalThickness:[{...xr,property:"height"},{...jr,property:"height"}],stripeVerticalThickness:[{...xr,property:"width"},{...jr,property:"width"}],stripeColorOpacity:[{...xr,property:"opacity"},{...jr,property:"opacity"}]}}),$e,qe)(br);customElements.define(yr,Dr);const vr=({componentName:t,varName:e,fallbackVarName:i})=>{let o;class n extends(ei({componentName:t,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t\t<div></div>\n\t\t\t",O(`\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\t\t\t\t:host > div {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t\tmargin: auto;\n\t\t\t\t\t${o}\n\t\t\t\t}\n `,this)}}const r=qt(Je({mappings:{height:{selector:()=>":host > div"},width:{selector:()=>":host > div"},[e]:{property:"content"},[i]:{property:"content"}}}),$e,qe)(n);return o=`content: var(${r.cssVarList[e]}, var(${r.cssVarList[i]}));`,r},zr=ne("logo"),Cr=vr({componentName:zr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(zr,Cr);const Sr=ne("totp-image"),wr=vr({componentName:Sr,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Sr,wr);const Ar=ne("notp-image"),Lr=vr({componentName:Ar,varName:"url",fallbackVarName:"fallbackUrl"});customElements.define(Ar,Lr);const fr=ne("number-field"),Er=qt(Je({mappings:Kn}),$e,ci({proxyProps:["value","selectionStart"]}),qe)(oi({slots:["","prefix","suffix"],wrappedEleName:"vaadin-number-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${Er.cssVarList.inputOutlineWidth}) + var(${Er.cssVarList.inputOutlineOffset}));\n\t\t\t}\n ${Ce("vaadin-number-field")}\n\t\t\t${Ie(Er.cssVarList)}\n\t\t\t${((t,e)=>`\n ${xe(t)}\n ${Te(t)}\n ${De(t)}\n ${je(t)}\n ${ve(t,e)}\n ${ze(t)}\n ${(t=>`\n ${t}::before {\n\t\theight: unset;\n\t}\n`)(t)}\n ${(t=>`\n ${t} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(t)}\n ${(t=>`\n ${t}::part(input-field)::after {\n border: none;\n }\n`)(t)}\n`)("vaadin-number-field",Er.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-number-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-number-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:fr}));customElements.define(fr,Er);const kr="--descope-input-mask-content",Or="--descope-input-mask-display",Vr="--descope-input-mask-fallback",Wr=t=>{t?.focus(),t?.setSelectionRange?.(1,1)},Rr=t=>t.replace(/\D/g,"")||"",Ur=(t,e)=>{e?(t.style.setProperty(kr,`"${e}"`),t.style.setProperty(Or,"flex")):(t.style.removeProperty(kr),t.style.removeProperty(Or))},Yr=ne("passcode-internal"),Qr=["digits","loading"],Pr=["disabled","bordered","size","invalid","readonly","aria-labelledby"],Br=Mi({componentName:Yr,baseSelector:"div"}),Zr=ne("passcode"),Fr=["digits"],{host:Gr,digitField:Hr,label:Jr,requiredIndicator:$r,internalWrapper:qr,focusedDigitField:_r,errorMessage:Xr}={host:{selector:()=>":host"},focusedDigitField:{selector:()=>`${ir.componentName}[focused="true"]`},digitField:{selector:()=>ir.componentName},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:"descope-passcode-internal .wrapper"},errorMessage:{selector:"::part(error-message)"}},Kr=ir.cssVarList,ts=lo.cssVarList,es=qt(Je({mappings:{fontSize:[{...Hr,property:Kr.fontSize},Gr],hostWidth:{property:"width"},hostDirection:{...Gr,property:"direction"},fontFamily:[Gr,{...Jr}],labelFontWeight:{...Jr,property:"font-weight"},errorMessageFontWeight:{...Xr,property:"font-weight"},digitValueFontWeight:{selector:ir.componentName,property:Kr.inputValueFontWeight},labelTextColor:[{...Jr,property:"color"},{...Jr,property:"-webkit-text-fill-color"},{...$r,property:"color"},{...$r,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...$r,property:"content"},errorMessageTextColor:{...Xr,property:"color"},errorMessageIcon:{...Xr,property:"background-image"},errorMessageIconSize:{...Xr,property:"background-size"},errorMessageIconPadding:{...Xr,property:"padding-inline-start"},errorMessageIconRepeat:{...Xr,property:"background-repeat"},errorMessageIconPosition:{...Xr,property:"background-position"},errorMessageFontSize:{...Xr,property:"font-size"},digitValueTextColor:{selector:ir.componentName,property:Kr.inputValueTextColor},digitSize:[{...Hr,property:"height"},{...Hr,property:"width"}],digitPadding:{...Hr,property:Kr.inputHorizontalPadding},digitTextAlign:{...Hr,property:Kr.inputTextAlign},digitCaretTextColor:{...Hr,property:Kr.inputCaretTextColor},digitSpacing:{...qr,property:"gap"},digitOutlineColor:{...Hr,property:Kr.inputOutlineColor},digitOutlineWidth:{...Hr,property:Kr.inputOutlineWidth},focusedDigitFieldOutlineColor:{..._r,property:Kr.inputOutlineColor},overlayOpacity:{...qr,property:"opacity"},spinnerSize:{selector:lo.componentName,property:ts.spinnerSize}}}),$e,gi,ci({proxyProps:["value","selectionStart"]}),qe,t=>class extends t{static get observedAttributes(){return Fr.concat(t.observedAttributes||[])}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}init(){super.init?.(),O("\n .wrapper {\n display: flex;\n width: 100%;\n justify-content: space-between;\n direction: ltr;\n position: relative;\n }\n\n descope-text-field {\n direction: ltr;\n }\n\n .loader-container {\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n ",this);const t=document.createElement("template");t.innerHTML=`\n <${Yr}\n bordered="true"\n name="code"\n tabindex="-1"\n slot="input"\n role="textbox"\n aria-label="passcode"\n ><slot></slot></${Yr}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Yr),se(this,this.inputElement,{includeAttrs:["digits","size","loading","disabled"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"digits"===t&&(this.style["--passcode-digits-count"]=i)}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: calc(var(--passcode-digits-count) * 2em);\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\t:host::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n :host([loading="true"]) descope-passcode-internal .loader-container {\n display: block;\n }\n\n\t\t\tdescope-passcode-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal .wrapper {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: initial;\n\t\t\t\theight: 100%;\n\t\t\t\tjustify-content: space-between;\n\t\t\t}\n\n\t\t\tdescope-passcode-internal descope-text-field {\n\t\t\t\tmin-width: 2em;\n\t\t\t\tmax-width: var(${Kr.inputHeight});\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n /* safari */\n\t\t\tvaadin-text-field::part(input-field)::after {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${Ce("vaadin-text-field")}\n\t\t\t${Te("vaadin-text-field")}\n \t`,excludeAttrsSync:["tabindex","style"],componentName:Zr}));customElements.define(Yr,class extends Br{static get observedAttributes(){return Qr.concat(Br.observedAttributes||[])}constructor(){super(),this.innerHTML='\n\t\t<div class="wrapper"></div>\n\t\t<div class="loader-container">\n <descope-loader-radial size="xs" mode="primary"></descope-loader-radial>\n </div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper"),this.loaderContainer=this.querySelector(".loader-container")}renderInputs(){const t=[...Array(this.digits).keys()].map(t=>`\n\t\t<descope-text-field\n\t\t\tdata-id=${t}\n\t\t\ttype="tel"\n\t\t\tautocomplete="one-time-code"\n\t\t\tinputMode="numeric"\n\t\t></descope-text-field>\n\t`);this.wrapperEle.innerHTML=t.join(""),this.inputs=Array.from(this.querySelectorAll("descope-text-field")),this.initInputs()}handleLoadingState(t){t?this.setAttribute("inert","true"):this.removeAttribute("inert")}get digits(){return Number.parseInt(this.getAttribute("digits"),10)||6}get value(){return this.inputs?.map(({value:t})=>t).join("")||""}set value(t){t!==this.value&&this.parseInputValue(this.inputs[0],Rr(t))}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.pattern&&!new RegExp(this.pattern).test(this.value)?{patternMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[0].focus()}),super.init?.(),this.renderInputs()}getInputIdx(t){return Number.parseInt(t.getAttribute("data-id"),10)}getNextInput(t){const e=this.getInputIdx(t),i=Math.min(e+1,this.inputs.length-1);return this.inputs[i]}getPrevInput(t){const e=this.getInputIdx(t),i=Math.max(e-1,0);return this.inputs[i]}fillDigits(t,e){for(let i=0;i<t.length;i+=1){e.value=t[i]??"";const o=this.getNextInput(e);if(o===e)break;e=o}Wr(e)}parseInputValue(t,e=""){const i=e.split("");i.length?this.fillDigits(i,t):t.value=""}initInputs(){this.inputs.forEach((t,e)=>{O(`\n vaadin-text-field::part(input-field)::before {\n ${Vr}: '';\n content: var(${kr}, var(${Vr}));\n position: absolute;\n width: 100%;\n height: 100%;\n display: var(${Or}, none);\n align-items: center;\n justify-content: center;\n }`,t);const i=s()(e=>{this.parseInputValue(t,e),Ur(t)},0,{trailing:!0});let o=!1;t.addEventListener("input",e=>{t.value=Rr(t.value),t.value&&Ur(t,t.value[0]);const n="deleteContentBackward"===e?.inputType||o;o=!1,n&&Wr(this.getPrevInput(t)),i(t.value)}),t.onkeydown=e=>{const{key:i}=e;"Backspace"===i?t.value?(t.setSelectionRange(1,1),o=!0):(e.preventDefault(),o=!1,Wr(this.getPrevInput(t))):(o=!1,1===i.length&&(t.value=""))},se(this,t,{includeAttrs:Pr}),t.shadowRoot.querySelector("input").setAttribute("aria-label",`Digit ${e+1} of ${this.inputs.length}`)}),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Qr.includes(t)&&("digits"===t&&this.renderInputs(),"loading"===t&&this.handleLoadingState("true"===i))}get pattern(){return`^$|^\\d{${this.digits},}$`}}),customElements.define(Zr,es);const is=ne("password"),{host:os,inputField:ns,inputElement:rs,inputElementPlaceholder:ss,revealButtonContainer:as,revealButtonIcon:ls,label:ds,requiredIndicator:cs,errorMessage:us,helperText:ps}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"> input"},inputElementPlaceholder:{selector:()=>":host input:placeholder-shown"},revealButtonContainer:{selector:"::part(reveal-button)"},revealButtonIcon:{selector:"::part(reveal-button)::before"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},hs=qt(Je({mappings:{hostWidth:{...os,property:"width"},hostMinWidth:{...os,property:"min-width"},hostDirection:{...os,property:"direction"},fontSize:[{},os],fontFamily:[ds,ns,us,ps],inputHeight:{...ns,property:"height"},inputHorizontalPadding:[{...rs,property:"padding-left"},{...rs,property:"padding-right"}],inputBackgroundColor:{...ns,property:"background-color"},inputBorderStyle:{...ns,property:"border-style"},inputBorderWidth:{...ns,property:"border-width"},inputBorderColor:{...ns,property:"border-color"},inputBorderRadius:{...ns,property:"border-radius"},inputOutlineColor:{...ns,property:"outline-color"},inputOutlineStyle:{...ns,property:"outline-style"},inputOutlineOffset:{...ns,property:"outline-offset"},inputOutlineWidth:{...ns,property:"outline-width"},labelFontSize:{...ds,property:"font-size"},labelFontWeight:{...ds,property:"font-weight"},inputValueFontWeight:[{...rs,property:"font-weight"},{selector:()=>":host ::slotted(input)",property:"font-weight"}],inputPlaceholderFontWeight:[{...ss,property:"font-weight"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"font-weight"}],helperTextFontWeight:{...ps,property:"font-weight"},errorMessageFontWeight:{...us,property:"font-weight"},labelTextColor:[{...ds,property:"color"},{...ds,property:"-webkit-text-fill-color"},{...cs,property:"color"},{...cs,property:"-webkit-text-fill-color"}],labelRequiredIndicator:{...cs,property:"content"},errorMessageTextColor:{...us,property:"color"},errorMessageIcon:{...us,property:"background-image"},errorMessageIconSize:{...us,property:"background-size"},errorMessageIconPadding:{...us,property:"padding-inline-start"},errorMessageIconRepeat:{...us,property:"background-repeat"},errorMessageIconPosition:{...us,property:"background-position"},errorMessageFontSize:{...us,property:"font-size"},inputPlaceholderTextColor:[{...ss,property:"color"},{selector:()=>":host ::slotted(input:placeholder-shown)",property:"color"}],inputValueTextColor:[{...rs,property:"color"},{selector:()=>":host ::slotted(input)",property:"color"}],revealButtonOffset:[{...as,property:"margin-right"},{...as,property:"margin-left"}],revealButtonSize:{...as,property:"font-size"},revealButtonColor:{...ls,property:"color"},labelPosition:{...ds,property:"position"},labelTopPosition:{...ds,property:"top"},labelHorizontalPosition:[{...ds,property:"left"},{...ds,property:"right"}],inputTransformY:{...ds,property:"transform"},inputTransition:{...ds,property:"transition"},marginInlineStart:{...ds,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...rs,property:"opacity"}],inputVerticalAlignment:{...ns,property:"align-items"},valueInputHeight:{...rs,property:"height"}}}),$e,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),oe(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.length=0}dispatchBlur(){return setTimeout(()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0})),this.removeAttribute("focused")})}handleFocusEvents(){this.baseElement.addEventListener("focus",()=>{this.externalInput.focus(),this.clearBlurTimers()}),this.externalInput.addEventListener("focus",()=>{this.clearBlurTimers(),setTimeout(()=>this.baseElement.setAttribute("focused","true"))})}handleBlurEvents(){this.baseElement.addEventListener("blur",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"password",inputName:"password",includeAttrs:["disabled","readonly","pattern","type","autocomplete"],noBlurDispatch:!0}),ci({proxyProps:["value","selectionStart"],useProxyTargets:!0}),qe,t=>class extends t{get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}init(){super.init?.();const t=this.querySelector("input");t?.addEventListener("mousedown",e=>{if(this.isDraggable&&this.isReadOnly){t.setAttribute("inert","true");const i=e.target,o=i.getAttribute("type");i.setAttribute("type","text"),setTimeout(()=>{i.focus()});const n=e=>{i.setAttribute("type",o),t.removeAttribute("inert"),this.removeEventListener("mouseup",n),this.removeEventListener("dragend",n)};this.addEventListener("dragend",n,{once:!0}),this.addEventListener("mouseup",n,{once:!0})}})}},t=>class extends t{static get observedAttributes(){return["manual-visibility-toggle"]}get manualToggleVisibility(){return"true"===this.getAttribute("manual-visibility-toggle")}init(){super.init?.(),this.handleCaretOnVisibilityChange(),this.origSetPasswordVisible=this.baseElement._setPasswordVisible,this.origSetFocused=this.baseElement._setFocused,this.baseElement._setFocused=this.setFocus.bind(this),this.initExternalInput(),this.stopRevealButtonEnterPropagation()}stopRevealButtonEnterPropagation(){this.revealButton?.addEventListener("keydown",t=>{"Enter"===t.key&&t.stopPropagation()})}get revealButton(){return this.baseElement.querySelector("vaadin-password-field-button")}initExternalInput(){const t=this.createExternalInput();t&&this.handlePasswordVisibility(t)}get caretPosition(){return this.value?.length||0}handleCaretOnVisibilityChange(){const t=this.baseElement._togglePasswordVisibility.bind(this.baseElement);this.baseElement._togglePasswordVisibility=()=>{setTimeout(()=>(t(),this.inputElement.setSelectionRange(this.caretPosition,this.caretPosition),!1))}}setFocus(t){this.manualToggleVisibility&&(this.baseElement._setPasswordVisible=()=>{}),this.origSetFocused.call(this.baseElement,t),this.baseElement._setPasswordVisible=this.origSetPasswordVisible.bind(this.baseElement)}resetPasswordVisibilityToggle(){this.baseElement._setPasswordVisible=this.origSetPasswordVisible,this.baseElement._setFocused=this.origSetFocus}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i)}handlePasswordVisibility(t){const e=this.baseElement.__boundRevealButtonMouseDown;this.revealButton?.removeEventListener("mousedown",e),this.baseElement._passwordVisibleChanged=()=>{},this.baseElement._togglePasswordVisibility=()=>{"password"===t.getAttribute("type")?this.showPasswordVisibility(t):this.hidePasswordVisibility(t)}}showPasswordVisibility(t){t.setAttribute("type","text"),this.setAttribute("password-visible","true")}hidePasswordVisibility(t){t.setAttribute("type","password"),this.setAttribute("password-visible","false")}})(oi({slots:["","suffix"],wrappedEleName:"vaadin-password-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 10em;\n box-sizing: border-box;\n position: relative;\n\t\t\t}\n\t\t\t${Ie(hs.cssVarList)}\n\t\t\t${Te("vaadin-password-field")}\n ${Ce("vaadin-password-field")}\n ${ve("vaadin-password-field",hs.cssVarList)}\n\n\t\t\tvaadin-password-field {\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field > input {\n -webkit-mask-image: none;\n\t\t\t\tbox-sizing: border-box;\n opacity: 1;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field) {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-password-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n :host ::slotted(input) {\n\t\t\t\tmin-height: 0;\n }\n :host([readonly]) ::slotted(input:placeholder-shown) {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field::before {\n\t\t\t\theight: initial;\n\t\t\t}\n\t\t\tvaadin-password-field::part(input-field)::after {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tvaadin-password-field-button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t:host([readonly]) vaadin-password-field-button {\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\tvaadin-password-field-button[focus-ring] {\n\t\t\t\tbox-shadow: 0 0 0 2px var(${hs.cssVarList.inputOutlineColor});\n\t\t\t}\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n ::part(reveal-button) {\n align-self: center;\n }\n\n vaadin-password-field[external-input="true"] > input:not(:placeholder-shown) {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:is}));customElements.define(is,hs);const gs=ne("text-area"),{host:Ms,label:ms,placeholder:ys,inputField:bs,textArea:Ns,requiredIndicator:Is,helperText:xs,errorMessage:js}={host:{selector:()=>":host"},label:{selector:"::part(label)"},placeholder:{selector:"textarea:placeholder-shown"},inputField:{selector:"::part(input-field)"},textArea:{selector:"> textarea"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Ts=qt(Je({mappings:{hostWidth:{...Ms,property:"width"},hostMinWidth:{...Ms,property:"min-width"},hostDirection:{...Ms,property:"direction"},fontSize:[Ms,Ns],fontFamily:[ms,bs,xs,js],labelFontSize:{...ms,property:"font-size"},labelFontWeight:{...ms,property:"font-weight"},inputValueFontWeight:{...Ns,property:"font-weight"},inputPlaceholderFontWeight:{...ys,property:"font-weight"},helperTextFontWeight:{...xs,property:"font-weight"},errorMessageFontWeight:{...js,property:"font-weight"},labelTextColor:[{...ms,property:"color"},{...ms,property:"-webkit-text-fill-color"},{...Is,property:"color"}],labelRequiredIndicator:{...Is,property:"content"},errorMessageTextColor:{...js,property:"color"},errorMessageIcon:{...js,property:"background-image"},errorMessageIconSize:{...js,property:"background-size"},errorMessageIconPadding:{...js,property:"padding-inline-start"},errorMessageIconRepeat:{...js,property:"background-repeat"},errorMessageIconPosition:{...js,property:"background-position"},errorMessageFontSize:{...js,property:"font-size"},inputBackgroundColor:{...bs,property:"background-color"},inputValueTextColor:{...Ns,property:"color"},inputPlaceholderTextColor:{...ys,property:"color"},inputBorderWidth:{...bs,property:"border-width"},inputBorderStyle:{...bs,property:"border-style"},inputBorderColor:{...bs,property:"border-color"},inputBorderRadius:{...bs,property:"border-radius"},inputOutlineStyle:{...bs,property:"outline-Style"},inputOutlineColor:{...bs,property:"outline-color"},inputOutlineOffset:{...bs,property:"outline-offset"},inputOutlineWidth:{...bs,property:"outline-width"},inputResizeType:{...Ns,property:"resize"},inputMinHeight:{...Ns,property:"min-height"},inputTextAlign:{...Ns,property:"text-align"}}}),$e,ci({proxyProps:["value","selectionStart"]}),qe)(oi({slots:[],wrappedEleName:"vaadin-text-area",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n box-sizing: border-box;\n\t\t\t}\n\t\t\ttextarea {\n\t\t\t\theight: 100%;\n\t\t\t}\n ${Ce("vaadin-text-area")}\n\t\t\t${Ie(Ts.cssVarList)}\n\t\t\t${xe("vaadin-text-area")}\n\t\t\t${je("vaadin-text-area")}\n\t\t\t${De("vaadin-text-area","textarea")}\n\t\t\t${Te("vaadin-text-area")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:gs}));customElements.define(gs,Ts);var Ds=[{name:"United States",dialCode:"+1",code:"US"},...[{name:"Afghanistan",dialCode:"+93",code:"AF"},{name:"Aland Islands",dialCode:"+358",code:"AX"},{name:"Albania",dialCode:"+355",code:"AL"},{name:"Algeria",dialCode:"+213",code:"DZ"},{name:"AmericanSamoa",dialCode:"+1684",code:"AS"},{name:"Andorra",dialCode:"+376",code:"AD"},{name:"Angola",dialCode:"+244",code:"AO"},{name:"Anguilla",dialCode:"+1264",code:"AI"},{name:"Antarctica",dialCode:"+672",code:"AQ"},{name:"Antigua and Barbuda",dialCode:"+1268",code:"AG"},{name:"Argentina",dialCode:"+54",code:"AR"},{name:"Armenia",dialCode:"+374",code:"AM"},{name:"Aruba",dialCode:"+297",code:"AW"},{name:"Australia",dialCode:"+61",code:"AU"},{name:"Austria",dialCode:"+43",code:"AT"},{name:"Azerbaijan",dialCode:"+994",code:"AZ"},{name:"Bahamas",dialCode:"+1242",code:"BS"},{name:"Bahrain",dialCode:"+973",code:"BH"},{name:"Bangladesh",dialCode:"+880",code:"BD"},{name:"Barbados",dialCode:"+1246",code:"BB"},{name:"Belarus",dialCode:"+375",code:"BY"},{name:"Belgium",dialCode:"+32",code:"BE"},{name:"Belize",dialCode:"+501",code:"BZ"},{name:"Benin",dialCode:"+229",code:"BJ"},{name:"Bermuda",dialCode:"+1441",code:"BM"},{name:"Bhutan",dialCode:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dialCode:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dialCode:"+387",code:"BA"},{name:"Botswana",dialCode:"+267",code:"BW"},{name:"Brazil",dialCode:"+55",code:"BR"},{name:"British Indian Ocean Territory",dialCode:"+246",code:"IO"},{name:"Brunei Darussalam",dialCode:"+673",code:"BN"},{name:"Bulgaria",dialCode:"+359",code:"BG"},{name:"Burkina Faso",dialCode:"+226",code:"BF"},{name:"Burundi",dialCode:"+257",code:"BI"},{name:"Cambodia",dialCode:"+855",code:"KH"},{name:"Cameroon",dialCode:"+237",code:"CM"},{name:"Canada",dialCode:"+1",code:"CA"},{name:"Cape Verde",dialCode:"+238",code:"CV"},{name:"Cayman Islands",dialCode:"+345",code:"KY"},{name:"Central African Republic",dialCode:"+236",code:"CF"},{name:"Chad",dialCode:"+235",code:"TD"},{name:"Chile",dialCode:"+56",code:"CL"},{name:"China",dialCode:"+86",code:"CN"},{name:"Christmas Island",dialCode:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dialCode:"+61",code:"CC"},{name:"Colombia",dialCode:"+57",code:"CO"},{name:"Comoros",dialCode:"+269",code:"KM"},{name:"Congo",dialCode:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dialCode:"+243",code:"CD"},{name:"Cook Islands",dialCode:"+682",code:"CK"},{name:"Costa Rica",dialCode:"+506",code:"CR"},{name:"Cote d'Ivoire",dialCode:"+225",code:"CI"},{name:"Croatia",dialCode:"+385",code:"HR"},{name:"Cuba",dialCode:"+53",code:"CU"},{name:"Cyprus",dialCode:"+357",code:"CY"},{name:"Czech Republic",dialCode:"+420",code:"CZ"},{name:"Denmark",dialCode:"+45",code:"DK"},{name:"Djibouti",dialCode:"+253",code:"DJ"},{name:"Dominica",dialCode:"+1767",code:"DM"},{name:"Dominican Republic",dialCode:"+1849",code:"DO"},{name:"Ecuador",dialCode:"+593",code:"EC"},{name:"Egypt",dialCode:"+20",code:"EG"},{name:"El Salvador",dialCode:"+503",code:"SV"},{name:"Equatorial Guinea",dialCode:"+240",code:"GQ"},{name:"Eritrea",dialCode:"+291",code:"ER"},{name:"Estonia",dialCode:"+372",code:"EE"},{name:"Ethiopia",dialCode:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dialCode:"+500",code:"FK"},{name:"Faroe Islands",dialCode:"+298",code:"FO"},{name:"Fiji",dialCode:"+679",code:"FJ"},{name:"Finland",dialCode:"+358",code:"FI"},{name:"France",dialCode:"+33",code:"FR"},{name:"French Guiana",dialCode:"+594",code:"GF"},{name:"French Polynesia",dialCode:"+689",code:"PF"},{name:"Gabon",dialCode:"+241",code:"GA"},{name:"Gambia",dialCode:"+220",code:"GM"},{name:"Georgia",dialCode:"+995",code:"GE"},{name:"Germany",dialCode:"+49",code:"DE"},{name:"Ghana",dialCode:"+233",code:"GH"},{name:"Gibraltar",dialCode:"+350",code:"GI"},{name:"Greece",dialCode:"+30",code:"GR"},{name:"Greenland",dialCode:"+299",code:"GL"},{name:"Grenada",dialCode:"+1473",code:"GD"},{name:"Guadeloupe",dialCode:"+590",code:"GP"},{name:"Guam",dialCode:"+1671",code:"GU"},{name:"Guatemala",dialCode:"+502",code:"GT"},{name:"Guernsey",dialCode:"+44",code:"GG"},{name:"Guinea",dialCode:"+224",code:"GN"},{name:"Guinea-Bissau",dialCode:"+245",code:"GW"},{name:"Guyana",dialCode:"+592",code:"GY"},{name:"Haiti",dialCode:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dialCode:"+379",code:"VA"},{name:"Honduras",dialCode:"+504",code:"HN"},{name:"Hong Kong",dialCode:"+852",code:"HK"},{name:"Hungary",dialCode:"+36",code:"HU"},{name:"Iceland",dialCode:"+354",code:"IS"},{name:"India",dialCode:"+91",code:"IN"},{name:"Indonesia",dialCode:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dialCode:"+98",code:"IR"},{name:"Iraq",dialCode:"+964",code:"IQ"},{name:"Ireland",dialCode:"+353",code:"IE"},{name:"Isle of Man",dialCode:"+44",code:"IM"},{name:"Israel",dialCode:"+972",code:"IL"},{name:"Italy",dialCode:"+39",code:"IT"},{name:"Jamaica",dialCode:"+1876",code:"JM"},{name:"Japan",dialCode:"+81",code:"JP"},{name:"Jersey",dialCode:"+44",code:"JE"},{name:"Jordan",dialCode:"+962",code:"JO"},{name:"Kazakhstan",dialCode:"+77",code:"KZ"},{name:"Kenya",dialCode:"+254",code:"KE"},{name:"Kiribati",dialCode:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dialCode:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dialCode:"+82",code:"KR"},{name:"Kuwait",dialCode:"+965",code:"KW"},{name:"Kyrgyzstan",dialCode:"+996",code:"KG"},{name:"Laos",dialCode:"+856",code:"LA"},{name:"Latvia",dialCode:"+371",code:"LV"},{name:"Lebanon",dialCode:"+961",code:"LB"},{name:"Lesotho",dialCode:"+266",code:"LS"},{name:"Liberia",dialCode:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dialCode:"+218",code:"LY"},{name:"Liechtenstein",dialCode:"+423",code:"LI"},{name:"Lithuania",dialCode:"+370",code:"LT"},{name:"Luxembourg",dialCode:"+352",code:"LU"},{name:"Macao",dialCode:"+853",code:"MO"},{name:"Macedonia",dialCode:"+389",code:"MK"},{name:"Madagascar",dialCode:"+261",code:"MG"},{name:"Malawi",dialCode:"+265",code:"MW"},{name:"Malaysia",dialCode:"+60",code:"MY"},{name:"Maldives",dialCode:"+960",code:"MV"},{name:"Mali",dialCode:"+223",code:"ML"},{name:"Malta",dialCode:"+356",code:"MT"},{name:"Marshall Islands",dialCode:"+692",code:"MH"},{name:"Martinique",dialCode:"+596",code:"MQ"},{name:"Mauritania",dialCode:"+222",code:"MR"},{name:"Mauritius",dialCode:"+230",code:"MU"},{name:"Mayotte",dialCode:"+262",code:"YT"},{name:"Mexico",dialCode:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dialCode:"+691",code:"FM"},{name:"Moldova",dialCode:"+373",code:"MD"},{name:"Monaco",dialCode:"+377",code:"MC"},{name:"Mongolia",dialCode:"+976",code:"MN"},{name:"Montenegro",dialCode:"+382",code:"ME"},{name:"Montserrat",dialCode:"+1664",code:"MS"},{name:"Morocco",dialCode:"+212",code:"MA"},{name:"Mozambique",dialCode:"+258",code:"MZ"},{name:"Myanmar",dialCode:"+95",code:"MM"},{name:"Namibia",dialCode:"+264",code:"NA"},{name:"Nauru",dialCode:"+674",code:"NR"},{name:"Nepal",dialCode:"+977",code:"NP"},{name:"Netherlands",dialCode:"+31",code:"NL"},{name:"Netherlands Antilles",dialCode:"+599",code:"AN"},{name:"New Caledonia",dialCode:"+687",code:"NC"},{name:"New Zealand",dialCode:"+64",code:"NZ"},{name:"Nicaragua",dialCode:"+505",code:"NI"},{name:"Niger",dialCode:"+227",code:"NE"},{name:"Nigeria",dialCode:"+234",code:"NG"},{name:"Niue",dialCode:"+683",code:"NU"},{name:"Norfolk Island",dialCode:"+672",code:"NF"},{name:"Northern Mariana Islands",dialCode:"+1670",code:"MP"},{name:"Norway",dialCode:"+47",code:"NO"},{name:"Oman",dialCode:"+968",code:"OM"},{name:"Pakistan",dialCode:"+92",code:"PK"},{name:"Palau",dialCode:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dialCode:"+970",code:"PS"},{name:"Panama",dialCode:"+507",code:"PA"},{name:"Papua New Guinea",dialCode:"+675",code:"PG"},{name:"Paraguay",dialCode:"+595",code:"PY"},{name:"Peru",dialCode:"+51",code:"PE"},{name:"Philippines",dialCode:"+63",code:"PH"},{name:"Pitcairn",dialCode:"+872",code:"PN"},{name:"Poland",dialCode:"+48",code:"PL"},{name:"Portugal",dialCode:"+351",code:"PT"},{name:"Qatar",dialCode:"+974",code:"QA"},{name:"Romania",dialCode:"+40",code:"RO"},{name:"Russia",dialCode:"+7",code:"RU"},{name:"Rwanda",dialCode:"+250",code:"RW"},{name:"Reunion",dialCode:"+262",code:"RE"},{name:"Saint Barthelemy",dialCode:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dialCode:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dialCode:"+1869",code:"KN"},{name:"Saint Lucia",dialCode:"+1758",code:"LC"},{name:"Saint Martin",dialCode:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dialCode:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dialCode:"+1784",code:"VC"},{name:"Samoa",dialCode:"+685",code:"WS"},{name:"San Marino",dialCode:"+378",code:"SM"},{name:"Sao Tome and Principe",dialCode:"+239",code:"ST"},{name:"Saudi Arabia",dialCode:"+966",code:"SA"},{name:"Senegal",dialCode:"+221",code:"SN"},{name:"Serbia",dialCode:"+381",code:"RS"},{name:"Seychelles",dialCode:"+248",code:"SC"},{name:"Sierra Leone",dialCode:"+232",code:"SL"},{name:"Singapore",dialCode:"+65",code:"SG"},{name:"Slovakia",dialCode:"+421",code:"SK"},{name:"Slovenia",dialCode:"+386",code:"SI"},{name:"Solomon Islands",dialCode:"+677",code:"SB"},{name:"Somalia",dialCode:"+252",code:"SO"},{name:"South Africa",dialCode:"+27",code:"ZA"},{name:"South Sudan",dialCode:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dialCode:"+500",code:"GS"},{name:"Spain",dialCode:"+34",code:"ES"},{name:"Sri Lanka",dialCode:"+94",code:"LK"},{name:"Sudan",dialCode:"+249",code:"SD"},{name:"Suriname",dialCode:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dialCode:"+47",code:"SJ"},{name:"Swaziland",dialCode:"+268",code:"SZ"},{name:"Sweden",dialCode:"+46",code:"SE"},{name:"Switzerland",dialCode:"+41",code:"CH"},{name:"Syrian Arab Republic",dialCode:"+963",code:"SY"},{name:"Taiwan",dialCode:"+886",code:"TW"},{name:"Tajikistan",dialCode:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dialCode:"+255",code:"TZ"},{name:"Thailand",dialCode:"+66",code:"TH"},{name:"Timor-Leste",dialCode:"+670",code:"TL"},{name:"Togo",dialCode:"+228",code:"TG"},{name:"Tokelau",dialCode:"+690",code:"TK"},{name:"Tonga",dialCode:"+676",code:"TO"},{name:"Trinidad and Tobago",dialCode:"+1868",code:"TT"},{name:"Tunisia",dialCode:"+216",code:"TN"},{name:"Turkey",dialCode:"+90",code:"TR"},{name:"Turkmenistan",dialCode:"+993",code:"TM"},{name:"Turks and Caicos Islands",dialCode:"+1649",code:"TC"},{name:"Tuvalu",dialCode:"+688",code:"TV"},{name:"Uganda",dialCode:"+256",code:"UG"},{name:"Ukraine",dialCode:"+380",code:"UA"},{name:"United Arab Emirates",dialCode:"+971",code:"AE"},{name:"United Kingdom",dialCode:"+44",code:"GB"},{name:"Uruguay",dialCode:"+598",code:"UY"},{name:"Uzbekistan",dialCode:"+998",code:"UZ"},{name:"Vanuatu",dialCode:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dialCode:"+58",code:"VE"},{name:"Vietnam",dialCode:"+84",code:"VN"},{name:"Virgin Islands, British",dialCode:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dialCode:"+1340",code:"VI"},{name:"Wallis and Futuna",dialCode:"+681",code:"WF"},{name:"Yemen",dialCode:"+967",code:"YE"},{name:"Zambia",dialCode:"+260",code:"ZM"},{name:"Zimbabwe",dialCode:"+263",code:"ZW"}].sort((t,e)=>t.name<e.name?-1:1)];const vs=({code:t,dialCode:e,name:i})=>`\n\t<div\n\t\tdata-id="${e}"\n\t\tdata-name="${t} ${e} ${i}"\n\t\tdata-country-code="${t}"\n\t>\n\t\t<div>\n\t\t\t<span>\n\t\t\t\t<img src="${(t=>`https://static.descope.com/npm/svg-country-flags@1.2.10/svg/${t.toLowerCase()}.svg`)(t)}" width="20" loading="lazy" />\n\t\t\t</span>\n\t\t\t<span>${i}</span>\n\t\t</div>\n\t\t<div>\n\t\t\t<span>${t}</span>\n\t\t\t<span>${e}</span>\n\t\t</div>\n\t</div>\n`,zs=ne("phone-field-internal"),Cs=["disabled","size","bordered","readonly"],Ss=["country-input-placeholder","default-code","restrict-countries"],ws=["phone-input-placeholder","maxlength","autocomplete","name","phone-input-type"],As=["label-type","country-input-label","label"],Ls={"country-input-label":"label","country-input-placeholder":"placeholder","phone-input-placeholder":"placeholder","phone-input-type":"type"},fs=[].concat(Cs,Ss,ws,As),Es=Mi({componentName:zs,baseSelector:"div"});customElements.define(zs,class extends Es{static get observedAttributes(){return[].concat(Es.observedAttributes||[],fs)}#Mt;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n >\n ${Ds.map(t=>vs(t)).join("")}\n </descope-combo-box>\n <div class="separator"></div>\n <descope-text-field type="tel"></descope-text-field>\n </div>\n `,this.comboBox=this.querySelector("descope-combo-box"),this.textField=this.querySelector("descope-text-field"),this.inputs=[this.comboBox,this.textField],se(this,this.comboBox,{includeAttrs:["label-type"]}),se(this,this.textField,{includeAttrs:["label-type","required","phone-input-type"],mapAttrs:{"phone-input-type":"type"}}),this.comboBox.customValueTransformFn=t=>{const[,e]=t?.split?.(" ")||[];return e}}get countryCodeInputData(){return this.comboBox.items}get countryCodeValue(){return this.comboBox.shadowRoot.querySelector("input").value}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get defaultCode(){return this.getAttribute("default-code")}get selectionStart(){return this.textField.selectionStart}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get selectedCountryCode(){return this.comboBox?.selectedItem?.getAttribute("data-country-code")}get restrictCountries(){const t=this.getAttribute("restrict-countries");return t?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){return this.comboBox.value&&this.textField.value?this.allowAlphanumericInput?`${this.comboBox.value}-${this.textField.value}`:`${this.comboBox.value}-${this.textField.value.replace(/\D+/g,"")}`:""}#mt(){this.comboBox.selectedItem=void 0,this.textField.value=""}set value(t){this.#yt(t)}#yt(t){if(!t||!/\d/.test(t))return void this.#mt();t.startsWith("+")||(t=`+${t}`);let e="",i="";if(t.includes("-")){const o=t.indexOf("-");e=t.slice(0,o),i=t.slice(o+1).replace(/\D+/g,"")}else{const o=(0,u.l)(t);o?.countryCallingCode&&(e=`+${o.countryCallingCode}`,i=t.slice(e.length).replace(/\D+/g,""))}if(!/\d/.test(e))return void this.#mt();const o=Ds.filter(t=>t.dialCode===e).map(t=>t.code),n=this.selectedCountryCode;if(!o.includes(n)){const t=this.comboBox.items?.find(t=>o.includes(t.getAttribute("data-country-code")));t&&(this.comboBox.selectedItem=t)}this.isFormatValue?this.textField.value=this.#bt(i):this.textField.value=i}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.inputs[1].focus()}),super.init?.(),this.#Nt()}getValidity(){const t=this.comboBox.value,e=this.textField.value,i=!t||!e,o=e&&e.length>=this.minLength;if(this.isRequired&&i)return{valueMissing:!0};if(this.value){if(!o)return{tooShort:!0};if(this.isStrictValidation&&!this.#It())return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i){if("default-code"===t&&i&&!this.selectedCountryCode)this.#xt(i);else if(fs.includes(t)){const e=Ls[t]||t;Cs.includes(t)?i?this.inputs.forEach(t=>t.setAttribute(e,i)):this.inputs.forEach(t=>t.removeAttribute(e)):Ss.includes(t)?this.comboBox.setAttribute(e,i):ws.includes(t)&&this.textField.setAttribute(e,i)}As.includes(t)&&this.#jt(t,i),"restrict-countries"===t&&this.#Tt(this.restrictCountries)}}#Nt(){this.textField.addEventListener("input",this.#Dt.bind(this)),this.comboBox.addEventListener("change",this.#vt.bind(this)),this.handleFocusEventsDispatching(this.inputs),this.handleInputEventDispatching()}#Dt(){const t=this.allowAlphanumericInput?this.textField.value:this.textField.value.replace(/\D+/g,"");this.textField.value=this.isFormatValue?this.#bt(t):t}#vt(){if(!this.isFormatValue)return;const t=this.textField.value.replace(/\D+/g,"");this.textField.value=this.#bt(t)}#bt(t=""){return this.#Mt&&this.#Mt.country===this.selectedCountryCode||(this.#Mt=new p.Q(this.selectedCountryCode)),this.#Mt.reset(),this.#Mt.input(t)||t}#It(){const t=(0,u.l)(this.value);return!!(t&&t.isValid?.()&&t.country&&this.#zt(t.country))}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Ct(t){return this.comboBox.items?.find(e=>e.getAttribute("data-country-code")===t)}#Tt(t){const e=t.length?Ds.filter(e=>t.includes(e.code)):Ds;this.querySelector("descope-combo-box").innerHTML=e.map(t=>vs(t)).join("")}#xt(t){if(!this.comboBox.value){const e=this.#Ct(t);e&&setTimeout(()=>{this.comboBox.selectedItem=e})}}#jt(t,e){const i=Ls[t]||t;"label-type"===t?this.#St(e):"floating"===this.getAttribute("label-type")&&("country-input-label"===t?this.comboBox.setAttribute(i,e):"label"===t&&this.textField.setAttribute(i,e))}#St(t){"floating"===t?(this.comboBox.setAttribute("label",this.getAttribute("country-input-label")||""),this.comboBox.setAttribute("placeholder",this.getAttribute("country-input-placeholder")||""),this.textField.setAttribute("label",this.getAttribute("label")||""),this.textField.setAttribute("placeholder",this.getAttribute("phone-input-placeholder")||"")):this.inputs.forEach(t=>t.removeAttribute("label"))}});const ks=ir.cssVarList,Os=zo.cssVarList,Vs=ne("phone-field"),{host:Ws,label:Rs,requiredIndicator:Us,inputField:Ys,internalAfter:Qs,countryCodeInput:Ps,phoneInput:Bs,separator:Zs,errorMessage:Fs,helperText:Gs}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:"::part(input-field)"},internalAfter:{selector:"descope-phone-field-internal::after"},phoneInput:{selector:()=>"descope-text-field"},countryCodeInput:{selector:()=>"descope-combo-box"},separator:{selector:"descope-phone-field-internal .separator"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},Hs=qt(Je({mappings:{fontSize:[Ws,Ys,{selector:ir.componentName,property:ir.cssVarList.fontSize},{selector:zo.componentName,property:zo.cssVarList.fontSize}],fontFamily:[Rs,Fs,Gs,{...Ps,property:zo.cssVarList.overlay.fontFamily}],hostWidth:[{...Ws,property:"width"},{...Bs,property:"width"},{...Ps,property:"--vaadin-combo-box-overlay-width"}],hostDirection:{...Ws,property:"direction"},inputBorderStyle:[{...Qs,property:"border-style"},{...Zs,property:"border-left-style"}],inputBorderWidth:[{...Qs,property:"border-width"},{...Zs,property:"border-left-width"}],inputBorderColor:[{...Qs,property:"border-color"},{...Zs,property:"border-left-color"}],inputBorderRadius:[{...Ys,property:"border-radius"},{...Qs,property:"border-radius"}],countryCodeInputWidth:{...Ps,property:Os.hostWidth},countryCodeDropdownWidth:{...Ps,property:"--vaadin-combo-box-overlay-width"},phoneInputWidth:{...Bs,property:"width"},horizontalPadding:[{...Bs,property:"padding-left"},{...Bs,property:"padding-right"},{...Ps,property:"padding-left"},{...Ps,property:"padding-right"}],labelFontSize:{...Rs,property:"font-size"},labelFontWeight:{...Rs,property:"font-weight"},inputValueFontWeight:[{...Bs,property:ks.inputValueFontWeight},{...Ps,property:Os.inputValueFontWeight}],inputPlaceholderFontWeight:{...Bs,property:ks.inputPlaceholderFontWeight},helperTextFontWeight:{...Gs,property:"font-weight"},errorMessageFontWeight:{...Fs,property:"font-weight"},labelTextColor:[{...Rs,property:"color"},{...Rs,property:"-webkit-text-fill-color"},{...Us,property:"color"}],labelRequiredIndicator:{...Us,property:"content"},errorMessageTextColor:{...Fs,property:"color"},errorMessageIcon:{...Fs,property:"background-image"},errorMessageIconSize:{...Fs,property:"background-size"},errorMessageIconPadding:{...Fs,property:"padding-inline-start"},errorMessageIconRepeat:{...Fs,property:"background-repeat"},errorMessageIconPosition:{...Fs,property:"background-position"},errorMessageFontSize:{...Fs,property:"font-size"},inputValueTextColor:[{...Bs,property:ks.inputValueTextColor},{...Ps,property:Os.inputValueTextColor}],inputPlaceholderTextColor:{...Bs,property:ks.inputPlaceholderColor},overlayItemBackgroundColor:{selector:"descope-combo-box",property:Os.overlayItemBackgroundColor},inputOutlineStyle:{...Ys,property:"outline-style"},inputOutlineColor:{...Ys,property:"outline-color"},inputOutlineWidth:{...Ys,property:"outline-width"},inputOutlineOffset:{...Ys,property:"outline-offset"},valueInputHeight:[{...Ps,property:Os.valueInputHeight}],valueInputMarginBottom:[{...Bs,property:ks.valueInputMarginBottom}],marginInlineStart:[{...Bs,property:ks.marginInlineStart},{...Ps,property:Os.marginInlineStart}]}}),$e,gi,ci({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ds}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${zs}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${zs}>\n \t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.baseElement._forwardInputValue=()=>{},this.inputElement=this.shadowRoot.querySelector(zs),se(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","bordered","minlength","maxlength","default-code","country-input-placeholder","phone-input-placeholder","disabled","restrict-countries","country-input-label","readonly","label","label-type","allow-alphanumeric-input","format-value","strict-validation","phone-input-type"]})}get countryCodeItems(){return this.inputElement?.countryCodeValue}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}get countryCodeInputData(){return this.inputElement?.countryCodeInputData}get countryCodes(){return Array.from(this.inputElement.countryCodeInputData).map(t=>t.getAttribute("data-country-code"))}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tmin-width: 15em;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\t${Ie(Hs.cssVarList)}\n\t\t\t${Te("vaadin-text-field")}\n\t\t\t${ze("vaadin-text-field")}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n\t\t\tdiv {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\t\t\tvaadin-text-field {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\tvaadin-text-field[focus-ring]::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\t\t\tvaadin-text-field::part(label) {\n margin-left: 0;\n margin-right: 0;\n }\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tpadding: 0;\n\t\t\t\tbackground: transparent;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\t\t\tdescope-phone-field-internal {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n direction: ltr;\n position: relative;\n\t\t\t}\n descope-phone-field-internal::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n outline-offset: calc(var(${Hs.cssVarList.inputBorderWidth}) * -1);\n pointer-events: none;\n }\n\t\t\tdescope-phone-field-internal > div {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\tdescope-phone-field-internal .separator {\n\t\t\t\tflex: 0;\n\t\t\t\tborder: none;\n\t\t\t}\n\n\t\t\tdescope-combo-box {\n\t\t\t\tflex-shrink: 0;\n min-width: 5.75em;\n\t\t\t\t${Os.inputOutlineWidth}: 0;\n\t\t\t\t${Os.inputOutlineOffset}: 0;\n\t\t\t\t${Os.inputBorderWidth}: 0;\n\t\t\t\t${Os.inputBorderRadius}: 0;\n\t\t\t}\n\t\t\tdescope-text-field {\n\t\t\t\tflex-grow: 1;\n\t\t\t\t${ks.inputOutlineWidth}: 0;\n\t\t\t\t${ks.inputOutlineOffset}: 0;\n\t\t\t\t${ks.inputBorderWidth}: 0;\n\t\t\t\t${ks.inputBorderRadius}: 0;\n }\n\n :host([label-type="floating"]) vaadin-text-field::part(label) {\n display: none;\n }\n descope-text-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n descope-text-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tborder: none;\n\t\t\t}\n ${Ce("vaadin-text-field")}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Vs}));customElements.define(Vs,Hs);const Js=ne("phone-field-internal-input-box"),$s=["disabled","size","readonly","phone-input-placeholder","name","maxlength","autocomplete","label-type","phone-input-type"],qs={"phone-input-placeholder":"placeholder","phone-input-type":"type"},_s=Mi({componentName:Js,baseSelector:"div"});customElements.define(Js,class extends _s{static get observedAttributes(){return[].concat(_s.observedAttributes||[],$s)}#Mt;constructor(){super(),this.innerHTML='\n <div>\n <descope-text-field tabindex="1" type="tel" bordered="false"></descope-text-field>\n </div>\n ',this.textField=this.querySelector("descope-text-field")}get phoneNumberInputEle(){return this.textField.shadowRoot.querySelector("input")}get defaultDialCode(){return t=this.getAttribute("default-code"),Ds.find(e=>e.code===t)?.dialCode;var t}get defaultCode(){return this.getAttribute("default-code")}get allowAlphanumericInput(){return"true"===this.getAttribute("allow-alphanumeric-input")}get minLength(){return parseInt(this.getAttribute("minlength"),10)||0}get maxLength(){return parseInt(this.getAttribute("maxlength"),10)||50}get restrictCountries(){return this.getAttribute("restrict-countries")?.split(",").filter(Boolean)||[]}get isFormatValue(){return"true"===this.getAttribute("format-value")}get isStrictValidation(){return"true"===this.getAttribute("strict-validation")}get value(){if(!this.textField.value)return"";if(!this.isStrictValidation)return this.#wt();const t=this.#At();return t?.country&&t?.countryCallingCode&&t?.nationalNumber?`+${[t?.countryCallingCode,t?.nationalNumber].join("-")}`:this.textField.value}set value(t){this.textField.value=t}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.textField.focus()}),super.init?.(),this.textField.addEventListener("input",this.#Lt.bind(this)),this.handleFocusEventsDispatching([this.textField]),k(this.textField,this,{includeAttrs:["has-value"]}),k(this,this.textField,{includeAttrs:["phone-input-type"],mapAttrs:{"phone-input-type":"type"}})}getValidity(){const t=/^\+?\d{1,4}-?(?:\d-?){1,15}$/,e=this.#ft(this.textField.value||"");if(this.isRequired&&!this.textField.value)return{valueMissing:!0};if(this.textField.value){if(e.length<this.minLength)return{tooShort:!0};if(this.isStrictValidation&&this.textField.value&&!this.#It()||!this.isStrictValidation&&this.textField.value&&!t.test(this.value))return{patternMismatch:!0}}return{}}setSelectionRange(...t){this.textField.setSelectionRange(...t)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e!==i&&$s.includes(t)){const e=qs[t]||t;this.textField.setAttribute(e,i)}}#Lt(t){let e=this.#Et(t.target.value);this.isFormatValue&&this.#kt(e)&&(e=this.#Ot(e)),t.target.value=e}#wt(){if(!this.defaultDialCode)return this.textField.value;const t=this.#Vt(this.textField.value),e=this.#ft(t);return[this.defaultDialCode,e].join("-")}#At(){return this.defaultDialCode?(0,u.l)([this.defaultDialCode,this.#ft(this.textField.value)].filter(Boolean).join("")):(0,u.l)(this.textField.value)}#ft(t){return t.replace(/\D/g,"")}#Vt(t){if("+"===this.textField.value?.[0]){const e=new RegExp(`^\\${this.defaultDialCode}`);return t.replace(e,"")}return t}#It(){const t=(0,u.l)(this.value);return!(!t||!t.isValid?.()||!t.country||!this.#zt(t.country)||this.defaultCode&&this.defaultCode!==t.country)}#zt(t){return!this.restrictCountries.length||this.restrictCountries.includes(t)}#Et(t){if(t=t.replace(/^-+/,"").replace(/(?!^)\+/g,"").replace("--","-").replace("+-","+"),!this.allowAlphanumericInput){const e=/^[+\d-\(\)]+$/;t=t.split("").filter(t=>e.test(t)).join("")}return t}#Ot(t=""){const e=this.defaultCode||this.#Wt(t);return e?(this.#Mt&&this.#Mt.country===e||(this.#Mt=new p.Q(e)),this.#Mt.reset(),this.#Mt.input(t)||t):t}#Wt(t){const e=(0,u.l)(t);return e?.country||""}#kt(t){return!!(t=>{const e=t.match(/\(/g),i=t.match(/\)/g);return e?.length===i?.length})(t)}});const Xs=ir.cssVarList,Ks=ne("phone-input-box-field"),{host:ta,label:ea,inputElement:ia,requiredIndicator:oa,inputField:na,internalComponent:ra,internalComponentAfter:sa,phoneInput:aa,errorMessage:la,helperText:da}={host:{selector:()=>":host"},label:{selector:"::part(label)"},inputElement:{selector:"input"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},inputField:{selector:()=>"vaadin-text-field::part(input-field)"},internalComponent:{selector:"descope-phone-field-internal-input-box"},internalComponentAfter:{selector:"descope-phone-field-internal-input-box::after"},phoneInput:{selector:()=>"descope-text-field"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},ca=qt(Je({mappings:{fontSize:[ta,na,{selector:ir.componentName,property:ir.cssVarList.fontSize}],fontFamily:[ea,la,da],hostWidth:{...ta,property:"width"},hostMinWidth:{...ta,property:"min-width"},hostDirection:{...ta,property:"direction"},inputHorizontalPadding:[{...aa,property:"padding-left"},{...aa,property:"padding-right"}],labelFontSize:{...ea,property:"font-size"},labelFontWeight:{...ea,property:"font-weight"},inputValueFontWeight:{...aa,property:Xs.inputValueFontWeight},inputPlaceholderFontWeight:{...aa,property:Xs.inputPlaceholderFontWeight},helperTextFontWeight:{...da,property:"font-weight"},errorMessageFontWeight:{...la,property:"font-weight"},labelTextColor:[{...ea,property:"color"},{...ea,property:"-webkit-text-fill-color"},{...oa,property:"color"}],labelRequiredIndicator:{...oa,property:"content"},errorMessageTextColor:{...la,property:"color"},errorMessageIcon:{...la,property:"background-image"},errorMessageIconSize:{...la,property:"background-size"},errorMessageIconPadding:{...la,property:"padding-inline-start"},errorMessageIconRepeat:{...la,property:"background-repeat"},errorMessageIconPosition:{...la,property:"background-position"},errorMessageFontSize:{...la,property:"font-size"},inputValueTextColor:{...aa,property:Xs.inputValueTextColor},inputPlaceholderTextColor:{...aa,property:Xs.inputPlaceholderColor},inputBorderStyle:{...sa,property:"border-style"},inputBorderWidth:{...sa,property:"border-width"},inputBorderColor:{...sa,property:"border-color"},inputBorderRadius:[{...ra,property:"border-radius"},{...sa,property:"border-radius"}],inputOutlineStyle:{...ra,property:"outline-style"},inputOutlineColor:{...ra,property:"outline-color"},inputOutlineWidth:{...ra,property:"outline-width"},inputOutlineOffset:{...ra,property:"outline-offset"},labelPosition:{...ea,property:"position"},labelTopPosition:{...ea,property:"top"},labelHorizontalPosition:[{...ea,property:"left"},{...ea,property:"right"}],inputTransformY:{...ea,property:"transform"},inputTransition:{...ea,property:"transition"},marginInlineStart:{...ea,property:"margin-inline-start"},valueInputHeight:{...ia,property:"height"},valueInputMarginBottom:{selector:ir.componentName,property:Xs.valueInputMarginBottom}}}),$e,gi,ci({proxyProps:["value","selectionStart"]}),t=>class extends t{static get CountryCodes(){return Ds}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n\t\t\t\t<${Js}\n\t\t\t\t\ttabindex="-1"\n\t\t\t\t\tslot="input"\n\t\t\t\t></${Js}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Js),A(this,this.inputElement,{includeAttrs:["has-value"]}),se(this.shadowRoot.host,this.inputElement,{includeAttrs:["size","minlength","maxlength","default-code","disabled","phone-input-placeholder","label","label-type","allow-alphanumeric-input","restrict-countries","format-value","strict-validation","data-errormessage-type-mismatch","phone-input-type"]})}get phoneNumberInputEle(){return this.inputElement?.phoneNumberInputEle}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n box-sizing: border-box;\n }\n ${Ie(ca.cssVarList)}\n ${Te("vaadin-text-field")}\n ${ze("vaadin-text-field")}\n \n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\n vaadin-text-field {\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n vaadin-text-field[focus-ring]::part(input-field) {\n box-shadow: none;\n }\n vaadin-text-field::before {\n height: 0;\n }\n vaadin-text-field::part(input-field) {\n padding: 0;\n background: transparent;\n -webkit-mask-image: none;\n }\n descope-phone-field-internal-input-box {\n -webkit-mask-image: none;\n padding: 0;\n width: 100%;\n }\n descope-phone-field-internal-input-box > div {\n width: 100%;\n }\n descope-phone-field-internal-input-box descope-text-field {\n ${Xs.inputOutlineWidth}: 0;\n ${Xs.inputOutlineOffset}: 0;\n }\n descope-phone-field-internal-input-box::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n box-sizing: border-box;\n pointer-events: none;\n }\n descope-text-field {\n flex-grow: 1;\n width: 100%;\n direction: ltr;\n }\n vaadin-text-field[readonly] > input:placeholder-shown {\n opacity: 1;\n }\n vaadin-text-field::part(input-field)::after {\n border: none;\n }\n\n vaadin-text-field[label-type="floating"]:not([focused])[readonly] input:placeholder-shown {\n opacity: 0;\n }\n vaadin-text-field[label-type="floating"]:not([focused])[disabled] input:placeholder-shown {\n opacity: 0;\n }\n\n ${Ce("vaadin-text-field")}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ks}));customElements.define(Ks,ca);const ua=ne("new-password-internal"),pa=(t,e)=>t.replace(/{{(\w+)+}}/g,(t,i)=>e?.[i]||t),ha=ne("policy-validation"),ga=["data","active-policies","overrides","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-actual-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse"],Ma=["label","value",...ga];class ma extends(ei({componentName:ha,baseSelector:":host > div"})){#Rt;#Ut=[];#Yt;static get observedAttributes(){return Ma}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="label"></div>\n <ul></ul>\n </div>\n\t\t',O("\n :host > div {\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .label {\n max-width: 100%;\n text-wrap: wrap;\n overflow-wrap: break-word;\n }\n .hide-label .label {\n display: none;\n }\n ul {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n }\n ul, li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n li::before {\n display: inline-block;\n width: 1em;\n text-align: center;\n }\n ",this),this.panel=this.shadowRoot.querySelector(":host > div"),this.label=this.shadowRoot.querySelector(".label"),this.list=this.shadowRoot.querySelector("ul")}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("label"===t&&this.updateLabel(i),ga.includes(t)){if("data"===t)try{this.availablePolicies=JSON.parse(i)}catch{console.error("Failed to set available policies")}if("active-policies"===t&&(this.#Ut=(i||"").split(",")),"data-password-policy-value-minlength"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,minlength:{value:`${t}`}})}if("data-password-policy-value-reuse"===t){const t=Number(i);!Number.isNaN(t)&&t>0&&(this.#Yt={...this.#Yt,reuse:{value:`${t}`}})}if("data-password-policy-value-passwordstrength"===t){const t=parseInt(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,expected:t}})}if("data-password-policy-actual-passwordstrength"===t){const t=Number(i);!Number.isNaN(t)&&t>=0&&(this.#Yt={...this.#Yt,passwordstrength:{...this.#Yt?.passwordstrength,actual:t}})}if("data-password-policy-value-disallowedchars"===t)if(i)this.#Yt={...this.#Yt,disallowedchars:{...this.#Yt?.disallowedchars,value:i}};else if(this.#Yt?.disallowedchars){const{disallowedchars:t,...e}=this.#Yt;this.#Yt=e}if("data-password-policy-value-email"===t)if(i)this.#Yt={...this.#Yt,disallowemail:{...this.#Yt?.disallowemail,expected:i}};else if(this.#Yt?.disallowemail){const{disallowemail:t,...e}=this.#Yt;this.#Yt=e}}this.renderItems(this.#Rt,this.#Ut,this.#Yt)}}get availablePolicies(){return this.#Rt||[]}set availablePolicies(t){this.#Rt=t}get value(){return this.getAttribute("value")||""}getStrengthScore(){return this.value.length}compareValues(t,e,i){switch(t.toUpperCase()){case"GTE":return i>=e;case"GT":return i>e;case"LTE":return i<=e;case"LT":return i<e;case"EQ":return i===e;case"NEQ":return i!==e;default:throw new Error(`Invalid comparison type: ${t}`)}}validate(){let t=this.#Rt;return this.#Yt&&(t=this.#Rt.map(t=>{const e=this.#Yt[t.id];return e?{...t,data:e}:t})),this.#Ut.reduce((e,i)=>{const o=t.find(t=>t.id===i);if(!o)return e;const{pattern:n,message:r,data:s,compare:a,info:l}=o,d="string"==typeof a?a.toUpperCase():a;if(!n&&!a&&!l||!r)return e;const c={message:pa(r,s),id:i};if(l)c.info=!0;else if(n){const t=new RegExp(pa(n,s));c.valid=t.test(this.value)}else if("STR_NEQ_CI"===d){const t=(s?.expected??"").toLowerCase(),e=(this.value??"").toLowerCase();if(t&&e){const i=t.indexOf("@"),o=i>0?t.slice(0,i):t;c.valid=e!==t&&e!==o}else c.valid=!0}else a&&(c.valid=this.compareValues(d,s?.expected??-1,s?.actual??-1));return e.push(c),e},[]).sort((t,e)=>Number(!!t.info)-Number(!!e.info))}get isValid(){return!this.validate().some(({valid:t})=>!1===t)}buildValidationItem({valid:t,message:e,info:i}){const o=!this.value||i?"none":t,n=document.createElement("li");n.className="item",n.dataset.valid=o;const r=document.createElement("span");return r.className="message",r.textContent=e??"",n.appendChild(r),n}renderItems(t,e){t&&e.length&&this.list.replaceChildren(...this.validate().map(this.buildValidationItem.bind(this)))}updateLabel(t){t?(this.label.textContent=t,this.classList.remove("hide-label")):(this.classList.add("hide-label"),this.label.textContent="")}}const{host:ya,item:ba,symbolDefault:Na,symbolSuccess:Ia,symbolError:xa}={host:{selector:()=>":host > div"},item:{selector:()=>".item"},symbolDefault:{selector:()=>'.item[data-valid="none"]::before'},symbolSuccess:{selector:()=>'.item[data-valid="true"]::before'},symbolError:{selector:()=>'.item[data-valid="false"]::before'}},ja=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostDirection:{selector:()=>":host",property:"direction"},fontSize:{},fontFamily:{},padding:{},borderWidth:{...ya,property:"border-width"},borderStyle:{...ya,property:"border-style"},borderColor:{...ya,property:"border-color"},borderRadius:{...ya,property:"border-radius"},backgroundColor:{...ya,property:"background-color"},textColor:{property:"color"},labelMargin:{...ya,property:"gap"},itemsSpacing:{...ba,property:"line-height"},itemSymbolSuccessColor:{...Ia,property:"color"},itemSymbolErrorColor:{...xa,property:"color"},itemSymbolDefault:{...Na,property:"content"},itemSymbolSuccess:{...Ia,property:"content"},itemSymbolError:{...xa,property:"content"}}}),$e,qe)(ma),Ta=ne("new-password"),Da=ja.cssVarList,{host:va,label:za,internalInputsWrapper:Ca,errorMessage:Sa,helperText:wa,passwordInput:Aa,policyPreview:La}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-password-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},passwordInput:{selector:"descope-password"},policyPreview:{selector:"descope-policy-validation"}},fa=qt(Je({mappings:{fontSize:[va,{},{selector:hs.componentName,property:hs.cssVarList.fontSize}],fontFamily:[za,Sa,wa],labelFontSize:{...za,property:"font-size"},labelFontWeight:{...za,property:"font-weight"},inputValueFontWeight:{...Aa,property:hs.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...Aa,property:hs.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...wa,property:"font-weight"},errorMessageFontWeight:{...Sa,property:"font-weight"},labelTextColor:{...za,property:"color"},errorMessageTextColor:{...Sa,property:"color"},errorMessageIcon:{...Sa,property:"background-image"},errorMessageIconSize:{...Sa,property:"background-size"},errorMessageIconPadding:{...Sa,property:"padding-inline-start"},errorMessageIconRepeat:{...Sa,property:"background-repeat"},errorMessageIconPosition:{...Sa,property:"background-position"},errorMessageFontSize:{...Sa,property:"font-size"},hostWidth:{...va,property:"width"},hostMinWidth:{...va,property:"min-width"},hostDirection:[{...va,property:"direction"},{...Aa,property:hs.cssVarList.hostDirection}],inputsRequiredIndicator:{...va,property:"content"},spaceBetweenInputs:{...Ca,property:"gap"},policyPreviewBackgroundColor:{...La,property:Da.backgroundColor},policyPreviewPadding:{...La,property:Da.padding},valueInputHeight:{...Aa,property:hs.cssVarList.valueInputHeight},valueInputMarginBottom:{...Aa,property:hs.cssVarList.valueInputMarginBottom}}}),$e,ci({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e=this.getAttribute("external-input");t.innerHTML=`\n\t\t\t<${ua}\n\t\t\t\tname="new-password"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n\t\t\t>\n </${ua}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(ua),"true"===this.getAttribute("external-input")&&this.initExternalInput(),se(this,this.inputElement,{includeAttrs:["password-label","password-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","label","has-confirm","invalid","readonly","disabled","draggable","has-validation","policy-label","active-policies","available-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","label-type","manual-visibility-toggle"]})}createSlottedExternalInput(t,e){const i=t.querySelector("input"),o=document.createElement("slot"),n=i.getAttribute("slot");o.setAttribute("name",e),o.setAttribute("slot",n),t.appendChild(o),i.setAttribute("slot",e),i.setAttribute("name",this.getAttribute("name")),i.setAttribute("data-hidden-input","true"),this.appendChild(i)}initExternalInput(){this.passwordInput=this.inputElement.querySelector('[data-id="password"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.passwordInput,"external-password-input"),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input")}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n :host ::part(error-message) {\n direction: ltr;\n }\n\t\t${Ie(hs.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-password-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-password-internal > .wrapper {\n -webkit-mask-image: none;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-password {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\tdescope-new-password-internal vaadin-password-field::before {\n\t\t\theight: initial;\n\t\t}\n descope-policy-validation {\n margin-top: 8px;\n display: flex;\n }\n .hidden {\n display: none;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Ta}));customElements.define(ha,ja);const Ea=/^password-/,ka=/^confirm-/,Oa=(t,e)=>t.replace(e,""),Va=["password-label","password-placeholder"],Wa=["confirm-label","confirm-placeholder"],Ra=["has-validation","policy-label","available-policies","active-policies","data-password-policy-value-minlength","data-password-policy-value-passwordstrength","data-password-policy-value-disallowedchars","data-password-policy-value-email","data-password-policy-value-reuse","manual-visibility-toggle"],Ua=["has-confirm","disabled","bordered","size","full-width","maxlength","invalid","readonly","draggable","autocomplete","label-type","manual-visibility-toggle"],Ya=[].concat(Ua,Va,Wa,Ra),Qa=Mi({componentName:ua,baseSelector:"div"});customElements.define(ua,class extends Qa{static get observedAttributes(){return[].concat(Qa.observedAttributes||[],Ya)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.passwordInput?.value||""}set value(t){t!==this.value&&(this.passwordInput.value=t)}get hasConfirm(){return"true"===this.getAttribute("has-confirm")}onHasConfirmChange(t){this.confirmInput.classList.toggle("hidden",!t)}onHasValidationChange(t){this.policyPanel.classList.toggle("hidden",!t)}get hasValidation(){return"true"===this.getAttribute("has-validation")}getValidity(){if(this.isRequired&&!this.value)return{valueMissing:!0};if(this.value&&!this.policyPanel.isValid)return{typeMismatch:!0};if(this.hasConfirm&&this.confirmInput&&this.value!==this.confirmInput.value)return{patternMismatch:!0};const t=this.getAttribute("minlength"),e=parseInt(t,10)||0;return this.value.length>=e?{}:{tooShort:!0}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.passwordInput.focus()}),super.init?.(),this.renderInputs(this.hasConfirm,this.hasValidation)}renderInputs(){const t="true"===this.getAttribute("external-input"),e=`\n <div class="password-input-container">\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n data-id="password"\n external-input="${t}"\n ></descope-password>\n <descope-policy-validation></descope-policy-validation>\n </div>\n <descope-password\n autocomplete="new-password"\n manual-visibility-toggle="true"\n external-input="${t}"\n data-id="confirm"\n ></descope-password>\n `;this.wrapperEle.innerHTML=e,this.passwordInput=this.querySelector('[data-id="password"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.policyPanel=this.querySelector("descope-policy-validation"),this.passwordStrength=this.querySelector("descope-password-strength"),this.inputs=[this.passwordInput,this.confirmInput],this.initInputs(),this.passwordInput.addEventListener("input",t=>{this.passwordStrength?.addEventListener("score-changed",({detail:t})=>{this.policyPanel.setAttribute("data-password-policy-actual-passwordstrength",t)},{once:!0}),this.passwordStrength?.setAttribute("value",t.target.value),this.policyPanel.setAttribute("value",t.target.value)}),se(this,this.policyPanel,{includeAttrs:Ra,mapAttrs:{"policy-label":"label","available-policies":"data"}})}handleIndicatorStyle(){this.inputs.forEach(t=>{O(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${fa.cssVarList.inputsRequiredIndicator});\n width: 1em;\n text-align: center;\n\t\t\t\t}\n :host ::part(required-indicator) {\n display: inline-flex;\n }\n\t\t\t\t`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&te(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}async togglePasswordStrength(){this.activePolicies.includes("passwordstrength")?this.passwordStrength||(await Promise.resolve().then(function(){return XT}),this.passwordStrength=document.createElement("descope-password-strength"),this.passwordStrength.setAttribute("options","Very weak,Weak,Average,Strong,Very strong"),this.passwordStrength.setAttribute("value",this.passwordInput.value||""),this.passwordStrength.setAttribute("st-host-direction",this.getAttribute("st-host-direction")),this.passwordStrength.setAttribute("full-width","true"),this.querySelector(".password-input-container").insertBefore(this.passwordStrength,this.policyPanel)):this.passwordStrength&&(this.passwordStrength.remove(),this.passwordStrength=null)}get activePolicies(){return(this.getAttribute("active-policies")||"").split(",")}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("has-validation"===t?this.onHasValidationChange("true"===i):"has-confirm"===t?this.onHasConfirmChange("true"===i):Ua.includes(t)?this.inputs.forEach(e=>this.toggleBooleanAttribute(e,t,i)):Va.includes(t)?this.toggleBooleanAttribute(this.passwordInput,Oa(t,Ea),i):Wa.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,Oa(t,ka),i),"active-policies"===t&&this.togglePasswordStrength())}}),customElements.define(Ta,fa);const Pa=ne("recaptcha"),Ba=["enabled","site-key","action","enterprise","variant"],Za="recaptcha",Fa=Mi({componentName:Pa,baseSelector:":host > div"}),Ga=qt($e)(class extends Fa{#Qt=null;static get observedAttributes(){return Ba.concat(Fa.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("enabled"===t&&this.#Pt("true"===i),"variant"===t&&(this.#Bt(),this.updatePreview()))}renderRecaptcha(t){this.children.length?this.updatePreview():this.toggleRecaptchaEles(t)}displayRecaptcha(){this.isWidgetVariant?this.displayWidget():this.displayDeprecated()}displayWidget(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="",this.depercatedRecaptchaEle.style.display="none"}hideRecaptcha(){this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display="none",this.mockRecaptchaEle.style.display=""}displayDeprecated(){this.mockRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.depercatedRecaptchaEle.style.display=""}toggleRecaptchaEles(t){t?this.displayRecaptcha():this.hideRecaptcha()}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="recaptcha"></span>\n <span id="recaptcha-widget"></span>\n <input id="recaptcha-widget-input" type="hidden" name="recaptcha-widget" required />\n <img src="https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png" alt="recaptcha"/>\n </div>\n <slot></slot>\n\t',O('\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #recaptcha .grecaptcha-badge {\n box-shadow: none !important;\n }\n :host #recaptcha .grecaptcha-logo {\n height: 100%;\n }\n :host #recaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host #recaptcha-widget {\n width: 100%;\n height: 100%;\n }\n :host #recaptcha-widget-input {\n display: none;\n }\n :host img {\n width: 256px;\n }\n :host([full-width="true"]) {\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ',this),this.depercatedRecaptchaEle=this.baseElement.querySelector("#recaptcha"),this.recaptchaWidgetEle=this.baseElement.querySelector("#recaptcha-widget"),this.recaptchaWidgetInputEle=this.baseElement.querySelector("#recaptcha-widget-input"),this.mockRecaptchaEle=this.baseElement.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge")}init(){super.init?.(),ee(this,this.updatePreview.bind(this)),this.inputElement=this.recaptchaWidgetInputEle,this.recaptchaWidgetInputEle.getValidity=null,this.recaptchaWidgetInputEle.checkValidity=null,this.#Bt()}#Bt(){this.isWidgetVariant?this.getAttribute("name")||(this.setAttribute("name",Za),this.#Qt=Za):this.#Qt&&this.getAttribute("name")===this.#Qt&&(this.removeAttribute("name"),this.#Qt=null),this.dispatchEvent(new Event("change"))}updatePreview(){this.children.length?(this.depercatedRecaptchaEle.style.display="none",this.recaptchaWidgetEle.style.display="none",this.mockRecaptchaEle.style.display="none",this.badge.classList.add("hidden")):(this.toggleRecaptchaEles(this.enabled),this.badge.classList.remove("hidden"))}getValidity(){return this.isWidgetVariant?this.recaptchaWidgetInputEle.value?{}:{valueMissing:!0}:{}}checkValidity(){return!this.isWidgetVariant||!!this.recaptchaWidgetInputEle.value}get enterprise(){return"true"===this.getAttribute("enterprise")}get siteKey(){return this.getAttribute("site-key")}get action(){return this.getAttribute("action")||"load"}get enabled(){return"true"===this.getAttribute("enabled")}get variant(){return this.getAttribute("variant")||"text"}get isWidgetVariant(){return"widget"===this.variant}get scriptURL(){const t=new URL("https://www.google.com/recaptcha/");return t.pathname+=(this.enterprise?"enterprise":"api")+".js",t.searchParams.append("onload","onRecaptchaLoadCallback"),t.searchParams.append("render","explicit"),t.toString()}#Pt(t){this.renderRecaptcha(t),this.isWidgetVariant||t&&(this.#Zt(),document.getElementById("recaptcha-script")?window.onRecaptchaLoadCallback():this.#Ft())}#Ft(){const t=document.createElement("script");t.src=this.scriptURL,t.async=!0,t.id="recaptcha-script",t.defer=!0,document.body.appendChild(t)}get grecaptchaInstance(){return this.enterprise?window.grecaptcha?.enterprise:window.grecaptcha}#Gt(t,e,i){this.isConnected&&t.ready(()=>{const o=e.querySelector('textarea[name^="g-recaptcha-response"]')?.cloneNode();if(o&&(o.style.display="none",document.body.appendChild(o)),!this.siteKey)return;const n=t?.execute(i,{action:this.action});n.then((n,r)=>{r?console.warn("could not execute recaptcha",r):(this.updateComponentsContext({risktoken:n,riskaction:this.action}),this.isConnected&&setTimeout(()=>{this.#Gt(t,e,i)},11e4)),o.remove()})})}#Zt(){window.onRecaptchaLoadCallback=()=>{const t=this.depercatedRecaptchaEle;if(t.hasChildNodes())return;const{grecaptchaInstance:e}=this;e&&setTimeout(()=>{const i=e.render(t,{sitekey:this.siteKey,badge:"inline",size:"invisible"});this.#Gt(e,t,i)},0)}}});customElements.define(Pa,Ga);const Ha=ne("upload-file"),Ja=["title","description","button-label","accept","readonly","button-mode","button-variant","required","size","icon"],$a=Mi({componentName:Ha,baseSelector:":host > div"}),qa=Uo.cssVarList,{host:_a,wrapper:Xa,icon:Ka,title:tl,description:el,requiredIndicator:il}={host:{selector:()=>":host"},wrapper:{selector:()=>":host > div"},icon:{selector:()=>"::slotted(*)"},title:{selector:()=>".title"},description:{selector:()=>".description"},requiredIndicator:{selector:()=>".title::after"}},ol=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{fontSize:{},fontFamily:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},hostHeight:{..._a,property:"height"},hostWidth:{..._a,property:"width"},hostPadding:{property:"padding"},hostDirection:[{..._a,property:"direction"},{selector:()=>Uo.componentName,property:qa.hostDirection}],gap:{...Xa},lineHeight:{...Xa,property:"line-height"},titleFontSize:{...tl,property:"font-size"},titleFontWeight:{...tl,property:"font-weight"},descriptionFontSize:{...el,property:"font-size"},labelTextColor:[{...tl,property:"color"},{...el,property:"color"}],iconSize:{...Ka,property:"width"},requiredIndicator:{...il,property:"content"}}}),$e,qe)(class extends $a{static get observedAttributes(){return Ja.concat($a.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div>\n <slot name="icon"></slot>\n\t\t\t\t<div class="title">\n\t\t\t\t\t<span class="title-text"></span>\n\t\t\t\t</div>\n\t\t\t\t<div class="description"></div>\n\t\t\t\t<div class="button-wrapper">\n\t\t\t\t\t<input type="file" tabindex="-1" aria-hidden="true"/>\n\t\t\t\t\t<descope-button id="button"></descope-button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',O("\n :host {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t\t:host > div {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\ttext-align: center;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.button-wrapper {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t\tinput {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t}\n ",this),this.wrapperEle=this.shadowRoot.querySelector(".wrapper"),this.inputElement=this.shadowRoot.querySelector("input"),this.button.onclick=()=>this.inputElement.click(),this.inputElement.onchange=async t=>{const e=t.target.files;var i;e.length&&(this.value=await(i=e[0],new Promise(t=>{const e=new FileReader;e.onload=e=>t(e.target.result),e.readAsDataURL(i)})),this.updateDescription((t=>t.name.replace(/^.*\\/,""))(e[0])))},this.oninvalid=()=>{this.setAttribute("invalid","true")}}getValidity(){return this.isRequired&&!this.input.value?{valueMissing:!0}:(this.removeAttribute("invalid"),{})}initInputs(){this.rootElement.querySelector("descope-button").onclick=()=>this.inputElement.click()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("title"===t?this.updateTitle(i):"description"===t?this.updateDescription(i):"button-label"===t?this.updateButtonLabel(i):"button-mode"===t?this.updateButtonMode(i):"button-variant"===t?this.updateButtonVariant(i):"size"===t?this.updateButtonSize(i):"accept"===t?this.updateInputAccept(i):"readonly"===t&&this.updateReadOnly(i))}get button(){return this.shadowRoot.querySelector("descope-button")}get input(){return this.shadowRoot.querySelector("input")}get title(){return this.shadowRoot.querySelector(".title-text")}get description(){return this.shadowRoot.querySelector(".description")}get icon(){return this.shadowRoot.querySelector(".icon")}updateTitle(t){this.title.textContent=t}updateDescription(t){this.description.textContent=t}updateButtonLabel(t){this.button.textContent=t}updateButtonSize(t){this.button.setAttribute("size",t)}updateButtonMode(t){this.button.setAttribute("mode",t)}updateButtonVariant(t){this.button.setAttribute("variant",t)}updateInputAccept(t){this.input.setAttribute("accept",t)}updateReadOnly(t){"true"===t?this.input.setAttribute("disabled","true"):this.input.removeAttribute("disabled")}});customElements.define(Ha,ol);const nl=t=>{class e extends(Mi({componentName:t,baseSelector:"slot"})){constructor(){super(),this.innerHTML='\n <slot part="wrapper"></slot>\n '}dispatchChange=ii.bind(this,"change");get items(){return this.querySelector("slot").assignedElements()}get isReadonly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"md"}get value(){console.warn("get value","is not implemented")}set value(t){console.warn("set value","is not implemented")}onSizeChange(){this.items.forEach(t=>{t.setAttribute("size",this.size)})}onReadOnlyChange(){this.querySelector("slot").toggleAttribute("inert",this.isReadonly)}getValidity(){console.warn("getValidity","is not implemented")}onObservedAttributeChange(t){t.forEach(t=>{switch(t){case"size":this.onSizeChange();break;case"readonly":this.onReadOnlyChange()}})}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.items[0]?.focus()}),super.init?.(),te(this,this.onObservedAttributeChange.bind(this),{includeAttrs:["size","readonly"]})}}return e},rl=ne("button-selection-group-internal");class sl extends(nl(rl)){getSelectedNode(){return this.items.find(t=>t.hasAttribute("selected"))}get allowDeselect(){return"true"===this.getAttribute("allow-deselect")}removeSelected(){this.getSelectedNode()?.removeAttribute("selected")}onClick(t){t.target!==t.currentTarget&&(t.target===this.getSelectedNode()&&this.allowDeselect?this.removeSelected():this.setSelected(t.target),this.dispatchChange())}setSelected(t){t!==this.getSelectedNode()&&(this.removeSelected(),t?.setAttribute("selected","true"))}get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue,this.setCustomValidity())})}get value(){return this.getSelectedNode()?.value||""}set value(t){const e=this.items.find(e=>e.value===t);this.setSelected(e)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{}}init(){super.init(),this.setDefaultValue(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const al=ne("button-selection-group-item");class ll extends(ei({componentName:al,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,O("\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n ",this),se(this,this.baseElement,{includeAttrs:["size","variant"]}),se(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",t=>{t.isTrusted&&this.handleFocus()})}}const dl=qt(Je({mappings:{hostDirection:{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},hostWidth:{selector:()=>Uo.componentName,property:"width"},backgroundColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.backgroundColor},labelTextColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.labelTextColor},borderColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderColor},borderWidth:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderWidth},borderStyle:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderStyle},borderRadius:{selector:()=>Uo.componentName,property:Uo.cssVarList.borderRadius},outlineColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.outlineColor}}}),$e,qe)(ll),cl=t=>class extends t{#tt=({value:t,label:e})=>`<descope-button-selection-group-item value="${t}">${e}</descope-button-selection-group-item>`;#R;get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get size(){return this.inputElement?.size}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.renderItems(),te(this,this.renderItems.bind(this),{includeAttrs:["data"]}),ee(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})})}},{host:ul,label:pl,requiredIndicator:hl,internalWrapper:gl,errorMessage:Ml}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},internalWrapper:{selector:()=>':host [part="internal-component"] slot'},errorMessage:{selector:"::part(error-message)"}},ml={hostWidth:{...ul,property:"width"},hostDirection:{...ul,property:"direction"},fontFamily:ul,labelTextColor:[{...pl,property:"color"},{...hl,property:"color"}],labelRequiredIndicator:{...hl,property:"content"},errorMessageTextColor:{...Ml,property:"color"},errorMessageIcon:{...Ml,property:"background-image"},errorMessageIconSize:{...Ml,property:"background-size"},errorMessageIconPadding:{...Ml,property:"padding-inline-start"},errorMessageIconRepeat:{...Ml,property:"background-repeat"},errorMessageIconPosition:{...Ml,property:"background-position"},errorMessageFontSize:{...Ml,property:"font-size"},itemsSpacing:{...gl,property:"gap"},itemsDirection:{...gl,property:"flex-direction"},itemsAlignment:{...gl,property:"align-items"},itemsWidth:{selector:()=>`::slotted(${dl.componentName})`,property:dl.cssVarList.hostWidth}},yl=`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t\t\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n\n\t\t\t:host::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t\tvaadin-text-field::part(input-field)::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n [part="internal-component"] {\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n display: inline-block;\n\t\t\t\tmin-height: initial;\n\t\t\t}\n\n [part="internal-component"] slot {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tpadding: 0;\n\t\t\t\toverflow: hidden;\n\t\t\t\t-webkit-mask-image: none;\n\t\t\t}\n\n\t\t\tvaadin-text-field {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: 100%\n\t\t\t}\n\n\t\t\tvaadin-text-field::before {\n\t\t\t\theight: 0;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly] > input:placeholder-shown {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\tvaadin-text-field[readonly]::part(input-field)::after {\n\t\t\t\tborder: 0 solid;\n\t\t\t}\n\n\t\t\tvaadin-text-field::part(input-field) {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n ${Ce("vaadin-text-field")}\n\t\t\t${Te("vaadin-text-field")}\n `,bl=ne("button-selection-group"),Nl=qt(Je({mappings:{...ml}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,cl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${rl}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${rl}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(rl),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),se(this,this.inputElement,{includeAttrs:["size","default-value","allow-deselect"]})}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>yl,excludeAttrsSync:["tabindex","style"],componentName:bl}));customElements.define(rl,sl),customElements.define(al,dl),customElements.define(bl,Nl);const Il=ne("button-multi-selection-group-internal");class xl extends(nl(Il)){#Ht(){return this.items.filter(t=>t.hasAttribute("selected"))}onClick(t){t.target!==t.currentTarget&&(this.#Ht().includes(t.target)?t.target.removeAttribute("selected"):t.target.setAttribute("selected","true"),this.dispatchChange())}get value(){return this.#Ht().map(t=>t.value)}set value(t){this.items.forEach(e=>{t.includes(e.value)?e.setAttribute("selected","true"):e.removeAttribute("selected")})}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}#Jt(t){const e=Array.isArray(t);return e||console.error("default-values must be an array, received:",t),e}get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.#Jt(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){setTimeout(()=>{this.defaultValues&&(this.value=this.defaultValues,this.setCustomValidity())})}getValidity(){return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}}init(){super.init(),this.setDefaultValues(),this.querySelector("slot").addEventListener("click",this.onClick.bind(this))}}const jl=ne("button-multi-selection-group"),Tl=qt(Je({mappings:{...ml}}),$e,ci({proxyProps:["value","selectionStart"]}),qe,cl,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Il}\n \tname="button-selection-group"\n \tslot="input"\n tabindex="-1"\n part="internal-component"\n >\n <slot></slot>\n </${Il}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Il),this.inputElement.addEventListener("change",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),se(this,this.inputElement,{includeAttrs:["size","default-values","min-items-selection","max-items-selection"]})}})(oi({slots:[],wrappedEleName:"vaadin-text-field",style:()=>yl,excludeAttrsSync:["tabindex","style"],componentName:jl}));customElements.define(Il,xl),customElements.define(jl,Tl);class Dl extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(t,e,i){const o=i.item[this.path]||"",n=Array.isArray(o)?o.join(", "):o;this.__setTextContent(t,n),t.title=n}_defaultHeaderRenderer(t,e){this.sortable?super._defaultHeaderRenderer(t,e):this.__setTextContent(t,this.__getHeader(this.header,this.path))}}const vl=ne("grid-text-column");customElements.define(vl,Dl);const zl=ne("grid-custom-column");customElements.define(zl,class extends Dl{_defaultRenderer(t,e,i){const o=i.item[this.path]||"",n=Array.from(this.children).find(t=>{const e=t.getAttribute("data-pattern");return!e||new RegExp(e).test(o)});if(!n)return void this.__setTextContent(t,i.item[this.path]||"");const r=n.cloneNode(!0);r.textContent=o||"",t.innerHTML="",t.append(r)}});const Cl=()=>{const t=document.createElement("descope-checkbox");return t.setAttribute("bordered","true"),t.setAttribute("size","xs"),t},Sl=t=>!!t.items?.length&&t.selectedItems.length===t.items.length;class wl extends g.${_onHeaderRendererOrBindingChanged(){}_headerRenderer(t){const e=t.parentNode;let i=t.querySelector("descope-checkbox");i||(i=Cl(),i.addEventListener("input",()=>{const t=Sl(e);e.selectedItems=t?[]:e.items}),t.appendChild(i)),i.setAttribute("checked",Sl(e))}_defaultRenderer(t,e,i){const o=t.parentNode;let n=t.querySelector("descope-checkbox");n||(n=Cl(),t.appendChild(n)),n.onchange=()=>{n.checked?o.selectItem(i.item):o.deselectItem(i.item)},n.setAttribute("checked",i.selected)}}const Al=ne("grid-selection-column");customElements.define(Al,wl);class Ll extends h.v{get sortable(){return"true"===this.getAttribute("sortable")}_defaultRenderer(t,e,i){const o=e._gridValue,n=o.detailsOpenedItems?.indexOf(i.item)??-1,r=-1!==n,s=document.createElement("vaadin-icon");s.icon=r?"vaadin:angle-up":"vaadin:angle-down",s.classList.add("toggle-details-button",r?"opened":"closed"),t.innerHTML="",t.append(s),s.onclick=()=>{o.detailsOpenedItems=r?o.detailsOpenedItems.toSpliced(n,1):[...o.detailsOpenedItems,i.item]}}_defaultHeaderRenderer(t,e){this.sortable?super._defaultHeaderRenderer(t,e):this.__setTextContent(t,this.__getHeader(this.header,this.path))}}const fl=ne("grid-item-details-column");customElements.define(fl,Ll),customElements.define(So,Lo),customElements.define(fo,Eo);const El=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},kl=ne("code-snippet");let Ol=class extends(ei({componentName:kl,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["lang","inline","copy-button"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <code class="hljs"></code>\n </div>\n ',O("\n :host {\n display: inline-block;\n width: 100%;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n code {\n grid-area: 1 / 1;\n display: block;\n width: 100%;\n min-height: 1em;\n overflow-x: auto;\n }\n pre {\n margin: 0;\n }\n .copy-btn {\n grid-area: 1 / 1;\n place-self: start end;\n margin: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-style: solid;\n cursor: pointer;\n opacity: 0;\n transition: opacity 150ms ease, background 150ms ease;\n }\n .wrapper:hover .copy-btn,\n .copy-btn:focus-visible {\n opacity: 1;\n }\n .copy-btn descope-icon {\n width: 16px;\n height: 16px;\n pointer-events: none;\n flex-shrink: 0;\n }\n .copy-btn .check-icon {\n display: none;\n }\n .copy-btn.copied .check-icon {\n display: block;\n }\n .copy-btn.copied descope-icon:not(.check-icon) {\n display: none;\n }\n ",this)}init(){super.init?.(),this.lang=this.getAttribute("lang"),this.isInline="true"===this.getAttribute("inline"),"true"===this.getAttribute("copy-button")&&this.#$t(),ee(this,this.#qt.bind(this))}get contentNode(){return this.shadowRoot.querySelector("code")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("inline"===t&&(this.isInline=i),"lang"===t&&(this.lang=i),"copy-button"===t&&("true"===i?this.#$t():this.#_t()),this.#qt())}#$t(){if(this.shadowRoot.querySelector(".copy-btn"))return;const t=document.createElement("button");t.className="copy-btn",t.type="button",t.setAttribute("aria-label","Copy code");const e=document.createElement("descope-icon");e.setAttribute("src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogIDxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+CiAgPHBhdGggZD0iTTUgMTVINGEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg5YTIgMiAwIDAgMSAyIDJ2MSI+PC9wYXRoPgo8L3N2Zz4K");const i=document.createElement("descope-icon");i.setAttribute("src","data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iY2hlY2staWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT4KPC9zdmc+Cg=="),i.classList.add("check-icon"),t.appendChild(e),t.appendChild(i),t.addEventListener("click",()=>this.#Xt()),this.shadowRoot.querySelector(".wrapper").appendChild(t)}#_t(){this.shadowRoot.querySelector(".copy-btn")?.remove()}#Xt(){const t=this.shadowRoot.querySelector(".copy-btn");navigator.clipboard.writeText(El(this.textContent)).then(()=>{t.classList.add("copied"),setTimeout(()=>t.classList.remove("copied"),2e3)}).catch(()=>{})}#qt(){const t=El(this.textContent),e=this.lang;if(!e)return void(this.contentNode.textContent=t);const{value:i}=M.A.highlight(t,{language:e});this.contentNode.innerHTML=(t=>this.isInline?t:`<pre>${t}</pre>`)(i)}};const Vl={selector:()=>".copy-btn"},{root:Wl,docTag:Rl,keyword:Ul,metaKeyword:Yl,templateTag:Ql,templateVariable:Pl,type:Bl,variableLanguage:Zl,title:Fl,titleClass:Gl,titleClassInherited:Hl,titleFunction:Jl,attr:$l,attribute:ql,literal:_l,meta:Xl,number:Kl,operator:td,variable:ed,selectorAttr:id,selectorClass:od,selectorId:nd,regexp:rd,string:sd,metaString:ad,builtIn:ld,symbol:dd,comment:cd,code:ud,formula:pd,name:hd,quote:gd,selectorTag:Md,selectorPseudo:md,subst:yd,section:bd,bullet:Nd,emphasis:Id,strong:xd,addition:jd,deletion:Td,charEscape:Dd,link:vd,params:zd,property:Cd,punctuation:Sd,tag:wd}={root:{selector:()=>".hljs"},docTag:{selector:()=>".hljs-doctag"},keyword:{selector:()=>".hljs-keyword"},metaKeyword:{selector:()=>".hljs-meta .hljs-keyword"},templateTag:{selector:()=>".hljs-template-tag"},templateVariable:{selector:()=>".hljs-template-variable"},type:{selector:()=>".hljs-type"},variableLanguage:{selector:()=>".hljs-variable.language"},title:{selector:()=>".hljs-title"},titleClass:{selector:()=>".hljs-title.class_"},titleClassInherited:{selector:()=>".hljs-title.class_.inherited__"},titleFunction:{selector:()=>".hljs-title.function_"},attr:{selector:()=>".hljs-attr"},attribute:{selector:()=>".hljs-attribute"},literal:{selector:()=>".hljs-literal"},meta:{selector:()=>".hljs-meta"},number:{selector:()=>".hljs-number"},operator:{selector:()=>".hljs-operator"},variable:{selector:()=>".hljs-variable"},selectorAttr:{selector:()=>".hljs-selector-attr"},selectorClass:{selector:()=>".hljs-selector-class"},selectorId:{selector:()=>".hljs-selector-id"},regexp:{selector:()=>".hljs-regexp"},string:{selector:()=>".hljs-string"},metaString:{selector:()=>".hljs-meta .hljs-string"},builtIn:{selector:()=>".hljs-built_in"},symbol:{selector:()=>".hljs-symbol"},comment:{selector:()=>".hljs-comment"},code:{selector:()=>".hljs-code"},formula:{selector:()=>".hljs-formula"},name:{selector:()=>".hljs-name"},quote:{selector:()=>".hljs-quote"},selectorTag:{selector:()=>".hljs-selector-tag"},selectorPseudo:{selector:()=>".hljs-selector-pseudo"},subst:{selector:()=>".hljs-subst"},section:{selector:()=>".hljs-section"},bullet:{selector:()=>".hljs-bullet"},emphasis:{selector:()=>".hljs-emphasis"},strong:{selector:()=>".hljs-strong"},addition:{selector:()=>".hljs-addition"},deletion:{selector:()=>".hljs-deletion"},charEscape:{selector:()=>".hljs-char.escape"},link:{selector:()=>".hljs-link"},params:{selector:()=>".hljs-params"},property:{selector:()=>".hljs-property"},punctuation:{selector:()=>".hljs-punctuation"},tag:{selector:()=>".hljs-tag"}},Ad=qt(Je({mappings:{rootBgColor:{...Wl,property:"background-color"},rootTextColor:{...Wl,property:"color"},docTagTextColor:{...Rl,property:"color"},keywordTextColor:{...Ul,property:"color"},metaKeywordTextColor:{...Yl,property:"color"},templateTagTextColor:{...Ql,property:"color"},templateVariableTextColor:{...Pl,property:"color"},typeTextColor:{...Bl,property:"color"},variableLanguageTextColor:{...Zl,property:"color"},titleTextColor:{...Fl,property:"color"},titleClassTextColor:{...Gl,property:"color"},titleClassInheritedTextColor:{...Hl,property:"color"},titleFunctionTextColor:{...Jl,property:"color"},attrTextColor:{...$l,property:"color"},attributeTextColor:{...ql,property:"color"},literalTextColor:{..._l,property:"color"},metaTextColor:{...Xl,property:"color"},numberTextColor:{...Kl,property:"color"},operatorTextColor:{...td,property:"color"},variableTextColor:{...ed,property:"color"},selectorAttrTextColor:{...id,property:"color"},selectorClassTextColor:{...od,property:"color"},selectorIdTextColor:{...nd,property:"color"},regexpTextColor:{...rd,property:"color"},stringTextColor:{...sd,property:"color"},metaStringTextColor:{...ad,property:"color"},builtInTextColor:{...ld,property:"color"},symbolTextColor:{...dd,property:"color"},commentTextColor:{...cd,property:"color"},codeTextColor:{...ud,property:"color"},formulaTextColor:{...pd,property:"color"},nameTextColor:{...hd,property:"color"},quoteTextColor:{...gd,property:"color"},selectorTagTextColor:{...Md,property:"color"},selectorPseudoTextColor:{...md,property:"color"},substTextColor:{...yd,property:"color"},sectionTextColor:{...bd,property:"color"},bulletTextColor:{...Nd,property:"color"},emphasisTextColor:{...Id,property:"color"},strongTextColor:{...xd,property:"color"},additionTextColor:{...jd,property:"color"},additionBgColor:{...jd,property:"background-color"},deletionTextColor:{...Td,property:"color"},deletionBgColor:{...Td,property:"background-color"},charEscapeTextColor:{...Dd,property:"color"},linkTextColor:{...vd,property:"color"},paramsTextColor:{...zd,property:"color"},propertyTextColor:{...Cd,property:"color"},punctuationTextColor:{...Sd,property:"color"},tagTextColor:{...wd,property:"color"},copyButtonSize:[{...Vl,property:"width"},{...Vl,property:"height"}],copyButtonBorderRadius:{...Vl,property:"border-radius"},copyButtonBorderWidth:{...Vl,property:"border-width"},copyButtonBorderColor:{...Vl,property:"border-color"},copyButtonBgColor:{...Vl,property:"background-color"},copyButtonHoverBgColor:{selector:()=>".copy-btn:hover",property:"background-color"},copyButtonColor:{...Vl,property:"color"}}}),$e,qe)(Ol);customElements.define(kl,Ad);const Ld=t=>{const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e},fd=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML.replace(/"/g,"&quot;")},Ed=t=>(t=>t?.constructor===Object)(t)?"object":Array.isArray(t)?"array":/^\s*<[\s\S]*>/.test(t)?"xml":"text",kd=(t,e)=>`<descope-code-snippet copy-button="true" lang="${e}" class="row-details__value code">${fd(t)}</descope-code-snippet>`,Od=t=>`<div class="row-details__value text" title="${fd(t)}">${fd(t)}</div>`,Vd=t=>kd(JSON.stringify(t,null,2),"json"),Wd=t=>{const e=Ed(t);return"object"===e?Vd(t):"xml"===e?(t=>kd(t,"xml"))(t):"array"===e?t.some(t=>"object"===Ed(t))?Vd(t):Od(t.join(",\n")):Od(t)},Rd=ne("grid"),{host:Ud,headerRow:Yd,headerRowCell:Qd,contentRow:Pd,firstRow:Bd,sortIndicators:Zd,activeSortIndicator:Fd,selectedRow:Gd,rowSeparator:Hd,resizeHandle:Jd,toggleDetailsPanelButton:$d,toggleDetailsPanelButtonOpened:qd,toggleDetailsPanelButtonClosed:_d,detailsPanel:Xd,detailsPanelLabels:Kd,selectedRowCell:tc,detailsPanelContent:ec}={host:{selector:()=>"vaadin-grid"},headerRow:{selector:()=>"::part(header-cell)"},headerRowCell:{selector:()=>"vaadin-grid::part(header-cell)"},contentRow:{selector:()=>"::part(cell)"},firstRow:{selector:()=>"::part(first-header-row-cell)"},selectedRow:{selector:()=>"::part(selected-row)"},selectedRowCell:{selector:()=>"::part(selected-row-cell)"},sortIndicators:{selector:()=>"vaadin-grid-sorter::part(indicators)"},activeSortIndicator:{selector:()=>"vaadin-grid-sorter[direction]"},rowSeparator:{selector:()=>"vaadin-grid::part(body-cell)"},resizeHandle:{selector:()=>"::part(resize-handle)"},toggleDetailsPanelButton:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button"},toggleDetailsPanelButtonOpened:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button.opened"},toggleDetailsPanelButtonClosed:{selector:()=>"vaadin-grid vaadin-icon.toggle-details-button.closed"},detailsPanel:{selector:()=>"vaadin-grid::part(details-cell)"},detailsPanelLabels:{selector:()=>"vaadin-grid .row-details__label"},detailsPanelContent:{selector:()=>"vaadin-grid .row-details"}},ic=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostHeight:{selector:()=>":host",property:"height"},hostMinHeight:{selector:()=>":host",property:"min-height"},fontFamily:[{...Yd},{...Pd}],fontSize:[{...Yd},{...Pd}],fontWeight:{...Pd},valueTextColor:{...Pd,property:"color"},backgroundColor:[{...Ud,property:"background-color"},{...Pd,property:"background-color"}],sortIndicatorsColor:{...Zd,property:"color"},activeSortIndicator:{...Fd,property:"color"},borderColor:{...Ud,property:"border-color"},borderWidth:{...Ud,property:"border-width"},borderStyle:{...Ud,property:"border-style"},borderRadius:{...Ud,property:"border-radius"},selectedBackgroundColor:[{...Gd,property:"background-color"},{...tc,property:"background-color"}],headerRowTextColor:{...Qd,property:"color"},separatorColor:[{...Bd,property:"border-bottom-color"},{...Hd,property:"border-top-color"}],resizeHandleColor:{...Jd,property:"background-color"},hostDirection:{...Ud,property:"direction",fallback:"ltr"},toggleDetailsPanelButtonSize:[{...$d,property:"width"},{...$d,property:"height"}],toggleDetailsPanelButtonOpenedColor:{...qd,property:"color"},toggleDetailsPanelButtonClosedColor:{..._d,property:"color"},toggleDetailsPanelButtonCursor:{...$d,property:"cursor"},detailsPanelBackgroundColor:{...Xd,property:"background-color"},detailsPanelBorderTopColor:{...Xd,property:"border-top-color"},detailsPanelLabelsColor:{...Kd,property:"color"},detailsPanelLabelsFontSize:{...Kd,property:"font-size"},detailsPanelItemsGap:{...ec,property:"grid-gap"},detailsPanelPadding:{...ec,property:"padding"}}}),$e,qe,t=>class extends t{#Kt;init(){super.init?.(),this.handleColumns(),this.forwardSelectedItemsChange(),this.baseElement._mapSorters=()=>{};const t=this.baseElement._updateDetailsCellHeight;this.baseElement._updateDetailsCellHeight=e=>{e&&t.call(this.baseElement,e)},this.baseElement.rowDetailsRenderer=this.#te.bind(this),this.baseElement.addEventListener("wheel",t=>{t.target.closest("descope-code-snippet")&&t.stopPropagation()},!0)}#te=async(t,e,i)=>{t.addEventListener("mousedown",t=>t.stopImmediatePropagation(),!0);const o=this.getRowDetailsTemplate(i.item);t.innerHTML="",t.append(o.content.cloneNode(!0))};getRowDetailsTemplate(t){const e=this.#Kt.reduce((t,{path:e,header:i})=>e&&i?{...t,[e]:i}:t,{}),i=this.rowDetailsRenderer?.(t,e)??((t,e)=>`\n <div class="row-details">\n ${Object.entries(t).map(([t,i])=>{const o=fd(e[t]||t.replace(/([A-Z])/g," $1").trim().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "));return(t=>{const e=Ed(t);return"object"===e||"xml"===e||"array"===e&&t.some(t=>"object"===Ed(t))})(i)?`<details class="row-details__item">\n <summary class="row-details__label">${o}</summary>\n ${Wd(i)}\n </details>`:`<div class="row-details__item">\n <div class="row-details__label">${o}</div>\n ${Wd(i)}\n </div>`}).join("\n")}\n</div>\n `)(t,e);switch(!0){case i instanceof HTMLTemplateElement:return i;case"string"==typeof i:return Object.assign(document.createElement("template"),{innerHTML:i});default:throw new Error("rowDetailsRenderer should return a string or a template")}}forwardSelectedItemsChange(){this.baseElement.addEventListener("selected-items-changed",t=>{this.dispatchEvent(new CustomEvent("selected-items-changed",{bubbles:!0,composed:!0,detail:t.detail}))})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"columns"===t&&this.setColumnsDataFromAttr()}handleColumns(){this.columnsAttr?this.setColumnsDataFromAttr():this.children.length&&this.setColumnsFromChildren()}setColumnsFromChildren(){this.#Kt=Array.from(this.children).map(t=>({path:t.getAttribute("path"),header:t.getAttribute("header"),type:t.localName.match("^descope-grid-(\\w+)-column$")?.[1]||"text",attrs:["frozen","resizable","auto-width","status"].reduce((e,i)=>{const o=t.getAttribute(i);return o&&(e[i]=o),e},{})}))}get columnsAttr(){return this.getAttribute("columns")}setColumnsDataFromAttr(){try{const t=JSON.parse(this.columnsAttr);Ld(t)&&(this.columns=t)}catch(t){console.error('could not parse data string from attribute "columns" -',t.message)}}#ee=({path:t,header:e,type:i,attrs:o})=>{const n=`descope-grid-${i}-column`;return`<${n} header="${e}" path="${t}" ${Object.entries(o).map(([t,e])=>`${t}="${e}"`).join(" ")}></${n}>`};get renderColumn(){return this.#ee}set renderColumn(t){this.#ee=t,this.renderColumns()}getColumnsTemplate(){return this.#Kt?.reduce?.((t,e)=>t+(this.renderColumn?.(e||{})||""),"")}reassignRowDetailsRenderer(){this.baseElement.rowDetailsRenderer=null,setTimeout(()=>{this.baseElement.rowDetailsRenderer=this.#te.bind(this)},0)}renderColumns(){const t=this.getColumnsTemplate();t&&(this.reassignRowDetailsRenderer(),this.innerHTML=t)}get grid(){return this.shadowRoot.querySelector("vaadin-grid")}get data(){return this.grid.items}set data(t){if(Ld(t)&&this.grid.items!==t&&(this.grid.items=t,this.grid.selectedItems)){const t=new Set(this.grid.items.map(t=>t[this.uniqueColumnId]??t)),e=this.grid.selectedItems.filter(e=>t.has(e[this.uniqueColumnId]??e));this.grid.selectedItems.length!==e.length&&(this.grid.selectedItems=e)}}get columns(){return this.#Kt}set columns(t){this.#Kt=t,this.renderColumns()}get paths(){return this.columns.map(t=>t.path)}get uniqueColumnId(){return this.getAttribute("unique-column-id")}})(oi({delegatesFocus:!1,slots:[""],wrappedEleName:"vaadin-grid",style:()=>`\n /*css*/\n vaadin-grid {\n overflow: hidden;\n height: 100%;\n min-height: 300px;\n }\n vaadin-grid-cell-content {\n display: flex;\n }\n vaadin-grid::part(selected-row-cell) {\n background-image: none;\n box-shadow: none;\n background-color: inherit;\n }\n vaadin-grid::part(details-cell) {\n border-top-style: dashed;\n border-top-width: 1px;\n }\n vaadin-grid .row-details {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(max(200px, calc(100%/4 - var(${ic.cssVarList.detailsPanelItemsGap}))), 1fr));\n width: 100%;\n }\n vaadin-grid .row-details__item:has(.row-details__value.code) {\n grid-column: 1 / -1;\n order: 2;\n }\n vaadin-grid details.row-details__item {\n padding: 0;\n }\n vaadin-grid details.row-details__item > summary.row-details__label {\n cursor: pointer;\n list-style: revert;\n display: revert;\n }\n vaadin-grid .row-details__value.text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n }\n vaadin-grid .row-details__value.code {\n margin-top: 5px;\n overflow-x: auto;\n font-size: 0.85em;\n }\n vaadin-grid vaadin-icon.toggle-details-button {\n margin: auto;\n }\n /*!css*/\n\t\t`,excludeAttrsSync:["columns","tabindex","style"],componentName:Rd}));customElements.define(Rd,ic);const oc=ne("modal"),nc=["opened"],rc=qt(Je({mappings:{overlayBackdropColor:{property:()=>rc.cssVarList.overlay.backdropColor},overlayBackgroundColor:{property:()=>rc.cssVarList.overlay.backgroundColor},overlayShadow:{property:()=>rc.cssVarList.overlay.shadow},overlayWidth:{property:()=>rc.cssVarList.overlay.width},overlayBorderWidth:{property:()=>rc.cssVarList.overlay.borderWidth},overlayBorderStyle:{property:()=>rc.cssVarList.overlay.borderStyle},overlayBorderColor:{property:()=>rc.cssVarList.overlay.borderColor},overlayBorderRadius:{property:()=>rc.cssVarList.overlay.borderRadius}}}),ui({name:"overlay",selector:"",mappings:{hostDisplay:{selector:()=>":host(.descope-modal)",property:"display",important:!0},backgroundColor:[{selector:()=>"::part(content)",property:"background-color"},{selector:()=>"::part(overlay)",property:"background-color"}],backdropColor:{selector:()=>"::part(backdrop)",property:"background-color"},borderStyle:{selector:()=>"::part(content)",property:"border-style"},borderWidth:{selector:()=>"::part(content)",property:"border-width"},borderColor:{selector:()=>"::part(content)",property:"border-color"},borderRadius:{selector:()=>"::part(content)",property:"border-radius "},width:{selector:()=>"::part(overlay)",property:"width"},shadow:{selector:()=>"::part(overlay)",property:"box-shadow"}},forward:{include:!1,attributes:["opened","style"]}}),$e,qe,t=>class extends t{static get observedAttributes(){return[].concat(t.observedAttributes||[],nc)}get opened(){return"true"===this.getAttribute("opened")}get closeOnOutsideClick(){return"true"===this.getAttribute("close-on-outside-click")}handleOpened(){this.opened?this.style.display="":this.style.display="none"}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"opened"===t&&this.handleOpened()}init(){super.init?.(),this.style.display="none",setTimeout(()=>{this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay").appendChild(document.createElement("slot")),this.#it(),se(this,this.baseElement,{includeAttrs:["opened"]}),this.handleOpened()})}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-dialog-overlay");t._attachOverlay=()=>{t.bringToFront(),O("\n :host {\n display: flex!important;\n }\n ",this.baseElement)},t._detachOverlay=()=>{this.baseElement.style.display="none"},t._enterModalState=()=>{},t.close=()=>!1,t.addEventListener("click",e=>{if(!this.closeOnOutsideClick||!this.opened)return;const i=t.shadowRoot?.querySelector('[part="overlay"]');i&&!e.composedPath().includes(i)&&this.removeAttribute("opened")})}})(oi({slots:[""],wrappedEleName:"vaadin-dialog",style:()=>"\n vaaadin-dialog {\n display: flex!important;\n }\n ",excludeAttrsSync:["tabindex","opened","style"],componentName:oc}));customElements.define(oc,rc);const sc=window.customElements.get("vaadin-notification-container");if(!sc)throw new Error("could not get vaadin-notification-container class");customElements.define(ne("notification-container"),class extends sc{});const ac=ne("notification-card"),lc={content:()=>"vaadin-notification-card::part(content)",overlay:()=>"vaadin-notification-card::part(overlay)"},dc=qt(Je({mappings:{hostMinWidth:{selector:lc.content,property:"min-width"},fontFamily:{},fontSize:{},backgroundColor:{selector:lc.content},textColor:{property:"color"},boxShadow:{},borderWidth:{selector:lc.content,property:"border-width"},borderColor:{selector:lc.content,property:"border-color"},borderStyle:{selector:lc.content,property:"border-style"},borderRadius:[{selector:lc.content,property:"border-radius"},{selector:lc.overlay,property:"border-radius"}],verticalPadding:[{selector:lc.content,property:"padding-top"},{selector:lc.content,property:"padding-bottom"}],horizontalPadding:[{selector:lc.content,property:"padding-right"},{selector:lc.content,property:"padding-left"}]}}),t=>class extends t{close(){this.baseElement.addEventListener("animationend",()=>{this.remove(),this.dispatchEvent(new Event("card-closed"))}),this.setAttribute("opened","false")}constructor(){super(),this.baseElement.innerHTML='\n <div part="root">\n <div part="content">\n <slot></slot>\n </div>\n <div part="close">\n <slot name="close"></slot>\n </div>\n </div>\n ',this.closeEle=this.shadowRoot.querySelector('[part="close"]')}init(){super.init?.(),this.closeEle.onclick=()=>{this.close()}}})(oi({slots:[],wrappedEleName:"vaadin-notification-card",style:()=>'\n vaadin-notification-card {\n box-shadow: none;\n }\n ::part(overlay) {\n box-shadow: none;\n background: none;\n }\n\n [part="close"] {\n cursor: pointer;\n display: flex;\n }\n\n [part="content"] {\n display: flex;\n align-items: center;\n flex-grow: 1;\n }\n\n [part="root"] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n ',excludeAttrsSync:["tabindex","style"],componentName:ac}));customElements.define(ac,dc);const cc=ne("notification"),uc=qt($e,qe,Xe,t=>class e extends t{#ie;constructor(){super();const t=this;Object.defineProperty(this.baseElement,"_container",{get:()=>(e._container||(e._container=document.createElement("descope-notification-container"),e._container.style.position="absolute",document.body.appendChild(e._container)),e._container.isConnected||setTimeout(()=>t.parentNode.appendChild(e._container)),e._container)}),Object.defineProperty(this.baseElement,"_card",{get:()=>t.#ie}),this.baseElement._removeNotificationCard=this.close.bind(this)}close(){this.#ie.close()}init(){super.init?.(),this.createCard(),se(this,this.#ie),oe(this.#ie,this,{includeAttrs:["opened"]}),this.baseElement.renderer=t=>{Array.from(this.childNodes).forEach(e=>t.appendChild(e))}}get isContainerEmpty(){return!e._container.children.length}removeContainer(){e._container.remove()}removeNotification(){this.remove(),this.isContainerEmpty&&this.removeContainer()}createCard(){this.#ie=document.createElement("descope-notification-card"),this.#ie.addEventListener("card-closed",this.removeNotification.bind(this))}})(oi({wrappedEleName:"vaadin-notification",excludeAttrsSync:["tabindex","style"],componentName:cc}));customElements.define(cc,uc);const pc=ne("mappings-field-internal"),hc=Mi({componentName:pc,baseSelector:"div"}),gc=ne("mappings-field"),{host:Mc,helperText:mc,errorMessage:yc,mappingItem:bc,labels:Nc,labelsText:Ic,valueLabel:xc,attrLabel:jc,separator:Tc,labelsContainer:Dc}={host:{selector:()=>":host"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},mappingItem:{selector:"descope-mapping-item::part(wrapper)"},labels:{selector:'descope-mappings-field-internal [part="labels"] descope-text'},labelsText:{selector:'descope-mappings-field-internal [part="labels"] descope-text::part(text-wrapper)'},valueLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="value-label"]'},attrLabel:{selector:'descope-mappings-field-internal [part="labels"] [part="attr-label"]'},separator:{selector:"descope-mapping-item::part(separator)"},labelsContainer:{selector:'descope-mappings-field-internal [part="labels"]'}},vc=qt(Je({mappings:{hostWidth:{...Mc,property:"width"},hostDirection:{...Mc,property:"direction"},fontSize:[{},Mc,{...Tc,property:"margin-top"}],fontFamily:[mc,yc,Nc],separatorFontSize:{...Tc,property:"font-size"},labelsFontSize:{...Ic,property:"font-size"},labelsLineHeight:[{...Ic,property:"line-height"},{...Nc,property:"line-height"}],labelTextColor:[{...Nc,property:ki.cssVarList.textColor},{...Tc,property:"color"}],itemMarginBottom:{...bc,property:"margin-bottom"},valueLabelMinWidth:{...xc,property:"min-width"},attrLabelMinWidth:{...jc,property:"min-width"},labelsMarginBottom:{...Dc,property:"margin-bottom"},separatorWidth:{},removeButtonWidth:{}}}),$e,ci({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),qe,t=>class extends t{get defaultValues(){const t=this.getAttribute("default-values");if(t)try{return JSON.parse(t)}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}setDefaultValues(){const t=this.defaultValues;Object.keys(t).length>0&&(this.inputElement.value=t)}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${pc}\n tabindex="-1"\n ></${pc}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(pc),se(this,this.inputElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","default-values","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),oe(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValues()}})(oi({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-mappings-field-internal [part="labels"] {\n display: none;\n grid-template-columns: 1fr var(${vc.cssVarList.separatorWidth}) 1fr var(${vc.cssVarList.removeButtonWidth});\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"],\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n ${ki.cssVarList.fontWeight}: 500;\n }\n\n descope-mappings-field-internal [part="labels"] [part="value-label"] {\n grid-column: 1 / span 1;\n }\n\n descope-mappings-field-internal [part="labels"] [part="attr-label"] {\n grid-column: 3 / span 1;\n }\n\n descope-mapping-item::part(wrapper) {\n display: grid;\n grid-template-columns: 1fr var(${vc.cssVarList.separatorWidth}) 1fr var(${vc.cssVarList.removeButtonWidth});\n }\n `,excludeAttrsSync:["tabindex","label-value","label-attr","button-label","options","error-message","style"],componentName:gc}));customElements.define(pc,class extends hc{#oe;static get observedAttributes(){return[].concat(hc.observedAttributes||[],["label-value","label-attr","button-label","invalid","readonly","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"])}isValidDataType(t){try{return t.every(t=>"object"==typeof t&&!Array.isArray(t)&&1===Object.getOwnPropertyNames(t).length&&"string"==typeof t[Object.keys(t)[0]]&&""!==t[Object.keys(t)[0]].trim())}catch(t){return!1}}get labelValue(){return this.getAttribute("label-value")||"Value"}get labelAttr(){return this.getAttribute("label-attr")||"Attribute"}get buttonLabel(){return this.getAttribute("button-label")||"Add mapping"}get options(){return this.getAttribute("options")||[]}addNewMappingItem(t){const e=document.createElement("descope-mapping-item");return e.setAttribute("bordered","true"),this.mappingsContainerEle.appendChild(e),se(this,e,{includeAttrs:["size","full-width","separator","options","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),setTimeout(()=>{this.setCustomValidity(""),e.addEventListener("mapping-item-removed",()=>{e===this.#oe&&(this.resetInvalidIndication(),this.#oe=void 0),e.remove(),this.setCustomValidity("")}),this.dispatchEvent(new CustomEvent("mapping-item-added",{bubbles:!0,composed:!0})),t&&e.focus()},0),e}get items(){return Array.from(this.mappingsContainerEle.querySelectorAll("descope-mapping-item"))}get value(){return this.items.reduce((t,e)=>e.value?[...t,e.value]:t,[])}set value(t){if(!this.isValidDataType(t))return void console.error("received invalid value to set - should be an array of objects with one key-value pair");const e=this.items;if(e.length>t.length)for(let i=t.length;i<e.length;i++)this.mappingsContainerEle.removeChild(e[i]);t.forEach((t,i)=>{const o=e[i];if(o)o.value=t;else{const e=this.addNewMappingItem(!1);setTimeout(()=>{e.value=t},0)}})}constructor(){super(),this.innerHTML='\n <div class="labels-container" part="labels"></div>\n <div class="mappings-container"></div>\n <div class="button-container"></div>\n ',this.labelsEle=this.querySelector(".labels-container"),this.mappingsContainerEle=this.querySelector(".mappings-container"),this.buttonContainer=this.querySelector(".button-container")}initLabels(){this.labelsEle.innerHTML=`\n <descope-text variant="body2" part="value-label">${this.labelValue}</descope-text>\n <descope-text variant="body2" part="attr-label">${this.labelAttr}</descope-text>\n `}initAddButton(){this.buttonContainer.innerHTML=`\n <descope-button variant="link" mode="primary" disabled="${this.isDisabled}">\n <vaadin-icon icon="vaadin:plus"></vaadin-icon>\n ${this.buttonLabel}\n </descope-button>\n `;const t=this.querySelector("descope-button");t.onclick=()=>{this.addNewMappingItem(!0)},se(this,t,{includeAttrs:["disabled"]})}#ne(){this.labelsEle.style.display=this.items.length?"grid":"none"}init(){this.addEventListener("focus",t=>{t.isTrusted&&(this.#oe||this.items[0]||this.querySelector("descope-button")).focus()}),super.init?.(),this.initLabels(),this.initAddButton(),this.addEventListener("input",()=>{this.mappingsContainerEle.contains(this.#oe)&&this.#oe?.checkValidity()&&(this.resetInvalidIndication(),this.#oe.removeAttribute("invalid"),this.#oe=void 0)}),ee(this.mappingsContainerEle,this.#ne.bind(this))}resetInvalidIndication(){this.removeAttribute("invalid")}getValidity(){const t=this.items.find(t=>!t.checkValidity());return t?t.validity:{}}#re(t){t&&(this.#oe=this.items.find(t=>!t.checkValidity()),this.#oe?.reportValidity(),this.#oe?.setAttribute("invalid","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"label-value"!==t&&"label-attr"!==t||this.initLabels(),"button-label"===t&&this.initAddButton(),"invalid"===t&&this.#re("true"===i),"readonly"===t&&this.toggleAttribute("inert","true"===i)}});const zc=ne("mapping-item"),Cc=["size","bordered","readonly","full-width","disabled","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Sc=Mi({componentName:zc,baseSelector:"div"});customElements.define(zc,class extends Sc{static get observedAttributes(){return[].concat(Sc.observedAttributes||[],Cc,["separator","options","invalid","disabled"])}get separator(){return this.getAttribute("separator")||"map to"}get value(){const t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{[t]:e}:null}set value(t){if(1!==Object.entries(t).length)return void console.error("descope-mapping item expected expects only one key-value pair in the value but received: ",t);const[e,i]=Object.entries(t)[0];this.valueInput.value=i,this.attributeInput.value=e,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper" part="wrapper">\n <descope-text-field required="true"></descope-text-field>\n <div class="separator" part="separator">${this.separator}</div>\n <descope-combo-box\n item-label-path="data-name"\n item-value-path="data-id"\n required="true"\n >\n </descope-combo-box>\n <descope-button variant="link" mode="primary">\n <vaadin-icon icon="vaadin:minus"></vaadin-icon>\n </descope-button>\n </div>\n\t`,O("\n .wrapper {\n display: flex;\n }\n .separator {\n text-align: center;\n flex-shrink: 0;\n }\n ",this),this.valueInput=this.shadowRoot.querySelector("descope-text-field"),this.attributeInput=this.shadowRoot.querySelector("descope-combo-box"),this.inputs=[this.valueInput,this.attributeInput],this.removeButton=this.shadowRoot.querySelector("descope-button"),se(this,this.valueInput,{includeAttrs:Cc}),se(this,this.attributeInput,{includeAttrs:[...Cc,"options"],mapAttrs:{options:"data"}}),se(this,this.removeButton,{includeAttrs:["disabled"]})}initRemoveButton(){this.removeButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("mapping-item-removed",{bubbles:!0,composed:!0})))}init(){super.init?.(),this.initRemoveButton()}getValidity(){const t=this.attributeInput.value,e=this.valueInput.value;return t&&e?{}:{badInput:!0}}reportValidity(){this.inputs.forEach(t=>t.reportValidity())}focus(){(this.checkValidity()||!this.valueInput.checkValidity()?this.valueInput:this.attributeInput).focus()}handleSeparatorChange(){this.shadowRoot.querySelector(".separator").textContent=this.separator}#se(t){"true"===t&&(this.valueInput.value||(this.valueInput.setAttribute("invalid","true"),this.valueInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)),this.attributeInput.value||(this.attributeInput.setAttribute("invalid","true"),this.attributeInput.setAttribute("error-message",this.defaultErrorMsgValueMissing)))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"separator"===t&&this.handleSeparatorChange(),"invalid"===t&&this.#se(i)}}),customElements.define(gc,vc);const wc=f("badge");class Ac extends(jt({componentName:wc,baseSelector:":host > div"})){static get observedAttributes(){return["data-attachment-size","shrink-to-indicator-threshold"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n\t\t<div>\n <slot></slot>\n\t\t</div>\n\t\t",O("\n :host {\n display: inline-flex;\n }\n :host > div {\n position: relative;\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ",this)}get shrinkToIndicatorThreshold(){return this.getAttribute("shrink-to-indicator-threshold")||65}#ae(t){this.toggleAttribute("shrink-to-indicator",parseFloat(t)<this.shrinkToIndicatorThreshold)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"data-attachment-size"===t&&e!==i&&this.#ae(i)}}const Lc=T(Mt({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostHeight:[{selector:()=>":host",property:"height"}],hostDirection:{property:"direction"},fontFamily:{},fontSize:{},fontWeight:{},lineHeight:{},textTransform:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],borderWidth:{},borderStyle:{},borderColor:{},borderRadius:{},backgroundColor:{},textColor:{property:"color"},textAlign:{},boxShadow:{},textIndent:{}}}),mt,yt)(Ac);var fc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNOSAxNi4xNyA0LjgzIDEybC0xLjQyIDEuNDFMOSAxOSAyMSA3bC0xLjQxLTEuNDF6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==";const Ec=ne("user-attribute");class kc extends(ei({componentName:Ec,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="root">\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>\n <div class="content-wrapper">\n <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>\n <div class="btn-wrapper">\n <descope-badge mode="default" bordered="true" size="xs"></descope-badge>\n <descope-button size="sm" data-id="copy-btn" variant="link" mode="primary">\n <slot name="copy-icon"></slot>\n <descope-icon class="check-icon" src="${fc}" src-dark="${fc}"></descope-icon>\n </descope-button>\n <descope-button size="sm" data-id="delete-btn" variant="link" mode="primary">\n <slot name="delete-icon"></slot>\n </descope-button>\n <descope-button size="sm" data-id="edit-btn" variant="link" mode="primary">\n <slot name="edit-icon"></slot>\n </descope-button>\n </div>\n </div>\n </div>\n\t\t`,O(`\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n container-type: inline-size;\n\t\t\t\t}\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n ::slotted(*) {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n @container (max-width: 529px) {\n .root {\n flex-wrap: wrap;\n }\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n slot[name="edit-icon"],\n slot[name="delete-icon"],\n slot[name="copy-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n }\n\n descope-button[data-id="copy-btn"].hidden {\n display: none;\n }\n\n descope-button[data-id="copy-btn"] .check-icon {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied slot[name="copy-icon"] {\n display: none;\n }\n\n descope-button[data-id="copy-btn"].copied .check-icon {\n display: inline-flex;\n }\n\n .content-wrapper {\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n max-width: 100%;\n min-width: 0;\n }\n\n .label {\n flex-grow: 1;\n width: 100%;\n }\n\n .value {\n flex-grow: 1;\n }\n\n descope-badge {\n margin-inline-end: 10px;\n }\n\n .hidden {\n visibility: hidden;\n width: 0;\n }\n\n descope-text[data-id="label-text"].required:after {\n content: '*';\n color: var(${ki.cssVarList.textColor});\n }\n\n :host([readonly="true"]) descope-button:not([data-id="copy-btn"]) {\n visibility: hidden;\n width: 0;\n }\n `,this),this.copyButton=this.shadowRoot.querySelector('descope-button[data-id="copy-btn"]'),this.deleteButton=this.shadowRoot.querySelector('descope-button[data-id="delete-btn"]'),this.editButton=this.shadowRoot.querySelector('descope-button[data-id="edit-btn"]'),this.badge=this.shadowRoot.querySelector("descope-badge"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]'),this.valueText=this.shadowRoot.querySelector('descope-text[data-id="value-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}onValueOrPlaceholderChange(){const t=this.value||this.placeholder,e=this.value?"primary":"secondary";this.valueText.innerText=t,this.valueText.setAttribute("title",t),this.valueText.setAttribute("mode",e)}onBadgeLabelChange(){this.badgeLabel?(this.badge.innerText=this.badgeLabel,this.badge.style.display=""):this.badge.style.display="none"}onBadgeTooltipTextChange(){this.badge.setAttribute("title",this.badgeTooltipText||this.badgeLabel)}updateButtonLabel(t,e){let i=t.querySelector("span.btn-label");e?(i||(i=document.createElement("span"),i.classList.add("btn-label"),t.appendChild(i)),i.innerText=e):i?.remove()}onIsRequiredChange(){this.labelText.classList.toggle("required",this.isRequired)}get label(){return this.getAttribute("label")||""}get value(){return this.getAttribute("value")||""}get placeholder(){return this.getAttribute("placeholder")||""}get isRequired(){return"true"===this.getAttribute("required")}get badgeLabel(){return this.getAttribute("badge-label")||""}get badgeTooltipText(){return this.getAttribute("badge-tooltip-text")||""}get editButtonLabel(){return this.getAttribute("edit-button-label")||""}get deleteButtonLabel(){return this.getAttribute("delete-button-label")||""}get isDeleteHidden(){return"true"===this.getAttribute("hide-delete")}get isCopyEnabled(){return"true"===this.getAttribute("show-copy")}get copyButtonLabel(){return this.getAttribute("copy-button-label")||""}init(){this.onLabelChange(),this.onValueOrPlaceholderChange(),this.onIsRequiredChange(),this.onBadgeLabelChange(),this.onBadgeTooltipTextChange(),this.updateButtonLabel(this.editButton,this.editButtonLabel),this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel),this.updateButtonLabel(this.copyButton,this.copyButtonLabel),this.handleDeleteButtonVisibility(),this.handleCopyButtonState(),this.deleteButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,composed:!0}))),this.editButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("edit-clicked",{bubbles:!0,composed:!0}))),this.copyButton.addEventListener("click",()=>this.#Xt()),this.setDefaultChildren()}#Xt(){this.value&&!this.isDraggable&&navigator.clipboard&&navigator.clipboard.writeText(this.value).then(()=>{this.copyButton.classList.add("copied"),setTimeout(()=>this.copyButton.classList.remove("copied"),2e3)}).catch(()=>{})}handleCopyButtonState(){this.copyButton.classList.toggle("hidden",!this.isCopyEnabled),this.value?this.copyButton.removeAttribute("disabled"):this.copyButton.setAttribute("disabled","true")}#le(t,e){const i=document.createElement("descope-icon");i.setAttribute("src",t),i.setAttribute("src-dark",t),i.setAttribute("slot",e),this.appendChild(i)}setDefaultChildren(){this.querySelector('[slot="delete-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==","delete-icon"),this.querySelector('[slot="edit-icon"]')||this.#le("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTAuMDAwMiAwLjk5MjE0OUMxMC4wMDAyIDEuMDE2MTUgMTAuMDAwMiAxLjAxNjE1IDEwLjAwMDIgMS4wMTYxNUw4LjIyNDE5IDMuMDA4MTVIMi45OTIxOUMyLjQ2NDE5IDMuMDA4MTUgMi4wMDgxOSAzLjQ0MDE1IDIuMDA4MTkgMy45OTIxNVYxMi4wMDgyQzIuMDA4MTkgMTIuNTM2MiAyLjQ0MDE5IDEyLjk5MjIgMi45OTIxOSAxMi45OTIySDUuNTM2MTlDNS44NDgxOSAxMy4wNDAyIDYuMTYwMTkgMTMuMDQwMiA2LjQ3MjE5IDEyLjk5MjJIMTEuMDA4MkMxMS41MzYyIDEyLjk5MjIgMTEuOTkyMiAxMi41NjAyIDExLjk5MjIgMTIuMDA4MlY3Ljc4NDE2TDEzLjkzNjIgNS42MjQxNUwxNC4wMDgyIDUuNjcyMTVWMTEuOTg0M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Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTYgMUg0Yy0xLjEgMC0yIC45LTIgMnYxNGgyVjNoMTJWMXptMyA0SDhjLTEuMSAwLTIgLjktMiAydjE0YzAgMS4xLjkgMiAyIDJoMTFjMS4xIDAgMi0uOSAyLTJWN2MwLTEuMS0uOS0yLTItMnptMCAxNkg4VjdoMTF2MTR6IiBmaWxsPSJjdXJyZW50Y29sb3IiLz4KPC9zdmc+Cg==","copy-icon")}static get observedAttributes(){return["label","value","placeholder","required","badge-label","badge-tooltip-text","edit-button-label","delete-button-label","copy-button-label","hide-delete","show-copy"].concat(super.observedAttributes)}handleDeleteButtonVisibility(){this.deleteButton.classList.toggle("hidden",this.isRequired||!this.value||this.isDeleteHidden)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"value"===t||"placeholder"===t?this.onValueOrPlaceholderChange():"required"===t?this.onIsRequiredChange():"badge-label"===t?this.onBadgeLabelChange():"badge-tooltip-text"===t?this.onBadgeTooltipTextChange():"edit-button-label"===t?this.updateButtonLabel(this.editButton,this.editButtonLabel):"delete-button-label"===t?this.updateButtonLabel(this.deleteButton,this.deleteButtonLabel):"copy-button-label"===t?this.updateButtonLabel(this.copyButton,this.copyButtonLabel):"show-copy"===t&&this.setDefaultCopyIcon(),"value"!==t&&"required"!==t&&"hide-delete"!==t||this.handleDeleteButtonVisibility(),"value"!==t&&"show-copy"!==t||this.handleCopyButtonState())}}const{host:Oc,textFields:Vc,buttons:Wc,badge:Rc,labelText:Uc,contentWrapper:Yc}={host:{selector:()=>":host"},textFields:{selector:"descope-text"},labelText:{selector:'descope-text[data-id="label-text"]'},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},contentWrapper:{selector:" .content-wrapper"}},Qc=qt(Je({mappings:{hostWidth:{...Oc,property:"width"},hostMinWidth:{...Oc,property:"min-width"},hostMaxWidth:{...Oc,property:"max-width"},hostDirection:[{...Oc,property:"direction"},{...Vc,property:ki.cssVarList.hostDirection},{...Wc,property:Uo.cssVarList.hostDirection},{...Rc,property:Lc.cssVarList.hostDirection}],labelMinWidth:{...Uc,property:"min-width"},contentMinWidth:{...Yc,property:"min-width"},badgeMaxWidth:{...Rc,property:"max-width"},itemsGap:[{property:"gap"},{...Yc,property:"gap"}],iconColor:[{selector:()=>"::slotted(*)",property:Eo.cssVarList.fill},{selector:()=>".check-icon",property:Eo.cssVarList.fill}]}}),$e,qe)(kc);customElements.define(wc,Lc),customElements.define(Ec,Qc);const Pc=ne("user-auth-method");class Bc extends(ei({componentName:Pc,baseSelector:":host > .root"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="root">\n <div class="text-wrapper">\n <slot name="method-icon"></slot>\n <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n\n <div class="btn-wrapper">\n <descope-button class="btn unfulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n <descope-button class="btn fulfilled hidden" size="sm" variant="link" mode="primary">\n <slot name="fulfilled-button-icon"></slot>\n </descope-button>\n <div class="status-indicator hidden">\n <vaadin-icon src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg==></vaadin-icon>\n </div>\n <descope-button class="hidden-btn" size="sm" variant="link" mode="primary"></descope-button>\n </div>\n </div>\n\t\t',O('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n vaadin-icon {\n color: currentcolor;\n }\n\n .root {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n }\n\n .btn-wrapper {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-grow: 0;\n }\n\n .text-wrapper {\n display: flex;\n align-items: center;\n flex-grow: 1;\n min-width: 0;\n }\n\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: initial;\n }\n\n descope-text {\n display: inline-flex;\n min-width: 0;\n }\n\n .status-indicator {\n width: 1em;\n height: 1em;\n display: flex;\n align-items: center;\n padding-inline-end: 1em;\n }\n\n .hidden {\n display: none;\n }\n\n .hidden-btn {\n width: 0;\n overflow: hidden;\n opacity: 0;\n pointer-events: none;\n }\n\n slot[name="method-icon"]:not(:empty) {\n display: inline-flex;\n align-items: center;\n }\n ',this),this.unfulfilledButton=this.shadowRoot.querySelector(".btn.unfulfilled"),this.fulfilledButton=this.shadowRoot.querySelector(".btn.fulfilled"),this.statusIndicator=this.shadowRoot.querySelector(".status-indicator"),this.labelText=this.shadowRoot.querySelector('descope-text[data-id="label-text"]')}onLabelChange(){this.labelText.innerText=this.label,this.labelText.setAttribute("title",this.label)}updateButtonLabel(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.innerText=e):i&&t.removeChild(i)}onFulfilledChange(){this.isFulfilled?(this.unfulfilledButton.classList.add("hidden"),this.handleFulfilled()):(this.fulfilledButton.classList.add("hidden"),this.handleUnfulfilled())}handleFulfilled(){this.fulfilledButton.classList.toggle("hidden",!this.isFulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isFulfilledEditable)}handleUnfulfilled(){this.unfulfilledButton.classList.toggle("hidden",!this.isUnfulfilledEditable),this.statusIndicator.classList.toggle("hidden",this.isUnfulfilledEditable)}get label(){return this.getAttribute("label")||""}get unfulfilledButtonLabel(){return this.getAttribute("button-label")||""}get fulfilledButtonLabel(){return this.getAttribute("fulfilled-button-label")||""}get isFulfilled(){return"true"===this.getAttribute("fulfilled")}get isFulfilledEditable(){return"true"===this.getAttribute("fulfilled-editable")}get isUnfulfilledEditable(){return"false"!==this.getAttribute("unfulfilled-editable")}init(){this.onLabelChange(),this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel),this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel),this.onFulfilledChange(),this.unfulfilledButton.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0}))),this.fulfilledButton.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("fulfilled-button-clicked",{bubbles:!0,composed:!0}))})}static get observedAttributes(){return["label","fulfilled","button-label","fulfilled-button-label","fulfilled-editable","unfulfilled-editable"].concat(super.observedAttributes)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"fulfilled"===t?this.onFulfilledChange():"button-label"===t?this.updateButtonLabel(this.unfulfilledButton,this.unfulfilledButtonLabel):"fulfilled-button-label"===t?this.updateButtonLabel(this.fulfilledButton,this.fulfilledButtonLabel):"fulfilled-editable"===t&&this.isFulfilled?this.handleFulfilled():"unfulfilled-editable"!==t||this.isFulfilled||this.handleUnfulfilled())}}const{host:Zc,textField:Fc,buttons:Gc,badge:Hc,textWrapper:Jc,methodIconSlot:$c}={host:{selector:()=>":host"},textField:{selector:"descope-text"},buttons:{selector:"descope-button"},badge:{selector:"descope-badge"},textWrapper:{selector:" .text-wrapper"},methodIconSlot:{selector:'slot[name="method-icon"]:not(:empty)'}},qc=qt(Je({mappings:{hostWidth:{...Zc,property:"width"},hostMinWidth:{...Zc,property:"min-width"},hostMaxWidth:{...Zc,property:"max-width"},hostDirection:[{...Zc,property:"direction"},{...Fc,property:ki.cssVarList.hostDirection},{...Gc,property:Uo.cssVarList.hostDirection},{...Hc,property:Lc.cssVarList.hostDirection}],itemsGap:[{property:"gap"},{...Jc,property:"gap"}],iconSize:[{...$c,property:"width"},{...$c,property:"height"}],iconColor:[{selector:()=>"::slotted(*)",property:Eo.cssVarList.fill}]}}),$e,qe)(Bc);customElements.define(Pc,qc);const _c=ne("saml-group-mappings-internal"),Xc=Mi({componentName:_c,baseSelector:""}),Kc=ne("saml-group-mappings"),{host:tu,groupInput:eu,errorMessage:iu}={host:{selector:()=>":host"},groupInput:{selector:"descope-text-field"},errorMessage:{selector:"::part(error-message)"}},ou=qt(Je({mappings:{hostWidth:{...tu,property:"width"},hostDirection:{...tu,property:"direction"},groupNameInputMarginBottom:{...eu,property:"margin-bottom"},errorMessageIcon:{...iu,property:"background-image"},errorMessageIconSize:{...iu,property:"background-size"},errorMessageIconPadding:{...iu,property:"padding-inline-start"},errorMessageIconRepeat:{...iu,property:"background-repeat"},errorMessageIconPosition:{...iu,property:"background-position"},errorMessageFontSize:{...iu,property:"font-size"}}}),$e,ci({proxyProps:["value","selectionStart"],inputEvent:"input",triggerValidationEvents:["mapping-item-added","mapping-item-removed"],proxyParentValidation:!0}),qe,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${_c}\n tabindex="-1"\n ></${_c}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(_c),se(this,this.inputElement,{includeAttrs:["size","full-width","label-group","label-value","label-attr","button-label","separator","options","readonly","disabled"]}),oe(this,this.inputElement,{includeAttrs:["invalid"]})}})(oi({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-text-field {\n width: auto;\n }\n\n descope-mappings-field {\n display: block;\n }\n ",excludeAttrsSync:["tabindex","label-group","label-value","label-attr","button-label","separator","options","error-message","style"],componentName:Kc}));customElements.define(_c,class extends Xc{static get observedAttributes(){return["invalid"].concat(Xc.observedAttributes||[])}constructor(){super(),this.innerHTML='\n <descope-text-field variant="body2" bordered="true"></descope-text-field>\n <descope-mappings-field></descope-mappings-field>\n ',this.groupInputElement=this.querySelector("descope-text-field"),this.mappingsElement=this.querySelector("descope-mappings-field")}resetInvalidIndication(){this.removeAttribute("invalid")}handleMappingsInvalidChange(t){t.includes("invalid")&&(this.mappingsElement.hasAttribute("invalid")||this.resetInvalidIndication())}initFocusHandler(){this.addEventListener("focus",t=>{t.isTrusted&&(this.mappingsElement.checkValidity()?this.groupInputElement:this.mappingsElement).focus()})}init(){this.initFocusHandler(),super.init?.(),se(this,this.groupInputElement,{mapAttrs:{"label-group":"label"},includeAttrs:["size","label-group","readonly","disabled"]}),se(this,this.mappingsElement,{includeAttrs:["size","full-width","label-value","label-attr","button-label","separator","options","readonly","disabled","data-errormessage-pattern-mismatch"]}),te(this.mappingsElement,this.handleMappingsInvalidChange.bind(this),{includeAttrs:["invalid"]})}get value(){return{group:this.groupInputElement.value,mappings:this.mappingsElement.value}}set value(t){t?.group&&"string"==typeof t.group&&(this.groupInputElement.value=t.group),Array.isArray(t?.mappings)&&(this.mappingsElement.value=t.mappings)}getValidity(){return this.groupInputElement.checkValidity()?this.mappingsElement.checkValidity()?{}:this.mappingsElement.validity:this.groupInputElement.validity}#de(t){if(t){if(!this.groupInputElement.checkValidity())return void this.groupInputElement.setAttribute("invalid","true");this.mappingsElement.checkValidity()||this.mappingsElement.setAttribute("invalid","true")}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"invalid"===t&&this.#de("true"===i)}}),customElements.define(Kc,ou);const nu=ne("radio-button"),ru=qt(Je({mappings:{cursor:[{},{selector:"label"}],fontSize:[{selector:"label"},{}],labelTextColor:{selector:"label",property:"color"},fontFamily:{selector:"label"},labelFontWeight:{selector:"label",property:"font-weight"},radioSize:[{selector:"::part(radio)",property:"height"},{selector:"::part(radio)",property:"width"}],radioBackgroundColor:{selector:"::part(radio)",property:"background-color"},radioMargin:{selector:"::part(radio)",property:"margin"},radioCheckedSize:{selector:"::part(radio)::after",property:"border-width"},radioCheckedColor:{selector:"::part(radio)::after",property:"border-color"},radioBorderColor:{selector:"::part(radio)",property:"border-color",fallback:"none"},radioBorderWidth:{selector:"::part(radio)",property:"border-width",fallback:0},radioBorderStyle:{selector:"::part(radio)",property:"border-style",fallback:"solid"}}}),ci({proxyProps:["setSelectionRange"]}),qe,t=>class extends t{constructor(){super(),this.baseElement.checkValidity=()=>{}}init(){this.baseElement.addEventListener("checked-changed",t=>{this.dispatchEvent(new CustomEvent("checked-changed",{detail:t.detail},{bubbles:!0,composed:!0}))}),super.init?.(),ee(this,this.renderLabel.bind(this))}renderLabel(){this.baseElement.setAttribute("label",this.textContent)}get value(){return this.getAttribute("value")}})(oi({slots:[""],wrappedEleName:"vaadin-radio-button",excludeAttrsSync:["tabindex","data","style"],includeForwardProps:["checked","name","disabled"],componentName:nu})),su=ne("radio-group"),au=qt(Je({mappings:{...Kn,buttonsSpacing:{selector:"::part(group-field)",property:"justify-content"},buttonsRowGap:{selector:"::part(group-field)",property:"row-gap"},buttonsColumnGap:{selector:"::part(group-field)",property:"column-gap"},itemsFontFamily:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.fontFamily},itemsLabelFontWeight:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.labelFontWeight},itemsLabelColor:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.labelTextColor},itemsRadioCheckedColor:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.radioCheckedColor},itemsRadioBackgroundColor:{selector:()=>`::slotted(${ru.componentName})`,property:ru.cssVarList.radioBackgroundColor},itemsRadioCheckedBackgroundColor:{selector:()=>`::slotted(${ru.componentName}[checked="true"])`,property:ru.cssVarList.radioBackgroundColor}}}),$e,ci({proxyProps:["setSelectionRange"]}),qe,t=>class extends t{#tt=({value:t,label:e})=>`<descope-radio-button value="${t}">${e}</descope-radio-button>`;#R;constructor(){super(),Object.defineProperty(this.baseElement,"children",{get:()=>this.querySelectorAll(nu)}),this.baseElement.__filterRadioButtons=t=>t.filter(t=>t.localName===nu),this.baseElement.setCustomValidity=()=>{}}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}get size(){return this.getAttribute("size")}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" - ',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get defaultValue(){return this.getAttribute("default-value")}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.#tt?.(e||{})||""),"")}renderItems(){const t=this.getItemsTemplate();t&&(this.innerHTML=t)}init(){super.init?.(),this.inputElement=this.baseElement,this.baseElement.addEventListener("value-changed",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),this.renderItems(),te(this,this.renderItems.bind(this),{includeAttrs:["data"]}),Object.defineProperty(this.baseElement,"validity",{get:()=>({valueMissing:!this.baseElement.checkValidity()})}),se(this,this.baseElement,{includeAttrs:["layout"],mapAttrs:{layout:"theme"}}),setTimeout(()=>{this.defaultValue&&(this.value=this.defaultValue)}),ee(this,({addedNodes:t})=>{t.forEach(t=>{t.setAttribute("size",this.size)})}),te(this,()=>{this.items.forEach(t=>{t.setAttribute("size",this.size)})},{includeAttrs:["size"]})}})(oi({slots:["","prefix"],wrappedEleName:"vaadin-radio-group",style:()=>`\n :host {\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n vaadin-radio-group {\n padding: 0;\n width: 100%;\n }\n\n ${Ce("vaadin-radio-group")}\n `,excludeAttrsSync:["tabindex","size","data","direction","style"],componentName:su,includeForwardProps:["value"]}));customElements.define(nu,ru),customElements.define(su,au);const lu=()=>!0,du=t=>`<pre>${JSON.stringify(t,null,4)}</pre>`,cu=ne("scopes-list"),uu=["checkbox","switch"];class pu extends(ei({componentName:cu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",O("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get isReadOnly(){return"true"===this.getAttribute("readonly")}get size(){return this.getAttribute("size")||"sm"}#ce(){return Array.from(this.shadowRoot.querySelector("div").children)}reportValidity(){this.checkValidity()}checkValidity(){return this.data.every(t=>!t.required||this.value.includes(t.id))}get value(){return this.#ce().filter(t=>t.checked).map(t=>t.getAttribute("data-id"))}set value(t=[]){this.#ce().forEach(e=>{e.checked=t.includes(e.getAttribute("data-id"))})}get variant(){const t=this.getAttribute("variant");return uu.includes(t)?t:uu[0]}}const hu=qt(Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>Ai.componentName,property:Ai.cssVarList.hostDirection},{selector:()=>to.componentName,property:to.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},requiredInputBorderColor:[{selector:`${Ai.componentName}[required="true"]`,property:Ai.cssVarList.inputBorderColor},{selector:`${to.componentName}[required="true"]`,property:to.cssVarList.inputBorderColor}],requiredInputValueTextColor:[{selector:`${Ai.componentName}[required="true"]`,property:Ai.cssVarList.inputValueTextColor},{selector:`${to.componentName}[required="true"]`,property:to.cssVarList.knobColor}]}}),(({itemRenderer:t=du,validateSchema:e=lu,slotName:i,rerenderAttrsList:o=[]})=>n=>class extends n{#R=[];#Y(t){if(!e)return!0;const i=e(t);return!0===i||(console.error("Data schema validation failed",i||""),!1)}#Q(){const t=i?`*[slot="${i}"]`:":not([slot])";this.baseElement.querySelectorAll(t).forEach(t=>t.remove())}#P(){this.#Q(),this.data.forEach((e,i)=>{const o="string"==typeof(n=t(e,i,this))?(t=>{const e=document.createElement("template");return e.innerHTML=t,e})(n).content:n instanceof HTMLTemplateElement?n.content:(console.error("Invalid template",n),null);var n;this.baseElement.appendChild(o?.cloneNode(!0))})}set data(t){this.#Y(t)&&(this.#R=t,this.#P())}get data(){return this.#R}init(){super.init?.(),te(this,t=>{t.includes("data")?this.#B():this.#P()},{includeAttrs:[...o,"data"]})}#B(){const t=this.getAttribute("data");if(t)try{this.data=JSON.parse(t)}catch(e){console.warn("Invalid JSON data",t)}}})({itemRenderer:({id:t,desc:e,required:i=!1},o,n)=>{const r="checkbox"===n.variant?Ai:to,s=document.createElement("template");s.innerHTML=`\n <${r.componentName}\n bordered="true"\n size=${n.size}\n checked="true"\n ></${r.componentName}>\n`;const a=s.content.firstElementChild;return a.setAttribute("label",e),a.setAttribute("data-id",t),a.setAttribute("readonly",`${i||n.isReadOnly}`),a.setAttribute("required",`${i}`),s},rerenderAttrsList:["size","variant"]}),$e,qe)(pu),gu=f("list-item"),Mu=T(Mt({mappings:{verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],backgroundColor:{},borderColor:{},borderStyle:{},borderWidth:{},borderRadius:{},outline:{},cursor:{},gap:{},maxWidth:{selector:()=>":host"},alignItems:{},flexDirection:{},transition:{}}}),mt,yt,t=>class extends t{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <slot></slot>\n ",O("\n slot {\n width: 100%;\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n }\n :host {\n display: block;\n }\n ",this)}},t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mousedown",t=>{t.preventDefault(),this.setAttribute("active","true"),window.addEventListener("mouseup",()=>this.removeAttribute("active"),{once:!0})})}})(jt({componentName:gu,baseSelector:"slot"}));customElements.define(gu,Mu);const mu=f("list");class yu extends(jt({componentName:mu,baseSelector:".wrapper"})){static get observedAttributes(){return["variant","readonly"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <slot></slot>\n <slot name="empty-state">\n No item...\n </slot>\n </div>\n\t',O('\n .wrapper {\n overflow: auto;\n display: grid;\n max-height: 100%;\n width: 100%;\n }\n\n :host {\n display: inline-flex;\n width: 100%;\n }\n slot[name="empty-state"] {\n justify-content: center;\n align-items: center;\n display: flex;\n flex-grow: 1;\n }\n\n :host slot[name="empty-state"] {\n display: none;\n }\n :host([empty]) slot[name="empty-state"] {\n display: flex;\n }\n ::slotted(:not([slot])) {\n width: 100%;\n }\n ',this)}get items(){return this.shadowRoot.querySelector("slot").assignedElements()}#ue(){0===this.items.length?this.setAttribute("empty","true"):this.removeAttribute("empty")}get variant(){return this.getAttribute("variant")||"list"}#pe(){this.items.forEach(t=>{let e=t;e.localName!==Mu.componentName&&(e=t.querySelector(Mu.componentName));const i="tiles"===this.variant?"tile":"row";e?.setAttribute("variant",i)})}init(){super.init?.(),S(this,()=>{this.#ue(),this.#pe(),this.#he()})}get isReadOnly(){return"true"===this.getAttribute("readonly")}#he(){this.items.forEach(t=>{this.isReadOnly?t.setAttribute("inert",""):t.removeAttribute("inert")})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("variant"===t?this.#pe():"readonly"===t&&this.#he())}}const bu=T(Mt({mappings:{hostWidth:{selector:()=>":host",property:"width"},maxHeight:{selector:()=>":host"},minHeight:{},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],hostDirection:{selector:()=>":host",property:"direction"},fontFamily:{},gap:{},backgroundColor:{},borderRadius:{},borderColor:{},borderStyle:{},borderWidth:{},boxShadow:{},gridTemplateColumns:{},maxItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"max-width"},minItemsWidth:{selector:()=>"::slotted(:not([slot]))",property:"min-width"},maxRowItems:{property:"max-row-items"},itemsHorizontalAlign:{selector:()=>"::slotted(*)",property:"justify-self"},emptyStateTextColor:{selector:()=>'slot[name="empty-state"]',property:"color"},emptyStateTextFontFamily:{selector:()=>'slot[name="empty-state"]',property:"font-family"},emptyStateVerticalPadding:[{selector:()=>'slot[name="empty-state"]',property:"padding-top"},{selector:()=>'slot[name="empty-state"]',property:"padding-bottom"}]}}),mt,yt)(yu);customElements.define(mu,bu),customElements.define(cu,hu);const Nu=ne("third-party-app-logo");class Iu extends(ei({componentName:Nu,baseSelector:".wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n\t\t\t<div class="wrapper">\n <div class="third-party-app-logo-wrapper">\n <div class="third-party-app-logo"></div>\n </div>\n <div class="arrows">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMTQ0OTIgMTUuNjQ1TDcuNDk5OTIgMTRMMi44MzMyNSAxOC42NjY3TDcuNDk5OTIgMjMuMzMzM0w5LjE0NDkyIDIxLjY4ODNMNy4zMDE1OSAxOS44MzMzSDI0Ljk5OTlWMTcuNUg3LjMwMTU5TDkuMTQ0OTIgMTUuNjQ1WiIgZmlsbD0iIzYzNkM3NCIvPgo8cGF0aCBkPSJNMTkuODU1IDEyLjM1NTNMMjEuNSAxNC4wMDAzTDI2LjE2NjcgOS4zMzM2NkwyMS41IDQuNjY2OTlMMTkuODU1IDYuMzExOTlMMjEuNjk4MyA4LjE2Njk5SDRWMTAuNTAwM0gyMS42OTgzTDE5Ljg1NSAxMi4zNTUzWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K"></descope-icon>\n </div>\n <div class="company-logo-wrapper">\n <descope-logo st-height="100%"></descope-logo>\n </div>\n </div>\n\t\t\t',O('\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\t\t\t\t:host([draggable="true"]) > div {\n\t\t\t\t\tpointer-events: none\n\t\t\t\t}\n\n .wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: max-content;\n }\n\n\t\t\t\t.third-party-app-logo {\n flex-shrink: 0;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\tmax-height: 100%;\n\t\t\t\t\tobject-fit: contain;\n\t\t\t\t}\n\n .company-logo-wrapper, .third-party-app-logo-wrapper {\n flex-shrink: 0;\n display: inline-flex;\n }\n\n .company-logo-wrapper {\n justify-content: flex-end;\n }\n\n .third-party-app-logo-wrapper {\n justify-content: flex-start;\n }\n\n .arrows {\n flex-shrink: 0;\n display: flex;\n }\n ',this)}}const xu=">.company-logo-wrapper",ju=">.third-party-app-logo-wrapper",Tu=qt(Je({mappings:{logoMaxHeight:[{selector:xu,property:"height"},{selector:ju,property:"height"}],logoMaxWidth:[{selector:xu,property:"max-width"},{selector:ju,property:"max-width"}],thirdPartyAppLogo:{selector:()=>".third-party-app-logo",property:"content",fallback:{}},companyLogoFallback:{selector:Cr.componentName,property:Cr.cssVarList.fallbackUrl},gap:{},arrowsColor:{selector:Eo.componentName,property:Eo.cssVarList.fill}}}),$e,qe)(Iu);customElements.define(Nu,Tu);const Du=ne("security-questions-setup"),vu=["full-width","readonly","size","label-type","question-label","question-placeholder","question-data-errormessage-value-missing","answer-label","answer-placeholder","answer-data-errormessage-value-missing","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],zu=["count","questions"];class Cu extends(ei({componentName:Du,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",O("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}get count(){return Number(this.getAttribute("count"))||0}#ge(){const t=Array.from({length:this.count}).map((t,e)=>`\n <div class="question-wrapper">\n <descope-combo-box\n data-id="${e}"\n item-label-path="data-name"\n item-value-path="data-id"\n bordered="true"\n required="true"\n clear-button-visible="true"\n ></descope-combo-box>\n\n <descope-text-field\n data-id="${e}"\n required="true"\n bordered="true"\n minlength="2"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.comboBoxes.forEach(t=>{t.addEventListener("change",t=>{this.updateRemainingCombosData(t.target),this.getAttachedTextField(t.target).value=""}),t.data=this.data}),this.#Me(vu)}getAttachedTextField(t){const e=`descope-text-field[data-id="${t.getAttribute("data-id")}"]`;return this.baseElement.querySelector(e)}filterData(t){const e=this.data.filter(e=>e.value===t||!this.selectedQuestionIds.includes(e.value));return e}reportValidity(){return this.inputs.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return[...this.comboBoxes,...this.textFields].every(t=>t.checkValidity())}updateRemainingCombosData(t){this.comboBoxes.filter(e=>e!==t).forEach(t=>{t.data=this.filterData(t.value)})}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(Du,"Error parsing questions attribute",t),[]}}get data(){return this.questions.map(({id:t,text:e})=>({value:t,label:e}))}get comboBoxes(){return Array.from(this.baseElement.querySelectorAll("descope-combo-box"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get inputs(){return Array.from(this.baseElement.querySelectorAll("descope-combo-box, descope-text-field"))}get selectedQuestionIds(){return this.comboBoxes.map(t=>t.value)}get value(){return this.comboBoxes.map(t=>({id:t.value,answer:this.getAttachedTextField(t).value}))}set value(t=[]){t.forEach((t,e)=>{const i=this.comboBoxes[e],o=this.getAttachedTextField(i);i.value=t.id,o.value=t.answer})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#Me(t){const e={question:this.comboBoxes,answer:this.textFields};t.forEach(t=>{const[i,...o]=t.split("-"),n=e[i]||this.inputs,r=e[i]?o.join("-"):t;n.forEach(e=>{this.#me(e,r,this.getAttribute(t))})})}init(){super.init?.(),te(this,()=>{this.#ge()},{includeAttrs:zu}),te(this,this.#Me.bind(this),{includeAttrs:vu})}}const Su=qt(Je({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>zo.componentName,property:zo.cssVarList.hostDirection},{selector:()=>ir.componentName,property:ir.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"}}}),$e,qe)(Cu);customElements.define(Du,Su);const wu=ne("security-questions-verify"),Au=["full-width","readonly","size","answer-placeholder","answer-data-errormessage-value-missing","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],Lu=["question-mode"],fu={"answer-placeholder":"placeholder","answer-data-errormessage-value-missing":"data-errormessage-value-missing","question-mode":"mode"},Eu=[...Au,...Lu],ku=["questions"];class Ou extends(ei({componentName:wu,baseSelector:"div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML="\n <div></div>\n\t\t",O("\n :host {\n display: inline-flex;\n }\n\n div {\n display: flex;\n flex-direction: column;\n }\n ",this)}#ge(){const t=this.questions.map(({id:t,text:e})=>`\n <div class="question-wrapper">\n <descope-text\n data-id="${t}"\n >${e}</descope-text>\n\n <descope-text-field\n data-id="${t}"\n required="true"\n bordered="true"\n ></descope-text-field>\n </div>\n `);this.baseElement.innerHTML=t.join("<spacer></spacer><descope-divider></descope-divider><spacer></spacer>"),this.#Me(Eu),this.texts.forEach(t=>{const e=this.textFields.find(e=>e.getAttribute("data-id")===t.getAttribute("data-id"));e&&(t.onclick=e.focus.bind(e))})}reportValidity(){return this.textFields.reverse().forEach(t=>t.reportValidity()),this.checkValidity()}checkValidity(){return this.textFields.every(t=>t.checkValidity())}get questions(){try{return JSON.parse(this.getAttribute("questions"))||[]}catch(t){return console.error(wu,"Error parsing questions attribute",t),[]}}get texts(){return Array.from(this.baseElement.querySelectorAll("descope-text"))}get textFields(){return Array.from(this.baseElement.querySelectorAll("descope-text-field"))}get elements(){return Array.from(this.baseElement.querySelectorAll("descope-text, descope-text-field"))}get value(){return this.textFields.map(t=>({id:t.getAttribute("data-id"),answer:t.value}))}set value(t=[]){t.forEach(({id:t,answer:e})=>{const i=this.textFields.find(e=>e.getAttribute("data-id")===t);i&&(i.value=e)})}#me(t,e,i){null===i?t.removeAttribute(e):t.setAttribute(e,i)}#ye(t){switch(!0){case Au.includes(t):return this.textFields;case Lu.includes(t):return this.texts;default:return[]}}#Me(t){t.forEach(t=>{this.#ye(t).forEach(e=>{this.#me(e,fu[t]||t,this.getAttribute(t))})})}init(){super.init?.(),te(this,()=>{this.#ge()},{includeAttrs:ku}),te(this,this.#Me.bind(this),{includeAttrs:Eu})}}const Vu=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostWidth:[{selector:()=>":host",property:"width"},{property:"width"}],hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>ki.componentName,property:ki.cssVarList.hostDirection},{selector:()=>ir.componentName,property:ir.cssVarList.hostDirection}],gap:{selector:()=>"div",property:"gap"},questionTextAlign:{selector:()=>ki.componentName,property:ki.cssVarList.textAlign},questionFontSize:{selector:()=>ki.componentName,property:ki.cssVarList.fontSize},questionFontFamily:{selector:()=>ki.componentName,property:ki.cssVarList.fontFamily},questionCursor:{selector:()=>ki.componentName,property:"cursor"},errorMessageIcon:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageSize},errorMessageIconPadding:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessagePadding},errorMessageIconRepeat:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageRepeat},errorMessageIconPosition:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessagePosition},errorMessageFontSize:{selector:()=>ki.componentName,property:ki.cssVarList.errorMessageFontSize}}}),$e,qe)(Ou);customElements.define(wu,Vu);const Wu="^[\\w\\.\\%\\+\\-']+@(?:[A-Za-z0-9](?:[A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,}$",Ru="^[\\p{L}\\p{M}\\p{N}._%+'\\-]+@(?:[\\p{L}\\p{M}\\p{N}](?:[\\p{L}\\p{M}\\p{N}\\-]*[\\p{L}\\p{M}\\p{N}])?\\.)+[\\p{L}\\p{M}][\\p{L}\\p{M}\\p{N}\\-]+$",Uu=t=>{const e=(t||"").split(/\s+/).filter(t=>t&&!["username","email","on","off"].includes(t)),i=e.indexOf("webauthn");return e.splice(-1===i?e.length:i,0,"email"),e.join(" ")},Yu=f("email-field"),Qu="email",{host:Pu,label:Bu,placeholder:Zu,requiredIndicator:Fu,inputField:Gu,input:Hu,inputMask:Ju,helperText:$u,errorMessage:qu,disabledPlaceholder:_u,inputDisabled:Xu,inputIcon:Ku,externalInput:tp,externalInputDisabled:ep,externalPlaceholder:ip,externalDisabledPlaceholder:op}={host:{selector:()=>":host"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},placeholder:[{selector:"> input:placeholder-shown"},{selector:()=>":host::slotted(input:placeholder-shown)"}],disabledPlaceholder:{selector:"> input:disabled::placeholder"},inputField:{selector:"::part(input-field)"},input:{selector:"input"},inputMask:{selector:"::part(input-field)::before"},inputDisabled:{selector:"input:disabled"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},inputIcon:{selector:"vaadin-icon"},externalInput:{selector:()=>"::slotted(input)"},externalInputDisabled:{selector:()=>"::slotted(input:disabled)"},externalPlaceholder:{selector:()=>"::slotted(input:placeholder-shown)"},externalDisabledPlaceholder:{selector:()=>"::slotted(input:disabled::placeholder)"}},np=T(Mt({mappings:{fontSize:[{},Pu],fontFamily:[Bu,Gu,$u,qu],labelFontSize:{...Bu,property:"font-size"},labelFontWeight:{...Bu,property:"font-weight"},inputValueFontWeight:[{...Hu,property:"font-weight"},{...tp,property:"font-weight"}],inputPlaceholderFontWeight:[{selector:()=>":host input:placeholder-shown",property:"font-weight"},{...ip,property:"font-weight"}],helperTextFontWeight:{...$u,property:"font-weight"},errorMessageFontWeight:{...qu,property:"font-weight"},labelTextColor:[{...Bu,property:"color"},{...Fu,property:"color"},{...Bu,property:"-webkit-text-fill-color"},{...Fu,property:"-webkit-text-fill-color"}],hostWidth:{...Pu,property:"width"},hostMinWidth:{...Pu,property:"min-width"},hostDirection:{...Pu,property:"direction"},inputDirection:{...Hu,property:"direction"},inputBackgroundColor:[{...Gu,property:"background-color"},{...Ju,property:"background-color"}],errorMessageTextColor:{...qu,property:"color"},errorMessageIcon:{...qu,property:"background-image"},errorMessageIconSize:{...qu,property:"background-size"},errorMessageIconPadding:{...qu,property:"padding-inline-start"},errorMessageIconRepeat:{...qu,property:"background-repeat"},errorMessageIconPosition:{...qu,property:"background-position"},errorMessageFontSize:{...qu,property:"font-size"},helperTextColor:{...$u,property:"-webkit-text-fill-color"},inputValueTextColor:[{...Gu,property:"color"},{...Xu,property:"-webkit-text-fill-color"},{...ep,property:"-webkit-text-fill-color"}],inputCaretTextColor:[{...Hu,property:"caret-color"},{...tp,property:"caret-color"}],labelRequiredIndicator:{...Fu,property:"content"},inputBorderColor:{...Gu,property:"border-color"},inputBorderWidth:{...Gu,property:"border-width"},inputBorderStyle:{...Gu,property:"border-style"},inputBorderRadius:{...Gu,property:"border-radius"},inputHeight:{...Gu,property:"height"},inputHorizontalPadding:[{...Hu,property:"padding-left"},{...Hu,property:"padding-right"},{...tp,property:"padding-left"},{...tp,property:"padding-right"}],inputOutlineColor:{...Gu,property:"outline-color"},inputOutlineStyle:{...Gu,property:"outline-style"},inputOutlineWidth:{...Gu,property:"outline-width"},inputOutlineOffset:{...Gu,property:"outline-offset"},textAlign:{},inputTextAlign:[{...Hu,property:"text-align"},{...tp,property:"text-align"}],inputPlaceholderColor:[{selector:()=>":host input:placeholder-shown",property:"color"},{...ip,property:"color"},{...Zu,property:"color"},{..._u,property:"-webkit-text-fill-color"},{...op,property:"-webkit-text-fill-color"}],labelPosition:{...Bu,property:"position"},labelTopPosition:{...Bu,property:"top"},labelHorizontalPosition:[{...Bu,property:"left"},{...Bu,property:"right"}],inputTransformY:{...Bu,property:"transform"},inputTransition:{...Bu,property:"transition"},marginInlineStart:{...Bu,property:"margin-inline-start"},placeholderOpacity:[{selector:"> input:placeholder-shown",property:"opacity"},{...ip,property:"opacity"}],inputVerticalAlignment:[{...Gu,property:"align-items"},{...tp,property:"align-items"}],valueInputHeight:[{...Hu,property:"height"},{...tp,property:"height"}],valueInputMarginBottom:[{...Hu,property:"margin-bottom"},{...tp,property:"margin-bottom"}],inputIconOffset:[{...Ku,property:"margin-right"},{...Ku,property:"margin-left"}],inputIconSize:{...Ku,property:"font-size"},inputIconColor:{...Ku,property:"color"},inputTextSecurity:[{...Hu,property:"-webkit-text-security"},{...Hu,property:"text-security"},{...tp,property:"-webkit-text-security"},{...tp,property:"text-security"}]}}),mt,(({inputType:t,inputName:e,autocompleteType:i,includeAttrs:o=[],noBlurDispatch:n=!1})=>r=>class extends r{#gt=[];get isExternalInput(){return"true"===this.getAttribute("external-input")}createExternalInput(){if(!this.isExternalInput||this.isReadOnly||this.isDisabled)return null;const i=this.baseElement.querySelector("input");if(!i)return null;i.setAttribute("tabindex","-1");const n=(()=>{const t=document.createElement("slot");return t.setAttribute("name","external-input"),t.setAttribute("slot","suffix"),t})();return this.baseElement.appendChild(n),this.externalInput=((t,e,i,o)=>{const n=document.createElement("input");return n.setAttribute("slot","external-input"),n.setAttribute("type",e),n.setAttribute("name",o),n.setAttribute("data-hidden-input","true"),n.setAttribute("autocomplete",i),n})(0,t,this.getAutocompleteType(),e),setTimeout(()=>{var t,e,o;t=i,e=this.externalInput,o=this.getAttribute("label-type"),setTimeout(()=>{const i=getComputedStyle(t),n=i.getPropertyValue("height"),r=i.getPropertyValue("padding-left"),s=i.getPropertyValue("padding-right"),a=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family"),d=i.getPropertyValue("letter-spacing"),c=i.getPropertyValue("caret-color"),u=((t,e)=>{const i=t.value;t.value="_";const o=e.getPropertyValue("color");return"_"===t.value&&(t.value=i),o})(t,i);if([["all","unset"],["position","absolute"],["background-color","transparent"],["height",n],["left",r],["right",s],["font-size",a],["font-family",l],["letter-spacing",d],["caret-color",c],["color",u]].forEach(([t,i])=>e.style.setProperty(t,i,"important")),"floating"===o){const t=i.getPropertyValue("margin-bottom");e.style.setProperty("margin-bottom",t,"important")}const p=i.getPropertyValue("width");e.style.setProperty("width",`calc(${p} - ${r} - ${s}`,"important")},0)}),this.forwardInputValue(i,this.externalInput),A(i,this.externalInput,{includeAttrs:o}),this.baseElement.querySelector("input").addEventListener("focusout",t=>t.stopImmediatePropagation(),!0),this.handleFocusEvents(),this.handleBlurEvents(),this.handlelInputEvents(this.externalInput),this.appendChild(this.externalInput),this.externalInput}clearBlurTimers(){this.#gt.forEach(t=>clearTimeout(t)),this.#gt.length=0}dispatchBlur(){return setTimeout(()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0})),this.removeAttribute("focused")})}handleFocusEvents(){this.baseElement.addEventListener("focus",()=>{this.externalInput.focus(),this.clearBlurTimers()}),this.externalInput.addEventListener("focus",()=>{this.clearBlurTimers(),setTimeout(()=>this.baseElement.setAttribute("focused","true"))})}handleBlurEvents(){this.baseElement.addEventListener("blur",t=>{t.stopImmediatePropagation(),n||this.#gt.push(this.dispatchBlur())},!0),this.externalInput.addEventListener("blur",t=>{t.stopImmediatePropagation(),this.#gt.push(this.dispatchBlur())},!0)}handlelInputEvents(t){t.addEventListener("input",t=>{this.value=t.target.value}),t.addEventListener("input",t=>{t.target.value?this.setAttribute("has-value","true"):this.removeAttribute("has-value")})}getAutocompleteType(){return this.getAttribute("autocomplete")||i}forwardInputValue(t,e){const i=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value");Object.defineProperty(t,"value",{...i,set(t){i.set.call(this,t),e.value=t},configurable:!0})}})({inputType:"email",inputName:"email",autocompleteType:"username",includeAttrs:["disabled","readonly","pattern"]}),Vt({proxyProps:["value","selectionStart"],useProxyTargets:!0}),yt,t=>class extends t{get acceptsUnicode(){return"false"!==this.getAttribute("accept-unicode")}get validatesFormat(){return"false"!==this.getAttribute("validate-format")}init(){super.init?.(),this.baseElement.setAttribute("pattern",Wu),this.getAttribute("autocomplete")||this.setAttribute("autocomplete","username"),this.createExternalInput(),[this.inputElement,this.externalInput].filter(Boolean).forEach(t=>{t.addEventListener("change",this.stripSurroundingWhitespace)}),this.acceptsUnicode&&this.enableUnicode(),this.validatesFormat||this.disableFormatValidation(),this.emailVerification&&this.enableEmailVerification()}get emailVerification(){return"true"===this.getAttribute("email-verification")}enableEmailVerification(){const{baseElement:t}=this,e=t._delegateAttribute.bind(t);t._delegateAttribute=(t,i)=>e(t,"autocomplete"===t?Uu(i):i),t._delegateAttribute("autocomplete",t.autocomplete),this.externalInput?.setAttribute("autocomplete",Uu(this.getAttribute("autocomplete")))}enableUnicode(){this.baseElement.setAttribute("pattern",Ru),this.useTextType()}disableFormatValidation(){this.baseElement.removeAttribute("pattern"),this.useTextType()}useTextType(){this.baseElement._setType("text"),this.externalInput&&(this.externalInput.type="text"),this.getAttribute("inputmode")||this.setAttribute("inputmode",Qu),this.externalInput?.setAttribute("inputmode",Qu)}stripSurroundingWhitespace=t=>{const e=t.target.value.trim();e!==t.target.value&&(this.value=e,this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}})(ft({slots:["","suffix"],wrappedEleName:"vaadin-email-field",style:()=>`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tpadding: calc(var(${np.cssVarList.inputOutlineWidth}) + var(${np.cssVarList.inputOutlineOffset}));\n box-sizing: border-box;\n\t\t\t}\n ${it("vaadin-email-field")}\n\t\t\t${_(np.cssVarList)}\n\t\t\t${et("vaadin-email-field",np.cssVarList)}\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-email-field[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n :host ::slotted(*) {\n -webkit-mask-image: none;\n }\n\n vaadin-email-field[external-input="true"] > input:not(:placeholder-shown) {\n opacity: 0;\n }\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:Yu}));customElements.define(Yu,np);const rp=/[^\d\s+\-()]/,sp=ne("hybrid-field"),ap={shared:["label","bordered","full-width","label-type","size","disabled","readonly","required","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"],email:["placeholder","data-errormessage-value-missing-email","data-errormessage-pattern-mismatch-email","external-input"],phone:{countryCode:["phone-input-label","country-input-label","country-input-placeholder","restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","phone-input-type","data-errormessage-value-missing-phone"],inputBox:["restrict-countries","default-code","phone-minlength","phone-format-value","phone-strict-validation","phone-input-type","data-errormessage-value-missing-phone"]}},lp={email:{"data-errormessage-value-missing-email":"data-errormessage-value-missing","data-errormessage-pattern-mismatch-email":"data-errormessage-pattern-mismatch"},phone:{"phone-input-label":"label","phone-minlength":"minlength","phone-format-value":"format-value","phone-strict-validation":"strict-validation","data-errormessage-value-missing-phone":"data-errormessage-value-missing"}},dp="descope-phone-field",cp=ei({componentName:sp,baseSelector:"div"}),up=qt(Je({componentNameOverride:ne("input-wrapper")}),Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:[{selector:()=>"descope-email-field",property:"direction"},{selector:()=>"descope-phone-field",property:"direction"},{selector:()=>"descope-phone-input-box-field",property:"direction"}],errorMessageIcon:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIcon},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIcon}],errorMessageIconSize:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconSize},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconSize}],errorMessageIconPadding:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconPadding},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconPadding}],errorMessageIconRepeat:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconRepeat},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconRepeat}],errorMessageIconPosition:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageIconPosition},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageIconPosition}],errorMessageFontSize:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageFontSize},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageFontSize}],labelFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.labelFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.labelFontWeight}],inputValueFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.inputValueFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.inputValueFontWeight}],inputPlaceholderFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.inputPlaceholderFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.inputPlaceholderFontWeight}],helperTextFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.helperTextFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.helperTextFontWeight}],errorMessageFontWeight:[{selector:()=>Hs.componentName,property:Hs.cssVarList.errorMessageFontWeight},{selector:()=>ca.componentName,property:ca.cssVarList.errorMessageFontWeight}]}}),$e,qe)(class extends cp{#be=!1;#Ne;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="wrapper">\n <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>\n <descope-phone-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-field>\n <descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>\n </div>\n\t\t`,O("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n padding: 0;\n gap: 0;\n }\n .wrapper {\n display: grid;\n width: 100%;\n }\n descope-email-field,\n descope-phone-field,\n descope-phone-input-box-field {\n grid-area: 1/1;\n width: 100%;\n height: 100%;\n }\n .hidden {\n visibility: hidden;\n }\n ",this)}get isExternalInput(){return"true"===this.getAttribute("external-input")}get emailInputEle(){return this.isExternalInput?this.emailInput.externalInput:this.emailInput.inputElement}get phoneVariant(){return"inputBox"===this.getAttribute("phone-variant")?this.phoneInputBoxInput:this.phoneCountryCodeInput}get defaultCode(){const t=this.phoneCountryCodeInput.countryCodes?.[0]||"";return this.getAttribute("default-code")||t}get activeInputEle(){return this.activeInput===this.emailInput?this.emailInputEle:this.phoneVariant.phoneNumberInputEle}get value(){return this.activeInput?.value||""}set value(t){this.handleActiveInput(t),setTimeout(()=>{this.activeInput.value=t})}async init(){super.init?.(),this.initInputs(),this.updateAttrs(),this.toggleInputVisibility(),await this.waitForInputs(),this.initInputEles(),this.overrideEmailInputType(),this.overrideEmailSetAttribute()}waitForInputs(){return new Promise(t=>{const e=setInterval(()=>{this.emailInputEle&&(clearInterval(e),t())})})}initInputs(){this.emailInput=this.shadowRoot.querySelector("descope-email-field"),this.phoneCountryCodeInput=this.shadowRoot.querySelector(dp),this.phoneInputBoxInput=this.shadowRoot.querySelector("descope-phone-input-box-field"),this.inputs=[this.emailInput,this.phoneCountryCodeInput,this.phoneInputBoxInput],this.activeInput=this.emailInput}initInputEles(){[this.emailInputEle,this.phoneCountryCodeInput.phoneNumberInputEle,this.phoneInputBoxInput.phoneNumberInputEle].forEach(t=>{t.addEventListener("input",this.onValueChange.bind(this))})}overrideEmailInputType(){this.emailInputEle.addEventListener("focus",()=>{this.emailInputEle.setAttribute("type","text")}),this.emailInputEle.addEventListener("blur",()=>{setTimeout(()=>{this.emailInputEle.setAttribute("type","email")})})}overrideEmailSetAttribute(){const t=this.emailInput.setAttribute.bind(this.emailInputEle);this.emailInputEle.setAttribute=(e,i)=>("type"!==e||"email"!==i||!this.emailInput.hasAttribute("focused"))&&t(e,i)}updateAttrs(){se(this,this.emailInput,{includeAttrs:ap.email,mapAttrs:lp.email}),se(this,this.phoneCountryCodeInput,{includeAttrs:ap.phone.countryCode,mapAttrs:lp.phone}),se(this,this.phoneInputBoxInput,{includeAttrs:ap.phone.inputBox,mapAttrs:lp.phone}),this.inputs.forEach(t=>se(this,t,{includeAttrs:ap.shared})),setTimeout(()=>this.phoneCountryCodeInput.setAttribute("default-code",this.defaultCode))}onValueChange(){this.#Ne=this.activeInputEle.selectionStart,this.handleActiveInput(this.activeInputEle.value||this.activeInput.value)}handleActiveInput(t){const e=(t=>!!t&&!rp.test(t))(t)?this.phoneVariant:this.emailInput;this.activeInput!==e&&this.setActiveInput(e)}setActiveInput(t){const e=this.activeInputEle.value||this.activeInput.value;this.activeInput=t,this.setActiveInputValue(e),this.#be&&this.activeInput.reportValidity(),this.setActiveInputSelectionStart(),this.toggleInputVisibility()}setActiveInputSelectionStart(){setTimeout(()=>{const t=this.activeInputEle;t.focus();try{t.setSelectionRange?.(this.#Ne,this.#Ne)}catch{}})}#Ie(){const t=this.getAttribute("default-code"),e=t&&Hs.CountryCodes.find(e=>e.code===t);return e?.dialCode||Hs.CountryCodes[0]?.dialCode||""}setActiveInputValue(t){const e=(t=>t.replace(/\+\d+-/,""))(t);if(this.activeInput.localName===dp){const t=this.phoneCountryCodeInput.countryCodeItems||this.#Ie();this.activeInput.value=`${t}-${e}`}else this.activeInput.value=e}toggleInputVisibility(){this.inputs.forEach(t=>{t!==this.activeInput?t.classList.add("hidden"):t.classList.remove("hidden")})}reportValidity(){this.#be=!0;const t=this.activeInputEle,e=t.type;return t.setAttribute("type","text"),setTimeout(()=>{t.setSelectionRange?.(t.value.length,t.value.length),t.setAttribute("type",e)}),this.activeInput.reportValidity()}checkValidity(){return this.activeInput.checkValidity()}});customElements.define(sp,up);const pp=ne("alert");class hp extends(ei({componentName:pp,baseSelector:":host > div"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <div class="icon"></div>\n <div class="content">\n <descope-enriched-text>\n <slot></slot>\n </descope-enriched-text>\n </div>\n </div>\n ',O('\n :host {\n display: inline-flex;\n }\n :host > div {\n display: flex;\n width: 100%;\n }\n :host([empty="true"]) {\n display: none;\n }\n .icon {\n flex-shrink: 0;\n }\n .content {\n display: flex;\n flex-wrap: wrap;\n white-space: normal;\n overflow-wrap: break-word;\n }\n ',this)}init(){super.init?.(),this.slotEle=this.shadowRoot.querySelector("slot"),this.textComp=this.shadowRoot.querySelector("descope-enriched-text"),this.slotEle.addEventListener("slotchange",this.handleSlotChange.bind(this)),A(this.textComp,this,{includeAttrs:["empty"]}),S(this,this.handleChildrenChange.bind(this)),se(this,this.textComp,{includeAttrs:["variant","full-width","link-target-blank"]})}handleChildrenChange(){this.textComp.textContent=this.textContent}handleSlotChange(){const t=this.slotEle.assignedNodes({flatten:!0});t.length&&(this.textComp.textContent=t[0]?.textContent||"")}}const{icon:gp}={icon:{selector:()=>".icon"}},Mp=qt(Je({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostDirection:{selector:()=>":host",property:"direction"},textColor:{selector:Ht.componentName,property:Ht.cssVarList.textColor},backgroundColor:{},borderColor:{},borderWidth:{},borderStyle:{},borderRadius:{},fontSize:[{},{selector:Ht.componentName,property:Ht.cssVarList.fontSize}],gap:{},horizontalPadding:[{property:"padding-top"},{property:"padding-bottom"}],verticalPadding:[{property:"padding-right"},{property:"padding-left"}],alignItems:{},justifyContent:[{},{selector:Ht.componentName,property:Ht.cssVarList.textAlign}],icon:[{...gp,property:"content"},{...gp,property:"display",fallback:"none"}],iconSize:[{...gp,property:"width"},{...gp,property:"height"}]}}),Je({componentNameOverride:ne("enriched-text")}),Je({componentNameOverride:ne("text")}),$e,qe)(hp);customElements.define(pp,Mp);const mp=ne("hcaptcha"),yp=["enabled","site-key"],bp=Mi({componentName:mp,baseSelector:":host > div"}),Np=qt(Je({mappings:{hostWidth:[{selector:()=>":host",property:"width"}],hostDirection:{property:"direction"},verticalPadding:[{property:"padding-top"},{property:"padding-bottom"}],horizontalPadding:[{property:"padding-left"},{property:"padding-right"}],maxHeight:[{selector:">img",property:"height"},{selector:">#hcaptcha",property:"height"}],maxWidth:[{selector:">img",property:"max-width"},{selector:">hcaptcha",property:"max-width"}]}}),$e,qe)(class extends bp{static get observedAttributes(){return yp.concat(bp.observedAttributes||[])}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"enabled"===t&&this.toggleCaptchaEles("true"===i)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="badge">\n <span id="hcaptcha"></span>\n <input id="hcaptcha-input" type="hidden" name="hcaptcha" required />\n <img src="https://imgs.descope.com/connectors/templates/hcaptcha/hcaptcha-big.png" alt="hcaptcha"/>\n </div>\n <slot></slot>\n\t',O("\n :host {\n display: inline-flex;\n }\n :host > div:not(.hidden) {\n display: flex;\n }\n :host #hcaptcha-input {\n display: none;\n }\n :host #hcaptcha .hcaptcha-logo {\n height: 100%;\n }\n :host #hcaptcha {\n\t\t\t\twidth: 100%;\n height: 100%;\n\t\t\t}\n :host img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n .hidden {\n display: none;\n }\n ",this),this.captchaEle=this.shadowRoot.querySelector("#hcaptcha"),this.mockCaptchaEle=this.shadowRoot.querySelector("img"),this.badge=this.shadowRoot.querySelector(".badge"),this.inputElement=this.shadowRoot.querySelector("input")}init(){super.init?.(),S(this,this.updatePreview.bind(this)),this.inputElement.getValidity=null,this.inputElement.checkValidity=null}toggleCaptchaEles(t){t?(this.captchaEle.style.display="",this.mockCaptchaEle.style.display="none"):(this.captchaEle.style.display="none",this.mockCaptchaEle.style.display="")}updatePreview(){this.toggleCaptchaEles(this.enabled)}getValidity(){return this.inputElement.value?{}:{valueMissing:!0}}checkValidity(){return!!this.inputElement.value}get siteKey(){return this.getAttribute("site-key")}get enabled(){return"true"===this.getAttribute("enabled")}});customElements.define(mp,Np);const Ip=(wp={surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}},Object.keys(wp).reduce((t,e)=>{const i=wp[e];return Object.assign(t,{[e]:Ne(i)})},{})),xp={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},jp=fe({fonts:xp}).fonts,Tp={colors:Ip,typography:{h1:{font:jp.font1.family,weight:"900",size:"48px"},h2:{font:jp.font1.family,weight:"800",size:"38px"},h3:{font:jp.font1.family,weight:"600",size:"28px"},subtitle1:{font:jp.font2.family,weight:"500",size:"22px"},subtitle2:{font:jp.font2.family,weight:"400",size:"20px"},body1:{font:jp.font1.family,weight:"400",size:"16px"},body2:{font:jp.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:xp,direction:"ltr"},Dp=(t=>Ae(t,[],t=>we({},t,Se(t))))(Tp),vp=(t=>Object.keys(t).reduce((e,i)=>{const o=t[i];return Object.assign(e,{[i]:q(o)})},{}))({surface:{main:"#ffffff",dark:"#636c74",light:"#cfd3d7",highlight:"#f4f5f6",contrast:"#181a1c"},primary:{main:"#006af5",dark:"#004094",light:"#71aeff",highlight:"#f0f6ff",contrast:"#ffffff"},secondary:{main:"#802ed6",dark:"#6410bc",light:"#be89f5",highlight:"#ede7f6",contrast:"#ffffff"},success:{main:"#008000",dark:"#005700",light:"#8bc38b",highlight:"#f5faf5",contrast:"#ffffff"},error:{main:"#e21d12",dark:"#b3170f",light:"#f4807a",highlight:"#fef1f1",contrast:"#ffffff"},warning:{main:"#c45512",dark:"#a24309",light:"#ff985a",highlight:"#fdf0e5",contrast:"#ffffff"}}),zp={font1:{family:["Roboto","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Roboto",url:"https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900"},font2:{family:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],label:"Sans Serif"}},Cp=st({fonts:zp}).fonts,Sp={colors:vp,typography:{h1:{font:Cp.font1.family,weight:"900",size:"48px"},h2:{font:Cp.font1.family,weight:"800",size:"38px"},h3:{font:Cp.font1.family,weight:"600",size:"28px"},subtitle1:{font:Cp.font2.family,weight:"500",size:"22px"},subtitle2:{font:Cp.font2.family,weight:"400",size:"20px"},body1:{font:Cp.font1.family,weight:"400",size:"16px"},body2:{font:Cp.font1.family,weight:"400",size:"14px"}},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"32px"},border:{xs:"1px",sm:"2px",md:"3px",lg:"4px",xl:"5px"},radius:{xs:"5px",sm:"10px",md:"15px",lg:"20px",xl:"25px","2xl":"30px","3xl":"35px"},shadow:{wide:{sm:"0 2px 3px -0.5px",md:"0 4px 6px -1px",lg:"0 10px 15px -3px",xl:"0 20px 25px -5px","2xl":"0 25px 50px -12px"},narrow:{sm:"0 1px 2px -1px",md:"0 2px 4px -2px",lg:"0 4px 6px -4px",xl:"0 8px 10px -6px","2xl":"0 16px 16px -8px"}},fonts:zp,direction:"ltr"};var wp;(t=>{rt(t,[],t=>nt({},t,ot(t)))})(Sp);const Ap=st(Sp),Lp=Uo.cssVarList,fp={primary:Ap.colors.primary,secondary:Ap.colors.secondary,success:Ap.colors.success,error:Ap.colors.error,surface:Ap.colors.surface},[Ep,kp,Op]=lt({mode:fp},ko),Vp={...Ep,[Lp.fontFamily]:Ap.fonts.font1.family,[Lp.fontWeight]:"400",[Lp.cursor]:"pointer",[Lp.hostHeight]:"3em",[Lp.hostWidth]:"auto",[Lp.hostDirection]:Ap.direction,[Lp.borderRadius]:Ap.radius.sm,[Lp.borderWidth]:Ap.border.xs,[Lp.borderStyle]:"solid",[Lp.borderColor]:"transparent",[Lp.labelSpacing]:"0.25em",[Lp.textAlign]:"center",textAlign:{right:{[Lp.textAlign]:"right"},left:{[Lp.textAlign]:"left"},center:{[Lp.textAlign]:"center"}},[Lp.verticalPadding]:"1em",[Lp.horizontalPadding]:"0.875em",[Lp.outlineWidth]:Sp.border.sm,[Lp.outlineOffset]:"0px",[Lp.outlineStyle]:"solid",[Lp.outlineColor]:"transparent",[Lp.iconSize]:"1.5em",size:{xs:{[Lp.fontSize]:"12px"},sm:{[Lp.fontSize]:"14px"},md:{[Lp.fontSize]:"16px"},lg:{[Lp.fontSize]:"18px"}},_square:{[Lp.hostHeight]:"3em",[Lp.hostWidth]:"3em",[Lp.verticalPadding]:"0"},_fullWidth:{[Lp.hostWidth]:"100%"},_loading:{[Lp.cursor]:"wait",[Lp.labelTextColor]:kp.main},_disabled:{[Op.main]:Ap.colors.surface.light,[Op.dark]:Ap.colors.surface.dark,[Op.light]:Ap.colors.surface.light,[Op.contrast]:Ap.colors.surface.main,[Lp.iconColor]:Ap.colors.surface.main},variant:{contained:{[Lp.labelTextColor]:kp.contrast,[Lp.backgroundColor]:kp.main,_hover:{[Lp.backgroundColor]:kp.dark,_loading:{[Lp.backgroundColor]:kp.main}},_active:{[Lp.backgroundColor]:kp.main}},outline:{[Lp.labelTextColor]:kp.main,[Lp.borderColor]:kp.main,_hover:{[Lp.labelTextColor]:kp.dark,[Lp.borderColor]:kp.dark},_active:{[Lp.labelTextColor]:kp.main,[Lp.borderColor]:kp.main},_disabled:{[Lp.iconColor]:kp.main}},link:{[Lp.labelTextColor]:kp.main,[Lp.horizontalPadding]:"0.125em",_hover:{[Lp.labelTextColor]:kp.dark,[Lp.labelTextDecoration]:"underline"},_active:{[Lp.labelTextColor]:kp.main},_disabled:{[Lp.iconColor]:kp.main}}},_focused:{[Lp.outlineColor]:kp.light}},Wp={...Lp,...Op};var Rp=Object.freeze({__proto__:null,default:Vp,vars:Wp});const Up=st(Sp),Yp=ki.cssVarList,Qp={[Yp.hostDirection]:Up.direction,[Yp.textLineHeight]:"1.35em",[Yp.textAlign]:"start",[Yp.textColor]:Up.colors.surface.dark,variant:{h1:{[Yp.fontSize]:Up.typography.h1.size,[Yp.fontWeight]:Up.typography.h1.weight,[Yp.fontFamily]:Up.typography.h1.font},h2:{[Yp.fontSize]:Up.typography.h2.size,[Yp.fontWeight]:Up.typography.h2.weight,[Yp.fontFamily]:Up.typography.h2.font},h3:{[Yp.fontSize]:Up.typography.h3.size,[Yp.fontWeight]:Up.typography.h3.weight,[Yp.fontFamily]:Up.typography.h3.font},subtitle1:{[Yp.fontSize]:Up.typography.subtitle1.size,[Yp.fontWeight]:Up.typography.subtitle1.weight,[Yp.fontFamily]:Up.typography.subtitle1.font},subtitle2:{[Yp.fontSize]:Up.typography.subtitle2.size,[Yp.fontWeight]:Up.typography.subtitle2.weight,[Yp.fontFamily]:Up.typography.subtitle2.font},body1:{[Yp.fontSize]:Up.typography.body1.size,[Yp.fontWeight]:Up.typography.body1.weight,[Yp.fontFamily]:Up.typography.body1.font},body2:{[Yp.fontSize]:Up.typography.body2.size,[Yp.fontWeight]:Up.typography.body2.weight,[Yp.fontFamily]:Up.typography.body2.font}},mode:{primary:{[Yp.textColor]:Up.colors.surface.contrast},secondary:{[Yp.textColor]:Up.colors.surface.dark},error:{[Yp.textColor]:Up.colors.error.main},"error-dark":{[Yp.textColor]:Up.colors.error.dark},success:{[Yp.textColor]:Up.colors.success.main},"success-dark":{[Yp.textColor]:Up.colors.success.dark},warning:{[Yp.textColor]:Up.colors.warning.main},"warning-dark":{[Yp.textColor]:Up.colors.warning.dark}},textAlign:{right:{[Yp.textAlign]:"right"},left:{[Yp.textAlign]:"left"},center:{[Yp.textAlign]:"center"}},_fullWidth:{[Yp.hostWidth]:"100%"},_italic:{[Yp.fontStyle]:"italic"},_uppercase:{[Yp.textTransform]:"uppercase"},_lowercase:{[Yp.textTransform]:"lowercase"}};var Pp=Object.freeze({__proto__:null,default:Qp,vars:Yp});const Bp=st(Sp),Zp=Zi.cssVarList,Fp={[Zp.hostDirection]:Bp.direction,[Zp.cursor]:"pointer",[Zp.textColor]:Bp.colors.primary.main,textAlign:{right:{[Zp.textAlign]:"right"},left:{[Zp.textAlign]:"left"},center:{[Zp.textAlign]:"center"}},_fullWidth:{[Zp.hostWidth]:"100%"},_hover:{[Zp.textDecoration]:"underline"},mode:{secondary:{[Zp.textColor]:Bp.colors.secondary.main}}};var Gp=Object.freeze({__proto__:null,default:Fp,vars:Zp});const Hp=st(Sp),Jp=Ht.cssVarList,$p={[Jp.hostDirection]:Hp.direction,[Jp.hostWidth]:at(Yp.hostWidth),[Jp.textLineHeight]:at(Yp.textLineHeight),[Jp.textColor]:at(Yp.textColor),[Jp.textAlign]:at(Yp.textAlign),[Jp.fontSize]:at(Yp.fontSize),[Jp.fontWeight]:at(Yp.fontWeight),[Jp.fontFamily]:at(Yp.fontFamily),[Jp.linkColor]:at(Zp.textColor),[Jp.linkTextDecoration]:"none",[Jp.linkHoverTextDecoration]:"underline",[Jp.fontWeightBold]:"900",[Jp.minWidth]:"0.25em",[Jp.minHeight]:"1.35em",[Jp.hostDisplay]:"inline-block",_empty:{_hideWhenEmpty:{[Jp.hostDisplay]:"none"}}};var qp=Object.freeze({__proto__:null,default:$p,vars:Jp});const _p=f("input-wrapper"),Xp=st(Sp),[Kp,th]=lt({labelTextColor:Xp.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:Xp.colors.surface.contrast,placeholderTextColor:Xp.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:Xp.colors.surface.dark,errorMessageTextColor:Xp.colors.error.main,successMessageTextColor:Xp.colors.success.main,borderWidth:Xp.border.xs,borderRadius:Xp.radius.xs,borderColor:"transparent",outlineWidth:Xp.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputIconSize:"1em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",textAlign:"start",backgroundColor:Xp.colors.surface.main,fontFamily:Xp.fonts.font1.family,direction:Xp.direction,overlayOpacity:"0.3",errorMessageIcon:"",errorMessageIconSize:"0",errorMessageIconPadding:"0",errorMessageIconPosition:"0 0.4em",errorMessageFontSize:"0.8125rem",errorMessageIconRepeat:"no-repeat",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},labelType:{static:{valueInputHeight:"3em",valueInputMarginBottom:"auto"},floating:{labelPosition:"absolute",labelTopPosition:"0",labelHorizontalPosition:"0.9em",labelFontSize:"1em",placeholderOpacity:0,inputHeight:"3.5em",inputVerticalAlignment:"flex-end",inputTransformY:"translateY(1.55em)",inputTransition:"all 75ms ease-in-out",marginInlineStart:"0",valueInputHeight:"1.5702em",valueInputMarginBottom:"0.5em",_focused:{labelFontSize:"0.75em",inputTransformY:"translateY(1.05em)",labelFontWeight:"400",placeholderOpacity:1},_readOnly:{placeholderOpacity:0},_hasValue:{inputTransformY:"translateY(1.05em)",labelFontSize:"0.75em",labelFontWeight:"400"}}},_fullWidth:{width:"100%"},_focused:{outlineColor:Xp.colors.surface.light,_invalid:{outlineColor:Xp.colors.error.main}},_bordered:{outlineWidth:Xp.border.xs,borderColor:Xp.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:Xp.colors.error.main}},_disabled:{labelTextColor:Xp.colors.surface.light,borderColor:Xp.colors.surface.light,valueTextColor:Xp.colors.surface.light,placeholderTextColor:Xp.colors.surface.light,helperTextColor:Xp.colors.surface.light,backgroundColor:Xp.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},_p),eh=st(Sp),ih=zo.cssVarList,oh={[ih.hostWidth]:th.width,[ih.hostDirection]:th.direction,[ih.fontSize]:th.fontSize,[ih.fontFamily]:th.fontFamily,[ih.labelFontSize]:th.labelFontSize,[ih.labelFontWeight]:th.labelFontWeight,[ih.inputValueFontWeight]:th.inputValueFontWeight,[ih.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[ih.helperTextFontWeight]:th.helperTextFontWeight,[ih.errorMessageFontWeight]:th.errorMessageFontWeight,[ih.labelTextColor]:th.labelTextColor,[ih.errorMessageTextColor]:th.errorMessageTextColor,[ih.inputBorderColor]:th.borderColor,[ih.inputBorderWidth]:th.borderWidth,[ih.inputBorderStyle]:th.borderStyle,[ih.inputBorderRadius]:th.borderRadius,[ih.inputOutlineColor]:th.outlineColor,[ih.inputOutlineOffset]:th.outlineOffset,[ih.inputOutlineWidth]:th.outlineWidth,[ih.inputOutlineStyle]:th.outlineStyle,[ih.labelRequiredIndicator]:th.requiredIndicator,[ih.inputValueTextColor]:th.valueTextColor,[ih.inputPlaceholderTextColor]:th.placeholderTextColor,[ih.inputBackgroundColor]:th.backgroundColor,[ih.inputHorizontalPadding]:th.horizontalPadding,[ih.inputHeight]:th.inputHeight,[ih.inputDropdownButtonColor]:eh.colors.surface.dark,[ih.inputDropdownButtonCursor]:"pointer",[ih.inputDropdownButtonSize]:th.toggleButtonSize,[ih.inputDropdownButtonOffset]:eh.spacing.xs,[ih.overlayItemPaddingInlineStart]:eh.spacing.xs,[ih.overlayItemPaddingInlineEnd]:eh.spacing.lg,[ih.labelPosition]:th.labelPosition,[ih.labelTopPosition]:th.labelTopPosition,[ih.labelHorizontalPosition]:th.labelHorizontalPosition,[ih.inputTransformY]:th.inputTransformY,[ih.inputTransition]:th.inputTransition,[ih.marginInlineStart]:th.marginInlineStart,[ih.placeholderOpacity]:th.placeholderOpacity,[ih.inputVerticalAlignment]:th.inputVerticalAlignment,[ih.valueInputHeight]:th.valueInputHeight,[ih.valueInputMarginBottom]:th.valueInputMarginBottom,[ih.errorMessageIcon]:th.errorMessageIcon,[ih.errorMessageIconSize]:th.errorMessageIconSize,[ih.errorMessageIconPadding]:th.errorMessageIconPadding,[ih.errorMessageIconRepeat]:th.errorMessageIconRepeat,[ih.errorMessageIconPosition]:th.errorMessageIconPosition,[ih.errorMessageFontSize]:th.errorMessageFontSize,_readonly:{[ih.inputDropdownButtonCursor]:"default"},[ih.overlayFontSize]:th.fontSize,[ih.overlayFontFamily]:th.fontFamily,[ih.overlayCursor]:"pointer",[ih.overlayItemBoxShadow]:"none",[ih.overlayBackground]:th.backgroundColor,[ih.overlayTextColor]:th.valueTextColor,[ih.overlayCheckmarkDisplay]:"initial",[ih.overlaySelectedItemBackground]:"initial",[ih.overlaySelectedItemHoverBackground]:eh.colors.primary.highlight,[ih.overlaySelectedItemFocusBackground]:eh.colors.primary.highlight,[ih.overlayItemHoverBackground]:eh.colors.primary.highlight,[ih.overlayItemFocusBackground]:eh.colors.primary.highlight,[ih.overlay.margin]:"0",[ih.overlay.contentHeight]:"100%",[ih.overlay.contentOpacity]:"1",[ih.overlay.scrollerMinHeight]:"1px",_loading:{[ih.overlay.loaderTop]:"50%",[ih.overlay.loaderLeft]:"50%",[ih.overlay.loaderRight]:"auto",[ih.overlay.loaderMargin]:"-15px 0 0 -15px",[ih.overlay.loaderWidth]:"30px",[ih.overlay.loaderHeight]:"30px",[ih.overlay.loaderBorder]:"2px solid transparent",[ih.overlay.loaderBorderColor]:`${eh.colors.primary.highlight} ${eh.colors.primary.highlight} ${eh.colors.primary.main} ${eh.colors.primary.main}`,[ih.overlay.loaderBorderRadius]:"50%",[ih.overlay.contentHeight]:"100px",[ih.overlay.scrollerMinHeight]:"100px",[ih.overlay.contentOpacity]:"0"}};var nh=Object.freeze({__proto__:null,comboBox:oh,default:oh,vars:ih});const rh=st(Sp),[sh,ah]=lt({shadowColor:"#00000020"},wc),{shadowColor:lh}=ah,dh=Lc.cssVarList,ch={...sh,[dh.hostWidth]:"fit-content",[dh.hostDirection]:rh.direction,[dh.textAlign]:"center",[dh.fontFamily]:rh.fonts.font1.family,[dh.fontWeight]:"400",[dh.verticalPadding]:"0.25em",[dh.horizontalPadding]:"0.5em",[dh.borderWidth]:rh.border.xs,[dh.borderRadius]:rh.radius.xs,[dh.borderColor]:"transparent",[dh.borderStyle]:"solid",_fullWidth:{[dh.hostWidth]:"100%"},size:{xs:{[dh.fontSize]:"12px"},sm:{[dh.fontSize]:"14px"},md:{[dh.fontSize]:"16px"},lg:{[dh.fontSize]:"18px"}},variant:{contained:{[dh.backgroundColor]:rh.colors.surface.main}},_shrinkToIndicator:{[dh.hostWidth]:"13px",[dh.hostHeight]:"13px",[dh.borderRadius]:"50%",[dh.fontSize]:"0",[dh.textIndent]:"-9999px"},mode:{default:{[dh.textColor]:rh.colors.surface.dark,_bordered:{[dh.borderColor]:rh.colors.surface.light}},primary:{[dh.textColor]:rh.colors.primary.main,_bordered:{[dh.borderColor]:rh.colors.primary.light}},secondary:{[dh.textColor]:rh.colors.secondary.main,_bordered:{[dh.borderColor]:rh.colors.secondary.light}},error:{[dh.textColor]:rh.colors.error.main,_bordered:{[dh.borderColor]:rh.colors.error.light}},success:{[dh.textColor]:rh.colors.success.main,_bordered:{[dh.borderColor]:rh.colors.success.light}}},shadow:{sm:{[dh.boxShadow]:`${rh.shadow.wide.sm} ${lh}, ${rh.shadow.narrow.sm} ${lh}`},md:{[dh.boxShadow]:`${rh.shadow.wide.md} ${lh}, ${rh.shadow.narrow.md} ${lh}`},lg:{[dh.boxShadow]:`${rh.shadow.wide.lg} ${lh}, ${rh.shadow.narrow.lg} ${lh}`},xl:{[dh.boxShadow]:`${rh.shadow.wide.xl} ${lh}, ${rh.shadow.narrow.xl} ${lh}`}}};var uh=Object.freeze({__proto__:null,default:ch,vars:dh});const ph=f("avatar");class hh extends(jt({componentName:ph,baseSelector:":host > .wrapper"})){constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <vaadin-avatar></vaadin-avatar>\n <div class="editableBadge">\n <vaadin-icon icon="vaadin:pencil"></vaadin-icon>\n </div>\n </div>\n\t\t',O("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .editableBadge {\n border: 1px solid;\n border-radius: 100%;\n height: fit-content;\n width: 25%;\n height: 25%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n inset-inline-end: 0;\n }\n\n vaadin-icon {\n color: currentcolor;\n }\n\n vaadin-avatar {\n width: 100%;\n height: 100%;\n margin: 0;\n border: none\n }\n\n .wrapper {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 100%;\n }\n ",this),this.avatarComponent=this.shadowRoot.querySelector("vaadin-avatar"),k(this,this.avatarComponent,{includeAttrs:["display-name","img","abbr"],mapAttrs:{"display-name":"name"}});const t=this.shadowRoot.querySelector(".editableBadge");C(this,()=>{t.style.display=this.isEditable?"":"none"},{includeAttrs:["editable"]})}get isEditable(){return"true"===this.getAttribute("editable")}}const{host:gh,editableBadge:Mh,avatar:mh}={host:{selector:()=>":host"},editableBadge:{selector:"> .editableBadge"},avatar:{selector:"vaadin-avatar"}},yh=T(Mt({mappings:{hostWidth:[{...gh,property:"width"},{...gh,property:"min-width"}],hostHeight:{...gh,property:"height"},cursor:[mh,gh],hostDirection:{...gh,property:"direction"},avatarTextColor:{...mh,property:"color"},avatarBackgroundColor:{...mh,property:"background-color"},editableIconColor:{...Mh,property:"color"},editableBorderColor:{...Mh,property:"border-color"},editableBackgroundColor:{...Mh,property:"background-color"}}}),mt,yt)(hh),bh=st(Sp),Nh=yh.cssVarList,Ih={[Nh.hostDirection]:bh.direction,[Nh.editableIconColor]:bh.colors.surface.dark,[Nh.editableBorderColor]:bh.colors.surface.dark,[Nh.editableBackgroundColor]:bh.colors.surface.main,[Nh.avatarTextColor]:bh.colors.surface.main,[Nh.avatarBackgroundColor]:bh.colors.surface.dark,_editable:{[Nh.cursor]:"pointer"},size:{xs:{[Nh.hostWidth]:"30px",[Nh.hostHeight]:"30px"},sm:{[Nh.hostWidth]:"40px",[Nh.hostHeight]:"40px"},md:{[Nh.hostWidth]:"60px",[Nh.hostHeight]:"60px"},lg:{[Nh.hostWidth]:"98px",[Nh.hostHeight]:"98px"},xl:{[Nh.hostWidth]:"120px",[Nh.hostHeight]:"120px"},"2xl":{[Nh.hostWidth]:"140px",[Nh.hostHeight]:"140px"}}},xh={...Nh};var jh=Object.freeze({__proto__:null,default:Ih,vars:xh});const Th=Eo.cssVarList;var Dh=Object.freeze({__proto__:null,default:{},vars:Th});const vh=Lo.cssVarList;var zh=Object.freeze({__proto__:null,default:{},vars:vh});const Ch=f("apps-list"),Sh=T(Mt({mappings:{maxHeight:{selector:()=>":host"},minHeight:{selector:()=>":host"},hostDirection:{selector:()=>":host",property:"direction"},gap:{selector:bu.componentName,property:bu.cssVarList.gap},maxRowItems:{selector:bu.componentName,property:bu.cssVarList.maxRowItems},itemsFontWeight:{selector:ki.componentName,property:ki.cssVarList.fontWeightOverride},itemsFontSize:{selector:ki.componentName,property:ki.cssVarList.fontSizeOverride},itemsTextAlign:{selector:ki.componentName,property:ki.cssVarList.textAlign},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},logoBackgroundColor:{selector:yh.componentName,property:yh.cssVarList.avatarBackgroundColorOverride},logoTextColor:{selector:yh.componentName,property:yh.cssVarList.avatarTextColorOverride},itemHoverBackgroundColor:{selector:`${Mu.componentName}:hover`,property:Mu.cssVarList.backgroundColor},backgroundColor:{selector:bu.componentName,property:bu.cssVarList.backgroundColorOverride},itemBorderStyle:{selector:Mu.componentName,property:Mu.cssVarList.borderStyleOverride},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColorOverride},itemBorderWidth:{selector:Mu.componentName,property:Mu.cssVarList.borderWidthOverride},itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPaddingOverride},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPaddingOverride},itemAlignment:[{selector:()=>".avatar-wrapper",property:"text-align"},{selector:ki.componentName,property:ki.cssVarList.textAlign}]}}),Yt({itemRenderer:({name:t,icon:e,url:i},o,n)=>{const r=document.createElement("template");r.innerHTML=`\n <a ${n.openInSameWindow?"":'target="_blank"'}>\n <descope-list-item>\n <div class="avatar-wrapper">\n <descope-avatar\n size="${n.logoSize||n.size}"\n ></descope-avatar>\n </div>\n <descope-text\n variant="${n.itemTextVariant}"\n mode="primary"\n ></descope-text>\n </descope-list-item>\n </a>\n`;const s=r.content.querySelector("a"),a=z(i);a&&(s.setAttribute("href",a),s.setAttribute("title",a));const l=r.content.querySelector("descope-avatar"),d=z(e,{allowDataImage:!0});return d&&l.setAttribute("img",d),t&&(l.setAttribute("display-name",t),l.setAttribute("abbr",R(t))),r.content.querySelector("descope-text").textContent=t??"",r},rerenderAttrsList:["size","item-text-variant","logo-size","open-in-same-window"]}),mt,yt,t=>class extends t{get size(){return this.getAttribute("size")||"sm"}get itemTextVariant(){return this.getAttribute("item-text-variant")||"body1"}get logoSize(){return this.getAttribute("logo-size")}get openInSameWindow(){return"true"===this.getAttribute("open-in-same-window")}})(ft({slots:["empty-state"],wrappedEleName:"descope-list",excludeAttrsSync:["tabindex","class","empty","style"],componentName:Ch,style:()=>`\n :host {\n width: 100%;\n display: inline-flex;\n }\n\n descope-text::part(text-wrapper) {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n descope-list-item[variant="tile"] .avatar-wrapper {\n width: 100%;\n }\n\n .avatar-wrapper {\n line-height: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n descope-text {\n ${ki.cssVarList.hostDirection}: var(${Sh.cssVarList.hostDirection});\n max-width: 100%;\n width: 100%;\n }\n `})),wh=Sh.cssVarList,Ah=st(Sp),Lh="400px",fh={[wh.itemsTextAlign]:"start",[wh.hostDirection]:Ah.direction,[wh.maxHeight]:Lh,[wh.itemHoverBackgroundColor]:Ah.colors.surface.highlight,_empty:{[wh.minHeight]:Lh},size:{xs:{[wh.itemsFontSize]:"14px",[wh.itemsFontWeight]:"normal"},sm:{[wh.itemsFontSize]:"14px",[wh.itemsFontWeight]:"normal"},md:{[wh.itemsFontSize]:"16px",[wh.itemsFontWeight]:"normal"},lg:{[wh.itemsFontSize]:"20px",[wh.itemsFontWeight]:"normal"}},itemPadding:{xs:{[wh.itemVerticalPadding]:Ah.spacing.xs,[wh.itemHorizontalPadding]:Ah.spacing.xs},sm:{[wh.itemVerticalPadding]:Ah.spacing.sm,[wh.itemHorizontalPadding]:Ah.spacing.sm},md:{[wh.itemVerticalPadding]:Ah.spacing.md,[wh.itemHorizontalPadding]:Ah.spacing.md},lg:{[wh.itemVerticalPadding]:Ah.spacing.lg,[wh.itemHorizontalPadding]:Ah.spacing.lg},xl:{[wh.itemVerticalPadding]:Ah.spacing.xl,[wh.itemHorizontalPadding]:Ah.spacing.xl}}};var Eh=Object.freeze({__proto__:null,default:fh,vars:wh});const kh=st(Sp),Oh=bu.cssVarList,[Vh,Wh,Rh]=lt({shadowColor:"#00000020"},mu),{shadowColor:Uh}=Wh,Yh={...Vh,[Oh.hostWidth]:"100%",[Oh.backgroundColor]:kh.colors.surface.main,[Oh.fontFamily]:kh.fonts.font1.family,[Oh.borderColor]:kh.colors.surface.light,[Oh.borderStyle]:"solid",[Oh.borderWidth]:kh.border.xs,[Oh.borderRadius]:kh.radius.sm,[Oh.gap]:kh.spacing.md,[Oh.verticalPadding]:kh.spacing.lg,[Oh.horizontalPadding]:kh.spacing.lg,[Oh.boxShadow]:`${kh.shadow.wide.sm} ${Uh}, ${kh.shadow.narrow.sm} ${Uh}`,[Oh.maxHeight]:"100%",[Oh.hostDirection]:kh.direction,[Oh.minItemsWidth]:"150px",[Oh.maxRowItems]:"1000",_empty:{[Oh.minHeight]:"150px",[Oh.emptyStateTextColor]:kh.colors.surface.dark,[Oh.emptyStateTextFontFamily]:kh.fonts.font1.family},variant:{tiles:{[Oh.gridTemplateColumns]:`repeat(auto-fit, minmax(\n max(\n min(${at(Oh.minItemsWidth)}, 100%),\n calc((100% - (${at(Oh.maxRowItems)} - 1) * ${at(Oh.gap)}) / ${at(Oh.maxRowItems)})),\n 1fr))`,[Oh.maxItemsWidth]:"200px",[Oh.itemsHorizontalAlign]:"center"}},gap:{xs:{[Oh.gap]:kh.spacing.xs},sm:{[Oh.gap]:kh.spacing.sm},md:{[Oh.gap]:kh.spacing.md},lg:{[Oh.gap]:kh.spacing.lg},xl:{[Oh.gap]:kh.spacing.xl}}},Qh={...Oh,...Rh};var Ph=Object.freeze({__proto__:null,default:Yh,vars:Qh});const Bh=st(Sp),Zh=Mu.cssVarList,Fh={[Zh.backgroundColor]:Bh.colors.surface.main,[Zh.verticalPadding]:Bh.spacing.lg,[Zh.horizontalPadding]:Bh.spacing.lg,[Zh.gap]:Bh.spacing.md,[Zh.borderStyle]:"solid",[Zh.borderWidth]:Bh.border.xs,[Zh.borderColor]:Bh.colors.surface.main,[Zh.borderRadius]:Bh.radius.sm,[Zh.cursor]:"pointer",[Zh.alignItems]:"center",[Zh.flexDirection]:"row",[Zh.transition]:"border-color 0.2s, background-color 0.2s",variant:{tile:{[Zh.alignItems]:"flex-start",[Zh.flexDirection]:"column",[Zh.borderColor]:Bh.colors.surface.light}},_hover:{[Zh.backgroundColor]:Bh.colors.surface.highlight},_active:{[Zh.backgroundColor]:Bh.colors.surface.main,[Zh.borderColor]:Bh.colors.primary.light,[Zh.outline]:`1px solid ${Bh.colors.primary.light}`}};var Gh=Object.freeze({__proto__:null,default:Fh,vars:Zh});const Hh=f("multi-select-combo-box"),{host:Jh,inputField:$h,inputElement:qh,placeholder:_h,toggle:Xh,clearButton:Kh,label:tg,requiredIndicator:eg,helperText:ig,errorMessage:og,chip:ng,chipLabel:rg,overflowChipFirstBorder:sg,overflowChipSecondBorder:ag}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},chip:{selector:"vaadin-multi-select-combo-box-chip"},chipLabel:{selector:"vaadin-multi-select-combo-box-chip::part(label)"},overflowChipFirstBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::before"},overflowChipSecondBorder:{selector:"vaadin-multi-select-combo-box-chip[slot='overflow']::after"}},lg=T(Mt({mappings:{hostWidth:{...Jh,property:"width"},hostDirection:{...Jh,property:"direction"},fontSize:[{},Jh],chipFontSize:{...rg,property:"font-size"},fontFamily:[tg,_h,$h,ig,og,rg],labelFontSize:{...tg,property:"font-size"},labelFontWeight:{...tg,property:"font-weight"},inputValueFontWeight:{...$h,property:"font-weight"},inputPlaceholderFontWeight:{..._h,property:"font-weight"},helperTextFontWeight:{...ig,property:"font-weight"},errorMessageFontWeight:{...og,property:"font-weight"},labelTextColor:[{...tg,property:"color"},{...eg,property:"color"}],errorMessageTextColor:{...og,property:"color"},errorMessageIcon:{...og,property:"background-image"},errorMessageIconSize:{...og,property:"background-size"},errorMessageIconPadding:{...og,property:"padding-inline-start"},errorMessageIconRepeat:{...og,property:"background-repeat"},errorMessageIconPosition:{...og,property:"background-position"},errorMessageFontSize:{...og,property:"font-size"},inputHeight:{...$h,property:"min-height"},inputBackgroundColor:{...$h,property:"background-color"},inputBorderColor:{...$h,property:"border-color"},inputBorderWidth:{...$h,property:"border-width"},inputBorderStyle:{...$h,property:"border-style"},inputBorderRadius:{...$h,property:"border-radius"},labelRequiredIndicator:{...eg,property:"content"},inputValueTextColor:{...$h,property:"color"},inputPlaceholderTextColor:{..._h,property:"color"},inputDropdownButtonCursor:[{...Xh,property:"cursor"},{...Kh,property:"cursor"}],inputDropdownButtonColor:[{...Xh,property:"color"},{...Kh,property:"color"}],inputDropdownButtonSize:[{...Xh,property:"font-size"},{...Kh,property:"font-size"}],inputDropdownButtonOffset:[{...Xh,property:"margin-right"},{...Xh,property:"margin-left"}],inputOutlineColor:{...$h,property:"outline-color"},inputOutlineWidth:{...$h,property:"outline-width"},inputOutlineStyle:{...$h,property:"outline-style"},inputOutlineOffset:{...$h,property:"outline-offset"},inputHorizontalPadding:[{...qh,property:"padding-left"},{...qh,property:"padding-right"},{...$h,property:"padding-inline-start"}],inputVerticalPadding:[{...$h,property:"padding-top"},{...$h,property:"padding-bottom"}],chipTextColor:{...rg,property:"color"},chipBackgroundColor:[{...ng,property:"background-color"},{...sg,property:"border-color"},{...ag,property:"border-color"}],labelPosition:{...tg,property:"position"},labelTopPosition:{...tg,property:"top"},labelLeftPosition:{...tg,property:"left"},labelHorizontalPosition:[{...tg,property:"left"},{...tg,property:"right"}],inputTransformY:{...tg,property:"transform"},inputTransition:{...tg,property:"transition"},marginInlineStart:{...tg,property:"margin-inline-start"},placeholderOpacity:{..._h,property:"opacity"},inputVerticalAlignment:{...$h,property:"align-items"},overlayBackground:{property:()=>lg.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>lg.cssVarList.overlay.textColor},overlayBorder:{property:()=>lg.cssVarList.overlay.border},overlayFontSize:{property:()=>lg.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>lg.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>lg.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>lg.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>lg.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>lg.cssVarList.overlay.itemPaddingInlineEnd}}}),mt,Wt({name:"overlay",selector:"vaadin-multi-select-combo-box-internal",mappings:{backgroundColor:{selector:"vaadin-multi-select-combo-box-scroller"},minHeight:{selector:"vaadin-multi-select-combo-box-overlay"},margin:{selector:"vaadin-multi-select-combo-box-overlay"},cursor:{selector:"vaadin-multi-select-combo-box-item"},fontFamily:{selector:"vaadin-multi-select-combo-box-item"},textColor:{selector:"vaadin-multi-select-combo-box-item",property:"color"},fontSize:{selector:"vaadin-multi-select-combo-box-item"},itemBoxShadow:{selector:"vaadin-multi-select-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-multi-select-combo-box-item",property:"padding-inline-end"}},forward:{include:!1,attributes:["size"]}}),Vt({proxyProps:["selectionStart"],inputEvent:"selected-items-changed"}),Dt,yt,t=>class extends t{static get observedAttributes(){return["readonly"]}#tt=({displayName:t,value:e,label:i})=>{const o=document.createElement("span");return o.setAttribute("data-name",i),o.setAttribute("data-id",e),o.textContent=t||i,o.outerHTML};#R;#xe=[];get defaultValues(){const t=this.getAttribute("default-values");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "default-values" -',t.message)}return[]}get renderItem(){return this.#tt}set renderItem(t){this.#tt=t,this.renderItems()}get data(){if(this.#R)return this.#R;const t=this.getAttribute("data");if(t)try{const e=JSON.parse(t);if(this.isValidDataType(e))return e}catch(t){console.error('could not parse data string from attribute "data" -',t.message)}return[]}set data(t){this.isValidDataType(t)&&(this.#R=t,this.renderItems())}get allowCustomValues(){return"true"===this.getAttribute("allow-custom-value")}get minItemsSelection(){return parseInt(this.getAttribute("min-items-selection"),10)||0}get maxItemsSelection(){return parseInt(this.getAttribute("max-items-selection"),10)||0}isValidDataType(t){const e=Array.isArray(t);return e||console.error("data and default-values must be an array, received:",t),e}getItemsTemplate(){return this.data?.reduce?.((t,e)=>t+(this.renderItem?.(e||{})||""),"")}#je(){if(this.#R)return!0;const t=this.getAttribute("data");if(!t)return!1;try{return Array.isArray(JSON.parse(t))}catch{return!1}}renderItems(){const t=this.getItemsTemplate();t?this.innerHTML=t:this.#je()&&(this.innerHTML="")}updateSelectedItems(){const t=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[];t.length>0&&(this.value=t),0===this.value.length&&this.setDefaultValues()}customValueTransformFn(t){return t}setComboBoxDescriptor(){const t=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),e=this;Object.defineProperties(this.inputElement,{value:{...t,set(i){const o=e.customValueTransformFn(i)||"";o!==this.value&&t.set.call(this,o)}}})}#Te(t){return Array.from(new Map(t.map(t=>[t.getAttribute("data-id"),t])).values())}#et(){const t=Array.from(this.children),e=this.#Te(t);t.length?(this.removeAttribute("has-no-options"),e.forEach(t=>{Object.defineProperty(t,"data-name",{value:t.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(t,"data-id",{value:t.getAttribute("data-id"),configurable:!0,writable:!0})}),this.baseElement.items=e,setTimeout(()=>{this.updateSelectedItems()},0)):(this.baseElement.items=[],this.setAttribute("has-no-options","")),this.baseElement.renderer=(t,e,i)=>{t.innerHTML=i.item.outerHTML}}#it(){const t=this.baseElement.shadowRoot.querySelector("vaadin-multi-select-combo-box-internal").shadowRoot.querySelector("vaadin-multi-select-combo-box-overlay");t._attachOverlay=()=>{t.bringToFront()},t._detachOverlay=()=>{},t._enterModalState=()=>{}}#De(){this.allowCustomValues&&this.baseElement.addEventListener("custom-value-set",t=>{const e=this.#tt({label:t.detail,displayName:t.detail,value:t.detail});this.innerHTML+=e,this.baseElement._lastFilter="",setTimeout(()=>{this.value=[...this.value,t.detail]},0)})}setGetValidity(){this.getValidity=function(){if(this.pattern){const t=new RegExp(this.pattern);if(this.value.some(e=>!t.test(e)))return{patternMismatch:!0}}return this.isRequired&&!this.value.length?{valueMissing:!0}:this.isRequired&&this.minItemsSelection&&this.value.length<this.minItemsSelection?{rangeUnderflow:!0}:this.maxItemsSelection&&this.value.length>this.maxItemsSelection?{rangeOverflow:!0}:{}};const t=this;this.baseElement.checkValidity=()=>t.validity.valid}init(){super.init?.(),this.setGetValidity(),this.#De(),this.renderItems(),C(this,this.renderItems.bind(this),{includeAttrs:["data"]}),S(this,this.#et.bind(this)),k(this,this.baseElement,{includeAttrs:["placeholder"]}),setTimeout(()=>{this.setComboBoxDescriptor(),this.#it()}),this.setDefaultValues(),this.baseElement.addEventListener("selected-items-changed",()=>{this.#ve(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0}))})}setDefaultValues(){this.defaultValues.length>0&&(this.value=this.defaultValues)}#ve(){this.#xe=this.baseElement.selectedItems?.map(t=>t.getAttribute("data-id"))||[]}set value(t){if(t&&t.length>0){const e=this.baseElement.items?.filter(e=>t.includes(e["data-id"]));if(this.allowCustomValues){const i=e?.map(t=>t.getAttribute("data-id"))||[],o=t.filter(t=>!i.includes(t));if(o.length){const e=o.reduce((t,e)=>t+this.#tt({label:e,displayName:e,value:e}),"");return this.innerHTML+=e,void setTimeout(()=>{this.value=t},0)}}const i=e?.map(t=>t.getAttribute("data-id"))||[];((t,e)=>{if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;const i=t.slice().sort(),o=e.slice().sort();for(let t=0;t<i.length;t++)if(i[t]!==o[t])return!1;return!0})(this.#xe,i)||(this.baseElement.selectedItems=e)}else this.baseElement.selectedItems=[]}get value(){return this.#xe}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"readonly"===t&&this.onReadOnlyChange(null!==i&&"true"===i)}onReadOnlyChange(t){t?this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.setAttribute("inert",t):this.baseElement?.shadowRoot?.querySelector("vaadin-multi-select-combo-box-internal")?.removeAttribute("inert")}})(ft({slots:["","prefix"],wrappedEleName:"vaadin-multi-select-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${_(lg.cssVarList)}\n\t\t${tt("vaadin-multi-select-combo-box")}\n\t\t${K("vaadin-multi-select-combo-box")}\n\t\t${X("vaadin-multi-select-combo-box")}\n\n\t\tvaadin-multi-select-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-multi-select-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-multi-select-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n align-self: center;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\tvaadin-multi-select-combo-box[readonly] [slot="input"] {\n flex-grow: 1;\n flex-basis: 4em;\n\t\t}\n\n\t\t::part(input-field) {\n padding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n ${it("vaadin-multi-select-combo-box")}\n :host([has-label]) vaadin-multi-select-combo-box-chip::part(label) {\n display: block;\n }\n\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::before,\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -4px;\n right: -4px;\n border-left-width: 0;\n border-inline-start-style: solid;\n border-inline-start-width: 2px;\n }\n vaadin-multi-select-combo-box vaadin-multi-select-combo-box-chip[slot='overflow']::after {\n left: -8px;\n right: -8px;\n }\n\n :host([has-no-options][allow-custom-value='true']) ::part(toggle-button) {\n display: none;\n }\n\n \n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n \n\n vaadin-multi-select-combo-box::part(toggle-button),\n vaadin-multi-select-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-multi-select-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n\t\t`,excludeAttrsSync:["tabindex","size","data","placeholder","style"],componentName:Hh,includeForwardProps:["items","renderer","selectedItems"]})),dg=f("multi-line-mappings"),cg=jt({componentName:dg}),ug=t=>null==t?"":String("object"==typeof t?t.value??t.id??t.label??"":t),pg=t=>[...new Set(t.map(ug).filter(Boolean))],hg=t=>{const e=ug(t);return"object"==typeof t&&null!==t?{...t,value:e,label:String(t.label??t.displayName??e)}:{value:e,label:e}},gg=t=>{if(!Array.isArray(t))return[];const e=new Set;return t.map(hg).filter(t=>!(!t.value||e.has(t.value)||(e.add(t.value),0)))},Mg=(t=[],e=[])=>t.length===e.length&&t.every((t,i)=>t===e[i]),mg={selector:()=>":host"},yg={selector:".row"},bg={selector:".add-action"},Ng=T(Mt({mappings:{hostWidth:{...mg,property:"width"},hostDirection:[{...mg,property:"direction"},{selector:lg.componentName,property:lg.cssVarList.hostDirection},{selector:Uo.componentName,property:Uo.cssVarList.hostDirection}],rowsGap:{selector:".rows",property:"gap"},rowGap:{...yg,property:"gap"},rowAlignItems:{...yg,property:"align-items"},rowWrap:{...yg,property:"flex-wrap"},addActionJustifyContent:{...bg,property:"justify-content"},addActionMarginTop:{...bg,property:"margin-top"}}}),mt)(class extends cg{static get observedAttributes(){return["data","max-rows","size","disabled","readonly","first-value-key","second-value-key","first-label","second-label","first-placeholder","second-placeholder","full-width","merge-rows"]}#ze=[{firstValues:[],secondValues:[]}];#Ce=null;#Se=[];#we={};constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="rows"></div>\n <div class="add-action">\n <descope-button\n class="add-button"\n variant="link"\n mode="primary"\n >\n <slot name="add-button-content">Add line</slot>\n </descope-button>\n </div>\n </div>\n ',O("\n :host {\n display: inline-flex;\n box-sizing: border-box;\n max-width: 100%;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .rows > .row {\n display: flex;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n align-items: flex-end;\n }\n\n .row descope-multi-select-combo-box {\n flex: 1 1 0;\n box-sizing: border-box;\n }\n\n .row .remove-button {\n flex: 0 0 auto;\n align-self: flex-end;\n }\n\n .row:only-child .remove-button {\n display: none;\n pointer-events: none;\n }\n\n .add-action {\n display: flex;\n }\n ",this),this.rowsElement=this.shadowRoot.querySelector(".rows"),this.addButtonElement=this.shadowRoot.querySelector(".add-button")}get size(){return this.getAttribute("size")||"md"}get firstValueKey(){return this.getAttribute("first-value-key")||"firstValues"}get secondValueKey(){return this.getAttribute("second-value-key")||"secondValues"}get firstLabel(){return this.getAttribute("first-label")||""}get secondLabel(){return this.getAttribute("second-label")||""}get firstPlaceholder(){return this.getAttribute("first-placeholder")||""}get secondPlaceholder(){return this.getAttribute("second-placeholder")||""}get disabled(){return"true"===this.getAttribute("disabled")}get readonly(){return"true"===this.getAttribute("readonly")}get mergeRows(){return"true"===this.getAttribute("merge-rows")}get maxRows(){const t=Number(this.getAttribute("max-rows"));return Number.isFinite(t)&&t>0?t:void 0}get data(){return this.#we}get value(){return this.#ze.filter(t=>t.firstValues.length>0||t.secondValues.length>0).flatMap(t=>(t.firstValues.length?t.firstValues:[""]).map(e=>({[this.firstValueKey]:e,[this.secondValueKey]:[...t.secondValues]})))}set value(t){this.#Ce=t,this.#ze=this.#Ae(t),this.#Le(),this.#fe()}#Ee(t){const e=((t,e,i="unknown")=>{if("string"!=typeof t||!t?.trim())return e;try{return JSON.parse(t)}catch(t){return console.error(`[descope-multi-line-mappings] Failed to parse JSON from "${i}"`,t),e}})(t,{},"data attribute"),i=e&&"object"==typeof e&&!Array.isArray(e)?e:{};this.#Se=Object.entries(i).map(([t,e])=>{const i=String(t),o=null!=e&&"object"==typeof e&&!Array.isArray(e),n=o?e.options??[]:e;return{value:i,label:o&&null!=e.label?String(e.label):i,options:gg(n)}}),this.#we=Object.fromEntries(this.#Se.map(({value:t,options:e})=>[t,e]))}init(){super.init?.(),this.#ke(),this.addButtonElement.addEventListener("click",()=>this.#Oe()),this.#fe()}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i){if("data"===t)return this.#Ee(i),this.#Le(),void this.#fe();if("size"===t)return[...this.#Ve(),...this.#We()].forEach(t=>t.setAttribute("size",this.size)),this.#ke(),void this.#Re();if(["disabled","readonly"].includes(t))return this.#Ve().forEach(t=>{t[this.disabled?"setAttribute":"removeAttribute"]("disabled","true"),t[this.readonly?"setAttribute":"removeAttribute"]("readonly","true")}),this.#We().forEach(t=>t[this.disabled||this.readonly?"setAttribute":"removeAttribute"]("disabled","true")),void this.#Re();if(["first-label","second-label"].includes(t)){const e="first-label"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("label",i):o?.removeAttribute("label")})}if(["first-placeholder","second-placeholder"].includes(t)){const e="first-placeholder"===t?"first":"second";return void Array.from(this.rowsElement.children).forEach(t=>{const o=t.querySelector(`.${e}-combo`);i?o?.setAttribute("placeholder",i):o?.removeAttribute("placeholder")})}"max-rows"===t&&this.#Re(),"merge-rows"===t&&null!==this.#Ce&&(this.#ze=this.#Ae(this.#Ce),this.#Le(),this.#fe())}}#Ve(){return Array.from(this.rowsElement.querySelectorAll("descope-multi-select-combo-box"))}#We(){return Array.from(this.rowsElement.querySelectorAll(".remove-button"))}#Oe(){if(this.disabled||this.readonly||this.#Ue())return;const t={firstValues:[],secondValues:[]};this.#ze=[...this.#ze,t],this.rowsElement.append(this.#Ye(t)),this.#Re()}#Ae(t){if(!Array.isArray(t)||!t.length)return[{firstValues:[],secondValues:[]}];let e=t.map(t=>{const e=t?.[this.firstValueKey];return{firstValues:null!=e&&""!==String(e)?[String(e)]:[],secondValues:pg(t?.[this.secondValueKey]??[])}});if(this.mergeRows){const t=new Map;for(const i of e){const e=[...i.secondValues].sort().join("\0");t.has(e)?t.get(e).firstValues.push(...i.firstValues):t.set(e,{firstValues:[...i.firstValues],secondValues:i.secondValues})}e=[...t.values()]}return e}#Le(){const t=new Set(this.#Se.map(t=>t.value));this.#ze=this.#ze.map(e=>{const i=e.firstValues.filter(e=>t.has(e)),o=this.#Qe(i),n=new Set(o.map(t=>t.value));return{firstValues:i,secondValues:e.secondValues.filter(t=>n.has(t))}})}#Qe(t){const e=t.length?t.map(t=>this.#we[t]||[]).filter(t=>t.length):Object.values(this.#we).filter(t=>t.length);if(!e.length||t.length&&e.length!==t.length)return[];if(1===e.length)return e[0];const[i,...o]=e,n=new Set(i.map(t=>t.value));for(const t of o){const e=new Set(t.map(t=>t.value));for(const t of n)e.has(t)||n.delete(t)}return i.filter(t=>n.has(t.value))}#Pe({getRowIndex:t,type:e,label:i,placeholder:o,options:n,selectedValues:r}){const s=document.createElement("descope-multi-select-combo-box");return s.className=`combo ${e}-combo`,s.setAttribute("size",this.size),s.setAttribute("bordered","true"),s.setAttribute("item-label-path","data-name"),s.setAttribute("item-value-path","data-id"),i&&s.setAttribute("label",i),o&&s.setAttribute("placeholder",o),this.disabled&&s.setAttribute("disabled","true"),this.readonly&&s.setAttribute("readonly","true"),s.data=n,this.#Be(s,r),s.addEventListener("input",()=>{if(s.__descopeSyncingSelection)return;const i=t();-1!==i&&this.#Ze({rowIndex:i,type:e,selectedValues:pg(s.value||[])})}),s}#Be(t,e){t.__descopeSyncingSelection=!0,Promise.resolve().then(()=>{const i=new Set(e||[]);t.selectedItems=(t.items||[]).filter(t=>i.has(t["data-id"]||t.getAttribute?.("data-id"))),t.__descopeSyncingSelection=!1})}#Fe(t){const e=document.createElement("descope-button");return e.className="remove-button",e.setAttribute("variant","link"),e.setAttribute("mode","primary"),e.setAttribute("size",this.size),e.setAttribute("aria-label","Remove row"),e.innerHTML='<vaadin-icon icon="vaadin:minus"></vaadin-icon>',(this.disabled||this.readonly)&&e.setAttribute("disabled","true"),e.addEventListener("click",()=>{const e=t();-1!==e&&this.#Ge(e)}),e}#fe(){this.rowsElement.innerHTML="",this.#ze.forEach(t=>{this.rowsElement.append(this.#Ye(t))}),this.#Re()}#Ye(t){const e=document.createElement("div");e.className="row";const i=()=>Array.from(this.rowsElement.children).indexOf(e),o=this.#Pe({getRowIndex:i,type:"first",label:this.firstLabel,placeholder:this.firstPlaceholder,options:this.#Se.map(({value:t,label:e})=>({value:t,label:e})),selectedValues:t.firstValues}),n=this.#Qe(t.firstValues),r=this.#Pe({getRowIndex:i,type:"second",label:this.secondLabel,placeholder:this.secondPlaceholder,options:n,selectedValues:t.secondValues});return e.append(o,r,this.#Fe(i)),e}#He(t){const e=this.#ze[t];if(!e)return;const i=this.rowsElement.children[t],o=i?.querySelector(".second-combo");if(!o)return void this.#fe();const n=this.#Qe(e.firstValues);o.data=n,this.#Be(o,e.secondValues)}#ke(){this.addButtonElement.setAttribute("size",this.size)}#Re(){this.disabled||this.readonly||this.#Ue()?this.addButtonElement.setAttribute("disabled","true"):this.addButtonElement.removeAttribute("disabled")}#Ue(){return Number.isFinite(this.maxRows)&&this.#ze.length>=this.maxRows}#Je(t){this.rowsElement.children[t]?.remove()}#Ze({rowIndex:t,type:e,selectedValues:i}){if(this.disabled||this.readonly)return;const o=this.#ze[t];if(o){if("first"===e){const e=this.#Qe(i),n=new Set(e.map(t=>t.value)),r=o.secondValues.filter(t=>n.has(t));if(Mg(o.firstValues,i)&&Mg(o.secondValues,r))return;return this.#ze[t]={firstValues:i,secondValues:r},this.#He(t),void this.#$e()}Mg(o.secondValues,i)||(this.#ze[t]={...o,secondValues:i},this.#$e())}}#Ge(t){if(this.disabled||this.readonly||this.#ze.length<=1)return;const e=this.#ze[t];this.#ze=this.#ze.filter((e,i)=>i!==t),this.#Je(t),this.#Re(),(e.firstValues.length>0||e.secondValues.length>0)&&this.#$e()}#$e(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}),Ig=Ng.cssVarList,xg={[Ig.hostDirection]:th.direction,[Ig.rowsGap]:Sp.spacing.sm,[Ig.rowGap]:Sp.spacing.sm,[Ig.rowAlignItems]:"flex-end",[Ig.rowWrap]:"nowrap",[Ig.addActionJustifyContent]:"flex-start",[Ig.addActionMarginTop]:Sp.spacing.xs,_fullWidth:{[Ig.hostWidth]:"100%"}};var jg=Object.freeze({__proto__:null,default:xg,vars:Ig});const Tg=st(Sp),Dg=lg.cssVarList,vg={[Dg.hostWidth]:th.width,[Dg.hostDirection]:th.direction,[Dg.fontSize]:th.fontSize,[Dg.fontFamily]:th.fontFamily,[Dg.labelFontSize]:th.labelFontSize,[Dg.labelFontWeight]:th.labelFontWeight,[Dg.inputValueFontWeight]:th.inputValueFontWeight,[Dg.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[Dg.helperTextFontWeight]:th.helperTextFontWeight,[Dg.errorMessageFontWeight]:th.errorMessageFontWeight,[Dg.labelTextColor]:th.labelTextColor,[Dg.errorMessageTextColor]:th.errorMessageTextColor,[Dg.inputBorderColor]:th.borderColor,[Dg.inputBorderWidth]:th.borderWidth,[Dg.inputBorderStyle]:th.borderStyle,[Dg.inputBorderRadius]:th.borderRadius,[Dg.inputOutlineColor]:th.outlineColor,[Dg.inputOutlineOffset]:th.outlineOffset,[Dg.inputOutlineWidth]:th.outlineWidth,[Dg.inputOutlineStyle]:th.outlineStyle,[Dg.labelRequiredIndicator]:th.requiredIndicator,[Dg.inputValueTextColor]:th.valueTextColor,[Dg.inputPlaceholderTextColor]:th.placeholderTextColor,[Dg.inputBackgroundColor]:th.backgroundColor,[Dg.inputHorizontalPadding]:th.horizontalPadding,[Dg.inputVerticalPadding]:th.verticalPadding,[Dg.inputHeight]:th.inputHeight,[Dg.inputDropdownButtonColor]:Tg.colors.surface.dark,[Dg.inputDropdownButtonCursor]:"pointer",[Dg.inputDropdownButtonSize]:th.toggleButtonSize,[Dg.inputDropdownButtonOffset]:Tg.spacing.xs,[Dg.overlayItemPaddingInlineStart]:Tg.spacing.xs,[Dg.overlayItemPaddingInlineEnd]:Tg.spacing.lg,[Dg.chipFontSize]:th.chipFontSize,[Dg.chipTextColor]:Tg.colors.surface.contrast,[Dg.chipBackgroundColor]:Tg.colors.surface.light,[Dg.labelPosition]:th.labelPosition,[Dg.labelTopPosition]:th.labelTopPosition,[Dg.labelLeftPosition]:th.labelLeftPosition,[Dg.labelHorizontalPosition]:th.labelHorizontalPosition,[Dg.inputTransformY]:th.inputTransformY,[Dg.inputTransition]:th.inputTransition,[Dg.marginInlineStart]:th.marginInlineStart,[Dg.placeholderOpacity]:th.placeholderOpacity,[Dg.inputVerticalAlignment]:th.inputVerticalAlignment,[Dg.errorMessageIcon]:th.errorMessageIcon,[Dg.errorMessageIconSize]:th.errorMessageIconSize,[Dg.errorMessageIconPadding]:th.errorMessageIconPadding,[Dg.errorMessageIconRepeat]:th.errorMessageIconRepeat,[Dg.errorMessageIconPosition]:th.errorMessageIconPosition,[Dg.errorMessageFontSize]:th.errorMessageFontSize,labelType:{floating:{[Dg.inputHorizontalPadding]:"0.25em",_hasValue:{[Dg.inputHorizontalPadding]:"0.45em"}}},_readonly:{[Dg.inputDropdownButtonCursor]:"default"},[Dg.overlayFontSize]:th.fontSize,[Dg.overlayFontFamily]:th.fontFamily,[Dg.overlayCursor]:"pointer",[Dg.overlayItemBoxShadow]:"none",[Dg.overlayBackground]:th.backgroundColor,[Dg.overlayTextColor]:th.valueTextColor,[Dg.overlay.minHeight]:"400px",[Dg.overlay.margin]:"0"};var zg=Object.freeze({__proto__:null,default:vg,multiSelectComboBox:vg,vars:Dg});const Cg=f("autocomplete-field-internal"),Sg=wt({componentName:Cg,baseSelector:""}),wg=[],Ag="DESCOPE_INVALID_OPTION",Lg=f("autocomplete-field"),{host:fg}={host:{selector:()=>":host"}},Eg=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:{...fg,property:"width"},hostDirection:{...fg,property:"direction"},fontSize:{...fg},checkmarkDisplay:{selector:zo.componentName,property:zo.cssVarList.overlayCheckmarkDisplay},itemPaddingInlineStart:{selector:zo.componentName,property:zo.cssVarList.overlayItemPaddingInlineStart},itemPaddingInlineEnd:{selector:zo.componentName,property:zo.cssVarList.overlayItemPaddingInlineEnd},selectedItemBackground:{selector:zo.componentName,property:zo.cssVarList.overlaySelectedItemBackground},selectedItemHoverBackground:{selector:zo.componentName,property:zo.cssVarList.overlaySelectedItemHoverBackground},selectedItemFocusBackground:{selector:zo.componentName,property:zo.cssVarList.overlaySelectedItemFocusBackground},itemHoverBackground:{selector:zo.componentName,property:zo.cssVarList.overlayItemHoverBackground}}}),mt,Vt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),yt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Cg}\n tabindex="-1"\n ></${Cg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Cg),k(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),A(this,this.inputElement,{includeAttrs:["invalid"]}),this.inputElement.fetchResults=this.fetchResults,this.setDefaultValue()}set fetchResults(t){this.inputElement.fetchResults=t}})(ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>"\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n descope-autocomplete-field-internal {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n descope-autocomplete-field-internal ::slotted {\n padding: 0;\n }\n ",excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Lg})),kg=Eg.cssVarList,Og=st(Sp),Vg={[kg.hostWidth]:th.width,[kg.hostDirection]:th.direction,[kg.fontSize]:th.fontSize,[kg.checkmarkDisplay]:"none",[kg.itemPaddingInlineStart]:Og.spacing.lg,[kg.itemPaddingInlineEnd]:Og.spacing.lg,[kg.selectedItemBackground]:Og.colors.primary.light,[kg.selectedItemHoverBackground]:Og.colors.primary.light,[kg.selectedItemFocusBackground]:Og.colors.primary.light,[kg.itemHoverBackground]:Og.colors.primary.highlight,_fullWidth:{[kg.hostWidth]:"100%"}};var Wg=Object.freeze({__proto__:null,default:Vg,vars:kg});class Rg extends(Lt()){#qe=null;#_e=null;constructor(t){super(t),this.#_e=this.#Xe()}getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"includedPrimaryTypes",attribute:"address-types"},{key:"language",attribute:"address-language"},{key:"region",attribute:"address-region"}]}async#Xe(){const t=this.getAttribute("public-api-key");if(!this.#qe&&t)try{(t=>{var e,i,o,n,r,s,a,l,d,c,u,p,h;window.google?.maps||(e={key:t},r="The Google Maps JavaScript API",s="google",a="importLibrary",l="__ib__",d=document,c=window,u=(c=c[s]||(c[s]={})).maps||(c.maps={}),p=new Set,h=new URLSearchParams,u[a]?console.warn(r+" only loads once. Ignoring:",e):u[a]=(t,...c)=>p.add(t)&&(i||(i=new Promise(async(t,a)=>{for(n in await(o=d.createElement("script")),h.set("libraries",[...p]+""),e)h.set(n.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),e[n]);h.set("callback",s+".maps."+l),o.src=`https://maps.${s}apis.com/maps/api/js?`+h,u[l]=t,o.onerror=()=>i=a(Error(r+" could not load.")),o.nonce=d.querySelector("script[nonce]")?.nonce||"",d.head.append(o)}))).then(()=>u[a](t,...c)))})(t);const{AutocompleteSuggestion:e}=await google.maps.importLibrary("places");this.#qe=e}catch(t){throw console.error("Failed to initialize Google Maps Autocomplete service:",t),t}}async _fetchResults(t){if(!t?.trim())return{results:[]};try{await this.#_e;const e={input:t};this.getOptionalParams().forEach(({attribute:t,key:i,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&(e[i]="includedPrimaryTypes"===i?n.split(",").map(t=>t.trim()).filter(Boolean):n)});const{suggestions:i}=await this.#qe.fetchAutocompleteSuggestions(e);return this.#Ke(i)}catch(t){return console.error("Google Maps Places Autocomplete failed:",t),{results:[],error:At}}}#Ke(t){return t?.length?{results:t.map(t=>{const e=t.placePrediction;return{id:e.placeId,label:e.text.text,value:e.text.text}})}:{results:[]}}}class Ug extends(Lt()){getRequiredParams(){return["public-api-key"]}getOptionalParams(){return[{key:"layers",attribute:"address-types"},{key:"limit",attribute:"address-limit"},{key:"lang",attribute:"address-language"},{key:"countryCode",attribute:"address-region"}]}async _fetchResults(t){if(!t?.trim())return{results:[]};const e=this.getAttribute("public-api-key"),i=new URLSearchParams({query:t.trim()});this.getOptionalParams().forEach(({attribute:t,key:e,defaultValue:o})=>{const n=this.getAttribute(t)||o;n&&("layers"===e||"countryCode"===e?i.append(e,n.split(",").map(t=>t.trim()).filter(Boolean).join(",")):i.append(e,n))});try{const t=await fetch(`https://api.radar.io/v1/search/autocomplete?${i.toString()}`,{headers:{Authorization:e}});if(!t.ok)throw new Error(`Radar API returned ${t.status}`);const o=await t.json();return this.#Ke(o)}catch(t){return console.error("Radar Places Autocomplete failed:",t),{results:[],error:At}}}#Ke(t){return t?.addresses?.length?{results:t.addresses.map(t=>({label:t.formattedAddress,value:t.formattedAddress}))}:{results:[]}}}const Yg=f("address-field-internal"),Qg="google-maps-places",Pg="radar",Bg={[Qg]:Rg,[Pg]:Ug},Zg=wt({componentName:Yg,baseSelector:""}),Fg=["public-api-key"],Gg=[...Fg],Hg=T((({connectorClasses:t})=>e=>class extends e{#ti=t;static get observedAttributes(){return[...e.observedAttributes||[],"connector-template"]}get connectorClasses(){return this.#ti}set connectorClasses(t){this.#ti=t}get connectorTemplate(){return this.getAttribute("connector-template")}initializeConnector(){const t=this.connectorTemplate;if(!this.connectorClasses[t])return;const e=this.connectorClasses[t];this.connector=new e(this.getAttribute.bind(this))}async fetchConnectorResults(t){if(!this.connector)return console.error(`No connector initialized for the field with template: ${this.connectorTemplate}`),{results:[]};const{results:e,error:i}=await this.connector.fetch(t);return i?{results:[],error:i}:{results:e.map(({label:t,value:e})=>({label:t,value:e}))}}init(){super.init?.(),this.initializeConnector()}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&"connector-template"===t&&this.initializeConnector()}})({connectorClasses:Bg}))(class extends Zg{static get observedAttributes(){return[].concat(Zg.observedAttributes||[],Gg)}get errorMsgValueMissing(){return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing}constructor(){super(),this.innerHTML="\n <div>\n <descope-autocomplete-field></descope-autocomplete-field>\n </div>\n ",this.autocompleteField=this.querySelector("descope-autocomplete-field")}get value(){return this.autocompleteField.value}set value(t){this.autocompleteField.value=t}focus(){this.autocompleteField.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.autocompleteField.focus()}),super.init?.(),this.initAutocomplete()}initAutocomplete(){k(this,this.autocompleteField,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","error-message","default-value","data-errormessage-value-missing","st-host-direction","allow-custom-value","min-search-length","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),A(this,this.autocompleteField,{includeAttrs:["invalid"]}),this.autocompleteField.fetchResults=this.fetchConnectorResults.bind(this)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&Fg.includes(t)&&this.initializeConnector()}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),Jg=f("address-field"),{host:$g}={host:{selector:()=>":host"}},qg=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:{...$g,property:"width"},hostDirection:{...$g,property:"direction"}}}),mt,Vt({proxyProps:["value","selectionStart"],inputEvent:"input",proxyParentValidation:!0}),yt,t=>class extends t{get defaultValue(){return this.getAttribute("default-value")}setDefaultValue(){this.defaultValue&&setTimeout(()=>{this.inputElement.value=this.defaultValue})}set connectorClasses(t){this.inputElement.connectorClasses=t}get connectorClasses(){return this.inputElement.connectorClasses}init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Yg}\n tabindex="-1"\n ></${Yg}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Yg),k(this,this.inputElement,{includeAttrs:["size","bordered","label","required","label-type","placeholder","full-width","allow-custom-value","min-search-length","no-results-message","error-fetching-results-message","data-errormessage-value-missing","invalid","error-message","readonly","disabled","st-host-direction","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding","connector-template","public-api-key","address-types","address-language","address-region","address-limit"]}),A(this,this.inputElement,{includeAttrs:["invalid"]}),this.setDefaultValue()}})(ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n direction: ltr;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${Yg} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Yg} ::slotted {\n padding: 0;\n }\n`,excludeAttrsSync:["tabindex","error-message","label","style"],componentName:Jg})),_g=qg.cssVarList,Xg={[_g.hostWidth]:th.width,[_g.hostDirection]:th.direction,_fullWidth:{[_g.hostWidth]:"100%"}};var Kg=Object.freeze({__proto__:null,default:Xg,vars:_g});const tM=(t,e=2)=>String(t).padStart(e,"0"),eM=f("timer"),iM=["seconds","hide-icon","paused"],oM=jt({componentName:eM,baseSelector:":host > .wrapper"}),{host:nM,icon:rM,timer:sM}={host:{selector:()=>":host"},icon:{selector:()=>".icon"},timer:{selector:()=>".timer"}},aM=T(Mt({mappings:{fontSize:{},iconSize:[{...rM,property:"width"},{...rM,property:"height"}],fontFamily:{},minHeight:{},fontWeight:{...sM},lineHeight:{...sM},textColor:{...sM,property:"color"},gap:{},textAlign:{property:"justify-content"},hostWidth:{...nM,property:"width"},hostDirection:{...nM,property:"direction"},iconColor:{...rM,property:Eo.cssVarList.fill}}}),mt,yt)(class extends oM{#ei=0;#ii;static get observedAttributes(){return iM.concat(oM.observedAttributes||[])}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=" class="icon"></descope-icon>\n <div class="timer"></div>\n </div>\n\t\t',O("\n :host {\n display: inline-flex;\n user-select: none;\n -webkit-user-select: none;\n }\n .wrapper {\n display: flex;\n align-items: center;\n flex-direction: row;\n width: 100%;\n }\n .hidden {\n display: none;\n }\n ",this),this.icon=this.shadowRoot.querySelector(".icon"),this.timer=this.shadowRoot.querySelector(".timer")}get seconds(){const t=this.getAttribute("seconds"),e=1e3*parseInt(t||0,10);return Math.max(0,e)}get isPaused(){return"true"===this.getAttribute("paused")}init(){super.init?.(),this.#ei=this.seconds}startInterval(){this.#ei?this.#ii=setInterval(()=>{this.#oi(),this.#ei||this.stop(),this.#ni(this.#ei)},1e3):this.stop()}stopInterval(){clearInterval(this.#ii)}#oi(){this.#ei=this.#ei-1e3}reset(){this.#ei=this.seconds,this.#ni(this.#ei),this.isPaused||(this.dispatchEvent(new CustomEvent("timer-started",{bubbles:!0})),this.startInterval())}stop(){this.stopInterval(),this.#ei=0,this.#ni(this.#ei),this.dispatchEvent(new CustomEvent("timer-ended",{bubbles:!0}))}pause(){this.setAttribute("paused","true"),this.stopInterval()}resume(){this.removeAttribute("paused"),this.startInterval()}#ni(t){this.timer.textContent=((t=0)=>{const e=Math.floor(t/1e3),i=Math.floor(e/3600),o=Math.floor(e%3600/60),n=e%60;return[...i?[tM(i)]:[],tM(o),tM(n)].join(":")})(t)}#ri(t){this.icon.classList.toggle("hidden",t)}#si(t){setTimeout(()=>{t?this.pause():this.#ii||this.resume()})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("seconds"===t&&this.reset(),"hide-icon"===t&&this.#ri("true"===i),"paused"===t&&this.#si("true"===i))}}),lM=st(Sp),dM=aM.cssVarList,cM={[dM.hostDirection]:lM.direction,[dM.gap]:"0.25em",[dM.fontFamily]:lM.fonts.font1.family,[dM.minHeight]:"1.5em",[dM.lineHeight]:"1em",[dM.fontWeight]:lM.fonts.font1.fontWeight,[dM.textColor]:lM.colors.surface.contrast,[dM.iconColor]:lM.colors.surface.contrast,[dM.iconSize]:"1em",size:{xs:{[dM.fontSize]:"12px"},sm:{[dM.fontSize]:"14px"},md:{[dM.fontSize]:"16px"},lg:{[dM.fontSize]:"18px"}},textAlign:{right:{[dM.textAlign]:"right"},left:{[dM.textAlign]:"left"},center:{[dM.textAlign]:"center"}},_fullWidth:{[dM.hostWidth]:"100%"}};var uM=Object.freeze({__proto__:null,default:cM,vars:dM});const pM=f("timer-button"),hM=["button-variant","button-mode","size","text-align","full-width"],gM={"button-variant":"variant","button-mode":"mode"},MM=["timer-seconds","timer-hide-icon","timer-paused","size","text-align","full-width"],mM={"timer-seconds":"seconds","timer-hide-icon":"hide-icon","timer-paused":"paused"},yM=jt({componentName:pM,baseSelector:":host > div"}),{host:bM,nestedTimer:NM,nestedButton:IM,timerInsideNotReversed:xM,timerInsideReversed:jM}={host:{selector:()=>":host"},nestedTimer:{selector:()=>':host([timer-inside="true"]) .timer'},nestedButton:{selector:()=>':host([timer-inside="true"]) .button'},timerInsideNotReversed:{selector:()=>':host([timer-inside="true"]:not([timer-position="end"])) .timer'},timerInsideReversed:{selector:()=>':host([timer-inside="true"][timer-position="end"]) .timer'}},TM=T(Mt({mappings:{gap:{},flexDirection:{},hostWidth:{...bM,property:"width"},hostDirection:{...bM,property:"direction"},timerTextColor:{...NM,property:aM.cssVarList.textColor},timerIconColor:{...NM,property:aM.cssVarList.iconColor},timerHostWidth:{...NM,property:aM.cssVarList.hostWidth},buttonLabelSpacing:{...IM,property:Uo.cssVarList.labelSpacing},timerInsideGapEnd:{...xM,property:"margin-inline-end"},timerInsideGapStart:{...jM,property:"margin-inline-start"}}}),mt,yt)(class extends yM{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-timer class="timer"></descope-timer>\n <descope-button class="button" disabled="true">\n <slot></slot>\n </descope-button>\n </div>\n\t\t',O('\n :host {\n display: inline-flex;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n }\n /* allow timer to grow along the main axis in the wrapper flex container */\n :host(:not([timer-inside="true"])) .timer {\n flex: 1;\n }\n :host([timer-inside="true"]) .timer {\n flex: 0 0 auto;\n }\n ',this),this.wrapper=this.shadowRoot.querySelector(".wrapper"),this.timer=this.shadowRoot.querySelector(".timer"),this.button=this.shadowRoot.querySelector(".button"),this.forwardingSlot=this.shadowRoot.querySelector(".button slot"),this.timer.addEventListener("timer-started",()=>this.onTimerStarted()),this.timer.addEventListener("timer-ended",()=>this.onTimerEnded()),this.syncTimerPlacement(),this.button.addEventListener("click",this.onClick.bind(this))}static get observedAttributes(){return[...super.observedAttributes||[],"timer-inside","timer-position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"timer-inside"!==t&&"timer-position"!==t||this.syncTimerPlacement()}get#ai(){return"true"===this.getAttribute("timer-inside")}get#li(){return"end"===this.getAttribute("timer-position")}syncTimerPlacement(){this.#ai?this.#di(this.#li):this.#ci()}#di(t){t?this.timer.previousSibling!==this.forwardingSlot&&this.button.appendChild(this.timer):this.timer.nextSibling!==this.forwardingSlot&&this.button.insertBefore(this.timer,this.forwardingSlot)}#ci(){this.timer.parentElement!==this.wrapper&&this.wrapper.insertBefore(this.timer,this.button)}set onclick(t){this.button.onclick=t}init(){super.init?.(),k(this,this.button,{includeAttrs:hM,mapAttrs:gM}),k(this,this.timer,{includeAttrs:MM,mapAttrs:mM}),this.button.shadowRoot.querySelector("vaadin-button").setAttribute("disabled","true")}onTimerStarted(){this.toggleButtonDisable(!0)}onTimerEnded(){this.toggleButtonDisable(!1)}onClick(){this.timer.reset()}toggleButtonDisable(t){setTimeout(()=>{t?this.button.setAttribute("disabled","true"):this.button.removeAttribute("disabled")})}}),DM=st(Sp),vM=TM.cssVarList,zM={[vM.gap]:DM.spacing.sm,[vM.flexDirection]:"column",_horizontal:{[vM.flexDirection]:"row",timerPosition:{end:{[vM.flexDirection]:"row-reverse"}}},timerPosition:{end:{[vM.flexDirection]:"column-reverse"}},_fullWidth:{[vM.hostWidth]:"100%"},_timerInside:{[vM.timerTextColor]:"currentColor",[vM.timerIconColor]:"currentColor",[vM.timerHostWidth]:"auto",[vM.buttonLabelSpacing]:"0",[vM.timerInsideGapEnd]:`var(${vM.gap})`,timerPosition:{end:{[vM.timerInsideGapStart]:`var(${vM.gap})`}}}};var CM=Object.freeze({__proto__:null,default:zM,vars:vM});const SM=f("password-strength");class wM extends(jt({componentName:SM,baseSelector:":host > .wrapper"})){static get observedAttributes(){return["options","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="bars-container"></div>\n <div class="text-container">\n </div>\n </div>\n\t\t',O("\n :host {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t}\n\n .wrapper {\n display: inline-flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n height: 100%;\n align-items: flex-start;\n }\n\n .bar {\n flex-grow: 1;\n }\n\n .bars-container {\n display: flex;\n flex-grow: 1;\n width: 100%;\n }\n ",this),this.barsContainer=this.shadowRoot.querySelector(".bars-container"),this.textContainer=this.shadowRoot.querySelector(".text-container")}get options(){return this.getAttribute("options")?.split(",")||[]}getCalcScoreFn=()=>Promise.resolve().then(function(){return rD}).then(t=>t.default);#ui=-1;async calcScore(){const t=this.getAttribute("value")||"";return t?(await this.getCalcScoreFn())(t).score:-1}renderBars(){this.barsContainer.innerHTML="",this.bars=this.options.map((t,e)=>{const i=document.createElement("div");return i.classList.add("bar"),i.classList.toggle("filled",e<=this.#ui),this.barsContainer.appendChild(i),i})}init(){super.init?.(),this.getCalcScoreFn()}async onValueChange(){const t=await this.calcScore();t!==this.#ui&&(this.#ui=t,this.dispatchEvent(new CustomEvent("score-changed",{bubbles:!0,composed:!0,detail:this.#ui})),this.bars?.forEach((t,e)=>{t.classList.toggle("filled",e<=this.#ui)}),this.textContainer.innerHTML=this.options[this.#ui]||"",-1===this.#ui?this.removeAttribute("score"):this.setAttribute("score",this.#ui))}attributeChangedCallback(t,e,i){if(e!==i)return"options"===t?this.renderBars():"value"===t?this.onValueChange():void 0}}const{host:AM,bar:LM,filledBar:fM,barsContainer:EM,text:kM}={host:{selector:()=>":host"},bar:{selector:" .bar"},barsContainer:{selector:" .bars-container"},filledBar:{selector:" .bar.filled"},text:{selector:" .text-container"}},OM=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:[{...AM,property:"width"},{...AM,property:"min-width"}],hostDirection:{...AM,property:"direction"},hostMinWidth:{...AM,property:"min-width"},barHeight:{...LM,property:"height"},barBorderRadius:{...LM,property:"border-radius"},emptyBarColor:{...LM,property:"background-color"},filledBarColor:{...fM,property:"background-color"},textColor:{...kM,property:"color"},spacing:{property:"gap"},barSpacing:{...EM,property:"gap"},fontSize:{},fontWeight:{},fontFamily:{},barTransition:{...LM,property:"transition"}}}),mt,yt)(wM),VM=st(Sp),WM=OM.cssVarList,RM={[WM.hostDirection]:VM.direction,[WM.barHeight]:"4px",[WM.barTransition]:"background-color 0.3s",[WM.barBorderRadius]:VM.radius.sm,[WM.hostMinWidth]:th.minWidth,[WM.barSpacing]:VM.spacing.sm,[WM.emptyBarColor]:VM.colors.surface.light,[WM.fontFamily]:th.fontFamily,[WM.fontSize]:th.labelFontSize,[WM.fontWeight]:th.labelFontWeight,[WM.spacing]:VM.spacing.sm,_fullWidth:{[WM.hostWidth]:"100%"},score:{0:{[WM.filledBarColor]:VM.colors.error.light,[WM.textColor]:VM.colors.error.light},1:{[WM.filledBarColor]:VM.colors.error.main,[WM.textColor]:VM.colors.error.main},2:{[WM.filledBarColor]:VM.colors.error.dark,[WM.textColor]:VM.colors.error.dark},3:{[WM.filledBarColor]:VM.colors.success.dark,[WM.textColor]:VM.colors.success.dark},4:{[WM.filledBarColor]:VM.colors.success.main,[WM.textColor]:VM.colors.success.main}}},UM={...WM};var YM=Object.freeze({__proto__:null,default:RM,vars:UM});const QM=f("collapsible-container");class PM extends(jt({componentName:QM,baseSelector:"slot"})){static get observedAttributes(){return["collapsed","collapsible","text","aria-label"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <descope-text st-host-direction="ltr">\n <div class="header">\n <div class="title">\n <div class="icon">\n <descope-icon st-fill="currentcolor" src=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K></descope-icon>\n </div>\n <span></span>\n </div>\n </div>\n </descope-text>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n\t',O(`\n div.content {\n transition-property: max-height;\n overflow: auto;\n height: auto;\n\t\t\t}\n\t\t\tslot {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n slot:focus-visible {\n outline: none;\n }\n\t\t\t:host {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n .header {\n user-select: none;\n display: flex;\n align-items: baseline;\n }\n .title {\n display: contents;\n }\n :host([attach-icon="true"]) .header {\n display: block;\n }\n :host([attach-icon="true"]) .title {\n display: inline-flex;\n align-items: baseline;\n }\n .icon {\n flex-shrink: 0;\n height: var(${ki.cssVarList.textLineHeight});\n min-height: 24px;\n display: flex;\n align-items: center;\n }\n descope-icon {\n transition-property: transform;\n }\n descope-text {\n width: 100%;\n display: flex;\n }\n span {\n align-self: center;\n word-break: break-word;\n }\n span:empty {\n display: none;\n }\n .wrapper {\n overflow: hidden;\n display: inline-flex;\n width: 100%;\n flex-direction: column;\n }\n `,this),this.header=this.shadowRoot.querySelector(".header"),this.content=this.shadowRoot.querySelector("div.content"),this.icon=this.header.querySelector("descope-icon"),this.headerText=this.header.querySelector("span"),this.textComponent=this.shadowRoot.querySelector("descope-text")}get isCollapsible(){return"true"===this.getAttribute("collapsible")}calcContentHeight(){return this.content.offsetHeight||this.content.scrollHeight}get isCollapsed(){return"true"===this.getAttribute("collapsed")}toggle(){this.setAttribute("collapsed",this.isCollapsed?"false":"true")}updateHeaderA11y(){this.isCollapsible?(this.header.setAttribute("role","button"),this.header.setAttribute("tabindex","0"),this.header.setAttribute("aria-expanded",String(!this.isCollapsed)),this.getAttribute("text")?this.header.removeAttribute("aria-label"):this.header.setAttribute("aria-label",this.getAttribute("aria-label")||"Toggle section")):["role","tabindex","aria-expanded","aria-label"].forEach(t=>this.header.removeAttribute(t))}collapse(t=!1){this.content.inert=!0;const e=()=>{this.content.style.maxHeight="0px"};if(this.icon.classList.add("rotate"),!t)return e();this.content.style.maxHeight=this.calcContentHeight()+"px",setTimeout(e)}expand(t=!1){this.content.inert=!1;const e=()=>{this.content.style.maxHeight=""};if(this.icon.classList.remove("rotate"),!t)return e();this.content.addEventListener("transitionend",e,{once:!0}),this.content.style.maxHeight=this.calcContentHeight()+"px"}#pi=!1;init(){super.init?.(),this.#pi=!0,this.header.addEventListener("click",()=>{this.isCollapsible&&this.toggle()}),this.header.addEventListener("keydown",t=>{!this.isCollapsible||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.toggle())}),k(this,this.textComponent,{includeAttrs:["text-align","text-variant","text-mode"],mapAttrs:{"text-mode":"mode","text-variant":"variant"}})}updateHeaderText(){const t=this.getAttribute("text")||"";this.headerText.innerText=t}attributeChangedCallback(t,e,i){if("text"===t)return this.updateHeaderText(),void this.updateHeaderA11y();"aria-label"!==t?(this.updateHeaderA11y(),this.isCollapsed&&this.isCollapsible?this.collapse(this.#pi):this.expand(this.#pi)):this.updateHeaderA11y()}}const BM={host:()=>":host",icon:()=>"descope-icon",collapsedIcon:()=>"descope-icon.rotate",iconWrapper:()=>".icon",header:()=>".header",iconAndText:()=>".header, .title",text:()=>"span",wrapper:()=>".wrapper",content:()=>"div.content"},ZM=T(Mt({mappings:{hostWidth:{selector:BM.host,property:"width"},hostDirection:{selector:BM.host,property:"direction"},verticalPadding:[{selector:BM.wrapper,property:"padding-top"},{selector:BM.wrapper,property:"padding-bottom"}],horizontalPadding:[{selector:BM.wrapper,property:"padding-left"},{selector:BM.wrapper,property:"padding-right"}],flexDirection:{},justifyContent:{},alignItems:{},gap:[{},{property:"margin-top"}],backgroundColor:{selector:BM.wrapper},backgroundImage:{selector:BM.wrapper},backgroundPositionX:{selector:BM.wrapper},backgroundPositionY:{selector:BM.wrapper},backgroundSize:{selector:BM.wrapper},backgroundRepeat:{selector:BM.wrapper},borderRadius:{selector:BM.wrapper},borderColor:{selector:BM.wrapper},borderStyle:{selector:BM.wrapper},borderWidth:{selector:BM.wrapper},boxShadow:{selector:BM.wrapper},headerIconOrder:{selector:BM.iconWrapper,property:"order"},headerCursor:{selector:BM.header,property:"cursor"},headerGap:{selector:BM.iconAndText,property:"gap"},textGrow:{selector:BM.text,property:"flex-grow"},textDirection:{selector:BM.text,property:"direction"},iconAnimationDuration:{selector:BM.icon,property:"transition-duration"},contentAnimationDuration:{selector:BM.content,property:"transition-duration"},chevronRotation:{selector:BM.collapsedIcon,property:"transform",fallback:"rotate(180deg)"}}}),mt,yt)(PM),FM=st(Sp),GM=ZM.cssVarList,[HM,JM,$M]=lt({shadowColor:"#00000020"},QM),{shadowColor:qM}=JM,_M={...HM,[GM.hostWidth]:"100%",[GM.boxShadow]:"none",[GM.backgroundColor]:FM.colors.surface.main,[GM.backgroundImage]:"",[GM.backgroundPositionX]:"center",[GM.backgroundPositionY]:"center",[GM.backgroundSize]:"cover",[GM.backgroundRepeat]:"no-repeat",[GM.borderRadius]:"0px",[GM.hostDirection]:FM.direction,[GM.flexDirection]:"column",[GM.alignItems]:"flex-start",[GM.justifyContent]:"flex-start",[GM.headerGap]:FM.spacing.md,[GM.chevronRotation]:"rotate(180deg)",[GM.iconAnimationDuration]:"0.1s",[GM.contentAnimationDuration]:"0.1s",[GM.borderWidth]:"0px",[GM.textGrow]:"0",verticalPadding:{sm:{[GM.verticalPadding]:"5px"},md:{[GM.verticalPadding]:"10px"},lg:{[GM.verticalPadding]:"20px"}},horizontalPadding:{sm:{[GM.horizontalPadding]:"5px"},md:{[GM.horizontalPadding]:"10px"},lg:{[GM.horizontalPadding]:"20px"}},spaceBetween:{sm:{[GM.gap]:"10px"},md:{[GM.gap]:"20px"},lg:{[GM.gap]:"30px"}},shadow:{sm:{[GM.boxShadow]:`${FM.shadow.wide.sm} ${qM}, ${FM.shadow.narrow.sm} ${qM}`},md:{[GM.boxShadow]:`${FM.shadow.wide.md} ${qM}, ${FM.shadow.narrow.md} ${qM}`},lg:{[GM.boxShadow]:`${FM.shadow.wide.lg} ${qM}, ${FM.shadow.narrow.lg} ${qM}`},xl:{[GM.boxShadow]:`${FM.shadow.wide.xl} ${qM}, ${FM.shadow.narrow.xl} ${qM}`},"2xl":{[$M.shadowColor]:"#00000050",[GM.boxShadow]:`${FM.shadow.wide["2xl"]} ${qM}`}},borderRadius:{sm:{[GM.borderRadius]:FM.radius.sm},md:{[GM.borderRadius]:FM.radius.md},lg:{[GM.borderRadius]:FM.radius.lg},xl:{[GM.borderRadius]:FM.radius.xl},"2xl":{[GM.borderRadius]:FM.radius["2xl"]},"3xl":{[GM.borderRadius]:FM.radius["3xl"]}},iconPosition:{left:{[GM.headerIconOrder]:"0"},right:{[GM.headerIconOrder]:"1"}},_fillTitle:{[GM.textGrow]:"1"},_border:{[GM.borderColor]:FM.colors.surface.light,[GM.borderWidth]:FM.border.xs,[GM.borderStyle]:"solid"},_collapsible:{[GM.headerCursor]:"pointer"}},XM={...GM,...$M};var KM=Object.freeze({__proto__:null,default:_M,vars:XM});const tm=f("recovery-codes"),em="none",im={copy:{defaultText:"Copy"},download:{defaultText:"Download"}},om=["text","variant","color","size","icon","icon-dark"],nm=["show-download",...Object.keys(im).flatMap(t=>om.map(e=>`${t}-${e}`))];class rm extends(jt({componentName:tm,baseSelector:":host > div"})){static get observedAttributes(){return["readonly","required",...nm]}#hi=em;#gi=!1;#Mi=!1;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="wrapper">\n <div class="codes-box">\n <div class="list"><div class="codes-list"></div></div>\n <descope-text class="icon-wrapper">\n <div class="icons">\n <vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>\n <vaadin-icon class="icon download-icon" icon="vaadin:download-alt" title="Download"></vaadin-icon>\n </div>\n </descope-text>\n </div>\n <div class="error-message"></div>\n <div class="buttons-row"></div>\n </div>\n ',this.list=this.shadowRoot.querySelector(".list"),this.copyIcon=this.shadowRoot.querySelector(".copy-icon"),this.downloadIcon=this.shadowRoot.querySelector(".download-icon"),this.iconWrapper=this.shadowRoot.querySelector(".icon-wrapper"),this.errorMessageEle=this.shadowRoot.querySelector(".error-message"),this.buttonsRow=this.shadowRoot.querySelector(".buttons-row"),O('\n :host {\n display: inline-block;\n position: relative;\n }\n .wrapper {\n display: flex;\n flex-direction: column;\n }\n .codes-box {\n display: flex;\n justify-content: space-between;\n box-sizing: border-box;\n /* border shows the error ring inside the box; style/width/color/radius come from theme */\n }\n .list {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n /* text-align maps to align-items here, so it positions the codes block\n (start/center/end) inside the available space, not each row */\n }\n .codes-list {\n display: flex;\n flex-direction: column;\n /* rows always start-aligned so the bullets line up in any font.\n width:fit-content hugs the codes so .list can position the whole\n block (keep it, it also defeats the stretch fallback) */\n align-items: flex-start;\n width: fit-content;\n }\n descope-text span {\n display: inline-flex;\n align-items: center;\n width: fit-content;\n }\n descope-text span::before {\n content: \'\\02022\';\n transform: translateY(-0.06em);\n }\n .icon-wrapper {\n align-self: flex-start;\n }\n .icons {\n display: flex;\n flex-direction: column;\n }\n .icon {\n cursor: pointer;\n }\n .icon.copied {\n cursor: initial;\n /* block re-clicks while the checkmark shows, so rapid clicks cannot repeat the action */\n pointer-events: none;\n }\n /* readonly is a host attribute, so disable pointer events from one place */\n :host([readonly="true"]) .icon,\n :host([readonly="true"]) .buttons-row {\n pointer-events: none;\n }\n .download-icon {\n display: none;\n }\n :host([show-download="true"]) .download-icon {\n display: inline-flex;\n }\n .error-message {\n display: none;\n /* width:0 + min-width:100% lets the message wrap to the component width without\n its text expanding the (shrink-to-fit) component; full-width still fills the parent */\n width: 0;\n min-width: 100%;\n box-sizing: border-box;\n line-height: 1.2;\n overflow-wrap: break-word;\n }\n :host([invalid]) .error-message {\n display: block;\n }\n .buttons-row {\n display: none;\n }\n :host([display-variant="buttons"]) .icon-wrapper {\n display: none;\n }\n :host([display-variant="buttons"]) .buttons-row {\n display: flex;\n flex-wrap: wrap;\n }\n /* grow to fill equally; don\'t shrink below content, so they wrap to a new line\n when they don\'t fit (like a container with auto-fit items) */\n .buttons-row > descope-button {\n flex: 1 0 auto;\n }\n ',this)}get variant(){return this.getAttribute("variant")}get mode(){return this.getAttribute("mode")}get value(){return this.#hi}#mi(t){return this.hasAttribute(t)&&"false"!==this.getAttribute(t)}get isRequired(){return this.#mi("required")}get isReadOnly(){return this.#mi("readonly")}get errorMessage(){return this.getAttribute("data-errormessage-value-missing")||"Copy or download your recovery codes to continue."}get codesText(){return String((this.data||[]).map(t=>t.value).join("\n"))}init(){super.init(),this.copyIcon.addEventListener("click",this.onCopy.bind(this)),this.downloadIcon.addEventListener("click",this.onDownload.bind(this)),k(this,this.iconWrapper,{includeAttrs:["variant","mode"]}),this.renderButtons(),this.#Mi=!0}get isDownloadEnabled(){return"true"===this.getAttribute("show-download")}renderButtons(){if(!this.buttonsRow)return;const t=[this.buildButton("copy")];this.isDownloadEnabled&&t.push(this.buildButton("download")),this.buttonsRow.replaceChildren(...t)}buildButton(t){const{defaultText:e}=im[t],i=(e,i)=>this.getAttribute(`${t}-${e}`)||i,o=document.createElement("descope-button");o.setAttribute("data-action",t),o.setAttribute("variant",i("variant","outline")),o.setAttribute("mode",i("color","primary")),o.setAttribute("size",i("size","md"));const n=this.getAttribute(`${t}-icon`);if(n){const e=document.createElement("descope-icon");e.setAttribute("src",n);const i=this.getAttribute(`${t}-icon-dark`);i&&e.setAttribute("src-dark",i),o.appendChild(e)}return o.appendChild(document.createTextNode(i("text",e))),o.addEventListener("click",()=>"copy"===t?this.onCopy():this.onDownload()),o}onCopy(){this.isReadOnly||(navigator.clipboard.writeText(this.codesText),this.showActionFeedback(this.copyIcon,"Copied"),this.recordAction("copied"))}onDownload(){if(this.isReadOnly)return;const t=new Blob([this.codesText],{type:"text/plain"}),e=URL.createObjectURL(t),i=document.createElement("a");i.href=e,i.download="recovery-codes.txt",i.click(),URL.revokeObjectURL(e),this.showActionFeedback(this.downloadIcon,"Downloaded"),this.recordAction("downloaded")}recordAction(t){this.#hi=t,this.dispatchEvent(new Event("change",{bubbles:!0})),this.checkValidity()&&(this.#gi=!1),this.syncValidityUI()}showActionFeedback(t,e){t.feedbackTimer?clearTimeout(t.feedbackTimer):(t.originalIcon=t.getAttribute("icon"),t.originalTitle=t.getAttribute("title")),t.setAttribute("icon","vaadin:check-circle-o"),t.setAttribute("title",e),t.classList.add("copied"),t.feedbackTimer=setTimeout(()=>{t.setAttribute("icon",t.originalIcon),t.setAttribute("title",t.originalTitle),t.classList.remove("copied"),t.feedbackTimer=null},5e3)}checkValidity(){return this.isReadOnly||!this.isRequired||this.value!==em}reportValidity(){const t=this.checkValidity();return this.#gi=!t,this.syncValidityUI(),t}syncValidityUI(){this.toggleAttribute("invalid",this.#gi),this.errorMessageEle&&(this.errorMessageEle.textContent=this.#gi?this.errorMessage:"")}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),i!==e&&("required"!==t||this.isRequired||(this.#gi=!1,this.syncValidityUI()),this.#Mi&&nm.includes(t)&&this.renderButtons())}}const sm=T(Mt({mappings:{hostWidth:{selector:()=>":host",property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{selector:()=>":host",property:"direction"},{selector:()=>ki.componentName,property:ki.cssVarList.hostDirection}],textAlign:{selector:()=>".list",property:"align-items"},iconColor:{selector:()=>"vaadin-icon",property:"color"},iconSize:{selector:()=>"vaadin-icon",property:"font-size"},iconGap:{selector:()=>".codes-box",property:"gap"},iconStackGap:{selector:()=>".icons",property:"gap"},buttonsGap:{selector:()=>".buttons-row",property:"gap"},sectionsGap:{selector:()=>".wrapper",property:"gap"},bulletGap:{selector:()=>"descope-text span",property:"gap"},verticalPadding:[{selector:()=>".codes-box",property:"padding-top"},{selector:()=>".codes-box",property:"padding-bottom"},{selector:()=>".buttons-row",property:"padding-bottom"}],horizontalPadding:[{selector:()=>".codes-box",property:"padding-left"},{selector:()=>".codes-box",property:"padding-right"},{selector:()=>".buttons-row",property:"padding-left"},{selector:()=>".buttons-row",property:"padding-right"}],errorBorderColor:{selector:()=>".codes-box",property:"border-color"},errorMessageColor:{selector:()=>".error-message",property:"color"},errorMessageFontSize:{selector:()=>".error-message",property:"font-size"},errorMessageFontWeight:{selector:()=>".error-message",property:"font-weight"},errorMessageFontFamily:{selector:()=>".error-message",property:"font-family"},boxBorderRadius:{selector:()=>".codes-box",property:"border-radius"},errorBorderWidth:{selector:()=>".codes-box",property:"border-width"},boxBorderStyle:{selector:()=>".codes-box",property:"border-style"}}}),Mt({componentNameOverride:f("input-wrapper")}),Yt({itemRenderer:({value:t},e,i)=>`\n <descope-text variant="${i.variant}" mode="${i.mode}">\n <span>${t}</span>\n </descope-text>\n `,rerenderAttrsList:["variant","mode"],targetSelector:".codes-list"}),mt,yt)(rm),am=st(Sp),lm=sm.cssVarList,dm=ki.cssVarList,cm={[lm.hostMinWidth]:"190px",[lm.hostDirection]:am.direction,[lm.iconColor]:at(dm.textColor),[lm.iconSize]:at(dm.fontSize),[lm.iconGap]:"8px",[lm.iconStackGap]:"16px",[lm.buttonsGap]:"8px",[lm.sectionsGap]:"8px",[lm.bulletGap]:"0.35em",[lm.verticalPadding]:"0",[lm.horizontalPadding]:"0",[lm.errorBorderColor]:"transparent",[lm.errorBorderWidth]:th.borderWidth,[lm.boxBorderRadius]:th.borderRadius,[lm.boxBorderStyle]:"solid",[lm.errorMessageColor]:th.errorMessageTextColor,[lm.errorMessageFontSize]:th.errorMessageFontSize,[lm.errorMessageFontWeight]:th.errorMessageFontWeight,[lm.errorMessageFontFamily]:th.fontFamily,textAlign:{right:{[lm.textAlign]:"flex-end"},left:{[lm.textAlign]:"flex-start"},center:{[lm.textAlign]:"center"}},displayVariant:{buttons:{[lm.hostMinWidth]:"100px"}},_fullWidth:{[lm.hostWidth]:"100%"},_invalid:{[lm.errorBorderColor]:th.errorMessageTextColor}};var um=Object.freeze({__proto__:null,default:cm,vars:lm});const pm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K"},mobile:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDFIOEM2LjM0IDEgNSAyLjM0IDUgNFYyMEM1IDIxLjY2IDYuMzQgMjMgOCAyM0gxNkMx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()=>gm},bm=T(Mt({mappings:{hostWidth:[{...mm,property:"width"},{...ym,property:lg.cssVarList.hostWidth}],hostDirection:[{...mm,property:"direction"},{...ym,property:lg.cssVarList.hostDirection}]}}),mt,Wt({name:"overlay",forward:!1,selector:async t=>{const e=await(async t=>{if(!t)return null;const e=await L(()=>t)();return e instanceof ShadowRoot?e:null})(t?.querySelector("vaadin-multi-select-combo-box"));return e?.querySelector("vaadin-multi-select-combo-box-internal")},style:"\n .session {\n display: flex;\n flex-direction: column;\n }\n /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the\n title and widen the space to the location line. */\n .session .device descope-text,\n .session .device descope-text::part(text-wrapper) {\n display: block;\n }\n /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,\n so a container outside would only ever see the slot as its single item. */\n .session .device-row {\n display: flex;\n align-items: center;\n }\n .session .device-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n }\n",mappings:{rowGap:{selector:".session",property:"gap"},deviceRowGap:{selector:".device-row",property:"gap"}}}),Vt({proxyProps:["value"],inputEvent:"change",proxyParentValidation:!0}),yt,t=>class extends t{get lastLoginLabel(){return this.getAttribute("last-login-label")??"Last login:"}get unknownDeviceLabel(){return this.getAttribute("unknown-device-label")??"Unknown device"}init(){var t;super.init?.(),this.inputElement=this.baseElement,this.inputElement.renderItem=(t=this,({value:e,deviceName:i,deviceType:o,city:n,country:r,loginTime:s}={})=>{const a=i||t.unknownDeviceLabel,l=(Mm||(Mm=document.createElement("template"),Mm.innerHTML='\n <div class="session">\n <div class="device">\n <descope-text variant="body1" mode="primary" st-font-size="1em">\n <div class="device-row">\n <descope-icon class="device-icon" aria-hidden="true"></descope-icon>\n <span class="device-name"></span>\n </div>\n </descope-text>\n </div>\n <div class="location">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n <div class="last-login">\n <descope-text\n variant="body2"\n mode="secondary"\n st-font-size="0.875em"\n ></descope-text>\n </div>\n </div>\n ',Mm)).content.cloneNode(!0).firstElementChild;l.setAttribute("data-id",e??""),l.setAttribute("data-name",a),l.querySelector(".device-name").textContent=a;const{iconSrc:d,iconSrcDark:c}=(t=>{const e=pm[t]||pm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),u=l.querySelector(".device-icon");u.setAttribute("src",d),u.setAttribute("src-dark",c);const p=(t,e)=>{const i=l.querySelector(t);e?i.firstElementChild.textContent=e:i.remove()};p(".location",(({country:t,city:e})=>[e,t].filter(Boolean).join(", "))({country:r,city:n}));const h=(t=>{const e=parseInt(t,10);if(Number.isNaN(e)||e<=0)return"";const i=new Date(1e3*e),o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};try{return i.toLocaleString(void 0,{...o,timeZoneName:"shortOffset"})}catch{return i.toLocaleString(void 0,o)}})(s);return p(".last-login",h&&t.lastLoginLabel?`${t.lastLoginLabel} ${h}`:h),l.outerHTML}),this.inputElement.setAttribute("allow-custom-value","false"),this.inputElement.setAttribute("item-label-path","data-name"),this.inputElement.setAttribute("item-value-path","data-id")}})(ft({slots:[],wrappedEleName:gm,style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n ${gm} {\n width: 100%;\n max-width: 100%;\n }\n `,excludeAttrsSync:["tabindex","style","name","class"],componentName:hm})),Nm=bm.cssVarList,Im={[Nm.hostWidth]:th.width,[Nm.hostDirection]:th.direction,[Nm.overlay.rowGap]:"0.125em",[Nm.overlay.deviceRowGap]:"0.5em",_fullWidth:{[Nm.hostWidth]:"100%"}};var xm=Object.freeze({__proto__:null,default:Im,vars:Nm});const jm=f("outbound-apps"),Tm=({name:t,description:e,logo:i,appId:o,isConnected:n},r,s)=>{const a=n?"disconnect":"connect",l=document.createElement("template");l.innerHTML=`\n <descope-list-item>\n <descope-avatar\n size=${s.size}\n class="app-logo"\n ></descope-avatar>\n\n <div class="content">\n <descope-text\n class="app-title"\n variant="subtitle1"\n mode="primary"\n ></descope-text>\n ${e?'\n <descope-text\n class="app-description"\n variant="body2"\n mode="primary"\n ></descope-text>\n ':""}\n </div>\n <div class="controls">\n <descope-button variant="link" mode="primary" size=${s.size} data-action="${a}" data-id="${a}">\n ${n?s.disconnectButtonLabel:s.connectButtonLabel}\n </descope-button>\n </div>\n </descope-list-item>\n`;const d=l.content.querySelector("descope-avatar"),c=z(i,{allowDataImage:!0});return c&&(d.setAttribute("img",c),d.setAttribute("st-avatar-background-color","none")),t&&(d.setAttribute("display-name",t),d.setAttribute("abbr",R(t))),l.content.querySelector(".app-title").textContent=t??"",e&&(l.content.querySelector(".app-description").textContent=e),l.content.querySelector("descope-button").setAttribute("data-outbound-app-id",o),l},Dm=jt({componentName:jm,baseSelector:"descope-list"}),{host:vm}={host:{selector:()=>":host"}},zm=T(Mt({mappings:{hostWidth:{...vm,property:"width"},minHeight:{selector:()=>":host"},hostDirection:[{...vm,property:"direction"},{selector:"descope-list",property:"direction"},{selector:"descope-list-item",property:"direction"}],iconColor:{selector:()=>" descope-icon",property:Eo.cssVarList.fill},errorIconColor:{selector:()=>" descope-icon.error-icon",property:Eo.cssVarList.fill},fontSize:{selector:ki.componentName,property:ki.cssVarList.fontSize},appLogoGap:{selector:()=>" .app-logo",property:"margin-inline-end"},contentGap:{selector:()=>" .content",property:"gap"},itemsTextAlign:{selector:ki.componentName,property:ki.cssVarList.textAlign},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>bu.componentName,property:bu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>bu.componentName,property:bu.cssVarList.emptyStateVerticalPadding}}}),mt,Yt({itemRenderer:Tm,rerenderAttrsList:["size","connect-button-label","disconnect-button-label"]}),yt)(class extends Dm{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),O("\n :host {\n width: 100%;\n }\n .controls {\n display: flex;\n min-width: 8em;\n justify-content: end;\n }\n .content {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n .app-title,\n .app-description {\n display: flex;\n direction: inherit;\n }\n descope-list {\n display: block;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Tm,this.appsList.addEventListener("click",this.onAppsListClick.bind(this))}get readonly(){return"true"===this.getAttribute("readonly")}onAppsListClick(t){if(!this.readonly){const e=t.srcElement.getAttribute("data-outbound-app-id"),i=t.srcElement.getAttribute("data-action");e&&i&&this.dispatchEvent(new CustomEvent(`${i}-clicked`,{bubbles:!0,detail:{id:e,action:i}}))}}get size(){return this.getAttribute("size")||"sm"}get connectButtonLabel(){return this.getAttribute("connect-button-label")||"Connect"}get disconnectButtonLabel(){return this.getAttribute("disconnect-button-label")||"Disconnect"}}),Cm=zm.cssVarList,Sm={[Cm.iconColor]:Sp.colors.primary.main,[Cm.errorIconColor]:Sp.colors.error.main,[Cm.appLogoGap]:Sp.spacing.md,[Cm.contentGap]:Sp.spacing.xs,[Cm.itemCursor]:"default",[Cm.itemOutline]:"none",[Cm.itemBorderColor]:"transparent",[Cm.listPadding]:"0",[Cm.listBorderWidth]:"0",[Cm.listBoxShadow]:"none",[Cm.emptyStateMinHeight]:"0",[Cm.emptyStateVerticalPadding]:Sp.spacing.lg,size:{xs:{[Cm.fontSize]:"0.6em"},sm:{[Cm.fontSize]:"0.8em"},md:{[Cm.fontSize]:"1em"},lg:{[Cm.fontSize]:"1.5em"}}};var wm=Object.freeze({__proto__:null,default:Sm,vars:Cm});const Am=f("outbound-app-button");class Lm extends(jt({componentName:Am,baseSelector:":host > descope-button"})){static get observedAttributes(){return["label","icon-src","icon-fill-current-color"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-button>\n <descope-icon class="icon"></descope-icon>\n <span class="label"></span>\n </descope-button>\n ',O("\n :host {\n display: inline-block;\n }\n .hidden {\n display: none;\n }\n ",this),this.button=this.shadowRoot.querySelector("descope-button"),this.icon=this.shadowRoot.querySelector(".icon"),this.label=this.shadowRoot.querySelector(".label")}init(){super.init?.(),k(this,this.button,{excludeAttrs:["style","class","label","icon-src","icon-fill-current-color"]})}updateLabel(t=""){this.label.textContent=t,this.label.classList.toggle("hidden",!t)}updateIcon(t=""){this.icon.setAttribute("src",t),this.icon.classList.toggle("hidden",!t)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.updateLabel(i):"icon-src"===t&&this.updateIcon(i))}}const fm=T(Mt({mappings:{hostWidth:{selector:()=>":host",property:"width"},iconFillCurrentColor:{selector:()=>"descope-icon",property:Uo.cssVarList.iconColor}}}),mt,yt)(Lm),Em=fm.cssVarList,km={[Em.iconFillCurrentColor]:"inherit",_iconFillCurrentColor:{[Em.iconFillCurrentColor]:"currentColor"},_fullWidth:{[Em.hostWidth]:"100%"}},Om=Em;var Vm=Object.freeze({__proto__:null,default:km,vars:Om});const Wm=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Rm={desktop:{light:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45I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TcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=",dark:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="}},Um=f("trusted-devices"),Ym=({id:t,name:e,lastLoginDate:i,deviceType:o,isCurrent:n},r,s)=>{const a=n?'class="current-device"':"",{iconSrc:l,iconSrcDark:d}=(t=>{const e=Rm[t]||Rm.unknown;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),c=s.lastLoginLabel?`${s.lastLoginLabel} `:"",u=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,s.format),p=n?`<descope-badge\n bordered="true"\n size="xs"\n mode="primary"\n st-host-direction="${s.direction}"\n >\n ${s.currentDeviceLabel}\n </descope-badge>`:"",h=s.hideActions||n?"":`<descope-link\n class="remove-device"\n variant="body1"\n mode="primary"\n data-action="remove-device"\n data-device-id="${t}"\n st-host-direction="${s.direction}"\n ellipsis="true"\n >\n ${s.removeDeviceLabel}\n </descope-link>`,g=document.createElement("template");return g.innerHTML=`\n <descope-list-item ${a}>\n <div class="content">\n <div class="main">\n <span class="device">\n <descope-icon\n class="device-icon"\n src="${l}"\n src-dark="${d}">\n </descope-icon>\n <descope-text\n class="device-name"\n variant="body1"\n mode="primary">\n </descope-text>\n </span>\n <span class="panel">\n ${p}\n ${h}\n </span>\n </div>\n <div class="meta">\n <descope-text\n variant="body2"\n mode="primary"\n >\n ${c}\n </descope-text>\n <descope-text\n class="login-date"\n variant="body2"\n mode="primary"\n >\n ${u}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,g.content.querySelector(".device-name").textContent=e,g},Qm=jt({componentName:Um,baseSelector:bu.componentName}),{host:Pm}={host:{selector:()=>":host"}},Bm=T(Mt({mappings:{hostWidth:{...Pm,property:"width"},hostMinWidth:{...Pm,property:"min-width"},hostDirection:[{...Pm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],listItemsGap:{property:bu.cssVarList.gap},listBackgroundColor:{selector:()=>bu.componentName,property:bu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bu.componentName,property:bu.cssVarList.borderRadius},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],emptyStateMinHeight:{selector:()=>bu.componentName,property:bu.cssVarList.minHeight},emptyStateVerticalPadding:{selector:()=>bu.componentName,property:bu.cssVarList.emptyStateVerticalPadding},itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPadding},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBorderRadius:{selector:Mu.componentName,property:Mu.cssVarList.borderRadius},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},badgeBorderColor:{selector:Lc.componentName,property:Lc.cssVarList.borderColor},badgeTextColor:{selector:Lc.componentName,property:Lc.cssVarList.textColor},badgeBackgroundColor:{selector:Lc.componentName,property:Lc.cssVarList.backgroundColor},badgeBorderRadius:{selector:Lc.componentName,property:Lc.cssVarList.borderRadius},devicePanelGap:{selector:()=>".main",property:"gap"},deviceIconGap:{selector:()=>".device",property:"gap"},deviceIconSize:[{selector:()=>".device-icon",property:"width"},{selector:()=>".device-icon",property:"height"}],lastLoginLabelGap:{selector:" .meta",property:"gap"}}}),mt,Yt({itemRenderer:Ym,sortFn:(t,e)=>Wm(e.lastLoginDate)-Wm(t.lastLoginDate),rerenderAttrsList:["remove-device-label","current-device-label","last-login-label","format","hide-actions"]}),yt)(class extends Qm{constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n ',this.appsList=this.shadowRoot.querySelector("descope-list"),O("\n :host {\n display: inline-block;\n }\n\n .descope-list-item {\n min-width: 0;\n }\n\n .current-device {\n order: -1;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .main {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n }\n\n .device {\n display: flex;\n min-width: 0;\n }\n\n .device-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .login-date {\n min-width: fit-content;\n }\n\n descope-badge {\n min-width: 0;\n }\n\n descope-text {\n display: flex;\n align-items: center; \n min-width: 0;\n }\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n descope-link {\n overflow: hidden;\n }\n descope-link.remove-device::part(wrapper) {\n display: flex;\n width: 100%;\n }\n descope-link.remove-device {\n width: 100%;\n }\n ",this)}init(){super.init?.(),this.appsList.itemRenderer=Ym,this.appsList.addEventListener("click",this.onRemoveClick.bind(this))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-device-id]"),i=e?.getAttribute("data-device-id");i&&this.dispatchEvent(new CustomEvent("remove-device-clicked",{bubbles:!0,detail:{id:i,action:"remove-device"}}))}get readOnly(){return"true"===this.getAttribute("readonly")}get hideActions(){return"true"===this.getAttribute("hide-actions")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get removeDeviceLabel(){return this.getAttribute("remove-device-label")||"Sign out"}get currentDeviceLabel(){return this.getAttribute("current-device-label")||"Current device"}get lastLoginLabel(){return this.getAttribute("last-login-label")||"Last login:"}get direction(){return this.getAttribute("st-host-direction")}}),Zm=Bm.cssVarList,Fm={[Zm.hostWidth]:"auto",[Zm.hostWidth]:"300px",[Zm.hostMinWidth]:"300px",[Zm.listBackgroundColor]:"transparent",[Zm.listBorderRadius]:"0",[Zm.listBorderWidth]:"0",[Zm.listPadding]:"0",[Zm.listBoxShadow]:"none",[Zm.listItemsGap]:Sp.spacing.lg,[Zm.emptyStateMinHeight]:"0",[Zm.emptyStateVerticalPadding]:Sp.spacing.lg,[Zm.itemBorderColor]:Sp.colors.surface.light,[Zm.itemVerticalPadding]:Sp.spacing.lg,[Zm.itemHorizontalPadding]:Sp.spacing.lg,[Zm.itemBorderRadius]:Sp.radius.xs,[Zm.itemOutline]:"transparent",[Zm.itemBackgroundColor]:"transparent",[Zm.itemCursor]:"default",[Zm.itemContentGap]:Sp.spacing.sm,[Zm.badgeBorderColor]:Sp.colors.surface.light,[Zm.badgeTextColor]:Sp.colors.surface.dark,[Zm.badgeBorderRadius]:Sp.radius.xs,[Zm.badgeBackgroundColor]:Sp.colors.surface.main,[Zm.devicePanelGap]:Sp.spacing.md,[Zm.deviceIconGap]:Sp.spacing.md,[Zm.deviceIconSize]:"24px",[Zm.lastLoginLabelGap]:Sp.spacing.xs,_fullWidth:{[Zm.hostWidth]:"100%"}};var Gm=Object.freeze({__proto__:null,default:Fm,vars:Zm});const Hm=f("multi-sso"),Jm=({id:t,name:e,isDefault:i,link:o,authType:n,authOnly:r},s,a)=>{const l=!i&&a?.allowDelete?`<span\n class="delete-btn delete-icon"\n data-action="delete"\n role="button"\n tabindex="0"\n title="${a.deleteTooltipLabel}"\n ></span>`:"",d=o&&a?.allowConfigure?`<a\n class="external-link external-link-icon"\n target="_blank"\n rel="noopener noreferrer"\n title="${a.configureTooltipLabel}"\n ></a>`:"",{label:c,configured:u}=(t=>t&&"none"!==t?{label:t.toUpperCase(),configured:!0}:{label:"Not Configured",configured:!1})(n),p=r?'<descope-badge class="auth-only-badge" size="xs"><span class="auth-only-text"></span></descope-badge>':"",h=u?`<div class="auth-type-row">\n <descope-badge class="auth-type-badge" size="xs"></descope-badge>\n ${p}\n </div>`:`<div class="auth-type-row">\n <descope-text\n not-configured\n variant="body2"\n mode="secondary"\n >${a?.notConfiguredLabel}</descope-text>\n ${p}\n </div>`,g=document.createElement("template");g.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="top-row">\n <descope-text\n class="config-name"\n variant="body1"\n mode="primary"\n ></descope-text>\n <span class="action">\n ${l}\n ${d}\n </span>\n </div>\n ${h}\n </div>\n </descope-list-item>\n `,g.content.querySelector(".config-name").textContent=e;const M=g.content.querySelector(".delete-btn");if(M){M.dataset.id=t,M.dataset.name=e,M.setAttribute("aria-label",a.deleteTooltipLabel);const i=U(a,"delete-icon");i&&M.append(i)}const m=g.content.querySelector(".external-link");if(m){m.setAttribute("aria-label",a.configureTooltipLabel),o&&m.setAttribute("href",o);const t=U(a,"external-link-icon");t&&m.append(t)}const y=g.content.querySelector(".auth-type-badge");y&&(y.textContent=c);const b=g.content.querySelector(".auth-only-text");return b&&(b.textContent=a?.authOnlyLabel),g},$m=jt({componentName:Hm,baseSelector:"span.wrapper"}),{host:qm}={host:{selector:()=>":host"}},_m=T(Mt({mappings:{hostWidth:{...qm,property:"width"},hostMinWidth:{...qm,property:"min-width"},hostDirection:[{...qm,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"}],headerGap:{selector:()=>".header",property:"gap"},headerListGap:{selector:()=>"descope-list",property:"margin-top"},itemContentGap:{selector:()=>".content",property:"gap"},actionGap:{selector:()=>".action",property:"gap"},authTypeRowGap:{selector:()=>".auth-type-row",property:"gap"},unconfiguredAuthTypeTextColor:{selector:()=>"[not-configured]",property:ki.cssVarList.textColor},unconfiguredAuthTypeTextFontStyle:{selector:()=>"[not-configured]",property:"font-style"},buttonMaxWidth:{selector:Uo.componentName,property:Uo.cssVarList.hostMaxWidth},listItemsGap:{property:bu.cssVarList.gap},listBackgroundColor:{selector:()=>bu.componentName,property:bu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bu.componentName,property:bu.cssVarList.borderRadius},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPadding},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBorderRadius:{selector:Mu.componentName,property:Mu.cssVarList.borderRadius},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},badgeBorderColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderColor},badgeTextColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.textColor},badgeBackgroundColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.backgroundColor},badgeBorderRadius:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderRadius},titleIconSize:[{selector:()=>'::slotted([slot="title-icon"])',property:"width"},{selector:()=>'::slotted([slot="title-icon"])',property:"height"}],createButtonIconSize:[{selector:()=>'::slotted([slot="create-button-icon"])',property:"width"},{selector:()=>'::slotted([slot="create-button-icon"])',property:"height"}],actionIconSize:[{selector:()=>".delete-icon",property:"width"},{selector:()=>".delete-icon",property:"height"},{selector:()=>".external-link-icon",property:"width"},{selector:()=>".external-link-icon",property:"height"}],actionIconColor:[{selector:()=>".delete-icon",property:Eo.cssVarList.fill},{selector:()=>".external-link-icon",property:Eo.cssVarList.fill}]}}),mt,Yt({targetSelector:"descope-list",itemRenderer:Jm,rerenderAttrsList:["allow-delete","allow-configure","not-configured-label","delete-tooltip-label","configure-tooltip-label","auth-only-label"]}),yt)(class extends $m{static get observedAttributes(){return["label","create-button-label","not-configured-label","delete-tooltip-label","configure-tooltip-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <span class="wrapper">\n <div class="header">\n <slot name="title-icon"></slot>\n <descope-text class="title" variant="body1" mode="primary"></descope-text>\n <descope-button\n class="create-button"\n size="sm"\n variant="link"\n mode="primary"\n data-action="create"\n >\n <slot name="create-button-icon" slot="prefix"></slot>\n <span class="create-button-label"></span>\n </descope-button>\n </div>\n <descope-list></descope-list>\n <slot name="delete-icon" class="hidden"></slot>\n <slot name="external-link-icon" class="hidden"></slot>\n </span>\n ',this.listEl=this.shadowRoot.querySelector("descope-list"),this.deleteIconSlot=this.shadowRoot.querySelector('slot[name="delete-icon"]'),this.externalLinkIconSlot=this.shadowRoot.querySelector('slot[name="external-link-icon"]'),O('\n :host {\n display: inline-block;\n }\n\n :host(:not([allow-create="true"])) .create-button {\n display: none;\n }\n\n .create-button {\n min-width: 0;\n flex-shrink:1;\n }\n\n .header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n slot[name="title-icon"] {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .title {\n flex: 1;\n min-width: 0;\n width:0;\n flex-shrink: 0;\n\n }\n\n .title::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n }\n\n .top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n }\n\n .config-name {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .config-name::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .auth-type-row {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n /* The auth type is short and fixed, so it keeps its size and the consumer-supplied label is\n the one that gives way. */\n .auth-type-badge {\n flex-shrink: 0;\n }\n\n /* The label is consumer-supplied and localized, so it can be far longer than the row. It\n shrinks to whatever the row leaves it and ellipsises only then, rather than being held to a\n fixed width that would truncate it while space is still going spare. */\n .auth-only-badge {\n min-width: 0;\n flex-shrink: 1;\n }\n\n .auth-only-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .action {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n\n .hidden {\n display: none;\n }\n\n .delete-btn {\n cursor: pointer;\n display: flex;\n }\n\n .delete-icon > *,\n .external-link-icon > * {\n width: 100%;\n height: 100%;\n }\n\n .external-link {\n cursor: pointer;\n color: inherit;\n display: flex;\n }\n\n descope-text {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n ',this)}get deleteTooltipLabel(){return this.getAttribute("delete-tooltip-label")??""}get configureTooltipLabel(){return this.getAttribute("configure-tooltip-label")??""}get authOnlyLabel(){return this.getAttribute("auth-only-label")||"Authentication only"}init(){super.init?.(),this.shadowRoot.querySelector(".title").textContent=this.label,this.shadowRoot.querySelector(".create-button-label").textContent=this.createButtonLabel,this.listEl.itemRenderer=(t,e)=>Jm(t,0,this),this.shadowRoot.querySelector('[data-action="create"]').addEventListener("click",this.onCreateClick.bind(this)),this.listEl.addEventListener("click",this.onItemClick.bind(this)),k(this.listEl,this,{includeAttrs:["empty"]});const t=()=>{this.data&&(this.data=[...this.data])};this.deleteIconSlot.addEventListener("slotchange",t),this.externalLinkIconSlot.addEventListener("slotchange",t)}onCreateClick(){this.dispatchEvent(new CustomEvent("create-clicked",{bubbles:!0,detail:{}}))}onItemClick(t){const e=t.target.closest('[data-action="delete"]');if(!e)return;const i=e.getAttribute("data-id"),o=e.getAttribute("data-name");i&&this.dispatchEvent(new CustomEvent("delete-clicked",{bubbles:!0,detail:{id:i,name:o}}))}get allowCreate(){return"true"===this.getAttribute("allow-create")}get allowDelete(){return"true"===this.getAttribute("allow-delete")}get allowConfigure(){return"true"===this.getAttribute("allow-configure")}get label(){return this.getAttribute("label")}get createButtonLabel(){return this.getAttribute("create-button-label")}get notConfiguredLabel(){return this.getAttribute("not-configured-label")||"Not Configured"}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("label"===t){const t=this.shadowRoot?.querySelector(".title");t&&(t.textContent=this.label)}else if("create-button-label"===t){const t=this.shadowRoot?.querySelector(".create-button-label");t&&(t.textContent=this.createButtonLabel)}else"empty"===t&&this.listEl.classList.toggle("hidden","true"===i)}}),Xm=_m.cssVarList,Km=st(Sp),ty={[Xm.hostWidth]:"300px",[Xm.headerGap]:Km.spacing.md,[Xm.headerListGap]:Km.spacing.md,[Xm.itemContentGap]:Km.spacing.md,[Xm.actionGap]:Km.spacing.sm,[Xm.authTypeRowGap]:Km.spacing.sm,[Xm.unconfiguredAuthTypeTextColor]:Km.colors.surface.dark,[Xm.unconfiguredAuthTypeTextFontStyle]:"italic",[Xm.buttonMaxWidth]:"50%",[Xm.listBackgroundColor]:"transparent",[Xm.listBorderRadius]:"0",[Xm.listBorderWidth]:"0",[Xm.listPadding]:"0",[Xm.listBoxShadow]:"none",[Xm.listItemsGap]:Km.spacing.lg,[Xm.itemBorderColor]:Km.colors.surface.light,[Xm.itemVerticalPadding]:Km.spacing.lg,[Xm.itemHorizontalPadding]:Km.spacing.lg,[Xm.itemBorderRadius]:Km.radius.xs,[Xm.itemOutline]:"transparent",[Xm.itemBackgroundColor]:"transparent",[Xm.itemCursor]:"default",[Xm.badgeBorderColor]:Km.colors.surface.light,[Xm.badgeTextColor]:Km.colors.surface.dark,[Xm.badgeBorderRadius]:Km.radius.xs,[Xm.badgeBackgroundColor]:Km.colors.surface.main,[Xm.titleIconSize]:"24px",[Xm.createButtonIconSize]:"12px",[Xm.actionIconSize]:"20px",[Xm.actionIconColor]:Km.colors.surface.dark,_fullWidth:{[Xm.hostWidth]:"100%"}};var ey=Object.freeze({__proto__:null,default:ty,vars:Xm});const iy=f("tooltip"),oy=["text","position","hide-delay","hover-delay","opened"];class ny extends(jt({componentName:iy,baseSelector:"vaadin-tooltip"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <vaadin-tooltip slot="anchored"></vaadin-tooltip>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.tooltip=this.shadowRoot.querySelector("vaadin-tooltip"),this.anchored=this.shadowRoot.querySelector("descope-anchored")}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}static get observedAttributes(){return oy.concat(super.observedAttributes||[])}get isOpened(){return"true"===this.getAttribute("opened")}get overlay(){return this.tooltip?._overlayElement}get overlayContentNode(){return this.overlay?.shadowRoot.querySelector('[part="content"]')}get tooltipText(){return this.getAttribute("text")?.trim()||""}get isStaticDisplay(){return"true"===this.getAttribute("static-display")}get srLabel(){return this.tooltip?.querySelector('[slot="sr-label"]')}#Ni(){this.isStaticDisplay?(this.#Ii(),this.setAttribute("inert","true")):this.removeAttribute("inert")}#Ii(){this.overlay&&(this.overlay.style.display="block",this.overlay.style.position="static")}init(){super.init?.(),O('\n :host {\n display: inline-block;\n }\n vaadin-tooltip {\n display: block;\n position: absolute;\n width: 0;\n height: 0;\n overflow: hidden;\n }\n /* Stack anchor above the anchored element so the tooltip flows below it inline. */\n :host([static-display="true"]) descope-anchored::part(root) {\n flex-direction: column;\n }\n :host([static-display="true"]) descope-anchored::part(anchored) {\n position: static;\n inset: unset;\n }\n :host([static-display="true"]) vaadin-tooltip {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n }\n :host([static-display="true"]) vaadin-tooltip [slot="sr-label"] {\n display: none;\n }\n',this),this.tooltip.ariaTarget=this.anchored,this.defaultSlot.addEventListener("slotchange",()=>this.#xi()),this.#xi(),setTimeout(()=>this.#ji())}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=C(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#xi(){const t=this.defaultSlot?.assignedElements()?.[0];t&&(this.tooltip.target=t)}#ji(){this.#Di(),this.#vi(),k(this,this.tooltip,{includeAttrs:["position","opened"]}),this.#zi()}#Ci(){this.overlayContentNode.innerHTML=""}#Si(){const t=document.createElement("descope-enriched-text");return t.setAttribute("link-target-blank","true"),t.textContent=this.tooltipText,t}#Di(){this.overlayContentNode&&setTimeout(()=>{this.#Ci(),this.textComponent=this.#Si(),this.overlayContentNode.appendChild(this.textComponent),this.srLabel&&!this.tooltipText&&this.srLabel.setAttribute("aria-hidden","true"),k(this,this.textComponent,{includeAttrs:["readonly"]})})}#vi(){if(!this.overlay)return;const t=this.overlay._attachOverlay?.bind(this.overlay);this.overlay._detachOverlay=()=>{},this.overlay._attachOverlay=()=>{t?.(),setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.overlay._updatePosition?.()})},this.isOpened&&setTimeout(()=>{this.tooltip.shadowRoot.appendChild(this.overlay),this.#Ni(),this.overlay._updatePosition?.()})}#zi(){this.tooltip?.toggleAttribute("manual",this.isOpened)}#wi(t){if(!this.textComponent)return;const e=(t??"").trim();this.textComponent.textContent=e,this.srLabel&&(e?this.srLabel.removeAttribute("aria-hidden"):this.srLabel.setAttribute("aria-hidden","true"))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("text"===t&&this.#wi(i),"opened"===t&&this.#zi())}}const{overlay:ry,content:sy}={overlay:{selector:()=>"vaadin-tooltip-overlay::part(overlay)"},content:{selector:()=>"vaadin-tooltip-overlay::part(content)"}},ay=T(yt,Wt({selector:"",mappings:{fontFamily:{...sy,property:Ht.cssVarList.fontFamilyOverride},fontSize:{...sy,property:Ht.cssVarList.fontSizeOverride},fontWeight:{...sy,property:Ht.cssVarList.fontWeightOverride},textColor:{...sy,property:Ht.cssVarList.textColorOverride},hostDirection:{...sy,property:Ht.cssVarList.hostDirectionOverride},backgroundColor:[{...ry},{...sy}],borderColor:{...ry},borderStyle:{...ry},borderWidth:{...ry},borderRadius:{...ry},boxShadow:{...ry},horizontalPadding:[{...sy,property:"padding-left"},{...sy,property:"padding-right"}],verticalPadding:[{...sy,property:"padding-top"},{...sy,property:"padding-bottom"}]},forward:{attributes:["style"],include:!1}}))(ny),ly=st(Sp),dy=ay.cssVarList,[cy,uy,py]=lt({shadowColor:"#00000020"},iy),{shadowColor:hy}=uy,gy=`${ly.shadow.wide.sm} ${hy}, ${ly.shadow.narrow.sm} ${hy}`,My={...cy,[dy.fontFamily]:ly.fonts.font1.family,[dy.fontSize]:Sp.typography.body2.size,[dy.fontWeight]:Sp.typography.body2.weight,[dy.textColor]:ly.colors.surface.contrast,[dy.hostDirection]:ly.direction,[dy.backgroundColor]:ly.colors.surface.main,[dy.borderColor]:ly.colors.surface.light,[dy.borderStyle]:"solid",[dy.borderWidth]:ly.border.xs,[dy.borderRadius]:ly.radius.xs,[dy.horizontalPadding]:ly.spacing.md,[dy.verticalPadding]:ly.spacing.sm,[dy.boxShadow]:gy,shadow:{sm:{[dy.boxShadow]:gy},md:{[dy.boxShadow]:`${ly.shadow.wide.md} ${hy}, ${ly.shadow.narrow.md} ${hy}`},lg:{[dy.boxShadow]:`${ly.shadow.wide.lg} ${hy}, ${ly.shadow.narrow.lg} ${hy}`},xl:{[dy.boxShadow]:`${ly.shadow.wide.xl} ${hy}, ${ly.shadow.narrow.xl} ${hy}`},"2xl":{[py.shadowColor]:"#00000050",[dy.boxShadow]:`${ly.shadow.wide["2xl"]} ${hy}`}}};var my=Object.freeze({__proto__:null,default:My,vars:dy});const yy=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`[dataService] ${e.status} ${t}`);const i=await e.json();return i.data??i},by=async t=>yy(`${t}/countries.json`),Ny=async(t,e)=>{try{return(await yy(`${e}/countries/${t}/subdivisions.json`)).map(({code:t,...e})=>({...e,state_code:t}))}catch{return[]}},Iy=async(t,e,i)=>yy(`${i}/countries/${t}/subdivisions/${e}/cities.json`),xy=async t=>{const e=new URL("../labels.json",`${t}/`).href;return yy(e)},jy=async(t,e)=>yy(`${e}/countries/${t}/cities.json`),Ty=f("country-subdivision-city-field-internal"),Dy=Symbol("selecting"),vy=({name:t,translations:e={}},i)=>i&&(e[i]||e[i.split("-")[0]])||t,zy=t=>t?String(t).replace(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`):"",Cy=({name:t,iso2:e,iso3:i,translations:o,lang:n})=>{const r=vy({name:t,translations:o},n),s=[r,e,i];r!==t&&s.push(t);const a=zy(e),l=zy(s.join(" ")),d=zy(r);return`<div data-id="${a}" data-name="${l}" data-label="${d}">${d}</div>`},Sy=({name:t,state_code:e,translations:i,lang:o})=>{const n=vy({name:t,translations:i},o),r=[n,e];n!==t&&r.push(t);const s=zy(e),a=zy(r.join(" ")),l=zy(n);return`<div data-id="${s}" data-name="${a}" data-label="${l}">${l}</div>`},wy=({name:t,translations:e,lang:i})=>{const o=vy({name:t,translations:e},i),n=[o];o!==t&&n.push(t);const r=zy(t),s=zy(n.join(" ")),a=zy(o);return`<div data-id="${r}" data-name="${s}" data-label="${a}">${a}</div>`},Ay=t=>`<descope-combo-box id="${t}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,Ly=wt({componentName:Ty,baseSelector:""}),fy=["disabled","readonly","size","bordered"],Ey=["hide-country","hide-subdivision","hide-city"],ky=[...fy,"label-type","country-label","subdivision-label","city-label",...Ey,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],Oy=T()(class extends Ly{static get observedAttributes(){return[].concat(Ly.observedAttributes||[],ky)}#Ai;#Li;#fi;#Ei=!1;#ki=!1;#Oi=new Map;#Vi=null;#Wi=null;#Ri=null;#Ui=null;#Yi=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${Ay("country-combo")}\n ${Ay("subdivision-combo")}\n ${Ay("city-combo")}\n </div>\n `,this.#Ai=this.querySelector("#country-combo"),this.#Li=this.querySelector("#subdivision-combo"),this.#fi=this.querySelector("#city-combo"),this.#Qi(),this.#Pi()}get#Bi(){return"true"===this.getAttribute("hide-country")}get#Zi(){return"true"===this.getAttribute("hide-subdivision")}get#Fi(){return"true"===this.getAttribute("hide-city")}get#Gi(){return!this.#Hi}get#Hi(){return this.getAttribute("data-source-base-url")||void 0}get#Ji(){const t=this.getAttribute("lang")||void 0;if(t)try{const[e]=Intl.getCanonicalLocales(t);return e}catch{return}}get#$i(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#qi(){return this.getAttribute("subdivision-label")||void 0}get#_i(){return this.getAttribute("subdivision-placeholder")||void 0}get#Xi(){return(this.getAttribute("allowed-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#Ki(){return(this.getAttribute("pinned-countries")||"").split(",").map(t=>t.trim().toUpperCase()).filter(Boolean)}get#to(){return[this.#Ai,this.#Li,this.#fi]}get value(){return{country:this.#Bi?this.#$i:this.#Ai.value||void 0,subdivision:!this.#Zi&&this.#Ei&&this.#Li.value||void 0,city:!this.#Fi&&this.#ki&&this.#fi.value||void 0}}set value(t){if(!t)return;let e;try{e="string"==typeof t?JSON.parse(t):t}catch{return}this.#Yi={...e},this.#Hi&&this.#eo()}init(){this.addEventListener("focus",t=>{if(t.isTrusted){const t=this.#to.find(t=>!t.classList.contains(`${Ty}-hidden`)&&!t.checkValidity());(t||this.#io())?.focus()}}),super.init?.(),this.#oo(),this.#no(),this.#ro(),this.#so()}#so(){this.#Ai.renderItem=Cy,this.#Li.renderItem=Sy,this.#fi.renderItem=wy}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback?.(t,e,i),e!==i)if("required"===t)this.#ao();else if(Ey.includes(t)||"data-source-base-url"===t)this.#oo(),"data-source-base-url"===t&&this.#ro();else if("default-country"===t){const t=i?.toUpperCase();if(t&&t!==i)return void this.setAttribute("default-country",t);t&&this.#Oi.size?this.#lo(t):t&&this.#Bi&&this.#do()}else"lang"===t?this.#co():"invalid"===t?"true"===i&&this.#uo():"allowed-countries"===t||"pinned-countries"===t?this.#Bi||(this.#Vi?this.#po(this.#Vi):this.#do()):"country-label"===t?this.#ho(this.#Ai,"label",i):"subdivision-label"===t?this.#ho(this.#Li,"label",i):"city-label"===t&&this.#ho(this.#fi,"label",i)}getValidity(){if(!this.isRequired)return{};const t=!this.#Bi&&!this.#Ai.value,e=!this.#Zi&&(this.#Gi||this.#Ei)&&!this.#Li.value,i=!this.#Fi&&(this.#Gi||this.#ki)&&!this.#fi.value;return t||e||i?{valueMissing:!0}:{}}#uo(){for(const t of[...this.#to].reverse())t.classList.contains(`${Ty}-hidden`)||t.checkValidity()||t.reportValidity()}#Qi(){[this.#Ai,this.#Li,this.#fi].forEach(t=>{t.customValueTransformFn=e=>{const i=t.baseElement?.items?.find(t=>t["data-name"]===e);return i?.getAttribute("data-label")??e}})}#Pi(){this.#to.forEach(t=>{k(this,t,{includeAttrs:[...fy,"label-type"]})}),k(this,this.#Ai,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#Ai,"country-placeholder"],[this.#Li,"subdivision-placeholder"],[this.#fi,"city-placeholder"]].forEach(([t,e])=>{k(this,t,{includeAttrs:[e],mapAttrs:{[e]:"placeholder"}})})}#no(){this.#Ai.addEventListener("input",()=>this.#go()),this.#Li.addEventListener("input",()=>this.#Mo()),this.#fi.addEventListener("input",()=>this.#mo()),this.handleFocusEventsDispatching(this.#to)}#ro(){this.#Hi&&(this.#Yi?this.#eo():this.#Bi&&!this.#$i||this.#do())}async#eo(){const{country:t,subdivision:e,city:i}=this.#Yi,o=!!e&&!this.#Zi,n=!!i&&!this.#Fi,r=this.#Vi??by(this.#Hi),s=this.#Ui??xy(this.#Hi),a=o&&t?Ny(t,this.#Hi):null,l=n&&t?o&&e?Iy(t,e,this.#Hi):jy(t,this.#Hi):null,[d,c,u,p]=(await Promise.allSettled([r,s,a,l])).map(t=>"fulfilled"===t.status?t.value:null);if(!this.#Yi)return;c&&(this.#Ui=c);const h=[];d&&(this.#Vi||(this.#Vi=d,this.#po(d)),t&&!this.#Bi&&h.push([this.#Ai,t]));const g=t?this.#Oi.get(t):null;g?.subdivisionType&&this.#yo(g.subdivisionType),u&&(this.#Wi=u,this.#Ei=u.length>0,u.length>0&&(this.#Li.data=u.map(t=>({...t,lang:this.#Ji})),e&&h.push([this.#Li,e]))),p&&(this.#ki=p.length>0,p.length>0&&(this.#Ri=p,this.#fi.data=p.map(t=>({...t,lang:this.#Ji})),i&&h.push([this.#fi,i]))),this.#oo(),this.#Yi=Dy,setTimeout(()=>{if(this.#Yi===Dy){for(const[t,e]of h){const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)}this.#Yi=null}})}#go(){this.#Yi!==Dy&&(this.#Yi=null,this.#bo(),this.#No(),this.#lo(this.#Ai.value),this.#mo())}#Mo(){if(this.#Yi===Dy)return;this.#Yi=null;const t=this.#Li.value;if(this.#No(),!this.#Fi&&t){const e=this.#Ai.value;e&&this.#Io(e,t)}this.#mo()}#lo(t){if(!t)return;const e=this.#Oi.get(t);if(!e)return;const{hasSubdivisions:i,subdivisionType:o}=e;!this.#Zi&&i?(this.#yo(o),this.#xo(t)):this.#Fi||this.#Io(t)}#yo(t){const e=this.#jo(t);this.#qi||this.#ho(this.#Li,"label",e||null),this.#_i||this.#ho(this.#Li,"placeholder",e||null)}#jo(t){const e=this.#Ui?.subdivisionTypes,i=e?.[t]??e?._fallback;if(!i)return t;const o=this.#Ji;return o&&(i[o]||i[o.split("-")[0]])||i.en||t}async#To(){try{this.#Ui=await xy(this.#Hi)}catch{}}async#do(){if(this.#Hi){this.#Ai.setAttribute("loading","true");try{const[t]=await Promise.all([by(this.#Hi),this.#To()]);this.#Vi=t,this.#po(t),!this.#Yi&&this.#$i&&this.#lo(this.#$i)}catch(t){console.error(`[${Ty}] Failed to load countries`,t)}finally{this.#Ai.removeAttribute("loading")}}}async#xo(t){this.#Do(this.#Li,!0),this.#Li.setAttribute("loading","true");try{const e=await Ny(t,this.#Hi);this.#Wi=e,this.#Ei=e.length>0,this.#oo(),e.length>0?this.#Li.data=e.map(t=>({...t,lang:this.#Ji})):this.#Fi||this.#Io(t)}catch(e){console.error(`[${Ty}] Failed to load subdivisions for ${t}`,e),this.#Ei=!1,this.#vo()}finally{this.#Li.removeAttribute("loading")}}async#Io(t,e){this.#fi.setAttribute("loading","true");try{const i=await(e?Iy(t,e,this.#Hi):jy(t,this.#Hi));this.#ki=i.length>0,this.#oo(),i.length>0&&(this.#Ri=i,this.#fi.data=i.map(t=>({...t,lang:this.#Ji})))}catch(i){console.error(`[${Ty}] Failed to load cities for ${t}${e?`/${e}`:""}`,i)}finally{this.#fi.removeAttribute("loading")}}#co(){if(this.#Vi){const t=this.#Ai.value;this.#po(this.#Vi),t&&this.#zo(this.#Ai,t)}if(this.#Wi&&this.#Ei){const t=this.#Li.value;this.#Li.data=this.#Wi.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#Li,t)}if(this.#Ri&&this.#ki){const t=this.#fi.value;this.#fi.data=this.#Ri.map(t=>({...t,lang:this.#Ji})),t&&this.#zo(this.#fi,t)}const t=this.#Ai.value;if(t){const e=this.#Oi.get(t);e?.subdivisionType&&this.#yo(e.subdivisionType)}}#po(t){const e=this.#Co(t);this.#Ai.data=e.map(t=>({...t,lang:this.#Ji})),this.#Oi=new Map(t.map(t=>[t.iso2,t]))}#Co(t){const e=this.#Xi,i=this.#Ki;let o=e.length?t.filter(t=>e.includes(t.iso2)):[...t];return o.sort((t,e)=>vy(t,this.#Ji).localeCompare(vy(e,this.#Ji),this.#Ji)),i.length?[...i.map(t=>o.find(e=>e.iso2===t)).filter(Boolean),...o.filter(t=>!i.includes(t.iso2))]:o}#vo(){this.#Do(this.#Ai,!this.#Bi),this.#Do(this.#Li,!this.#Zi&&(this.#Gi||this.#Ei)),this.#Do(this.#fi,!this.#Fi&&(this.#Gi||this.#ki))}#Do(t,e){t?.classList.toggle(`${Ty}-hidden`,!e)}#ao(){const t=this.hasAttribute("required")?"true":null;this.#ho(this.#Ai,"required",this.#Bi?null:t),this.#ho(this.#Li,"required",this.#Zi||!this.#Gi&&!this.#Ei?null:t),this.#ho(this.#fi,"required",this.#Fi||!this.#Gi&&!this.#ki?null:t)}#oo(){this.#vo(),this.#ao(),this.setCustomValidity("")}#bo(){this.#Li.value="",this.#Li.data=[],this.#Ei=!1,this.#qi||this.#Li.removeAttribute("label"),this.#_i||this.#Li.removeAttribute("placeholder"),this.#oo()}#No(){this.#fi.value="",this.#fi.data=[],this.#Ri=null,this.#ki=!1,this.#oo()}#mo(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#ho(t,e,i){i?t.setAttribute(e,i):t.removeAttribute(e)}#io(){return this.#to.find(t=>!t.classList.contains(`${Ty}-hidden`))}#zo(t,e){setTimeout(()=>{const i=t.items?.find(t=>t["data-id"]===e);i&&(t.selectedItem=i)})}}),Vy=f("country-subdivision-city-field"),Wy={selector:()=>":host"},Ry={selector:`${Ty} > .wrapper`},Uy={selector:`${Ty} > .wrapper > descope-combo-box`},Yy=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{hostWidth:{...Wy,property:"width"},hostDirection:[{...Wy,property:"direction"},{...Uy,property:zo.cssVarList.hostDirection}],flexDirection:{...Ry,property:"flex-direction"},flexGap:{...Ry,property:"gap"},itemAlignment:{...Ry,property:"align-items"},itemMinWidth:{...Uy,property:"min-width"},itemFlexGrow:{...Uy,property:"flex-grow"},itemWidth:{...Uy,property:zo.cssVarList.hostWidth}}}),mt,Vt({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),yt,t=>class extends t{init(){super.init?.();const t=document.createElement("template");t.innerHTML=`\n <${Ty}\n tabindex="-1"\n ></${Ty}>\n `,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(Ty),k(this,this.inputElement,{includeAttrs:["size","bordered","required","label-type","disabled","readonly","hide-country","hide-subdivision","hide-city","default-country","allowed-countries","pinned-countries","country-label","subdivision-label","city-label","country-placeholder","subdivision-placeholder","city-placeholder","data-source-base-url","lang","invalid"]}),A(this,this.inputElement,{includeAttrs:["invalid"]})}})(ft({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${Ty} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${Ty} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${Ty}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:Vy})),Qy=Yy.cssVarList,Py={[Qy.hostWidth]:th.width,[Qy.hostDirection]:th.direction,[Qy.flexDirection]:"column",[Qy.flexGap]:"0.5em",[Qy.itemAlignment]:"stretch",[Qy.itemFlexGrow]:"0",[Qy.itemWidth]:"auto",_fullWidth:{[Qy.hostWidth]:"100%"},_horizontal:{[Qy.flexDirection]:"row",[Qy.itemFlexGrow]:"1"}};var By=Object.freeze({__proto__:null,default:Py,vars:Qy});const Zy=f("attachment"),Fy=["top-end","top-start","top-center","bottom-start","bottom-end","bottom-center"],Gy=Fy[0];class Hy extends(jt({componentName:Zy,baseSelector:"descope-anchored"})){#yi=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <descope-anchored>\n <slot></slot>\n <div slot="anchored" class="attachment-container">\n <slot name="attachment"></slot>\n </div>\n </descope-anchored>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.attachmentSlot=this.shadowRoot.querySelector('slot[name="attachment"]'),this.anchored=this.shadowRoot.querySelector("descope-anchored")}get#So(){return this.attachmentSlot?.assignedElements()[0]}static get observedAttributes(){return[...super.observedAttributes||[],"position"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),"position"===t&&e!==i&&this.#wo()}init(){super.init?.(),O("\n :host {\n display: inline-block;\n }\n :host(.hidden) {\n display: none;\n }\n .attachment-container {\n position: absolute;\n z-index: 1;\n pointer-events: none;\n width: 100%;\n display: flex;\n align-items: center;\n container-type: inline-size;\n }\n",this),this.#wo();const t=this.shadowRoot.querySelector(".attachment-container");C(t,()=>this.#Ao(),{includeAttrs:["st-host-direction"]}),this.attachmentSlot.addEventListener("slotchange",()=>this.#Ao()),this.defaultSlot.addEventListener("slotchange",()=>{this.#Lo(),window.requestAnimationFrame(()=>this.#fo())}),window.requestAnimationFrame(()=>this.#Lo())}#bi(){const t=this.anchored?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#Ti(){this.#yi?.disconnect(),this.anchored&&(this.#yi=C(this.anchored,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#bi(),this.#Ti()}disconnectedCallback(){super.disconnectedCallback?.(),this.#yi?.disconnect()}#fo(){const t=this.defaultSlot?.assignedElements()?.[0],e=t?.getBoundingClientRect();if(e){const t=e.width;this.#So?.setAttribute("data-attachment-size",Number(t))}}#Lo(){const t=this.defaultSlot?.assignedElements()?.length>0;this.classList.toggle("hidden",!t)}#Ao(){const t=this.shadowRoot.querySelector(".attachment-container")?.getAttribute("st-host-direction");t&&this.#So?.setAttribute("st-host-direction",t)}get offsetX(){return this.getAttribute("offset-x")||"0px"}get offsetY(){return this.getAttribute("offset-y")||"0px"}#wo(){const t=this.getAttribute("position");Fy.includes(t)||this.setAttribute("position",Gy)}}const Jy={selector:()=>".attachment-container"},$y=T(Mt({mappings:{transform:{...Jy},justifyContent:{...Jy},maxWidth:{...Jy},top:{...Jy},bottom:{...Jy},left:{...Jy},right:{...Jy},offsetX:{},offsetY:{}}}),mt,yt)(Hy),qy=$y.cssVarList,_y=`calc(8px + var(${qy.offsetX}))`,Xy={[qy.maxWidth]:"calc(100% - 2 * 8px)",position:{"top-start":{[qy.transform]:"translateY(-50%)",[qy.justifyContent]:"start",[qy.left]:_y,[qy.top]:at(qy.offsetY)},"top-center":{[qy.transform]:"translate(-50%, -50%)",[qy.justifyContent]:"center",[qy.top]:at(qy.offsetY),[qy.left]:"50%"},"top-end":{[qy.transform]:"translateY(-50%)",[qy.justifyContent]:"end",[qy.right]:_y,[qy.top]:at(qy.offsetY)},"bottom-start":{[qy.transform]:"translateY(50%)",[qy.justifyContent]:"start",[qy.left]:_y,[qy.bottom]:at(qy.offsetY)},"bottom-center":{[qy.bottom]:at(qy.offsetY),[qy.transform]:"translate(-50%, 50%)",[qy.justifyContent]:"center",[qy.left]:"50%"},"bottom-end":{[qy.transform]:"translateY(50%)",[qy.justifyContent]:"end",[qy.right]:_y,[qy.bottom]:at(qy.offsetY)}}};var Ky=Object.freeze({__proto__:null,default:Xy}),tb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",eb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=";const ib=t=>{const e=parseInt(t,10);return Number.isNaN(e)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WV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iIzYzNmM3NCIvPjwvc3ZnPg==",dark:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTYgMWgtOGMtMS42NiAwLTMgMS4zNC0zIDN2MTZjMCAxLjY2IDEuMzQgMyAzIDNoOGMxLjY2IDAgMy0xLjM0IDMtM3YtMTZjMC0xLjY2LTEuMzQtMy0zLTN6bTEgMTdoLTEwdi0xNGgxMHptLTMgM2gtNHYtMWg0eiIgZmlsbD0iI2JlYzRjYSIvPjwvc3ZnPg=="},other:{light:eb,dark:tb}},nb=f("user-passkeys"),rb=({id:t,name:e,createdAt:i,passkeyType:o},n,r)=>{const{iconSrc:s,iconSrcDark:a}=(t=>{const e=ob[t]||ob.other;return{iconSrc:e.light,iconSrcDark:e.dark}})(o),l=i&&r.createdAtLabel?`${r.createdAtLabel} `:"",d=((t,e)=>{if(Number.isNaN(parseInt(t,10)))return"";const i=new Date(t),o=i.getFullYear(),n=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),s=i.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"}),a={"DD-MM-YYYY":`${r}/${n}/${o}`,"YYYY-MM-DD":`${o}/${n}/${r}`,"MM-DD-YYYY":`${n}/${r}/${o}`};return`${a[e]||a["MM-DD-YYYY"]} ${s}`})(i,r.format),c=document.createElement("template");return c.innerHTML=`\n <descope-list-item>\n <div class="content">\n <div class="main">\n <span class="item">\n <descope-icon class="item-icon" src="${s}" src-dark="${a}"></descope-icon>\n <descope-text class="item-name" variant="body1" mode="primary"></descope-text>\n </span>\n <span class="item-panel">\n ${r.allowRemove?'<descope-link variant="text" mode="primary" size="md" ellipsis="true" data-action="remove-passkey" class="remove-button">\n <div class="remove-button-content">\n </div>\n </descope-link>':'<descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhDMCAxMi40IDMuNiAxNiA4IDE2QzEyLjQgMTYgMTYgMTIuNCAxNiA4QzE2IDMuNiAxMi40IDAgOCAwWk03LjEgMTEuN0wyLjkgNy42TDQuMyA2LjJMNyA4LjlMMTIgNEwxMy40IDUuNEw3LjEgMTEuN1oiIGZpbGw9IiM0Q0FGNTAiLz4KPC9zdmc+Cg=="></descope-icon>'}\n </span>\n </div>\n <div class="meta">\n <descope-text variant="body2" mode="primary">${l}</descope-text>\n <descope-text class="date" variant="body2" mode="primary">\n ${d}\n </descope-text>\n </div>\n </div>\n </descope-list-item>\n `,c.content.querySelector(".item-name").textContent=e,r.allowRemove&&((t,e,i)=>{const o=t.content.querySelector(".remove-button-content");o.dataset.passkeyId=e;const n=U(i,"remove-button");n&&o.append(n)})(c,t,r),c},sb=jt({componentName:nb,baseSelector:bu.componentName}),{host:ab,methodIconSlotted:lb,addIconSlotted:db}={host:{selector:()=>":host"},methodIconSlotted:{selector:()=>'slot[name="method-icon"]::slotted(*)'},addIconSlotted:{selector:()=>'slot[name="button-icon"]::slotted(*)'}},cb=T(Mt({mappings:{hostWidth:{...ab,property:"width"},hostMinWidth:{...ab,property:"min-width"},hostDirection:[{...ab,property:"direction"},{selector:()=>"descope-list-item",property:"direction"},{selector:()=>"descope-text",property:"direction"},{selector:()=>"descope-link",property:Zi.cssVarList.hostDirection}],headerGap:{selector:()=>".method",property:"gap"},listGap:{selector:()=>"descope-list",property:"margin-top"},listItemsGap:{property:bu.cssVarList.gap},listBackgroundColor:{selector:()=>bu.componentName,property:bu.cssVarList.backgroundColor},listBorderRadius:{selector:()=>bu.componentName,property:bu.cssVarList.borderRadius},listBorderWidth:{selector:()=>bu.componentName,property:bu.cssVarList.borderWidth},listBoxShadow:{selector:()=>bu.componentName,property:bu.cssVarList.boxShadow},listPadding:[{selector:()=>bu.componentName,property:bu.cssVarList.verticalPadding},{selector:()=>bu.componentName,property:bu.cssVarList.horizontalPadding}],itemVerticalPadding:{selector:Mu.componentName,property:Mu.cssVarList.verticalPadding},itemHorizontalPadding:{selector:Mu.componentName,property:Mu.cssVarList.horizontalPadding},itemCursor:{selector:Mu.componentName,property:Mu.cssVarList.cursor},itemOutline:{selector:Mu.componentName,property:Mu.cssVarList.outline},itemBorderColor:{selector:Mu.componentName,property:Mu.cssVarList.borderColor},itemBorderRadius:{selector:Mu.componentName,property:Mu.cssVarList.borderRadius},itemBackgroundColor:{selector:Mu.componentName,property:Mu.cssVarList.backgroundColor},itemContentGap:{selector:()=>".content",property:"gap"},itemPanelGap:{selector:()=>".main",property:"gap"},itemIconGap:{selector:()=>".item",property:"gap"},itemIconSize:[{selector:()=>".item-icon",property:"width"},{selector:()=>".item-icon",property:"height"}],addButtonGap:{selector:()=>".button",property:"margin-inline-end"},dateGap:{selector:" .meta",property:"gap"},removeButtonGap:{selector:()=>".remove-button-content",property:"gap"},iconColor:{selector:()=>Uo.componentName,property:Uo.cssVarList.iconColor},iconSize:[{...lb,property:"height"},{...db,property:"height"}]}}),mt,Yt({itemRenderer:rb,sortFn:(t,e)=>ib(e.createdAt)-ib(t.createdAt),rerenderAttrsList:["created-at-label","format","allow-remove"]}),yt)(class extends sb{static get observedAttributes(){return["label","add-passkey-button-label","remove-passkey-button-label","empty"].concat(super.observedAttributes)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="header">\n <div class="method">\n <slot name="method-icon"></slot>\n <descope-text class="method-label" st-text-align="auto" data-id="label-text" variant="body1" mode="primary"></descope-text>\n </div>\n <span class="button">\n <descope-button class="add-passkey-button" size="sm" variant="link" mode="primary">\n <slot name="button-icon"></slot>\n </descope-button>\n </span>\n </div>\n\n <descope-list>\n <slot name="empty-state" slot="empty-state"></slot>\n </descope-list>\n\n <slot name="remove-button" class="hidden"></slot>\n ',this.methodLabel=this.shadowRoot.querySelector(".method-label"),this.addPasskeyButton=this.shadowRoot.querySelector(".add-passkey-button"),this.appsList=this.shadowRoot.querySelector("descope-list"),this.removeButton=this.shadowRoot.querySelector('slot[name="remove-button"]'),O('\n .remove-button-content {\n display: flex;\n align-items: center;\n }\n :host {\n display: inline-block;\n }\n\n .header {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header .method {\n display: flex;\n flex: 1;\n min-width: 0;\n }\n\n slot[name="method-icon"] {\n display: inline-flex;\n flex-shrink: 0;\n }\n\n .button {\n min-width: 0;\n max-width: 50%;\n flex-shrink: 1;\n }\n\n .add-passkey-button {\n align-self: center;\n max-width: 100%;\n }\n\n .add-passkey-button > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .descope-list-item {\n min-width: 0;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n .main {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .item-panel {\n display: flex;\n flex-shrink: 0;\n max-width: 75%;\n overflow: hidden;\n align-items: center;\n cursor: pointer;\n }\n\n .item {\n display: flex;\n min-width: 0;\n }\n\n .item-icon {\n flex-shrink: 0;\n }\n\n .meta {\n display: flex;\n }\n\n .date {\n min-width: fit-content;\n }\n\n descope-text {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n descope-text::part(text-wrapper) {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n descope-link {\n overflow: hidden;\n }\n descope-link.remove-button {\n width: 100%;\n }\n descope-link.remove-button::part(wrapper) {\n display: flex;\n width: 100%;\n }\n .hidden {\n display: none\n }\n\n ',this)}init(){super.init?.(),this.appsList.itemRenderer=rb,this.appsList.addEventListener("click",this.onRemoveClick.bind(this)),this.addPasskeyButton.addEventListener("click",this.onAddClick.bind(this)),k(this.appsList,this,{includeAttrs:["empty"]}),this.removeButton.addEventListener("slotchange",()=>{this.data=[...this.data]}),this.onLabelChange(),this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel)}onAddClick(){this.readOnly||this.dispatchEvent(new CustomEvent("add-passkey-clicked",{bubbles:!0,detail:{action:"add-passkey"}}))}onRemoveClick(t){if(this.readOnly)return;const e=t.target.closest("[data-passkey-id]"),i=e?.getAttribute("data-passkey-id");i&&this.dispatchEvent(new CustomEvent("remove-passkey-clicked",{bubbles:!0,detail:{id:i,action:"remove-passkey"}}))}get label(){return this.getAttribute("label")||"Passkey"}get readOnly(){return"true"===this.getAttribute("readonly")}get allowRemove(){return"true"===this.getAttribute("allow-remove")}get format(){return this.getAttribute("format")?.toUpperCase()||"MM-DD-YYYY"}get addPasskeyButtonLabel(){return this.getAttribute("add-passkey-button-label")||"Add"}get removePasskeyButtonLabel(){return this.getAttribute("remove-passkey-button-label")||"Remove"}get createdAtLabel(){return this.getAttribute("created-at-label")||"Date added:"}get direction(){return this.getAttribute("st-host-direction")}onLabelChange(){this.methodLabel.innerText=this.label,this.methodLabel.setAttribute("title",this.label)}updateButtonLabel(t,e){let i=t.querySelector("span");e?(i||(i=document.createElement("span"),t.appendChild(i)),i.textContent=e):i&&t.removeChild(i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("label"===t?this.onLabelChange():"add-passkey-button-label"===t?this.updateButtonLabel(this.addPasskeyButton,this.addPasskeyButtonLabel):"empty"===t&&this.appsList.classList.toggle("hidden","true"===i))}}),ub=cb.cssVarList,pb={[ub.hostWidth]:"auto",[ub.hostWidth]:"300px",[ub.hostMinWidth]:"300px",[ub.headerGap]:Sp.spacing.lg,[ub.listGap]:Sp.spacing.xl,[ub.listBackgroundColor]:"transparent",[ub.listBorderRadius]:"0",[ub.listBorderWidth]:"0",[ub.listPadding]:"0",[ub.listBoxShadow]:"none",[ub.listItemsGap]:Sp.spacing.lg,[ub.itemBorderColor]:Sp.colors.surface.light,[ub.itemVerticalPadding]:Sp.spacing.lg,[ub.itemHorizontalPadding]:Sp.spacing.lg,[ub.itemBorderRadius]:Sp.radius.xs,[ub.itemOutline]:"transparent",[ub.itemBackgroundColor]:"transparent",[ub.itemCursor]:"default",[ub.itemContentGap]:Sp.spacing.sm,[ub.itemPanelGap]:Sp.spacing.md,[ub.itemIconGap]:Sp.spacing.md,[ub.itemIconSize]:"24px",[ub.addButtonGap]:Sp.spacing.sm,[ub.dateGap]:Sp.spacing.xs,[ub.removeButtonGap]:Sp.spacing.sm,[ub.iconSize]:"1.5em",[ub.iconColor]:"currentcolor",_fullWidth:{[ub.hostWidth]:"100%"}};var hb=Object.freeze({__proto__:null,default:pb,vars:ub});const gb=st(Sp),Mb=ir.cssVarList,mb={[Mb.hostWidth]:th.width,[Mb.hostMinWidth]:th.minWidth,[Mb.hostDirection]:th.direction,[Mb.fontSize]:th.fontSize,[Mb.fontFamily]:th.fontFamily,[Mb.labelFontSize]:th.labelFontSize,[Mb.labelFontWeight]:th.labelFontWeight,[Mb.inputValueFontWeight]:th.inputValueFontWeight,[Mb.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[Mb.helperTextFontWeight]:th.helperTextFontWeight,[Mb.errorMessageFontWeight]:th.errorMessageFontWeight,[Mb.labelTextColor]:th.labelTextColor,[Mb.labelRequiredIndicator]:th.requiredIndicator,[Mb.errorMessageTextColor]:th.errorMessageTextColor,[Mb.inputValueTextColor]:th.valueTextColor,[Mb.inputPlaceholderColor]:th.placeholderTextColor,[Mb.inputBorderWidth]:th.borderWidth,[Mb.inputBorderStyle]:th.borderStyle,[Mb.inputBorderColor]:th.borderColor,[Mb.inputBorderRadius]:th.borderRadius,[Mb.inputOutlineWidth]:th.outlineWidth,[Mb.inputOutlineStyle]:th.outlineStyle,[Mb.inputOutlineColor]:th.outlineColor,[Mb.inputOutlineOffset]:th.outlineOffset,[Mb.inputBackgroundColor]:th.backgroundColor,[Mb.inputHeight]:th.inputHeight,[Mb.inputHorizontalPadding]:th.horizontalPadding,[Mb.helperTextColor]:th.helperTextColor,[Mb.textAlign]:th.textAlign,textAlign:{right:{[Mb.inputTextAlign]:"right"},left:{[Mb.inputTextAlign]:"left"},center:{[Mb.inputTextAlign]:"center"}},[Mb.labelPosition]:th.labelPosition,[Mb.labelTopPosition]:th.labelTopPosition,[Mb.labelHorizontalPosition]:th.labelHorizontalPosition,[Mb.inputTransformY]:th.inputTransformY,[Mb.inputTransition]:th.inputTransition,[Mb.marginInlineStart]:th.marginInlineStart,[Mb.placeholderOpacity]:th.placeholderOpacity,[Mb.inputVerticalAlignment]:th.inputVerticalAlignment,[Mb.valueInputHeight]:th.valueInputHeight,[Mb.valueInputMarginBottom]:th.valueInputMarginBottom,[Mb.inputIconOffset]:gb.spacing.md,[Mb.inputIconSize]:th.inputIconSize,[Mb.inputIconColor]:th.placeholderTextColor,[Mb.errorMessageIcon]:th.errorMessageIcon,[Mb.errorMessageIconSize]:th.errorMessageIconSize,[Mb.errorMessageIconPadding]:th.errorMessageIconPadding,[Mb.errorMessageIconRepeat]:th.errorMessageIconRepeat,[Mb.errorMessageIconPosition]:th.errorMessageIconPosition,[Mb.errorMessageFontSize]:th.errorMessageFontSize,[Mb.inputTextSecurity]:th.inputTextSecurity};var yb=Object.freeze({__proto__:null,default:mb,textField:mb,vars:Mb});class bb{#R=Object.freeze([]);constructor({id:t,min:e,max:i,placeholder:o},n){this.id=t,this.min=e,this.max=i,this.placeholder=o,this.onChange=n}get data(){return this.#R}set data(t){this.#R=Object.freeze(t),this.onChange?.()}get#at(){return this.data.length?this.numberValue:0}get numberValue(){return Number(this.stringValue)}get stringValue(){return(this.data.join("")||this.placeholder).padStart(this.length,"0")}get isFull(){return 10*this.numberValue>this.max||this.data.length===this.length}get isEmpty(){return this.stringValue===this.placeholder}get length(){return this.max.toString().length}set(t){this.data=t.toString().split("")}add(t){let{data:e}=this;return e=[...e,t],Number(e.join(""))>this.max?e=[t]:this.length<e.length&&(e=e.slice(1,e.length)),this.data=e,t}del(){this.data.filter(t=>"0"!==t).filter(Boolean).length?this.data=this.data.slice(0,this.data.length-1):this.data=[]}clear(){this.data=[]}inc(t){this.replaceValue(this.#at<this.max?Math.max(this.#at+(t||1),this.min):this.min)}dec(t){this.replaceValue(this.#at>this.min?Math.min(this.#at-(t||1),this.max):this.max)}isInRange(t){return t>=this.min&&t<=this.max}replaceValue(t){this.isInRange(t)&&(this.data=t.toString().padStart(this.length,0).split(""))}setMin(t){this.min=Number(t)}setMax(t){this.max=Number(t)}}const Nb=["MM/DD","DD/MM"],Ib=Nb[0],xb="/",jb=[31,29,31,30,31,30,31,31,30,31,30,31],Tb={id:"month",min:1,max:12,placeholder:"MM"},Db={id:"day",min:1,max:31,placeholder:"DD"},vb={MM:"(0?[1-9]|1[0-2])",DD:"(0?[1-9]|[12][0-9]|3[01])"},zb=t=>{const e=(t=>`^${t.split(xb).map(t=>vb[t]).join("\\D")}$`)(t),i=(t=>{const e=t.split(xb);return t=>{const i={};return e.forEach((e,o)=>{i[e]=Number(t[o+1])}),{month:i.MM,day:i.DD}}})(t),o=new RegExp(e);return{pattern:e,validate:t=>o.test(t),getParts:t=>{const e=o.exec(t);return e?i(e):null}}},Cb=Object.fromEntries(Nb.map(t=>[t,zb(t)])),Sb=(t,e)=>{const i=t?.trim?.();return i?Cb[e]?.getParts(i)??null:null},wb=f("month-day-field"),Ab=wt({componentName:wb,baseSelector:"vaadin-popover"}),Lb=["format","opened","initial-value","readonly","disable-picker"],fb=["picker-months","picker-label-submit","picker-label-cancel"],Eb=[...Lb,...fb],kb=ir.cssVarList,{host:Ob,input:Vb,inputEleRTL:Wb,toggleButton:Rb,overlay:Ub,backdrop:Yb,bottomNav:Qb,navButton:Pb}={host:{selector:()=>":host"},input:{selector:()=>"descope-text-field"},inputEleRTL:{selector:()=>':host([st-host-direction="rtl"]) descope-text-field'},toggleButton:{selector:()=>".toggle-picker"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"},bottomNav:{selector:"vaadin-popover-overlay .bottom-nav"},navButton:{selector:"vaadin-popover-overlay .bottom-nav descope-button"}},Bb=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{iconMargin:{...Rb,property:"margin-inline-end"},hostWidth:{...Ob,property:"width"},hostDirection:{...Ob,property:"direction"},textAlign:{...Vb,property:"text-align"},rtlInputDirection:{...Wb,property:kb.inputDirection},rtlInputAlignment:{...Wb,property:kb.inputTextAlign},overlayGap:{property:()=>Bb.cssVarList.overlayGap},overlayBackgroundColor:{property:()=>Bb.cssVarList.overlayBackgroundColor},overlayPadding:{property:()=>Bb.cssVarList.overlayPadding},overlayBoxShadow:{property:()=>Bb.cssVarList.overlayBoxShadow},overlayOutlineWidth:{property:()=>Bb.cssVarList.overlayOutlineWidth},overlayOutlineColor:{property:()=>Bb.cssVarList.overlayOutlineColor},overlayOutlineStyle:{property:()=>Bb.cssVarList.overlayOutlineStyle},errorMessageIcon:{selector:ir.componentName,property:ir.cssVarList.errorMessageIcon},errorMessageIconSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconSize},errorMessageIconPadding:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPadding},errorMessageIconRepeat:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconRepeat},errorMessageIconPosition:{selector:ir.componentName,property:ir.cssVarList.errorMessageIconPosition},errorMessageFontSize:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontSize},labelFontWeight:{selector:ir.componentName,property:ir.cssVarList.labelFontWeight},inputValueFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{selector:ir.componentName,property:ir.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{selector:ir.componentName,property:ir.cssVarList.helperTextFontWeight},errorMessageFontWeight:{selector:ir.componentName,property:ir.cssVarList.errorMessageFontWeight}}}),Wt({name:"overlay",selector:"",mappings:{marginTop:{...Ub,property:"margin-top"},backgroundColor:{...Ub},backdropBackgroundColor:{...Yb,property:"background-color"},backdropPointerEvents:{...Yb,property:"pointer-events"},padding:{...Ub},boxShadow:{...Ub},outlineWidth:{...Ub},outlineColor:{...Ub},outlineStyle:{...Ub},bottomNavTopPadding:{...Qb,property:"padding-top"},bottomNavBottomPadding:{...Qb,property:"padding-bottom"},bottomNavHorizontalPadding:[{...Qb,property:"padding-left"},{...Qb,property:"padding-right"}],bottomNavAlignment:{...Qb,property:"justify-content"},bottomNavGap:{...Qb,property:"gap"},navButtonPadding:[{...Pb,property:Uo.cssVarList.horizontalPadding},{...Pb,property:Uo.cssVarList.verticalPadding}],navButtonOutlineWidth:{...Pb,property:Uo.cssVarList.outlineWidth}}}),mt,yt)(class extends Ab{format=Ib;#Eo=0;#ko=()=>{this.updateCountersDisplay(),this.#Oo(),this.#lt()};#Vo=[new bb(Tb,this.#ko.bind(this)),new bb(Db,this.#ko.bind(this))];static get observedAttributes(){return[].concat(Ab.observedAttributes||[],Eb)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-text-field inputmode="numeric">\n <span slot="suffix" class="toggle-picker">\n <descope-icon src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZml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zE2IDE5Ljc4NiAxNS43NzQgMjAgMTUuNDk1MyAyMEgxNC41MDQ3QzE0LjIxNCAyMCAxNCAxOS43NzQgMTQgMTkuNDk1M1YxOC41MDQ3QzE0IDE4LjIxNCAxNC4yMjYgMTggMTQuNTA0NyAxOFpNMTcuNTA0NyAxOEgxOC40OTUzQzE4Ljc4NiAxOCAxOSAxOC4yMjYgMTkgMTguNTA0N1YxOS40OTUzQzE5IDE5Ljc4NiAxOC43NzQgMjAgMTguNDk1MyAyMEgxNy41MDQ3QzE3LjIxNCAyMCAxNyAxOS43NzQgMTcgMTkuNDk1M1YxOC41MDQ3QzE3IDE4LjIxNCAxNy4yMjYgMTggMTcuNTA0NyAxOFpNMTcuNTA0NyAxMkgxOC40OTUzQzE4Ljc4NiAxMiAxOSAxMi4yMjYgMTkgMTIuNTA0N1YxMy40OTUzQzE5IDEzLjc4NiAxOC43NzQgMTQgMTguNDk1MyAxNEgxNy41MDQ3QzE3LjIxNCAxNCAxNyAxMy43NzQgMTcgMTMuNDk1M1YxMi41MDQ3QzE3IDEyLjIxNCAxNy4yMjYgMTIgMTcuNTA0NyAxMlpNMTcuNTA0NyA5SDE4LjQ5NTNDMTguNzg2IDkgMTkgOS4yMjU5NiAxOSA5LjUwNDY4VjEwLjQ5NTNDMTkgMTAuNzg2IDE4Ljc3NCAxMSAxOC40OTUzIDExSDE3LjUwNDdDMTcuMjE0IDExIDE3IDEwLjc3NCAxNyAxMC40OTUzVjkuNTA0NjhDMTcgOS4yMTQwNCAxNy4yMjYgOSAxNy41MDQ3IDlaIiBmaWxsPSIjODA4MDgwIi8+Cjwvc3ZnPgo="></descope-icon>\n </span>\n </descope-text-field>\n <vaadin-popover></vaadin-popover>\n </div>\n ',O('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host ::slotted {\n padding: 0;\n }\n\n .toggle-picker {\n cursor: pointer;\n display: flex;\n align-self: center;\n z-index: 1;\n height: 100%;\n align-items: center;\n }\n\n :host([readonly="true"]) .toggle-picker {\n pointer-events: none;\n }\n\n .hidden {\n display: none;\n }\n ',this),this.inputElement=this.shadowRoot.querySelector("descope-text-field"),this.popoverToggleButton=this.inputElement.querySelector(".toggle-picker")}get validationTarget(){return this.inputElement}get opened(){return"true"===this.getAttribute("opened")}get monthCounter(){return this.#Vo.find(t=>t.id===Tb.id)}get dayCounter(){return this.#Vo.find(t=>t.id===Db.id)}get sortedCounters(){return this.format.split(xb).map(t=>this.#Vo.find(e=>e.placeholder===t))}get activeCounter(){return this.sortedCounters[this.#Eo]}get countersValue(){return this.sortedCounters.map(t=>t.stringValue).join(xb)}get isCountersEmpty(){return this.#Vo.every(t=>t.isEmpty)}get isCountersOutOfRange(){return this.#Vo.some(t=>!t.isInRange(t.numberValue))}get disablePicker(){return"true"===this.getAttribute("disable-picker")}get overlay(){return this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get picker(){return this.overlay?.querySelector("descope-month-day-field-picker")}get isRTL(){const t=getComputedStyle(this.baseElement).getPropertyValue("direction");return t?"rtl"===t:"rtl"===this.getAttribute("st-host-direction")}get value(){return this.isCountersEmpty||this.isCountersOutOfRange?"":((t,e)=>this.format.replace(/MM|DD/g,i=>String("MM"===i?t:e).padStart(2,"0")))(this.monthCounter.numberValue,this.dayCounter.numberValue)}set value(t){const e=t?Sb(String(t),this.format):null;e?this.#Wo(e.month,e.day):(this.#Vo.forEach(t=>t.clear()),this.clearInputEle())}get isSelectAll(){const{value:t,selectionStart:e,selectionEnd:i}=this.inputElement;return t.length===e+i}getValidity(){return this.isRequired&&this.isCountersEmpty?{valueMissing:!0}:!this.isCountersEmpty&&this.isCountersOutOfRange?{patternMismatch:!0}:{}}reportValidity(){this.inputElement.reportValidity()}#Oo(){const t=this.monthCounter.numberValue,e=jb[t-1]??31;this.dayCounter.max!==e&&this.dayCounter.setMax(e)}#Wo(t,e){this.monthCounter.replaceValue(t),this.#Oo(),e>this.dayCounter.max?this.dayCounter.clear():this.dayCounter.replaceValue(e)}updateCountersDisplay(){this.inputElement.value=this.countersValue}#lt(){this.dispatchEvent(new Event("input",{bubbles:!0}))}resetCounters(){this.#Vo.forEach(t=>t.clear())}clearInputEle(){this.inputElement.value=""}init(){super.init?.(),this.#Ro(),this.#Uo(),this.#ko(),this.#Yo(),setTimeout(()=>this.#it(),0)}#Yo(){this.inputElement.getValidity=this.getValidity.bind(this),this.popoverToggleButton.addEventListener("click",this.#Qo.bind(this)),this.inputElement.addEventListener("focus",this.#Po.bind(this)),this.inputElement.addEventListener("blur",this.#Bo.bind(this)),this.inputElement.addEventListener("click",this.#Zo.bind(this)),this.inputElement.addEventListener("keydown",this.#Fo.bind(this)),this.inputElement.addEventListener("beforeinput",this.#Go.bind(this)),this.inputElement.addEventListener("pointerdown",this.#Ho.bind(this)),this.inputElement.addEventListener("paste",this.#Jo.bind(this)),k(this,this.inputElement,{includeAttrs:["label","label-type","placeholder","disabled","readonly","bordered","required","full-width","st-host-direction","pattern","data-errormessage-value-missing","data-errormessage-pattern-mismatch","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]})}#Uo(){this.baseElement.trigger=["click"],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation()})}#ct;#dt(t){t.firstChild||(this.overlay.positionTarget=this.shadowRoot.querySelector(".toggle-picker"),t.appendChild(this.#ut()),(t=>{const e=new CSSStyleSheet;e.insertRule(":host{display:block!important;}"),t?.shadowRoot?.adoptedStyleSheets?.push(e)})(this.baseElement),this.backdrop?.addEventListener("click",this.closePopover.bind(this)),O("\n .overlay-hidden { visibility: hidden; }\n .bottom-nav {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n }\n ",t.getRootNode())),this.#$o(),t.classList.add("overlay-hidden"),setTimeout(()=>{this.#pt(),t.classList.remove("overlay-hidden")},100)}#pt(){const t=this.shadowRoot.querySelector("vaadin-popover").shadowRoot;if(!t||!this.picker)return;this.#ct?.replaceSync("vaadin-popover-overlay::part(overlay) { margin-left: 0; }");const e=document.body.getBoundingClientRect(),i=this.getBoundingClientRect(),o=this.picker.getBoundingClientRect(),n=this.isRTL?"right":"left",r=i[n]-o[n],s=o.left,a=e.width-o.right;let l;l=r>0?Math.min(r,a):-1*Math.min(Math.abs(r),s);const d=`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${l}px;\n }\n `;this.#ct?this.#ct.replaceSync(d):this.#ct=O(d,t)}#ut(){const t=document.createElement("span");t.innerHTML='\n <descope-month-day-field-picker></descope-month-day-field-picker>\n <nav class="bottom-nav">\n <descope-button class="cancel-button" variant="link" mode="primary"></descope-button>\n <descope-button class="submit-button" variant="link" mode="primary" disabled="true"></descope-button>\n </nav>\n ';const e=t.querySelector("descope-month-day-field-picker");return this.cancelButton=t.querySelector(".cancel-button"),this.submitButton=t.querySelector(".submit-button"),this.#qo(),this.cancelButton.addEventListener("click",this.#_o.bind(this)),this.submitButton.addEventListener("click",this.#Xo.bind(this)),e.addEventListener("change",this.#Ko.bind(this)),t}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{},this.overlay._enterModalState=()=>{})}#$o(){this.picker&&(this.isCountersEmpty?this.picker.value="":(this.picker.month=this.monthCounter.isEmpty?null:this.monthCounter.numberValue,this.picker.day=this.dayCounter.isEmpty?null:this.dayCounter.numberValue),k(this,this.picker,{includeAttrs:["st-host-direction","readonly","disabled","picker-months"]}))}get#tn(){return this.getAttribute("picker-label-submit")||"Done"}get#en(){return this.getAttribute("picker-label-cancel")||"Cancel"}#qo(){this.submitButton&&(this.submitButton.textContent=this.#tn,this.cancelButton.textContent=this.#en)}#Ko(t){const{month:e,day:i}=t.detail||{};this.#in(null==e||null==i)}#in(t){if(!this.submitButton)return;const e=this.submitButton.shadowRoot?.querySelector("vaadin-button");t?(this.submitButton.setAttribute("disabled","true"),e?.setAttribute("disabled","true")):(this.submitButton.removeAttribute("disabled"),e?.removeAttribute("disabled"))}#_o(){this.closePopover()}#Xo(){if(this.isReadOnly)return void this.closePopover();const t=this.picker?.month,e=this.picker?.day;null!=t&&null!=e?(this.#Wo(t,e),this.#lt(),this.closePopover()):this.closePopover()}#Qo(){this.opened?this.closePopover():this.openPopover()}openPopover(){this.disablePicker||this.setAttribute("opened","true")}closePopover(){this.removeAttribute("opened"),this.inputElement.focus()}#on(t){t?this.popoverToggleButton.classList.remove("hidden"):this.popoverToggleButton.classList.add("hidden")}#Go(t){var e;t.preventDefault(),this.#nn(),t.data&&(e=t.data,String(e||"").trim()&&!Number.isNaN(Number(e)))?(this.#rn(t.data),this.updateCountersDisplay()):t.inputType&&this.#sn(t)}#nn(){this.isSelectAll&&this.#an()}#rn(t){this.activeCounter.add(t),this.activeCounter.isFull&&this.#ln(),this.#dn()}#cn(t){const[e,i]=this.sortedCounters.map(t=>t.length);return t<=e?0:1}#un(t){this.#Eo=this.#cn(t.target?.selectionStart||this.inputElement.selectionStart)}#an(){this.#Eo=0}#ln(){this.#Eo<this.#Vo.length-1&&(this.#Eo=Math.min(this.#Eo+1,1))}#pn(){this.#Eo>0&&(this.#Eo=0)}#dn(){this.#Eo<0||setTimeout(()=>{const t=this.sortedCounters.slice(0,this.#Eo).reduce((t,e)=>t+e.length,this.#Eo);this.inputElement.setSelectionRange(t,t+this.sortedCounters[this.#Eo].length)})}#Fo(t){t.metaKey||t.ctrlKey?"x"===t.key.toLowerCase()&&this.#hn(t):(this.#nn(),"ArrowUp"===t.key?this.activeCounter.inc():"ArrowDown"===t.key?this.activeCounter.dec():"ArrowRight"===t.key?this.#ln():"ArrowLeft"===t.key&&this.#pn(),this.#dn())}#sn(t){this.isReadOnly||(this.opened&&this.closePopover(),this.activeCounter&&("deleteContentBackward"===t.inputType&&this.#gn(),this.#dn()))}#gn(){if(this.isSelectAll)return void this.#Mn();const t=this.activeCounter;t.isEmpty?(this.#pn(),this.#dn()):t.set(""),setTimeout(()=>{this.updateCountersDisplay(),this.#dn()})}#Zo(t){this.opened||(t.preventDefault(),this.#un(t),this.#dn())}#Ho(t){setTimeout(()=>this.#Zo(t),150)}#Po(){this.isReadOnly||setTimeout(()=>this.#mn())}#Bo(){this.opened||this.inputElement.value===this.format&&this.clearInputEle()}#mn(){this.inputElement.value||(this.inputElement.value=this.format),this.#an(),this.inputElement.setSelectionRange(0,this.sortedCounters[0].length)}#Mn(){this.resetCounters(),this.#an(),this.#mn()}#yn(t){Object.keys(Cb).includes(t)&&(this.format=t,this.#Ro(),this.updateCountersDisplay())}#Ro(){const t=this.getAttribute("format")||this.format||Ib,e=Cb[t]?t:Ib;this.format=e,this.setAttribute("pattern",Cb[e].pattern)}#hn(t){t.preventDefault(),this.isSelectAll?(this.#ht(this.countersValue),this.#Mn()):(this.#ht(this.activeCounter.stringValue),this.activeCounter.set("")),this.#dn()}#ht(t){try{navigator.clipboard.writeText(t)}catch(t){console.error("Failed to copy month/day value:",t)}}#Jo(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("Text"),i=Sb(e,this.format);if(i)return this.#Wo(i.month,i.day),this.#ko(),void setTimeout(()=>this.inputElement.setSelectionRange(0,this.inputElement.value.length));const o=Number(e);o&&this.activeCounter.isInRange(o)&&(this.activeCounter.set(String(o)),setTimeout(()=>this.#dn()))}#bn(t){this.value||setTimeout(()=>{t&&(this.value=t)})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("disable-picker"===t&&this.#on("true"!==i),Lb.includes(t)?(i&&"format"===t&&this.#yn(i),"initial-value"===t&&this.#bn(i)):"picker-label-submit"===t||"picker-label-cancel"===t?this.#qo():fb.includes(t)&&(i?this.picker?.setAttribute(t,i):this.picker?.removeAttribute(t)))}}),Zb=st(Sp),Fb="#00000020",{shadow:Gb}=Zb,Hb=Bb.cssVarList,Jb={[Hb.hostWidth]:th.width,[Hb.hostDirection]:th.direction,[Hb.iconMargin]:"0.375em",[Hb.overlay.marginTop]:th.outlineWidth,[Hb.overlay.backgroundColor]:th.backgroundColor,[Hb.overlay.backdropBackgroundColor]:"transparent",[Hb.overlay.backdropPointerEvents]:"all",[Hb.overlay.boxShadow]:`${Gb.wide.xl} ${Fb}, ${Gb.narrow.xl} ${Fb}`,[Hb.overlay.outlineWidth]:"0",[Hb.overlay.outlineColor]:"transparent",[Hb.overlay.outlineStyle]:"none",[Hb.overlay.padding]:"0",[Hb.overlay.bottomNavTopPadding]:"0",[Hb.overlay.bottomNavBottomPadding]:"0.75em",[Hb.overlay.bottomNavHorizontalPadding]:"1em",[Hb.overlay.bottomNavAlignment]:"space-between",[Hb.overlay.bottomNavGap]:"0.5em",[Hb.overlay.navButtonPadding]:"0",[Hb.overlay.navButtonOutlineWidth]:"0",[Hb.rtlInputDirection]:"ltr",[Hb.rtlInputAlignment]:"right",[Hb.errorMessageIcon]:th.errorMessageIcon,[Hb.errorMessageIconSize]:th.errorMessageIconSize,[Hb.errorMessageIconPadding]:th.errorMessageIconPadding,[Hb.errorMessageIconRepeat]:th.errorMessageIconRepeat,[Hb.errorMessageIconPosition]:th.errorMessageIconPosition,[Hb.errorMessageFontSize]:th.errorMessageFontSize,[Hb.labelFontWeight]:th.labelFontWeight,[Hb.inputValueFontWeight]:th.inputValueFontWeight,[Hb.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[Hb.helperTextFontWeight]:th.helperTextFontWeight,[Hb.errorMessageFontWeight]:th.errorMessageFontWeight};var $b=Object.freeze({__proto__:null,default:Jb,vars:Hb});const qb=[31,29,31,30,31,30,31,31,30,31,30,31],_b=["January","February","March","April","May","June","July","August","September","October","November","December"],Xb=f("month-day-field-picker"),Kb=["initial-value","picker-months","st-host-direction","disabled","full-width"],tN=wt({componentName:Xb,baseSelector:"div"}),eN=(t,e)=>{const i=document.createDocumentFragment();t.forEach(({id:t,name:e})=>{const o=document.createElement("div");o.className="combo-box-item",o.setAttribute("data-id",String(t)),o.setAttribute("data-name",e),o.textContent=e,i.appendChild(o)}),e.replaceChildren(i)},{picker:iN,monthInput:oN,dayInput:nN,inputsRow:rN}={picker:{selector:()=>".picker"},monthInput:{selector:()=>".month-input"},dayInput:{selector:()=>".day-input"},inputsRow:{selector:()=>".inputs-row"}},sN=T(Mt({componentNameOverride:f("input-wrapper")}),Mt({mappings:{fontSize:{},fontFamily:{},hostWidth:{selector:()=>":host",property:"width"},hostDirection:{property:"direction"},pickerPadding:{...iN,property:"padding"},inputsRowGap:{...rN,property:"gap"},inputWidth:[{...oN,property:"width"},{...nN,property:"width"}]}}),mt,yt)(class extends tN{static get observedAttributes(){return[].concat(tN.observedAttributes||[],Kb)}#Nn=null;#In=null;constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="picker">\n <div class="inputs-row">\n <descope-combo-box\n class="month-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n <descope-combo-box\n class="day-input"\n bordered="true"\n label-type="static"\n allow-custom-value="false"\n full-width="true"\n item-label-path="data-name"\n item-value-path="data-id"\n ></descope-combo-box>\n </div>\n </div>\n ',O("\n :host {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n user-select: none;\n -webkit-user-select: none;\n }\n\n .inputs-row {\n display: flex;\n }\n\n .inputs-row > descope-combo-box {\n flex: 1;\n min-width: 0;\n }\n ",this),this.monthInput=this.shadowRoot.querySelector(".month-input"),this.dayInput=this.shadowRoot.querySelector(".day-input")}get month(){return this.#Nn}set month(t){const e=Number(t);!Number.isInteger(e)||e<1||e>12?this.#Nn=null:this.#Nn=e,null!=this.#In&&null!=this.#Nn&&this.#In>qb[this.#Nn-1]&&(this.#In=1),this.#xn(),this.#jn(),this.#Tn(),this.#v()}get day(){return this.#In}set day(t){const e=Number(t);!Number.isInteger(e)||e<1||null!=this.#Nn&&e>qb[this.#Nn-1]?this.#In=null:this.#In=e,this.#Tn(),this.#v()}set value(t){if(!t)return void this.#Dn();const e=/^(0?[1-9]|1[0-2])\D(0?[1-9]|[12][0-9]|3[01])$/.exec(String(t).trim());if(!e)return;const i=Number(e[1]),o=Number(e[2]);this.month=i,this.day=o}#Dn(){const t=new Date;this.month=t.getMonth()+1,this.day=t.getDate()}get value(){return null==this.#Nn||null==this.#In?"":`${String(this.#Nn).padStart(2,"0")}/${String(this.#In).padStart(2,"0")}`}init(){super.init?.(),this.#vn(),this.#zn();const t=this.getAttribute("initial-value");t?this.value=t:null==this.#Nn&&this.#Dn(),k(this,this.monthInput,{includeAttrs:["disabled","size","st-host-direction"]}),k(this,this.dayInput,{includeAttrs:["disabled","size","st-host-direction"]})}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("initial-value"===t?this.value=i:"picker-months"===t&&this.#Cn())}get#Sn(){return(t=>{const e=t?.split(",");return(t=>Array.isArray(t)&&12===t.length&&12===t.filter(Boolean).length)(e)?e:_b})(this.getAttribute("picker-months"))}#vn(){this.#Cn(),this.monthInput.addEventListener("input",this.#wn.bind(this))}#zn(){this.dayInput.addEventListener("input",this.#An.bind(this))}#Cn(){eN(this.#Sn.map((t,e)=>({id:e+1,name:t})),this.monthInput),this.#xn()}#jn(){const t=qb[this.#Nn-1]??0;eN((t=>Array.from({length:t},(t,e)=>({id:e+1,name:String(e+1)})))(t),this.dayInput)}#xn(){this.monthInput&&setTimeout(()=>{this.monthInput&&(this.monthInput.value=null!=this.#Nn?String(this.#Nn):"")})}#Tn(){setTimeout(()=>{this.dayInput&&(this.dayInput.value=null!==this.#In?String(this.#In):"")})}#wn(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#Nn&&(this.month=i)}#An(t){const e=t.target?.value,i=e?Number(e):null;i!==this.#In&&(this.day=i)}#v(){this.dispatchEvent(new CustomEvent("change",{detail:{month:this.#Nn,day:this.#In},bubbles:!0,composed:!0}))}getValidity(){return{}}}),aN=sN.cssVarList,lN={[aN.fontFamily]:th.fontFamily,[aN.fontSize]:th.fontSize,[aN.hostDirection]:th.direction,[aN.inputWidth]:"130px",[aN.pickerPadding]:"1em 1em",[aN.inputsRowGap]:"0.5em",_fullWidth:{[aN.hostWidth]:"100%"}};var dN=Object.freeze({__proto__:null,default:lN,vars:aN});const cN={equal:{label:"Equal"},"not-equal":{label:"Not Equal"},contains:{label:"Contains"},"not-contains":{label:"Excludes"},"starts-with":{label:"Starts with"},"ends-with":{label:"Ends with"},gt:{label:"Greater Than"},lt:{label:"Less Than"},gte:{label:"Not Less Than"},lte:{label:"Not Greater Than"},"is-any-of":{label:"Is any of"},"not-any-of":{label:"Not any of"},"is-empty":{label:"Is empty",noValue:!0},"is-not-empty":{label:"Is not empty",noValue:!0}},uN=Object.keys(cN).map(t=>`data-operator-label-${t}`),pN={text:["contains","not-contains","equal","not-equal","starts-with","ends-with","is-empty","is-not-empty"],number:["equal","not-equal","gt","lte","lt","gte","is-empty","is-not-empty"],email:["equal","not-equal","contains","not-contains","is-empty","is-not-empty"],boolean:["equal","not-equal","is-empty","is-not-empty"],singleselect:["equal","not-equal","is-empty","is-not-empty"],multiselect:["is-any-of","not-any-of","is-empty","is-not-empty"]},hN=(t,e)=>({id:t,...e[t]||{}}),gN=(t,e,i,o=cN)=>{const n=((i||pN)[t]||[]).map(t=>hN(t,o));return Array.isArray(e)&&0!==e.length?e.every(t=>"string"==typeof t)?n.filter(t=>e.includes(t.id)):e.map(t=>{const e="string"==typeof t?t:t.id,i="string"==typeof t?{}:t;return{...n.find(t=>t.id===e)||hN(e,o),...i}}):n},MN=t=>{if(!t||!t.column||!t.operator)return!1;if(t.noValue||(e=t.operator,cN[e]?.noValue))return!0;var e;const{value:i}=t;return null!=i&&(Array.isArray(i)?i.length>0:String(i).length>0)},mN=(t,e,i)=>{i.forEach(i=>((t,e,i)=>{Array.from(e.querySelectorAll(`:scope > [data-slot-copy="${i}"]`)).forEach(t=>t.remove()),Array.from(t.children).filter(t=>t.getAttribute?.("slot")===i).forEach(t=>{const o=t.cloneNode(!0);o.setAttribute("data-slot-copy",i),e.appendChild(o)})})(t,e,i))},yN=t=>{let e=t;if("string"==typeof e)try{e=JSON.parse(e)}catch{return[]}return Array.isArray(e)?e.filter(t=>t&&"object"==typeof t&&"string"==typeof t.column&&"string"==typeof t.operator):[]},bN=(t,e)=>{const i=t.getAttribute(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}};var NN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMSAxNkMxIDE3LjEgMS45IDE4IDMgMThIMTFDMTIuMSAxOCAxMyAxNy4xIDEzIDE2VjRIMVYxNlpNMyA2SDExVjE2SDNWNlpNMTAuNSAxTDkuNSAwSDQuNUwzLjUgMUgwVjNIMTRWMUgxMC41WiIgZmlsbD0iY3VycmVudGNvbG9yIi8+Cjwvc3ZnPg==";const IN=f("filter-row"),xN=["text","number","email"],jN=["boolean","singleselect"],TN=t=>!t||xN.includes(t),DN=t=>jN.includes(t),vN=t=>"multiselect"===t,zN=()=>new Promise(t=>setTimeout(t)),{host:CN}={host:{selector:()=>":host"}},SN=T(Mt({mappings:{hostWidth:{...CN,property:"width"},hostMinWidth:{selector:()=>":host",property:"min-width"},hostDirection:[{...CN,property:"direction"},{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},{selector:()=>zo.componentName,property:zo.cssVarList.hostDirection},{selector:()=>lg.componentName,property:lg.cssVarList.hostDirection}],rowGap:{selector:()=>".row",property:"gap"},inputWidth:[{selector:()=>zo.componentName,property:zo.cssVarList.hostWidth},{selector:()=>ir.componentName,property:ir.cssVarList.hostWidth},{selector:()=>lg.componentName,property:lg.cssVarList.hostWidth}],deleteDisabledIconColor:{selector:()=>`${Uo.componentName}.delete-btn[disabled="true"]`,property:Uo.cssVarList.iconColor}}}),yt,t=>class extends t{#Kt=[];#Ln=null;#fn=!1;#En;#kn;#On;#Vn;#Wn;#Rn;#Un=null;#Yn=(t=>{let e;const i=(...i)=>{clearTimeout(e),e=setTimeout(()=>t(...i),350)};return i.cancel=()=>clearTimeout(e),i})(()=>this.#v());static get observedAttributes(){return[...t.observedAttributes||[],"data","value","disable-delete","label-type","operators-catalog","data-value-label-true","data-value-label-false",...uN]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n <div class="row">\n <descope-combo-box class="col-select" placeholder="Column" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <descope-combo-box class="op-select" placeholder="Operator" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <div class="value-wrapper">\n <descope-text-field class="text-value" placeholder="Value" bordered="true"></descope-text-field>\n <descope-combo-box class="combo-value hidden" placeholder="Value" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-combo-box>\n <descope-multi-select-combo-box class="multi-value hidden" placeholder="Value" bordered="true" item-label-path="data-name" item-value-path="data-id"></descope-multi-select-combo-box>\n </div>\n <descope-button class="delete-btn" variant="link" mode="primary" size="md" square="true">\n <slot name="delete-row-icon">\n <descope-icon src="${NN}" src-dark="${NN}"></descope-icon>\n </slot>\n </descope-button>\n </div>\n `,O("\n :host {\n display: block;\n }\n .row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;\n align-items: center;\n }\n .col-select,\n .op-select,\n .value-wrapper {\n min-width: 0;\n overflow: hidden;\n }\n /* Let value inputs shrink to the cell instead of growing to fit their\n content (e.g. the multi-select's chip area). */\n .text-value,\n .combo-value,\n .multi-value {\n min-width: 0;\n }\n .hidden {\n display: none;\n }\n .value-wrapper.no-value {\n visibility: hidden;\n }\n ",this),this.#En=this.shadowRoot.querySelector(".col-select"),this.#kn=this.shadowRoot.querySelector(".op-select"),this.#On=this.shadowRoot.querySelector(".text-value"),this.#Vn=this.shadowRoot.querySelector(".combo-value"),this.#Wn=this.shadowRoot.querySelector(".multi-value"),this.#Rn=this.shadowRoot.querySelector(".delete-btn")}init(){super.init?.(),this.#Qn(),this.#Rn.addEventListener("click",()=>this.#Pn("delete")),this.#Pi()}#Pi(){const t=[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn];[...t,this.#Rn].forEach(t=>k(this,t,{includeAttrs:["size","disabled"]})),this.#Bn(),t.forEach(t=>k(this,t,{includeAttrs:["label-type"]}))}#Bn(){const t=t=>({includeAttrs:[t],mapAttrs:{[t]:"placeholder"}});k(this,this.#En,t("data-column-placeholder")),k(this,this.#kn,t("data-operator-placeholder")),[this.#On,this.#Vn,this.#Wn].forEach(e=>k(this,e,t("data-value-placeholder")))}#Zn(t,e){const i=this.#fn;this.#fn=!0,t.value=e,this.#fn=i}#Qn(){this.shadowRoot.querySelector(".row").addEventListener("input",t=>{this.#fn||(t.target===this.#En?this.#Fn():t.target===this.#kn?this.#Gn():this.#Hn()?this.#Yn():this.#v())})}#Hn(){return!this.#On.classList.contains("hidden")}#Jn(t){return this.#Kt.find(e=>e.id===t)}get trueLabel(){return this.getAttribute("data-value-label-true")||"True"}get falseLabel(){return this.getAttribute("data-value-label-false")||"False"}#$n(){return[{value:"true",label:this.trueLabel},{value:"false",label:this.falseLabel}]}#qn(t){return t?gN(t.inputType,t.operators,bN(this,"operators-catalog")).map(t=>{const e=this.getAttribute(`data-operator-label-${t.id}`);return e?{...t,label:e}:t}):[]}#Fn(){const t=this.#Jn(this.#En.value);if(!t)return;this.#Yn.cancel();const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}));const i=e.find(t=>t.id===this.#kn.value)||e[0];i&&this.#Zn(this.#kn,i.id);const o=this.#Un,n=t.inputType,r=o!==n;this.#Un=n,this.#_n(t,i,{resetValue:r}),this.#v()}#Gn(){const t=this.#Jn(this.#En.value),e=this.#qn(t).find(t=>t.id===this.#kn.value);this.#_n(t,e),this.#v()}#_n(t,e,i={}){const o=t?.inputType,n=i.resetValue??!1;this.shadowRoot.querySelector(".value-wrapper").classList.toggle("no-value",!!e?.noValue),this.#Xn(o),TN(o)?this.#Kn(o,n):DN(o)?this.#tr(t,n):vN(o)&&this.#er(t,n)}#Xn(t){this.#On.classList.toggle("hidden",!TN(t)),this.#Vn.classList.toggle("hidden",!DN(t)),this.#Wn.classList.toggle("hidden",!vN(t))}#Kn(t,e){"number"===t?this.#On.setAttribute("type","number"):"email"===t?this.#On.setAttribute("type","email"):this.#On.removeAttribute("type"),e&&this.#Zn(this.#On,"")}#tr(t,e){const i="boolean"===t.inputType?this.#$n():t.options||[];this.#Vn.data=i.map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Vn,"")}#er(t,e){this.#Wn.data=(t.options||[]).map(t=>({value:t.value,label:t.label})),e&&this.#Zn(this.#Wn,[])}#ir(t){return vN(t)?this.#Wn:DN(t)?this.#Vn:TN(t)?this.#On:null}#or(t){const e=this.#ir(t.inputType);return e?e.value??(vN(t.inputType)?[]:""):null}#nr(){const t=this.#En?.value||"",e=this.#kn?.value||"",i=this.#Jn(t),o=this.#qn(i).find(t=>t.id===e),n=!!o?.noValue,r=o&&!n&&i?this.#or(i):null;return{id:this.#Ln,column:t,operator:e,value:r,noValue:n}}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#v(){this.#Pn("change",{value:this.#nr()})}async#rr(t){if(this.#Ln=t.id??null,t.column){this.#fn=!0;try{const e=this.#Jn(t.column);if(!e)return;await zN(),this.#En.value=t.column;const i=this.#qn(e);if(this.#kn.data=i.map(t=>({value:t.id,label:t.label})),t.operator){await zN(),this.#kn.value=t.operator;const o=i.find(e=>e.id===t.operator);this.#_n(e,o)}null!==t.value&&void 0!==t.value&&(await zN(),this.#sr(e,t.value))}finally{this.#fn=!1}}}#sr(t,e){const i=t.inputType,o=this.#ir(i);o&&(vN(i)?this.#Zn(o,Array.isArray(e)?e:[]):DN(i)?this.#Zn(o,String(e)):this.#Zn(o,e??""))}#ar(t){const e="floating"===t;[this.#En,this.#kn,this.#On,this.#Vn,this.#Wn].forEach(t=>{if(t)if(e){const e=t.getAttribute("placeholder");e&&t.setAttribute("label",e)}else t.removeAttribute("label")})}get value(){return JSON.stringify(this.#nr())}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&this.#lr(i),"value"===t&&this.#dr(i),"label-type"===t&&this.#ar(i),"disable-delete"===t&&this.#cr(i),("operators-catalog"===t||t.startsWith("data-operator-label-"))&&this.#ur(),"data-value-label-true"!==t&&"data-value-label-false"!==t||this.#pr())}#lr(t){if(t)try{this.#Kt=JSON.parse(t),this.#En.data=this.#Kt.map(t=>({value:t.id,label:t.label}))}catch{}}#dr(t){if(t)try{this.#rr(JSON.parse(t))}catch{}}#cr(t){null!==t&&"false"!==t?this.#Rn.setAttribute("disabled","true"):this.#Rn.removeAttribute("disabled")}#pr(){const t=this.#Jn(this.#En?.value);t&&"boolean"===t.inputType&&this.#Vn&&(this.#Vn.data=this.#$n())}#ur(){const t=this.#Jn(this.#En?.value);if(!t||!this.#kn)return;const e=this.#qn(t);this.#kn.data=e.map(t=>({value:t.id,label:t.label}))}})(jt({componentName:IN,baseSelector:".row"})),wN=f("filter-rows"),{host:AN,container:LN,rowsList:fN,actions:EN,addRowIcon:kN}={host:{selector:()=>":host"},container:{selector:()=>".container"},rowsList:{selector:()=>".rows-list"},actions:{selector:()=>".actions"},addRowIcon:{selector:()=>'::slotted([slot="add-row-icon"])'}},ON=T(Mt({mappings:{hostWidth:{...AN,property:"width"},hostMinWidth:{...AN,property:"min-width"},hostDirection:[{...AN,property:"direction"},{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},{selector:()=>SN.componentName,property:SN.cssVarList.hostDirection}],containerWidth:{...LN,property:"width"},containerPadding:{...LN,property:"padding"},containerGap:{...LN,property:"gap"},listGap:{...fN,property:"gap"},listMaxHeight:{...fN,property:"max-height"},actionsGap:{...EN,property:"gap"},addRowIconSize:[{...kN,property:"width"},{...kN,property:"height"}]}}),yt,t=>class extends t{#ze=[];#hr=0;#gr(){return this.#hr+=1,`row-${this.#hr}`}#Mr(){return{id:this.#gr(),column:"",operator:"",value:null}}#mr(t){const e=t.value,i=null!=e&&""!==e&&!(Array.isArray(e)&&0===e.length);return!t.column&&!t.operator&&!i}#yr=[];#br;#Nr;#Ir;#xr;static get observedAttributes(){return[...t.observedAttributes||[],"data","value","clear-all-button-label","add-button-label","max-rows"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="container">\n <div class="rows-list"></div>\n <div class="actions">\n <descope-button class="add-row" variant="link" mode="primary">\n <slot name="add-row-icon" slot="prefix"></slot>\n <span class="add-button-label">Add filter</span>\n </descope-button>\n <descope-button class="clear-all" variant="link" mode="error">Clear all</descope-button>\n </div>\n </div>\n ',O('\n :host {\n display: block;\n box-sizing: border-box;\n }\n .container {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n }\n .rows-list {\n display: flex;\n flex-direction: column;\n overflow: hidden auto;\n }\n .rows-list:empty {\n display: none;\n }\n .actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n .add-row {\n margin-inline-end: auto;\n }\n .hidden {\n display: none;\n }\n ::slotted([slot="add-row-icon"]) {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n ',this),this.#br=this.shadowRoot.querySelector(".rows-list"),this.#Nr=this.shadowRoot.querySelector(".add-row"),this.#Ir=this.shadowRoot.querySelector(".add-button-label"),this.#xr=this.shadowRoot.querySelector(".clear-all")}init(){super.init?.(),S(this,this.#jr.bind(this)),this.#Nr.addEventListener("click",this.#Tr.bind(this)),this.#xr.addEventListener("click",this.#Dr.bind(this)),this.#br.addEventListener("change",this.#vr.bind(this)),this.#br.addEventListener("delete",this.#zr.bind(this)),[this.#Nr,this.#xr].forEach(t=>k(this,t,{includeAttrs:["size"]})),this.#Cr(),this.#jr(),this.#Sr(),this.#fe(),setTimeout(()=>this.#wr())}#Cr(){const t=bN(this,"data");this.#yr=Array.isArray(t)?t:[]}#jr(){this.#br.querySelectorAll(IN).forEach(t=>{t.querySelectorAll(':scope > [slot="delete-row-icon"]').forEach(t=>t.remove()),this.#Ar(t)})}#Lr(){const t=new Set(this.#ze.map(t=>t.id));this.#br.querySelectorAll(IN).forEach(e=>{t.has(e.dataset.rowId)||e.remove()})}#fr(t){return this.#br.querySelector(`${IN}[data-row-id="${t}"]`)}#fe(){this.#Lr(),this.#ze.forEach(t=>{(this.#fr(t.id)||this.#Er(t.id)).setAttribute("value",JSON.stringify(t))}),this.#wr(),this.#kr()}#Er(t){const e=document.createElement(IN);return e.dataset.rowId=t,this.#br.appendChild(e),k(this,e,{includeAttrs:["data","size","label-type","operators-catalog","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...uN]}),this.#Ar(e),e}#Ar(t){Array.from(this.children).filter(t=>"delete-row-icon"===t.getAttribute?.("slot")).forEach(e=>{const i=e.cloneNode(!0);i.setAttribute("slot","delete-row-icon"),t.appendChild(i)})}#wr(){const t=1===this.#ze.length&&this.#mr(this.#ze[0]);this.#br.querySelectorAll(IN).forEach(e=>{t?e.setAttribute("disable-delete",""):e.removeAttribute("disable-delete")}),t?this.#xr.setAttribute("disabled","true"):this.#xr.removeAttribute("disabled")}#Sr(){0===this.#ze.length&&(this.#ze=[this.#Mr()])}#kr(){const t=parseInt(this.getAttribute("max-rows"),10),e=!Number.isNaN(t)&&this.#ze.length>=t;this.#Nr.classList.toggle("hidden",e)}#Tr(){this.#ze=[...this.#ze,this.#Mr()],this.#fe(),this.#v()}#Dr(){this.#ze=[this.#Mr()],this.#fe(),this.#Pn("clear")}#vr(t){const e=t.target.closest(IN);if(!e)return;t.stopPropagation();const i=e.dataset.rowId;this.#ze=this.#ze.map(e=>e.id===i?t.detail.value:e),this.#wr(),this.#v()}#zr(t){const e=t.target.closest(IN);if(!e)return;const i=e.dataset.rowId;this.#ze=this.#ze.filter(t=>t.id!==i),this.#Sr(),this.#fe(),this.#v()}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#Or({column:t,operator:e}){const i=this.#yr.find(e=>e.id===t);return i&&gN(i.inputType,i.operators,bN(this,"operators-catalog")).find(t=>t.id===e)||null}#Vr(t){const e=this.#Or(t);return e?{...null!=e.prefix&&{prefix:e.prefix},...null!=e.suffix&&{suffix:e.suffix}}:{}}#v(){const t=t=>({column:t.column,operator:t.operator,value:t.value,...this.#Vr(t)}),e=this.#ze.filter(MN).map(t),i=this.#ze.map(e=>({...t(e),...null!=e.noValue&&{noValue:e.noValue}}));this.#Pn("change",{value:e,rows:i})}get value(){return JSON.stringify(this.#ze)}set value(t){this.setAttribute("value","string"==typeof t?t:JSON.stringify(t))}get addButtonLabel(){return this.getAttribute("add-button-label")||"Add filter"}get clearAllButtonLabel(){return this.getAttribute("clear-all-button-label")||"Clear all"}#Wr(){this.#Ir.textContent=this.addButtonLabel}#Rr(){this.#xr.textContent=this.clearAllButtonLabel}#Ur(t){if(t)try{const e=JSON.parse(t);this.#ze=(Array.isArray(e)?e:[]).map(t=>{const e=this.#Or(t);return{...t,id:t.id||this.#gr(),...e&&{noValue:!!e.noValue}}}),this.#Sr(),this.#fe()}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("data"===t&&(this.#Cr(),this.#fe()),"value"===t&&this.#Ur(i),"add-button-label"===t&&this.#Wr(),"clear-all-button-label"===t&&this.#Rr(),"max-rows"===t&&this.#kr())}})(jt({componentName:wN,baseSelector:".container"})),VN=f("filter"),WN=jt({componentName:VN,baseSelector:"vaadin-popover"}),RN=["add-row-icon","delete-row-icon"],{host:UN,overlay:YN,backdrop:QN}={host:{selector:()=>":host"},overlay:{selector:"vaadin-popover-overlay::part(overlay)"},backdrop:{selector:"vaadin-popover-overlay::part(backdrop)"}},PN=T(Mt({mappings:{hostWidth:{...UN,property:"width"},hostDirection:[{...UN,property:"direction"},{selector:()=>Uo.componentName,property:Uo.cssVarList.hostDirection},{selector:()=>ON.componentName,property:ON.cssVarList.hostDirection}],counterBorderRadius:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderRadius},counterWidth:{selector:()=>Lc.componentName,property:Lc.cssVarList.hostWidth},counterHeight:{selector:()=>Lc.componentName,property:Lc.cssVarList.hostHeight},counterFontSize:{selector:()=>Lc.componentName,property:Lc.cssVarList.fontSize},counterLineHeight:{selector:()=>Lc.componentName,property:Lc.cssVarList.lineHeight},counterBackgroundColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.backgroundColor},counterTextColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.textColor},counterBorderColor:{selector:()=>Lc.componentName,property:Lc.cssVarList.borderColor},counterOffsetX:{selector:()=>$y.componentName,property:$y.cssVarList.offsetX},counterOffsetY:{selector:()=>$y.componentName,property:$y.cssVarList.offsetY},rowsHostWidth:{selector:()=>ON.componentName,property:ON.cssVarList.hostWidth},rowsContainerWidth:{selector:()=>ON.componentName,property:ON.cssVarList.containerWidth},rowsContainerPadding:{selector:()=>ON.componentName,property:ON.cssVarList.containerPadding},rowsContainerGap:{selector:()=>ON.componentName,property:ON.cssVarList.containerGap},rowsListGap:{selector:()=>ON.componentName,property:ON.cssVarList.listGap},rowsListMaxHeight:{selector:()=>ON.componentName,property:ON.cssVarList.listMaxHeight},rowsActionsGap:{selector:()=>ON.componentName,property:ON.cssVarList.actionsGap},rowsAddRowIconSize:{selector:()=>ON.componentName,property:ON.cssVarList.addRowIconSize},rowWidth:{...UN,property:SN.cssVarList.hostWidth},rowMinWidth:{...UN,property:SN.cssVarList.hostMinWidth},rowValueWidth:{...UN,property:SN.cssVarList.inputWidth},rowGap:{...UN,property:SN.cssVarList.rowGap},rowDisabledDeleteColor:{...UN,property:SN.cssVarList.deleteDisabledIconColor}}}),Wt({name:"overlay",selector:"",mappings:{marginTop:{...YN,property:"margin-top"},width:{...YN},backgroundColor:{...YN},backdropBackgroundColor:{...QN,property:"background-color"},backdropPointerEvents:{...QN,property:"pointer-events"},padding:{...YN},boxShadow:{...YN},borderRadius:{...YN},outlineWidth:{...YN},outlineColor:{...YN},outlineStyle:{...YN}}}),mt,yt)(class extends WN{#Yr=[];#Qr=!1;#ct;#R=null;#Pr=null;#Br=null;static get observedAttributes(){return[...WN.observedAttributes||[],"label","disable-indicator","data","value"]}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div>\n <descope-attachment class="attachment" position="top-end" st-offset-x="0px">\n <descope-button class="trigger-btn">\n <slot name="button-icon"></slot>\n <span class="trigger-label"></span>\n </descope-button>\n <descope-badge slot="attachment" class="counter hidden" mode="primary" variant="contained" bordered="true" size="xs">\n <span class="counter-text">0</span>\n </descope-badge>\n </descope-attachment>\n <vaadin-popover></vaadin-popover>\n <slot name="add-row-icon" class="hidden"></slot>\n <slot name="delete-row-icon" class="hidden"></slot>\n </div>\n ',O('\n :host {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n max-width: 100%;\n }\n\n :host([full-width="true"]) {\n display: block;\n }\n\n /* Block (not the attachment\'s own inline-block) so host width set from\n outside (e.g. container items-grow) flows down to the trigger button;\n anchored\'s flex-grow on the anchor carries it the rest of the way. */\n .attachment {\n display: block;\n }\n\n\n .hidden {\n display: none;\n }\n\n :host([read-only="true"]) .trigger-btn {\n pointer-events: none;\n }\n ',this),this.triggerBtn=this.shadowRoot.querySelector(".trigger-btn"),this.triggerLabel=this.shadowRoot.querySelector(".trigger-label"),this.counter=this.shadowRoot.querySelector(".counter"),this.counterText=this.shadowRoot.querySelector(".counter-text")}get opened(){return"true"===this.getAttribute("opened")}get isIndicatorVisible(){return"true"!==this.getAttribute("disable-indicator")}get isFullWidth(){return"true"===this.getAttribute("full-width")}get overlay(){return this.#Br??=this.baseElement.shadowRoot?.querySelector("vaadin-popover-overlay")||null,this.#Br}get backdrop(){return this.overlay?.shadowRoot?.querySelector("#backdrop")}get filterRowsElement(){return this.overlay?.querySelector(wN)||null}init(){super.init?.(),this.#Uo(),this.#Zr(),this.#Fr(),k(this,this.triggerBtn,{includeAttrs:["button-mode","button-variant","size","full-width"],mapAttrs:{"button-mode":"mode","button-variant":"variant"}}),this.#Gr(),setTimeout(()=>{this.#it()})}#Gr(){RN.forEach(t=>{const e=this.shadowRoot.querySelector(`slot[name="${t}"]`);e?.addEventListener("slotchange",()=>{this.#Pr?.isConnected&&mN(this,this.#Pr,[t])})})}#Uo(){this.baseElement.trigger=[],this.baseElement.withBackdrop=!0,this.baseElement.renderer=this.#dt.bind(this),this.baseElement.addEventListener("click",t=>{t.stopPropagation()}),this.triggerBtn.addEventListener("click",()=>this.onPopoverToggle())}#dt(t){if(!t.firstChild){this.overlay.positionTarget=this.triggerBtn;const e=document.createElement(wN);k(this,e,{includeAttrs:["operators","size","max-rows","clear-all-button-label","add-button-label","label-type","data-value-label-true","data-value-label-false","data-column-placeholder","data-operator-placeholder","data-value-placeholder",...uN],mapAttrs:{operators:"operators-catalog"}}),this.#Hr(e),t.appendChild(e),this.#Pr=e,e.setAttribute("value",JSON.stringify(this.#Yr)),e.addEventListener("change",this.#Jr.bind(this)),e.addEventListener("clear",this.#$r.bind(this));const i=new CSSStyleSheet;i.insertRule(":host{display:block!important;}"),this.baseElement?.shadowRoot?.adoptedStyleSheets?.push(i),this.backdrop?.addEventListener("click",()=>this.closePopover())}this.#Pr&&mN(this,this.#Pr,RN),t.style.setProperty("visibility","hidden"),setTimeout(()=>{this.#pt(),t.style.setProperty("visibility","visible")},50)}#pt(){if(!this.overlay)return;const t=this.shadowRoot.querySelector("vaadin-popover")?.shadowRoot;if(!t)return;this.#ct&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.#ct));const e=document.body.getBoundingClientRect(),i=this.triggerBtn.getBoundingClientRect(),o=this.overlay.getBoundingClientRect(),n=i.left-o.left,r=o.left,s=e.width-o.right;let a;a=n>0?Math.min(n,s):-1*Math.min(Math.abs(n),r);const l=Math.round(this.getBoundingClientRect().width);this.#ct=O(`\n vaadin-popover-overlay::part(overlay) {\n margin-left: ${a}px;\n ${this.isFullWidth?`width: ${l}px; max-width: ${l}px;`:""}\n }\n `,t)}#Pn(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}#qr(t){this.#Qr=!0,this.setAttribute("value",JSON.stringify(yN(t))),this.#Qr=!1}#Jr(t){const e=yN(t.detail.value||[]);JSON.stringify(e)!==JSON.stringify(this.#Yr)&&(this.#qr(e),this.#Pn("filter-apply",{value:this.#Yr,action:"apply"}))}#$r(){this.#qr([]),this.#Pn("filter-clear",{value:this.#Yr,action:"clear-all"})}#Zr(){if(!this.counter)return;const t=this.#Yr.length;this.counterText.textContent=String(t),this.counter.classList.toggle("hidden",t<1||!this.isIndicatorVisible)}#Fr(){if(!this.triggerLabel)return;const t=this.getAttribute("label")||"";this.triggerLabel.textContent=t,this.triggerLabel.classList.toggle("hidden",!t)}#Hr(t){t&&this.#R&&t.setAttribute("data",JSON.stringify(this.#R))}get value(){return JSON.stringify(this.#Yr)}set value(t){this.#qr(t)}set data(t){this.#R=Array.isArray(t)?t:null,this.filterRowsElement&&this.#R&&this.filterRowsElement.setAttribute("data",JSON.stringify(this.#R))}get data(){return this.#R}#it(){this.overlay&&(this.overlay._attachOverlay=()=>this.overlay.bringToFront(),this.overlay._detachOverlay=()=>{})}get readOnly(){return"true"===this.getAttribute("read-only")}onPopoverToggle(){this.readOnly||(this.opened?this.closePopover():this.openPopover())}openPopover(){this.setAttribute("opened","true"),this.baseElement.opened=!0}closePopover(){this.removeAttribute("opened"),this.baseElement.opened=!1}#_r(t){t&&(this.#Yr=yN(t),this.#Zr(),this.#Qr||this.filterRowsElement?.setAttribute("value",JSON.stringify(this.#Yr)))}#Xr(t){if(t)try{this.#R=JSON.parse(t),this.filterRowsElement?.setAttribute("data",JSON.stringify(this.#R))}catch{}}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&("value"===t&&this.#_r(i),"data"===t&&this.#Xr(i),"label"===t&&this.#Fr(),"disable-indicator"===t&&this.#Zr())}}),BN=st(Sp),ZN="#00000020",{shadow:FN}=BN,GN=PN.cssVarList,HN={[GN.counterBorderRadius]:"50%",[GN.counterWidth]:"1.5em",[GN.counterHeight]:"1.5em",[GN.counterFontSize]:"0.5em",[GN.counterLineHeight]:"2.25em",[GN.counterBackgroundColor]:BN.colors.primary.main,[GN.counterTextColor]:BN.colors.primary.contrast,[GN.counterOffsetX]:"-0.725em",[GN.counterOffsetY]:"0",_fullWidth:{[GN.hostWidth]:"100%"},[GN.overlay.backgroundColor]:BN.colors.surface.main,[GN.overlay.backdropBackgroundColor]:"transparent",[GN.overlay.backdropPointerEvents]:"all",[GN.overlay.boxShadow]:`${FN.wide.xl} ${ZN}, ${FN.narrow.xl} ${ZN}`,[GN.overlay.borderRadius]:Sp.radius.xs,[GN.overlay.outlineWidth]:"0",[GN.overlay.outlineColor]:"transparent",[GN.overlay.outlineStyle]:"none",[GN.overlay.padding]:"0",[GN.rowsHostWidth]:"100%",[GN.rowsContainerWidth]:"100%",[GN.rowsContainerPadding]:BN.spacing.lg,[GN.rowsContainerGap]:BN.spacing.md,[GN.rowsListGap]:BN.spacing.sm,[GN.rowsListMaxHeight]:"400px",[GN.rowsActionsGap]:BN.spacing.md,[GN.rowsAddRowIconSize]:"1.25em",[GN.rowWidth]:"100%",[GN.rowMinWidth]:"30em",[GN.rowValueWidth]:"100%",[GN.rowGap]:BN.spacing.md,[GN.rowDisabledDeleteColor]:BN.colors.surface.light};var JN=Object.freeze({__proto__:null,default:HN,vars:GN});const $N=np.cssVarList,qN={[$N.hostWidth]:th.width,[$N.hostMinWidth]:th.minWidth,[$N.hostDirection]:th.direction,[$N.fontSize]:th.fontSize,[$N.fontFamily]:th.fontFamily,[$N.labelFontSize]:th.labelFontSize,[$N.labelFontWeight]:th.labelFontWeight,[$N.inputValueFontWeight]:th.inputValueFontWeight,[$N.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[$N.helperTextFontWeight]:th.helperTextFontWeight,[$N.errorMessageFontWeight]:th.errorMessageFontWeight,[$N.labelTextColor]:th.labelTextColor,[$N.errorMessageTextColor]:th.errorMessageTextColor,[$N.inputValueTextColor]:th.valueTextColor,[$N.labelRequiredIndicator]:th.requiredIndicator,[$N.inputPlaceholderColor]:th.placeholderTextColor,[$N.inputBorderWidth]:th.borderWidth,[$N.inputBorderStyle]:th.borderStyle,[$N.inputBorderColor]:th.borderColor,[$N.inputBorderRadius]:th.borderRadius,[$N.inputOutlineWidth]:th.outlineWidth,[$N.inputOutlineStyle]:th.outlineStyle,[$N.inputOutlineColor]:th.outlineColor,[$N.inputOutlineOffset]:th.outlineOffset,[$N.inputBackgroundColor]:th.backgroundColor,[$N.inputHorizontalPadding]:th.horizontalPadding,[$N.inputHeight]:th.inputHeight,[$N.labelPosition]:th.labelPosition,[$N.labelTopPosition]:th.labelTopPosition,[$N.labelHorizontalPosition]:th.labelHorizontalPosition,[$N.inputTransformY]:th.inputTransformY,[$N.inputTransition]:th.inputTransition,[$N.marginInlineStart]:th.marginInlineStart,[$N.placeholderOpacity]:th.placeholderOpacity,[$N.inputVerticalAlignment]:th.inputVerticalAlignment,[$N.valueInputHeight]:th.valueInputHeight,[$N.valueInputMarginBottom]:th.valueInputMarginBottom,[$N.errorMessageIcon]:th.errorMessageIcon,[$N.errorMessageIconSize]:th.errorMessageIconSize,[$N.errorMessageIconPadding]:th.errorMessageIconPadding,[$N.errorMessageIconRepeat]:th.errorMessageIconRepeat,[$N.errorMessageIconPosition]:th.errorMessageIconPosition,[$N.errorMessageFontSize]:th.errorMessageFontSize};var _N=Object.freeze({__proto__:null,default:qN,vars:$N});const XN=f("new-email-internal"),KN=f("new-email"),{host:tI,label:eI,internalInputsWrapper:iI,errorMessage:oI,helperText:nI,emailInput:rI}={host:{selector:()=>":host"},label:{selector:"::part(label)"},internalInputsWrapper:{selector:"descope-new-email-internal .wrapper"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"},emailInput:{selector:"descope-email-field"}},sI=T(Mt({mappings:{fontSize:[tI,{},{selector:np.componentName,property:np.cssVarList.fontSize}],fontFamily:[eI,oI,nI],labelFontSize:{...eI,property:"font-size"},labelFontWeight:{...eI,property:"font-weight"},inputValueFontWeight:{...rI,property:np.cssVarList.inputValueFontWeight},inputPlaceholderFontWeight:{...rI,property:np.cssVarList.inputPlaceholderFontWeight},helperTextFontWeight:{...nI,property:"font-weight"},errorMessageFontWeight:{...oI,property:"font-weight"},labelTextColor:{...eI,property:"color"},errorMessageTextColor:{...oI,property:"color"},errorMessageIcon:{...oI,property:"background-image"},errorMessageIconSize:{...oI,property:"background-size"},errorMessageIconPadding:{...oI,property:"padding-inline-start"},errorMessageIconRepeat:{...oI,property:"background-repeat"},errorMessageIconPosition:{...oI,property:"background-position"},errorMessageFontSize:{...oI,property:"font-size"},hostWidth:{...tI,property:"width"},hostMinWidth:{...tI,property:"min-width"},hostDirection:[{...tI,property:"direction"},{...rI,property:np.cssVarList.hostDirection}],inputsRequiredIndicator:{...tI,property:"content"},spaceBetweenInputs:{...iI,property:"gap"},valueInputHeight:{...rI,property:np.cssVarList.valueInputHeight},valueInputMarginBottom:{...rI,property:np.cssVarList.valueInputMarginBottom}}}),mt,Qt,Vt({proxyProps:["value","selectionStart"]}),t=>class extends t{init(){super.init?.();const t=document.createElement("template"),e="true"===this.getAttribute("external-input"),i="false"!==this.getAttribute("accept-unicode");t.innerHTML=`\n\t\t\t<${XN}\n\t\t\t\tname="new-email"\n\t\t\t\ttabindex="-1"\n\t\t\t\tslot="input"\n external-input="${e}"\n accept-unicode="${i}"\n\t\t\t>\n </${XN}>\n\t\t\t`,this.baseElement.appendChild(t.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(XN),e&&this.initExternalInput(),k(this,this.inputElement,{includeAttrs:["email-label","email-placeholder","confirm-label","confirm-placeholder","full-width","size","bordered","invalid","readonly","disabled","draggable","label-type"]})}createSlottedExternalInput(t,e,i){const o=t.querySelector("input"),n=document.createElement("slot"),r=o.getAttribute("slot");return n.setAttribute("name",e),n.setAttribute("slot",r),t.appendChild(n),o.setAttribute("slot",e),o.setAttribute("name",i),o.setAttribute("data-hidden-input","true"),this.appendChild(o),o}initExternalInput(){this.emailInput=this.inputElement.querySelector('[data-id="email"]'),this.confirmInput=this.inputElement.querySelector('[data-id="confirm"]'),this.createSlottedExternalInput(this.emailInput,"external-email-input",this.getAttribute("name")),this.createSlottedExternalInput(this.confirmInput,"external-confirm-input",`${this.getAttribute("name")}-confirm`).setAttribute("data-exclude-field","true")}})(ft({slots:[],wrappedEleName:"vaadin-text-field",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n :host ::part(error-message) {\n direction: ltr;\n }\n\t\t${_(np.cssVarList)}\n\t\tvaadin-text-field {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\tvaadin-text-field::part(input-field) {\n\t\t\tmin-height: 0;\n\t\t\tbackground: transparent;\n\t\t\tbox-shadow: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\tvaadin-text-field::part(input-field)::after {\n\t\t\tbackground: transparent;\n\t\t\topacity: 0;\n\t\t}\n\t\tdescope-new-email-internal {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\twidth: 100%;\n\t\t\tpadding: 0;\n\t\t}\n\t\tdescope-new-email-internal > .wrapper {\n -webkit-mask-image: none;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t\tdescope-email-field {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\t\t`,excludeAttrsSync:["tabindex","style"],componentName:KN})),aI=sI.cssVarList,lI={[aI.hostWidth]:th.width,[aI.hostMinWidth]:th.minWidth,[aI.hostDirection]:th.direction,[aI.fontSize]:th.fontSize,[aI.fontFamily]:th.fontFamily,[aI.labelFontSize]:th.labelFontSize,[aI.labelFontWeight]:th.labelFontWeight,[aI.inputValueFontWeight]:th.inputValueFontWeight,[aI.inputPlaceholderFontWeight]:th.inputPlaceholderFontWeight,[aI.helperTextFontWeight]:th.helperTextFontWeight,[aI.errorMessageFontWeight]:th.errorMessageFontWeight,[aI.labelTextColor]:th.labelTextColor,[aI.spaceBetweenInputs]:"1em",[aI.errorMessageTextColor]:th.errorMessageTextColor,[aI.valueInputHeight]:th.valueInputHeight,[aI.valueInputMarginBottom]:th.valueInputMarginBottom,[aI.errorMessageIcon]:th.errorMessageIcon,[aI.errorMessageIconSize]:th.errorMessageIconSize,[aI.errorMessageIconPadding]:th.errorMessageIconPadding,[aI.errorMessageIconRepeat]:th.errorMessageIconRepeat,[aI.errorMessageIconPosition]:th.errorMessageIconPosition,[aI.errorMessageFontSize]:th.errorMessageFontSize,_required:{[aI.inputsRequiredIndicator]:th.requiredIndicator}};var dI=Object.freeze({__proto__:null,default:lI,vars:aI});const cI=ne("input-wrapper"),uI=fe(Tp),[pI,hI,gI]=Qe({labelTextColor:uI.colors.surface.dark,labelFontSize:"14px",labelFontWeight:"500",inputValueFontWeight:"400",inputPlaceholderFontWeight:"400",helperTextFontWeight:"400",errorMessageFontWeight:"400",valueTextColor:uI.colors.surface.contrast,placeholderTextColor:uI.colors.surface.dark,requiredIndicator:"'*'",helperTextColor:uI.colors.surface.dark,errorMessageTextColor:uI.colors.error.main,successMessageTextColor:uI.colors.success.main,borderWidth:uI.border.xs,borderRadius:uI.radius.xs,borderColor:"transparent",outlineWidth:uI.border.sm,outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"0px",minWidth:"10em",toggleButtonSize:"1.5em",inputIconSize:"1em",inputHeight:"3em",horizontalPadding:"0.5em",verticalPadding:"0.5em",textAlign:"start",backgroundColor:uI.colors.surface.main,fontFamily:uI.fonts.font1.family,direction:uI.direction,overlayOpacity:"0.3",errorMessageIcon:"",errorMessageIconSize:"0",errorMessageIconPadding:"0",errorMessageIconPosition:"0 0.4em",errorMessageFontSize:"0.8125rem",errorMessageIconRepeat:"no-repeat",size:{xs:{fontSize:"12px",chipFontSize:"10px"},sm:{fontSize:"14px",chipFontSize:"12px"},md:{fontSize:"16px",chipFontSize:"14px"},lg:{fontSize:"18px",chipFontSize:"16px"}},labelType:{static:{valueInputHeight:"3em",valueInputMarginBottom:"auto"},floating:{labelPosition:"absolute",labelTopPosition:"0",labelHorizontalPosition:"0.9em",labelFontSize:"1em",placeholderOpacity:0,inputHeight:"3.5em",inputVerticalAlignment:"flex-end",inputTransformY:"translateY(1.55em)",inputTransition:"all 75ms ease-in-out",marginInlineStart:"0",valueInputHeight:"1.5702em",valueInputMarginBottom:"0.5em",_focused:{labelFontSize:"0.75em",inputTransformY:"translateY(1.05em)",labelFontWeight:"400",placeholderOpacity:1},_readOnly:{placeholderOpacity:0},_hasValue:{inputTransformY:"translateY(1.05em)",labelFontSize:"0.75em",labelFontWeight:"400"}}},_fullWidth:{width:"100%"},_bordered:{outlineWidth:uI.border.xs,borderColor:uI.colors.surface.light,borderStyle:"solid",_invalid:{borderColor:uI.colors.error.main}},_focused:{outlineColor:uI.colors.surface.light,_invalid:{outlineColor:uI.colors.error.main}},_disabled:{labelTextColor:uI.colors.surface.light,borderColor:uI.colors.surface.light,valueTextColor:uI.colors.surface.light,placeholderTextColor:uI.colors.surface.light,helperTextColor:uI.colors.surface.light,backgroundColor:uI.colors.surface.main},_obfuscated:{inputTextSecurity:"disc"}},cI);var MI=Object.freeze({__proto__:null,default:pI,refs:hI,vars:gI});const mI=fe(Tp),yI=hs.cssVarList,bI={[yI.hostWidth]:hI.width,[yI.hostMinWidth]:hI.minWidth,[yI.hostDirection]:hI.direction,[yI.fontSize]:hI.fontSize,[yI.fontFamily]:hI.fontFamily,[yI.labelFontSize]:hI.labelFontSize,[yI.labelFontWeight]:hI.labelFontWeight,[yI.inputValueFontWeight]:hI.inputValueFontWeight,[yI.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[yI.helperTextFontWeight]:hI.helperTextFontWeight,[yI.errorMessageFontWeight]:hI.errorMessageFontWeight,[yI.labelTextColor]:hI.labelTextColor,[yI.errorMessageTextColor]:hI.errorMessageTextColor,[yI.inputHorizontalPadding]:hI.horizontalPadding,[yI.inputHeight]:hI.inputHeight,[yI.inputBackgroundColor]:hI.backgroundColor,[yI.labelRequiredIndicator]:hI.requiredIndicator,[yI.inputValueTextColor]:hI.valueTextColor,[yI.inputPlaceholderTextColor]:hI.placeholderTextColor,[yI.inputBorderWidth]:hI.borderWidth,[yI.inputBorderStyle]:hI.borderStyle,[yI.inputBorderColor]:hI.borderColor,[yI.inputBorderRadius]:hI.borderRadius,[yI.inputOutlineWidth]:hI.outlineWidth,[yI.inputOutlineStyle]:hI.outlineStyle,[yI.inputOutlineColor]:hI.outlineColor,[yI.inputOutlineOffset]:hI.outlineOffset,[yI.revealButtonOffset]:mI.spacing.md,[yI.revealButtonSize]:hI.toggleButtonSize,[yI.revealButtonColor]:hI.placeholderTextColor,[yI.labelPosition]:hI.labelPosition,[yI.labelTopPosition]:hI.labelTopPosition,[yI.labelHorizontalPosition]:hI.labelHorizontalPosition,[yI.inputTransformY]:hI.inputTransformY,[yI.inputTransition]:hI.inputTransition,[yI.marginInlineStart]:hI.marginInlineStart,[yI.placeholderOpacity]:hI.placeholderOpacity,[yI.inputVerticalAlignment]:hI.inputVerticalAlignment,[yI.valueInputHeight]:hI.valueInputHeight,[yI.errorMessageIcon]:hI.errorMessageIcon,[yI.errorMessageIconSize]:hI.errorMessageIconSize,[yI.errorMessageIconPadding]:hI.errorMessageIconPadding,[yI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[yI.errorMessageIconPosition]:hI.errorMessageIconPosition,[yI.errorMessageFontSize]:hI.errorMessageFontSize};var NI=Object.freeze({__proto__:null,default:bI,vars:yI});const II=Er.cssVarList,xI={[II.hostWidth]:hI.width,[II.hostMinWidth]:hI.minWidth,[II.hostDirection]:hI.direction,[II.fontSize]:hI.fontSize,[II.fontFamily]:hI.fontFamily,[II.labelFontSize]:hI.labelFontSize,[II.labelFontWeight]:hI.labelFontWeight,[II.inputValueFontWeight]:hI.inputValueFontWeight,[II.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[II.helperTextFontWeight]:hI.helperTextFontWeight,[II.errorMessageFontWeight]:hI.errorMessageFontWeight,[II.labelTextColor]:hI.labelTextColor,[II.errorMessageTextColor]:hI.errorMessageTextColor,[II.inputValueTextColor]:hI.valueTextColor,[II.inputPlaceholderColor]:hI.placeholderTextColor,[II.inputBorderWidth]:hI.borderWidth,[II.inputBorderStyle]:hI.borderStyle,[II.inputBorderColor]:hI.borderColor,[II.inputBorderRadius]:hI.borderRadius,[II.inputOutlineWidth]:hI.outlineWidth,[II.inputOutlineStyle]:hI.outlineStyle,[II.inputOutlineColor]:hI.outlineColor,[II.inputOutlineOffset]:hI.outlineOffset,[II.inputBackgroundColor]:hI.backgroundColor,[II.labelRequiredIndicator]:hI.requiredIndicator,[II.inputHorizontalPadding]:hI.horizontalPadding,[II.inputHeight]:hI.inputHeight,[II.labelPosition]:hI.labelPosition,[II.labelTopPosition]:hI.labelTopPosition,[II.labelHorizontalPosition]:hI.labelHorizontalPosition,[II.inputTransformY]:hI.inputTransformY,[II.inputTransition]:hI.inputTransition,[II.marginInlineStart]:hI.marginInlineStart,[II.placeholderOpacity]:hI.placeholderOpacity,[II.inputVerticalAlignment]:hI.inputVerticalAlignment,[II.valueInputHeight]:hI.valueInputHeight,[II.valueInputMarginBottom]:hI.valueInputMarginBottom,[II.errorMessageIcon]:hI.errorMessageIcon,[II.errorMessageIconSize]:hI.errorMessageIconSize,[II.errorMessageIconPadding]:hI.errorMessageIconPadding,[II.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[II.errorMessageIconPosition]:hI.errorMessageIconPosition,[II.errorMessageFontSize]:hI.errorMessageFontSize};var jI=Object.freeze({__proto__:null,default:xI,vars:II});const TI=Ts.cssVarList,DI={[TI.hostWidth]:hI.width,[TI.hostMinWidth]:hI.minWidth,[TI.hostDirection]:hI.direction,[TI.fontSize]:hI.fontSize,[TI.fontFamily]:hI.fontFamily,[TI.labelFontSize]:hI.labelFontSize,[TI.labelFontWeight]:hI.labelFontWeight,[TI.inputValueFontWeight]:hI.inputValueFontWeight,[TI.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[TI.helperTextFontWeight]:hI.helperTextFontWeight,[TI.errorMessageFontWeight]:hI.errorMessageFontWeight,[TI.labelTextColor]:hI.labelTextColor,[TI.labelRequiredIndicator]:hI.requiredIndicator,[TI.errorMessageTextColor]:hI.errorMessageTextColor,[TI.inputBackgroundColor]:hI.backgroundColor,[TI.inputValueTextColor]:hI.valueTextColor,[TI.inputPlaceholderTextColor]:hI.placeholderTextColor,[TI.inputBorderRadius]:hI.borderRadius,[TI.inputBorderWidth]:hI.borderWidth,[TI.inputBorderStyle]:hI.borderStyle,[TI.inputBorderColor]:hI.borderColor,[TI.inputOutlineWidth]:hI.outlineWidth,[TI.inputOutlineStyle]:hI.outlineStyle,[TI.inputOutlineColor]:hI.outlineColor,[TI.inputOutlineOffset]:hI.outlineOffset,[TI.inputResizeType]:"vertical",[TI.inputMinHeight]:"5em",[TI.errorMessageIcon]:hI.errorMessageIcon,[TI.errorMessageIconSize]:hI.errorMessageIconSize,[TI.errorMessageIconPadding]:hI.errorMessageIconPadding,[TI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[TI.errorMessageIconPosition]:hI.errorMessageIconPosition,[TI.errorMessageFontSize]:hI.errorMessageFontSize,textAlign:{right:{[TI.inputTextAlign]:"right"},left:{[TI.inputTextAlign]:"left"},center:{[TI.inputTextAlign]:"center"}},_readonly:{[TI.inputResizeType]:"none"}};var vI=Object.freeze({__proto__:null,default:DI,vars:TI});const zI=Ai.cssVarList,CI="1.35em",SI={[zI.hostWidth]:hI.width,[zI.hostDirection]:hI.direction,[zI.fontSize]:hI.fontSize,[zI.fontFamily]:hI.fontFamily,[zI.labelTextColor]:hI.labelTextColor,[zI.labelRequiredIndicator]:hI.requiredIndicator,[zI.labelFontWeight]:"400",[zI.labelLineHeight]:CI,[zI.labelSpacing]:"1em",[zI.errorMessageTextColor]:hI.errorMessageTextColor,[zI.inputOutlineWidth]:hI.outlineWidth,[zI.inputOutlineOffset]:hI.outlineOffset,[zI.inputOutlineColor]:hI.outlineColor,[zI.inputOutlineStyle]:hI.outlineStyle,[zI.inputBorderRadius]:hI.borderRadius,[zI.inputBorderColor]:hI.borderColor,[zI.inputBorderWidth]:hI.borderWidth,[zI.inputBorderStyle]:hI.borderStyle,[zI.inputBackgroundColor]:hI.backgroundColor,[zI.inputSize]:CI,[zI.inputValueTextColor]:hI.valueTextColor,[zI.errorMessageIcon]:hI.errorMessageIcon,[zI.errorMessageIconSize]:hI.errorMessageIconSize,[zI.errorMessageIconPadding]:hI.errorMessageIconPadding,[zI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[zI.errorMessageIconPosition]:hI.errorMessageIconPosition,[zI.errorMessageFontSize]:hI.errorMessageFontSize};var wI=Object.freeze({__proto__:null,default:SI,vars:zI});const AI="2px",LI=fe(Tp),fI=to.cssVarList,EI={[fI.hostWidth]:hI.width,[fI.hostDirection]:hI.direction,[fI.fontSize]:hI.fontSize,[fI.fontFamily]:hI.fontFamily,[fI.inputOutlineWidth]:hI.outlineWidth,[fI.inputOutlineOffset]:hI.outlineOffset,[fI.inputOutlineColor]:hI.outlineColor,[fI.inputOutlineStyle]:hI.outlineStyle,[fI.trackBorderStyle]:hI.borderStyle,[fI.trackBorderWidth]:hI.borderWidth,[fI.trackBorderColor]:hI.borderColor,[fI.trackBackgroundColor]:hI.backgroundColor,[fI.trackBorderRadius]:LI.radius.md,[fI.trackWidth]:"2.5em",[fI.trackHeight]:"1.25em",[fI.knobSize]:`calc(1em - ${AI})`,[fI.knobRadius]:"50%",[fI.knobTopOffset]:"1px",[fI.knobLeftOffset]:AI,[fI.knobColor]:hI.labelTextColor,[fI.knobTransitionDuration]:"0.3s",[fI.labelTextColor]:hI.labelTextColor,[fI.labelFontWeight]:"400",[fI.labelLineHeight]:"1.35em",[fI.labelSpacing]:"1em",[fI.labelRequiredIndicator]:hI.requiredIndicator,[fI.errorMessageTextColor]:hI.errorMessageTextColor,[fI.errorMessageIcon]:hI.errorMessageIcon,[fI.errorMessageIconSize]:hI.errorMessageIconSize,[fI.errorMessageIconPadding]:hI.errorMessageIconPadding,[fI.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[fI.errorMessageIconPosition]:hI.errorMessageIconPosition,[fI.errorMessageFontSize]:hI.errorMessageFontSize,_checked:{[fI.trackBorderColor]:hI.borderColor,[fI.knobLeftOffset]:`calc(100% - var(${fI.knobSize}) - ${AI})`,[fI.knobColor]:hI.valueTextColor,[fI.knobTextColor]:hI.valueTextColor},_disabled:{[fI.knobColor]:LI.colors.surface.light,[fI.trackBorderColor]:LI.colors.surface.light,[fI.trackBackgroundColor]:LI.colors.surface.main,[fI.labelTextColor]:hI.labelTextColor,_checked:{[fI.knobColor]:LI.colors.surface.light,[fI.trackBackgroundColor]:LI.colors.surface.main}},_invalid:{[fI.trackBorderColor]:LI.colors.error.main,[fI.knobColor]:LI.colors.error.main}};var kI=Object.freeze({__proto__:null,default:EI,vars:fI});const OI=fe(Tp),VI=po.cssVarList,[WI,RI,UI]=Qe({verticalAlignment:{start:{verticalAlignment:"start"},center:{verticalAlignment:"safe center"},end:{verticalAlignment:"end"}},horizontalAlignment:{start:{horizontalAlignment:"start"},center:{horizontalAlignment:"safe center"},end:{horizontalAlignment:"end"}},shadowColor:"#00000020"},co),{shadowColor:YI}=RI,QI={...WI,[VI.itemsGrow]:"0",[VI.hostWidth]:"100%",[VI.hostHeight]:"auto",[VI.boxShadow]:"none",[VI.backgroundColor]:OI.colors.surface.main,[VI.backgroundImage]:"",[VI.backgroundPositionX]:"center",[VI.backgroundPositionY]:"center",[VI.backgroundSize]:"cover",[VI.backgroundRepeat]:"no-repeat",[VI.color]:OI.colors.surface.contrast,[VI.borderRadius]:"0px",[VI.hostDirection]:OI.direction,[VI.borderStyle]:"none",[VI.borderWidth]:"unset",[VI.borderColor]:"unset",verticalPadding:{sm:{[VI.verticalPadding]:"5px"},md:{[VI.verticalPadding]:"10px"},lg:{[VI.verticalPadding]:"20px"}},horizontalPadding:{sm:{[VI.horizontalPadding]:"5px"},md:{[VI.horizontalPadding]:"10px"},lg:{[VI.horizontalPadding]:"20px"}},direction:{row:{[VI.flexDirection]:"row",[VI.alignItems]:RI.verticalAlignment,[VI.justifyContent]:RI.horizontalAlignment,[VI.flexWrap]:"wrap",horizontalAlignment:{spaceBetween:{[UI.horizontalAlignment]:"space-between"}}},column:{[VI.flexDirection]:"column",[VI.alignItems]:RI.horizontalAlignment,[VI.justifyContent]:RI.verticalAlignment,verticalAlignment:{spaceBetween:{[UI.verticalAlignment]:"space-between"}}}},spaceBetween:{sm:{[VI.gap]:"10px"},md:{[VI.gap]:"20px"},lg:{[VI.gap]:"30px"}},shadow:{sm:{[VI.boxShadow]:`${OI.shadow.wide.sm} ${YI}, ${OI.shadow.narrow.sm} ${YI}`},md:{[VI.boxShadow]:`${OI.shadow.wide.md} ${YI}, ${OI.shadow.narrow.md} ${YI}`},lg:{[VI.boxShadow]:`${OI.shadow.wide.lg} ${YI}, ${OI.shadow.narrow.lg} ${YI}`},xl:{[VI.boxShadow]:`${OI.shadow.wide.xl} ${YI}, ${OI.shadow.narrow.xl} ${YI}`},"2xl":{[UI.shadowColor]:"#00000050",[VI.boxShadow]:`${OI.shadow.wide["2xl"]} ${YI}`}},"&borderRadius":{sm:{[VI.borderRadius]:OI.radius.sm},md:{[VI.borderRadius]:OI.radius.md},lg:{[VI.borderRadius]:OI.radius.lg},xl:{[VI.borderRadius]:OI.radius.xl},"2xl":{[VI.borderRadius]:OI.radius["2xl"]},"3xl":{[VI.borderRadius]:OI.radius["3xl"]}}},PI={...VI,...UI};var BI=Object.freeze({__proto__:null,default:QI,vars:PI});const ZI=Cr.cssVarList,FI={[ZI.fallbackUrl]:"url(https://imgs.descope.com/components/no-logo-placeholder.svg)"};var GI=Object.freeze({__proto__:null,default:FI,vars:ZI});const HI=wr.cssVarList,JI={[HI.fallbackUrl]:"url(https://imgs.descope.com/components/totp-placeholder.svg)"};var $I=Object.freeze({__proto__:null,default:JI,vars:HI});const qI=Lr.cssVarList,_I={[qI.fallbackUrl]:"url(https://imgs.descope.com/components/notp-placeholder.svg)"};var XI=Object.freeze({__proto__:null,default:_I,vars:qI});const KI=fe(Tp),tx=Dr.cssVarList,[ex,ix,ox]=Qe({thickness:"2px",spacing:"10px"},yr),nx={...ex,[tx.hostDirection]:KI.direction,[tx.alignItems]:"center",[tx.flexDirection]:"row",[tx.alignSelf]:"stretch",[tx.hostWidth]:"100%",[tx.stripeColor]:KI.colors.surface.light,[tx.stripeColorOpacity]:"0.5",[tx.stripeHorizontalThickness]:ix.thickness,[tx.labelTextWidth]:"fit-content",[tx.labelTextMaxWidth]:"calc(100% - 100px)",[tx.labelTextHorizontalSpacing]:ix.spacing,[tx.textAlign]:"center",_vertical:{[tx.minHeight]:"200px",[tx.flexDirection]:"column",[tx.hostWidth]:"fit-content",[tx.hostPadding]:`0 calc(${ix.thickness} * 3)`,[tx.stripeVerticalThickness]:ix.thickness,[tx.labelTextWidth]:"fit-content",[tx.labelTextMaxWidth]:"100%",[tx.labelTextVerticalSpacing]:ix.spacing}},rx={...tx,...ox};var sx=Object.freeze({__proto__:null,default:nx,vars:rx});const ax=es.cssVarList,lx={[ax.hostDirection]:hI.direction,[ax.fontFamily]:hI.fontFamily,[ax.fontSize]:hI.fontSize,[ax.labelTextColor]:hI.labelTextColor,[ax.labelRequiredIndicator]:hI.requiredIndicator,[ax.labelFontWeight]:hI.labelFontWeight,[ax.errorMessageTextColor]:hI.errorMessageTextColor,[ax.errorMessageFontWeight]:hI.errorMessageFontWeight,[ax.digitValueTextColor]:hI.valueTextColor,[ax.digitValueFontWeight]:hI.inputValueFontWeight,[ax.digitPadding]:"0",[ax.digitTextAlign]:"center",[ax.digitSpacing]:"4px",[ax.hostWidth]:hI.width,[ax.digitOutlineColor]:"transparent",[ax.digitOutlineWidth]:hI.outlineWidth,[ax.focusedDigitFieldOutlineColor]:hI.outlineColor,[ax.digitSize]:hI.inputHeight,[ax.errorMessageIcon]:hI.errorMessageIcon,[ax.errorMessageIconSize]:hI.errorMessageIconSize,[ax.errorMessageIconPadding]:hI.errorMessageIconPadding,[ax.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[ax.errorMessageIconPosition]:hI.errorMessageIconPosition,[ax.errorMessageFontSize]:hI.errorMessageFontSize,size:{xs:{[ax.spinnerSize]:"15px"},sm:{[ax.spinnerSize]:"20px"},md:{[ax.spinnerSize]:"20px"},lg:{[ax.spinnerSize]:"20px"}},_hideCursor:{[ax.digitCaretTextColor]:"transparent"},_loading:{[ax.overlayOpacity]:hI.overlayOpacity}};var dx=Object.freeze({__proto__:null,default:lx,vars:ax});const cx=fe(Tp),ux=ro.cssVarList,px={[ux.hostDisplay]:"inline-block",[ux.hostWidth]:"100%",[ux.barColor]:cx.colors.surface.contrast,[ux.barWidth]:"20%",[ux.barBackgroundColor]:cx.colors.surface.light,[ux.barBorderRadius]:"4px",[ux.animationDuration]:"2s",[ux.animationTimingFunction]:"linear",[ux.animationIterationCount]:"infinite",[ux.verticalPadding]:"0.25em",size:{xs:{[ux.barHeight]:"2px"},sm:{[ux.barHeight]:"4px"},md:{[ux.barHeight]:"6px"},lg:{[ux.barHeight]:"8px"}},mode:{primary:{[ux.barColor]:cx.colors.primary.main},secondary:{[ux.barColor]:cx.colors.secondary.main}},_hidden:{[ux.hostDisplay]:"none"}};var hx=Object.freeze({__proto__:null,default:px,vars:ux});const gx=fe(Tp),Mx=lo.cssVarList,[mx,yx,bx]=Qe({spinnerColor:gx.colors.surface.contrast,mode:{primary:{spinnerColor:gx.colors.primary.main},secondary:{spinnerColor:gx.colors.secondary.main}}},so),Nx={...mx,[Mx.animationDuration]:"2s",[Mx.animationTimingFunction]:"linear",[Mx.animationIterationCount]:"infinite",[Mx.spinnerBorderStyle]:"solid",[Mx.spinnerBorderWidth]:"0.2em",[Mx.spinnerBorderRadius]:"50%",[Mx.spinnerQuadrant1Color]:yx.spinnerColor,[Mx.spinnerQuadrant2Color]:"transparent",[Mx.spinnerQuadrant3Color]:yx.spinnerColor,[Mx.spinnerQuadrant4Color]:"transparent",size:{xs:{[Mx.spinnerSize]:"20px"},sm:{[Mx.spinnerSize]:"30px"},md:{[Mx.spinnerSize]:"40px"},lg:{[Mx.spinnerSize]:"60px"},xl:{[Mx.spinnerSize]:"80px"}},_hidden:{[Mx.hostDisplay]:"none"}},Ix={...Mx,...bx};var xx=Object.freeze({__proto__:null,default:Nx,vars:Ix});const jx=Hs.cssVarList,Tx={[jx.hostWidth]:hI.width,[jx.hostDirection]:hI.direction,[jx.fontSize]:hI.fontSize,[jx.fontFamily]:hI.fontFamily,[jx.labelFontSize]:hI.labelFontSize,[jx.labelFontWeight]:hI.labelFontWeight,[jx.inputValueFontWeight]:hI.inputValueFontWeight,[jx.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[jx.helperTextFontWeight]:hI.helperTextFontWeight,[jx.errorMessageFontWeight]:hI.errorMessageFontWeight,[jx.labelTextColor]:hI.labelTextColor,[jx.labelRequiredIndicator]:hI.requiredIndicator,[jx.errorMessageTextColor]:hI.errorMessageTextColor,[jx.inputValueTextColor]:hI.valueTextColor,[jx.inputPlaceholderTextColor]:hI.placeholderTextColor,[jx.inputBorderStyle]:hI.borderStyle,[jx.inputBorderWidth]:hI.borderWidth,[jx.inputBorderColor]:hI.borderColor,[jx.inputBorderRadius]:hI.borderRadius,[jx.inputOutlineStyle]:hI.outlineStyle,[jx.inputOutlineWidth]:hI.outlineWidth,[jx.inputOutlineColor]:hI.outlineColor,[jx.inputOutlineOffset]:hI.outlineOffset,[jx.phoneInputWidth]:hI.minWidth,[jx.countryCodeInputWidth]:"5em",[jx.countryCodeDropdownWidth]:"20em",[jx.marginInlineStart]:"-0.25em",[jx.valueInputHeight]:hI.valueInputHeight,[jx.valueInputMarginBottom]:hI.valueInputMarginBottom,[jx.errorMessageIcon]:hI.errorMessageIcon,[jx.errorMessageIconSize]:hI.errorMessageIconSize,[jx.errorMessageIconPadding]:hI.errorMessageIconPadding,[jx.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[jx.errorMessageIconPosition]:hI.errorMessageIconPosition,[jx.errorMessageFontSize]:hI.errorMessageFontSize};var Dx=Object.freeze({__proto__:null,default:Tx,vars:jx});const vx=ca.cssVarList,zx={[vx.hostWidth]:"16em",[vx.hostMinWidth]:hI.minWidth,[vx.hostDirection]:hI.direction,[vx.fontSize]:hI.fontSize,[vx.fontFamily]:hI.fontFamily,[vx.labelFontSize]:hI.labelFontSize,[vx.labelFontWeight]:hI.labelFontWeight,[vx.inputValueFontWeight]:hI.inputValueFontWeight,[vx.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[vx.helperTextFontWeight]:hI.helperTextFontWeight,[vx.errorMessageFontWeight]:hI.errorMessageFontWeight,[vx.labelTextColor]:hI.labelTextColor,[vx.labelRequiredIndicator]:hI.requiredIndicator,[vx.errorMessageTextColor]:hI.errorMessageTextColor,[vx.inputValueTextColor]:hI.valueTextColor,[vx.inputPlaceholderTextColor]:hI.placeholderTextColor,[vx.inputBorderStyle]:hI.borderStyle,[vx.inputBorderWidth]:hI.borderWidth,[vx.inputBorderColor]:hI.borderColor,[vx.inputBorderRadius]:hI.borderRadius,[vx.inputOutlineStyle]:hI.outlineStyle,[vx.inputOutlineWidth]:hI.outlineWidth,[vx.inputOutlineColor]:hI.outlineColor,[vx.inputOutlineOffset]:hI.outlineOffset,[vx.labelPosition]:hI.labelPosition,[vx.labelTopPosition]:hI.labelTopPosition,[vx.labelHorizontalPosition]:hI.labelHorizontalPosition,[vx.inputTransformY]:hI.inputTransformY,[vx.inputTransition]:hI.inputTransition,[vx.marginInlineStart]:hI.marginInlineStart,[vx.valueInputHeight]:hI.valueInputHeight,[vx.valueInputMarginBottom]:hI.valueInputMarginBottom,[vx.inputHorizontalPadding]:"0",[vx.errorMessageIcon]:hI.errorMessageIcon,[vx.errorMessageIconSize]:hI.errorMessageIconSize,[vx.errorMessageIconPadding]:hI.errorMessageIconPadding,[vx.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[vx.errorMessageIconPosition]:hI.errorMessageIconPosition,[vx.errorMessageFontSize]:hI.errorMessageFontSize,_fullWidth:{[vx.hostWidth]:hI.width}};var Cx=Object.freeze({__proto__:null,default:zx,vars:vx});const Sx=fe(Tp),wx=fa.cssVarList,Ax={[wx.hostWidth]:hI.width,[wx.hostMinWidth]:hI.minWidth,[wx.hostDirection]:hI.direction,[wx.fontSize]:hI.fontSize,[wx.fontFamily]:hI.fontFamily,[wx.labelFontSize]:hI.labelFontSize,[wx.labelFontWeight]:hI.labelFontWeight,[wx.inputValueFontWeight]:hI.inputValueFontWeight,[wx.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[wx.helperTextFontWeight]:hI.helperTextFontWeight,[wx.errorMessageFontWeight]:hI.errorMessageFontWeight,[wx.labelTextColor]:hI.labelTextColor,[wx.spaceBetweenInputs]:"1em",[wx.errorMessageTextColor]:hI.errorMessageTextColor,[wx.policyPreviewBackgroundColor]:"none",[wx.policyPreviewPadding]:Sx.spacing.lg,[wx.valueInputHeight]:hI.valueInputHeight,[wx.errorMessageIcon]:hI.errorMessageIcon,[wx.errorMessageIconSize]:hI.errorMessageIconSize,[wx.errorMessageIconPadding]:hI.errorMessageIconPadding,[wx.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[wx.errorMessageIconPosition]:hI.errorMessageIconPosition,[wx.errorMessageFontSize]:hI.errorMessageFontSize,_required:{[wx.inputsRequiredIndicator]:hI.requiredIndicator}};var Lx=Object.freeze({__proto__:null,default:Ax,vars:wx});const fx=ol.cssVarList,Ex={[fx.hostDirection]:hI.direction,[fx.labelTextColor]:hI.labelTextColor,[fx.fontFamily]:hI.fontFamily,[fx.iconSize]:"2em",[fx.hostPadding]:"0.75em",[fx.gap]:"0.5em",[fx.fontSize]:"16px",[fx.titleFontWeight]:"500",[fx.lineHeight]:"1em",[fx.borderWidth]:hI.borderWidth,[fx.borderColor]:hI.borderColor,[fx.borderRadius]:hI.borderRadius,[fx.borderStyle]:"dashed",_required:{[fx.requiredIndicator]:hI.requiredIndicator},size:{xs:{[fx.hostHeight]:"196px",[fx.hostWidth]:"200px",[fx.titleFontSize]:"0.875em",[fx.descriptionFontSize]:"0.875em",[fx.lineHeight]:"1.25em"},sm:{[fx.hostHeight]:"216px",[fx.hostWidth]:"230px",[fx.titleFontSize]:"1em",[fx.descriptionFontSize]:"0.875em",[fx.lineHeight]:"1.25em"},md:{[fx.hostHeight]:"256px",[fx.hostWidth]:"312px",[fx.titleFontSize]:"1.125em",[fx.descriptionFontSize]:"1em",[fx.lineHeight]:"1.5em"},lg:{[fx.hostHeight]:"280px",[fx.hostWidth]:"336px",[fx.titleFontSize]:"1.125em",[fx.descriptionFontSize]:"1.125em",[fx.lineHeight]:"1.75em"}},_fullWidth:{[fx.hostWidth]:hI.width}};var kx=Object.freeze({__proto__:null,default:Ex,vars:fx});const Ox=fe(Tp),Vx=dl.cssVarList,Wx={[Vx.hostDirection]:"inherit",[Vx.hostWidth]:"auto",[Vx.backgroundColor]:Ox.colors.surface.main,[Vx.labelTextColor]:Ox.colors.surface.contrast,[Vx.borderColor]:Ox.colors.surface.light,[Vx.borderStyle]:"solid",[Vx.borderRadius]:Ox.radius.sm,[Vx.outlineColor]:"transparent",[Vx.borderWidth]:Ox.border.xs,_hover:{[Vx.backgroundColor]:Ox.colors.surface.highlight},_focused:{[Vx.outlineColor]:Ox.colors.surface.light},_selected:{[Vx.borderColor]:Ox.colors.surface.contrast,[Vx.backgroundColor]:Ox.colors.surface.contrast,[Vx.labelTextColor]:Ox.colors.surface.main}};var Rx=Object.freeze({__proto__:null,default:Wx,vars:Vx});const Ux=fe(Tp),Yx=t=>({[t.hostDirection]:hI.direction,[t.fontFamily]:hI.fontFamily,[t.labelTextColor]:hI.labelTextColor,[t.labelRequiredIndicator]:hI.requiredIndicator,[t.itemsSpacing]:Ux.spacing.sm,[t.hostWidth]:hI.width,[t.errorMessageTextColor]:hI.errorMessageTextColor,[t.errorMessageIcon]:hI.errorMessageIcon,[t.errorMessageIconSize]:hI.errorMessageIconSize,[t.errorMessageIconPadding]:hI.errorMessageIconPadding,[t.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[t.errorMessageIconPosition]:hI.errorMessageIconPosition,[t.errorMessageFontSize]:hI.errorMessageFontSize,layout:{vertical:{[t.itemsDirection]:"column",[t.itemsAlignment]:"flex-start",_fullWidth:{[t.itemsAlignment]:"stretch",[t.itemsWidth]:"100%"}}}}),Qx=Nl.cssVarList,Px={...Yx(Qx)};var Bx=Object.freeze({__proto__:null,default:Px,vars:Qx});const Zx=Tl.cssVarList,Fx={...Yx(Zx)};var Gx=Object.freeze({__proto__:null,default:Fx,vars:Zx});const Hx=fe(Tp),Jx=rc.cssVarList,$x={[Jx.overlayBackgroundColor]:Hx.colors.surface.main,[Jx.overlayShadow]:Hx.shadow.wide["2xl"],[Jx.overlayWidth]:"540px",[Jx.overlayBackdropColor]:"hsla(214, 53%, 23%, 0.16)"},qx={...Jx};var _x=Object.freeze({__proto__:null,default:$x,vars:qx});const Xx=fe(Tp),Kx=ic.cssVarList,tj={[Kx.hostWidth]:"100%",[Kx.hostHeight]:"100%",[Kx.hostMinHeight]:"400px",[Kx.fontWeight]:"400",[Kx.backgroundColor]:Xx.colors.surface.main,[Kx.fontSize]:hI.fontSize,[Kx.fontFamily]:hI.fontFamily,[Kx.sortIndicatorsColor]:Xx.colors.surface.light,[Kx.activeSortIndicator]:Xx.colors.surface.dark,[Kx.resizeHandleColor]:Xx.colors.surface.light,[Kx.borderWidth]:hI.borderWidth,[Kx.borderStyle]:hI.borderStyle,[Kx.borderRadius]:hI.borderRadius,[Kx.borderColor]:"transparent",[Kx.headerRowTextColor]:Xx.colors.surface.dark,[Kx.separatorColor]:Xx.colors.surface.light,[Kx.valueTextColor]:Xx.colors.surface.contrast,[Kx.selectedBackgroundColor]:Xx.colors.surface.highlight,[Kx.hostDirection]:Xx.direction,[Kx.toggleDetailsPanelButtonSize]:"1em",[Kx.toggleDetailsPanelButtonOpenedColor]:Xx.colors.surface.contrast,[Kx.toggleDetailsPanelButtonClosedColor]:Xx.colors.surface.light,[Kx.toggleDetailsPanelButtonCursor]:"pointer",[Kx.detailsPanelBackgroundColor]:Xx.colors.surface.highlight,[Kx.detailsPanelBorderTopColor]:Xx.colors.surface.light,[Kx.detailsPanelLabelsColor]:Xx.colors.surface.dark,[Kx.detailsPanelLabelsFontSize]:"0.8em",[Kx.detailsPanelItemsGap]:"2em",[Kx.detailsPanelPadding]:"12px 0",_bordered:{[Kx.borderColor]:hI.borderColor}};var ej=Object.freeze({__proto__:null,default:tj,grid:tj,vars:Kx});const ij=fe(Tp),oj=dc.cssVarList,nj="#00000020",rj={[oj.hostMinWidth]:"415px",[oj.fontFamily]:ij.fonts.font1.family,[oj.fontSize]:ij.typography.body1.size,[oj.backgroundColor]:ij.colors.surface.main,[oj.textColor]:ij.colors.surface.contrast,[oj.boxShadow]:`${ij.shadow.wide.xl} ${nj}, ${ij.shadow.narrow.xl} ${nj}`,[oj.verticalPadding]:"0.625em",[oj.horizontalPadding]:"1.5em",[oj.borderRadius]:ij.radius.xs,_bordered:{[oj.borderWidth]:ij.border.sm,[oj.borderStyle]:"solid",[oj.borderColor]:"transparent"},size:{xs:{[oj.fontSize]:"12px"},sm:{[oj.fontSize]:"14px"},md:{[oj.fontSize]:"16px"},lg:{[oj.fontSize]:"18px"}},mode:{primary:{[oj.backgroundColor]:ij.colors.primary.main,[oj.textColor]:ij.colors.primary.contrast,[oj.borderColor]:ij.colors.primary.light},success:{[oj.backgroundColor]:ij.colors.success.main,[oj.textColor]:ij.colors.success.contrast,[oj.borderColor]:ij.colors.success.light},error:{[oj.backgroundColor]:ij.colors.error.main,[oj.textColor]:ij.colors.error.contrast,[oj.borderColor]:ij.colors.error.light}}};var sj=Object.freeze({__proto__:null,default:rj,vars:oj});const aj=fe(Tp),lj=vc.cssVarList,dj={[lj.hostWidth]:hI.width,[lj.hostDirection]:hI.direction,[lj.fontSize]:hI.fontSize,[lj.fontFamily]:hI.fontFamily,[lj.separatorFontSize]:"14px",[lj.labelsFontSize]:"14px",[lj.labelsLineHeight]:"1",[lj.labelsMarginBottom]:"6px",[lj.labelTextColor]:hI.labelTextColor,[lj.itemMarginBottom]:"1em",[lj.valueLabelMinWidth]:hI.minWidth,[lj.attrLabelMinWidth]:`calc(12em + 2 * ${aj.border.xs})`,[lj.separatorWidth]:"70px",[lj.removeButtonWidth]:"60px"};var cj=Object.freeze({__proto__:null,default:dj,mappingsField:dj,vars:lj});const uj=fe(Tp),pj=Qc.cssVarList,hj={[pj.labelMinWidth]:"150px",[pj.hostDirection]:uj.direction,[pj.contentMinWidth]:`calc(100% - ${Ye(pj.labelMinWidth)} - ${Ye(pj.itemsGap)})`,[pj.badgeMaxWidth]:"85px",[pj.itemsGap]:"4px",[pj.hostMinWidth]:"310px",[pj.hostWidth]:"530px",[pj.hostMaxWidth]:"100%",[pj.iconColor]:"currentcolor",_fullWidth:{[pj.hostWidth]:"100%"}};var gj=Object.freeze({__proto__:null,default:hj,vars:pj});const Mj=fe(Tp),mj=qc.cssVarList,yj={[mj.hostDirection]:Mj.direction,[mj.itemsGap]:"16px",[mj.hostMinWidth]:"310px",[mj.hostWidth]:"530px",[mj.hostMaxWidth]:"100%",[mj.iconSize]:"24px",[mj.iconColor]:"currentcolor",_fullWidth:{[mj.hostWidth]:"100%"}};var bj=Object.freeze({__proto__:null,default:yj,vars:mj});const Nj=ou.cssVarList,Ij={[Nj.hostWidth]:hI.width,[Nj.hostDirection]:hI.direction,[Nj.groupNameInputMarginBottom]:"1em",[Nj.errorMessageIcon]:hI.errorMessageIcon,[Nj.errorMessageIconSize]:hI.errorMessageIconSize,[Nj.errorMessageIconPadding]:hI.errorMessageIconPadding,[Nj.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[Nj.errorMessageIconPosition]:hI.errorMessageIconPosition,[Nj.errorMessageFontSize]:hI.errorMessageFontSize};var xj=Object.freeze({__proto__:null,default:Ij,samlGroupMappings:Ij,vars:Nj});const jj=fe(Tp),Tj=ja.cssVarList,Dj={[Tj.fontFamily]:hI.fontFamily,[Tj.fontSize]:hI.labelFontSize,[Tj.textColor]:hI.labelTextColor,[Tj.borderWidth]:hI.borderWidth,[Tj.borderStyle]:hI.borderStyle,[Tj.borderColor]:hI.borderColor,[Tj.borderRadius]:jj.radius.sm,[Tj.backgroundColor]:"none",[Tj.padding]:"0px",[Tj.labelMargin]:jj.spacing.sm,[Tj.itemsSpacing]:jj.spacing.lg,[Tj.itemSymbolDefault]:"'\\2022'",[Tj.itemSymbolSuccess]:"'\\2713'",[Tj.itemSymbolError]:"'\\2A09'",[Tj.itemSymbolSuccessColor]:jj.colors.success.main,[Tj.itemSymbolErrorColor]:jj.colors.error.main};var vj=Object.freeze({__proto__:null,default:Dj,vars:Tj});const zj=fe(Tp),Cj=Ad.cssVarList,Sj="#d73a49",wj="#6f42c1",Aj="#005cc5",Lj="#e36209",fj="#6a737d",Ej="#22863a",kj="#24292e",Oj="#f0fff4",Vj="#032f62",Wj="#ff7b72",Rj="#d2a8ff",Uj="#79c0ff",Yj="#ffa657",Qj="#8b949e",Pj="#7ee787",Bj="#c9d1d9",Zj="#f0fff4",Fj="#a5d6ff",Gj={[Cj.copyButtonSize]:"32px",[Cj.copyButtonBorderRadius]:zj.radius.xs,[Cj.copyButtonBorderWidth]:zj.border.xs,[Cj.copyButtonBorderColor]:zj.colors.surface.light,[Cj.copyButtonBgColor]:zj.colors.surface.highlight,[Cj.copyButtonHoverBgColor]:zj.colors.surface.light,[Cj.copyButtonColor]:zj.colors.surface.contrast,[Cj.rootBgColor]:zj.colors.surface.main,[Cj.rootTextColor]:zj.colors.surface.contrast,[Cj.docTagTextColor]:Sj,[Cj.keywordTextColor]:Sj,[Cj.metaKeywordTextColor]:Sj,[Cj.templateTagTextColor]:Sj,[Cj.templateVariableTextColor]:Sj,[Cj.typeTextColor]:Sj,[Cj.variableLanguageTextColor]:Sj,[Cj.titleTextColor]:wj,[Cj.titleClassTextColor]:wj,[Cj.titleClassInheritedTextColor]:wj,[Cj.titleFunctionTextColor]:wj,[Cj.attrTextColor]:Aj,[Cj.attributeTextColor]:Aj,[Cj.literalTextColor]:Aj,[Cj.metaTextColor]:Aj,[Cj.numberTextColor]:Aj,[Cj.operatorTextColor]:Aj,[Cj.variableTextColor]:Aj,[Cj.selectorAttrTextColor]:Aj,[Cj.selectorClassTextColor]:Aj,[Cj.selectorIdTextColor]:Aj,[Cj.regexpTextColor]:Vj,[Cj.stringTextColor]:Vj,[Cj.metaStringTextColor]:Vj,[Cj.builtInTextColor]:Lj,[Cj.symbolTextColor]:Lj,[Cj.commentTextColor]:fj,[Cj.codeTextColor]:fj,[Cj.formulaTextColor]:fj,[Cj.nameTextColor]:Ej,[Cj.quoteTextColor]:Ej,[Cj.selectorTagTextColor]:Ej,[Cj.selectorPseudoTextColor]:Ej,[Cj.substTextColor]:kj,[Cj.sectionTextColor]:Aj,[Cj.bulletTextColor]:"#735c0f",[Cj.emphasisTextColor]:kj,[Cj.strongTextColor]:kj,[Cj.additionTextColor]:Ej,[Cj.additionBgColor]:Oj,[Cj.deletionTextColor]:Sj,[Cj.deletionBgColor]:Oj},Hj={codeSnippet:{[Cj.rootBgColor]:zj.colors.surface.main,[Cj.rootTextColor]:zj.colors.surface.contrast,[Cj.docTagTextColor]:Wj,[Cj.keywordTextColor]:Wj,[Cj.metaKeywordTextColor]:Wj,[Cj.templateTagTextColor]:Wj,[Cj.templateVariableTextColor]:Wj,[Cj.typeTextColor]:Wj,[Cj.variableLanguageTextColor]:Wj,[Cj.titleTextColor]:Rj,[Cj.titleClassTextColor]:Rj,[Cj.titleClassInheritedTextColor]:Rj,[Cj.titleFunctionTextColor]:Rj,[Cj.attrTextColor]:Uj,[Cj.attributeTextColor]:Uj,[Cj.literalTextColor]:Uj,[Cj.metaTextColor]:Uj,[Cj.numberTextColor]:Uj,[Cj.operatorTextColor]:Uj,[Cj.variableTextColor]:Uj,[Cj.selectorAttrTextColor]:Uj,[Cj.selectorClassTextColor]:Uj,[Cj.selectorIdTextColor]:Uj,[Cj.regexpTextColor]:Fj,[Cj.stringTextColor]:Fj,[Cj.metaStringTextColor]:Fj,[Cj.builtInTextColor]:Yj,[Cj.symbolTextColor]:Yj,[Cj.commentTextColor]:Qj,[Cj.codeTextColor]:Qj,[Cj.formulaTextColor]:Qj,[Cj.nameTextColor]:Pj,[Cj.quoteTextColor]:Pj,[Cj.selectorTagTextColor]:Pj,[Cj.selectorPseudoTextColor]:Pj,[Cj.substTextColor]:Bj,[Cj.sectionTextColor]:Uj,[Cj.bulletTextColor]:"#735c0f",[Cj.emphasisTextColor]:Bj,[Cj.strongTextColor]:Bj,[Cj.additionTextColor]:Pj,[Cj.additionBgColor]:Zj,[Cj.deletionTextColor]:Wj,[Cj.deletionBgColor]:Zj}};var Jj=Object.freeze({__proto__:null,codeSnippetDarkThemeOverrides:Hj,default:Gj,vars:Cj});const $j=au.cssVarList,qj=fe(Tp),_j={[$j.buttonsRowGap]:"9px",[$j.hostWidth]:hI.width,[$j.hostDirection]:hI.direction,[$j.fontSize]:hI.fontSize,[$j.fontFamily]:hI.fontFamily,[$j.labelFontWeight]:hI.labelFontWeight,[$j.labelTextColor]:hI.labelTextColor,[$j.labelRequiredIndicator]:hI.requiredIndicator,[$j.errorMessageTextColor]:hI.errorMessageTextColor,[$j.errorMessageIcon]:hI.errorMessageIcon,[$j.errorMessageIconSize]:hI.errorMessageIconSize,[$j.errorMessageIconPadding]:hI.errorMessageIconPadding,[$j.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[$j.errorMessageIconPosition]:hI.errorMessageIconPosition,[$j.errorMessageFontSize]:hI.errorMessageFontSize,[$j.helperTextColor]:hI.helperTextColor,[$j.itemsLabelColor]:qj.colors.surface.contrast,[$j.itemsLabelFontWeight]:hI.inputValueFontWeight,[$j.itemsFontFamily]:hI.fontFamily,[$j.itemsRadioCheckedColor]:qj.colors.surface.light,[$j.itemsRadioBackgroundColor]:qj.colors.surface.light,[$j.itemsRadioCheckedBackgroundColor]:qj.colors.surface.contrast,textAlign:{right:{[$j.inputTextAlign]:"right"},left:{[$j.inputTextAlign]:"left"},center:{[$j.inputTextAlign]:"center"}},_fullWidth:{[$j.buttonsSpacing]:"space-between"},_disabled:{[$j.itemsLabelColor]:qj.colors.surface.light}};var Xj=Object.freeze({__proto__:null,default:_j,radioGroup:_j,vars:$j});const Kj=ru.cssVarList,tT=fe(Tp),eT={[Kj.fontFamily]:hI.fontFamily,[Kj.labelFontWeight]:hI.inputValueFontWeight,[Kj.radioSize]:"calc(1em + 6px)",[Kj.radioMargin]:"auto 4px",[Kj.radioCheckedSize]:`calc(var(${Kj.radioSize})/5)`,[Kj.radioCheckedColor]:tT.colors.surface.light,[Kj.radioBackgroundColor]:tT.colors.surface.light,[Kj.radioBorderColor]:"none",[Kj.radioBorderWidth]:0,_checked:{[Kj.radioBackgroundColor]:tT.colors.surface.contrast},_hover:{cursor:"pointer"},size:{xs:{[Kj.fontSize]:"12px"},sm:{[Kj.fontSize]:"14px"},md:{[Kj.fontSize]:"16px"},lg:{[Kj.fontSize]:"18px"}}};var iT=Object.freeze({__proto__:null,default:eT,radioButton:eT,vars:Kj});const oT=fe(Tp),nT=Vn.cssVarList,rT={[nT.fontFamily]:hI.fontFamily,[nT.fontSize]:hI.fontSize,[nT.hostDirection]:hI.direction,[nT.calendarPadding]:"1em",[nT.topNavVerticalPadding]:"1em",[nT.topNavAlignment]:"space-between",[nT.topNavGap]:"0",[nT.topNavSelectorsGap]:"0.5em",[nT.bottomNavVerticalPadding]:"0.75em",[nT.bottomNavHorizontalPadding]:"1.5em",[nT.bottomNavAlignment]:"space-between",[nT.bottomNavGap]:"0.5em",[nT.navMarginBottom]:"0.75em",[nT.navBorderBottomWidth]:"1px",[nT.navBorderBottomColor]:oT.colors.surface.highlight,[nT.navBorderBottomStyle]:"solid",[nT.yearInputWidth]:"6em",[nT.monthInputWidth]:"8em",[nT.navButtonSize]:"24px",[nT.navButtonCursor]:"pointer",[nT.weekdayFontSize]:"0.875em",[nT.weekdayFontWeight]:"500",[nT.dayHeight]:"3.125em",[nT.daySize]:"2.125em",[nT.dayFontSize]:"1em",[nT.dayRadius]:"50%",[nT.dayTextAlign]:"center",[nT.dayPadding]:"0",[nT.dayTextColor]:oT.colors.surface.contrast,[nT.dayFontWeight]:"500",[nT.dayBackgroundColor]:"transparent",[nT.dayCursor]:"pointer",[nT.dayBackgroundColorHover]:oT.colors.primary.highlight,[nT.daySelectedBackgroundColor]:oT.colors.primary.main,[nT.daySelectedTextdColor]:oT.colors.primary.contrast,[nT.dayDisabledTextdColor]:oT.colors.surface.light,[nT.currentDayBorderColor]:oT.colors.surface.light,[nT.currentDayBorderWidth]:"1px",[nT.currentDayBorderStyle]:"solid",size:{xs:{[nT.fontSize]:"12px"},sm:{[nT.fontSize]:"14px"},md:{[nT.fontSize]:"16px"},lg:{[nT.fontSize]:"18px"}},[nT.navButtonRotation]:"rotate(180deg)",_disabled:{[nT.navButtonOpacity]:"0.5",[nT.dayBackgroundColorHover]:"none",[nT.navButtonCursor]:"default",[nT.dayCursor]:"default"},_fullWidth:{[nT.hostWidth]:"100%",[nT.dayBlockAlign]:"0 auto"}};var sT=Object.freeze({__proto__:null,default:rT,vars:nT});const aT=fe(Tp),lT="#00000020",{shadow:dT}=aT,cT=mr.cssVarList,uT={[cT.hostWidth]:hI.width,[cT.hostDirection]:hI.direction,[cT.iconMargin]:"0.375em",[cT.overlay.marginTop]:`calc(${hI.outlineWidth} + 1px)`,[cT.overlay.backgroundColor]:hI.backgroundColor,[cT.overlay.backdropBackgroundColor]:"transparent",[cT.overlay.backdropPointerEvents]:"all",[cT.overlay.boxShadow]:`${dT.wide.xl} ${lT}, ${dT.narrow.xl} ${lT}`,[cT.overlay.outlineWidth]:"0",[cT.overlay.outlineColor]:"transparent",[cT.overlay.outlineStyle]:"none",[cT.overlay.padding]:"0",[cT.rtlInputDirection]:"ltr",[cT.rtlInputAlignment]:"right",[cT.errorMessageIcon]:hI.errorMessageIcon,[cT.errorMessageIconSize]:hI.errorMessageIconSize,[cT.errorMessageIconPadding]:hI.errorMessageIconPadding,[cT.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[cT.errorMessageIconPosition]:hI.errorMessageIconPosition,[cT.errorMessageFontSize]:hI.errorMessageFontSize,[cT.labelFontWeight]:hI.labelFontWeight,[cT.inputValueFontWeight]:hI.inputValueFontWeight,[cT.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[cT.helperTextFontWeight]:hI.helperTextFontWeight,[cT.errorMessageFontWeight]:hI.errorMessageFontWeight};var pT=Object.freeze({__proto__:null,default:uT,vars:cT});const hT=hu.cssVarList,gT={[hT.requiredInputBorderColor]:pI._disabled[gI.borderColor],[hT.requiredInputValueTextColor]:pI._disabled[gI.valueTextColor],[hT.hostWidth]:"280px",_fullWidth:{[hT.hostWidth]:"100%"}};var MT=Object.freeze({__proto__:null,default:gT,vars:hT});const mT=fe(Tp),yT=Tu.cssVarList,bT={[yT.gap]:mT.spacing.lg,[yT.arrowsColor]:mT.colors.surface.dark,[yT.thirdPartyAppLogoFallback]:"url(https://imgs.descope.com/components/third-party-app-logo-placeholder.svg)",[yT.companyLogoFallback]:"url(https://imgs.descope.com/components/project-logo-placeholder.svg)",size:{xs:{[yT.logoMaxHeight]:"30px",[yT.logoMaxWidth]:"120px"},sm:{[yT.logoMaxHeight]:"40px",[yT.logoMaxWidth]:"160px"},md:{[yT.logoMaxHeight]:"48px",[yT.logoMaxWidth]:"200px"},lg:{[yT.logoMaxHeight]:"60px",[yT.logoMaxWidth]:"240px"}}};var NT=Object.freeze({__proto__:null,default:bT,vars:yT});const IT=Su.cssVarList,xT={[IT.hostWidth]:"fit-content",_fullWidth:{[IT.hostWidth]:"100%"}};var jT=Object.freeze({__proto__:null,default:xT,vars:IT});const TT=Vu.cssVarList,DT={[TT.hostWidth]:"min-content",[TT.questionCursor]:"pointer",_fullWidth:{[TT.hostWidth]:"100%"},[TT.questionFontSize]:hI.fontSize,[TT.questionFontFamily]:hI.fontFamily};var vT=Object.freeze({__proto__:null,default:DT,vars:TT});const zT=up.cssVarList,CT={[zT.hostDirection]:hI.direction,[zT.labelFontWeight]:hI.labelFontWeight,[zT.inputValueFontWeight]:hI.inputValueFontWeight,[zT.inputPlaceholderFontWeight]:hI.inputPlaceholderFontWeight,[zT.helperTextFontWeight]:hI.helperTextFontWeight,[zT.errorMessageFontWeight]:hI.errorMessageFontWeight,[zT.errorMessageIcon]:hI.errorMessageIcon,[zT.errorMessageIconSize]:hI.errorMessageIconSize,[zT.errorMessageIconPadding]:hI.errorMessageIconPadding,[zT.errorMessageIconRepeat]:hI.errorMessageIconRepeat,[zT.errorMessageIconPosition]:hI.errorMessageIconPosition,[zT.errorMessageFontSize]:hI.errorMessageFontSize,_fullWidth:{[zT.hostWidth]:"100%"}};var ST=Object.freeze({__proto__:null,default:CT,vars:zT});const wT=fe(Tp),AT=Mp.cssVarList,LT={[AT.hostDirection]:wT.direction,[AT.backgroundColor]:"transparent",[AT.iconSize]:"1.35em",[AT.alignItems]:"center",[AT.borderRadius]:wT.radius.md,[AT.horizontalPadding]:"0",[AT.verticalPadding]:"0",[AT.gap]:"0.5em",[AT.fontSize]:Ye(Yp.fontSize),mode:{error:{[AT.textColor]:wT.colors.error.main,_bordered:{[AT.borderColor]:wT.colors.error.main}},success:{[AT.textColor]:wT.colors.success.main,_bordered:{[AT.borderColor]:wT.colors.success.main}}},spacing:{xs:{[AT.horizontalPadding]:wT.spacing.xs,[AT.verticalPadding]:wT.spacing.xs},sm:{[AT.horizontalPadding]:wT.spacing.sm,[AT.verticalPadding]:wT.spacing.sm},md:{[AT.horizontalPadding]:wT.spacing.md,[AT.verticalPadding]:wT.spacing.md},lg:{[AT.horizontalPadding]:wT.spacing.lg,[AT.verticalPadding]:wT.spacing.lg},xl:{[AT.horizontalPadding]:wT.spacing.xl,[AT.verticalPadding]:wT.spacing.xl}},textAlign:{left:{[AT.justifyContent]:"left"},center:{[AT.justifyContent]:"center"},right:{[AT.justifyContent]:"right"}},_bordered:{[AT.borderWidth]:wT.border.xs,[AT.borderColor]:"transparent",[AT.borderStyle]:"solid",[AT.borderWidth]:wT.border.xs,[AT.borderRadius]:wT.radius.sm},_fullWidth:{[AT.hostWidth]:"100%"}};var fT=Object.freeze({__proto__:null,default:LT,vars:AT});const ET=Np.cssVarList,kT={enabled:{false:{[ET.maxHeight]:"70px"}}},OT={button:Rp,textField:yb,password:NI,numberField:jI,emailField:_N,textArea:vI,checkbox:wI,switchToggle:kI,container:BI,logo:GI,totpImage:$I,notpImage:XI,text:Pp,enrichedText:qp,link:Gp,divider:sx,passcode:dx,loaderRadial:xx,loaderLinear:hx,comboBox:nh,phoneField:Dx,phoneInputBoxField:Cx,newPassword:Lx,newEmail:dI,inputWrapper:MI,uploadFile:kx,buttonSelectionGroupItem:Rx,buttonSelectionGroup:Bx,buttonMultiSelectionGroup:Gx,modal:_x,grid:ej,notificationCard:sj,multiSelectComboBox:zg,badge:uh,avatar:jh,mappingsField:cj,userAttribute:gj,userAuthMethod:bj,samlGroupMappings:xj,policyValidation:vj,image:zh,icon:Dh,codeSnippet:Jj,radioGroup:Xj,radioButton:iT,calendar:sT,dateField:pT,monthDayField:$b,monthDayFieldPicker:dN,list:Ph,listItem:Gh,multiLineMappings:jg,appsList:Eh,scopesList:MT,thirdPartyAppLogo:NT,securityQuestionsSetup:jT,securityQuestionsVerify:vT,hybridField:ST,alert:fT,autocompleteField:Wg,addressField:Kg,countrySubdivisionCityField:By,timer:uM,timerButton:CM,passwordStrength:YM,collapsibleContainer:KM,recoveryCodes:um,activeSessions:xm,hcaptcha:Object.freeze({__proto__:null,default:kT,vars:ET}),outboundApps:wm,outboundAppButton:Vm,trustedDevices:Gm,multiSso:ey,tooltip:my,filter:JN,attachment:Ky,userPasskeys:hb},VT=Object.keys(OT).reduce((t,e)=>({...t,[e]:OT[e].default}),{}),WT=Object.keys(OT).reduce((t,e)=>({...t,[e]:OT[e].vars}),{}),RT={globals:Tp,components:VT},UT={globals:Dp,components:WT},YT=l()({},RT,{globals:{colors:{surface:{main:"#181a1c",dark:"#bec4ca",light:"#555f68",highlight:"#22262a",contrast:"#f5f6f7"},primary:{main:"#1f80ff",dark:"#71aeff",light:"#004094",highlight:"#00214d",contrast:"#000000"},secondary:{main:"#a665eb",dark:"#b9a0f3",light:"#683ae6",highlight:"#361299",contrast:"#000000"},success:{main:"#27963c",dark:"#8bc3a2",light:"#004d0f",highlight:"#001f00",contrast:"#000000"},error:{main:"#f85249",dark:"#fa7c75",light:"#c51107",highlight:"#4a0603",contrast:"#000000"},warning:{main:"#EF7A33",dark:"#FF985A",light:"#FF6304",highlight:"#C45512",contrast:"#000000"}}},components:{...Hj}});customElements.define(Hh,lg),customElements.define(hm,bm),customElements.define(Cg,class extends Sg{static get observedAttributes(){return[].concat(Sg.observedAttributes||[],wg)}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}get minSearchLength(){return this.getAttribute("min-search-length")||3}get noResultsFoundMessage(){return this.getAttribute("no-results-message")||"No results found"}get errorFetchingResultsMessage(){return this.getAttribute("error-fetching-results-message")||"An error occurred fetching results"}constructor(){super(),this.innerHTML='\n <div class="autocomplete-field">\n <descope-combo-box clear-button-visible="true" auto-open-disabled="true" has-dynamic-data="true" item-label-path="data-name" item-value-path="data-id" hide-toggle-button="true"></descope-combo-box>\n </div>\n ',this.comboBox=this.querySelector("descope-combo-box")}get value(){return this.comboBox.value}set value(t){this.allowCustomValue?this.comboBox.value=t:(this.comboBox.data=[{label:t,value:t}],setTimeout(()=>{this.comboBox.value=t}))}get defaultValue(){return this.getAttribute("default-value")}async#Kr(t){const{results:e,error:i}=await this.fetchResults(t);return i?{error:i}:{results:e}}#ts(t,e,i,o){return`<span data-name="${i}" data-id="${e}" ${o?'disabled="true"':""}>${t||i}</span>`}#es(){this.comboBox.renderer=(t,e,i)=>{"true"===i.item.getAttribute("disabled")?t.setAttribute("disabled","true"):t.removeAttribute("disabled"),t.innerHTML=i.item.outerHTML},this.comboBox.renderItem=({displayName:t,value:e,label:i,disabled:o})=>this.#ts(t,e,i,o)}focus(){this.comboBox.focus()}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.comboBox.focus()}),super.init?.(),this.#is(),A(this,this.comboBox,{includeAttrs:["invalid"]})}#is(){this.debouncedSearch=(t=>{let e=0;const i=new Set,o=new Set,n=s()((n,r)=>{t(...n).then(t=>{r===e&&(i.forEach(e=>e(t)),i.clear())}).catch(t=>{o.forEach(e=>e(t)),o.clear()})},250);return(...t)=>(e++,new Promise((r,s)=>{i.add(r),o.add(s),n(t,e)}))})(async t=>{try{const{results:e,error:i}=await this.#Kr(t);return{results:e,error:i,value:t}}catch(e){return{error:e,value:t}}}),k(this,this.comboBox,{includeAttrs:["size","bordered","label","label-type","placeholder","disabled","readonly","required","full-width","helper-text","invalid","error-message","data-errormessage-value-missing","st-host-direction","allow-custom-value","st-error-message-icon","st-error-message-icon-size","st-error-message-icon-padding"]}),this.comboBox.addEventListener("filter-changed",this.onSearch.bind(this)),this.#es()}#os(){return[{label:this.noResultsFoundMessage,value:Ag,disabled:!0}]}#ns(){return[{label:this.errorFetchingResultsMessage,value:Ag,disabled:!0}]}async onSearch(t){const e=t.detail.value;if(!e||e.length<this.minSearchLength)return;this.comboBox.loading=!0,this.comboBox.setAttribute("opened","true");const i=await this.debouncedSearch(e);i&&i.value===e&&(this.comboBox.loading=!1,i.error?this.comboBox.data=this.#ns():0===i.results?.length?this.comboBox.data=this.#os():this.comboBox.data=i.results||[])}fetchResults(t){return console.warn("fetchResults","needs to be implemented"),{results:[],error:void 0}}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:{valid:!0}}}),customElements.define(Lg,Eg),customElements.define(Yg,Hg),customElements.define(Jg,qg);const QT=f("anchored");class PT extends(jt({componentName:QT,baseSelector:".anchored-root"})){#rs=null;#ss=null;#as=null;#ls=null;get#ds(){return this.defaultSlot.assignedElements({flatten:!0})[0]}get#cs(){return this.shadowRoot.querySelector('slot[name="anchored"]')?.assignedElements()[0]}get#us(){return this.getRootNode().host}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML='\n <div class="anchored-root" part="root">\n <slot></slot>\n <div class="anchored-host" part="anchored">\n <slot name="anchored"></slot>\n </div>\n </div>\n ',this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])")}init(){super.init?.(),O("\n :host {\n display: inline-flex;\n position: relative;\n box-sizing: border-box;\n }\n\n :host(:not([has-anchor])) {\n display: none;\n }\n\n .anchored-root {\n position: relative;\n display: flex;\n width: 100%;\n min-width: 0;\n }\n\n /* Make anchor fill the flex row and allow it to shrink. */\n ::slotted(*:not([slot])) {\n flex-grow: 1; /* fill the flex row */\n flex-shrink: 1; /* compress when constrained */\n flex-basis: auto; /* start from the anchor's natural size */\n min-width: 0; /* flex items won't shrink below content size without this */\n }\n\n /* Anchored container covers the anchor but is invisible to pointer events. */\n .anchored-host {\n position: absolute;\n inset: 0;\n pointer-events: none;\n }\n\n /* Restore interactivity for actual anchored content. */\n ::slotted([slot=\"anchored\"]) {\n pointer-events: auto;\n }\n ",this),this.#ps(),this.defaultSlot.addEventListener("slotchange",()=>this.#hs()),this.#hs()}#bi(){const t=this.#ds?.classList?.contains("hidden");this.classList.toggle("hidden",t)}#hs(){this.#gs(),this.#rs=this.#Ms(this.#rs,this.#us,"stretch"),this.#ss=this.#Ms(this.#ss,this.#cs,"st-host-direction"),this.#ms()}#ms(){this.#ls?.disconnect(),this.#ds&&(this.#ls=C(this.#ds,()=>this.#bi(),{includeAttrs:["class"]}))}connectedCallback(){super.connectedCallback?.(),this.#ms(),this.#bi()}#ps(){const t="\n descope-anchored {\n width: 100%; /* fill the outer host so the anchored element spans the full anchor width */\n }\n :host([stretch]) {\n display: inline-flex; /* switch from inline-block so internal children are flex items */\n width: 100%; /* fill non-flex parents */\n flex-grow: 1; /* absorb extra space in flex parents */\n flex-shrink: 0; /* hold full width — shrink:1 would let siblings squeeze it below 100% */\n flex-basis: auto; /* defer to width:100% on the main axis; avoids forcing 100% height in column-flex parents */\n min-width: 0; /* prevent overflow when the outer host is itself inside a constrained flex row */\n }\n ";this.#as?this.#as.replaceSync(t):this.#us&&(this.#as=O(t,this.#us))}#Ms(t,e,i){return t?.disconnect(),e?.removeAttribute(i),this.#ds&&e?k(this.#ds,e,{includeAttrs:[i]}):null}disconnectedCallback(){super.disconnectedCallback?.(),this.#rs?.disconnect(),this.#ss?.disconnect(),this.#ls?.disconnect()}#gs(){this.toggleAttribute("has-anchor",!!this.#ds),this.#bi()}}const BT=T(yt)(PT);customElements.define(QT,BT),customElements.define(ph,yh),customElements.define(Ch,Sh),customElements.define(Zy,$y),customElements.define(QM,ZM),customElements.define(Ty,Oy),customElements.define(Vy,Yy),customElements.define(IN,SN),customElements.define(wN,ON),customElements.define(VN,PN),customElements.define(Xb,sN),customElements.define(wb,Bb),customElements.define(dg,Ng),customElements.define(Hm,_m);const ZT=/^email-/,FT=/^confirm-/,GT=(t,e)=>t.replace(e,""),HT=["email-label","email-placeholder"],JT=["confirm-label","confirm-placeholder"],$T=["disabled","bordered","size","full-width","invalid","readonly","draggable","label-type"],qT=[].concat($T,HT,JT),_T=wt({componentName:XN,baseSelector:"div"});customElements.define(XN,class extends _T{static get observedAttributes(){return[].concat(_T.observedAttributes||[],qT)}constructor(){super(),this.innerHTML='\n\t\t\t<div class="wrapper"></div>\n\t\t',this.wrapperEle=this.querySelector(".wrapper")}get value(){return this.emailInput?.value||""}set value(t){t!==this.value&&(this.emailInput.value=t)}getValidity(){return this.isRequired&&!this.value?{valueMissing:!0}:this.value&&!this.emailFormat.test(this.value)?{patternMismatch:!0}:this.value!==(this.confirmInput?.value||"")?{typeMismatch:!0}:{}}init(){this.addEventListener("focus",t=>{t.isTrusted&&this.emailInput.focus()}),super.init?.(),this.renderInputs()}renderInputs(){const t="true"===this.getAttribute("external-input"),e="false"!==this.getAttribute("accept-unicode");this.emailFormat=e?new RegExp(Ru,"u"):new RegExp(Wu);const i=`\n <descope-email-field\n data-id="email"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n ></descope-email-field>\n <descope-email-field\n data-id="confirm"\n external-input="${t}"\n accept-unicode="${e}"\n validate-format="false"\n autocomplete="off"\n ></descope-email-field>\n `;this.wrapperEle.innerHTML=i,this.emailInput=this.querySelector('[data-id="email"]'),this.confirmInput=this.querySelector('[data-id="confirm"]'),this.inputs=[this.emailInput,this.confirmInput],this.initInputs()}handleIndicatorStyle(){this.inputs.forEach(t=>{O(`\n\t\t\t\t:host ::part(required-indicator)::after {\n\t\t\t\t\tcontent: var(${sI.cssVarList.inputsRequiredIndicator});\n width: 1em;\n text-align: center;\n\t\t\t\t}\n :host ::part(required-indicator) {\n display: inline-flex;\n }\n\t\t\t\t`,t)})}get isInvalid(){return this.hasAttribute("invalid")&&"false"!==this.getAttribute("invalid")}handleInputsInvalidAttribute(){this.inputs.forEach(t=>{t&&C(t,e=>{if(e.includes("invalid")){const e=t.getAttribute("invalid"),i=this.getAttribute("invalid");this.isInvalid&&i!==e&&t.setAttribute("invalid","true")}},{})})}initInputs(){this.handleIndicatorStyle(),this.handleInputsInvalidAttribute(),this.handleFocusEventsDispatching(this.inputs)}toggleBooleanAttribute(t,e,i){null===i?t?.removeAttribute(e):t?.setAttribute(e,i)}attributeChangedCallback(t,e,i){super.attributeChangedCallback?.(t,e,i),e!==i&&($T.includes(t)?this.inputs?.forEach(e=>this.toggleBooleanAttribute(e,t,i)):HT.includes(t)?this.toggleBooleanAttribute(this.emailInput,GT(t,ZT),i):JT.includes(t)&&this.toggleBooleanAttribute(this.confirmInput,GT(t,FT),i))}}),customElements.define(KN,sI),customElements.define(Am,fm),customElements.define(jm,zm),customElements.define(SM,OM);var XT=Object.freeze({__proto__:null,PasswordStrengthClass:OM,componentName:SM});const KT=f("ponyhot"),tD="dhp-",eD=jt({componentName:KT,baseSelector:""}),iD=T(yt)(class extends eD{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#ys(),this.#bs(),this.#Ns())}#ys(){const t=["input","change","click","keydown","keyup","mouseover","mousedown"],e=i=>{this.input.value=`${tD}${i.type}`,t.forEach(t=>{this.input.removeEventListener(t,e)})};t.forEach(t=>{this.input.addEventListener(t,e)})}#bs(){const t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.input,"value",{get(){return t.get.call(this)},set(e){const i=t.get.call(this);e&&!e.startsWith(tD)&&e!==i?t.set.call(this,`${tD}direct-set`):t.set.call(this,e)},configurable:!0})}#Ns(){Object.entries({position:"absolute",opacity:"0.01",width:"1px",height:"1px",pointerEvents:"none",zIndex:"-1",left:"-999999px"}).forEach(([t,e])=>{this.style[t]=e})}});customElements.define(KT,iD),customElements.define(tm,sm),customElements.define(eM,aM),customElements.define(pM,TM),customElements.define(iy,ay),customElements.define(Um,Bm),customElements.define(nb,cb);const oD={translations:N.A,graphs:y.K,dictionary:{...y.z,...b.z}},nD=new m.Qn(oD);var rD=Object.freeze({__proto__:null,default:t=>nD.check(t),options:oD})}}]);
2
2
  //# sourceMappingURL=222.js.map