(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 \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","InternalErrorPage","tCommon","useTranslations","Namespace","COMMON","jsx_runtime","jsx","InternalErrorPageLayout","title","description","data-sentry-element","data-sentry-component","data-sentry-source-file","ErrorPage","param","error","ctx","useAppContext","useEffect","Sentry","user","email","id","supplierId","username","name","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","push","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":""}