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U,CAAEmH,QAAAA,CAAO,CAAC,CAAAvZ,EAC3F,MACE,GAAAmF,EAAA/E,GAAA,EAACqJ,EAAAA,UACC,GAAAtE,EAAA/E,GAAA,EAACkmB,EAAAA,EAAKA,CAAAA,CACJC,QAASnU,EACT2N,QAASmF,EACT5kB,UAAW,8BAEX,GAAA6E,EAAAO,IAAA,EAAC8gB,EAAAA,WACC,GAAArhB,EAAA/E,GAAA,EAACsK,IAAAA,UAAE,gDACH,GAAAvF,EAAA/E,GAAA,EAACsK,IAAAA,CAAEpK,UAAW,uBAAe,kCAE7B,GAAA6E,EAAA/E,GAAA,EAACqmB,EAAAA,CACCtJ,WAAW,cAAcuJ,KAAK,KAC9BnN,QAASA,EACTnY,SAAUmY,EACV9T,QAAS,KACPoN,GACF,WAAG,WAGL,GAAA1N,EAAA/E,GAAA,EAACumB,EAAAA,CAAWlhB,QAAS2M,EAAY+K,WAAW,cAAcuJ,KAAK,cAAK,kBAQ9E,EACMD,EAAejc,CAAAA,EAAAA,EAAAA,EAAAA,EAAOC,EAAAA,EAAMA,EAAAA,KAY5Bkc,EAAanc,CAAAA,EAAAA,EAAAA,EAAAA,EAAOC,EAAAA,EAAMA,EAAAA,KAO1BhB,EAAUe,EAAAA,EAAMA,CAACnK,GAAG,CAAAuK,KAcpB4b,EAAehc,EAAAA,EAAMA,CAACnK,GAAG,CAAAwK,yBCxE/B+b,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/common-components/components/vertical-bar/index.tsx","webpack://_N_E/./src/components/common-components/v2/addKeywordDropdown.tsx","webpack://_N_E/./src/components/dashboard/pages/keyword-researcher-v2/ke-common-components-v2/chartOverlayBanner.tsx","webpack://_N_E/./src/components/dashboard/pages/keyword-researcher-v2/magickeyword/collapse-table.tsx","webpack://_N_E/./src/components/dashboard/pages/keyword-researcher-v2/main-page/component/keDeleteModal.tsx","webpack://_N_E/./src/components/common-components/components/vertical-bar/styles.module.scss"],"sourcesContent":["import React from 'react';\nimport styles from './styles.module.scss';\n\ninterface VerticalBarProps {\n cpc: number;\n maxCpc: number;\n}\n\nexport const VerticalBar: React.FC = ({cpc, maxCpc}) => {\n const percent = ((cpc * 100) / maxCpc).toFixed(0);\n return (\n
\n
5 ? {backgroundColor: '#34AEF3', height: `${parseInt(percent)}%`} : {backgroundColor: '#34AEF3', height: '3px'}}>
\n
\n );\n};\n","import {Button, ButtonColor, ButtonVariant} from '@/components/common-components/v2/Button';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {Dropdown, Input, Menu, Tooltip} from 'antd';\nimport {observer} from 'mobx-react-lite';\nimport React, {useState, useEffect} from 'react';\nimport styled from 'styled-components';\nimport {faCaretDown, faCaretRight, faCheck} from '@fortawesome/pro-solid-svg-icons';\nimport {useStore} from '@/store/root-store';\nimport styles from './style.module.scss';\nimport {Search} from 'react-feather';\nimport {faPlus} from '@fortawesome/pro-solid-svg-icons';\nimport {SkeletonRingLoader} from '@/components/common-components/components/skeleton/ring-loader';\nimport {COLORS} from '@/components/common-components/v2/colors';\nimport {faCirclePlus, faCircleCheck} from '@fortawesome/pro-duotone-svg-icons';\nimport {LoadingOutlined} from '@ant-design/icons';\nimport {isPublicKeywordResearcherV2} from '@/utils/url';\nimport {debounce} from 'lodash';\n\ninterface Props {\n triggerNode?: any;\n addToBtn?: boolean;\n disabled?: boolean;\n keList?: any[];\n targetKeyword?: string;\n multipleKeyword?: any;\n buttonColor?: ButtonColor;\n buttonVariant?: ButtonVariant;\n setNewKeyword?: (data) => void;\n rankTrackerList?: any;\n}\nconst {SubMenu} = Menu;\nexport const AddKeywordDropdownV2:React.FC = observer(({keList, triggerNode, addToBtn, disabled, targetKeyword, multipleKeyword, buttonColor, buttonVariant, setNewKeyword, rankTrackerList}) => {\n const checkPublicPages = isPublicKeywordResearcherV2();\n const {keywordResearcherV2: {loadingAddKeywordList, updatedKeywordListData, loadAddKeywordsList, setModaValue, setIsOpenModal, keywordRankTracker: {\n addTrackedKeywords,\n getListWithoutRepoll,\n setKrtSearchTerm,\n getList,\n // loadingList,\n }}} = useStore('');\n const {settings: {customer: {setAuthModal}}} = useStore('');\n\n const uniqueArray = rankTrackerList?.filter((v, i, a)=>a?.findIndex(t=>(t?.hostname===v?.hostname))===i);\n const [timer, setTimer] = useState(null);\n const [isClose, setIsClose] = useState(false);\n const [loaderId, setLoaderId] = useState('');\n\n useEffect(()=>{\n if (typeof setNewKeyword == 'function') {\n if (multipleKeyword?.length) {\n setNewKeyword(multipleKeyword?.join('\\n'));\n } else {\n setNewKeyword(targetKeyword);\n }\n }\n }, [isClose]);\n\n const onSearchHandler = event => {\n const value = event?.target?.value ?? '';\n if (timer) {\n clearTimeout(timer);\n setTimer(null);\n }\n setTimer(\n setTimeout(() => {\n loadAddKeywordsList(true, value);\n }, 600),\n );\n };\n function includesMulti(elements, inArray) {\n const unmatched = inArray.slice();\n for (const element of elements) {\n const matchIndex = unmatched.indexOf(element);\n if (matchIndex === -1) return false;\n unmatched.splice(matchIndex, 1);\n }\n return true;\n }\n\n const checkAllLists = [];\n if (keList?.length) {\n keList?.map(item => {\n item?.keywords?.map(z => {\n if (z) {\n checkAllLists.push(z);\n }\n });\n });\n }\n\n const checkAllKRTLists = [];\n if (rankTrackerList?.length) {\n rankTrackerList?.map(item => {\n item?.trackedKeywords?.map(z => {\n if (z) {\n checkAllKRTLists.push(z);\n }\n });\n });\n }\n\n const searchRankTracker = debounce(async val => {\n await setKrtSearchTerm(val);\n await getList(false, false, 0, false, 100);\n });\n\n const antIcon = ;\n\n return (\n <>\n {checkPublicPages ?
setAuthModal(true, false)}>{\n triggerNode ? triggerNode : \n {checkAllLists?.includes(targetKeyword) ? : }  Add to list  \n }
:\n } style={{borderRadius: '8px'}}>\n \n \n {checkAllLists?.includes(targetKeyword) ? : }\n Keyword List\n \n \n \n }>\n
\n \n }\n bordered={false}\n />\n \n \n {loadingAddKeywordList ? : (keList?.length ? keList.map((item, index) => {\n let added = false;\n if (multipleKeyword?.length) {\n added = includesMulti(multipleKeyword, item?.keywords);\n } else {\n added = item?.keywords?.includes(targetKeyword);\n }\n const prevList = item?.keywords;\n return {\n setLoaderId(`ke_id_${item?.id}`);\n let updatedList = [];\n if (added) {\n if (multipleKeyword?.length) {\n updatedList = item?.keywords?.filter(z => !multipleKeyword?.includes(z));\n } else {\n updatedList = item?.keywords?.filter(z => z !== targetKeyword);\n }\n } else {\n if (multipleKeyword?.length) {\n updatedList = [...prevList, ...multipleKeyword];\n } else {\n updatedList = [...prevList, `${targetKeyword}`];\n }\n }\n if (updatedList?.length) {\n const data = {'name': item?.name, 'keywords': updatedList, 'country_code': item?.countryCode};\n await updatedKeywordListData(data, item?.id, true);\n await loadAddKeywordsList(true);\n } else {\n setModaValue(true, item?.id);\n }\n setLoaderId('');\n }}\n style={{gap: '15px'}}\n >\n \n
\n {loaderId == `ke_id_${item?.id}` ? antIcon : (added ? : '')}\n
\n
{item?.name ?? '-'}
\n
\n {item?.keywords?.length ?? ''}\n
;\n }) :
No Data available
)}\n\n
\n \n {\n setIsClose(!isClose);\n setIsOpenModal(true);\n }}>   Create List\n \n
\n
\n \n \n {checkAllKRTLists?.includes(targetKeyword) ? : }\n Rank Tracker\n \n \n }>\n
\n \n searchRankTracker(e.target.value)}\n prefix={}\n bordered={false}\n />\n \n
\n {(uniqueArray?.length ? uniqueArray?.map((item, index) => {\n const list = rankTrackerList?.filter(a => a?.hostname == item?.hostname);\n const allKeywordsList = [];\n list?.map(o => {\n if (o?.trackedKeywords?.length) {\n allKeywordsList.push(...o.trackedKeywords);\n }\n });\n let added = false;\n if (multipleKeyword?.length) {\n added = includesMulti(multipleKeyword, allKeywordsList);\n } else {\n added = allKeywordsList?.includes(targetKeyword);\n }\n\n return <>\n \n \n
\n {loaderId == `krt_id_${item?.id}` ? antIcon : (added ? : '')}\n
\n
{item?.hostname ?? '-'}
\n
\n \n \n }>\n \n \n {list?.map(z => {\n let checkKeywordInProject = false;\n if (multipleKeyword?.length) {\n checkKeywordInProject = includesMulti(multipleKeyword, z?.trackedKeywords);\n } else {\n checkKeywordInProject = z?.trackedKeywords?.includes(targetKeyword);\n }\n return \n \n \n
\n {loaderId == `krt_id_${z?.id}` ? antIcon : (checkKeywordInProject ? : '')}\n
\n
{\n setLoaderId(`krt_id_${z?.id}`);\n if (Array.isArray(z?.trackedKeywords)) {\n const getKeywords = z?.trackedKeywords;\n let updatedList = [];\n if (checkKeywordInProject) {\n if (multipleKeyword?.length) {\n updatedList = getKeywords?.filter(z => !multipleKeyword?.includes(z));\n } else {\n updatedList = getKeywords?.filter(z => z !== targetKeyword);\n }\n } else {\n if (multipleKeyword?.length) {\n updatedList = [...getKeywords, ...multipleKeyword];\n } else {\n updatedList = [...getKeywords, `${targetKeyword}`];\n }\n }\n if (updatedList?.length) {\n await addTrackedKeywords(updatedList, z?.id);\n await getListWithoutRepoll(100);\n }\n setLoaderId('');\n }\n }}>\n
{z?.preciseLocation}
 \n
{`(${z?.countryCode? z?.countryCode?.toUpperCase(): 'worldWide'})`}
\n
\n
\n
\n
;\n })}\n
\n
\n
;\n }) :
No Data available
)}\n\n\n
\n }\n overlayStyle={{background: '#fff', width: '250px', borderRadius: '8px'}} trigger={['click']}>\n {triggerNode ? triggerNode : addToBtn ?\n \n
\n setIsClose(!isClose)}\n disabled={disabled}\n >\n {}  Add to  \n \n
\n
:\n setIsClose(!isClose)}>\n {checkAllLists?.includes(targetKeyword) ? : }  Add to list  \n }\n }\n \n );\n});\n\nconst ButtonStyled = styled(Button)<{customBackground?: ButtonColor}>`\n border: 1px solid ${p => p.customBackground ? COLORS[p.customBackground] : '#4E5156'};\n margin: 0 !important;\n height: 32px;\n display: flex;\n align-items: center;\n`;\nconst StyledAddToBtn = styled(Button)<{customBackground?: ButtonColor}>`\nborder: 1px solid ${p => p.customBackground ? COLORS[p.customBackground] : '#4E5156'};\n margin: 0 !important;\n height: 32px;\n display: flex;\n align-items: center;\n margin: 15px 0px 15px 10px !important;\n`;\nconst Wrapper= styled.div`\n.ant-menu-item {\n &:hover {\n background: #2D6CCA1A;\n border-radius: 3px;\n }\n}\n.ant-menu-item-selected {\n background: #2D6CCA1A !important;\n}\n`;\nconst ListContainer = styled.div`\n max-height: 360px;\n min-height: 100px;\n overflow: auto;\n\n ::-webkit-scrollbar {\n width: 5px;\n }\n\n ::-webkit-scrollbar-track {\n background: #F9F9FB;\n }\n\n ::-webkit-scrollbar-thumb {\n background: #4E515680;\n border-radius: 5px;\n }\n`;\n\nconst ListItem = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 5px 10px;\n min-height: 25px;\n cursor: pointer;\n &:hover {\n background-color: #2D6CCA1A;\n }\n`;\n\nconst Text = styled.div`\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: #121212;\n display: flex;\n align-items: center;\n`;\n\nconst Value = styled.div`\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n text-align: right;\n color: #4E5156;\n`;\n\nconst SearchContainer = styled.div`\n height: 38px;\n box-shadow: 0px 1px 0px #E8E8E8;\n`;\n\nconst CreateListContainer = styled.div`\n height: 38px;\n background: #F9F9FB;\n box-shadow: 0px -1px 0px #E8E8E8;\n border-radius: 0 0 8px 8px;\n`;\nconst FlexWrapperDropDown = styled.div`\n display: flex;\n cursor: pointer;\n align-items: center;\n justify-content: space-between;\n padding: 4px 0;\n`;\nconst FlexWrapper = styled.div`\n display: flex;\n gap: 8px;\n margin-left: 12px;\n align-items: center;\n`;\n\nconst ButtonWrapper = styled.div`\n font-weight: 400;\n font-size: 14px;\n line-height: 22px;\n color: #121212;\n`;\n\n","import {Button} from '@/components/common-components/v2';\nimport {useStore} from '@/store/root-store';\nimport {faArrowRight, faBolt} from '@fortawesome/pro-solid-svg-icons';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {observer} from 'mobx-react-lite';\nimport styled from 'styled-components';\nimport React from 'react';\n\ninterface Props {\n bannerWidth?: string;\n bannerHeight?: string;\n left?: string;\n top?: string;\n isKmt?: boolean;\n bottom?: string;\n noBackground?: boolean;\n text?: string;\n color?: string;\n}\n\nexport const ChartOverlayBanner:React.FC = observer(({color='#1FAC47', text='Get a 7 Day trial for Free to see more', noBackground=false, bannerWidth='60%', bannerHeight='90%', left='40px', top='', isKmt, bottom}) => {\n const {settings: {customer: {setAuthModal}}} = useStore('');\n\n return (\n \n \n \n {text}\n {isKmt && Please upgrade your subscription to expand
your possibilities.
}\n \n {isKmt && setAuthModal(true, true)}>Log in}\n
);\n});\n\n\nconst Container = styled.div<{bannerHeight: string; bannerWidth: string; left: string; top: string; isKmt: boolean; bottom: string; noBackground: boolean}>`\n width: ${p => p.bannerWidth};\n height: ${p => p.bannerHeight};\n border-radius: 10px;\n padding: 20px 30px;\n display: flex;\n flex-direction: column;\n ${p=> p?.top ? `top: ${p?.top}` : ''};\n position: absolute;\n bottom: ${p=> p?.bottom ? p?.bottom : '20px'};\n left: ${p => p.left};\n z-index: 1;\n background: ${p => p.noBackground ? 'transparent' : 'rgba(255, 255, 255, 0.6)'};\n ${p => p.noBackground ? '' : 'backdrop-filter: blur(12.5px)'};\n align-items: center;\n justify-content: ${P=> P?.isKmt ? 'center' : 'space-evenly'};\n z-index: 10;\n`;\n\nconst IconContainer = styled.div<{color: string}>`\n width: 46px;\n height: 46px;\n background: ${p => `${p.color}26`};\n font-size: 24px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nconst Heading = styled.div<{isKmt?: boolean}>`\n font-weight: 500;\n font-size: 16px;\n line-height: 19px;\n color: #121212;\n margin-top: ${p=> p?.isKmt ? '19px' : '0'};\n`;\nconst RequestWrapper = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n margin: 16px 0 29px 0;\n line-height: 17px;\n text-align: center;\n color: #4E5156;\n`;\nconst LogIn = styled.div`\n margin-top: 19px;\n font-size: 12px;\n line-height: 15px;\n text-align: right;\n color: #2D6CCA;\n cursor: pointer;\n`;\n","import {Table} from '@/components/common-components/components/table';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {observer} from 'mobx-react-lite';\nimport styled from 'styled-components';\nimport {useCallback, useEffect, useRef, useState} from 'react';\nimport {isPublicKeywordMagicV2} from '@/utils/url';\nimport {SkeletonRingLoader, Button as ButtonCom, SkeletonHorizontalLoaderGray} from '@/components/common-components/components';\nimport {Pagination} from '@/components/common-components/components/pagination';\nimport {isNil} from 'lodash';\nimport {formatFloat, formatNumber, numberWithCommas} from '@/utils/number';\nimport {Tooltip, Checkbox, Collapse, Empty, Radio, Dropdown, Menu, Input} from 'antd';\nimport {LoadingOutlined} from '@ant-design/icons';\nimport {Spin, Space} from 'antd';\nimport {VerticalBar} from '@/components/common-components/components/vertical-bar/index';\nimport {faCaretDown, faCaretRight, faCircle} from '@fortawesome/pro-solid-svg-icons';\nimport {useStore} from '@/store/root-store';\nimport {useRouter} from 'next/router';\nimport {Button} from '@/components/common-components/v2/Button';\nimport {faCirclePlus, faCircleCheck, faCircleInfo} from '@fortawesome/pro-duotone-svg-icons';\nimport {CreateList} from '../main-page/createlist';\nimport {getSingleUrlParam} from '@/utils/url';\nimport Link from 'next/link';\nimport {KeDeleteModal} from '../main-page/component/keDeleteModal';\nimport {AddKeywordDropdownV2} from '@/components/common-components/v2/addKeywordDropdown';\nimport {ChartOverlayBanner} from '../ke-common-components-v2/chartOverlayBanner';\nimport moment from 'moment';\nimport {faPen, faRotateRight} from '@fortawesome/pro-regular-svg-icons';\nimport {faFileArrowDown} from '@fortawesome/pro-regular-svg-icons';\nimport {apiError, downloadExportFileV2, downloadExportFile} from '@/utils/api';\nimport {CONTENT_ASSISTANT_API} from '@/api/ContentAssistant';\nimport {notification} from '@/utils/notification-v2';\nimport {InfoContainer, InfoText, ListContainer, ListItem, MenuItem, ProjectSelectMenu, SearchContainer, Text, Value} from '../../site-explorer-page/detail-page/StyledComponent';\nimport {Search} from 'react-feather';\nimport {toJS} from 'mobx';\nimport ReactEcharts from 'echarts-for-react';\nimport {renderToString} from 'react-dom/server';\nimport {SortOrder} from 'antd/lib/table/interface';\n\nexport const getBgAndColorTooltip =key=>{\n switch (key) {\n case 'commercial':\n return {\n background: '#F1AA3E1A',\n color: '#F1AA3E',\n tooltipTitle: Commercial
The user wants to investigate brands or services.
,\n };\n case 'navigational':\n return {\n background: '#B98CE41A',\n color: '#B98CE4',\n tooltipTitle: Navigational
The user wants to find a specific page or site.
,\n };\n case 'informational':\n return {\n background: '#34AEF31A',\n color: '#34AEF3',\n tooltipTitle: Informational
The user wants to find an answer to a specific question.
,\n };\n case 'transactional':\n return {\n background: '#1F91681A',\n color: '#1F9168',\n tooltipTitle: Transactional
The user wants to complete an action (conversion).
,\n };\n default:\n return {\n background: '',\n color: '',\n tooltipTitle: No any search intent found.,\n };\n }\n};\n\nexport const CollapseTable = observer(() => {\n const {\n keywordResearcherV2: {\n keywordDetails: {\n loadTermsMatchMagicDetails,\n loadTermSearchMagicDetails,\n getMagicTableDataV2,\n getMagicTableData,\n magicTableLoadingV2,\n magicTableLoading,\n setCreateListModalData,\n loadKeywordDetailList,\n loadingMagicTreeV2,\n loadTermAggregationKeywordsDetail,\n loadMagicKeywordsData,\n keSelectedKeyword,\n setTermsMathRepolling,\n magicTableParams,\n setMagicTableParams,\n setTreeListParams,\n treeListParams,\n createListData,\n magicTableDataUrlV2,\n loadingMagicTreeUrlV2,\n loadSearchIntentList,\n loadSearchIntentListV2,\n setRefreshKw,\n kmtRefetchKeyword,\n fetchingSearchIntent,\n getAndUpdateSearchIntentList,\n magicTableDataUrl,\n kmtTermsSearchFilter,\n },\n },\n contentOptimizer: {pages: {projects, getAllProjects}},\n } = useStore('');\n const {settings: {customer: {profile: {address}, setAuthModal}}}= useStore('');\n const {keywordResearcherV2: {deleteKeywordLoading, deletedKeywordListData, setModaValue, openKeywordDeleteModal, keywordDeleteId}} = useStore('');\n\n const {keywordResearcherV2: {getKeywordListDetail, keywordRankTracker: {\n getListWithoutRepoll,\n getRankTrackerList,\n }}} = useStore('');\n const {home: {isChild}} = useStore('');\n const tableRef = useRef(null);\n const [pageNumber, setPageNumber] = useState(1);\n const [fileType, setFileType] = useState('csv');\n const [radioButtonValue, setRadioButtonValue] = useState(1);\n const [totalCount, setTotalCount] = useState(0);\n const [customRows, setCustomRows] = useState(1);\n const [popoverVisibile, setPopoverVisibile] = useState(false);\n const [projectsList, setProjectsList] = useState([]);\n const [searchValue, setSearchValue] = useState('');\n const [treeList, setTreeList] = useState([]);\n const [exporting, setExporting] = useState(false);\n const [activeSort, setActiveSort] = useState('');\n const router = useRouter();\n const countryCode = getSingleUrlParam('countryCode') || address?.defaultLocation;\n const countryName = getSingleUrlParam('countryName') || address?.countryName;\n const locationId = getSingleUrlParam('locationId') == 'null' ? 0 : getSingleUrlParam('locationId');\n const tableName = getSingleUrlParam('table');\n const listNameParam = getSingleUrlParam('listName');\n const isMagicTool = router?.pathname?.includes('/keyword-magic-tool');\n const listId = isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? 0 : router.query?.keyword?.length ? router.query.keyword[0] : '';\n const keyword = router.query?.keyword?.length ? router.query.keyword[isMagicTool && !tableName ? 0 : 1]?.replaceAll('+', ' ') : '';\n const closeModal= ()=>{\n setModaValue(false);\n };\n const currentCustomerId = localStorage.getItem('currentCustomerId');\n const showSvColumn = tableName !== 'related_keywords' && isMagicTool || tableName == 'keyword_variation' || tableName == 'questions';\n const URL = typeof window !== 'undefined' && window.location.origin ? window.location.origin : '';\n const onDeleteKeyword= async ()=>{\n try {\n await deletedKeywordListData(keywordDeleteId, false);\n closeModal();\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n router.push(`/research/keyword-magic-tool`);\n } else {\n router.push(`/research/keyword-researcher`);\n }\n } catch (error) {\n const errorMessage = apiError(error) as string;\n notification.error('', errorMessage);\n }\n };\n useEffect(() => {\n getAllProjects();\n }, []);\n useEffect(() => {\n if (projects?.length) {\n setProjectsList(toJS(projects));\n }\n }, [JSON.stringify(projects)]);\n useEffect(() => {\n if ((isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count !== null) {\n if (totalCount < (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count) {\n setTotalCount((isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count);\n }\n }\n }, [getMagicTableDataV2?.count, getMagicTableData?.count]);\n\n useEffect(() => {\n return () => {\n setTotalCount(0);\n };\n }, []);\n\n const initialLoad = async () => {\n if (keyword) {\n setMagicTableParams({\n ...magicTableParams,\n page: 1,\n page_size: 100,\n });\n setTreeListParams({\n page: 1,\n page_size: 100,\n });\n let results =null;\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n loadTermSearchMagicDetails({\n keyword: keyword,\n country_code: countryCode?.toLowerCase(),\n ...(tableName == 'questions' && {question_search: true}),\n location_id: locationId,\n });\n const data = {keyword: keyword};\n if (countryCode) {\n data['country_code'] = countryCode?.toLowerCase();\n }\n if (locationId) {\n data['location_id'] = locationId;\n }\n results= await loadTermAggregationKeywordsDetail(data);\n } else {\n loadTermsMatchMagicDetails({keyword: keyword, listId: listId});\n const magicData = {keyword: keyword, listId: listId};\n if (locationId) {\n magicData['locationId'] = locationId;\n } else {\n magicData['country_code'] = countryCode ? countryCode : '';\n }\n results= await loadMagicKeywordsData(magicData);\n }\n\n if (results?.length) {\n const formatResult = results?.map((item, idx) => {\n return {\n title: `${item?.word}`,\n sv: item?.sv,\n key: `${idx}`,\n children: [],\n };\n });\n setTreeList(formatResult);\n }\n }\n };\n useEffect(() => {\n if (keyword) {\n setTreeList([]);\n initialLoad();\n }\n }, [keyword, countryCode]);\n\n useEffect(() => {\n if (!router?.pathname?.includes('public')) {\n getListWithoutRepoll(100);\n }\n setTermsMathRepolling(true);\n return () => {\n setTermsMathRepolling(false);\n };\n }, []);\n\n const [selectedKeyword, setSelectedKeyword] = useState([]);\n const [extendedTerm, setExtendedTerm] = useState('');\n const [extendedKey, setExtendedKey] = useState('');\n const [search, setSearch] = useState('');\n const [loader, setLoader] = useState(false);\n const [screenWidth, setScreenWidth] = useState(typeof window !== 'undefined' ? window.innerWidth : 0);\n\n const [checked, stIsChecked] = useState(null);\n\n useEffect(() => {\n const handleResize = () => {\n setScreenWidth(window.innerWidth);\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, []);\n\n useEffect(() => {\n if (search === '') {\n setTotalCount((isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count);\n }\n }, [loadingMagicTreeV2, getMagicTableDataV2?.count, getMagicTableData?.count]);\n\n const setListName = value => {\n setCreateListModalData({\n ...createListData,\n listName: value,\n });\n };\n\n const setNewKeyword = value => {\n setCreateListModalData({\n ...createListData,\n newKeyword: value,\n });\n };\n\n const setSelectedCountry = value => {\n setCreateListModalData({\n ...createListData,\n selectedCountry: value,\n });\n };\n\n const handleCreateContent = async (item: any) => {\n setLoader(true);\n let response = null;\n for (let i = 0; i < selectedKeyword.length; i++) {\n const pagePayload = {\n keywords_list: [selectedKeyword[i]],\n ...(countryCode ? {country_code: countryCode?.toUpperCase()} : {country_code: ''}),\n ...(locationId && {location_id: locationId}),\n title: selectedKeyword[i],\n };\n try {\n response = await CONTENT_ASSISTANT_API.createPage(item?.id ? Object.assign(pagePayload, {project_id: item.id}) : pagePayload);\n } catch (error) {\n setLoader(false);\n const errorMessage = apiError(error) as string;\n notification.error('', errorMessage);\n return null;\n }\n }\n\n if (response?.uuid) {\n window.open(`${URL}/content/seo-content-assistant/${response?.uuid}`, '_blank');\n setLoader(false);\n } else {\n setLoader(false);\n return;\n }\n };\n\n const updateTreeData = (list: any[], key: string, children: any[]): any[] =>\n list?.map(node => {\n if (node?.key === key) {\n return {\n ...node,\n children,\n };\n }\n if (node?.children) {\n return {\n ...node,\n children: updateTreeData(node.children, key, children),\n };\n }\n return node;\n });\n\n const onLoadData = async (value, arr?: any) => {\n setExtendedTerm('');\n setSearch('');\n setPageNumber(1);\n const key = value?.split('/')[0];\n const finalKw = value?.split('/')[1];\n setExtendedKey(key);\n if (finalKw) {\n setExtendedTerm(finalKw);\n setMagicTableParams({\n ...magicTableParams,\n page: 1,\n });\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n loadTermSearchMagicDetails({\n keyword: keyword ? keyword : keSelectedKeyword,\n country_code: countryCode?.toLowerCase(),\n ...(tableName == 'questions' && {question_search: true}),\n }, finalKw);\n } else {\n loadTermsMatchMagicDetails({keyword: keyword ? keyword : keSelectedKeyword, listId: listId}, finalKw);\n }\n if (arr?.length< 3) {\n let data = {};\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n data = {\n keyword: keyword ? keyword : keSelectedKeyword,\n };\n } else {\n data = {\n keyword: keyword ? keyword : keSelectedKeyword,\n listId: listId,\n };\n }\n if (countryCode) {\n data['country_code'] = countryCode?.toLowerCase();\n }\n let results = null;\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n results = await loadTermAggregationKeywordsDetail(data, finalKw);\n } else {\n results = await loadMagicKeywordsData(data, finalKw);\n }\n if (results?.length) {\n const formatResults = results?.map((item, idx) => {\n return {\n title: `${item?.word}`,\n sv: item?.sv,\n key: `${key}-${idx}`,\n children: [],\n };\n });\n setTreeList(origin =>\n updateTreeData(origin, key, formatResults),\n );\n }\n }\n } else {\n if (arr?.length==1) {\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n loadTermSearchMagicDetails({\n keyword: keyword ? keyword : keSelectedKeyword,\n country_code: countryCode?.toLowerCase(),\n ...(tableName == 'questions' && {question_search: true}),\n }, finalKw);\n } else {\n loadTermsMatchMagicDetails({keyword: keyword ? keyword : keSelectedKeyword, listId: listId}, finalKw);\n }\n }\n }\n };\n\n const getKdBgAndColor =value => {\n if (value>=0 && value<=10) {\n return '#1FAC47';\n } else if (value>=11 && value<=30) {\n return '#BFE15E';\n } else if (value>=31 && value<=70) {\n return '#FF8536';\n } else {\n return '#F44343';\n }\n };\n\n const setKeywordsList = (event, keyword) => {\n if (event.target.checked) {\n setSelectedKeyword(selectedKeyword => [...selectedKeyword, keyword]);\n } else {\n setSelectedKeyword(selectedKeyword.filter(item=> item !== keyword ));\n }\n };\n\n const setBulkKeywordsList = event => {\n stIsChecked(event?.target?.checked);\n const keywordsArr = (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.results?.map(item => item.keyword);\n const updatedKeyword = keywordsArr?.filter(element => selectedKeyword?.indexOf(element) < 0);\n\n if (event.target.checked) {\n setSelectedKeyword(selectedKeyword => [...selectedKeyword, ...updatedKeyword]);\n } else {\n setSelectedKeyword([]);\n }\n };\n\n useEffect(() => {\n if (selectedKeyword.length === (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.results?.length) {\n stIsChecked(true);\n } else {\n stIsChecked(false);\n }\n }, [selectedKeyword]);\n\n const findAndUpdateNestedObj = (entireObj, keyToFind, valToFind, moreResults) => {\n JSON.stringify(entireObj, (_, nestedValue) => {\n if (nestedValue && nestedValue[keyToFind] === valToFind) {\n nestedValue?.children?.push(...moreResults);\n }\n return nestedValue;\n });\n return entireObj;\n };\n\n const handleScroll = async () => {\n if (!loadingMagicTreeV2) {\n setTreeListParams({\n page: treeListParams?.page + 1,\n page_size: 2000,\n });\n const data = {keyword: keSelectedKeyword, listId: listId};\n if (countryCode) {\n data['countryCode'] = countryCode;\n }\n const results = await loadTermAggregationKeywordsDetail(data, extendedTerm);\n if (results?.length) {\n const formatResults = results?.map((item, idx) => {\n return {\n title: `${item?.word}`,\n sv: item?.sv,\n key: `${extendedKey}-${idx}`,\n children: [],\n };\n });\n\n if (extendedKey) {\n const updatedList = findAndUpdateNestedObj(treeList, 'key', extendedKey, formatResults);\n setTreeList(updatedList);\n } else {\n setTreeList(origin => [...origin, ...formatResults]);\n }\n }\n }\n };\n\n const handleRefetchSearchIntentList = value => {\n if (isPublicKeywordMagicV2()) {\n setAuthModal(true, false);\n } else {\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n loadSearchIntentListV2(value, locationId, countryCode?.toLocaleLowerCase());\n } else {\n loadSearchIntentList(value, locationId, countryCode?.toLocaleLowerCase());\n }\n }\n };\n\n const handleRefetch = record => {\n if (!isPublicKeywordMagicV2()) {\n setRefreshKw(record?.keyword);\n const listApiData = {\n data: {keyword: keyword, listId: listId},\n term: extendedTerm,\n };\n kmtRefetchKeyword(record?.keyword, locationId || null, countryCode || null, listApiData);\n }\n };\n\n const handleBulkRefetchSearchIntentList = keywords => {\n if (isPublicKeywordMagicV2()) {\n setAuthModal(true, false);\n } else {\n getAndUpdateSearchIntentList(keywords.map(keyword => keyword?.trim()), locationId, countryCode?.toLocaleLowerCase());\n }\n };\n\n const handleRenderCollapse = (data: any, parentKeyword?: string) => {\n let dummyArray = [];\n return (\n \n onLoadData(key, dummyArray)}\n expandIcon={({isActive}) => isActive ? dummyArray?.length<3 ? {}} icon={faCaretDown} style={{color: '#FF8536'}}/>:'' :\n dummyArray?.length<3 ? {}} icon={faCaretRight}/> : ''}\n accordion>\n {data ? data.map(grouping => {\n let parameter = parentKeyword ? parentKeyword : '';\n parameter = parameter+`${parameter ? ',' : ''}${grouping?.title}`;\n dummyArray = grouping?.key?.split('-');\n return (\n \n {grouping?.title ? grouping.title : '-'}\n {showSvColumn && {grouping?.sv || grouping?.sv == 0 ? formatNumber(grouping.sv) : '-'}}\n \n }\n key={`${grouping?.key}/${parameter}`}>\n {grouping?.children?.length || !loadingMagicTreeV2 ?dummyArray?.length < 3 ? handleRenderCollapse(grouping?.children, `${parentKeyword ? `${parentKeyword},` : ''}${grouping?.title}`) : '' : }\n \n );\n }) :\n ''}\n \n {data?.length >= 2000 ? handleScroll()}>Load more : ''}\n \n );\n };\n\n const getPast12Months = () => {\n const months = [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December',\n ];\n\n const today = new Date();\n const pastMonths = [];\n\n for (let i = 0; i < 12; i++) {\n const date = new Date(today.getFullYear(), today.getMonth() - i, 1);\n const month = months[date.getMonth()];\n const year = date.getFullYear();\n pastMonths.unshift(`${month} ${year}`);\n }\n\n return pastMonths;\n };\n\n const months = getPast12Months();\n\n const options = histSv => {\n return {\n tooltip: {\n show: true,\n appendToBody: true,\n trigger: 'axis',\n formatter: params => {\n const dataIndex = params[0]?.dataIndex; // Get index of the hovered data point\n const value = params[0]?.value; // Get value of the hovered data point\n const month = months[dataIndex]; // Get corresponding month from months array\n return renderToString(
\n
{month}
\n
\n
\n
{value}
\n
\n
);\n },\n },\n xAxis: {\n type: 'category',\n data: months,\n axisLine: { // Remove x-axis line\n show: false,\n },\n axisTick: { // Remove x-axis ticks\n show: false,\n },\n axisLabel: { // Remove x-axis labels\n show: false,\n },\n splitLine: { // Remove x-axis split lines\n show: false,\n },\n },\n yAxis: {\n type: 'value',\n axisLine: { // Remove y-axis line\n show: false,\n },\n axisTick: { // Remove y-axis ticks\n show: false,\n },\n axisLabel: { // Remove y-axis labels\n show: false,\n },\n splitLine: { // Remove y-axis split lines\n show: false,\n },\n },\n grid: {\n bottom: 0,\n top: 0,\n left: 0,\n right: 0,\n },\n series: [\n {\n data: histSv,\n type: 'line',\n lineStyle: {\n color: '#2D6CCA', // Change color of the line\n width: 1.2, // Increase width of the line\n type: 'solid', // Line style: solid, dashed, or dotted\n },\n symbol: 'none', // Remove markers on each data point\n tooltip: { // Tooltip settings for this series\n show: true, // Ensure tooltip is enabled for this series\n },\n },\n ],\n };\n };\n\n const columns = (isMagicTool): any => [{\n title: () => \n {!isPublicKeywordMagicV2() && setBulkKeywordsList(e)} checked={checked}/>}\n Keyword\n
Words and phrases that searchers enter into search engines to discover content.
\n
}>KEYWORD,\n key: 'keyword',\n dataIndex: 'keyword',\n align: 'left',\n sorter: false,\n fixed: screenWidth >= 800 ? 'left' as 'left' : false,\n width: isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? 200 : 400,\n render: (keyword:any) => {\n const selectedListForDropdown = [];\n const checkAllLists = [];\n if (getKeywordListDetail?.length) {\n getKeywordListDetail?.map(item => {\n if (item?.keywords?.includes(keyword)) {\n selectedListForDropdown?.push(`${item?.name}`);\n }\n item?.keywords?.map(z => {\n if (z) {\n checkAllLists.push(z);\n }\n });\n });\n }\n const linkId = isMagicTool || tableName ? 'new' : listId;\n const isLocationId = `?locationId=${locationId}`;\n const detailLink = isPublicPage ? `/research/keyword-researcher-public/${linkId}/${keyword?.replaceAll(' ', '+')}${isLocationId}${listNameParam ? `&listName=${listNameParam}` : ''}&public_hash=${publicHash}` :\n `/research/keyword-researcher/${linkId}/${keyword?.replaceAll(' ', '+')}${isLocationId}${listNameParam ? `&listName=${listNameParam}` : ''}&countryCode=${countryCode || ''}&countryName=${countryName}${isMagicTool &&\n (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? '&fromKmt=1' : ''}${isChild ? `&customerId=${currentCustomerId ? currentCustomerId: ''}` : ''}`;\n return \n {!isPublicKeywordMagicV2() && item == keyword)} onChange={e=> setKeywordsList(e, keyword)}/>}\n \n {isPublicKeywordMagicV2() ? {keyword} :\n <>\n setNewKeyword(data)}\n triggerNode={checkAllLists?.includes(keyword) ? : }\n />\n \n 0 ? 'none' : 'auto', fontSize: '14px', marginLeft: 11}} rel='noreferrer'> {keyword}\n \n }\n \n ;\n },\n },\n {\n title: Search Intent\n
The purpose of a search in a search engine. Intents can be read by the search engine algorithms to show the proper results and SERP features.
\n }>SEARCH
INTENT
,\n key: 'searchIntent',\n dataIndex: 'searchIntent',\n align: 'left' as 'left',\n sorter: false,\n width: 100,\n render: (_, data: any) =>{\n return ((isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? data?.searchIntent : data?.searchIntentList)?.length ? \n {(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? data?.searchIntent : data?.searchIntentList)?.map((items, idx)=> {\n const result = getBgAndColorTooltip(items);\n return {items?.split('')[0]?.toUpperCase() || '-'};\n })}\n : (data?.searchIntentLoading) ? : handleRefetchSearchIntentList(data?.keyword)}>Show);\n },\n },\n {\n title: () => <>\n Search Volume\n
The average number of monthly searches for a given keyword over a 12-month period. Use sort icon to display results in ascending or descending order.
\n \n }>SV
\n ,\n key: 'sv',\n dataIndex: 'sv',\n ...((!isMagicTool || (isMagicTool && (tableName && tableName !== 'keyword_variation' && tableName !== 'questions'))) && {sorter: (a: any, b: any) => a.sv - b.sv, showSorterTooltip: false}),\n ...(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') && {sortFieldName: 'sv', sorter: true, sortOrder: (activeSort?.includes('sv') ? activeSort?.startsWith('-') ? 'descend' : 'ascend' : false) as SortOrder}),\n width: 80,\n render: (_, data: any) => {\n return
\n {!isNil(data?.sv) ? (data?.sv < 1000 ? data?.sv?.toFixed(0) : String(formatNumber(data?.sv, 1))?.replace('.0', '')) : '-'}
;\n },\n },\n {\n title: \n
Highlights the competitive pressure from other sites targeting the same keyword.
\n }>COMPETITOR PRESSURE
,\n key: 'kd',\n dataIndex: 'kd',\n align: 'left',\n width: isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? 80 : 60,\n ...((!isMagicTool || (isMagicTool && (tableName && tableName !== 'keyword_variation' && tableName !== 'questions'))) && {sorter: (a: any, b: any) => isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? (a.difficulty - b.difficulty) : (a.kd - b.kd), showSorterTooltip: false}),\n render: (_, data: any) => {\n const tableVal = isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? data?.difficulty : data?.kd;\n const color = getKdBgAndColor((tableVal)?.toFixed(0) || 0);\n return
\n {(tableVal != null || tableVal != undefined) ? \n  {tableVal?.toFixed(0)}\n :

-

}\n
;\n },\n },\n {...(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') && {\n title: HSV TREND,\n key: 'hsv_trend',\n dataIndex: 'hsv_trend',\n align: 'left' as 'left',\n sorter: false,\n width: 100,\n render: (_, data: any) =>{\n return ;\n },\n })},\n {\n title: () => Cost per Click\n
Average price in USD advertisers pay for a user’s click on an ad triggered by a given keyword (Google Ads). Use sort icon to display results in ascending or descending order.
\n }>CPC
,\n key: 'cpc',\n dataIndex: 'cpc',\n align: isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? 'left' as 'left' : 'center' as 'center',\n width: isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? 30 : 60,\n ...((!isMagicTool || (isMagicTool && (tableName && tableName !== 'keyword_variation' && tableName !== 'questions'))) && {sorter: (a: any, b: any) => a.cpc - b.cpc, showSorterTooltip: false}),\n ...(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') && {sortFieldName: 'cpc', sorter: true, sortOrder: (activeSort?.includes('cpc') ? activeSort?.startsWith('-') ? 'descend' : 'ascend' : false) as SortOrder}),\n render: cpc =>
\n {!isNil(cpc) ? `$${formatFloat(cpc, 1)}` : '-'}\n \n
,\n },\n {\n title: () => <>\n PPCD\n
The level of difficulty of ranking for a paid keyword against advertisers bidding on the same keyword within their PPC campaigns.
\n }>\n PPCD\n
\n ,\n key: 'ppcd',\n ...(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') && {sortFieldName: 'ppcd', sorter: true, sortOrder: (activeSort?.includes('ppcd') ? activeSort?.startsWith('-') ? 'descend' : 'ascend' : false) as SortOrder}),\n dataIndex: 'ppcd',\n width: isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? 10 : 50,\n render: (_, data: any) => {\n return
\n {!isNil(data?.ppcd) ? String(formatNumber(data?.ppcd, 1))?.replace('.0', '') : '-'}
;\n },\n },\n {...((!isMagicTool || (isMagicTool && (tableName && tableName !== 'keyword_variation' && tableName !== 'questions'))) && {\n title: () => <>\n UPDATED\n ,\n key: 'lastUpdatedAt',\n dataIndex: 'lastUpdatedAt',\n sorter: false,\n width: 140,\n render: (_, data: any) => {\n return
\n {data?.lastUpdatedAt ? moment(data?.lastUpdatedAt)?.fromNow() : 'Refresh'} \n {data?.processingStatus == 'PENDING' ? : handleRefetch(data)} style={{cursor: 'pointer'}} icon={faRotateRight}/>}\n
;\n },\n })},\n ];\n\n const handlePaginationChange = (page, pageSize) => {\n // getPageSize(pageSize);\n setPageNumber(page);\n setMagicTableParams({\n ...magicTableParams,\n page: page,\n page_size: pageSize,\n });\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n loadTermSearchMagicDetails({\n keyword: keyword, search,\n country_code: countryCode?.toLowerCase(),\n ...(tableName == 'questions' && {question_search: true}),\n }, extendedTerm);\n } else {\n loadTermsMatchMagicDetails({keyword: keyword, listId: listId, search}, extendedTerm);\n }\n };\n\n\n const antIconWt = ;\n const onChangeRadioButton = useCallback(\n e => setRadioButtonValue(e.target.value),\n [],\n );\n const onChangeFileType = useCallback(\n e => setFileType(e.target.value),\n [],\n );\n const getExportLink = async () => {\n setExporting(true);\n let baseUrl = isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? magicTableDataUrlV2 : magicTableDataUrl;\n if (radioButtonValue == 1) {\n baseUrl = (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? magicTableDataUrlV2 : magicTableDataUrl).replace(/&search=[^&]*/, '') + `&rows_to_export=${totalCount}`;\n } else if (radioButtonValue == 2) {\n baseUrl = baseUrl + `&rows_to_export=${(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count}`;\n } else if (radioButtonValue == 3) {\n baseUrl = baseUrl + `&rows_to_export=${customRows}`;\n }\n if (isMagicTool) {\n baseUrl = baseUrl + '&export=true';\n }\n try {\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n await downloadExportFileV2(\n `${baseUrl}`,\n `${isMagicTool ? 'KMT' : 'KR'}_${moment().format('YYYY-MM-DD')}.${fileType === 'googleSheset'? 'xlsx': 'csv'}`,\n fileType === 'googleSheset'? true: false,\n );\n } else {\n await downloadExportFile(\n `${baseUrl}&${fileType === 'googleSheset'? 'export_to_google_sheets': 'export_to_csv'}=1`,\n `${isMagicTool ? 'KMT' : 'KR'}_${moment().format('YYYY-MM-DD')}.${fileType === 'googleSheset'? 'xlsx': 'csv'}`,\n fileType === 'googleSheset'? true: false,\n );\n }\n setTimeout(() => {\n setExporting(false);\n }, 2000);\n } catch (error) {\n setExporting(false);\n }\n };\n\n const exportHandle = () => {\n if (router?.pathname?.includes('public')) {\n setAuthModal(true, false);\n } else {\n setPopoverVisibile(!popoverVisibile);\n setCustomRows(1);\n }\n };\n\n const popoverContent = (\n \n
Export data
\n onChangeRadioButton(e)} value={radioButtonValue}>\n \n All Rows ({ totalCount })\n \n Custom {\n if (Number(e.target.value) > 0 && Number(e.target.value) <= totalCount) {\n setCustomRows(Number(e.target.value));\n }\n }} />\n \n \n \n
EXPORT TO:
\n onChangeFileType(e)}\n value={fileType}>\n \n {(!isMagicTool || (isMagicTool && (tableName && tableName !== 'keyword_variation' && tableName !== 'questions'))) && Google Sheets}\n CSV file\n \n \n \n {\n getExportLink();\n setPopoverVisibile(false);\n }}\n >
{exporting ? : 'Export'}
\n \n setPopoverVisibile(false)}\n >
Cancel
\n \n
\n
\n );\n\n const handleUpdateState = async (data: any, updatedListname: string | null) => {\n initialLoad();\n const response = await loadKeywordDetailList(listId);\n const keyword = response?.keywords[0]?.keyword;\n router.push(`/research/keyword-researcher-magic/${listId}/${keyword?.replaceAll(' ', '+')}?${updatedListname ? `listName=${updatedListname}` : ''}&${locationId ? `locationId=${data?.location_id}` : `countryCode=${data?.country_code || ''}`}`);\n };\n const isPublicPage = router?.pathname?.includes('public');\n const publicHash = router?.query?.public_hash;\n\n const handleTableChange = async (pagination, filters, sorter) => {\n const {column, order} = sorter;\n const {sortFieldName} = column || {};\n const sorterKey = order ? `${order == 'descend' ? '-' : ''}${sortFieldName}` : '';\n setActiveSort(sorterKey);\n setMagicTableParams({\n ...magicTableParams,\n ordering: sorterKey,\n });\n if (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions')) {\n loadTermSearchMagicDetails({\n keyword: keyword, search,\n country_code: countryCode?.toLowerCase(),\n ...(tableName == 'questions' && {question_search: true}),\n }, extendedTerm);\n } else {\n loadTermsMatchMagicDetails({keyword: keyword, listId: listId, search}, extendedTerm);\n }\n };\n\n return (\n \n
\n {isPublicKeywordMagicV2() ? : ''}\n \n TERMS\n {showSvColumn && SEARCH VOLUME}\n \n
\n {loadingMagicTreeUrlV2 ? :\n loadingMagicTreeV2 || treeList?.length ? (treeList?.length ? handleRenderCollapse(treeList) : ) : }\n
\n
\n \n \n \n \n

Selected:\n {selectedKeyword.length}\n {selectedKeyword.length ? setSelectedKeyword([]) }>Deselect all : ''}\n

\n {isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') && !magicTableLoadingV2 && kmtTermsSearchFilter?.filter(z => z?.active)?.length ?

Filtered keywords:\n {numberWithCommas(getMagicTableDataV2?.count)}\n

: null}\n {(!isMagicTool || (isMagicTool && (tableName && tableName !== 'keyword_variation' && tableName !== 'questions'))) &&

\n !result?.searchIntentList?.length))?.length ? 'All search intents are already visible' : selectedKeyword.length ? '' : 'Please select atleast one keyword to show Search Intent'}>\n

