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,IAAW,EAChJC,IAAKC,OAAOF,EAAQ,GACpBjC,KAAM,GAAAnB,EAAAC,GAAA,EAACkC,EAAAA,OAAKA,CAAAA,CAACC,IAAKe,EAAKhC,IAAI,CAAEkB,IAAKc,EAAK/B,IAAI,CAAEkB,MAAO,GAAIC,OAAQ,KAChEgB,MAAO9B,EAAc,KAAO0B,EAAK/B,IAAI,CACvC,GAAKZ,UAAU,+BAA+BJ,sBAAoB,OAAOE,0BAAwB,iBAEjG,GAAAN,EAAAC,GAAA,EAACc,EAAAA,CAAQP,UAAU,sCAAsCgD,MAAO,CAChEC,WAAY5B,CACd,EAAGzB,sBAAoB,UAAUE,0BAAwB,sBACrD,GAAAN,EAAAC,GAAA,EAACZ,EAAAA,EAAYA,CAAAA,CAACe,sBAAoB,eAAeE,0BAAwB,sBAAcd,aAKnG","sources":["webpack://_N_E/?cd79","webpack://_N_E/./app/contexts/PageProvider.jsx","webpack://_N_E/./app/help-center/layout.jsx"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src3441668444/src/Dinma-webapp-frontend/app/help-center/layout.jsx\");\n","\"use client\";\n\nimport React, { createContext, useContext, useState, useMemo } from \"react\";\nimport { Avatar, Button, Divider, Popover } from \"antd\";\nimport { PageHeader } from \"@ant-design/pro-layout\";\nimport { useRouter } from \"next/navigation\";\nimport { BellOutlined, LogoutOutlined, MenuOutlined, UserOutlined } from \"@ant-design/icons\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nexport const PageContext = createContext({\n setPageTitle: () => {},\n setSubTitle: () => {}\n});\nconst PageProvider = ({\n title,\n subtitle,\n children\n}) => {\n const [subTitle, setSubTitle] = useState(subtitle ?? \"\");\n const [pageTitle, setPageTitle] = useState(title ?? \"Dashboard\");\n const router = useRouter();\n const values = useMemo(() => ({\n setSubTitle,\n setPageTitle\n }), [setSubTitle, setPageTitle]);\n return \n
{children}
\n
;\n};\nconst usePage = () => {\n const context = useContext(PageContext);\n if (context === undefined) {\n throw Error(\"usePage() MUST BE USED WITHIN A !!!\");\n }\n return context;\n};\nexport { PageProvider, usePage };","\"use client\";\n\nimport React, { useState } from \"react\";\nimport { useRouter } from \"next/navigation\";\nimport Image from \"next/image\";\nimport { Layout, Menu, theme } from \"antd\";\nimport { PageProvider } from \"../contexts/PageProvider\";\nconst {\n Header,\n Content,\n Sider\n} = Layout;\n\n// menu\nconst menu = [{\n icon: \"/headset.svg\",\n name: \"Help\",\n path: \"/patient/home/dashboard/help\"\n}];\nexport default function DashboardLayout({\n children\n}) {\n const [logoSize, setLogoSize] = useState(125);\n const [isCollapsed, setIsCollapsed] = useState(false);\n const router = useRouter();\n const {\n token: {\n colorBgContainer\n }\n } = theme.useToken();\n return
\n \n
\n
router.push(\"/\")}>\n \"dinma\"\n
\n
\n \n setIsCollapsed(collapsed)} collapsedWidth={60} className=\"max-h-full h-full overflow-y-hidden noscroll bg-parent-80\" data-sentry-element=\"Sider\" data-sentry-source-file=\"layout.jsx\">\n ({\n key: String(index + 1),\n icon: {item.name},\n label: isCollapsed ? null : item.name\n }))} className=\"bg-parent-80 h-full noscroll\" data-sentry-element=\"Menu\" data-sentry-source-file=\"layout.jsx\" />\n \n \n {children}\n \n \n \n
;\n}"],"names":["Promise","resolve","then","__webpack_require__","bind","PageContext","createContext","setPageTitle","setSubTitle","PageProvider","title","subtitle","children","param","subTitle","useState","pageTitle","useRouter","values","useMemo","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Provider","value","data-sentry-element","data-sentry-component","data-sentry-source-file","div","className","usePage","context","useContext","undefined","Error","Header","Content","Sider","Layout","menu","icon","name","path","DashboardLayout","logoSize","setLogoSize","isCollapsed","setIsCollapsed","router","token","colorBgContainer","theme","useToken","jsxs","onClick","push","Image","src","alt","width","height","breakpoint","onCollapse","collapsed","collapsedWidth","Menu","mode","inlineCollapsed","inlineIndent","defaultSelectedKeys","items","map","item","index","key","String","label","style","background"],"sourceRoot":""}