@inntechcorp/it-design 4.0.0-beta.1 → 4.0.0-beta.11
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/CHANGELOG.md +304 -0
- package/LICENSE +201 -0
- package/MIGRATION.md +181 -0
- package/README.md +237 -72
- 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-effect-event/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 -0
- package/dist/cjs/accordion/item/Item.js +1 -0
- package/dist/cjs/accordion/submenu/SubMenu.js +1 -0
- package/dist/cjs/alert/Description.js +1 -0
- package/dist/cjs/alert/Title.js +1 -0
- package/dist/cjs/alert/index.js +1 -0
- package/dist/cjs/alink/index.js +1 -0
- 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 -0
- package/dist/cjs/badge/index.js +1 -0
- package/dist/cjs/blocks/auth-complete/index.js +1 -0
- package/dist/cjs/blocks/auth-page/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/login/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/signup/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 -0
- 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 -0
- package/dist/cjs/calendar/day/Day.js +1 -0
- package/dist/cjs/calendar/header/Header.js +1 -0
- package/dist/cjs/calendar/index.js +1 -0
- 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 -0
- package/dist/cjs/card/CardAction.js +1 -0
- package/dist/cjs/card/CardContent.js +1 -0
- package/dist/cjs/card/CardDescription.js +1 -0
- package/dist/cjs/card/CardFooter.js +1 -0
- package/dist/cjs/card/CardHeader.js +1 -0
- package/dist/cjs/card/CardTabs.js +1 -0
- package/dist/cjs/card/CardTitle.js +1 -0
- 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 -0
- 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 -0
- package/dist/cjs/context/ITDThemeProvider.js +1 -0
- 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 -0
- 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 -0
- package/dist/cjs/field/index.js +1 -0
- package/dist/cjs/flex/index.js +1 -0
- package/dist/cjs/floating/Arrow.js +1 -0
- package/dist/cjs/floating/FloatingContent.js +1 -0
- package/dist/cjs/floating/createFloatingTrigger.js +1 -0
- package/dist/cjs/form/context/FormContext.js +1 -0
- package/dist/cjs/form/context/FormRegistry.js +1 -0
- package/dist/cjs/form/context/FormStore.js +1 -0
- package/dist/cjs/form/control/Control.js +1 -0
- package/dist/cjs/form/group/Group.js +1 -0
- package/dist/cjs/form/index.js +1 -0
- package/dist/cjs/form/item/Item.js +1 -0
- package/dist/cjs/form/validation/TCIdentity.js +1 -0
- package/dist/cjs/form/validation/Validator.js +1 -0
- package/dist/cjs/form/wrapper/FormWrapper.js +1 -0
- package/dist/cjs/helpers/array/ChunkArray.js +1 -0
- package/dist/cjs/helpers/aspectratio/DetermineNewHeight.js +1 -0
- package/dist/cjs/helpers/aspectratio/DetermineNewWidth.js +1 -0
- package/dist/cjs/helpers/base64/Base64Decode.js +1 -0
- package/dist/cjs/helpers/base64/Base64Encode.js +1 -0
- package/dist/cjs/helpers/binary/FormatBytes.js +1 -0
- package/dist/cjs/helpers/binary/GetExtensionByMimeType.js +1 -0
- package/dist/cjs/helpers/binary/GetTypeByFileType.js +1 -0
- package/dist/cjs/helpers/checker/CheckFileURL.js +1 -0
- package/dist/cjs/helpers/checker/FileChecker.js +1 -0
- package/dist/cjs/helpers/classname/GetClassNameByPlatform.js +1 -0
- package/dist/cjs/helpers/config/defineITDConfig.js +1 -0
- package/dist/cjs/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
- package/dist/cjs/helpers/country/GetCountryCodeByLanguage.js +1 -0
- package/dist/cjs/helpers/css/FindSelector.js +1 -0
- package/dist/cjs/helpers/currency/ConvertCurrency.js +1 -0
- package/dist/cjs/helpers/currency/GetByCurrency.js +1 -0
- package/dist/cjs/helpers/currency/GetCurrencyFormat.js +1 -0
- package/dist/cjs/helpers/currency/GetCurrencySymbol.js +1 -0
- package/dist/cjs/helpers/currency/GetDecimalByCurrency.js +1 -0
- package/dist/cjs/helpers/datetime/FormatDate.js +1 -0
- package/dist/cjs/helpers/datetime/FormatDateTime.js +1 -0
- package/dist/cjs/helpers/datetime/FormatSimpleDate.js +1 -0
- package/dist/cjs/helpers/datetime/FormatSimpleDateTime.js +1 -0
- package/dist/cjs/helpers/datetime/FormatTime.js +1 -0
- package/dist/cjs/helpers/datetime/dayjsSetup.js +1 -0
- package/dist/cjs/helpers/device/touchDevice.js +1 -0
- package/dist/cjs/helpers/format/ToKebabCase.js +1 -0
- package/dist/cjs/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
- package/dist/cjs/helpers/json/IsValidJSON.js +1 -0
- package/dist/cjs/helpers/math/AddZero.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/promise/Wait.js +1 -0
- package/dist/cjs/helpers/remover/RemoveUnits.js +1 -0
- package/dist/cjs/helpers/string/UniUpperCase.js +1 -0
- package/dist/cjs/helpers/svg/SVGLoader.js +1 -0
- package/dist/cjs/helpers/theme/AddDefaultThemeStyle.js +1 -0
- package/dist/cjs/helpers/theme/Color.js +1 -0
- package/dist/cjs/helpers/theme/GenerateColorScale.js +1 -0
- 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 -0
- package/dist/cjs/helpers/theme/cssVariables.js +1 -0
- package/dist/cjs/helpers/theme/dark.js +1 -0
- package/dist/cjs/helpers/theme/exampleSitePreset.js +1 -0
- package/dist/cjs/helpers/theme/importShadcnTheme.js +1 -0
- package/dist/cjs/helpers/theme/light.js +1 -0
- package/dist/cjs/helpers/theme/presets.js +1 -0
- package/dist/cjs/helpers/theme/shadowScale.js +1 -0
- package/dist/cjs/helpers/theme/sitePreset.js +1 -0
- package/dist/cjs/helpers/theme/tokenSet.js +1 -0
- package/dist/cjs/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/cjs/helpers/unit/cssVars.js +1 -0
- package/dist/cjs/hooks/useAddExternalCSS.js +1 -0
- package/dist/cjs/hooks/useAvoidCollision.js +1 -0
- package/dist/cjs/hooks/useComponentSize.js +1 -0
- package/dist/cjs/hooks/useConnectionStatus.js +1 -0
- package/dist/cjs/hooks/useConstructor.js +1 -0
- package/dist/cjs/hooks/useContextBridge.js +1 -0
- package/dist/cjs/hooks/useCoreFetch.js +1 -0
- package/dist/cjs/hooks/useFloatingPosition.js +1 -0
- package/dist/cjs/hooks/useFloatingTrigger.js +1 -0
- package/dist/cjs/hooks/useFocusTrap.js +1 -0
- package/dist/cjs/hooks/useKeyboardShortcut.js +1 -0
- package/dist/cjs/hooks/useLoadMoreSentinel.js +1 -0
- package/dist/cjs/hooks/useMediaQuery.js +1 -0
- package/dist/cjs/hooks/useMultiQuery.js +1 -0
- package/dist/cjs/hooks/useNaturalRatio.js +1 -0
- package/dist/cjs/hooks/useOnClickOutside.js +1 -0
- package/dist/cjs/hooks/useOnESCKeyDown.js +1 -0
- package/dist/cjs/hooks/useOnResize.js +1 -0
- package/dist/cjs/hooks/useOrientation.js +1 -0
- package/dist/cjs/hooks/useReCaptcha.js +1 -0
- package/dist/cjs/hooks/useRealm.js +1 -0
- package/dist/cjs/hooks/useSingleQuery.js +1 -0
- package/dist/cjs/hovercard/HoverCard.js +1 -0
- package/dist/cjs/hovercard/HoverCardContent.js +1 -0
- package/dist/cjs/hovercard/HoverCardTrigger.js +1 -0
- package/dist/cjs/hovercard/hoverCardContext.js +1 -0
- package/dist/cjs/html/header/H1.js +1 -0
- package/dist/cjs/html/header/H2.js +1 -0
- package/dist/cjs/html/header/H3.js +1 -0
- package/dist/cjs/html/header/H4.js +1 -0
- package/dist/cjs/icons/Arrow.js +1 -0
- package/dist/cjs/icons/BackToTop.js +1 -0
- package/dist/cjs/icons/Checkmark.js +1 -0
- 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/icons/InlineSelectArrow.js +1 -0
- package/dist/cjs/icons/Lock.js +1 -0
- package/dist/cjs/icons/NoData.js +1 -0
- package/dist/cjs/icons/Picture.js +1 -0
- package/dist/cjs/icons/Trash.js +1 -0
- package/dist/cjs/icons/Upload.js +1 -0
- package/dist/cjs/icons/ZoomIn.js +1 -0
- package/dist/cjs/icons/ZoomOut.js +1 -0
- package/dist/cjs/image/index.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/input/index.js +1 -0
- package/dist/cjs/label/index.js +1 -0
- package/dist/cjs/locale/useITDLocale.js +1 -0
- package/dist/cjs/locales/en/calendar.json.js +1 -0
- package/dist/cjs/locales/en/itd.json.js +1 -0
- package/dist/cjs/locales/tr/calendar.json.js +1 -0
- package/dist/cjs/locales/tr/itd.json.js +1 -0
- package/dist/cjs/logger/index.js +1 -0
- package/dist/cjs/modal/container/ModalContainer.js +1 -0
- package/dist/cjs/modal/context/ModalContext.js +1 -0
- package/dist/cjs/modal/index.js +1 -0
- package/dist/cjs/modal/modal/Modal.js +1 -0
- 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 -0
- package/dist/cjs/popover/PopoverContent.js +1 -0
- package/dist/cjs/popover/PopoverTrigger.js +1 -0
- package/dist/cjs/primitives/Slot.js +1 -0
- package/dist/cjs/primitives/overlayStack.js +1 -0
- package/dist/cjs/primitives/scrollLock.js +1 -0
- package/dist/cjs/progress/index.js +1 -0
- 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 -0
- package/dist/cjs/router/BlockLink.js +1 -0
- 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 -0
- package/dist/cjs/select/index.js +1 -0
- package/dist/cjs/select/option/Option.js +1 -0
- package/dist/cjs/select/selector/Selector.js +1 -0
- package/dist/cjs/select/selector/selectorinput/SelectorInput.js +1 -0
- package/dist/cjs/separator/index.js +1 -0
- package/dist/cjs/skeleton/index.js +1 -0
- package/dist/cjs/spin/index.js +1 -0
- package/dist/cjs/stat-card/index.js +1 -0
- package/dist/cjs/switch/index.js +1 -0
- package/dist/cjs/table/index.js +1 -0
- 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 -0
- package/dist/cjs/tinyscrollbar/index.js +1 -0
- package/dist/cjs/toast/index.js +1 -0
- package/dist/cjs/toggle-group/index.js +1 -0
- package/dist/cjs/tooltip/Tooltip.js +1 -0
- package/dist/cjs/tooltip/TooltipContent.js +1 -0
- package/dist/cjs/tooltip/TooltipTrigger.js +1 -0
- package/dist/cjs/tooltip/tooltipContext.js +1 -0
- package/dist/cjs/types/InputProps.js +1 -0
- package/dist/cjs/upload/index.js +1 -0
- package/dist/cjs/utils/CommonStyledComponents.js +1 -0
- package/dist/cjs/utils/ErrorAnnouncement.js +1 -0
- package/dist/cjs/utils/GetButtonSizeSlug.js +1 -0
- package/dist/cjs/utils/GetSizeBySizeSlug.js +1 -0
- package/dist/cjs/utils/GetSizeSlugBySize.js +1 -0
- package/dist/cjs/utils/InlineSVGCached.js +1 -0
- package/dist/cjs/utils/cn.js +1 -0
- package/dist/cjs/utils/focusModality.js +1 -0
- package/dist/css/accordion.css +13 -0
- package/dist/css/alert.css +1 -0
- 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 +245 -0
- package/dist/css/base.css +111 -0
- package/dist/css/block-form.css +5 -0
- package/dist/css/blocks-shared.css +15 -0
- package/dist/css/button-group.css +1 -0
- package/dist/css/button.css +11 -0
- package/dist/css/calendar.css +1 -0
- package/dist/css/card.css +1 -0
- package/dist/css/casino-featured.css +1 -0
- package/dist/css/chart.css +1 -0
- package/dist/css/checkbox.css +3 -0
- 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 -0
- package/dist/css/components.css +1 -0
- package/dist/css/cropper.css +17 -0
- package/dist/css/datepicker.css +1 -0
- 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 -0
- 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 +3 -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 -0
- 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 -0
- 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 +3 -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 +7 -0
- package/dist/css/notifications-panel.css +5 -0
- package/dist/css/page.css +5 -0
- package/dist/css/popover.css +1 -0
- 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 +5 -0
- 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 +5 -0
- package/dist/css/result.css +1 -0
- package/dist/css/select.css +1 -0
- package/dist/css/separator.css +1 -0
- package/dist/css/sheet.css +1 -0
- package/dist/css/signup.css +1 -0
- package/dist/css/skeleton.css +3 -0
- package/dist/css/slider.css +1 -0
- package/dist/css/spin.css +1 -0
- 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 -0
- package/dist/css/table.css +7 -0
- package/dist/css/tabs.css +1 -0
- package/dist/css/textarea.css +1 -0
- package/dist/css/tinyscrollbar.css +1 -0
- package/dist/css/toggle-group.css +1 -0
- package/dist/css/tooltip.css +1 -0
- package/dist/css/tournaments.css +16 -0
- package/dist/css/upload.css +1 -0
- package/dist/css/user-hub.css +3 -0
- package/dist/css/utilities.css +1 -0
- package/dist/css/vendor.css +12 -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-effect-event/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 -0
- package/dist/es/accordion/item/Item.js +1 -0
- package/dist/es/accordion/submenu/SubMenu.js +1 -0
- package/dist/es/alert/Description.js +1 -0
- package/dist/es/alert/Title.js +1 -0
- package/dist/es/alert/index.js +1 -0
- package/dist/es/alink/index.js +1 -0
- 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 -0
- package/dist/es/badge/index.js +1 -0
- package/dist/es/blocks/auth-complete/index.js +1 -0
- package/dist/es/blocks/auth-page/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/login/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/signup/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 -0
- 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 -0
- package/dist/es/calendar/day/Day.js +1 -0
- package/dist/es/calendar/header/Header.js +1 -0
- package/dist/es/calendar/index.js +1 -0
- 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 -0
- package/dist/es/card/CardAction.js +1 -0
- package/dist/es/card/CardContent.js +1 -0
- package/dist/es/card/CardDescription.js +1 -0
- package/dist/es/card/CardFooter.js +1 -0
- package/dist/es/card/CardHeader.js +1 -0
- package/dist/es/card/CardTabs.js +1 -0
- package/dist/es/card/CardTitle.js +1 -0
- 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 -0
- 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 -0
- package/dist/es/context/ITDThemeProvider.js +1 -0
- 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 -0
- 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 -0
- package/dist/es/field/index.js +1 -0
- package/dist/es/flex/index.js +1 -0
- package/dist/es/floating/Arrow.js +1 -0
- package/dist/es/floating/FloatingContent.js +1 -0
- package/dist/es/floating/createFloatingTrigger.js +1 -0
- package/dist/es/form/context/FormContext.js +1 -0
- package/dist/es/form/context/FormRegistry.js +1 -0
- package/dist/es/form/context/FormStore.js +1 -0
- package/dist/es/form/control/Control.js +1 -0
- package/dist/es/form/group/Group.js +1 -0
- package/dist/es/form/index.js +1 -0
- package/dist/es/form/item/Item.js +1 -0
- package/dist/es/form/validation/TCIdentity.js +1 -0
- package/dist/es/form/validation/Validator.js +1 -0
- package/dist/es/form/wrapper/FormWrapper.js +1 -0
- package/dist/es/helpers/array/ChunkArray.js +1 -0
- package/dist/es/helpers/aspectratio/DetermineNewHeight.js +1 -0
- package/dist/es/helpers/aspectratio/DetermineNewWidth.js +1 -0
- package/dist/es/helpers/base64/Base64Decode.js +1 -0
- package/dist/es/helpers/base64/Base64Encode.js +1 -0
- package/dist/es/helpers/binary/FormatBytes.js +1 -0
- package/dist/es/helpers/binary/GetExtensionByMimeType.js +1 -0
- package/dist/es/helpers/binary/GetTypeByFileType.js +1 -0
- package/dist/es/helpers/checker/CheckFileURL.js +1 -0
- package/dist/es/helpers/checker/FileChecker.js +1 -0
- package/dist/es/helpers/classname/GetClassNameByPlatform.js +1 -0
- package/dist/es/helpers/config/defineITDConfig.js +1 -0
- package/dist/es/helpers/country/GetCountryCodeByCurrencyCode.js +1 -0
- package/dist/es/helpers/country/GetCountryCodeByLanguage.js +1 -0
- package/dist/es/helpers/css/FindSelector.js +1 -0
- package/dist/es/helpers/currency/ConvertCurrency.js +1 -0
- package/dist/es/helpers/currency/GetByCurrency.js +1 -0
- package/dist/es/helpers/currency/GetCurrencyFormat.js +1 -0
- package/dist/es/helpers/currency/GetCurrencySymbol.js +1 -0
- package/dist/es/helpers/currency/GetDecimalByCurrency.js +1 -0
- package/dist/es/helpers/datetime/FormatDate.js +1 -0
- package/dist/es/helpers/datetime/FormatDateTime.js +1 -0
- package/dist/es/helpers/datetime/FormatSimpleDate.js +1 -0
- package/dist/es/helpers/datetime/FormatSimpleDateTime.js +1 -0
- package/dist/es/helpers/datetime/FormatTime.js +1 -0
- package/dist/es/helpers/datetime/dayjsSetup.js +1 -0
- package/dist/es/helpers/device/touchDevice.js +1 -0
- package/dist/es/helpers/format/ToKebabCase.js +1 -0
- package/dist/es/helpers/image/SVGUrlToPNGDataUrl.js +1 -0
- package/dist/es/helpers/json/IsValidJSON.js +1 -0
- package/dist/es/helpers/math/AddZero.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/promise/Wait.js +1 -0
- package/dist/es/helpers/remover/RemoveUnits.js +1 -0
- package/dist/es/helpers/string/UniUpperCase.js +1 -0
- package/dist/es/helpers/svg/SVGLoader.js +1 -0
- package/dist/es/helpers/theme/AddDefaultThemeStyle.js +1 -0
- package/dist/es/helpers/theme/Color.js +1 -0
- package/dist/es/helpers/theme/GenerateColorScale.js +1 -0
- 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 -0
- package/dist/es/helpers/theme/cssVariables.js +1 -0
- package/dist/es/helpers/theme/dark.js +1 -0
- package/dist/es/helpers/theme/exampleSitePreset.js +1 -0
- package/dist/es/helpers/theme/importShadcnTheme.js +1 -0
- package/dist/es/helpers/theme/light.js +1 -0
- package/dist/es/helpers/theme/presets.js +1 -0
- package/dist/es/helpers/theme/shadowScale.js +1 -0
- package/dist/es/helpers/theme/sitePreset.js +1 -0
- package/dist/es/helpers/theme/tokenSet.js +1 -0
- package/dist/es/helpers/unit/AddDefaultUnit.js +1 -0
- package/dist/es/helpers/unit/cssVars.js +1 -0
- package/dist/es/hooks/useAddExternalCSS.js +1 -0
- package/dist/es/hooks/useAvoidCollision.js +1 -0
- package/dist/es/hooks/useComponentSize.js +1 -0
- package/dist/es/hooks/useConnectionStatus.js +1 -0
- package/dist/es/hooks/useConstructor.js +1 -0
- package/dist/es/hooks/useContextBridge.js +1 -0
- package/dist/es/hooks/useCoreFetch.js +1 -0
- package/dist/es/hooks/useFloatingPosition.js +1 -0
- package/dist/es/hooks/useFloatingTrigger.js +1 -0
- package/dist/es/hooks/useFocusTrap.js +1 -0
- package/dist/es/hooks/useKeyboardShortcut.js +1 -0
- package/dist/es/hooks/useLoadMoreSentinel.js +1 -0
- package/dist/es/hooks/useMediaQuery.js +1 -0
- package/dist/es/hooks/useMultiQuery.js +1 -0
- package/dist/es/hooks/useNaturalRatio.js +1 -0
- package/dist/es/hooks/useOnClickOutside.js +1 -0
- package/dist/es/hooks/useOnESCKeyDown.js +1 -0
- package/dist/es/hooks/useOnResize.js +1 -0
- package/dist/es/hooks/useOrientation.js +1 -0
- package/dist/es/hooks/useReCaptcha.js +1 -0
- package/dist/es/hooks/useRealm.js +1 -0
- package/dist/es/hooks/useSingleQuery.js +1 -0
- package/dist/es/hovercard/HoverCard.js +1 -0
- package/dist/es/hovercard/HoverCardContent.js +1 -0
- package/dist/es/hovercard/HoverCardTrigger.js +1 -0
- package/dist/es/hovercard/hoverCardContext.js +1 -0
- package/dist/es/html/header/H1.js +1 -0
- package/dist/es/html/header/H2.js +1 -0
- package/dist/es/html/header/H3.js +1 -0
- package/dist/es/html/header/H4.js +1 -0
- package/dist/es/icons/Arrow.js +1 -0
- package/dist/es/icons/BackToTop.js +1 -0
- package/dist/es/icons/Checkmark.js +1 -0
- 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/icons/InlineSelectArrow.js +1 -0
- package/dist/es/icons/Lock.js +1 -0
- package/dist/es/icons/NoData.js +1 -0
- package/dist/es/icons/Picture.js +1 -0
- package/dist/es/icons/Trash.js +1 -0
- package/dist/es/icons/Upload.js +1 -0
- package/dist/es/icons/ZoomIn.js +1 -0
- package/dist/es/icons/ZoomOut.js +1 -0
- package/dist/es/image/index.js +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/input/index.js +1 -0
- package/dist/es/label/index.js +1 -0
- package/dist/es/locale/useITDLocale.js +1 -0
- package/dist/es/locales/en/calendar.json.js +1 -0
- package/dist/es/locales/en/itd.json.js +1 -0
- package/dist/es/locales/tr/calendar.json.js +1 -0
- package/dist/es/locales/tr/itd.json.js +1 -0
- package/dist/es/logger/index.js +1 -0
- package/dist/es/modal/container/ModalContainer.js +1 -0
- package/dist/es/modal/context/ModalContext.js +1 -0
- package/dist/es/modal/index.js +1 -0
- package/dist/es/modal/modal/Modal.js +1 -0
- 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 -0
- package/dist/es/popover/PopoverContent.js +1 -0
- package/dist/es/popover/PopoverTrigger.js +1 -0
- package/dist/es/primitives/Slot.js +1 -0
- package/dist/es/primitives/overlayStack.js +1 -0
- package/dist/es/primitives/scrollLock.js +1 -0
- package/dist/es/progress/index.js +1 -0
- 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 -0
- package/dist/es/router/BlockLink.js +1 -0
- 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 -0
- package/dist/es/select/index.js +1 -0
- package/dist/es/select/option/Option.js +1 -0
- package/dist/es/select/selector/Selector.js +1 -0
- package/dist/es/select/selector/selectorinput/SelectorInput.js +1 -0
- package/dist/es/separator/index.js +1 -0
- package/dist/es/skeleton/index.js +1 -0
- package/dist/es/spin/index.js +1 -0
- package/dist/es/stat-card/index.js +1 -0
- package/dist/es/switch/index.js +1 -0
- package/dist/es/table/index.js +1 -0
- 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 -0
- package/dist/es/tinyscrollbar/index.js +1 -0
- package/dist/es/toast/index.js +1 -0
- package/dist/es/toggle-group/index.js +1 -0
- package/dist/es/tooltip/Tooltip.js +1 -0
- package/dist/es/tooltip/TooltipContent.js +1 -0
- package/dist/es/tooltip/TooltipTrigger.js +1 -0
- package/dist/es/tooltip/tooltipContext.js +1 -0
- package/dist/es/types/InputProps.js +1 -0
- package/dist/es/upload/index.js +1 -0
- package/dist/es/utils/CommonStyledComponents.js +1 -0
- package/dist/es/utils/ErrorAnnouncement.js +1 -0
- package/dist/es/utils/GetButtonSizeSlug.js +1 -0
- package/dist/es/utils/GetSizeBySizeSlug.js +1 -0
- package/dist/es/utils/GetSizeSlugBySize.js +1 -0
- package/dist/es/utils/InlineSVGCached.js +1 -0
- package/dist/es/utils/cn.js +1 -0
- package/dist/es/utils/focusModality.js +1 -0
- package/dist/global.css +514 -0
- package/dist/index.d.ts +11188 -144
- package/dist/locales/calendar.json +27 -0
- package/dist/locales/en/calendar.json +27 -0
- package/dist/locales/en/itd.json +382 -0
- package/dist/locales/itd.json +382 -0
- package/dist/locales/tr/calendar.json +27 -0
- package/dist/locales/tr/itd.json +382 -0
- package/dist/types/blocks/auth-complete/index.d.ts +2 -0
- package/dist/types/blocks/auth-page/index.d.ts +2 -0
- package/dist/types/blocks/banner/index.d.ts +2 -0
- package/dist/types/blocks/box-title/index.d.ts +2 -0
- package/dist/types/blocks/casino-featured/index.d.ts +2 -0
- package/dist/types/blocks/default-avatar/index.d.ts +1 -0
- package/dist/types/blocks/featured-games/index.d.ts +2 -0
- package/dist/types/blocks/filter-tabs/index.d.ts +2 -0
- package/dist/types/blocks/footer/index.d.ts +2 -0
- package/dist/types/blocks/game-box/index.d.ts +2 -0
- package/dist/types/blocks/game-carousel/index.d.ts +2 -0
- package/dist/types/blocks/game-categories/index.d.ts +2 -0
- package/dist/types/blocks/game-filter/index.d.ts +2 -0
- package/dist/types/blocks/game-navigator/index.d.ts +2 -0
- package/dist/types/blocks/game-providers/index.d.ts +2 -0
- package/dist/types/blocks/game-search/index.d.ts +2 -0
- package/dist/types/blocks/game-shell/index.d.ts +2 -0
- package/dist/types/blocks/games-grid/index.d.ts +2 -0
- package/dist/types/blocks/header/index.d.ts +2 -0
- package/dist/types/blocks/help/index.d.ts +2 -0
- package/dist/types/blocks/last-winners/index.d.ts +2 -0
- package/dist/types/blocks/layout-boxes/index.d.ts +2 -0
- package/dist/types/blocks/login/index.d.ts +2 -0
- package/dist/types/blocks/mega-menu/index.d.ts +2 -0
- package/dist/types/blocks/min-width-gate/index.d.ts +2 -0
- package/dist/types/blocks/mobile-bottom-nav/index.d.ts +2 -0
- package/dist/types/blocks/multiple-jackpots/index.d.ts +2 -0
- package/dist/types/blocks/notifications/index.d.ts +2 -0
- package/dist/types/blocks/post-viewer/index.d.ts +2 -0
- package/dist/types/blocks/promotions-grid/index.d.ts +2 -0
- package/dist/types/blocks/raffle/index.d.ts +2 -0
- package/dist/types/blocks/signup/index.d.ts +2 -0
- package/dist/types/blocks/slider/index.d.ts +2 -0
- package/dist/types/blocks/slider-double/index.d.ts +2 -0
- package/dist/types/blocks/spacer/index.d.ts +2 -0
- package/dist/types/blocks/sub-page-header/index.d.ts +2 -0
- package/dist/types/blocks/tournaments/index.d.ts +2 -0
- package/dist/types/blocks/user-hub/index.d.ts +2 -0
- package/package.json +99 -99
- 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/styled.d.ts +0 -1
- 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/alert.style.error.d.ts +0 -4
- package/dist/alert/alert.style.info.d.ts +0 -4
- package/dist/alert/alert.style.neutral.d.ts +0 -4
- package/dist/alert/alert.style.success.d.ts +0 -4
- package/dist/alert/alert.style.warning.d.ts +0 -4
- package/dist/alert/index.d.ts +0 -8
- package/dist/alert/styled.d.ts +0 -4
- 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/button.style.default.d.ts +0 -4
- package/dist/button/button.style.filled.d.ts +0 -4
- package/dist/button/button.style.ghost.d.ts +0 -4
- package/dist/button/button.style.icon.d.ts +0 -5
- package/dist/button/button.style.link.d.ts +0 -4
- package/dist/button/button.style.outline.d.ts +0 -4
- package/dist/button/button.style.size.d.ts +0 -7
- package/dist/button/button.style.solid.d.ts +0 -4
- package/dist/button/index.d.ts +0 -11
- package/dist/button/styled.d.ts +0 -3
- 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 -8
- 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/card/styles.d.ts +0 -15
- package/dist/checkbox/group/index.d.ts +0 -3
- package/dist/checkbox/group/styled.d.ts +0 -2
- package/dist/checkbox/index.d.ts +0 -10
- package/dist/checkbox/styled.d.ts +0 -10
- package/dist/context/ITDContext.d.ts +0 -23
- package/dist/context/ITDThemeProvider.d.ts +0 -8
- package/dist/context/styled.d.ts +0 -2
- package/dist/datepicker/index.d.ts +0 -3
- package/dist/datepicker/styled.d.ts +0 -9
- package/dist/enums/enum.d.ts +0 -209
- 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 -37
- package/dist/form/context/FormStore.d.ts +0 -14
- package/dist/form/control/Control.d.ts +0 -7
- package/dist/form/control/styled.d.ts +0 -4
- package/dist/form/group/Group.d.ts +0 -17
- package/dist/form/group/styled.d.ts +0 -5
- 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 -36
- package/dist/helpers/json/IsValidJSON.d.ts +0 -1
- package/dist/helpers/locale/getLocaleDateByString.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/UpdateThemeStyle.d.ts +0 -5
- package/dist/helpers/theme/cssVariables.d.ts +0 -30
- package/dist/helpers/theme/dark.d.ts +0 -3
- package/dist/helpers/theme/index.d.ts +0 -9
- package/dist/helpers/theme/light.d.ts +0 -3
- 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 -7
- package/dist/index.cjs.js +0 -5727
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.css +0 -1
- package/dist/index.es.js +0 -22339
- package/dist/index.es.js.map +0 -1
- package/dist/index.iife.js +0 -5728
- package/dist/index.iife.js.map +0 -1
- package/dist/index.umd.js +0 -5728
- package/dist/index.umd.js.map +0 -1
- package/dist/input/index.d.ts +0 -35
- package/dist/input/style.settings.d.ts +0 -9
- package/dist/input/styled.d.ts +0 -27
- 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/link/index.d.ts +0 -2
- package/dist/locales/en/calendar.json.d.ts +0 -32
- package/dist/locales/en/itd.json.d.ts +0 -339
- package/dist/locales/tr/calendar.json.d.ts +0 -32
- package/dist/locales/tr/itd.json.d.ts +0 -339
- package/dist/logger/index.d.ts +0 -9
- package/dist/modal/container/ModalContainer.d.ts +0 -24
- package/dist/modal/container/styled.d.ts +0 -5
- 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/container/Container.d.ts +0 -5
- package/dist/notification/container/styled.d.ts +0 -1
- package/dist/notification/context/NotificationsContext.d.ts +0 -7
- package/dist/notification/index.d.ts +0 -14
- package/dist/notification/item/Item.d.ts +0 -12
- package/dist/notification/item/styled.d.ts +0 -1166
- 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/reportWebVitals.d.ts +0 -2
- 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/dropdown/styled.d.ts +0 -14
- package/dist/select/index.d.ts +0 -9
- package/dist/select/option/Option.d.ts +0 -25
- package/dist/select/option/styled.d.ts +0 -5
- package/dist/select/selector/Selector.d.ts +0 -3
- package/dist/select/selector/selectorinput/SelectorInput.d.ts +0 -6
- package/dist/select/selector/selectorinput/styled.d.ts +0 -2
- package/dist/select/selector/styled.d.ts +0 -16
- package/dist/select/style.settings.d.ts +0 -88
- package/dist/select/styled.d.ts +0 -9
- package/dist/setupTests.d.ts +0 -1
- package/dist/spin/index.d.ts +0 -9
- package/dist/spin/styled.d.ts +0 -10
- package/dist/status/index.d.ts +0 -2
- package/dist/status/styled.d.ts +0 -6
- 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 -2
- package/dist/stories/AlertComposition.stories.d.ts +0 -17
- package/dist/stories/Button.d.ts +0 -2
- package/dist/stories/Button.stories.d.ts +0 -38
- package/dist/stories/Card.d.ts +0 -2
- package/dist/stories/Card.stories.d.ts +0 -19
- 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 -29
- 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 -3
- package/dist/switch/styled.d.ts +0 -5
- 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/tabs/styles.d.ts +0 -8
- package/dist/textarea/index.d.ts +0 -3
- package/dist/textarea/styled.d.ts +0 -6
- package/dist/tinyscrollbar/index.d.ts +0 -8
- 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 -15
- 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 -13
- package/dist/types/ButtonProps.d.ts +0 -26
- 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 -3
- package/dist/types/DatePickerProps.d.ts +0 -23
- package/dist/types/FlexProps.d.ts +0 -16
- package/dist/types/FormProps.d.ts +0 -53
- package/dist/types/ITDImperativeFuncProps.d.ts +0 -11
- package/dist/types/ITDProps.d.ts +0 -6
- package/dist/types/InputProps.d.ts +0 -42
- 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 -15
- package/dist/types/TextAreaProps.d.ts +0 -28
- package/dist/types/Theme.d.ts +0 -103
- package/dist/types/UploadProps.d.ts +0 -51
- package/dist/upload/index.d.ts +0 -13
- package/dist/upload/styled.d.ts +0 -12
- package/dist/utils/CommonStyledComponents.d.ts +0 -18
- 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/index.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),i=require("../../router/BlockLink.js"),r=require("../../helpers/classname/GetClassNameByPlatform.js"),l=require("../../skeleton/index.js");exports.default=({id:t,items:n,activeId:s,open:o=!0,loading:c=!1,skeletonCount:d=5,onSelect:m,ariaLabel:u="Menu",className:b})=>{const h=a.useMemo(()=>r.GetClassNameByPlatform("inn-menu"),[]);return e.jsx("nav",{id:t??h,className:"itd-mobile-bottom-nav"+(b?" "+b:""),"data-open":o?"true":"false","aria-label":u,children:c?e.jsx("div",{className:"itd-mobile-bottom-nav-skeletons","aria-hidden":!0,children:Array.from({length:d}).map((a,i)=>e.jsx(l.default,{height:52},i))}):e.jsx("div",{className:"inn-mobile-menu-items",children:n.map(a=>{const r=a.active??(null!=s&&a.id===s),l="inn-mobile-menu-item"+(r?" active":""),t=()=>{a.onSelect?.(),m?.(a)},n=e.jsxs("div",{children:[a.icon,e.jsx("span",{children:a.label})]});return null!=a.href?e.jsx(i.BlockLink,{href:a.href,target:a.target,className:l,"aria-current":r?"page":void 0,"aria-label":a.ariaLabel,onClick:t,children:n},a.id):e.jsx("button",{type:"button",className:l,"aria-current":r?"page":void 0,"aria-label":a.ariaLabel,onClick:t,children:n},a.id)})})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("react-horizontal-scrolling-menu"),i=require("lucide-react"),s=require("../../button/index.js"),n=require("usehooks-ts"),o=require("../../helpers/classname/GetClassNameByPlatform.js");const l=t.createContext(!0);class a{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 t=e.target?.ownerDocument;this.docs=t&&t!==document?[t,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,t)=>{const r=this.position-e.clientX,i=Math.abs(r)>5;this.clicked&&i&&(this.dragging=!0),this.dragging&&i&&(this.position=e.clientX,t(r))}}),this.clicked=!1,this.dragging=!1,this.position=0}}function c(e,t){0!==Math.abs(t.deltaX)||Math.abs(t.deltaY)<15?t.stopPropagation():t.deltaY>0?e.scrollNext():e.scrollPrev()}const u=({children:t,disabled:r,className:i,label:n,onClick:o})=>e.jsx(s.default,{variant:"custom",className:"arrow-"+i,"data-disabled":r,disabled:r,"aria-label":n,onClick:o,children:t}),d=()=>{const s=t.useContext(r.VisibilityContext),n=s.useIsVisible("first",!0),o=t.useContext(l),[a,c]=t.useState(n);return t.useEffect(()=>{o&&c(n)},[o,n]),e.jsx(u,{className:"left",label:"Önceki seviyeler",disabled:a,onClick:()=>s.scrollPrev(),children:e.jsx("div",{className:"icon-wrapper",children:e.jsx(i.ChevronLeft,{})})})},h=()=>{const s=t.useContext(r.VisibilityContext),n=s.useIsVisible("last",!1),o=t.useContext(l),[a,c]=t.useState(n);return t.useEffect(()=>{o&&c(n)},[o,n]),e.jsx(u,{className:"right",label:"Sonraki seviyeler",disabled:a,onClick:()=>s.scrollNext(),children:e.jsx("div",{className:"icon-wrapper",children:e.jsx(i.ChevronRight,{})})})};exports.OnScreenContext=l,exports.TierItem=({children:t})=>e.jsx(e.Fragment,{children:t}),exports.default=({children:i})=>{const{isIntersecting:s,ref:u}=n.useIntersectionObserver({threshold:.5}),[b,p]=t.useState(0),g=t.useRef(null);t.useEffect(()=>{const e=g.current;if(!e)return;let t=e.clientWidth,r=0;const i=new ResizeObserver(()=>{const i=e.clientWidth;i!==t&&(t=i,window.clearTimeout(r),r=window.setTimeout(()=>p(e=>e+1),150))});return i.observe(e),()=>{window.clearTimeout(r),i.disconnect()}},[]);const f=t.useRef(new a),m=t.useCallback(()=>f.current.dragStart,[f]),v=t.useCallback(()=>f.current.dragStop,[f]);return e.jsx("div",{ref:e=>{g.current=e,u(e)},className:"itd-jackpot-tiers-strip "+o.GetClassNameByPlatform("inn-multiple-jackpots-carousel-multiple-tiers"),children:e.jsx(l.Provider,{value:s,children:e.jsx(r.ScrollMenu,{LeftArrow:d,RightArrow:h,onMouseDown:m,onMouseUp:v,onMouseMove:({scrollContainer:e})=>t=>f.current.dragMove(t,t=>{e.current&&(e.current.scrollLeft+=t)}),onWheel:c,options:{ratio:.9,rootMargin:"5px",threshold:[.01,.05,.5,.75,.95,1]},children:i},b)})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),t=require("../../_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js"),s=require("../../_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js"),n=require("lucide-react"),i=require("../../button/index.js"),l=require("../../image/index.js"),o=require("../../skeleton/index.js"),r=require("../../modal/index.js"),c=require("../../modal/useModalContent.js"),m=require("../game-box/index.js"),u=require("../../helpers/classname/GetClassNameByPlatform.js"),d=require("../../helpers/platform/index.js"),p=require("../embla/useEmblaState.js"),j=require("./TierCarousel.js");const k=e=>new Intl.NumberFormat("tr-TR",{style:"currency",currency:"TRY",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),x=({amount:t,format:s,className:n})=>{const i=(e=>{const[t,s]=a.useState(0),n=a.useRef(0);return a.useEffect(()=>{const a=performance.now(),t=i=>{const l=Math.min((i-a)/750,1);s(e*l),l<1&&(n.current=requestAnimationFrame(t))};return n.current=requestAnimationFrame(t),()=>cancelAnimationFrame(n.current)},[e]),t})(t);return e.jsx("span",{className:n,children:s(i)})},h=({stats:a,format:t,labels:s})=>{const i=(a,s,i)=>e.jsxs("div",{className:"itd-jackpot-win-box",children:[e.jsxs("span",{className:"itd-jackpot-win-box-title",children:[a,s]}),e.jsx(x,{amount:i?.amount??0,format:t,className:"itd-jackpot-win-box-amount"}),e.jsxs("span",{className:"itd-jackpot-win-box-meta",children:[e.jsxs("span",{children:[e.jsx(n.Calendar,{"aria-hidden":!0}),i?.date??"--/--/---- 00:00"]}),e.jsxs("span",{children:[e.jsx(n.User,{"aria-hidden":!0}),i?.username??"--"]})]})]});return e.jsxs("div",{className:"itd-jackpot-winners-modal inn-jackpot-winners-modal",children:[i(e.jsx(n.Medal,{"aria-hidden":!0}),s?.maxWin??"Max Win",a?.maxWin),e.jsx("hr",{className:"itd-jackpot-winners-separator"}),i(e.jsx(n.Trophy,{"aria-hidden":!0}),s?.lastWin??"Last Win",a?.lastWin),e.jsxs("div",{className:"itd-jackpot-total-wins",children:[(s?.totalWins??"Total Wins")+":"," ",e.jsx("b",{children:a?.totalWins??0})]})]})},b=({games:a,onOpen:t})=>{const{hideCurrentModal:s}=c.useModalContent();return e.jsx("div",{className:"itd-jackpot-games-modal",children:a.map(a=>e.jsx(m.default,{slug:a.slug,image:a.image,name:a.name,background:!1,outline:!1,ratio:"440/310",onPlay:e=>{s?.(),t(e)}},a.id))})};exports.default=({id:c,jackpots:m,loading:N,wordmark:g,texture:f,showWinners:w=!0,showGames:v=!0,autoplay:y=4e3,formatAmount:C=k,onGameOpen:q,labels:W,className:M})=>{const O=u.GetClassNameByPlatform,{showModal:P}=r.useModal(),T=a.useMemo(()=>({axis:"y"}),[]),B=a.useMemo(()=>!1===y?[]:[s.default({delay:y})],[y]),[A,F]=t.default(T,B),{selected:G,canPrev:z,canNext:J}=p.default(F),L=m??[],H=L[G]??L[0],I=e=>{F&&(F.plugins().autoplay?.stop(),"prev"===e?F.scrollPrev():F.scrollNext())},S=()=>{const a=H?.games??[];P({title:W?.gamesTitle??"Jackpot Oyunları",className:"jackpot-games-modal",width:d.GetPlatform()===u.PlatformTypes.MOBILE?"100%":"61.875rem",showCloseButton:!0,showOkButton:!1,showCancelButton:!1,content:e.jsx(b,{games:a,onOpen:e=>q?.(e)})})},_=a=>w||v?e.jsxs("span",{className:"itd-jackpot-tier-buttons "+O("inn-multiple-jackpots-carousel-multiple-tier-buttons"),children:[w&&e.jsx(i.default,{size:"icon",variant:"solid",className:"itd-jackpot-round itd-jackpot-round--xs "+O("inn-multiple-jackpots-carousel-button")+" "+O("inn-multiple-jackpots-carousel-button--winners"),"aria-label":W?.winners??"Kazananlar",onClick:()=>(a=>{P({className:"itd-jackpot-winners-host jackpot-winners-modal",width:"25rem",contentPadding:"0",showCloseButton:!0,showOkButton:!1,showCancelButton:!1,content:e.jsx(h,{stats:a,format:C,labels:W})})})(a),children:e.jsx(n.Trophy,{})}),v&&e.jsx(i.default,{size:"icon",variant:"solid",className:"itd-jackpot-round itd-jackpot-round--xs itd-jackpot-tier-games "+O("inn-multiple-jackpots-carousel-button")+" "+O("inn-multiple-jackpots-carousel-button--games"),"aria-label":W?.games??"Jackpot Oyunları",onClick:S,children:e.jsx(n.Gamepad2,{})})]}):null,D=e=>e.name.toUpperCase()+(W?.tierSuffix??" JACKPOT"),E=f?{"--itd-jackpot-texture":`url("${f}")`}:void 0;return e.jsx("div",{id:c??O("inn-multiple-jackpots-component"),className:("itd-jackpots "+(M??"")).trim(),style:E,children:N?e.jsxs("div",{className:"itd-jackpot-loading",children:[e.jsx(o.default,{height:"5rem",width:"16.3125rem",count:1}),e.jsx(o.default,{height:"5rem",width:"16.3125rem",count:1})]}):0===L.length?e.jsx("div",{className:"itd-jackpot-empty "+O("inn-multiple-jackpots-not-found"),children:e.jsx("span",{children:W?.empty??"Jackpot bulunamadı!"})}):e.jsxs("section",{className:"itd-jackpot-carousel "+O("inn-multiple-jackpots-carousel"),children:[e.jsx("div",{className:"itd-jackpot-viewport "+O("inn-multiple-jackpots-carousel-viewport"),ref:A,children:e.jsx("div",{className:"itd-jackpot-container "+O("inn-multiple-jackpots-carousel-container"),children:L.map(a=>{const t=1===a.tiers.length;return e.jsxs("div",{className:"itd-jackpot-slide "+O("inn-multiple-jackpots-carousel-slide"),children:[e.jsxs("span",{className:"itd-jackpot-brand "+O("inn-multiple-jackpots-carousel-title-and-provider"),children:[null!=a.providerLogo&&e.jsx(l.default,{className:O("inn-multiple-jackpots-carousel-provider-icon"),src:a.providerLogo,alt:a.name,brokenWidth:66,brokenHeight:33}),null!=g&&e.jsx(l.default,{className:O("inn-multiple-jackpots-carousel-jackpot-text"),src:g,alt:"jackpot",brokenWidth:48,brokenHeight:12})]}),e.jsx("span",{className:"itd-jackpot-separator "+O("inn-multiple-jackpots-carousel-separator")}),e.jsx("span",{className:"itd-jackpot-art",children:null!=a.gameArt&&e.jsx(l.default,{className:O("inn-multiple-jackpots-carousel-jackpot-icon"),src:a.gameArt,alt:a.name,brokenWidth:55,brokenHeight:55})}),e.jsx("span",{className:"itd-jackpot-spacer "+O("inn-multiple-jackpots-carousel-spacer")}),t?e.jsxs("span",{className:"itd-jackpot-single "+O("inn-multiple-jackpots-carousel-single-tier"),children:[e.jsx("span",{className:"itd-jackpot-tier-name "+O("inn-multiple-jackpots-carousel-single-tier-name"),children:D(a.tiers[0])}),e.jsx(x,{amount:a.tiers[0].amount,format:C,className:"itd-jackpot-single-amount "+O("inn-multiple-jackpots-carousel-single-tier-amount")}),_(a.tiers[0].stats)]}):e.jsx(j.default,{children:a.tiers.map(a=>e.jsx(j.TierItem,{itemId:a.id,children:e.jsxs("span",{className:"itd-jackpot-tier "+O("inn-multiple-jackpots-carousel-multiple-tier"),children:[null!=a.symbol&&e.jsx(l.default,{className:"itd-jackpot-tier-symbol "+O("inn-multiple-jackpots-carousel-multiple-tier-content-tier-image"),src:a.symbol,alt:a.name,brokenWidth:36,brokenHeight:36}),e.jsxs("span",{className:"itd-jackpot-tier-text "+O("inn-multiple-jackpots-carousel-multiple-tier-content"),children:[e.jsx("span",{className:"itd-jackpot-tier-name "+O("inn-multiple-jackpots-carousel-multiple-tier-content-name"),children:D(a)}),e.jsx(x,{amount:a.amount,format:C,className:"itd-jackpot-tier-amount "+O("inn-multiple-jackpots-carousel-multiple-tier-content-amount")+" "+a.name.toLowerCase()})]}),_(a.stats)]})},a.id))}),e.jsx("span",{className:"itd-jackpot-spacer "+O("inn-multiple-jackpots-carousel-spacer")})]},a.id)})})}),e.jsxs("span",{className:"itd-jackpot-controls "+O("inn-multiple-jackpots-carousel-controls"),children:[v&&e.jsxs(e.Fragment,{children:[e.jsx(i.default,{size:"icon",variant:"solid",className:"itd-jackpot-round "+O("inn-multiple-jackpots-carousel-controls-games-button"),"aria-label":W?.games??"Jackpot Oyunları",onClick:S,children:e.jsx(n.Gamepad2,{})}),e.jsx("span",{className:"itd-jackpot-separator itd-jackpot-separator--controls"})]}),e.jsxs("span",{className:"itd-jackpot-arrows "+O("inn-multiple-jackpots-carousel-buttons"),children:[e.jsx(i.default,{size:"icon",variant:"solid",className:"itd-jackpot-round "+O("inn-multiple-jackpots-carousel-button--prev"),"aria-label":W?.prev??"Önceki jackpot",disabled:!z,onClick:()=>I("prev"),children:e.jsx(n.ChevronUp,{})}),e.jsx(i.default,{size:"icon",variant:"solid",className:"itd-jackpot-round "+O("inn-multiple-jackpots-carousel-button--next"),"aria-label":W?.next??"Sonraki jackpot",disabled:!J,onClick:()=>I("next"),children:e.jsx(n.ChevronDown,{})})]})]})]})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("react-dom"),a=require("lucide-react"),s=require("../../context/PortalDocumentContext.js"),l=require("../../button/index.js"),n=require("../../select/index.js"),r=require("../../skeleton/index.js"),o=require("../../spin/index.js"),d=require("../../switch/index.js"),c=require("../../modal/index.js"),u=require("../../select/SelectItem.js");const m=({source:e,pageSize:i=15,pushEventName:a="socket-notification-received"})=>{const[s,l]=t.useState([]),[n,r]=t.useState(0),[o,d]=t.useState(!1),[c,u]=t.useState(!1),[m,f]=t.useState(!1),[h,b]=t.useState(!1),[x,g]=t.useState([]),[j,v]=t.useState(""),k=t.useRef(1),p=t.useRef(!1),C=t.useCallback((t,a=h,s=x,n)=>{if(p.current)return;p.current=!0,u(!0);const o=t?1:void 0!==n?n+1:k.current,c=o-1+i;e.list({isUnread:a,subjects:s,start:o,end:c}).then(e=>{l(i=>t?e.data:[...i,...e.data]),r(e.totalCount),k.current=o+i}).finally(()=>{p.current=!1,u(!1),d(!0)})},[e,i,h,x]),N=t.useCallback(()=>C(!0),[C]),y=t.useCallback(()=>{s.length>=n||C(!1)},[s.length,n,C]),L=t.useCallback(e=>{b(e),k.current=1,l([]),C(!0,e,x)},[C,x]),S=t.useCallback(e=>{g(e),k.current=1,l([]),C(!0,h,e)},[C,h]),A=t.useCallback(t=>{const i=s.find(e=>e.id===t);return!i||i.is_read||m?Promise.resolve(!1):(l(e=>e.map(e=>e.id===t?{...e,is_read:!0}:e)),e.read(t).then(()=>!0,()=>(l(e=>e.map(e=>e.id===t?{...e,is_read:!1}:e)),!1)))},[s,m,e]),T=t.useCallback(t=>{const i=s.findIndex(e=>e.id===t);if(-1===i||m)return Promise.resolve(!1);const a=s[i],o=s.filter(e=>e.id!==t);return l(o),r(e=>Math.max(0,e-1)),f(!0),e.remove(t).then(()=>(f(!1),o.length<5&&o.length<n-1&&C(!1,void 0,void 0,o.length),!0),()=>(f(!1),l(e=>{const t=[...e];return t.splice(i,0,a),t}),r(e=>e+1),!1))},[s,m,e,n,C]),q=t.useCallback(()=>{if(m||c)return Promise.resolve(!1);const t=s;return l(e=>e.map(e=>({...e,is_read:!0}))),f(!0),e.readAll().then(()=>(f(!1),!0),()=>(f(!1),l(t),!1))},[s,m,c,e]);return t.useEffect(()=>{const e=e=>{const t=e.detail;t&&(h&&t.is_read||x.length>0&&!x.includes(t.subject)||(v(t.id),l(e=>[t,...e]),r(e=>e+1)))};return window.addEventListener(a,e),()=>window.removeEventListener(a,e)},[a,h,x]),{items:s,totalCount:n,isLoaded:o,isLoading:c,isUpdating:m,isBusy:c||m||!o,lastPushedId:j,unreadOnly:h,subjects:x,refetch:N,loadMore:y,showUnreadOnly:L,updateSubjects:S,markAsRead:A,deleteNotification:T,markAllAsRead:q}},f=({n:t,entering:i=!1,onRead:s,onDelete:n,deleteLabel:r})=>e.jsxs("article",{className:"itd-notif-item inn-notification"+(t.is_read?"":" itd-notif-item--unread")+(i?" itd-notif-item--entering":""),onClick:()=>s(t.id),children:[e.jsx("div",{className:"itd-notif-date",children:t.date}),e.jsx("h5",{className:"itd-notif-title",children:t.title}),e.jsx("div",{className:"itd-notif-body",children:t.body}),e.jsx("footer",{className:"itd-notif-foot",children:e.jsx(l.default,{variant:"ghost",size:"icon-sm",className:"itd-notif-delete","aria-label":r,onClick:e=>{e.stopPropagation(),n(t.id,e.currentTarget.closest("article"))},children:e.jsx(a.Trash2,{size:14})})}),!t.is_read&&e.jsx("span",{className:"itd-notif-dot","aria-hidden":!0})]}),h=({open:h,onClose:b,source:x,filters:g=[],mobile:j=!1,pageSize:v,pushEventName:k,onCountsChange:p,title:C="Bildirimler",allLabel:N="Tüm Bildirimler",multiSelectionLabel:y="Çoklu seçim ({count})",unreadLabel:L="Okunmamışlar",markAllLabel:S="Tümünü Okundu Olarak İşaretle",markAllConfirmTitle:A="Tümünü okundu olarak işaretle",markAllConfirmText:T="{count} bildiriminiz okundu olarak işaretlenecek. Devam edilsin mi?",confirmYesLabel:q="EVET",confirmNoLabel:P="HAYIR",emptyText:R="Gösterilecek bildirim yok.",deleteLabel:w="Bildirimi sil",backLabel:z="Kapat"})=>{const E=m({source:x,pageSize:v,pushEventName:k}),{confirm:O}=c.useModal(),_=s.usePortalDocument(),I=t.useRef(null),B=t.useRef(!1);t.useEffect(()=>{h&&!B.current&&(B.current=!0,E.refetch()),h&&I.current&&(I.current.scrollTop=0)},[h]),t.useEffect(()=>{p?.(E.totalCount)},[E.totalCount]);const M=E.items.filter(e=>!e.is_read).length,D=(e,t)=>{E.isUpdating||(t.style.height=t.offsetHeight+"px",t.offsetHeight,t.classList.add("itd-notif-item--removing"),window.setTimeout(()=>{E.deleteNotification(e).then(e=>{e||(t.classList.remove("itd-notif-item--removing"),t.style.height="")})},300))},[H,U]=t.useState(["all"]),Y=H.includes("all")?N+" ("+E.totalCount+")":1===H.length?(g.find(e=>e.value===H[0])?.label??H[0])+" ("+E.totalCount+")":y.replace("{count}",String(H.length));return _?i.createPortal(e.jsxs("div",{className:"itd-notifs inn-notifications"+(j?" itd-notifs--mobile inn-mobile-notifications-animator":"")+(h?" itd-notifs--open":""),"aria-hidden":!h,children:[!j&&e.jsx("div",{className:"itd-notifs-overlay",onClick:b}),e.jsxs("aside",{className:"itd-notifs-panel"+(j?" inn-mobile-notifications-animator-content":""),role:"dialog","aria-label":"string"==typeof C?C:void 0,children:[e.jsxs("header",{className:"itd-notifs-header",children:[e.jsx(l.default,{variant:"solid",size:"icon-sm",className:"inn-mobile-userhub-breadcrumb-back-button","aria-label":z,onClick:b,children:e.jsx(a.ChevronLeft,{size:18})}),e.jsx("span",{className:"itd-notifs-title",children:C})]}),e.jsx("div",{className:"itd-notifs-filter",children:e.jsxs(n.default,{multi:!0,size:"large","aria-label":N,label:Y,value:H,onChange:e=>(e=>{const t=H.includes("all");let i;i=0===e.length||e.includes("all")&&!t?["all"]:e.filter(e=>"all"!==e),0===i.length&&(i=["all"]),U(i),E.updateSubjects(i.includes("all")?[]:i.flatMap(e=>g.find(t=>t.value===e)?.subjects??[e]))})(Array.isArray(e)?e:[]),children:[e.jsx(u.SelectItem,{value:"all",children:N}),g.map(t=>e.jsx(u.SelectItem,{value:t.value,children:t.label+(t.count?" ("+t.count+")":"")},t.value))]})}),e.jsxs("div",{className:"itd-notifs-scroll notifications-content","data-scroll-area":"true",ref:I,onScroll:()=>{const e=I.current;e&&!E.isLoading&&e.scrollTop+e.clientHeight>e.scrollHeight-200&&E.loadMore()},children:[E.items.map(t=>e.jsx(f,{n:t,entering:t.id===E.lastPushedId,onRead:E.markAsRead,onDelete:D,deleteLabel:w},t.id)),E.isLoading&&0===E.items.length&&e.jsx("div",{className:"itd-notifs-skels","aria-hidden":!0,children:Array.from({length:5},(t,i)=>e.jsx(r.default,{variant:"rect",height:"17.5rem",radius:"0.375rem"},i))}),E.isLoading&&E.items.length>0&&e.jsx("div",{className:"itd-notifs-note",children:e.jsx(o.default,{})}),!E.isLoading&&E.isLoaded&&0===E.items.length&&e.jsx("div",{className:"itd-notifs-note",children:R})]}),e.jsxs("footer",{className:"itd-notifs-footer",children:[e.jsxs("label",{className:"itd-notifs-unread",children:[e.jsx("span",{children:L}),e.jsx(d.default,{checked:E.unreadOnly,disabled:E.isBusy||0===M,onChange:e=>E.showUnreadOnly(e)})]}),M>0&&e.jsxs(l.default,{variant:"link",className:"itd-notifs-markall",disabled:E.isBusy,onClick:async()=>{await O({title:A,description:T.replace("{count}",String(M)),okText:q,cancelText:P,closeOnClickOutside:!1})&&E.markAllAsRead()},children:[e.jsx(a.Check,{size:14}),S]})]})]})]}),_.body):null};h.displayName="NotificationsPanel",exports.default=h,exports.useNotificationsFeed=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");const t=e=>({dangerouslySetInnerHTML:{__html:e}}),a=({level:a=2,text:s})=>{const d="h"+Math.min(6,Math.max(1,a));return e.jsx(d,{...t(s)})},s=({style:a="unordered",items:s})=>{const d="ordered"===a?"ol":"ul";return e.jsx(d,{children:s.map((a,s)=>e.jsx("li",{...t("string"==typeof a?a:a.content)},s))})},d=({content:a})=>{const[s,...d]=a;return e.jsx("div",{className:"itd-post-table-wrap",children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsx("tr",{children:(s||[]).map((a,s)=>e.jsx("th",{...t(a)},s))})}),e.jsx("tbody",{children:d.map((a,s)=>e.jsx("tr",{children:a.map((a,s)=>e.jsx("td",{...t(a)},s))},s))})]})})},i=({blocks:i,className:r=""})=>e.jsx("section",{className:("itd-post-viewer inn-post-viewer "+r).trim(),children:i.map(i=>"header"===i.type?e.jsx(a,{...i.data},i.id):"paragraph"===i.type?i.data.text?e.jsx("p",{...t(i.data.text)},i.id):null:"breakLine"===i.type?i.data.divider?e.jsx("hr",{className:"itd-post-divider"},i.id):e.jsx("div",{className:"itd-post-spacer","aria-hidden":!0},i.id):"list"===i.type?i.data.items?e.jsx(s,{...i.data},i.id):null:"table"===i.type?i.data.content?e.jsx(d,{...i.data},i.id):null:"image"===i.type?i.data.file?.url?e.jsx("div",{className:"itd-post-image",children:e.jsx("img",{src:i.data.file.url,alt:""})},i.id):null:"rawTool"===i.type&&i.data.html?e.jsx("div",{...t(i.data.html)},i.id):null)});i.displayName="PostViewer",exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../image/index.js"),s=require("../../skeleton/index.js"),t=require("../../helpers/classname/GetClassNameByPlatform.js"),i=require("../../router/BlockLink.js");const o=e=>({"--itd-promo-deg":(e%2?.4:-.4)+"deg"});exports.default=({id:a,promotions:d,loading:l=!1,cardWidth:n,showCaptions:m=!0,onOpen:c,emptyText:p,className:h})=>{const u=n?{"--itd-promo-card-w":n}:{},j=l||!d?Array.from({length:6},(r,t)=>e.jsxs("div",{className:"itd-promo-card","data-skeleton":"true",children:[e.jsx("div",{className:"itd-promo-media",children:e.jsx(s.default,{})}),m&&e.jsx("h3",{className:"itd-promo-caption"})]},t)):d.map((s,t)=>{const a=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"itd-promo-media",children:e.jsx(r.default,{src:s.image,source:s.imageSource,alt:s.title})}),m&&e.jsx("h3",{className:"itd-promo-caption",children:e.jsx("span",{children:s.title})})]});return s.href?e.jsx(i.BlockLink,{className:"itd-promo-card",style:o(t),href:s.href,target:s.target??"_self",children:a},s.id):e.jsx("button",{type:"button",className:"itd-promo-card",style:o(t),onClick:()=>c?.(s.id),children:a},s.id)});return!l&&d&&0===d.length?e.jsx("div",{id:a??t.GetClassNameByPlatform("inn-promotions-grid-component"),className:"itd-promo-empty"+(h?" "+h:""),children:p}):e.jsx("div",{id:a??t.GetClassNameByPlatform("inn-promotions-grid-component"),className:"itd-promo-grid"+(h?" "+h:""),style:u,children:j})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),s=require("../../image/index.js"),i=require("../../skeleton/index.js"),l=require("../../spin/index.js"),r=require("../post-viewer/index.js"),t=require("../default-avatar/index.js"),n=require("../filter-tabs/index.js"),f=require("../../helpers/platform/index.js"),d=require("../../helpers/classname/GetClassNameByPlatform.js"),c=require("../../hooks/useLoadMoreSentinel.js");const p=()=>f.GetPlatform()===d.PlatformTypes.MOBILE,o=[{value:"prizes",label:"Ödüller"},{value:"rules",label:"Kurallar"},{value:"participants",label:"Katılanlar"}];exports.RaffleShowcase=({raffle:f,loading:d=!1,emptyTitle:x=e.jsxs(e.Fragment,{children:["Şu anda aktif bir ",e.jsx("span",{children:"çekiliş"})," bulunmuyor"]}),emptyText:m="Yeni çekilişler için bizi takipte kalın — duyurular bu sayfada yayınlanır.",moreText:h="Daha Fazla Göster",lessText:u="Daha Az Göster",participantsHasMore:j=!1,participantsLoading:b=!1,onParticipantsMore:N})=>{const v=p(),[g,y]=a.useState("prizes"),[k,z]=a.useState(!1),q=c.useLoadMoreSentinel(j&&!b,N),w=a.useMemo(()=>{const a=f?.rules;return Array.isArray(a)&&a.length>0?e.jsx(r.default,{blocks:a}):"string"==typeof a&&""!==a.trim()?e.jsx("div",{className:"itd-raffle-rules-text",children:a}):e.jsx("span",{className:"itd-raffle-empty-note",children:"Kural bilgisi bulunmuyor."})},[f?.rules]);if(d)return e.jsxs("div",{className:"raffle-skeleton itd-raffle-skeleton",children:[e.jsx(i.default,{width:"100%",height:"100%",className:"itd-raffle-skeleton-cover"}),e.jsx(i.default,{width:"40%",height:"1.25rem"}),e.jsx(i.default,{width:"100%",height:"0.875rem"}),e.jsx(i.default,{width:"80%",height:"0.875rem"})]});if(!f)return e.jsxs("div",{className:"itd-raffle-empty",children:[e.jsx("h3",{children:x}),e.jsx("span",{children:m})]});const T=e.jsxs("div",{className:"raffle-box raffle-box-prizes itd-raffle-box itd-raffle-prizes",children:[e.jsx("h3",{className:"raffle-box-title itd-raffle-box-title",children:"Ödüller"}),e.jsxs("div",{className:"raffle-prizes itd-raffle-prize-list",children:[(f.prizes??[]).map(a=>e.jsxs("div",{className:"raffle-prize-item itd-raffle-prize-item",children:[e.jsx("span",{className:"itd-raffle-prize-art",children:a.image?e.jsx(s.default,{src:a.image,alt:a.description}):null}),e.jsxs("span",{className:"itd-raffle-prize-texts",children:[e.jsx("h5",{children:a.description}),e.jsxs("span",{children:[a.quantity," adet"]})]})]},a.id)),0===(f.prizes??[]).length&&e.jsx("span",{className:"itd-raffle-empty-note",children:"Ödül bilgisi bulunmuyor."})]})]}),M=e.jsxs("div",{className:"raffle-box raffle-box-rules itd-raffle-box itd-raffle-rules",children:[e.jsx("h3",{className:"raffle-box-title itd-raffle-box-title",children:"Kurallar"}),e.jsx("div",{className:"itd-raffle-rules-scroll",children:w})]}),A=e.jsxs("div",{className:"raffle-box raffle-box-participants itd-raffle-box itd-raffle-participants",children:[e.jsx("h3",{className:"raffle-box-title itd-raffle-box-title",children:"Çekilişe Katılanlar"}),e.jsxs("div",{className:"raffle-participants itd-raffle-participant-list",children:[(f.participants??[]).map(a=>e.jsxs("div",{className:"raffle-participant-item itd-raffle-participant-item",children:[e.jsx("span",{className:"itd-raffle-participant-photo",children:a.photo?e.jsx("img",{src:a.photo,alt:""}):e.jsx(t.default,{})}),e.jsxs("span",{className:"itd-raffle-participant-texts",children:[e.jsx("h6",{children:a.username}),e.jsxs("span",{children:[a.ticketCount," Bilet"]})]})]},a.username)),0===(f.participants??[]).length&&e.jsx("span",{className:"itd-raffle-empty-note",children:"Henüz katılan bulunmuyor."}),(j||b)&&e.jsx("div",{className:"itd-raffle-participants-sentinel",ref:q,children:b&&e.jsx(l.default,{})})]})]});return e.jsxs("div",{className:"raffle-content itd-raffle-content",children:[e.jsx("div",{className:"raffle-cover-image itd-raffle-cover",children:e.jsx(s.default,{src:(v?f.mobileImage??f.image:f.image)??"",alt:f.name})}),e.jsxs("div",{className:"raffle-box raffle-box-info itd-raffle-box itd-raffle-info-box",children:[v?e.jsx("h3",{className:"raffle-title itd-raffle-title",children:f.name}):e.jsx("h2",{className:"raffle-title itd-raffle-title",children:f.name}),f.description&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"raffle-description itd-raffle-description"+(v&&!k?" is-clamped":""),children:f.description}),v&&e.jsx("button",{type:"button",className:"itd-raffle-desc-toggle",onClick:()=>z(e=>!e),children:k?u:h})]}),e.jsx("hr",{className:"itd-raffle-sep"}),e.jsxs("div",{className:"raffle-info itd-raffle-info",children:[e.jsxs("span",{className:"raffle-status-wrapper itd-raffle-info-cell",children:[e.jsx("b",{children:"Durum:"}),e.jsx("span",{className:"itd-raffle-status","data-tone":f.statusTone??"active",children:f.statusLabel??"Aktif"})]}),e.jsx("span",{className:"itd-raffle-info-sep","aria-hidden":!0}),e.jsxs("span",{className:"raffle-start-date itd-raffle-info-cell",children:[e.jsx("b",{children:"Başlangıç Tarihi:"}),e.jsx("span",{children:f.startsAt})]}),e.jsx("span",{className:"itd-raffle-info-sep","aria-hidden":!0}),e.jsxs("span",{className:"raffle-end-date itd-raffle-info-cell",children:[e.jsx("b",{children:"Bitiş Tarihi:"}),e.jsx("span",{children:f.endsAt})]})]})]}),v?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"raffle-tab-menu itd-raffle-tabs",children:e.jsx(n.default,{grow:!0,options:o.map(e=>({value:e.value,label:e.label})),value:g,onChange:e=>y(e),"aria-label":"Çekiliş panelleri"})}),e.jsxs("div",{className:"raffle-main-content-wrapper itd-raffle-main",children:["prizes"===g&&T,"rules"===g&&M,"participants"===g&&A]})]}):e.jsxs("div",{className:"raffle-main-content-wrapper itd-raffle-main",children:[T,M,A]})]})},exports.default=({title:a,children:s,className:i})=>{const l=p(),r=l?"inn-mobile-raffle":"inn-raffle";return e.jsxs("div",{id:r+"-component",className:(l?"inn-mobile-raffle":"inn-raffle")+" itd-raffle"+(i?" "+i:""),children:[a&&e.jsx("div",{id:r+"-title",className:"itd-raffle-title-bar",children:a}),e.jsx("div",{className:"raffle-content-wrapper itd-raffle-content-wrapper",children:s})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),i=require("../../form/index.js"),s=require("../../field/index.js"),l=require("../../input/index.js"),a=require("../../code-input/index.js"),t=require("../../checkbox/index.js"),r=require("../../button/index.js"),d=require("../../datepicker/index.js"),o=require("../../select/index.js"),u=require("../../types/InputProps.js"),c=require("../../helpers/phone/usePhoneCountry.js"),m=require("../../helpers/phone/index.js"),p=require("../../form/control/Control.js"),g=require("../../select/SelectItem.js");const h={phone:"identity",email:"identity",username:"credentials",password:"credentials",text:"profile",date:"profile",select:"profile",consent:"profile"},x=["identity","verify","credentials","profile"],f=e=>e.step??h[e.kind],j=(e,n)=>x.filter(i=>"verify"===i?n:e.some(e=>f(e)===i)),v=n.forwardRef(({fields:h,layout:x="single",wide:v=!1,verify:y=!1,verificationTiming:b="post_signup",step:N,completedSteps:C=[],country:S,logo:w,banner:k,onClose:q,closeLabel:z="Kapat",loading:I=!1,codeLength:F=6,cooldownUntil:T=null,codeError:P,maskedIdentity:M,suggestedUsername:B,texts:D,onSubmitStep:E,onSubmit:A,onVerifyCode:L,onResend:R,onEditIdentity:_,onSuggestUsername:H,onSignIn:V,className:O=""},W)=>{const U=c.usePhoneCountry(S),K=n.useRef(null),[G,J]=n.useState(!1),[Q,X]=n.useState(""),[Y,Z]=n.useState({}),$=n.useRef({}),[,ee]=n.useState(0),ne=(e=>{const i=e?new Date(e).getTime():0,[s,l]=n.useState(()=>Date.now());n.useEffect(()=>{if(!i||i<=Date.now())return;l(Date.now());const e=setInterval(()=>l(Date.now()),1e3);return()=>clearInterval(e)},[i]);const a=Math.max(0,i-s),t=Math.ceil(a/1e3),r=e=>String(e).padStart(2,"0");return{active:a>0,label:r(Math.floor(t/60))+":"+r(t%60)}})(T),ie=n.useMemo(()=>j(h,y),[h,y]),se="steps"===x,le=se?N??ie[0]:"identity",ae=se&&"verify"===le,te=!se&&y&&"in_form"===b;n.useEffect(()=>{P&&K.current?.setError?.(P)},[P]);const re=n.useMemo(()=>se?h.filter(e=>f(e)===le):h,[h,se,le]),de=e=>n=>{$.current[e]=String(n??""),ee(e=>e+1)},oe=re.every(e=>{if(!e.required||e.readonly||e.collapsed&&!Y[e.name])return!0;const n=$.current[e.name]??"";return"phone"===e.kind?m.isPhoneComplete(U,n):"consent"===e.kind?"true"===n:"password"===e.kind&&e.confirm?n.length>0&&$.current[e.name+"_confirm"]===n:n.length>0}),ue=ae?Q.length!==F||I:!G||!oe||!!te&&Q.length!==F||I,ce=se&&ie.length>1?e.jsx("ol",{className:"itd-signup-steps",children:ie.map((n,i)=>{const s=C.includes(n),l=n===le;return e.jsxs("li",{className:"itd-signup-step"+(l?" itd-signup-step-active":"")+(s?" itd-signup-step-done":""),"aria-current":l?"step":void 0,children:[e.jsx("span",{className:"itd-signup-step-mark",children:s?"✓":i+1}),D.stepLabels?.[n]??n]},n)})}):null,me=se?D.stepTitles?.[le]:null;return e.jsxs("div",{className:"itd-login itd-signup"+(!se&&v?" itd-signup-wide":"")+(O?" "+O:""),children:[w||q?e.jsxs("div",{className:"itd-login-topbar",children:[e.jsx("span",{className:"itd-login-logo",children:w}),q?e.jsx(r.default,{variant:"ghost",size:"icon",className:"itd-login-close","aria-label":z,onClick:q,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":"true",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}):null]}):null,k?e.jsx("div",{className:"itd-login-banner",children:k}):null,e.jsxs("div",{className:"itd-login-body",children:[e.jsxs("div",{className:"itd-login-intro",children:[D.description?e.jsx("span",{className:"itd-login-eyebrow",children:D.description}):null,e.jsx("span",{className:"itd-login-title",children:D.title})]}),e.jsx("div",{className:"itd-login-rule"}),ce,me?e.jsx("span",{className:"itd-signup-step-title",children:me}):null,ae?e.jsxs(e.Fragment,{children:[D.codeHint||M?e.jsxs("p",{className:"itd-login-hint",children:[D.codeHint,M?e.jsxs(e.Fragment,{children:[" ",e.jsx("span",{className:"itd-signup-masked",children:M}),D.editIdentity?e.jsxs(e.Fragment,{children:[" · ",e.jsx("button",{type:"button",className:"itd-signup-edit",onClick:_,children:D.editIdentity})]}):null]}):null]}):null,e.jsxs("div",{className:"itd-login-code",children:[e.jsx(a.default,{ref:K,size:"x-large",length:F,value:Q,onChange:X,autoFocus:!0,"aria-label":me??D.title}),e.jsx(r.default,{type:"button",size:"x-large",loading:I,disabled:ue,onClick:()=>{Q.length!==F||I||L?.(Q)},style:{width:"100%"},children:D.verifySubmit??D.continue??D.submit})]}),e.jsx("div",{className:"itd-login-actions",children:ne.active?e.jsx("span",{className:"itd-login-countdown",children:ne.label}):D.resendCode?e.jsx(r.default,{variant:"filled",size:"medium",onClick:R,disabled:I,children:D.resendCode}):null})]}):e.jsxs(i.default,{name:"sign-up",ref:W,onFinish:e=>{const n={},i=se?h.filter(e=>f(e)===le):h;for(const s of i){if(s.readonly){void 0!==s.value&&(n[s.name]=s.value);continue}if(!(s.name in e)&&!(s.name in $.current))continue;const i=e[s.name]??$.current[s.name];n[s.name]="phone"===s.kind?m.toE164(U,String(i??"")):"consent"===s.kind?!0===i||"true"===i:i}te&&(n.code=Q),se?E?.(le,n):A?.(n)},onValidated:J,children:[e.jsx("div",{className:"itd-signup-fields"+(!se&&v?" itd-signup-fields-grid":""),children:re.map(n=>{if(n.readonly){const i=null!=n.value?String(n.value):void 0,s=n.span?"itd-signup-span":void 0;if("select"===n.kind){const l=n.options?.length||!i?n.options??[]:[{value:i,label:i}];return e.jsx(o.default,{size:"x-large",value:i,disabled:!0,className:s,"aria-label":"string"==typeof n.label?n.label:void 0,children:l.map(n=>e.jsx(g.SelectItem,{value:n.value,children:n.label},n.value))},n.name)}return e.jsx(l.default,{size:"x-large",value:i,disabled:!0,className:s,addonBefore:n.icon,"aria-label":"string"==typeof n.label?n.label:void 0},n.name)}if(n.collapsed&&!Y[n.name])return e.jsx(r.default,{variant:"ghost",size:"medium",className:"itd-signup-reveal itd-signup-span",onClick:()=>Z(e=>({...e,[n.name]:!0})),children:n.label},n.name);const i=[...n.required?[{required:!0}]:[],...n.rules??[]],a="string"==typeof n.label?n.label:void 0,c=n.span?"itd-signup-span":void 0;switch(n.kind){case"phone":return e.jsx(s.Field,{name:n.name,className:c,rules:[...i,{validator:e=>!n.required&&!String(e??"").length||m.isPhoneComplete(U,String(e??""))}],children:e.jsx(l.default,{type:u.InputTypes.TEL,size:"x-large",inputMode:"numeric",autoComplete:"tel-national",mask:U?.mask??null,placeholder:a,addonBefore:n.icon,onChange:de(n.name),prefix:e.jsx("span",{className:"itd-login-dial",children:U?.code})})},n.name);case"email":return e.jsx(s.Field,{name:n.name,className:c,rules:i,children:e.jsx(l.default,{type:u.InputTypes.EMAIL,size:"x-large",autoComplete:"email",placeholder:a,addonBefore:n.icon,onChange:de(n.name)})},n.name);case"username":return e.jsxs("div",{className:"itd-signup-suggested itd-signup-span",children:[e.jsxs("div",{className:"itd-signup-suggested-row",children:[e.jsx(s.Field,{name:n.name,rules:i,children:e.jsx(l.default,{size:"x-large",autoComplete:"username",placeholder:a,defaultValue:B,addonBefore:n.icon,onChange:de(n.name)})},B??""),D.newSuggestion&&H?e.jsx(r.default,{variant:"solid",size:"x-large",onClick:H,disabled:I,children:D.newSuggestion}):null]}),D.suggestedHint&&B?e.jsx("span",{className:"itd-signup-note",children:D.suggestedHint}):null]},n.name);case"password":return n.confirm?e.jsxs("div",{className:"itd-signup-pair itd-signup-span",children:[e.jsx(s.Field,{name:n.name,rules:i,children:e.jsx(l.default,{type:u.InputTypes.PASSWORD,size:"x-large",autoComplete:"new-password",placeholder:a,addonBefore:n.icon,onChange:de(n.name)})}),e.jsx(s.Field,{name:n.name+"_confirm",rules:[...n.required?[{required:!0}]:[],{validator:e=>String(e??"")===($.current[n.name]??"")}],children:e.jsx(l.default,{type:u.InputTypes.PASSWORD,size:"x-large",autoComplete:"new-password",placeholder:n.confirmLabel,addonBefore:n.icon,onChange:de(n.name+"_confirm")})})]},n.name):e.jsx(s.Field,{name:n.name,rules:i,children:e.jsx(l.default,{type:u.InputTypes.PASSWORD,size:"x-large",autoComplete:"new-password",placeholder:a,addonBefore:n.icon,onChange:de(n.name)})},n.name);case"date":return e.jsx(s.Field,{name:n.name,className:c,rules:i,children:e.jsx(d.default,{size:"x-large",placeholder:a,onChange:de(n.name)})},n.name);case"select":return e.jsx(s.Field,{name:n.name,className:c,rules:i,children:e.jsx(o.default,{size:"x-large",placeholder:a,onChange:de(n.name),children:(n.options??[]).map(n=>e.jsx(g.SelectItem,{value:n.value,children:n.label},n.value))})},n.name);case"consent":return e.jsx(s.Field,{name:n.name,className:"itd-signup-span",rules:n.required?[{validator:e=>!0===e||"true"===e}]:[],children:e.jsx(t.default,{onChange:e=>de(n.name)(String(!!e?.checked)),children:n.label})},n.name);default:return e.jsx(s.Field,{name:n.name,className:c,rules:i,children:e.jsx(l.default,{size:"x-large",placeholder:a,addonBefore:n.icon,onChange:de(n.name)})},n.name)}})}),te?e.jsxs("div",{className:"itd-signup-inline-verify",children:[D.inFormVerifyTitle?e.jsx("span",{className:"itd-signup-step-title",children:D.inFormVerifyTitle}):null,D.codeHint?e.jsx("p",{className:"itd-login-hint",children:D.codeHint}):null,e.jsx(a.default,{ref:K,size:"x-large",length:F,value:Q,onChange:X,disabled:!oe,"aria-label":D.inFormVerifyTitle??D.title}),e.jsx("div",{className:"itd-login-actions",children:ne.active?e.jsx("span",{className:"itd-login-countdown",children:ne.label}):D.resendCode?e.jsx(r.default,{variant:"filled",size:"medium",onClick:R,disabled:I,children:D.resendCode}):null})]}):null,e.jsx(p.default,{children:e.jsx(r.default,{type:"submit",size:"x-large",loading:I,disabled:ue,style:{width:"100%"},children:se&&le!==ie[ie.length-1]?D.continue??D.submit:D.submit})})]}),D.haveAccount||D.signIn?e.jsxs("div",{className:"itd-signup-footer",children:[D.haveAccount?e.jsx("span",{className:"itd-signup-footer-note",children:D.haveAccount}):null,D.signIn?e.jsx(r.default,{variant:"ghost",size:"medium",onClick:V,children:D.signIn}):null]}):null]})]})});v.displayName="SignupPanel",exports.SignupPanel=v,exports.default=v,exports.deriveSteps=j,exports.stepOf=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("react"),l=require("../../_bundled/embla-carousel-react/esm/embla-carousel-react.esm.js"),i=require("../../_bundled/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js"),d=require("../../helpers/classname/GetClassNameByPlatform.js"),r=require("../embla/useEmblaState.js");exports.default=({id:a,slides:t,autoplay:n=4e3,loop:o=!0,dots:c=!0,slideSize:u,slideSpacing:m,dotLabel:b=e=>"Slide "+(e+1),hideBackground:p=!1,className:j})=>{const h=s.useMemo(()=>({loop:o}),[o]),v=s.useMemo(()=>!1===n?[]:[i.default({delay:n})],[n]),[x,N]=l.default(h,v),{selected:g}=r.default(N),y=d.GetClassNameByPlatform,f={...u?{"--itd-slider-slide-size":u}:null,...m?{"--itd-slider-spacing":m}:null};return e.jsx("section",{id:a??y("inn-slider-component"),className:"itd-slider-block"+(j?" "+j:""),style:f,"data-background":String(!p),"data-has-slides":String(t.length>0),children:e.jsxs("div",{className:y("inn-slider")+" itd-slider",children:[e.jsx("div",{ref:x,className:y("inn-slider-viewport")+" itd-slider-viewport",children:e.jsx("div",{className:y("inn-slider-container")+" itd-slider-container",children:t.map((s,l)=>e.jsx("div",{className:y("inn-slider-slide")+" itd-slider-slide","data-background":String(!p),children:e.jsx("div",{className:y("inn-slider-slide-number"),children:s})},l))})}),c&&t.length>1&&e.jsx("div",{className:y("inn-slider-controls")+" itd-slider-controls",children:e.jsx("div",{className:y("inn-slider-dots")+" itd-slider-dots",children:t.map((s,l)=>e.jsx("button",{type:"button","aria-label":b(l),"aria-current":l===g||void 0,className:y("inn-slider-dot")+" itd-slider-dot"+(l===g?" "+y("inn-slider-dot")+"-selected":""),onClick:()=>N?.scrollTo(l)},l))})})]})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../slider/index.js"),l=require("../../helpers/classname/GetClassNameByPlatform.js");exports.default=({id:r,left:t,right:a,placeholder:d,className:i})=>e.jsxs("div",{id:r??l.GetClassNameByPlatform("inn-slider-double-component"),className:"itd-slider-double"+(i?" "+i:""),children:[t.slides.length?e.jsx(s.default,{...t}):d,a.slides.length?e.jsx(s.default,{...a}):d]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({id:t,height:r=20,unit:i="px"})=>e.jsx("div",{className:"itd-spacer",style:{height:r+i},"aria-hidden":!0},"spacer-"+(t??""));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("lucide-react"),r=require("../../helpers/classname/GetClassNameByPlatform.js"),s=require("../../router/BlockLink.js");exports.default=({id:i,title:t,height:l,backHref:c,backTarget:d,onBack:n,showBack:h,backLabel:u="Back",action:o,className:b})=>e.jsxs("div",{id:i??r.GetClassNameByPlatform("inn-sub-page-header-component"),className:"itd-sub-page-header"+(b?" "+b:""),style:l?{minHeight:l}:void 0,children:[c?e.jsx(s.BlockLink,{className:"itd-sub-page-header-back","aria-label":u,href:c,target:d,children:e.jsx(a.ChevronLeft,{"aria-hidden":!0})}):null!=c?e.jsx("a",{className:"itd-sub-page-header-back","aria-label":u,target:d,children:e.jsx(a.ChevronLeft,{"aria-hidden":!0})}):n||h?e.jsx("button",{type:"button",className:"itd-sub-page-header-back","aria-label":u,onClick:n,children:e.jsx(a.ChevronLeft,{"aria-hidden":!0})}):null,e.jsx("h2",{className:"itd-sub-page-header-title",children:t}),o?e.jsx("div",{className:"itd-sub-page-header-action",children:o}):null]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),n=require("../../button/index.js"),s=require("../../image/index.js"),r=require("../../skeleton/index.js"),i=require("../../spin/index.js"),l=require("../game-box/index.js"),o=require("../post-viewer/index.js"),d=require("../default-avatar/index.js"),m=require("../filter-tabs/index.js"),u=require("../../hovercard/HoverCard.js"),c=require("../../hovercard/HoverCardTrigger.js"),h=require("../../hovercard/HoverCardContent.js"),p=require("../../enums/enum.js"),x=require("../../helpers/platform/index.js"),v=require("../../helpers/classname/GetClassNameByPlatform.js"),j=require("../../hooks/useLoadMoreSentinel.js");const g=[{value:"all",label:"Tümü"},{value:"registration",label:"Yaklaşan"},{value:"competition",label:"Canlı"},{value:"ended",label:"Sona Erdi"}],b={registration:"Yaklaşan",competition:"Canlı",ended:"Sona Erdi"},N=()=>x.GetPlatform()===v.PlatformTypes.MOBILE,f=e=>e?Math.max(0,new Date(e).getTime()-Date.now()):0,y=(e,a=!0)=>{const[n,s]=t.useState(()=>f(e));t.useEffect(()=>{if(!a||!e)return;s(f(e));const t=setInterval(()=>s(f(e)),1e3);return()=>clearInterval(t)},[e,a]);const r=Math.floor(n/1e3);return{ms:n,days:Math.floor(r/86400),hours:Math.floor(r%86400/3600),minutes:Math.floor(r%3600/60),seconds:r%60}},k=e=>String(e).padStart(2,"0"),w=({status:t})=>e.jsx("span",{className:"itd-tournament-status","data-status":t,children:b[t]}),z=({tournament:t,onOpen:a})=>{const n=t,r="ended"!==n.status,i="registration"===n.status?n.registerEndsAt??n.startsAt:n.endsAt,o=y(i,r),d=n.providers??[],m=(n.games??[]).slice(0,4),x=Math.max(0,(n.gamesCount??n.games?.length??0)-m.length),v=o.days>0?`${o.days} gün ${k(o.hours)}:${k(o.minutes)}:${k(o.seconds)}`:`${k(o.hours)}:${k(o.minutes)}:${k(o.seconds)}`;return e.jsxs("div",{className:"tournament-card itd-tournament-card",onClick:a?()=>a(n.id):void 0,onKeyDown:a?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a(n.id))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:[e.jsxs("div",{className:"tournament-card-cover itd-tournament-card-cover",children:[e.jsx("span",{className:"tournament-card-status itd-tournament-card-status",children:e.jsx(w,{status:n.status})}),e.jsx(s.default,{src:n.image??"",alt:n.name})]}),e.jsxs("div",{className:"tournament-card-body itd-tournament-card-body",children:[e.jsx("h3",{className:"tournament-card-name itd-tournament-card-name",children:n.name}),e.jsxs("div",{className:"tournament-card-meta itd-tournament-card-meta",children:[e.jsxs("div",{className:"tournament-card-prize itd-tournament-card-prize",children:[e.jsx("span",{className:"itd-tournament-meta-label tournament-card-prize-label",children:"Ödül Tutarı"}),e.jsx("span",{className:"itd-tournament-prize-value tournament-card-prize-value",children:n.prize})]}),r&&e.jsxs("div",{className:"tournament-card-countdown itd-tournament-card-countdown",children:[e.jsx("span",{className:"itd-tournament-meta-label tournament-card-countdown-label",children:"Kalan Süre"}),e.jsx("span",{className:"itd-tournament-countdown-value tournament-card-countdown-value",children:v})]})]}),m.length>0&&e.jsxs("div",{className:"tournament-card-games itd-tournament-card-games",children:[e.jsx("span",{className:"tournament-card-games-title itd-tournament-meta-label",children:"Oyunlar"}),e.jsxs("div",{className:"tournament-card-games-row itd-tournament-card-games-row",children:[m.map(t=>e.jsx("span",{className:"tournament-card-games-cell itd-tournament-card-games-cell",children:e.jsx(l.default,{name:"",slug:t.slug??t.id,image:t.image,ratio:"440/310"})},t.id)),x>0&&e.jsx("span",{className:"tournament-card-games-more itd-tournament-card-games-more",children:e.jsxs("span",{children:["+",x]})})]})]}),e.jsxs("div",{className:"tournament-card-footer itd-tournament-card-footer",children:[e.jsxs("span",{className:"tournament-card-participants",children:[n.participantCount," katılımcı"]}),d.length>0&&e.jsx("div",{className:"tournament-card-providers itd-tournament-card-providers"+(d.length>1?" is-interactive":""),onClick:e=>d.length>1&&e.stopPropagation(),children:d.length>1?e.jsxs(u.HoverCard,{children:[e.jsx(c.HoverCardTrigger,{asChild:!0,children:e.jsxs("span",{className:"tournament-card-providers-label",children:[d[0],e.jsxs("em",{className:"tournament-card-providers-more",children:["+",d.length-1]})]})}),e.jsx(h.HoverCardContent,{placement:p.ComponentYPositions.TOP,variant:"filled",maxWidth:240,children:e.jsx("div",{className:"itd-tournament-providers-card",children:d.map(t=>e.jsx("span",{children:t},t))})})]}):e.jsx("span",{className:"tournament-card-providers-label",children:d[0]})})]})]})]})},C=[{value:"prizes",label:"Ödüller"},{value:"leaderboard",label:"Puan Tablosu"},{value:"rules",label:"Kurallar"}];exports.TournamentCard=z,exports.TournamentDetail=({tournament:r,onBack:u,backText:c="Turnuvalara Dön",onJoin:h,onPlayGame:p,gamesStep:x,standingsHasMore:v=!1,standingsLoading:g=!1,onStandingsMore:b})=>{const f=r,z=N(),S="ended"!==f.status,T="registration"===f.status?f.registerEndsAt??f.startsAt:f.endsAt,q=y(T,S),M=x??15,[P,K]=t.useState(M),[L,A]=t.useState("prizes"),[E,O]=t.useState("site"),D=f.games??[],G=D.slice(0,P),H=D.length-G.length,B="registration"===f.status?"Kayıt bitişine kalan süre":"Turnuva bitişine kalan süre",$=t.useMemo(()=>Array.isArray(f.rules)&&f.rules.length>0?e.jsx(o.default,{blocks:f.rules}):"string"==typeof f.rules&&""!==f.rules.trim()?e.jsx("div",{className:"itd-tournament-rules-text tournament-rules-content",children:f.rules}):e.jsx("span",{className:"itd-tournament-panel-empty tournament-rules-empty",children:"Kural bilgisi bulunmuyor."}),[f.rules]),F=t.useRef(null),[R,I]=t.useState({prev:!1,next:!1});t.useEffect(()=>{const e=F.current;if(!e)return;const t=()=>I({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)}},[f.stats]);const W=e=>{const t=F.current;t&&t.scrollBy({left:e*t.clientWidth*.85,behavior:"smooth"})},Y="ended"===f.status?"Kazananlar":"Puan Tablosu",J=(f.globalStandings?.length??0)>0,_="global"===E&&J?f.globalStandings:f.standings??[],Q="site"===E,U=j.useLoadMoreSentinel(Q&&v&&!g,b),V=e.jsxs("div",{className:"tournament-prizes itd-tournament-panel itd-tournament-prizes",children:[e.jsx("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Ödüller"}),f.prizeRows&&f.prizeRows.length>0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"tournament-prizes-header itd-tournament-panel-header",children:[e.jsx("span",{children:"Sıra"}),e.jsx("span",{children:"Ödül"})]}),e.jsx("div",{className:"itd-tournament-panel-list tournament-prizes-list",children:f.prizeRows.map(t=>e.jsxs("div",{className:"tournament-prize-row itd-tournament-prize-row",children:[e.jsx("b",{className:"tournament-prizes-place",children:t.rank}),e.jsx("span",{className:"tournament-prizes-payout",children:t.value})]},t.rank))})]}):e.jsx("span",{className:"itd-tournament-panel-empty tournament-prizes-empty",children:"Ödül bilgisi bulunmuyor."})]}),X=e.jsxs("div",{className:"tournament-standings itd-tournament-panel itd-tournament-standings tournament-leaderboard",children:[e.jsx("h3",{className:"tournament-box-title itd-tournament-box-title",children:Y}),J&&e.jsx("div",{className:"tournament-standings-scope itd-tournament-scope",children:e.jsx(m.default,{grow:!0,options:[{value:"site",label:"Site"},{value:"global",label:"Global"}],value:E,onChange:e=>O(e),"aria-label":"Sıralama kapsamı"})}),_.length>0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"tournament-standings-header itd-tournament-panel-header itd-tournament-standings-header",children:[e.jsx("span",{className:"pos tournament-standings-header-pos",children:"#"}),e.jsx("span",{className:"user tournament-standings-header-user",children:"Kullanıcı"}),e.jsx("span",{className:"tournament-standings-header-score",children:"ended"===f.status?"Ödül":"Puan"})]}),e.jsxs("div",{className:"itd-tournament-panel-list tournament-standings-list"+("ended"===f.status?" tournament-standings-list--winners":" tournament-standings-list--leaderboard"),children:[_.map(t=>e.jsxs("div",{className:"tournament-standings-row itd-tournament-standings-row"+(t.highlight?" is-highlight":""),"data-top":t.position<=3?"":void 0,children:[e.jsx("b",{className:"itd-tournament-rank tournament-standings-position",children:t.position}),e.jsx("span",{className:"itd-tournament-standings-photo tournament-standings-photo",children:t.photo?e.jsx("img",{src:t.photo,alt:""}):e.jsx(d.default,{})}),e.jsx("span",{className:"itd-tournament-standings-user tournament-standings-user",children:t.username??"—"}),e.jsx("span",{className:"itd-tournament-standings-value tournament-standings-score",children:t.value})]},t.position)),Q&&(v||g)&&e.jsx("div",{className:"itd-tournament-board-sentinel",ref:U,children:g&&e.jsx(i.default,{})})]})]}):e.jsx("span",{className:"itd-tournament-panel-empty tournament-standings-empty"+("ended"===f.status?" tournament-standings-empty--winners":" tournament-standings-empty--leaderboard"),children:"site"===E&&J?"Bu sitede sıralama oluşmadı — Global sekmesine bakabilirsiniz.":"ended"===f.status?"Kazanan bilgisi henüz yayınlanmadı.":"Puan tablosu henüz oluşmadı."})]}),Z=e.jsxs("div",{className:"tournament-rules itd-tournament-panel itd-tournament-rules",children:[e.jsx("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Kurallar"}),e.jsx("div",{className:"tournament-rules-scroll itd-tournament-rules-scroll",children:$})]});return e.jsxs("div",{className:"tournament-detail itd-tournament-detail",children:[e.jsxs("div",{className:"tournament-detail-backbar itd-tournament-backbar",children:[e.jsxs(n.default,{variant:"filled",size:"medium",onClick:u,children:[e.jsx(a.ChevronLeft,{size:16}),c]}),e.jsx("div",{className:"tournament-detail-backbar-actions itd-tournament-backbar-actions",children:f.autoJoin?e.jsxs("span",{className:"tournament-detail-auto-badge itd-tournament-auto-badge",children:[e.jsx(a.CheckCircle2,{size:15}),"Otomatik Katılım"]}):S&&h&&e.jsx(n.default,{className:"inn-tournament-participate itd-tournament-participate",variant:f.joined?"statable":"default",state:f.joined?"reject":void 0,size:"medium",onClick:h,children:f.joined?"Katılımdan Ayrıl":"Hemen Katıl"})})]}),e.jsxs("div",{className:"tournament-cover itd-tournament-cover",children:[e.jsx("div",{className:"tournament-cover-image itd-tournament-cover-image",children:e.jsx(s.default,{src:f.cover??f.image??"",alt:f.name})}),e.jsx("div",{className:"tournament-cover-overlay itd-tournament-cover-overlay",children:e.jsxs("div",{className:"tournament-cover-panel itd-tournament-cover-panel",children:[e.jsx(w,{status:f.status}),e.jsxs("div",{className:"itd-tournament-cover-prize tournament-cover-prize",children:[e.jsx("span",{className:"itd-tournament-meta-label tournament-cover-prize-label",children:"Ödül Tutarı"}),e.jsx("b",{className:"itd-tournament-cover-amount tournament-cover-prize-amount",children:f.prize})]}),S&&e.jsxs("div",{className:"itd-tournament-cover-countdown tournament-cover-countdown",children:[e.jsx("span",{className:"itd-tournament-cover-caption tournament-cover-countdown-caption",children:B}),e.jsx("div",{className:"itd-tournament-timer tournament-cover-countdown-timer",children:[[q.days,"Gün"],[q.hours,"Saat"],[q.minutes,"Dakika"],[q.seconds,"Saniye"]].map(([t,a])=>e.jsxs("span",{className:"tournament-cover-countdown-box itd-tournament-timer-box",children:[e.jsx("b",{children:k(t)}),e.jsx("span",{children:a})]},a))})]})]})})]}),(f.description||f.name)&&e.jsxs("div",{className:"tournament-detail-description-box itd-tournament-description",children:[e.jsx("h3",{className:"tournament-detail-description-title",children:f.name}),f.description&&e.jsx("div",{className:"tournament-detail-description",children:f.description})]}),f.stats&&f.stats.length>0&&e.jsxs("div",{className:"tournament-stats itd-tournament-stats",children:[R.prev&&e.jsx("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow tournament-stats-arrow--prev","data-dir":"prev","aria-label":"Geri",onClick:()=>W(-1),children:e.jsx(a.ChevronLeft,{size:16})}),e.jsx("div",{className:"tournament-stats-track itd-tournament-stats-track",ref:F,children:f.stats.map(t=>e.jsxs("div",{className:"tournament-stats-box itd-tournament-stats-box",children:[e.jsx("span",{className:"itd-tournament-box-caption tournament-stats-box-title",children:t.title}),e.jsx("div",{className:"itd-tournament-stats-rows tournament-stats-rows",children:t.rows.map(t=>e.jsxs("div",{className:"itd-tournament-stats-row tournament-stats-row",children:[e.jsx("span",{children:t.label}),e.jsx("span",{"data-tone":t.tone,children:t.value})]},t.label))})]},t.title))}),R.next&&e.jsx("button",{type:"button",className:"tournament-stats-arrow itd-tournament-stats-arrow tournament-stats-arrow--next","data-dir":"next","aria-label":"İleri",onClick:()=>W(1),children:e.jsx(a.ChevronRight,{size:16})})]}),f.providers&&f.providers.length>0&&e.jsxs("div",{className:"itd-tournament-section tournament-detail-section tournament-detail-section--providers",children:[e.jsx("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Sağlayıcılar"}),e.jsx("div",{className:"itd-tournament-provider-chips tournament-detail-providers",children:f.providers.map(t=>e.jsx("span",{className:"tournament-detail-provider-chip itd-tournament-provider-chip",children:t},t))})]}),e.jsxs("div",{className:"itd-tournament-section tournament-detail-section tournament-detail-section--games",children:[e.jsx("h3",{className:"tournament-box-title itd-tournament-box-title",children:"Turnuva Oyunları"}),D.length>0?e.jsxs("div",{className:"tournament-games-grid itd-tournament-games-grid",children:[G.map(t=>e.jsx(l.default,{className:"tournament-game-item",name:z?"":t.name,slug:t.slug??t.id,image:t.image,ratio:"440/310",onPlay:p?e=>p(e):void 0},t.id)),H>0&&e.jsx("button",{type:"button",className:"tournament-games-more itd-tournament-games-more",onClick:()=>K(e=>e+M),children:e.jsxs("span",{children:["+",H]})})]}):e.jsx("div",{className:"tournament-games-empty itd-tournament-games-empty",children:e.jsx("span",{children:"Bu turnuvaya tanımlı oyun bulunmuyor."})})]}),z?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"tournament-detail-tabs itd-tournament-tabs",children:e.jsx(m.default,{grow:!0,className:"tournament-detail-tabs-list",options:C.map(e=>({value:e.value,label:"leaderboard"===e.value?Y:e.label})),value:L,onChange:e=>A(e),"aria-label":"Turnuva panelleri"})}),"prizes"===L&&V,"leaderboard"===L&&X,"rules"===L&&Z]}):e.jsxs("div",{className:"tournament-detail-panels itd-tournament-panels",children:[V,X,Z]})]})},exports.TournamentList=({tournaments:t,loading:a=!1,filters:s=g,filter:l="all",onFilterChange:o,onOpen:d,hasMore:u=!1,loadingMore:c=!1,onLoadMore:h,emptyTitle:p="Turnuva bulunamadı",emptyText:x="Bu filtreye uyan bir turnuva yok. Diğer sekmelere göz atabilirsiniz."})=>{const v=N()?4:8;return e.jsxs("div",{className:"tournament-list itd-tournament-list",children:[e.jsx("div",{className:"tournament-list-filters itd-tournament-filters",children:e.jsx(m.default,{className:"tournament-list-filters-list",options:s,value:l,onChange:o,"aria-label":"Turnuva durumu"})}),a?e.jsx("div",{className:"tournament-list-skeleton-grid itd-tournament-grid",children:Array.from({length:v},(t,a)=>e.jsxs("div",{className:"tournament-list-skeleton-box itd-tournament-skeleton-box",children:[e.jsx("span",{className:"tournament-list-skeleton-cover itd-tournament-skeleton-cover",children:e.jsx(r.default,{width:"100%",height:"100%"})}),e.jsxs("span",{className:"tournament-list-skeleton-body itd-tournament-skeleton-body",children:[e.jsx(r.default,{width:"65%",height:"1rem"}),e.jsx(r.default,{width:"40%",height:"0.75rem"}),e.jsx(r.default,{width:"50%",height:"0.75rem"})]})]},a))}):0===t.length?e.jsxs("div",{className:"tournament-list-empty itd-tournament-empty",children:[e.jsx("h3",{children:p}),e.jsx("span",{children:x})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"tournament-list-grid itd-tournament-grid",children:t.map(t=>e.jsx(z,{tournament:t,onOpen:d},t.id))}),u&&e.jsx("div",{className:"tournament-list-load-more itd-tournament-load-more",children:c?e.jsx(i.default,{}):e.jsx(n.default,{variant:"outline-accent",size:"medium",onClick:h,children:"Daha Fazla Göster"})})]})]})},exports.default=({title:t,children:a,className:n})=>{const s=N(),r=s?"inn-mobile-tournament":"inn-tournament";return e.jsxs("div",{id:r+"-component",className:(s?"inn-mobile-tournament":"inn-tournament")+" itd-tournaments"+(n?" "+n:""),children:[t&&e.jsx("div",{id:r+"-title",className:"tournament-title itd-tournaments-title",children:t}),e.jsx("div",{className:"tournament-content-wrapper itd-tournaments-content",children:a})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),t=require("../../button/index.js"),i=require("../../progress/index.js"),l=require("../../select/index.js"),n=require("../../alert/index.js"),r=require("../../tooltip/Tooltip.js"),d=require("../../tooltip/TooltipTrigger.js"),u=require("../../tooltip/TooltipContent.js"),c=require("./cashier.js"),h=require("./table.js"),o=require("../../alert/Description.js"),m=require("../../select/SelectItem.js");const b=({kind:a,name:s,dateLabel:t,date:i,action:l,fields:n,children:r})=>e.jsxs("section",{className:"hub__status-card",children:[e.jsxs("div",{className:"hub__status-head",children:[e.jsxs("div",{className:"hub__status-title",children:[e.jsx("span",{className:"hub__status-kind",children:a}),e.jsx("span",{className:"hub__status-name",children:s})]}),e.jsxs("div",{className:"hub__status-side",children:[e.jsxs("div",{className:"hub__status-date",children:[e.jsx("span",{children:t}),e.jsx("span",{className:"hub__status-dateval",children:i})]}),l]})]}),e.jsx("div",{className:"hub__status-grid",children:n.map(([a,s],t)=>e.jsxs("div",{children:[e.jsx("span",{className:"hub__status-label",children:a}),e.jsx("span",{className:"hub__status-value",children:s})]},t))}),r]});exports.HubActiveBonus=({bonus:a,intro:s,onCancel:l,kindLabel:r="AKTİF BONUS",applyDateLabel:d="Başvuru Tarihi",cancelLabel:u="Bonusu İptal Et",wagerTitle:c="Bonus Çevrim Bilgisi",validLabel:h="Geçerlilik"})=>e.jsxs(e.Fragment,{children:[s&&e.jsx(n.default,{type:"info",variant:"filled",children:e.jsx(o.AlertDescription,{children:s})}),e.jsx(b,{kind:r,name:a.name,dateLabel:d,date:a.applyDate,action:e.jsx(t.default,{variant:"statable",state:"reject",size:"medium",onClick:l,children:u}),fields:a.fields,children:e.jsxs("div",{className:"hub__wager",children:[e.jsxs("div",{className:"hub__wager-head",children:[e.jsx("span",{className:"hub__wager-title",children:c}),e.jsxs("div",{className:"hub__status-date hub__wager-until",children:[e.jsx("span",{children:h}),e.jsx("span",{className:"hub__status-dateval",children:a.validUntil})]})]}),a.wagerings.map((a,s)=>e.jsxs("div",{className:"hub__wager-row",children:[e.jsx("span",{className:"hub__wager-label",children:a.label}),e.jsxs("div",{className:"hub__wager-bar",children:[e.jsx(i.default,{percent:a.percent,showInfo:!1}),e.jsx("span",{className:"hub__wager-amt",children:a.done+" / "+a.total})]})]},s))]})})]}),exports.HubBonusActivation=({data:a,intro:i,onAccept:l,onReject:r,marker:d={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:u="Id",nameTitle:c="Bonus İsmi",catTitle:m="Kategori",amountTitle:b="Miktar",acceptLabel:x="Kabul Et",rejectLabel:p="Reddet"})=>{const j=[{key:"id",dataIndex:"key",title:u,width:50,render:(a,s)=>e.jsx(h.HubCopyBtn,{value:s.key,compact:!0})},{key:"name",dataIndex:"name",title:c,maxWidth:300,render:(a,s)=>e.jsx(h.HubHistName,{name:s.name})},{key:"cat",dataIndex:"cat",title:m,width:150},{key:"amount",dataIndex:"amount",title:b,width:200,render:a=>e.jsx("span",{className:"hub__hist-amount",children:String(a)})},{key:"actions",dataIndex:"key",title:"",width:240,render:(a,i)=>e.jsxs("span",{className:"hub__pay-actions",children:[e.jsxs(t.default,{variant:"default",size:"medium",onClick:()=>l?.(i),children:[e.jsx(s.Gift,{size:14}),x]}),e.jsxs(t.default,{variant:"statable",state:"reject",size:"medium",onClick:()=>r?.(i),children:[e.jsx(s.Trash2,{size:14}),p]})]})}];return e.jsxs(e.Fragment,{children:[i&&e.jsx(n.default,{type:"info",variant:"filled",children:e.jsx(o.AlertDescription,{children:i})}),e.jsx(h.HubTable,{columns:j,data:a,cellHeight:"74px",marker:d})]})},exports.HubBonusRequest=({data:n,cats:o,types:b,statuses:x,wagering:p,applies:j,onRequest:_,onCancel:v,marker:g={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:k="İsim",catTitle:y="Kategori",typeTitle:N="Tip",wageringTitle:f="Çevrimli",statusTitle:T="Durum",percentTitle:w="Hak Ediş Yüzdesi",infoLabel:q="Bonus bilgisi",applyDatePrefix:I="Başvuru Tarihi: ",requestLabel:z="Talep Et",reRequestLabel:H="Tekrar Talep Et",cancelLabel:B="Talebi İptal Et",unavailableLabel:C="Talep Edilemez",openStatus:L="Açık",unavailableStatus:D="Talep Edilemez"})=>{const[S,E]=a.useState(o[0]?.value??"all"),A=[{key:"name",dataIndex:"name",title:k,maxWidth:220,render:(a,t)=>e.jsxs("span",{className:"hub__pay-name hub__hist-nm",children:[e.jsxs("span",{className:"hub__bonus-name",children:[e.jsx("span",{className:"hub__bonus-title",children:t.name}),e.jsxs(r.Tooltip,{children:[e.jsx(d.TooltipTrigger,{asChild:!0,children:e.jsx("i",{className:"hub__hist-creator","aria-label":q,children:e.jsx(s.Info,{size:14})})}),e.jsx(u.TooltipContent,{placement:"top",children:t.desc})]})]}),t.applyDate&&e.jsx("span",{className:"hub__pay-desc",children:I+t.applyDate})]})},{key:"cat",dataIndex:"cat",title:y,width:90},{key:"type",dataIndex:"type",title:N,width:110},{key:"wagering",dataIndex:"wagering",title:f,width:90},{key:"status",dataIndex:"status",title:T,width:150,render:a=>e.jsx(h.HubStatusBadge,{s:String(a)})},{key:"percent",dataIndex:"percent",title:w,width:170,render:a=>e.jsx("span",{className:"hub__bonus-progress",children:e.jsx(i.default,{percent:Number(a)})})},{key:"actions",dataIndex:"key",title:"",width:180,render:(a,i)=>e.jsx("span",{className:"hub__pay-actions hub__pay-actions--full",children:i.status===L?e.jsx(t.default,{variant:"statable",state:"reject",size:"medium",onClick:()=>v?.(i),children:B}):i.status===D?e.jsx(t.default,{variant:"filled",size:"medium",disabled:!0,children:C}):e.jsxs(t.default,{variant:"default",size:"medium",onClick:()=>_?.(i),children:[e.jsx(s.Gift,{size:14}),i.applyDate?H:z]})})}];return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hub__hist-cats--wide",children:e.jsx(c.HubPayFilter,{options:o,value:S,onChange:E,idPrefix:"brq"})}),e.jsx("div",{className:"hub__hist-filters hub__hist-filters--2",children:[b,x,p,j].map((a,s)=>e.jsx(l.default,{size:"x-large",defaultValue:a[0],children:a.map(a=>e.jsx(m.SelectItem,{value:a,children:a},a))},s))}),e.jsx(h.HubTable,{columns:A,data:n,cellHeight:"84px",marker:g})]})},exports.HubStatusCard=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("react"),l=require("lucide-react"),s=require("../../button/index.js"),i=require("../../input/index.js"),d=require("../../select/index.js"),r=require("../../textarea/index.js"),n=require("../../alert/index.js"),o=require("../../badge/index.js"),t=require("../../field/index.js"),u=require("../../radio/RadioGroup.js"),c=require("../../radio/RadioGroupItem.js"),m=require("../../helpers/classname/GetClassNameByPlatform.js"),h=require("../../select/SelectItem.js"),p=require("../../alert/Description.js");const b=(e,a)=>m.GetClassNameByPlatform(e)+" "+a,x=e=>e.name??e.label,j=e=>{const[l,s]=a.useState(()=>Object.fromEntries(e.map(e=>[x(e),e.value??""])));return[l,(e,a)=>s(l=>({...l,[x(e)]:a}))]},_=({logo:a})=>e.jsx("span",{className:"hub__pay-logo",style:{background:a.color},"aria-hidden":!0,children:a.Icon?e.jsx(a.Icon,{size:18}):e.jsx("b",{children:a.initials})}),y=({options:a,value:l,onChange:s,idPrefix:i,marker:d})=>e.jsx(u.RadioGroup,{value:l,onValueChange:s,orientation:"horizontal",className:d?b(d,"hub__pay-filter"):"hub__pay-filter",children:a.map(a=>e.jsx(t.FieldLabel,{htmlFor:i+"-"+a.value,children:e.jsxs(t.Field,{orientation:"vertical",className:"hub__pay-tile",children:[e.jsx("span",{className:"hub__pay-badge",style:{background:a.color},"aria-hidden":!0,children:a.Icon?e.jsx(a.Icon,{size:18}):e.jsx("b",{children:a.initials})}),e.jsx(t.FieldTitle,{children:a.label}),e.jsx(c.RadioGroupItem,{value:a.value,id:i+"-"+a.value,className:"sr-only"})]})},a.value))}),v=({f:a,onChange:l})=>e.jsxs("div",{className:"hub__paymodal-field",children:[e.jsx("label",{className:"hub__paymodal-label",children:a.label}),"textarea"===a.kind?e.jsx(r.default,{rows:3,defaultValue:a.value,placeholder:a.placeholder,onUpdate:e=>l?.(String(e??""))}):"select"===a.kind?e.jsx(d.default,{size:"x-large",defaultValue:a.value,locked:!!a.locked,onChange:e=>l?.(String(e??"")),children:a.options.map(a=>e.jsx(h.SelectItem,{value:a,children:a},a))}):a.locked?e.jsx(i.default,{size:"x-large",value:a.value,locked:!0}):e.jsx(i.default,{size:"x-large",defaultValue:a.value,placeholder:a.placeholder,onChange:e=>l?.(String(e??""))})]}),f=({logo:a,name:l,side:s})=>e.jsxs("div",{className:"hub__paymodal-card",children:[e.jsx(_,{logo:a}),e.jsx("span",{className:"hub__paymodal-name",children:l}),s]}),g=({labels:a,values:s})=>e.jsx("div",{className:"hub__paymodal-tiles",children:a.map((a,i)=>e.jsx("div",{className:"hub__paymodal-tile",children:e.jsxs("div",{children:[0===i?e.jsx(l.Clock,{"aria-hidden":!0}):e.jsx(l.Gauge,{"aria-hidden":!0,style:1===i?{transform:"scale(-1, 1)"}:void 0}),e.jsxs("span",{className:"hub__paymodal-tile-texts",children:[e.jsx("span",{className:"hub__paymodal-tile-label",children:a}),e.jsx("span",{className:"hub__paymodal-tile-value",children:s[i]})]})]})},a))});exports.HubAccountModal=({account:l,accountTypes:d,typeFields:n,personFields:o=[],tcField:t,phoneField:u,nameLabel:c="Çekim Hesabı Adı",descLabel:m="Çekim Hesabı Açıklaması",typeLabel:h="Çekim Hesabı Türü",addLabel:p="Çekim Hesabı Ekle",editLabel:b="Çekim Hesabını Güncelle",onSubmit:x})=>{const _=!!l,[g,N]=a.useState(l?.tags[0]??d[0]?.value??"bank"),[k,C]=a.useState(l?.name??""),[S,z]=a.useState(l?.desc??""),F=d.find(e=>e.value===g)??d[0],q=n[g]??n.default??{pre:[],post:[]},H=e=>_?e:{...e,value:void 0},L=[...q.pre.map(H),...t?[t]:[],...o,...q.post.map(H),...u?[u]:[]],[M,P]=j(L);return e.jsxs("div",{className:"hub__paymodal",children:[_&&F?e.jsx(f,{logo:{color:F.color,Icon:F.Icon,initials:F.initials},name:F.label}):e.jsxs("div",{className:"hub__paymodal-field",children:[e.jsx("label",{className:"hub__paymodal-label",children:h}),e.jsx(y,{options:d,value:g,onChange:N,idPrefix:"acct"})]}),e.jsxs("div",{className:"hub__paymodal-form",children:[e.jsxs("div",{className:"hub__paymodal-field",children:[e.jsx("label",{className:"hub__paymodal-label",children:c}),e.jsx(i.default,{size:"x-large",value:k,onChange:e=>C(String(e))})]}),e.jsxs("div",{className:"hub__paymodal-field",children:[e.jsx("label",{className:"hub__paymodal-label",children:m}),e.jsx(r.default,{rows:3,value:S,onChange:e=>z("string"==typeof e?e:e?.target?.value??"")})]}),L.map(a=>e.jsx(v,{f:a,onChange:e=>P(a,e)},g+"-"+a.label))]}),e.jsx("hr",{className:"hub__paymodal-sep"}),e.jsx("div",{className:"hub__paymodal-submit",children:e.jsx(s.default,{variant:"default",size:"large",disabled:!k||!S,onClick:()=>x?.({edit:_,type:g,name:k,desc:S,fields:M}),children:_?b:p})})]})},exports.HubDepositModal=({method:l,personFields:d=[],amountLabel:r="Yatırım Miktarı",submitLabel:n="Yatırım Talebi Gönder",favLabel:o="Favorilere Ekle",unfavLabel:t="Favorilerden Kaldır",onSubmit:u,onFavorite:c})=>{const[m,h]=a.useState(!!l.favorite),[p,b]=a.useState(""),[x,_]=j(d);return e.jsxs("div",{className:"hub__paymodal",children:[e.jsx(f,{logo:l.logo,name:l.name,side:e.jsx(s.default,{variant:m?"default":"outline",size:"medium",onClick:()=>{h(!m),c?.(!m)},children:m?t:o})}),e.jsx(g,{labels:["Yatırım Süresi","Min Yatırım","Max Yatırım"],values:[l.time,l.min,l.max]}),e.jsx("hr",{className:"hub__paymodal-sep"}),e.jsxs("div",{className:"hub__paymodal-form",children:[d.map(a=>e.jsx(v,{f:a,onChange:e=>_(a,e)},a.label)),e.jsxs("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[e.jsx("label",{className:"hub__paymodal-label",children:r}),e.jsx(i.default,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:e.jsx("span",{children:"₺"}),value:p,onChange:e=>b(String(e))})]})]}),e.jsx("hr",{className:"hub__paymodal-sep"}),e.jsx("div",{className:"hub__paymodal-submit",children:e.jsx(s.default,{variant:"default",size:"large",disabled:!p,onClick:()=>u?.({method:l,amount:p,fields:x}),children:n})})]})},exports.HubPayFieldRow=v,exports.HubPayFilter=y,exports.HubPayLogoBadge=_,exports.HubPayModalCard=f,exports.HubPayModalTiles=g,exports.HubPayName=({row:a,favTitle:s="Favori",hotTitle:i="Popüler"})=>"group"===a.type?e.jsxs("span",{className:"hub__pay-name",children:[e.jsx("span",{className:"hub__pay-groupname",children:a.name}),e.jsx("span",{children:e.jsx(o.default,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:a.methodCount+" Yöntem"})})]}):e.jsx("span",{className:"hub__pay-name",children:e.jsxs("span",{className:"hub__pay-title",children:[a.name,a.favorite&&e.jsx("i",{className:"hub__pay-mark hub__pay-mark--fav",title:s,children:e.jsx(l.Star,{size:9})}),a.popular&&e.jsx("i",{className:"hub__pay-mark hub__pay-mark--hot",title:i,children:e.jsx(l.Flame,{size:9})})]})}),exports.HubWithdrawModal=({account:l,fields:d=[],amountLabel:r="Çekim Miktarı",submitLabel:o="Çekim Talebi Gönder",note:t,onSubmit:u})=>{const[c,m]=a.useState(""),[h,b]=j(d);return e.jsxs("div",{className:"hub__paymodal",children:[e.jsx(f,{logo:l.logo,name:l.name}),e.jsx(g,{labels:["Çekim Süresi","Min Çekim","Max Çekim"],values:[l.time,l.min,l.max]}),e.jsx("hr",{className:"hub__paymodal-sep"}),e.jsxs("div",{className:"hub__paymodal-form",children:[d.map(a=>e.jsx(v,{f:a,onChange:e=>b(a,e)},a.label)),e.jsxs("div",{className:"hub__paymodal-field hub__paymodal-amount",children:[e.jsx("label",{className:"hub__paymodal-label",children:r}),e.jsx(i.default,{size:"x-large",type:"currency",placeholder:"00.00",addonBefore:e.jsx("span",{children:"₺"}),value:c,onChange:e=>m(String(e))})]}),t&&e.jsx(n.default,{type:"info",variant:"filled",children:e.jsx(p.AlertDescription,{children:t})})]}),e.jsx("hr",{className:"hub__paymodal-sep"}),e.jsx("div",{className:"hub__paymodal-submit",children:e.jsx(s.default,{variant:"default",size:"large",disabled:!c,onClick:()=>u?.({account:l,amount:c,fields:h}),children:o})})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),i=require("../../button/index.js"),t=require("../../input/index.js"),l=require("../../badge/index.js"),o=require("../../table/index.js"),n=require("../../helpers/classname/GetClassNameByPlatform.js"),d=require("./cashier.js");const r=(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}),m=({row:a,nested:t,onDeposit:l,payLabel:o})=>e.jsxs("div",{className:(t?"":"inn-mobile-deposit-list-method-item ")+"hub__dep-item"+(t?" hub__dep-item--nested":""),children:[e.jsx(d.HubPayLogoBadge,{logo:a.logo}),e.jsxs("div",{className:"hub__dep-main",children:[e.jsxs("span",{className:"hub__dep-title",children:[a.favorite&&e.jsx("i",{className:"hub__pay-mark hub__pay-mark--fav",title:"Favori",children:e.jsx(s.Star,{size:9})}),a.popular&&e.jsx("i",{className:"hub__pay-mark hub__pay-mark--hot",title:"Popüler",children:e.jsx(s.Flame,{size:9})}),e.jsx("span",{className:"hub__dep-name",children:a.name})]}),e.jsxs("div",{className:"hub__dep-meta",children:[e.jsxs("div",{className:"hub__dep-amts",children:[e.jsx("span",{children:"Min "+a.min}),e.jsx("span",{children:"Maks "+a.max})]}),e.jsx("span",{className:"hub__dep-time",children:a.time})]})]}),e.jsx(i.default,{size:"small",onClick:()=>a.method&&l(a.method),children:o})]}),h=({row:a,open:i,onToggle:t,onDeposit:o,payLabel:n,methodWord:r})=>e.jsxs("div",{className:"inn-mobile-deposit-list-method-group hub__dep-group","data-open":i,children:[e.jsxs("button",{type:"button",className:"hub__dep-item hub__dep-grouprow",onClick:()=>t(a.key),children:[e.jsx(d.HubPayLogoBadge,{logo:a.logo}),e.jsxs("div",{className:"hub__dep-main",children:[e.jsx("span",{className:"hub__dep-name",children:a.name}),e.jsx("span",{children:e.jsx(l.default,{variant:"default",color:"blue",size:"medium",pill:!1,className:"hub__pay-chip",children:a.methodCount+" "+r})})]}),e.jsx(s.ChevronDown,{className:"hub__dep-chev","aria-hidden":!0})]}),e.jsx("div",{className:"inn-mobile-deposit-list-method-group-submethods hub__dep-sub",children:e.jsx("div",{className:"hub__dep-sub-inner",children:a.children?.map(a=>e.jsx(m,{row:a,nested:!0,onDeposit:o,payLabel:n},a.key))})})]}),p=({methods:l,filters:p,onDeposit:u,isMobile:c=!1,filterMarker:x="inn-deposit-filter-bar",tableMarker:b="inn-deposit-table",searchPlaceholder:_="Arama",minPlaceholder:j="Min",payLabel:y="Para Yatır",showGroupLabel:g="Grubu Göster",hideGroupLabel:f="Grubu Gizle",methodWord:k="Yöntem",emptyText:v="Yatırım yöntemi bulunamadı!",timeTitle:N="Süre",nameTitle:w="İsim",minTitle:C="Min Yatırım",maxTitle:P="Max Yatırım"})=>{const[L,M]=a.useState("all"),[z,S]=a.useState(""),[q,B]=a.useState(""),[D,G]=a.useState([]),T=a.useMemo(()=>(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=>r(a,e.id))}:r(e.method)))(l),[l]),H=a.useMemo(()=>((e,a,s,i,t)=>{const l=i.trim().toLowerCase(),o=parseFloat(t.replace(",","."))||0;if("all"===s&&!l&&!o)return a;const n=new Set,d=[];for(const a of e)for(const e of"group"===a.kind?a.methods:[a.method])n.has(e.name)||(n.add(e.name),d.push(e));return d.filter(e=>("all"===s||("popular"===s?e.popular:"favorites"===s?e.favorite:e.tags.includes(s)))&&(!l||e.name.toLowerCase().includes(l))&&(!o||e.minVal<=o)).map(e=>r(e))})(l,T,L,z,q),[l,T,L,z,q]),I=e=>{G(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},F=[{key:"logo",dataIndex:"logo",title:"",width:70,render:(a,s)=>e.jsx(d.HubPayLogoBadge,{logo:s.logo})},{key:"name",dataIndex:"name",title:w,render:(a,s)=>e.jsx(d.HubPayName,{row:s})},{key:"time",dataIndex:"time",title:N,width:140},{key:"min",dataIndex:"min",title:C,width:140},{key:"max",dataIndex:"max",title:P,width:140},{key:"action",dataIndex:"key",title:"",width:170,render:(a,t)=>"group"===t.type?e.jsx("span",{className:"hub__pay-actions",children:e.jsxs(i.default,{variant:"solid",size:"medium",onClick:()=>I(t.key),children:[D.includes(t.key)?f:g,D.includes(t.key)?e.jsx(s.ChevronUp,{}):e.jsx(s.ChevronDown,{})]})}):e.jsx("span",{className:"hub__pay-actions",children:e.jsx(i.default,{size:"medium",onClick:()=>t.method&&u(t.method),children:y})})}];return e.jsxs(e.Fragment,{children:[e.jsx(d.HubPayFilter,{options:p,value:L,onChange:M,idPrefix:"dep",marker:x}),e.jsxs("div",{className:"hub__pay-search"+(c?" hub__pay-search--single":""),children:[e.jsx(t.default,{size:"x-large",placeholder:_,addonBefore:e.jsx(s.Search,{size:16}),value:z,onChange:e=>S(String(e))}),!c&&e.jsx(t.default,{size:"x-large",placeholder:j,addonBefore:"₺",value:q,onChange:e=>B(String(e))})]}),c?e.jsx("div",{className:"inn-mobile-deposit-list hub__deplist",children:e.jsx("div",{className:"inn-mobile-deposit-list-methods hub__deplist-methods",children:0===H.length?e.jsx("div",{className:"hub__pay-empty",children:e.jsx("span",{children:v})}):H.map(a=>"group"===a.type?e.jsx(h,{row:a,open:D.includes(a.key),onToggle:I,onDeposit:u,payLabel:y,methodWord:k},a.key):e.jsx(m,{row:a,onDeposit:u,payLabel:y},a.key))})}):e.jsx("div",{className:n.GetClassNameByPlatform(b)+" hub__paybox hub__pay-table",children:e.jsx(o.default,{columns:F,data:H,expandedKeys:D,onExpandedKeysChange:e=>G(e),cellHeight:"74px",headerBg:!1,hideGroupButtons:!0,getTRProps:(e,a,s)=>s>0?{className:"hub__pay-subrow"}:"group"===e.type?{className:"hub__pay-grouprow"}:{}})})]})};exports.HubDepositPage=p,exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react"),a=require("../../button/index.js"),n=require("../../badge/index.js"),s=require("../../input/index.js"),r=require("../../select/index.js"),d=require("../../datepicker/index.js"),l=require("../../tooltip/Tooltip.js"),o=require("../../tooltip/TooltipTrigger.js"),u=require("../../tooltip/TooltipContent.js"),h=require("./cashier.js"),m=require("./table.js"),x=require("../../select/SelectItem.js");const c=({cols:i,filters:a,onFilter:n,minPlaceholder:l="Min",maxPlaceholder:o="Maks",startPlaceholder:u="Tarih Başlangıç",endPlaceholder:h="Tarih Bitiş"})=>{const[m,c]=t.useState({}),y=(e,t,i)=>{const a=((e,t)=>e.name??String(t))(e,t),s={...m,[a]:"object"==typeof i&&"object"==typeof m[a]?{...m[a],...i}:i};c(s),n?.(s)};return e.jsx("div",{className:"hub__hist-filters hub__hist-filters--"+i,children:a.map((i,a)=>"select"===i.kind?e.jsx(r.default,{size:"x-large",defaultValue:i.options[0],"aria-label":i.ariaLabel,onChange:e=>y(i,a,String(e??"")),children:i.options.map(t=>e.jsx(x.SelectItem,{value:t,children:t},t))},a):"minmax"===i.kind?e.jsxs("div",{className:"hub__hist-minmax",children:[e.jsx(s.default,{size:"x-large",placeholder:l,addonBefore:e.jsx("span",{children:"₺"}),onChange:e=>y(i,a,{min:String(e??"")})}),e.jsx(s.default,{size:"x-large",placeholder:o,addonBefore:e.jsx("span",{children:"₺"}),onChange:e=>y(i,a,{max:String(e??"")})})]},a):e.jsxs(t.Fragment,{children:[e.jsx(d.default,{size:"x-large",placeholder:u,"aria-label":u,onChange:e=>y(i,a,{start:String(e??"")})}),e.jsx(d.default,{size:"x-large",placeholder:h,"aria-label":h,onChange:e=>y(i,a,{end:String(e??"")})})]},a))})},y=({cats:i,idPrefix:a,wide:n})=>{const[s,r]=t.useState(i[0]?.value??"all"),d=e.jsx(h.HubPayFilter,{options:i,value:s,onChange:r,idPrefix:a});return n?e.jsx("div",{className:"hub__hist-cats--wide",children:d}):d},p=({children:t})=>e.jsx("span",{className:"hub__hist-amount",children:t});exports.HubBonusHistory=({data:t,onFilter:i,cats:a,creators:n,statuses:s,types:r,marker:d={list:"inn-mobile-bonus-history-list",methods:"inn-mobile-bonus-history-list-methods",item:"inn-mobile-bonus-history-list-item"},nameTitle:l="İsim",catTitle:o="Kategori",statusTitle:u="Durum",applyTitle:h="Başvuru Tarihi",finishTitle:x="Tamamlanma",profitTitle:k="Net Kar",cashbackTitle:g="Geri Ödeme",amountTitle:j="Bonus Miktarı",creatorLabel:b="Oluşturan: "})=>{const w=[{key:"name",dataIndex:"name",title:l,maxWidth:200,render:(t,i)=>e.jsx(m.HubHistName,{name:i.name,desc:i.sub,creator:i.creator,creatorLabel:b})},{key:"cat",dataIndex:"cat",title:o,width:90},{key:"status",dataIndex:"status",title:u,width:150,render:t=>e.jsx(m.HubStatusBadge,{s:String(t)})},{key:"apply",dataIndex:"apply",title:h,width:145,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"finish",dataIndex:"finish",title:x,width:145,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"profit",dataIndex:"profit",title:k,width:100},{key:"cashback",dataIndex:"cashback",title:g,width:110},{key:"amount",dataIndex:"amount",title:j,width:120,align:"right",render:t=>e.jsx(p,{children:String(t)})}];return e.jsxs(e.Fragment,{children:[e.jsx(y,{cats:a,idPrefix:"bh",wide:!0}),e.jsx(c,{onFilter:i,cols:3,filters:[{kind:"select",options:n},{kind:"select",options:s},{kind:"select",options:r},{kind:"minmax"},{kind:"daterange"}]}),e.jsx(m.HubTable,{columns:w,data:t,cellHeight:"54px",marker:d})]})},exports.HubFreespinHistory=({data:t,onFilter:s,providers:r,statuses:d,onGames:h,marker:x={list:"inn-mobile-free-spin-history-list",methods:"inn-mobile-free-spin-history-list-methods",item:"inn-mobile-free-spin-history-list-item"},idTitle:y="Id",providerTitle:k="Sağlayıcı",winTitle:g="Kazanç",statusTitle:j="Durum",gamesTitle:b="Oyun Sayısı",spinsTitle:w="Spin Sayısı",startTitle:T="Başlangıç",endTitle:H="Bitiş",gamesTooltip:I="Free Spin Oyunları",viewGamesLabel:S="Geçerli Oyunları Görüntüle"})=>{const f=[{key:"id",dataIndex:"key",title:y,width:50,render:(t,i)=>e.jsx(m.HubCopyBtn,{value:i.key,compact:!0})},{key:"provider",dataIndex:"provider",title:k,maxWidth:200,render:(t,i)=>e.jsx(m.HubHistName,{name:i.provider})},{key:"status",dataIndex:"status",title:g,width:140,render:t=>e.jsx(m.HubStatusBadge,{s:String(t)})},{key:"games",dataIndex:"games",title:b,width:120,render:(t,s)=>e.jsxs("span",{className:"hub__hist-count",children:[e.jsx(n.default,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(t)}),e.jsxs(l.Tooltip,{children:[e.jsx(o.TooltipTrigger,{asChild:!0,children:e.jsx(a.default,{variant:"ghost",size:"icon-sm","aria-label":I,onClick:()=>h(s),children:e.jsx(i.Eye,{size:13})})}),e.jsx(u.TooltipContent,{placement:"top",children:I})]})]})},{key:"spins",dataIndex:"spins",title:w,width:110,render:t=>e.jsx(n.default,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(t)})},{key:"start",dataIndex:"start",title:T,width:145,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"end",dataIndex:"end",title:H,width:145,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"won",dataIndex:"won",title:g,width:110,align:"right",render:t=>e.jsx(p,{children:String(t)})}],v=[{key:"id",dataIndex:"key",title:y,width:50,render:(t,i)=>e.jsx(m.HubCopyBtn,{value:i.key,compact:!0})},{key:"provider",dataIndex:"provider",title:k,maxWidth:200,render:(t,i)=>e.jsx(m.HubHistName,{name:i.provider})},{key:"status",dataIndex:"status",title:j,width:140,render:t=>e.jsx(m.HubStatusBadge,{s:String(t)})},{key:"games",dataIndex:"games",title:b,width:120,render:t=>e.jsx(p,{children:String(t)})},{key:"spins",dataIndex:"spins",title:w,width:110,render:t=>e.jsx(n.default,{variant:"default",color:"blue",size:"medium",pill:!1,children:String(t)})},{key:"start",dataIndex:"start",title:T,width:145,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"end",dataIndex:"end",title:H,width:145,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"won",dataIndex:"won",title:g,width:110,render:t=>e.jsx(p,{children:String(t)})},{key:"actions",dataIndex:"key",title:"",width:220,render:(t,n)=>e.jsx("span",{className:"hub__pay-actions hub__pay-actions--full",children:e.jsxs(a.default,{variant:"solid",size:"medium",onClick:()=>h(n),children:[e.jsx(i.Search,{size:14}),S]})})}];return e.jsxs(e.Fragment,{children:[e.jsx(c,{onFilter:s,cols:4,filters:[{kind:"select",options:r},{kind:"select",options:d},{kind:"daterange"}]}),e.jsx(m.HubTable,{columns:f,mobileColumns:v,data:t,cellHeight:"54px",marker:x})]})},exports.HubGameHistory=({data:t,onFilter:n,cats:s,providers:r,statuses:d,onDetail:l,marker:o={list:"inn-mobile-game-history-list",methods:"inn-mobile-game-history-list-methods",item:"inn-mobile-game-history-list-item"},tokenTitle:u="Fiş",gameTitle:h="Oyun",startTitle:x="Başlangıç",endTitle:k="Bitiş",oldBalTitle:g="Eski Bakiye",newBalTitle:j="Yeni Bakiye",winTitle:b="Kazanma",detailLabel:w="Detay"})=>{const T=[{key:"token",dataIndex:"key",title:u,width:50,render:(t,i)=>e.jsx(m.HubCopyBtn,{value:i.key,compact:!0})},{key:"game",dataIndex:"game",title:h,maxWidth:200,render:(t,i)=>e.jsx(m.HubHistName,{name:i.game,desc:i.cat})},{key:"start",dataIndex:"start",title:x,width:130,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"end",dataIndex:"end",title:k,width:130,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"oldBal",dataIndex:"oldBal",title:g,width:130},{key:"newBal",dataIndex:"newBal",title:j,width:130},{key:"win",dataIndex:"win",title:b,width:120,align:"right",render:t=>e.jsx(p,{children:String(t)})},{key:"details",dataIndex:"key",title:"",width:100,render:(t,n)=>e.jsx("span",{className:"hub__pay-actions",children:e.jsxs(a.default,{variant:"solid",size:"medium",onClick:()=>l(n),children:[e.jsx(i.Eye,{size:13}),w]})})}];return e.jsxs(e.Fragment,{children:[e.jsx(y,{cats:s,idPrefix:"gh"}),e.jsx(c,{onFilter:n,cols:2,filters:[{kind:"select",options:r},{kind:"select",options:d},{kind:"daterange"}]}),e.jsx(m.HubTable,{columns:T,data:t,cellHeight:"54px",marker:o})]})},exports.HubPaymentHistory=({data:t,onFilter:i,cats:a,methods:n,statuses:s,types:r,marker:d={list:"inn-mobile-payment-history-list",methods:"inn-mobile-payment-history-list-methods",item:"inn-mobile-payment-history-list-item"},idTitle:l="Id",providerTitle:o="Sağlayıcı",statusTitle:u="Durum",dateTitle:h="Tarih",oldBalTitle:x="Eski Bakiye",newBalTitle:k="Yeni Bakiye",amountTitle:g="Miktar"})=>{const j=[{key:"id",dataIndex:"key",title:l,width:50,render:(t,i)=>e.jsx(m.HubCopyBtn,{value:i.key,compact:!0})},{key:"name",dataIndex:"name",title:o,maxWidth:200,render:(t,i)=>e.jsx(m.HubHistName,{name:i.name,desc:i.sub})},{key:"status",dataIndex:"status",title:u,width:130,render:t=>e.jsx(m.HubStatusBadge,{s:String(t)})},{key:"date",dataIndex:"date",title:h,width:130,render:t=>e.jsx(m.HubDt,{v:String(t)})},{key:"oldBal",dataIndex:"oldBal",title:x,width:130},{key:"newBal",dataIndex:"newBal",title:k,width:130},{key:"amount",dataIndex:"amount",title:g,width:120,align:"right",render:t=>e.jsx(p,{children:String(t)})}];return e.jsxs(e.Fragment,{children:[e.jsx(y,{cats:a,idPrefix:"ph"}),e.jsx(c,{onFilter:i,cols:3,filters:[{kind:"select",options:n},{kind:"select",options:s},{kind:"select",options:r},{kind:"minmax"},{kind:"daterange"}]}),e.jsx(m.HubTable,{columns:j,data:t,cellHeight:"54px",marker:d})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),n=require("../../helpers/classname/GetClassNameByPlatform.js"),i=require("../../hooks/useRealm.js"),l=require("./platform.js"),r=require("../../avatar/index.js"),t=require("../../button/index.js"),c=require("../../tabs/Tabs.js"),u=require("../../tabs/TabsList.js"),d=require("../../tabs/TabsTrigger.js");require("../../tabs/TabsContent.js");exports.default=({nav:h,section:o,onSectionChange:b,tab:m,onTabChange:j,open:_=!0,onOpenChange:x,onClose:v,user:f,balance:N,rootLabel:g="Kullanıcı Merkezi",closeLabel:p="Kapat",mobileHome:y,children:k,rootProps:C,className:w})=>{const T=a.useRef(null),L=l.useHubMobile(T);var q,E;q=T,E=L,a.useEffect(()=>{const e=i.realmOf(q.current).doc?.documentElement;if(e)return e.classList.toggle("itd-mobile",E),()=>e.classList.remove("itd-mobile")},[q,E]);const[z,R]=a.useState(!1),[A,M]=a.useState(!1);a.useEffect(()=>{const e=i.realmOf(T.current).win;if(!e)return;const a=e.matchMedia("(max-width: 75rem)"),s=()=>M(a.matches);return s(),a.addEventListener("change",s),()=>a.removeEventListener("change",s)},[]);const P=A||z,O=!_,[B,S]=a.useState(!1),G=a.useRef(O);a.useEffect(()=>{!G.current&&O&&S(!0),G.current=O},[O]),a.useEffect(()=>{if(!B)return;const e=setTimeout(()=>S(!1),300);return()=>clearTimeout(e)},[B]);const I=O?B?"closing":"menu":"section",K=h.find(e=>e.key===o)??h[0],D=K?.tabs??[{value:"soon",label:K?.label}],H=D.find(e=>e.value===m)?.label??"",W="hub"+(P?" hub--rail":"")+(w?" "+w:"");return e.jsx("div",{className:W,ref:T,"data-mobile-view":I,...C,children:e.jsxs("div",{className:"hub__panel",children:[e.jsxs("aside",{className:"inn-userhub-sidebar hub__side",children:[e.jsxs("div",{className:"inn-userhub-user-detail hub__user",children:[f.avatar??e.jsx(r.Avatar,{className:"hub__avatar","aria-hidden":!0}),e.jsxs("div",{children:[e.jsx("div",{className:"hub__username",children:f.name}),null!=f.country&&e.jsx("div",{className:"hub__country",children:f.country})]}),!A&&e.jsx("button",{type:"button",className:"hub__side-toggle",onClick:()=>R(e=>!e),"aria-label":P?"Menüyü genişlet":"Menüyü daralt",children:P?e.jsx(s.PanelLeftOpen,{size:16}):e.jsx(s.PanelLeftClose,{size:16})})]}),e.jsx("div",{className:"hub__side-bal",children:e.jsxs("div",{className:"hub__side-bal-inner",children:[e.jsxs("div",{className:"inn-userhub-balance hub__balance",children:[e.jsxs("div",{className:"hub__balance-info",children:[e.jsxs("div",{className:"hub__balance-head",children:[e.jsx("span",{children:N.label??"Aktif Bakiye"}),N.onToggleMask&&e.jsx("button",{type:"button",className:"hub__balance-eye",onClick:N.onToggleMask,"aria-label":N.masked?"Bakiyeyi göster":"Bakiyeyi gizle",children:N.masked?e.jsx(s.EyeOff,{"aria-hidden":!0}):e.jsx(s.Eye,{"aria-hidden":!0})})]}),e.jsx("div",{className:"hub__balance-amount",children:N.amount})]}),(N.onDeposit||N.onWithdraw)&&e.jsxs("div",{className:"hub__balance-actions",children:[e.jsxs(t.default,{variant:"default",size:"small",onClick:N.onDeposit,children:[N.depositIcon,N.depositLabel??"PARA YATIR"]}),e.jsxs(t.default,{variant:"default",size:"small",onClick:N.onWithdraw,children:[N.withdrawIcon,N.withdrawLabel??"PARA ÇEK"]})]})]}),N.rows&&N.rows.length>0&&e.jsx("dl",{className:"inn-userhub-balance-details hub__rows",children:N.rows.map((a,s)=>e.jsxs("div",{className:"hub__row",children:[e.jsx("dt",{children:a.label}),e.jsx("dd",{children:a.value})]},s))})]})}),e.jsx("nav",{className:"inn-userhub-navigation hub__nav",children:h.map(a=>e.jsxs("button",{className:"hub__nav-item",onClick:()=>b(a.key),...a.key===o?{"data-active":""}:{},children:[a.icon,e.jsx("span",{children:a.label}),e.jsx(s.ChevronRight,{"aria-hidden":!0})]},a.key))})]}),y,e.jsxs("main",{className:l.hubClass("inn-userhub-inner","hub__main"),onAnimationEnd:e=>{"hub-slide-out"===e.animationName&&S(!1)},children:[e.jsxs("div",{className:"inn-mobile-userhub-breadcrumb hub__mhead",children:[e.jsx(t.default,{variant:"solid",size:"icon-sm",className:"hub__mback","aria-label":"Geri",onClick:()=>{S(!0),x?.(!1)},children:e.jsx(s.ChevronLeft,{size:18})}),e.jsx("span",{className:"hub__mtitle",children:K?.label})]}),e.jsxs("div",{className:"inn-userhub-breadcrumb hub__head",children:[e.jsxs("div",{className:"hub__crumbs",children:[e.jsx("span",{children:g}),e.jsx(s.ChevronRight,{"aria-hidden":!0}),e.jsx("span",{children:K?.label}),e.jsx(s.ChevronRight,{"aria-hidden":!0}),e.jsx("b",{children:H})]}),e.jsx(t.default,{variant:"ghost",className:"hub__x","aria-label":p,onClick:v,children:e.jsx(s.X,{size:18})})]}),e.jsx("div",{className:"hub__body",children:e.jsxs(c.Tabs,{variant:"line",compact:!0,accent:!0,className:n.GetClassNameByPlatform("inn-userhub-sub-menu"),overflow:!L,value:m,onValueChange:j,children:[e.jsx(u.TabsList,{children:D.map(({value:a,label:s})=>e.jsx(d.TabsTrigger,{value:a,className:"hub__tab",children:s},a))}),k]})})]})]})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),s=require("react"),a=require("lucide-react"),l=require("../../button/index.js"),i=require("../../input/index.js"),r=require("../../select/index.js"),t=require("../../textarea/index.js"),n=require("../../upload/index.js"),c=require("../../enums/enum.js"),u=require("./table.js"),d=require("../../select/SelectItem.js");const h=({t:s,onOpen:l,answeredStatus:i,processingStatus:r})=>{return e.jsxs("button",{type:"button",className:"hub__msg-item",onClick:()=>l(s),children:[e.jsx("span",{className:"hub__msg-icon hub__msg-icon--"+(t=s.status,n=i,c=r,t===c?"wait":t===n?"answered":"closed"),children:e.jsx(a.MessageSquare,{size:17})}),e.jsxs("span",{className:"hub__msg-main",children:[e.jsxs("span",{className:"hub__msg-top",children:[e.jsx("span",{className:"hub__msg-subject",children:s.subject}),e.jsx(u.HubStatusBadge,{s:s.status})]}),e.jsx("span",{className:"hub__msg-preview",children:s.preview}),e.jsxs("span",{className:"hub__msg-sub",children:[e.jsx("span",{children:"#"+s.no+" · "+s.category}),e.jsx("span",{children:s.date})]})]})]});var t,n,c},b=({value:s,onChange:l,starLabel:i=" yıldız"})=>e.jsx("span",{className:"hub__stars",children:[1,2,3,4,5].map(r=>e.jsx("button",{type:"button",className:"hub__star"+(r<=s?" is-on":""),onClick:()=>l(r),"aria-label":r+i,children:e.jsx(a.Star,{size:20})},r))});exports.HubMessageInbox=({tickets:a,filters:l,onOpen:i,allLabel:r="Tümü",answeredStatus:t="Yanıtlandı",processingStatus:n="İşlemde"})=>{const[c,u]=s.useState(r),d=c===r?a:a.filter(e=>e.status===c);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hub__msg-filter",children:l.map(s=>e.jsx("button",{type:"button",className:c===s?"is-active":"",onClick:()=>u(s),children:s},s))}),e.jsx("div",{className:"hub__msg-list",children:d.map(s=>e.jsx(h,{t:s,onOpen:i,answeredStatus:t,processingStatus:n},s.key))})]})},exports.HubNewTicketForm=({categories:s,uploadAction:a,header:u="Yeni Mesaj / Talep",categoryPlaceholder:h="Kategori",subjectPlaceholder:b="Konu",messagePlaceholder:m="Mesajınızı buraya yazın...",imageHeader:o="Görsel Ekle",optionalNote:_="(isteğe bağlı)",submitLabel:x="Mesajı Gönder",onSubmit:j})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"inn-sub-page-header hub__section",children:u}),e.jsxs("div",{className:"hub__grid",children:[e.jsx(r.default,{size:"x-large",placeholder:h,"aria-label":h,children:s.map(s=>e.jsx(d.SelectItem,{value:s,children:s},s))}),e.jsx(i.default,{size:"x-large",placeholder:b,"aria-label":b})]}),e.jsx("div",{className:"hub__grid hub__grid--full",children:e.jsx(t.default,{rows:6,placeholder:m,"aria-label":m})}),e.jsxs("div",{className:"inn-sub-page-header hub__section",children:[o," ",e.jsx("span",{className:"hub__msg-optional",children:_})]}),e.jsx("div",{className:"hub__grid hub__grid--full",children:e.jsx(n.default,{action:a,requestMethod:"post",binaryName:"image",fileTypes:[c.FileTypes.JPG,c.FileTypes.JPEG,c.FileTypes.PNG],maxFileSize:5120,showDeleteIcon:!0,showPreviewIcon:!0,containerHeight:200,fluid:!0})}),e.jsx(l.default,{variant:"default",size:"large",className:"hub__save",onClick:j,children:x})]}),exports.HubTicketThread=({ticket:i,closedStatus:r="Kapandı",youLabel:n="Siz",supportLabel:c="Destek Ekibi",closedNotice:u="Bu konu destek ekibi tarafından kapatılmıştır.",rateLabel:d="Hizmetimizi puanlayın:",replyPlaceholder:h="Yanıtınızı yazın...",replyLabel:m="Yanıtla",onReply:o,onRate:_})=>{const[x,j]=s.useState(i.rating??0),p=i.status===r;return e.jsxs("div",{className:"hub__thread",children:[e.jsx("div",{className:"hub__thread-body",children:i.messages.map((s,l)=>"system"===s.from?e.jsx("div",{className:"hub__msg-sys",children:s.text},l):e.jsxs("div",{className:"hub__bubble hub__bubble--"+s.from,children:[e.jsxs("div",{className:"hub__bubble-meta",children:[e.jsx("span",{className:"hub__bubble-who",children:"user"===s.from?n:c}),e.jsx("span",{className:"hub__bubble-time",children:s.time})]}),e.jsx("div",{className:"hub__bubble-text",children:s.text}),s.image&&e.jsx("span",{className:"hub__bubble-img",children:e.jsx(a.ImageOff,{size:20})})]},l))}),p?e.jsxs("div",{className:"hub__thread-rate",children:[e.jsx("span",{className:"hub__thread-closed",children:u}),e.jsxs("div",{className:"hub__rate-row",children:[e.jsx("span",{className:"hub__rate-label",children:d}),e.jsx(b,{value:x,onChange:e=>{j(e),_?.(e)}})]})]}):e.jsxs("div",{className:"hub__thread-reply",children:[e.jsx(t.default,{rows:3,placeholder:h,"aria-label":m}),e.jsx(l.default,{variant:"default",size:"default",onClick:o,children:m})]})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),s=require("../../hooks/useRealm.js"),r=require("../../helpers/classname/GetClassNameByPlatform.js");const t=e=>!!s.realmOf(e).doc?.cookie.includes("web-platform=mobile");exports.hubClass=(e,s)=>r.GetClassNameByPlatform(e)+" "+s,exports.useHubMobile=s=>{const[r,a]=e.useState(t);return e.useEffect(()=>{a(t(s?.current))},[s]),r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),l=require("../../button/index.js"),i=require("../../progress/index.js"),r=require("../../select/index.js"),n=require("../../table/index.js"),d=require("../../avatar/index.js"),t=require("../../hovercard/HoverCard.js"),c=require("../../hovercard/HoverCardTrigger.js"),h=require("../../hovercard/HoverCardContent.js"),m=require("../../dialog/Dialog.js"),o=require("../../select/SelectItem.js");const u=({Icon:a})=>e.jsx("span",{className:"hub__medal-shape","aria-hidden":!0,children:e.jsxs("span",{className:"hub__medal-hexwrap",children:[e.jsxs("svg",{className:"hub__medal-hexsvg",viewBox:"0 0 48 54",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"hub-gold",x1:"0",y1:"0",x2:"1",y2:"1",children:[e.jsx("stop",{offset:"0",stopColor:"#ffd54d"}),e.jsx("stop",{offset:"0.55",stopColor:"#f1ab00"}),e.jsx("stop",{offset:"1",stopColor:"#d98e00"})]})}),e.jsx("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)"})]}),e.jsx("span",{className:"hub__medal-glyph",children:e.jsx(a,{})})]})}),x=({medal:a,onOpen:l})=>e.jsxs("button",{type:"button",className:"hub__medal"+(a.locked?" hub__medal--locked":""),onClick:()=>l(a),children:[e.jsx("span",{className:"hub__medal-visual",children:e.jsx(u,{Icon:a.Icon})}),e.jsxs("span",{className:"hub__medal-bottom",children:[e.jsx("span",{className:"hub__medal-name",children:a.name}),e.jsx("span",{className:"hub__medal-countwrap",children:e.jsxs("span",{className:"hub__medal-count",children:[e.jsx(s.User,{"aria-hidden":!0}),a.count]})})]})]}),_=({marker:a,icon:s,title:l,titleExtra:i,action:r,children:n})=>e.jsxs("section",{className:a?a+" hub__box":"hub__box",children:[e.jsxs("div",{className:"inn-sub-page-header hub__box-head",children:[e.jsxs("span",{className:"hub__box-title",children:[s,l,i]}),r]}),e.jsx("hr",{className:"hub__hairline"}),n]}),b=({stats:a})=>e.jsx("div",{className:"hub__stats inn-statistics-summary",children:a.map((a,s)=>e.jsxs("div",{className:"hub__stat",children:[e.jsx("div",{className:"hub__stat-label",children:a.label}),e.jsx("div",{className:"hub__stat-value",children:a.value})]},s))}),j=({label:a,onClick:i})=>e.jsxs(l.default,{variant:"link",size:"x-small",className:"hub__details",onClick:i,children:[a,e.jsx(s.ChevronRight,{"aria-hidden":!0})]}),p=({tips:a,unitLabel:s="madalya:",winLabel:l="ödül kazan"})=>e.jsx("div",{className:"hub__reward-tips",children:a.map(([a,i],r)=>e.jsxs("span",{className:"hub__reward-tip",children:[a," ",s," ",e.jsx("b",{children:i})," ",l]},r))}),v=({tips:a,sheetTitle:l,unitLabel:i,winLabel:r})=>e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"hub__reward-info hub__reward-info--hover",children:e.jsxs(t.HoverCard,{children:[e.jsx(c.HoverCardTrigger,{children:e.jsx(s.Info,{"aria-hidden":!0,className:"hub__reward-info-icon"})}),e.jsx(h.HoverCardContent,{variant:"filled",children:e.jsx(p,{tips:a,unitLabel:i,winLabel:r})})]})}),e.jsx("span",{className:"hub__reward-info hub__reward-info--sheet",children:e.jsxs(m.Sheet,{children:[e.jsx(m.SheetTrigger,{asChild:!0,children:e.jsx("button",{type:"button",className:"hub__reward-info-btn","aria-label":"string"==typeof l?l:void 0,children:e.jsx(s.Info,{"aria-hidden":!0,className:"hub__reward-info-icon"})})}),e.jsxs(m.SheetContent,{side:"bottom",children:[e.jsx(m.SheetHeader,{children:e.jsx(m.SheetTitle,{children:l})}),e.jsx(p,{tips:a,unitLabel:i,winLabel:r})]})]})})]}),g=e=>{const a=e.currentTarget.querySelector(".hub__reward-art");a&&(a.classList.add("shake"),a.addEventListener("animationend",()=>a.classList.remove("shake"),{once:!0}))},N="__all__",f=(e,a)=>{const s=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&""!==e);if(0===s.length)return[N];const l=a.includes(N),i=s.includes(N);return i&&!l?[N]:i&&s.length>1?s.filter(e=>e!==N):s};exports.HubMedalButton=x,exports.HubMedalDetail=({medal:a,durationLabel:s="Süre",quantityLabel:l="Miktar",earnersLabel:i="Hakeden Sayısı"})=>e.jsxs("div",{className:"hub__medal-detail",children:[e.jsx("span",{className:"hub__medal-visual",children:e.jsx(u,{Icon:a.Icon})}),e.jsx("div",{className:"hub__medal-detail-name",children:a.name}),e.jsx("p",{className:"hub__medal-detail-desc",children:a.description}),e.jsxs("dl",{className:"hub__medal-detail-rows",children:[e.jsxs("div",{children:[e.jsx("dt",{children:s}),e.jsx("dd",{children:a.duration})]}),e.jsxs("div",{children:[e.jsx("dt",{children:l}),e.jsx("dd",{children:a.quantity})]}),e.jsxs("div",{children:[e.jsx("dt",{children:i}),e.jsx("dd",{children:a.count})]})]})]}),exports.HubMedals=({medals:a,rewardTiers:l,rewardTips:r,rewardPercent:n=10,onMedalOpen:d,rewardsTitle:t="Ödüller",rewardsSheetTitle:c="Ödül Detayları",rewardUnitLabel:h="madalya:",rewardWinLabel:m="ödül kazan",earnedTitle:o="Kazançlarınız",earnedCountText:u="2 / 20 Hakedildi",awaitingTitle:b="Kilidi Açılması Bekleyenler"})=>e.jsxs(e.Fragment,{children:[e.jsxs(_,{icon:e.jsx(s.Trophy,{"aria-hidden":!0}),title:t,titleExtra:e.jsx(v,{tips:r,sheetTitle:c,unitLabel:h,winLabel:m}),children:[e.jsx("div",{className:"hub__rewards",children:l.map(({label:a,emoji:s,lockable:l})=>e.jsxs("div",{className:"hub__reward"+(l?" hub__reward--lockable":""),...l?{onClick:g}:{},children:[e.jsx("span",{className:"hub__reward-art","aria-hidden":!0,children:s}),e.jsx("span",{className:"hub__reward-label",children:a})]},a))}),e.jsx("div",{className:"hub__rewards-progress",children:e.jsx(i.default,{percent:n,showInfo:!1,status:"success"})})]}),e.jsx(_,{marker:"inn-completed-medals",icon:e.jsx(s.Medal,{"aria-hidden":!0}),title:o,action:e.jsx("span",{className:"hub__box-count",children:u}),children:e.jsx("div",{className:"hub__medals hub__medals--wrap",children:a.filter(e=>!e.locked).map(a=>e.jsx(x,{medal:a,onOpen:d},a.name))})}),e.jsx(_,{marker:"inn-awaiting-unlocking-medals",icon:e.jsx(s.Medal,{"aria-hidden":!0}),title:b,children:e.jsx("div",{className:"hub__medals hub__medals--wrap",children:a.filter(e=>e.locked).map(a=>e.jsx(x,{medal:a,onOpen:d},a.name))})})]}),exports.HubProfileSummary=({user:a,vip:r,medals:n,stats:t,topSlots:c,onMedalOpen:h,onVipClub:m,onMedalsDetail:o,onStatsDetail:u,vipClubLabel:p="VIP Klübü",medalsTitle:v="Madalyalar",statsTitle:g="İstatistikler",topSlotsTitle:N="En Çok Oynadığınız Slot Oyunları",liveTitle:f="En Çok Oynadığınız Canlı Casino Oyunları",detailsLabel:y="Detaylar",cevrimLabel:w="Çevrim",noDataLabel:k="Veri Yok"})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"inn-user-profile-summary hub__profile hub__profile--user",children:[a.avatar??e.jsx(d.Avatar,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e.jsxs("div",{children:[e.jsx("div",{className:"hub__username",children:a.username}),null!=a.fullname&&e.jsx("div",{className:"hub__fullname",children:a.fullname})]})]}),e.jsxs("section",{className:"inn-vip-level-summary hub__vip",children:[e.jsxs("div",{className:"hub__vip-head",children:[e.jsxs("div",{className:"hub__vip-meta",children:[e.jsx("div",{className:"inn-vip-level-title hub__vip-title",children:r.title}),e.jsx("span",{className:"hub__vip-dp",children:r.dp})]}),e.jsxs(l.default,{size:"small",className:"hub__vip-btn",onClick:m,children:[e.jsx(s.Crown,{"aria-hidden":!0}),p]})]}),e.jsxs("div",{className:"inn-vip-level-progress hub__vip-progress",children:[e.jsx(i.default,{percent:r.percent,showInfo:!1,status:"success"}),e.jsx("span",{className:"hub__vip-next",children:r.nextText})]})]}),e.jsx(_,{marker:"inn-medals-summary-box",icon:e.jsx(s.Medal,{"aria-hidden":!0}),title:v,action:e.jsx(j,{label:y,onClick:o}),children:e.jsx("div",{className:"inn-medals-summary hub__medals",children:n.slice(0,8).map(a=>e.jsx(x,{medal:a,onOpen:h},a.name))})}),e.jsx(_,{icon:e.jsx(s.TrendingUp,{"aria-hidden":!0}),title:g,action:e.jsx(j,{label:y,onClick:u}),children:e.jsx(b,{stats:t})}),e.jsx(_,{marker:"inn-favorite-casino-games-summary-box",icon:e.jsx(s.Gamepad2,{"aria-hidden":!0}),title:N,children:e.jsx("div",{className:"inn-favorite-casino-games-summary hub__games",children:c.map(a=>e.jsxs("div",{className:"hub__game",children:[e.jsx("span",{className:"hub__game-art hub__game-art--"+a.art,"aria-hidden":!0,children:a.emoji}),e.jsxs("div",{className:"hub__game-info",children:[e.jsx("div",{className:"hub__game-name",children:a.name}),e.jsxs("div",{children:[e.jsx("div",{className:"hub__game-amount",children:a.amount}),e.jsx("div",{className:"hub__game-cur",children:w})]})]})]},a.name))})}),e.jsx(_,{marker:"inn-favorite-live-casino-games-summary-box",icon:e.jsx(s.Gamepad2,{"aria-hidden":!0}),title:f,children:e.jsx("div",{className:"inn-favorite-live-casino-games-summary hub__games",children:[1,2,3].map(a=>e.jsxs("div",{className:"hub__game hub__game--empty",children:[e.jsx(s.Folder,{"aria-hidden":!0}),e.jsx("span",{className:"hub__empty-text",children:k})]},a))})})]}),exports.HubStatistics=({gameStats:l,categories:i,providers:d,stats:t,gameTitle:c="Oyun",winTitle:h="Kazanma",betTitle:m="Bahis",wageredTitle:u="Çevrim",statsTitle:x="İstatistikler",categoryPlaceholder:j="Tüm Kategoriler",providerPlaceholder:p="Tüm Sağlayıcılar",gamePlaceholder:v="Tüm Oyunlar",selectionLabel:g="Seçim",casinoRelabel:y="Slotlar",noDataLabel:w="Veri Yok",onStatsFilter:k})=>{const[S,C]=a.useState(""),[L,T]=a.useState([N]),[I,q]=a.useState([N]),H=l.filter(e=>(!S||e.category===S)&&(L.includes(N)||L.includes(e.provider))&&(I.includes(N)||I.includes(e.game))),z=e=>k?.({category:S,providers:L,games:I,...e}),O=[{dataIndex:"game",key:"game",title:c,render:(a,s)=>e.jsxs("span",{className:"hub__cell-game",children:[e.jsx("span",{className:"hub__cell-big",children:String(a)}),e.jsx("span",{className:"hub__cell-sub",children:s.category+" / "+s.provider})]})},{dataIndex:"win",key:"win",title:h,render:a=>e.jsx("span",{className:"hub__cell-big",children:String(a)})},{dataIndex:"bet",key:"bet",title:m,render:a=>e.jsx("span",{className:"hub__cell-big",children:String(a)})},{dataIndex:"wagered",key:"wagered",title:u,width:"120px",render:a=>e.jsx("span",{className:"hub__cell-big hub__cell-cur",children:String(a)})}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"hub__filterbar",children:[e.jsxs(r.default,{size:"x-large",placeholder:j,value:S,onChange:e=>{const a=e?String(e):"";C(a),z({category:a})},"aria-label":"Kategori",children:[e.jsx(o.SelectItem,{value:"",children:j}),i.map(a=>e.jsx(o.SelectItem,{value:a,children:"Casino"===a?y:a},a))]}),e.jsxs(r.default,{size:"x-large",multi:!0,placeholder:p,"aria-label":"Sağlayıcı",value:L,label:L.includes(N)?void 0:g+" ("+L.length+")",onChange:e=>{const a=f(e,L);T(a),z({providers:a})},children:[e.jsx(o.SelectItem,{value:N,children:p}),d.map(a=>e.jsx(o.SelectItem,{value:a,children:a},a))]}),e.jsxs(r.default,{size:"x-large",multi:!0,placeholder:v,"aria-label":"Oyun",value:I,label:I.includes(N)?void 0:g+" ("+I.length+")",onChange:e=>{const a=f(e,I);q(a),z({games:a})},children:[e.jsx(o.SelectItem,{value:N,children:v}),l.map(a=>e.jsx(o.SelectItem,{value:a.game,children:a.game},a.key))]})]}),e.jsx(_,{icon:e.jsx(s.TrendingUp,{"aria-hidden":!0}),title:x,children:e.jsx(b,{stats:t})}),e.jsx("section",{className:"inn-statistics-game-stats-table hub__box hub__box--flush hub__stat-table",children:H.length>0?e.jsx(n.default,{columns:O,data:H,size:"medium",headerBg:!1}):e.jsxs("div",{className:"hub__nodata",children:[e.jsx(s.FileQuestion,{"aria-hidden":!0}),e.jsx("span",{className:"hub__empty-text",children:w})]})})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react"),s=require("../../button/index.js"),a=require("../../badge/index.js"),l=require("../../alert/index.js"),n=require("../../tooltip/Tooltip.js"),r=require("../../tooltip/TooltipTrigger.js"),d=require("../../tooltip/TooltipContent.js"),c=require("./table.js"),u=require("../../alert/Description.js");const m=({children:t})=>t?e.jsx(l.default,{type:"info",variant:"filled",children:e.jsx(u.AlertDescription,{children:t})}):null,o=({start:t,end:i})=>e.jsxs("span",{className:"hub__fsact-se",children:[e.jsx("span",{children:t}),e.jsx("span",{children:i})]}),h=({name:t})=>e.jsxs(n.Tooltip,{children:[e.jsx(r.TooltipTrigger,{asChild:!0,children:e.jsx("span",{className:"hub__pay-name hub__hist-nm",children:e.jsx("span",{className:"hub__hist-name",children:t})})}),e.jsx(d.TooltipContent,{placement:"top",children:t})]}),x={"Teslim Edildi":"success","Onay Bekliyor":"default",Reddedildi:"purple","Ulaşılamadı":"danger"},p=({s:t,tone:i=x})=>e.jsx(a.default,{variant:"default",color:i[t]??"default",size:"small",pill:!1,children:t}),b=(t,i,s,a,l,n)=>[{key:"id",dataIndex:"key",title:t,width:44,render:(t,i)=>e.jsx(c.HubCopyBtn,{value:i.key,compact:!0})},{key:"name",dataIndex:"name",title:i,maxWidth:460,render:(t,i)=>e.jsx(h,{name:i.name})},{key:"start",dataIndex:"start",title:s,width:130,render:t=>e.jsx(c.HubDt,{v:String(t)})},{key:"end",dataIndex:"end",title:a,width:130,render:t=>e.jsx(c.HubDt,{v:String(t)})},{key:"status",dataIndex:"status",title:l,width:150,render:t=>e.jsx(c.HubStatusBadge,{s:String(t)})},{key:"tickets",dataIndex:"tickets",title:n,width:110,render:(t,i)=>e.jsx("span",{className:"hub__fsact-num",children:i.tickets.length})}],j={idTitle:"Id",nameTitle:"İsim",startTitle:"Başlangıç",endTitle:"Bitiş",statusTitle:"Durum",ticketsTitle:"Bilet Sayısı"};exports.HUB_PRIZE_TONE=x,exports.HubFreespinActivation=({data:t,intro:a,onGames:l,marker:u={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:h="Id",brandTitle:x="Sağlayıcı Adı",datesTitle:p="Başlangıç / Bitiş",statusTitle:b="Durum",spinsTitle:j="Spin Sayısı",daysTitle:k="Geçerlilik",daysSuffix:_=" Gün",createdLabel:f="Oluşturulma Tarihi: ",viewGamesLabel:y="Oyunları Görüntüle"})=>{const T=[{key:"id",dataIndex:"key",title:h,width:44,render:(t,i)=>e.jsx(c.HubCopyBtn,{value:i.key,compact:!0})},{key:"brand",dataIndex:"brand",title:x,maxWidth:460,render:(t,s)=>e.jsx("span",{className:"hub__pay-name hub__hist-nm",children:e.jsxs("span",{className:"hub__bonus-name",children:[e.jsx("span",{className:"hub__bonus-title",children:s.brand}),e.jsxs(n.Tooltip,{children:[e.jsx(r.TooltipTrigger,{asChild:!0,children:e.jsx("i",{className:"hub__hist-creator","aria-label":f,children:e.jsx(i.Clock,{size:13})})}),e.jsx(d.TooltipContent,{placement:"top",children:f+s.created})]})]})})},{key:"dates",dataIndex:"start",title:p,maxWidth:170,render:(t,i)=>e.jsx(o,{start:i.start,end:i.end})},{key:"status",dataIndex:"status",title:b,width:120,render:t=>e.jsx(c.HubStatusBadge,{s:String(t)})},{key:"spins",dataIndex:"spins",title:j,width:90,render:t=>e.jsx("span",{className:"hub__fsact-num",children:String(t)})},{key:"days",dataIndex:"days",title:k,width:95,render:t=>e.jsx("span",{className:"hub__fsact-num",children:String(t)+_})},{key:"actions",dataIndex:"key",title:"",maxWidth:200,render:(t,i)=>e.jsx("span",{className:"hub__pay-actions",children:e.jsx(s.default,{variant:"default",size:"medium",onClick:()=>l(i),children:y})})}];return e.jsxs(e.Fragment,{children:[e.jsx(m,{children:a}),e.jsx(c.HubTable,{columns:T,data:t,cellHeight:"84px",marker:u})]})},exports.HubPrizesModal=({prizes:s,mainLabel:a="Asıl",reserveLabel:l="Yedek",emptyText:n="Bu listede bilet bulunmuyor.",reserveOrderLabel:r="Yedek Sırası:",ticketLabel:d="Bilet:",tone:u=x})=>{const[m,o]=t.useState("main"),h=s.filter(e=>"reserve"===m?!!e.reserve:!e.reserve);return e.jsxs("div",{className:"hub__prizes",children:[e.jsxs("div",{className:"hub__prize-tabs",children:[e.jsx("button",{type:"button",className:"main"===m?"is-active":"",onClick:()=>o("main"),children:a}),e.jsx("button",{type:"button",className:"reserve"===m?"is-active":"",onClick:()=>o("reserve"),children:l})]}),0===h.length?e.jsx("div",{className:"hub__prize-empty",children:n}):e.jsx("div",{className:"hub__prize-list",children:h.map((t,s)=>e.jsxs("div",{className:"hub__prize",children:[e.jsx("span",{className:"hub__prize-img",children:e.jsx(i.ImageOff,{size:22})}),e.jsxs("div",{className:"hub__prize-body",children:[e.jsx("h4",{className:"hub__prize-title",children:t.name}),e.jsx("span",{children:e.jsx(p,{s:t.status,tone:u})}),t.reserve&&e.jsxs("span",{className:"hub__prize-reserve",children:[e.jsx("b",{children:r})," ",(t.reserveOrder??0)+1]}),e.jsxs("span",{className:"hub__prize-ticket",children:[e.jsx("b",{children:d}),e.jsx("span",{className:"hub__prize-code",children:t.ticket}),e.jsx(c.HubCopyBtn,{value:t.ticket,compact:!0})]})]})]},t.ticket+"-"+s))})]})},exports.HubRaffleActive=({data:t,intro:i,onTickets:a,onDeposit:l,marker:n={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:r="Biletlerim",depositLabel:d="Yatırım Yapın Kazanın",...u})=>{const o={...j,...u},h=[...b(o.idTitle,o.nameTitle,o.startTitle,o.endTitle,o.statusTitle,o.ticketsTitle),{key:"actions",dataIndex:"key",title:"",maxWidth:220,render:(t,i)=>e.jsx("span",{className:"hub__pay-actions hub__pay-actions--full",children:i.tickets.length>0?e.jsx(s.default,{variant:"default",size:"medium",onClick:()=>a(i),children:r}):e.jsx(s.default,{variant:"default",size:"medium",onClick:l,children:d})})}];return e.jsxs(e.Fragment,{children:[e.jsx(m,{children:i}),e.jsx(c.HubTable,{columns:h,data:t,cellHeight:"84px",marker:n})]})},exports.HubRaffleJoined=({data:t,intro:i,onPrizes:a,onTickets:l,marker:n={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:r="Ödüllerim",ticketsLabel:d="Biletlerim",...u})=>{const o={...j,...u},h=[...b(o.idTitle,o.nameTitle,o.startTitle,o.endTitle,o.statusTitle,o.ticketsTitle),{key:"actions",dataIndex:"key",title:"",maxWidth:320,render:(t,i)=>e.jsxs("span",{className:"hub__pay-actions",children:[e.jsx(s.default,{variant:"default",size:"medium",disabled:!i.prizes||0===i.prizes.length,onClick:()=>a(i),children:r}),e.jsx(s.default,{variant:"default",size:"medium",disabled:0===i.tickets.length,onClick:()=>l(i),children:d})]})}];return e.jsxs(e.Fragment,{children:[e.jsx(m,{children:i}),e.jsx(c.HubTable,{columns:h,data:t,cellHeight:"84px",marker:n})]})},exports.HubTicketsModal=({tickets:t})=>e.jsx("div",{className:"hub__tickets",children:t.map(t=>e.jsxs("div",{className:"hub__ticket",children:[e.jsx("span",{children:t}),e.jsx(c.HubCopyBtn,{value:t,compact:!0})]},t))});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("react"),l=require("../../input/index.js"),i=require("../../select/index.js"),s=require("../../button/index.js"),r=require("../../alert/index.js"),d=require("../../badge/index.js"),n=require("../../checkbox/index.js"),t=require("../../avatar/index.js"),c=require("../../alert/Description.js"),u=require("../../select/SelectItem.js");const h=({f:a})=>{const s="select"===a.kind?e.jsx(i.default,{size:"x-large",placeholder:a.placeholder,defaultValue:a.value,"aria-label":a.ariaLabel,children:a.options.map(a=>e.jsx(u.SelectItem,{value:a.value,children:a.label},a.value))}):a.locked?e.jsx(l.default,{size:"x-large",locked:!0,value:a.value,"aria-label":a.ariaLabel}):e.jsx(l.default,{size:"x-large",type:a.type,defaultValue:a.value,placeholder:a.placeholder,"aria-label":a.ariaLabel});return a.full?e.jsx("div",{style:{gridColumn:"1 / -1"},children:s}):s};exports.HubChangePassword=({currentHeader:a="Mevcut Şifreniz",newHeader:i="Yeni Şifreniz",currentPlaceholder:d="Mevcut Şifre",newPlaceholder:n="Yeni Şifre",confirmPlaceholder:t="Yeni Şifre (tekrar)",hint:u,submitLabel:h="Şifre Değiştir",disabled:o=!0,onSubmit:x})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"inn-sub-page-header hub__section",children:a}),e.jsx("div",{className:"hub__grid hub__grid--full",children:e.jsx(l.default,{size:"x-large",type:"password",placeholder:d,"aria-label":d})}),e.jsx("div",{className:"inn-sub-page-header hub__section",children:i}),e.jsxs("div",{className:"hub__grid",children:[e.jsx(l.default,{size:"x-large",type:"password",placeholder:n,"aria-label":n}),e.jsx(l.default,{size:"x-large",type:"password",placeholder:t,"aria-label":t})]}),u&&e.jsx(r.default,{type:"info",variant:"filled",children:e.jsx(c.AlertDescription,{children:u})}),e.jsx("hr",{className:"hub__divider"}),e.jsx("div",{className:"hub__actions",children:e.jsx(s.default,{variant:"default",size:"large",disabled:o,onClick:x,children:h})})]}),exports.HubNotificationPrefs=({intro:a,header:l="Bildirim Ayarları",prefs:i,onToggle:d,saveLabel:t="Ayarları Kaydet",onSave:u})=>e.jsxs(e.Fragment,{children:[a&&e.jsx(r.default,{type:"info",variant:"filled",children:e.jsx(c.AlertDescription,{children:a})}),e.jsx("div",{className:"inn-sub-page-header hub__section",children:l}),e.jsx("div",{className:"hub__notify",children:i.map(a=>e.jsx("div",{className:"hub__notify-row",children:e.jsx(n.default,{checked:a.checked,onChange:e=>d?.(a.id,Boolean(e)),children:a.label})},a.id))}),e.jsx("hr",{className:"hub__divider"}),e.jsx("div",{className:"hub__actions",children:e.jsx(s.default,{variant:"default",size:"large",onClick:u,children:t})})]}),exports.HubSecurity=({header:a,rows:l,note:i,onAction:r})=>e.jsxs(e.Fragment,{children:[null!=a&&e.jsx("div",{className:"inn-sub-page-header hub__section",children:a}),e.jsx("div",{className:"hub__security",children:l.map(a=>e.jsxs("div",{className:"hub__security-row",children:[e.jsx("span",{className:"hub__security-label",children:a.label}),e.jsxs("span",{className:"hub__security-value",children:[a.value,a.status?e.jsx(d.default,{variant:"default",color:a.status.tone??"default",size:"medium",pill:!1,children:a.status.label}):null]}),a.action?e.jsx(s.default,{variant:"solid",size:"medium",onClick:()=>r?.(a.id),children:a.action}):null]},a.id))}),null!=i&&e.jsx("p",{className:"hub__security-note",children:i})]}),exports.HubSettingsDetails=({user:l,groups:i,saveLabel:r="Değişiklikleri Kaydet",onSave:d})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"inn-settings-personal-summary-box hub__profile hub__profile--user",children:[l.avatar??e.jsx(t.Avatar,{className:"hub__avatar hub__avatar--user","aria-hidden":!0}),e.jsxs("div",{children:[e.jsx("div",{className:"hub__username",children:l.username}),null!=l.fullname&&e.jsx("div",{className:"hub__fullname",children:l.fullname})]})]}),i.map((l,i)=>e.jsxs(a.Fragment,{children:[e.jsx("div",{className:"inn-sub-page-header hub__section",children:l.header}),e.jsx("div",{className:"hub__grid",children:l.fields.map((a,l)=>e.jsx(h,{f:a},l))})]},i)),e.jsx(s.default,{variant:"default",size:"large",className:"hub__save",onClick:d,children:r})]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),i=require("../../button/index.js"),l=require("../../badge/index.js"),r=require("../../table/index.js"),n=require("../../result/index.js"),t=require("../../tooltip/Tooltip.js"),d=require("../../tooltip/TooltipTrigger.js"),c=require("../../tooltip/TooltipContent.js"),u=require("./platform.js");const o=["name","brand","provider","subject","game"],m=({columns:a,data:s,list:i,methods:l,item:r})=>{const n=a.find(e=>"id"===e.key||"token"===e.key),t=a.find(e=>o.includes(String(e.key)))||a.find(e=>e.maxWidth)||a[1],d=a.find(e=>"status"===e.key),c=a.find(e=>""===e.title),u=a.filter(e=>e!==n&&e!==t&&e!==d&&e!==c),m=(e,a,s)=>e.render?e.render(a[e.dataIndex],a,s):a[e.dataIndex];return e.jsx("div",{className:i?i+" hub__mlist":"hub__mlist",children:e.jsx("div",{className:l,style:{display:"contents"},children:s.map((a,s)=>e.jsxs("div",{className:r?r+" hub__mcard":"hub__mcard",children:[e.jsxs("div",{className:"hub__mcard-head",children:[e.jsxs("span",{className:"hub__mcard-title",children:[n&&e.jsx("span",{className:"hub__mcard-id",children:m(n,a,s)}),t&&e.jsx("span",{className:"hub__mcard-name",children:m(t,a,s)})]}),d&&e.jsx("span",{className:"hub__mcard-status",children:m(d,a,s)})]}),u.length>0&&e.jsx("hr",{className:"hub__mcard-sep"}),u.length>0&&(()=>{const i=a.img,l=a.square,r=e.jsx("div",{className:"hub__mcard-body",children:u.map(i=>e.jsxs("div",{className:"hub__mcard-row",children:[e.jsx("span",{className:"hub__mcard-label",children:"string"==typeof i.title?i.title:""}),e.jsx("span",{className:"hub__mcard-val",children:m(i,a,s)})]},String(i.key)))});return i?e.jsxs("div",{className:"hub__mcard-media",children:[e.jsx("span",{className:"hub__mcard-img"+(l?" hub__mcard-img--square":""),style:{backgroundImage:i},"aria-hidden":!0}),r]}):r})(),c&&e.jsx("div",{className:"hub__mcard-foot",children:m(c,a,s)})]},s))})})},h={"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"};exports.useHubMobile=u.useHubMobile,exports.HUB_NAME_KEYS=o,exports.HUB_STATUS_TONE=h,exports.HubComingSoon=({title:a="ÇOK YAKINDA",description:s="Bu bölüm henüz yapım aşamasındadır ve çok yakında yayında olacaktır.",icon:i="🚧"})=>e.jsx(n.default,{className:"hub__soon",image:e.jsx("span",{className:"hub__soon-icon","aria-hidden":!0,children:i}),title:a,description:s}),exports.HubCopyBtn=({value:a,compact:l,label:r="Kopyala"})=>e.jsxs(t.Tooltip,{children:[e.jsx(d.TooltipTrigger,{asChild:!0,children:e.jsx(i.default,{variant:"custom",size:"icon-sm",className:"hub__copybtn rounded-full"+(l?" hub__copybtn--sm":""),"aria-label":r,onClick:()=>navigator.clipboard?.writeText(a),children:e.jsx(s.Copy,{size:l?10:12})})}),e.jsx(c.TooltipContent,{placement:"top",children:r})]}),exports.HubDt=({v:a})=>{const[s,i]=a.split(" ");return e.jsxs("span",{className:"hub__hist-dt",children:[e.jsx("span",{children:s}),e.jsx("span",{children:i})]})},exports.HubHistName=({name:a,desc:i,creator:l,creatorLabel:r="Oluşturan: "})=>e.jsxs("span",{className:"hub__pay-name hub__hist-nm",children:[e.jsx("span",{className:"hub__hist-name",children:a}),i&&e.jsxs("span",{className:"hub__pay-desc hub__hist-desc",children:[i,l&&e.jsxs(t.Tooltip,{children:[e.jsx(d.TooltipTrigger,{asChild:!0,children:e.jsx("i",{className:"hub__hist-creator","aria-label":r+l,children:e.jsx(s.User,{size:12})})}),e.jsx(c.TooltipContent,{placement:"top",children:r+l})]})]})]}),exports.HubStatusBadge=({s:a,tone:s=h})=>e.jsx(l.default,{variant:"default",color:s[a]??"default",size:"medium",pill:!1,children:a}),exports.HubTable=({columns:s,data:i,cellHeight:l,mobileColumns:n,marker:t})=>{const d=a.useRef(null);return u.useHubMobile(d)?e.jsx(m,{columns:n??s,data:i,list:t?.list,methods:t?.methods,item:t?.item}):e.jsx("div",{ref:d,className:(t?.desktop?t.desktop+" ":"")+"hub__paybox hub__pay-table",children:e.jsx(r.default,{columns:s,data:i,cellHeight:l,headerBg:!1})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),s=require("react"),a=require("lucide-react"),i=require("../../image/index.js"),l=require("../../progress/index.js");const r=(e,s)=>"bronze"===s?e+"images/bronze-medal.png":e+"icons/vip/medal-"+s+".webp",n=()=>e.jsx("svg",{viewBox:"0 0 25 25",className:"hub__vip-star","aria-hidden":!0,children:e.jsx("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"})});exports.HubVipClub=({hero:s,tiers:a,bonuses:c,activeTier:d,onTierChange:t,onLearn:h,cdn:p,learnLabel:b="VIP seviye yükseltme sistemi hakkında bilgi alın",bonusTypeLabel:u="Bonus Tipi",emptyMark:v="--"})=>{const _=a[d]?.art??"bronze";return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"hub__vip-hero",children:[e.jsx("div",{className:"hub__vip-hero-bg","aria-hidden":!0}),e.jsx("div",{className:"hub__vip-hero-title",children:s.title}),e.jsx("span",{className:"hub__vip-hero-dp",children:s.dp}),e.jsxs("div",{className:"hub__vip-hero-progress",children:[e.jsx(l.default,{percent:s.percent,showInfo:!1,status:"success"}),e.jsx("span",{className:"hub__vip-hero-next",children:s.next})]}),e.jsx("span",{className:"hub__vip-hero-medal","aria-hidden":!0,children:e.jsx(i.default,{src:r(p,_),alt:""})})]}),e.jsx("button",{type:"button",className:"hub__vip-learn",onClick:h,children:b}),e.jsxs("div",{className:"inn-vip-table hub__viptable",children:[e.jsx("div",{className:"hub__viptable-col hub__viptable-types",children:e.jsxs("div",{children:[e.jsx("div",{className:"hub__viptable-cell hub__viptable-cell--head",children:e.jsx("span",{className:"hub__viptable-headlabel",children:u})}),c.map((s,a)=>e.jsxs("div",{className:"hub__viptable-cell hub__viptable-type",children:[e.jsx("span",{className:"hub__viptable-ico",children:e.jsx(i.default,{src:p+"icons/vip/"+s.icon,alt:""})}),e.jsx("span",{className:"hub__viptable-typelabel",children:s.label})]},a))]})}),a.map((s,a)=>e.jsx("div",{className:"hub__viptable-col"+(a===d?" hub__viptable-col--current":""),"data-art":s.art,children:e.jsxs("div",{children:[e.jsx("div",{className:"hub__viptable-cell hub__viptable-cell--head",children:e.jsx("button",{type:"button",className:"hub__viptable-tier",onClick:()=>t(a),children:s.label})}),c.map((s,i)=>e.jsx("div",{className:"hub__viptable-cell hub__viptable-mark",children:a>=s.from?e.jsx(n,{}):v},i))]})},s.key))]})]})},exports.HubVipLevels=({art:l,groups:r,cdn:n,levelLabel:c="Seviye",requiredDpLabel:d="Gerekli DP"})=>{const t="platinum"===l?"platinum1":"diamond"===l?"diamond1":l,[h,p]=s.useState(t);return e.jsx("div",{className:"hub__vip-levels","data-vip":l,children:r.map(s=>e.jsxs("div",{className:"hub__vip-group","data-art":s.art,...h===s.key?{"data-open":""}:{},children:[e.jsxs("button",{type:"button",className:"hub__vip-group-head",onClick:()=>p(h===s.key?"":s.key),children:[e.jsxs("span",{className:"hub__vip-group-name",children:[e.jsx(i.default,{src:n+"icons/vip/ribbon-"+s.art+".png",alt:""}),e.jsxs("span",{className:"hub__vip-group-label",children:[s.label," ",s.range]})]}),e.jsx(a.ChevronRight,{className:"hub__vip-group-chev","aria-hidden":!0})]}),e.jsx("div",{className:"hub__vip-group-body",children:e.jsxs("div",{children:[e.jsxs("div",{className:"hub__vip-row hub__vip-row--head",children:[e.jsx("div",{children:c}),e.jsx("div",{children:d})]}),s.levels.map((a,l)=>e.jsxs("div",{className:"hub__vip-row",children:[e.jsxs("div",{children:[e.jsx(i.default,{src:n+"icons/vip/medal-"+s.art+".webp",alt:""}),a.name]}),e.jsx("div",{children:a.xp})]},l))]})})]},s.key))})},exports.hubVipMedalSrc=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),i=require("lucide-react"),t=require("../../button/index.js"),n=require("../../input/index.js"),s=require("../../table/index.js"),l=require("../../tooltip/Tooltip.js"),r=require("../../tooltip/TooltipTrigger.js"),d=require("../../tooltip/TooltipContent.js"),c=require("../../helpers/classname/GetClassNameByPlatform.js"),o=require("./cashier.js");const u=({id:i,openId:t,setOpenId:n,actions:s,children:l})=>{const r=t===i,d=a.useRef(null),c=a.useRef({down:!1,x:0,y:0,base:0,axis:"",cur:0,pid:0}),[o,u]=a.useState(0),[h,m]=a.useState(!1);a.useEffect(()=>{c.current.down||u(r?-160:0)},[r]);const x=()=>{if(!c.current.down)return;const{axis:e,cur:a}=c.current;if(c.current.down=!1,m(!1),"x"===e){const e=a<-80;u(e?-160:0),e?n(i):r&&n(null)}else u(r?-160:0)};return e.jsxs("div",{className:"inn-mobile-swipeable-list-item hub__swipe",children:[e.jsx("div",{className:"hub__swipe-actions",children:s}),e.jsx("div",{ref:d,className:"hub__swipe-content"+(h?" hub__swipe-content--drag":""),style:{transform:"translateX("+o+"px)"},onPointerDown:e=>{c.current={down:!0,x:e.clientX,y:e.clientY,base:r?-160:0,axis:"",cur:r?-160:0,pid:e.pointerId}},onPointerMove:e=>{if(!c.current.down)return;const a=e.clientX-c.current.x,i=e.clientY-c.current.y;if(!c.current.axis){if(Math.abs(a)<8&&Math.abs(i)<8)return;if(c.current.axis=Math.abs(a)>Math.abs(i)?"x":"y","x"!==c.current.axis)return void(c.current.down=!1);try{d.current?.setPointerCapture?.(c.current.pid)}catch{}m(!0)}const t=Math.max(-160,Math.min(0,c.current.base+a));c.current.cur=t,u(t)},onPointerUp:x,onPointerCancel:x,children:l})]})},h=({accounts:n,onWithdraw:s,onEdit:l,onDelete:r,onAdd:d,labels:c})=>{const[h,m]=a.useState(null);return e.jsxs("div",{className:"inn-mobile-withdraw-list hub__wdlist",children:[e.jsx("div",{className:"inn-mobile-withdraw-list-methods",children:0===n.length?e.jsx("div",{className:"hub__pay-empty",children:e.jsx("span",{children:c.emptyText})}):e.jsx("div",{className:"inn-mobile-swipeable-list hub__swipe-list",children:n.map(a=>e.jsx(u,{id:a.name,openId:h,setOpenId:m,actions:e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:"hub__swipe-act hub__swipe-act--edit",onClick:()=>l(a),children:[e.jsx(i.Pencil,{"aria-hidden":!0}),e.jsx("span",{children:c.editLabel})]}),e.jsxs("button",{type:"button",className:"hub__swipe-act hub__swipe-act--del",onClick:()=>r(a),children:[e.jsx(i.Trash2,{"aria-hidden":!0}),e.jsx("span",{children:c.deleteLabel})]})]}),children:e.jsxs("div",{className:"inn-mobile-withdraw-list-method-item hub__dep-item hub__wd-item",children:[e.jsx(o.HubPayLogoBadge,{logo:a.logo}),e.jsxs("div",{className:"hub__dep-main",children:[e.jsx("span",{className:"hub__dep-name",children:a.name}),e.jsxs("div",{className:"hub__dep-meta",children:[e.jsx("span",{className:"hub__pay-desc",children:a.desc}),e.jsxs("div",{className:"hub__dep-amts",children:[e.jsx("span",{children:"Min "+a.min}),e.jsx("span",{children:"Maks "+a.max})]})]})]}),e.jsx(t.default,{size:"small",onClick:()=>s(a),children:c.withdrawLabel})]})},a.name))})}),e.jsx("div",{className:"hub__wd-add",children:e.jsx(t.default,{variant:"default",size:"default",onClick:()=>d(),children:c.addLabel})})]})},m=({accounts:u,filters:m,onWithdraw:x,onEdit:b,onDelete:p,onAdd:_,isMobile:j=!1,filterMarker:w="inn-withdraw-filter-bar",tableMarker:y="inn-withdraw-table",searchPlaceholder:f="Arama",withdrawLabel:g="Para Çek",addLabel:k="Yeni Çekim Hesabı Ekle",editLabel:N="Düzenle",deleteLabel:v="Sil",editTooltip:T="Çekim Hesabını Düzenle",deleteTooltip:C="Çekim Hesabını Sil",emptyText:P="Çekim yöntemi bulunamadı!",nameTitle:L="İsim",timeTitle:M="Süre",minTitle:q="Min Çekim",maxTitle:z="Max Çekim"})=>{const[I,S]=a.useState("all"),[H,B]=a.useState(""),D=u.filter(e=>{const a=H.trim().toLowerCase();return("all"===I||e.tags.includes(I))&&(!a||e.name.toLowerCase().includes(a))}),E=D.map(e=>({key:e.name,name:e.name,desc:e.desc,logo:e.logo,time:e.time,min:e.min,max:e.max,account:e})),A=[{key:"logo",dataIndex:"logo",title:"",width:70,render:(a,i)=>e.jsx(o.HubPayLogoBadge,{logo:i.logo})},{key:"name",dataIndex:"name",title:L,render:(a,i)=>e.jsxs("span",{className:"hub__pay-name",children:[e.jsx("span",{className:"hub__wd-name",children:i.name}),e.jsx("span",{className:"hub__pay-desc",children:i.desc})]})},{key:"time",dataIndex:"time",title:M,width:140},{key:"min",dataIndex:"min",title:q,width:140},{key:"max",dataIndex:"max",title:z,width:140},{key:"action",dataIndex:"key",title:"",width:200,render:(a,n)=>e.jsxs("span",{className:"hub__pay-actions",children:[e.jsxs(l.Tooltip,{children:[e.jsx(r.TooltipTrigger,{asChild:!0,children:e.jsx("button",{type:"button",className:"hub__pay-round hub__pay-round--danger hub__wd-acticon","aria-label":C,onClick:()=>p(n.account),children:e.jsx(i.Trash2,{size:14})})}),e.jsx(d.TooltipContent,{placement:"top",children:C})]}),e.jsxs(l.Tooltip,{children:[e.jsx(r.TooltipTrigger,{asChild:!0,children:e.jsx(t.default,{variant:"solid",size:"icon-sm",className:"rounded-full hub__wd-acticon","aria-label":T,onClick:()=>b(n.account),children:e.jsx(i.Pencil,{size:14})})}),e.jsx(d.TooltipContent,{placement:"top",children:T})]}),e.jsx(t.default,{size:"medium",onClick:()=>x(n.account),children:g})]})}];return e.jsxs(e.Fragment,{children:[e.jsx(o.HubPayFilter,{options:m,value:I,onChange:S,idPrefix:"wd",marker:w}),e.jsx("div",{className:"hub__pay-search hub__pay-search--single",children:e.jsx(n.default,{size:"x-large",placeholder:f,addonBefore:e.jsx(i.Search,{size:16}),value:H,onChange:e=>B(String(e))})}),j?e.jsx(h,{accounts:D,onWithdraw:x,onEdit:b,onDelete:p,onAdd:_,labels:{withdrawLabel:g,addLabel:k,editLabel:N,deleteLabel:v,emptyText:P}}):e.jsxs("div",{className:c.GetClassNameByPlatform(y)+" hub__paybox hub__pay-table",children:[e.jsx(s.default,{columns:A,data:E,cellHeight:"74px",headerBg:!1}),e.jsx("div",{className:"hub__wd-add",children:e.jsx(t.default,{variant:"default",size:"default",onClick:()=>_(),children:k})})]})]})};exports.HubWithdrawPage=m,exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("../primitives/Slot.js"),n=require("../button-group/ButtonGroupContext.js");require("../router/context.js");var s=require("../router/ITDLink.js");require("../router/BlockLink.js");var r=require("../spin/index.js"),o=require("../utils/GetButtonSizeSlug.js"),u=require("../enums/enum.js"),l=require("../utils/cn.js");const a=e=>e===u.ButtonSizes.ICON||e===u.ButtonSizes.ICON_SM||e===u.ButtonSizes.ICON_LG,d=t.forwardRef((d,c)=>{const{as:f,asChild:p=!1,id:b="",form:m,disabled:x=!1,loading:j=!1,type:g=u.ButtonTypes.BUTTON,variant:C=u.ComponentVariants.DEFAULT,size:v,state:q=null,href:z="",target:B="_self",className:h="",children:S=null,onClick:N,locked:k,...y}=d,I=t.useContext(n.ButtonGroupSizeContext),D=a(v)&&!!I,E=D?I:v??I??u.ComponentSizes.DEFAULT,T=t.useRef(null),L=c||T,[O,_]=t.useState(b),G=t.useId();t.useEffect(()=>{""===b&&_("itd-button-"+G)},[]);const U={id:O,ref:L,className:(()=>{const e=o.default(E),t=D||a(E);let i="itd-button inline-flex items-center justify-center shrink-0";return i+=" itd-button-"+C,i+=" itd-button-"+e,i+=" itd-button-"+g,q&&(i+=" itd-button-"+q),t?(i+=" itd-button-has-icon",D?i+=" itd-button-icon-square itd-size-"+e:"icon-sm"===e?i+=" size-8":"icon"===e?i+=" size-9":"icon-lg"===e&&(i+=" size-10")):i+=" itd-size-"+e,j&&(i+=" itd-button-loading"),l.cn(i,h)})(),disabled:x||void 0,tabIndex:x?-1:0,"aria-busy":j||void 0,form:m||void 0,onClick:e=>{j?e?.preventDefault?.():N?.(e)},...y};let R="button";if(p){if(t.isValidElement(S))return e.jsx(i.Slot,{...U,children:S});"production"!==process.env.NODE_ENV&&console.warn("[Button]: Using `asChild` requires a single React element as children. Example: <Button asChild><a /></Button>. You are currently passing a primitive value (string, etc.), so `asChild` is ignored.")}return f?R=f:z?(R=s.ITDLink,U.to=z,U.target=B,delete U.disabled,x&&(U["aria-disabled"]=!0,U.tabIndex=-1,U.onClick=e=>{e.preventDefault()})):U.type=g,e.jsxs(R,{...U,children:[(()=>{if(!j)return null;const t=o.default(E),i="xs"===t?12:"lg"===t||"icon-lg"===t?20:"xlg"===t?24:16;return e.jsx(r.default,{size:i})})(),e.jsx("span",{className:"itd-button-content",children:S})]})});d.displayName="Button",exports.default=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react").createContext(void 0);exports.ButtonGroupSizeContext=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),r=require("../utils/GetButtonSizeSlug.js"),o=require("../enums/enum.js"),u=require("../utils/cn.js"),n=require("./ButtonGroupContext.js");const a=e.forwardRef(({variant:e="default",orientation:r="horizontal",size:o,className:a,children:i,locked:s,...d},l)=>t.jsx(n.ButtonGroupSizeContext.Provider,{value:o,children:t.jsx("div",{ref:l,role:"group","data-slot":"button-group","data-variant":e,"data-orientation":r,"data-size":o,className:u.cn("itd-button-group",`itd-button-group-${e}`,`itd-button-group-${r}`,a),...d,children:i})}));a.displayName="ButtonGroup";const i=e.forwardRef(({className:a,children:i,locked:s,...d},l)=>{const p=e.useContext(n.ButtonGroupSizeContext)??o.ComponentSizes.DEFAULT,c=r.default(p);return t.jsx("div",{ref:l,"data-slot":"button-group-text","data-size":p,className:u.cn("itd-button-group-text",`itd-size-${c}`,a),...d,children:i})});i.displayName="ButtonGroupText",exports.ButtonGroup=a,exports.ButtonGroupText=i,exports.default=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../helpers/datetime/dayjsSetup.js");var e=require("dayjs");exports.default=(t,r,s)=>{const a=Number.isInteger(s)&&s>=0&&s<=6?s:0;let o=e();Number.isInteger(t)&&Number.isInteger(r)&&(o=o.month(t-1).year(r));const d=o.startOf("month"),n=o.endOf("month"),u=[],Y=[],h=[];let m=d,f=0;for(;m.day()!==a&&f<7;)m=m.subtract(1,"day"),u.push(m.format("MM/DD/YYYY")),f++;for(m=d;m.month()===t-1;)Y.push(m.format("MM/DD/YYYY")),m=m.add(1,"day");for(m=n;u.length+Y.length+h.length<42;)m=m.add(1,"day"),h.push(m.format("MM/DD/YYYY"));return[...u.reverse(),...Y,...h]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react");exports.default=function({date:d,today:r,current:t,disabled:n,selected:i,focusable:l,handleClick:c,onHover:o,rangeStart:s,rangeEnd:u,inRange:y,children:b}){const M=a.useMemo(()=>{let e="itd-calendar-day";return r&&(e+=" itd-calendar-day-today"),i&&(e+=" itd-calendar-day-selected"),n&&(e+=" itd-calendar-day-disabled"),t&&(e+=" itd-calendar-day-current"),s&&(e+=" itd-calendar-day-range-start"),u&&(e+=" itd-calendar-day-range-end"),y&&(e+=" itd-calendar-day-in-range"),e},[r,i,n,t,s,u,y]);return e.jsx("button",{type:"button",className:M,disabled:n,tabIndex:l?0:-1,role:"gridcell","aria-selected":i||s||u||void 0,"aria-current":r?"date":void 0,"aria-label":d.format("D MMMM YYYY"),"data-itd-date":d.format("YYYY-MM-DD"),onClick:()=>c(d),onMouseEnter:o?()=>o(d):void 0,children:e.jsx("span",{children:b})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");const n=e=>n=>{e&&("Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e()))};exports.default=function(a){const{month:l="",year:d="",onPrevYear:r=null,onPrevMonth:t=null,onNextMonth:o=null,onNextYear:s=null,onClickMonth:i=null,onClickYear:c=null,viewMode:x="days",decadeLabel:h="",hidePrev:m=!1,hideNext:u=!1}=a;return e.jsxs("div",{className:"itd-calendar-header",children:[!m&&e.jsx("a",{className:"itd-calendar-prev-year",onClick:r,onKeyDown:n(r),tabIndex:0,role:"button","aria-label":"Previous year",children:e.jsx("span",{})}),!m&&"days"===x&&e.jsx("a",{className:"itd-calendar-prev-month",onClick:t,onKeyDown:n(t),tabIndex:0,role:"button","aria-label":"Previous month",children:e.jsx("span",{})}),e.jsxs("div",{className:"itd-calendar-middle",children:["days"===x&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"itd-calendar-middle-month",onClick:i,onKeyDown:n(i),tabIndex:0,role:"button",children:l}),e.jsx("div",{className:"itd-calendar-middle-year",onClick:c,onKeyDown:n(c),tabIndex:0,role:"button",children:d})]}),"months"===x&&e.jsx("div",{className:"itd-calendar-middle-year",onClick:c,onKeyDown:n(c),tabIndex:0,role:"button",children:d}),"years"===x&&e.jsx("div",{className:"itd-calendar-middle-decade",children:h||d})]}),!u&&"days"===x&&e.jsx("a",{className:"itd-calendar-next-month",onClick:o,onKeyDown:n(o),tabIndex:0,role:"button","aria-label":"Next month",children:e.jsx("span",{})}),!u&&e.jsx("a",{className:"itd-calendar-next-year",onClick:s,onKeyDown:n(s),tabIndex:0,role:"button","aria-label":"Next year",children:e.jsx("span",{})})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react");require("../helpers/datetime/dayjsSetup.js");var t=require("./dates.js"),a=require("./day/Day.js"),n=require("./header/Header.js"),s=require("./time/Time.js"),o=require("../button/index.js"),d=require("../context/ITDContext.js"),l=require("../locales/tr/calendar.json.js"),c=require("../locales/en/calendar.json.js"),u=require("dayjs");exports.default=({value:i="",defaultValue:m="",className:h,onChange:f,disabledDate:y,locale:b,showTime:j=!1,getNow:k,compact:w=!1})=>{const{language:p}=r.useContext(d.default),x=b||("tr"===p?l.default:c.default),Y=!!j,v="object"==typeof j?j:{},D=!!v.showSecond,[M,S]=r.useState(0),[g,N]=r.useState([]),[q,A]=r.useState(null),[C,E]=r.useState(u()),[$,R]=r.useState(null),[L,P]=r.useState(()=>u().hour(0).minute(0).second(0).millisecond(0)),[H,K]=r.useState("days"),[I,O]=r.useState(()=>k?k():u()),T=r.useRef(null),U=r.useRef(!1),z=r.useRef(null),V=r.useRef(null),_=r.useRef(!1),F=e=>u(e,"MM/DD/YYYY"),B=()=>C.format("YYYY"),G=()=>C.format("M");r.useEffect(()=>{Q(),J(m)},[]),r.useEffect(()=>{J(i)},[i]),r.useEffect(()=>{de()},[C]),r.useEffect(()=>{if(I.month()===C.month()&&I.year()===C.year()&&!X(I))return;const e=Z(C)||C.date(1);e.isSame(I,"day")||O(e)},[C,I]),r.useEffect(()=>{Q()},[p,b]);const J=e=>{if(""===e)return;let r;if("DD/MM/YYYY"===x.format){const t=e.split("/");if(3===t.length){const[e,a,n]=t;r=u(`${n}-${a}-${e}`)}else r=u(e)}else if("MM/DD/YYYY"===x.format){const t=e.split("/");if(3===t.length){const[e,a,n]=t;r=u(`${n}-${e}-${a}`)}else r=u(e)}else r=u(e,x.format,!0);r.isValid()&&(R(r),E(r),O(r),Y&&P(r))},Q=()=>{W(x)},W=e=>{A(e),N(e.weekdaysShort),S(e.firstDay)},X=e=>!!y&&y(e),Z=e=>{const r=e.daysInMonth();for(let t=1;t<=r;t++){const r=e.date(t);if(!X(r))return r}return null},ee=e=>e.hour(L.hour()).minute(L.minute()).second(D?L.second():0).millisecond(0),re=e=>{f&&f({localizated:e.format(x.format),global:Y?e.format("YYYY-MM-DDTHH:mm:ss"):e.format("YYYY-MM-DD")})},te=e=>{O(e),Y?R(ee(e)):re(e)},ae=e=>{P(e);const r=($||I||(k?k():u())).hour(e.hour()).minute(e.minute()).second(D?e.second():0).millisecond(0);R(r),$||O(r)},ne=()=>{const e=k?k():u();P(e),R(e),E(e),O(e)},se=()=>re(ee($||I)),oe=e=>{let r=null,t=1;switch(e.key){case"ArrowLeft":r=I.subtract(1,"day"),t=-1;break;case"ArrowRight":r=I.add(1,"day"),t=1;break;case"ArrowUp":r=I.subtract(7,"day"),t=-1;break;case"ArrowDown":r=I.add(7,"day"),t=1;break;case"Home":r=I.startOf("week"),t=1;break;case"End":r=I.endOf("week"),t=-1;break;case"PageUp":r=I.subtract(1,"month"),t=-1;break;case"PageDown":r=I.add(1,"month"),t=1;break;default:return}e.preventDefault();let a=0;for(;r&&X(r)&&a<366;)r=r.add(t,"day"),a++;r&&!X(r)&&(U.current=!0,O(r),r.month()===C.month()&&r.year()===C.year()||E(r))};r.useEffect(()=>{if(!U.current)return;const e=T.current,r=e?.querySelector(`[data-itd-date="${I.format("YYYY-MM-DD")}"]:not([disabled])`)||e?.querySelector(".itd-calendar-day:not([disabled])")||e?.closest(".itd-calendar")?.querySelector(".itd-calendar-middle-month");r&&(U.current=!1,r.focus())},[I,H]),r.useEffect(()=>{if(!_.current)return;let e=null;"months"===H?e=z.current?.querySelector(".itd-calendar-month-current"):"years"===H&&(e=V.current?.querySelector(".itd-calendar-year-current")),e&&(_.current=!1,e.focus())},[C,H]);const de=()=>{const r=t.default(Number(G()),Number(B()),M);let n=[];const s=k?k():u();for(let t=0;t<r.length;t++){const o=F(r[t]);let d={date:o,handleClick:te};o.isSame(s,"day")&&(d.today=!0),$&&o.isSame($,"day")&&(d.selected=!0),o.format("M")===G()&&(d.current=!0),X(o)&&(d.disabled=!0),n.push(e.jsx(a.default,{...d,focusable:o.isSame(I,"day"),children:o.format("D")},r[t]))}return n},le=()=>{let r=[];for(let t=0;t<g.length;t++)r.push(e.jsx("div",{children:e.jsx("span",{children:g[t]})},t));return r},ce=e=>{if("month"===e&&"days"!==H)return;const r="year"===e&&"years"===H?10:1;E(C.clone().subtract(r,e))},ue=e=>{if("month"===e&&"days"!==H)return;const r="year"===e&&"years"===H?10:1;E(C.clone().add(r,e))},ie=()=>{_.current=!0,K("months")},me=()=>{_.current=!0,K("years")},he=e=>{const r=C.month();let t=r;switch(e.key){case"ArrowLeft":t=Math.max(0,r-1);break;case"ArrowRight":t=Math.min(11,r+1);break;case"ArrowUp":t=Math.max(0,r-3);break;case"ArrowDown":t=Math.min(11,r+3);break;default:return}e.preventDefault(),t!==r&&(_.current=!0,E(C.clone().month(t)))},fe=e=>{const r=C.year();let t=r;switch(e.key){case"ArrowLeft":t=r-1;break;case"ArrowRight":t=r+1;break;case"ArrowUp":t=r-4;break;case"ArrowDown":t=r+4;break;default:return}e.preventDefault(),t!==r&&(_.current=!0,E(C.clone().year(t)))},ye=e=>{"Escape"!==e.key&&"Esc"!==e.key||"days"!==H&&(e.stopPropagation(),U.current=!0,K("days"))},be=()=>{const r=q?.months||[];return e.jsx("div",{className:"itd-calendar-months",ref:z,role:"grid",onKeyDown:he,children:r.map((r,t)=>e.jsx("button",{type:"button",role:"gridcell","aria-selected":C.month()===t,className:"itd-calendar-month"+(C.month()===t?" itd-calendar-month-current":"")+($?.year()===C.year()&&$?.month()===t?" itd-calendar-month-selected":""),tabIndex:C.month()===t?0:-1,onClick:()=>{return e=t,U.current=!0,E(C.clone().month(e)),void K("days");var e},children:r},t))})},je=()=>{const r=10*Math.floor(C.year()/10),t=Array.from({length:12},(e,t)=>r-1+t);return e.jsx("div",{className:"itd-calendar-years",ref:V,role:"grid",onKeyDown:fe,children:t.map(t=>e.jsx("button",{type:"button",role:"gridcell","aria-selected":C.year()===t,className:"itd-calendar-year"+(C.year()===t?" itd-calendar-year-current":"")+($?.year()===t?" itd-calendar-year-selected":"")+(t<r||t>r+9?" itd-calendar-year-outside":""),tabIndex:C.year()===t?0:-1,onClick:()=>{return e=t,_.current=!0,E(C.clone().year(e)),void K("months");var e},children:t},t))})},ke=r.useMemo(()=>{let e="itd-calendar";return""!==h&&(e+=" "+h),e},[h]);return q?e.jsxs("div",{className:ke,onKeyDown:ye,"data-has-time":Y||void 0,"data-compact":w?"":void 0,children:[e.jsx(n.default,{month:q?.months[Number(G())-1],year:B(),onPrevYear:()=>ce("year"),onPrevMonth:()=>ce("month"),onNextYear:()=>ue("year"),onNextMonth:()=>ue("month"),onClickMonth:ie,onClickYear:me,viewMode:H,decadeLabel:(()=>{if("years"!==H)return"";const e=10*Math.floor(C.year()/10);return`${e}-${e+9}`})()}),e.jsx("div",{className:"itd-calendar-separator"}),e.jsxs("div",{className:"itd-calendar-body",children:[e.jsxs("div",{className:"itd-calendar-main",children:["days"===H&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"itd-calendar-weekdays",children:le()}),e.jsx("div",{ref:T,className:"itd-calendar-days",role:"grid",onKeyDown:oe,children:de()})]}),"months"===H&&be(),"years"===H&&je()]}),Y&&"days"===H&&e.jsx(s.default,{value:L,onChange:ae,showSecond:D,hourStep:v.hourStep,minuteStep:v.minuteStep,secondStep:v.secondStep,hourLabel:x.hour??"Hour",minuteLabel:x.minute??"Minute",secondLabel:x.second??"Second"})]}),Y&&e.jsxs("div",{className:"itd-calendar-footer",children:[e.jsx(o.default,{variant:"link",size:"small",className:"itd-calendar-now",onClick:ne,children:x.now??"Now"}),e.jsx(o.default,{variant:"default",size:"small",className:"itd-calendar-ok",onClick:se,children:x.ok??"OK"})]})]}):null};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");require("../../helpers/datetime/dayjsSetup.js");var a=require("../dates.js"),n=require("../day/Day.js"),r=require("../header/Header.js"),s=require("../time/Time.js"),d=require("../../button/index.js"),o=require("dayjs");exports.default=({value:l,openNonce:i,activeSegment:c,activeSegmentNonce:u=0,liveStart:m=null,liveEnd:h=null,liveEdge:f="start",liveNonce:y=0,onChange:v,onActiveSegmentChange:g,disabledDate:S,locale:b,showTime:p=!1,getNow:j,presets:x,dual:k=!0,compact:N=!1,className:Y=""})=>{const w=!!p,M="object"==typeof p?p:{},O=!!M.showSecond,[E,D]=t.useState(()=>j().startOf("month")),[C,q]=t.useState(null),[A,R]=t.useState(null),[P,L]=t.useState(null),[$,B]=t.useState(null),[H,F]=t.useState("start"),[K,T]=t.useState("start"),[U,_]=t.useState(()=>j()),[z,G]=t.useState("days"),[I,J]=t.useState(()=>j().startOf("month")),[Q,V]=t.useState("left"),W=t.useRef(null),X=t.useRef(!1),Z=E.add(1,"month"),ee=(e,t,a)=>"end"===e?k&&a?a.subtract(1,"month").startOf("month"):(a||t||j()).startOf("month"):(t||a||j()).startOf("month");t.useEffect(()=>{const[e,t]=l;q(e),R(t),L(null),B(null),G("days"),F("end"===c&&e?"end":"start"),T("end"===c&&e?"end":"start");D(ee("end"===c?"end":"start",e,t)),_("end"===c&&t||e||j())},[i]),t.useEffect(()=>{c&&("end"===c&&C&&F("end"),"start"===c&&F("start"))},[c]),t.useEffect(()=>{if(0===u)return;const e="end"===c?"end":"start";T(e),G("days");const t="end"===e&&A||C;t&&(D(ee(e,C,A)),_(t))},[u]),t.useEffect(()=>{if(0===y)return;q(m),R(h),T(f),G("days");const e=m&&h?"start":f,t="end"===e?h||m:m||h;t&&(D(ee(e,m,h)),_(t))},[y]);const te=e=>!!S&&S(e),ae=(e,t)=>{if(!w)return e.startOf("day");const a="start"===t?C:A;return a?e.hour(a.hour()).minute(a.minute()).second(O?a.second():0).millisecond(0):"start"===t?e.startOf("day"):e.hour(23).minute(59).second(O?59:0).millisecond(0)},ne=e=>{if(_(e),w){if("end"===K){const t=ae(e,"end");R(t),v({start:C,end:t},!1)}else{const t=ae(e,"start");q(t),v({start:t,end:A},!1)}return}if("start"===H||!C){const t=ae(e,"start");return q(t),R(null),F("end"),void v({start:t,end:null},!1)}let t=C,a=ae(e,"end");if(a.isBefore(t,"day")){const n=t;t=ae(e,"start"),a=ae(n,"end")}q(t),R(a),F("start"),L(null),v({start:t,end:a},!0)},re=e=>{"end"===H&&C&&!A&&L(e)},se="start"===K?!!C:!!C&&!!A,de=e=>{if(!C||!A)return!1;const t=w?"minute":"day";return e.value[0].isSame(C,t)&&e.value[1].isSame(A,t)},[oe,le]=$||(C&&!A&&P&&"end"===H?P.isBefore(C,"day")?[P,C]:[C,P]:C&&A?C.isAfter(A,"day")?[A,C]:[C,A]:[C||A,null]),ie="end"===H?A:C;t.useEffect(()=>{if(!X.current)return;const e=W.current?.querySelector(`[data-itd-date="${U.format("YYYY-MM-DD")}"]:not([disabled])`);e&&(X.current=!1,e.focus())},[U,E]);const ce=(t,s)=>{const d=a.default(t.month()+1,t.year(),b.firstDay),l=j();return e.jsxs("div",{className:"itd-calendar-range-panel",children:[e.jsx(r.default,{month:b.months[t.month()],year:String(t.year()),viewMode:"days",hideNext:k&&"left"===s,hidePrev:k&&"right"===s,onClickMonth:()=>(e=>{V(e),J("left"===e?E:Z),G("months")})(s),onClickYear:()=>(e=>{V(e),J("left"===e?E:Z),G("years")})(s),onPrevYear:()=>D(E.subtract(1,"year")),onPrevMonth:()=>D(E.subtract(1,"month")),onNextMonth:()=>D(E.add(1,"month")),onNextYear:()=>D(E.add(1,"year"))}),e.jsx("div",{className:"itd-calendar-weekdays",children:b.weekdaysShort.map((t,a)=>e.jsx("div",{children:e.jsx("span",{children:t})},a))}),e.jsx("div",{className:"itd-calendar-days",role:"grid",children:d.map(a=>{const r=o(a,"MM/DD/YYYY"),d=r.month()===t.month(),i=d?(e=>{if(!oe)return{rangeStart:!1,rangeEnd:!1,inRange:!1};if(!le){const t=e.isSame(oe,"day");return{rangeStart:t,rangeEnd:t,inRange:!1}}return{rangeStart:e.isSame(oe,"day"),rangeEnd:e.isSame(le,"day"),inRange:e.isAfter(oe,"day")&&e.isBefore(le,"day")}})(r):{rangeStart:!1,rangeEnd:!1,inRange:!1};return e.jsx(n.default,{date:r,today:r.isSame(l,"day"),current:d,disabled:te(r),focusable:r.isSame(U,"day"),handleClick:ne,onHover:re,rangeStart:i.rangeStart,rangeEnd:i.rangeEnd,inRange:i.inRange,children:r.format("D")},`${s}-${t.format("YYYY-MM")}-${a}`)})})]})},ue=("end"===K?A:C)||j();return e.jsxs("div",{className:`itd-calendar itd-calendar-range ${Y}`.trim(),"data-compact":N?"":void 0,children:[x.length>0&&e.jsx("div",{className:"itd-calendar-range-presets",onMouseLeave:()=>B(null),children:x.map((t,a)=>e.jsx("button",{type:"button",className:"itd-calendar-range-preset","data-active":de(t)||void 0,onClick:()=>(e=>{const[t,a]=e.value;q(t),R(a),F("start"),T("end"),L(null),B(null),D(t.startOf("month")),v({start:t,end:a},!0)})(t),onMouseEnter:()=>"days"===z&&B(t.value),onFocus:()=>"days"===z&&B(t.value),onBlur:()=>B(null),children:t.label},a))}),e.jsx("div",{className:"itd-calendar-range-calendars",children:"days"===z?e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:W,onKeyDown:e=>{if("Enter"===e.key||" "===e.key)return e.preventDefault(),void(te(U)||ne(U));let t=null,a=1;switch(e.key){case"ArrowLeft":t=U.subtract(1,"day"),a=-1;break;case"ArrowRight":t=U.add(1,"day"),a=1;break;case"ArrowUp":t=U.subtract(7,"day"),a=-1;break;case"ArrowDown":t=U.add(7,"day"),a=1;break;case"Home":t=U.startOf("week"),a=1;break;case"End":t=U.endOf("week"),a=-1;break;case"PageUp":t=U.subtract(1,"month"),a=-1;break;case"PageDown":t=U.add(1,"month"),a=1;break;default:return}e.preventDefault();let n=0;for(;t&&te(t)&&n<366;)t=t.add(a,"day"),n++;if(!t||te(t))return;X.current=!0,_(t),L(t);const r=k?Z:E;t.isBefore(E.startOf("month"),"day")?D(t.startOf("month")):t.isAfter(r.endOf("month"),"day")&&D((k?t.subtract(1,"month"):t).startOf("month"))},onMouseLeave:()=>"end"===H&&L(null),children:e.jsxs("div",{className:"itd-calendar-range-panels",children:[ce(E,"left"),k&&ce(Z,"right"),w&&e.jsx(s.default,{value:ue,onChange:e=>{const t=t=>t.hour(e.hour()).minute(e.minute()).second(O?e.second():0).millisecond(0);if("end"===K){const e=t(A||U);R(e),v({start:C,end:e},!1)}else{const e=t(C||U);q(e),v({start:e,end:A},!1)}},showSecond:O,hourStep:M.hourStep,minuteStep:M.minuteStep,secondStep:M.secondStep,hourLabel:b.hour??"Hour",minuteLabel:b.minute??"Minute",secondLabel:b.second??"Second",fill:!0})]})}),w&&e.jsx("div",{className:"itd-calendar-range-footer",children:e.jsx(d.default,{variant:"default",size:"small",className:"itd-calendar-ok",onClick:()=>{if("start"===K){if(!C)return;return void(e=>{T(e),G("days");const t=A||C;t&&(D(ee(e,C,A)),_(t)),g?.(e)})("end")}if(!C||!A)return;let e=C,t=A;t.isBefore(e,w?"minute":"day")&&(e=A,t=C),v({start:e,end:t},!0)},disabled:!se,children:b.ok??"OK"})})]}):"months"===z?e.jsxs("div",{className:"itd-calendar-range-picker-panel","data-dual":k||void 0,children:[e.jsx(r.default,{viewMode:"months",year:String(I.year()),onClickYear:()=>G("years"),onPrevYear:()=>J(I.subtract(1,"year")),onNextYear:()=>J(I.add(1,"year"))}),e.jsx("div",{className:"itd-calendar-months",children:b.months.map((t,a)=>{const n=I.month()===a,r=ie?.year()===I.year()&&ie?.month()===a;return e.jsx("button",{type:"button",className:"itd-calendar-month"+(n?" itd-calendar-month-current":"")+(r?" itd-calendar-month-selected":""),onClick:()=>(e=>{const t=I.month(e).startOf("month");D("right"===Q?t.subtract(1,"month"):t),G("days")})(a),children:t},a)})})]}):(()=>{const t=10*Math.floor(I.year()/10),a=Array.from({length:12},(e,a)=>t-1+a);return e.jsxs("div",{className:"itd-calendar-range-picker-panel","data-dual":k||void 0,children:[e.jsx(r.default,{viewMode:"years",year:String(I.year()),decadeLabel:`${t}-${t+9}`,onPrevYear:()=>J(I.subtract(10,"year")),onNextYear:()=>J(I.add(10,"year"))}),e.jsx("div",{className:"itd-calendar-years",children:a.map(a=>{const n=I.year()===a,r=ie?.year()===a;return e.jsx("button",{type:"button",className:"itd-calendar-year"+(n?" itd-calendar-year-current":"")+(r?" itd-calendar-year-selected":"")+(a<t||a>t+9?" itd-calendar-year-outside":""),onClick:()=>{return e=a,J(I.year(e)),void G("months");var e},children:a},a)})})]})})()})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");const l=(e,t)=>{const l=t>0?t:1,a=[];for(let t=0;t<e;t+=l)a.push(t);return a},a=({values:l,selected:a,ariaLabel:r,onSelect:n,fill:s})=>{const o=t.useRef(null),c=t.useRef(null);t.useEffect(()=>{const e=o.current,t=c.current;if(!e||!t)return;const l=t.offsetTop,a=l+t.offsetHeight;l<e.scrollTop?e.scrollTop=l:a>e.scrollTop+e.clientHeight&&(e.scrollTop=a-e.clientHeight)},[a]);return e.jsx("div",{ref:o,role:"listbox","aria-label":r,className:"itd-calendar-time-column","data-fill":s||void 0,onKeyDown:e=>{const t=l.indexOf(a),r=-1!==t?t:l.reduce((e,t,r)=>Math.abs(t-a)<Math.abs(l[e]-a)?r:e,0);let s=r;switch(e.key){case"ArrowDown":s=Math.min(l.length-1,r+1);break;case"ArrowUp":s=Math.max(0,r-1);break;case"Home":s=0;break;case"End":s=l.length-1;break;default:return}e.preventDefault();const c=l[s];var i;c!==a&&n(c),i=c,requestAnimationFrame(()=>{o.current?.querySelector(`[data-value="${i}"]`)?.focus({preventScroll:!0})})},children:l.map(t=>{const l=t===a;return e.jsx("button",{ref:l?c:void 0,type:"button",role:"option","aria-selected":l,"aria-label":`${r} ${t}`,"data-value":t,tabIndex:l?0:-1,className:"itd-calendar-time-cell"+(l?" itd-calendar-time-cell-selected":""),onClick:()=>n(t),children:(s=t,String(s).padStart(2,"0"))},t);var s})})},r=({value:t,onChange:r,showSecond:n=!1,hourStep:s=1,minuteStep:o=1,secondStep:c=1,hourLabel:i="Hour",minuteLabel:u="Minute",secondLabel:d="Second",fill:f=!1})=>{const m=l(24,s),b=l(60,o),h=l(60,c);return e.jsxs("div",{className:"itd-calendar-time",children:[e.jsx(a,{values:m,selected:t.hour(),ariaLabel:i,onSelect:e=>r(t.hour(e)),fill:f}),e.jsx(a,{values:b,selected:t.minute(),ariaLabel:u,onSelect:e=>r(t.minute(e)),fill:f}),n&&e.jsx(a,{values:h,selected:t.second(),ariaLabel:d,onSelect:e=>r(t.second(e)),fill:f})]})};r.displayName="Time",exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),a=require("../spin/index.js"),i=require("../enums/enum.js"),s=require("../context/FormDefaultsContext.js"),t=require("../utils/cn.js");const d=({children:d,className:n="",variant:c,updating:l=!1})=>{const u=s.useDefaultVariant(c,i.ComponentVariants.DEFAULT),o=r.useMemo(()=>{let e="itd-card flex flex-col relative overflow-hidden";return u&&(e+=` itd-card-${u}`),t.cn(e,n)},[u,n]);return e.jsxs("div",{className:o,inert:l||void 0,"aria-busy":l||void 0,children:[e.jsx("div",{className:"itd-card-body",children:d}),l&&e.jsx("div",{className:"itd-card-overlay",children:e.jsx(a.default,{updating:!0,className:"itd-card-spin"})})]})};d.displayName="Card",exports.Card=d;
|