1"use strict";(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[5936,8491],{15936:(t,e,i)=>{i.r(e),i.d(e,{default:()=>x});var a=i(12867),r=i(64692),s=i(8367),n=i(56882),o=i(79438),d=i(30188);const l=i(97141).A.div` 2 padding: 0 40px; 3 padding-bottom: 32px; 4 padding-top: 30px; 5 margin: auto; 6 width: 100%; 7 @media (max-width: 768px) { 8 padding-left: 13px; 9 padding-right: 13px; 10 } 11 12 .meditation-title { 13 width: 100%; 14 border-bottom: 2px solid rgba(0, 0, 0, 0.09); 15 h1 { 16 font-size: 1.5rem; 17 margin-bottom: 1.25rem; 18 font-family: ProximaNova-Bold, sans-serif; 19 align-items: center; 20 display: block; 21 span { 22 text-transform: capitalize; 23 } 24 } 25 } 26 .meditation-block { 27 width: 100%; 28 padding-top: 1.25rem; 29 padding-bottom: 2.5rem; 30 } 31 .featured-title { 32 padding: 0.5rem 0; 33 font-family: ProximaNova-Bold, sans-serif; 34 align-items: center; 35 display: flex; 36 } 37`;var m=i(95254),c=i(78284),h=i(64582);const f=new c.E,x=t=>{let e,{match:i,location:c}=t;const{meditationTopic:x}=i.params,p=c.state&&"object"===typeof c.state&&"name"in c.state?c.state.name:x,{startwith:g}=i.params;let u=i.params.startwith,j=[];const[w,b]=(0,m.useState)(),[v,k]=(0,m.useState)([]),[N,y]=(0,m.useState)([]),[A,$]=(0,m.useState)([]);let C;return(0,m.useEffect)((()=>{if(w){for(const t of Object.values(w))j=j.concat(t);e=j.sort((()=>Math.random()-Math.random())).slice(0,100),i.params.startwith&&(C=i.params.startwith,"hash"===C?C="#":"more"===C&&(C="other"),$(w[C])),e=e.sort(((t,e)=>{const i=t.name.toUpperCase(),a=e.name.toUpperCase();return i<a?-1:i>a?1:0})),y(e),k(Object.keys(w))}}),[w,i.params.startwith]),(0,m.useEffect)((()=>{f.getDirectoryGMSData(x).then((t=>{b(t)}
37)).catch((t=>{console.log(t),b(null)}))}),[]),"hash"===u?u="Numbers":"more"===u&&(u="Others"),null===w?(0,h.jsx)(n.default,{}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r.A,{title:null!==p&&void 0!==p?p:"",description:null!==p&&void 0!==p?p:"",url:`https://insighttimer.com/dir/guided-meditations/${x}${g?`/${g}`:""}`}),w&&(0,h.jsx)(l,{children:(0,h.jsxs)(a.A,{container:!0,direction:"row",children:[(0,h.jsx)("div",{className:"meditation-title",children:(0,h.jsxs)("h1",{children:["Meditations for",(0,h.jsxs)("span",{children:[" ",p," "]}),u&&` starting with '${u.toUpperCase()}'`]})}),(0,h.jsx)(d.A,{filterKeys:v,baseLink:`/dir/guided-meditations/${x}`}),g&&(0,h.jsx)("div",{className:"meditation-block",children:(0,h.jsxs)(a.A,{container:!0,direction:"row",children:[A&&A.map(((t,e)=>(0,h.jsx)(o.A,{linkTo:t.web_url,title:t.name},e))),!A&&g&&(0,h.jsx)("div",{children:"Nothing found."})]})}),(0,h.jsxs)("div",{className:"meditation-block",children:[(0,h.jsx)("h2",{className:"featured-title",children:"Featured"}),(0,h.jsxs)(a.A,{container:!0,direction:"row",children:[N&&N.map(((t,e)=>(0,h.jsx)(o.A,{linkTo:t.web_url,title:t.name},e))),!N.length&&(0,h.jsx)("div",{children:"Nothing found."})]})]})]})}),(0,h.jsx)(s.default,{})]})}},30188:(t,e,i)=>{i.d(e,{A:()=>o});const a=i(97141).A.div` 38 display: flex; 39 alignitems: flex-start; 40 padding-top: 1rem; 41 @media (max-width: 768px) { 42 display: block; 43 } 44 h2 { 45 width: 13%; 46 padding: 0.5rem 0 0.5rem 0; 47 margin-right: 0.75rem; 48 font-family: ProximaNova-Bold, sans-serif; 49 align-items: center; 50 display: flex; 51 @media (max-width: 768px) { 52 width: 100%; 53 } 54 } 55 .browser-wrap { 56 width: 100%; 57 display: flex; 58 @media (max-width: 768px) { 59 align-items: flex-start; 60 flex-wrap: wrap; 61 } 62 } 63 64 .filter-link { 65 min-width: 2rem; 66 text-transform: capitalize; 67 text-align: center; 68 padding: 0.25rem 0.5rem; 69 line-height: 2; 70 border-radius: 9999px; 71 color: #8d8d8d; 72 @media (max-width: 768px) { 73 background-color: #f4f4f4; 74 margin: 0.25rem; 75 &:hover { 76 background-color: #f4f4f4; 77 } 78 } 79 } 80 .filter-link.isAvailable { 81 color: #22292f; 82 @media (max-width: 768px) { 83 background-color: #f4f4f4; 84 margin: 0.25rem; 85 &:hover { 86 background-color: #22292f; 87 color: #ffffff !important; 88 } 89 } 90 } 91 .filter-link.active { 92 color: #181818; 93 background-color: #f4f4f4; 94 @media (max-width: 768px) { 95 color: #ffffff; 96 background-color: #22292f; 97 } 98 } 99`;i(95254);var r=i(42046),s=i(64582);const n=t=>{let{exists:e,to:i,filterName:a}=t;return(0,s.jsx)(s.Fragment,{children:e?(0,s.jsx)(r.NavLink,{exact:!0,activeClassName:"active",to:i,className:"filter-link isAvailable",children:a}):(0,s.jsx)("span",{className:"filter-link ",children:a})})},o=t=>{let{filterKeys:e,baseLink:i}=t;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(a,{children:[(0,s.jsx)("h2",{children:"Browse by"}),(0,s.jsxs)("div",{className:"browser-wrap",children:[(0,s.jsx)(n,{exists:!0,to:i,filterName:"All"}),(0,s.jsx)(n,{exists:e.includes("#"),to:`${i}/hash`,filterName:"#"}),new Array(26).fill(1).map(((t,a)=>{const r=String.fromCharCode(97+a),o=e.includes(r);return(0,s.jsx)(n,{exists:o,to:`${i}/${r}`,filterName:r},r)})),(0,s.jsx)(n,{exists:e.includes("other"),to:`${i}/more`,filterName:"Other"})]})]})})}},38491:(t,e,i)=>{i.r(e),i.d(e,{default:()=>n});var a=i(70705),r=i.n(a),s={};for(const o in a)"default"!==o&&(s[o]=()=>a[o]);i.d(e,s);const n=r().create({timeout:3e3})},78284:(t,e,i)=>{i.d(e,{E:()=>r});var a=i(38491);class r{getDirectoryData(t){return a.default.get(`https://sitemap.insighttimer.com/json/${t}.json`).then((t=>t.data))}getDirectoryGMSData(t){return a.default.get(`https://sitemap.insighttimer.com/gms/${t}.json`).then((t=>t.data))}}},79438:(t,e,i)=>{i.d(e,{A:()=>o});i(95254);var a=i(42046),r=i(66823);const s=i(97141).A.div` 100 width: 25%; 101 padding-right: 30px; 102 font-size: 0.875rem; 103 color: #8d8d8d; 104 line-height: 1.625; 105 font-family: ProximaNova-Regular, sans-serif; 106 @media (max-width: 768px) { 107 width: 50%; 108 padding-right: 15px; 109 } 110`;var n=i(64582);const o=t=>{let{linkTo:e,title:i}=t;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s,{children:(0,n.jsx)(a.NavLink,{to:e,children:(0,n.jsx)(r.A,{id:i,defaultMessage:i})})})})}}}]); 111//# sourceMappingURL=5936.3f0f6a82.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.