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AAK,CAAC7B,KAAK,CAC1BvB,EAAewD,MAAM,CACrBxD,EAAekF,cAAc,CAC7BlF,EAAeuD,WAAW,CAI1BxC,EAAAA,CAAgBA,CAACwE,KAAK,CACtBxE,EAAAA,CAAgBA,CAACyE,sBAAsB,CACvCzE,EAAAA,CAAgBA,CAAC0E,sBAAsB,CACvC1E,EAAAA,CAAgBA,CAAC2E,WAAW","sources":["webpack://_N_E/?038e","webpack://_N_E/./node_modules/@ant-design/nextjs-registry/es/AntdRegistry.js","webpack://_N_E/./node_modules/@ant-design/nextjs-registry/es/index.js","webpack://_N_E/./app/global-error.tsx","webpack://_N_E/./src/components/appContext/AppContext.tsx","webpack://_N_E/./src/components/errorScreens/InternalErrorPageLayout.tsx","webpack://_N_E/./src/actions/enums.ts","webpack://_N_E/./src/components/appContext/useAppContext.ts","webpack://_N_E/./src/components/errorScreens/useRedirectToHome.ts","webpack://_N_E/./src/constants/routes.ts"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src2009537108/src/trustana-pim-fe/app/global-error.tsx\");\n","'use client';\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React, { useRef, useState } from 'react';\nimport { createCache, extractStyle, StyleProvider } from '@ant-design/cssinjs';\nimport { useServerInsertedHTML } from 'next/navigation';\nvar AntdRegistry = function AntdRegistry(_ref) {\n var children = _ref.children;\n var _useState = useState(function () {\n return createCache();\n }),\n _useState2 = _slicedToArray(_useState, 1),\n cache = _useState2[0];\n var inserted = useRef(false);\n useServerInsertedHTML(function () {\n var styleText = extractStyle(cache, {\n plain: true\n });\n if (inserted.current) {\n return null;\n }\n inserted.current = true;\n return /*#__PURE__*/React.createElement(\"style\", {\n id: \"antd-cssinjs\"\n // to make sure this style is inserted before Ant Design's style generated by client\n ,\n \"data-rc-order\": \"prepend\",\n \"data-rc-priority\": \"-1000\",\n dangerouslySetInnerHTML: {\n __html: styleText\n }\n });\n });\n return /*#__PURE__*/React.createElement(StyleProvider, {\n cache: cache\n }, children);\n};\nexport default AntdRegistry;","export { default as AntdRegistry } from \"./AntdRegistry\";","/* eslint-disable jsx-a11y/html-has-lang */\n\n\"use client\";\n\nimport { useEffect } from \"react\";\nimport * as Sentry from \"@sentry/nextjs\";\nimport { InternalErrorPageLayout } from \"@/src/components/errorScreens/InternalErrorPageLayout\";\nimport { AntdRegistry } from \"@ant-design/nextjs-registry\";\nimport useAppContext from \"@/src/components/appContext/useAppContext\";\nexport default function GlobalError({\n error\n}: {\n error: Error & {\n digest?: string;\n };\n}) {\n const {\n ctx\n } = useAppContext();\n useEffect(() => {\n // Log the error to Sentry\n Sentry.captureException(error, {\n user: {\n email: ctx.user?.email,\n id: ctx.user?.supplierId,\n username: ctx.user?.name\n }\n });\n }, [error]);\n return \n \n \n \n \n \n ;\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 { supplierRoutes } from \"@/src/constants/routes\";\nimport { Flex, Text, Title, theme } from \"@/src/pattern-library\";\nimport Link from \"next/link\";\nimport Image from \"next/image\";\nimport { useRedirectToHome } from \"./useRedirectToHome\";\nconst HEADER_HEIGHT = 64;\nexport function InternalErrorPageLayout({\n title,\n description\n}: {\n title: string;\n description: string;\n}) {\n const {\n token: {\n sizeXS,\n colorBorderSecondary\n }\n } = theme.useToken();\n useRedirectToHome();\n return
\n \n \n \"Trustana\n \n \n \n \n {title}\n \n {description}\n \n
;\n}","export enum ServerActionName {\n // Account\n CreateUserAccounts = \"createUserAccounts\",\n DeleteUser = \"deleteUser\",\n GetUserById = \"getUserById\",\n ListUserAccount = \"listUserAccount\",\n SendUserVerification = \"sendUserVerification\",\n UpdateUserAccount = \"updateUserAccount\",\n GetSupplierConfig = \"getSupplierConfig\",\n\n // Attribute\n AddLibraryAttribute = \"addLibraryAttribute\",\n BulkUpsertCategoryToAttributes = \"bulkUpsertCategoryToAttributes\",\n CreateCustomAttribute = \"createCustomAttribute\",\n DeleteAttribute = \"deleteAttribute\",\n GetAttributeInUseCount = \"getAttributeInUseCount\",\n GetLibraryAttributes = \"getLibraryAttributes\",\n GetSupplierAttributeList = \"getSupplierAttributeList\",\n UpdateAttribute = \"updateAttribute\",\n\n // Authentication\n Login = \"login\",\n ResendVerificationLink = \"resendVerificationLink\",\n SendResetPasswordEmail = \"sendResetPasswordEmail\",\n SetPassword = \"setPassword\",\n UpdateEmailAddress = \"updateEmailAddress\",\n UpdatePassword = \"updatePassword\",\n VerifyEmailAddress = \"verifyEmailAddress\",\n\n // Channel\n GetChannelCategories = \"getChannelCategories\",\n GetChannelConfigurationList = \"getChannelConfigurationList\",\n GetChannelList = \"getChannelList\",\n UpdateChannelSettings = \"updateChannelSettings\",\n UpdateProductChannels = \"updateProductChannels\",\n\n // Common\n GetCurrencyList = \"getCurrencyList\",\n GetGoogleCategoriesList = \"getGoogleCategoriesList\",\n GetLocaleCountries = \"getLocaleCountries\",\n\n // Category Tree\n GetTaxonomyTree = \"getTaxonomyTree\",\n GetTaxonomyTreeNode = \"getTaxonomyTreeNode\",\n UpdateTaxonomyTreeNode = \"updateTaxonomyTreeNode\",\n GetTaxonomyTreeMaxDepth = \"getTaxonomyTreeMaxDepth\",\n\n // DAM\n CreateDamTask = \"createDamTask\",\n GetDamList = \"getDamList\",\n GetDamTaskList = \"getDamTaskList\",\n GetFileDetail = \"getFileDetail\",\n\n // Enrichment\n ApproveEnrichImages = \"approveEnrichImages\",\n CancelEnrichImageTasks = \"cancelEnrichImageTasks\",\n GetEnrichImagesReviewProducts = \"getEnrichImagesReviewProducts\",\n GetEnrichmentStatus = \"getEnrichmentStatus\",\n GetEnrichmentTaskList = \"getEnrichmentTaskList\",\n StartEnrichment = \"startEnrichment\",\n\n // Export\n CreateExportTemplate = \"createExportTemplate\",\n CreateExportTask = \"createExportTask\",\n DeleteExportTemplate = \"deleteExportTemplate\",\n DuplicateExportTemplate = \"duplicateExportTemplate\",\n GetAvailableFixedExportTemplateList = \"getAvailableFixedExportTemplateList\",\n GetAvailableCustomExportTemplateList = \"getAvailableCustomExportTemplateList\",\n GetCustomTemplate = \"getCustomTemplate\",\n GetCustomTemplateList = \"getCustomTemplateList\",\n GetExportTask = \"getExportTask\",\n GetExportTaskList = \"getExportTaskList\",\n UpdateCustomTemplate = \"updateCustomTemplate\",\n CreateExportImageTask = \"createExportImageTask\",\n\n // Feature\n GetFeatureToggles = \"getFeatureToggles\",\n SetFeatureToggle = \"setFeatureToggle\",\n\n // File\n DeleteFiles = \"deleteFiles\",\n GetFilesList = \"getFilesList\",\n RetrieveDownloadUrl = \"retrieveDownloadUrl\",\n UploadFileFromUrl = \"uploadFileFromUrl\",\n ReferenceFileToProduct = \"referenceFileToProduct\",\n\n // Localization\n CreateLocalizationTask = \"createLocalizationTask\",\n CreateBatchLocalizationTask = \"createBatchLocalizationTask\",\n GetLocalizationTaskList = \"getLocalizationTaskList\",\n GetMasterProductLocalizationStatus = \"getMasterProductLocalizationStatus\",\n\n // Product\n AddFileToGallery = \"addFileToGallery\",\n CreateProduct = \"createProduct\",\n CreateVariantProduct = \"createVariantProduct\",\n DeleteProduct = \"deleteProduct\",\n DuplicateProduct = \"duplicateProduct\",\n GetVariantDisplayAttributes = \"getVariantDisplayAttributes\",\n GetBasicProduct = \"getBasicProduct\",\n GetCreateProductTemplate = \"getCreateProductTemplate\",\n GetProduct = \"getProduct\",\n GetProductList = \"getProductList\",\n GetProductListCount = \"getProductListCount\",\n GetVariantProducts = \"getVariantProducts\",\n InitializeExportAuditLog = \"initializeExportAuditLog\",\n RemoveFileFromGalleryAction = \"removeFileFromGalleryAction\",\n UpdateAttributeBlame = \"updateAttributeBlame\",\n UpdateProduct = \"updateProduct\",\n DeleteFileAndProductReferences = \"deleteFileAndProductReferences\",\n GetEnrichedAttributesSources = \"getEnrichedAttributeSources\",\n GetEnrichedAttributesSourcesCount = \"getEnrichedAttributeSourcesCount\",\n GetProductEnrichmentStatus = \"getProductEnrichmentStatus\",\n\n // Feedback\n CreateEnrichmentFeedback = \"createEnrichmentFeedback\",\n UpdateEnrichmentFeedback = \"updateEnrichmentFeedback\",\n GetLatestEnrichmentFeedback = \"getLatestEnrichmentFeedback\",\n\n // Smart Upload\n ArchiveTask = \"archiveTask\",\n FieldMapping = \"fieldMapping\",\n GenerateS3Url = \"generateS3Url\",\n GetActiveTasks = \"getActiveTasks\",\n ImportTasks = \"importTasks\",\n ListAttributes = \"listAttributes\",\n}\n","\"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","\"use client\";\n\nimport { supplierRoutes } from \"@/src/constants/routes\";\nimport { useRouter } from \"next/navigation\";\nimport { useEffect } from \"react\";\n\nconst REDIRECT_HOME_TIMEOUT = 10000;\n\nexport function useRedirectToHome() {\n const router = useRouter();\n\n useEffect(() => {\n setTimeout(() => {\n router.push(supplierRoutes.home);\n }, REDIRECT_HOME_TIMEOUT);\n }, []);\n}\n","import { ServerActionName } from \"../actions/enums\";\n\nexport const supplierRoutes = {\n home: \"/product\",\n dashboard: \"/product\",\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"],"names":["Promise","resolve","then","__webpack_require__","bind","_arrayLikeToArray","arr","len","length","i","arr2","__webpack_exports__","_ref","children","cache","_useState2","_arrayWithHoles","Array","isArray","useState","createCache","_iterableToArrayLimit","r","l","t","Symbol","iterator","e","n","u","a","f","o","call","next","done","push","value","return","Object","_unsupportedIterableToArray","minLen","prototype","toString","slice","constructor","name","from","test","_nonIterableRest","inserted","useRef","useServerInsertedHTML","styleText","extractStyle","plain","current","React","id","dangerouslySetInnerHTML","__html","StyleProvider","GlobalError","param","error","ctx","useAppContext","useEffect","Sentry","user","email","supplierId","username","jsx_runtime","jsx","html","data-sentry-component","data-sentry-source-file","body","AntdRegistry","data-sentry-element","InternalErrorPageLayout","title","description","AppContext","createContext","undefined","token","sizeXS","colorBorderSecondary","theme","useToken","useRedirectToHome","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","Flex","align","justify","style","height","background","borderBottom","concat","Link","href","supplierRoutes","home","Image","src","alt","width","vertical","gap","className","top","Title","margin","level","Text","size","ServerActionName","context","useContext","router","useRouter","setTimeout","dashboard","products","index","upload","edit","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","logout","export","templates","templateId","settings","history","updateEmail","updatePassword","apiKey","quotationRequests","attribute","add","channels","channel","category","categoryId","smartUpload","setHeader","taskId","mapFields","setData","confirm","pending","uploadImages","template","download","featureToggles","helpCenter","support","bookDemo","privacyAndTerms","Login","ResendVerificationLink","SendResetPasswordEmail","SetPassword"],"sourceRoot":""}