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

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 (1243) hide show
  1. package/ACCESSIBILITY.md +61 -54
  2. package/CHANGELOG.md +257 -0
  3. package/LICENSE +201 -0
  4. package/MIGRATION.md +181 -0
  5. package/README.md +237 -72
  6. package/dist/cjs/_bundled/@radix-ui/primitive/dist/index.js +1 -0
  7. package/dist/cjs/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
  8. package/dist/cjs/_bundled/@radix-ui/react-context/dist/index.js +1 -0
  9. package/dist/cjs/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
  10. package/dist/cjs/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
  11. package/dist/cjs/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
  12. package/dist/cjs/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
  13. package/dist/cjs/_bundled/@radix-ui/react-id/dist/index.js +1 -0
  14. package/dist/cjs/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
  15. package/dist/cjs/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
  16. package/dist/cjs/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
  17. package/dist/cjs/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
  18. package/dist/cjs/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
  19. package/dist/cjs/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
  20. package/dist/cjs/_bundled/@radix-ui/react-use-effect-event/dist/index.js +1 -0
  21. package/dist/cjs/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
  22. package/dist/cjs/_bundled/aria-hidden/dist/es2015/index.js +1 -0
  23. package/dist/cjs/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
  24. package/dist/cjs/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
  25. package/dist/cjs/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
  26. package/dist/cjs/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
  27. package/dist/cjs/_bundled/get-nonce/dist/es2015/index.js +1 -0
  28. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
  29. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
  30. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
  31. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
  32. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
  33. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
  34. package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
  35. package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
  36. package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
  37. package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
  38. package/dist/cjs/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
  39. package/dist/cjs/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
  40. package/dist/cjs/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
  41. package/dist/cjs/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
  42. package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
  43. package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
  44. package/dist/cjs/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
  45. package/dist/cjs/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
  46. package/dist/cjs/_bundled/vaul/dist/index.js +1 -0
  47. package/dist/cjs/_virtual/_tslib.js +1 -0
  48. package/dist/cjs/accordion/index.js +1 -0
  49. package/dist/cjs/accordion/item/Item.js +1 -0
  50. package/dist/cjs/accordion/submenu/SubMenu.js +1 -0
  51. package/dist/cjs/alert/Description.js +1 -0
  52. package/dist/cjs/alert/Title.js +1 -0
  53. package/dist/cjs/alert/index.js +1 -0
  54. package/dist/cjs/alink/index.js +1 -0
  55. package/dist/cjs/amount/index.js +1 -0
  56. package/dist/cjs/announcement-bar/index.js +1 -0
  57. package/dist/cjs/avatar/index.js +1 -0
  58. package/dist/cjs/back-top/index.js +1 -0
  59. package/dist/cjs/badge/index.js +1 -0
  60. package/dist/cjs/blocks/auth-complete/index.js +1 -0
  61. package/dist/cjs/blocks/auth-page/index.js +1 -0
  62. package/dist/cjs/blocks/banner/index.js +1 -0
  63. package/dist/cjs/blocks/box-title/index.js +1 -0
  64. package/dist/cjs/blocks/casino-featured/index.js +1 -0
  65. package/dist/cjs/blocks/default-avatar/index.js +1 -0
  66. package/dist/cjs/blocks/embla/useEmblaState.js +1 -0
  67. package/dist/cjs/blocks/featured-games/index.js +1 -0
  68. package/dist/cjs/blocks/filter-tabs/index.js +1 -0
  69. package/dist/cjs/blocks/footer/index.js +1 -0
  70. package/dist/cjs/blocks/game-box/index.js +1 -0
  71. package/dist/cjs/blocks/game-carousel/index.js +1 -0
  72. package/dist/cjs/blocks/game-categories/Carousel.js +1 -0
  73. package/dist/cjs/blocks/game-categories/Mobile.js +1 -0
  74. package/dist/cjs/blocks/game-categories/index.js +1 -0
  75. package/dist/cjs/blocks/game-filter/index.js +1 -0
  76. package/dist/cjs/blocks/game-navigator/index.js +1 -0
  77. package/dist/cjs/blocks/game-providers/index.js +1 -0
  78. package/dist/cjs/blocks/game-providers/logos.js +1 -0
  79. package/dist/cjs/blocks/game-search/index.js +1 -0
  80. package/dist/cjs/blocks/game-shell/Browse.js +1 -0
  81. package/dist/cjs/blocks/game-shell/Settings.js +1 -0
  82. package/dist/cjs/blocks/game-shell/SwipeHint.js +1 -0
  83. package/dist/cjs/blocks/game-shell/index.js +1 -0
  84. package/dist/cjs/blocks/game-shell/useDrawerChrome.js +1 -0
  85. package/dist/cjs/blocks/games-grid/index.js +1 -0
  86. package/dist/cjs/blocks/header/index.js +1 -0
  87. package/dist/cjs/blocks/help/index.js +1 -0
  88. package/dist/cjs/blocks/last-winners/index.js +1 -0
  89. package/dist/cjs/blocks/layout-boxes/index.js +1 -0
  90. package/dist/cjs/blocks/login/index.js +1 -0
  91. package/dist/cjs/blocks/mega-menu/index.js +1 -0
  92. package/dist/cjs/blocks/min-width-gate/index.js +1 -0
  93. package/dist/cjs/blocks/mobile-bottom-nav/index.js +1 -0
  94. package/dist/cjs/blocks/multiple-jackpots/TierCarousel.js +1 -0
  95. package/dist/cjs/blocks/multiple-jackpots/index.js +1 -0
  96. package/dist/cjs/blocks/notifications/index.js +1 -0
  97. package/dist/cjs/blocks/post-viewer/index.js +1 -0
  98. package/dist/cjs/blocks/promotions-grid/index.js +1 -0
  99. package/dist/cjs/blocks/raffle/index.js +1 -0
  100. package/dist/cjs/blocks/signup/index.js +1 -0
  101. package/dist/cjs/blocks/slider/index.js +1 -0
  102. package/dist/cjs/blocks/slider-double/index.js +1 -0
  103. package/dist/cjs/blocks/spacer/index.js +1 -0
  104. package/dist/cjs/blocks/sub-page-header/index.js +1 -0
  105. package/dist/cjs/blocks/tournaments/index.js +1 -0
  106. package/dist/cjs/blocks/user-hub/bonus.js +1 -0
  107. package/dist/cjs/blocks/user-hub/cashier.js +1 -0
  108. package/dist/cjs/blocks/user-hub/deposit.js +1 -0
  109. package/dist/cjs/blocks/user-hub/history.js +1 -0
  110. package/dist/cjs/blocks/user-hub/index.js +1 -0
  111. package/dist/cjs/blocks/user-hub/messages.js +1 -0
  112. package/dist/cjs/blocks/user-hub/platform.js +1 -0
  113. package/dist/cjs/blocks/user-hub/profile.js +1 -0
  114. package/dist/cjs/blocks/user-hub/raffles.js +1 -0
  115. package/dist/cjs/blocks/user-hub/settings.js +1 -0
  116. package/dist/cjs/blocks/user-hub/table.js +1 -0
  117. package/dist/cjs/blocks/user-hub/vip.js +1 -0
  118. package/dist/cjs/blocks/user-hub/withdraw.js +1 -0
  119. package/dist/cjs/button/index.js +1 -0
  120. package/dist/cjs/button-group/ButtonGroupContext.js +1 -0
  121. package/dist/cjs/button-group/index.js +1 -0
  122. package/dist/cjs/calendar/dates.js +1 -0
  123. package/dist/cjs/calendar/day/Day.js +1 -0
  124. package/dist/cjs/calendar/header/Header.js +1 -0
  125. package/dist/cjs/calendar/index.js +1 -0
  126. package/dist/cjs/calendar/range/RangeCalendar.js +1 -0
  127. package/dist/cjs/calendar/time/Time.js +1 -0
  128. package/dist/cjs/card/Card.js +1 -0
  129. package/dist/cjs/card/CardAction.js +1 -0
  130. package/dist/cjs/card/CardContent.js +1 -0
  131. package/dist/cjs/card/CardDescription.js +1 -0
  132. package/dist/cjs/card/CardFooter.js +1 -0
  133. package/dist/cjs/card/CardHeader.js +1 -0
  134. package/dist/cjs/card/CardTabs.js +1 -0
  135. package/dist/cjs/card/CardTitle.js +1 -0
  136. package/dist/cjs/chart/Fullscreen.js +1 -0
  137. package/dist/cjs/chart/index.js +1 -0
  138. package/dist/cjs/chart/palette.js +1 -0
  139. package/dist/cjs/checkbox/index.js +1 -0
  140. package/dist/cjs/code-input/index.js +1 -0
  141. package/dist/cjs/color-input/index.js +1 -0
  142. package/dist/cjs/coming-soon/index.js +1 -0
  143. package/dist/cjs/context/FormDefaultsContext.js +1 -0
  144. package/dist/cjs/context/ITDContext.js +1 -0
  145. package/dist/cjs/context/ITDThemeProvider.js +1 -0
  146. package/dist/cjs/context/PortalDocumentContext.js +1 -0
  147. package/dist/cjs/context-menu/ContextMenu.js +1 -0
  148. package/dist/cjs/context-menu/ContextMenuTrigger.js +1 -0
  149. package/dist/cjs/cropper/index.js +1 -0
  150. package/dist/cjs/data/phones.json.js +1 -0
  151. package/dist/cjs/datepicker/index.js +1 -0
  152. package/dist/cjs/dialog/Dialog.js +1 -0
  153. package/dist/cjs/dropdown-menu/CheckIcon.js +1 -0
  154. package/dist/cjs/dropdown-menu/DropdownMenu.js +1 -0
  155. package/dist/cjs/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
  156. package/dist/cjs/dropdown-menu/DropdownMenuContent.js +1 -0
  157. package/dist/cjs/dropdown-menu/DropdownMenuItem.js +1 -0
  158. package/dist/cjs/dropdown-menu/DropdownMenuLabel.js +1 -0
  159. package/dist/cjs/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
  160. package/dist/cjs/dropdown-menu/DropdownMenuRadioItem.js +1 -0
  161. package/dist/cjs/dropdown-menu/DropdownMenuSeparator.js +1 -0
  162. package/dist/cjs/dropdown-menu/DropdownMenuSub.js +1 -0
  163. package/dist/cjs/dropdown-menu/DropdownMenuSubContent.js +1 -0
  164. package/dist/cjs/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
  165. package/dist/cjs/dropdown-menu/DropdownMenuTrigger.js +1 -0
  166. package/dist/cjs/dropdown-menu/MenuItemContext.js +1 -0
  167. package/dist/cjs/dropdown-menu/processChildren.js +1 -0
  168. package/dist/cjs/dropdown-menu/useMenuItemChrome.js +1 -0
  169. package/dist/cjs/dropdown-menu/useMenuKeyboard.js +1 -0
  170. package/dist/cjs/dropdown-menu/usePointerGraceArea.js +1 -0
  171. package/dist/cjs/dropdown-menu/useSubMenuRegistry.js +1 -0
  172. package/dist/cjs/enums/enum.js +1 -0
  173. package/dist/cjs/field/index.js +1 -0
  174. package/dist/cjs/flex/index.js +1 -0
  175. package/dist/cjs/floating/Arrow.js +1 -0
  176. package/dist/cjs/floating/FloatingContent.js +1 -0
  177. package/dist/cjs/floating/createFloatingTrigger.js +1 -0
  178. package/dist/cjs/form/context/FormContext.js +1 -0
  179. package/dist/cjs/form/context/FormRegistry.js +1 -0
  180. package/dist/cjs/form/context/FormStore.js +1 -0
  181. package/dist/cjs/form/control/Control.js +1 -0
  182. package/dist/cjs/form/group/Group.js +1 -0
  183. package/dist/cjs/form/index.js +1 -0
  184. package/dist/cjs/form/item/Item.js +1 -0
  185. package/dist/cjs/form/validation/TCIdentity.js +1 -0
  186. package/dist/cjs/form/validation/Validator.js +1 -0
  187. package/dist/cjs/form/wrapper/FormWrapper.js +1 -0
  188. package/dist/cjs/helpers/array/ChunkArray.js +1 -0
  189. package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +1 -0
  190. package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +1 -0
  191. package/dist/cjs/helpers/base64/Base64Decode.js +1 -0
  192. package/dist/cjs/helpers/base64/Base64Encode.js +1 -0
  193. package/dist/cjs/helpers/binary/FormatBytes.js +1 -0
  194. package/dist/cjs/helpers/binary/GetExtensionByMimeType.js +1 -0
  195. package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -0
  196. package/dist/cjs/helpers/checker/CheckFileURL.js +1 -0
  197. package/dist/cjs/helpers/checker/FileChecker.js +1 -0
  198. package/dist/cjs/helpers/classname/GetClassNameByPlatform.js +1 -0
  199. package/dist/cjs/helpers/config/defineITDConfig.js +1 -0
  200. package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
  201. package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +1 -0
  202. package/dist/cjs/helpers/css/FindSelector.js +1 -0
  203. package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -0
  204. package/dist/cjs/helpers/currency/GetByCurrency.js +1 -0
  205. package/dist/cjs/helpers/currency/GetCurrencyFormat.js +1 -0
  206. package/dist/cjs/helpers/currency/GetCurrencySymbol.js +1 -0
  207. package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +1 -0
  208. package/dist/cjs/helpers/datetime/FormatDate.js +1 -0
  209. package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -0
  210. package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -0
  211. package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -0
  212. package/dist/cjs/helpers/datetime/FormatTime.js +1 -0
  213. package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -0
  214. package/dist/cjs/helpers/device/touchDevice.js +1 -0
  215. package/dist/cjs/helpers/format/ToKebabCase.js +1 -0
  216. package/dist/cjs/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
  217. package/dist/cjs/helpers/json/IsValidJSON.js +1 -0
  218. package/dist/cjs/helpers/math/AddZero.js +1 -0
  219. package/dist/cjs/helpers/phone/index.js +1 -0
  220. package/dist/cjs/helpers/phone/usePhoneCountry.js +1 -0
  221. package/dist/cjs/helpers/platform/index.js +1 -0
  222. package/dist/cjs/helpers/promise/Wait.js +1 -0
  223. package/dist/cjs/helpers/remover/RemoveUnits.js +1 -0
  224. package/dist/cjs/helpers/string/UniUpperCase.js +1 -0
  225. package/dist/cjs/helpers/svg/SVGLoader.js +1 -0
  226. package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +1 -0
  227. package/dist/cjs/helpers/theme/Color.js +1 -0
  228. package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -0
  229. package/dist/cjs/helpers/theme/colorOps.js +1 -0
  230. package/dist/cjs/helpers/theme/contrast.js +1 -0
  231. package/dist/cjs/helpers/theme/createTheme.js +1 -0
  232. package/dist/cjs/helpers/theme/cssVariables.js +1 -0
  233. package/dist/cjs/helpers/theme/dark.js +1 -0
  234. package/dist/cjs/helpers/theme/exampleSitePreset.js +1 -0
  235. package/dist/cjs/helpers/theme/importShadcnTheme.js +1 -0
  236. package/dist/cjs/helpers/theme/light.js +1 -0
  237. package/dist/cjs/helpers/theme/presets.js +1 -0
  238. package/dist/cjs/helpers/theme/shadowScale.js +1 -0
  239. package/dist/cjs/helpers/theme/sitePreset.js +1 -0
  240. package/dist/cjs/helpers/theme/tokenSet.js +1 -0
  241. package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
  242. package/dist/cjs/helpers/unit/cssVars.js +1 -0
  243. package/dist/cjs/hooks/useAddExternalCSS.js +1 -0
  244. package/dist/cjs/hooks/useAvoidCollision.js +1 -0
  245. package/dist/cjs/hooks/useComponentSize.js +1 -0
  246. package/dist/cjs/hooks/useConnectionStatus.js +1 -0
  247. package/dist/cjs/hooks/useConstructor.js +1 -0
  248. package/dist/cjs/hooks/useContextBridge.js +1 -0
  249. package/dist/cjs/hooks/useCoreFetch.js +1 -0
  250. package/dist/cjs/hooks/useFloatingPosition.js +1 -0
  251. package/dist/cjs/hooks/useFloatingTrigger.js +1 -0
  252. package/dist/cjs/hooks/useFocusTrap.js +1 -0
  253. package/dist/cjs/hooks/useKeyboardShortcut.js +1 -0
  254. package/dist/cjs/hooks/useLoadMoreSentinel.js +1 -0
  255. package/dist/cjs/hooks/useMediaQuery.js +1 -0
  256. package/dist/cjs/hooks/useMultiQuery.js +1 -0
  257. package/dist/cjs/hooks/useNaturalRatio.js +1 -0
  258. package/dist/cjs/hooks/useOnClickOutside.js +1 -0
  259. package/dist/cjs/hooks/useOnESCKeyDown.js +1 -0
  260. package/dist/cjs/hooks/useOnResize.js +1 -0
  261. package/dist/cjs/hooks/useOrientation.js +1 -0
  262. package/dist/cjs/hooks/useReCaptcha.js +1 -0
  263. package/dist/cjs/hooks/useRealm.js +1 -0
  264. package/dist/cjs/hooks/useSingleQuery.js +1 -0
  265. package/dist/cjs/hovercard/HoverCard.js +1 -0
  266. package/dist/cjs/hovercard/HoverCardContent.js +1 -0
  267. package/dist/cjs/hovercard/HoverCardTrigger.js +1 -0
  268. package/dist/cjs/hovercard/hoverCardContext.js +1 -0
  269. package/dist/cjs/html/header/H1.js +1 -0
  270. package/dist/cjs/html/header/H2.js +1 -0
  271. package/dist/cjs/html/header/H3.js +1 -0
  272. package/dist/cjs/html/header/H4.js +1 -0
  273. package/dist/cjs/icons/Arrow.js +1 -0
  274. package/dist/cjs/icons/BackToTop.js +1 -0
  275. package/dist/cjs/icons/Checkmark.js +1 -0
  276. package/dist/cjs/icons/FileDocument.js +1 -0
  277. package/dist/cjs/icons/FileExcel.js +1 -0
  278. package/dist/cjs/icons/FilePdf.js +1 -0
  279. package/dist/cjs/icons/InlineSelectArrow.js +1 -0
  280. package/dist/cjs/icons/Lock.js +1 -0
  281. package/dist/cjs/icons/NoData.js +1 -0
  282. package/dist/cjs/icons/Picture.js +1 -0
  283. package/dist/cjs/icons/Trash.js +1 -0
  284. package/dist/cjs/icons/Upload.js +1 -0
  285. package/dist/cjs/icons/ZoomIn.js +1 -0
  286. package/dist/cjs/icons/ZoomOut.js +1 -0
  287. package/dist/cjs/image/index.js +1 -0
  288. package/dist/cjs/index.js +1 -0
  289. package/dist/cjs/input/index.js +1 -0
  290. package/dist/cjs/label/index.js +1 -0
  291. package/dist/cjs/locale/useITDLocale.js +1 -0
  292. package/dist/cjs/locales/en/calendar.json.js +1 -0
  293. package/dist/cjs/locales/en/itd.json.js +1 -0
  294. package/dist/cjs/locales/tr/calendar.json.js +1 -0
  295. package/dist/cjs/locales/tr/itd.json.js +1 -0
  296. package/dist/cjs/logger/index.js +1 -0
  297. package/dist/cjs/modal/container/ModalContainer.js +1 -0
  298. package/dist/cjs/modal/context/ModalContext.js +1 -0
  299. package/dist/cjs/modal/index.js +1 -0
  300. package/dist/cjs/modal/modal/Modal.js +1 -0
  301. package/dist/cjs/modal/useModalContent.js +1 -0
  302. package/dist/cjs/package.json +3 -0
  303. package/dist/cjs/page/BlockBoundary.js +1 -0
  304. package/dist/cjs/page/background.js +1 -0
  305. package/dist/cjs/page/blocks.js +1 -0
  306. package/dist/cjs/page/blocks.query.js +1 -0
  307. package/dist/cjs/page/checks.js +1 -0
  308. package/dist/cjs/page/context.js +1 -0
  309. package/dist/cjs/page/customCode.js +1 -0
  310. package/dist/cjs/page/editor/BlockForm.js +1 -0
  311. package/dist/cjs/page/editor/BlockPreview.js +1 -0
  312. package/dist/cjs/page/editor/CodeEditor.js +1 -0
  313. package/dist/cjs/page/editor/dropIndex.js +1 -0
  314. package/dist/cjs/page/editor/protocol.js +1 -0
  315. package/dist/cjs/page/editor/theme.js +1 -0
  316. package/dist/cjs/page/editor/useEditorBridge.js +1 -0
  317. package/dist/cjs/page/fields.js +1 -0
  318. package/dist/cjs/page/index.js +1 -0
  319. package/dist/cjs/page/layouts.js +1 -0
  320. package/dist/cjs/page/pageTypes.js +1 -0
  321. package/dist/cjs/page/sample.js +1 -0
  322. package/dist/cjs/page/settle.js +1 -0
  323. package/dist/cjs/page/types.js +1 -0
  324. package/dist/cjs/popover/Popover.js +1 -0
  325. package/dist/cjs/popover/PopoverContent.js +1 -0
  326. package/dist/cjs/popover/PopoverTrigger.js +1 -0
  327. package/dist/cjs/primitives/Slot.js +1 -0
  328. package/dist/cjs/primitives/overlayStack.js +1 -0
  329. package/dist/cjs/primitives/scrollLock.js +1 -0
  330. package/dist/cjs/progress/index.js +1 -0
  331. package/dist/cjs/radio/RadioGroup.js +1 -0
  332. package/dist/cjs/radio/RadioGroupContext.js +1 -0
  333. package/dist/cjs/radio/RadioGroupItem.js +1 -0
  334. package/dist/cjs/rangepicker/index.js +1 -0
  335. package/dist/cjs/result/index.js +1 -0
  336. package/dist/cjs/router/BlockLink.js +1 -0
  337. package/dist/cjs/router/ITDLink.js +1 -0
  338. package/dist/cjs/router/context.js +1 -0
  339. package/dist/cjs/router/hooks.js +1 -0
  340. package/dist/cjs/router/matchActive.js +1 -0
  341. package/dist/cjs/select/SelectGroup.js +1 -0
  342. package/dist/cjs/select/SelectItem.js +1 -0
  343. package/dist/cjs/select/SelectLabel.js +1 -0
  344. package/dist/cjs/select/SelectSeparator.js +1 -0
  345. package/dist/cjs/select/dropdown/Dropdown.js +1 -0
  346. package/dist/cjs/select/index.js +1 -0
  347. package/dist/cjs/select/option/Option.js +1 -0
  348. package/dist/cjs/select/selector/Selector.js +1 -0
  349. package/dist/cjs/select/selector/selectorinput/SelectorInput.js +1 -0
  350. package/dist/cjs/separator/index.js +1 -0
  351. package/dist/cjs/skeleton/index.js +1 -0
  352. package/dist/cjs/spin/index.js +1 -0
  353. package/dist/cjs/stat-card/index.js +1 -0
  354. package/dist/cjs/switch/index.js +1 -0
  355. package/dist/cjs/table/index.js +1 -0
  356. package/dist/cjs/table/paths.js +1 -0
  357. package/dist/cjs/table/primitives.js +1 -0
  358. package/dist/cjs/table/sort.js +1 -0
  359. package/dist/cjs/tabs/Tabs.js +1 -0
  360. package/dist/cjs/tabs/TabsContent.js +1 -0
  361. package/dist/cjs/tabs/TabsContext.js +1 -0
  362. package/dist/cjs/tabs/TabsList.js +1 -0
  363. package/dist/cjs/tabs/TabsTrigger.js +1 -0
  364. package/dist/cjs/textarea/index.js +1 -0
  365. package/dist/cjs/tinyscrollbar/index.js +1 -0
  366. package/dist/cjs/toast/index.js +1 -0
  367. package/dist/cjs/toggle-group/index.js +1 -0
  368. package/dist/cjs/tooltip/Tooltip.js +1 -0
  369. package/dist/cjs/tooltip/TooltipContent.js +1 -0
  370. package/dist/cjs/tooltip/TooltipTrigger.js +1 -0
  371. package/dist/cjs/tooltip/tooltipContext.js +1 -0
  372. package/dist/cjs/types/InputProps.js +1 -0
  373. package/dist/cjs/upload/index.js +1 -0
  374. package/dist/cjs/utils/CommonStyledComponents.js +1 -0
  375. package/dist/cjs/utils/ErrorAnnouncement.js +1 -0
  376. package/dist/cjs/utils/GetButtonSizeSlug.js +1 -0
  377. package/dist/cjs/utils/GetSizeBySizeSlug.js +1 -0
  378. package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
  379. package/dist/cjs/utils/InlineSVGCached.js +1 -0
  380. package/dist/cjs/utils/cn.js +1 -0
  381. package/dist/cjs/utils/focusModality.js +1 -0
  382. package/dist/css/accordion.css +13 -0
  383. package/dist/css/alert.css +1 -0
  384. package/dist/css/alink.css +1 -0
  385. package/dist/css/amount.css +1 -0
  386. package/dist/css/announcement-bar.css +1 -0
  387. package/dist/css/auth-page.css +3 -0
  388. package/dist/css/avatar.css +1 -0
  389. package/dist/css/back-top.css +1 -0
  390. package/dist/css/badge.css +245 -0
  391. package/dist/css/base.css +111 -0
  392. package/dist/css/block-form.css +5 -0
  393. package/dist/css/blocks-shared.css +15 -0
  394. package/dist/css/button-group.css +1 -0
  395. package/dist/css/button.css +11 -0
  396. package/dist/css/calendar.css +1 -0
  397. package/dist/css/card.css +1 -0
  398. package/dist/css/casino-featured.css +1 -0
  399. package/dist/css/chart.css +1 -0
  400. package/dist/css/checkbox.css +3 -0
  401. package/dist/css/code-input.css +7 -0
  402. package/dist/css/color-input.css +1 -0
  403. package/dist/css/coming-soon.css +1 -0
  404. package/dist/css/common.css +1 -0
  405. package/dist/css/components.css +1 -0
  406. package/dist/css/cropper.css +17 -0
  407. package/dist/css/datepicker.css +1 -0
  408. package/dist/css/default-avatar.css +1 -0
  409. package/dist/css/dialog.css +1 -0
  410. package/dist/css/dropdown-menu.css +1 -0
  411. package/dist/css/field.css +1 -0
  412. package/dist/css/filter-tabs.css +1 -0
  413. package/dist/css/flex.css +1 -0
  414. package/dist/css/floating.css +1 -0
  415. package/dist/css/footer.css +1 -0
  416. package/dist/css/form.css +1 -0
  417. package/dist/css/game-box.css +9 -0
  418. package/dist/css/game-carousel.css +1 -0
  419. package/dist/css/game-categories.css +1 -0
  420. package/dist/css/game-filter.css +1 -0
  421. package/dist/css/game-navigator.css +1 -0
  422. package/dist/css/game-providers.css +1 -0
  423. package/dist/css/game-search.css +1 -0
  424. package/dist/css/game-shell.css +3 -0
  425. package/dist/css/header.css +7 -0
  426. package/dist/css/help.css +1 -0
  427. package/dist/css/home-sections.css +1 -0
  428. package/dist/css/hovercard.css +1 -0
  429. package/dist/css/hstrip.css +1 -0
  430. package/dist/css/html-header.css +1 -0
  431. package/dist/css/image.css +1 -0
  432. package/dist/css/input.css +1 -0
  433. package/dist/css/label.css +1 -0
  434. package/dist/css/last-winners.css +1 -0
  435. package/dist/css/login.css +1 -0
  436. package/dist/css/mega-menu.css +3 -0
  437. package/dist/css/min-width-gate.css +1 -0
  438. package/dist/css/mobile-bottom-nav.css +1 -0
  439. package/dist/css/modal.css +11 -0
  440. package/dist/css/multiple-jackpots.css +7 -0
  441. package/dist/css/notifications-panel.css +5 -0
  442. package/dist/css/page.css +5 -0
  443. package/dist/css/popover.css +1 -0
  444. package/dist/css/post-viewer.css +1 -0
  445. package/dist/css/progress.css +1 -0
  446. package/dist/css/promotions-grid.css +7 -0
  447. package/dist/css/properties.css +5 -0
  448. package/dist/css/provider.css +1 -0
  449. package/dist/css/radio.css +1 -0
  450. package/dist/css/raffle.css +1 -0
  451. package/dist/css/rangepicker.css +1 -0
  452. package/dist/css/reset.css +5 -0
  453. package/dist/css/result.css +1 -0
  454. package/dist/css/select.css +1 -0
  455. package/dist/css/separator.css +1 -0
  456. package/dist/css/sheet.css +1 -0
  457. package/dist/css/signup.css +1 -0
  458. package/dist/css/skeleton.css +3 -0
  459. package/dist/css/slider.css +1 -0
  460. package/dist/css/spin.css +1 -0
  461. package/dist/css/stat-card.css +1 -0
  462. package/dist/css/sub-page-header.css +1 -0
  463. package/dist/css/svg-loader.css +1 -0
  464. package/dist/css/switch.css +1 -0
  465. package/dist/css/table.css +7 -0
  466. package/dist/css/tabs.css +1 -0
  467. package/dist/css/textarea.css +1 -0
  468. package/dist/css/tinyscrollbar.css +1 -0
  469. package/dist/css/toggle-group.css +1 -0
  470. package/dist/css/tooltip.css +1 -0
  471. package/dist/css/tournaments.css +16 -0
  472. package/dist/css/upload.css +1 -0
  473. package/dist/css/user-hub.css +3 -0
  474. package/dist/css/utilities.css +1 -0
  475. package/dist/css/vendor.css +12 -0
  476. package/dist/es/_bundled/@radix-ui/primitive/dist/index.js +1 -0
  477. package/dist/es/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
  478. package/dist/es/_bundled/@radix-ui/react-context/dist/index.js +1 -0
  479. package/dist/es/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
  480. package/dist/es/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
  481. package/dist/es/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
  482. package/dist/es/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
  483. package/dist/es/_bundled/@radix-ui/react-id/dist/index.js +1 -0
  484. package/dist/es/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
  485. package/dist/es/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
  486. package/dist/es/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
  487. package/dist/es/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
  488. package/dist/es/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
  489. package/dist/es/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
  490. package/dist/es/_bundled/@radix-ui/react-use-effect-event/dist/index.js +1 -0
  491. package/dist/es/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
  492. package/dist/es/_bundled/aria-hidden/dist/es2015/index.js +1 -0
  493. package/dist/es/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
  494. package/dist/es/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
  495. package/dist/es/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
  496. package/dist/es/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
  497. package/dist/es/_bundled/get-nonce/dist/es2015/index.js +1 -0
  498. package/dist/es/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
  499. package/dist/es/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
  500. package/dist/es/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
  501. package/dist/es/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
  502. package/dist/es/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
  503. package/dist/es/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
  504. package/dist/es/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
  505. package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
  506. package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
  507. package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
  508. package/dist/es/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
  509. package/dist/es/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
  510. package/dist/es/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
  511. package/dist/es/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
  512. package/dist/es/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
  513. package/dist/es/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
  514. package/dist/es/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
  515. package/dist/es/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
  516. package/dist/es/_bundled/vaul/dist/index.js +1 -0
  517. package/dist/es/_virtual/_tslib.js +1 -0
  518. package/dist/es/accordion/index.js +1 -0
  519. package/dist/es/accordion/item/Item.js +1 -0
  520. package/dist/es/accordion/submenu/SubMenu.js +1 -0
  521. package/dist/es/alert/Description.js +1 -0
  522. package/dist/es/alert/Title.js +1 -0
  523. package/dist/es/alert/index.js +1 -0
  524. package/dist/es/alink/index.js +1 -0
  525. package/dist/es/amount/index.js +1 -0
  526. package/dist/es/announcement-bar/index.js +1 -0
  527. package/dist/es/avatar/index.js +1 -0
  528. package/dist/es/back-top/index.js +1 -0
  529. package/dist/es/badge/index.js +1 -0
  530. package/dist/es/blocks/auth-complete/index.js +1 -0
  531. package/dist/es/blocks/auth-page/index.js +1 -0
  532. package/dist/es/blocks/banner/index.js +1 -0
  533. package/dist/es/blocks/box-title/index.js +1 -0
  534. package/dist/es/blocks/casino-featured/index.js +1 -0
  535. package/dist/es/blocks/default-avatar/index.js +1 -0
  536. package/dist/es/blocks/embla/useEmblaState.js +1 -0
  537. package/dist/es/blocks/featured-games/index.js +1 -0
  538. package/dist/es/blocks/filter-tabs/index.js +1 -0
  539. package/dist/es/blocks/footer/index.js +1 -0
  540. package/dist/es/blocks/game-box/index.js +1 -0
  541. package/dist/es/blocks/game-carousel/index.js +1 -0
  542. package/dist/es/blocks/game-categories/Carousel.js +1 -0
  543. package/dist/es/blocks/game-categories/Mobile.js +1 -0
  544. package/dist/es/blocks/game-categories/index.js +1 -0
  545. package/dist/es/blocks/game-filter/index.js +1 -0
  546. package/dist/es/blocks/game-navigator/index.js +1 -0
  547. package/dist/es/blocks/game-providers/index.js +1 -0
  548. package/dist/es/blocks/game-providers/logos.js +1 -0
  549. package/dist/es/blocks/game-search/index.js +1 -0
  550. package/dist/es/blocks/game-shell/Browse.js +1 -0
  551. package/dist/es/blocks/game-shell/Settings.js +1 -0
  552. package/dist/es/blocks/game-shell/SwipeHint.js +1 -0
  553. package/dist/es/blocks/game-shell/index.js +1 -0
  554. package/dist/es/blocks/game-shell/useDrawerChrome.js +1 -0
  555. package/dist/es/blocks/games-grid/index.js +1 -0
  556. package/dist/es/blocks/header/index.js +1 -0
  557. package/dist/es/blocks/help/index.js +1 -0
  558. package/dist/es/blocks/last-winners/index.js +1 -0
  559. package/dist/es/blocks/layout-boxes/index.js +1 -0
  560. package/dist/es/blocks/login/index.js +1 -0
  561. package/dist/es/blocks/mega-menu/index.js +1 -0
  562. package/dist/es/blocks/min-width-gate/index.js +1 -0
  563. package/dist/es/blocks/mobile-bottom-nav/index.js +1 -0
  564. package/dist/es/blocks/multiple-jackpots/TierCarousel.js +1 -0
  565. package/dist/es/blocks/multiple-jackpots/index.js +1 -0
  566. package/dist/es/blocks/notifications/index.js +1 -0
  567. package/dist/es/blocks/post-viewer/index.js +1 -0
  568. package/dist/es/blocks/promotions-grid/index.js +1 -0
  569. package/dist/es/blocks/raffle/index.js +1 -0
  570. package/dist/es/blocks/signup/index.js +1 -0
  571. package/dist/es/blocks/slider/index.js +1 -0
  572. package/dist/es/blocks/slider-double/index.js +1 -0
  573. package/dist/es/blocks/spacer/index.js +1 -0
  574. package/dist/es/blocks/sub-page-header/index.js +1 -0
  575. package/dist/es/blocks/tournaments/index.js +1 -0
  576. package/dist/es/blocks/user-hub/bonus.js +1 -0
  577. package/dist/es/blocks/user-hub/cashier.js +1 -0
  578. package/dist/es/blocks/user-hub/deposit.js +1 -0
  579. package/dist/es/blocks/user-hub/history.js +1 -0
  580. package/dist/es/blocks/user-hub/index.js +1 -0
  581. package/dist/es/blocks/user-hub/messages.js +1 -0
  582. package/dist/es/blocks/user-hub/platform.js +1 -0
  583. package/dist/es/blocks/user-hub/profile.js +1 -0
  584. package/dist/es/blocks/user-hub/raffles.js +1 -0
  585. package/dist/es/blocks/user-hub/settings.js +1 -0
  586. package/dist/es/blocks/user-hub/table.js +1 -0
  587. package/dist/es/blocks/user-hub/vip.js +1 -0
  588. package/dist/es/blocks/user-hub/withdraw.js +1 -0
  589. package/dist/es/button/index.js +1 -0
  590. package/dist/es/button-group/ButtonGroupContext.js +1 -0
  591. package/dist/es/button-group/index.js +1 -0
  592. package/dist/es/calendar/dates.js +1 -0
  593. package/dist/es/calendar/day/Day.js +1 -0
  594. package/dist/es/calendar/header/Header.js +1 -0
  595. package/dist/es/calendar/index.js +1 -0
  596. package/dist/es/calendar/range/RangeCalendar.js +1 -0
  597. package/dist/es/calendar/time/Time.js +1 -0
  598. package/dist/es/card/Card.js +1 -0
  599. package/dist/es/card/CardAction.js +1 -0
  600. package/dist/es/card/CardContent.js +1 -0
  601. package/dist/es/card/CardDescription.js +1 -0
  602. package/dist/es/card/CardFooter.js +1 -0
  603. package/dist/es/card/CardHeader.js +1 -0
  604. package/dist/es/card/CardTabs.js +1 -0
  605. package/dist/es/card/CardTitle.js +1 -0
  606. package/dist/es/chart/Fullscreen.js +1 -0
  607. package/dist/es/chart/index.js +1 -0
  608. package/dist/es/chart/palette.js +1 -0
  609. package/dist/es/checkbox/index.js +1 -0
  610. package/dist/es/code-input/index.js +1 -0
  611. package/dist/es/color-input/index.js +1 -0
  612. package/dist/es/coming-soon/index.js +1 -0
  613. package/dist/es/context/FormDefaultsContext.js +1 -0
  614. package/dist/es/context/ITDContext.js +1 -0
  615. package/dist/es/context/ITDThemeProvider.js +1 -0
  616. package/dist/es/context/PortalDocumentContext.js +1 -0
  617. package/dist/es/context-menu/ContextMenu.js +1 -0
  618. package/dist/es/context-menu/ContextMenuTrigger.js +1 -0
  619. package/dist/es/cropper/index.js +1 -0
  620. package/dist/es/data/phones.json.js +1 -0
  621. package/dist/es/datepicker/index.js +1 -0
  622. package/dist/es/dialog/Dialog.js +1 -0
  623. package/dist/es/dropdown-menu/CheckIcon.js +1 -0
  624. package/dist/es/dropdown-menu/DropdownMenu.js +1 -0
  625. package/dist/es/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
  626. package/dist/es/dropdown-menu/DropdownMenuContent.js +1 -0
  627. package/dist/es/dropdown-menu/DropdownMenuItem.js +1 -0
  628. package/dist/es/dropdown-menu/DropdownMenuLabel.js +1 -0
  629. package/dist/es/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
  630. package/dist/es/dropdown-menu/DropdownMenuRadioItem.js +1 -0
  631. package/dist/es/dropdown-menu/DropdownMenuSeparator.js +1 -0
  632. package/dist/es/dropdown-menu/DropdownMenuSub.js +1 -0
  633. package/dist/es/dropdown-menu/DropdownMenuSubContent.js +1 -0
  634. package/dist/es/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
  635. package/dist/es/dropdown-menu/DropdownMenuTrigger.js +1 -0
  636. package/dist/es/dropdown-menu/MenuItemContext.js +1 -0
  637. package/dist/es/dropdown-menu/processChildren.js +1 -0
  638. package/dist/es/dropdown-menu/useMenuItemChrome.js +1 -0
  639. package/dist/es/dropdown-menu/useMenuKeyboard.js +1 -0
  640. package/dist/es/dropdown-menu/usePointerGraceArea.js +1 -0
  641. package/dist/es/dropdown-menu/useSubMenuRegistry.js +1 -0
  642. package/dist/es/enums/enum.js +1 -0
  643. package/dist/es/field/index.js +1 -0
  644. package/dist/es/flex/index.js +1 -0
  645. package/dist/es/floating/Arrow.js +1 -0
  646. package/dist/es/floating/FloatingContent.js +1 -0
  647. package/dist/es/floating/createFloatingTrigger.js +1 -0
  648. package/dist/es/form/context/FormContext.js +1 -0
  649. package/dist/es/form/context/FormRegistry.js +1 -0
  650. package/dist/es/form/context/FormStore.js +1 -0
  651. package/dist/es/form/control/Control.js +1 -0
  652. package/dist/es/form/group/Group.js +1 -0
  653. package/dist/es/form/index.js +1 -0
  654. package/dist/es/form/item/Item.js +1 -0
  655. package/dist/es/form/validation/TCIdentity.js +1 -0
  656. package/dist/es/form/validation/Validator.js +1 -0
  657. package/dist/es/form/wrapper/FormWrapper.js +1 -0
  658. package/dist/es/helpers/array/ChunkArray.js +1 -0
  659. package/dist/es/helpers/aspectratio/DetermineNewHeight.js +1 -0
  660. package/dist/es/helpers/aspectratio/DetermineNewWidth.js +1 -0
  661. package/dist/es/helpers/base64/Base64Decode.js +1 -0
  662. package/dist/es/helpers/base64/Base64Encode.js +1 -0
  663. package/dist/es/helpers/binary/FormatBytes.js +1 -0
  664. package/dist/es/helpers/binary/GetExtensionByMimeType.js +1 -0
  665. package/dist/es/helpers/binary/GetTypeByFileType.js +1 -0
  666. package/dist/es/helpers/checker/CheckFileURL.js +1 -0
  667. package/dist/es/helpers/checker/FileChecker.js +1 -0
  668. package/dist/es/helpers/classname/GetClassNameByPlatform.js +1 -0
  669. package/dist/es/helpers/config/defineITDConfig.js +1 -0
  670. package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
  671. package/dist/es/helpers/country/GetCountryCodeByLanguage.js +1 -0
  672. package/dist/es/helpers/css/FindSelector.js +1 -0
  673. package/dist/es/helpers/currency/ConvertCurrency.js +1 -0
  674. package/dist/es/helpers/currency/GetByCurrency.js +1 -0
  675. package/dist/es/helpers/currency/GetCurrencyFormat.js +1 -0
  676. package/dist/es/helpers/currency/GetCurrencySymbol.js +1 -0
  677. package/dist/es/helpers/currency/GetDecimalByCurrency.js +1 -0
  678. package/dist/es/helpers/datetime/FormatDate.js +1 -0
  679. package/dist/es/helpers/datetime/FormatDateTime.js +1 -0
  680. package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -0
  681. package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -0
  682. package/dist/es/helpers/datetime/FormatTime.js +1 -0
  683. package/dist/es/helpers/datetime/dayjsSetup.js +1 -0
  684. package/dist/es/helpers/device/touchDevice.js +1 -0
  685. package/dist/es/helpers/format/ToKebabCase.js +1 -0
  686. package/dist/es/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
  687. package/dist/es/helpers/json/IsValidJSON.js +1 -0
  688. package/dist/es/helpers/math/AddZero.js +1 -0
  689. package/dist/es/helpers/phone/index.js +1 -0
  690. package/dist/es/helpers/phone/usePhoneCountry.js +1 -0
  691. package/dist/es/helpers/platform/index.js +1 -0
  692. package/dist/es/helpers/promise/Wait.js +1 -0
  693. package/dist/es/helpers/remover/RemoveUnits.js +1 -0
  694. package/dist/es/helpers/string/UniUpperCase.js +1 -0
  695. package/dist/es/helpers/svg/SVGLoader.js +1 -0
  696. package/dist/es/helpers/theme/AddDefaultThemeStyle.js +1 -0
  697. package/dist/es/helpers/theme/Color.js +1 -0
  698. package/dist/es/helpers/theme/GenerateColorScale.js +1 -0
  699. package/dist/es/helpers/theme/colorOps.js +1 -0
  700. package/dist/es/helpers/theme/contrast.js +1 -0
  701. package/dist/es/helpers/theme/createTheme.js +1 -0
  702. package/dist/es/helpers/theme/cssVariables.js +1 -0
  703. package/dist/es/helpers/theme/dark.js +1 -0
  704. package/dist/es/helpers/theme/exampleSitePreset.js +1 -0
  705. package/dist/es/helpers/theme/importShadcnTheme.js +1 -0
  706. package/dist/es/helpers/theme/light.js +1 -0
  707. package/dist/es/helpers/theme/presets.js +1 -0
  708. package/dist/es/helpers/theme/shadowScale.js +1 -0
  709. package/dist/es/helpers/theme/sitePreset.js +1 -0
  710. package/dist/es/helpers/theme/tokenSet.js +1 -0
  711. package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
  712. package/dist/es/helpers/unit/cssVars.js +1 -0
  713. package/dist/es/hooks/useAddExternalCSS.js +1 -0
  714. package/dist/es/hooks/useAvoidCollision.js +1 -0
  715. package/dist/es/hooks/useComponentSize.js +1 -0
  716. package/dist/es/hooks/useConnectionStatus.js +1 -0
  717. package/dist/es/hooks/useConstructor.js +1 -0
  718. package/dist/es/hooks/useContextBridge.js +1 -0
  719. package/dist/es/hooks/useCoreFetch.js +1 -0
  720. package/dist/es/hooks/useFloatingPosition.js +1 -0
  721. package/dist/es/hooks/useFloatingTrigger.js +1 -0
  722. package/dist/es/hooks/useFocusTrap.js +1 -0
  723. package/dist/es/hooks/useKeyboardShortcut.js +1 -0
  724. package/dist/es/hooks/useLoadMoreSentinel.js +1 -0
  725. package/dist/es/hooks/useMediaQuery.js +1 -0
  726. package/dist/es/hooks/useMultiQuery.js +1 -0
  727. package/dist/es/hooks/useNaturalRatio.js +1 -0
  728. package/dist/es/hooks/useOnClickOutside.js +1 -0
  729. package/dist/es/hooks/useOnESCKeyDown.js +1 -0
  730. package/dist/es/hooks/useOnResize.js +1 -0
  731. package/dist/es/hooks/useOrientation.js +1 -0
  732. package/dist/es/hooks/useReCaptcha.js +1 -0
  733. package/dist/es/hooks/useRealm.js +1 -0
  734. package/dist/es/hooks/useSingleQuery.js +1 -0
  735. package/dist/es/hovercard/HoverCard.js +1 -0
  736. package/dist/es/hovercard/HoverCardContent.js +1 -0
  737. package/dist/es/hovercard/HoverCardTrigger.js +1 -0
  738. package/dist/es/hovercard/hoverCardContext.js +1 -0
  739. package/dist/es/html/header/H1.js +1 -0
  740. package/dist/es/html/header/H2.js +1 -0
  741. package/dist/es/html/header/H3.js +1 -0
  742. package/dist/es/html/header/H4.js +1 -0
  743. package/dist/es/icons/Arrow.js +1 -0
  744. package/dist/es/icons/BackToTop.js +1 -0
  745. package/dist/es/icons/Checkmark.js +1 -0
  746. package/dist/es/icons/FileDocument.js +1 -0
  747. package/dist/es/icons/FileExcel.js +1 -0
  748. package/dist/es/icons/FilePdf.js +1 -0
  749. package/dist/es/icons/InlineSelectArrow.js +1 -0
  750. package/dist/es/icons/Lock.js +1 -0
  751. package/dist/es/icons/NoData.js +1 -0
  752. package/dist/es/icons/Picture.js +1 -0
  753. package/dist/es/icons/Trash.js +1 -0
  754. package/dist/es/icons/Upload.js +1 -0
  755. package/dist/es/icons/ZoomIn.js +1 -0
  756. package/dist/es/icons/ZoomOut.js +1 -0
  757. package/dist/es/image/index.js +1 -0
  758. package/dist/es/index.js +1 -0
  759. package/dist/es/input/index.js +1 -0
  760. package/dist/es/label/index.js +1 -0
  761. package/dist/es/locale/useITDLocale.js +1 -0
  762. package/dist/es/locales/en/calendar.json.js +1 -0
  763. package/dist/es/locales/en/itd.json.js +1 -0
  764. package/dist/es/locales/tr/calendar.json.js +1 -0
  765. package/dist/es/locales/tr/itd.json.js +1 -0
  766. package/dist/es/logger/index.js +1 -0
  767. package/dist/es/modal/container/ModalContainer.js +1 -0
  768. package/dist/es/modal/context/ModalContext.js +1 -0
  769. package/dist/es/modal/index.js +1 -0
  770. package/dist/es/modal/modal/Modal.js +1 -0
  771. package/dist/es/modal/useModalContent.js +1 -0
  772. package/dist/es/package.json +3 -0
  773. package/dist/es/page/BlockBoundary.js +1 -0
  774. package/dist/es/page/background.js +1 -0
  775. package/dist/es/page/blocks.js +1 -0
  776. package/dist/es/page/blocks.query.js +1 -0
  777. package/dist/es/page/checks.js +1 -0
  778. package/dist/es/page/context.js +1 -0
  779. package/dist/es/page/customCode.js +1 -0
  780. package/dist/es/page/editor/BlockForm.js +1 -0
  781. package/dist/es/page/editor/BlockPreview.js +1 -0
  782. package/dist/es/page/editor/CodeEditor.js +1 -0
  783. package/dist/es/page/editor/dropIndex.js +1 -0
  784. package/dist/es/page/editor/protocol.js +1 -0
  785. package/dist/es/page/editor/theme.js +1 -0
  786. package/dist/es/page/editor/useEditorBridge.js +1 -0
  787. package/dist/es/page/fields.js +1 -0
  788. package/dist/es/page/index.js +1 -0
  789. package/dist/es/page/layouts.js +1 -0
  790. package/dist/es/page/pageTypes.js +1 -0
  791. package/dist/es/page/sample.js +1 -0
  792. package/dist/es/page/settle.js +1 -0
  793. package/dist/es/page/types.js +1 -0
  794. package/dist/es/popover/Popover.js +1 -0
  795. package/dist/es/popover/PopoverContent.js +1 -0
  796. package/dist/es/popover/PopoverTrigger.js +1 -0
  797. package/dist/es/primitives/Slot.js +1 -0
  798. package/dist/es/primitives/overlayStack.js +1 -0
  799. package/dist/es/primitives/scrollLock.js +1 -0
  800. package/dist/es/progress/index.js +1 -0
  801. package/dist/es/radio/RadioGroup.js +1 -0
  802. package/dist/es/radio/RadioGroupContext.js +1 -0
  803. package/dist/es/radio/RadioGroupItem.js +1 -0
  804. package/dist/es/rangepicker/index.js +1 -0
  805. package/dist/es/result/index.js +1 -0
  806. package/dist/es/router/BlockLink.js +1 -0
  807. package/dist/es/router/ITDLink.js +1 -0
  808. package/dist/es/router/context.js +1 -0
  809. package/dist/es/router/hooks.js +1 -0
  810. package/dist/es/router/matchActive.js +1 -0
  811. package/dist/es/select/SelectGroup.js +1 -0
  812. package/dist/es/select/SelectItem.js +1 -0
  813. package/dist/es/select/SelectLabel.js +1 -0
  814. package/dist/es/select/SelectSeparator.js +1 -0
  815. package/dist/es/select/dropdown/Dropdown.js +1 -0
  816. package/dist/es/select/index.js +1 -0
  817. package/dist/es/select/option/Option.js +1 -0
  818. package/dist/es/select/selector/Selector.js +1 -0
  819. package/dist/es/select/selector/selectorinput/SelectorInput.js +1 -0
  820. package/dist/es/separator/index.js +1 -0
  821. package/dist/es/skeleton/index.js +1 -0
  822. package/dist/es/spin/index.js +1 -0
  823. package/dist/es/stat-card/index.js +1 -0
  824. package/dist/es/switch/index.js +1 -0
  825. package/dist/es/table/index.js +1 -0
  826. package/dist/es/table/paths.js +1 -0
  827. package/dist/es/table/primitives.js +1 -0
  828. package/dist/es/table/sort.js +1 -0
  829. package/dist/es/tabs/Tabs.js +1 -0
  830. package/dist/es/tabs/TabsContent.js +1 -0
  831. package/dist/es/tabs/TabsContext.js +1 -0
  832. package/dist/es/tabs/TabsList.js +1 -0
  833. package/dist/es/tabs/TabsTrigger.js +1 -0
  834. package/dist/es/textarea/index.js +1 -0
  835. package/dist/es/tinyscrollbar/index.js +1 -0
  836. package/dist/es/toast/index.js +1 -0
  837. package/dist/es/toggle-group/index.js +1 -0
  838. package/dist/es/tooltip/Tooltip.js +1 -0
  839. package/dist/es/tooltip/TooltipContent.js +1 -0
  840. package/dist/es/tooltip/TooltipTrigger.js +1 -0
  841. package/dist/es/tooltip/tooltipContext.js +1 -0
  842. package/dist/es/types/InputProps.js +1 -0
  843. package/dist/es/upload/index.js +1 -0
  844. package/dist/es/utils/CommonStyledComponents.js +1 -0
  845. package/dist/es/utils/ErrorAnnouncement.js +1 -0
  846. package/dist/es/utils/GetButtonSizeSlug.js +1 -0
  847. package/dist/es/utils/GetSizeBySizeSlug.js +1 -0
  848. package/dist/es/utils/GetSizeSlugBySize.js +1 -0
  849. package/dist/es/utils/InlineSVGCached.js +1 -0
  850. package/dist/es/utils/cn.js +1 -0
  851. package/dist/es/utils/focusModality.js +1 -0
  852. package/dist/global.css +514 -0
  853. package/dist/index.d.ts +11026 -144
  854. package/dist/locales/calendar.json +27 -0
  855. package/dist/locales/en/calendar.json +27 -0
  856. package/dist/locales/en/itd.json +382 -0
  857. package/dist/locales/itd.json +382 -0
  858. package/dist/locales/tr/calendar.json +27 -0
  859. package/dist/locales/tr/itd.json +382 -0
  860. package/dist/types/blocks/auth-complete/index.d.ts +2 -0
  861. package/dist/types/blocks/auth-page/index.d.ts +2 -0
  862. package/dist/types/blocks/banner/index.d.ts +2 -0
  863. package/dist/types/blocks/box-title/index.d.ts +2 -0
  864. package/dist/types/blocks/casino-featured/index.d.ts +2 -0
  865. package/dist/types/blocks/default-avatar/index.d.ts +1 -0
  866. package/dist/types/blocks/featured-games/index.d.ts +2 -0
  867. package/dist/types/blocks/filter-tabs/index.d.ts +2 -0
  868. package/dist/types/blocks/footer/index.d.ts +2 -0
  869. package/dist/types/blocks/game-box/index.d.ts +2 -0
  870. package/dist/types/blocks/game-carousel/index.d.ts +2 -0
  871. package/dist/types/blocks/game-categories/index.d.ts +2 -0
  872. package/dist/types/blocks/game-filter/index.d.ts +2 -0
  873. package/dist/types/blocks/game-navigator/index.d.ts +2 -0
  874. package/dist/types/blocks/game-providers/index.d.ts +2 -0
  875. package/dist/types/blocks/game-search/index.d.ts +2 -0
  876. package/dist/types/blocks/game-shell/index.d.ts +2 -0
  877. package/dist/types/blocks/games-grid/index.d.ts +2 -0
  878. package/dist/types/blocks/header/index.d.ts +2 -0
  879. package/dist/types/blocks/help/index.d.ts +2 -0
  880. package/dist/types/blocks/last-winners/index.d.ts +2 -0
  881. package/dist/types/blocks/layout-boxes/index.d.ts +2 -0
  882. package/dist/types/blocks/login/index.d.ts +2 -0
  883. package/dist/types/blocks/mega-menu/index.d.ts +2 -0
  884. package/dist/types/blocks/min-width-gate/index.d.ts +2 -0
  885. package/dist/types/blocks/mobile-bottom-nav/index.d.ts +2 -0
  886. package/dist/types/blocks/multiple-jackpots/index.d.ts +2 -0
  887. package/dist/types/blocks/notifications/index.d.ts +2 -0
  888. package/dist/types/blocks/post-viewer/index.d.ts +2 -0
  889. package/dist/types/blocks/promotions-grid/index.d.ts +2 -0
  890. package/dist/types/blocks/raffle/index.d.ts +2 -0
  891. package/dist/types/blocks/signup/index.d.ts +2 -0
  892. package/dist/types/blocks/slider/index.d.ts +2 -0
  893. package/dist/types/blocks/slider-double/index.d.ts +2 -0
  894. package/dist/types/blocks/spacer/index.d.ts +2 -0
  895. package/dist/types/blocks/sub-page-header/index.d.ts +2 -0
  896. package/dist/types/blocks/tournaments/index.d.ts +2 -0
  897. package/dist/types/blocks/user-hub/index.d.ts +2 -0
  898. package/package.json +99 -99
  899. package/dist/accordion/index.d.ts +0 -14
  900. package/dist/accordion/item/Item.d.ts +0 -3
  901. package/dist/accordion/item/styled.d.ts +0 -6
  902. package/dist/accordion/styled.d.ts +0 -1
  903. package/dist/accordion/submenu/SubMenu.d.ts +0 -2
  904. package/dist/accordion/submenu/styled.d.ts +0 -15
  905. package/dist/alert/Description.d.ts +0 -7
  906. package/dist/alert/Title.d.ts +0 -7
  907. package/dist/alert/alert.style.error.d.ts +0 -4
  908. package/dist/alert/alert.style.info.d.ts +0 -4
  909. package/dist/alert/alert.style.neutral.d.ts +0 -4
  910. package/dist/alert/alert.style.success.d.ts +0 -4
  911. package/dist/alert/alert.style.warning.d.ts +0 -4
  912. package/dist/alert/index.d.ts +0 -8
  913. package/dist/alert/styled.d.ts +0 -4
  914. package/dist/alink/index.d.ts +0 -2
  915. package/dist/alink/styled.d.ts +0 -2
  916. package/dist/back-top/index.d.ts +0 -1
  917. package/dist/back-top/styled.d.ts +0 -5
  918. package/dist/button/button.style.default.d.ts +0 -4
  919. package/dist/button/button.style.filled.d.ts +0 -4
  920. package/dist/button/button.style.ghost.d.ts +0 -4
  921. package/dist/button/button.style.icon.d.ts +0 -5
  922. package/dist/button/button.style.link.d.ts +0 -4
  923. package/dist/button/button.style.outline.d.ts +0 -4
  924. package/dist/button/button.style.size.d.ts +0 -7
  925. package/dist/button/button.style.solid.d.ts +0 -4
  926. package/dist/button/index.d.ts +0 -11
  927. package/dist/button/styled.d.ts +0 -3
  928. package/dist/calendar/dates.d.ts +0 -2
  929. package/dist/calendar/day/Day.d.ts +0 -5
  930. package/dist/calendar/day/styled.d.ts +0 -7
  931. package/dist/calendar/header/Header.d.ts +0 -1
  932. package/dist/calendar/header/styled.d.ts +0 -7
  933. package/dist/calendar/index.d.ts +0 -18
  934. package/dist/calendar/styled.d.ts +0 -7
  935. package/dist/card/Card.d.ts +0 -9
  936. package/dist/card/CardAction.d.ts +0 -7
  937. package/dist/card/CardContent.d.ts +0 -7
  938. package/dist/card/CardDescription.d.ts +0 -7
  939. package/dist/card/CardFooter.d.ts +0 -8
  940. package/dist/card/CardHeader.d.ts +0 -8
  941. package/dist/card/CardTabs.d.ts +0 -7
  942. package/dist/card/CardTitle.d.ts +0 -7
  943. package/dist/card/index.d.ts +0 -8
  944. package/dist/card/styles.d.ts +0 -15
  945. package/dist/checkbox/group/index.d.ts +0 -3
  946. package/dist/checkbox/group/styled.d.ts +0 -2
  947. package/dist/checkbox/index.d.ts +0 -10
  948. package/dist/checkbox/styled.d.ts +0 -10
  949. package/dist/context/ITDContext.d.ts +0 -23
  950. package/dist/context/ITDThemeProvider.d.ts +0 -8
  951. package/dist/context/styled.d.ts +0 -2
  952. package/dist/datepicker/index.d.ts +0 -3
  953. package/dist/datepicker/styled.d.ts +0 -9
  954. package/dist/enums/enum.d.ts +0 -209
  955. package/dist/flex/index.d.ts +0 -3
  956. package/dist/flex/styled.d.ts +0 -10
  957. package/dist/floating/Arrow.d.ts +0 -17
  958. package/dist/floating/FloatingContent.d.ts +0 -60
  959. package/dist/floating/mergeTriggerProps.d.ts +0 -8
  960. package/dist/form/context/FormContext.d.ts +0 -37
  961. package/dist/form/context/FormStore.d.ts +0 -14
  962. package/dist/form/control/Control.d.ts +0 -7
  963. package/dist/form/control/styled.d.ts +0 -4
  964. package/dist/form/group/Group.d.ts +0 -17
  965. package/dist/form/group/styled.d.ts +0 -5
  966. package/dist/form/index.d.ts +0 -20
  967. package/dist/form/item/Item.d.ts +0 -17
  968. package/dist/form/validation/TCIdentity.d.ts +0 -1
  969. package/dist/form/validation/Validator.d.ts +0 -19
  970. package/dist/form/wrapper/FormWrapper.d.ts +0 -14
  971. package/dist/helpers/array/ChunkArray.d.ts +0 -7
  972. package/dist/helpers/aspectratio/DetermineNewHeight.d.ts +0 -1
  973. package/dist/helpers/aspectratio/DetermineNewWidth.d.ts +0 -1
  974. package/dist/helpers/base64/Base64Decode.d.ts +0 -1
  975. package/dist/helpers/base64/Base64Encode.d.ts +0 -1
  976. package/dist/helpers/binary/FormatBytes.d.ts +0 -1
  977. package/dist/helpers/binary/GetTypeByFileType.d.ts +0 -2
  978. package/dist/helpers/checker/CheckFileURL.d.ts +0 -1
  979. package/dist/helpers/checker/FileChecker.d.ts +0 -7
  980. package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +0 -1
  981. package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +0 -1
  982. package/dist/helpers/css/FindSelector.d.ts +0 -11
  983. package/dist/helpers/currency/ConvertCurrency.d.ts +0 -1
  984. package/dist/helpers/currency/GetByCurrency.d.ts +0 -1
  985. package/dist/helpers/currency/GetCurrencyFormat.d.ts +0 -10
  986. package/dist/helpers/currency/GetCurrencySymbol.d.ts +0 -1
  987. package/dist/helpers/currency/GetDecimalByCurrency.d.ts +0 -1
  988. package/dist/helpers/datetime/FormatDate.d.ts +0 -1
  989. package/dist/helpers/datetime/FormatDateTime.d.ts +0 -1
  990. package/dist/helpers/datetime/FormatSimpleDate.d.ts +0 -1
  991. package/dist/helpers/datetime/FormatSimpleDateTime.d.ts +0 -1
  992. package/dist/helpers/datetime/FormatTime.d.ts +0 -2
  993. package/dist/helpers/datetime/dayjsSetup.d.ts +0 -2
  994. package/dist/helpers/format/ToKebabCase.d.ts +0 -27
  995. package/dist/helpers/index.d.ts +0 -36
  996. package/dist/helpers/json/IsValidJSON.d.ts +0 -1
  997. package/dist/helpers/locale/getLocaleDateByString.d.ts +0 -1
  998. package/dist/helpers/math/AddZero.d.ts +0 -1
  999. package/dist/helpers/promise/Wait.d.ts +0 -1
  1000. package/dist/helpers/remover/RemoveUnits.d.ts +0 -1
  1001. package/dist/helpers/string/UniUpperCase.d.ts +0 -6
  1002. package/dist/helpers/svg/SVGLoader.d.ts +0 -2
  1003. package/dist/helpers/svg/styles.d.ts +0 -5
  1004. package/dist/helpers/theme/AddDefaultThemeStyle.d.ts +0 -4
  1005. package/dist/helpers/theme/Color.d.ts +0 -19
  1006. package/dist/helpers/theme/GenerateColorScale.d.ts +0 -16
  1007. package/dist/helpers/theme/UpdateThemeStyle.d.ts +0 -5
  1008. package/dist/helpers/theme/cssVariables.d.ts +0 -30
  1009. package/dist/helpers/theme/dark.d.ts +0 -3
  1010. package/dist/helpers/theme/index.d.ts +0 -9
  1011. package/dist/helpers/theme/light.d.ts +0 -3
  1012. package/dist/helpers/theme/themes.d.ts +0 -5
  1013. package/dist/helpers/theme/tokens.d.ts +0 -392
  1014. package/dist/helpers/unit/AddDefaultUnit.d.ts +0 -1
  1015. package/dist/helpers/url/ValidURL.d.ts +0 -1
  1016. package/dist/hooks/index.d.ts +0 -15
  1017. package/dist/hooks/useAddExternalCSS.d.ts +0 -13
  1018. package/dist/hooks/useAvoidCollision.d.ts +0 -21
  1019. package/dist/hooks/useComponentSize.d.ts +0 -6
  1020. package/dist/hooks/useConnectionStatus.d.ts +0 -11
  1021. package/dist/hooks/useConstructor.d.ts +0 -11
  1022. package/dist/hooks/useContextBridge.d.ts +0 -7
  1023. package/dist/hooks/useCoreFetch.d.ts +0 -37
  1024. package/dist/hooks/useFloatingPosition.d.ts +0 -63
  1025. package/dist/hooks/useFloatingTrigger.d.ts +0 -64
  1026. package/dist/hooks/useFocusTrap.d.ts +0 -36
  1027. package/dist/hooks/useKeyboardShortcut.d.ts +0 -6
  1028. package/dist/hooks/useMultiQuery.d.ts +0 -7
  1029. package/dist/hooks/useOnClickOutside.d.ts +0 -12
  1030. package/dist/hooks/useOnESCKeyDown.d.ts +0 -10
  1031. package/dist/hooks/useOnResize.d.ts +0 -10
  1032. package/dist/hooks/useOrientation.d.ts +0 -3
  1033. package/dist/hooks/useReCaptcha.d.ts +0 -7
  1034. package/dist/hooks/useSingleQuery.d.ts +0 -18
  1035. package/dist/hovercard/HoverCard.d.ts +0 -12
  1036. package/dist/hovercard/HoverCardContent.d.ts +0 -22
  1037. package/dist/hovercard/HoverCardTrigger.d.ts +0 -17
  1038. package/dist/hovercard/hoverCardContext.d.ts +0 -7
  1039. package/dist/hovercard/index.d.ts +0 -4
  1040. package/dist/html/header/H1.d.ts +0 -5
  1041. package/dist/html/header/H2.d.ts +0 -5
  1042. package/dist/html/header/H3.d.ts +0 -5
  1043. package/dist/html/header/H4.d.ts +0 -5
  1044. package/dist/html/header/index.d.ts +0 -4
  1045. package/dist/html/header/styled.d.ts +0 -5
  1046. package/dist/icons/Arrow.d.ts +0 -6
  1047. package/dist/icons/BackToTop.d.ts +0 -6
  1048. package/dist/icons/Checkmark.d.ts +0 -6
  1049. package/dist/icons/InlineSelectArrow.d.ts +0 -6
  1050. package/dist/icons/Lock.d.ts +0 -6
  1051. package/dist/icons/NoData.d.ts +0 -7
  1052. package/dist/icons/Picture.d.ts +0 -6
  1053. package/dist/icons/Remove.d.ts +0 -7
  1054. package/dist/icons/Trash.d.ts +0 -6
  1055. package/dist/icons/Upload.d.ts +0 -6
  1056. package/dist/icons/ZoomIn.d.ts +0 -6
  1057. package/dist/icons/ZoomOut.d.ts +0 -6
  1058. package/dist/icons/index.d.ts +0 -11
  1059. package/dist/image/index.d.ts +0 -11
  1060. package/dist/image/styled.d.ts +0 -7
  1061. package/dist/index.cjs.js +0 -5727
  1062. package/dist/index.cjs.js.map +0 -1
  1063. package/dist/index.css +0 -1
  1064. package/dist/index.es.js +0 -22339
  1065. package/dist/index.es.js.map +0 -1
  1066. package/dist/index.iife.js +0 -5728
  1067. package/dist/index.iife.js.map +0 -1
  1068. package/dist/index.umd.js +0 -5728
  1069. package/dist/index.umd.js.map +0 -1
  1070. package/dist/input/index.d.ts +0 -35
  1071. package/dist/input/style.settings.d.ts +0 -9
  1072. package/dist/input/styled.d.ts +0 -27
  1073. package/dist/label/index.d.ts +0 -6
  1074. package/dist/label/style.settings.d.ts +0 -9
  1075. package/dist/label/styled.d.ts +0 -27
  1076. package/dist/link/index.d.ts +0 -2
  1077. package/dist/locales/en/calendar.json.d.ts +0 -32
  1078. package/dist/locales/en/itd.json.d.ts +0 -339
  1079. package/dist/locales/tr/calendar.json.d.ts +0 -32
  1080. package/dist/locales/tr/itd.json.d.ts +0 -339
  1081. package/dist/logger/index.d.ts +0 -9
  1082. package/dist/modal/container/ModalContainer.d.ts +0 -24
  1083. package/dist/modal/container/styled.d.ts +0 -5
  1084. package/dist/modal/context/ModalContext.d.ts +0 -77
  1085. package/dist/modal/index.d.ts +0 -14
  1086. package/dist/modal/modal/Modal.d.ts +0 -16
  1087. package/dist/modal/modal/styled.d.ts +0 -22
  1088. package/dist/notification/container/Container.d.ts +0 -5
  1089. package/dist/notification/container/styled.d.ts +0 -1
  1090. package/dist/notification/context/NotificationsContext.d.ts +0 -7
  1091. package/dist/notification/index.d.ts +0 -14
  1092. package/dist/notification/item/Item.d.ts +0 -12
  1093. package/dist/notification/item/styled.d.ts +0 -1166
  1094. package/dist/popover/Popover.d.ts +0 -42
  1095. package/dist/popover/PopoverContent.d.ts +0 -34
  1096. package/dist/popover/PopoverTrigger.d.ts +0 -26
  1097. package/dist/popover/index.d.ts +0 -4
  1098. package/dist/primitives/Slot.d.ts +0 -36
  1099. package/dist/progress/index.d.ts +0 -2
  1100. package/dist/progress/styled.d.ts +0 -6
  1101. package/dist/radio/button/RadioButton.d.ts +0 -2
  1102. package/dist/radio/button/styled.d.ts +0 -11
  1103. package/dist/radio/group/Group.d.ts +0 -5
  1104. package/dist/radio/group/styled.d.ts +0 -9
  1105. package/dist/radio/index.d.ts +0 -9
  1106. package/dist/reportWebVitals.d.ts +0 -2
  1107. package/dist/result/index.d.ts +0 -6
  1108. package/dist/result/styled.d.ts +0 -16
  1109. package/dist/select/dropdown/Dropdown.d.ts +0 -20
  1110. package/dist/select/dropdown/styled.d.ts +0 -14
  1111. package/dist/select/index.d.ts +0 -9
  1112. package/dist/select/option/Option.d.ts +0 -25
  1113. package/dist/select/option/styled.d.ts +0 -5
  1114. package/dist/select/selector/Selector.d.ts +0 -3
  1115. package/dist/select/selector/selectorinput/SelectorInput.d.ts +0 -6
  1116. package/dist/select/selector/selectorinput/styled.d.ts +0 -2
  1117. package/dist/select/selector/styled.d.ts +0 -16
  1118. package/dist/select/style.settings.d.ts +0 -88
  1119. package/dist/select/styled.d.ts +0 -9
  1120. package/dist/setupTests.d.ts +0 -1
  1121. package/dist/spin/index.d.ts +0 -9
  1122. package/dist/spin/styled.d.ts +0 -10
  1123. package/dist/status/index.d.ts +0 -2
  1124. package/dist/status/styled.d.ts +0 -6
  1125. package/dist/stories/Accordion.d.ts +0 -5
  1126. package/dist/stories/Accordion.stories.d.ts +0 -19
  1127. package/dist/stories/Alert.d.ts +0 -2
  1128. package/dist/stories/Alert.stories.d.ts +0 -34
  1129. package/dist/stories/AlertComposition.d.ts +0 -2
  1130. package/dist/stories/AlertComposition.stories.d.ts +0 -17
  1131. package/dist/stories/Button.d.ts +0 -2
  1132. package/dist/stories/Button.stories.d.ts +0 -38
  1133. package/dist/stories/Card.d.ts +0 -2
  1134. package/dist/stories/Card.stories.d.ts +0 -19
  1135. package/dist/stories/Checkbox.d.ts +0 -2
  1136. package/dist/stories/Checkbox.stories.d.ts +0 -20
  1137. package/dist/stories/CheckboxGroup.d.ts +0 -2
  1138. package/dist/stories/CheckboxGroup.stories.d.ts +0 -17
  1139. package/dist/stories/CheckboxGroupControl.d.ts +0 -2
  1140. package/dist/stories/CheckboxGroupControl.stories.d.ts +0 -17
  1141. package/dist/stories/ColorScale.d.ts +0 -10
  1142. package/dist/stories/ColorScale.stories.d.ts +0 -24
  1143. package/dist/stories/ColorScaleCompare.d.ts +0 -8
  1144. package/dist/stories/ColorScaleCompare.stories.d.ts +0 -47
  1145. package/dist/stories/DatePicker.d.ts +0 -2
  1146. package/dist/stories/DatePicker.stories.d.ts +0 -19
  1147. package/dist/stories/Form.d.ts +0 -2
  1148. package/dist/stories/Form.stories.d.ts +0 -29
  1149. package/dist/stories/Header.d.ts +0 -2
  1150. package/dist/stories/Header.stories.d.ts +0 -18
  1151. package/dist/stories/HoverCard.d.ts +0 -2
  1152. package/dist/stories/HoverCard.stories.d.ts +0 -18
  1153. package/dist/stories/Input.d.ts +0 -2
  1154. package/dist/stories/Input.stories.d.ts +0 -101
  1155. package/dist/stories/ModalManager.d.ts +0 -2
  1156. package/dist/stories/ModalManager.stories.d.ts +0 -21
  1157. package/dist/stories/NoDataIcon.d.ts +0 -2
  1158. package/dist/stories/Page.d.ts +0 -2
  1159. package/dist/stories/Page.stories.d.ts +0 -12
  1160. package/dist/stories/Popover.d.ts +0 -2
  1161. package/dist/stories/Popover.stories.d.ts +0 -40
  1162. package/dist/stories/Progress.d.ts +0 -2
  1163. package/dist/stories/Progress.stories.d.ts +0 -20
  1164. package/dist/stories/RadioGroup.d.ts +0 -2
  1165. package/dist/stories/RadioGroup.stories.d.ts +0 -14
  1166. package/dist/stories/Result.d.ts +0 -2
  1167. package/dist/stories/Result.stories.d.ts +0 -16
  1168. package/dist/stories/Select.d.ts +0 -2
  1169. package/dist/stories/Select.stories.d.ts +0 -34
  1170. package/dist/stories/Status.d.ts +0 -2
  1171. package/dist/stories/Status.stories.d.ts +0 -49
  1172. package/dist/stories/Switch.d.ts +0 -2
  1173. package/dist/stories/Switch.stories.d.ts +0 -30
  1174. package/dist/stories/Table.d.ts +0 -2
  1175. package/dist/stories/Table.stories.d.ts +0 -29
  1176. package/dist/stories/Tabs.d.ts +0 -2
  1177. package/dist/stories/Tabs.stories.d.ts +0 -18
  1178. package/dist/stories/TextArea.d.ts +0 -2
  1179. package/dist/stories/TextArea.stories.d.ts +0 -25
  1180. package/dist/stories/Tooltip.d.ts +0 -1
  1181. package/dist/stories/Tooltip.stories.d.ts +0 -35
  1182. package/dist/stories/Upload.d.ts +0 -2
  1183. package/dist/stories/Upload.stories.d.ts +0 -19
  1184. package/dist/stories/root/index.d.ts +0 -5
  1185. package/dist/stories/select.styled.d.ts +0 -2
  1186. package/dist/switch/index.d.ts +0 -3
  1187. package/dist/switch/styled.d.ts +0 -5
  1188. package/dist/table/index.d.ts +0 -9
  1189. package/dist/table/styled.d.ts +0 -13
  1190. package/dist/tabs/index.d.ts +0 -3
  1191. package/dist/tabs/styles.d.ts +0 -8
  1192. package/dist/textarea/index.d.ts +0 -3
  1193. package/dist/textarea/styled.d.ts +0 -6
  1194. package/dist/tinyscrollbar/index.d.ts +0 -8
  1195. package/dist/tinyscrollbar/scroll.styled.d.ts +0 -2
  1196. package/dist/tinyscrollbar/styled.d.ts +0 -6
  1197. package/dist/tooltip/Tooltip.d.ts +0 -12
  1198. package/dist/tooltip/TooltipContent.d.ts +0 -15
  1199. package/dist/tooltip/TooltipTrigger.d.ts +0 -19
  1200. package/dist/tooltip/index.d.ts +0 -4
  1201. package/dist/tooltip/tooltipContext.d.ts +0 -7
  1202. package/dist/types/AccordionItemProps.d.ts +0 -9
  1203. package/dist/types/AccordionProps.d.ts +0 -12
  1204. package/dist/types/AccordionSubMenuProps.d.ts +0 -18
  1205. package/dist/types/AlertProps.d.ts +0 -13
  1206. package/dist/types/ButtonProps.d.ts +0 -26
  1207. package/dist/types/CalendarProps.d.ts +0 -30
  1208. package/dist/types/CardProps.d.ts +0 -21
  1209. package/dist/types/CheckboxProps.d.ts +0 -45
  1210. package/dist/types/ChildrenProps.d.ts +0 -3
  1211. package/dist/types/DatePickerProps.d.ts +0 -23
  1212. package/dist/types/FlexProps.d.ts +0 -16
  1213. package/dist/types/FormProps.d.ts +0 -53
  1214. package/dist/types/ITDImperativeFuncProps.d.ts +0 -11
  1215. package/dist/types/ITDProps.d.ts +0 -6
  1216. package/dist/types/InputProps.d.ts +0 -42
  1217. package/dist/types/LabelProps.d.ts +0 -7
  1218. package/dist/types/ModalProps.d.ts +0 -219
  1219. package/dist/types/NotificationsProps.d.ts +0 -9
  1220. package/dist/types/PopoverProps.d.ts +0 -10
  1221. package/dist/types/ProgressProps.d.ts +0 -8
  1222. package/dist/types/QueryValueProps.d.ts +0 -1
  1223. package/dist/types/RadioProps.d.ts +0 -37
  1224. package/dist/types/ResultProps.d.ts +0 -14
  1225. package/dist/types/SelectProps.d.ts +0 -70
  1226. package/dist/types/SingleQueryProps.d.ts +0 -7
  1227. package/dist/types/StatusProps.d.ts +0 -11
  1228. package/dist/types/SwitchProps.d.ts +0 -13
  1229. package/dist/types/TableProps.d.ts +0 -37
  1230. package/dist/types/TabsProps.d.ts +0 -15
  1231. package/dist/types/TextAreaProps.d.ts +0 -28
  1232. package/dist/types/Theme.d.ts +0 -103
  1233. package/dist/types/UploadProps.d.ts +0 -51
  1234. package/dist/upload/index.d.ts +0 -13
  1235. package/dist/upload/styled.d.ts +0 -12
  1236. package/dist/utils/CommonStyledComponents.d.ts +0 -18
  1237. package/dist/utils/ErrorAnnouncement.d.ts +0 -25
  1238. package/dist/utils/GetButtonSizeSlug.d.ts +0 -6
  1239. package/dist/utils/GetIconSizeBySize.d.ts +0 -2
  1240. package/dist/utils/GetSizeBySizeSlug.d.ts +0 -3
  1241. package/dist/utils/GetSizeSlugBySize.d.ts +0 -6
  1242. package/dist/utils/InlineSVGCached.d.ts +0 -11
  1243. package/dist/utils/index.d.ts +0 -6
