1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="f48e0685-02bf-5d9f-a5d0-788c0d5c6b4a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1790],{20582:function(e,t,r){r.r(t),r.d(t,{AdjustRecommendationModal:function(){return g}});var a=r(57437),n=r(2265),o=r(777),s=r(82809),l=r(65780),i=r(62843),u=r(16858),d=r(31952),c=r(36882),p=r(32489),f=r(83307);function h(e){let{modality:t,selected:r,onToggle:n}=e;return(0,a.jsxs)("button",{"aria-label":"".concat(r?"Deselect":"Select"," modality ").concat(t.name),type:"button",onClick:()=>n(t.id),"aria-pressed":r,className:(0,l.cn)("relative flex h-10 items-center gap-1 rounded-full border px-3 py-1 transition-colors",r?"border-black bg-surface-default-secondary pr-9":"border-lighter bg-white hover:border-black"),children:[(0,a.jsx)(f.U,{modality:t,className:"size-8 shrink-0"}),(0,a.jsx)("span",{className:"body whitespace-nowrap",children:t.name}),r&&(0,a.jsx)(p.Z,{className:"pointer-events-none absolute right-3 size-4 text-secondary","aria-hidden":"true"})]})}function m(e){let{duration:t,selected:r,onToggle:n}=e;return(0,a.jsxs)("button",{"aria-label":"".concat(r?"Deselect":"Select"," duration ").concat(t.label),type:"button",onClick:()=>n(t.id),"aria-pressed":r,className:(0,l.cn)("relative flex h-10 min-w-14 items-center justify-center rounded-full border px-3 py-1 transition-colors",r?"border-black bg-surface-default-secondary pr-9":"border-lighter bg-white hover:border-black"),children:[(0,a.jsx)("span",{className:"body whitespace-nowrap",children:t.label}),r&&(0,a.jsx)(p.Z,{className:"pointer-events-none absolute right-3 size-4 text-secondary","aria-hidden":"true"})]})}var y=r(38594);function v(e){let{wide:t}=e;return(0,a.jsx)(y.O,{className:(0,l.cn)("h-10 rounded-full",t?"w-16":"w-28")})}function b(){return(0,a.jsx)(a.Fragment,{children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(v,{},t))})}function x(){return(0,a.jsx)(a.Fragment,{children:Array.from({length:10}).map((e,t)=>(0,a.jsx)(v,{wide:!0},t))})}function g(e){let{open:t,onOpenChange:r,onAdjust:p,initialModalities:f,initialDurations:y}=e,[v,g]=(0,n.useState)(()=>{var e;return new Set(null!==(e=null==f?void 0:f.map(e=>e.id))&&void 0!==e?e:[])}),[_,j]=(0,n.useState)(()=>{var e;return null!==(e=null==y?void 0:y[0])&&void 0!==e?e:null}),w=(0,n.useRef)(t),N=(0,n.useMemo)(()=>Array.from(v),[v]);(0,n.useEffect)(()=>{if(t&&!w.current){var e,r;g(new Set(null!==(e=null==f?void 0:f.map(e=>e.id))&&void 0!==e?e:[])),j(null!==(r=null==y?void 0:y[0])&&void 0!==r?r:null)}w.current=t},[t,f,y]);let{modalities:T,isLoading:S,isError:L,refetch:F}=(0,i.m)(c.A.ALL),{durations:A,isLoading:C,error:Z,refetch:k}=(0,u.o)({modalities:N,params:{type:c.A.ALL}}),E=(0,n.useCallback)(e=>{g(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),R=(0,n.useCallback)(e=>{j(t=>{var r;return null!==(r=(0,d.W)(t?[t]:[],e)[0])&&void 0!==r?r:null})},[]),z=(0,n.useCallback)(()=>{let e=T.filter(e=>v.has(e.id));null==p||p(e,_?[_]:[]),r(!1)},[T,v,_,p,r]);return(0,a.jsx)(s.Dialog,{open:t,onOpenChange:r,children:(0,a.jsxs)(s.DialogContent,{className:(0,l.cn)("max-w-screen left-0 top-0 z-[101] flex h-dvh max-h-dvh translate-x-0 translate-y-0 flex-col gap-10 rounded-none bg-surface-default-secondary px-0 pb-0 shadow-[0px_2px_8px_0px_rgba(0,0,0,0.24)]","pt-[max(3rem,env(safe-area-inset-top,0px))]","duration-0 data-[state=closed]:!animate-none data-[state=open]:!animate-none","md:left-[50%] md:top-[50%] md:h-auto md:max-h-none md:max-w-[612px] md:translate-x-[-50%] md:translate-y-[-50%] md:rounded-2xl md:pt-10"),closeProps:{className:(0,l.cn)("top-[max(1rem,env(safe-area-inset-top,0px))]","text-secondary [&>svg]:size-6 md:right-10 md:top-10")},overlayProps:{className:"z-[101] duration-0 data-[state=closed]:!animate-none data-[state=open]:!animate-none"},children:[(0,a.jsxs)(s.DialogHeader,{className:"shrink-0 px-4 md:px-10",children:[(0,a.jsx)(s.DialogTitle,{asChild:!0,children:(0,a.jsx)("h5",{className:"!h5-light",children:"Adjust your recommendations"})}),(0,a.jsx)(s.DialogDescription,{className:"hidden",children:"Select the types of classes youâd like to see."})]}),(0,a.jsxs)("div",{className:"flex min-h-0 grow flex-col gap-8 overflow-y-auto overscroll-y-contain px-4 md:px-10",children:[(0,a.jsxs)("section",{"aria-labelledby":"modality-group-label",className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{id:"modality-group-label",className:"body-emph1",children:"Modality"}),(0,a.jsx)("div",{role:"group","aria-labelledby":"modality-group-label","aria-busy":S,className:"flex flex-wrap gap-3",children:S?(0,a.jsx)(b,{}):L?(0,a.jsxs)("div",{role:"alert",className:"flex items-center gap-3",children:[(0,a.jsx)("p",{className:"body text-status-error",children:"Failed to load modalities."}),(0,a.jsx)("button",{type:"button","aria-label":"Try again to load modalities",className:"body underline",onClick:()=>F(),children:"Try again"})]}):0===T.length?(0,a.jsx)("p",{role:"status",className:"body text-secondary",children:"No modalities available."}):T.map(e=>(0,a.jsx)(h,{modality:e,selected:v.has(e.id),onToggle:E},e.id))})]}),(0,a.jsxs)("section",{"aria-labelledby":"duration-group-label",className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{id:"duration-group-label",className:"body-emph1",children:"Duration (min)"}),(0,a.jsx)("div",{role:"group","aria-labelledby":"duration-group-label","aria-busy":C,className:"flex flex-wrap gap-3",children:C?(0,a.jsx)(x,{}):Z?(0,a.jsxs)("div",{role:"alert",className:"flex items-center gap-3",children:[(0,a.jsx)("p",{className:"body text-status-error",children:"Failed to load durations."}),(0,a.jsx)("button",{type:"button","aria-label":"Try again to load durations",className:"body underline",onClick:()=>k(),children:"Try again"})]}):0===A.length?(0,a.jsx)("p",{role:"status",className:"body text-secondary",children:"No durations available."}):A.map(e=>(0,a.jsx)(m,{duration:e,selected:_===e.id,onToggle:R},e.id))})]})]}),(0,a.jsx)(s.DialogFooter,{className:(0,l.cn)("shrink-0 border-t border-t-lightest p-4 md:flex-col md:border-none md:px-10 md:pb-12","pb-[max(3rem,env(safe-area-inset-bottom,0px))]"),children:(0,a.jsx)(o.z,{variant:"primary",className:"w-full rounded-full md:w-fit",onClick:z,children:"Adjust"})})]})})}},13378:function(e,t,r){var a,n,o,s;r.d(t,{h:function(){return n}}),(o=a||(a={})).Classes="Classes",o.Programs="Programs",(s=n||(n={})).MostRecent="most_recent",s.MostRelevant="most_relevant"},67156:function(e,t,r){r.d(t,{c:function(){return l},w:function(){return s}});var a=r(2265),n=r(99376),o=r(43648);let s="glo:search-nav-reset";function l(){let e=(0,n.usePathname)(),t=(0,n.useRouter)();return(0,a.useCallback)((r,a)=>{e&&a&&a.split("?")[0]===o.LINKS.SEARCH&&e.startsWith(o.LINKS.SEARCH)&&(r.preventDefault(),window.dispatchEvent(new Event(s)),t.replace(o.LINKS.SEARCH))},[e,t])}},44550:function(e,t,r){r.d(t,{$t:function(){return u},GS:function(){return d},wD:function(){return c}});var a=r(81561),n=r(2265),o=r(36882),s=r(65780),l=r(13378),i=r(67156);let u=[o.FilterType.Modality,o.FilterType.Duration,o.FilterType.Intensity,o.FilterType.Level,o.FilterType.Style,o.FilterType.Teachers,o.FilterType.Outcomes,o.FilterType.Suboutcome,o.FilterType.BodyPart,o.FilterType.Props,o.FilterType.Favorited,o.FilterType.Notes,o.FilterType.Music,o.FilterType.LiveStream];function d(e,t){let r={};for(let t of u){let a=e.getAll(t).filter(e=>"string"==typeof e&&e.length>0).map(e=>
1(0,s.rB)(e)).filter(Boolean);r[t]=a}let a=e.get("q");r.search=a?(0,s.rB)(a):"";let n=e.get("sort");return r.sort=n&&Object.values(l.h).includes(n)?n&&Object.values(l.h).includes(n)?n:a?l.h.MostRelevant:l.h.MostRecent:t,r.activeResultsTab="programs"===e.get("tab")?"programs":"classes",r}function c(e,t,r,o,s){let l=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!e)return;let t=()=>{s({type:"CLEAR_ALL_FILTERS",payload:void 0}),s({type:"SET_SEARCH",payload:""})};return window.addEventListener(i.w,t),()=>window.removeEventListener(i.w,t)},[e,s]),(0,n.useEffect)(()=>{var t,n,i;let c;if(e){if(!l.current){l.current=!0;return}try{c=d(new URLSearchParams(window.location.search),r)}catch(e){return}t=c,(o.search!==(null!==(n=t.search)&&void 0!==n?n:"")||o.sort!==t.sort||o.activeResultsTab!==(null!==(i=t.activeResultsTab)&&void 0!==i?i:"classes")||u.some(e=>{var r;return!(0,a.Z)(o[e],null!==(r=t[e])&&void 0!==r?r:[])}))&&s({type:"SET_ALL_FILTERS",payload:{...o,...c}})}},[t,e,r,s])}},36882:function(e,t,r){var a,n,o;r.d(t,{A:function(){return a},FilterType:function(){return n}}),(a||(a={})).ALL="all",(o=n||(n={})).Duration="duration",o.Level="level",o.Intensity="intensity",o.Style="style",o.Teachers="teachers",o.Outcomes="outcomes",o.BodyPart="bodyPart",o.Props="props",o.Favorited="favorited",o.Notes="notes",o.Music="music",o.LiveStream="livestream",o.Modality="modality",o.Tags="tags",o.Suboutcome="suboutcome"},6021:function(e,t,r){r.d(t,{Z:function(){return l}});var a=r(84338),n=function(e,t){for(var r=e.length;r--;)if((0,a.Z)(e[r][0],t))return r;return -1},o=Array.prototype.splice;function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)},s.prototype.get=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]},s.prototype.has=function(e){return n(this.__data__,e)>-1},s.prototype.set=function(e,t){var r=this.__data__,a=n(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this};var l=s},98721:function(e,t,r){r.d(t,{Z:function(){return p}});var a=(0,r(19893).Z)(Object,"create"),n=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}s.prototype.clear=function(){this.__data__=a?a(null):{},this.size=0},s.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},s.prototype.get=function(e){var t=this.__data__;if(a){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0},s.prototype.has=function(e){var t=this.__data__;return a?void 0!==t[e]:o.call(t,e)},s.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this};var l=r(6021),i=r(23196),u=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},d=function(e,t){var r=e.__data__;return u(t)?r["string"==typeof t?"string":"hash"]:r.map};function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(i.Z||l.Z),string:new s}},c.prototype.delete=function(e){var t=d(this,e).delete(e);return this.size-=t?1:0,t},c.prototype.get=function(e){return d(this,e).get(e)},c.prototype.has=function(e){return d(this,e).has(e)},c.prototype.set=function(e,t){var r=d(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this};var p=c},21796:function(e,t){t.Z=function(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(n);++a<n;)o[a]=e[a+t];return o}},30960:function(e,t){var r=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.Z=function(e){return r.test(e)}},24899:function(e,t,r){var a=r(36720),n=r(52949);t.Z=function(e){return(0,n.Z)((0,a.Z)(e).toLowerCase())}},84338:function(e,t){t.Z=function(e,t){return e===t||e!=e&&t!=t}},81561:function(e,t,r){var a=r(54487);t.Z=function(e,t){return(0,a.Z)(e,t)}},52949:function(e,t,r){r.d(t,{Z:function(){return v}});var a=r(21796),n=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:(0,a.Z)(e,t,r)},o=r(30960),s="\ud800-\udfff",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\ud83c[\udffb-\udfff]",u="[^"+s+"]",d="(?:\ud83c[\udde6-\uddff]){2}",c="[\ud800-\udbff][\udc00-\udfff]",p="(?:"+l+"|"+i+")?",f="[\\ufe0e\\ufe0f]?",h="(?:\\u200d(?:"+[u,d,c].join("|")+")"+f+p+")*",m=RegExp(i+"(?="+i+")|(?:"+[u+l+"?",l,d,c,"["+s+"]"].join("|")+")"+(f+p+h),"g"),y=r(36720),v=function(e){e=(0,y.Z)(e);var t,r=(0,o.Z)(e)?(t=e,(0,o.Z)(t)?t.match(m)||[]:t.split("")):void 0,a=r?r[0]:e.charAt(0),s=r?n(r,1).join(""):e.slice(1);return a.toUpperCase()+s}}}]); 2//# chunkId=f48e0685-02bf-5d9f-a5d0-788c0d5c6b4a
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.