1 line
8.8 KiB
JavaScript
1 line
8.8 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7375],{9483:(e,t,o)=>{"use strict";o.d(t,{p:()=>r});var n=o(46298),i=o(22029),a=o(91025);let r=(0,n.v)()((0,i.Zr)(e=>({themeMode:"system",setThemeMode:t=>e({themeMode:t})}),{name:"ultimail-demo-theme",storage:a.$,partialize:e=>({themeMode:e.themeMode})}))},19916:(e,t,o)=>{"use strict";o.d(t,{Lw:()=>n,O5:()=>i,QK:()=>r,rq:()=>a});let n=50,i=[50,100,250,500];function a(e){return i.includes(e)}function r(e){if(a(e)&&e<=500)return e;let t=i.filter(e=>e<=500);for(let o=t.length-1;o>=0;o--)if(e>=t[o])return t[o];return n}},26938:(e,t,o)=>{"use strict";o.d(t,{PV:()=>d,X6:()=>l,qH:()=>s,zt:()=>c});var n=o(49347),i=o(80691),a=o(26362),r=o(4433);let s="/account",d=[{id:"home",label:"Accueil",description:"Vue d'ensemble de votre compte Ulti",href:s,icon:n.A},{id:"personal-info",label:"Informations personnelles",description:"Nom, adresse e-mail et identifiant",href:`${s}/informations`,icon:i.A},{id:"usage-ia",label:"Usage IA",description:"Consommation LLM et cl\xe9s API personnelles",href:`${s}/usage-ia`,icon:a.A},{id:"security",label:"S\xe9curit\xe9",description:"Mot de passe, sessions et appareils",href:`${s}/securite`,icon:r.A}];function l(e,t){return t.href===s?e===s||e===`${s}/accueil`:e===t.href||!!e?.startsWith(`${t.href}/`)}function c(e){let t=e?.[0],o=d.find(e=>"home"===e.id?!t||"accueil"===t:e.href.endsWith(`/${t}`));return o?.id??"home"}},52590:(e,t,o)=>{"use strict";o.d(t,{x:()=>c});var n=o(46298),i=o(22029),a=o(91025),r=o(81893),s=o(65367),d=o(19916);let l={quickSettingsOpen:!1,themeDialogOpen:!1,density:"default",themeMode:"system",backgroundId:"none",inboxSort:"default",readingPane:"none",conversationMode:!0,infiniteScroll:!1,listPageSize:d.Lw,...s.L5},c=(0,n.v)()((0,i.Zr)(e=>({...l,setQuickSettingsOpen:t=>e({quickSettingsOpen:t}),setThemeDialogOpen:t=>e({themeDialogOpen:t}),setDensity:t=>e({density:t}),setThemeMode:t=>e({themeMode:t}),setBackgroundId:t=>e({backgroundId:t}),setInboxSort:t=>e({inboxSort:t}),setReadingPane:t=>e({readingPane:t}),setConversationMode:t=>e({conversationMode:t}),setInfiniteScroll:t=>e({infiniteScroll:t}),setListPageSize:t=>e({listPageSize:t}),setDesktopNewMail:t=>e({desktopNewMail:t}),setDesktopMentions:t=>e({desktopMentions:t}),setEmailDigest:t=>e({emailDigest:t}),setSoundEnabled:t=>e({soundEnabled:t}),hydrateFromApi:t=>e(e=>({...e,...t,...void 0!==t.backgroundId?{backgroundId:(0,r.y9)(t.backgroundId)}:{}}))}),{name:"ultimail-mail-settings",storage:a.$,partialize:e=>({density:e.density,themeMode:e.themeMode,backgroundId:e.backgroundId,inboxSort:e.inboxSort,readingPane:e.readingPane,conversationMode:e.conversationMode,infiniteScroll:e.infiniteScroll,listPageSize:e.listPageSize,desktopNewMail:e.desktopNewMail,desktopMentions:e.desktopMentions,emailDigest:e.emailDigest,soundEnabled:e.soundEnabled}),merge:(e,t)=>e?{...t,...e,backgroundId:(0,r.y9)(e.backgroundId??"none"),listPageSize:(0,d.rq)(Number(e.listPageSize))?(0,d.QK)(Number(e.listPageSize)):t.listPageSize}:t}))},60142:(e,t,o)=>{"use strict";o.d(t,{N:()=>a});var n=o(4208);o(91356);var i=o(17996);function a({children:e,scriptProps:t,...o}){let r={...t,type:"application/json"};return(0,n.jsx)(i.N,{...o,scriptProps:r,children:e})}},60491:(e,t,o)=>{Promise.resolve().then(o.bind(o,80909))},65367:(e,t,o)=>{"use strict";o.d(t,{IX:()=>i,L5:()=>n,Sm:()=>a});let n={desktopNewMail:!0,desktopMentions:!0,emailDigest:!1,soundEnabled:!1};function i(e){let t=e.notifications;return{density:e.density,themeMode:e.theme_mode,backgroundId:e.background_id,inboxSort:e.inbox_sort,readingPane:e.reading_pane,conversationMode:e.conversation_mode,desktopNewMail:t?.desktop_new_mail??n.desktopNewMail,desktopMentions:t?.desktop_mentions??n.desktopMentions,emailDigest:t?.email_digest??n.emailDigest,soundEnabled:t?.sound_enabled??n.soundEnabled}}function a(e){let t={};void 0!==e.density&&(t.density=e.density),void 0!==e.themeMode&&(t.theme_mode=e.themeMode),void 0!==e.backgroundId&&(t.background_id=e.backgroundId),void 0!==e.inboxSort&&(t.inbox_sort=e.inboxSort),void 0!==e.readingPane&&(t.reading_pane=e.readingPane),void 0!==e.conversationMode&&(t.conversation_mode=e.conversationMode);let o={};return void 0!==e.desktopNewMail&&(o.desktop_new_mail=e.desktopNewMail),void 0!==e.desktopMentions&&(o.desktop_mentions=e.desktopMentions),void 0!==e.emailDigest&&(o.email_digest=e.emailDigest),void 0!==e.soundEnabled&&(o.sound_enabled=e.soundEnabled),Object.keys(o).length>0&&(t.notifications=o),t}},69899:(e,t,o)=>{"use strict";o.d(t,{Bc:()=>r,ZI:()=>l,k$:()=>d,m_:()=>s});var n=o(4208);o(91356);var i=o(21729),a=o(58113);function r({delayDuration:e=0,...t}){return(0,n.jsx)(i.Kq,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function s({...e}){return(0,n.jsx)(i.bL,{"data-slot":"tooltip",...e})}function d({...e}){return(0,n.jsx)(i.l9,{"data-slot":"tooltip-trigger",...e})}function l({className:e,sideOffset:t=0,children:o,...r}){return(0,n.jsx)(i.ZL,{children:(0,n.jsxs)(i.UC,{"data-slot":"tooltip-content",sideOffset:t,className:(0,a.cn)("border border-border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[o,(0,n.jsx)(i.i3,{className:"fill-popover z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}},80909:(e,t,o)=>{"use strict";o.d(t,{MeetAppShell:()=>s});var n=o(4208),i=o(12646),a=o(94883),r=o(69899);function s({children:e}){return(0,n.jsx)(a.SuiteThemeShell,{children:(0,n.jsx)(r.Bc,{delayDuration:400,children:(0,n.jsxs)("div",{className:"ultimail-app relative flex h-dvh flex-col overflow-hidden bg-app-canvas","data-meet-app":!0,children:[e,(0,n.jsx)(i.H,{})]})})})}},81647:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i,i:()=>a});var n=o(81893);function i(e=document.documentElement){delete e.dataset.mailBackground,e.style.removeProperty("--mail-bg-layer"),e.style.removeProperty("--mail-bg-fallback")}function a(e,t=document.documentElement){let o=(0,n.y9)(e),{background:r,fallbackColor:s}=(0,n.Pu)(o);"none"===o||"none"===r?i(t):(t.dataset.mailBackground=o,t.style.setProperty("--mail-bg-layer",r),t.style.setProperty("--mail-bg-fallback",s))}},81893:(e,t,o)=>{"use strict";o.d(t,{Pu:()=>r,UT:()=>i,y9:()=>a});let n={mountains:"photo-mountains",ocean:"gradient-ocean",forest:"photo-nature",abstract:"gradient-blossom"},i=[{id:"none",label:"Aucun",background:"none",fallbackColor:"var(--app-canvas)"},{id:"gradient-aurora",label:"Aurore",background:'url("/mail-backgrounds/gradient-aurora.svg") center / cover no-repeat',fallbackColor:"#667eea"},{id:"gradient-sunset",label:"Coucher de soleil",background:'url("/mail-backgrounds/gradient-sunset.svg") center / cover no-repeat',fallbackColor:"#e44d26"},{id:"gradient-ocean",label:"Oc\xe9an",background:'url("/mail-backgrounds/gradient-ocean.svg") center / cover no-repeat',fallbackColor:"#203a43"},{id:"gradient-blossom",label:"Floral",background:'url("/mail-backgrounds/gradient-blossom.svg") center / cover no-repeat',fallbackColor:"#ffecd2"},{id:"photo-mountains",label:"Montagnes",background:'url("https://picsum.photos/seed/ultimail-mountains/1920/1080") center / cover no-repeat',fallbackColor:"#5c6b73"},{id:"photo-ocean",label:"Mer",background:'url("https://picsum.photos/seed/ultimail-ocean/1920/1080") center / cover no-repeat',fallbackColor:"#1a5276"},{id:"photo-city",label:"Ville",background:'url("https://picsum.photos/seed/ultimail-city/1920/1080") center / cover no-repeat',fallbackColor:"#2c3e50"},{id:"photo-nature",label:"Nature",background:'url("https://picsum.photos/seed/ultimail-nature/1920/1080") center / cover no-repeat',fallbackColor:"#2d5016"}];function a(e){return i.some(t=>t.id===e)?e:n[e]??"none"}function r(e){let t,o=(t=a(e),i.find(e=>e.id===t)??i[0]);return{background:o.background,fallbackColor:o.fallbackColor}}},83833:(e,t,o)=>{"use strict";o.d(t,{C:()=>l});var n=o(91356),i=o(19984),a=o(17996),r=o(81647),s=o(9483),d=o(52590);function l(){let e=(0,i.usePathname)(),t=(0,d.x)(e=>e.themeMode),o=(0,s.p)(e=>e.themeMode),l="/demo"===e||e?.startsWith("/demo/")===!0?o:t,c=(0,d.x)(e=>e.backgroundId),{theme:u,setTheme:m}=(0,a.D)();return(0,n.useEffect)(()=>{u&&u!==l&&m(l)},[l,u,m]),(0,n.useEffect)(()=>"/mail"===e||e.startsWith("/mail/")||"/demo/mail"===e||e.startsWith("/demo/mail/")?((0,r.i)(c),()=>(0,r.Z)()):void(0,r.Z)(),[c,e]),null}},94883:(e,t,o)=>{"use strict";o.d(t,{SuiteThemeShell:()=>r});var n=o(4208),i=o(60142),a=o(83833);function r({children:e}){return(0,n.jsxs)(i.N,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:[e,(0,n.jsx)(a.C,{})]})}}},e=>{e.O(0,[1909,2082,798,8306,5855,8023,5179,1729,3719,563,4927,2646,1614,1506,7358],()=>e(e.s=60491)),_N_E=e.O()}]); |