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AU,CACRC,MAAO,YACPsH,YAAa,uBACbC,eAAgB,0BAChBC,OAAQ,mBACV,EACAC,kBAAmB,CACjBzH,MAAO,WACPoF,KAAM,GAAgB,YAAezG,MAAA,CAAHwG,EACpC,EACAuC,UAAW,CACT1H,MAAO,cACP2H,IAAK,iBACP,EACAC,SAAU,CACR5H,MAAO,mBACPD,SAAU,CAACA,EAAkB8H,IAC3B,oBAAgCA,MAAAA,CAAZ9H,EAAS,KAAWpB,MAAA,CAARkJ,EACpC,EACAC,SAAU,CACR9H,MAAO,YACP0H,UAAW,GAAwB,aAAwB/I,MAAA,CAAXoJ,EAAW,cAC7D,EACAC,YAAa,CACX/C,OAAQ,4BACRgD,UAAW,GAAoB,4BAAmCtJ,MAAA,CAAPuJ,GAC3DC,UAAW,GAAoB,4BAAmCxJ,MAAA,CAAPuJ,GAC3DE,QAAS,GAAoB,0BAAiCzJ,MAAA,CAAPuJ,GACvDhI,QAAS,GAAoB,yBAAgCvB,MAAA,CAAPuJ,GACtDG,QAAS,GAAoB,yBAAgC1J,MAAA,CAAPuJ,GACtDI,aAAe,6BACjB,EACAC,SAAU,CACRC,SAAU,oBACZ,EACAC,eAAgB,WAChB9F,WAAY,gCACZ+F,QAAS,mCACTC,SAAU,qCACVC,gBAAiB,4CACnB,CAI2CjJ,CAAAA,EAAegJ,QAAQ,CAOhEhJ,EAAemH,KAAK,CAAC9G,KAAK,CAC1BL,EAAeF,MAAM,CACrBE,EAAe8I,cAAc,CAC7B9I,EAAesH,WAAW,CAI1B4B,EAAAA,CAAgBA,CAACC,KAAK,CACtBD,EAAAA,CAAgBA,CAACE,sBAAsB,CACvCF,EAAAA,CAAgBA,CAACG,sBAAsB,CACvCH,EAAAA,CAAgBA,CAACI,WAAW,CAGCtJ,EAAemH,KAAK,CAAC9G,KAAK","sources":["webpack://_N_E/?6794","webpack://_N_E/./src/components/appContext/AppContext.tsx","webpack://_N_E/./src/components/appLayout/AppLanguageSelection.tsx","webpack://_N_E/./src/enums/authentication.ts","webpack://_N_E/./src/utils/localstorage.ts","webpack://_N_E/./src/components/appLayout/AppUserMenu.tsx","webpack://_N_E/./src/components/appLayout/AppTopBar.tsx","webpack://_N_E/./src/components/appLayout/AppPageLayout.tsx","webpack://_N_E/./src/pattern-library/Modal.tsx","webpack://_N_E/./src/components/appContext/useAppContext.ts","webpack://_N_E/./src/constants/layout.ts","webpack://_N_E/./src/constants/localStorage.ts","webpack://_N_E/./src/constants/routes.ts"],"sourcesContent":["import(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2010701551/src/trustana-pim-fe/src/components/appLayout/AppPageLayout.tsx\");\n","\"use client\";\n\nimport React, { createContext, Dispatch } from \"react\";\nimport { AppContextType } from \"./types\";\ninterface AppContextProps {\n ctx: AppContextType;\n setContext: Dispatch>;\n}\nexport const AppContext = createContext(undefined);","\"use client\";\n\nimport React from \"react\";\nimport { useCookies } from \"next-client-cookies\";\nimport { GlobalOutlined } from \"@ant-design/icons\";\nimport { segmentEvents } from \"@/src/constants/segmentEvents\";\nimport type { MenuProps } from \"@/src/pattern-library/Menu\";\nimport { Button } from \"@/src/pattern-library/Button\";\nimport { Dropdown } from \"@/src/pattern-library/Dropdown\";\nimport { segmentClient } from \"@/src/utils/segment\";\nimport { UserLanguage } from \"@/src/enums/common\";\nimport useAppContext from \"@/src/components/appContext/useAppContext\";\nconst items: MenuProps[\"items\"] = [{\n label: \"English\",\n key: UserLanguage.EN\n}, {\n label: \"日本語\",\n key: UserLanguage.JP\n}, {\n label: \"한국어\",\n key: UserLanguage.KO\n}, {\n label: \"ไทย\",\n key: UserLanguage.TH\n}, {\n label: \"中文(简体)\",\n key: UserLanguage.ZH\n}];\nconst AppLanguageSelection = () => {\n const cookies = useCookies();\n const {\n ctx\n } = useAppContext();\n const value = ctx.lang;\n const handleChange = (val: {\n key: string;\n }) => {\n cookies.set(\"lang\", val.key, {\n expires: 30 * 24 * 60 * 60\n });\n segmentClient.track(segmentEvents.languageSet, {\n previous_lang: value,\n selected_lang: val.key\n }, undefined, () => {\n window.location.reload();\n });\n };\n return <>\n \n \n \n ;\n};\nexport default AppLanguageSelection;","export enum LogoutStatus {\n LOGGED_OUT = \"logged-out\",\n EXPIRED = \"expired\",\n EMAIL_VERIFIED = \"email-verified\",\n}\n","import { LocalStorageKey } from \"@/src/enums/common\";\nimport { PIM_LOCAL_STORAGE_PREFIX } from \"@/src/constants/localStorage\";\n\nconst PERSISTED_LOCAL_STORAGE_KEYS = [\n LocalStorageKey.PdpImageAssetsTour,\n LocalStorageKey.CountryList,\n LocalStorageKey.CurrencyList,\n LocalStorageKey.GoogleCategory,\n];\n\nexport const clearAllPimLocalStorage = () => {\n Object.values(LocalStorageKey)\n .filter((key) => !PERSISTED_LOCAL_STORAGE_KEYS.includes(key))\n .forEach((key) => {\n const keyWithPrefix = `${PIM_LOCAL_STORAGE_PREFIX}${key}`;\n localStorage.removeItem(keyWithPrefix);\n });\n};\n","import React from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport { UserOutlined } from \"@ant-design/icons\";\nimport { supplierRoutes } from \"@/src/constants/routes\";\nimport type { MenuProps } from \"@/src/pattern-library/Menu\";\nimport { Button } from \"@/src/pattern-library/Button\";\nimport { Dropdown } from \"@/src/pattern-library/Dropdown\";\nimport { Modal } from \"@/src/pattern-library/Modal\";\nimport { segmentClient } from \"@/src/utils/segment\";\nimport { LogoutStatus } from \"@/src/enums/authentication\";\nimport { Namespace } from \"@/src/i18n/namespace\";\nimport Link from \"next/link\";\nimport { clearAllPimLocalStorage } from \"@/src/utils/localstorage\";\nconst AppTopBar = () => {\n const t = useTranslations();\n const tCommon = useTranslations(Namespace.COMMON);\n const [modal, contextHolder] = Modal.useModal();\n const handleSignOut = () => {\n clearAllPimLocalStorage();\n segmentClient.logout(() => {\n window.location.href = `${supplierRoutes.logout}?status=${LogoutStatus.LOGGED_OUT}`;\n });\n };\n const items: MenuProps[\"items\"] = [{\n key: \"settings\",\n label: \n {tCommon(\"navigation.accountSetting\")}\n \n }, {\n key: \"signOut\",\n label:
{\n modal.confirm({\n title: t(\"common.navigation.modal.signOutTitle\"),\n okText: t(\"global.button.signOut\"),\n cancelText: t(\"global.button.cancel\"),\n onOk: handleSignOut\n });\n }}>\n {tCommon(\"navigation.signOut\")}\n
\n }];\n return <>\n {contextHolder}\n \n \n \n \n \n ;\n};\nexport default AppTopBar;","\"use client\";\n\nimport { Layout } from \"@/src/pattern-library/Layout\";\nimport AppTopBar from \"./AppTopBar\";\nconst AppPageLayout = ({\n children\n}: {\n children: React.ReactNode;\n}) => \n \n {children}\n ;\nexport default AppPageLayout;","import { Modal as BaseModal, ModalProps } from \"antd\";\nconst Modal = (props: ModalProps) => ;\nModal.confirm = BaseModal.confirm;\nModal.useModal = BaseModal.useModal;\nModal.warning = BaseModal.warning;\nexport { Modal };","\"use client\";\n\nimport { useContext } from \"react\";\nimport { AppContext } from \"./AppContext\";\n\nexport default function useAppContext() {\n const context = useContext(AppContext);\n if (context === undefined) {\n throw new Error(\"useAppContext must be used within AppProvider\");\n }\n return context;\n}\n","export const SIDER_WIDTH = 200;\nexport const COLLAPSED_SIDER_WIDTH = 48;\nexport const HEADER_HEIGHT = 58;\nexport const PAGE_TITLE_HEIGHT = 56;\nexport const TABLE_HEADER_HEIGHT = 55;\nexport const PAGINATION_HEIGHT = 64;\nexport const PAGINATION_BAR_HEIGHT = 64;\nexport const STICKY_ACTION_BAR_HEIGHT = 67;\n\n// Z-index\nexport const Z_INDEX_APP_TOP_BAR = 10;\nexport const Z_INDEX_SMART_IMPORT_FOOTER = 5;\nexport const Z_INDEX_PDP_STICKY_FILTER = 3;\nexport const Z_INDEX_PDP_ACTION_TITLE = 2;\nexport const Z_INDEX_PDP_UPLOAD_AREA_POPUP = 3;\nexport const Z_INDEX_PDP_EDIT_TAG = 3;\nexport const Z_INDEX_PDP_CREATE_BOTOTM_BAR = 2;\nexport const Z_INDEX_PDP_TABLE = 1;\nexport const Z_INDEX_PDP_PANEL_LOADING_SCREEN = 1;\nexport const Z_INDEX_PDP_MAIN_LOADING_SCREEN = 5;\nexport const Z_INDEX_FILTER_DROPDOWN_SEARCH = 1;\nexport const Z_INDEX_PDP_FLOATING_MINI_TOP_HEADER = 10;\nexport const Z_INDEX_PIM_TABLE_PAGINATION = 3;\nexport const Z_INDEX_PIM_TABLE_ACTION_BAR = 2;\nexport const Z_INDEX_PIM_TABLE_DRAGGABLE_ROW = 9;\nexport const Z_INDEX_DAM_MODAL_SEARCHBAR = 2;\nexport const Z_INDEX_DAM_DISABLED_IMAGE = 1;\nexport const Z_INDEX_DAM_UPLOAD_BAR = 2;\nexport const Z_INDEX_IMAGE_FULL_SCREEN_VIEW = 9999;\n","export const PIM_LOCAL_STORAGE_PREFIX = \"pim_ls_\";\n","import { ServerActionName } from \"../actions/enums\";\n\nexport const supplierRoutes = {\n root: \"/\",\n home: \"/home\",\n products: {\n index: \"/product\",\n upload: \"/product/upload\",\n edit: {\n index: \"/product/edit\",\n id: (id: string) => `/product/edit/${id}`,\n },\n view: (id: string) => `/product/${id}`,\n create: \"/product/create\",\n },\n dam: {\n tools: {\n index: \"/dam/tools\",\n imageResizer: \"/dam/tools/image-resizer\",\n imageUpscaler: \"/dam/tools/image-upscaler\",\n watermarkRemoval: \"/dam/tools/watermark-removal\",\n backgroundGenerator: \"/dam/tools/ai-generate-background\",\n backgroundRemover: \"/dam/tools/background-remover\",\n attributesGenerator: \"/dam/tools/attributes-generator\",\n },\n library: {\n index: \"/dam/image-library\",\n },\n task: { index: \"/dam/task\" },\n image: {\n view: (id: string) => `/dam/image/${id}/view`,\n },\n },\n localization: {\n index: \"/localization\",\n task: \"/localization/task\",\n edit: {\n index: \"/localization/edit\",\n id: (id: string) => `/localization/edit/${id}`,\n },\n view: (id: string) => `/localization/${id}`,\n create: \"/localization/create\",\n },\n enrichment: {\n create: \"/enrichment/create\",\n index: \"/enrichment\",\n imageReview: \"/enrichment/image-review\",\n },\n distribution: {\n index: \"/distribution\",\n },\n companyProfile: {\n index: \"/company-profile\",\n edit: \"/company-profile/edit\",\n },\n accountManagement: {\n index: \"/account-management\",\n id: (id: string) => `/account-management/${id}`,\n },\n catalog: {\n index: \"/catalog\",\n create: \"/catalog/create\",\n edit: (id: string) => `/catalog/edit/${id}`,\n editIndex: \"/catalog/edit/[id]\",\n addProducts: (id: string) => `/catalog/edit/${id}?tab=product-selection`,\n },\n variant: {\n edit: (id: string) => `/variant/edit/${id}`,\n },\n saleOpportunity: {\n index: \"/sale-opportunity\",\n subscribe: \"/sale-opportunity/subscribe\",\n },\n gettingStarted: {\n index: \"/product\",\n },\n login: {\n index: \"/login\",\n forgotPassword: \"/login/forgot-password\",\n terms: \"/terms\",\n },\n verifyEmail: \"/update-email\",\n logout: \"/logout\",\n export: {\n templates: {\n index: \"/export/templates\",\n create: \"/export/templates/create\",\n edit: (templateId: string) => `/export/templates/${templateId}`,\n },\n settings: \"/export/settings\",\n history: \"/export/history\",\n },\n settings: {\n index: \"/settings\",\n updateEmail: \"/settings/edit/email\",\n updatePassword: \"/settings/edit/password\",\n apiKey: \"/settings/api-key\",\n },\n quotationRequests: {\n index: \"/enquiry\",\n view: (id: string) => `/enquiry/${id}`,\n },\n attribute: {\n index: \"/attributes\",\n add: \"/attributes/add\",\n },\n channels: {\n index: \"/export/channels\",\n settings: (settings: string, channel: string) =>\n `/export/channels/${settings}/${channel}`,\n },\n category: {\n index: \"/category\",\n attribute: (categoryId: string) => `/category/${categoryId}/attributes`,\n },\n smartUpload: {\n upload: \"/smart-upload/upload-file\",\n setHeader: (taskId: string) => `/smart-upload/set-header/${taskId}`,\n mapFields: (taskId: string) => `/smart-upload/map-fields/${taskId}`,\n setData: (taskId: string) => `/smart-upload/set-data/${taskId}`,\n confirm: (taskId: string) => `/smart-upload/confirm/${taskId}`,\n pending: (taskId: string) => `/smart-upload/pending/${taskId}`,\n uploadImages: `/smart-upload/upload-images`,\n },\n template: {\n download: \"/template/download\",\n },\n featureToggles: \"/feature\",\n helpCenter: \"https://help.trustana.com/en/\",\n support: \"https://www.trustana.com/support\",\n bookDemo: \"https://www.trustana.com/book-demo\",\n privacyAndTerms: \"https://www.trustana.com/privacy-and-terms\",\n};\n\nexport const BASE_BACKEND_RESTFUL_URL = `${process.env.NEXT_PUBLIC_BACKEND_URL}/restful/v1`;\n\nexport const ACCESS_CONTROL_REDIRECT_URL = supplierRoutes.bookDemo;\n\nexport const BASE_FILE_UPLOAD_RESTFUL_URL = `${process.env.NEXT_PUBLIC_FILE_BACKEND_URL}/files`;\n\nexport const PUBLIC_FUNCTION_URL = process.env.NEXT_PUBLIC_FUNCTION_URL;\n\nexport const NON_AUTHENTICATED_PREFIXES = [\n supplierRoutes.login.index,\n supplierRoutes.logout,\n supplierRoutes.featureToggles,\n supplierRoutes.verifyEmail,\n];\n\nexport const NON_AUTHENTICATED_ACTIONS = [\n ServerActionName.Login,\n ServerActionName.ResendVerificationLink,\n ServerActionName.SendResetPasswordEmail,\n ServerActionName.SetPassword,\n];\n\nexport const LOGIN_PREFIXES = [supplierRoutes.login.index];\n"],"names":["Promise","resolve","then","__webpack_require__","bind","AppContext","createContext","undefined","items","label","key","UserLanguage","EN","JP","KO","TH","ZH","__webpack_exports__","cookies","useCookies","ctx","useAppContext","value","lang","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Fragment","Dropdown","menu","onClick","set","val","expires","segmentClient","track","segmentEvents","languageSet","previous_lang","selected_lang","window","location","reload","data-sentry-element","data-sentry-source-file","Button","shape","icon","GlobalOutlined","find","item","_items_find","LogoutStatus","PERSISTED_LOCAL_STORAGE_KEYS","LocalStorageKey","PdpImageAssetsTour","CountryList","CurrencyList","GoogleCategory","clearAllPimLocalStorage","Object","values","filter","includes","forEach","keyWithPrefix","PIM_LOCAL_STORAGE_PREFIX","concat","localStorage","removeItem","AppUserMenu","t","useTranslations","tCommon","Namespace","COMMON","modal","contextHolder","Modal","useModal","handleSignOut","logout","href","supplierRoutes","LOGGED_OUT","jsx_runtime","Link","settings","index","div","confirm","title","okText","cancelText","onOk","jsxs","UserOutlined","Header","Layout","appLayout_AppTopBar","token","colorBgContainer","sizeLG","colorBorderSecondary","theme","useToken","style","position","top","zIndex","Z_INDEX_APP_TOP_BAR","height","HEADER_HEIGHT","width","display","background","alignItems","paddingLeft","paddingRight","borderBottom","data-sentry-component","className","a","root","Image","src","alt","AppLanguageSelection","QuestionCircleOutlined","helpCenterClicked","open","helpCenter","appLayout_AppPageLayout","children","param","minHeight","AppTopBar","BaseModal","props","maskClosable","centered","warning","context","useContext","SIDER_WIDTH","COLLAPSED_SIDER_WIDTH","PAGE_TITLE_HEIGHT","TABLE_HEADER_HEIGHT","PAGINATION_HEIGHT","PAGINATION_BAR_HEIGHT","Z_INDEX_SMART_IMPORT_FOOTER","Z_INDEX_PDP_STICKY_FILTER","Z_INDEX_PDP_ACTION_TITLE","Z_INDEX_PDP_UPLOAD_AREA_POPUP","Z_INDEX_PDP_EDIT_TAG","Z_INDEX_PDP_CREATE_BOTOTM_BAR","Z_INDEX_PDP_TABLE","Z_INDEX_PDP_PANEL_LOADING_SCREEN","Z_INDEX_FILTER_DROPDOWN_SEARCH","Z_INDEX_PDP_FLOATING_MINI_TOP_HEADER","Z_INDEX_PIM_TABLE_PAGINATION","Z_INDEX_PIM_TABLE_ACTION_BAR","Z_INDEX_PIM_TABLE_DRAGGABLE_ROW","Z_INDEX_DAM_MODAL_SEARCHBAR","Z_INDEX_DAM_DISABLED_IMAGE","Z_INDEX_DAM_UPLOAD_BAR","Z_INDEX_IMAGE_FULL_SCREEN_VIEW","home","products","upload","edit","id","view","create","dam","tools","imageResizer","imageUpscaler","watermarkRemoval","backgroundGenerator","backgroundRemover","attributesGenerator","library","task","image","localization","enrichment","imageReview","distribution","companyProfile","accountManagement","catalog","editIndex","addProducts","variant","saleOpportunity","subscribe","gettingStarted","login","forgotPassword","terms","verifyEmail","export","templates","templateId","history","updateEmail","updatePassword","apiKey","quotationRequests","attribute","add","channels","channel","category","categoryId","smartUpload","setHeader","taskId","mapFields","setData","pending","uploadImages","template","download","featureToggles","support","bookDemo","privacyAndTerms","ServerActionName","Login","ResendVerificationLink","SendResetPasswordEmail","SetPassword"],"sourceRoot":""}