codeforlife 2.9.1 → 2.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Countdown-zY3nMzmi.cjs → Countdown-CTNMDtaU.cjs} +2 -2
- package/dist/{Countdown-zY3nMzmi.cjs.map → Countdown-CTNMDtaU.cjs.map} +1 -1
- package/dist/{Countdown-DFI1RljW.js → Countdown-D4s4yfhB.js} +3 -3
- package/dist/{Countdown-DFI1RljW.js.map → Countdown-D4s4yfhB.js.map} +1 -1
- package/dist/{LinkButton-BYFkvL_O.cjs → LinkButton-C9y6XyQV.cjs} +2 -2
- package/dist/{LinkButton-BYFkvL_O.cjs.map → LinkButton-C9y6XyQV.cjs.map} +1 -1
- package/dist/{LinkButton-oK0RThqn.js → LinkButton-COnDB_KU.js} +3 -3
- package/dist/{LinkButton-oK0RThqn.js.map → LinkButton-COnDB_KU.js.map} +1 -1
- package/dist/{Navigate-Dq47aqC8.js → Navigate-Baeudg5V.js} +3 -3
- package/dist/{Navigate-Dq47aqC8.js.map → Navigate-Baeudg5V.js.map} +1 -1
- package/dist/{Navigate-dQocLhzN.cjs → Navigate-D8_ubqaT.cjs} +2 -2
- package/dist/{Navigate-dQocLhzN.cjs.map → Navigate-D8_ubqaT.cjs.map} +1 -1
- package/dist/{auth-BPfUPjmM.js → auth-C9qgLRQ4.js} +2 -2
- package/dist/{auth-BPfUPjmM.js.map → auth-C9qgLRQ4.js.map} +1 -1
- package/dist/{auth-Vf1MgMci.cjs → auth-DjC4nR_8.cjs} +2 -2
- package/dist/{auth-Vf1MgMci.cjs.map → auth-DjC4nR_8.cjs.map} +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +5 -5
- package/dist/components/page/index.cjs.js +1 -1
- package/dist/components/page/index.es.js +1 -1
- package/dist/components/router/index.cjs.js +1 -1
- package/dist/components/router/index.es.js +2 -2
- package/dist/features/index.cjs.js +1 -1
- package/dist/features/index.es.js +3 -3
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/{index-BgsynEGX.cjs → index-CiWln8tI.cjs} +2 -2
- package/dist/{index-BgsynEGX.cjs.map → index-CiWln8tI.cjs.map} +1 -1
- package/dist/{index-CNtOlJ49.js → index-CkM7p7f8.js} +2 -2
- package/dist/{index-CNtOlJ49.js.map → index-CkM7p7f8.js.map} +1 -1
- package/dist/{index-DkM_cG3a.js → index-DALohJdb.js} +4 -4
- package/dist/{index-DkM_cG3a.js.map → index-DALohJdb.js.map} +1 -1
- package/dist/{index-B_Zy_zwA.cjs → index-DZ7ETsOg.cjs} +2 -2
- package/dist/{index-B_Zy_zwA.cjs.map → index-DZ7ETsOg.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/palette-BnIdHKDE.cjs +2 -0
- package/dist/{palette-CE2mKYse.cjs.map → palette-BnIdHKDE.cjs.map} +1 -1
- package/dist/palette-CYwuLBW7.js +77 -0
- package/dist/{palette-C_L0akN_.js.map → palette-CYwuLBW7.js.map} +1 -1
- package/dist/theme/components/index.cjs.js +1 -1
- package/dist/theme/components/index.es.js +1 -1
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.cjs.js.map +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.es.js +26 -24
- package/dist/theme/index.es.js.map +1 -1
- package/dist/utils/router.cjs.js +1 -1
- package/dist/utils/router.es.js +2 -2
- package/dist/utils/theme.cjs.js +1 -1
- package/dist/utils/theme.es.js +1 -1
- package/package.json +1 -1
- package/dist/palette-CE2mKYse.cjs +0 -2
- package/dist/palette-C_L0akN_.js +0 -43
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../jsx-runtime-CeSfJrVB.cjs"),e=require("@mui/material");require("react");require("@mui/icons-material");require("formik");require("yup");require("../en-gb-CpyEkKq3.cjs");require("@mui/x-date-pickers");require("dayjs");require("../settings/index.cjs.js");require("../session-CE2U7oL1.cjs");require("js-cookie");require("../schemas-BZbJpkD5.cjs");require("../urls-MaVXL_C2.cjs");require("react-router-dom");require("../palette-CE2mKYse.cjs");require("../auth-Vf1MgMci.cjs");require("react-redux");const t=require("../Countdown-zY3nMzmi.cjs"),a=require("../Image-mgT45r_B.cjs"),r=({open:s,onClose:l})=>c.jsxRuntimeExports.jsxs(e.Dialog,{open:s,onClose:l,children:[c.jsxRuntimeExports.jsx(e.Typography,{variant:"h5",textAlign:"center",children:"Where did you go? 👀"}),c.jsxRuntimeExports.jsx(e.Typography,{textAlign:"center",children:"We noticed that you have been inactive for a while. Are you still there? For your online safety we will log you out in:"}),c.jsxRuntimeExports.jsx(t.Countdown,{textAlign:"center",variant:"h5",seconds:120,onEnd:()=>{l(),alert("TODO: call logout endpoint")}}),c.jsxRuntimeExports.jsx(e.Typography,{textAlign:"center",children:"You may lose progress unless you continue or save."}),c.jsxRuntimeExports.jsx(e.Button,{onClick:l,autoFocus:!0,children:"Wait, I'm still here!"})]}),i="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20511.91%20423.62'%3e%3cdefs%3e%3cstyle%3e.d{fill:%23f9c5db;}.e{fill:%23fff;}.f{fill:%23666;}.g{fill:%23db5d90;}.h{fill:%23afafaf;}.i{fill:%235b5a5b;}.j{opacity:.2;}%3c/style%3e%3c/defs%3e%3cg%20id='a'/%3e%3cg%20id='b'%3e%3cpath%20class='d'%20d='M442.29,190.69c-4.39-18.43-13.61-35.22-22.63-51.72-2.21-4.04-4.38-8.11-6.49-12.2-.07-.13-.15-.37-.24-.62-.09-.56-.22-1.26-.27-1.5-.35-1.67-.71-3.47-.94-5.22,.17,.84,.17-2.04,.07-3.29-.21-2.8-.49-5.71-1.13-8.45-1.27-5.43-4.12-9.99-7.23-14.49-2.25-3.27-4.6-6.48-6.59-9.92-.51-.88-.98-1.79-1.46-2.69-.01-.03-.03-.06-.04-.09-.1-.52-.3-1.36-.42-1.68,0-.08,0-.15,0-.24-.25-7.47-1.39-15.18-3.36-22.4-4.34-15.9-13.85-30.79-29.48-37.38-10.06-4.25-21.31-5.05-31.65-1.16-5.07,1.91-9.75,4.4-14.44,7.09-.67,.38-1.33,.76-2,1.14-.09-.07-.17-.13-.24-.18-.89-.7-1.77-1.4-2.66-2.09-4.9-3.81-9.64-7.47-15.34-10-12.16-5.41-25.49-7.1-38.72-7.13-6-3.36-12.68-5.63-20.27-6.29-19.81-1.71-35.07,9.1-50.05,19.98-1.84,.87-3.65,1.79-5.43,2.76-11.73-2.88-23.23-6.51-35.37-7.64-16.82-1.56-32.38,3.66-45.25,14.38-5.58,4.65-10.45,10.7-14,17.38-11.73-2.99-24.82-.3-33.89,8.54-2.85,2.78-5.27,6.15-6.98,9.75-.74,1.55-1.52,3.11-2.19,4.69-6.99,3.63-13.43,6.54-18.48,13.08-5.54,7.17-8.17,15.32-9.36,24.21-.58,4.3-.78,8.52-.87,12.85-.03,1.77-.06,3.54-.14,5.32-.05,1.17-.2,2.35-.22,3.52,0,.05,0,.07,0,.11-.02,.05-.03,.09-.05,.16-.27,.86-1.49,4.85-.87,3.73-.57,1.18-1.24,2.31-1.87,3.45-2.45,4.43-4.95,9.05-6.21,13.98-2.6,10.17-.92,20.53,1.19,30.62,1.99,9.53,5.06,19.27,9.72,28.06-.18,.57-.32,1.16-.42,1.77-2.48,14.32-4.41,28.45-1.82,42.89,2.62,14.62,11.3,25.55,22.21,35.04,2.12,1.85,4.25,3.69,6.2,5.72,.6,.63,3.12,4.22,1.03,.93,.88,1.38,1.76,2.72,2.57,4.15,3.65,6.37,7.45,12.39,12.6,17.71,5.44,5.63,12.04,12.23,19.71,14.34,1.1,.3,2.19,.49,3.27,.58,1.27,1.04,2.59,2.03,3.93,3,.49,1.1,1.04,2.17,1.63,3.23,2.77,4.92,7.75,7.89,13.06,8.76,.6,.65,1.2,1.31,1.79,1.97,3.76,4.21,7.45,8.48,11.09,12.8,1.53,1.81,3.04,3.64,4.52,5.49,.29,.36,1.27,1.64,1.56,2,.5,.66,.99,1.33,1.48,2,3.11,4.29,6.03,8.73,8.6,13.37,5.42,9.78,8.61,19.81,17.84,26.94,10.02,7.75,22.28,10.02,34.59,11.32,12.11,1.27,25.35,.72,34.91-7.83,21.04-18.81,.59-49.34-14.08-65.08-8.43-9.04-18.2-16.49-28.57-23.08,9.77-2.69,18.56-7.88,24.67-16.9,2.18-3.21,3.76-6.87,4.87-10.57,.23-.78,.41-1.57,.57-2.36,1.78-1.12,3.91-2.13,5.26-3.14,4.02-3.01,7.77-6.12,11.24-9.74,4.61-4.8,6.41-12.13,4.66-18.46,2.6-.17,5.2-.64,7.81-1.01,9.57-1.35,19.14-2.8,28.66-4.47,18.7-3.27,37.29-7.36,55.41-13.08,12.41-3.92,24.3-9.45,36.49-14.02,4.91,.32,9.79-1.21,13.52-4.49,.5-.14,.99-.29,1.49-.42,17.65-4.73,36.7,1.28,53.41-7.59,4.09-2.17,7.51-5.13,10.14-8.66,7.9-3.99,12.07-12.5,9.92-21.51Zm-161.74-110.32c.03-.22,.05-.45,.08-.71,.06,.04,.01,.32-.08,.71Zm-116.35,174.2l-.05-.28c.14,.03,.27,.05,.41,.07-.12,.07-.24,.14-.36,.21Zm217.74-50.6c0,.43,0,.86,.03,1.28-.22,0-.44,.02-.66,.03,.21-.44,.42-.87,.63-1.31ZM313.52,25.5s-.03-.02,0,0h0ZM43.06,70.85c-.27,.26-.42,.24,0,0h0Zm160.22,227.41c-.17,.09-.71,.52-1.66,1.28,.47-.68,1.21-1.3,2.08-1.89-.13,.21-.27,.41-.42,.61Z'/%3e%3cpath%20class='f'%20d='M151.43,412.81c-21.81-28.05-42.03-56.46-67.07-81.79l.29-.41c22.02,15.35,39.34,36.47,53.86,58.84,4.84,7.49,9.37,15.17,13.38,23.14l-.45,.22h0Z'/%3e%3cpath%20class='f'%20d='M137.94,258.21c17.21,15.87,21.48,40.05,4.62,57.96-8.03,8.83-18.23,15.19-28.93,20.23-1.05,.49-2.13,.96-3.3,1.43-.68,.12-1.32,.3-1.87,.36-30.97,3.76-53.28-17.65-62.97-45.27l2.16,2.23c-.95-.43-1.69-.81-2.51-1.23-14.65-7.92-28.03-20.03-34-35.9-3.7-9.79-3.97-20.93-1.03-30.81l.49,.1c-1.11,5.8-1.49,11.76-.59,17.61,3.02,21.31,20.64,37.47,39.34,46.21l.16,.07,.06,.16c2.39,6.17,5.35,12.12,9.04,17.59,3.64,5.46,8.13,10.45,13.32,14.47,10.28,7.99,24.34,11.99,36.99,9.88,14.78-6.28,30.14-15.16,38.07-29.65,5.83-11.05,4.01-24.66-2.15-35.19-2.02-3.56-4.43-6.94-7.24-9.9l.35-.36h0Z'/%3e%3cpath%20class='f'%20d='M27.46,222.17c-8.91-6.16-15.79-14.98-20.61-24.63-15.83-30.94-2.67-67.45,23.43-88.04l.37,.33c-3.06,3.58-7.03,8.52-9.64,12.33-19.27,27.09-22.14,59.5-3.07,87.55,2.88,4.34,6.14,8.46,9.86,12.09l-.33,.37h0Z'/%3e%3cpath%20class='f'%20d='M22.29,119.02c-3.79-12.15-4.93-27.75,2.01-39.02,2.02-3.31,5.16-6.1,8.75-7.72,2.72-1.24,5.28-2.55,7.75-4.04,4.52-2.89,8.94-6.32,11.66-10.9,.44-1.01,1.09-1.78,1.7-2.61,7.74-9.88,20.64-13.83,30.48-4.47l-.27,.42c-7.43-4.82-16.18-4.26-22.64,1.9-2.02,1.85-3.81,4.01-5.19,6.35-.5,1.23-1.54,2.88-2.46,4.08-2.88,3.82-6.63,6.9-10.64,9.45-5.14,3.49-11.89,4.55-15.37,10.16-6.63,10.14-6.39,24.65-5.28,36.34l-.49,.07h0Z'/%3e%3cpath%20class='f'%20d='M101.06,97.94c-16.06-4.22-25.06-17.92-19.42-34.18,3.35-9.68,8.2-19.07,14.86-26.9,7.87-9.22,18.31-16.7,30.21-19.57,7.99-1.66,16.54-.12,23.9,2.21,5.9,1.98,11.57,4.42,16.77,7.71l-.21,.45c-5.53-2.37-11.31-4.21-17.17-5.54-5.85-1.35-11.9-2.06-17.86-1.54-19.17,2.75-34.69,19.81-42.92,36.44-1.4,2.91-3.37,7.3-4.37,10.37-2.09,6.36-1.5,13.63,2.44,19.16,3.38,4.92,8.47,8.6,13.93,10.92l-.17,.47h0Z'/%3e%3cpath%20class='f'%20d='M222.86,8.58c-20.62-.37-39.77,10.41-49.37,28.44-4.75,8.27-7.95,17.74-6.82,27.2,1.23,9.55,6.94,18.16,14.57,23.91,4.25,4.33,10.56,7.19,16.69,6.2,.72-.1,2.24-.35,2.97-.45,3.74,5.24,4.49,13.15-.44,17.83-.56,.59-1.23,1.06-1.82,1.58l-.34-.37c.51-.57,1.08-1.09,1.54-1.7,3.55-4.25,2.88-10.56-.25-14.86l.33,.11c-7.4,2.48-16.1-.49-21.36-5.5-13.67-9.24-20.29-25.92-15.53-41.88,4.54-15.12,14.77-28.97,29.08-36.04,9.5-4.65,20.36-6.44,30.84-4.94l-.09,.49h0Z'/%3e%3cpath%20class='f'%20d='M208.82,29.72c3.06-6.17,8.58-11.41,15.39-13.1,2.3-.67,4.72-.73,7.11-.68l-.77,.11c16.73-7,45.75-16.61,61.69-4.02,7.33,5.02,15.97,7.39,23.17,12.95,4.68,3.47,8.18,8.46,10.46,13.78,1.22,3.08,2.03,5.92,2.74,9.13,.71,3.17,1.3,7.92,1.74,11.16,.83,5.5,1.47,11.05,2.98,16.39,.04,.11,.06,.12,.08,.18l.03,.08v.04l.12,.23c.58,1.26,.96,2.72,1.27,3.99,1.87,8.86,3.6,21.66-2.41,29.43-1.54,1.93-4.03,3.42-6.55,3.93-.42,.12-.86,.19-1.3,.35-16.56,5.08-47.28,23.42-63.2,11.85-6.73-4.79-10.14-12.9-11.28-20.77-.78-6.24-.79-12.78,2.13-18.55l2.06,2.61c-2.85,.53-5.61,.37-8.39-.26-8.19-1.76-13.79-8.51-16.56-16.05l.46-.2c.8,1.65,1.73,3.49,2.78,5.01,3.07,4.79,7.98,8.53,13.64,9.53,2.69,.52,5.51,.46,8.14-.19-1.47,2.7-1.91,5.86-2.05,8.95-.25,8.56,1.87,17.79,7.81,24.18,3.98,4.42,9.75,6.23,15.6,5.58,11.62-1.15,22.5-6.08,33.19-10.54,5.41-2.24,10.71-4.85,16.43-6.3,1.33-.34,2.51-1.12,3.38-2.19,4.89-6.41,2.84-20.94,.33-28.21-2.14-5.93-2.56-12.25-3.53-18.42-.41-3.14-.94-7.72-1.61-10.81-1.55-7.71-4.88-15.51-11.3-20.37-4.54-3.65-10.02-5.9-15.15-8.62-3.91-1.96-7.52-4.61-11.12-7.04-11.31-6.02-26.41-3-38.37-.24-5.68,1.43-11.3,3.16-16.76,5.24-2.22-.14-4.47-.2-6.64,.34-6.51,1.35-11.99,6.1-15.28,11.76l-.44-.23h0Z'/%3e%3cpath%20class='f'%20d='M311.48,27.06c7.57-7.87,18.84-16.99,30.49-16.05,19.31,2.51,43.75,14.12,48.92,34.68,2.45,10.77,3.61,23.1-1.2,33.42l.56-2.4c.1,1.11,.37,2.25,.78,3.27,.7,1.67,1.64,2.83,3.15,3.59,2.07,.77,4.18,1.3,6.27,2.21,10.93,4.24,17.68,15.08,15.89,26.8-1.25,10.43-9.13,19.74-18.77,22.96l-.21-.45c2.92-1.43,5.63-3.28,7.95-5.55,9.36-8.81,11.67-25.51,1.81-34.8-2.35-2.21-5.2-3.83-8.23-4.98-3.02-1.32-6.58-1.49-9.14-3.79-2.58-2.27-3.91-5.6-4.27-8.97-.02-.13,0-.14,.06-.25,3.97-9.4,2.6-20.19,.56-29.93-3.84-15.21-18.86-24.21-32.65-29.45-4.77-1.63-9.71-3.37-14.79-3.43-5.09,.17-9.93,2.26-14.35,4.67-4.45,2.49-8.65,5.48-12.5,8.81l-.34-.37h0Z'/%3e%3cpath%20class='f'%20d='M359.05,101.57c13.08,1.53,24.07,11.47,26.11,24.71,.67,3.96,.78,8.16,1.35,12.13,1.07,7.82,2.37,15.62,4.23,23.29,1.25,6.09,3.42,11.85,4.34,17.9,2.43,14.92-1.95,31.82-15.54,40.1-1.26,.74-2.86,1.69-4.15,2.37-11.26,5.92-28.2,16.39-39.67,21.84-3.69,1.7-7.55,3.38-11.68,3.84l-.09-.49c3.87-.87,7.44-2.86,10.92-4.83,13.81-8.27,26.97-17.62,40.96-25.61,10.81-6.29,15.41-18.47,14.87-30.57-.02-8.12-3.05-15.71-4.56-23.57-2.06-9.87-3.46-19.9-3.93-29.97,.25-15.5-8.16-26.76-23.25-30.64l.09-.49h0Z'/%3e%3cpath%20class='f'%20d='M408.01,132.23c6.68-3.19,14.64-.21,18.26,6.23,1.17,1.85,2.09,4.26,2.89,6.27,1.48,3.8,2.98,8.11,4.41,11.95,2.12,6.22,4.76,13.86,6.71,20.1,1.85,5.6,3.4,11.49,3.76,17.45,.28,4.71,.02,10.32-2.47,14.72-2.31,3.88-4.61,7.65-7.83,11.03-8.16,9.08-21.38,12.19-33.04,10.72l-.02-.5c8.38-.47,16.91-2.31,23.87-7.15,6.1-4.2,10.11-10.66,13.43-17.15,2.27-6.27,1.15-13.21-.15-19.59-2.42-9.3-6.87-23.16-9.55-32.51-1.22-3.7-2.83-10.58-4.58-14.01-2.71-5.92-9.27-8.91-15.53-7.09l-.16-.47h0Z'/%3e%3cpath%20class='f'%20d='M221.65,273.51c2.26,9.89-2.86,20.36-10.84,26.3-8.02,5.94-18.74,7.75-28.08,4.56l-.02-.5c2.02-.15,4.73-.37,6.68-.71,13.4-1.78,25.65-10.16,30.09-23.24,.76-2.09,1.38-4.26,1.67-6.45l.5,.04h0Z'/%3e%3cpath%20class='f'%20d='M200.07,300.72c3.54,4.74,5.27,12.19,.36,16.88-1.33,1.29-2.95,2.41-4.44,3.5-8.96,6.27-19.78,11.25-31.01,10.18-8.27-.2-18.35-1.37-22.86-9.37-1.38-2.44-2.16-5.13-2.46-7.88l.47-.17c2.37,6.69,7.42,11.59,14.64,12.33,3.36,.49,6.8,.35,10.25,.37,3.47,.14,6.78-.08,10.12-.96,7.46-1.85,14.5-5.27,21.05-9.25,.7-.44,1.46-.88,2.1-1.42,4.09-3.36,2.96-9.61,1.32-14l.46-.2h0Z'/%3e%3cpath%20class='f'%20d='M176.12,326.86c24.94,11.54,50.15,41.47,49.33,70.03l-.49,.09c-4.51-21.44-17.93-39.76-32.96-55.19-5.11-5.13-10.46-10.07-16.17-14.53l.3-.4h0Z'/%3e%3cpath%20class='f'%20d='M137.61,234.31c-12.87-5.26-28.97-12.85-41.88-7.04-1.34,.62-3.31,1.96-4.59,2.75-11.69,7.35-22.74,15.2-34.81,22.2l-.34-.37c5.77-5.42,11.8-10.57,18.04-15.44,4.67-3.67,9.46-7.19,14.4-10.49,1.66-1.08,3.28-2.22,5.1-3.14,3.65-1.77,7.74-2.47,11.74-2.33,12.02,.6,23.14,6.48,32.65,13.46l-.31,.4h0Z'/%3e%3cpath%20class='f'%20d='M90.49,123.12c6.33,13.05,6.79,31.3-5.1,41.5-10.92,8.88-24.57,16.5-39.18,15.65-4.18-.4-8.44-1.75-11.45-4.52l.24-.44c6.92,3.68,15.23,2.4,22.36-.05,7.28-2.54,14.04-6.47,20.3-10.98,3.08-2.25,6.3-4.46,8.52-7.63,4.53-6.27,5.59-14.37,5.32-21.95-.14-3.85-.61-7.72-1.49-11.46l.48-.13h0Z'/%3e%3cpath%20class='f'%20d='M76.79,174.22c3.7,1.29,6.73,4.02,9.14,7.02,7.21,9.2,8.66,21.88,5.65,32.96l-.13-1.32c.12,.93,.23,1.85,.32,2.79,.25,2.86,.4,5.72,.17,8.61l-.48,.15c-1.04-3.12-2.49-7.38-3.46-10.47,1.28-13.81-1.06-29.39-11.54-39.35l.31-.39h0Z'/%3e%3cpath%20class='f'%20d='M161.1,151.64c18.17-8.77,42.86,4.98,40,26.29l-.49,.11c-1.08-4.19-2.72-8.24-5.15-11.81-6.15-9.08-17.16-13.47-27.83-14.07-2.16-.15-4.34-.19-6.48-.02l-.06-.5h0Z'/%3e%3cpath%20class='f'%20d='M195.26,197.53c9.79-9.84,24.22-14.13,37.94-13.48,1.11,.1,3.32,.32,4.42,.46,7.16,1.13,14.35,2.25,21.07,5.18,1.06,.51,2.08,1.12,2.81,2.1,1.44,1.78,1.05,4.71-.91,5.97l-4.67-6.12c4.01-2.82,8.54-4.73,13.23-6.02,4.5-1.22,9.21-1.75,13.86-1.45l.08,.49c-6.59,1.14-13.01,3.31-18.85,6.56-1.93,1.09-3.84,2.29-5.53,3.67l-.52-.68c-.19,.12-.03,.28-.13,.16-.82-.7-2-.99-3.03-1.34-3.93-1.17-8-1.9-12.05-2.61-5.43-.94-10.83-1.83-16.31-1.67-10.9,.26-21.85,3.41-31.11,9.19l-.29-.41h0Z'/%3e%3cpath%20class='f'%20d='M280.33,149.53c21.07,10.79,41.84,14.23,63.49,3.14,4.86-2.38,9.69-5.07,14.86-7l.29,.41-8.8,6.36c-8.7,6.56-19.03,11.36-30.03,11.98-14.62,.82-29.2-4.98-40.14-14.52l.34-.37h0Z'/%3e%3cpath%20class='f'%20d='M181.26,213.67c9.93,6.09,14.18,19.54,8.98,30.15-2.37,5.24-6.32,9.39-10.53,13.13-.7,.55-2.55,1.99-3.24,2.52-.76,.57-2.62,1.68-3.41,2.24-8.4,4.91-18.22,8-27.95,7.45l-.08-.49c7.4-1.54,14.6-4.36,21.17-8.09,2.82-1.6,5.82-3.63,8.32-5.7,6.91-5.72,13.87-13.25,13.91-22.75,.06-6.69-3.05-13.21-7.53-18.09l.35-.36h0Z'/%3e%3cpath%20class='f'%20d='M167.22,124.02c16.67-8.3,39.6-10.49,56.5-1.46,1.18,.63,2.62,1.58,3.71,2.33,6.81,5.05,13.4,10.22,19.4,16.43l-.27,.42-9.05-5.51c-3.22-1.95-10.39-6.51-13.52-8.33-1.47-.86-3.13-1.66-4.7-2.3-13.13-5.17-27.76-4.86-41.56-2.99-3.49,.48-6.97,1.08-10.39,1.89l-.13-.48h0Z'/%3e%3cpath%20class='g'%20d='M340.25,209.52c-25.34,51.85-74.22,96.17-129.16,52.06-5.91-4.68-11.34-9.88-16.4-15.37,16.15,14.34,36.02,27.42,58.32,26.95,29.45-1,49.96-26.56,62.8-50.65,3.26-6.21,6.29-12.71,8.64-19.29,1.48-4.46,6.3-6.88,10.76-5.4,4.81,1.56,7.2,7.13,5.03,11.69h0Z'/%3e%3cpath%20class='g'%20d='M450.9,222.82c-3.86,14.01-12.5,26.41-23.37,35.88-8.87,7.57-19.71,13.2-30.75,16.3-38.57,10.56-80.42-1.74-116.27-16.32,22.35,6.65,45.15,11.56,68.41,12.15,1.99,0,6.67-.07,8.57-.09,1.81-.07,6.59-.45,8.5-.58l5.59-.75c17.07-2.47,33.77-9.13,45.66-21.69,7.23-7.71,12.77-17.29,14.99-27.65,.57-5.45,5.76-9.39,11.19-8.31,5.12,.99,8.48,5.94,7.49,11.06h0Z'/%3e%3cg%3e%3cpath%20class='e'%20d='M328.57,220.35c-.65,0-1.3-.03-1.94-.08-16.21-1.28-28.15-18.25-26.61-37.84,1.47-18.67,14.76-33.29,30.26-33.29,.65,0,1.3,.03,1.94,.08,16.21,1.28,28.15,18.25,26.61,37.84-1.47,18.67-14.76,33.29-30.26,33.29Z'/%3e%3cpath%20class='h'%20d='M330.28,147.64v3h0c.6,0,1.22,.02,1.82,.07,15.39,1.21,26.71,17.46,25.23,36.23-1.41,17.89-14.04,31.91-28.76,31.91-.61,0-1.22-.02-1.83-.07-15.39-1.21-26.71-17.46-25.23-36.23,1.41-17.89,14.04-31.91,28.76-31.91v-3m0,0c-16.21,0-30.21,15.05-31.75,34.67-1.61,20.45,10.92,38.11,27.98,39.46,.69,.05,1.38,.08,2.06,.08,16.21,0,30.21-15.05,31.75-34.67,1.61-20.45-10.92-38.11-27.98-39.46-.69-.05-1.38-.08-2.06-.08h0Z'/%3e%3c/g%3e%3cellipse%20class='i'%20cx='334.82'%20cy='199.39'%20rx='13.2'%20ry='9.39'%20transform='translate(39%20453.06)%20rotate(-71.39)'/%3e%3cg%3e%3cpath%20class='e'%20d='M446.3,231.11c-1.21,0-2.43-.1-3.63-.29-15.09-2.39-25.01-19.17-22.12-37.41,2.62-16.55,15.08-29.03,28.97-29.03,1.21,0,2.43,.1,3.63,.29,15.09,2.39,25.01,19.17,22.12,37.41-2.62,16.55-15.08,29.03-28.97,29.03Z'/%3e%3cpath%20class='h'%20d='M449.52,165.88h0c1.13,0,2.27,.09,3.39,.27,14.27,2.26,23.63,18.27,20.87,35.7-2.51,15.83-14.33,27.77-27.49,27.77-1.13,0-2.27-.09-3.39-.27-14.27-2.26-23.63-18.27-20.87-35.7,2.51-15.83,14.33-27.76,27.49-27.77m0-3c-14.48,0-27.67,12.76-30.45,30.3-3.02,19.09,7.44,36.61,23.37,39.13,1.29,.2,2.58,.3,3.86,.3,14.48,0,27.67-12.76,30.45-30.3,3.02-19.09-7.44-36.61-23.37-39.13-1.29-.2-2.58-.3-3.86-.3h0Z'/%3e%3c/g%3e%3cellipse%20class='i'%20cx='446.51'%20cy='209.6'%20rx='12.44'%20ry='8.84'%20transform='translate(78.46%20537.99)%20rotate(-66.89)'/%3e%3c/g%3e%3cg%20id='c'%3e%3cg%20class='j'%3e%3cpolygon%20class='e'%20points='329.42%20118.98%20367.62%20124.71%20301.63%20213.52%20283.04%20209.6%20267.19%20191.08%20329.42%20118.98'/%3e%3c/g%3e%3cg%20class='j'%3e%3cpolygon%20class='e'%20points='265.79%20162.67%20265.79%20110.28%20280.5%20109.04%20306.96%20113.1%20265.79%20162.67'/%3e%3c/g%3e%3cg%20class='j'%3e%3cpolygon%20class='e'%20points='469.91%20148.92%20504.3%20154.03%20444.89%20233.05%20428.16%20229.56%20413.89%20213.08%20469.91%20148.92'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M510.06,159.47c-1.72-6.02-6.83-10.58-13.04-11.65l-69.11-14.88c-.07-.01-.14-.03-.21-.04-.22-.04-.87-.14-1.8-.2,.43-.03,.68-.02,.68-.02l-63.81-15.39s.09,.05,.14,.08c-.13-.02-.26-.06-.39-.08l-81.21-13.19c-.51-.08-3-.45-6.09-.21-.4-.09-.8-.14-1.22-.12-3.73,.15-92.16,3.94-158.51,31.15-1.6,.65-2.74,2.09-3.03,3.79-.17,.98-3.97,24.18,5.96,42.8,2.22,4.17,5,7.83,8.25,10.88,.7,.66,1.58,1.1,2.53,1.28,1.15,.21,2.92,.46,4.89,.46,3.22,0,6.94-.67,9.21-3.26,1.08-1.23,2.68-3.9,1.36-7.97-.85-2.63-3.66-4.03-6.29-3.18-1.97,.64-3.27,2.41-3.43,4.37-.72,.04-1.62,.02-2.51-.06-1.99-2.08-3.73-4.5-5.18-7.22-6.52-12.22-5.86-27.59-5.26-33.71,49.43-19.59,112.16-26.35,139.12-28.46-.19,.94-.32,1.95-.32,3.07v66.73c0,.12,0,.24,.01,.36,.06,.88,1.75,21.62,20.3,29.43,11.43,4.81,43.5,6.74,68.38,7.52,.28,0,.55,.01,.82,.01,11.7,0,21.98-7.74,25.19-19.07l.23-.84c3.05-11.22,3.54-40.64,3.62-51.05,1.2-3.01,3.1-4.63,5.93-6.52,7.68-5.14,18.12-2.75,22.92,5.14,.42,.69,.82,1.4,1.21,2.11v53.78c0,.1,0,.21,.01,.31,.06,.79,1.55,19.46,18.05,26.51,10.37,4.43,37.17,6.13,57.82,6.78,.25,0,.49,.01,.74,.01,10.42,0,19.58-6.98,22.43-17.2l.2-.74c3.21-11.98,3.23-47.01,3.23-49.25,.02-.85,.04-5.71-1.84-12.26Zm-140.69-12.46s0,.09,0,.13c.02,11.06-.54,41.98-3.28,52.06l-.21,.75c-2.03,7.17-8.61,12.03-16.08,11.78-33.48-1.04-57.11-3.49-64.81-6.74-12.31-5.19-14.03-19.14-14.19-20.79V117.69c0-1.77,.62-2.3,.88-2.52,1.65-1.41,5.77-1.54,8.03-1.19l81.22,13.19c3.23,.53,5.9,2.83,6.78,5.87,1.83,6.29,1.67,13.9,1.67,13.97Zm133.58,24.48c0,.06,0,.12,0,.19,.01,9.98-.49,37.88-2.93,46.98l-.18,.67c-1.8,6.47-7.66,10.83-14.26,10.63-27.7-.87-47.6-3.08-54.59-6.07-10.96-4.68-12.48-17.3-12.62-18.78v-59.99c0-1.64,.57-2.12,.81-2.33,1.44-1.23,4.99-1.36,6.97-1.06l69.08,14.87c.07,.02,.14,.03,.21,.04,2.86,.47,5.22,2.55,6.01,5.3,1.6,5.58,1.49,9.53,1.49,9.55Z'/%3e%3cpath%20d='M431.58,118.93c2.88-2.73,6.23-4.98,9.71-6.86,10.9-6.05,23.5-5.13,33.14,2.88,1.88,2.01,4.26,4.78,6,7.27,1.74,2.53,3.65,5.26,4.1,8.34,.03,.36,.57,.4,.66,.06,1.36-5.31-1.24-10.84-3.68-15.43-1-1.64-1.88-3.43-3.32-4.86-3.2-3.28-7.29-6.04-11.99-7.63-13.51-4.78-29.72,2.7-35.13,15.74l-.04,.11c-.15,.32,.31,.63,.55,.37Z'/%3e%3cpath%20d='M297.47,90.2c2.88-2.73,6.23-4.98,9.71-6.86,10.9-6.05,23.5-5.13,33.14,2.88,1.88,2.01,4.26,4.78,6,7.27,1.74,2.53,3.65,5.26,4.1,8.34,.03,.36,.57,.4,.66,.06,1.36-5.31-1.24-10.84-3.68-15.43-1-1.64-1.88-3.43-3.32-4.86-3.2-3.28-7.29-6.04-11.99-7.63-13.51-4.78-29.72,2.7-35.13,15.74l-.04,.11c-.15,.32,.31,.63,.55,.37Z'/%3e%3c/g%3e%3cpath%20class='d'%20d='M246.7,141.54s-45.89-33.79-87.25-15.71c-41.36,18.08-12.08,29.13-12.08,29.13l39-19.62,60.33,6.21Z'/%3e%3c/g%3e%3c/svg%3e",h=({open:s,onClose:l})=>c.jsxRuntimeExports.jsxs(e.Dialog,{open:s,onClose:l,maxWidth:"sm",children:[c.jsxRuntimeExports.jsx(a.Image,{src:i,alt:"brain",maxWidth:100,marginY:3}),c.jsxRuntimeExports.jsx(e.Typography,{variant:"h5",textAlign:"center",children:"Time for a break?"}),c.jsxRuntimeExports.jsx(e.Typography,{textAlign:"center",children:"You have been using the Code for Life website for a while. Remember to take regular screen breaks to recharge those brain cells!"}),c.jsxRuntimeExports.jsx(e.Button,{onClick:l,autoFocus:!0,children:"Continue"})]});exports.InactiveDialog=r;exports.ScreenTimeDialog=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../jsx-runtime-CeSfJrVB.cjs"),e=require("@mui/material");require("react");require("@mui/icons-material");require("formik");require("yup");require("../en-gb-CpyEkKq3.cjs");require("@mui/x-date-pickers");require("dayjs");require("../settings/index.cjs.js");require("../session-CE2U7oL1.cjs");require("js-cookie");require("../schemas-BZbJpkD5.cjs");require("../urls-MaVXL_C2.cjs");require("react-router-dom");require("../palette-BnIdHKDE.cjs");require("../auth-DjC4nR_8.cjs");require("react-redux");const t=require("../Countdown-CTNMDtaU.cjs"),a=require("../Image-mgT45r_B.cjs"),r=({open:s,onClose:l})=>c.jsxRuntimeExports.jsxs(e.Dialog,{open:s,onClose:l,children:[c.jsxRuntimeExports.jsx(e.Typography,{variant:"h5",textAlign:"center",children:"Where did you go? 👀"}),c.jsxRuntimeExports.jsx(e.Typography,{textAlign:"center",children:"We noticed that you have been inactive for a while. Are you still there? For your online safety we will log you out in:"}),c.jsxRuntimeExports.jsx(t.Countdown,{textAlign:"center",variant:"h5",seconds:120,onEnd:()=>{l(),alert("TODO: call logout endpoint")}}),c.jsxRuntimeExports.jsx(e.Typography,{textAlign:"center",children:"You may lose progress unless you continue or save."}),c.jsxRuntimeExports.jsx(e.Button,{onClick:l,autoFocus:!0,children:"Wait, I'm still here!"})]}),i="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20511.91%20423.62'%3e%3cdefs%3e%3cstyle%3e.d{fill:%23f9c5db;}.e{fill:%23fff;}.f{fill:%23666;}.g{fill:%23db5d90;}.h{fill:%23afafaf;}.i{fill:%235b5a5b;}.j{opacity:.2;}%3c/style%3e%3c/defs%3e%3cg%20id='a'/%3e%3cg%20id='b'%3e%3cpath%20class='d'%20d='M442.29,190.69c-4.39-18.43-13.61-35.22-22.63-51.72-2.21-4.04-4.38-8.11-6.49-12.2-.07-.13-.15-.37-.24-.62-.09-.56-.22-1.26-.27-1.5-.35-1.67-.71-3.47-.94-5.22,.17,.84,.17-2.04,.07-3.29-.21-2.8-.49-5.71-1.13-8.45-1.27-5.43-4.12-9.99-7.23-14.49-2.25-3.27-4.6-6.48-6.59-9.92-.51-.88-.98-1.79-1.46-2.69-.01-.03-.03-.06-.04-.09-.1-.52-.3-1.36-.42-1.68,0-.08,0-.15,0-.24-.25-7.47-1.39-15.18-3.36-22.4-4.34-15.9-13.85-30.79-29.48-37.38-10.06-4.25-21.31-5.05-31.65-1.16-5.07,1.91-9.75,4.4-14.44,7.09-.67,.38-1.33,.76-2,1.14-.09-.07-.17-.13-.24-.18-.89-.7-1.77-1.4-2.66-2.09-4.9-3.81-9.64-7.47-15.34-10-12.16-5.41-25.49-7.1-38.72-7.13-6-3.36-12.68-5.63-20.27-6.29-19.81-1.71-35.07,9.1-50.05,19.98-1.84,.87-3.65,1.79-5.43,2.76-11.73-2.88-23.23-6.51-35.37-7.64-16.82-1.56-32.38,3.66-45.25,14.38-5.58,4.65-10.45,10.7-14,17.38-11.73-2.99-24.82-.3-33.89,8.54-2.85,2.78-5.27,6.15-6.98,9.75-.74,1.55-1.52,3.11-2.19,4.69-6.99,3.63-13.43,6.54-18.48,13.08-5.54,7.17-8.17,15.32-9.36,24.21-.58,4.3-.78,8.52-.87,12.85-.03,1.77-.06,3.54-.14,5.32-.05,1.17-.2,2.35-.22,3.52,0,.05,0,.07,0,.11-.02,.05-.03,.09-.05,.16-.27,.86-1.49,4.85-.87,3.73-.57,1.18-1.24,2.31-1.87,3.45-2.45,4.43-4.95,9.05-6.21,13.98-2.6,10.17-.92,20.53,1.19,30.62,1.99,9.53,5.06,19.27,9.72,28.06-.18,.57-.32,1.16-.42,1.77-2.48,14.32-4.41,28.45-1.82,42.89,2.62,14.62,11.3,25.55,22.21,35.04,2.12,1.85,4.25,3.69,6.2,5.72,.6,.63,3.12,4.22,1.03,.93,.88,1.38,1.76,2.72,2.57,4.15,3.65,6.37,7.45,12.39,12.6,17.71,5.44,5.63,12.04,12.23,19.71,14.34,1.1,.3,2.19,.49,3.27,.58,1.27,1.04,2.59,2.03,3.93,3,.49,1.1,1.04,2.17,1.63,3.23,2.77,4.92,7.75,7.89,13.06,8.76,.6,.65,1.2,1.31,1.79,1.97,3.76,4.21,7.45,8.48,11.09,12.8,1.53,1.81,3.04,3.64,4.52,5.49,.29,.36,1.27,1.64,1.56,2,.5,.66,.99,1.33,1.48,2,3.11,4.29,6.03,8.73,8.6,13.37,5.42,9.78,8.61,19.81,17.84,26.94,10.02,7.75,22.28,10.02,34.59,11.32,12.11,1.27,25.35,.72,34.91-7.83,21.04-18.81,.59-49.34-14.08-65.08-8.43-9.04-18.2-16.49-28.57-23.08,9.77-2.69,18.56-7.88,24.67-16.9,2.18-3.21,3.76-6.87,4.87-10.57,.23-.78,.41-1.57,.57-2.36,1.78-1.12,3.91-2.13,5.26-3.14,4.02-3.01,7.77-6.12,11.24-9.74,4.61-4.8,6.41-12.13,4.66-18.46,2.6-.17,5.2-.64,7.81-1.01,9.57-1.35,19.14-2.8,28.66-4.47,18.7-3.27,37.29-7.36,55.41-13.08,12.41-3.92,24.3-9.45,36.49-14.02,4.91,.32,9.79-1.21,13.52-4.49,.5-.14,.99-.29,1.49-.42,17.65-4.73,36.7,1.28,53.41-7.59,4.09-2.17,7.51-5.13,10.14-8.66,7.9-3.99,12.07-12.5,9.92-21.51Zm-161.74-110.32c.03-.22,.05-.45,.08-.71,.06,.04,.01,.32-.08,.71Zm-116.35,174.2l-.05-.28c.14,.03,.27,.05,.41,.07-.12,.07-.24,.14-.36,.21Zm217.74-50.6c0,.43,0,.86,.03,1.28-.22,0-.44,.02-.66,.03,.21-.44,.42-.87,.63-1.31ZM313.52,25.5s-.03-.02,0,0h0ZM43.06,70.85c-.27,.26-.42,.24,0,0h0Zm160.22,227.41c-.17,.09-.71,.52-1.66,1.28,.47-.68,1.21-1.3,2.08-1.89-.13,.21-.27,.41-.42,.61Z'/%3e%3cpath%20class='f'%20d='M151.43,412.81c-21.81-28.05-42.03-56.46-67.07-81.79l.29-.41c22.02,15.35,39.34,36.47,53.86,58.84,4.84,7.49,9.37,15.17,13.38,23.14l-.45,.22h0Z'/%3e%3cpath%20class='f'%20d='M137.94,258.21c17.21,15.87,21.48,40.05,4.62,57.96-8.03,8.83-18.23,15.19-28.93,20.23-1.05,.49-2.13,.96-3.3,1.43-.68,.12-1.32,.3-1.87,.36-30.97,3.76-53.28-17.65-62.97-45.27l2.16,2.23c-.95-.43-1.69-.81-2.51-1.23-14.65-7.92-28.03-20.03-34-35.9-3.7-9.79-3.97-20.93-1.03-30.81l.49,.1c-1.11,5.8-1.49,11.76-.59,17.61,3.02,21.31,20.64,37.47,39.34,46.21l.16,.07,.06,.16c2.39,6.17,5.35,12.12,9.04,17.59,3.64,5.46,8.13,10.45,13.32,14.47,10.28,7.99,24.34,11.99,36.99,9.88,14.78-6.28,30.14-15.16,38.07-29.65,5.83-11.05,4.01-24.66-2.15-35.19-2.02-3.56-4.43-6.94-7.24-9.9l.35-.36h0Z'/%3e%3cpath%20class='f'%20d='M27.46,222.17c-8.91-6.16-15.79-14.98-20.61-24.63-15.83-30.94-2.67-67.45,23.43-88.04l.37,.33c-3.06,3.58-7.03,8.52-9.64,12.33-19.27,27.09-22.14,59.5-3.07,87.55,2.88,4.34,6.14,8.46,9.86,12.09l-.33,.37h0Z'/%3e%3cpath%20class='f'%20d='M22.29,119.02c-3.79-12.15-4.93-27.75,2.01-39.02,2.02-3.31,5.16-6.1,8.75-7.72,2.72-1.24,5.28-2.55,7.75-4.04,4.52-2.89,8.94-6.32,11.66-10.9,.44-1.01,1.09-1.78,1.7-2.61,7.74-9.88,20.64-13.83,30.48-4.47l-.27,.42c-7.43-4.82-16.18-4.26-22.64,1.9-2.02,1.85-3.81,4.01-5.19,6.35-.5,1.23-1.54,2.88-2.46,4.08-2.88,3.82-6.63,6.9-10.64,9.45-5.14,3.49-11.89,4.55-15.37,10.16-6.63,10.14-6.39,24.65-5.28,36.34l-.49,.07h0Z'/%3e%3cpath%20class='f'%20d='M101.06,97.94c-16.06-4.22-25.06-17.92-19.42-34.18,3.35-9.68,8.2-19.07,14.86-26.9,7.87-9.22,18.31-16.7,30.21-19.57,7.99-1.66,16.54-.12,23.9,2.21,5.9,1.98,11.57,4.42,16.77,7.71l-.21,.45c-5.53-2.37-11.31-4.21-17.17-5.54-5.85-1.35-11.9-2.06-17.86-1.54-19.17,2.75-34.69,19.81-42.92,36.44-1.4,2.91-3.37,7.3-4.37,10.37-2.09,6.36-1.5,13.63,2.44,19.16,3.38,4.92,8.47,8.6,13.93,10.92l-.17,.47h0Z'/%3e%3cpath%20class='f'%20d='M222.86,8.58c-20.62-.37-39.77,10.41-49.37,28.44-4.75,8.27-7.95,17.74-6.82,27.2,1.23,9.55,6.94,18.16,14.57,23.91,4.25,4.33,10.56,7.19,16.69,6.2,.72-.1,2.24-.35,2.97-.45,3.74,5.24,4.49,13.15-.44,17.83-.56,.59-1.23,1.06-1.82,1.58l-.34-.37c.51-.57,1.08-1.09,1.54-1.7,3.55-4.25,2.88-10.56-.25-14.86l.33,.11c-7.4,2.48-16.1-.49-21.36-5.5-13.67-9.24-20.29-25.92-15.53-41.88,4.54-15.12,14.77-28.97,29.08-36.04,9.5-4.65,20.36-6.44,30.84-4.94l-.09,.49h0Z'/%3e%3cpath%20class='f'%20d='M208.82,29.72c3.06-6.17,8.58-11.41,15.39-13.1,2.3-.67,4.72-.73,7.11-.68l-.77,.11c16.73-7,45.75-16.61,61.69-4.02,7.33,5.02,15.97,7.39,23.17,12.95,4.68,3.47,8.18,8.46,10.46,13.78,1.22,3.08,2.03,5.92,2.74,9.13,.71,3.17,1.3,7.92,1.74,11.16,.83,5.5,1.47,11.05,2.98,16.39,.04,.11,.06,.12,.08,.18l.03,.08v.04l.12,.23c.58,1.26,.96,2.72,1.27,3.99,1.87,8.86,3.6,21.66-2.41,29.43-1.54,1.93-4.03,3.42-6.55,3.93-.42,.12-.86,.19-1.3,.35-16.56,5.08-47.28,23.42-63.2,11.85-6.73-4.79-10.14-12.9-11.28-20.77-.78-6.24-.79-12.78,2.13-18.55l2.06,2.61c-2.85,.53-5.61,.37-8.39-.26-8.19-1.76-13.79-8.51-16.56-16.05l.46-.2c.8,1.65,1.73,3.49,2.78,5.01,3.07,4.79,7.98,8.53,13.64,9.53,2.69,.52,5.51,.46,8.14-.19-1.47,2.7-1.91,5.86-2.05,8.95-.25,8.56,1.87,17.79,7.81,24.18,3.98,4.42,9.75,6.23,15.6,5.58,11.62-1.15,22.5-6.08,33.19-10.54,5.41-2.24,10.71-4.85,16.43-6.3,1.33-.34,2.51-1.12,3.38-2.19,4.89-6.41,2.84-20.94,.33-28.21-2.14-5.93-2.56-12.25-3.53-18.42-.41-3.14-.94-7.72-1.61-10.81-1.55-7.71-4.88-15.51-11.3-20.37-4.54-3.65-10.02-5.9-15.15-8.62-3.91-1.96-7.52-4.61-11.12-7.04-11.31-6.02-26.41-3-38.37-.24-5.68,1.43-11.3,3.16-16.76,5.24-2.22-.14-4.47-.2-6.64,.34-6.51,1.35-11.99,6.1-15.28,11.76l-.44-.23h0Z'/%3e%3cpath%20class='f'%20d='M311.48,27.06c7.57-7.87,18.84-16.99,30.49-16.05,19.31,2.51,43.75,14.12,48.92,34.68,2.45,10.77,3.61,23.1-1.2,33.42l.56-2.4c.1,1.11,.37,2.25,.78,3.27,.7,1.67,1.64,2.83,3.15,3.59,2.07,.77,4.18,1.3,6.27,2.21,10.93,4.24,17.68,15.08,15.89,26.8-1.25,10.43-9.13,19.74-18.77,22.96l-.21-.45c2.92-1.43,5.63-3.28,7.95-5.55,9.36-8.81,11.67-25.51,1.81-34.8-2.35-2.21-5.2-3.83-8.23-4.98-3.02-1.32-6.58-1.49-9.14-3.79-2.58-2.27-3.91-5.6-4.27-8.97-.02-.13,0-.14,.06-.25,3.97-9.4,2.6-20.19,.56-29.93-3.84-15.21-18.86-24.21-32.65-29.45-4.77-1.63-9.71-3.37-14.79-3.43-5.09,.17-9.93,2.26-14.35,4.67-4.45,2.49-8.65,5.48-12.5,8.81l-.34-.37h0Z'/%3e%3cpath%20class='f'%20d='M359.05,101.57c13.08,1.53,24.07,11.47,26.11,24.71,.67,3.96,.78,8.16,1.35,12.13,1.07,7.82,2.37,15.62,4.23,23.29,1.25,6.09,3.42,11.85,4.34,17.9,2.43,14.92-1.95,31.82-15.54,40.1-1.26,.74-2.86,1.69-4.15,2.37-11.26,5.92-28.2,16.39-39.67,21.84-3.69,1.7-7.55,3.38-11.68,3.84l-.09-.49c3.87-.87,7.44-2.86,10.92-4.83,13.81-8.27,26.97-17.62,40.96-25.61,10.81-6.29,15.41-18.47,14.87-30.57-.02-8.12-3.05-15.71-4.56-23.57-2.06-9.87-3.46-19.9-3.93-29.97,.25-15.5-8.16-26.76-23.25-30.64l.09-.49h0Z'/%3e%3cpath%20class='f'%20d='M408.01,132.23c6.68-3.19,14.64-.21,18.26,6.23,1.17,1.85,2.09,4.26,2.89,6.27,1.48,3.8,2.98,8.11,4.41,11.95,2.12,6.22,4.76,13.86,6.71,20.1,1.85,5.6,3.4,11.49,3.76,17.45,.28,4.71,.02,10.32-2.47,14.72-2.31,3.88-4.61,7.65-7.83,11.03-8.16,9.08-21.38,12.19-33.04,10.72l-.02-.5c8.38-.47,16.91-2.31,23.87-7.15,6.1-4.2,10.11-10.66,13.43-17.15,2.27-6.27,1.15-13.21-.15-19.59-2.42-9.3-6.87-23.16-9.55-32.51-1.22-3.7-2.83-10.58-4.58-14.01-2.71-5.92-9.27-8.91-15.53-7.09l-.16-.47h0Z'/%3e%3cpath%20class='f'%20d='M221.65,273.51c2.26,9.89-2.86,20.36-10.84,26.3-8.02,5.94-18.74,7.75-28.08,4.56l-.02-.5c2.02-.15,4.73-.37,6.68-.71,13.4-1.78,25.65-10.16,30.09-23.24,.76-2.09,1.38-4.26,1.67-6.45l.5,.04h0Z'/%3e%3cpath%20class='f'%20d='M200.07,300.72c3.54,4.74,5.27,12.19,.36,16.88-1.33,1.29-2.95,2.41-4.44,3.5-8.96,6.27-19.78,11.25-31.01,10.18-8.27-.2-18.35-1.37-22.86-9.37-1.38-2.44-2.16-5.13-2.46-7.88l.47-.17c2.37,6.69,7.42,11.59,14.64,12.33,3.36,.49,6.8,.35,10.25,.37,3.47,.14,6.78-.08,10.12-.96,7.46-1.85,14.5-5.27,21.05-9.25,.7-.44,1.46-.88,2.1-1.42,4.09-3.36,2.96-9.61,1.32-14l.46-.2h0Z'/%3e%3cpath%20class='f'%20d='M176.12,326.86c24.94,11.54,50.15,41.47,49.33,70.03l-.49,.09c-4.51-21.44-17.93-39.76-32.96-55.19-5.11-5.13-10.46-10.07-16.17-14.53l.3-.4h0Z'/%3e%3cpath%20class='f'%20d='M137.61,234.31c-12.87-5.26-28.97-12.85-41.88-7.04-1.34,.62-3.31,1.96-4.59,2.75-11.69,7.35-22.74,15.2-34.81,22.2l-.34-.37c5.77-5.42,11.8-10.57,18.04-15.44,4.67-3.67,9.46-7.19,14.4-10.49,1.66-1.08,3.28-2.22,5.1-3.14,3.65-1.77,7.74-2.47,11.74-2.33,12.02,.6,23.14,6.48,32.65,13.46l-.31,.4h0Z'/%3e%3cpath%20class='f'%20d='M90.49,123.12c6.33,13.05,6.79,31.3-5.1,41.5-10.92,8.88-24.57,16.5-39.18,15.65-4.18-.4-8.44-1.75-11.45-4.52l.24-.44c6.92,3.68,15.23,2.4,22.36-.05,7.28-2.54,14.04-6.47,20.3-10.98,3.08-2.25,6.3-4.46,8.52-7.63,4.53-6.27,5.59-14.37,5.32-21.95-.14-3.85-.61-7.72-1.49-11.46l.48-.13h0Z'/%3e%3cpath%20class='f'%20d='M76.79,174.22c3.7,1.29,6.73,4.02,9.14,7.02,7.21,9.2,8.66,21.88,5.65,32.96l-.13-1.32c.12,.93,.23,1.85,.32,2.79,.25,2.86,.4,5.72,.17,8.61l-.48,.15c-1.04-3.12-2.49-7.38-3.46-10.47,1.28-13.81-1.06-29.39-11.54-39.35l.31-.39h0Z'/%3e%3cpath%20class='f'%20d='M161.1,151.64c18.17-8.77,42.86,4.98,40,26.29l-.49,.11c-1.08-4.19-2.72-8.24-5.15-11.81-6.15-9.08-17.16-13.47-27.83-14.07-2.16-.15-4.34-.19-6.48-.02l-.06-.5h0Z'/%3e%3cpath%20class='f'%20d='M195.26,197.53c9.79-9.84,24.22-14.13,37.94-13.48,1.11,.1,3.32,.32,4.42,.46,7.16,1.13,14.35,2.25,21.07,5.18,1.06,.51,2.08,1.12,2.81,2.1,1.44,1.78,1.05,4.71-.91,5.97l-4.67-6.12c4.01-2.82,8.54-4.73,13.23-6.02,4.5-1.22,9.21-1.75,13.86-1.45l.08,.49c-6.59,1.14-13.01,3.31-18.85,6.56-1.93,1.09-3.84,2.29-5.53,3.67l-.52-.68c-.19,.12-.03,.28-.13,.16-.82-.7-2-.99-3.03-1.34-3.93-1.17-8-1.9-12.05-2.61-5.43-.94-10.83-1.83-16.31-1.67-10.9,.26-21.85,3.41-31.11,9.19l-.29-.41h0Z'/%3e%3cpath%20class='f'%20d='M280.33,149.53c21.07,10.79,41.84,14.23,63.49,3.14,4.86-2.38,9.69-5.07,14.86-7l.29,.41-8.8,6.36c-8.7,6.56-19.03,11.36-30.03,11.98-14.62,.82-29.2-4.98-40.14-14.52l.34-.37h0Z'/%3e%3cpath%20class='f'%20d='M181.26,213.67c9.93,6.09,14.18,19.54,8.98,30.15-2.37,5.24-6.32,9.39-10.53,13.13-.7,.55-2.55,1.99-3.24,2.52-.76,.57-2.62,1.68-3.41,2.24-8.4,4.91-18.22,8-27.95,7.45l-.08-.49c7.4-1.54,14.6-4.36,21.17-8.09,2.82-1.6,5.82-3.63,8.32-5.7,6.91-5.72,13.87-13.25,13.91-22.75,.06-6.69-3.05-13.21-7.53-18.09l.35-.36h0Z'/%3e%3cpath%20class='f'%20d='M167.22,124.02c16.67-8.3,39.6-10.49,56.5-1.46,1.18,.63,2.62,1.58,3.71,2.33,6.81,5.05,13.4,10.22,19.4,16.43l-.27,.42-9.05-5.51c-3.22-1.95-10.39-6.51-13.52-8.33-1.47-.86-3.13-1.66-4.7-2.3-13.13-5.17-27.76-4.86-41.56-2.99-3.49,.48-6.97,1.08-10.39,1.89l-.13-.48h0Z'/%3e%3cpath%20class='g'%20d='M340.25,209.52c-25.34,51.85-74.22,96.17-129.16,52.06-5.91-4.68-11.34-9.88-16.4-15.37,16.15,14.34,36.02,27.42,58.32,26.95,29.45-1,49.96-26.56,62.8-50.65,3.26-6.21,6.29-12.71,8.64-19.29,1.48-4.46,6.3-6.88,10.76-5.4,4.81,1.56,7.2,7.13,5.03,11.69h0Z'/%3e%3cpath%20class='g'%20d='M450.9,222.82c-3.86,14.01-12.5,26.41-23.37,35.88-8.87,7.57-19.71,13.2-30.75,16.3-38.57,10.56-80.42-1.74-116.27-16.32,22.35,6.65,45.15,11.56,68.41,12.15,1.99,0,6.67-.07,8.57-.09,1.81-.07,6.59-.45,8.5-.58l5.59-.75c17.07-2.47,33.77-9.13,45.66-21.69,7.23-7.71,12.77-17.29,14.99-27.65,.57-5.45,5.76-9.39,11.19-8.31,5.12,.99,8.48,5.94,7.49,11.06h0Z'/%3e%3cg%3e%3cpath%20class='e'%20d='M328.57,220.35c-.65,0-1.3-.03-1.94-.08-16.21-1.28-28.15-18.25-26.61-37.84,1.47-18.67,14.76-33.29,30.26-33.29,.65,0,1.3,.03,1.94,.08,16.21,1.28,28.15,18.25,26.61,37.84-1.47,18.67-14.76,33.29-30.26,33.29Z'/%3e%3cpath%20class='h'%20d='M330.28,147.64v3h0c.6,0,1.22,.02,1.82,.07,15.39,1.21,26.71,17.46,25.23,36.23-1.41,17.89-14.04,31.91-28.76,31.91-.61,0-1.22-.02-1.83-.07-15.39-1.21-26.71-17.46-25.23-36.23,1.41-17.89,14.04-31.91,28.76-31.91v-3m0,0c-16.21,0-30.21,15.05-31.75,34.67-1.61,20.45,10.92,38.11,27.98,39.46,.69,.05,1.38,.08,2.06,.08,16.21,0,30.21-15.05,31.75-34.67,1.61-20.45-10.92-38.11-27.98-39.46-.69-.05-1.38-.08-2.06-.08h0Z'/%3e%3c/g%3e%3cellipse%20class='i'%20cx='334.82'%20cy='199.39'%20rx='13.2'%20ry='9.39'%20transform='translate(39%20453.06)%20rotate(-71.39)'/%3e%3cg%3e%3cpath%20class='e'%20d='M446.3,231.11c-1.21,0-2.43-.1-3.63-.29-15.09-2.39-25.01-19.17-22.12-37.41,2.62-16.55,15.08-29.03,28.97-29.03,1.21,0,2.43,.1,3.63,.29,15.09,2.39,25.01,19.17,22.12,37.41-2.62,16.55-15.08,29.03-28.97,29.03Z'/%3e%3cpath%20class='h'%20d='M449.52,165.88h0c1.13,0,2.27,.09,3.39,.27,14.27,2.26,23.63,18.27,20.87,35.7-2.51,15.83-14.33,27.77-27.49,27.77-1.13,0-2.27-.09-3.39-.27-14.27-2.26-23.63-18.27-20.87-35.7,2.51-15.83,14.33-27.76,27.49-27.77m0-3c-14.48,0-27.67,12.76-30.45,30.3-3.02,19.09,7.44,36.61,23.37,39.13,1.29,.2,2.58,.3,3.86,.3,14.48,0,27.67-12.76,30.45-30.3,3.02-19.09-7.44-36.61-23.37-39.13-1.29-.2-2.58-.3-3.86-.3h0Z'/%3e%3c/g%3e%3cellipse%20class='i'%20cx='446.51'%20cy='209.6'%20rx='12.44'%20ry='8.84'%20transform='translate(78.46%20537.99)%20rotate(-66.89)'/%3e%3c/g%3e%3cg%20id='c'%3e%3cg%20class='j'%3e%3cpolygon%20class='e'%20points='329.42%20118.98%20367.62%20124.71%20301.63%20213.52%20283.04%20209.6%20267.19%20191.08%20329.42%20118.98'/%3e%3c/g%3e%3cg%20class='j'%3e%3cpolygon%20class='e'%20points='265.79%20162.67%20265.79%20110.28%20280.5%20109.04%20306.96%20113.1%20265.79%20162.67'/%3e%3c/g%3e%3cg%20class='j'%3e%3cpolygon%20class='e'%20points='469.91%20148.92%20504.3%20154.03%20444.89%20233.05%20428.16%20229.56%20413.89%20213.08%20469.91%20148.92'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M510.06,159.47c-1.72-6.02-6.83-10.58-13.04-11.65l-69.11-14.88c-.07-.01-.14-.03-.21-.04-.22-.04-.87-.14-1.8-.2,.43-.03,.68-.02,.68-.02l-63.81-15.39s.09,.05,.14,.08c-.13-.02-.26-.06-.39-.08l-81.21-13.19c-.51-.08-3-.45-6.09-.21-.4-.09-.8-.14-1.22-.12-3.73,.15-92.16,3.94-158.51,31.15-1.6,.65-2.74,2.09-3.03,3.79-.17,.98-3.97,24.18,5.96,42.8,2.22,4.17,5,7.83,8.25,10.88,.7,.66,1.58,1.1,2.53,1.28,1.15,.21,2.92,.46,4.89,.46,3.22,0,6.94-.67,9.21-3.26,1.08-1.23,2.68-3.9,1.36-7.97-.85-2.63-3.66-4.03-6.29-3.18-1.97,.64-3.27,2.41-3.43,4.37-.72,.04-1.62,.02-2.51-.06-1.99-2.08-3.73-4.5-5.18-7.22-6.52-12.22-5.86-27.59-5.26-33.71,49.43-19.59,112.16-26.35,139.12-28.46-.19,.94-.32,1.95-.32,3.07v66.73c0,.12,0,.24,.01,.36,.06,.88,1.75,21.62,20.3,29.43,11.43,4.81,43.5,6.74,68.38,7.52,.28,0,.55,.01,.82,.01,11.7,0,21.98-7.74,25.19-19.07l.23-.84c3.05-11.22,3.54-40.64,3.62-51.05,1.2-3.01,3.1-4.63,5.93-6.52,7.68-5.14,18.12-2.75,22.92,5.14,.42,.69,.82,1.4,1.21,2.11v53.78c0,.1,0,.21,.01,.31,.06,.79,1.55,19.46,18.05,26.51,10.37,4.43,37.17,6.13,57.82,6.78,.25,0,.49,.01,.74,.01,10.42,0,19.58-6.98,22.43-17.2l.2-.74c3.21-11.98,3.23-47.01,3.23-49.25,.02-.85,.04-5.71-1.84-12.26Zm-140.69-12.46s0,.09,0,.13c.02,11.06-.54,41.98-3.28,52.06l-.21,.75c-2.03,7.17-8.61,12.03-16.08,11.78-33.48-1.04-57.11-3.49-64.81-6.74-12.31-5.19-14.03-19.14-14.19-20.79V117.69c0-1.77,.62-2.3,.88-2.52,1.65-1.41,5.77-1.54,8.03-1.19l81.22,13.19c3.23,.53,5.9,2.83,6.78,5.87,1.83,6.29,1.67,13.9,1.67,13.97Zm133.58,24.48c0,.06,0,.12,0,.19,.01,9.98-.49,37.88-2.93,46.98l-.18,.67c-1.8,6.47-7.66,10.83-14.26,10.63-27.7-.87-47.6-3.08-54.59-6.07-10.96-4.68-12.48-17.3-12.62-18.78v-59.99c0-1.64,.57-2.12,.81-2.33,1.44-1.23,4.99-1.36,6.97-1.06l69.08,14.87c.07,.02,.14,.03,.21,.04,2.86,.47,5.22,2.55,6.01,5.3,1.6,5.58,1.49,9.53,1.49,9.55Z'/%3e%3cpath%20d='M431.58,118.93c2.88-2.73,6.23-4.98,9.71-6.86,10.9-6.05,23.5-5.13,33.14,2.88,1.88,2.01,4.26,4.78,6,7.27,1.74,2.53,3.65,5.26,4.1,8.34,.03,.36,.57,.4,.66,.06,1.36-5.31-1.24-10.84-3.68-15.43-1-1.64-1.88-3.43-3.32-4.86-3.2-3.28-7.29-6.04-11.99-7.63-13.51-4.78-29.72,2.7-35.13,15.74l-.04,.11c-.15,.32,.31,.63,.55,.37Z'/%3e%3cpath%20d='M297.47,90.2c2.88-2.73,6.23-4.98,9.71-6.86,10.9-6.05,23.5-5.13,33.14,2.88,1.88,2.01,4.26,4.78,6,7.27,1.74,2.53,3.65,5.26,4.1,8.34,.03,.36,.57,.4,.66,.06,1.36-5.31-1.24-10.84-3.68-15.43-1-1.64-1.88-3.43-3.32-4.86-3.2-3.28-7.29-6.04-11.99-7.63-13.51-4.78-29.72,2.7-35.13,15.74l-.04,.11c-.15,.32,.31,.63,.55,.37Z'/%3e%3c/g%3e%3cpath%20class='d'%20d='M246.7,141.54s-45.89-33.79-87.25-15.71c-41.36,18.08-12.08,29.13-12.08,29.13l39-19.62,60.33,6.21Z'/%3e%3c/g%3e%3c/svg%3e",h=({open:s,onClose:l})=>c.jsxRuntimeExports.jsxs(e.Dialog,{open:s,onClose:l,maxWidth:"sm",children:[c.jsxRuntimeExports.jsx(a.Image,{src:i,alt:"brain",maxWidth:100,marginY:3}),c.jsxRuntimeExports.jsx(e.Typography,{variant:"h5",textAlign:"center",children:"Time for a break?"}),c.jsxRuntimeExports.jsx(e.Typography,{textAlign:"center",children:"You have been using the Code for Life website for a while. Remember to take regular screen breaks to recharge those brain cells!"}),c.jsxRuntimeExports.jsx(e.Button,{onClick:l,autoFocus:!0,children:"Continue"})]});exports.InactiveDialog=r;exports.ScreenTimeDialog=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -13,10 +13,10 @@ import "js-cookie";
|
|
|
13
13
|
import "../schemas-DlOtf2vf.js";
|
|
14
14
|
import "../urls-DtHr1d3H.js";
|
|
15
15
|
import "react-router-dom";
|
|
16
|
-
import "../palette-
|
|
17
|
-
import "../auth-
|
|
16
|
+
import "../palette-CYwuLBW7.js";
|
|
17
|
+
import "../auth-C9qgLRQ4.js";
|
|
18
18
|
import "react-redux";
|
|
19
|
-
import { C as i } from "../Countdown-
|
|
19
|
+
import { C as i } from "../Countdown-D4s4yfhB.js";
|
|
20
20
|
import { I as r } from "../Image-D5jC9UoX.js";
|
|
21
21
|
const W = ({ open: s, onClose: e }) => /* @__PURE__ */ c.jsxs(t, { open: s, onClose: e, children: [
|
|
22
22
|
/* @__PURE__ */ c.jsx(l, { variant: "h5", textAlign: "center", children: "Where did you go? 👀" }),
|
package/dist/hooks/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../api-DIgp_6Vr.cjs"),e=require("../auth-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../api-DIgp_6Vr.cjs"),e=require("../auth-DjC4nR_8.cjs"),t=require("react"),u=require("../general-BPbbmkeX.cjs");function a(){return t.useRef(null)}exports.usePagination=s.usePagination;exports.useLocation=e.useLocation;exports.useNavigate=e.useNavigate;exports.useOAuth2=e.useOAuth2;exports.useOAuth2CodeChallenge=e.useOAuth2CodeChallenge;exports.useOAuth2State=e.useOAuth2State;exports.useParams=e.useParams;exports.useParamsRequired=e.useParamsRequired;exports.useSearchParams=e.useSearchParams;exports.useSession=e.useSession;exports.useSessionMetadata=e.useSessionMetadata;exports.useCountdown=u.useCountdown;exports.useEventListener=u.useEventListener;exports.useExternalScript=u.useExternalScript;exports.useInputRef=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/hooks/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as r } from "../api-Cs4Y-WeI.js";
|
|
2
|
-
import { f as n, e as i, d as f, c as m, b as p, h, i as c, g as d, a as l, u as x } from "../auth-
|
|
2
|
+
import { f as n, e as i, d as f, c as m, b as p, h, i as c, g as d, a as l, u as x } from "../auth-C9qgLRQ4.js";
|
|
3
3
|
import { useRef as e } from "react";
|
|
4
4
|
import { a as g, b as P, u as A } from "../general-CtTJPCJn.js";
|
|
5
5
|
function a() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-CeSfJrVB.cjs"),i=require("@mui/material"),B=require("./Image-mgT45r_B.cjs"),l=require("react"),E=require("react-router-dom"),j=require("@mui/icons-material"),u=require("./palette-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-CeSfJrVB.cjs"),i=require("@mui/material"),B=require("./Image-mgT45r_B.cjs"),l=require("react"),E=require("react-router-dom"),j=require("@mui/icons-material"),u=require("./palette-BnIdHKDE.cjs"),C=require("./auth-DjC4nR_8.cjs"),y=require("./LinkButton-C9y6XyQV.cjs"),b=require("yup"),_=require("./utils/schema.cjs.js"),m=({boxProps:s,...r})=>t.jsxRuntimeExports.jsx(i.Box,{...s,children:t.jsxRuntimeExports.jsx(i.Container,{...r})}),g=({open:s=!0,error:r=!1,onClose:p,children:e,bgcolor:n="secondary"})=>{const[c,a]=l.useState(s);if(l.useEffect(()=>{a(s)},[s]),!c)return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{});const x=u.palette[n].contrastText;return t.jsxRuntimeExports.jsx(m,{boxProps:{bgcolor:{secondary:"#ffd23b",tertiary:"#08bafc"}[n]},sx:{paddingY:"5px"},children:t.jsxRuntimeExports.jsxs(i.Stack,{direction:"row",alignItems:"center",gap:2,children:[r?t.jsxRuntimeExports.jsx(j.ErrorOutline,{htmlColor:x}):t.jsxRuntimeExports.jsx(j.InfoOutlined,{htmlColor:x}),t.jsxRuntimeExports.jsx(i.Typography,{variant:"body2",color:x,mb:0,children:e}),t.jsxRuntimeExports.jsx(i.IconButton,{style:{marginLeft:"auto"},onClick:()=>{a(!1),p!==void 0&&p()},children:t.jsxRuntimeExports.jsx(j.CloseOutlined,{htmlColor:x})})]})})},v=({children:s,session:r})=>{const{state:p}=E.useLocation();let{scroll:e,notifications:n}=p||{};return e=e||{x:0,y:0},n=n||[],l.useEffect(()=>{window.scroll(e.x,e.y)},[e.x,e.y]),t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:C.useSession(c=>{if(typeof s=="function"&&(s=s(c)),n.length){const a=l.Children.toArray(s);return n.forEach((x,R)=>{a.splice(x.index??R,0,t.jsxRuntimeExports.jsx(g,{...x.props}))}),a}return s},r)})},S=({header:s,subheader:r,textAlign:p="start",imageProps:e,button1Props:n,button2Props:c,bgcolor:a="primary"})=>{const x=u.palette[a].contrastText;return t.jsxRuntimeExports.jsx(m,{boxProps:{bgcolor:{primary:u.primary[500],secondary:u.secondary[500],tertiary:u.tertiary[500]}[a]},sx:{paddingY:0},children:t.jsxRuntimeExports.jsxs(i.Stack,{direction:"row",alignItems:"center",justifyContent:p,gap:2,children:[t.jsxRuntimeExports.jsxs(i.Stack,{py:{xs:"80px",md:e!==void 0?0:"100px"},textAlign:p,children:[t.jsxRuntimeExports.jsx(i.Typography,{variant:"h2",color:x,mb:r!==void 0?void 0:0,children:s}),r!==void 0&&t.jsxRuntimeExports.jsx(i.Typography,{color:x,variant:"h4",mb:n!==void 0?void 0:0,children:r}),t.jsxRuntimeExports.jsxs(i.Stack,{direction:"row",gap:2,children:[n!==void 0&&t.jsxRuntimeExports.jsx(y.LinkButton,{...n}),c!==void 0&&t.jsxRuntimeExports.jsx(y.LinkButton,{...c})]})]}),e!==void 0&&t.jsxRuntimeExports.jsx(B.Image,{...e,display:{xs:"none",md:"block"},maxWidth:"320px",marginLeft:"auto"})]})})},T=({header:s,tabs:r,originalPath:p,value:e=0})=>{const n=E.useParams(),c=E.useNavigate(),[a,x]=l.useState(e<0?0:e>=r.length?r.length-1:e),R=r.map(o=>o.label),q=r.map(o=>o.children),d=r.map(o=>o.path);return l.useEffect(()=>{x(e)},[e]),l.useEffect(()=>{const o=_.tryValidateSync(n,b.object({tab:b.string().oneOf(d).required()}))?.tab;o!==void 0&&x(d.indexOf(o))},[n,d]),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(m,{boxProps:{bgcolor:u.primary[500]},sx:{paddingY:"100px"},className:"flex-center",children:t.jsxRuntimeExports.jsx(i.Typography,{textAlign:"center",variant:"h2",style:{color:"white"},mb:0,children:s})}),t.jsxRuntimeExports.jsx(m,{boxProps:{bgcolor:u.primary[300]},sx:{paddingY:"6px"},className:"flex-center",children:t.jsxRuntimeExports.jsx(i.Tabs,{value:a,onChange:(o,h)=>{c(E.generatePath(p,{tab:d[h]}))},ScrollButtonComponent:({disabled:o,onClick:h,direction:f})=>t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:o===!1&&t.jsxRuntimeExports.jsx(i.IconButton,{onClick:h,style:{padding:0,[f==="left"?"marginRight":"marginLeft"]:"15px",color:"white"},children:f==="left"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsx(j.ChevronLeft,{})}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsx(j.ChevronRight,{})})})}),children:R.map(o=>t.jsxRuntimeExports.jsx(i.Tab,{disableRipple:!0,label:o},o))})}),q[a]]})},k=Object.freeze(Object.defineProperty({__proto__:null,Banner:S,Notification:g,Page:v,Section:m,TabBar:T},Symbol.toStringTag,{value:"Module"}));exports.Banner=S;exports.Notification=g;exports.Page=v;exports.Section=m;exports.TabBar=T;exports.index=k;
|
|
2
|
+
//# sourceMappingURL=index-CiWln8tI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-BgsynEGX.cjs","sources":["../src/components/page/Section.tsx","../src/components/page/Notification.tsx","../src/components/page/Page.tsx","../src/components/page/Banner.tsx","../src/components/page/TabBar.tsx"],"sourcesContent":["import {\n Box,\n type BoxProps,\n Container,\n type ContainerProps,\n} from \"@mui/material\"\nimport type { FC } from \"react\"\n\nexport interface SectionProps extends ContainerProps {\n boxProps?: Omit<BoxProps, \"children\">\n}\n\nconst Section: FC<SectionProps> = ({ boxProps, ...containerProps }) => {\n return (\n <Box {...boxProps}>\n <Container {...containerProps} />\n </Box>\n )\n}\n\nexport default Section\n","import {\n CloseOutlined as CloseOutlinedIcon,\n ErrorOutline as ErrorOutlineIcon,\n InfoOutlined as InfoOutlinedIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport { IconButton, Stack, Typography } from \"@mui/material\"\n\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface NotificationProps {\n open?: boolean\n error?: boolean\n onClose?: () => void\n children: ReactNode\n bgcolor?: \"secondary\" | \"tertiary\"\n}\n\nconst Notification: FC<NotificationProps> = ({\n open = true,\n error = false,\n onClose,\n children,\n bgcolor = \"secondary\",\n}) => {\n const [_open, _setOpen] = useState(open)\n\n useEffect(() => {\n _setOpen(open)\n }, [open])\n\n if (!_open) return <></>\n\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n secondary: \"#ffd23b\",\n tertiary: \"#08bafc\",\n }[bgcolor],\n }}\n sx={{ paddingY: \"5px\" }}\n >\n <Stack direction=\"row\" alignItems=\"center\" gap={2}>\n {error ? (\n <ErrorOutlineIcon htmlColor={contrastText} />\n ) : (\n <InfoOutlinedIcon htmlColor={contrastText} />\n )}\n <Typography variant=\"body2\" color={contrastText} mb={0}>\n {children}\n </Typography>\n <IconButton\n style={{ marginLeft: \"auto\" }}\n onClick={() => {\n _setOpen(false)\n if (onClose !== undefined) onClose()\n }}\n >\n <CloseOutlinedIcon htmlColor={contrastText} />\n </IconButton>\n </Stack>\n </Section>\n )\n}\n\nexport default Notification\n","import { Children, type JSX, useEffect } from \"react\"\nimport { type Location, useLocation } from \"react-router-dom\"\n\nimport Notification, { type NotificationProps } from \"./Notification\"\nimport {\n type SessionMetadata,\n type UseSessionChildren,\n type UseSessionChildrenFunction,\n type UseSessionOptions,\n useSession,\n} from \"../../hooks/auth\"\n\nexport type PageState = {\n notifications: Array<{\n index?: number\n props: NotificationProps\n }>\n scroll: { x: number; y: number }\n}\n\nexport interface PageProps<\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined,\n> {\n children: UseSessionChildren<SessionUserType>\n session?: UseSessionOptions<SessionUserType>\n}\n\nconst Page = <\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined = undefined,\n>({\n children,\n session,\n}: PageProps<SessionUserType>): JSX.Element => {\n const { state } = useLocation() as Location<null | Partial<PageState>>\n\n let { scroll, notifications } = state || {}\n scroll = scroll || { x: 0, y: 0 }\n notifications = notifications || []\n\n useEffect(() => {\n window.scroll(scroll.x, scroll.y)\n }, [scroll.x, scroll.y])\n\n return (\n <>\n {useSession((metadata?: SessionMetadata) => {\n if (typeof children === \"function\") {\n children = metadata\n ? (children as UseSessionChildrenFunction<true>)(metadata)\n : (children as UseSessionChildrenFunction<false>)(metadata)\n }\n\n if (notifications.length) {\n const childrenArray = Children.toArray(children)\n\n notifications.forEach((notification, index) => {\n void childrenArray.splice(\n notification.index ?? index,\n 0,\n <Notification {...notification.props} />,\n )\n })\n\n return childrenArray\n }\n\n return children\n }, session)}\n </>\n )\n}\n\nexport default Page\n","import { Stack, Typography } from \"@mui/material\"\n\nimport Image, { type ImageProps } from \"../Image\"\nimport { LinkButton, type LinkButtonProps } from \"../router\"\nimport { primary, secondary, tertiary } from \"../../theme/colors\"\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface BannerProps<\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n> {\n header: string\n subheader?: string\n textAlign?: \"start\" | \"center\"\n imageProps?: ImageProps\n button1Props?: LinkButtonProps<\"to\", Button1State>\n button2Props?: LinkButtonProps<\"to\", Button2State>\n bgcolor?: \"primary\" | \"secondary\" | \"tertiary\"\n}\n\nconst Banner = <\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n>({\n header,\n subheader,\n textAlign = \"start\",\n imageProps,\n button1Props,\n button2Props,\n bgcolor = \"primary\",\n}: BannerProps<Button1State, Button2State>) => {\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n primary: primary[500],\n secondary: secondary[500],\n tertiary: tertiary[500],\n }[bgcolor],\n }}\n sx={{ paddingY: 0 }}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n justifyContent={textAlign}\n gap={2}\n >\n <Stack\n py={{\n xs: \"80px\",\n md: imageProps !== undefined ? 0 : \"100px\",\n }}\n textAlign={textAlign}\n >\n <Typography\n variant=\"h2\"\n color={contrastText}\n mb={subheader !== undefined ? undefined : 0}\n >\n {header}\n </Typography>\n {subheader !== undefined && (\n <Typography\n color={contrastText}\n variant=\"h4\"\n mb={button1Props !== undefined ? undefined : 0}\n >\n {subheader}\n </Typography>\n )}\n <Stack direction=\"row\" gap={2}>\n {button1Props !== undefined && <LinkButton {...button1Props} />}\n {button2Props !== undefined && <LinkButton {...button2Props} />}\n </Stack>\n </Stack>\n {imageProps !== undefined && (\n <Image\n {...imageProps}\n display={{ xs: \"none\", md: \"block\" }}\n maxWidth=\"320px\"\n marginLeft=\"auto\"\n />\n )}\n </Stack>\n </Section>\n )\n}\n\nexport default Banner\n","import {\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport {\n IconButton,\n Tab,\n type TabScrollButtonProps,\n Tabs,\n Typography,\n} from \"@mui/material\"\nimport { object as YupObject, string as YupString } from \"yup\"\nimport { generatePath, useNavigate, useParams } from \"react-router-dom\"\n\nimport Section from \"./Section\"\nimport { primary } from \"../../theme/colors\"\nimport { tryValidateSync } from \"../../utils/schema\"\n\nexport interface TabBarProps {\n header: string\n tabs: Array<{\n label: string\n children: ReactNode\n path: string\n }>\n originalPath: string\n value?: number\n}\n\nconst TabBar: FC<TabBarProps> = ({ header, tabs, originalPath, value = 0 }) => {\n const params = useParams()\n const navigate = useNavigate()\n const [_value, _setValue] = useState(\n value < 0 ? 0 : value >= tabs.length ? tabs.length - 1 : value,\n )\n\n const labels = tabs.map(tab => tab.label)\n const children = tabs.map(tab => tab.children)\n const paths = tabs.map(tab => tab.path)\n\n useEffect(() => {\n _setValue(value)\n }, [value])\n\n useEffect(() => {\n const tab = tryValidateSync(\n params,\n YupObject({\n tab: YupString().oneOf(paths).required(),\n }),\n )?.tab\n\n if (tab !== undefined) {\n _setValue(paths.indexOf(tab))\n }\n }, [params, paths])\n\n return (\n <>\n <Section\n boxProps={{ bgcolor: primary[500] }}\n sx={{ paddingY: \"100px\" }}\n className=\"flex-center\"\n >\n <Typography\n textAlign=\"center\"\n variant=\"h2\"\n style={{ color: \"white\" }}\n mb={0}\n >\n {header}\n </Typography>\n </Section>\n <Section\n boxProps={{ bgcolor: primary[300] }}\n sx={{ paddingY: \"6px\" }}\n className=\"flex-center\"\n >\n <Tabs\n value={_value}\n onChange={(_, value: number) => {\n navigate(\n generatePath(originalPath, {\n tab: paths[value],\n }),\n )\n }}\n ScrollButtonComponent={({\n disabled,\n onClick,\n direction,\n }: TabScrollButtonProps) => {\n return (\n <>\n {disabled === false && (\n <IconButton\n onClick={onClick}\n style={{\n padding: 0,\n [direction === \"left\" ? \"marginRight\" : \"marginLeft\"]:\n \"15px\",\n color: \"white\",\n }}\n >\n {direction === \"left\" ? (\n <>\n <ChevronLeftIcon />\n </>\n ) : (\n <>\n <ChevronRightIcon />\n </>\n )}\n </IconButton>\n )}\n </>\n )\n }}\n >\n {labels.map(label => (\n <Tab disableRipple key={label} label={label} />\n ))}\n </Tabs>\n </Section>\n {children[_value]}\n </>\n )\n}\n\nexport default TabBar\n"],"names":["Section","boxProps","containerProps","jsx","Box","Container","Notification","open","error","onClose","children","bgcolor","_open","_setOpen","useState","useEffect","Fragment","contrastText","palette","Stack","ErrorOutlineIcon","InfoOutlinedIcon","Typography","IconButton","CloseOutlinedIcon","Page","session","state","useLocation","scroll","notifications","useSession","metadata","childrenArray","Children","notification","index","Banner","header","subheader","textAlign","imageProps","button1Props","button2Props","primary","secondary","tertiary","jsxs","LinkButton","Image","TabBar","tabs","originalPath","value","params","useParams","navigate","useNavigate","_value","_setValue","labels","tab","paths","tryValidateSync","YupObject","YupString","Tabs","_","generatePath","disabled","onClick","direction","ChevronLeftIcon","ChevronRightIcon","label","Tab"],"mappings":"0WAYMA,EAA4B,CAAC,CAAE,SAAAC,EAAU,GAAGC,KAE9CC,wBAACC,EAAAA,KAAK,GAAGH,EACP,iCAACI,YAAA,CAAW,G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MAAO,OAAA,EAGR,SAAAA,IAAc,OACbpE,EAAAA,kBAAAA,IAAAa,EAAAA,kBAAAA,SAAA,CACE,SAAAb,EAAAA,kBAAAA,IAACqE,EAAAA,YAAA,CAAA,CAAgB,EACnB,EAEArE,EAAAA,kBAAAA,IAAAa,6BAAA,CACE,SAAAb,wBAACsE,EAAAA,aAAA,CAAA,CAAiB,CAAA,CACpB,CAAA,CAAA,EAIR,EAIH,SAAAb,EAAO,IAAIc,GACVvE,EAAAA,kBAAAA,IAACwE,OAAI,cAAa,GAAa,MAAAD,CAAA,EAAPA,CAAqB,CAC9C,CAAA,CAAA,CACH,CAAA,EAEDhE,EAASgD,CAAM,CAAA,EAClB,CAEJ"}
|
|
1
|
+
{"version":3,"file":"index-CiWln8tI.cjs","sources":["../src/components/page/Section.tsx","../src/components/page/Notification.tsx","../src/components/page/Page.tsx","../src/components/page/Banner.tsx","../src/components/page/TabBar.tsx"],"sourcesContent":["import {\n Box,\n type BoxProps,\n Container,\n type ContainerProps,\n} from \"@mui/material\"\nimport type { FC } from \"react\"\n\nexport interface SectionProps extends ContainerProps {\n boxProps?: Omit<BoxProps, \"children\">\n}\n\nconst Section: FC<SectionProps> = ({ boxProps, ...containerProps }) => {\n return (\n <Box {...boxProps}>\n <Container {...containerProps} />\n </Box>\n )\n}\n\nexport default Section\n","import {\n CloseOutlined as CloseOutlinedIcon,\n ErrorOutline as ErrorOutlineIcon,\n InfoOutlined as InfoOutlinedIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport { IconButton, Stack, Typography } from \"@mui/material\"\n\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface NotificationProps {\n open?: boolean\n error?: boolean\n onClose?: () => void\n children: ReactNode\n bgcolor?: \"secondary\" | \"tertiary\"\n}\n\nconst Notification: FC<NotificationProps> = ({\n open = true,\n error = false,\n onClose,\n children,\n bgcolor = \"secondary\",\n}) => {\n const [_open, _setOpen] = useState(open)\n\n useEffect(() => {\n _setOpen(open)\n }, [open])\n\n if (!_open) return <></>\n\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n secondary: \"#ffd23b\",\n tertiary: \"#08bafc\",\n }[bgcolor],\n }}\n sx={{ paddingY: \"5px\" }}\n >\n <Stack direction=\"row\" alignItems=\"center\" gap={2}>\n {error ? (\n <ErrorOutlineIcon htmlColor={contrastText} />\n ) : (\n <InfoOutlinedIcon htmlColor={contrastText} />\n )}\n <Typography variant=\"body2\" color={contrastText} mb={0}>\n {children}\n </Typography>\n <IconButton\n style={{ marginLeft: \"auto\" }}\n onClick={() => {\n _setOpen(false)\n if (onClose !== undefined) onClose()\n }}\n >\n <CloseOutlinedIcon htmlColor={contrastText} />\n </IconButton>\n </Stack>\n </Section>\n )\n}\n\nexport default Notification\n","import { Children, type JSX, useEffect } from \"react\"\nimport { type Location, useLocation } from \"react-router-dom\"\n\nimport Notification, { type NotificationProps } from \"./Notification\"\nimport {\n type SessionMetadata,\n type UseSessionChildren,\n type UseSessionChildrenFunction,\n type UseSessionOptions,\n useSession,\n} from \"../../hooks/auth\"\n\nexport type PageState = {\n notifications: Array<{\n index?: number\n props: NotificationProps\n }>\n scroll: { x: number; y: number }\n}\n\nexport interface PageProps<\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined,\n> {\n children: UseSessionChildren<SessionUserType>\n session?: UseSessionOptions<SessionUserType>\n}\n\nconst Page = <\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined = undefined,\n>({\n children,\n session,\n}: PageProps<SessionUserType>): JSX.Element => {\n const { state } = useLocation() as Location<null | Partial<PageState>>\n\n let { scroll, notifications } = state || {}\n scroll = scroll || { x: 0, y: 0 }\n notifications = notifications || []\n\n useEffect(() => {\n window.scroll(scroll.x, scroll.y)\n }, [scroll.x, scroll.y])\n\n return (\n <>\n {useSession((metadata?: SessionMetadata) => {\n if (typeof children === \"function\") {\n children = metadata\n ? (children as UseSessionChildrenFunction<true>)(metadata)\n : (children as UseSessionChildrenFunction<false>)(metadata)\n }\n\n if (notifications.length) {\n const childrenArray = Children.toArray(children)\n\n notifications.forEach((notification, index) => {\n void childrenArray.splice(\n notification.index ?? index,\n 0,\n <Notification {...notification.props} />,\n )\n })\n\n return childrenArray\n }\n\n return children\n }, session)}\n </>\n )\n}\n\nexport default Page\n","import { Stack, Typography } from \"@mui/material\"\n\nimport Image, { type ImageProps } from \"../Image\"\nimport { LinkButton, type LinkButtonProps } from \"../router\"\nimport { primary, secondary, tertiary } from \"../../theme/colors\"\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface BannerProps<\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n> {\n header: string\n subheader?: string\n textAlign?: \"start\" | \"center\"\n imageProps?: ImageProps\n button1Props?: LinkButtonProps<\"to\", Button1State>\n button2Props?: LinkButtonProps<\"to\", Button2State>\n bgcolor?: \"primary\" | \"secondary\" | \"tertiary\"\n}\n\nconst Banner = <\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n>({\n header,\n subheader,\n textAlign = \"start\",\n imageProps,\n button1Props,\n button2Props,\n bgcolor = \"primary\",\n}: BannerProps<Button1State, Button2State>) => {\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n primary: primary[500],\n secondary: secondary[500],\n tertiary: tertiary[500],\n }[bgcolor],\n }}\n sx={{ paddingY: 0 }}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n justifyContent={textAlign}\n gap={2}\n >\n <Stack\n py={{\n xs: \"80px\",\n md: imageProps !== undefined ? 0 : \"100px\",\n }}\n textAlign={textAlign}\n >\n <Typography\n variant=\"h2\"\n color={contrastText}\n mb={subheader !== undefined ? undefined : 0}\n >\n {header}\n </Typography>\n {subheader !== undefined && (\n <Typography\n color={contrastText}\n variant=\"h4\"\n mb={button1Props !== undefined ? undefined : 0}\n >\n {subheader}\n </Typography>\n )}\n <Stack direction=\"row\" gap={2}>\n {button1Props !== undefined && <LinkButton {...button1Props} />}\n {button2Props !== undefined && <LinkButton {...button2Props} />}\n </Stack>\n </Stack>\n {imageProps !== undefined && (\n <Image\n {...imageProps}\n display={{ xs: \"none\", md: \"block\" }}\n maxWidth=\"320px\"\n marginLeft=\"auto\"\n />\n )}\n </Stack>\n </Section>\n )\n}\n\nexport default Banner\n","import {\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport {\n IconButton,\n Tab,\n type TabScrollButtonProps,\n Tabs,\n Typography,\n} from \"@mui/material\"\nimport { object as YupObject, string as YupString } from \"yup\"\nimport { generatePath, useNavigate, useParams } from \"react-router-dom\"\n\nimport Section from \"./Section\"\nimport { primary } from \"../../theme/colors\"\nimport { tryValidateSync } from \"../../utils/schema\"\n\nexport interface TabBarProps {\n header: string\n tabs: Array<{\n label: string\n children: ReactNode\n path: string\n }>\n originalPath: string\n value?: number\n}\n\nconst TabBar: FC<TabBarProps> = ({ header, tabs, originalPath, value = 0 }) => {\n const params = useParams()\n const navigate = useNavigate()\n const [_value, _setValue] = useState(\n value < 0 ? 0 : value >= tabs.length ? tabs.length - 1 : value,\n )\n\n const labels = tabs.map(tab => tab.label)\n const children = tabs.map(tab => tab.children)\n const paths = tabs.map(tab => tab.path)\n\n useEffect(() => {\n _setValue(value)\n }, [value])\n\n useEffect(() => {\n const tab = tryValidateSync(\n params,\n YupObject({\n tab: YupString().oneOf(paths).required(),\n }),\n )?.tab\n\n if (tab !== undefined) {\n _setValue(paths.indexOf(tab))\n }\n }, [params, paths])\n\n return (\n <>\n <Section\n boxProps={{ bgcolor: primary[500] }}\n sx={{ paddingY: \"100px\" }}\n className=\"flex-center\"\n >\n <Typography\n textAlign=\"center\"\n variant=\"h2\"\n style={{ color: \"white\" }}\n mb={0}\n >\n {header}\n </Typography>\n </Section>\n <Section\n boxProps={{ bgcolor: primary[300] }}\n sx={{ paddingY: \"6px\" }}\n className=\"flex-center\"\n >\n <Tabs\n value={_value}\n onChange={(_, value: number) => {\n navigate(\n generatePath(originalPath, {\n tab: paths[value],\n }),\n )\n }}\n ScrollButtonComponent={({\n disabled,\n onClick,\n direction,\n }: TabScrollButtonProps) => {\n return (\n <>\n {disabled === false && (\n <IconButton\n onClick={onClick}\n style={{\n padding: 0,\n [direction === \"left\" ? \"marginRight\" : \"marginLeft\"]:\n \"15px\",\n color: \"white\",\n }}\n >\n {direction === \"left\" ? (\n <>\n <ChevronLeftIcon />\n </>\n ) : (\n <>\n <ChevronRightIcon />\n </>\n )}\n </IconButton>\n )}\n </>\n )\n }}\n >\n {labels.map(label => (\n <Tab disableRipple key={label} label={label} />\n ))}\n </Tabs>\n </Section>\n {children[_value]}\n </>\n )\n}\n\nexport default TabBar\n"],"names":["Section","boxProps","containerProps","jsx","Box","Container","Notification","open","error","onClose","children","bgcolor","_open","_setOpen","useState","useEffect","Fragment","contrastText","palette","Stack","ErrorOutlineIcon","InfoOutlinedIcon","Typography","IconButton","CloseOutlinedIcon","Page","session","state","useLocation","scroll","notifications","useSession","metadata","childrenArray","Children","notification","index","Banner","header","subheader","textAlign","imageProps","button1Props","button2Props","primary","secondary","tertiary","jsxs","LinkButton","Image","TabBar","tabs","originalPath","value","params","useParams","navigate","useNavigate","_value","_setValue","labels","tab","paths","tryValidateSync","YupObject","YupString","Tabs","_","generatePath","disabled","onClick","direction","ChevronLeftIcon","ChevronRightIcon","label","Tab"],"mappings":"0WAYMA,EAA4B,CAAC,CAAE,SAAAC,EAAU,GAAGC,KAE9CC,wBAACC,EAAAA,KAAK,GAAGH,EACP,iCAACI,YAAA,CAAW,GAAGH,EAAgB,CAAA,CACjC,ECGEI,EAAsC,CAAC,CAC3C,KAAAC,EAAO,GACP,MAAAC,EAAQ,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E,SAAAb,EAAAA,kBAAAA,IAACqE,EAAAA,YAAA,CAAA,CAAgB,EACnB,EAEArE,EAAAA,kBAAAA,IAAAa,6BAAA,CACE,SAAAb,wBAACsE,EAAAA,aAAA,CAAA,CAAiB,CAAA,CACpB,CAAA,CAAA,EAIR,EAIH,SAAAb,EAAO,IAAIc,GACVvE,EAAAA,kBAAAA,IAACwE,OAAI,cAAa,GAAa,MAAAD,CAAA,EAAPA,CAAqB,CAC9C,CAAA,CAAA,CACH,CAAA,EAEDhE,EAASgD,CAAM,CAAA,EAClB,CAEJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Divider as C, buttonClasses as b, typographyClasses as y, listItemTextClasses as k, tabClasses as f, tableCellClasses as g, inputClasses as a, formHelperTextClasses as O, formLabelClasses as $, filledInputClasses as M, svgIconClasses as S, outlinedInputClasses as B, inputBaseClasses as d } from "@mui/material";
|
|
2
2
|
import { j as m } from "./jsx-runtime-Dpn_P65e.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { a as w, p as x } from "./palette-
|
|
4
|
+
import { a as w, p as x } from "./palette-CYwuLBW7.js";
|
|
5
5
|
const z = {
|
|
6
6
|
styleOverrides: {
|
|
7
7
|
root: {
|
|
@@ -569,4 +569,4 @@ export {
|
|
|
569
569
|
c as s,
|
|
570
570
|
n as t
|
|
571
571
|
};
|
|
572
|
-
//# sourceMappingURL=index-
|
|
572
|
+
//# sourceMappingURL=index-CkM7p7f8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CNtOlJ49.js","sources":["../src/theme/components/MuiAccordion.tsx","../src/theme/components/MuiAutocomplete.tsx","../src/utils/theme.tsx","../src/theme/typography.ts","../src/theme/components/MuiButton.ts","../src/theme/spacing.ts","../src/theme/components/MuiCardActions.tsx","../src/theme/components/MuiCheckbox.ts","../src/theme/components/_components.ts","../src/theme/components/MuiContainer.ts","../src/theme/components/MuiDialog.tsx","../src/theme/components/MuiFormControlLabel.ts","../src/theme/components/MuiFormHelperText.ts","../src/theme/components/MuiGrid2.ts","../src/theme/components/MuiInputBase.ts","../src/theme/components/MuiLink.ts","../src/theme/components/MuiList.ts","../src/theme/components/MuiListItemText.ts","../src/theme/components/MuiMenu.ts","../src/theme/components/MuiMenuItem.ts","../src/theme/components/MuiSelect.ts","../src/theme/components/MuiTab.ts","../src/theme/components/MuiTable.ts","../src/theme/components/MuiTableBody.ts","../src/theme/components/MuiTableHead.ts","../src/theme/components/MuiTabs.ts","../src/theme/components/MuiTextField.ts","../src/theme/components/MuiToolbar.ts","../src/theme/components/MuiTypography.ts","../src/theme/components/index.ts"],"sourcesContent":["import type Components from \"./_components\"\n\nconst MuiAccordion: Components[\"MuiAccordion\"] = {\n styleOverrides: {\n root: {\n borderRadius: \"0px !important\",\n margin: \"0px !important\",\n width: \"100%\",\n },\n },\n}\n\nexport default MuiAccordion\n","import type Components from \"./_components\"\n\nconst MuiAutocomplete: Components[\"MuiAutocomplete\"] = {\n styleOverrides: {\n root: {\n width: \"100%\",\n },\n },\n}\n\nexport default MuiAutocomplete\n","import { Divider, type DividerProps, type ThemeOptions } from \"@mui/material\"\nimport type { CommonProps } from \"@mui/material/OverridableComponent\"\nimport { type ReactElement } from \"react\"\n\nimport _components from \"../theme/components\"\n\nexport function insertDividerBetweenElements({\n elements,\n dividerProps,\n}: {\n elements: ReactElement[]\n dividerProps?: DividerProps\n}): ReactElement[] {\n return elements.map((element, index) => (\n <>\n {element}\n {index !== elements.length - 1 ? (\n <Divider {...dividerProps} />\n ) : undefined}\n </>\n ))\n}\n\nexport function getStyleOverrides(\n ownerState: CommonProps,\n componentKey: keyof NonNullable<ThemeOptions[\"components\"]>,\n muiClassName: string = \"root\",\n components: ThemeOptions[\"components\"] = _components,\n): object {\n if (components !== undefined) {\n const component = components[componentKey]\n\n if (\n component !== undefined &&\n \"styleOverrides\" in component &&\n typeof component.styleOverrides === \"object\" &&\n muiClassName in component.styleOverrides\n ) {\n const muiClass = (component.styleOverrides as Record<string, any>)[\n muiClassName\n ] as object\n\n switch (typeof muiClass) {\n case \"function\":\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n return muiClass({ ownerState }) as object\n case \"object\":\n return muiClass\n }\n }\n }\n\n return {}\n}\n\nexport function getClassNames(props: CommonProps): string[] {\n return props.className?.split(\" \") ?? []\n}\n\nexport function includesClassNames(\n propsOrClassNames: CommonProps | string[],\n includes: string[],\n): boolean {\n const classNames = Array.isArray(propsOrClassNames)\n ? propsOrClassNames\n : getClassNames(propsOrClassNames)\n\n return includes.every(className => classNames.includes(className))\n}\n\nexport function matchClassNames(\n propsOrClassNames: CommonProps | string[],\n pattern: string | RegExp,\n): RegExpMatchArray[] {\n const classNames = Array.isArray(propsOrClassNames)\n ? propsOrClassNames\n : getClassNames(propsOrClassNames)\n\n return classNames\n .map(className => className.match(pattern))\n .filter(match => match !== null)\n .map(match => match)\n}\n","import {\n type CSSProperties,\n type TypographyOptions,\n} from \"@mui/material/styles/createTypography\"\n\n// Pseudo typography variant for all form text.\nexport const form: CSSProperties = {\n fontFamily: '\"Inter\"',\n fontSize: \"14px !important\",\n fontWeight: 600,\n margin: 0,\n marginBottom: \"12px\",\n letterSpacing: 0,\n}\n\n// TODO: assess if line-height is needed.\n// Doesn't play well with responsiveFontSizes.\n// https://mui.com/material-ui/customization/theming/#responsivefontsizes-theme-options-theme\n\nconst typography: TypographyOptions = {\n h1: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"60px\",\n // lineHeight: '60px',\n marginBottom: \"24px\",\n letterSpacing: 0,\n },\n h2: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"55px\",\n // lineHeight: '55px',\n marginBottom: \"22px\",\n letterSpacing: 0,\n },\n h3: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"45px\",\n // lineHeight: '47px',\n marginBottom: \"20px\",\n letterSpacing: 0,\n },\n h4: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"30px\",\n // lineHeight: '38px',\n marginBottom: \"18px\",\n letterSpacing: 0,\n },\n h5: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"25px\",\n // lineHeight: '32px',\n marginBottom: \"16px\",\n letterSpacing: 0,\n },\n h6: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"21px\",\n // lineHeight: '26px',\n marginBottom: \"10px\",\n letterSpacing: 0,\n },\n body1: {\n color: \"#383b3b\",\n fontFamily: '\"Inter\"',\n fontWeight: 500,\n fontSize: \"1.07rem !important\",\n // lineHeight: '22px',\n marginBottom: \"16px\",\n letterSpacing: 0,\n },\n body2: {\n color: \"#383b3b\",\n fontFamily: '\"Inter\"',\n fontWeight: 500,\n fontSize: \"0.92rem !important\",\n // lineHeight: '20px',\n marginBottom: \"14px\",\n letterSpacing: 0,\n },\n button: {\n fontFamily: '\"Inter\"',\n fontSize: \"15px\",\n fontWeight: 600,\n letterSpacing: 0,\n },\n}\n\nexport default typography\n","import { buttonClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nconst MuiButton: Components[\"MuiButton\"] = {\n defaultProps: {\n variant: \"contained\",\n size: \"medium\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n color: \"black\",\n textTransform: \"none\",\n textAlign: \"center\",\n borderRadius: \"0px\",\n padding: \"11px 12px\",\n height: \"42px\",\n whiteSpace: \"nowrap\",\n width: \"fit-content\",\n minWidth: \"150px\",\n boxShadow: \"none\",\n ...(ownerState.size === \"small\" && {\n height: \"27px\",\n padding: \"4.5px 9px\",\n letterSpacing: \"0\",\n }),\n ...(includesClassNames(ownerState, [\"body\"]) && {\n marginBottom: typography.body1?.marginBottom,\n }),\n }),\n contained: ({ ownerState }) => ({\n backgroundColor: \"#ffd23b\",\n \"&:hover\": {\n backgroundColor: \"#ffc709\",\n boxShadow: [\n \"0px 6px 10px 0px rgba(0, 0, 0, 0.14)\",\n \"0px 1px 18px 0px rgba(0, 0, 0, 0.12)\",\n \"0px 3px 5px 0px rgba(0, 0, 0, 0.2);\",\n ].join(),\n },\n [`&.${buttonClasses.disabled}`]: {\n backgroundColor: \"#ffe382\",\n color: \"#7A5F01\",\n },\n ...(includesClassNames(ownerState, [\"alert\"]) && {\n color: \"white\",\n backgroundColor: \"#ff0000\",\n \"&:hover\": {\n backgroundColor: \"#df0531\",\n },\n [`&.${buttonClasses.disabled}`]: {\n backgroundColor: \"#E76A6A\",\n color: \"white\",\n },\n }),\n }),\n outlined: {\n border: \"2px solid #eab502\",\n \"&:hover\": {\n border: \"2px solid #eab502\",\n backgroundColor: \"transparent\",\n textDecoration: \"underline\",\n },\n },\n },\n}\n\nexport default MuiButton\n","export default function spacing(\n factor: number,\n important: boolean = false,\n): string {\n let spacing = `${8 * factor}px`\n if (important) spacing += \" !important\"\n return spacing\n}\n","import type Components from \"./_components\"\nimport spacing from \"../spacing\"\n\nconst MuiCardActions: Components[\"MuiCardActions\"] = {\n styleOverrides: {\n root: {\n padding: spacing(2),\n },\n },\n}\n\nexport default MuiCardActions\n","import type Components from \"./_components\"\n\nconst MuiCheckbox: Components[\"MuiCheckbox\"] = {\n styleOverrides: {\n root: {\n paddingLeft: \"0px\",\n marginLeft: \"-2px\",\n },\n },\n}\n\nexport default MuiCheckbox\n","import {\n type CSSObject,\n type ComponentsOverrides,\n type ComponentsPropsList,\n type Theme,\n type ThemeOptions,\n} from \"@mui/material\"\nimport type { CommonProps } from \"@mui/material/OverridableComponent\"\nimport type { OverridesStyleRules } from \"@mui/material/styles/overrides\"\nimport { type TypographyOptions } from \"@mui/material/styles/createTypography\"\n\nimport {\n getClassNames,\n includesClassNames,\n matchClassNames,\n} from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nexport default interface Components\n extends NonNullable<ThemeOptions[\"components\"]> {}\n\nexport type StyleOverridesWithRoot<\n Component extends keyof ComponentsOverrides<Theme>,\n> = ComponentsOverrides<Theme>[Component] & {\n root: OverridesStyleRules<\"root\", Component, Theme>[\"root\"]\n}\n\nexport type OwnerState<ComponentName extends keyof ComponentsPropsList> =\n ComponentsPropsList[ComponentName] & Record<string, unknown>\n\nexport function getFlexStyleOverrides(props: CommonProps): CSSObject {\n const styleOverrides: CSSObject = {}\n\n const classNames = getClassNames(props)\n\n if (classNames.some(className => className.startsWith(\"flex-\"))) {\n styleOverrides.display = \"flex\"\n if (includesClassNames(classNames, [\"flex-center\"])) {\n styleOverrides.justifyContent = \"center\"\n styleOverrides.alignItems = \"center\"\n } else if (includesClassNames(classNames, [\"flex-center-x\"])) {\n styleOverrides.justifyContent = \"center\"\n styleOverrides.alignItems = \"start\"\n } else if (includesClassNames(classNames, [\"flex-center-y\"])) {\n styleOverrides.justifyContent = \"start\"\n styleOverrides.alignItems = \"center\"\n } else if (includesClassNames(classNames, [\"flex-end\"])) {\n styleOverrides.justifyContent = \"end\"\n styleOverrides.alignItems = \"end\"\n } else if (includesClassNames(classNames, [\"flex-end-x\"])) {\n styleOverrides.justifyContent = \"end\"\n styleOverrides.alignItems = \"start\"\n } else if (includesClassNames(classNames, [\"flex-end-y\"])) {\n styleOverrides.justifyContent = \"start\"\n styleOverrides.alignItems = \"end\"\n }\n }\n\n return styleOverrides\n}\n\nexport function getFontStyleOverrides(props: CommonProps): CSSObject {\n let styleOverrides: CSSObject = {}\n\n const classNames = getClassNames(props)\n\n if (includesClassNames(classNames, [\"nowrap-ellipsis\"])) {\n styleOverrides.whiteSpace = \"nowrap\"\n styleOverrides.overflow = \"hidden\"\n styleOverrides.textOverflow = \"ellipsis\"\n }\n\n ;[\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"body1\", \"body2\"]\n .filter(className => className in typography)\n .forEach(className => {\n const typographyClass = typography[\n className as keyof TypographyOptions\n ] as CSSObject\n\n if (includesClassNames(classNames, [className])) {\n styleOverrides = { ...styleOverrides, ...typographyClass }\n }\n\n matchClassNames(classNames, new RegExp(`^${className}-(\\\\w+)$`)).forEach(\n match => {\n const prop = match[1]\n if (prop in typographyClass) {\n styleOverrides[prop] = typographyClass[prop]\n }\n },\n )\n })\n\n return styleOverrides\n}\n","import type Components from \"./_components\"\nimport { getFlexStyleOverrides } from \"./_components\"\nimport spacing from \"../spacing\"\n\nconst MuiContainer: Components[\"MuiContainer\"] = {\n defaultProps: {\n maxWidth: \"lg\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...getFlexStyleOverrides(ownerState),\n paddingLeft: spacing(2, true),\n paddingRight: spacing(2, true),\n padding: spacing(7),\n }),\n },\n}\n\nexport default MuiContainer\n","import type Components from \"./_components\"\n\nconst MuiDialog: Components[\"MuiDialog\"] = {\n defaultProps: {\n maxWidth: \"sm\",\n },\n styleOverrides: {\n paper: {\n borderRadius: \"0px !important\",\n padding: \"24px\",\n alignItems: \"center\",\n },\n },\n}\n\nexport default MuiDialog\n","import { typographyClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { form } from \"../typography\"\n\nconst MuiFormControlLabel: Components[\"MuiFormControlLabel\"] = {\n styleOverrides: {\n root: {\n [`.${typographyClasses.root}`]: {\n ...form,\n marginBottom: 0,\n },\n margin: 0,\n },\n },\n}\n\nexport default MuiFormControlLabel\n","import type Components from \"./_components\"\nimport { form } from \"../typography\"\n\nconst MuiFormHelperText: Components[\"MuiFormHelperText\"] = {\n styleOverrides: {\n root: {\n ...form,\n },\n },\n}\n\nexport default MuiFormHelperText\n","import type Components from \"./_components\"\nimport { getFlexStyleOverrides } from \"./_components\"\n\nconst MuiGrid2: Components[\"MuiGrid2\"] = {\n defaultProps: {\n disableEqualOverflow: true,\n // padding: 0 // TODO: normalize padding.\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...getFlexStyleOverrides(ownerState),\n }),\n },\n}\n\nexport default MuiGrid2\n","import type Components from \"./_components\"\nimport typography from \"../typography\"\n\nconst MuiInputBase: Components[\"MuiInputBase\"] = {\n styleOverrides: {\n root: {\n backgroundColor: \"white\",\n marginBottom: 0,\n color: typography.body1?.color,\n },\n },\n}\n\nexport default MuiInputBase\n","import type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nconst MuiLink: Components[\"MuiLink\"] = {\n defaultProps: {\n underline: \"none\", // BUG: if not set, MUI fails to run.\n color: \"inherit\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n cursor: \"pointer\",\n ...(includesClassNames(ownerState, [\"no-decor\"])\n ? {\n \":hover\": {\n textDecoration: \"underline\",\n },\n }\n : {\n textDecoration: \"underline\",\n \":hover\": {\n fontWeight: \"bold\",\n },\n }),\n ...(includesClassNames(ownerState, [\"back-to\"]) && {\n textDecoration: \"none\",\n display: \"inline-block\",\n marginBottom: typography.body1?.marginBottom,\n \":hover\": {\n fontWeight: \"bold\",\n textDecoration: \"underline\",\n },\n \":before\": {\n content: '\"< Back to \"',\n },\n }),\n }),\n },\n}\n\nexport default MuiLink\n","import type Components from \"./_components\"\n\nconst MuiList: Components[\"MuiList\"] = {\n styleOverrides: {\n root: {\n paddingTop: 0,\n paddingBottom: 0,\n },\n },\n}\n\nexport default MuiList\n","import { listItemTextClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiListItemText: Components[\"MuiListItemText\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(includesClassNames(ownerState, [\"last\"]) && {\n [`.${listItemTextClasses.primary}`]: {\n marginBottom: 0,\n },\n }),\n }),\n },\n}\n\nexport default MuiListItemText\n","import type Components from \"./_components\"\n\nconst MuiMenu: Components[\"MuiMenu\"] = {\n styleOverrides: {\n paper: {\n borderRadius: 0,\n },\n list: {\n padding: 0,\n },\n },\n}\n\nexport default MuiMenu\n","import type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiMenuItem: Components[\"MuiMenuItem\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(includesClassNames(ownerState, [\"header\"]) && {\n pointerEvents: \"none\",\n fontWeight: \"bold\",\n }),\n }),\n },\n}\n\nexport default MuiMenuItem\n","import type Components from \"./_components\"\nimport { type StyleOverridesWithRoot } from \"./_components\"\n\nconst MuiSelect: Components[\"MuiSelect\"] = {\n defaultProps: {\n color: \"black\",\n },\n\n styleOverrides: {\n root: {\n borderRadius: \"0px\",\n },\n } as StyleOverridesWithRoot<\"MuiSelect\">,\n}\n\nexport default MuiSelect\n","import { tabClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { primary } from \"../colors\"\n\nconst MuiTab: Components[\"MuiTab\"] = {\n styleOverrides: {\n root: {\n textTransform: \"none\",\n fontSize: \"16px\",\n fontWeight: 600,\n minWidth: \"150px\",\n border: \"2px solid white\",\n [`&.${tabClasses.selected}`]: {\n color: primary[300],\n backgroundColor: \"white\",\n cursor: \"default\",\n },\n [`:not(.${tabClasses.selected})`]: {\n color: \"white\",\n \":hover\": {\n textDecoration: \"underline\",\n },\n },\n },\n },\n}\n\nexport default MuiTab\n","import { tableCellClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nconst MuiTable: Components[\"MuiTable\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n borderStyle: \"hidden\",\n overflowX: \"auto\",\n [`.${tableCellClasses.root}`]: {\n border: \"2px solid white\",\n },\n ...(includesClassNames(ownerState, [\"text\"]) && {\n borderStyle: \"unset\",\n display: \"block\",\n [`.${tableCellClasses.root}`]: {\n border: \"1px solid #DDD\",\n },\n }),\n ...(includesClassNames(ownerState, [\"body\"]) && {\n marginBottom: typography.body1?.marginBottom,\n }),\n }),\n },\n}\n\nexport default MuiTable\n","import type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiTableBody: Components[\"MuiTableBody\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n backgroundColor: \"#F1ECEC\",\n ...(includesClassNames(ownerState, [\"text\"]) && {\n backgroundColor: \"white\",\n }),\n }),\n },\n}\n\nexport default MuiTableBody\n","import { tableCellClasses, typographyClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiTableHead: Components[\"MuiTableHead\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n backgroundColor: \"#6E7171\",\n ...(includesClassNames(ownerState, [\"light\"]) && {\n backgroundColor: \"#9A9C9E\",\n }),\n [`.${typographyClasses.root}`]: {\n color: \"white\",\n fontWeight: 600,\n marginBottom: 0,\n },\n [`.${tableCellClasses.head}`]: {\n color: \"white\",\n fontWeight: 600,\n },\n }),\n },\n}\n\nexport default MuiTableHead\n","import { tabClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\n\nconst MuiTabs: Components[\"MuiTabs\"] = {\n defaultProps: {\n variant: \"scrollable\",\n scrollButtons: true,\n allowScrollButtonsMobile: true,\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(ownerState !== undefined && // NOTE: this is a bug with MUI\n [undefined, \"horizontal\"].includes(ownerState.orientation) && {\n [`.${tabClasses.root}:not(:last-of-type)`]: {\n marginRight: \"30px\",\n },\n }),\n }),\n indicator: {\n display: \"none\",\n },\n },\n}\n\nexport default MuiTabs\n","import {\n filledInputClasses,\n formHelperTextClasses,\n formLabelClasses,\n inputBaseClasses,\n inputClasses,\n outlinedInputClasses,\n svgIconClasses,\n} from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport palette from \"../palette\"\nimport typography from \"../typography\"\n\nconst MuiTextField: Components[\"MuiTextField\"] = {\n defaultProps: {\n size: \"small\",\n variant: \"filled\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n width: \"100%\",\n backgroundColor: \"transparent\",\n [`& > .${inputBaseClasses.root}`]: {\n ...(ownerState.disabled\n ? {\n [`.${inputBaseClasses.disabled}`]: {\n color: `${typography.body1!.color} !important`,\n \"-webkit-text-fill-color\": \"unset\",\n },\n border: \"0px !important\",\n borderRadius: \"0px !important\",\n // @ts-expect-error value is assignable\n backgroundColor: `${palette.info!.main} !important`,\n }\n : {\n border: \"1px solid black !important\",\n borderRadius: \"0px !important\",\n backgroundColor: \"white !important\",\n }),\n },\n [`& > .${inputBaseClasses.root}.${inputBaseClasses.error}`]: {\n // @ts-expect-error value is assignable\n border: `1px solid ${palette.error!.main} !important`,\n },\n [`& .${outlinedInputClasses.root}.${inputClasses.focused} > fieldset`]: {\n borderColor: \"black !important\",\n },\n [`.${svgIconClasses.root}`]: {\n color: `${typography.body1!.color} !important`,\n },\n [`.${filledInputClasses.root}::after`]: {\n borderColor: `${typography.body1!.color} !important`,\n },\n [`.${formLabelClasses.root}`]: {\n color: `${typography.body1!.color} !important`,\n },\n [`.${formHelperTextClasses.root}`]: {\n fontSize: \"12px !important\",\n },\n ...(ownerState.multiline === true && {\n ...((includesClassNames(ownerState, [\"resize\"]) ||\n includesClassNames(ownerState, [\"resize-both\"])) && {\n width: \"auto\",\n [`.${inputClasses.inputMultiline}`]: {\n resize: \"both\",\n },\n }),\n ...(includesClassNames(ownerState, [\"resize-horizontal\"]) && {\n width: \"auto\",\n [`.${inputClasses.inputMultiline}`]: {\n resize: \"horizontal\",\n },\n }),\n ...(includesClassNames(ownerState, [\"resize-vertical\"]) && {\n [`.${inputClasses.inputMultiline}`]: {\n resize: \"vertical\",\n },\n }),\n }),\n }),\n },\n}\n\nexport default MuiTextField\n","import type Components from \"./_components\"\n\nconst MuiToolbar: Components[\"MuiToolbar\"] = {\n styleOverrides: {\n root: {\n padding: \"15px 0px !important\",\n },\n },\n}\n\nexport default MuiToolbar\n","import type Components from \"./_components\"\nimport { getFontStyleOverrides } from \"./_components\"\n\nconst MuiTypography: Components[\"MuiTypography\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...getFontStyleOverrides(ownerState),\n }),\n },\n}\n\nexport default MuiTypography\n","import { type ThemeOptions } from \"@mui/material\"\n\nimport MuiAccordion from \"./MuiAccordion\"\nimport MuiAutocomplete from \"./MuiAutocomplete\"\nimport MuiButton from \"./MuiButton\"\nimport MuiCardActions from \"./MuiCardActions\"\nimport MuiCheckbox from \"./MuiCheckbox\"\nimport MuiContainer from \"./MuiContainer\"\nimport MuiDialog from \"./MuiDialog\"\nimport MuiFormControlLabel from \"./MuiFormControlLabel\"\nimport MuiFormHelperText from \"./MuiFormHelperText\"\nimport MuiGrid2 from \"./MuiGrid2\"\nimport MuiInputBase from \"./MuiInputBase\"\nimport MuiLink from \"./MuiLink\"\nimport MuiList from \"./MuiList\"\nimport MuiListItemText from \"./MuiListItemText\"\nimport MuiMenu from \"./MuiMenu\"\nimport MuiMenuItem from \"./MuiMenuItem\"\nimport MuiSelect from \"./MuiSelect\"\nimport MuiTab from \"./MuiTab\"\nimport MuiTable from \"./MuiTable\"\nimport MuiTableBody from \"./MuiTableBody\"\nimport MuiTableHead from \"./MuiTableHead\"\nimport MuiTabs from \"./MuiTabs\"\nimport MuiTextField from \"./MuiTextField\"\nimport MuiToolbar from \"./MuiToolbar\"\nimport MuiTypography from \"./MuiTypography\"\n\nconst components: ThemeOptions[\"components\"] = {\n MuiAccordion,\n MuiAutocomplete,\n MuiButton,\n MuiCardActions,\n MuiCheckbox,\n MuiContainer,\n MuiDialog,\n MuiFormControlLabel,\n MuiFormHelperText,\n MuiGrid2,\n MuiInputBase,\n MuiLink,\n MuiList,\n MuiListItemText,\n MuiMenu,\n MuiMenuItem,\n MuiSelect,\n MuiTab,\n MuiTable,\n MuiTableBody,\n MuiTableHead,\n MuiTabs,\n MuiTextField,\n MuiToolbar,\n MuiTypography,\n}\n\nexport default components\n"],"names":["MuiAccordion","MuiAutocomplete","insertDividerBetweenElements","elements","dividerProps","element","index","jsxs","Fragment","Divider","getStyleOverrides","ownerState","componentKey","muiClassName","components","_components","component","muiClass","getClassNames","props","includesClassNames","propsOrClassNames","includes","classNames","className","matchClassNames","pattern","match","form","typography","MuiButton","buttonClasses","spacing","factor","important","MuiCardActions","MuiCheckbox","getFlexStyleOverrides","styleOverrides","getFontStyleOverrides","typographyClass","prop","MuiContainer","MuiDialog","MuiFormControlLabel","typographyClasses","MuiFormHelperText","MuiGrid2","MuiInputBase","MuiLink","MuiList","MuiListItemText","listItemTextClasses","MuiMenu","MuiMenuItem","MuiSelect","MuiTab","tabClasses","primary","MuiTable","tableCellClasses","MuiTableBody","MuiTableHead","MuiTabs","MuiTextField","inputBaseClasses","palette","outlinedInputClasses","inputClasses","svgIconClasses","filledInputClasses","formLabelClasses","formHelperTextClasses","MuiToolbar","MuiTypography"],"mappings":";;;;AAEA,MAAMA,IAA2C;AAAA,EAC/C,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ,GCRMC,IAAiD;AAAA,EACrD,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ;ACFO,SAASC,GAA6B;AAAA,EAC3C,UAAAC;AAAA,EACA,cAAAC;AACF,GAGmB;AACjB,SAAOD,EAAS,IAAI,CAACE,GAASC,MAC5BC,gBAAAA,OAAAC,EAAAA,UAAA,EACG,UAAA;AAAA,IAAAH;AAAA,IACAC,MAAUH,EAAS,SAAS,0BAC1BM,GAAA,EAAS,GAAGL,GAAc,IACzB;AAAA,EAAA,EAAA,CACN,CACD;AACH;AAEO,SAASM,GACdC,GACAC,GACAC,IAAuB,QACvBC,IAAyCC,IACjC;AACR,MAAID,MAAe,QAAW;AAC5B,UAAME,IAAYF,EAAWF,CAAY;AAEzC,QACEI,MAAc,UACd,oBAAoBA,KACpB,OAAOA,EAAU,kBAAmB,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,cAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAS;AAAA,EACA,eAAAC;AACF;"}
|
|
1
|
+
{"version":3,"file":"index-CkM7p7f8.js","sources":["../src/theme/components/MuiAccordion.tsx","../src/theme/components/MuiAutocomplete.tsx","../src/utils/theme.tsx","../src/theme/typography.ts","../src/theme/components/MuiButton.ts","../src/theme/spacing.ts","../src/theme/components/MuiCardActions.tsx","../src/theme/components/MuiCheckbox.ts","../src/theme/components/_components.ts","../src/theme/components/MuiContainer.ts","../src/theme/components/MuiDialog.tsx","../src/theme/components/MuiFormControlLabel.ts","../src/theme/components/MuiFormHelperText.ts","../src/theme/components/MuiGrid2.ts","../src/theme/components/MuiInputBase.ts","../src/theme/components/MuiLink.ts","../src/theme/components/MuiList.ts","../src/theme/components/MuiListItemText.ts","../src/theme/components/MuiMenu.ts","../src/theme/components/MuiMenuItem.ts","../src/theme/components/MuiSelect.ts","../src/theme/components/MuiTab.ts","../src/theme/components/MuiTable.ts","../src/theme/components/MuiTableBody.ts","../src/theme/components/MuiTableHead.ts","../src/theme/components/MuiTabs.ts","../src/theme/components/MuiTextField.ts","../src/theme/components/MuiToolbar.ts","../src/theme/components/MuiTypography.ts","../src/theme/components/index.ts"],"sourcesContent":["import type Components from \"./_components\"\n\nconst MuiAccordion: Components[\"MuiAccordion\"] = {\n styleOverrides: {\n root: {\n borderRadius: \"0px !important\",\n margin: \"0px !important\",\n width: \"100%\",\n },\n },\n}\n\nexport default MuiAccordion\n","import type Components from \"./_components\"\n\nconst MuiAutocomplete: Components[\"MuiAutocomplete\"] = {\n styleOverrides: {\n root: {\n width: \"100%\",\n },\n },\n}\n\nexport default MuiAutocomplete\n","import { Divider, type DividerProps, type ThemeOptions } from \"@mui/material\"\nimport type { CommonProps } from \"@mui/material/OverridableComponent\"\nimport { type ReactElement } from \"react\"\n\nimport _components from \"../theme/components\"\n\nexport function insertDividerBetweenElements({\n elements,\n dividerProps,\n}: {\n elements: ReactElement[]\n dividerProps?: DividerProps\n}): ReactElement[] {\n return elements.map((element, index) => (\n <>\n {element}\n {index !== elements.length - 1 ? (\n <Divider {...dividerProps} />\n ) : undefined}\n </>\n ))\n}\n\nexport function getStyleOverrides(\n ownerState: CommonProps,\n componentKey: keyof NonNullable<ThemeOptions[\"components\"]>,\n muiClassName: string = \"root\",\n components: ThemeOptions[\"components\"] = _components,\n): object {\n if (components !== undefined) {\n const component = components[componentKey]\n\n if (\n component !== undefined &&\n \"styleOverrides\" in component &&\n typeof component.styleOverrides === \"object\" &&\n muiClassName in component.styleOverrides\n ) {\n const muiClass = (component.styleOverrides as Record<string, any>)[\n muiClassName\n ] as object\n\n switch (typeof muiClass) {\n case \"function\":\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n return muiClass({ ownerState }) as object\n case \"object\":\n return muiClass\n }\n }\n }\n\n return {}\n}\n\nexport function getClassNames(props: CommonProps): string[] {\n return props.className?.split(\" \") ?? []\n}\n\nexport function includesClassNames(\n propsOrClassNames: CommonProps | string[],\n includes: string[],\n): boolean {\n const classNames = Array.isArray(propsOrClassNames)\n ? propsOrClassNames\n : getClassNames(propsOrClassNames)\n\n return includes.every(className => classNames.includes(className))\n}\n\nexport function matchClassNames(\n propsOrClassNames: CommonProps | string[],\n pattern: string | RegExp,\n): RegExpMatchArray[] {\n const classNames = Array.isArray(propsOrClassNames)\n ? propsOrClassNames\n : getClassNames(propsOrClassNames)\n\n return classNames\n .map(className => className.match(pattern))\n .filter(match => match !== null)\n .map(match => match)\n}\n","import {\n type CSSProperties,\n type TypographyOptions,\n} from \"@mui/material/styles/createTypography\"\n\n// Pseudo typography variant for all form text.\nexport const form: CSSProperties = {\n fontFamily: '\"Inter\"',\n fontSize: \"14px !important\",\n fontWeight: 600,\n margin: 0,\n marginBottom: \"12px\",\n letterSpacing: 0,\n}\n\n// TODO: assess if line-height is needed.\n// Doesn't play well with responsiveFontSizes.\n// https://mui.com/material-ui/customization/theming/#responsivefontsizes-theme-options-theme\n\nconst typography: TypographyOptions = {\n h1: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"60px\",\n // lineHeight: '60px',\n marginBottom: \"24px\",\n letterSpacing: 0,\n },\n h2: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"55px\",\n // lineHeight: '55px',\n marginBottom: \"22px\",\n letterSpacing: 0,\n },\n h3: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"45px\",\n // lineHeight: '47px',\n marginBottom: \"20px\",\n letterSpacing: 0,\n },\n h4: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"30px\",\n // lineHeight: '38px',\n marginBottom: \"18px\",\n letterSpacing: 0,\n },\n h5: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"25px\",\n // lineHeight: '32px',\n marginBottom: \"16px\",\n letterSpacing: 0,\n },\n h6: {\n color: \"#383b3b\",\n fontFamily: '\"SpaceGrotesk\"',\n fontWeight: 500,\n fontSize: \"21px\",\n // lineHeight: '26px',\n marginBottom: \"10px\",\n letterSpacing: 0,\n },\n body1: {\n color: \"#383b3b\",\n fontFamily: '\"Inter\"',\n fontWeight: 500,\n fontSize: \"1.07rem !important\",\n // lineHeight: '22px',\n marginBottom: \"16px\",\n letterSpacing: 0,\n },\n body2: {\n color: \"#383b3b\",\n fontFamily: '\"Inter\"',\n fontWeight: 500,\n fontSize: \"0.92rem !important\",\n // lineHeight: '20px',\n marginBottom: \"14px\",\n letterSpacing: 0,\n },\n button: {\n fontFamily: '\"Inter\"',\n fontSize: \"15px\",\n fontWeight: 600,\n letterSpacing: 0,\n },\n}\n\nexport default typography\n","import { buttonClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nconst MuiButton: Components[\"MuiButton\"] = {\n defaultProps: {\n variant: \"contained\",\n size: \"medium\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n color: \"black\",\n textTransform: \"none\",\n textAlign: \"center\",\n borderRadius: \"0px\",\n padding: \"11px 12px\",\n height: \"42px\",\n whiteSpace: \"nowrap\",\n width: \"fit-content\",\n minWidth: \"150px\",\n boxShadow: \"none\",\n ...(ownerState.size === \"small\" && {\n height: \"27px\",\n padding: \"4.5px 9px\",\n letterSpacing: \"0\",\n }),\n ...(includesClassNames(ownerState, [\"body\"]) && {\n marginBottom: typography.body1?.marginBottom,\n }),\n }),\n contained: ({ ownerState }) => ({\n backgroundColor: \"#ffd23b\",\n \"&:hover\": {\n backgroundColor: \"#ffc709\",\n boxShadow: [\n \"0px 6px 10px 0px rgba(0, 0, 0, 0.14)\",\n \"0px 1px 18px 0px rgba(0, 0, 0, 0.12)\",\n \"0px 3px 5px 0px rgba(0, 0, 0, 0.2);\",\n ].join(),\n },\n [`&.${buttonClasses.disabled}`]: {\n backgroundColor: \"#ffe382\",\n color: \"#7A5F01\",\n },\n ...(includesClassNames(ownerState, [\"alert\"]) && {\n color: \"white\",\n backgroundColor: \"#ff0000\",\n \"&:hover\": {\n backgroundColor: \"#df0531\",\n },\n [`&.${buttonClasses.disabled}`]: {\n backgroundColor: \"#E76A6A\",\n color: \"white\",\n },\n }),\n }),\n outlined: {\n border: \"2px solid #eab502\",\n \"&:hover\": {\n border: \"2px solid #eab502\",\n backgroundColor: \"transparent\",\n textDecoration: \"underline\",\n },\n },\n },\n}\n\nexport default MuiButton\n","export default function spacing(\n factor: number,\n important: boolean = false,\n): string {\n let spacing = `${8 * factor}px`\n if (important) spacing += \" !important\"\n return spacing\n}\n","import type Components from \"./_components\"\nimport spacing from \"../spacing\"\n\nconst MuiCardActions: Components[\"MuiCardActions\"] = {\n styleOverrides: {\n root: {\n padding: spacing(2),\n },\n },\n}\n\nexport default MuiCardActions\n","import type Components from \"./_components\"\n\nconst MuiCheckbox: Components[\"MuiCheckbox\"] = {\n styleOverrides: {\n root: {\n paddingLeft: \"0px\",\n marginLeft: \"-2px\",\n },\n },\n}\n\nexport default MuiCheckbox\n","import {\n type CSSObject,\n type ComponentsOverrides,\n type ComponentsPropsList,\n type Theme,\n type ThemeOptions,\n} from \"@mui/material\"\nimport type { CommonProps } from \"@mui/material/OverridableComponent\"\nimport type { OverridesStyleRules } from \"@mui/material/styles/overrides\"\nimport { type TypographyOptions } from \"@mui/material/styles/createTypography\"\n\nimport {\n getClassNames,\n includesClassNames,\n matchClassNames,\n} from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nexport default interface Components\n extends NonNullable<ThemeOptions[\"components\"]> {}\n\nexport type StyleOverridesWithRoot<\n Component extends keyof ComponentsOverrides<Theme>,\n> = ComponentsOverrides<Theme>[Component] & {\n root: OverridesStyleRules<\"root\", Component, Theme>[\"root\"]\n}\n\nexport type OwnerState<ComponentName extends keyof ComponentsPropsList> =\n ComponentsPropsList[ComponentName] & Record<string, unknown>\n\nexport function getFlexStyleOverrides(props: CommonProps): CSSObject {\n const styleOverrides: CSSObject = {}\n\n const classNames = getClassNames(props)\n\n if (classNames.some(className => className.startsWith(\"flex-\"))) {\n styleOverrides.display = \"flex\"\n if (includesClassNames(classNames, [\"flex-center\"])) {\n styleOverrides.justifyContent = \"center\"\n styleOverrides.alignItems = \"center\"\n } else if (includesClassNames(classNames, [\"flex-center-x\"])) {\n styleOverrides.justifyContent = \"center\"\n styleOverrides.alignItems = \"start\"\n } else if (includesClassNames(classNames, [\"flex-center-y\"])) {\n styleOverrides.justifyContent = \"start\"\n styleOverrides.alignItems = \"center\"\n } else if (includesClassNames(classNames, [\"flex-end\"])) {\n styleOverrides.justifyContent = \"end\"\n styleOverrides.alignItems = \"end\"\n } else if (includesClassNames(classNames, [\"flex-end-x\"])) {\n styleOverrides.justifyContent = \"end\"\n styleOverrides.alignItems = \"start\"\n } else if (includesClassNames(classNames, [\"flex-end-y\"])) {\n styleOverrides.justifyContent = \"start\"\n styleOverrides.alignItems = \"end\"\n }\n }\n\n return styleOverrides\n}\n\nexport function getFontStyleOverrides(props: CommonProps): CSSObject {\n let styleOverrides: CSSObject = {}\n\n const classNames = getClassNames(props)\n\n if (includesClassNames(classNames, [\"nowrap-ellipsis\"])) {\n styleOverrides.whiteSpace = \"nowrap\"\n styleOverrides.overflow = \"hidden\"\n styleOverrides.textOverflow = \"ellipsis\"\n }\n\n ;[\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"body1\", \"body2\"]\n .filter(className => className in typography)\n .forEach(className => {\n const typographyClass = typography[\n className as keyof TypographyOptions\n ] as CSSObject\n\n if (includesClassNames(classNames, [className])) {\n styleOverrides = { ...styleOverrides, ...typographyClass }\n }\n\n matchClassNames(classNames, new RegExp(`^${className}-(\\\\w+)$`)).forEach(\n match => {\n const prop = match[1]\n if (prop in typographyClass) {\n styleOverrides[prop] = typographyClass[prop]\n }\n },\n )\n })\n\n return styleOverrides\n}\n","import type Components from \"./_components\"\nimport { getFlexStyleOverrides } from \"./_components\"\nimport spacing from \"../spacing\"\n\nconst MuiContainer: Components[\"MuiContainer\"] = {\n defaultProps: {\n maxWidth: \"lg\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...getFlexStyleOverrides(ownerState),\n paddingLeft: spacing(2, true),\n paddingRight: spacing(2, true),\n padding: spacing(7),\n }),\n },\n}\n\nexport default MuiContainer\n","import type Components from \"./_components\"\n\nconst MuiDialog: Components[\"MuiDialog\"] = {\n defaultProps: {\n maxWidth: \"sm\",\n },\n styleOverrides: {\n paper: {\n borderRadius: \"0px !important\",\n padding: \"24px\",\n alignItems: \"center\",\n },\n },\n}\n\nexport default MuiDialog\n","import { typographyClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { form } from \"../typography\"\n\nconst MuiFormControlLabel: Components[\"MuiFormControlLabel\"] = {\n styleOverrides: {\n root: {\n [`.${typographyClasses.root}`]: {\n ...form,\n marginBottom: 0,\n },\n margin: 0,\n },\n },\n}\n\nexport default MuiFormControlLabel\n","import type Components from \"./_components\"\nimport { form } from \"../typography\"\n\nconst MuiFormHelperText: Components[\"MuiFormHelperText\"] = {\n styleOverrides: {\n root: {\n ...form,\n },\n },\n}\n\nexport default MuiFormHelperText\n","import type Components from \"./_components\"\nimport { getFlexStyleOverrides } from \"./_components\"\n\nconst MuiGrid2: Components[\"MuiGrid2\"] = {\n defaultProps: {\n disableEqualOverflow: true,\n // padding: 0 // TODO: normalize padding.\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...getFlexStyleOverrides(ownerState),\n }),\n },\n}\n\nexport default MuiGrid2\n","import type Components from \"./_components\"\nimport typography from \"../typography\"\n\nconst MuiInputBase: Components[\"MuiInputBase\"] = {\n styleOverrides: {\n root: {\n backgroundColor: \"white\",\n marginBottom: 0,\n color: typography.body1?.color,\n },\n },\n}\n\nexport default MuiInputBase\n","import type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nconst MuiLink: Components[\"MuiLink\"] = {\n defaultProps: {\n underline: \"none\", // BUG: if not set, MUI fails to run.\n color: \"inherit\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n cursor: \"pointer\",\n ...(includesClassNames(ownerState, [\"no-decor\"])\n ? {\n \":hover\": {\n textDecoration: \"underline\",\n },\n }\n : {\n textDecoration: \"underline\",\n \":hover\": {\n fontWeight: \"bold\",\n },\n }),\n ...(includesClassNames(ownerState, [\"back-to\"]) && {\n textDecoration: \"none\",\n display: \"inline-block\",\n marginBottom: typography.body1?.marginBottom,\n \":hover\": {\n fontWeight: \"bold\",\n textDecoration: \"underline\",\n },\n \":before\": {\n content: '\"< Back to \"',\n },\n }),\n }),\n },\n}\n\nexport default MuiLink\n","import type Components from \"./_components\"\n\nconst MuiList: Components[\"MuiList\"] = {\n styleOverrides: {\n root: {\n paddingTop: 0,\n paddingBottom: 0,\n },\n },\n}\n\nexport default MuiList\n","import { listItemTextClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiListItemText: Components[\"MuiListItemText\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(includesClassNames(ownerState, [\"last\"]) && {\n [`.${listItemTextClasses.primary}`]: {\n marginBottom: 0,\n },\n }),\n }),\n },\n}\n\nexport default MuiListItemText\n","import type Components from \"./_components\"\n\nconst MuiMenu: Components[\"MuiMenu\"] = {\n styleOverrides: {\n paper: {\n borderRadius: 0,\n },\n list: {\n padding: 0,\n },\n },\n}\n\nexport default MuiMenu\n","import type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiMenuItem: Components[\"MuiMenuItem\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(includesClassNames(ownerState, [\"header\"]) && {\n pointerEvents: \"none\",\n fontWeight: \"bold\",\n }),\n }),\n },\n}\n\nexport default MuiMenuItem\n","import type Components from \"./_components\"\nimport { type StyleOverridesWithRoot } from \"./_components\"\n\nconst MuiSelect: Components[\"MuiSelect\"] = {\n defaultProps: {\n color: \"black\",\n },\n\n styleOverrides: {\n root: {\n borderRadius: \"0px\",\n },\n } as StyleOverridesWithRoot<\"MuiSelect\">,\n}\n\nexport default MuiSelect\n","import { tabClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { primary } from \"../colors\"\n\nconst MuiTab: Components[\"MuiTab\"] = {\n styleOverrides: {\n root: {\n textTransform: \"none\",\n fontSize: \"16px\",\n fontWeight: 600,\n minWidth: \"150px\",\n border: \"2px solid white\",\n [`&.${tabClasses.selected}`]: {\n color: primary[300],\n backgroundColor: \"white\",\n cursor: \"default\",\n },\n [`:not(.${tabClasses.selected})`]: {\n color: \"white\",\n \":hover\": {\n textDecoration: \"underline\",\n },\n },\n },\n },\n}\n\nexport default MuiTab\n","import { tableCellClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport typography from \"../typography\"\n\nconst MuiTable: Components[\"MuiTable\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n borderStyle: \"hidden\",\n overflowX: \"auto\",\n [`.${tableCellClasses.root}`]: {\n border: \"2px solid white\",\n },\n ...(includesClassNames(ownerState, [\"text\"]) && {\n borderStyle: \"unset\",\n display: \"block\",\n [`.${tableCellClasses.root}`]: {\n border: \"1px solid #DDD\",\n },\n }),\n ...(includesClassNames(ownerState, [\"body\"]) && {\n marginBottom: typography.body1?.marginBottom,\n }),\n }),\n },\n}\n\nexport default MuiTable\n","import type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiTableBody: Components[\"MuiTableBody\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n backgroundColor: \"#F1ECEC\",\n ...(includesClassNames(ownerState, [\"text\"]) && {\n backgroundColor: \"white\",\n }),\n }),\n },\n}\n\nexport default MuiTableBody\n","import { tableCellClasses, typographyClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\n\nconst MuiTableHead: Components[\"MuiTableHead\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n backgroundColor: \"#6E7171\",\n ...(includesClassNames(ownerState, [\"light\"]) && {\n backgroundColor: \"#9A9C9E\",\n }),\n [`.${typographyClasses.root}`]: {\n color: \"white\",\n fontWeight: 600,\n marginBottom: 0,\n },\n [`.${tableCellClasses.head}`]: {\n color: \"white\",\n fontWeight: 600,\n },\n }),\n },\n}\n\nexport default MuiTableHead\n","import { tabClasses } from \"@mui/material\"\n\nimport type Components from \"./_components\"\n\nconst MuiTabs: Components[\"MuiTabs\"] = {\n defaultProps: {\n variant: \"scrollable\",\n scrollButtons: true,\n allowScrollButtonsMobile: true,\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(ownerState !== undefined && // NOTE: this is a bug with MUI\n [undefined, \"horizontal\"].includes(ownerState.orientation) && {\n [`.${tabClasses.root}:not(:last-of-type)`]: {\n marginRight: \"30px\",\n },\n }),\n }),\n indicator: {\n display: \"none\",\n },\n },\n}\n\nexport default MuiTabs\n","import {\n filledInputClasses,\n formHelperTextClasses,\n formLabelClasses,\n inputBaseClasses,\n inputClasses,\n outlinedInputClasses,\n svgIconClasses,\n} from \"@mui/material\"\n\nimport type Components from \"./_components\"\nimport { includesClassNames } from \"../../utils/theme\"\nimport palette from \"../palette\"\nimport typography from \"../typography\"\n\nconst MuiTextField: Components[\"MuiTextField\"] = {\n defaultProps: {\n size: \"small\",\n variant: \"filled\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n width: \"100%\",\n backgroundColor: \"transparent\",\n [`& > .${inputBaseClasses.root}`]: {\n ...(ownerState.disabled\n ? {\n [`.${inputBaseClasses.disabled}`]: {\n color: `${typography.body1!.color} !important`,\n \"-webkit-text-fill-color\": \"unset\",\n },\n border: \"0px !important\",\n borderRadius: \"0px !important\",\n // @ts-expect-error value is assignable\n backgroundColor: `${palette.info!.main} !important`,\n }\n : {\n border: \"1px solid black !important\",\n borderRadius: \"0px !important\",\n backgroundColor: \"white !important\",\n }),\n },\n [`& > .${inputBaseClasses.root}.${inputBaseClasses.error}`]: {\n // @ts-expect-error value is assignable\n border: `1px solid ${palette.error!.main} !important`,\n },\n [`& .${outlinedInputClasses.root}.${inputClasses.focused} > fieldset`]: {\n borderColor: \"black !important\",\n },\n [`.${svgIconClasses.root}`]: {\n color: `${typography.body1!.color} !important`,\n },\n [`.${filledInputClasses.root}::after`]: {\n borderColor: `${typography.body1!.color} !important`,\n },\n [`.${formLabelClasses.root}`]: {\n color: `${typography.body1!.color} !important`,\n },\n [`.${formHelperTextClasses.root}`]: {\n fontSize: \"12px !important\",\n },\n ...(ownerState.multiline === true && {\n ...((includesClassNames(ownerState, [\"resize\"]) ||\n includesClassNames(ownerState, [\"resize-both\"])) && {\n width: \"auto\",\n [`.${inputClasses.inputMultiline}`]: {\n resize: \"both\",\n },\n }),\n ...(includesClassNames(ownerState, [\"resize-horizontal\"]) && {\n width: \"auto\",\n [`.${inputClasses.inputMultiline}`]: {\n resize: \"horizontal\",\n },\n }),\n ...(includesClassNames(ownerState, [\"resize-vertical\"]) && {\n [`.${inputClasses.inputMultiline}`]: {\n resize: \"vertical\",\n },\n }),\n }),\n }),\n },\n}\n\nexport default MuiTextField\n","import type Components from \"./_components\"\n\nconst MuiToolbar: Components[\"MuiToolbar\"] = {\n styleOverrides: {\n root: {\n padding: \"15px 0px !important\",\n },\n },\n}\n\nexport default MuiToolbar\n","import type Components from \"./_components\"\nimport { getFontStyleOverrides } from \"./_components\"\n\nconst MuiTypography: Components[\"MuiTypography\"] = {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...getFontStyleOverrides(ownerState),\n }),\n },\n}\n\nexport default MuiTypography\n","import { type ThemeOptions } from \"@mui/material\"\n\nimport MuiAccordion from \"./MuiAccordion\"\nimport MuiAutocomplete from \"./MuiAutocomplete\"\nimport MuiButton from \"./MuiButton\"\nimport MuiCardActions from \"./MuiCardActions\"\nimport MuiCheckbox from \"./MuiCheckbox\"\nimport MuiContainer from \"./MuiContainer\"\nimport MuiDialog from \"./MuiDialog\"\nimport MuiFormControlLabel from \"./MuiFormControlLabel\"\nimport MuiFormHelperText from \"./MuiFormHelperText\"\nimport MuiGrid2 from \"./MuiGrid2\"\nimport MuiInputBase from \"./MuiInputBase\"\nimport MuiLink from \"./MuiLink\"\nimport MuiList from \"./MuiList\"\nimport MuiListItemText from \"./MuiListItemText\"\nimport MuiMenu from \"./MuiMenu\"\nimport MuiMenuItem from \"./MuiMenuItem\"\nimport MuiSelect from \"./MuiSelect\"\nimport MuiTab from \"./MuiTab\"\nimport MuiTable from \"./MuiTable\"\nimport MuiTableBody from \"./MuiTableBody\"\nimport MuiTableHead from \"./MuiTableHead\"\nimport MuiTabs from \"./MuiTabs\"\nimport MuiTextField from \"./MuiTextField\"\nimport MuiToolbar from \"./MuiToolbar\"\nimport MuiTypography from \"./MuiTypography\"\n\nconst components: ThemeOptions[\"components\"] = {\n MuiAccordion,\n MuiAutocomplete,\n MuiButton,\n MuiCardActions,\n MuiCheckbox,\n MuiContainer,\n MuiDialog,\n MuiFormControlLabel,\n MuiFormHelperText,\n MuiGrid2,\n MuiInputBase,\n MuiLink,\n MuiList,\n MuiListItemText,\n MuiMenu,\n MuiMenuItem,\n MuiSelect,\n MuiTab,\n MuiTable,\n MuiTableBody,\n MuiTableHead,\n MuiTabs,\n MuiTextField,\n MuiToolbar,\n MuiTypography,\n}\n\nexport default components\n"],"names":["MuiAccordion","MuiAutocomplete","insertDividerBetweenElements","elements","dividerProps","element","index","jsxs","Fragment","Divider","getStyleOverrides","ownerState","componentKey","muiClassName","components","_components","component","muiClass","getClassNames","props","includesClassNames","propsOrClassNames","includes","classNames","className","matchClassNames","pattern","match","form","typography","MuiButton","buttonClasses","spacing","factor","important","MuiCardActions","MuiCheckbox","getFlexStyleOverrides","styleOverrides","getFontStyleOverrides","typographyClass","prop","MuiContainer","MuiDialog","MuiFormControlLabel","typographyClasses","MuiFormHelperText","MuiGrid2","MuiInputBase","MuiLink","MuiList","MuiListItemText","listItemTextClasses","MuiMenu","MuiMenuItem","MuiSelect","MuiTab","tabClasses","primary","MuiTable","tableCellClasses","MuiTableBody","MuiTableHead","MuiTabs","MuiTextField","inputBaseClasses","palette","outlinedInputClasses","inputClasses","svgIconClasses","filledInputClasses","formLabelClasses","formHelperTextClasses","MuiToolbar","MuiTypography"],"mappings":";;;;AAEA,MAAMA,IAA2C;AAAA,EAC/C,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ,GCRMC,IAAiD;AAAA,EACrD,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ;ACFO,SAASC,GAA6B;AAAA,EAC3C,UAAAC;AAAA,EACA,cAAAC;AACF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,KAAyC;AAAA,EAC7C,cAAAd;AAAA,EACA,iBAAAC;AAAA,EACA,WAAA6B;AAAA,EACA,gBAAAK;AAAA,EACA,aAAAC;AAAA,EACA,cAAAM;AAAA,EACA,WAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,mBAAAE;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAE;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAG;AAAA,EACA,cAAAE;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAS;AAAA,EACA,eAAAC;AACF;"}
|
|
@@ -4,9 +4,9 @@ import { I as L } from "./Image-D5jC9UoX.js";
|
|
|
4
4
|
import { useState as b, useEffect as f, Children as F } from "react";
|
|
5
5
|
import { useLocation as I, useParams as N, useNavigate as k, generatePath as E } from "react-router-dom";
|
|
6
6
|
import { ErrorOutline as P, InfoOutlined as R, CloseOutlined as Y, ChevronLeft as A, ChevronRight as V } from "@mui/icons-material";
|
|
7
|
-
import { p as C, t as q, s as z, a as g } from "./palette-
|
|
8
|
-
import { a as M } from "./auth-
|
|
9
|
-
import { L as u } from "./LinkButton-
|
|
7
|
+
import { p as C, t as q, s as z, a as g } from "./palette-CYwuLBW7.js";
|
|
8
|
+
import { a as M } from "./auth-C9qgLRQ4.js";
|
|
9
|
+
import { L as u } from "./LinkButton-COnDB_KU.js";
|
|
10
10
|
import { object as W, string as D } from "yup";
|
|
11
11
|
import { tryValidateSync as G } from "./utils/schema.es.js";
|
|
12
12
|
const x = ({ boxProps: e, ...o }) => /* @__PURE__ */ r.jsx(_, { ...e, children: /* @__PURE__ */ r.jsx(O, { ...o }) }), T = ({
|
|
@@ -234,4 +234,4 @@ export {
|
|
|
234
234
|
K as T,
|
|
235
235
|
ir as i
|
|
236
236
|
};
|
|
237
|
-
//# sourceMappingURL=index-
|
|
237
|
+
//# sourceMappingURL=index-DALohJdb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-DkM_cG3a.js","sources":["../src/components/page/Section.tsx","../src/components/page/Notification.tsx","../src/components/page/Page.tsx","../src/components/page/Banner.tsx","../src/components/page/TabBar.tsx"],"sourcesContent":["import {\n Box,\n type BoxProps,\n Container,\n type ContainerProps,\n} from \"@mui/material\"\nimport type { FC } from \"react\"\n\nexport interface SectionProps extends ContainerProps {\n boxProps?: Omit<BoxProps, \"children\">\n}\n\nconst Section: FC<SectionProps> = ({ boxProps, ...containerProps }) => {\n return (\n <Box {...boxProps}>\n <Container {...containerProps} />\n </Box>\n )\n}\n\nexport default Section\n","import {\n CloseOutlined as CloseOutlinedIcon,\n ErrorOutline as ErrorOutlineIcon,\n InfoOutlined as InfoOutlinedIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport { IconButton, Stack, Typography } from \"@mui/material\"\n\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface NotificationProps {\n open?: boolean\n error?: boolean\n onClose?: () => void\n children: ReactNode\n bgcolor?: \"secondary\" | \"tertiary\"\n}\n\nconst Notification: FC<NotificationProps> = ({\n open = true,\n error = false,\n onClose,\n children,\n bgcolor = \"secondary\",\n}) => {\n const [_open, _setOpen] = useState(open)\n\n useEffect(() => {\n _setOpen(open)\n }, [open])\n\n if (!_open) return <></>\n\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n secondary: \"#ffd23b\",\n tertiary: \"#08bafc\",\n }[bgcolor],\n }}\n sx={{ paddingY: \"5px\" }}\n >\n <Stack direction=\"row\" alignItems=\"center\" gap={2}>\n {error ? (\n <ErrorOutlineIcon htmlColor={contrastText} />\n ) : (\n <InfoOutlinedIcon htmlColor={contrastText} />\n )}\n <Typography variant=\"body2\" color={contrastText} mb={0}>\n {children}\n </Typography>\n <IconButton\n style={{ marginLeft: \"auto\" }}\n onClick={() => {\n _setOpen(false)\n if (onClose !== undefined) onClose()\n }}\n >\n <CloseOutlinedIcon htmlColor={contrastText} />\n </IconButton>\n </Stack>\n </Section>\n )\n}\n\nexport default Notification\n","import { Children, type JSX, useEffect } from \"react\"\nimport { type Location, useLocation } from \"react-router-dom\"\n\nimport Notification, { type NotificationProps } from \"./Notification\"\nimport {\n type SessionMetadata,\n type UseSessionChildren,\n type UseSessionChildrenFunction,\n type UseSessionOptions,\n useSession,\n} from \"../../hooks/auth\"\n\nexport type PageState = {\n notifications: Array<{\n index?: number\n props: NotificationProps\n }>\n scroll: { x: number; y: number }\n}\n\nexport interface PageProps<\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined,\n> {\n children: UseSessionChildren<SessionUserType>\n session?: UseSessionOptions<SessionUserType>\n}\n\nconst Page = <\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined = undefined,\n>({\n children,\n session,\n}: PageProps<SessionUserType>): JSX.Element => {\n const { state } = useLocation() as Location<null | Partial<PageState>>\n\n let { scroll, notifications } = state || {}\n scroll = scroll || { x: 0, y: 0 }\n notifications = notifications || []\n\n useEffect(() => {\n window.scroll(scroll.x, scroll.y)\n }, [scroll.x, scroll.y])\n\n return (\n <>\n {useSession((metadata?: SessionMetadata) => {\n if (typeof children === \"function\") {\n children = metadata\n ? (children as UseSessionChildrenFunction<true>)(metadata)\n : (children as UseSessionChildrenFunction<false>)(metadata)\n }\n\n if (notifications.length) {\n const childrenArray = Children.toArray(children)\n\n notifications.forEach((notification, index) => {\n void childrenArray.splice(\n notification.index ?? index,\n 0,\n <Notification {...notification.props} />,\n )\n })\n\n return childrenArray\n }\n\n return children\n }, session)}\n </>\n )\n}\n\nexport default Page\n","import { Stack, Typography } from \"@mui/material\"\n\nimport Image, { type ImageProps } from \"../Image\"\nimport { LinkButton, type LinkButtonProps } from \"../router\"\nimport { primary, secondary, tertiary } from \"../../theme/colors\"\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface BannerProps<\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n> {\n header: string\n subheader?: string\n textAlign?: \"start\" | \"center\"\n imageProps?: ImageProps\n button1Props?: LinkButtonProps<\"to\", Button1State>\n button2Props?: LinkButtonProps<\"to\", Button2State>\n bgcolor?: \"primary\" | \"secondary\" | \"tertiary\"\n}\n\nconst Banner = <\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n>({\n header,\n subheader,\n textAlign = \"start\",\n imageProps,\n button1Props,\n button2Props,\n bgcolor = \"primary\",\n}: BannerProps<Button1State, Button2State>) => {\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n primary: primary[500],\n secondary: secondary[500],\n tertiary: tertiary[500],\n }[bgcolor],\n }}\n sx={{ paddingY: 0 }}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n justifyContent={textAlign}\n gap={2}\n >\n <Stack\n py={{\n xs: \"80px\",\n md: imageProps !== undefined ? 0 : \"100px\",\n }}\n textAlign={textAlign}\n >\n <Typography\n variant=\"h2\"\n color={contrastText}\n mb={subheader !== undefined ? undefined : 0}\n >\n {header}\n </Typography>\n {subheader !== undefined && (\n <Typography\n color={contrastText}\n variant=\"h4\"\n mb={button1Props !== undefined ? undefined : 0}\n >\n {subheader}\n </Typography>\n )}\n <Stack direction=\"row\" gap={2}>\n {button1Props !== undefined && <LinkButton {...button1Props} />}\n {button2Props !== undefined && <LinkButton {...button2Props} />}\n </Stack>\n </Stack>\n {imageProps !== undefined && (\n <Image\n {...imageProps}\n display={{ xs: \"none\", md: \"block\" }}\n maxWidth=\"320px\"\n marginLeft=\"auto\"\n />\n )}\n </Stack>\n </Section>\n )\n}\n\nexport default Banner\n","import {\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport {\n IconButton,\n Tab,\n type TabScrollButtonProps,\n Tabs,\n Typography,\n} from \"@mui/material\"\nimport { object as YupObject, string as YupString } from \"yup\"\nimport { generatePath, useNavigate, useParams } from \"react-router-dom\"\n\nimport Section from \"./Section\"\nimport { primary } from \"../../theme/colors\"\nimport { tryValidateSync } from \"../../utils/schema\"\n\nexport interface TabBarProps {\n header: string\n tabs: Array<{\n label: string\n children: ReactNode\n path: string\n }>\n originalPath: string\n value?: number\n}\n\nconst TabBar: FC<TabBarProps> = ({ header, tabs, originalPath, value = 0 }) => {\n const params = useParams()\n const navigate = useNavigate()\n const [_value, _setValue] = useState(\n value < 0 ? 0 : value >= tabs.length ? tabs.length - 1 : value,\n )\n\n const labels = tabs.map(tab => tab.label)\n const children = tabs.map(tab => tab.children)\n const paths = tabs.map(tab => tab.path)\n\n useEffect(() => {\n _setValue(value)\n }, [value])\n\n useEffect(() => {\n const tab = tryValidateSync(\n params,\n YupObject({\n tab: YupString().oneOf(paths).required(),\n }),\n )?.tab\n\n if (tab !== undefined) {\n _setValue(paths.indexOf(tab))\n }\n }, [params, paths])\n\n return (\n <>\n <Section\n boxProps={{ bgcolor: primary[500] }}\n sx={{ paddingY: \"100px\" }}\n className=\"flex-center\"\n >\n <Typography\n textAlign=\"center\"\n variant=\"h2\"\n style={{ color: \"white\" }}\n mb={0}\n >\n {header}\n </Typography>\n </Section>\n <Section\n boxProps={{ bgcolor: primary[300] }}\n sx={{ paddingY: \"6px\" }}\n className=\"flex-center\"\n >\n <Tabs\n value={_value}\n onChange={(_, value: number) => {\n navigate(\n generatePath(originalPath, {\n tab: paths[value],\n }),\n )\n }}\n ScrollButtonComponent={({\n disabled,\n onClick,\n direction,\n }: TabScrollButtonProps) => {\n return (\n <>\n {disabled === false && (\n <IconButton\n onClick={onClick}\n style={{\n padding: 0,\n [direction === \"left\" ? \"marginRight\" : \"marginLeft\"]:\n \"15px\",\n color: \"white\",\n }}\n >\n {direction === \"left\" ? (\n <>\n <ChevronLeftIcon />\n </>\n ) : (\n <>\n <ChevronRightIcon />\n </>\n )}\n </IconButton>\n )}\n </>\n )\n }}\n >\n {labels.map(label => (\n <Tab disableRipple key={label} label={label} />\n ))}\n </Tabs>\n </Section>\n {children[_value]}\n </>\n )\n}\n\nexport default TabBar\n"],"names":["Section","boxProps","containerProps","jsx","Box","Container","Notification","open","error","onClose","children","bgcolor","_open","_setOpen","useState","useEffect","Fragment","contrastText","palette","Stack","ErrorOutlineIcon","InfoOutlinedIcon","Typography","IconButton","CloseOutlinedIcon","Page","session","state","useLocation","scroll","notifications","useSession","metadata","childrenArray","Children","notification","index","Banner","header","subheader","textAlign","imageProps","button1Props","button2Props","primary","secondary","tertiary","jsxs","LinkButton","Image","TabBar","tabs","originalPath","value","params","useParams","navigate","useNavigate","_value","_setValue","labels","tab","paths","tryValidateSync","YupObject","YupString","Tabs","_","generatePath","disabled","onClick","direction","ChevronLeftIcon","ChevronRightIcon","label","Tab"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAA4B,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAE9CC,gBAAAA,MAACC,KAAK,GAAGH,GACP,gCAACI,GAAA,EAAW,GAAGH,GAAgB,EAAA,CACjC,GCGEI,IAAsC,CAAC;AAAA,EAC3C,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAAM;AACJ,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAASP,CAAI;AAMvC,MAJAQ,EAAU,MAAM;AACd,IAAAF,EAASN,CAAI;AAAA,EACf,GAAG,CAACA,CAAI,CAAC,GAEL,CAACK,EAAO,QAAOT,gBAAAA,MAAAa,EAAAA,UAAA,CAAA,CAAE;AAGrB,QAAMC,IAAeC,EAAQP,CAAO,EAAE;AAEtC,SACER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d,MAAkB;AAC9B,cAAAG;AAAA,gBACEY,EAAahB,GAAc;AAAA,kBACzB,KAAKU,EAAMT,CAAK;AAAA,gBAAA,CACjB;AAAA,cAAA;AAAA,YAEL;AAAA,YACA,uBAAuB,CAAC;AAAA,cACtB,UAAAgB;AAAA,cACA,SAAAC;AAAA,cACA,WAAAC;AAAA,YAAA,MAGEpE,gBAAAA,EAAAA,IAAAa,EAAAA,UAAA,EACG,gBAAa,MACZb,gBAAAA,EAAAA;AAAAA,cAACoB;AAAA,cAAA;AAAA,gBACC,SAAA+C;AAAA,gBACA,OAAO;AAAA,kBACL,SAAS;AAAA,kBACT,CAACC,MAAc,SAAS,gBAAgB,YAAY,GAClD;AAAA,kBACF,OAAO;AAAA,gBAAA;AAAA,gBAGR,UAAAA,MAAc,SACbpE,gBAAAA,EAAAA,IAAAa,EAAAA,UAAA,EACE,UAAAb,gBAAAA,EAAAA,IAACqE,GAAA,CAAA,CAAgB,GACnB,IAEArE,gBAAAA,EAAAA,IAAAa,YAAA,EACE,UAAAb,gBAAAA,MAACsE,GAAA,CAAA,CAAiB,EAAA,CACpB;AAAA,cAAA;AAAA,YAAA,GAIR;AAAA,YAIH,UAAAb,EAAO,IAAI,CAAAc,MACVvE,gBAAAA,EAAAA,IAACwE,KAAI,eAAa,IAAa,OAAAD,EAAA,GAAPA,CAAqB,CAC9C;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,IAEDhE,EAASgD,CAAM;AAAA,EAAA,GAClB;AAEJ;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index-DALohJdb.js","sources":["../src/components/page/Section.tsx","../src/components/page/Notification.tsx","../src/components/page/Page.tsx","../src/components/page/Banner.tsx","../src/components/page/TabBar.tsx"],"sourcesContent":["import {\n Box,\n type BoxProps,\n Container,\n type ContainerProps,\n} from \"@mui/material\"\nimport type { FC } from \"react\"\n\nexport interface SectionProps extends ContainerProps {\n boxProps?: Omit<BoxProps, \"children\">\n}\n\nconst Section: FC<SectionProps> = ({ boxProps, ...containerProps }) => {\n return (\n <Box {...boxProps}>\n <Container {...containerProps} />\n </Box>\n )\n}\n\nexport default Section\n","import {\n CloseOutlined as CloseOutlinedIcon,\n ErrorOutline as ErrorOutlineIcon,\n InfoOutlined as InfoOutlinedIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport { IconButton, Stack, Typography } from \"@mui/material\"\n\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface NotificationProps {\n open?: boolean\n error?: boolean\n onClose?: () => void\n children: ReactNode\n bgcolor?: \"secondary\" | \"tertiary\"\n}\n\nconst Notification: FC<NotificationProps> = ({\n open = true,\n error = false,\n onClose,\n children,\n bgcolor = \"secondary\",\n}) => {\n const [_open, _setOpen] = useState(open)\n\n useEffect(() => {\n _setOpen(open)\n }, [open])\n\n if (!_open) return <></>\n\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n secondary: \"#ffd23b\",\n tertiary: \"#08bafc\",\n }[bgcolor],\n }}\n sx={{ paddingY: \"5px\" }}\n >\n <Stack direction=\"row\" alignItems=\"center\" gap={2}>\n {error ? (\n <ErrorOutlineIcon htmlColor={contrastText} />\n ) : (\n <InfoOutlinedIcon htmlColor={contrastText} />\n )}\n <Typography variant=\"body2\" color={contrastText} mb={0}>\n {children}\n </Typography>\n <IconButton\n style={{ marginLeft: \"auto\" }}\n onClick={() => {\n _setOpen(false)\n if (onClose !== undefined) onClose()\n }}\n >\n <CloseOutlinedIcon htmlColor={contrastText} />\n </IconButton>\n </Stack>\n </Section>\n )\n}\n\nexport default Notification\n","import { Children, type JSX, useEffect } from \"react\"\nimport { type Location, useLocation } from \"react-router-dom\"\n\nimport Notification, { type NotificationProps } from \"./Notification\"\nimport {\n type SessionMetadata,\n type UseSessionChildren,\n type UseSessionChildrenFunction,\n type UseSessionOptions,\n useSession,\n} from \"../../hooks/auth\"\n\nexport type PageState = {\n notifications: Array<{\n index?: number\n props: NotificationProps\n }>\n scroll: { x: number; y: number }\n}\n\nexport interface PageProps<\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined,\n> {\n children: UseSessionChildren<SessionUserType>\n session?: UseSessionOptions<SessionUserType>\n}\n\nconst Page = <\n SessionUserType extends SessionMetadata[\"user_type\"] | undefined = undefined,\n>({\n children,\n session,\n}: PageProps<SessionUserType>): JSX.Element => {\n const { state } = useLocation() as Location<null | Partial<PageState>>\n\n let { scroll, notifications } = state || {}\n scroll = scroll || { x: 0, y: 0 }\n notifications = notifications || []\n\n useEffect(() => {\n window.scroll(scroll.x, scroll.y)\n }, [scroll.x, scroll.y])\n\n return (\n <>\n {useSession((metadata?: SessionMetadata) => {\n if (typeof children === \"function\") {\n children = metadata\n ? (children as UseSessionChildrenFunction<true>)(metadata)\n : (children as UseSessionChildrenFunction<false>)(metadata)\n }\n\n if (notifications.length) {\n const childrenArray = Children.toArray(children)\n\n notifications.forEach((notification, index) => {\n void childrenArray.splice(\n notification.index ?? index,\n 0,\n <Notification {...notification.props} />,\n )\n })\n\n return childrenArray\n }\n\n return children\n }, session)}\n </>\n )\n}\n\nexport default Page\n","import { Stack, Typography } from \"@mui/material\"\n\nimport Image, { type ImageProps } from \"../Image\"\nimport { LinkButton, type LinkButtonProps } from \"../router\"\nimport { primary, secondary, tertiary } from \"../../theme/colors\"\nimport Section from \"./Section\"\nimport palette from \"../../theme/palette\"\n\nexport interface BannerProps<\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n> {\n header: string\n subheader?: string\n textAlign?: \"start\" | \"center\"\n imageProps?: ImageProps\n button1Props?: LinkButtonProps<\"to\", Button1State>\n button2Props?: LinkButtonProps<\"to\", Button2State>\n bgcolor?: \"primary\" | \"secondary\" | \"tertiary\"\n}\n\nconst Banner = <\n Button1State extends Record<string, any> = Record<string, any>,\n Button2State extends Record<string, any> = Record<string, any>,\n>({\n header,\n subheader,\n textAlign = \"start\",\n imageProps,\n button1Props,\n button2Props,\n bgcolor = \"primary\",\n}: BannerProps<Button1State, Button2State>) => {\n // @ts-expect-error guaranteed to be in palette\n const contrastText = palette[bgcolor].contrastText as string\n\n return (\n <Section\n boxProps={{\n bgcolor: {\n primary: primary[500],\n secondary: secondary[500],\n tertiary: tertiary[500],\n }[bgcolor],\n }}\n sx={{ paddingY: 0 }}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n justifyContent={textAlign}\n gap={2}\n >\n <Stack\n py={{\n xs: \"80px\",\n md: imageProps !== undefined ? 0 : \"100px\",\n }}\n textAlign={textAlign}\n >\n <Typography\n variant=\"h2\"\n color={contrastText}\n mb={subheader !== undefined ? undefined : 0}\n >\n {header}\n </Typography>\n {subheader !== undefined && (\n <Typography\n color={contrastText}\n variant=\"h4\"\n mb={button1Props !== undefined ? undefined : 0}\n >\n {subheader}\n </Typography>\n )}\n <Stack direction=\"row\" gap={2}>\n {button1Props !== undefined && <LinkButton {...button1Props} />}\n {button2Props !== undefined && <LinkButton {...button2Props} />}\n </Stack>\n </Stack>\n {imageProps !== undefined && (\n <Image\n {...imageProps}\n display={{ xs: \"none\", md: \"block\" }}\n maxWidth=\"320px\"\n marginLeft=\"auto\"\n />\n )}\n </Stack>\n </Section>\n )\n}\n\nexport default Banner\n","import {\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n} from \"@mui/icons-material\"\nimport { type FC, type ReactNode, useEffect, useState } from \"react\"\nimport {\n IconButton,\n Tab,\n type TabScrollButtonProps,\n Tabs,\n Typography,\n} from \"@mui/material\"\nimport { object as YupObject, string as YupString } from \"yup\"\nimport { generatePath, useNavigate, useParams } from \"react-router-dom\"\n\nimport Section from \"./Section\"\nimport { primary } from \"../../theme/colors\"\nimport { tryValidateSync } from \"../../utils/schema\"\n\nexport interface TabBarProps {\n header: string\n tabs: Array<{\n label: string\n children: ReactNode\n path: string\n }>\n originalPath: string\n value?: number\n}\n\nconst TabBar: FC<TabBarProps> = ({ header, tabs, originalPath, value = 0 }) => {\n const params = useParams()\n const navigate = useNavigate()\n const [_value, _setValue] = useState(\n value < 0 ? 0 : value >= tabs.length ? tabs.length - 1 : value,\n )\n\n const labels = tabs.map(tab => tab.label)\n const children = tabs.map(tab => tab.children)\n const paths = tabs.map(tab => tab.path)\n\n useEffect(() => {\n _setValue(value)\n }, [value])\n\n useEffect(() => {\n const tab = tryValidateSync(\n params,\n YupObject({\n tab: YupString().oneOf(paths).required(),\n }),\n )?.tab\n\n if (tab !== undefined) {\n _setValue(paths.indexOf(tab))\n }\n }, [params, paths])\n\n return (\n <>\n <Section\n boxProps={{ bgcolor: primary[500] }}\n sx={{ paddingY: \"100px\" }}\n className=\"flex-center\"\n >\n <Typography\n textAlign=\"center\"\n variant=\"h2\"\n style={{ color: \"white\" }}\n mb={0}\n >\n {header}\n </Typography>\n </Section>\n <Section\n boxProps={{ bgcolor: primary[300] }}\n sx={{ paddingY: \"6px\" }}\n className=\"flex-center\"\n >\n <Tabs\n value={_value}\n onChange={(_, value: number) => {\n navigate(\n generatePath(originalPath, {\n tab: paths[value],\n }),\n )\n }}\n ScrollButtonComponent={({\n disabled,\n onClick,\n direction,\n }: TabScrollButtonProps) => {\n return (\n <>\n {disabled === false && (\n <IconButton\n onClick={onClick}\n style={{\n padding: 0,\n [direction === \"left\" ? \"marginRight\" : \"marginLeft\"]:\n \"15px\",\n color: \"white\",\n }}\n >\n {direction === \"left\" ? (\n <>\n <ChevronLeftIcon />\n </>\n ) : (\n <>\n <ChevronRightIcon />\n </>\n )}\n </IconButton>\n )}\n </>\n )\n }}\n >\n {labels.map(label => (\n <Tab disableRipple key={label} label={label} />\n ))}\n </Tabs>\n </Section>\n {children[_value]}\n </>\n )\n}\n\nexport default TabBar\n"],"names":["Section","boxProps","containerProps","jsx","Box","Container","Notification","open","error","onClose","children","bgcolor","_open","_setOpen","useState","useEffect","Fragment","contrastText","palette","Stack","ErrorOutlineIcon","InfoOutlinedIcon","Typography","IconButton","CloseOutlinedIcon","Page","session","state","useLocation","scroll","notifications","useSession","metadata","childrenArray","Children","notification","index","Banner","header","subheader","textAlign","imageProps","button1Props","button2Props","primary","secondary","tertiary","jsxs","LinkButton","Image","TabBar","tabs","originalPath","value","params","useParams","navigate","useNavigate","_value","_setValue","labels","tab","paths","tryValidateSync","YupObject","YupString","Tabs","_","generatePath","disabled","onClick","direction","ChevronLeftIcon","ChevronRightIcon","label","Tab"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAA4B,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAE9CC,gBAAAA,MAACC,KAAK,GAAGH,GACP,gCAACI,GAAA,EAAW,GAAGH,GAAgB,EAAA,CACjC,GCGEI,IAAsC,CAAC;AAAA,EAC3C,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAAM;AACJ,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAASP,CAAI;AAMvC,MAJAQ,EAAU,MAAM;AACd,IAAAF,EAASN,CAAI;AAAA,EACf,GAAG,CAACA,CAAI,CAAC,GAEL,CAACK,EAAO,QAAOT,gBAAAA,MAAAa,EAAAA,UAAA,CAAA,CAAE;AAGrB,QAAMC,IAAeC,EAAQP,CAAO,EAAE;AAEtC,SACER,gBAAAA,EAAAA;AAAAA,IAACH;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,QACR,SAAS;AAAA,UACP,WAAW;AAAA,UACX,UAAU;AAAA,QAAA,EACVW,CAAO;AAAA,MAAA;AAAA,MAEX,IAAI,EAAE,UAAU,MAAA;AAAA,MAEhB,iCAACQ,GAAA,EAAM,WAAU,OAAM,YAAW,UAAS,KAAK,GAC7C,UAAA;AAAA,QAAAX,IACCL,gBAAAA,EAAAA,IAACiB,KAAiB,WAAWH,EAAA,CAAc,IAE3Cd,gBAAAA,EAAAA,IAACkB,GAAA,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