!result?.searchIntentList?.length))?.length} onClick={() => selectedKeyword.length && !fetchingSearchIntent && handleBulkRefetchSearchIntentList(selectedKeyword)} loading={fetchingSearchIntent}>\n Show Search Intent
\n \n

}\n
\n \n setNewKeyword(data)}\n addToBtn\n buttonVariant='solid'\n buttonColor='green'\n disabled={selectedKeyword.length > 0 ? false : true}\n />\n }\n style={{borderRadius: '8px'}}>\n
\n

Select SCA Project:

\n \n \n Each keyword will be used to create a separate article\n \n \n setSearchValue(e.target.value)}\n prefix={}\n bordered={false}\n />\n \n \n {projectsList.filter(v => searchValue?.length ? v?.name?.toLowerCase()?.includes(searchValue?.toLowerCase()) : true)?.map(item => (\n e.preventDefault()}>\n handleCreateContent(item)}\n style={{gap: '15px'}}\n >\n \n
\n
\n
{item.name}
\n
\n {''}\n
\n
\n ))}\n
\n
\n }\n trigger={['click']}\n >\n 0 ? '' : 'Select at least 1 keyword in the table to create an article'}>\n
\n 0 || loader ? false : true} color='textGrayLight' textColor='#121212'>\n {!loader ? : } {!loader ? `Create ${selectedKeyword.length > 0 ? selectedKeyword.length : ''} ${selectedKeyword.length > 1 ? 'articles' : 'article'}` : 'Creating...'}\n \n
\n
\n \n \n
{popoverContent}
\n \n }>\n \n  Export\n \n
\n
\n
\n
\n \n 0} className='getTableId'>\n {(isPublicPage && pageNumber>=2) && }\n Object.keys(item).length !== 0)}\n dataSource={(isPublicKeywordMagicV2() && pageNumber < 2) ?\n (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.results?.slice(0, 5) :\n (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.results}\n loading={\n isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ?\n (magicTableLoadingV2 || getMagicTableDataV2?.shouldRepoll || getMagicTableDataV2?.shouldRepoll == null || getMagicTableDataV2?.shouldRepoll == undefined) :\n magicTableLoading\n }\n loadingRows={10}\n pagination={false}\n onChange={isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? handleTableChange : () => {}}\n />\n {isPublicKeywordMagicV2() && <>\n {pageNumber < 2 && <>\n {(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.results?.length < 5 ?\n : }\n }\n }\n \n 10000 ? 10000 :\n (isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count}\n showTenThousandPlus={(isMagicTool && (!tableName || tableName == 'keyword_variation' || tableName == 'questions') ? getMagicTableDataV2 : getMagicTableData)?.count > 10000}\n pageSize={100}\n current={magicTableParams?.page}\n showSizeChanger={false}\n />\n \n
\n \n \n\n
\n );\n});\n\nconst MainContainer = styled.div`\n width: 100%;\n height: 100%;\n background: #F9F9FB;\n border: 1px solid #E8E8E8;\n box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.02);\n border-radius: 8px;\n display: flex;\n overflow: hidden;\n @media screen and (max-width: 768px) {\n flex-direction: column;\n }\n .container {\n width: 300px;\n background-color: #F9F9FB;\n position: relative;\n @media screen and (max-width: 768px) {\n width: 100%;\n }\n }\n`;\n\nconst LinkWrapper = styled.a`\n&:hover{\n text-decoration: underline;\n}\n`;\nconst ButtonWrapper = styled(Button)<{border?: boolean}>`\n margin-top: 15px;\n margin-bottom: 15px;\n margin-right: 0;\n width: fit-content;\n height: 32px;\n border: ${p => p?.border ? '1px solid #E8E8E8' : ''};\n background: ${p => p?.border ? '#F7F7F8' : ''};\n &:hover {\n color: ${p => p?.border ? '#121212' : ''};\n }\n`;\n\nconst WrapperTable = styled.div<{bulkStyle: boolean}>`\n position: relative;\n .ant-table-content{\n max-height: none !important;\n }\n ${p => p.bulkStyle ? `.ant-table-body {\n margin-top: 70px !important;\n }` : ''}\n .ant-table-body { \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 .ant-table-tbody {\n .ant-table-cell {\n padding-left: 0 !important;\n padding-right: 0 !important;\n }\n }\n`;\n\nconst SecondContainer = styled.div`\n border: 1px solid #E8E8E8;\n border-radius: 8px;\n width: calc(100% - 300px);\n padding: 0 10px;\n background-color: #fff;\n @media screen and (max-width: 768px) {\n width: 100%;\n padding-top: 16px;\n }\n`;\n\nconst FilterContainer = styled.div`\n background: #fff;\n border-bottom: 0 !important;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n`;\n\nconst StyledHeaderWrapper = styled.div`\n min-height: 60px !important; \n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n row-gap: 15px;\n padding-top: 10px;\n padding-bottom: 10px;\n .common-component-input {\n background-color: #fff !important;\n &::placeholder {\n background-color: #fff !important;\n }\n }\n`;\n\nconst HeadingWrapper = styled.div`\n font-weight: 700;\n font-size: 12px;\n line-height: 14px;\n color: #121212;\n`;\n\nconst PillContainer = styled.div<{background: string}>`\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 7px 12px 8px;\n height: 32px;\n width: fit-content;\n background: ${p => p.background ? p.background : `rgba(244, 67, 67, 0.07)`};\n border-radius: 6px;\n`;\n\nconst HeaderCheckboxContainer = styled.div`\n margin-left: -7px;\n display: flex;\n align-items: center;\n .ant-checkbox-checked .ant-checkbox-inner {\n background-color: #7f4ead;\n border-color: #7f4ead;\n }\n`;\n\nconst FlexWrapper = styled.div`\n align-items: center;\n display: flex;\n background-color: #F9F9FB;\n justify-content: space-between;\n width: 100%;\n padding: 35px 15px 10px 20px;\n`;\n\nconst CheckbocContainer = styled.div`\n align-items: center;\n display: flex;\n margin-left: 4px;\n a {\n max-width: 400px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .ellipsesSpan {\n max-width: 400px;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n margin-left: 11px;\n }\n\n .ant-checkbox-checked .ant-checkbox-inner {\n background-color: #7f4ead;\n border-color: #7f4ead;\n }\n`;\n\nconst TableStyled = styled.div`\n padding-bottom: 0 !important;\n flex-grow: 1;\n background-color: #fff;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n height: calc(100% - 60px);\n position: relative;\n/* .ant-table-wrapper {\n min-height: 447px;\n} */\ntable tr th {\n background-color: #F9F9FB;\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\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 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: 15px !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 CollapseMainScroll = styled.div`\n overflow: auto;\n padding-right: 8px;\n\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 .ant-collapse-content-box .collapseStyle {\n height:fit-content !important;\n }\n @media screen and (max-width: 768px) {\n height: auto !important;\n }\n`;\n\nconst GroupingCollapse = styled(Collapse)`\n background-color: #F9F9FB;\n border: unset !important;\n padding-left: 8px;\n width: 100%; \n\n .ant-collapse-header {\n \n align-items: center;\n border-radius: 4px;\n box-shadow: 0 1px 0 #f4f4f4;\n display: flex;\n font-size: 12px;\n padding: 14px 0;\n .ant-collapse-arrow {\n margin-right: 8px !important;\n } \n\n &:hover {\n background-color: #E8E8E8;;\n }\n\n }\n\n .ant-collapse-item {\n border: unset !important;\n\n .ant-collapse-content-box {\n padding: 5px 0 !important;\n }\n }\n\n .ant-collapse-content-active {\n box-shadow: 0 1px 0 #f4f4f4;\n }\n \n .ant-collapse-content {\n p {\n border-bottom: 1px solid #e8e8e8;\n cursor: pointer;\n display: flex;\n font-size: 12px;\n justify-content: space-between;\n margin-bottom: 0 !important;\n padding-bottom: 8px;\n padding-left: 30px;\n padding-right: 16px;\n padding-top: 8px;\n\n &:hover {\n background-color: #f7f7f8;\n }\n }\n }\n\n .ant-collapse-item-active {\n & > div:first-child {\n background-color: rgba(255, 133, 54, 0.2);\n border-radius: 4px;\n }\n }\n`;\n\nconst PanelHeader = styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n width: 100%;\n`;\n\nconst PaginationStyled = styled(Pagination)`\n padding: 20px 25px; \n text-align: right;\n border-top: 1px solid #E8E8E8!important;\n\n\n.ant-pagination-item{\n min-width: 25px !important;\n height:25px !important;\n}\n.ant-pagination-prev {\n width:25px !important;\n height:25px !important;\n}\n.ant-pagination-next{\n width:25px !important;\n height:25px !important;\n}\n.ant-pagination-disabled{\n min-width: 25px !important;\n height:25px !important;\n}\n.ant-pagination-item-link span svg {\n display:flex;\n margin-bottom:2px;\n align-items:center;\n justify-content:center;\n}\n.ant-pagination-prev{\n min-width:25px !important;\n max-height:25px !important;\n}\n.ant-pagination-next{\n min-width:25px !important;\n max-height:25px !important;\n}\n.ant-pagination-options{\n height:25px;\n}\n.ant-pagination{\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top:10px;\n margin-right:15px;\n \n}\n`;\n\nconst SelectedSpan = styled.span`\n font-weight: 600;\n color: #121212;\n margin-left: 5px;\n`;\nconst StyledDeselect = styled.span<{disabled?: boolean}>`\n color: #2D6CCA;\n font-family: 'Inter', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n cursor: ${p => p.disabled ? 'not-allowed' : 'pointer'};\n margin-left: 10px;\n`;\nconst StyledLeftWrapper = styled.div`\n display: flex;\n align-items: center;\n white-space: nowrap;\n gap: 10px;\n flex-wrap: wrap;\n p {\n color: #4E5156;\n font-family: 'Inter', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n margin-bottom: 0px;\n }\n .ant-btn {\n margin: 0 !important;\n }\n`;\nconst StyledRightWrapper = styled.div`\ndisplay: flex;\nflex-wrap: wrap;\ngap: 10px;\n.ant-btn {\n margin: 0px !important;\n}\n`;\nconst StyledTooltipHeading = styled.span`\nfont-size: 14px;\ncolor: #fff;\nfont-weight: 600;\n`;\nconst TooltipDescription = styled.div`\nfont-weight: 350;\n`;\n\nconst PopoverContent = styled.div`\n :global(.ant-radio-checked .ant-radio-inner) {\n border-color: $color-purple-medium !important;\n }\n\n :global(.ant-radio:hover .ant-radio-inner) {\n border-color: $color-purple-medium !important;\n }\n\n :global(.ant-radio-checked .ant-radio-inner::after) {\n background-color: $color-purple-medium !important;\n }\n\n .expTitle {\n color: #121212;\n font-size: 15px;\n line-height: 14px;\n font-weight: 600;\n margin-bottom: 12px;\n }\n\n .explabel {\n color: rgb(163, 164, 164);\n font-size: 12px;\n margin: 8px 0 4px;\n }\n\n .customWrap {\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n gap: 10px;\n\n .customInput {\n width: 100%;\n border-radius: 6px;\n border: 1px solid #E8E8E8;\n background: #F9F9FB;\n color: black;\n padding: 4px 8px;\n line-height: 17px;\n &:focus-visible {\n outline: none;\n }\n }\n } \n`;\n\nconst BtnWrapper = styled.div`\n display: flex;\n margin-top: 12px;\n\n .buttonstyle{\n padding: 4px 15px;\n }\n`;\n\nconst SerchIntnetStyled = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst SearchIntentWrapper = styled.div<{cololAndBg: any}>`\n color: ${p=> p?.cololAndBg?.color};\n background: ${p=> p?.cololAndBg?.background} !important;\n width: 22px;\n height: 22px;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: 700;\n font-size: 12px;\n line-height: 15px;\n margin-left: 5px;\n`;\n\nconst BlueText = styled.div`\n color: #1890ff;\n cursor: pointer;\n font-weight: 500;\n margin-left: 5px;\n`;\n\nconst FontAwesomeIconStyled = styled(FontAwesomeIcon)`\n animation: spin infinite 1s linear;\n @keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n`;\n\nconst ButtonStyled = styled(Button)`\n background-color: #2D6CCA !important;\n height: 32px;\n margin-left: 10px;\n\n &:hover {\n background-color: #2D6CCA !important;\n }\n &:focus {\n background-color: #2D6CCA !important;\n }\n &:disabled {\n background-color: #2D6CCA !important;\n cursor: not-allowed;\n }\n`;\n","import React from 'react';\nimport styled from 'styled-components';\nimport {Modal, Button} from '@/components/common-components/components';\n interface Props {\n setIsOpen?: (value) => void;\n isOpen?: boolean;\n onDeleteKeyword?: ()=>void;\n loading?: boolean;\n closeModal?: (value)=>void;\n }\nexport const KeDeleteModal: React.FC = ({onDeleteKeyword, isOpen, closeModal, loading}) => {\n return (\n \n \n \n

