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IAAIR,EAAKnB,EAAKuB,IACJ,IAAjBhB,EAAMI,QAAiBH,GACvBT,EAAWc,EAEnB,EAOAM,EAAKS,UAAUZ,IAAM,WACjBZ,KAAKJ,IAAI6B,MAAM,KAAMzB,KAAKgB,MAC9B,EACA1B,EAAQoC,MAAQ,UAChBpC,EAAQqC,SAAU,EAClBrC,EAAQ3B,IAAM,CAAC,EACf2B,EAAQsC,KAAO,GACftC,EAAQuC,QAAU,GAClBvC,EAAQwC,SAAW,CAAC,EAIpBxC,EAAQyC,GAAKd,EACb3B,EAAQ0C,YAAcf,EACtB3B,EAAQ2C,KAAOhB,EACf3B,EAAQ4C,IAAMjB,EACd3B,EAAQ6C,eAAiBlB,EACzB3B,EAAQ8C,mBAAqBnB,EAC7B3B,EAAQ+C,KAAOpB,EACf3B,EAAQgD,gBAAkBrB,EAC1B3B,EAAQiD,oBAAsBtB,EAE9B3B,EAAQkD,UAAY,SAAUC,GAAQ,MAAO,EAAG,EAEhDnD,EAAQoD,QAAU,SAAUD,GACxB,MAAM,IAAIvE,MAAM,mCACpB,EAEAoB,EAAQqD,IAAM,WAAc,MAAO,GAAI,EACvCrD,EAAQsD,MAAQ,SAAUC,GACtB,MAAM,IAAI3E,MAAM,iCACpB,EACAoB,EAAQwD,MAAQ,WAAa,OAAO,CAAG,C","sources":["webpack://_N_E/?6ac0","webpack://_N_E/./src/utils/debugLog.util.ts","webpack://_N_E/./src/app/error.tsx","webpack://_N_E/./node_modules/process/browser.js"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src697894185/src/data-id-homepage-web/src/app/error.tsx\")","const DATA_ID_LOG_PREFIX = 'DATA_ID'\nconst showLog = process.env.NEXT_PUBLIC_DATA_ID_URL !== 'https://data.id'\n\nconst Log = {\n info: (message: unknown) => {\n if (showLog) {\n console.info(\n `%c[${DATA_ID_LOG_PREFIX}] Info %c${message}`,\n 'color: green; font-weight: bold',\n 'font-weight: bold',\n )\n }\n },\n error: (message: unknown) => {\n if (showLog) {\n console.error(\n `%c[${DATA_ID_LOG_PREFIX}] %c${message}`,\n 'color: red; font-weight: bold',\n 'font-weight: bold',\n )\n }\n },\n log: (message: unknown) => {\n if (showLog) {\n console.log(\n `%c[${DATA_ID_LOG_PREFIX}] %c${message}`,\n 'color: blue; font-weight: bold',\n 'font-weight: bold',\n )\n }\n },\n}\n\nexport default Log\n","'use client'\n\nimport { useParams } from 'next/navigation'\nimport { useEffect } from 'react'\n\nimport { Button } from '@/components'\n\nimport Header from '@/components/Header/Header'\nimport LinkIntl from '@/components/LinkIntl/LinkIntl'\n\nimport type { Language } from '@/interfaces/common.type'\n\nimport Log from '@/utils/debugLog.util'\n\n// Render the default Next.js 404 page when a route\n// is requested that doesn't match the middleware and\n// therefore doesn't have a locale associated with it.\n\nexport default async function Error({\n error,\n reset,\n}: {\n error: Error & { digest?: string }\n reset: () => void\n}) {\n const { locale } = useParams() ?? { locale: 'en' }\n\n useEffect(() => {\n Log.error(error)\n }, [error])\n\n return (\n <main className='h-full w-full'>\n <Header theme='black' />\n\n <div className='w-full flex flex-col justify-center items-center h-full body_03m_long'>\n <h2 className='headline mb-32'>Something went wrong!</h2>\n\n <LinkIntl href='/' locale={locale as Language} replace>\n <Button className='max-w-fit' type='secondary' onClick={() => reset()}>\n Try again\n </Button>\n </LinkIntl>\n </div>\n </main>\n )\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n"],"names":["env","NEXT_PUBLIC_DATA_ID_URL","info","message","error","log","async","Error","reset","useParams","locale","useEffect","Log","main","className","Header","theme","div","h2","LinkIntl","href","replace","Button","type","onClick","cachedSetTimeout","cachedClearTimeout","process","module","exports","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","e","call","this","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","length","concat","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","args","Array","arguments","i","push","prototype","apply","title","browser","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask"],"sourceRoot":""}