import{r as t,j as o}from"./react-B_SyE9nW.js";import{s as i,o as s,Z as r,W as e,y as p,a4 as m,B as n,n as a}from"./index-DVx3XUkT.js";import{H as j}from"./index-SIfJKce9.js";import{T as c}from"./index-HT-5AD7E.js";import{A as l}from"./EditSuccessModal-DknloC6l.js";import{p as d,u,c as x}from"./Switch-a8Hc4XU-.js";import{B as I}from"./BtnFilter-DYJK-nlF.js";import{B as f}from"./BtnSort-DkdbM27h.js";import{G as y}from"./Grid-DRA5GTmM.js";import{A as h}from"./ActivityBody-XkYu9mGa.js";import{u as g}from"./embla-carousel-react.esm-NewS-kch.js";import{H as v}from"./HelpComponent-DlPcyq_0.js";import{u as C,H as S}from"./useAutoUpdateServiceWorker-CvwvjXL3.js";import"./history-CBi_mSPs.js";import"./styled-components-D7wwngcN.js";import"./sentry-Br0bWdGN.js";import"./BtnShadow-C8wlgmJV.js";import"./BackIco-8zMErfY7.js";import"./Stack-DWxbwU3r.js";import"./index-CWdensOV.js";import"./createSvgIcon-CRufxXOX.js";import"./BtnChip-FazAQ_kO.js";import"./ItemLoading-B0qbhEL4.js";import"./PublishIco-CTt5pd1e.js";import"./GenericAvatarHeader-DO7pCYOO.js";import"./RatingReview-1uOdijm5.js";import"./styles-Dr-0T67S.js";import"./GlobalStyles-DQe6i-JI.js";import"./ActivityIco-DkU_vd49.js";import"./Statistics-_kjfnrnV.js";import"./Tooltip-C3_xfLH8.js";import"./Autocomplete-B-M5Q-AZ.js";import"./index-dbPBR86R.js";import"./usePreviousProps-GIwTB3Ki.js";import"./ImageIco-BTTHFJ5H.js";import"./MessageIco-zMTCxxwJ.js";import"./Url-C6XTBQVE.js";import"./BagIco-NRTShpWn.js";import"./BtnGeneric-VNHvyqX_.js";import"./CalendarIco-1grwueIG.js";import"./index-eKDAOccZ.js";import"./InputAdornment-CMJm1Szv.js";import"./colorManipulator-DR3Qv2hV.js";import"./Address-D7cjbXj0.js";import"./listItemButtonClasses-0sZQWNAV.js";import"./BusinessIco-DqvV2WuT.js";import"./Divider-CvF4q94n.js";import"./DownIco-B67nTPsD.js";import"./PhotoUpIco-CBJj1q9f.js";import"./SwitchBase-BkR_KtPc.js";import"./ErrorIco-9lrqXIPt.js";import"./WarningIco-BqWiG8sL.js";import"./FldRadio-B86iYBMu.js";import"./BtnSReply-6abPDBDT.js";import"./EditIco-sjndGYzv.js";import"./TrashIco-CXUipucv.js";import"./RatingReviewTitle-BHMCdk_D.js";import"./SubTitle-CIQFjien.js";import"./CircleCheckIco-BY245pyQ.js";import"./FacebookIco-CJReqDRM.js";import"./TwitterIco-DhWIHfJt.js";import"./FldTextArea-C8EQrgi3.js";import"./FldText-CoGyGXSJ.js";import"./DeliveryIco-s-WO99Xm.js";import"./CelebrationIco-DzignSjF.js";import"./GoogleIdentityStoreContext-DPdR2OJT.js";import"./BtnRestart-Y6iH4BTJ.js";import"./NoFoundIco-CCMbds0r.js";import"./NoFound-CkLZ6FHd.js";import"./BusinessContext-DGcTXG3r.js";import"./BusinessReviewStore-B1li4-uN.js";import"./CoreServices-SqNJAolu.js";import"./Frame-lvZI9GSc.js";import"./EnjBackdrop-CWn95p49.js";import"./FldAutocomplete-DdzXexOn.js";import"./PopperGoogle-CfjtFHGm.js";import"./NearIco-CYQYG08Z.js";import"./SearchIco-DTCP2lIv.js";import"./FldTextSelect-CYrn0aFm.js";import"./EditBusinessReview-PKZQ-ev3.js";import"./RatingPrice-p6_8TWOj.js";import"./HelpMenu-Bvny7lm2.js";import"./FAQIco-CLFzVWzH.js";import"./ContactContext-DBdgNkfH.js";import"./Link-BvG5xHxi.js";const B=i(y)`
  &.MuiGrid-root {
    & .MuiChip-root {
      margin: 0 6px;
    }
  }
`;const F=s((function(){const i=t.useContext(l),{onClickFilter:s,onClickSort:r}=i;return o.jsxs(B,{display:"flex",container:!0,alignItems:"center",justifyContent:"center",padding:"22px 0 11px","data-test":"enj-activity-filters",children:[o.jsx(I,{onClick:s,count:i.getFilterCount}),o.jsx(f,{onClick:r})]})})),w=["location","userType","type"];const T=s((function(){const i=t.useContext(l),s=g(),[I,f]=t.useState(!1);return t.useLayoutEffect((()=>{d("activity",{ogtitle:"activity.ogtitle"}),r(e.ACTIVITY),i.init(Object.fromEntries(s.entries()))}),[]),t.useLayoutEffect((()=>{const t=i.getFilters;return w.forEach((o=>{s.delete(o);const i=t[o]??"";let r=!1;switch(typeof i){case"boolean":case"string":case"number":r=!!i}"NONE"!==i&&r&&s.append(o,i)})),p.replace({search:s.toString()}),u("route.activity"),x}),[JSON.stringify(i.getFilters),m.isDifferentPath]),C(),o.jsxs(n,{sx:{"& .enj-header-container":{"@media(min-width:1366px)":{"& > .MuiGrid-root":{top:"unset",height:"100%",maxWidth:"1366px",mx:"auto",px:"231px"}}}},children:[o.jsx(j,{suffix:o.jsx(v,{title:"activity"}),children:o.jsx(c,{color:"white",size:"small",weight:500,variant:"h1",text:a("activity"),dataTest:"enj-activity-title"})}),o.jsx(F,{}),o.jsx(h,{}),o.jsx(n,{sx:{position:"relative",width:"100vw",display:"flex",alignItems:"end",zIndex:0},children:o.jsx(S,{open:I,setOpen:f})})]})}));export{T as default};