import{r as o,j as e,_ as t}from"./react-B_SyE9nW.js";import{H as r,I as i,J as n,T as a,c as l,K as u,L as s,j as c,i as d,M as p}from"./index-Flm6m8Wj.js";import{_ as m}from"./history-CBi_mSPs.js";import{c as h,i as M,r as y,a as g,f as b}from"./cssUtils-C_eak34j.js";import{R as x}from"./index-CWdensOV.js";import{G as f}from"./GlobalStyles-BvG5Cuz8.js";import"./styled-components-D7wwngcN.js";import"./sentry-Br0bWdGN.js";const k=o.createContext(null);function v(){return o.useContext(k)}const S="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function P(t){const{children:r,theme:i}=t,n=v(),a=o.useMemo((()=>{const o=null===n?i:function(o,e){if("function"==typeof e)return e(o);return m({},o,e)}(n,i);return null!=o&&(o[S]=null!==n),o}),[i,n]);return e.jsx(k.Provider,{value:a,children:r})}const j={};function O(e,t,r,i=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const n=r(o),a=e?m({},t,{[e]:n}):n;return i?()=>a:a}return m({},t,e?{[e]:r}:r)}),[e,t,r,i])}function w(o){const{children:t,theme:n,themeId:a}=o,l=r(j),u=v()||j,s=O(a,l,n),c=O(a,u,n,!0),d="rtl"===s.direction;return e.jsx(P,{theme:c,children:e.jsx(i.Provider,{value:s,children:e.jsx(x,{value:d,children:t})})})}const C=["theme"];function I(o){let{theme:r}=o,i=t(o,C);const n=r[a];return e.jsx(w,m({},i,{themeId:n?a:void 0,theme:n||r}))}const R=(o,e)=>m({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!o.vars&&{colorScheme:o.palette.mode}),B=o=>m({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}}),z=(o,e=!1)=>{var t;const r={};e&&o.colorSchemes&&Object.entries(o.colorSchemes).forEach((([e,t])=>{var i;r[o.getColorSchemeSelector(e).replace(/\s*&/,"")]={colorScheme:null==(i=t.palette)?void 0:i.mode}}));let i=m({html:R(o,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:m({margin:0},B(o),{"&::backdrop":{backgroundColor:(o.vars||o).palette.background.default}})},r);const n=null==(t=o.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return n&&(i=[i,n]),i};function A(t){const r=l({props:t,name:"MuiCssBaseline"}),{children:i,enableColorScheme:n=!1}=r;return e.jsxs(o.Fragment,{children:[e.jsx(f,{styles:o=>z(o,n)}),i]})}const F="primary",T={defaultProps:{color:F}};const $=function(o,e={}){const{breakpoints:t=["sm","md","lg"],disableAlign:r=!1,factor:i=2,variants:a=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=e,l=m({},o);l.typography=m({},l.typography);const u=l.typography,s=h(u.htmlFontSize),c=t.map((o=>l.breakpoints.values[o]));return a.forEach((o=>{const e=u[o],t=parseFloat(s(e.fontSize,"rem"));if(t<=1)return;const a=t,l=1+(a-1)/i;let{lineHeight:d}=e;if(!M(d)&&!r)throw new Error(n(6));M(d)||(d=parseFloat(s(d,"rem"))/parseFloat(t));let p=null;r||(p=o=>g({size:o,grid:b({pixels:4,lineHeight:d,htmlFontSize:u.htmlFontSize})})),u[o]=m({},e,y({cssProperty:"fontSize",min:l,max:a,unit:"rem",breakpoints:c,transform:p}))})),l}(u({typography:{fontFamily:s,fontWeightBold:500,button:{textTransform:"none"}},palette:{primary:{main:c.red},secondary:{light:c.gray50,main:c.gray,dark:c.darkGray},warning:{main:c.yellow},text:{primary:c.gray,secondary:c.red},background:{default:c.white}},shape:{borderRadius:28},components:{MuiButtonBase:{styleOverrides:{root:{fontFamily:"Poppins,sans-serif"}}},MuiButton:{defaultProps:{color:F,variant:"contained"},styleOverrides:{root:{borderRadius:28}}},MuiRadio:T,MuiCheckbox:T,MuiSvgIcon:T,MuiSwitch:T,MuiIconButton:{defaultProps:{color:F,"aria-label":"ButtonAriaLabel"}},MuiChip:T,MuiOutlinedInput:{styleOverrides:{root:{borderRadius:28,color:c.black}}},MuiInputLabel:{styleOverrides:{root:{top:-10,color:c.gray50,"&[hidden]":{visibility:"hidden"}}}},MuiInputBase:{styleOverrides:{root:{background:c.white},input:{p:"10px 25px","&::placeholder":{fontSize:d.micro,opacity:.7}}}},MuiDialog:{styleOverrides:{paper:{m:"unset",display:"flow-root",p:0,maxWidth:325,width:"90%"},paperScrollPaper:{maxHeight:"calc(100% - 56px)"}}},MuiDialogContent:{styleOverrides:{root:{p:"0 20px 20px",m:"unset"}}},MuiTextField:{defaultProps:{variant:"outlined",margin:"none",size:"small"}},MuiFormControl:{styleOverrides:{root:{m:"7px auto",width:"100%"}}},MuiFormHelperText:{styleOverrides:{root:{mt:0}}},MuiSelect:{styleOverrides:{select:{"&:focus":{bgcolor:c.white}}}},MuiFormLabel:{styleOverrides:{asterisk:{color:c.red}}},MuiPaper:{styleOverrides:{root:{borderRadius:18,"&.MuiAutocomplete-paper":{borderRadius:8}}}},MuiBottomNavigationAction:{styleOverrides:{root:{color:c.gray50,"& .MuiSvgIcon-root":{color:c.gray50},"&.Mui-selected .MuiSvgIcon-root":{color:c.red}}}},MuiAccordion:{styleOverrides:{root:{"&:not(:first-of-type)":{borderTop:`1px solid ${c.grayLighter}80`},"&:last-child":{borderBottom:`1px solid ${c.grayLighter}80`},boxShadow:"none","&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&$expanded":{m:"auto"},"&.MuiPaper-root":{borderRadius:0},"&.Mui-expanded":{m:0}},expanded:{}},defaultProps:{square:!0,TransitionProps:{unmountOnExit:!0}}},MuiAccordionSummary:{styleOverrides:{root:{mb:0,p:0,minHeight:56,borderBottom:"1px solid transparent","&$expanded":{minHeight:56},"&.Mui-expanded":{minHeight:56}},content:{"&.Mui-expanded":{m:"12px 0"},"& p":{fontSize:14,color:c.gray}},expanded:{}}},MuiAccordionDetails:{styleOverrides:{root:{p:"0 0 16px"}}}}})),H=p`
  html,
  body {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
  }

  *:not(.MuiInputBase-root *) {
    user-select: none;
  }

  .MuiRating-iconFilled {
    color: ${c.red};
  }

  .MuiRadio-root .MuiTypography-root,
  .MuiCheckbox-root .MuiTypography-root {
    color: ${c.gray};
  }

  .MuiAccordion-root .MuiAccordionSummary-content .MuiTypography-root {
    font-weight: bold;
  }

  .MuiRadio-root:not(.MuiRadio-colorPrimary.Mui-checked),
  .MuiRadio-root:not(.MuiRadio-colorPrimary.Mui-checked) ~ .MuiTypography-root,
  .MuiRadio-root:not(.MuiRadio-root.Mui-checked) .MuiSvgIcon-root.MuiSvgIcon-colorPrimary,
  .MuiCheckbox-root:not(.MuiCheckbox-colorPrimary.Mui-checked),
  .MuiCheckbox-root:not(.MuiCheckbox-colorPrimary.Mui-checked) ~ .MuiTypography-root,
  .MuiCheckbox-root:not(.MuiCheckbox-colorPrimary.Mui-checked) .MuiSvgIcon-root.MuiSvgIcon-colorPrimary {
    color: ${c.gray50};
    font-weight: 500;
  }

  .MuiRadio-root:not(.MuiRadio-root.Mui-checked) .MuiSvgIcon-root.MuiSvgIcon-colorPrimary,
  .MuiCheckbox-root:not(.MuiCheckbox-colorPrimary.Mui-checked) .MuiSvgIcon-root.MuiSvgIcon-colorPrimary {
    opacity: 0.6;
  }

  .MuiRadio-root.MuiRadio-colorPrimary.Mui-checked,
  .MuiRadio-root.MuiRadio-colorPrimary.Mui-checked ~ .MuiTypography-root,
  .MuiCheckbox-root.MuiCheckbox-colorPrimary.Mui-checked,
  .MuiCheckbox-root.MuiCheckbox-colorPrimary.Mui-checked ~ .MuiTypography-root {
    color: ${c.black};
    font-weight: 600;
  }

  button.MuiButtonBase-root {
    &.MuiPickersDay-today:not(.Mui-selected) {
      border-radius: 8px;
    }

    &.MuiPickersDay-root {
      color: ${c.darkGray};
      font-weight: bold;

      &.Mui-selected {
        color: ${c.white};
        background-color: ${c.red};
        border-radius: 8px;
      }
    }

    &.Mui-disabled {
      color: ${c.darkGray};
      font-weight: bold;

      &.MuiPickersDay-root {
        color: ${c.grayLighter};
        font-weight: normal;
      }
    }
  }

  fieldset.MuiOutlinedInput-notchedOutline {
    border-width: 1px !important;

    & > legend > span {
      display: none;
    }
  }

  .MuiAutocomplete-root fieldset.MuiOutlinedInput-notchedOutline {
    //top: 0;
  }

  .MuiInputBase-inputHiddenLabel ~ .MuiOutlinedInput-notchedOutline > fieldset > legend > span {
    display: none;
  }

  .MuiFormHelperText-root.Mui-error {
    font-style: italic;
  }

  .Mui-error > fieldset.MuiOutlinedInput-notchedOutline {
    border-width: 2px !important;
  }

  .MuiAutocomplete-root {
    &.enj-hide-popup-indicator {
      & .MuiAutocomplete-popupIndicator {
        display: none;
      }
    }

    & .Mui-disabled {
      .MuiSvgIcon-root {
        color: ${c.grayLighter};
      }
    }
  }

  .MuiSelect-selectMenu {
    text-align: start;
  }

  .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'] {
    background-color: rgba(214, 67, 0, 0.08) !important;
  }

  .MuiAutocomplete-listbox .MuiAutocomplete-option {
    padding: 4px 15px;
    min-height: 35px;
  }

  .enj-marker-label {
    font-size: 14px;
    font-weight: 500;
    width: 28px;
    height: 35px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
  }

  .enj-marker {
    position: relative;
    width: 48px;
    z-index: 10;
  }

  .enj-tracker-marker {
    width: 24px;
    z-index: 10;
  }

  .enj-loader {
    color: #ffbe38;
    font-size: 0.5em;
    margin: 100px auto;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    animation: rotate 1.3s infinite linear;
    transform: translateZ(0);
  }
`;function L({children:o=null,theme:t=$}){return e.jsxs(I,{theme:t,children:[e.jsx(A,{}),e.jsx(f,{styles:H}),o]})}export{L as default};