{"version":3,"file":"static/chunks/app/error-80270e81253c0935.js","mappings":"4aAAAA,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAC,IAAA,CAAAD,EAAA,yICKO,SAASE,IACd,IAAMC,EAAUC,CAAAA,EAAAA,EAAAA,eAAAA,EAAgBC,EAAAA,CAASA,CAACC,MAAM,EAChD,MAAO,GAAAC,EAAAC,GAAA,EAACC,EAAAA,CAAuBA,CAAAA,CAACC,MAAOP,EAAQ,oCAAqCQ,YAAaR,EAAQ,0CAA2CS,sBAAoB,0BAA0BC,wBAAsB,oBAAoBC,0BAAwB,yBACtQ,qCCFe,SAASC,EAAUC,CAMjC,KANiC,CAChCC,MAAAA,CAAK,CAKN,CANiCD,EAO1B,CACJE,IAAAA,CAAG,CACJ,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,IAWJ,MAVAC,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,SAIGF,EACHA,EACMA,EAJdG,CAAAA,EAAAA,EAAAA,EAAAA,EAAiBJ,EAAO,CACtBK,KAAM,CACJC,MAAK,OAAEL,CAAAA,EAAAA,EAAII,IAAI,GAARJ,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAUK,KAAK,CACtBC,GAAE,OAAEN,CAAAA,EAAAA,EAAII,IAAI,GAARJ,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAUO,UAAU,CACxBC,SAAQ,OAAER,CAAAA,EAAAA,EAAII,IAAI,GAARJ,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAUS,IAAI,CAE5B,EACF,EAAG,CAACV,EAAM,EACH,GAAAV,EAAAC,GAAA,EAACN,EAAiBA,CAACU,sBAAoB,oBAAoBC,wBAAsB,YAAYC,0BAAwB,aAC9H,4CC3BYT,mCAAAA,EAAAA,GAAAA,CAAAA,EAAAA,CAAAA,CAAAA","sources":["webpack://_N_E/?4a02","webpack://_N_E/./src/components/errorScreens/InternalErrorPage.tsx","webpack://_N_E/./app/error.tsx","webpack://_N_E/./src/i18n/namespace.ts"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src2010701551/src/trustana-pim-fe/app/error.tsx\");\n","\"use client\";\n\nimport { Namespace } from \"@/src/i18n/namespace\";\nimport { useTranslations } from \"next-intl\";\nimport { InternalErrorPageLayout } from \"./InternalErrorPageLayout\";\nexport function InternalErrorPage() {\n const tCommon = useTranslations(Namespace.COMMON);\n return ;\n}","\"use client\";\n\nimport { InternalErrorPage } from \"@/src/components/errorScreens/InternalErrorPage\";\nimport { useEffect } from \"react\";\nimport { captureException } from \"@sentry/nextjs\";\nimport useAppContext from \"@/src/components/appContext/useAppContext\";\nexport default function ErrorPage({\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 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}","export enum Namespace {\n GLOBAL = \"global\",\n COMMON = \"common\",\n AI_LOCALIZATION = \"localization\",\n TASK_LOG = \"taskLog\",\n PRODUCT = \"product\",\n PRODUCT_DETAILS = \"productDetails\",\n CATALOG = \"catalog\",\n CATALOG_EDIT = \"catalogEdit\",\n CATEGORY = \"category\",\n COMPANY_PROFILE_EDIT = \"companyProfileEdit\",\n COMPANY_PROFILE_VIEW = \"companyProfileView\",\n DASHBOARD = \"dashboard\",\n ACCOUNT_MANAGEMENT = \"accountManagement\",\n QUOTATION_REQUESTS_VIEW = \"quotationRequestsView\",\n QUOTATION_REQUEST_DETAIL = \"quotationRequestsDetail\",\n SALE_OPPORTUNITY = \"saleOpportunity\",\n ATTRIBUTE_CONFIGURATION = \"attributeConfiguration\",\n ADD_ATTRIBUTE = \"addAttribute\",\n GETTING_STARTED = \"gettingStarted\",\n AUTH = \"auth\",\n SMART_UPLOAD = \"smartUpload\",\n ENRICHMENT = \"enrichment\",\n ENRICHMENT_IMAGE_REVIEW = \"enrichmentImageReview\",\n EXPORT_SETTINGS = \"exportSettings\",\n API_KEY = \"apiKey\",\n VARIANT_EDIT = \"variantEdit\",\n TEMPLATE_DOWNLOAD = \"templateDownload\",\n CHANNEL_CONFIGURATION = \"channelConfiguration\",\n DISTRIBUTION = \"distribution\",\n DAM = \"dam\",\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","captureException","user","email","id","supplierId","username","name"],"sourceRoot":""}