@riverty/web-components 5.4.0 → 5.6.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 (214) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +3 -3
  3. package/custom-elements.json +27 -15
  4. package/dist/cjs/{index-BnETQtSf.js → index-DJ4H_bFj.js} +382 -5
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/r-accordion-item.cjs.entry.js +1 -1
  7. package/dist/cjs/r-accordion-panel.cjs.entry.js +1 -1
  8. package/dist/cjs/r-accordion-section.cjs.entry.js +1 -1
  9. package/dist/cjs/r-accordion-trigger.cjs.entry.js +1 -1
  10. package/dist/cjs/r-accordion.cjs.entry.js +2 -2
  11. package/dist/cjs/r-alert.cjs.entry.js +1 -1
  12. package/dist/cjs/r-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/r-button.cjs.entry.js +2 -2
  14. package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
  15. package/dist/cjs/r-checkbox.cjs.entry.js +5 -5
  16. package/dist/cjs/r-design-system-devtools.cjs.entry.js +1 -1
  17. package/dist/cjs/r-dialog.cjs.entry.js +8 -10
  18. package/dist/cjs/r-hint_3.cjs.entry.js +136 -38
  19. package/dist/cjs/r-icon-button.cjs.entry.js +4 -4
  20. package/dist/cjs/r-icon.cjs.entry.js +3 -3
  21. package/dist/cjs/r-input-code.cjs.entry.js +1 -1
  22. package/dist/cjs/r-input-date.cjs.entry.js +7 -7
  23. package/dist/cjs/r-input-password.cjs.entry.js +3 -3
  24. package/dist/cjs/r-input-phone-number.cjs.entry.js +5 -5
  25. package/dist/cjs/r-input.cjs.entry.js +19 -6
  26. package/dist/cjs/r-list-item.cjs.entry.js +5 -6
  27. package/dist/cjs/r-pagination.cjs.entry.js +1 -1
  28. package/dist/cjs/r-panel.cjs.entry.js +1 -1
  29. package/dist/cjs/r-popover-action.cjs.entry.js +1 -1
  30. package/dist/cjs/r-popover-content.cjs.entry.js +1 -1
  31. package/dist/cjs/r-popover-headline.cjs.entry.js +1 -1
  32. package/dist/cjs/r-popover-trigger.cjs.entry.js +1 -1
  33. package/dist/cjs/r-popover.cjs.entry.js +1 -1
  34. package/dist/cjs/r-progress-bar.cjs.entry.js +1 -1
  35. package/dist/cjs/r-radio-button-description.cjs.entry.js +1 -1
  36. package/dist/cjs/r-radio-button-leading.cjs.entry.js +1 -1
  37. package/dist/cjs/r-radio-button-title.cjs.entry.js +1 -1
  38. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +1 -1
  39. package/dist/cjs/r-radio-button.cjs.entry.js +1 -1
  40. package/dist/cjs/r-radio-group.cjs.entry.js +7 -7
  41. package/dist/cjs/r-select-option.cjs.entry.js +1 -1
  42. package/dist/cjs/r-select.cjs.entry.js +3 -3
  43. package/dist/cjs/r-skip-link.cjs.entry.js +1 -1
  44. package/dist/cjs/r-stepper-item.cjs.entry.js +1 -1
  45. package/dist/cjs/r-stepper.cjs.entry.js +1 -1
  46. package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
  47. package/dist/cjs/r-tab.cjs.entry.js +1 -1
  48. package/dist/cjs/r-tabs-list.cjs.entry.js +1 -1
  49. package/dist/cjs/r-tabs.cjs.entry.js +1 -1
  50. package/dist/cjs/r-textarea.cjs.entry.js +1 -1
  51. package/dist/cjs/r-toast-group.cjs.entry.js +15 -5
  52. package/dist/cjs/r-toast.cjs.entry.js +10 -11
  53. package/dist/cjs/web-components.cjs.js +2 -2
  54. package/dist/collection/components/accordion/accordion.js +1 -2
  55. package/dist/collection/components/button/button.js +1 -2
  56. package/dist/collection/components/checkbox/checkbox.js +4 -5
  57. package/dist/collection/components/dialog/dialog.css +1 -1
  58. package/dist/collection/components/dialog/dialog.js +23 -8
  59. package/dist/collection/components/icon/bundled-icons/riverty-kit.json +1 -1
  60. package/dist/collection/components/icon/icon.js +2 -2
  61. package/dist/collection/components/icon/riverty-kit.js +1 -1
  62. package/dist/collection/components/icon-button/icon-button.js +3 -4
  63. package/dist/collection/components/input/input.js +37 -5
  64. package/dist/collection/components/input-date/input-date.js +7 -7
  65. package/dist/collection/components/input-password/input-password.js +3 -3
  66. package/dist/collection/components/input-phone-number/input-phone-number.js +5 -5
  67. package/dist/collection/components/label/label.js +4 -4
  68. package/dist/collection/components/list-item/list-item/list-item.css +19 -11
  69. package/dist/collection/components/list-item/list-item/list-item.js +41 -4
  70. package/dist/collection/components/radio-group/radio-group.js +7 -7
  71. package/dist/collection/components/select/select.js +3 -4
  72. package/dist/collection/components/textarea/textarea.js +1 -1
  73. package/dist/collection/components/toast/toast.css +8 -2
  74. package/dist/collection/components/toast/toast.js +10 -11
  75. package/dist/collection/components/toast-group/toast-group.css +14 -13
  76. package/dist/collection/components/toast-group/toast-group.js +14 -4
  77. package/dist/collection/components/tooltip/tooltip.css +6 -71
  78. package/dist/collection/components/tooltip/tooltip.js +135 -33
  79. package/dist/esm/{index-CTxpqopm.js → index-Da7qOBFr.js} +382 -5
  80. package/dist/esm/loader.js +3 -3
  81. package/dist/esm/r-accordion-item.entry.js +1 -1
  82. package/dist/esm/r-accordion-panel.entry.js +1 -1
  83. package/dist/esm/r-accordion-section.entry.js +1 -1
  84. package/dist/esm/r-accordion-trigger.entry.js +1 -1
  85. package/dist/esm/r-accordion.entry.js +2 -2
  86. package/dist/esm/r-alert.entry.js +1 -1
  87. package/dist/esm/r-badge.entry.js +1 -1
  88. package/dist/esm/r-button.entry.js +2 -2
  89. package/dist/esm/r-checkbox-group.entry.js +1 -1
  90. package/dist/esm/r-checkbox.entry.js +5 -5
  91. package/dist/esm/r-design-system-devtools.entry.js +1 -1
  92. package/dist/esm/r-dialog.entry.js +8 -10
  93. package/dist/esm/r-hint_3.entry.js +136 -38
  94. package/dist/esm/r-icon-button.entry.js +4 -4
  95. package/dist/esm/r-icon.entry.js +3 -3
  96. package/dist/esm/r-input-code.entry.js +1 -1
  97. package/dist/esm/r-input-date.entry.js +7 -7
  98. package/dist/esm/r-input-password.entry.js +3 -3
  99. package/dist/esm/r-input-phone-number.entry.js +5 -5
  100. package/dist/esm/r-input.entry.js +19 -6
  101. package/dist/esm/r-list-item.entry.js +5 -6
  102. package/dist/esm/r-pagination.entry.js +1 -1
  103. package/dist/esm/r-panel.entry.js +1 -1
  104. package/dist/esm/r-popover-action.entry.js +1 -1
  105. package/dist/esm/r-popover-content.entry.js +1 -1
  106. package/dist/esm/r-popover-headline.entry.js +1 -1
  107. package/dist/esm/r-popover-trigger.entry.js +1 -1
  108. package/dist/esm/r-popover.entry.js +1 -1
  109. package/dist/esm/r-progress-bar.entry.js +1 -1
  110. package/dist/esm/r-radio-button-description.entry.js +1 -1
  111. package/dist/esm/r-radio-button-leading.entry.js +1 -1
  112. package/dist/esm/r-radio-button-title.entry.js +1 -1
  113. package/dist/esm/r-radio-button-trailing.entry.js +1 -1
  114. package/dist/esm/r-radio-button.entry.js +1 -1
  115. package/dist/esm/r-radio-group.entry.js +7 -7
  116. package/dist/esm/r-select-option.entry.js +1 -1
  117. package/dist/esm/r-select.entry.js +3 -3
  118. package/dist/esm/r-skip-link.entry.js +1 -1
  119. package/dist/esm/r-stepper-item.entry.js +1 -1
  120. package/dist/esm/r-stepper.entry.js +1 -1
  121. package/dist/esm/r-tab-panel.entry.js +1 -1
  122. package/dist/esm/r-tab.entry.js +1 -1
  123. package/dist/esm/r-tabs-list.entry.js +1 -1
  124. package/dist/esm/r-tabs.entry.js +1 -1
  125. package/dist/esm/r-textarea.entry.js +1 -1
  126. package/dist/esm/r-toast-group.entry.js +15 -5
  127. package/dist/esm/r-toast.entry.js +10 -11
  128. package/dist/esm/web-components.js +3 -3
  129. package/dist/types/components/accordion/accordion.d.ts +0 -1
  130. package/dist/types/components/button/button.d.ts +0 -1
  131. package/dist/types/components/checkbox/checkbox.d.ts +0 -1
  132. package/dist/types/components/dialog/dialog.d.ts +6 -1
  133. package/dist/types/components/icon/exports.d.ts +1 -0
  134. package/dist/types/components/icon/icon-data.d.ts +1 -0
  135. package/dist/types/components/icon/icon.d.ts +1 -1
  136. package/dist/types/components/icon/riverty-kit.d.ts +1 -0
  137. package/dist/types/components/icon-button/icon-button.d.ts +0 -1
  138. package/dist/types/components/input/input.d.ts +6 -0
  139. package/dist/types/components/input-date/input-date.d.ts +1 -1
  140. package/dist/types/components/input-password/input-password.d.ts +1 -1
  141. package/dist/types/components/input-phone-number/input-phone-number.d.ts +1 -1
  142. package/dist/types/components/label/label.d.ts +1 -1
  143. package/dist/types/components/list-item/list-item/list-item.d.ts +6 -1
  144. package/dist/types/components/radio-group/radio-group.d.ts +1 -1
  145. package/dist/types/components/select/select.d.ts +1 -2
  146. package/dist/types/components/textarea/textarea.d.ts +3 -3
  147. package/dist/types/components/toast/toast.d.ts +1 -3
  148. package/dist/types/components/toast-group/toast-group.d.ts +2 -0
  149. package/dist/types/components/tooltip/tooltip.d.ts +12 -4
  150. package/dist/types/components.d.ts +63 -40
  151. package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
  152. package/dist/web-components/{p-aecd025b.entry.js → p-00ca474f.entry.js} +1 -1
  153. package/dist/web-components/{p-9c40f9cd.entry.js → p-0bb04d79.entry.js} +1 -1
  154. package/dist/web-components/{p-48dfb286.entry.js → p-1ae69897.entry.js} +1 -1
  155. package/dist/web-components/{p-4cf01f30.entry.js → p-1c2497de.entry.js} +1 -1
  156. package/dist/web-components/{p-03ff9abf.entry.js → p-230e44ae.entry.js} +1 -1
  157. package/dist/web-components/p-29a1e75f.entry.js +1 -0
  158. package/dist/web-components/{p-1157b7f4.entry.js → p-2b2f581a.entry.js} +1 -1
  159. package/dist/web-components/{p-0a424361.entry.js → p-3b4e3faf.entry.js} +1 -1
  160. package/dist/web-components/p-3bc93d65.entry.js +1 -0
  161. package/dist/web-components/{p-dc93ed55.entry.js → p-429213ea.entry.js} +1 -1
  162. package/dist/web-components/{p-c7a9da98.entry.js → p-44ae9f33.entry.js} +1 -1
  163. package/dist/web-components/{p-c60294d4.entry.js → p-44be9992.entry.js} +1 -1
  164. package/dist/web-components/{p-66c454ce.entry.js → p-4652635a.entry.js} +1 -1
  165. package/dist/web-components/{p-e50503d0.entry.js → p-4bd3e077.entry.js} +1 -1
  166. package/dist/web-components/{p-89ff32dc.entry.js → p-4e3df002.entry.js} +1 -1
  167. package/dist/web-components/p-51a5804b.entry.js +1 -0
  168. package/dist/web-components/{p-2d85c0f3.entry.js → p-72c0c0d8.entry.js} +1 -1
  169. package/dist/web-components/{p-e273950c.entry.js → p-72fa1fd1.entry.js} +1 -1
  170. package/dist/web-components/{p-135be1d5.entry.js → p-755cc697.entry.js} +1 -1
  171. package/dist/web-components/{p-e74c363a.entry.js → p-77155630.entry.js} +1 -1
  172. package/dist/web-components/{p-3ea6a1be.entry.js → p-8028c2a9.entry.js} +1 -1
  173. package/dist/web-components/{p-3fc2b23b.entry.js → p-828cb164.entry.js} +1 -1
  174. package/dist/web-components/{p-988a7731.entry.js → p-85a9af42.entry.js} +1 -1
  175. package/dist/web-components/{p-24130cdb.entry.js → p-87f39749.entry.js} +1 -1
  176. package/dist/web-components/{p-c9b2389b.entry.js → p-89136369.entry.js} +1 -1
  177. package/dist/web-components/{p-77dc268e.entry.js → p-8c577cda.entry.js} +1 -1
  178. package/dist/web-components/{p-8d2f4097.entry.js → p-96ddeb7f.entry.js} +1 -1
  179. package/dist/web-components/{p-735da2bb.entry.js → p-9b08e9ee.entry.js} +1 -1
  180. package/dist/web-components/{p-6b7d5236.entry.js → p-9e50120b.entry.js} +1 -1
  181. package/dist/web-components/{p-900923ab.entry.js → p-9eb1f262.entry.js} +1 -1
  182. package/dist/web-components/p-Da7qOBFr.js +2 -0
  183. package/dist/web-components/{p-2394508f.entry.js → p-a022f356.entry.js} +1 -1
  184. package/dist/web-components/{p-df81177e.entry.js → p-a58124c4.entry.js} +1 -1
  185. package/dist/web-components/p-a5be3395.entry.js +1 -0
  186. package/dist/web-components/{p-9891afb8.entry.js → p-a7e7f8fa.entry.js} +1 -1
  187. package/dist/web-components/p-b2cec978.entry.js +1 -0
  188. package/dist/web-components/{p-71d6c4d7.entry.js → p-c7f8e59b.entry.js} +1 -1
  189. package/dist/web-components/{p-f625b739.entry.js → p-c937bd92.entry.js} +1 -1
  190. package/dist/web-components/p-cbcd7699.entry.js +1 -0
  191. package/dist/web-components/{p-fdf70aed.entry.js → p-d3ff65b0.entry.js} +1 -1
  192. package/dist/web-components/p-e0e2f2b2.entry.js +1 -0
  193. package/dist/web-components/{p-8d6a35e3.entry.js → p-e49b1ec3.entry.js} +1 -1
  194. package/dist/web-components/p-e4b66277.entry.js +1 -0
  195. package/dist/web-components/p-e6a31881.entry.js +1 -0
  196. package/dist/web-components/{p-05ba30ba.entry.js → p-f1e22caa.entry.js} +1 -1
  197. package/dist/web-components/p-f6a92287.entry.js +1 -0
  198. package/dist/web-components/p-f770e22b.entry.js +1 -0
  199. package/dist/web-components/p-f7adb875.entry.js +1 -0
  200. package/dist/web-components/web-components.esm.js +1 -1
  201. package/package.json +2 -1
  202. package/dist/web-components/p-0ac858b8.entry.js +0 -1
  203. package/dist/web-components/p-0bb0de18.entry.js +0 -1
  204. package/dist/web-components/p-10724c18.entry.js +0 -1
  205. package/dist/web-components/p-1ed3efd7.entry.js +0 -1
  206. package/dist/web-components/p-20f979ff.entry.js +0 -1
  207. package/dist/web-components/p-31c8388d.entry.js +0 -1
  208. package/dist/web-components/p-333707b2.entry.js +0 -1
  209. package/dist/web-components/p-61f78bf6.entry.js +0 -1
  210. package/dist/web-components/p-8f719321.entry.js +0 -1
  211. package/dist/web-components/p-9f583ed1.entry.js +0 -1
  212. package/dist/web-components/p-CTxpqopm.js +0 -2
  213. package/dist/web-components/p-caca2855.entry.js +0 -1
  214. package/dist/web-components/p-ef0f43e0.entry.js +0 -1
