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,CAAAA,CAAAA,QACS,GAE7BxB,EAAkB,GAAA1E,EAAApC,IAAA,EAAAoC,EAAAK,QAAA,YACjB,GAAAL,EAAApC,IAAA,EAAC0H,EAAAA,WAAY,sBAAuB,GAAAtF,EAAApC,IAAA,EAACY,EAAAA,CAAOA,CAAAA,CAAC3G,MAAO,GAAAmI,EAAA1F,GAAA,EAAC8G,EAAyBA,UAC1E,oEAC0BE,UAAW,aAAc5G,MAAM,OAAO6G,kBAAmB,CAACC,aAAc,MAAOC,UAAW,QAASxD,MAAO,OAAO,YAAG,IAAC,GAAA+B,EAAA1F,GAAA,EAACuD,EAAAA,CAAeA,CAAAA,CAACnD,MAAM,UAAUqD,KAAMoI,EAAAA,YAAYA,GAAG,UACzM,GAAAnG,EAAA1F,GAAA,EAAC8L,EAAAA,CAAUA,CAAAA,CAAAA,MACP,GAELvB,EAAiB,GAAA7E,EAAApC,IAAA,EAAAoC,EAAAK,QAAA,YAChB,GAAAL,EAAA1F,GAAA,EAACgL,EAAAA,UAAY,uCACb,GAAAtF,EAAA1F,GAAA,EAACyL,EAAAA,UACC,GAAA/F,EAAA1F,GAAA,EAAC+L,EAAAA,CAAiBA,CAAAA,CAAAA,QAEhB,QAId,GAIA,IAAMjF,EAA4B4B,EAAAA,EAAMA,CAACvF,GAAG,CAAA6I,KAQtCf,EAA0BvC,EAAAA,EAAMA,CAACvF,GAAG,CAAA8I,KAOpCjB,EAActC,EAAAA,EAAMA,CAACvF,GAAG,CAAA+I,KAOxBT,EAAsB/C,EAAAA,EAAMA,CAACvF,GAAG,CAAAgJ,yBCjKtCC,EAAAC,OAAA,EAAkB,uhBCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/dashboard/keyword-explorer/content/focused-keyword/components/add-to-list-dropdown/index.tsx","webpack://_N_E/./src/components/dashboard/pages/keyword-researcher-v2/detail-page/components/relatedKeywordsTable.tsx","webpack://_N_E/./src/components/dashboard/pages/keyword-researcher-v2/keyword-detail-drawer-content/index.tsx","webpack://_N_E/./src/components/dashboard/keyword-explorer/content/focused-keyword/components/add-to-list-dropdown/styles.module.scss","webpack://_N_E/./src/components/dashboard/keyword-explorer/content/focused-keyword/index.module.scss"],"sourcesContent":["import React, {useRef, useState, useEffect} from 'react';\nimport {useStore} from '@/store/root-store';\nimport {Select, Spin, Tooltip} from 'antd';\nimport {observer} from 'mobx-react-lite';\nimport styles from './styles.module.scss';\nimport {CheckOutlined} from '@ant-design/icons';\nimport {Button} from '@/components/common-components';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faCheck} from '@fortawesome/pro-light-svg-icons';\nimport {LoadingOutlined} from '@ant-design/icons';\n\nimport {MixPanel} from '@/utils/mixpanel';\nimport {KEYWORD_LISTS_UPDATE_FROM_DETAIL_PAGE} from '@/constants/events';\n\nimport {BaseSelectRef} from 'rc-select';\nimport {toJS} from 'mobx';\n\ninterface Prop {\n keyword: string;\n isIncluded?: boolean;\n title?:string;\n}\nexport const AddToListDropdown: React.FC = observer(({\n keyword,\n isIncluded,\n title,\n}) => {\n const {Option} = Select;\n const selectRef= useRef() as React.Ref;\n const [isSelectLoading, setIsSelectLoading] = useState(false);\n\n let current = 'DEFAULT';\n const {keywordExplorer: {overview, focusedKeyword}} = useStore('');\n const {contentOptimizer: {currentPage}} = useStore('');\n const {settings: {customer: {profile: {quotaUtilization}, getCustomerQuota}}, plans: {showSidebarPaymentDrawer}} = useStore('');\n const keywordList = overview.keywordsList.map(item => ({\n id: item.id,\n name: item.name,\n count: item.keyword.length,\n countryCode: item.countryCode? item.countryCode : '',\n keyword: item.keyword.slice(),\n }));\n Object.keys(keywordList).find(section => {\n const match = keywordList[section].keyword.find(element => element == keyword);\n if (match) {\n current = keywordList[section].name;\n }\n });\n useEffect(() => {\n if (!overview.loading) {\n setIsSelectLoading(false);\n }\n }, [overview.loading]);\n\n const antIcon = ;\n\n // METHODS FOR KEYWORD EXPLORER\n const handleOnChange =(value, event)=>{\n const optionData = event;\n if (optionData.action == '') return;\n\n Object.keys(keywordList).find(section => {\n const match = keywordList[section].keyword.filter(element => element == optionData.mainkeyword);\n if (match.length > 0) {\n const updatedKeyword = keywordList[section].keyword.filter(item => item != optionData.mainkeyword );\n const data = {'id': keywordList[section].id, 'name': keywordList[section].name, 'keywords': updatedKeyword, 'count': updatedKeyword.length, 'countryCode': keywordList[section].countryCode, 'isRecentSearch': keywordList[section].isRecentSearch};\n if (data.keywords.length > 0) {\n setIsSelectLoading(true);\n\n MixPanel.track(KEYWORD_LISTS_UPDATE_FROM_DETAIL_PAGE, {\n updateKeyword: data,\n });\n\n overview.updateKeyword(data);\n }\n }\n });\n\n if (optionData.action == 'update') {\n if (optionData.mainkeyword != value) {\n setIsSelectLoading(true);\n optionData.listobject.keyword.push(optionData.mainkeyword);\n const data = {'id': optionData.listobject.id, 'name': optionData.listobject.name, 'keywords': optionData.listobject.keyword, 'count': optionData.listobject.keyword.length, 'countryCode': optionData.listobject.countryCode, 'isRecentSearch': optionData.listobject.isRecentSearch};\n\n MixPanel.track(KEYWORD_LISTS_UPDATE_FROM_DETAIL_PAGE, {\n updateKeyword: data,\n });\n\n overview.updateKeyword(data);\n }\n }\n };\n\n\n // METHODS FOR SCA\n const onAddKeywordFinish = async () => {\n if (currentPage.feTargetKeywords && currentPage.feTargetKeywords?.filter(kw => JSON.stringify({\n keyword: kw.keyword,\n countryCode: kw.countryCode || null,\n locationId: kw.locationId,\n location: kw.location,\n }) === JSON.stringify({\n keyword: keyword,\n countryCode: currentPage.content.countryCode || null,\n locationId: currentPage.content.locationId,\n location: currentPage.content.location,\n })).length) {\n return;\n }\n focusedKeyword.addToLoadingArray(keyword);\n\n const newKwLocation = {\n location: toJS(currentPage).content.location,\n locationId: toJS(currentPage).content.locationId,\n countryCode: toJS(currentPage).content.countryCode,\n };\n\n\n const formatArray = [...toJS(currentPage?.feTargetKeywords || []), {\n keyword: keyword,\n ...newKwLocation,\n }];\n\n currentPage.updateFeTargetKeywords(formatArray);\n\n try {\n await currentPage?.editKeywords({keyword: keyword, ...newKwLocation}, 'add');\n getCustomerQuota();\n } catch (err) {\n if (err?.response?.status === 429) {\n showSidebarPaymentDrawer(null, {title: 'You need more Content Genius focus terms quota to continue', subtitle: '', text: `Current limit: ${quotaUtilization?.ca?.allowedFocusTerms?.total} lookups`});\n }\n return Promise.reject(err);\n }\n };\n\n\n return !currentPage.isDrawerFromCa ? (\n
\n
\n {\n handleOnChange(value, event);\n }}\n dropdownStyle={{minWidth: '220px'}}\n dropdownClassName={styles.keywordDropdownList}\n className={styles.selectInput}\n loading={isSelectLoading}\n disabled={overview.loading}\n >\n \n \n\n {\n Object.keys(keywordList).map((item, i)=> {\n const name = keywordList[item].name;\n if (name) {\n const key = name+i;\n return ;\n }\n })\n }\n \n
\n
\n ) : (\n
\n
\n {isIncluded ?\n
\n {}} icon={faCheck} style={{color: '#2AC155', fontSize: '12px', marginRight: '9px'}}/>\n Keyword Added\n
:\n
{focusedKeyword.loadingArray && focusedKeyword.loadingArray.includes(keyword) ?\n : null}\n {\n currentPage?.feTargetKeywords?.length < 15 ?\n onAddKeywordFinish()}>\n Add Target Keyword\n :\n \n
\n \n Add Target Keyword\n \n
\n\n
\n\n }\n\n
}\n
\n
\n );\n});\n","import {observer} from 'mobx-react-lite';\nimport {useStore} from '@/store/root-store';\nimport {BarChartColumn, Table} from '@/components/common-components/components';\nimport {ColumnsType} from 'antd/lib/table';\nimport {isNil} from 'lodash';\nimport {formatNumber} from '@/utils/number';\nimport {VerticalBar} from '@/components/common-components/components/vertical-bar/index';\nimport styled from 'styled-components';\nimport {Tooltip} from 'antd';\nimport {EmptyStateKeDetail} from './emptyStateKe';\nimport {getSingleUrlParam} from '@/utils/url';\nimport {AddToListDropdown} from '@/components/dashboard/keyword-explorer/content/focused-keyword/components/add-to-list-dropdown';\nimport {toJS} from 'mobx';\nimport {useEffect, useState} from 'react';\nimport Link from 'next/link';\n\nexport const RelatedKeywordsTable = observer(() => {\n const {keywordResearcherV2: {keywordDetails: {getKeywordDetailsData, loadingKeywordMainDetails}}} = useStore('');\n const {keywordExplorer: {focusedKeyword}} = useStore('');\n const {contentOptimizer: {currentPage}} = useStore('');\n const [tableData, setTableData] = useState([]);\n const countryCode = getSingleUrlParam('countryCode');\n const locationId = getSingleUrlParam('locationId');\n const data = getKeywordDetailsData?.relatedKeywordsFirstArr || [];\n\n const columns: ColumnsType = [{\n title: () => KEYWORD,\n key: 'keyword',\n dataIndex: 'keyword',\n width: '100%',\n fixed: 'left' as 'left',\n render: (_, data: any) => {\n return (\n <>\n \n \n
\n {data?.keyword ? data.keyword : ''}\n
\n
\n \n \n );\n },\n },\n {\n title: () =>
TREND
,\n key: 'histSv',\n dataIndex: 'histSv',\n align: 'left',\n width: 170,\n render: (_, data: any) => {\n const chartSeries = {\n data: data?.histSv,\n itemStyle: {color: '#7f4ead'},\n type: 'bar',\n };\n return
\n \n
;\n },\n },\n {\n title: () => \n Search Volume shows how often the keyword was searched for over the past 12 months.\n } placement={'bottom'} color='#fff' overlayInnerStyle={{borderRadius: '6px', maxHeight: '200px', width: '300px'}}>
\n SV\n
,\n key: 'sv',\n dataIndex: 'sv',\n align: 'right',\n width: 70,\n sorter: (a: any, b: any) => a?.sv - b?.sv,\n render: sv =>
\n {!isNil(sv) ? formatNumber(sv) : '-'}
,\n },\n {\n title: () =>\n CPC (Cost Per Clicks) shows the price breakdown of how much a click costs on avg.\n } placement={'bottom'} color='#fff' overlayInnerStyle={{borderRadius: '6px', maxHeight: '200px', width: '300px'}}> CPC,\n key: 'cpc',\n dataIndex: 'cpc',\n align: 'right',\n width: 90,\n sorter: (a: any, b: any) => a?.cpc - b?.cpc,\n render: cpc =>
\n {!isNil(cpc) ? `$${cpc?.toFixed(0)}` : '-'}\n \n
,\n },\n {\n title: () =>
\n ADD TO LIST\n
,\n key: 'matchingCompetitors',\n dataIndex: 'matchingCompetitors',\n align: 'center',\n width: 236,\n render: (_, data: any) => {\n return <>\n \n ;\n },\n },\n ];\n\n useEffect(() => {\n const targetKwArray = currentPage?.content?.targetKeywords && currentPage?.content?.targetKeywords.length ? toJS(currentPage.content.targetKeywords).map(item => {\n return JSON.stringify({\n keyword: item.keyword,\n countryCode: item.countryCode || null,\n locationId: item.locationId,\n location: item.location,\n });\n }) : [];\n\n\n if (data.length && targetKwArray?.length ) {\n const updatedData = toJS(data).map(item => {\n return {\n ...item,\n isKwIncluded: targetKwArray.includes(JSON.stringify({\n keyword: item.keyword,\n countryCode: currentPage.content.countryCode || null,\n locationId: currentPage.content.locationId,\n location: currentPage.content.location,\n })),\n };\n });\n\n setTableData(updatedData);\n } else {\n setTableData(data);\n }\n }, [data.length, focusedKeyword?.loadingArray?.length, currentPage?.content?.targetKeywords?.length]);\n\n return (\n \n {loadingKeywordMainDetails || data?.length ?\n :\n \n\n }\n \n );\n});\n\nconst TableContainer = styled.div`\n padding-bottom: 0 !important;\n\n .ant-table-body {\n overflow-y: auto !important;\n &::-webkit-scrollbar {\n height: 5px;\n width: 5px;\n }\n \n &::-webkit-scrollbar-thumb {\n background: rgba(138,138,138,0.32);\n }\n \n &::-webkit-scrollbar-track {\n background: rgba(138,138,138,0.12);\n }\n}\n\ntable tr th {\n background-color: #fff;\n}\n\n.ant-table-content {\n border-radius: 0 !important;\n}\n\n.ant-table-column-sorters-with-tooltip:not(:first-child) {\n text-align: center;\n}\n\ntable {\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n\n th::before {\n width: 0 !important;\n }\n\n .ant-table-column-sorter {\n display: flex;\n padding-left: 3px !important;\n }\n\n .ant-table-column-sorters {\n display: inline-flex !important;\n padding: 5px !important;\n }\n\n tr td {\n &:first-child {\n padding-bottom: 0 !important;\n padding-top: 0 !important;\n }\n }\n\n .ant-table-tbody {\n tr:nth-child(even) {\n td {\n background: #fff !important;\n border-bottom: 1px solid #f4f4f4 !important;\n box-shadow: none;\n font-weight: 400;\n white-space: nowrap;\n }\n\n &:hover {\n td {\n background: #eef4fe !important;\n }\n\n button {\n background: #eef4fe !important;\n border: 0 !important;\n color: #2d6cca;\n font-weight: 500;\n }\n }\n }\n\n tr:nth-child(odd) {\n td {\n background: #fff;\n border-bottom: 1px solid #f4f4f4 !important;\n box-shadow: none;\n font-weight: 400;\n white-space: nowrap;\n }\n\n &:hover {\n td {\n background: #eef4fe !important;\n }\n\n button {\n background: #eef4fe !important;\n border: 0 !important;\n color: #2d6cca;\n font-weight: 500;\n }\n }\n }\n }\n\n .ant-table-thead {\n background: #f7f7f7 !important;\n\n th {\n background: #f7f7f7 !important;\n color: #121212 !important;\n font-size: 12px;\n font-weight: 600;\n line-height: 14px;\n padding: 0 !important;\n }\n\n .ant-table-cell-fix-left {\n text-align: left !important;\n\n &:first-child {\n border-bottom-left-radius: 8px !important;\n border-top-left-radius: 8px !important;\n }\n }\n\n th:first-child {\n background: #f7f7f7 !important;\n border-bottom-left-radius: 8px !important;\n border-top-left-radius: 8px !important;\n color: #121212;\n font-size: 12px;\n font-weight: 600;\n }\n\n th:nth-child(2) {\n background: #f7f7f7 !important;\n color: #121212;\n font-size: 12px;\n font-weight: 600;\n }\n\n th:last-child {\n background-color: #f7f7f7 !important;\n border-bottom-right-radius: 8px !important;\n border-top-right-radius: 8px !important;\n padding-left: 25px !important;\n }\n }\n\n .ant-table-cell-fix-left-last {\n text-align: left !important;\n }\n\n tr:first-child td {\n background: #fff !important;\n }\n\n tr:nth-child(even) td {\n background: #f9f9fb !important;\n }\n\n tr:nth-child(odd) td {\n background-color: #fff !important;\n }\n\n tr th {\n height: 50px !important;\n line-height: 22px;\n white-space: nowrap;\n }\n\n .ant-column-sorters {\n padding-left: 20px !important;\n padding-right: 20px !important;\n }\n\n tr td {\n padding-bottom: 15px;\n padding-top: 15px;\n text-align: center;\n }\n\n tr th:first-child,\n tr td:first-child {\n padding-left: 25px !important;\n padding-right: 25px !important;\n }\n\n tr th:last-child,\n tr td:last-child {\n padding-left: 25px !important;\n padding-right: 25px !important;\n text-align: center;\n }\n}\n`;\n\nconst TooltipDescriptionWrapper = styled.div`\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n color: #121212;\n padding: 5px;\n`;\nconst KeywordWrapper = styled.div`\n font-weight: 400;\n font-size: 14px;\n line-height: 18px;\n color: #2D6CCA;\n cursor: pointer;\n &:hover { \n text-decoration: underline;\n }\n`;\n","import React from 'react';\nimport {Select, Tooltip} from 'antd';\n// import {Tabs, TabPane, CardWrapper, SkeletonHorizontalLoaderGray} from '@/components/common-components/components';\n// import {KeywordDifficulty, Charts, GlobalVolume} from './components';\n// import classnames from 'classnames';\n// import {SuggestedKeywordTable, SerpOverviewTable} from '../../tables';\n// import {SimilarKeywordsTable} from '../../tables/similar-keywords-table/similar-keywords-table';\nimport styles from '@/components/dashboard/keyword-explorer/content/focused-keyword/index.module.scss';\n// import {TrafficShareTable} from '../../tables/traffic-share-domains';\nimport {observer} from 'mobx-react-lite';\nimport {useStore} from '@/store/root-store';\n// import {NoDataBanner} from '@/components/common-components';\nimport {useRouter} from 'next/router';\n// import {SuggestedKeywordsTables} from '@/components/dashboard/keyword-explorer/content/KeywordDetailsPage/SuggestedKeywordsTables';\n// import {Button} from '@/components/common-components/v2';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faCaretDown, faCircleInfo} from '@fortawesome/pro-solid-svg-icons';\nimport {Header} from '../detail-page/header';\nimport styled from 'styled-components';\nimport {HistoricalChart} from '../detail-page/components/historicalChart';\nimport {GlobalVolume} from '../detail-page/components/globalVolume';\nimport {SuggestedKeywordsTables} from '../detail-page/components/suggested-keywords-tables';\nimport {KeywordCompetition} from '../detail-page/components/keywordCompetition';\nimport {AdvertisersTable} from '../detail-page/components/advertisersTable';\nimport {CurrentAds} from '../detail-page/components/currentAds';\nimport {GoogleAdsBuyTable} from '../detail-page/components/googleAdsBuyTable';\nimport {toJS} from 'mobx';\nimport {RelatedKeywordsTable} from '../detail-page/components/relatedKeywordsTable';\n\n\nconst KeywordDetailContent: React.FC = observer(() => {\n const {contentOptimizer: {currentPage}} = useStore('');\n const {keywordResearcherV2: {postNewKeywords, keywordDetails: {loadKeywordDetailList, getOrganicPaidHistoryData, loadingOrganicPaidHistoryDetails, loadKeywordDetails, setDetailsRepolling, getKeywordDetailsData, loadingSvCountriesDetails, getSvTopCountries, getTermsMatchQuestionsData, termsMatchData}}} = useStore('');\n\n const router = useRouter();\n\n const activePage = router.pathname;\n\n const {Option} = Select;\n\n const postAndGetData = async (keyword, countryCode, locationId) => {\n const data = {'name': keyword, 'keywords': [`${keyword}`], 'is_recent_search': true};\n if (locationId) {\n data['location_id'] = locationId;\n } else {\n data['country_code'] = countryCode ? countryCode : '';\n }\n const response = await postNewKeywords(data);\n setDetailsRepolling(true);\n if (response?.id && response?.keywords?.length) {\n loadKeywordDetailList(response.id);\n loadKeywordDetails(response.id, response?.keywords[0], response?.locationId, response?.countryCode);\n }\n };\n\n const handleOnSelectChange = value => {\n if (value) {\n const keyword = toJS([...currentPage.content.targetKeywords].filter(item => item.keyword === value)[0]);\n const countryCode = keyword?.countryCode || '';\n const location = keyword?.locationId || null;\n currentPage.setIsDrawerFromCa(true);\n currentPage.setActiveTargetKw(value);\n postAndGetData(keyword?.keyword, countryCode, location);\n }\n };\n\n const checkSvCountriesData = loadingSvCountriesDetails || getSvTopCountries?.some(item => item?.searchVolume);\n const checkCurrentAds = loadingOrganicPaidHistoryDetails || getOrganicPaidHistoryData?.paidRankings?.paidSerpsByTerm?.length;\n const checkGoogleBuy = loadingOrganicPaidHistoryDetails || getOrganicPaidHistoryData?.paidRankings?.adsBuyRecommendations?.length;\n const checkHistoryData = loadingOrganicPaidHistoryDetails || getOrganicPaidHistoryData?.paidRankings?.adHistory?.length;\n return (\n
\n {activePage === '/content/seo-content-assistant/[uuid]' ? currentPage.activeTargetKw &&
\n
{currentPage.activeTargetKw}
\n
\n Select Keyword:\n handleOnSelectChange(value)}\n dropdownStyle={{minWidth: '150px', fontSize: '12px'}}\n dropdownClassName={styles.keywordDropdownList}\n className={styles.selectInput}\n suffixIcon={}\n >\n {currentPage?.content?.targetKeywords?.map(item => {\n return ;\n })}\n\n \n
\n
:
Keyword: {getKeywordDetailsData?.keyword || ''}
}\n
\n
\n Keyword Details\n \n
\n \n {checkSvCountriesData ? : ''}\n
\n \n
\n\n {currentPage?.isDrawerFromCa ? <>Related Keywords\n \n \n : ''}\n\n Keyword Competition for “{getKeywordDetailsData?.metrics?.keyword || ''}”\n \n\n {checkHistoryData ? <>Most Successful Advertisers and Their Best Ads\n \n \n : ''}\n\n {checkCurrentAds ? <>\n Current Ads  \n {`Current advertisements appearing in the SERPs for this keyword.`}\n } placement={'bottomLeft'} color='#fff' overlayInnerStyle={{borderRadius: '6px', maxHeight: '200px', width: '300px'}}> \n \n : ''}\n\n {checkGoogleBuy ? <>\n Top Google Ads Buy Recommendations\n \n \n \n : ''}\n
\n
\n );\n});\n\nexport default KeywordDetailContent;\n\nconst TooltipDescriptionWrapper = styled.div`\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n color: #121212;\n padding: 5px;\n`;\n\nconst KeywordDetailsContainer = styled.div`\n margin: 15px 0 30px 0;\n display: flex;\n flex-direction: column;\n gap: 20px;\n`;\n\nconst HeadingDark = styled.div`\n font-weight: 500;\n font-size: 16px;\n line-height: 22px;\n color: #121212;\n`;\n\nconst GoogleAddsContainer = styled.div`\nbackground: #FFFFFF;\nborder: 1px solid #E8E8E8;\nbox-shadow: 0px 3px 2px rgba(0, 0, 0, 0.02);\nborder-radius: 8px;\npadding: 10px;\nmargin-top: 15px;\nmargin-bottom: 30px;\n`;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__bA8tB\",\"selectContainer\":\"styles_selectContainer__s30pw\",\"selectInput\":\"styles_selectInput__102le\",\"keywordChecked\":\"styles_keywordChecked__r3r1_\",\"ant-select\":\"styles_ant-select__t0z70\",\"ant-select-disabled\":\"styles_ant-select-disabled__QHaZP\",\"ant-select-selector\":\"styles_ant-select-selector__BTZbi\",\"keywordDropdownList\":\"styles_keywordDropdownList__Fenv5\",\"removeItem\":\"styles_removeItem__Yl3nK\",\"keywordAdded\":\"styles_keywordAdded__7qwsj\",\"addTargetKwButton\":\"styles_addTargetKwButton__zjimK\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"drawerTitle\":\"focused-keyword_drawerTitle__ZgF3F\",\"focusedKeywordContent\":\"focused-keyword_focusedKeywordContent__6HQhB\",\"limitedWidth\":\"focused-keyword_limitedWidth__1ZqI3\",\"fullHeight\":\"focused-keyword_fullHeight__cZBM3\",\"centerRow\":\"focused-keyword_centerRow__ILSd9\",\"minHeight\":\"focused-keyword_minHeight__8RdES\",\"topHeading\":\"focused-keyword_topHeading__iK0Bx\",\"darkHeading\":\"focused-keyword_darkHeading__b_Rhp\",\"cardLight\":\"focused-keyword_cardLight__gedGH\",\"topPagesCard\":\"focused-keyword_topPagesCard__A_15z\",\"customTableTitle\":\"focused-keyword_customTableTitle___6iGo\",\"tabs\":\"focused-keyword_tabs__Ly9it\"};"],"names":["AddToListDropdown","observer","currentPage","keyword","isIncluded","title","param","Option","Select","selectRef","useRef","isSelectLoading","setIsSelectLoading","useState","current","keywordExplorer","overview","focusedKeyword","useStore","contentOptimizer","settings","customer","profile","quotaUtilization","getCustomerQuota","plans","showSidebarPaymentDrawer","keywordList","keywordsList","map","item","id","name","count","length","countryCode","slice","Object","keys","find","section","element","useEffect","loading","antIcon","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","LoadingOutlined","style","fontSize","color","marginRight","spin","handleOnChange","value","event","optionData","action","match","filter","mainkeyword","updatedKeyword","data","isRecentSearch","keywords","MixPanel","track","KEYWORD_LISTS_UPDATE_FROM_DETAIL_PAGE","updateKeyword","listobject","push","onAddKeywordFinish","err","feTargetKeywords","kw","JSON","stringify","locationId","location","content","addToLoadingArray","newKwLocation","toJS","formatArray","updateFeTargetKeywords","editKeywords","response","status","subtitle","text","concat","ca","allowedFocusTerms","total","Promise","reject","isDrawerFromCa","div","className","styles","jsxs","FontAwesomeIcon","onClick","icon","faCheck","width","loadingArray","includes","Spin","indicator","Button","buttonType","Tooltip","cursor","disabled","ref","showSearch","defaultValue","onSelect","dropdownStyle","minWidth","dropdownClassName","i","key","span","CheckOutlined","RelatedKeywordsTable","keywordResearcherV2","keywordDetails","getKeywordDetailsData","loadingKeywordMainDetails","tableData","setTableData","getSingleUrlParam","relatedKeywordsFirstArr","columns","jsx_runtime","dataIndex","fixed","render","_","Fragment","Link","legacyBehavior","shallow","href","replaceAll","a","KeywordWrapper","align","chartSeries","histSv","itemStyle","type","BarChartColumn","series","TooltipDescriptionWrapper","b","placement","overlayInnerStyle","borderRadius","maxHeight","sorter","sv","display","alignItems","justifyContent","formatNumber","cpc","toFixed","VerticalBar","maxCpc","isKwIncluded","targetKwArray","targetKeywords","TableContainer","Table","dataSource","loadingRows","scroll","y","EmptyStateKeDetail","imgText","description","styled","_templateObject","_templateObject1","_templateObject2","keyword_detail_drawer_content","getOrganicPaidHistoryData","postNewKeywords","loadKeywordDetailList","loadingOrganicPaidHistoryDetails","loadKeywordDetails","setDetailsRepolling","loadingSvCountriesDetails","getSvTopCountries","getTermsMatchQuestionsData","termsMatchData","activePage","router","useRouter","pathname","postAndGetData","handleOnSelectChange","setIsDrawerFromCa","setActiveTargetKw","checkSvCountriesData","some","searchVolume","checkCurrentAds","paidRankings","paidSerpsByTerm","checkGoogleBuy","adsBuyRecommendations","checkHistoryData","adHistory","activeTargetKw","suffixIcon","faCaretDown","Header","fromDrawer","HeadingDark","KeywordDetailsContainer","height","gap","HistoricalChart","GlobalVolume","SuggestedKeywordsTables","termsMatchQuestionsTableData","termsMatchTableData","GoogleAddsContainer","metrics","KeywordCompetition","AdvertisersTable","faCircleInfo","CurrentAds","GoogleAdsBuyTable","keyword_detail_drawer_content_templateObject","keyword_detail_drawer_content_templateObject1","keyword_detail_drawer_content_templateObject2","_templateObject3","module","exports"],"sourceRoot":""}