const __vite__fileDeps=["assets/CelebrationIco-DzignSjF.js","assets/react-B_SyE9nW.js","assets/history-CBi_mSPs.js","assets/react-PwoM_cbw.css","assets/index-DVx3XUkT.js","assets/styled-components-D7wwngcN.js","assets/sentry-Br0bWdGN.js","assets/index-BxiUCzOx.css","assets/CollaborationIco-D_qo6Ie1.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); import{r as e,h as t,j as s,_ as i,z as o}from"./react-B_SyE9nW.js";import{aB as r,a as n,g as a,s as l,f as c,aC as d,aD as p,b as x,aE as u,e as m,_ as h,o as f,m as g,l as j,B as b,N as v,n as C,i as y,w as k,j as w,G as I,F as S,y as _,aq as L,ar as M,S as N,au as P,P as A,aF as F,Z as B,W as T,aA as E}from"./index-DVx3XUkT.js";import{U as D,C as R}from"./ItemLoading-B0qbhEL4.js";import{B as z,p as O,u as W,c as $}from"./Switch-a8Hc4XU-.js";import{E as V}from"./EditList-Cd8YmDhW.js";import{C as U,E as H}from"./ConfirmRemoveList-EAkR2ELD.js";import{B as G,U as Y}from"./UserListDetails-DrJq-NkI.js";import{H as X,a as Z,b as q,U as K,F as Q}from"./FollowFollowers-C_zMXxkN.js";import{i as J,g as ee,j as te,b as se,o as ie,e as oe,k as re,d as ne,M as ae,T as le,B as ce,a as de,h as pe}from"./index-HT-5AD7E.js";import{G as xe}from"./Grid-DRA5GTmM.js";import{A as ue,N as me,b as he,c as fe,S as ge,E as je,D as be,L as ve,d as Ce,e as ye,C as ke,M as we}from"./MyProfileHeader-7p1gLdJ1.js";import{T as Ie,P as Se}from"./BaseTabPanel-DAJXWgoz.js";import{B as _e}from"./BtnSave-C19HiOTc.js";import{B as Le,L as Me,W as Ne}from"./GoogleIdentityStoreContext-DPdR2OJT.js";import{F as Pe}from"./FldSwitch-BfSVJdBw.js";import{F as Ae}from"./FldTextSelect-CYrn0aFm.js";import{c as Fe,a as Be}from"./PersonalInfo-B-m63ytL.js";import{L as Te}from"./Language-yNTm1pCW.js";import{u as Ee,S as De,B as Re}from"./Stack-DWxbwU3r.js";import{E as ze}from"./FldRadioSort-Bt-3y7YR.js";import{F as Oe}from"./FldText-CoGyGXSJ.js";import{F as We}from"./FacebookIco-CJReqDRM.js";import{I as $e}from"./InstagramIco-ByV7tgnR.js";import{T as Ve}from"./TwitterIco-DhWIHfJt.js";import{L as Ue,R as He}from"./RegisterAction-BBlS4znl.js";import{U as Ge}from"./Url-C6XTBQVE.js";import{F as Ye}from"./FAQIco-CLFzVWzH.js";import{L as Xe}from"./LanguageIco-D0E9QSwS.js";import{M as Ze}from"./MessageIco-zMTCxxwJ.js";import{P as qe}from"./ProfileIco-CpBXv25N.js";import{W as Ke}from"./WebsiteIco-DJQ5rMsn.js";import{C as Qe}from"./ContactContext-DBdgNkfH.js";import{C as Je}from"./CircleCheckIco-BY245pyQ.js";import{V as et}from"./HelpMenu-Bvny7lm2.js";import{D as tt}from"./DownloadIco-Bl4GaAKy.js";import{r as st,u as it}from"./useAutoUpdateServiceWorker-CvwvjXL3.js";import{U as ot}from"./UpdateIco-BVovHkhu.js";import{L as rt}from"./Link-BvG5xHxi.js";import{B as nt}from"./BtnChip-FazAQ_kO.js";import{I as at}from"./ImageIco-BTTHFJ5H.js";import{F as lt,c as ct}from"./EditSuccessModal-DknloC6l.js";import{L as dt}from"./WarningIco-BqWiG8sL.js";import{B as pt}from"./BusinessIco-DqvV2WuT.js";import{S as xt}from"./BtnSort-DkdbM27h.js";import{a as ut,A as mt}from"./Statistics-_kjfnrnV.js";import{H as ht}from"./HomeContext-BNcXqVuR.js";import{N as ft}from"./NotificationContext-Dj_JgV5O.js";import{S as gt}from"./PhotoUpIco-CBJj1q9f.js";import jt from"./CelebrationIco-DzignSjF.js";import{C as bt,R as vt}from"./BtnSReply-6abPDBDT.js";import{a as Ct,u as yt}from"./embla-carousel-react.esm-NewS-kch.js";import{B as kt,P as wt,F as It}from"./BackIco-8zMErfY7.js";import{_ as St}from"./history-CBi_mSPs.js";import{u as _t}from"./index-CWdensOV.js";import{c as Lt}from"./index-dbPBR86R.js";import{v as Mt}from"./RatingReview-1uOdijm5.js";import{A as Nt}from"./Avatar-BsiN2ezt.js";import{C as Pt}from"./ClaimSendConfirmation-YSHItvZB.js";import"./styled-components-D7wwngcN.js";import"./sentry-Br0bWdGN.js";import"./createSvgIcon-CRufxXOX.js";import"./CloseManageList-hyih9r7O.js";import"./BtnAccept-DuA7pTxU.js";import"./BtnGeneric-VNHvyqX_.js";import"./FldTextArea-C8EQrgi3.js";import"./PictureBox-DRdNsjma.js";import"./RatingReviewTitle-BHMCdk_D.js";import"./SubTitle-CIQFjien.js";import"./TrashIco-CXUipucv.js";import"./FldRadio-B86iYBMu.js";import"./styles-Dr-0T67S.js";import"./GlobalStyles-DQe6i-JI.js";import"./BtnShadow-C8wlgmJV.js";import"./SwitchBase-BkR_KtPc.js";import"./BtnCancel-B4o76N3R.js";import"./Address-D7cjbXj0.js";import"./listItemButtonClasses-0sZQWNAV.js";import"./GenericAvatarHeader-DO7pCYOO.js";import"./NoFound-CkLZ6FHd.js";import"./NoFoundIco-CCMbds0r.js";import"./ListIco-CIJlF_Uh.js";import"./EnjBackdrop-CWn95p49.js";import"./ClockIco-DD83_h6b.js";import"./SearchMap-BBAveyfR.js";import"./BusinessReviewStore-B1li4-uN.js";import"./CoreServices-SqNJAolu.js";import"./BtnRestart-Y6iH4BTJ.js";import"./SearchRating-B2uAkqf5.js";import"./PublishIco-CTt5pd1e.js";import"./PublishContext-BPIl0LWV.js";import"./PublishRedirect-Cs6SvL_-.js";import"./BtnIconRounded-CfwY9W7B.js";import"./NoOptionsText-CNa8Bm1k.js";import"./PopperGoogle-CfjtFHGm.js";import"./Autocomplete-B-M5Q-AZ.js";import"./usePreviousProps-GIwTB3Ki.js";import"./NearIco-CYQYG08Z.js";import"./SearchIco-DTCP2lIv.js";import"./BaseList-BS6_vFm0.js";import"./FldCuisineType-DJPkWJ2_.js";import"./DownIco-B67nTPsD.js";import"./Checkbox-Ctz9c9jx.js";import"./BusinessContext-DGcTXG3r.js";import"./AddBusinessModal-DG9-oryx.js";import"./FldAutocomplete-DdzXexOn.js";import"./FldIngredients-BngvrW3W.js";import"./Divider-CvF4q94n.js";import"./ServicesModal-CZP4rIgG.js";import"./index-B8y-0PJN.js";import"./ActivityBody-XkYu9mGa.js";import"./Frame-lvZI9GSc.js";import"./EditIco-sjndGYzv.js";import"./EditBusinessReview-PKZQ-ev3.js";import"./BagIco-NRTShpWn.js";import"./CalendarIco-1grwueIG.js";import"./index-eKDAOccZ.js";import"./InputAdornment-CMJm1Szv.js";import"./colorManipulator-DR3Qv2hV.js";import"./RatingPrice-p6_8TWOj.js";import"./BtnFilter-DYJK-nlF.js";import"./BlogIco-DxRlVvZ7.js";import"./FooterLang-CKU3T33X.js";import"./PasswordChange-ngzb2gze.js";import"./PasswordConfirm-XSoESZya.js";import"./Password-Br_zIGXj.js";import"./HelpComponent-DlPcyq_0.js";import"./Badge-BxUs8dOy.js";import"./FldDate-Cly9BGP_.js";import"./styles-CouVAG0q.js";import"./DeliveryIco-s-WO99Xm.js";import"./AccordionSummary-BIfMWSAn.js";import"./useSlot-48k3ed2d.js";import"./Tooltip-C3_xfLH8.js";import"./ErrorIco-9lrqXIPt.js";import"./ActivityIco-DkU_vd49.js";import"./SendIco-Bjm-vQBV.js";function At(e,t){return e-t}function Ft(e,t){var s;const{index:i}=null!=(s=e.reduce(((e,s,i)=>{const o=Math.abs(t-s);return null===e||o<e.distance||o===e.distance?{distance:o,index:i}:e}),null))?s:{};return i}function Bt(e,t){if(void 0!==t.current&&e.changedTouches){const s=e;for(let e=0;e<s.changedTouches.length;e+=1){const i=s.changedTouches[e];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Tt(e,t,s){return 100*(e-t)/(s-t)}function Et(e,t,s){const i=Math.round((e-s)/t)*t+s;return Number(i.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),s=t[0].split(".")[1];return(s?s.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function Dt({values:e,newValue:t,index:s}){const i=e.slice();return i[s]=t,i.sort(At)}function Rt({sliderRef:e,activeIndex:t,setActive:s}){var i,o;const r=ie(e.current);var n;null!=(i=e.current)&&i.contains(r.activeElement)&&Number(null==r||null==(o=r.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(n=e.current)||n.querySelector(`[type="range"][data-index="${t}"]`).focus());s&&s(t)}function zt(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,s=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,i)=>s(e,t[i])))}(e,t)}const Ot={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Wt=e=>e;let $t;function Vt(){return void 0===$t&&($t="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),$t}function Ut(e){return a("MuiSlider",e)}const Ht=n("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const Gt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],Yt=Lt();function Xt(e){return e}const Zt=l("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`color${c(s.color)}`],"medium"!==s.size&&t[`size${c(s.size)}`],s.marked&&t.marked,"vertical"===s.orientation&&t.vertical,"inverted"===s.track&&t.trackInverted,!1===s.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ht.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ht.dragging}`]:{[`& .${Ht.thumb}, & .${Ht.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var s;return(null!=(s=e.vars)?s:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),qt=l("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Kt=l("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var s;return(null!=(s=e.vars)?s:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:St({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:St({backgroundColor:d(e.palette[t].main,.62),borderColor:d(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:p(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:p(e.palette[t].main,.5)})))})))]}})),Qt=l("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.thumb,t[`thumbColor${c(s.color)}`],"medium"!==s.size&&t[`thumbSize${c(s.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ht.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var s;return(null!=(s=e.vars)?s:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${Ht.focusVisible}`]:St({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${x(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Ht.active}`]:St({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)}`}:{boxShadow:`0px 0px 0px 14px ${x(e.palette[t].main,.16)}`})}}))),{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}}]}})),Jt=l((function(i){const{children:o,className:r,value:n}=i,a=(e=>{const{open:s}=e;return{offset:t(s&&Ht.valueLabelOpen),circle:Ht.valueLabelCircle,label:Ht.valueLabelLabel}})(i);return o?e.cloneElement(o,{className:t(o.props.className)},s.jsxs(e.Fragment,{children:[o.props.children,s.jsx("span",{className:t(a.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:a.circle,children:s.jsx("span",{className:a.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>St({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ht.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ht.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),es=l("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>u(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:s}=e;return[t.mark,s&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),ts=l("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>u(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>St({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),ss=({children:e})=>e,is=e.forwardRef((function(o,n){var a,l,d,p,x,u,h,f,g,j,b,v,C,y,k,w,I,S,_,L,M,N,P,A;const F=Yt({props:o,name:"MuiSlider"}),B=_t(),{"aria-label":T,"aria-valuetext":E,"aria-labelledby":D,component:R="span",components:z={},componentsProps:O={},color:W="primary",classes:$,className:V,disableSwap:U=!1,disabled:H=!1,getAriaLabel:G,getAriaValueText:Y,marks:X=!1,max:Z=100,min:q=0,orientation:K="horizontal",shiftStep:Q=10,size:ae="medium",step:le=1,scale:ce=Xt,slotProps:de,slots:pe,track:xe="normal",valueLabelDisplay:ue="off",valueLabelFormat:me=Xt}=F,he=i(F,Gt),fe=St({},F,{isRtl:B,max:Z,min:q,classes:$,disabled:H,disableSwap:U,orientation:K,marks:X,color:W,size:ae,step:le,shiftStep:Q,scale:ce,track:xe,valueLabelDisplay:ue,valueLabelFormat:me}),{axisProps:ge,getRootProps:je,getHiddenInputProps:be,getThumbProps:ve,open:Ce,active:ye,axis:ke,focusedThumbIndex:we,range:Ie,dragging:Se,marks:_e,values:Le,trackOffset:Me,trackLeap:Ne,getThumbStyle:Pe}=function(t){const{"aria-labelledby":s,defaultValue:i,disabled:o=!1,disableSwap:n=!1,isRtl:a=!1,marks:l=!1,max:c=100,min:d=0,name:p,onChange:x,onChangeCommitted:u,orientation:m="horizontal",rootRef:h,scale:f=Wt,step:g=1,shiftStep:j=10,tabIndex:b,value:v}=t,C=e.useRef(),[y,k]=e.useState(-1),[w,I]=e.useState(-1),[S,_]=e.useState(!1),L=e.useRef(0),[M,N]=Ee({controlled:v,default:null!=i?i:d,name:"Slider"}),P=x&&((e,t,s)=>{const i=e.nativeEvent||e,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:p}}),x(o,t,s)}),A=Array.isArray(M);let F=A?M.slice().sort(At):[M];F=F.map((e=>null==e?d:r(e,d,c)));const B=!0===l&&null!==g?[...Array(Math.floor((c-d)/g)+1)].map(((e,t)=>({value:d+g*t}))):l||[],T=B.map((e=>e.value)),{isFocusVisibleRef:E,onBlur:D,onFocus:R,ref:z}=J(),[O,W]=e.useState(-1),$=e.useRef(),V=ee(z,$),U=ee(h,V),H=e=>t=>{var s;const i=Number(t.currentTarget.getAttribute("data-index"));R(t),!0===E.current&&W(i),I(i),null==e||null==(s=e.onFocus)||s.call(e,t)},G=e=>t=>{var s;D(t),!1===E.current&&W(-1),I(-1),null==e||null==(s=e.onBlur)||s.call(e,t)},Y=(e,t)=>{const s=Number(e.currentTarget.getAttribute("data-index")),i=F[s],o=T.indexOf(i);let a=t;if(B&&null==g){const e=T[T.length-1];a=a>e?e:a<T[0]?T[0]:a<i?T[o-1]:T[o+1]}if(a=r(a,d,c),A){n&&(a=r(a,F[s-1]||-1/0,F[s+1]||1/0));const e=a;a=Dt({values:F,newValue:a,index:s});let t=s;n||(t=a.indexOf(e)),Rt({sliderRef:$,activeIndex:t})}N(a),W(s),P&&!zt(a,M)&&P(e,a,s),u&&u(e,a)},X=e=>t=>{var s;if(null!==g){const e=Number(t.currentTarget.getAttribute("data-index")),s=F[e];let i=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?i=Math.max(s-j,d):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(i=Math.min(s+j,c)),null!==i&&(Y(t,i),t.preventDefault())}null==e||null==(s=e.onKeyDown)||s.call(e,t)};te((()=>{var e;o&&$.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[o]),o&&-1!==y&&k(-1),o&&-1!==O&&W(-1);const Z=e.useRef();let q=m;a&&"horizontal"===m&&(q+="-reverse");const K=({finger:e,move:t=!1})=>{const{current:s}=$,{width:i,height:o,bottom:a,left:l}=s.getBoundingClientRect();let p,x;if(p=0===q.indexOf("vertical")?(a-e.y)/o:(e.x-l)/i,-1!==q.indexOf("-reverse")&&(p=1-p),x=function(e,t,s){return(s-t)*e+t}(p,d,c),g)x=Et(x,g,d);else{const e=Ft(T,x);x=T[e]}x=r(x,d,c);let u=0;if(A){u=t?Z.current:Ft(F,x),n&&(x=r(x,F[u-1]||-1/0,F[u+1]||1/0));const e=x;x=Dt({values:F,newValue:x,index:u}),n&&t||(u=x.indexOf(e),Z.current=u)}return{newValue:x,activeIndex:u}},Q=se((e=>{const t=Bt(e,C);if(!t)return;if(L.current+=1,"mousemove"===e.type&&0===e.buttons)return void re(e);const{newValue:s,activeIndex:i}=K({finger:t,move:!0});Rt({sliderRef:$,activeIndex:i,setActive:k}),N(s),!S&&L.current>2&&_(!0),P&&!zt(s,M)&&P(e,s,i)})),re=se((e=>{const t=Bt(e,C);if(_(!1),!t)return;const{newValue:s}=K({finger:t,move:!0});k(-1),"touchend"===e.type&&I(-1),u&&u(e,s),C.current=void 0,ae()})),ne=se((e=>{if(o)return;Vt()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(C.current=t.identifier);const s=Bt(e,C);if(!1!==s){const{newValue:t,activeIndex:i}=K({finger:s});Rt({sliderRef:$,activeIndex:i,setActive:k}),N(t),P&&!zt(t,M)&&P(e,t,i)}L.current=0;const i=ie($.current);i.addEventListener("touchmove",Q,{passive:!0}),i.addEventListener("touchend",re,{passive:!0})})),ae=e.useCallback((()=>{const e=ie($.current);e.removeEventListener("mousemove",Q),e.removeEventListener("mouseup",re),e.removeEventListener("touchmove",Q),e.removeEventListener("touchend",re)}),[re,Q]);e.useEffect((()=>{const{current:e}=$;return e.addEventListener("touchstart",ne,{passive:Vt()}),()=>{e.removeEventListener("touchstart",ne),ae()}}),[ae,ne]),e.useEffect((()=>{o&&ae()}),[o,ae]);const le=Tt(A?F[0]:d,d,c),ce=Tt(F[F.length-1],d,c)-le,de=e=>t=>{var s;null==(s=e.onMouseLeave)||s.call(e,t),I(-1)};return{active:y,axis:q,axisProps:Ot,dragging:S,focusedThumbIndex:O,getHiddenInputProps:(e={})=>{var i;const r=oe(e),n={onChange:(l=r||{},e=>{var t;null==(t=l.onChange)||t.call(l,e),Y(e,e.target.valueAsNumber)}),onFocus:H(r||{}),onBlur:G(r||{}),onKeyDown:X(r||{})};var l;const x=St({},r,n);return St({tabIndex:b,"aria-labelledby":s,"aria-orientation":m,"aria-valuemax":f(c),"aria-valuemin":f(d),name:p,type:"range",min:t.min,max:t.max,step:null===t.step&&t.marks?"any":null!=(i=t.step)?i:void 0,disabled:o},e,x,{style:St({},Mt,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=oe(e),s={onMouseDown:(i=t||{},e=>{var t;if(null==(t=i.onMouseDown)||t.call(i,e),o)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const s=Bt(e,C);if(!1!==s){const{newValue:t,activeIndex:i}=K({finger:s});Rt({sliderRef:$,activeIndex:i,setActive:k}),N(t),P&&!zt(t,M)&&P(e,t,i)}L.current=0;const r=ie($.current);r.addEventListener("mousemove",Q,{passive:!0}),r.addEventListener("mouseup",re)})};var i;const r=St({},t,s);return St({},e,{ref:U},r)},getThumbProps:(e={})=>{const t=oe(e),s={onMouseOver:(i=t||{},e=>{var t;null==(t=i.onMouseOver)||t.call(i,e);const s=Number(e.currentTarget.getAttribute("data-index"));I(s)}),onMouseLeave:de(t||{})};var i;return St({},e,t,s)},marks:B,open:w,range:A,rootRef:U,trackLeap:ce,trackOffset:le,values:F,getThumbStyle:e=>({pointerEvents:-1!==y&&y!==e?"none":void 0})}}(St({},fe,{rootRef:n}));fe.marked=_e.length>0&&_e.some((e=>e.label)),fe.dragging=Se,fe.focusedThumbIndex=we;const Ae=(e=>{const{disabled:t,dragging:s,marked:i,orientation:o,track:r,classes:n,color:a,size:l}=e,d={root:["root",t&&"disabled",s&&"dragging",i&&"marked","vertical"===o&&"vertical","inverted"===r&&"trackInverted",!1===r&&"trackFalse",a&&`color${c(a)}`,l&&`size${c(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${c(l)}`,a&&`thumbColor${c(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return m(d,Ut,n)})(fe),Fe=null!=(a=null!=(l=null==pe?void 0:pe.root)?l:z.Root)?a:Zt,Be=null!=(d=null!=(p=null==pe?void 0:pe.rail)?p:z.Rail)?d:qt,Te=null!=(x=null!=(u=null==pe?void 0:pe.track)?u:z.Track)?x:Kt,De=null!=(h=null!=(f=null==pe?void 0:pe.thumb)?f:z.Thumb)?h:Qt,Re=null!=(g=null!=(j=null==pe?void 0:pe.valueLabel)?j:z.ValueLabel)?g:Jt,ze=null!=(b=null!=(v=null==pe?void 0:pe.mark)?v:z.Mark)?b:es,Oe=null!=(C=null!=(y=null==pe?void 0:pe.markLabel)?y:z.MarkLabel)?C:ts,We=null!=(k=null!=(w=null==pe?void 0:pe.input)?w:z.Input)?k:"input",$e=null!=(I=null==de?void 0:de.root)?I:O.root,Ve=null!=(S=null==de?void 0:de.rail)?S:O.rail,Ue=null!=(_=null==de?void 0:de.track)?_:O.track,He=null!=(L=null==de?void 0:de.thumb)?L:O.thumb,Ge=null!=(M=null==de?void 0:de.valueLabel)?M:O.valueLabel,Ye=null!=(N=null==de?void 0:de.mark)?N:O.mark,Xe=null!=(P=null==de?void 0:de.markLabel)?P:O.markLabel,Ze=null!=(A=null==de?void 0:de.input)?A:O.input,qe=ne({elementType:Fe,getSlotProps:je,externalSlotProps:$e,externalForwardedProps:he,additionalProps:St({},(Ke=Fe,(!Ke||!re(Ke))&&{as:R})),ownerState:St({},fe,null==$e?void 0:$e.ownerState),className:[Ae.root,V]});var Ke;const Qe=ne({elementType:Be,externalSlotProps:Ve,ownerState:fe,className:Ae.rail}),Je=ne({elementType:Te,externalSlotProps:Ue,additionalProps:{style:St({},ge[ke].offset(Me),ge[ke].leap(Ne))},ownerState:St({},fe,null==Ue?void 0:Ue.ownerState),className:Ae.track}),et=ne({elementType:De,getSlotProps:ve,externalSlotProps:He,ownerState:St({},fe,null==He?void 0:He.ownerState),className:Ae.thumb}),tt=ne({elementType:Re,externalSlotProps:Ge,ownerState:St({},fe,null==Ge?void 0:Ge.ownerState),className:Ae.valueLabel}),st=ne({elementType:ze,externalSlotProps:Ye,ownerState:fe,className:Ae.mark}),it=ne({elementType:Oe,externalSlotProps:Xe,ownerState:fe,className:Ae.markLabel}),ot=ne({elementType:We,getSlotProps:be,externalSlotProps:Ze,ownerState:fe});return s.jsxs(Fe,St({},qe,{children:[s.jsx(Be,St({},Qe)),s.jsx(Te,St({},Je)),_e.filter((e=>e.value>=q&&e.value<=Z)).map(((i,o)=>{const r=Tt(i.value,q,Z),n=ge[ke].offset(r);let a;return a=!1===xe?-1!==Le.indexOf(i.value):"normal"===xe&&(Ie?i.value>=Le[0]&&i.value<=Le[Le.length-1]:i.value<=Le[0])||"inverted"===xe&&(Ie?i.value<=Le[0]||i.value>=Le[Le.length-1]:i.value>=Le[0]),s.jsxs(e.Fragment,{children:[s.jsx(ze,St({"data-index":o},st,!re(ze)&&{markActive:a},{style:St({},n,st.style),className:t(st.className,a&&Ae.markActive)})),null!=i.label?s.jsx(Oe,St({"aria-hidden":!0,"data-index":o},it,!re(Oe)&&{markLabelActive:a},{style:St({},n,it.style),className:t(Ae.markLabel,it.className,a&&Ae.markLabelActive),children:i.label})):null]},o)})),Le.map(((e,i)=>{const o=Tt(e,q,Z),r=ge[ke].offset(o),n="off"===ue?ss:Re;return s.jsx(n,St({},!re(n)&&{valueLabelFormat:me,valueLabelDisplay:ue,value:"function"==typeof me?me(ce(e),i):me,index:i,open:Ce===i||ye===i||"on"===ue,disabled:H},tt,{children:s.jsx(De,St({"data-index":i},et,{className:t(Ae.thumb,et.className,ye===i&&Ae.active,we===i&&Ae.focusVisible),style:St({},r,Pe(i),et.style),children:s.jsx(We,St({"data-index":i,"aria-label":G?G(i):T,"aria-valuenow":ce(e),"aria-labelledby":D,"aria-valuetext":Y?Y(ce(e),i):E,value:Le[i]},ot))}))}),i)}))]}))})),os=e.lazy((()=>h((()=>import("./CelebrationIco-DzignSjF.js")),__vite__mapDeps([0,1,2,3,4,5,6,7]))));const rs=f((function(){const t=e.useContext(D);return s.jsx(ae,{open:g.isSuccessMsg,onClose:j,children:s.jsxs(xe,{direction:"column",display:"flex",alignItems:"center",container:!0,children:[s.jsx(b,{sx:{mb:"10px",ml:"18px",width:"185px",height:"200px",display:"flow-root"},children:s.jsx(os,{sx:{width:"100%",height:"100%"}})}),s.jsx(v,{size:"micro",color:"lightGray",margin:"20px 0",children:C(t.getSuccessMsg)})]})})})),ns=e.lazy((()=>h((()=>import("./CollaborationIco-D_qo6Ie1.js")),__vite__mapDeps([8,1,2,3,4,5,6,7]))));const as=f((function(){return s.jsx(ae,{open:g.isMoreAboutCollaboration,onClose:j,children:s.jsxs(xe,{direction:"column",display:"flex",alignItems:"center",container:!0,children:[s.jsx(b,{sx:{mb:"10px",ml:"18px",width:"185px",height:"200px",display:"flow-root"},children:s.jsx(ns,{sx:{width:"100%",height:"100%"}})}),s.jsx(v,{size:"micro",color:"lightGray",margin:"20px 0",align:"justify",children:C("collaborationsDescription")})]})})}));function ls(){k("MORE_ABOUT_COLLABORATION")}const cs=f((function(){const t=e.useContext(D);return s.jsxs(De,{sx:{alignItems:"flex-start",p:"2em","@media(min-width:768px)":{maxWidth:"296px",mx:"auto",p:"40px 0 0","& > p":{mb:"20px"}},"@media(min-width:1366px)":{maxWidth:"351px",pt:"45px"}},children:[s.jsx(le,{color:"red",text:C("generalInfo"),margin:"0 0 0 -20px"}),s.jsx(Te,{register:!1,onChangeRoute:t.onChangeRoute,autoload:!1,forceOnTable:!0}),s.jsx(Ae,{required:!0,validateOnBlur:!0,fieldState:t.form.communication_gender,hiddenLabel:!1,label:C("preferredCommunication"),options:Fe}),s.jsx(Pe,{sx:{"&&.MuiFormControlLabel-root":{mt:"15px",alignItems:"flex-start",marginLeft:"10px",width:"calc(100% - 10px)"}},fieldState:t.form.accept_ads_collab,label:s.jsxs(De,{sx:{mr:"20px"},children:[s.jsx(v,{size:"mini",children:C("openToCollaboration")}),s.jsx(Le,{sx:{"&&.MuiButton-root":{p:0,fontSize:y.minis}},onClick:ls,children:C("moreAboutCollaborations")})]})}),s.jsx(_e,{sx:{"&&.MuiButton-root":{my:"40px","@media(min-width:768px)":{mt:"75px"}}},onClick:t.onClickSaveGeneralInfo}),s.jsx(as,{})]})}));const ds=f((function(){const t=e.useContext(D),{getSocialForm:{twitter:i,facebook:o,instagram:r}}=t;return s.jsxs(De,{sx:{alignItems:"center",p:"0 1em"},children:[s.jsx(Oe,{fieldState:r,label:"Instagram",hiddenLabel:!1,placeholder:C("socialNetworkUserPlaceholder"),InputProps:{endAdornment:s.jsx($e,{})}}),s.jsx(Oe,{fieldState:o,label:"Facebook",hiddenLabel:!1,placeholder:"facebook.com/XXXX",InputProps:{endAdornment:s.jsx(We,{})}}),s.jsx(Oe,{fieldState:i,label:"Twitter",hiddenLabel:!1,placeholder:C("socialNetworkUserPlaceholder"),InputProps:{endAdornment:s.jsx(Ve,{})}})]})})),ps={pb:"20px","@media(min-width:768px)":{maxWidth:"296px",mx:"auto",pt:"37px"},"@media(min-width:1366px)":{maxWidth:"352px"}},xs={"&& p":{color:w.red,fontSize:y.small,fontWeight:500}};const us=f((function(){const t=e.useContext(D);return s.jsxs(De,{sx:ps,children:[s.jsx(ze,{maxHeight:I.height-228+"px",defaultAllExpanded:!0,items:[{key:"personal_info",title:C("personalInfo"),children:s.jsx(Be,{}),sxTitle:xs},{key:"social_networks",title:C("social"),children:s.jsx(ds,{}),sxTitle:xs}]}),s.jsx(_e,{sx:{"&&.MuiButton-root":{mt:"15px"}},onClick:t.onClickUserSave})]})}));const ms=f((function(){const t=e.useContext(Me),i=e.useContext(D);return e.useEffect((()=>{t.setCb((()=>{i.onLoginUser().then()}))})),s.jsxs(b,{sx:{my:"auto","& > p":{maxWidth:"220px","@media(min-width:768px)":{maxWidth:"336px",mt:"163px"},"@media(min-width:1366px)":{mt:"69px"}},"& .enj-login-form":{p:"15px 0 10px","@media(min-width:768px)":{maxWidth:"350px"}}},children:[s.jsx(le,{text:C("needStartSession"),margin:`20px auto ${I.isDesktop?12:0}px`,align:"center"}),s.jsx(Ue,{isModal:!0,withoutStop:!0}),s.jsx(He,{textId:"signUpCommentProfile"})]})}));const hs=f((function({textId:e,Ico:t,onClick:i}){return s.jsxs(ce,{onClick:i,sx:{my:"6px"},children:[s.jsx(t,{}),s.jsx(v,{margin:"0 0 0 15px",size:"micro",weight:500,children:C(e)})]})}));const fs=f((function(){return S.isVerified?s.jsx(s.Fragment,{}):s.jsx(hs,{Ico:Je,textId:"accountVerification",onClick:S.onResendEmailVerification})}));const gs=f((function(){const t=e.useContext(D),{onClickContactUs:i}=e.useContext(Qe),[o,r]=e.useState(!1);return e.useEffect((()=>{(async()=>{var e;const t=null==(e=await navigator.serviceWorker.getRegistration("/"))?void 0:e.waiting;r(Boolean(t))})()}),[open]),s.jsxs(De,{alignItems:"flex-start",pt:"20px",pb:"15",position:"relative",height:I.height-158+"px",children:[S.isAuth?s.jsxs(s.Fragment,{children:[s.jsx(hs,{Ico:qe,textId:"accountConfig",onClick:t.onClickAccountConfig}),s.jsx(b,{sx:{display:"flex",width:"100%",alignItems:"center",gap:"5px"},children:s.jsx(hs,{Ico:ue,textId:"userStats",onClick:t.onClickUserStats})}),s.jsxs(b,{sx:{display:"flex",width:"100%",alignItems:"center",gap:"5px"},children:[s.jsx(hs,{Ico:me,textId:"notifications",onClick:t.onClickUserNotification}),s.jsx(b,{sx:{width:"45px",height:"15px",textAlign:"center",bgcolor:w.yellow,borderRadius:"4px",ml:"5px"},children:s.jsx(de,{color:"black",text:C("new"),weight:500,align:"center",size:"mini",lineHeight:1.3})})]}),s.jsxs(b,{sx:{display:"flex",width:"100%",alignItems:"center",gap:"5px"},children:[s.jsx(hs,{Ico:he,textId:"inviteFriends",onClick:t.onClickInviteFriends}),s.jsx(b,{sx:{width:"45px",height:"15px",textAlign:"center",bgcolor:w.yellow,borderRadius:"4px",ml:"5px"},children:s.jsx(de,{color:"black",text:C("new"),weight:500,align:"center",size:"mini",lineHeight:1.3})})]}),s.jsx(fs,{}),s.jsx(hs,{Ico:fe,textId:"changePass",onClick:t.onClickChangePass})]}):I.isMobile?s.jsxs(b,{sx:{display:"flex",width:"250px",alignItems:"center"},children:[s.jsx(Xe,{}),s.jsx(v,{margin:"0 10px",children:C("language")}),s.jsx(Te,{register:!1,inline:!0})]}):s.jsx(s.Fragment,{}),s.jsx(ge,{}),s.jsx(hs,{Ico:Ye,textId:"faq",onClick:()=>_.push(C("route.faq"))}),s.jsx(Ge,{route:L("route.faq")}),s.jsx(rt,{target:"_blank",href:"https://blog.enjoty.com",underline:"none",children:s.jsx(hs,{Ico:Ke,textId:"blog"})}),s.jsx(hs,{Ico:je,textId:"aboutEnjoty",onClick:()=>_.push(C("route.about"))}),s.jsx(hs,{Ico:Ze,textId:"contactUs",onClick:()=>i()}),s.jsx(ge,{}),!S.checkInstalledApp&&(M.beforeInstall||S.isSafariOnAppleDevice)&&s.jsx(hs,{onClick:async()=>{if(S.isSafariOnAppleDevice)k("PWA_INSTALLATION"),t.onClickBackProfileNav();else{if(!M.beforeInstall)return;if(M.beforeInstall){M.beforeInstall.prompt();"accepted"===(await M.beforeInstall.userChoice).outcome&&(t.onClickBackProfileNav(),M.cleanMethod())}}},Ico:tt,textId:"installApp"}),o&&s.jsx(hs,{onClick:st,Ico:ot,textId:"updatePage"}),(o||!S.checkInstalledApp&&(M.beforeInstall||S.isSafariOnAppleDevice))&&s.jsx(ge,{}),s.jsx(hs,{Ico:be,textId:"termsConditions",onClick:()=>_.push(C("route.terms"))}),s.jsx(hs,{Ico:ve,textId:"privacyCookiePolicy",onClick:()=>_.push(C("route.privacy"))}),s.jsx(hs,{Ico:be,textId:"contestBases",onClick:()=>_.push(C("route.bases"))}),s.jsx(ge,{}),S.isAuth?s.jsx(hs,{Ico:Ce,textId:"logout",onClick:t.onClickLogout}):s.jsx(hs,{Ico:ye,textId:"startSession",onClick:t.onClickLogin}),s.jsx(ge,{}),s.jsx(ke,{}),s.jsx(et,{})]})}));const js=f((function({Ico:e,textId:t,statsNumber:i,sx:o,extraElement:r}){return s.jsxs(b,{sx:o,children:[s.jsx(e,{}),s.jsxs(v,{size:"micro",margin:"0px 5px",sx:{textWrap:"nowrap"},children:[C(t),":"]}),s.jsx(v,{size:"micro",weight:"bold",margin:"0 8px 0 2px",sx:{textWrap:"nowrap"},children:null===i?"-":i}),r||s.jsx(s.Fragment,{})]})}));function bs(e){return s.jsx(N,{...e,children:s.jsx("path",{d:"m16.8,0H7.4c-1.4,0-2.2,1.4-1.9,2.7H1.1c-3,2,.9,8.2,2.3,9.4,2.3,3,6.6,2,7.4,5.1,0,1.5-1.5,1.7-2.7,1.6-.7,0-1.3.6-1.3,1.3-.3,2.5,8.2.9,9.3,1.3.7,0,1.3-.6,1.3-1.3s-.6-1.3-1.3-1.3c-1.1.1-2.7-.1-2.7-1.6.8-3,5.1-2.1,7.4-5.1,1.3-1.2,5.2-7.4,2.3-9.4,0,0-4.4,0-4.4,0C18.9,1.4,18.2,0,16.7,0h0ZM2.1,4.7h3.5c.4,3.8,1.2,6.3,2.2,7.9-3.2-1.5-5.3-3.7-5.7-7.9h0Zm17.3,5.9c-.9.9-2,1.6-3,2,1-1.7,1.8-4.2,2.2-7.9h3.5c-.2,2.8-1.3,4.6-2.6,5.9h0Z"})})}const{white:vs,grayLighter:Cs,black:ys,yellowLight:ks,yellow:ws,brown:Is,darkRed:Ss}=w,_s=l(De)` flex-direction: column; & .MuiSvgIcon-root { width: 18px; height: 18px; color: ${Cs}; position: relative; bottom: 1px; } & .enj-foodie-lvl-chip { max-height: 22px; padding: 0; text-transform: uppercase; min-width: unset; color: ${({color:e})=>e===Is||e===Ss?vs:ys}; border: 1px solid ${Cs}; border-radius: 8px; margin-left: 5px; position: relative; top: -2px; background-color: ${({color:e})=>e}; letter-spacing: 0.5px; & span { font-size: 10px; font-weight: 600; padding: 0 4px; } } `,Ls=[vs,vs,ks,ks,ws,ws,Is,Is,Ss,Ss],Ms={display:"inline-flex",justifyContent:"flex-start",mt:"4px",mr:"5px",alignSelf:"self-start","@media(min-width:768px)":{mt:"9px"}};const Ns=f((function(){const t=e.useContext(D),i=t.getUserStats,{activity_level:o,activity_level_str:r,foodie_level:n,foodie_level_str:a}=t.getProfile,l=e.useContext(ht);return e.useEffect((()=>{l.loadTopUsersData()}),[]),s.jsxs(De,{sx:{alignItems:"flex-start",p:"2em","@media(max-width:768px)":{"& > p":{mb:"5px"}},"@media(min-width:768px)":{maxWidth:"296px",mx:"auto",p:"20px 0 0","& > p":{mb:"20px"}},"@media(min-width:1366px)":{maxWidth:"351px",pt:"25px"}},children:[s.jsx(b,{sx:{display:"flex",alignItems:"center"},children:s.jsx(le,{color:"red",text:C("rankingMonth"),margin:"20px 0 20px -20px"})}),s.jsxs(_s,{alignItems:"center",color:Ls[Number(n)],children:[s.jsxs(b,{sx:{"& > span":{position:"relative",top:"-2px"},alignSelf:"self-start"},className:"enj-foodie-lvl",children:[s.jsx(qe,{}),s.jsx(v,{margin:"0px 5px",children:C("foodieLevel")}),a?s.jsx(nt,{label:a,size:"small",className:"enj-foodie-lvl-chip"}):s.jsx(s.Fragment,{})]}),s.jsxs(b,{sx:{display:"flex",gap:"3px",alignItems:"end",width:"100%",justifyContent:"start"},children:[s.jsx(js,{Ico:xt,textId:"position",statsNumber:i.rank_month_enjoty,sx:Ms}),(S.getUser.is_foodie_pro||S.getUser.is_staff)&&s.jsxs(b,{sx:{display:"flex",gap:"3px",mb:"3px"},children:[s.jsx(R,{onClick:()=>{k("RANKING_MODAL")},label:C("viewDetails"),variant:"outlined",sx:{height:"15px",fontSize:"10px",fontWeight:300,cursor:"pointer",top:0}}),s.jsx(b,{sx:{width:"45px",height:"15px",textAlign:"center",bgcolor:w.yellow,borderRadius:"4px",ml:"5px"},children:s.jsx(de,{color:"black",text:C("new"),weight:500,align:"center",size:"mini",lineHeight:1.3})})]})]}),s.jsx(js,{Ico:ut,textId:"monthPoints",statsNumber:i.points_month,sx:{width:"100%",...Ms}}),s.jsx(js,{Ico:ut,textId:"totalPoints",statsNumber:i.points_total,sx:{width:"100%",...Ms}})]}),s.jsx(le,{color:"red",text:C("publications"),margin:"20px 0 0 -20px"}),s.jsxs(_s,{alignItems:"center",container:!0,children:[s.jsxs(b,{sx:Ms,children:[s.jsx(mt,{level:o||0}),s.jsx(v,{size:"micro",margin:"0px 5px",children:String(r)})]}),s.jsx(js,{Ico:pt,textId:"userVisits",statsNumber:i.user_business_visits,sx:Ms}),s.jsx(js,{Ico:Ze,textId:"userBusinessReviews",statsNumber:i.user_business_reviews,sx:Ms}),s.jsx(js,{Ico:Ze,textId:"userProductReviews",statsNumber:i.user_product_reviews,sx:Ms}),s.jsx(js,{Ico:at,textId:"userPictures",statsNumber:i.user_pictures,sx:Ms})]}),s.jsx(le,{color:"red",text:C("interactions"),margin:"20px 0 0 -20px"}),s.jsxs(_s,{alignItems:"center",container:!0,children:[s.jsx(js,{Ico:lt,textId:"communityLikes",statsNumber:i.community_liked_pics,sx:Ms}),s.jsx(js,{Ico:dt,textId:"communityUseful",statsNumber:i.community_useful,sx:Ms}),s.jsx(js,{Ico:ct,textId:"communityFunny",statsNumber:i.community_funny,sx:Ms}),s.jsx(js,{Ico:G,textId:"communityBookmarks",statsNumber:i.community_bookmarks,sx:Ms})]}),s.jsx(le,{color:"red",text:C("trophies"),margin:"20px 0 0 -20px"}),s.jsxs(_s,{alignItems:"center",container:!0,children:[s.jsx(js,{Ico:bs,textId:"trophiesWon",statsNumber:i.user_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesBestFoodie",statsNumber:i.user_best_foodie_trophies,sx:Ms,extraElement:i.user_best_foodie_trophies?s.jsxs(v,{size:"micro",margin:"0px 0px 0px -2px",color:"red",children:["(",50*i.user_best_foodie_trophies,"€)"]}):s.jsx(s.Fragment,{})}),s.jsx(js,{Ico:bs,textId:"trophiesRaffles",statsNumber:i.user_raffle_winner_trophies,sx:Ms,extraElement:i.user_raffle_winner_trophies?s.jsxs(v,{size:"micro",margin:"0px 0px 0px -2px",color:"red",children:["(",50*i.user_raffle_winner_trophies,"€)"]}):s.jsx(s.Fragment,{})}),s.jsx(js,{Ico:bs,textId:"trophiesFirstBusiness",statsNumber:i.user_first_business_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesFirstReview",statsNumber:i.user_first_review_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesFirstPic",statsNumber:i.user_first_picture_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesFirstProduct",statsNumber:i.user_first_product_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesExplorer",statsNumber:i.user_explorer_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesLover",statsNumber:i.user_lover_trophies,sx:Ms}),s.jsx(js,{Ico:bs,textId:"trophiesExpert",statsNumber:i.user_expert_trophies,sx:Ms})]})]})})),Ps={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",m:I.isDesktop?"50px":"25px 0 25px 15px",gap:"30px"},As={display:"flex",width:I.isMobile?"280px":"320px",justifyContent:"space-between",alignItems:"center"},Fs=({onBack:t})=>{const i=e.useContext(D),{push_notifications_enabled:o,email_notifications_enabled:r}=S.getUser,{loadDataWithLoading:n}=e.useContext(ft),[a,l]=e.useState(o),[c,d]=e.useState(r);return e.useEffect((()=>{P((()=>{i.getConfigNotifications.email_notification_frequency.value=S.getUser.email_notification_frequency}))}),[]),s.jsx(s.Fragment,{children:s.jsxs(b,{sx:Ps,children:[s.jsxs(b,{sx:As,children:[s.jsx(pe,{fontSize:"14px",color:w.gray,children:C("notificationsPush")}),s.jsx(gt,{onClick:()=>l(!a),checked:a})]}),s.jsx(_e,{sx:{"&&.MuiButton-root":{my:"20px","@media(min-width:768px)":{mt:"40px"}}},onClick:async()=>{await i.onChangeNotificationType(a??!0,c??!0),null==t||t(),await S.refreshUserInfo(),await n()}})]})})};function Bs(e){return s.jsxs(N,{...e,viewBox:"0 0 24 24",children:[s.jsx("path",{d:"M3 12.3262C3 13.5081 3.23279 14.6784 3.68508 15.7703C4.13738 16.8623 4.80031 17.8544 5.63604 18.6901C6.47177 19.5259 7.46392 20.1888 8.55585 20.6411C9.64778 21.0934 10.8181 21.3262 12 21.3262C13.1819 21.3262 14.3522 21.0934 15.4442 20.6411C16.5361 20.1888 17.5282 19.5259 18.364 18.6901C19.1997 17.8544 19.8626 16.8623 20.3149 15.7703C20.7672 14.6784 21 13.5081 21 12.3262C21 11.1443 20.7672 9.97395 20.3149 8.88202C19.8626 7.79009 19.1997 6.79794 18.364 5.96221C17.5282 5.12648 16.5361 4.46355 15.4442 4.01126C14.3522 3.55896 13.1819 3.32617 12 3.32617C10.8181 3.32617 9.64778 3.55896 8.55585 4.01126C7.46392 4.46355 6.47177 5.12648 5.63604 5.96221C4.80031 6.79794 4.13738 7.79009 3.68508 8.88202C3.23279 9.97395 3 11.1443 3 12.3262Z",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 10.3262L12 8.32617V16.3262",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ts(e){return s.jsxs(N,{...e,children:[s.jsx("path",{d:"M3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21C13.1819 21 14.3522 20.7672 15.4442 20.3149C16.5361 19.8626 17.5282 19.1997 18.364 18.364C19.1997 17.5282 19.8626 16.5361 20.3149 15.4442C20.7672 14.3522 21 13.1819 21 12C21 10.8181 20.7672 9.64778 20.3149 8.55585C19.8626 7.46392 19.1997 6.47177 18.364 5.63604C17.5282 4.80031 16.5361 4.13738 15.4442 3.68508C14.3522 3.23279 13.1819 3 12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12Z",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 8H13C13.2652 8 13.5196 8.10536 13.7071 8.29289C13.8946 8.48043 14 8.73478 14 9V11C14 11.2652 13.8946 11.5196 13.7071 11.7071C13.5196 11.8946 13.2652 12 13 12H11C10.7348 12 10.4804 12.1054 10.2929 12.2929C10.1054 12.4804 10 12.7348 10 13V15C10 15.2652 10.1054 15.5196 10.2929 15.7071C10.4804 15.8946 10.7348 16 11 16H14",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Es(e){return s.jsxs(N,{...e,children:[s.jsx("path",{d:"M3 12.3262C3 13.5081 3.23279 14.6784 3.68508 15.7703C4.13738 16.8623 4.80031 17.8544 5.63604 18.6901C6.47177 19.5259 7.46392 20.1888 8.55585 20.6411C9.64778 21.0934 10.8181 21.3262 12 21.3262C13.1819 21.3262 14.3522 21.0934 15.4442 20.6411C16.5361 20.1888 17.5282 19.5259 18.364 18.6901C19.1997 17.8544 19.8626 16.8623 20.3149 15.7703C20.7672 14.6784 21 13.5081 21 12.3262C21 11.1443 20.7672 9.97395 20.3149 8.88202C19.8626 7.79009 19.1997 6.79794 18.364 5.96221C17.5282 5.12648 16.5361 4.46355 15.4442 4.01126C14.3522 3.55896 13.1819 3.32617 12 3.32617C10.8181 3.32617 9.64778 3.55896 8.55585 4.01126C7.46392 4.46355 6.47177 5.12648 5.63604 5.96221C4.80031 6.79794 4.13738 7.79009 3.68508 8.88202C3.23279 9.97395 3 11.1443 3 12.3262Z",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 9.32617C10 9.06096 10.1054 8.8066 10.2929 8.61907C10.4804 8.43153 10.7348 8.32617 11 8.32617H13C13.2652 8.32617 13.5196 8.43153 13.7071 8.61907C13.8946 8.8066 14 9.06096 14 9.32617V11.3262C14 11.5914 13.8946 11.8457 13.7071 12.0333C13.5196 12.2208 13.2652 12.3262 13 12.3262M13 12.3262H11M13 12.3262C13.2652 12.3262 13.5196 12.4315 13.7071 12.6191C13.8946 12.8066 14 13.061 14 13.3262V15.3262C14 15.5914 13.8946 15.8457 13.7071 16.0333C13.5196 16.2208 13.2652 16.3262 13 16.3262H11C10.7348 16.3262 10.4804 16.2208 10.2929 16.0333C10.1054 15.8457 10 15.5914 10 15.3262",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ds(e){return s.jsxs(N,{...e,children:[s.jsx("path",{d:"M3 12.3262C3 13.5081 3.23279 14.6784 3.68508 15.7703C4.13738 16.8623 4.80031 17.8544 5.63604 18.6901C6.47177 19.5259 7.46392 20.1888 8.55585 20.6411C9.64778 21.0934 10.8181 21.3262 12 21.3262C13.1819 21.3262 14.3522 21.0934 15.4442 20.6411C16.5361 20.1888 17.5282 19.5259 18.364 18.6901C19.1997 17.8544 19.8626 16.8623 20.3149 15.7703C20.7672 14.6784 21 13.5081 21 12.3262C21 11.1443 20.7672 9.97395 20.3149 8.88202C19.8626 7.79009 19.1997 6.79794 18.364 5.96221C17.5282 5.12648 16.5361 4.46355 15.4442 4.01126C14.3522 3.55896 13.1819 3.32617 12 3.32617C10.8181 3.32617 9.64778 3.55896 8.55585 4.01126C7.46392 4.46355 6.47177 5.12648 5.63604 5.96221C4.80031 6.79794 4.13738 7.79009 3.68508 8.88202C3.23279 9.97395 3 11.1443 3 12.3262Z",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 8.32617V11.3262C10 11.5914 10.1054 11.8457 10.2929 12.0333C10.4804 12.2208 10.7348 12.3262 11 12.3262H14",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M14 8.32617V16.3262",stroke:"#D64300",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Rs=l(jt)` &.MuiSvgIcon-root { width: ${I.isMobile?120:170}px; height: auto; margin-bottom: 15px; @media (min-width: 768px) { width: 224px; } } `,zs={display:"flex",mt:"16px",justifyContent:"center",gap:1,alignItems:"center",width:"100%"},Os=l("div")` position: relative; overflow: hidden; height: 100%; border-radius: 16px; .embla__container { width: ${I.isMobile?290:480}px; display: flex; } .embla__slide { position: relative; flex: 0 0 100%; } `,Ws={width:"90%",backgroundColor:"white",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",gap:2,px:3,py:I.isMobile?1:2},$s={loop:!1,dragFree:!1,align:"start",startIndex:0},Vs={display:"flex",height:"220px",flexDirection:"column",justifyContent:"center",alignItems:"center",mt:I.isMobile?1:10,mb:3,borderRadius:"20px",boxShadow:"0 0 20px rgba(0, 0, 0, 0.2)"};const Us=f((function(){var t;const[i,o]=Ct($s),[r,n]=e.useState(0),[a,l]=e.useState(!1),[c,d]=e.useState(!1),[p,x]=e.useState(!1),{referral_code:u}=S.getUser;return e.useLayoutEffect((()=>{o&&o.on("scroll",(()=>{n(o.selectedScrollSnap())}))}),[o]),e.useLayoutEffect((()=>{const e=setTimeout((()=>{null==o||o.reInit($s)}),500);return()=>clearTimeout(e)}),[o]),e.useLayoutEffect((()=>{o&&(l(o.canScrollPrev()),d(o.canScrollNext()))}),[o,r]),s.jsxs(De,{sx:{alignItems:"center"},children:[s.jsxs(De,{sx:{alignItems:"center",p:"2em","@media(min-width:768px)":{maxWidth:"296px",mx:"auto",p:"40px 0 0","& > p":{mb:"20px"}},"@media(min-width:1366px)":{maxWidth:"351px",pt:"45px"},width:"320px"},children:[s.jsx(Rs,{}),s.jsx(le,{color:"red",text:C("shareWithFriends"),margin:"0px 0px 12px 0px"}),s.jsx(b,{sx:{mt:"12px",borderRadius:"20px",border:"solid 1px #707070",px:"8px",py:"10px",width:"100%"},children:s.jsx(de,{text:null==(t=S.getUser)?void 0:t.referral_code,size:"small",sx:{color:"#707070",width:"100%",textAlign:"center",cursor:"text",userSelect:"text"},weight:600})}),s.jsxs(b,{sx:zs,children:[s.jsxs(Re,{onClick:async()=>{await navigator.clipboard.writeText(`${window.location.origin}${L("route.login")}?${C("code")}=${String(u)}`),x(!0),setTimeout((()=>{x(!1)}),2e3)},sx:{fontSize:"small"},variant:"outlined",fullWidth:!0,children:[p?s.jsx(Je,{sx:{fontSize:"medium",color:w.yellow,mr:"10px"}}):s.jsx(bt,{sx:{fontSize:"medium",mr:"10px"}}),C("copy")]}),s.jsxs(Re,{onClick:async()=>{var e;const t=null==(e=navigator.share)?void 0:e.bind(navigator);try{t?await(null==t?void 0:t({text:C("shareText",{code:S.getUser.referral_code,url:`${window.location.origin}${L("route.login")}?${C("code")}=${String(u)}`})})):console.log("SharedIsNotSupported")}catch(s){console.log("Error: ",s)}},sx:{fontSize:"small"},fullWidth:!0,children:[s.jsx(vt,{sx:{color:"white",fontSize:"medium",marginRight:"10px"}}),C("shareCode")]})]})]}),s.jsxs(b,{sx:{display:"flex",alignItems:"center",...I.isDesktop?{gap:4}:{}},children:[I.isDesktop&&s.jsx(z,{sx:{visibility:a?"":"hidden",mt:8},onClick:()=>{o&&o.scrollPrev()},disabled:!a,children:s.jsx(kt,{})}),s.jsxs(b,{width:I.isMobile?"300px":"552px",sx:Vs,children:[s.jsx(le,{color:"red",size:I.isDesktop?"small":"micro",text:C("howDoesItWork"),margin:"25px 0 0 0"}),s.jsx(Os,{ref:i,children:s.jsxs("div",{className:"embla__container",children:[s.jsx(b,{className:"embla__slide",sx:Ws,children:s.jsxs(De,{sx:{alignItems:"center"},children:[!I.isMobile&&s.jsx(Bs,{sx:{color:"white"}}),s.jsx(de,{size:I.isDesktop?"small":"micro",color:"gray",maxWidth:I.isMobile?"300px":"480px",margin:"10px 0 15px 0",align:"center",text:C("shareYourCode")})]})}),s.jsx(b,{className:"embla__slide",sx:Ws,children:s.jsxs(De,{sx:{alignItems:"center"},children:[!I.isMobile&&s.jsx(Ts,{sx:{color:"white"}}),s.jsx(de,{size:I.isDesktop?"small":"micro",color:"gray",maxWidth:I.isMobile?"300px":"480px",margin:"10px 0 15px 0",align:"center",text:C("winFriendPoints")})]})}),s.jsx(b,{className:"embla__slide",sx:Ws,children:s.jsxs(De,{sx:{alignItems:"center"},children:[!I.isMobile&&s.jsx(Es,{sx:{color:"white"}}),s.jsx(de,{size:I.isDesktop?"small":"micro",color:"gray",maxWidth:I.isMobile?"300px":"480px",margin:"15px 0 15px 0",align:"center",text:C("extraPoints")})]})}),s.jsx(b,{className:"embla__slide",sx:Ws,children:s.jsxs(De,{sx:{alignItems:"center"},children:[!I.isMobile&&s.jsx(Ds,{sx:{color:"white"}}),s.jsx(de,{size:I.isDesktop?"small":"micro",color:"gray",maxWidth:I.isMobile?"300px":"480px",margin:"10px 0 15px 0",align:"center",text:C("noFriendLimit")})]})})]})}),s.jsx(wt,{count:4,onChange:(e,t)=>{o&&(o.scrollTo(t-1),n(o.selectedScrollSnap()))},hideNextButton:!0,hidePrevButton:!0,page:r+1,renderItem:({selected:e,onClick:t})=>s.jsx(b,{onClick:t,sx:{height:"4px",width:"4px",backgroundColor:w.red,opacity:e?1:.8,borderRadius:"50%",mx:1,mb:2,transition:"transform 0.3s",transform:e?"scale(2)":"scale(1)",cursor:"pointer"}})})]}),I.isDesktop&&s.jsx(z,{onClick:()=>{o&&o.scrollNext()},disabled:!c,sx:{visibility:c?"":"hidden","&.MuiIconButton-root .MuiSvgIcon-root":{ml:"3px"},mt:8},children:s.jsx(It,{})})]})]})})),Hs={display:"flex",flexDirection:"column",gap:2,width:"100%",height:"468px"};const Gs=f((function(){const t=e.useContext(D);return e.useEffect((()=>{t.addBusinessDetailsValidators()}),[]),s.jsxs(b,{sx:Hs,children:[s.jsx(de,{sx:{fontWeight:400,ml:1.5,mt:2},size:"mini",color:"gray50",text:C("propertyVerificationText1")}),s.jsxs(b,{sx:{...Hs,gap:1},children:[s.jsx(Oe,{fieldState:t.getBusinessDetailsForm.main_phone,type:"phone",validateOnBlur:!0,hiddenLabel:!1,label:C("phoneNumber")}),s.jsx(Oe,{fieldState:t.getBusinessDetailsForm.business_email,type:"email",validateOnBlur:!0,hiddenLabel:!1,label:C("businessEmail")}),s.jsx(Oe,{fieldState:t.getBusinessDetailsForm.web_page,validateOnBlur:!0,hiddenLabel:!1,label:C("webPage")})]})]})})),Ys={display:"flex",alignItems:"center",flexDirection:"column",gap:3,width:"100%"},Xs={display:"flex",justifyContent:"center",gap:"9px",mb:"24px",width:"100%","& .MuiSvgIcon-root":{height:"18px",width:"18px"}};const Zs=f((function(){const t=e.useContext(D),[i,o]=e.useState(""),[r,n]=e.useState(!1),a=e.useMemo((()=>[{value:"METHOD_EMAIL",label:C("email"),disabled:!t.getBusinessDetailsForm.business_email.value},{value:"METHOD_PHONE",label:C("phoneNumber"),disabled:!t.getBusinessDetailsForm.main_phone.value},{value:"METHOD_WEBSITE",label:C("webPage"),disabled:!t.getBusinessDetailsForm.web_page.value}]),[t.getBusinessDetailsForm.business_email.value,t.getBusinessDetailsForm.main_phone.value,t.getBusinessDetailsForm.web_page.value]);return e.useEffect((()=>{switch(t.getBusinessDetailsForm.verification_method.value){case"METHOD_EMAIL":o(C("verificationEmail"));break;case"METHOD_PHONE":o(C("verificationPhone"));break;case"METHOD_WEBSITE":o(C("verificationWebSite"))}}),[t.getBusinessDetailsForm.verification_method.value]),e.useEffect((()=>{const e=a.filter((e=>!e.disabled));e.length&&t.getBusinessDetailsForm.verification_method.onChange(e[0].value)}),[a]),s.jsxs(b,{sx:Ys,children:[s.jsx(de,{sx:{fontWeight:400,ml:1.5,mt:2},size:"mini",color:"gray50",text:C("propertyVerificationText2")}),s.jsx(b,{sx:{...Ys,gap:1},children:s.jsx(Ae,{InputProps:{"data-test":"enj-form-activity-filter-type"},options:a,placeholder:C("businessEmail"),validateOnBlur:!0,fieldState:t.getBusinessDetailsForm.verification_method})}),s.jsx(de,{sx:{fontWeight:700,ml:1.5},size:"mini",color:"gray50",text:C("unitCode")}),s.jsx(b,{sx:{mx:"32px"},children:s.jsx(de,{align:"center",sx:{fontWeight:400},size:"mini",color:"gray50",text:i})}),s.jsx(b,{sx:{mt:"12px",borderRadius:"20px",border:"solid 1px #707070",px:"8px",py:"10px",width:"100%"},children:s.jsx(de,{text:t.getVerificationCode,size:"mini",sx:{color:"#707070",width:"100%",textAlign:"center",cursor:"text",userSelect:"text"},weight:400})}),s.jsxs(b,{sx:Xs,children:[s.jsx(Re,{sx:{width:"120px"},onClick:async()=>{await navigator.clipboard.writeText(t.getVerificationCode),setTimeout((()=>n(!1)),1500),n(!0)},startIcon:r?s.jsx(Je,{}):s.jsx(bt,{}),variant:"outlined",children:C("copy")}),s.jsx(Re,{sx:{width:"120px"},onClick:async()=>{var e;const s=null==(e=navigator.share)?void 0:e.bind(navigator);try{if("METHOD_EMAIL"===t.getBusinessDetailsForm.verification_method.value)return void window.open(`mailto:verificar@enjoty.com?subject=${t.getVerificationCode}`,"_blank");s?await(null==s?void 0:s({text:t.getVerificationCode||"Verification code undefined"})):console.log("SharedIsNotSupported")}catch(i){console.log("Error: ",i)}},startIcon:s.jsx(vt,{sx:{color:"white"}}),children:C("METHOD_EMAIL"===t.getBusinessDetailsForm.verification_method.value?"send":"shareOnly")})]})]})})),qs=l(Ne)` &.MuiSvgIcon-root { width: 212px; height: auto; } `;const Ks=f((function(){return s.jsxs(ae,{open:g.isBusinessCreationSuccess,onClose:j,children:[s.jsx(qs,{}),s.jsx(de,{margin:"25px auto 0",text:C("businessCreateSuccess")})]})})),Qs={loop:!1,dragFree:!1,draggable:!1,align:"start"},Js=l("div")` position: relative; overflow: hidden; height: 100%; .embla__container { display: flex; } .embla__slide { position: relative; flex: 0 0 100%; width: 344px; @media (min-width: 768px) { width: 340px; } } .last_slide { position: relative; flex: 0 0 100%; } `,ei=l(Re)` &.MuiButton-root { flex: 1; width: 98px; max-width: 130px; &:nth-child(2) { margin-left: 14px; } transition: all 500ms; } `,ti={display:"flex",width:"100%",alignItems:"center",flexDirection:"row",justifyContent:"center",m:"0 0 20px",p:"0 24px","@media(min-width:768px)":{mt:"10px"},"@media(min-width:1366px)":{mb:"56px"}};const si=f((function(){const t=e.useContext(D),[i,o]=e.useState(!1),{setCarousel:r}=t,[n,a]=Ct(Qs);return r(a),e.useEffect((()=>{A(!0);const e=setTimeout((()=>{o(!0),A()}),I.isMobile?0:400);return()=>{A(),clearTimeout(e)}}),[]),i?s.jsxs(b,{sx:{display:"flex",flexDirection:"column"},children:[s.jsx(b,{sx:{"&.MuiBox-root":{maxWidth:"344px",mx:"auto","&":{"@media(min-width:1366px)":{mt:"29px"}}}},children:s.jsx(Js,{ref:n,children:s.jsxs("div",{className:"embla__container ",children:[s.jsx("div",{className:"embla__slide",children:s.jsx(Gs,{})}),s.jsx("div",{className:"embla__slide",children:s.jsx(Zs,{})})]})})}),s.jsxs(b,{sx:ti,children:[2===t.getActive&&s.jsx(ei,{onClick:t.onClickBackConfig,variant:"outlined",children:C("back")}),s.jsx(ei,{onClick:t.onClickNextConfig,"data-test":"enj-form-signup-button-next",disabled:!t.isBusinessConfigStepFullFilled||t.disableNextButton(),children:C(2===t.getActive?"finish":"next")})]}),s.jsx(Ks,{})]}):s.jsx(s.Fragment,{})}));const ii=f((function(){const t=e.useContext(D);return s.jsxs(Ie,{value:t.getTab,children:[s.jsx(Se,{value:F.LOGIN,children:s.jsx(ms,{})}),s.jsxs(Se,{value:F.PROFILE,sx:{"&&.MuiTabPanel-root":{overflow:"unset"}},children:[I.isMobile?s.jsxs(s.Fragment,{children:[s.jsx(X,{isMyProfile:!0}),s.jsx(Z,{})]}):s.jsx(q,{isMyProfile:!0}),s.jsx(K,{})]}),s.jsx(Se,{value:F.EDIT,children:s.jsx(us,{})}),s.jsx(Se,{value:F.ACCOUNT,children:s.jsx(cs,{})}),s.jsx(Se,{value:F.INVITE,children:s.jsx(Us,{})}),s.jsx(Se,{value:F.CONFIG,children:s.jsx(gs,{})}),s.jsx(Se,{value:F.STATS,children:s.jsx(Ns,{})}),s.jsx(Se,{value:F.NOTIFICATION,children:s.jsx(Fs,{})}),s.jsx(Se,{value:F.BUSINESS_INFO,children:s.jsx(si,{})})]})})),oi={display:"flex",justifyContent:"center",".MuiDialog-container":{width:"415px",".MuiPaper-root":{maxWidth:"415px",width:"100%",m:"32px 0",".MuiDialogContent-root":{overflowY:"hidden"}},".MuiTypography-root":{margin:0},"@media(max-width:767px)":{width:"90%",m:"auto",".MuiPaper-root":{width:"100%",maxWidth:"unset"}}},"& .MuiBox-root":{maxHeight:600}},ri=l(is)((({isCurrentUser:e})=>({color:e?w.red:w.yellow,height:8,pt:4,"& .MuiSlider-track":{border:"none"},"& .MuiSlider-rail":{color:w.gray33},"& .MuiSlider-thumb":{height:0,width:0,backgroundColor:"#fff","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&:before":{display:"none"}},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:24,height:24,borderRadius:"50% 50% 50% 0",backgroundColor:w.red,transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&:before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)",height:"28px",width:"28px"},"& > *":{transform:"rotate(45deg)"}},"&.Mui-disabled":{color:e?w.red:w.yellow}}))),ni={display:"flex",gap:"5px",justifyContent:"space-between",height:"48px",alignItems:"center"},ai={display:"flex",gap:"5px",mt:3.5,height:"48px",alignItems:"center"},li=({isCurrentUser:e,value:t,position:i,picture:o})=>s.jsx(s.Fragment,{children:e?s.jsxs(b,{sx:ai,children:[s.jsx(b,{sx:{width:"24px",margin:"auto"},children:s.jsx(de,{text:`Nº${i}`,color:"red",align:"start",size:"mini",weight:"bold"})}),s.jsx(ri,{isCurrentUser:!0,valueLabelDisplay:"on",value:t,valueLabelFormat:()=>s.jsx(Nt,{sx:{height:"23px",width:"23px"},src:o}),disabled:!0})]}):s.jsxs(b,{sx:ni,children:[s.jsx(b,{sx:{width:"24px",margin:"auto"},children:s.jsx(de,{text:`Nº${i}`,color:"gray20",align:"start",size:"mini",weight:"bold"})}),s.jsx(ri,{value:t,disabled:!0})]})});const ci=f((function(){const t=e.useContext(D),i=e.useContext(ht),{picture:o,username:r}=t.getProfile;return s.jsxs(ae,{sx:oi,open:g.isRankingModal,title:C("positionRanking"),onClose:()=>k(),children:[s.jsx(de,{text:C("distanceRanking"),color:"gray"}),i.topStr.getElements.map(((e,t)=>e.username===r?s.jsx(li,{position:t+1,picture:o,isCurrentUser:!0,value:e.points_percentage},t):s.jsx(li,{position:t+1,value:e.points_percentage},t)))]})}));const di=f((function(){const t=e.useContext(D),i=yt(),r=e.useMemo((()=>I.height-66),[I.height]),{loadProfileData:n}=t,{tab:a}=o();return e.useLayoutEffect((()=>{const{username:e,picture:s="",...i}=t.getProfile,o=S.isAuth&&e?"user":"login";return i.image=s,i.username=e,O(o,i),W("route.my.profile"),$}),[S.isAuth,t.getProfile.username]),e.useLayoutEffect((()=>(B(T.PROFILE),S.isAuth&&(t.setIsMyProfile(!0),n(S.getUsername)),t.initTabs(),"true"===i.get("is_business")&&t.onNavigateToBusinessInfo(),E(),S.refreshUserInfo(),a&&a===C("edit").toLocaleLowerCase()&&t.onClickEditMyProfile(),()=>{E(),t.clear()})),[]),e.useEffect((()=>{const e=i.get("verification-uuid"),s=i.get("slug");e&&(t.setVerificationCode(e),i.delete("verification-uuid")),s&&(t.setSelectedBusiness(s),i.delete("slug"))}),[]),it(),s.jsxs(s.Fragment,{children:[s.jsx(b,{sx:{height:`${r}px`,"@media(min-width:1366px)":{height:"fit-content",pb:"40px"}},children:s.jsxs(De,{id:"enj-user-profile-id",sx:{height:`${r}px`,overflow:"hidden",overflowY:"auto","@media(min-width:1366px)":{height:"fit-content"}},children:[s.jsx(b,{sx:{position:"sticky",top:0,bgcolor:w.white,zIndex:2},children:s.jsx(we,{})}),s.jsx(b,{sx:{px:"20px"},children:s.jsx(ii,{})})]})}),s.jsx(U,{}),s.jsx(Y,{}),s.jsx(Q,{}),s.jsx(rs,{}),s.jsx(V,{}),s.jsx(H,{}),s.jsx(ci,{}),s.jsx(Pt,{})]})}));export{di as default};