(()=>{var e={};e.id=4264,e.ids=[4264],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},7147:e=>{"use strict";e.exports=require("fs")},1017:e=>{"use strict";e.exports=require("path")},9385:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>o.a,__next_app__:()=>h,originalPathname:()=>p,pages:()=>c,routeModule:()=>x,tree:()=>l});var a=s(482),r=s(9108),n=s(2563),o=s.n(n),i=s(8300),d={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>i[e]);s.d(t,d);let l=["",{children:["(dashboard)",{children:["dashboard",{children:["settings",{children:["general",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,6964)),"C:\\xampp\\htdocs\\AI Woo Chat\\src\\app\\(dashboard)\\dashboard\\settings\\general\\page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,1824)),"C:\\xampp\\htdocs\\AI Woo Chat\\src\\app\\(dashboard)\\layout.tsx"]}]},{layout:[()=>Promise.resolve().then(s.bind(s,1342)),"C:\\xampp\\htdocs\\AI Woo Chat\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(s.bind(s,8206)),"C:\\xampp\\htdocs\\AI Woo Chat\\src\\app\\not-found.tsx"]}],c=["C:\\xampp\\htdocs\\AI Woo Chat\\src\\app\\(dashboard)\\dashboard\\settings\\general\\page.tsx"],p="/(dashboard)/dashboard/settings/general/page",h={require:s,loadChunk:()=>Promise.resolve()},x=new a.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/(dashboard)/dashboard/settings/general/page",pathname:"/dashboard/settings/general",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},9399:(e,t,s)=>{Promise.resolve().then(s.bind(s,2272))},2272:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var a=s(5344),r=s(3729),n=s(7374);function o(){let[e,t]=(0,r.useState)("24h"),[s,o]=(0,r.useState)(!1);(0,r.useEffect)(()=>{t((0,n.pv)())},[]);let i=async()=>{try{o(!0),(0,n.qf)(e),alert("Settings saved successfully")}catch(e){console.error("Error saving settings:",e),alert("Failed to save settings")}finally{o(!1)}};return(0,a.jsxs)("div",{className:"p-6 max-w-4xl mx-auto",children:[a.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-6",children:"General Settings"}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow p-6 space-y-6",children:[(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-sm font-medium text-gray-900 mb-2",children:"Time Format"}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("label",{className:"flex items-center space-x-2",children:[a.jsx("input",{type:"radio",name:"timeFormat",value:"12h",checked:"12h"===e,onChange:e=>t("12h"),className:"rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"}),a.jsx("span",{className:"text-gray-900",children:"12-hour format (3:45 PM)"})]}),(0,a.jsxs)("label",{className:"flex items-center space-x-2",children:[a.jsx("input",{type:"radio",name:"timeFormat",value:"24h",checked:"24h"===e,onChange:e=>t("24h"),className:"rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"}),a.jsx("span",{className:"text-gray-900",children:"24-hour format (15:45)"})]})]}),a.jsx("p",{className:"text-sm text-gray-600 mt-2",children:"This setting affects how dates and times are displayed throughout the dashboard."})]}),a.jsx("div",{className:"flex justify-end pt-6 border-t",children:a.jsx("button",{onClick:i,disabled:s,className:"px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 disabled:bg-gray-300 disabled:cursor-not-allowed",children:s?"Saving...":"Save Settings"})})]})]})}},6964:(e,t,s)=>{"use strict";s.r(t),s.d(t,{$$typeof:()=>n,__esModule:()=>r,default:()=>o});let a=(0,s(6843).createProxy)(String.raw`C:\xampp\htdocs\AI Woo Chat\src\app\(dashboard)\dashboard\settings\general\page.tsx`),{__esModule:r,$$typeof:n}=a,o=a.default}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[1638,9989,665,1476,6040,867,9599],()=>s(9385));module.exports=a})();