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6B,qDAAqD,sBAAwB,gDAAgD,uBAAyB,iDAAiD,iBAAmB,2CAA2C,QAAU,kCAAkC,gBAAkB,0CAA0C,cAAgB,wCAAwC,gBAAkB,0CAA0C,WAAa,qCAAqC,WAAa,qCAAqC,cAAgB,wCAAwC,WAAa,qCAAqC,eAAiB,yCAAyC,YAAc,sCAAsC,kBAAoB,4CAA4C,YAAc,sCAAsC,YAAc,sCAAsC,WAAa,qCAAqC,WAAa,qCAAqC,aAAe,uCAAuC,WAAa,qCAAqC,UAAY,oCAAoC,oBAAsB,8CAA8C,gBAAkB,0CAA0C,eAAiB,yCAAyC,WAAa,qCAAqC,WAAa,qCAAqC,kBAAoB,4CAA4C,oBAAsB,8CAA8C,uBAAyB","sources":["webpack://_N_E/./src/components/input/TextInputSelect.js","webpack://_N_E/./src/components/rows/NameWithRightArrow.js","webpack://_N_E/./src/images/icons/circle_plus_brand_color.svg","webpack://_N_E/./src/components/rows/ContentWithRightArrow.js","webpack://_N_E/./src/pages/mypage/index.js","webpack://_N_E/./src/images/icons/clipboard_copy.svg","webpack://_N_E/./src/pages/mypage/seller-dashboard.js","webpack://_N_E/./src/components/rows/contentWithRightArrow.module.scss","webpack://_N_E/./src/components/rows/nameWithRightArrow.module.scss","webpack://_N_E/./src/pages/mypage/index.module.scss","webpack://_N_E/./src/pages/mypage/seller-dashboard.module.scss"],"sourcesContent":["import styles from \"components/input/input.module.scss\";\nimport utilStyles from \"styles/utils.module.scss\";\nimport classNames from \"classnames\";\nimport {useEffect} from \"react\";\nimport ArrowDownIcon from \"images/icons/arrow_down_757575.svg\";\n\n\nexport default function TextInputSelect (props) {\n const {placeholder, value, disabled, readonly, error, dark, options} = props;\n const onChange = props.onChange || function(){};\n\n return (\n
\n {value ? options[value] : placeholder}\n \n \n
\n\n // {\n // if (e.key === 'Enter') {\n // onEnter();\n // }\n // }} type={type || 'text'} value={value} disabled={disabled || readonly} onChange={evt => onChangeWrapper(evt.target.value)}\n // onBlur={e => onBlur(e)}\n // className={classNames(\n // styles.input, disabled ? styles.input_disabled : undefined, readonly ? styles.input_readonly : undefined,\n // error ? styles.error : undefined, dark ? styles.dark : undefined\n // )} placeholder={placeholder} maxLength={maxLength} />\n );\n}\n","import useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport styles from \"components/rows/nameWithRightArrow.module.scss\";\nimport utilStyles from 'styles/utils.module.scss'\nimport classNames from \"classnames\";\nimport ArrowRightIcon from \"images/icons/arrow_right_757575_16.svg\";\nimport Link from \"next/link\";\nimport {addressRoute} from \"common/const\";\n\n\nexport default function NameWithRightArrow (props) {\n const isMobile = useMediaQuery(`(max-width:${utilStyles.breakpointMobile})`);\n\n const {title, subtitle, href, first, last, disableLink, rightButton} = props;\n const onClick = props.onClick || (() => {\n typeof mixpanel !== 'undefined' && mixpanel.track('NameWithRightArrowClick', {\n title: title,\n });\n });\n\n const row = (\n \n
\n
\n {title}\n { subtitle && {subtitle} }\n
\n {\n rightButton ? rightButton : \n }\n
\n
\n );\n\n if (disableLink) return row;\n\n return (\n \n {row}\n \n )\n}\n","var _circle, _path, _path2;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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\nimport * as React from \"react\";\n\nvar SvgCirclePlusBrandColor = function SvgCirclePlusBrandColor(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 21,\n height: 20,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 10.5,\n cy: 10,\n r: 7.5,\n fill: \"#FFA0CC\",\n fillOpacity: 0.3\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M10.5 3.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333Zm-5.892.774a8.333 8.333 0 1 1 11.785 11.785A8.333 8.333 0 0 1 4.608 4.107Z\",\n fill: \"#FFA0CC\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5 8.334v1.667m0 0v1.666m0-1.666h1.666M10.5 10H8.833\",\n stroke: \"#FFA0CC\",\n strokeWidth: 1.667,\n strokeLinecap: \"square\"\n })));\n};\n\nexport default SvgCirclePlusBrandColor;","import useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport styles from \"components/rows/contentWithRightArrow.module.scss\";\nimport utilStyles from 'styles/utils.module.scss'\nimport classNames from \"classnames\";\nimport ArrowRightIcon from \"images/icons/arrow_right_757575_16.svg\";\nimport Link from \"next/link\";\n\n\nexport default function ContentWithRightArrow(props) {\n const isMobile = useMediaQuery(`(max-width:${utilStyles.breakpointMobile})`);\n\n const {title, subtitle, href, first, last, disableLink, rightButton, children, firstWithoutPadding} = props;\n const onClick = props.onClick || (() => {\n typeof mixpanel !== 'undefined' && mixpanel.track('NameWithRightArrowClick', {\n title: title,\n });\n });\n\n const row = (\n \n
\n {\n children ?\n children :\n
\n {title}\n {subtitle && {subtitle}}\n
\n }\n {\n rightButton ? rightButton : \n }\n
\n\n
\n );\n\n if (disableLink) return row;\n\n return (\n \n {row}\n \n )\n}\n","\n import __i18nConfig from '@next-translate-root/i18n'\n import __loadNamespaces from 'next-translate/loadNamespaces'\n import NavigationLayout from \"components/layout/NavigationLayout\";\nimport styles from \"pages/mypage/index.module.scss\";\nimport utilStyles from \"styles/utils.module.scss\";\nimport CirclePlusIcon from \"images/icons/circle_plus_brand_color.svg\";\nimport TitleBar from \"components/layout/TitleBar\";\nimport { MyInfoCard } from \"components/cards/MyInfoCard\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport { useRouter } from \"next/router\";\nimport OrderCountBriefCard from \"components/cards/order/OrderCountBriefCard\";\nimport { useContext, useEffect, useState } from \"react\";\nimport Link from \"next/link\";\nimport { addressRoute, COUNTRY_CODE, faqRoute, getCreatorPaletteRoute, inquiryRoute, likeRoute, loginRoute, myInfoRoute, newPostRoute, nonMemberOrderSearchRoute, ordersRoute, productInquiriesRoute, proVerificationRoute, refundAccountRoute, reviewRoute, sellerDashboardRoute } from \"common/const\";\nimport { Axios, defaultCacheOption } from \"api\";\nimport Loading from \"components/Loading\";\nimport NameWithRightArrow from \"components/rows/NameWithRightArrow\";\nimport FullButton from \"components/buttons/FullButton\";\nimport UserContext from \"context/AuthContext\";\nimport classNames from \"classnames\";\nimport { captureException, captureMessage } from \"@sentry/nextjs\";\nimport { getLocalStorageCountryCode, isApp, numberWithComma, replaceAndConcat } from \"common/utils\";\nimport SimplePostListCard from \"components/cards/SimplePostListCard\";\nimport DefaultProfileIcon from \"images/icons/default_profile.svg\";\nimport ArrowRightIcon from \"images/icons/arrow_right_757575_16.svg\";\nimport Toggle from \"components/toggle\";\nimport PushContext from \"context/PushContext\";\nimport MainBanner from \"components/sections/MainBanner\";\nimport useTranslation from \"next-translate/useTranslation\";\nimport parse from \"html-react-parser\";\nimport ContentWithRightArrow from \"components/rows/ContentWithRightArrow\";\nimport I18nContext from \"context/I18nContext\";\nimport { CountryFlagImage } from \"components/country/CountryImage\";\nimport { formatCurrencyValue } from \"pages/mypage/seller-dashboard\";\nimport { KOREA_COUNTRY_CODE } from \"common/i18n\";\nexport const StatRow = (props) => {\n const { title, value, description, subDescription } = props;\n return (
\n
\n {title}\n {value}\n
\n
\n {description}\n {subDescription}\n
\n
);\n};\nconst SellerSection = () => {\n const { t } = useTranslation('mypage');\n const defaultData = {\n accumulatedPoints: null,\n usedPoints: null,\n pendingPoints: null,\n isLoading: false,\n error: null,\n total_left: 0\n };\n const { user, commissionRate } = useContext(UserContext);\n const [data, setData] = useState(defaultData);\n useEffect(async () => {\n if (!user)\n return;\n try {\n setData(val => {\n const newState = JSON.parse(JSON.stringify(val));\n newState.isLoading = true;\n return newState;\n });\n const res = await Axios.get('/v1/my-shop/stats/rough');\n if (res.status < 400) {\n setData(val => {\n const newState = JSON.parse(JSON.stringify(val));\n newState.accumulatedPoints = res.data.accumulated_points;\n newState.pendingPoints = res.data.pending_points;\n newState.usedPoints = res.data.used_points;\n newState.total_left = res.data.total_left;\n return newState;\n });\n }\n }\n catch (e) {\n }\n finally {\n setData(val => {\n const newState = JSON.parse(JSON.stringify(val));\n newState.isLoading = false;\n return newState;\n });\n }\n }, [user?.id]);\n const currencyText = COUNTRY_CODE === KOREA_COUNTRY_CODE ? 'P' : '$';\n const subDescription = (point) => {\n if (COUNTRY_CODE === KOREA_COUNTRY_CODE) {\n return null;\n }\n return '(' + numberWithComma(point) + 'P)';\n };\n return (
\n
{t('mypage.title')}
\n
{t('mypage.description', { commissionRate: commissionRate })}
\n \n {data.isLoading ?\n
\n \n
\n :\n (data.accumulatedPoints !== null && data.accumulatedPoints !== undefined &&\n <>\n \n {(COUNTRY_CODE === KOREA_COUNTRY_CODE) ? () : ()}\n\n \n )}\n
);\n};\nconst PostPlaceholder = ({ text }) => {\n return (\n \n
\n \n {text}\n
\n
\n );\n};\nconst PaletteSection = () => {\n const userContext = useContext(UserContext);\n const user = userContext.user;\n const code = user ? user.code : null;\n useEffect(() => {\n if (code) {\n fetchPalette();\n }\n }, [code]);\n const { t } = useTranslation('mypage');\n const INITIAL_POST_DATA = [\n t('mypage.palettePlaceholder1'),\n t('mypage.palettePlaceholder2'),\n t('mypage.palettePlaceholder3'),\n ];\n const [paletteData, setPaletteData] = useState({\n posts: JSON.parse(JSON.stringify(INITIAL_POST_DATA)),\n error: false,\n isLoading: false\n });\n const fetchPalette = async () => {\n try {\n setPaletteData({\n posts: JSON.parse(JSON.stringify(INITIAL_POST_DATA)),\n error: false,\n isLoading: true\n });\n const res = await Axios.get(`v1/palette/creator/${code}/palette/`, {\n cache: defaultCacheOption\n });\n if (res.status < 400) {\n setPaletteData(values => {\n const newValues = JSON.parse(JSON.stringify(values));\n newValues.posts = replaceAndConcat(newValues.posts, res.data.posts.slice(0, 3));\n newValues.isLoading = false;\n return newValues;\n });\n }\n else {\n setPaletteData(values => {\n const newValues = Object.assign({}, values);\n newValues.error = res.data.display_message || t('mypage.paletteFetchError');\n newValues.isLoading = false;\n return newValues;\n });\n }\n }\n catch (e) {\n setPaletteData(values => {\n const newValues = Object.assign({}, values);\n newValues.error = t('mypage.paletteFetchError');\n newValues.isLoading = false;\n return newValues;\n });\n }\n finally {\n }\n };\n const onPostClick = (post, itemIdx) => {\n typeof mixpanel !== 'undefined' && mixpanel.track('MyPagePalettePreviewPostClick', {\n itemIdx\n });\n };\n return (<>\n
\n \n {t('mypage.paletteTitle')}\n \n {!paletteData.error && paletteData.isLoading &&\n }\n {paletteData.error &&\n (
\n \n {parse(t('mypage.paletteError'))}\n \n
)}\n {!paletteData.isLoading && !paletteData.error &&\n <>\n {paletteData.posts.filter(x => typeof x !== \"string\").length > 0\n ? \n :
}\n
\n {paletteData.posts.map((x, idx) =>
onPostClick(x, idx)}>\n {typeof x === \"string\" ?\n :\n }\n
)}\n
\n }\n
\n );\n};\nconst MyPage = () => {\n const isMobile = useMediaQuery(`(max-width:${utilStyles.breakpointMobile})`);\n const [orderHistoryCountDict, setOrderHistoryCountDict] = useState({});\n const [orders, setOrders] = useState([]);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState(null);\n const i18nContext = useContext(I18nContext);\n const userContext = useContext(UserContext);\n const router = useRouter();\n const user = userContext.user;\n console.log('user', user);\n const code = user ? user.code : null;\n const isCreator = user ? user.is_creator : false;\n const pushContext = useContext(PushContext);\n const isPushOn = pushContext.isDevicePushOn && pushContext.isMarketingAgreed;\n useEffect(async () => {\n setOrders([]);\n fetchMoreOrders();\n fetchCount();\n typeof mixpanel !== 'undefined' && mixpanel.track('ViewMypage');\n }, []);\n useEffect(async () => {\n await userContext.fetchUser();\n }, [user?.id]);\n const { t } = useTranslation('mypage');\n const countryCode = getLocalStorageCountryCode() ?? 'KR';\n const fetchCount = async () => {\n if (!user)\n return;\n try {\n setIsLoading(true);\n const res = await Axios.get('v1/store/order-history-count', {\n params: { months: 1200 }\n });\n if (res.status < 400) {\n setOrderHistoryCountDict(res.data);\n }\n else {\n setError(res.data.display_message || t('mypage.orderFetchError'));\n }\n }\n catch (e) {\n setError(t('mypage.orderFetchError'));\n }\n finally {\n setIsLoading(false);\n }\n };\n const fetchMoreOrders = async () => {\n if (!user)\n return;\n try {\n setIsLoading(true);\n const res = await Axios.get('v1/store/order-history/', {\n params: {\n months: 1, status: null, size: 1, cursor: null\n }\n });\n if (res.status < 400) {\n setOrders(oldArray => {\n return [...oldArray, ...res.data.order_history_list];\n });\n }\n else {\n captureMessage(JSON.stringify(res.data));\n }\n }\n catch (e) {\n captureException(e);\n }\n finally {\n setIsLoading(false);\n }\n };\n const onLogoutClick = () => {\n typeof mixpanel !== 'undefined' && mixpanel.track('MyPageLogoutClick');\n userContext.logout();\n };\n const [banners, setBanners] = useState([]);\n console.log('banners', banners);\n useEffect(async () => {\n try {\n const res = await Axios.get('v1/banners', { params: { location: 'mypage_mid' } });\n if (res.status < 400) {\n setBanners(res.data.banners);\n }\n }\n catch (e) {\n captureException(e);\n }\n }, []);\n return (
\n
\n router.back()}/>\n
\n {!!user ?\n \n :\n (user !== undefined ?\n {\n typeof mixpanel !== 'undefined' && mixpanel.track('MyPageNonMemberLoginClick');\n }}>\n \n \n
\n \n {t('mypage.login')}\n \n \n
\n
\n \n :\n
)}\n {user !== undefined &&\n
}\n {(countryCode !== 'KR') &&\n <>\n
\n i18nContext.checkCountryByIpAndOpenSelectCountryModal(true)} withChildren firstWithoutPadding disableLink>\n
\n
{t('mypage.countrySetting')}
\n \n
\n
\n
\n
\n }\n {!!user &&\n
\n \n {t('mypage.shoppingInfo')}\n \n \n\n {!error && isLoading &&\n
\n \n
}\n {error &&\n (
\n \n {parse(t('mypage.failedToFetchOrderInfo'))}\n \n
)}\n {!isLoading && !error &&\n
\n \n
}\n {/**/}\n {/**/}\n
}\n {banners.length > 0 &&\n
\n \n
}\n {!!user &&\n <>\n {banners.length === 0 &&\n
}\n \n
\n }\n {(countryCode === 'KR' && !!user) &&\n <>\n \n
\n }\n {!!user &&\n <>\n
\n {t('mypage.myInfoTitle')}\n \n \n {countryCode === 'KR' &&\n }\n {(countryCode === 'KR' && !user.pro_grade) && }\n
\n {isMobile &&
}\n }\n {!!user &&\n
\n {t('mypage.cs')}\n \n \n \n
\n \n
\n
}\n {user === null &&\n
\n \n \n {isApp() &&\n {\n if (pushContext.isLoading)\n return;\n typeof mixpanel !== 'undefined' && mixpanel.track('MyPageNonMemberPushToggle', {\n on: isPushOn\n });\n pushContext.sendPushAgreementRequest(!isPushOn);\n }}/>}/>}\n
}\n {user === undefined &&\n }\n
);\n};\nMyPage.getLayout = NavigationLayout;\n// export async function getStaticProps(context) {\n// return {\n// props: {\n// protected: true,\n// },\n// }\n// }\nexport default MyPage;\nMyPage.restoreScroll = true;\n\n async function __Next_Translate__getStaticProps__195d139b4fb__(ctx) {\n \n return {\n \n \n props: {\n \n ...(await __loadNamespaces({\n ...ctx,\n ...__i18nConfig,\n pathname: '/mypage/index',\n loaderName: 'getStaticProps',\n loadLocaleFrom: __i18nConfig && __i18nConfig.loadLocaleFrom || ((l, n) => import(`@next-translate-root/locales/${l}/${n}`).then(m => m.default)),\n }))\n }\n }\n }\n export { __Next_Translate__getStaticProps__195d139b4fb__ as getStaticProps }\n ","var _path, _path2, _path3, _path4;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : 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\nimport * as React from \"react\";\n\nvar SvgClipboardCopy = function SvgClipboardCopy(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5.636 5.636c0-.351.285-.636.637-.636h8.909c.351 0 .636.285.636.636v10.819H5.636V5.635Zm1.273 9.546h7.636v-8.91H6.91v8.91Z\",\n fill: \"#FFA0CC\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.909 6.273h7.636v8.909H6.91v-8.91Z\",\n fill: \"#fff\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.182 8.182c0-.352.285-.637.636-.637h8.91c.35 0 .635.285.635.637V19H8.182V8.182Zm1.272 9.545h7.637V8.818H9.454v8.91Z\",\n fill: \"#FFA0CC\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.454 8.818h7.637v8.91H9.454v-8.91Z\",\n fill: \"#fff\"\n })));\n};\n\nexport default SvgClipboardCopy;","\n import __i18nConfig from '@next-translate-root/i18n'\n import __loadNamespaces from 'next-translate/loadNamespaces'\n import NavigationLayout from \"components/layout/NavigationLayout\";\nimport utilStyles from \"styles/utils.module.scss\";\nimport TitleBar from \"components/layout/TitleBar\";\nimport { useContext, useEffect, useMemo, useRef, useState } from \"react\";\nimport UserContext from \"context/AuthContext\";\nimport { Axios } from \"api\";\nimport styles from \"pages/mypage/seller-dashboard.module.scss\";\nimport NameWithRightArrow from \"components/rows/NameWithRightArrow\";\nimport { COUNTRY_CODE, sellerDashboardRoute } from \"common/const\";\nimport Loading from \"components/Loading\";\nimport { StatRow } from \"pages/mypage/index\";\nimport classNames from \"classnames\";\nimport FullButton from \"components/buttons/FullButton\";\nimport { formatDate, formattedPrice, numberWithComma } from \"common/utils\";\nimport Modal from \"components/Modal\";\nimport { useRouter } from \"next/router\";\nimport { useFormik } from \"formik\";\nimport * as yup from \"yup\";\nimport InputLabel from \"components/input/InputLabel\";\nimport TextInputSelect from \"components/input/TextInputSelect\";\nimport TextInput from \"components/input/TextInput\";\nimport { sellerProductContextRef } from \"context/SellerProductContext\";\nimport * as Sentry from \"@sentry/nextjs\";\nimport BulletText from \"components/BulletText\";\nimport InputError from \"components/input/InputError\";\nimport { error } from \"next/dist/build/output/log\";\nimport { captureException, captureMessage } from \"@sentry/nextjs\";\nimport { toast } from \"react-toastify\";\nimport { AutoSizer, InfiniteLoader, List } from \"react-virtualized\";\nimport PipeIcon from \"images/icons/pipe.svg\";\nimport Image from \"next/image\";\nimport TruncateMarkup from \"react-truncate-markup\";\nimport useTranslation from \"next-translate/useTranslation\";\nimport ClipboardCopyIcon from \"images/icons/clipboard_copy.svg\";\nimport { KOREA_COUNTRY_CODE } from \"common/i18n\";\nimport { GLOBAL_PHONE_NUMBER_REGEX } from \"components/modal/DeliveryAddressModal\";\nconst KEY_ACCOUNT_NUMBER = 'number';\nconst KEY_ACCOUNT_HOLDER_NAME = 'name';\nconst KEY_BANK_CODE = 'bank';\nconst KEY_SSN = 'ssn';\nconst KEY_AMOUNT = 'amount';\nconst KEY_EMAIL = 'email';\nconst CASH_OUT_HISTORY_CHUNK_SIZE = 20;\nconst SELL_HISTORY_CHUNK_SIZE = 20;\nconst SellRankSection = (props) => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const [isLoading, setIsLoading] = useState(true);\n const [data, setData] = useState({\n error: null,\n topSellerList: []\n });\n useEffect(async () => {\n setIsLoading(true);\n try {\n const res = await Axios.get('v1/my-shop/top-sellers/');\n if (res.status < 400) {\n setData({\n error: null,\n topSellerList: res.data.top_seller_list\n });\n }\n else {\n captureMessage(JSON.stringify(res.data));\n setData({\n topSellerList: [],\n error: t('SellRankSection.error')\n });\n }\n }\n catch (e) {\n setData({\n topSellerList: [],\n error: t('SellRankSection.error')\n });\n captureMessage(JSON.stringify(res.data));\n }\n finally {\n setIsLoading(false);\n }\n }, []);\n return (
\n
\n {t('SellRankSection.title')}\n {t('SellRankSection.subtitle')}\n
\n
\n {isLoading ?\n \n :\n data.topSellerList.length > 0 ?\n
\n {data.topSellerList.map((e, idx) => {\n const brandName = e.product.brand_name;\n return (
\n {idx + 1}\n
\n \n
\n
\n ...}>\n {brandName} {e.product.name}\n \n \n {t('SellRankSection.soldCount', { count: numberWithComma(e.count) })}\n {t('SellRankSection.soldCountDescription')}\n {t('SellRankSection.profit', { amount: numberWithComma(e.commission) })}\n {t('SellRankSection.profitDescription')}\n \n
\n
);\n })}\n
\n :\n
{data.error || t('SellRankSection.noData')}
}\n
);\n};\nconst SellHistorySection = (props) => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const [data, setData] = useState({\n cursor: '',\n sellHistoryList: [],\n error: null,\n isLoading: false\n });\n const hasNext = data.cursor !== null;\n const remoteRowCount = hasNext ? data.sellHistoryList.length + 1 : (data.sellHistoryList.length === 0 ? 1 : data.sellHistoryList.length);\n const rowRenderer = ({ index, isScrolling, isVisible, key, parent, style }) => {\n const sellHistoryLog = data.sellHistoryList[index];\n return (
\n {!sellHistoryLog\n ?\n
\n {data.isLoading ?\n \n :\n (data.error ?\n {t('SellHistorySection.error')}\n :\n {t('SellHistorySection.noHistory')})}\n
\n :\n
\n {formatDate(sellHistoryLog.sold_at, true)}\n
\n ...}>\n {sellHistoryLog.brand_name}\n {sellHistoryLog.product_name}\n \n \n +{numberWithComma(sellHistoryLog.point)} P\n
\n
\n ...}>\n {sellHistoryLog.option_name}\n \n \n {sellHistoryLog.count}{t('SellHistorySection.unit')}\n
\n
}\n
);\n };\n const loadMoreRows = async ({ startIndex, stopIndex }) => {\n if (data.isLoading)\n return;\n try {\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = null;\n newVal.isLoading = true;\n return newVal;\n });\n const res = await Axios.get('/v1/my-shop/sell-history/', { params: { cursor: data.cursor, size: CASH_OUT_HISTORY_CHUNK_SIZE } });\n if (res.status < 400) {\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = null;\n newVal.sellHistoryList = newVal.sellHistoryList.concat(res.data.cash_out_request_history);\n newVal.cursor = res.data.cursor;\n newVal.isLoading = false;\n return newVal;\n });\n }\n else {\n captureMessage(JSON.stringify(res.data));\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = t('SellHistorySection.loadError');\n newVal.isLoading = false;\n return newVal;\n });\n }\n }\n catch (e) {\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = t('SellHistorySection.loadError');\n newVal.isLoading = false;\n return newVal;\n });\n captureException(e);\n }\n };\n return (<>\n
\n
\n {t('SellHistorySection.title')}\n {t('SellHistorySection.subtitle')}\n
\n
\n
\n {\n return !!data.sellHistoryList[index];\n }} loadMoreRows={loadMoreRows} rowCount={remoteRowCount} minimumBatchSize={SELL_HISTORY_CHUNK_SIZE}>\n {({ onRowsRendered }) => (\n {({ width }) => ()}\n )}\n \n
\n
\n );\n};\nconst CashOutLogSection = (props) => {\n const { isModalOpen, setIsModalOpen } = props;\n const { t } = useTranslation('mypage-seller-dashboard');\n const [data, setData] = useState({\n cursor: '',\n cashOutRequestList: [],\n error: null,\n isLoading: false\n });\n const hasNext = data.cursor !== null;\n const remoteRowCount = hasNext ? data.cashOutRequestList.length + 1 : (data.cashOutRequestList.length === 0 ? 1 : data.cashOutRequestList.length);\n const [error, setError] = useState(null);\n const rowRenderer = ({ index, isScrolling, isVisible, key, parent, style }) => {\n const cashOutLog = data.cashOutRequestList[index];\n if (COUNTRY_CODE === KOREA_COUNTRY_CODE) {\n return (
\n {!cashOutLog\n ?\n
\n {data.isLoading ?\n \n :\n (data.error ?\n {t('CashOutLogSection.error')}\n :\n {t('CashOutLogSection.noHistory')})}\n
\n :\n
\n \n {formatDate(cashOutLog.created_at, true)}\n \n \n {cashOutLog.status}\n {cashOutLog.amount}p\n \n
\n
\n {cashOutLog.bank_name}\n \n {cashOutLog.number}\n
\n {cashOutLog.status === '환급 반려' && cashOutLog.reject_reason &&\n <>\n setError(cashOutLog.reject_reason)}>{t('CashOutLogSection.showReason')}\n }\n
\n
}\n
);\n }\n else {\n return (
\n {!cashOutLog\n ?\n
\n {data.isLoading ?\n \n :\n (data.error ?\n {t('CashOutLogSection.error')}\n :\n {t('CashOutLogSection.noHistory')})}\n
\n :\n
\n \n {formatDate(cashOutLog.created_at, true)}\n \n \n {t(`CashOutLogSection.${cashOutLog.status}`)}\n {cashOutLog.amount}p\n \n
\n
\n {cashOutLog.cash_out_type}\n \n {cashOutLog.email}\n
\n {cashOutLog.status === '환급 반려' && cashOutLog.reject_reason &&\n <>\n setError(cashOutLog.reject_reason)}>{t('CashOutLogSection.showReason')}\n }\n
\n
}\n
);\n }\n };\n useEffect(() => {\n setData({\n cursor: '',\n cashOutRequestList: [],\n error: null,\n isLoading: false\n });\n }, [isModalOpen]);\n const loadMoreRows = async ({ startIndex, stopIndex }) => {\n if (data.isLoading)\n return;\n try {\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = null;\n newVal.isLoading = true;\n return newVal;\n });\n const res = await Axios.get('/v1/cash-out/', { params: { cursor: data.cursor, size: CASH_OUT_HISTORY_CHUNK_SIZE } });\n if (res.status < 400) {\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = null;\n newVal.cashOutRequestList = newVal.cashOutRequestList.concat(res.data.cash_out_request_history);\n newVal.cursor = res.data.cursor;\n newVal.isLoading = false;\n return newVal;\n });\n }\n else {\n captureMessage(JSON.stringify(res.data));\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = t('CashOutLogSection.loadError');\n newVal.isLoading = false;\n return newVal;\n });\n }\n }\n catch (e) {\n setData(val => {\n const newVal = JSON.parse(JSON.stringify(val));\n newVal.error = t('CashOutLogSection.loadError');\n newVal.isLoading = false;\n return newVal;\n });\n captureException(e);\n }\n };\n return (<>\n
\n setError(null)} width={300}>\n
\n {t('CashOutLogSection.reasonTitle')}\n
\n {error}\n
\n setError(null)} height={44} fontSize={16}>{t('CashOutLogSection.confirm')}\n
\n
\n
\n {t('CashOutLogSection.title')}\n {t('CashOutLogSection.subtitle')}\n
\n
\n
\n {\n return !!data.cashOutRequestList[index];\n }} loadMoreRows={loadMoreRows} rowCount={remoteRowCount} minimumBatchSize={CASH_OUT_HISTORY_CHUNK_SIZE}>\n {({ onRowsRendered }) => (\n {({ width }) => ()}\n )}\n \n
\n
\n );\n};\nconst CalculatorRow = (props) => {\n const { title, value, currency } = props;\n return (
\n {title}\n
\n {numberWithComma(value)}\n {currency}\n
\n
);\n};\nconst CashOutModal = (props) => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const { bankOptions, minCashOutAmount } = props;\n const { isOpen, accumulatedPoints, usedPoints } = props;\n const availablePoints = accumulatedPoints - usedPoints;\n const close = props.close || function () { };\n const [isLoading, setIsLoading] = useState(false);\n const formik = useFormik({\n enableReinitialize: false,\n initialValues: {\n [KEY_ACCOUNT_NUMBER]: '',\n [KEY_ACCOUNT_HOLDER_NAME]: '',\n [KEY_BANK_CODE]: '',\n [KEY_SSN]: '',\n [KEY_AMOUNT]: 0\n },\n validationSchema: yup.object({\n [KEY_ACCOUNT_NUMBER]: yup.string().required(t('CashOutModal.accountNumberPlaceholder')),\n [KEY_ACCOUNT_HOLDER_NAME]: yup.string().required(t('CashOutModal.accountHolderPlaceholder')),\n [KEY_BANK_CODE]: yup.number().required(t('CashOutModal.bankNamePlaceholder')),\n [KEY_SSN]: yup.string().required(t('CashOutModal.ssnPlaceholder')),\n [KEY_AMOUNT]: yup.number()\n }),\n onSubmit: async (values) => {\n if (!values[KEY_AMOUNT] || values[KEY_AMOUNT] <= 0 || values[KEY_AMOUNT] > availablePoints) {\n alert(t('CashOutModal.amountError'));\n return;\n }\n if (values[KEY_AMOUNT] && minCashOutAmount && values[KEY_AMOUNT] < minCashOutAmount) {\n alert(t('CashOutModal.minAmountError', { amount: minCashOutAmount }));\n return;\n }\n try {\n setIsLoading(true);\n const res = await Axios.post('/v1/cash-out/', values);\n if (res.status < 400) {\n toast.info(t('CashOutModal.requestSuccess'));\n closeModal();\n }\n else {\n captureMessage(JSON.stringify(res.data));\n alert(res.data.display_message || t('CashOutModal.requestFailed'));\n }\n }\n catch (e) {\n captureException(e);\n alert(t('CashOutModal.requestFailed'));\n }\n finally {\n setIsLoading(false);\n }\n }\n });\n const { values, setFieldValue, setValues, errors, handleSubmit, setFieldTouched, touched, resetForm } = formik;\n const cashOutAmount = parseInt(values[KEY_AMOUNT]) || 0;\n const tax = Math.round(cashOutAmount * 0.03) + Math.round(cashOutAmount * 0.003);\n const closeModal = () => {\n resetForm();\n close();\n };\n const onSubmit = () => {\n typeof mixpanel !== 'undefined' && mixpanel.track('CashOutModalSubmitClick');\n handleSubmit();\n };\n const currency = 'P';\n return (\n
\n \n
\n {isLoading ?\n \n :\n (bankOptions.length > 0 ?\n <>\n
\n
\n {\n const val = parseInt(e.target.value.split(',').join(''));\n if (e.target.value === '') {\n setFieldValue(KEY_AMOUNT, 0);\n }\n else if (Number.isInteger(val)) {\n if (val <= 0) {\n setFieldValue(KEY_AMOUNT, 0);\n }\n else if (val > availablePoints) {\n setFieldValue(KEY_AMOUNT, availablePoints);\n }\n else {\n setFieldValue(KEY_AMOUNT, val);\n }\n }\n }}/>\n P\n
\n
\n \n \n \n \n \n
\n
\n
\n
\n \n [e.code, e.name]))} onChange={(e) => {\n setFieldValue(KEY_BANK_CODE, e);\n }}/>\n {touched[KEY_BANK_CODE] && errors[KEY_BANK_CODE] &&\n }\n
\n \n setFieldTouched(KEY_ACCOUNT_NUMBER)} readonly={isLoading} value={values[KEY_ACCOUNT_NUMBER]} error={errors[KEY_ACCOUNT_NUMBER] && touched[KEY_ACCOUNT_NUMBER]} placeholder={t('CashOutModal.accountNumberPlaceholder')} onChange={(e) => {\n if (e.match(/^\\d*$/)) {\n setFieldValue(KEY_ACCOUNT_NUMBER, e);\n }\n }}/>\n {touched[KEY_ACCOUNT_NUMBER] && errors[KEY_ACCOUNT_NUMBER] &&\n }\n
\n \n setFieldTouched(KEY_ACCOUNT_HOLDER_NAME)} readonly={isLoading} value={values[KEY_ACCOUNT_HOLDER_NAME]} error={errors[KEY_ACCOUNT_HOLDER_NAME] && touched[KEY_ACCOUNT_HOLDER_NAME]} placeholder={t('CashOutModal.accountHolderPlaceholder')} onChange={e => setFieldValue(KEY_ACCOUNT_HOLDER_NAME, e)}/>\n {touched[KEY_ACCOUNT_HOLDER_NAME] && errors[KEY_ACCOUNT_HOLDER_NAME] &&\n }\n
\n \n setFieldTouched(KEY_SSN)} readonly={isLoading} value={values[KEY_SSN]} error={errors[KEY_SSN] && touched[KEY_SSN]} placeholder={t('CashOutModal.ssnPlaceholder')} onChange={e => {\n if (parseInt(e) || !e) {\n setFieldValue(KEY_SSN, e);\n }\n }}/>\n {touched[KEY_SSN] && errors[KEY_SSN] &&\n }\n
\n {minCashOutAmount &&\n
\n {t('CashOutModal.minAmount', { amount: numberWithComma(minCashOutAmount) })}\n
}\n
\n {t('CashOutModal.onlySalesProfit')}\n
\n
\n {t('CashOutModal.accountInfo')}\n
\n
\n {t('CashOutModal.accountAdvice')}\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n :\n
)}\n );\n};\nconst GlobalCashOutModal = (props) => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const { isOpen, accumulatedPoints, usedPoints, minCashOutAmount } = props;\n const availablePoints = accumulatedPoints - usedPoints;\n const close = props.close || function () { };\n const [isLoading, setIsLoading] = useState(false);\n const formik = useFormik({\n enableReinitialize: false,\n initialValues: {\n [KEY_EMAIL]: '',\n [KEY_AMOUNT]: 0\n },\n validationSchema: yup.object({\n [KEY_EMAIL]: yup.string().required(t('CashOutModal.emailInputError')).email(),\n [KEY_AMOUNT]: yup.number()\n }),\n onSubmit: async (values) => {\n if (!values[KEY_AMOUNT] || values[KEY_AMOUNT] <= 0 || values[KEY_AMOUNT] > availablePoints) {\n alert(t('CashOutModal.amountError'));\n return;\n }\n if (values[KEY_AMOUNT] && minCashOutAmount && values[KEY_AMOUNT] < minCashOutAmount) {\n alert(t('CashOutModal.minAmountError', { amount: minCashOutAmount }));\n return;\n }\n try {\n setIsLoading(true);\n const res = await Axios.post('/v1/cash-out/', {\n [KEY_AMOUNT]: values[KEY_AMOUNT],\n [KEY_EMAIL]: values[KEY_EMAIL]\n });\n if (res.status < 400) {\n toast.info(t('CashOutModal.requestSuccess'));\n closeModal();\n }\n else {\n captureMessage(JSON.stringify(res.data));\n alert(res.data.display_message || t('CashOutModal.requestFailed'));\n }\n }\n catch (e) {\n captureException(e);\n alert(t('CashOutModal.requestFailed'));\n }\n finally {\n setIsLoading(false);\n }\n }\n });\n const { values, setFieldValue, setValues, errors, handleSubmit, setFieldTouched, touched, resetForm } = formik;\n const cashOutAmount = parseInt(values[KEY_AMOUNT]) || 0;\n const tax = cashOutAmount > 0 ? 25 : 0; // only america's tax is 25, other countries are 2%.\n const closeModal = () => {\n resetForm();\n close();\n };\n const onSuccess = props?.onSuccess || function () {\n };\n const onSubmit = () => {\n typeof mixpanel !== 'undefined' && mixpanel.track('CashOutModalSubmitClick');\n handleSubmit();\n onSuccess();\n };\n const currency = 'P';\n const subCurrency = '$';\n const makeZeroIfNegative = (value) => {\n return value < 0 ? 0 : value;\n };\n return (\n
\n \n
\n {isLoading ?\n \n :\n (<>\n
\n
\n {\n const val = parseInt(e.target.value);\n if (e.target.value === '') {\n setFieldValue(KEY_AMOUNT, 0);\n }\n else if (Number.isInteger(val)) {\n if (val <= 0) {\n setFieldValue(KEY_AMOUNT, 0);\n }\n else if (val > availablePoints) {\n setFieldValue(KEY_AMOUNT, availablePoints);\n }\n else {\n setFieldValue(KEY_AMOUNT, val);\n }\n }\n }}/>\n {currency}\n
\n
\n \n \n \n \n \n
\n {touched[KEY_AMOUNT] && errors[KEY_AMOUNT] &&\n }\n
\n
\n
\n \n setFieldTouched(KEY_EMAIL)} readonly={isLoading} value={values[KEY_ACCOUNT_HOLDER_NAME]} error={errors[KEY_EMAIL] && touched[KEY_EMAIL]} placeholder={t('CashOutModal.paypalEmailPlaceholder')} onChange={e => setFieldValue(KEY_EMAIL, e)}/>\n {touched[KEY_EMAIL] && errors[KEY_EMAIL] &&\n }\n
\n {minCashOutAmount &&\n
\n {t('CashOutModal.minAmount', { amount: numberWithComma(minCashOutAmount) })}\n
}\n
\n {t('CashOutModal.onlySalesProfit')}\n
\n
\n {t('CashOutModal.accountInfo')}\n
\n
\n {t('CashOutModal.accountAdvice')}\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n )}\n );\n};\nexport const formatCurrencyValue = (value, currency) => {\n switch (currency) {\n case '$':\n return `${currency}${formattedPrice(value, currency)}`;\n default:\n return `${numberWithComma(value)} ${currency}`;\n }\n};\nconst StatSection = (props) => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const { isModalOpen, setIsModalOpen } = props;\n const defaultData = {\n userPoints: null,\n accumulatedPoints: null,\n usedPoints: null,\n pendingPoints: null,\n cashOutPendingPoints: null,\n isLoading: false,\n error: null,\n total_left: 0\n };\n const user = useContext(UserContext).user;\n const [data, setData] = useState(defaultData);\n const [isLoaded, setIsLoaded] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [bankOptions, setBankOptions] = useState([]);\n const [minCashOutAmount, setMinCashOutAmount] = useState(null);\n const router = useRouter();\n useEffect(async () => {\n try {\n setIsLoading(true);\n const res = await Axios.get(`/v1/cash-out-prepare/`);\n if (res.status < 400) {\n setBankOptions(res.data.bank_options);\n setMinCashOutAmount(res.data.min_cash_out_amount);\n }\n else {\n alert(t('CashOutModal.requestFailed'));\n Sentry.captureMessage(JSON.stringify(res.data));\n }\n }\n catch (e) {\n alert(t('CashOutModal.requestFailed'));\n Sentry.captureException(e);\n }\n finally {\n setIsLoading(false);\n }\n }, []);\n const fetchStatsDetail = async () => {\n if (!user)\n return;\n if (isLoaded && isModalOpen)\n return;\n try {\n setData(val => {\n const newState = JSON.parse(JSON.stringify(val));\n newState.isLoading = true;\n return newState;\n });\n const res = await Axios.get('/v1/my-shop/stats/detail');\n if (res.status < 400) {\n setData(val => {\n const newState = JSON.parse(JSON.stringify(val));\n newState.userPoints = res.data.total_points;\n newState.accumulatedPoints = res.data.accumulated_points;\n newState.pendingPoints = res.data.pending_points;\n newState.usedPoints = res.data.used_points;\n newState.cashOutPendingPoints = res.data.cash_out_pending_points;\n newState.total_left = res.data.total_left;\n return newState;\n });\n }\n }\n catch (e) {\n }\n finally {\n setData(val => {\n const newState = JSON.parse(JSON.stringify(val));\n newState.isLoading = false;\n return newState;\n });\n }\n };\n useEffect(async () => {\n fetchStatsDetail();\n }, [user]);\n const isDataLoaded = data.userPoints !== null && data.userPoints !== undefined;\n const onCashOutClick = () => {\n typeof mixpanel !== 'undefined' && mixpanel.track('SellerDashboardCashoutButtonClick');\n setIsModalOpen(true);\n };\n const currencyText = COUNTRY_CODE === KOREA_COUNTRY_CODE ? 'P' : '$';\n const descriptionTextAndEmphasis = COUNTRY_CODE === KOREA_COUNTRY_CODE ? [\n [t('StatSection.editShopSalesInfo'), true],\n [t('StatSection.minCashOutAmount', { minCashOutAmount: minCashOutAmount }), false],\n ] : [\n [t('AffiliateCouponSection.payout'), false],\n [t('AffiliateCouponSection.payoutNote', { minCashOutAmount: formattedPrice(minCashOutAmount, 'USD') }), false],\n [t('AffiliateCouponSection.payoutNote2'), false],\n ];\n const subDescription = (point) => {\n if (COUNTRY_CODE === KOREA_COUNTRY_CODE) {\n return null;\n }\n return '(' + numberWithComma(point) + 'P)';\n };\n return (
\n {isDataLoaded && (COUNTRY_CODE === KOREA_COUNTRY_CODE ?\n setIsModalOpen(false)} bankOptions={bankOptions} minCashOutAmount={minCashOutAmount}/>\n :\n setIsModalOpen(false)} onSuccess={fetchStatsDetail} minCashOutAmount={minCashOutAmount}/>)}\n {data.isLoading ?\n \n :\n (isDataLoaded &&\n <>\n
\n
\n {t('StatSection.title')}\n {formatCurrencyValue(data.accumulatedPoints - data.usedPoints, currencyText)}\n
\n \n {COUNTRY_CODE === KOREA_COUNTRY_CODE ? () : ()}\n \n \n
\n
\n \n
\n {descriptionTextAndEmphasis.map(([text, isEmphasis], index) => (\n   •  \n {text}\n ))}\n
\n )}\n\n
);\n};\nconst couponsSchema = {\n 'id': 'number',\n 'amount': 'number',\n 'type': 'string',\n 'name': 'string',\n 'min_amount': 'number',\n 'max_amount': 'number',\n 'starts_at': 'number',\n 'ends_at': 'number',\n 'mold_key': 'string'\n};\nconst AffiliateCouponSection = (props) => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const { isInfluencer } = props;\n const { user } = useContext(UserContext);\n const COMMISSION_RATE = user?.commission_rate || 0;\n const [coupons, setCoupons] = useState([]);\n const fetchCoupons = async () => {\n try {\n const res = await Axios.get('v1/affiliate-coupons/');\n if (res.status < 400) {\n setCoupons(res.data.coupons);\n }\n else {\n captureMessage(JSON.stringify(res.data));\n }\n }\n catch (e) {\n captureException(e);\n }\n };\n useEffect(() => {\n fetchCoupons();\n }, []);\n const copyToClipboard = (code) => {\n navigator.clipboard.writeText(code);\n toast.info(t('AffiliateCouponSection.copySuccess'));\n };\n const currencyText = COUNTRY_CODE === KOREA_COUNTRY_CODE ? '원' : '$';\n const couponCondition = (coupon) => {\n if (coupon.min_amount && coupon.max_amount) {\n return t('AffiliateCouponSection.minPurchaseWithMax', { minAmount: formatCurrencyValue(coupon.min_amount, currencyText), maxAmount: formatCurrencyValue(coupon.max_amount, currencyText) });\n }\n else if (coupon.min_amount) {\n return t('AffiliateCouponSection.minPurchase', { minAmount: formatCurrencyValue(coupon.min_amount, currencyText) });\n }\n else if (coupon.max_amount) {\n return t('AffiliateCouponSection.maxDiscount', { maxAmount: formatCurrencyValue(coupon.max_amount, currencyText) });\n }\n return null;\n };\n const couponIdToCondition = useMemo(() => {\n return coupons.reduce((acc, coupon) => {\n acc[coupon.id] = couponCondition(coupon);\n return acc;\n }, {});\n }, [coupons]);\n const amount = (coupon) => {\n if (coupon.type === 'PTG') {\n return `${coupon.amount}%`;\n }\n else {\n return formatCurrencyValue(coupon.amount, currencyText);\n }\n };\n const periodText = (coupon) => {\n const format = 'MM/DD/YYYY';\n const startsAt = coupon.starts_at ? new Date(coupon.starts_at * 1000).toLocaleDateString('en-US', format) : null;\n const endsAt = coupon.ends_at ? new Date(coupon.ends_at * 1000).toLocaleDateString('en-US', format) : null;\n if (startsAt && endsAt) {\n return `${startsAt} - ${endsAt}`;\n }\n else if (startsAt) {\n return `${startsAt} - `;\n }\n else if (endsAt) {\n return `- ${endsAt}`;\n }\n return null;\n };\n const isCouponListEmpty = coupons.length === 0;\n return (
\n {!isCouponListEmpty &&\n <>\n
\n {t('AffiliateCouponSection.title')}\n
\n
\n {coupons.map((coupon, index) => (
\n
\n
\n {amount(coupon)}\n {coupon.name}\n {couponIdToCondition[coupon.id] &&\n {couponIdToCondition[coupon.id]}}\n \n {periodText(coupon)}\n \n
\n {Boolean(coupon.mold_key) &&\n
copyToClipboard(coupon.mold_key)}>\n {coupon.mold_key}\n
\n \n
\n
}\n
\n
))}\n
\n }\n \n
\n {!isCouponListEmpty &&\n
{t('AffiliateCouponSection.usageNote')}
}\n
\n {t('AffiliateCouponSection.commissionRate')}\n {`${COMMISSION_RATE}%`}\n
\n
\n
);\n};\nconst SellerDashBoardPage = () => {\n const { t } = useTranslation('mypage-seller-dashboard');\n const router = useRouter();\n const { user } = useContext(UserContext);\n const isModalOpen = router.query.cash_out === 'true';\n const isInfluencer = Boolean(user && user.is_influencer);\n const setIsModalOpen = (val) => {\n if (val) {\n router.push({ query: Object.assign({}, router.query, { cash_out: true }) }, undefined, { shallow: true });\n }\n else {\n router.back();\n }\n };\n return (
\n
\n router.back()}/>\n
\n \n {isInfluencer &&\n <>\n
\n \n }\n
\n \n
\n \n
\n \n
);\n};\nSellerDashBoardPage.getLayout = NavigationLayout;\nasync function getStaticProps(context) {\n return {\n props: {\n protected: true\n }\n };\n}\nexport default SellerDashBoardPage;\n\n async function __Next_Translate__getStaticProps__195d139d3cf__(ctx) {\n const res = await getStaticProps(ctx)\n return {\n \n ...res,\n props: {\n ...(res.props || {}),\n ...(await __loadNamespaces({\n ...ctx,\n ...__i18nConfig,\n pathname: '/mypage/seller-dashboard',\n loaderName: 'getStaticProps',\n loadLocaleFrom: __i18nConfig && __i18nConfig.loadLocaleFrom || ((l, n) => import(`@next-translate-root/locales/${l}/${n}`).then(m => m.default)),\n }))\n }\n }\n }\n export { __Next_Translate__getStaticProps__195d139d3cf__ as getStaticProps }\n ","// extracted by mini-css-extract-plugin\nmodule.exports = {\"brand\":\"#ffa0cc\",\"typo1\":\"#9e9e9e\",\"typo3\":\"#424242\",\"breakpointMobile\":\"999999px\",\"breakpointTablet\":\"999999px\",\"breakpointDesktop\":\"999999px\",\"topBarHeight\":\"80px\",\"mobilStoreNavBarHeight\":\"40px\",\"topPadding\":\"40px\",\"topBannerHeight\":\"40px\",\"topTabBarHeight\":\"56px\",\"layoutLeftPaddingNew\":\"16px\",\"layoutRightPaddingNew\":\"16px\",\"heading2Xl\":\"contentWithRightArrow_heading2Xl__2kFX0\",\"headingXl\":\"contentWithRightArrow_headingXl__ImeXl\",\"headingLg\":\"contentWithRightArrow_headingLg__T2FUs\",\"headingMd\":\"contentWithRightArrow_headingMd__4A8_0\",\"borderCircle\":\"contentWithRightArrow_borderCircle__0vsTg\",\"colorInherit\":\"contentWithRightArrow_colorInherit__tBwFN\",\"padding1px\":\"contentWithRightArrow_padding1px__CHoRk\",\"list\":\"contentWithRightArrow_list__iodQN\",\"listItem\":\"contentWithRightArrow_listItem__zhWSD\",\"lightText\":\"contentWithRightArrow_lightText__rBvbS\",\"testButton\":\"contentWithRightArrow_testButton__frxr7\",\"testProduct\":\"contentWithRightArrow_testProduct__d7_nO\",\"cursorPointer\":\"contentWithRightArrow_cursorPointer__Ds4nS\",\"cursorUnset\":\"contentWithRightArrow_cursorUnset__kSpvU\",\"block\":\"contentWithRightArrow_block__lyDAr\",\"inlineBlock\":\"contentWithRightArrow_inlineBlock__ui8pN\",\"fullWidth\":\"contentWithRightArrow_fullWidth__e1Fm_\",\"fullFlex\":\"contentWithRightArrow_fullFlex__uP8g5\",\"verticalMiddle\":\"contentWithRightArrow_verticalMiddle__4VSQ7\",\"justifyContentStart\":\"contentWithRightArrow_justifyContentStart__1u23a\",\"justifyContentCenter\":\"contentWithRightArrow_justifyContentCenter___oJQA\",\"justifyContentSpaceBetween\":\"contentWithRightArrow_justifyContentSpaceBetween__Ls0rY\",\"container\":\"contentWithRightArrow_container__wf1DK\",\"justifyContentEnd\":\"contentWithRightArrow_justifyContentEnd__9tpzl\",\"alignItemsCenter\":\"contentWithRightArrow_alignItemsCenter__7lj3r\",\"socialIcon\":\"contentWithRightArrow_socialIcon__TIKZk\",\"alignItemsStart\":\"contentWithRightArrow_alignItemsStart__oNFIV\",\"alignItemsEnd\":\"contentWithRightArrow_alignItemsEnd__Nlc1O\",\"rootContainer\":\"contentWithRightArrow_rootContainer__EnQi5\",\"flexRow\":\"contentWithRightArrow_flexRow__pshCV\",\"flexCol\":\"contentWithRightArrow_flexCol__cTqSO\",\"flexFit\":\"contentWithRightArrow_flexFit__yX8cW\",\"relative\":\"contentWithRightArrow_relative__znsIe\",\"absolute\":\"contentWithRightArrow_absolute__hbi9s\",\"displayNone\":\"contentWithRightArrow_displayNone__eeGt9\",\"square\":\"contentWithRightArrow_square__PEkGP\",\"noBorderRadius\":\"contentWithRightArrow_noBorderRadius__sXSwk\",\"no-select\":\"contentWithRightArrow_no-select__OLdcE\",\"borderUnderLine\":\"contentWithRightArrow_borderUnderLine__NgDOE\",\"borderLine2\":\"contentWithRightArrow_borderLine2__R2OV5\",\"borderUnderLineThick\":\"contentWithRightArrow_borderUnderLineThick__cfe7f\",\"mobileBorder\":\"contentWithRightArrow_mobileBorder__PAPQt\",\"tableBorderUnderLine\":\"contentWithRightArrow_tableBorderUnderLine__o7eix\",\"txtTitle\":\"contentWithRightArrow_txtTitle___9wuG\",\"bold\":\"contentWithRightArrow_bold__PsdjN\",\"semiBold\":\"contentWithRightArrow_semiBold__81gy5\",\"txtIndent\":\"contentWithRightArrow_txtIndent__9xbiB\",\"txtSmallTitle\":\"contentWithRightArrow_txtSmallTitle__43UNJ\",\"txtSubTitle\":\"contentWithRightArrow_txtSubTitle__5_X2C\",\"txtPlain\":\"contentWithRightArrow_txtPlain__NrAv8\",\"bullet\":\"contentWithRightArrow_bullet__EJnu3\",\"invisible\":\"contentWithRightArrow_invisible__4cINW\",\"pageTitle\":\"contentWithRightArrow_pageTitle__Q5RAS\",\"sidePadding\":\"contentWithRightArrow_sidePadding__toHfA\",\"newSidePadding\":\"contentWithRightArrow_newSidePadding__2387Z\",\"whiteBackground\":\"contentWithRightArrow_whiteBackground__Du77D\",\"sideMargin\":\"contentWithRightArrow_sideMargin__1GCdG\",\"fullHeight\":\"contentWithRightArrow_fullHeight__C0DhY\",\"containerElevated\":\"contentWithRightArrow_containerElevated__s_hgF\",\"noLineHeight\":\"contentWithRightArrow_noLineHeight__x7XK7\",\"noMargin\":\"contentWithRightArrow_noMargin__v1f2m\",\"fullLineHeight\":\"contentWithRightArrow_fullLineHeight__lZqKU\",\"mainTitle\":\"contentWithRightArrow_mainTitle__8w7mz\",\"hideScrollbar\":\"contentWithRightArrow_hideScrollbar__C5bnC\",\"brandColorText\":\"contentWithRightArrow_brandColorText__kd1dc\",\"hide\":\"contentWithRightArrow_hide___0UQf\",\"pageContainer\":\"contentWithRightArrow_pageContainer__PlN2M\",\"transparent\":\"contentWithRightArrow_transparent__D3vC9\",\"textAlignCenter\":\"contentWithRightArrow_textAlignCenter__rpFQ8\",\"topSticky\":\"contentWithRightArrow_topSticky__ty834\",\"topFixed\":\"contentWithRightArrow_topFixed__HuJaC\",\"stickBottom\":\"contentWithRightArrow_stickBottom___yomq\",\"transparentButton\":\"contentWithRightArrow_transparentButton__pHSJG\",\"transparentChildButton\":\"contentWithRightArrow_transparentChildButton__QilRu\",\"medium\":\"contentWithRightArrow_medium__mg_4i\",\"errorText\":\"contentWithRightArrow_errorText__6oe3C\",\"firstContainer\":\"contentWithRightArrow_firstContainer__Llmuw\",\"title\":\"contentWithRightArrow_title__fp8Nw\",\"subTitle\":\"contentWithRightArrow_subTitle__gYDRp\",\"firstContainerWithoutPadding\":\"contentWithRightArrow_firstContainerWithoutPadding__BJHGp\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"brand\":\"#ffa0cc\",\"typo1\":\"#9e9e9e\",\"typo3\":\"#424242\",\"breakpointMobile\":\"999999px\",\"breakpointTablet\":\"999999px\",\"breakpointDesktop\":\"999999px\",\"topBarHeight\":\"80px\",\"mobilStoreNavBarHeight\":\"40px\",\"topPadding\":\"40px\",\"topBannerHeight\":\"40px\",\"topTabBarHeight\":\"56px\",\"layoutLeftPaddingNew\":\"16px\",\"layoutRightPaddingNew\":\"16px\",\"heading2Xl\":\"nameWithRightArrow_heading2Xl___JCzq\",\"headingXl\":\"nameWithRightArrow_headingXl__ydh0m\",\"headingLg\":\"nameWithRightArrow_headingLg__VXrKL\",\"headingMd\":\"nameWithRightArrow_headingMd__7Ywcs\",\"borderCircle\":\"nameWithRightArrow_borderCircle__MdScY\",\"colorInherit\":\"nameWithRightArrow_colorInherit__bLnQ2\",\"padding1px\":\"nameWithRightArrow_padding1px__pGIOZ\",\"list\":\"nameWithRightArrow_list__W5LGT\",\"listItem\":\"nameWithRightArrow_listItem__X81_d\",\"lightText\":\"nameWithRightArrow_lightText__rJ0R_\",\"testButton\":\"nameWithRightArrow_testButton__AQX3R\",\"testProduct\":\"nameWithRightArrow_testProduct__cZ_Zt\",\"cursorPointer\":\"nameWithRightArrow_cursorPointer__B21GA\",\"cursorUnset\":\"nameWithRightArrow_cursorUnset__W2EJ9\",\"block\":\"nameWithRightArrow_block__MkNmS\",\"inlineBlock\":\"nameWithRightArrow_inlineBlock__0jDPS\",\"fullWidth\":\"nameWithRightArrow_fullWidth__X7maW\",\"fullFlex\":\"nameWithRightArrow_fullFlex__KyHgu\",\"verticalMiddle\":\"nameWithRightArrow_verticalMiddle__kr66C\",\"justifyContentStart\":\"nameWithRightArrow_justifyContentStart__Su66O\",\"justifyContentCenter\":\"nameWithRightArrow_justifyContentCenter__QwIiS\",\"justifyContentSpaceBetween\":\"nameWithRightArrow_justifyContentSpaceBetween__bgJqk\",\"container\":\"nameWithRightArrow_container__8uTvX\",\"justifyContentEnd\":\"nameWithRightArrow_justifyContentEnd__GqstY\",\"alignItemsCenter\":\"nameWithRightArrow_alignItemsCenter__5c4Ow\",\"socialIcon\":\"nameWithRightArrow_socialIcon__GYuR5\",\"alignItemsStart\":\"nameWithRightArrow_alignItemsStart__sMjoO\",\"alignItemsEnd\":\"nameWithRightArrow_alignItemsEnd__2aTqY\",\"rootContainer\":\"nameWithRightArrow_rootContainer__RyyMF\",\"flexRow\":\"nameWithRightArrow_flexRow__l3jN7\",\"flexCol\":\"nameWithRightArrow_flexCol__uDuJ_\",\"flexFit\":\"nameWithRightArrow_flexFit__8cyWF\",\"relative\":\"nameWithRightArrow_relative__rHwkN\",\"absolute\":\"nameWithRightArrow_absolute__Re7uO\",\"displayNone\":\"nameWithRightArrow_displayNone__99mK5\",\"square\":\"nameWithRightArrow_square__tRd03\",\"noBorderRadius\":\"nameWithRightArrow_noBorderRadius__xR_07\",\"no-select\":\"nameWithRightArrow_no-select__kp3Rx\",\"borderUnderLine\":\"nameWithRightArrow_borderUnderLine__i_0iq\",\"borderLine2\":\"nameWithRightArrow_borderLine2__ahBTG\",\"borderUnderLineThick\":\"nameWithRightArrow_borderUnderLineThick__biQKc\",\"mobileBorder\":\"nameWithRightArrow_mobileBorder__oJdap\",\"tableBorderUnderLine\":\"nameWithRightArrow_tableBorderUnderLine__fug09\",\"txtTitle\":\"nameWithRightArrow_txtTitle__Tx_ys\",\"bold\":\"nameWithRightArrow_bold__2JFAX\",\"semiBold\":\"nameWithRightArrow_semiBold__RlwhY\",\"txtIndent\":\"nameWithRightArrow_txtIndent__NOzRT\",\"txtSmallTitle\":\"nameWithRightArrow_txtSmallTitle__aNdaX\",\"txtSubTitle\":\"nameWithRightArrow_txtSubTitle__XZ7FL\",\"txtPlain\":\"nameWithRightArrow_txtPlain__HhNHE\",\"bullet\":\"nameWithRightArrow_bullet__JdxEl\",\"invisible\":\"nameWithRightArrow_invisible__j6GqG\",\"pageTitle\":\"nameWithRightArrow_pageTitle__XckN3\",\"sidePadding\":\"nameWithRightArrow_sidePadding__3UMAV\",\"newSidePadding\":\"nameWithRightArrow_newSidePadding__n1oLo\",\"whiteBackground\":\"nameWithRightArrow_whiteBackground__b9_0i\",\"sideMargin\":\"nameWithRightArrow_sideMargin__6uhQB\",\"fullHeight\":\"nameWithRightArrow_fullHeight__DJ8Sv\",\"containerElevated\":\"nameWithRightArrow_containerElevated__GIu0_\",\"noLineHeight\":\"nameWithRightArrow_noLineHeight__oueVX\",\"noMargin\":\"nameWithRightArrow_noMargin__qVRN7\",\"fullLineHeight\":\"nameWithRightArrow_fullLineHeight__6_Ie0\",\"mainTitle\":\"nameWithRightArrow_mainTitle__9UsCc\",\"hideScrollbar\":\"nameWithRightArrow_hideScrollbar__dwMJJ\",\"brandColorText\":\"nameWithRightArrow_brandColorText__LDKLt\",\"hide\":\"nameWithRightArrow_hide__H5qzn\",\"pageContainer\":\"nameWithRightArrow_pageContainer__1Pd1e\",\"transparent\":\"nameWithRightArrow_transparent__XBH_D\",\"textAlignCenter\":\"nameWithRightArrow_textAlignCenter__YHo4r\",\"topSticky\":\"nameWithRightArrow_topSticky___cerS\",\"topFixed\":\"nameWithRightArrow_topFixed__9UEQb\",\"stickBottom\":\"nameWithRightArrow_stickBottom__NwkFw\",\"transparentButton\":\"nameWithRightArrow_transparentButton__AMPp1\",\"transparentChildButton\":\"nameWithRightArrow_transparentChildButton__t5LAn\",\"medium\":\"nameWithRightArrow_medium__khqpu\",\"errorText\":\"nameWithRightArrow_errorText__qS1uB\",\"firstContainer\":\"nameWithRightArrow_firstContainer__mVYMe\",\"title\":\"nameWithRightArrow_title__loxVa\",\"subTitle\":\"nameWithRightArrow_subTitle__GTPmy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"brand\":\"#ffa0cc\",\"typo1\":\"#9e9e9e\",\"typo3\":\"#424242\",\"breakpointMobile\":\"999999px\",\"breakpointTablet\":\"999999px\",\"breakpointDesktop\":\"999999px\",\"topBarHeight\":\"80px\",\"mobilStoreNavBarHeight\":\"40px\",\"topPadding\":\"40px\",\"topBannerHeight\":\"40px\",\"topTabBarHeight\":\"56px\",\"layoutLeftPaddingNew\":\"16px\",\"layoutRightPaddingNew\":\"16px\",\"heading2Xl\":\"mypage_heading2Xl__cC04N\",\"headingXl\":\"mypage_headingXl___l9yd\",\"headingLg\":\"mypage_headingLg__Wpzk3\",\"headingMd\":\"mypage_headingMd___LijI\",\"borderCircle\":\"mypage_borderCircle__EJZ_D\",\"colorInherit\":\"mypage_colorInherit__Ikp_C\",\"padding1px\":\"mypage_padding1px__BEoRn\",\"list\":\"mypage_list__dRq29\",\"listItem\":\"mypage_listItem__u_IoN\",\"lightText\":\"mypage_lightText__I4afz\",\"testButton\":\"mypage_testButton__FIicx\",\"testProduct\":\"mypage_testProduct__Of0oE\",\"cursorPointer\":\"mypage_cursorPointer__hqO9S\",\"rewardSection\":\"mypage_rewardSection__F86fC\",\"cursorUnset\":\"mypage_cursorUnset__YwUg8\",\"block\":\"mypage_block__m9esC\",\"inlineBlock\":\"mypage_inlineBlock__jJsEh\",\"fullWidth\":\"mypage_fullWidth__oRxFm\",\"fullFlex\":\"mypage_fullFlex__QyW_o\",\"rewardSectionContent\":\"mypage_rewardSectionContent__GH7qn\",\"verticalMiddle\":\"mypage_verticalMiddle___yf2g\",\"justifyContentStart\":\"mypage_justifyContentStart__oSvSW\",\"justifyContentCenter\":\"mypage_justifyContentCenter__hCHth\",\"rewardSectionNewBadgeWrapper\":\"mypage_rewardSectionNewBadgeWrapper__Dc9_E\",\"sellerSectionLoadingContainer\":\"mypage_sellerSectionLoadingContainer__52Q0E\",\"orderLoadingContainer\":\"mypage_orderLoadingContainer__h4vmi\",\"justifyContentSpaceBetween\":\"mypage_justifyContentSpaceBetween__vAzAu\",\"statRow\":\"mypage_statRow__wjG4_\",\"sectionTitleRow\":\"mypage_sectionTitleRow__3M0tm\",\"justifyContentEnd\":\"mypage_justifyContentEnd__4I1Xg\",\"alignItemsCenter\":\"mypage_alignItemsCenter__CLj6h\",\"socialIcon\":\"mypage_socialIcon__Ykrba\",\"alignItemsStart\":\"mypage_alignItemsStart__Fh1Ro\",\"alignItemsEnd\":\"mypage_alignItemsEnd__QpfQw\",\"rootContainer\":\"mypage_rootContainer__qGOB5\",\"flexRow\":\"mypage_flexRow__xfrrK\",\"postListContainer\":\"mypage_postListContainer__Gdu9_\",\"flexCol\":\"mypage_flexCol__xtp3K\",\"postPlaceholder\":\"mypage_postPlaceholder__anql7\",\"flexFit\":\"mypage_flexFit__bFz1_\",\"container\":\"mypage_container__yBNOw\",\"relative\":\"mypage_relative__6q5bO\",\"absolute\":\"mypage_absolute__jCIFY\",\"displayNone\":\"mypage_displayNone__gdnkW\",\"square\":\"mypage_square___n4Pf\",\"noBorderRadius\":\"mypage_noBorderRadius__Qo0Ln\",\"no-select\":\"mypage_no-select__YjY1u\",\"borderUnderLine\":\"mypage_borderUnderLine__iwFOt\",\"borderLine2\":\"mypage_borderLine2__h9xt5\",\"borderUnderLineThick\":\"mypage_borderUnderLineThick__40gab\",\"mobileBorder\":\"mypage_mobileBorder___lSHN\",\"tableBorderUnderLine\":\"mypage_tableBorderUnderLine__ydrEB\",\"txtTitle\":\"mypage_txtTitle__kA8Q4\",\"bold\":\"mypage_bold__J1nZH\",\"semiBold\":\"mypage_semiBold__uazQY\",\"txtIndent\":\"mypage_txtIndent__7w_cM\",\"txtSmallTitle\":\"mypage_txtSmallTitle__cECTw\",\"txtSubTitle\":\"mypage_txtSubTitle__IjE4Y\",\"txtPlain\":\"mypage_txtPlain___Gv1H\",\"bullet\":\"mypage_bullet__w_gVV\",\"invisible\":\"mypage_invisible___b_SZ\",\"pageTitle\":\"mypage_pageTitle__a49Y4\",\"sidePadding\":\"mypage_sidePadding__cjbWD\",\"newSidePadding\":\"mypage_newSidePadding__LvSrW\",\"whiteBackground\":\"mypage_whiteBackground__3Zlhk\",\"sideMargin\":\"mypage_sideMargin__t__8r\",\"fullHeight\":\"mypage_fullHeight__Jy2_Q\",\"containerElevated\":\"mypage_containerElevated__EIUSH\",\"noLineHeight\":\"mypage_noLineHeight__G_utP\",\"noMargin\":\"mypage_noMargin__hHXG7\",\"fullLineHeight\":\"mypage_fullLineHeight__OqUkM\",\"mainTitle\":\"mypage_mainTitle__FQu2O\",\"hideScrollbar\":\"mypage_hideScrollbar__3LEod\",\"brandColorText\":\"mypage_brandColorText__OtLNb\",\"hide\":\"mypage_hide__Ort0K\",\"pageContainer\":\"mypage_pageContainer__L3fv5\",\"transparent\":\"mypage_transparent__gI_3v\",\"textAlignCenter\":\"mypage_textAlignCenter__LGLwv\",\"topSticky\":\"mypage_topSticky__Y3Sl5\",\"topFixed\":\"mypage_topFixed__955Xb\",\"stickBottom\":\"mypage_stickBottom__zpL5E\",\"transparentButton\":\"mypage_transparentButton__IBm4q\",\"transparentChildButton\":\"mypage_transparentChildButton__B_AHr\",\"medium\":\"mypage_medium__wrP0p\",\"errorText\":\"mypage_errorText__iQ5Fu\",\"errorContainer\":\"mypage_errorContainer__0ogEf\",\"section\":\"mypage_section__R1cYV\",\"sectionTitle\":\"mypage_sectionTitle__ymIX9\",\"sectionTitleWithDescriptor\":\"mypage_sectionTitleWithDescriptor__vjzWH\",\"subSectionTitle\":\"mypage_subSectionTitle__3eblh\",\"description\":\"mypage_description__HYRix\",\"navigatorRow\":\"mypage_navigatorRow__vhfsO\",\"orderBriefCardWrapper\":\"mypage_orderBriefCardWrapper__4t7aB\",\"sectionTitleWrapper\":\"mypage_sectionTitleWrapper__AW3VN\",\"sectionTitleDescriptor\":\"mypage_sectionTitleDescriptor__aVYGq\",\"showMoreWrapper\":\"mypage_showMoreWrapper__9Hfs1\",\"showMoreText\":\"mypage_showMoreText__F_OYk\",\"showMoreIcon\":\"mypage_showMoreIcon__8EmxH\",\"fullParent\":\"mypage_fullParent__cRUSG\",\"statContainer\":\"mypage_statContainer__7JXLt\",\"statTitle\":\"mypage_statTitle__VTNKz\",\"statValue\":\"mypage_statValue__7Kvo3\",\"statDescription\":\"mypage_statDescription__bke9B\",\"statSubDescription\":\"mypage_statSubDescription___dft1\",\"postWrapper\":\"mypage_postWrapper__fKTCD\",\"postPlaceholderText\":\"mypage_postPlaceholderText__ZkT_u\",\"nonMemberInfoCardContainer\":\"mypage_nonMemberInfoCardContainer__bRNri\",\"nonMemberInfoCardPhoto\":\"mypage_nonMemberInfoCardPhoto__li4Ie\",\"nonMemberInfoCardText\":\"mypage_nonMemberInfoCardText__eQaeG\",\"nonMemberInfoCardIcon\":\"mypage_nonMemberInfoCardIcon__jhLZS\",\"bannerContainer\":\"mypage_bannerContainer__soDSm\",\"rewardSectionImageWrapper\":\"mypage_rewardSectionImageWrapper___czZf\",\"rewardSectionImage\":\"mypage_rewardSectionImage__Oni1w\",\"countrySettingTitle\":\"mypage_countrySettingTitle__pVc7I\",\"countrySettingContainer\":\"mypage_countrySettingContainer__2AuTW\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"brand\":\"#ffa0cc\",\"typo1\":\"#9e9e9e\",\"typo3\":\"#424242\",\"breakpointMobile\":\"999999px\",\"breakpointTablet\":\"999999px\",\"breakpointDesktop\":\"999999px\",\"topBarHeight\":\"80px\",\"mobilStoreNavBarHeight\":\"40px\",\"topPadding\":\"40px\",\"topBannerHeight\":\"40px\",\"topTabBarHeight\":\"56px\",\"layoutLeftPaddingNew\":\"16px\",\"layoutRightPaddingNew\":\"16px\",\"heading2Xl\":\"seller-dashboard_heading2Xl__77x97\",\"headingXl\":\"seller-dashboard_headingXl__A1b9m\",\"headingLg\":\"seller-dashboard_headingLg__W1hXC\",\"headingMd\":\"seller-dashboard_headingMd__Mvt7y\",\"borderCircle\":\"seller-dashboard_borderCircle__I1_X1\",\"colorInherit\":\"seller-dashboard_colorInherit__oPr_x\",\"padding1px\":\"seller-dashboard_padding1px__zVBF0\",\"list\":\"seller-dashboard_list__i_grZ\",\"listItem\":\"seller-dashboard_listItem__pNqGT\",\"lightText\":\"seller-dashboard_lightText___brrF\",\"testButton\":\"seller-dashboard_testButton__bfD7h\",\"testProduct\":\"seller-dashboard_testProduct__alcBV\",\"cursorPointer\":\"seller-dashboard_cursorPointer__J4oti\",\"cursorUnset\":\"seller-dashboard_cursorUnset___k6wy\",\"block\":\"seller-dashboard_block__OFhio\",\"inlineBlock\":\"seller-dashboard_inlineBlock__BSuBP\",\"fullWidth\":\"seller-dashboard_fullWidth__QYO3C\",\"fullFlex\":\"seller-dashboard_fullFlex__kVHYZ\",\"verticalMiddle\":\"seller-dashboard_verticalMiddle__FEZYC\",\"justifyContentStart\":\"seller-dashboard_justifyContentStart__WylEu\",\"justifyContentCenter\":\"seller-dashboard_justifyContentCenter__AMGzC\",\"justifyContentSpaceBetween\":\"seller-dashboard_justifyContentSpaceBetween__qvO6Z\",\"sellHistoryRow\":\"seller-dashboard_sellHistoryRow__5rbqU\",\"calculatorRow\":\"seller-dashboard_calculatorRow__KNgEP\",\"justifyContentEnd\":\"seller-dashboard_justifyContentEnd__lW0hj\",\"alignItemsCenter\":\"seller-dashboard_alignItemsCenter__ArdwG\",\"topSellerRowWrapper\":\"seller-dashboard_topSellerRowWrapper__Hc3p4\",\"totalPointContainer\":\"seller-dashboard_totalPointContainer__Qt7xR\",\"socialIcon\":\"seller-dashboard_socialIcon__vxn5O\",\"alignItemsStart\":\"seller-dashboard_alignItemsStart__MP9L0\",\"alignItemsEnd\":\"seller-dashboard_alignItemsEnd__nVHBj\",\"rootContainer\":\"seller-dashboard_rootContainer__gEhlX\",\"flexRow\":\"seller-dashboard_flexRow__9N3_2\",\"buttonsContainer\":\"seller-dashboard_buttonsContainer__adVPo\",\"amountInputWrapper\":\"seller-dashboard_amountInputWrapper__n3Kor\",\"flexCol\":\"seller-dashboard_flexCol__sf9fx\",\"flexFit\":\"seller-dashboard_flexFit__uUq3i\",\"container\":\"seller-dashboard_container__XyvSU\",\"relative\":\"seller-dashboard_relative__jHldE\",\"absolute\":\"seller-dashboard_absolute__HwLNJ\",\"displayNone\":\"seller-dashboard_displayNone__RI6bS\",\"square\":\"seller-dashboard_square__SBW2_\",\"noBorderRadius\":\"seller-dashboard_noBorderRadius__YNjHW\",\"no-select\":\"seller-dashboard_no-select__2x0Dk\",\"borderUnderLine\":\"seller-dashboard_borderUnderLine__hgPfU\",\"borderLine2\":\"seller-dashboard_borderLine2__O4Egt\",\"borderUnderLineThick\":\"seller-dashboard_borderUnderLineThick__cTJbr\",\"mobileBorder\":\"seller-dashboard_mobileBorder__N6fx1\",\"tableBorderUnderLine\":\"seller-dashboard_tableBorderUnderLine__u3nnu\",\"txtTitle\":\"seller-dashboard_txtTitle__VxcDj\",\"bold\":\"seller-dashboard_bold__C4JVc\",\"semiBold\":\"seller-dashboard_semiBold__tqcrK\",\"txtIndent\":\"seller-dashboard_txtIndent__lpZkh\",\"txtSmallTitle\":\"seller-dashboard_txtSmallTitle__lFk1N\",\"txtSubTitle\":\"seller-dashboard_txtSubTitle__cRfnS\",\"txtPlain\":\"seller-dashboard_txtPlain__Cix4a\",\"bullet\":\"seller-dashboard_bullet__k4E8L\",\"invisible\":\"seller-dashboard_invisible__FWN_c\",\"pageTitle\":\"seller-dashboard_pageTitle__MKvA_\",\"sidePadding\":\"seller-dashboard_sidePadding__B2zdL\",\"newSidePadding\":\"seller-dashboard_newSidePadding__Ysu6o\",\"whiteBackground\":\"seller-dashboard_whiteBackground__osn5l\",\"sideMargin\":\"seller-dashboard_sideMargin__jSrHo\",\"fullHeight\":\"seller-dashboard_fullHeight__PHBMU\",\"containerElevated\":\"seller-dashboard_containerElevated__6rCXJ\",\"noLineHeight\":\"seller-dashboard_noLineHeight__BvA8_\",\"noMargin\":\"seller-dashboard_noMargin__bb_Ak\",\"fullLineHeight\":\"seller-dashboard_fullLineHeight__GLT4z\",\"mainTitle\":\"seller-dashboard_mainTitle__b_T1w\",\"hideScrollbar\":\"seller-dashboard_hideScrollbar__rLz_C\",\"brandColorText\":\"seller-dashboard_brandColorText__t18va\",\"hide\":\"seller-dashboard_hide__YfyQj\",\"pageContainer\":\"seller-dashboard_pageContainer__coZox\",\"transparent\":\"seller-dashboard_transparent__7Dygh\",\"textAlignCenter\":\"seller-dashboard_textAlignCenter__kahk9\",\"topSticky\":\"seller-dashboard_topSticky__3nN1V\",\"topFixed\":\"seller-dashboard_topFixed__y83wi\",\"stickBottom\":\"seller-dashboard_stickBottom__9zX1X\",\"transparentButton\":\"seller-dashboard_transparentButton__rNwyg\",\"transparentChildButton\":\"seller-dashboard_transparentChildButton__Svwbw\",\"medium\":\"seller-dashboard_medium__pkqFT\",\"errorText\":\"seller-dashboard_errorText__GPLKT\",\"section\":\"seller-dashboard_section__SFXSv\",\"totalPointTitle\":\"seller-dashboard_totalPointTitle__M16WK\",\"totalPoint\":\"seller-dashboard_totalPoint__BS3Cg\",\"labelMargin\":\"seller-dashboard_labelMargin__yHboF\",\"formSection\":\"seller-dashboard_formSection__sZ8R3\",\"amountSection\":\"seller-dashboard_amountSection__dXABi\",\"calculatorContainer\":\"seller-dashboard_calculatorContainer__QtG7e\",\"calculatorKey\":\"seller-dashboard_calculatorKey__vdLQK\",\"calculatorValue\":\"seller-dashboard_calculatorValue__oRcEa\",\"calculatorWon\":\"seller-dashboard_calculatorWon__EDl3P\",\"amountInput\":\"seller-dashboard_amountInput__3Dyls\",\"amountWon\":\"seller-dashboard_amountWon__vuXRH\",\"bulletText\":\"seller-dashboard_bulletText__NoXpF\",\"buttonWrapper\":\"seller-dashboard_buttonWrapper__Gmj3e\",\"titleContainer\":\"seller-dashboard_titleContainer__lZ6e9\",\"title\":\"seller-dashboard_title__7uXHY\",\"subTitle\":\"seller-dashboard_subTitle__vFiIt\",\"boxContainer\":\"seller-dashboard_boxContainer__MC53v\",\"cashOutLogRowContainer\":\"seller-dashboard_cashOutLogRowContainer__3G3lp\",\"cashOutLogDate\":\"seller-dashboard_cashOutLogDate__5fT_N\",\"cashOutLogStatus\":\"seller-dashboard_cashOutLogStatus__0_wsd\",\"cashOutLogAccountInfo\":\"seller-dashboard_cashOutLogAccountInfo__NLltc\",\"cashOutLogRowAmount\":\"seller-dashboard_cashOutLogRowAmount__ynB4o\",\"cashOutLogRowReasonButton\":\"seller-dashboard_cashOutLogRowReasonButton__6jbQn\",\"pipe\":\"seller-dashboard_pipe__JV8WZ\",\"error\":\"seller-dashboard_error__UlD0V\",\"sellHistoryRowContainer\":\"seller-dashboard_sellHistoryRowContainer__IsLv2\",\"sellHistoryRowDate\":\"seller-dashboard_sellHistoryRowDate__WAWRh\",\"sellHistoryRowBrandName\":\"seller-dashboard_sellHistoryRowBrandName__CUkCv\",\"sellHistoryRowProductName\":\"seller-dashboard_sellHistoryRowProductName__cnisW\",\"sellHistoryRowPoint\":\"seller-dashboard_sellHistoryRowPoint__Y5vP9\",\"sellHistoryRowOptionInfo\":\"seller-dashboard_sellHistoryRowOptionInfo__lhzeQ\",\"topSellerError\":\"seller-dashboard_topSellerError__6cG6P\",\"topSellerRowIndex\":\"seller-dashboard_topSellerRowIndex__9AKwZ\",\"topSellerImageContainer\":\"seller-dashboard_topSellerImageContainer__RI5yz\",\"topSellerBrandName\":\"seller-dashboard_topSellerBrandName__fnyur\",\"topSellerProductName\":\"seller-dashboard_topSellerProductName__pf_6E\",\"topSellerRowText\":\"seller-dashboard_topSellerRowText__xhz_R\",\"topSellerRowHighlight\":\"seller-dashboard_topSellerRowHighlight__A0QuG\",\"rejectReasonModalContainer\":\"seller-dashboard_rejectReasonModalContainer__6CBn6\",\"rejectReasonModalText\":\"seller-dashboard_rejectReasonModalText__KIZsn\",\"rejectReasonModalTitle\":\"seller-dashboard_rejectReasonModalTitle__dHQYa\",\"dotTextContainer\":\"seller-dashboard_dotTextContainer__fg2TJ\",\"dotText\":\"seller-dashboard_dotText__CHRJF\",\"dotTextEmphasis\":\"seller-dashboard_dotTextEmphasis__ipxB6\",\"dotTextMargin\":\"seller-dashboard_dotTextMargin__LAY0w\",\"couponContainer\":\"seller-dashboard_couponContainer__y4E3v\",\"couponCard\":\"seller-dashboard_couponCard__uCPPp\",\"couponItem\":\"seller-dashboard_couponItem__wC1P_\",\"couponContent\":\"seller-dashboard_couponContent__UzRPf\",\"couponLeft\":\"seller-dashboard_couponLeft__OF4tG\",\"discountAmount\":\"seller-dashboard_discountAmount__d_zNB\",\"couponTitle\":\"seller-dashboard_couponTitle__Xg_ud\",\"couponDescription\":\"seller-dashboard_couponDescription__jcNs9\",\"validPeriod\":\"seller-dashboard_validPeriod__88zKH\",\"couponRight\":\"seller-dashboard_couponRight__mEPSn\",\"couponCode\":\"seller-dashboard_couponCode__la2Zm\",\"copyButton\":\"seller-dashboard_copyButton___6zfj\",\"couponFooter\":\"seller-dashboard_couponFooter__zOCON\",\"couponNote\":\"seller-dashboard_couponNote__6yQeP\",\"borderBar\":\"seller-dashboard_borderBar__pNqlG\",\"commissionContainer\":\"seller-dashboard_commissionContainer__l6XGL\",\"commissionLabel\":\"seller-dashboard_commissionLabel__NWdJv\",\"commissionRate\":\"seller-dashboard_commissionRate__Vl5lF\",\"couponList\":\"seller-dashboard_couponList__DE9S5\",\"couponInfo\":\"seller-dashboard_couponInfo__Vj4FY\",\"couponCodeWrapper\":\"seller-dashboard_couponCodeWrapper__M9qoM\",\"couponCodeContainer\":\"seller-dashboard_couponCodeContainer__UIETx\",\"affiliateCouponSection\":\"seller-dashboard_affiliateCouponSection__Rn4uu\"};"],"names":["TextInputSelect","props","placeholder","value","disabled","readonly","error","dark","options","onChange","style","position","className","classNames","styles","undefined","marginLeft","viewBox","height","width","e","target","hidden","Object","entries","map","key","val","NameWithRightArrow","useMediaQuery","utilStyles","title","subtitle","href","first","last","disableLink","rightButton","onClick","mixpanel","track","row","_circle","_path","_path2","_extends","assign","bind","i","arguments","length","source","prototype","hasOwnProperty","call","apply","this","fill","xmlns","cx","cy","r","fillOpacity","fillRule","clipRule","d","stroke","strokeWidth","strokeLinecap","ContentWithRightArrow","children","firstWithoutPadding","StatRow","description","subDescription","SellerSection","t","useTranslation","useContext","UserContext","user","commissionRate","useState","accumulatedPoints","usedPoints","pendingPoints","isLoading","total_left","data","setData","useEffect","newState","JSON","parse","stringify","Axios","res","status","accumulated_points","pending_points","used_points","id","currencyText","COUNTRY_CODE","KOREA_COUNTRY_CODE","point","numberWithComma","paddingBottom","sellerDashboardRoute","Loading","formatCurrencyValue","PostPlaceholder","text","newPostRoute","PaletteSection","code","fetchPalette","INITIAL_POST_DATA","posts","paletteData","setPaletteData","cache","defaultCacheOption","values","newValues","replaceAndConcat","slice","display_message","marginTop","padding","filter","x","getCreatorPaletteRoute","idx","itemIdx","SimplePostListCard","post","hideText","hideScrapButton","MyPage","isMobile","orderHistoryCountDict","setOrderHistoryCountDict","setOrders","setIsLoading","setError","i18nContext","I18nContext","userContext","router","useRouter","console","log","is_creator","pushContext","PushContext","isPushOn","isDevicePushOn","isMarketingAgreed","fetchMoreOrders","fetchCount","fetchUser","countryCode","getLocalStorageCountryCode","params","months","size","cursor","oldArray","order_history_list","captureMessage","captureException","banners","setBanners","location","TitleBar","close","back","MyInfoCard","loginRoute","checkCountryByIpAndOpenSelectCountryModal","withChildren","alignItems","circle","showDescription","ordersRoute","OrderCountBriefCard","routeWithPathname","noTopPadding","MainBanner","myInfoRoute","addressRoute","refundAccountRoute","pro_grade","proVerificationRoute","inquiryRoute","productInquiriesRoute","faqRoute","FullButton","black","fontSize","logout","nonMemberOrderSearchRoute","isApp","on","sendPushAgreementRequest","getLayout","NavigationLayout","restoreScroll","_path3","_path4","KEY_ACCOUNT_NUMBER","KEY_ACCOUNT_HOLDER_NAME","KEY_BANK_CODE","KEY_SSN","KEY_AMOUNT","KEY_EMAIL","SellRankSection","topSellerList","top_seller_list","marginRight","brandName","product","brand_name","unoptimized","src","thumbnail_url","layout","objectFit","lines","ellipsis","name","count","amount","commission","SellHistorySection","sellHistoryList","remoteRowCount","rowRenderer","index","isScrolling","isVisible","parent","sellHistoryLog","borderBottom","formatDate","sold_at","product_name","option_name","loadMoreRows","startIndex","stopIndex","newVal","concat","cash_out_request_history","threshold","isRowLoaded","rowCount","minimumBatchSize","onRowsRendered","disableHeight","overscanRowCount","Math","max","min","rowHeight","CashOutLogSection","isModalOpen","setIsModalOpen","cashOutRequestList","cashOutLog","created_at","color","bank_name","number","reject_reason","cash_out_type","email","Modal","round","isOpen","CalculatorRow","currency","CashOutModal","bankOptions","minCashOutAmount","availablePoints","formik","useFormik","enableReinitialize","initialValues","validationSchema","yup","required","onSubmit","alert","toast","closeModal","setFieldValue","errors","setValues","handleSubmit","setFieldTouched","touched","resetForm","cashOutAmount","parseInt","tax","isBack","split","join","Number","isInteger","InputLabel","fromEntries","InputError","message","TextInput","maxLength","onBlur","match","BulletText","light","GlobalCashOutModal","onSuccess","subCurrency","makeZeroIfNegative","formattedPrice","StatSection","userPoints","cashOutPendingPoints","isLoaded","setBankOptions","setMinCashOutAmount","bank_options","min_cash_out_amount","Sentry","fetchStatsDetail","total_points","cash_out_pending_points","isDataLoaded","descriptionTextAndEmphasis","isEmphasis","AffiliateCouponSection","isInfluencer","COMMISSION_RATE","commission_rate","coupons","setCoupons","fetchCoupons","couponIdToCondition","useMemo","reduce","acc","coupon","min_amount","max_amount","minAmount","maxAmount","couponCondition","type","periodText","format","startsAt","starts_at","Date","toLocaleDateString","endsAt","ends_at","isCouponListEmpty","Boolean","mold_key","navigator","clipboard","writeText","SellerDashBoardPage","query","cash_out","is_influencer","push","shallow","module","exports"],"sourceRoot":""}