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O,sBAETpB,EAAOqB,SACP,MAEF,IAAK,WACHF,EAAAA,EAAAA,IAAW,CACTC,MAAO,qBAETpB,EAAOsB,SAmCGC,CAAkBT,EAAGI,OACjBJ,EAAGU,SACLV,EAAGU,W,UAKP,SAACC,EAAAA,EAAMA,CACLC,KAAK,SACLC,QAAM,EAENC,QAASd,EAAGc,QAAUd,EAAGc,QAAU,U,SAElCd,EAAGI,SARD,YAAcJ,EAAGE,UAa1B,a,2HCzGL,MAAMa,EAAe,CAC1B,CACEC,GAAI,MACJ5B,MAAO,iCACPC,QACE,uGACFE,IAAK,2BACLD,UAAW,CACT,CACEY,KAAM,IACNE,MAAO,UACPU,QAAS,yBAEX,CACEZ,KAAM,IACNE,MAAO,eAIb,CACEY,GAAI,MACJ5B,MAAO,0BACPC,QAAS,KACTE,IAAK,uBACLD,UAAW,CACT,CACEY,KAAM,IACNE,MAAO,0BAoBf,MAd0B,KACxB,MAAMa,EAAgBF,EAAaG,MAAMC,GAAe,QAATA,EAAEH,KAEjD,OACE,SAACvB,MAAAA,CAAID,UAAU,G,UACb,SAAC4B,OAAAA,C,UACC,SAACC,EAAAA,EAASA,CAAC7B,UAAU,oD,UACnB,SAACV,EAAAA,EAAYA,IAAKmC,a","sources":["webpack://_N_E/?9cea","webpack://_N_E/./src/components/Card/CardNotFound.tsx","webpack://_N_E/./src/pages_web/404.tsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return require(\"private-next-pages/404.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/404\"])\n });\n }\n ","import Image from \"next/image\";\nimport Button from \"components/Button\";\nimport { trackEvent } from \"lib/amplitude\";\nimport Link from \"next/link\";\nimport { useRouter } from \"next/router\";\n\ninterface Props {\n title?: string;\n message?: string;\n useButton?: BProps[];\n src?: string;\n className?: string;\n useSmallIcon?: boolean;\n useMaxWidth?: number;\n}\n\ninterface BProps {\n label?: string;\n href?: any;\n variant?: string;\n onClose?(): void;\n}\n\nexport const CardNotFound: React.FC = ({\n useSmallIcon = false,\n useMaxWidth = 0,\n ...props\n}) => {\n const router = useRouter();\n const { title, message, useButton, src, className = \"\" } = props;\n\n const pushToTrackEvents = (label: string) => {\n switch (label) {\n case \"Mulai Belajar Gratis\":\n trackEvent({\n event: \"myclass_startlearning_a\",\n });\n break;\n\n case \"Kembali ke Homepage\":\n trackEvent({\n event: \"error_404_back_to_homepage_a\",\n });\n break;\n\n case \"Coba Lagi\":\n trackEvent({\n event: \"error_500_retry_a\",\n });\n router.reload()\n break;\n\n case \"Kembali\":\n trackEvent({\n event: \"error_500_back_a\",\n });\n router.back()\n break;\n\n default:\n break;\n }\n };\n\n return (\n \n \n\n
\n
\n {title &&
{title}
}\n {message &&
{message}
}\n
\n\n {useButton && useButton.length > 0 ? (\n 1 ? \"gap-8\" : \"\")\n }\n >\n {useButton.map((el) => (\n {\n pushToTrackEvents(el.label);\n if (el.onClose) {\n el.onClose();\n }\n }}\n key={\"useButton\" + el.href}\n >\n \n {el.label}\n \n \n ))}\n
\n ) : null}\n \n \n );\n};\n","import Container from \"components/Container\";\nimport React from \"react\";\nimport { CardNotFound } from \"components/Card/CardNotFound\";\n\nexport const NotFoundData = [\n {\n id: \"500\",\n title: \"Ups, Ada Gangguan yang Terjadi\",\n message:\n \"Kami sedang membereskan masalah ini. Silahkan kembali ke halaman sebelumnya atau mencoba sesaat lagi\",\n src: \"/images/icon-warning.png\",\n useButton: [\n {\n href: \"/\",\n label: \"Kembali\",\n variant: \"secondary_transparant\",\n },\n {\n href: \"/\",\n label: \"Coba Lagi\",\n },\n ],\n },\n {\n id: \"404\",\n title: \"Halaman Tidak Ditemukan\",\n message: null,\n src: \"/images/icon-404.png\",\n useButton: [\n {\n href: \"/\",\n label: \"Kembali ke Homepage\",\n },\n ],\n },\n];\n\nconst Page404: React.FC = () => {\n const notFoundProps = NotFoundData.find((x) => x.id === \"404\");\n\n return (\n
\n
\n \n \n \n
\n
\n );\n};\n\nexport default Page404;\n"],"names":["window","__NEXT_P","push","CardNotFound","useSmallIcon","useMaxWidth","props","router","useRouter","title","message","useButton","src","className","div","Image","alt","width","height","length","map","el","Link","href","onClick","label","trackEvent","event","reload","back","pushToTrackEvents","onClose","Button","size","isFull","variant","NotFoundData","id","notFoundProps","find","x","main","Container"],"sourceRoot":""}