@inntechcorp/it-design 4.0.0-beta.1 → 4.0.0-beta.4

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 (1189) hide show
  1. package/ACCESSIBILITY.md +61 -54
  2. package/LICENSE +201 -0
  3. package/MIGRATION.md +153 -0
  4. package/README.md +118 -71
  5. package/dist/cjs/_bundled/@radix-ui/primitive/dist/index.js +1 -0
  6. package/dist/cjs/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
  7. package/dist/cjs/_bundled/@radix-ui/react-context/dist/index.js +1 -0
  8. package/dist/cjs/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
  9. package/dist/cjs/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
  10. package/dist/cjs/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
  11. package/dist/cjs/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
  12. package/dist/cjs/_bundled/@radix-ui/react-id/dist/index.js +1 -0
  13. package/dist/cjs/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
  14. package/dist/cjs/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
  15. package/dist/cjs/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
  16. package/dist/cjs/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
  17. package/dist/cjs/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
  18. package/dist/cjs/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
  19. package/dist/cjs/_bundled/@radix-ui/react-use-escape-keydown/dist/index.js +1 -0
  20. package/dist/cjs/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
  21. package/dist/cjs/_bundled/aria-hidden/dist/es2015/index.js +1 -0
  22. package/dist/cjs/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
  23. package/dist/cjs/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
  24. package/dist/cjs/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
  25. package/dist/cjs/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
  26. package/dist/cjs/_bundled/get-nonce/dist/es2015/index.js +1 -0
  27. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
  28. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
  29. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
  30. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
  31. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
  32. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
  33. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
  34. package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
  35. package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
  36. package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
  37. package/dist/cjs/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
  38. package/dist/cjs/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
  39. package/dist/cjs/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
  40. package/dist/cjs/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
  41. package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
  42. package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
  43. package/dist/cjs/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
  44. package/dist/cjs/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
  45. package/dist/cjs/_bundled/vaul/dist/index.js +1 -0
  46. package/dist/cjs/_virtual/_tslib.js +1 -0
  47. package/dist/cjs/accordion/index.js +1 -0
  48. package/dist/cjs/accordion/item/Item.js +1 -0
  49. package/dist/cjs/accordion/submenu/SubMenu.js +1 -0
  50. package/dist/cjs/alert/Description.js +1 -0
  51. package/dist/cjs/alert/Title.js +1 -0
  52. package/dist/cjs/alert/index.js +1 -0
  53. package/dist/cjs/alink/index.js +1 -0
  54. package/dist/cjs/amount/index.js +1 -0
  55. package/dist/cjs/announcement-bar/index.js +1 -0
  56. package/dist/cjs/avatar/index.js +1 -0
  57. package/dist/cjs/back-top/index.js +1 -0
  58. package/dist/cjs/badge/index.js +1 -0
  59. package/dist/cjs/blocks/banner/index.js +1 -0
  60. package/dist/cjs/blocks/box-title/index.js +1 -0
  61. package/dist/cjs/blocks/casino-featured/index.js +1 -0
  62. package/dist/cjs/blocks/default-avatar/index.js +1 -0
  63. package/dist/cjs/blocks/embla/useEmblaState.js +1 -0
  64. package/dist/cjs/blocks/featured-games/index.js +1 -0
  65. package/dist/cjs/blocks/filter-tabs/index.js +1 -0
  66. package/dist/cjs/blocks/footer/index.js +1 -0
  67. package/dist/cjs/blocks/game-box/index.js +1 -0
  68. package/dist/cjs/blocks/game-carousel/index.js +1 -0
  69. package/dist/cjs/blocks/game-categories/Carousel.js +1 -0
  70. package/dist/cjs/blocks/game-categories/Mobile.js +1 -0
  71. package/dist/cjs/blocks/game-categories/index.js +1 -0
  72. package/dist/cjs/blocks/game-filter/index.js +1 -0
  73. package/dist/cjs/blocks/game-navigator/index.js +1 -0
  74. package/dist/cjs/blocks/game-providers/index.js +1 -0
  75. package/dist/cjs/blocks/game-providers/logos.js +1 -0
  76. package/dist/cjs/blocks/game-search/index.js +1 -0
  77. package/dist/cjs/blocks/game-shell/Browse.js +1 -0
  78. package/dist/cjs/blocks/game-shell/Settings.js +1 -0
  79. package/dist/cjs/blocks/game-shell/SwipeHint.js +1 -0
  80. package/dist/cjs/blocks/game-shell/index.js +1 -0
  81. package/dist/cjs/blocks/game-shell/useDrawerChrome.js +1 -0
  82. package/dist/cjs/blocks/games-grid/index.js +1 -0
  83. package/dist/cjs/blocks/header/index.js +1 -0
  84. package/dist/cjs/blocks/help/index.js +1 -0
  85. package/dist/cjs/blocks/last-winners/index.js +1 -0
  86. package/dist/cjs/blocks/layout-boxes/index.js +1 -0
  87. package/dist/cjs/blocks/mega-menu/index.js +1 -0
  88. package/dist/cjs/blocks/min-width-gate/index.js +1 -0
  89. package/dist/cjs/blocks/mobile-bottom-nav/index.js +1 -0
  90. package/dist/cjs/blocks/multiple-jackpots/TierCarousel.js +1 -0
  91. package/dist/cjs/blocks/multiple-jackpots/index.js +1 -0
  92. package/dist/cjs/blocks/notifications/index.js +1 -0
  93. package/dist/cjs/blocks/post-viewer/index.js +1 -0
  94. package/dist/cjs/blocks/promotions-grid/index.js +1 -0
  95. package/dist/cjs/blocks/raffle/index.js +1 -0
  96. package/dist/cjs/blocks/slider/index.js +1 -0
  97. package/dist/cjs/blocks/slider-double/index.js +1 -0
  98. package/dist/cjs/blocks/spacer/index.js +1 -0
  99. package/dist/cjs/blocks/sub-page-header/index.js +1 -0
  100. package/dist/cjs/blocks/tournaments/index.js +1 -0
  101. package/dist/cjs/blocks/user-hub/bonus.js +1 -0
  102. package/dist/cjs/blocks/user-hub/cashier.js +1 -0
  103. package/dist/cjs/blocks/user-hub/deposit.js +1 -0
  104. package/dist/cjs/blocks/user-hub/history.js +1 -0
  105. package/dist/cjs/blocks/user-hub/index.js +1 -0
  106. package/dist/cjs/blocks/user-hub/messages.js +1 -0
  107. package/dist/cjs/blocks/user-hub/platform.js +1 -0
  108. package/dist/cjs/blocks/user-hub/profile.js +1 -0
  109. package/dist/cjs/blocks/user-hub/raffles.js +1 -0
  110. package/dist/cjs/blocks/user-hub/settings.js +1 -0
  111. package/dist/cjs/blocks/user-hub/table.js +1 -0
  112. package/dist/cjs/blocks/user-hub/vip.js +1 -0
  113. package/dist/cjs/blocks/user-hub/withdraw.js +1 -0
  114. package/dist/cjs/button/index.js +1 -0
  115. package/dist/cjs/button-group/ButtonGroupContext.js +1 -0
  116. package/dist/cjs/button-group/index.js +1 -0
  117. package/dist/cjs/calendar/dates.js +1 -0
  118. package/dist/cjs/calendar/day/Day.js +1 -0
  119. package/dist/cjs/calendar/header/Header.js +1 -0
  120. package/dist/cjs/calendar/index.js +1 -0
  121. package/dist/cjs/calendar/range/RangeCalendar.js +1 -0
  122. package/dist/cjs/calendar/time/Time.js +1 -0
  123. package/dist/cjs/card/Card.js +1 -0
  124. package/dist/cjs/card/CardAction.js +1 -0
  125. package/dist/cjs/card/CardContent.js +1 -0
  126. package/dist/cjs/card/CardDescription.js +1 -0
  127. package/dist/cjs/card/CardFooter.js +1 -0
  128. package/dist/cjs/card/CardHeader.js +1 -0
  129. package/dist/cjs/card/CardTabs.js +1 -0
  130. package/dist/cjs/card/CardTitle.js +1 -0
  131. package/dist/cjs/chart/Fullscreen.js +1 -0
  132. package/dist/cjs/chart/index.js +1 -0
  133. package/dist/cjs/chart/palette.js +1 -0
  134. package/dist/cjs/checkbox/index.js +1 -0
  135. package/dist/cjs/code-input/index.js +1 -0
  136. package/dist/cjs/color-input/index.js +1 -0
  137. package/dist/cjs/coming-soon/index.js +1 -0
  138. package/dist/cjs/context/FormDefaultsContext.js +1 -0
  139. package/dist/cjs/context/ITDContext.js +1 -0
  140. package/dist/cjs/context/ITDThemeProvider.js +1 -0
  141. package/dist/cjs/context/PortalDocumentContext.js +1 -0
  142. package/dist/cjs/context-menu/ContextMenu.js +1 -0
  143. package/dist/cjs/context-menu/ContextMenuTrigger.js +1 -0
  144. package/dist/cjs/cropper/index.js +1 -0
  145. package/dist/cjs/data/phones.json.js +1 -0
  146. package/dist/cjs/datepicker/index.js +1 -0
  147. package/dist/cjs/dialog/Dialog.js +1 -0
  148. package/dist/cjs/dropdown-menu/CheckIcon.js +1 -0
  149. package/dist/cjs/dropdown-menu/DropdownMenu.js +1 -0
  150. package/dist/cjs/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
  151. package/dist/cjs/dropdown-menu/DropdownMenuContent.js +1 -0
  152. package/dist/cjs/dropdown-menu/DropdownMenuItem.js +1 -0
  153. package/dist/cjs/dropdown-menu/DropdownMenuLabel.js +1 -0
  154. package/dist/cjs/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
  155. package/dist/cjs/dropdown-menu/DropdownMenuRadioItem.js +1 -0
  156. package/dist/cjs/dropdown-menu/DropdownMenuSeparator.js +1 -0
  157. package/dist/cjs/dropdown-menu/DropdownMenuSub.js +1 -0
  158. package/dist/cjs/dropdown-menu/DropdownMenuSubContent.js +1 -0
  159. package/dist/cjs/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
  160. package/dist/cjs/dropdown-menu/DropdownMenuTrigger.js +1 -0
  161. package/dist/cjs/dropdown-menu/MenuItemContext.js +1 -0
  162. package/dist/cjs/dropdown-menu/processChildren.js +1 -0
  163. package/dist/cjs/dropdown-menu/useMenuItemChrome.js +1 -0
  164. package/dist/cjs/dropdown-menu/useMenuKeyboard.js +1 -0
  165. package/dist/cjs/dropdown-menu/usePointerGraceArea.js +1 -0
  166. package/dist/cjs/dropdown-menu/useSubMenuRegistry.js +1 -0
  167. package/dist/cjs/enums/enum.js +1 -0
  168. package/dist/cjs/field/index.js +1 -0
  169. package/dist/cjs/flex/index.js +1 -0
  170. package/dist/cjs/floating/Arrow.js +1 -0
  171. package/dist/cjs/floating/FloatingContent.js +1 -0
  172. package/dist/cjs/floating/createFloatingTrigger.js +1 -0
  173. package/dist/cjs/form/context/FormContext.js +1 -0
  174. package/dist/cjs/form/context/FormRegistry.js +1 -0
  175. package/dist/cjs/form/context/FormStore.js +1 -0
  176. package/dist/cjs/form/control/Control.js +1 -0
  177. package/dist/cjs/form/group/Group.js +1 -0
  178. package/dist/cjs/form/index.js +1 -0
  179. package/dist/cjs/form/item/Item.js +1 -0
  180. package/dist/cjs/form/validation/TCIdentity.js +1 -0
  181. package/dist/cjs/form/validation/Validator.js +1 -0
  182. package/dist/cjs/form/wrapper/FormWrapper.js +1 -0
  183. package/dist/cjs/helpers/array/ChunkArray.js +1 -0
  184. package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +1 -0
  185. package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +1 -0
  186. package/dist/cjs/helpers/base64/Base64Decode.js +1 -0
  187. package/dist/cjs/helpers/base64/Base64Encode.js +1 -0
  188. package/dist/cjs/helpers/binary/FormatBytes.js +1 -0
  189. package/dist/cjs/helpers/binary/GetExtensionByMimeType.js +1 -0
  190. package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -0
  191. package/dist/cjs/helpers/checker/CheckFileURL.js +1 -0
  192. package/dist/cjs/helpers/checker/FileChecker.js +1 -0
  193. package/dist/cjs/helpers/classname/GetClassNameByPlatform.js +1 -0
  194. package/dist/cjs/helpers/config/defineITDConfig.js +1 -0
  195. package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
  196. package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +1 -0
  197. package/dist/cjs/helpers/css/FindSelector.js +1 -0
  198. package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -0
  199. package/dist/cjs/helpers/currency/GetByCurrency.js +1 -0
  200. package/dist/cjs/helpers/currency/GetCurrencyFormat.js +1 -0
  201. package/dist/cjs/helpers/currency/GetCurrencySymbol.js +1 -0
  202. package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +1 -0
  203. package/dist/cjs/helpers/datetime/FormatDate.js +1 -0
  204. package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -0
  205. package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -0
  206. package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -0
  207. package/dist/cjs/helpers/datetime/FormatTime.js +1 -0
  208. package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -0
  209. package/dist/cjs/helpers/device/touchDevice.js +1 -0
  210. package/dist/cjs/helpers/format/ToKebabCase.js +1 -0
  211. package/dist/cjs/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
  212. package/dist/cjs/helpers/json/IsValidJSON.js +1 -0
  213. package/dist/cjs/helpers/math/AddZero.js +1 -0
  214. package/dist/cjs/helpers/phone/index.js +1 -0
  215. package/dist/cjs/helpers/phone/usePhoneCountry.js +1 -0
  216. package/dist/cjs/helpers/platform/index.js +1 -0
  217. package/dist/cjs/helpers/promise/Wait.js +1 -0
  218. package/dist/cjs/helpers/remover/RemoveUnits.js +1 -0
  219. package/dist/cjs/helpers/string/UniUpperCase.js +1 -0
  220. package/dist/cjs/helpers/svg/SVGLoader.js +1 -0
  221. package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +1 -0
  222. package/dist/cjs/helpers/theme/Color.js +1 -0
  223. package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -0
  224. package/dist/cjs/helpers/theme/colorOps.js +1 -0
  225. package/dist/cjs/helpers/theme/contrast.js +1 -0
  226. package/dist/cjs/helpers/theme/createTheme.js +1 -0
  227. package/dist/cjs/helpers/theme/cssVariables.js +1 -0
  228. package/dist/cjs/helpers/theme/dark.js +1 -0
  229. package/dist/cjs/helpers/theme/importShadcnTheme.js +1 -0
  230. package/dist/cjs/helpers/theme/light.js +1 -0
  231. package/dist/cjs/helpers/theme/presets.js +1 -0
  232. package/dist/cjs/helpers/theme/shadowScale.js +1 -0
  233. package/dist/cjs/helpers/theme/tokenSet.js +1 -0
  234. package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
  235. package/dist/cjs/helpers/unit/cssVars.js +1 -0
  236. package/dist/cjs/hooks/useAddExternalCSS.js +1 -0
  237. package/dist/cjs/hooks/useAvoidCollision.js +1 -0
  238. package/dist/cjs/hooks/useComponentSize.js +1 -0
  239. package/dist/cjs/hooks/useConnectionStatus.js +1 -0
  240. package/dist/cjs/hooks/useConstructor.js +1 -0
  241. package/dist/cjs/hooks/useContextBridge.js +1 -0
  242. package/dist/cjs/hooks/useCoreFetch.js +1 -0
  243. package/dist/cjs/hooks/useFloatingPosition.js +1 -0
  244. package/dist/cjs/hooks/useFloatingTrigger.js +1 -0
  245. package/dist/cjs/hooks/useFocusTrap.js +1 -0
  246. package/dist/cjs/hooks/useKeyboardShortcut.js +1 -0
  247. package/dist/cjs/hooks/useLoadMoreSentinel.js +1 -0
  248. package/dist/cjs/hooks/useMediaQuery.js +1 -0
  249. package/dist/cjs/hooks/useMultiQuery.js +1 -0
  250. package/dist/cjs/hooks/useNaturalRatio.js +1 -0
  251. package/dist/cjs/hooks/useOnClickOutside.js +1 -0
  252. package/dist/cjs/hooks/useOnESCKeyDown.js +1 -0
  253. package/dist/cjs/hooks/useOnResize.js +1 -0
  254. package/dist/cjs/hooks/useOrientation.js +1 -0
  255. package/dist/cjs/hooks/useReCaptcha.js +1 -0
  256. package/dist/cjs/hooks/useRealm.js +1 -0
  257. package/dist/cjs/hooks/useSingleQuery.js +1 -0
  258. package/dist/cjs/hovercard/HoverCard.js +1 -0
  259. package/dist/cjs/hovercard/HoverCardContent.js +1 -0
  260. package/dist/cjs/hovercard/HoverCardTrigger.js +1 -0
  261. package/dist/cjs/hovercard/hoverCardContext.js +1 -0
  262. package/dist/cjs/html/header/H1.js +1 -0
  263. package/dist/cjs/html/header/H2.js +1 -0
  264. package/dist/cjs/html/header/H3.js +1 -0
  265. package/dist/cjs/html/header/H4.js +1 -0
  266. package/dist/cjs/icons/Arrow.js +1 -0
  267. package/dist/cjs/icons/BackToTop.js +1 -0
  268. package/dist/cjs/icons/Checkmark.js +1 -0
  269. package/dist/cjs/icons/FileDocument.js +1 -0
  270. package/dist/cjs/icons/FileExcel.js +1 -0
  271. package/dist/cjs/icons/FilePdf.js +1 -0
  272. package/dist/cjs/icons/InlineSelectArrow.js +1 -0
  273. package/dist/cjs/icons/Lock.js +1 -0
  274. package/dist/cjs/icons/NoData.js +1 -0
  275. package/dist/cjs/icons/Picture.js +1 -0
  276. package/dist/cjs/icons/Trash.js +1 -0
  277. package/dist/cjs/icons/Upload.js +1 -0
  278. package/dist/cjs/icons/ZoomIn.js +1 -0
  279. package/dist/cjs/icons/ZoomOut.js +1 -0
  280. package/dist/cjs/image/index.js +1 -0
  281. package/dist/cjs/index.js +1 -0
  282. package/dist/cjs/input/index.js +1 -0
  283. package/dist/cjs/label/index.js +1 -0
  284. package/dist/cjs/locale/useITDLocale.js +1 -0
  285. package/dist/cjs/locales/en/calendar.json.js +1 -0
  286. package/dist/cjs/locales/en/itd.json.js +1 -0
  287. package/dist/cjs/locales/tr/calendar.json.js +1 -0
  288. package/dist/cjs/locales/tr/itd.json.js +1 -0
  289. package/dist/cjs/logger/index.js +1 -0
  290. package/dist/cjs/modal/container/ModalContainer.js +1 -0
  291. package/dist/cjs/modal/context/ModalContext.js +1 -0
  292. package/dist/cjs/modal/index.js +1 -0
  293. package/dist/cjs/modal/modal/Modal.js +1 -0
  294. package/dist/cjs/modal/useModalContent.js +1 -0
  295. package/dist/cjs/package.json +3 -0
  296. package/dist/cjs/page/BlockBoundary.js +1 -0
  297. package/dist/cjs/page/background.js +1 -0
  298. package/dist/cjs/page/blocks.js +1 -0
  299. package/dist/cjs/page/blocks.query.js +1 -0
  300. package/dist/cjs/page/checks.js +1 -0
  301. package/dist/cjs/page/context.js +1 -0
  302. package/dist/cjs/page/customCode.js +1 -0
  303. package/dist/cjs/page/editor/BlockForm.js +1 -0
  304. package/dist/cjs/page/editor/BlockPreview.js +1 -0
  305. package/dist/cjs/page/editor/CodeEditor.js +1 -0
  306. package/dist/cjs/page/editor/dropIndex.js +1 -0
  307. package/dist/cjs/page/editor/protocol.js +1 -0
  308. package/dist/cjs/page/editor/theme.js +1 -0
  309. package/dist/cjs/page/editor/useEditorBridge.js +1 -0
  310. package/dist/cjs/page/fields.js +1 -0
  311. package/dist/cjs/page/index.js +1 -0
  312. package/dist/cjs/page/layouts.js +1 -0
  313. package/dist/cjs/page/pageTypes.js +1 -0
  314. package/dist/cjs/page/sample.js +1 -0
  315. package/dist/cjs/page/settle.js +1 -0
  316. package/dist/cjs/page/types.js +1 -0
  317. package/dist/cjs/popover/Popover.js +1 -0
  318. package/dist/cjs/popover/PopoverContent.js +1 -0
  319. package/dist/cjs/popover/PopoverTrigger.js +1 -0
  320. package/dist/cjs/primitives/Slot.js +1 -0
  321. package/dist/cjs/primitives/overlayStack.js +1 -0
  322. package/dist/cjs/primitives/scrollLock.js +1 -0
  323. package/dist/cjs/progress/index.js +1 -0
  324. package/dist/cjs/radio/RadioGroup.js +1 -0
  325. package/dist/cjs/radio/RadioGroupContext.js +1 -0
  326. package/dist/cjs/radio/RadioGroupItem.js +1 -0
  327. package/dist/cjs/rangepicker/index.js +1 -0
  328. package/dist/cjs/result/index.js +1 -0
  329. package/dist/cjs/router/ITDLink.js +1 -0
  330. package/dist/cjs/router/context.js +1 -0
  331. package/dist/cjs/router/hooks.js +1 -0
  332. package/dist/cjs/router/matchActive.js +1 -0
  333. package/dist/cjs/select/SelectGroup.js +1 -0
  334. package/dist/cjs/select/SelectItem.js +1 -0
  335. package/dist/cjs/select/SelectLabel.js +1 -0
  336. package/dist/cjs/select/SelectSeparator.js +1 -0
  337. package/dist/cjs/select/dropdown/Dropdown.js +1 -0
  338. package/dist/cjs/select/index.js +1 -0
  339. package/dist/cjs/select/option/Option.js +1 -0
  340. package/dist/cjs/select/selector/Selector.js +1 -0
  341. package/dist/cjs/select/selector/selectorinput/SelectorInput.js +1 -0
  342. package/dist/cjs/separator/index.js +1 -0
  343. package/dist/cjs/skeleton/index.js +1 -0
  344. package/dist/cjs/spin/index.js +1 -0
  345. package/dist/cjs/stat-card/index.js +1 -0
  346. package/dist/cjs/switch/index.js +1 -0
  347. package/dist/cjs/table/index.js +1 -0
  348. package/dist/cjs/table/paths.js +1 -0
  349. package/dist/cjs/table/primitives.js +1 -0
  350. package/dist/cjs/table/sort.js +1 -0
  351. package/dist/cjs/tabs/Tabs.js +1 -0
  352. package/dist/cjs/tabs/TabsContent.js +1 -0
  353. package/dist/cjs/tabs/TabsContext.js +1 -0
  354. package/dist/cjs/tabs/TabsList.js +1 -0
  355. package/dist/cjs/tabs/TabsTrigger.js +1 -0
  356. package/dist/cjs/textarea/index.js +1 -0
  357. package/dist/cjs/tinyscrollbar/index.js +1 -0
  358. package/dist/cjs/toast/index.js +1 -0
  359. package/dist/cjs/toggle-group/index.js +1 -0
  360. package/dist/cjs/tooltip/Tooltip.js +1 -0
  361. package/dist/cjs/tooltip/TooltipContent.js +1 -0
  362. package/dist/cjs/tooltip/TooltipTrigger.js +1 -0
  363. package/dist/cjs/tooltip/tooltipContext.js +1 -0
  364. package/dist/cjs/types/InputProps.js +1 -0
  365. package/dist/cjs/upload/index.js +1 -0
  366. package/dist/cjs/utils/CommonStyledComponents.js +1 -0
  367. package/dist/cjs/utils/ErrorAnnouncement.js +1 -0
  368. package/dist/cjs/utils/GetButtonSizeSlug.js +1 -0
  369. package/dist/cjs/utils/GetSizeBySizeSlug.js +1 -0
  370. package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
  371. package/dist/cjs/utils/InlineSVGCached.js +1 -0
  372. package/dist/cjs/utils/cn.js +1 -0
  373. package/dist/cjs/utils/focusModality.js +1 -0
  374. package/dist/css/accordion.css +13 -0
  375. package/dist/css/alert.css +1 -0
  376. package/dist/css/alink.css +1 -0
  377. package/dist/css/amount.css +1 -0
  378. package/dist/css/announcement-bar.css +1 -0
  379. package/dist/css/auth-page.css +3 -0
  380. package/dist/css/avatar.css +1 -0
  381. package/dist/css/back-top.css +1 -0
  382. package/dist/css/badge.css +241 -0
  383. package/dist/css/base.css +105 -0
  384. package/dist/css/block-form.css +3 -0
  385. package/dist/css/blocks-shared.css +13 -0
  386. package/dist/css/button-group.css +1 -0
  387. package/dist/css/button.css +9 -0
  388. package/dist/css/calendar.css +1 -0
  389. package/dist/css/card.css +1 -0
  390. package/dist/css/casino-featured.css +1 -0
  391. package/dist/css/chart.css +1 -0
  392. package/dist/css/checkbox.css +3 -0
  393. package/dist/css/code-input.css +7 -0
  394. package/dist/css/color-input.css +1 -0
  395. package/dist/css/coming-soon.css +1 -0
  396. package/dist/css/common.css +1 -0
  397. package/dist/css/components.css +1 -0
  398. package/dist/css/cropper.css +13 -0
  399. package/dist/css/datepicker.css +1 -0
  400. package/dist/css/default-avatar.css +1 -0
  401. package/dist/css/dialog.css +1 -0
  402. package/dist/css/dropdown-menu.css +1 -0
  403. package/dist/css/field.css +1 -0
  404. package/dist/css/filter-tabs.css +1 -0
  405. package/dist/css/flex.css +1 -0
  406. package/dist/css/floating.css +1 -0
  407. package/dist/css/footer.css +1 -0
  408. package/dist/css/form.css +1 -0
  409. package/dist/css/game-box.css +9 -0
  410. package/dist/css/game-carousel.css +1 -0
  411. package/dist/css/game-categories.css +1 -0
  412. package/dist/css/game-filter.css +1 -0
  413. package/dist/css/game-navigator.css +1 -0
  414. package/dist/css/game-providers.css +1 -0
  415. package/dist/css/game-search.css +1 -0
  416. package/dist/css/game-shell.css +1 -0
  417. package/dist/css/header.css +7 -0
  418. package/dist/css/help.css +1 -0
  419. package/dist/css/home-sections.css +1 -0
  420. package/dist/css/hovercard.css +1 -0
  421. package/dist/css/hstrip.css +1 -0
  422. package/dist/css/html-header.css +1 -0
  423. package/dist/css/image.css +1 -0
  424. package/dist/css/input.css +1 -0
  425. package/dist/css/label.css +1 -0
  426. package/dist/css/last-winners.css +1 -0
  427. package/dist/css/login.css +1 -0
  428. package/dist/css/mega-menu.css +1 -0
  429. package/dist/css/min-width-gate.css +1 -0
  430. package/dist/css/mobile-bottom-nav.css +1 -0
  431. package/dist/css/modal.css +11 -0
  432. package/dist/css/multiple-jackpots.css +5 -0
  433. package/dist/css/notifications-panel.css +5 -0
  434. package/dist/css/page.css +5 -0
  435. package/dist/css/popover.css +1 -0
  436. package/dist/css/post-viewer.css +1 -0
  437. package/dist/css/progress.css +1 -0
  438. package/dist/css/promotions-grid.css +7 -0
  439. package/dist/css/properties.css +5 -0
  440. package/dist/css/provider.css +1 -0
  441. package/dist/css/radio.css +1 -0
  442. package/dist/css/raffle.css +1 -0
  443. package/dist/css/rangepicker.css +1 -0
  444. package/dist/css/reset.css +5 -0
  445. package/dist/css/result.css +1 -0
  446. package/dist/css/select.css +1 -0
  447. package/dist/css/separator.css +1 -0
  448. package/dist/css/sheet.css +1 -0
  449. package/dist/css/skeleton.css +3 -0
  450. package/dist/css/slider.css +1 -0
  451. package/dist/css/spin.css +1 -0
  452. package/dist/css/stat-card.css +1 -0
  453. package/dist/css/sub-page-header.css +1 -0
  454. package/dist/css/svg-loader.css +1 -0
  455. package/dist/css/switch.css +1 -0
  456. package/dist/css/table.css +5 -0
  457. package/dist/css/tabs.css +1 -0
  458. package/dist/css/textarea.css +1 -0
  459. package/dist/css/tinyscrollbar.css +1 -0
  460. package/dist/css/toggle-group.css +1 -0
  461. package/dist/css/tooltip.css +1 -0
  462. package/dist/css/tournaments.css +15 -0
  463. package/dist/css/upload.css +1 -0
  464. package/dist/css/user-hub.css +1 -0
  465. package/dist/css/utilities.css +1 -0
  466. package/dist/css/vendor.css +9 -0
  467. package/dist/es/_bundled/@radix-ui/primitive/dist/index.js +1 -0
  468. package/dist/es/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
  469. package/dist/es/_bundled/@radix-ui/react-context/dist/index.js +1 -0
  470. package/dist/es/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
  471. package/dist/es/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
  472. package/dist/es/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
  473. package/dist/es/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
  474. package/dist/es/_bundled/@radix-ui/react-id/dist/index.js +1 -0
  475. package/dist/es/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
  476. package/dist/es/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
  477. package/dist/es/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
  478. package/dist/es/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
  479. package/dist/es/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
  480. package/dist/es/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
  481. package/dist/es/_bundled/@radix-ui/react-use-escape-keydown/dist/index.js +1 -0
  482. package/dist/es/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
  483. package/dist/es/_bundled/aria-hidden/dist/es2015/index.js +1 -0
  484. package/dist/es/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
  485. package/dist/es/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
  486. package/dist/es/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
  487. package/dist/es/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
  488. package/dist/es/_bundled/get-nonce/dist/es2015/index.js +1 -0
  489. package/dist/es/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
  490. package/dist/es/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
  491. package/dist/es/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
  492. package/dist/es/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
  493. package/dist/es/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
  494. package/dist/es/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
  495. package/dist/es/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
  496. package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
  497. package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
  498. package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
  499. package/dist/es/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
  500. package/dist/es/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
  501. package/dist/es/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
  502. package/dist/es/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
  503. package/dist/es/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
  504. package/dist/es/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
  505. package/dist/es/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
  506. package/dist/es/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
  507. package/dist/es/_bundled/vaul/dist/index.js +1 -0
  508. package/dist/es/_virtual/_tslib.js +1 -0
  509. package/dist/es/accordion/index.js +1 -0
  510. package/dist/es/accordion/item/Item.js +1 -0
  511. package/dist/es/accordion/submenu/SubMenu.js +1 -0
  512. package/dist/es/alert/Description.js +1 -0
  513. package/dist/es/alert/Title.js +1 -0
  514. package/dist/es/alert/index.js +1 -0
  515. package/dist/es/alink/index.js +1 -0
  516. package/dist/es/amount/index.js +1 -0
  517. package/dist/es/announcement-bar/index.js +1 -0
  518. package/dist/es/avatar/index.js +1 -0
  519. package/dist/es/back-top/index.js +1 -0
  520. package/dist/es/badge/index.js +1 -0
  521. package/dist/es/blocks/banner/index.js +1 -0
  522. package/dist/es/blocks/box-title/index.js +1 -0
  523. package/dist/es/blocks/casino-featured/index.js +1 -0
  524. package/dist/es/blocks/default-avatar/index.js +1 -0
  525. package/dist/es/blocks/embla/useEmblaState.js +1 -0
  526. package/dist/es/blocks/featured-games/index.js +1 -0
  527. package/dist/es/blocks/filter-tabs/index.js +1 -0
  528. package/dist/es/blocks/footer/index.js +1 -0
  529. package/dist/es/blocks/game-box/index.js +1 -0
  530. package/dist/es/blocks/game-carousel/index.js +1 -0
  531. package/dist/es/blocks/game-categories/Carousel.js +1 -0
  532. package/dist/es/blocks/game-categories/Mobile.js +1 -0
  533. package/dist/es/blocks/game-categories/index.js +1 -0
  534. package/dist/es/blocks/game-filter/index.js +1 -0
  535. package/dist/es/blocks/game-navigator/index.js +1 -0
  536. package/dist/es/blocks/game-providers/index.js +1 -0
  537. package/dist/es/blocks/game-providers/logos.js +1 -0
  538. package/dist/es/blocks/game-search/index.js +1 -0
  539. package/dist/es/blocks/game-shell/Browse.js +1 -0
  540. package/dist/es/blocks/game-shell/Settings.js +1 -0
  541. package/dist/es/blocks/game-shell/SwipeHint.js +1 -0
  542. package/dist/es/blocks/game-shell/index.js +1 -0
  543. package/dist/es/blocks/game-shell/useDrawerChrome.js +1 -0
  544. package/dist/es/blocks/games-grid/index.js +1 -0
  545. package/dist/es/blocks/header/index.js +1 -0
  546. package/dist/es/blocks/help/index.js +1 -0
  547. package/dist/es/blocks/last-winners/index.js +1 -0
  548. package/dist/es/blocks/layout-boxes/index.js +1 -0
  549. package/dist/es/blocks/mega-menu/index.js +1 -0
  550. package/dist/es/blocks/min-width-gate/index.js +1 -0
  551. package/dist/es/blocks/mobile-bottom-nav/index.js +1 -0
  552. package/dist/es/blocks/multiple-jackpots/TierCarousel.js +1 -0
  553. package/dist/es/blocks/multiple-jackpots/index.js +1 -0
  554. package/dist/es/blocks/notifications/index.js +1 -0
  555. package/dist/es/blocks/post-viewer/index.js +1 -0
  556. package/dist/es/blocks/promotions-grid/index.js +1 -0
  557. package/dist/es/blocks/raffle/index.js +1 -0
  558. package/dist/es/blocks/slider/index.js +1 -0
  559. package/dist/es/blocks/slider-double/index.js +1 -0
  560. package/dist/es/blocks/spacer/index.js +1 -0
  561. package/dist/es/blocks/sub-page-header/index.js +1 -0
  562. package/dist/es/blocks/tournaments/index.js +1 -0
  563. package/dist/es/blocks/user-hub/bonus.js +1 -0
  564. package/dist/es/blocks/user-hub/cashier.js +1 -0
  565. package/dist/es/blocks/user-hub/deposit.js +1 -0
  566. package/dist/es/blocks/user-hub/history.js +1 -0
  567. package/dist/es/blocks/user-hub/index.js +1 -0
  568. package/dist/es/blocks/user-hub/messages.js +1 -0
  569. package/dist/es/blocks/user-hub/platform.js +1 -0
  570. package/dist/es/blocks/user-hub/profile.js +1 -0
  571. package/dist/es/blocks/user-hub/raffles.js +1 -0
  572. package/dist/es/blocks/user-hub/settings.js +1 -0
  573. package/dist/es/blocks/user-hub/table.js +1 -0
  574. package/dist/es/blocks/user-hub/vip.js +1 -0
  575. package/dist/es/blocks/user-hub/withdraw.js +1 -0
  576. package/dist/es/button/index.js +1 -0
  577. package/dist/es/button-group/ButtonGroupContext.js +1 -0
  578. package/dist/es/button-group/index.js +1 -0
  579. package/dist/es/calendar/dates.js +1 -0
  580. package/dist/es/calendar/day/Day.js +1 -0
  581. package/dist/es/calendar/header/Header.js +1 -0
  582. package/dist/es/calendar/index.js +1 -0
  583. package/dist/es/calendar/range/RangeCalendar.js +1 -0
  584. package/dist/es/calendar/time/Time.js +1 -0
  585. package/dist/es/card/Card.js +1 -0
  586. package/dist/es/card/CardAction.js +1 -0
  587. package/dist/es/card/CardContent.js +1 -0
  588. package/dist/es/card/CardDescription.js +1 -0
  589. package/dist/es/card/CardFooter.js +1 -0
  590. package/dist/es/card/CardHeader.js +1 -0
  591. package/dist/es/card/CardTabs.js +1 -0
  592. package/dist/es/card/CardTitle.js +1 -0
  593. package/dist/es/chart/Fullscreen.js +1 -0
  594. package/dist/es/chart/index.js +1 -0
  595. package/dist/es/chart/palette.js +1 -0
  596. package/dist/es/checkbox/index.js +1 -0
  597. package/dist/es/code-input/index.js +1 -0
  598. package/dist/es/color-input/index.js +1 -0
  599. package/dist/es/coming-soon/index.js +1 -0
  600. package/dist/es/context/FormDefaultsContext.js +1 -0
  601. package/dist/es/context/ITDContext.js +1 -0
  602. package/dist/es/context/ITDThemeProvider.js +1 -0
  603. package/dist/es/context/PortalDocumentContext.js +1 -0
  604. package/dist/es/context-menu/ContextMenu.js +1 -0
  605. package/dist/es/context-menu/ContextMenuTrigger.js +1 -0
  606. package/dist/es/cropper/index.js +1 -0
  607. package/dist/es/data/phones.json.js +1 -0
  608. package/dist/es/datepicker/index.js +1 -0
  609. package/dist/es/dialog/Dialog.js +1 -0
  610. package/dist/es/dropdown-menu/CheckIcon.js +1 -0
  611. package/dist/es/dropdown-menu/DropdownMenu.js +1 -0
  612. package/dist/es/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
  613. package/dist/es/dropdown-menu/DropdownMenuContent.js +1 -0
  614. package/dist/es/dropdown-menu/DropdownMenuItem.js +1 -0
  615. package/dist/es/dropdown-menu/DropdownMenuLabel.js +1 -0
  616. package/dist/es/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
  617. package/dist/es/dropdown-menu/DropdownMenuRadioItem.js +1 -0
  618. package/dist/es/dropdown-menu/DropdownMenuSeparator.js +1 -0
  619. package/dist/es/dropdown-menu/DropdownMenuSub.js +1 -0
  620. package/dist/es/dropdown-menu/DropdownMenuSubContent.js +1 -0
  621. package/dist/es/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
  622. package/dist/es/dropdown-menu/DropdownMenuTrigger.js +1 -0
  623. package/dist/es/dropdown-menu/MenuItemContext.js +1 -0
  624. package/dist/es/dropdown-menu/processChildren.js +1 -0
  625. package/dist/es/dropdown-menu/useMenuItemChrome.js +1 -0
  626. package/dist/es/dropdown-menu/useMenuKeyboard.js +1 -0
  627. package/dist/es/dropdown-menu/usePointerGraceArea.js +1 -0
  628. package/dist/es/dropdown-menu/useSubMenuRegistry.js +1 -0
  629. package/dist/es/enums/enum.js +1 -0
  630. package/dist/es/field/index.js +1 -0
  631. package/dist/es/flex/index.js +1 -0
  632. package/dist/es/floating/Arrow.js +1 -0
  633. package/dist/es/floating/FloatingContent.js +1 -0
  634. package/dist/es/floating/createFloatingTrigger.js +1 -0
  635. package/dist/es/form/context/FormContext.js +1 -0
  636. package/dist/es/form/context/FormRegistry.js +1 -0
  637. package/dist/es/form/context/FormStore.js +1 -0
  638. package/dist/es/form/control/Control.js +1 -0
  639. package/dist/es/form/group/Group.js +1 -0
  640. package/dist/es/form/index.js +1 -0
  641. package/dist/es/form/item/Item.js +1 -0
  642. package/dist/es/form/validation/TCIdentity.js +1 -0
  643. package/dist/es/form/validation/Validator.js +1 -0
  644. package/dist/es/form/wrapper/FormWrapper.js +1 -0
  645. package/dist/es/helpers/array/ChunkArray.js +1 -0
  646. package/dist/es/helpers/aspectratio/DetermineNewHeight.js +1 -0
  647. package/dist/es/helpers/aspectratio/DetermineNewWidth.js +1 -0
  648. package/dist/es/helpers/base64/Base64Decode.js +1 -0
  649. package/dist/es/helpers/base64/Base64Encode.js +1 -0
  650. package/dist/es/helpers/binary/FormatBytes.js +1 -0
  651. package/dist/es/helpers/binary/GetExtensionByMimeType.js +1 -0
  652. package/dist/es/helpers/binary/GetTypeByFileType.js +1 -0
  653. package/dist/es/helpers/checker/CheckFileURL.js +1 -0
  654. package/dist/es/helpers/checker/FileChecker.js +1 -0
  655. package/dist/es/helpers/classname/GetClassNameByPlatform.js +1 -0
  656. package/dist/es/helpers/config/defineITDConfig.js +1 -0
  657. package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
  658. package/dist/es/helpers/country/GetCountryCodeByLanguage.js +1 -0
  659. package/dist/es/helpers/css/FindSelector.js +1 -0
  660. package/dist/es/helpers/currency/ConvertCurrency.js +1 -0
  661. package/dist/es/helpers/currency/GetByCurrency.js +1 -0
  662. package/dist/es/helpers/currency/GetCurrencyFormat.js +1 -0
  663. package/dist/es/helpers/currency/GetCurrencySymbol.js +1 -0
  664. package/dist/es/helpers/currency/GetDecimalByCurrency.js +1 -0
  665. package/dist/es/helpers/datetime/FormatDate.js +1 -0
  666. package/dist/es/helpers/datetime/FormatDateTime.js +1 -0
  667. package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -0
  668. package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -0
  669. package/dist/es/helpers/datetime/FormatTime.js +1 -0
  670. package/dist/es/helpers/datetime/dayjsSetup.js +1 -0
  671. package/dist/es/helpers/device/touchDevice.js +1 -0
  672. package/dist/es/helpers/format/ToKebabCase.js +1 -0
  673. package/dist/es/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
  674. package/dist/es/helpers/json/IsValidJSON.js +1 -0
  675. package/dist/es/helpers/math/AddZero.js +1 -0
  676. package/dist/es/helpers/phone/index.js +1 -0
  677. package/dist/es/helpers/phone/usePhoneCountry.js +1 -0
  678. package/dist/es/helpers/platform/index.js +1 -0
  679. package/dist/es/helpers/promise/Wait.js +1 -0
  680. package/dist/es/helpers/remover/RemoveUnits.js +1 -0
  681. package/dist/es/helpers/string/UniUpperCase.js +1 -0
  682. package/dist/es/helpers/svg/SVGLoader.js +1 -0
  683. package/dist/es/helpers/theme/AddDefaultThemeStyle.js +1 -0
  684. package/dist/es/helpers/theme/Color.js +1 -0
  685. package/dist/es/helpers/theme/GenerateColorScale.js +1 -0
  686. package/dist/es/helpers/theme/colorOps.js +1 -0
  687. package/dist/es/helpers/theme/contrast.js +1 -0
  688. package/dist/es/helpers/theme/createTheme.js +1 -0
  689. package/dist/es/helpers/theme/cssVariables.js +1 -0
  690. package/dist/es/helpers/theme/dark.js +1 -0
  691. package/dist/es/helpers/theme/importShadcnTheme.js +1 -0
  692. package/dist/es/helpers/theme/light.js +1 -0
  693. package/dist/es/helpers/theme/presets.js +1 -0
  694. package/dist/es/helpers/theme/shadowScale.js +1 -0
  695. package/dist/es/helpers/theme/tokenSet.js +1 -0
  696. package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
  697. package/dist/es/helpers/unit/cssVars.js +1 -0
  698. package/dist/es/hooks/useAddExternalCSS.js +1 -0
  699. package/dist/es/hooks/useAvoidCollision.js +1 -0
  700. package/dist/es/hooks/useComponentSize.js +1 -0
  701. package/dist/es/hooks/useConnectionStatus.js +1 -0
  702. package/dist/es/hooks/useConstructor.js +1 -0
  703. package/dist/es/hooks/useContextBridge.js +1 -0
  704. package/dist/es/hooks/useCoreFetch.js +1 -0
  705. package/dist/es/hooks/useFloatingPosition.js +1 -0
  706. package/dist/es/hooks/useFloatingTrigger.js +1 -0
  707. package/dist/es/hooks/useFocusTrap.js +1 -0
  708. package/dist/es/hooks/useKeyboardShortcut.js +1 -0
  709. package/dist/es/hooks/useLoadMoreSentinel.js +1 -0
  710. package/dist/es/hooks/useMediaQuery.js +1 -0
  711. package/dist/es/hooks/useMultiQuery.js +1 -0
  712. package/dist/es/hooks/useNaturalRatio.js +1 -0
  713. package/dist/es/hooks/useOnClickOutside.js +1 -0
  714. package/dist/es/hooks/useOnESCKeyDown.js +1 -0
  715. package/dist/es/hooks/useOnResize.js +1 -0
  716. package/dist/es/hooks/useOrientation.js +1 -0
  717. package/dist/es/hooks/useReCaptcha.js +1 -0
  718. package/dist/es/hooks/useRealm.js +1 -0
  719. package/dist/es/hooks/useSingleQuery.js +1 -0
  720. package/dist/es/hovercard/HoverCard.js +1 -0
  721. package/dist/es/hovercard/HoverCardContent.js +1 -0
  722. package/dist/es/hovercard/HoverCardTrigger.js +1 -0
  723. package/dist/es/hovercard/hoverCardContext.js +1 -0
  724. package/dist/es/html/header/H1.js +1 -0
  725. package/dist/es/html/header/H2.js +1 -0
  726. package/dist/es/html/header/H3.js +1 -0
  727. package/dist/es/html/header/H4.js +1 -0
  728. package/dist/es/icons/Arrow.js +1 -0
  729. package/dist/es/icons/BackToTop.js +1 -0
  730. package/dist/es/icons/Checkmark.js +1 -0
  731. package/dist/es/icons/FileDocument.js +1 -0
  732. package/dist/es/icons/FileExcel.js +1 -0
  733. package/dist/es/icons/FilePdf.js +1 -0
  734. package/dist/es/icons/InlineSelectArrow.js +1 -0
  735. package/dist/es/icons/Lock.js +1 -0
  736. package/dist/es/icons/NoData.js +1 -0
  737. package/dist/es/icons/Picture.js +1 -0
  738. package/dist/es/icons/Trash.js +1 -0
  739. package/dist/es/icons/Upload.js +1 -0
  740. package/dist/es/icons/ZoomIn.js +1 -0
  741. package/dist/es/icons/ZoomOut.js +1 -0
  742. package/dist/es/image/index.js +1 -0
  743. package/dist/es/index.js +1 -0
  744. package/dist/es/input/index.js +1 -0
  745. package/dist/es/label/index.js +1 -0
  746. package/dist/es/locale/useITDLocale.js +1 -0
  747. package/dist/es/locales/en/calendar.json.js +1 -0
  748. package/dist/es/locales/en/itd.json.js +1 -0
  749. package/dist/es/locales/tr/calendar.json.js +1 -0
  750. package/dist/es/locales/tr/itd.json.js +1 -0
  751. package/dist/es/logger/index.js +1 -0
  752. package/dist/es/modal/container/ModalContainer.js +1 -0
  753. package/dist/es/modal/context/ModalContext.js +1 -0
  754. package/dist/es/modal/index.js +1 -0
  755. package/dist/es/modal/modal/Modal.js +1 -0
  756. package/dist/es/modal/useModalContent.js +1 -0
  757. package/dist/es/package.json +3 -0
  758. package/dist/es/page/BlockBoundary.js +1 -0
  759. package/dist/es/page/background.js +1 -0
  760. package/dist/es/page/blocks.js +1 -0
  761. package/dist/es/page/blocks.query.js +1 -0
  762. package/dist/es/page/checks.js +1 -0
  763. package/dist/es/page/context.js +1 -0
  764. package/dist/es/page/customCode.js +1 -0
  765. package/dist/es/page/editor/BlockForm.js +1 -0
  766. package/dist/es/page/editor/BlockPreview.js +1 -0
  767. package/dist/es/page/editor/CodeEditor.js +1 -0
  768. package/dist/es/page/editor/dropIndex.js +1 -0
  769. package/dist/es/page/editor/protocol.js +1 -0
  770. package/dist/es/page/editor/theme.js +1 -0
  771. package/dist/es/page/editor/useEditorBridge.js +1 -0
  772. package/dist/es/page/fields.js +1 -0
  773. package/dist/es/page/index.js +1 -0
  774. package/dist/es/page/layouts.js +1 -0
  775. package/dist/es/page/pageTypes.js +1 -0
  776. package/dist/es/page/sample.js +1 -0
  777. package/dist/es/page/settle.js +1 -0
  778. package/dist/es/page/types.js +1 -0
  779. package/dist/es/popover/Popover.js +1 -0
  780. package/dist/es/popover/PopoverContent.js +1 -0
  781. package/dist/es/popover/PopoverTrigger.js +1 -0
  782. package/dist/es/primitives/Slot.js +1 -0
  783. package/dist/es/primitives/overlayStack.js +1 -0
  784. package/dist/es/primitives/scrollLock.js +1 -0
  785. package/dist/es/progress/index.js +1 -0
  786. package/dist/es/radio/RadioGroup.js +1 -0
  787. package/dist/es/radio/RadioGroupContext.js +1 -0
  788. package/dist/es/radio/RadioGroupItem.js +1 -0
  789. package/dist/es/rangepicker/index.js +1 -0
  790. package/dist/es/result/index.js +1 -0
  791. package/dist/es/router/ITDLink.js +1 -0
  792. package/dist/es/router/context.js +1 -0
  793. package/dist/es/router/hooks.js +1 -0
  794. package/dist/es/router/matchActive.js +1 -0
  795. package/dist/es/select/SelectGroup.js +1 -0
  796. package/dist/es/select/SelectItem.js +1 -0
  797. package/dist/es/select/SelectLabel.js +1 -0
  798. package/dist/es/select/SelectSeparator.js +1 -0
  799. package/dist/es/select/dropdown/Dropdown.js +1 -0
  800. package/dist/es/select/index.js +1 -0
  801. package/dist/es/select/option/Option.js +1 -0
  802. package/dist/es/select/selector/Selector.js +1 -0
  803. package/dist/es/select/selector/selectorinput/SelectorInput.js +1 -0
  804. package/dist/es/separator/index.js +1 -0
  805. package/dist/es/skeleton/index.js +1 -0
  806. package/dist/es/spin/index.js +1 -0
  807. package/dist/es/stat-card/index.js +1 -0
  808. package/dist/es/switch/index.js +1 -0
  809. package/dist/es/table/index.js +1 -0
  810. package/dist/es/table/paths.js +1 -0
  811. package/dist/es/table/primitives.js +1 -0
  812. package/dist/es/table/sort.js +1 -0
  813. package/dist/es/tabs/Tabs.js +1 -0
  814. package/dist/es/tabs/TabsContent.js +1 -0
  815. package/dist/es/tabs/TabsContext.js +1 -0
  816. package/dist/es/tabs/TabsList.js +1 -0
  817. package/dist/es/tabs/TabsTrigger.js +1 -0
  818. package/dist/es/textarea/index.js +1 -0
  819. package/dist/es/tinyscrollbar/index.js +1 -0
  820. package/dist/es/toast/index.js +1 -0
  821. package/dist/es/toggle-group/index.js +1 -0
  822. package/dist/es/tooltip/Tooltip.js +1 -0
  823. package/dist/es/tooltip/TooltipContent.js +1 -0
  824. package/dist/es/tooltip/TooltipTrigger.js +1 -0
  825. package/dist/es/tooltip/tooltipContext.js +1 -0
  826. package/dist/es/types/InputProps.js +1 -0
  827. package/dist/es/upload/index.js +1 -0
  828. package/dist/es/utils/CommonStyledComponents.js +1 -0
  829. package/dist/es/utils/ErrorAnnouncement.js +1 -0
  830. package/dist/es/utils/GetButtonSizeSlug.js +1 -0
  831. package/dist/es/utils/GetSizeBySizeSlug.js +1 -0
  832. package/dist/es/utils/GetSizeSlugBySize.js +1 -0
  833. package/dist/es/utils/InlineSVGCached.js +1 -0
  834. package/dist/es/utils/cn.js +1 -0
  835. package/dist/es/utils/focusModality.js +1 -0
  836. package/dist/global.css +480 -0
  837. package/dist/index.d.ts +10418 -144
  838. package/dist/locales/calendar.json +27 -0
  839. package/dist/locales/en/calendar.json +27 -0
  840. package/dist/locales/en/itd.json +381 -0
  841. package/dist/locales/itd.json +381 -0
  842. package/dist/locales/tr/calendar.json +27 -0
  843. package/dist/locales/tr/itd.json +381 -0
  844. package/package.json +77 -72
  845. package/dist/accordion/index.d.ts +0 -14
  846. package/dist/accordion/item/Item.d.ts +0 -3
  847. package/dist/accordion/item/styled.d.ts +0 -6
  848. package/dist/accordion/styled.d.ts +0 -1
  849. package/dist/accordion/submenu/SubMenu.d.ts +0 -2
  850. package/dist/accordion/submenu/styled.d.ts +0 -15
  851. package/dist/alert/Description.d.ts +0 -7
  852. package/dist/alert/Title.d.ts +0 -7
  853. package/dist/alert/alert.style.error.d.ts +0 -4
  854. package/dist/alert/alert.style.info.d.ts +0 -4
  855. package/dist/alert/alert.style.neutral.d.ts +0 -4
  856. package/dist/alert/alert.style.success.d.ts +0 -4
  857. package/dist/alert/alert.style.warning.d.ts +0 -4
  858. package/dist/alert/index.d.ts +0 -8
  859. package/dist/alert/styled.d.ts +0 -4
  860. package/dist/alink/index.d.ts +0 -2
  861. package/dist/alink/styled.d.ts +0 -2
  862. package/dist/back-top/index.d.ts +0 -1
  863. package/dist/back-top/styled.d.ts +0 -5
  864. package/dist/button/button.style.default.d.ts +0 -4
  865. package/dist/button/button.style.filled.d.ts +0 -4
  866. package/dist/button/button.style.ghost.d.ts +0 -4
  867. package/dist/button/button.style.icon.d.ts +0 -5
  868. package/dist/button/button.style.link.d.ts +0 -4
  869. package/dist/button/button.style.outline.d.ts +0 -4
  870. package/dist/button/button.style.size.d.ts +0 -7
  871. package/dist/button/button.style.solid.d.ts +0 -4
  872. package/dist/button/index.d.ts +0 -11
  873. package/dist/button/styled.d.ts +0 -3
  874. package/dist/calendar/dates.d.ts +0 -2
  875. package/dist/calendar/day/Day.d.ts +0 -5
  876. package/dist/calendar/day/styled.d.ts +0 -7
  877. package/dist/calendar/header/Header.d.ts +0 -1
  878. package/dist/calendar/header/styled.d.ts +0 -7
  879. package/dist/calendar/index.d.ts +0 -18
  880. package/dist/calendar/styled.d.ts +0 -7
  881. package/dist/card/Card.d.ts +0 -9
  882. package/dist/card/CardAction.d.ts +0 -7
  883. package/dist/card/CardContent.d.ts +0 -7
  884. package/dist/card/CardDescription.d.ts +0 -7
  885. package/dist/card/CardFooter.d.ts +0 -8
  886. package/dist/card/CardHeader.d.ts +0 -8
  887. package/dist/card/CardTabs.d.ts +0 -7
  888. package/dist/card/CardTitle.d.ts +0 -7
  889. package/dist/card/index.d.ts +0 -8
  890. package/dist/card/styles.d.ts +0 -15
  891. package/dist/checkbox/group/index.d.ts +0 -3
  892. package/dist/checkbox/group/styled.d.ts +0 -2
  893. package/dist/checkbox/index.d.ts +0 -10
  894. package/dist/checkbox/styled.d.ts +0 -10
  895. package/dist/context/ITDContext.d.ts +0 -23
  896. package/dist/context/ITDThemeProvider.d.ts +0 -8
  897. package/dist/context/styled.d.ts +0 -2
  898. package/dist/datepicker/index.d.ts +0 -3
  899. package/dist/datepicker/styled.d.ts +0 -9
  900. package/dist/enums/enum.d.ts +0 -209
  901. package/dist/flex/index.d.ts +0 -3
  902. package/dist/flex/styled.d.ts +0 -10
  903. package/dist/floating/Arrow.d.ts +0 -17
  904. package/dist/floating/FloatingContent.d.ts +0 -60
  905. package/dist/floating/mergeTriggerProps.d.ts +0 -8
  906. package/dist/form/context/FormContext.d.ts +0 -37
  907. package/dist/form/context/FormStore.d.ts +0 -14
  908. package/dist/form/control/Control.d.ts +0 -7
  909. package/dist/form/control/styled.d.ts +0 -4
  910. package/dist/form/group/Group.d.ts +0 -17
  911. package/dist/form/group/styled.d.ts +0 -5
  912. package/dist/form/index.d.ts +0 -20
  913. package/dist/form/item/Item.d.ts +0 -17
  914. package/dist/form/validation/TCIdentity.d.ts +0 -1
  915. package/dist/form/validation/Validator.d.ts +0 -19
  916. package/dist/form/wrapper/FormWrapper.d.ts +0 -14
  917. package/dist/helpers/array/ChunkArray.d.ts +0 -7
  918. package/dist/helpers/aspectratio/DetermineNewHeight.d.ts +0 -1
  919. package/dist/helpers/aspectratio/DetermineNewWidth.d.ts +0 -1
  920. package/dist/helpers/base64/Base64Decode.d.ts +0 -1
  921. package/dist/helpers/base64/Base64Encode.d.ts +0 -1
  922. package/dist/helpers/binary/FormatBytes.d.ts +0 -1
  923. package/dist/helpers/binary/GetTypeByFileType.d.ts +0 -2
  924. package/dist/helpers/checker/CheckFileURL.d.ts +0 -1
  925. package/dist/helpers/checker/FileChecker.d.ts +0 -7
  926. package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +0 -1
  927. package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +0 -1
  928. package/dist/helpers/css/FindSelector.d.ts +0 -11
  929. package/dist/helpers/currency/ConvertCurrency.d.ts +0 -1
  930. package/dist/helpers/currency/GetByCurrency.d.ts +0 -1
  931. package/dist/helpers/currency/GetCurrencyFormat.d.ts +0 -10
  932. package/dist/helpers/currency/GetCurrencySymbol.d.ts +0 -1
  933. package/dist/helpers/currency/GetDecimalByCurrency.d.ts +0 -1
  934. package/dist/helpers/datetime/FormatDate.d.ts +0 -1
  935. package/dist/helpers/datetime/FormatDateTime.d.ts +0 -1
  936. package/dist/helpers/datetime/FormatSimpleDate.d.ts +0 -1
  937. package/dist/helpers/datetime/FormatSimpleDateTime.d.ts +0 -1
  938. package/dist/helpers/datetime/FormatTime.d.ts +0 -2
  939. package/dist/helpers/datetime/dayjsSetup.d.ts +0 -2
  940. package/dist/helpers/format/ToKebabCase.d.ts +0 -27
  941. package/dist/helpers/index.d.ts +0 -36
  942. package/dist/helpers/json/IsValidJSON.d.ts +0 -1
  943. package/dist/helpers/locale/getLocaleDateByString.d.ts +0 -1
  944. package/dist/helpers/math/AddZero.d.ts +0 -1
  945. package/dist/helpers/promise/Wait.d.ts +0 -1
  946. package/dist/helpers/remover/RemoveUnits.d.ts +0 -1
  947. package/dist/helpers/string/UniUpperCase.d.ts +0 -6
  948. package/dist/helpers/svg/SVGLoader.d.ts +0 -2
  949. package/dist/helpers/svg/styles.d.ts +0 -5
  950. package/dist/helpers/theme/AddDefaultThemeStyle.d.ts +0 -4
  951. package/dist/helpers/theme/Color.d.ts +0 -19
  952. package/dist/helpers/theme/GenerateColorScale.d.ts +0 -16
  953. package/dist/helpers/theme/UpdateThemeStyle.d.ts +0 -5
  954. package/dist/helpers/theme/cssVariables.d.ts +0 -30
  955. package/dist/helpers/theme/dark.d.ts +0 -3
  956. package/dist/helpers/theme/index.d.ts +0 -9
  957. package/dist/helpers/theme/light.d.ts +0 -3
  958. package/dist/helpers/theme/themes.d.ts +0 -5
  959. package/dist/helpers/theme/tokens.d.ts +0 -392
  960. package/dist/helpers/unit/AddDefaultUnit.d.ts +0 -1
  961. package/dist/helpers/url/ValidURL.d.ts +0 -1
  962. package/dist/hooks/index.d.ts +0 -15
  963. package/dist/hooks/useAddExternalCSS.d.ts +0 -13
  964. package/dist/hooks/useAvoidCollision.d.ts +0 -21
  965. package/dist/hooks/useComponentSize.d.ts +0 -6
  966. package/dist/hooks/useConnectionStatus.d.ts +0 -11
  967. package/dist/hooks/useConstructor.d.ts +0 -11
  968. package/dist/hooks/useContextBridge.d.ts +0 -7
  969. package/dist/hooks/useCoreFetch.d.ts +0 -37
  970. package/dist/hooks/useFloatingPosition.d.ts +0 -63
  971. package/dist/hooks/useFloatingTrigger.d.ts +0 -64
  972. package/dist/hooks/useFocusTrap.d.ts +0 -36
  973. package/dist/hooks/useKeyboardShortcut.d.ts +0 -6
  974. package/dist/hooks/useMultiQuery.d.ts +0 -7
  975. package/dist/hooks/useOnClickOutside.d.ts +0 -12
  976. package/dist/hooks/useOnESCKeyDown.d.ts +0 -10
  977. package/dist/hooks/useOnResize.d.ts +0 -10
  978. package/dist/hooks/useOrientation.d.ts +0 -3
  979. package/dist/hooks/useReCaptcha.d.ts +0 -7
  980. package/dist/hooks/useSingleQuery.d.ts +0 -18
  981. package/dist/hovercard/HoverCard.d.ts +0 -12
  982. package/dist/hovercard/HoverCardContent.d.ts +0 -22
  983. package/dist/hovercard/HoverCardTrigger.d.ts +0 -17
  984. package/dist/hovercard/hoverCardContext.d.ts +0 -7
  985. package/dist/hovercard/index.d.ts +0 -4
  986. package/dist/html/header/H1.d.ts +0 -5
  987. package/dist/html/header/H2.d.ts +0 -5
  988. package/dist/html/header/H3.d.ts +0 -5
  989. package/dist/html/header/H4.d.ts +0 -5
  990. package/dist/html/header/index.d.ts +0 -4
  991. package/dist/html/header/styled.d.ts +0 -5
  992. package/dist/icons/Arrow.d.ts +0 -6
  993. package/dist/icons/BackToTop.d.ts +0 -6
  994. package/dist/icons/Checkmark.d.ts +0 -6
  995. package/dist/icons/InlineSelectArrow.d.ts +0 -6
  996. package/dist/icons/Lock.d.ts +0 -6
  997. package/dist/icons/NoData.d.ts +0 -7
  998. package/dist/icons/Picture.d.ts +0 -6
  999. package/dist/icons/Remove.d.ts +0 -7
  1000. package/dist/icons/Trash.d.ts +0 -6
  1001. package/dist/icons/Upload.d.ts +0 -6
  1002. package/dist/icons/ZoomIn.d.ts +0 -6
  1003. package/dist/icons/ZoomOut.d.ts +0 -6
  1004. package/dist/icons/index.d.ts +0 -11
  1005. package/dist/image/index.d.ts +0 -11
  1006. package/dist/image/styled.d.ts +0 -7
  1007. package/dist/index.cjs.js +0 -5727
  1008. package/dist/index.cjs.js.map +0 -1
  1009. package/dist/index.css +0 -1
  1010. package/dist/index.es.js +0 -22339
  1011. package/dist/index.es.js.map +0 -1
  1012. package/dist/index.iife.js +0 -5728
  1013. package/dist/index.iife.js.map +0 -1
  1014. package/dist/index.umd.js +0 -5728
  1015. package/dist/index.umd.js.map +0 -1
  1016. package/dist/input/index.d.ts +0 -35
  1017. package/dist/input/style.settings.d.ts +0 -9
  1018. package/dist/input/styled.d.ts +0 -27
  1019. package/dist/label/index.d.ts +0 -6
  1020. package/dist/label/style.settings.d.ts +0 -9
  1021. package/dist/label/styled.d.ts +0 -27
  1022. package/dist/link/index.d.ts +0 -2
  1023. package/dist/locales/en/calendar.json.d.ts +0 -32
  1024. package/dist/locales/en/itd.json.d.ts +0 -339
  1025. package/dist/locales/tr/calendar.json.d.ts +0 -32
  1026. package/dist/locales/tr/itd.json.d.ts +0 -339
  1027. package/dist/logger/index.d.ts +0 -9
  1028. package/dist/modal/container/ModalContainer.d.ts +0 -24
  1029. package/dist/modal/container/styled.d.ts +0 -5
  1030. package/dist/modal/context/ModalContext.d.ts +0 -77
  1031. package/dist/modal/index.d.ts +0 -14
  1032. package/dist/modal/modal/Modal.d.ts +0 -16
  1033. package/dist/modal/modal/styled.d.ts +0 -22
  1034. package/dist/notification/container/Container.d.ts +0 -5
  1035. package/dist/notification/container/styled.d.ts +0 -1
  1036. package/dist/notification/context/NotificationsContext.d.ts +0 -7
  1037. package/dist/notification/index.d.ts +0 -14
  1038. package/dist/notification/item/Item.d.ts +0 -12
  1039. package/dist/notification/item/styled.d.ts +0 -1166
  1040. package/dist/popover/Popover.d.ts +0 -42
  1041. package/dist/popover/PopoverContent.d.ts +0 -34
  1042. package/dist/popover/PopoverTrigger.d.ts +0 -26
  1043. package/dist/popover/index.d.ts +0 -4
  1044. package/dist/primitives/Slot.d.ts +0 -36
  1045. package/dist/progress/index.d.ts +0 -2
  1046. package/dist/progress/styled.d.ts +0 -6
  1047. package/dist/radio/button/RadioButton.d.ts +0 -2
  1048. package/dist/radio/button/styled.d.ts +0 -11
  1049. package/dist/radio/group/Group.d.ts +0 -5
  1050. package/dist/radio/group/styled.d.ts +0 -9
  1051. package/dist/radio/index.d.ts +0 -9
  1052. package/dist/reportWebVitals.d.ts +0 -2
  1053. package/dist/result/index.d.ts +0 -6
  1054. package/dist/result/styled.d.ts +0 -16
  1055. package/dist/select/dropdown/Dropdown.d.ts +0 -20
  1056. package/dist/select/dropdown/styled.d.ts +0 -14
  1057. package/dist/select/index.d.ts +0 -9
  1058. package/dist/select/option/Option.d.ts +0 -25
  1059. package/dist/select/option/styled.d.ts +0 -5
  1060. package/dist/select/selector/Selector.d.ts +0 -3
  1061. package/dist/select/selector/selectorinput/SelectorInput.d.ts +0 -6
  1062. package/dist/select/selector/selectorinput/styled.d.ts +0 -2
  1063. package/dist/select/selector/styled.d.ts +0 -16
  1064. package/dist/select/style.settings.d.ts +0 -88
  1065. package/dist/select/styled.d.ts +0 -9
  1066. package/dist/setupTests.d.ts +0 -1
  1067. package/dist/spin/index.d.ts +0 -9
  1068. package/dist/spin/styled.d.ts +0 -10
  1069. package/dist/status/index.d.ts +0 -2
  1070. package/dist/status/styled.d.ts +0 -6
  1071. package/dist/stories/Accordion.d.ts +0 -5
  1072. package/dist/stories/Accordion.stories.d.ts +0 -19
  1073. package/dist/stories/Alert.d.ts +0 -2
  1074. package/dist/stories/Alert.stories.d.ts +0 -34
  1075. package/dist/stories/AlertComposition.d.ts +0 -2
  1076. package/dist/stories/AlertComposition.stories.d.ts +0 -17
  1077. package/dist/stories/Button.d.ts +0 -2
  1078. package/dist/stories/Button.stories.d.ts +0 -38
  1079. package/dist/stories/Card.d.ts +0 -2
  1080. package/dist/stories/Card.stories.d.ts +0 -19
  1081. package/dist/stories/Checkbox.d.ts +0 -2
  1082. package/dist/stories/Checkbox.stories.d.ts +0 -20
  1083. package/dist/stories/CheckboxGroup.d.ts +0 -2
  1084. package/dist/stories/CheckboxGroup.stories.d.ts +0 -17
  1085. package/dist/stories/CheckboxGroupControl.d.ts +0 -2
  1086. package/dist/stories/CheckboxGroupControl.stories.d.ts +0 -17
  1087. package/dist/stories/ColorScale.d.ts +0 -10
  1088. package/dist/stories/ColorScale.stories.d.ts +0 -24
  1089. package/dist/stories/ColorScaleCompare.d.ts +0 -8
  1090. package/dist/stories/ColorScaleCompare.stories.d.ts +0 -47
  1091. package/dist/stories/DatePicker.d.ts +0 -2
  1092. package/dist/stories/DatePicker.stories.d.ts +0 -19
  1093. package/dist/stories/Form.d.ts +0 -2
  1094. package/dist/stories/Form.stories.d.ts +0 -29
  1095. package/dist/stories/Header.d.ts +0 -2
  1096. package/dist/stories/Header.stories.d.ts +0 -18
  1097. package/dist/stories/HoverCard.d.ts +0 -2
  1098. package/dist/stories/HoverCard.stories.d.ts +0 -18
  1099. package/dist/stories/Input.d.ts +0 -2
  1100. package/dist/stories/Input.stories.d.ts +0 -101
  1101. package/dist/stories/ModalManager.d.ts +0 -2
  1102. package/dist/stories/ModalManager.stories.d.ts +0 -21
  1103. package/dist/stories/NoDataIcon.d.ts +0 -2
  1104. package/dist/stories/Page.d.ts +0 -2
  1105. package/dist/stories/Page.stories.d.ts +0 -12
  1106. package/dist/stories/Popover.d.ts +0 -2
  1107. package/dist/stories/Popover.stories.d.ts +0 -40
  1108. package/dist/stories/Progress.d.ts +0 -2
  1109. package/dist/stories/Progress.stories.d.ts +0 -20
  1110. package/dist/stories/RadioGroup.d.ts +0 -2
  1111. package/dist/stories/RadioGroup.stories.d.ts +0 -14
  1112. package/dist/stories/Result.d.ts +0 -2
  1113. package/dist/stories/Result.stories.d.ts +0 -16
  1114. package/dist/stories/Select.d.ts +0 -2
  1115. package/dist/stories/Select.stories.d.ts +0 -34
  1116. package/dist/stories/Status.d.ts +0 -2
  1117. package/dist/stories/Status.stories.d.ts +0 -49
  1118. package/dist/stories/Switch.d.ts +0 -2
  1119. package/dist/stories/Switch.stories.d.ts +0 -30
  1120. package/dist/stories/Table.d.ts +0 -2
  1121. package/dist/stories/Table.stories.d.ts +0 -29
  1122. package/dist/stories/Tabs.d.ts +0 -2
  1123. package/dist/stories/Tabs.stories.d.ts +0 -18
  1124. package/dist/stories/TextArea.d.ts +0 -2
  1125. package/dist/stories/TextArea.stories.d.ts +0 -25
  1126. package/dist/stories/Tooltip.d.ts +0 -1
  1127. package/dist/stories/Tooltip.stories.d.ts +0 -35
  1128. package/dist/stories/Upload.d.ts +0 -2
  1129. package/dist/stories/Upload.stories.d.ts +0 -19
  1130. package/dist/stories/root/index.d.ts +0 -5
  1131. package/dist/stories/select.styled.d.ts +0 -2
  1132. package/dist/switch/index.d.ts +0 -3
  1133. package/dist/switch/styled.d.ts +0 -5
  1134. package/dist/table/index.d.ts +0 -9
  1135. package/dist/table/styled.d.ts +0 -13
  1136. package/dist/tabs/index.d.ts +0 -3
  1137. package/dist/tabs/styles.d.ts +0 -8
  1138. package/dist/textarea/index.d.ts +0 -3
  1139. package/dist/textarea/styled.d.ts +0 -6
  1140. package/dist/tinyscrollbar/index.d.ts +0 -8
  1141. package/dist/tinyscrollbar/scroll.styled.d.ts +0 -2
  1142. package/dist/tinyscrollbar/styled.d.ts +0 -6
  1143. package/dist/tooltip/Tooltip.d.ts +0 -12
  1144. package/dist/tooltip/TooltipContent.d.ts +0 -15
  1145. package/dist/tooltip/TooltipTrigger.d.ts +0 -19
  1146. package/dist/tooltip/index.d.ts +0 -4
  1147. package/dist/tooltip/tooltipContext.d.ts +0 -7
  1148. package/dist/types/AccordionItemProps.d.ts +0 -9
  1149. package/dist/types/AccordionProps.d.ts +0 -12
  1150. package/dist/types/AccordionSubMenuProps.d.ts +0 -18
  1151. package/dist/types/AlertProps.d.ts +0 -13
  1152. package/dist/types/ButtonProps.d.ts +0 -26
  1153. package/dist/types/CalendarProps.d.ts +0 -30
  1154. package/dist/types/CardProps.d.ts +0 -21
  1155. package/dist/types/CheckboxProps.d.ts +0 -45
  1156. package/dist/types/ChildrenProps.d.ts +0 -3
  1157. package/dist/types/DatePickerProps.d.ts +0 -23
  1158. package/dist/types/FlexProps.d.ts +0 -16
  1159. package/dist/types/FormProps.d.ts +0 -53
  1160. package/dist/types/ITDImperativeFuncProps.d.ts +0 -11
  1161. package/dist/types/ITDProps.d.ts +0 -6
  1162. package/dist/types/InputProps.d.ts +0 -42
  1163. package/dist/types/LabelProps.d.ts +0 -7
  1164. package/dist/types/ModalProps.d.ts +0 -219
  1165. package/dist/types/NotificationsProps.d.ts +0 -9
  1166. package/dist/types/PopoverProps.d.ts +0 -10
  1167. package/dist/types/ProgressProps.d.ts +0 -8
  1168. package/dist/types/QueryValueProps.d.ts +0 -1
  1169. package/dist/types/RadioProps.d.ts +0 -37
  1170. package/dist/types/ResultProps.d.ts +0 -14
  1171. package/dist/types/SelectProps.d.ts +0 -70
  1172. package/dist/types/SingleQueryProps.d.ts +0 -7
  1173. package/dist/types/StatusProps.d.ts +0 -11
  1174. package/dist/types/SwitchProps.d.ts +0 -13
  1175. package/dist/types/TableProps.d.ts +0 -37
  1176. package/dist/types/TabsProps.d.ts +0 -15
  1177. package/dist/types/TextAreaProps.d.ts +0 -28
  1178. package/dist/types/Theme.d.ts +0 -103
  1179. package/dist/types/UploadProps.d.ts +0 -51
  1180. package/dist/upload/index.d.ts +0 -13
  1181. package/dist/upload/styled.d.ts +0 -12
  1182. package/dist/utils/CommonStyledComponents.d.ts +0 -18
  1183. package/dist/utils/ErrorAnnouncement.d.ts +0 -25
  1184. package/dist/utils/GetButtonSizeSlug.d.ts +0 -6
  1185. package/dist/utils/GetIconSizeBySize.d.ts +0 -2
  1186. package/dist/utils/GetSizeBySizeSlug.d.ts +0 -3
  1187. package/dist/utils/GetSizeSlugBySize.d.ts +0 -6
  1188. package/dist/utils/InlineSVGCached.d.ts +0 -11
  1189. package/dist/utils/index.d.ts +0 -6
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";const t=({id:t,height:i=20,unit:a="px"})=>e("div",{className:"itd-spacer",style:{height:i+a},"aria-hidden":!0},"spacer-"+(t??""));export{t as default};
@@ -0,0 +1 @@
1
+ import{jsxs as a,jsx as e}from"react/jsx-runtime";import{ChevronLeft as i}from"lucide-react";import{GetClassNameByPlatform as t}from"../../helpers/classname/GetClassNameByPlatform.js";const l=({id:l,title:r,height:s,backHref:c,backTarget:d,onBack:n,showBack:h,backLabel:o="Back",action:m,className:b})=>a("div",{id:l??t("inn-sub-page-header-component"),className:"itd-sub-page-header"+(b?" "+b:""),style:s?{minHeight:s}:void 0,children:[null!=c?e("a",{className:"itd-sub-page-header-back","aria-label":o,href:c,target:d,children:e(i,{"aria-hidden":!0})}):n||h?e("button",{type:"button",className:"itd-sub-page-header-back","aria-label":o,onClick:n,children:e(i,{"aria-hidden":!0})}):null,e("h2",{className:"itd-sub-page-header-title",children:r}),m?e("div",{className:"itd-sub-page-header-action",children:m}):null]});export{l as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{useState as n,useEffect as r,useMemo as i,useRef as s}from"react";import{ChevronLeft as l,CheckCircle2 as o,ChevronRight as d}from"lucide-react";import m from"../../button/index.js";import c from"../../image/index.js";import u from"../../skeleton/index.js";import h from"../../spin/index.js";import p from"../game-box/index.js";import v from"../post-viewer/index.js";import g from"../default-avatar/index.js";import b from"../filter-tabs/index.js";import{HoverCard as N}from"../../hovercard/HoverCard.js";import{HoverCardTrigger as y}from"../../hovercard/HoverCardTrigger.js";import{HoverCardContent as f}from"../../hovercard/HoverCardContent.js";import{ComponentYPositions as k}from"../../enums/enum.js";import{GetPlatform as x}from"../../helpers/platform/index.js";import{PlatformTypes as w}from"../../helpers/classname/GetClassNameByPlatform.js";import{useLoadMoreSentinel as z}from"../../hooks/useLoadMoreSentinel.js";const C=[{value:"all",label:"Tümü"},{value:"registration",label:"Yaklaşan"},{value:"competition",label:"Canlı"},{value:"ended",label:"Sona Erdi"}],j={registration:"Yaklaşan",competition:"Canlı",ended:"Sona Erdi"},T=()=>x()===w.MOBILE,S=e=>e?Math.max(0,new Date(e).getTime()-Date.now()):0,M=(e,t=!0)=>{const[a,i]=n(()=>S(e));r(()=>{if(!t||!e)return;i(S(e));const a=setInterval(()=>i(S(e)),1e3);return()=>clearInterval(a)},[e,t]);const s=Math.floor(a/1e3);return{ms:a,days:Math.floor(s/86400),hours:Math.floor(s%86400/3600),minutes:Math.floor(s%3600/60),seconds:s%60}},K=e=>String(e).padStart(2,"0"),A=({status:e})=>t("span",{className:"itd-tournament-status","data-status":e,children:j[e]}),O=({tournament:a,onOpen:n})=>{const r=a,i="ended"!==r.status,s="registration"===r.status?r.registerEndsAt??r.startsAt:r.endsAt,l=M(s,i),o=r.providers??[],d=(r.games??[]).slice(0,4),m=Math.max(0,(r.gamesCount??r.games?.length??0)-d.length),u=l.days>0?`${l.days} gün ${K(l.hours)}:${K(l.minutes)}:${K(l.seconds)}`:`${K(l.hours)}:${K(l.minutes)}:${K(l.seconds)}`;return e("div",{className:"tournament-card itd-tournament-card",onClick:n?()=>n(r.id):void 0,onKeyDown:n?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(r.id))}:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,children:[e("div",{className:"tournament-card-cover itd-tournament-card-cover",children:[t("span",{className:"tournament-card-status itd-tournament-card-status",children:t(A,{status:r.status})}),t(c,{src:r.image??"",alt:r.name})]}),e("div",{className:"tournament-card-body itd-tournament-card-body",children:[t("h3",{className:"tournament-card-name itd-tournament-card-name",children:r.name}),e("div",{className:"tournament-card-meta itd-tournament-card-meta",children:[e("div",{className:"tournament-card-prize itd-tournament-card-prize",children:[t("span",{className:"itd-tournament-meta-label",children:"Ödül Tutarı"}),t("span",{className:"itd-tournament-prize-value",children:r.prize})]}),i&&e("div",{className:"tournament-card-countdown itd-tournament-card-countdown",children:[t("span",{className:"itd-tournament-meta-label",children:"Kalan Süre"}),t("span",{className:"itd-tournament-countdown-value",children:u})]})]}),d.length>0&&e("div",{className:"tournament-card-games itd-tournament-card-games",children:[t("span",{className:"tournament-card-games-title itd-tournament-meta-label",children:"Oyunlar"}),e("div",{className:"tournament-card-games-row itd-tournament-card-games-row",children:[d.map(e=>t("span",{className:"tournament-card-games-cell itd-tournament-card-games-cell",children:t(p,{name:"",slug:e.slug??e.id,image:e.image,ratio:"440/310"})},e.id)),m>0&&t("span",{className:"tournament-card-games-more itd-tournament-card-games-more",children:e("span",{children:["+",m]})})]})]}),e("div",{className:"tournament-card-footer itd-tournament-card-footer",children:[e("span",{className:"tournament-card-participants",children:[r.participantCount," katılımcı"]}),o.length>0&&t("div",{className:"tournament-card-providers itd-tournament-card-providers"+(o.length>1?" is-interactive":""),onClick:e=>o.length>1&&e.stopPropagation(),children:o.length>1?e(N,{children:[t(y,{asChild:!0,children:e("span",{className:"tournament-card-providers-label",children:[o[0],e("em",{className:"tournament-card-providers-more",children:["+",o.length-1]})]})}),t(f,{placement:k.TOP,variant:"filled",maxWidth:240,children:t("div",{className:"itd-tournament-providers-card",children:o.map(e=>t("span",{children:e},e))})})]}):t("span",{className:"tournament-card-providers-label",children:o[0]})})]})]})]})},P=({tournaments:n,loading:r=!1,filters:i=C,filter:s="all",onFilterChange:l,onOpen:o,hasMore:d=!1,loadingMore:c=!1,onLoadMore:p,emptyTitle:v="Turnuva bulunamadı",emptyText:g="Bu filtreye uyan bir turnuva yok. Diğer sekmelere göz atabilirsiniz."})=>{const N=T()?4:8;return e("div",{className:"tournament-list itd-tournament-list",children:[t("div",{className:"tournament-list-filters itd-tournament-filters",children:t(b,{options:i,value:s,onChange:l,"aria-label":"Turnuva durumu"})}),r?t("div",{className:"tournament-list-skeleton-grid itd-tournament-grid",children:Array.from({length:N},(a,n)=>e("div",{className:"tournament-list-skeleton-box itd-tournament-skeleton-box",children:[t("span",{className:"tournament-list-skeleton-cover itd-tournament-skeleton-cover",children:t(u,{width:"100%",height:"100%"})}),e("span",{className:"tournament-list-skeleton-body itd-tournament-skeleton-body",children:[t(u,{width:"65%",height:"1rem"}),t(u,{width:"40%",height:"0.75rem"}),t(u,{width:"50%",height:"0.75rem"})]})]},n))}):0===n.length?e("div",{className:"tournament-list-empty itd-tournament-empty",children:[t("h3",{children:v}),t("span",{children:g})]}):e(a,{children:[t("div",{className:"tournament-list-grid itd-tournament-grid",children:n.map(e=>t(O,{tournament:e,onOpen:o},e.id))}),d&&t("div",{className:"tournament-list-load-more itd-tournament-load-more",children:c?t(h,{}):t(m,{variant:"outline-accent",size:"medium",onClick:p,children:"Daha Fazla Göster"})})]})]})},D=[{value:"prizes",label:"Ödüller"},{value:"leaderboard",label:"Puan Tablosu"},{value:"rules",label:"Kurallar"}],E=({tournament:u,onBack:N,backText:y="Turnuvalara Dön",onJoin:f,onPlayGame:k,gamesStep:x,standingsHasMore:w=!1,standingsLoading:C=!1,onStandingsMore:j})=>{const S=u,O=T(),P="ended"!==S.status,E="registration"===S.status?S.registerEndsAt??S.startsAt:S.endsAt,L=M(E,P),B=x??15,[G,$]=n(B),[H,I]=n("prizes"),[R,W]=n("site"),F=S.games??[],J=F.slice(0,G),Y=F.length-J.length,q="registration"===S.status?"Kayıt bitişine kalan süre":"Turnuva bitişine kalan süre",Q=i(()=>Array.isArray(S.rules)&&S.rules.length>0?t(v,{blocks:S.rules}):"string"==typeof S.rules&&""!==S.rules.trim()?t("div",{className:"itd-tournament-rules-text",children:S.rules}):t("span",{className:"itd-tournament-panel-empty",children:"Kural bilgisi bulunmuyor."}),[S.rules]),U=s(null),[V,X]=n({prev:!1,next:!1});r(()=>{const e=U.current;if(!e)return;const t=()=>X({prev:e.scrollLeft>4,next:e.scrollLeft<e.scrollWidth-e.clientWidth-4});t();const a=new ResizeObserver(t);return a.observe(e),e.addEventListener("scroll",t,{passive:!0}),()=>{a.disconnect(),e.removeEventListener("scroll",t)}},[S.stats]);const Z=e=>{const t=U.current;t&&t.scrollBy({left:e*t.clientWidth*.85,behavior:"smooth"})},_="ended"===S.status?"Kazananlar":"Puan Tablosu",ee=(S.globalStandings?.length??0)>0,te="global"===R&&ee?S.globalStandings:S.standings??[],ae="site"===R,ne=z(ae&&w&&!C,j),re=e("div",{className:"tournament-prizes itd-tournament-panel itd-tournament-prizes",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Ödüller"}),S.prizeRows&&S.prizeRows.length>0?e(a,{children:[e("div",{className:"tournament-prizes-header itd-tournament-panel-header",children:[t("span",{children:"Sıra"}),t("span",{children:"Ödül"})]}),t("div",{className:"itd-tournament-panel-list",children:S.prizeRows.map(a=>e("div",{className:"tournament-prize-row itd-tournament-prize-row",children:[t("b",{children:a.rank}),t("span",{children:a.value})]},a.rank))})]}):t("span",{className:"itd-tournament-panel-empty",children:"Ödül bilgisi bulunmuyor."})]}),ie=e("div",{className:"tournament-standings itd-tournament-panel itd-tournament-standings",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:_}),ee&&t("div",{className:"tournament-standings-scope itd-tournament-scope",children:t(b,{grow:!0,options:[{value:"site",label:"Site"},{value:"global",label:"Global"}],value:R,onChange:e=>W(e),"aria-label":"Sıralama kapsamı"})}),te.length>0?e(a,{children:[e("div",{className:"tournament-standings-header itd-tournament-panel-header itd-tournament-standings-header",children:[t("span",{children:"#"}),t("span",{children:"Kullanıcı"}),t("span",{children:"ended"===S.status?"Ödül":"Puan"})]}),e("div",{className:"itd-tournament-panel-list",children:[te.map(a=>e("div",{className:"tournament-standings-row itd-tournament-standings-row"+(a.highlight?" is-highlight":""),"data-top":a.position<=3?"":void 0,children:[t("b",{className:"itd-tournament-rank",children:a.position}),t("span",{className:"itd-tournament-standings-photo",children:a.photo?t("img",{src:a.photo,alt:""}):t(g,{})}),t("span",{className:"itd-tournament-standings-user",children:a.username??"—"}),t("span",{className:"itd-tournament-standings-value",children:a.value})]},a.position)),ae&&(w||C)&&t("div",{className:"itd-tournament-board-sentinel",ref:ne,children:C&&t(h,{})})]})]}):t("span",{className:"itd-tournament-panel-empty",children:"site"===R&&ee?"Bu sitede sıralama oluşmadı — Global sekmesine bakabilirsiniz.":"ended"===S.status?"Kazanan bilgisi henüz yayınlanmadı.":"Puan tablosu henüz oluşmadı."})]}),se=e("div",{className:"tournament-rules itd-tournament-panel itd-tournament-rules",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Kurallar"}),t("div",{className:"tournament-rules-scroll itd-tournament-rules-scroll",children:Q})]});return e("div",{className:"tournament-detail itd-tournament-detail",children:[e("div",{className:"tournament-detail-backbar itd-tournament-backbar",children:[e(m,{variant:"filled",size:"medium",onClick:N,children:[t(l,{size:16}),y]}),t("div",{className:"tournament-detail-backbar-actions itd-tournament-backbar-actions",children:S.autoJoin?e("span",{className:"tournament-detail-auto-badge itd-tournament-auto-badge",children:[t(o,{size:15}),"Otomatik Katılım"]}):P&&f&&t(m,{className:"inn-tournament-participate itd-tournament-participate",variant:S.joined?"statable":"default",state:S.joined?"reject":void 0,size:"medium",onClick:f,children:S.joined?"Katılımdan Ayrıl":"Hemen Katıl"})})]}),e("div",{className:"tournament-cover itd-tournament-cover",children:[t("div",{className:"tournament-cover-image itd-tournament-cover-image",children:t(c,{src:S.cover??S.image??"",alt:S.name})}),t("div",{className:"tournament-cover-overlay itd-tournament-cover-overlay",children:e("div",{className:"tournament-cover-panel itd-tournament-cover-panel",children:[t(A,{status:S.status}),e("div",{className:"itd-tournament-cover-prize",children:[t("span",{className:"itd-tournament-meta-label",children:"Ödül Tutarı"}),t("b",{className:"itd-tournament-cover-amount",children:S.prize})]}),P&&e("div",{className:"itd-tournament-cover-countdown",children:[t("span",{className:"itd-tournament-cover-caption",children:q}),t("div",{className:"itd-tournament-timer",children:[[L.days,"Gün"],[L.hours,"Saat"],[L.minutes,"Dakika"],[L.seconds,"Saniye"]].map(([a,n])=>e("span",{className:"tournament-cover-countdown-box itd-tournament-timer-box",children:[t("b",{children:K(a)}),t("span",{children:n})]},n))})]})]})})]}),(S.description||S.name)&&e("div",{className:"tournament-detail-description-box itd-tournament-description",children:[t("h3",{children:S.name}),S.description&&t("div",{children:S.description})]}),S.stats&&S.stats.length>0&&e("div",{className:"tournament-stats itd-tournament-stats",children:[V.prev&&t("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow","data-dir":"prev","aria-label":"Geri",onClick:()=>Z(-1),children:t(l,{size:16})}),t("div",{className:"tournament-stats-track itd-tournament-stats-track",ref:U,children:S.stats.map(a=>e("div",{className:"tournament-stats-box itd-tournament-stats-box",children:[t("span",{className:"itd-tournament-box-caption",children:a.title}),t("div",{className:"itd-tournament-stats-rows",children:a.rows.map(a=>e("div",{className:"itd-tournament-stats-row",children:[t("span",{children:a.label}),t("span",{"data-tone":a.tone,children:a.value})]},a.label))})]},a.title))}),V.next&&t("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow","data-dir":"next","aria-label":"İleri",onClick:()=>Z(1),children:t(d,{size:16})})]}),S.providers&&S.providers.length>0&&e("div",{className:"itd-tournament-section",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Sağlayıcılar"}),t("div",{className:"itd-tournament-provider-chips",children:S.providers.map(e=>t("span",{className:"tournament-detail-provider-chip itd-tournament-provider-chip",children:e},e))})]}),e("div",{className:"itd-tournament-section",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Turnuva Oyunları"}),F.length>0?e("div",{className:"tournament-games-grid itd-tournament-games-grid",children:[J.map(e=>t(p,{name:O?"":e.name,slug:e.slug??e.id,image:e.image,ratio:"440/310",onPlay:k?e=>k(e):void 0},e.id)),Y>0&&t("button",{type:"button",className:"tournament-games-more itd-tournament-games-more",onClick:()=>$(e=>e+B),children:e("span",{children:["+",Y]})})]}):t("div",{className:"tournament-games-empty itd-tournament-games-empty",children:t("span",{children:"Bu turnuvaya tanımlı oyun bulunmuyor."})})]}),O?e(a,{children:[t("div",{className:"tournament-detail-tabs itd-tournament-tabs",children:t(b,{grow:!0,options:D.map(e=>({value:e.value,label:"leaderboard"===e.value?_:e.label})),value:H,onChange:e=>I(e),"aria-label":"Turnuva panelleri"})}),"prizes"===H&&re,"leaderboard"===H&&ie,"rules"===H&&se]}):e("div",{className:"tournament-detail-panels itd-tournament-panels",children:[re,ie,se]})]})},L=({title:a,children:n,className:r})=>{const i=T(),s=i?"inn-mobile-tournament":"inn-tournament";return e("div",{id:s+"-component",className:(i?"inn-mobile-tournament":"inn-tournament")+" itd-tournaments"+(r?" "+r:""),children:[a&&t("div",{id:s+"-title",className:"tournament-title itd-tournaments-title",children:a}),t("div",{className:"tournament-content-wrapper itd-tournaments-content",children:n})]})};export{O as TournamentCard,E as TournamentDetail,P as TournamentList,L as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as a,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{Info as l,Gift as s,Trash2 as n}from"lucide-react";import r from"../../button/index.js";import d from"../../progress/index.js";import c from"../../select/index.js";import m from"../../alert/index.js";import{Tooltip as o}from"../../tooltip/Tooltip.js";import{TooltipTrigger as h}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as u}from"../../tooltip/TooltipContent.js";import{HubPayFilter as p}from"./cashier.js";import{HubTable as b,HubStatusBadge as _,HubCopyBtn as v,HubHistName as k}from"./table.js";import{SelectItem as g}from"../../select/SelectItem.js";import{AlertDescription as y}from"../../alert/Description.js";const N=({kind:t,name:i,dateLabel:l,date:s,action:n,fields:r,children:d})=>e("section",{className:"hub__status-card",children:[e("div",{className:"hub__status-head",children:[e("div",{className:"hub__status-title",children:[a("span",{className:"hub__status-kind",children:t}),a("span",{className:"hub__status-name",children:i})]}),e("div",{className:"hub__status-side",children:[e("div",{className:"hub__status-date",children:[a("span",{children:l}),a("span",{className:"hub__status-dateval",children:s})]}),n]})]}),a("div",{className:"hub__status-grid",children:r.map(([t,i],l)=>e("div",{children:[a("span",{className:"hub__status-label",children:t}),a("span",{className:"hub__status-value",children:i})]},l))}),d]}),f=({data:n,cats:m,types:v,statuses:k,wagering:y,applies:N,onRequest:f,onCancel:w,marker:x={desktop:"inn-bonus-request-table",list:"inn-mobile-bonus-request-list",methods:"inn-mobile-bonus-request-list-methods",item:"inn-mobile-bonus-request-list-method-item"},nameTitle:T="İsim",catTitle:j="Kategori",typeTitle:I="Tip",wageringTitle:z="Çevrimli",statusTitle:L="Durum",percentTitle:C="Hak Ediş Yüzdesi",infoLabel:q="Bonus bilgisi",applyDatePrefix:B="Başvuru Tarihi: ",requestLabel:D="Talep Et",reRequestLabel:E="Tekrar Talep Et",cancelLabel:S="Talebi İptal Et",unavailableLabel:K="Talep Edilemez",openStatus:R="Açık",unavailableStatus:A="Talep Edilemez"})=>{const[H,P]=i(m[0]?.value??"all"),U=[{key:"name",dataIndex:"name",title:T,maxWidth:220,render:(t,i)=>e("span",{className:"hub__pay-name hub__hist-nm",children:[e("span",{className:"hub__bonus-name",children:[a("span",{className:"hub__bonus-title",children:i.name}),e(o,{children:[a(h,{asChild:!0,children:a("i",{className:"hub__hist-creator","aria-label":q,children:a(l,{size:14})})}),a(u,{placement:"top",children:i.desc})]})]}),i.applyDate&&a("span",{className:"hub__pay-desc",children:B+i.applyDate})]})},{key:"cat",dataIndex:"cat",title:j,width:90},{key:"type",dataIndex:"type",title:I,width:110},{key:"wagering",dataIndex:"wagering",title:z,width:90},{key:"status",dataIndex:"status",title:L,width:150,render:e=>a(_,{s:String(e)})},{key:"percent",dataIndex:"percent",title:C,width:170,render:e=>a("span",{className:"hub__bonus-progress",children:a(d,{percent:Number(e)})})},{key:"actions",dataIndex:"key",title:"",width:180,render:(t,i)=>a("span",{className:"hub__pay-actions hub__pay-actions--full",children:i.status===R?a(r,{variant:"statable",state:"reject",size:"medium",onClick:()=>w?.(i),children:S}):i.status===A?a(r,{variant:"filled",size:"medium",disabled:!0,children:K}):e(r,{variant:"default",size:"medium",onClick:()=>f?.(i),children:[a(s,{size:14}),i.applyDate?E:D]})})}];return e(t,{children:[a("div",{className:"hub__hist-cats--wide",children:a(p,{options:m,value:H,onChange:P,idPrefix:"brq"})}),a("div",{className:"hub__hist-filters hub__hist-filters--2",children:[v,k,y,N].map((e,t)=>a(c,{size:"x-large",defaultValue:e[0],children:e.map(e=>a(g,{value:e,children:e},e))},t))}),a(b,{columns:U,data:n,cellHeight:"84px",marker:x})]})},w=({data:i,intro:l,onAccept:d,onReject:c,marker:o={desktop:"inn-bonus-activation-table",list:"inn-mobile-bonus-activation-list",methods:"inn-mobile-bonus-activation-list-items",item:"inn-mobile-bonus-activation-list-method-item"},idTitle:h="Id",nameTitle:u="Bonus İsmi",catTitle:p="Kategori",amountTitle:_="Miktar",acceptLabel:g="Kabul Et",rejectLabel:N="Reddet"})=>{const f=[{key:"id",dataIndex:"key",title:h,width:50,render:(e,t)=>a(v,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:u,maxWidth:300,render:(e,t)=>a(k,{name:t.name})},{key:"cat",dataIndex:"cat",title:p,width:150},{key:"amount",dataIndex:"amount",title:_,width:200,render:e=>a("span",{className:"hub__hist-amount",children:String(e)})},{key:"actions",dataIndex:"key",title:"",width:240,render:(t,i)=>e("span",{className:"hub__pay-actions",children:[e(r,{variant:"default",size:"medium",onClick:()=>d?.(i),children:[a(s,{size:14}),g]}),e(r,{variant:"statable",state:"reject",size:"medium",onClick:()=>c?.(i),children:[a(n,{size:14}),N]})]})}];return e(t,{children:[l&&a(m,{type:"info",variant:"filled",children:a(y,{children:l})}),a(b,{columns:f,data:i,cellHeight:"74px",marker:o})]})},x=({bonus:i,intro:l,onCancel:s,kindLabel:n="AKTİF BONUS",applyDateLabel:c="Başvuru Tarihi",cancelLabel:o="Bonusu İptal Et",wagerTitle:h="Bonus Çevrim Bilgisi",validLabel:u="Geçerlilik"})=>e(t,{children:[l&&a(m,{type:"info",variant:"filled",children:a(y,{children:l})}),a(N,{kind:n,name:i.name,dateLabel:c,date:i.applyDate,action:a(r,{variant:"statable",state:"reject",size:"medium",onClick:s,children:o}),fields:i.fields,children:e("div",{className:"hub__wager",children:[e("div",{className:"hub__wager-head",children:[a("span",{className:"hub__wager-title",children:h}),e("div",{className:"hub__status-date hub__wager-until",children:[a("span",{children:u}),a("span",{className:"hub__status-dateval",children:i.validUntil})]})]}),i.wagerings.map((t,i)=>e("div",{className:"hub__wager-row",children:[a("span",{className:"hub__wager-label",children:t.label}),e("div",{className:"hub__wager-bar",children:[a(d,{percent:t.percent,showInfo:!1}),a("span",{className:"hub__wager-amt",children:t.done+" / "+t.total})]})]},i))]})})]});export{x as HubActiveBonus,w as HubBonusActivation,f as HubBonusRequest,N as HubStatusCard};
@@ -0,0 +1 @@
1
+ import{jsx as a,jsxs as e}from"react/jsx-runtime";import{useState as l}from"react";import{Clock as i,Gauge as n,Star as r,Flame as o}from"lucide-react";import s from"../../button/index.js";import d from"../../input/index.js";import m from"../../select/index.js";import c from"../../textarea/index.js";import t from"../../alert/index.js";import h from"../../badge/index.js";import{FieldLabel as p,Field as u,FieldTitle as b}from"../../field/index.js";import{RadioGroup as _}from"../../radio/RadioGroup.js";import{RadioGroupItem as v}from"../../radio/RadioGroupItem.js";import{GetClassNameByPlatform as y}from"../../helpers/classname/GetClassNameByPlatform.js";import{SelectItem as f}from"../../select/SelectItem.js";import{AlertDescription as g}from"../../alert/Description.js";const N=(a,e)=>y(a)+" "+e,k=a=>a.name??a.label,x=a=>{const[e,i]=l(()=>Object.fromEntries(a.map(a=>[k(a),a.value??""])));return[e,(a,e)=>i(l=>({...l,[k(a)]:e}))]},C=({logo:e})=>a("span",{className:"hub__pay-logo",style:{background:e.color},"aria-hidden":!0,children:e.Icon?a(e.Icon,{size:18}):a("b",{children:e.initials})}),z=({options:l,value:i,onChange:n,idPrefix:r,marker:o})=>a(_,{value:i,onValueChange:n,orientation:"horizontal",className:o?N(o,"hub__pay-filter"):"hub__pay-filter",children:l.map(l=>a(p,{htmlFor:r+"-"+l.value,children:e(u,{orientation:"vertical",className:"hub__pay-tile",children:[a("span",{className:"hub__pay-badge",style:{background:l.color},"aria-hidden":!0,children:l.Icon?a(l.Icon,{size:18}):a("b",{children:l.initials})}),a(b,{children:l.label}),a(v,{value:l.value,id:r+"-"+l.value,className:"sr-only"})]})},l.value))}),j=({f:l,onChange:i})=>e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:l.label}),"textarea"===l.kind?a(c,{rows:3,defaultValue:l.value,placeholder:l.placeholder,onUpdate:a=>i?.(String(a??""))}):"select"===l.kind?a(m,{size:"x-large",defaultValue:l.value,locked:!!l.locked,onChange:a=>i?.(String(a??"")),children:l.options.map(e=>a(f,{value:e,children:e},e))}):l.locked?a(d,{size:"x-large",value:l.value,locked:!0}):a(d,{size:"x-large",defaultValue:l.value,placeholder:l.placeholder,onChange:a=>i?.(String(a??""))})]}),S=({logo:l,name:i,side:n})=>e("div",{className:"hub__paymodal-card",children:[a(C,{logo:l}),a("span",{className:"hub__paymodal-name",children:i}),n]}),L=({labels:l,values:r})=>a("div",{className:"hub__paymodal-tiles",children:l.map((l,o)=>a("div",{className:"hub__paymodal-tile",children:e("div",{children:[0===o?a(i,{"aria-hidden":!0}):a(n,{"aria-hidden":!0,style:1===o?{transform:"scale(-1, 1)"}:void 0}),e("span",{className:"hub__paymodal-tile-texts",children:[a("span",{className:"hub__paymodal-tile-label",children:l}),a("span",{className:"hub__paymodal-tile-value",children:r[o]})]})]})},l))}),F=({method:i,personFields:n=[],amountLabel:r="Yatırım Miktarı",submitLabel:o="Yatırım Talebi Gönder",favLabel:m="Favorilere Ekle",unfavLabel:c="Favorilerden Kaldır",onSubmit:t,onFavorite:h})=>{const[p,u]=l(!!i.favorite),[b,_]=l(""),[v,y]=x(n);return e("div",{className:"hub__paymodal",children:[a(S,{logo:i.logo,name:i.name,side:a(s,{variant:p?"default":"outline",size:"medium",onClick:()=>{u(!p),h?.(!p)},children:p?c:m})}),a(L,{labels:["Yatırım Süresi","Min Yatırım","Max Yatırım"],values:[i.time,i.min,i.max]}),a("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-form",children:[n.map(e=>a(j,{f:e,onChange:a=>y(e,a)},e.label)),e("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[a("label",{className:"hub__paymodal-label",children:r}),a(d,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:a("span",{children:"₺"}),value:b,onChange:a=>_(String(a))})]})]}),a("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-submit",children:a(s,{variant:"default",size:"large",disabled:!b,onClick:()=>t?.({method:i,amount:b,fields:v}),children:o})})]})},I=({account:i,fields:n=[],amountLabel:r="Çekim Miktarı",submitLabel:o="Çekim Talebi Gönder",note:m,onSubmit:c})=>{const[h,p]=l(""),[u,b]=x(n);return e("div",{className:"hub__paymodal",children:[a(S,{logo:i.logo,name:i.name}),a(L,{labels:["Çekim Süresi","Min Çekim","Max Çekim"],values:[i.time,i.min,i.max]}),a("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-form",children:[n.map(e=>a(j,{f:e,onChange:a=>b(e,a)},e.label)),e("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[a("label",{className:"hub__paymodal-label",children:r}),a(d,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:a("span",{children:"₺"}),value:h,onChange:a=>p(String(a))})]}),m&&a(t,{type:"info",variant:"filled",children:a(g,{children:m})})]}),a("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-submit",children:a(s,{variant:"default",size:"large",disabled:!h,onClick:()=>c?.({account:i,amount:h,fields:u}),children:o})})]})},G=({account:i,accountTypes:n,typeFields:r,personFields:o=[],tcField:m,phoneField:t,nameLabel:h="Çekim Hesabı Adı",descLabel:p="Çekim Hesabı Açıklaması",typeLabel:u="Çekim Hesabı Türü",addLabel:b="Çekim Hesabı Ekle",editLabel:_="Çekim Hesabını Güncelle",onSubmit:v})=>{const y=!!i,[f,g]=l(i?.tags[0]??n[0]?.value??"bank"),[N,k]=l(i?.name??""),[C,L]=l(i?.desc??""),F=n.find(a=>a.value===f)??n[0],I=r[f]??r.default??{pre:[],post:[]},G=a=>y?a:{...a,value:void 0},M=[...I.pre.map(G),...m?[m]:[],...o,...I.post.map(G),...t?[t]:[]],[T,Y]=x(M);return e("div",{className:"hub__paymodal",children:[y&&F?a(S,{logo:{color:F.color,Icon:F.Icon,initials:F.initials},name:F.label}):e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:u}),a(z,{options:n,value:f,onChange:g,idPrefix:"acct"})]}),e("div",{className:"hub__paymodal-form",children:[e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:h}),a(d,{size:"x-large",value:N,onChange:a=>k(String(a))})]}),e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:p}),a(c,{rows:3,value:C,onChange:a=>L("string"==typeof a?a:a?.target?.value??"")})]}),M.map(e=>a(j,{f:e,onChange:a=>Y(e,a)},f+"-"+e.label))]}),a("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-submit",children:a(s,{variant:"default",size:"large",disabled:!N||!C,onClick:()=>v?.({edit:y,type:f,name:N,desc:C,fields:T}),children:y?_:b})})]})},M=({row:l,favTitle:i="Favori",hotTitle:n="Popüler"})=>"group"===l.type?e("span",{className:"hub__pay-name",children:[a("span",{className:"hub__pay-groupname",children:l.name}),a("span",{children:a(h,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:l.methodCount+" Yöntem"})})]}):a("span",{className:"hub__pay-name",children:e("span",{className:"hub__pay-title",children:[l.name,l.favorite&&a("i",{className:"hub__pay-mark hub__pay-mark--fav",title:i,children:a(r,{size:9})}),l.popular&&a("i",{className:"hub__pay-mark hub__pay-mark--hot",title:n,children:a(o,{size:9})})]})});export{G as HubAccountModal,F as HubDepositModal,j as HubPayFieldRow,z as HubPayFilter,C as HubPayLogoBadge,S as HubPayModalCard,L as HubPayModalTiles,M as HubPayName,I as HubWithdrawModal};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as o,useMemo as t}from"react";import{Search as l,ChevronDown as n,Star as d,Flame as r,ChevronUp as s}from"lucide-react";import m from"../../button/index.js";import p from"../../input/index.js";import h from"../../badge/index.js";import c from"../../table/index.js";import{GetClassNameByPlatform as u}from"../../helpers/classname/GetClassNameByPlatform.js";import{HubPayFilter as b,HubPayLogoBadge as _,HubPayName as y}from"./cashier.js";const g=(e,a="")=>({key:(a?a+"-":"")+e.name,type:"method",name:e.name,logo:e.logo,time:e.time,min:e.min,max:e.max,favorite:e.favorite,popular:e.popular,method:e}),f=({row:a,nested:o,onDeposit:t,payLabel:l})=>e("div",{className:(o?"":"inn-mobile-deposit-list-method-item ")+"hub__dep-item"+(o?" hub__dep-item--nested":""),children:[i(_,{logo:a.logo}),e("div",{className:"hub__dep-main",children:[e("span",{className:"hub__dep-title",children:[a.favorite&&i("i",{className:"hub__pay-mark hub__pay-mark--fav",title:"Favori",children:i(d,{size:9})}),a.popular&&i("i",{className:"hub__pay-mark hub__pay-mark--hot",title:"Popüler",children:i(r,{size:9})}),i("span",{className:"hub__dep-name",children:a.name})]}),e("div",{className:"hub__dep-meta",children:[e("div",{className:"hub__dep-amts",children:[i("span",{children:"Min "+a.min}),i("span",{children:"Maks "+a.max})]}),i("span",{className:"hub__dep-time",children:a.time})]})]}),i(m,{size:"small",onClick:()=>a.method&&t(a.method),children:l})]}),k=({row:a,open:o,onToggle:t,onDeposit:l,payLabel:d,methodWord:r})=>e("div",{className:"inn-mobile-deposit-list-method-group hub__dep-group","data-open":o,children:[e("button",{type:"button",className:"hub__dep-item hub__dep-grouprow",onClick:()=>t(a.key),children:[i(_,{logo:a.logo}),e("div",{className:"hub__dep-main",children:[i("span",{className:"hub__dep-name",children:a.name}),i("span",{children:i(h,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:a.methodCount+" "+r})})]}),i(n,{className:"hub__dep-chev","aria-hidden":!0})]}),i("div",{className:"inn-mobile-deposit-list-method-group-submethods hub__dep-sub",children:i("div",{className:"hub__dep-sub-inner",children:a.children?.map(e=>i(f,{row:e,nested:!0,onDeposit:l,payLabel:d},e.key))})})]}),x=({methods:d,filters:r,onDeposit:h,isMobile:x=!1,filterMarker:N="inn-deposit-filter-bar",tableMarker:v="inn-deposit-table",searchPlaceholder:w="Arama",minPlaceholder:C="Min",payLabel:z="Para Yatır",showGroupLabel:L="Grubu Göster",hideGroupLabel:G="Grubu Gizle",methodWord:M="Yöntem",emptyText:T="Yatırım yöntemi bulunamadı!",timeTitle:j="Süre",nameTitle:P="İsim",minTitle:D="Min Yatırım",maxTitle:I="Max Yatırım"})=>{const[B,Y]=o("all"),[S,W]=o(""),[F,K]=o(""),[A,E]=o([]),H=t(()=>(e=>e.map(e=>"group"===e.kind?{key:e.id,type:"group",name:e.name,logo:e.logo,time:"",min:"",max:"",methodCount:e.methods.length,children:e.methods.map(a=>g(a,e.id))}:g(e.method)))(d),[d]),R=t(()=>((e,a,i,o,t)=>{const l=o.trim().toLowerCase(),n=parseFloat(t.replace(",","."))||0;if("all"===i&&!l&&!n)return a;const d=new Set,r=[];for(const a of e)for(const e of"group"===a.kind?a.methods:[a.method])d.has(e.name)||(d.add(e.name),r.push(e));return r.filter(e=>("all"===i||("popular"===i?e.popular:"favorites"===i?e.favorite:e.tags.includes(i)))&&(!l||e.name.toLowerCase().includes(l))&&(!n||e.minVal<=n)).map(e=>g(e))})(d,H,B,S,F),[d,H,B,S,F]),V=e=>{E(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},q=[{key:"logo",dataIndex:"logo",title:"",width:70,render:(e,a)=>i(_,{logo:a.logo})},{key:"name",dataIndex:"name",title:P,render:(e,a)=>i(y,{row:a})},{key:"time",dataIndex:"time",title:j,width:140},{key:"min",dataIndex:"min",title:D,width:140},{key:"max",dataIndex:"max",title:I,width:140},{key:"action",dataIndex:"key",title:"",width:170,render:(a,o)=>"group"===o.type?i("span",{className:"hub__pay-actions",children:e(m,{variant:"solid",size:"medium",onClick:()=>V(o.key),children:[A.includes(o.key)?G:L,A.includes(o.key)?i(s,{}):i(n,{})]})}):i("span",{className:"hub__pay-actions",children:i(m,{size:"medium",onClick:()=>o.method&&h(o.method),children:z})})}];return e(a,{children:[i(b,{options:r,value:B,onChange:Y,idPrefix:"dep",marker:N}),e("div",{className:"hub__pay-search"+(x?" hub__pay-search--single":""),children:[i(p,{size:"x-large",placeholder:w,addonBefore:i(l,{size:16}),value:S,onChange:e=>W(String(e))}),!x&&i(p,{size:"x-large",placeholder:C,addonBefore:"₺",value:F,onChange:e=>K(String(e))})]}),i("div",x?{className:"inn-mobile-deposit-list hub__deplist",children:i("div",{className:"inn-mobile-deposit-list-methods hub__deplist-methods",children:0===R.length?i("div",{className:"hub__pay-empty",children:i("span",{children:T})}):R.map(e=>"group"===e.type?i(k,{row:e,open:A.includes(e.key),onToggle:V,onDeposit:h,payLabel:z,methodWord:M},e.key):i(f,{row:e,onDeposit:h,payLabel:z},e.key))})}:{className:u(v)+" hub__paybox hub__pay-table",children:i(c,{columns:q,data:R,expandedKeys:A,onExpandedKeysChange:e=>E(e),cellHeight:"74px",headerBg:!1,hideGroupButtons:!0,getTRProps:(e,a,i)=>i>0?{className:"hub__pay-subrow"}:"group"===e.type?{className:"hub__pay-grouprow"}:{}})})]})};export{x as HubDepositPage,x as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as t,jsx as i}from"react/jsx-runtime";import{useState as a,Fragment as n}from"react";import{Eye as r,Search as d}from"lucide-react";import l from"../../button/index.js";import s from"../../badge/index.js";import o from"../../input/index.js";import m from"../../select/index.js";import h from"../../datepicker/index.js";import{Tooltip as c}from"../../tooltip/Tooltip.js";import{TooltipTrigger as p}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as k}from"../../tooltip/TooltipContent.js";import{HubPayFilter as u}from"./cashier.js";import{HubTable as y,HubCopyBtn as g,HubHistName as x,HubDt as w,HubStatusBadge as b}from"./table.js";import{SelectItem as f}from"../../select/SelectItem.js";const I=({cols:t,filters:r,onFilter:d,minPlaceholder:l="Min",maxPlaceholder:s="Maks",startPlaceholder:c="Tarih Başlangıç",endPlaceholder:p="Tarih Bitiş"})=>{const[k,u]=a({}),y=(e,t,i)=>{const a=((e,t)=>e.name??String(t))(e,t),n={...k,[a]:"object"==typeof i&&"object"==typeof k[a]?{...k[a],...i}:i};u(n),d?.(n)};return i("div",{className:"hub__hist-filters hub__hist-filters--"+t,children:r.map((t,a)=>"select"===t.kind?i(m,{size:"x-large",defaultValue:t.options[0],"aria-label":t.ariaLabel,onChange:e=>y(t,a,String(e??"")),children:t.options.map(e=>i(f,{value:e,children:e},e))},a):"minmax"===t.kind?e("div",{className:"hub__hist-minmax",children:[i(o,{size:"x-large",placeholder:l,addonBefore:i("span",{children:"₺"}),onChange:e=>y(t,a,{min:String(e??"")})}),i(o,{size:"x-large",placeholder:s,addonBefore:i("span",{children:"₺"}),onChange:e=>y(t,a,{max:String(e??"")})})]},a):e(n,{children:[i(h,{size:"x-large",placeholder:c,"aria-label":c,onChange:e=>y(t,a,{start:String(e??"")})}),i(h,{size:"x-large",placeholder:p,"aria-label":p,onChange:e=>y(t,a,{end:String(e??"")})})]},a))})},T=({cats:e,idPrefix:t,wide:n})=>{const[r,d]=a(e[0]?.value??"all"),l=i(u,{options:e,value:r,onChange:d,idPrefix:t});return n?i("div",{className:"hub__hist-cats--wide",children:l}):l},v=({children:e})=>i("span",{className:"hub__hist-amount",children:e}),S=({data:a,onFilter:n,cats:d,providers:s,statuses:o,onDetail:m,marker:h={list:"inn-mobile-game-history-list",methods:"inn-mobile-game-history-list-methods",item:"inn-mobile-game-history-list-item"},tokenTitle:c="Fiş",gameTitle:p="Oyun",startTitle:k="Başlangıç",endTitle:u="Bitiş",oldBalTitle:b="Eski Bakiye",newBalTitle:f="Yeni Bakiye",winTitle:S="Kazanma",detailLabel:B="Detay"})=>{const _=[{key:"token",dataIndex:"key",title:c,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"game",dataIndex:"game",title:p,maxWidth:200,render:(e,t)=>i(x,{name:t.game,desc:t.cat})},{key:"start",dataIndex:"start",title:k,width:130,render:e=>i(w,{v:String(e)})},{key:"end",dataIndex:"end",title:u,width:130,render:e=>i(w,{v:String(e)})},{key:"oldBal",dataIndex:"oldBal",title:b,width:130},{key:"newBal",dataIndex:"newBal",title:f,width:130},{key:"win",dataIndex:"win",title:S,width:120,align:"right",render:e=>i(v,{children:String(e)})},{key:"details",dataIndex:"key",title:"",width:100,render:(t,a)=>i("span",{className:"hub__pay-actions",children:e(l,{variant:"solid",size:"medium",onClick:()=>m(a),children:[i(r,{size:13}),B]})})}];return e(t,{children:[i(T,{cats:d,idPrefix:"gh"}),i(I,{onFilter:n,cols:2,filters:[{kind:"select",options:s},{kind:"select",options:o},{kind:"daterange"}]}),i(y,{columns:_,data:a,cellHeight:"54px",marker:h})]})},B=({data:a,onFilter:n,cats:r,methods:d,statuses:l,types:s,marker:o={list:"inn-mobile-payment-history-list",methods:"inn-mobile-payment-history-list-methods",item:"inn-mobile-payment-history-list-item"},idTitle:m="Id",providerTitle:h="Sağlayıcı",statusTitle:c="Durum",dateTitle:p="Tarih",oldBalTitle:k="Eski Bakiye",newBalTitle:u="Yeni Bakiye",amountTitle:f="Miktar"})=>{const S=[{key:"id",dataIndex:"key",title:m,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:h,maxWidth:200,render:(e,t)=>i(x,{name:t.name,desc:t.sub})},{key:"status",dataIndex:"status",title:c,width:130,render:e=>i(b,{s:String(e)})},{key:"date",dataIndex:"date",title:p,width:130,render:e=>i(w,{v:String(e)})},{key:"oldBal",dataIndex:"oldBal",title:k,width:130},{key:"newBal",dataIndex:"newBal",title:u,width:130},{key:"amount",dataIndex:"amount",title:f,width:120,align:"right",render:e=>i(v,{children:String(e)})}];return e(t,{children:[i(T,{cats:r,idPrefix:"ph"}),i(I,{onFilter:n,cols:3,filters:[{kind:"select",options:d},{kind:"select",options:l},{kind:"select",options:s},{kind:"minmax"},{kind:"daterange"}]}),i(y,{columns:S,data:a,cellHeight:"54px",marker:o})]})},_=({data:a,onFilter:n,cats:r,creators:d,statuses:l,types:s,marker:o={list:"inn-mobile-bonus-history-list",methods:"inn-mobile-bonus-history-list-methods",item:"inn-mobile-bonus-history-list-item"},nameTitle:m="İsim",catTitle:h="Kategori",statusTitle:c="Durum",applyTitle:p="Başvuru Tarihi",finishTitle:k="Tamamlanma",profitTitle:u="Net Kar",cashbackTitle:g="Geri Ödeme",amountTitle:f="Bonus Miktarı",creatorLabel:S="Oluşturan: "})=>{const B=[{key:"name",dataIndex:"name",title:m,maxWidth:200,render:(e,t)=>i(x,{name:t.name,desc:t.sub,creator:t.creator,creatorLabel:S})},{key:"cat",dataIndex:"cat",title:h,width:90},{key:"status",dataIndex:"status",title:c,width:150,render:e=>i(b,{s:String(e)})},{key:"apply",dataIndex:"apply",title:p,width:145,render:e=>i(w,{v:String(e)})},{key:"finish",dataIndex:"finish",title:k,width:145,render:e=>i(w,{v:String(e)})},{key:"profit",dataIndex:"profit",title:u,width:100},{key:"cashback",dataIndex:"cashback",title:g,width:110},{key:"amount",dataIndex:"amount",title:f,width:120,align:"right",render:e=>i(v,{children:String(e)})}];return e(t,{children:[i(T,{cats:r,idPrefix:"bh",wide:!0}),i(I,{onFilter:n,cols:3,filters:[{kind:"select",options:d},{kind:"select",options:l},{kind:"select",options:s},{kind:"minmax"},{kind:"daterange"}]}),i(y,{columns:B,data:a,cellHeight:"54px",marker:o})]})},z=({data:a,onFilter:n,providers:o,statuses:m,onGames:h,marker:u={list:"inn-mobile-free-spin-history-list",methods:"inn-mobile-free-spin-history-list-methods",item:"inn-mobile-free-spin-history-list-item"},idTitle:f="Id",providerTitle:T="Sağlayıcı",winTitle:S="Kazanç",statusTitle:B="Durum",gamesTitle:_="Oyun Sayısı",spinsTitle:z="Spin Sayısı",startTitle:j="Başlangıç",endTitle:C="Bitiş",gamesTooltip:F="Free Spin Oyunları",viewGamesLabel:P="Geçerli Oyunları Görüntüle"})=>{const N=[{key:"id",dataIndex:"key",title:f,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"provider",dataIndex:"provider",title:T,maxWidth:200,render:(e,t)=>i(x,{name:t.provider})},{key:"status",dataIndex:"status",title:S,width:140,render:e=>i(b,{s:String(e)})},{key:"games",dataIndex:"games",title:_,width:120,render:(t,a)=>e("span",{className:"hub__hist-count",children:[i(s,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(t)}),e(c,{children:[i(p,{asChild:!0,children:i(l,{variant:"ghost",size:"icon-sm","aria-label":F,onClick:()=>h(a),children:i(r,{size:13})})}),i(k,{placement:"top",children:F})]})]})},{key:"spins",dataIndex:"spins",title:z,width:110,render:e=>i(s,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(e)})},{key:"start",dataIndex:"start",title:j,width:145,render:e=>i(w,{v:String(e)})},{key:"end",dataIndex:"end",title:C,width:145,render:e=>i(w,{v:String(e)})},{key:"won",dataIndex:"won",title:S,width:110,align:"right",render:e=>i(v,{children:String(e)})}],D=[{key:"id",dataIndex:"key",title:f,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"provider",dataIndex:"provider",title:T,maxWidth:200,render:(e,t)=>i(x,{name:t.provider})},{key:"status",dataIndex:"status",title:B,width:140,render:e=>i(b,{s:String(e)})},{key:"games",dataIndex:"games",title:_,width:120,render:e=>i(v,{children:String(e)})},{key:"spins",dataIndex:"spins",title:z,width:110,render:e=>i(s,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(e)})},{key:"start",dataIndex:"start",title:j,width:145,render:e=>i(w,{v:String(e)})},{key:"end",dataIndex:"end",title:C,width:145,render:e=>i(w,{v:String(e)})},{key:"won",dataIndex:"won",title:S,width:110,render:e=>i(v,{children:String(e)})},{key:"actions",dataIndex:"key",title:"",width:220,render:(t,a)=>i("span",{className:"hub__pay-actions hub__pay-actions--full",children:e(l,{variant:"solid",size:"medium",onClick:()=>h(a),children:[i(d,{size:14}),P]})})}];return e(t,{children:[i(I,{onFilter:n,cols:4,filters:[{kind:"select",options:o},{kind:"select",options:m},{kind:"daterange"}]}),i(y,{columns:N,mobileColumns:D,data:a,cellHeight:"54px",marker:u})]})};export{_ as HubBonusHistory,z as HubFreespinHistory,S as HubGameHistory,B as HubPaymentHistory};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useRef as n,useState as i,useEffect as l}from"react";import{PanelLeftOpen as s,PanelLeftClose as r,EyeOff as c,Eye as t,ChevronRight as o,ChevronLeft as d,X as h}from"lucide-react";import{GetClassNameByPlatform as m}from"../../helpers/classname/GetClassNameByPlatform.js";import{realmOf as b}from"../../hooks/useRealm.js";import{useHubMobile as u,hubClass as _}from"./platform.js";import{Avatar as v}from"../../avatar/index.js";import p from"../../button/index.js";import{Tabs as N}from"../../tabs/Tabs.js";import{TabsList as f}from"../../tabs/TabsList.js";import{TabsTrigger as g}from"../../tabs/TabsTrigger.js";import"../../tabs/TabsContent.js";const k=({nav:k,section:y,onSectionChange:w,tab:C,onTabChange:T,open:j=!0,onOpenChange:L,onClose:z,user:A,balance:x,rootLabel:M="Kullanıcı Merkezi",closeLabel:E="Kapat",mobileHome:B,children:P,rootProps:R,className:I})=>{const K=n(null),D=u(K);var G,W;l(()=>{const e=b(G.current).doc?.documentElement;if(e)return e.classList.toggle("itd-mobile",W),()=>e.classList.remove("itd-mobile")},[G=K,W=D]);const[H,O]=i(!1),[S,V]=i(!1);l(()=>{const e=b(K.current).win;if(!e)return;const a=e.matchMedia("(max-width: 75rem)"),n=()=>V(a.matches);return n(),a.addEventListener("change",n),()=>a.removeEventListener("change",n)},[]);const Y=S||H,q=!j,[F,J]=i(!1),Q=n(q);l(()=>{!Q.current&&q&&J(!0),Q.current=q},[q]),l(()=>{if(!F)return;const e=setTimeout(()=>J(!1),300);return()=>clearTimeout(e)},[F]);const U=q?F?"closing":"menu":"section",X=k.find(e=>e.key===y)??k[0],Z=X?.tabs??[{value:"soon",label:X?.label}],$=Z.find(e=>e.value===C)?.label??"";return e("div",{className:"hub"+(Y?" hub--rail":"")+(I?" "+I:""),ref:K,"data-mobile-view":U,...R,children:a("div",{className:"hub__panel",children:[a("aside",{className:"inn-userhub-sidebar hub__side",children:[a("div",{className:"inn-userhub-user-detail hub__user",children:[A.avatar??e(v,{className:"hub__avatar","aria-hidden":!0}),a("div",{children:[e("div",{className:"hub__username",children:A.name}),null!=A.country&&e("div",{className:"hub__country",children:A.country})]}),!S&&e("button",{type:"button",className:"hub__side-toggle",onClick:()=>O(e=>!e),"aria-label":Y?"Menüyü genişlet":"Menüyü daralt",children:e(Y?s:r,{size:16})})]}),e("div",{className:"hub__side-bal",children:a("div",{className:"hub__side-bal-inner",children:[a("div",{className:"inn-userhub-balance hub__balance",children:[a("div",{className:"hub__balance-info",children:[a("div",{className:"hub__balance-head",children:[e("span",{children:x.label??"Aktif Bakiye"}),x.onToggleMask&&e("button",{type:"button",className:"hub__balance-eye",onClick:x.onToggleMask,"aria-label":x.masked?"Bakiyeyi göster":"Bakiyeyi gizle",children:x.masked?e(c,{"aria-hidden":!0}):e(t,{"aria-hidden":!0})})]}),e("div",{className:"hub__balance-amount",children:x.amount})]}),(x.onDeposit||x.onWithdraw)&&a("div",{className:"hub__balance-actions",children:[a(p,{variant:"default",size:"small",onClick:x.onDeposit,children:[x.depositIcon,x.depositLabel??"PARA YATIR"]}),a(p,{variant:"default",size:"small",onClick:x.onWithdraw,children:[x.withdrawIcon,x.withdrawLabel??"PARA ÇEK"]})]})]}),x.rows&&x.rows.length>0&&e("dl",{className:"inn-userhub-balance-details hub__rows",children:x.rows.map((n,i)=>a("div",{className:"hub__row",children:[e("dt",{children:n.label}),e("dd",{children:n.value})]},i))})]})}),e("nav",{className:"inn-userhub-navigation hub__nav",children:k.map(n=>a("button",{className:"hub__nav-item",onClick:()=>w(n.key),...n.key===y?{"data-active":""}:{},children:[n.icon,e("span",{children:n.label}),e(o,{"aria-hidden":!0})]},n.key))})]}),B,a("main",{className:_("inn-userhub-inner","hub__main"),onAnimationEnd:e=>{"hub-slide-out"===e.animationName&&J(!1)},children:[a("div",{className:"inn-mobile-userhub-breadcrumb hub__mhead",children:[e(p,{variant:"solid",size:"icon-sm",className:"hub__mback","aria-label":"Geri",onClick:()=>{J(!0),L?.(!1)},children:e(d,{size:18})}),e("span",{className:"hub__mtitle",children:X?.label})]}),a("div",{className:"inn-userhub-breadcrumb hub__head",children:[a("div",{className:"hub__crumbs",children:[e("span",{children:M}),e(o,{"aria-hidden":!0}),e("span",{children:X?.label}),e(o,{"aria-hidden":!0}),e("b",{children:$})]}),e(p,{variant:"ghost",className:"hub__x","aria-label":E,onClick:z,children:e(h,{size:18})})]}),e("div",{className:"hub__body",children:a(N,{variant:"line",compact:!0,accent:!0,className:m("inn-userhub-sub-menu"),overflow:!D,value:C,onValueChange:T,children:[e(f,{children:Z.map(({value:a,label:n})=>e(g,{value:a,className:"hub__tab",children:n},a))}),P]})})]})]})})};export{k as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as a,jsx as s}from"react/jsx-runtime";import{useState as l}from"react";import{ImageOff as i,MessageSquare as r,Star as t}from"lucide-react";import n from"../../button/index.js";import c from"../../input/index.js";import d from"../../select/index.js";import o from"../../textarea/index.js";import m from"../../upload/index.js";import{FileTypes as h}from"../../enums/enum.js";import{HubStatusBadge as u}from"./table.js";import{SelectItem as b}from"../../select/SelectItem.js";const _=({categories:l,uploadAction:i,header:r="Yeni Mesaj / Talep",categoryPlaceholder:t="Kategori",subjectPlaceholder:u="Konu",messagePlaceholder:_="Mesajınızı buraya yazın...",imageHeader:p="Görsel Ekle",optionalNote:g="(isteğe bağlı)",submitLabel:N="Mesajı Gönder",onSubmit:v})=>e(a,{children:[s("div",{className:"inn-sub-page-header hub__section",children:r}),e("div",{className:"hub__grid",children:[s(d,{size:"x-large",placeholder:t,"aria-label":t,children:l.map(e=>s(b,{value:e,children:e},e))}),s(c,{size:"x-large",placeholder:u,"aria-label":u})]}),s("div",{className:"hub__grid hub__grid--full",children:s(o,{rows:6,placeholder:_,"aria-label":_})}),e("div",{className:"inn-sub-page-header hub__section",children:[p," ",s("span",{className:"hub__msg-optional",children:g})]}),s("div",{className:"hub__grid hub__grid--full",children:s(m,{action:i,requestMethod:"post",binaryName:"image",fileTypes:[h.JPG,h.JPEG,h.PNG],maxFileSize:5120,showDeleteIcon:!0,showPreviewIcon:!0,containerHeight:200,fluid:!0})}),s(n,{variant:"default",size:"large",className:"hub__save",onClick:v,children:N})]}),p=({t:a,onOpen:l,answeredStatus:i,processingStatus:t})=>{return e("button",{type:"button",className:"hub__msg-item",onClick:()=>l(a),children:[s("span",{className:"hub__msg-icon hub__msg-icon--"+(n=a.status,c=i,d=t,n===d?"wait":n===c?"answered":"closed"),children:s(r,{size:17})}),e("span",{className:"hub__msg-main",children:[e("span",{className:"hub__msg-top",children:[s("span",{className:"hub__msg-subject",children:a.subject}),s(u,{s:a.status})]}),s("span",{className:"hub__msg-preview",children:a.preview}),e("span",{className:"hub__msg-sub",children:[s("span",{children:"#"+a.no+" · "+a.category}),s("span",{children:a.date})]})]})]});var n,c,d},g=({tickets:i,filters:r,onOpen:t,allLabel:n="Tümü",answeredStatus:c="Yanıtlandı",processingStatus:d="İşlemde"})=>{const[o,m]=l(n),h=o===n?i:i.filter(e=>e.status===o);return e(a,{children:[s("div",{className:"hub__msg-filter",children:r.map(e=>s("button",{type:"button",className:o===e?"is-active":"",onClick:()=>m(e),children:e},e))}),s("div",{className:"hub__msg-list",children:h.map(e=>s(p,{t:e,onOpen:t,answeredStatus:c,processingStatus:d},e.key))})]})},N=({value:e,onChange:a,starLabel:l=" yıldız"})=>s("span",{className:"hub__stars",children:[1,2,3,4,5].map(i=>s("button",{type:"button",className:"hub__star"+(i<=e?" is-on":""),onClick:()=>a(i),"aria-label":i+l,children:s(t,{size:20})},i))}),v=({ticket:a,closedStatus:r="Kapandı",youLabel:t="Siz",supportLabel:c="Destek Ekibi",closedNotice:d="Bu konu destek ekibi tarafından kapatılmıştır.",rateLabel:m="Hizmetimizi puanlayın:",replyPlaceholder:h="Yanıtınızı yazın...",replyLabel:u="Yanıtla",onReply:b,onRate:_})=>{const[p,g]=l(a.rating??0),v=a.status===r;return e("div",{className:"hub__thread",children:[s("div",{className:"hub__thread-body",children:a.messages.map((a,l)=>"system"===a.from?s("div",{className:"hub__msg-sys",children:a.text},l):e("div",{className:"hub__bubble hub__bubble--"+a.from,children:[e("div",{className:"hub__bubble-meta",children:[s("span",{className:"hub__bubble-who",children:"user"===a.from?t:c}),s("span",{className:"hub__bubble-time",children:a.time})]}),s("div",{className:"hub__bubble-text",children:a.text}),a.image&&s("span",{className:"hub__bubble-img",children:s(i,{size:20})})]},l))}),e("div",v?{className:"hub__thread-rate",children:[s("span",{className:"hub__thread-closed",children:d}),e("div",{className:"hub__rate-row",children:[s("span",{className:"hub__rate-label",children:m}),s(N,{value:p,onChange:e=>{g(e),_?.(e)}})]})]}:{className:"hub__thread-reply",children:[s(o,{rows:3,placeholder:h,"aria-label":u}),s(n,{variant:"default",size:"default",onClick:b,children:u})]})]})};export{g as HubMessageInbox,_ as HubNewTicketForm,v as HubTicketThread};
@@ -0,0 +1 @@
1
+ import{useState as o,useEffect as e}from"react";import{realmOf as r}from"../../hooks/useRealm.js";import{GetClassNameByPlatform as m}from"../../helpers/classname/GetClassNameByPlatform.js";const s=o=>!!r(o).doc?.cookie.includes("web-platform=mobile"),t=r=>{const[m,t]=o(s);return e(()=>{t(s(r?.current))},[r]),m},a=(o,e)=>m(o)+" "+e;export{a as hubClass,t as useHubMobile};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as a,jsx as l}from"react/jsx-runtime";import{useState as i}from"react";import{Crown as n,Medal as r,TrendingUp as s,Gamepad2 as d,Folder as t,Trophy as c,FileQuestion as h,User as m,ChevronRight as o,Info as u}from"lucide-react";import _ from"../../button/index.js";import b from"../../progress/index.js";import p from"../../select/index.js";import v from"../../table/index.js";import{Avatar as g}from"../../avatar/index.js";import{HoverCard as N}from"../../hovercard/HoverCard.js";import{HoverCardTrigger as f}from"../../hovercard/HoverCardTrigger.js";import{HoverCardContent as y}from"../../hovercard/HoverCardContent.js";import{Sheet as w,SheetTrigger as k,SheetContent as x,SheetHeader as L,SheetTitle as C}from"../../dialog/Dialog.js";import{SelectItem as T}from"../../select/SelectItem.js";const S=({Icon:a})=>l("span",{className:"hub__medal-shape","aria-hidden":!0,children:e("span",{className:"hub__medal-hexwrap",children:[e("svg",{className:"hub__medal-hexsvg",viewBox:"0 0 48 54",children:[l("defs",{children:e("linearGradient",{id:"hub-gold",x1:"0",y1:"0",x2:"1",y2:"1",children:[l("stop",{offset:"0",stopColor:"#ffd54d"}),l("stop",{offset:"0.55",stopColor:"#f1ab00"}),l("stop",{offset:"1",stopColor:"#d98e00"})]})}),l("path",{d:"M28.3 3.55 L41.7 11.45 Q46 14 46 19 L46 35 Q46 40 41.7 42.55 L28.3 50.45 Q24 53 19.7 50.45 L6.3 42.55 Q2 40 2 35 L2 19 Q2 14 6.3 11.45 L19.7 3.55 Q24 1 28.3 3.55 Z",fill:"url(#hub-gold)"})]}),l("span",{className:"hub__medal-glyph",children:l(a,{})})]})}),j=({medal:a,onOpen:i})=>e("button",{type:"button",className:"hub__medal"+(a.locked?" hub__medal--locked":""),onClick:()=>i(a),children:[l("span",{className:"hub__medal-visual",children:l(S,{Icon:a.Icon})}),e("span",{className:"hub__medal-bottom",children:[l("span",{className:"hub__medal-name",children:a.name}),l("span",{className:"hub__medal-countwrap",children:e("span",{className:"hub__medal-count",children:[l(m,{"aria-hidden":!0}),a.count]})})]})]}),z=({medal:a,durationLabel:i="Süre",quantityLabel:n="Miktar",earnersLabel:r="Hakeden Sayısı"})=>e("div",{className:"hub__medal-detail",children:[l("span",{className:"hub__medal-visual",children:l(S,{Icon:a.Icon})}),l("div",{className:"hub__medal-detail-name",children:a.name}),l("p",{className:"hub__medal-detail-desc",children:a.description}),e("dl",{className:"hub__medal-detail-rows",children:[e("div",{children:[l("dt",{children:i}),l("dd",{children:a.duration})]}),e("div",{children:[l("dt",{children:n}),l("dd",{children:a.quantity})]}),e("div",{children:[l("dt",{children:r}),l("dd",{children:a.count})]})]})]}),I=({marker:a,icon:i,title:n,titleExtra:r,action:s,children:d})=>e("section",{className:a?a+" hub__box":"hub__box",children:[e("div",{className:"inn-sub-page-header hub__box-head",children:[e("span",{className:"hub__box-title",children:[i,n,r]}),s]}),l("hr",{className:"hub__hairline"}),d]}),O=({stats:a})=>l("div",{className:"hub__stats",children:a.map((a,i)=>e("div",{className:"hub__stat",children:[l("div",{className:"hub__stat-label",children:a.label}),l("div",{className:"hub__stat-value",children:a.value})]},i))}),D=({label:a,onClick:i})=>e(_,{variant:"link",size:"x-small",className:"hub__details",onClick:i,children:[a,l(o,{"aria-hidden":!0})]}),K=({user:i,vip:c,medals:h,stats:m,topSlots:o,onMedalOpen:u,onVipClub:p,onMedalsDetail:v,onStatsDetail:N,vipClubLabel:f="VIP Klübü",medalsTitle:y="Madalyalar",statsTitle:w="İstatistikler",topSlotsTitle:k="En Çok Oynadığınız Slot Oyunları",liveTitle:x="En Çok Oynadığınız Canlı Casino Oyunları",detailsLabel:L="Detaylar",cevrimLabel:C="Çevrim",noDataLabel:T="Veri Yok"})=>e(a,{children:[e("div",{className:"inn-user-profile-summary hub__profile hub__profile--user",children:[i.avatar??l(g,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e("div",{children:[l("div",{className:"hub__username",children:i.username}),null!=i.fullname&&l("div",{className:"hub__fullname",children:i.fullname})]})]}),e("section",{className:"inn-vip-level-summary hub__vip",children:[e("div",{className:"hub__vip-head",children:[e("div",{className:"hub__vip-meta",children:[l("div",{className:"inn-vip-level-title hub__vip-title",children:c.title}),l("span",{className:"hub__vip-dp",children:c.dp})]}),e(_,{size:"small",className:"hub__vip-btn",onClick:p,children:[l(n,{"aria-hidden":!0}),f]})]}),e("div",{className:"inn-vip-level-progress hub__vip-progress",children:[l(b,{percent:c.percent,showInfo:!1,status:"success"}),l("span",{className:"hub__vip-next",children:c.nextText})]})]}),l(I,{marker:"inn-medals-summary-box",icon:l(r,{"aria-hidden":!0}),title:y,action:l(D,{label:L,onClick:v}),children:l("div",{className:"inn-medals-summary hub__medals",children:h.slice(0,8).map(e=>l(j,{medal:e,onOpen:u},e.name))})}),l(I,{icon:l(s,{"aria-hidden":!0}),title:w,action:l(D,{label:L,onClick:N}),children:l(O,{stats:m})}),l(I,{marker:"inn-favorite-casino-games-summary-box",icon:l(d,{"aria-hidden":!0}),title:k,children:l("div",{className:"inn-favorite-casino-games-summary hub__games",children:o.map(a=>e("div",{className:"hub__game",children:[l("span",{className:"hub__game-art hub__game-art--"+a.art,"aria-hidden":!0,children:a.emoji}),e("div",{className:"hub__game-info",children:[l("div",{className:"hub__game-name",children:a.name}),e("div",{children:[l("div",{className:"hub__game-amount",children:a.amount}),l("div",{className:"hub__game-cur",children:C})]})]})]},a.name))})}),l(I,{marker:"inn-favorite-live-casino-games-summary-box",icon:l(d,{"aria-hidden":!0}),title:x,children:l("div",{className:"inn-favorite-live-casino-games-summary hub__games",children:[1,2,3].map(a=>e("div",{className:"hub__game hub__game--empty",children:[l(t,{"aria-hidden":!0}),l("span",{className:"hub__empty-text",children:T})]},a))})})]}),M=({tips:a,unitLabel:i="madalya:",winLabel:n="ödül kazan"})=>l("div",{className:"hub__reward-tips",children:a.map(([a,r],s)=>e("span",{className:"hub__reward-tip",children:[a," ",i," ",l("b",{children:r})," ",n]},s))}),Q=({tips:i,sheetTitle:n,unitLabel:r,winLabel:s})=>e(a,{children:[l("span",{className:"hub__reward-info hub__reward-info--hover",children:e(N,{children:[l(f,{children:l(u,{"aria-hidden":!0,className:"hub__reward-info-icon"})}),l(y,{variant:"filled",children:l(M,{tips:i,unitLabel:r,winLabel:s})})]})}),l("span",{className:"hub__reward-info hub__reward-info--sheet",children:e(w,{children:[l(k,{asChild:!0,children:l("button",{type:"button",className:"hub__reward-info-btn","aria-label":"string"==typeof n?n:void 0,children:l(u,{"aria-hidden":!0,className:"hub__reward-info-icon"})})}),e(x,{side:"bottom",children:[l(L,{children:l(C,{children:n})}),l(M,{tips:i,unitLabel:r,winLabel:s})]})]})})]}),E=e=>{const a=e.currentTarget.querySelector(".hub__reward-art");a&&(a.classList.add("shake"),a.addEventListener("animationend",()=>a.classList.remove("shake"),{once:!0}))},H=({medals:i,rewardTiers:n,rewardTips:s,rewardPercent:d=10,onMedalOpen:t,rewardsTitle:h="Ödüller",rewardsSheetTitle:m="Ödül Detayları",rewardUnitLabel:o="madalya:",rewardWinLabel:u="ödül kazan",earnedTitle:_="Kazançlarınız",earnedCountText:p="2 / 20 Hakedildi",awaitingTitle:v="Kilidi Açılması Bekleyenler"})=>e(a,{children:[e(I,{icon:l(c,{"aria-hidden":!0}),title:h,titleExtra:l(Q,{tips:s,sheetTitle:m,unitLabel:o,winLabel:u}),children:[l("div",{className:"hub__rewards",children:n.map(({label:a,emoji:i,lockable:n})=>e("div",{className:"hub__reward"+(n?" hub__reward--lockable":""),...n?{onClick:E}:{},children:[l("span",{className:"hub__reward-art","aria-hidden":!0,children:i}),l("span",{className:"hub__reward-label",children:a})]},a))}),l("div",{className:"hub__rewards-progress",children:l(b,{percent:d,showInfo:!1,status:"success"})})]}),l(I,{marker:"inn-completed-medals",icon:l(r,{"aria-hidden":!0}),title:_,action:l("span",{className:"hub__box-count",children:p}),children:l("div",{className:"hub__medals hub__medals--wrap",children:i.filter(e=>!e.locked).map(e=>l(j,{medal:e,onOpen:t},e.name))})}),l(I,{marker:"inn-awaiting-unlocking-medals",icon:l(r,{"aria-hidden":!0}),title:v,children:l("div",{className:"hub__medals hub__medals--wrap",children:i.filter(e=>e.locked).map(e=>l(j,{medal:e,onOpen:t},e.name))})})]}),P="__all__",B=(e,a)=>{const l=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&""!==e);if(0===l.length)return[P];const i=a.includes(P),n=l.includes(P);return n&&!i?[P]:n&&l.length>1?l.filter(e=>e!==P):l},V=({gameStats:n,categories:r,providers:d,stats:t,gameTitle:c="Oyun",winTitle:m="Kazanma",betTitle:o="Bahis",wageredTitle:u="Çevrim",statsTitle:_="İstatistikler",categoryPlaceholder:b="Tüm Kategoriler",providerPlaceholder:g="Tüm Sağlayıcılar",gamePlaceholder:N="Tüm Oyunlar",selectionLabel:f="Seçim",casinoRelabel:y="Slotlar",noDataLabel:w="Veri Yok",onStatsFilter:k})=>{const[x,L]=i(""),[C,S]=i([P]),[j,z]=i([P]),D=n.filter(e=>(!x||e.category===x)&&(C.includes(P)||C.includes(e.provider))&&(j.includes(P)||j.includes(e.game))),K=e=>k?.({category:x,providers:C,games:j,...e}),M=[{dataIndex:"game",key:"game",title:c,render:(a,i)=>e("span",{className:"hub__cell-game",children:[l("span",{className:"hub__cell-big",children:String(a)}),l("span",{className:"hub__cell-sub",children:i.category+" / "+i.provider})]})},{dataIndex:"win",key:"win",title:m,render:e=>l("span",{className:"hub__cell-big",children:String(e)})},{dataIndex:"bet",key:"bet",title:o,render:e=>l("span",{className:"hub__cell-big",children:String(e)})},{dataIndex:"wagered",key:"wagered",title:u,width:"120px",render:e=>l("span",{className:"hub__cell-big hub__cell-cur",children:String(e)})}];return e(a,{children:[e("div",{className:"hub__filterbar",children:[e(p,{size:"x-large",placeholder:b,value:x,onChange:e=>{const a=e?String(e):"";L(a),K({category:a})},"aria-label":"Kategori",children:[l(T,{value:"",children:b}),r.map(e=>l(T,{value:e,children:"Casino"===e?y:e},e))]}),e(p,{size:"x-large",multi:!0,placeholder:g,"aria-label":"Sağlayıcı",value:C,label:C.includes(P)?void 0:f+" ("+C.length+")",onChange:e=>{const a=B(e,C);S(a),K({providers:a})},children:[l(T,{value:P,children:g}),d.map(e=>l(T,{value:e,children:e},e))]}),e(p,{size:"x-large",multi:!0,placeholder:N,"aria-label":"Oyun",value:j,label:j.includes(P)?void 0:f+" ("+j.length+")",onChange:e=>{const a=B(e,j);z(a),K({games:a})},children:[l(T,{value:P,children:N}),n.map(e=>l(T,{value:e.game,children:e.game},e.key))]})]}),l(I,{icon:l(s,{"aria-hidden":!0}),title:_,children:l(O,{stats:t})}),l("section",{className:"inn-statistics-game-stats-table hub__box hub__box--flush hub__stat-table",children:D.length>0?l(v,{columns:M,data:D,size:"medium",headerBg:!1}):e("div",{className:"hub__nodata",children:[l(h,{"aria-hidden":!0}),l("span",{className:"hub__empty-text",children:w})]})})]})};export{j as HubMedalButton,z as HubMedalDetail,H as HubMedals,K as HubProfileSummary,V as HubStatistics};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as i,Fragment as t}from"react/jsx-runtime";import{useState as a}from"react";import{ImageOff as n,Clock as l}from"lucide-react";import s from"../../button/index.js";import r from"../../badge/index.js";import d from"../../alert/index.js";import{Tooltip as c}from"../../tooltip/Tooltip.js";import{TooltipTrigger as m}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as h}from"../../tooltip/TooltipContent.js";import{HubTable as o,HubCopyBtn as p,HubStatusBadge as u,HubDt as b}from"./table.js";import{AlertDescription as k}from"../../alert/Description.js";const _=({children:i})=>i?e(d,{type:"info",variant:"filled",children:e(k,{children:i})}):null,f=({start:t,end:a})=>i("span",{className:"hub__fsact-se",children:[e("span",{children:t}),e("span",{children:a})]}),y=({data:a,intro:n,onGames:r,marker:d={desktop:"inn-free-spin-activation-table",list:"inn-mobile-free-spin-activation-list",methods:"inn-mobile-free-spin-activation-list-items",item:"inn-mobile-freespin-activation-list-item"},idTitle:b="Id",brandTitle:k="Sağlayıcı Adı",datesTitle:y="Başlangıç / Bitiş",statusTitle:v="Durum",spinsTitle:T="Spin Sayısı",daysTitle:x="Geçerlilik",daysSuffix:N=" Gün",createdLabel:z="Oluşturulma Tarihi: ",viewGamesLabel:g="Oyunları Görüntüle"})=>{const I=[{key:"id",dataIndex:"key",title:b,width:44,render:(i,t)=>e(p,{value:t.key,compact:!0})},{key:"brand",dataIndex:"brand",title:k,maxWidth:460,render:(t,a)=>e("span",{className:"hub__pay-name hub__hist-nm",children:i("span",{className:"hub__bonus-name",children:[e("span",{className:"hub__bonus-title",children:a.brand}),i(c,{children:[e(m,{asChild:!0,children:e("i",{className:"hub__hist-creator","aria-label":z,children:e(l,{size:13})})}),e(h,{placement:"top",children:z+a.created})]})]})})},{key:"dates",dataIndex:"start",title:y,maxWidth:170,render:(i,t)=>e(f,{start:t.start,end:t.end})},{key:"status",dataIndex:"status",title:v,width:120,render:i=>e(u,{s:String(i)})},{key:"spins",dataIndex:"spins",title:T,width:90,render:i=>e("span",{className:"hub__fsact-num",children:String(i)})},{key:"days",dataIndex:"days",title:x,width:95,render:i=>e("span",{className:"hub__fsact-num",children:String(i)+N})},{key:"actions",dataIndex:"key",title:"",maxWidth:200,render:(i,t)=>e("span",{className:"hub__pay-actions",children:e(s,{variant:"default",size:"medium",onClick:()=>r(t),children:g})})}];return i(t,{children:[e(_,{children:n}),e(o,{columns:I,data:a,cellHeight:"84px",marker:d})]})},v=({name:t})=>i(c,{children:[e(m,{asChild:!0,children:e("span",{className:"hub__pay-name hub__hist-nm",children:e("span",{className:"hub__hist-name",children:t})})}),e(h,{placement:"top",children:t})]}),T={"Teslim Edildi":"success","Onay Bekliyor":"default",Reddedildi:"purple","Ulaşılamadı":"danger"},x=({s:i,tone:t=T})=>e(r,{variant:"default",color:t[i]??"default",size:"small",pill:!1,children:i}),N=({tickets:t})=>e("div",{className:"hub__tickets",children:t.map(t=>i("div",{className:"hub__ticket",children:[e("span",{children:t}),e(p,{value:t,compact:!0})]},t))}),z=({prizes:t,mainLabel:l="Asıl",reserveLabel:s="Yedek",emptyText:r="Bu listede bilet bulunmuyor.",reserveOrderLabel:d="Yedek Sırası:",ticketLabel:c="Bilet:",tone:m=T})=>{const[h,o]=a("main"),u=t.filter(e=>"reserve"===h?!!e.reserve:!e.reserve);return i("div",{className:"hub__prizes",children:[i("div",{className:"hub__prize-tabs",children:[e("button",{type:"button",className:"main"===h?"is-active":"",onClick:()=>o("main"),children:l}),e("button",{type:"button",className:"reserve"===h?"is-active":"",onClick:()=>o("reserve"),children:s})]}),0===u.length?e("div",{className:"hub__prize-empty",children:r}):e("div",{className:"hub__prize-list",children:u.map((t,a)=>i("div",{className:"hub__prize",children:[e("span",{className:"hub__prize-img",children:e(n,{size:22})}),i("div",{className:"hub__prize-body",children:[e("h4",{className:"hub__prize-title",children:t.name}),e("span",{children:e(x,{s:t.status,tone:m})}),t.reserve&&i("span",{className:"hub__prize-reserve",children:[e("b",{children:d})," ",(t.reserveOrder??0)+1]}),i("span",{className:"hub__prize-ticket",children:[e("b",{children:c}),e("span",{className:"hub__prize-code",children:t.ticket}),e(p,{value:t.ticket,compact:!0})]})]})]},t.ticket+"-"+a))})]})},g=(i,t,a,n,l,s)=>[{key:"id",dataIndex:"key",title:i,width:44,render:(i,t)=>e(p,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:t,maxWidth:460,render:(i,t)=>e(v,{name:t.name})},{key:"start",dataIndex:"start",title:a,width:130,render:i=>e(b,{v:String(i)})},{key:"end",dataIndex:"end",title:n,width:130,render:i=>e(b,{v:String(i)})},{key:"status",dataIndex:"status",title:l,width:150,render:i=>e(u,{s:String(i)})},{key:"tickets",dataIndex:"tickets",title:s,width:110,render:(i,t)=>e("span",{className:"hub__fsact-num",children:t.tickets.length})}],I={idTitle:"Id",nameTitle:"İsim",startTitle:"Başlangıç",endTitle:"Bitiş",statusTitle:"Durum",ticketsTitle:"Bilet Sayısı"},j=({data:a,intro:n,onTickets:l,onDeposit:r,marker:d={desktop:"inn-active-raffles-table",list:"inn-mobile-active-raffles-list",methods:"inn-mobile-active-raffles-list-items",item:"inn-mobile-active-raffles-list-item"},ticketsLabel:c="Biletlerim",depositLabel:m="Yatırım Yapın Kazanın",...h})=>{const p={...I,...h},u=[...g(p.idTitle,p.nameTitle,p.startTitle,p.endTitle,p.statusTitle,p.ticketsTitle),{key:"actions",dataIndex:"key",title:"",maxWidth:220,render:(i,t)=>e("span",{className:"hub__pay-actions hub__pay-actions--full",children:t.tickets.length>0?e(s,{variant:"default",size:"medium",onClick:()=>l(t),children:c}):e(s,{variant:"default",size:"medium",onClick:r,children:m})})}];return i(t,{children:[e(_,{children:n}),e(o,{columns:u,data:a,cellHeight:"84px",marker:d})]})},S=({data:a,intro:n,onPrizes:l,onTickets:r,marker:d={desktop:"inn-joined-raffles-table",list:"inn-mobile-joined-raffles-list",methods:"inn-mobile-joined-raffles-list-items",item:"inn-mobile-joined-raffles-list-item"},prizesLabel:c="Ödüllerim",ticketsLabel:m="Biletlerim",...h})=>{const p={...I,...h},u=[...g(p.idTitle,p.nameTitle,p.startTitle,p.endTitle,p.statusTitle,p.ticketsTitle),{key:"actions",dataIndex:"key",title:"",maxWidth:320,render:(t,a)=>i("span",{className:"hub__pay-actions",children:[e(s,{variant:"default",size:"medium",disabled:!a.prizes||0===a.prizes.length,onClick:()=>l(a),children:c}),e(s,{variant:"default",size:"medium",disabled:0===a.tickets.length,onClick:()=>r(a),children:m})]})}];return i(t,{children:[e(_,{children:n}),e(o,{columns:u,data:a,cellHeight:"84px",marker:d})]})};export{T as HUB_PRIZE_TONE,y as HubFreespinActivation,z as HubPrizesModal,j as HubRaffleActive,S as HubRaffleJoined,N as HubTicketsModal};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{Fragment as l}from"react";import r from"../../input/index.js";import d from"../../select/index.js";import n from"../../button/index.js";import s from"../../alert/index.js";import c from"../../checkbox/index.js";import{Avatar as h}from"../../avatar/index.js";import{AlertDescription as t}from"../../alert/Description.js";import{SelectItem as o}from"../../select/SelectItem.js";const u=({f:e})=>{const a="select"===e.kind?i(d,{size:"x-large",placeholder:e.placeholder,defaultValue:e.value,"aria-label":e.ariaLabel,children:e.options.map(e=>i(o,{value:e.value,children:e.label},e.value))}):e.locked?i(r,{size:"x-large",locked:!0,value:e.value,"aria-label":e.ariaLabel}):i(r,{size:"x-large",type:e.type,defaultValue:e.value,placeholder:e.placeholder,"aria-label":e.ariaLabel});return e.full?i("div",{style:{gridColumn:"1 / -1"},children:a}):a},m=({user:r,groups:d,saveLabel:s="Değişiklikleri Kaydet",onSave:c})=>e(a,{children:[e("div",{className:"inn-settings-personal-summary-box hub__profile hub__profile--user",children:[r.avatar??i(h,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e("div",{children:[i("div",{className:"hub__username",children:r.username}),null!=r.fullname&&i("div",{className:"hub__fullname",children:r.fullname})]})]}),d.map((a,r)=>e(l,{children:[i("div",{className:"inn-sub-page-header hub__section",children:a.header}),i("div",{className:"hub__grid",children:a.fields.map((e,a)=>i(u,{f:e},a))})]},r)),i(n,{variant:"default",size:"large",className:"hub__save",onClick:c,children:s})]}),b=({currentHeader:l="Mevcut Şifreniz",newHeader:d="Yeni Şifreniz",currentPlaceholder:c="Mevcut Şifre",newPlaceholder:h="Yeni Şifre",confirmPlaceholder:o="Yeni Şifre (tekrar)",hint:u,submitLabel:m="Şifre Değiştir",disabled:b=!0,onSubmit:p})=>e(a,{children:[i("div",{className:"inn-sub-page-header hub__section",children:l}),i("div",{className:"hub__grid hub__grid--full",children:i(r,{size:"x-large",type:"password",placeholder:c,"aria-label":c})}),i("div",{className:"inn-sub-page-header hub__section",children:d}),e("div",{className:"hub__grid",children:[i(r,{size:"x-large",type:"password",placeholder:h,"aria-label":h}),i(r,{size:"x-large",type:"password",placeholder:o,"aria-label":o})]}),u&&i(s,{type:"info",variant:"filled",children:i(t,{children:u})}),i("hr",{className:"hub__divider"}),i("div",{className:"hub__actions",children:i(n,{variant:"default",size:"large",disabled:b,onClick:p,children:m})})]}),p=({intro:l,header:r="Bildirim Ayarları",prefs:d,onToggle:h,saveLabel:o="Ayarları Kaydet",onSave:u})=>e(a,{children:[l&&i(s,{type:"info",variant:"filled",children:i(t,{children:l})}),i("div",{className:"inn-sub-page-header hub__section",children:r}),i("div",{className:"hub__notify",children:d.map(e=>i("div",{className:"hub__notify-row",children:i(c,{checked:e.checked,onChange:a=>h?.(e.id,Boolean(a)),children:e.label})},e.id))}),i("hr",{className:"hub__divider"}),i("div",{className:"hub__actions",children:i(n,{variant:"default",size:"large",onClick:u,children:o})})]});export{b as HubChangePassword,p as HubNotificationPrefs,m as HubSettingsDetails};
@@ -0,0 +1 @@
1
+ import{jsx as a,jsxs as e}from"react/jsx-runtime";import{useRef as i}from"react";import{Copy as l,User as r}from"lucide-react";import n from"../../button/index.js";import s from"../../badge/index.js";import d from"../../table/index.js";import t from"../../result/index.js";import{Tooltip as c}from"../../tooltip/Tooltip.js";import{TooltipTrigger as m}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as o}from"../../tooltip/TooltipContent.js";import{useHubMobile as h}from"./platform.js";const u=["name","brand","provider","subject","game"],p=({columns:i,data:l,list:r,methods:n,item:s})=>{const d=i.find(a=>"id"===a.key||"token"===a.key),t=i.find(a=>u.includes(String(a.key)))||i.find(a=>a.maxWidth)||i[1],c=i.find(a=>"status"===a.key),m=i.find(a=>""===a.title),o=i.filter(a=>a!==d&&a!==t&&a!==c&&a!==m),h=(a,e,i)=>a.render?a.render(e[a.dataIndex],e,i):e[a.dataIndex];return a("div",{className:r?r+" hub__mlist":"hub__mlist",children:a("div",{className:n,style:{display:"contents"},children:l.map((i,l)=>e("div",{className:s?s+" hub__mcard":"hub__mcard",children:[e("div",{className:"hub__mcard-head",children:[e("span",{className:"hub__mcard-title",children:[d&&a("span",{className:"hub__mcard-id",children:h(d,i,l)}),t&&a("span",{className:"hub__mcard-name",children:h(t,i,l)})]}),c&&a("span",{className:"hub__mcard-status",children:h(c,i,l)})]}),o.length>0&&a("hr",{className:"hub__mcard-sep"}),o.length>0&&(()=>{const r=i.img,n=i.square,s=a("div",{className:"hub__mcard-body",children:o.map(r=>e("div",{className:"hub__mcard-row",children:[a("span",{className:"hub__mcard-label",children:"string"==typeof r.title?r.title:""}),a("span",{className:"hub__mcard-val",children:h(r,i,l)})]},String(r.key)))});return r?e("div",{className:"hub__mcard-media",children:[a("span",{className:"hub__mcard-img"+(n?" hub__mcard-img--square":""),style:{backgroundImage:r},"aria-hidden":!0}),s]}):s})(),m&&a("div",{className:"hub__mcard-foot",children:h(m,i,l)})]},l))})})},_=({columns:e,data:l,cellHeight:r,mobileColumns:n,marker:s})=>{const t=i(null);return h(t)?a(p,{columns:n??e,data:l,list:s?.list,methods:s?.methods,item:s?.item}):a("div",{ref:t,className:(s?.desktop?s.desktop+" ":"")+"hub__paybox hub__pay-table",children:a(d,{columns:e,data:l,cellHeight:r,headerBg:!1})})},b={"Açık":"purple",Beklemede:"warning","Onaylandı":"success",Reddedildi:"danger","İptal Edildi":"info","Zaman Aşımı":"warning","İşlemde":"orange","Tamamlandı":"success","Kullanıcı Vazgeçti":"danger","Başvuruldu":"purple","Kabul Edildi":"teal","Kazandı":"success",Kaybetti:"danger","Talep Edilebilir":"success","Tekrar Talep Edilebilir":"warning","Talep Edilemez":"default","Uygulandı":"purple",Aktif:"info","Kazananlar Bildirildi":"warning","Yanıtlandı":"info","Kapandı":"default"},f=({s:e,tone:i=b})=>a(s,{variant:"default",color:i[e]??"default",size:"medium",pill:!1,children:e}),g=({value:i,compact:r,label:s="Kopyala"})=>e(c,{children:[a(m,{asChild:!0,children:a(n,{variant:"custom",size:"icon-sm",className:"hub__copybtn rounded-full"+(r?" hub__copybtn--sm":""),"aria-label":s,onClick:()=>navigator.clipboard?.writeText(i),children:a(l,{size:r?10:12})})}),a(o,{placement:"top",children:s})]}),N=({name:i,desc:l,creator:n,creatorLabel:s="Oluşturan: "})=>e("span",{className:"hub__pay-name hub__hist-nm",children:[a("span",{className:"hub__hist-name",children:i}),l&&e("span",{className:"hub__pay-desc hub__hist-desc",children:[l,n&&e(c,{children:[a(m,{asChild:!0,children:a("i",{className:"hub__hist-creator","aria-label":s+n,children:a(r,{size:12})})}),a(o,{placement:"top",children:s+n})]})]})]}),y=({v:i})=>{const[l,r]=i.split(" ");return e("span",{className:"hub__hist-dt",children:[a("span",{children:l}),a("span",{children:r})]})},k=({title:e="ÇOK YAKINDA",description:i="Bu bölüm henüz yapım aşamasındadır ve çok yakında yayında olacaktır.",icon:l="🚧"})=>a(t,{className:"hub__soon",image:a("span",{className:"hub__soon-icon","aria-hidden":!0,children:l}),title:e,description:i});export{u as HUB_NAME_KEYS,b as HUB_STATUS_TONE,k as HubComingSoon,g as HubCopyBtn,y as HubDt,N as HubHistName,f as HubStatusBadge,_ as HubTable,_ as default,h as useHubMobile};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronRight as r}from"lucide-react";import s from"../../image/index.js";import n from"../../progress/index.js";const c=(e,a)=>"bronze"===a?e+"images/bronze-medal.png":e+"icons/vip/medal-"+a+".webp",d=()=>i("svg",{viewBox:"0 0 25 25",className:"hub__vip-star","aria-hidden":!0,children:i("path",{d:"M24.7343572,10.4120865 L19.2561162,15.7523575 L20.5498218,23.2948747 C20.6061081,23.6246839 20.4706692,23.9580111 20.1997913,24.1550172 C20.0467629,24.2667126 19.8647119,24.323 19.6826609,24.323 C19.5428246,24.323 19.4021088,24.2895793 19.2737056,24.2218585 L12.5,20.6607983 L5.72717384,24.220979 C5.43167071,24.3775285 5.07196601,24.3520232 4.80108814,24.1541377 C4.53021027,23.9571316 4.39477134,23.6238044 4.45105765,23.2939952 L5.74476331,15.751478 L0.265642806,10.4120865 C0.0264259883,10.1781418 -0.0606418977,9.82810432 0.0431359866,9.51060797 C0.146913871,9.19311162 0.422189106,8.96004643 0.753750652,8.91167441 L8.32513884,7.81231032 L11.7111122,0.950519405 C12.0074948,0.349826865 12.9925052,0.349826865 13.2888878,0.950519405 L16.6748612,7.81231032 L24.2462493,8.91167441 C24.5778109,8.96004643 24.8530861,9.19223213 24.956864,9.51060797 C25.0606419,9.82898381 24.973574,10.1772624 24.7343572,10.4120865 Z",fill:"currentColor"})}),h=({art:a,groups:n,cdn:c,levelLabel:d="Seviye",requiredDpLabel:h="Gerekli DP"})=>{const p="platinum"===a?"platinum1":"diamond"===a?"diamond1":a,[t,b]=l(p);return i("div",{className:"hub__vip-levels","data-vip":a,children:n.map(a=>e("div",{className:"hub__vip-group","data-art":a.art,...t===a.key?{"data-open":""}:{},children:[e("button",{type:"button",className:"hub__vip-group-head",onClick:()=>b(t===a.key?"":a.key),children:[e("span",{className:"hub__vip-group-name",children:[i(s,{src:c+"icons/vip/ribbon-"+a.art+".png",alt:""}),e("span",{className:"hub__vip-group-label",children:[a.label," ",a.range]})]}),i(r,{className:"hub__vip-group-chev","aria-hidden":!0})]}),i("div",{className:"hub__vip-group-body",children:e("div",{children:[e("div",{className:"hub__vip-row hub__vip-row--head",children:[i("div",{children:d}),i("div",{children:h})]}),a.levels.map((l,r)=>e("div",{className:"hub__vip-row",children:[e("div",{children:[i(s,{src:c+"icons/vip/medal-"+a.art+".webp",alt:""}),l.name]}),i("div",{children:l.xp})]},r))]})})]},a.key))})},p=({hero:l,tiers:r,bonuses:h,activeTier:p,onTierChange:t,onLearn:b,cdn:v,learnLabel:o="VIP seviye yükseltme sistemi hakkında bilgi alın",bonusTypeLabel:_="Bonus Tipi",emptyMark:u="--"})=>{const m=r[p]?.art??"bronze";return e(a,{children:[e("section",{className:"hub__vip-hero",children:[i("div",{className:"hub__vip-hero-bg","aria-hidden":!0}),i("div",{className:"hub__vip-hero-title",children:l.title}),i("span",{className:"hub__vip-hero-dp",children:l.dp}),e("div",{className:"hub__vip-hero-progress",children:[i(n,{percent:l.percent,showInfo:!1,status:"success"}),i("span",{className:"hub__vip-hero-next",children:l.next})]}),i("span",{className:"hub__vip-hero-medal","aria-hidden":!0,children:i(s,{src:c(v,m),alt:""})})]}),i("button",{type:"button",className:"hub__vip-learn",onClick:b,children:o}),e("div",{className:"inn-vip-table hub__viptable",children:[i("div",{className:"hub__viptable-col hub__viptable-types",children:e("div",{children:[i("div",{className:"hub__viptable-cell hub__viptable-cell--head",children:i("span",{className:"hub__viptable-headlabel",children:_})}),h.map((a,l)=>e("div",{className:"hub__viptable-cell hub__viptable-type",children:[i("span",{className:"hub__viptable-ico",children:i(s,{src:v+"icons/vip/"+a.icon,alt:""})}),i("span",{className:"hub__viptable-typelabel",children:a.label})]},l))]})}),r.map((a,l)=>i("div",{className:"hub__viptable-col"+(l===p?" hub__viptable-col--current":""),"data-art":a.art,children:e("div",{children:[i("div",{className:"hub__viptable-cell hub__viptable-cell--head",children:i("button",{type:"button",className:"hub__viptable-tier",onClick:()=>t(l),children:a.label})}),h.map((e,a)=>i("div",{className:"hub__viptable-cell hub__viptable-mark",children:l>=e.from?i(d,{}):u},a))]})},a.key))]})]})};export{p as HubVipClub,h as HubVipLevels,c as hubVipMedalSrc};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as n,useRef as t,useEffect as l}from"react";import{Search as r,Pencil as d,Trash2 as s}from"lucide-react";import c from"../../button/index.js";import o from"../../input/index.js";import m from"../../table/index.js";import{Tooltip as h}from"../../tooltip/Tooltip.js";import{TooltipTrigger as u}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as p}from"../../tooltip/TooltipContent.js";import{GetClassNameByPlatform as b}from"../../helpers/classname/GetClassNameByPlatform.js";import{HubPayFilter as _,HubPayLogoBadge as w}from"./cashier.js";const x=({id:a,openId:r,setOpenId:d,actions:s,children:c})=>{const o=r===a,m=t(null),h=t({down:!1,x:0,y:0,base:0,axis:"",cur:0,pid:0}),[u,p]=n(0),[b,_]=n(!1);l(()=>{h.current.down||p(o?-160:0)},[o]);const w=()=>{if(!h.current.down)return;const{axis:e,cur:i}=h.current;if(h.current.down=!1,_(!1),"x"===e){const e=i<-80;p(e?-160:0),e?d(a):o&&d(null)}else p(o?-160:0)};return e("div",{className:"inn-mobile-swipeable-list-item hub__swipe",children:[i("div",{className:"hub__swipe-actions",children:s}),i("div",{ref:m,className:"hub__swipe-content"+(b?" hub__swipe-content--drag":""),style:{transform:"translateX("+u+"px)"},onPointerDown:e=>{h.current={down:!0,x:e.clientX,y:e.clientY,base:o?-160:0,axis:"",cur:o?-160:0,pid:e.pointerId}},onPointerMove:e=>{if(!h.current.down)return;const a=e.clientX-h.current.x,i=e.clientY-h.current.y;if(!h.current.axis){if(Math.abs(a)<8&&Math.abs(i)<8)return;if(h.current.axis=Math.abs(a)>Math.abs(i)?"x":"y","x"!==h.current.axis)return void(h.current.down=!1);try{m.current?.setPointerCapture?.(h.current.pid)}catch{}_(!0)}const n=Math.max(-160,Math.min(0,h.current.base+a));h.current.cur=n,p(n)},onPointerUp:w,onPointerCancel:w,children:c})]})},y=({accounts:t,onWithdraw:l,onEdit:r,onDelete:o,onAdd:m,labels:h})=>{const[u,p]=n(null);return e("div",{className:"inn-mobile-withdraw-list hub__wdlist",children:[i("div",{className:"inn-mobile-withdraw-list-methods",children:0===t.length?i("div",{className:"hub__pay-empty",children:i("span",{children:h.emptyText})}):i("div",{className:"inn-mobile-swipeable-list hub__swipe-list",children:t.map(n=>i(x,{id:n.name,openId:u,setOpenId:p,actions:e(a,{children:[e("button",{type:"button",className:"hub__swipe-act hub__swipe-act--edit",onClick:()=>r(n),children:[i(d,{"aria-hidden":!0}),i("span",{children:h.editLabel})]}),e("button",{type:"button",className:"hub__swipe-act hub__swipe-act--del",onClick:()=>o(n),children:[i(s,{"aria-hidden":!0}),i("span",{children:h.deleteLabel})]})]}),children:e("div",{className:"inn-mobile-withdraw-list-method-item hub__dep-item hub__wd-item",children:[i(w,{logo:n.logo}),e("div",{className:"hub__dep-main",children:[i("span",{className:"hub__dep-name",children:n.name}),e("div",{className:"hub__dep-meta",children:[i("span",{className:"hub__pay-desc",children:n.desc}),e("div",{className:"hub__dep-amts",children:[i("span",{children:"Min "+n.min}),i("span",{children:"Maks "+n.max})]})]})]}),i(c,{size:"small",onClick:()=>l(n),children:h.withdrawLabel})]})},n.name))})}),i("div",{className:"hub__wd-add",children:i(c,{variant:"default",size:"default",onClick:()=>m(),children:h.addLabel})})]})},f=({accounts:t,filters:l,onWithdraw:x,onEdit:f,onDelete:k,onAdd:N,isMobile:v=!1,filterMarker:g="inn-withdraw-filter-bar",tableMarker:C="inn-withdraw-table",searchPlaceholder:L="Arama",withdrawLabel:M="Para Çek",addLabel:T="Yeni Çekim Hesabı Ekle",editLabel:z="Düzenle",deleteLabel:I="Sil",editTooltip:j="Çekim Hesabını Düzenle",deleteTooltip:P="Çekim Hesabını Sil",emptyText:D="Çekim yöntemi bulunamadı!",nameTitle:A="İsim",timeTitle:E="Süre",minTitle:H="Min Çekim",maxTitle:S="Max Çekim"})=>{const[B,W]=n("all"),[X,Y]=n(""),O=t.filter(e=>{const a=X.trim().toLowerCase();return("all"===B||e.tags.includes(B))&&(!a||e.name.toLowerCase().includes(a))}),G=O.map(e=>({key:e.name,name:e.name,desc:e.desc,logo:e.logo,time:e.time,min:e.min,max:e.max,account:e})),U=[{key:"logo",dataIndex:"logo",title:"",width:70,render:(e,a)=>i(w,{logo:a.logo})},{key:"name",dataIndex:"name",title:A,render:(a,n)=>e("span",{className:"hub__pay-name",children:[i("span",{className:"hub__wd-name",children:n.name}),i("span",{className:"hub__pay-desc",children:n.desc})]})},{key:"time",dataIndex:"time",title:E,width:140},{key:"min",dataIndex:"min",title:H,width:140},{key:"max",dataIndex:"max",title:S,width:140},{key:"action",dataIndex:"key",title:"",width:200,render:(a,n)=>e("span",{className:"hub__pay-actions",children:[e(h,{children:[i(u,{asChild:!0,children:i("button",{type:"button",className:"hub__pay-round hub__pay-round--danger hub__wd-acticon","aria-label":P,onClick:()=>k(n.account),children:i(s,{size:14})})}),i(p,{placement:"top",children:P})]}),e(h,{children:[i(u,{asChild:!0,children:i(c,{variant:"solid",size:"icon-sm",className:"rounded-full hub__wd-acticon","aria-label":j,onClick:()=>f(n.account),children:i(d,{size:14})})}),i(p,{placement:"top",children:j})]}),i(c,{size:"medium",onClick:()=>x(n.account),children:M})]})}];return e(a,{children:[i(_,{options:l,value:B,onChange:W,idPrefix:"wd",marker:g}),i("div",{className:"hub__pay-search hub__pay-search--single",children:i(o,{size:"x-large",placeholder:L,addonBefore:i(r,{size:16}),value:X,onChange:e=>Y(String(e))})}),v?i(y,{accounts:O,onWithdraw:x,onEdit:f,onDelete:k,onAdd:N,labels:{withdrawLabel:M,addLabel:T,editLabel:z,deleteLabel:I,emptyText:D}}):e("div",{className:b(C)+" hub__paybox hub__pay-table",children:[i(m,{columns:U,data:G,cellHeight:"74px",headerBg:!1}),i("div",{className:"hub__wd-add",children:i(c,{variant:"default",size:"default",onClick:()=>N(),children:T})})]})]})};export{f as HubWithdrawPage,f as default};
@@ -0,0 +1 @@
1
+ import{jsx as t,jsxs as i}from"react/jsx-runtime";import e,{forwardRef as n,useContext as o,useRef as r,useState as s,useId as l,useEffect as a}from"react";import{Slot as u}from"../primitives/Slot.js";import{ButtonGroupSizeContext as d}from"../button-group/ButtonGroupContext.js";import"../router/context.js";import{ITDLink as c}from"../router/ITDLink.js";import m from"../spin/index.js";import p from"../utils/GetButtonSizeSlug.js";import{ButtonTypes as f,ComponentVariants as b,ComponentSizes as g,ButtonSizes as h}from"../enums/enum.js";import{cn as x}from"../utils/cn.js";const C=t=>t===h.ICON||t===h.ICON_SM||t===h.ICON_LG,j=n((n,h)=>{const{as:j,asChild:v=!1,id:N="",form:z,disabled:B=!1,loading:k=!1,type:y=f.BUTTON,variant:D=b.DEFAULT,size:E,state:I=null,href:O="",target:T="_self",className:L="",children:S=null,onClick:U,locked:_,...G}=n,q=o(d),A=C(E)&&!!q,F=A?q:E??q??g.DEFAULT,V=r(null),w=h||V,[M,R]=s(N),Y=l();a(()=>{""===N&&R("itd-button-"+Y)},[]);const H={id:M,ref:w,className:(()=>{const t=p(F),i=A||C(F);let e="itd-button inline-flex items-center justify-center shrink-0";return e+=" itd-button-"+D,e+=" itd-button-"+t,e+=" itd-button-"+y,I&&(e+=" itd-button-"+I),i?(e+=" itd-button-has-icon",A?e+=" itd-button-icon-square itd-size-"+t:"icon-sm"===t?e+=" size-8":"icon"===t?e+=" size-9":"icon-lg"===t&&(e+=" size-10")):e+=" itd-size-"+t,k&&(e+=" itd-button-loading"),x(e,L)})(),disabled:B||void 0,tabIndex:B?-1:0,"aria-busy":k||void 0,form:z||void 0,onClick:t=>{k?t?.preventDefault?.():U?.(t)},...G};let J="button";if(v){if(e.isValidElement(S))return t(u,{...H,children:S});"production"!==process.env.NODE_ENV&&console.warn("[Button]: Using `asChild` requires a single React element as children. Example: <Button asChild><a /></Button>. You are currently passing a primitive value (string, etc.), so `asChild` is ignored.")}return j?J=j:O?(J=c,H.to=O,H.target=T,delete H.disabled,B&&(H["aria-disabled"]=!0,H.tabIndex=-1,H.onClick=t=>{t.preventDefault()})):H.type=y,i(J,{...H,children:[(()=>{if(!k)return null;const i=p(F);return t(m,{size:"xs"===i?12:"lg"===i||"icon-lg"===i?20:"xlg"===i?24:16})})(),t("span",{className:"itd-button-content",children:S})]})});j.displayName="Button";export{j as default};
@@ -0,0 +1 @@
1
+ import{createContext as o}from"react";const r=o(void 0);export{r as ButtonGroupSizeContext};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as o,useContext as r}from"react";import e from"../utils/GetButtonSizeSlug.js";import{ComponentSizes as a}from"../enums/enum.js";import{cn as i}from"../utils/cn.js";import{ButtonGroupSizeContext as n}from"./ButtonGroupContext.js";const u=o(({variant:o="default",orientation:r="horizontal",size:e,className:a,children:u,locked:s,...d},l)=>t(n.Provider,{value:e,children:t("div",{ref:l,role:"group","data-slot":"button-group","data-variant":o,"data-orientation":r,"data-size":e,className:i("itd-button-group",`itd-button-group-${o}`,`itd-button-group-${r}`,a),...d,children:u})}));u.displayName="ButtonGroup";const s=o(({className:o,children:u,locked:s,...d},l)=>{const m=r(n)??a.DEFAULT,p=e(m);return t("div",{ref:l,"data-slot":"button-group-text","data-size":m,className:i("itd-button-group-text",`itd-size-${p}`,o),...d,children:u})});s.displayName="ButtonGroupText";export{u as ButtonGroup,s as ButtonGroupText,u as default};
@@ -0,0 +1 @@
1
+ import"../helpers/datetime/dayjsSetup.js";import t from"dayjs";const e=(e,r,a)=>{const o=Number.isInteger(a)&&a>=0&&a<=6?a:0;let s=t();Number.isInteger(e)&&Number.isInteger(r)&&(s=s.month(e-1).year(r));const n=s.startOf("month"),m=s.endOf("month"),d=[],Y=[],h=[];let f=n,u=0;for(;f.day()!==o&&u<7;)f=f.subtract(1,"day"),d.push(f.format("MM/DD/YYYY")),u++;for(f=n;f.month()===e-1;)Y.push(f.format("MM/DD/YYYY")),f=f.add(1,"day");for(f=m;d.length+Y.length+h.length<42;)f=f.add(1,"day"),h.push(f.format("MM/DD/YYYY"));return[...d.reverse(),...Y,...h]};export{e as default};
@@ -0,0 +1 @@
1
+ import{jsx as a}from"react/jsx-runtime";import{useMemo as e}from"react";function d({date:d,today:t,current:r,disabled:n,selected:i,focusable:l,handleClick:c,onHover:o,rangeStart:s,rangeEnd:u,inRange:y,children:b}){const m=e(()=>{let a="itd-calendar-day";return t&&(a+=" itd-calendar-day-today"),i&&(a+=" itd-calendar-day-selected"),n&&(a+=" itd-calendar-day-disabled"),r&&(a+=" itd-calendar-day-current"),s&&(a+=" itd-calendar-day-range-start"),u&&(a+=" itd-calendar-day-range-end"),y&&(a+=" itd-calendar-day-in-range"),a},[t,i,n,r,s,u,y]);return a("button",{type:"button",className:m,disabled:n,tabIndex:l?0:-1,role:"gridcell","aria-selected":i||s||u||void 0,"aria-current":t?"date":void 0,"aria-label":d.format("D MMMM YYYY"),"data-itd-date":d.format("YYYY-MM-DD"),onClick:()=>c(d),onMouseEnter:o?()=>o(d):void 0,children:a("span",{children:b})})}export{d as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as n,Fragment as a}from"react/jsx-runtime";const l=e=>n=>{e&&("Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e()))};function d(d){const{month:o="",year:r="",onPrevYear:t=null,onPrevMonth:i=null,onNextMonth:c=null,onNextYear:s=null,onClickMonth:m=null,onClickYear:h=null,viewMode:y="days",decadeLabel:u="",hidePrev:b=!1,hideNext:x=!1}=d;return e("div",{className:"itd-calendar-header",children:[!b&&n("a",{className:"itd-calendar-prev-year",onClick:t,onKeyDown:l(t),tabIndex:0,role:"button","aria-label":"Previous year",children:n("span",{})}),!b&&"days"===y&&n("a",{className:"itd-calendar-prev-month",onClick:i,onKeyDown:l(i),tabIndex:0,role:"button","aria-label":"Previous month",children:n("span",{})}),e("div",{className:"itd-calendar-middle",children:["days"===y&&e(a,{children:[n("div",{className:"itd-calendar-middle-month",onClick:m,onKeyDown:l(m),tabIndex:0,role:"button",children:o}),n("div",{className:"itd-calendar-middle-year",onClick:h,onKeyDown:l(h),tabIndex:0,role:"button",children:r})]}),"months"===y&&n("div",{className:"itd-calendar-middle-year",onClick:h,onKeyDown:l(h),tabIndex:0,role:"button",children:r}),"years"===y&&n("div",{className:"itd-calendar-middle-decade",children:u||r})]}),!x&&"days"===y&&n("a",{className:"itd-calendar-next-month",onClick:c,onKeyDown:l(c),tabIndex:0,role:"button","aria-label":"Next month",children:n("span",{})}),!x&&n("a",{className:"itd-calendar-next-year",onClick:s,onKeyDown:l(s),tabIndex:0,role:"button","aria-label":"Next year",children:n("span",{})})]})}export{d as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as r,Fragment as a}from"react/jsx-runtime";import{useContext as t,useState as n,useRef as o,useEffect as c,useMemo as d}from"react";import"../helpers/datetime/dayjsSetup.js";import l from"./dates.js";import s from"./day/Day.js";import i from"./header/Header.js";import m from"./time/Time.js";import u from"../button/index.js";import h from"../context/ITDContext.js";import y from"../locales/tr/calendar.json.js";import f from"../locales/en/calendar.json.js";import p from"dayjs";const b=({value:b="",defaultValue:k="",className:w,onChange:Y,disabledDate:D,locale:v,showTime:M=!1,getNow:g,compact:N=!1})=>{const{language:S}=t(h),j=v||("tr"===S?y:f),A=!!M,x="object"==typeof M?M:{},C=!!x.showSecond,[$,L]=n(0),[q,H]=n([]),[K,P]=n(null),[I,T]=n(p()),[U,z]=n(null),[E,O]=n(()=>p().hour(0).minute(0).second(0).millisecond(0)),[R,V]=n("days"),[B,F]=n(()=>g?g():p()),G=o(null),J=o(!1),Q=o(null),W=o(null),X=o(!1),Z=e=>p(e,"MM/DD/YYYY"),_=()=>I.format("YYYY"),ee=()=>I.format("M");c(()=>{ae(),re(k)},[]),c(()=>{re(b)},[b]),c(()=>{he()},[I]),c(()=>{if(B.month()===I.month()&&B.year()===I.year()&&!ne(B))return;const e=oe(I)||I.date(1);e.isSame(B,"day")||F(e)},[I,B]),c(()=>{ae()},[S,v]);const re=e=>{if(""===e)return;let r;if("DD/MM/YYYY"===j.format){const a=e.split("/");if(3===a.length){const[e,t,n]=a;r=p(`${n}-${t}-${e}`)}else r=p(e)}else if("MM/DD/YYYY"===j.format){const a=e.split("/");if(3===a.length){const[e,t,n]=a;r=p(`${n}-${e}-${t}`)}else r=p(e)}else r=p(e,j.format,!0);r.isValid()&&(z(r),T(r),F(r),A&&O(r))},ae=()=>{te(j)},te=e=>{P(e),H(e.weekdaysShort),L(e.firstDay)},ne=e=>!!D&&D(e),oe=e=>{const r=e.daysInMonth();for(let a=1;a<=r;a++){const r=e.date(a);if(!ne(r))return r}return null},ce=e=>e.hour(E.hour()).minute(E.minute()).second(C?E.second():0).millisecond(0),de=e=>{Y&&Y({localizated:e.format(j.format),global:A?e.format("YYYY-MM-DDTHH:mm:ss"):e.format("YYYY-MM-DD")})},le=e=>{F(e),A?z(ce(e)):de(e)},se=e=>{O(e);const r=(U||B||(g?g():p())).hour(e.hour()).minute(e.minute()).second(C?e.second():0).millisecond(0);z(r),U||F(r)},ie=()=>{const e=g?g():p();O(e),z(e),T(e),F(e)},me=()=>de(ce(U||B)),ue=e=>{let r=null,a=1;switch(e.key){case"ArrowLeft":r=B.subtract(1,"day"),a=-1;break;case"ArrowRight":r=B.add(1,"day"),a=1;break;case"ArrowUp":r=B.subtract(7,"day"),a=-1;break;case"ArrowDown":r=B.add(7,"day"),a=1;break;case"Home":r=B.startOf("week"),a=1;break;case"End":r=B.endOf("week"),a=-1;break;case"PageUp":r=B.subtract(1,"month"),a=-1;break;case"PageDown":r=B.add(1,"month"),a=1;break;default:return}e.preventDefault();let t=0;for(;r&&ne(r)&&t<366;)r=r.add(a,"day"),t++;r&&!ne(r)&&(J.current=!0,F(r),r.month()===I.month()&&r.year()===I.year()||T(r))};c(()=>{if(!J.current)return;const e=G.current,r=e?.querySelector(`[data-itd-date="${B.format("YYYY-MM-DD")}"]:not([disabled])`)||e?.querySelector(".itd-calendar-day:not([disabled])")||e?.closest(".itd-calendar")?.querySelector(".itd-calendar-middle-month");r&&(J.current=!1,r.focus())},[B,R]),c(()=>{if(!X.current)return;let e=null;"months"===R?e=Q.current?.querySelector(".itd-calendar-month-current"):"years"===R&&(e=W.current?.querySelector(".itd-calendar-year-current")),e&&(X.current=!1,e.focus())},[I,R]);const he=()=>{const r=l(Number(ee()),Number(_()),$);let a=[];const t=g?g():p();for(let n=0;n<r.length;n++){const o=Z(r[n]);let c={date:o,handleClick:le};o.isSame(t,"day")&&(c.today=!0),U&&o.isSame(U,"day")&&(c.selected=!0),o.format("M")===ee()&&(c.current=!0),ne(o)&&(c.disabled=!0),a.push(e(s,{...c,focusable:o.isSame(B,"day"),children:o.format("D")},r[n]))}return a},ye=()=>{let r=[];for(let a=0;a<q.length;a++)r.push(e("div",{children:e("span",{children:q[a]})},a));return r},fe=e=>{if("month"===e&&"days"!==R)return;const r="year"===e&&"years"===R?10:1;T(I.clone().subtract(r,e))},pe=e=>{if("month"===e&&"days"!==R)return;const r="year"===e&&"years"===R?10:1;T(I.clone().add(r,e))},be=()=>{X.current=!0,V("months")},ke=()=>{X.current=!0,V("years")},we=e=>{const r=I.month();let a=r;switch(e.key){case"ArrowLeft":a=Math.max(0,r-1);break;case"ArrowRight":a=Math.min(11,r+1);break;case"ArrowUp":a=Math.max(0,r-3);break;case"ArrowDown":a=Math.min(11,r+3);break;default:return}e.preventDefault(),a!==r&&(X.current=!0,T(I.clone().month(a)))},Ye=e=>{const r=I.year();let a=r;switch(e.key){case"ArrowLeft":a=r-1;break;case"ArrowRight":a=r+1;break;case"ArrowUp":a=r-4;break;case"ArrowDown":a=r+4;break;default:return}e.preventDefault(),a!==r&&(X.current=!0,T(I.clone().year(a)))},De=e=>{"Escape"!==e.key&&"Esc"!==e.key||"days"!==R&&(e.stopPropagation(),J.current=!0,V("days"))},ve=()=>e("div",{className:"itd-calendar-months",ref:Q,role:"grid",onKeyDown:we,children:(K?.months||[]).map((r,a)=>e("button",{type:"button",role:"gridcell","aria-selected":I.month()===a,className:"itd-calendar-month"+(I.month()===a?" itd-calendar-month-current":"")+(U?.year()===I.year()&&U?.month()===a?" itd-calendar-month-selected":""),tabIndex:I.month()===a?0:-1,onClick:()=>{return e=a,J.current=!0,T(I.clone().month(e)),void V("days");var e},children:r},a))}),Me=()=>{const r=10*Math.floor(I.year()/10),a=Array.from({length:12},(e,a)=>r-1+a);return e("div",{className:"itd-calendar-years",ref:W,role:"grid",onKeyDown:Ye,children:a.map(a=>e("button",{type:"button",role:"gridcell","aria-selected":I.year()===a,className:"itd-calendar-year"+(I.year()===a?" itd-calendar-year-current":"")+(U?.year()===a?" itd-calendar-year-selected":"")+(a<r||a>r+9?" itd-calendar-year-outside":""),tabIndex:I.year()===a?0:-1,onClick:()=>{return e=a,X.current=!0,T(I.clone().year(e)),void V("months");var e},children:a},a))})},ge=d(()=>{let e="itd-calendar";return""!==w&&(e+=" "+w),e},[w]);return K?r("div",{className:ge,onKeyDown:De,"data-has-time":A||void 0,"data-compact":N?"":void 0,children:[e(i,{month:K?.months[Number(ee())-1],year:_(),onPrevYear:()=>fe("year"),onPrevMonth:()=>fe("month"),onNextYear:()=>pe("year"),onNextMonth:()=>pe("month"),onClickMonth:be,onClickYear:ke,viewMode:R,decadeLabel:(()=>{if("years"!==R)return"";const e=10*Math.floor(I.year()/10);return`${e}-${e+9}`})()}),e("div",{className:"itd-calendar-separator"}),r("div",{className:"itd-calendar-body",children:[r("div",{className:"itd-calendar-main",children:["days"===R&&r(a,{children:[e("div",{className:"itd-calendar-weekdays",children:ye()}),e("div",{ref:G,className:"itd-calendar-days",role:"grid",onKeyDown:ue,children:he()})]}),"months"===R&&ve(),"years"===R&&Me()]}),A&&"days"===R&&e(m,{value:E,onChange:se,showSecond:C,hourStep:x.hourStep,minuteStep:x.minuteStep,secondStep:x.secondStep,hourLabel:j.hour??"Hour",minuteLabel:j.minute??"Minute",secondLabel:j.second??"Second"})]}),A&&r("div",{className:"itd-calendar-footer",children:[e(u,{variant:"link",size:"small",className:"itd-calendar-now",onClick:ie,children:j.now??"Now"}),e(u,{variant:"default",size:"small",className:"itd-calendar-ok",onClick:me,children:j.ok??"OK"})]})]}):null};export{b as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{useState as n,useRef as r,useEffect as d}from"react";import"../../helpers/datetime/dayjsSetup.js";import s from"../dates.js";import o from"../day/Day.js";import i from"../header/Header.js";import l from"../time/Time.js";import c from"../../button/index.js";import u from"dayjs";const m=({value:m,openNonce:h,activeSegment:y,activeSegmentNonce:f=0,liveStart:v=null,liveEnd:g=null,liveEdge:p="start",liveNonce:b=0,onChange:S,onActiveSegmentChange:k,disabledDate:N,locale:Y,showTime:w=!1,getNow:M,presets:O,dual:D=!0,compact:C=!1,className:E=""})=>{const j=!!w,A="object"==typeof w?w:{},x=!!A.showSecond,[L,P]=n(()=>M().startOf("month")),[R,$]=n(null),[B,H]=n(null),[K,T]=n(null),[U,q]=n(null),[z,F]=n("start"),[G,I]=n("start"),[J,Q]=n(()=>M()),[V,W]=n("days"),[X,Z]=n(()=>M().startOf("month")),[_,ee]=n("left"),te=r(null),ae=r(!1),ne=L.add(1,"month"),re=(e,t,a)=>"end"===e?D&&a?a.subtract(1,"month").startOf("month"):(a||t||M()).startOf("month"):(t||a||M()).startOf("month");d(()=>{const[e,t]=m;$(e),H(t),T(null),q(null),W("days"),F("end"===y&&e?"end":"start"),I("end"===y&&e?"end":"start");P(re("end"===y?"end":"start",e,t)),Q("end"===y&&t||e||M())},[h]),d(()=>{y&&("end"===y&&R&&F("end"),"start"===y&&F("start"))},[y]),d(()=>{if(0===f)return;const e="end"===y?"end":"start";I(e),W("days");const t="end"===e&&B||R;t&&(P(re(e,R,B)),Q(t))},[f]),d(()=>{if(0===b)return;$(v),H(g),I(p),W("days");const e=v&&g?"start":p,t="end"===e?g||v:v||g;t&&(P(re(e,v,g)),Q(t))},[b]);const de=e=>!!N&&N(e),se=(e,t)=>{if(!j)return e.startOf("day");const a="start"===t?R:B;return a?e.hour(a.hour()).minute(a.minute()).second(x?a.second():0).millisecond(0):"start"===t?e.startOf("day"):e.hour(23).minute(59).second(x?59:0).millisecond(0)},oe=e=>{if(Q(e),j){if("end"===G){const t=se(e,"end");H(t),S({start:R,end:t},!1)}else{const t=se(e,"start");$(t),S({start:t,end:B},!1)}return}if("start"===z||!R){const t=se(e,"start");return $(t),H(null),F("end"),void S({start:t,end:null},!1)}let t=R,a=se(e,"end");if(a.isBefore(t,"day")){const n=t;t=se(e,"start"),a=se(n,"end")}$(t),H(a),F("start"),T(null),S({start:t,end:a},!0)},ie=e=>{"end"===z&&R&&!B&&T(e)},le="start"===G?!!R:!!R&&!!B,ce=e=>{if(!R||!B)return!1;const t=j?"minute":"day";return e.value[0].isSame(R,t)&&e.value[1].isSame(B,t)},[ue,me]=U||(R&&!B&&K&&"end"===z?K.isBefore(R,"day")?[K,R]:[R,K]:R&&B?R.isAfter(B,"day")?[B,R]:[R,B]:[R||B,null]),he="end"===z?B:R;d(()=>{if(!ae.current)return;const e=te.current?.querySelector(`[data-itd-date="${J.format("YYYY-MM-DD")}"]:not([disabled])`);e&&(ae.current=!1,e.focus())},[J,L]);const ye=(a,n)=>{const r=s(a.month()+1,a.year(),Y.firstDay),d=M();return e("div",{className:"itd-calendar-range-panel",children:[t(i,{month:Y.months[a.month()],year:String(a.year()),viewMode:"days",hideNext:D&&"left"===n,hidePrev:D&&"right"===n,onClickMonth:()=>(e=>{ee(e),Z("left"===e?L:ne),W("months")})(n),onClickYear:()=>(e=>{ee(e),Z("left"===e?L:ne),W("years")})(n),onPrevYear:()=>P(L.subtract(1,"year")),onPrevMonth:()=>P(L.subtract(1,"month")),onNextMonth:()=>P(L.add(1,"month")),onNextYear:()=>P(L.add(1,"year"))}),t("div",{className:"itd-calendar-weekdays",children:Y.weekdaysShort.map((e,a)=>t("div",{children:t("span",{children:e})},a))}),t("div",{className:"itd-calendar-days",role:"grid",children:r.map(e=>{const r=u(e,"MM/DD/YYYY"),s=r.month()===a.month(),i=s?(e=>{if(!ue)return{rangeStart:!1,rangeEnd:!1,inRange:!1};if(!me){const t=e.isSame(ue,"day");return{rangeStart:t,rangeEnd:t,inRange:!1}}return{rangeStart:e.isSame(ue,"day"),rangeEnd:e.isSame(me,"day"),inRange:e.isAfter(ue,"day")&&e.isBefore(me,"day")}})(r):{rangeStart:!1,rangeEnd:!1,inRange:!1};return t(o,{date:r,today:r.isSame(d,"day"),current:s,disabled:de(r),focusable:r.isSame(J,"day"),handleClick:oe,onHover:ie,rangeStart:i.rangeStart,rangeEnd:i.rangeEnd,inRange:i.inRange,children:r.format("D")},`${n}-${a.format("YYYY-MM")}-${e}`)})})]})},fe=("end"===G?B:R)||M();return e("div",{className:`itd-calendar itd-calendar-range ${E}`.trim(),"data-compact":C?"":void 0,children:[O.length>0&&t("div",{className:"itd-calendar-range-presets",onMouseLeave:()=>q(null),children:O.map((e,a)=>t("button",{type:"button",className:"itd-calendar-range-preset","data-active":ce(e)||void 0,onClick:()=>(e=>{const[t,a]=e.value;$(t),H(a),F("start"),I("end"),T(null),q(null),P(t.startOf("month")),S({start:t,end:a},!0)})(e),onMouseEnter:()=>"days"===V&&q(e.value),onFocus:()=>"days"===V&&q(e.value),onBlur:()=>q(null),children:e.label},a))}),t("div",{className:"itd-calendar-range-calendars",children:"days"===V?e(a,{children:[t("div",{ref:te,onKeyDown:e=>{if("Enter"===e.key||" "===e.key)return e.preventDefault(),void(de(J)||oe(J));let t=null,a=1;switch(e.key){case"ArrowLeft":t=J.subtract(1,"day"),a=-1;break;case"ArrowRight":t=J.add(1,"day"),a=1;break;case"ArrowUp":t=J.subtract(7,"day"),a=-1;break;case"ArrowDown":t=J.add(7,"day"),a=1;break;case"Home":t=J.startOf("week"),a=1;break;case"End":t=J.endOf("week"),a=-1;break;case"PageUp":t=J.subtract(1,"month"),a=-1;break;case"PageDown":t=J.add(1,"month"),a=1;break;default:return}e.preventDefault();let n=0;for(;t&&de(t)&&n<366;)t=t.add(a,"day"),n++;if(!t||de(t))return;ae.current=!0,Q(t),T(t);const r=D?ne:L;t.isBefore(L.startOf("month"),"day")?P(t.startOf("month")):t.isAfter(r.endOf("month"),"day")&&P((D?t.subtract(1,"month"):t).startOf("month"))},onMouseLeave:()=>"end"===z&&T(null),children:e("div",{className:"itd-calendar-range-panels",children:[ye(L,"left"),D&&ye(ne,"right"),j&&t(l,{value:fe,onChange:e=>{const t=t=>t.hour(e.hour()).minute(e.minute()).second(x?e.second():0).millisecond(0);if("end"===G){const e=t(B||J);H(e),S({start:R,end:e},!1)}else{const e=t(R||J);$(e),S({start:e,end:B},!1)}},showSecond:x,hourStep:A.hourStep,minuteStep:A.minuteStep,secondStep:A.secondStep,hourLabel:Y.hour??"Hour",minuteLabel:Y.minute??"Minute",secondLabel:Y.second??"Second",fill:!0})]})}),j&&t("div",{className:"itd-calendar-range-footer",children:t(c,{variant:"default",size:"small",className:"itd-calendar-ok",onClick:()=>{if("start"===G){if(!R)return;return void(e=>{I(e),W("days");const t=B||R;t&&(P(re(e,R,B)),Q(t)),k?.(e)})("end")}if(!R||!B)return;let e=R,t=B;t.isBefore(e,j?"minute":"day")&&(e=B,t=R),S({start:e,end:t},!0)},disabled:!le,children:Y.ok??"OK"})})]}):"months"===V?e("div",{className:"itd-calendar-range-picker-panel","data-dual":D||void 0,children:[t(i,{viewMode:"months",year:String(X.year()),onClickYear:()=>W("years"),onPrevYear:()=>Z(X.subtract(1,"year")),onNextYear:()=>Z(X.add(1,"year"))}),t("div",{className:"itd-calendar-months",children:Y.months.map((e,a)=>{const n=X.month()===a,r=he?.year()===X.year()&&he?.month()===a;return t("button",{type:"button",className:"itd-calendar-month"+(n?" itd-calendar-month-current":"")+(r?" itd-calendar-month-selected":""),onClick:()=>(e=>{const t=X.month(e).startOf("month");P("right"===_?t.subtract(1,"month"):t),W("days")})(a),children:e},a)})})]}):(()=>{const a=10*Math.floor(X.year()/10),n=Array.from({length:12},(e,t)=>a-1+t);return e("div",{className:"itd-calendar-range-picker-panel","data-dual":D||void 0,children:[t(i,{viewMode:"years",year:String(X.year()),decadeLabel:`${a}-${a+9}`,onPrevYear:()=>Z(X.subtract(10,"year")),onNextYear:()=>Z(X.add(10,"year"))}),t("div",{className:"itd-calendar-years",children:n.map(e=>{const n=X.year()===e,r=he?.year()===e;return t("button",{type:"button",className:"itd-calendar-year"+(n?" itd-calendar-year-current":"")+(r?" itd-calendar-year-selected":"")+(e<a||e>a+9?" itd-calendar-year-outside":""),onClick:()=>{return t=e,Z(X.year(t)),void W("months");var t},children:e},e)})})]})})()})]})};export{m as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as l,useEffect as a}from"react";const r=(e,t)=>{const l=t>0?t:1,a=[];for(let t=0;t<e;t+=l)a.push(t);return a},n=({values:e,selected:r,ariaLabel:n,onSelect:o,fill:c})=>{const i=l(null),s=l(null);a(()=>{const e=i.current,t=s.current;if(!e||!t)return;const l=t.offsetTop,a=l+t.offsetHeight;l<e.scrollTop?e.scrollTop=l:a>e.scrollTop+e.clientHeight&&(e.scrollTop=a-e.clientHeight)},[r]);return t("div",{ref:i,role:"listbox","aria-label":n,className:"itd-calendar-time-column","data-fill":c||void 0,onKeyDown:t=>{const l=e.indexOf(r),a=-1!==l?l:e.reduce((t,l,a)=>Math.abs(l-r)<Math.abs(e[t]-r)?a:t,0);let n=a;switch(t.key){case"ArrowDown":n=Math.min(e.length-1,a+1);break;case"ArrowUp":n=Math.max(0,a-1);break;case"Home":n=0;break;case"End":n=e.length-1;break;default:return}t.preventDefault();const c=e[n];var s;c!==r&&o(c),s=c,requestAnimationFrame(()=>{i.current?.querySelector(`[data-value="${s}"]`)?.focus({preventScroll:!0})})},children:e.map(e=>{const l=e===r;return t("button",{ref:l?s:void 0,type:"button",role:"option","aria-selected":l,"aria-label":`${n} ${e}`,"data-value":e,tabIndex:l?0:-1,className:"itd-calendar-time-cell"+(l?" itd-calendar-time-cell-selected":""),onClick:()=>o(e),children:(a=e,String(a).padStart(2,"0"))},e);var a})})},o=({value:l,onChange:a,showSecond:o=!1,hourStep:c=1,minuteStep:i=1,secondStep:s=1,hourLabel:u="Hour",minuteLabel:d="Minute",secondLabel:m="Second",fill:f=!1})=>{const h=r(24,c),p=r(60,i),b=r(60,s);return e("div",{className:"itd-calendar-time",children:[t(n,{values:h,selected:l.hour(),ariaLabel:u,onSelect:e=>a(l.hour(e)),fill:f}),t(n,{values:p,selected:l.minute(),ariaLabel:d,onSelect:e=>a(l.minute(e)),fill:f}),o&&t(n,{values:b,selected:l.second(),ariaLabel:m,onSelect:e=>a(l.second(e)),fill:f})]})};o.displayName="Time";export{o as default};
@@ -0,0 +1 @@
1
+ import{jsxs as r,jsx as i}from"react/jsx-runtime";import{useMemo as e}from"react";import t from"../spin/index.js";import{ComponentVariants as a}from"../enums/enum.js";import{useDefaultVariant as d}from"../context/FormDefaultsContext.js";import{cn as o}from"../utils/cn.js";const s=({children:s,className:m="",variant:n,updating:c=!1})=>{const l=d(n,a.DEFAULT),p=e(()=>{let r="itd-card flex flex-col relative overflow-hidden";return l&&(r+=` itd-card-${l}`),o(r,m)},[l,m]);return r("div",{className:p,inert:c||void 0,"aria-busy":c||void 0,children:[i("div",{className:"itd-card-body",children:s}),c&&i("div",{className:"itd-card-overlay",children:i(t,{updating:!0,className:"itd-card-spin"})})]})};s.displayName="Card";export{s as Card};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{cn as i}from"../utils/cn.js";const t=({children:t,className:a})=>e("div",{className:i("itd-card-action flex justify-between gap-2",a),children:t});t.displayName="CardAction";export{t as CardAction};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{cn as t}from"../utils/cn.js";const r=({children:r,className:a})=>e("div",{className:t("itd-card-content flex flex-col gap-6 px-6",a),children:r});r.displayName="CardContent";export{r as CardContent};
@@ -0,0 +1 @@
1
+ import{jsx as i}from"react/jsx-runtime";import{cn as r}from"../utils/cn.js";const s=({children:s,className:c})=>i("div",{className:r("itd-card-description",c),children:s});s.displayName="CardDescription";export{s as CardDescription};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{cn as r}from"../utils/cn.js";const t=({children:t,className:i})=>e("div",{className:r("itd-card-footer flex items-center py-4 px-6",i),children:t});t.displayName="CardFooter";export{t as CardFooter};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{Children as r,isValidElement as t,useMemo as a}from"react";import{cn as i}from"../utils/cn.js";const n=({children:n,className:s,separator:m=!1})=>{const o=r.toArray(n),p=o.some(e=>{if(t(e)){const r=e.type.displayName||e.type.name;return"CardTabs"===r||"CardAction"===r}return!1}),c=o.some(e=>{if(t(e)){return"CardDescription"===(e.type.displayName||e.type.name)}return!1}),d=m||p,l=a(()=>{let e="itd-card-header px-6";return e+=p?" flex items-center justify-between gap-8 min-h-16":c?" flex flex-col gap-1 py-4":" flex items-center min-h-16",d&&(e+=" itd-card-header-separator"),i(e,s)},[p,c,d,s]);return e("div",{className:l,children:n})};n.displayName="CardHeader";export{n as CardHeader};
@@ -0,0 +1 @@
1
+ import{jsx as s}from"react/jsx-runtime";import{Tabs as t}from"../tabs/Tabs.js";import"../tabs/TabsList.js";import"../tabs/TabsTrigger.js";import"../tabs/TabsContent.js";import{cn as a}from"../utils/cn.js";const r=({className:r,children:i,...m})=>s(t,{fill:!0,className:a("itd-card-tabs",r),...m,children:i});r.displayName="CardTabs";export{r as CardTabs};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{cn as t}from"../utils/cn.js";const a=({children:a,className:e,as:i="h3"})=>r(i,{className:t("itd-card-title",e),children:a});a.displayName="CardTitle";export{a as CardTitle};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useRef as t,useEffect as o}from"react";import{createPortal as n}from"react-dom";import{X as l}from"lucide-react";import c from"../button/index.js";import{ButtonSizes as i}from"../enums/enum.js";import{usePortalDocument as a}from"../context/PortalDocumentContext.js";import{useScrollLock as s}from"../primitives/scrollLock.js";const m=({title:m,closeLabel:d,onClose:u,children:f})=>{const p=a(),h=t(null),v=t(null);return s(!0,h),o(()=>{v.current?.focus?.();const e=h.current?.ownerDocument;if(!e)return;const r=e=>{"Escape"===e.key&&u()};return e.addEventListener("keydown",r),()=>e.removeEventListener("keydown",r)},[u]),p?n(e("div",{ref:h,className:"itd-chart-fullscreen",role:"dialog","aria-modal":"true","aria-label":m,children:r("div",{className:"itd-chart-fullscreen-stage itd-chart",children:[f,e(c,{ref:v,variant:"ghost",size:i.ICON,className:"itd-chart-fullscreen-close","aria-label":d,onClick:u,children:e(l,{})})]})}),p.body):null};export{m as ChartFullscreen,m as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useRef as i,useState as a,useEffect as n,useLayoutEffect as c}from"react";import{flushSync as l}from"react-dom";import{CartesianGrid as d,XAxis as o,YAxis as s,Tooltip as m,Line as h,ResponsiveContainer as u,LineChart as p}from"recharts";import{ChartLine as f,RotateCw as y}from"lucide-react";import g from"../amount/index.js";import v from"../button/index.js";import{useITDLocale as k}from"../locale/useITDLocale.js";import{cn as N}from"../utils/cn.js";import{ChartFullscreen as w}from"./Fullscreen.js";import{resolveChartPalette as b,CHART_SERIES_SLOTS as x}from"./palette.js";const L="undefined"==typeof window?n:c,T=({active:r,payload:i,label:a,series:n,colorOf:c,renderValue:l,renderTitle:d})=>{if(!r||!i||0===i.length)return null;const o=i[0]?.payload;return t("div",{className:"itd-chart-tip",children:[e("div",{className:"itd-chart-tip-title",children:d?d(a,o):String(a??"")}),i.map(r=>{const i=n.find(e=>e.key===r.dataKey);return i&&"number"==typeof r.value?t("div",{className:"itd-chart-tip-row",children:[e("span",{className:"itd-chart-swatch",style:{background:c(i.key)},"aria-hidden":"true"}),e("span",{className:"itd-chart-tip-name",children:i.label??i.key}),e("span",{className:"itd-chart-tip-value",children:l(r.value,i)})]},String(r.dataKey)):null})]})},j=({data:n,series:c,xKey:j,height:D=280,width:F,currency:C,decimals:K,formatValue:S,formatXTick:I,formatTooltipTitle:O,showGrid:V=!0,showLegend:M,animate:A=!0,mobile:B="inline",className:E})=>{const{t:G,language:J}=k(),W=i(null),[X,q]=a(null),[z,H]=a(!1),[P,Q]=a(!1),[R,U]=a(!1);L(()=>{const e=W.current,t=e?.ownerDocument,r=t?.defaultView;if(!e||!t||!r)return;Q(t.documentElement.classList.contains("itd-touch")),H(r.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1);let i,a=!1,n=0,c="";const d=t=>{if(a)return;const o=b(e);if(!(!!o&&o.series.some(Boolean))&&n<20)return n+=1,void(i=r.setTimeout(()=>d(!1),150));const s=JSON.stringify(o);s!==c&&(c=s,t?l(()=>q(o)):q(o))};d(!1);const o=new r.MutationObserver(()=>{n=0,void 0!==i&&r.clearTimeout(i),d(!0)});return o.observe(t.head,{childList:!0,subtree:!0,characterData:!0}),()=>{a=!0,void 0!==i&&r.clearTimeout(i),o.disconnect()}},[]);const Y=e=>{const t=c.findIndex(t=>t.key===e),r=t>=0?c[t]:void 0;return r?.color||X?.series[t%x]||"currentColor"},Z=e=>I?I(e):String(e??""),$=M??c.length>1,_="number"==typeof F,ee="expand"===B&&P,te=[V?e(d,{vertical:!1},"grid"):null,e(o,{dataKey:j,axisLine:!1,tickLine:!1,tickMargin:8,tickFormatter:Z},"x"),e(s,{axisLine:!1,tickLine:!1,width:"auto",tickFormatter:e=>"number"==typeof e?new Intl.NumberFormat(J,{notation:"compact",maximumFractionDigits:1}).format(e):String(e??"")},"y"),e(m,{content:e(T,{series:c,colorOf:Y,renderValue:(t,r)=>S?S(t,r):void 0!==C?e(g,{value:t,currency:C,decimals:K}):new Intl.NumberFormat(J,{maximumFractionDigits:2}).format(t),renderTitle:(e,t)=>O?O(e,t):Z(e)}),cursor:{strokeDasharray:"4 4"}},"tip"),...c.map(t=>e(h,{type:"monotone",dataKey:t.key,stroke:Y(t.key),strokeWidth:2,dot:!1,activeDot:{r:4,fill:Y(t.key),stroke:"none"},isAnimationActive:A&&!z},t.key))],re={top:8,right:12,bottom:0,left:0},ie=$&&e("div",{className:"itd-chart-legend",children:c.map(r=>t("span",{className:"itd-chart-legend-item",children:[e("span",{className:"itd-chart-swatch",style:{background:Y(r.key)},"aria-hidden":"true"}),r.label??r.key]},r.key))});return e("div",{ref:W,className:N("itd-chart",E),children:t(r,ee?{children:[t("div",{className:"itd-chart-expand-poster",style:{height:D},onClick:()=>U(!0),children:[e("div",{className:"itd-chart-expand-preview","aria-hidden":"true",children:e(u,{width:"100%",height:"100%",children:e(p,{data:n,margin:re,children:te})})}),e("div",{className:"itd-chart-expand-scrim","aria-hidden":"true"}),t(v,{variant:"outline",className:"itd-chart-expand",onClick:()=>U(!0),children:[e(f,{})," ",G("chart.open")]})]}),R&&t(w,{title:G("chart.title"),closeLabel:G("chart.close"),onClose:()=>U(!1),children:[e("div",{className:"itd-chart-fullscreen-scroller",children:e("div",{className:"itd-chart-fullscreen-canvas",style:{width:48*n.length},children:e(u,{width:"100%",height:"100%",children:e(p,{data:n,margin:re,children:te})})})}),ie,t("div",{className:"itd-chart-fullscreen-hint","aria-hidden":"true",children:[e(y,{})," ",G("chart.rotate")]})]})]}:{children:[_?e(p,{data:n,width:F,height:D,margin:re,children:te}):e(u,{width:"100%",height:D,children:e(p,{data:n,margin:re,children:te})}),ie]})})};j.displayName="LineChart";export{T as LineChartTip,j as default};
@@ -0,0 +1 @@
1
+ const t=4,e=t=>{const e=t?.ownerDocument.defaultView;if(!t||!e)return null;const r=e.getComputedStyle(t),o=(...t)=>{for(const e of t){const t=r.getPropertyValue(e).trim();if(t)return t}return""},n=[];for(let t=1;t<=4;t+=1)n.push(o("--itd-chart-series-"+t,"--_chart-s"+t));return{series:n}};export{t as CHART_SERIES_SLOTS,e as resolveChartPalette};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{forwardRef as r,useRef as i,useId as a,useState as o,useEffect as c,useImperativeHandle as n,useMemo as d}from"react";import{ErrorTooltip as l}from"../utils/CommonStyledComponents.js";import{getErrorId as s,getErrorAriaProps as m,ErrorAnnouncement as u}from"../utils/ErrorAnnouncement.js";import{FieldError as h}from"../field/index.js";import{ComponentVariants as p,ComponentSizes as b,ComponentSizesSlug as f,TooltipPositions as k}from"../enums/enum.js";import x from"../utils/GetSizeSlugBySize.js";import{cn as v}from"../utils/cn.js";import{useDefaultVariant as L}from"../context/FormDefaultsContext.js";const A=r(({id:r="",checked:A=!1,indeterminate:D=!1,disabled:N=!1,readOnly:y=!1,variant:E,size:g=b.DEFAULT,animated:j=!1,className:S="",errorDisplay:F="tooltip",value:M,children:U,onChange:C,onUpdate:T},z)=>{const P=L(E,p.DEFAULT),w=i(null),G=a(),[I,O]=o(A??!1),[V,X]=o(j),[_,B]=o(!1),[R,q]=o(!1),[H,J]=o(""),[K,Q]=o(!1),[W,Y]=o(r);c(()=>{""===r&&Y("itd-checkbox-"+G)},[]),c(()=>{null!=A&&A!==I&&(O(A),$(A))},[A]),c(()=>{X(j)},[j]),c(()=>{null!=D&&(B(D),w.current&&(w.current.indeterminate=!!D,w.current.setAttribute("aria-checked",D?"mixed":I?"true":"false")))},[D]),c(()=>{w.current&&(w.current.indeterminate=!!_,w.current.setAttribute("aria-checked",_?"mixed":I?"true":"false"))},[_,I]),n(z,()=>({reset(e=!0,t=!0){const r=A||!1;O(r),J(""),$(r,e,t)},setValue(e=!1,t=!0,r=!0){O(e),$(e,t,r)},getValue:()=>I,setError(e=""){J(e)},setDisabled(e=!0){q(e)},forceUpdate(){$(I)},clear(){O(!1)}}));const Z=e=>{y||N?e.preventDefault():(I||J(""),C&&C({checked:!I,value:M,className:"itd-checkbox",disabled:N||R,target:w,stopPropagation:()=>e.stopPropagation(),preventDefault:()=>e.preventDefault()}),X(!0),B(!1),O(!I),$(!I))},$=(e,t=!0,r=!0)=>{T&&T(e,t,r)},ee=()=>{if(""!==H&&!N&&"tooltip"===F)return e(l,{className:"itd-checkbox-error-tooltip",position:k.TOP_LEFT,offsetX:-4,"aria-hidden":"true",children:H})},te=d(()=>{let e="itd-checkbox";return e+=" itd-checkbox-"+P,e+=" itd-checkbox-"+(e=>{const t=x(e);return t===f.X_SMALL||t===f.SMALL?f.SMALL:t===f.MEDIUM||t===f.DEFAULT?f.DEFAULT:f.LARGE})(g),I&&(e+=" itd-checkbox-selected"),K&&(e+=" itd-checkbox-active"),""!==H&&(e+=" itd-checkbox-error"),(N||R)&&(e+=" itd-checkbox-disabled"),y&&(e+=" itd-checkbox-readonly"),v(e,S)},[P,g,I,K,H,N,R,y,S]),re=()=>!N&&("boolean"==typeof I?I:"true"===I),ie=()=>t("div",{className:te,children:[t("div",{className:"itd-checkbox-inner-wrapper",onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),children:[e("span",{className:"itd-checkbox-checkmark",...I?{"data-checked":""}:{},...V?{"data-animated":""}:{},..._?{"data-indeterminate":""}:{},children:e("input",{className:"itd-checkbox-input",id:W,ref:w,type:"checkbox",disabled:N||R,checked:re(),value:re().toString(),onChange:Z,tabIndex:N||R?-1:0,"data-readonly":y?"true":"false","aria-readonly":y||void 0,"aria-checked":_?"mixed":re()?"true":"false",...m(W,""!==H)})}),e("label",{className:"itd-checkbox-label",htmlFor:W,children:U})]}),""===H||N||"tooltip"!==F?null:e(u,{id:s(W),message:H}),ee()]}),ae="inline"!==F||""===H||N?null:e(h,{id:s(W),className:"itd-checkbox-field-error",children:H});return"inline"===F?t("div",{className:"itd-field-with-error",children:[ie(),ae]}):ie()});A.displayName="Checkbox";export{A as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useId as l,useState as o,useEffect as i,useImperativeHandle as a,useMemo as c,useLayoutEffect as u}from"react";import{ErrorSVGIcon as s,ErrorTooltip as d}from"../utils/CommonStyledComponents.js";import{FieldError as m}from"../field/index.js";import{getErrorAriaProps as f,getErrorId as h,ErrorAnnouncement as p}from"../utils/ErrorAnnouncement.js";import g from"../utils/GetSizeSlugBySize.js";import{ComponentSizes as v}from"../enums/enum.js";import{initFocusModality as M,wasLastInputKeyboard as x}from"../utils/focusModality.js";import{GetPlatform as w}from"../helpers/platform/index.js";import{PlatformTypes as y}from"../helpers/classname/GetClassNameByPlatform.js";import{useDefaultVariant as C}from"../context/FormDefaultsContext.js";const D=r((r,D)=>{const{id:b,length:S=6,value:E,defaultValue:j="",validChars:A="0-9",inputMode:N="numeric",autoComplete:R="one-time-code",autoFocus:B=!1,passwordMode:k=!1,passwordChar:F="•",placeholder:L="",disabled:P=!1,locked:V=!1,size:I=v.LARGE,variant:K,className:O="",errorDisplay:q,onChange:z,onComplete:G,onUpdate:U,onFocus:H,onBlur:$,...T}=r,X=C(K,"default"),J=q??(w()===y.MOBILE?"inline":"tooltip"),Q=n(null),W=l(),Y=b??"itd-code-input-"+W,[Z,_]=o(j),[ee,te]=o(!1),[re,ne]=o(!1),[le,oe]=o(""),[ie,ae]=o(!1),[ce,ue]=o(0),[se,de]=o(null),me=void 0!==E?E:Z,fe=n(me),he=n(0),pe=n(null),ge=n(me);if(pe.current=se,ge.current!==me){ge.current=me;const e=Math.min(me.length,S-1);he.current=e,ue(e)}fe.current=me;const ve=e=>{pe.current=e,de(e)},Me=()=>{const e=fe.current;return{value:e,caret:he.current,selection:pe.current,maxCaret:Math.min(e.length,S-1),maxSelectable:Math.max(0,e.length-1)}};i(()=>{M(Q.current)},[]),i(()=>{B&&Q.current?.focus()},[B]);const xe=(e,t=!0,r=!0)=>{U&&U(e,t,r)};a(D,()=>({setFocus(){te(!0),Q.current?.focus()},reset(e=!0,t=!0){_(j),oe(""),ve(null),xe(j,e,t)},setValue(e,t=!0,r=!0){_(e??""),ve(null),xe(e??"",t,r)},getValue:()=>me,setError(e){oe(e)},setDisabled(){},forceUpdate(){xe(me)},clear(){_(""),ve(null)},scrollIntoView(e){Q.current?.scrollIntoView(e)}}));const we=c(()=>new RegExp("^["+A+"]{0,"+S+"}$"),[A,S]),ye=c(()=>new RegExp("^["+A+"]$"),[A]),Ce=c(()=>new RegExp("[^"+A+"]","g"),[A]),De=e=>e.replace(Ce,""),be=e=>{he.current=e,ue(e);const t=Q.current;if(t)try{t.setSelectionRange(e,e)}catch{}},Se=n(null);u(()=>{if(null===Se.current)return;const e=Se.current;Se.current=null;const t=Q.current;if(t)try{t.setSelectionRange(e,e)}catch{}});const Ee=(e,t)=>{const r=fe.current.length===S;fe.current=e,ge.current=e,he.current=t,pe.current=null,void 0===E&&_(e),oe(""),de(null),xe(e),z&&z(e),ue(t),Se.current=t,!r&&e.length===S&&G&&G(e)},je=e=>{const t=Q.current;!t||P||V||(t.focus(),ve(null),be(Math.min(e,Me().maxCaret)))},Ae=c(()=>{let e="itd-code-input itd-code-input-"+g(I);return e+=" itd-code-input-"+X,P&&(e+=" itd-code-input-disabled"),V&&(e+=" itd-code-input-locked"),!le||P||V||(e+=" itd-code-input-error"),ee&&re&&(e+=" keyboard-focus"),ee&&(e+=" focused"),""!==O&&(e+=" "+O),e},[I,X,P,V,le,ee,re,O]),Ne=""!==le&&!P&&!V,Re=e=>!!se&&e>=se.from&&e<=se.to,Be=Math.min(ce,Me().maxCaret),ke=e=>ee&&!se&&Be===e,Fe=e=>me.length>e,Le=e=>me.length<e,Pe=e=>{const t=me[e];return t?k?F:t:L};return e("div",{className:Ae+(Ne&&"tooltip"!==J?" itd-field-with-error":""),children:[e("div",{className:"itd-code-input-box",onPointerDown:e=>{if(P||V)return;if(e.target.closest?.(".itd-code-input-cell"))return;e.preventDefault();const t=Array.from(e.currentTarget.querySelectorAll(".itd-code-input-cell"));if(0===t.length)return;let r=0,n=1/0;t.forEach((t,l)=>{const o=t.getBoundingClientRect(),i=Math.abs(e.clientX-(o.left+o.width/2));i<n&&(n=i,r=l)}),je(r)},children:[t("input",{...T,ref:Q,id:Y,className:"itd-code-input-field",value:me,type:k?"password":"text",inputMode:N,autoComplete:R,spellCheck:!1,disabled:P,readOnly:V,onChange:e=>{const t=fe.current,r=pe.current,n=e.target.value,l=De(n),o=l.length-t.length,i=Math.max(0,De(n.slice(0,e.target.selectionStart??n.length)).length-o);let a=l,c=Math.min(l.length,S-1);if(l.length>t.length){let e=0;for(;e<t.length&&e<i&&t[e]===l[e];)e++;let n=0;for(;n<t.length-e&&n<l.length-e&&t[t.length-1-n]===l[l.length-1-n];)n++;const o=l.slice(e,l.length-n);r?(a=t.slice(0,r.from)+o+t.slice(r.to+1),c=r.from+o.length):(a=t.slice(0,e)+o+t.slice(e+o.length),c=e+o.length)}if(a=a.slice(0,S),a===t||!we.test(a))return Se.current=Math.min(he.current,t.length),ue(Se.current),void(Q.current&&Q.current.value!==t&&(Q.current.value=t));Ee(a,Math.min(c,Math.min(a.length,S-1)))},onKeyDown:e=>{if(V||P)return;const t=e.key,r=e.metaKey||e.ctrlKey,{value:n,caret:l,selection:o,maxCaret:i,maxSelectable:a}=Me();if(r&&"a"===t.toLowerCase()){if(e.preventDefault(),0===n.length)return;ve({from:0,to:n.length-1,anchor:0,all:!0})}else if("Escape"!==t){if("Enter"===t){if(n.length!==S)return;if(G)return e.preventDefault(),void G(n);const t=Q.current?.form;return void(t&&(e.preventDefault(),"function"==typeof t.requestSubmit?t.requestSubmit():t.submit()))}if("ArrowUp"!==t&&"ArrowDown"!==t){if("ArrowLeft"===t||"ArrowRight"===t){e.preventDefault();const r="ArrowLeft"===t?-1:1;if(e.shiftKey){if(0===n.length)return;if(o?.all)return;const e=o?.anchor??Math.min(l,a),t=o?o.from===e?o.to:o.from:e,i=Math.max(0,Math.min(t+r,a));return ve({from:Math.min(e,i),to:Math.max(e,i),anchor:e}),he.current=i,void ue(i)}return o?(ve(null),void be(r<0?Math.max(0,o.from-1):Math.min(i,o.to+1))):void be(Math.max(0,Math.min(l+r,i)))}if("Home"===t||"End"===t)return e.preventDefault(),ve(null),void be("Home"===t?0:i);if("Backspace"===t||"Delete"===t){if(e.preventDefault(),o)return void Ee(n.slice(0,o.from)+n.slice(o.to+1),o.from);if(0===n.length)return;if("Delete"===t){if(l>=n.length)return;return void Ee(n.slice(0,l)+n.slice(l+1),l)}const r=l>=n.length,i=r?n.length-1:l;return void Ee(n.slice(0,i)+n.slice(i+1),r?i:Math.max(0,i-1))}if(!r&&1===t.length&&ye.test(t)){if(e.preventDefault(),o){const e=n.slice(0,o.from)+t+n.slice(o.to+1);return void Ee(e,Math.min(o.from+1,Math.min(e.length,S-1)))}const r=Math.min(l,S-1),i=n.slice(0,r)+t+n.slice(r+1);Ee(i,Math.min(r+1,Math.min(i.length,S-1)))}}else e.preventDefault()}else ve(null)},onFocus:()=>{te(!0),ne(x(Q.current)),be(Me().maxCaret),H&&H()},onBlur:()=>{te(!1),ve(null),$&&$()},...f(Y,Ne)}),Array.from({length:S},(e,r)=>t("div",{className:"itd-code-input-cell","data-selected":ke(r)?"":void 0,"data-range":Re(r)?"":void 0,"data-filled":Fe(r)?"":void 0,"data-inactive":Le(r)?"":void 0,onPointerDown:e=>{e.preventDefault(),je(r)},"aria-hidden":!0,children:Pe(r)},r)),Ne&&"tooltip"===J?e("div",{className:"itd-code-input-status itd-input-failed itd-failed-status",onPointerOver:()=>ae(!0),onPointerOut:()=>ae(!1),children:[ie?t(d,{className:"itd-input-error-tooltip","aria-hidden":"true",children:le}):null,s]}):null]}),Ne&&"inline"===J?t(m,{id:h(Y),children:le}):null,Ne&&"tooltip"===J?t(p,{id:h(Y),message:le}):null]})});D.displayName="CodeInput";export{D as default};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{useState as e,useRef as n,useEffect as t}from"react";import u from"../input/index.js";const l=r=>/^#[0-9a-fA-F]{6}$/.test(r??"")?r:"#000000",c=({value:c="",size:o,disabled:a=!1,placeholder:i="#ff0044",onChange:d})=>{const[s,p]=e(c),m=n(c),w=n(null),f=n(null),h=n(d);h.current=d,t(()=>{c!==m.current&&(w.current&&(window.clearTimeout(w.current),w.current=null,f.current=null),m.current=c,p(c))},[c]),t(()=>()=>{w.current&&(window.clearTimeout(w.current),null!==f.current&&f.current!==m.current&&(m.current=f.current,h.current?.(f.current)))},[]);const g=r=>{p(r),f.current=r,w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{w.current=null,f.current=null,m.current=r,d?.(r)},120)};return r(u,{size:o,value:s,disabled:a,placeholder:i,prefix:r("span",{className:"itd-color-input-well",style:{backgroundColor:l(s)},"aria-hidden":a||void 0,children:r("input",{type:"color",className:"itd-color-input-well-input",value:l(s),disabled:a,"aria-label":"Pick a colour",onChange:r=>g(r.target.value)})}),onChange:r=>g(String(r??""))})};export{c as default};
@@ -0,0 +1 @@
1
+ import{jsx as o,Fragment as e,jsxs as n}from"react/jsx-runtime";import{useITDLocale as i}from"../locale/useITDLocale.js";const s=({label:s,show:c=!0,children:l,className:t})=>{const{t:a}=i();return c?n("div",{className:"itd-coming-soon"+(t?" "+t:""),children:[o("div",{className:"itd-coming-soon-content",inert:!0,children:l}),o("div",{className:"itd-coming-soon-veil",children:o("span",{className:"itd-coming-soon-label",children:s??a("texts.comingSoon")})})]}):o(e,{children:l})};export{s as default};
@@ -0,0 +1 @@
1
+ import{createContext as t,useContext as r}from"react";const n=t({});function o(t,o){const a=r(n);return t??a.defaultVariant??o}export{n as FormDefaultsContext,o as useDefaultVariant};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{createContext as t,useContext as a,useState as o,useEffect as n,useCallback as i,useRef as m,useMemo as c}from"react";import{ITDRouterContext as d}from"../router/context.js";import{ModalProvider as s}from"../modal/index.js";import{Toaster as l}from"../toast/index.js";import u from"./ITDThemeProvider.js";import{createTranslateFn as h,ITDLocaleContext as g}from"../locale/useITDLocale.js";import{FormDefaultsContext as f}from"./FormDefaultsContext.js";import{applyTouchMode as p}from"../helpers/device/touchDevice.js";const y=e=>"tr"===e?"DD/MM/YYYY":"en"===e?"MM/DD/YYYY":"DD/MM/YYYY",D=t({});D.displayName="ITDContext";const v=t=>{const v=Object.keys(a(D)).length>0,w=t.theme||("undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),[M,Y]=o(w),[T,j]=o(t.dateFormat||y(t.language)),[k,x]=o(t.language?t.language:"en"),[F,P]=o("en-US"),[E,L]=o(t.timeZone||"local"),[Z,b]=o(t.country??""),[I,N]=o(t.errorDisplay||"tooltip");n(()=>{t.theme&&Y(t.theme),t.language&&x(t.language),t.dateFormat&&j(t.dateFormat),t.timeZone&&L(t.timeZone),t.country&&b(t.country),t.errorDisplay&&N(t.errorDisplay)},[t.theme,t.language,t.dateFormat,t.timeZone,t.country,t.errorDisplay]),n(()=>{if(t.theme||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=e=>{Y(e.matches?"dark":"light")};return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[t.theme]);const B=i(e=>{Y(e)},[]);n(()=>{if(v)return;const e=z.current?.ownerDocument;e&&(e.body?.setAttribute("data-theme",M),e.documentElement.setAttribute("data-theme",M))},[M,v]),n(()=>{const e=z.current?.ownerDocument??("undefined"!=typeof document?document:null);if(e)return p(e)},[]);const C=i(e=>{j(e)},[]),V=i(e=>{L(e)},[]),A=i(e=>{P(e)},[]),O=i(e=>{N(e)},[]),R=i(e=>{b(e)},[]),S=i(e=>{x(e),t.dateFormat||j(y(e))},[t.dateFormat]),U=c(()=>({theme:M,dateFormat:T,timeZone:E,language:k,locale:F,country:Z,errorDisplay:I,changeTheme:B,changeDateFormat:C,changeTimeZone:V,changeLanguage:S,changeLocale:A,changeCountry:R,changeErrorDisplay:O}),[M,T,E,k,F,Z,I,B,C,V,S,A,O]),q=c(()=>({defaultVariant:t.defaultVariant}),[t.defaultVariant]),z=m(null),G=c(()=>({t:h(k,t.messages),language:k}),[k,t.messages]);return e("div",{ref:z,className:"itd-provider","data-theme":M,"data-lang":k,children:e(u,{themeName:"dark"===M?"dark":"light",surfaceBase:t.surfaceBase,primaryBase:t.primaryBase,surfaceLadder:t.surfaceLadder,lightElevation:t.lightElevation,contrastMetric:t.contrastMetric,contrastMin:t.contrastMin,onPrimaryNudge:t.onPrimaryNudge,customTheme:t.customTheme,extensions:t.extensions,shadow:t.shadow,containerRef:z,children:e(f.Provider,{value:q,children:e(g.Provider,{value:G,children:e(D.Provider,{value:U,children:r(d.Provider,{value:t.router??null,children:[e(s,{children:t.children}),e(l,{theme:"dark"===M?"dark":"light",richColors:!0})]})})})})})})},w=()=>{const e=a(D);if(!e)throw new Error("useITD must be used within ITDProvider");return e};export{v as ITDProvider,D as default,w as useITD};
@@ -0,0 +1 @@
1
+ import{jsx as e,Fragment as r}from"react/jsx-runtime";import{useMemo as t,useEffect as s}from"react";import{createTheme as a,guardOnColors as o}from"../helpers/theme/createTheme.js";import{injectThemeVars as n}from"../helpers/theme/cssVariables.js";import{resolveThemeRefs as i,resolveTokenSet as m}from"../helpers/theme/tokenSet.js";import c from"../helpers/theme/light.js";import h from"../helpers/theme/dark.js";import{SURFACE_PRESETS as l,BRAND_PRESETS as f}from"../helpers/theme/presets.js";function p({themeName:p="light",surfaceBase:u,primaryBase:d,surfaceLadder:g,lightElevation:j,contrastMetric:b,contrastMin:k,onPrimaryNudge:y,customTheme:B,extensions:M,shadow:x,containerRef:N,children:v}){const w=t(()=>{if(u||d||g||x||j){const e={surfaceBase:u||l.neutral.base,primaryBase:d||("dark"===p?f.golden.base:f.blue.base),surfaceLadder:g,lightElevation:j,contrastMetric:b,contrastMin:k,onPrimaryNudge:y,shadow:x};return a(p,e)}return"dark"===p?h:c},[p,u,d,g,j,b,k,y,x]),E=t(()=>o(i({...w,...B}),w,{metric:b,min:k}),[w,B,b,k]),L=t(()=>{if(!M||0===M.length)return{};const e={};for(const r of M)Object.assign(e,m(r,E));return e},[E,M]);return s(()=>{n(E,N?.current,L)},[E,L,N]),e(r,{children:v})}export{p as default};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r,useContext as t}from"react";const n=r(null),o=({document:r,children:t})=>e(n.Provider,{value:r,children:t}),u=()=>{const e=t(n);return e||("undefined"==typeof document?null:document)};export{o as PortalDocumentProvider,n as default,u as usePortalDocument};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r,useId as n,useRef as t,useState as o,useEffect as u,useCallback as i,useContext as c}from"react";import{initFocusModality as l}from"../utils/focusModality.js";import{TriggerTypes as s}from"../enums/enum.js";import{useFloatingTrigger as m}from"../hooks/useFloatingTrigger.js";import{DropdownMenuContext as d}from"../dropdown-menu/DropdownMenu.js";import{lockScroll as p}from"../primitives/scrollLock.js";import{usePortalDocument as f}from"../context/PortalDocumentContext.js";const a=({children:r,onOpenChange:c})=>{const a=n(),h=f()??("undefined"==typeof document?null:document),v=t(null),x=t(null),[j,C]=o(!1);u(()=>{h&&l(h)},[h]);const w=m({trigger:s.MANUAL,closeOnClickOutside:!0,open:j,onOpenChange:i(e=>{C(e),e||(v.current=null,x.current&&(x.current.remove(),x.current=null)),c?.(e)},[c])}),y=i((e,r)=>{x.current&&x.current.remove();const n=h??document,t=n.createElement("div");t.style.cssText=`position:fixed;top:${r}px;left:${e}px;width:0;height:0;pointer-events:none;`,n.body.appendChild(t),x.current=t,w.triggerRef.current=t,v.current=null,C(!0)},[w,h]);u(()=>()=>{x.current&&(x.current.remove(),x.current=null)},[]),u(()=>{if(j)return p(h??document)},[j,h]);const M=i(e=>{v.current=e?"last":"first",C(!0)},[]),O=i(e=>{e(),w.close()},[w]);return e(g.Provider,{value:{openAtPoint:y},children:e(d.Provider,{value:{id:a,trigger:w,pendingFocusRef:v,onItemSelect:O,openWithKeyboard:M},children:r})})};a.displayName="ContextMenu";const g=r(null);function h(e){const r=c(g);if(!r)throw new Error(`<${e}> must be used within <ContextMenu>.`);return r}export{a as ContextMenu,h as useContextMenuInternal};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useRef as t,useCallback as n}from"react";import{Slot as r}from"../primitives/Slot.js";import{useContextMenuInternal as o}from"./ContextMenu.js";const i=({children:i,disabled:c=!1,asChild:l=!0,className:u=""})=>{const{openAtPoint:m}=o("ContextMenuTrigger"),s=t(null),a=n(e=>{c||(e.preventDefault(),m(e.clientX,e.clientY))},[c,m]),p=n(e=>{c||"touch"!==e.pointerType||(s.current=setTimeout(()=>{m(e.clientX,e.clientY)},700))},[c,m]),d=n(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),x={onContextMenu:a,onPointerDown:p,onPointerUp:d,onPointerCancel:d,className:u||void 0};return e(l?r:"div",{...x,children:i})};i.displayName="ContextMenuTrigger";export{i as ContextMenuTrigger};
@@ -0,0 +1 @@
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{forwardRef as i,useRef as n,useState as o,useCallback as r,useEffect as h,useImperativeHandle as a}from"react";import{realmOf as s}from"../hooks/useRealm.js";const c=(t,e)=>void 0===t?e:"number"==typeof t?`${t}px`:t,d=i(({src:i,aspectRatio:d,minWidth:l,minHeight:u,outputWidth:m,outputHeight:g,quality:p=.9,outputFormat:w="image/jpeg",onCropChange:x,width:y,height:v,showGrid:f=!0,showCircle:M=!1,onError:b},C)=>{const N=n(null),E=n(null),[k,L]=o(!1),[R,B]=o(!1),D=l??(m?Math.round(m/4):200),S=u??(g?Math.round(g/4):200),H=d??(m&&g?m/g:void 0),[W,X]=o({x:0,y:0,width:100,height:100}),[Y,T]=o(!1),[I,j]=o(null),[F,$]=o({x:0,y:0}),[z,P]=o({x:0,y:0,width:0,height:0}),q=r(()=>{if(!E.current||!N.current)return;const t=E.current.getBoundingClientRect(),e=N.current.getBoundingClientRect(),i={x:t.left-e.left,y:t.top-e.top,width:t.width,height:t.height},n=t.width/E.current.naturalWidth,o=t.height/E.current.naturalHeight,r=D*n,h=S*o;let a=Math.max(.8*i.width,r),s=Math.max(.8*i.height,h);if(a=Math.min(a,i.width),s=Math.min(s,i.height),H){if(a/s>H){const t=s*H;t>=r?a=t:(a=r,s=a/H)}else{const t=a/H;t>=h?s=t:(s=h,a=s*H)}a>i.width&&(a=i.width,s=a/H),s>i.height&&(s=i.height,a=s*H)}const c={x:i.x+(i.width-a)/2,y:i.y+(i.height-s)/2,width:a,height:s};X(c),x?.(c)},[H,D,S,x]);h(()=>{L(!1),B(!1)},[i]),h(()=>{k&&q()},[k,q]),h(()=>{const t=()=>{k&&q()},{win:e}=s(N.current);if(e)return e.addEventListener("resize",t),()=>e.removeEventListener("resize",t)},[k,q]);const A=r(t=>{if(!E.current||!N.current)return t;const e=E.current.getBoundingClientRect(),i=N.current.getBoundingClientRect(),n={left:e.left-i.left,top:e.top-i.top,right:e.right-i.left,bottom:e.bottom-i.top};let{x:o,y:r,width:h,height:a}=t;return o=Math.max(n.left,Math.min(o,n.right-h)),r=Math.max(n.top,Math.min(r,n.bottom-a)),h=Math.min(h,n.right-o),a=Math.min(a,n.bottom-r),{x:o,y:r,width:h,height:a}},[]),G=t=>{t.preventDefault();const e="touches"in t?t.touches[0].clientX:t.clientX,i="touches"in t?t.touches[0].clientY:t.clientY;T(!0),$({x:e,y:i}),P({...W})},Q=t=>e=>{e.preventDefault(),e.stopPropagation();const i="touches"in e?e.touches[0].clientX:e.clientX,n="touches"in e?e.touches[0].clientY:e.clientY;j(t),$({x:i,y:n}),P({...W})};h(()=>{const t=t=>{if(!Y&&!I)return;if(!E.current||!N.current)return;const e="touches"in t?t.touches[0].clientX:t.clientX,i="touches"in t?t.touches[0].clientY:t.clientY,n=e-F.x,o=i-F.y,r=E.current.getBoundingClientRect(),h=N.current.getBoundingClientRect(),a=r.width/E.current.naturalWidth,s=r.height/E.current.naturalHeight,c=D*a,d=S*s,l=r.left-h.left,u=r.top-h.top,m=r.right-h.left,g=r.bottom-h.top;let p;if(Y)p=A({...z,x:z.x+n,y:z.y+o});else{if(!I)return;{let t=z.width,e=z.height,i=z.x,r=z.y;const h=z.x+z.width,a=z.y+z.height;switch(I){case"se":{t=Math.max(c,z.width+n);const i=m-z.x;if(t=Math.min(t,i),H){e=t/H;const i=g-z.y;e>i&&(e=i,t=e*H)}else e=Math.max(d,z.height+o),e=Math.min(e,g-z.y);break}case"sw":{t=Math.max(c,z.width-n);const r=h-l;if(t=Math.min(t,r),H){e=t/H;const i=g-z.y;e>i&&(e=i,t=e*H)}else e=Math.max(d,z.height+o),e=Math.min(e,g-z.y);i=h-t;break}case"ne":{t=Math.max(c,z.width+n);const i=m-z.x;if(t=Math.min(t,i),H){e=t/H;const i=a-u;e>i&&(e=i,t=e*H)}else e=Math.max(d,z.height-o),e=Math.min(e,a-u);r=a-e;break}case"nw":{t=Math.max(c,z.width-n);const s=h-l;if(t=Math.min(t,s),H){e=t/H;const i=a-u;e>i&&(e=i,t=e*H)}else e=Math.max(d,z.height-o),e=Math.min(e,a-u);i=h-t,r=a-e;break}}switch(t<c&&(t=c,H&&(e=t/H)),e<d&&(e=d,H&&(t=e*H)),I){case"se":i=z.x,r=z.y;break;case"sw":i=h-t,r=z.y;break;case"ne":i=z.x,r=a-e;break;case"nw":i=h-t,r=a-e}p={x:i,y:r,width:t,height:e}}}X(p),x?.(p)},e=()=>{T(!1),j(null)},{doc:i}=s(N.current);if(i)return(Y||I)&&(i.addEventListener("mousemove",t),i.addEventListener("mouseup",e),i.addEventListener("touchmove",t),i.addEventListener("touchend",e)),()=>{i.removeEventListener("mousemove",t),i.removeEventListener("mouseup",e),i.removeEventListener("touchmove",t),i.removeEventListener("touchend",e)}},[Y,I,F,z,A,H,D,S,x]);const J=r(async()=>{if(!E.current||!N.current)return null;const t=E.current,e=t.getBoundingClientRect(),i=N.current.getBoundingClientRect(),n=t.naturalWidth/e.width,o=t.naturalHeight/e.height,r=e.left-i.left,h=e.top-i.top,a=(W.x-r)*n,s=(W.y-h)*o,c=W.width*n,d=W.height*o,l=document.createElement("canvas"),u=m||c,x=g||d;l.width=u,l.height=x;const y=l.getContext("2d");return y?(y.imageSmoothingEnabled=!0,y.imageSmoothingQuality="high",y.drawImage(t,a,s,c,d,0,0,u,x),new Promise(t=>{l.toBlob(e=>t(e),w,p)})):null},[W,w,p,m,g]),K=r(async(t="cropped-image")=>{const e=await J();if(!e)return null;const i=w.split("/")[1];return new File([e],`${t}.${i}`,{type:w})},[J,w]);a(C,()=>({getCroppedImage:J,getCroppedFile:K,getCropArea:()=>W,reset:q}));const O=f&&(Y||null!==I);return t("div",{ref:N,className:"itd-cropper",style:{maxWidth:c(y,"100%")},children:[e("img",{ref:E,className:"itd-cropper-image",src:i,onLoad:()=>{B(!1),L(!0)},onError:()=>{L(!1),B(!0),b?.()},alt:"Crop preview",draggable:!1,style:{maxHeight:c(v,"400px"),...R?{display:"none"}:void 0}}),R&&e("div",{className:"itd-cropper-error",role:"alert",children:"Image could not be loaded."}),k&&!R&&t("div",{className:"itd-cropper-overlay",children:[e("div",{className:"itd-cropper-mask","data-edge":"top",style:{height:W.y}}),e("div",{className:"itd-cropper-mask","data-edge":"bottom",style:{top:W.y+W.height}}),e("div",{className:"itd-cropper-mask","data-edge":"left",style:{top:W.y,width:W.x,height:W.height}}),e("div",{className:"itd-cropper-mask","data-edge":"right",style:{left:W.x+W.width,top:W.y,height:W.height}}),t("div",{className:"itd-cropper-box","data-show-grid":O?"":void 0,style:{left:W.x,top:W.y,width:W.width,height:W.height},onMouseDown:G,onTouchStart:G,children:[M&&e("div",{className:"itd-cropper-circle"}),e("div",{className:"itd-cropper-handle","data-position":"nw",onMouseDown:Q("nw"),onTouchStart:Q("nw")}),e("div",{className:"itd-cropper-handle","data-position":"ne",onMouseDown:Q("ne"),onTouchStart:Q("ne")}),e("div",{className:"itd-cropper-handle","data-position":"sw",onMouseDown:Q("sw"),onTouchStart:Q("sw")}),e("div",{className:"itd-cropper-handle","data-position":"se",onMouseDown:Q("se"),onTouchStart:Q("se")})]})]})]})});d.displayName="ImageCropper";export{d as default};