NeahNew/.next/server/app/pages/page.js
2026-01-02 14:32:36 +01:00

1 line
37 KiB
JavaScript

(()=>{var e={};e.id=5253,e.ids=[5253],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11723:e=>{"use strict";e.exports=require("querystring")},12412:e=>{"use strict";e.exports=require("assert")},14985:e=>{"use strict";e.exports=require("dns")},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:e=>{"use strict";e.exports=require("os")},27910:e=>{"use strict";e.exports=require("stream")},28354:e=>{"use strict";e.exports=require("util")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31197:(e,t,r)=>{Promise.resolve().then(r.bind(r,48986))},33873:e=>{"use strict";e.exports=require("path")},34631:e=>{"use strict";e.exports=require("tls")},41204:e=>{"use strict";e.exports=require("string_decoder")},41312:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(62688).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},48986:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/alma/Documents/NeahNew/app/pages/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/alma/Documents/NeahNew/app/pages/page.tsx","default")},55192:(e,t,r)=>{"use strict";r.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>i,Zp:()=>o,aR:()=>l});var a=r(60687),s=r(43210),n=r(96241);let o=s.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));o.displayName="Card";let l=s.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",e),...t}));l.displayName="CardHeader";let i=s.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t}));i.displayName="CardTitle";let c=s.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,className:(0,n.cn)("text-sm text-muted-foreground",e),...t}));c.displayName="CardDescription";let d=s.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,className:(0,n.cn)("p-6 pt-0",e),...t}));d.displayName="CardContent",s.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,className:(0,n.cn)("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter"},55511:e=>{"use strict";e.exports=require("crypto")},55591:e=>{"use strict";e.exports=require("https")},58889:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>o.a,__next_app__:()=>u,pages:()=>d,routeModule:()=>m,tree:()=>c});var a=r(65239),s=r(48088),n=r(88170),o=r.n(n),l=r(30893),i={};for(let e in l)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(i[e]=()=>l[e]);r.d(t,i);let c={children:["",{children:["pages",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,48986)),"/Users/alma/Documents/NeahNew/app/pages/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,58014)),"/Users/alma/Documents/NeahNew/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(r.t.bind(r,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(r.t.bind(r,65284,23)),"next/dist/client/components/unauthorized-error"]}]}.children,d=["/Users/alma/Documents/NeahNew/app/pages/page.tsx"],u={require:r,loadChunk:()=>Promise.resolve()},m=new a.AppPageRouteModule({definition:{kind:s.RouteKind.APP_PAGE,page:"/pages/page",pathname:"/pages",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},61083:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>U});var a=r(60687),s=r(43210),n=r.n(s),o=r(82136),l=r(16189),i=r(10022),c=r(40228),d=r(62688);let u=(0,d.A)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);var m=r(41312),x=r(99270),p=r(11860),h=r(14952),f=r(55192);let g={Notes:{icon:i.A,order:1,displayName:"Bloc-notes"},Diary:{icon:c.A,order:2,displayName:"Journal"},Health:{icon:u,order:3,displayName:"Carnet de sant\xe9"},Contacts:{icon:m.A,order:4,displayName:"Carnet d'adresses"}};function v({nextcloudFolders:e,onFolderSelect:t}){let[r,n]=(0,s.useState)(""),[o,l]=(0,s.useState)(!1),[c,d]=(0,s.useState)([]),[u,m]=(0,s.useState)(!1),v=(e&&e.length>0?[...new Set([...e])]:["Notes","Diary","Health","Contacts"]).sort((e,t)=>(g[e]?.order||999)-(g[t]?.order||999));return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-carnet-sidebar",children:[(0,a.jsx)(f.Zp,{className:"p-4",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.A,{className:"h-6 w-6 text-carnet-text-primary"}),(0,a.jsx)("span",{className:"text-xl font-semibold text-carnet-text-primary",children:"PAGES"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"text",value:r,onChange:e=>n(e.target.value),placeholder:"Recherche...",className:"w-full pl-8 pr-4 py-1.5 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary"}),(0,a.jsx)(x.A,{className:"absolute left-2 top-1.5 h-3.5 w-3.5 text-carnet-text-muted"}),r&&(0,a.jsx)("button",{onClick:()=>n(""),className:"absolute right-2 top-1.5 text-carnet-text-muted hover:text-carnet-text-primary",children:(0,a.jsx)(p.A,{className:"h-3.5 w-3.5"})})]})]})}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto p-4",children:[(0,a.jsx)("h2",{className:"text-xs font-semibold text-carnet-text-primary mb-2",children:"VUES"}),(0,a.jsx)("div",{className:"space-y-1",children:0===v.length?(0,a.jsx)("div",{className:"text-xs text-carnet-text-muted py-1 px-2",children:"Chargement des dossiers..."}):v.map(e=>{let r=g[e],s=r?.icon||i.A,n=r?.displayName||e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{onClick:()=>{"Contacts"===e?l(!o):t(e)},className:"w-full flex items-center px-2 py-1.5 text-sm rounded-md text-carnet-text-primary hover:bg-carnet-hover",children:[(0,a.jsx)(s,{className:"h-3.5 w-3.5 flex-shrink-0"}),(0,a.jsx)("span",{className:"ml-2 truncate",children:n}),"Contacts"===e&&(0,a.jsx)(h.A,{className:`h-3.5 w-3.5 flex-shrink-0 ml-auto transition-transform ${o?"transform rotate-90":""}`})]}),"Contacts"===e&&o&&(0,a.jsx)("div",{className:"ml-4 mt-1 space-y-1",children:u?(0,a.jsx)("div",{className:"px-3 py-2 text-sm text-carnet-text-muted",children:"Chargement..."}):0===c.length?(0,a.jsx)("div",{className:"px-3 py-2 text-sm text-carnet-text-muted",children:"Aucun contact"}):c.map(e=>(0,a.jsx)("button",{onClick:()=>{t("Contacts")},className:"w-full flex items-center space-x-2 px-3 py-2 text-sm rounded-md text-carnet-text-muted hover:bg-carnet-hover",children:(0,a.jsx)("span",{children:e.basename.replace(".vcf","")})},e.id))})]},e)})})]})]})}var y=r(96474),N=r(75699),j=r(35355),b=r(84334);let w={Notes:"Bloc-notes",Diary:"Journal",Health:"Carnet de sant\xe9",Contacts:"Carnet d'adresses"},C=({notes:e,onNoteSelect:t,currentFolder:r="Notes",onNewNote:n,loading:o=!1,onDeleteNote:l})=>{let[d,h]=(0,s.useState)(""),[f,g]=(0,s.useState)(null),[v,C]=(0,s.useState)(null),S=e=>(0,N.GP)(new Date(e),"EEEE d MMM yyyy",{locale:b.fr}),E=e=>{if("Diary"===r||"Health"===r){let t=e.title.match(/^(\d{4}-\d{2}-\d{2})/);if(t)return(0,j.qg)(t[1],"yyyy-MM-dd",new Date),e.title.replace(t[1],"").trim()}return e.title},k=(e=>{switch(e){case"Notes":default:return i.A;case"Diary":return c.A;case"Health":return u;case"Contacts":return m.A}})(r);return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-carnet-bg border-r border-carnet-border",children:[v&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:(0,a.jsxs)("div",{className:"bg-carnet-bg p-6 rounded-lg shadow-lg max-w-md w-full",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-carnet-text-primary mb-4",children:"Supprimer la note"}),(0,a.jsxs)("p",{className:"text-carnet-text-muted mb-6",children:['\xcates-vous s\xfbr de vouloir supprimer la note "',v.title,'" ? Cette action est irr\xe9versible.']}),(0,a.jsxs)("div",{className:"flex justify-end space-x-4",children:[(0,a.jsx)("button",{onClick:()=>C(null),className:"px-4 py-2 text-carnet-text-primary hover:bg-carnet-hover rounded-md",children:"Annuler"}),(0,a.jsx)("button",{onClick:()=>{l?.(v),C(null)},className:"px-4 py-2 bg-red-500 text-white hover:bg-red-600 rounded-md",children:"Supprimer"})]})]})}),(0,a.jsxs)("div",{className:"p-4 border-b border-carnet-border",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(k,{className:"h-5 w-5 text-carnet-text-primary"}),(0,a.jsx)("h2",{className:"text-lg font-semibold text-carnet-text-primary",children:w[r]||r})]}),(0,a.jsx)("button",{onClick:n,className:"p-2 text-carnet-text-primary hover:bg-carnet-hover rounded-md",children:(0,a.jsx)(y.A,{className:"h-5 w-5"})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"text",value:d,onChange:e=>h(e.target.value),placeholder:"Rechercher des notes...",className:"w-full pl-9 pr-4 py-2 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary"}),(0,a.jsx)(x.A,{className:"absolute left-3 top-2.5 h-4 w-4 text-carnet-text-muted"}),d&&(0,a.jsx)("button",{onClick:()=>h(""),className:"absolute right-3 top-2.5 text-carnet-text-muted hover:text-carnet-text-primary",children:(0,a.jsx)(p.A,{className:"h-4 w-4"})})]})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:o?(0,a.jsx)("div",{className:"p-4 text-center text-carnet-text-muted",children:"Chargement..."}):0===e.length?(0,a.jsx)("div",{className:"p-4 text-center text-carnet-text-muted",children:"Aucune note"}):(0,a.jsx)("ul",{className:"divide-y divide-carnet-border",children:[...e].sort((e,t)=>{if("Diary"===r||"Health"===r){let r=e.title.match(/^(\d{4}-\d{2}-\d{2})/),a=t.title.match(/^(\d{4}-\d{2}-\d{2})/);if(r&&a)return new Date(a[1]).getTime()-new Date(r[1]).getTime()}return new Date(t.lastModified).getTime()-new Date(e.lastModified).getTime()}).map(e=>(0,a.jsx)("li",{onMouseEnter:()=>g(e.id),onMouseLeave:()=>g(null),className:"p-4 hover:bg-carnet-hover cursor-pointer group",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 flex-1",onClick:()=>t?.(e),children:[(0,a.jsx)(k,{className:"h-4 w-4 text-carnet-text-muted"}),(0,a.jsx)("div",{className:"flex-1",children:"Diary"===r||"Health"===r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-sm font-medium text-carnet-text-primary",children:S(e.lastModified)}),(0,a.jsx)("div",{className:"text-sm text-carnet-text-muted",children:E(e)})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-sm font-medium text-carnet-text-primary",children:e.title}),(0,a.jsx)("div",{className:"text-xs text-carnet-text-muted",children:S(e.lastModified)})]})})]}),"Notes"===r&&f===e.id&&(0,a.jsx)("button",{onClick:t=>{t.stopPropagation(),C(e)},className:"p-1 text-carnet-text-muted hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,a.jsx)(p.A,{className:"h-4 w-4"})})]})},e.id))})})]})},S=({note:e,onSave:t,currentFolder:r="Notes",onRefresh:n})=>{let[c,d]=(0,s.useState)(e?.title||""),[u,m]=(0,s.useState)(e?.content||""),[x,p]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),[g,v]=(0,s.useState)(null),y=(0,s.useRef)(),N=(0,l.useRouter)(),{data:j,status:b}=(0,o.useSession)(),w=(0,s.useRef)({});(0,s.useEffect)(()=>{"unauthenticated"===b&&N.push("/signin")},[b,N]),(0,s.useEffect)(()=>{let t=async()=>{if(e?.id){f(!0),v(null);let t=w.current[e.id];if(t&&Date.now()-t.timestamp<9e5){console.log(`Using cached content for note ${e.title}`),m(t.content),f(!1);return}try{let t=`note-content-${e.id}`,r=localStorage.getItem(t);if(r){let{content:t,timestamp:a}=JSON.parse(r);if(Date.now()-a<9e5){console.log(`Using localStorage cached content for note ${e.title}`),m(t),w.current[e.id]={content:t,timestamp:a},f(!1);return}}}catch(e){console.error("Error accessing localStorage content cache:",e)}try{let t=await fetch(`/api/storage/files/content?path=${encodeURIComponent(e.id)}`);if(401===t.status){console.error("Authentication error, redirecting to login"),N.push("/signin");return}if(!t.ok){let e=await t.text();throw Error(`Failed to fetch note content: ${t.status} ${e}`)}let r=await t.json();m(r.content);let a=Date.now();w.current[e.id]={content:r.content,timestamp:a};try{localStorage.setItem(`note-content-${e.id}`,JSON.stringify({content:r.content,timestamp:a}))}catch(e){console.error("Error saving content to localStorage:",e)}}catch(e){console.error("Error fetching note content:",e),v("Failed to load note content. Please try again later.")}finally{f(!1)}}};e?(d(e.title),e.id?t():m("")):(d(""),m(""))},[e,N,9e5]);let C=()=>{y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{S()},1e3)},S=async()=>{if(c&&u){if(!j){console.error("No active session, cannot save"),v("You must be logged in to save notes");return}p(!0),v(null);try{let a=e?.id||`user-${j.user.id}/${r.toLowerCase()}/${c}${c.endsWith(".md")?"":".md"}`,s=e?.id?"PUT":"POST";console.log("Saving note:",{id:a,title:c,folder:r,contentLength:u.length});let o=await fetch("/api/storage/files",{method:s,headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,title:c,content:u,folder:r.toLowerCase()})});if(401===o.status){console.error("Authentication error, redirecting to login"),N.push("/signin");return}if(!o.ok){let e=await o.text();throw console.error("Failed to save note:",{status:o.status,statusText:o.statusText,data:e}),v(`Failed to save note: ${o.statusText}`),Error(`Failed to save note: ${o.status} ${o.statusText}`)}let l=await o.json();console.log("Note saved successfully:",l);let i=Date.now();w.current[a]={content:u,timestamp:i};try{localStorage.setItem(`note-content-${a}`,JSON.stringify({content:u,timestamp:i}))}catch(e){console.error("Error updating content cache in localStorage:",e)}v(null),t?.({...l,content:u}),n?.()}catch(e){console.error("Error saving note:",e)}finally{p(!1)}}};return j||"loading"===b?e?(0,a.jsxs)("div",{className:"flex flex-col h-full bg-carnet-bg",children:[(0,a.jsx)("div",{className:"p-4 border-b border-carnet-border",children:(0,a.jsx)("input",{type:"text",value:c,onChange:e=>{d(e.target.value),C()},placeholder:"Titre",className:"w-full text-xl font-semibold text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none bg-transparent"})}),g&&(0,a.jsx)("div",{className:"p-2 m-2 bg-red-100 border border-red-400 text-red-700 rounded",children:g}),(0,a.jsx)("div",{className:"flex-1 p-4",children:h?(0,a.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):(0,a.jsx)("textarea",{value:u,onChange:e=>{m(e.target.value),C()},placeholder:"Ecrire...",className:"w-full h-full resize-none focus:outline-none bg-transparent text-carnet-text-primary placeholder-carnet-text-muted"})}),x&&(0,a.jsx)("div",{className:"absolute bottom-4 right-4 text-sm text-carnet-text-muted",children:"Enregistrement..."})]}):(0,a.jsx)("div",{className:"flex flex-col h-full bg-carnet-bg items-center justify-center",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(i.A,{className:"h-12 w-12 text-carnet-text-muted mx-auto mb-4"}),(0,a.jsx)("h2",{className:"text-xl font-semibold text-carnet-text-primary mb-2",children:"S\xe9lectionnez une note"}),(0,a.jsx)("p",{className:"text-carnet-text-muted",children:"Choisissez une note existante ou cr\xe9ez-en une nouvelle"})]})}):(0,a.jsx)("div",{className:"flex flex-col h-full bg-carnet-bg items-center justify-center",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-carnet-text-primary mb-2",children:"Authentication Required"}),(0,a.jsx)("p",{className:"text-carnet-text-muted mb-4",children:"Please log in to access your notes"}),(0,a.jsx)("button",{onClick:()=>N.push("/signin"),className:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600",children:"Go to Login"})]})})},E=({isDragging:e,onDragStart:t,onDragEnd:r,onDrag:s})=>(0,a.jsx)("div",{className:`w-1 bg-border cursor-col-resize hover:bg-info transition-colors ${e?"bg-info":""}`,onMouseDown:e=>{e.preventDefault(),t(),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r)}});function k(e){let[t,r]=(0,s.useState)(!1);return t}let A=(0,d.A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),$=({contacts:e,onContactSelect:t,selectedContact:r,loading:n=!1})=>{let[o,l]=(0,s.useState)(""),i=e.filter(e=>{let t=o.toLowerCase();return(e.fullName?.toLowerCase()||"").includes(t)||(e.email?.toLowerCase()||"").includes(t)||(e.organization?.toLowerCase()||"").includes(t)});return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-carnet-bg border-r border-carnet-border",children:[(0,a.jsxs)("div",{className:"p-4 border-b border-carnet-border",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(m.A,{className:"h-5 w-5 text-carnet-text-primary"}),(0,a.jsx)("h2",{className:"text-lg font-semibold text-carnet-text-primary",children:"Carnet d'adresses"})]}),(0,a.jsx)("button",{onClick:()=>t({id:Math.random().toString(36).substr(2,9),fullName:"",email:"",phone:"",organization:"",address:"",notes:"",group:""}),className:"p-2 text-carnet-text-primary hover:bg-carnet-hover rounded-md",children:(0,a.jsx)(y.A,{className:"h-5 w-5"})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"text",value:o,onChange:e=>l(e.target.value),placeholder:"Rechercher un contact...",className:"w-full pl-9 pr-4 py-2 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary"}),(0,a.jsx)(x.A,{className:"absolute left-3 top-2.5 h-4 w-4 text-carnet-text-muted"})]})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:n?(0,a.jsx)("div",{className:"p-4 text-center text-carnet-text-muted",children:"Chargement..."}):0===i.length?(0,a.jsx)("div",{className:"p-4 text-center text-carnet-text-muted",children:"Aucun contact trouv\xe9"}):(0,a.jsx)("ul",{className:"divide-y divide-carnet-border",children:i.map(e=>(0,a.jsx)("li",{onClick:()=>t(e),className:`p-4 cursor-pointer hover:bg-carnet-hover ${r?.id===e.id?"bg-carnet-hover":""}`,children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)("div",{className:"h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)(A,{className:"h-5 w-5 text-primary"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-medium text-carnet-text-primary",children:e.fullName||e.email||"Sans nom"}),e.email&&(0,a.jsx)("div",{className:"text-sm text-carnet-text-muted",children:e.email})]})]}),(0,a.jsx)(h.A,{className:"h-4 w-4 text-carnet-text-muted"})]})},e.id))})})]})};var D=r(12941);let R=(0,d.A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),M=(0,d.A)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);var T=r(41550);let P=(0,d.A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),q=(0,d.A)("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);var I=r(97992);let L=({contact:e,onSave:t,onDelete:r})=>{let[o,l]=(0,s.useState)(!1),[i,c]=(0,s.useState)(null);if(n().useEffect(()=>{c(e),l(!1)},[e]),!e)return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-carnet-bg items-center justify-center text-carnet-text-muted",children:[(0,a.jsx)(A,{className:"h-16 w-16 mb-4 opacity-20"}),(0,a.jsx)("p",{children:"S\xe9lectionnez un contact pour voir les d\xe9tails"})]});let d=(e,t,r,s)=>(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)("div",{className:`h-8 w-8 rounded-full ${{email:"bg-blue-50",phone:"bg-green-50",organization:"bg-purple-50",address:"bg-orange-50"}[r]||"bg-gray-50"} flex items-center justify-center`,children:(0,a.jsx)("div",{className:{email:"text-blue-500",phone:"text-green-500",organization:"text-purple-500",address:"text-orange-500"}[r]||"text-gray-500",children:s})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"text-xs text-carnet-text-muted",children:e}),o?(0,a.jsx)("input",{type:"text",value:i?.[r]||"",onChange:e=>c(t=>t?{...t,[r]:e.target.value}:null),className:"w-full text-sm text-carnet-text-primary bg-transparent border-b border-primary focus:outline-none"}):(0,a.jsx)("p",{className:"text-sm text-carnet-text-primary",children:t})]})]});return(0,a.jsxs)("div",{className:"flex flex-col h-full bg-carnet-bg p-6",children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,a.jsx)("div",{className:"h-16 w-16 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)(A,{className:"h-8 w-8 text-primary"})}),(0,a.jsx)("div",{children:o?(0,a.jsx)("input",{type:"text",value:i?.fullName||"",onChange:e=>c(t=>t?{...t,fullName:e.target.value}:null),className:"text-xl font-semibold text-carnet-text-primary bg-transparent border-b border-primary focus:outline-none",placeholder:"Nom complet"}):(0,a.jsx)("h2",{className:"text-xl font-semibold text-carnet-text-primary",children:e?.fullName||e?.email||"Sans nom"})})]}),(0,a.jsx)("div",{className:"flex space-x-2",children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>{i&&t&&(t(i),l(!1))},className:"p-2 rounded-full hover:bg-primary/10 text-primary",title:"Enregistrer",children:(0,a.jsx)(R,{className:"h-5 w-5"})}),(0,a.jsx)("button",{onClick:()=>{c(e),l(!1)},className:"p-2 rounded-full hover:bg-red-100 text-red-500",title:"Annuler",children:(0,a.jsx)(p.A,{className:"h-5 w-5"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>l(!0),className:"p-2 rounded-full hover:bg-primary/10 text-primary",title:"Modifier",children:(0,a.jsx)(M,{className:"h-5 w-5"})}),r&&(0,a.jsx)("button",{onClick:()=>r(e),className:"p-2 rounded-full hover:bg-red-100 text-red-500",title:"Supprimer",children:(0,a.jsx)(p.A,{className:"h-5 w-5"})})]})})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[d("Email",e?.email,"email",(0,a.jsx)(T.A,{className:"h-4 w-4"})),d("T\xe9l\xe9phone",e?.phone,"phone",(0,a.jsx)(P,{className:"h-4 w-4"})),d("Organisation",e?.organization,"organization",(0,a.jsx)(q,{className:"h-4 w-4"})),d("Adresse",e?.address,"address",(0,a.jsx)(I.A,{className:"h-4 w-4"}))]}),(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsx)("h3",{className:"text-sm font-medium text-carnet-text-primary mb-2",children:"Notes"}),o?(0,a.jsx)("textarea",{value:i?.notes||"",onChange:e=>c(t=>t?{...t,notes:e.target.value}:null),className:"w-full h-32 text-sm text-carnet-text-muted bg-transparent border rounded-md p-2 focus:outline-none focus:border-primary",placeholder:"Ajouter des notes..."}):(0,a.jsx)("p",{className:"text-sm text-carnet-text-muted whitespace-pre-wrap",children:e?.notes})]})]})};var O=r(91710);function U(){let{data:e,status:t}=(0,o.useSession)(),[r,n]=(0,s.useState)(!0),[l,i]=(0,s.useState)(!1),[c,d]=(0,s.useState)("item-selection"),[u,m]=(0,s.useState)(null),[x,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!0),[y,N]=(0,s.useState)(!0),[j,b]=(0,s.useState)([]),[w,A]=(0,s.useState)("Notes"),[R,M]=(0,s.useState)([]),[T,P]=(0,s.useState)(!0),[q,I]=(0,s.useState)([]),[U,F]=(0,s.useState)(null),[z,V]=(0,s.useState)(!0),[G,B]=(0,s.useState)(220),[_,J]=(0,s.useState)(400),[H,W]=(0,s.useState)(!1),[Y,X]=(0,s.useState)(!1);k("(max-width: 768px)"),k("(max-width: 1024px)"),(0,s.useRef)(null);let Z=(0,s.useRef)({}),K=(0,s.useRef)({}),Q=e=>{try{return e.split("BEGIN:VCARD").filter(e=>e.trim()).map(e=>{let t=(0,O.parse)("BEGIN:VCARD"+e),r=t.uid?.[0]?.value,a=t.fn?.[0]?.value,s=t.email?.[0]?.value,n=t.tel?.[0]?.value,o=t.org?.[0]?.value,l=t.adr?.[0]?.value,i=t.note?.[0]?.value,c=t.categories?.[0]?.value;return{id:r||Math.random().toString(36).substr(2,9),fullName:a||"Unknown Contact",email:s||"",phone:n||"",organization:o||"",address:l||"",notes:i||"",group:c||""}})}catch(e){return console.error("Error parsing VCF content:",e),[]}},ee=async t=>{try{V(!0);let r=t.toLowerCase();if(t.endsWith(".vcf")){let a=await fetch(`/api/storage/files/content?path=${encodeURIComponent(`user-${e?.user?.id}/${r}/${t}`)}`);if(a.ok){let{content:e}=await a.json(),r=Q(e);I(r.map(e=>({...e,group:t.replace(".vcf","")})))}}else{let e=await fetch(`/api/storage/files?folder=${r}`);if(e.ok){let t=(await e.json()).filter(e=>e.basename?.endsWith(".vcf")||e.title?.endsWith(".vcf")),r=await Promise.all(t.map(async e=>{try{let t=await fetch(`/api/storage/files/content?path=${encodeURIComponent(e.id)}`);if(t.ok){let{content:r}=await t.json();return Q(r).map(t=>({...t,group:(e.basename||e.title)?.replace(".vcf","")}))}return[]}catch(e){return console.error("Error fetching VCF content:",e),[]}}));I(r.flat().filter(Boolean))}}}catch(e){console.error("Error fetching contacts:",e),I([])}finally{V(!1)}},et=async()=>{try{P(!0);let t=w.toLowerCase();console.log(`Fetching notes from folder: ${t}`);let r=`${e?.user?.id}-${t}`,a=Z.current[r];if(a&&Date.now()-a.timestamp<3e5){console.log(`Using cached notes for ${t} folder`),M(a.notes),P(!1);return}try{let e=`notes-cache-${r}`,a=localStorage.getItem(e);if(a){let{notes:e,timestamp:s}=JSON.parse(a);if(Date.now()-s<3e5){console.log(`Using localStorage cached notes for ${t} folder`),M(e),Z.current[r]={notes:e,timestamp:s},P(!1);return}}}catch(e){console.error("Error accessing localStorage notes cache:",e)}let s=await fetch(`/api/storage/files?folder=${t}`);if(s.ok){let e=await s.json();console.log(`Fetched ${e.length} notes from ${t} folder`),M(e);let a=Date.now();Z.current[r]={notes:e,timestamp:a};try{localStorage.setItem(`notes-cache-${r}`,JSON.stringify({notes:e,timestamp:a}))}catch(e){console.error("Error saving notes to localStorage:",e)}}else console.error("Error fetching notes:",await s.text()),M([])}catch(e){console.error("Error fetching notes:",e),M([])}finally{P(!1)}},er=async t=>{try{i(!0);let r={id:t.id||`user-${e?.user?.id}/${w.toLowerCase()}/${t.title}${t.title.endsWith(".md")?"":".md"}`,title:t.title,content:t.content,folder:w.toLowerCase(),mime:"text/markdown"},a=t.id?"PUT":"POST";console.log(`Saving note to ${w.toLowerCase()} using ${a}`);let s=await fetch("/api/storage/files",{method:a,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(s.ok){let t=`${e?.user?.id}-${w.toLowerCase()}`;Z.current[t]&&delete Z.current[t];try{localStorage.removeItem(`notes-cache-${t}`)}catch(e){console.error("Error removing notes from localStorage:",e)}if(r.id){K.current[r.id]={content:r.content,timestamp:Date.now()};try{localStorage.setItem(`note-content-${r.id}`,JSON.stringify({content:r.content,timestamp:Date.now()}))}catch(e){console.error("Error saving note content to localStorage:",e)}}et()}else console.error("Error saving note:",await s.text())}catch(e){console.error("Error saving note:",e)}finally{i(!1)}},ea=async e=>{console.log("Selected folder:",e),A(e),d("item-selection"),F(null);try{let t=e.toLowerCase();console.log(`Ensuring folder exists: ${t}`);let r=await fetch("/api/storage/init/folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({folder:t})});r.ok||console.warn(`Failed to create folder ${t}: ${await r.text()}`)}catch(e){console.error("Error creating folder:",e)}},es=async e=>{try{if(!(await fetch("/api/nextcloud/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id,folder:w})})).ok)throw Error("Failed to delete note");let t=await fetch(`/api/nextcloud/files?folder=${w}`);if(t.ok){let e=await t.json();M(e)}u?.id===e.id&&m(null)}catch(e){console.error("Error deleting note:",e)}},en=async t=>{if(e?.user?.id)try{n(!0);let r=`/files/cube-${e.user.id}/Private/Contacts`,a="Allemanique.vcf",s=`${r}/${a}`,o="",l=[];try{let e=await fetch(`/api/nextcloud/files/content?path=${encodeURIComponent(s)}`);if(e.ok){let{content:t}=await e.json();l=t.split("BEGIN:VCARD").filter(e=>e.trim()).map(e=>"BEGIN:VCARD"+e.trim())}}catch(e){console.log("No existing VCF file found, will create a new one")}let i=[],c=!1;for(let e of l){let r=(0,O.parse)(e);if(r.uid?.[0]?.value===t.id){let e=["BEGIN:VCARD","VERSION:3.0",`UID:${t.id}`,`FN:${t.fullName||""}`,...t.email?[`EMAIL;TYPE=INTERNET:${t.email}`]:[],...t.phone?[`TEL;TYPE=CELL:${t.phone}`]:[],...t.organization?[`ORG:${t.organization}`]:[],...t.address?[`ADR:${t.address}`]:[],...t.notes?[`NOTE:${t.notes}`]:[],"END:VCARD"].join("\n");i.push(e),c=!0}else i.push(e)}if(!c){let e=["BEGIN:VCARD","VERSION:3.0",`UID:${t.id}`,`FN:${t.fullName||""}`,...t.email?[`EMAIL;TYPE=INTERNET:${t.email}`]:[],...t.phone?[`TEL;TYPE=CELL:${t.phone}`]:[],...t.organization?[`ORG:${t.organization}`]:[],...t.address?[`ADR:${t.address}`]:[],...t.notes?[`NOTE:${t.notes}`]:[],"END:VCARD"].join("\n");i.push(e)}if(o=i.join("\n\n"),!(await fetch("/api/nextcloud/files",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,title:a,content:o,folder:"Contacts",mime:"text/vcard"})})).ok)throw Error("Failed to save contact");await ee(w),c&&F(t)}catch(e){console.error("Error saving contact:",e)}finally{n(!1)}},eo=async t=>{if(confirm("\xcates-vous s\xfbr de vouloir supprimer ce contact ?"))try{n(!0);let r=`/files/cube-${e?.user?.id}/Private/Contacts`,a=t.group?`${t.group}.vcf`:"contacts.vcf",s=`${r}/${a}`,o=await fetch(`/api/nextcloud/files/content?path=${encodeURIComponent(s)}`);if(!o.ok)throw Error("Failed to fetch contacts");let{content:l}=await o.json(),i=l.split("BEGIN:VCARD").filter(e=>e.trim()).filter(e=>{let r=(0,O.parse)("BEGIN:VCARD"+e);return r.uid?.[0]?.value!==t.id}).map(e=>"BEGIN:VCARD"+e).join("\n");if(!(await fetch("/api/nextcloud/files",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,title:a,content:i,folder:"Contacts",mime:"text/vcard"})})).ok)throw Error("Failed to delete contact");F(null),await ee(w)}catch(e){console.error("Error deleting contact:",e)}finally{n(!1)}};return r?(0,a.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,a.jsx)("div",{className:"h-32 w-32 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})}):(0,a.jsx)("main",{className:"w-full h-screen bg-black",children:(0,a.jsx)("div",{className:"w-full h-full px-4 pt-12 pb-4",children:(0,a.jsxs)("div",{className:"flex h-full bg-carnet-bg",children:[f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex-none",style:{width:G},children:(0,a.jsx)(v,{nextcloudFolders:j,onFolderSelect:ea})}),(0,a.jsx)(E,{isDragging:H,onDragStart:()=>W(!0),onDragEnd:()=>W(!1),onDrag:e=>{if(!H)return;let t=e.clientX;t>=48&&t<=400&&B(t)}})]}),y&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex-1 overflow-hidden",children:"Contacts"===w?(0,a.jsx)($,{contacts:q,onContactSelect:e=>{F(e),x&&N(!1)},selectedContact:U,loading:T}):(0,a.jsx)(C,{notes:R,loading:T,onNoteSelect:e=>{m(e),x&&N(!1)},currentFolder:w,onNewNote:()=>{m({id:"",title:"",content:"",lastModified:new Date().toISOString(),type:"file",mime:"text/markdown",etag:""}),x&&N(!1)},onDeleteNote:es})}),(0,a.jsx)(E,{isDragging:Y,onDragStart:()=>X(!0),onDragEnd:()=>X(!1),onDrag:e=>{if(!Y)return;let t=e.clientX-G-2;t>=200&&J(t)}})]}),(0,a.jsx)("div",{className:"flex-1 overflow-hidden",children:"Contacts"===w||w.endsWith(".vcf")?(0,a.jsx)(L,{contact:U,onSave:en,onDelete:eo}):(0,a.jsx)(S,{note:u,onSave:er,currentFolder:w,onRefresh:()=>{et()}})}),x&&(0,a.jsx)("button",{onClick:()=>g(!f),className:"fixed bottom-4 right-4 bg-primary text-white p-3 rounded-full shadow-lg",children:f?(0,a.jsx)(p.A,{className:"h-6 w-6"}):(0,a.jsx)(D.A,{className:"h-6 w-6"})})]})})})}},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74075:e=>{"use strict";e.exports=require("zlib")},75165:(e,t,r)=>{Promise.resolve().then(r.bind(r,61083))},79428:e=>{"use strict";e.exports=require("buffer")},79551:e=>{"use strict";e.exports=require("url")},81630:e=>{"use strict";e.exports=require("http")},83997:e=>{"use strict";e.exports=require("tty")},91645:e=>{"use strict";e.exports=require("net")},91710:e=>{var t="BEGIN:VCARD",r="END:VCARD",a=/[^\\];|^;/,s=/[^\\],|^,/;function n(e,t){var r=new RegExp(t),a=RegExp("\\\\"+t,"g");return e=(e=e.replace(a,"ΩΩΩ")).match(r)?(e=e.split(t)).map(function(e){return e.replace(/ΩΩΩ/g,t)}):e.replace(/ΩΩΩ/g,t)}var o=function(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}(),l=["nickname","related","categories","pid"],i=["fn"];e.exports={parse:function(e){for(var o,l,i,c,d,u={},m=e.split(/\r\n|\r|\n/),x=m.length,p=0;p<x;p++)if(""!==m[p]&&m[p].toUpperCase()!==t&&m[p].toUpperCase()!==r){var h,f=m[p],g=function(e){return e+1<x&&(" "===m[e+1][0]||" "===m[e+1][0])};if(g(p))for(;g(p);)f+=m[p+1].trim(),p++;if(l=(o=f.split(":")).shift(),i=o.join(":"),d=!1,c={},l.match(/;/)){var v=(l=l.replace(/\\;/g,"ΩΩΩ").replace(/\\,/,",")).split(";").map(function(e){return e.replace(/ΩΩΩ/g,";")});l=v.shift(),v.forEach(function(e){var t=e.split("=");t[0]=t[0].toLowerCase(),0!==t[0].length&&(c[t[0]]?c[t[0]].push(t[1]):c[t[0]]=[t[1]])})}if(i=(h=i=i.replace(/\\n/g,"\n")).match(a)?n(h=h.replace(/\\,/g,","),";"):h.match(s)?n(h=h.replace(/\\;/g,";"),","):h.replace(/\\,/g,",").replace(/\\;/g,";"),l.match(/\./)){var y=l.split(".");l=y[1],d=y[0]}var N={value:i};Object.keys(c).length&&(N.meta=c),d&&(N.namespace=d),0!==l.indexOf("X-")&&(l=l.toLowerCase()),void 0===u[l]?u[l]=[N]:u[l].push(N)}return u},generate:function(e,a){var s=[t],n="";a&&!e.version&&(e.version=[{value:"3.0"}]),a&&!e.uid&&(e.uid=[{value:o()}]);var c=function(e){return void 0===e?"":e.replace(/\n/g,"\\n").replace(/;/g,"\\;").replace(/,/g,"\\,")};return Object.keys(e).forEach(function(t){e[t]&&"function"==typeof e[t].forEach&&e[t].forEach(function(e){if(void 0!==e.value&&(""!==e.value||-1!==i.indexOf(t))){if(e.value instanceof Array){for(var r=!0,a=0;a<e.value.length;a++)if(void 0!==e.value[a]&&""!==e.value[a]){r=!1;break}if(r)return}if(n="",e.namespace&&(n+=e.namespace+"."),n+=0===t.indexOf("X-")?t:t.toUpperCase(),"object"==typeof e.meta&&Object.keys(e.meta).forEach(function(t){"function"==typeof e.meta[t].forEach&&e.meta[t].forEach(function(e){if(t.length>0)if("TYPE"===t.toUpperCase())n+=";"+c(t.toUpperCase())+"="+(void 0===e?"":e.replace(/\n/g,"\\n").replace(/;/g,"\\;"));else n+=";"+c(t.toUpperCase())+"="+c(e)})}),n+=":","string"==typeof e.value)n+=c(e.value);else{var o=-1!==l.indexOf(t)?",":";";n+=e.value.map(function(e){return c(e)}).join(o)}if(n.length>75){var d=n.substr(0,75),u=n.substr(75).match(/.{1,74}/g);s.push(d),u.forEach(function(e){s.push(" "+e)})}else s.push(n)}})}),s.push(r),s.join("\r\n")}}},94735:e=>{"use strict";e.exports=require("events")},97992:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(62688).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},99270:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(62688).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[4243,5419,8794,1642,6724,748,9514,6781,5500],()=>r(58889));module.exports=a})();