{"version":3,"sources":["images/icons/BellSimpleNotification.svg","images/icons/MagnifyingGlass.svg","containers/searchBar/NavbarwithoutLogin/style.js","containers/searchBar/NavbarwithoutLogin/menu.js","containers/searchBar/NavbarwithoutLogin/index.js","containers/searchBar/index.js","utils/getHeaderTitle.js"],"names":["SearchBarContainer","styled","div","props","opacity","SearchBarTop","theme","gray6","primary2","ButtonRegister","Button","ButtonLogin","TooltipStyleNav","TypoGradientNav","Typography","NotiIcon","white","isSamePath","css","BGcarousel","Icon","SlidebarDetail","id","label","link","icon","SearchLandingWhite","activeIcon","SearchLandingBlue","StudentLandingWhite","StudentLandingBlue","TeacherLandingWhite","TeacherLandingBlue","Language","LanguageInactive","LoginLandingWhite","LoginLandingBlue","Navbar","isOpacity","useState","setOpacity","opacityMobile","setOpacityMobile","toggle","setToggle","pathname","get","location","useEffect","handleScroll","position","window","scrollY","currentOpacity","Math","max","min","currentOpacityMobile","addEventListener","removeEventListener","renderLogo","to","type","margin","alt","width","style","alignItems","nowrap","searchbarLandingPage","pathLandingPage","justifyContent","marginLeft","fontSize","open","onSetOpen","pullLeft","sidebar","DrawerProfile","onRequestClose","menu","styles","root","overflow","zIndex","overflowY","overlay","content","display","padding","onClick","src","ListIcon","marginBottom","minWidth","Modal","setAppElement","container","top","bottom","right","left","options","value","SearchBar","state","showProfileDrawer","showNotiPopup","showRolePopup","showSearchMenu","showGoback","showLanguage","showChangeRoleIntro","handleTogglePopup","key","setState","prevState","handleToggleChangeRole","toggleLanguage","toggleDrawer","prev","getDefaultSchoolId","appUser","defaultSchool","_get","find","item","isDefault","renderRole","isTeacher","match","isTeacherPath","url","startsWith","placement","trigger","className","tooltipShown","onVisibilityChange","tooltip","menus","handleToggle","RoleSelector","isEmpty","renderMenu","handleLanguageChange","updateLocale","renderLanguage","SocialIcon","locale","toUpperCase","onOutsite","handleChange","searchable","renderSearchInput","SearchInput","isHeaderHider","regexCourse","RegExp","test","matchMedia","matches","getPosition","onStart","a","updateProfile","schoolIntro","payload","skipedChangeRole","Error","onExit","innerWidth","onBeforeExit","openModal","size","onOpenShowInstructor","this","query","URLSearchParams","search","JSON","parse","localStorage","getItem","ACCESS_TOKEN","fetchMe","params","schoolId","getNotifications","learnerLastLogin","isLiff","showInstructor","onCloseShowInstructor","sidebarOpen","header","getHeaderTitle","isFeedPage","paramsUrl","split","console","log","isOpen","isHide","isShowShadow","h3","title","searchbar","path","NotificationIcon","count","getImageUrl","displayWidth","SearchIcon","marginRight","onClose","Component","selection","store","select","models","AppUser","connect","Liff","Notification","Sidebar","ModalState","openProfileMenu","Intro","changeRole","dispatch","withRouter"],"mappings":"6dAAe,MAA0B,mDCA1B,MAA0B,4C,8FCMnCA,GAAqBC,WAAOC,IAAV,mbAQC,SAACC,GAAD,6DAC2BA,EAAMC,QADjC,iCACiED,EAAMC,QADvE,SAiBnBC,GAAeJ,WAAOC,IAAV,sjCAMN,SAACC,GAAD,OAAWA,EAAMG,MAAMC,SAOvB,SAACJ,GAAD,OAAWA,EAAMG,MAAME,YAyChB,qBAAGF,MAAkB,eAoBlCG,GAAiBR,mBAAOS,KAAPT,CAAH,sTAadU,GAAcV,mBAAOS,KAAPT,CAAH,2TAaXW,GAAkBX,mBAAOS,KAAPT,CAAH,yEAKfY,GAAkBZ,mBAAOa,KAAPb,CAAH,iQAoDfc,IA1Ced,mBAAOa,KAAPb,CAAH,mYAIPK,KAAMU,MAGJV,KAAMU,MAGUV,KAAMU,OAK/B,YACA,GADoB,EAAjBC,WAED,OAAOC,eAAP,4JAScjB,mBAAO,KAAPA,CAAH,8NACSkB,MAQHlB,mBAAOS,KAAPT,CAAH,iHAGTK,KAAMU,OAIAf,mBAAOmB,KAAPnB,CAAH,+D,yIC9KDoB,GAAiB,CAC5B,CACEC,GAAI,sBACJC,MAAO,SACPC,KAAM,wBACNC,KAAMC,KACNC,WAAYC,MAEd,CACEN,GAAI,kBACJC,MAAO,UACPC,KAAM,kBACNC,KAAMI,KACNF,WAAYG,MAEd,CACER,GAAI,kBACJC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EAAS,CAAEW,MAAO,kBAAmBvL,GAAI,gCAGvC,2BAA2ByI,KAAKgD,GAClCb,EAAS,CAAEW,MAAO,WAAYvL,GAAI,0BAGhC,2BAA2ByI,KAAKgD,GAClCb,EAAS,CAAEW,MAAO,WAAYvL,GAAI,4BAGhC,8BAA8ByI,KAAKgD,GACrCb,EAAS,CAAEW,MAAO,cAAevL,GAAI,+BAIhC4K","file":"static/js/204.ac33400c.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/BellSimpleNotification.e4841802.svg\";","export default __webpack_public_path__ + \"static/media/MagnifyingGlass.9c7d6b90.svg\";","import styled, { css } from 'styled-components'\nimport { Typography, Button, Icon } from 'components'\nimport { Col } from 'antd'\nimport BGcarousel from 'images/BGcarouselLanding.svg'\nimport theme from 'theme'\n\nconst SearchBarContainer = styled.div`\n display: flex;\n justify-content: space-between;\n height: 56px;\n width: 100%;\n position: fixed;\n top: 0;\n z-index: 5;\n /* background-image: ${(props) =>\n `linear-gradient(to right, rgba(108, 81, 254, ${props.opacity}), rgba(64, 177, 255, ${props.opacity}))`}; */\n background-color: #00b8e6;\n\n @media (max-width: 600px) {\n padding: 8px 16px;\n }\n\n @media (min-width: 601px) and (max-width: 1024px) {\n padding: 8px 32px;\n }\n\n @media (min-width: 1025px) {\n padding: 8px 144px;\n }\n`\n\nconst SearchBarTop = styled.div`\n flex: 1;\n display: flex;\n align-items: center;\n\n .notification-icon {\n fill: ${(props) => props.theme.gray6};\n width: 32px;\n height: 32px;\n margin-top: 12px;\n }\n\n .notification-icon:hover {\n fill: ${(props) => props.theme.primary2};\n }\n\n .row {\n display: flex;\n align-items: center;\n }\n\n > :first-child {\n margin-left: 0px;\n }\n\n .centre {\n display: flex;\n align-items: center;\n }\n\n .justify {\n justify-content: space-evenly;\n @media (max-width: 660px) {\n justify-content: flex-end;\n }\n }\n\n .full {\n flex: 1;\n }\n\n img:hover {\n cursor: pointer;\n }\n\n /* > :last-child:hover {\n cursor: pointer;\n } */\n\n @media (max-width: 1024px) {\n display: flex;\n justify-content: space-between;\n button {\n padding: 0px;\n font-size: ${({ theme }) => theme['text-xxs']};\n }\n\n img {\n width: 20px;\n height: 20px;\n }\n\n > :not(:last-child) {\n margin-right: 10px;\n }\n\n > :last-child {\n width: 30px;\n height: 30px;\n /* margin-right: 10px; */\n }\n }\n`\n\nconst ButtonRegister = styled(Button)`\n background-color: transparent;\n border-radius: 8px;\n border: 1px solid var(--black-white-100, #fff);\n width: 130px !important;\n height: 40px !important;\n justify-content: center;\n align-items: center;\n @media (max-width: 601px) {\n width: 90px !important;\n }\n`\n\nconst ButtonLogin = styled(Button)`\n background-color: white !important;\n border-radius: 8px;\n border: 1px solid var(--black-white-100, #fff);\n width: 130px !important;\n height: 40px !important;\n justify-content: center;\n align-items: center;\n @media (max-width: 601px) {\n width: 90px !important;\n }\n`\n\nconst TooltipStyleNav = styled(Button)`\n background: transparent;\n width: 50px;\n`\n\nconst TypoGradientNav = styled(Typography)`\n display: flex;\n justify-content: center;\n align-items: center;\n background: linear-gradient(90deg, #6c51fe, #40b1ff);\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n`\n\nconst TypoWhiteNav = styled(Typography)`\n display: flex;\n justify-content: center;\n align-items: center;\n color: ${theme.white};\n &:hover,\n &:focus {\n color: ${theme.white};\n text-decoration: underline;\n text-decoration-thickness: 2.5px;\n text-decoration-color: ${theme.white};\n text-underline-offset: 2px;\n text-shadow: rgba(0, 0, 0, 0.5) 0 4px 4px !important;\n font-weight: 600;\n }\n ${({ isSamePath }) => {\n if (isSamePath) {\n return css`\n text-shadow: rgba(0, 0, 0, 0.5) 0 4px 4px !important;\n font-weight: 700;\n line-height: 22px;\n `\n }\n }}\n`\n\nconst ColCarousel = styled(Col)`\n background-image: url(${BGcarousel});\n background-size: 100%, 100%, contain;\n background-repeat: no-repeat;\n padding-bottom: 100px;\n @media (max-width: 600px) {\n padding-bottom: 50px;\n }\n`\nconst ButtonStyleNav = styled(Button)`\n margin-left: 5px;\n font-weight: 400;\n color: ${theme.white};\n background: transparent;\n`\n\nconst NotiIcon = styled(Icon)`\n width: 20px;\n height: 20px;\n`\nexport {\n SearchBarContainer,\n SearchBarTop,\n ButtonRegister,\n ButtonLogin,\n TooltipStyleNav,\n TypoGradientNav,\n ColCarousel,\n ButtonStyleNav,\n NotiIcon,\n TypoWhiteNav,\n}\n","import SearchLandingWhite from 'images/icons/IconLandingPage/SearchLandingWhite.svg'\nimport SearchLandingBlue from 'images/icons/IconLandingPage/SearchLandingBlue.svg'\n\nimport StudentLandingBlue from 'images/icons/IconLandingPage/StudentLandingBlue.svg'\nimport StudentLandingWhite from 'images/icons/IconLandingPage/StudentLandingWhite.svg'\n\nimport TeacherLandingBlue from 'images/icons/IconLandingPage/TeacherLandingBlue.svg'\nimport TeacherLandingWhite from 'images/icons/IconLandingPage/TeacherLandingWhite.svg'\n\nimport LoginLandingBlue from 'images/icons/IconLandingPage/LoginLandingBlue.svg'\nimport LoginLandingWhite from 'images/icons/IconLandingPage/LoginLandingWhite.svg'\n\nimport Language from 'images/icons/icon-language.svg'\nimport LanguageInactive from 'images/icons/icon-languageinactive.svg'\nexport const SlidebarDetail = [\n {\n id: 'searchbar.allcourse',\n label: 'Browse',\n link: '/landingFindingCourse',\n icon: SearchLandingWhite,\n activeIcon: SearchLandingBlue,\n },\n {\n id: 'Landing.student',\n label: 'Student',\n link: '/landingStudent',\n icon: StudentLandingWhite,\n activeIcon: StudentLandingBlue,\n },\n {\n id: 'Landing.teacher',\n label: 'Teacher',\n link: '/landingTeacher',\n icon: TeacherLandingWhite,\n activeIcon: TeacherLandingBlue,\n },\n {\n id: 'account.lang',\n label: 'Language',\n icon: Language,\n activeIcon: LanguageInactive,\n },\n {\n id: 'login.title',\n label: 'Login',\n link: '/user/login',\n icon: LoginLandingWhite,\n activeIcon: LoginLandingBlue,\n },\n]\n\nexport const NavbarMenu = [\n {\n id: 'searchbar.allcourse',\n label: 'Browse',\n link: '/landingFindingCourse',\n },\n {\n id: 'Landing.student',\n label: 'Student',\n link: '/landingStudent',\n },\n {\n id: 'Landing.teacher',\n label: 'Teacher',\n link: '/landingTeacher',\n },\n]\n","/* eslint-disable no-unused-vars */\nimport React, { useEffect, useState } from 'react'\nimport { Link, withRouter } from 'react-router-dom'\nimport ErrorBoundary from 'components/errorBoundary'\nimport Logo from 'components/logo'\n// import { connect } from 'react-redux'\nimport {\n SearchBarContainer,\n SearchBarTop,\n NotiIcon,\n ButtonRegister,\n ButtonStyleNav,\n TooltipStyleNav,\n ButtonLogin,\n TypoGradientNav,\n TypoWhiteNav,\n} from './style'\nimport { MobileAndTablet, LargeDesktop, Custom } from 'utils/displayResponsive'\nimport ListIcon from 'images/icons/IconLandingPage/ListLandingWhite.svg'\nimport LibSidebar from 'react-sidebar'\nimport DrawerProfile from 'components/DrawerProfile/index'\nimport { SlidebarDetail, NavbarMenu } from './menu'\nimport get from 'lodash/get'\nimport Button from 'components/button'\n\nconst Navbar = ({ isOpacity = false }) => {\n const [scrollPosition, setScrollPosition] = useState(0)\n const [opacity, setOpacity] = useState(0)\n const [opacityMobile, setOpacityMobile] = useState(0)\n const [toggle, setToggle] = useState(false)\n const pathname = get(location, 'pathname', false)\n\n useEffect(() => {\n if (!isOpacity) {\n const handleScroll = () => {\n const position = window.scrollY\n const maxScroll = 500 // ปรับค่านี้เพื่อควบคุมช่วงการเลื่อน\n const maxScrollMobile = 280\n const currentOpacity = Math.max(0, Math.min(1, position / maxScroll)) // รักษาค่าความทึบให้อยู่ระหว่าง 0 และ 1\n const currentOpacityMobile = Math.max(0, Math.min(1, position / maxScrollMobile)) // รักษาค่าความทึบให้อยู่ระหว่าง 0 และ 1\n setOpacity(currentOpacity)\n setOpacityMobile(currentOpacityMobile)\n }\n\n window.addEventListener('scroll', handleScroll)\n\n return () => {\n window.removeEventListener('scroll', handleScroll)\n }\n } else {\n setOpacity(1)\n setOpacityMobile(1)\n }\n }, [isOpacity])\n\n const renderLogo = () => {\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n )\n }\n const closeSlidebar = () => {\n setToggle(!toggle)\n }\n return (\n \n \n \n \n {renderLogo()}\n {/* {NavbarMenu.map((item, idx) => {\n const isSamePath = pathname.startsWith(item.link)\n return (\n \n \n \n {item.label}\n \n \n \n )\n })} */}\n\n \n \n Browse\n \n \n \n \n Student\n \n \n \n \n Teacher\n \n \n \n \n \n สมัครสมาชิก\n \n \n \n เข้าสู่ระบบ\n \n \n \n \n \n\n \n setToggle(false)}\n menu={SlidebarDetail}\n pathname={pathname}\n />\n }\n styles={{\n root: {\n overflow: 'unset',\n },\n sidebar: {\n zIndex: 300,\n position: 'fixed',\n overflowY: 'hidden',\n },\n overlay: {\n zIndex: 250,\n },\n content: {\n position: 'absolute',\n overflowY: 'unset',\n },\n }}\n >\n \n \n setToggle(true)}\n >\n \n \n \n \n {renderLogo()}\n \n \n \n \n สมัครสมาชิก\n \n \n \n \n เข้าสู่ระบบ\n \n \n \n \n \n \n \n )\n}\n\nexport default Navbar\n","/* eslint-disable no-unused-vars */\nimport React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport { connect } from 'react-redux'\nimport _get from 'lodash/get'\n\nimport Modal from 'react-modal'\nimport { withRouter, Link } from 'react-router-dom'\nimport isEmpty from 'lodash/isEmpty'\nimport getImageUrl from '../../utils/getImageUrl'\nimport getHeaderTitle from '../../utils/getHeaderTitle'\nimport ErrorBoundary from '../../components/errorBoundary'\nimport Avatar from '../../components/avatar/loadable'\nimport Logo from '../../components/logo'\n// import LibSidebar from 'react-sidebar'\n// import DrawerProfile from '../../components/DrawerProfile'\nimport { MiniBadge } from '../../components/styledComponents'\nimport {\n SearchBarContainer,\n SearchBarTop,\n SearchFormContainer,\n LanguageGroup,\n Typography,\n Dropdown,\n ButtonLang,\n NotiIcon,\n NotiContainer,\n ContainerAvatar,\n} from './styles'\n// import theme from 'theme'\nimport RolePopup from 'components/rolePopup/loadable'\nimport NotificationPopup from 'components/notificationPopup/loadable'\n// import { popupMenus } from './popupMenus'\nimport ModalMobileNoti from './modalMobileNoti'\n// import Intro, { IntroContent } from 'components/intro'\nimport Button from 'components/button'\nimport { MobileAndTablet, LargeDesktop } from 'utils/displayResponsive'\nimport Tooltip from 'components/tooltip/loadable'\nimport BecomeInstructorModal from 'components/becomeInstructorModal/loadable'\nimport RoleSelector from './RoleSelector'\nimport SearchInput from './SearchInput'\nimport store from '../../store'\nimport { ACCESS_TOKEN } from '../../constants'\nimport SocialIcon from 'images/Social Icon_Website.svg'\nimport NotificationIcon from 'images/icons/BellSimpleNotification.svg'\nimport SearchIcon from 'images/icons/MagnifyingGlass.svg'\nimport ListIcon from 'images/icons/List.svg'\nimport { IoMdMenu } from 'react-icons/io'\nimport NavbarWithoutLogin from './NavbarwithoutLogin/index'\n\nModal.setAppElement('#root')\n\nconst style = {\n container: {\n top: '45px',\n bottom: '0',\n right: '0',\n left: 'auto',\n },\n}\n\nconst options = [\n {\n label: () => '(EN) English',\n value: 'en',\n },\n {\n label: () => '(TH) ภาษาไทย',\n value: 'th',\n },\n]\n\nconst displayWidth = 40\nconst imageWidth = displayWidth * 2\n\nclass SearchBar extends Component {\n state = {\n showProfileDrawer: false,\n showNotiPopup: false,\n showRolePopup: false,\n showSearchMenu: false,\n showGoback: false,\n showLanguage: false,\n showChangeRoleIntro: null,\n }\n\n static propTypes = {\n fetchMe: PropTypes.func.isRequired,\n appUser: PropTypes.object.isRequired,\n }\n\n async componentDidMount() {\n const { onOpenShowInstructor } = this.props\n const query = new URLSearchParams(this.props.location.search)\n const isShowInstructor = query.get('showInstructor')\n if (isShowInstructor) {\n onOpenShowInstructor()\n }\n const token = JSON.parse(localStorage.getItem(ACCESS_TOKEN))\n if (token) {\n const { fetchMe } = this.props\n await fetchMe()\n }\n const { match } = this.props\n if (match.params.schoolId) {\n this.setState({ showGoback: true })\n }\n this.props.getNotifications()\n\n const { appUser, isTeacher, location } = this.props\n if (\n !appUser?.schoolIntro?.skipedChangeRole &&\n appUser?.learnerLastLogin !== null &&\n isTeacher &&\n location?.pathname === '/browse/courses'\n ) {\n if (window.innerWidth <= 768) {\n this.setState({ showProfileDrawer: true, showChangeRoleIntro: true })\n } else {\n this.setState({ showRolePopup: true, showChangeRoleIntro: true })\n }\n }\n }\n\n handleTogglePopup = (key) => {\n this.setState((prevState) => ({ [key]: !prevState[key] }))\n }\n handleToggleChangeRole = (key) => {\n const { showChangeRoleIntro } = this.state\n if (showChangeRoleIntro === null) {\n this.handleTogglePopup(key)\n return\n }\n this.setState(() => ({ [key]: showChangeRoleIntro, showChangeRoleIntro: null }))\n }\n\n toggleLanguage = () => this.setState(({ showLanguage }) => ({ showLanguage: !showLanguage }))\n\n toggleDrawer = () => this.setState((prev) => ({ showProfileDrawer: !prev.showProfileDrawer }))\n getDefaultSchoolId = () => {\n const { appUser } = this.props\n const defaultSchool = _get(appUser, 'schoolMembers', []).find((item) => item.isDefault)\n return _get(defaultSchool, 'schoolId')\n }\n\n renderRole = () => {\n const { isTeacher, match, appUser } = this.props\n\n const isTeacherPath = match.url.startsWith('/teacher') || match.url.startsWith('/schools')\n if (isTeacher) {\n return (\n this.handleToggleChangeRole('showRolePopup')}\n tooltip={\n this.handleTogglePopup('showRolePopup')}\n isTeacherPath={isTeacherPath}\n />\n }\n >\n \n \n )\n }\n if (isEmpty(appUser)) {\n return null\n }\n return null\n }\n\n renderLogo = () => {\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n )\n }\n\n renderMenu = (toggle) => {\n return (\n <>\n \n \n \n \n \n \n toggle(true)}\n menu\n >\n \n \n \n \n )\n }\n\n handleLanguageChange = (value) => {\n const { updateLocale } = this.props\n updateLocale(value)\n this.toggleLanguage()\n }\n\n renderLanguage = () => (\n \n \n \"social-icon\"\n {`${this.props.locale}`.toUpperCase()}\n \n {this.state.showLanguage && (\n \n )}\n \n )\n\n renderSearchInput = () => {\n return (\n <>\n \n \n )\n }\n\n isHeaderHider = () => {\n const { location } = this.props\n const pathname = _get(location, 'pathname', false)\n const regexCourse = new RegExp(/\\/my-course\\/courses\\/.+/, 'i')\n const regexAssignment = new RegExp(/\\/my-course\\/assignments\\/.+/, 'i')\n\n if (regexAssignment.test(pathname)) return true\n return regexCourse.test(pathname) && window.matchMedia(`(max-width: 768px)`).matches\n }\n\n getPosition = (width) => {\n if (width <= 650) {\n return 'bottom'\n }\n if (width <= 768) {\n return 'left'\n }\n return 'bottom'\n }\n\n onStart = async () => {\n const { appUser, updateProfile } = this.props\n try {\n const { schoolIntro } = appUser\n const payload = {\n schoolIntro: {\n ...schoolIntro,\n skipedChangeRole: true,\n },\n }\n await updateProfile(payload)\n } catch (error) {\n throw new Error(error)\n }\n }\n onExit = () => {\n if (window.innerWidth > 768) {\n this.setState({ showRolePopup: false, showChangeRoleIntro: null })\n }\n }\n onBeforeExit = async () => {\n if (window.innerWidth <= 768) {\n this.setState({ showProfileDrawer: false, showChangeRoleIntro: false })\n } else {\n this.setState({ showRolePopup: false, showChangeRoleIntro: false })\n }\n }\n\n openModal = () => {\n return \n }\n\n render() {\n const {\n appUser,\n match,\n location,\n // isTeacher,\n isLiff,\n showInstructor,\n onCloseShowInstructor,\n sidebarOpen,\n // onOpenShowInstructor,\n // openProfileMenu,\n // locale,\n toggle,\n } = this.props\n // const { showChangeRoleIntro } = this.state\n const isTeacherPath = match.url.startsWith('/teacher') || match.url.startsWith('/schools')\n const header = getHeaderTitle(location.pathname)\n // const isTh = locale === 'th'\n const isFeedPage = location.pathname === '/browse/main'\n // const pathname = _get(location, 'pathname', false)\n // const intro = {\n // steps: [\n // {\n // title: isTh ? 'เปลี่ยนเป็นโหมดผู้สอน' : 'Switch to instructor',\n // element: '[data-intro=profileMenu]',\n // position: this.getPosition(window.innerWidth),\n // intro: (\n // \n // ),\n // },\n // ],\n // }\n const paramsUrl = location.pathname.split('/')[1]\n console.log('paramsUrl', paramsUrl)\n if (isLiff) {\n return (\n \n )\n }\n return (\n \n {!isEmpty(appUser) ? (\n <>\n \n \n
\n {match.url.startsWith('/teacher') && (\n {this.renderMenu(toggle)}\n )}\n {isTeacherPath ? (\n \n {header.title}\n \n ) : (\n \n \n {this.renderLogo()}\n \n \n News feed\n \n \n {!isTeacherPath && (\n <>\n \n \n Browse\n \n \n \n \n My Course\n \n \n \n )}\n \n \n toggle(true)}\n menu\n >\n \n \n \n \n )}\n
\n {this.renderLogo()}\n
\n
\n {!isEmpty(appUser) && (\n <>\n \n {this.renderSearchInput()}\n this.handleTogglePopup('showNotiPopup')}\n tooltip={\n this.handleTogglePopup('showNotiPopup')}\n />\n }\n >\n \n \n {this.props.count > 0 && {this.props.count}}\n \n \n {!isEmpty(appUser) && (\n toggle(true)}>\n \n \n )}\n \n \n {!isTeacherPath && (\n \n \n \n \n \n )}\n this.handleTogglePopup('showNotiPopup')}\n style={{ marginRight: 0 }}\n >\n \n {this.props.count > 0 && (\n {this.props.count}\n )}\n \n this.setState({ showNotiPopup: false })}\n handleTogglePopup={this.handleTogglePopup}\n />\n \n \n )}\n
\n
\n
\n \n \n \n ) : (\n <>\n \n \n )}\n
\n )\n }\n}\n\nconst selection = store.select((models) => ({\n isTeacher: models.AppUser.isTeacher,\n}))\n\nconst mapState = (state) => ({\n appUser: state.AppUser.appUser,\n isLiff: state.Liff.isLiff,\n locale: state.Language.locale,\n count: state.Notification.count,\n sidebarOpen: state.Sidebar.sidebarOpen,\n showInstructor: state.ModalState.showInstructor,\n openProfileMenu: state.Intro.openProfileMenu,\n changeRole: state.Intro.changeRole,\n ...selection(state),\n})\n\nconst mapDispatch = (dispatch) => {\n const {\n AppUser: { fetchMe, updateProfile },\n Language: { updateLocale },\n ModalState: { onCloseShowInstructor, onOpenShowInstructor },\n } = dispatch\n return {\n fetchMe,\n updateProfile,\n updateLocale,\n getNotifications: dispatch.Notification.getNotifications,\n onCloseShowInstructor,\n onOpenShowInstructor,\n toggle: dispatch.Sidebar.toggle,\n }\n}\n\nexport default connect(mapState, mapDispatch)(withRouter(SearchBar))\n","const getHeaderTitle = (path) => {\n let header = {}\n if (/^\\/schools\\/.+\\/member\\/.+\\/permission/.test(path)) {\n header = { title: 'Permission', id: 'permission.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/dashboard/.test(path)) {\n header = { title: 'Dashboard', id: 'dashboard.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/curriculum/.test(path)) {\n header = { title: 'Course', id: 'tab.label.Course' }\n return header\n }\n if (/^\\/schools\\/.+\\/member/.test(path)) {\n header = { title: 'Member', id: 'member.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/payment/.test(path)) {\n header = { title: 'Payment', id: 'instructor.menu.payment' }\n return header\n }\n if (/^\\/schools\\/.+\\/certificate\\/program-certificate/.test(path)) {\n header = { title: 'Program Certificate', id: 'certificates.program.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/certificate/.test(path)) {\n header = { title: 'Certificate', id: 'certificates.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/report/.test(path)) {\n header = { title: 'Report', id: 'tab.label.Report' }\n return header\n }\n if (/^\\/schools\\/.+\\/information/.test(path)) {\n header = { title: 'Academy Profile', id: 'information.instructor.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/checkout/.test(path)) {\n header = { title: 'Checkout', id: 'checkout.package.title' }\n return header\n }\n if (/^\\/schools\\/.+\\/packages/.test(path)) {\n header = { title: 'Packages', id: 'instructor.menu.packages' }\n return header\n }\n if (/^\\/schools\\/.+\\/marketplace/.test(path)) {\n header = { title: 'Marketplace', id: 'instructor.menu.marketplace' }\n return header\n }\n\n return header\n}\n\nexport default getHeaderTitle\n"],"sourceRoot":""}