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BACf7C,EACA,GACA,CAAEwB,UAAWA,GACb,CAAEsB,QAAS,CAAE,eAAgBH,MAI7BhB,GAAiB,G,kOAGtB,yB,QAkBR5B,EAAAA,EAAa,a","sources":["webpack://_N_E/?1e9e","webpack://_N_E/./src/components/DefaultFooter.tsx","webpack://_N_E/./src/pages/unsubscribe.tsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/unsubscribe\",\n function () {\n return require(\"private-next-pages/unsubscribe.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/unsubscribe\"])\n });\n }\n ","/** @jsxImportSource @emotion/react */\nimport styled from \"@emotion/styled\";\nimport React from \"react\";\nimport { COPYRIGHT_COPY } from \"../utils/constants\";\n\nconst FooterWrapper = styled.footer`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n\n margin-top: auto;\n margin-bottom: 32px;\n`;\n\nconst FooterLinks = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n\n a + a {\n margin-left: 16px;\n }\n`;\n\nconst FooterLink = styled.a`\n color: #868482;\n font-size: 14px;\n\n margin-top: 4px;\n margin-bottom: 4px;\n\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n }\n\n @media (max-width: 768px) {\n font-size: 13px;\n }\n\n @media (max-width: 384px) {\n font-size: 12px;\n }\n`;\n\nconst FooterText = styled.a`\n color: #868482;\n font-size: 14px;\n\n margin-top: 16px;\n\n @media (max-width: 768px) {\n font-size: 13px;\n }\n\n @media (max-width: 384px) {\n font-size: 12px;\n }\n`;\n\nexport default function DefaultFooter(): JSX.Element {\n return (\n \n \n \n Privacy Policy\n \n \n Terms of Service\n \n \n Subscription Agreement\n \n \n BerserkerMail Guidelines\n \n \n Refunds & Cancellations Policy\n \n \n Contact Us\n \n \n\n \n \n );\n}\n","/** @jsxImportSource @emotion/react */\nimport { css } from \"@emotion/react\";\nimport styled from \"@emotion/styled\";\nimport { useRouter } from \"next/router\";\nimport React, { useState } from \"react\";\nimport { api } from \"../api/GeneratedApi\";\nimport DefaultFooter from \"../components/DefaultFooter\";\nimport SeoHead from \"../components/SeoHead\";\nimport StyledButton from \"../components/StyledButton\";\nimport StyledCheckBox from \"../components/StyledCheckBox\";\nimport { getVisitorId } from \"../utils/FingerPrint\";\n\nconst Container = styled.div`\n height: 100vh;\n width: 100vw;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: start;\n overflow: scroll;\n padding: 0 16px;\n\n #default-footer {\n margin-top: 32px !important;\n }\n`;\n\nconst Logo = styled.img`\n width: 280px;\n\n margin: 48px 0 32px;\n\n @media (max-width: 1140px) {\n width: 240px;\n }\n\n @media (max-width: 880px) {\n width: 200px;\n }\n`;\n\nconst Box = styled.div`\n max-width: 690px;\n\n margin: auto;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n\n border: 1px solid #e5e5e5;\n`;\n\ninterface RowProps {\n background?: string;\n height?: string;\n}\n\nconst Row = styled.div`\n width: 100%;\n height: ${(props) => (props.height ? props.height : \"unset\")};\n padding: 64px;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n\n background: ${(props) => (props.background ? props.background : \"#f4f4f4\")};\n\n position: relative;\n\n @media (max-width: 1664px) {\n padding: 56px;\n }\n\n @media (max-width: 768px) {\n padding: 48px;\n }\n\n @media (max-width: 576px) {\n padding: 40px;\n }\n\n @media (max-width: 384px) {\n padding: 32px;\n }\n`;\n\nconst Flex = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media (max-width: 384px) {\n align-items: flex-start;\n }\n`;\n\nconst Icon = styled.img`\n width: 100px;\n\n @media (max-width: 576px) {\n width: 80px;\n }\n`;\n\nconst Title = styled.div`\n color: #111;\n font-size: 24px;\n font-weight: 700;\n\n text-align: center;\n\n margin-top: 16px;\n\n @media (max-width: 768px) {\n font-size: 22px;\n }\n\n @media (max-width: 576px) {\n font-size: 20px;\n }\n`;\n\nconst WarningText = styled.div`\n color: #c00000;\n font-size: 20px;\n\n margin-left: 10px;\n\n @media (max-width: 768px) {\n font-size: 19px;\n }\n\n @media (max-width: 576px) {\n font-size: 18px;\n }\n`;\n\nconst Text = styled.div`\n color: #111;\n font-size: 18px;\n\n margin-top: 16px;\n\n @media (max-width: 768px) {\n font-size: 17px;\n }\n\n @media (max-width: 576px) {\n font-size: 16px;\n }\n`;\n\nconst ButtonWrapper = styled.div`\n position: absolute;\n right: 64px;\n bottom: 32px;\n\n @media (max-width: 1664px) {\n right: 56px;\n }\n\n @media (max-width: 768px) {\n right: 48px;\n }\n\n @media (max-width: 576px) {\n right: 40px;\n bottom: 24px;\n }\n\n @media (max-width: 384px) {\n right: 32px;\n }\n`;\n\nconst Unsubscribed = styled.div`\n width: 700px;\n height: 320px;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport default function Unsubscribe(): JSX.Element {\n const router = useRouter();\n const { id, emailHash } = router.query;\n\n const [isUnsubscribe, setIsUnsubscribe] = useState(false);\n const [isCheck, setIsCheck] = useState(false);\n\n return (\n <>\n \n \n \n \n \n \n Manage Your Email Subscription\n \n {!isUnsubscribe ? (\n \n \n setIsCheck(!isCheck)}\n />\n Never send me an email ever again\n \n \n Checking this box will immediately unsubscribe you from all\n current and future email campaigns.\n \n\n \n {\n const visitorId = await getVisitorId();\n\n const response = api.endpoint.unsubscribedDetail(\n id as string,\n \"\",\n { emailHash: emailHash as string },\n { headers: { \"X-Visitor-Id\": visitorId } }\n );\n\n if (response) {\n setIsUnsubscribe(true);\n }\n }}\n >\n Unsubscribe\n \n \n \n ) : (\n \n \n You have been unsubscribed\n \n \n )}\n \n \n \n \n );\n}\n"],"names":["window","__NEXT_P","push","FooterWrapper","styled","FooterLinks","FooterLink","FooterText","DefaultFooter","id","href","target","dangerouslySetInnerHTML","__html","COPYRIGHT_COPY","Container","Logo","Box","Row","props","height","background","Flex","Icon","Title","WarningText","Text","ButtonWrapper","Unsubscribed","Unsubscribe","router","useRouter","query","emailHash","useState","isUnsubscribe","setIsUnsubscribe","isCheck","setIsCheck","SeoHead","pageName","src","alt","css","style","alignItems","StyledCheckBox","check","handleCheck","StyledButton","disable","onClick","visitorId","getVisitorId","api","headers"],"sourceRoot":""}