@inntechcorp/it-design 4.0.0-beta.2 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ACCESSIBILITY.md +61 -54
- package/LICENSE +201 -0
- package/MIGRATION.md +153 -0
- package/README.md +118 -71
- package/dist/cjs/_bundled/@radix-ui/primitive/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-context/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-id/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-escape-keydown/dist/index.js +1 -0
- package/dist/cjs/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
- package/dist/cjs/_bundled/aria-hidden/dist/es2015/index.js +1 -0
- package/dist/cjs/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
- package/dist/cjs/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
- package/dist/cjs/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
- package/dist/cjs/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
- package/dist/cjs/_bundled/get-nonce/dist/es2015/index.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
- package/dist/cjs/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
- package/dist/cjs/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
- package/dist/cjs/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
- package/dist/cjs/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
- package/dist/cjs/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
- package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
- package/dist/cjs/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
- package/dist/cjs/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
- package/dist/cjs/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
- package/dist/cjs/_bundled/vaul/dist/index.js +1 -0
- package/dist/cjs/_virtual/_tslib.js +1 -0
- package/dist/cjs/accordion/index.js +1 -1
- package/dist/cjs/accordion/item/Item.js +1 -1
- package/dist/cjs/accordion/submenu/SubMenu.js +1 -1
- package/dist/cjs/alert/Description.js +1 -1
- package/dist/cjs/alert/Title.js +1 -1
- package/dist/cjs/alert/index.js +1 -1
- package/dist/cjs/alink/index.js +1 -1
- package/dist/cjs/amount/index.js +1 -0
- package/dist/cjs/announcement-bar/index.js +1 -0
- package/dist/cjs/avatar/index.js +1 -0
- package/dist/cjs/back-top/index.js +1 -1
- package/dist/cjs/badge/index.js +1 -0
- package/dist/cjs/blocks/banner/index.js +1 -0
- package/dist/cjs/blocks/box-title/index.js +1 -0
- package/dist/cjs/blocks/casino-featured/index.js +1 -0
- package/dist/cjs/blocks/default-avatar/index.js +1 -0
- package/dist/cjs/blocks/embla/useEmblaState.js +1 -0
- package/dist/cjs/blocks/featured-games/index.js +1 -0
- package/dist/cjs/blocks/filter-tabs/index.js +1 -0
- package/dist/cjs/blocks/footer/index.js +1 -0
- package/dist/cjs/blocks/game-box/index.js +1 -0
- package/dist/cjs/blocks/game-carousel/index.js +1 -0
- package/dist/cjs/blocks/game-categories/Carousel.js +1 -0
- package/dist/cjs/blocks/game-categories/Mobile.js +1 -0
- package/dist/cjs/blocks/game-categories/index.js +1 -0
- package/dist/cjs/blocks/game-filter/index.js +1 -0
- package/dist/cjs/blocks/game-navigator/index.js +1 -0
- package/dist/cjs/blocks/game-providers/index.js +1 -0
- package/dist/cjs/blocks/game-providers/logos.js +1 -0
- package/dist/cjs/blocks/game-search/index.js +1 -0
- package/dist/cjs/blocks/game-shell/Browse.js +1 -0
- package/dist/cjs/blocks/game-shell/Settings.js +1 -0
- package/dist/cjs/blocks/game-shell/SwipeHint.js +1 -0
- package/dist/cjs/blocks/game-shell/index.js +1 -0
- package/dist/cjs/blocks/game-shell/useDrawerChrome.js +1 -0
- package/dist/cjs/blocks/games-grid/index.js +1 -0
- package/dist/cjs/blocks/header/index.js +1 -0
- package/dist/cjs/blocks/help/index.js +1 -0
- package/dist/cjs/blocks/last-winners/index.js +1 -0
- package/dist/cjs/blocks/layout-boxes/index.js +1 -0
- package/dist/cjs/blocks/mega-menu/index.js +1 -0
- package/dist/cjs/blocks/min-width-gate/index.js +1 -0
- package/dist/cjs/blocks/mobile-bottom-nav/index.js +1 -0
- package/dist/cjs/blocks/multiple-jackpots/TierCarousel.js +1 -0
- package/dist/cjs/blocks/multiple-jackpots/index.js +1 -0
- package/dist/cjs/blocks/notifications/index.js +1 -0
- package/dist/cjs/blocks/post-viewer/index.js +1 -0
- package/dist/cjs/blocks/promotions-grid/index.js +1 -0
- package/dist/cjs/blocks/raffle/index.js +1 -0
- package/dist/cjs/blocks/slider/index.js +1 -0
- package/dist/cjs/blocks/slider-double/index.js +1 -0
- package/dist/cjs/blocks/spacer/index.js +1 -0
- package/dist/cjs/blocks/sub-page-header/index.js +1 -0
- package/dist/cjs/blocks/tournaments/index.js +1 -0
- package/dist/cjs/blocks/user-hub/bonus.js +1 -0
- package/dist/cjs/blocks/user-hub/cashier.js +1 -0
- package/dist/cjs/blocks/user-hub/deposit.js +1 -0
- package/dist/cjs/blocks/user-hub/history.js +1 -0
- package/dist/cjs/blocks/user-hub/index.js +1 -0
- package/dist/cjs/blocks/user-hub/messages.js +1 -0
- package/dist/cjs/blocks/user-hub/platform.js +1 -0
- package/dist/cjs/blocks/user-hub/profile.js +1 -0
- package/dist/cjs/blocks/user-hub/raffles.js +1 -0
- package/dist/cjs/blocks/user-hub/settings.js +1 -0
- package/dist/cjs/blocks/user-hub/table.js +1 -0
- package/dist/cjs/blocks/user-hub/vip.js +1 -0
- package/dist/cjs/blocks/user-hub/withdraw.js +1 -0
- package/dist/cjs/button/index.js +1 -1
- package/dist/cjs/button-group/ButtonGroupContext.js +1 -0
- package/dist/cjs/button-group/index.js +1 -0
- package/dist/cjs/calendar/dates.js +1 -1
- package/dist/cjs/calendar/day/Day.js +1 -1
- package/dist/cjs/calendar/header/Header.js +1 -1
- package/dist/cjs/calendar/index.js +1 -1
- package/dist/cjs/calendar/range/RangeCalendar.js +1 -0
- package/dist/cjs/calendar/time/Time.js +1 -0
- package/dist/cjs/card/Card.js +1 -1
- package/dist/cjs/card/CardAction.js +1 -1
- package/dist/cjs/card/CardDescription.js +1 -1
- package/dist/cjs/card/CardTabs.js +1 -1
- package/dist/cjs/card/CardTitle.js +1 -1
- package/dist/cjs/chart/Fullscreen.js +1 -0
- package/dist/cjs/chart/index.js +1 -0
- package/dist/cjs/chart/palette.js +1 -0
- package/dist/cjs/checkbox/index.js +1 -1
- package/dist/cjs/code-input/index.js +1 -0
- package/dist/cjs/color-input/index.js +1 -0
- package/dist/cjs/coming-soon/index.js +1 -0
- package/dist/cjs/context/FormDefaultsContext.js +1 -0
- package/dist/cjs/context/ITDContext.js +1 -1
- package/dist/cjs/context/ITDThemeProvider.js +1 -1
- package/dist/cjs/context/PortalDocumentContext.js +1 -0
- package/dist/cjs/context-menu/ContextMenu.js +1 -0
- package/dist/cjs/context-menu/ContextMenuTrigger.js +1 -0
- package/dist/cjs/cropper/index.js +1 -0
- package/dist/cjs/data/phones.json.js +1 -0
- package/dist/cjs/datepicker/index.js +1 -1
- package/dist/cjs/dialog/Dialog.js +1 -0
- package/dist/cjs/dropdown-menu/CheckIcon.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenu.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuContent.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuItem.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuLabel.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuRadioItem.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSeparator.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSub.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSubContent.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
- package/dist/cjs/dropdown-menu/DropdownMenuTrigger.js +1 -0
- package/dist/cjs/dropdown-menu/MenuItemContext.js +1 -0
- package/dist/cjs/dropdown-menu/processChildren.js +1 -0
- package/dist/cjs/dropdown-menu/useMenuItemChrome.js +1 -0
- package/dist/cjs/dropdown-menu/useMenuKeyboard.js +1 -0
- package/dist/cjs/dropdown-menu/usePointerGraceArea.js +1 -0
- package/dist/cjs/dropdown-menu/useSubMenuRegistry.js +1 -0
- package/dist/cjs/enums/enum.js +1 -1
- package/dist/cjs/field/index.js +1 -0
- package/dist/cjs/flex/index.js +1 -1
- package/dist/cjs/floating/Arrow.js +1 -108
- package/dist/cjs/floating/FloatingContent.js +1 -38
- package/dist/cjs/floating/createFloatingTrigger.js +1 -0
- package/dist/cjs/form/context/FormStore.js +1 -1
- package/dist/cjs/form/control/Control.js +1 -1
- package/dist/cjs/form/index.js +1 -1
- package/dist/cjs/form/item/Item.js +1 -1
- package/dist/cjs/form/validation/Validator.js +1 -1
- package/dist/cjs/form/wrapper/FormWrapper.js +1 -1
- package/dist/cjs/helpers/array/ChunkArray.js +1 -1
- package/dist/cjs/helpers/binary/GetExtensionByMimeType.js +1 -0
- package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -1
- package/dist/cjs/helpers/checker/FileChecker.js +1 -1
- package/dist/cjs/helpers/classname/GetClassNameByPlatform.js +1 -0
- package/dist/cjs/helpers/config/defineITDConfig.js +1 -0
- package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -1
- package/dist/cjs/helpers/datetime/FormatDate.js +1 -1
- package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -1
- package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -1
- package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -1
- package/dist/cjs/helpers/datetime/FormatTime.js +1 -1
- package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -1
- package/dist/cjs/helpers/device/touchDevice.js +1 -0
- package/dist/cjs/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
- package/dist/cjs/helpers/phone/index.js +1 -0
- package/dist/cjs/helpers/phone/usePhoneCountry.js +1 -0
- package/dist/cjs/helpers/platform/index.js +1 -0
- package/dist/cjs/helpers/svg/SVGLoader.js +1 -1
- package/dist/cjs/helpers/theme/Color.js +1 -1
- package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -1
- package/dist/cjs/helpers/theme/colorOps.js +1 -0
- package/dist/cjs/helpers/theme/contrast.js +1 -0
- package/dist/cjs/helpers/theme/createTheme.js +1 -1
- package/dist/cjs/helpers/theme/cssVariables.js +1 -1
- package/dist/cjs/helpers/theme/dark.js +1 -1
- package/dist/cjs/helpers/theme/importShadcnTheme.js +1 -0
- package/dist/cjs/helpers/theme/presets.js +1 -1
- package/dist/cjs/helpers/theme/shadowScale.js +1 -0
- package/dist/cjs/helpers/theme/tokenSet.js +1 -0
- package/dist/cjs/helpers/unit/cssVars.js +1 -0
- package/dist/cjs/hooks/useCoreFetch.js +1 -1
- package/dist/cjs/hooks/useFloatingPosition.js +1 -1
- package/dist/cjs/hooks/useFloatingTrigger.js +1 -1
- package/dist/cjs/hooks/useFocusTrap.js +1 -1
- package/dist/cjs/hooks/useLoadMoreSentinel.js +1 -0
- package/dist/cjs/hooks/useMediaQuery.js +1 -0
- package/dist/cjs/hooks/useMultiQuery.js +1 -1
- package/dist/cjs/hooks/useNaturalRatio.js +1 -0
- package/dist/cjs/hooks/useOnClickOutside.js +1 -1
- package/dist/cjs/hooks/useOnESCKeyDown.js +1 -1
- package/dist/cjs/hooks/useOrientation.js +1 -1
- package/dist/cjs/hooks/useReCaptcha.js +1 -1
- package/dist/cjs/hooks/useRealm.js +1 -0
- package/dist/cjs/hooks/useSingleQuery.js +1 -1
- package/dist/cjs/hovercard/HoverCardContent.js +1 -1
- package/dist/cjs/hovercard/HoverCardTrigger.js +1 -1
- package/dist/cjs/html/header/H1.js +1 -1
- package/dist/cjs/html/header/H2.js +1 -1
- package/dist/cjs/html/header/H3.js +1 -1
- package/dist/cjs/html/header/H4.js +1 -1
- package/dist/cjs/icons/FileDocument.js +1 -0
- package/dist/cjs/icons/FileExcel.js +1 -0
- package/dist/cjs/icons/FilePdf.js +1 -0
- package/dist/cjs/image/index.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/input/index.js +1 -1
- package/dist/cjs/label/index.js +1 -1
- package/dist/cjs/locale/useITDLocale.js +1 -0
- package/dist/cjs/locales/en/calendar.json.js +1 -1
- package/dist/cjs/locales/en/itd.json.js +1 -1
- package/dist/cjs/locales/tr/calendar.json.js +1 -1
- package/dist/cjs/locales/tr/itd.json.js +1 -1
- package/dist/cjs/modal/container/ModalContainer.js +1 -1
- package/dist/cjs/modal/context/ModalContext.js +1 -1
- package/dist/cjs/modal/index.js +1 -1
- package/dist/cjs/modal/modal/Modal.js +1 -1
- package/dist/cjs/modal/useModalContent.js +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/page/BlockBoundary.js +1 -0
- package/dist/cjs/page/background.js +1 -0
- package/dist/cjs/page/blocks.js +1 -0
- package/dist/cjs/page/blocks.query.js +1 -0
- package/dist/cjs/page/checks.js +1 -0
- package/dist/cjs/page/context.js +1 -0
- package/dist/cjs/page/customCode.js +1 -0
- package/dist/cjs/page/editor/BlockForm.js +1 -0
- package/dist/cjs/page/editor/BlockPreview.js +1 -0
- package/dist/cjs/page/editor/CodeEditor.js +1 -0
- package/dist/cjs/page/editor/dropIndex.js +1 -0
- package/dist/cjs/page/editor/protocol.js +1 -0
- package/dist/cjs/page/editor/theme.js +1 -0
- package/dist/cjs/page/editor/useEditorBridge.js +1 -0
- package/dist/cjs/page/fields.js +1 -0
- package/dist/cjs/page/index.js +1 -0
- package/dist/cjs/page/layouts.js +1 -0
- package/dist/cjs/page/pageTypes.js +1 -0
- package/dist/cjs/page/sample.js +1 -0
- package/dist/cjs/page/settle.js +1 -0
- package/dist/cjs/page/types.js +1 -0
- package/dist/cjs/popover/Popover.js +1 -1
- package/dist/cjs/popover/PopoverContent.js +1 -1
- package/dist/cjs/popover/PopoverTrigger.js +1 -1
- package/dist/cjs/primitives/overlayStack.js +1 -0
- package/dist/cjs/primitives/scrollLock.js +1 -0
- package/dist/cjs/progress/index.js +1 -1
- package/dist/cjs/radio/RadioGroup.js +1 -0
- package/dist/cjs/radio/RadioGroupContext.js +1 -0
- package/dist/cjs/radio/RadioGroupItem.js +1 -0
- package/dist/cjs/rangepicker/index.js +1 -0
- package/dist/cjs/result/index.js +1 -1
- package/dist/cjs/router/ITDLink.js +1 -0
- package/dist/cjs/router/context.js +1 -0
- package/dist/cjs/router/hooks.js +1 -0
- package/dist/cjs/router/matchActive.js +1 -0
- package/dist/cjs/select/SelectGroup.js +1 -0
- package/dist/cjs/select/SelectItem.js +1 -0
- package/dist/cjs/select/SelectLabel.js +1 -0
- package/dist/cjs/select/SelectSeparator.js +1 -0
- package/dist/cjs/select/dropdown/Dropdown.js +1 -1
- package/dist/cjs/select/index.js +1 -1
- package/dist/cjs/select/option/Option.js +1 -1
- package/dist/cjs/select/selector/Selector.js +1 -1
- package/dist/cjs/select/selector/selectorinput/SelectorInput.js +1 -1
- package/dist/cjs/separator/index.js +1 -0
- package/dist/cjs/skeleton/index.js +1 -0
- package/dist/cjs/stat-card/index.js +1 -0
- package/dist/cjs/switch/index.js +1 -1
- package/dist/cjs/table/index.js +1 -1
- package/dist/cjs/table/paths.js +1 -0
- package/dist/cjs/table/primitives.js +1 -0
- package/dist/cjs/table/sort.js +1 -0
- package/dist/cjs/tabs/Tabs.js +1 -0
- package/dist/cjs/tabs/TabsContent.js +1 -0
- package/dist/cjs/tabs/TabsContext.js +1 -0
- package/dist/cjs/tabs/TabsList.js +1 -0
- package/dist/cjs/tabs/TabsTrigger.js +1 -0
- package/dist/cjs/textarea/index.js +1 -1
- package/dist/cjs/tinyscrollbar/index.js +1 -1
- package/dist/cjs/toast/index.js +1 -0
- package/dist/cjs/toggle-group/index.js +1 -0
- package/dist/cjs/tooltip/TooltipContent.js +1 -1
- package/dist/cjs/tooltip/TooltipTrigger.js +1 -1
- package/dist/cjs/types/InputProps.js +1 -1
- package/dist/cjs/upload/index.js +1 -1
- package/dist/cjs/utils/GetSizeBySizeSlug.js +1 -0
- package/dist/cjs/utils/InlineSVGCached.js +1 -1
- package/dist/cjs/utils/cn.js +1 -1
- package/dist/cjs/utils/focusModality.js +1 -0
- package/dist/css/accordion.css +13 -0
- package/dist/css/alert.css +1 -122
- package/dist/css/alink.css +1 -0
- package/dist/css/amount.css +1 -0
- package/dist/css/announcement-bar.css +1 -0
- package/dist/css/auth-page.css +3 -0
- package/dist/css/avatar.css +1 -0
- package/dist/css/back-top.css +1 -0
- package/dist/css/badge.css +241 -0
- package/dist/css/base.css +79 -366
- package/dist/css/block-form.css +3 -0
- package/dist/css/blocks-shared.css +13 -0
- package/dist/css/button-group.css +1 -0
- package/dist/css/button.css +9 -380
- package/dist/css/calendar.css +1 -0
- package/dist/css/card.css +1 -58
- package/dist/css/casino-featured.css +1 -0
- package/dist/css/chart.css +1 -0
- package/dist/css/checkbox.css +3 -251
- package/dist/css/code-input.css +7 -0
- package/dist/css/color-input.css +1 -0
- package/dist/css/coming-soon.css +1 -0
- package/dist/css/common.css +1 -116
- package/dist/css/components.css +1 -92
- package/dist/css/cropper.css +13 -0
- package/dist/css/datepicker.css +1 -75
- package/dist/css/default-avatar.css +1 -0
- package/dist/css/dialog.css +1 -0
- package/dist/css/dropdown-menu.css +1 -0
- package/dist/css/field.css +1 -0
- package/dist/css/filter-tabs.css +1 -0
- package/dist/css/flex.css +1 -0
- package/dist/css/floating.css +1 -0
- package/dist/css/footer.css +1 -0
- package/dist/css/form.css +1 -28
- package/dist/css/game-box.css +9 -0
- package/dist/css/game-carousel.css +1 -0
- package/dist/css/game-categories.css +1 -0
- package/dist/css/game-filter.css +1 -0
- package/dist/css/game-navigator.css +1 -0
- package/dist/css/game-providers.css +1 -0
- package/dist/css/game-search.css +1 -0
- package/dist/css/game-shell.css +1 -0
- package/dist/css/header.css +7 -0
- package/dist/css/help.css +1 -0
- package/dist/css/home-sections.css +1 -0
- package/dist/css/hovercard.css +1 -11
- package/dist/css/hstrip.css +1 -0
- package/dist/css/html-header.css +1 -0
- package/dist/css/image.css +1 -0
- package/dist/css/input.css +1 -421
- package/dist/css/label.css +1 -0
- package/dist/css/last-winners.css +1 -0
- package/dist/css/login.css +1 -0
- package/dist/css/mega-menu.css +1 -0
- package/dist/css/min-width-gate.css +1 -0
- package/dist/css/mobile-bottom-nav.css +1 -0
- package/dist/css/modal.css +11 -0
- package/dist/css/multiple-jackpots.css +5 -0
- package/dist/css/notifications-panel.css +5 -0
- package/dist/css/page.css +5 -0
- package/dist/css/popover.css +1 -10
- package/dist/css/post-viewer.css +1 -0
- package/dist/css/progress.css +1 -0
- package/dist/css/promotions-grid.css +7 -0
- package/dist/css/properties.css +4 -298
- package/dist/css/provider.css +1 -0
- package/dist/css/radio.css +1 -0
- package/dist/css/raffle.css +1 -0
- package/dist/css/rangepicker.css +1 -0
- package/dist/css/reset.css +4 -309
- package/dist/css/result.css +1 -0
- package/dist/css/select.css +1 -624
- package/dist/css/separator.css +1 -0
- package/dist/css/sheet.css +1 -0
- package/dist/css/skeleton.css +3 -0
- package/dist/css/slider.css +1 -0
- package/dist/css/spin.css +1 -31
- package/dist/css/stat-card.css +1 -0
- package/dist/css/sub-page-header.css +1 -0
- package/dist/css/svg-loader.css +1 -0
- package/dist/css/switch.css +1 -178
- package/dist/css/table.css +5 -0
- package/dist/css/tabs.css +1 -167
- package/dist/css/textarea.css +1 -208
- package/dist/css/tinyscrollbar.css +1 -0
- package/dist/css/toggle-group.css +1 -0
- package/dist/css/tooltip.css +1 -22
- package/dist/css/tournaments.css +15 -0
- package/dist/css/upload.css +1 -335
- package/dist/css/user-hub.css +1 -0
- package/dist/css/utilities.css +1 -565
- package/dist/css/vendor.css +9 -0
- package/dist/es/_bundled/@radix-ui/primitive/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-compose-refs/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-context/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-dialog/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-dismissable-layer/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-focus-guards/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-focus-scope/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-id/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-portal/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-presence/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-primitive/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-slot/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-callback-ref/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-controllable-state/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-escape-keydown/dist/index.js +1 -0
- package/dist/es/_bundled/@radix-ui/react-use-layout-effect/dist/index.js +1 -0
- package/dist/es/_bundled/aria-hidden/dist/es2015/index.js +1 -0
- package/dist/es/_bundled/embla-carousel/esm/embla-carousel.esm.js +1 -0
- package/dist/es/_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -0
- package/dist/es/_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js +1 -0
- package/dist/es/_bundled/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -0
- package/dist/es/_bundled/get-nonce/dist/es2015/index.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/Combination.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/SideEffect.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/UI.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/handleScroll.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/medium.js +1 -0
- package/dist/es/_bundled/react-remove-scroll/dist/es2015/sidecar.js +1 -0
- package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/component.js +1 -0
- package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/constants.js +1 -0
- package/dist/es/_bundled/react-remove-scroll-bar/dist/es2015/utils.js +1 -0
- package/dist/es/_bundled/react-style-singleton/dist/es2015/component.js +1 -0
- package/dist/es/_bundled/react-style-singleton/dist/es2015/hook.js +1 -0
- package/dist/es/_bundled/react-style-singleton/dist/es2015/singleton.js +1 -0
- package/dist/es/_bundled/use-callback-ref/dist/es2015/assignRef.js +1 -0
- package/dist/es/_bundled/use-callback-ref/dist/es2015/useMergeRef.js +1 -0
- package/dist/es/_bundled/use-callback-ref/dist/es2015/useRef.js +1 -0
- package/dist/es/_bundled/use-sidecar/dist/es2015/exports.js +1 -0
- package/dist/es/_bundled/use-sidecar/dist/es2015/medium.js +1 -0
- package/dist/es/_bundled/vaul/dist/index.js +1 -0
- package/dist/es/_virtual/_tslib.js +1 -0
- package/dist/es/accordion/index.js +1 -1
- package/dist/es/accordion/item/Item.js +1 -1
- package/dist/es/accordion/submenu/SubMenu.js +1 -1
- package/dist/es/alert/Description.js +1 -1
- package/dist/es/alert/Title.js +1 -1
- package/dist/es/alert/index.js +1 -1
- package/dist/es/alink/index.js +1 -1
- package/dist/es/amount/index.js +1 -0
- package/dist/es/announcement-bar/index.js +1 -0
- package/dist/es/avatar/index.js +1 -0
- package/dist/es/back-top/index.js +1 -1
- package/dist/es/badge/index.js +1 -0
- package/dist/es/blocks/banner/index.js +1 -0
- package/dist/es/blocks/box-title/index.js +1 -0
- package/dist/es/blocks/casino-featured/index.js +1 -0
- package/dist/es/blocks/default-avatar/index.js +1 -0
- package/dist/es/blocks/embla/useEmblaState.js +1 -0
- package/dist/es/blocks/featured-games/index.js +1 -0
- package/dist/es/blocks/filter-tabs/index.js +1 -0
- package/dist/es/blocks/footer/index.js +1 -0
- package/dist/es/blocks/game-box/index.js +1 -0
- package/dist/es/blocks/game-carousel/index.js +1 -0
- package/dist/es/blocks/game-categories/Carousel.js +1 -0
- package/dist/es/blocks/game-categories/Mobile.js +1 -0
- package/dist/es/blocks/game-categories/index.js +1 -0
- package/dist/es/blocks/game-filter/index.js +1 -0
- package/dist/es/blocks/game-navigator/index.js +1 -0
- package/dist/es/blocks/game-providers/index.js +1 -0
- package/dist/es/blocks/game-providers/logos.js +1 -0
- package/dist/es/blocks/game-search/index.js +1 -0
- package/dist/es/blocks/game-shell/Browse.js +1 -0
- package/dist/es/blocks/game-shell/Settings.js +1 -0
- package/dist/es/blocks/game-shell/SwipeHint.js +1 -0
- package/dist/es/blocks/game-shell/index.js +1 -0
- package/dist/es/blocks/game-shell/useDrawerChrome.js +1 -0
- package/dist/es/blocks/games-grid/index.js +1 -0
- package/dist/es/blocks/header/index.js +1 -0
- package/dist/es/blocks/help/index.js +1 -0
- package/dist/es/blocks/last-winners/index.js +1 -0
- package/dist/es/blocks/layout-boxes/index.js +1 -0
- package/dist/es/blocks/mega-menu/index.js +1 -0
- package/dist/es/blocks/min-width-gate/index.js +1 -0
- package/dist/es/blocks/mobile-bottom-nav/index.js +1 -0
- package/dist/es/blocks/multiple-jackpots/TierCarousel.js +1 -0
- package/dist/es/blocks/multiple-jackpots/index.js +1 -0
- package/dist/es/blocks/notifications/index.js +1 -0
- package/dist/es/blocks/post-viewer/index.js +1 -0
- package/dist/es/blocks/promotions-grid/index.js +1 -0
- package/dist/es/blocks/raffle/index.js +1 -0
- package/dist/es/blocks/slider/index.js +1 -0
- package/dist/es/blocks/slider-double/index.js +1 -0
- package/dist/es/blocks/spacer/index.js +1 -0
- package/dist/es/blocks/sub-page-header/index.js +1 -0
- package/dist/es/blocks/tournaments/index.js +1 -0
- package/dist/es/blocks/user-hub/bonus.js +1 -0
- package/dist/es/blocks/user-hub/cashier.js +1 -0
- package/dist/es/blocks/user-hub/deposit.js +1 -0
- package/dist/es/blocks/user-hub/history.js +1 -0
- package/dist/es/blocks/user-hub/index.js +1 -0
- package/dist/es/blocks/user-hub/messages.js +1 -0
- package/dist/es/blocks/user-hub/platform.js +1 -0
- package/dist/es/blocks/user-hub/profile.js +1 -0
- package/dist/es/blocks/user-hub/raffles.js +1 -0
- package/dist/es/blocks/user-hub/settings.js +1 -0
- package/dist/es/blocks/user-hub/table.js +1 -0
- package/dist/es/blocks/user-hub/vip.js +1 -0
- package/dist/es/blocks/user-hub/withdraw.js +1 -0
- package/dist/es/button/index.js +1 -1
- package/dist/es/button-group/ButtonGroupContext.js +1 -0
- package/dist/es/button-group/index.js +1 -0
- package/dist/es/calendar/dates.js +1 -1
- package/dist/es/calendar/day/Day.js +1 -1
- package/dist/es/calendar/header/Header.js +1 -1
- package/dist/es/calendar/index.js +1 -1
- package/dist/es/calendar/range/RangeCalendar.js +1 -0
- package/dist/es/calendar/time/Time.js +1 -0
- package/dist/es/card/Card.js +1 -1
- package/dist/es/card/CardAction.js +1 -1
- package/dist/es/card/CardDescription.js +1 -1
- package/dist/es/card/CardTabs.js +1 -1
- package/dist/es/card/CardTitle.js +1 -1
- package/dist/es/chart/Fullscreen.js +1 -0
- package/dist/es/chart/index.js +1 -0
- package/dist/es/chart/palette.js +1 -0
- package/dist/es/checkbox/index.js +1 -1
- package/dist/es/code-input/index.js +1 -0
- package/dist/es/color-input/index.js +1 -0
- package/dist/es/coming-soon/index.js +1 -0
- package/dist/es/context/FormDefaultsContext.js +1 -0
- package/dist/es/context/ITDContext.js +1 -1
- package/dist/es/context/ITDThemeProvider.js +1 -1
- package/dist/es/context/PortalDocumentContext.js +1 -0
- package/dist/es/context-menu/ContextMenu.js +1 -0
- package/dist/es/context-menu/ContextMenuTrigger.js +1 -0
- package/dist/es/cropper/index.js +1 -0
- package/dist/es/data/phones.json.js +1 -0
- package/dist/es/datepicker/index.js +1 -1
- package/dist/es/dialog/Dialog.js +1 -0
- package/dist/es/dropdown-menu/CheckIcon.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenu.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuCheckboxItem.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuContent.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuItem.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuLabel.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuRadioGroup.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuRadioItem.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSeparator.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSub.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSubContent.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuSubTrigger.js +1 -0
- package/dist/es/dropdown-menu/DropdownMenuTrigger.js +1 -0
- package/dist/es/dropdown-menu/MenuItemContext.js +1 -0
- package/dist/es/dropdown-menu/processChildren.js +1 -0
- package/dist/es/dropdown-menu/useMenuItemChrome.js +1 -0
- package/dist/es/dropdown-menu/useMenuKeyboard.js +1 -0
- package/dist/es/dropdown-menu/usePointerGraceArea.js +1 -0
- package/dist/es/dropdown-menu/useSubMenuRegistry.js +1 -0
- package/dist/es/enums/enum.js +1 -1
- package/dist/es/field/index.js +1 -0
- package/dist/es/flex/index.js +1 -1
- package/dist/es/floating/Arrow.js +1 -108
- package/dist/es/floating/FloatingContent.js +1 -38
- package/dist/es/floating/createFloatingTrigger.js +1 -0
- package/dist/es/form/context/FormStore.js +1 -1
- package/dist/es/form/control/Control.js +1 -1
- package/dist/es/form/index.js +1 -1
- package/dist/es/form/item/Item.js +1 -1
- package/dist/es/form/validation/Validator.js +1 -1
- package/dist/es/form/wrapper/FormWrapper.js +1 -1
- package/dist/es/helpers/array/ChunkArray.js +1 -1
- package/dist/es/helpers/binary/GetExtensionByMimeType.js +1 -0
- package/dist/es/helpers/binary/GetTypeByFileType.js +1 -1
- package/dist/es/helpers/checker/FileChecker.js +1 -1
- package/dist/es/helpers/classname/GetClassNameByPlatform.js +1 -0
- package/dist/es/helpers/config/defineITDConfig.js +1 -0
- package/dist/es/helpers/currency/ConvertCurrency.js +1 -1
- package/dist/es/helpers/datetime/FormatDate.js +1 -1
- package/dist/es/helpers/datetime/FormatDateTime.js +1 -1
- package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -1
- package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -1
- package/dist/es/helpers/datetime/FormatTime.js +1 -1
- package/dist/es/helpers/datetime/dayjsSetup.js +1 -1
- package/dist/es/helpers/device/touchDevice.js +1 -0
- package/dist/es/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
- package/dist/es/helpers/phone/index.js +1 -0
- package/dist/es/helpers/phone/usePhoneCountry.js +1 -0
- package/dist/es/helpers/platform/index.js +1 -0
- package/dist/es/helpers/svg/SVGLoader.js +1 -1
- package/dist/es/helpers/theme/Color.js +1 -1
- package/dist/es/helpers/theme/GenerateColorScale.js +1 -1
- package/dist/es/helpers/theme/colorOps.js +1 -0
- package/dist/es/helpers/theme/contrast.js +1 -0
- package/dist/es/helpers/theme/createTheme.js +1 -1
- package/dist/es/helpers/theme/cssVariables.js +1 -1
- package/dist/es/helpers/theme/dark.js +1 -1
- package/dist/es/helpers/theme/importShadcnTheme.js +1 -0
- package/dist/es/helpers/theme/presets.js +1 -1
- package/dist/es/helpers/theme/shadowScale.js +1 -0
- package/dist/es/helpers/theme/tokenSet.js +1 -0
- package/dist/es/helpers/unit/cssVars.js +1 -0
- package/dist/es/hooks/useCoreFetch.js +1 -1
- package/dist/es/hooks/useFloatingPosition.js +1 -1
- package/dist/es/hooks/useFloatingTrigger.js +1 -1
- package/dist/es/hooks/useFocusTrap.js +1 -1
- package/dist/es/hooks/useLoadMoreSentinel.js +1 -0
- package/dist/es/hooks/useMediaQuery.js +1 -0
- package/dist/es/hooks/useMultiQuery.js +1 -1
- package/dist/es/hooks/useNaturalRatio.js +1 -0
- package/dist/es/hooks/useOnClickOutside.js +1 -1
- package/dist/es/hooks/useOnESCKeyDown.js +1 -1
- package/dist/es/hooks/useOrientation.js +1 -1
- package/dist/es/hooks/useReCaptcha.js +1 -1
- package/dist/es/hooks/useRealm.js +1 -0
- package/dist/es/hooks/useSingleQuery.js +1 -1
- package/dist/es/hovercard/HoverCardContent.js +1 -1
- package/dist/es/hovercard/HoverCardTrigger.js +1 -1
- package/dist/es/html/header/H1.js +1 -1
- package/dist/es/html/header/H2.js +1 -1
- package/dist/es/html/header/H3.js +1 -1
- package/dist/es/html/header/H4.js +1 -1
- package/dist/es/icons/FileDocument.js +1 -0
- package/dist/es/icons/FileExcel.js +1 -0
- package/dist/es/icons/FilePdf.js +1 -0
- package/dist/es/image/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/input/index.js +1 -1
- package/dist/es/label/index.js +1 -1
- package/dist/es/locale/useITDLocale.js +1 -0
- package/dist/es/locales/en/calendar.json.js +1 -1
- package/dist/es/locales/en/itd.json.js +1 -1
- package/dist/es/locales/tr/calendar.json.js +1 -1
- package/dist/es/locales/tr/itd.json.js +1 -1
- package/dist/es/modal/container/ModalContainer.js +1 -1
- package/dist/es/modal/context/ModalContext.js +1 -1
- package/dist/es/modal/index.js +1 -1
- package/dist/es/modal/modal/Modal.js +1 -1
- package/dist/es/modal/useModalContent.js +1 -0
- package/dist/es/package.json +3 -0
- package/dist/es/page/BlockBoundary.js +1 -0
- package/dist/es/page/background.js +1 -0
- package/dist/es/page/blocks.js +1 -0
- package/dist/es/page/blocks.query.js +1 -0
- package/dist/es/page/checks.js +1 -0
- package/dist/es/page/context.js +1 -0
- package/dist/es/page/customCode.js +1 -0
- package/dist/es/page/editor/BlockForm.js +1 -0
- package/dist/es/page/editor/BlockPreview.js +1 -0
- package/dist/es/page/editor/CodeEditor.js +1 -0
- package/dist/es/page/editor/dropIndex.js +1 -0
- package/dist/es/page/editor/protocol.js +1 -0
- package/dist/es/page/editor/theme.js +1 -0
- package/dist/es/page/editor/useEditorBridge.js +1 -0
- package/dist/es/page/fields.js +1 -0
- package/dist/es/page/index.js +1 -0
- package/dist/es/page/layouts.js +1 -0
- package/dist/es/page/pageTypes.js +1 -0
- package/dist/es/page/sample.js +1 -0
- package/dist/es/page/settle.js +1 -0
- package/dist/es/page/types.js +1 -0
- package/dist/es/popover/Popover.js +1 -1
- package/dist/es/popover/PopoverContent.js +1 -1
- package/dist/es/popover/PopoverTrigger.js +1 -1
- package/dist/es/primitives/overlayStack.js +1 -0
- package/dist/es/primitives/scrollLock.js +1 -0
- package/dist/es/progress/index.js +1 -1
- package/dist/es/radio/RadioGroup.js +1 -0
- package/dist/es/radio/RadioGroupContext.js +1 -0
- package/dist/es/radio/RadioGroupItem.js +1 -0
- package/dist/es/rangepicker/index.js +1 -0
- package/dist/es/result/index.js +1 -1
- package/dist/es/router/ITDLink.js +1 -0
- package/dist/es/router/context.js +1 -0
- package/dist/es/router/hooks.js +1 -0
- package/dist/es/router/matchActive.js +1 -0
- package/dist/es/select/SelectGroup.js +1 -0
- package/dist/es/select/SelectItem.js +1 -0
- package/dist/es/select/SelectLabel.js +1 -0
- package/dist/es/select/SelectSeparator.js +1 -0
- package/dist/es/select/dropdown/Dropdown.js +1 -1
- package/dist/es/select/index.js +1 -1
- package/dist/es/select/option/Option.js +1 -1
- package/dist/es/select/selector/Selector.js +1 -1
- package/dist/es/select/selector/selectorinput/SelectorInput.js +1 -1
- package/dist/es/separator/index.js +1 -0
- package/dist/es/skeleton/index.js +1 -0
- package/dist/es/stat-card/index.js +1 -0
- package/dist/es/switch/index.js +1 -1
- package/dist/es/table/index.js +1 -1
- package/dist/es/table/paths.js +1 -0
- package/dist/es/table/primitives.js +1 -0
- package/dist/es/table/sort.js +1 -0
- package/dist/es/tabs/Tabs.js +1 -0
- package/dist/es/tabs/TabsContent.js +1 -0
- package/dist/es/tabs/TabsContext.js +1 -0
- package/dist/es/tabs/TabsList.js +1 -0
- package/dist/es/tabs/TabsTrigger.js +1 -0
- package/dist/es/textarea/index.js +1 -1
- package/dist/es/tinyscrollbar/index.js +1 -1
- package/dist/es/toast/index.js +1 -0
- package/dist/es/toggle-group/index.js +1 -0
- package/dist/es/tooltip/TooltipContent.js +1 -1
- package/dist/es/tooltip/TooltipTrigger.js +1 -1
- package/dist/es/types/InputProps.js +1 -1
- package/dist/es/upload/index.js +1 -1
- package/dist/es/utils/GetSizeBySizeSlug.js +1 -0
- package/dist/es/utils/InlineSVGCached.js +1 -1
- package/dist/es/utils/cn.js +1 -1
- package/dist/es/utils/focusModality.js +1 -0
- package/dist/global.css +478 -46
- package/dist/index.d.ts +9758 -2080
- package/dist/locales/calendar.json +12 -15
- package/dist/locales/en/calendar.json +12 -15
- package/dist/locales/en/itd.json +67 -22
- package/dist/locales/itd.json +68 -24
- package/dist/locales/tr/calendar.json +12 -15
- package/dist/locales/tr/itd.json +68 -24
- package/package.json +60 -64
- package/dist/accordion/index.d.ts +0 -14
- package/dist/accordion/item/Item.d.ts +0 -3
- package/dist/accordion/item/styled.d.ts +0 -6
- package/dist/accordion/submenu/SubMenu.d.ts +0 -2
- package/dist/accordion/submenu/styled.d.ts +0 -15
- package/dist/alert/Description.d.ts +0 -7
- package/dist/alert/Title.d.ts +0 -7
- package/dist/alert/index.d.ts +0 -8
- package/dist/alink/index.d.ts +0 -2
- package/dist/alink/styled.d.ts +0 -2
- package/dist/back-top/index.d.ts +0 -1
- package/dist/back-top/styled.d.ts +0 -5
- package/dist/button/index.d.ts +0 -11
- package/dist/calendar/dates.d.ts +0 -2
- package/dist/calendar/day/Day.d.ts +0 -5
- package/dist/calendar/day/styled.d.ts +0 -7
- package/dist/calendar/header/Header.d.ts +0 -1
- package/dist/calendar/header/styled.d.ts +0 -7
- package/dist/calendar/index.d.ts +0 -18
- package/dist/calendar/styled.d.ts +0 -7
- package/dist/card/Card.d.ts +0 -9
- package/dist/card/CardAction.d.ts +0 -7
- package/dist/card/CardContent.d.ts +0 -7
- package/dist/card/CardDescription.d.ts +0 -7
- package/dist/card/CardFooter.d.ts +0 -7
- package/dist/card/CardHeader.d.ts +0 -8
- package/dist/card/CardTabs.d.ts +0 -7
- package/dist/card/CardTitle.d.ts +0 -7
- package/dist/card/index.d.ts +0 -8
- package/dist/checkbox/group/index.d.ts +0 -3
- package/dist/checkbox/index.d.ts +0 -10
- package/dist/cjs/_virtual/_commonjsHelpers.js +0 -1
- package/dist/cjs/_virtual/customParseFormat.js +0 -1
- package/dist/cjs/_virtual/customParseFormat2.js +0 -1
- package/dist/cjs/_virtual/dayjs.min.js +0 -1
- package/dist/cjs/_virtual/dayjs.min2.js +0 -1
- package/dist/cjs/_virtual/localizedFormat.js +0 -1
- package/dist/cjs/_virtual/localizedFormat2.js +0 -1
- package/dist/cjs/_virtual/react.js +0 -1
- package/dist/cjs/accordion/item/styled.js +0 -20
- package/dist/cjs/accordion/styled.js +0 -15
- package/dist/cjs/accordion/submenu/styled.js +0 -214
- package/dist/cjs/alink/styled.js +0 -5
- package/dist/cjs/back-top/styled.js +0 -25
- package/dist/cjs/calendar/day/styled.js +0 -91
- package/dist/cjs/calendar/header/styled.js +0 -196
- package/dist/cjs/calendar/styled.js +0 -82
- package/dist/cjs/checkbox/group/index.js +0 -1
- package/dist/cjs/context/styled.js +0 -15
- package/dist/cjs/flex/styled.js +0 -35
- package/dist/cjs/helpers/svg/styles.js +0 -22
- package/dist/cjs/helpers/theme/tokens.js +0 -1
- package/dist/cjs/html/header/styled.js +0 -33
- package/dist/cjs/image/styled.js +0 -4
- package/dist/cjs/modal/container/styled.js +0 -18
- package/dist/cjs/modal/modal/styled.js +0 -128
- package/dist/cjs/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
- package/dist/cjs/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
- package/dist/cjs/node_modules/clsx/dist/clsx.js +0 -1
- package/dist/cjs/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/cjs/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/cjs/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/cjs/node_modules/fast-deep-equal/react.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/_root.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isArray.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isObject.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/cjs/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/cjs/node_modules/lodash-es/toString.js +0 -1
- package/dist/cjs/node_modules/lodash-es/uniqueId.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/Icon.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye-off.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/eye.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/image-off.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/info.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/lock.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/minus.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/plus.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/trash.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/upload.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/x.js +0 -8
- package/dist/cjs/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
- package/dist/cjs/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
- package/dist/cjs/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
- package/dist/cjs/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
- package/dist/cjs/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
- package/dist/cjs/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
- package/dist/cjs/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1
- package/dist/cjs/notification/container/Container.js +0 -1
- package/dist/cjs/notification/container/styled.js +0 -26
- package/dist/cjs/notification/context/NotificationsContext.js +0 -1
- package/dist/cjs/notification/index.js +0 -1
- package/dist/cjs/notification/item/Item.js +0 -1
- package/dist/cjs/notification/item/styled.js +0 -42
- package/dist/cjs/progress/styled.js +0 -59
- package/dist/cjs/radio/button/RadioButton.js +0 -1
- package/dist/cjs/radio/button/styled.js +0 -133
- package/dist/cjs/radio/group/Group.js +0 -1
- package/dist/cjs/radio/group/styled.js +0 -7
- package/dist/cjs/radio/index.js +0 -1
- package/dist/cjs/result/styled.js +0 -109
- package/dist/cjs/status/index.js +0 -1
- package/dist/cjs/table/styled.js +0 -458
- package/dist/cjs/tabs/index.js +0 -1
- package/dist/cjs/tinyscrollbar/scroll.styled.js +0 -21
- package/dist/context/ITDContext.d.ts +0 -25
- package/dist/context/ITDThemeProvider.d.ts +0 -11
- package/dist/context/styled.d.ts +0 -2
- package/dist/css/status.css +0 -74
- package/dist/datepicker/index.d.ts +0 -3
- package/dist/enums/enum.d.ts +0 -209
- package/dist/es/_virtual/_commonjsHelpers.js +0 -1
- package/dist/es/_virtual/customParseFormat.js +0 -1
- package/dist/es/_virtual/customParseFormat2.js +0 -1
- package/dist/es/_virtual/dayjs.min.js +0 -1
- package/dist/es/_virtual/dayjs.min2.js +0 -1
- package/dist/es/_virtual/localizedFormat.js +0 -1
- package/dist/es/_virtual/localizedFormat2.js +0 -1
- package/dist/es/_virtual/react.js +0 -1
- package/dist/es/accordion/item/styled.js +0 -20
- package/dist/es/accordion/styled.js +0 -15
- package/dist/es/accordion/submenu/styled.js +0 -214
- package/dist/es/alink/styled.js +0 -5
- package/dist/es/back-top/styled.js +0 -25
- package/dist/es/calendar/day/styled.js +0 -91
- package/dist/es/calendar/header/styled.js +0 -196
- package/dist/es/calendar/styled.js +0 -82
- package/dist/es/checkbox/group/index.js +0 -1
- package/dist/es/context/styled.js +0 -15
- package/dist/es/flex/styled.js +0 -35
- package/dist/es/helpers/svg/styles.js +0 -22
- package/dist/es/helpers/theme/tokens.js +0 -1
- package/dist/es/html/header/styled.js +0 -33
- package/dist/es/image/styled.js +0 -4
- package/dist/es/modal/container/styled.js +0 -18
- package/dist/es/modal/modal/styled.js +0 -128
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring_animated.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/core/dist/react-spring_core.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring_shared.modern.js +0 -1
- package/dist/es/node_modules/@react-spring/web/dist/react-spring_web.modern.js +0 -1
- package/dist/es/node_modules/clsx/dist/clsx.js +0 -1
- package/dist/es/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/es/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/es/node_modules/dayjs/plugin/localizedFormat.js +0 -1
- package/dist/es/node_modules/fast-deep-equal/react.js +0 -1
- package/dist/es/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/es/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/es/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/es/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/es/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/es/node_modules/lodash-es/_root.js +0 -1
- package/dist/es/node_modules/lodash-es/isArray.js +0 -1
- package/dist/es/node_modules/lodash-es/isObject.js +0 -1
- package/dist/es/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/es/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/es/node_modules/lodash-es/toString.js +0 -1
- package/dist/es/node_modules/lodash-es/uniqueId.js +0 -1
- package/dist/es/node_modules/lucide-react/dist/esm/Icon.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/calendar-1.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/circle-x.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/eye-off.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/eye.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/image-off.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/info.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/lock.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/minus.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/plus.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/trash.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/upload.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/icons/x.js +0 -7
- package/dist/es/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -7
- package/dist/es/node_modules/overlayscrollbars/overlayscrollbars.js +0 -10
- package/dist/es/node_modules/overlayscrollbars/styles/overlayscrollbars.css.js +0 -1
- package/dist/es/node_modules/react-number-format/dist/react-number-format.es.js +0 -1
- package/dist/es/node_modules/rollup-plugin-node-globals/src/global.js +0 -1
- package/dist/es/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +0 -1
- package/dist/es/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1
- package/dist/es/notification/container/Container.js +0 -1
- package/dist/es/notification/container/styled.js +0 -26
- package/dist/es/notification/context/NotificationsContext.js +0 -1
- package/dist/es/notification/index.js +0 -1
- package/dist/es/notification/item/Item.js +0 -1
- package/dist/es/notification/item/styled.js +0 -42
- package/dist/es/progress/styled.js +0 -59
- package/dist/es/radio/button/RadioButton.js +0 -1
- package/dist/es/radio/button/styled.js +0 -133
- package/dist/es/radio/group/Group.js +0 -1
- package/dist/es/radio/group/styled.js +0 -7
- package/dist/es/radio/index.js +0 -1
- package/dist/es/result/styled.js +0 -109
- package/dist/es/status/index.js +0 -1
- package/dist/es/table/styled.js +0 -458
- package/dist/es/tabs/index.js +0 -1
- package/dist/es/tinyscrollbar/scroll.styled.js +0 -21
- package/dist/flex/index.d.ts +0 -3
- package/dist/flex/styled.d.ts +0 -10
- package/dist/floating/Arrow.d.ts +0 -17
- package/dist/floating/FloatingContent.d.ts +0 -60
- package/dist/floating/mergeTriggerProps.d.ts +0 -8
- package/dist/form/context/FormContext.d.ts +0 -38
- package/dist/form/context/FormRegistry.d.ts +0 -13
- package/dist/form/context/FormStore.d.ts +0 -15
- package/dist/form/control/Control.d.ts +0 -8
- package/dist/form/group/Group.d.ts +0 -17
- package/dist/form/index.d.ts +0 -20
- package/dist/form/item/Item.d.ts +0 -17
- package/dist/form/validation/TCIdentity.d.ts +0 -1
- package/dist/form/validation/Validator.d.ts +0 -19
- package/dist/form/wrapper/FormWrapper.d.ts +0 -14
- package/dist/helpers/array/ChunkArray.d.ts +0 -7
- package/dist/helpers/aspectratio/DetermineNewHeight.d.ts +0 -1
- package/dist/helpers/aspectratio/DetermineNewWidth.d.ts +0 -1
- package/dist/helpers/base64/Base64Decode.d.ts +0 -1
- package/dist/helpers/base64/Base64Encode.d.ts +0 -1
- package/dist/helpers/binary/FormatBytes.d.ts +0 -1
- package/dist/helpers/binary/GetTypeByFileType.d.ts +0 -2
- package/dist/helpers/checker/CheckFileURL.d.ts +0 -1
- package/dist/helpers/checker/FileChecker.d.ts +0 -7
- package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +0 -1
- package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +0 -1
- package/dist/helpers/css/FindSelector.d.ts +0 -11
- package/dist/helpers/currency/ConvertCurrency.d.ts +0 -1
- package/dist/helpers/currency/GetByCurrency.d.ts +0 -1
- package/dist/helpers/currency/GetCurrencyFormat.d.ts +0 -10
- package/dist/helpers/currency/GetCurrencySymbol.d.ts +0 -1
- package/dist/helpers/currency/GetDecimalByCurrency.d.ts +0 -1
- package/dist/helpers/datetime/FormatDate.d.ts +0 -1
- package/dist/helpers/datetime/FormatDateTime.d.ts +0 -1
- package/dist/helpers/datetime/FormatSimpleDate.d.ts +0 -1
- package/dist/helpers/datetime/FormatSimpleDateTime.d.ts +0 -1
- package/dist/helpers/datetime/FormatTime.d.ts +0 -2
- package/dist/helpers/datetime/dayjsSetup.d.ts +0 -2
- package/dist/helpers/format/ToKebabCase.d.ts +0 -27
- package/dist/helpers/index.d.ts +0 -35
- package/dist/helpers/json/IsValidJSON.d.ts +0 -1
- package/dist/helpers/math/AddZero.d.ts +0 -1
- package/dist/helpers/promise/Wait.d.ts +0 -1
- package/dist/helpers/remover/RemoveUnits.d.ts +0 -1
- package/dist/helpers/string/UniUpperCase.d.ts +0 -6
- package/dist/helpers/svg/SVGLoader.d.ts +0 -2
- package/dist/helpers/svg/styles.d.ts +0 -5
- package/dist/helpers/theme/AddDefaultThemeStyle.d.ts +0 -4
- package/dist/helpers/theme/Color.d.ts +0 -19
- package/dist/helpers/theme/GenerateColorScale.d.ts +0 -16
- package/dist/helpers/theme/createTheme.d.ts +0 -8
- package/dist/helpers/theme/cssVariables.d.ts +0 -41
- package/dist/helpers/theme/dark.d.ts +0 -3
- package/dist/helpers/theme/index.d.ts +0 -12
- package/dist/helpers/theme/light.d.ts +0 -3
- package/dist/helpers/theme/presets.d.ts +0 -12
- package/dist/helpers/theme/themes.d.ts +0 -5
- package/dist/helpers/theme/tokens.d.ts +0 -392
- package/dist/helpers/unit/AddDefaultUnit.d.ts +0 -1
- package/dist/helpers/url/ValidURL.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -15
- package/dist/hooks/useAddExternalCSS.d.ts +0 -13
- package/dist/hooks/useAvoidCollision.d.ts +0 -21
- package/dist/hooks/useComponentSize.d.ts +0 -6
- package/dist/hooks/useConnectionStatus.d.ts +0 -11
- package/dist/hooks/useConstructor.d.ts +0 -11
- package/dist/hooks/useContextBridge.d.ts +0 -7
- package/dist/hooks/useCoreFetch.d.ts +0 -37
- package/dist/hooks/useFloatingPosition.d.ts +0 -63
- package/dist/hooks/useFloatingTrigger.d.ts +0 -64
- package/dist/hooks/useFocusTrap.d.ts +0 -36
- package/dist/hooks/useKeyboardShortcut.d.ts +0 -6
- package/dist/hooks/useMultiQuery.d.ts +0 -7
- package/dist/hooks/useOnClickOutside.d.ts +0 -12
- package/dist/hooks/useOnESCKeyDown.d.ts +0 -10
- package/dist/hooks/useOnResize.d.ts +0 -10
- package/dist/hooks/useOrientation.d.ts +0 -3
- package/dist/hooks/useReCaptcha.d.ts +0 -7
- package/dist/hooks/useSingleQuery.d.ts +0 -18
- package/dist/hovercard/HoverCard.d.ts +0 -12
- package/dist/hovercard/HoverCardContent.d.ts +0 -22
- package/dist/hovercard/HoverCardTrigger.d.ts +0 -17
- package/dist/hovercard/hoverCardContext.d.ts +0 -7
- package/dist/hovercard/index.d.ts +0 -4
- package/dist/html/header/H1.d.ts +0 -5
- package/dist/html/header/H2.d.ts +0 -5
- package/dist/html/header/H3.d.ts +0 -5
- package/dist/html/header/H4.d.ts +0 -5
- package/dist/html/header/index.d.ts +0 -4
- package/dist/html/header/styled.d.ts +0 -5
- package/dist/icons/Arrow.d.ts +0 -6
- package/dist/icons/BackToTop.d.ts +0 -6
- package/dist/icons/Checkmark.d.ts +0 -6
- package/dist/icons/InlineSelectArrow.d.ts +0 -6
- package/dist/icons/Lock.d.ts +0 -6
- package/dist/icons/NoData.d.ts +0 -7
- package/dist/icons/Picture.d.ts +0 -6
- package/dist/icons/Remove.d.ts +0 -7
- package/dist/icons/Trash.d.ts +0 -6
- package/dist/icons/Upload.d.ts +0 -6
- package/dist/icons/ZoomIn.d.ts +0 -6
- package/dist/icons/ZoomOut.d.ts +0 -6
- package/dist/icons/index.d.ts +0 -11
- package/dist/image/index.d.ts +0 -11
- package/dist/image/styled.d.ts +0 -5
- package/dist/index.d.mts +0 -759
- package/dist/input/index.d.ts +0 -36
- package/dist/input/style.settings.d.ts +0 -9
- package/dist/label/index.d.ts +0 -6
- package/dist/label/style.settings.d.ts +0 -9
- package/dist/label/styled.d.ts +0 -27
- package/dist/modal/container/ModalContainer.d.ts +0 -24
- package/dist/modal/container/styled.d.ts +0 -3
- package/dist/modal/context/ModalContext.d.ts +0 -77
- package/dist/modal/index.d.ts +0 -14
- package/dist/modal/modal/Modal.d.ts +0 -16
- package/dist/modal/modal/styled.d.ts +0 -22
- package/dist/notification/context/NotificationsContext.d.ts +0 -7
- package/dist/notification/index.d.ts +0 -14
- package/dist/popover/Popover.d.ts +0 -42
- package/dist/popover/PopoverContent.d.ts +0 -34
- package/dist/popover/PopoverTrigger.d.ts +0 -26
- package/dist/popover/index.d.ts +0 -4
- package/dist/primitives/Slot.d.ts +0 -36
- package/dist/progress/index.d.ts +0 -2
- package/dist/progress/styled.d.ts +0 -6
- package/dist/radio/button/RadioButton.d.ts +0 -2
- package/dist/radio/button/styled.d.ts +0 -11
- package/dist/radio/group/Group.d.ts +0 -5
- package/dist/radio/group/styled.d.ts +0 -9
- package/dist/radio/index.d.ts +0 -9
- package/dist/result/index.d.ts +0 -6
- package/dist/result/styled.d.ts +0 -16
- package/dist/select/dropdown/Dropdown.d.ts +0 -20
- package/dist/select/index.d.ts +0 -9
- package/dist/select/option/Option.d.ts +0 -25
- package/dist/select/selector/Selector.d.ts +0 -3
- package/dist/select/selector/selectorinput/SelectorInput.d.ts +0 -6
- package/dist/select/style.settings.d.ts +0 -88
- package/dist/spin/index.d.ts +0 -9
- package/dist/stats.html +0 -4949
- package/dist/status/index.d.ts +0 -2
- package/dist/stories/Accordion.d.ts +0 -5
- package/dist/stories/Accordion.stories.d.ts +0 -19
- package/dist/stories/Alert.d.ts +0 -2
- package/dist/stories/Alert.stories.d.ts +0 -34
- package/dist/stories/AlertComposition.d.ts +0 -3
- package/dist/stories/AlertComposition.stories.d.ts +0 -18
- package/dist/stories/Button.d.ts +0 -2
- package/dist/stories/Button.stories.d.ts +0 -44
- package/dist/stories/Card.d.ts +0 -9
- package/dist/stories/Card.stories.d.ts +0 -21
- package/dist/stories/Checkbox.d.ts +0 -2
- package/dist/stories/Checkbox.stories.d.ts +0 -20
- package/dist/stories/CheckboxGroup.d.ts +0 -2
- package/dist/stories/CheckboxGroup.stories.d.ts +0 -17
- package/dist/stories/CheckboxGroupControl.d.ts +0 -2
- package/dist/stories/CheckboxGroupControl.stories.d.ts +0 -17
- package/dist/stories/ColorScale.d.ts +0 -10
- package/dist/stories/ColorScale.stories.d.ts +0 -24
- package/dist/stories/ColorScaleCompare.d.ts +0 -8
- package/dist/stories/ColorScaleCompare.stories.d.ts +0 -47
- package/dist/stories/DatePicker.d.ts +0 -2
- package/dist/stories/DatePicker.stories.d.ts +0 -19
- package/dist/stories/Form.d.ts +0 -2
- package/dist/stories/Form.stories.d.ts +0 -30
- package/dist/stories/Header.d.ts +0 -2
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/HoverCard.d.ts +0 -2
- package/dist/stories/HoverCard.stories.d.ts +0 -18
- package/dist/stories/Input.d.ts +0 -2
- package/dist/stories/Input.stories.d.ts +0 -101
- package/dist/stories/ModalManager.d.ts +0 -2
- package/dist/stories/ModalManager.stories.d.ts +0 -21
- package/dist/stories/NoDataIcon.d.ts +0 -2
- package/dist/stories/Page.d.ts +0 -2
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Popover.d.ts +0 -2
- package/dist/stories/Popover.stories.d.ts +0 -40
- package/dist/stories/Progress.d.ts +0 -2
- package/dist/stories/Progress.stories.d.ts +0 -20
- package/dist/stories/RadioGroup.d.ts +0 -2
- package/dist/stories/RadioGroup.stories.d.ts +0 -14
- package/dist/stories/Result.d.ts +0 -2
- package/dist/stories/Result.stories.d.ts +0 -16
- package/dist/stories/Select.d.ts +0 -2
- package/dist/stories/Select.stories.d.ts +0 -34
- package/dist/stories/Status.d.ts +0 -2
- package/dist/stories/Status.stories.d.ts +0 -49
- package/dist/stories/Switch.d.ts +0 -2
- package/dist/stories/Switch.stories.d.ts +0 -30
- package/dist/stories/Table.d.ts +0 -2
- package/dist/stories/Table.stories.d.ts +0 -29
- package/dist/stories/Tabs.d.ts +0 -2
- package/dist/stories/Tabs.stories.d.ts +0 -18
- package/dist/stories/TextArea.d.ts +0 -2
- package/dist/stories/TextArea.stories.d.ts +0 -25
- package/dist/stories/Tooltip.d.ts +0 -1
- package/dist/stories/Tooltip.stories.d.ts +0 -35
- package/dist/stories/Upload.d.ts +0 -2
- package/dist/stories/Upload.stories.d.ts +0 -19
- package/dist/stories/root/index.d.ts +0 -5
- package/dist/stories/select.styled.d.ts +0 -2
- package/dist/switch/index.d.ts +0 -4
- package/dist/table/index.d.ts +0 -9
- package/dist/table/styled.d.ts +0 -13
- package/dist/tabs/index.d.ts +0 -3
- package/dist/textarea/index.d.ts +0 -3
- package/dist/tinyscrollbar/index.d.ts +0 -9
- package/dist/tinyscrollbar/scroll.styled.d.ts +0 -2
- package/dist/tinyscrollbar/styled.d.ts +0 -6
- package/dist/tooltip/Tooltip.d.ts +0 -12
- package/dist/tooltip/TooltipContent.d.ts +0 -12
- package/dist/tooltip/TooltipTrigger.d.ts +0 -19
- package/dist/tooltip/index.d.ts +0 -4
- package/dist/tooltip/tooltipContext.d.ts +0 -7
- package/dist/types/AccordionItemProps.d.ts +0 -9
- package/dist/types/AccordionProps.d.ts +0 -12
- package/dist/types/AccordionSubMenuProps.d.ts +0 -18
- package/dist/types/AlertProps.d.ts +0 -14
- package/dist/types/ButtonProps.d.ts +0 -25
- package/dist/types/CalendarProps.d.ts +0 -30
- package/dist/types/CardProps.d.ts +0 -21
- package/dist/types/CheckboxProps.d.ts +0 -45
- package/dist/types/ChildrenProps.d.ts +0 -4
- package/dist/types/DatePickerProps.d.ts +0 -24
- package/dist/types/FlexProps.d.ts +0 -16
- package/dist/types/FormProps.d.ts +0 -54
- package/dist/types/ITDImperativeFuncProps.d.ts +0 -11
- package/dist/types/ITDProps.d.ts +0 -6
- package/dist/types/InputProps.d.ts +0 -43
- package/dist/types/LabelProps.d.ts +0 -7
- package/dist/types/ModalProps.d.ts +0 -219
- package/dist/types/NotificationsProps.d.ts +0 -9
- package/dist/types/PopoverProps.d.ts +0 -10
- package/dist/types/ProgressProps.d.ts +0 -8
- package/dist/types/QueryValueProps.d.ts +0 -1
- package/dist/types/RadioProps.d.ts +0 -37
- package/dist/types/ResultProps.d.ts +0 -14
- package/dist/types/SelectProps.d.ts +0 -70
- package/dist/types/SingleQueryProps.d.ts +0 -7
- package/dist/types/StatusProps.d.ts +0 -11
- package/dist/types/SwitchProps.d.ts +0 -13
- package/dist/types/TableProps.d.ts +0 -37
- package/dist/types/TabsProps.d.ts +0 -22
- package/dist/types/TextAreaProps.d.ts +0 -29
- package/dist/types/Theme.d.ts +0 -128
- package/dist/types/UploadProps.d.ts +0 -52
- package/dist/upload/index.d.ts +0 -13
- package/dist/utils/CommonStyledComponents.d.ts +0 -21
- package/dist/utils/ErrorAnnouncement.d.ts +0 -25
- package/dist/utils/GetButtonSizeSlug.d.ts +0 -6
- package/dist/utils/GetIconSizeBySize.d.ts +0 -2
- package/dist/utils/GetSizeBySizeSlug.d.ts +0 -3
- package/dist/utils/GetSizeSlugBySize.d.ts +0 -6
- package/dist/utils/InlineSVGCached.d.ts +0 -11
- package/dist/utils/cn.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import a from"../../select/index.js";import i from"../../image/index.js";import r from"../../skeleton/index.js";import{useProviderLogos as t}from"../game-providers/logos.js";const n="all",o=[{value:"popular",label:"Popüler"},{value:"asc",label:"A-Z"},{value:"desc",label:"Z-A"}],s=({id:s,sort:m="popular",sorts:g=o,onSortChange:d,providers:c,selectedProviders:p=[],onProvidersChange:h,providerLogos:u=!1,convertLogos:f=!0,loading:v,labels:b,className:x})=>{const S=c??[],N=b?.sort??"Sırala:",j=b?.provider??"Sağlayıcı:",w=b?.all??"Tümü",A=b?.selection??(e=>`Seçim (${e})`),C=b?.loading??"...........",{activeLogo:k,logoSrc:y}=t(S,u&&f,{width:60,height:30,trim:!0}),L=l=>{if(null==k(l))return l.name;const a=y(l);return null==a?e(r,{width:"3.75rem",height:"1.875rem",radius:"0.25rem"}):e(i,{className:"itd-game-filter-logo",src:a,alt:l.name,brokenWidth:60,brokenHeight:30})},P=p.length>0?p:[n],z=[{label:w,value:n},...S.map(e=>({label:u?L(e):e.name,value:e.miniSlug,searchText:e.name}))];return e("div",{id:s??"inn-mobile-game-filter-component",className:("itd-game-filter "+(x??"")).trim(),children:e("div",{id:"inn-mobile-game-filter-content-wrapper",className:"itd-game-filter-wrapper",children:l("div",{id:"inn-mobile-game-filter-content",className:"itd-game-filter-content",children:[e(a,{className:"inn-mobile-game-filter-select-sorting",size:"x-large",prefix:N,label:g.find(e=>e.value===m)?.label??"",value:m,onChange:e=>d?.(String(e)),options:g.map(e=>({label:e.label,value:e.value})),"aria-label":N}),e(a,{className:"inn-mobile-game-filter-select-providers",size:"x-large",multi:!0,prefix:j,label:v?C:P[0]===n||0===P.length?w:1===P.length?S.find(e=>e.miniSlug===P[0])?.name??w:A(P.length),value:P,onChange:e=>{if(v)return;const l=(Array.isArray(e)?e:[e]).map(String);let a=0===l.length||l[l.length-1]===n?[n]:l;a.length>1&&a.indexOf(n)>-1&&(a=a.filter(e=>e!==n)),h?.(a[0]===n?[]:a)},options:z,disabled:v||0===S.length,"aria-label":j})]})})})};export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import i from"../game-search/index.js";import t from"../game-categories/Mobile.js";import r from"../game-filter/index.js";const n=2.75,o=2.25,m=2.75,c=({id:c,category:g="casino",search:s,categories:d,filter:l,className:p})=>{const f=[s&&n,d&&o,l&&m].filter(e=>"number"==typeof e),v=f.reduce((e,a)=>e+a,0)+1*Math.max(f.length-1,0);return e("div",{id:c??"inn-mobile-game-navigator-component",className:("itd-game-navigator "+(p??"")).trim(),style:{minHeight:v+"rem"},children:e("div",{id:"inn-mobile-game-navigator-content-wrapper",className:"itd-game-navigator-wrapper",children:a("div",{id:"inn-mobile-game-navigator-content",className:"itd-game-navigator-content",children:[s&&e(i,{...s}),d&&e(t,{...d,category:g}),l&&e(r,{...l})]})})})};export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useMemo as i,useState as n,useRef as t,useEffect as a}from"react";import{XCircle as s,ChevronUp as l,ChevronDown as o}from"lucide-react";import d from"../../button/index.js";import c from"../../image/index.js";import m from"../../skeleton/index.js";import p from"../box-title/index.js";import{useProviderLogos as h}from"./logos.js";const g=({id:g,category:u="casino",title:v="SAĞLAYICILAR",providers:f,loading:y,selected:b,onSelectionChange:N,hasSearch:A=!0,expandedByDefault:x=!1,convertLogos:L=!0,labels:S,className:k})=>{const w=i(()=>f??[],[f]),[C,I]=n([]),j=b??C,R=e=>{I(e),N?.(e)},[z,D]=n(""),[H,E]=n(x),[F,O]=n(!1),Y=t(null);a(()=>{const e=Y.current;if(!e)return;const r=()=>{const r=e.scrollHeight<=40;O(r),r&&E(!1)};r();const i=new ResizeObserver(r);return i.observe(e),()=>i.disconnect()},[w.length,z]);const{logoSrc:q,ready:B}=h(w,L,{height:24,trim:!0}),G=null===v?"":z.toLocaleLowerCase(),K=e=>e.name.toLocaleLowerCase().includes(G),P=w.filter(K).length,T=S?.selectedCount??(e=>e+" SAĞLAYICI SEÇİLİ");return e("div",{id:g??"inn-"+u+"-game-providers-component",className:("itd-game-providers "+(k??"")).trim(),children:[null!==v&&r(p,{search:A,placeholder:S?.searchPlaceholder??"Sağlayıcı arama",onChange:D,children:v}),e("div",{id:"inn-"+u+"-providers",className:"itd-game-providers-strip",children:[y||!B?r("ul",{className:"itd-game-providers-grid","data-open":"false",children:Array.from({length:15},(e,i)=>r("li",{children:r(m,{width:"5.25rem",height:"2.5rem",radius:"0.375rem"})},i))}):0===P&&w.length>0?r("div",{className:"itd-game-providers-empty",children:r("span",{children:S?.searchEmpty??"Aradığınız sağlayıcı bulunamadı!"})}):r("div",{className:"itd-game-providers-clip","data-open":H,children:r("ul",{className:"itd-game-providers-grid",ref:Y,role:"group","aria-label":v??void 0,onKeyDown:e=>{if(!["ArrowRight","ArrowLeft","Home","End"].includes(e.key))return;const r=Y.current;if(!r)return;const i=[...r.querySelectorAll(".provider-content")].filter(e=>"none"!==e.closest("li")?.style.display);if(0===i.length)return;const n=i.indexOf(e.target),t="ArrowRight"===e.key?(n+1)%i.length:"ArrowLeft"===e.key?(n-1+i.length)%i.length:"Home"===e.key?0:i.length-1;e.preventDefault(),i[t].focus()},onFocus:e=>{const r=e.target.closest("li");null!=r&&!H&&r.offsetTop>40&&E(!0)},children:w.map((e,i)=>{const n=j.includes(e.miniSlug),t=q(e);return r("li",{className:"provider-wrapper"+(n?" selected":""),style:K(e)?void 0:{display:"none"},children:r("button",{type:"button",className:"provider-content",title:e.name,"aria-pressed":n,tabIndex:i===w.findIndex(K)?0:-1,onClick:()=>{return r=e.miniSlug,void R(j.includes(r)?j.filter(e=>e!==r):[...j,r]);var r},children:null!=t?r(c,{src:t,alt:e.name,brokenWidth:60,brokenHeight:20}):r("span",{className:"itd-game-providers-name",children:e.name})})},e.id)})})}),e("span",{className:"itd-game-providers-chips inn-game-providers-buttons",children:[j.length>0&&r("span",{className:"itd-game-providers-count inn-selected-providers-status",children:T(j.length)}),e(d,{size:"small",className:"itd-game-providers-reset inn-reset-providers-button",disabled:0===j.length,onClick:()=>{D(""),R([])},children:[r(s,{"aria-hidden":!0}),S?.reset??"SIFIRLA"]})]}),!F&&P>0&&!y&&B&&r(d,{size:"icon",variant:"ghost",className:"itd-game-providers-opener","aria-expanded":H,"aria-label":H?"Daralt":"Genişlet",onClick:()=>E(e=>!e),children:r(H?l:o,{})})]})]})};export{g as default};
|
|
@@ -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,a)=>{const i=o(l)?.theme??"dark",u=o=>"light"===i?o.logoLight??o.logo:o.logo,s=t(a);s.current=a;const[h,m]=r({});e(()=>{if(!g)return;let o=!0;return c.forEach(t=>{const r="light"===i?t.logoLight??t.logo:t.logo;null!=r&&n(r,s.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,i]);const f=!g||c.every(o=>null==u(o)||null!=h[u(o)]);return{activeLogo:u,logoSrc:o=>{const t=u(o);return g?null!=t?h[t]:void 0:t},ready:f}};export{c as default,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 e,useRef as o,useEffect as r}from"react";import{useFocusTrap as t}from"../../hooks/useFocusTrap.js";import s from"../../hooks/useOnESCKeyDown.js";const u=(u,c,i)=>{const[n,a]=e(u),m=o(void 0);return r(()=>u?(clearTimeout(m.current),void a(!0)):(m.current=setTimeout(()=>a(!1),300),()=>clearTimeout(m.current)),[u]),t({isActive:u,containerRef:i,trapFocusOutside:!0,restoreFocus:!0}),s(()=>c?.(),i,{enabled:u}),n};export{u as default,u 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{useRef as n,useState as l,useEffect as t}from"react";import{Plus as r,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}from"../../avatar/index.js";import p from"../../select/index.js";import u,{useAmountMask as g}from"../../amount/index.js";import{useITD as b}from"../../context/ITDContext.js";import{GetPlatform as f}from"../../helpers/platform/index.js";import{PlatformTypes as v}from"../../helpers/classname/GetClassNameByPlatform.js";import N from"../../hooks/useOnESCKeyDown.js";import{SelectItem as k}from"../../select/SelectItem.js";const C=({locale:a})=>{const[i,n]=l("");return t(()=>{const e=()=>n((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})},y=({item:i})=>a("a",{href:i.href??"#",className:i.active?"active":void 0,onClick:e=>{i.href||e.preventDefault(),i.onClick?.()},children:[i.icon&&e("span",{className:"itd-header-nav-icon",children:i.icon}),e("span",{children:i.label})]}),x=({languages:a,language:i,onLanguageChange:n,compact:l})=>{const{theme:t}=b();return e(p,{variant:l&&"dark"===t?"filled":"default",size:l?"small":"medium",defaultValue:i,onChange:e=>n?.(e),"aria-label":"Dil",children:a.map(a=>e(k,{value:a.value,image:a.image,selectedLabel:l?a.label:void 0,children:l?a.label:a.fullLabel??a.label},a.value))})},z=({logo:r,nav:p=[],user:b,languages:f=[],language:v,onLanguageChange:k,languageLabel:z="Dil:",showClock:T=!0,locale:j="tr-TR",onLogin:B,onSignup:L,loginText:D="Giriş Yap",signupText:S="Kayıt Ol",onBonus:w,onDeposit:Y,bonusText:O="Bonus Talep",depositText:E="Para Yatır",onNotifications:I,onSignOut:P,signOutText:M="Çıkış Yap",profileMenu:G=[],id:K,className:R})=>{const{masked:V,toggle:q}=g(),A=n(null),[F,H]=l(!1),[J,Q]=l(!1),U=n([]),W=()=>{U.current.forEach(clearTimeout),U.current=[]};N(()=>{W(),Q(!1),H(!1)},A,{enabled:F}),t(()=>W,[]);const X=e("span",{className:"itd-header-sep","aria-hidden":!0});return a("header",{ref:A,id:K??"inn-header",className:"itd-header"+(R?" "+R:""),children:[a("div",{id:"inn-header-top",className:"itd-header-top",children:[e("a",{id:"inn-header-logo",className:"inn-header-logo itd-header-logo",href:"#",onClick:e=>e.preventDefault(),children:r}),a("div",{className:"itd-header-cluster",children:[a(i,b?{children:[w&&e(m,{size:"small",variant:"outline-accent",onClick:w,children:O}),Y&&e(m,{size:"small",variant:"default",onClick:Y,children:E})]}:{children:[e(m,{size:"small",variant:"outline-accent",onClick:B,children:D}),e(m,{size:"small",variant:"default",onClick:L,children:S})]}),f.length>0&&a(i,{children:[X,e("span",{id:"inn-language-select",className:"itd-header-lang",children:e(x,{languages:f,language:v,onLanguageChange:k,compact:!0})})]}),T&&a(i,{children:[X,e(C,{locale:j})]}),b&&a(i,{children:[X,a("span",{id:"inn-balance",className:"itd-header-balance",children:[e(u,{value:b.balance}),e(m,{variant:"ghost",className:"itd-header-eye","aria-label":V?"Bakiyeleri göster":"Bakiyeleri gizle",onClick:q,children:e(V?s:d,{size:15})})]}),X,a("button",{type:"button",className:"inn-mobile-notifications itd-header-bell","aria-label":"Bildirimler",onClick:I,children:[e(o,{size:16,fill:"currentColor"}),void 0!==b.notifications&&e("span",{className:"itd-header-bell-count",children:b.notifications})]}),a("div",{id:"inn-profile-popover",className:"itd-header-profile",onMouseEnter:()=>{W(),F?Q(!0):(H(!0),U.current.push(window.setTimeout(()=>Q(!0),10)))},onMouseLeave:()=>{W(),Q(!1),U.current.push(window.setTimeout(()=>H(!1),250))},children:[e("div",{id:"inn-profile-photo",className:"itd-header-avatar","data-open":J,children:e(h,{"aria-hidden":!0})}),e("span",{id:"inn-socket-status",className:"itd-header-dot","data-status":b.socketStatus??"connected",title:"Bağlı",children:e("span",{})}),a("div",{className:"inn-profile-popover-body itd-header-pop",style:{opacity:J?1:0,transform:J?"translateY(0)":"translateY(-10px)",transition:"opacity 250ms ease, transform 250ms ease",visibility:F?"visible":"hidden",pointerEvents:F?"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(h,{"aria-hidden":!0})}),a("span",{className:"inn-profile-popover-user-info itd-header-pop-id",children:[e("span",{children:b.username}),b.country&&e("span",{children:b.country})]})]}),e("hr",{className:"itd-header-pop-sep"}),e("div",{className:"inn-profile-popover-menu inn-mobile-menu-items itd-header-pop-menu",children:G.map(e=>a(m,{variant:"ghost",size:"default",className:"inn-mobile-menu-item justify-start",onClick:e.onClick,children:[e.icon,e.label]},e.label))}),f.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:z}),e(x,{languages:f,language:v,onLanguageChange:k})]})]}),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:P,children:[e(c,{size:16}),M]})})]})]})]})]})]}),p.length>0&&e("nav",{id:"inn-header-menu",className:"itd-header-menu",children:e("ul",{className:"itd-header-menu-list",children:p.map(a=>e("li",{className:"itd-header-menu-item",children:e(y,{item:a})},a.label))})})]})},T=({logo:n,user:l,onLogin:t,onSignup:s,loginText:d="Giriş Yap",signupText:c="Kayıt Ol",onDeposit:p,onNotifications:b,onProfile:f,id:v,className:N})=>{const{masked:k,toggle:C}=g();return e("header",{id:v??"inn-mobile-header",className:"itd-mobile-header"+(N?" "+N:""),children:a("div",{id:"inn-mobile-header-top",className:"itd-mobile-header-top",children:[e("a",{id:"inn-mobile-header-logo",className:"inn-mobile-header-logo itd-mobile-header-logo",href:"#",onClick:e=>e.preventDefault(),children:n}),e("div",{className:"itd-mobile-header-cluster",children:a(i,l?{children:[a("span",{className:"inn-mobile-balance itd-mobile-header-balance",children:[e("button",{type:"button",className:"itd-mobile-header-balance-amount","aria-label":k?"Bakiyeyi göster":"Bakiyeyi gizle",onClick:C,children:e(u,{value:l.balance})}),e(m,{size:"small",variant:"default","aria-label":"Para Yatır",onClick:p,children:e(r,{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!==l.notifications&&e("span",{className:"itd-mobile-header-bell-count",children:l.notifications})]}),a("button",{type:"button",id:"inn-mobile-profile-photo",className:"itd-mobile-header-avatar","aria-label":"Profil",onClick:f,children:[e(h,{"aria-hidden":!0}),e("span",{id:"inn-socket-status",className:"itd-mobile-header-dot","data-status":l.socketStatus??"connected",title:"Bağlı",children:e("span",{})})]})]}:{children:[e(m,{variant:"custom",size:"medium",className:"itd-mobile-header-login",onClick:t,children:d}),e(m,{size:"medium",className:"itd-mobile-header-signup",onClick:s,children:c})]})})]})})},j=a=>{const i=f()===v.MOBILE;return e(i?T:z,{...a})};export{j 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 a,Fragment as n}from"react/jsx-runtime";import{useState as i}from"react";import{ChevronDown as m,ChevronRight as l}from"lucide-react";import t from"../../select/index.js";import{SelectItem as c}from"../../select/SelectItem.js";const d=({icon:a})=>a?e("span",{className:"itd-mega-menu-icon inn-mega-menu-icon",children:a}):null,r=({link:i,className:m,trailing:l})=>{const t=a(n,{children:[e(d,{icon:i.icon}),e("span",{className:"itd-mega-menu-label inn-mega-menu-label",children:i.label}),null!=i.badge&&e("span",{className:"itd-mega-menu-badge inn-mega-menu-badge",children:i.badge}),l]}),c={className:(m+(i.active?" is-active":"")).trim(),"data-active":i.active?"true":void 0};return i.href?e("a",{...c,href:i.href,onClick:i.onClick,children:t}):e("button",{type:"button",...c,onClick:i.onClick,children:t})},s=({entries:n=[],className:d=""})=>{const[s,u]=i(()=>new Set(n.filter(e=>"accordion"===e.kind&&e.defaultOpen).map(e=>e.id)));return e("nav",{className:("itd-mega-menu inn-mega-menu "+d).trim(),"aria-label":"Menü",children:n.map(n=>{if("accordion"===n.kind){const i=s.has(n.id);return a("div",{className:"itd-mega-menu-item itd-mega-menu-item--accordion inn-mega-menu-item","data-open":i?"true":"false",children:[a("div",{className:"itd-mega-menu-head inn-mega-menu-item-head",children:[e(r,{link:{label:n.label,icon:n.icon,href:n.href,onClick:n.onClick,active:n.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":i,"aria-label":i?"Kapat":"Aç",onClick:()=>{return e=n.id,u(a=>{const n=new Set(a);return n.has(e)?n.delete(e):n.add(e),n});var e},children:e("span",{className:"itd-mega-menu-toggle-icon","aria-hidden":!0,children:e(m,{})})})]}),e("div",{className:"itd-mega-menu-collapse inn-mega-menu-sub",children:e("div",{className:"itd-mega-menu-collapse-inner",children:n.items.map(a=>e(r,{link:a,className:"itd-mega-menu-subitem inn-mega-menu-sub-item"},a.id))})})]},n.id)}return"group"===n.kind?e("div",{className:"itd-mega-menu-item itd-mega-menu-item--group inn-mega-menu-item inn-mega-menu-group",children:n.items.map(a=>e(r,{link:a,className:"itd-mega-menu-groupitem inn-mega-menu-group-item"},a.id))},n.id):"select"===n.kind?e("div",{className:"itd-mega-menu-item itd-mega-menu-item--select inn-mega-menu-item",children:e(t,{size:"large",className:"itd-mega-menu-select"+(n.arrowWell?" itd-mega-menu-select--well":""),defaultValue:n.defaultValue,onChange:e=>n.onChange?.(e),"aria-label":n.ariaLabel,children:n.options.map(a=>e(c,{value:a.value,image:a.image,children:a.label},a.value))})},n.id):e("div",{className:"itd-mega-menu-item itd-mega-menu-item--link inn-mega-menu-item",children:e(r,{link:{label:n.label,icon:n.icon,href:n.href,onClick:n.onClick,active:n.active,badge:n.badge},className:"itd-mega-menu-link inn-mega-menu-link",trailing:e("span",{className:"itd-mega-menu-chevron inn-mega-menu-chevron","aria-hidden":!0,children:e(l,{})})})},n.id)})})};export{s as MegaMenu,s 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{GetClassNameByPlatform as n}from"../../helpers/classname/GetClassNameByPlatform.js";import t from"../../skeleton/index.js";const l=({id:l,items:r,activeId:o,open:m=!0,loading:s=!1,skeletonCount:c=5,onSelect:d,ariaLabel:u="Menu",className:b})=>{const h=i(()=>n("inn-menu"),[]);return e("nav",{id:l??h,className:"itd-mobile-bottom-nav"+(b?" "+b:""),"data-open":m?"true":"false","aria-label":u,children:e("div",s?{className:"itd-mobile-bottom-nav-skeletons","aria-hidden":!0,children:Array.from({length:c}).map((a,i)=>e(t,{height:52},i))}:{className:"inn-mobile-menu-items",children:r.map(i=>{const n=i.active??(null!=o&&i.id===o),t="inn-mobile-menu-item"+(n?" active":""),l=()=>{i.onSelect?.(),d?.(i)},r=a("div",{children:[i.icon,e("span",{children:i.label})]});return null!=i.href?e("a",{href:i.href,target:i.target,className:t,"aria-current":n?"page":void 0,"aria-label":i.ariaLabel,onClick:l,children:r},i.id):e("button",{type:"button",className:t,"aria-current":n?"page":void 0,"aria-label":i.ariaLabel,onClick:l,children:r},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{useEmblaState as 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 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{useEmblaState as a}from"../embla/useEmblaState.js";const t=({id:t,slides:n,autoplay:o=4e3,loop:c=!0,dots:m=!0,slideSize:p,slideSpacing:u,dotLabel:b=e=>"Slide "+(e+1),hideBackground:h=!1,className:g})=>{const N=l(()=>({loop:c}),[c]),f=l(()=>!1===o?[]:[d({delay:o})],[o]),[v,y]=s(N,f),{selected:S}=a(y),j=r,k={...p?{"--itd-slider-slide-size":p}:null,...u?{"--itd-slider-spacing":u}:null};return e("section",{id:t??j("inn-slider-component"),className:"itd-slider-block"+(g?" "+g:""),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:v,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: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 e,jsx as t,Fragment as a}from"react/jsx-runtime";import{useState as n,useEffect as r,useMemo as i,useRef as s}from"react";import{ChevronLeft as l,CheckCircle2 as o,ChevronRight as d}from"lucide-react";import m from"../../button/index.js";import c from"../../image/index.js";import u from"../../skeleton/index.js";import h from"../../spin/index.js";import p from"../game-box/index.js";import v from"../post-viewer/index.js";import g from"../default-avatar/index.js";import b from"../filter-tabs/index.js";import{HoverCard as N}from"../../hovercard/HoverCard.js";import{HoverCardTrigger as y}from"../../hovercard/HoverCardTrigger.js";import{HoverCardContent as f}from"../../hovercard/HoverCardContent.js";import{ComponentYPositions as k}from"../../enums/enum.js";import{GetPlatform as x}from"../../helpers/platform/index.js";import{PlatformTypes as w}from"../../helpers/classname/GetClassNameByPlatform.js";import{useLoadMoreSentinel as z}from"../../hooks/useLoadMoreSentinel.js";const C=[{value:"all",label:"Tümü"},{value:"registration",label:"Yaklaşan"},{value:"competition",label:"Canlı"},{value:"ended",label:"Sona Erdi"}],j={registration:"Yaklaşan",competition:"Canlı",ended:"Sona Erdi"},T=()=>x()===w.MOBILE,S=e=>e?Math.max(0,new Date(e).getTime()-Date.now()):0,M=(e,t=!0)=>{const[a,i]=n(()=>S(e));r(()=>{if(!t||!e)return;i(S(e));const a=setInterval(()=>i(S(e)),1e3);return()=>clearInterval(a)},[e,t]);const s=Math.floor(a/1e3);return{ms:a,days:Math.floor(s/86400),hours:Math.floor(s%86400/3600),minutes:Math.floor(s%3600/60),seconds:s%60}},K=e=>String(e).padStart(2,"0"),A=({status:e})=>t("span",{className:"itd-tournament-status","data-status":e,children:j[e]}),O=({tournament:a,onOpen:n})=>{const r=a,i="ended"!==r.status,s="registration"===r.status?r.registerEndsAt??r.startsAt:r.endsAt,l=M(s,i),o=r.providers??[],d=(r.games??[]).slice(0,4),m=Math.max(0,(r.gamesCount??r.games?.length??0)-d.length),u=l.days>0?`${l.days} gün ${K(l.hours)}:${K(l.minutes)}:${K(l.seconds)}`:`${K(l.hours)}:${K(l.minutes)}:${K(l.seconds)}`;return e("div",{className:"tournament-card itd-tournament-card",onClick:n?()=>n(r.id):void 0,onKeyDown:n?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(r.id))}:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,children:[e("div",{className:"tournament-card-cover itd-tournament-card-cover",children:[t("span",{className:"tournament-card-status itd-tournament-card-status",children:t(A,{status:r.status})}),t(c,{src:r.image??"",alt:r.name})]}),e("div",{className:"tournament-card-body itd-tournament-card-body",children:[t("h3",{className:"tournament-card-name itd-tournament-card-name",children:r.name}),e("div",{className:"tournament-card-meta itd-tournament-card-meta",children:[e("div",{className:"tournament-card-prize itd-tournament-card-prize",children:[t("span",{className:"itd-tournament-meta-label",children:"Ödül Tutarı"}),t("span",{className:"itd-tournament-prize-value",children:r.prize})]}),i&&e("div",{className:"tournament-card-countdown itd-tournament-card-countdown",children:[t("span",{className:"itd-tournament-meta-label",children:"Kalan Süre"}),t("span",{className:"itd-tournament-countdown-value",children:u})]})]}),d.length>0&&e("div",{className:"tournament-card-games itd-tournament-card-games",children:[t("span",{className:"tournament-card-games-title itd-tournament-meta-label",children:"Oyunlar"}),e("div",{className:"tournament-card-games-row itd-tournament-card-games-row",children:[d.map(e=>t("span",{className:"tournament-card-games-cell itd-tournament-card-games-cell",children:t(p,{name:"",slug:e.slug??e.id,image:e.image,ratio:"440/310"})},e.id)),m>0&&t("span",{className:"tournament-card-games-more itd-tournament-card-games-more",children:e("span",{children:["+",m]})})]})]}),e("div",{className:"tournament-card-footer itd-tournament-card-footer",children:[e("span",{className:"tournament-card-participants",children:[r.participantCount," katılımcı"]}),o.length>0&&t("div",{className:"tournament-card-providers itd-tournament-card-providers"+(o.length>1?" is-interactive":""),onClick:e=>o.length>1&&e.stopPropagation(),children:o.length>1?e(N,{children:[t(y,{asChild:!0,children:e("span",{className:"tournament-card-providers-label",children:[o[0],e("em",{className:"tournament-card-providers-more",children:["+",o.length-1]})]})}),t(f,{placement:k.TOP,variant:"filled",maxWidth:240,children:t("div",{className:"itd-tournament-providers-card",children:o.map(e=>t("span",{children:e},e))})})]}):t("span",{className:"tournament-card-providers-label",children:o[0]})})]})]})]})},P=({tournaments:n,loading:r=!1,filters:i=C,filter:s="all",onFilterChange:l,onOpen:o,hasMore:d=!1,loadingMore:c=!1,onLoadMore:p,emptyTitle:v="Turnuva bulunamadı",emptyText:g="Bu filtreye uyan bir turnuva yok. Diğer sekmelere göz atabilirsiniz."})=>{const N=T()?4:8;return e("div",{className:"tournament-list itd-tournament-list",children:[t("div",{className:"tournament-list-filters itd-tournament-filters",children:t(b,{options:i,value:s,onChange:l,"aria-label":"Turnuva durumu"})}),r?t("div",{className:"tournament-list-skeleton-grid itd-tournament-grid",children:Array.from({length:N},(a,n)=>e("div",{className:"tournament-list-skeleton-box itd-tournament-skeleton-box",children:[t("span",{className:"tournament-list-skeleton-cover itd-tournament-skeleton-cover",children:t(u,{width:"100%",height:"100%"})}),e("span",{className:"tournament-list-skeleton-body itd-tournament-skeleton-body",children:[t(u,{width:"65%",height:"1rem"}),t(u,{width:"40%",height:"0.75rem"}),t(u,{width:"50%",height:"0.75rem"})]})]},n))}):0===n.length?e("div",{className:"tournament-list-empty itd-tournament-empty",children:[t("h3",{children:v}),t("span",{children:g})]}):e(a,{children:[t("div",{className:"tournament-list-grid itd-tournament-grid",children:n.map(e=>t(O,{tournament:e,onOpen:o},e.id))}),d&&t("div",{className:"tournament-list-load-more itd-tournament-load-more",children:c?t(h,{}):t(m,{variant:"outline-accent",size:"medium",onClick:p,children:"Daha Fazla Göster"})})]})]})},D=[{value:"prizes",label:"Ödüller"},{value:"leaderboard",label:"Puan Tablosu"},{value:"rules",label:"Kurallar"}],E=({tournament:u,onBack:N,backText:y="Turnuvalara Dön",onJoin:f,onPlayGame:k,gamesStep:x,standingsHasMore:w=!1,standingsLoading:C=!1,onStandingsMore:j})=>{const S=u,O=T(),P="ended"!==S.status,E="registration"===S.status?S.registerEndsAt??S.startsAt:S.endsAt,L=M(E,P),B=x??15,[G,$]=n(B),[H,I]=n("prizes"),[R,W]=n("site"),F=S.games??[],J=F.slice(0,G),Y=F.length-J.length,q="registration"===S.status?"Kayıt bitişine kalan süre":"Turnuva bitişine kalan süre",Q=i(()=>Array.isArray(S.rules)&&S.rules.length>0?t(v,{blocks:S.rules}):"string"==typeof S.rules&&""!==S.rules.trim()?t("div",{className:"itd-tournament-rules-text",children:S.rules}):t("span",{className:"itd-tournament-panel-empty",children:"Kural bilgisi bulunmuyor."}),[S.rules]),U=s(null),[V,X]=n({prev:!1,next:!1});r(()=>{const e=U.current;if(!e)return;const t=()=>X({prev:e.scrollLeft>4,next:e.scrollLeft<e.scrollWidth-e.clientWidth-4});t();const a=new ResizeObserver(t);return a.observe(e),e.addEventListener("scroll",t,{passive:!0}),()=>{a.disconnect(),e.removeEventListener("scroll",t)}},[S.stats]);const Z=e=>{const t=U.current;t&&t.scrollBy({left:e*t.clientWidth*.85,behavior:"smooth"})},_="ended"===S.status?"Kazananlar":"Puan Tablosu",ee=(S.globalStandings?.length??0)>0,te="global"===R&&ee?S.globalStandings:S.standings??[],ae="site"===R,ne=z(ae&&w&&!C,j),re=e("div",{className:"tournament-prizes itd-tournament-panel itd-tournament-prizes",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Ödüller"}),S.prizeRows&&S.prizeRows.length>0?e(a,{children:[e("div",{className:"tournament-prizes-header itd-tournament-panel-header",children:[t("span",{children:"Sıra"}),t("span",{children:"Ödül"})]}),t("div",{className:"itd-tournament-panel-list",children:S.prizeRows.map(a=>e("div",{className:"tournament-prize-row itd-tournament-prize-row",children:[t("b",{children:a.rank}),t("span",{children:a.value})]},a.rank))})]}):t("span",{className:"itd-tournament-panel-empty",children:"Ödül bilgisi bulunmuyor."})]}),ie=e("div",{className:"tournament-standings itd-tournament-panel itd-tournament-standings",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:_}),ee&&t("div",{className:"tournament-standings-scope itd-tournament-scope",children:t(b,{grow:!0,options:[{value:"site",label:"Site"},{value:"global",label:"Global"}],value:R,onChange:e=>W(e),"aria-label":"Sıralama kapsamı"})}),te.length>0?e(a,{children:[e("div",{className:"tournament-standings-header itd-tournament-panel-header itd-tournament-standings-header",children:[t("span",{children:"#"}),t("span",{children:"Kullanıcı"}),t("span",{children:"ended"===S.status?"Ödül":"Puan"})]}),e("div",{className:"itd-tournament-panel-list",children:[te.map(a=>e("div",{className:"tournament-standings-row itd-tournament-standings-row"+(a.highlight?" is-highlight":""),"data-top":a.position<=3?"":void 0,children:[t("b",{className:"itd-tournament-rank",children:a.position}),t("span",{className:"itd-tournament-standings-photo",children:a.photo?t("img",{src:a.photo,alt:""}):t(g,{})}),t("span",{className:"itd-tournament-standings-user",children:a.username??"—"}),t("span",{className:"itd-tournament-standings-value",children:a.value})]},a.position)),ae&&(w||C)&&t("div",{className:"itd-tournament-board-sentinel",ref:ne,children:C&&t(h,{})})]})]}):t("span",{className:"itd-tournament-panel-empty",children:"site"===R&&ee?"Bu sitede sıralama oluşmadı — Global sekmesine bakabilirsiniz.":"ended"===S.status?"Kazanan bilgisi henüz yayınlanmadı.":"Puan tablosu henüz oluşmadı."})]}),se=e("div",{className:"tournament-rules itd-tournament-panel itd-tournament-rules",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Kurallar"}),t("div",{className:"tournament-rules-scroll itd-tournament-rules-scroll",children:Q})]});return e("div",{className:"tournament-detail itd-tournament-detail",children:[e("div",{className:"tournament-detail-backbar itd-tournament-backbar",children:[e(m,{variant:"filled",size:"medium",onClick:N,children:[t(l,{size:16}),y]}),t("div",{className:"tournament-detail-backbar-actions itd-tournament-backbar-actions",children:S.autoJoin?e("span",{className:"tournament-detail-auto-badge itd-tournament-auto-badge",children:[t(o,{size:15}),"Otomatik Katılım"]}):P&&f&&t(m,{className:"inn-tournament-participate itd-tournament-participate",variant:S.joined?"statable":"default",state:S.joined?"reject":void 0,size:"medium",onClick:f,children:S.joined?"Katılımdan Ayrıl":"Hemen Katıl"})})]}),e("div",{className:"tournament-cover itd-tournament-cover",children:[t("div",{className:"tournament-cover-image itd-tournament-cover-image",children:t(c,{src:S.cover??S.image??"",alt:S.name})}),t("div",{className:"tournament-cover-overlay itd-tournament-cover-overlay",children:e("div",{className:"tournament-cover-panel itd-tournament-cover-panel",children:[t(A,{status:S.status}),e("div",{className:"itd-tournament-cover-prize",children:[t("span",{className:"itd-tournament-meta-label",children:"Ödül Tutarı"}),t("b",{className:"itd-tournament-cover-amount",children:S.prize})]}),P&&e("div",{className:"itd-tournament-cover-countdown",children:[t("span",{className:"itd-tournament-cover-caption",children:q}),t("div",{className:"itd-tournament-timer",children:[[L.days,"Gün"],[L.hours,"Saat"],[L.minutes,"Dakika"],[L.seconds,"Saniye"]].map(([a,n])=>e("span",{className:"tournament-cover-countdown-box itd-tournament-timer-box",children:[t("b",{children:K(a)}),t("span",{children:n})]},n))})]})]})})]}),(S.description||S.name)&&e("div",{className:"tournament-detail-description-box itd-tournament-description",children:[t("h3",{children:S.name}),S.description&&t("div",{children:S.description})]}),S.stats&&S.stats.length>0&&e("div",{className:"tournament-stats itd-tournament-stats",children:[V.prev&&t("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow","data-dir":"prev","aria-label":"Geri",onClick:()=>Z(-1),children:t(l,{size:16})}),t("div",{className:"tournament-stats-track itd-tournament-stats-track",ref:U,children:S.stats.map(a=>e("div",{className:"tournament-stats-box itd-tournament-stats-box",children:[t("span",{className:"itd-tournament-box-caption",children:a.title}),t("div",{className:"itd-tournament-stats-rows",children:a.rows.map(a=>e("div",{className:"itd-tournament-stats-row",children:[t("span",{children:a.label}),t("span",{"data-tone":a.tone,children:a.value})]},a.label))})]},a.title))}),V.next&&t("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow","data-dir":"next","aria-label":"İleri",onClick:()=>Z(1),children:t(d,{size:16})})]}),S.providers&&S.providers.length>0&&e("div",{className:"itd-tournament-section",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Sağlayıcılar"}),t("div",{className:"itd-tournament-provider-chips",children:S.providers.map(e=>t("span",{className:"tournament-detail-provider-chip itd-tournament-provider-chip",children:e},e))})]}),e("div",{className:"itd-tournament-section",children:[t("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Turnuva Oyunları"}),F.length>0?e("div",{className:"tournament-games-grid itd-tournament-games-grid",children:[J.map(e=>t(p,{name:O?"":e.name,slug:e.slug??e.id,image:e.image,ratio:"440/310",onPlay:k?e=>k(e):void 0},e.id)),Y>0&&t("button",{type:"button",className:"tournament-games-more itd-tournament-games-more",onClick:()=>$(e=>e+B),children:e("span",{children:["+",Y]})})]}):t("div",{className:"tournament-games-empty itd-tournament-games-empty",children:t("span",{children:"Bu turnuvaya tanımlı oyun bulunmuyor."})})]}),O?e(a,{children:[t("div",{className:"tournament-detail-tabs itd-tournament-tabs",children:t(b,{grow:!0,options:D.map(e=>({value:e.value,label:"leaderboard"===e.value?_:e.label})),value:H,onChange:e=>I(e),"aria-label":"Turnuva panelleri"})}),"prizes"===H&&re,"leaderboard"===H&&ie,"rules"===H&&se]}):e("div",{className:"tournament-detail-panels itd-tournament-panels",children:[re,ie,se]})]})},L=({title:a,children:n,className:r})=>{const i=T(),s=i?"inn-mobile-tournament":"inn-tournament";return e("div",{id:s+"-component",className:(i?"inn-mobile-tournament":"inn-tournament")+" itd-tournaments"+(r?" "+r:""),children:[a&&t("div",{id:s+"-title",className:"tournament-title itd-tournaments-title",children:a}),t("div",{className:"tournament-content-wrapper itd-tournaments-content",children:n})]})};export{O as TournamentCard,E as TournamentDetail,P as TournamentList,L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as a,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{Info as l,Gift as s,Trash2 as n}from"lucide-react";import r from"../../button/index.js";import d from"../../progress/index.js";import c from"../../select/index.js";import m from"../../alert/index.js";import{Tooltip as o}from"../../tooltip/Tooltip.js";import{TooltipTrigger as h}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as u}from"../../tooltip/TooltipContent.js";import{HubPayFilter as p}from"./cashier.js";import{HubTable as b,HubStatusBadge as _,HubCopyBtn as v,HubHistName as k}from"./table.js";import{SelectItem as g}from"../../select/SelectItem.js";import{AlertDescription as y}from"../../alert/Description.js";const N=({kind:t,name:i,dateLabel:l,date:s,action:n,fields:r,children:d})=>e("section",{className:"hub__status-card",children:[e("div",{className:"hub__status-head",children:[e("div",{className:"hub__status-title",children:[a("span",{className:"hub__status-kind",children:t}),a("span",{className:"hub__status-name",children:i})]}),e("div",{className:"hub__status-side",children:[e("div",{className:"hub__status-date",children:[a("span",{children:l}),a("span",{className:"hub__status-dateval",children:s})]}),n]})]}),a("div",{className:"hub__status-grid",children:r.map(([t,i],l)=>e("div",{children:[a("span",{className:"hub__status-label",children:t}),a("span",{className:"hub__status-value",children:i})]},l))}),d]}),f=({data:n,cats:m,types:v,statuses:k,wagering:y,applies:N,onRequest:f,onCancel:w,marker:x={desktop:"inn-bonus-request-table",list:"inn-mobile-bonus-request-list",methods:"inn-mobile-bonus-request-list-methods",item:"inn-mobile-bonus-request-list-method-item"},nameTitle:T="İsim",catTitle:j="Kategori",typeTitle:I="Tip",wageringTitle:z="Çevrimli",statusTitle:L="Durum",percentTitle:C="Hak Ediş Yüzdesi",infoLabel:q="Bonus bilgisi",applyDatePrefix:B="Başvuru Tarihi: ",requestLabel:D="Talep Et",reRequestLabel:E="Tekrar Talep Et",cancelLabel:S="Talebi İptal Et",unavailableLabel:K="Talep Edilemez",openStatus:R="Açık",unavailableStatus:A="Talep Edilemez"})=>{const[H,P]=i(m[0]?.value??"all"),U=[{key:"name",dataIndex:"name",title:T,maxWidth:220,render:(t,i)=>e("span",{className:"hub__pay-name hub__hist-nm",children:[e("span",{className:"hub__bonus-name",children:[a("span",{className:"hub__bonus-title",children:i.name}),e(o,{children:[a(h,{asChild:!0,children:a("i",{className:"hub__hist-creator","aria-label":q,children:a(l,{size:14})})}),a(u,{placement:"top",children:i.desc})]})]}),i.applyDate&&a("span",{className:"hub__pay-desc",children:B+i.applyDate})]})},{key:"cat",dataIndex:"cat",title:j,width:90},{key:"type",dataIndex:"type",title:I,width:110},{key:"wagering",dataIndex:"wagering",title:z,width:90},{key:"status",dataIndex:"status",title:L,width:150,render:e=>a(_,{s:String(e)})},{key:"percent",dataIndex:"percent",title:C,width:170,render:e=>a("span",{className:"hub__bonus-progress",children:a(d,{percent:Number(e)})})},{key:"actions",dataIndex:"key",title:"",width:180,render:(t,i)=>a("span",{className:"hub__pay-actions hub__pay-actions--full",children:i.status===R?a(r,{variant:"statable",state:"reject",size:"medium",onClick:()=>w?.(i),children:S}):i.status===A?a(r,{variant:"filled",size:"medium",disabled:!0,children:K}):e(r,{variant:"default",size:"medium",onClick:()=>f?.(i),children:[a(s,{size:14}),i.applyDate?E:D]})})}];return e(t,{children:[a("div",{className:"hub__hist-cats--wide",children:a(p,{options:m,value:H,onChange:P,idPrefix:"brq"})}),a("div",{className:"hub__hist-filters hub__hist-filters--2",children:[v,k,y,N].map((e,t)=>a(c,{size:"x-large",defaultValue:e[0],children:e.map(e=>a(g,{value:e,children:e},e))},t))}),a(b,{columns:U,data:n,cellHeight:"84px",marker:x})]})},w=({data:i,intro:l,onAccept:d,onReject:c,marker:o={desktop:"inn-bonus-activation-table",list:"inn-mobile-bonus-activation-list",methods:"inn-mobile-bonus-activation-list-items",item:"inn-mobile-bonus-activation-list-method-item"},idTitle:h="Id",nameTitle:u="Bonus İsmi",catTitle:p="Kategori",amountTitle:_="Miktar",acceptLabel:g="Kabul Et",rejectLabel:N="Reddet"})=>{const f=[{key:"id",dataIndex:"key",title:h,width:50,render:(e,t)=>a(v,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:u,maxWidth:300,render:(e,t)=>a(k,{name:t.name})},{key:"cat",dataIndex:"cat",title:p,width:150},{key:"amount",dataIndex:"amount",title:_,width:200,render:e=>a("span",{className:"hub__hist-amount",children:String(e)})},{key:"actions",dataIndex:"key",title:"",width:240,render:(t,i)=>e("span",{className:"hub__pay-actions",children:[e(r,{variant:"default",size:"medium",onClick:()=>d?.(i),children:[a(s,{size:14}),g]}),e(r,{variant:"statable",state:"reject",size:"medium",onClick:()=>c?.(i),children:[a(n,{size:14}),N]})]})}];return e(t,{children:[l&&a(m,{type:"info",variant:"filled",children:a(y,{children:l})}),a(b,{columns:f,data:i,cellHeight:"74px",marker:o})]})},x=({bonus:i,intro:l,onCancel:s,kindLabel:n="AKTİF BONUS",applyDateLabel:c="Başvuru Tarihi",cancelLabel:o="Bonusu İptal Et",wagerTitle:h="Bonus Çevrim Bilgisi",validLabel:u="Geçerlilik"})=>e(t,{children:[l&&a(m,{type:"info",variant:"filled",children:a(y,{children:l})}),a(N,{kind:n,name:i.name,dateLabel:c,date:i.applyDate,action:a(r,{variant:"statable",state:"reject",size:"medium",onClick:s,children:o}),fields:i.fields,children:e("div",{className:"hub__wager",children:[e("div",{className:"hub__wager-head",children:[a("span",{className:"hub__wager-title",children:h}),e("div",{className:"hub__status-date hub__wager-until",children:[a("span",{children:u}),a("span",{className:"hub__status-dateval",children:i.validUntil})]})]}),i.wagerings.map((t,i)=>e("div",{className:"hub__wager-row",children:[a("span",{className:"hub__wager-label",children:t.label}),e("div",{className:"hub__wager-bar",children:[a(d,{percent:t.percent,showInfo:!1}),a("span",{className:"hub__wager-amt",children:t.done+" / "+t.total})]})]},i))]})})]});export{x as HubActiveBonus,w as HubBonusActivation,f as HubBonusRequest,N as HubStatusCard};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{useState as l}from"react";import{Clock as i,Gauge as n,Star as r,Flame as o}from"lucide-react";import s from"../../button/index.js";import d from"../../input/index.js";import m from"../../select/index.js";import c from"../../textarea/index.js";import t from"../../alert/index.js";import h from"../../badge/index.js";import{FieldLabel as p,Field as u,FieldTitle as b}from"../../field/index.js";import{RadioGroup as _}from"../../radio/RadioGroup.js";import{RadioGroupItem as v}from"../../radio/RadioGroupItem.js";import{GetClassNameByPlatform as y}from"../../helpers/classname/GetClassNameByPlatform.js";import{SelectItem as f}from"../../select/SelectItem.js";import{AlertDescription as g}from"../../alert/Description.js";const N=(a,e)=>y(a)+" "+e,k=a=>a.name??a.label,x=a=>{const[e,i]=l(()=>Object.fromEntries(a.map(a=>[k(a),a.value??""])));return[e,(a,e)=>i(l=>({...l,[k(a)]:e}))]},C=({logo:e})=>a("span",{className:"hub__pay-logo",style:{background:e.color},"aria-hidden":!0,children:e.Icon?a(e.Icon,{size:18}):a("b",{children:e.initials})}),z=({options:l,value:i,onChange:n,idPrefix:r,marker:o})=>a(_,{value:i,onValueChange:n,orientation:"horizontal",className:o?N(o,"hub__pay-filter"):"hub__pay-filter",children:l.map(l=>a(p,{htmlFor:r+"-"+l.value,children:e(u,{orientation:"vertical",className:"hub__pay-tile",children:[a("span",{className:"hub__pay-badge",style:{background:l.color},"aria-hidden":!0,children:l.Icon?a(l.Icon,{size:18}):a("b",{children:l.initials})}),a(b,{children:l.label}),a(v,{value:l.value,id:r+"-"+l.value,className:"sr-only"})]})},l.value))}),j=({f:l,onChange:i})=>e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:l.label}),"textarea"===l.kind?a(c,{rows:3,defaultValue:l.value,placeholder:l.placeholder,onUpdate:a=>i?.(String(a??""))}):"select"===l.kind?a(m,{size:"x-large",defaultValue:l.value,locked:!!l.locked,onChange:a=>i?.(String(a??"")),children:l.options.map(e=>a(f,{value:e,children:e},e))}):l.locked?a(d,{size:"x-large",value:l.value,locked:!0}):a(d,{size:"x-large",defaultValue:l.value,placeholder:l.placeholder,onChange:a=>i?.(String(a??""))})]}),S=({logo:l,name:i,side:n})=>e("div",{className:"hub__paymodal-card",children:[a(C,{logo:l}),a("span",{className:"hub__paymodal-name",children:i}),n]}),L=({labels:l,values:r})=>a("div",{className:"hub__paymodal-tiles",children:l.map((l,o)=>a("div",{className:"hub__paymodal-tile",children:e("div",{children:[0===o?a(i,{"aria-hidden":!0}):a(n,{"aria-hidden":!0,style:1===o?{transform:"scale(-1, 1)"}:void 0}),e("span",{className:"hub__paymodal-tile-texts",children:[a("span",{className:"hub__paymodal-tile-label",children:l}),a("span",{className:"hub__paymodal-tile-value",children:r[o]})]})]})},l))}),F=({method:i,personFields:n=[],amountLabel:r="Yatırım Miktarı",submitLabel:o="Yatırım Talebi Gönder",favLabel:m="Favorilere Ekle",unfavLabel:c="Favorilerden Kaldır",onSubmit:t,onFavorite:h})=>{const[p,u]=l(!!i.favorite),[b,_]=l(""),[v,y]=x(n);return e("div",{className:"hub__paymodal",children:[a(S,{logo:i.logo,name:i.name,side:a(s,{variant:p?"default":"outline",size:"medium",onClick:()=>{u(!p),h?.(!p)},children:p?c:m})}),a(L,{labels:["Yatırım Süresi","Min Yatırım","Max Yatırım"],values:[i.time,i.min,i.max]}),a("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-form",children:[n.map(e=>a(j,{f:e,onChange:a=>y(e,a)},e.label)),e("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[a("label",{className:"hub__paymodal-label",children:r}),a(d,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:a("span",{children:"₺"}),value:b,onChange:a=>_(String(a))})]})]}),a("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-submit",children:a(s,{variant:"default",size:"large",disabled:!b,onClick:()=>t?.({method:i,amount:b,fields:v}),children:o})})]})},I=({account:i,fields:n=[],amountLabel:r="Çekim Miktarı",submitLabel:o="Çekim Talebi Gönder",note:m,onSubmit:c})=>{const[h,p]=l(""),[u,b]=x(n);return e("div",{className:"hub__paymodal",children:[a(S,{logo:i.logo,name:i.name}),a(L,{labels:["Çekim Süresi","Min Çekim","Max Çekim"],values:[i.time,i.min,i.max]}),a("hr",{className:"hub__paymodal-sep"}),e("div",{className:"hub__paymodal-form",children:[n.map(e=>a(j,{f:e,onChange:a=>b(e,a)},e.label)),e("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[a("label",{className:"hub__paymodal-label",children:r}),a(d,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:a("span",{children:"₺"}),value:h,onChange:a=>p(String(a))})]}),m&&a(t,{type:"info",variant:"filled",children:a(g,{children:m})})]}),a("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-submit",children:a(s,{variant:"default",size:"large",disabled:!h,onClick:()=>c?.({account:i,amount:h,fields:u}),children:o})})]})},G=({account:i,accountTypes:n,typeFields:r,personFields:o=[],tcField:m,phoneField:t,nameLabel:h="Çekim Hesabı Adı",descLabel:p="Çekim Hesabı Açıklaması",typeLabel:u="Çekim Hesabı Türü",addLabel:b="Çekim Hesabı Ekle",editLabel:_="Çekim Hesabını Güncelle",onSubmit:v})=>{const y=!!i,[f,g]=l(i?.tags[0]??n[0]?.value??"bank"),[N,k]=l(i?.name??""),[C,L]=l(i?.desc??""),F=n.find(a=>a.value===f)??n[0],I=r[f]??r.default??{pre:[],post:[]},G=a=>y?a:{...a,value:void 0},M=[...I.pre.map(G),...m?[m]:[],...o,...I.post.map(G),...t?[t]:[]],[T,Y]=x(M);return e("div",{className:"hub__paymodal",children:[y&&F?a(S,{logo:{color:F.color,Icon:F.Icon,initials:F.initials},name:F.label}):e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:u}),a(z,{options:n,value:f,onChange:g,idPrefix:"acct"})]}),e("div",{className:"hub__paymodal-form",children:[e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:h}),a(d,{size:"x-large",value:N,onChange:a=>k(String(a))})]}),e("div",{className:"hub__paymodal-field",children:[a("label",{className:"hub__paymodal-label",children:p}),a(c,{rows:3,value:C,onChange:a=>L("string"==typeof a?a:a?.target?.value??"")})]}),M.map(e=>a(j,{f:e,onChange:a=>Y(e,a)},f+"-"+e.label))]}),a("hr",{className:"hub__paymodal-sep"}),a("div",{className:"hub__paymodal-submit",children:a(s,{variant:"default",size:"large",disabled:!N||!C,onClick:()=>v?.({edit:y,type:f,name:N,desc:C,fields:T}),children:y?_:b})})]})},M=({row:l,favTitle:i="Favori",hotTitle:n="Popüler"})=>"group"===l.type?e("span",{className:"hub__pay-name",children:[a("span",{className:"hub__pay-groupname",children:l.name}),a("span",{children:a(h,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:l.methodCount+" Yöntem"})})]}):a("span",{className:"hub__pay-name",children:e("span",{className:"hub__pay-title",children:[l.name,l.favorite&&a("i",{className:"hub__pay-mark hub__pay-mark--fav",title:i,children:a(r,{size:9})}),l.popular&&a("i",{className:"hub__pay-mark hub__pay-mark--hot",title:n,children:a(o,{size:9})})]})});export{G as HubAccountModal,F as HubDepositModal,j as HubPayFieldRow,z as HubPayFilter,C as HubPayLogoBadge,S as HubPayModalCard,L as HubPayModalTiles,M as HubPayName,I as HubWithdrawModal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as o,useMemo as t}from"react";import{Search as l,ChevronDown as n,Star as d,Flame as r,ChevronUp as s}from"lucide-react";import m from"../../button/index.js";import p from"../../input/index.js";import h from"../../badge/index.js";import c from"../../table/index.js";import{GetClassNameByPlatform as u}from"../../helpers/classname/GetClassNameByPlatform.js";import{HubPayFilter as b,HubPayLogoBadge as _,HubPayName as y}from"./cashier.js";const g=(e,a="")=>({key:(a?a+"-":"")+e.name,type:"method",name:e.name,logo:e.logo,time:e.time,min:e.min,max:e.max,favorite:e.favorite,popular:e.popular,method:e}),f=({row:a,nested:o,onDeposit:t,payLabel:l})=>e("div",{className:(o?"":"inn-mobile-deposit-list-method-item ")+"hub__dep-item"+(o?" hub__dep-item--nested":""),children:[i(_,{logo:a.logo}),e("div",{className:"hub__dep-main",children:[e("span",{className:"hub__dep-title",children:[a.favorite&&i("i",{className:"hub__pay-mark hub__pay-mark--fav",title:"Favori",children:i(d,{size:9})}),a.popular&&i("i",{className:"hub__pay-mark hub__pay-mark--hot",title:"Popüler",children:i(r,{size:9})}),i("span",{className:"hub__dep-name",children:a.name})]}),e("div",{className:"hub__dep-meta",children:[e("div",{className:"hub__dep-amts",children:[i("span",{children:"Min "+a.min}),i("span",{children:"Maks "+a.max})]}),i("span",{className:"hub__dep-time",children:a.time})]})]}),i(m,{size:"small",onClick:()=>a.method&&t(a.method),children:l})]}),k=({row:a,open:o,onToggle:t,onDeposit:l,payLabel:d,methodWord:r})=>e("div",{className:"inn-mobile-deposit-list-method-group hub__dep-group","data-open":o,children:[e("button",{type:"button",className:"hub__dep-item hub__dep-grouprow",onClick:()=>t(a.key),children:[i(_,{logo:a.logo}),e("div",{className:"hub__dep-main",children:[i("span",{className:"hub__dep-name",children:a.name}),i("span",{children:i(h,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:a.methodCount+" "+r})})]}),i(n,{className:"hub__dep-chev","aria-hidden":!0})]}),i("div",{className:"inn-mobile-deposit-list-method-group-submethods hub__dep-sub",children:i("div",{className:"hub__dep-sub-inner",children:a.children?.map(e=>i(f,{row:e,nested:!0,onDeposit:l,payLabel:d},e.key))})})]}),x=({methods:d,filters:r,onDeposit:h,isMobile:x=!1,filterMarker:N="inn-deposit-filter-bar",tableMarker:v="inn-deposit-table",searchPlaceholder:w="Arama",minPlaceholder:C="Min",payLabel:z="Para Yatır",showGroupLabel:L="Grubu Göster",hideGroupLabel:G="Grubu Gizle",methodWord:M="Yöntem",emptyText:T="Yatırım yöntemi bulunamadı!",timeTitle:j="Süre",nameTitle:P="İsim",minTitle:D="Min Yatırım",maxTitle:I="Max Yatırım"})=>{const[B,Y]=o("all"),[S,W]=o(""),[F,K]=o(""),[A,E]=o([]),H=t(()=>(e=>e.map(e=>"group"===e.kind?{key:e.id,type:"group",name:e.name,logo:e.logo,time:"",min:"",max:"",methodCount:e.methods.length,children:e.methods.map(a=>g(a,e.id))}:g(e.method)))(d),[d]),R=t(()=>((e,a,i,o,t)=>{const l=o.trim().toLowerCase(),n=parseFloat(t.replace(",","."))||0;if("all"===i&&!l&&!n)return a;const d=new Set,r=[];for(const a of e)for(const e of"group"===a.kind?a.methods:[a.method])d.has(e.name)||(d.add(e.name),r.push(e));return r.filter(e=>("all"===i||("popular"===i?e.popular:"favorites"===i?e.favorite:e.tags.includes(i)))&&(!l||e.name.toLowerCase().includes(l))&&(!n||e.minVal<=n)).map(e=>g(e))})(d,H,B,S,F),[d,H,B,S,F]),V=e=>{E(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},q=[{key:"logo",dataIndex:"logo",title:"",width:70,render:(e,a)=>i(_,{logo:a.logo})},{key:"name",dataIndex:"name",title:P,render:(e,a)=>i(y,{row:a})},{key:"time",dataIndex:"time",title:j,width:140},{key:"min",dataIndex:"min",title:D,width:140},{key:"max",dataIndex:"max",title:I,width:140},{key:"action",dataIndex:"key",title:"",width:170,render:(a,o)=>"group"===o.type?i("span",{className:"hub__pay-actions",children:e(m,{variant:"solid",size:"medium",onClick:()=>V(o.key),children:[A.includes(o.key)?G:L,A.includes(o.key)?i(s,{}):i(n,{})]})}):i("span",{className:"hub__pay-actions",children:i(m,{size:"medium",onClick:()=>o.method&&h(o.method),children:z})})}];return e(a,{children:[i(b,{options:r,value:B,onChange:Y,idPrefix:"dep",marker:N}),e("div",{className:"hub__pay-search"+(x?" hub__pay-search--single":""),children:[i(p,{size:"x-large",placeholder:w,addonBefore:i(l,{size:16}),value:S,onChange:e=>W(String(e))}),!x&&i(p,{size:"x-large",placeholder:C,addonBefore:"₺",value:F,onChange:e=>K(String(e))})]}),i("div",x?{className:"inn-mobile-deposit-list hub__deplist",children:i("div",{className:"inn-mobile-deposit-list-methods hub__deplist-methods",children:0===R.length?i("div",{className:"hub__pay-empty",children:i("span",{children:T})}):R.map(e=>"group"===e.type?i(k,{row:e,open:A.includes(e.key),onToggle:V,onDeposit:h,payLabel:z,methodWord:M},e.key):i(f,{row:e,onDeposit:h,payLabel:z},e.key))})}:{className:u(v)+" hub__paybox hub__pay-table",children:i(c,{columns:q,data:R,expandedKeys:A,onExpandedKeysChange:e=>E(e),cellHeight:"74px",headerBg:!1,hideGroupButtons:!0,getTRProps:(e,a,i)=>i>0?{className:"hub__pay-subrow"}:"group"===e.type?{className:"hub__pay-grouprow"}:{}})})]})};export{x as HubDepositPage,x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as t,jsx as i}from"react/jsx-runtime";import{useState as a,Fragment as n}from"react";import{Eye as r,Search as d}from"lucide-react";import l from"../../button/index.js";import s from"../../badge/index.js";import o from"../../input/index.js";import m from"../../select/index.js";import h from"../../datepicker/index.js";import{Tooltip as c}from"../../tooltip/Tooltip.js";import{TooltipTrigger as p}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as k}from"../../tooltip/TooltipContent.js";import{HubPayFilter as u}from"./cashier.js";import{HubTable as y,HubCopyBtn as g,HubHistName as x,HubDt as w,HubStatusBadge as b}from"./table.js";import{SelectItem as f}from"../../select/SelectItem.js";const I=({cols:t,filters:r,onFilter:d,minPlaceholder:l="Min",maxPlaceholder:s="Maks",startPlaceholder:c="Tarih Başlangıç",endPlaceholder:p="Tarih Bitiş"})=>{const[k,u]=a({}),y=(e,t,i)=>{const a=((e,t)=>e.name??String(t))(e,t),n={...k,[a]:"object"==typeof i&&"object"==typeof k[a]?{...k[a],...i}:i};u(n),d?.(n)};return i("div",{className:"hub__hist-filters hub__hist-filters--"+t,children:r.map((t,a)=>"select"===t.kind?i(m,{size:"x-large",defaultValue:t.options[0],"aria-label":t.ariaLabel,onChange:e=>y(t,a,String(e??"")),children:t.options.map(e=>i(f,{value:e,children:e},e))},a):"minmax"===t.kind?e("div",{className:"hub__hist-minmax",children:[i(o,{size:"x-large",placeholder:l,addonBefore:i("span",{children:"₺"}),onChange:e=>y(t,a,{min:String(e??"")})}),i(o,{size:"x-large",placeholder:s,addonBefore:i("span",{children:"₺"}),onChange:e=>y(t,a,{max:String(e??"")})})]},a):e(n,{children:[i(h,{size:"x-large",placeholder:c,"aria-label":c,onChange:e=>y(t,a,{start:String(e??"")})}),i(h,{size:"x-large",placeholder:p,"aria-label":p,onChange:e=>y(t,a,{end:String(e??"")})})]},a))})},T=({cats:e,idPrefix:t,wide:n})=>{const[r,d]=a(e[0]?.value??"all"),l=i(u,{options:e,value:r,onChange:d,idPrefix:t});return n?i("div",{className:"hub__hist-cats--wide",children:l}):l},v=({children:e})=>i("span",{className:"hub__hist-amount",children:e}),S=({data:a,onFilter:n,cats:d,providers:s,statuses:o,onDetail:m,marker:h={list:"inn-mobile-game-history-list",methods:"inn-mobile-game-history-list-methods",item:"inn-mobile-game-history-list-item"},tokenTitle:c="Fiş",gameTitle:p="Oyun",startTitle:k="Başlangıç",endTitle:u="Bitiş",oldBalTitle:b="Eski Bakiye",newBalTitle:f="Yeni Bakiye",winTitle:S="Kazanma",detailLabel:B="Detay"})=>{const _=[{key:"token",dataIndex:"key",title:c,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"game",dataIndex:"game",title:p,maxWidth:200,render:(e,t)=>i(x,{name:t.game,desc:t.cat})},{key:"start",dataIndex:"start",title:k,width:130,render:e=>i(w,{v:String(e)})},{key:"end",dataIndex:"end",title:u,width:130,render:e=>i(w,{v:String(e)})},{key:"oldBal",dataIndex:"oldBal",title:b,width:130},{key:"newBal",dataIndex:"newBal",title:f,width:130},{key:"win",dataIndex:"win",title:S,width:120,align:"right",render:e=>i(v,{children:String(e)})},{key:"details",dataIndex:"key",title:"",width:100,render:(t,a)=>i("span",{className:"hub__pay-actions",children:e(l,{variant:"solid",size:"medium",onClick:()=>m(a),children:[i(r,{size:13}),B]})})}];return e(t,{children:[i(T,{cats:d,idPrefix:"gh"}),i(I,{onFilter:n,cols:2,filters:[{kind:"select",options:s},{kind:"select",options:o},{kind:"daterange"}]}),i(y,{columns:_,data:a,cellHeight:"54px",marker:h})]})},B=({data:a,onFilter:n,cats:r,methods:d,statuses:l,types:s,marker:o={list:"inn-mobile-payment-history-list",methods:"inn-mobile-payment-history-list-methods",item:"inn-mobile-payment-history-list-item"},idTitle:m="Id",providerTitle:h="Sağlayıcı",statusTitle:c="Durum",dateTitle:p="Tarih",oldBalTitle:k="Eski Bakiye",newBalTitle:u="Yeni Bakiye",amountTitle:f="Miktar"})=>{const S=[{key:"id",dataIndex:"key",title:m,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:h,maxWidth:200,render:(e,t)=>i(x,{name:t.name,desc:t.sub})},{key:"status",dataIndex:"status",title:c,width:130,render:e=>i(b,{s:String(e)})},{key:"date",dataIndex:"date",title:p,width:130,render:e=>i(w,{v:String(e)})},{key:"oldBal",dataIndex:"oldBal",title:k,width:130},{key:"newBal",dataIndex:"newBal",title:u,width:130},{key:"amount",dataIndex:"amount",title:f,width:120,align:"right",render:e=>i(v,{children:String(e)})}];return e(t,{children:[i(T,{cats:r,idPrefix:"ph"}),i(I,{onFilter:n,cols:3,filters:[{kind:"select",options:d},{kind:"select",options:l},{kind:"select",options:s},{kind:"minmax"},{kind:"daterange"}]}),i(y,{columns:S,data:a,cellHeight:"54px",marker:o})]})},_=({data:a,onFilter:n,cats:r,creators:d,statuses:l,types:s,marker:o={list:"inn-mobile-bonus-history-list",methods:"inn-mobile-bonus-history-list-methods",item:"inn-mobile-bonus-history-list-item"},nameTitle:m="İsim",catTitle:h="Kategori",statusTitle:c="Durum",applyTitle:p="Başvuru Tarihi",finishTitle:k="Tamamlanma",profitTitle:u="Net Kar",cashbackTitle:g="Geri Ödeme",amountTitle:f="Bonus Miktarı",creatorLabel:S="Oluşturan: "})=>{const B=[{key:"name",dataIndex:"name",title:m,maxWidth:200,render:(e,t)=>i(x,{name:t.name,desc:t.sub,creator:t.creator,creatorLabel:S})},{key:"cat",dataIndex:"cat",title:h,width:90},{key:"status",dataIndex:"status",title:c,width:150,render:e=>i(b,{s:String(e)})},{key:"apply",dataIndex:"apply",title:p,width:145,render:e=>i(w,{v:String(e)})},{key:"finish",dataIndex:"finish",title:k,width:145,render:e=>i(w,{v:String(e)})},{key:"profit",dataIndex:"profit",title:u,width:100},{key:"cashback",dataIndex:"cashback",title:g,width:110},{key:"amount",dataIndex:"amount",title:f,width:120,align:"right",render:e=>i(v,{children:String(e)})}];return e(t,{children:[i(T,{cats:r,idPrefix:"bh",wide:!0}),i(I,{onFilter:n,cols:3,filters:[{kind:"select",options:d},{kind:"select",options:l},{kind:"select",options:s},{kind:"minmax"},{kind:"daterange"}]}),i(y,{columns:B,data:a,cellHeight:"54px",marker:o})]})},z=({data:a,onFilter:n,providers:o,statuses:m,onGames:h,marker:u={list:"inn-mobile-free-spin-history-list",methods:"inn-mobile-free-spin-history-list-methods",item:"inn-mobile-free-spin-history-list-item"},idTitle:f="Id",providerTitle:T="Sağlayıcı",winTitle:S="Kazanç",statusTitle:B="Durum",gamesTitle:_="Oyun Sayısı",spinsTitle:z="Spin Sayısı",startTitle:j="Başlangıç",endTitle:C="Bitiş",gamesTooltip:F="Free Spin Oyunları",viewGamesLabel:P="Geçerli Oyunları Görüntüle"})=>{const N=[{key:"id",dataIndex:"key",title:f,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"provider",dataIndex:"provider",title:T,maxWidth:200,render:(e,t)=>i(x,{name:t.provider})},{key:"status",dataIndex:"status",title:S,width:140,render:e=>i(b,{s:String(e)})},{key:"games",dataIndex:"games",title:_,width:120,render:(t,a)=>e("span",{className:"hub__hist-count",children:[i(s,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(t)}),e(c,{children:[i(p,{asChild:!0,children:i(l,{variant:"ghost",size:"icon-sm","aria-label":F,onClick:()=>h(a),children:i(r,{size:13})})}),i(k,{placement:"top",children:F})]})]})},{key:"spins",dataIndex:"spins",title:z,width:110,render:e=>i(s,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(e)})},{key:"start",dataIndex:"start",title:j,width:145,render:e=>i(w,{v:String(e)})},{key:"end",dataIndex:"end",title:C,width:145,render:e=>i(w,{v:String(e)})},{key:"won",dataIndex:"won",title:S,width:110,align:"right",render:e=>i(v,{children:String(e)})}],D=[{key:"id",dataIndex:"key",title:f,width:50,render:(e,t)=>i(g,{value:t.key,compact:!0})},{key:"provider",dataIndex:"provider",title:T,maxWidth:200,render:(e,t)=>i(x,{name:t.provider})},{key:"status",dataIndex:"status",title:B,width:140,render:e=>i(b,{s:String(e)})},{key:"games",dataIndex:"games",title:_,width:120,render:e=>i(v,{children:String(e)})},{key:"spins",dataIndex:"spins",title:z,width:110,render:e=>i(s,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(e)})},{key:"start",dataIndex:"start",title:j,width:145,render:e=>i(w,{v:String(e)})},{key:"end",dataIndex:"end",title:C,width:145,render:e=>i(w,{v:String(e)})},{key:"won",dataIndex:"won",title:S,width:110,render:e=>i(v,{children:String(e)})},{key:"actions",dataIndex:"key",title:"",width:220,render:(t,a)=>i("span",{className:"hub__pay-actions hub__pay-actions--full",children:e(l,{variant:"solid",size:"medium",onClick:()=>h(a),children:[i(d,{size:14}),P]})})}];return e(t,{children:[i(I,{onFilter:n,cols:4,filters:[{kind:"select",options:o},{kind:"select",options:m},{kind:"daterange"}]}),i(y,{columns:N,mobileColumns:D,data:a,cellHeight:"54px",marker:u})]})};export{_ as HubBonusHistory,z as HubFreespinHistory,S as HubGameHistory,B as HubPaymentHistory};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useRef as n,useState as i,useEffect as l}from"react";import{PanelLeftOpen as s,PanelLeftClose as r,EyeOff as c,Eye as t,ChevronRight as o,ChevronLeft as d,X as h}from"lucide-react";import{GetClassNameByPlatform as m}from"../../helpers/classname/GetClassNameByPlatform.js";import{realmOf as b}from"../../hooks/useRealm.js";import{useHubMobile as u,hubClass as _}from"./platform.js";import{Avatar as v}from"../../avatar/index.js";import p from"../../button/index.js";import{Tabs as N}from"../../tabs/Tabs.js";import{TabsList as f}from"../../tabs/TabsList.js";import{TabsTrigger as g}from"../../tabs/TabsTrigger.js";import"../../tabs/TabsContent.js";const k=({nav:k,section:y,onSectionChange:w,tab:C,onTabChange:T,open:j=!0,onOpenChange:L,onClose:z,user:A,balance:x,rootLabel:M="Kullanıcı Merkezi",closeLabel:E="Kapat",mobileHome:B,children:P,rootProps:R,className:I})=>{const K=n(null),D=u(K);var G,W;l(()=>{const e=b(G.current).doc?.documentElement;if(e)return e.classList.toggle("itd-mobile",W),()=>e.classList.remove("itd-mobile")},[G=K,W=D]);const[H,O]=i(!1),[S,V]=i(!1);l(()=>{const e=b(K.current).win;if(!e)return;const a=e.matchMedia("(max-width: 75rem)"),n=()=>V(a.matches);return n(),a.addEventListener("change",n),()=>a.removeEventListener("change",n)},[]);const Y=S||H,q=!j,[F,J]=i(!1),Q=n(q);l(()=>{!Q.current&&q&&J(!0),Q.current=q},[q]),l(()=>{if(!F)return;const e=setTimeout(()=>J(!1),300);return()=>clearTimeout(e)},[F]);const U=q?F?"closing":"menu":"section",X=k.find(e=>e.key===y)??k[0],Z=X?.tabs??[{value:"soon",label:X?.label}],$=Z.find(e=>e.value===C)?.label??"";return e("div",{className:"hub"+(Y?" hub--rail":"")+(I?" "+I:""),ref:K,"data-mobile-view":U,...R,children:a("div",{className:"hub__panel",children:[a("aside",{className:"inn-userhub-sidebar hub__side",children:[a("div",{className:"inn-userhub-user-detail hub__user",children:[A.avatar??e(v,{className:"hub__avatar","aria-hidden":!0}),a("div",{children:[e("div",{className:"hub__username",children:A.name}),null!=A.country&&e("div",{className:"hub__country",children:A.country})]}),!S&&e("button",{type:"button",className:"hub__side-toggle",onClick:()=>O(e=>!e),"aria-label":Y?"Menüyü genişlet":"Menüyü daralt",children:e(Y?s:r,{size:16})})]}),e("div",{className:"hub__side-bal",children:a("div",{className:"hub__side-bal-inner",children:[a("div",{className:"inn-userhub-balance hub__balance",children:[a("div",{className:"hub__balance-info",children:[a("div",{className:"hub__balance-head",children:[e("span",{children:x.label??"Aktif Bakiye"}),x.onToggleMask&&e("button",{type:"button",className:"hub__balance-eye",onClick:x.onToggleMask,"aria-label":x.masked?"Bakiyeyi göster":"Bakiyeyi gizle",children:x.masked?e(c,{"aria-hidden":!0}):e(t,{"aria-hidden":!0})})]}),e("div",{className:"hub__balance-amount",children:x.amount})]}),(x.onDeposit||x.onWithdraw)&&a("div",{className:"hub__balance-actions",children:[a(p,{variant:"default",size:"small",onClick:x.onDeposit,children:[x.depositIcon,x.depositLabel??"PARA YATIR"]}),a(p,{variant:"default",size:"small",onClick:x.onWithdraw,children:[x.withdrawIcon,x.withdrawLabel??"PARA ÇEK"]})]})]}),x.rows&&x.rows.length>0&&e("dl",{className:"inn-userhub-balance-details hub__rows",children:x.rows.map((n,i)=>a("div",{className:"hub__row",children:[e("dt",{children:n.label}),e("dd",{children:n.value})]},i))})]})}),e("nav",{className:"inn-userhub-navigation hub__nav",children:k.map(n=>a("button",{className:"hub__nav-item",onClick:()=>w(n.key),...n.key===y?{"data-active":""}:{},children:[n.icon,e("span",{children:n.label}),e(o,{"aria-hidden":!0})]},n.key))})]}),B,a("main",{className:_("inn-userhub-inner","hub__main"),onAnimationEnd:e=>{"hub-slide-out"===e.animationName&&J(!1)},children:[a("div",{className:"inn-mobile-userhub-breadcrumb hub__mhead",children:[e(p,{variant:"solid",size:"icon-sm",className:"hub__mback","aria-label":"Geri",onClick:()=>{J(!0),L?.(!1)},children:e(d,{size:18})}),e("span",{className:"hub__mtitle",children:X?.label})]}),a("div",{className:"inn-userhub-breadcrumb hub__head",children:[a("div",{className:"hub__crumbs",children:[e("span",{children:M}),e(o,{"aria-hidden":!0}),e("span",{children:X?.label}),e(o,{"aria-hidden":!0}),e("b",{children:$})]}),e(p,{variant:"ghost",className:"hub__x","aria-label":E,onClick:z,children:e(h,{size:18})})]}),e("div",{className:"hub__body",children:a(N,{variant:"line",compact:!0,accent:!0,className:m("inn-userhub-sub-menu"),overflow:!D,value:C,onValueChange:T,children:[e(f,{children:Z.map(({value:a,label:n})=>e(g,{value:a,className:"hub__tab",children:n},a))}),P]})})]})]})})};export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as a,jsx as s}from"react/jsx-runtime";import{useState as l}from"react";import{ImageOff as i,MessageSquare as r,Star as t}from"lucide-react";import n from"../../button/index.js";import c from"../../input/index.js";import d from"../../select/index.js";import o from"../../textarea/index.js";import m from"../../upload/index.js";import{FileTypes as h}from"../../enums/enum.js";import{HubStatusBadge as u}from"./table.js";import{SelectItem as b}from"../../select/SelectItem.js";const _=({categories:l,uploadAction:i,header:r="Yeni Mesaj / Talep",categoryPlaceholder:t="Kategori",subjectPlaceholder:u="Konu",messagePlaceholder:_="Mesajınızı buraya yazın...",imageHeader:p="Görsel Ekle",optionalNote:g="(isteğe bağlı)",submitLabel:N="Mesajı Gönder",onSubmit:v})=>e(a,{children:[s("div",{className:"inn-sub-page-header hub__section",children:r}),e("div",{className:"hub__grid",children:[s(d,{size:"x-large",placeholder:t,"aria-label":t,children:l.map(e=>s(b,{value:e,children:e},e))}),s(c,{size:"x-large",placeholder:u,"aria-label":u})]}),s("div",{className:"hub__grid hub__grid--full",children:s(o,{rows:6,placeholder:_,"aria-label":_})}),e("div",{className:"inn-sub-page-header hub__section",children:[p," ",s("span",{className:"hub__msg-optional",children:g})]}),s("div",{className:"hub__grid hub__grid--full",children:s(m,{action:i,requestMethod:"post",binaryName:"image",fileTypes:[h.JPG,h.JPEG,h.PNG],maxFileSize:5120,showDeleteIcon:!0,showPreviewIcon:!0,containerHeight:200,fluid:!0})}),s(n,{variant:"default",size:"large",className:"hub__save",onClick:v,children:N})]}),p=({t:a,onOpen:l,answeredStatus:i,processingStatus:t})=>{return e("button",{type:"button",className:"hub__msg-item",onClick:()=>l(a),children:[s("span",{className:"hub__msg-icon hub__msg-icon--"+(n=a.status,c=i,d=t,n===d?"wait":n===c?"answered":"closed"),children:s(r,{size:17})}),e("span",{className:"hub__msg-main",children:[e("span",{className:"hub__msg-top",children:[s("span",{className:"hub__msg-subject",children:a.subject}),s(u,{s:a.status})]}),s("span",{className:"hub__msg-preview",children:a.preview}),e("span",{className:"hub__msg-sub",children:[s("span",{children:"#"+a.no+" · "+a.category}),s("span",{children:a.date})]})]})]});var n,c,d},g=({tickets:i,filters:r,onOpen:t,allLabel:n="Tümü",answeredStatus:c="Yanıtlandı",processingStatus:d="İşlemde"})=>{const[o,m]=l(n),h=o===n?i:i.filter(e=>e.status===o);return e(a,{children:[s("div",{className:"hub__msg-filter",children:r.map(e=>s("button",{type:"button",className:o===e?"is-active":"",onClick:()=>m(e),children:e},e))}),s("div",{className:"hub__msg-list",children:h.map(e=>s(p,{t:e,onOpen:t,answeredStatus:c,processingStatus:d},e.key))})]})},N=({value:e,onChange:a,starLabel:l=" yıldız"})=>s("span",{className:"hub__stars",children:[1,2,3,4,5].map(i=>s("button",{type:"button",className:"hub__star"+(i<=e?" is-on":""),onClick:()=>a(i),"aria-label":i+l,children:s(t,{size:20})},i))}),v=({ticket:a,closedStatus:r="Kapandı",youLabel:t="Siz",supportLabel:c="Destek Ekibi",closedNotice:d="Bu konu destek ekibi tarafından kapatılmıştır.",rateLabel:m="Hizmetimizi puanlayın:",replyPlaceholder:h="Yanıtınızı yazın...",replyLabel:u="Yanıtla",onReply:b,onRate:_})=>{const[p,g]=l(a.rating??0),v=a.status===r;return e("div",{className:"hub__thread",children:[s("div",{className:"hub__thread-body",children:a.messages.map((a,l)=>"system"===a.from?s("div",{className:"hub__msg-sys",children:a.text},l):e("div",{className:"hub__bubble hub__bubble--"+a.from,children:[e("div",{className:"hub__bubble-meta",children:[s("span",{className:"hub__bubble-who",children:"user"===a.from?t:c}),s("span",{className:"hub__bubble-time",children:a.time})]}),s("div",{className:"hub__bubble-text",children:a.text}),a.image&&s("span",{className:"hub__bubble-img",children:s(i,{size:20})})]},l))}),e("div",v?{className:"hub__thread-rate",children:[s("span",{className:"hub__thread-closed",children:d}),e("div",{className:"hub__rate-row",children:[s("span",{className:"hub__rate-label",children:m}),s(N,{value:p,onChange:e=>{g(e),_?.(e)}})]})]}:{className:"hub__thread-reply",children:[s(o,{rows:3,placeholder:h,"aria-label":u}),s(n,{variant:"default",size:"default",onClick:b,children:u})]})]})};export{g as HubMessageInbox,_ as HubNewTicketForm,v as HubTicketThread};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as o,useEffect as e}from"react";import{realmOf as r}from"../../hooks/useRealm.js";import{GetClassNameByPlatform as m}from"../../helpers/classname/GetClassNameByPlatform.js";const s=o=>!!r(o).doc?.cookie.includes("web-platform=mobile"),t=r=>{const[m,t]=o(s);return e(()=>{t(s(r?.current))},[r]),m},a=(o,e)=>m(o)+" "+e;export{a as hubClass,t as useHubMobile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as a,jsx as l}from"react/jsx-runtime";import{useState as i}from"react";import{Crown as n,Medal as r,TrendingUp as s,Gamepad2 as d,Folder as t,Trophy as c,FileQuestion as h,User as m,ChevronRight as o,Info as u}from"lucide-react";import _ from"../../button/index.js";import b from"../../progress/index.js";import p from"../../select/index.js";import v from"../../table/index.js";import{Avatar as g}from"../../avatar/index.js";import{HoverCard as N}from"../../hovercard/HoverCard.js";import{HoverCardTrigger as f}from"../../hovercard/HoverCardTrigger.js";import{HoverCardContent as y}from"../../hovercard/HoverCardContent.js";import{Sheet as w,SheetTrigger as k,SheetContent as x,SheetHeader as L,SheetTitle as C}from"../../dialog/Dialog.js";import{SelectItem as T}from"../../select/SelectItem.js";const S=({Icon:a})=>l("span",{className:"hub__medal-shape","aria-hidden":!0,children:e("span",{className:"hub__medal-hexwrap",children:[e("svg",{className:"hub__medal-hexsvg",viewBox:"0 0 48 54",children:[l("defs",{children:e("linearGradient",{id:"hub-gold",x1:"0",y1:"0",x2:"1",y2:"1",children:[l("stop",{offset:"0",stopColor:"#ffd54d"}),l("stop",{offset:"0.55",stopColor:"#f1ab00"}),l("stop",{offset:"1",stopColor:"#d98e00"})]})}),l("path",{d:"M28.3 3.55 L41.7 11.45 Q46 14 46 19 L46 35 Q46 40 41.7 42.55 L28.3 50.45 Q24 53 19.7 50.45 L6.3 42.55 Q2 40 2 35 L2 19 Q2 14 6.3 11.45 L19.7 3.55 Q24 1 28.3 3.55 Z",fill:"url(#hub-gold)"})]}),l("span",{className:"hub__medal-glyph",children:l(a,{})})]})}),j=({medal:a,onOpen:i})=>e("button",{type:"button",className:"hub__medal"+(a.locked?" hub__medal--locked":""),onClick:()=>i(a),children:[l("span",{className:"hub__medal-visual",children:l(S,{Icon:a.Icon})}),e("span",{className:"hub__medal-bottom",children:[l("span",{className:"hub__medal-name",children:a.name}),l("span",{className:"hub__medal-countwrap",children:e("span",{className:"hub__medal-count",children:[l(m,{"aria-hidden":!0}),a.count]})})]})]}),z=({medal:a,durationLabel:i="Süre",quantityLabel:n="Miktar",earnersLabel:r="Hakeden Sayısı"})=>e("div",{className:"hub__medal-detail",children:[l("span",{className:"hub__medal-visual",children:l(S,{Icon:a.Icon})}),l("div",{className:"hub__medal-detail-name",children:a.name}),l("p",{className:"hub__medal-detail-desc",children:a.description}),e("dl",{className:"hub__medal-detail-rows",children:[e("div",{children:[l("dt",{children:i}),l("dd",{children:a.duration})]}),e("div",{children:[l("dt",{children:n}),l("dd",{children:a.quantity})]}),e("div",{children:[l("dt",{children:r}),l("dd",{children:a.count})]})]})]}),I=({marker:a,icon:i,title:n,titleExtra:r,action:s,children:d})=>e("section",{className:a?a+" hub__box":"hub__box",children:[e("div",{className:"inn-sub-page-header hub__box-head",children:[e("span",{className:"hub__box-title",children:[i,n,r]}),s]}),l("hr",{className:"hub__hairline"}),d]}),O=({stats:a})=>l("div",{className:"hub__stats",children:a.map((a,i)=>e("div",{className:"hub__stat",children:[l("div",{className:"hub__stat-label",children:a.label}),l("div",{className:"hub__stat-value",children:a.value})]},i))}),D=({label:a,onClick:i})=>e(_,{variant:"link",size:"x-small",className:"hub__details",onClick:i,children:[a,l(o,{"aria-hidden":!0})]}),K=({user:i,vip:c,medals:h,stats:m,topSlots:o,onMedalOpen:u,onVipClub:p,onMedalsDetail:v,onStatsDetail:N,vipClubLabel:f="VIP Klübü",medalsTitle:y="Madalyalar",statsTitle:w="İstatistikler",topSlotsTitle:k="En Çok Oynadığınız Slot Oyunları",liveTitle:x="En Çok Oynadığınız Canlı Casino Oyunları",detailsLabel:L="Detaylar",cevrimLabel:C="Çevrim",noDataLabel:T="Veri Yok"})=>e(a,{children:[e("div",{className:"inn-user-profile-summary hub__profile hub__profile--user",children:[i.avatar??l(g,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e("div",{children:[l("div",{className:"hub__username",children:i.username}),null!=i.fullname&&l("div",{className:"hub__fullname",children:i.fullname})]})]}),e("section",{className:"inn-vip-level-summary hub__vip",children:[e("div",{className:"hub__vip-head",children:[e("div",{className:"hub__vip-meta",children:[l("div",{className:"inn-vip-level-title hub__vip-title",children:c.title}),l("span",{className:"hub__vip-dp",children:c.dp})]}),e(_,{size:"small",className:"hub__vip-btn",onClick:p,children:[l(n,{"aria-hidden":!0}),f]})]}),e("div",{className:"inn-vip-level-progress hub__vip-progress",children:[l(b,{percent:c.percent,showInfo:!1,status:"success"}),l("span",{className:"hub__vip-next",children:c.nextText})]})]}),l(I,{marker:"inn-medals-summary-box",icon:l(r,{"aria-hidden":!0}),title:y,action:l(D,{label:L,onClick:v}),children:l("div",{className:"inn-medals-summary hub__medals",children:h.slice(0,8).map(e=>l(j,{medal:e,onOpen:u},e.name))})}),l(I,{icon:l(s,{"aria-hidden":!0}),title:w,action:l(D,{label:L,onClick:N}),children:l(O,{stats:m})}),l(I,{marker:"inn-favorite-casino-games-summary-box",icon:l(d,{"aria-hidden":!0}),title:k,children:l("div",{className:"inn-favorite-casino-games-summary hub__games",children:o.map(a=>e("div",{className:"hub__game",children:[l("span",{className:"hub__game-art hub__game-art--"+a.art,"aria-hidden":!0,children:a.emoji}),e("div",{className:"hub__game-info",children:[l("div",{className:"hub__game-name",children:a.name}),e("div",{children:[l("div",{className:"hub__game-amount",children:a.amount}),l("div",{className:"hub__game-cur",children:C})]})]})]},a.name))})}),l(I,{marker:"inn-favorite-live-casino-games-summary-box",icon:l(d,{"aria-hidden":!0}),title:x,children:l("div",{className:"inn-favorite-live-casino-games-summary hub__games",children:[1,2,3].map(a=>e("div",{className:"hub__game hub__game--empty",children:[l(t,{"aria-hidden":!0}),l("span",{className:"hub__empty-text",children:T})]},a))})})]}),M=({tips:a,unitLabel:i="madalya:",winLabel:n="ödül kazan"})=>l("div",{className:"hub__reward-tips",children:a.map(([a,r],s)=>e("span",{className:"hub__reward-tip",children:[a," ",i," ",l("b",{children:r})," ",n]},s))}),Q=({tips:i,sheetTitle:n,unitLabel:r,winLabel:s})=>e(a,{children:[l("span",{className:"hub__reward-info hub__reward-info--hover",children:e(N,{children:[l(f,{children:l(u,{"aria-hidden":!0,className:"hub__reward-info-icon"})}),l(y,{variant:"filled",children:l(M,{tips:i,unitLabel:r,winLabel:s})})]})}),l("span",{className:"hub__reward-info hub__reward-info--sheet",children:e(w,{children:[l(k,{asChild:!0,children:l("button",{type:"button",className:"hub__reward-info-btn","aria-label":"string"==typeof n?n:void 0,children:l(u,{"aria-hidden":!0,className:"hub__reward-info-icon"})})}),e(x,{side:"bottom",children:[l(L,{children:l(C,{children:n})}),l(M,{tips:i,unitLabel:r,winLabel:s})]})]})})]}),E=e=>{const a=e.currentTarget.querySelector(".hub__reward-art");a&&(a.classList.add("shake"),a.addEventListener("animationend",()=>a.classList.remove("shake"),{once:!0}))},H=({medals:i,rewardTiers:n,rewardTips:s,rewardPercent:d=10,onMedalOpen:t,rewardsTitle:h="Ödüller",rewardsSheetTitle:m="Ödül Detayları",rewardUnitLabel:o="madalya:",rewardWinLabel:u="ödül kazan",earnedTitle:_="Kazançlarınız",earnedCountText:p="2 / 20 Hakedildi",awaitingTitle:v="Kilidi Açılması Bekleyenler"})=>e(a,{children:[e(I,{icon:l(c,{"aria-hidden":!0}),title:h,titleExtra:l(Q,{tips:s,sheetTitle:m,unitLabel:o,winLabel:u}),children:[l("div",{className:"hub__rewards",children:n.map(({label:a,emoji:i,lockable:n})=>e("div",{className:"hub__reward"+(n?" hub__reward--lockable":""),...n?{onClick:E}:{},children:[l("span",{className:"hub__reward-art","aria-hidden":!0,children:i}),l("span",{className:"hub__reward-label",children:a})]},a))}),l("div",{className:"hub__rewards-progress",children:l(b,{percent:d,showInfo:!1,status:"success"})})]}),l(I,{marker:"inn-completed-medals",icon:l(r,{"aria-hidden":!0}),title:_,action:l("span",{className:"hub__box-count",children:p}),children:l("div",{className:"hub__medals hub__medals--wrap",children:i.filter(e=>!e.locked).map(e=>l(j,{medal:e,onOpen:t},e.name))})}),l(I,{marker:"inn-awaiting-unlocking-medals",icon:l(r,{"aria-hidden":!0}),title:v,children:l("div",{className:"hub__medals hub__medals--wrap",children:i.filter(e=>e.locked).map(e=>l(j,{medal:e,onOpen:t},e.name))})})]}),P="__all__",B=(e,a)=>{const l=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&""!==e);if(0===l.length)return[P];const i=a.includes(P),n=l.includes(P);return n&&!i?[P]:n&&l.length>1?l.filter(e=>e!==P):l},V=({gameStats:n,categories:r,providers:d,stats:t,gameTitle:c="Oyun",winTitle:m="Kazanma",betTitle:o="Bahis",wageredTitle:u="Çevrim",statsTitle:_="İstatistikler",categoryPlaceholder:b="Tüm Kategoriler",providerPlaceholder:g="Tüm Sağlayıcılar",gamePlaceholder:N="Tüm Oyunlar",selectionLabel:f="Seçim",casinoRelabel:y="Slotlar",noDataLabel:w="Veri Yok",onStatsFilter:k})=>{const[x,L]=i(""),[C,S]=i([P]),[j,z]=i([P]),D=n.filter(e=>(!x||e.category===x)&&(C.includes(P)||C.includes(e.provider))&&(j.includes(P)||j.includes(e.game))),K=e=>k?.({category:x,providers:C,games:j,...e}),M=[{dataIndex:"game",key:"game",title:c,render:(a,i)=>e("span",{className:"hub__cell-game",children:[l("span",{className:"hub__cell-big",children:String(a)}),l("span",{className:"hub__cell-sub",children:i.category+" / "+i.provider})]})},{dataIndex:"win",key:"win",title:m,render:e=>l("span",{className:"hub__cell-big",children:String(e)})},{dataIndex:"bet",key:"bet",title:o,render:e=>l("span",{className:"hub__cell-big",children:String(e)})},{dataIndex:"wagered",key:"wagered",title:u,width:"120px",render:e=>l("span",{className:"hub__cell-big hub__cell-cur",children:String(e)})}];return e(a,{children:[e("div",{className:"hub__filterbar",children:[e(p,{size:"x-large",placeholder:b,value:x,onChange:e=>{const a=e?String(e):"";L(a),K({category:a})},"aria-label":"Kategori",children:[l(T,{value:"",children:b}),r.map(e=>l(T,{value:e,children:"Casino"===e?y:e},e))]}),e(p,{size:"x-large",multi:!0,placeholder:g,"aria-label":"Sağlayıcı",value:C,label:C.includes(P)?void 0:f+" ("+C.length+")",onChange:e=>{const a=B(e,C);S(a),K({providers:a})},children:[l(T,{value:P,children:g}),d.map(e=>l(T,{value:e,children:e},e))]}),e(p,{size:"x-large",multi:!0,placeholder:N,"aria-label":"Oyun",value:j,label:j.includes(P)?void 0:f+" ("+j.length+")",onChange:e=>{const a=B(e,j);z(a),K({games:a})},children:[l(T,{value:P,children:N}),n.map(e=>l(T,{value:e.game,children:e.game},e.key))]})]}),l(I,{icon:l(s,{"aria-hidden":!0}),title:_,children:l(O,{stats:t})}),l("section",{className:"inn-statistics-game-stats-table hub__box hub__box--flush hub__stat-table",children:D.length>0?l(v,{columns:M,data:D,size:"medium",headerBg:!1}):e("div",{className:"hub__nodata",children:[l(h,{"aria-hidden":!0}),l("span",{className:"hub__empty-text",children:w})]})})]})};export{j as HubMedalButton,z as HubMedalDetail,H as HubMedals,K as HubProfileSummary,V as HubStatistics};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as i,Fragment as t}from"react/jsx-runtime";import{useState as a}from"react";import{ImageOff as n,Clock as l}from"lucide-react";import s from"../../button/index.js";import r from"../../badge/index.js";import d from"../../alert/index.js";import{Tooltip as c}from"../../tooltip/Tooltip.js";import{TooltipTrigger as m}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as h}from"../../tooltip/TooltipContent.js";import{HubTable as o,HubCopyBtn as p,HubStatusBadge as u,HubDt as b}from"./table.js";import{AlertDescription as k}from"../../alert/Description.js";const _=({children:i})=>i?e(d,{type:"info",variant:"filled",children:e(k,{children:i})}):null,f=({start:t,end:a})=>i("span",{className:"hub__fsact-se",children:[e("span",{children:t}),e("span",{children:a})]}),y=({data:a,intro:n,onGames:r,marker:d={desktop:"inn-free-spin-activation-table",list:"inn-mobile-free-spin-activation-list",methods:"inn-mobile-free-spin-activation-list-items",item:"inn-mobile-freespin-activation-list-item"},idTitle:b="Id",brandTitle:k="Sağlayıcı Adı",datesTitle:y="Başlangıç / Bitiş",statusTitle:v="Durum",spinsTitle:T="Spin Sayısı",daysTitle:x="Geçerlilik",daysSuffix:N=" Gün",createdLabel:z="Oluşturulma Tarihi: ",viewGamesLabel:g="Oyunları Görüntüle"})=>{const I=[{key:"id",dataIndex:"key",title:b,width:44,render:(i,t)=>e(p,{value:t.key,compact:!0})},{key:"brand",dataIndex:"brand",title:k,maxWidth:460,render:(t,a)=>e("span",{className:"hub__pay-name hub__hist-nm",children:i("span",{className:"hub__bonus-name",children:[e("span",{className:"hub__bonus-title",children:a.brand}),i(c,{children:[e(m,{asChild:!0,children:e("i",{className:"hub__hist-creator","aria-label":z,children:e(l,{size:13})})}),e(h,{placement:"top",children:z+a.created})]})]})})},{key:"dates",dataIndex:"start",title:y,maxWidth:170,render:(i,t)=>e(f,{start:t.start,end:t.end})},{key:"status",dataIndex:"status",title:v,width:120,render:i=>e(u,{s:String(i)})},{key:"spins",dataIndex:"spins",title:T,width:90,render:i=>e("span",{className:"hub__fsact-num",children:String(i)})},{key:"days",dataIndex:"days",title:x,width:95,render:i=>e("span",{className:"hub__fsact-num",children:String(i)+N})},{key:"actions",dataIndex:"key",title:"",maxWidth:200,render:(i,t)=>e("span",{className:"hub__pay-actions",children:e(s,{variant:"default",size:"medium",onClick:()=>r(t),children:g})})}];return i(t,{children:[e(_,{children:n}),e(o,{columns:I,data:a,cellHeight:"84px",marker:d})]})},v=({name:t})=>i(c,{children:[e(m,{asChild:!0,children:e("span",{className:"hub__pay-name hub__hist-nm",children:e("span",{className:"hub__hist-name",children:t})})}),e(h,{placement:"top",children:t})]}),T={"Teslim Edildi":"success","Onay Bekliyor":"default",Reddedildi:"purple","Ulaşılamadı":"danger"},x=({s:i,tone:t=T})=>e(r,{variant:"default",color:t[i]??"default",size:"small",pill:!1,children:i}),N=({tickets:t})=>e("div",{className:"hub__tickets",children:t.map(t=>i("div",{className:"hub__ticket",children:[e("span",{children:t}),e(p,{value:t,compact:!0})]},t))}),z=({prizes:t,mainLabel:l="Asıl",reserveLabel:s="Yedek",emptyText:r="Bu listede bilet bulunmuyor.",reserveOrderLabel:d="Yedek Sırası:",ticketLabel:c="Bilet:",tone:m=T})=>{const[h,o]=a("main"),u=t.filter(e=>"reserve"===h?!!e.reserve:!e.reserve);return i("div",{className:"hub__prizes",children:[i("div",{className:"hub__prize-tabs",children:[e("button",{type:"button",className:"main"===h?"is-active":"",onClick:()=>o("main"),children:l}),e("button",{type:"button",className:"reserve"===h?"is-active":"",onClick:()=>o("reserve"),children:s})]}),0===u.length?e("div",{className:"hub__prize-empty",children:r}):e("div",{className:"hub__prize-list",children:u.map((t,a)=>i("div",{className:"hub__prize",children:[e("span",{className:"hub__prize-img",children:e(n,{size:22})}),i("div",{className:"hub__prize-body",children:[e("h4",{className:"hub__prize-title",children:t.name}),e("span",{children:e(x,{s:t.status,tone:m})}),t.reserve&&i("span",{className:"hub__prize-reserve",children:[e("b",{children:d})," ",(t.reserveOrder??0)+1]}),i("span",{className:"hub__prize-ticket",children:[e("b",{children:c}),e("span",{className:"hub__prize-code",children:t.ticket}),e(p,{value:t.ticket,compact:!0})]})]})]},t.ticket+"-"+a))})]})},g=(i,t,a,n,l,s)=>[{key:"id",dataIndex:"key",title:i,width:44,render:(i,t)=>e(p,{value:t.key,compact:!0})},{key:"name",dataIndex:"name",title:t,maxWidth:460,render:(i,t)=>e(v,{name:t.name})},{key:"start",dataIndex:"start",title:a,width:130,render:i=>e(b,{v:String(i)})},{key:"end",dataIndex:"end",title:n,width:130,render:i=>e(b,{v:String(i)})},{key:"status",dataIndex:"status",title:l,width:150,render:i=>e(u,{s:String(i)})},{key:"tickets",dataIndex:"tickets",title:s,width:110,render:(i,t)=>e("span",{className:"hub__fsact-num",children:t.tickets.length})}],I={idTitle:"Id",nameTitle:"İsim",startTitle:"Başlangıç",endTitle:"Bitiş",statusTitle:"Durum",ticketsTitle:"Bilet Sayısı"},j=({data:a,intro:n,onTickets:l,onDeposit:r,marker:d={desktop:"inn-active-raffles-table",list:"inn-mobile-active-raffles-list",methods:"inn-mobile-active-raffles-list-items",item:"inn-mobile-active-raffles-list-item"},ticketsLabel:c="Biletlerim",depositLabel:m="Yatırım Yapın Kazanın",...h})=>{const p={...I,...h},u=[...g(p.idTitle,p.nameTitle,p.startTitle,p.endTitle,p.statusTitle,p.ticketsTitle),{key:"actions",dataIndex:"key",title:"",maxWidth:220,render:(i,t)=>e("span",{className:"hub__pay-actions hub__pay-actions--full",children:t.tickets.length>0?e(s,{variant:"default",size:"medium",onClick:()=>l(t),children:c}):e(s,{variant:"default",size:"medium",onClick:r,children:m})})}];return i(t,{children:[e(_,{children:n}),e(o,{columns:u,data:a,cellHeight:"84px",marker:d})]})},S=({data:a,intro:n,onPrizes:l,onTickets:r,marker:d={desktop:"inn-joined-raffles-table",list:"inn-mobile-joined-raffles-list",methods:"inn-mobile-joined-raffles-list-items",item:"inn-mobile-joined-raffles-list-item"},prizesLabel:c="Ödüllerim",ticketsLabel:m="Biletlerim",...h})=>{const p={...I,...h},u=[...g(p.idTitle,p.nameTitle,p.startTitle,p.endTitle,p.statusTitle,p.ticketsTitle),{key:"actions",dataIndex:"key",title:"",maxWidth:320,render:(t,a)=>i("span",{className:"hub__pay-actions",children:[e(s,{variant:"default",size:"medium",disabled:!a.prizes||0===a.prizes.length,onClick:()=>l(a),children:c}),e(s,{variant:"default",size:"medium",disabled:0===a.tickets.length,onClick:()=>r(a),children:m})]})}];return i(t,{children:[e(_,{children:n}),e(o,{columns:u,data:a,cellHeight:"84px",marker:d})]})};export{T as HUB_PRIZE_TONE,y as HubFreespinActivation,z as HubPrizesModal,j as HubRaffleActive,S as HubRaffleJoined,N as HubTicketsModal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{Fragment as l}from"react";import r from"../../input/index.js";import d from"../../select/index.js";import n from"../../button/index.js";import s from"../../alert/index.js";import c from"../../checkbox/index.js";import{Avatar as h}from"../../avatar/index.js";import{AlertDescription as t}from"../../alert/Description.js";import{SelectItem as o}from"../../select/SelectItem.js";const u=({f:e})=>{const a="select"===e.kind?i(d,{size:"x-large",placeholder:e.placeholder,defaultValue:e.value,"aria-label":e.ariaLabel,children:e.options.map(e=>i(o,{value:e.value,children:e.label},e.value))}):e.locked?i(r,{size:"x-large",locked:!0,value:e.value,"aria-label":e.ariaLabel}):i(r,{size:"x-large",type:e.type,defaultValue:e.value,placeholder:e.placeholder,"aria-label":e.ariaLabel});return e.full?i("div",{style:{gridColumn:"1 / -1"},children:a}):a},m=({user:r,groups:d,saveLabel:s="Değişiklikleri Kaydet",onSave:c})=>e(a,{children:[e("div",{className:"inn-settings-personal-summary-box hub__profile hub__profile--user",children:[r.avatar??i(h,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e("div",{children:[i("div",{className:"hub__username",children:r.username}),null!=r.fullname&&i("div",{className:"hub__fullname",children:r.fullname})]})]}),d.map((a,r)=>e(l,{children:[i("div",{className:"inn-sub-page-header hub__section",children:a.header}),i("div",{className:"hub__grid",children:a.fields.map((e,a)=>i(u,{f:e},a))})]},r)),i(n,{variant:"default",size:"large",className:"hub__save",onClick:c,children:s})]}),b=({currentHeader:l="Mevcut Şifreniz",newHeader:d="Yeni Şifreniz",currentPlaceholder:c="Mevcut Şifre",newPlaceholder:h="Yeni Şifre",confirmPlaceholder:o="Yeni Şifre (tekrar)",hint:u,submitLabel:m="Şifre Değiştir",disabled:b=!0,onSubmit:p})=>e(a,{children:[i("div",{className:"inn-sub-page-header hub__section",children:l}),i("div",{className:"hub__grid hub__grid--full",children:i(r,{size:"x-large",type:"password",placeholder:c,"aria-label":c})}),i("div",{className:"inn-sub-page-header hub__section",children:d}),e("div",{className:"hub__grid",children:[i(r,{size:"x-large",type:"password",placeholder:h,"aria-label":h}),i(r,{size:"x-large",type:"password",placeholder:o,"aria-label":o})]}),u&&i(s,{type:"info",variant:"filled",children:i(t,{children:u})}),i("hr",{className:"hub__divider"}),i("div",{className:"hub__actions",children:i(n,{variant:"default",size:"large",disabled:b,onClick:p,children:m})})]}),p=({intro:l,header:r="Bildirim Ayarları",prefs:d,onToggle:h,saveLabel:o="Ayarları Kaydet",onSave:u})=>e(a,{children:[l&&i(s,{type:"info",variant:"filled",children:i(t,{children:l})}),i("div",{className:"inn-sub-page-header hub__section",children:r}),i("div",{className:"hub__notify",children:d.map(e=>i("div",{className:"hub__notify-row",children:i(c,{checked:e.checked,onChange:a=>h?.(e.id,Boolean(a)),children:e.label})},e.id))}),i("hr",{className:"hub__divider"}),i("div",{className:"hub__actions",children:i(n,{variant:"default",size:"large",onClick:u,children:o})})]});export{b as HubChangePassword,p as HubNotificationPrefs,m as HubSettingsDetails};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{useRef as i}from"react";import{Copy as l,User as r}from"lucide-react";import n from"../../button/index.js";import s from"../../badge/index.js";import d from"../../table/index.js";import t from"../../result/index.js";import{Tooltip as c}from"../../tooltip/Tooltip.js";import{TooltipTrigger as m}from"../../tooltip/TooltipTrigger.js";import{TooltipContent as o}from"../../tooltip/TooltipContent.js";import{useHubMobile as h}from"./platform.js";const u=["name","brand","provider","subject","game"],p=({columns:i,data:l,list:r,methods:n,item:s})=>{const d=i.find(a=>"id"===a.key||"token"===a.key),t=i.find(a=>u.includes(String(a.key)))||i.find(a=>a.maxWidth)||i[1],c=i.find(a=>"status"===a.key),m=i.find(a=>""===a.title),o=i.filter(a=>a!==d&&a!==t&&a!==c&&a!==m),h=(a,e,i)=>a.render?a.render(e[a.dataIndex],e,i):e[a.dataIndex];return a("div",{className:r?r+" hub__mlist":"hub__mlist",children:a("div",{className:n,style:{display:"contents"},children:l.map((i,l)=>e("div",{className:s?s+" hub__mcard":"hub__mcard",children:[e("div",{className:"hub__mcard-head",children:[e("span",{className:"hub__mcard-title",children:[d&&a("span",{className:"hub__mcard-id",children:h(d,i,l)}),t&&a("span",{className:"hub__mcard-name",children:h(t,i,l)})]}),c&&a("span",{className:"hub__mcard-status",children:h(c,i,l)})]}),o.length>0&&a("hr",{className:"hub__mcard-sep"}),o.length>0&&(()=>{const r=i.img,n=i.square,s=a("div",{className:"hub__mcard-body",children:o.map(r=>e("div",{className:"hub__mcard-row",children:[a("span",{className:"hub__mcard-label",children:"string"==typeof r.title?r.title:""}),a("span",{className:"hub__mcard-val",children:h(r,i,l)})]},String(r.key)))});return r?e("div",{className:"hub__mcard-media",children:[a("span",{className:"hub__mcard-img"+(n?" hub__mcard-img--square":""),style:{backgroundImage:r},"aria-hidden":!0}),s]}):s})(),m&&a("div",{className:"hub__mcard-foot",children:h(m,i,l)})]},l))})})},_=({columns:e,data:l,cellHeight:r,mobileColumns:n,marker:s})=>{const t=i(null);return h(t)?a(p,{columns:n??e,data:l,list:s?.list,methods:s?.methods,item:s?.item}):a("div",{ref:t,className:(s?.desktop?s.desktop+" ":"")+"hub__paybox hub__pay-table",children:a(d,{columns:e,data:l,cellHeight:r,headerBg:!1})})},b={"Açık":"purple",Beklemede:"warning","Onaylandı":"success",Reddedildi:"danger","İptal Edildi":"info","Zaman Aşımı":"warning","İşlemde":"orange","Tamamlandı":"success","Kullanıcı Vazgeçti":"danger","Başvuruldu":"purple","Kabul Edildi":"teal","Kazandı":"success",Kaybetti:"danger","Talep Edilebilir":"success","Tekrar Talep Edilebilir":"warning","Talep Edilemez":"default","Uygulandı":"purple",Aktif:"info","Kazananlar Bildirildi":"warning","Yanıtlandı":"info","Kapandı":"default"},f=({s:e,tone:i=b})=>a(s,{variant:"default",color:i[e]??"default",size:"medium",pill:!1,children:e}),g=({value:i,compact:r,label:s="Kopyala"})=>e(c,{children:[a(m,{asChild:!0,children:a(n,{variant:"custom",size:"icon-sm",className:"hub__copybtn rounded-full"+(r?" hub__copybtn--sm":""),"aria-label":s,onClick:()=>navigator.clipboard?.writeText(i),children:a(l,{size:r?10:12})})}),a(o,{placement:"top",children:s})]}),N=({name:i,desc:l,creator:n,creatorLabel:s="Oluşturan: "})=>e("span",{className:"hub__pay-name hub__hist-nm",children:[a("span",{className:"hub__hist-name",children:i}),l&&e("span",{className:"hub__pay-desc hub__hist-desc",children:[l,n&&e(c,{children:[a(m,{asChild:!0,children:a("i",{className:"hub__hist-creator","aria-label":s+n,children:a(r,{size:12})})}),a(o,{placement:"top",children:s+n})]})]})]}),y=({v:i})=>{const[l,r]=i.split(" ");return e("span",{className:"hub__hist-dt",children:[a("span",{children:l}),a("span",{children:r})]})},k=({title:e="ÇOK YAKINDA",description:i="Bu bölüm henüz yapım aşamasındadır ve çok yakında yayında olacaktır.",icon:l="🚧"})=>a(t,{className:"hub__soon",image:a("span",{className:"hub__soon-icon","aria-hidden":!0,children:l}),title:e,description:i});export{u as HUB_NAME_KEYS,b as HUB_STATUS_TONE,k as HubComingSoon,g as HubCopyBtn,y as HubDt,N as HubHistName,f as HubStatusBadge,_ as HubTable,_ as default,h as useHubMobile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronRight as r}from"lucide-react";import s from"../../image/index.js";import n from"../../progress/index.js";const c=(e,a)=>"bronze"===a?e+"images/bronze-medal.png":e+"icons/vip/medal-"+a+".webp",d=()=>i("svg",{viewBox:"0 0 25 25",className:"hub__vip-star","aria-hidden":!0,children:i("path",{d:"M24.7343572,10.4120865 L19.2561162,15.7523575 L20.5498218,23.2948747 C20.6061081,23.6246839 20.4706692,23.9580111 20.1997913,24.1550172 C20.0467629,24.2667126 19.8647119,24.323 19.6826609,24.323 C19.5428246,24.323 19.4021088,24.2895793 19.2737056,24.2218585 L12.5,20.6607983 L5.72717384,24.220979 C5.43167071,24.3775285 5.07196601,24.3520232 4.80108814,24.1541377 C4.53021027,23.9571316 4.39477134,23.6238044 4.45105765,23.2939952 L5.74476331,15.751478 L0.265642806,10.4120865 C0.0264259883,10.1781418 -0.0606418977,9.82810432 0.0431359866,9.51060797 C0.146913871,9.19311162 0.422189106,8.96004643 0.753750652,8.91167441 L8.32513884,7.81231032 L11.7111122,0.950519405 C12.0074948,0.349826865 12.9925052,0.349826865 13.2888878,0.950519405 L16.6748612,7.81231032 L24.2462493,8.91167441 C24.5778109,8.96004643 24.8530861,9.19223213 24.956864,9.51060797 C25.0606419,9.82898381 24.973574,10.1772624 24.7343572,10.4120865 Z",fill:"currentColor"})}),h=({art:a,groups:n,cdn:c,levelLabel:d="Seviye",requiredDpLabel:h="Gerekli DP"})=>{const p="platinum"===a?"platinum1":"diamond"===a?"diamond1":a,[t,b]=l(p);return i("div",{className:"hub__vip-levels","data-vip":a,children:n.map(a=>e("div",{className:"hub__vip-group","data-art":a.art,...t===a.key?{"data-open":""}:{},children:[e("button",{type:"button",className:"hub__vip-group-head",onClick:()=>b(t===a.key?"":a.key),children:[e("span",{className:"hub__vip-group-name",children:[i(s,{src:c+"icons/vip/ribbon-"+a.art+".png",alt:""}),e("span",{className:"hub__vip-group-label",children:[a.label," ",a.range]})]}),i(r,{className:"hub__vip-group-chev","aria-hidden":!0})]}),i("div",{className:"hub__vip-group-body",children:e("div",{children:[e("div",{className:"hub__vip-row hub__vip-row--head",children:[i("div",{children:d}),i("div",{children:h})]}),a.levels.map((l,r)=>e("div",{className:"hub__vip-row",children:[e("div",{children:[i(s,{src:c+"icons/vip/medal-"+a.art+".webp",alt:""}),l.name]}),i("div",{children:l.xp})]},r))]})})]},a.key))})},p=({hero:l,tiers:r,bonuses:h,activeTier:p,onTierChange:t,onLearn:b,cdn:v,learnLabel:o="VIP seviye yükseltme sistemi hakkında bilgi alın",bonusTypeLabel:_="Bonus Tipi",emptyMark:u="--"})=>{const m=r[p]?.art??"bronze";return e(a,{children:[e("section",{className:"hub__vip-hero",children:[i("div",{className:"hub__vip-hero-bg","aria-hidden":!0}),i("div",{className:"hub__vip-hero-title",children:l.title}),i("span",{className:"hub__vip-hero-dp",children:l.dp}),e("div",{className:"hub__vip-hero-progress",children:[i(n,{percent:l.percent,showInfo:!1,status:"success"}),i("span",{className:"hub__vip-hero-next",children:l.next})]}),i("span",{className:"hub__vip-hero-medal","aria-hidden":!0,children:i(s,{src:c(v,m),alt:""})})]}),i("button",{type:"button",className:"hub__vip-learn",onClick:b,children:o}),e("div",{className:"inn-vip-table hub__viptable",children:[i("div",{className:"hub__viptable-col hub__viptable-types",children:e("div",{children:[i("div",{className:"hub__viptable-cell hub__viptable-cell--head",children:i("span",{className:"hub__viptable-headlabel",children:_})}),h.map((a,l)=>e("div",{className:"hub__viptable-cell hub__viptable-type",children:[i("span",{className:"hub__viptable-ico",children:i(s,{src:v+"icons/vip/"+a.icon,alt:""})}),i("span",{className:"hub__viptable-typelabel",children:a.label})]},l))]})}),r.map((a,l)=>i("div",{className:"hub__viptable-col"+(l===p?" hub__viptable-col--current":""),"data-art":a.art,children:e("div",{children:[i("div",{className:"hub__viptable-cell hub__viptable-cell--head",children:i("button",{type:"button",className:"hub__viptable-tier",onClick:()=>t(l),children:a.label})}),h.map((e,a)=>i("div",{className:"hub__viptable-cell hub__viptable-mark",children:l>=e.from?i(d,{}):u},a))]})},a.key))]})]})};export{p as HubVipClub,h as HubVipLevels,c as hubVipMedalSrc};
|