mainstack-design-system 0.7.44 → 1.0.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 (595) hide show
  1. package/README.md +702 -15
  2. package/dist/FormCountryOptionsList-BTIDLbxV.cjs +8 -0
  3. package/dist/FormCountryOptionsList-BWbi-SZ_.js +1790 -0
  4. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  5. package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
  6. package/dist/clsx-C11secjj.cjs +1 -0
  7. package/dist/clsx-OuTLNxxd.js +16 -0
  8. package/dist/components/Accordion/AccordionContent.js +1 -0
  9. package/dist/components/Accordion/AccordionHeader.js +1 -0
  10. package/dist/components/Accordion/AccordionItem.js +1 -0
  11. package/dist/components/Accordion/AccordionRoot.js +1 -0
  12. package/dist/components/Accordion/AccordionSubtitle.js +1 -0
  13. package/dist/components/Accordion/AccordionTitle.js +1 -0
  14. package/dist/components/Accordion/AccordionTrigger.js +1 -0
  15. package/dist/components/Accordion/index.js +1 -0
  16. package/dist/components/Avatar/Avatar.js +2 -0
  17. package/dist/components/Avatar/avatarVariants.js +1 -0
  18. package/dist/components/Avatar/getAvatarSize.js +1 -0
  19. package/dist/components/Avatar/index.js +1 -0
  20. package/dist/components/Banner/BannerAction.js +1 -0
  21. package/dist/components/Banner/BannerContent.js +1 -0
  22. package/dist/components/Banner/BannerHeader.js +1 -0
  23. package/dist/components/Banner/BannerIcon.js +1 -0
  24. package/dist/components/Banner/BannerRoot.js +1 -0
  25. package/dist/components/Banner/BannerText.js +1 -0
  26. package/dist/components/Banner/bannerVariants.js +1 -0
  27. package/dist/components/Banner/index.js +1 -0
  28. package/dist/components/Button/Button.js +1 -0
  29. package/dist/components/Button/ButtonIcon.js +1 -0
  30. package/dist/components/Button/ButtonLabel.js +1 -0
  31. package/dist/components/Button/ButtonRoot.js +1 -0
  32. package/dist/components/Button/buttonVariants.js +87 -0
  33. package/dist/components/Button/index.js +1 -0
  34. package/dist/components/Checkbox/CheckboxIndicator.js +2 -0
  35. package/dist/components/Checkbox/CheckboxLabel.js +1 -0
  36. package/dist/components/Checkbox/CheckboxRoot.js +1 -0
  37. package/dist/components/Checkbox/CheckboxSubtext.js +1 -0
  38. package/dist/components/Checkbox/CheckboxTitle.js +1 -0
  39. package/dist/components/Checkbox/index.js +1 -0
  40. package/dist/components/Chip/Chip.js +1 -0
  41. package/dist/components/Chip/ChipLabel.js +1 -0
  42. package/dist/components/Chip/ChipRoot.js +1 -0
  43. package/dist/components/Chip/ChipSlot.js +1 -0
  44. package/dist/components/Chip/chipVariants.js +1 -0
  45. package/dist/components/Chip/index.js +1 -0
  46. package/dist/components/Form/FormCharacterCounter.js +1 -0
  47. package/dist/components/Form/FormCountrySelect/FormCountryOptions.js +1 -0
  48. package/dist/components/Form/FormCountrySelect/FormCountryOptionsList.js +1 -0
  49. package/dist/components/Form/FormCountrySelect/FormCountryOptionsSearchField.js +1 -0
  50. package/dist/components/Form/FormCountrySelect/FormCountrySelect.js +1 -0
  51. package/dist/components/Form/FormCountrySelect/constant.js +1 -0
  52. package/dist/components/Form/FormCountrySelect/getCountryFlagComp.js +1 -0
  53. package/dist/components/Form/FormItem.js +1 -0
  54. package/dist/components/Form/FormLabel.js +1 -0
  55. package/dist/components/Form/FormStatus/FormErrorStatus.js +1 -0
  56. package/dist/components/Form/FormStatus/FormHintStatus.js +1 -0
  57. package/dist/components/Form/FormStatus/FormStatusRoot.js +1 -0
  58. package/dist/components/Form/FormStatus/FormStatusText.js +1 -0
  59. package/dist/components/Form/FormStatus/FormSuccessStatus.js +1 -0
  60. package/dist/components/Form/index.js +1 -0
  61. package/dist/components/Icons/AccountBalanceIcon.js +1 -0
  62. package/dist/components/Icons/AccountBalanceWalletIcon.js +1 -0
  63. package/dist/components/Icons/AccountCircleIcon.js +1 -0
  64. package/dist/components/Icons/AdGroupIcon.js +1 -0
  65. package/dist/components/Icons/AdaptiveAudioMicIcon.js +1 -0
  66. package/dist/components/Icons/AddAPhotoIcon.js +1 -0
  67. package/dist/components/Icons/AddBusinessIcon.js +1 -0
  68. package/dist/components/Icons/AddCircleIcon.js +1 -0
  69. package/dist/components/Icons/AddIcon.js +1 -0
  70. package/dist/components/Icons/AddLinkIcon.js +1 -0
  71. package/dist/components/Icons/AddPhotoAlternateIcon.js +1 -0
  72. package/dist/components/Icons/AddShoppingCartIcon.js +1 -0
  73. package/dist/components/Icons/AdminPanelSettingsIcon.js +1 -0
  74. package/dist/components/Icons/AdsClickIcon.js +1 -0
  75. package/dist/components/Icons/AlarmIcon.js +1 -0
  76. package/dist/components/Icons/AllInboxIcon.js +1 -0
  77. package/dist/components/Icons/AnimationIcon.js +1 -0
  78. package/dist/components/Icons/ApartmentIcon.js +1 -0
  79. package/dist/components/Icons/AppsIcon.js +1 -0
  80. package/dist/components/Icons/ArchiveIcon.js +1 -0
  81. package/dist/components/Icons/ArrowBackIcon.js +1 -0
  82. package/dist/components/Icons/ArrowCircleDownIcon.js +1 -0
  83. package/dist/components/Icons/ArrowCircleUpIcon.js +1 -0
  84. package/dist/components/Icons/ArrowDownwardIcon.js +1 -0
  85. package/dist/components/Icons/ArrowDropDownIcon.js +1 -0
  86. package/dist/components/Icons/ArrowDropUpIcon.js +1 -0
  87. package/dist/components/Icons/ArrowForwardIcon.js +1 -0
  88. package/dist/components/Icons/ArrowUpwardIcon.js +1 -0
  89. package/dist/components/Icons/ArtTrackIcon.js +1 -0
  90. package/dist/components/Icons/ArticleIcon.js +1 -0
  91. package/dist/components/Icons/AttachMoneyIcon.js +1 -0
  92. package/dist/components/Icons/AttachmentIcon.js +1 -0
  93. package/dist/components/Icons/AudioFileIcon.js +1 -0
  94. package/dist/components/Icons/AutoAwesomeMosaic.js +1 -0
  95. package/dist/components/Icons/AvatarIcon.js +1 -0
  96. package/dist/components/Icons/AwardStarIcon.js +1 -0
  97. package/dist/components/Icons/BarChartIcon.js +1 -0
  98. package/dist/components/Icons/BarcodeScannerIcon.js +1 -0
  99. package/dist/components/Icons/BlockIcon.js +1 -0
  100. package/dist/components/Icons/BoltIcon.js +1 -0
  101. package/dist/components/Icons/Book5Icon.js +1 -0
  102. package/dist/components/Icons/BookOnlineIcon.js +1 -0
  103. package/dist/components/Icons/BugReportIcon.js +1 -0
  104. package/dist/components/Icons/BusinessCenterIcon.js +1 -0
  105. package/dist/components/Icons/CalendarAddOnIcon.js +1 -0
  106. package/dist/components/Icons/CalendarClockIcon.js +1 -0
  107. package/dist/components/Icons/CalendarMonthIcon.js +1 -0
  108. package/dist/components/Icons/CalendarTodayIcon.js +1 -0
  109. package/dist/components/Icons/CallIcon.js +1 -0
  110. package/dist/components/Icons/CallMadeIcon.js +1 -0
  111. package/dist/components/Icons/CallMissedIcon.js +1 -0
  112. package/dist/components/Icons/CallMissedOutgoingIcon.js +1 -0
  113. package/dist/components/Icons/CallReceivedIcon.js +1 -0
  114. package/dist/components/Icons/CampaignIcon.js +1 -0
  115. package/dist/components/Icons/CancelIcon.js +1 -0
  116. package/dist/components/Icons/CancelScheduleSendIcon.js +1 -0
  117. package/dist/components/Icons/CaptivePortalIcon.js +1 -0
  118. package/dist/components/Icons/CardLayoutIcon.js +1 -0
  119. package/dist/components/Icons/CasesIcon.js +1 -0
  120. package/dist/components/Icons/CategoryIcon.js +1 -0
  121. package/dist/components/Icons/ChairIcon.js +1 -0
  122. package/dist/components/Icons/ChangeCircleIcon.js +1 -0
  123. package/dist/components/Icons/ChatBubbleIcon.js +1 -0
  124. package/dist/components/Icons/ChatIcon.js +1 -0
  125. package/dist/components/Icons/CheckBoxIcon.js +1 -0
  126. package/dist/components/Icons/CheckBoxOutlineBlankIcon.js +1 -0
  127. package/dist/components/Icons/CheckCircleIcon.js +1 -0
  128. package/dist/components/Icons/CheckIcon.js +1 -0
  129. package/dist/components/Icons/ChevronLeftIcon.js +1 -0
  130. package/dist/components/Icons/ChevronRightIcon.js +1 -0
  131. package/dist/components/Icons/ClinicalNoteIcon.js +1 -0
  132. package/dist/components/Icons/CloseIcon.js +1 -0
  133. package/dist/components/Icons/CloudUploadIcon.js +1 -0
  134. package/dist/components/Icons/CodeIcon.js +1 -0
  135. package/dist/components/Icons/CoffeeIcon.js +1 -0
  136. package/dist/components/Icons/CollectionsBookmarkIcon.js +1 -0
  137. package/dist/components/Icons/ColorPickerIcon.js +1 -0
  138. package/dist/components/Icons/CompareArrowsIcon.js +1 -0
  139. package/dist/components/Icons/ConfirmationNumberIcon.js +1 -0
  140. package/dist/components/Icons/ContactMailIcon.js +1 -0
  141. package/dist/components/Icons/ContactPageIcon.js +1 -0
  142. package/dist/components/Icons/ContactPhoneIcon.js +1 -0
  143. package/dist/components/Icons/ContactSupportIcon.js +1 -0
  144. package/dist/components/Icons/ContactsIcon.js +1 -0
  145. package/dist/components/Icons/ContentCopyIcon.js +1 -0
  146. package/dist/components/Icons/CreditCardGearIcon.js +1 -0
  147. package/dist/components/Icons/CreditCardIcon.js +1 -0
  148. package/dist/components/Icons/CsvIcon.js +1 -0
  149. package/dist/components/Icons/CurrencyExchangeIcon.js +1 -0
  150. package/dist/components/Icons/DNSIcon.js +1 -0
  151. package/dist/components/Icons/DangerousIcon.js +1 -0
  152. package/dist/components/Icons/DarkModeIcon.js +1 -0
  153. package/dist/components/Icons/DashboardIcon.js +1 -0
  154. package/dist/components/Icons/DataCheckIcon.js +1 -0
  155. package/dist/components/Icons/DataObjectIcon.js +1 -0
  156. package/dist/components/Icons/DatabaseIcon.js +1 -0
  157. package/dist/components/Icons/DehazeIcon.js +1 -0
  158. package/dist/components/Icons/DeployedCodeAccountIcon.js +1 -0
  159. package/dist/components/Icons/DescriptionIcon.js +1 -0
  160. package/dist/components/Icons/DesktopMacIcon.js +1 -0
  161. package/dist/components/Icons/DevicesIcon.js +1 -0
  162. package/dist/components/Icons/DiamondIcon.js +1 -0
  163. package/dist/components/Icons/DirectionsWalkIcon.js +1 -0
  164. package/dist/components/Icons/Diversity1Icon.js +1 -0
  165. package/dist/components/Icons/Diversity2Icon.js +1 -0
  166. package/dist/components/Icons/Diversity3Icon.js +1 -0
  167. package/dist/components/Icons/DoNotDisturbOnIcon.js +1 -0
  168. package/dist/components/Icons/DomainAddIcon.js +1 -0
  169. package/dist/components/Icons/DomainIcon.js +1 -0
  170. package/dist/components/Icons/DomainVerificationIcon.js +1 -0
  171. package/dist/components/Icons/DownloadIcon.js +1 -0
  172. package/dist/components/Icons/DraftsIcon.js +1 -0
  173. package/dist/components/Icons/DragHandleIcon.js +1 -0
  174. package/dist/components/Icons/DragIndicatorIcon.js +1 -0
  175. package/dist/components/Icons/DuoIcon.js +1 -0
  176. package/dist/components/Icons/EarlyOnIcon.js +1 -0
  177. package/dist/components/Icons/EditIcon.js +1 -0
  178. package/dist/components/Icons/EmojiFoodBeverageIcon.js +1 -0
  179. package/dist/components/Icons/EmojiIcon.js +1 -0
  180. package/dist/components/Icons/EncryptedIcon.js +1 -0
  181. package/dist/components/Icons/EnterpriseIcon.js +1 -0
  182. package/dist/components/Icons/EqualIcon.js +1 -0
  183. package/dist/components/Icons/ErrorIcon.js +1 -0
  184. package/dist/components/Icons/EventBusyIcon.js +1 -0
  185. package/dist/components/Icons/EventIcon.js +1 -0
  186. package/dist/components/Icons/ExpandAllIcon.js +1 -0
  187. package/dist/components/Icons/FastForwardIcon.js +1 -0
  188. package/dist/components/Icons/FastRewindIcon.js +1 -0
  189. package/dist/components/Icons/FavoriteIcon.js +1 -0
  190. package/dist/components/Icons/FeaturedSeasonalAndGiftsIcon.js +1 -0
  191. package/dist/components/Icons/FeedIcon.js +1 -0
  192. package/dist/components/Icons/FilePresentIcon.js +1 -0
  193. package/dist/components/Icons/FilterListIcon.js +1 -0
  194. package/dist/components/Icons/FingerPrintIcon.js +1 -0
  195. package/dist/components/Icons/FlagIcon.js +1 -0
  196. package/dist/components/Icons/FolderCopyIcon.js +1 -0
  197. package/dist/components/Icons/FolderIcon.js +1 -0
  198. package/dist/components/Icons/FolderZipIcon.js +1 -0
  199. package/dist/components/Icons/FootPrintIcon.js +1 -0
  200. package/dist/components/Icons/FormatAlignCenterIcon.js +1 -0
  201. package/dist/components/Icons/FormatAlignJustifyIcon.js +1 -0
  202. package/dist/components/Icons/FormatAlignLeftIcon.js +1 -0
  203. package/dist/components/Icons/FormatAlignRightIcon.js +1 -0
  204. package/dist/components/Icons/FormatBoldIcon.js +1 -0
  205. package/dist/components/Icons/FormatItalicIcon.js +1 -0
  206. package/dist/components/Icons/FormatListBulletedIcon.js +1 -0
  207. package/dist/components/Icons/FormatListNumberedIcon.js +1 -0
  208. package/dist/components/Icons/FormatSizeIcon.js +1 -0
  209. package/dist/components/Icons/FormatUnderlinedIcon.js +1 -0
  210. package/dist/components/Icons/ForumIcon.js +1 -0
  211. package/dist/components/Icons/ForwardToInboxIcon.js +1 -0
  212. package/dist/components/Icons/FullScreenIcon.js +1 -0
  213. package/dist/components/Icons/GalleryThumbnailIcon.js +1 -0
  214. package/dist/components/Icons/GppBadIcon.js +1 -0
  215. package/dist/components/Icons/GppMaybeIcon.js +1 -0
  216. package/dist/components/Icons/GridViewIcon.js +1 -0
  217. package/dist/components/Icons/GroupIcon.js +1 -0
  218. package/dist/components/Icons/GroupsTwoIcon.js +1 -0
  219. package/dist/components/Icons/HandShakeIcon.js +1 -0
  220. package/dist/components/Icons/HeadphonesIcon.js +1 -0
  221. package/dist/components/Icons/HelpIcon.js +1 -0
  222. package/dist/components/Icons/HomeIcon.js +1 -0
  223. package/dist/components/Icons/HomePinIcon.js +1 -0
  224. package/dist/components/Icons/HomeRepairServiceIcon.js +1 -0
  225. package/dist/components/Icons/HourGlassTopIcon.js +1 -0
  226. package/dist/components/Icons/HourglassEmptyIcon.js +1 -0
  227. package/dist/components/Icons/HubIcon.js +1 -0
  228. package/dist/components/Icons/IFrameIcon.js +1 -0
  229. package/dist/components/Icons/IconWrapper.js +1 -0
  230. package/dist/components/Icons/IdCardIcon.js +1 -0
  231. package/dist/components/Icons/IndeterminateCheckBoxIcon.js +1 -0
  232. package/dist/components/Icons/InfoIcon.js +1 -0
  233. package/dist/components/Icons/InsertChartIcon.js +1 -0
  234. package/dist/components/Icons/IntegrationInstructionsIcon.js +1 -0
  235. package/dist/components/Icons/Inventory2Icon.js +1 -0
  236. package/dist/components/Icons/IosShareIcon.js +1 -0
  237. package/dist/components/Icons/KeepIcon.js +1 -0
  238. package/dist/components/Icons/KeyIcon.js +1 -0
  239. package/dist/components/Icons/KeyOffIcon.js +1 -0
  240. package/dist/components/Icons/KeyboardArrowDownIcon.js +1 -0
  241. package/dist/components/Icons/KeyboardArrowUpIcon.js +1 -0
  242. package/dist/components/Icons/KeyboardBackSpaceIcon.js +1 -0
  243. package/dist/components/Icons/KeyboardDoubleArrowDownIcon.js +1 -0
  244. package/dist/components/Icons/LabProfileIcon.js +1 -0
  245. package/dist/components/Icons/LabelIcon.js +1 -0
  246. package/dist/components/Icons/LabelOffIcon.js +1 -0
  247. package/dist/components/Icons/LanguageIcon.js +1 -0
  248. package/dist/components/Icons/LeftPanelCloseIcon.js +1 -0
  249. package/dist/components/Icons/LeftPanelOpenIcon.js +1 -0
  250. package/dist/components/Icons/LibraryMusicIcon.js +1 -0
  251. package/dist/components/Icons/LinkIcon.js +1 -0
  252. package/dist/components/Icons/LinkOffIcon.js +1 -0
  253. package/dist/components/Icons/LocalActivityIcon.js +1 -0
  254. package/dist/components/Icons/LocalFloristIcon.js +1 -0
  255. package/dist/components/Icons/LocalLibraryIcon.js +1 -0
  256. package/dist/components/Icons/LocationOnIcon.js +1 -0
  257. package/dist/components/Icons/LockIcon.js +1 -0
  258. package/dist/components/Icons/LockOpenIcon.js +1 -0
  259. package/dist/components/Icons/LoginIcon.js +1 -0
  260. package/dist/components/Icons/LogoutIcon.js +1 -0
  261. package/dist/components/Icons/MailIcon.js +1 -0
  262. package/dist/components/Icons/ManageAccountsIcon.js +1 -0
  263. package/dist/components/Icons/MarkUnreadChatAltIcon.js +1 -0
  264. package/dist/components/Icons/MediaLinkIcon.js +1 -0
  265. package/dist/components/Icons/MenuOpenIcon.js +1 -0
  266. package/dist/components/Icons/MetabolismIcon.js +1 -0
  267. package/dist/components/Icons/MilitaryTechIcon.js +1 -0
  268. package/dist/components/Icons/MoneyBagIcon.js +1 -0
  269. package/dist/components/Icons/MonitorIcon.js +1 -0
  270. package/dist/components/Icons/MonitoringIcon.js +1 -0
  271. package/dist/components/Icons/MoreHorizIcon.js +1 -0
  272. package/dist/components/Icons/MoreVertIcon.js +1 -0
  273. package/dist/components/Icons/MotionPhotosPausedIcon.js +1 -0
  274. package/dist/components/Icons/NotificationsIcon.js +1 -0
  275. package/dist/components/Icons/OpenInNewIcon.js +1 -0
  276. package/dist/components/Icons/Package2Icon.js +1 -0
  277. package/dist/components/Icons/PageviewIcon.js +1 -0
  278. package/dist/components/Icons/PaidIcon.js +1 -0
  279. package/dist/components/Icons/PaletteIcon.js +1 -0
  280. package/dist/components/Icons/PatientListIcon.js +1 -0
  281. package/dist/components/Icons/PauseIcon.js +1 -0
  282. package/dist/components/Icons/PaymentsIcon.js +1 -0
  283. package/dist/components/Icons/PendingActionsIcon.js +1 -0
  284. package/dist/components/Icons/PercentIcon.js +1 -0
  285. package/dist/components/Icons/PermMediaIcon.js +1 -0
  286. package/dist/components/Icons/PersonAddIcon.js +1 -0
  287. package/dist/components/Icons/PersonBookIcon.js +1 -0
  288. package/dist/components/Icons/PersonIcon.js +1 -0
  289. package/dist/components/Icons/PhotoCameraIcon.js +1 -0
  290. package/dist/components/Icons/PhotoIcon.js +1 -0
  291. package/dist/components/Icons/PhotoLibraryIcon.js +1 -0
  292. package/dist/components/Icons/PictureAsPdfIcon.js +1 -0
  293. package/dist/components/Icons/PlayArrowIcon.js +1 -0
  294. package/dist/components/Icons/PlayCircleIcon.js +1 -0
  295. package/dist/components/Icons/PolicyIcon.js +1 -0
  296. package/dist/components/Icons/PowerSettingsCircleIcon.js +1 -0
  297. package/dist/components/Icons/PowerSettingsNewIcon.js +1 -0
  298. package/dist/components/Icons/PreviewIcon.js +1 -0
  299. package/dist/components/Icons/PriorityHighIcon.js +1 -0
  300. package/dist/components/Icons/PsychologyAltIcon.js +1 -0
  301. package/dist/components/Icons/PublicIcon.js +1 -0
  302. package/dist/components/Icons/PublishIcon.js +1 -0
  303. package/dist/components/Icons/QRCode2Icon.js +1 -0
  304. package/dist/components/Icons/QuestionMarkIcon.js +1 -0
  305. package/dist/components/Icons/QuizIcon.js +1 -0
  306. package/dist/components/Icons/RadioButtonCheckedIcon.js +1 -0
  307. package/dist/components/Icons/RadioButtonUncheckedIcon.js +1 -0
  308. package/dist/components/Icons/RateReviewIcon.js +1 -0
  309. package/dist/components/Icons/ReceiptLongIcon.js +1 -0
  310. package/dist/components/Icons/RecordVoiceOverIcon.js +1 -0
  311. package/dist/components/Icons/RedeemIcon.js +1 -0
  312. package/dist/components/Icons/RedoIcon.js +1 -0
  313. package/dist/components/Icons/RemoveIcon.js +1 -0
  314. package/dist/components/Icons/RemoveRoadIcon.js +1 -0
  315. package/dist/components/Icons/RequestQuoteIcon.js +1 -0
  316. package/dist/components/Icons/ReviewIcon.js +1 -0
  317. package/dist/components/Icons/SavingsIcon.js +1 -0
  318. package/dist/components/Icons/ScheduleIcon.js +1 -0
  319. package/dist/components/Icons/ScheduleSendIcon.js +1 -0
  320. package/dist/components/Icons/SearchIcon.js +1 -0
  321. package/dist/components/Icons/SellIcon.js +1 -0
  322. package/dist/components/Icons/SendIcon.js +1 -0
  323. package/dist/components/Icons/SettingsIcon.js +1 -0
  324. package/dist/components/Icons/ShareIcon.js +1 -0
  325. package/dist/components/Icons/ShoppingCartIcon.js +1 -0
  326. package/dist/components/Icons/ShoppingModeIcon.js +1 -0
  327. package/dist/components/Icons/ShuffleIcon.js +1 -0
  328. package/dist/components/Icons/SocialLeaderBoardIcon.js +1 -0
  329. package/dist/components/Icons/Speed15xIcon.js +1 -0
  330. package/dist/components/Icons/Speed1xIcon.js +1 -0
  331. package/dist/components/Icons/Speed2xIcon.js +1 -0
  332. package/dist/components/Icons/StarHalfIcon.js +1 -0
  333. package/dist/components/Icons/StarIcon.js +1 -0
  334. package/dist/components/Icons/StorefrontIcon.js +1 -0
  335. package/dist/components/Icons/StrikethroughSIcon.js +1 -0
  336. package/dist/components/Icons/SubscriptionsIcon.js +1 -0
  337. package/dist/components/Icons/SupervisorAccountIcon.js +1 -0
  338. package/dist/components/Icons/SwitchAccountIcon.js +1 -0
  339. package/dist/components/Icons/SwitchesIcon.js +1 -0
  340. package/dist/components/Icons/SyncSavedLocallyIcon.js +1 -0
  341. package/dist/components/Icons/TabletIcon.js +1 -0
  342. package/dist/components/Icons/ThumbDownIcon.js +1 -0
  343. package/dist/components/Icons/ThumbUpIcon.js +1 -0
  344. package/dist/components/Icons/TocIcon.js +1 -0
  345. package/dist/components/Icons/TrashDeleteBinIcon.js +1 -0
  346. package/dist/components/Icons/TrendingUpIcon.js +1 -0
  347. package/dist/components/Icons/TrophyIcon.js +1 -0
  348. package/dist/components/Icons/UndoIcon.js +1 -0
  349. package/dist/components/Icons/UnfoldMoreIcon.js +1 -0
  350. package/dist/components/Icons/UnsubscribeIcon.js +1 -0
  351. package/dist/components/Icons/UploadIcon.js +1 -0
  352. package/dist/components/Icons/VerifiedIcon.js +1 -0
  353. package/dist/components/Icons/VideoCamIcon.js +1 -0
  354. package/dist/components/Icons/VideoFileIcon.js +1 -0
  355. package/dist/components/Icons/ViewAgendaIcon.js +1 -0
  356. package/dist/components/Icons/ViewArrayIcon.js +1 -0
  357. package/dist/components/Icons/ViewCarouselIcon.js +1 -0
  358. package/dist/components/Icons/ViewCozyIcon.js +1 -0
  359. package/dist/components/Icons/ViewModuleIcon.js +1 -0
  360. package/dist/components/Icons/VisibilityIcon.js +1 -0
  361. package/dist/components/Icons/VisibilityOffIcon.js +1 -0
  362. package/dist/components/Icons/VolumeUpIcon.js +1 -0
  363. package/dist/components/Icons/VolunteerActivismIcon.js +1 -0
  364. package/dist/components/Icons/WandStarsGradientIcon.js +1 -0
  365. package/dist/components/Icons/WandStarsIcon.js +1 -0
  366. package/dist/components/Icons/WarningIcon.js +1 -0
  367. package/dist/components/Icons/WbSunnyIcon.js +1 -0
  368. package/dist/components/Icons/WebAssetIcon.js +1 -0
  369. package/dist/components/Icons/WebTrafficIcon.js +1 -0
  370. package/dist/components/Icons/WebhookIcon.js +1 -0
  371. package/dist/components/Icons/WidgetsIcon.js +1 -0
  372. package/dist/components/Icons/WorkHistoryIcon.js +1 -0
  373. package/dist/components/Icons/WorkIcon.js +1 -0
  374. package/dist/components/Icons/enums.js +1 -0
  375. package/dist/components/Icons/icons.js +1 -0
  376. package/dist/components/Icons/index.js +1 -0
  377. package/dist/components/Icons/types.js +1 -0
  378. package/dist/components/Input/Input.js +1 -0
  379. package/dist/components/Input/InputField.js +1 -0
  380. package/dist/components/Input/InputRoot.js +1 -0
  381. package/dist/components/Input/index.js +1 -0
  382. package/dist/components/PasswordField/PasswordField.js +2 -0
  383. package/dist/components/PasswordField/index.js +1 -0
  384. package/dist/components/PhoneNumber/PhoneNumberDigitField.js +3 -0
  385. package/dist/components/PhoneNumber/PhoneNumberFields.js +2 -0
  386. package/dist/components/PhoneNumber/PhoneNumberFlagField.js +2 -0
  387. package/dist/components/PhoneNumber/PhoneNumberInput.js +2 -0
  388. package/dist/components/PhoneNumber/PhoneNumberOptions.js +2 -0
  389. package/dist/components/PhoneNumber/PhoneNumberOptionsList.js +2 -0
  390. package/dist/components/PhoneNumber/PhoneNumberOptionsSearchField.js +2 -0
  391. package/dist/components/PhoneNumber/PhoneNumberPortal.js +2 -0
  392. package/dist/components/PhoneNumber/PhoneNumberRoot.js +2 -0
  393. package/dist/components/PhoneNumber/index.js +1 -0
  394. package/dist/components/PhoneNumber/phoneNumberContext.js +1 -0
  395. package/dist/components/PriceField/PriceFieldDigitField.js +2 -0
  396. package/dist/components/PriceField/PriceFieldFields.js +2 -0
  397. package/dist/components/PriceField/PriceFieldFlagField.js +2 -0
  398. package/dist/components/PriceField/PriceFieldInput.js +2 -0
  399. package/dist/components/PriceField/PriceFieldOptions.js +2 -0
  400. package/dist/components/PriceField/PriceFieldOptionsList.js +2 -0
  401. package/dist/components/PriceField/PriceFieldOptionsSearchField.js +2 -0
  402. package/dist/components/PriceField/PriceFieldPortal.js +2 -0
  403. package/dist/components/PriceField/PriceFieldRoot.js +2 -0
  404. package/dist/components/PriceField/index.js +1 -0
  405. package/dist/components/PriceField/priceFieldContext.js +1 -0
  406. package/dist/components/Provider/MainstackDesignSystemProvider.js +1 -0
  407. package/dist/components/Provider/index.js +1 -0
  408. package/dist/components/Provider/providerContext.js +1 -0
  409. package/dist/components/Provider/useMainstackDesignSystemTheme.js +1 -0
  410. package/dist/components/Radio/RadioItem.js +1 -0
  411. package/dist/components/Radio/RadioItemIndicator.js +1 -0
  412. package/dist/components/Radio/RadioItemLabel.js +1 -0
  413. package/dist/components/Radio/RadioItemSubtext.js +1 -0
  414. package/dist/components/Radio/RadioItemTitle.js +1 -0
  415. package/dist/components/Radio/RadioRoot.js +1 -0
  416. package/dist/components/Radio/index.js +1 -0
  417. package/dist/components/SearchField/SearchField.js +2 -0
  418. package/dist/components/SearchField/index.js +1 -0
  419. package/dist/components/Select/MultiSelect.js +2 -0
  420. package/dist/components/Select/Select.js +2 -0
  421. package/dist/components/Select/SelectInputField.js +2 -0
  422. package/dist/components/Select/SelectOptionInputPreview.js +2 -0
  423. package/dist/components/Select/SelectOptionItem.js +2 -0
  424. package/dist/components/Select/SelectOptionItemWithCheckbox.js +2 -0
  425. package/dist/components/Select/SelectOptions.js +2 -0
  426. package/dist/components/Select/SelectPortal.js +2 -0
  427. package/dist/components/Select/SelectRoot.js +2 -0
  428. package/dist/components/Select/index.js +1 -0
  429. package/dist/components/Select/selectContext.js +1 -0
  430. package/dist/components/Select/utils.js +1 -0
  431. package/dist/components/Tab/TabsContent.js +1 -0
  432. package/dist/components/Tab/TabsContext.js +1 -0
  433. package/dist/components/Tab/TabsList.js +1 -0
  434. package/dist/components/Tab/TabsRoot.js +1 -0
  435. package/dist/components/Tab/TabsTrigger.js +1 -0
  436. package/dist/components/Tab/index.js +1 -0
  437. package/dist/components/Tab/tabsVariants.js +1 -0
  438. package/dist/components/Tag/Tag.js +1 -0
  439. package/dist/components/Tag/TagIcon.js +1 -0
  440. package/dist/components/Tag/TagLabel.js +1 -0
  441. package/dist/components/Tag/TagRoot.js +1 -0
  442. package/dist/components/Tag/index.js +1 -0
  443. package/dist/components/Tag/tagVariants.js +1 -0
  444. package/dist/components/TextEditor/TextEditorField.js +4 -0
  445. package/dist/components/TextEditor/TextEditorInput.js +2 -0
  446. package/dist/components/TextEditor/TextEditorMenuBar/BoldMenu.js +2 -0
  447. package/dist/components/TextEditor/TextEditorMenuBar/CodeMenu.js +2 -0
  448. package/dist/components/TextEditor/TextEditorMenuBar/ColorPickerMenu.js +2 -0
  449. package/dist/components/TextEditor/TextEditorMenuBar/GenerateWithAiMenu.js +2 -0
  450. package/dist/components/TextEditor/TextEditorMenuBar/ImageUploadMenu.js +2 -0
  451. package/dist/components/TextEditor/TextEditorMenuBar/ItalicMenu.js +2 -0
  452. package/dist/components/TextEditor/TextEditorMenuBar/LinkMenu.js +6 -0
  453. package/dist/components/TextEditor/TextEditorMenuBar/OrderedListMenu.js +2 -0
  454. package/dist/components/TextEditor/TextEditorMenuBar/StrikethroughMenu.js +2 -0
  455. package/dist/components/TextEditor/TextEditorMenuBar/TextAlignMenu.js +2 -0
  456. package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuAction.js +2 -0
  457. package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuBar.js +2 -0
  458. package/dist/components/TextEditor/TextEditorMenuBar/TextSizesMenu.js +2 -0
  459. package/dist/components/TextEditor/TextEditorMenuBar/UnderlineMenu.js +2 -0
  460. package/dist/components/TextEditor/TextEditorMenuBar/UnorderedListMenu.js +2 -0
  461. package/dist/components/TextEditor/TextEditorRoot.js +42 -0
  462. package/dist/components/TextEditor/index.js +1 -0
  463. package/dist/components/TextEditor/textEditorContext.js +1 -0
  464. package/dist/components/Textarea/Textarea.js +1 -0
  465. package/dist/components/Textarea/TextareaField.js +1 -0
  466. package/dist/components/Textarea/TextareaRoot.js +1 -0
  467. package/dist/components/Textarea/index.js +1 -0
  468. package/dist/components/Tile/TileCheckbox.js +1 -0
  469. package/dist/components/Tile/TileContent.js +1 -0
  470. package/dist/components/Tile/TileDescription.js +1 -0
  471. package/dist/components/Tile/TileHeader.js +1 -0
  472. package/dist/components/Tile/TileMedia.js +3 -0
  473. package/dist/components/Tile/TileRoot.js +2 -0
  474. package/dist/components/Tile/TileTitle.js +1 -0
  475. package/dist/components/Tile/index.js +1 -0
  476. package/dist/components/Tile/tileVariants.js +1 -0
  477. package/dist/components/Toggle/Toggle.js +1 -0
  478. package/dist/components/Toggle/ToggleLabel.js +1 -0
  479. package/dist/components/Toggle/ToggleRoot.js +1 -0
  480. package/dist/components/Toggle/ToggleSubtext.js +1 -0
  481. package/dist/components/Toggle/ToggleSwitch.js +2 -0
  482. package/dist/components/Toggle/ToggleTitle.js +1 -0
  483. package/dist/components/Toggle/index.js +1 -0
  484. package/dist/components/Toggle/toggleVariants.js +1 -0
  485. package/dist/components/Tooltip/TooltipArrow.js +1 -0
  486. package/dist/components/Tooltip/TooltipBody.js +1 -0
  487. package/dist/components/Tooltip/TooltipContent.js +1 -0
  488. package/dist/components/Tooltip/TooltipContext.js +1 -0
  489. package/dist/components/Tooltip/TooltipFooter.js +1 -0
  490. package/dist/components/Tooltip/TooltipHeader.js +1 -0
  491. package/dist/components/Tooltip/TooltipRoot.js +2 -0
  492. package/dist/components/Tooltip/TooltipTitle.js +1 -0
  493. package/dist/components/Tooltip/TooltipTrigger.js +1 -0
  494. package/dist/components/Tooltip/index.js +1 -0
  495. package/dist/components/Tooltip/useTooltipContext.js +1 -0
  496. package/dist/components/Typography/BodyText/BodyText.js +1 -0
  497. package/dist/components/Typography/BodyText/bodyTextVariants.js +1 -0
  498. package/dist/components/Typography/BodyText/index.js +1 -0
  499. package/dist/components/Typography/DisplayText/DisplayText.js +1 -0
  500. package/dist/components/Typography/DisplayText/displayTextVariants.js +1 -0
  501. package/dist/components/Typography/DisplayText/index.js +1 -0
  502. package/dist/components/Typography/HeadlineText/HeadlineText.js +1 -0
  503. package/dist/components/Typography/HeadlineText/headlineTextVariants.js +1 -0
  504. package/dist/components/Typography/HeadlineText/index.js +1 -0
  505. package/dist/en.json-BPy-6DYI.cjs +1 -0
  506. package/dist/en.json-VbJG9vrN.js +263 -0
  507. package/dist/floating-ui.dom-C224prEy.cjs +1 -0
  508. package/dist/floating-ui.dom-CauyjNxS.js +1131 -0
  509. package/dist/fonts/degular/Degular-Black.woff2 +0 -0
  510. package/dist/fonts/degular/Degular-Black_Italic.woff2 +0 -0
  511. package/dist/fonts/degular/Degular-Bold.woff2 +0 -0
  512. package/dist/fonts/degular/Degular-Bold_Italic.woff2 +0 -0
  513. package/dist/fonts/degular/Degular-Italic.woff2 +0 -0
  514. package/dist/fonts/degular/Degular-Light.woff2 +0 -0
  515. package/dist/fonts/degular/Degular-Light_Italic.woff2 +0 -0
  516. package/dist/fonts/degular/Degular-Medium.woff2 +0 -0
  517. package/dist/fonts/degular/Degular-Medium_Italic.woff2 +0 -0
  518. package/dist/fonts/degular/Degular-Regular.woff2 +0 -0
  519. package/dist/fonts/degular/Degular-Semibold.woff2 +0 -0
  520. package/dist/fonts/degular/Degular-Semibold_Italic.woff2 +0 -0
  521. package/dist/fonts/degular/Degular-Thin.woff2 +0 -0
  522. package/dist/fonts/degular/Degular-Thin_Italic.woff2 +0 -0
  523. package/dist/fonts/suisseIntl/SuisseIntl-Black.woff2 +0 -0
  524. package/dist/fonts/suisseIntl/SuisseIntl-BlackIt.woff2 +0 -0
  525. package/dist/fonts/suisseIntl/SuisseIntl-Bold.woff2 +0 -0
  526. package/dist/fonts/suisseIntl/SuisseIntl-BoldIt.woff2 +0 -0
  527. package/dist/fonts/suisseIntl/SuisseIntl-Book.woff2 +0 -0
  528. package/dist/fonts/suisseIntl/SuisseIntl-BookIt.woff2 +0 -0
  529. package/dist/fonts/suisseIntl/SuisseIntl-Medium.woff2 +0 -0
  530. package/dist/fonts/suisseIntl/SuisseIntl-MediumIt.woff2 +0 -0
  531. package/dist/fonts/suisseIntl/SuisseIntl-Regular.woff2 +0 -0
  532. package/dist/fonts/suisseIntl/SuisseIntl-RegularIt.woff2 +0 -0
  533. package/dist/fonts/suisseIntl/SuisseIntl-Semibold.woff2 +0 -0
  534. package/dist/fonts/suisseIntl/SuisseIntl-SemiboldIt.woff2 +0 -0
  535. package/dist/getInternationalPhoneNumberPrefix-C4Qc97tE.cjs +34 -0
  536. package/dist/getInternationalPhoneNumberPrefix-C8O8VTpp.js +4368 -0
  537. package/dist/index-0ioNhtNM.js +10 -0
  538. package/dist/index-437EL2iq.js +52 -0
  539. package/dist/index-5Bhkapwi.js +82 -0
  540. package/dist/index-B0dI0L76.cjs +2 -0
  541. package/dist/index-BGQepRFJ.js +27 -0
  542. package/dist/index-BGfrl8IX.js +71 -0
  543. package/dist/index-BI11g55_.cjs +42 -0
  544. package/dist/index-BRRTyZ1e.js +75 -0
  545. package/dist/index-BZCybroW.cjs +2 -0
  546. package/dist/index-BZPx6jYI.js +8 -0
  547. package/dist/index-B_Bwy8wX.cjs +1 -0
  548. package/dist/index-BbQbyYHN.cjs +2 -0
  549. package/dist/index-BfKbXbc8.cjs +1 -0
  550. package/dist/index-BvWMjxZ5.js +675 -0
  551. package/dist/index-Bx2vBAJ5.cjs +2 -0
  552. package/dist/index-ByaXH_ih.js +10 -0
  553. package/dist/index-C2mPf2xD.cjs +1 -0
  554. package/dist/index-C8aODXfJ.cjs +1 -0
  555. package/dist/index-CAgJYdlN.cjs +1 -0
  556. package/dist/index-CCKe-Mpx.js +6 -0
  557. package/dist/index-CRDKsB5y.cjs +2 -0
  558. package/dist/index-CRdNenpR.js +422 -0
  559. package/dist/index-CajSSBH7.cjs +1 -0
  560. package/dist/index-Cje7xxa1.cjs +1 -0
  561. package/dist/index-CpDnqHCm.js +36 -0
  562. package/dist/index-CsK1LjrZ.cjs +2 -0
  563. package/dist/index-CvknVH0W.js +754 -0
  564. package/dist/index-CwR-dC8j.cjs +2 -0
  565. package/dist/index-CyFz8fal.cjs +131 -0
  566. package/dist/index-CzY-WZXL.cjs +1 -0
  567. package/dist/index-D-KHlZ2P.js +20 -0
  568. package/dist/index-D29mdTf5.js +34 -0
  569. package/dist/index-D9S-9HH_.js +332 -0
  570. package/dist/index-DCXkdCW2.js +227 -0
  571. package/dist/index-DLcgu_3m.js +159 -0
  572. package/dist/index-DVuTCIJE.cjs +2 -0
  573. package/dist/index-DWQmix6e.js +234 -0
  574. package/dist/index-DYxWvftI.cjs +1 -0
  575. package/dist/index-DgIcguCG.cjs +2 -0
  576. package/dist/index-DmeJCEwx.js +181 -0
  577. package/dist/index-Dt3HnaYe.js +48 -0
  578. package/dist/index-Dz5LHXX9.js +145 -0
  579. package/dist/index-MQ0c3ZX_.cjs +1 -0
  580. package/dist/index-ZhUVW4CS.cjs +2 -0
  581. package/dist/index-bSPhqlcX.cjs +1 -0
  582. package/dist/index-fw7dUmQl.js +352 -0
  583. package/dist/index-ojFnBVkh.cjs +2 -0
  584. package/dist/index-q-4o5Ie4.cjs +2 -0
  585. package/dist/index-twi8FX77.js +13814 -0
  586. package/dist/index-xqkGMOJ8.js +13 -0
  587. package/dist/index.d.ts +68 -0
  588. package/dist/index.js +1 -0
  589. package/dist/lib/useElementWidth.js +1 -0
  590. package/dist/lib/utils.js +1 -0
  591. package/dist/types/index.js +1 -0
  592. package/package.json +89 -66
  593. package/build/index.css +0 -6
  594. package/build/index.d.ts +0 -1419
  595. package/build/mainstack-design-system.js +0 -25463
