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B,SAAU3B,EAAQ,IAAM,OACxB4B,QAAS5B,EAAQ,OAAS,IAC1BF,KAAMA,EACN+B,YAAaA,IAAM9B,GAAQ,GAC3B+B,MAAI,EAAAtG,SAAA,CAEHsE,IACCrE,EAAAA,EAAAA,KAAA,OAAKiB,UAAU,sBAAqBlB,UAClCC,EAAAA,EAAAA,KAAC0F,EAAAA,EAAU,CACTC,IAAI,UACJC,KAAK,QACLC,MAAM,UACNhE,KAAMC,EAAAA,GAAUwE,IAChBR,QAASA,IAAMxB,GAAQ,QAI3BJ,IACAlE,EAAAA,EAAAA,KAAA,OAAKiB,UAAU,cAAalB,UAC1BC,EAAAA,EAAAA,KAACW,EAAAA,EAAY,CACXD,eAAa,EACbG,iBAAkBiD,EAAQjD,sBAKhCb,EAAAA,EAAAA,KAACuG,EAAAA,SAAQ,CAACC,SAAU,KAAKzG,UACvBC,EAAAA,EAAAA,KAAC+D,EAAe,CACdI,WAAYG,EACZA,QAASH,EACTE,KAAMA,EACAP,mBAMlB,C","sources":["newcomponents/UI/SwiperSlider/Skeleton/HeaderArrowsSkeleton.tsx","components/AtoZMenuContent/Skeleton/index.tsx","elements/AtoZMenu/index.tsx"],"sourcesContent":["import { ReactElement } from 'react';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport '../../../../theme/swiper.css';\nimport { Skeleton } from 'newcomponents/UI/Skeleton';\nimport '../index.less';\n\nif (SpringConfigs.IS_RTL) {\n  import('./../rtl.less');\n}\n\nexport const HeaderArrowsSkeleton = (): ReactElement => {\n  return (\n    <div\n      style={{\n        width: '100%',\n        display: 'flex',\n        alignItems: 'center',\n        justifyContent: 'space-between'\n      }}\n    >\n      <Skeleton.Input\n        style={{\n          minWidth: 100,\n          width: 100,\n          height: 14,\n          borderRadius: 4\n        }}\n        active\n      />\n      <div style={{ display: 'flex', gap: 12 }}>\n        <Skeleton.Button\n          style={{\n            height: 32,\n            width: 32,\n            minWidth: 32,\n            borderRadius: 50\n          }}\n          active\n        />\n        <Skeleton.Button\n          style={{\n            height: 32,\n            width: 32,\n            minWidth: 32,\n            borderRadius: 50\n          }}\n          active\n        />\n      </div>\n    </div>\n  );\n};\n","import { ReactElement } from 'react';\nimport { EIconSize } from 'utils/constants/app/ui';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { Skeleton } from 'newcomponents/UI/Skeleton';\nimport { HeaderArrowsSkeleton } from 'newcomponents/UI/SwiperSlider/Skeleton/HeaderArrowsSkeleton';\nimport { CenteredSpin } from '../Spin';\nimport './index.less';\n\ntype TAtoZSkeletonProps = {\n  includeSearch: boolean;\n  excludeSpin?: boolean;\n  sliderArrowsAToZ?: boolean;\n};\n\nconst atoZSkeletonDefaultProps = {\n  includeSearch: false\n} as TAtoZSkeletonProps;\n\nexport const AtoZSkeleton = ({\n  includeSearch = false,\n  excludeSpin,\n  sliderArrowsAToZ\n}: TAtoZSkeletonProps = atoZSkeletonDefaultProps): ReactElement => {\n  return (\n    <div className=\"atoz__skeleton__wrapper\">\n      {includeSearch && (\n        <div className=\"atoz__skeleton__search\">\n          <Skeleton\n            title={{\n              style: {\n                height: 40,\n                width: '100%',\n                margin: '0',\n                borderRadius: '4px'\n              }\n            }}\n            paragraph={false}\n            active\n          />\n\n          {SpringConfigs.THEME_SWITCHER && (\n            <div className=\"atoz__skeleton__themeSwitcher\">\n              <Skeleton\n                title={{\n                  style: {\n                    height: 32,\n                    width: 60,\n                    margin: 0,\n                    borderRadius: 40\n                  }\n                }}\n                paragraph={false}\n                active\n              />\n            </div>\n          )}\n        </div>\n      )}\n\n      {sliderArrowsAToZ ? (\n        <div className=\"atoz__skeleton__sliderArrows\">\n          <HeaderArrowsSkeleton />\n        </div>\n      ) : null}\n\n      <div className=\"atoz__skeleton__tabs\">\n        {Array.from({ length: 4 }, (v, i) => i).map(key => (\n          <div key={key} className=\"atoz__skeleton__singleTab\">\n            <Skeleton.Avatar size={EIconSize._24} active />\n            <Skeleton\n              title={{ style: { height: 9, width: 40, margin: '5px auto' } }}\n              paragraph={false}\n              active\n            />\n          </div>\n        ))}\n      </div>\n      {!excludeSpin && <CenteredSpin />}\n    </div>\n  );\n};\n","import { ReactElement, Suspense, useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport cc from 'classcat';\nimport { EIconSize } from 'utils/constants/app/ui';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { fireEvent } from 'utils/generic/event-bus';\nimport { lazy } from 'utils/generic/lazy';\nimport { TAtoZMenuConfigs } from 'interfaces/generic';\nimport { ERacingSportSideBarTabs } from 'interfaces/racing';\nimport { ESearchElementEventBusActionTypes } from 'newelements/SearchElement/partials/types';\nimport { AtoZSkeleton } from 'components/AtoZMenuContent/Skeleton';\nimport { GlobalIcon } from 'components/GlobalIcon';\nimport { Popup } from 'components/Popup';\nimport { getHeaderState } from 'store/selectors/app-data';\nimport { getQuickSingleBetslipOpen } from 'store/selectors/betslip';\nimport './index.less';\n\nif (SpringConfigs.IS_RTL) {\n  import('./rtl.less');\n}\n\nexport const AtoZMenuDefaultConfigs = {\n  fit: 'cover',\n  aToZRacingSportsList: [ERacingSportSideBarTabs.All],\n  languages: [\n    {\n      prefix: 'en',\n      title: 'English',\n      region: 'United States',\n      language: 'en-us',\n      urlPrefix: `${window.location.origin}/en`\n    },\n    {\n      prefix: 'ru',\n      title: 'Russian',\n      region: 'Worldwide',\n      language: 'ru',\n      urlPrefix: `${window.location.origin}/ru`\n    },\n    {\n      prefix: 'mn',\n      title: 'Mongolian',\n      region: 'Worldwide',\n      language: 'mn',\n      urlPrefix: `${window.location.origin}/mn`\n    }\n  ],\n  showLangSwitcher: true,\n  selectCurrentPage: true,\n  categoryIds: '',\n  moduleId: '521',\n  type: 'live',\n  category: 'sport',\n  limit: 5,\n  casinoGamesLimit: 16,\n  showCategoryName: 1,\n  outRightEnabledAToZ: true,\n  todayEventsEnabledAToZ: true,\n  boostedOddsEnabledAToZ: true,\n  multiplesEnabledAToZ: true,\n  sliderArrowsAToZ: true,\n  couponBuilderAToZ: true,\n  BBAToZ: true\n};\n\ntype TAtoZMenuProps = {\n  configs?: TAtoZMenuConfigs;\n};\n\nconst atoZMenuDefaultProps = {\n  configs: AtoZMenuDefaultConfigs\n};\n\nconst { AtoZMenuContent } = lazy(\n  () =>\n    import(\n      /* webpackChunkName: \"a-to-z-menu-content\" */ 'components/AtoZMenuContent'\n    )\n);\n\nexport const AtoZMenu = ({\n  configs = AtoZMenuDefaultConfigs\n}: TAtoZMenuProps = atoZMenuDefaultProps): ReactElement => {\n  const [visible, setVisible] = useState(false);\n  const [open, setOpen] = useState(false);\n  const [isRtl] = useState(SpringConfigs.IS_RTL);\n  const { isVisible: isHeaderVisible } = useSelector(getHeaderState);\n  const isQuickSingleBetslipOpen = useSelector(getQuickSingleBetslipOpen);\n\n  const chunkLoader = () => {\n    import(\n      /* webpackChunkName: \"a-to-z-default-pages\" */ 'components/AtoZMenuContent/DefaultPages'\n    );\n    import(\n      /* webpackChunkName: \"a-to-z-data-pages\" */ 'components/AtoZMenuContent/DataPages'\n    );\n    import(\n      /* webpackChunkName: \"a-to-z-menu-content\" */ 'components/AtoZMenuContent'\n    );\n    import(\n      /* webpackChunkName: \"language-switcher\" */ 'components/Shared/LanguageSwitcher'\n    );\n    import(\n      /* webpackChunkName: \"sport-page\" */ 'components/AtoZMenuContent/SportPage'\n    );\n    import(\n      /* webpackChunkName: \"a-to-z-sport-plain-view\" */ 'components/AtoZMenuContent/SportListViews/PlainView'\n    );\n  };\n\n  useEffect(() => {\n    if (!location.hash) {\n      if (open) {\n        document.documentElement.style.overflow = 'hidden';\n      } else {\n        document.documentElement.style.overflow = 'visible';\n      }\n    }\n\n    if (!open) {\n      fireEvent({ key: ESearchElementEventBusActionTypes.RESET });\n    }\n  }, [open]);\n\n  useEffect(() => {\n    const openAToZ = () => {\n      chunkLoader();\n      setOpen(true);\n    };\n\n    window.openAZmenu = openAToZ;\n  }, []);\n\n  return (\n    <>\n      <GlobalIcon\n        lib=\"generic\"\n        name=\"menuBurger\"\n        theme=\"default\"\n        size={EIconSize._24}\n        className=\"AtoZMenu__menu-burger-icon\"\n        onClick={() => {\n          chunkLoader();\n          setOpen(true);\n        }}\n      />\n      <Popup\n        animationType={isRtl ? 'toLeft' : 'toRight'}\n        className={cc([\n          'burger-menu-drawer',\n          {\n            'burger-menu-drawer--withFixedHeader': isHeaderVisible,\n            'overlay-index': isQuickSingleBetslipOpen\n          }\n        ])}\n        posRight={isRtl ? '0' : '40px'}\n        posLeft={isRtl ? '40px' : '0'}\n        open={open}\n        onMaskClick={() => setOpen(false)}\n        mask\n      >\n        {open && (\n          <div className=\"AtoZ-closeIconBlock\">\n            <GlobalIcon\n              lib=\"generic\"\n              name=\"close\"\n              theme=\"default\"\n              size={EIconSize._18}\n              onClick={() => setOpen(false)}\n            />\n          </div>\n        )}\n        {!visible && (\n          <div className=\"a-z-loading\">\n            <AtoZSkeleton\n              includeSearch\n              sliderArrowsAToZ={configs.sliderArrowsAToZ}\n            />\n          </div>\n        )}\n\n        <Suspense fallback={null}>\n          <AtoZMenuContent\n            setVisible={setOpen}\n            setOpen={setVisible}\n            open={open}\n            {...{ configs }}\n          />\n        </Suspense>\n      </Popup>\n    </>\n  );\n};\n"],"names":["SpringConfigs","IS_RTL","HeaderArrowsSkeleton","_jsxs","style","width","display","alignItems","justifyContent","children","_jsx","Skeleton","Input","minWidth","height","borderRadius","active","gap","Button","atoZSkeletonDefaultProps","includeSearch","AtoZSkeleton","excludeSpin","sliderArrowsAToZ","arguments","length","undefined","className","title","margin","paragraph","THEME_SWITCHER","Array","from","v","i","map","key","Avatar","size","EIconSize","_24","CenteredSpin","AtoZMenuDefaultConfigs","fit","aToZRacingSportsList","ERacingSportSideBarTabs","All","languages","prefix","region","language","urlPrefix","window","location","origin","showLangSwitcher","selectCurrentPage","categoryIds","moduleId","type","category","limit","casinoGamesLimit","showCategoryName","outRightEnabledAToZ","todayEventsEnabledAToZ","boostedOddsEnabledAToZ","multiplesEnabledAToZ","couponBuilderAToZ","BBAToZ","atoZMenuDefaultProps","configs","AtoZMenuContent","lazy","AtoZMenu","visible","setVisible","useState","open","setOpen","isRtl","isVisible","isHeaderVisible","useSelector","getHeaderState","isQuickSingleBetslipOpen","getQuickSingleBetslipOpen","chunkLoader","useEffect","hash","document","documentElement","overflow","fireEvent","ESearchElementEventBusActionTypes","RESET","openAZmenu","openAToZ","_Fragment","GlobalIcon","lib","name","theme","onClick","Popup","animationType","cc","posRight","posLeft","onMaskClick","mask","_18","Suspense","fallback"],"sourceRoot":""}