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A,EAA+BU,SAAS,CAAE9J,QAAS,IAAMsK,EAAmB,CAACD,aACxH,GAAAxH,EAAA9E,GAAA,EAACyJ,EAAAA,CAAeA,CAAAA,CAACC,KAAI,OAAE2B,CAAAA,EAAAA,CAAa,CAACe,EAAe,GAA7Bf,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA+B3B,IAAI,CAAEtJ,MAAK,OAAEiL,CAAAA,EAAAA,CAAa,CAACe,EAAe,GAA7Bf,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA+BU,SAAS,CAAE5L,SAAU,KACvH,GAAA2E,EAAA9E,GAAA,EAACyN,EAAAA,UAAiD,OAA7BpC,CAAAA,EAAAA,CAAa,CAACe,EAAe,GAA7Bf,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA+BQ,KAAK,WAKnE,GAEMe,EAAU5B,EAAAA,EAAMA,CAACpJ,GAAG,CAAAqJ,KAGpBuC,EAAgBxC,EAAAA,EAAMA,CAACpJ,GAAG,CAAAsJ,IAIVC,GAAK,GAAWvK,MAAA,CAARuK,EAAE/K,KAAK,CAAC,OAKhCqN,EAAqBzC,EAAAA,EAAMA,CAACpJ,GAAG,CAAA8L,KAG/BH,EAAoBvC,EAAAA,EAAMA,CAACpJ,GAAG,CAAA+L,KAM9BZ,EAAO/B,EAAAA,EAAMA,CAACpJ,GAAG,CAAAgM,KAMjBV,EAAqBlC,EAAAA,EAAMA,CAACpJ,GAAG,CAAAiM,KAM/BV,EAAoBnC,EAAAA,EAAMA,CAACpJ,GAAG,CAAAkM,yBC1KpCC,EAAAC,OAAA,EAAkB,wRCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/dashboard/pages/landing-page-optimizer/blocks/delete-modal/index.tsx","webpack://_N_E/./src/components/dashboard/pages/landing-page-optimizer/blocks/projects-selector/index.tsx","webpack://_N_E/./src/components/dashboard/pages/landing-page-optimizer/blocks/status-selector-v2/index.tsx","webpack://_N_E/./src/components/dashboard/pages/landing-page-optimizer/blocks/delete-modal/style.module.scss","webpack://_N_E/./src/components/dashboard/pages/landing-page-optimizer/blocks/projects-selector/styles.module.scss"],"sourcesContent":["import React from 'react';\nimport {Modal} from '@/components/common-components';\nimport {Button, Spin, Typography} from 'antd';\nimport {notification} from '@/utils/notifications';\nimport {observer} from 'mobx-react-lite';\nimport {PAGES_API} from '@/api/content-optimizer';\nimport {useTranslation} from 'next-i18next';\n// Types\nimport type {DeleteDialogInstance} from '@/store/content-optimizer/pages';\n\n// Stylesheets\nimport {useRouter} from 'next/router';\nimport styles from './style.module.scss';\nimport {useStore} from '@/store/root-store';\nimport {routes} from '@/utils/const';\nimport {useState} from 'react';\nimport {LoadingOutlined} from '@ant-design/icons';\n\ninterface Props {\n data: DeleteDialogInstance;\n removeFromEditorCallback?: (value: boolean) => void;\n}\n\nconst DeleteModal: React.FC = observer(({data, removeFromEditorCallback}) => {\n const {isOpen, uuid, closeDialog, removeItem} = data;\n const {Title} = Typography;\n const router = useRouter();\n const {t} = useTranslation('common');\n const {contentOptimizer: {pages: {loadPages, loadPagesSummary, getAllProjects, activeProjectId}}} = useStore('');\n const [deletingArticle, setDeletingArticle] = useState(false);\n\n const antIcon = ;\n\n const onDelete = async () => {\n setDeletingArticle(true);\n try {\n const resp = await PAGES_API.deletePage(uuid);\n removeItem();\n loadPages(false, activeProjectId);\n loadPagesSummary();\n getAllProjects();\n closeDialog();\n if (removeFromEditorCallback) {\n removeFromEditorCallback(true);\n }\n router.push(`/${routes.landingPageOptimizer}`, null, {shallow: true});\n notification.success(t('successfully-deleted-page'));\n return resp;\n } catch (e) {\n router.push(`/${routes.landingPageOptimizer}`, null, {shallow: true});\n return Promise.reject(e);\n } finally {\n setDeletingArticle(false);\n }\n };\n return (\n \n
\n {t('delete-article?')}\n
{t('deleting-article-permanently')}
\n
\n
\n \n \n {deletingArticle ? : null}\n {t('delete-article')}\n \n
\n
\n );\n});\n\nexport default DeleteModal;\n","import styles from './styles.module.scss';\nimport {Input, Select, Form, Typography, Spin, Divider, Tooltip} from 'antd';\nimport classNames from 'classnames';\nimport {useStore} from '@/store/root-store';\nimport React, {Fragment, useEffect, useRef, useState} from 'react';\nimport {Modal, CommonInput} from '@/components/common-components';\nimport {Button as V2Button, GrayButton} from '@/components/common-components/v2/Button';\nimport {LoadingOutlined} from '@ant-design/icons';\nimport {useTranslation} from 'react-i18next';\nimport {observer} from 'mobx-react';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faCheck, faCircleCheck} from '@fortawesome/pro-regular-svg-icons';\nimport styled from 'styled-components';\nimport {Search} from 'react-feather';\nimport {toJS} from 'mobx';\nimport {timeNotification} from '@/utils/notification-timer';\nimport {faFolder, faSpinner} from '@fortawesome/pro-light-svg-icons';\nimport {faCaretDown} from '@fortawesome/pro-solid-svg-icons';\n\n\ninterface Props {\n projectName: string;\n pageUuid?: string;\n selectedKeywords?:any;\n minifiedVersion?: boolean;\n disabled?: boolean;\n}\n\nexport const ProjectsSelector = observer(({projectName, pageUuid, selectedKeywords=[], minifiedVersion, disabled}: Props) => {\n const [showAddNewModal, setShowAddNewModal] = useState(false);\n const [modalSelectedItem, setModalSelectedItem] = useState(projectName);\n\n const {\n contentOptimizer: {\n pages: {\n projects,\n addArticleToProject,\n createProjectsByName,\n projectsLoading,\n loadPages,\n setUpdatingPageUuid,\n updatingPageUuid,\n bulkUpdateData,\n activeProjectId,\n currentProject,\n },\n currentPage: {loadPage, setUpdatingFolder, updatingFolder},\n },\n } = useStore('');\n const [newProjectTitle, setNewProjectTitle] = useState('');\n const [projectsData, setProjectsData] = useState([]);\n const [form] = Form.useForm();\n const {Title, Text} = Typography;\n const [newProjectSubmitDisabled, setNewProjectSubmitDisabled] = useState(true);\n const [screenWidth, setScreenWidth] = useState(typeof window !== 'undefined' ? window.innerWidth : 0);\n const {t} = useTranslation('common');\n const antIcon = ;\n const {Option}= Select;\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 const createProjectHandler = async () => {\n if (!newProjectTitle || projects?.find(project => project.name === newProjectTitle)) return;\n\n try {\n await createProjectsByName(newProjectTitle);\n await loadPages(false, activeProjectId);\n setShowAddNewModal(false);\n setNewProjectTitle('');\n form.resetFields();\n } catch (e) {\n return Promise.reject(e);\n }\n };\n\n const addNewModal = (\n setShowAddNewModal(false)}>\n
\n Add SCA Project\n
\n
\n \n {'Project name'}\n ({\n validator(_, value) {\n if (projects?.find(project => project.name === value)) {\n setNewProjectSubmitDisabled(true);\n return Promise.reject(new Error('Project name already exists'));\n } else {\n setNewProjectSubmitDisabled(false);\n }\n return Promise.resolve();\n },\n }),\n ]}\n >\n {\n setNewProjectTitle(e.target.value);\n if (!e.target.value) {\n setNewProjectSubmitDisabled(true);\n } else {\n setNewProjectSubmitDisabled(false);\n }\n }\n }\n inputType='text'\n variant='light'\n placeholder={'Name or website URL...'}/>\n\n \n \n {\n e.preventDefault();\n setNewProjectTitle('');\n setShowAddNewModal(false);\n form.resetFields();\n }}\n disabled={projectsLoading}\n >\n {t('cancel')}\n \n \n {projectsLoading ? : 'Create Project'}\n \n \n \n
\n
\n );\n\n\n const onSearchHandler = (e: React.ChangeEvent) => {\n if (e.target.value) {\n setProjectsData(toJS(projects).filter(option => option?.name?.toLowerCase().includes(e.target.value.toLowerCase())));\n } else {\n setProjectsData(toJS(projects)?.slice());\n }\n };\n\n useEffect(() => {\n setProjectsData(projects);\n }, [projects]);\n\n useEffect(() => {\n setModalSelectedItem(projectName);\n }, [projectName]);\n\n const defaultProjects = ['Total Articles', 'Uncategorized Articles'];\n\n const onOptionChange = async (option, uuid, updatingUuid) => {\n setUpdatingFolder(true);\n const currentSelection = modalSelectedItem;\n const selectedItem = toJS(projects)?.find(elem => elem.id === option);\n if (selectedKeywords?.length > 0) {\n const timer = setTimeout(async () => {\n try {\n setModalSelectedItem(selectedItem.name);\n await bulkUpdateData(selectedKeywords, '', '', [], selectedItem?.name, false);\n await loadPages(false, activeProjectId);\n } finally {\n setUpdatingFolder(false);\n timeNotification(\n '#1FAC47',\n faCircleCheck,\n 5,\n `${selectedKeywords.length} ${selectedKeywords.length > 1 ? 'articles' : 'article'} moved to project \"${selectedItem.name}\"`,\n () => clearTimeout(timer),\n );\n }\n }, 5000);\n } else {\n const formatUpdateArr = [...updatingUuid];\n if (selectedItem && selectedItem[0] && selectedItem[0]?.name) {\n setModalSelectedItem(selectedItem[0].name);\n }\n if (!formatUpdateArr.includes(uuid)) {\n formatUpdateArr.push(uuid);\n }\n setUpdatingPageUuid(formatUpdateArr);\n const timer = setTimeout(async () => {\n try {\n if (updatingUuid.includes(uuid)) {\n const cleanedArr = updatingUuid.filter(elem => elem !== uuid);\n setUpdatingPageUuid(cleanedArr);\n await addArticleToProject(option, uuid);\n let projectId = null;\n if (currentProject && activeProjectId && !defaultProjects.includes(currentProject)) {\n projectId = activeProjectId;\n }\n await loadPages(false, projectId, true);\n await loadPage(uuid as string, false);\n } else {\n setModalSelectedItem(projectName);\n }\n } finally {\n setModalSelectedItem(currentSelection);\n setUpdatingFolder(false);\n timeNotification(\n '#1FAC47',\n faCircleCheck,\n 5,\n `Article moved to project \"${selectedItem?.name}\"`,\n () => {\n clearTimeout(timer);\n },\n );\n }\n }, 5000);\n }\n };\n\n const addEllipsis = (str, n)=>{\n return (str.length > n) ? str.slice(0, n-1) + '....' : str;\n };\n\n const selectRef = useRef(null);\n return (\n {addNewModal}\n \n }\n value={modalSelectedItem}\n ref={selectRef}\n suffixIcon={minifiedVersion ? \n
\n
:\n }\n onChange={option => onOptionChange(option, pageUuid, updatingPageUuid)}\n dropdownRender={menu => (\n \n
e.stopPropagation()}\n className={styles.topDiv}>\n }\n bordered={false}\n />\n
\n \n {menu}\n {\n e.preventDefault();\n e.stopPropagation();\n setShowAddNewModal(true);\n }}>\n \n {\n selectRef?.current?.blur();\n }}>+ Add new Project \n \n
\n )}>\n {\n projectsData?.map((item, idx) => {\n if (item.id !== null) {\n return (\n e.stopPropagation()}\n disabled={item.name == modalSelectedItem}>\n
\n {addEllipsis(item.name || '', screenWidth < 700 ? 14 : 26)}\n {item.name == modalSelectedItem && }\n
\n\n \n );\n }\n })\n }\n \n
\n\n\n
);\n});\n\nconst AddProjectBtn = styled.div`\n color: #2D6CCA;\n cursor: pointer;\n margin-left: 10px;\n margin-bottom: 10px;\n font-size: 12px;\n`;\n\n\nconst MainDiv= styled.div<{minified?: boolean}>`\n margin-right: 5px;\n border-radius: 4px;\n padding: 3px 5px;\n position: relative;\n ${p => p.minified ? 'width: 40px' : ''};\n @media screen and (max-width: 770px) {\n padding-left: 0;\n }\n\n .ant-select {\n &:hover {\n .ant-select-selector {\n ${p => p.minified ? 'border-color: transparent !important' : ''};\n }\n \n }\n .ant-select-focused {\n ${p => p.minified ? 'border-color: transparent !important' : ''};\n ${p => p.minified ? 'box-shadow: 0px !important' : ''};\n\n .ant-select-selector {\n ${p => p.minified ? 'box-shadow: 0px !important' : ''};\n ${p => p.minified ? 'border-color: transparent !important' : ''};\n }\n }\n .ant-select-selector {\n border: ${p => p.minified ? '1px solid transparent' : '1px solid transparent'};\n ${p => p.minified ? 'width: 37px' : ''};\n ${p => p.minified ? 'padding: 0' : ''};\n background: ${p => p.minified ? 'transparent !important' : '#F7F7F8 !important'};\n border-radius: 5px !important;\n height: 30px !important;\n\n .ant-select-selection-item {\n display: ${p => p.minified ? 'none' : 'block'};\n }\n }\n\n .ant-select-selection-placeholder {\n color: #4E5156 !important;\n }\n }\n\n`;\n\n","import {timeNotification} from '@/utils/notification-timer';\nimport {faSquareCheck, faSquareEllipsis, faSquareExclamation, faSquareMinus, faSquarePen} from '@fortawesome/pro-duotone-svg-icons';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {Divider, Dropdown, Tooltip} from 'antd';\nimport {ReactNode, useEffect, useState} from 'react';\nimport styled from 'styled-components';\nimport {faCircleCheck} from '@fortawesome/pro-duotone-svg-icons';\nimport {observer} from 'mobx-react';\nimport {useStore} from '@/store/root-store';\nimport {faCaretDown} from '@fortawesome/pro-solid-svg-icons';\n\ninterface Props {\n articleUuid?: string;\n articleStatus?: string;\n uuidList?: any;\n customLabel?: ReactNode | string;\n isMinified?: boolean;\n}\n\nexport const ScaArticleStatusSelectorV2 = observer(({articleUuid, articleStatus, uuidList, customLabel, isMinified}: Props) => {\n const {contentOptimizer: {pages: {bulkUpdateData}}} = useStore('');\n const {contentOptimizer: {currentPage: {updateArticleStatusV2}}} = useStore('');\n\n const statusesSetup = {\n 'NOT_BEGUN': {\n apiKey: 'not-begun',\n label: 'Not begun',\n icon: faSquareMinus,\n iconColor: '#F44343',\n },\n 'IN_PROGRESS': {\n apiKey: 'in-progress',\n label: 'In Progress',\n icon: faSquarePen,\n iconColor: '#34AEF3',\n },\n 'NEEDS_REVIEW': {\n apiKey: 'needs-review',\n label: 'Needs review',\n icon: faSquareExclamation,\n iconColor: '#F1AA3E',\n },\n 'COMPLETED': {\n apiKey: 'completed',\n label: 'Complete',\n icon: faSquareCheck,\n iconColor: '#1FAC47',\n },\n 'ARCHIVED': {\n apiKey: 'archived',\n label: 'Archive',\n icon: faSquareEllipsis,\n iconColor: '#A3A4A4',\n },\n };\n\n const [selectedStatus, setSelectedStatus] = useState(articleStatus ?? 'NOT_BEGUN');\n\n useEffect(() => {\n if (articleStatus) setSelectedStatus(articleStatus);\n }, [articleStatus]);\n const [dropdownVisible, setDropdownVisible] = useState(false);\n\n const updateArticleStatusHandler = async (status, prevStatus, timer?: any) => {\n try {\n await updateArticleStatusV2(status, articleUuid);\n } catch (e) {\n setSelectedStatus(prevStatus);\n clearTimeout(timer);\n }\n };\n\n\n const statusChangeHandler = async (status: string) => {\n const prevStatus = selectedStatus;\n setDropdownVisible(false);\n setSelectedStatus(status);\n const timer = setTimeout(() => {\n if (uuidList) {\n bulkUpdateData(uuidList, '', status);\n } else if (selectedStatus) {\n updateArticleStatusHandler(status, prevStatus, timer);\n } else {\n return;\n }\n }, 5000);\n\n\n timeNotification('#1FAC47', faCircleCheck, 5, `${uuidList?.length || ''} ${uuidList?.length > 1 ? 'articles' : 'article'} changed status to ${statusesSetup[status].label}`, ()=>{\n clearTimeout(timer);\n setSelectedStatus(prevStatus);\n });\n };\n\n\n const menuRender = () => {\n return <>\n {Object.keys(statusesSetup).map((item, idx) => {\n return <>\n statusChangeHandler(item)}>\n \n {statusesSetup[item].label}\n \n {idx < Object.keys(statusesSetup).length-1 ? : null}\n ;\n })}\n\n {/* Template for new item with dropdown */}\n {/* aaaaaaasdasd} placement={'right'}>\n
\n asdasd\n
\n
*/}\n ;\n };\n\n\n return \n {menuRender()} \n }\n trigger={['click']}\n placement='bottomLeft'>\n {!customLabel ? \n { isMinified ? setDropdownVisible(!dropdownVisible)}>\n \n \n : setDropdownVisible(!dropdownVisible)}>\n \n {statusesSetup[selectedStatus]?.label}\n }\n : setDropdownVisible(!dropdownVisible)}>{customLabel}}\n \n ;\n});\n\nconst Wrapper = styled.div`\n\n`;\nconst CurrentStatus = styled.div<{color?: string}>`\n cursor: pointer;\n display: flex;\n align-items: center;\n background-color: ${p => `${p.color}12`};\n padding: 4px 12px;\n border-radius: 6px;\n width: fit-content;\n`;\nconst CurrentStatusLabel = styled.div`\n margin-left: 5px;\n`;\nconst CurrentStatusMini = styled.div`\n cursor: pointer;\n display: flex;\n align-items: center;\n`;\n\nconst Menu = styled.div`\n background-color: white;\n z-index: 1;\n border-radius: 5px;\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.25);\n`;\nconst SingleStatusOption = styled.div`\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 5px 8px; \n`;\nconst SingleStatusLabel = styled.div`\n color: #121212;\n margin-left: 8px;\n`;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"deleteModalContent\":\"style_deleteModalContent__2qiOY\",\"deleteModalButton\":\"style_deleteModalButton__xbaq7\",\"deleteModalTitle\":\"style_deleteModalTitle__kfMeF\",\"deleteModalSubtitle\":\"style_deleteModalSubtitle__yFjwr\",\"deleteModalFooter\":\"style_deleteModalFooter__1wgX2\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"projectsDropdown\":\"styles_projectsDropdown__0a_lR\",\"activeOption\":\"styles_activeOption__2fbYu\",\"divider\":\"styles_divider__NYT1z\",\"editUrlBtnContainer\":\"styles_editUrlBtnContainer__Jf7Yv\"};"],"names":["DeleteModal","observer","data","removeFromEditorCallback","param","isOpen","uuid","closeDialog","removeItem","Title","Typography","router","useRouter","t","useTranslation","contentOptimizer","pages","loadPages","loadPagesSummary","getAllProjects","activeProjectId","useStore","deletingArticle","setDeletingArticle","useState","antIcon","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","LoadingOutlined","style","fontSize","color","marginRight","spin","onDelete","resp","PAGES_API","deletePage","push","concat","routes","landingPageOptimizer","shallow","notification","success","e","Promise","reject","jsxs","Modal","position","top","right","visible","closable","div","className","styles","level","Button","onClick","type","danger","pointerEvents","cursor","disabled","Spin","indicator","__webpack_exports__","Z","ProjectsSelector","projectName","pageUuid","selectedKeywords","minifiedVersion","showAddNewModal","setShowAddNewModal","modalSelectedItem","setModalSelectedItem","projects","addArticleToProject","createProjectsByName","projectsLoading","setUpdatingPageUuid","updatingPageUuid","bulkUpdateData","currentProject","currentPage","loadPage","setUpdatingFolder","updatingFolder","newProjectTitle","setNewProjectTitle","projectsData","setProjectsData","form","Form","useForm","Text","newProjectSubmitDisabled","setNewProjectSubmitDisabled","screenWidth","setScreenWidth","window","innerWidth","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","Option","Select","useEffect","handleResize","addEventListener","removeEventListener","createProjectHandler","find","project","name","resetFields","addNewModal","onClose","onFinish","Item","rules","required","message","validator","_","value","resolve","CommonInput","onChange","target","inputType","variant","placeholder","GrayButton","marginLeft","preventDefault","V2Button","htmlType","onSearchHandler","toJS","filter","option","toLowerCase","includes","slice","defaultProjects","onOptionChange","updatingUuid","selectedItem","elem","id","length","timer","setTimeout","timeNotification","faCircleCheck","clearTimeout","formatUpdateArr","cleanedArr","projectId","addEllipsis","str","n","selectRef","useRef","MainDiv","minified","Tooltip","title","placement","overlayStyle","display","opacity","maxWidth","dropdownClassName","Fragment","ref","suffixIcon","alignItems","FontAwesomeIcon","icon","faSpinner","faFolder","faCaretDown","dropdownRender","menu","stopPropagation","Input","prefix","Search","width","bordered","Divider","marginBottom","AddProjectBtn","current","blur","map","item","idx","classNames","faCheck","styled","_templateObject","_templateObject1","p","ScaArticleStatusSelectorV2","statusesSetup","articleUuid","articleStatus","uuidList","customLabel","isMinified","updateArticleStatusV2","apiKey","label","faSquareMinus","iconColor","faSquarePen","faSquareExclamation","faSquareCheck","faSquareEllipsis","selectedStatus","setSelectedStatus","dropdownVisible","setDropdownVisible","updateArticleStatusHandler","status","prevStatus","statusChangeHandler","Wrapper","Dropdown","overlay","Menu","Object","keys","SingleStatusOption","SingleStatusLabel","marginTop","trigger","span","CurrentStatusMini","CurrentStatus","CurrentStatusLabel","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","module","exports"],"sourceRoot":""}