import{r,_ as e,j as o,h as t}from"./react-B_SyE9nW.js";import{_ as n}from"./history-CBi_mSPs.js";import{u as a}from"./index-CWdensOV.js";import{p as i,P as s,c as p,S as l}from"./index-C6Ujt1Uk.js";import{g as c,a as d,s as x,ah as h,f as m,c as C,e as u,S as f,j,o as g,B as v,ar as y,N as w,i as k,y as M,V as D,n as b,G as P}from"./index-Flm6m8Wj.js";import{F as S}from"./FAQIco-CFhJMNDH.js";import{L,W as A}from"./WarningIco-hfrnhue5.js";import{C as z}from"./ContactContext-CY5nd8oL.js";import{M as B,G as I}from"./styles-BKX5ijFq.js";import{M as H}from"./DownIco-uXp5N5Ip.js";import{D as R}from"./Divider-CSB2hYD2.js";function N(r){return c("MuiDrawer",r)}d("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const W=["BackdropProps"],$=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],T=(r,e)=>{const{ownerState:o}=r;return[e.root,("permanent"===o.variant||"persistent"===o.variant)&&e.docked,e.modal]},Z=x(i,{name:"MuiDrawer",slot:"Root",overridesResolver:T})((({theme:r})=>({zIndex:(r.vars||r).zIndex.drawer}))),E=x("div",{shouldForwardProp:h,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:T})({flex:"0 0 auto"}),V=x(s,{name:"MuiDrawer",slot:"Paper",overridesResolver:(r,e)=>{const{ownerState:o}=r;return[e.paper,e[`paperAnchor${m(o.anchor)}`],"temporary"!==o.variant&&e[`paperAnchorDocked${m(o.anchor)}`]]}})((({theme:r,ownerState:e})=>n({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(r.vars||r).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===e.anchor&&{left:0},"top"===e.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===e.anchor&&{right:0},"bottom"===e.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===e.anchor&&"temporary"!==e.variant&&{borderRight:`1px solid ${(r.vars||r).palette.divider}`},"top"===e.anchor&&"temporary"!==e.variant&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`},"right"===e.anchor&&"temporary"!==e.variant&&{borderLeft:`1px solid ${(r.vars||r).palette.divider}`},"bottom"===e.anchor&&"temporary"!==e.variant&&{borderTop:`1px solid ${(r.vars||r).palette.divider}`}))),O={left:"right",right:"left",top:"down",bottom:"up"};function F(r){return-1!==["left","right"].indexOf(r)}function G({direction:r},e){return"rtl"===r&&F(e)?O[e]:e}const q=r.forwardRef((function(i,s){const c=C({props:i,name:"MuiDrawer"}),d=p(),x=a(),h={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:j,children:g,className:v,elevation:y=16,hideBackdrop:w=!1,ModalProps:{BackdropProps:k}={},onClose:M,open:D=!1,PaperProps:b={},SlideProps:P,TransitionComponent:S=l,transitionDuration:L=h,variant:A="temporary"}=c,z=e(c.ModalProps,W),B=e(c,$),I=r.useRef(!1);r.useEffect((()=>{I.current=!0}),[]);const H=G({direction:x?"rtl":"ltr"},f),R=n({},c,{anchor:f,elevation:y,open:D,variant:A},B),T=(r=>{const{classes:e,anchor:o,variant:t}=r,n={root:["root"],docked:[("permanent"===t||"persistent"===t)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${m(o)}`,"temporary"!==t&&`paperAnchorDocked${m(o)}`]};return u(n,N,e)})(R),F=o.jsx(V,n({elevation:"temporary"===A?y:0,square:!0},b,{className:t(T.paper,b.className),ownerState:R,children:g}));if("permanent"===A)return o.jsx(E,n({className:t(T.root,T.docked,v),ownerState:R,ref:s},B,{children:F}));const q=o.jsx(S,n({in:D,direction:O[H],timeout:L,appear:I.current},P,{children:F}));return"persistent"===A?o.jsx(E,n({className:t(T.root,T.docked,v),ownerState:R,ref:s},B,{children:q})):o.jsx(Z,n({BackdropProps:n({},j,k,{transitionDuration:L}),className:t(T.root,T.modal,v),open:D,ownerState:R,onClose:M,hideBackdrop:w,ref:s},B,z,{children:q}))}));function Y(r){return o.jsxs(f,{...r,viewBox:"0 0 21 21",children:[o.jsx("path",{d:"M0 21L1.95 14.3C1.63333 13.6167 1.39583 12.9167 1.2375 12.2C1.07917 11.4833 1 10.75 1 10C1 8.61667 1.2625 7.31667 1.7875 6.1C2.3125 4.88333 3.025 3.825 3.925 2.925C4.825 2.025 5.88333 1.3125 7.1 0.7875C8.31667 0.2625 9.61667 0 11 0C12.3833 0 13.6833 0.2625 14.9 0.7875C16.1167 1.3125 17.175 2.025 18.075 2.925C18.975 3.825 19.6875 4.88333 20.2125 6.1C20.7375 7.31667 21 8.61667 21 10C21 11.3833 20.7375 12.6833 20.2125 13.9C19.6875 15.1167 18.975 16.175 18.075 17.075C17.175 17.975 16.1167 18.6875 14.9 19.2125C13.6833 19.7375 12.3833 20 11 20C10.25 20 9.51667 19.9208 8.8 19.7625C8.08333 19.6042 7.38333 19.3667 6.7 19.05L0 21ZM2.95 18.05L6.15 17.1C6.38333 17.0333 6.62083 17.0083 6.8625 17.025C7.10417 17.0417 7.33333 17.1 7.55 17.2C8.08333 17.4667 8.64167 17.6667 9.225 17.8C9.80833 17.9333 10.4 18 11 18C13.2333 18 15.125 17.225 16.675 15.675C18.225 14.125 19 12.2333 19 10C19 7.76667 18.225 5.875 16.675 4.325C15.125 2.775 13.2333 2 11 2C8.76667 2 6.875 2.775 5.325 4.325C3.775 5.875 3 7.76667 3 10C3 10.6 3.06667 11.1917 3.2 11.775C3.33333 12.3583 3.53333 12.9167 3.8 13.45C3.91667 13.6667 3.97917 13.8958 3.9875 14.1375C3.99583 14.3792 3.96667 14.6167 3.9 14.85L2.95 18.05Z"}),o.jsx("path",{d:"M10.9498 16C11.2998 16 11.5956 15.8792 11.8373 15.6375C12.079 15.3958 12.1998 15.1 12.1998 14.75C12.1998 14.4 12.079 14.1042 11.8373 13.8625C11.5956 13.6208 11.2998 13.5 10.9498 13.5C10.5998 13.5 10.304 13.6208 10.0623 13.8625C9.82064 14.1042 9.6998 14.4 9.6998 14.75C9.6998 15.1 9.82064 15.3958 10.0623 15.6375C10.304 15.8792 10.5998 16 10.9498 16ZM10.0498 12.15H11.8998C11.8998 11.6 11.9623 11.1667 12.0873 10.85C12.2123 10.5333 12.5665 10.1 13.1498 9.55C13.5831 9.11667 13.9248 8.70417 14.1748 8.3125C14.4248 7.92083 14.5498 7.45 14.5498 6.9C14.5498 5.96667 14.2081 5.25 13.5248 4.75C12.8415 4.25 12.0331 4 11.0998 4C10.1498 4 9.37897 4.25 8.7873 4.75C8.19564 5.25 7.78314 5.85 7.5498 6.55L9.1998 7.2C9.28314 6.9 9.47064 6.575 9.7623 6.225C10.054 5.875 10.4998 5.7 11.0998 5.7C11.6331 5.7 12.0331 5.84583 12.2998 6.1375C12.5665 6.42917 12.6998 6.75 12.6998 7.1C12.6998 7.43333 12.5998 7.74583 12.3998 8.0375C12.1998 8.32917 11.9498 8.6 11.6498 8.85C10.9165 9.5 10.4665 9.99167 10.2998 10.325C10.1331 10.6583 10.0498 11.2667 10.0498 12.15Z"})]})}const _={color:j.lightGray,width:"max-content",fontSize:"12px",textAlign:"start","@media(min-width:768px)":{display:"block",width:"100%",fontSize:"10px","& > span":{fontSize:"9px"},textAlign:"end"}};const Q=g((function(){return o.jsxs(v,{component:"span",sx:_,children:["enjoty v",y.version," ",o.jsx(w,{size:"minis",children:y.build})]})}));function U(r){return o.jsx(f,{...r,children:o.jsx("path",{d:"M6 18.025V9H7.6C7.71667 9 7.83333 9.0125 7.95 9.0375C8.06667 9.0625 8.18333 9.09167 8.3 9.125L15.225 11.7C15.4583 11.7833 15.6458 11.9333 15.7875 12.15C15.9292 12.3667 16 12.5917 16 12.825C16 13.175 15.8792 13.4583 15.6375 13.675C15.3958 13.8917 15.1167 14 14.8 14H12.175C12.0917 14 12.0292 13.9958 11.9875 13.9875C11.9458 13.9792 11.8917 13.9583 11.825 13.925L10.225 13.3L9.9 14.275L11.825 14.95C11.8583 14.9667 11.9083 14.9792 11.975 14.9875C12.0417 14.9958 12.1 15 12.15 15H19C19.5333 15 20 15.1917 20.4 15.575C20.8 15.9583 21 16.4333 21 17L13.025 20L6 18.025ZM0 20V9H4V20H0ZM15 11L10.85 6.95C10.3333 6.45 9.89583 5.89583 9.5375 5.2875C9.17917 4.67917 9 4.01667 9 3.3C9 2.38333 9.32083 1.60417 9.9625 0.9625C10.6042 0.320833 11.3833 0 12.3 0C12.8333 0 13.3333 0.1125 13.8 0.3375C14.2667 0.5625 14.6667 0.866667 15 1.25C15.3333 0.866667 15.7333 0.5625 16.2 0.3375C16.6667 0.1125 17.1667 0 17.7 0C18.6167 0 19.3958 0.320833 20.0375 0.9625C20.6792 1.60417 21 2.38333 21 3.3C21 4.01667 20.825 4.67917 20.475 5.2875C20.125 5.89583 19.6917 6.45 19.175 6.95L15 11Z",fill:"#D64300"})})}function X({anchorElHelp:e,setAnchorElHelp:t,title:n}){const{onClickContactUs:a}=r.useContext(z),i=r=>{t(null),a(r)};return o.jsxs(B,{sx:{display:"flex",gap:"30px",flexDirection:"column","& .MuiPaper-root":{width:"290px"},"& .MuiMenuItem-root, & .MuiMenuItem-root a":{fontSize:k.micro,color:j.gray}},MenuListProps:{"aria-labelledby":"enj-phone-button-rounded"},anchorEl:e,open:Boolean(e),onClose:()=>t(null),TransitionComponent:I,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"right"},children:[o.jsx(H,{onClick:()=>M.push(String(D("route.faq"))),children:o.jsxs(v,{sx:{display:"flex",ml:1,my:1,alignItems:"center","& .like-enjoty":{textWrap:"nowrap"}},children:[o.jsx(S,{}),o.jsx(w,{className:"text-menu-item",size:"micro",color:"gray",margin:"0 0 0 14px",weight:500,align:"center",children:b("faq")})]})}),o.jsx(R,{sx:{my:"30px",mx:"15px",width:P.isMobile?"240px":"267px",borderWidth:"1px 0 thin"}}),o.jsx(H,{onClick:()=>i("oMyOpinion"),children:o.jsxs(v,{sx:{display:"flex",ml:1,my:1,alignItems:"center","& .like-enjoty":{textWrap:"nowrap"}},children:[o.jsx(L,{}),o.jsx(w,{size:"micro",color:"gray",margin:"0 0 0 14px",weight:500,align:"center",children:b("likeEnjoty")})]})}),o.jsx(H,{onClick:()=>i("oNewFeat"),children:o.jsxs(v,{sx:{display:"flex",ml:1,my:1,alignItems:"center","& .like-enjoty":{textWrap:"nowrap"}},children:[o.jsx(U,{}),o.jsx(w,{size:"micro",color:"gray",margin:"0 0 0 14px",weight:500,align:"center",children:b("shareIdeas")})]})}),o.jsx(R,{sx:{my:"36px",mx:"15px",width:P.isMobile?"240px":"267px",borderWidth:"1px 0 thin"}}),o.jsx(H,{onClick:()=>i("oReport"),children:o.jsxs(v,{sx:{display:"flex",ml:1,my:1,alignItems:"center"},children:[o.jsx(A,{}),o.jsx(w,{size:"micro",color:"gray",margin:"0 0 0 14px",weight:500,align:"center",children:b("reportError")})]})}),o.jsx(R,{sx:{my:"30px",mx:"15px",width:P.isMobile?"240px":"267px",borderWidth:"1px 0 thin"}}),o.jsx(v,{sx:{ml:"16px",mt:1,"& .MuiBox-root":{textAlign:"start"}},children:o.jsx(Q,{})})]})}export{q as D,U as G,Y as H,Q as V,X as a,G as g,F as i};