PageSourceSearch

https://shutupandbreathe.vercel.app/_next/static/chunks/app/page-c5dea937ea6aaf09.js

js shutupandbreathe.vercel.app collected 2026-10-03 07:42:27 UTC 9,766 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{7678:function(e,t,r){Promise.resolve().then(r.bind(r,3178)),Promise.resolve().then(r.bind(r,2810))},2810:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return E}});var a=r(7437),s=r(2265),n=r(1126),o=r(6210),l=r(3081),i=r(8798),c=r(9251),d=r(9143),u=r(7742),f=r(3167),m=r(1367);function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,m.m6)((0,f.W)(t))}let p=(0,u.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),x=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:o=!1,...l}=e,i=o?d.g7:"button";return(0,a.jsx)(i,{className:h(p({variant:s,size:n,className:r})),ref:t,...l})});x.displayName="Button";var b=r(3270),g=r(3441),y=r(5159),v=r(9259);let j=b.fC;b.ZA;let w=b.B4,N=s.forwardRef((e,t)=>{let{className:r,children:s,...n}=e;return(0,a.jsxs)(b.xz,{ref:t,className:h("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...n,children:[s,(0,a.jsx)(b.JO,{asChild:!0,children:(0,a.jsx)(g.Z,{className:"h-4 w-4 opacity-50"})})]})});N.displayName=b.xz.displayName;let k=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(b.u_,{ref:t,className:h("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(y.Z,{className:"h-4 w-4"})})});k.displayName=b.u_.displayName;let S=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(b.$G,{ref:t,className:h("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(g.Z,{className:"h-4 w-4"})})});S.displayName=b.$G.displayName;let _=s.forwardRef((e,t)=>{let{className:r,children:s,position:n="popper",...o}=e;return(0,a.jsx)(b.h_,{children:(0,a.jsxs)(b.VY,{ref:t,className:h("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...o,children:[(0,a.jsx)(k,{}),(0,a.jsx)(b.l_,{className:h("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(S,{})]})})});_.displayName=b.VY.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(b.__,{ref:t,className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...s})}).displayName=b.__.displayName;let C=s.forwardRef((e,t)=>{let{className:r,children:s,...n}=e;return(0,a.jsxs)(b.ck,{ref:t,className:h("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...n,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(b.wU,{children:(0,a.jsx)(v.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(b.eT,{children:s})]})});C.displayName=b.ck.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(b.Z0,{ref:t,className:h("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=b.Z0.displayName;var R=r(6579);let Z=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(R.fC,{ref:t,className:h("relative flex w-full touch-none select-none items-center",r),...s,children:[(0,a.jsx)(R.fQ,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,a.jsx)(R.e6,{className:"absolute h-full bg-primary"})}),(0,a.jsx)(R.bU,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})});Z.displayName=R.fC.displayName;var V=r(8009),E=()=>{let{data:e}=(0,n.useSession)(),[t,r]=(0,s.useState)(!1),[d,u]=(0,s.useState)(120),[f,m]=(0,s.useState)("clouds.mp3"),[h,p]=(0,s.use
1State)("clouds.jpg"),[b,g]=(0,s.useState)(.3),[y,v]=(0,s.useState)(.7),k=(0,s.useRef)(null),S=(0,s.useRef)(null),[R,E]=(0,s.useState)(!1),z=async()=>{try{let t=await fetch("".concat("https://shutupandbreathe.vercel.app","/api/check-in"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e.user.id})});if(t.ok){let e=await t.json();!1===e.checkedInAlready&&(E(!0),V.Am.success("Daily check-in recorded!"))}else console.error("Failed to log check-in")}catch(e){console.error("Error logging check-in:",e)}};return(0,s.useEffect)(()=>{let e;return t&&d>0?e=setInterval(()=>u(e=>e-1),1e3):0===d&&r(!1),()=>clearInterval(e)},[t,d]),(0,s.useEffect)(()=>{k.current&&S.current&&(t?(k.current.play().catch(e=>console.error("Background audio play failed:",e)),S.current.play().catch(e=>console.error("Voice audio play failed:",e)),e&&!R&&z()):(k.current.pause(),S.current.pause()))},[t,f,e,R]),(0,s.useEffect)(()=>{k.current&&(k.current.volume=b)},[b]),(0,s.useEffect)(()=>{S.current&&(S.current.volume=y)},[y]),(0,a.jsx)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-cover bg-center transition-all duration-1000 ease-in-out",style:{backgroundImage:"url(".concat("https://kanshareban.blob.core.windows.net/meditation","/").concat(h,")")},children:(0,a.jsxs)("div",{className:"bg-black bg-opacity-50 p-8 rounded-3xl shadow-2xl backdrop-blur-md transition-all duration-500 ease-in-out hover:bg-opacity-60 w-80 sm:w-96",children:[(0,a.jsx)("div",{className:"text-7xl font-bold mb-8 text-center text-white drop-shadow-lg transition-all duration-300 ease-in-out hover:scale-105 font-mono w-full",children:"".concat(Math.floor(d/60).toString().padStart(2,"0"),":").concat((d%60).toString().padStart(2,"0"))}),(0,a.jsxs)("div",{className:"flex justify-center space-x-6 mb-8",children:[(0,a.jsx)(x,{onClick:a=>{a.preventDefault(),t||!e||R||z(),r(!t)},className:"w-16 h-16 rounded-full bg-white bg-opacity-20 hover:bg-opacity-30 transition-all duration-300 ease-in-out transform hover:scale-110 flex items-center justify-center",children:t?(0,a.jsx)(o.Z,{className:"h-8 w-8 text-white"}):(0,a.jsx)(l.Z,{className:"h-8 w-8 text-white"})}),(0,a.jsx)(x,{onClick:()=>{r(!1),u(120),k.current&&(k.current.pause(),k.current.currentTime=0),S.current&&(S.current.pause(),S.current.currentTime=0)},className:"w-16 h-16 rounded-full bg-white bg-opacity-20 hover:bg-opacity-30 transition-all duration-300 ease-in-out transform hover:scale-110 flex items-center justify-center",children:(0,a.jsx)(i.Z,{className:"h-8 w-8 text-white"})})]}),(0,a.jsx)("div",{className:"flex justify-center mb-4",children:(0,a.jsxs)(j,{onValueChange:e=>{m(e),p(e.includes("forest")?"forest.jpg":e.includes("ocean")?"ocean.jpg":e.includes("rain")?"rain.jpg":"clouds.jpg"),k.current&&(k.current.load(),t&&k.current.play().catch(e=>console.error("Background audio play failed:",e)))},value:f,children:[(0,a.jsx)(N,{className:"w-full bg-white bg-opacity-20 text-white border-none focus:ring-2 focus:ring-white",children:(0,a.jsx)(w,{placeholder:"Select background"})}),(0,a.jsxs)(_,{className:"bg-black bg-opacity-80 text-white",children:[(0,a.jsx)(C,{value:"clouds.mp3",children:"Clouds"}),(0,a.jsx)(C,{value:"forest-163012.mp3",children:"Forest"}),(0,a.jsx)(C,{value:"gentle-ocean-waves-birdsong-and-gull-7109.mp3",children:"Ocean"}),(0,a.jsx)(C,{value:"light-rain-109591.mp3",children:"Rain"})]})]})}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center mb-2",children:[(0,a.jsx)(c.Z,{className:"h-4 w-4 text-white mr-2"}),(0,a.jsx)("span",{className:"text-white text-sm",children:"Backgroun
1d Volume"})]}),(0,a.jsx)(Z,{value:[100*b],onValueChange:e=>g(e[0]/100),max:100,step:1})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center mb-2",children:[(0,a.jsx)(c.Z,{className:"h-4 w-4 text-white mr-2"}),(0,a.jsx)("span",{className:"text-white text-sm",children:"Meditation Voice Volume"})]}),(0,a.jsx)(Z,{value:[100*y],onValueChange:e=>v(e[0]/100),max:100,step:1})]}),(0,a.jsx)("audio",{ref:k,src:"".concat("https://kanshareban.blob.core.windows.net/meditation","/").concat(f),loop:!0}),(0,a.jsx)("audio",{ref:S,src:"".concat("https://kanshareban.blob.core.windows.net/meditation","/meditation.mp3"),loop:!0})]})})}}},function(e){e.O(0,[224,250,703,296,439,610,317,178,971,69,744],function(){return e(e.s=7678)}),_N_E=e.O()}]);

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.