1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4361],{11061:(e,t,o)=>{"use strict";o.d(t,{$:()=>l});var n=o(37876);o(14232);var r=o(82987),a=o(47137),i=o(77166);let s=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:o,size:a,asChild:l=!1,...c}=e,d=l?r.DX:"button";return(0,n.jsx)(d,{"data-slot":"button",className:(0,i.cn)(s({variant:o,size:a,className:t})),...c})}},39601:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>W});var n=o(37876),r=o(14232),a=o(11061),i=o(96367),s=o(89926),l=o(53038),c=o(48230),d=o.n(c);function u(e){let{roomName:t,onRoomNameChange:o}=e,[c,u]=(0,r.useState)(!1),[m,g]=(0,r.useState)(t);function p(e){("Enter"===e.key||"blur"===e.type)&&(u(!1),o(m))}return(0,n.jsx)("div",{className:"container mx-auto px-6 py-6",children:(0,n.jsxs)("div",{className:"flex items-center justify-between mb-6 animate-in fade-in slide-in-from-top-4 duration-500",children:[(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(d(),{href:"/dashboard",children:(0,n.jsxs)(a.$,{variant:"outline",className:"rounded-full bg-white/80 backdrop-blur-md border-[#E8E4F0]/50 text-[#4A4458] font-semibold hover:bg-white hover:border-[#F85BB4] hover:shadow-lg transition-all duration-200 shadow-md",children:[(0,n.jsx)(s.A,{className:"w-4 h-4 mr-2"}),"Back to Dashboard"]})})}),(0,n.jsx)("div",{className:"absolute left-1/2 transform -translate-x-1/2 flex items-center gap-4",children:c?(0,n.jsx)(i.p,{value:m,onChange:e=>g(e.target.value),onKeyDown:p,onBlur:p,autoFocus:!0,className:"text-2xl font-bold text-[#4A4458] h-12 w-64 border-[#E8E4F0] focus:border-[#F85BB4] bg-white/80 backdrop-blur-sm rounded-xl shadow-md"}):(0,n.jsxs)("div",{className:"group flex items-center gap-2 cursor-pointer hover:bg-white/60 backdrop-blur-sm px-4 py-2 rounded-xl transition-all duration-200 hover:shadow-md",onClick:()=>u(!0),children:[(0,n.jsx)("h1",{className:"text-2xl font-bold text-[#4A4458] tracking-tight",children:t}),(0,n.jsx)(l.A,{className:"w-4 h-4 text-[#F85BB4] opacity-0 group-hover:opacity-100 transition-opacity"})]})}),(0,n.jsx)("div",{className:"flex items-center gap-3"})]})})}var m=o(18847),g=o.n(m),p=o(54163),f=o(96473),h=o(95159);function b(e){let{open:t,onOpenChange:o}=e;return(0,n.jsxs)(f.lG,{open:t,onOpenChange:o,children:[(0,n.jsx)(f.zM,{asChild:!0,children:(0,n.jsx)(a.$,{variant:"outline",size:"sm",className:"rounded-full border-[#E8E4F0]/50 text-[#4A4458] hover:bg-white hover:border-[#FF2D95] hover:shadow-md transition-all shadow-sm font-semibold",children:(0,n.jsx)(h.A,{className:"w-4 h-4"})})}),(0,n.jsxs)(f.Cf,{className:"sm:max-w-md bg-white/95 backdrop-blur-md border-[#E8E4F0]/50 shadow-2xl overflow-hidden",style:{fontFamily:"'Inter', 'Poppins', 'Helvetica Neue', Arial, sans-serif"},children:[(0,n.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,n.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-[#FFE4E8]/30 rounded-full blur-3xl"}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-[#F8F5FF]/30 rounded-full blur-3xl"})]}),(0,n.jsx)(f.c7,{className:"relative",children:(0,n.jsx)(f.L3,{className:"text-[#4A4458] text-xl font-bold",children:"How to interact with your pet's room"})}),(0,n.jsxs)("div",{className:"space-y-3 py-4 relative",children:[(0,n.jsx)(v,{title:"Left Click + Drag",description:"Rotate the camera"}),(0,n.jsx)(v,{title:"Twoâfinger Scroll / Mouse Wheel",description:"Zoom in and out"}),(0,n.jsx)(v,{title:"Action Buttons",description:"Use Feed, Play, Walk, and Pet buttons to interact with your pet"})]})]})]})}function v(e){let{title:t,description:o}=e;return(0,n.jsxs)("div",{className:"group flex items-start gap-4 p-4 rounded-xl bg-gradient-to-r from-[#FFF5F7] to-[#F8F5FF] border-2 border-[#FFE4E8]/60 hover:border-[#FF2D95]/40 hover:shadow-lg hover:scale-[1.02] transition-all duration-200 relative overflow-hidden",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#FFE4E8]/10 to-[#F8F5FF]/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"w-2 h-2 bg-[#FF2D95] rounded-full mt-2 flex-shrink-0 shadow-sm"}),(0,n.jsx)("div",{className:"absolute inset-0 bg-[#FF2D95]/30 rounded-full blur-sm"})]}),(0,n.jsxs)("div",{className:"relative flex-1",children:[(0,n.jsx)("p",{className:"font-semibold text-[#4A4458] text-base mb-1",children:t}),(0,n.jsx)("p",{className:"text-sm text-[#6B6B6B]",children:o})]})]})}var x=o(35739),y=o(72502),w=o(54342),F=o(16124),j=o(36414),N=o(46440),E=o(5902),B=o(26101);function k(e,t,o){let n=null==o?void 0:o.name,r=!1;try{o&&"function"==typeof o.emitEvent&&(o.emitEvent(t),r=!0,console.log("\uD83C\uDFAF emitEvent(".concat(t,") on"),n))}catch(e){console.warn("emitEvent(".concat(t,") on object failed:"),null==e?void 0:e.message)}if(!r&&"function"==typeof e.emitEvent&&n)try{e.emitEvent(t,n),r=!0,console.log("\uD83C\uDFAF splineApp.emitEvent(".concat(t,", ").concat(n,")"))}catch(e){console.warn("splineApp.emitEvent(".concat(t,") failed:"),null==e?void 0:e.message)}return r}function _(e,t){return e.findObjectByName("Shibainu")||e.findObjectByName("shibainu")||e.findObjectByName("Shibalnu")||e.findObjectByName("ShibaInu")||t.find(e=>e.name&&e.name.toLowerCase().includes("shiba"))||null}let z=g()(()=>Promise.all([o.e(5790),o.e(2909),o.e(6250)]).then(o.bind(o,16250)),{loadableGenerated:{webpack:()=>[16250]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-[#FFF5F7] to-[#F8F5FF]",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(x.A,{className:"w-12 h-12 text-[#F85BB4] animate-spin mx-auto mb-4"}),(0,n.jsx)("p",{className:"text-lg font-bold text-[#4A4458]",children:"Loading your Pet's Room..."})]})})});function A(e){let{sceneUrl:t,maxStepDistance:o=8,showNotification:i=!1,notificationMessage:s="",onFeedReady:l=null,onPlayReady:c=null,onWalkReady:d=null,onRunReady:u=null}=e,m=(0,r.useRef)(),g=(0,r.useRef)(null),f=(0,r.useRef)(null),h=(0,r.useRef)(1.9),v=(0,r.useRef)([]),A=(0,r.useRef)(null),C=(0,r.useRef)(null),M=(0,r.useRef)(null),S=(0,r.useRef)(!0),D=(0,r.useRef)(!1),R=(0,r.useRef)(!1),T=(0,r.useRef)(!1),P=(0,r.useRef)(!1),L=(0,r.useRef)(!1),[q,I]=(0,r.useState)(!1),[O,Z]=(0,r.useState)(!1),[U,W]=(0,r.useState)(!1),[G,K]=(0,r.useState)("Happy"),[$,H]=(0,r.useState)(!1),[X,V]=(0,r.useState)(!1);function Y(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(D.current||R.current||P.current)return void console.log("â¸ï¸ Skipping cycle - dog is busy (walking, feeding, or in cooldown)");let r=Math.random()>.5;try{if(r){console.log(n?"Starting run cycle":"Starting walk cycle"),D.current=!0,k(e,"mouseUp",A.current),C.current&&clearTimeout(C.current);let r=n?60:50,a=Math.min(2e4,Math.ceil(Math.max(1,o)/r*1e3)+2500);C.current=setTimeout(()=>{console.warn("â±ï¸ Walk safety timeout hit, forcing Idle"),k(e,"mouseUp",A.current)},a),function(e,t,o,n,r,a){let i=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(e)try{var s,l,c,d;let m={x:(null==(s=e.position)?void 0:s.x)||0,y:(null==(l=e.position)?void 0:l.y)||0,z:(null==(c=e.position)?void 0:c.z)||0},g="number"==typeof n&&n>0?n:12,p=37,f=140,h=71,b=175,v=Math.random()*Math.PI*2,x=0,y=v;for(let e=0;e<16;e++){let e=Math.random()*Math.PI*2,t=Math.sin(e),o=Math.cos(e),n=t>0?(f-m.x)/t:t<0?(p-m.x)/t:1/0,r=o>0?(b-m.z)/o:o<0?(h-m.z)/o:1/0,a=Math.max(0,Math.min(n,r));if(a>=g){v=e,x=a,y=e;break}a>x&&(x=a,y=e)}let w=Math.sin(y),F=Math.cos(y),j=w>0?(f-m.x)/w:w<0?(p-m.x)/w:1/0,N=F>0?(b-m.z)/F:F<0?(h-m.z)/F:1/0,E=Math.max(0,Math.min(j,N)),B=Math.max(0,Math.min(g,E)),_={x:m.x+w*B,z:m.z+F*B},z={x:Math.min(f,Math.max(p,_.x)),y:-65,z:Math.min(b,Math.max(h,_.z))};console.log("Dog current position:",m),console.log("Dog target position:",z);let A=z.x-m.x,C=z.z-m.z,M=Math.atan2(A,C),S=(null==e||null==(d=e.rotation)?void 0:d.y)||0,D=function(e){let t=e;for(;t>Math.PI;)t-=2*Math.PI;for(;t<-Math.PI;)t+=2*Math.PI;return t}(M-S),R=Math.abs(D)>.03,T=i?20:16,P=performance.now(),L=i?60:50,q=performance.now();function u(t){if(!a.current)return;let o=Math.min(.05,Math.max(0,(t-q)/1e3));if(q=t,e.position){let t=z.x-e.position.x,n=z.z-e.position.z,a=Math.hypot(t,n),i=L*o;if(a<=i+.001){e.position.x=z.x,e.position.z=z.z,e.rotation&&(e.rotation.y=M),c
1onsole.log("â
Movement complete! Calling onComplete callback..."),"function"==typeof r?(r(),console.log("â
onComplete callback executed")):console.warn("â ï¸ No onComplete callback provided");return}e.position.x+=(a>0?t/a:0)*i,e.position.z+=(a>0?n/a:0)*i,e.rotation&&(e.rotation.y=M),console.log("Dog position update:",{x:e.position.x,z:e.position.z})}requestAnimationFrame(u)}R?requestAnimationFrame(function n(r){if(!a.current)return;let i=Math.min(.05,Math.max(0,(r-P)/1e3));if(P=r,null==e?void 0:e.rotation){let t=Math.sign(D)*Math.min(Math.abs(D),T*i);e.rotation.y+=t,D-=t}if(.01>=Math.abs(D)){(null==e?void 0:e.rotation)&&(e.rotation.y=M),k(t,"mouseDown",o),requestAnimationFrame(u);return}requestAnimationFrame(n)}):(k(t,"mouseDown",o),requestAnimationFrame(u)),console.log("Starting dog movement from",m,"to",z)}catch(e){console.error("Error moving dog:",e)}}(t,e,A.current,o,()=>{try{var o,n,r;C.current&&(clearTimeout(C.current),C.current=null),k(e,"mouseUp",A.current);let a=null==t||null==(o=t.position)?void 0:o.x,i=null==t||null==(n=t.position)?void 0:n.z,s=null==t||null==(r=t.rotation)?void 0:r.y,l=performance.now()+150,c=e=>{S.current&&e<l&&((null==t?void 0:t.position)&&(t.position.x=a,t.position.z=i),(null==t?void 0:t.rotation)&&(t.rotation.y=s),requestAnimationFrame(c))};requestAnimationFrame(c),console.log("â° Starting cooldown before next walk..."),setTimeout(()=>{D.current=!1,console.log("â
Cooldown complete - dog can walk again"),T.current?(console.log("\uD83D\uDCCB Executing queued feed action..."),T.current=!1,setTimeout(()=>{J()},50)):L.current&&(console.log("\uD83D\uDCCB Executing queued play action..."),L.current=!1,setTimeout(()=>{Q()},50))},200)}catch(e){console.error("Error sending mouseUp:",e),setTimeout(()=>{D.current=!1},5e3)}},S,n)}else console.log("Dog staying idle")}catch(e){console.error("Error cycling animations:",e)}}function J(){!function(e){var t,o,n;let{splineApp:r,dogEventTarget:a,allObjects:i,isFeedingRef:s,isWalkingRef:l,feedQueuedRef:c,isMountedRef:d,maxStepDistance:u}=e;if(s.current)return console.log("â¸ï¸ Dog is already eating, ignoring feed request");if(l.current)return c.current?console.log("\uD83D\uDCCB Feed already queued"):(c.current=!0,console.log("\uD83D\uDCCB Feed action queued - will execute after walking completes"));if(!r)return console.error("Spline app not loaded");let m=_(r,i),g=r.findObjectByName("AnimalArmature")||i.find(e=>e.name&&e.name.toLowerCase().includes("animalarmature")),p=m||g||a;if(!p)return console.error("Dog transform target not found");let f={x:142,y:-65,z:176},h={x:(null==(t=p.position)?void 0:t.x)||0,y:(null==(o=p.position)?void 0:o.y)||0,z:(null==(n=p.position)?void 0:n.z)||0};s.current=!0;let b=Math.hypot(f.x-h.x,f.z-h.z);console.log("\uD83C\uDF56 Starting feed sequence... Distance to bowl: ".concat(b.toFixed(2)," units")),k(r,"mouseUp",a),console.log("\uD83D\uDC15 Dog moving from",h,"to bowl at",f);let v=Math.atan2(f.x-h.x,f.z-h.z);(null==p?void 0:p.rotation)&&(p.rotation.y=v),k(r,"mouseDown",a);let x=performance.now();requestAnimationFrame(function e(t){if(!d.current)return;let o=Math.min(.05,Math.max(0,(t-x)/1e3));if(x=t,p.position){let e=f.x-p.position.x,t=f.z-p.position.z,n=Math.hypot(e,t),i=500*o;if(n<=i+3){p.position.x=f.x,p.position.y=f.y,p.position.z=f.z,p.rotation&&(p.rotation.y=v),console.log("â
Arrived at bowl!"),k(r,"mouseUp",a),console.log("\uD83C\uDF56 Starting eating animation...");let e=performance.now()+3300,t=o=>{(null==d?void 0:d.current)&&((null==p?void 0:p.rotation)&&(p.rotation.y=v),o<e&&requestAnimationFrame(t))};requestAnimationFrame(t);console.log('\uD83C\uDF56 Triggering eating animation with "=" key press...');try{let e=[document.querySelector("canvas"),window,document];e.forEach(e=>{if(e){let t=new KeyboardEvent("keydown",{key:"=",code:"Equal",keyCode:187,which:187,charCode:61,bubbles:!0,cancelable:!0,composed:!0});e.dispatchEvent(t)}}),console.log('\uD83C\uDFAF Dispatched "=" keydown event'),setTimeout(()=>{e.forEach(e=>{if(e){let t=new KeyboardEvent("keyup",{key:"=",code:"Equal",keyCode:187,which:187,charCode:61,bubbles:!0,cancelable:!0,composed:!0});e.dispatchEvent(t)}}
1),console.log('\uD83C\uDFAF Dispatched "=" keyup event')},100)}catch(e){console.error("â Failed to trigger eating animation:",e.message)}setTimeout(()=>{console.log("\uD83C\uDF56 Eating animation complete, returning to idle..."),k(r,"mouseUp",a),setTimeout(()=>{s.current=!1,console.log("â
Feed sequence complete, dog can move again")},1e3)},3e3);return}p.position.x+=(n>0?e/n:0)*i,p.position.z+=(n>0?t/n:0)*i,p.rotation&&(p.rotation.y=v)}requestAnimationFrame(e)})}({splineApp:m.current,dogEventTarget:A.current,allObjects:v.current,isFeedingRef:R,isWalkingRef:D,feedQueuedRef:T,isMountedRef:S,maxStepDistance:o})}function Q(){!function(e){let{splineApp:t,dogEventTarget:o,isPlayingRef:n,isWalkingRef:r,isFeedingRef:a,playQueuedRef:i,isMountedRef:s}=e;if(t){if(n.current||r.current||a.current){i.current||(i.current=!0,console.log("\uD83D\uDCCB Play queued - will execute when idle"));return}try{k(t,"mouseUp",o),n.current=!0,console.log("\uD83C\uDFAE Starting play animation");try{let e=[document.querySelector("canvas"),window,document];e.forEach(e=>{if(!e)return;let t=new KeyboardEvent("keydown",{key:"-",code:"Minus",keyCode:189,which:189,charCode:45,bubbles:!0,cancelable:!0,composed:!0});e.dispatchEvent(t)}),setTimeout(()=>{e.forEach(e=>{if(!e)return;let t=new KeyboardEvent("keyup",{key:"-",code:"Minus",keyCode:189,which:189,charCode:45,bubbles:!0,cancelable:!0,composed:!0});e.dispatchEvent(t)})},100)}catch(e){console.error("Failed to trigger play animation:",null==e?void 0:e.message)}setTimeout(()=>{let e=performance.now()+520,n=r=>{if(null==s?void 0:s.current){try{k(t,"mouseUp",o)}catch(e){}r<e&&requestAnimationFrame(n)}};requestAnimationFrame(n)},2240),setTimeout(()=>{if(null==s?void 0:s.current){try{k(t,"mouseUp",o)}catch(e){}n.current=!1,console.log("â
Play complete (returned to idle instantly)")}},2520)}catch(e){n.current=!1,console.error("Play action error:",e)}}}({splineApp:m.current,dogEventTarget:A.current,isPlayingRef:P,isWalkingRef:D,isFeedingRef:R,playQueuedRef:L,isMountedRef:S})}function ee(){if(!m.current)return void console.error("Spline app not loaded");let e=v.current,t=_(m.current,e),o=m.current.findObjectByName("AnimalArmature")||e.find(e=>e.name&&e.name.toLowerCase().includes("animalarmature"));Y(m.current,t||o,!1)}function et(){if(!m.current)return void console.error("Spline app not loaded");let e=v.current,t=_(m.current,e),o=m.current.findObjectByName("AnimalArmature")||e.find(e=>e.name&&e.name.toLowerCase().includes("animalarmature"));Y(m.current,t||o,!0)}return(0,r.useEffect)(()=>{S.current=!0;let e=g.current;if(!e)return;let t=e=>{e.preventDefault(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation();let t=e.deltaY,o=f.current;if(o&&"function"==typeof o.dollyIn&&"function"==typeof o.dollyOut){let e=Math.pow(.95,"number"==typeof o.zoomSpeed?o.zoomSpeed:1);t<0?o.dollyIn(e):t>0&&o.dollyOut(e),"function"==typeof o.update&&o.update();return}let n=h.current-.0015*t;h.current=n=Math.min(5,Math.max(.2,n));try{m.current&&"function"==typeof m.current.setZoom&&m.current.setZoom(n)}catch(e){}},o=e=>{e.touches&&e.touches.length>0&&e.preventDefault()};return e.addEventListener("wheel",t,{passive:!1,capture:!0}),e.addEventListener("touchmove",o,{passive:!1,capture:!0}),()=>{e.removeEventListener("wheel",t,{capture:!0}),e.removeEventListener("touchmove",o,{capture:!0})}},[]),(0,r.useEffect)(()=>{let e=e=>{$&&e.preventDefault()},t=e=>{$&&e.preventDefault()};return window.addEventListener("wheel",e,{passive:!1,capture:!0}),window.addEventListener("touchmove",t,{passive:!1,capture:!0}),()=>{window.removeEventListener("wheel",e,{capture:!0}),window.removeEventListener("touchmove",t,{capture:!0})}},[$]),(0,r.useEffect)(()=>()=>{S.current=!1,M.current&&(clearInterval(M.current),M.current=null),C.current&&(clearTimeout(C.current),C.current=null)},[]),(0,r.useEffect)(()=>{let e=e=>{if("INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName)switch(e.key){case"1":console.log("â¨ï¸ Keyboard shortcut: Walk (1)"),ee();break;case"2":console.log("â¨ï¸ Keyboard shortcut: Run (2)"),et();break;case"4":case"5":console.log("â¨ï¸ Keyboard shortcut: Feed (4/5)"),J();break;case"6":console.log("â¨ï¸ Keyboard shortcut: Play (6)"),Q()}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}
1,[]),(0,n.jsxs)(p.Zp,{className:"bg-white/60 backdrop-blur-md border-[#E8E4F0]/50 rounded-2xl overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 animate-in fade-in slide-in-from-bottom-4 duration-500 group ".concat(q?"fixed inset-4 z-50":""),children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#FFE4E8]/10 via-transparent to-[#F8F5FF]/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),(0,n.jsx)(p.aR,{className:"pb-3 relative",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-[#F85BB4]/20 rounded-xl blur-lg"}),(0,n.jsx)("div",{className:"relative p-2 bg-gradient-to-br from-[#FFE4E8] to-[#FFD4E5] rounded-xl shadow-md",children:(0,n.jsx)(y.A,{className:"w-6 h-6 text-[#F85BB4]"})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-semibold text-[#6B6B6B]",children:"Room Status"}),(0,n.jsx)("div",{className:"text-2xl font-bold text-[#4A4458]",children:"Cozy & Clean"}),(0,n.jsx)("p",{className:"text-xs text-[#B5B1C0] font-medium",children:"Last updated: just now"})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(b,{open:X,onOpenChange:V}),(0,n.jsx)(a.$,{variant:"outline",size:"sm",onClick:()=>W(!U),className:"rounded-full border-[#E8E4F0]/50 text-[#4A4458] hover:bg-white hover:border-[#F85BB4] hover:shadow-md transition-all shadow-sm font-semibold",children:U?(0,n.jsx)(w.A,{className:"w-4 h-4"}):(0,n.jsx)(F.A,{className:"w-4 h-4"})}),(0,n.jsx)(a.$,{variant:"outline",size:"sm",onClick:function(){m.current&&m.current.setZoom(1)},className:"rounded-full border-[#E8E4F0]/50 text-[#4A4458] hover:bg-white hover:border-[#F85BB4] hover:shadow-md transition-all shadow-sm font-semibold",disabled:!O,children:(0,n.jsx)(j.A,{className:"w-4 h-4"})}),(0,n.jsx)(a.$,{variant:"outline",size:"sm",onClick:function(){I(!q)},className:"rounded-full border-[#E8E4F0]/50 text-[#4A4458] hover:bg-white hover:border-[#F85BB4] hover:shadow-md transition-all shadow-sm font-semibold",children:q?(0,n.jsx)(N.A,{className:"w-4 h-4"}):(0,n.jsx)(E.A,{className:"w-4 h-4"})})]})]})}),(0,n.jsx)(p.Wu,{className:"p-0",children:(0,n.jsxs)("div",{ref:g,className:"relative overscroll-none touch-none bg-gradient-to-br from-[#FFF5F7] via-[#F8F5FF] to-[#F5E8FF] ".concat(q?"h-[calc(100vh-200px)]":"h-[600px]"),onWheel:e=>{e.stopPropagation()},onMouseDown:e=>{0!==e.button&&e.preventDefault()},onContextMenu:e=>e.preventDefault(),onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),onTouchStart:()=>H(!0),onTouchEnd:()=>H(!1),onTouchCancel:()=>H(!1),children:[(0,n.jsx)(r.Suspense,{fallback:(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)(x.A,{className:"w-12 h-12 text-[#F85BB4] animate-spin"})}),children:(0,n.jsx)(z,{scene:t,onLoad:function(e){var t,o,n,r,a;m.current=e,Z(!0),console.log("Spline scene loaded successfully"),"function"==typeof l&&l(J),"function"==typeof c&&c(Q),"function"==typeof d&&d(ee),"function"==typeof u&&u(et);try{"function"==typeof e.setZoom&&e.setZoom(h.current)}catch(e){}try{let t=e.getAllObjects?e.getAllObjects():[];v.current=t,console.log("Total objects in scene:",t.length),t.length>0&&console.log("Sample object names:",t.slice(0,20).map(e=>e.name||"unnamed").join(", "));let o=_(e,t),n=e.findObjectByName("AnimalArmature")||t.find(e=>e.name&&e.name.toLowerCase().includes("animalarmature"));if(o||n){if(console.log("Found dog objects:",{mesh:o&&(o.name||"unnamed"),armature:n&&(n.name||"unnamed")}),console.log("SplineApp methods:",Object.keys(e).filter(t=>"function"==typeof e[t])),o&&console.log("Shiba properties:",Object.keys(o)),A.current=o||n||null,A.current){console.log("Event target set to:",A.current.name);try{K("Happy")}catch(e){}}M.current&&clearInterval(M.current),M.current=setInterval(()=>{S.current&&Y(e,o||n)},2e3)}else console.log("Dog not found. First 10 object names:",t.slice(0,10).map(e=>e.name||"unnamed"))}catch(e){console.error("Error setting up dog animations:",e)}try{let a=(null==e||null==(t=e._camera)?void 0:t.controls)||(null==e?void 0:e.controls)||(null==e?void 0:e._controls)||(null==e||null==(o=e._runtime)?void 0:o.controls)||(null==e||null==(r=e._runtime)||null==(n=r._camera)?void 0:n.controls);a&&(f.current=a,void 0!==a.enablePan&&(a.enablePan=!1),void 0!==a.enableRotate&&(a.enableRotate=!0),void 0!==a.enableZoom&&(a.enableZoom=!0),void 0!==a.screenSpacePanning&&(a.screenSpacePanning=!1),a.mouseButtons&&("RIGHT"in a.mouseButtons&&(a.mouseButtons.RIGHT=-1),"MIDDLE"in a.mouseButtons&&(a.mouseButtons.MIDDLE=-1)))}catch(e){}try{let t=f.current,o=t&&t.object||(null==e?void 0:e._camera)||(null==e||null==(a=e._runtime)?void 0:a._camera)||null;o&&o.position&&"number"==typeof o.position.y&&(o.position.y+=100,t&&"function"==typeof t.update&&t.update(
1))}catch(e){}},onSplineMouseDown:function(e){var t;if(null==(t=e.target)?void 0:t.name){console.log("Clicked on:",e.target.name);let t=String(e.target.name).toLowerCase();(t.includes("shiba")||t.includes("shibal")||t.includes("dog"))&&(A.current=e.target,console.log("Calibrated dog event target:",e.target.name))}},className:"w-full h-full"})}),G&&(0,n.jsxs)("div",{className:"absolute bottom-4 right-4 z-50 bg-white/95 backdrop-blur-md rounded-xl p-6 shadow-lg border border-[#E8E4F0]/50 min-w-[200px] pointer-events-none",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-[#6B6B6B] mb-2",children:"Dog Status:"}),(0,n.jsx)("p",{className:"text-3xl font-bold text-[#F85BB4]",children:G})]}),!O&&(0,n.jsx)("div",{className:"absolute bottom-4 right-4 bg-white/95 backdrop-blur-md rounded-full px-5 py-2.5 shadow-lg border border-[#E8E4F0]/50",children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(x.A,{className:"w-4 h-4 text-[#F85BB4] animate-spin"}),(0,n.jsx)("span",{className:"text-sm font-bold text-[#4A4458]",children:"Loading scene..."})]})}),i&&s&&(0,n.jsx)("div",{className:"absolute top-4 left-4 bg-white/95 backdrop-blur-md rounded-xl px-5 py-3 shadow-lg border border-[#F85BB4]/30 z-50 pointer-events-none animate-in fade-in slide-in-from-top-2 duration-300",style:{animation:"fadeInOut 2s ease-in-out forwards"},children:(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"p-2 bg-gradient-to-br from-[#FFE4E8] to-[#FFD4E5] rounded-lg",children:(0,n.jsx)(B.A,{className:"w-5 h-5 text-[#F85BB4]"})}),(0,n.jsx)("span",{className:"text-sm font-bold text-[#4A4458]",children:s})]})})]})})]})}var C=o(64490),M=o(23395),S=o(49516),D=o(80310),R=o(39107),T=o(32972),P=o(16076),L=o(58725);function q(){let[e,t]=(0,r.useState)(!1),o=[{name:"Computer Setup",icon:M.A,gradientFrom:"#FFE4E8",gradientTo:"#FFD4E5",iconColor:"#F85BB4",badgeText:"Static",badgeBorder:"border-purple-300",badgeColor:"text-[#9B7FB5]",badgeBg:"bg-purple-100"},{name:"Gaming Chair",icon:S.A,gradientFrom:"#F8F5FF",gradientTo:"#F0E8FF",iconColor:"#9B7FB5",badgeText:"Static",badgeBorder:"border-purple-300",badgeColor:"text-[#9B7FB5]",badgeBg:"bg-purple-100"},{name:"Desk Lamp",icon:D.A,gradientFrom:"#FFF5F7",gradientTo:"#FFEEF5",iconColor:"#E91E8C",badgeText:"Static",badgeBorder:"border-purple-300",badgeColor:"text-[#9B7FB5]",badgeBg:"bg-purple-100"},{name:"Dog",icon:R.A,gradientFrom:"#FFE4E8",gradientTo:"#FFD4E5",iconColor:"#F85BB4",badgeText:"Interactive",badgeBorder:"border-pink-300",badgeColor:"text-[#E91E8C]",badgeBg:"bg-pink-100"}];return(0,n.jsxs)(p.Zp,{className:"bg-white/60 backdrop-blur-md border-[#E8E4F0]/50 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 animate-in fade-in slide-in-from-left-4 duration-700 overflow-hidden group",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#FFE4E8]/10 via-trans
1parent to-[#F8F5FF]/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,n.jsx)(p.aR,{className:"relative cursor-pointer hover:bg-white/40 transition-colors duration-200",onClick:()=>t(!e),children:(0,n.jsxs)(p.ZB,{className:"flex items-center justify-between text-[#4A4458] font-semibold",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"p-1.5 bg-gradient-to-br from-[#FFE4E8] to-[#FFD4E5] rounded-lg shadow-sm",children:(0,n.jsx)(T.A,{className:"w-4 h-4 text-[#F85BB4]"})}),"Room Objects"]}),(0,n.jsx)("div",{className:"p-1 rounded-lg hover:bg-white/60 transition-colors",children:e?(0,n.jsx)(P.A,{className:"w-5 h-5 text-[#F85BB4]"}):(0,n.jsx)(L.A,{className:"w-5 h-5 text-[#F85BB4]"})})]})}),e&&(0,n.jsx)(p.Wu,{className:"space-y-3 relative animate-in fade-in slide-in-from-top-2 duration-300",children:o.map((e,t)=>(0,n.jsxs)("div",{className:"p-4 bg-gradient-to-r from-white/70 to-[#F6F3F9]/60 backdrop-blur-sm rounded-xl border border-[#E8E4F0]/50 hover:shadow-md hover:scale-[1.02] transition-all duration-200 cursor-pointer group/item relative overflow-hidden",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#FFE4E8]/10 to-[#F8F5FF]/10 opacity-0 group-hover/item:opacity-100 transition-opacity duration-300"}),(0,n.jsxs)("div",{className:"flex items-center justify-between relative",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"p-2.5 rounded-lg shadow-sm border border-[#E8E4F0]/30",style:{background:"linear-gradient(to bottom right, ".concat(e.gradientFrom,", ").concat(e.gradientTo,")")},children:(0,n.jsx)(e.icon,{className:"w-5 h-5",style:{color:e.iconColor}})}),(0,n.jsx)("span",{className:"font-semibold text-[#4A4458]",children:e.name})]}),(0,n.jsx)(C.E,{variant:"outline",className:"".concat(e.badgeBorder," ").concat(e.badgeColor," ").concat(e.badgeBg," shadow-sm font-bold"),children:e.badgeText})]})]},t))})]})}var I=o(40258),O=o(70948);function Z(){let[e,t]=(0,r.useState)(!1),o=[{icon:I.A,text:"Change Wall Colors"},{icon:S.A,text:"Replace Furniture"},{icon:O.A,text:"Add Decorations"},{icon:D.A,text:"Adjust Lighting"}];return(0,n.jsxs)(p.Zp,{className:"bg-white/60 backdrop-blur-md border-[#E8E4F0]/50 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 animate-in fade-in slide-in-from-right-4 duration-700 overflow-hidden group",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#FFE4E8]/10 via-trans
1parent to-[#F8F5FF]/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,n.jsx)(p.aR,{className:"relative cursor-pointer hover:bg-white/40 transition-colors duration-200",onClick:()=>t(!e),children:(0,n.jsxs)(p.ZB,{className:"flex items-center justify-between text-[#4A4458] font-semibold",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"p-1.5 bg-gradient-to-br from-[#FFE4E8] to-[#FFD4E5] rounded-lg shadow-sm",children:(0,n.jsx)(D.A,{className:"w-4 h-4 text-[#F85BB4]"})}),"Customization"]}),(0,n.jsx)("div",{className:"p-1 rounded-lg hover:bg-white/60 transition-colors",children:e?(0,n.jsx)(P.A,{className:"w-5 h-5 text-[#F85BB4]"}):(0,n.jsx)(L.A,{className:"w-5 h-5 text-[#F85BB4]"})})]})}),e&&(0,n.jsxs)(p.Wu,{className:"space-y-3 relative animate-in fade-in slide-in-from-top-2 duration-300",children:[o.map((e,t)=>(0,n.jsxs)(a.$,{disabled:!0,className:"w-full justify-start bg-white/60 backdrop-blur-sm text-[#B5B1C0] cursor-not-allowed border border-[#E8E4F0]/50 hover:bg-white/60 shadow-sm font-medium rounded-xl",children:[(0,n.jsx)(e.icon,{className:"w-5 h-5 mr-3"}),e.text]},t)),(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white/40 backdrop-blur-sm rounded-b-2xl",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"text-3xl font-bold text-[#F85BB4] mb-2",children:"Coming Soon"}),(0,n.jsx)("p",{className:"text-sm text-[#6B6B6B] font-medium",children:"Exciting customization features on the way!"})]})})]})]})}var U=o(97093);function W(){let[e,t]=(0,r.useState)("Shibaba's Room"),[o,a]=(0,r.useState)(!1),[i,s]=(0,r.useState)(""),[l,c]=(0,r.useState)(null),[d,m]=(0,r.useState)(null),[g,p]=(0,r.useState)(null),[f,h]=(0,r.useState)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U.L,{gradientBackgroundStart:"#FCE7F3",gradientBackgroundEnd:"#DBEAFE",firstColor:"rgb(255, 228, 232)",secondColor:"221, 214, 254",thirdColor:"186, 230, 253",fourthColor:"199, 210, 254",fifthColor:"255, 200, 210",pointerColor:"240, 249, 255",size:"120%",blendingValue:"normal",interactive:!0,containerClassName:"fixed inset-0 z-0 pointer-events-none"}),(0,n.jsxs)("div",{className:"relative z-10 min-h-screen",style:{fontFamily:"'Inter', 'Poppins', 'Helvetica Neue', Arial, sans-serif"},children:[(0,n.jsx)("div",{className:"relative z-10",children:(0,n.jsx)(u,{roomName:e,onRoomNameChange:t})}),(0,n.jsx)("div",{className:"container mx-auto px-6 pb-6 relative z-10",children:(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)(A,{sceneUrl:"https://prod.spline.design/E0hO4wxfp4CCDNLm/scene.splinecode?v=33",maxStepDistance:36,showNotification:o,notificationMessage:i,onFeedReady:e=>c(()=>e),onPlayReady:e=>m(()=>e),onWalkReady:e=>p(()=>e),onRunReady:e=>h(()=>e)}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-start",children:[(0,n.jsx)(q,{},"room-objects-card"),(0,n.jsx)(Z,{},"customization-card")]})]})})]})]})}},54163:(e,t,o)=>{"use strict";o.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>s,Zp:()=>a,aR:()=>i});var n=o(37876);o(14232);var r=o(77166);function a(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...o})}function i(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...o})}function s(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",t),...o})}function l(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...o})}function c(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...o})}},64490:(e,t,o)=>{"use strict";o.d(t,{E:()=>l});var n=o(37876);o(14232);var r=o(82987),a=o(47137),i=o(77166);let s=(0,a.F)("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:o,asChild:a=!1,...l}=e,c=a?r.DX:"span";return(0,n.jsx)(c,{"data-slot":"badge",className:(0,i.cn)(s({variant:o}),t),...l})}},65596:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/room",function(){return o(39601)}])},77166:(e,t,o)=>{"use strict";o.d(t,{cn:()=>a});var n=o(69241),r=o(29573);function a(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,r.QP)((0,n.$)(t))}},96367:(e,t,o)=>{"use strict";o.d(t,{p:()=>a});var n=o(37876);o(14232);var r=o(77166);function a(e){let{className:t,type:o,...a}=e;return(0,n.jsx)("input",{type:o,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...a})}}
1,96473:(e,t,o)=>{"use strict";o.d(t,{Cf:()=>u,Es:()=>g,L3:()=>p,c7:()=>m,lG:()=>s,zM:()=>l});var n=o(37876);o(14232);var r=o(26303),a=o(28249),i=o(77166);function s(e){let{...t}=e;return(0,n.jsx)(r.bL,{"data-slot":"dialog",...t})}function l(e){let{...t}=e;return(0,n.jsx)(r.l9,{"data-slot":"dialog-trigger",...t})}function c(e){let{...t}=e;return(0,n.jsx)(r.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...o}=e;return(0,n.jsx)(r.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...o})}function u(e){let{className:t,children:o,showCloseButton:s=!0,...l}=e;return(0,n.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,n.jsx)(d,{}),(0,n.jsxs)(r.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...l,children:[o,s&&(0,n.jsxs)(r.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,n.jsx)(a.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",t),...o})}function g(e){let{className:t,...o}=e;return(0,n.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...o})}function p(e){let{className:t,...o}=e;return(0,n.jsx)(r.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",t),...o})}},97093:(e,t,o)=>{"use strict";o.d(t,{L:()=>i});var n=o(37876),r=o(77166),a=o(14232);let i=e=>{let{gradientBackgroundStart:t="rgb(108, 0, 162)",gradientBackgroundEnd:o="rgb(0, 17, 82)",firstColor:i="18, 113, 255",secondColor:s="221, 74, 255",thirdColor:l="100, 220, 255",fourthColor:c="200, 50, 50",fifthColor:d="180, 180, 50",pointerColor:u="140, 100, 255",size:m="80%",blendingValue:g="hard-light",children:p,className:f,interactive:h=!0,containerClassName:b}=e,v=(0,a.useRef)(null),x=(0,a.useRef)(null),[y,w]=(0,a.useState)(0),[F,j]=(0,a.useState)(0),[N,E]=(0,a.useState)(0),[B,k]=(0,a.useState)(0);(0,a.useEffect)(()=>{document.body.style.setProperty("--gradient-background-start",t),document.body.style.setProperty("--gradient-background-end",o),document.body.style.setProperty("--first-color",i),document.body.style.setProperty("--second-color",s),document.body.style.setProperty("--third-color",l),document.body.style.setProperty("--fourth-color",c),document.body.style.setProperty("--fifth-color",d),document.body.style.setProperty("--pointer-color",u),document.body.style.setProperty("--size",m),document.body.style.setProperty("--blending-value",g)},[]),(0,a.useEffect)(()=>{v.current&&(w(y+(N-y)/20),j(F+(B-F)/20),v.current.style.transform="translate(".concat(Math.round(y),"px, ").concat(Math.round(F),"px)"))},[N,B]),(0,a.useEffect)(()=>{if(!h)return;let e=e=>{var t;let o=null==(t=x.current)?void 0:t.getBoundingClientRect();o&&(E(e.clientX-o.left),k(e.clientY-o.top))};return window.addEventListener("mousemove",e,{passive:!0}),()=>window.removeEventListener("mousemove",e)},[h]);let[_,z]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{z(/^((?!chrome|android).)*safari/i.test(navigator.userAgent))},[]),(0,n.jsxs)("div",{ref:x,className:(0,r.cn)("h-screen w-screen relative overflow-hidden top-0 left-0 bg-[linear-gradient(40deg,var(--gradient-background-start),var(--gradient-background-end))]",b),children:[(0,n.jsx)("svg",{className:"hidden",children:(0,n.jsx)("defs",{children:(0,n.jsxs)("filter",{id:"blurMe",children:[(0,n.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"10",result:"blur"}),(0,n.jsx)("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8",result:"goo"}),(0,n.jsx)("feBlend",{in:"SourceGraphic",in2:"goo"})]})})}),(0,n.jsx)("div",{className:(0,r.cn)("",f),children:p}),(0,n.jsxs)("div",{className:(0,r.cn)("gradients-container h-full w-full blur-lg",_?"blur-2xl":"[filter:url(#blurMe)_blur(40px)]"),children:[(0,n.jsx)("div",{className:(0,r.cn)("absolute [background:radial-gradient(circle_at_center,_var(--first-color)_0,_var(--first-color)_50%)_no-repeat]","[mix-blend-mode:var(--blending-value)] w-[var(--size)] h-[var(--size)] top-[calc(50%-var(--size)/2)] left-[calc(50%-var(--size)/2)]","[transform-origin:center_center]","animate-first","opacity-100")}),(0,n.jsx)("div",{className:(0,r.cn)("absolute [background:radial-gradient(circle_at_center,_rgba(var(--second-color),_0.8)_0,_rgba(var(--second-color),_0)_50%)_no-repeat]","[mix-blend-mode:var(--blending-value)] w-[var(--size)] h-[var(--size)] top-[calc(50%-var(--size)/2)] left-[calc(50%-var(--size)/2)]","[transform-origin:calc(50%-400px)]","animate-second","opacity-100")}),(0,n.jsx)("div",{className:(0,r.cn)("absolute [background:radial-gradient(circle_at_center,_rgba(var(--third-color),_0.8)_0,_rgba(var(--third-color),_0)_50%)_no-repeat]","[mix-blend-mode:var(--blending-value)] w-[var(--size)] h-[var(--size)] top-[calc(50%-var(--size)/2)] left-[calc(50%-var(--size)/2)]","[transform-origin:calc(50%+400px)]","animate-third","opacity-100")}),(0,n.jsx)("div",{className:(0,r.cn)("absolute [background:radial-gradient(circle_at_center,_rgba(var(--fourth-color),_0.8)_0,_rgba(var(--fourth-color),_0)_50%)_no-repeat]","[mix-blend-mode:var(--blending-value)] w-[var(--size)] h-[var(--size)] top-[calc(50%-var(--size)/2)] left-[calc(50%-var(--size)/2)]","[transform-origin:calc(50%-200px)]","animate-fourth","opacity-70")}),(0,n.jsx)("div",{className:(0,r.cn)("absolute [background:radial-gradient(circle_at_center,_rgba(var(--fifth-color),_0.8)_0,_rgba(var(--fifth-color),_0)_50%)_no-repeat]","[mix-blend-mode:var(--blending-value)] w-[var(--size)] h-[var(--size)] top-[calc(50%-var(--size)/2)] left-[calc(50%-var(--size)/2)]","[transform-origin:calc(50%-800px)_calc(50%+800px)]","animate-fifth","opacity-100")}),h&&(0,n.jsx)("div",{ref:v,onMouseMove:e=>{if(v.current){let t=v.current.getBoundingClientRect();E(e.clientX-t.left),k(e.clientY-t.top)}},className:(0,r.cn)("absolute [background:radial-gradient(circle_at_center,_rgba(var(--pointer-color),_0.8)_0,_rgba(var(--pointer-color),_0)_50%)_no-repeat]","[mix-blend-mode:var(--blending-value)] w-full h-full -top-1/2 -left-1/2","opacity-70")})]})]})}}},e=>{e.O(0,[9573,8380,6227,636,6593,8792],()=>e(e.s=65596)),_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.