@riverty/web-components 5.3.0 → 5.4.0

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.
Files changed (182) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/custom-elements.json +32 -4
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/r-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/r-dialog.cjs.entry.js +9 -10
  6. package/dist/cjs/r-hint_3.cjs.entry.js +4 -4
  7. package/dist/cjs/r-icon-button.cjs.entry.js +3 -3
  8. package/dist/cjs/r-input-code.cjs.entry.js +23 -7
  9. package/dist/cjs/r-input-date.cjs.entry.js +28 -7
  10. package/dist/cjs/r-input-password.cjs.entry.js +15 -4
  11. package/dist/cjs/r-input-phone-number.cjs.entry.js +57 -19
  12. package/dist/cjs/r-input.cjs.entry.js +15 -3
  13. package/dist/cjs/r-list-item.cjs.entry.js +13 -9
  14. package/dist/cjs/r-panel.cjs.entry.js +2 -2
  15. package/dist/cjs/r-popover-action.cjs.entry.js +1 -1
  16. package/dist/cjs/r-popover-content.cjs.entry.js +1 -1
  17. package/dist/cjs/r-popover-headline.cjs.entry.js +1 -1
  18. package/dist/cjs/r-popover-trigger.cjs.entry.js +1 -1
  19. package/dist/cjs/r-popover.cjs.entry.js +2 -2
  20. package/dist/cjs/r-progress-bar.cjs.entry.js +1 -1
  21. package/dist/cjs/r-radio-button-description.cjs.entry.js +1 -1
  22. package/dist/cjs/r-radio-button-leading.cjs.entry.js +1 -1
  23. package/dist/cjs/r-radio-button-title.cjs.entry.js +1 -1
  24. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +1 -1
  25. package/dist/cjs/r-radio-button.cjs.entry.js +5 -5
  26. package/dist/cjs/r-radio-group.cjs.entry.js +6 -6
  27. package/dist/cjs/r-select-option.cjs.entry.js +1 -1
  28. package/dist/cjs/r-select.cjs.entry.js +5 -4
  29. package/dist/cjs/r-skip-link.cjs.entry.js +1 -1
  30. package/dist/cjs/r-stepper-item.cjs.entry.js +2 -2
  31. package/dist/cjs/r-stepper.cjs.entry.js +1 -1
  32. package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
  33. package/dist/cjs/r-tab.cjs.entry.js +1 -1
  34. package/dist/cjs/r-tabs-list.cjs.entry.js +1 -1
  35. package/dist/cjs/r-tabs.cjs.entry.js +3 -3
  36. package/dist/cjs/r-textarea.cjs.entry.js +17 -3
  37. package/dist/cjs/r-toast-group.cjs.entry.js +1 -1
  38. package/dist/cjs/r-toast.cjs.entry.js +15 -9
  39. package/dist/cjs/web-components.cjs.js +1 -1
  40. package/dist/collection/components/badge/badge.css +7 -7
  41. package/dist/collection/components/dialog/dialog.css +13 -13
  42. package/dist/collection/components/dialog/dialog.js +8 -9
  43. package/dist/collection/components/icon-button/icon-button.js +3 -3
  44. package/dist/collection/components/input/input.css +17 -2
  45. package/dist/collection/components/input/input.js +33 -2
  46. package/dist/collection/components/input-code/input-code.css +17 -2
  47. package/dist/collection/components/input-code/input-code.js +41 -6
  48. package/dist/collection/components/input-date/input-date.css +13 -2
  49. package/dist/collection/components/input-date/input-date.js +46 -6
  50. package/dist/collection/components/input-password/input-password.js +34 -4
  51. package/dist/collection/components/input-phone-number/input-phone-number.js +79 -18
  52. package/dist/collection/components/label/label.js +3 -3
  53. package/dist/collection/components/list-item/list-item/list-item.css +21 -22
  54. package/dist/collection/components/list-item/list-item/list-item.js +36 -10
  55. package/dist/collection/components/panel/panel.js +2 -2
  56. package/dist/collection/components/popover/popover.js +2 -2
  57. package/dist/collection/components/popover-action/popover-action.js +1 -1
  58. package/dist/collection/components/popover-content/popover-content.js +1 -1
  59. package/dist/collection/components/popover-headline/popover-headline.js +1 -1
  60. package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
  61. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  62. package/dist/collection/components/radio-button/radio-button.js +5 -5
  63. package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
  64. package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
  65. package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
  66. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
  67. package/dist/collection/components/radio-group/radio-group.js +6 -6
  68. package/dist/collection/components/select/select.js +5 -4
  69. package/dist/collection/components/select-option/select-option.js +1 -1
  70. package/dist/collection/components/skip-link/skip-link.js +1 -1
  71. package/dist/collection/components/stepper/stepper.js +1 -1
  72. package/dist/collection/components/stepper-item/stepper-item.js +2 -2
  73. package/dist/collection/components/tab/tab.js +1 -1
  74. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  75. package/dist/collection/components/tabs/tabs.js +3 -3
  76. package/dist/collection/components/tabs-list/tabs-list.js +1 -1
  77. package/dist/collection/components/textarea/textarea.css +52 -21
  78. package/dist/collection/components/textarea/textarea.js +36 -3
  79. package/dist/collection/components/toast/toast.css +2 -1
  80. package/dist/collection/components/toast/toast.js +19 -10
  81. package/dist/collection/components/toast-group/toast-group.js +1 -1
  82. package/dist/collection/components/tooltip/tooltip.js +1 -1
  83. package/dist/esm/loader.js +1 -1
  84. package/dist/esm/r-badge.entry.js +1 -1
  85. package/dist/esm/r-dialog.entry.js +9 -10
  86. package/dist/esm/r-hint_3.entry.js +4 -4
  87. package/dist/esm/r-icon-button.entry.js +3 -3
  88. package/dist/esm/r-input-code.entry.js +23 -7
  89. package/dist/esm/r-input-date.entry.js +28 -7
  90. package/dist/esm/r-input-password.entry.js +15 -4
  91. package/dist/esm/r-input-phone-number.entry.js +57 -19
  92. package/dist/esm/r-input.entry.js +15 -3
  93. package/dist/esm/r-list-item.entry.js +13 -9
  94. package/dist/esm/r-panel.entry.js +2 -2
  95. package/dist/esm/r-popover-action.entry.js +1 -1
  96. package/dist/esm/r-popover-content.entry.js +1 -1
  97. package/dist/esm/r-popover-headline.entry.js +1 -1
  98. package/dist/esm/r-popover-trigger.entry.js +1 -1
  99. package/dist/esm/r-popover.entry.js +2 -2
  100. package/dist/esm/r-progress-bar.entry.js +1 -1
  101. package/dist/esm/r-radio-button-description.entry.js +1 -1
  102. package/dist/esm/r-radio-button-leading.entry.js +1 -1
  103. package/dist/esm/r-radio-button-title.entry.js +1 -1
  104. package/dist/esm/r-radio-button-trailing.entry.js +1 -1
  105. package/dist/esm/r-radio-button.entry.js +5 -5
  106. package/dist/esm/r-radio-group.entry.js +6 -6
  107. package/dist/esm/r-select-option.entry.js +1 -1
  108. package/dist/esm/r-select.entry.js +5 -4
  109. package/dist/esm/r-skip-link.entry.js +1 -1
  110. package/dist/esm/r-stepper-item.entry.js +2 -2
  111. package/dist/esm/r-stepper.entry.js +1 -1
  112. package/dist/esm/r-tab-panel.entry.js +1 -1
  113. package/dist/esm/r-tab.entry.js +1 -1
  114. package/dist/esm/r-tabs-list.entry.js +1 -1
  115. package/dist/esm/r-tabs.entry.js +3 -3
  116. package/dist/esm/r-textarea.entry.js +17 -3
  117. package/dist/esm/r-toast-group.entry.js +1 -1
  118. package/dist/esm/r-toast.entry.js +15 -9
  119. package/dist/esm/web-components.js +1 -1
  120. package/dist/types/components/dialog/dialog.d.ts +1 -0
  121. package/dist/types/components/input/input.d.ts +6 -0
  122. package/dist/types/components/input-code/input-code.d.ts +6 -0
  123. package/dist/types/components/input-date/input-date.d.ts +6 -0
  124. package/dist/types/components/input-password/input-password.d.ts +5 -0
  125. package/dist/types/components/input-phone-number/input-phone-number.d.ts +7 -0
  126. package/dist/types/components/list-item/list-item/list-item.d.ts +11 -3
  127. package/dist/types/components/textarea/textarea.d.ts +8 -1
  128. package/dist/types/components/toast/toast.d.ts +6 -0
  129. package/dist/types/components.d.ts +66 -8
  130. package/dist/web-components/p-05ba30ba.entry.js +1 -0
  131. package/dist/web-components/p-0a424361.entry.js +1 -0
  132. package/dist/web-components/p-0ac858b8.entry.js +1 -0
  133. package/dist/web-components/p-0bb0de18.entry.js +1 -0
  134. package/dist/web-components/{p-5dd43433.entry.js → p-10724c18.entry.js} +1 -1
  135. package/dist/web-components/{p-59aa588e.entry.js → p-1157b7f4.entry.js} +1 -1
  136. package/dist/web-components/{p-5bc9fe5e.entry.js → p-135be1d5.entry.js} +1 -1
  137. package/dist/web-components/{p-5cd1ad6a.entry.js → p-1ed3efd7.entry.js} +1 -1
  138. package/dist/web-components/p-20f979ff.entry.js +1 -0
  139. package/dist/web-components/p-2394508f.entry.js +1 -0
  140. package/dist/web-components/{p-a45fd808.entry.js → p-2d85c0f3.entry.js} +1 -1
  141. package/dist/web-components/p-31c8388d.entry.js +1 -0
  142. package/dist/web-components/p-333707b2.entry.js +1 -0
  143. package/dist/web-components/p-3ea6a1be.entry.js +1 -0
  144. package/dist/web-components/p-3fc2b23b.entry.js +1 -0
  145. package/dist/web-components/{p-77335ae7.entry.js → p-48dfb286.entry.js} +1 -1
  146. package/dist/web-components/p-61f78bf6.entry.js +1 -0
  147. package/dist/web-components/{p-806b173d.entry.js → p-66c454ce.entry.js} +1 -1
  148. package/dist/web-components/{p-26e4816a.entry.js → p-71d6c4d7.entry.js} +1 -1
  149. package/dist/web-components/{p-4dae8c19.entry.js → p-735da2bb.entry.js} +1 -1
  150. package/dist/web-components/p-77dc268e.entry.js +1 -0
  151. package/dist/web-components/{p-512d3a60.entry.js → p-89ff32dc.entry.js} +1 -1
  152. package/dist/web-components/{p-0930ee1d.entry.js → p-8d6a35e3.entry.js} +1 -1
  153. package/dist/web-components/{p-90d390f4.entry.js → p-8f719321.entry.js} +1 -1
  154. package/dist/web-components/{p-d35303a6.entry.js → p-900923ab.entry.js} +1 -1
  155. package/dist/web-components/{p-651522b6.entry.js → p-988a7731.entry.js} +1 -1
  156. package/dist/web-components/{p-7545038f.entry.js → p-9c40f9cd.entry.js} +1 -1
  157. package/dist/web-components/p-aecd025b.entry.js +1 -0
  158. package/dist/web-components/{p-87bb4b91.entry.js → p-c7a9da98.entry.js} +1 -1
  159. package/dist/web-components/p-caca2855.entry.js +1 -0
  160. package/dist/web-components/{p-8968ddf6.entry.js → p-dc93ed55.entry.js} +1 -1
  161. package/dist/web-components/p-df81177e.entry.js +1 -0
  162. package/dist/web-components/{p-a81a67da.entry.js → p-e273950c.entry.js} +1 -1
  163. package/dist/web-components/{p-832dca22.entry.js → p-e50503d0.entry.js} +1 -1
  164. package/dist/web-components/p-fdf70aed.entry.js +1 -0
  165. package/dist/web-components/web-components.esm.js +1 -1
  166. package/package.json +1 -1
  167. package/dist/web-components/p-0bd10e93.entry.js +0 -1
  168. package/dist/web-components/p-15d10c68.entry.js +0 -1
  169. package/dist/web-components/p-1cfa9a0e.entry.js +0 -1
  170. package/dist/web-components/p-23ff25a1.entry.js +0 -1
  171. package/dist/web-components/p-50f01d6b.entry.js +0 -1
  172. package/dist/web-components/p-547fc56c.entry.js +0 -1
  173. package/dist/web-components/p-73adec9b.entry.js +0 -1
  174. package/dist/web-components/p-8388221b.entry.js +0 -1
  175. package/dist/web-components/p-8cc4be0c.entry.js +0 -1
  176. package/dist/web-components/p-98628a15.entry.js +0 -1
  177. package/dist/web-components/p-aff51d37.entry.js +0 -1
  178. package/dist/web-components/p-b07be088.entry.js +0 -1
  179. package/dist/web-components/p-b5c8e978.entry.js +0 -1
  180. package/dist/web-components/p-d6ef5fff.entry.js +0 -1
  181. package/dist/web-components/p-dfd8bed6.entry.js +0 -1
  182. package/dist/web-components/p-e138c70a.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as o,H as r,g as i,c as e}from"./p-CTxpqopm.js";const a=class{constructor(o){t(this,o)}get iconName(){if(this.icon)return this.icon;const t={error:"circled-exclamation-mark",warning:"circled-cross",success:"circled-check"};return this.variant in t?t[this.variant]:null}get hasIconSlot(){return!!this.host.querySelector('[slot="icon"]')}get hasIcon(){return this.hasIconSlot||null!==this.iconName}render(){return o(r,{key:"77951c878faf0f74385c72dfdfa11adc9d38da73"},o("div",{key:"577c8674ce57e8ad8c784b926eff21b201af4bb2",class:"r-hint"},this.hasIcon&&o("div",{key:"7cba7116b04a7894aae4f2a3026324e15a95c9c5",class:"r-hint--icon"},o("slot",{key:"dba72b1442b9f0d27ca6d6387572b044468b54cb",name:"icon"},this.iconName&&o("r-icon",{key:"a7cdb025298dc8b6f4290efcd366a03dc8135bb0",name:this.iconName,size:"s"}))),o("div",{key:"bd96a4d4ec4a5c0f0e029b86e3a423b20e0a7341",class:"r-hint--text"},o("slot",{key:"e763e051b3d598fd78e777607f21a6358edc0dc2"}))))}get host(){return i(this)}};a.style=":host{--r-hint--text--flex:1}:host([variant=information]){--r-hint--color:var(--r-text-soft, #686868)}:host([variant=success]),:host([success]){--r-hint--color:var(--r-status-success-regular, #298535)}:host([variant=warning]),:host([warning]){--r-hint--color:var(--r-status-warning-strong, #89411a)}:host([variant=error]),:host([invalid]){--r-hint--color:var(--r-status-error-regular, #da1e28)}:host([icon-position=end]){--r-hint--flex-direction:row-reverse}:host{display:block}.r-hint{display:var(--r-hint--display, flex);flex-direction:var(--r-hint--flex-direction, row);gap:var(--r-hint--gap, var(--r-spacing-050, 0.5rem));font-family:var(--r-hint--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-hint--font-size, var(--r-font-size-300, 0.875rem));line-height:var(--r-hint--line-height, var(--r-line-height-m, 1.5));color:var(--r-hint--color, var(--r-text-soft, #686868));font-weight:var(--r-hint--font-weight, var(--r-font-weight-regular, 400));margin-top:var(--r-hint--margin-top, 0);margin-bottom:var(--r-hint--margin-bottom, 0)}.r-hint--icon{display:var(--r-hint--icon--display, flex);align-items:var(--r-hint--icon--align-items, start);min-width:var(--r-hint--icon--min-width, 1rem);margin-top:var(--r-hint--icon--margin-top, 0.15rem)}.r-hint--text{flex:var(--r-hint--text--flex, 1)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";const n=class{constructor(o){t(this,o),this.tooltipPosition="right",this.tooltipIcon="circled-question-mark"}render(){const{tooltip:t,tooltipPosition:i,tooltipIcon:e,tooltipIconColor:a,fieldIndicator:n}=this,l={text:t,position:i},s={name:e,size:"s",color:a};return o(r,{key:"1bcaecd6616128ccab32f8a1ff4f46f1072190ac"},o("div",{key:"ab619a29898eb4e7a49ac5dd07f2b1b98aac17a2",class:"r-label"},o("span",{key:"ac0e0ea909ef6da765676b6b30ecc65d39664bcf",class:"r-label--slot"},o("slot",{key:"cf6014703ae7afeed874e017cef48d99aa32eddb"}),n&&o("span",{key:"11e2435c41fbe76ca0b64d9eacc59c10ff87233d",class:"r-label--marker"},n)),t&&o("span",{key:"c9ed9b4fe5f084e23d24a8687dcc186bd3380b05",class:"r-label--tooltip-icon"},o("r-tooltip",Object.assign({key:"78f51c815bc28429edae7ad52f3150aafe3a5211"},l),o("r-icon",Object.assign({key:"e890282aaf5b66d805ee6212cf8c69abae3cde7e"},s))))))}};n.style='@charset "UTF-8";:host([field-indicator]){--r-label--marker--display:inline}.r-label{display:var(--r-label--display, flex);flex-direction:var(--r-label--flex-direction, row);gap:var(--r-label--gap, var(--r-spacing-100, 1rem));cursor:var(--r-label--cursor, default);color:var(--r-label--color, var(--r-text-regular, #282828));margin-bottom:var(--r-label--margin-bottom, 0)}.r-label--slot{flex:var(--r-label--slot--flex, 1);line-height:var(--r-label--line-height, var(--r-line-height-m, 1.5));font-family:var(--r-label--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-label--font-size, var(--r-font-size-regular, 1rem));font-weight:var(--r-label--font-weight, var(--r-font-weight-regular, 400))}.r-label--marker{display:var(--r-label--marker--display, none);color:var(--r-label--marker--color, var(--r-text-soft, #686868));font-size:var(--r-label--marker--font-size, var(--r-font-size-300, 0.875rem));font-style:var(--r-label--marker--font-style, normal);font-weight:var(--r-label--marker--font-weight, var(--r-font-weight-regular, 400));margin-left:var(--r-label--marker--margin-left, var(--r-spacing-075, 0.75rem))}.r-label--marker::before{content:var(--r-label--marker--before--content, "– ")}.r-label--tooltip-icon{color:var(--r-label--tooltip-icon--color, var(--r-text-regular, inherit));display:var(--r-label--tooltip-icon--display, inline-flex);line-height:var(--r-label--tooltip-icon--line-height, 1);align-items:var(--r-label--tooltip-icon--align-items, center);justify-content:var(--r-label--tooltip-icon--justify-content, center)}';const l=20,s=class{constructor(o){t(this,o),this.rTooltipFocus=e(this,"rTooltipFocus"),this.text="",this.position="top",this.arrowPositionState="left",this.isShown=!1,this.uniqueId=`r-tooltip-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.handleHover=()=>{this.showTooltip(),this.setCorrectPosition()},this.handleFocus=()=>{this.showTooltip(),this.setCorrectPosition(),this.rTooltipFocus.emit({element:this.element})},this.showTooltip=()=>{this.isShown=!0,this.tooltipValue.classList.add("r-tooltip--content--visible")},this.removeTooltip=()=>{this.isShown=!1,this.tooltipValue.classList.remove("r-tooltip--content--visible")}}handleVerticalPosition(){this.setCorrectPosition()}handleScrolling(){this.setCorrectPosition()}handleResizing(){this.setCorrectPosition()}handleKeydown(t){this.isShown&&"Escape"===t.key&&this.removeTooltip()}get tooltipValue(){var t,o;return null===(o=null===(t=this.element)||void 0===t?void 0:t.shadowRoot)||void 0===o?void 0:o.getElementById(this.uniqueId)}get overflowedParent(){return this.findOverflowParent(this.element.parentElement)}get top(){return this.overflowedParent?Math.abs(this.overflowedParent.getBoundingClientRect().top-this.element.getBoundingClientRect().top):this.element.getBoundingClientRect().top}get left(){return this.overflowedParent?Math.abs(this.overflowedParent.getBoundingClientRect().left-this.element.getBoundingClientRect().left):this.element.getBoundingClientRect().left}get bottom(){function t(t){return window.innerHeight-t.getBoundingClientRect().top-t.getBoundingClientRect().height}return this.overflowedParent?Math.abs(t(this.overflowedParent)-t(this.element)):t(this.element)}get right(){function t(t){return window.innerWidth-t.getBoundingClientRect().left-t.getBoundingClientRect().width}return this.overflowedParent?Math.abs(t(this.overflowedParent)-t(this.element)):t(this.element)}get horizontalPlacement(){var t;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetWidth)+l<this.left?"left":"right"}get verticalPlacement(){var t;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetHeight)+l<this.top?"top":"bottom"}get isEnoughSpaceVertically(){var t,o;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetHeight)+l<this.top||(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetHeight)+l<this.bottom}get isEnoughSpaceHorizontally(){var t,o;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetWidth)+l<this.left||(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetWidth)+l<this.right}get activeElement(){return this.element.querySelector('r-button, r-icon-button, a, button, [tabindex]:not([tabindex="-1"])')}componentWillLoad(){this.positionState=this.position}componentDidLoad(){var t,o;null===(t=this.activeElement)||void 0===t||t.addEventListener("focus",(()=>{this.handleFocus()})),null===(o=this.activeElement)||void 0===o||o.addEventListener("blur",(()=>{this.removeTooltip()}))}findOverflowParent(t){var o,r;return t?(null===(o=t.parentNode)||void 0===o?void 0:o.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?this.findOverflowParent(null===(r=t.parentNode)||void 0===r?void 0:r.host):function(t){return"visible"!==getComputedStyle(t).overflow}(t)?t:t.parentElement?this.findOverflowParent(t.parentElement):null:null}getAlternativePosition(){switch(this.position){case"top":return this.isEnoughSpaceVertically?"bottom":this.horizontalPlacement;case"bottom":return this.isEnoughSpaceVertically?"top":this.horizontalPlacement;case"left":return this.isEnoughSpaceHorizontally?"right":this.verticalPlacement;case"right":return this.isEnoughSpaceHorizontally?"left":this.verticalPlacement}}setCorrectPosition(){var t,o,r,i;if(this.tooltipValue&&this.isShown){switch(this.position){case"top":this.positionState=(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetHeight)+l<this.top?this.position:this.getAlternativePosition();break;case"bottom":this.positionState=(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetHeight)+l<this.bottom?this.position:this.getAlternativePosition();break;case"left":this.positionState=(null===(r=this.tooltipValue)||void 0===r?void 0:r.offsetWidth)+l<this.left?this.position:this.getAlternativePosition();break;case"right":this.positionState=(null===(i=this.tooltipValue)||void 0===i?void 0:i.offsetWidth)+l<this.right?this.position:this.getAlternativePosition()}this.adjustArrowPosition()}}adjustArrowPosition(){var t,o;const r=(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetWidth)/2+l<this.left,i=(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetWidth)/2+l<this.right;r&&i||"left"===this.positionState||"right"===this.positionState?this.arrowPositionState="center":r?i||(this.arrowPositionState="right"):this.arrowPositionState="left"}render(){const{text:t,arrowPositionState:i,positionState:e,isShown:a,uniqueId:n}=this,l={tabindex:this.activeElement?null:0,role:this.activeElement?null:"button","aria-describedby":a&&n||null},s={id:n,role:"tooltip","aria-hidden":`${!a}`};return o(r,Object.assign({key:"19402aacbdc178fff3e8eb00f1cd72d38b6c18a6"},{"data-arrow-position":i,"data-position":e},{onMouseenter:this.handleHover,onMouseleave:this.removeTooltip}),o("div",{key:"4ab3a49a4ef39602f6936ae07fbac05ed8021c0d",class:"r-tooltip"},o("div",Object.assign({key:"ea44584afdecdbfec1911f76d3303f79f4806150",class:"r-tooltip--trigger",onFocus:this.handleFocus,onBlur:this.removeTooltip},l),o("slot",{key:"8fb43cf1df37d799c7a043dd7f5bfa8757482cb9"})),o("div",Object.assign({key:"d418113c21d2605237010626470483d29e8f3187",class:"r-tooltip--content"},s),t),o("div",{key:"373a2d65a2f8a77af0931c3de90f1302c7aca557",class:"r-tooltip--arrow"})))}get element(){return i(this)}static get watchers(){return{position:["handleVerticalPosition"]}}};s.style=':host{display:inline-block;--r-tooltip--position:relative;--r-tooltip--content--position:absolute;--r-tooltip--content--top:auto;--r-tooltip--content--right:auto;--r-tooltip--content--bottom:auto;--r-tooltip--content--left:auto;--r-tooltip--content--display:none;--r-tooltip--content--content:attr(tooltip-data);--r-tooltip--content--color:var(--r-text-inverse);--r-tooltip--content--background-color:var(--r-background-inverse);--r-tooltip--content--font-family:var(--r-font-family-text);--r-tooltip--content--font-weight:var(--r-font-weight-regular);--r-tooltip--content--font-size:var(--r-font-size-200);--r-tooltip--content--line-height:var(--r-line-height-s);--r-tooltip--content--min-width:32px;--r-tooltip--content--max-width:300px;--r-tooltip--content--min-height:32px;--r-tooltip--content--padding:var(--r-spacing-050) var(--r-spacing-100);--r-tooltip--content--width:max-content;--r-tooltip--content--word-break:break-word;--r-tooltip--content--box-sizing:border-box;--r-tooltip--content--justify-content:center;--r-tooltip--content--align-items:center;--r-tooltip--content--z-index:0;--r-tooltip--content--transform:none;--r-tooltip--arrow--display:none;--r-tooltip--arrow--position:absolute;--r-tooltip--arrow--top:auto;--r-tooltip--arrow--right:auto;--r-tooltip--arrow--bottom:auto;--r-tooltip--arrow--left:50%;--r-tooltip--arrow--width:12px;--r-tooltip--arrow--height:6px;--r-tooltip--arrow--transform:translateX(-50%) rotate(180deg);--r-tooltip--arrow--inner-content:"";--r-tooltip--arrow--inner--width:12px;--r-tooltip--arrow--inner--height:6px;--r-tooltip--arrow--inner--background-color:var(--r-tooltip--content--background-color);--r-tooltip--arrow--inner--clip-path:polygon(50% 0%, 0% 100%, 100% 100%);--r-tooltip--arrow--inner--border-radius:0;--r-tooltip--arrow--inner--align-self:flex-end}:host slot{display:contents}:host([data-arrow-position=left]){--r-tooltip--content--left:- var(--r-spacing-100)}:host([data-arrow-position=right]){--r-tooltip--content--right:- var(--r-spacing-100)}:host([data-arrow-position=center]){--r-tooltip--content--left:50%;--r-tooltip--content--transform:translate(-50%)}:host([data-position=top]){--r-tooltip--content--bottom:calc(100% + var(--r-spacing-075));--r-tooltip--arrow--bottom:100%;--r-tooltip--arrow--height:calc(var(--r-tooltip--arrow--inner--height) + 1.5 * var(--r-spacing-025))}:host([data-position=top][data-arrow-position=right]){--r-tooltip--content--right:0;--r-tooltip--content--left:unset}:host([data-position=bottom]){--r-tooltip--content--top:calc(100% + var(--r-spacing-075));--r-tooltip--arrow--top:100%;--r-tooltip--arrow--height:calc(var(--r-tooltip--arrow--inner--height) + 1.6 * var(--r-spacing-025));--r-tooltip--arrow--transform:translateX(-50%) rotate(0)}:host([data-position=bottom][data-arrow-position=right]){--r-tooltip--content--right:0;--r-tooltip--content--left:unset}:host([data-position=right]){--r-tooltip--content--left:calc(100% + var(--r-tooltip--arrow--height) + 0.1875rem);--r-tooltip--arrow--left:100%;--r-tooltip--arrow--transform:rotate(270deg)}:host([data-position=left]){--r-tooltip--content--right:calc(100% + var(--r-tooltip--arrow--height) + 0.1875rem);--r-tooltip--content--left:unset;--r-tooltip--arrow--right:100%;--r-tooltip--arrow--left:unset;--r-tooltip--arrow--transform:rotate(90deg)}:host([data-position=right]),:host([data-position=left]){--r-tooltip--content--top:50%;--r-tooltip--content--transform:translateY(-50%);--r-tooltip--arrow--top:calc(50% - calc(var(--r-tooltip--arrow--height)/2))}.r-tooltip{position:var(--r-tooltip--position)}.r-tooltip:has(.r-tooltip--content--visible){--r-tooltip--content--width:max-content;--r-tooltip--content--display:flex;--r-tooltip--content--z-index:1060;--r-tooltip--arrow--display:flex;--r-tooltip--arrow--inner--display:block}.r-tooltip--trigger{color:var(--r-tooltip--trigger--color, inherit);box-shadow:var(--r-tooltip--trigger--box-shadow, none);outline:var(--r-tooltip--trigger--outline, none);outline-offset:var(--r-tooltip--trigger--outline-offset, 0)}.r-tooltip--trigger:focus{--r-tooltip--trigger--box-shadow:0 0 0 6px var(--r-border-focused-outlined);--r-tooltip--trigger--outline:2px solid var(--r-border-focused);--r-tooltip--trigger--outline-offset:2px}.r-tooltip--content{position:var(--r-tooltip--content--position);top:var(--r-tooltip--content--top);right:var(--r-tooltip--content--right);bottom:var(--r-tooltip--content--bottom);left:var(--r-tooltip--content--left);display:var(--r-tooltip--content--display);content:var(--r-tooltip--content--content);color:var(--r-tooltip--content--color);background-color:var(--r-tooltip--content--background-color);font-family:var(--r-tooltip--content--font-family);font-weight:var(--r-tooltip--content--font-weight);font-size:var(--r-tooltip--content--font-size);line-height:var(--r-tooltip--content--line-height);min-width:var(--r-tooltip--content--min-width);max-width:var(--r-tooltip--content--max-width);min-height:var(--r-tooltip--content--min-height);padding:var(--r-tooltip--content--padding);width:var(--r-tooltip--content--width);word-break:var(--r-tooltip--content--word-break);box-sizing:var(--r-tooltip--content--box-sizing);z-index:var(--r-tooltip--content--z-index);transform:var(--r-tooltip--content--transform)}.r-tooltip--arrow{display:var(--r-tooltip--arrow--display);position:var(--r-tooltip--arrow--position);width:var(--r-tooltip--arrow--width);height:var(--r-tooltip--arrow--height);top:var(--r-tooltip--arrow--top);right:var(--r-tooltip--arrow--right);bottom:var(--r-tooltip--arrow--bottom);left:var(--r-tooltip--arrow--left);transform:var(--r-tooltip--arrow--transform)}.r-tooltip--arrow:after{content:var(--r-tooltip--arrow--inner-content);display:var(--r-tooltip--arrow--inner--display);width:var(--r-tooltip--arrow--inner--width);height:var(--r-tooltip--arrow--inner--height);background-color:var(--r-tooltip--arrow--inner--background-color);clip-path:var(--r-tooltip--arrow--inner--clip-path);border-radius:var(--r-tooltip--arrow--inner--border-radius);align-self:var(--r-tooltip--arrow--inner--align-self)}';export{a as r_hint,n as r_label,s as r_tooltip}
1
+ import{r as t,h as o,H as r,g as i,c as e}from"./p-CTxpqopm.js";const n=class{constructor(o){t(this,o)}get iconName(){if(this.icon)return this.icon;const t={error:"circled-exclamation-mark",warning:"circled-cross",success:"circled-check"};return this.variant in t?t[this.variant]:null}get hasIconSlot(){return!!this.host.querySelector('[slot="icon"]')}get hasIcon(){return this.hasIconSlot||null!==this.iconName}render(){return o(r,{key:"77951c878faf0f74385c72dfdfa11adc9d38da73"},o("div",{key:"577c8674ce57e8ad8c784b926eff21b201af4bb2",class:"r-hint"},this.hasIcon&&o("div",{key:"7cba7116b04a7894aae4f2a3026324e15a95c9c5",class:"r-hint--icon"},o("slot",{key:"dba72b1442b9f0d27ca6d6387572b044468b54cb",name:"icon"},this.iconName&&o("r-icon",{key:"a7cdb025298dc8b6f4290efcd366a03dc8135bb0",name:this.iconName,size:"s"}))),o("div",{key:"bd96a4d4ec4a5c0f0e029b86e3a423b20e0a7341",class:"r-hint--text"},o("slot",{key:"e763e051b3d598fd78e777607f21a6358edc0dc2"}))))}get host(){return i(this)}};n.style=":host{--r-hint--text--flex:1}:host([variant=information]){--r-hint--color:var(--r-text-soft, #686868)}:host([variant=success]),:host([success]){--r-hint--color:var(--r-status-success-regular, #298535)}:host([variant=warning]),:host([warning]){--r-hint--color:var(--r-status-warning-strong, #89411a)}:host([variant=error]),:host([invalid]){--r-hint--color:var(--r-status-error-regular, #da1e28)}:host([icon-position=end]){--r-hint--flex-direction:row-reverse}:host{display:block}.r-hint{display:var(--r-hint--display, flex);flex-direction:var(--r-hint--flex-direction, row);gap:var(--r-hint--gap, var(--r-spacing-050, 0.5rem));font-family:var(--r-hint--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-hint--font-size, var(--r-font-size-300, 0.875rem));line-height:var(--r-hint--line-height, var(--r-line-height-m, 1.5));color:var(--r-hint--color, var(--r-text-soft, #686868));font-weight:var(--r-hint--font-weight, var(--r-font-weight-regular, 400));margin-top:var(--r-hint--margin-top, 0);margin-bottom:var(--r-hint--margin-bottom, 0)}.r-hint--icon{display:var(--r-hint--icon--display, flex);align-items:var(--r-hint--icon--align-items, start);min-width:var(--r-hint--icon--min-width, 1rem);margin-top:var(--r-hint--icon--margin-top, 0.15rem)}.r-hint--text{flex:var(--r-hint--text--flex, 1)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";const a=class{constructor(o){t(this,o),this.tooltipPosition="right",this.tooltipIcon="circled-question-mark"}render(){const{tooltip:t,tooltipPosition:i,tooltipIcon:e,tooltipIconColor:n,fieldIndicator:a}=this,l={text:t,position:i},s={name:e,size:"s",color:n};return o(r,{key:"06097c8d9963d79b783b245a934832e3f8e7596b"},o("div",{key:"2a3a8ddd22fddedb8e7a7472f81c05201ea26a77",class:"r-label"},o("span",{key:"9d1814759bb2b3f8784a73aa75b215a19985f482",class:"r-label--slot"},o("slot",{key:"d472e83f02841c979bbfcc36c54068141de0d380"}),a&&o("span",{key:"f275ed855ebd8a684a35ce9b074b0e04471dcfe2",class:"r-label--marker"},a)),t&&o("span",{key:"aa336cbb979d0866e8f586c1596b9d9f38925023",class:"r-label--tooltip-icon"},o("r-tooltip",Object.assign({key:"245cd576fadb1b31ca2041a9b3d9b5a9a63e381d"},l),o("r-icon",Object.assign({key:"f83ce1d9d0ab51b3c5394866b01b1998559ddc68"},s))))))}};a.style='@charset "UTF-8";:host([field-indicator]){--r-label--marker--display:inline}.r-label{display:var(--r-label--display, flex);flex-direction:var(--r-label--flex-direction, row);gap:var(--r-label--gap, var(--r-spacing-100, 1rem));cursor:var(--r-label--cursor, default);color:var(--r-label--color, var(--r-text-regular, #282828));margin-bottom:var(--r-label--margin-bottom, 0)}.r-label--slot{flex:var(--r-label--slot--flex, 1);line-height:var(--r-label--line-height, var(--r-line-height-m, 1.5));font-family:var(--r-label--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-label--font-size, var(--r-font-size-regular, 1rem));font-weight:var(--r-label--font-weight, var(--r-font-weight-regular, 400))}.r-label--marker{display:var(--r-label--marker--display, none);color:var(--r-label--marker--color, var(--r-text-soft, #686868));font-size:var(--r-label--marker--font-size, var(--r-font-size-300, 0.875rem));font-style:var(--r-label--marker--font-style, normal);font-weight:var(--r-label--marker--font-weight, var(--r-font-weight-regular, 400));margin-left:var(--r-label--marker--margin-left, var(--r-spacing-075, 0.75rem))}.r-label--marker::before{content:var(--r-label--marker--before--content, "– ")}.r-label--tooltip-icon{color:var(--r-label--tooltip-icon--color, var(--r-text-regular, inherit));display:var(--r-label--tooltip-icon--display, inline-flex);line-height:var(--r-label--tooltip-icon--line-height, 1);align-items:var(--r-label--tooltip-icon--align-items, center);justify-content:var(--r-label--tooltip-icon--justify-content, center)}';const l=20,s=class{constructor(o){t(this,o),this.rTooltipFocus=e(this,"rTooltipFocus"),this.text="",this.position="top",this.arrowPositionState="left",this.isShown=!1,this.uniqueId=`r-tooltip-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.handleHover=()=>{this.showTooltip(),this.setCorrectPosition()},this.handleFocus=()=>{this.showTooltip(),this.setCorrectPosition(),this.rTooltipFocus.emit({element:this.element})},this.showTooltip=()=>{this.isShown=!0,this.tooltipValue.classList.add("r-tooltip--content--visible")},this.removeTooltip=()=>{this.isShown=!1,this.tooltipValue.classList.remove("r-tooltip--content--visible")}}handleVerticalPosition(){this.setCorrectPosition()}handleScrolling(){this.setCorrectPosition()}handleResizing(){this.setCorrectPosition()}handleKeydown(t){this.isShown&&"Escape"===t.key&&this.removeTooltip()}get tooltipValue(){var t,o;return null===(o=null===(t=this.element)||void 0===t?void 0:t.shadowRoot)||void 0===o?void 0:o.getElementById(this.uniqueId)}get overflowedParent(){return this.findOverflowParent(this.element.parentElement)}get top(){return this.overflowedParent?Math.abs(this.overflowedParent.getBoundingClientRect().top-this.element.getBoundingClientRect().top):this.element.getBoundingClientRect().top}get left(){return this.overflowedParent?Math.abs(this.overflowedParent.getBoundingClientRect().left-this.element.getBoundingClientRect().left):this.element.getBoundingClientRect().left}get bottom(){function t(t){return window.innerHeight-t.getBoundingClientRect().top-t.getBoundingClientRect().height}return this.overflowedParent?Math.abs(t(this.overflowedParent)-t(this.element)):t(this.element)}get right(){function t(t){return window.innerWidth-t.getBoundingClientRect().left-t.getBoundingClientRect().width}return this.overflowedParent?Math.abs(t(this.overflowedParent)-t(this.element)):t(this.element)}get horizontalPlacement(){var t;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetWidth)+l<this.left?"left":"right"}get verticalPlacement(){var t;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetHeight)+l<this.top?"top":"bottom"}get isEnoughSpaceVertically(){var t,o;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetHeight)+l<this.top||(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetHeight)+l<this.bottom}get isEnoughSpaceHorizontally(){var t,o;return(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetWidth)+l<this.left||(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetWidth)+l<this.right}get activeElement(){return this.element.querySelector('r-button, r-icon-button, a, button, [tabindex]:not([tabindex="-1"])')}componentWillLoad(){this.positionState=this.position}componentDidLoad(){var t,o;null===(t=this.activeElement)||void 0===t||t.addEventListener("focus",(()=>{this.handleFocus()})),null===(o=this.activeElement)||void 0===o||o.addEventListener("blur",(()=>{this.removeTooltip()}))}findOverflowParent(t){var o,r;return t?(null===(o=t.parentNode)||void 0===o?void 0:o.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?this.findOverflowParent(null===(r=t.parentNode)||void 0===r?void 0:r.host):function(t){return"visible"!==getComputedStyle(t).overflow}(t)?t:t.parentElement?this.findOverflowParent(t.parentElement):null:null}getAlternativePosition(){switch(this.position){case"top":return this.isEnoughSpaceVertically?"bottom":this.horizontalPlacement;case"bottom":return this.isEnoughSpaceVertically?"top":this.horizontalPlacement;case"left":return this.isEnoughSpaceHorizontally?"right":this.verticalPlacement;case"right":return this.isEnoughSpaceHorizontally?"left":this.verticalPlacement}}setCorrectPosition(){var t,o,r,i;if(this.tooltipValue&&this.isShown){switch(this.position){case"top":this.positionState=(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetHeight)+l<this.top?this.position:this.getAlternativePosition();break;case"bottom":this.positionState=(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetHeight)+l<this.bottom?this.position:this.getAlternativePosition();break;case"left":this.positionState=(null===(r=this.tooltipValue)||void 0===r?void 0:r.offsetWidth)+l<this.left?this.position:this.getAlternativePosition();break;case"right":this.positionState=(null===(i=this.tooltipValue)||void 0===i?void 0:i.offsetWidth)+l<this.right?this.position:this.getAlternativePosition()}this.adjustArrowPosition()}}adjustArrowPosition(){var t,o;const r=(null===(t=this.tooltipValue)||void 0===t?void 0:t.offsetWidth)/2+l<this.left,i=(null===(o=this.tooltipValue)||void 0===o?void 0:o.offsetWidth)/2+l<this.right;r&&i||"left"===this.positionState||"right"===this.positionState?this.arrowPositionState="center":r?i||(this.arrowPositionState="right"):this.arrowPositionState="left"}render(){const{text:t,arrowPositionState:i,positionState:e,isShown:n,uniqueId:a}=this,l={tabindex:this.activeElement?null:0,role:this.activeElement?null:"button","aria-describedby":n&&a||null},s={id:a,role:"tooltip","aria-hidden":`${!n}`};return o(r,Object.assign({key:"e168f9f1212433eb17769c11260f546e441ca274"},{"data-arrow-position":i,"data-position":e},{onMouseenter:this.handleHover,onMouseleave:this.removeTooltip}),o("div",{key:"b8ea713c2b09b6053af73ac7d26a30f210c90e94",class:"r-tooltip"},o("div",Object.assign({key:"19cc679ec640dc98f167077e0bab16423e186258",class:"r-tooltip--trigger",onFocus:this.handleFocus,onBlur:this.removeTooltip},l),o("slot",{key:"17266fefef386f3b417d8e7d112e0345aa98e878"})),o("div",Object.assign({key:"e53283c02be43833362277fc8fe78e99c4a9adba",class:"r-tooltip--content"},s),t),o("div",{key:"98f1caf44ec7bd286cb8126022692d825f4ab617",class:"r-tooltip--arrow"})))}get element(){return i(this)}static get watchers(){return{position:["handleVerticalPosition"]}}};s.style=':host{display:inline-block;--r-tooltip--position:relative;--r-tooltip--content--position:absolute;--r-tooltip--content--top:auto;--r-tooltip--content--right:auto;--r-tooltip--content--bottom:auto;--r-tooltip--content--left:auto;--r-tooltip--content--display:none;--r-tooltip--content--content:attr(tooltip-data);--r-tooltip--content--color:var(--r-text-inverse);--r-tooltip--content--background-color:var(--r-background-inverse);--r-tooltip--content--font-family:var(--r-font-family-text);--r-tooltip--content--font-weight:var(--r-font-weight-regular);--r-tooltip--content--font-size:var(--r-font-size-200);--r-tooltip--content--line-height:var(--r-line-height-s);--r-tooltip--content--min-width:32px;--r-tooltip--content--max-width:300px;--r-tooltip--content--min-height:32px;--r-tooltip--content--padding:var(--r-spacing-050) var(--r-spacing-100);--r-tooltip--content--width:max-content;--r-tooltip--content--word-break:break-word;--r-tooltip--content--box-sizing:border-box;--r-tooltip--content--justify-content:center;--r-tooltip--content--align-items:center;--r-tooltip--content--z-index:0;--r-tooltip--content--transform:none;--r-tooltip--arrow--display:none;--r-tooltip--arrow--position:absolute;--r-tooltip--arrow--top:auto;--r-tooltip--arrow--right:auto;--r-tooltip--arrow--bottom:auto;--r-tooltip--arrow--left:50%;--r-tooltip--arrow--width:12px;--r-tooltip--arrow--height:6px;--r-tooltip--arrow--transform:translateX(-50%) rotate(180deg);--r-tooltip--arrow--inner-content:"";--r-tooltip--arrow--inner--width:12px;--r-tooltip--arrow--inner--height:6px;--r-tooltip--arrow--inner--background-color:var(--r-tooltip--content--background-color);--r-tooltip--arrow--inner--clip-path:polygon(50% 0%, 0% 100%, 100% 100%);--r-tooltip--arrow--inner--border-radius:0;--r-tooltip--arrow--inner--align-self:flex-end}:host slot{display:contents}:host([data-arrow-position=left]){--r-tooltip--content--left:- var(--r-spacing-100)}:host([data-arrow-position=right]){--r-tooltip--content--right:- var(--r-spacing-100)}:host([data-arrow-position=center]){--r-tooltip--content--left:50%;--r-tooltip--content--transform:translate(-50%)}:host([data-position=top]){--r-tooltip--content--bottom:calc(100% + var(--r-spacing-075));--r-tooltip--arrow--bottom:100%;--r-tooltip--arrow--height:calc(var(--r-tooltip--arrow--inner--height) + 1.5 * var(--r-spacing-025))}:host([data-position=top][data-arrow-position=right]){--r-tooltip--content--right:0;--r-tooltip--content--left:unset}:host([data-position=bottom]){--r-tooltip--content--top:calc(100% + var(--r-spacing-075));--r-tooltip--arrow--top:100%;--r-tooltip--arrow--height:calc(var(--r-tooltip--arrow--inner--height) + 1.6 * var(--r-spacing-025));--r-tooltip--arrow--transform:translateX(-50%) rotate(0)}:host([data-position=bottom][data-arrow-position=right]){--r-tooltip--content--right:0;--r-tooltip--content--left:unset}:host([data-position=right]){--r-tooltip--content--left:calc(100% + var(--r-tooltip--arrow--height) + 0.1875rem);--r-tooltip--arrow--left:100%;--r-tooltip--arrow--transform:rotate(270deg)}:host([data-position=left]){--r-tooltip--content--right:calc(100% + var(--r-tooltip--arrow--height) + 0.1875rem);--r-tooltip--content--left:unset;--r-tooltip--arrow--right:100%;--r-tooltip--arrow--left:unset;--r-tooltip--arrow--transform:rotate(90deg)}:host([data-position=right]),:host([data-position=left]){--r-tooltip--content--top:50%;--r-tooltip--content--transform:translateY(-50%);--r-tooltip--arrow--top:calc(50% - calc(var(--r-tooltip--arrow--height)/2))}.r-tooltip{position:var(--r-tooltip--position)}.r-tooltip:has(.r-tooltip--content--visible){--r-tooltip--content--width:max-content;--r-tooltip--content--display:flex;--r-tooltip--content--z-index:1060;--r-tooltip--arrow--display:flex;--r-tooltip--arrow--inner--display:block}.r-tooltip--trigger{color:var(--r-tooltip--trigger--color, inherit);box-shadow:var(--r-tooltip--trigger--box-shadow, none);outline:var(--r-tooltip--trigger--outline, none);outline-offset:var(--r-tooltip--trigger--outline-offset, 0)}.r-tooltip--trigger:focus{--r-tooltip--trigger--box-shadow:0 0 0 6px var(--r-border-focused-outlined);--r-tooltip--trigger--outline:2px solid var(--r-border-focused);--r-tooltip--trigger--outline-offset:2px}.r-tooltip--content{position:var(--r-tooltip--content--position);top:var(--r-tooltip--content--top);right:var(--r-tooltip--content--right);bottom:var(--r-tooltip--content--bottom);left:var(--r-tooltip--content--left);display:var(--r-tooltip--content--display);content:var(--r-tooltip--content--content);color:var(--r-tooltip--content--color);background-color:var(--r-tooltip--content--background-color);font-family:var(--r-tooltip--content--font-family);font-weight:var(--r-tooltip--content--font-weight);font-size:var(--r-tooltip--content--font-size);line-height:var(--r-tooltip--content--line-height);min-width:var(--r-tooltip--content--min-width);max-width:var(--r-tooltip--content--max-width);min-height:var(--r-tooltip--content--min-height);padding:var(--r-tooltip--content--padding);width:var(--r-tooltip--content--width);word-break:var(--r-tooltip--content--word-break);box-sizing:var(--r-tooltip--content--box-sizing);z-index:var(--r-tooltip--content--z-index);transform:var(--r-tooltip--content--transform)}.r-tooltip--arrow{display:var(--r-tooltip--arrow--display);position:var(--r-tooltip--arrow--position);width:var(--r-tooltip--arrow--width);height:var(--r-tooltip--arrow--height);top:var(--r-tooltip--arrow--top);right:var(--r-tooltip--arrow--right);bottom:var(--r-tooltip--arrow--bottom);left:var(--r-tooltip--arrow--left);transform:var(--r-tooltip--arrow--transform)}.r-tooltip--arrow:after{content:var(--r-tooltip--arrow--inner-content);display:var(--r-tooltip--arrow--inner--display);width:var(--r-tooltip--arrow--inner--width);height:var(--r-tooltip--arrow--inner--height);background-color:var(--r-tooltip--arrow--inner--background-color);clip-path:var(--r-tooltip--arrow--inner--clip-path);border-radius:var(--r-tooltip--arrow--inner--border-radius);align-self:var(--r-tooltip--arrow--inner--align-self)}';export{n as r_hint,a as r_label,s as r_tooltip}
@@ -1 +1 @@
1
- import{r,c as t,h as a,H as e,g as o}from"./p-CTxpqopm.js";const i=class{constructor(a){r(this,a),this.tabChange=t(this,"tabChange"),this.moveTabFocus=t(this,"moveTabFocus"),this.disabled=!1,this.active=!1,this.handleClick=()=>{this.disabled||this.active||this.tabChange.emit({element:this.host})},this.handleKeyup=r=>{this.disabled||this.active||("Enter"===r.code||"Space"===r.code)&&this.tabChange.emit({element:this.host})},this.handleKeydown=r=>{if(!this.disabled){switch(r.code){case"Space":case"Home":case"End":r.preventDefault()}this.moveTabFocus.emit({element:this.host,keycode:r.code})}}}render(){const{disabled:r,active:t,panelId:o}=this;return a(e,Object.assign({key:"37eb79a81d963b2a5b4f89043dd831b036b2a339",onClick:this.handleClick,onKeyUp:this.handleKeyup,onKeyDown:this.handleKeydown},{role:"tab",tabindex:t?"0":"-1","panel-id":o,"aria-controls":o,"aria-selected":`${t}`,"aria-disabled":`${r}`}),a("span",{key:"20fd97865f8fd74912cdf857b52bc566238575b0",class:"r-tab"},a("span",{key:"2b24c42f48edc27363fe2e8ed1c6851abd2a0dc1",class:"r-tab--slot"},a("slot",{key:"aaffeb47872fd819f1a24fce1dcd36f8b22347e2"}))))}get host(){return o(this)}};i.style=':host{display:flex;outline:none;opacity:1;cursor:pointer}:host(:hover:not([disabled]:not([disabled=false]))){--r-tab--color:var(--r-text-strong);--r-tab--marker--height:5px;--r-tab--marker--background-color:var(--r-border-softer, #c9c9c9);--r-tab--marker--visibility:visible}:host(:active:not([disabled]:not([disabled=false]))){--r-tab--background-color:var(--r-background-interactive-pressed, rgba(40,40,40,0.12))}:host(:focus-visible){--r-tab--marker--visibility:visible;--r-tab--marker--height:5px;--r-tab--marker--background-color:var(--r-background-interactive-pressed, rgba(40,40,40,0.12));--r-tab--slot--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-tab--slot--outline:2px solid var(--r-border-focused, #0071e3);--r-tab--slot--outline-offset:2px}:host([active]:not([active=false])){cursor:default;--r-tab--font-weight:var(--r-font-weight-semibold, 600);--r-tab--color:var(--r-text-strong, #000);--r-tab--padding-left:0.5625rem;--r-tab--padding-right:0.5625rem;--r-tab--marker--background-color:var(--r-border-regular, #282828);--r-tab--marker--visibility:visible;--r-tab--marker--height:3px}:host([disabled]:not([disabled=false])){opacity:0.4;cursor:not-allowed;--r-tab--pointer-events:none;--r-tab--marker--visibility:hidden;--r-tab--slot--box-shadow:none}.r-tab{position:var(--r-tab--position, relative);font-family:var(--r-tab--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-tab--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-tab--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-tab--line-height, 1);cursor:var(--r-tab--cursor, inherit);pointer-events:var(--r-tab--pointer-events, initial);padding-top:var(--r-tab--padding-top, 0);padding-right:var(--r-tab--padding-right, 0.625rem);padding-bottom:var(--r-tab--padding-bottom, 1.25rem);padding-left:var(--r-tab--padding-left, 0.625rem);opacity:var(--r-tab--opacity, 1);background:var(--r-tab--background, none);color:var(--r-tab--color, var(--r-text-regular, #282828));border:var(--r-tab--border, none);box-shadow:var(--r-tab--box-shadow, none);outline:var(--r-tab--outline, none)}.r-tab::after{content:var(--r-tab--marker--content, "");width:var(--r-tab--marker--width, 100%);height:var(--r-tab--marker--height, 3px);position:var(--r-tab--marker--position, absolute);bottom:var(--r-tab--marker--bottom, 0);left:var(--r-tab--marker--left, 0);visibility:var(--r-tab--marker--visibility, hidden);background-color:var(--r-tab--marker--background-color, rgba(0, 0, 0, 0));transition:var(--r-tab--marker--transition, all 0.1s ease-in)}.r-tab--slot{box-shadow:var(--r-tab--slot--box-shadow, none);outline:var(--r-tab--slot--outline, none);outline-offset:var(--r-tab--slot--outline-offset, 0)}';export{i as r_tab}
1
+ import{r,c as t,h as a,H as e,g as o}from"./p-CTxpqopm.js";const i=class{constructor(a){r(this,a),this.tabChange=t(this,"tabChange"),this.moveTabFocus=t(this,"moveTabFocus"),this.disabled=!1,this.active=!1,this.handleClick=()=>{this.disabled||this.active||this.tabChange.emit({element:this.host})},this.handleKeyup=r=>{this.disabled||this.active||("Enter"===r.code||"Space"===r.code)&&this.tabChange.emit({element:this.host})},this.handleKeydown=r=>{if(!this.disabled){switch(r.code){case"Space":case"Home":case"End":r.preventDefault()}this.moveTabFocus.emit({element:this.host,keycode:r.code})}}}render(){const{disabled:r,active:t,panelId:o}=this;return a(e,Object.assign({key:"2e2b2d84376e097c80a84a1e7224c0f026c16277",onClick:this.handleClick,onKeyUp:this.handleKeyup,onKeyDown:this.handleKeydown},{role:"tab",tabindex:t?"0":"-1","panel-id":o,"aria-controls":o,"aria-selected":`${t}`,"aria-disabled":`${r}`}),a("span",{key:"c38098d413b17ba8b8ddd3436687879d1b37114f",class:"r-tab"},a("span",{key:"3f7bfedd8a933da7ec52f34dd64f3a4e862cb836",class:"r-tab--slot"},a("slot",{key:"bc056a0d06188ddd1b47c3c062a4d51367e48393"}))))}get host(){return o(this)}};i.style=':host{display:flex;outline:none;opacity:1;cursor:pointer}:host(:hover:not([disabled]:not([disabled=false]))){--r-tab--color:var(--r-text-strong);--r-tab--marker--height:5px;--r-tab--marker--background-color:var(--r-border-softer, #c9c9c9);--r-tab--marker--visibility:visible}:host(:active:not([disabled]:not([disabled=false]))){--r-tab--background-color:var(--r-background-interactive-pressed, rgba(40,40,40,0.12))}:host(:focus-visible){--r-tab--marker--visibility:visible;--r-tab--marker--height:5px;--r-tab--marker--background-color:var(--r-background-interactive-pressed, rgba(40,40,40,0.12));--r-tab--slot--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-tab--slot--outline:2px solid var(--r-border-focused, #0071e3);--r-tab--slot--outline-offset:2px}:host([active]:not([active=false])){cursor:default;--r-tab--font-weight:var(--r-font-weight-semibold, 600);--r-tab--color:var(--r-text-strong, #000);--r-tab--padding-left:0.5625rem;--r-tab--padding-right:0.5625rem;--r-tab--marker--background-color:var(--r-border-regular, #282828);--r-tab--marker--visibility:visible;--r-tab--marker--height:3px}:host([disabled]:not([disabled=false])){opacity:0.4;cursor:not-allowed;--r-tab--pointer-events:none;--r-tab--marker--visibility:hidden;--r-tab--slot--box-shadow:none}.r-tab{position:var(--r-tab--position, relative);font-family:var(--r-tab--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-tab--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-tab--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-tab--line-height, 1);cursor:var(--r-tab--cursor, inherit);pointer-events:var(--r-tab--pointer-events, initial);padding-top:var(--r-tab--padding-top, 0);padding-right:var(--r-tab--padding-right, 0.625rem);padding-bottom:var(--r-tab--padding-bottom, 1.25rem);padding-left:var(--r-tab--padding-left, 0.625rem);opacity:var(--r-tab--opacity, 1);background:var(--r-tab--background, none);color:var(--r-tab--color, var(--r-text-regular, #282828));border:var(--r-tab--border, none);box-shadow:var(--r-tab--box-shadow, none);outline:var(--r-tab--outline, none)}.r-tab::after{content:var(--r-tab--marker--content, "");width:var(--r-tab--marker--width, 100%);height:var(--r-tab--marker--height, 3px);position:var(--r-tab--marker--position, absolute);bottom:var(--r-tab--marker--bottom, 0);left:var(--r-tab--marker--left, 0);visibility:var(--r-tab--marker--visibility, hidden);background-color:var(--r-tab--marker--background-color, rgba(0, 0, 0, 0));transition:var(--r-tab--marker--transition, all 0.1s ease-in)}.r-tab--slot{box-shadow:var(--r-tab--slot--box-shadow, none);outline:var(--r-tab--slot--outline, none);outline-offset:var(--r-tab--slot--outline-offset, 0)}';export{i as r_tab}
@@ -1 +1 @@
1
- import{r as e,h as t,H as r,g as p}from"./p-CTxpqopm.js";const s=class{constructor(t){e(this,t),this.completed=0,this.completeSteps=0}get hasSteps(){return this.host.querySelectorAll("r-stepper-item").length>0}render(){const e=this.completed||this.completeSteps;return t(r,{key:"188b896d5ce5a5380c8258e7c9e39e968badc0e6"},t("div",{key:"b7f8f02949bb732a88fef51176b25c21fbfface1",class:"r-stepper"},!this.hasSteps&&Array.from({length:this.total},((r,p)=>t("r-stepper-item",{number:p+1,complete:e>p,active:e===p,key:p}))),t("slot",{key:"fc60a9cefbce012cfb21ba8c041eb585a357624c"})))}get host(){return p(this)}};s.style='.r-stepper{display:var(--r-stepper--display, flex);align-items:var(--r-stepper--align-items, top)}.r-stepper>r-stepper-item,.r-stepper ::slotted(r-stepper-item){display:var(--r-stepper--slotted--stepper-item--display, flex)}.r-stepper>r-stepper-item:not(:last-of-type),.r-stepper ::slotted(r-stepper-item:not(:last-child)){flex:var(--r-stepper--slotted--stepper-item--flex, 1)}.r-stepper>r-stepper-item:not(:last-of-type)::after,.r-stepper ::slotted(r-stepper-item:not(:last-child))::after{content:var(--r-stepper-divider--content, "");display:var(--r-stepper-divider--display, block);position:var(--r-stepper-divider--position, relative);width:var(--r-stepper-divider--width, 100%);height:var(--r-stepper-divider--height, 1px);top:var(--r-stepper-divider--top, 10px);background-color:var(--r-stepper-divider--background-color, var(--r-border-soft, #686868))}';export{s as r_stepper}
1
+ import{r as e,h as t,H as r,g as p}from"./p-CTxpqopm.js";const s=class{constructor(t){e(this,t),this.completed=0,this.completeSteps=0}get hasSteps(){return this.host.querySelectorAll("r-stepper-item").length>0}render(){const e=this.completed||this.completeSteps;return t(r,{key:"d501495c36f83cfc14c706f46936d5acc925d6d2"},t("div",{key:"a2952de15ea74093ea41663438bc8fec866d428b",class:"r-stepper"},!this.hasSteps&&Array.from({length:this.total},((r,p)=>t("r-stepper-item",{number:p+1,complete:e>p,active:e===p,key:p}))),t("slot",{key:"4834a5947ae40241607131dcbb3dfa56354fdc13"})))}get host(){return p(this)}};s.style='.r-stepper{display:var(--r-stepper--display, flex);align-items:var(--r-stepper--align-items, top)}.r-stepper>r-stepper-item,.r-stepper ::slotted(r-stepper-item){display:var(--r-stepper--slotted--stepper-item--display, flex)}.r-stepper>r-stepper-item:not(:last-of-type),.r-stepper ::slotted(r-stepper-item:not(:last-child)){flex:var(--r-stepper--slotted--stepper-item--flex, 1)}.r-stepper>r-stepper-item:not(:last-of-type)::after,.r-stepper ::slotted(r-stepper-item:not(:last-child))::after{content:var(--r-stepper-divider--content, "");display:var(--r-stepper-divider--display, block);position:var(--r-stepper-divider--position, relative);width:var(--r-stepper-divider--width, 100%);height:var(--r-stepper-divider--height, 1px);top:var(--r-stepper-divider--top, 10px);background-color:var(--r-stepper-divider--background-color, var(--r-border-soft, #686868))}';export{s as r_stepper}
@@ -1 +1 @@
1
- import{r as t,c as a,h as r,H as o,g as s}from"./p-CTxpqopm.js";const i=class{constructor(r){t(this,r),this.rClickToastTrailingIcon=a(this,"rClickToastTrailingIcon"),this.toastDismiss=a(this,"dismiss"),this.toastReveal=a(this,"reveal"),this.toastHide=a(this,"hide"),this.open=!0,this.status="info",this.trailingIcon="cross",this.target="_self",this.delay=3e3,this.dismissMode="auto",this.dismissLabel="Dismiss the toast",this.delayBeforeRemoval=300,this.uniqueId=`r-toast-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.hasElContent=t=>{const a=this.host.querySelector(t);return null!==a&&(null==a?void 0:a.textContent.trim().length)>0},this.startDelayTimer=()=>{this.delayTimer=setTimeout((()=>{this.dismiss(),clearTimeout(this.delayTimer)}),this.delay)},this.handleTrailingButtonClick=()=>{this.rClickToastTrailingIcon.emit(),this.dismiss()},this.handleSlotChange=()=>{this.host.setAttribute("is-content",`${this.hasContent}`)}}async dismiss(){this.host.style.setProperty("--r-toast--host--height-expanded",`${this.host.offsetHeight}px`),this.isOpen=!1,this.toastDismiss.emit(),this.removalTimer&&clearTimeout(this.removalTimer),this.removalTimer=setTimeout((()=>this.host.remove()),this.delayBeforeRemoval)}async reveal(){this.isOpen=!0,this.toastReveal.emit(),this.delayTimer&&clearTimeout(this.delayTimer),this.isDismissManual||this.hasDelay&&this.startDelayTimer()}async hide(){this.isOpen=!1,this.toastHide.emit()}async toggle(){this.isOpen?this.hide():this.reveal()}handleOpenChange(){this.isOpen?this.hide():this.reveal()}get hasLeadingIcon(){var t;return(null===(t=this.leadingIcon)||void 0===t?void 0:t.length)>0}get hasLeadingSlot(){return this.hasElContent('[slot="leading"]')}get hasLeading(){return this.hasLeadingIcon||this.hasLeadingSlot}get hasTrailingSlot(){return this.hasElContent('[slot="trailing"]')}get isDismissManual(){return"manual"===this.dismissMode||this.dismissable}get hasTrailing(){return this.hasTrailingSlot||this.isDismissManual}get hasContent(){var t;return(null===(t=this.host.textContent)||void 0===t?void 0:t.trim().length)>0}get hasActionLink(){return"string"==typeof this.href&&"string"==typeof this.action}get hasActionSlot(){return this.hasElContent('[slot="action"]')}get hasAction(){return this.hasActionLink||this.hasActionSlot}get hasHeadlineSlot(){return this.hasElContent('[slot="headline"]')}get hasHeadline(){return"string"==typeof this.headline||this.hasHeadlineSlot}get hasDelay(){return this.delay&&this.delay>0}get isError(){return"error"===this.status}componentWillLoad(){this.open?this.reveal():this.hide()}render(){const{headline:t,href:a,action:s,target:i,leadingIcon:e,trailingIcon:n}=this,l={href:a,target:i},h={name:e,size:"s"},c={name:n,size:"m"};return r(o,{key:"735ca672ada6e0f18e779c7e7c4e91b6b43eb0ee",id:this.uniqueId,role:this.isError?"alert":"status","aria-live":"polite","aria-label":`${t}`,"aria-hidden":this.isOpen?"false":"true"},r("div",{key:"19111d35a3c74aad69c8eeb5a154110036bc2329",class:"r-toast"},this.hasLeading&&r("div",{key:"32487682215fc8f91c7bb965bc23c5d02b50bf90",class:"r-toast--leading"},this.hasLeadingSlot&&r("slot",{key:"505a8ecdd125547c5cad80551874550242185246",name:"leading"}),this.hasLeadingIcon&&r("r-icon",Object.assign({key:"174bf4165ce4f8248487a7da3c71893fe8504643",class:"r-toast--leading-icon"},h))),r("div",{key:"74afa923a018a691e447fbdf1c06cd5bdf7b5595",class:"r-toast--main"},this.hasHeadline&&r("h2",{key:"0ecdf558a2b39e63dc9b266d5a26f9072fc44393",class:"r-toast--headline"},r("slot",{key:"39d80961d678b1be93967947376bdb1437eef085",name:"headline"},t)),this.hasContent&&r("div",{key:"b411b3ae8ccb35d5ce842ccbe58945551449e046",class:"r-toast--content r-typography"},r("slot",{key:"f9caff50220e64aa8bfd3af06dac4459bd2a9e82",onSlotchange:this.handleSlotChange})),this.hasAction&&r("div",{key:"1146e7225be5beaf570eceffff1a436e149949e0",class:"r-toast--action"},r("slot",{key:"eabb6a214421c354a6981a27f515c609ef2b5c57",name:"action"},this.hasActionLink&&r("a",Object.assign({key:"953f8df836eea20e60cc3d91b0eaa244343890dc",class:"r-toast--action-link"},l),s)))),this.hasTrailing&&r("div",{key:"e085ed23280a9d055827465832cc9f1f13929c8e",class:"r-toast--trailing"},this.hasTrailingSlot&&r("slot",{key:"dfc64ef44af689f3d86eaa1a56afbbc8fd7cca9d",name:"trailing"}),this.isDismissManual&&r("r-icon-button",Object.assign({key:"c3037f5d1a0226786d0c8a349cb7788058d5882e"},c,{class:"r-toast--trailing-button",onClick:this.handleTrailingButtonClick,"aria-label":this.dismissLabel}),r("slot",{key:"217cdf1724599ca9d59e87209f4ca31b738394a5",name:"dismiss"})))))}get host(){return s(this)}static get watchers(){return{open:["handleOpenChange"]}}};i.style=":host([status=info]){--r-toast--border-color:var(--r-status-info-regular, #466882);--r-toast--background-color:var(--r-status-info-soft, #f8fafb);--r-toast--leading-icon--color:var(--r-status-info-regular, #466882)}:host([status=warning]){--r-toast--border-color:var(--r-status-warning-regular, #f26a20);--r-toast--background-color:var(--r-status-warning-soft, #fef9f5);--r-toast--leading-icon--color:var(--r-status-warning-strong, #89411A)}:host([status=error]){--r-toast--border-color:var(--r-status-error-regular, #da1e28);--r-toast--background-color:var(--r-status-error-soft, #fef6f6);--r-toast--leading-icon--color:var(--r-status-error-regular, #da1e28)}:host([status=success]){--r-toast--border-color:var(--r-status-success-regular, #298535);--r-toast--background-color:var(--r-status-success-soft, #f7fdf8);--r-toast--leading-icon--color:var(--r-status-success-regular, #298535)}:host([is-content=false]){--r-toast--content--display:none}:host([headline]){--r-toast--content--margin-top:var(--r-spacing-050, 0.5rem)}:host([aria-hidden=true]){--r-toast--host--transition:all 0.15s;--r-toast--host--transition-delay:0.15s;--r-toast--host--opacity:0;--r-toast--host--height-expanded:0}:host{animation-duration:var(--r-toast--host--animation-duration, 0.3s);animation-fill-mode:var(--r-toast--host--animation-fill-mode, forwards);animation-name:var(--r-toast--host--animation-name, none);box-sizing:var(--r-toast--host--box-sizing, border-box);display:var(--r-toast--host--display, block);height:var(--r-toast--host--height, var(--r-toast--host--height-expanded, auto));opacity:var(--r-toast--host--opacity, 1);overflow:var(--r-toast--host--overflow, hidden);position:var(--r-toast--host--position, relative);transition:var(--r-toast--host--transition, all 0.3s);transition-delay:var(--r-toast--host--transition-delay, 0s)}:host ::slotted(p){margin:0}:host ::slotted(p+p),:host ::slotted(p+ul),:host ::slotted(p+ol){margin-top:1rem}:host .r-toast--action-link:hover{--r-toast--action--color:var(--r-text-strong, #000000)}:host .r-toast--action-link:focus{outline:var(--r-toast--action-link--outline, 2px solid var(--r-border-focused, #0071e3));box-shadow:var(--r-toast--action-link--box-shadow, 0 0 0 1px var(--r-border-focused-outlined, #fff), 0 0 0 3px var(--r-border-focused, #0071e3), 0 0 0 4px var(--r-border-focused-outlined, #fff))}:host .r-toast--trailing-button{--r-button--width:2.75rem;--r-button--height:2.75rem;--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:transparent;--r-button--background-color:transparent;position:relative;top:-8px;right:-8px}:host .r-toast--trailing-button:hover{--r-button--color:var(--r-text-strong, #000000);--r-button--background-color:var(--r-background-interactive-hovered, #000000)}:host .r-toast--trailing-button:active{--r-button--transform:scale(0.94)}.r-toast{font-family:var(--r-toast--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-toast--font-size, var(--r-font-size-400, 1rem));display:var(--r-toast--display, flex);flex-direction:var(--r-toast--flex-direction, row);align-items:var(--r-toast--align-items, stretch);gap:var(--r-toast--gap, var(--r-spacing-075, 0.75rem));padding:var(--r-toast--padding, var(--r-spacing-100, 1rem));border-width:var(--r-toast--border-width, 1px);border-style:var(--r-toast--border-style, solid);border-color:var(--r-toast--border-color, var(--r-status-info-regular, #466882));background-color:var(--r-toast--background-color, var(--r-status-info-soft, #f8fafb));box-sizing:var(--r-toast--box-sizing, border-box);transition:var(--r-toast--transition, all 0.3s)}.r-toast--main{flex:var(--r-toast--content--flex, 1)}.r-toast--leading-icon{color:var(--r-toast--leading-icon--color, var(--r-status-info-regular, #466882));margin-top:var(--r-toast--leading-icon--margin-top, 0.05em)}.r-toast--headline{color:var(--r-toast--headline--color, var(--r-text-regular, #282828));font-size:var(--r-toast--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-toast--headline--font-weight, var(--r-font-weight-semibold, 600));margin:var(--r-toast--headline--margin, 0)}.r-toast--content{display:var(--r-toast--content--display, block);color:var(--r-toast--content--color, var(--r-text-regular, #282828));line-height:var(--r-toast--content--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-toast--content--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--content--font-weight, var(--r-font-weight-light, 300));margin-top:var(--r-toast--content--margin-top, 0)}.r-toast--action{display:var(--r-toast--action--display, flex);margin-top:var(--r-toast--action--margin-top, var(--r-spacing-050, 0.5rem));color:var(--r-toast--action--color, var(--r-text-regular, #282828));font-size:var(--r-toast--action--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--action--font-weight, var(--r-font-weight-light, 300))}.r-toast--action-link{color:var(--r-toast--action--color, var(--r-text-regular, #282828))}.r-toast--action ::slotted(*){font-size:inherit;color:inherit}.r-toast--action ::slotted(a){color:var(--r-toast--action--color, var(--r-text-regular, #282828))}";export{i as r_toast}
1
+ import{r as t,c as r,h as a,H as o,g as s}from"./p-CTxpqopm.js";const i=class{constructor(a){t(this,a),this.rClickToastTrailingIcon=r(this,"rClickToastTrailingIcon"),this.toastDismiss=r(this,"dismiss"),this.toastReveal=r(this,"reveal"),this.toastHide=r(this,"hide"),this.open=!0,this.status="info",this.trailingIcon="cross",this.target="_self",this.delay=3e3,this.dismissMode="auto",this.dismissLabel="Dismiss the toast",this.delayBeforeRemoval=300,this.uniqueId=`r-toast-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.hasElContent=t=>{const r=this.host.querySelector(t);return null!==r&&(null==r?void 0:r.textContent.trim().length)>0},this.startDelayTimer=()=>{this.delayTimer=setTimeout((()=>{this.dismiss(),clearTimeout(this.delayTimer)}),this.delay)},this.handleTrailingButtonClick=()=>{this.rClickToastTrailingIcon.emit(),this.dismiss()},this.handleSlotChange=()=>{this.host.setAttribute("is-content",`${this.hasContent}`)}}async dismiss(){this.host.style.setProperty("--r-toast--host--height-expanded",`${this.host.offsetHeight}px`),this.isOpen=!1,this.toastDismiss.emit(),this.removalTimer&&clearTimeout(this.removalTimer),this.removalTimer=setTimeout((()=>this.host.remove()),this.delayBeforeRemoval)}async reveal(){this.isOpen=!0,this.toastReveal.emit(),this.delayTimer&&clearTimeout(this.delayTimer),this.isDismissManual||this.hasDelay&&this.startDelayTimer()}async hide(){this.isOpen=!1,this.toastHide.emit()}async toggle(){this.isOpen?this.hide():this.reveal()}handleOpenChange(){this.isOpen?this.hide():this.reveal()}get hasLeadingIcon(){var t;return(null===(t=this.leadingIcon)||void 0===t?void 0:t.length)>0}get hasLeadingSlot(){return this.hasElContent('[slot="leading"]')}get hasLeading(){return this.hasLeadingIcon||this.hasLeadingSlot}get hasTrailingSlot(){return this.hasElContent('[slot="trailing"]')}get isDismissManual(){return"manual"===this.dismissMode||this.dismissable}get hasTrailing(){return this.hasTrailingSlot||this.isDismissManual}get hasContent(){var t;return(null===(t=this.host.textContent)||void 0===t?void 0:t.trim().length)>0}get hasActionLink(){return"string"==typeof this.href&&"string"==typeof this.action}get hasActionSlot(){return this.hasElContent('[slot="action"]')}get hasAction(){return this.hasActionLink||this.hasActionSlot}get hasHeadlineSlot(){return this.hasElContent('[slot="headline"]')}get hasHeadline(){return"string"==typeof this.headline||this.hasHeadlineSlot}get hasDelay(){return this.delay&&this.delay>0}get isError(){return"error"===this.status}componentWillLoad(){this.open?this.reveal():this.hide()}render(){const{headline:t,href:r,action:s,target:i,leadingIcon:e,trailingIcon:n}=this,h={href:r,target:i},l={name:e,size:"s"},c={name:n,size:"m"};return a(o,{key:"f5413c4a9e1335b4a4e2f37cef036acbc7c05770",id:this.uniqueId,role:this.isError?"alert":"status","aria-live":"polite","aria-label":`${t}`,"aria-hidden":this.isOpen?"false":"true"},a("div",{key:"3a222a7eaac62655c1cc7361865321c6a130f1fc",class:"r-toast"},this.hasLeading&&a("div",{key:"91d8dd470641658118be1e7c99c4e2cf648fce5f",class:"r-toast--leading"},this.hasLeadingSlot&&a("slot",{key:"2c877ff1c79839e66c5f7ec79926a4f5eb807d02",name:"leading"}),this.hasLeadingIcon&&a("r-icon",Object.assign({key:"f238d9fc8eb6f0360bc97587e0b3ab9b2d077314",class:"r-toast--leading-icon"},l))),a("div",{key:"568bb66c165a3f3d9e52c74fc51673283e3789f8",class:"r-toast--main"},this.hasHeadline&&a("h2",{key:"2267cbc787dfe1d9de4b35bc81981c3fe0df8deb",class:"r-toast--headline"},a("slot",{key:"0a64068708db344d785db7d94fdb7edfcdf4fb7e",name:"headline"},t)),this.hasContent&&a("div",{key:"e4b198949b659f7724ca2191145da9e577546bdf",class:"r-toast--content r-typography"},a("slot",{key:"bd063b802fd04ee1606e4934511a2f48ec2c9304",onSlotchange:this.handleSlotChange})),this.hasAction&&a("div",{key:"38c9af908aa62379cf9c914426bfb7d7ba707608",class:"r-toast--action"},a("slot",{key:"e25437e3a9298f21a9e6c7fd1b86cccaa096b44d",name:"action"},this.hasActionLink&&a("a",Object.assign({key:"9cae694c50dd9aab6acde4924dce66ec7823c5b9",class:"r-toast--action-link"},h),s)))),this.hasTrailing&&a("div",{key:"fd7207cb911423a81a3ac80a26cbc025e5689e16",class:"r-toast--trailing"},this.hasTrailingSlot&&a("slot",{key:"5bcd5167e2299f62c20ed80be93dd06a8303dcab",name:"trailing"}),this.isDismissManual&&a("r-icon-button",Object.assign({key:"c33a87247c3ff02dc3ed4d4205f20fcdf2259f2e"},c,{class:"r-toast--trailing-button",onClick:this.handleTrailingButtonClick,"aria-label":this.dismissLabel}),a("slot",{key:"05ddb2629df06aaa350c88b442df7894a2f4bcd7",name:"dismiss"})))))}get host(){return s(this)}static get watchers(){return{open:["handleOpenChange"]}}};i.style=":host([status=info]){--r-toast--border-color:var(--r-status-info-regular, #466882);--r-toast--background-color:var(--r-status-info-soft, #f8fafb);--r-toast--leading-icon--color:var(--r-status-info-regular, #466882)}:host([status=warning]){--r-toast--border-color:var(--r-status-warning-regular, #f26a20);--r-toast--background-color:var(--r-status-warning-soft, #fef9f5);--r-toast--leading-icon--color:var(--r-status-warning-strong, #89411A)}:host([status=error]){--r-toast--border-color:var(--r-status-error-regular, #da1e28);--r-toast--background-color:var(--r-status-error-soft, #fef6f6);--r-toast--leading-icon--color:var(--r-status-error-regular, #da1e28)}:host([status=success]){--r-toast--border-color:var(--r-status-success-regular, #298535);--r-toast--background-color:var(--r-status-success-soft, #f7fdf8);--r-toast--leading-icon--color:var(--r-status-success-regular, #298535)}:host([is-content=false]){--r-toast--content--display:none}:host([headline]){--r-toast--content--margin-top:var(--r-spacing-050, 0.5rem)}:host([aria-hidden=true]){--r-toast--host--transition:all 0.15s;--r-toast--host--transition-delay:0.15s;--r-toast--host--opacity:0;--r-toast--host--height-expanded:0}:host{animation-duration:var(--r-toast--host--animation-duration, 0.3s);animation-fill-mode:var(--r-toast--host--animation-fill-mode, forwards);animation-name:var(--r-toast--host--animation-name, none);box-sizing:var(--r-toast--host--box-sizing, border-box);display:var(--r-toast--host--display, block);height:var(--r-toast--host--height, var(--r-toast--host--height-expanded, auto));opacity:var(--r-toast--host--opacity, 1);overflow:var(--r-toast--host--overflow, hidden);position:var(--r-toast--host--position, relative);transition:var(--r-toast--host--transition, all 0.3s);transition-delay:var(--r-toast--host--transition-delay, 0s)}:host ::slotted(p){margin:0}:host ::slotted(p+p),:host ::slotted(p+ul),:host ::slotted(p+ol){margin-top:1rem}:host .r-toast--action-link:hover{--r-toast--action--color:var(--r-text-strong, #000000)}:host .r-toast--action-link:focus{outline:var(--r-toast--action-link--outline, 2px solid var(--r-border-focused, #0071e3));box-shadow:var(--r-toast--action-link--box-shadow, 0 0 0 1px var(--r-border-focused-outlined, #fff), 0 0 0 3px var(--r-border-focused, #0071e3), 0 0 0 4px var(--r-border-focused-outlined, #fff))}:host .r-toast--trailing-button{--r-button--width:2.75rem;--r-button--height:2.75rem;--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:transparent;--r-button--background-color:transparent;position:relative;top:-8px;right:-8px}:host .r-toast--trailing-button:hover{--r-button--color:var(--r-text-strong, #000000);--r-button--background-color:var(--r-background-interactive-hovered, #000000)}:host .r-toast--trailing-button:active{--r-button--transform:scale(0.94)}.r-toast{font-family:var(--r-toast--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-toast--font-size, var(--r-font-size-400, 1rem));display:var(--r-toast--display, flex);flex-direction:var(--r-toast--flex-direction, row);align-items:var(--r-toast--align-items, stretch);gap:var(--r-toast--gap, var(--r-spacing-075, 0.75rem));padding:var(--r-toast--padding, var(--r-spacing-100, 1rem));border-width:var(--r-toast--border-width, 1px);border-style:var(--r-toast--border-style, solid);border-color:var(--r-toast--border-color, var(--r-status-info-regular, #466882));background-color:var(--r-toast--background-color, var(--r-status-info-soft, #f8fafb));box-sizing:var(--r-toast--box-sizing, border-box);transition:var(--r-toast--transition, all 0.3s)}.r-toast--main{flex:var(--r-toast--content--flex, 1)}.r-toast--leading-icon{color:var(--r-toast--leading-icon--color, var(--r-status-info-regular, #466882));margin-top:var(--r-toast--leading-icon--margin-top, 0)}.r-toast--headline{color:var(--r-toast--headline--color, var(--r-text-regular, #282828));font-size:var(--r-toast--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-toast--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-toast--headline--line-height, 1);margin:var(--r-toast--headline--margin, 0)}.r-toast--content{display:var(--r-toast--content--display, block);color:var(--r-toast--content--color, var(--r-text-regular, #282828));line-height:var(--r-toast--content--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-toast--content--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--content--font-weight, var(--r-font-weight-light, 300));margin-top:var(--r-toast--content--margin-top, 0)}.r-toast--action{display:var(--r-toast--action--display, flex);margin-top:var(--r-toast--action--margin-top, var(--r-spacing-050, 0.5rem));color:var(--r-toast--action--color, var(--r-text-regular, #282828));font-size:var(--r-toast--action--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--action--font-weight, var(--r-font-weight-light, 300))}.r-toast--action-link{color:var(--r-toast--action--color, var(--r-text-regular, #282828))}.r-toast--action ::slotted(*){font-size:inherit;color:inherit}.r-toast--action ::slotted(a){color:var(--r-toast--action--color, var(--r-text-regular, #282828))}";export{i as r_toast}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as r,g as a}from"./p-CTxpqopm.js";const o=class{constructor(e){t(this,e)}render(){return e(r,{key:"83668642a70a083a0db012ad4e80aa31eeb08b85",slot:"description"},e("div",{key:"12530fbda5f2789443e7d78237ba633922d97683",class:"r-radio-button-description",style:{display:"contents"}},e("slot",{key:"a62b23dc0e9ea5f80660e9e97a45a4f1aef50c24"})))}get host(){return a(this)}};o.style=":host{font-size:var(--r-font-size-400, 1rem);font-weight:var(--r-font-weight-regular, 400);color:var(--r-text-regular, #282828)}";export{o as r_radio_button_description}
@@ -0,0 +1 @@
1
+ import{r as a,h as e,H as t}from"./p-CTxpqopm.js";const o=class{constructor(e){a(this,e),this.active=!1}render(){const{tabId:a,active:o}=this;return e(t,Object.assign({key:"042aba1f5eebeafdff7035d8ad5afc9ec204eb8a",class:"r-typography"},{role:"tabpanel",tabindex:"0",active:o,"aria-labelledby":a}),e("div",{key:"0e9c72a859b07c1e4c2cb4a5d936fbadc07f23ca",class:"r-tab-panel"},e("slot",{key:"2d588c5c67cfd26d7762a2be0c8400faa12a96c8"})))}};o.style=":host([active]:not([active=false])){display:block}:host{display:none;outline:none}:host(:focus-visible){box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);outline:2px solid var(--r-border-focused, #0071e3);outline-offset:2px}.r-tab-panel{font-family:var(--r-tab-panel--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-tab-panel--font-size, var(--r-font-size-text-400, 1rem))}";export{o as r_tab_panel}
@@ -1 +1 @@
1
- import{r as e,c as n,h as a,H as o,g as t}from"./p-CTxpqopm.js";import{a as h}from"./p-DvLT8-y3.js";var _,i={},l={};function r(){return _||(_=1,Object.defineProperty(l,"__esModule",{value:!0}),l.default=[{alpha2:"US",alpha3:"USA",country_code:"1",country_name:"United States",mobile_begin_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","329","330","331","332","334","336","337","339","341","346","347","351","352","353","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","472","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","645","646","650","651","656","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","728","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","771","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","930","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279","340","983","448","943","363","326","839","826","948","924"],phone_number_lengths:[10]},{alpha2:"AW",alpha3:"ABW",country_code:"297",country_name:"Aruba",mobile_begin_with:["56","59","64","73","74","99"],phone_number_lengths:[7]},{alpha2:"AF",alpha3:"AFG",country_code:"93",country_name:"Afghanistan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"AO",alpha3:"AGO",country_code:"244",country_name:"Angola",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"AI",alpha3:"AIA",country_code:"1",country_name:"Anguilla",mobile_begin_with:["2642","2644","2645","2647"],phone_number_lengths:[10]},{alpha2:"AX",alpha3:"ALA",country_code:"358",country_name:"Åland Islands",mobile_begin_with:["18"],phone_number_lengths:[6,7,8]},{alpha2:"AL",alpha3:"ALB",country_code:"355",country_name:"Albania",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"AD",alpha3:"AND",country_code:"376",country_name:"Andorra",mobile_begin_with:["3","4","6"],phone_number_lengths:[6]},{alpha2:"BQ",alpha3:"BES",country_code:"599",country_name:"Caribbean Netherlands",mobile_begin_with:["3","416","700","701","795"],phone_number_lengths:[7]},{alpha2:"AE",alpha3:"ARE",country_code:"971",country_name:"United Arab Emirates",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"AR",alpha3:"ARG",country_code:"54",country_name:"Argentina",mobile_begin_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{alpha2:"AM",alpha3:"ARM",country_code:"374",country_name:"Armenia",mobile_begin_with:["3","4","5","7","9"],phone_number_lengths:[8]},{alpha2:"AS",alpha3:"ASM",country_code:"1",country_name:"American Samoa",mobile_begin_with:["684733","684258"],phone_number_lengths:[10]},{alpha2:"AG",alpha3:"ATG",country_code:"1",country_name:"Antigua and Barbuda",mobile_begin_with:["2687"],phone_number_lengths:[10]},{alpha2:"AU",alpha3:"AUS",country_code:"61",country_name:"Australia",mobile_begin_with:["4"],phone_number_lengths:[9]},{alpha2:"AT",alpha3:"AUT",country_code:"43",country_name:"Austria",mobile_begin_with:["6"],phone_number_lengths:[10,11,12,13,14]},{alpha2:"AZ",alpha3:"AZE",country_code:"994",country_name:"Azerbaijan",mobile_begin_with:["10","50","51","55","60","70","77","99"],phone_number_lengths:[9]},{alpha2:"BI",alpha3:"BDI",country_code:"257",country_name:"Burundi",mobile_begin_with:["71","72","75","76","77","79","29","61","68","69"],phone_number_lengths:[8]},{alpha2:"BE",alpha3:"BEL",country_code:"32",country_name:"Belgium",mobile_begin_with:["4","3"],phone_number_lengths:[9,8]},{alpha2:"BJ",alpha3:"BEN",country_code:"229",country_name:"Benin",mobile_begin_with:["4","6","9"],phone_number_lengths:[8]},{alpha2:"BF",alpha3:"BFA",country_code:"226",country_name:"Burkina Faso",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BD",alpha3:"BGD",country_code:"880",country_name:"Bangladesh",mobile_begin_with:["1"],phone_number_lengths:[8,9,10]},{alpha2:"BG",alpha3:"BGR",country_code:"359",country_name:"Bulgaria",mobile_begin_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{alpha2:"BH",alpha3:"BHR",country_code:"973",country_name:"Bahrain",mobile_begin_with:["3"],phone_number_lengths:[8]},{alpha2:"BS",alpha3:"BHS",country_code:"1",country_name:"Bahamas",mobile_begin_with:["242"],phone_number_lengths:[10]},{alpha2:"BA",alpha3:"BIH",country_code:"387",country_name:"Bosnia and Herzegovina",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"BY",alpha3:"BLR",country_code:"375",country_name:"Belarus",mobile_begin_with:["25","29","33","44"],phone_number_lengths:[9]},{alpha2:"BZ",alpha3:"BLZ",country_code:"501",country_name:"Belize",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"BM",alpha3:"BMU",country_code:"1",country_name:"Bermuda",mobile_begin_with:["4413","4415","4417"],phone_number_lengths:[10]},{alpha2:"BO",alpha3:"BOL",country_code:"591",country_name:"Bolivia",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BR",alpha3:"BRA",country_code:"55",country_name:"Brazil",mobile_begin_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{alpha2:"BB",alpha3:"BRB",country_code:"1",country_name:"Barbados",mobile_begin_with:["246"],phone_number_lengths:[10]},{alpha2:"BN",alpha3:"BRN",country_code:"673",country_name:"Brunei Darussalam",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"BT",alpha3:"BTN",country_code:"975",country_name:"Bhutan",mobile_begin_with:["17"],phone_number_lengths:[8]},{alpha2:"BW",alpha3:"BWA",country_code:"267",country_name:"Botswana",mobile_begin_with:["71","72","73","74","75","76","77","78","79"],phone_number_lengths:[8]},{alpha2:"CF",alpha3:"CAF",country_code:"236",country_name:"Central African Republic",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"CA",alpha3:"CAN",country_code:"1",country_name:"Canada",mobile_begin_with:["204","226","236","249","250","263","289","306","343","354","365","367","368","403","416","418","431","437","438","450","468","474","506","514","519","548","579","581","584","587","600","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905","428","382","942"],phone_number_lengths:[10]},{alpha2:"CH",alpha3:"CHE",country_code:"41",country_name:"Switzerland",mobile_begin_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{alpha2:"CL",alpha3:"CHL",country_code:"56",country_name:"Chile",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"CN",alpha3:"CHN",country_code:"86",country_name:"China",mobile_begin_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{alpha2:"CI",alpha3:"CIV",country_code:"225",country_name:"Côte D'Ivoire",mobile_begin_with:["0","4","5","6","7","8"],phone_number_lengths:[10]},{alpha2:"CM",alpha3:"CMR",country_code:"237",country_name:"Cameroon",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"CD",alpha3:"COD",country_code:"243",country_name:"Congo, The Democratic Republic Of The",mobile_begin_with:["8","9"],phone_number_lengths:[9]},{alpha2:"CG",alpha3:"COG",country_code:"242",country_name:"Congo",mobile_begin_with:["0"],phone_number_lengths:[9]},{alpha2:"CK",alpha3:"COK",country_code:"682",country_name:"Cook Islands",mobile_begin_with:["5","7"],phone_number_lengths:[5]},{alpha2:"CO",alpha3:"COL",country_code:"57",country_name:"Colombia",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"CW",alpha3:"CUW",country_code:"599",country_name:"Curaçao",mobile_begin_with:["95","96"],phone_number_lengths:[8]},{alpha2:"KM",alpha3:"COM",country_code:"269",country_name:"Comoros",mobile_begin_with:["3","76"],phone_number_lengths:[7]},{alpha2:"CV",alpha3:"CPV",country_code:"238",country_name:"Cape Verde",mobile_begin_with:["5","9"],phone_number_lengths:[7]},{alpha2:"CR",alpha3:"CRI",country_code:"506",country_name:"Costa Rica",mobile_begin_with:["5","6","7","8"],phone_number_lengths:[8]},{alpha2:"CU",alpha3:"CUB",country_code:"53",country_name:"Cuba",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"KY",alpha3:"CYM",country_code:"1",country_name:"Cayman Islands",mobile_begin_with:["345"],phone_number_lengths:[10]},{alpha2:"CY",alpha3:"CYP",country_code:"357",country_name:"Cyprus",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"CZ",alpha3:"CZE",country_code:"420",country_name:"Czech Republic",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"DE",alpha3:"DEU",country_code:"49",country_name:"Germany",mobile_begin_with:["15","16","17"],phone_number_lengths:[10,11]},{alpha2:"DJ",alpha3:"DJI",country_code:"253",country_name:"Djibouti",mobile_begin_with:["77"],phone_number_lengths:[8]},{alpha2:"DM",alpha3:"DMA",country_code:"1",country_name:"Dominica",mobile_begin_with:["767"],phone_number_lengths:[10]},{alpha2:"DK",alpha3:"DNK",country_code:"45",country_name:"Denmark",mobile_begin_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93","342","344","345","346","347","348","349","356","357","359","362","365","366","389","398","431","441","462","466","468","472","474","476","478","485","486","488","489","493","494","495","496","498","499","542","543","545","551","552","556","571","572","573","574","577","579","584","586","587","589","597","598","627","629","641","649","658","662","663","664","665","667","692","693","694","697","771","772","782","783","785","786","788","789","826","827","829"],phone_number_lengths:[8]},{alpha2:"DO",alpha3:"DOM",country_code:"1",country_name:"Dominican Republic",mobile_begin_with:["809","829","849"],phone_number_lengths:[10]},{alpha2:"DZ",alpha3:"DZA",country_code:"213",country_name:"Algeria",mobile_begin_with:["5","6","7"],phone_number_lengths:[9]},{alpha2:"EC",alpha3:"ECU",country_code:"593",country_name:"Ecuador",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"EG",alpha3:"EGY",country_code:"20",country_name:"Egypt",mobile_begin_with:["1"],phone_number_lengths:[10,8]},{alpha2:"ER",alpha3:"ERI",country_code:"291",country_name:"Eritrea",mobile_begin_with:["1","7","8"],phone_number_lengths:[7]},{alpha2:"ES",alpha3:"ESP",country_code:"34",country_name:"Spain",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"EE",alpha3:"EST",country_code:"372",country_name:"Estonia",mobile_begin_with:["5","81","82","83"],phone_number_lengths:[7,8]},{alpha2:"ET",alpha3:"ETH",country_code:"251",country_name:"Ethiopia",mobile_begin_with:["7","9"],phone_number_lengths:[9]},{alpha2:"FI",alpha3:"FIN",country_code:"358",country_name:"Finland",mobile_begin_with:["4","5"],phone_number_lengths:[6,7,9,10]},{alpha2:"FJ",alpha3:"FJI",country_code:"679",country_name:"Fiji",mobile_begin_with:["2","7","8","9"],phone_number_lengths:[7]},{alpha2:"FK",alpha3:"FLK",country_code:"500",country_name:"Falkland Islands (Malvinas)",mobile_begin_with:["5","6"],phone_number_lengths:[5]},{alpha2:"FR",alpha3:"FRA",country_code:"33",country_name:"France",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"FO",alpha3:"FRO",country_code:"298",country_name:"Faroe Islands",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"FM",alpha3:"FSM",country_code:"691",country_name:"Micronesia, Federated States Of",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"GA",alpha3:"GAB",country_code:"241",country_name:"Gabon",mobile_begin_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{alpha2:"GB",alpha3:"GBR",country_code:"44",country_name:"United Kingdom",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"GE",alpha3:"GEO",country_code:"995",country_name:"Georgia",mobile_begin_with:["5","7"],phone_number_lengths:[9]},{alpha2:"GH",alpha3:"GHA",country_code:"233",country_name:"Ghana",mobile_begin_with:["2","5"],phone_number_lengths:[9]},{alpha2:"GI",alpha3:"GIB",country_code:"350",country_name:"Gibraltar",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"GN",alpha3:"GIN",country_code:"224",country_name:"Guinea",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"GP",alpha3:"GLP",country_code:"590",country_name:"Guadeloupe",mobile_begin_with:["690","691"],phone_number_lengths:[9]},{alpha2:"GM",alpha3:"GMB",country_code:"220",country_name:"Gambia",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"GW",alpha3:"GNB",country_code:"245",country_name:"Guinea-Bissau",mobile_begin_with:["5","6","7"],phone_number_lengths:[7]},{alpha2:"GQ",alpha3:"GNQ",country_code:"240",country_name:"Equatorial Guinea",mobile_begin_with:["222","551"],phone_number_lengths:[9]},{alpha2:"GR",alpha3:"GRC",country_code:"30",country_name:"Greece",mobile_begin_with:["6"],phone_number_lengths:[10]},{alpha2:"GD",alpha3:"GRD",country_code:"1",country_name:"Grenada",mobile_begin_with:["473"],phone_number_lengths:[10]},{alpha2:"GL",alpha3:"GRL",country_code:"299",country_name:"Greenland",mobile_begin_with:["2","4","5"],phone_number_lengths:[6]},{alpha2:"GT",alpha3:"GTM",country_code:"502",country_name:"Guatemala",mobile_begin_with:["3","4","5"],phone_number_lengths:[8]},{alpha2:"GF",alpha3:"GUF",country_code:"594",country_name:"French Guiana",mobile_begin_with:["694"],phone_number_lengths:[9]},{alpha2:"GU",alpha3:"GUM",country_code:"1",country_name:"Guam",mobile_begin_with:["671"],phone_number_lengths:[10]},{alpha2:"GY",alpha3:"GUY",country_code:"592",country_name:"Guyana",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"HK",alpha3:"HKG",country_code:"852",country_name:"Hong Kong",mobile_begin_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{alpha2:"HN",alpha3:"HND",country_code:"504",country_name:"Honduras",mobile_begin_with:["3","7","8","9"],phone_number_lengths:[8]},{alpha2:"HR",alpha3:"HRV",country_code:"385",country_name:"Croatia",mobile_begin_with:["9"],phone_number_lengths:[8,9]},{alpha2:"HT",alpha3:"HTI",country_code:"509",country_name:"Haiti",mobile_begin_with:["3","4"],phone_number_lengths:[8]},{alpha2:"HU",alpha3:"HUN",country_code:"36",country_name:"Hungary",mobile_begin_with:["20","30","31","50","70"],phone_number_lengths:[9]},{alpha2:"ID",alpha3:"IDN",country_code:"62",country_name:"Indonesia",mobile_begin_with:["8"],phone_number_lengths:[9,10,11,12]},{alpha2:"IN",alpha3:"IND",country_code:"91",country_name:"India",mobile_begin_with:["6","7","8","9"],phone_number_lengths:[10]},{alpha2:"IE",alpha3:"IRL",country_code:"353",country_name:"Ireland",mobile_begin_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{alpha2:"IR",alpha3:"IRN",country_code:"98",country_name:"Iran, Islamic Republic Of",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"IQ",alpha3:"IRQ",country_code:"964",country_name:"Iraq",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"IS",alpha3:"ISL",country_code:"354",country_name:"Iceland",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"IL",alpha3:"ISR",country_code:"972",country_name:"Israel",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"IT",alpha3:"ITA",country_code:"39",country_name:"Italy",mobile_begin_with:["3"],phone_number_lengths:[9,10]},{alpha2:"JM",alpha3:"JAM",country_code:"1",country_name:"Jamaica",mobile_begin_with:["876"],phone_number_lengths:[10]},{alpha2:"JO",alpha3:"JOR",country_code:"962",country_name:"Jordan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"JP",alpha3:"JPN",country_code:"81",country_name:"Japan",mobile_begin_with:["70","80","90"],phone_number_lengths:[10]},{alpha2:"KZ",alpha3:"KAZ",country_code:"7",country_name:"Kazakhstan",mobile_begin_with:["70","74","77"],phone_number_lengths:[10]},{alpha2:"KE",alpha3:"KEN",country_code:"254",country_name:"Kenya",mobile_begin_with:["7","1"],phone_number_lengths:[9]},{alpha2:"KG",alpha3:"KGZ",country_code:"996",country_name:"Kyrgyzstan",mobile_begin_with:["20","22","31258","312973","5","600","7","88","912","99"],phone_number_lengths:[9]},{alpha2:"KH",alpha3:"KHM",country_code:"855",country_name:"Cambodia",mobile_begin_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{alpha2:"KI",alpha3:"KIR",country_code:"686",country_name:"Kiribati",mobile_begin_with:["9","30"],phone_number_lengths:[5]},{alpha2:"KN",alpha3:"KNA",country_code:"1",country_name:"Saint Kitts And Nevis",mobile_begin_with:["869"],phone_number_lengths:[10]},{alpha2:"KR",alpha3:"KOR",country_code:"82",country_name:"Korea, Republic of",mobile_begin_with:["1"],phone_number_lengths:[9,10]},{alpha2:"XK",alpha3:"XKX",country_code:"383",country_name:"Kosovo, Republic of",mobile_begin_with:["43","44","45","46","47","48","49"],phone_number_lengths:[8]},{alpha2:"KW",alpha3:"KWT",country_code:"965",country_name:"Kuwait",mobile_begin_with:["5","6","9"],phone_number_lengths:[8]},{alpha2:"LA",alpha3:"LAO",country_code:"856",country_name:"Lao People's Democratic Republic",mobile_begin_with:["20"],phone_number_lengths:[10]},{alpha2:"LB",alpha3:"LBN",country_code:"961",country_name:"Lebanon",mobile_begin_with:["3","7","8"],phone_number_lengths:[7,8]},{alpha2:"LR",alpha3:"LBR",country_code:"231",country_name:"Liberia",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[7,8]},{alpha2:"LY",alpha3:"LBY",country_code:"218",country_name:"Libyan Arab Jamahiriya",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"LC",alpha3:"LCA",country_code:"1",country_name:"Saint Lucia",mobile_begin_with:["758"],phone_number_lengths:[10]},{alpha2:"LI",alpha3:"LIE",country_code:"423",country_name:"Liechtenstein",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"LK",alpha3:"LKA",country_code:"94",country_name:"Sri Lanka",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"LS",alpha3:"LSO",country_code:"266",country_name:"Lesotho",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"LT",alpha3:"LTU",country_code:"370",country_name:"Lithuania",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"LU",alpha3:"LUX",country_code:"352",country_name:"Luxembourg",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"LV",alpha3:"LVA",country_code:"371",country_name:"Latvia",mobile_begin_with:["2"],phone_number_lengths:[8]},{alpha2:"MO",alpha3:"MAC",country_code:"853",country_name:"Macao",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MA",alpha3:"MAR",country_code:"212",country_name:"Morocco",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"MC",alpha3:"MCO",country_code:"377",country_name:"Monaco",mobile_begin_with:["4","6"],phone_number_lengths:[8,9]},{alpha2:"MD",alpha3:"MDA",country_code:"373",country_name:"Moldova, Republic of",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MG",alpha3:"MDG",country_code:"261",country_name:"Madagascar",mobile_begin_with:["3"],phone_number_lengths:[9]},{alpha2:"MV",alpha3:"MDV",country_code:"960",country_name:"Maldives",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"MX",alpha3:"MEX",country_code:"52",country_name:"Mexico",mobile_begin_with:[""],phone_number_lengths:[10,11]},{alpha2:"MH",alpha3:"MHL",country_code:"692",country_name:"Marshall Islands",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"MK",alpha3:"MKD",country_code:"389",country_name:"Macedonia, the Former Yugoslav Republic Of",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"ML",alpha3:"MLI",country_code:"223",country_name:"Mali",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MT",alpha3:"MLT",country_code:"356",country_name:"Malta",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"MM",alpha3:"MMR",country_code:"95",country_name:"Myanmar",mobile_begin_with:["9"],phone_number_lengths:[8,9,10]},{alpha2:"ME",alpha3:"MNE",country_code:"382",country_name:"Montenegro",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MN",alpha3:"MNG",country_code:"976",country_name:"Mongolia",mobile_begin_with:["5","8","9"],phone_number_lengths:[8]},{alpha2:"MP",alpha3:"MNP",country_code:"1",country_name:"Northern Mariana Islands",mobile_begin_with:["670"],phone_number_lengths:[10]},{alpha2:"MZ",alpha3:"MOZ",country_code:"258",country_name:"Mozambique",mobile_begin_with:["8"],phone_number_lengths:[9]},{alpha2:"MR",alpha3:"MRT",country_code:"222",country_name:"Mauritania",mobile_begin_with:[],phone_number_lengths:[8]},{alpha2:"MS",alpha3:"MSR",country_code:"1",country_name:"Montserrat",mobile_begin_with:["664"],phone_number_lengths:[10]},{alpha2:"MQ",alpha3:"MTQ",country_code:"596",country_name:"Martinique",mobile_begin_with:["696","697"],phone_number_lengths:[9]},{alpha2:"MU",alpha3:"MUS",country_code:"230",country_name:"Mauritius",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"MW",alpha3:"MWI",country_code:"265",country_name:"Malawi",mobile_begin_with:["77","88","99"],phone_number_lengths:[9]},{alpha2:"MY",alpha3:"MYS",country_code:"60",country_name:"Malaysia",mobile_begin_with:["1","6"],phone_number_lengths:[9,10,8]},{alpha2:"YT",alpha3:"MYT",country_code:"262",country_name:"Mayotte",mobile_begin_with:["639"],phone_number_lengths:[9]},{alpha2:"NA",alpha3:"NAM",country_code:"264",country_name:"Namibia",mobile_begin_with:["60","81","82","85"],phone_number_lengths:[9]},{alpha2:"NC",alpha3:"NCL",country_code:"687",country_name:"New Caledonia",mobile_begin_with:["5","7","8","9"],phone_number_lengths:[6]},{alpha2:"NE",alpha3:"NER",country_code:"227",country_name:"Niger",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"NF",alpha3:"NFK",country_code:"672",country_name:"Norfolk Island",mobile_begin_with:["5","8"],phone_number_lengths:[5]},{alpha2:"NG",alpha3:"NGA",country_code:"234",country_name:"Nigeria",mobile_begin_with:["70","80","81","90","91"],phone_number_lengths:[10]},{alpha2:"NI",alpha3:"NIC",country_code:"505",country_name:"Nicaragua",mobile_begin_with:["7","8"],phone_number_lengths:[8]},{alpha2:"NU",alpha3:"NIU",country_code:"683",country_name:"Niue",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"NL",alpha3:"NLD",country_code:"31",country_name:"Netherlands",mobile_begin_with:["6","97"],phone_number_lengths:[9,11]},{alpha2:"NO",alpha3:"NOR",country_code:"47",country_name:"Norway",mobile_begin_with:["4","9"],phone_number_lengths:[8]},{alpha2:"NP",alpha3:"NPL",country_code:"977",country_name:"Nepal",mobile_begin_with:["97","98"],phone_number_lengths:[10]},{alpha2:"NR",alpha3:"NRU",country_code:"674",country_name:"Nauru",mobile_begin_with:["555"],phone_number_lengths:[7]},{alpha2:"NZ",alpha3:"NZL",country_code:"64",country_name:"New Zealand",mobile_begin_with:["2"],phone_number_lengths:[8,9,10]},{alpha2:"OM",alpha3:"OMN",country_code:"968",country_name:"Oman",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"PK",alpha3:"PAK",country_code:"92",country_name:"Pakistan",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"PA",alpha3:"PAN",country_code:"507",country_name:"Panama",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"PE",alpha3:"PER",country_code:"51",country_name:"Peru",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PH",alpha3:"PHL",country_code:"63",country_name:"Philippines",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"PW",alpha3:"PLW",country_code:"680",country_name:"Palau",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"PG",alpha3:"PNG",country_code:"675",country_name:"Papua New Guinea",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"PL",alpha3:"POL",country_code:"48",country_name:"Poland",mobile_begin_with:["4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"PR",alpha3:"PRI",country_code:"1",country_name:"Puerto Rico",mobile_begin_with:["787","939"],phone_number_lengths:[10]},{alpha2:"PT",alpha3:"PRT",country_code:"351",country_name:"Portugal",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PY",alpha3:"PRY",country_code:"595",country_name:"Paraguay",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PS",alpha3:"PSE",country_code:"970",country_name:"Palestinian Territory, Occupied",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"PF",alpha3:"PYF",country_code:"689",country_name:"French Polynesia",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"QA",alpha3:"QAT",country_code:"974",country_name:"Qatar",mobile_begin_with:["3","5","6","7"],phone_number_lengths:[8]},{alpha2:"RE",alpha3:"REU",country_code:"262",country_name:"Réunion",mobile_begin_with:["692","693"],phone_number_lengths:[9]},{alpha2:"RO",alpha3:"ROU",country_code:"40",country_name:"Romania",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"RU",alpha3:"RUS",country_code:"7",country_name:"Russian Federation",mobile_begin_with:["9","495","498","499","835"],phone_number_lengths:[10]},{alpha2:"RW",alpha3:"RWA",country_code:"250",country_name:"Rwanda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SA",alpha3:"SAU",country_code:"966",country_name:"Saudi Arabia",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"SD",alpha3:"SDN",country_code:"249",country_name:"Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SS",alpha3:"SSD",country_code:"211",country_name:"South Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SN",alpha3:"SEN",country_code:"221",country_name:"Senegal",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SG",alpha3:"SGP",country_code:"65",country_name:"Singapore",mobile_begin_with:["8","9"],phone_number_lengths:[8]},{alpha2:"SH",alpha3:"SHN",country_code:"290",country_name:"Saint Helena",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"SJ",alpha3:"SJM",country_code:"47",country_name:"Svalbard And Jan Mayen",mobile_begin_with:["79"],phone_number_lengths:[8]},{alpha2:"SB",alpha3:"SLB",country_code:"677",country_name:"Solomon Islands",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"SL",alpha3:"SLE",country_code:"232",country_name:"Sierra Leone",mobile_begin_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{alpha2:"SV",alpha3:"SLV",country_code:"503",country_name:"El Salvador",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"SM",alpha3:"SMR",country_code:"378",country_name:"San Marino",mobile_begin_with:["3","6"],phone_number_lengths:[10]},{alpha2:"SO",alpha3:"SOM",country_code:"252",country_name:"Somalia",mobile_begin_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{alpha2:"SX",alpha3:"SXM",country_code:"1",country_name:"Sint Maarten",mobile_begin_with:["721"],phone_number_lengths:[10]},{alpha2:"PM",alpha3:"SPM",country_code:"508",country_name:"Saint Pierre And Miquelon",mobile_begin_with:["55","41"],phone_number_lengths:[6]},{alpha2:"RS",alpha3:"SRB",country_code:"381",country_name:"Serbia",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"ST",alpha3:"STP",country_code:"239",country_name:"Sao Tome and Principe",mobile_begin_with:["98","99"],phone_number_lengths:[7]},{alpha2:"SR",alpha3:"SUR",country_code:"597",country_name:"Suriname",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"SK",alpha3:"SVK",country_code:"421",country_name:"Slovakia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SI",alpha3:"SVN",country_code:"386",country_name:"Slovenia",mobile_begin_with:["3","4","5","6","7"],phone_number_lengths:[8]},{alpha2:"SE",alpha3:"SWE",country_code:"46",country_name:"Sweden",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SZ",alpha3:"SWZ",country_code:"268",country_name:"Swaziland",mobile_begin_with:["76","77","78","79"],phone_number_lengths:[8]},{alpha2:"SC",alpha3:"SYC",country_code:"248",country_name:"Seychelles",mobile_begin_with:["2"],phone_number_lengths:[7]},{alpha2:"SY",alpha3:"SYR",country_code:"963",country_name:"Syrian Arab Republic",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TC",alpha3:"TCA",country_code:"1",country_name:"Turks and Caicos Islands",mobile_begin_with:["6492","6493","6494"],phone_number_lengths:[10]},{alpha2:"TD",alpha3:"TCD",country_code:"235",country_name:"Chad",mobile_begin_with:["6","7","9"],phone_number_lengths:[8]},{alpha2:"TG",alpha3:"TGO",country_code:"228",country_name:"Togo",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"TH",alpha3:"THA",country_code:"66",country_name:"Thailand",mobile_begin_with:["6","8","9"],phone_number_lengths:[9]},{alpha2:"TJ",alpha3:"TJK",country_code:"992",country_name:"Tajikistan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TK",alpha3:"TKL",country_code:"690",country_name:"Tokelau",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"TM",alpha3:"TKM",country_code:"993",country_name:"Turkmenistan",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"TL",alpha3:"TLS",country_code:"670",country_name:"Timor-Leste",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"TO",alpha3:"TON",country_code:"676",country_name:"Tonga",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TT",alpha3:"TTO",country_code:"1",country_name:"Trinidad and Tobago",mobile_begin_with:["868"],phone_number_lengths:[10]},{alpha2:"TN",alpha3:"TUN",country_code:"216",country_name:"Tunisia",mobile_begin_with:["2","4","5","9"],phone_number_lengths:[8]},{alpha2:"TR",alpha3:"TUR",country_code:"90",country_name:"Turkey",mobile_begin_with:["5"],phone_number_lengths:[10]},{alpha2:"TV",alpha3:"TUV",country_code:"688",country_name:"Tuvalu",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TW",alpha3:"TWN",country_code:"886",country_name:"Taiwan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TZ",alpha3:"TZA",country_code:"255",country_name:"Tanzania, United Republic of",mobile_begin_with:["7","6"],phone_number_lengths:[9]},{alpha2:"UG",alpha3:"UGA",country_code:"256",country_name:"Uganda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"UA",alpha3:"UKR",country_code:"380",country_name:"Ukraine",mobile_begin_with:["39","50","63","66","67","68","73","75","77","9"],phone_number_lengths:[9]},{alpha2:"UY",alpha3:"URY",country_code:"598",country_name:"Uruguay",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"UZ",alpha3:"UZB",country_code:"998",country_name:"Uzbekistan",mobile_begin_with:["9","88","33"],phone_number_lengths:[9]},{alpha2:"VC",alpha3:"VCT",country_code:"1",country_name:"Saint Vincent And The Grenedines",mobile_begin_with:["784"],phone_number_lengths:[10]},{alpha2:"VE",alpha3:"VEN",country_code:"58",country_name:"Venezuela, Bolivarian Republic of",mobile_begin_with:["4"],phone_number_lengths:[10]},{alpha2:"VG",alpha3:"VGB",country_code:"1",country_name:"Virgin Islands, British",mobile_begin_with:["284"],phone_number_lengths:[10]},{alpha2:"VI",alpha3:"VIR",country_code:"1",country_name:"Virgin Islands, U.S.",mobile_begin_with:["340"],phone_number_lengths:[10]},{alpha2:"VN",alpha3:"VNM",country_code:"84",country_name:"Viet Nam",mobile_begin_with:["8","9","3","7","5"],phone_number_lengths:[9]},{alpha2:"VU",alpha3:"VUT",country_code:"678",country_name:"Vanuatu",mobile_begin_with:["5","7"],phone_number_lengths:[7]},{alpha2:"WF",alpha3:"WLF",country_code:"681",country_name:"Wallis and Futuna",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"WS",alpha3:"WSM",country_code:"685",country_name:"Samoa",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"YE",alpha3:"YEM",country_code:"967",country_name:"Yemen",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"ZA",alpha3:"ZAF",country_code:"27",country_name:"South Africa",mobile_begin_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"ZM",alpha3:"ZMB",country_code:"260",country_name:"Zambia",mobile_begin_with:["9","7"],phone_number_lengths:[9]},{alpha2:"ZW",alpha3:"ZWE",country_code:"263",country_name:"Zimbabwe",mobile_begin_with:["71","73","77","78"],phone_number_lengths:[9]}]),l}var u,c,p={},b=function(){if(c)return i;c=1;var e=i&&i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.countryPhoneData=void 0,i.default=o,i.phone=o;const n=e(r());i.countryPhoneData=n.default;const a=function(){if(u)return p;u=1;var e=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:!0}),p.findCountryPhoneDataByCountry=function(e){return e?2===e.length?n.default.find((n=>e.toUpperCase()===n.alpha2))||null:3===e.length?n.default.find((n=>e.toUpperCase()===n.alpha3))||null:n.default.find((n=>e.toUpperCase()===n.country_name.toUpperCase()))||null:n.default.find((e=>"USA"===e.alpha3))||null},p.findExactCountryPhoneData=a,p.findPossibleCountryPhoneData=o,p.findCountryPhoneDataByPhoneNumber=function(e,t){let h,_;for(const i of n.default)e.match(new RegExp("^"+i.country_code))&&(h||(h=a(e,t,i)),_||(_=o(e,t,i)));return{exactCountryPhoneData:h,possibleCountryPhoneData:_}},p.validatePhoneISO3166=function(e,n,a,o){if(!n.phone_number_lengths)return!1;const t=e.replace(new RegExp("^"+n.country_code),"");if(o&&n&&t.length===e.length)return!1;const h=n.mobile_begin_with,_=n.phone_number_lengths.some((e=>t.length===e)),i=!h.length||h.some((e=>t.match(new RegExp("^"+e))));return _&&(!a||i)};const n=e(r());function a(e,n,a){return a.phone_number_lengths.some((n=>a.country_code.length+n===e.length))?a.mobile_begin_with.length&&n?a.mobile_begin_with.some((n=>e.match(new RegExp("^"+a.country_code+n))))?a:null:a:null}function o(e,n,a){return a.phone_number_lengths.some((n=>a.country_code.length+n+1===e.length))?a.mobile_begin_with.length&&n?a.mobile_begin_with.some((n=>e.match(new RegExp("^"+a.country_code+"\\d?"+n))))?a:void 0:a:null}return p}();function o(e,{country:n="",validateMobilePrefix:o=!0,strictDetection:t=!1}={}){const h={isValid:!1,phoneNumber:null,countryIso2:null,countryIso3:null,countryCode:null};let _="string"!=typeof e?"":e.trim();const i="string"!=typeof n?"":n.trim(),l=Boolean(_.match(/^\+/));_=_.replace(/\D/g,"");let r=(0,a.findCountryPhoneDataByCountry)(i);if(!r)return h;let u=!1;if(i)["CIV","COG"].includes(r.alpha3)||(_=_.replace(/^0+/,"")),"RUS"===r.alpha3&&11===_.length&&null!==_.match(/^89/)&&(_=_.replace(/^8+/,"")),!l&&r.phone_number_lengths.includes(_.length)&&(_=`${r.country_code}${_}`);else if(l){const{exactCountryPhoneData:e,possibleCountryPhoneData:n}=(0,a.findCountryPhoneDataByPhoneNumber)(_,o);e?r=e:n&&!t?(r=n,_=r.country_code+_.replace(new RegExp(`^${r.country_code}\\d`),"")):r=null}else-1!==r.phone_number_lengths.indexOf(_.length)&&(_=`1${_}`,u=!0);if(!r)return h;let c=(0,a.validatePhoneISO3166)(_,r,o,l);return c||u&&(r=(0,a.findCountryPhoneDataByCountry)("CAN"),c=(0,a.validatePhoneISO3166)(_,r,o,l),c)?{isValid:!0,phoneNumber:`+${_}`,countryIso2:r.alpha2,countryIso3:r.alpha3,countryCode:`+${r.country_code}`}:h}return i}();const m=class{constructor(a){e(this,a),this.rInput=n(this,"rInput"),this.rChange=n(this,"rChange"),this.rValidate=n(this,"rValidate"),this.rReset=n(this,"rReset"),this.name="phone-number",this.inputLabel="Phone number without country code",this.countryCodeLabel="Country code",this.fullPhoneNumber="",this.phoneNumber="",this.validityState="",this.validityMessage="",this.uniqueId=`r-input-phone-number-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.initial={},this.handleOnInput=e=>{this.phoneNumber=e.target.value,this.fullPhoneNumber=this.phoneNumber?this.countryCode+this.phoneNumber:"";const{host:n,phoneNumber:a,countryCode:o,value:t}=this;this.rInput.emit({element:n,value:t,countryCode:o,phoneNumber:a})},this.handleInputOnChange=e=>{this.phoneNumber=e.target.value,this.handleValueChange()},this.handleValueChange=()=>{this.fullPhoneNumber=this.phoneNumber?this.countryCode+this.phoneNumber:"";const{host:e,phoneNumber:n,countryCode:a,value:o}=this;this.rChange.emit({element:e,value:o,countryCode:a,phoneNumber:n}),this.validateFormElement(this.nativeElement)},this.validateFormElement=e=>{if(null===e)return;if(this.isNoValidate)return;if(this.error)return;this.getValidityStateData();const n="valid"===this.validityState;this.valid=n,this.invalid=!n,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.getValidityStateData=()=>{var e,n;if(this.required||(null===(e=this.phoneNumber)||void 0===e?void 0:e.length))return(null===(n=this.phoneNumber)||void 0===n?void 0:n.length)?this.countryCode&&this.getPhoneValidationResult(this.phoneNumber,this.countryCode).isValid?void(this.validityState="valid"):(this.validityState="invalid",void(this.validityMessage=this.customErrorMessage)):(this.validityState="valueMissing",void(this.validityMessage=this.valueMissingMessage));this.validityState="valid"},this.onSubmitForm=e=>{this.isNoValidate||(this.validateFormElement(this.nativeElement),this.invalid&&(e.preventDefault(),e.stopPropagation()))},this.contributeToFormData=e=>{h(this.nativeElement||this.host,e.formData)},this.onResetForm=()=>{var e;this.validityState=null,this.validityMessage=null,this.phoneNumber="",this.invalid=this.initial.invalid,this.valid=!this.invalid,null===(e=this.countryCodeElement)||void 0===e||e.reset(),this.updateValues(this.initial.value);const{host:n,value:a}=this;this.rReset.emit({element:n,value:a})}}async getValue(){return this.fullPhoneNumber}async setValue(e){this.updateValues(e)}async setCustomValidity(e){this.customErrorMessage=e,this.validateFormElement(this.nativeElement)}async reportValidity(){return this.validateFormElement(this.nativeElement),"valid"===this.validityState}async reset(){this.onResetForm()}watchValueChange(e){this.updateValues(e),this.validateFormElement(this.nativeElement)}handleDisabledChange(){var e;null===(e=this.countryCodeElement)||void 0===e||e.setAttribute("disabled",`${this.disabled||!1}`)}handleRequiredChange(){var e;null===(e=this.countryCodeElement)||void 0===e||e.setAttribute("required",`${this.required||!1}`)}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get countryCodeElement(){return this.host.querySelector("r-select")}get countryCode(){return this.host.querySelector("r-select").value||""}get ariaDescribedBy(){const e=`${this.uniqueId}-message`;return this.hint?`${this.uniqueId}-hint ${e}`:e}get hasError(){var e;return this.invalid&&!!(null===(e=this.error)||void 0===e?void 0:e.length)}get hasValidationError(){var e;return"valid"!==this.validityState&&!!(null===(e=this.validityMessage)||void 0===e?void 0:e.length)}get hasMessage(){return this.hasError||this.hasValidationError}get errorMessage(){return this.hasError&&this.error||this.hasValidationError&&this.validityMessage}get isNoValidate(){var e;return(null===(e=this.parentFormEl)||void 0===e?void 0:e.hasAttribute("novalidate"))||this.novalidate||!1}updateValues(e){var n,a;if(this.fullPhoneNumber=e||"",!e)return null===(n=this.countryCodeElement)||void 0===n||n.reset(),void(this.phoneNumber="");if(!this.getPhoneValidationResult(e).isValid)return void console.error("Provided phone number is not valid");const o=this.getPhoneValidationResult(e).countryCode;this.phoneNumber=e.replace(o,""),null===(a=this.countryCodeElement)||void 0===a||a.setValue(o)}setCountryCodeElementAttributes(){var e,n,a,o,t,h,_;null===(e=this.countryCodeElement)||void 0===e||e.setAttribute("show-leading-icon","true"),null===(n=this.countryCodeElement)||void 0===n||n.setAttribute("leading-icon","globe"),null===(a=this.countryCodeElement)||void 0===a||a.setAttribute("placeholder","+00"),null===(o=this.countryCodeElement)||void 0===o||o.setAttribute("disabled",`${this.disabled||!1}`),null===(t=this.countryCodeElement)||void 0===t||t.setAttribute("internal","true"),null===(h=this.countryCodeElement)||void 0===h||h.setAttribute("required",`${this.required||!1}`),null===(_=this.countryCodeElement)||void 0===_||_.setAttribute("label",this.countryCodeLabel)}getPhoneValidationResult(e,n=""){return b.phone(n+e,{validateMobilePrefix:!1})}connectEventListeners(){var e,n,a,o;null===(e=this.countryCodeElement)||void 0===e||e.addEventListener("rChange",this.handleValueChange),null===(n=this.parentFormEl)||void 0===n||n.addEventListener("formdata",this.contributeToFormData),null===(a=this.parentFormEl)||void 0===a||a.addEventListener("submit",this.onSubmitForm,{capture:!0}),null===(o=this.parentFormEl)||void 0===o||o.addEventListener("reset",this.onResetForm)}disconnectEventListeners(){var e,n,a,o;null===(e=this.countryCodeElement)||void 0===e||e.removeEventListener("rChange",this.handleValueChange),null===(n=this.parentFormEl)||void 0===n||n.removeEventListener("formdata",this.contributeToFormData),null===(a=this.parentFormEl)||void 0===a||a.removeEventListener("submit",this.onSubmitForm),null===(o=this.parentFormEl)||void 0===o||o.removeEventListener("reset",this.onResetForm)}componentWillLoad(){this.initial.value=this.value,this.initial.invalid=this.invalid,this.updateValues(this.value),this.setCountryCodeElementAttributes()}componentDidLoad(){this.connectEventListeners()}disconnectedCallback(){this.disconnectEventListeners()}render(){const{label:e,fieldIndicator:n,hint:t,name:h,form:_,inputLabel:i,tooltip:l,tooltipIcon:r,tooltipIconColor:u,disabled:c,uniqueId:p,required:b,valid:m,invalid:s,novalidate:g,phoneNumber:y,fullPhoneNumber:d,fullWidth:w}=this,v=Object.assign({fieldIndicator:n},l?{tooltip:l,"tooltip-icon":r,"tooltip-icon-color":u}:{}),M={id:p,form:_,name:h,novalidate:g,required:b,disabled:c,"aria-describedby":this.ariaDescribedBy};return a(o,{key:"d1ddc6d8dec0b98c83c65d2a0e0ad7177d4bf5e4"},a("div",{key:"5e87d5acdf57428188dafa9e1d13b68268db7854",class:"r-input-phone-number--label-container"},a("label",{key:"ba8ec0808fbfd2c59115d5765d4e3e74d5fbd907",id:`${p}-label`},e&&a("r-label",Object.assign({key:"b4102846d72fa6b9ac928d5a846163ad8f81cc2c"},v),e)),a("slot",{key:"debcf23c5add7c28c56b60d3f82c29ba32d85049",name:"popover"})),t&&a("r-hint",{key:"429ed5d551ac9cb028b18919e3f7d8d4155330fe",id:`${p}-hint`,role:"note"},t),a("div",{key:"c269f63f96d619595ae676d77448410d71a4b356",class:"r-input-phone-number",role:"group","aria-labelledby":`${p}-label`,"aria-describedby":this.ariaDescribedBy},a("slot",{key:"eb5402152f90f5e97b68a04c511daa228e0d3c05"}),a("r-input",{key:"9aa1354f8a17087dff54ae394c8859b9a69e4b5a",label:i,value:y,internal:!0,valid:m,invalid:s,required:b,novalidate:!0,fullWidth:w,type:"tel",error:this.errorMessage||"",onRInput:this.handleOnInput,onRChange:this.handleInputOnChange,disabled:c},m&&y&&a("r-icon",{key:"8a4a597a9177f115ccfab3a1a388d6ef7445d0fb",slot:"trailing",name:"circled-check",size:"s",color:"var(--r-status-success-regular)"}))),a("input",Object.assign({key:"44646c7de24094438bcbb5288ce08378bc7ed473",type:"hidden"},M,{value:d,ref:e=>this.nativeElement=e})),a("r-hint",{key:"a30016c4a30ab4e13a34374973b0ff2ee7369dac","aria-live":"polite","aria-atomic":"true",id:`${p}-message`,class:!this.hasMessage&&"visually-hidden",variant:"error"},this.hasError&&this.error,this.hasValidationError&&this.validityMessage))}get host(){return t(this)}static get watchers(){return{value:["watchValueChange"],disabled:["handleDisabledChange"],required:["handleRequiredChange"]}}};m.style=":host{display:inline-flex;flex-direction:column;vertical-align:top;--r-input--container--margin-top:0;--r-input--container--margin-bottom:0}:host slot{display:contents}:host ::slotted(r-select){min-width:var(--r-input-phone-number--select--min-width, 7rem);width:var(--r-input-phone-number--select--width, fit-content)}:host r-input.focused{--r-input--container--border-style:solid}:host([full-width]:not([full-width=false])){width:100%}.r-input-phone-number{margin-top:var(--r-input-phone-number--margin-top, var(--r-spacing-025, 0.25rem));margin-bottom:var(--r-input-phone-number--margin-bottom, var(--r-spacing-025, 0.25rem));width:var(--r-input-phone-number--width, 100%);display:var(--r-input-phone-number--display, inline-flex);justify-content:var(--r-input-phone-number--justify-content, center);align-items:var(--r-input-phone-number--align-items, center);gap:var(--r-input-phone-number--gap, 0)}.r-input-phone-number--label-container{display:var(--r-input-phone-number--label-container--display, flex);gap:var(--r-input-phone-number--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-input-phone-number--label-container--align-items, center);justify-content:var(--r-input-phone-number--label-container--align-items, space-between)}.r-input-phone-number--label-container ::slotted([slot=popover]){display:var(--r-input-phone-number--popover--display, inline-flex);height:var(--r-input-phone-number--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-input-phone-number--popover--align-items, center);justify-content:var(--r-input-phone-number--popover--justify-content, center);margin-right:var(--r-input-phone-number--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-input-phone-number--popover-trigger--min-width, var(--r-spacing-150, 1.5));--r-popover--trigger--min-height:var(--r-input-phone-number--popover--trigger--min-height, var(--r-spacing-150, 1.5))}.r-input-phone-number r-input{margin-left:-1px;flex:1}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";export{m as r_input_phone_number}
1
+ import{r as e,c as n,h as a,H as o,g as t}from"./p-CTxpqopm.js";import{a as h}from"./p-DvLT8-y3.js";var i,_={},l={};function r(){return i||(i=1,Object.defineProperty(l,"__esModule",{value:!0}),l.default=[{alpha2:"US",alpha3:"USA",country_code:"1",country_name:"United States",mobile_begin_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","329","330","331","332","334","336","337","339","341","346","347","351","352","353","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","472","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","645","646","650","651","656","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","728","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","771","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","930","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279","340","983","448","943","363","326","839","826","948","924"],phone_number_lengths:[10]},{alpha2:"AW",alpha3:"ABW",country_code:"297",country_name:"Aruba",mobile_begin_with:["56","59","64","73","74","99"],phone_number_lengths:[7]},{alpha2:"AF",alpha3:"AFG",country_code:"93",country_name:"Afghanistan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"AO",alpha3:"AGO",country_code:"244",country_name:"Angola",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"AI",alpha3:"AIA",country_code:"1",country_name:"Anguilla",mobile_begin_with:["2642","2644","2645","2647"],phone_number_lengths:[10]},{alpha2:"AX",alpha3:"ALA",country_code:"358",country_name:"Åland Islands",mobile_begin_with:["18"],phone_number_lengths:[6,7,8]},{alpha2:"AL",alpha3:"ALB",country_code:"355",country_name:"Albania",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"AD",alpha3:"AND",country_code:"376",country_name:"Andorra",mobile_begin_with:["3","4","6"],phone_number_lengths:[6]},{alpha2:"BQ",alpha3:"BES",country_code:"599",country_name:"Caribbean Netherlands",mobile_begin_with:["3","416","700","701","795"],phone_number_lengths:[7]},{alpha2:"AE",alpha3:"ARE",country_code:"971",country_name:"United Arab Emirates",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"AR",alpha3:"ARG",country_code:"54",country_name:"Argentina",mobile_begin_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{alpha2:"AM",alpha3:"ARM",country_code:"374",country_name:"Armenia",mobile_begin_with:["3","4","5","7","9"],phone_number_lengths:[8]},{alpha2:"AS",alpha3:"ASM",country_code:"1",country_name:"American Samoa",mobile_begin_with:["684733","684258"],phone_number_lengths:[10]},{alpha2:"AG",alpha3:"ATG",country_code:"1",country_name:"Antigua and Barbuda",mobile_begin_with:["2687"],phone_number_lengths:[10]},{alpha2:"AU",alpha3:"AUS",country_code:"61",country_name:"Australia",mobile_begin_with:["4"],phone_number_lengths:[9]},{alpha2:"AT",alpha3:"AUT",country_code:"43",country_name:"Austria",mobile_begin_with:["6"],phone_number_lengths:[10,11,12,13,14]},{alpha2:"AZ",alpha3:"AZE",country_code:"994",country_name:"Azerbaijan",mobile_begin_with:["10","50","51","55","60","70","77","99"],phone_number_lengths:[9]},{alpha2:"BI",alpha3:"BDI",country_code:"257",country_name:"Burundi",mobile_begin_with:["71","72","75","76","77","79","29","61","68","69"],phone_number_lengths:[8]},{alpha2:"BE",alpha3:"BEL",country_code:"32",country_name:"Belgium",mobile_begin_with:["4","3"],phone_number_lengths:[9,8]},{alpha2:"BJ",alpha3:"BEN",country_code:"229",country_name:"Benin",mobile_begin_with:["4","6","9"],phone_number_lengths:[8]},{alpha2:"BF",alpha3:"BFA",country_code:"226",country_name:"Burkina Faso",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BD",alpha3:"BGD",country_code:"880",country_name:"Bangladesh",mobile_begin_with:["1"],phone_number_lengths:[8,9,10]},{alpha2:"BG",alpha3:"BGR",country_code:"359",country_name:"Bulgaria",mobile_begin_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{alpha2:"BH",alpha3:"BHR",country_code:"973",country_name:"Bahrain",mobile_begin_with:["3"],phone_number_lengths:[8]},{alpha2:"BS",alpha3:"BHS",country_code:"1",country_name:"Bahamas",mobile_begin_with:["242"],phone_number_lengths:[10]},{alpha2:"BA",alpha3:"BIH",country_code:"387",country_name:"Bosnia and Herzegovina",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"BY",alpha3:"BLR",country_code:"375",country_name:"Belarus",mobile_begin_with:["25","29","33","44"],phone_number_lengths:[9]},{alpha2:"BZ",alpha3:"BLZ",country_code:"501",country_name:"Belize",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"BM",alpha3:"BMU",country_code:"1",country_name:"Bermuda",mobile_begin_with:["4413","4415","4417"],phone_number_lengths:[10]},{alpha2:"BO",alpha3:"BOL",country_code:"591",country_name:"Bolivia",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BR",alpha3:"BRA",country_code:"55",country_name:"Brazil",mobile_begin_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{alpha2:"BB",alpha3:"BRB",country_code:"1",country_name:"Barbados",mobile_begin_with:["246"],phone_number_lengths:[10]},{alpha2:"BN",alpha3:"BRN",country_code:"673",country_name:"Brunei Darussalam",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"BT",alpha3:"BTN",country_code:"975",country_name:"Bhutan",mobile_begin_with:["17"],phone_number_lengths:[8]},{alpha2:"BW",alpha3:"BWA",country_code:"267",country_name:"Botswana",mobile_begin_with:["71","72","73","74","75","76","77","78","79"],phone_number_lengths:[8]},{alpha2:"CF",alpha3:"CAF",country_code:"236",country_name:"Central African Republic",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"CA",alpha3:"CAN",country_code:"1",country_name:"Canada",mobile_begin_with:["204","226","236","249","250","263","289","306","343","354","365","367","368","403","416","418","431","437","438","450","468","474","506","514","519","548","579","581","584","587","600","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905","428","382","942"],phone_number_lengths:[10]},{alpha2:"CH",alpha3:"CHE",country_code:"41",country_name:"Switzerland",mobile_begin_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{alpha2:"CL",alpha3:"CHL",country_code:"56",country_name:"Chile",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"CN",alpha3:"CHN",country_code:"86",country_name:"China",mobile_begin_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{alpha2:"CI",alpha3:"CIV",country_code:"225",country_name:"Côte D'Ivoire",mobile_begin_with:["0","4","5","6","7","8"],phone_number_lengths:[10]},{alpha2:"CM",alpha3:"CMR",country_code:"237",country_name:"Cameroon",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"CD",alpha3:"COD",country_code:"243",country_name:"Congo, The Democratic Republic Of The",mobile_begin_with:["8","9"],phone_number_lengths:[9]},{alpha2:"CG",alpha3:"COG",country_code:"242",country_name:"Congo",mobile_begin_with:["0"],phone_number_lengths:[9]},{alpha2:"CK",alpha3:"COK",country_code:"682",country_name:"Cook Islands",mobile_begin_with:["5","7"],phone_number_lengths:[5]},{alpha2:"CO",alpha3:"COL",country_code:"57",country_name:"Colombia",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"CW",alpha3:"CUW",country_code:"599",country_name:"Curaçao",mobile_begin_with:["95","96"],phone_number_lengths:[8]},{alpha2:"KM",alpha3:"COM",country_code:"269",country_name:"Comoros",mobile_begin_with:["3","76"],phone_number_lengths:[7]},{alpha2:"CV",alpha3:"CPV",country_code:"238",country_name:"Cape Verde",mobile_begin_with:["5","9"],phone_number_lengths:[7]},{alpha2:"CR",alpha3:"CRI",country_code:"506",country_name:"Costa Rica",mobile_begin_with:["5","6","7","8"],phone_number_lengths:[8]},{alpha2:"CU",alpha3:"CUB",country_code:"53",country_name:"Cuba",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"KY",alpha3:"CYM",country_code:"1",country_name:"Cayman Islands",mobile_begin_with:["345"],phone_number_lengths:[10]},{alpha2:"CY",alpha3:"CYP",country_code:"357",country_name:"Cyprus",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"CZ",alpha3:"CZE",country_code:"420",country_name:"Czech Republic",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"DE",alpha3:"DEU",country_code:"49",country_name:"Germany",mobile_begin_with:["15","16","17"],phone_number_lengths:[10,11]},{alpha2:"DJ",alpha3:"DJI",country_code:"253",country_name:"Djibouti",mobile_begin_with:["77"],phone_number_lengths:[8]},{alpha2:"DM",alpha3:"DMA",country_code:"1",country_name:"Dominica",mobile_begin_with:["767"],phone_number_lengths:[10]},{alpha2:"DK",alpha3:"DNK",country_code:"45",country_name:"Denmark",mobile_begin_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93","342","344","345","346","347","348","349","356","357","359","362","365","366","389","398","431","441","462","466","468","472","474","476","478","485","486","488","489","493","494","495","496","498","499","542","543","545","551","552","556","571","572","573","574","577","579","584","586","587","589","597","598","627","629","641","649","658","662","663","664","665","667","692","693","694","697","771","772","782","783","785","786","788","789","826","827","829"],phone_number_lengths:[8]},{alpha2:"DO",alpha3:"DOM",country_code:"1",country_name:"Dominican Republic",mobile_begin_with:["809","829","849"],phone_number_lengths:[10]},{alpha2:"DZ",alpha3:"DZA",country_code:"213",country_name:"Algeria",mobile_begin_with:["5","6","7"],phone_number_lengths:[9]},{alpha2:"EC",alpha3:"ECU",country_code:"593",country_name:"Ecuador",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"EG",alpha3:"EGY",country_code:"20",country_name:"Egypt",mobile_begin_with:["1"],phone_number_lengths:[10,8]},{alpha2:"ER",alpha3:"ERI",country_code:"291",country_name:"Eritrea",mobile_begin_with:["1","7","8"],phone_number_lengths:[7]},{alpha2:"ES",alpha3:"ESP",country_code:"34",country_name:"Spain",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"EE",alpha3:"EST",country_code:"372",country_name:"Estonia",mobile_begin_with:["5","81","82","83"],phone_number_lengths:[7,8]},{alpha2:"ET",alpha3:"ETH",country_code:"251",country_name:"Ethiopia",mobile_begin_with:["7","9"],phone_number_lengths:[9]},{alpha2:"FI",alpha3:"FIN",country_code:"358",country_name:"Finland",mobile_begin_with:["4","5"],phone_number_lengths:[6,7,9,10]},{alpha2:"FJ",alpha3:"FJI",country_code:"679",country_name:"Fiji",mobile_begin_with:["2","7","8","9"],phone_number_lengths:[7]},{alpha2:"FK",alpha3:"FLK",country_code:"500",country_name:"Falkland Islands (Malvinas)",mobile_begin_with:["5","6"],phone_number_lengths:[5]},{alpha2:"FR",alpha3:"FRA",country_code:"33",country_name:"France",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"FO",alpha3:"FRO",country_code:"298",country_name:"Faroe Islands",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"FM",alpha3:"FSM",country_code:"691",country_name:"Micronesia, Federated States Of",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"GA",alpha3:"GAB",country_code:"241",country_name:"Gabon",mobile_begin_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{alpha2:"GB",alpha3:"GBR",country_code:"44",country_name:"United Kingdom",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"GE",alpha3:"GEO",country_code:"995",country_name:"Georgia",mobile_begin_with:["5","7"],phone_number_lengths:[9]},{alpha2:"GH",alpha3:"GHA",country_code:"233",country_name:"Ghana",mobile_begin_with:["2","5"],phone_number_lengths:[9]},{alpha2:"GI",alpha3:"GIB",country_code:"350",country_name:"Gibraltar",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"GN",alpha3:"GIN",country_code:"224",country_name:"Guinea",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"GP",alpha3:"GLP",country_code:"590",country_name:"Guadeloupe",mobile_begin_with:["690","691"],phone_number_lengths:[9]},{alpha2:"GM",alpha3:"GMB",country_code:"220",country_name:"Gambia",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"GW",alpha3:"GNB",country_code:"245",country_name:"Guinea-Bissau",mobile_begin_with:["5","6","7"],phone_number_lengths:[7]},{alpha2:"GQ",alpha3:"GNQ",country_code:"240",country_name:"Equatorial Guinea",mobile_begin_with:["222","551"],phone_number_lengths:[9]},{alpha2:"GR",alpha3:"GRC",country_code:"30",country_name:"Greece",mobile_begin_with:["6"],phone_number_lengths:[10]},{alpha2:"GD",alpha3:"GRD",country_code:"1",country_name:"Grenada",mobile_begin_with:["473"],phone_number_lengths:[10]},{alpha2:"GL",alpha3:"GRL",country_code:"299",country_name:"Greenland",mobile_begin_with:["2","4","5"],phone_number_lengths:[6]},{alpha2:"GT",alpha3:"GTM",country_code:"502",country_name:"Guatemala",mobile_begin_with:["3","4","5"],phone_number_lengths:[8]},{alpha2:"GF",alpha3:"GUF",country_code:"594",country_name:"French Guiana",mobile_begin_with:["694"],phone_number_lengths:[9]},{alpha2:"GU",alpha3:"GUM",country_code:"1",country_name:"Guam",mobile_begin_with:["671"],phone_number_lengths:[10]},{alpha2:"GY",alpha3:"GUY",country_code:"592",country_name:"Guyana",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"HK",alpha3:"HKG",country_code:"852",country_name:"Hong Kong",mobile_begin_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{alpha2:"HN",alpha3:"HND",country_code:"504",country_name:"Honduras",mobile_begin_with:["3","7","8","9"],phone_number_lengths:[8]},{alpha2:"HR",alpha3:"HRV",country_code:"385",country_name:"Croatia",mobile_begin_with:["9"],phone_number_lengths:[8,9]},{alpha2:"HT",alpha3:"HTI",country_code:"509",country_name:"Haiti",mobile_begin_with:["3","4"],phone_number_lengths:[8]},{alpha2:"HU",alpha3:"HUN",country_code:"36",country_name:"Hungary",mobile_begin_with:["20","30","31","50","70"],phone_number_lengths:[9]},{alpha2:"ID",alpha3:"IDN",country_code:"62",country_name:"Indonesia",mobile_begin_with:["8"],phone_number_lengths:[9,10,11,12]},{alpha2:"IN",alpha3:"IND",country_code:"91",country_name:"India",mobile_begin_with:["6","7","8","9"],phone_number_lengths:[10]},{alpha2:"IE",alpha3:"IRL",country_code:"353",country_name:"Ireland",mobile_begin_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{alpha2:"IR",alpha3:"IRN",country_code:"98",country_name:"Iran, Islamic Republic Of",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"IQ",alpha3:"IRQ",country_code:"964",country_name:"Iraq",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"IS",alpha3:"ISL",country_code:"354",country_name:"Iceland",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"IL",alpha3:"ISR",country_code:"972",country_name:"Israel",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"IT",alpha3:"ITA",country_code:"39",country_name:"Italy",mobile_begin_with:["3"],phone_number_lengths:[9,10]},{alpha2:"JM",alpha3:"JAM",country_code:"1",country_name:"Jamaica",mobile_begin_with:["876"],phone_number_lengths:[10]},{alpha2:"JO",alpha3:"JOR",country_code:"962",country_name:"Jordan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"JP",alpha3:"JPN",country_code:"81",country_name:"Japan",mobile_begin_with:["70","80","90"],phone_number_lengths:[10]},{alpha2:"KZ",alpha3:"KAZ",country_code:"7",country_name:"Kazakhstan",mobile_begin_with:["70","74","77"],phone_number_lengths:[10]},{alpha2:"KE",alpha3:"KEN",country_code:"254",country_name:"Kenya",mobile_begin_with:["7","1"],phone_number_lengths:[9]},{alpha2:"KG",alpha3:"KGZ",country_code:"996",country_name:"Kyrgyzstan",mobile_begin_with:["20","22","31258","312973","5","600","7","88","912","99"],phone_number_lengths:[9]},{alpha2:"KH",alpha3:"KHM",country_code:"855",country_name:"Cambodia",mobile_begin_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{alpha2:"KI",alpha3:"KIR",country_code:"686",country_name:"Kiribati",mobile_begin_with:["9","30"],phone_number_lengths:[5]},{alpha2:"KN",alpha3:"KNA",country_code:"1",country_name:"Saint Kitts And Nevis",mobile_begin_with:["869"],phone_number_lengths:[10]},{alpha2:"KR",alpha3:"KOR",country_code:"82",country_name:"Korea, Republic of",mobile_begin_with:["1"],phone_number_lengths:[9,10]},{alpha2:"XK",alpha3:"XKX",country_code:"383",country_name:"Kosovo, Republic of",mobile_begin_with:["43","44","45","46","47","48","49"],phone_number_lengths:[8]},{alpha2:"KW",alpha3:"KWT",country_code:"965",country_name:"Kuwait",mobile_begin_with:["5","6","9"],phone_number_lengths:[8]},{alpha2:"LA",alpha3:"LAO",country_code:"856",country_name:"Lao People's Democratic Republic",mobile_begin_with:["20"],phone_number_lengths:[10]},{alpha2:"LB",alpha3:"LBN",country_code:"961",country_name:"Lebanon",mobile_begin_with:["3","7","8"],phone_number_lengths:[7,8]},{alpha2:"LR",alpha3:"LBR",country_code:"231",country_name:"Liberia",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[7,8]},{alpha2:"LY",alpha3:"LBY",country_code:"218",country_name:"Libyan Arab Jamahiriya",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"LC",alpha3:"LCA",country_code:"1",country_name:"Saint Lucia",mobile_begin_with:["758"],phone_number_lengths:[10]},{alpha2:"LI",alpha3:"LIE",country_code:"423",country_name:"Liechtenstein",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"LK",alpha3:"LKA",country_code:"94",country_name:"Sri Lanka",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"LS",alpha3:"LSO",country_code:"266",country_name:"Lesotho",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"LT",alpha3:"LTU",country_code:"370",country_name:"Lithuania",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"LU",alpha3:"LUX",country_code:"352",country_name:"Luxembourg",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"LV",alpha3:"LVA",country_code:"371",country_name:"Latvia",mobile_begin_with:["2"],phone_number_lengths:[8]},{alpha2:"MO",alpha3:"MAC",country_code:"853",country_name:"Macao",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MA",alpha3:"MAR",country_code:"212",country_name:"Morocco",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"MC",alpha3:"MCO",country_code:"377",country_name:"Monaco",mobile_begin_with:["4","6"],phone_number_lengths:[8,9]},{alpha2:"MD",alpha3:"MDA",country_code:"373",country_name:"Moldova, Republic of",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MG",alpha3:"MDG",country_code:"261",country_name:"Madagascar",mobile_begin_with:["3"],phone_number_lengths:[9]},{alpha2:"MV",alpha3:"MDV",country_code:"960",country_name:"Maldives",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"MX",alpha3:"MEX",country_code:"52",country_name:"Mexico",mobile_begin_with:[""],phone_number_lengths:[10,11]},{alpha2:"MH",alpha3:"MHL",country_code:"692",country_name:"Marshall Islands",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"MK",alpha3:"MKD",country_code:"389",country_name:"Macedonia, the Former Yugoslav Republic Of",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"ML",alpha3:"MLI",country_code:"223",country_name:"Mali",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MT",alpha3:"MLT",country_code:"356",country_name:"Malta",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"MM",alpha3:"MMR",country_code:"95",country_name:"Myanmar",mobile_begin_with:["9"],phone_number_lengths:[8,9,10]},{alpha2:"ME",alpha3:"MNE",country_code:"382",country_name:"Montenegro",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MN",alpha3:"MNG",country_code:"976",country_name:"Mongolia",mobile_begin_with:["5","8","9"],phone_number_lengths:[8]},{alpha2:"MP",alpha3:"MNP",country_code:"1",country_name:"Northern Mariana Islands",mobile_begin_with:["670"],phone_number_lengths:[10]},{alpha2:"MZ",alpha3:"MOZ",country_code:"258",country_name:"Mozambique",mobile_begin_with:["8"],phone_number_lengths:[9]},{alpha2:"MR",alpha3:"MRT",country_code:"222",country_name:"Mauritania",mobile_begin_with:[],phone_number_lengths:[8]},{alpha2:"MS",alpha3:"MSR",country_code:"1",country_name:"Montserrat",mobile_begin_with:["664"],phone_number_lengths:[10]},{alpha2:"MQ",alpha3:"MTQ",country_code:"596",country_name:"Martinique",mobile_begin_with:["696","697"],phone_number_lengths:[9]},{alpha2:"MU",alpha3:"MUS",country_code:"230",country_name:"Mauritius",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"MW",alpha3:"MWI",country_code:"265",country_name:"Malawi",mobile_begin_with:["77","88","99"],phone_number_lengths:[9]},{alpha2:"MY",alpha3:"MYS",country_code:"60",country_name:"Malaysia",mobile_begin_with:["1","6"],phone_number_lengths:[9,10,8]},{alpha2:"YT",alpha3:"MYT",country_code:"262",country_name:"Mayotte",mobile_begin_with:["639"],phone_number_lengths:[9]},{alpha2:"NA",alpha3:"NAM",country_code:"264",country_name:"Namibia",mobile_begin_with:["60","81","82","85"],phone_number_lengths:[9]},{alpha2:"NC",alpha3:"NCL",country_code:"687",country_name:"New Caledonia",mobile_begin_with:["5","7","8","9"],phone_number_lengths:[6]},{alpha2:"NE",alpha3:"NER",country_code:"227",country_name:"Niger",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"NF",alpha3:"NFK",country_code:"672",country_name:"Norfolk Island",mobile_begin_with:["5","8"],phone_number_lengths:[5]},{alpha2:"NG",alpha3:"NGA",country_code:"234",country_name:"Nigeria",mobile_begin_with:["70","80","81","90","91"],phone_number_lengths:[10]},{alpha2:"NI",alpha3:"NIC",country_code:"505",country_name:"Nicaragua",mobile_begin_with:["7","8"],phone_number_lengths:[8]},{alpha2:"NU",alpha3:"NIU",country_code:"683",country_name:"Niue",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"NL",alpha3:"NLD",country_code:"31",country_name:"Netherlands",mobile_begin_with:["6","97"],phone_number_lengths:[9,11]},{alpha2:"NO",alpha3:"NOR",country_code:"47",country_name:"Norway",mobile_begin_with:["4","9"],phone_number_lengths:[8]},{alpha2:"NP",alpha3:"NPL",country_code:"977",country_name:"Nepal",mobile_begin_with:["97","98"],phone_number_lengths:[10]},{alpha2:"NR",alpha3:"NRU",country_code:"674",country_name:"Nauru",mobile_begin_with:["555"],phone_number_lengths:[7]},{alpha2:"NZ",alpha3:"NZL",country_code:"64",country_name:"New Zealand",mobile_begin_with:["2"],phone_number_lengths:[8,9,10]},{alpha2:"OM",alpha3:"OMN",country_code:"968",country_name:"Oman",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"PK",alpha3:"PAK",country_code:"92",country_name:"Pakistan",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"PA",alpha3:"PAN",country_code:"507",country_name:"Panama",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"PE",alpha3:"PER",country_code:"51",country_name:"Peru",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PH",alpha3:"PHL",country_code:"63",country_name:"Philippines",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"PW",alpha3:"PLW",country_code:"680",country_name:"Palau",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"PG",alpha3:"PNG",country_code:"675",country_name:"Papua New Guinea",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"PL",alpha3:"POL",country_code:"48",country_name:"Poland",mobile_begin_with:["4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"PR",alpha3:"PRI",country_code:"1",country_name:"Puerto Rico",mobile_begin_with:["787","939"],phone_number_lengths:[10]},{alpha2:"PT",alpha3:"PRT",country_code:"351",country_name:"Portugal",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PY",alpha3:"PRY",country_code:"595",country_name:"Paraguay",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PS",alpha3:"PSE",country_code:"970",country_name:"Palestinian Territory, Occupied",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"PF",alpha3:"PYF",country_code:"689",country_name:"French Polynesia",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"QA",alpha3:"QAT",country_code:"974",country_name:"Qatar",mobile_begin_with:["3","5","6","7"],phone_number_lengths:[8]},{alpha2:"RE",alpha3:"REU",country_code:"262",country_name:"Réunion",mobile_begin_with:["692","693"],phone_number_lengths:[9]},{alpha2:"RO",alpha3:"ROU",country_code:"40",country_name:"Romania",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"RU",alpha3:"RUS",country_code:"7",country_name:"Russian Federation",mobile_begin_with:["9","495","498","499","835"],phone_number_lengths:[10]},{alpha2:"RW",alpha3:"RWA",country_code:"250",country_name:"Rwanda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SA",alpha3:"SAU",country_code:"966",country_name:"Saudi Arabia",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"SD",alpha3:"SDN",country_code:"249",country_name:"Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SS",alpha3:"SSD",country_code:"211",country_name:"South Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SN",alpha3:"SEN",country_code:"221",country_name:"Senegal",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SG",alpha3:"SGP",country_code:"65",country_name:"Singapore",mobile_begin_with:["8","9"],phone_number_lengths:[8]},{alpha2:"SH",alpha3:"SHN",country_code:"290",country_name:"Saint Helena",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"SJ",alpha3:"SJM",country_code:"47",country_name:"Svalbard And Jan Mayen",mobile_begin_with:["79"],phone_number_lengths:[8]},{alpha2:"SB",alpha3:"SLB",country_code:"677",country_name:"Solomon Islands",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"SL",alpha3:"SLE",country_code:"232",country_name:"Sierra Leone",mobile_begin_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{alpha2:"SV",alpha3:"SLV",country_code:"503",country_name:"El Salvador",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"SM",alpha3:"SMR",country_code:"378",country_name:"San Marino",mobile_begin_with:["3","6"],phone_number_lengths:[10]},{alpha2:"SO",alpha3:"SOM",country_code:"252",country_name:"Somalia",mobile_begin_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{alpha2:"SX",alpha3:"SXM",country_code:"1",country_name:"Sint Maarten",mobile_begin_with:["721"],phone_number_lengths:[10]},{alpha2:"PM",alpha3:"SPM",country_code:"508",country_name:"Saint Pierre And Miquelon",mobile_begin_with:["55","41"],phone_number_lengths:[6]},{alpha2:"RS",alpha3:"SRB",country_code:"381",country_name:"Serbia",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"ST",alpha3:"STP",country_code:"239",country_name:"Sao Tome and Principe",mobile_begin_with:["98","99"],phone_number_lengths:[7]},{alpha2:"SR",alpha3:"SUR",country_code:"597",country_name:"Suriname",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"SK",alpha3:"SVK",country_code:"421",country_name:"Slovakia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SI",alpha3:"SVN",country_code:"386",country_name:"Slovenia",mobile_begin_with:["3","4","5","6","7"],phone_number_lengths:[8]},{alpha2:"SE",alpha3:"SWE",country_code:"46",country_name:"Sweden",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SZ",alpha3:"SWZ",country_code:"268",country_name:"Swaziland",mobile_begin_with:["76","77","78","79"],phone_number_lengths:[8]},{alpha2:"SC",alpha3:"SYC",country_code:"248",country_name:"Seychelles",mobile_begin_with:["2"],phone_number_lengths:[7]},{alpha2:"SY",alpha3:"SYR",country_code:"963",country_name:"Syrian Arab Republic",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TC",alpha3:"TCA",country_code:"1",country_name:"Turks and Caicos Islands",mobile_begin_with:["6492","6493","6494"],phone_number_lengths:[10]},{alpha2:"TD",alpha3:"TCD",country_code:"235",country_name:"Chad",mobile_begin_with:["6","7","9"],phone_number_lengths:[8]},{alpha2:"TG",alpha3:"TGO",country_code:"228",country_name:"Togo",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"TH",alpha3:"THA",country_code:"66",country_name:"Thailand",mobile_begin_with:["6","8","9"],phone_number_lengths:[9]},{alpha2:"TJ",alpha3:"TJK",country_code:"992",country_name:"Tajikistan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TK",alpha3:"TKL",country_code:"690",country_name:"Tokelau",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"TM",alpha3:"TKM",country_code:"993",country_name:"Turkmenistan",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"TL",alpha3:"TLS",country_code:"670",country_name:"Timor-Leste",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"TO",alpha3:"TON",country_code:"676",country_name:"Tonga",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TT",alpha3:"TTO",country_code:"1",country_name:"Trinidad and Tobago",mobile_begin_with:["868"],phone_number_lengths:[10]},{alpha2:"TN",alpha3:"TUN",country_code:"216",country_name:"Tunisia",mobile_begin_with:["2","4","5","9"],phone_number_lengths:[8]},{alpha2:"TR",alpha3:"TUR",country_code:"90",country_name:"Turkey",mobile_begin_with:["5"],phone_number_lengths:[10]},{alpha2:"TV",alpha3:"TUV",country_code:"688",country_name:"Tuvalu",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TW",alpha3:"TWN",country_code:"886",country_name:"Taiwan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TZ",alpha3:"TZA",country_code:"255",country_name:"Tanzania, United Republic of",mobile_begin_with:["7","6"],phone_number_lengths:[9]},{alpha2:"UG",alpha3:"UGA",country_code:"256",country_name:"Uganda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"UA",alpha3:"UKR",country_code:"380",country_name:"Ukraine",mobile_begin_with:["39","50","63","66","67","68","73","75","77","9"],phone_number_lengths:[9]},{alpha2:"UY",alpha3:"URY",country_code:"598",country_name:"Uruguay",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"UZ",alpha3:"UZB",country_code:"998",country_name:"Uzbekistan",mobile_begin_with:["9","88","33"],phone_number_lengths:[9]},{alpha2:"VC",alpha3:"VCT",country_code:"1",country_name:"Saint Vincent And The Grenedines",mobile_begin_with:["784"],phone_number_lengths:[10]},{alpha2:"VE",alpha3:"VEN",country_code:"58",country_name:"Venezuela, Bolivarian Republic of",mobile_begin_with:["4"],phone_number_lengths:[10]},{alpha2:"VG",alpha3:"VGB",country_code:"1",country_name:"Virgin Islands, British",mobile_begin_with:["284"],phone_number_lengths:[10]},{alpha2:"VI",alpha3:"VIR",country_code:"1",country_name:"Virgin Islands, U.S.",mobile_begin_with:["340"],phone_number_lengths:[10]},{alpha2:"VN",alpha3:"VNM",country_code:"84",country_name:"Viet Nam",mobile_begin_with:["8","9","3","7","5"],phone_number_lengths:[9]},{alpha2:"VU",alpha3:"VUT",country_code:"678",country_name:"Vanuatu",mobile_begin_with:["5","7"],phone_number_lengths:[7]},{alpha2:"WF",alpha3:"WLF",country_code:"681",country_name:"Wallis and Futuna",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"WS",alpha3:"WSM",country_code:"685",country_name:"Samoa",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"YE",alpha3:"YEM",country_code:"967",country_name:"Yemen",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"ZA",alpha3:"ZAF",country_code:"27",country_name:"South Africa",mobile_begin_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"ZM",alpha3:"ZMB",country_code:"260",country_name:"Zambia",mobile_begin_with:["9","7"],phone_number_lengths:[9]},{alpha2:"ZW",alpha3:"ZWE",country_code:"263",country_name:"Zimbabwe",mobile_begin_with:["71","73","77","78"],phone_number_lengths:[9]}]),l}var u,c,p={},b=function(){if(c)return _;c=1;var e=_&&_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_,"__esModule",{value:!0}),_.countryPhoneData=void 0,_.default=o,_.phone=o;const n=e(r());_.countryPhoneData=n.default;const a=function(){if(u)return p;u=1;var e=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:!0}),p.findCountryPhoneDataByCountry=function(e){return e?2===e.length?n.default.find((n=>e.toUpperCase()===n.alpha2))||null:3===e.length?n.default.find((n=>e.toUpperCase()===n.alpha3))||null:n.default.find((n=>e.toUpperCase()===n.country_name.toUpperCase()))||null:n.default.find((e=>"USA"===e.alpha3))||null},p.findExactCountryPhoneData=a,p.findPossibleCountryPhoneData=o,p.findCountryPhoneDataByPhoneNumber=function(e,t){let h,i;for(const _ of n.default)e.match(new RegExp("^"+_.country_code))&&(h||(h=a(e,t,_)),i||(i=o(e,t,_)));return{exactCountryPhoneData:h,possibleCountryPhoneData:i}},p.validatePhoneISO3166=function(e,n,a,o){if(!n.phone_number_lengths)return!1;const t=e.replace(new RegExp("^"+n.country_code),"");if(o&&n&&t.length===e.length)return!1;const h=n.mobile_begin_with,i=n.phone_number_lengths.some((e=>t.length===e)),_=!h.length||h.some((e=>t.match(new RegExp("^"+e))));return i&&(!a||_)};const n=e(r());function a(e,n,a){return a.phone_number_lengths.some((n=>a.country_code.length+n===e.length))?a.mobile_begin_with.length&&n?a.mobile_begin_with.some((n=>e.match(new RegExp("^"+a.country_code+n))))?a:null:a:null}function o(e,n,a){return a.phone_number_lengths.some((n=>a.country_code.length+n+1===e.length))?a.mobile_begin_with.length&&n?a.mobile_begin_with.some((n=>e.match(new RegExp("^"+a.country_code+"\\d?"+n))))?a:void 0:a:null}return p}();function o(e,{country:n="",validateMobilePrefix:o=!0,strictDetection:t=!1}={}){const h={isValid:!1,phoneNumber:null,countryIso2:null,countryIso3:null,countryCode:null};let i="string"!=typeof e?"":e.trim();const _="string"!=typeof n?"":n.trim(),l=Boolean(i.match(/^\+/));i=i.replace(/\D/g,"");let r=(0,a.findCountryPhoneDataByCountry)(_);if(!r)return h;let u=!1;if(_)["CIV","COG"].includes(r.alpha3)||(i=i.replace(/^0+/,"")),"RUS"===r.alpha3&&11===i.length&&null!==i.match(/^89/)&&(i=i.replace(/^8+/,"")),!l&&r.phone_number_lengths.includes(i.length)&&(i=`${r.country_code}${i}`);else if(l){const{exactCountryPhoneData:e,possibleCountryPhoneData:n}=(0,a.findCountryPhoneDataByPhoneNumber)(i,o);e?r=e:n&&!t?(r=n,i=r.country_code+i.replace(new RegExp(`^${r.country_code}\\d`),"")):r=null}else-1!==r.phone_number_lengths.indexOf(i.length)&&(i=`1${i}`,u=!0);if(!r)return h;let c=(0,a.validatePhoneISO3166)(i,r,o,l);return c||u&&(r=(0,a.findCountryPhoneDataByCountry)("CAN"),c=(0,a.validatePhoneISO3166)(i,r,o,l),c)?{isValid:!0,phoneNumber:`+${i}`,countryIso2:r.alpha2,countryIso3:r.alpha3,countryCode:`+${r.country_code}`}:h}return _}();const m=class{constructor(a){e(this,a),this.rInput=n(this,"rInput"),this.rChange=n(this,"rChange"),this.rValidate=n(this,"rValidate"),this.rReset=n(this,"rReset"),this.name="phone-number",this.inputLabel="Phone number without country code",this.countryCodeLabel="Country code",this.fullPhoneNumber="",this.phoneNumber="",this.validityState="",this.validityMessage="",this.uniqueId=`r-input-phone-number-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.initial={},this.handleOnInput=e=>{if(this.readonly)return;this.phoneNumber=e.target.value,this.fullPhoneNumber=this.phoneNumber?this.countryCode+this.phoneNumber:"";const{host:n,phoneNumber:a,countryCode:o,value:t}=this;this.rInput.emit({element:n,value:t,countryCode:o,phoneNumber:a}),this.validateFormElement(this.nativeElement)},this.handleInputOnChange=e=>{this.readonly||(this.phoneNumber=e.target.value,this.handleValueChange())},this.handleValueChange=()=>{if(this.readonly)return;this.fullPhoneNumber=this.phoneNumber?this.countryCode+this.phoneNumber:"";const{host:e,phoneNumber:n,countryCode:a,value:o}=this;this.rChange.emit({element:e,value:o,countryCode:a,phoneNumber:n}),this.validateFormElement(this.nativeElement)},this.validateFormElement=e=>{if(this.readonly)return;if(null===e)return;if(this.isNoValidate)return;if(this.error)return;this.getValidityStateData();const n="valid"===this.validityState;this.valid=n,this.invalid=!n,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.getValidityStateData=()=>{var e,n;if(this.required||(null===(e=this.phoneNumber)||void 0===e?void 0:e.length))return(null===(n=this.phoneNumber)||void 0===n?void 0:n.length)?this.countryCode&&this.getPhoneValidationResult(this.phoneNumber,this.countryCode).isValid?void(this.validityState="valid"):(this.validityState="invalid",void(this.validityMessage=this.customErrorMessage)):(this.validityState="valueMissing",void(this.validityMessage=this.valueMissingMessage));this.validityState="valid"},this.onSubmitForm=e=>{this.isNoValidate||(this.validateFormElement(this.nativeElement),this.invalid&&(e.preventDefault(),e.stopPropagation()))},this.contributeToFormData=e=>{h(this.nativeElement||this.host,e.formData)},this.onResetForm=()=>{var e;if(this.readonly)return;this.validityState=null,this.validityMessage=null,this.phoneNumber="",this.invalid=this.initial.invalid,this.valid=!this.invalid,null===(e=this.countryCodeElement)||void 0===e||e.reset(),this.updateValues(this.initial.value);const{host:n,value:a}=this;this.rReset.emit({element:n,value:a})}}async getValue(){return this.fullPhoneNumber}async setValue(e){this.updateValues(e)}async setCustomValidity(e){this.customErrorMessage=e,this.validateFormElement(this.nativeElement)}async reportValidity(){return this.validateFormElement(this.nativeElement),"valid"===this.validityState}async reset(){this.onResetForm()}watchValueChange(e){this.updateValues(e),this.validateFormElement(this.nativeElement)}handleDisabledChange(){this.setCountryCodeElementAttributes({disabled:`${!!this.disabled}`})}handleRequiredChange(){this.setCountryCodeElementAttributes({required:`${!!this.required}`})}handleReadonlyChange(){this.setCountryCodeElementAttributes({readonly:`${!!this.readonly}`})}handleLabelChange(){this.setCountryCodeElementAttributes({label:this.countryCodeLabel})}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get countryCodeElement(){return this.host.querySelector("r-select")}get countryCode(){return this.host.querySelector("r-select").value||""}get ariaDescribedBy(){const e=`${this.uniqueId}-message`;return this.hint?`${this.uniqueId}-hint ${e}`:e}get hasError(){var e;return this.invalid&&!!(null===(e=this.error)||void 0===e?void 0:e.length)}get hasValidationError(){var e;return"valid"!==this.validityState&&!!(null===(e=this.validityMessage)||void 0===e?void 0:e.length)}get hasMessage(){return this.hasError||this.hasValidationError}get errorMessage(){return this.hasError&&this.error||this.hasValidationError&&this.validityMessage}get isNoValidate(){var e;return(null===(e=this.parentFormEl)||void 0===e?void 0:e.hasAttribute("novalidate"))||this.novalidate||!1}updateValues(e){var n,a;if(this.fullPhoneNumber=e||"",!e)return null===(n=this.countryCodeElement)||void 0===n||n.reset(),void(this.phoneNumber="");if(!this.getPhoneValidationResult(e).isValid)return void console.error("Provided phone number is not valid");const o=this.getPhoneValidationResult(e).countryCode;this.phoneNumber=e.replace(o,""),null===(a=this.countryCodeElement)||void 0===a||a.setValue(o)}setCountryCodeElementAttributes(e){Object.entries(e||{}).forEach((([e,n])=>{var a,o;!1===n||null==n?null===(a=this.countryCodeElement)||void 0===a||a.removeAttribute(e):null===(o=this.countryCodeElement)||void 0===o||o.setAttribute(e,String(n))}))}getPhoneValidationResult(e,n=""){return b.phone(n+e,{validateMobilePrefix:!1})}connectEventListeners(){var e,n,a,o;null===(e=this.countryCodeElement)||void 0===e||e.addEventListener("rChange",this.handleValueChange),null===(n=this.parentFormEl)||void 0===n||n.addEventListener("formdata",this.contributeToFormData),null===(a=this.parentFormEl)||void 0===a||a.addEventListener("submit",this.onSubmitForm,{capture:!0}),null===(o=this.parentFormEl)||void 0===o||o.addEventListener("reset",this.onResetForm)}disconnectEventListeners(){var e,n,a,o;null===(e=this.countryCodeElement)||void 0===e||e.removeEventListener("rChange",this.handleValueChange),null===(n=this.parentFormEl)||void 0===n||n.removeEventListener("formdata",this.contributeToFormData),null===(a=this.parentFormEl)||void 0===a||a.removeEventListener("submit",this.onSubmitForm),null===(o=this.parentFormEl)||void 0===o||o.removeEventListener("reset",this.onResetForm)}componentWillLoad(){this.initial.value=this.value,this.initial.invalid=this.invalid,this.updateValues(this.value);const e={disabled:`${!!this.disabled}`,required:`${!!this.required}`,readonly:`${!!this.readonly}`,label:this.countryCodeLabel};this.setCountryCodeElementAttributes(Object.assign(Object.assign({},{"show-leading-icon":"true","leading-icon":"globe",placeholder:"+00",internal:"true"}),e))}componentDidLoad(){this.connectEventListeners()}disconnectedCallback(){this.disconnectEventListeners()}render(){const{label:e,fieldIndicator:n,hint:t,name:h,form:i,inputLabel:_,tooltip:l,tooltipIcon:r,tooltipIconColor:u,disabled:c,uniqueId:p,required:b,valid:m,invalid:s,novalidate:g,phoneNumber:y,fullPhoneNumber:d,fullWidth:w}=this,v=Object.assign({fieldIndicator:n},l?{tooltip:l,"tooltip-icon":r,"tooltip-icon-color":u}:{}),M={id:p,form:i,name:h,novalidate:g,required:b,disabled:c,"aria-describedby":this.ariaDescribedBy};return a(o,{key:"93e31af4d248db4fe90a84b897d96207dbf9b6e9"},a("div",{key:"fc909eb39efe18413838c9f051d7ad7d5aa461b3",class:"r-input-phone-number--label-container"},a("label",{key:"b849fc5188a03e52151006fd48338fe0a07dfd83",id:`${p}-label`},e&&a("r-label",Object.assign({key:"6bab502ebce17055ef3e2862f9063bfd2d0d1291"},v),e)),a("slot",{key:"014cbcd421f75299935cf430a8777ded1880134c",name:"popover"})),t&&a("r-hint",{key:"4f8e473e4c70ac62618f6d651dca1880aa755c3e",id:`${p}-hint`,role:"note"},t),a("div",{key:"7fa42ec6de7083cc8703f5bcbbfaabe283462d45",class:"r-input-phone-number",role:"group","aria-labelledby":`${p}-label`,"aria-describedby":this.ariaDescribedBy},a("slot",{key:"64b8a315acb0057e82d1c77dd3b35bc141378cc0"}),a("r-input",{key:"5fdaa9c0c5bb4913637b895f0979f377bac876bc",label:_,value:y,internal:!0,valid:m,invalid:s,required:b,readonly:this.readonly,novalidate:!0,fullWidth:w,type:"tel",error:this.errorMessage||"",onRInput:this.handleOnInput,onRChange:this.handleInputOnChange,disabled:c},m&&y&&a("r-icon",{key:"6c25f0a2e473315279679c3e607691f8a3eca396",slot:"trailing",name:"circled-check",size:"s",color:"var(--r-status-success-regular)"}))),a("input",Object.assign({key:"39cca18332d8e6473bef33db6e395a8aac36a954",type:"hidden"},M,{readonly:this.readonly,value:d,ref:e=>this.nativeElement=e})),a("r-hint",{key:"8feb70b56f27287b06a3ba894a554d736d9e9b4b","aria-live":"polite","aria-atomic":"true",id:`${p}-message`,class:!this.hasMessage&&"visually-hidden",variant:"error"},this.hasMessage?this.hasError?this.error:this.validityMessage:""))}get host(){return t(this)}static get watchers(){return{value:["watchValueChange"],disabled:["handleDisabledChange"],required:["handleRequiredChange"],readonly:["handleReadonlyChange"],label:["handleLabelChange"]}}};m.style=":host{display:inline-flex;flex-direction:column;vertical-align:top;--r-input--container--margin-top:0;--r-input--container--margin-bottom:0}:host slot{display:contents}:host ::slotted(r-select){min-width:var(--r-input-phone-number--select--min-width, 7rem);width:var(--r-input-phone-number--select--width, fit-content)}:host r-input.focused{--r-input--container--border-style:solid}:host([full-width]:not([full-width=false])){width:100%}.r-input-phone-number{margin-top:var(--r-input-phone-number--margin-top, var(--r-spacing-025, 0.25rem));margin-bottom:var(--r-input-phone-number--margin-bottom, var(--r-spacing-025, 0.25rem));width:var(--r-input-phone-number--width, 100%);display:var(--r-input-phone-number--display, inline-flex);justify-content:var(--r-input-phone-number--justify-content, center);align-items:var(--r-input-phone-number--align-items, center);gap:var(--r-input-phone-number--gap, 0)}.r-input-phone-number--label-container{display:var(--r-input-phone-number--label-container--display, flex);gap:var(--r-input-phone-number--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-input-phone-number--label-container--align-items, center);justify-content:var(--r-input-phone-number--label-container--align-items, space-between)}.r-input-phone-number--label-container ::slotted([slot=popover]){display:var(--r-input-phone-number--popover--display, inline-flex);height:var(--r-input-phone-number--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-input-phone-number--popover--align-items, center);justify-content:var(--r-input-phone-number--popover--justify-content, center);margin-right:var(--r-input-phone-number--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-input-phone-number--popover-trigger--min-width, var(--r-spacing-150, 1.5));--r-popover--trigger--min-height:var(--r-input-phone-number--popover--trigger--min-height, var(--r-spacing-150, 1.5))}.r-input-phone-number r-input{margin-left:-1px;flex:1}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";export{m as r_input_phone_number}
@@ -0,0 +1 @@
1
+ import{r as a,h as r,H as o,g as i}from"./p-CTxpqopm.js";const e=class{constructor(r){a(this,r),this.open=!1,this.bodyHeight="auto",this.size="medium",this.isOpen=this.open,this.uniqueId=`r-dialog-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g,""),this.isElContent=a=>{const r=this.host.querySelector(a);return null!==r&&(null==r?void 0:r.textContent.trim().length)>0},this.onTriggerClick=()=>{this.close()},this.isInside=a=>{var r;const o=null===(r=this.dialogElement)||void 0===r?void 0:r.getBoundingClientRect();return o.top<=a.clientY&&a.clientY<=o.bottom&&o.left<=a.clientX&&a.clientX<=o.right}}handleOpenChange(){this.open&&!this.isOpen&&this.showModal()}get isHeaderSlot(){return this.isElContent('[slot="header"]')}get isFooterSlot(){return this.isElContent('[slot="footer"]')}get dialogLabel(){var a,r;return this.headline||(null===(r=null===(a=this.host.querySelector('[slot="header"]'))||void 0===a?void 0:a.textContent)||void 0===r?void 0:r.trim())}async showModal(){var a;this.isOpen=!0,null===(a=this.dialogElement)||void 0===a||a.showModal()}async close(){var a;const{returnValue:r}=this;null===(a=this.dialogElement)||void 0===a||a.close(r),this.isOpen=!1}async toggle(){this.isOpen?this.showModal():this.close()}_renderInitialState(){this.isOpen&&this.showModal()}connectEventListeners(){var a;null===(a=this.dialogElement)||void 0===a||a.addEventListener("close",this.close)}disconnectEventListeners(){var a;null===(a=this.dialogElement)||void 0===a||a.removeEventListener("close",this.close)}componentDidLoad(){this._renderInitialState(),this.connectEventListeners()}disconnectedCallback(){this.disconnectEventListeners()}onMouseup(a){this.isOpen&&(a.stopPropagation(),this.isInside(a)||this.close())}render(){return r(o,{key:"737d76e776ac2cc3defa0901468561001e7b37b7",open:this.isOpen},r("dialog",{key:"df31d5f76bc8abad74bd5cba18a16a56a8b8e516",class:"r-dialog","aria-label":this.dialogLabel,ref:a=>this.dialogElement=a,style:{"--r-dialog--body--height":this.bodyHeight}},r("div",{key:"f908c6c99cbec0916d188b281a4442ff3f37d6f9",class:"r-dialog--content"},r("div",{key:"93c2edbbb270490d7cdc306eb0caffd62abb81c1",class:"r-dialog--header",id:`${this.uniqueId}-header`},this.isHeaderSlot&&r("slot",{key:"543cc36c2025cb4057dd0df625516b0440e9df4a",name:"header"}),this.headline&&r("h2",{key:"b27a24af0db0e6f8ea77fb4b0673035b2dfd847f",class:"r-dialog--headline"},this.headline),r("r-icon-button",{key:"c16463cb0447ce47a98243d07815d2501191bf7a",class:"r-dialog--close",name:"cross",size:"s",onRClick:this.onTriggerClick,label:this.closeAriaLabel})),r("div",{key:"03086587139a96d9c0fdf1ac5ab76cb5cf1da47b",class:"r-dialog--body"},this.bodyText,r("slot",{key:"c4c97478413cab5a2dccbf9ef3ff8d973851e8f8"}),r("slot",{key:"d8f5ea4b6cddfa9cf67c1c5a8938f607ceca5b26",name:"form"})),this.isFooterSlot&&r("div",{key:"1c029e0888e4484bcf522f869b6a7efd341950dd",class:"r-dialog--footer"},r("slot",{key:"f186b361e2012e7910a8fad251d2811545574c17",name:"footer"})))))}get host(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};e.style=":host([size=small]){--r-dialog--width:23.4375rem;--r-dialog--max-height:15.625rem}:host([size=medium]){--r-dialog--width:37.5rem;--r-dialog--max-height:37.5rem}:host([size=large]){--r-dialog--width:50rem;--r-dialog--max-height:45rem}@media (max-width: 50rem){:host([size=large]){--r-dialog--width:100%;--right:0;--left:0;--r-dialog--footer--flex-wrap:wrap}}@media (max-height: 48.75rem){:host([size=large]){--r-dialog--margin:18px auto;--top:0;--bottom:0}}@media (max-width: 37.5rem){:host([size=medium]){--r-dialog--width:100%;--right:0;--left:0;--r-dialog--footer--flex-wrap:wrap}}@media (max-height: 43.75rem){:host([size=medium]){--r-dialog--margin:18px auto;--top:0;--bottom:0}}:host{top:var(--top, auto);right:var(--right, auto);bottom:var(--bottom, auto);left:var(--left, auto)}.r-dialog{border:var(--r-dialog--border, none);padding:var(--r-dialog--padding, 24px 0);box-sizing:var(--r-dialog--box-sizing, border-box);overflow:var(--r-dialog--overflow, hidden);width:var(--r-dialog--width, auto);height:var(--r-dialog--height, auto);background-color:var(--r-dialog--background-color, var(--r-background-softest));margin:var(--r-dialog--margin, auto);max-height:var(--r-dialog--max-height, auto)}.r-dialog--content{display:var(--r-dialog--content--display, flex);flex-direction:var(--r-dialog--content--flex-direction, column);gap:var(--r-dialog--content--gap, var(--r-spacing-150, 1.5rem));color:var(--r-dialog--content--color, var(--r-text-regular));height:var(--r-dialog--content--height, 100%)}.r-dialog--headline{font-family:var(--r-dialog--headline--font-family, var(--r-font-family-heading, sans-serif));font-size:var(--r-dialog--headline--font-size, var(--r-font-size-500));font-weight:var(--r-dialog--headline--font-weight, var(--r-font-weight-light));margin:var(--r-dialog--headline--margin, 0);flex:var(--r-dialog--headline--flex, 1)}.r-dialog--close{--r-button--display:var(--r-dialog--close--dispaly, flex);--r-button--padding:var(--r-dialog--close--padding, 0)}.r-dialog--header{display:var(--r-dialog--header--display, flex);justify-content:var(--r-dialog--header--justify-content, space-between);align-items:var(--r-dialog--header--align-items, start);gap:var(--r-dialog--header--gap, 32px);padding:var(--r-dialog--header--padding, 0 24px)}.r-dialog--body{font-family:var(--r-dialog--body--font-family, var(--r-font-family-text));font-size:var(--r-dialog--body--font-size, var(--r-font-size-desktop-400));line-height:var(--r-dialog--body--line-height, var(--r-line-height-m));flex-grow:var(--r-dialog--body--flex-grow, 1);overflow-y:var(--r-dialog--body--overflow, auto);justify-self:var(--r-dialog--body--justify-self, stretch);padding:var(--r-dialog--body--padding, 0 24px)}.r-dialog--body{scrollbar-width:auto;scrollbar-color:var(--r-border-softer) #ffffff}.r-dialog--body::-webkit-scrollbar{width:var(--r-spacing-100, 1rem)}.r-dialog--body::-webkit-scrollbar-track{background:#ffffff}.r-dialog--body::-webkit-scrollbar-thumb{background-color:var(--r-border-softer);border-radius:10px;border:3px solid #ffffff}.r-dialog--footer{margin-top:var(--r-dialog--footer--margin-top, auto)}.r-dialog--footer ::slotted(*){display:var(--r-dialog--footer--display, flex);flex-direction:var(--r-dialog--footer--flex-direction, row);flex-wrap:var(--r-dialog--footer--flex-wrap, nowrap);justify-content:var(--r-dialog--footer--justify-content, flex-start);gap:var(--r-dialog--footer--gap, var(--r-spacing-100, 1rem));align-items:var(--r-dialog--footer--align-items, end);padding:var(--r-dialog--header--padding, 0 24px)}.r-dialog::backdrop{background:var(--backdrop--background-color, rgba(0, 0, 0, 0.25))}";export{e as r_dialog}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,F as e,H as r,g as s}from"./p-CTxpqopm.js";const l=class{constructor(i){t(this,i),this.variant="list-item",this.expanded=!1,this.isEl=t=>null!==this.host.querySelector(t)}async toggleSubitems(){this.disabled||"subitem"!==this.variant&&(this.expanded=!this.expanded)}get isLeadingIcon(){var t,i;return(null===(t=this.leadingIcon)||void 0===t?void 0:t.length)>0||(null===(i=this.leadingIconSrc)||void 0===i?void 0:i.length)>0}get isLeadingSlot(){return this.isEl('[slot="leading"]')}get isLeading(){return this.isLeadingIcon||this.isLeadingSlot}get isTrailingIcon(){var t,i;return(null===(t=this.trailingIcon)||void 0===t?void 0:t.length)>0||(null===(i=this.trailingIconSrc)||void 0===i?void 0:i.length)>0}get isTrailingSlot(){return this.isEl('[slot="trailing"]')}get isTrailing(){var t;return this.isTrailingIcon||(null===(t=this.trailingText)||void 0===t?void 0:t.length)>0||this.isTrailingSlot}get isTextSlot(){return this.isEl('[slot="text"]')}get isHeadlineSlot(){return this.isEl('[slot="headline"]')}get isDescriptionSlot(){return this.isEl('[slot="description"]')||this.isEl('[slot="subtext"]')}get hasSubitems(){return this.isEl('[variant="subitem"]')}get subItems(){var t;return null===(t=this.host)||void 0===t?void 0:t.querySelectorAll('[variant="subitem"]')}handleKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.toggleSubitems()}handleSubitemClick(t){t.stopPropagation()}setTabIndexOnSubItems(){this.hasSubitems&&this.subItems.forEach((t=>{t.shadowRoot.querySelector("a.r-list-item").setAttribute("tabindex",this.disabled?"-1":"0")}))}componentDidLoad(){this.setTabIndexOnSubItems()}get tagName(){return this.href&&!this.disabled?"a":"div"}render(){const{leadingIcon:t,leadingIconSrc:s,trailingIcon:l,trailingIconSrc:o,headline:a,trailingText:n,subtext:d,description:m}=this,c=this.tagName,v=Object.assign({href:"a"===c?this.href:null},this.disabled?{role:"link","aria-disabled":"true"}:null),h=i(c,Object.assign({class:"r-list-item"},v),this.isLeading&&i("span",{class:"r-list-item--leading"},i("slot",{name:"leading"},this.isLeadingIcon&&i("r-icon",{class:"r-list-item--leading-icon",name:t,src:s}))),i("span",{class:"r-list-item--text"},this.isTextSlot?i("slot",{name:"text"}):i(e,null,(this.isHeadlineSlot||a)&&i("span",{class:"r-list-item--headline"},i("slot",{name:"headline"},a)),(m||this.isDescriptionSlot||d)&&i("span",{class:"r-list-item--description"},i("slot",{name:"subtext"},d),i("slot",{name:"description"},m)))),this.isTrailing&&i("span",{class:"r-list-item--trailing"},i("slot",{name:"trailing"},this.isTrailingIcon&&!n&&i("r-icon",{class:"r-list-item--trailing-icon",name:l,src:o}),n&&!this.isTrailingIcon&&i("span",{class:"r-list-item--trailing-text"},n))));return this.hasSubitems?i(r,{onKeyDown:this.handleKeyDown,onClick:this.toggleSubitems,tabindex:this.disabled?"-1":"0"},i("div",{class:"r-list-item-wrapper"},h,this.expanded&&i("span",{class:"sub-items",onClick:this.handleSubitemClick},i("slot",null)))):i(r,null,h)}get host(){return s(this)}};l.style=":host([alignment=top]) .r-list-item{--r-list-item--trailing--align-self:start}:host([alignment=bottom]) .r-list-item{--r-list-item--trailing--align-self:end}:host([divider]:not([divider=false])){--r-list-item--border-color:var(--r-border-soft, #686868);--r-list-item--border-width:0 0 1px 0}:host([active]) .r-list-item{--r-list-item--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host([variant=navitem]:not([active]):hover:not([disabled]:not([disabled=false])))>.r-list-item,:host([href]:not([active]):hover:not([disabled]:not([disabled=false])))>.r-list-item{--r-list-item--cursor:pointer;--r-list-item--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([variant=navitem][has-sub-items]:hover:not([disabled]:not([disabled=false])))>.r-list-item-wrapper>.r-list-item{--r-list-item--cursor:pointer;--r-list-item--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04))}:host([variant=navitem][has-sub-items]:has([active]):hover:not([disabled]:not([disabled=false])))>.r-list-item-wrapper>.r-list-item{--r-list-item--cursor:pointer;--r-list-item--background-color:transparent}:host([variant=navitem][expanded])>.r-list-item-wrapper>.r-list-item{--r-list-item--headline--font-weight:600;--r-list-item--trailing-icon--transform:rotate(180deg);--r-list-item--trailing-icon--color:var(--r-icon-regular, #282828)}:host([variant=navitem][active-parent]:not([expanded])),:host([variant=navitem][active]:not([expanded])){--r-list-item--background-color:var(--r-background-interactive-activated, rgba(40, 40, 40, 0.08))}:host([variant=subitem]) .r-list-item{--r-list-item--margin-left:27px;--r-list-item--border-width:0 0 0 1px;--r-list-item--border-color:var(--r-border-soft, #686868)}:host([variant=subitem][active]) .r-list-item{--r-list-item--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12))}:host(:focus-visible:not(:active)) .r-list-item{--r-list-item--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-list-item--outline:2px solid var(--r-border-focused, #0071e3);--r-list-item--outline-offset:2px}:host(:focus-within) .r-list-item[href]{--r-list-item--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-list-item--outline:2px solid var(--r-border-focused, #0071e3);--r-list-item--outline-offset:2px}:host([disabled]:not([disabled=false])){cursor:not-allowed;--r-list-item--background-color:transparent}:host([disabled]:not([disabled=false])[divider]:not([divider=false])){--r-list-item--border-color:rgba(104,104,104, 0.4);--r-list-item--leading-icon--color:rgba(104,104,104, 0.4)}:host{display:var(--display, block);pointer-events:var(--pointer-events, auto);outline:var(--outline, none);font-family:var(--font-family, var(--r-font-family-text, system-ui));line-height:var(--line-height, var(--r-line-height-m, 1.5));color:var(--color, var(--r-text-regular, #282828))}.r-list-item{display:var(--r-list-item--display, flex);align-items:var(--r-list-item--align-items, center);justify-content:var(--r-list-item--justify-content, center);gap:var(--r-list-item--gap, 16px);width:var(--r-list-item--width, inherit);padding:var(--r-list-item--padding, 16px);margin-left:var(--r-list-item--margin-left, 0);opacity:var(--r-list-item--opacity, 1);color:var(--r-list-item--color, inherit);box-shadow:var(--r-list-item--box-shadow, none);outline:var(--r-list-item--outline, none);outline-offset:var(--r-list-item--outline-offset, 0);text-decoration:var(--r-list-item--text-decoration, none);background-color:var(--r-list-item--background-color, transparent);border-style:var(--r-list-item--border-style, solid);border-width:var(--r-list-item--border-width, 0);border-color:var(--r-list-item--border-color, transparent);cursor:var(--r-list-item--cursor, inherit);font-weight:var(--r-list-item--font-weight, var(--r-font-weight-regular, 400));outline:var(--r-list-item--outline, none)}.r-list-item--leading{color:var(--r-list-item--leading--color, var(--r-icon-soft, #686868))}.r-list-item--leading-icon{color:var(--r-list-item--leading-icon--color, var(--r-icon-soft, #686868))}.r-list-item--text{flex-grow:var(--r-list-item--text--flex-grow, 1);overflow:var(--r-list-item--overflow);display:var(--r-list-item--text-slot--display);white-space:var(--r-list-item--text--white-space, nowrap);overflow:var(--r-list-item--text--overflow, hidden);text-overflow:var(--r-list-item--text--text-overflow, ellipsis)}.r-list-item--trailing{display:var(--r-list-item--trailing--display, flex);align-self:var(--r-list-item--trailing--align-self, center);gap:var(--r-list-item--trailing--gap, 8px);color:var(--r-list-item--trailing--color, inherit)}.r-list-item--trailing-icon{transition:var(--r-list-item--trailing-icon--transition, transform 250ms ease-in-out);transform:var(--r-list-item--trailing-icon--transform, rotate(0deg));color:var(--r-list-item--trailing-icon--color, inherit)}.r-list-item--trailing ::slotted(*){display:var(--r-list-item--trailing-slotted--display, flex);gap:var(--r-list-item--trailing-slotted--display, 8px)}.r-list-item--text{display:var(--r-list-item--text--display, flex);flex-direction:var(--r-list-item--text--flex-direction, column);gap:var(--r-list-item--text--gap, 2px)}.r-list-item--headline{font-size:var(--r-list-item--headline--font-size, 1rem);font-weight:var(--r-list-item--headline--font-weight, 600);line-height:var(--r-list-item--headline--line-height, 1.5);color:var(--r-list-item--headline--color, inherit)}.r-list-item--subtext,.r-list-item--description{font-size:var(--r-list-item--description--font-size, var(--r-list-item--subtext--font-size, 1rem));font-weight:var(--r-list-item--description--font-weight, var(--r-list-item--subtext--font-weight, 400));line-height:var(--r-list-item--description--line-height, var(--r-list-item--subtext--line-height, 1.5));color:var(--r-list-item--description--color, var(--r-list-item--subtext--color, var(--r-text-regular, #282828)))}.r-list-item--subtext ::slotted(a.subtext),.r-list-item--description ::slotted(a.subtext){color:var(--r-list-item--description--color, var(--r-list-item--subtext--slotted--color, inherit));text-decoration:var(--r-list-item--description--text-decoration, var(--r-list-item--subtext--slotted--text-decoration, none))}";export{l as r_list_item}
@@ -0,0 +1 @@
1
+ import{r as o,c as r,h as t,H as n,g as i}from"./p-CTxpqopm.js";const e=class{constructor(t){o(this,t),this.rClick=r(this,"rClick"),this.size="m",this.tooltipPosition="top",this.variant="standard",this._handleClick=o=>{this.disabled?o.preventDefault():this.rClick.emit()},this.onFocus=()=>{this.setFocus()},this.onBlur=()=>{this.setBlur()}}async triggerClick(){var o;null===(o=this.nativeElement)||void 0===o||o.click()}async setFocus(){var o;null===(o=this.nativeElement)||void 0===o||o.focus()}async setBlur(){var o;null===(o=this.nativeElement)||void 0===o||o.blur()}render(){const{name:o,size:r,disabled:i,tooltipText:e,tooltipPosition:a}=this,c={disabled:i},s={name:o,size:r},b=()=>t("button",Object.assign({key:"9edaaa1a459ffc088ec0b5817a06636634a8a700",type:"button",class:"r-icon-button","aria-label":this.host.getAttribute("aria-label")||null},c,{onClick:this._handleClick,onFocus:this.onFocus,onBlur:this.onBlur,ref:o=>this.nativeElement=o}),o?t("r-icon",Object.assign({},s)):t("r-icon",{size:r,class:"r-icon-button--icon"},t("slot",null)),t("span",{key:"f1a386a189634b597a1744520aba2b862e206278",class:"r-icon-button--label visually-hidden"},this.label),t("span",{key:"c66d4aaabec9fc5ef871d520c7037b94bb1a6f2b",class:"r-icon-button--target-area"}));return t(n,{key:"8de48d1041bb285a3bff1b831eb24619f61e8d00"},!i&&e?t("r-tooltip",{text:e,position:a},b()):b())}get host(){return i(this)}};e.style=":host{display:inline-flex;vertical-align:top;--r-icon-button--color:inherit}:host(:hover:not([disabled]:not([disabled=false])):not(:active)){--r-icon-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));--r-icon-button--border-color:var(--r-border-soft, #686868)}:host(:active:not([disabled]:not([disabled=false]))){--r-icon-button--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));--r-icon-button--border-color:var(--r-border-soft, #686868)}:host(:focus-within:not(:active):not([disabled]:not([disabled=false]))){box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);outline:2px solid var(--r-border-focused, #0071e3);outline-offset:2px}:host([disabled]:not([disabled=false])){opacity:0.4;--r-icon-button--cursor:not-allowed;--r-icon-button--box-shadow:none;--r-icon-button--background-color:transparent;--r-icon-button--border-color:transparent}:host([variant=contained]){--r-icon-button--color:var(--r-icon-inverse, #fff);--r-icon-button--background-color:var(--r-background-interactive-regular, #282828);--r-icon-button--border-color:var(--r-border-transparent, transparent);--r-icon-button--box-shadow:none}:host([variant=contained]:hover:not([disabled]:not([disabled=false]))){--r-icon-button--color:var(--r-icon-regular, #282828);--r-icon-button--background-color:var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));--r-icon-button--border-color:var(--r-border-soft, #686868)}:host([variant=contained]:active:not([disabled]:not([disabled=false]))){--r-icon-button--color:var(--r-icon-regular, #282828);--r-icon-button--background-color:var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));--r-icon-button--border-color:var(--r-border-soft, #686868)}:host([variant=contained][disabled]:not([disabled=false])){--r-icon-button--color:var(--r-icon-inverse, #fff);--r-icon-button--background-color:var(--r-background-interactive-regular, #282828);--r-icon-button--border-color:transparent}:host([size=s]){--r-icon-button--height:1.5rem;--r-icon-button--width:1.5rem}:host([size=m]){--r-icon-button--height:2.25rem;--r-icon-button--width:2.25rem}:host([size=l]){--r-icon-button--height:2.75rem;--r-icon-button--width:2.75rem}.r-icon-button{display:var(--r-icon-button--display, inline-flex);align-items:var(--r-icon-button--align-items, center);justify-content:var(--r-icon-button--justify-content, center);outline:var(--r-icon-button--outline, none);cursor:var(--r-icon-button--cursor, pointer);pointer-events:var(--r-icon-button--pointer-events, initial);padding:var(--r-icon-button--padding, 0);border:var(--r-icon-button--border, none);color:var(--r-icon-button--color, inherit);background-color:var(--r-icon-button--background-color, transparent);box-sizing:var(--r-icon-button--box-sizing, border-box);border-width:var(--r-icon-button--border-width, 1px);border-style:var(--r-icon-button--border-style, solid);border-color:var(--r-icon-button--border-color, transparent);border-radius:var(--r-icon-button--border-radius, 50%);z-index:var(--r-icon-button--z-index, initial);width:var(--r-icon-button--width, 2.25rem);height:var(--r-icon-button--height, 2.25rem)}.r-icon-button--target-area{position:var(--r-icon-button--target-area--position, absolute);background:var(--r-icon-button--target-area--background, rgba(0, 0, 0, 0));width:var(--r-icon-button--target-area--width, 2.75rem);height:var(--r-icon-button--target-area--height, 2.75rem);z-index:var(--r-icon-button--target-area--z-index, 1)}.r-icon-button--icon{display:flex;align-items:center;justify-content:center}.visually-hidden{position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}";export{e as r_icon_button}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-CTxpqopm.js";import{a as o}from"./p-DvLT8-y3.js";const a=class{constructor(s){t(this,s),this.rValidate=i(this,"rValidate"),this.rInput=i(this,"rInput"),this.rChange=i(this,"rChange"),this.rReset=i(this,"rReset"),this.value="",this.showPasswordAriaLabel="Show password.",this.hidePasswordAriaLabel="Hide password.",this.shownPasswordMessage="Your password is shown.",this.hiddenPasswordMessage="Your password is hidden.",this.showed=!1,this.validityState="",this.validityMessage="",this.initial={},this.onShowClick=t=>{t.stopPropagation(),this.toggleShow()},this.alertOnPasswordVisibilityChange=()=>{this.passwordVisibilityChangeAlertContainer.innerText=this.showed?this.shownPasswordMessage:this.hiddenPasswordMessage,this.passwordVisibilityTimer=setTimeout((()=>{this.passwordVisibilityChangeAlertContainer.innerText="",clearTimeout(this.passwordVisibilityTimer)}),2e3)},this.onInput=t=>{if(this.readonly)return;this.value=t.detail.value;const{host:i,value:s}=this;this.rInput.emit({element:i,value:s})},this.onChange=t=>{if(this.readonly)return;this.value=t.detail.value;const{host:i,value:s}=this;this.rChange.emit({element:i,value:s})},this.getValidityStateData=t=>{for(const i in t.validity)if(t.validity[i]){if(this.validityState=i,this[i+"Message"])return void(this.validityMessage=this[i+"Message"]);this.validityMessage=t.validationMessage}},this.validateFormElement=t=>{if(null===t)return;if(this.isNoValidate)return;if(this.error)return;this.getValidityStateData(t.shadowRoot.querySelector("input"));const i="valid"===this.validityState;this.valid=i,this.invalid=!i,this.rValidate.emit({state:this.validityState,message:this.validityMessage})},this.contributeToFormData=t=>{o(this.nativeElement||this.host,t.formData)},this.onResetForm=()=>{if(this.readonly)return;this.validityState=null,this.validityMessage=null,this.value=this.initial.value,this.invalid=this.initial.invalid,this.valid=!this.invalid;const{host:t,value:i}=this;this.rReset.emit({element:t,value:i})},this.onSubmitForm=async t=>{this.isNoValidate||(this.validateFormElement(this.nativeElement),this.invalid&&(t.preventDefault(),t.stopPropagation()))},this.handleKeyup=async t=>{var i,s;if(this.readonly)return;if("Enter"!==t.code)return;if(this.validateFormElement(this.nativeElement),this.invalid&&!this.isNoValidate)return;const e=this.host.querySelector('[type="submit"]')||(null===(i=this.parentFormEl)||void 0===i?void 0:i.querySelector('[type="submit"]'));e&&"triggerClick"in e?null==e||e.triggerClick():null===(s=this.parentFormEl)||void 0===s||s.requestSubmit()},this.handleBlur=()=>{this.readonly||this.validateFormElement(this.nativeElement)}}async toggleShow(){this.showed?await this.hidePassword():await this.showPassword()}async showPassword(){this.showed=!0,this.alertOnPasswordVisibilityChange()}async hidePassword(){this.showed=!1,this.alertOnPasswordVisibilityChange()}async getValue(){return this.nativeElement.getValue()}async setValue(t){this.nativeElement.value=t}get parentFormEl(){return this.host.closest("form")||document.querySelector(`#${this.form}`)||null}get isNoValidate(){var t;return(null===(t=this.parentFormEl)||void 0===t?void 0:t.hasAttribute("novalidate"))||this.novalidate||!1}get hasError(){var t;return this.invalid&&!!(null===(t=this.error)||void 0===t?void 0:t.length)}get hasValidationError(){var t,i;return!("valid"===this.validityState||!(null===(t=this.customErrorMessage)||void 0===t?void 0:t.length)&&!(null===(i=this.validityMessage)||void 0===i?void 0:i.length))}get hasMessage(){return this.hasError||this.hasValidationError}componentWillLoad(){this.initial.value=this.value,this.initial.invalid=this.invalid}connectFormEventListeners(){var t,i,s;null===(t=this.parentFormEl)||void 0===t||t.addEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.addEventListener("submit",this.onSubmitForm,{capture:!0}),null===(s=this.parentFormEl)||void 0===s||s.addEventListener("reset",this.onResetForm)}disconnectFormEventListeners(){var t,i,s;null===(t=this.parentFormEl)||void 0===t||t.removeEventListener("formdata",this.contributeToFormData),null===(i=this.parentFormEl)||void 0===i||i.removeEventListener("submit",this.onSubmitForm),null===(s=this.parentFormEl)||void 0===s||s.removeEventListener("reset",this.onResetForm)}connectedCallback(){this.connectFormEventListeners()}disconnectedCallback(){this.disconnectFormEventListeners()}render(){const{name:t,placeholder:i,required:h,fieldIndicator:o,value:a,disabled:l,form:r,invalid:n,valid:d,hint:u,label:c,tooltip:f,tooltipIcon:v,tooltipIconColor:p,fullWidth:b,showPasswordAriaLabel:m,hidePasswordAriaLabel:y,showed:g,readonly:w}=this;return s(e,{key:"a572ffb573f9d4ff7732c372077d1488a86fd4be"},s("r-input",Object.assign({key:"9296fe93c32f82c850c571dfc588d599d4fedfeb"},{name:t,placeholder:i,required:h,fieldIndicator:o,value:a,disabled:l,form:r,invalid:n,valid:d,hint:u,label:c,tooltip:f,tooltipIcon:v,tooltipIconColor:p,fullWidth:b,novalidate:!0,readonly:w},{ref:t=>this.nativeElement=t,type:g?"text":"password",onRInput:this.onInput,onRChange:this.onChange,onKeyUp:this.handleKeyup,onRBlur:this.handleBlur}),s("r-icon",{key:"4ed51719c83a3b4e90fd86d95969b982f3372d16",name:"padlock-closed",size:"s",slot:"leading"}),s("slot",{key:"c00d7cd2254773750a7a4627c7600550590f0e03",name:"popover",slot:"popover"}),s("r-icon-button",{key:"7bf8aabd7b00a2a36038d1f6162f11114dfa72fa",slot:"trailing",name:g?"eye-crossed-out":"eye",size:"s",disabled:l,label:g?y:m,onClick:this.onShowClick}),this.hasMessage&&s("r-hint",{key:"654c4558871e740f13ae50351ff82e3befccc83d",slot:"message",variant:"error"},this.hasError&&this.error,this.hasValidationError&&(this.customErrorMessage||this.validityMessage))),s("div",{key:"e8b5e4a4a69ddf7074e88eb18c5e9ff725e3baa5",class:"visually-hidden",ref:t=>this.passwordVisibilityChangeAlertContainer=t,"aria-live":"polite"}))}get host(){return h(this)}};a.style=":host{display:inline-flex;flex-direction:column;vertical-align:top}:host([full-width]:not([full-width=false])){display:block}:host([disabled]:not([disabled=false])) r-icon-button{opacity:1}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";export{a as r_input_password}