Files
Nexus_Mat/.next/server/pages/_app.js

33 lines
4.6 KiB
JavaScript

(()=>{var e={};e.id=888,e.ids=[888],e.modules={4297:(e,r,t)=>{"use strict";t.d(r,{Z:()=>l});var s=t(6689),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),l=(e,r)=>{let t=(0,s.forwardRef)(({color:t="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:o="",children:n,...u},h)=>(0,s.createElement)("svg",{ref:h,...i,width:l,height:l,stroke:t,strokeWidth:d?24*Number(c)/Number(l):c,className:["lucide",`lucide-${a(e)}`,o].join(" "),...u},[...r.map(([e,r])=>(0,s.createElement)(e,r)),...Array.isArray(n)?n:[n]]));return t.displayName=`${e}`,t}},7653:(e,r,t)=>{"use strict";t.d(r,{Z:()=>s});/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let s=(0,t(4297).Z)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},3756:(e,r,t)=>{"use strict";t.d(r,{Z:()=>s});/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let s=(0,t(4297).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},6989:(e,r,t)=>{"use strict";t.d(r,{Z:()=>s});/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let s=(0,t(4297).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},1352:(e,r,t)=>{"use strict";t.d(r,{Z:()=>s});/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let s=(0,t(4297).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},7776:(e,r,t)=>{"use strict";t.d(r,{V:()=>u,p:()=>n});var s=t(997),i=t(6689),a=t(3756),l=t(7653),c=t(6989),d=t(1352);let o=(0,i.createContext)(void 0),n=()=>{let e=(0,i.useContext)(o);if(!e)throw Error("useToast must be used within ToastProvider");return e},u=({children:e})=>{let[r,t]=(0,i.useState)([]),n=(0,i.useCallback)((e,r)=>{let s=Math.random().toString(36).substring(7),i={id:s,message:e,type:r};t(e=>[...e,i]),setTimeout(()=>{t(e=>e.filter(e=>e.id!==s))},5e3)},[]),u=(0,i.useCallback)(e=>n(e,"success"),[n]),h=(0,i.useCallback)(e=>n(e,"error"),[n]),x=(0,i.useCallback)(e=>n(e,"info"),[n]),m=e=>{t(r=>r.filter(r=>r.id!==e))};return(0,s.jsxs)(o.Provider,{value:{showToast:n,success:u,error:h,info:x},children:[e,s.jsx("div",{className:"fixed top-4 right-4 z-[9999] space-y-2",children:r.map(e=>(0,s.jsxs)("div",{className:`
flex items-center gap-3 min-w-[300px] max-w-md p-4 rounded-lg
backdrop-blur-md border shadow-lg
animate-in slide-in-from-right duration-300
${"success"===e.type?"bg-green-900/90 border-green-500 text-green-100":""}
${"error"===e.type?"bg-red-900/90 border-red-500 text-red-100":""}
${"info"===e.type?"bg-blue-900/90 border-blue-500 text-blue-100":""}
`,children:["success"===e.type&&s.jsx(a.Z,{className:"w-5 h-5 flex-shrink-0"}),"error"===e.type&&s.jsx(l.Z,{className:"w-5 h-5 flex-shrink-0"}),"info"===e.type&&s.jsx(c.Z,{className:"w-5 h-5 flex-shrink-0"}),s.jsx("p",{className:"flex-1 text-sm font-mono",children:e.message}),s.jsx("button",{onClick:()=>m(e.id),className:"flex-shrink-0 hover:opacity-70 transition-opacity",children:s.jsx(d.Z,{className:"w-4 h-4"})})]},e.id))})]})}},1484:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>c});var s=t(997);t(6764);var i=t(968),a=t.n(i),l=t(7776);function c({Component:e,pageProps:r}){return(0,s.jsxs)(l.V,{children:[(0,s.jsxs)(a(),{children:[s.jsx("title",{children:"NEXUS_MAT.OS"}),s.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),s.jsx(e,{...r})]})}},6764:()=>{},968:e=>{"use strict";e.exports=require("next/head")},6689:e=>{"use strict";e.exports=require("react")},997:e=>{"use strict";e.exports=require("react/jsx-runtime")}};var r=require("../webpack-runtime.js");r.C(e);var t=r(r.s=1484);module.exports=t})();