{"version":3,"sources":["components/Swiper/styles.js","components/Swiper/Swiper.js","components/MovieContainer/MovieContainer.js","pages/MovieHome/MovieHome.js","components/PlayButton/PlayButton.js","components/MovieAlbumItem/MovieAlbumItem.js","components/MovieAlbum/styles.js","images/icons/camera.svg","components/WideVideoAlbumItem/WideVideoAlbumItem.js","components/MovieAlbum/MovieAlbum.js","components/MovieContainer/mock.js","components/MovieMenu/styles.js","components/MovieMenu/MovieMenu.js"],"names":["makeStyles","theme","themeColor","banner","maxWidth","height","PagSwiper","props","classes","useStyles","banners","useHomeInfo","className","key","length","initialSlide","spaceBetween","slidesPerView","navigation","mousewheel","pagination","clickable","scrollbar","draggable","autoplay","loop","map","id","href","link","undefined","target","src","getOptimizedImgUrl","url","image","ext","alt","SwiperCore","use","Navigation","Pagination","Scrollbar","Mousewheel","Autoplay","A11y","createStyles","album","marginBottom","spacing","MovieContainer","slots","slot","MovieAlbum","hideTitleIcon","hoverEnlargePoster","content","margin","marginTop","menu","marginLeft","marginRight","breakpoints","down","MovieHome","Grid","container","justify","item","xs","MovieMenu","root","color","palette","primary","light","border","label","playButton","typography","h4","overflow","width","borderRadius","playButtonLarge","h3","PlayButton","size","vid","playButtonClass","Button","variant","outlined","defaultProps","propsTypes","backgroundImage","albumItem","extraMarginBottom","poster","position","opacity","enlargePoster","up","transform","maxHeight","imgFluid","transition","backgroundColor","placeholder","play","display","top","left","alignItems","justifyContent","transitionDuration","playMask","playMaskDetail","padding","paddingTop","paddingBottom","maskMeta","smallCaption","common","grey","maskIntro","info","whiteSpace","title","caption","h7","relative","blockWithText","lineHeight","textAlign","checkbox","checkboxItem","right","zIndex","triangle","borderStyle","borderWidth","borderColor","borderRightColor","main","whiteMask","whiteMaskSelected","cursor","RectangleMask","checked","classNames","BlackCheckbox","withStyles","icon","ImgPlaceholder","style","MovieAlbumItem","showMeta","showTitle","showHover","showCheckBox","editing","hoverMaskMode","customMetaText","collectionID","history","useHistory","videoSelected","useCollectionState","collectionDispatch","useCollectionDispatch","description","selected","get","HoverMask","maskTitle","name","others","parse","replace","underline","onClick","e","indexOf","type","payload","cid","push","disabled","srcSet","getThumbnailUrl","PropTypes","bool","string","moreButton","h6","dark","widePosterContainer","flexWrap","flexDirection","paddingLeft","widePosterChild","flex","smallWideContainer","largeWideContainer","smallWideContent","topicImg","movieList","largeWidePoster","smallWidePoster","between","seedOverride","lightBackground","wideMask","wideMaskSmall","wideMaskLargeTitle","h2","fontWeight","wideMaskSmallTitle","fontSize","metaContainer","metaLargeText","tags","metaText","paddingRight","bottom","background","blockWithText2","playButtonContainerLg","only","playButtonContainerSm","topicContainer","topicPoster","topicMovie","_extends","Object","assign","i","arguments","source","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_ref2","createElement","d","fill","_ref","svgRef","viewBox","ref","ForwardRef","forwardRef","minHeight","wideMaskTitle","WideVideoAlbumItem","showDesceiption","WideHoverMask","wideMaskSizeTitleClass","metaTextClass","Box","Link","effect","video_id","hideTitle","hideMoreLink","firstFourMovies","slice","DefaultLayout","items","movie","index","md","ImgTopicLayout","img_url","staticUrl","img_loc","WidePosterLayout","mb","mt","SeedLayout","isEmpty","direction","Typography","more_link","sapcing","layout","renderList","array","isRequired","movies","topic_img","menuItem","popover","pointerEvents","popoverContent","boxShadow","menuGroupTitle","partnerMenuGroupTitle","menuGroupItem","navLink","textDecoration","hidden","visibility","LinkTabs","borderBottom","indicator","Tabs","LinkTab","h5","textTransform","minWidth","black","fontWeightMedium","Tab","useTheme","isScrollButton","useMediaQuery","menus","children","childrenMenus","orderBy","flatten","in_menu","pages","mixedMenus","concat","pathIndex","window","location","pathname","activeTabIndex","allCatLink","useState","setValue","anchorEl","setAnchorEl","handleClose","openedPopover","setOpenedPopover","popoverAnchor","useRef","popoverEnter","currentTarget","popoverLeave","open","Boolean","MenuGroup","isPartner","List","disablePadding","ListItem","disableGutters","groupTitle","page","component","AllPages","topics","partners","value","onChange","event","newValue","scrollButtons","idx","tab","aria-owns","aria-haspopup","to","onMouseEnter","onMouseLeave","renderMenuTab","Popover","elevation","paper","current","anchorOrigin","vertical","horizontal","transformOrigin","onClose","disableRestoreFocus","PaperProps"],"mappings":"wPAEeA,eAAW,SAAAC,GAAK,MAAK,CAClCC,WAAY,CACV,uBAAwB,SAE1BC,OAAQ,CACNC,SAAU,OACVC,OAAQ,Y,wICyBG,SAASC,EAAWC,GACjC,IAAMC,EAAUC,IACRC,EAAYC,cAAZD,QACR,OACE,yBAAKE,UAAWJ,EAAQN,YACtB,kBAAC,IAAD,CACEW,IAAG,mBAAiC,IAAnBH,EAAQI,QACzBC,aAAc,EACdC,aAAc,GACdC,cAAe,EACfC,YAAU,EACVC,YAAU,EACVC,WAAY,CAAEC,WAAW,GACzBC,UAAW,CAAEC,WAAW,GACxBC,SAA6B,IAAnBd,EAAQI,OAClBW,KAAyB,IAAnBf,EAAQI,QAEbJ,EAAQgB,KAAI,SAAAvB,GAAM,OACjB,kBAAC,IAAD,CAAaU,IAAG,iBAAYV,EAAOwB,KACjC,uBAAGC,KAAMzB,EAAO0B,KAAO1B,EAAO0B,UAAOC,EAAWC,OAAO,UACrD,yBACEC,IAAKC,YAAmB,CAAEC,IAAK/B,EAAOgC,MAAOC,IAAK,SAClDC,IAAG,iBAAYlC,EAAOwB,IACtBf,UAAWJ,EAAQL,gBAzBnCmC,IAAWC,IAAI,CAACC,IAAYC,IAAYC,IAAWC,IAAYC,IAAUC,M,+BCtBnEpC,EAAYT,aAAW,SAAAC,GAAK,OAChC6C,YAAa,CACXC,MAAO,CACLC,aAAc/C,EAAMgD,QAAQ,SAKnB,SAASC,EAAgB3C,GACtC,IAAMC,EAAUC,IACR0C,EAAUxC,cAAVwC,MAER,OACE,6BACGA,EAAMzB,KAAI,SAAA0B,GACT,OACE,yBAAKxC,UAAWJ,EAAQuC,MAAOlC,IAAG,eAAUuC,EAAKzB,KAC/C,kBAAC0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X2G,GAAIpC,EACJqC,aAAc3B,EACd4B,aAAc1B,IAKhBvS,EAAK/B,OAAuC,IAA/B+B,EAAK/B,KAAK2J,QAAQ,QAE/B,kBAACuI,EAAD,CACEjT,IAAG,aAAQyW,GACX1W,UAAWJ,EAAQ+W,IACnB1S,MAAOlB,EAAKqH,KACZ6L,UAAW,IACXjV,KAAM+B,EAAK/B,KACXG,OAAO,WAMX,kBAAC+R,EAAD,CACEjT,IAAG,aAAQyW,GACX1W,UAAWJ,EAAQ+W,IACnB1S,MAAOlB,EAAKqH,KACZ6L,UAAW9F,OACX2G,GAAI/T,EAAK/B,OAuC0BiW,CAAclU,EAAM2T,OAErD,kBAACQ,EAAA,EAAD,CACEC,UAAW,EACXpW,GAAG,qBACHf,UAAWJ,EAAQuS,QACnBvS,QAAS,CAAEwX,MAAOxX,EAAQyS,gBAC1BkD,KAAMP,EACNH,SAAUK,EAAcmC,QACxBC,aAAc,CACZC,SAAU,SACVC,WAAY,SAEdC,gBAAiB,CACfF,SAAU,MACVC,WAAY,UAEdE,QAAS3C,EACT4C,qBAAmB,EACnBC,WAAY,CACVb,aAAc3B,EACd4B,aAAc1B,IAGhB,6BAAM,kBAACY,EAAD","file":"static/js/23.1ce5e283.chunk.js","sourcesContent":["import { makeStyles } from \"@material-ui/styles\";\n\nexport default makeStyles(theme => ({\n themeColor: {\n \"--swiper-theme-color\": \"white\",\n },\n banner: {\n maxWidth: \"100%\",\n height: \"auto\",\n },\n}));\n","import React from \"react\";\n\n// styles\nimport useStyles from \"./styles\";\n\n// import Swiper core and required components\nimport SwiperCore, {\n Navigation,\n Pagination,\n Scrollbar,\n Mousewheel,\n Autoplay,\n A11y,\n} from \"swiper\";\n\nimport { Swiper, SwiperSlide } from \"swiper/react\";\n\n// Import Swiper styles\nimport \"swiper/swiper.scss\";\nimport \"swiper/components/navigation/navigation.scss\";\nimport \"swiper/components/pagination/pagination.scss\";\nimport \"swiper/components/scrollbar/scrollbar.scss\";\n\n// context\nimport { useHomeInfo } from \"../../useGlobal\";\n\nimport { getOptimizedImgUrl } from \"../../utils/common\";\n\n// import './custom.css'\n\n// install Swiper components\nSwiperCore.use([Navigation, Pagination, Scrollbar, Mousewheel, Autoplay, A11y]);\n\nexport default function PagSwiper (props) {\n const classes = useStyles();\n const { banners } = useHomeInfo();\n return (\n
\n \n {banners.map(banner => (\n \n \n \n \n \n ))}\n \n
\n );\n}\n","import React from \"react\";\nimport { makeStyles, createStyles } from \"@material-ui/core/styles\";\n\nimport mock from \"./mock\";\n\nimport MovieAlbum from \"../MovieAlbum\";\n\nimport { useHomeInfo } from \"../../useGlobal\";\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n album: {\n marginBottom: theme.spacing(5),\n },\n }),\n);\n\nexport default function MovieContainer (props) {\n const classes = useStyles();\n const { slots } = useHomeInfo();\n\n return (\n
\n {slots.map(slot => {\n return (\n
\n \n
\n );\n })}\n
\n );\n}\n","import React from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport { makeStyles, createStyles } from \"@material-ui/core/styles\";\n\n// components\nimport PagSwiper from \"../../components/Swiper\";\nimport MovieMenu from \"../../components/MovieMenu\";\nimport MovieContainer from \"../../components/MovieContainer\";\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n content: {\n margin: \"6.5%\",\n marginBottom: theme.spacing(3),\n marginTop: theme.spacing(3),\n },\n menu: {\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(1),\n marginLeft: \"6.5%\",\n marginRight: \"6.5%\",\n [theme.breakpoints.down(\"sm\")]: {\n marginLeft: theme.spacing(1),\n marginRight: theme.spacing(1),\n },\n },\n }),\n);\n\nfunction MovieHome (props) {\n const classes = useStyles();\n\n return (\n
\n \n \n
\n \n
\n
\n \n \n \n\n \n
\n \n
\n
\n
\n
\n );\n}\n\nexport default MovieHome;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles, createStyles } from \"@material-ui/core/styles\";\n\nimport { Button } from \"@material-ui/core\";\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n root: {\n color: theme.palette.primary.light,\n border: `1px solid ${theme.palette.primary.light}`,\n },\n label: {\n color: theme.palette.primary.light,\n },\n playButton: {\n ...theme.typography.h4,\n overflow: \"hidden\",\n width: 120,\n height: 40,\n borderRadius: \"0\",\n },\n playButtonLarge: {\n ...theme.typography.h3,\n overflow: \"hidden\",\n width: 304,\n height: 72,\n borderRadius: \"0\",\n [theme.breakpoints.down(\"md\")]: {\n width: 304 * 0.7,\n height: 72 * 0.7,\n },\n },\n }),\n);\n\nconst PlayButton = ({ size = \"sm\", vid }) => {\n const classes = useStyles();\n const playButtonClass =\n size === \"lg\" ? classes.playButtonLarge : classes.playButton;\n return (\n <>\n
\n \n 觀看影片\n \n
\n \n );\n};\n\nPlayButton.defaultProps = {};\n\nPlayButton.propsTypes = {};\n\nexport default PlayButton;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport \"lazysizes\";\nimport { Typography, Box, Grid, Checkbox, Link } from \"@material-ui/core\";\nimport { makeStyles, createStyles, withStyles } from \"@material-ui/core/styles\";\nimport { CheckBoxOutlineBlank as CheckBoxOutlineBlankIcon } from \"@material-ui/icons\";\nimport { useHistory } from \"react-router-dom\";\nimport classNames from \"classnames\";\nimport get from \"lodash/get\";\nimport parse from \"html-react-parser\";\n\nimport PlayButton from \"../PlayButton\";\n\nimport {\n useCollectionState,\n useCollectionDispatch,\n} from \"../../context/CollectionContext\";\nimport { staticUrl } from \"../../clientAPI\";\nimport { getThumbnailUrl } from \"../../utils/common\";\n\nimport {\n LazyLoadComponent,\n} from \"react-lazy-load-image-component\";\nimport \"react-lazy-load-image-component/src/effects/blur.css\";\n// import \"react-lazy-load-image-component/src/effects/black-and-white.css\";\n// import { SimpleImg } from \"react-simple-img\";\n// import LazyLoad from \"react-lazy-load\";\n\nimport \"./lazyload.css\";\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n root: {\n backgroundImage:\n \"linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%)\",\n },\n albumItem: {\n label: {\n color: \"black\",\n },\n margin: \"5px\",\n \"&:first-child\": {\n marginLeft: theme.spacing(0),\n },\n overflow: \"hidden\",\n },\n extraMarginBottom: {\n marginBottom: theme.spacing(2),\n },\n poster: {\n position: \"relative\",\n \"&:hover $play\": {\n opacity: 1,\n },\n },\n enlargePoster: {\n \"&:hover $imgFluid\": {\n [theme.breakpoints.up(\"xs\")]: {\n transform: \"scale(1.4)\",\n },\n [theme.breakpoints.down(\"md\")]: {\n transform: \"none\",\n },\n },\n \"&:hover $play\": {\n [theme.breakpoints.up(\"xs\")]: {\n maxWidth: 195 * 1.4,\n maxHeight: 275 * 1.4,\n },\n [theme.breakpoints.down(\"md\")]: {\n transform: \"none\",\n },\n },\n },\n imgFluid: {\n // width 100% & height auto keep image resize ratio\n width: \"100%\",\n maxWidth: 195,\n height: \"auto\",\n maxHeight: 275,\n transition: \"opacity .3s, transform .2s !important\",\n \"&:before\": {\n backgroundColor: \"#dedede\",\n },\n },\n placeholder: {\n width: 195,\n height: 275,\n },\n play: {\n display: \"flex\",\n position: \"absolute\",\n width: \"100%\",\n maxWidth: 195,\n height: \"100%\",\n maxHeight: 275,\n overflow: \"auto\",\n margin: \"auto\",\n top: 0,\n left: 0,\n alignItems: \"center\",\n justifyContent: \"center\",\n transitionDuration: \"0.5s\",\n opacity: 0,\n overflow: \"hidden\",\n },\n playButton: {\n overflow: \"hidden\",\n width: 120,\n height: 40,\n marginTop: theme.spacing(2),\n },\n playMask: {\n backgroundColor: \"rgba(0, 0, 0, 0.65)\",\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n playMaskDetail: {\n padding: theme.spacing(2.5),\n paddingTop: theme.spacing(4),\n paddingBottom: theme.spacing(3),\n color: \"white\",\n },\n maskMeta: {\n ...theme.typography.smallCaption,\n color: theme.palette.common.grey[300],\n marginTop: theme.spacing(0.5),\n },\n maskIntro: {\n ...theme.typography.smallCaption,\n marginTop: theme.spacing(0.5),\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: \"1em\",\n display: \"none\",\n },\n },\n info: {\n marginTop: 4,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n },\n title: {\n color: theme.palette.common.grey[900],\n },\n caption: {\n ...theme.typography.h7,\n color: theme.palette.common.grey[600],\n marginTop: theme.spacing(0.5),\n },\n relative: {\n position: \"relative\",\n },\n blockWithText: {\n maxWidth: \"10rem\",\n overflow: \"hidden\",\n position: \"relative\",\n lineHeight: \"1.67em\",\n maxHeight: `${1.67 * 5}em`,\n textAlign: \"justify\",\n },\n checkbox: {\n maxWidth: 195,\n maxHeight: 275,\n },\n checkboxItem: {\n position: \"absolute\",\n top: theme.spacing(1),\n right: theme.spacing(1),\n borderRadius: 0,\n padding: 0,\n // higher than lazyload img and white mask\n zIndex: 10,\n },\n triangle: {\n position: \"absolute\",\n top: 0,\n right: 0,\n borderStyle: \"solid\",\n borderWidth: \"0 80px 80px 0\",\n borderColor: \"transparent\",\n borderRightColor: theme.palette.primary.main,\n },\n whiteMask: {\n position: \"absolute\",\n width: \"100%\",\n height: \"100%\",\n backgroundColor: \"rgba(255, 255, 255, 0.6)\",\n // higher than lazyload img but less than white mask\n zIndex: 9,\n },\n whiteMaskSelected: {\n borderRadius: 5,\n border: \"solid 3px black\",\n },\n link: {\n cursor: \"pointer\",\n },\n }),\n);\n\nconst Triangle = () => {\n const classes = useStyles();\n return
;\n};\n\nconst RectangleMask = ({ checked }) => {\n const classes = useStyles();\n return (\n \n );\n};\n\nconst BlackCheckbox = withStyles({\n root: {\n color: \"black\",\n \"&$checked\": {\n color: \"black\",\n },\n },\n})(props => (\n <>\n \n } {...props} />\n \n));\n\nconst ImgPlaceholder = () => {\n // const classes = useStyles();\n // return ;\n // return
;\n return
;\n};\n\n// function addDefaultSrc (ev) {\n// ev.target.src = `${staticUrl}/poster/default_poster.png`;\n// }\n\nconst MovieAlbumItem = ({\n item,\n showMeta,\n showTitle,\n showHover,\n showCheckBox,\n editing,\n hoverMaskMode,\n hoverEnlargePoster,\n extraMarginBottom,\n customMetaText,\n collectionID,\n}) => {\n const classes = useStyles();\n const history = useHistory();\n const { videoSelected } = useCollectionState();\n const collectionDispatch = useCollectionDispatch();\n const { id, description } = item;\n const selected = get(videoSelected, collectionID, []);\n\n const handleChange = event => {\n if (selected.indexOf(id) === -1) {\n collectionDispatch({\n type: \"SELECT_COLLECTION_VIDEO\",\n payload: { cid: collectionID, vid: id },\n });\n } else {\n collectionDispatch({\n type: \"UNSELECT_COLLECTION_VIDEO\",\n payload: { cid: collectionID, vid: id },\n });\n }\n };\n\n const HoverMask = ({ display }) => {\n if (hoverMaskMode === \"simple\") {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n {item.name}\n \n \n \n {item.others}\n \n \n \n {parse(description.replace(/^

/, \"\").replace(/<\\/p>$/, \"\"))}\n \n \n\n \n \n \n \n \n \n \n \n \n );\n };\n\n return (\n {\n if (editing) {\n handleChange(e);\n } else {\n history.push(`/video/detail/trailer/${id}`);\n }\n }}\n >\n \n \n \n {showCheckBox && editing && (\n <>\n \n \n )}\n {/* }\n /> */}\n }\n >\n \n \n \n \n \n \n\n {/* {\n \n } */}\n {/*

\n \n \n
*/}\n {showHover && }\n \n
\n \n {item.name}\n \n
\n {item.others}\n \n {customMetaText}\n \n
\n
\n \n \n \n );\n};\n\nMovieAlbumItem.defaultProps = {\n showMeta: true,\n showTitle: true,\n showHover: true,\n showCheckBox: true,\n editing: false,\n};\n\nMovieAlbumItem.propsTypes = {\n showMeta: PropTypes.bool,\n showTitle: PropTypes.bool,\n showHover: PropTypes.bool,\n showCheckBox: PropTypes.bool,\n editing: PropTypes.bool,\n customMetaText: PropTypes.string,\n};\n\nexport default MovieAlbumItem;\n","import { makeStyles } from \"@material-ui/styles\";\n\nexport default makeStyles(theme => ({\n album: {\n height: 500,\n },\n title: {\n display: \"inline-flex\",\n alignItems: \"center\",\n },\n moreButton: {\n ...theme.typography.h6,\n color: theme.palette.primary.dark,\n \"&:hover\": {\n backgroundColor: \"transparent\",\n },\n },\n widePosterContainer: {\n width: \"100%\",\n display: \"flex\",\n flexWrap: \"nowrap\",\n flexDirection: \"row\",\n padding: 5,\n paddingLeft: 0,\n [theme.breakpoints.down(\"sm\")]: {\n flexWrap: \"wrap\",\n },\n },\n widePosterChild: {\n flex: \"50%\",\n maxWidth: \"50%\",\n margin: 5,\n marginLeft: 0,\n [theme.breakpoints.down(\"sm\")]: {\n flex: \"100%\",\n maxWidth: \"100%\",\n },\n },\n smallWideContainer: {\n display: \"flex\",\n flexWrap: \"nowrap\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n },\n largeWideContainer: {\n flex: \"100%\",\n maxWidth: \"100%\",\n padding: \"0 4px\",\n },\n smallWideContent: {\n flex: \"45%\",\n width: 300,\n padding: \"0 4px\",\n },\n topicImg: {\n overflow: \"hidden\",\n },\n movieList: {\n marginTop: theme.spacing(1.6),\n paddingLeft: 0,\n overflow: \"hidden\",\n },\n largeWidePoster: {\n width: \"100%\",\n overflow: \"hidden\",\n [theme.breakpoints.up(\"md\")]: {\n maxWidth: 620,\n maxHeight: 372,\n },\n },\n smallWidePoster: {\n width: \"100%\",\n overflow: \"hidden\",\n opacity: 1,\n transition: \".5s ease\",\n \"&:first-child\": {\n marginRight: theme.spacing(1),\n },\n maxWidth: 300,\n maxHeight: 180,\n [theme.breakpoints.between(\"sm\", \"md\")]: {\n maxWidth: 400,\n maxHeight: 240,\n },\n },\n seedOverride: {\n [theme.breakpoints.down(\"sm\")]: {\n width: \"42vw\",\n },\n },\n lightBackground: {\n \"&:hover\": {\n opacity: 0.7,\n },\n },\n wideMask: {\n opacity: 0,\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n height: \"100%\",\n backgroundColor: \"rgba(0, 0, 0, 0.65)\",\n color: \"white\",\n padding: \"5%\",\n paddingBottom: 0,\n marginBottom: 10,\n transitionDuration: \"0.5s\",\n \"&:hover\": {\n opacity: 1,\n },\n },\n wideMaskSmall: {\n padding: \"5%\",\n },\n wideMaskLargeTitle: {\n ...theme.typography.h2,\n fontWeight: 500,\n },\n wideMaskSmallTitle: {\n ...theme.typography.caption,\n fontSize: 24,\n fontWeight: 700,\n },\n metaContainer: {\n marginTop: 12,\n },\n metaLargeText: {\n ...theme.typography.tags,\n color: theme.palette.common.grey[300],\n marginBottom: theme.spacing(0.75),\n },\n metaText: {\n ...theme.typography.caption,\n color: theme.palette.common.grey[300],\n marginBottom: theme.spacing(0.75),\n fontSize: 14,\n },\n blockWithText: {\n width: \"28rem\",\n maxWidth: \"34rem\",\n overflow: \"hidden\",\n position: \"relative\",\n lineHeight: \"1.2em\",\n maxHeight: \"3.6em\",\n textAlign: \"justify\",\n marginRight: \"-1em\",\n paddingRight: \"1em\",\n marginBottom: \"0.5em\",\n \"&&:before\": {\n content: \"'......'\",\n position: \"absolute\",\n right: 0,\n bottom: 0,\n },\n \"&&:after\": {\n content: \"''\",\n position: \"absolute\",\n right: 0,\n width: \"1em\",\n height: \"1em\",\n marginTop: \"0.2em\",\n background: \"transparent\",\n },\n },\n blockWithText2: {\n maxWidth: \"34rem\",\n overflow: \"hidden\",\n position: \"relative\",\n lineHeight: \"1.2em\",\n maxHeight: \"3.6em\",\n textAlign: \"justify\",\n marginRight: \"-1em\",\n paddingRight: \"1em\",\n marginBottom: \"0.5em\",\n [theme.breakpoints.down(\"sm\")]: {\n maxWidth: \"50rem\",\n },\n },\n playButtonContainerLg: {\n marginTop: theme.spacing(3),\n [theme.breakpoints.only(\"md\")]: {\n marginTop: theme.spacing(2),\n },\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: theme.spacing(10),\n },\n [theme.breakpoints.only(\"xs\")]: {\n marginTop: theme.spacing(0.75),\n },\n },\n playButtonContainerSm: {\n marginTop: theme.spacing(4),\n [theme.breakpoints.only(\"lg\")]: {\n marginTop: theme.spacing(2.5),\n },\n [theme.breakpoints.only(\"md\")]: {\n marginTop: theme.spacing(0.5),\n },\n [theme.breakpoints.only(\"xs\")]: {\n marginTop: theme.spacing(0.15),\n },\n },\n topicContainer: {\n display: \"flex\",\n flexWrap: \"nowrap\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: 5,\n paddingLeft: 0,\n width: \"100%\",\n [theme.breakpoints.down(\"sm\")]: {\n flexWrap: \"wrap\",\n },\n },\n topicPoster: {\n flex: \"33%\",\n margin: \"5px 5px 10px 0px\",\n [theme.breakpoints.down(\"sm\")]: {\n flex: \"60%\",\n },\n },\n topicMovie: {\n flex: \"16.6%\",\n [theme.breakpoints.down(\"sm\")]: {\n flex: \"30%\",\n },\n },\n imgFluid: {\n width: \"100%\",\n transition: \"transform .2s\",\n height: \"auto\",\n maxHeight: 275,\n },\n}));\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React from \"react\";\n\nvar _ref2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 0L18 4H15L13 0H11L13 4H10L8 0H6L8 4H5L3 0H2C0.9 0 0.00999999 0.9 0.00999999 2L0 14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V0H16Z\",\n fill: \"black\"\n});\n\nvar SvgCamera = function SvgCamera(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 16,\n viewBox: \"0 0 20 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _ref2);\n};\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgCamera, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/camera.57ccf5b8.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Grid, Box, Link } from \"@material-ui/core\";\nimport { makeStyles, createStyles } from \"@material-ui/core/styles\";\nimport classNames from \"classnames\";\nimport parse from \"html-react-parser\";\n\nimport { LazyLoadImage } from \"react-lazy-load-image-component\";\nimport \"react-lazy-load-image-component/src/effects/blur.css\";\n\nimport PlayButton from \"../../components/PlayButton\";\n\nimport { getThumbnailUrl } from \"../../utils/common\";\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n largeWidePoster: {\n width: \"100%\",\n overflow: \"hidden\",\n transition: \".5s ease\",\n [theme.breakpoints.up(\"md\")]: {\n maxWidth: 620,\n maxHeight: 376,\n },\n },\n smallWidePoster: {\n width: \"100%\",\n minHeight: 97,\n overflow: \"hidden\",\n opacity: 1,\n transition: \".5s ease\",\n \"&:first-child\": {\n marginRight: theme.spacing(1),\n },\n maxWidth: 300,\n maxHeight: 180,\n [theme.breakpoints.between(\"sm\", \"md\")]: {\n maxWidth: 400,\n maxHeight: 180 * (400 / 300),\n },\n },\n wideMask: {\n opacity: 0,\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n height: \"100%\",\n backgroundColor: \"rgba(0, 0, 0, 0.65)\",\n color: \"white\",\n padding: \"5%\",\n paddingBottom: 0,\n marginBottom: 10,\n transitionDuration: \"0.5s\",\n \"&:hover\": {\n opacity: 1,\n },\n [theme.breakpoints.down(\"xs\")]: {\n display: \"none\",\n },\n },\n wideMaskSmall: {\n padding: \"5%\",\n },\n wideMaskTitle: {\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n },\n wideMaskLargeTitle: {\n ...theme.typography.h2,\n fontWeight: 500,\n },\n wideMaskSmallTitle: {\n ...theme.typography.caption,\n fontSize: 24,\n fontWeight: 700,\n },\n metaContainer: {\n marginTop: 12,\n },\n metaLargeText: {\n ...theme.typography.tags,\n color: theme.palette.common.grey[300],\n marginBottom: theme.spacing(0.75),\n },\n metaText: {\n ...theme.typography.caption,\n color: theme.palette.common.grey[300],\n marginBottom: theme.spacing(0.75),\n fontSize: 14,\n },\n blockWithText: {\n width: \"28rem\",\n maxWidth: \"34rem\",\n overflow: \"hidden\",\n position: \"relative\",\n lineHeight: \"1.2em\",\n maxHeight: \"3.6em\",\n textAlign: \"justify\",\n marginRight: \"-1em\",\n paddingRight: \"1em\",\n marginBottom: \"0.5em\",\n \"&&:before\": {\n content: \"'......'\",\n position: \"absolute\",\n right: 0,\n bottom: 0,\n },\n \"&&:after\": {\n content: \"''\",\n position: \"absolute\",\n right: 0,\n width: \"1em\",\n height: \"1em\",\n marginTop: \"0.2em\",\n background: \"transparent\",\n },\n },\n blockWithText2: {\n maxWidth: \"34rem\",\n overflow: \"hidden\",\n position: \"relative\",\n lineHeight: \"1.2em\",\n maxHeight: \"3.6em\",\n textAlign: \"justify\",\n marginRight: \"-1em\",\n paddingRight: \"1em\",\n marginBottom: \"0.5em\",\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: \"1em\",\n display: \"none\",\n },\n },\n playButtonContainerLg: {\n marginTop: theme.spacing(3),\n [theme.breakpoints.only(\"md\")]: {\n marginTop: theme.spacing(2),\n },\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: theme.spacing(10),\n },\n [theme.breakpoints.only(\"xs\")]: {\n marginTop: theme.spacing(0.75),\n },\n },\n playButtonContainerSm: {\n marginTop: theme.spacing(4),\n [theme.breakpoints.only(\"lg\")]: {\n marginTop: theme.spacing(2.5),\n },\n [theme.breakpoints.only(\"md\")]: {\n marginTop: theme.spacing(0.5),\n },\n [theme.breakpoints.only(\"xs\")]: {\n marginTop: theme.spacing(0.15),\n },\n },\n }),\n);\n\nconst WideVideoAlbumItem = ({\n size = \"sm\",\n id,\n title,\n description,\n others,\n showDesceiption,\n poster,\n}) => {\n const classes = useStyles();\n\n const WideHoverMask = () => {\n const wideMaskSizeTitleClass =\n size === \"lg\" ? classes.wideMaskLargeTitle : classes.wideMaskSmallTitle;\n const metaTextClass =\n size === \"lg\" ? classes.metaLargeText : classes.metaText;\n\n return (\n <>\n \n \n \n \n {title}\n \n \n \n \n {others}\n \n \n \n \n {parse(description.replace(/^