Are you sure you want to delete this list?

\n

This action cannot be undone.

\n\n {\n onDeleteKeyword();\n }}>\n Delete\n \n \n Go Back\n \n\n
\n \n
\n );\n};\nconst DeleteButton = styled(Button)`\n background-color: #ff6262;\n border: 1px solid #ff6262;\n border-radius: 5px;\n color: #fff;\n font-weight: 400;\n width: 25%;\n &:hover{\n background: transparent;\n color: #323134; \n }\n`;\nconst BackButton = styled(Button)`\n background-color: #fff;\n border-color: #696777;\n margin-top: 8px;\n width: 25%;\n color: #696777;\n`;\nconst Wrapper = styled.div`\n .customKeywordModal {\n position: relative;\n\n .rc-dialog-content {\n .rc-dialog-close {\n color: #fff;\n font-size: 40px;\n right: -50px;\n top: -14px;\n }\n }\n}\n`;\nconst ModalWrapper = styled.div`\n \n align-items: center;\n color: $color-gray-dark;\n display: flex;\n flex-direction: column;\n font-family: Inter;\n font-size: $font-size-14;\n font-style: normal;\n font-weight: 500;\n justify-content: center;\n line-height: 17px;\n padding: 20px 0;\n\n .warningText {\n color: $color-secondary-text;\n }\n\n`;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"wrapper\":\"styles_wrapper__6VxDT\"};"],"names":["VerticalBar","cpc","maxCpc","param","percent","toFixed","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","styles","style","backgroundColor","height","parseInt","concat","SubMenu","Menu","AddKeywordDropdownV2","observer","keList","triggerNode","addToBtn","disabled","targetKeyword","multipleKeyword","buttonColor","buttonVariant","setNewKeyword","rankTrackerList","checkPublicPages","isPublicKeywordResearcherV2","keywordResearcherV2","loadingAddKeywordList","updatedKeywordListData","loadAddKeywordsList","setModaValue","setIsOpenModal","keywordRankTracker","addTrackedKeywords","getListWithoutRepoll","setKrtSearchTerm","getList","useStore","settings","customer","setAuthModal","uniqueArray","filter","v","i","a","findIndex","t","hostname","timer","setTimer","useState","isClose","setIsClose","loaderId","setLoaderId","includesMulti","elements","inArray","unmatched","slice","element","matchIndex","indexOf","splice","useEffect","length","join","checkAllLists","map","item","keywords","z","push","checkAllKRTLists","trackedKeywords","searchRankTracker","debounce","val","antIcon","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","LoadingOutlined","fontSize","color","spin","Fragment","onClick","jsxs","ButtonStyled","customBackground","variant","background","includes","FontAwesomeIcon","icon","faCircleCheck","faCirclePlus","faCaretDown","Dropdown","overlayClassName","overlay","triggerSubMenuAction","expandIcon","borderRadius","popupClassName","title","FlexWrapperDropDown","FlexWrapper","ButtonWrapper","faCaretRight","marginRight","SearchContainer","Input","marginTop","placeholder","onChange","event","value","target","clearTimeout","setTimeout","prefix","Search","width","bordered","ListContainer","SkeletonRingLoader","index","added","prevList","ListItem","id","updatedList","data","name","countryCode","gap","Text","minWidth","faCheck","Value","textAlign","CreateListContainer","Item","cursor","faPlus","e","list","allKeywordsList","o","Wrapper","checkKeywordInProject","padding","marginLeft","display","Array","isArray","getKeywords","preciseLocation","toUpperCase","margin","overlayStyle","trigger","Tooltip","StyledAddToBtn","styled","Button","p","COLORS","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","ChartOverlayBanner","text","noBackground","bannerWidth","bannerHeight","left","top","isKmt","bottom","jsx_runtime","Container","IconContainer","faBolt","Heading","RequestWrapper","faArrowRight","LogIn","_templateObject","P","_templateObject1","getBgAndColorTooltip","key","tooltipTitle","TooltipDescription","StyledTooltipHeading","br","CollapseTable","router","kmtTermsSearchFilter","getMagicTableData","projectsList","_results","isMagicTool","_results1","keywordDetails","loadTermsMatchMagicDetails","loadTermSearchMagicDetails","getMagicTableDataV2","magicTableLoadingV2","magicTableLoading","setCreateListModalData","loadKeywordDetailList","loadingMagicTreeV2","loadTermAggregationKeywordsDetail","loadMagicKeywordsData","keSelectedKeyword","setTermsMathRepolling","magicTableParams","setMagicTableParams","setTreeListParams","treeListParams","createListData","magicTableDataUrlV2","loadingMagicTreeUrlV2","loadSearchIntentList","loadSearchIntentListV2","setRefreshKw","kmtRefetchKeyword","fetchingSearchIntent","getAndUpdateSearchIntentList","magicTableDataUrl","contentOptimizer","pages","projects","getAllProjects","profile","address","deleteKeywordLoading","deletedKeywordListData","openKeywordDeleteModal","keywordDeleteId","getKeywordListDetail","getRankTrackerList","home","isChild","tableRef","useRef","pageNumber","setPageNumber","fileType","setFileType","radioButtonValue","setRadioButtonValue","totalCount","setTotalCount","customRows","setCustomRows","popoverVisibile","setPopoverVisibile","setProjectsList","searchValue","setSearchValue","treeList","setTreeList","exporting","setExporting","activeSort","setActiveSort","useRouter","getSingleUrlParam","defaultLocation","countryName","locationId","tableName","listNameParam","pathname","listId","query","keyword","replaceAll","closeModal","currentCustomerId","localStorage","getItem","showSvColumn","URL","location","origin","window","onDeleteKeyword","error","errorMessage","apiError","notification","toJS","JSON","stringify","_this","count","_this1","_this2","initialLoad","page","page_size","results","country_code","toLowerCase","question_search","location_id","magicData","idx","word","sv","children","selectedKeyword","setSelectedKeyword","extendedTerm","setExtendedTerm","extendedKey","setExtendedKey","search","setSearch","loader","setLoader","screenWidth","setScreenWidth","innerWidth","checked","stIsChecked","handleResize","addEventListener","removeEventListener","newKeyword","handleCreateContent","response","pagePayload","keywords_list","CONTENT_ASSISTANT_API","createPage","Object","assign","project_id","uuid","open","updateTreeData","node","onLoadData","arr","split","finalKw","formatResults","getKdBgAndColor","setKeywordsList","setBulkKeywordsList","keywordsArr","updatedKeyword","findAndUpdateNestedObj","entireObj","keyToFind","valToFind","moreResults","_","nestedValue","handleScroll","handleRefetchSearchIntentList","isPublicKeywordMagicV2","toLocaleLowerCase","handleRefetch","record","term","handleBulkRefetchSearchIntentList","trim","handleRenderCollapse","parentKeyword","dummyArray","CollapseMainScroll","current","offsetHeight","GroupingCollapse","ghost","isActive","accordion","grouping","parameter","Collapse","Panel","header","PanelHeader","span","maxWidth","overflow","textOverflow","formatNumber","border","textColor","loading","months","getPast12Months","today","Date","pastMonths","date","getFullYear","getMonth","month","year","unshift","options","histSv","tooltip","show","appendToBody","formatter","params","dataIndex","renderToString","flexDirection","dangerouslySetInnerHTML","__html","marker","fontWeight","xAxis","type","axisLine","axisTick","axisLabel","splitLine","yAxis","grid","right","series","lineStyle","symbol","antIconWt","onChangeRadioButton","useCallback","onChangeFileType","getExportLink","baseUrl","replace","downloadExportFileV2","moment","format","downloadExportFile","popoverContent","PopoverContent","Radio","Space","direction","input","Number","toString","min","BtnWrapper","ButtonCom","buttonType","justifyContent","Spin","indicator","handleUpdateState","updatedListname","isPublicPage","publicHash","public_hash","handleTableChange","pagination","filters","sorter","column","order","sortFieldName","sorterKey","ordering","MainContainer","HeadingWrapper","paddingRight","Empty","description","SecondContainer","FilterContainer","StyledHeaderWrapper","StyledLeftWrapper","SelectedSpan","StyledDeselect","active","numberWithCommas","result","searchIntentList","_getMagicTableData_results_filter","_getMagicTableData_results_filter1","StyledRightWrapper","ProjectSelectMenu","InfoContainer","faCircleInfo","InfoText","MenuItem","preventDefault","faPen","placement","visible","faFileArrowDown","TableStyled","WrapperTable","ref","bulkStyle","Table","columns","HeaderCheckboxContainer","Checkbox","strong","align","fixed","render","selectedListForDropdown","linkId","isLocationId","detailLink","CheckbocContainer","find","paddingLeft","Link","legacyBehavior","href","passHref","LinkWrapper","pointerEvents","rel","searchIntent","SerchIntnetStyled","items","SearchIntentWrapper","cololAndBg","searchIntentLoading","SkeletonHorizontalLoaderGray","lightLoader","skeletonHeight","BlueText","b","showSorterTooltip","sortOrder","startsWith","String","alignItems","difficulty","kd","tableVal","undefined","PillContainer","faCircle","ReactEcharts","option","formatFloat","ppcd","lastUpdatedAt","fromNow","processingStatus","FontAwesomeIconStyled","faRotateRight","keys","dataSource","url","XE","shouldRepoll","loadingRows","PaginationStyled","pageSize","total","_this3","_this4","showTenThousandPlus","_this5","showSizeChanger","CreateList","isRecord","buttonName","listName","setListName","isKMTPage","loadPageData","selectedCountry","setSelectedCountry","KeDeleteModal","isOpen","collapse_table_templateObject","collapse_table_templateObject1","collapse_table_templateObject3","collapse_table_templateObject4","_templateObject12","_templateObject13","_templateObject15","Pagination","_templateObject17","_templateObject18","_templateObject19","_templateObject20","_templateObject21","_templateObject22","_templateObject23","_templateObject24","_templateObject25","_templateObject26","_templateObject27","Modal","onClose","ModalWrapper","DeleteButton","size","BackButton","module","exports"],"sourceRoot":""}