1(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[6900],{7179:(e,t,n)=>{var r=n(49107),i=n(65295),l=n(22583);e.exports=function(e,t,n){return t===t?l(e,t,n):r(e,i,n)}},16326:(e,t,n)=>{var r=n(84773),i=n(56685);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},22583:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},28045:(e,t,n)=>{var r=n(6345),i=n(83286),l=n(3759),s=r&&1/l(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=s},35258:(e,t,n)=>{"use strict";n.d(t,{GE:()=>l,Pd:()=>s,U9:()=>i,eM:()=>a,wK:()=>o});var r=n(97141);const i=r.A.div` 2 width: 100%; 3 display: flex; 4 5 @media (min-width: 600px) { 6 width: auto; 7 } 8`,l=r.A.div` 9 width: 100%; 10 11 @media (min-width: 600px) { 12 display: flex; 13 justify-content: space-between; 14 align-items: baseline; 15 } 16`,s=r.A.p` 17 font-family: ProximaNova; 18 font-size: 14px; 19 font-weight: normal; 20 font-stretch: normal; 21 font-style: normal; 22 line-height: 1.24; 23 letter-spacing: normal; 24 color: #5a5a5a; 25 26 @media (min-width: 600px) { 27 font-size: 21px; 28 } 29`,o=r.A.div` 30 font-family: ProximaNova; 31 text-align: center; 32 padding: 0 0 150px; 33`,a=r.A.span` 34 text-transform: capitalize; 35`},42034:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(5172),i=n(4021),l=n(38341),s=n(86237),o=n(95254),a=n(64582);const c=e=>{let{categories:t,activeCategory:n,onChange:c}=e;const u=(0,o.useRef)(null),[d,x]=(0,o.useState)(!1),[h,f]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(null!==u&&void 0!==u&&u.current){const e=()=>{x(!(null===u||void 0===u||!u.current)&&u.current.scrollLeft>0),f(!(null===u||void 0===u||!u.current)&&Math.ceil(u.current.scrollLeft)+u.current.offsetWidth<u.current.scrollWidth)};u.current.onscroll=e,e()}}),[]),(0,a.jsxs)(i.a,{position:"relative",children:[d&&(0,a.jsx)(l.s,{position:"absolute",height:"100%",zIndex:1,align:"center",top:"0",width:["40px","100px"],left:"-1px",cursor:"pointer",onClick:()=>{const e=u.current;if(e){const t=e.scrollLeft-200;e.scroll({left:t,behavior:"smooth"})}},className:"category-carousel-next",justifyContent:"flex-start",background:"linear-gradient( to right, rgba(255, 255, 255, 0.98) 20%, rgba(33, 33, 33, 0) 80% );",children:(0,a.jsx)(r.YJ,{boxSize:6})}),(0,a.jsx)(l.s,{ref:u,id:"scroller",w:"100%",overflowX:"scroll",css:{"&::-webkit-scrollbar":{display:"none"},"scrollbar-width":"none"},children:Object.entries(t).map((e=>{let[t,r]=e;const i=n===t;return(0,a.jsx)(s.A,{onClick:()=>{c(t),function(e){const t=document.getElementById(e),n=null===u||void 0===u?void 0:u.current;if(t&&n){const e=t.offsetLeft-n.offsetLeft-n.clientWidth/2;n.scroll({left:e,behavior:"smooth"})}}(t)},selected:i,flexShrink:0,children:r},t)}))}),h&&(0,a.jsx)(l.s,{position:"absolute",height:"100%",zIndex:1,align:"center",top:"-1px",width:["40px","100px"],right:0,cursor:"pointer",onClick:()=>{const e=u.current;if(e){const t=e.scrollLeft+200;e.scroll({left:t,behavior:"smooth"})}},justifyContent:"flex-end",background:"linear-gradient( to left, rgba(255, 255, 255, 0.98) 20%, rgba(33, 33, 33, 0) 80% );",children:(0,a.jsx)(r.vK,{boxSize:6})})]})}},49107:e=>{e.exports=function(e,t,n,r){for(var i=e.length,l=n+(r?1:-1);r?l--:++l<i;)if(t(e[l],l,e))return l;return-1}},56685:(e,t,n)=>{var r=n(43283),i=n(75109),l=n(96505),s=n(56715),o=n(28045),a=n(3759);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,x=!0,h=[],f=h;if(n)x=!1,u=l;else if(d>=200){var p=t?null:o(e);if(p)return a(p);x=!1,u=s,f=new r}else f=t?[]:h;e:for(;++c<d;){var g=e[c],m=t?t(g):g;if(g=n||0!==g?g:0,x&&m===m){for(var v=f.length;v--;)if(f[v]===m)continue e;t&&f.push(m),h.push(g)}else u(f,m,n)||(f!==h&&f.push(m),h.push(g))}return h}},56900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(78067),i=n(84227),l=n(4021),s=n(38341),o=n(15651),a=n(92939),c=n(35404),u=n(41460),d=n(77985),x=n(84083),h=n(42034),f=n(18501),p=n(6500),g=n(89082),m=n(5804),v=n(86237),b=n(91557),j=n(44398),w=n(70030),A=n(16326),y=n.n(A),C=n(95254),k=n(21769),S=n.n(k),E=n(35258),H=n(98653),z=n(39309),L=n(64582);const N=e=>{let{children:t}=e;const{setBgColor:n}=(0,z.bl)();return(0,C.useEffect)((()=>(n("white"),()=>{n(void 0)})),[n]),(0,L.jsx)(l.a,{minHeight:"100vh",bgColor:"white",children:t})},I=[{value:"all",text:"All"},{value:"naturesounds",text:"Nature"},{value:"instrumentalmusic",text:"Instrumental"},{value:"ambientmusic",text:"Ambient"},{value:"binauralbeats",text:"Binaural Beats"},{value:"classicalmusic",text:"Classic"},{value:"chantingmantras",text:"Chanting Mantras"},{value:"soundhealing",text:"Sound Healing"},{value:"drumming",text:"Drumming"}],F=`${b.RF}/meditation-music`,M=new Map,R=()=>{var e;const[t,n]=(0,C.useState)("most_played"),[b,A]=(0,C.useState)("all"),[k,z]=(0,C.useState)([]),[R,$]=(0,C.useState)(),P=(0,C.useRef)(!1),W=(0,C.useRef)(0),B=(0,C.useRef)(0),T=(0,C.useRef)(""),G=(0,r.A)({base:!1,xl:!0}),D="Meditation Music",_=`Listen online to ${Number(null===R||void 0===R?void 0:R.totalCount).toLocaleStr
35ing()} FREE guided meditations, talks and music.`,{totalCount:O,isLoadingCount:X}=(0,j.A)({device_lang:"en",content_types:["music"],topics:"all"===b?void 0:[b]}),q=(0,w.A)(t,void 0,void 0,0,28,"en",void 0,"music","all"===b?void 0:b),K=(0,C.useCallback)(((e,n)=>{const r=`${t}:${b}:${e}:28`;let i=M.get(r);i||(i=q(e),M.set(r,i));const l=W.current+1;return W.current=l,i.then((e=>{l===W.current&&$((t=>n||null==t?{result:e.result||[],totalCount:Number(e.totalCount)||0}:{result:[...t.result,...e.result||[]],totalCount:Number(e.totalCount)||0}))})).catch((()=>{l===W.current&&n&&$({result:[],totalCount:0})})).finally((()=>{M.get(r)===i&&M.delete(r),l===W.current&&(P.current=!1)}))}),[q,28,t,b]),Y=(0,C.useCallback)((e=>{if(P.current)return;P.current=!0;const t=e?0:B.current;K(t,e)}),[K]);(0,C.useEffect)((()=>{var e;B.current=(null===R||void 0===R||null===(e=R.result)||void 0===e?void 0:e.length)||0}),[null===R||void 0===R||null===(e=R.result)||void 0===e?void 0:e.length]),(0,C.useEffect)((()=>()=>{W.current+=1,P.current=!1}),[]),(0,C.useEffect)((()=>{const e=`${t}:${b}`;T.current!==e&&(T.current=e,$(void 0),z([]),B.current=0,P.current=!1,Y(!0))}),[Y,t,b]);const J=(null===R||void 0===R?void 0:R.result.length)||0,Q=null==R||R.result.length<R.totalCount;(0,C.useEffect)((()=>{if(!Q)return;const e=()=>{const e=document.documentElement;window.innerHeight+window.scrollY>=e.scrollHeight-120&&Y()};return window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e)}}),[Y,Q]),(0,C.useEffect)((()=>{if(0===k.length&&null!=R){const e=R.result.map((e=>e.publisher)),t=y()(e,"id");z(t)}}),[k.length,R]);const U=I.reduce(((e,t)=>(e[t.value]=t.text,e)),{});return(0,L.jsxs)(N,{children:[O>0&&(0,L.jsx)(H.A,{title:D,description:_,url:F,isRemoveInsightTimerTitle:!0}),(0,L.jsx)(g.A,{description:"Our library of meditation music is designed to help you unwind, concentrate or even fall asleep.",children:D}),(0,L.jsxs)(o.A,{maxWidth:"1360px",paddingX:{base:"30px",lg:"40px","2xl":"64px"},overflow:{base:"hidden",xl:"visible"},children:[(0,L.jsxs)(i.B,{mb:{base:"43px",md:"84px"},justify:"space-between",direction:{base:"column",xl:"row"},children:[(0,L.jsx)(l.a,{width:{base:"100%",xl:"calc(73% - 48px)"},flexGrow:0,children:(0,L.jsx)(h.A,{categories:U,activeCategory:b,onChange:e=>A(e)})}),(0,L.jsxs)(s.s,{children:[(0,L.jsx)(v.A,{selected:"most_played"===t,onClick:()=>n("most_played"),children:"Popular"}),(0,L.jsx)(v.A,{selected:"newest"===t,onClick:()=>n("newest"),children:"Newest"})]})]}),(0,L.jsxs)(s.s,{gridColumnGap:{base:"30px",md:"48px"},children:[(0,L.jsxs)(l.a,{flexGrow:1,overflowX:"hidden",children:[(0,L.jsx)(E.GE,{children:(0,L.jsxs)(x.H3,{fontSize:{base:"20px",md:"30px"},lineHeight:{base:"31px",md:"35px"},fontWeight:400,marginBottom:{base:"16px",md:"37px"},visibility:X?"hidden":"visible",children:["Displaying"," ",O>0?Number(O).toLocaleString():""," ","Meditation Music Tracks"]})}),(0,L.jsx)(a.A,{height:"800px",children:(0,L.jsxs)(S(),{initialLoad:!1,loadMore:()=>Y(),hasMore:Q,loader:J>0?(0,L.jsx)(L.Fragment,{}):(0,L.jsx)(p.A,{}),children:[J>0?(0,L.jsx)(f.A,{libraryItems:(null===R||void 0===R?void 0:R.result)||[]}):null,Q&&J>0&&(0,L.jsx)(p.A,{})]})})]}),G&&(0,L.jsx)(s.s,{width:"320px",flexDirection:"column",alignItems:"flex-end",flexGrow:0,children:(0,L.jsx)(l.a,{position:"sticky",top:"130px",width:"320px",children:(0,L.jsx)(m.default,{})})})]})]}),(0,L.jsx)(c.default,{downloadAppBannerDesktopProps:{qrCodeInitialBottomSpacing:"90px"},useAppBannerDesktopRedirectQr:!0}),(0,L.jsx)(u.A,{}),(0,L.jsx)(d.A,{bottom:"100px"})]})}},65295:e=>{e.exports=function(e){return e!==e}},75109:(e,t,n)=>{var r=n(7179);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},84083:(e,t,n)=>{"use strict";n.d(t,{H2:()=>s,H3:()=>o,hE:()=>c,jS:()=>u,p$:()=>a,uq:()=>d});var r=n(89728),i=n(15263),l=(n(95254),n(64582));const s=e=>{let{children:t,...n}=e;return(0,l.jsx)(r.D,{as:"h2",fontWeight:"light",fontFamily:"Gelica",fontSize:["30px","40px","55px"],lineHeight:["40px","50px","65px"],letterSpacing:"-2%",color:"black",...n,children:t})},o=e=>{let{children:t,...n}=e;return(0,l.jsx)(r.D,{as:"h3",fontWeight:"light",fontFamily:"Gelica",fontSize:"30px",lineHeight:"35px",color:"black",...n,children:t})},a=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.E,{fontWeight:"normal",fontFamily:"ProximaNova",fontSize:["20px","20px","22px"],lineHeight:["30px","30px","32px"],...n,children:t})},c=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.E,{fontWeight:"normal",fontFamily:"ProximaNova",fontSize:["18px","18px","20px"],lineHeight:["28px","28px","30px"],...n,children:t})},u=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.E,{fontWeight:"normal",fontFamily:"ProximaNova",fontSize:["16px","16px","18px"],lineHeight:["20px","20px","24px"],...n,children:t})},d=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.E,{fontSize:"18px",lineHeight:"23px",...n,fontFamily:"ProximaNova",children:t})}}
35,92939:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4021),i=n(83646),l=n(84558),s=n(95254),o=n(64582);const a=e=>{let{children:t,viewOnTimeOut:n,keepAfterView:a,loaderHeight:c,offset:u=0,...d}=e;const[x,h]=(0,s.useState)(!1),f=(0,s.useRef)(null),{isPrerender:p}=(0,l.A)(),g=null===a||void 0===a||a;if((0,s.useEffect)((()=>{let e;return n&&(e=setTimeout((()=>{h(!0)}),n)),()=>{clearTimeout(e)}}),[n]),(0,s.useEffect)((()=>{if(p)return;if(g&&x)return;const e=f.current;if(!e)return;const t=new IntersectionObserver((e=>{const n=e.some((e=>e.isIntersecting));g?!x&&n&&(h(!0),t.disconnect()):h(n)}),{root:null,rootMargin:`9999px 0px ${u}px 0px`,threshold:0});return t.observe(e),()=>{t.disconnect()}}),[x,p,u,g]),!t)return null;if(p)return(0,o.jsx)(o.Fragment,{children:t});const{height:m,...v}=d,b=c||m||"100px",j=c||m;return(0,o.jsx)(i.A,{loaderHeight:j,children:(0,o.jsx)(r.a,{ref:f,height:x?void 0:b,...v,children:x&&(0,o.jsx)(o.Fragment,{children:t})})})}},96505:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},98653:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(64692),i=(n(95254),n(92709)),l=n(64582);const s=e=>{let{title:t,description:n,url:s,isRemoveInsightTimerTitle:o}=e;const{slug:a}=(0,i.g)();return null!=t&&null!=n?(0,l.jsx)(r.A,{title:o?t:`${t} | Insight Timer`,description:n,url:s,deepLink:`insight://discoverlibraries/topics/${a}`}):null}}}]); 36//# sourceMappingURL=6900.d118909a.chunk.js.map
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.