{"version":3,"file":"44e7e961.js","sources":["../../../src/components/globals/country-selector/CountryWarningModal.client.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport BaseModal from '@base/modal/Modal.client';\n\nexport default function CountryWarningModal({\n countryWarning,\n modalActive,\n modalText,\n}: {\n countryWarning?: boolean;\n modalActive: boolean;\n modalText?: string;\n}) {\n useEffect(() => {\n if (!countryWarning) return;\n\n fetch('/api/session', {\n method: 'POST',\n body: JSON.stringify({\n countryWarning: false,\n }),\n }).catch((error) => {\n console.error(error);\n });\n }, [countryWarning]);\n\n return (\n \n
\n

\n {modalText || 'skims.com is under construction. Check back soon.'}\n

\n
\n \n );\n}\n"],"names":["CountryWarningModal","countryWarning","modalActive","modalText","useEffect","fetch","method","body","JSON","stringify","catch","error","console","BaseModal"],"mappings":"8IAGA,SAAwBA,EAAoB,CAC1CC,eAAAA,EACAC,YAAAA,EACAC,UAAAA,CAKF,EAAG,CACDC,OAAAA,EAAAA,QAAAA,UAAU,IAAM,CACV,CAACH,GAELI,MAAM,eAAgB,CACpBC,OAAQ,OACRC,KAAMC,KAAKC,UAAU,CACnBR,eAAgB,EAAA,CACjB,CAAA,CACF,EAAES,MAAiBC,GAAA,CAClBC,QAAQD,MAAMA,CAAK,CAAA,CACpB,CAAA,EACA,CAACV,CAAc,CAAC,IAGhBY,EAAS,CACR,SAAUX,EACV,kBAAkB,oEAClB,gBAAgB,SAChB,WAAY,GACZ,WAAW,OAAM,WAEjB,MAAA,CAAK,UAAU,cAAa,WAC1B,KAAA,CAAI,UAAU,yCAAwC,SACnDC,GAAa,mDAAA,CAAmD,CAAA,CAC9D,CAAA,CAEG,CAEhB"}