@@ -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 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}
1
+ import{r as e,c as n,h as a,H as o,g as t}from"./p-Da7qOBFr.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:"87f5720347e3627524f95f7110088b8eddef7f8f"},a("div",{key:"091e2048f011ff4167b35434567149de061954bd",class:"r-input-phone-number--label-container"},a("label",{key:"80994d1cfd1b6f2228fb231f64894e660bdb1a1c",id:`${p}-label`},e&&a("r-label",Object.assign({key:"36fa07371ee2c9d37645060a29f2d6f4ffe66342"},v),e)),a("slot",{key:"76034d24a4208a46ee92185221256b9b5e87f971",name:"popover"})),t&&a("r-hint",{key:"574a0ec6541310640594eed29e0c301f5f9a01f7",id:`${p}-hint`,role:"note"},t),a("div",{key:"63f37ce77a8e247091e0e6bf55632a834e19992d",class:"r-input-phone-number",role:"group","aria-labelledby":`${p}-label`,"aria-describedby":this.ariaDescribedBy},a("slot",{key:"36f3e834567d3ce77b6d89ae3e835eee630675b7"}),a("r-input",{key:"2f8dc7a95823b3107d8e24f90ae53791554c19af",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:"4559b1d4c55e35b2ef9560554a62d4742bca875e",slot:"trailing",name:"circled-check",size:"s",color:"var(--r-status-success-regular)"}))),a("input",Object.assign({key:"c68a9255419c41e8b9fc02127d5f3b68cd14f40b",type:"hidden"},M,{readonly:this.readonly,value:d,ref:e=>this.nativeElement=e})),a("r-hint",{key:"43712e3a6b916945b1a00d3c6d8ace5f7bdcc1d7","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}
@@ -1 +1 @@
1
- import{r,h as a,H as s}from"./p-CTxpqopm.js";const o=class{constructor(a){r(this,a),this.progress=0}render(){const{progress:r,rAriaLabel:o}=this;return a(s,{key:"81203123d2df8fb029855f39dc359b98991630ee"},a("progress",Object.assign({key:"f766b44c2c4088ab67d69b57de074fee15be166c"},{value:r,max:"100","aria-label":o},{class:"r-progress-bar"})))}};o.style=":host{--r-progress-bar--appearance:none;--r-progress-bar--width:100%;--r-progress-bar--height:8px;--r-progress-bar--background-color:var(--r-background-soft);--r-progress-bar--border-radius:0;--r-progress-bar--border:none;--progress-bar--value--background-color:var(--r-background-interactive-regular);--progress-bar--value--border-radius:0;--progress-bar--value--transition:all 0.6s ease;display:block}.r-progress-bar{appearance:var(--r-progress-bar--appearance);width:var(--r-progress-bar--width);height:var(--r-progress-bar--height);background-color:var(--r-progress-bar--background-color);border-radius:var(--r-progress-bar--border-radius);border:var(--r-progress-bar--border)}.r-progress-bar::-webkit-progress-bar{background-color:var(--r-progress-bar--background-color);border-radius:var(--r-progress-bar--border-radius);border:var(--r-progress-bar--border)}.r-progress-bar::-webkit-progress-value{background-color:var(--progress-bar--value--background-color);border-radius:var(--progress-bar--value--border-radius);transition:var(--progress-bar--value--transition)}.r-progress-bar::-moz-progress-bar{background-color:var(--progress-bar--value--background-color);border-radius:var(--progress-bar--value--border-radius);transition:var(--progress-bar--value--transition)}.r-progress-bar::-ms-fill{background-color:var(--progress-bar--value--background-color);border-radius:var(--progress-bar--value--border-radius);transition:var(--progress-bar--value--transition)}";export{o as r_progress_bar}
1
+ import{r,h as a,H as s}from"./p-Da7qOBFr.js";const o=class{constructor(a){r(this,a),this.progress=0}render(){const{progress:r,rAriaLabel:o}=this;return a(s,{key:"81203123d2df8fb029855f39dc359b98991630ee"},a("progress",Object.assign({key:"f766b44c2c4088ab67d69b57de074fee15be166c"},{value:r,max:"100","aria-label":o},{class:"r-progress-bar"})))}};o.style=":host{--r-progress-bar--appearance:none;--r-progress-bar--width:100%;--r-progress-bar--height:8px;--r-progress-bar--background-color:var(--r-background-soft);--r-progress-bar--border-radius:0;--r-progress-bar--border:none;--progress-bar--value--background-color:var(--r-background-interactive-regular);--progress-bar--value--border-radius:0;--progress-bar--value--transition:all 0.6s ease;display:block}.r-progress-bar{appearance:var(--r-progress-bar--appearance);width:var(--r-progress-bar--width);height:var(--r-progress-bar--height);background-color:var(--r-progress-bar--background-color);border-radius:var(--r-progress-bar--border-radius);border:var(--r-progress-bar--border)}.r-progress-bar::-webkit-progress-bar{background-color:var(--r-progress-bar--background-color);border-radius:var(--r-progress-bar--border-radius);border:var(--r-progress-bar--border)}.r-progress-bar::-webkit-progress-value{background-color:var(--progress-bar--value--background-color);border-radius:var(--progress-bar--value--border-radius);transition:var(--progress-bar--value--transition)}.r-progress-bar::-moz-progress-bar{background-color:var(--progress-bar--value--background-color);border-radius:var(--progress-bar--value--border-radius);transition:var(--progress-bar--value--transition)}.r-progress-bar::-ms-fill{background-color:var(--progress-bar--value--background-color);border-radius:var(--progress-bar--value--border-radius);transition:var(--progress-bar--value--transition)}";export{o as r_progress_bar}
@@ -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:"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
+ import{r as e,h as r,H as t,g as p}from"./p-Da7qOBFr.js";const s=class{constructor(r){e(this,r),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 r(t,{key:"d501495c36f83cfc14c706f46936d5acc925d6d2"},r("div",{key:"a2952de15ea74093ea41663438bc8fec866d428b",class:"r-stepper"},!this.hasSteps&&Array.from({length:this.total},((t,p)=>r("r-stepper-item",{number:p+1,complete:e>p,active:e===p,key:p}))),r("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 i,c as t,h as a,H as n,g as r,F as e}from"./p-CTxpqopm.js";const o=class{constructor(a){i(this,a),this.rChange=t(this,"rChange"),this.rNumberClick=t(this,"rNumberClick"),this.rArrowClick=t(this,"rArrowClick"),this.rItemsPerPageChange=t(this,"rItemsPerPageChange"),this.arrows=!0,this.totalResults=1,this.pageActive=1,this.itemsPerPage=5,this.itemsPerPageOptions=[5,10,15,20,25,50,100],this.variant="standard",this.resultsLine=!1,this.startText="Showing",this.middleText="of",this.endText="results",this.selectText="page",this.listBoxPosition="top",this.resizeObserver=null,this.handleItemsPerPageChange=i=>{const t=parseInt(i.detail.value,10);this.itemsPerPage=t,this.rItemsPerPageChange.emit(this.itemsPerPage),this.setPaginationState()},this._activateStep=i=>{i<1||i>this.total||this.pageActive===i||(this.pageActive=i,requestAnimationFrame((()=>{this.setPaginationState(),requestAnimationFrame((()=>{var i;const t=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(`.r-pagination--item[data-index="${this.pageActive}"]`);t&&t.focus()}))})))},this.handleItemChange=i=>{if("keyup"===i.type&&"Enter"!==i.code&&"Space"!==i.code)return;const t=i.target.closest("r-button");if(null===t)return;const a=Number(t.getAttribute("data-index"));if(null!==a&&(this._activateStep(a),requestAnimationFrame((()=>{var i;const t=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(`.r-pagination--item[data-index="${a}"]`);t&&t.focus()})),t.classList.contains("number")&&(this.rNumberClick.emit(this.paginationState),t.blur()),t.classList.contains("arrow"))){const i=t.classList.contains("next")?"next":"previous";this.rArrowClick.emit(Object.assign(Object.assign({},this.paginationState),{direction:i}))}},this.syncHeaderWidth=()=>{requestAnimationFrame((()=>{this.headerRef&&this.footerRef&&(this.headerRef.style.width=`${this.footerRef.offsetWidth}px`)}))}}get isNoPreviousPage(){return null===this.previous}get isNoNextPage(){return null===this.next}get isNotFirstPage(){return null===this.first}get isNotLastPage(){return null===this.last}get paginationState(){const{total:i,active:t,previous:a,next:n,first:r,last:e,arrows:o}=this;return{total:i,active:t,previous:a,next:n,first:r,last:e,arrows:o}}setPaginationState(){switch(this.total=Math.ceil(this.totalResults/this.itemsPerPage),this.pageActive>this.total&&(this.pageActive=this.total),this.variant){case"minimized":this.arrows=!1,this.resultsLine=!1;break;case"standard":case"maximized":this.arrows=!0;break;default:console.warn('No variant specified. Defaulting to "standard".'),this.variant="standard"}this.active=this.pageActive,this.previous=this.active-1>0?this.active-1:null,this.next=this.active+1>this.total?null:this.active+1,this.first="maximized"===this.variant&&1!==this.active?1:null,this.last="maximized"===this.variant&&this.active!==this.total?this.total:null,"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{this.syncHeaderWidth()})),this.footerRef&&this.resizeObserver.observe(this.footerRef)),this.rChange.emit(this.paginationState)}componentWillLoad(){this.setPaginationState()}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidRender(){this.syncHeaderWidth()}componentDidUpdate(){this.setPaginationState()}render(){const{active:i,previous:t,next:r,first:o,itemsPerPage:s,itemsPerPageOptions:g,startText:l,middleText:p,endText:h,selectText:d,listBoxPosition:m}=this,c=(i,t)=>"number"===i?a("r-button",{class:"r-pagination--item number","data-index":t,onClick:this.handleItemChange,onKeyUp:this.handleItemChange},t):"active"===i?a("div",{class:"r-pagination--item number active","aria-label":"active page"},t):"stepper"===i?a("div",{class:"r-pagination--item stepper"},"..."):void 0,u=()=>{const t=Math.ceil(this.totalResults/s),n=[],r=t,o=t=>{const a=t+1;return c(a===i?"active":"number",a)};if(t<=10)return a(e,null,[...Array(t).keys()].map(o));n.push(c(1===i?"active":"number",1));const g=i>5,l=i<t-5;if(g)if(l){n.push(c("stepper",null));for(let t=i-2;t<=i+2;t++)n.push(o(t-1));n.push(c("stepper",null))}else{n.push(c("stepper",null));for(let i=t-7;i<t;i++)n.push(o(i-1))}else{for(let i=2;i<=8;i++)n.push(o(i-1));n.push(c("stepper",null))}if(n.push(c(i===r?"active":"number",r)),n.length>10)n.splice(1,n.length-10-1);else if(n.length<10){const a=10-n.length;if(g&&l)for(let r=i+3;r<=i+2+a;r++)r<t&&n.splice(n.length-2,0,o(r-1));else if(g)for(let r=i+3;r<=i+2+a;r++)r<t&&n.splice(n.length-1,0,o(r-1));else if(l)for(let t=i-3;t>=i-2-a;t--)t>1&&n.splice(1,0,o(t-1))}return a(e,null,n)},f=i=>i?"div":"r-button",v=f(this.isNoPreviousPage),b=f(this.isNoNextPage),x=f(this.isNotFirstPage),y=f(this.isNotLastPage),w={class:"r-pagination--item arrow previous "+(this.isNoPreviousPage?"disabled":""),"data-index":t,"aria-label":"r-button"===v?"Previous Page":""},z={class:"r-pagination--item arrow next "+(this.isNoNextPage?"disabled":""),"data-index":r,"aria-label":"r-button"===b?"Next Page":""},k={class:"r-pagination--item arrow first "+(null===o?"disabled":""),"data-index":o,"aria-label":null===o?"":"First Page"},j=i===this.total,P={class:"r-pagination--item arrow last "+(j?"disabled":""),"data-index":j?null:this.total,"aria-label":j?"":"Last Page",tabindex:j?"-1":"0"};return a(n,null,a("nav",{class:"r-pagination","aria-label":"Pagination"},this.resultsLine&&(()=>{const t=Math.min((i-1)*s+1,this.totalResults),n=Math.min(i*s,this.totalResults);return a(e,null,a("div",{ref:i=>this.headerRef=i,class:"r-pagination--header"},a("div",{class:"results-info","aria-live":"polite"},l||"Showing"," ",t,"–",n," ",p||"of"," ",this.totalResults," ",h||"results"),a("div",null,a("r-select",{class:"r-pagination--header--select",value:this.itemsPerPage.toString(),id:"items-per-page",onRChange:this.handleItemsPerPageChange,label:"Items per page","listbox-position":m},g.map((i=>a("r-select-option",{value:i.toString()},i,"/",d||"page")))))))})(),(()=>a(e,null,"minimized"===this.variant?a("div",{ref:i=>this.footerRef=i,class:"r-pagination--footer"},u()):a("div",{ref:i=>this.footerRef=i,class:"r-pagination--footer"},"maximized"===this.variant&&a(x,Object.assign({},k,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-left-with-vertical-line",size:"s"})),a(v,Object.assign({},w,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-left",size:"s"})),u(),a(b,Object.assign({},z,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-right",size:"s"})),"maximized"===this.variant&&a(y,Object.assign({},P,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-right-with-vertical-line",size:"s"})))))()))}get el(){return r(this)}};o.style=":host{--r-pagination--display:flex;--r-pagination--list-style:none;--r-pagination--align-items:center;--r-pagination--justify-content:center;--r-pagination--font-family:var(--r-font-family-text);--r-pagination--margin:0 auto;--r-pagination--flex-direction:column;--r-pagination--width:100%;--r-pagination--max-width:664px;--r-pagination--margin:0 auto;--r-pagination--item--display:flex;--r-pagination--item--align-items:center;--r-pagination--item--justify-content:center;--r-pagination--item--margin-right:-1px;--r-pagination--item--color:var(--r-text-regular);--r-pagination--item--background-color:transparent;--r-pagination--item--width:48px;--r-pagination--item--height:48px;--r-pagination--item--border-width:1px;--r-pagination--item--border-style:solid;--r-pagination--item--border-color:var(--r-border-softer);--r-pagination--item--z-index:0;--r-pagination--item--font-family:inherit;--r-pagination--button--width:100%;--r-pagination--button--height:100%;--r-pagination--button--color:var(--r-text-regular);--r-pagination--button--background-color:transparent;--r-pagination--button--border-width:0;--r-pagination--button--padding:0;--r-pagination--button--font-size:var(--r-font-size-300);--r-pagination--header--display:flex;--r-pagination--header--align-items:center;--r-pagination--header--justify-content:space-between;--r-pagination--header--min-width:287px;--r-pagination--footer--display:flex;--r-pagination--footer--justify-content:center;--r-pagination--footer--width:100%;--r-pagination--item--disabled-text:none;--r-pagination--font-size:var(--r-font-size-200);display:block}:host([variant=minimized]){--r-pagination--max-width:440px}:host([variant=standard]){--r-pagination--max-width:560px}:host([variant=maximized]){--r-pagination--max-width:664px}.r-pagination r-select{--r-select--font-size:var(--r-pagination--font-size, 12px);--r-select-option--font-size:var(--r-pagination--font-size, 12px)}.r-pagination{align-items:var(--r-pagination--align-items);display:var(--r-pagination--display);flex-direction:var(--r-pagination--flex-direction);font-family:var(--r-pagination--font-family);font-size:var(--r-pagination--font-size);justify-content:var(--r-pagination--justify-content);list-style:var(--r-pagination--list-style);margin:var(--r-pagination--margin);max-width:var(--r-pagination--max-width);user-select:var(--r-pagination--item--disabled-text);width:var(--r-pagination--width)}.r-pagination--footer{align-items:var(--r-pagination--header--align-items);display:var(--r-pagination--footer--display);justify-content:var(--r-pagination--footer--justify-content)}.r-pagination--header{align-items:var(--r-pagination--header--align-items);display:var(--r-pagination--header--display);justify-content:var(--r-pagination--header--justify-content);font-family:var(--r-pagination--font-family);min-width:var(--r-pagination--header--min-width)}.r-pagination--header--select{min-width:auto;--width:unset !important}.r-pagination--header label{font-size:var(--r-pagination--font-size)}.r-pagination--item{--r-button--display:flex;--r-button--width:var(--r-pagination--button--width);--r-button--height:var(--r-pagination--button--height);--r-button--color:var(--r-pagination--button--color);--r-button--background-color:var(--r-pagination--button--background-color);--r-button--border-width:var(--r-pagination--button--border-width);--r-button--padding:var(--r-pagination--button--padding);--r-button--icon--width:auto;--r-button--icon--height:auto;align-items:var(--r-pagination--item--align-items);background-color:var(--r-pagination--item--background-color);color:var(--r-pagination--item--color);display:var(--r-pagination--item--display);font-family:var(--r-pagination--item--font-family);height:var(--r-pagination--item--height);justify-content:var(--r-pagination--item--justify-content);margin-left:var(--r-pagination--item--margin-left);margin-right:var(--r-pagination--item--margin-right);opacity:var(--r-pagination--item--opacity);width:var(--r-pagination--item--width);z-index:var(--r-pagination--item--z-index)}.r-pagination--item:hover{--r-pagination--item--background-color:var(--r-background-interactive-hovered)}.r-pagination--item:focus{--r-pagination--item--outline-color:var(--r-border-focused);--r-pagination--item--box-shadow:0 0 0 3px var(--r-border-focused-outlined);--r-pagination--item--z-index:1}.r-pagination--item:active{--r-pagination--item--background-color:var(--r-background-interactive-pressed)}.r-pagination--item.stepper{--r-pagination--item--background-color:transparent}.r-pagination--item.active{--r-pagination--item--color:var(--r-text-regular);--r-pagination--item--background-color:var(--r-background-interactive-activated);font-weight:var(--r-font-weight-semibold)}.r-pagination--item.arrow.previous{--r-pagination--item--margin-left:0;--r-pagination--item--margin-right:16px}.r-pagination--item.arrow.next{--r-pagination--item--margin-left:16px;--r-pagination--item--margin-right:0}.r-pagination--item.arrow.first{--r-pagination--item--margin-left:0;--r-pagination--item--margin-right:8px}.r-pagination--item.arrow.last{--r-pagination--item--margin-left:8px;--r-pagination--item--margin-right:0}.r-pagination--item.disabled,.r-pagination--item.disabled:hover{--r-pagination--item--opacity:0.4;--r-pagination--item--background-color:transparent}.r-pagination--item.number{--r-button--font-size:0.813rem}";export{o as r_pagination}
1
+ import{r as i,c as t,h as a,H as n,g as r,F as e}from"./p-Da7qOBFr.js";const o=class{constructor(a){i(this,a),this.rChange=t(this,"rChange"),this.rNumberClick=t(this,"rNumberClick"),this.rArrowClick=t(this,"rArrowClick"),this.rItemsPerPageChange=t(this,"rItemsPerPageChange"),this.arrows=!0,this.totalResults=1,this.pageActive=1,this.itemsPerPage=5,this.itemsPerPageOptions=[5,10,15,20,25,50,100],this.variant="standard",this.resultsLine=!1,this.startText="Showing",this.middleText="of",this.endText="results",this.selectText="page",this.listBoxPosition="top",this.resizeObserver=null,this.handleItemsPerPageChange=i=>{const t=parseInt(i.detail.value,10);this.itemsPerPage=t,this.rItemsPerPageChange.emit(this.itemsPerPage),this.setPaginationState()},this._activateStep=i=>{i<1||i>this.total||this.pageActive===i||(this.pageActive=i,requestAnimationFrame((()=>{this.setPaginationState(),requestAnimationFrame((()=>{var i;const t=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(`.r-pagination--item[data-index="${this.pageActive}"]`);t&&t.focus()}))})))},this.handleItemChange=i=>{if("keyup"===i.type&&"Enter"!==i.code&&"Space"!==i.code)return;const t=i.target.closest("r-button");if(null===t)return;const a=Number(t.getAttribute("data-index"));if(null!==a&&(this._activateStep(a),requestAnimationFrame((()=>{var i;const t=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(`.r-pagination--item[data-index="${a}"]`);t&&t.focus()})),t.classList.contains("number")&&(this.rNumberClick.emit(this.paginationState),t.blur()),t.classList.contains("arrow"))){const i=t.classList.contains("next")?"next":"previous";this.rArrowClick.emit(Object.assign(Object.assign({},this.paginationState),{direction:i}))}},this.syncHeaderWidth=()=>{requestAnimationFrame((()=>{this.headerRef&&this.footerRef&&(this.headerRef.style.width=`${this.footerRef.offsetWidth}px`)}))}}get isNoPreviousPage(){return null===this.previous}get isNoNextPage(){return null===this.next}get isNotFirstPage(){return null===this.first}get isNotLastPage(){return null===this.last}get paginationState(){const{total:i,active:t,previous:a,next:n,first:r,last:e,arrows:o}=this;return{total:i,active:t,previous:a,next:n,first:r,last:e,arrows:o}}setPaginationState(){switch(this.total=Math.ceil(this.totalResults/this.itemsPerPage),this.pageActive>this.total&&(this.pageActive=this.total),this.variant){case"minimized":this.arrows=!1,this.resultsLine=!1;break;case"standard":case"maximized":this.arrows=!0;break;default:console.warn('No variant specified. Defaulting to "standard".'),this.variant="standard"}this.active=this.pageActive,this.previous=this.active-1>0?this.active-1:null,this.next=this.active+1>this.total?null:this.active+1,this.first="maximized"===this.variant&&1!==this.active?1:null,this.last="maximized"===this.variant&&this.active!==this.total?this.total:null,"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{this.syncHeaderWidth()})),this.footerRef&&this.resizeObserver.observe(this.footerRef)),this.rChange.emit(this.paginationState)}componentWillLoad(){this.setPaginationState()}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidRender(){this.syncHeaderWidth()}componentDidUpdate(){this.setPaginationState()}render(){const{active:i,previous:t,next:r,first:o,itemsPerPage:s,itemsPerPageOptions:g,startText:l,middleText:p,endText:h,selectText:d,listBoxPosition:m}=this,c=(i,t)=>"number"===i?a("r-button",{class:"r-pagination--item number","data-index":t,onClick:this.handleItemChange,onKeyUp:this.handleItemChange},t):"active"===i?a("div",{class:"r-pagination--item number active","aria-label":"active page"},t):"stepper"===i?a("div",{class:"r-pagination--item stepper"},"..."):void 0,u=()=>{const t=Math.ceil(this.totalResults/s),n=[],r=t,o=t=>{const a=t+1;return c(a===i?"active":"number",a)};if(t<=10)return a(e,null,[...Array(t).keys()].map(o));n.push(c(1===i?"active":"number",1));const g=i>5,l=i<t-5;if(g)if(l){n.push(c("stepper",null));for(let t=i-2;t<=i+2;t++)n.push(o(t-1));n.push(c("stepper",null))}else{n.push(c("stepper",null));for(let i=t-7;i<t;i++)n.push(o(i-1))}else{for(let i=2;i<=8;i++)n.push(o(i-1));n.push(c("stepper",null))}if(n.push(c(i===r?"active":"number",r)),n.length>10)n.splice(1,n.length-10-1);else if(n.length<10){const a=10-n.length;if(g&&l)for(let r=i+3;r<=i+2+a;r++)r<t&&n.splice(n.length-2,0,o(r-1));else if(g)for(let r=i+3;r<=i+2+a;r++)r<t&&n.splice(n.length-1,0,o(r-1));else if(l)for(let t=i-3;t>=i-2-a;t--)t>1&&n.splice(1,0,o(t-1))}return a(e,null,n)},f=i=>i?"div":"r-button",v=f(this.isNoPreviousPage),b=f(this.isNoNextPage),x=f(this.isNotFirstPage),y=f(this.isNotLastPage),w={class:"r-pagination--item arrow previous "+(this.isNoPreviousPage?"disabled":""),"data-index":t,"aria-label":"r-button"===v?"Previous Page":""},z={class:"r-pagination--item arrow next "+(this.isNoNextPage?"disabled":""),"data-index":r,"aria-label":"r-button"===b?"Next Page":""},k={class:"r-pagination--item arrow first "+(null===o?"disabled":""),"data-index":o,"aria-label":null===o?"":"First Page"},j=i===this.total,P={class:"r-pagination--item arrow last "+(j?"disabled":""),"data-index":j?null:this.total,"aria-label":j?"":"Last Page",tabindex:j?"-1":"0"};return a(n,null,a("nav",{class:"r-pagination","aria-label":"Pagination"},this.resultsLine&&(()=>{const t=Math.min((i-1)*s+1,this.totalResults),n=Math.min(i*s,this.totalResults);return a(e,null,a("div",{ref:i=>this.headerRef=i,class:"r-pagination--header"},a("div",{class:"results-info","aria-live":"polite"},l||"Showing"," ",t,"–",n," ",p||"of"," ",this.totalResults," ",h||"results"),a("div",null,a("r-select",{class:"r-pagination--header--select",value:this.itemsPerPage.toString(),id:"items-per-page",onRChange:this.handleItemsPerPageChange,label:"Items per page","listbox-position":m},g.map((i=>a("r-select-option",{value:i.toString()},i,"/",d||"page")))))))})(),(()=>a(e,null,"minimized"===this.variant?a("div",{ref:i=>this.footerRef=i,class:"r-pagination--footer"},u()):a("div",{ref:i=>this.footerRef=i,class:"r-pagination--footer"},"maximized"===this.variant&&a(x,Object.assign({},k,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-left-with-vertical-line",size:"s"})),a(v,Object.assign({},w,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-left",size:"s"})),u(),a(b,Object.assign({},z,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-right",size:"s"})),"maximized"===this.variant&&a(y,Object.assign({},P,{onClick:this.handleItemChange,onKeyUp:this.handleItemChange}),a("r-icon",{name:"angle-right-with-vertical-line",size:"s"})))))()))}get el(){return r(this)}};o.style=":host{--r-pagination--display:flex;--r-pagination--list-style:none;--r-pagination--align-items:center;--r-pagination--justify-content:center;--r-pagination--font-family:var(--r-font-family-text);--r-pagination--margin:0 auto;--r-pagination--flex-direction:column;--r-pagination--width:100%;--r-pagination--max-width:664px;--r-pagination--margin:0 auto;--r-pagination--item--display:flex;--r-pagination--item--align-items:center;--r-pagination--item--justify-content:center;--r-pagination--item--margin-right:-1px;--r-pagination--item--color:var(--r-text-regular);--r-pagination--item--background-color:transparent;--r-pagination--item--width:48px;--r-pagination--item--height:48px;--r-pagination--item--border-width:1px;--r-pagination--item--border-style:solid;--r-pagination--item--border-color:var(--r-border-softer);--r-pagination--item--z-index:0;--r-pagination--item--font-family:inherit;--r-pagination--button--width:100%;--r-pagination--button--height:100%;--r-pagination--button--color:var(--r-text-regular);--r-pagination--button--background-color:transparent;--r-pagination--button--border-width:0;--r-pagination--button--padding:0;--r-pagination--button--font-size:var(--r-font-size-300);--r-pagination--header--display:flex;--r-pagination--header--align-items:center;--r-pagination--header--justify-content:space-between;--r-pagination--header--min-width:287px;--r-pagination--footer--display:flex;--r-pagination--footer--justify-content:center;--r-pagination--footer--width:100%;--r-pagination--item--disabled-text:none;--r-pagination--font-size:var(--r-font-size-200);display:block}:host([variant=minimized]){--r-pagination--max-width:440px}:host([variant=standard]){--r-pagination--max-width:560px}:host([variant=maximized]){--r-pagination--max-width:664px}.r-pagination r-select{--r-select--font-size:var(--r-pagination--font-size, 12px);--r-select-option--font-size:var(--r-pagination--font-size, 12px)}.r-pagination{align-items:var(--r-pagination--align-items);display:var(--r-pagination--display);flex-direction:var(--r-pagination--flex-direction);font-family:var(--r-pagination--font-family);font-size:var(--r-pagination--font-size);justify-content:var(--r-pagination--justify-content);list-style:var(--r-pagination--list-style);margin:var(--r-pagination--margin);max-width:var(--r-pagination--max-width);user-select:var(--r-pagination--item--disabled-text);width:var(--r-pagination--width)}.r-pagination--footer{align-items:var(--r-pagination--header--align-items);display:var(--r-pagination--footer--display);justify-content:var(--r-pagination--footer--justify-content)}.r-pagination--header{align-items:var(--r-pagination--header--align-items);display:var(--r-pagination--header--display);justify-content:var(--r-pagination--header--justify-content);font-family:var(--r-pagination--font-family);min-width:var(--r-pagination--header--min-width)}.r-pagination--header--select{min-width:auto;--width:unset !important}.r-pagination--header label{font-size:var(--r-pagination--font-size)}.r-pagination--item{--r-button--display:flex;--r-button--width:var(--r-pagination--button--width);--r-button--height:var(--r-pagination--button--height);--r-button--color:var(--r-pagination--button--color);--r-button--background-color:var(--r-pagination--button--background-color);--r-button--border-width:var(--r-pagination--button--border-width);--r-button--padding:var(--r-pagination--button--padding);--r-button--icon--width:auto;--r-button--icon--height:auto;align-items:var(--r-pagination--item--align-items);background-color:var(--r-pagination--item--background-color);color:var(--r-pagination--item--color);display:var(--r-pagination--item--display);font-family:var(--r-pagination--item--font-family);height:var(--r-pagination--item--height);justify-content:var(--r-pagination--item--justify-content);margin-left:var(--r-pagination--item--margin-left);margin-right:var(--r-pagination--item--margin-right);opacity:var(--r-pagination--item--opacity);width:var(--r-pagination--item--width);z-index:var(--r-pagination--item--z-index)}.r-pagination--item:hover{--r-pagination--item--background-color:var(--r-background-interactive-hovered)}.r-pagination--item:focus{--r-pagination--item--outline-color:var(--r-border-focused);--r-pagination--item--box-shadow:0 0 0 3px var(--r-border-focused-outlined);--r-pagination--item--z-index:1}.r-pagination--item:active{--r-pagination--item--background-color:var(--r-background-interactive-pressed)}.r-pagination--item.stepper{--r-pagination--item--background-color:transparent}.r-pagination--item.active{--r-pagination--item--color:var(--r-text-regular);--r-pagination--item--background-color:var(--r-background-interactive-activated);font-weight:var(--r-font-weight-semibold)}.r-pagination--item.arrow.previous{--r-pagination--item--margin-left:0;--r-pagination--item--margin-right:16px}.r-pagination--item.arrow.next{--r-pagination--item--margin-left:16px;--r-pagination--item--margin-right:0}.r-pagination--item.arrow.first{--r-pagination--item--margin-left:0;--r-pagination--item--margin-right:8px}.r-pagination--item.arrow.last{--r-pagination--item--margin-left:8px;--r-pagination--item--margin-right:0}.r-pagination--item.disabled,.r-pagination--item.disabled:hover{--r-pagination--item--opacity:0.4;--r-pagination--item--background-color:transparent}.r-pagination--item.number{--r-button--font-size:0.813rem}";export{o as r_pagination}
@@ -1 +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}
1
+ import{r as o,c as r,h as t,H as n,g as i}from"./p-Da7qOBFr.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:"ce7c3beb7c5fdbff3b47011289fe730dddf844f5",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:"914c52bcfa15416981670f65cc4c009dd887003a",class:"r-icon-button--label visually-hidden"},this.label),t("span",{key:"e30a94256908de2c81f42d294e68a5e5524055c0",class:"r-icon-button--target-area"}));return t(n,{key:"b894237ccf791815719dc96ab85b7717141afdaf"},!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}
@@ -1 +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}
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-Da7qOBFr.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:b,tooltipIconColor:v,fullWidth:p,showPasswordAriaLabel:m,hidePasswordAriaLabel:y,showed:g,readonly:w}=this;return s(e,{key:"7ab5b4c4eb280f906cbabcc0d1ffa823d7b67bd1"},s("r-input",Object.assign({key:"0b71f3034611c2ed0d82b91dd8b9d98649ebd63f"},{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:b,tooltipIconColor:v,fullWidth:p,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:"5cf30f89fead0941ebf8f388f4380e7be82222b9",name:"padlock-closed",size:"s",slot:"leading"}),s("slot",{key:"921d8abefcef0bb71b2a518db1cba0c263b8924a",name:"popover",slot:"popover"}),s("r-icon-button",{key:"3b005036b4110685e4abf54add5bbe2571f2cf1b",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:"b5c7af864da0a47d81b40c1aa53f6bed20bc8349",slot:"message",variant:"error"},this.hasError&&this.error,this.hasValidationError&&(this.customErrorMessage||this.validityMessage))),s("div",{key:"f3d2f7ad5811e716eb2184aad5ff25f5a282078d",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}
@@ -1 +1 @@
1
- import{r as e,h as r,H as t,g as i}from"./p-CTxpqopm.js";const a=class{constructor(r){e(this,r),this.complete=!1,this.active=!1}get hasText(){return this.host.textContent.trim().length>0}render(){const e=this.number||this.stepNumber;return r(t,{key:"a5004ade661b4abfacb920a256f6a12bbd32a6ea"},r("div",{key:"1358044cc918c2988a2f32198b0a8260cf439ec0",class:"r-stepper-item"},r("div",{key:"ec2afea7c0b6d603ebce7dda25e93246fafb248a",class:"r-stepper-item--indicator"},this.complete?r("r-icon",{name:"check",size:"s"}):this.icon?r("r-icon",{name:this.icon,size:"s"}):void 0!==e?r("span",{class:"r-stepper-item--indicator--step-number"},e):null),this.hasText&&r("div",{key:"6cf7607d13bdd0bd58885e5cc4c74c0068448dfc",class:"r-stepper-item--text"},r("slot",{key:"8c47f057e435924f8c004be5f3112743127bf885"}))))}get host(){return i(this)}};a.style=":host([active]){--r-stepper-item--indicator--background-color:var(--r-background-inverse, #282828);--r-stepper-item--color:var(--r-text-inverse, #FFF);--r-stepper-item--text--color:var(--r-text-regular, #282828);--r-stepper-item--indicator--border-color:transparent}:host([complete]){--r-stepper-item--indicator--background-color:var(--r-status-success-regular, #298535);--r-stepper-item--color:var(--r-text-inverse, #FFF);--r-stepper-item--text--color:var(--r-text-regular, #282828);--r-stepper-item--indicator--border-color:transparent}.r-stepper-item{display:var(--r-stepper-item--display, flex);flex-direction:var(--r-stepper-item--flex-direction, column);align-items:var(--r-stepper-item--align-items, center);justify-content:var(--r-stepper-item--justify-content, center);font-size:var(--r-stepper-item--font-size, var(--r-font-size-200, 13px));color:var(--r-stepper-item--color, var(--r-text-soft, #686868));font-family:var(--r-stepper-item--font-family, var(--r-font-family-text, system-ui));width:var(--r-stepper-item--width, 36px);white-space:var(--r-stepper-item--white-space, nowrap);gap:var(--r-stepper-item--gap, 8px)}.r-stepper-item--indicator{width:var(--r-stepper-item--indicator--width, 20px);height:var(--r-stepper-item--indicator--height, 20px);line-height:var(--r-stepper-item--indicator--line-height, 20px);border-radius:var(--r-stepper-item--indicator--border-radius, 50%);background-color:var(--r-stepper-item--indicator--background-color, transparent);display:var(--r-stepper-item--indicator--display, flex);justify-content:var(--r-stepper-item--indicator--justify-content, center);align-items:var(--r-stepper-item--indicator--align-items, center);border-width:var(--r-stepper-item--indicator--border-width, 1px);border-style:var(--r-stepper-item--indicator--border-style, solid);border-color:var(--r-stepper-item--indicator--border-color, var(--r-border-soft, #686868));margin-left:var(--r-stepper-item--indicator--margin-left, 8px);margin-right:var(--r-stepper-item--indicator--margin-right, 8px)}.r-stepper-item--indicator--step-number{vertical-align:var(--r-stepper-item--step-number--vertical-align, middle)}.r-stepper-item--text{font-size:var(--r-stepper-item--text--font-size, var(--r-font-size-200, 13px));color:var(--r-stepper-item--text--color, var(--r-text-soft, #686868));text-align:var(--r-stepper-item--text--text-align, center)}";export{a as r_stepper_item}
1
+ import{r as e,h as r,H as t,g as i}from"./p-Da7qOBFr.js";const a=class{constructor(r){e(this,r),this.complete=!1,this.active=!1}get hasText(){return this.host.textContent.trim().length>0}render(){const e=this.number||this.stepNumber;return r(t,{key:"a5004ade661b4abfacb920a256f6a12bbd32a6ea"},r("div",{key:"1358044cc918c2988a2f32198b0a8260cf439ec0",class:"r-stepper-item"},r("div",{key:"ec2afea7c0b6d603ebce7dda25e93246fafb248a",class:"r-stepper-item--indicator"},this.complete?r("r-icon",{name:"check",size:"s"}):this.icon?r("r-icon",{name:this.icon,size:"s"}):void 0!==e?r("span",{class:"r-stepper-item--indicator--step-number"},e):null),this.hasText&&r("div",{key:"6cf7607d13bdd0bd58885e5cc4c74c0068448dfc",class:"r-stepper-item--text"},r("slot",{key:"8c47f057e435924f8c004be5f3112743127bf885"}))))}get host(){return i(this)}};a.style=":host([active]){--r-stepper-item--indicator--background-color:var(--r-background-inverse, #282828);--r-stepper-item--color:var(--r-text-inverse, #FFF);--r-stepper-item--text--color:var(--r-text-regular, #282828);--r-stepper-item--indicator--border-color:transparent}:host([complete]){--r-stepper-item--indicator--background-color:var(--r-status-success-regular, #298535);--r-stepper-item--color:var(--r-text-inverse, #FFF);--r-stepper-item--text--color:var(--r-text-regular, #282828);--r-stepper-item--indicator--border-color:transparent}.r-stepper-item{display:var(--r-stepper-item--display, flex);flex-direction:var(--r-stepper-item--flex-direction, column);align-items:var(--r-stepper-item--align-items, center);justify-content:var(--r-stepper-item--justify-content, center);font-size:var(--r-stepper-item--font-size, var(--r-font-size-200, 13px));color:var(--r-stepper-item--color, var(--r-text-soft, #686868));font-family:var(--r-stepper-item--font-family, var(--r-font-family-text, system-ui));width:var(--r-stepper-item--width, 36px);white-space:var(--r-stepper-item--white-space, nowrap);gap:var(--r-stepper-item--gap, 8px)}.r-stepper-item--indicator{width:var(--r-stepper-item--indicator--width, 20px);height:var(--r-stepper-item--indicator--height, 20px);line-height:var(--r-stepper-item--indicator--line-height, 20px);border-radius:var(--r-stepper-item--indicator--border-radius, 50%);background-color:var(--r-stepper-item--indicator--background-color, transparent);display:var(--r-stepper-item--indicator--display, flex);justify-content:var(--r-stepper-item--indicator--justify-content, center);align-items:var(--r-stepper-item--indicator--align-items, center);border-width:var(--r-stepper-item--indicator--border-width, 1px);border-style:var(--r-stepper-item--indicator--border-style, solid);border-color:var(--r-stepper-item--indicator--border-color, var(--r-border-soft, #686868));margin-left:var(--r-stepper-item--indicator--margin-left, 8px);margin-right:var(--r-stepper-item--indicator--margin-right, 8px)}.r-stepper-item--indicator--step-number{vertical-align:var(--r-stepper-item--step-number--vertical-align, middle)}.r-stepper-item--text{font-size:var(--r-stepper-item--text--font-size, var(--r-font-size-200, 13px));color:var(--r-stepper-item--text--color, var(--r-text-soft, #686868));text-align:var(--r-stepper-item--text--text-align, center)}";export{a as r_stepper_item}
@@ -1 +1 @@
1
- import{r as a,h as r,H as o,g as n}from"./p-CTxpqopm.js";const i=class{constructor(r){a(this,r)}render(){return r(o,Object.assign({key:"be344344f557afc20622addf45ae1f8ff8998a80"},{role:"region",slot:"accordion-panel","aria-labelledby":this.trigger,"aria-disabled":`${this.disabled||!1}`}),r("div",{key:"a12e4cbe6c3d2cb83317b1c23d5a162312419e92",class:"r-accordion-panel"},r("slot",{key:"6fd8badd98c534bc93b538aad586d30cd6db9b15"})))}get host(){return n(this)}};i.style=":host([expanded]:not([expanded=false])){max-height:fit-content;--r-accordion-panel--display:block;--r-accordion-panel--transform:translateY(0);--r-accordion-panel--opacity:1}:host([disabled]:not([disabled=false])){cursor:not-allowed}:host{display:block;position:relative;overflow:hidden;font-family:var(--r-font-family-text, system-ui);box-sizing:border-box;max-height:0;padding-top:var(--r-accordion-panel--padding-top, 0);transition:all 0.25s ease-out}:host slot{display:contents}:host ::slotted(a){color:inherit}@media (prefers-reduced-motion){:host{transition:none}}.r-accordion-panel{position:var(--r-accordion-panel--position, relative);display:var(--r-accordion-panel--display, none);line-height:var(--r-accordion-panel--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-accordion-trigger--content--font-size, var(--r-font-size-400, 1rem));box-sizing:var(--r-accordion-panel--box-sizing, border-box);margin-top:var(--r-accordion-panel--margin-top, 0);margin-right:var(--r-accordion-panel--margin-right, 0);margin-bottom:var(--r-accordion-panel--margin-bottom, 0);margin-left:var(--r-accordion-panel--margin-left, 0);padding-right:var(--r-accordion-panel--padding-right, var(--r-spacing-100, 1rem));padding-bottom:var(--r-accordion-panel--padding-bottom, var(--r-spacing-150, 2rem));padding-left:var(--r-accordion-panel--padding-left, var(--r-spacing-100, 1rem));transform:var(--r-accordion-panel--transform, translateY(-30%));transition:var(--r-accordion-panel--transition, all 0.25s ease-out);opacity:var(--r-accordion-panel--opacity, 0)}";export{i as r_accordion_panel}
1
+ import{r as a,h as r,H as o,g as n}from"./p-Da7qOBFr.js";const i=class{constructor(r){a(this,r)}render(){return r(o,Object.assign({key:"be344344f557afc20622addf45ae1f8ff8998a80"},{role:"region",slot:"accordion-panel","aria-labelledby":this.trigger,"aria-disabled":`${this.disabled||!1}`}),r("div",{key:"a12e4cbe6c3d2cb83317b1c23d5a162312419e92",class:"r-accordion-panel"},r("slot",{key:"6fd8badd98c534bc93b538aad586d30cd6db9b15"})))}get host(){return n(this)}};i.style=":host([expanded]:not([expanded=false])){max-height:fit-content;--r-accordion-panel--display:block;--r-accordion-panel--transform:translateY(0);--r-accordion-panel--opacity:1}:host([disabled]:not([disabled=false])){cursor:not-allowed}:host{display:block;position:relative;overflow:hidden;font-family:var(--r-font-family-text, system-ui);box-sizing:border-box;max-height:0;padding-top:var(--r-accordion-panel--padding-top, 0);transition:all 0.25s ease-out}:host slot{display:contents}:host ::slotted(a){color:inherit}@media (prefers-reduced-motion){:host{transition:none}}.r-accordion-panel{position:var(--r-accordion-panel--position, relative);display:var(--r-accordion-panel--display, none);line-height:var(--r-accordion-panel--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-accordion-trigger--content--font-size, var(--r-font-size-400, 1rem));box-sizing:var(--r-accordion-panel--box-sizing, border-box);margin-top:var(--r-accordion-panel--margin-top, 0);margin-right:var(--r-accordion-panel--margin-right, 0);margin-bottom:var(--r-accordion-panel--margin-bottom, 0);margin-left:var(--r-accordion-panel--margin-left, 0);padding-right:var(--r-accordion-panel--padding-right, var(--r-spacing-100, 1rem));padding-bottom:var(--r-accordion-panel--padding-bottom, var(--r-spacing-150, 2rem));padding-left:var(--r-accordion-panel--padding-left, var(--r-spacing-100, 1rem));transform:var(--r-accordion-panel--transform, translateY(-30%));transition:var(--r-accordion-panel--transition, all 0.25s ease-out);opacity:var(--r-accordion-panel--opacity, 0)}";export{i as r_accordion_panel}
@@ -1 +1 @@
1
- import{r as t,c as r,h as i,H as a,g as e}from"./p-CTxpqopm.js";const s=class{constructor(i){t(this,i),this.rClickAlertTrailingIcon=r(this,"rClickAlertTrailingIcon"),this.status="info",this.leadingIconSize="m",this.trailingIconSize="s",this.target="_self",this.dismissButtonAriaLabel="close-button",this.isElContent=t=>{const r=this.host.querySelector(t);return null!==r&&(null==r?void 0:r.textContent.trim().length)>0},this.collapseAlert=()=>{this.host.setAttribute("aria-hidden","true")},this.startCollapseTimer=()=>{this.delayTimer=setTimeout((()=>{this.collapseAlert(),clearTimeout(this.delayTimer)}),1e3*this.delay)},this.handleTrailingButtonClick=()=>{this.rClickAlertTrailingIcon.emit(),this.collapseAlert()}}get isLeadingIcon(){var t,r;return(null===(t=this.leadingIcon)||void 0===t?void 0:t.length)>0||(null===(r=this.leadingIconSrc)||void 0===r?void 0:r.length)>0}get isLeadingSlot(){return this.isElContent('[slot="leading"]')}get isLeading(){return this.isLeadingIcon||this.isLeadingSlot}get isTrailingIcon(){var t,r;return(null===(t=this.trailingIcon)||void 0===t?void 0:t.length)>0||(null===(r=this.trailingIconSrc)||void 0===r?void 0:r.length)>0}get isTrailingSlot(){return this.isElContent('[slot="trailing"]')}get isTrailing(){return this.isTrailingIcon||this.isTrailingSlot}get isHeadline(){var t;return(null===(t=this.headline)||void 0===t?void 0:t.length)>0}get isContent(){var t;return(null===(t=this.content)||void 0===t?void 0:t.length)>0}get isLink(){var t,r;return(null===(t=this.href)||void 0===t?void 0:t.length)>0&&(null===(r=this.linkText)||void 0===r?void 0:r.length)>0}get isSlot(){return this.host.textContent.trim().length>0}get isMain(){return this.isHeadline||this.isContent||this.isLink||this.isSlot}get isDelay(){return this.delay&&this.delay>=0}componentDidLoad(){this.isDelay&&this.startCollapseTimer()}render(){const t={name:this.leadingIcon,src:this.leadingIconSrc,size:this.leadingIconSize},r={name:this.trailingIcon,src:this.trailingIconSrc,size:this.trailingIconSize};return i(a,{key:"f97ea22cbaacceb5954cbf084ddbe85975266463"},i("div",{key:"8a2de8f27af0cb57bf429fbe0ae75557d6505111",class:"r-alert"},this.isLeading&&i("div",{key:"6ecab67bd5eb14b06ad13f1c5257c43ff5c5acdc",class:"r-alert--leading"},i("slot",{key:"106fad47e317120e6bdc47a4509fe3b330a43451",name:"leading"}),this.isLeadingIcon&&i("r-icon",Object.assign({key:"4d2b589d2d6179eecdaec7f2be5e265fcaf5e82b"},t))),this.isMain?i("div",{class:"r-alert--main"},i("slot",{name:"headline"},this.isHeadline&&i("h3",{class:"r-alert--headline"},this.headline)),i("slot",{name:"content"},this.isContent&&i("div",{class:"r-alert--content"},this.content)),i("slot",{name:"link"},this.isLink&&i("a",{class:"r-alert--link",href:this.href,target:this.target},this.linkText)),i("slot",null)):i("slot",null),this.isTrailing&&i("div",{key:"2bc31060546003c180d235f3992df5c1fdf31f30",class:"r-alert--trailing"},i("slot",{key:"7816f3c023dd174dfe0b385ad282ad9356f7a45d",name:"trailing"}),this.isTrailingIcon&&i("r-button",{key:"493fdd793b54ba34ebe6453d668d9251874b8409",variant:"blank",onClick:this.handleTrailingButtonClick,"r-aria-label":this.dismissButtonAriaLabel||r.name},i("r-icon",Object.assign({key:"9148348328646173144d98d2c2f58ea67ed20c88"},r))))))}get host(){return e(this)}};s.style=":host([status=info]){--color:var(--r-status-info-soft, #f8fafb);--background-color:var(--r-status-info-regular, #466882)}:host([status=success]){--color:var(--r-status-success-soft, #f7fdf8);--background-color:var(--r-status-success-regular, #298535)}:host([status=warning]){--color:var(--r-color-grey-charcoal-400, #282828);--background-color:var(--r-status-warning-regular, #f26a20)}:host([status=error]){--color:var(--r-status-error-soft, #fef6f6);--background-color:var(--r-status-error-regular, #da1e28)}:host([aria-hidden=true]){--transition:all 0.5s;--position:absolute;--visibility:hidden;--opacity:0;--z-index:-1}:host{display:var(--display, block);color:var(--color, var(--r-status-info-soft, #f8fafb));background-color:var(--background-color, var(--r-status-info-regular, #466882));position:var(--position, relative);width:var(--width, 100%);left:var(--left, 0);transition:var(--transition, none);visibility:var(--visibility, visible);opacity:var(--opacity, 1);z-index:var(--z-index, unset);font-family:var(--font-family, var(--r-font-family-text, system-ui));font-size:var(--font-size, var(--r-font-size-400, 16px));font-weight:var(--font-weight, var(--r-font-weight-regular, 400))}.r-alert{display:var(--r-alert--display, grid);grid-template-columns:var(--r-alert--grid-template-columns, auto 1fr auto);gap:var(--r-alert--gap, var(--r-spacing-100, 1rem));padding:var(--r-alert--padding, var(--r-spacing-100, 1rem));box-sizing:var(--r-alert--box-sizing, border-box)}.r-alert:empty{--r-alert--display:none}.r-alert a{color:var(--color)}.r-alert--main{display:var(--r-alert--main--display, flex);flex-flow:var(--r-alert--main--flex-flow, column);gap:var(--r-alert--main--gap, var(--r-spacing-050))}.r-alert--headline{color:var(--r-alert--headline--color, var(--color));font-size:var(--r-alert--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-alert--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-alert--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-alert--headline--margin, 0)}.r-alert--trailing r-button{--r-button--padding:0;--r-button--color:var(--color)}";export{s as r_alert}
1
+ import{r as t,c as r,h as i,H as a,g as e}from"./p-Da7qOBFr.js";const s=class{constructor(i){t(this,i),this.rClickAlertTrailingIcon=r(this,"rClickAlertTrailingIcon"),this.status="info",this.leadingIconSize="m",this.trailingIconSize="s",this.target="_self",this.dismissButtonAriaLabel="close-button",this.isElContent=t=>{const r=this.host.querySelector(t);return null!==r&&(null==r?void 0:r.textContent.trim().length)>0},this.collapseAlert=()=>{this.host.setAttribute("aria-hidden","true")},this.startCollapseTimer=()=>{this.delayTimer=setTimeout((()=>{this.collapseAlert(),clearTimeout(this.delayTimer)}),1e3*this.delay)},this.handleTrailingButtonClick=()=>{this.rClickAlertTrailingIcon.emit(),this.collapseAlert()}}get isLeadingIcon(){var t,r;return(null===(t=this.leadingIcon)||void 0===t?void 0:t.length)>0||(null===(r=this.leadingIconSrc)||void 0===r?void 0:r.length)>0}get isLeadingSlot(){return this.isElContent('[slot="leading"]')}get isLeading(){return this.isLeadingIcon||this.isLeadingSlot}get isTrailingIcon(){var t,r;return(null===(t=this.trailingIcon)||void 0===t?void 0:t.length)>0||(null===(r=this.trailingIconSrc)||void 0===r?void 0:r.length)>0}get isTrailingSlot(){return this.isElContent('[slot="trailing"]')}get isTrailing(){return this.isTrailingIcon||this.isTrailingSlot}get isHeadline(){var t;return(null===(t=this.headline)||void 0===t?void 0:t.length)>0}get isContent(){var t;return(null===(t=this.content)||void 0===t?void 0:t.length)>0}get isLink(){var t,r;return(null===(t=this.href)||void 0===t?void 0:t.length)>0&&(null===(r=this.linkText)||void 0===r?void 0:r.length)>0}get isSlot(){return this.host.textContent.trim().length>0}get isMain(){return this.isHeadline||this.isContent||this.isLink||this.isSlot}get isDelay(){return this.delay&&this.delay>=0}componentDidLoad(){this.isDelay&&this.startCollapseTimer()}render(){const t={name:this.leadingIcon,src:this.leadingIconSrc,size:this.leadingIconSize},r={name:this.trailingIcon,src:this.trailingIconSrc,size:this.trailingIconSize};return i(a,{key:"f97ea22cbaacceb5954cbf084ddbe85975266463"},i("div",{key:"8a2de8f27af0cb57bf429fbe0ae75557d6505111",class:"r-alert"},this.isLeading&&i("div",{key:"6ecab67bd5eb14b06ad13f1c5257c43ff5c5acdc",class:"r-alert--leading"},i("slot",{key:"106fad47e317120e6bdc47a4509fe3b330a43451",name:"leading"}),this.isLeadingIcon&&i("r-icon",Object.assign({key:"4d2b589d2d6179eecdaec7f2be5e265fcaf5e82b"},t))),this.isMain?i("div",{class:"r-alert--main"},i("slot",{name:"headline"},this.isHeadline&&i("h3",{class:"r-alert--headline"},this.headline)),i("slot",{name:"content"},this.isContent&&i("div",{class:"r-alert--content"},this.content)),i("slot",{name:"link"},this.isLink&&i("a",{class:"r-alert--link",href:this.href,target:this.target},this.linkText)),i("slot",null)):i("slot",null),this.isTrailing&&i("div",{key:"2bc31060546003c180d235f3992df5c1fdf31f30",class:"r-alert--trailing"},i("slot",{key:"7816f3c023dd174dfe0b385ad282ad9356f7a45d",name:"trailing"}),this.isTrailingIcon&&i("r-button",{key:"493fdd793b54ba34ebe6453d668d9251874b8409",variant:"blank",onClick:this.handleTrailingButtonClick,"r-aria-label":this.dismissButtonAriaLabel||r.name},i("r-icon",Object.assign({key:"9148348328646173144d98d2c2f58ea67ed20c88"},r))))))}get host(){return e(this)}};s.style=":host([status=info]){--color:var(--r-status-info-soft, #f8fafb);--background-color:var(--r-status-info-regular, #466882)}:host([status=success]){--color:var(--r-status-success-soft, #f7fdf8);--background-color:var(--r-status-success-regular, #298535)}:host([status=warning]){--color:var(--r-color-grey-charcoal-400, #282828);--background-color:var(--r-status-warning-regular, #f26a20)}:host([status=error]){--color:var(--r-status-error-soft, #fef6f6);--background-color:var(--r-status-error-regular, #da1e28)}:host([aria-hidden=true]){--transition:all 0.5s;--position:absolute;--visibility:hidden;--opacity:0;--z-index:-1}:host{display:var(--display, block);color:var(--color, var(--r-status-info-soft, #f8fafb));background-color:var(--background-color, var(--r-status-info-regular, #466882));position:var(--position, relative);width:var(--width, 100%);left:var(--left, 0);transition:var(--transition, none);visibility:var(--visibility, visible);opacity:var(--opacity, 1);z-index:var(--z-index, unset);font-family:var(--font-family, var(--r-font-family-text, system-ui));font-size:var(--font-size, var(--r-font-size-400, 16px));font-weight:var(--font-weight, var(--r-font-weight-regular, 400))}.r-alert{display:var(--r-alert--display, grid);grid-template-columns:var(--r-alert--grid-template-columns, auto 1fr auto);gap:var(--r-alert--gap, var(--r-spacing-100, 1rem));padding:var(--r-alert--padding, var(--r-spacing-100, 1rem));box-sizing:var(--r-alert--box-sizing, border-box)}.r-alert:empty{--r-alert--display:none}.r-alert a{color:var(--color)}.r-alert--main{display:var(--r-alert--main--display, flex);flex-flow:var(--r-alert--main--flex-flow, column);gap:var(--r-alert--main--gap, var(--r-spacing-050))}.r-alert--headline{color:var(--r-alert--headline--color, var(--color));font-size:var(--r-alert--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-alert--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-alert--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-alert--headline--margin, 0)}.r-alert--trailing r-button{--r-button--padding:0;--r-button--color:var(--color)}";export{s as r_alert}