/, \"\").replace(/<\\/p>$/, \"\"))}\n \n \n \n \n \n \n \n \n \n \n \n \n );\n };\n\n const largeWideVideo = () => {\n return (\n <>\n \n {/* layout error */}\n {/* */}\n

\n \n \n
\n \n \n );\n };\n\n const smallWideVideo = () => {\n return (\n <>\n \n \n \n \n \n );\n };\n\n const render = () => {\n if (size === \"sm\") {\n return smallWideVideo();\n } else {\n return largeWideVideo();\n }\n };\n\n return (\n <>\n \n {render()}\n \n \n );\n};\n\nWideVideoAlbumItem.defaultProps = {};\n\nWideVideoAlbumItem.propsTypes = {};\n\nexport default WideVideoAlbumItem;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Typography, Grid, Box, Button } from \"@material-ui/core\";\nimport classNames from \"classnames\";\n\nimport useStyles from \"./styles\";\nimport { ReactComponent as CameraIcon } from \"../../images/icons/camera.svg\";\nimport MovieAlbumItem from \"../MovieAlbumItem\";\nimport WideVideoAlbumItem from \"../../components/WideVideoAlbumItem\";\n\nimport get from \"lodash/get\";\nimport isEmpty from \"lodash/isEmpty\";\nimport { staticUrl } from \"../../clientAPI\";\n\nconst MovieAlbum = props => {\n const classes = useStyles();\n const {\n slot = {},\n hideTitle,\n hideTitleIcon,\n hideMoreLink,\n hoverMaskMode,\n hoverEnlargePoster,\n extraMarginBottom,\n } = props;\n const firstFourMovies = get(slot, \"items\", []).slice(0, 4);\n\n const DefaultLayout = () => {\n return (\n <>\n {slot.items.map((movie, index) => (\n \n \n \n ))}\n \n );\n };\n\n const ImgTopicLayout = () => {\n return (\n <>\n \n \n \n \n \n \n {firstFourMovies.map(movie => (\n \n \n \n ))}\n \n \n );\n };\n\n const WidePosterLayout = () => (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n\n const SeedLayout = () => (\n <>\n {slot.items.map(movie => (\n \n \n \n \n \n ))}\n \n );\n\n const renderIcon = () => {\n return slot.title ? (\n \n ) : (\n \"\"\n );\n };\n\n const renderTitle = () => {\n return hideTitle ? (\n \"\"\n ) : (\n <>\n \n {slot && renderIcon()}\n {slot && slot.title}\n \n \n );\n };\n\n const renderList = slot => {\n if (isEmpty(slot) || isEmpty(slot.items)) {\n return;\n }\n if (slot.layout === \"img_topic\") {\n return ;\n } else if (slot.layout === \"seed\") {\n return ;\n } else if (slot.layout === \"wide\") {\n return slot.items.length >= 6 && ;\n }\n return ;\n };\n\n return (\n
\n \n {renderTitle()}\n \n \n \n \n \n \n
\n \n {renderList(slot)}\n \n
\n
\n );\n};\n\nMovieAlbum.defaultProps = {\n hideTitle: false,\n hideTitleIcon: false,\n hideMoreLink: false,\n hoverEnlargePoster: false,\n extraMarginBottom: false,\n};\n\nMovieAlbum.propsTypes = {\n slot: PropTypes.array.isRequired,\n hideTitle: PropTypes.bool,\n hideTitleIcon: PropTypes.bool,\n hideMoreLink: PropTypes.bool,\n hoverMaskMode: PropTypes.bool,\n hoverEnlargePoster: PropTypes.bool,\n extraMarginBottom: PropTypes.bool,\n};\n\nexport default MovieAlbum;\n","export default {\n movies: [\n {\n id: 0,\n // poster: \"/poster/天聲好手.jpg\",\n poster: \"/poster/%E5%A4%A9%E8%81%B2%E5%A5%BD%E6%89%8B.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 1,\n // poster: \"/poster/天錯之合.jpg\",\n poster: \"/poster/%E5%A4%A9%E9%8C%AF%E4%B9%8B%E5%90%88.jpg\",\n name: \"天錯之合\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 2,\n poster: \"/poster/昨日殺神.jpg\",\n name: \"昨日殺神\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 3,\n poster: \"/poster/柴公園.jpg\",\n name: \"柴公園\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 4,\n poster: \"/poster/町田君的世界.jpg\",\n name: \"町田君的世界\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 5,\n poster: \"/poster/天聲好手.jpg\",\n name: \"解憂雜貨店\",\n others: \"英文配音 | 普遍級\",\n },\n ],\n slots: [\n {\n id: 0,\n title: \"最新影片\",\n more_link: \"\",\n items: [\n {\n id: 0,\n poster: \"/poster/天聲好手.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 1,\n poster: \"/poster/天錯之合.jpg\",\n name: \"天錯之合\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 2,\n poster: \"/poster/昨日殺神.jpg\",\n name: \"昨日殺神\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 3,\n poster: \"/poster/柴公園.jpg\",\n name: \"柴公園\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 4,\n poster: \"/poster/町田君的世界.jpg\",\n name: \"町田君的世界\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 5,\n poster: \"/poster/天聲好手.jpg\",\n name: \"解憂雜貨店\",\n others: \"英文配音 | 普遍級\",\n },\n ],\n },\n {\n id: 4,\n layout: \"img_topic\",\n title: \"精選專區\",\n icon: \"\",\n more_link: true,\n topic_img: \"/topic/topic2.png\",\n items: [\n {\n id: 0,\n poster: \"/poster/天聲好手.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 1,\n poster: \"/poster/天錯之合.jpg\",\n name: \"天錯之合\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 2,\n poster: \"/poster/昨日殺神.jpg\",\n name: \"昨日殺神\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 3,\n poster: \"/poster/柴公園.jpg\",\n name: \"柴公園\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 4,\n poster: \"/poster/町田君的世界.jpg\",\n name: \"町田君的世界\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 5,\n poster: \"/poster/天聲好手.jpg\",\n name: \"解憂雜貨店\",\n others: \"英文配音 | 普遍級\",\n },\n ],\n },\n {\n id: \"hot\",\n layout: \"wide\",\n title: \"熱門影片\",\n icon: \"\",\n more_link: false,\n items: [\n {\n id: 0,\n poster: \"/poster/poster_wide_l1.png\",\n name: \"雨傘學院\",\n others: \"西語配音 | 限制級\",\n },\n {\n id: 1,\n poster: \"/poster/poster_wide_s1.png\",\n name: \"不死軍團\",\n others: \"西語配音 | 限制級\",\n },\n {\n id: 2,\n poster: \"/poster/poster_wide_s2.png\",\n name: \"光譜發現愛\",\n others: \"西語配音 | 限制級\",\n },\n {\n id: 3,\n poster: \"/poster/poster_wide_l2.png\",\n name: \"ARRESTED DEVELOPMENT\",\n others: \"西語配音 | 限制級\",\n },\n {\n id: 4,\n poster: \"/poster/poster_wide_s3.png\",\n name: \"毒梟\",\n others: \"西語配音 | 限制級\",\n },\n {\n id: 5,\n poster: \"/poster/poster_wide_s4.png\",\n name: \"愛x死x機器人\",\n others: \"西語配音 | 限制級\",\n },\n ],\n },\n {\n id: 1,\n title: \"教育專區\",\n link: \"\",\n items: [\n {\n id: 0,\n poster: \"/poster/天聲好手.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 1,\n poster: \"/poster/天錯之合.jpg\",\n name: \"天錯之合\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 2,\n poster: \"/poster/昨日殺神.jpg\",\n name: \"昨日殺神\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 3,\n poster: \"/poster/柴公園.jpg\",\n name: \"柴公園\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 4,\n poster: \"/poster/町田君的世界.jpg\",\n name: \"町田君的世界\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 5,\n poster: \"/poster/天聲好手.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n ],\n },\n {\n id: 2,\n title: \"動畫專區\",\n link: \"\",\n items: [\n {\n id: 0,\n poster: \"/poster/天聲好手.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 1,\n poster: \"/poster/天錯之合.jpg\",\n name: \"天錯之合\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 2,\n poster: \"/poster/昨日殺神.jpg\",\n name: \"昨日殺神\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 3,\n poster: \"/poster/柴公園.jpg\",\n name: \"柴公園\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 4,\n poster: \"/poster/町田君的世界.jpg\",\n name: \"町田君的世界\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 5,\n poster: \"/poster/天聲好手.jpg\",\n name: \"解憂雜貨店\",\n others: \"英文配音 | 普遍級\",\n },\n ],\n },\n {\n id: 3,\n title: \"推薦影片\",\n icon: \"camera\",\n more_link: false,\n items: [\n {\n id: 0,\n poster: \"/poster/天聲好手.jpg\",\n name: \"天聲好手\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 1,\n poster: \"/poster/天錯之合.jpg\",\n name: \"天錯之合\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 2,\n poster: \"/poster/昨日殺神.jpg\",\n name: \"昨日殺神\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 3,\n poster: \"/poster/柴公園.jpg\",\n name: \"柴公園\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 4,\n poster: \"/poster/町田君的世界.jpg\",\n name: \"町田君的世界\",\n others: \"英文配音 | 普遍級\",\n },\n {\n id: 5,\n poster: \"/poster/天聲好手.jpg\",\n name: \"解憂雜貨店\",\n others: \"英文配音 | 普遍級\",\n },\n ],\n },\n {\n id: 5,\n layout: \"seed\",\n title: \"視界播種\",\n icon: \"\",\n more_link: false,\n items: [\n {\n id: 0,\n poster: \"/poster/seed1.png\",\n link: \"\",\n },\n {\n id: 1,\n poster: \"/poster/seed2.png\",\n link: \"\",\n },\n {\n id: 2,\n poster: \"/poster/seed3.png\",\n link: \"\",\n },\n {\n id: 3,\n poster: \"/poster/seed4.png\",\n link: \"\",\n },\n ],\n },\n ],\n};\n","import { makeStyles } from \"@material-ui/styles\";\n\nexport default makeStyles(theme => ({\n root: {\n height: 48,\n },\n label: {\n color: \"black\",\n },\n menu: {\n display: \"flex\",\n justifyContent: \"space-between\",\n },\n menuItem: {\n marginRight: theme.spacing(2),\n \"&:last-child\": {\n marginRight: 0,\n },\n },\n popover: {\n pointerEvents: \"none\",\n },\n popoverContent: {\n pointerEvents: \"auto\",\n padding: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n border: theme.spacing(2),\n borderRadius: 10,\n boxShadow: \"0px 4px 4px rgba(193, 193, 193, 0.25)\",\n },\n menuGroupTitle: {\n width: 80,\n },\n partnerMenuGroupTitle: {\n width: 102,\n },\n menuGroupItem: {\n paddingTop: 0,\n },\n caption: {\n ...theme.typography.smallCaption,\n },\n navLink: {\n color: theme.palette.common.grey[800],\n fontWeight: 400,\n textDecoration: \"none\",\n \"&:hover\": {\n color: theme.palette.primary.dark,\n },\n },\n hidden: {\n visibility: \"hidden\",\n [theme.breakpoints.down(\"xs\")]: {\n display: \"none\",\n },\n },\n}));\n","import React, { useState, useRef } from \"react\";\n\nimport { withStyles, useTheme } from \"@material-ui/core/styles\";\nimport { Link } from \"react-router-dom\";\nimport {\n Popover,\n Typography,\n List,\n ListItem,\n useMediaQuery,\n Grid,\n} from \"@material-ui/core\";\nimport classNames from \"classnames\";\n\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport concat from \"lodash/concat\";\nimport orderBy from \"lodash/orderBy\";\nimport flatten from \"lodash/flatten\";\nimport slice from \"lodash/slice\";\nimport isEmpty from \"lodash/isEmpty\";\n\n// context\nimport { useHomeInfo } from \"../../useGlobal\";\n\n// styles\nimport useStyles from \"./styles\";\n\nconst LinkTabs = withStyles(theme => ({\n root: {\n borderBottom: \"1px solid #e8e8e8\",\n },\n indicator: {\n backgroundColor: theme.palette.primary.main,\n },\n}))(Tabs);\n\nconst LinkTab = withStyles(theme => ({\n root: {\n ...theme.typography.h5,\n textTransform: \"none\",\n minWidth: 115,\n marginRight: theme.spacing(1.75),\n color: theme.palette.common.grey[900],\n \"&:hover\": {\n color: theme.palette.common.black,\n opacity: 1,\n },\n \"&$selected\": {\n color: theme.palette.common.black,\n fontWeight: theme.typography.fontWeightMedium,\n },\n \"&:focus\": {\n color: theme.palette.common.black,\n },\n [theme.breakpoints.down(\"sm\")]: {\n minWidth: 70,\n },\n },\n selected: {},\n}))(Tab);\n\nexport default function MovieMenu (props) {\n const classes = useStyles();\n const theme = useTheme();\n\n const isSm = useMediaQuery(theme.breakpoints.down(\"sm\"));\n const isScrollButton = isSm ? \"off\" : \"on\";\n\n const { menus = {} } = useHomeInfo();\n const { children = [] } = menus;\n const maxChildrenMenus = 8;\n const childrenMenus = slice(\n orderBy(\n flatten(children.map(e => (menus[e]?.in_menu ? menus[e].pages : []))),\n ),\n 0,\n maxChildrenMenus,\n );\n const mixedMenus = concat(\n { name: \"所有分類\" },\n { name: \"所有影片\", href: \"/video/list\" },\n childrenMenus,\n );\n const menuLinks = mixedMenus.map(e => e.href);\n const pathIndex = menuLinks.indexOf(window.location.pathname);\n const activeTabIndex = pathIndex === -1 ? false : pathIndex;\n const allCatLink = window.location.pathname;\n\n const [value, setValue] = useState(activeTabIndex);\n const handleChange = (event, newValue) => {\n setValue(newValue);\n };\n\n const [anchorEl, setAnchorEl] = useState(null);\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const [openedPopover, setOpenedPopover] = useState(false);\n const popoverAnchor = useRef(null);\n\n const popoverEnter = ({ currentTarget }) => {\n setOpenedPopover(true);\n };\n\n const popoverLeave = ({ currentTarget }) => {\n setOpenedPopover(false);\n };\n\n const open = Boolean(anchorEl);\n\n const MenuGroup = props => {\n const { item, isPartner } = props;\n return (\n \n \n \n \n \n {item.groupTitle}\n \n \n {item.pages.slice(0, 5).map((page, i) => (\n \n \n {page.name}\n \n \n ))}\n \n \n {!isEmpty(item.pages.slice(5, 10)) && (\n \n \n \n
dummy
\n
\n {item.pages.slice(5, 10).map((page, i) => (\n \n \n {page.name}\n \n \n ))}\n
\n
\n )}\n
\n );\n };\n\n const renderMenuTab = (menu, idx) => {\n if (menu.name === \"所有分類\") {\n return (\n \n );\n }\n\n if (menu.href && menu.href.indexOf(\"http\") !== -1) {\n return (\n \n );\n }\n\n return (\n \n );\n };\n\n const AllPages = () => {\n const { tags, topics, partners } = menus;\n return (\n
\n {tags && !isEmpty(tags.pages) && (\n
\n \n
\n )}\n\n {topics && !isEmpty(topics.pages) && (\n
\n \n
\n )}\n\n {partners && !isEmpty(partners.pages) && (\n
\n \n
\n )}\n
\n );\n };\n return (\n
\n
\n
\n \n {mixedMenus.map((menu, idx) => renderMenuTab(menu, idx))}\n \n \n
{}
\n \n
\n
\n
\n );\n}\n"],"sourceRoot":""}