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Q,KAAM,IAEtEP,CAAS,C","sources":["client/components/ResponsiveBgImage.js","client/fever_form/style.js","client/hooks/useGameFormReduxData.js","client/styles/common.js","client/utils/generatePictureSourceData.js","components/Emphasize.js","editor/components/Tooltip.js","editor/components/Upload/useSingleFileDropzoneProps.js","editor/game_checkIn/components/lotteryTaskCarousel/BtnImgUpload.js","editor/game_checkIn/components/lotteryTaskCarousel/LotteryTaskCard.js","editor/game_checkIn/components/lotteryTaskCarousel/getCarouselProps.js","editor/game_checkIn/components/lotteryTaskCarousel/LotteryTaskCarousel.js","hooks/useLocalStorage.js","hooks/useShareLink.js","utils/delay.js","utils/url.js","utils/variantStyle.js"],"sourcesContent":["import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport { css } from '@emotion/core';\n\nimport { stylePropType } from 'utils/propTypes';\nimport generatePictureSourceData from 'client/utils/generatePictureSourceData';\n\nexport default function ResponsiveBgImage({ src = '', style }) {\n const sourceDatas = useMemo(() => generatePictureSourceData(src), [src]);\n const mediaStyles = sourceDatas.reduceRight(\n (str, data) => (str += `@media ${data.media} { background-image: url(${data.srcSet});} `),\n ''\n );\n return (\n
\n );\n}\n\nResponsiveBgImage.propTypes = {\n src: PropTypes.string,\n style: stylePropType\n};\n\nconst containerStyle = css`\n width: 100%;\n height: 100%;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: cover;\n`;\n","import { below } from 'utils/breakpoint';\n\nexport const generateMuiTextFieldCustomColorStyle = color => `\n color: ${color};\n .MuiInputBase-root, .MuiIconButton-root {\n font-size: inherit;\n color: inherit;\n }\n .MuiInput-underline:before,\n .MuiInput-underline:after,\n .MuiInput-underline:hover:not(.Mui-disabled):before {\n border-bottom-color: inherit;\n }\n .MuiInput-underline.Mui-error:after {\n border-bottom-color: #f44336;\n }\n .MuiInputBase-input.MuiInput-input {\n text-align: inherit;\n }\n`;\n\nexport const generateMuiSelectCustomColorStyle = color => `\n color: ${color};\n &.MuiInputBase-root {\n font-size: inherit;\n }\n &.MuiInput-underline:before,\n &.MuiInput-underline:after,\n &.MuiInput-underline:hover:not(.Mui-disabled):before {\n border-bottom-color: inherit;\n }\n & .MuiSelect-root.Mui-disabled {\n opacity: 0.5;\n }\n & .MuiSvgIcon-root.MuiSelect-icon {\n color: inherit;\n }\n`;\n\nexport const sectionWrapperStyle = `\n padding: 32px 48px 16px;\n ${below('sm')} {\n padding: 32px 16px 16px;\n }\n`;\n\nexport const textInputStyle = `\n line-height: 1.1875;\n padding: 7px 0;\n letter-spacing: 0.5px;\n`;\n\nexport const errorHintStyle = `\n text-align: right;\n font-size: 0.8125rem;\n line-height: 2rem;\n transition: all .1s linear;\n opacity: 0;\n color: #D52027;\n margin-left: 5px;\n`;\n\nexport const shortWidthSectionErrorHintStyle = `\n ${errorHintStyle}\n ${below('sm')} {\n float: right;\n }\n`;\n\nexport const fullWidthSectionErrorHintStyle = `\n ${errorHintStyle}\n float: right;\n`;\n\nexport function getFeverFormTextAlign(alignType = 0) {\n return {\n 0: 'left',\n 1: 'center',\n 2: 'right'\n }[alignType];\n}\n","import { useSelector } from 'react-redux';\n\nimport { IS_EDITOR_MODE } from 'config/envVariable';\n\nexport default function useGameFormReduxData() {\n const getter = IS_EDITOR_MODE ? s => s : s => s.gameFormBased;\n const getLotteryParticipant = IS_EDITOR_MODE ? s => s.lotteries : s => s;\n const pages = useSelector(s => getter(s).pages);\n const sections = useSelector(s => getter(s).sections);\n const fields = useSelector(s => getter(s).fields);\n const options = useSelector(s => getter(s).options);\n const settings = useSelector(s => getter(s).settings);\n const lotteryParticipant = useSelector(s => getLotteryParticipant(s).lotteryParticipant);\n return { pages, sections, fields, options, settings, lotteryParticipant };\n}\n","import { preventMarginCollapse } from 'styles/common';\nimport { below } from 'utils/breakpoint';\nimport { getColorRGBA } from 'utils/colorConvert';\nimport { IS_IFRAME_MODE, IFRAME_MODE_MIN_HEIGHT, POWER_BY_HEIGHT } from 'config/envVariable';\nimport { defaultThemeSetting } from 'config/promoDefaultSettingValue';\n\nexport const clientBodyStyle = !IS_IFRAME_MODE ? 'height: 100%; overflow: auto;' : '';\nexport const appContainerStyle = `\n max-width: 720px;\n min-height: calc(\n ${IS_IFRAME_MODE ? `${IFRAME_MODE_MIN_HEIGHT}px` : '100%'} - ${POWER_BY_HEIGHT}px\n );\n margin: 0 auto;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n`;\nexport const clientSmallWrapperStyle = `\n max-width: 720px;\n padding: 32px 0;\n\n @media only screen and (max-width: 720px) {\n width: 100%;\n padding: 16px 8px;\n }\n`;\nexport const clientBigWrapperStyle = `\n max-width: 960px;\n padding: 32px 4px;\n\n @media only screen and (max-width: 767px) {\n width: 100%;\n padding: 16px 8px;\n }\n`;\nexport const routeContainerStyle = `\n width: 100%;\n border-radius: 8px;\n`;\n\nexport const shadowLightStyle = `\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.14);\n`;\nexport const shadowDarkStyle = `\n box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 3px -2px rgba(0, 0, 0, 0.12), 0 3px 4px 0 rgba(0, 0, 0, 0.14);\n`;\n\nconst loadingBgImg = `data:image/svg+xml;base64,PCEtLSBCeSBTYW0gSGVyYmVydCAoQHNoZXJiKSwgZm9yIGV2ZXJ5b25lLiBNb3JlIEAgaHR0cDovL2dvby5nbC83QUp6YkwgLS0+Cjxzdmcgd2lkdGg9IjQ0IiBoZWlnaHQ9IjQ0IiB2aWV3Qm94PSIwIDAgNDQgNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICA8Y2lyY2xlIGN4PSIyMiIgY3k9IjIyIiByPSIxIj4KICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iciIKICAgICAgICAgICAgICAgIGJlZ2luPSIwcyIgZHVyPSIxLjhzIgogICAgICAgICAgICAgICAgdmFsdWVzPSIxOyAyMCIKICAgICAgICAgICAgICAgIGNhbGNNb2RlPSJzcGxpbmUiCiAgICAgICAgICAgICAgICBrZXlUaW1lcz0iMDsgMSIKICAgICAgICAgICAgICAgIGtleVNwbGluZXM9IjAuMTY1LCAwLjg0LCAwLjQ0LCAxIgogICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZS1vcGFjaXR5IgogICAgICAgICAgICAgICAgYmVnaW49IjBzIiBkdXI9IjEuOHMiCiAgICAgICAgICAgICAgICB2YWx1ZXM9IjE7IDAiCiAgICAgICAgICAgICAgICBjYWxjTW9kZT0ic3BsaW5lIgogICAgICAgICAgICAgICAga2V5VGltZXM9IjA7IDEiCiAgICAgICAgICAgICAgICBrZXlTcGxpbmVzPSIwLjMsIDAuNjEsIDAuMzU1LCAxIgogICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgICAgICAgPC9jaXJjbGU+CiAgICAgICAgPGNpcmNsZSBjeD0iMjIiIGN5PSIyMiIgcj0iMSI+CiAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InIiCiAgICAgICAgICAgICAgICBiZWdpbj0iLTAuOXMiIGR1cj0iMS44cyIKICAgICAgICAgICAgICAgIHZhbHVlcz0iMTsgMjAiCiAgICAgICAgICAgICAgICBjYWxjTW9kZT0ic3BsaW5lIgogICAgICAgICAgICAgICAga2V5VGltZXM9IjA7IDEiCiAgICAgICAgICAgICAgICBrZXlTcGxpbmVzPSIwLjE2NSwgMC44NCwgMC40NCwgMSIKICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogICAgICAgICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2Utb3BhY2l0eSIKICAgICAgICAgICAgICAgIGJlZ2luPSItMC45cyIgZHVyPSIxLjhzIgogICAgICAgICAgICAgICAgdmFsdWVzPSIxOyAwIgogICAgICAgICAgICAgICAgY2FsY01vZGU9InNwbGluZSIKICAgICAgICAgICAgICAgIGtleVRpbWVzPSIwOyAxIgogICAgICAgICAgICAgICAga2V5U3BsaW5lcz0iMC4zLCAwLjYxLCAwLjM1NSwgMSIKICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogICAgICAgIDwvY2lyY2xlPgogICAgPC9nPgo8L3N2Zz4=`;\nexport const loadingBgImgStyle = `rgb(205, 205, 205) url('${loadingBgImg}') no-repeat center`;\n\nexport function convertSettingTheme2ThemeStyle(settingTheme) {\n const { bgColor: contentBgColor, btnColor, textColor } = settingTheme ?? defaultThemeSetting;\n const themeStyle = {\n contentBgColor,\n btnColor,\n textColor\n };\n return themeStyle;\n}\nexport function convertSettingStyle2ComponentStyle(settingStyle = {}) {\n const {\n contentBgType,\n contentBgColor,\n contentAlign,\n contentBorderRadius,\n buttonBgColor,\n buttonTextColor,\n buttonSize,\n optionBgColor,\n optionTextColor,\n titleColor,\n descColor,\n answerColor\n } = settingStyle;\n return {\n contentBgType,\n contentBgColor,\n isContentBgColorTransparent: (contentBgColor && getColorRGBA(contentBgColor).alpha) === 0,\n contentAlign,\n contentBorderRadius,\n titleColor,\n descColor,\n answerColor,\n optionColor: optionBgColor,\n optionLabelColor: optionTextColor,\n buttonColor: buttonBgColor,\n buttonLabelColor: buttonTextColor,\n buttonSize\n };\n}\nexport function convertSettingStyle2FormBasedEditorStyle(settingStyle = {}) {\n const {\n optionBgColor,\n optionTextColor,\n titleColor,\n descColor,\n bgType,\n bgColor,\n bgImgUrl,\n contentBgColor,\n contentAlign,\n buttonBgColor,\n buttonTextColor,\n buttonSize\n } = settingStyle;\n return {\n titleColor,\n descColor,\n optionTextColor,\n optionBgColor,\n background: {\n type: bgType,\n color: bgColor,\n imageUrl: bgImgUrl\n },\n contentBackground: {\n type: 1,\n color: contentBgColor\n },\n contentAlign,\n btnTextColor: buttonTextColor,\n btnColor: buttonBgColor,\n btnSize: buttonSize,\n isContentBgTransparent: (contentBgColor && getColorRGBA(contentBgColor).alpha) === 0\n };\n}\n\nexport const resultHeaderContainerStyle = themeStyle =>\n `\n ${preventMarginCollapse}\n background-color: ${themeStyle.contentBgColor};\n border-radius: 8px 8px 0 0;\n padding: 0 16px;\n ${below('sm')} {\n padding: 0 8px;\n }\n \n `;\nexport const resultHeaderBtnWrapperStyle = `\n padding: 16px 0;\n ${below('sm')} {\n padding: 8px 0;\n }\n`;\n\nexport const resultFooterContainerStyle = themeStyle =>\n `\n ${preventMarginCollapse}\n width: 100%;\n background-color: ${themeStyle.contentBgColor}; \n padding-bottom: 32px;\n\n `;\n","import { convertProxyImgUrl } from 'client/utils/getProxyImgUrl';\n\nconst originalFileFirstPathName = 'picture-origin';\nconst compressedFileFirstPathName = 'picture-compressed';\nconst compressedSizes = [\n { size: 800, type: 'md', imgSize: 768 },\n { size: 1200, type: 'lg', imgSize: 1280 }\n];\n\nexport default function generatePictureSourceData(src) {\n const re = /(https:\\/\\/.+?)\\/(.+?)\\/(.+)\\/(.+)\\.(\\w+)/i;\n const parsed = re.exec(src);\n if (parsed) {\n const [, origin, firstPath, restPath, filename, ext] = parsed;\n if (firstPath === originalFileFirstPathName) {\n const sources = compressedSizes.map(({ size, type }) => ({\n srcSet: `${origin}/${compressedFileFirstPathName}/${restPath}/${filename}-${type}.${ext}`,\n media: `(max-width: ${size}px)`\n }));\n return sources;\n }\n }\n return [];\n}\n\nexport function generatePictureSourceDataByProxyImage(src) {\n if (!src) return [];\n const re = /(https:\\/\\/.+?)\\/(.+?)\\/(.+)\\/(.+)\\.(\\w+)/i;\n const parsed = re.exec(src);\n const ext = parsed[parsed.length - 1];\n const sources = compressedSizes.map(({ size, imgSize }) => ({\n // svg 不支援縮圖功能,所以用全圖\n srcSet:\n ext === 'svg'\n ? src\n : convertProxyImgUrl({\n url: src,\n resizeWidth: imgSize\n }),\n media: `(max-width: ${size}px)`\n }));\n return sources;\n}\n","import React from 'react';\n\nexport default function Emphasize({ children, color = '#ff004e', bold = false }) {\n return {children};\n}\n","import Tooltip from '@material-ui/core/Tooltip';\nimport { withStyles } from '@material-ui/core/styles';\n\nexport default withStyles(({ style }) => ({\n tooltip: {\n padding: `12px`,\n backgroundColor: `#484848`,\n ...style\n }\n}))(Tooltip);\n","import { useDropzone } from 'react-dropzone';\nimport i18n from 'i18next';\n\nfunction useSingleFileDropzoneProps({\n enableBase64,\n config = {},\n onDropSuccess = () => {},\n onDropError = () => {}\n} = {}) {\n async function onDropAccepted(acceptedFiles) {\n const file = acceptedFiles[0];\n let resp = { file };\n if (enableBase64) {\n resp.base64 = await getBase64(file);\n }\n onDropSuccess(resp);\n }\n async function onDropRejected(acceptedFiles) {\n const file = acceptedFiles[0];\n const { size, type } = file;\n if (size > dropzoneConfig.maxSize) {\n onDropError(\n i18n.t('notify.file_drop.failed.size', {\n size: dropzoneConfig.maxSize / 1000 / 1000\n })\n );\n } else if (dropzoneConfig.accept.indexOf(String(type).toLowerCase()) === -1) {\n onDropError(\n i18n.t('notify.file_drop.failed.type', {\n types: dropzoneConfig.accept\n .split(',')\n .map(e => e.split('/')[1])\n .join(', ')\n .toUpperCase()\n })\n );\n }\n }\n\n const dropzoneConfig = {\n ...generalConfig,\n ...config\n };\n const { getRootProps, getInputProps, open, inputRef } = useDropzone({\n onDropAccepted,\n onDropRejected,\n ...dropzoneConfig\n });\n\n return { getRootProps, getInputProps, open, inputRef };\n}\n\nexport default useSingleFileDropzoneProps;\n\nconst generalConfig = {\n multiple: false,\n maxSize: 3000000,\n accept: 'image/png,image/gif,image/jpg,image/jpeg'\n};\n\nfunction getBase64(file) {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result);\n reader.onerror = error => reject(error);\n });\n}\n","import React from 'react';\nimport i18n from 'i18next';\nimport { css } from '@emotion/core';\nimport Button from '@material-ui/core/Button';\nimport AddCircleIcon from '@material-ui/icons/AddCircle';\n\nimport Tooltip from 'editor/components/Tooltip';\nimport useSingleFileDropzoneProps from 'editor/components/Upload/useSingleFileDropzoneProps';\n\nexport default function BtnImgUpload({\n onDropSuccess = () => {},\n onDropError = () => {},\n firstView = false\n}) {\n const { getRootProps, getInputProps } = useSingleFileDropzoneProps({\n enableBase64: true,\n onDropSuccess,\n onDropError\n });\n\n return (\n