PageSourceSearch

https://www.selfgazer.com/_next/static/chunks/pages/welcome-big-3-8641906d76c20546.js

js selfgazer.com collected 2026-09-26 17:38:32 UTC 6,789 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f7cb325a-ad67-4385-a0a8-70d88ff6505e",e._sentryDebugIdIdentifier="sentry-dbid-f7cb325a-ad67-4385-a0a8-70d88ff6505e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7586],{83721:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/welcome-big-3",function(){return n(1013)}])},15472:function(e,t,n){"use strict";n.d(t,{Z:function(){return BirthChartChips}});var r=n(85893),a=n(67294),s=n(39057),o=n(89104),l=n(57349),i=n(95284);function BirthChartChips(e){let{charts:t,onSelect:n,onStartNew:c,context:d}=e,[h,u]=(0,a.useState)(!1),[f,m]=(0,a.useState)(t||[]);async function handleDelete(e,t){if(t.stopPropagation(),window.confirm("Delete this chart?"))try{let t=await fetch("/api/user/delete-birth-chart?birthName=".concat(encodeURIComponent(e)),{method:"DELETE"});if(t.ok){let t=f.filter(t=>t.birthName!==e);m(t),0===t.length&&c()}else console.error("Delete request failed:",t.status)}catch(e){console.error("Error deleting birth chart:",e)}}if((0,a.useEffect)(()=>{m(t||[])},[t]),!f||0===f.length)return null;let x=h?f:f.slice(0,5);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center text-center mb-8",children:[(0,r.jsx)("div",{className:"font-semibold text-stone-800 font-lora text-lg",children:"bazi"===d?"BaZi (Chinese Astrology) Room":"big-3"===d?"Select a Chart to Explore Your Big 3":"Astrology Room"}),(0,r.jsx)("div",{className:"text-sm max-w-xs mx-auto text-stone-500",children:"bazi"===d?"To explore the BaZi insights of a birth chart, please select an existing chart below or create a new one.":"big-3"===d?"To explore the Sun, Moon, and Rising signs of a chart, please select an existing chart below or create a new one.":"To explore the astrological insights of a chart, please select an existing chart below or create a new one."})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[x.map(e=>(0,r.jsxs)("div",{onClick:()=>{console.log("[DEBUG] Chip clicked for chart: ".concat(e.birthName,", id: ").concat(e.id,", timestamp: ").concat(new Date().toISOString())),n(e)},className:"flex items-center gap-2 px-3 py-1.5 bg-stone-100 border border-stone-300 rounded-full cursor-pointer hover:bg-stone-200 transition-colors",children:[(0,r.jsxs)("span",{className:"text-sm text-stone-700",children:[e.birthName,null!==e.subject&&"unknown"!==e.subject&&" (".concat((0,i.BA)(e.subject),")")]}),(0,r.jsx)(s.Z,{className:"h-5 w-5 text-stone-400 hover:text-stone-600",onClick:t=>handleDelete(e.birthName,t)})]},e.id||e.birthName)),f.length>5&&(0,r.jsx)("button",{onClick:()=>u(!h),className:"flex items-center gap-1 px-3 py-1.5 text-sm text-stone-500 hover:text-stone-700",children:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Show less"}),(0,r.jsx)(o.Z,{className:"h-4 w-4"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Show more"}),(0,r.jsx)(l.Z,{className:"h-4 w-4"})]})}),(0,r.jsx)("div",{onClick:c,className:"flex items-center gap-2 px-3 py-1.5 bg-stone-50 border border-stone-700 rounded-full cursor-pointer hover:bg-stone-200 transition-colors text-sm text-stone-600",children:"+ Start New Chart"})]})]})}},34995:function(e,t,n){"use strict";n.d(t,{Z:function(){return LoaderPulsingDot}});var r=n(85893);function LoaderPulsingDot(e){let{text:t="Loading...",size:n="large"}=e;return"small"===n?(0,r.jsx)("span",{className:"w-5 h-5 bg-amber-500 rounded-full animate-pulse flex-shrink-0"}):(0,r.jsxs)("div",{className:"flex flex-col justify-center items-center h-[80vh] w-full",children:[(0,r.jsx)("span",{className:"w-12 h-12 bg-amber-500 rounded-full animate-pulse opacity-75",style:{animation:"pulse 2s infinite"}}),(0,r.jsx)("h2",{className:"text-[1.2rem] from-amber-800 to-amber-950 italic bg-gradient-to-br py-4 bg-clip-text text-transparent font-semibold font-lora text-center",children:t})]})}},1013:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return WelcomeBig3}});var r=n(85893),a=n(67294),s=n(33299),o=n(11163),l=n(15472),i=n(34995);function WelcomeBig3(){let{data:e,status:t}
1=(0,s.useSession)(),n=(0,o.useRouter)(),[c,d]=(0,a.useState)([]),[h,u]=(0,a.useState)(!0);async function fetchUserCharts(){u(!0);try{let e=await fetch("/api/user/get-birth-charts");if(!e.ok)throw Error("Failed to fetch birth charts");let t=await e.json();d(t)}catch(e){console.error("Error fetching charts:",e)}finally{u(!1)}}async function handleSelectChart(e){if(!e.id){console.error("Chart does not have an ID:",e);return}n.push("/big-3-room/".concat(e.id))}return((0,a.useEffect)(()=>{"unauthenticated"===t&&n.replace("/auth/signin?showAstroBanner=true")},[t,n]),(0,a.useEffect)(()=>{"loading"!==t&&"authenticated"===t&&fetchUserCharts()},[t]),"loading"===t)?(0,r.jsx)(i.Z,{text:"Loading..."}):"unauthenticated"===t?(0,r.jsx)(i.Z,{text:"Redirecting to login..."}):h?(0,r.jsx)(i.Z,{text:"Loading your charts..."}):0===c.length?(n.push("/welcome-astro?view=chart_form"),(0,r.jsx)(i.Z,{text:"Redirecting to create a chart..."})):(0,r.jsx)("div",{className:"p-4 w-full flex flex-col items-center justify-center max-w-md mx-auto",children:(0,r.jsx)("div",{className:"max-w-md w-full",children:(0,r.jsx)(l.Z,{charts:c,onSelect:handleSelectChart,onStartNew:()=>n.push("/welcome-astro?view=chart_form"),context:"big-3"})})})}},89104:function(e,t,n){"use strict";var r=n(67294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});t.Z=a},39057:function(e,t,n){"use strict";var r=n(67294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))});t.Z=a}},function(e){e.O(0,[5284,9774,2888,179],function(){return e(e.s=83721)}),_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.