PageSourceSearch

https://www.wakingup.com/_next/static/immutable/chunks/3svu9vh7hsus_.js

js wakingup.com collected 2026-09-24 08:48:25 UTC 33,804 bytes, 612 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7f6dffba-e9fc-5bae-022b-3259def6f73e")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,277,(e,t,a)=>{t.exports=e.r(8016)(function(e,t,a){return e+(a?"-":"")+t.toLowerCase()})},92428,e=>{"use strict";var t,a,o,r=e.i(102447),i=e.i(513723),n=e.i(623011),s=e.i(775590),l=e.i(260575);e.i(75456);var d=e.i(197366),c=e.i(305068);e.i(652669);var p=e.i(398508),u=e.i(443572),m=e.i(523289),h=e.i(124821);let f=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-69a4d445-0"})`
3  align-items: center;
4  display: flex;
5  flex-wrap: wrap;
6  justify-content: flex-end;
7  gap: 1.25rem;
8  width: 100%;
9
10  ${p.media.phonePortrait} {
11    align-items: stretch;
12    flex-direction: column;
13    gap: 1.875rem;
14  }
15`,g=(0,c.default)(m.default).withConfig({displayName:"styles__Icon",componentId:"sc-69a4d445-1"})`
16  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
17`,y=c.default.div.withConfig({displayName:"styles__ButtonGroup",componentId:"sc-69a4d445-2"})`
18  background: ${`#ffffff${(0,u.default)(.2)}`};
19  border-radius: 0.5rem;
20  border: 1px solid ${`#ffffff${(0,u.default)(.5)}`};
21  box-shadow: 0 0.0625rem 0.1875rem 0 ${`#000000${(0,u.default)(.1)}`};
22  display: grid;
23  flex: 1 1 0;
24  gap: 0.3125rem;
25  grid-template-columns: repeat(6, 1fr);
26  padding: 0.3125rem;
27
28  ${p.media.phoneLandscape} {
29    width: 100%;
30    grid-template-columns: repeat(3, 1fr);
31  }
32`,b=(0,c.default)(h.default).withConfig({displayName:"styles__FilterButton",componentId:"sc-69a4d445-3"})`
33  /* background: transparent;
34  border-color: transparent;
35  border-radius: 0.5rem; */
36  /* color: ${({theme:e})=>e.colors.coreNeutralAbyss}; */
37  font-size: 0.875rem;
38  font-weight: 600;
39  letter-spacing: 0.03125rem;
40  padding: 0.625rem 0;
41  min-width: 8.125rem;
42  /* transition: background-color 0.2s ease; */
43
44  &:hover {
45    /* background: rgba(255, 255, 255, 0.2);
46    border-color: transparent; */
47  }
48
49  &[data-active='true'] {
50    background: rgba(0, 0, 0, 0.08);
51
52    /* &:hover {
53      background: rgba(0, 0, 0, 0.08);
54    } */
55  }
56
57  ${p.media.tabletPortrait} {
58    min-width: unset;
59  }
60`,x=c.css`
61  border: none;
62  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
63  font-size: 0.875rem;
64  font-style: normal;
65  font-weight: 600;
66  letter-spacing: 0.0313rem;
67  line-height: 1;
68  text-decoration: none;
69  padding-top: 0.9375rem;
70  padding-right: 1.5625rem;
71  padding-bottom: 0.9375rem;
72  padding-left: 1.5625rem;
73`,C=c.default.div.withConfig({displayName:"styles__SearchContainer",componentId:"sc-69a4d445-4"})`
74  display: flex;
75  flex: 1;
76  position: relative;
77  min-width: 15.625rem;
78
79  ${p.media.tabletPortrait} {
80    min-width: 30rem;
81    width: 100%;
82  }
83
84  ${p.media.phoneLandscape} {
85    min-width: 70%;
86    width: 100%;
87  }
88`,w=c.default.input.withConfig({displayName:"styles__SearchInput",componentId:"sc-69a4d445-5"})`
89  border: 1px solid
90    ${({theme:e})=>`${e.colors.coreNeutral100}${(0,u.default)(.1)}`};
91  border-radius: 6px;
92  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
93  font-size: 0.875rem;
94  font-weight: 400;
95  padding: 0.9375rem;
96  padding-right: 5rem;
97  transition: border-color 0.2s ease;
98  width: 100%;
99
100  &::placeholder {
101    color: ${({theme:e})=>e.colors.coreNeutral300};
102  }
103
104  &:focus {
105    border-color: ${({theme:e})=>e.colors.coreNeutralAbyss};
106    outline: none;
107  }
108`,_=c.default.button.withConfig({displayName:"styles__SearchButton",componentId:"sc-69a4d445-6"})`
109  align-items: center;
110  background: transparent;
111  border: none;
112  cursor: pointer;
113  display: flex;
114  justify-content: center;
115  padding: 0.5rem;
116  position: absolute;
117  right: 0.25rem;
118  top: 50%;
119  transform: translateY(-50%);
120  transition: color 0.2s ease;
121
122  &:hover {
123    color: #0e2277;
124  }
125`,v=c.default.button.withConfig({displayName:"styles__SortButton",componentId:"sc-69a4d445-7"})`
126  ${x}
127  align-items: flex-end;
128  background-color: transparent;
129  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
130  cursor: pointer;
131  display: flex;
132  flex: 0 1 auto;
133  font-size: 0.875rem;
134  font-weight: 600;
135  gap: 0.5rem;
136  justify-content: flex-end;
137  line-height: 1.7;
138  padding: 0.625rem 0;
139  transition: all 0.2s ease;
140  white-space: nowrap;
141  position: relative;
142
143  ${p.media.phonePortrait} {
144    width: 100%;
145  }
146`,N=(0,n.memo)(({isActive:e,onTypeChange:t,text:a,value:o,variant:i})=>{let s=(0,n.useCallback)(()=>{t(o)},[t,o]);return(0,r.jsx)(b,{"data-active":e,onClick:s,variant:i,children:a})});var T=((t={}).NEWEST="newest",t.OLDEST="oldest",t.POPULAR="popular",t.ALPHA_ASC="alpha-asc",t.ALPHA_DESC="alph
146a-desc",t.DURATION_ASC="duration-asc",t.DURATION_DESC="duration-desc",t);let A={"alpha-asc":"Alphabetical, A-Z","alpha-desc":"Alphabetical, Z-A","duration-asc":"Duration, Shortest - Longest","duration-desc":"Duration, Longest - Shortest",newest:"Newest",oldest:"Oldest",popular:"Most Popular"},j=[d.CourseType.qa,d.CourseType.conversation,d.CourseType.talk,d.CourseType.meditation,d.CourseType.contemplation,d.CourseType.lesson,d.CourseType.exercise,d.CourseType.sleep_talk,d.CourseType.intro],k={"all-content":["newest","oldest","alpha-asc","alpha-desc","duration-asc","duration-desc"],teachers:["newest","oldest","alpha-asc","alpha-desc"]},I={"all-content":j.filter(e=>e!==d.CourseType.intro&&e!==d.CourseType.sleep_talk),teachers:j.filter(e=>e!==d.CourseType.intro&&e!==d.CourseType.sleep_talk)},S=e=>k[e],P=e=>I[e],E=(0,n.memo)(({filters:e,mode:t,onSearchChange:a,onSortClick:o,onTypeChange:i})=>{let{handleClearSearch:c,handleKeyDown:p,handleLocalSearchChange:u,handleSearchClick:m,handleTypeChange:h,localSearchValue:b,searchValue:x,selectedType:A,sortFilterFlag:j}=(({filters:e,onSearchChange:t,onTypeChange:a})=>{let[o,r]=(0,n.useState)(e.search),i=(0,n.useRef)(void 0);(0,n.useEffect)(()=>{r(e.search)},[e.search]),(0,n.useEffect)(()=>()=>{clearTimeout(i.current)},[]);let s=(0,n.useCallback)(e=>{let a=e.target.value;r(a),clearTimeout(i.current),i.current=setTimeout(()=>{t(a)},500)},[t]),l=(0,n.useCallback)(()=>{t(o)},[o,t]),d=(0,n.useCallback)(e=>{"Enter"===e.key&&t(o)},[o,t]);return{handleClearSearch:(0,n.useCallback)(()=>{r(""),t("")},[t]),handleKeyDown:d,handleLocalSearchChange:s,handleSearchClick:l,handleTypeChange:a,localSearchValue:o,searchValue:e.search,selectedType:e.type,sortFilterFlag:e.sort!==T.NEWEST||e.courseTypes.length>0||e.techniques.length>0||e.traditions.length>0}})({filters:e,onSearchChange:a,onTypeChange:i});return(0,r.jsxs)(f,{children:["all-content"===t&&(0,r.jsxs)(y,{children:[(0,r.jsx)(N,{isActive:null===A,onTypeChange:h,text:"All",value:null,variant:"clear-on-light"}),(0,r.jsx)(N,{isActive:A===d.PackType.meditation,onTypeChange:h,text:l.PACK_TYPE_NAME[d.PackType.meditation],value:d.PackType.meditation,variant:"clear-on-light"}),(0,r.jsx)(N,{isActive:A===d.PackType.lesson,onTypeChange:h,text:l.PACK_TYPE_NAME[d.PackType.lesson],value:d.PackType.lesson,variant:"clear-on-light"}),(0,r.jsx)(N,{isActive:A===d.PackType.life,onTypeChange:h,text:l.PACK_TYPE_NAME[d.PackType.life],value:d.PackType.life,variant:"clear-on-light"}),(0,r.jsx)(N,{isActive:A===d.PackCategory.conversations,onTypeChange:h,text:l.PACK_CATEGORY_NAME[d.PackCategory.conversations],value:d.PackCategory.conversations,variant:"clear-on-light"}),(0,r.jsx)(N,{isActive:A===s.ContentType.PLAYLIST,onTypeChange:h,text:"Playlists",value:s.ContentType.PLAYLIST,variant:"clear-on-light"})]}),(0,r.jsxs)(C,{children:[(0,r.jsx)(w,{onChange:u,onKeyDown:p,placeholder:"Search Here...",type:"text",value:b}),!x&&(0,r.jsx)(_,{"aria-label":"Search",onClick:m,type:"button",children:(0,r.jsx)(g,{"aria-hidden":"true",name:"search",size:14})}),x&&(0,r.jsx)(_,{"aria-label":"Clear search",onClick:c,type:"button",children:(0,r.jsx)(g,{"aria-hidden":"true",name:"close",size:12})})]}),(0,r.jsxs)(v,{onClick:o,type:"button",children:["Sort & Filter",(0,r.jsx)(g,{"aria-hidden":"true",name:j?"filterOnLight":"filterLight",size:19})]})]})});var $=e.i(22533),L=e.i(795773);let O=(0,c.default)($.default).withConfig({displayName:"styles__Container",componentId:"sc-158287a4-0"})`
147  color: inherit;
148  cursor: pointer;
149  display: flex;
150  flex-direction: column;
151  gap: 1.875rem;
152  padding: 0;
153  text-decoration: none;
154  width: 100%;
155
156  ${p.media.phonePortrait} {
157    align-items: center;
158    background: rgba(255, 255, 255, 0.2);
159    border-radius: 0.5rem;
160    border: 1px solid rgba(255, 255, 255, 0.5);
161    box-shadow: 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1);
162    flex-direction: row;
163    gap: 0.9375rem;
164    padding: 0.625rem;
165    overflow: hidden;
166  }
167`,R=c.default.div.withConfig({displayName:"styles__Cover",componentId:"sc-158287a4-1"})`
168  position: relative;
169  width: 100%;
170
171  ${p.media.phonePortrait} {
172    flex: 0 0 auto;
173    width: 6.5rem;
174  }
175`,z=c.default.img.withConfig({displayName:"styles__Image",componentId:"sc-158287a4-2"})`
176  aspect-ratio: 1 / 1;
177  border-radius: 0.5rem;
178  border: 1px solid #0e15291a;
179  display: block;
180  width: 100%;
181`,D=(0,c.default)(L.default).withConfig({displayName:"styles__PlaylistCover",componentId:"sc-158287a4-3"})`
182  height: 100%;
183`,M=c.default.div.withConfig({displayName:"styles__Overlay",componentId:"sc-158287a4-4"})`
184  color: #ffffff;
185  position: absolute;
186  inset: 0;
187  border-radius: 0.5rem;
188  backdrop-filter: blur(4.6875rem);
189  display: flex;
190  flex-direction: column;
191  justify-content: space-between;
192  padding: 1.8125rem;
193  opacity: 0;
194  transition: opacity 0.3s ease;
195
196  ${O}:hover & {
197    opacity: 1;
198  }
199
200  ${p.media.phonePortrait} {
201    display: none;
202  }
203`,q=c.default.p.withConfig({displayName:"styles__Description",componentId:"sc-158287a4-5"})`
204  font-size: 1rem;
205  font-weight: 400;
206  line-height: 1.4375rem;
207  letter-spacing: -0.015rem;
208  margin: 0;
209`,B=c.default.div.withConfig({displayName:"styles__ListenButton",componentId:"sc-158287a4-6"})`
210  align-items: center;
211  display: flex;
212  font-size: 1rem;
213  font-weight: 600;
214  gap: 0.25rem;
215  letter-spacing: -0.015rem;
216  line-height: 1.4375rem;
217`,Y=(0,c.default)(m.default).withConfig({displayName:"styles__ArrowIcon",componentId:"sc-158287a4-7"})`
218  display: block;
219
220  path {
221    stroke-width: 2px;
222  }
223`,U=c.default.div.withConfig({displayName:"styles__Info",componentId:"sc-158287a4-8"})`
224  display: flex;
225  flex-direction: column;
226  gap: 0.4rem;
227
228  ${p.media.phonePortrait} {
229    gap: 0.25rem;
230    overflow: hidden;
231  }
232`,H=c.default.p.withConfig({displayName:"styles__Overline",componentId:"sc-158287a4-9"})`
233  font-size: 1rem;
234  font-weight: 600;
235  line-height: 1.2;
236  margin-bottom: 0.1rem;
237
238  ${p.media.phonePortrait} {
239    font-size: 0.9rem;
240    margin-bottom: 0;
241  }
242`,W=c.default.h4.withConfig({displayName:"styles__Title",componentId:"sc-158287a4-10"})`
243  font-size: 1.25rem;
244  font-weight: 600;
245  line-height: 1.2;
246
247  ${p.media.phonePortrait} {
248    font-size: 1.1rem;
249    overflow: hidden;
250    text-overflow: ellipsis;
251    white-space: nowrap;
252  }
253`,G=c.default.p.withConfig({displayName:"styles__SpeakerName",componentId:"sc-158287a4-11"})`
254  font-size: 1rem;
255  font-weight: 400;
256  line-height: 1.4;
257
258  ${p.media.phonePortrait} {
259    font-size: 0.9375rem;
260    line-height: 1.3;
261    overflow: hidden;
262    text-overflow: ellipsis;
263    white-space: nowrap;
264  }
265`,V=(0,n.memo)(({description:e,imagesCover:t,imageUrl:a,mode:o,speakerName:i,subtitle:n,title:s,url:l})=>{let d=!a&&!!t&&t.length>0;return(0,r.jsxs)(O,{href:l,children:[(0,r.jsxs)(R,{children:[d?(0,r.jsx)(D,{imageUrls:t}):(0,r.jsx)(z,{alt:"",src:a}),"all-content"===o&&(0,r.jsxs)(M,{children:[(0,r.jsx)(q,{children:e}),(0,r.jsxs)(B,{children:["Listen",(0,r.jsx)(Y,{"aria-hidden":"true",name:"chevronRight",size:18})]})]})]}),(0,r.jsxs)(U,{children:[(0,r.jsx)(H,{children:n}),(0,r.jsx)(W,{children:s}),i.length>0&&(0,r.jsx)(G,{children:i})]})]})}),F=c.default.section.withConfig({displayName:"styles__Container",componentId:"sc-3d8c5764-0"})`
266  margin: 3.125rem 0 9.375rem;
267  width: 100%;
268
269  ${p.media.phoneLandscape} {
270    padding: 0;
271    margin: 3.125rem 0 3.125rem;
272  }
273`,K=c.default.div.withConfig({displayName:"styles__GridContainer",componentId:"sc-3d8c5764-1"})`
274  display: grid;
275  gap: 3.75rem 2.5625rem;
276  grid-template-columns: repeat(4, 1fr);
277  list-style-type: none;
278  padding: 0;
279  width: 100%;
280
281  ${p.media.tabletPortrait} {
282    grid-template-columns: repeat(2, 1fr);
283  }
284
285  ${p.media.phoneLandscape} {
286    grid-template-columns: repeat(2, 1fr);
287  }
288
289  ${p.media.phonePortrait} {
290    grid-template-columns: repeat(1, 1fr);
291    gap: 1.25rem;
292  }
293`,Z=c.default.div.withConfig({displayName:"styles__PaginationContainer",componentId:"sc-3d8c5764-2"})`
294  align-items: center;
295  background: rgba(255, 255, 255, 0.2);
296  border-radius: 0.5rem;
297  border: 1px solid rgba(255, 255, 255, 0.5);
298  box-shadow: 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.1);
299  display: flex;
300  gap: 1.25rem;
301  margin: 6.25rem auto;
302  padding: 0.3125rem 1.25rem;
303  width: fit-content;
304
305  ${p.media.phonePortrait} {
306    gap: 0;
307    justify-content: space-between;
308    width: 100%;
309    margin: 3.75rem auto;
310  }
311`,J=c.css`
312  border: none;
313  background-color: transparent;
314  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
315  font-size: 0.875rem;
316  font-style: normal;
317  font-weight: 600;
318  letter-spacing: 0.0313rem;
319  line-height: 1;
320  text-decoration: none;
321  padding: 0.8125rem 0.9375rem;
322  justify-content: center;
323  transition: opacity 0.2s ease;
324
325  &:hover:not(:disabled) {
326    opacity: 0.7;
327  }
328
329  &:disabled {
330    cursor: not-allowed;
331    opacity: 0.3;
332  }
333`,Q=c.default.button.withConfig({displayName:"styles__ArrowButton",componentId:"sc-3d8c5764-3"})`
334  ${J}
335  padding-left: 0;
336  padding-right: 0;
337  cursor: pointer;
338`,X=(0,c.default)(h.default).withConfig({displayName:"styles__PageButton",componentId:"sc-3d8c5764-4"})`
339  ${J}
340  border-radius: 0.3125rem;
341  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
342  font-size: 0.875rem;
343  font-weight: 600;
344  letter-spacing: 0.03125rem;
345
346  &[data-active='true'] {
347    background-color: #e5e5e5;
348  }
349
350  &[data-active='true']:hover {
351    background-color: #e5e5e5;
352  }
353`,ee=(0,c.default)(m.default).withConfig({displayName:"styles__Icon",componentId:"sc-3d8c5764-5"})`
354  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
355`,et=c.default.p.withConfig({displayName:"styles__Description",componentId:"sc-3d8c5764-6"})`
356  font-weight: normal;
357  font-size: 1rem;
358  line-height: 1.87;
359  margin-bottom: 6rem;
360  margin-top: 2rem;
361  text-align: center;
362`;var ea=e.i(80805);let eo=(0,n.memo)(({filters:e,mode:t,searchData:a})=>{let{containerRef:o,currentItems:i,currentPage:s,handleNextPage:l,handlePageClick:d,handlePreviousPage:c,pageCount:u,pageNumbers:m}=(({filters:e,searchData:t})=>{let{matches:a}=(0,ea.default)(p.media.phoneLandscape),[o,r]=(0,n.useState)(1),i=(0,n.useRef)(null),{courseTypes:s,search:l,sort:d,techniques:c,traditions:u,type:m}=e;(0,n.useEffect)(()=>{r(1)},[s,l,d,c,u,m]);let h=(0,n.useMemo)(()=>t.map(e=>({item:e,speakersText:e.speakerNames.map(e=>e.name).join(" ").toLowerCase(),titleText:e.title.toLowerCase()})),[t]),f=(0,n.useMemo)(()=>{let e=l.toLowerCase();return h.filter(({item:t,speakersText:a,titleText:o})=>(!m||t.type===m)&&(!(s.length>0)||!!t.courseType.some(e=>s.includes(e)))&&(!(c.length>0)||!!t.techniques?.some(e=>c.includes(e)))&&(!(u.length>0)||!!t.traditions?.some(e=>u.includes(e)))&&(!e||!!o.includes(e)||!!a?.includes(e))).map(({item:e})=>e)},[s,h,l,c,u,m]),g=(0,n.useMemo)(()=>{switch(d){case T.NEWEST:return f.toSorted((e,t)=>t.publishedAt.localeCompare(e.publishedAt));case T.OLDEST:return f.toSorted((e,t)=>e.publishedAt.localeCompare(t.publishedAt));case T.ALPHA_ASC:return f.toSorted((e,t)=>e.title.localeCompare(t.title));case T.ALPHA_DESC:return f.toSorted((e,t)=>t.title.localeCompare(e.title));case T.DURATION_ASC:return f.toSorted((e,t)=>e.duration-t.duration);case T.DURATION_DESC:return f.toSorted((e,t)=>t.duration-e.duration);default:return f}},[f,d]),{pageCount:y,pageNumbers:b}=(0,n.useMemo)(()=>{let e=Math.ceil(g.length/16),t=a?5:10;if(e<=t)return{pageCount:e,pageNumbers:Array.from({length:e},(e,t)=>t+1)};let r=Math.max(1,o-Math.floor(t/2)),i=r+t-1;return i>e&&(i=e,r=e-t+1),{pageCount:e,pageNumbers:Array.from({length:i-r+1},(e,t)=>r+t)}},[o,a,g.length]),x=(0,n.useMemo)(()=>{let e=(o-1)*16;return g.slice(e,e+16)},[g,o]),C=()=>{if(i.current){let e=i.current.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({behavior:"smooth",top:e-150})}},w=(0,n.useCallback)(()=>{r(e=>Math.max(1,e-1)),C()},[]);return{containerRef:i,currentItems:x,currentPage:o,handleNextPage:(0,n.useCallback)(()=>{r(e=>Math.min(y,e+1)),C()},[y]),handlePageClick:(0,n.useCallback)(e=>{r(e),C()},[]),handlePreviousPage:w,pageCount:y,pageNumbers:b}})({filters:e,searchData:a});return 0===u?(0,r.jsx)(et,{children:"Sorry, we couldn't find any results for your search. Try fewer filters or a different query."}):(0,r.jsxs)(F,{ref:o,children:[(0,r.jsx)(K,{children:i.map(e=>(0,r.jsx)(V,{description:e.description,imageUrl:e.imageThumbUrl,imagesCover:e.imagesCover,mode:t,speakerName:e.speakerNames.map(e=>e.name).join(", "),subtitle:e.subtitle,title:e.title,url:e.url},e.id))}),u>1&&(0,r.jsxs)(Z,{children:[(0,r.jsx)(Q,{"aria-label":"Previous page",disabled:1===s,onClick:c,type:"button",children:(0,r.jsx)(ee,{"aria-hidden":"true",name:"chevronLeft",size:14})}),m.map(e=>(0,r.jsx)(X,{"data-active":s===e,"aria-current":s===e?"page":void 0,"aria-label":`Page ${e}`,onClick:()=>d(e),type:"button",children:e},e)),(0,r.jsx)(Q,{"aria-label":"Next page",disabled:s===u,onClick:l,type:"button",children:(0,r.jsx)(ee,{"aria-hidden":"true",name:"chevronRight",size:14})})]})]})});var er=e.i(380926),ei=e.i(277);let en=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-d6ce6744-0"})`
363  background-color: transparent;
364  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
365
366  &:first-of-type {
367    border-top: none;
368  }
369
370  &:last-of-type {
371    border-bottom: none;
372  }
373`,es=(0,c.default)(m.default).withConfig({displayName:"styles__Icon",componentId:"sc-d6ce6744-1"})`
374  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
375  margin-left: auto;
376  min-width: 1.125rem;
377  transform: rotate(45deg);
378  transition: transform 0.3s ease;
379
380  &[data-open='true'] {
381    transform: rotate(90deg);
382  }
383`,el=c.default.button.withConfig({displayName:"styles__Header",componentId:"sc-d6ce6744-2"})`
384  align-items: center;
385  background: transparent;
386  border: none;
387  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
388  cursor: pointer;
389  display: flex;
390  font-size: 1rem;
391  font-weight: 600;
392  line-height: 1.2;
393  padding: 1.5rem 0;
394  text-align: left;
395  width: 100%;
396
397  &:hover {
398    opacity: 0.8;
399  }
400`,ed=c.default.div.withConfig({displayName:"styles__Panel",componentId:"sc-d6ce6744-3"})`
401  display: grid;
402  grid-template-rows: minmax(0, 0fr);
403  overflow: hidden;
404  transition: grid-template-rows 0.3s ease;
405
406  &[data-open='true'] {
407    grid-template-rows: minmax(0, 1fr);
408  }
409`,ec=c.default.div.withConfig({displayName:"styles__PanelContent",componentId:"sc-d6ce6744-4"})`
410  display: flex;
411  flex-direction: column;
412  gap: 0.75rem;
413  overflow: hidden;
414  padding: 0 0 1.875rem 0;
415`,ep=(0,n.memo)(({children:e,className:t,title:a})=>{let[o,i]=(0,n.useState)(!1),s=(0,n.useCallback)(()=>{i(e=>!e)},[]),l=(0,ei.default)(a),d=`panel-${l}-content`,c=`panel-${l}-header`;return(0,r.jsxs)(en,{className:t,children:[(0,r.jsxs)(el,{"aria-controls":d,"aria-expanded":o,id:c,onClick:s,type:"button",children:[a,(0,r.jsx)(es,{"aria-hidden":"true","data-open":o?"true":"false",name:"close",size:12})]}),(0,r.jsx)(ed,{"aria-labelledby":c,"data-open":o?"true":"false",id:d,inert:!o||void 0,role:"region",children:(0,r.jsx)(ec,{children:e})})]})});var eu=e.i(47384),em=e.i(219952),eh=e.i(543476),ef=e.i(924564);let eg=(0,c.default)(ef.motion.div).attrs(()=>({initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:[.16,1,.3,1]}})).withConfig({displayName:"styles__Backdrop",componentId:"sc-e2ee841e-0"})`
416  background: rgba(58, 58, 58, 0.8);
417  inset: 0;
418  mix-blend-mode: multiply;
419  position: fixed;
420  z-index: 1200;
421`,ey=(0,c.default)(ef.motion.aside).attrs(()=>({initial:"closed",animate:"open",exit:"closed",variants:{open:{x:"0%"},closed:{x:"100%"}},transition:{duration:.35,ease:[.16,1,.3,1]}})).withConfig({displayName:"styles__Panel",componentId:"sc-e2ee841e-1"})`
422  background-color: ${({theme:e})=>e.colors.coreNeutralWhite};
423  bottom: 0;
424  box-shadow: -0.25rem 0 1rem rgba(0, 0, 0, 0.1);
425  max-width: 32.5rem;
426  overflow-y: auto;
427  position: fixed;
428  right: 0;
429  top: 0;
430  width: 100%;
431  z-index: 1201;
432
433  ${p.media.phonePortrait} {
434    max-width: 100%;
435  }
436`,eb=(0,n.memo)(({children:e,isOpen:t,onClose:a,...o})=>{let i=(0,em.default)(a,t);return(0,n.useEffect)(()=>{if(!t)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[t]),(0,r.jsx)(eh.default,{children:(0,r.jsx)(eu.AnimatePresence,{initial:!1,children:t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eg,{"aria-hidden":"true",onClick:a}),(0,r.jsx)(ey,{...o,"aria-modal":"true",ref:i,role:"dialog",children:e})]})})})});var ex=e.i(994611);let eC=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-b94ed68b-0"})`
437  display: flex;
438  flex-direction: column;
439  gap: 1.25rem;
440`;var ew=e.i(106469);let e_=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-c38536dd-0"})`
441  display: flex;
442  flex-direction: column;
443  padding: 3.125rem;
444`,ev=c.default.div.withConfig({displayName:"styles__Header",componentId:"sc-c38536dd-1"})`
445  align-items: center;
446  display: flex;
447  justify-content: space-between;
448  margin-bottom: 1.875rem;
449`,eN=c.default.h2.withConfig({displayName:"styles__Title",componentId:"sc-c38536dd-2"})`
450  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
451  font-size: 1.5rem;
452  font-weight: 600;
453  margin: 0;
454`,eT=(0,c.default)(ew.default).withConfig({displayName:"styles__ButtonIcon",componentId:"sc-c38536dd-3"})`
455  color: ${({theme:e})=>e.colors.coreNeutralAbyss};
456  cursor: pointer;
457  margin-left: auto;
458
459  &:hover {
460    opacity: 0.7;
461  }
462
463  &:focus-visible {
464    outline: -webkit-focus-ring-color auto 0.125rem;
465  }
466`,eA=c.default.div.withConfig({displayName:"styles__Footer",componentId:"sc-c38536dd-4"})`
467  display: flex;
468  gap: 1rem;
469  margin-top: 3.75rem;
470
471  ${p.media.phoneLandscape} {
472    flex-direction: column;
473    gap: 0.625rem;
474  }
475`,ej=c.css`
476  border-radius: 0.375rem;
477  cursor: pointer;
478  flex: 1;
479  font-size: 1.125rem;
480  font-weight: 700;
481  padding: 0.875rem 1.5rem;
482
483  ${p.media.phoneLandscape} {
484    font-size: 1rem;
485  }
486`,ek=(0,c.default)(h.default).withConfig({displayName:"styles__ClearAllButton",componentId:"sc-c38536dd-5"})`
487  ${ej}
488  &&& {
489    background-color: transparent;
490    border: 1px solid #0e1529;
491    color: #0e1529;
492  }
493`,eI=(0,c.default)(h.default).withConfig({displayName:"styles__ApplyButton",componentId:"sc-c38536dd-6"})`
494  ${ej}
495`,eS=c.default.label.withConfig({displayName:"styles__CheckboxOption",componentId:"sc-c38536dd-7"})`
496  align-items: center;
497  break-inside: avoid;
498  cursor: pointer;
499  display: flex;
500  font-size: 0.9375rem;
501  gap: 0.75rem;
502  position: relative;
503`,eP=c.default.input.withConfig({displayName:"styles__CheckboxInput",componentId:"sc-c38536dd-8"})`
504  appearance: none;
505  border: 1px solid ${({theme:e})=>e.colors.grey400};
506  border-radius: 0.125rem;
507  cursor: pointer;
508  flex-shrink: 0;
509  height: 0.6875rem;
510  margin: 0;
511  position: relative;
512  width: 0.6875rem;
513
514  &:checked {
515    border-color: ${({theme:e})=>e.colors.grey400};
516  }
517
518  &:checked::after {
519    color: ${({theme:e})=>e.colors.coreNeutralAbyss};
520    border: solid ${({theme:e})=>e.colors.coreNeutralAbyss};
521    border-width: 0 1.5px 1.5px 0;
522    content: '';
523    height: 0.3125rem;
524    left: 0.1875rem;
525    position: absolute;
526    top: 1px;
527    transform: rotate(45deg);
528    width: 0.1875rem;
529  }
530`,eE=c.default.span.withConfig({displayName:"styles__Label",componentId:"sc-c38536dd-9"})`
531  color: inherit;
532  font-size: 0.875rem;
533  letter-spacing: 0.03125rem;
534  line-height: 1;
535
536  &:hover {
537    text-decoration: underline;
538    text-decoration-style: solid;
539    text-decoration-thickness: 1px;
540    text-decoration-offset: 2px;
541    text-decoration-skip-ink: auto;
542  }
543
544  ${p.media.phoneLandscape} {
545    &:hover {
546      text-decoration: none;
547    }
548  }
549`,e$=(0,n.memo)(({mode:e,onChange:t,selectedTypes:a})=>(0,r.jsx)(eC,{children:P(e).map(e=>(0,r.jsxs)(eS,{children:[(0,r.jsx)(eP,{checked:a.includes(e),onChange:()=>t(e),type:"checkbox"}),(0,r.jsx)(eE,{children:ex.COURSE_TYPE_LABELS[e]})]},e))})),eL=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-a3683dc5-0"})`
550  display: flex;
551  flex-direction: column;
552  gap: 1.25rem;
553`,eO=c.default.label.withConfig({displayName:"styles__RadioOption",componentId:"sc-a3683dc5-1"})`
554  align-items: center;
555  cursor: pointer;
556  display: flex;
557  font-size: 0.9375rem;
558  gap: 0.75rem;
559  position: relative;
560
561  &:hover {
562    opacity: 0.8;
563  }
564`,eR=c.default.input.withConfig({displayName:"styles__RadioInput",componentId:"sc-a3683dc5-2"})`
565  appearance: none;
566  border: 1px solid ${({theme:e})=>e.colors.grey400};
567  border-radius: 50%;
568  cursor: pointer;
569  height: 0.6875rem;
570  margin: 0;
571  position: relative;
572  width: 0.6875rem;
573
574  &:checked {
575    background-color: ${({theme:e})=>e.colors.coreNeutralWhite};
576  }
577
578  &:checked::after {
579    background-color: ${({theme:e})=>e.colors.coreNeutralAbyss};
580    border-radius: 50%;
581    content: '';
582    height: 0.4375rem;
583    left: 0.0625rem;
584    position: absolute;
585    top: 0.0625rem;
586    width: 0.4375rem;
587  }
588`,ez=(0,n.memo)(({mode:e,onChange:t,value:a})=>{let o=e=>{t(e.target.value)};return(0,r.jsx)(eL,{children:S(e).map(e=>(0,r.jsxs)(eO,{$isSelected:a===e,children:[(0,r.jsx)(eR,{checked:a===e,name:"sort",onChange:o,type:"radio",value:e}),(0,r.jsx)(eE,{children:A[e]})]},e))})});var eD=((a={}).VIPASSANA_INSIGHT="Vipassana / Insight Meditation",a.ZEN="Zen",a.DZOGCHEN_MAHAMUDRA="Dzogchen and Mahamudra",a.ADVAITA_VEDANTA="Advaita Vedanta",a.STOICISM="Stoicism",a.MODERN_PSYCHOLOGY="Modern Psychology & Neuroscience",a.WESTERN_PHILOSOPHY="Western Philosophy & Phenomenology",a.CONTEMPLATIVE_ARTS="Contemplative Arts & Literature",a),eM=((o={}).MOVEMENT="Movement",o.OBJECT="Object",o.OPEN_AWARENESS="Open Awareness",o.INQUIRY="Inquiry",o.METTA="Metta",o.VIPASSANA="Vipassana",o.YOGA_NIDRA="Yoga Nidra",o.WALKING="Walking",o.WATCHING_THE_BREATH="Watching the Breath",o.BODY_SCAN="Body Scan",o.VISUALIZATION="Visualization",o.SITTING="Sitting",o.STANDING="Standing",o.EYES_CLOSED="Eyes Closed",o.EYES_OPEN="Eyes Open",o.LYING_DOWN="Lying Down",o.OUTSIDE="Outside",o.NON_SLEEP_DEEP_REST="Non-Sleep Deep Rest",o.REST="Rest",o.MIRROR_EXERCISE="Mirror Exercise",o.POINTER="Pointer",o);let eq=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-d4637478-0"})`
589  display: grid;
590  grid-template-columns: repeat(2, 1fr);
591  gap: 1.25rem;
592
593  ${p.media.phonePortrait} {
594    grid-template-columns: repeat(1, 1fr);
595  }
596`,eB=(0,n.memo)(({onChange:e,selectedTechniques:t})=>(0,r.jsx)(eq,{children:Object.values(eM).map(a=>(0,r.jsxs)(eS,{children:[(0,r.jsx)(eP,{checked:t.includes(a),onChange:()=>e(a),type:"checkbox"}),(0,r.jsx)(eE,{children:a})]},a))})),eY=c.default.div.withConfig({displayName:"styles__Container",componentId:"sc-e9499195-0"})`
597  display: flex;
598  flex-direction: column;
599  gap: 1.25rem;
600`,eU=(0,n.memo)(({onChange:e,selectedTraditions:t})=>(0,r.jsx)(eY,{children:Object.values(eD).map(a=>(0,r.jsxs)(eS,{children:[(0,r.jsx)(eP,{checked:t.includes(a),onChange:()=>e(a),type:"checkbox"}),(0,r.jsx)(eE,{children:a})]},a))})),eH=new Set([...new Set(Object.values(d.PackType)),...new Set(Object.values(d.PackCategory)),s.ContentType.PLAYLIST]),eW=new Set(Object.values(eM)),eG=new Set(Object.values(eD)),eV={courseTypes:[],search:"",sort:T.NEWEST,techniques:[],traditions:[],type:null},eF=(e,t)=>{if(e instanceof URLSearchParams){let a=e.getAll(t);return a.length?a.join(","):null}let a=e[t];return Array.isArray(a)?a.join(","):a??null},eK=(e,t,a)=>{let o=eF(e,t);if(!o)return[];let r=new Set;return o.split(",").map(e=>e.trim()).filter(Boolean).forEach(e=>{a.has(e)&&r.add(e)}),Array.from(r)},eZ=(e,t)=>{let a=new Set(S(t)),o=new Set(P(t)),r=eF(e,"search")||eV.search,i=eF(e,"type"),n=i&&eH.has(i)?i:eV.type,s=eF(e,"sort"),l=s&&a.has(s)?s:eV.sort;return{courseTypes:eK(e,"courseTypes",o),search:r,sort:l,techniques:eK(e,"techniques",eW),traditions:eK(e,"traditions",eG),type:n}},eJ=(e,t,a)=>{a?e.set(t,a):e.delete(t)},eQ=(0,n.memo)(({filters:e,isOpen:t,mode:a,onApply:o,onClose:i})=>{let{handleApply:s,handleClearAll:l,handleClose:d,handleCourseTypeToggle:c,handleTechniqueToggle:p,handleTraditionToggle:u,nFiltersActive:m,setTempSort:h,tempCourseTypes:f,tempSort:g,tempTechniques:y,tempTraditions:b}=(({filters:e,isOpen:t,onApply:a,onClose:o})=>
600{let r=(0,n.useRef)(t),[i,s]=(0,n.useState)(e.sort),[l,d]=(0,n.useState)(()=>[...e.courseTypes]),[c,p]=(0,n.useState)(()=>[...e.techniques]),[u,m]=(0,n.useState)(()=>[...e.traditions]);(0,n.useEffect)(()=>{t&&!r.current&&(s(e.sort),d([...e.courseTypes]),p([...e.techniques]),m([...e.traditions])),r.current=t},[e.courseTypes,e.sort,e.techniques,e.traditions,t]);let h=(0,n.useCallback)(e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),f=(0,n.useCallback)(e=>{p(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),g=(0,n.useCallback)(e=>{m(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),y=(0,n.useCallback)(()=>{s(eV.sort),d([]),p([]),m([]),a({courseTypes:[],sort:eV.sort,techniques:[],traditions:[]}),o()},[a,o]);return{handleApply:(0,n.useCallback)(()=>{a({courseTypes:l,sort:i,techniques:c,traditions:u}),o()},[a,o,l,i,c,u]),handleClearAll:y,handleClose:(0,n.useCallback)(()=>{o()},[o]),handleCourseTypeToggle:h,handleTechniqueToggle:f,handleTraditionToggle:g,nFiltersActive:l.length+c.length+u.length,setTempSort:s,tempCourseTypes:l,tempSort:i,tempTechniques:c,tempTraditions:u}})({filters:e,isOpen:t,onApply:o,onClose:i}),x="sort-filter-sidebar-title";return(0,r.jsx)(eb,{"aria-labelledby":x,isOpen:t,onClose:d,children:(0,r.jsxs)(e_,{children:[(0,r.jsxs)(ev,{children:[(0,r.jsx)(eN,{id:x,children:"Sort & Filter"}),(0,r.jsx)(eT,{"aria-label":"Close filter menu",iconName:"xLight",onClick:d})]}),(0,r.jsx)(ep,{title:"Sort By",children:(0,r.jsx)(ez,{mode:a,onChange:h,value:g})}),(0,r.jsx)(ep,{title:"Types",children:(0,r.jsx)(e$,{mode:a,onChange:c,selectedTypes:f})}),er.isLocal&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ep,{title:"Techniques",children:(0,r.jsx)(eB,{onChange:p,selectedTechniques:y})}),(0,r.jsx)(ep,{title:"Traditions",children:(0,r.jsx)(eU,{onChange:u,selectedTraditions:b})})]}),(0,r.jsxs)(eA,{children:[(0,r.jsx)(ek,{onClick:l,type:"button",children:"Clear All"}),(0,r.jsxs)(eI,{onClick:s,type:"button",children:["Apply",0!==m&&` (${m})`]})]})]})})});var eX=e.i(938452),e0=e.i(159239);let e5=(0,c.default)(eX.default).withConfig({displayName:"style__LayoutDefault",componentId:"sc-db4d43e0-0"})`
601  ${e0.Container} {
602    padding: 6.625rem 6.5rem 6.25rem 6.5rem;
603  }
604
605  ${p.media.phoneLandscape} {
606    ${e0.Container} {
607      padding: 0 0 3.75rem 0;
608    }
609  }
610`;e.s(["default",0,({initialSearchParams:e,mode:t,searchData:a,title:o,campaign:s,channelAttribution:l,flowId:d="search-content"})=>{let{filters:c,handleApplyAdvancedFilters:p,handleCloseSortFilterSidebar:u,handleOpenSortFilterSidebar:m,handleSetSearch:h,handleSetType:f,isSortSidebarOpen:g}=(({initialSearchParams:e,mode:t})=>{let[a,o]=(0,n.useState)(()=>eZ(e,t)),[r,i]=(0,n.useState)(!1),s=(0,n.useCallback)(()=>{i(!0)},[]),l=(0,n.useCallback)(()=>{i(!1)},[]),d=(0,n.useCallback)(e=>{o(t=>({...t,search:e}))},[]),c=(0,n.useCallback)(e=>{o(t=>({...t,type:e}))},[]),p=(0,n.useCallback)(e=>{o(t=>({...t,...e}))},[]);return(({filters:e,mode:t,onPopStateFilters:a})=>{(0,n.useEffect)(()=>{let t=new URLSearchParams(window.location.search);eJ(t,"search",e.search||null),eJ(t,"type",e.type||null),eJ(t,"sort",e.sort!==eV.sort?e.sort:null),eJ(t,"courseTypes",e.courseTypes.length?e.courseTypes.join(","):null),eJ(t,"techniques",e.techniques.length?e.techniques.join(","):null),eJ(t,"traditions",e.traditions.length?e.traditions.join(","):null);let a=t.toString();if((window.location.search.startsWith("?")?window.location.search.slice(1):window.location.search)===a)return;let o=`${window.location.pathname}${a?`?${a}`:""}${window.location.hash}`;window.history.replaceState(window.history.state,"",o)},[e]),(0,n.useEffect)(()=>{let e=()=>{a(eZ(new URLSearchParams(window.location.search),t))};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[t,a])})({filters:a,mode:t,onPopStateFilters:(0,n.useCallback)(e=>{o(t=>t.search===e.search&&t.type===e.type&&t.sort===e.sort&&t.courseTypes.length===e.courseTypes.length&&t.courseTypes.every((t,a)=>t===e.courseTypes[a])&&t.techniques.length===e.techniques.length&&t.techniques.every((t,a)=>t===e.techniques[a])&&t.traditions.length===e.traditions.length&&t.traditions.every((t,a)=>t===e.traditions[a])?t:e)},[])}),{filters:a,handleApplyAdvancedFilters:p,handleCloseSortFilterSidebar:l,handleOpenSortFilterSidebar:s,handleSetSearch:d,handleSetType:c,isSortSidebarOpen:r}})({initialSearchParams:e,mode:t});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e5,{backgroundGradientColor:"#dbe8f7",campaign:s,channelAttribution:l,flowId:d,heroTitle:o,children:(0,r.jsxs)(i.default,{children:[(0,r.jsx)(E,{filters:c,mode:t,onSearchChange:h,onSortClick:m,onTypeChange:f}),(0,r.jsx)(eo,{filters:c,mode:t,searchData:a})]})}),(0,r.jsx)(eQ,{filters:c,isOpen:g,mode:t,onApply:p,onClose:u})]})}],92428)}
610]);
611
612//# debugId=7f6dffba-e9fc-5bae-022b-3259def6f73e

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.