@@ -0,0 +1 @@
1
+ import{useContext as o,useRef as t,useState as r,useEffect as e}from"react";import l from"../../context/ITDContext.js";import n from"../../helpers/image/SVGUrlToPNGDataUrl.js";const c=(c,g,i)=>{const u=o(l)?.theme??"dark",a=o=>"light"===u?o.logoLight??o.logo:o.logo,h=t(i);h.current=i;const[s,m]=r({});e(()=>{if(!g)return;let o=!0;return c.forEach(t=>{const r="light"===u?t.logoLight??t.logo:t.logo;null!=r&&n(r,h.current).then(t=>{o&&m(o=>o[r]?o:{...o,[r]:t})}).catch(()=>{o&&m(o=>o[r]?o:{...o,[r]:r})})}),()=>{o=!1}},[c,g,u]);const f=!g||c.every(o=>null==a(o)||null!=s[a(o)]);return{activeLogo:a,logoSrc:o=>{const t=a(o);return g?null!=t?s[t]:void 0:t},ready:f}};export{c as useProviderLogos};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as a}from"react";import{X as i,Search as r}from"lucide-react";import n from"../../button/index.js";import t from"../../input/index.js";const c=({id:c,value:m,defaultValue:o="",placeholder:l="Oyun arama",onChange:s,className:d})=>{const[h,p]=a(o),g=m??h,u=e=>{p(e),s?.(e)};return e("div",{id:c??"inn-mobile-game-search-component",className:("itd-game-search "+(d??"")).trim(),children:e("div",{id:"inn-mobile-game-search-content-wrapper",className:"itd-game-search-wrapper",children:e("div",{id:"inn-mobile-game-search-content",className:"itd-game-search-content",children:e(t,{size:"x-large",placeholder:l,value:g,onChange:e=>u(String(e??"")),prefix:e(r,{"aria-hidden":!0}),suffix:""!==g?e(n,{variant:"ghost",size:"icon",className:"itd-game-search-clear","aria-label":"Temizle",onClick:()=>u(""),children:e(i,{})}):void 0})})})})};export{c as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useState as i,useRef as s,useEffect as n}from"react";import{useDrawerChrome as r}from"./useDrawerChrome.js";import{useLoadMoreSentinel as o}from"../../hooks/useLoadMoreSentinel.js";import{Trophy as m,Coins as t,Cherry as l,X as d,Search as c}from"lucide-react";import b from"../game-box/index.js";import g from"../../image/index.js";import p from"../../spin/index.js";const w={games:"Oyunlar",jackpots:"Jackpotlar",winners:"Kazananlar",searchPlaceholder:"Oyun arama",searchClear:"Aramayı temizle",empty:"Oyun bulunamadı!",all:"Tümü",last:"Son",top:"En Çok"},h={games:e(l,{}),jackpots:e(t,{}),winners:e(m,{})},u=({open:m,onClose:t,logo:l,games:u=[],gamesLoading:v=!1,hasMoreGames:N=!1,onLoadMore:k,providers:y=[],activeProvider:j=null,onProviderChange:C,onSearch:f,onGameSelect:M,gameAspect:L="wide",jackpots:x=[],winners:S=[],winnersMode:P="last",onWinnersModeChange:G,onWinnerSelect:T,labels:z,className:K=""})=>{const O={...w,...z},[A,W]=i("games"),[q,D]=i(""),[E,J]=i(()=>new Set(["games"])),B=s(void 0),F=s({hasMoreGames:N,gamesLoading:v,onLoadMore:k});F.current={hasMoreGames:N,gamesLoading:v,onLoadMore:k};const H=o(m&&"games"===A,()=>{const e=F.current;e.hasMoreGames&&!e.gamesLoading&&e.onLoadMore?.()},{rootMargin:"200px",resetKey:u.length});n(()=>()=>clearTimeout(B.current),[]);const I=s(null),Q=r(m,t,I);if(!m&&!Q)return null;return a("div",{className:("itd-game-browse "+K).trim(),"data-state":m?"open":"closing",children:[e("div",{className:"itd-game-browse-overlay inn-mobile-game-browse-overlay",onClick:t,"aria-hidden":!0}),a("div",{ref:I,className:"itd-game-browse-panel inn-mobile-game-browse-panel",role:"dialog","aria-modal":"true","aria-label":O.games,children:[a("div",{className:"itd-game-browse-header inn-mobile-game-browse-header",children:[e("span",{className:"itd-game-browse-logo inn-mobile-game-browse-logo",children:l}),e("button",{type:"button",className:"itd-game-browse-close inn-mobile-game-browse-close","aria-label":"Kapat",onClick:t,children:e(d,{})})]}),e("div",{className:"itd-game-browse-tabs inn-mobile-game-browse-tabs",role:"tablist",children:["games","jackpots","winners"].map(i=>a("button",{type:"button",role:"tab","aria-selected":A===i,className:"itd-game-browse-tab inn-mobile-game-browse-tab--"+i+(A===i?" itd-game-browse-tab--active inn-mobile-game-browse-tab--active":""),onClick:()=>{return W(e=i),void J(a=>a.has(e)?a:new Set(a).add(e));var e},children:[e("span",{className:"itd-game-browse-tab-icon","aria-hidden":!0,children:h[i]}),e("span",{className:"itd-game-browse-tab-label inn-mobile-game-browse-tab-label",children:O[i]})]},i))}),a("div",{className:"itd-game-browse-content inn-mobile-game-browse-content",children:[E.has("games")&&a("div",{className:"itd-game-browse-pane inn-mobile-game-browse-pane--games",style:"games"===A?void 0:{display:"none"},children:[y.length>0&&a("div",{className:"itd-game-browse-providers inn-mobile-game-browse-providers",children:[e("button",{type:"button",className:"itd-game-browse-chip inn-mobile-game-browse-provider-chip"+(null==j?" itd-game-browse-chip--active":""),onClick:()=>C?.(null),children:O.all}),y.map(a=>e("button",{type:"button",className:"itd-game-browse-chip inn-mobile-game-browse-provider-chip"+(j===a.id?" itd-game-browse-chip--active":""),onClick:()=>C?.(a.id),children:a.name},a.id))]}),f&&a("label",{className:"itd-game-browse-search inn-mobile-game-browse-search",children:[e(c,{"aria-hidden":!0}),e("input",{type:"search",placeholder:O.searchPlaceholder,"aria-label":O.searchPlaceholder,value:q,onChange:e=>{var a;D(e.target.value),a=e.target.value,clearTimeout(B.current),B.current=setTimeout(()=>f?.(a),250)}}),""!==q&&e("button",{type:"button",className:"itd-game-browse-search-clear inn-mobile-game-browse-search-clear","aria-label":O.searchClear,onClick:()=>{D(""),clearTimeout(B.current),f?.("")},children:e(d,{"aria-hidden":!0})})]}),0!==u.length||v?e("div",{className:"itd-game-browse-grid inn-mobile-game-browse-games","data-aspect":L,children:u.map(i=>a("div",{className:"itd-game-browse-tile inn-mobile-game-browse-game-tile",children:[e(b,{ratio:"square"===L?"1/1":"440/310",image:i.image,name:i.name,slug:i.slug,onPlay:()=>M?.(i)}),e("span",{className:"itd-game-browse-tile-name inn-mobile-game-browse-game-tile-name",children:i.name})]},i.id))}):e("div",{className:"itd-game-browse-empty inn-mobile-game-browse-empty",children:O.empty}),(N||v)&&e("div",{ref:H,className:"itd-game-browse-sentinel inn-mobile-game-browse-games-sentinel",children:e(p,{size:20})})]}),E.has("jackpots")&&e("div",{className:"itd-game-browse-pane inn-mobile-game-browse-pane--jackpots",style:"jackpots"===A?void 0:{display:"none"},children:x.map(i=>a("div",{className:"itd-game-browse-jackpot inn-mobile-game-browse-jackpot",children:[a("div",{className:"itd-game-browse-jackpot-head",children:[e("span",{className:"itd-game-browse-jackpot-name",children:i.name}),i.provider&&e("span",{className:"itd-game-browse-jackpot-provider",children:i.provider})]}),e("div",{className:"itd-game-browse-jackpot-tiers",children:i.tiers.map(i=>a("div",{className:"itd-game-browse-jackpot-tier inn-mobile-game-browse-jackpot-tier--"+i.name.toLowerCase(),children:[e("span",{className:"itd-game-browse-jackpot-tier-name",children:i.name}),e("span",{className:"itd-game-browse-jackpot-tier-amount",children:i.amount})]},i.name))})]},i.id))}),E.has("winners")&&a("div",{className:"itd-game-browse-pane inn-mobile-game-browse-pane--winners",style:"winners"===A?void 0:{display:"none"},children:[e("div",{className:"itd-game-browse-subtabs inn-mobile-game-browse-winners-subtabs",children:["last","top"].map(a=>e("button",{type:"button",className:"itd-game-browse-subtab inn-mobile-game-browse-winners-subtab--"+a+(P===a?" itd-game-browse-subtab--active":""),onClick:()=>G?.(a),children:"last"===a?O.last:O.top},a))}),S.map(i=>a("button",{type:"button",className:"itd-game-browse-winner inn-mobile-game-browse-winner",onClick:()=>T?.(i),children:[e("span",{className:"itd-game-browse-winner-image",children:i.image&&e(g,{src:i.image,alt:i.game})}),a("span",{className:"itd-game-browse-winner-body",children:[e("span",{className:"itd-game-browse-winner-username",children:i.username}),e("span",{className:"itd-game-browse-winner-game",children:i.game})]}),e("span",{className:"itd-game-browse-winner-amount",children:i.amount})]},i.id))]})]})]})]})};export{u as GameShellBrowse,u as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as a}from"react/jsx-runtime";import{useRef as i}from"react";import{useDrawerChrome as t}from"./useDrawerChrome.js";import{X as s}from"lucide-react";import l from"../../button/index.js";const n=({open:n,title:m,actions:o=[],onClose:r,overlayDismiss:d=!1,className:c=""})=>{const g=i(null),p=t(n,r,g);return n||p?e("div",{className:("itd-game-settings inn-mobile-gameplay-game-settings "+c).trim(),"data-state":n?"open":"closing",children:[a("div",{className:"itd-game-settings-overlay inn-mobile-gameplay-game-overlay",onClick:d?r:void 0,"aria-hidden":!0}),e("div",{ref:g,className:"itd-game-settings-panel inn-mobile-gameplay-game-content",role:"dialog","aria-modal":"true","aria-label":m??"Oyun ayarları",children:[e("div",{className:"itd-game-settings-head",children:[null!=m&&a("span",{className:"itd-game-settings-title",children:m}),a("button",{type:"button",className:"itd-game-settings-close","aria-label":"Kapat",onClick:r,children:a(s,{})})]}),a("div",{className:"itd-game-settings-menu inn-mobile-gameplay-game-settings-menu",children:o.map(i=>e(l,{variant:"custom",size:"large",disabled:i.disabled,className:"itd-game-settings-item","data-action":i.id,onClick:i.onSelect,children:[null!=i.icon&&a("span",{className:"itd-game-settings-item-icon","aria-hidden":!0,children:i.icon}),a("span",{className:"itd-game-settings-item-label",children:i.label})]},i.id))})]})]}):null};export{n as GameShellSettings,n as default};
@@ -0,0 +1 @@
1
+ import{jsxs as a,jsx as i}from"react/jsx-runtime";import{MoveUp as e,Hand as n,X as s}from"lucide-react";const t=({visible:t,text:l="Tam ekran modu için barı yukarı kaydırın",onDismiss:r,handIcon:m,arrowIcon:c,className:d=""})=>t?a("div",{className:("itd-game-swipe-hint inn-mobile-gameplay-swipe-hint "+d).trim(),role:"status",children:[a("span",{className:"itd-game-swipe-hint-anim","aria-hidden":!0,children:[i("span",{className:"itd-game-swipe-hint-arrow",children:c??i(e,{})}),i("span",{className:"itd-game-swipe-hint-hand",children:m??i(n,{})})]}),i("span",{className:"itd-game-swipe-hint-pill",children:l}),r&&i("button",{type:"button",className:"itd-game-swipe-hint-close","aria-label":"Kapat",onClick:r,children:i(s,{})})]}):null;export{t as GameShellSwipeHint,t as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useRef as l,useEffect as t}from"react";import{Cherry as i,Settings as n,Star as o,RotateCcw as s,Trophy as r,ToggleLeft as c,Minimize as d,Maximize as m,X as p,Info as h}from"lucide-react";import g from"../../button/index.js";import u from"../../spin/index.js";import{Tooltip as y}from"../../tooltip/Tooltip.js";import{TooltipTrigger as k}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as b}from"../../tooltip/TooltipContent.js";import{GetPlatform as f}from"../../helpers/platform/index.js";import{PlatformTypes as v}from"../../helpers/classname/GetClassNameByPlatform.js";const N=({base:l,title:t,content:i,layout:n,gameType:o,settingsOpen:s,notice:r,loading:c,className:d="",style:m})=>a("div",{className:("itd-game-shell-stage "+l+"-game-frame "+d).trim(),"data-layout":n,"data-game-type":o,"data-settings":s?"open":"closed",style:m,children:["iframe"===i?.kind&&e("iframe",{className:"itd-game-shell-frame",src:i.src,title:t??"Game",allow:i.allow??"autoplay; screen-wake-lock",allowFullScreen:i.allowFullScreen}),"node"===i?.kind&&e("div",{className:"itd-game-shell-mount",children:i.node}),r&&a("div",{className:"itd-game-shell-notice "+l+"-notice","data-tone":r.tone??"error",role:"status",children:[e("span",{className:"itd-game-shell-notice-disc","aria-hidden":!0,children:e("span",{className:"itd-game-shell-notice-badge",children:r.icon??("error"===(r.tone??"error")?e(p,{}):e(h,{}))})}),a("div",{className:"itd-game-shell-notice-text",children:[e("span",{className:"itd-game-shell-notice-title",children:r.title}),null!=r.description&&e("p",{className:"itd-game-shell-notice-desc",children:r.description})]}),r.action&&e(g,{variant:r.action.variant??"default",size:"large",className:"itd-game-shell-notice-action",onClick:r.action.onClick,children:r.action.label}),null!=r.detail&&a("details",{className:"itd-game-shell-notice-detail",children:[e("summary",{children:"Detay"}),e("div",{children:r.detail})]})]}),c&&e("div",{className:"itd-game-shell-loading",role:"status","aria-label":"Yükleniyor",children:e(u,{size:28})})]}),w=({icon:l,label:t,tooltip:i,active:n,disabled:o,onClick:s,extraClass:r})=>{const c=e(g,{size:"icon",variant:n?"default":"filled",className:("itd-game-shell-tool "+(r??"")).trim(),disabled:o,"aria-label":t,"aria-pressed":n,onClick:s,children:l});if(null==i)return c;const d=o?e("span",{className:"itd-game-shell-tool-wrap",children:c}):c;return a(y,{openDelay:1e3,children:[e(k,{asChild:!0,children:d}),e(b,{placement:"top",children:i})]})},C=({title:o,content:s,layout:r="fit",loading:c=!1,notice:d,depositText:m="Para Yatır",onDeposit:p,onBrowse:h,onSettings:u,browseIcon:y,settingsIcon:k,gameType:b,fullscreenRunway:f=!1,settingsOpen:v=!1,children:C,className:T=""})=>{const E=l(null);return t(()=>{if(!f)return;const e=E.current,a=e?.ownerDocument,l=a?.defaultView;if(!e||!a||!l)return;const t=a.documentElement,i=t.style.height,n=t.style.getPropertyValue("scrollbar-width");t.style.height="calc(100% + 10rem)",t.style.setProperty("scrollbar-width","none");const o=l.visualViewport;let s=!1;const r=()=>{const a=!!o&&(l.matchMedia("(orientation: landscape)").matches?Math.min(l.screen.width,l.screen.height):Math.max(l.screen.width,l.screen.height))-o.height<=24;a!==s&&(s=a,e.dataset.runway=a?"fullscreen":"ready",a||l.scrollTo({top:0,behavior:"smooth"}))};return e.dataset.runway="ready",r(),o?.addEventListener("resize",r),l.addEventListener("orientationchange",r),()=>{o?.removeEventListener("resize",r),l.removeEventListener("orientationchange",r),delete e.dataset.runway,t.style.height=i,t.style.setProperty("scrollbar-width",n)}},[f]),a("section",{ref:E,id:"inn-mobile-gameplay",className:("itd-game-shell inn-mobile-gameplay-shell "+T).trim(),children:[a("div",{className:"itd-game-shell-toolbar inn-mobile-gameplay-toolbar",children:[null!=o&&e("span",{className:"itd-game-shell-name inn-mobile-gameplay-name",children:o}),a("span",{className:"itd-game-shell-actions",children:[p&&e(g,{size:"medium",className:"itd-game-shell-deposit",onClick:p,children:m}),h&&e(w,{icon:y??e(i,{}),label:"Oyunlar",extraClass:"inn-mobile-gameplay-toolbar-browse",onClick:h}),u&&e(w,{icon:k??e(n,{}),label:"Ayarlar",onClick:u})]})]}),e(N,{base:"inn-mobile-gameplay",title:o,content:s,layout:r,gameType:b,settingsOpen:v,notice:d,loading:c}),C]})},T=({title:l,content:t,layout:i="fit",loading:n=!1,notice:h,depositText:u="Para Yatır",onDeposit:y,gameType:k,onFavorite:b,favoriteActive:f,onReload:v,onToggleWinners:C,winnersShown:T=!1,onFunMode:E,funActive:M,funDisabled:x,onFullscreen:G,fullscreenActive:O,onClose:z,background:F,winnersSlot:j,headerOffset:D,className:P=""})=>{const L=T&&null!=j;return e("section",{id:"inn-gameplay",className:("itd-game-desktop inn-gameplay "+P).trim(),style:D?{"--itd-gameplay-header-offset":D}:void 0,children:a("div",{className:"itd-game-desktop-body inn-gameplay-full-screen","data-winners":L?"true":"false",children:[a("div",{className:"itd-game-desktop-gameplay",children:[a("div",{className:"itd-game-desktop-toolbar inn-gameplay-toolbar",children:[null!=l&&e("span",{className:"itd-game-shell-name inn-gameplay-name",children:l}),a("span",{className:"itd-game-shell-actions",children:[y&&e(g,{size:"small",className:"itd-game-shell-deposit",onClick:y,children:u}),b&&e(w,{icon:e(o,{fill:f?"currentColor":"none"}),label:f?"Favorilerden Çıkar":"Favorilere Ekle",tooltip:f?"Favorilerden Çıkar":"Favorilere Ekle",active:f,extraClass:"itd-game-shell-tool--favorite",onClick:b}),v&&e(w,{icon:e(s,{}),label:"Tekrar Yükle",tooltip:"Tekrar Yükle",onClick:v}),C&&e(w,{icon:e(r,{}),label:"Kazananlar ve Oyun Listesi",tooltip:"Kazananlar ve Oyun Listesi",active:T,onClick:C}),E&&e(w,{icon:e(c,{}),label:x?"Eğlence Modu Desteklenmiyor":M?"Gerçek Para Moduna Geç":"Eğlence Moduna Geç",tooltip:x?"Eğlence Modu Desteklenmiyor":M?"Gerçek Para Moduna Geç":"Eğlence Moduna Geç",active:M,disabled:x,onClick:E}),G&&e(w,{icon:e(O?d:m,{}),label:O?"Tam Ekran Modundan Çık":"Tam Ekran Moduna Geç",tooltip:O?"Tam Ekran Modundan Çık":"Tam Ekran Moduna Geç",active:O,onClick:G}),z&&!O&&e(w,{icon:e(p,{}),label:"Oyunu Kapat",tooltip:"Oyunu Kapat",onClick:z})]})]}),e(N,{base:"inn-gameplay",title:l,content:t,layout:i,gameType:k,notice:h,loading:n,className:"itd-game-desktop-stage",style:F?{backgroundImage:`url(${F})`}:void 0})]}),L&&e("aside",{className:"itd-game-desktop-sidebar inn-gameplay-sidebar",children:j})]})})},E=a=>f()===v.MOBILE?e(C,{...a}):e(T,{...a});export{E as GameShell,E as default};
@@ -0,0 +1 @@
1
+ import{useState as o,useRef as e,useEffect as r}from"react";import{useFocusTrap as t}from"../../hooks/useFocusTrap.js";import s from"../../hooks/useOnESCKeyDown.js";const c=(c,u,i)=>{const[n,m]=o(c),a=e(void 0);return r(()=>c?(clearTimeout(a.current),void m(!0)):(a.current=setTimeout(()=>m(!1),300),()=>clearTimeout(a.current)),[c]),t({isActive:c,containerRef:i,trapFocusOutside:!0,restoreFocus:!0}),s(()=>u?.(),i,{enabled:c}),n};export{c as useDrawerChrome};
@@ -0,0 +1 @@
1
+ import{jsx as s}from"react/jsx-runtime";import{GetClassNameByPlatform as e}from"../../helpers/classname/GetClassNameByPlatform.js";const i=({id:i,category:t,staticGrid:a=!1,columns:r=6,children:m,className:n})=>{const c=e;return s("div",{id:i??c("inn-"+t+"-games-grid-component"),className:n,children:s("section",{id:c("inn-"+t+(a?"-static":"")+"-games-grid"),className:"itd-games-grid",style:{"--itd-games-columns":String(r)},children:m})})};export{i as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as a,Fragment as i}from"react/jsx-runtime";import{useState as n,useEffect as l,useRef as r}from"react";import{Plus as t,Bell as o,EyeOff as s,Eye as d,LogOut as c}from"lucide-react";import m from"../../button/index.js";import{Avatar as h,AvatarImage as u,AvatarFallback as p}from"../../avatar/index.js";import g from"../default-avatar/index.js";import f from"../../skeleton/index.js";import{BlockLink as b}from"../../router/BlockLink.js";import v from"../../select/index.js";import N,{useAmountMask as k}from"../../amount/index.js";import{useITD as C}from"../../context/ITDContext.js";import{GetPlatform as y}from"../../helpers/platform/index.js";import{PlatformTypes as x}from"../../helpers/classname/GetClassNameByPlatform.js";import z from"../../hooks/useOnESCKeyDown.js";import{SelectItem as j}from"../../select/SelectItem.js";const L=({locale:a})=>{const[i,r]=n("");return l(()=>{const e=()=>r((new Date).toLocaleTimeString(a));e();const i=setInterval(e,1e3);return()=>clearInterval(i)},[a]),e("span",{id:"inn-ticker",className:"itd-header-ticker",children:i})},T=({item:n})=>{const l=a(i,{children:[n.icon&&e("span",{className:"itd-header-nav-icon",children:n.icon}),e("span",{children:n.label})]}),r=n.active?"active":void 0;return n.href?e(b,{href:n.href,target:n.target,rel:n.rel,className:r,onClick:n.onClick,children:l}):e("a",{href:"#",className:r,onClick:e=>{e.preventDefault(),n.onClick?.()},children:l})},B=({logoHref:a,id:i,className:n,children:l})=>a?e(b,{href:a,id:i,className:n,children:l}):e("a",{id:i,className:n,href:"#",onClick:e=>e.preventDefault(),children:l}),D=({avatar:i,alt:n,failed:l,onFail:r})=>void 0===i?e(h,{"aria-hidden":!0}):a(h,{"aria-hidden":!0,children:[null!==i&&!l&&e(u,{src:i,alt:n,draggable:!1,onError:r}),e(p,{children:e(g,{})})]}),S=({languages:a,language:i,onLanguageChange:n,compact:l})=>{const{theme:r}=C();return e(v,{variant:l&&"dark"===r?"filled":"default",size:l?"small":"medium",defaultValue:i,onChange:e=>n?.(e),"aria-label":"Dil",children:a.map(a=>e(j,{value:a.value,image:a.image,selectedLabel:l?a.label:void 0,children:l?a.label:a.fullLabel??a.label},a.value))})},w=({logo:t,logoHref:h,nav:u=[],user:p,languages:g=[],language:v,onLanguageChange:C,languageLabel:y="Dil:",showClock:x=!0,locale:j="tr-TR",onLogin:w,onSignup:Y,loginText:E="Giriş Yap",signupText:O="Kayıt Ol",onBonus:H,onDeposit:I,bonusText:P="Bonus Talep",depositText:F="Para Yatır",onNotifications:M,onSignOut:G,signOutText:K="Çıkış Yap",profileMenu:R=[],id:V,className:q})=>{const{masked:A,toggle:J}=k(),Q=r(null),[U,W]=n(!1);l(()=>W(!1),[p?.avatar]);const[X,Z]=n(!1),[$,_]=n(!1),ee=r([]),ae=()=>{ee.current.forEach(clearTimeout),ee.current=[]};z(()=>{ae(),_(!1),Z(!1)},Q,{enabled:X}),l(()=>ae,[]);const ie=e("span",{className:"itd-header-sep header-separator","aria-hidden":!0});return a("header",{ref:Q,id:V??"inn-header",className:"itd-header"+(q?" "+q:""),children:[a("div",{id:"inn-header-top",className:"itd-header-top",children:[e(B,{logoHref:h,id:"inn-header-logo",className:"inn-header-logo itd-header-logo",children:t}),a("div",{className:"itd-header-cluster",children:[a(i,p?{children:[H&&e(m,{size:"small",variant:"outline-accent",onClick:H,children:P}),I&&e(m,{size:"small",variant:"default",onClick:I,children:F})]}:{children:[e(m,{size:"small",variant:"outline-accent",onClick:w,children:E}),e(m,{size:"small",variant:"default",onClick:Y,children:O})]}),g.length>0&&a(i,{children:[ie,e("span",{id:"inn-language-select",className:"itd-header-lang",children:e(S,{languages:g,language:v,onLanguageChange:C,compact:!0})})]}),x&&a(i,{children:[ie,e(L,{locale:j})]}),p&&a(i,{children:[ie,e("span",{id:"inn-balance",className:"itd-header-balance",children:p.balanceLoading?e(f,{className:"itd-header-balance-skeleton"}):a(i,{children:[e(N,{value:p.balance,currency:p.currency}),e(m,{variant:"ghost",className:"itd-header-eye","aria-label":A?"Bakiyeleri göster":"Bakiyeleri gizle",onClick:J,children:e(A?s:d,{size:15})})]})}),ie,a("button",{type:"button",className:"inn-mobile-notifications itd-header-bell","aria-label":"Bildirimler",onClick:M,children:[e(o,{size:16,fill:"currentColor"}),void 0!==p.notifications&&e("span",{className:"itd-header-bell-count",children:p.notifications})]}),a("div",{id:"inn-profile-popover",className:"itd-header-profile",onMouseEnter:()=>{ae(),X?_(!0):(Z(!0),ee.current.push(window.setTimeout(()=>_(!0),10)))},onMouseLeave:()=>{ae(),_(!1),ee.current.push(window.setTimeout(()=>Z(!1),250))},children:[e("div",{id:"inn-profile-photo",className:"itd-header-avatar","data-open":$,children:e(D,{avatar:p.avatar,alt:p.username,failed:U,onFail:()=>W(!0)})}),e("span",{id:"inn-socket-status",className:"itd-header-dot","data-status":p.socketStatus??"connected",title:"Bağlı",children:e("span",{})}),a("div",{className:"inn-profile-popover-body itd-header-pop",style:{opacity:$?1:0,transform:$?"translateY(0)":"translateY(-10px)",transition:"opacity 250ms ease, transform 250ms ease",visibility:X?"visible":"hidden",pointerEvents:X?"auto":"none"},children:[a("div",{className:"inn-profile-popover-user itd-header-pop-user",children:[e("span",{className:"inn-profile-popover-user-photo itd-header-pop-photo",children:e(D,{avatar:p.avatar,alt:p.username,failed:U,onFail:()=>W(!0)})}),a("span",{className:"inn-profile-popover-user-info itd-header-pop-id",children:[e("span",{children:p.username}),p.country&&e("span",{children:p.country})]})]}),e("hr",{className:"itd-header-pop-sep"}),e("div",{className:"inn-profile-popover-menu inn-mobile-menu-items itd-header-pop-menu",children:R.map(i=>i.href?e(m,{asChild:!0,variant:"ghost",size:"default",className:"inn-mobile-menu-item justify-start",children:a(b,{href:i.href,target:i.target,rel:i.rel,onClick:i.onClick,children:[i.icon,i.label]})},i.label):a(m,{variant:"ghost",size:"default",className:"inn-mobile-menu-item justify-start",onClick:i.onClick,children:[i.icon,i.label]},i.label))}),g.length>0&&a(i,{children:[e("hr",{className:"itd-header-pop-sep"}),a("div",{className:"inn-profile-popover-language itd-header-pop-lang",children:[e("span",{children:y}),e(S,{languages:g,language:v,onLanguageChange:C})]})]}),e("hr",{className:"itd-header-pop-sep"}),e("div",{className:"inn-profile-popover-sign-out itd-header-pop-out",children:a(m,{variant:"ghost",size:"default",className:"justify-start",onClick:G,children:[e(c,{size:16}),K]})})]})]})]})]})]}),u.length>0&&e("nav",{id:"inn-header-menu",className:"itd-header-menu",children:e("ul",{className:"itd-header-menu-list header-menu-list",children:u.map(a=>e("li",{className:"itd-header-menu-item header-menu-item",children:e(T,{item:a})},a.label))})})]})},Y=({logo:r,logoHref:s,user:d,onLogin:c,onSignup:h,loginText:u="Giriş Yap",signupText:p="Kayıt Ol",onDeposit:g,onNotifications:b,onProfile:v,id:C,className:y})=>{const{masked:x,toggle:z}=k(),[j,L]=n(!1);return l(()=>L(!1),[d?.avatar]),e("header",{id:C??"inn-mobile-header",className:"itd-mobile-header"+(y?" "+y:""),children:a("div",{id:"inn-mobile-header-top",className:"itd-mobile-header-top",children:[e(B,{logoHref:s,id:"inn-mobile-header-logo",className:"inn-mobile-header-logo itd-mobile-header-logo",children:r}),e("div",{className:"itd-mobile-header-cluster",children:a(i,d?{children:[a("span",{className:"inn-mobile-balance itd-mobile-header-balance",children:[e("button",{type:"button",className:"itd-mobile-header-balance-amount","aria-label":x?"Bakiyeyi göster":"Bakiyeyi gizle",onClick:z,children:d.balanceLoading?e(f,{className:"itd-header-balance-skeleton"}):e(N,{value:d.balance,currency:d.currency})}),e(m,{size:"small",variant:"default","aria-label":"Para Yatır",onClick:g,children:e(t,{size:18})})]}),a("button",{type:"button",className:"inn-mobile-notifications itd-mobile-header-bell","aria-label":"Bildirimler",onClick:b,children:[e(o,{size:16,fill:"currentColor"}),void 0!==d.notifications&&e("span",{className:"itd-mobile-header-bell-count",children:d.notifications})]}),a("button",{type:"button",id:"inn-mobile-profile-photo",className:"itd-mobile-header-avatar","aria-label":"Profil",onClick:v,children:[e(D,{avatar:d.avatar,alt:d.username,failed:j,onFail:()=>L(!0)}),e("span",{id:"inn-socket-status",className:"itd-mobile-header-dot","data-status":d.socketStatus??"connected",title:"Bağlı",children:e("span",{})})]})]}:{children:[e(m,{variant:"custom",size:"medium",className:"itd-mobile-header-login",onClick:c,children:u}),e(m,{size:"medium",className:"itd-mobile-header-signup",onClick:h,children:p})]})})]})})},E=a=>{const i=y()===x.MOBILE;return e(i?Y:w,{...a})};export{E as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useRef as i,useState as n,useLayoutEffect as l}from"react";import r from"../../button/index.js";import a from"../../select/index.js";import s from"../../skeleton/index.js";import o from"../../utils/InlineSVGCached.js";import d from"../post-viewer/index.js";import{GetPlatform as c}from"../../helpers/platform/index.js";import{PlatformTypes as h}from"../../helpers/classname/GetClassNameByPlatform.js";const m=e=>{const t=i(null),[r,a]=n(null);return l(()=>{const i=t.current;if(!i||!e)return;const n=i.ownerDocument,l=n.defaultView;if(!l)return;let r=0;const s=()=>{r=0,a(Math.max(0,Math.round(i.getBoundingClientRect().top+l.scrollY)))},o=()=>{r||(r=l.requestAnimationFrame(s))};s();const d=l.setTimeout(s,100),c=new l.MutationObserver(o);c.observe(n.documentElement,{attributes:!0,attributeFilter:["style"]}),c.observe(n.body,{attributes:!0,attributeFilter:["style"]});const h=void 0!==l.ResizeObserver?new l.ResizeObserver(o):null;return h?.observe(n.body),()=>{l.clearTimeout(d),r&&l.cancelAnimationFrame(r),c.disconnect(),h?.disconnect()}},[e]),{ref:t,top:r}},p=t=>t.icon??(t.iconSrc?e(o,{src:t.iconSrc,className:"itd-help-svg"}):void 0),u=({icon:t})=>t?e("span",{className:"itd-help-nav-icon",children:t}):null,g=({h:t})=>e("span",{className:"itd-help-skeleton-gap",style:{height:t},"aria-hidden":!0}),f=()=>t("div",{className:"itd-help-skeleton",children:[e(s,{width:"100%",height:"1.25rem"}),e(g,{h:"0.625rem"}),e(s,{width:"100%",height:"1.25rem"}),e(g,{h:"1.25rem"}),e(s,{width:"100%",height:"2.5rem"}),e(g,{h:"1.25rem"}),e(s,{width:"100%",height:"2.5rem"}),e(s,{width:"100%",height:"3.75rem"}),e(g,{h:"1.25rem"}),e(s,{width:"100%",height:"2.5rem"}),e(s,{width:"100%",height:"2.5rem"}),e(g,{h:"1.25rem"}),e(s,{width:"100%",height:"1.25rem"}),e(s,{width:"50%",height:"1.25rem"}),e(g,{h:"0.625rem"}),e(s,{width:"100%",height:"1.25rem"})]}),v=({contentLoading:i,blocks:n,emptyTitle:l,emptyText:r})=>e("div",{className:"itd-help-content",children:i?e(f,{}):n&&n.length>0?e(d,{blocks:n}):t("div",{className:"itd-help-empty",children:[e("h3",{children:l}),e("span",{children:r})]})}),b=({title:o,sections:d,activeSlug:g,onSelect:f,loading:b=!1,contentLoading:w=!1,blocks:y,emptyTitle:N="İçerik bulunamadı",emptyText:x="Aradığınız içerik şu anda mevcut değil. Lütfen daha sonra tekrar deneyin.",className:k})=>{const R=c()===h.MOBILE,{ref:j,top:T}=m(!0),{ref:C,top:L}=m(!R),{titleRef:S,railRef:A,hidden:F}=(e=>{const t=i(null),r=i(null),[a,s]=n(!1);return l(()=>{const i=t.current,n=r.current;if(!i||!n||!e)return;const l=i.ownerDocument.defaultView;if(!l)return;let a=0;const o=()=>{a=0,s(n.getBoundingClientRect().top<i.getBoundingClientRect().bottom-1)},d=()=>{a||(a=l.requestAnimationFrame(o))};return o(),l.addEventListener("scroll",d,{passive:!0}),()=>{a&&l.cancelAnimationFrame(a),l.removeEventListener("scroll",d)}},[e]),{titleRef:t,railRef:r,hidden:a}})(!R),B={...null!=T?{"--itd-help-title-top":T+"px"}:null,...null!=L?{"--itd-help-rail-top":L+"px"}:null},E=e(v,{contentLoading:w,blocks:y,emptyTitle:N,emptyText:x});return t("div",R?{className:"itd-help inn-help"+(k?" "+k:""),ref:j,style:B,children:[t("div",{className:"itd-help-top",children:[null!==o&&e("div",{className:"itd-help-title",children:o}),e("nav",{className:"itd-help-picker",children:b?e(s,{width:"100%",height:"2.5rem"}):e(a,{variant:"filled",value:g,image:d.find(e=>e.slug===g)?.iconSrc,onChange:e=>{null!=e&&f?.(String(e))},options:d.map(t=>({value:t.slug,label:t.name,icon:e(u,{icon:p(t)})}))})})]}),e("div",{className:"itd-help-body",children:E})]}:{className:"itd-help inn-help"+(k?" "+k:""),ref:j,style:B,children:[null!==o&&e("div",{className:"itd-help-title",ref:S,"data-hidden":F||void 0,children:o}),t("div",{className:"itd-help-body",ref:C,children:[e("nav",{className:"itd-help-rail",ref:A,children:b?Array.from({length:6},(t,i)=>e(s,{width:"100%",height:"3.125rem"},i)):d.map(i=>t(r,{variant:i.slug===g?"default":"ghost",onClick:()=>f?.(i.slug),children:[e(u,{icon:p(i)}),e("span",{className:"itd-help-nav-label",children:i.name})]},i.slug))}),E]})]})};export{b as default};
@@ -0,0 +1 @@
1
+ import{jsxs as a,jsx as e}from"react/jsx-runtime";import n from"../../image/index.js";import s from"../../skeleton/index.js";const i=({id:i,title:t,winners:r,loading:l,emptyText:d="Kazanan bulunamadı",onSelect:m,className:c})=>{const o=r??[],h="inn-mobile-winners";return a("div",{id:i??h+"-component",className:("itd-last-winners "+h+" "+(c??"")).trim(),children:[null!=t&&""!==t.trim()&&e("div",{className:"itd-last-winners-header "+h+"-header",children:e("span",{className:"title",children:t})}),l?e("div",{className:"itd-last-winners-skeleton "+h+"-skeleton",children:Array.from({length:4},(a,n)=>e(s,{width:"13.5rem",height:"4.625rem",radius:"var(--itd-radius-md)"},n))}):0===o.length?e("div",{className:"itd-last-winners-empty "+h+"-empty",children:d}):e("div",{className:"itd-last-winners-viewport "+h+"-viewport",children:e("div",{className:"itd-last-winners-track "+h+"-track",children:o.map(s=>a("button",{type:"button",className:"itd-last-winners-card "+h+"-card",onClick:m?()=>m(s):void 0,children:[e("span",{className:"itd-last-winners-image "+h+"-card-image","data-shape":"casino"===s.category?"horizontal":"square",children:null!=s.image&&e(n,{src:s.image,alt:s.game})}),a("span",{className:"itd-last-winners-body "+h+"-card-body",children:[e("span",{className:"itd-last-winners-username "+h+"-card-username",children:s.username}),e("span",{className:"itd-last-winners-game "+h+"-card-game-name",children:s.game}),e("span",{className:"itd-last-winners-amount "+h+"-card-amount",children:s.amount})]})]},s.id))})})]})};export{i as default};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{Children as o}from"react";import{GetClassNameByPlatform as e}from"../../helpers/classname/GetClassNameByPlatform.js";const r={1:"one",2:"two",3:"three",4:"four",6:"six",8:"eight"},s=({id:s,children:a,columns:l,gap:n,className:i})=>{const m=o.count(a),c=r[m]??String(m),u={"--itd-layout-columns":String(l??(8===m?4:m)),...n?{"--itd-layout-gap":n}:null};return t("div",{id:s??e("inn-"+c+"-layout-boxes-component"),className:"itd-layout-boxes"+(i?" "+i:""),style:u,children:a})};export{s as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as i,Fragment as n}from"react/jsx-runtime";import{forwardRef as l,useState as r,useRef as t,useEffect as a,useMemo as o}from"react";import s from"../../form/index.js";import{Field as d}from"../../field/index.js";import c from"../../input/index.js";import m from"../../code-input/index.js";import h from"../../checkbox/index.js";import u from"../../button/index.js";import{Tabs as p}from"../../tabs/Tabs.js";import{TabsList as g}from"../../tabs/TabsList.js";import{TabsTrigger as f}from"../../tabs/TabsTrigger.js";import"../../tabs/TabsContent.js";import{InputTypes as b}from"../../types/InputProps.js";import{usePhoneCountry as v}from"../../helpers/phone/usePhoneCountry.js";import{isPhoneComplete as C,toE164 as w}from"../../helpers/phone/index.js";import k from"../../form/group/Group.js";import y from"../../form/control/Control.js";const N=l(({identifier:l="username",identifiers:N,onIdentifierChange:x,country:j,logo:z,banner:S,onClose:I,closeLabel:M="Kapat",channel:P=null,allowPassword:T=!1,step:D="credentials",username:H="",cooldownUntil:L=null,loading:B=!1,codeLength:A=6,codeError:E,identifierIcon:V,passwordIcon:q,alternates:F,onAlternate:R,variant:W="form",onPasskey:G,onChangeMethod:K,onCreateAccount:O,texts:U,onSubmitCredentials:X,onSubmitCode:J,onResend:Q,onChangeIdentifier:Y,onForgotPassword:Z,onContactSupport:$,className:_=""},ee)=>{const ie=!!N&&N.length>1,[ne,le]=r(()=>ie&&!N.includes(l)?N[0]:l),re=ie?ne:l,te=v("phone"===re?j:null),ae=t(null),[oe,se]=r(!1),[de,ce]=r(""),[me,he]=r(""),[ue,pe]=r(""),ge=(e=>{const i=e?new Date(e).getTime():0,[n,l]=r(()=>Date.now());a(()=>{if(!i||i<=Date.now())return;l(Date.now());const e=setInterval(()=>l(Date.now()),1e3);return()=>clearInterval(e)},[i]);const t=Math.max(0,i-n),o=Math.ceil(t/1e3),s=e=>String(e).padStart(2,"0");return{active:t>0,label:s(Math.floor(o/60))+":"+s(o%60)}})(L),fe="code"===D,be="link-sent"===D,ve="passkey"===W&&!fe&&!be,Ce=T&&!!H&&!fe&&!be,we=!fe&&!be&&(null===P||T),ke="phone"===re;a(()=>{fe||ce("")},[fe]),a(()=>{E&&ae.current?.setError?.(E)},[E]);const ye=fe?U.submitVerify??U.submit:we?U.submit:U.submitContinue??U.submit,Ne=!!Ce||(ke?C(te,me):me.trim().length>0),xe=fe?de.length!==A||B:!oe||!Ne||we&&0===ue.length||B,je=o(()=>U.welcomeBack&&H?U.welcomeBack.replace("{username}",H).replace("{{username}}",H):null,[U.welcomeBack,H]),ze=U.identifierPlaceholders?.[re]??U.identifier,Se=e(d,ke?{name:"username",rules:[{required:!0},{validator:e=>C(te,String(e??""))}],children:e(c,{type:b.TEL,size:"x-large",inputMode:"numeric",autoComplete:"tel-national",mask:te?.mask??null,placeholder:ze,onChange:e=>he(String(e??"")),addonBefore:V,prefix:e("span",{className:"itd-login-dial",children:te?.code})})}:{name:"username",rules:[{required:!0}],children:e(c,{type:"email"===re?b.EMAIL:b.TEXT,size:"x-large",autoComplete:"email"===re?"email":"username",placeholder:ze,addonBefore:V,onChange:e=>he(String(e??""))})},re),Ie=F&&F.length>0&&!fe&&!be?i(n,{children:[e("div",{className:"itd-login-or",role:"separator",children:U.orDivider?e("span",{children:U.orDivider}):null}),e("div",{className:"itd-login-alternates",children:F.map(e=>i(u,{variant:"solid",size:"large",disabled:B,onClick:()=>R?.(e.id),children:[e.icon,e.label]},e.id))})]}):null;return i("div",{className:"itd-login"+(_?" "+_:""),children:[z||I?i("div",{className:"itd-login-topbar",children:[e("span",{className:"itd-login-logo",children:z}),I?e(u,{variant:"ghost",size:"icon",className:"itd-login-close","aria-label":M,onClick:I,children:e("svg",{viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":"true",children:e("path",{d:"M18 6 6 18M6 6l12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}):null]}):null,S?e("div",{className:"itd-login-banner",children:S}):null,i("div",{className:"itd-login-body"+(fe?" itd-login-verify":""),children:[i("div",{className:"itd-login-intro",children:[fe||be?je?e("span",{className:"itd-login-eyebrow",children:je}):null:U.description?e("span",{className:"itd-login-eyebrow",children:U.description}):null,e("span",{className:"itd-login-title",children:fe?U.titleVerify??U.title:be?U.titleLinkSent??U.title:U.title})]}),e("div",{className:"itd-login-rule"}),fe&&U.codeHint?e("p",{className:"itd-login-hint",children:U.codeHint}):null,be&&U.linkSentHint?e("p",{className:"itd-login-hint",children:U.linkSentHint}):null,ve?i(n,{children:[U.passkeyHint?e("p",{className:"itd-login-hint",children:U.passkeyHint}):null,e(u,{type:"button",size:"x-large",loading:B,onClick:G,style:{width:"100%"},children:U.passkeyCta??U.submit}),Ie]}):be?null:fe?i("div",{className:"itd-login-code",children:[e(m,{ref:ae,size:"x-large",length:A,value:de,onChange:ce,autoFocus:!0,"aria-label":U.titleVerify??U.title}),e(u,{type:"button",size:"x-large",loading:B,disabled:xe,onClick:()=>{de.length!==A||B||J?.(de)},style:{width:"100%"},children:ye})]}):i(n,{children:[ie&&!Ce?e(p,{value:re,onValueChange:e=>(e=>{e!==ne&&(le(e),he(""),x?.(e))})(e),variant:"filled",className:"itd-login-tabs",children:e(g,{"aria-label":U.title,children:N.map(i=>e(f,{value:i,children:U.identifierTabs?.[i]??i},i))})}):null,i(s,{name:"sign-in",ref:ee,onFinish:e=>{const i=String(e.username??(Ce?H:""));X?.({username:ke&&!Ce?w(te,i):i,...we?{password:String(e.password??"")}:{},remember:!!e.remember})},onValidated:se,children:[i(k,{gap:12,children:[Ce?i("div",{className:"itd-login-identity",children:[e("span",{className:"itd-login-identity-value",children:H}),U.changeIdentifier?e(u,{variant:"ghost",size:"small",onClick:Y,disabled:B,children:U.changeIdentifier}):null]}):Se,we?e(d,{name:"password",rules:[{required:!0}],children:e(c,{type:b.PASSWORD,size:"x-large",autoComplete:"current-password",placeholder:U.password,addonBefore:q,onChange:e=>pe(String(e??""))})}):null,U.rememberMe?e(d,{name:"remember",children:e(h,{children:U.rememberMe})}):null]}),e(y,{children:e(u,{type:"submit",size:"x-large",loading:B,disabled:xe,style:{width:"100%"},children:ye})})]}),Ie]}),e("div",{className:"itd-login-actions",children:fe||be?i(n,{children:[ge.active?e("span",{className:"itd-login-countdown",children:ge.label}):U.resendCode?e(u,{variant:"filled",size:"medium",onClick:Q,disabled:B,children:U.resendCode}):null,be&&U.changeMethod?e(u,{variant:"ghost",size:"medium",onClick:K,disabled:B,children:U.changeMethod}):null,!be&&U.changeIdentifier?e(u,{variant:"ghost",size:"medium",onClick:Y,disabled:B,children:U.changeIdentifier}):null]}):!ve&&U.forgotPassword?e(u,{variant:"ghost",size:"medium",onClick:Z,children:U.forgotPassword}):null}),!U.newHere||!U.createAccount||fe||be||Ce||ve?null:i("div",{className:"itd-login-footer",children:[e("span",{className:"itd-login-footer-note",children:U.newHere}),e(u,{variant:"ghost",size:"medium",onClick:O,disabled:B,children:U.createAccount})]}),U.support?e("div",{className:"itd-login-support",children:e(u,{variant:"solid",size:"large",onClick:$,style:{width:"100%"},children:U.support})}):null]})]})});N.displayName="LoginPanel";export{N as LoginPanel,N as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as n,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as m}from"react";import{CSSTransition as t}from"react-transition-group";import{ChevronDown as l,ChevronRight as r}from"lucide-react";import d from"../../select/index.js";import o from"../../skeleton/index.js";import{BlockLink as s}from"../../router/BlockLink.js";import{useScrollLock as c}from"../../primitives/scrollLock.js";import u from"../../hooks/useOnESCKeyDown.js";import{SelectItem as g}from"../../select/SelectItem.js";const h=({icon:n})=>n?e("span",{className:"itd-mega-menu-icon inn-mega-menu-icon inn-mobile-mega-menu-item-icon",children:n}):null,p=({link:a,className:m,trailing:t})=>{const l=n(i,{children:[e(h,{icon:a.icon}),e("span",{className:"itd-mega-menu-label inn-mega-menu-label",children:a.label}),null!=a.badge&&e("span",{className:"itd-mega-menu-badge inn-mega-menu-badge",children:a.badge}),t]}),r={className:(m+(a.active?" is-active":"")).trim(),"data-active":a.active?"true":void 0};return a.href?e(s,{...r,href:a.href,target:a.target,rel:a.rel,onClick:a.onClick,children:l}):e("button",{type:"button",...r,onClick:a.onClick,children:l})},b=e=>new Set(e.filter(e=>"accordion"===e.kind&&e.defaultOpen).map(e=>e.id)),v=({entries:i=[],className:s="",loading:v=!1,skeletonCount:k=10,open:f,onOpenChange:N,closeOnEscape:C=!0,id:E})=>{const[j,w]=a(()=>b(i)),x=m(null),L=void 0!==f;c(!0===f,x),u(()=>{C&&N?.(!1)},x,{enabled:!0===f});const O=e("nav",{id:L?"inn-mobile-mega-menu-content-items":void 0,className:("itd-mega-menu inn-mega-menu "+s).trim(),"aria-label":"Menü",children:v?e("div",{className:"itd-mega-menu-skeletons","aria-hidden":!0,children:Array.from({length:k}).map((n,i)=>e(o,{className:"itd-mega-menu-skeleton",height:"2.75rem"},i))}):i.map(i=>{if("accordion"===i.kind){const a=j.has(i.id);return n("div",{className:"itd-mega-menu-item itd-mega-menu-item--accordion inn-mega-menu-item inn-mobile-mega-menu-group","data-open":a?"true":"false",children:[n("div",{className:"itd-mega-menu-head inn-mega-menu-item-head inn-mobile-mega-menu-item",children:[e(p,{link:{label:i.label,icon:i.icon,href:i.href,target:i.target,rel:i.rel,onClick:i.onClick,active:i.active},className:"itd-mega-menu-head-main inn-mega-menu-item-link"}),e("button",{type:"button",className:"itd-mega-menu-toggle inn-mega-menu-item-toggle","aria-expanded":a,"aria-label":a?"Kapat":"Aç",onClick:()=>(e=>w(n=>{const i=new Set(n);return i.has(e)?i.delete(e):i.add(e),i}))(i.id),children:e("span",{className:"itd-mega-menu-toggle-icon","aria-hidden":!0,children:e(l,{})})})]}),e("div",{className:"itd-mega-menu-collapse inn-mega-menu-sub",children:e("div",{className:"itd-mega-menu-collapse-inner",children:i.items.map(n=>e(p,{link:n,className:"itd-mega-menu-subitem inn-mega-menu-sub-item inn-mobile-mega-menu-sub-menu-item"},n.id))})})]},i.id)}return"group"===i.kind?n("div",{className:"itd-mega-menu-item itd-mega-menu-item--group inn-mega-menu-item inn-mega-menu-group inn-mobile-mega-menu-group"+(i.label?" open-group":""),children:[i.label?n("div",{className:"itd-mega-menu-grouphead inn-mega-menu-group-head",children:[e(h,{icon:i.icon}),e("span",{className:"itd-mega-menu-label inn-mega-menu-label",children:i.label})]}):null,i.items.map(n=>e(p,{link:n,className:"itd-mega-menu-groupitem inn-mega-menu-group-item inn-mobile-mega-menu-sub-menu-item"},n.id))]},i.id):"select"===i.kind?e("div",{className:"itd-mega-menu-item itd-mega-menu-item--select inn-mega-menu-item",children:e(d,{size:"large",className:"itd-mega-menu-select"+(i.arrowWell?" itd-mega-menu-select--well":""),defaultValue:i.defaultValue,onChange:e=>i.onChange?.(e),"aria-label":i.ariaLabel,children:i.options.map(n=>e(g,{value:n.value,image:n.image,children:n.label},n.value))})},i.id):e("div",{className:"itd-mega-menu-item itd-mega-menu-item--link inn-mega-menu-item inn-mobile-mega-menu-group",children:e(p,{link:{label:i.label,icon:i.icon,href:i.href,target:i.target,rel:i.rel,onClick:i.onClick,active:i.active,badge:i.badge},className:"itd-mega-menu-link inn-mega-menu-link inn-mobile-mega-menu-item",trailing:e("span",{className:"itd-mega-menu-chevron inn-mega-menu-chevron","aria-hidden":!0,children:e(r,{})})})},i.id)})});return L?e(t,{in:f,appear:!0,mountOnEnter:!0,unmountOnExit:!0,timeout:250,classNames:"itd-mega-menu-drawer",nodeRef:x,onExited:()=>w(b(i)),addEndListener:e=>{const n=x.current?.firstElementChild;if(!n)return;const i=a=>{a.target===n&&(n.removeEventListener("transitionend",i),e())};n.addEventListener("transitionend",i)},children:e("div",{ref:x,id:E??"inn-mobile-mega-menu",className:"itd-mega-menu-drawer",children:e("div",{id:"inn-mobile-mega-menu-content",className:"itd-mega-menu-slide",children:O})})}):O};export{v as MegaMenu,v as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,Fragment as i,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as r,useEffect as a}from"react";import{PlatformTypes as d}from"../../helpers/classname/GetClassNameByPlatform.js";import{GetPlatform as s}from"../../helpers/platform/index.js";import{realmOf as m}from"../../hooks/useRealm.js";const c=({id:c,minWidth:o=800,hysteresis:h=20,icon:l,title:p="The window is too narrow",description:w="Widen the window, or continue on the mobile platform.",children:f,className:g})=>{const[u,v]=n(!1),N=r(null);return a(()=>{const e=m(N.current).win;if(!e)return;if(s()===d.MOBILE)return;const i=e.matchMedia("(max-width: "+(o-1)+"px)"),t=e.matchMedia("(min-width: "+(o+h)+"px)"),n=()=>v(e=>!!i.matches||!t.matches&&e);return n(),i.addEventListener("change",n),t.addEventListener("change",n),()=>{i.removeEventListener("change",n),t.removeEventListener("change",n)}},[o,h]),e(i,{children:[t("span",{ref:N,hidden:!0,"aria-hidden":!0}),u&&t("div",{id:c??"inn-min-width-gate",className:"itd-min-width-gate"+(g?" "+g:""),role:"alert",children:t("div",{className:"itd-min-width-gate-card",children:f??e(i,{children:[l&&t("span",{className:"itd-min-width-gate-icon","aria-hidden":!0,children:l}),t("strong",{className:"itd-min-width-gate-title",children:p}),t("span",{className:"itd-min-width-gate-desc",children:w})]})})})]})};export{c as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useMemo as i}from"react";import{BlockLink as r}from"../../router/BlockLink.js";import{GetClassNameByPlatform as t}from"../../helpers/classname/GetClassNameByPlatform.js";import n from"../../skeleton/index.js";const l=({id:l,items:o,activeId:m,open:s=!0,loading:c=!1,skeletonCount:d=5,onSelect:u,ariaLabel:b="Menu",className:h})=>{const p=i(()=>t("inn-menu"),[]);return e("nav",{id:l??p,className:"itd-mobile-bottom-nav"+(h?" "+h:""),"data-open":s?"true":"false","aria-label":b,children:e("div",c?{className:"itd-mobile-bottom-nav-skeletons","aria-hidden":!0,children:Array.from({length:d}).map((a,i)=>e(n,{height:52},i))}:{className:"inn-mobile-menu-items",children:o.map(i=>{const t=i.active??(null!=m&&i.id===m),n="inn-mobile-menu-item"+(t?" active":""),l=()=>{i.onSelect?.(),u?.(i)},o=a("div",{children:[i.icon,e("span",{children:i.label})]});return null!=i.href?e(r,{href:i.href,target:i.target,className:n,"aria-current":t?"page":void 0,"aria-label":i.ariaLabel,onClick:l,children:o},i.id):e("button",{type:"button",className:n,"aria-current":t?"page":void 0,"aria-label":i.ariaLabel,onClick:l,children:o},i.id)})})})};export{l as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,Fragment as r}from"react/jsx-runtime";import t,{createContext as i,useState as o,useRef as n,useEffect as s,useContext as l}from"react";import{ScrollMenu as a,VisibilityContext as c}from"react-horizontal-scrolling-menu";import{ChevronRight as d,ChevronLeft as u}from"lucide-react";import h from"../../button/index.js";import{useIntersectionObserver as b}from"usehooks-ts";import{GetClassNameByPlatform as m}from"../../helpers/classname/GetClassNameByPlatform.js";const p=i(!0),g=({children:t})=>e(r,{children:t});class f{constructor(){Object.defineProperty(this,"clicked",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragging",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"position",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.position=e.clientX,this.clicked=!0;const r=e.target?.ownerDocument;this.docs=r&&r!==document?[r,document]:[document],this.docs.forEach(e=>e.addEventListener("pointerup",this.onMouseUp))}}),Object.defineProperty(this,"onMouseUp",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.docs.forEach(e=>e.removeEventListener("pointerup",this.onMouseUp)),this.docs=[],this.dragging=!1,this.clicked=!1}}),Object.defineProperty(this,"dragStop",{enumerable:!0,configurable:!0,writable:!0,value:()=>{window.requestAnimationFrame(()=>{this.dragging=!1,this.clicked=!1})}}),Object.defineProperty(this,"dragMove",{enumerable:!0,configurable:!0,writable:!0,value:(e,r)=>{const t=this.position-e.clientX,i=Math.abs(t)>5;this.clicked&&i&&(this.dragging=!0),this.dragging&&i&&(this.position=e.clientX,r(t))}}),this.clicked=!1,this.dragging=!1,this.position=0}}function v(e,r){0!==Math.abs(r.deltaX)||Math.abs(r.deltaY)<15?r.stopPropagation():r.deltaY>0?e.scrollNext():e.scrollPrev()}const w=({children:r,disabled:t,className:i,label:o,onClick:n})=>e(h,{variant:"custom",className:"arrow-"+i,"data-disabled":t,disabled:t,"aria-label":o,onClick:n,children:r}),k=()=>{const r=l(c),t=r.useIsVisible("first",!0),i=l(p),[n,a]=o(t);return s(()=>{i&&a(t)},[i,t]),e(w,{className:"left",label:"Önceki seviyeler",disabled:n,onClick:()=>r.scrollPrev(),children:e("div",{className:"icon-wrapper",children:e(u,{})})})},j=()=>{const r=l(c),t=r.useIsVisible("last",!1),i=l(p),[n,a]=o(t);return s(()=>{i&&a(t)},[i,t]),e(w,{className:"right",label:"Sonraki seviyeler",disabled:n,onClick:()=>r.scrollNext(),children:e("div",{className:"icon-wrapper",children:e(d,{})})})},M=({children:r})=>{const{isIntersecting:i,ref:l}=b({threshold:.5}),[c,d]=o(0),u=n(null);s(()=>{const e=u.current;if(!e)return;let r=e.clientWidth,t=0;const i=new ResizeObserver(()=>{const i=e.clientWidth;i!==r&&(r=i,window.clearTimeout(t),t=window.setTimeout(()=>d(e=>e+1),150))});return i.observe(e),()=>{window.clearTimeout(t),i.disconnect()}},[]);const h=n(new f),g=t.useCallback(()=>h.current.dragStart,[h]),w=t.useCallback(()=>h.current.dragStop,[h]);return e("div",{ref:e=>{u.current=e,l(e)},className:"itd-jackpot-tiers-strip "+m("inn-multiple-jackpots-carousel-multiple-tiers"),children:e(p.Provider,{value:i,children:e(a,{LeftArrow:k,RightArrow:j,onMouseDown:g,onMouseUp:w,onMouseMove:({scrollContainer:e})=>r=>h.current.dragMove(r,r=>{e.current&&(e.current.scrollLeft+=r)}),onWheel:v,options:{ratio:.9,rootMargin:"5px",threshold:[.01,.05,.5,.75,.95,1]},children:r},c)})})};export{p as OnScreenContext,g as TierItem,M as default};
@@ -0,0 +1 @@
1
+ import{jsx as a,jsxs as t,Fragment as e}from"react/jsx-runtime";import{useMemo as n,useState as i,useRef as o,useEffect as s}from"react";import l from"../../_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js";import r from"../../_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";import{Gamepad2 as c,ChevronUp as m,ChevronDown as p,Trophy as d,Medal as u,Calendar as k,User as j}from"lucide-react";import h from"../../button/index.js";import b from"../../image/index.js";import N from"../../skeleton/index.js";import{useModal as g}from"../../modal/index.js";import{useModalContent as w}from"../../modal/useModalContent.js";import f from"../game-box/index.js";import{GetClassNameByPlatform as x,PlatformTypes as v}from"../../helpers/classname/GetClassNameByPlatform.js";import{GetPlatform as y}from"../../helpers/platform/index.js";import C from"../embla/useEmblaState.js";import W,{TierItem as O}from"./TierCarousel.js";const B=a=>new Intl.NumberFormat("tr-TR",{style:"currency",currency:"TRY",minimumFractionDigits:2,maximumFractionDigits:2}).format(a),A=({amount:t,format:e,className:n})=>{const l=(a=>{const[t,e]=i(0),n=o(0);return s(()=>{const t=performance.now(),i=o=>{const s=Math.min((o-t)/750,1);e(a*s),s<1&&(n.current=requestAnimationFrame(i))};return n.current=requestAnimationFrame(i),()=>cancelAnimationFrame(n.current)},[a]),t})(t);return a("span",{className:n,children:e(l)})},z=({stats:e,format:n,labels:i})=>{const o=(e,i,o)=>t("div",{className:"itd-jackpot-win-box",children:[t("span",{className:"itd-jackpot-win-box-title",children:[e,i]}),a(A,{amount:o?.amount??0,format:n,className:"itd-jackpot-win-box-amount"}),t("span",{className:"itd-jackpot-win-box-meta",children:[t("span",{children:[a(k,{"aria-hidden":!0}),o?.date??"--/--/---- 00:00"]}),t("span",{children:[a(j,{"aria-hidden":!0}),o?.username??"--"]})]})]});return t("div",{className:"itd-jackpot-winners-modal inn-jackpot-winners-modal",children:[o(a(u,{"aria-hidden":!0}),i?.maxWin??"Max Win",e?.maxWin),a("hr",{className:"itd-jackpot-winners-separator"}),o(a(d,{"aria-hidden":!0}),i?.lastWin??"Last Win",e?.lastWin),t("div",{className:"itd-jackpot-total-wins",children:[(i?.totalWins??"Total Wins")+":"," ",a("b",{children:e?.totalWins??0})]})]})},F=({games:t,onOpen:e})=>{const{hideCurrentModal:n}=w();return a("div",{className:"itd-jackpot-games-modal",children:t.map(t=>a(f,{slug:t.slug,image:t.image,name:t.name,background:!1,outline:!1,ratio:"440/310",onPlay:a=>{n?.(),e(a)}},t.id))})},M=({id:i,jackpots:o,loading:s,wordmark:u,texture:k,showWinners:j=!0,showGames:w=!0,autoplay:f=4e3,formatAmount:M=B,onGameOpen:P,labels:T,className:J})=>{const L=x,{showModal:H}=g(),G=n(()=>({axis:"y"}),[]),I=n(()=>!1===f?[]:[r({delay:f})],[f]),[S,q]=l(G,I),{selected:D,canPrev:E,canNext:K}=C(q),R=o??[],_=R[D]??R[0],U=a=>{q&&(q.plugins().autoplay?.stop(),"prev"===a?q.scrollPrev():q.scrollNext())},Y=()=>{const t=_?.games??[];H({title:T?.gamesTitle??"Jackpot Oyunları",className:"jackpot-games-modal",width:y()===v.MOBILE?"100%":"61.875rem",showCloseButton:!0,showOkButton:!1,showCancelButton:!1,content:a(F,{games:t,onOpen:a=>P?.(a)})})},$=e=>j||w?t("span",{className:"itd-jackpot-tier-buttons "+L("inn-multiple-jackpots-carousel-multiple-tier-buttons"),children:[j&&a(h,{size:"icon",variant:"solid",className:"itd-jackpot-round itd-jackpot-round--xs "+L("inn-multiple-jackpots-carousel-button")+" "+L("inn-multiple-jackpots-carousel-button--winners"),"aria-label":T?.winners??"Kazananlar",onClick:()=>(t=>{H({className:"itd-jackpot-winners-host jackpot-winners-modal",width:"25rem",contentPadding:"0",showCloseButton:!0,showOkButton:!1,showCancelButton:!1,content:a(z,{stats:t,format:M,labels:T})})})(e),children:a(d,{})}),w&&a(h,{size:"icon",variant:"solid",className:"itd-jackpot-round itd-jackpot-round--xs itd-jackpot-tier-games "+L("inn-multiple-jackpots-carousel-button")+" "+L("inn-multiple-jackpots-carousel-button--games"),"aria-label":T?.games??"Jackpot Oyunları",onClick:Y,children:a(c,{})})]}):null,Q=a=>a.name.toUpperCase()+(T?.tierSuffix??" JACKPOT"),V=k?{"--itd-jackpot-texture":`url("${k}")`}:void 0;return a("div",{id:i??L("inn-multiple-jackpots-component"),className:("itd-jackpots "+(J??"")).trim(),style:V,children:s?t("div",{className:"itd-jackpot-loading",children:[a(N,{height:"5rem",width:"16.3125rem",count:1}),a(N,{height:"5rem",width:"16.3125rem",count:1})]}):0===R.length?a("div",{className:"itd-jackpot-empty "+L("inn-multiple-jackpots-not-found"),children:a("span",{children:T?.empty??"Jackpot bulunamadı!"})}):t("section",{className:"itd-jackpot-carousel "+L("inn-multiple-jackpots-carousel"),children:[a("div",{className:"itd-jackpot-viewport "+L("inn-multiple-jackpots-carousel-viewport"),ref:S,children:a("div",{className:"itd-jackpot-container "+L("inn-multiple-jackpots-carousel-container"),children:R.map(e=>{const n=1===e.tiers.length;return t("div",{className:"itd-jackpot-slide "+L("inn-multiple-jackpots-carousel-slide"),children:[t("span",{className:"itd-jackpot-brand "+L("inn-multiple-jackpots-carousel-title-and-provider"),children:[null!=e.providerLogo&&a(b,{className:L("inn-multiple-jackpots-carousel-provider-icon"),src:e.providerLogo,alt:e.name,brokenWidth:66,brokenHeight:33}),null!=u&&a(b,{className:L("inn-multiple-jackpots-carousel-jackpot-text"),src:u,alt:"jackpot",brokenWidth:48,brokenHeight:12})]}),a("span",{className:"itd-jackpot-separator "+L("inn-multiple-jackpots-carousel-separator")}),a("span",{className:"itd-jackpot-art",children:null!=e.gameArt&&a(b,{className:L("inn-multiple-jackpots-carousel-jackpot-icon"),src:e.gameArt,alt:e.name,brokenWidth:55,brokenHeight:55})}),a("span",{className:"itd-jackpot-spacer "+L("inn-multiple-jackpots-carousel-spacer")}),n?t("span",{className:"itd-jackpot-single "+L("inn-multiple-jackpots-carousel-single-tier"),children:[a("span",{className:"itd-jackpot-tier-name "+L("inn-multiple-jackpots-carousel-single-tier-name"),children:Q(e.tiers[0])}),a(A,{amount:e.tiers[0].amount,format:M,className:"itd-jackpot-single-amount "+L("inn-multiple-jackpots-carousel-single-tier-amount")}),$(e.tiers[0].stats)]}):a(W,{children:e.tiers.map(e=>a(O,{itemId:e.id,children:t("span",{className:"itd-jackpot-tier "+L("inn-multiple-jackpots-carousel-multiple-tier"),children:[null!=e.symbol&&a(b,{className:"itd-jackpot-tier-symbol "+L("inn-multiple-jackpots-carousel-multiple-tier-content-tier-image"),src:e.symbol,alt:e.name,brokenWidth:36,brokenHeight:36}),t("span",{className:"itd-jackpot-tier-text "+L("inn-multiple-jackpots-carousel-multiple-tier-content"),children:[a("span",{className:"itd-jackpot-tier-name "+L("inn-multiple-jackpots-carousel-multiple-tier-content-name"),children:Q(e)}),a(A,{amount:e.amount,format:M,className:"itd-jackpot-tier-amount "+L("inn-multiple-jackpots-carousel-multiple-tier-content-amount")+" "+e.name.toLowerCase()})]}),$(e.stats)]})},e.id))}),a("span",{className:"itd-jackpot-spacer "+L("inn-multiple-jackpots-carousel-spacer")})]},e.id)})})}),t("span",{className:"itd-jackpot-controls "+L("inn-multiple-jackpots-carousel-controls"),children:[w&&t(e,{children:[a(h,{size:"icon",variant:"solid",className:"itd-jackpot-round "+L("inn-multiple-jackpots-carousel-controls-games-button"),"aria-label":T?.games??"Jackpot Oyunları",onClick:Y,children:a(c,{})}),a("span",{className:"itd-jackpot-separator itd-jackpot-separator--controls"})]}),t("span",{className:"itd-jackpot-arrows "+L("inn-multiple-jackpots-carousel-buttons"),children:[a(h,{size:"icon",variant:"solid",className:"itd-jackpot-round "+L("inn-multiple-jackpots-carousel-button--prev"),"aria-label":T?.prev??"Önceki jackpot",disabled:!E,onClick:()=>U("prev"),children:a(m,{})}),a(h,{size:"icon",variant:"solid",className:"itd-jackpot-round "+L("inn-multiple-jackpots-carousel-button--next"),"aria-label":T?.next??"Sonraki jackpot",disabled:!K,onClick:()=>U("next"),children:a(p,{})})]})]})]})})};export{M as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useRef as t,useEffect as n,useState as a,useCallback as l}from"react";import{createPortal as r}from"react-dom";import{ChevronLeft as o,Check as s,Trash2 as d}from"lucide-react";import{usePortalDocument as c}from"../../context/PortalDocumentContext.js";import m from"../../button/index.js";import u from"../../select/index.js";import f from"../../skeleton/index.js";import h from"../../spin/index.js";import p from"../../switch/index.js";import{useModal as g}from"../../modal/index.js";import{SelectItem as b}from"../../select/SelectItem.js";const v=({source:e,pageSize:i=15,pushEventName:r="socket-notification-received"})=>{const[o,s]=a([]),[d,c]=a(0),[m,u]=a(!1),[f,h]=a(!1),[p,g]=a(!1),[b,v]=a(!1),[k,N]=a([]),[y,L]=a(""),C=t(1),x=t(!1),j=l((t,n=b,a=k,l)=>{if(x.current)return;x.current=!0,h(!0);const r=t?1:void 0!==l?l+1:C.current,o=r-1+i;e.list({isUnread:n,subjects:a,start:r,end:o}).then(e=>{s(i=>t?e.data:[...i,...e.data]),c(e.totalCount),C.current=r+i}).finally(()=>{x.current=!1,h(!1),u(!0)})},[e,i,b,k]),A=l(()=>j(!0),[j]),T=l(()=>{o.length>=d||j(!1)},[o.length,d,j]),w=l(e=>{v(e),C.current=1,s([]),j(!0,e,k)},[j,k]),z=l(e=>{N(e),C.current=1,s([]),j(!0,b,e)},[j,b]),S=l(i=>{const t=o.find(e=>e.id===i);return!t||t.is_read||p?Promise.resolve(!1):(s(e=>e.map(e=>e.id===i?{...e,is_read:!0}:e)),e.read(i).then(()=>!0,()=>(s(e=>e.map(e=>e.id===i?{...e,is_read:!1}:e)),!1)))},[o,p,e]),O=l(i=>{const t=o.findIndex(e=>e.id===i);if(-1===t||p)return Promise.resolve(!1);const n=o[t],a=o.filter(e=>e.id!==i);return s(a),c(e=>Math.max(0,e-1)),g(!0),e.remove(i).then(()=>(g(!1),a.length<5&&a.length<d-1&&j(!1,void 0,void 0,a.length),!0),()=>(g(!1),s(e=>{const i=[...e];return i.splice(t,0,n),i}),c(e=>e+1),!1))},[o,p,e,d,j]),P=l(()=>{if(p||f)return Promise.resolve(!1);const i=o;return s(e=>e.map(e=>({...e,is_read:!0}))),g(!0),e.readAll().then(()=>(g(!1),!0),()=>(g(!1),s(i),!1))},[o,p,f,e]);return n(()=>{const e=e=>{const i=e.detail;i&&(b&&i.is_read||k.length>0&&!k.includes(i.subject)||(L(i.id),s(e=>[i,...e]),c(e=>e+1)))};return window.addEventListener(r,e),()=>window.removeEventListener(r,e)},[r,b,k]),{items:o,totalCount:d,isLoaded:m,isLoading:f,isUpdating:p,isBusy:f||p||!m,lastPushedId:y,unreadOnly:b,subjects:k,refetch:A,loadMore:T,showUnreadOnly:w,updateSubjects:z,markAsRead:S,deleteNotification:O,markAllAsRead:P}},k=({n:t,entering:n=!1,onRead:a,onDelete:l,deleteLabel:r})=>e("article",{className:"itd-notif-item inn-notification"+(t.is_read?"":" itd-notif-item--unread")+(n?" itd-notif-item--entering":""),onClick:()=>a(t.id),children:[i("div",{className:"itd-notif-date",children:t.date}),i("h5",{className:"itd-notif-title",children:t.title}),i("div",{className:"itd-notif-body",children:t.body}),i("footer",{className:"itd-notif-foot",children:i(m,{variant:"ghost",size:"icon-sm",className:"itd-notif-delete","aria-label":r,onClick:e=>{e.stopPropagation(),l(t.id,e.currentTarget.closest("article"))},children:i(d,{size:14})})}),!t.is_read&&i("span",{className:"itd-notif-dot","aria-hidden":!0})]}),N=({open:l,onClose:d,source:N,filters:y=[],mobile:L=!1,pageSize:C,pushEventName:x,onCountsChange:j,title:A="Bildirimler",allLabel:T="Tüm Bildirimler",multiSelectionLabel:w="Çoklu seçim ({count})",unreadLabel:z="Okunmamışlar",markAllLabel:S="Tümünü Okundu Olarak İşaretle",markAllConfirmTitle:O="Tümünü okundu olarak işaretle",markAllConfirmText:P="{count} bildiriminiz okundu olarak işaretlenecek. Devam edilsin mi?",confirmYesLabel:_="EVET",confirmNoLabel:E="HAYIR",emptyText:R="Gösterilecek bildirim yok.",deleteLabel:B="Bildirimi sil",backLabel:H="Kapat"})=>{const I=v({source:N,pageSize:C,pushEventName:x}),{confirm:U}=g(),D=c(),M=t(null),Y=t(!1);n(()=>{l&&!Y.current&&(Y.current=!0,I.refetch()),l&&M.current&&(M.current.scrollTop=0)},[l]),n(()=>{j?.(I.totalCount)},[I.totalCount]);const G=I.items.filter(e=>!e.is_read).length,K=(e,i)=>{I.isUpdating||(i.style.height=i.offsetHeight+"px",i.offsetHeight,i.classList.add("itd-notif-item--removing"),window.setTimeout(()=>{I.deleteNotification(e).then(e=>{e||(i.classList.remove("itd-notif-item--removing"),i.style.height="")})},300))},[V,q]=a(["all"]),F=V.includes("all")?T+" ("+I.totalCount+")":1===V.length?(y.find(e=>e.value===V[0])?.label??V[0])+" ("+I.totalCount+")":w.replace("{count}",String(V.length));return D?r(e("div",{className:"itd-notifs inn-notifications"+(L?" itd-notifs--mobile inn-mobile-notifications-animator":"")+(l?" itd-notifs--open":""),"aria-hidden":!l,children:[!L&&i("div",{className:"itd-notifs-overlay",onClick:d}),e("aside",{className:"itd-notifs-panel"+(L?" inn-mobile-notifications-animator-content":""),role:"dialog","aria-label":"string"==typeof A?A:void 0,children:[e("header",{className:"itd-notifs-header",children:[i(m,{variant:"solid",size:"icon-sm",className:"inn-mobile-userhub-breadcrumb-back-button","aria-label":H,onClick:d,children:i(o,{size:18})}),i("span",{className:"itd-notifs-title",children:A})]}),i("div",{className:"itd-notifs-filter",children:e(u,{multi:!0,size:"large","aria-label":T,label:F,value:V,onChange:e=>(e=>{const i=V.includes("all");let t;t=0===e.length||e.includes("all")&&!i?["all"]:e.filter(e=>"all"!==e),0===t.length&&(t=["all"]),q(t),I.updateSubjects(t.includes("all")?[]:t.flatMap(e=>y.find(i=>i.value===e)?.subjects??[e]))})(Array.isArray(e)?e:[]),children:[i(b,{value:"all",children:T}),y.map(e=>i(b,{value:e.value,children:e.label+(e.count?" ("+e.count+")":"")},e.value))]})}),e("div",{className:"itd-notifs-scroll notifications-content","data-scroll-area":"true",ref:M,onScroll:()=>{const e=M.current;e&&!I.isLoading&&e.scrollTop+e.clientHeight>e.scrollHeight-200&&I.loadMore()},children:[I.items.map(e=>i(k,{n:e,entering:e.id===I.lastPushedId,onRead:I.markAsRead,onDelete:K,deleteLabel:B},e.id)),I.isLoading&&0===I.items.length&&i("div",{className:"itd-notifs-skels","aria-hidden":!0,children:Array.from({length:5},(e,t)=>i(f,{variant:"rect",height:"17.5rem",radius:"0.375rem"},t))}),I.isLoading&&I.items.length>0&&i("div",{className:"itd-notifs-note",children:i(h,{})}),!I.isLoading&&I.isLoaded&&0===I.items.length&&i("div",{className:"itd-notifs-note",children:R})]}),e("footer",{className:"itd-notifs-footer",children:[e("label",{className:"itd-notifs-unread",children:[i("span",{children:z}),i(p,{checked:I.unreadOnly,disabled:I.isBusy||0===G,onChange:e=>I.showUnreadOnly(e)})]}),G>0&&e(m,{variant:"link",className:"itd-notifs-markall",disabled:I.isBusy,onClick:async()=>{await U({title:O,description:P.replace("{count}",String(G)),okText:_,cancelText:E,closeOnClickOutside:!1})&&I.markAllAsRead()},children:[i(s,{size:14}),S]})]})]})]}),D.body):null};N.displayName="NotificationsPanel";export{N as default,v as useNotificationsFeed};
@@ -0,0 +1 @@
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";const a=t=>({dangerouslySetInnerHTML:{__html:t}}),d=({level:e=2,text:d})=>{const i="h"+Math.min(6,Math.max(1,e));return t(i,{...a(d)})},i=({style:e="unordered",items:d})=>t("ordered"===e?"ol":"ul",{children:d.map((e,d)=>t("li",{...a("string"==typeof e?e:e.content)},d))}),l=({content:d})=>{const[i,...l]=d;return t("div",{className:"itd-post-table-wrap",children:e("table",{children:[t("thead",{children:t("tr",{children:(i||[]).map((e,d)=>t("th",{...a(e)},d))})}),t("tbody",{children:l.map((e,d)=>t("tr",{children:e.map((e,d)=>t("td",{...a(e)},d))},d))})]})})},r=({blocks:e,className:r=""})=>t("section",{className:("itd-post-viewer inn-post-viewer "+r).trim(),children:e.map(e=>"header"===e.type?t(d,{...e.data},e.id):"paragraph"===e.type?e.data.text?t("p",{...a(e.data.text)},e.id):null:"breakLine"===e.type?e.data.divider?t("hr",{className:"itd-post-divider"},e.id):t("div",{className:"itd-post-spacer","aria-hidden":!0},e.id):"list"===e.type?e.data.items?t(i,{...e.data},e.id):null:"table"===e.type?e.data.content?t(l,{...e.data},e.id):null:"image"===e.type?e.data.file?.url?t("div",{className:"itd-post-image",children:t("img",{src:e.data.file.url,alt:""})},e.id):null:"rawTool"===e.type&&e.data.html?t("div",{...a(e.data.html)},e.id):null)});r.displayName="PostViewer";export{r as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as o,Fragment as r}from"react/jsx-runtime";import t from"../../image/index.js";import i from"../../skeleton/index.js";import{GetClassNameByPlatform as a}from"../../helpers/classname/GetClassNameByPlatform.js";const d=e=>({"--itd-promo-deg":(e%2?.4:-.4)+"deg"}),m=({id:m,promotions:s,loading:n=!1,cardWidth:c,showCaptions:l=!0,onOpen:p,emptyText:h,className:g})=>{const f=c?{"--itd-promo-card-w":c}:{},N=n||!s?Array.from({length:6},(r,t)=>e("div",{className:"itd-promo-card","data-skeleton":"true",children:[o("div",{className:"itd-promo-media",children:o(i,{})}),l&&o("h3",{className:"itd-promo-caption"})]},t)):s.map((i,a)=>{const m=e(r,{children:[o("div",{className:"itd-promo-media",children:o(t,{src:i.image,source:i.imageSource,alt:i.title})}),l&&o("h3",{className:"itd-promo-caption",children:o("span",{children:i.title})})]});return i.href?o("a",{className:"itd-promo-card",style:d(a),href:i.href,target:i.target??"_self",children:m},i.id):o("button",{type:"button",className:"itd-promo-card",style:d(a),onClick:()=>p?.(i.id),children:m},i.id)});return!n&&s&&0===s.length?o("div",{id:m??a("inn-promotions-grid-component"),className:"itd-promo-empty"+(g?" "+g:""),children:h}):o("div",{id:m??a("inn-promotions-grid-component"),className:"itd-promo-grid"+(g?" "+g:""),style:f,children:N})};export{m as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as a,Fragment as i}from"react/jsx-runtime";import{useState as l,useMemo as r}from"react";import t from"../../image/index.js";import s from"../../skeleton/index.js";import n from"../../spin/index.js";import f from"../post-viewer/index.js";import d from"../default-avatar/index.js";import c from"../filter-tabs/index.js";import{GetPlatform as o}from"../../helpers/platform/index.js";import{PlatformTypes as p}from"../../helpers/classname/GetClassNameByPlatform.js";import{useLoadMoreSentinel as m}from"../../hooks/useLoadMoreSentinel.js";const h=()=>o()===p.MOBILE,u=[{value:"prizes",label:"Ödüller"},{value:"rules",label:"Kurallar"},{value:"participants",label:"Katılanlar"}],b=({raffle:o,loading:p=!1,emptyTitle:b=e(i,{children:["Şu anda aktif bir ",a("span",{children:"çekiliş"})," bulunmuyor"]}),emptyText:N="Yeni çekilişler için bizi takipte kalın — duyurular bu sayfada yayınlanır.",moreText:v="Daha Fazla Göster",lessText:x="Daha Az Göster",participantsHasMore:g=!1,participantsLoading:y=!1,onParticipantsMore:k})=>{const z=h(),[w,j]=l("prizes"),[T,A]=l(!1),B=m(g&&!y,k),K=r(()=>{const e=o?.rules;return Array.isArray(e)&&e.length>0?a(f,{blocks:e}):"string"==typeof e&&""!==e.trim()?a("div",{className:"itd-raffle-rules-text",children:e}):a("span",{className:"itd-raffle-empty-note",children:"Kural bilgisi bulunmuyor."})},[o?.rules]);if(p)return e("div",{className:"raffle-skeleton itd-raffle-skeleton",children:[a(s,{width:"100%",height:"100%",className:"itd-raffle-skeleton-cover"}),a(s,{width:"40%",height:"1.25rem"}),a(s,{width:"100%",height:"0.875rem"}),a(s,{width:"80%",height:"0.875rem"})]});if(!o)return e("div",{className:"itd-raffle-empty",children:[a("h3",{children:b}),a("span",{children:N})]});const C=e("div",{className:"raffle-box raffle-box-prizes itd-raffle-box itd-raffle-prizes",children:[a("h3",{className:"raffle-box-title itd-raffle-box-title",children:"Ödüller"}),e("div",{className:"raffle-prizes itd-raffle-prize-list",children:[(o.prizes??[]).map(i=>e("div",{className:"raffle-prize-item itd-raffle-prize-item",children:[a("span",{className:"itd-raffle-prize-art",children:i.image?a(t,{src:i.image,alt:i.description}):null}),e("span",{className:"itd-raffle-prize-texts",children:[a("h5",{children:i.description}),e("span",{children:[i.quantity," adet"]})]})]},i.id)),0===(o.prizes??[]).length&&a("span",{className:"itd-raffle-empty-note",children:"Ödül bilgisi bulunmuyor."})]})]}),L=e("div",{className:"raffle-box raffle-box-rules itd-raffle-box itd-raffle-rules",children:[a("h3",{className:"raffle-box-title itd-raffle-box-title",children:"Kurallar"}),a("div",{className:"itd-raffle-rules-scroll",children:K})]}),M=e("div",{className:"raffle-box raffle-box-participants itd-raffle-box itd-raffle-participants",children:[a("h3",{className:"raffle-box-title itd-raffle-box-title",children:"Çekilişe Katılanlar"}),e("div",{className:"raffle-participants itd-raffle-participant-list",children:[(o.participants??[]).map(i=>e("div",{className:"raffle-participant-item itd-raffle-participant-item",children:[a("span",{className:"itd-raffle-participant-photo",children:i.photo?a("img",{src:i.photo,alt:""}):a(d,{})}),e("span",{className:"itd-raffle-participant-texts",children:[a("h6",{children:i.username}),e("span",{children:[i.ticketCount," Bilet"]})]})]},i.username)),0===(o.participants??[]).length&&a("span",{className:"itd-raffle-empty-note",children:"Henüz katılan bulunmuyor."}),(g||y)&&a("div",{className:"itd-raffle-participants-sentinel",ref:B,children:y&&a(n,{})})]})]});return e("div",{className:"raffle-content itd-raffle-content",children:[a("div",{className:"raffle-cover-image itd-raffle-cover",children:a(t,{src:(z?o.mobileImage??o.image:o.image)??"",alt:o.name})}),e("div",{className:"raffle-box raffle-box-info itd-raffle-box itd-raffle-info-box",children:[a(z?"h3":"h2",{className:"raffle-title itd-raffle-title",children:o.name}),o.description&&e(i,{children:[a("div",{className:"raffle-description itd-raffle-description"+(z&&!T?" is-clamped":""),children:o.description}),z&&a("button",{type:"button",className:"itd-raffle-desc-toggle",onClick:()=>A(e=>!e),children:T?x:v})]}),a("hr",{className:"itd-raffle-sep"}),e("div",{className:"raffle-info itd-raffle-info",children:[e("span",{className:"raffle-status-wrapper itd-raffle-info-cell",children:[a("b",{children:"Durum:"}),a("span",{className:"itd-raffle-status","data-tone":o.statusTone??"active",children:o.statusLabel??"Aktif"})]}),a("span",{className:"itd-raffle-info-sep","aria-hidden":!0}),e("span",{className:"raffle-start-date itd-raffle-info-cell",children:[a("b",{children:"Başlangıç Tarihi:"}),a("span",{children:o.startsAt})]}),a("span",{className:"itd-raffle-info-sep","aria-hidden":!0}),e("span",{className:"raffle-end-date itd-raffle-info-cell",children:[a("b",{children:"Bitiş Tarihi:"}),a("span",{children:o.endsAt})]})]})]}),z?e(i,{children:[a("div",{className:"raffle-tab-menu itd-raffle-tabs",children:a(c,{grow:!0,options:u.map(e=>({value:e.value,label:e.label})),value:w,onChange:e=>j(e),"aria-label":"Çekiliş panelleri"})}),e("div",{className:"raffle-main-content-wrapper itd-raffle-main",children:["prizes"===w&&C,"rules"===w&&L,"participants"===w&&M]})]}):e("div",{className:"raffle-main-content-wrapper itd-raffle-main",children:[C,L,M]})]})},N=({title:i,children:l,className:r})=>{const t=h(),s=t?"inn-mobile-raffle":"inn-raffle";return e("div",{id:s+"-component",className:(t?"inn-mobile-raffle":"inn-raffle")+" itd-raffle"+(r?" "+r:""),children:[i&&a("div",{id:s+"-title",className:"itd-raffle-title-bar",children:i}),a("div",{className:"raffle-content-wrapper itd-raffle-content-wrapper",children:l})]})};export{b as RaffleShowcase,N as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as n,Fragment as i}from"react/jsx-runtime";import{forwardRef as l,useRef as a,useState as t,useMemo as r,useEffect as s}from"react";import o from"../../form/index.js";import{Field as d}from"../../field/index.js";import c from"../../input/index.js";import m from"../../code-input/index.js";import u from"../../checkbox/index.js";import p from"../../button/index.js";import g from"../../datepicker/index.js";import h from"../../select/index.js";import{InputTypes as f}from"../../types/InputProps.js";import{usePhoneCountry as v}from"../../helpers/phone/usePhoneCountry.js";import{isPhoneComplete as b,toE164 as N}from"../../helpers/phone/index.js";import y from"../../form/control/Control.js";import{SelectItem as C}from"../../select/SelectItem.js";const x={phone:"identity",email:"identity",username:"credentials",password:"credentials",text:"profile",date:"profile",select:"profile",consent:"profile"},w=["identity","verify","credentials","profile"],k=e=>e.step??x[e.kind],S=(e,n)=>w.filter(i=>"verify"===i?n:e.some(e=>k(e)===i)),z=l(({fields:l,layout:x="single",wide:w=!1,verify:z=!1,verificationTiming:j="post_signup",step:I,completedSteps:B=[],country:D,logo:q,banner:A,onClose:L,closeLabel:M="Kapat",loading:T=!1,codeLength:H=6,cooldownUntil:P=null,codeError:V,maskedIdentity:E,suggestedUsername:F,texts:_,onSubmitStep:R,onSubmit:W,onVerifyCode:O,onResend:U,onEditIdentity:K,onSuggestUsername:G,onSignIn:J,className:Q=""},X)=>{const Y=v(D),Z=a(null),[$,ee]=t(!1),[ne,ie]=t(""),[le,ae]=t({}),te=a({}),[,re]=t(0),se=(e=>{const n=e?new Date(e).getTime():0,[i,l]=t(()=>Date.now());s(()=>{if(!n||n<=Date.now())return;l(Date.now());const e=setInterval(()=>l(Date.now()),1e3);return()=>clearInterval(e)},[n]);const a=Math.max(0,n-i),r=Math.ceil(a/1e3),o=e=>String(e).padStart(2,"0");return{active:a>0,label:o(Math.floor(r/60))+":"+o(r%60)}})(P),oe=r(()=>S(l,z),[l,z]),de="steps"===x,ce=de?I??oe[0]:"identity",me=de&&"verify"===ce,ue=!de&&z&&"in_form"===j;s(()=>{V&&Z.current?.setError?.(V)},[V]);const pe=r(()=>de?l.filter(e=>k(e)===ce):l,[l,de,ce]),ge=e=>n=>{te.current[e]=String(n??""),re(e=>e+1)},he=pe.every(e=>{if(!e.required||e.readonly||e.collapsed&&!le[e.name])return!0;const n=te.current[e.name]??"";return"phone"===e.kind?b(Y,n):"consent"===e.kind?"true"===n:"password"===e.kind&&e.confirm?n.length>0&&te.current[e.name+"_confirm"]===n:n.length>0}),fe=me?ne.length!==H||T:!$||!he||!!ue&&ne.length!==H||T,ve=de&&oe.length>1?e("ol",{className:"itd-signup-steps",children:oe.map((i,l)=>{const a=B.includes(i),t=i===ce;return n("li",{className:"itd-signup-step"+(t?" itd-signup-step-active":"")+(a?" itd-signup-step-done":""),"aria-current":t?"step":void 0,children:[e("span",{className:"itd-signup-step-mark",children:a?"✓":l+1}),_.stepLabels?.[i]??i]},i)})}):null,be=de?_.stepTitles?.[ce]:null;return n("div",{className:"itd-login itd-signup"+(!de&&w?" itd-signup-wide":"")+(Q?" "+Q:""),children:[q||L?n("div",{className:"itd-login-topbar",children:[e("span",{className:"itd-login-logo",children:q}),L?e(p,{variant:"ghost",size:"icon",className:"itd-login-close","aria-label":M,onClick:L,children:e("svg",{viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":"true",children:e("path",{d:"M18 6 6 18M6 6l12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}):null]}):null,A?e("div",{className:"itd-login-banner",children:A}):null,n("div",{className:"itd-login-body",children:[n("div",{className:"itd-login-intro",children:[_.description?e("span",{className:"itd-login-eyebrow",children:_.description}):null,e("span",{className:"itd-login-title",children:_.title})]}),e("div",{className:"itd-login-rule"}),ve,be?e("span",{className:"itd-signup-step-title",children:be}):null,me?n(i,{children:[_.codeHint||E?n("p",{className:"itd-login-hint",children:[_.codeHint,E?n(i,{children:[" ",e("span",{className:"itd-signup-masked",children:E}),_.editIdentity?n(i,{children:[" · ",e("button",{type:"button",className:"itd-signup-edit",onClick:K,children:_.editIdentity})]}):null]}):null]}):null,n("div",{className:"itd-login-code",children:[e(m,{ref:Z,size:"x-large",length:H,value:ne,onChange:ie,autoFocus:!0,"aria-label":be??_.title}),e(p,{type:"button",size:"x-large",loading:T,disabled:fe,onClick:()=>{ne.length!==H||T||O?.(ne)},style:{width:"100%"},children:_.verifySubmit??_.continue??_.submit})]}),e("div",{className:"itd-login-actions",children:se.active?e("span",{className:"itd-login-countdown",children:se.label}):_.resendCode?e(p,{variant:"filled",size:"medium",onClick:U,disabled:T,children:_.resendCode}):null})]}):n(o,{name:"sign-up",ref:X,onFinish:e=>{const n={},i=de?l.filter(e=>k(e)===ce):l;for(const l of i){if(l.readonly){void 0!==l.value&&(n[l.name]=l.value);continue}if(!(l.name in e)&&!(l.name in te.current))continue;const i=e[l.name]??te.current[l.name];n[l.name]="phone"===l.kind?N(Y,String(i??"")):"consent"===l.kind?!0===i||"true"===i:i}ue&&(n.code=ne),de?R?.(ce,n):W?.(n)},onValidated:ee,children:[e("div",{className:"itd-signup-fields"+(!de&&w?" itd-signup-fields-grid":""),children:pe.map(i=>{if(i.readonly){const n=null!=i.value?String(i.value):void 0,l=i.span?"itd-signup-span":void 0;if("select"===i.kind){const a=i.options?.length||!n?i.options??[]:[{value:n,label:n}];return e(h,{size:"x-large",value:n,disabled:!0,className:l,"aria-label":"string"==typeof i.label?i.label:void 0,children:a.map(n=>e(C,{value:n.value,children:n.label},n.value))},i.name)}return e(c,{size:"x-large",value:n,disabled:!0,className:l,addonBefore:i.icon,"aria-label":"string"==typeof i.label?i.label:void 0},i.name)}if(i.collapsed&&!le[i.name])return e(p,{variant:"ghost",size:"medium",className:"itd-signup-reveal itd-signup-span",onClick:()=>ae(e=>({...e,[i.name]:!0})),children:i.label},i.name);const l=[...i.required?[{required:!0}]:[],...i.rules??[]],a="string"==typeof i.label?i.label:void 0,t=i.span?"itd-signup-span":void 0;switch(i.kind){case"phone":return e(d,{name:i.name,className:t,rules:[...l,{validator:e=>!i.required&&!String(e??"").length||b(Y,String(e??""))}],children:e(c,{type:f.TEL,size:"x-large",inputMode:"numeric",autoComplete:"tel-national",mask:Y?.mask??null,placeholder:a,addonBefore:i.icon,onChange:ge(i.name),prefix:e("span",{className:"itd-login-dial",children:Y?.code})})},i.name);case"email":return e(d,{name:i.name,className:t,rules:l,children:e(c,{type:f.EMAIL,size:"x-large",autoComplete:"email",placeholder:a,addonBefore:i.icon,onChange:ge(i.name)})},i.name);case"username":return n("div",{className:"itd-signup-suggested itd-signup-span",children:[n("div",{className:"itd-signup-suggested-row",children:[e(d,{name:i.name,rules:l,children:e(c,{size:"x-large",autoComplete:"username",placeholder:a,defaultValue:F,addonBefore:i.icon,onChange:ge(i.name)})},F??""),_.newSuggestion&&G?e(p,{variant:"solid",size:"x-large",onClick:G,disabled:T,children:_.newSuggestion}):null]}),_.suggestedHint&&F?e("span",{className:"itd-signup-note",children:_.suggestedHint}):null]},i.name);case"password":return i.confirm?n("div",{className:"itd-signup-pair itd-signup-span",children:[e(d,{name:i.name,rules:l,children:e(c,{type:f.PASSWORD,size:"x-large",autoComplete:"new-password",placeholder:a,addonBefore:i.icon,onChange:ge(i.name)})}),e(d,{name:i.name+"_confirm",rules:[...i.required?[{required:!0}]:[],{validator:e=>String(e??"")===(te.current[i.name]??"")}],children:e(c,{type:f.PASSWORD,size:"x-large",autoComplete:"new-password",placeholder:i.confirmLabel,addonBefore:i.icon,onChange:ge(i.name+"_confirm")})})]},i.name):e(d,{name:i.name,rules:l,children:e(c,{type:f.PASSWORD,size:"x-large",autoComplete:"new-password",placeholder:a,addonBefore:i.icon,onChange:ge(i.name)})},i.name);case"date":return e(d,{name:i.name,className:t,rules:l,children:e(g,{size:"x-large",placeholder:a,onChange:ge(i.name)})},i.name);case"select":return e(d,{name:i.name,className:t,rules:l,children:e(h,{size:"x-large",placeholder:a,onChange:ge(i.name),children:(i.options??[]).map(n=>e(C,{value:n.value,children:n.label},n.value))})},i.name);case"consent":return e(d,{name:i.name,className:"itd-signup-span",rules:i.required?[{validator:e=>!0===e||"true"===e}]:[],children:e(u,{onChange:e=>ge(i.name)(String(!!e?.checked)),children:i.label})},i.name);default:return e(d,{name:i.name,className:t,rules:l,children:e(c,{size:"x-large",placeholder:a,addonBefore:i.icon,onChange:ge(i.name)})},i.name)}})}),ue?n("div",{className:"itd-signup-inline-verify",children:[_.inFormVerifyTitle?e("span",{className:"itd-signup-step-title",children:_.inFormVerifyTitle}):null,_.codeHint?e("p",{className:"itd-login-hint",children:_.codeHint}):null,e(m,{ref:Z,size:"x-large",length:H,value:ne,onChange:ie,disabled:!he,"aria-label":_.inFormVerifyTitle??_.title}),e("div",{className:"itd-login-actions",children:se.active?e("span",{className:"itd-login-countdown",children:se.label}):_.resendCode?e(p,{variant:"filled",size:"medium",onClick:U,disabled:T,children:_.resendCode}):null})]}):null,e(y,{children:e(p,{type:"submit",size:"x-large",loading:T,disabled:fe,style:{width:"100%"},children:de&&ce!==oe[oe.length-1]?_.continue??_.submit:_.submit})})]}),_.haveAccount||_.signIn?n("div",{className:"itd-signup-footer",children:[_.haveAccount?e("span",{className:"itd-signup-footer-note",children:_.haveAccount}):null,_.signIn?e(p,{variant:"ghost",size:"medium",onClick:J,children:_.signIn}):null]}):null]})]})});z.displayName="SignupPanel";export{z as SignupPanel,z as default,S as deriveSteps,k as stepOf};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useMemo as l}from"react";import s from"../../_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js";import d from"../../_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";import{GetClassNameByPlatform as r}from"../../helpers/classname/GetClassNameByPlatform.js";import a from"../embla/useEmblaState.js";const t=({id:t,slides:n,autoplay:o=4e3,loop:c=!0,dots:m=!0,slideSize:u,slideSpacing:p,dotLabel:b=e=>"Slide "+(e+1),hideBackground:h=!1,className:N})=>{const g=l(()=>({loop:c}),[c]),v=l(()=>!1===o?[]:[d({delay:o})],[o]),[f,y]=s(g,v),{selected:S}=a(y),j=r,k={...u?{"--itd-slider-slide-size":u}:null,...p?{"--itd-slider-spacing":p}:null};return e("section",{id:t??j("inn-slider-component"),className:"itd-slider-block"+(N?" "+N:""),style:k,"data-background":String(!h),"data-has-slides":String(n.length>0),children:i("div",{className:j("inn-slider")+" itd-slider",children:[e("div",{ref:f,className:j("inn-slider-viewport")+" itd-slider-viewport",children:e("div",{className:j("inn-slider-container")+" itd-slider-container",children:n.map((i,l)=>e("div",{className:j("inn-slider-slide")+" itd-slider-slide","data-background":String(!h),children:e("div",{className:j("inn-slider-slide-number"),children:i})},l))})}),m&&n.length>1&&e("div",{className:j("inn-slider-controls")+" itd-slider-controls",children:e("div",{className:j("inn-slider-dots")+" itd-slider-dots",children:n.map((i,l)=>e("button",{type:"button","aria-label":b(l),"aria-current":l===S||void 0,className:j("inn-slider-dot")+" itd-slider-dot"+(l===S?" "+j("inn-slider-dot")+"-selected":""),onClick:()=>y?.scrollTo(l)},l))})})]})})};export{t as default};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as s}from"react/jsx-runtime";import l from"../slider/index.js";import{GetClassNameByPlatform as i}from"../../helpers/classname/GetClassNameByPlatform.js";const r=({id:r,left:t,right:d,placeholder:o,className:a})=>e("div",{id:r??i("inn-slider-double-component"),className:"itd-slider-double"+(a?" "+a:""),children:[t.slides.length?s(l,{...t}):o,d.slides.length?s(l,{...d}):o]});export{r as default};
@@ -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 t,jsx as e,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 o,CheckCircle2 as l,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 w}from"../../helpers/platform/index.js";import{PlatformTypes as x}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=()=>w()===x.MOBILE,S=t=>t?Math.max(0,new Date(t).getTime()-Date.now()):0,M=(t,e=!0)=>{const[a,i]=n(()=>S(t));r(()=>{if(!e||!t)return;i(S(t));const a=setInterval(()=>i(S(t)),1e3);return()=>clearInterval(a)},[t,e]);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=t=>String(t).padStart(2,"0"),A=({status:t})=>e("span",{className:"itd-tournament-status","data-status":t,children:j[t]}),O=({tournament:a,onOpen:n})=>{const r=a,i="ended"!==r.status,s="registration"===r.status?r.registerEndsAt??r.startsAt:r.endsAt,o=M(s,i),l=r.providers??[],d=(r.games??[]).slice(0,4),m=Math.max(0,(r.gamesCount??r.games?.length??0)-d.length),u=o.days>0?`${o.days} gün ${K(o.hours)}:${K(o.minutes)}:${K(o.seconds)}`:`${K(o.hours)}:${K(o.minutes)}:${K(o.seconds)}`;return t("div",{className:"tournament-card itd-tournament-card",onClick:n?()=>n(r.id):void 0,onKeyDown:n?t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),n(r.id))}:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,children:[t("div",{className:"tournament-card-cover itd-tournament-card-cover",children:[e("span",{className:"tournament-card-status itd-tournament-card-status",children:e(A,{status:r.status})}),e(c,{src:r.image??"",alt:r.name})]}),t("div",{className:"tournament-card-body itd-tournament-card-body",children:[e("h3",{className:"tournament-card-name itd-tournament-card-name",children:r.name}),t("div",{className:"tournament-card-meta itd-tournament-card-meta",children:[t("div",{className:"tournament-card-prize itd-tournament-card-prize",children:[e("span",{className:"itd-tournament-meta-label tournament-card-prize-label",children:"Ödül Tutarı"}),e("span",{className:"itd-tournament-prize-value tournament-card-prize-value",children:r.prize})]}),i&&t("div",{className:"tournament-card-countdown itd-tournament-card-countdown",children:[e("span",{className:"itd-tournament-meta-label tournament-card-countdown-label",children:"Kalan Süre"}),e("span",{className:"itd-tournament-countdown-value tournament-card-countdown-value",children:u})]})]}),d.length>0&&t("div",{className:"tournament-card-games itd-tournament-card-games",children:[e("span",{className:"tournament-card-games-title itd-tournament-meta-label",children:"Oyunlar"}),t("div",{className:"tournament-card-games-row itd-tournament-card-games-row",children:[d.map(t=>e("span",{className:"tournament-card-games-cell itd-tournament-card-games-cell",children:e(p,{name:"",slug:t.slug??t.id,image:t.image,ratio:"440/310"})},t.id)),m>0&&e("span",{className:"tournament-card-games-more itd-tournament-card-games-more",children:t("span",{children:["+",m]})})]})]}),t("div",{className:"tournament-card-footer itd-tournament-card-footer",children:[t("span",{className:"tournament-card-participants",children:[r.participantCount," katılımcı"]}),l.length>0&&e("div",{className:"tournament-card-providers itd-tournament-card-providers"+(l.length>1?" is-interactive":""),onClick:t=>l.length>1&&t.stopPropagation(),children:l.length>1?t(N,{children:[e(y,{asChild:!0,children:t("span",{className:"tournament-card-providers-label",children:[l[0],t("em",{className:"tournament-card-providers-more",children:["+",l.length-1]})]})}),e(f,{placement:k.TOP,variant:"filled",maxWidth:240,children:e("div",{className:"itd-tournament-providers-card",children:l.map(t=>e("span",{children:t},t))})})]}):e("span",{className:"tournament-card-providers-label",children:l[0]})})]})]})]})},P=({tournaments:n,loading:r=!1,filters:i=C,filter:s="all",onFilterChange:o,onOpen:l,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 t("div",{className:"tournament-list itd-tournament-list",children:[e("div",{className:"tournament-list-filters itd-tournament-filters",children:e(b,{className:"tournament-list-filters-list",options:i,value:s,onChange:o,"aria-label":"Turnuva durumu"})}),r?e("div",{className:"tournament-list-skeleton-grid itd-tournament-grid",children:Array.from({length:N},(a,n)=>t("div",{className:"tournament-list-skeleton-box itd-tournament-skeleton-box",children:[e("span",{className:"tournament-list-skeleton-cover itd-tournament-skeleton-cover",children:e(u,{width:"100%",height:"100%"})}),t("span",{className:"tournament-list-skeleton-body itd-tournament-skeleton-body",children:[e(u,{width:"65%",height:"1rem"}),e(u,{width:"40%",height:"0.75rem"}),e(u,{width:"50%",height:"0.75rem"})]})]},n))}):0===n.length?t("div",{className:"tournament-list-empty itd-tournament-empty",children:[e("h3",{children:v}),e("span",{children:g})]}):t(a,{children:[e("div",{className:"tournament-list-grid itd-tournament-grid",children:n.map(t=>e(O,{tournament:t,onOpen:l},t.id))}),d&&e("div",{className:"tournament-list-load-more itd-tournament-load-more",children:c?e(h,{}):e(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:w,standingsHasMore:x=!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=w??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?e(v,{blocks:S.rules}):"string"==typeof S.rules&&""!==S.rules.trim()?e("div",{className:"itd-tournament-rules-text tournament-rules-content",children:S.rules}):e("span",{className:"itd-tournament-panel-empty tournament-rules-empty",children:"Kural bilgisi bulunmuyor."}),[S.rules]),U=s(null),[V,X]=n({prev:!1,next:!1});r(()=>{const t=U.current;if(!t)return;const e=()=>X({prev:t.scrollLeft>4,next:t.scrollLeft<t.scrollWidth-t.clientWidth-4});e();const a=new ResizeObserver(e);return a.observe(t),t.addEventListener("scroll",e,{passive:!0}),()=>{a.disconnect(),t.removeEventListener("scroll",e)}},[S.stats]);const Z=t=>{const e=U.current;e&&e.scrollBy({left:t*e.clientWidth*.85,behavior:"smooth"})},_="ended"===S.status?"Kazananlar":"Puan Tablosu",tt=(S.globalStandings?.length??0)>0,et="global"===R&&tt?S.globalStandings:S.standings??[],at="site"===R,nt=z(at&&x&&!C,j),rt=t("div",{className:"tournament-prizes itd-tournament-panel itd-tournament-prizes",children:[e("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Ödüller"}),S.prizeRows&&S.prizeRows.length>0?t(a,{children:[t("div",{className:"tournament-prizes-header itd-tournament-panel-header",children:[e("span",{children:"Sıra"}),e("span",{children:"Ödül"})]}),e("div",{className:"itd-tournament-panel-list tournament-prizes-list",children:S.prizeRows.map(a=>t("div",{className:"tournament-prize-row itd-tournament-prize-row",children:[e("b",{className:"tournament-prizes-place",children:a.rank}),e("span",{className:"tournament-prizes-payout",children:a.value})]},a.rank))})]}):e("span",{className:"itd-tournament-panel-empty tournament-prizes-empty",children:"Ödül bilgisi bulunmuyor."})]}),it=t("div",{className:"tournament-standings itd-tournament-panel itd-tournament-standings tournament-leaderboard",children:[e("h3",{className:"tournament-box-title itd-tournament-box-title",children:_}),tt&&e("div",{className:"tournament-standings-scope itd-tournament-scope",children:e(b,{grow:!0,options:[{value:"site",label:"Site"},{value:"global",label:"Global"}],value:R,onChange:t=>W(t),"aria-label":"Sıralama kapsamı"})}),et.length>0?t(a,{children:[t("div",{className:"tournament-standings-header itd-tournament-panel-header itd-tournament-standings-header",children:[e("span",{className:"pos tournament-standings-header-pos",children:"#"}),e("span",{className:"user tournament-standings-header-user",children:"Kullanıcı"}),e("span",{className:"tournament-standings-header-score",children:"ended"===S.status?"Ödül":"Puan"})]}),t("div",{className:"itd-tournament-panel-list tournament-standings-list"+("ended"===S.status?" tournament-standings-list--winners":" tournament-standings-list--leaderboard"),children:[et.map(a=>t("div",{className:"tournament-standings-row itd-tournament-standings-row"+(a.highlight?" is-highlight":""),"data-top":a.position<=3?"":void 0,children:[e("b",{className:"itd-tournament-rank tournament-standings-position",children:a.position}),e("span",{className:"itd-tournament-standings-photo tournament-standings-photo",children:a.photo?e("img",{src:a.photo,alt:""}):e(g,{})}),e("span",{className:"itd-tournament-standings-user tournament-standings-user",children:a.username??"—"}),e("span",{className:"itd-tournament-standings-value tournament-standings-score",children:a.value})]},a.position)),at&&(x||C)&&e("div",{className:"itd-tournament-board-sentinel",ref:nt,children:C&&e(h,{})})]})]}):e("span",{className:"itd-tournament-panel-empty tournament-standings-empty"+("ended"===S.status?" tournament-standings-empty--winners":" tournament-standings-empty--leaderboard"),children:"site"===R&&tt?"Bu sitede sıralama oluşmadı — Global sekmesine bakabilirsiniz.":"ended"===S.status?"Kazanan bilgisi henüz yayınlanmadı.":"Puan tablosu henüz oluşmadı."})]}),st=t("div",{className:"tournament-rules itd-tournament-panel itd-tournament-rules",children:[e("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Kurallar"}),e("div",{className:"tournament-rules-scroll itd-tournament-rules-scroll",children:Q})]});return t("div",{className:"tournament-detail itd-tournament-detail",children:[t("div",{className:"tournament-detail-backbar itd-tournament-backbar",children:[t(m,{variant:"filled",size:"medium",onClick:N,children:[e(o,{size:16}),y]}),e("div",{className:"tournament-detail-backbar-actions itd-tournament-backbar-actions",children:S.autoJoin?t("span",{className:"tournament-detail-auto-badge itd-tournament-auto-badge",children:[e(l,{size:15}),"Otomatik Katılım"]}):P&&f&&e(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"})})]}),t("div",{className:"tournament-cover itd-tournament-cover",children:[e("div",{className:"tournament-cover-image itd-tournament-cover-image",children:e(c,{src:S.cover??S.image??"",alt:S.name})}),e("div",{className:"tournament-cover-overlay itd-tournament-cover-overlay",children:t("div",{className:"tournament-cover-panel itd-tournament-cover-panel",children:[e(A,{status:S.status}),t("div",{className:"itd-tournament-cover-prize tournament-cover-prize",children:[e("span",{className:"itd-tournament-meta-label tournament-cover-prize-label",children:"Ödül Tutarı"}),e("b",{className:"itd-tournament-cover-amount tournament-cover-prize-amount",children:S.prize})]}),P&&t("div",{className:"itd-tournament-cover-countdown tournament-cover-countdown",children:[e("span",{className:"itd-tournament-cover-caption tournament-cover-countdown-caption",children:q}),e("div",{className:"itd-tournament-timer tournament-cover-countdown-timer",children:[[L.days,"Gün"],[L.hours,"Saat"],[L.minutes,"Dakika"],[L.seconds,"Saniye"]].map(([a,n])=>t("span",{className:"tournament-cover-countdown-box itd-tournament-timer-box",children:[e("b",{children:K(a)}),e("span",{children:n})]},n))})]})]})})]}),(S.description||S.name)&&t("div",{className:"tournament-detail-description-box itd-tournament-description",children:[e("h3",{className:"tournament-detail-description-title",children:S.name}),S.description&&e("div",{className:"tournament-detail-description",children:S.description})]}),S.stats&&S.stats.length>0&&t("div",{className:"tournament-stats itd-tournament-stats",children:[V.prev&&e("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow tournament-stats-arrow--prev","data-dir":"prev","aria-label":"Geri",onClick:()=>Z(-1),children:e(o,{size:16})}),e("div",{className:"tournament-stats-track itd-tournament-stats-track",ref:U,children:S.stats.map(a=>t("div",{className:"tournament-stats-box itd-tournament-stats-box",children:[e("span",{className:"itd-tournament-box-caption tournament-stats-box-title",children:a.title}),e("div",{className:"itd-tournament-stats-rows tournament-stats-rows",children:a.rows.map(a=>t("div",{className:"itd-tournament-stats-row tournament-stats-row",children:[e("span",{children:a.label}),e("span",{"data-tone":a.tone,children:a.value})]},a.label))})]},a.title))}),V.next&&e("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow tournament-stats-arrow--next","data-dir":"next","aria-label":"İleri",onClick:()=>Z(1),children:e(d,{size:16})})]}),S.providers&&S.providers.length>0&&t("div",{className:"itd-tournament-section tournament-detail-section tournament-detail-section--providers",children:[e("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Sağlayıcılar"}),e("div",{className:"itd-tournament-provider-chips tournament-detail-providers",children:S.providers.map(t=>e("span",{className:"tournament-detail-provider-chip itd-tournament-provider-chip",children:t},t))})]}),t("div",{className:"itd-tournament-section tournament-detail-section tournament-detail-section--games",children:[e("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Turnuva Oyunları"}),F.length>0?t("div",{className:"tournament-games-grid itd-tournament-games-grid",children:[J.map(t=>e(p,{className:"tournament-game-item",name:O?"":t.name,slug:t.slug??t.id,image:t.image,ratio:"440/310",onPlay:k?t=>k(t):void 0},t.id)),Y>0&&e("button",{type:"button",className:"tournament-games-more itd-tournament-games-more",onClick:()=>$(t=>t+B),children:t("span",{children:["+",Y]})})]}):e("div",{className:"tournament-games-empty itd-tournament-games-empty",children:e("span",{children:"Bu turnuvaya tanımlı oyun bulunmuyor."})})]}),O?t(a,{children:[e("div",{className:"tournament-detail-tabs itd-tournament-tabs",children:e(b,{grow:!0,className:"tournament-detail-tabs-list",options:D.map(t=>({value:t.value,label:"leaderboard"===t.value?_:t.label})),value:H,onChange:t=>I(t),"aria-label":"Turnuva panelleri"})}),"prizes"===H&&rt,"leaderboard"===H&&it,"rules"===H&&st]}):t("div",{className:"tournament-detail-panels itd-tournament-panels",children:[rt,it,st]})]})},L=({title:a,children:n,className:r})=>{const i=T(),s=i?"inn-mobile-tournament":"inn-tournament";return t("div",{id:s+"-component",className:(i?"inn-mobile-tournament":"inn-tournament")+" itd-tournaments"+(r?" "+r:""),children:[a&&e("div",{id:s+"-title",className:"tournament-title itd-tournaments-title",children:a}),e("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,Fragment as a,jsx as t}from"react/jsx-runtime";import{useState as i}from"react";import{Gift as l,Trash2 as s,Info 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,HubCopyBtn as _,HubHistName as v,HubStatusBadge as k}from"./table.js";import{AlertDescription as g}from"../../alert/Description.js";import{SelectItem as y}from"../../select/SelectItem.js";const N=({kind:a,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:[t("span",{className:"hub__status-kind",children:a}),t("span",{className:"hub__status-name",children:i})]}),e("div",{className:"hub__status-side",children:[e("div",{className:"hub__status-date",children:[t("span",{children:l}),t("span",{className:"hub__status-dateval",children:s})]}),n]})]}),t("div",{className:"hub__status-grid",children:r.map(([a,i],l)=>e("div",{children:[t("span",{className:"hub__status-label",children:a}),t("span",{className:"hub__status-value",children:i})]},l))}),d]}),f=({data:s,cats:m,types:_,statuses:v,wagering:g,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:(a,i)=>e("span",{className:"hub__pay-name hub__hist-nm",children:[e("span",{className:"hub__bonus-name",children:[t("span",{className:"hub__bonus-title",children:i.name}),e(o,{children:[t(h,{asChild:!0,children:t("i",{className:"hub__hist-creator","aria-label":q,children:t(n,{size:14})})}),t(u,{placement:"top",children:i.desc})]})]}),i.applyDate&&t("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=>t(k,{s:String(e)})},{key:"percent",dataIndex:"percent",title:C,width:170,render:e=>t("span",{className:"hub__bonus-progress",children:t(d,{percent:Number(e)})})},{key:"actions",dataIndex:"key",title:"",width:180,render:(a,i)=>t("span",{className:"hub__pay-actions hub__pay-actions--full",children:i.status===R?t(r,{variant:"statable",state:"reject",size:"medium",onClick:()=>w?.(i),children:S}):i.status===A?t(r,{variant:"filled",size:"medium",disabled:!0,children:K}):e(r,{variant:"default",size:"medium",onClick:()=>f?.(i),children:[t(l,{size:14}),i.applyDate?E:D]})})}];return e(a,{children:[t("div",{className:"hub__hist-cats--wide",children:t(p,{options:m,value:H,onChange:P,idPrefix:"brq"})}),t("div",{className:"hub__hist-filters hub__hist-filters--2",children:[_,v,g,N].map((e,a)=>t(c,{size:"x-large",defaultValue:e[0],children:e.map(e=>t(y,{value:e,children:e},e))},a))}),t(b,{columns:U,data:s,cellHeight:"84px",marker:x})]})},w=({data:i,intro:n,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:k="Miktar",acceptLabel:y="Kabul Et",rejectLabel:N="Reddet"})=>{const f=[{key:"id",dataIndex:"key",title:h,width:50,render:(e,a)=>t(_,{value:a.key,compact:!0})},{key:"name",dataIndex:"name",title:u,maxWidth:300,render:(e,a)=>t(v,{name:a.name})},{key:"cat",dataIndex:"cat",title:p,width:150},{key:"amount",dataIndex:"amount",title:k,width:200,render:e=>t("span",{className:"hub__hist-amount",children:String(e)})},{key:"actions",dataIndex:"key",title:"",width:240,render:(a,i)=>e("span",{className:"hub__pay-actions",children:[e(r,{variant:"default",size:"medium",onClick:()=>d?.(i),children:[t(l,{size:14}),y]}),e(r,{variant:"statable",state:"reject",size:"medium",onClick:()=>c?.(i),children:[t(s,{size:14}),N]})]})}];return e(a,{children:[n&&t(m,{type:"info",variant:"filled",children:t(g,{children:n})}),t(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(a,{children:[l&&t(m,{type:"info",variant:"filled",children:t(g,{children:l})}),t(N,{kind:n,name:i.name,dateLabel:c,date:i.applyDate,action:t(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:[t("span",{className:"hub__wager-title",children:h}),e("div",{className:"hub__status-date hub__wager-until",children:[t("span",{children:u}),t("span",{className:"hub__status-dateval",children:i.validUntil})]})]}),i.wagerings.map((a,i)=>e("div",{className:"hub__wager-row",children:[t("span",{className:"hub__wager-label",children:a.label}),e("div",{className:"hub__wager-bar",children:[t(d,{percent:a.percent,showInfo:!1}),t("span",{className:"hub__wager-amt",children:a.done+" / "+a.total})]})]},i))]})})]});export{x as HubActiveBonus,w as HubBonusActivation,f as HubBonusRequest,N as HubStatusCard};
@@ -0,0 +1 @@
1
+ import{jsxs as a,jsx 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:a})=>e("span",{className:"hub__pay-logo",style:{background:a.color},"aria-hidden":!0,children:a.Icon?e(a.Icon,{size:18}):e("b",{children:a.initials})}),z=({options:l,value:i,onChange:n,idPrefix:r,marker:o})=>e(_,{value:i,onValueChange:n,orientation:"horizontal",className:o?N(o,"hub__pay-filter"):"hub__pay-filter",children:l.map(l=>e(p,{htmlFor:r+"-"+l.value,children:a(u,{orientation:"vertical",className:"hub__pay-tile",children:[e("span",{className:"hub__pay-badge",style:{background:l.color},"aria-hidden":!0,children:l.Icon?e(l.Icon,{size:18}):e("b",{children:l.initials})}),e(b,{children:l.label}),e(v,{value:l.value,id:r+"-"+l.value,className:"sr-only"})]})},l.value))}),j=({f:l,onChange:i})=>a("div",{className:"hub__paymodal-field",children:[e("label",{className:"hub__paymodal-label",children:l.label}),"textarea"===l.kind?e(c,{rows:3,defaultValue:l.value,placeholder:l.placeholder,onUpdate:a=>i?.(String(a??""))}):"select"===l.kind?e(m,{size:"x-large",defaultValue:l.value,locked:!!l.locked,onChange:a=>i?.(String(a??"")),children:l.options.map(a=>e(f,{value:a,children:a},a))}):l.locked?e(d,{size:"x-large",value:l.value,locked:!0}):e(d,{size:"x-large",defaultValue:l.value,placeholder:l.placeholder,onChange:a=>i?.(String(a??""))})]}),S=({logo:l,name:i,side:n})=>a("div",{className:"hub__paymodal-card",children:[e(C,{logo:l}),e("span",{className:"hub__paymodal-name",children:i}),n]}),L=({labels:l,values:r})=>e("div",{className:"hub__paymodal-tiles",children:l.map((l,o)=>e("div",{className:"hub__paymodal-tile",children:a("div",{children:[0===o?e(i,{"aria-hidden":!0}):e(n,{"aria-hidden":!0,style:1===o?{transform:"scale(-1, 1)"}:void 0}),a("span",{className:"hub__paymodal-tile-texts",children:[e("span",{className:"hub__paymodal-tile-label",children:l}),e("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 a("div",{className:"hub__paymodal",children:[e(S,{logo:i.logo,name:i.name,side:e(s,{variant:p?"default":"outline",size:"medium",onClick:()=>{u(!p),h?.(!p)},children:p?c:m})}),e(L,{labels:["Yatırım Süresi","Min Yatırım","Max Yatırım"],values:[i.time,i.min,i.max]}),e("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-form",children:[n.map(a=>e(j,{f:a,onChange:e=>y(a,e)},a.label)),a("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[e("label",{className:"hub__paymodal-label",children:r}),e(d,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:e("span",{children:"₺"}),value:b,onChange:a=>_(String(a))})]})]}),e("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-submit",children:e(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 a("div",{className:"hub__paymodal",children:[e(S,{logo:i.logo,name:i.name}),e(L,{labels:["Çekim Süresi","Min Çekim","Max Çekim"],values:[i.time,i.min,i.max]}),e("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-form",children:[n.map(a=>e(j,{f:a,onChange:e=>b(a,e)},a.label)),a("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[e("label",{className:"hub__paymodal-label",children:r}),e(d,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:e("span",{children:"₺"}),value:h,onChange:a=>p(String(a))})]}),m&&e(t,{type:"info",variant:"filled",children:e(g,{children:m})})]}),e("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-submit",children:e(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 a("div",{className:"hub__paymodal",children:[y&&F?e(S,{logo:{color:F.color,Icon:F.Icon,initials:F.initials},name:F.label}):a("div",{className:"hub__paymodal-field",children:[e("label",{className:"hub__paymodal-label",children:u}),e(z,{options:n,value:f,onChange:g,idPrefix:"acct"})]}),a("div",{className:"hub__paymodal-form",children:[a("div",{className:"hub__paymodal-field",children:[e("label",{className:"hub__paymodal-label",children:h}),e(d,{size:"x-large",value:N,onChange:a=>k(String(a))})]}),a("div",{className:"hub__paymodal-field",children:[e("label",{className:"hub__paymodal-label",children:p}),e(c,{rows:3,value:C,onChange:a=>L("string"==typeof a?a:a?.target?.value??"")})]}),M.map(a=>e(j,{f:a,onChange:e=>Y(a,e)},f+"-"+a.label))]}),e("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-submit",children:e(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?a("span",{className:"hub__pay-name",children:[e("span",{className:"hub__pay-groupname",children:l.name}),e("span",{children:e(h,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:l.methodCount+" Yöntem"})})]}):e("span",{className:"hub__pay-name",children:a("span",{className:"hub__pay-title",children:[l.name,l.favorite&&e("i",{className:"hub__pay-mark hub__pay-mark--fav",title:i,children:e(r,{size:9})}),l.popular&&e("i",{className:"hub__pay-mark hub__pay-mark--hot",title:n,children:e(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{Search as r,Eye 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,HubHistName as g,HubStatusBadge as x,HubDt as w,HubCopyBtn 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:r,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:x="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(b,{value:t.key,compact:!0})},{key:"game",dataIndex:"game",title:p,maxWidth:200,render:(e,t)=>i(g,{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:x,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(d,{size:13}),B]})})}];return e(t,{children:[i(T,{cats:r,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(b,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:h,maxWidth:200,render:(e,t)=>i(g,{name:t.name,desc:t.sub})},{key:"status",dataIndex:"status",title:c,width:130,render:e=>i(x,{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:b="Geri Ödeme",amountTitle:f="Bonus Miktarı",creatorLabel:S="Oluşturan: "})=>{const B=[{key:"name",dataIndex:"name",title:m,maxWidth:200,render:(e,t)=>i(g,{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(x,{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:b,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(b,{value:t.key,compact:!0})},{key:"provider",dataIndex:"provider",title:T,maxWidth:200,render:(e,t)=>i(g,{name:t.provider})},{key:"status",dataIndex:"status",title:S,width:140,render:e=>i(x,{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(d,{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(b,{value:t.key,compact:!0})},{key:"provider",dataIndex:"provider",title:T,maxWidth:200,render:(e,t)=>i(g,{name:t.provider})},{key:"status",dataIndex:"status",title:B,width:140,render:e=>i(x,{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(r,{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,jsx as a,Fragment as l}from"react/jsx-runtime";import{useState as i}from"react";import{User as n,Trophy as r,Medal as s,Crown as d,TrendingUp as t,Gamepad2 as c,Folder as h,FileQuestion as m,Info as o,ChevronRight 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:l})=>a("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:[a("defs",{children:e("linearGradient",{id:"hub-gold",x1:"0",y1:"0",x2:"1",y2:"1",children:[a("stop",{offset:"0",stopColor:"#ffd54d"}),a("stop",{offset:"0.55",stopColor:"#f1ab00"}),a("stop",{offset:"1",stopColor:"#d98e00"})]})}),a("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)"})]}),a("span",{className:"hub__medal-glyph",children:a(l,{})})]})}),j=({medal:l,onOpen:i})=>e("button",{type:"button",className:"hub__medal"+(l.locked?" hub__medal--locked":""),onClick:()=>i(l),children:[a("span",{className:"hub__medal-visual",children:a(S,{Icon:l.Icon})}),e("span",{className:"hub__medal-bottom",children:[a("span",{className:"hub__medal-name",children:l.name}),a("span",{className:"hub__medal-countwrap",children:e("span",{className:"hub__medal-count",children:[a(n,{"aria-hidden":!0}),l.count]})})]})]}),z=({medal:l,durationLabel:i="Süre",quantityLabel:n="Miktar",earnersLabel:r="Hakeden Sayısı"})=>e("div",{className:"hub__medal-detail",children:[a("span",{className:"hub__medal-visual",children:a(S,{Icon:l.Icon})}),a("div",{className:"hub__medal-detail-name",children:l.name}),a("p",{className:"hub__medal-detail-desc",children:l.description}),e("dl",{className:"hub__medal-detail-rows",children:[e("div",{children:[a("dt",{children:i}),a("dd",{children:l.duration})]}),e("div",{children:[a("dt",{children:n}),a("dd",{children:l.quantity})]}),e("div",{children:[a("dt",{children:r}),a("dd",{children:l.count})]})]})]}),I=({marker:l,icon:i,title:n,titleExtra:r,action:s,children:d})=>e("section",{className:l?l+" 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]}),a("hr",{className:"hub__hairline"}),d]}),O=({stats:l})=>a("div",{className:"hub__stats inn-statistics-summary",children:l.map((l,i)=>e("div",{className:"hub__stat",children:[a("div",{className:"hub__stat-label",children:l.label}),a("div",{className:"hub__stat-value",children:l.value})]},i))}),D=({label:l,onClick:i})=>e(_,{variant:"link",size:"x-small",className:"hub__details",onClick:i,children:[l,a(u,{"aria-hidden":!0})]}),K=({user:i,vip:n,medals:r,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(l,{children:[e("div",{className:"inn-user-profile-summary hub__profile hub__profile--user",children:[i.avatar??a(g,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e("div",{children:[a("div",{className:"hub__username",children:i.username}),null!=i.fullname&&a("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:[a("div",{className:"inn-vip-level-title hub__vip-title",children:n.title}),a("span",{className:"hub__vip-dp",children:n.dp})]}),e(_,{size:"small",className:"hub__vip-btn",onClick:p,children:[a(d,{"aria-hidden":!0}),f]})]}),e("div",{className:"inn-vip-level-progress hub__vip-progress",children:[a(b,{percent:n.percent,showInfo:!1,status:"success"}),a("span",{className:"hub__vip-next",children:n.nextText})]})]}),a(I,{marker:"inn-medals-summary-box",icon:a(s,{"aria-hidden":!0}),title:y,action:a(D,{label:L,onClick:v}),children:a("div",{className:"inn-medals-summary hub__medals",children:r.slice(0,8).map(e=>a(j,{medal:e,onOpen:u},e.name))})}),a(I,{icon:a(t,{"aria-hidden":!0}),title:w,action:a(D,{label:L,onClick:N}),children:a(O,{stats:m})}),a(I,{marker:"inn-favorite-casino-games-summary-box",icon:a(c,{"aria-hidden":!0}),title:k,children:a("div",{className:"inn-favorite-casino-games-summary hub__games",children:o.map(l=>e("div",{className:"hub__game",children:[a("span",{className:"hub__game-art hub__game-art--"+l.art,"aria-hidden":!0,children:l.emoji}),e("div",{className:"hub__game-info",children:[a("div",{className:"hub__game-name",children:l.name}),e("div",{children:[a("div",{className:"hub__game-amount",children:l.amount}),a("div",{className:"hub__game-cur",children:C})]})]})]},l.name))})}),a(I,{marker:"inn-favorite-live-casino-games-summary-box",icon:a(c,{"aria-hidden":!0}),title:x,children:a("div",{className:"inn-favorite-live-casino-games-summary hub__games",children:[1,2,3].map(l=>e("div",{className:"hub__game hub__game--empty",children:[a(h,{"aria-hidden":!0}),a("span",{className:"hub__empty-text",children:T})]},l))})})]}),M=({tips:l,unitLabel:i="madalya:",winLabel:n="ödül kazan"})=>a("div",{className:"hub__reward-tips",children:l.map(([l,r],s)=>e("span",{className:"hub__reward-tip",children:[l," ",i," ",a("b",{children:r})," ",n]},s))}),Q=({tips:i,sheetTitle:n,unitLabel:r,winLabel:s})=>e(l,{children:[a("span",{className:"hub__reward-info hub__reward-info--hover",children:e(N,{children:[a(f,{children:a(o,{"aria-hidden":!0,className:"hub__reward-info-icon"})}),a(y,{variant:"filled",children:a(M,{tips:i,unitLabel:r,winLabel:s})})]})}),a("span",{className:"hub__reward-info hub__reward-info--sheet",children:e(w,{children:[a(k,{asChild:!0,children:a("button",{type:"button",className:"hub__reward-info-btn","aria-label":"string"==typeof n?n:void 0,children:a(o,{"aria-hidden":!0,className:"hub__reward-info-icon"})})}),e(x,{side:"bottom",children:[a(L,{children:a(C,{children:n})}),a(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:d,rewardPercent:t=10,onMedalOpen:c,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(l,{children:[e(I,{icon:a(r,{"aria-hidden":!0}),title:h,titleExtra:a(Q,{tips:d,sheetTitle:m,unitLabel:o,winLabel:u}),children:[a("div",{className:"hub__rewards",children:n.map(({label:l,emoji:i,lockable:n})=>e("div",{className:"hub__reward"+(n?" hub__reward--lockable":""),...n?{onClick:E}:{},children:[a("span",{className:"hub__reward-art","aria-hidden":!0,children:i}),a("span",{className:"hub__reward-label",children:l})]},l))}),a("div",{className:"hub__rewards-progress",children:a(b,{percent:t,showInfo:!1,status:"success"})})]}),a(I,{marker:"inn-completed-medals",icon:a(s,{"aria-hidden":!0}),title:_,action:a("span",{className:"hub__box-count",children:p}),children:a("div",{className:"hub__medals hub__medals--wrap",children:i.filter(e=>!e.locked).map(e=>a(j,{medal:e,onOpen:c},e.name))})}),a(I,{marker:"inn-awaiting-unlocking-medals",icon:a(s,{"aria-hidden":!0}),title:v,children:a("div",{className:"hub__medals hub__medals--wrap",children:i.filter(e=>e.locked).map(e=>a(j,{medal:e,onOpen:c},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:s,stats:d,gameTitle:c="Oyun",winTitle:h="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:(l,i)=>e("span",{className:"hub__cell-game",children:[a("span",{className:"hub__cell-big",children:String(l)}),a("span",{className:"hub__cell-sub",children:i.category+" / "+i.provider})]})},{dataIndex:"win",key:"win",title:h,render:e=>a("span",{className:"hub__cell-big",children:String(e)})},{dataIndex:"bet",key:"bet",title:o,render:e=>a("span",{className:"hub__cell-big",children:String(e)})},{dataIndex:"wagered",key:"wagered",title:u,width:"120px",render:e=>a("span",{className:"hub__cell-big hub__cell-cur",children:String(e)})}];return e(l,{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:[a(T,{value:"",children:b}),r.map(e=>a(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:[a(T,{value:P,children:g}),s.map(e=>a(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:[a(T,{value:P,children:N}),n.map(e=>a(T,{value:e.game,children:e.game},e.key))]})]}),a(I,{icon:a(t,{"aria-hidden":!0}),title:_,children:a(O,{stats:d})}),a("section",{className:"inn-statistics-game-stats-table hub__box hub__box--flush hub__stat-table",children:D.length>0?a(v,{columns:M,data:D,size:"medium",headerBg:!1}):e("div",{className:"hub__nodata",children:[a(m,{"aria-hidden":!0}),a("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{jsxs as e,Fragment as i,jsx 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:e})=>e?t(d,{type:"info",variant:"filled",children:t(k,{children:e})}):null,f=({start:i,end:a})=>e("span",{className:"hub__fsact-se",children:[t("span",{children:i}),t("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:(e,i)=>t(p,{value:i.key,compact:!0})},{key:"brand",dataIndex:"brand",title:k,maxWidth:460,render:(i,a)=>t("span",{className:"hub__pay-name hub__hist-nm",children:e("span",{className:"hub__bonus-name",children:[t("span",{className:"hub__bonus-title",children:a.brand}),e(c,{children:[t(m,{asChild:!0,children:t("i",{className:"hub__hist-creator","aria-label":z,children:t(l,{size:13})})}),t(h,{placement:"top",children:z+a.created})]})]})})},{key:"dates",dataIndex:"start",title:y,maxWidth:170,render:(e,i)=>t(f,{start:i.start,end:i.end})},{key:"status",dataIndex:"status",title:v,width:120,render:e=>t(u,{s:String(e)})},{key:"spins",dataIndex:"spins",title:T,width:90,render:e=>t("span",{className:"hub__fsact-num",children:String(e)})},{key:"days",dataIndex:"days",title:x,width:95,render:e=>t("span",{className:"hub__fsact-num",children:String(e)+N})},{key:"actions",dataIndex:"key",title:"",maxWidth:200,render:(e,i)=>t("span",{className:"hub__pay-actions",children:t(s,{variant:"default",size:"medium",onClick:()=>r(i),children:g})})}];return e(i,{children:[t(_,{children:n}),t(o,{columns:I,data:a,cellHeight:"84px",marker:d})]})},v=({name:i})=>e(c,{children:[t(m,{asChild:!0,children:t("span",{className:"hub__pay-name hub__hist-nm",children:t("span",{className:"hub__hist-name",children:i})})}),t(h,{placement:"top",children:i})]}),T={"Teslim Edildi":"success","Onay Bekliyor":"default",Reddedildi:"purple","Ulaşılamadı":"danger"},x=({s:e,tone:i=T})=>t(r,{variant:"default",color:i[e]??"default",size:"small",pill:!1,children:e}),N=({tickets:i})=>t("div",{className:"hub__tickets",children:i.map(i=>e("div",{className:"hub__ticket",children:[t("span",{children:i}),t(p,{value:i,compact:!0})]},i))}),z=({prizes:i,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=i.filter(e=>"reserve"===h?!!e.reserve:!e.reserve);return e("div",{className:"hub__prizes",children:[e("div",{className:"hub__prize-tabs",children:[t("button",{type:"button",className:"main"===h?"is-active":"",onClick:()=>o("main"),children:l}),t("button",{type:"button",className:"reserve"===h?"is-active":"",onClick:()=>o("reserve"),children:s})]}),0===u.length?t("div",{className:"hub__prize-empty",children:r}):t("div",{className:"hub__prize-list",children:u.map((i,a)=>e("div",{className:"hub__prize",children:[t("span",{className:"hub__prize-img",children:t(n,{size:22})}),e("div",{className:"hub__prize-body",children:[t("h4",{className:"hub__prize-title",children:i.name}),t("span",{children:t(x,{s:i.status,tone:m})}),i.reserve&&e("span",{className:"hub__prize-reserve",children:[t("b",{children:d})," ",(i.reserveOrder??0)+1]}),e("span",{className:"hub__prize-ticket",children:[t("b",{children:c}),t("span",{className:"hub__prize-code",children:i.ticket}),t(p,{value:i.ticket,compact:!0})]})]})]},i.ticket+"-"+a))})]})},g=(e,i,a,n,l,s)=>[{key:"id",dataIndex:"key",title:e,width:44,render:(e,i)=>t(p,{value:i.key,compact:!0})},{key:"name",dataIndex:"name",title:i,maxWidth:460,render:(e,i)=>t(v,{name:i.name})},{key:"start",dataIndex:"start",title:a,width:130,render:e=>t(b,{v:String(e)})},{key:"end",dataIndex:"end",title:n,width:130,render:e=>t(b,{v:String(e)})},{key:"status",dataIndex:"status",title:l,width:150,render:e=>t(u,{s:String(e)})},{key:"tickets",dataIndex:"tickets",title:s,width:110,render:(e,i)=>t("span",{className:"hub__fsact-num",children:i.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:(e,i)=>t("span",{className:"hub__pay-actions hub__pay-actions--full",children:i.tickets.length>0?t(s,{variant:"default",size:"medium",onClick:()=>l(i),children:c}):t(s,{variant:"default",size:"medium",onClick:r,children:m})})}];return e(i,{children:[t(_,{children:n}),t(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:(i,a)=>e("span",{className:"hub__pay-actions",children:[t(s,{variant:"default",size:"medium",disabled:!a.prizes||0===a.prizes.length,onClick:()=>l(a),children:c}),t(s,{variant:"default",size:"medium",disabled:0===a.tickets.length,onClick:()=>r(a),children:m})]})}];return e(i,{children:[t(_,{children:n}),t(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};