@@ -0,0 +1,1790 @@
1
+ import { jsx as U, jsxs as ce } from "react/jsx-runtime";
2
+ import c, { useMemo as ae, useCallback as ze, forwardRef as Xe } from "react";
3
+ import { n as Ke, p as Ge, M as Oe, P as u, i as He, g as N, a as Z, A as z, v as Se, I as Ye, c as Je, m as Pe, l as Ie, d as je } from "./getInternationalPhoneNumberPrefix-C8O8VTpp.js";
4
+ import { c as Q } from "./en.json-VbJG9vrN.js";
5
+ import { g as Qe } from "./_commonjsHelpers-C6fGbg64.js";
6
+ import { cn as B } from "./lib/utils.js";
7
+ import { getCountryFlagComp as et } from "./components/Form/FormCountrySelect/getCountryFlagComp.js";
8
+ var J = { exports: {} };
9
+ /*!
10
+ Copyright (c) 2018 Jed Watson.
11
+ Licensed under the MIT License (MIT), see
12
+ http://jedwatson.github.io/classnames
13
+ */
14
+ var se;
15
+ function tt() {
16
+ return se || (se = 1, (function(e) {
17
+ (function() {
18
+ var n = {}.hasOwnProperty;
19
+ function r() {
20
+ for (var a = "", i = 0; i < arguments.length; i++) {
21
+ var l = arguments[i];
22
+ l && (a = o(a, t(l)));
23
+ }
24
+ return a;
25
+ }
26
+ function t(a) {
27
+ if (typeof a == "string" || typeof a == "number")
28
+ return a;
29
+ if (typeof a != "object")
30
+ return "";
31
+ if (Array.isArray(a))
32
+ return r.apply(null, a);
33
+ if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
34
+ return a.toString();
35
+ var i = "";
36
+ for (var l in a)
37
+ n.call(a, l) && a[l] && (i = o(i, l));
38
+ return i;
39
+ }
40
+ function o(a, i) {
41
+ return i ? a ? a + " " + i : a + i : a;
42
+ }
43
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
44
+ })();
45
+ })(J)), J.exports;
46
+ }
47
+ var nt = tt();
48
+ const k = /* @__PURE__ */ Qe(nt);
49
+ function rt() {
50
+ var e = Ke(arguments), n = e.text, r = e.options, t = e.metadata;
51
+ return Ge(n, r, t);
52
+ }
53
+ function ee(e) {
54
+ return new Oe(e).getCountries();
55
+ }
56
+ function ot(e) {
57
+ return fe(e[0]) + fe(e[1]);
58
+ }
59
+ function fe(e) {
60
+ return String.fromCodePoint(127397 + e.toUpperCase().charCodeAt(0));
61
+ }
62
+ var at = ["value", "onChange", "options", "disabled", "readOnly"], it = ["value", "options", "className", "iconComponent", "getIconAspectRatio", "arrowComponent", "unicodeFlags"];
63
+ function ut(e, n) {
64
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
65
+ if (r) return (r = r.call(e)).next.bind(r);
66
+ if (Array.isArray(e) || (r = lt(e)) || n) {
67
+ r && (e = r);
68
+ var t = 0;
69
+ return function() {
70
+ return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
71
+ };
72
+ }
73
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
74
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
75
+ }
76
+ function lt(e, n) {
77
+ if (e) {
78
+ if (typeof e == "string") return pe(e, n);
79
+ var r = Object.prototype.toString.call(e).slice(8, -1);
80
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
81
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return pe(e, n);
82
+ }
83
+ }
84
+ function pe(e, n) {
85
+ (n == null || n > e.length) && (n = e.length);
86
+ for (var r = 0, t = new Array(n); r < n; r++) t[r] = e[r];
87
+ return t;
88
+ }
89
+ function V() {
90
+ return V = Object.assign ? Object.assign.bind() : function(e) {
91
+ for (var n = 1; n < arguments.length; n++) {
92
+ var r = arguments[n];
93
+ for (var t in r)
94
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
95
+ }
96
+ return e;
97
+ }, V.apply(this, arguments);
98
+ }
99
+ function we(e, n) {
100
+ if (e == null) return {};
101
+ var r = ct(e, n), t, o;
102
+ if (Object.getOwnPropertySymbols) {
103
+ var a = Object.getOwnPropertySymbols(e);
104
+ for (o = 0; o < a.length; o++)
105
+ t = a[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
106
+ }
107
+ return r;
108
+ }
109
+ function ct(e, n) {
110
+ if (e == null) return {};
111
+ var r = {}, t = Object.keys(e), o, a;
112
+ for (a = 0; a < t.length; a++)
113
+ o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
114
+ return r;
115
+ }
116
+ function Ne(e) {
117
+ var n = e.value, r = e.onChange, t = e.options, o = e.disabled, a = e.readOnly, i = we(e, at), l = ze(function(s) {
118
+ var f = s.target.value;
119
+ r(f === "ZZ" ? void 0 : f);
120
+ }, [r]);
121
+ return ae(function() {
122
+ return Ee(t, n);
123
+ }, [t, n]), /* @__PURE__ */ c.createElement("select", V({}, i, {
124
+ disabled: o || a,
125
+ readOnly: a,
126
+ value: n || "ZZ",
127
+ onChange: l
128
+ }), t.map(function(s) {
129
+ var f = s.value, m = s.label, v = s.divider;
130
+ return /* @__PURE__ */ c.createElement("option", {
131
+ key: v ? "|" : f || "ZZ",
132
+ value: v ? "|" : f || "ZZ",
133
+ disabled: !!v,
134
+ style: v ? st : void 0
135
+ }, m);
136
+ }));
137
+ }
138
+ Ne.propTypes = {
139
+ /**
140
+ * A two-letter country code.
141
+ * Example: "US", "RU", etc.
142
+ */
143
+ value: u.string,
144
+ /**
145
+ * A function of `value: string`.
146
+ * Updates the `value` property.
147
+ */
148
+ onChange: u.func.isRequired,
149
+ // `<select/>` options.
150
+ options: u.arrayOf(u.shape({
151
+ value: u.string,
152
+ label: u.string,
153
+ divider: u.bool
154
+ })).isRequired,
155
+ // `readonly` attribute doesn't work on a `<select/>`.
156
+ // https://github.com/catamphetamine/react-phone-number-input/issues/419#issuecomment-1764384480
157
+ // https://www.delftstack.com/howto/html/html-select-readonly/
158
+ // To work around that, if `readOnly: true` property is passed
159
+ // to this component, it behaves analogous to `disabled: true`.
160
+ disabled: u.bool,
161
+ readOnly: u.bool
162
+ };
163
+ var st = {
164
+ fontSize: "1px",
165
+ backgroundColor: "currentColor",
166
+ color: "inherit"
167
+ };
168
+ function xe(e) {
169
+ var n = e.value, r = e.options, t = e.className, o = e.iconComponent;
170
+ e.getIconAspectRatio;
171
+ var a = e.arrowComponent, i = a === void 0 ? ft : a, l = e.unicodeFlags, s = we(e, it), f = ae(function() {
172
+ return Ee(r, n);
173
+ }, [r, n]);
174
+ return /* @__PURE__ */ c.createElement("div", {
175
+ className: "PhoneInputCountry"
176
+ }, /* @__PURE__ */ c.createElement(Ne, V({}, s, {
177
+ value: n,
178
+ options: r,
179
+ className: k("PhoneInputCountrySelect", t)
180
+ })), f && (l && n ? /* @__PURE__ */ c.createElement("div", {
181
+ className: "PhoneInputCountryIconUnicode"
182
+ }, ot(n)) : /* @__PURE__ */ c.createElement(o, {
183
+ "aria-hidden": !0,
184
+ country: n,
185
+ label: f.label,
186
+ aspectRatio: l ? 1 : void 0
187
+ })), /* @__PURE__ */ c.createElement(i, null));
188
+ }
189
+ xe.propTypes = {
190
+ // Country flag component.
191
+ iconComponent: u.elementType,
192
+ // Select arrow component.
193
+ arrowComponent: u.elementType,
194
+ // Set to `true` to render Unicode flag icons instead of SVG images.
195
+ unicodeFlags: u.bool
196
+ };
197
+ function ft() {
198
+ return /* @__PURE__ */ c.createElement("div", {
199
+ className: "PhoneInputCountrySelectArrow"
200
+ });
201
+ }
202
+ function Ee(e, n) {
203
+ for (var r = ut(e), t; !(t = r()).done; ) {
204
+ var o = t.value;
205
+ if (!o.divider && pt(o.value, n))
206
+ return o;
207
+ }
208
+ }
209
+ function pt(e, n) {
210
+ return e == null ? n == null : e === n;
211
+ }
212
+ var yt = ["country", "countryName", "flags", "flagUrl"];
213
+ function te() {
214
+ return te = Object.assign ? Object.assign.bind() : function(e) {
215
+ for (var n = 1; n < arguments.length; n++) {
216
+ var r = arguments[n];
217
+ for (var t in r)
218
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
219
+ }
220
+ return e;
221
+ }, te.apply(this, arguments);
222
+ }
223
+ function dt(e, n) {
224
+ if (e == null) return {};
225
+ var r = mt(e, n), t, o;
226
+ if (Object.getOwnPropertySymbols) {
227
+ var a = Object.getOwnPropertySymbols(e);
228
+ for (o = 0; o < a.length; o++)
229
+ t = a[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
230
+ }
231
+ return r;
232
+ }
233
+ function mt(e, n) {
234
+ if (e == null) return {};
235
+ var r = {}, t = Object.keys(e), o, a;
236
+ for (a = 0; a < t.length; a++)
237
+ o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
238
+ return r;
239
+ }
240
+ function ie(e) {
241
+ var n = e.country, r = e.countryName, t = e.flags, o = e.flagUrl, a = dt(e, yt);
242
+ return t && t[n] ? t[n]({
243
+ title: r
244
+ }) : /* @__PURE__ */ c.createElement("img", te({}, a, {
245
+ alt: r,
246
+ role: r ? void 0 : "presentation",
247
+ src: o.replace("{XX}", n).replace("{xx}", n.toLowerCase())
248
+ }));
249
+ }
250
+ ie.propTypes = {
251
+ // The country to be selected by default.
252
+ // Two-letter country code ("ISO 3166-1 alpha-2").
253
+ country: u.string.isRequired,
254
+ // Will be HTML `title` attribute of the `<img/>`.
255
+ countryName: u.string.isRequired,
256
+ // Country flag icon components.
257
+ // By default flag icons are inserted as `<img/>`s
258
+ // with their `src` pointed to `country-flag-icons` gitlab pages website.
259
+ // There might be cases (e.g. an offline application)
260
+ // where having a large (3 megabyte) `<svg/>` flags
261
+ // bundle is more appropriate.
262
+ // `import flags from 'react-phone-number-input/flags'`.
263
+ flags: u.objectOf(u.elementType),
264
+ // A URL for a country flag icon.
265
+ // By default it points to `country-flag-icons` gitlab pages website.
266
+ flagUrl: u.string.isRequired
267
+ };
268
+ var vt = ["aspectRatio"], gt = ["title"], bt = ["title"];
269
+ function W() {
270
+ return W = Object.assign ? Object.assign.bind() : function(e) {
271
+ for (var n = 1; n < arguments.length; n++) {
272
+ var r = arguments[n];
273
+ for (var t in r)
274
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
275
+ }
276
+ return e;
277
+ }, W.apply(this, arguments);
278
+ }
279
+ function ue(e, n) {
280
+ if (e == null) return {};
281
+ var r = ht(e, n), t, o;
282
+ if (Object.getOwnPropertySymbols) {
283
+ var a = Object.getOwnPropertySymbols(e);
284
+ for (o = 0; o < a.length; o++)
285
+ t = a[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
286
+ }
287
+ return r;
288
+ }
289
+ function ht(e, n) {
290
+ if (e == null) return {};
291
+ var r = {}, t = Object.keys(e), o, a;
292
+ for (a = 0; a < t.length; a++)
293
+ o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
294
+ return r;
295
+ }
296
+ function X(e) {
297
+ var n = e.aspectRatio, r = ue(e, vt);
298
+ return n === 1 ? /* @__PURE__ */ c.createElement(Fe, r) : /* @__PURE__ */ c.createElement(Ae, r);
299
+ }
300
+ X.propTypes = {
301
+ title: u.string.isRequired,
302
+ aspectRatio: u.number
303
+ };
304
+ function Ae(e) {
305
+ var n = e.title, r = ue(e, gt);
306
+ return /* @__PURE__ */ c.createElement("svg", W({}, r, {
307
+ xmlns: "http://www.w3.org/2000/svg",
308
+ viewBox: "0 0 75 50"
309
+ }), /* @__PURE__ */ c.createElement("title", null, n), /* @__PURE__ */ c.createElement("g", {
310
+ className: "PhoneInputInternationalIconGlobe",
311
+ stroke: "currentColor",
312
+ fill: "none",
313
+ strokeWidth: "2",
314
+ strokeMiterlimit: "10"
315
+ }, /* @__PURE__ */ c.createElement("path", {
316
+ strokeLinecap: "round",
317
+ d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
318
+ }), /* @__PURE__ */ c.createElement("path", {
319
+ d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
320
+ }), /* @__PURE__ */ c.createElement("line", {
321
+ x1: "26",
322
+ y1: "25",
323
+ x2: "74",
324
+ y2: "25"
325
+ }), /* @__PURE__ */ c.createElement("line", {
326
+ x1: "50",
327
+ y1: "1",
328
+ x2: "50",
329
+ y2: "49"
330
+ }), /* @__PURE__ */ c.createElement("path", {
331
+ strokeLinecap: "round",
332
+ d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
333
+ }), /* @__PURE__ */ c.createElement("path", {
334
+ strokeLinecap: "round",
335
+ d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
336
+ })), /* @__PURE__ */ c.createElement("path", {
337
+ className: "PhoneInputInternationalIconPhone",
338
+ stroke: "none",
339
+ fill: "currentColor",
340
+ d: "M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"
341
+ }));
342
+ }
343
+ Ae.propTypes = {
344
+ title: u.string.isRequired
345
+ };
346
+ function Fe(e) {
347
+ var n = e.title, r = ue(e, bt);
348
+ return /* @__PURE__ */ c.createElement("svg", W({}, r, {
349
+ xmlns: "http://www.w3.org/2000/svg",
350
+ viewBox: "0 0 50 50"
351
+ }), /* @__PURE__ */ c.createElement("title", null, n), /* @__PURE__ */ c.createElement("g", {
352
+ className: "PhoneInputInternationalIconGlobe",
353
+ stroke: "currentColor",
354
+ fill: "none",
355
+ strokeWidth: "2",
356
+ strokeLinecap: "round"
357
+ }, /* @__PURE__ */ c.createElement("path", {
358
+ d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
359
+ }), /* @__PURE__ */ c.createElement("path", {
360
+ d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
361
+ }), /* @__PURE__ */ c.createElement("path", {
362
+ d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
363
+ }), /* @__PURE__ */ c.createElement("path", {
364
+ d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
365
+ }), /* @__PURE__ */ c.createElement("line", {
366
+ x1: "27.8",
367
+ y1: "0.85",
368
+ x2: "27.8",
369
+ y2: "34.61"
370
+ }), /* @__PURE__ */ c.createElement("line", {
371
+ x1: "15.2",
372
+ y1: "22.23",
373
+ x2: "49.15",
374
+ y2: "22.23"
375
+ })), /* @__PURE__ */ c.createElement("path", {
376
+ className: "PhoneInputInternationalIconPhone",
377
+ stroke: "transparent",
378
+ fill: "currentColor",
379
+ d: "M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"
380
+ }));
381
+ }
382
+ Fe.propTypes = {
383
+ title: u.string.isRequired
384
+ };
385
+ function Ct(e, n) {
386
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
387
+ if (r) return (r = r.call(e)).next.bind(r);
388
+ if (Array.isArray(e) || (r = Ot(e)) || n) {
389
+ r && (e = r);
390
+ var t = 0;
391
+ return function() {
392
+ return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
393
+ };
394
+ }
395
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
396
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
397
+ }
398
+ function Ot(e, n) {
399
+ if (e) {
400
+ if (typeof e == "string") return ye(e, n);
401
+ var r = Object.prototype.toString.call(e).slice(8, -1);
402
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
403
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return ye(e, n);
404
+ }
405
+ }
406
+ function ye(e, n) {
407
+ (n == null || n > e.length) && (n = e.length);
408
+ for (var r = 0, t = new Array(n); r < n; r++) t[r] = e[r];
409
+ return t;
410
+ }
411
+ function St(e, n) {
412
+ if (!n)
413
+ return e;
414
+ for (var r = [], t = [], o = r, a = function() {
415
+ var f = l.value;
416
+ if (f === "|")
417
+ o.push({
418
+ divider: !0
419
+ });
420
+ else if (f === "..." || f === "…")
421
+ o = t;
422
+ else {
423
+ var m;
424
+ f === "🌐" ? m = void 0 : m = f;
425
+ var v = e.indexOf(e.filter(function(b) {
426
+ return b.value === m;
427
+ })[0]), d = e[v];
428
+ e.splice(v, 1), o.push(d);
429
+ }
430
+ }, i = Ct(n), l; !(l = i()).done; )
431
+ a();
432
+ return r.concat(e).concat(t);
433
+ }
434
+ function Pt(e, n) {
435
+ if (e && (e = e.filter(function(r) {
436
+ switch (r) {
437
+ case "🌐":
438
+ case "|":
439
+ case "...":
440
+ case "…":
441
+ return !0;
442
+ default:
443
+ return K(r, n);
444
+ }
445
+ }), e.length > 0))
446
+ return e;
447
+ }
448
+ function K(e, n) {
449
+ return He(e, n) ? !0 : (console.error("Country not found: ".concat(e)), !1);
450
+ }
451
+ function Re(e, n) {
452
+ return e && (e = e.filter(function(r) {
453
+ return K(r, n);
454
+ }), e.length === 0 && (e = void 0)), e;
455
+ }
456
+ var It = ["country", "label", "aspectRatio"];
457
+ function ne() {
458
+ return ne = Object.assign ? Object.assign.bind() : function(e) {
459
+ for (var n = 1; n < arguments.length; n++) {
460
+ var r = arguments[n];
461
+ for (var t in r)
462
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
463
+ }
464
+ return e;
465
+ }, ne.apply(this, arguments);
466
+ }
467
+ function jt(e, n) {
468
+ if (e == null) return {};
469
+ var r = wt(e, n), t, o;
470
+ if (Object.getOwnPropertySymbols) {
471
+ var a = Object.getOwnPropertySymbols(e);
472
+ for (o = 0; o < a.length; o++)
473
+ t = a[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
474
+ }
475
+ return r;
476
+ }
477
+ function wt(e, n) {
478
+ if (e == null) return {};
479
+ var r = {}, t = Object.keys(e), o, a;
480
+ for (a = 0; a < t.length; a++)
481
+ o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
482
+ return r;
483
+ }
484
+ function $e(e) {
485
+ var n = e.flags, r = e.flagUrl, t = e.flagComponent, o = e.internationalIcon;
486
+ function a(i) {
487
+ var l = i.country, s = i.label, f = i.aspectRatio, m = jt(i, It), v = o === X ? f : void 0;
488
+ return /* @__PURE__ */ c.createElement("div", ne({}, m, {
489
+ className: k("PhoneInputCountryIcon", {
490
+ "PhoneInputCountryIcon--square": v === 1,
491
+ "PhoneInputCountryIcon--border": l
492
+ })
493
+ }), l ? /* @__PURE__ */ c.createElement(t, {
494
+ country: l,
495
+ countryName: s,
496
+ flags: n,
497
+ flagUrl: r,
498
+ className: "PhoneInputCountryIconImg"
499
+ }) : /* @__PURE__ */ c.createElement(o, {
500
+ title: s,
501
+ aspectRatio: v,
502
+ className: "PhoneInputCountryIconImg"
503
+ }));
504
+ }
505
+ return a.propTypes = {
506
+ country: u.string,
507
+ label: u.string.isRequired,
508
+ aspectRatio: u.number
509
+ }, a;
510
+ }
511
+ $e({
512
+ // Must be equal to `defaultProps.flagUrl` in `./PhoneInputWithCountry.js`.
513
+ flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
514
+ flagComponent: ie,
515
+ internationalIcon: X
516
+ });
517
+ function Nt(e, n) {
518
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
519
+ if (r) return (r = r.call(e)).next.bind(r);
520
+ if (Array.isArray(e) || (r = xt(e)) || n) {
521
+ r && (e = r);
522
+ var t = 0;
523
+ return function() {
524
+ return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] };
525
+ };
526
+ }
527
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
528
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
529
+ }
530
+ function xt(e, n) {
531
+ if (e) {
532
+ if (typeof e == "string") return de(e, n);
533
+ var r = Object.prototype.toString.call(e).slice(8, -1);
534
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
535
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return de(e, n);
536
+ }
537
+ }
538
+ function de(e, n) {
539
+ (n == null || n > e.length) && (n = e.length);
540
+ for (var r = 0, t = new Array(n); r < n; r++) t[r] = e[r];
541
+ return t;
542
+ }
543
+ function Et(e, n) {
544
+ for (var r = Nt(e), t; !(t = r()).done; ) {
545
+ var o = t.value;
546
+ o && At(o, n);
547
+ }
548
+ }
549
+ function At(e, n) {
550
+ typeof e == "function" ? e(n) : e.current = n;
551
+ }
552
+ function Ft(e) {
553
+ var n = e.value, r = e.phoneNumber, t = e.defaultCountry, o = e.getAnyCountry, a = e.countries, i = e.required, l = e.metadata, s;
554
+ return r && r.country ? s = r.country : t && (!n || R(n, t, l)) && (s = t), a && a.indexOf(s) < 0 && (s = void 0), !s && i && a && a.length > 0 && (s = o()), s;
555
+ }
556
+ function Rt(e) {
557
+ var n = e.countries, r = e.countryNames, t = e.addInternationalOption, o = e.compareStringsLocales, a = e.compareStrings;
558
+ a || (a = Bt);
559
+ var i = n.map(function(l) {
560
+ return {
561
+ value: l,
562
+ // All `locale` country names included in this library
563
+ // include all countries (this is checked at build time).
564
+ // The only case when a country name might be missing
565
+ // is when a developer supplies their own `labels` property.
566
+ // To guard against such cases, a missing country name
567
+ // is substituted by country code.
568
+ label: r[l] || l
569
+ };
570
+ });
571
+ return i.sort(function(l, s) {
572
+ return a(l.label, s.label, o);
573
+ }), t && i.unshift({
574
+ label: r.ZZ
575
+ }), i;
576
+ }
577
+ function Te(e, n) {
578
+ return rt(e || "", n);
579
+ }
580
+ function $t(e) {
581
+ return e.formatNational().replace(/\D/g, "");
582
+ }
583
+ function Tt(e, n) {
584
+ var r = n.prevCountry, t = n.newCountry, o = n.metadata, a = n.useNationalFormat;
585
+ if (r === t)
586
+ return e;
587
+ if (!e)
588
+ return a ? "" : t ? N(t, o) : "";
589
+ if (t) {
590
+ if (e[0] === "+") {
591
+ if (a)
592
+ return e.indexOf("+" + Z(t, o)) === 0 ? qt(e, t, o) : "";
593
+ if (r) {
594
+ var i = N(t, o);
595
+ return e.indexOf(i) === 0 ? e : i;
596
+ } else {
597
+ var l = N(t, o);
598
+ return e.indexOf(l) === 0 ? e : l;
599
+ }
600
+ }
601
+ } else if (e[0] !== "+")
602
+ return F(e, r, o) || "";
603
+ return e;
604
+ }
605
+ function F(e, n, r) {
606
+ if (e) {
607
+ if (e[0] === "+") {
608
+ if (e === "+")
609
+ return;
610
+ var t = new z(n, r);
611
+ return t.input(e), t.getNumberValue();
612
+ }
613
+ if (n) {
614
+ var o = Le(e, n, r);
615
+ return "+".concat(Z(n, r)).concat(o || "");
616
+ }
617
+ }
618
+ }
619
+ function _t(e, n, r) {
620
+ var t = Le(e, n, r);
621
+ if (t) {
622
+ var o = t.length - Lt(n, r);
623
+ if (o > 0)
624
+ return e.slice(0, e.length - o);
625
+ }
626
+ return e;
627
+ }
628
+ function Lt(e, n) {
629
+ return n = new Oe(n), n.selectNumberingPlan(e), n.numberingPlan.possibleLengths()[n.numberingPlan.possibleLengths().length - 1];
630
+ }
631
+ function _e(e, n) {
632
+ var r = n.country, t = n.countries, o = n.defaultCountry, a = n.latestCountrySelectedByUser, i = n.required, l = n.metadata;
633
+ if (e === "+")
634
+ return r;
635
+ var s = Mt(e, l);
636
+ if (s)
637
+ return !t || t.indexOf(s) >= 0 ? s : void 0;
638
+ if (r) {
639
+ if (R(e, r, l)) {
640
+ if (a && R(e, a, l))
641
+ return a;
642
+ if (o && R(e, o, l))
643
+ return o;
644
+ if (!i)
645
+ return;
646
+ } else if (!i)
647
+ return;
648
+ }
649
+ return r;
650
+ }
651
+ function Ut(e, n) {
652
+ var r = n.prevPhoneDigits, t = n.country, o = n.defaultCountry, a = n.latestCountrySelectedByUser, i = n.countryRequired, l = n.getAnyCountry, s = n.countries, f = n.international, m = n.limitMaxLength, v = n.countryCallingCodeEditable, d = n.metadata;
653
+ if (f && v === !1 && t) {
654
+ var b = N(t, d);
655
+ if (e.indexOf(b) !== 0) {
656
+ var h, A = e && e[0] !== "+";
657
+ return A ? (e = b + e, h = F(e, t, d)) : e = b, {
658
+ phoneDigits: e,
659
+ value: h,
660
+ country: t
661
+ };
662
+ }
663
+ }
664
+ f === !1 && t && e && e[0] === "+" && (e = me(e, t, d)), e && t && m && (e = _t(e, t, d)), e && e[0] !== "+" && (!t || f) && (e = "+" + e), !e && r && r[0] === "+" && (f ? t = void 0 : t = o), e === "+" && r && r[0] === "+" && r.length > 1 && (t = void 0);
665
+ var p;
666
+ return e && (e[0] === "+" && (e === "+" || t && N(t, d).indexOf(e) === 0) ? p = void 0 : p = F(e, t, d)), p && (t = _e(p, {
667
+ country: t,
668
+ countries: s,
669
+ defaultCountry: o,
670
+ latestCountrySelectedByUser: a,
671
+ // `countryRequired` flag is not passed here.
672
+ // Instead, it's explicitly checked a bit later in the code.
673
+ required: !1,
674
+ metadata: d
675
+ }), f === !1 && t && e && e[0] === "+" && (e = me(e, t, d), p = F(e, t, d))), !t && i && (t = o || l()), {
676
+ // `phoneDigits` returned here are a "normalized" version of the original `phoneDigits`.
677
+ // The returned `phoneDigits` shouldn't be used anywhere except for passing it as
678
+ // `prevPhoneDigits` parameter to this same function on next input change event.
679
+ phoneDigits: e,
680
+ country: t,
681
+ value: p
682
+ };
683
+ }
684
+ function me(e, n, r) {
685
+ if (e.indexOf(N(n, r)) === 0) {
686
+ var t = new z(n, r);
687
+ t.input(e);
688
+ var o = t.getNumber();
689
+ return o ? o.formatNational().replace(/\D/g, "") : "";
690
+ } else
691
+ return e.replace(/\D/g, "");
692
+ }
693
+ function Mt(e, n) {
694
+ var r = new z(null, n);
695
+ return r.input(e), r.getCountry();
696
+ }
697
+ function Bt(e, n, r) {
698
+ return String.prototype.localeCompare ? e.localeCompare(n, r) : e < n ? -1 : e > n ? 1 : 0;
699
+ }
700
+ function qt(e, n, r) {
701
+ if (n) {
702
+ var t = "+" + Z(n, r);
703
+ if (e.length < t.length) {
704
+ if (t.indexOf(e) === 0)
705
+ return "";
706
+ } else if (e.indexOf(t) === 0)
707
+ return e.slice(t.length);
708
+ }
709
+ for (var o = 0, a = Object.keys(r.country_calling_codes); o < a.length; o++) {
710
+ var i = a[o];
711
+ if (e.indexOf(i) === 1)
712
+ return e.slice(1 + i.length);
713
+ }
714
+ return "";
715
+ }
716
+ function Le(e, n, r) {
717
+ var t = new z(n, r);
718
+ t.input(e);
719
+ var o = t.getNumber();
720
+ return o && o.nationalNumber;
721
+ }
722
+ function R(e, n, r) {
723
+ for (var t = N(n, r), o = 0; o < e.length && o < t.length; ) {
724
+ if (e[o] !== t[o])
725
+ return !1;
726
+ o++;
727
+ }
728
+ return !0;
729
+ }
730
+ function Ue(e) {
731
+ var n = e.value, r = e.phoneNumber, t = e.defaultCountry, o = e.international, a = e.useNationalFormat, i = e.metadata;
732
+ return (o === !1 || a) && r && r.country ? $t(r) : !n && o && t ? N(t, i) : n;
733
+ }
734
+ function M(e) {
735
+ "@babel/helpers - typeof";
736
+ return M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
737
+ return typeof n;
738
+ } : function(n) {
739
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
740
+ }, M(e);
741
+ }
742
+ function ve(e, n) {
743
+ var r = Object.keys(e);
744
+ if (Object.getOwnPropertySymbols) {
745
+ var t = Object.getOwnPropertySymbols(e);
746
+ n && (t = t.filter(function(o) {
747
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
748
+ })), r.push.apply(r, t);
749
+ }
750
+ return r;
751
+ }
752
+ function q(e) {
753
+ for (var n = 1; n < arguments.length; n++) {
754
+ var r = arguments[n] != null ? arguments[n] : {};
755
+ n % 2 ? ve(Object(r), !0).forEach(function(t) {
756
+ kt(e, t, r[t]);
757
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ve(Object(r)).forEach(function(t) {
758
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
759
+ });
760
+ }
761
+ return e;
762
+ }
763
+ function kt(e, n, r) {
764
+ return n = Vt(n), n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
765
+ }
766
+ function Vt(e) {
767
+ var n = Wt(e, "string");
768
+ return M(n) == "symbol" ? n : n + "";
769
+ }
770
+ function Wt(e, n) {
771
+ if (M(e) != "object" || !e) return e;
772
+ var r = e[Symbol.toPrimitive];
773
+ if (r !== void 0) {
774
+ var t = r.call(e, n);
775
+ if (M(t) != "object") return t;
776
+ throw new TypeError("@@toPrimitive must return a primitive value.");
777
+ }
778
+ return (n === "string" ? String : Number)(e);
779
+ }
780
+ function Dt(e, n, r) {
781
+ var t = e.metadata, o = e.countries, a = e.defaultCountry, i = e.value, l = e.reset, s = e.international, f = e.displayInitialValueAsLocalNumber, m = e.initialValueFormat, v = n.defaultCountry, d = n.value, b = n.reset;
782
+ r.country;
783
+ var h = r.value, A = r.hasUserSelectedACountry, p = r.latestCountrySelectedByUser, y = function(_) {
784
+ return Ue(q(q({}, _), {}, {
785
+ international: s,
786
+ useNationalFormat: f || m === "national",
787
+ metadata: t
788
+ }));
789
+ };
790
+ if (l !== b)
791
+ return {
792
+ phoneDigits: y({
793
+ value: void 0,
794
+ defaultCountry: a
795
+ }),
796
+ value: void 0,
797
+ country: a,
798
+ latestCountrySelectedByUser: void 0,
799
+ hasUserSelectedACountry: void 0
800
+ };
801
+ if (a !== v) {
802
+ var O = !a || K(a, t), S = (
803
+ // By default, "no value has been entered" means `value` is `undefined`.
804
+ !h || // When `international` is `true`, and some country has been pre-selected,
805
+ // then the `<input/>` contains a pre-filled value of `+${countryCallingCode}${leadingDigits}`,
806
+ // so in case of `international` being `true`, "the user hasn't entered anything" situation
807
+ // doesn't just mean `value` is `undefined`, but could also mean `value` is `+${countryCallingCode}`.
808
+ s && h === y({
809
+ value: void 0,
810
+ defaultCountry: v
811
+ })
812
+ ), x = !i && S;
813
+ if (!A && O && x)
814
+ return {
815
+ country: a,
816
+ // If `phoneDigits` is empty, then automatically select the new `country`
817
+ // and set `phoneDigits` to `+{getCountryCallingCode(newCountry)}`.
818
+ // The code assumes that "no phone number has been entered by the user",
819
+ // and no `value` property has been passed, so the `phoneNumber` parameter
820
+ // of `_getInitialPhoneDigits({ value, phoneNumber, ... })` is `undefined`.
821
+ phoneDigits: y({
822
+ value: void 0,
823
+ defaultCountry: a
824
+ }),
825
+ // `value` is `undefined` and it stays so.
826
+ value: void 0
827
+ };
828
+ }
829
+ if (!ge(i, d) && !ge(i, h)) {
830
+ var C, g;
831
+ if (i) {
832
+ i && Se(i), C = Te(i, t);
833
+ var j = Re(o, t);
834
+ C && C.country ? (!j || j.indexOf(C.country) >= 0) && (g = C.country) : (g = _e(i, {
835
+ country: void 0,
836
+ countries: j,
837
+ metadata: t
838
+ }), g || a && i.indexOf(N(a, t)) === 0 && (g = a));
839
+ }
840
+ var w;
841
+ if (i) {
842
+ if (p) {
843
+ var P = g ? p === g : R(i, p, t);
844
+ P ? g || (g = p) : w = {
845
+ latestCountrySelectedByUser: void 0
846
+ };
847
+ }
848
+ } else
849
+ w = {
850
+ latestCountrySelectedByUser: void 0,
851
+ hasUserSelectedACountry: void 0
852
+ };
853
+ return q(q({}, w), {}, {
854
+ phoneDigits: y({
855
+ phoneNumber: C,
856
+ value: i,
857
+ defaultCountry: a
858
+ }),
859
+ value: i,
860
+ country: i ? g : a
861
+ });
862
+ }
863
+ }
864
+ function ge(e, n) {
865
+ return e === null && (e = void 0), n === null && (n = void 0), e === n;
866
+ }
867
+ var Zt = ["name", "disabled", "readOnly", "autoComplete", "style", "className", "inputRef", "inputComponent", "numberInputProps", "smartCaret", "countrySelectComponent", "countrySelectProps", "containerComponent", "containerComponentProps", "defaultCountry", "countries", "countryOptionsOrder", "labels", "flags", "flagComponent", "flagUrl", "addInternationalOption", "internationalIcon", "displayInitialValueAsLocalNumber", "initialValueFormat", "onCountryChange", "limitMaxLength", "countryCallingCodeEditable", "focusInputOnCountrySelection", "reset", "metadata", "international", "locales"];
868
+ function T(e) {
869
+ "@babel/helpers - typeof";
870
+ return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
871
+ return typeof n;
872
+ } : function(n) {
873
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
874
+ }, T(e);
875
+ }
876
+ function be(e, n) {
877
+ var r = Object.keys(e);
878
+ if (Object.getOwnPropertySymbols) {
879
+ var t = Object.getOwnPropertySymbols(e);
880
+ n && (t = t.filter(function(o) {
881
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
882
+ })), r.push.apply(r, t);
883
+ }
884
+ return r;
885
+ }
886
+ function Me(e) {
887
+ for (var n = 1; n < arguments.length; n++) {
888
+ var r = arguments[n] != null ? arguments[n] : {};
889
+ n % 2 ? be(Object(r), !0).forEach(function(t) {
890
+ I(e, t, r[t]);
891
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : be(Object(r)).forEach(function(t) {
892
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
893
+ });
894
+ }
895
+ return e;
896
+ }
897
+ function $() {
898
+ return $ = Object.assign ? Object.assign.bind() : function(e) {
899
+ for (var n = 1; n < arguments.length; n++) {
900
+ var r = arguments[n];
901
+ for (var t in r)
902
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
903
+ }
904
+ return e;
905
+ }, $.apply(this, arguments);
906
+ }
907
+ function zt(e, n) {
908
+ if (e == null) return {};
909
+ var r = Xt(e, n), t, o;
910
+ if (Object.getOwnPropertySymbols) {
911
+ var a = Object.getOwnPropertySymbols(e);
912
+ for (o = 0; o < a.length; o++)
913
+ t = a[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
914
+ }
915
+ return r;
916
+ }
917
+ function Xt(e, n) {
918
+ if (e == null) return {};
919
+ var r = {}, t = Object.keys(e), o, a;
920
+ for (a = 0; a < t.length; a++)
921
+ o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
922
+ return r;
923
+ }
924
+ function Kt(e, n) {
925
+ if (!(e instanceof n))
926
+ throw new TypeError("Cannot call a class as a function");
927
+ }
928
+ function he(e, n) {
929
+ for (var r = 0; r < n.length; r++) {
930
+ var t = n[r];
931
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, qe(t.key), t);
932
+ }
933
+ }
934
+ function Gt(e, n, r) {
935
+ return n && he(e.prototype, n), r && he(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
936
+ }
937
+ function Ht(e, n, r) {
938
+ return n = D(n), Yt(e, Be() ? Reflect.construct(n, r || [], D(e).constructor) : n.apply(e, r));
939
+ }
940
+ function Yt(e, n) {
941
+ if (n && (T(n) === "object" || typeof n == "function"))
942
+ return n;
943
+ if (n !== void 0)
944
+ throw new TypeError("Derived constructors may only return object or undefined");
945
+ return Jt(e);
946
+ }
947
+ function Jt(e) {
948
+ if (e === void 0)
949
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
950
+ return e;
951
+ }
952
+ function Be() {
953
+ try {
954
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
955
+ }));
956
+ } catch {
957
+ }
958
+ return (Be = function() {
959
+ return !!e;
960
+ })();
961
+ }
962
+ function D(e) {
963
+ return D = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
964
+ return r.__proto__ || Object.getPrototypeOf(r);
965
+ }, D(e);
966
+ }
967
+ function Qt(e, n) {
968
+ if (typeof n != "function" && n !== null)
969
+ throw new TypeError("Super expression must either be null or a function");
970
+ e.prototype = Object.create(n && n.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), n && re(e, n);
971
+ }
972
+ function re(e, n) {
973
+ return re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, o) {
974
+ return t.__proto__ = o, t;
975
+ }, re(e, n);
976
+ }
977
+ function I(e, n, r) {
978
+ return n = qe(n), n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
979
+ }
980
+ function qe(e) {
981
+ var n = en(e, "string");
982
+ return T(n) == "symbol" ? n : n + "";
983
+ }
984
+ function en(e, n) {
985
+ if (T(e) != "object" || !e) return e;
986
+ var r = e[Symbol.toPrimitive];
987
+ if (r !== void 0) {
988
+ var t = r.call(e, n);
989
+ if (T(t) != "object") return t;
990
+ throw new TypeError("@@toPrimitive must return a primitive value.");
991
+ }
992
+ return (n === "string" ? String : Number)(e);
993
+ }
994
+ var tn = /* @__PURE__ */ (function(e) {
995
+ function n(r) {
996
+ var t;
997
+ Kt(this, n), t = Ht(this, n, [r]), I(t, "setInputRef", function(p) {
998
+ Et([t.props.inputRef, t.inputRef], p);
999
+ }), I(t, "isCountrySupportedWithError", function(p) {
1000
+ var y = t.props.metadata;
1001
+ return K(p, y);
1002
+ }), I(t, "onCountryChange", function(p) {
1003
+ var y = t.props, O = y.international, S = y.metadata, x = y.onChange, C = y.focusInputOnCountrySelection, g = t.state, j = g.phoneDigits, w = g.country, P = Tt(j, {
1004
+ prevCountry: w,
1005
+ newCountry: p,
1006
+ metadata: S,
1007
+ // Convert the phone number to "national" format
1008
+ // when the user changes the selected country by hand.
1009
+ useNationalFormat: !O
1010
+ }), E = F(P, p, S);
1011
+ C && t.inputRef.current.focus(), t.setState({
1012
+ country: p,
1013
+ latestCountrySelectedByUser: p,
1014
+ hasUserSelectedACountry: !0,
1015
+ phoneDigits: P,
1016
+ value: E
1017
+ }, function() {
1018
+ x(E);
1019
+ });
1020
+ }), I(t, "onChange", function(p) {
1021
+ var y = t.props, O = y.defaultCountry, S = y.onChange, x = y.addInternationalOption, C = y.international, g = y.limitMaxLength, j = y.countryCallingCodeEditable, w = y.metadata, P = t.state, E = P.countries, _ = P.phoneDigits, De = P.country, G = P.latestCountrySelectedByUser, H = Ut(p, {
1022
+ prevPhoneDigits: _,
1023
+ country: De,
1024
+ countryRequired: !x,
1025
+ defaultCountry: O,
1026
+ latestCountrySelectedByUser: G,
1027
+ getAnyCountry: function() {
1028
+ return t.getFirstSupportedCountry({
1029
+ countries: E
1030
+ });
1031
+ },
1032
+ countries: E,
1033
+ international: C,
1034
+ limitMaxLength: g,
1035
+ countryCallingCodeEditable: j,
1036
+ metadata: w
1037
+ }), le = H.phoneDigits, Ze = H.country, L = H.value, Y = {
1038
+ phoneDigits: le,
1039
+ value: L,
1040
+ country: Ze
1041
+ };
1042
+ G && L && !R(L, G, w) && (Y.latestCountrySelectedByUser = void 0), j === !1 && !L && le === t.state.phoneDigits && (Y.forceRerender = {}), t.setState(
1043
+ Y,
1044
+ // Update the new `value` property.
1045
+ // Doing it after the `state` has been updated
1046
+ // because `onChange()` will trigger `getDerivedStateFromProps()`
1047
+ // with the new `value` which will be compared to `state.value` there.
1048
+ function() {
1049
+ return S(L);
1050
+ }
1051
+ );
1052
+ }), I(t, "_onFocus", function() {
1053
+ return t.setState({
1054
+ isFocused: !0
1055
+ });
1056
+ }), I(t, "_onBlur", function() {
1057
+ return t.setState({
1058
+ isFocused: !1
1059
+ });
1060
+ }), I(t, "onFocus", function(p) {
1061
+ t._onFocus();
1062
+ var y = t.props.onFocus;
1063
+ y && y(p);
1064
+ }), I(t, "onBlur", function(p) {
1065
+ var y = t.props.onBlur;
1066
+ t._onBlur(), y && y(p);
1067
+ }), I(t, "onCountryFocus", function(p) {
1068
+ t._onFocus();
1069
+ var y = t.props.countrySelectProps;
1070
+ if (y) {
1071
+ var O = y.onFocus;
1072
+ O && O(p);
1073
+ }
1074
+ }), I(t, "onCountryBlur", function(p) {
1075
+ t._onBlur();
1076
+ var y = t.props.countrySelectProps;
1077
+ if (y) {
1078
+ var O = y.onBlur;
1079
+ O && O(p);
1080
+ }
1081
+ }), t.inputRef = /* @__PURE__ */ c.createRef();
1082
+ var o = t.props, a = o.value;
1083
+ o.labels;
1084
+ var i = o.international, l = o.addInternationalOption, s = o.displayInitialValueAsLocalNumber, f = o.initialValueFormat, m = o.metadata, v = t.props, d = v.defaultCountry, b = v.countries;
1085
+ d && (t.isCountrySupportedWithError(d) || (d = void 0)), a && Se(a), b = Re(b, m);
1086
+ var h = Te(a, m);
1087
+ t.CountryIcon = $e(t.props);
1088
+ var A = Ft({
1089
+ value: a,
1090
+ phoneNumber: h,
1091
+ defaultCountry: d,
1092
+ required: !l,
1093
+ countries: b || ee(m),
1094
+ getAnyCountry: function() {
1095
+ return t.getFirstSupportedCountry({
1096
+ countries: b
1097
+ });
1098
+ },
1099
+ metadata: m
1100
+ });
1101
+ return t.state = {
1102
+ // Workaround for `this.props` inside `getDerivedStateFromProps()`.
1103
+ props: t.props,
1104
+ // The country selected.
1105
+ country: A,
1106
+ // `countries` are stored in `this.state` because they're filtered.
1107
+ // For example, a developer might theoretically pass some unsupported
1108
+ // countries as part of the `countries` property, and because of that
1109
+ // the component uses `this.state.countries` (which are filtered)
1110
+ // instead of `this.props.countries`
1111
+ // (which could potentially contain unsupported countries).
1112
+ countries: b,
1113
+ // `phoneDigits` state property holds non-formatted user's input.
1114
+ // The reason is that there's no way of finding out
1115
+ // in which form should `value` be displayed: international or national.
1116
+ // E.g. if `value` is `+78005553535` then it could be input
1117
+ // by a user both as `8 (800) 555-35-35` and `+7 800 555 35 35`.
1118
+ // Hence storing just `value` is not sufficient for correct formatting.
1119
+ // E.g. if a user entered `8 (800) 555-35-35`
1120
+ // then value is `+78005553535` and `phoneDigits` are `88005553535`
1121
+ // and if a user entered `+7 800 555 35 35`
1122
+ // then value is `+78005553535` and `phoneDigits` are `+78005553535`.
1123
+ phoneDigits: Ue({
1124
+ value: a,
1125
+ phoneNumber: h,
1126
+ defaultCountry: d,
1127
+ international: i,
1128
+ useNationalFormat: s || f === "national",
1129
+ metadata: m
1130
+ }),
1131
+ // `value` property is duplicated in state.
1132
+ // The reason is that `getDerivedStateFromProps()`
1133
+ // needs this `value` to compare to the new `value` property
1134
+ // to find out if `phoneDigits` needs updating:
1135
+ // If the `value` property was changed externally
1136
+ // then it won't be equal to `state.value`
1137
+ // in which case `phoneDigits` and `country` should be updated.
1138
+ value: a
1139
+ }, t;
1140
+ }
1141
+ return Qt(n, e), Gt(n, [{
1142
+ key: "componentDidMount",
1143
+ value: function() {
1144
+ var t = this.props.onCountryChange, o = this.props.defaultCountry, a = this.state.country;
1145
+ t && (o && (this.isCountrySupportedWithError(o) || (o = void 0)), a !== o && t(a));
1146
+ }
1147
+ }, {
1148
+ key: "componentDidUpdate",
1149
+ value: function(t, o) {
1150
+ var a = this.props.onCountryChange, i = this.state.country;
1151
+ a && i !== o.country && a(i);
1152
+ }
1153
+ }, {
1154
+ key: "getCountrySelectOptions",
1155
+ value: function(t) {
1156
+ var o = t.countries, a = this.props, i = a.international, l = a.countryCallingCodeEditable, s = a.countryOptionsOrder, f = a.addInternationalOption, m = a.labels, v = a.locales, d = a.metadata;
1157
+ return this.useMemoCountrySelectOptions(function() {
1158
+ return St(Rt({
1159
+ countries: o || ee(d),
1160
+ countryNames: m,
1161
+ addInternationalOption: i && l === !1 ? !1 : f,
1162
+ compareStringsLocales: v
1163
+ // compareStrings
1164
+ }), Pt(s, d));
1165
+ }, [o, s, f, m, d]);
1166
+ }
1167
+ }, {
1168
+ key: "useMemoCountrySelectOptions",
1169
+ value: function(t, o) {
1170
+ return (!this.countrySelectOptionsMemoDependencies || !rn(o, this.countrySelectOptionsMemoDependencies)) && (this.countrySelectOptionsMemo = t(), this.countrySelectOptionsMemoDependencies = o), this.countrySelectOptionsMemo;
1171
+ }
1172
+ }, {
1173
+ key: "getFirstSupportedCountry",
1174
+ value: function(t) {
1175
+ var o = t.countries, a = this.getCountrySelectOptions({
1176
+ countries: o
1177
+ });
1178
+ return a[0].value;
1179
+ }
1180
+ }, {
1181
+ key: "render",
1182
+ value: function() {
1183
+ var t = this.props, o = t.name, a = t.disabled, i = t.readOnly, l = t.autoComplete, s = t.style, f = t.className;
1184
+ t.inputRef;
1185
+ var m = t.inputComponent, v = t.numberInputProps, d = t.smartCaret, b = t.countrySelectComponent, h = t.countrySelectProps, A = t.containerComponent, p = t.containerComponentProps;
1186
+ t.defaultCountry, t.countries, t.countryOptionsOrder;
1187
+ var y = t.labels;
1188
+ t.flags, t.flagComponent, t.flagUrl, t.addInternationalOption, t.internationalIcon, t.displayInitialValueAsLocalNumber, t.initialValueFormat, t.onCountryChange, t.limitMaxLength, t.countryCallingCodeEditable, t.focusInputOnCountrySelection, t.reset;
1189
+ var O = t.metadata, S = t.international;
1190
+ t.locales;
1191
+ var x = zt(t, Zt), C = this.state, g = C.country, j = C.countries, w = C.phoneDigits, P = C.isFocused, E = d ? Ye : Je, _ = this.getCountrySelectOptions({
1192
+ countries: j
1193
+ });
1194
+ return /* @__PURE__ */ c.createElement(A, $({
1195
+ style: s,
1196
+ className: k(f, "PhoneInput", {
1197
+ "PhoneInput--focus": P,
1198
+ "PhoneInput--disabled": a,
1199
+ "PhoneInput--readOnly": i
1200
+ })
1201
+ }, p), /* @__PURE__ */ c.createElement(b, $({
1202
+ name: o ? "".concat(o, "Country") : void 0,
1203
+ "aria-label": y.country
1204
+ }, h, {
1205
+ value: g,
1206
+ options: _,
1207
+ onChange: this.onCountryChange,
1208
+ onFocus: this.onCountryFocus,
1209
+ onBlur: this.onCountryBlur,
1210
+ disabled: a || h && h.disabled,
1211
+ readOnly: i || h && h.readOnly,
1212
+ iconComponent: this.CountryIcon
1213
+ })), /* @__PURE__ */ c.createElement(E, $({
1214
+ ref: this.setInputRef,
1215
+ type: "tel",
1216
+ autoComplete: l
1217
+ }, v, x, {
1218
+ inputFormat: S === !0 ? "INTERNATIONAL" : S === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
1219
+ international: S ? !0 : void 0,
1220
+ withCountryCallingCode: S ? !0 : void 0,
1221
+ name: o,
1222
+ metadata: O,
1223
+ country: g,
1224
+ value: w || "",
1225
+ onChange: this.onChange,
1226
+ onFocus: this.onFocus,
1227
+ onBlur: this.onBlur,
1228
+ disabled: a,
1229
+ readOnly: i,
1230
+ inputComponent: m,
1231
+ className: k("PhoneInputInput", v && v.className, x.className)
1232
+ })));
1233
+ }
1234
+ }], [{
1235
+ key: "getDerivedStateFromProps",
1236
+ value: (
1237
+ // `state` holds previous props as `props`, and also:
1238
+ // * `country` — The currently selected country, e.g. `"RU"`.
1239
+ // * `value` — The currently entered phone number (E.164), e.g. `+78005553535`.
1240
+ // * `phoneDigits` — The parsed `<input/>` value, e.g. `8005553535`.
1241
+ // (and a couple of other less significant properties)
1242
+ function(t, o) {
1243
+ return Me({
1244
+ // Emulate `prevProps` via `state.props`.
1245
+ props: t
1246
+ }, Dt(t, o.props, o));
1247
+ }
1248
+ )
1249
+ }]);
1250
+ })(c.PureComponent), ke = /* @__PURE__ */ c.forwardRef(function(e, n) {
1251
+ return /* @__PURE__ */ c.createElement(tn, $({}, nn(e), {
1252
+ inputRef: n
1253
+ }));
1254
+ });
1255
+ ke.propTypes = {
1256
+ /**
1257
+ * Phone number in `E.164` format.
1258
+ *
1259
+ * Example:
1260
+ *
1261
+ * `"+12223333333"`
1262
+ *
1263
+ * Any "falsy" value like `undefined`, `null` or an empty string `""` is treated like "empty".
1264
+ */
1265
+ value: u.string,
1266
+ /**
1267
+ * A function of `value: string?`.
1268
+ *
1269
+ * Updates the `value` property as the user inputs a phone number.
1270
+ *
1271
+ * If the user erases the input value, the argument is `undefined`.
1272
+ */
1273
+ onChange: u.func.isRequired,
1274
+ /**
1275
+ * Toggles the `--focus` CSS class.
1276
+ * @ignore
1277
+ */
1278
+ onFocus: u.func,
1279
+ /**
1280
+ * `onBlur` is usually passed by `redux-form`.
1281
+ * @ignore
1282
+ */
1283
+ onBlur: u.func,
1284
+ /**
1285
+ * Set to `true` to mark both the phone number `<input/>`
1286
+ * and the country `<select/>` as `disabled`.
1287
+ */
1288
+ disabled: u.bool,
1289
+ /**
1290
+ * Set to `true` to mark both the phone number `<input/>`
1291
+ * and the country `<select/>` as `readonly`.
1292
+ */
1293
+ readOnly: u.bool,
1294
+ /**
1295
+ * Sets `autoComplete` property for phone number `<input/>`.
1296
+ *
1297
+ * Web browser's "autocomplete" feature
1298
+ * remembers the phone number being input
1299
+ * and can also autofill the `<input/>`
1300
+ * with previously remembered phone numbers.
1301
+ *
1302
+ * https://developers.google.com
1303
+ * /web/updates/2015/06/checkout-faster-with-autofill
1304
+ *
1305
+ * For example, can be used to turn it off:
1306
+ *
1307
+ * "So when should you use `autocomplete="off"`?
1308
+ * One example is when you've implemented your own version
1309
+ * of autocomplete for search. Another example is any form field
1310
+ * where users will input and submit different kinds of information
1311
+ * where it would not be useful to have the browser remember
1312
+ * what was submitted previously".
1313
+ */
1314
+ // (is `"tel"` by default)
1315
+ autoComplete: u.string,
1316
+ /**
1317
+ * Set to `"national"` to show the initial `value` in
1318
+ * "national" format rather than "international".
1319
+ *
1320
+ * For example, if `initialValueFormat` is `"national"`
1321
+ * and the initial `value="+12133734253"` is passed
1322
+ * then the `<input/>` value will be `"(213) 373-4253"`.
1323
+ *
1324
+ * By default, `initialValueFormat` is `undefined`,
1325
+ * meaning that if the initial `value="+12133734253"` is passed
1326
+ * then the `<input/>` value will be `"+1 213 373 4253"`.
1327
+ *
1328
+ * The reason for such default behaviour is that
1329
+ * the newer generation grows up when there are no stationary phones
1330
+ * and therefore everyone inputs phone numbers in international format
1331
+ * in their smartphones so people gradually get more accustomed to
1332
+ * writing phone numbers in international format rather than in local format.
1333
+ * Future people won't be using "national" format, only "international".
1334
+ */
1335
+ // (is `undefined` by default)
1336
+ initialValueFormat: u.oneOf(["national"]),
1337
+ // `displayInitialValueAsLocalNumber` property has been
1338
+ // superceded by `initialValueFormat` property.
1339
+ displayInitialValueAsLocalNumber: u.bool,
1340
+ /**
1341
+ * The country to be selected by default.
1342
+ * For example, can be set after a GeoIP lookup.
1343
+ *
1344
+ * Example: `"US"`.
1345
+ */
1346
+ // A two-letter country code ("ISO 3166-1 alpha-2").
1347
+ defaultCountry: u.string,
1348
+ /**
1349
+ * If specified, only these countries will be available for selection.
1350
+ *
1351
+ * Example:
1352
+ *
1353
+ * `["RU", "UA", "KZ"]`
1354
+ */
1355
+ countries: u.arrayOf(u.string),
1356
+ /**
1357
+ * Custom country `<select/>` option names.
1358
+ * Also some labels like "ext" and country `<select/>` `aria-label`.
1359
+ *
1360
+ * Example:
1361
+ *
1362
+ * `{ "ZZ": "Международный", RU: "Россия", US: "США", ... }`
1363
+ *
1364
+ * See the `locales` directory for examples.
1365
+ */
1366
+ labels: Ie,
1367
+ /**
1368
+ * Country `<select/>` options are sorted by their labels.
1369
+ * The default sorting function uses `a.localeCompare(b, locales)`,
1370
+ * and, if that's not available, falls back to simple `a > b` / `a < b`.
1371
+ * Some languages, like Chinese, support multiple sorting variants
1372
+ * (called "collations"), and the user might prefer one or another.
1373
+ * Also, sometimes the Operating System language is not always
1374
+ * the preferred language for a person using a website or an application,
1375
+ * so there should be a way to specify custom locale.
1376
+ * This `locales` property mimicks the `locales` argument of `Intl` constructors,
1377
+ * and can be either a Unicode BCP 47 locale identifier or an array of such locale identifiers.
1378
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
1379
+ */
1380
+ locales: u.oneOfType([u.string, u.arrayOf(u.string)]),
1381
+ /*
1382
+ * Custom country `<select/>` options sorting function.
1383
+ * The default one uses `a.localeCompare(b)`, and,
1384
+ * if that's not available, falls back to simple `a > b`/`a < b`.
1385
+ * There have been requests to add custom sorter for cases
1386
+ * like Chinese language and "pinyin" (non-default) sorting order.
1387
+ * https://stackoverflow.com/questions/22907288/chinese-sorting-by-pinyin-in-javascript-with-localecompare
1388
+ compareStrings: PropTypes.func,
1389
+ */
1390
+ /**
1391
+ * A URL template of a country flag, where
1392
+ * "{XX}" is a two-letter country code in upper case,
1393
+ * or where "{xx}" is a two-letter country code in lower case.
1394
+ * By default it points to `country-flag-icons` gitlab pages website.
1395
+ * I imagine someone might want to download those country flag icons
1396
+ * and host them on their own servers instead
1397
+ * (all flags are available in the `country-flag-icons` library).
1398
+ * There's a catch though: new countries may be added in future,
1399
+ * so when hosting country flag icons on your own server
1400
+ * one should check the `CHANGELOG.md` every time before updating this library,
1401
+ * otherwise there's a possibility that some new country flag would be missing.
1402
+ */
1403
+ flagUrl: u.string,
1404
+ /**
1405
+ * Custom country flag icon components.
1406
+ * These flags will be used instead of the default ones.
1407
+ * The the "Flags" section of the readme for more info.
1408
+ *
1409
+ * The shape is an object where keys are country codes
1410
+ * and values are flag icon components.
1411
+ * Flag icon components receive the same properties
1412
+ * as `flagComponent` (see below).
1413
+ *
1414
+ * Example:
1415
+ *
1416
+ * `{ "RU": (props) => <img src="..."/> }`
1417
+ *
1418
+ * Example:
1419
+ *
1420
+ * `import flags from 'country-flag-icons/react/3x2'`
1421
+ *
1422
+ * `import PhoneInput from 'react-phone-number-input'`
1423
+ *
1424
+ * `<PhoneInput flags={flags} .../>`
1425
+ */
1426
+ flags: u.objectOf(u.elementType),
1427
+ /**
1428
+ * Country flag icon component.
1429
+ *
1430
+ * Takes properties:
1431
+ *
1432
+ * * `country: string` — The country code.
1433
+ * * `countryName: string` — The country name.
1434
+ * * `flagUrl: string` — The `flagUrl` property (see above).
1435
+ * * `flags: object` — The `flags` property (see above).
1436
+ */
1437
+ flagComponent: u.elementType,
1438
+ /**
1439
+ * Set to `false` to remove the "International" option from country `<select/>`.
1440
+ */
1441
+ addInternationalOption: u.bool,
1442
+ /**
1443
+ * "International" icon component.
1444
+ * Should have the same aspect ratio.
1445
+ *
1446
+ * Receives properties:
1447
+ *
1448
+ * * `title: string` — "International" country option label.
1449
+ */
1450
+ internationalIcon: u.elementType,
1451
+ /**
1452
+ * Can be used to place some countries on top of the list of country `<select/>` options.
1453
+ *
1454
+ * * `"XX"` — inserts an option for "XX" country.
1455
+ * * `"🌐"` — inserts "International" option.
1456
+ * * `"|"` — inserts a separator.
1457
+ * * `"..."` — inserts options for the rest of the countries (can be omitted, in which case it will be automatically added at the end).
1458
+ *
1459
+ * Example:
1460
+ *
1461
+ * `["US", "CA", "AU", "|", "..."]`
1462
+ */
1463
+ countryOptionsOrder: u.arrayOf(u.string),
1464
+ /**
1465
+ * `<Phone/>` component CSS style object.
1466
+ */
1467
+ style: u.object,
1468
+ /**
1469
+ * `<Phone/>` component CSS class.
1470
+ */
1471
+ className: u.string,
1472
+ /**
1473
+ * Country `<select/>` component.
1474
+ *
1475
+ * Receives properties:
1476
+ *
1477
+ * * `name: string?` — HTML `name` attribute.
1478
+ * * `value: string?` — The currently selected country code.
1479
+ * * `onChange(value: string?)` — Updates the `value`.
1480
+ * * `onFocus()` — Is used to toggle the `--focus` CSS class.
1481
+ * * `onBlur()` — Is used to toggle the `--focus` CSS class.
1482
+ * * `options: object[]` — The list of all selectable countries (including "International") each being an object of shape `{ value: string?, label: string }`.
1483
+ * * `iconComponent: PropTypes.elementType` — React component that renders a country icon: `<Icon country={value}/>`. If `country` is `undefined` then it renders an "International" icon.
1484
+ * * `disabled: boolean?` — HTML `disabled` attribute.
1485
+ * * `readOnly: boolean?` — HTML `readOnly` attribute.
1486
+ * * `tabIndex: (number|string)?` — HTML `tabIndex` attribute.
1487
+ * * `className: string` — CSS class name.
1488
+ */
1489
+ countrySelectComponent: u.elementType,
1490
+ /**
1491
+ * Country `<select/>` component props.
1492
+ * Along with the usual DOM properties such as `aria-label` and `tabIndex`,
1493
+ * some custom properties are supported, such as `arrowComponent` and `unicodeFlags`.
1494
+ */
1495
+ countrySelectProps: u.object,
1496
+ /**
1497
+ * Phone number `<input/>` component.
1498
+ *
1499
+ * Receives properties:
1500
+ *
1501
+ * * `value: string` — The formatted `value`.
1502
+ * * `onChange(event: Event)` — Updates the formatted `value` from `event.target.value`.
1503
+ * * `onFocus()` — Is used to toggle the `--focus` CSS class.
1504
+ * * `onBlur()` — Is used to toggle the `--focus` CSS class.
1505
+ * * Other properties like `type="tel"` or `autoComplete="tel"` that should be passed through to the DOM `<input/>`.
1506
+ *
1507
+ * Must also either use `React.forwardRef()` to "forward" `ref` to the `<input/>` or implement `.focus()` method.
1508
+ */
1509
+ inputComponent: u.elementType,
1510
+ /**
1511
+ * Phone number `<input/>` component props.
1512
+ */
1513
+ numberInputProps: u.object,
1514
+ /**
1515
+ * Wrapping `<div/>` component.
1516
+ *
1517
+ * Receives properties:
1518
+ *
1519
+ * * `style: object` — A component CSS style object.
1520
+ * * `className: string` — Classes to attach to the component, typically changes when component focuses or blurs.
1521
+ */
1522
+ containerComponent: u.elementType,
1523
+ /**
1524
+ * Wrapping `<div/>` component props.
1525
+ */
1526
+ containerComponentProps: u.object,
1527
+ /**
1528
+ * When the user attempts to insert a digit somewhere in the middle of a phone number,
1529
+ * the caret position is moved right before the next available digit skipping
1530
+ * any punctuation in between. This is called "smart" caret positioning.
1531
+ * Another case would be the phone number format changing as a result of
1532
+ * the user inserting the digit somewhere in the middle, which would require
1533
+ * re-positioning the caret because all digit positions have changed.
1534
+ * This "smart" caret positioning feature can be turned off by passing
1535
+ * `smartCaret={false}` property: use it in case of any possible issues
1536
+ * with caret position during phone number input.
1537
+ */
1538
+ // Is `true` by default.
1539
+ smartCaret: u.bool,
1540
+ /**
1541
+ * Set to `true` to force "international" phone number format.
1542
+ * Set to `false` to force "national" phone number format.
1543
+ * By default it's `undefined` meaning that it doesn't enforce any phone number format:
1544
+ * the user can input their phone number in either "national" or "international" format.
1545
+ */
1546
+ international: u.bool,
1547
+ /**
1548
+ * If set to `true`, the phone number input will get trimmed
1549
+ * if it exceeds the maximum length for the country.
1550
+ */
1551
+ limitMaxLength: u.bool,
1552
+ /**
1553
+ * If set to `false`, and `international` is `true`, then
1554
+ * users won't be able to erase the "country calling part"
1555
+ * of a phone number in the `<input/>`.
1556
+ */
1557
+ countryCallingCodeEditable: u.bool,
1558
+ /**
1559
+ * `libphonenumber-js` metadata.
1560
+ *
1561
+ * Can be used to pass custom `libphonenumber-js` metadata
1562
+ * to reduce the overall bundle size for those who compile "custom" metadata.
1563
+ */
1564
+ metadata: Pe,
1565
+ /**
1566
+ * Is called every time the selected country changes:
1567
+ * either programmatically or when user selects it manually from the list.
1568
+ */
1569
+ // People have been asking for a way to get the selected country.
1570
+ // @see https://github.com/catamphetamine/react-phone-number-input/issues/128
1571
+ // For some it's just a "business requirement".
1572
+ // I guess it's about gathering as much info on the user as a website can
1573
+ // without introducing any addional fields that would complicate the form
1574
+ // therefore reducing "conversion" (that's a marketing term).
1575
+ // Assuming that the phone number's country is the user's country
1576
+ // is not 100% correct but in most cases I guess it's valid.
1577
+ onCountryChange: u.func,
1578
+ /**
1579
+ * If set to `false`, will not focus the `<input/>` component
1580
+ * when the user selects a country from the list of countries.
1581
+ * This can be used to conform to the Web Content Accessibility Guidelines (WCAG).
1582
+ * Quote:
1583
+ * "On input: Changing the setting of any user interface component
1584
+ * does not automatically cause a change of context unless the user
1585
+ * has been advised of the behaviour before using the component."
1586
+ */
1587
+ focusInputOnCountrySelection: u.bool
1588
+ };
1589
+ var Ce = {
1590
+ /**
1591
+ * Remember (and autofill) the value as a phone number.
1592
+ */
1593
+ autoComplete: "tel",
1594
+ /**
1595
+ * Country `<select/>` component.
1596
+ */
1597
+ countrySelectComponent: xe,
1598
+ /**
1599
+ * Flag icon component.
1600
+ */
1601
+ flagComponent: ie,
1602
+ /**
1603
+ * By default, uses icons from `country-flag-icons` gitlab pages website.
1604
+ */
1605
+ // Must be equal to `flagUrl` in `./CountryIcon.js`.
1606
+ flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
1607
+ /**
1608
+ * Default "International" country `<select/>` option icon.
1609
+ */
1610
+ internationalIcon: X,
1611
+ /**
1612
+ * Phone number `<input/>` component.
1613
+ */
1614
+ inputComponent: "input",
1615
+ /**
1616
+ * Wrapping `<div/>` component.
1617
+ */
1618
+ containerComponent: "div",
1619
+ /**
1620
+ * Some users requested a way to reset the component:
1621
+ * both number `<input/>` and country `<select/>`.
1622
+ * Whenever `reset` property changes both number `<input/>`
1623
+ * and country `<select/>` are reset.
1624
+ * It's not implemented as some instance `.reset()` method
1625
+ * because `ref` is forwarded to `<input/>`.
1626
+ * It's also not replaced with just resetting `country` on
1627
+ * external `value` reset, because a user could select a country
1628
+ * and then not input any `value`, and so the selected country
1629
+ * would be "stuck", if not using this `reset` property.
1630
+ */
1631
+ // https://github.com/catamphetamine/react-phone-number-input/issues/300
1632
+ reset: u.any,
1633
+ /**
1634
+ *
1635
+ */
1636
+ /**
1637
+ * Set to `false` to use "basic" caret instead of the "smart" one.
1638
+ */
1639
+ smartCaret: !0,
1640
+ /**
1641
+ * Whether to add the "International" option
1642
+ * to the list of countries.
1643
+ */
1644
+ addInternationalOption: !0,
1645
+ /**
1646
+ * If set to `false`, and `international` is `true`, then
1647
+ * users won't be able to erase the "country calling part"
1648
+ * of a phone number in the `<input/>`.
1649
+ */
1650
+ countryCallingCodeEditable: !0,
1651
+ /**
1652
+ * If set to `false`, will not focus the `<input/>` component
1653
+ * when the user selects a country from the list of countries.
1654
+ * This can be used to conform to the Web Content Accessibility Guidelines (WCAG).
1655
+ * Quote:
1656
+ * "On input: Changing the setting of any user interface component
1657
+ * does not automatically cause a change of context unless the user
1658
+ * has been advised of the behaviour before using the component."
1659
+ */
1660
+ focusInputOnCountrySelection: !0
1661
+ };
1662
+ function nn(e) {
1663
+ e = Me({}, e);
1664
+ for (var n in Ce)
1665
+ e[n] === void 0 && (e[n] = Ce[n]);
1666
+ return e;
1667
+ }
1668
+ function rn(e, n) {
1669
+ if (e.length !== n.length)
1670
+ return !1;
1671
+ for (var r = 0; r < e.length; ) {
1672
+ if (e[r] !== n[r])
1673
+ return !1;
1674
+ r++;
1675
+ }
1676
+ return !0;
1677
+ }
1678
+ var on = ["metadata", "labels"];
1679
+ function oe() {
1680
+ return oe = Object.assign ? Object.assign.bind() : function(e) {
1681
+ for (var n = 1; n < arguments.length; n++) {
1682
+ var r = arguments[n];
1683
+ for (var t in r)
1684
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
1685
+ }
1686
+ return e;
1687
+ }, oe.apply(this, arguments);
1688
+ }
1689
+ function an(e, n) {
1690
+ if (e == null) return {};
1691
+ var r = un(e, n), t, o;
1692
+ if (Object.getOwnPropertySymbols) {
1693
+ var a = Object.getOwnPropertySymbols(e);
1694
+ for (o = 0; o < a.length; o++)
1695
+ t = a[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
1696
+ }
1697
+ return r;
1698
+ }
1699
+ function un(e, n) {
1700
+ if (e == null) return {};
1701
+ var r = {}, t = Object.keys(e), o, a;
1702
+ for (a = 0; a < t.length; a++)
1703
+ o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
1704
+ return r;
1705
+ }
1706
+ function Ve(e) {
1707
+ var n = /* @__PURE__ */ c.forwardRef(function(r, t) {
1708
+ var o = r.metadata, a = o === void 0 ? e : o, i = r.labels, l = i === void 0 ? Q : i, s = an(r, on);
1709
+ return /* @__PURE__ */ c.createElement(ke, oe({}, s, {
1710
+ ref: t,
1711
+ metadata: a,
1712
+ labels: l
1713
+ }));
1714
+ });
1715
+ return n.propTypes = {
1716
+ metadata: Pe,
1717
+ labels: Ie
1718
+ }, n;
1719
+ }
1720
+ Ve();
1721
+ function We(e, n) {
1722
+ var r = Array.prototype.slice.call(n);
1723
+ return r.push(je), e.apply(this, r);
1724
+ }
1725
+ Ve(je);
1726
+ function ln() {
1727
+ return We(ee, arguments);
1728
+ }
1729
+ function bn() {
1730
+ return We(Z, arguments);
1731
+ }
1732
+ const cn = Xe(
1733
+ ({
1734
+ onOptionOpenChange: e,
1735
+ searchCountry: n,
1736
+ activeCountry: r,
1737
+ setActiveCountry: t,
1738
+ getCountryMetaInfo: o,
1739
+ className: a,
1740
+ ...i
1741
+ }, l) => {
1742
+ const s = ae(() => {
1743
+ const f = ln();
1744
+ return n ? f.filter(
1745
+ (m) => Q[m].toLowerCase().includes(n.toLowerCase())
1746
+ ) : f;
1747
+ }, [n]);
1748
+ return /* @__PURE__ */ U(
1749
+ "div",
1750
+ {
1751
+ className: B("flex flex-col gap-8 overflow-auto max-h-188", a),
1752
+ ref: l,
1753
+ ...i,
1754
+ children: s.length ? s.map((f) => /* @__PURE__ */ ce(
1755
+ "button",
1756
+ {
1757
+ role: "option",
1758
+ "aria-selected": f === r,
1759
+ onClick: () => {
1760
+ t(f), e(!1);
1761
+ },
1762
+ className: "flex cursor-pointer py-8 px-10 rounded-12 items-center justify-between hover:bg-interactive-secondary-hover",
1763
+ children: [
1764
+ /* @__PURE__ */ ce("div", { className: "flex items-center gap-8", children: [
1765
+ /* @__PURE__ */ U("div", { className: "size-20 flex items-center justify-center overflow-hidden rounded-full", children: et(f) }),
1766
+ /* @__PURE__ */ U("p", { className: B("body-extrasmall-medium", "text-primary"), children: Q[f] })
1767
+ ] }),
1768
+ /* @__PURE__ */ U("p", { className: B("body-extrasmall-regular", "text-secondary"), children: o(f) })
1769
+ ]
1770
+ },
1771
+ f
1772
+ )) : /* @__PURE__ */ U(
1773
+ "p",
1774
+ {
1775
+ className: B(
1776
+ "body-extrasmall-regular",
1777
+ "text-tertiary text-center"
1778
+ ),
1779
+ children: "No option found"
1780
+ }
1781
+ )
1782
+ }
1783
+ );
1784
+ }
1785
+ );
1786
+ cn.displayName = "FormCountryOptionsList";
1787
+ export {
1788
+ cn as F,
1789
+ bn as g
1790
+ };