@descope/web-components-ui 1.0.385 → 1.0.386

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/dist/umd/1033.js +2 -0
  2. package/dist/umd/{9423.js → 1053.js} +15 -15
  3. package/dist/umd/1414.js +352 -0
  4. package/dist/umd/{9314.js → 1437.js} +10 -10
  5. package/dist/umd/1672.js +1 -0
  6. package/dist/umd/{3830.js → 2566.js} +2 -2
  7. package/dist/umd/{7856.js → 2838.js} +2 -2
  8. package/dist/umd/286.js +148 -0
  9. package/dist/umd/{5135.js → 2919.js} +8 -8
  10. package/dist/umd/3222.js +282 -0
  11. package/dist/umd/{7056.js → 351.js} +10 -10
  12. package/dist/umd/3607.js +2 -0
  13. package/dist/umd/3711.js +123 -0
  14. package/dist/umd/4619.js +1 -0
  15. package/dist/umd/{3951.js → 4834.js} +8 -8
  16. package/dist/umd/{1612.js → 5026.js} +7 -7
  17. package/dist/umd/{7284.js → 5086.js} +8 -8
  18. package/dist/umd/{8191.js → 5273.js} +6 -6
  19. package/dist/umd/5412.js +109 -0
  20. package/dist/umd/{4024.js → 5443.js} +7 -7
  21. package/dist/umd/5459.js +1 -0
  22. package/dist/umd/{6594.js → 6418.js} +2 -2
  23. package/dist/umd/{1438.js → 6474.js} +16 -16
  24. package/dist/umd/650.js +1 -0
  25. package/dist/umd/6637.js +73 -0
  26. package/dist/umd/6726.js +148 -0
  27. package/dist/umd/{63.js → 7212.js} +9 -9
  28. package/dist/umd/{9562.js → 7407.js} +7 -7
  29. package/dist/umd/{7541.js → 7607.js} +11 -11
  30. package/dist/umd/{4052.js → 7824.js} +7 -7
  31. package/dist/umd/{4525.js → 8162.js} +3 -3
  32. package/dist/umd/8164.js +319 -0
  33. package/dist/umd/{5977.js → 8980.js} +10 -10
  34. package/dist/umd/{8137.js → 9167.js} +10 -10
  35. package/dist/umd/{5778.js → 9632.js} +10 -10
  36. package/dist/umd/9878.js +1 -0
  37. package/dist/umd/9895.js +17 -0
  38. package/dist/umd/DescopeDev.js +1 -1
  39. package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +1 -1
  40. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  41. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  42. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  43. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -1
  44. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  45. package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -1
  46. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  47. package/dist/umd/descope-apps-list-index-js.js +1 -1
  48. package/dist/umd/descope-avatar-index-js.js +1 -1
  49. package/dist/umd/descope-badge-index-js.js +1 -1
  50. package/dist/umd/descope-button-index-js.js +6 -6
  51. package/dist/umd/descope-code-snippet-index-js.js +1 -1
  52. package/dist/umd/descope-combo-box-index-js.js +7 -7
  53. package/dist/umd/descope-container-index-js.js +1 -1
  54. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  55. package/dist/umd/descope-date-field-index-js.js +1 -1
  56. package/dist/umd/descope-divider-index-js.js +1 -1
  57. package/dist/umd/descope-email-field-index-js.js +4 -4
  58. package/dist/umd/descope-enriched-text-index-js.js +1 -1
  59. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  60. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +4 -4
  61. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  62. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +4 -4
  63. package/dist/umd/descope-grid-index-js.js +1 -1
  64. package/dist/umd/descope-icon-index-js.js +1 -1
  65. package/dist/umd/descope-image-index-js.js +1 -1
  66. package/dist/umd/descope-link-index-js.js +1 -1
  67. package/dist/umd/descope-list-index-js.js +1 -1
  68. package/dist/umd/descope-loader-linear-index-js.js +1 -1
  69. package/dist/umd/descope-loader-radial-index-js.js +1 -1
  70. package/dist/umd/descope-logo-index-js.js +1 -1
  71. package/dist/umd/descope-modal-index-js.js +1 -1
  72. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  73. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  74. package/dist/umd/descope-new-password-index-js.js +1 -1
  75. package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
  76. package/dist/umd/descope-notification-index-js.js +1 -1
  77. package/dist/umd/descope-notp-image-index-js.js +1 -1
  78. package/dist/umd/descope-number-field-index-js.js +1 -1
  79. package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
  80. package/dist/umd/descope-passcode-index-js.js +1 -1
  81. package/dist/umd/descope-password-index-js.js +1 -1
  82. package/dist/umd/descope-policy-validation-index-js.js +1 -1
  83. package/dist/umd/descope-radio-group-index-js.js +1 -1
  84. package/dist/umd/descope-recaptcha-index-js.js +1 -1
  85. package/dist/umd/descope-text-area-index-js.js +1 -1
  86. package/dist/umd/descope-text-field-index-js.js +2 -2
  87. package/dist/umd/descope-text-index-js.js +1 -1
  88. package/dist/umd/descope-totp-image-index-js.js +1 -1
  89. package/dist/umd/descope-upload-file-index-js.js +1 -1
  90. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  91. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  92. package/dist/umd/index.js +1 -1
  93. package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
  94. package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
  95. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  96. package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +1 -1
  97. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  98. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  99. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  100. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  101. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
  102. package/package.json +1 -1
  103. package/dist/umd/1224.js +0 -2
  104. package/dist/umd/2773.js +0 -148
  105. package/dist/umd/3227.js +0 -17
  106. package/dist/umd/3966.js +0 -319
  107. package/dist/umd/4392.js +0 -1
  108. package/dist/umd/4569.js +0 -1
  109. package/dist/umd/4978.js +0 -1
  110. package/dist/umd/5517.js +0 -2
  111. package/dist/umd/5806.js +0 -109
  112. package/dist/umd/5910.js +0 -1
  113. package/dist/umd/602.js +0 -282
  114. package/dist/umd/637.js +0 -1
  115. package/dist/umd/6770.js +0 -148
  116. package/dist/umd/7911.js +0 -73
  117. package/dist/umd/8060.js +0 -352
  118. package/dist/umd/8655.js +0 -123
  119. /package/dist/umd/{1224.js.LICENSE.txt → 1033.js.LICENSE.txt} +0 -0
  120. /package/dist/umd/{9423.js.LICENSE.txt → 1053.js.LICENSE.txt} +0 -0
  121. /package/dist/umd/{8060.js.LICENSE.txt → 1414.js.LICENSE.txt} +0 -0
  122. /package/dist/umd/{1612.js.LICENSE.txt → 1437.js.LICENSE.txt} +0 -0
  123. /package/dist/umd/{3830.js.LICENSE.txt → 2566.js.LICENSE.txt} +0 -0
  124. /package/dist/umd/{7856.js.LICENSE.txt → 2838.js.LICENSE.txt} +0 -0
  125. /package/dist/umd/{4024.js.LICENSE.txt → 286.js.LICENSE.txt} +0 -0
  126. /package/dist/umd/{5135.js.LICENSE.txt → 2919.js.LICENSE.txt} +0 -0
  127. /package/dist/umd/{3227.js.LICENSE.txt → 3222.js.LICENSE.txt} +0 -0
  128. /package/dist/umd/{4052.js.LICENSE.txt → 351.js.LICENSE.txt} +0 -0
  129. /package/dist/umd/{5517.js.LICENSE.txt → 3607.js.LICENSE.txt} +0 -0
  130. /package/dist/umd/{8655.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
  131. /package/dist/umd/{3951.js.LICENSE.txt → 4834.js.LICENSE.txt} +0 -0
  132. /package/dist/umd/{4525.js.LICENSE.txt → 5026.js.LICENSE.txt} +0 -0
  133. /package/dist/umd/{6770.js.LICENSE.txt → 5086.js.LICENSE.txt} +0 -0
  134. /package/dist/umd/{7056.js.LICENSE.txt → 5273.js.LICENSE.txt} +0 -0
  135. /package/dist/umd/{5806.js.LICENSE.txt → 5412.js.LICENSE.txt} +0 -0
  136. /package/dist/umd/{7284.js.LICENSE.txt → 5443.js.LICENSE.txt} +0 -0
  137. /package/dist/umd/{6594.js.LICENSE.txt → 6418.js.LICENSE.txt} +0 -0
  138. /package/dist/umd/{1438.js.LICENSE.txt → 6474.js.LICENSE.txt} +0 -0
  139. /package/dist/umd/{7911.js.LICENSE.txt → 6637.js.LICENSE.txt} +0 -0
  140. /package/dist/umd/{2773.js.LICENSE.txt → 6726.js.LICENSE.txt} +0 -0
  141. /package/dist/umd/{63.js.LICENSE.txt → 7212.js.LICENSE.txt} +0 -0
  142. /package/dist/umd/{8191.js.LICENSE.txt → 7407.js.LICENSE.txt} +0 -0
  143. /package/dist/umd/{7541.js.LICENSE.txt → 7607.js.LICENSE.txt} +0 -0
  144. /package/dist/umd/{9314.js.LICENSE.txt → 7824.js.LICENSE.txt} +0 -0
  145. /package/dist/umd/{9562.js.LICENSE.txt → 8162.js.LICENSE.txt} +0 -0
  146. /package/dist/umd/{3966.js.LICENSE.txt → 8164.js.LICENSE.txt} +0 -0
  147. /package/dist/umd/{5977.js.LICENSE.txt → 8980.js.LICENSE.txt} +0 -0
  148. /package/dist/umd/{8137.js.LICENSE.txt → 9167.js.LICENSE.txt} +0 -0
  149. /package/dist/umd/{5778.js.LICENSE.txt → 9632.js.LICENSE.txt} +0 -0
  150. /package/dist/umd/{602.js.LICENSE.txt → 9895.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 1033.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1033],{1033:(t,e,n)=>{n.d(e,{e:()=>c});var o=n(27568),i=n(50063),s=n(67766);const c=t=>class extends((0,i.i)((0,s.f)(t))){get _activeKeys(){return[" "]}ready(){super.ready(),(0,o.ch)(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),(0,o.ch)(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}},27568:(t,e,n)=>{n.d(e,{ch:()=>M});var o=n(81510);const i=!1,s="string"==typeof document.head.style.touchAction,c="__polymerGestures",u="__polymerGesturesHandled",r="__polymerGesturesTouchAction",a=["mousedown","mousemove","mouseup","click"],h=[0,1,4,2],d=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function f(t){return a.indexOf(t)>-1}let l=!1;function m(t){if(!f(t)&&"touchend"!==t)return s&&l&&i?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){l=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const p=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),v={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function y(t){const e=t.type;if(!f(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!d&&(e=h[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const w={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function g(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function _(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const b=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],x={},k=[];function E(t){const e=b(t);return e.length>0?e[0]:t.target}function A(t){const e=t.type,n=t.currentTarget[c];if(!n)return;const o=n[e];if(!o)return;if(!t[u]&&(t[u]={},e.startsWith("touch"))){const n=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(w.touch.id=n.identifier),w.touch.id!==n.identifier)return;s||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],n=t.type;if("touchstart"===n)w.touch.x=e.clientX,w.touch.y=e.clientY,w.touch.scrollDecided=!1;else if("touchmove"===n){if(w.touch.scrollDecided)return;w.touch.scrollDecided=!0;const n=function(t){let e="auto";const n=b(t);for(let t,o=0;o<n.length;o++)if(t=n[o],t[r]){e=t[r];break}return e}(t);let o=!1;const i=Math.abs(w.touch.x-e.clientX),s=Math.abs(w.touch.y-e.clientY);t.cancelable&&("none"===n?o=!0:"pan-x"===n?o=s>i:"pan-y"===n&&(o=i>s)),o?t.preventDefault():X("track")}}(t)}const i=t[u];if(!i.skip){for(let e,n=0;n<k.length;n++)e=k[n],o[e.name]&&!i[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let n,s=0;s<k.length;s++)n=k[s],o[n.name]&&!i[n.name]&&(i[n.name]=!0,n[e](t))}}function M(t,e,n){return!!x[e]&&(function(t,e,n){const i=x[e],u=i.deps,a=i.name;let h=t[c];h||(t[c]=h={});for(let e,n,o=0;o<u.length;o++)e=u[o],p&&f(e)&&"click"!==e||(n=h[e],n||(h[e]=n={_count:0}),0===n._count&&t.addEventListener(e,A,m(e)),n[a]=(n[a]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,n),i.touchAction&&function(t,e){s&&t instanceof HTMLElement&&o._3.run((()=>{t.style.touchAction=e})),t[r]=e}(t,i.touchAction)}(t,e,n),!0)}function N(t){k.push(t),t.emits.forEach((e=>{x[e]=t}))}function T(t,e,n){const o=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=n,t.dispatchEvent(o),o.defaultPrevented){const t=n.preventer||n.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function X(t){const e=function(t){for(let e,n=0;n<k.length;n++){e=k[n];for(let n,o=0;o<e.emits.length;o++)if(n=e.emits[o],n===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Y(t,e,n,o){e&&T(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:o,prevent:t=>X(t)})}function D(t,e,n){if(t.prevent)return!1;if(t.started)return!0;const o=Math.abs(t.x-e),i=Math.abs(t.y-n);return o>=5||i>=5}function L(t,e,n){if(!e)return;const o=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],s=i.x-t.x,c=i.y-t.y;let u,r=0;o&&(u=i.x-o.x,r=i.y-o.y),T(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:s,dy:c,ddx:u,ddy:r,sourceEvent:n,hover:()=>function(t,e){let n=document.elementFromPoint(t,e),o=n;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const i=o;if(o=o.shadowRoot.elementFromPoint(t,e),i===o)break;o&&(n=o)}return n}(n.clientX,n.clientY)})}function P(t,e,n){const o=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=E(n||e);!s||v[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(i)||o<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=E(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const n=e.getBoundingClientRect(),o=t.pageX,i=t.pageY;return!(o>=n.left&&o<=n.right&&i>=n.top&&i<=n.bottom)}return!1}(e))&&(t.prevent||T(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}N({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){_(this.info)},mousedown(t){if(!y(t))return;const e=E(t),n=this;g(this.info,(t=>{y(t)||(Y("up",e,t),_(n.info))}),(t=>{y(t)&&Y("up",e,t),_(n.info)})),Y("down",e,t)},touchstart(t){Y("down",E(t),t.changedTouches[0],t)},touchend(t){Y("up",E(t),t.changedTouches[0],t)}}),N({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,_(this.info)},mousedown(t){if(!y(t))return;const e=E(t),n=this,o=t=>{const o=t.clientX,i=t.clientY;D(n.info,o,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&X("tap"),n.info.addMove({x:o,y:i}),y(t)||(n.info.state="end",_(n.info)),e&&L(n.info,e,t),n.info.started=!0)};g(this.info,o,(t=>{n.info.started&&o(t),_(n.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=E(t),n=t.changedTouches[0],o=n.clientX,i=n.clientY;D(this.info,o,i)&&("start"===this.info.state&&X("tap"),this.info.addMove({x:o,y:i}),L(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend(t){const e=E(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),L(this.info,e,n))}}),N({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){y(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){y(t)&&P(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){P(this.info,t.changedTouches[0],t)}})}}]);
@@ -1,5 +1,5 @@
1
- /*! For license information please see 9423.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[9423,7541,63],{17078:(t,e,o)=>{o.d(e,{z:()=>m});var a=o(3354),r=o(16155),i=o(52807),s=o(12521),n=o(34463),l=o(46570);const d=o(9392).iv`
1
+ /*! For license information please see 1053.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1053,7607,7212],{86292:(t,e,o)=>{o.d(e,{$:()=>m});var a=o(33791),r=o(988),i=o(38735),s=o(31846),n=o(58074),l=o(6052);const d=o(16684).AH`
3
3
  :host {
4
4
  display: inline-block;
5
5
  position: relative;
@@ -59,7 +59,7 @@
59
59
  outline-color: GrayText;
60
60
  }
61
61
  }
62
- `;var u=o(61224),h=o(21360),c=o(58298);const p=t=>class extends((0,u.D)((0,c.N)((0,h.W)(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};(0,l.hC)("vaadin-button",d,{moduleId:"vaadin-button-styles"});class m extends(p((0,s.S)((0,l.Tb)((0,r.k)(a.H3))))){static get is(){return"vaadin-button"}static get template(){return a.dy`
62
+ `;var u=o(1033),c=o(98751),h=o(1886);const p=t=>class extends((0,u.e)((0,h.l)((0,c.y)(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};(0,l.SF)("vaadin-button",d,{moduleId:"vaadin-button-styles"});class m extends(p((0,s.q)((0,l.cp)((0,r.w)(a.Pu))))){static get is(){return"vaadin-button"}static get template(){return a.qy`
63
63
  <div class="vaadin-button-container">
64
64
  <span part="prefix" aria-hidden="true">
65
65
  <slot name="prefix"></slot>
@@ -72,7 +72,7 @@
72
72
  </span>
73
73
  </div>
74
74
  <slot name="tooltip"></slot>
75
- `}ready(){super.ready(),this._tooltipController=new n.f(this),this.addController(this._tooltipController)}}(0,i.M)(m)},74750:(t,e,o)=>{o.d(e,{L:()=>r}),o(51195),o(79098),o(29416),o(29849),o(34173);var a=o(46570);const r=a.iv`
75
+ `}ready(){super.ready(),this._tooltipController=new n.I(this),this.addController(this._tooltipController)}}(0,i.X)(m)},83961:(t,e,o)=>{o.d(e,{x:()=>r}),o(92541),o(66206),o(1159),o(23395),o(41745);var a=o(6052);const r=a.AH`
76
76
  :host {
77
77
  /* Sizing */
78
78
  --lumo-button-size: var(--lumo-size-m);
@@ -335,7 +335,7 @@
335
335
  margin-left: 0;
336
336
  margin-right: 0;
337
337
  }
338
- `;(0,a.hC)("vaadin-button",r,{moduleId:"lumo-button"})},71721:(t,e,o)=>{o(74750),o(17078)},47583:(t,e,o)=>{o(48900),o(53891),o(21578),o(71189);var a=o(83208),r=o(46570);const i=r.iv`
338
+ `;(0,a.SF)("vaadin-button",r,{moduleId:"lumo-button"})},97745:(t,e,o)=>{o(83961),o(86292)},31111:(t,e,o)=>{o(46165),o(14968),o(37451),o(72815);var a=o(90500),r=o(6052);const i=r.AH`
339
339
  :host {
340
340
  outline: none;
341
341
  }
@@ -343,7 +343,7 @@
343
343
  [part='toggle-button']::before {
344
344
  content: var(--lumo-icons-dropdown);
345
345
  }
346
- `;(0,r.hC)("vaadin-combo-box",[a.J,i],{moduleId:"lumo-combo-box"}),o(13553);var s=o(3354),n=o(52807),l=o(51914),d=o(45115);class u extends((0,d.O)((0,r.Tb)((0,l.U)(s.H3)))){static get template(){return s.dy`
346
+ `;(0,r.SF)("vaadin-combo-box",[a.k,i],{moduleId:"lumo-combo-box"}),o(9077);var s=o(33791),n=o(38735),l=o(35717),d=o(10187);class u extends((0,d.y)((0,r.cp)((0,l.v)(s.Pu)))){static get template(){return s.qy`
347
347
  <style>
348
348
  :host {
349
349
  display: block;
@@ -357,7 +357,7 @@
357
357
  <div part="content">
358
358
  <slot></slot>
359
359
  </div>
360
- `}static get is(){return"vaadin-combo-box-item"}}(0,n.M)(u);var h=o(14932),c=o(6196),p=o(43515);const m=r.iv`
360
+ `}static get is(){return"vaadin-combo-box-item"}}(0,n.X)(u);var c=o(21380),h=o(52718),p=o(75482);const m=r.AH`
361
361
  #overlay {
362
362
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
363
363
  }
@@ -367,13 +367,13 @@
367
367
  flex-direction: column;
368
368
  height: 100%;
369
369
  }
370
- `;(0,r.hC)("vaadin-combo-box-overlay",[c.r,m],{moduleId:"vaadin-combo-box-overlay-styles"});class v extends((0,p.H)((0,h.F)((0,l.U)((0,r.Tb)(s.H3))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return s.dy`
370
+ `;(0,r.SF)("vaadin-combo-box-overlay",[h.B,m],{moduleId:"vaadin-combo-box-overlay-styles"});class v extends((0,p.p)((0,c.c)((0,l.v)((0,r.cp)(s.Pu))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return s.qy`
371
371
  <div id="backdrop" part="backdrop" hidden></div>
372
372
  <div part="overlay" id="overlay">
373
373
  <div part="loader"></div>
374
374
  <div part="content" id="content"><slot></slot></div>
375
375
  </div>
376
- `}}(0,n.M)(v);var b=o(16557);class g extends((0,b.t)(s.H3)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return s.dy`
376
+ `}}(0,n.X)(v);var b=o(44998);class g extends((0,b.N)(s.Pu)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return s.qy`
377
377
  <style>
378
378
  :host {
379
379
  display: block;
@@ -400,7 +400,7 @@
400
400
  <div id="selector">
401
401
  <slot></slot>
402
402
  </div>
403
- `}}(0,n.M)(g);var f=o(12521),y=o(34463),x=o(73406),_=o(73208),w=o(46729),k=o(39091);const z=t=>class extends((0,k.t)(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};var C=o(62743),S=o(99031),I=o(66599);(0,r.hC)("vaadin-combo-box",C.J,{moduleId:"vaadin-combo-box-styles"});class T extends((0,S.Y)((0,I.t)(z((0,x.L)((0,r.Tb)((0,f.S)(s.H3))))))){static get is(){return"vaadin-combo-box"}static get template(){return s.dy`
403
+ `}}(0,n.X)(g);var f=o(31846),y=o(58074),x=o(32318),_=o(15408),w=o(3550),k=o(3410);const z=t=>class extends((0,k.U)(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};var C=o(89385),S=o(5792),I=o(93131);(0,r.SF)("vaadin-combo-box",C.k,{moduleId:"vaadin-combo-box-styles"});class F extends((0,S.K)((0,I.x)(z((0,x.R)((0,r.cp)((0,f.q)(s.Pu))))))){static get is(){return"vaadin-combo-box"}static get template(){return s.qy`
404
404
  <style>
405
405
  :host([opened]) {
406
406
  pointer-events: auto;
@@ -446,7 +446,7 @@
446
446
  ></vaadin-combo-box-overlay>
447
447
 
448
448
  <slot name="tooltip"></slot>
449
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new _.b(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new w.v(this.inputElement,this._labelController)),this._tooltipController=new y.f(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}(0,n.M)(T)},99381:(t,e,o)=>{o(51195),o(79098),o(29416),o(34173);var a=o(82982),r=o(1251),i=o(46570);const s=i.iv`
449
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new _.f(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new w.q(this.inputElement,this._labelController)),this._tooltipController=new y.I(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}(0,n.X)(F)},61228:(t,e,o)=>{o(92541),o(66206),o(1159),o(41745);var a=o(61137),r=o(48593),i=o(6052);const s=i.AH`
450
450
  :host {
451
451
  --lumo-text-field-size: var(--lumo-size-m);
452
452
  color: var(--lumo-body-text-color);
@@ -523,7 +523,7 @@
523
523
  :host([theme~='whitespace'][has-label]) [part='label'] {
524
524
  padding-bottom: 0.5em;
525
525
  }
526
- `;(0,i.hC)("vaadin-custom-field",[r.l,a._,s],{moduleId:"lumo-custom-field"});var n=o(3354),l=o(52807),d=o(12521),u=o(21360),h=o(52628),c=o(63726),p=o(34463),m=o(17412);const v=t=>t.split("\t"),b=t=>t.join("\t"),g=t=>class extends((0,m.f)((0,u.W)((0,h.L)(t)))){static get properties(){return{name:String,value:{type:String,observer:"__valueChanged",notify:!0},inputs:{type:Array,readOnly:!0},formatValue:{type:Function},parseValue:{type:Function}}}ready(){super.ready(),this.setAttribute("role","group"),this.ariaTarget=this,this.__childrenObserver=new MutationObserver((()=>{this.__setInputsFromSlot()})),this.__setInputsFromSlot(),this.$.slot.addEventListener("slotchange",(()=>{this.__setInputsFromSlot(),(0,c.xX)(this.$.slot).filter((t=>!this.__isInput(t))).forEach((t=>{this.__childrenObserver.observe(t,{childList:!0})}))})),this._tooltipController=new p.f(this),this.addController(this._tooltipController),this._tooltipController.setShouldShow((t=>!(t.inputs||[]).some((t=>t.opened))))}focus(){this.inputs&&this.inputs[0]&&this.inputs[0].focus()}_setFocused(t){super._setFocused(t),t||this.validate()}_shouldRemoveFocus(t){const{relatedTarget:e}=t;return!this.inputs.some((t=>e===(t.focusElement||t)))}checkValidity(){return!(this.inputs.filter((t=>!(t.validate||t.checkValidity).call(t))).length||this.required&&!this.value.trim())}_onKeyDown(t){"Tab"===t.key&&(this.inputs.indexOf(t.target)<this.inputs.length-1&&!t.shiftKey||this.inputs.indexOf(t.target)>0&&t.shiftKey?this.dispatchEvent(new CustomEvent("internal-tab")):this.__setValue())}_onInputChange(t){t.stopPropagation(),this.__setValue(),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))}__setValue(){this.__settingValue=!0;const t=this.formatValue||b;this.value=t.apply(this,[this.inputs.map((t=>t.value))]),this.__settingValue=!1}__isInput(t){return!("input"===t.getAttribute("slot")||"textarea"===t.getAttribute("slot"))&&(t.validate||t.checkValidity)}__getInputsFromSlot(){return(0,c.xX)(this.$.slot).filter((t=>this.__isInput(t)))}__setInputsFromSlot(){this._setInputs(this.__getInputsFromSlot()),this.__setValue()}__toggleHasValue(t){this.toggleAttribute("has-value",null!==t&&""!==t.trim())}__valueChanged(t,e){if(this.__settingValue||!this.inputs)return;this.__toggleHasValue(t);const o=(this.parseValue||v).apply(this,[t]);o&&0!==o.length?(this.inputs.forEach(((t,e)=>{t.value=o[e]})),void 0!==e&&this.validate()):console.warn("Value parser has not provided values array")}},f=o(9392).iv`
526
+ `;(0,i.SF)("vaadin-custom-field",[r.Q,a.d,s],{moduleId:"lumo-custom-field"});var n=o(33791),l=o(38735),d=o(31846),u=o(98751),c=o(67766),h=o(55938),p=o(58074),m=o(39550);const v=t=>t.split("\t"),b=t=>t.join("\t"),g=t=>class extends((0,m.Y)((0,u.y)((0,c.f)(t)))){static get properties(){return{name:String,value:{type:String,observer:"__valueChanged",notify:!0},inputs:{type:Array,readOnly:!0},formatValue:{type:Function},parseValue:{type:Function}}}ready(){super.ready(),this.setAttribute("role","group"),this.ariaTarget=this,this.__childrenObserver=new MutationObserver((()=>{this.__setInputsFromSlot()})),this.__setInputsFromSlot(),this.$.slot.addEventListener("slotchange",(()=>{this.__setInputsFromSlot(),(0,h.J$)(this.$.slot).filter((t=>!this.__isInput(t))).forEach((t=>{this.__childrenObserver.observe(t,{childList:!0})}))})),this._tooltipController=new p.I(this),this.addController(this._tooltipController),this._tooltipController.setShouldShow((t=>!(t.inputs||[]).some((t=>t.opened))))}focus(){this.inputs&&this.inputs[0]&&this.inputs[0].focus()}_setFocused(t){super._setFocused(t),t||this.validate()}_shouldRemoveFocus(t){const{relatedTarget:e}=t;return!this.inputs.some((t=>e===(t.focusElement||t)))}checkValidity(){return!(this.inputs.filter((t=>!(t.validate||t.checkValidity).call(t))).length||this.required&&!this.value.trim())}_onKeyDown(t){"Tab"===t.key&&(this.inputs.indexOf(t.target)<this.inputs.length-1&&!t.shiftKey||this.inputs.indexOf(t.target)>0&&t.shiftKey?this.dispatchEvent(new CustomEvent("internal-tab")):this.__setValue())}_onInputChange(t){t.stopPropagation(),this.__setValue(),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))}__setValue(){this.__settingValue=!0;const t=this.formatValue||b;this.value=t.apply(this,[this.inputs.map((t=>t.value))]),this.__settingValue=!1}__isInput(t){return!("input"===t.getAttribute("slot")||"textarea"===t.getAttribute("slot"))&&(t.validate||t.checkValidity)}__getInputsFromSlot(){return(0,h.J$)(this.$.slot).filter((t=>this.__isInput(t)))}__setInputsFromSlot(){this._setInputs(this.__getInputsFromSlot()),this.__setValue()}__toggleHasValue(t){this.toggleAttribute("has-value",null!==t&&""!==t.trim())}__valueChanged(t,e){if(this.__settingValue||!this.inputs)return;this.__toggleHasValue(t);const o=(this.parseValue||v).apply(this,[t]);o&&0!==o.length?(this.inputs.forEach(((t,e)=>{t.value=o[e]})),void 0!==e&&this.validate()):console.warn("Value parser has not provided values array")}},f=o(16684).AH`
527
527
  :host {
528
528
  display: inline-flex;
529
529
  }
@@ -549,7 +549,7 @@
549
549
  .inputs-wrapper {
550
550
  flex: none;
551
551
  }
552
- `;(0,i.hC)("vaadin-custom-field",f,{moduleId:"vaadin-custom-field-styles"});class y extends(g((0,i.Tb)((0,d.S)(n.H3)))){static get is(){return"vaadin-custom-field"}static get template(){return n.dy`
552
+ `;(0,i.SF)("vaadin-custom-field",f,{moduleId:"vaadin-custom-field-styles"});class y extends(g((0,i.cp)((0,d.q)(n.Pu)))){static get is(){return"vaadin-custom-field"}static get template(){return n.qy`
553
553
  <div class="vaadin-custom-field-container">
554
554
  <div part="label" on-click="focus">
555
555
  <slot name="label"></slot>
@@ -570,7 +570,7 @@
570
570
  </div>
571
571
 
572
572
  <slot name="tooltip"></slot>
573
- `}}(0,l.M)(y)},20422:(t,e,o)=>{o.d(e,{j:()=>r});var a=o(73406);const r=t=>class extends((0,a.L)(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}},18005:(t,e,o)=>{o.d(e,{n:()=>p}),o(13553);var a=o(3354),r=o(52807),i=o(12521),s=o(34463),n=o(62743),l=o(46570),d=o(73208),u=o(20422),h=o(46729);const c=t=>class extends((0,u.j)(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new d.b(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new h.v(this.inputElement,this._labelController))}};(0,l.hC)("vaadin-text-field",n.J,{moduleId:"vaadin-text-field-styles"});class p extends(c((0,l.Tb)((0,i.S)(a.H3)))){static get is(){return"vaadin-text-field"}static get template(){return a.dy`
573
+ `}}(0,l.X)(y)},53430:(t,e,o)=>{o.d(e,{a:()=>r});var a=o(32318);const r=t=>class extends((0,a.R)(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}},34068:(t,e,o)=>{o.d(e,{A:()=>p}),o(9077);var a=o(33791),r=o(38735),i=o(31846),s=o(58074),n=o(89385),l=o(6052),d=o(15408),u=o(53430),c=o(3550);const h=t=>class extends((0,u.a)(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new d.f(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new c.q(this.inputElement,this._labelController))}};(0,l.SF)("vaadin-text-field",n.k,{moduleId:"vaadin-text-field-styles"});class p extends(h((0,l.cp)((0,i.q)(a.Pu)))){static get is(){return"vaadin-text-field"}static get template(){return a.qy`
574
574
  <style>
575
575
  [part='input-field'] {
576
576
  flex-grow: 0;
@@ -605,4 +605,4 @@
605
605
  </div>
606
606
  </div>
607
607
  <slot name="tooltip"></slot>
608
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new s.f(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,r.M)(p)},58725:(t,e,o)=>{o(21578);var a=o(83208);(0,o(46570).hC)("vaadin-text-field",a.J,{moduleId:"lumo-text-field-styles"}),o(18005)},79789:(t,e,o)=>{o(58725),o(18005)}}]);
608
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new s.I(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,r.X)(p)},70297:(t,e,o)=>{o(37451);var a=o(90500);(0,o(6052).SF)("vaadin-text-field",a.k,{moduleId:"lumo-text-field-styles"}),o(34068)},39542:(t,e,o)=>{o(70297),o(34068)}}]);
@@ -0,0 +1,352 @@
1
+ /*! For license information please see 1414.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1414],{98751:(t,e,o)=>{o.d(e,{y:()=>s});var i=o(85297),n=o(90075);const s=(0,i.y)((t=>class extends t{get _keyboardActive(){return(0,n.aJ)()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}}))},90075:(t,e,o)=>{o.d(e,{Qj:()=>d,aJ:()=>s,dw:()=>n,iq:()=>u,n8:()=>h});let i=!1;function n(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function s(){return i}function a(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const o=window.getComputedStyle(t);return"hidden"===o.visibility||"none"===o.display}function r(t,e){const o=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===o||0===i?i>o:o>i}function l(t){const e=t.length;if(e<2)return t;const o=Math.ceil(e/2);return function(t,e){const o=[];for(;t.length>0&&e.length>0;)r(t[0],e[0])?o.push(e.shift()):o.push(t.shift());return o.concat(t,e)}(l(t.slice(0,o)),l(t.slice(o)))}function h(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||a(t)}function d(t){return t.getRootNode().activeElement===t}function _(t,e){if(t.nodeType!==Node.ELEMENT_NODE||a(t))return!1;const o=t,i=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(o);let n=i>0;i>=0&&e.push(o);let s=[];return s="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...s].forEach((t=>{n=_(t,e)||n})),n}function u(t){const e=[];return _(t,e)?l(e):e}window.addEventListener("keydown",(()=>{i=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{i=!1}),{capture:!0})},815:(t,e,o)=>{o(92541),o(23395),o(41745);var i=o(26245),n=o(6052);const s=n.AH`
3
+ :host {
4
+ --vaadin-tooltip-offset-top: var(--lumo-space-xs);
5
+ --vaadin-tooltip-offset-bottom: var(--lumo-space-xs);
6
+ --vaadin-tooltip-offset-start: var(--lumo-space-xs);
7
+ --vaadin-tooltip-offset-end: var(--lumo-space-xs);
8
+ }
9
+
10
+ [part='overlay'] {
11
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
12
+ color: var(--lumo-body-text-color);
13
+ font-size: var(--lumo-font-size-xs);
14
+ line-height: var(--lumo-line-height-s);
15
+ }
16
+
17
+ [part='content'] {
18
+ padding: var(--lumo-space-xs) var(--lumo-space-s);
19
+ }
20
+ `;(0,n.SF)("vaadin-tooltip-overlay",[i.L,s],{moduleId:"lumo-tooltip-overlay"});var a=o(33791),r=o(38735),l=o(35717),h=o(52718),d=o(21380),_=o(10331);const u=t=>class extends((0,_.t)((0,d.c)(t))){static get properties(){return{position:{type:String,reflectToAttribute:!0}}}requestContentUpdate(){if(super.requestContentUpdate(),this.toggleAttribute("hidden",""===this.textContent.trim()),this.positionTarget&&this.owner){const t=getComputedStyle(this.owner);["top","bottom","start","end"].forEach((e=>{this.style.setProperty(`--vaadin-tooltip-offset-${e}`,t.getPropertyValue(`--vaadin-tooltip-offset-${e}`))}))}}_updatePosition(){if(super._updatePosition(),this.positionTarget){if("bottom"===this.position||"top"===this.position){const t=this.positionTarget.getBoundingClientRect(),e=this.$.overlay.getBoundingClientRect(),o=t.width/2-e.width/2;if(this.style.left){const t=e.left+o;t>0&&(this.style.left=`${t}px`)}if(this.style.right){const t=parseFloat(this.style.right)+o;t>0&&(this.style.right=`${t}px`)}}if("start"===this.position||"end"===this.position){const t=this.positionTarget.getBoundingClientRect(),e=this.$.overlay.getBoundingClientRect(),o=t.height/2-e.height/2;this.style.top=`${e.top+o}px`}}}},c=n.AH`
21
+ :host {
22
+ z-index: 1100;
23
+ }
24
+
25
+ [part='overlay'] {
26
+ max-width: 40ch;
27
+ }
28
+
29
+ :host([position^='top'][top-aligned]) [part='overlay'],
30
+ :host([position^='bottom'][top-aligned]) [part='overlay'] {
31
+ margin-top: var(--vaadin-tooltip-offset-top, 0);
32
+ }
33
+
34
+ :host([position^='top'][bottom-aligned]) [part='overlay'],
35
+ :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
36
+ margin-bottom: var(--vaadin-tooltip-offset-bottom, 0);
37
+ }
38
+
39
+ :host([position^='start'][start-aligned]) [part='overlay'],
40
+ :host([position^='end'][start-aligned]) [part='overlay'] {
41
+ margin-inline-start: var(--vaadin-tooltip-offset-start, 0);
42
+ }
43
+
44
+ :host([position^='start'][end-aligned]) [part='overlay'],
45
+ :host([position^='end'][end-aligned]) [part='overlay'] {
46
+ margin-inline-end: var(--vaadin-tooltip-offset-end, 0);
47
+ }
48
+
49
+ @media (forced-colors: active) {
50
+ [part='overlay'] {
51
+ outline: 1px dashed;
52
+ }
53
+ }
54
+ `;(0,n.SF)("vaadin-tooltip-overlay",[h.B,c],{moduleId:"vaadin-tooltip-overlay-styles"});class p extends(u((0,l.v)((0,n.cp)(a.Pu)))){static get is(){return"vaadin-tooltip-overlay"}static get template(){return a.qy`
55
+ <div id="backdrop" part="backdrop" hidden></div>
56
+ <div part="overlay" id="overlay">
57
+ <div part="content" id="content"><slot></slot></div>
58
+ </div>
59
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}}(0,r.X)(p);var m=o(988),v=o(31846),g=o(3843),A=o(90075),b=o(81510),f=o(27111),y=o(55938),x=o(55231),C=o(32065),w=o(78065);const E=500;let T=E,z=E,O=E;const B=new Set;let S=!1,D=null,L=null;class I{constructor(t){this.host=t}get openedProp(){return this.host.manual?"opened":"_autoOpened"}get focusDelay(){const t=this.host;return null!=t.focusDelay&&t.focusDelay>0?t.focusDelay:T}get hoverDelay(){const t=this.host;return null!=t.hoverDelay&&t.hoverDelay>0?t.hoverDelay:z}get hideDelay(){const t=this.host;return null!=t.hideDelay&&t.hideDelay>0?t.hideDelay:O}get isClosing(){return B.has(this.host)}open(t={immediate:!1}){const{immediate:e,hover:o,focus:i}=t,n=o&&this.hoverDelay>0,s=i&&this.focusDelay>0;e||!n&&!s||this.__closeTimeout?this.__showTooltip():this.__warmupTooltip(s)}close(t){!t&&this.hideDelay>0?this.__scheduleClose():(this.__abortClose(),this._setOpened(!1)),this.__abortWarmUp(),S&&(this.__abortCooldown(),this.__scheduleCooldown())}_isOpened(){return this.host[this.openedProp]}_setOpened(t){this.host[this.openedProp]=t}__flushClosingTooltips(){B.forEach((t=>{t._stateController.close(!0),B.delete(t)}))}__showTooltip(){this.__abortClose(),this.__flushClosingTooltips(),this._setOpened(!0),S=!0,this.__abortWarmUp(),this.__abortCooldown()}__warmupTooltip(t){this._isOpened()||(S?this.__showTooltip():this.__scheduleWarmUp(t))}__abortClose(){this.__closeTimeout&&(clearTimeout(this.__closeTimeout),this.__closeTimeout=null)}__abortCooldown(){L&&(clearTimeout(L),L=null)}__abortWarmUp(){D&&(clearTimeout(D),D=null)}__scheduleClose(){this._isOpened()&&(B.add(this.host),this.__closeTimeout=setTimeout((()=>{B.delete(this.host),this.__closeTimeout=null,this._setOpened(!1)}),this.hideDelay))}__scheduleCooldown(){L=setTimeout((()=>{L=null,S=!1}),this.hideDelay)}__scheduleWarmUp(t){const e=t?this.focusDelay:this.hoverDelay;D=setTimeout((()=>{D=null,S=!0,this.__showTooltip()}),e)}}const M=t=>class extends((0,x.i)(t)){static get properties(){return{ariaTarget:{type:Object},context:{type:Object,value:()=>({})},focusDelay:{type:Number},for:{type:String,observer:"__forChanged"},generator:{type:Object},hideDelay:{type:Number},hoverDelay:{type:Number},manual:{type:Boolean,value:!1,sync:!0},opened:{type:Boolean,value:!1,sync:!0},position:{type:String},shouldShow:{type:Object,value:()=>(t,e)=>!0},target:{type:Object,observer:"__targetChanged"},text:{type:String,observer:"__textChanged"},_autoOpened:{type:Boolean,observer:"__autoOpenedChanged",sync:!0},_effectiveAriaTarget:{type:Object,computed:"__computeAriaTarget(ariaTarget, target)",observer:"__effectiveAriaTargetChanged"},__effectivePosition:{type:String,computed:"__computePosition(position, _position)"},__isTargetHidden:{type:Boolean,value:!1},_isConnected:{type:Boolean,sync:!0},_position:{type:String,value:"bottom"},_srLabel:{type:Object},_overlayContent:{type:String}}}static get observers(){return["__generatorChanged(_overlayElement, generator, context)","__updateSrLabelText(_srLabel, _overlayContent)"]}static setDefaultFocusDelay(t){T=null!=t&&t>=0?t:E}static setDefaultHideDelay(t){O=null!=t&&t>=0?t:E}static setDefaultHoverDelay(t){z=null!=t&&t>=0?t:E}constructor(){super(),this._uniqueId=`vaadin-tooltip-${(0,w.I)()}`,this._renderer=this.__tooltipRenderer.bind(this),this.__onFocusin=this.__onFocusin.bind(this),this.__onFocusout=this.__onFocusout.bind(this),this.__onMouseDown=this.__onMouseDown.bind(this),this.__onMouseEnter=this.__onMouseEnter.bind(this),this.__onMouseLeave=this.__onMouseLeave.bind(this),this.__onKeyDown=this.__onKeyDown.bind(this),this.__onOverlayOpen=this.__onOverlayOpen.bind(this),this.__targetVisibilityObserver=new IntersectionObserver((t=>{t.forEach((t=>this.__onTargetVisibilityChange(t.isIntersecting)))}),{threshold:0}),this._stateController=new I(this)}connectedCallback(){super.connectedCallback(),this._isConnected=!0,document.body.addEventListener("vaadin-overlay-open",this.__onOverlayOpen)}disconnectedCallback(){super.disconnectedCallback(),this._autoOpened&&this._stateController.close(!0),this._isConnected=!1,document.body.removeEventListener("vaadin-overlay-open",this.__onOverlayOpen)}ready(){super.ready(),this._srLabelController=new C.r(this,"sr-label","div",{initializer:t=>{t.id=this._uniqueId,t.setAttribute("role","tooltip"),this._srLabel=t}}),this.addController(this._srLabelController)}__computeHorizontalAlign(t){return["top-end","bottom-end","start-top","start","start-bottom"].includes(t)?"end":"start"}__computeNoHorizontalOverlap(t){return["start-top","start","start-bottom","end-top","end","end-bottom"].includes(t)}__computeNoVerticalOverlap(t){return["top-start","top-end","top","bottom-start","bottom","bottom-end"].includes(t)}__computeVerticalAlign(t){return["top-start","top-end","top","start-bottom","end-bottom"].includes(t)?"bottom":"top"}__computeOpened(t,e,o,i){return i&&(t?e:o)}__computePosition(t,e){return t||e}__autoOpenedChanged(t,e){t?document.addEventListener("keydown",this.__onKeyDown,!0):e&&document.removeEventListener("keydown",this.__onKeyDown,!0)}__forChanged(t){t&&(this.__setTargetByIdDebouncer=f.aq.debounce(this.__setTargetByIdDebouncer,b._3,(()=>this.__setTargetById(t))))}__setTargetById(t){if(!this.isConnected)return;const e=this.getRootNode().getElementById(t);e?this.target=e:console.warn(`No element with id="${t}" found to show tooltip.`)}__targetChanged(t,e){e&&(e.removeEventListener("mouseenter",this.__onMouseEnter),e.removeEventListener("mouseleave",this.__onMouseLeave),e.removeEventListener("focusin",this.__onFocusin),e.removeEventListener("focusout",this.__onFocusout),e.removeEventListener("mousedown",this.__onMouseDown),this.__targetVisibilityObserver.unobserve(e)),t&&(t.addEventListener("mouseenter",this.__onMouseEnter),t.addEventListener("mouseleave",this.__onMouseLeave),t.addEventListener("focusin",this.__onFocusin),t.addEventListener("focusout",this.__onFocusout),t.addEventListener("mousedown",this.__onMouseDown),requestAnimationFrame((()=>{this.__targetVisibilityObserver.observe(t)})))}__onFocusin(t){this.manual||(0,A.aJ)()&&(this.target.contains(t.relatedTarget)||this.__isShouldShow()&&(this.__focusInside=!0,this.__isTargetHidden||this.__hoverInside&&this._autoOpened||this._stateController.open({focus:!0})))}__onFocusout(t){this.manual||this.target.contains(t.relatedTarget)||(this.__focusInside=!1,this.__hoverInside||this._stateController.close(!0))}__onKeyDown(t){"Escape"===t.key&&(t.stopPropagation(),this._stateController.close(!0))}__onMouseDown(){this._stateController.close(!0)}__onMouseEnter(){this.manual||this.__isShouldShow()&&(this.__hoverInside||(this.__hoverInside=!0,this.__isTargetHidden||this.__focusInside&&this._autoOpened||this._stateController.open({hover:!0})))}__onMouseLeave(t){t.relatedTarget!==this._overlayElement&&this.__handleMouseLeave()}__onOverlayMouseEnter(){this._stateController.isClosing&&this._stateController.open({immediate:!0})}__onOverlayMouseLeave(t){t.relatedTarget!==this.target&&this.__handleMouseLeave()}__handleMouseLeave(){this.manual||(this.__hoverInside=!1,this.__focusInside||this._stateController.close())}__onOverlayOpen(){this.manual||this._overlayElement.opened&&!this._overlayElement._last&&this._stateController.close(!0)}__onTargetVisibilityChange(t){const e=this.__isTargetHidden;this.__isTargetHidden=!t,e&&t&&(this.__focusInside||this.__hoverInside)?this._stateController.open({immediate:!0}):!t&&this._autoOpened&&this._stateController.close(!0)}__isShouldShow(){return"function"!=typeof this.shouldShow||!0===this.shouldShow(this.target,this.context)}__textChanged(t,e){this._overlayElement&&(t||e)&&this._overlayElement.requestContentUpdate()}__tooltipRenderer(t){t.textContent="function"==typeof this.generator?this.generator(this.context):this.text,this._overlayContent=t.textContent}__computeAriaTarget(t,e){return(Array.isArray(t)?t.some((t=>t&&t.nodeType===Node.ELEMENT_NODE)):t)?t:e}__effectiveAriaTargetChanged(t,e){e&&[e].flat().forEach((t=>{(0,y.Wr)(t,"aria-describedby",this._uniqueId)})),t&&[t].flat().forEach((t=>{(0,y.iA)(t,"aria-describedby",this._uniqueId)}))}__generatorChanged(t,e,o){t&&(e===this.__oldTextGenerator&&o===this.__oldContext||t.requestContentUpdate(),this.__oldTextGenerator=e,this.__oldContext=o)}__updateSrLabelText(t,e){t&&(t.textContent=e)}};class P extends(M((0,g._)((0,v.q)((0,m.w)(a.Pu))))){static get is(){return"vaadin-tooltip"}static get template(){return a.qy`
60
+ <style>
61
+ :host {
62
+ display: none;
63
+ }
64
+ </style>
65
+ <vaadin-tooltip-overlay
66
+ renderer="[[_renderer]]"
67
+ theme$="[[_theme]]"
68
+ opened="[[__computeOpened(manual, opened, _autoOpened, _isConnected)]]"
69
+ position-target="[[target]]"
70
+ position="[[__effectivePosition]]"
71
+ no-horizontal-overlap$="[[__computeNoHorizontalOverlap(__effectivePosition)]]"
72
+ no-vertical-overlap$="[[__computeNoVerticalOverlap(__effectivePosition)]]"
73
+ horizontal-align="[[__computeHorizontalAlign(__effectivePosition)]]"
74
+ vertical-align="[[__computeVerticalAlign(__effectivePosition)]]"
75
+ on-mouseenter="__onOverlayMouseEnter"
76
+ on-mouseleave="__onOverlayMouseLeave"
77
+ modeless
78
+ ></vaadin-tooltip-overlay>
79
+
80
+ <slot name="sr-label"></slot>
81
+ `}}(0,r.X)(P),o(66206),o(1159),o(56830);var k=o(35543);const Y=n.AH`
82
+ :host {
83
+ --vaadin-user-color-0: #df0b92;
84
+ --vaadin-user-color-1: #650acc;
85
+ --vaadin-user-color-2: #097faa;
86
+ --vaadin-user-color-3: #ad6200;
87
+ --vaadin-user-color-4: #bf16f3;
88
+ --vaadin-user-color-5: #084391;
89
+ --vaadin-user-color-6: #078836;
90
+ }
91
+
92
+ [theme~='dark'] {
93
+ --vaadin-user-color-0: #ff66c7;
94
+ --vaadin-user-color-1: #9d8aff;
95
+ --vaadin-user-color-2: #8aff66;
96
+ --vaadin-user-color-3: #ffbd66;
97
+ --vaadin-user-color-4: #dc6bff;
98
+ --vaadin-user-color-5: #66fffa;
99
+ --vaadin-user-color-6: #e6ff66;
100
+ }
101
+ `;(0,k.q)("user-color-props",Y);const V=document.createElement("style");V.textContent="html { --vaadin-avatar-size: var(--lumo-size-m); }",document.head.appendChild(V),(0,n.SF)("vaadin-avatar",n.AH`
102
+ :host {
103
+ color: var(--lumo-secondary-text-color);
104
+ background-color: var(--lumo-contrast-10pct);
105
+ border-radius: 50%;
106
+ outline: none;
107
+ cursor: default;
108
+ user-select: none;
109
+ -webkit-tap-highlight-color: transparent;
110
+ -webkit-font-smoothing: antialiased;
111
+ -moz-osx-font-smoothing: grayscale;
112
+ }
113
+
114
+ :host([has-color-index]) {
115
+ color: var(--lumo-base-color);
116
+ }
117
+
118
+ :host([focus-ring]) {
119
+ border-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
120
+ }
121
+
122
+ [part='icon'],
123
+ [part='abbr'] {
124
+ fill: currentColor;
125
+ }
126
+
127
+ [part='abbr'] {
128
+ font-family: var(--lumo-font-family);
129
+ font-size: 2.4375em;
130
+ font-weight: 500;
131
+ }
132
+
133
+ :host([theme~='xlarge']) [part='abbr'] {
134
+ font-size: 2.5em;
135
+ }
136
+
137
+ :host([theme~='large']) [part='abbr'] {
138
+ font-size: 2.375em;
139
+ }
140
+
141
+ :host([theme~='small']) [part='abbr'] {
142
+ font-size: 2.75em;
143
+ }
144
+
145
+ :host([theme~='xsmall']) [part='abbr'] {
146
+ font-size: 3em;
147
+ }
148
+
149
+ :host([theme~='xlarge']) {
150
+ --vaadin-avatar-size: var(--lumo-size-xl);
151
+ }
152
+
153
+ :host([theme~='large']) {
154
+ --vaadin-avatar-size: var(--lumo-size-l);
155
+ }
156
+
157
+ :host([theme~='small']) {
158
+ --vaadin-avatar-size: var(--lumo-size-s);
159
+ }
160
+
161
+ :host([theme~='xsmall']) {
162
+ --vaadin-avatar-size: var(--lumo-size-xs);
163
+ }
164
+ `,{moduleId:"lumo-avatar"});const H=document.createElement("template");H.innerHTML="\n <style>\n @font-face {\n font-family: 'vaadin-avatar-icons';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAQAAAsAAAAABnwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUmEY21hcAAAAYgAAABLAAABcOspwa1nbHlmAAAB1AAAAEUAAABMYO4o1WhlYWQAAAIcAAAALgAAADYYaAmGaGhlYQAAAkwAAAAdAAAAJAZsA1VobXR4AAACbAAAAAgAAAAIA+gAAGxvY2EAAAJ0AAAABgAAAAYAJgAAbWF4cAAAAnwAAAAeAAAAIAEOACFuYW1lAAACnAAAAUIAAAKavFDYrHBvc3QAAAPgAAAAHQAAAC52hGZ4eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGT8wjiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+YmQO+p/FEMUcxDANKMwIkgMADiUMJQB4nGNgYGBlYGBgBmIdIGZhYGAMYWBkAAE/oCgjWJyZgQsszsKgBFbDAhJ/xfj/P4wE8lnAJAMjG8Mo4AGTMlAeOKwgmIERADU0CX0AeJxjYGIAAmYJpkgGHgYRBgZGJT1GEztGIzlGET5GKEuU8YuSpZKSpQuI+LfLv21emz9jHJQPJP7dsUywsEiwBACG8g9CAAAAeJxjYGRgYADicIOnh+P5bb4ycDO/AIow3JZ4rIJMM0swRQIpDgYmEA8AKwgJOwAAeJxjYGRgYA76nwUkXzAAAbMEAyMDKmACAE2GAskAAAAAAAAAA+gAAAAAAAAAJgAAeJxjYGRgYGBiEAViBjCLgYELCBkY/oP5DAAKuwEwAAB4nI2Qu07DMBSG//SGaCWEhMSAGDx1QU0vYyemdmDrUDEhuamTpkriyHEj9RF4B56Bh2Bg5mmY+8d4Qh3qo9jf+c45thQAt/hGgGYFuHN7s1q4YvbHbdKD5w555LmLAZ499+hfPPfxhDfPA/p33hB0rmmG+PDcwg2+PLfpfzx3yL+eu7gPHj33MAxmnvtYB6+eB/SftZTbtBjJWlppRmmki2qlkkMmzZnKGbVWpkp1Iabh5Ex1qQplpFVbsTmKqk5m1sYiNjoXC11YlWValEbvVWTDnbXlfDyOvQ8jnaOGZGyRouCfky63/AyzFBE0fYUVFBIckLnKZTOXda15s+GZulxgihCTC2eXnC3cfFNV7BfY4Mi9eT3BjNYiZh6zRyMnLdxs050xNE3panuaiD7Ezk2VmGPMiP/1h+71/ATcWYAhAAB4nGNgYoAALgbsgImRiZGZgaW0OLWIgQEACl4B2QAAAA==) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n </style>\n",document.head.appendChild(H.content);var G=o(58074),F=o(98751);const N=t=>class extends((0,F.y)(t)){static get properties(){return{img:{type:String,reflectToAttribute:!0,observer:"__imgChanged"},abbr:{type:String,reflectToAttribute:!0},name:{type:String,reflectToAttribute:!0},colorIndex:{type:Number,observer:"__colorIndexChanged"},i18n:{type:Object,value:()=>({anonymous:"anonymous"})},withTooltip:{type:Boolean,value:!1,observer:"__withTooltipChanged"},__imgVisible:Boolean,__iconVisible:Boolean,__abbrVisible:Boolean,__tooltipNode:Object}}static get observers(){return["__imgOrAbbrOrNameChanged(img, abbr, name)","__i18nChanged(i18n)","__tooltipChanged(__tooltipNode, name, abbr)"]}ready(){super.ready(),this.__updateVisibility(),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.name||this.abbr||this.__setTooltip()}__colorIndexChanged(t){if(null!=t){const e=`--vaadin-user-color-${t}`;Boolean(getComputedStyle(document.documentElement).getPropertyValue(e))?(this.setAttribute("has-color-index",""),this.style.setProperty("--vaadin-avatar-user-color",`var(${e})`)):(this.removeAttribute("has-color-index"),console.warn(`The CSS property --vaadin-user-color-${t} is not defined`))}else this.removeAttribute("has-color-index")}__imgChanged(){this.__imgFailedToLoad=!1}__imgOrAbbrOrNameChanged(t,e,o){this.__updateVisibility(),e&&e!==this.__generatedAbbr||(this.abbr=o?this.__generatedAbbr=o.split(" ").map((t=>t.charAt(0))).join(""):void 0)}__tooltipChanged(t,e,o){t&&(o&&o!==this.__generatedAbbr?this.__setTooltip(e?`${e} (${o})`:o):this.__setTooltip(e))}__withTooltipChanged(t,e){if(t){const t=document.createElement("vaadin-tooltip");t.setAttribute("slot","tooltip"),this.appendChild(t),this.__tooltipNode=t}else e&&(this.__tooltipNode.target=null,this.__tooltipNode.remove(),this.__tooltipNode=null)}__i18nChanged(t){t&&t.anonymous&&(this.__oldAnonymous&&this.__tooltipNode&&this.__tooltipNode.text===this.__oldAnonymous&&this.__setTooltip(),this.__oldAnonymous=t.anonymous)}__updateVisibility(){this.__imgVisible=!!this.img&&!this.__imgFailedToLoad,this.__abbrVisible=!this.__imgVisible&&!!this.abbr,this.__iconVisible=!this.__imgVisible&&!this.abbr}__setTooltip(t){const e=this.__tooltipNode;e&&(e.text=t||this.i18n.anonymous)}__onImageLoadError(){this.img&&(console.warn(`<vaadin-avatar> The specified image could not be loaded: ${this.img}`),this.__imgFailedToLoad=!0,this.__updateVisibility())}},R=n.AH`
165
+ :host {
166
+ display: inline-block;
167
+ flex: none;
168
+ border-radius: 50%;
169
+ overflow: hidden;
170
+ height: var(--vaadin-avatar-size, 64px);
171
+ width: var(--vaadin-avatar-size, 64px);
172
+ border: var(--vaadin-avatar-outline-width) solid transparent;
173
+ margin: calc(var(--vaadin-avatar-outline-width) * -1);
174
+ background-clip: content-box;
175
+ --vaadin-avatar-outline-width: var(--vaadin-focus-ring-width, 2px);
176
+ }
177
+
178
+ img {
179
+ height: 100%;
180
+ width: 100%;
181
+ object-fit: cover;
182
+ }
183
+
184
+ [part='icon'] {
185
+ font-size: 5.6em;
186
+ }
187
+
188
+ [part='abbr'] {
189
+ font-size: 2.2em;
190
+ }
191
+
192
+ [part='icon'] > text {
193
+ font-family: 'vaadin-avatar-icons';
194
+ }
195
+
196
+ :host([hidden]) {
197
+ display: none !important;
198
+ }
199
+
200
+ svg[hidden] {
201
+ display: none !important;
202
+ }
203
+
204
+ :host([has-color-index]) {
205
+ position: relative;
206
+ background-color: var(--vaadin-avatar-user-color);
207
+ }
208
+
209
+ :host([has-color-index])::before {
210
+ position: absolute;
211
+ content: '';
212
+ inset: 0;
213
+ border-radius: inherit;
214
+ box-shadow: inset 0 0 0 2px var(--vaadin-avatar-user-color);
215
+ }
216
+ `;(0,n.SF)("vaadin-avatar",R,{moduleId:"vaadin-avatar-styles"});class j extends(N((0,v.q)((0,n.cp)((0,m.w)(a.Pu))))){static get template(){return a.qy`
217
+ <img hidden$="[[!__imgVisible]]" src$="[[img]]" aria-hidden="true" on-error="__onImageLoadError" />
218
+ <svg
219
+ part="icon"
220
+ hidden$="[[!__iconVisible]]"
221
+ id="avatar-icon"
222
+ viewBox="-50 -50 100 100"
223
+ preserveAspectRatio="xMidYMid meet"
224
+ aria-hidden="true"
225
+ >
226
+ <text dy=".35em" text-anchor="middle">&#xea01;</text>
227
+ </svg>
228
+ <svg
229
+ part="abbr"
230
+ hidden$="[[!__abbrVisible]]"
231
+ id="avatar-abbr"
232
+ viewBox="-50 -50 100 100"
233
+ preserveAspectRatio="xMidYMid meet"
234
+ aria-hidden="true"
235
+ >
236
+ <text dy=".35em" text-anchor="middle">[[abbr]]</text>
237
+ </svg>
238
+
239
+ <slot name="tooltip"></slot>
240
+ `}static get is(){return"vaadin-avatar"}ready(){super.ready(),this._tooltipController=new G.I(this),this.addController(this._tooltipController)}}(0,r.X)(j)},53794:(t,e,o)=>{o.d(e,{CI:()=>_,H8:()=>a,gm:()=>r,m0:()=>s,nr:()=>d,un:()=>h});const i=t=>t.test(navigator.userAgent),n=t=>t.test(navigator.platform),s=i(/Android/u),a=i(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),r=i(/Firefox/u),l=n(/^iPad/u)||n(/^Mac/u)&&navigator.maxTouchPoints>1,h=n(/^iPhone/u)||l,d=i(/^((?!chrome|android).)*safari/iu),_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},51939:(t,e,o)=>{o.d(e,{C:()=>s});var i=o(85297);const n=new WeakMap,s=(0,i.y)((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return n.has(t)||n.set(t,new Set),n.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(function(t,e){const o=document.createElement("style");o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}}))},10331:(t,e,o)=>{o.d(e,{t:()=>r});var i=o(55938);const n={start:"top",end:"bottom"},s={start:"left",end:"right"},a=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),r=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=(0,i.Dy)(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,a.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,a.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const o=this.__isRTL,i=this.__shouldAlignStartHorizontally(t,o),a=!o&&i||o&&!i;this.style.alignItems=a?"flex-start":"flex-end";const r=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,n,this,e),h=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,s,this,i);Object.assign(this.style,l,h),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(t,e){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const i=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,o,i,this.__margins,n,this.noHorizontalOverlap,s)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,o,this.__margins,i,this.noVerticalOverlap,n)}__shouldAlignStart(t,e,o,i,n,s,a){const r=o-t[s?a.end:a.start]-i[a.end],l=t[s?a.start:a.end]-i[a.start],h=n?r:l;return n===(h>(n?l:r)||h>e)}__adjustBottomProperty(t,e,o){let i;if(t===e.end){if(e.end===n.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);o>t&&this.__oldViewportHeight&&(i=o-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===s.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);o>t&&this.__oldViewportWidth&&(i=o-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,o,i,n,s){const a=s?i.start:i.end,r=s?i.end:i.start,l=parseFloat(n.style[a]||getComputedStyle(n)[a]),h=this.__adjustBottomProperty(a,i,l),d=e[s?i.start:i.end]-t[o===s?i.end:i.start],_=h?`${h}px`:`${l+d*(s?-1:1)}px`;return{[a]:_,[r]:""}}}},41745:(t,e,o)=>{o(56830);var i=o(6052),n=o(35543);const s=i.AH`
241
+ :host {
242
+ /* prettier-ignore */
243
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
244
+
245
+ /* Font sizes */
246
+ --lumo-font-size-xxs: 0.75rem;
247
+ --lumo-font-size-xs: 0.8125rem;
248
+ --lumo-font-size-s: 0.875rem;
249
+ --lumo-font-size-m: 1rem;
250
+ --lumo-font-size-l: 1.125rem;
251
+ --lumo-font-size-xl: 1.375rem;
252
+ --lumo-font-size-xxl: 1.75rem;
253
+ --lumo-font-size-xxxl: 2.5rem;
254
+
255
+ /* Line heights */
256
+ --lumo-line-height-xs: 1.25;
257
+ --lumo-line-height-s: 1.375;
258
+ --lumo-line-height-m: 1.625;
259
+ }
260
+ `,a=i.AH`
261
+ body,
262
+ :host {
263
+ font-family: var(--lumo-font-family);
264
+ font-size: var(--lumo-font-size-m);
265
+ line-height: var(--lumo-line-height-m);
266
+ -webkit-text-size-adjust: 100%;
267
+ -webkit-font-smoothing: antialiased;
268
+ -moz-osx-font-smoothing: grayscale;
269
+ }
270
+
271
+ small,
272
+ [theme~='font-size-s'] {
273
+ font-size: var(--lumo-font-size-s);
274
+ line-height: var(--lumo-line-height-s);
275
+ }
276
+
277
+ [theme~='font-size-xs'] {
278
+ font-size: var(--lumo-font-size-xs);
279
+ line-height: var(--lumo-line-height-xs);
280
+ }
281
+
282
+ :where(h1, h2, h3, h4, h5, h6) {
283
+ font-weight: 600;
284
+ line-height: var(--lumo-line-height-xs);
285
+ margin-block: 0;
286
+ }
287
+
288
+ :where(h1) {
289
+ font-size: var(--lumo-font-size-xxxl);
290
+ }
291
+
292
+ :where(h2) {
293
+ font-size: var(--lumo-font-size-xxl);
294
+ }
295
+
296
+ :where(h3) {
297
+ font-size: var(--lumo-font-size-xl);
298
+ }
299
+
300
+ :where(h4) {
301
+ font-size: var(--lumo-font-size-l);
302
+ }
303
+
304
+ :where(h5) {
305
+ font-size: var(--lumo-font-size-m);
306
+ }
307
+
308
+ :where(h6) {
309
+ font-size: var(--lumo-font-size-xs);
310
+ text-transform: uppercase;
311
+ letter-spacing: 0.03em;
312
+ }
313
+
314
+ p,
315
+ blockquote {
316
+ margin-top: 0.5em;
317
+ margin-bottom: 0.75em;
318
+ }
319
+
320
+ a {
321
+ text-decoration: none;
322
+ }
323
+
324
+ a:where(:any-link):hover {
325
+ text-decoration: underline;
326
+ }
327
+
328
+ hr {
329
+ display: block;
330
+ align-self: stretch;
331
+ height: 1px;
332
+ border: 0;
333
+ padding: 0;
334
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
335
+ background-color: var(--lumo-contrast-10pct);
336
+ }
337
+
338
+ blockquote {
339
+ border-left: 2px solid var(--lumo-contrast-30pct);
340
+ }
341
+
342
+ b,
343
+ strong {
344
+ font-weight: 600;
345
+ }
346
+
347
+ /* RTL specific styles */
348
+ blockquote[dir='rtl'] {
349
+ border-left: none;
350
+ border-right: 2px solid var(--lumo-contrast-30pct);
351
+ }
352
+ `;(0,i.SF)("",a,{moduleId:"lumo-typography"}),(0,n.q)("typography-props",s)}}]);