1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4063],{3964:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(43200).A)("container",[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]])},21181:(e,t,a)=>{a.r(t),a.d(t,{UltimeetSection:()=>m});var s=a(4208),n=a(91356),r=a(58564),i=a(25729),l=a(4023),o=a(37820),d=a(99439),c=a(13746),u=a(12154),p=a(84956),h=a(89342),x=a(66987);function m(){let e=(0,o.U)(e=>e.meet),t=(0,o.U)(e=>e.llm.providers),a=(0,o.U)(e=>e.setMeet),m=(0,o.U)(e=>e.meta?.effective.jitsi),[v,g]=(0,n.useState)(e);(0,n.useEffect)(()=>{g(e)},[e]);let _=e=>g(t=>({...t,...e})),b=e=>g(t=>({...t,post_actions:{...t.post_actions,...e}}));return(0,s.jsx)(r.f,{title:"UltiMeet",description:"Visioconf\xe9rence Jitsi, transcription et traitements post-r\xe9union.",policySection:"meet",beforeSave:()=>a(v),children:(0,s.jsxs)(l.I,{columns:2,children:[(0,s.jsx)(i.KT,{title:"Infrastructure",description:(0,s.jsxs)(s.Fragment,{children:["Jitsi ",m?.enabled?"actif":"inactif",m?.public_url?` — ${m.public_url}`:""]})}),(0,s.jsx)(i.KT,{title:"Transcription",description:"Active les sous-titres Jitsi (live) ou le pipeline diff\xe9r\xe9 selon le mode.",action:(0,s.jsx)(u.d,{checked:v.transcription_enabled,onCheckedChange:e=>_({transcription_enabled:e})}),children:v.transcription_enabled?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.wB,{columns:2,children:[(0,s.jsx)(i.u8,{label:"Mode",children:(0,s.jsxs)(h.l6,{value:v.transcription_mode,onValueChange:e=>_({transcription_mode:e}),children:[(0,s.jsx)(h.bq,{className:"h-9",children:(0,s.jsx)(h.yv,{})}),(0,s.jsx)(h.gC,{children:Object.entries(d.xS).map(([e,t])=>(0,s.jsx)(h.eb,{value:e,children:t},e))})]})}),(0,s.jsx)(i.u8,{label:"Moteur",children:(0,s.jsxs)(h.l6,{value:v.transcription_engine,onValueChange:e=>_({transcription_engine:e}),children:[(0,s.jsx)(h.bq,{className:"h-9",children:(0,s.jsx)(h.yv,{})}),(0,s.jsx)(h.gC,{children:Object.entries(d.IG).map(([e,t])=>(0,s.jsx)(h.eb,{value:e,children:t},e))})]})})]}),(0,s.jsx)(i.Kk,{title:"D\xe9marrage automatique",description:"Lance la transcription d\xe8s l'ouverture de la salle (sinon via bouton Sous-titres pour les mod\xe9rateurs).",checked:v.auto_start_transcription,onCheckedChange:e=>_({auto_start_transcription:e})}),"faster_whisper_local"===v.transcription_engine?(0,s.jsxs)(i.wB,{columns:2,children:[(0,s.jsx)(i.u8,{label:"URL Skynet (interne)",children:(0,s.jsx)(c.p,{className:"h-9",value:v.skynet_url,onChange:e=>_({skynet_url:e.target.value}),placeholder:"http://skynet:8000"})}),(0,s.jsx)(i.u8,{label:"Mod\xe8le Whisper",children:(0,s.jsx)(c.p,{className:"h-9",value:v.whisper_model,onChange:e=>_({whisper_model:e.target.value}),placeholder:"tiny, base, small…"})})]}):(0,s.jsxs)(i.wB,{columns:1,children:[(0,s.jsx)(i.u8,{label:"Fournisseur API",children:(0,s.jsxs)(h.l6,{value:v.external_api_provider,onValueChange:e=>_({external_api_provider:e}),children:[(0,s.jsx)(h.bq,{className:"h-9",children:(0,s.jsx)(h.yv,{children:(0,s.jsx)(x.c,{brand:v.external_api_provider,children:d.N0[v.external_api_provider]})})}),(0,s.jsx)(h.gC,{children:Object.entries(d.N0).map(([e,t])=>(0,s.jsx)(h.eb,{value:e,children:(0,s.jsx)(x.c,{brand:e,children:t})},e))})]})}),(0,s.jsx)(i.u8,{label:"URL API",children:(0,s.jsx)(c.p,{className:"h-9",value:v.external_api_url,onChange:e=>_({external_api_url:e.target.value}),placeholder:"https://api.openai.com/v1/audio/transcriptions"})}),(0,s.jsx)(i.u8,{label:"Cl\xe9 API",children:(0,s.jsx)(c.p,{className:"h-9",type:"password",value:v.external_api_key,onChange:e=>_({external_api_key:e.target.value}),placeholder:"Laisser vide pour conserver la cl\xe9 enregistr\xe9e",autoComplete:"off"})})]})]}):null}),v.transcription_enabled?(0,s.jsxs)(i.KT,{title:"Apr\xe8s la r\xe9union",description:"Actions ex\xe9cut\xe9es quand le transcript est re\xe7u par le backend.",children:[(0,s.jsx)(i.Kk,{title:"Enregistrer dans UltiDrive",checked:v.post_actions.drive_enabled,onCheckedChange:e=>b({drive_enabled:e})}),v.post_actions.drive_enabled?(0,s.jsx)(i.u8,{label:"Dossier Drive",children:(0,s.jsx)(c.p,{className:"h-9",value:v.post_actions.drive_folder_path,onChange:e=>b({drive_folder_path:e.target.value}),placeholder:"/UltiMeet/Transcripts"})}):null,(0,s.jsx)(i.Kk,{title:"Envoyer par mail",description:"Utilise le SMTP organisationnel (r\xe9glages Mailing).",checked:v.post_actions.email_enabled,onCheckedChange:e=>b({email_enabled:e})}),v.post_actions.email_enabled?(0,s.jsxs)(i.wB,{columns:1,children:[(0,s.jsx)(i.u8,{label:"Destinataires",children:(0,s.jsxs)(h.l6,{value:v.post_actions.email_recipients,onValueChange:e=>b({email_recipients:e}),children:[(0,s.jsx)(h.bq,{className:"h-9",children:(0,s.jsx)(h.yv,{})}),(0,s.jsx)(h.gC,{children:Object.entries(d.Af).map(([e,t])=>(0,s.jsx)(h.eb,{value:e,children:t},e))})]})}),"custom"===v.post_actions.email_recipients?(0,s.jsx)(i.u8,{label:"Adresses (s\xe9par\xe9es par des virgules)",children:(0,s.jsx)(c.p,{className:"h-9",value:v.post_actions.email_custom_addresses,onChange:e=>b({email_custom_addresses:e.target.value})})}):null]}):null,(0,s.jsx)(i.Kk,{title:"Traitement LLM",description:"R\xe9sume ou transforme le transcript via un fournisseur LLM organisationnel.",checked:v.post_actions.llm_enabled,onCheckedChange:e=>b({llm_enabled:e})}),v.post_actions.llm_enabled?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(i.u8,{label:"Fournisseur LLM",children:(0,s.jsxs)(h.l6,{value:v.post_actions.llm_provider_id||"__default__",onValueChange:e=>b({llm_provider_id:"__default__"===e?"":e}),children:[(0,s.jsx)(h.bq,{className:"h-9",children:(0,s.jsx)(h.yv,{placeholder:"Par d\xe9faut (organisation)"})}),(0,s.jsxs)(h.gC,{children:[(0,s.jsx)(h.eb,{value:"__default__",children:"Par d\xe9faut (organisation)"}),t.map(e=>(0,s.jsx)(h.eb,{value:e.id,children:e.name||e.id},e.id))]})]})}),(0,s.jsx)(i.u8,{label:"Prompt",children:(0,s.jsx)(p.T,{value:v.post_actions.llm_prompt,onChange:e=>b({llm_prompt:e.target.value}),rows:4})}),(0,s.jsx)(i.Kk,{title:"Envoyer le r\xe9sultat LLM par mail",checked:v.post_actions.llm_then_email,onCheckedChange:e=>b({llm_then_email:e})}),(0,s.jsx)(i.Kk,{title:"Enregistrer le r\xe9sultat LLM dans Drive",checked:v.post_actions.llm_then_drive,onCheckedChange:e=>b({llm_then_drive:e})})]}):null]}):null]})})}},26159:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(43200).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},66987:(e,t,a)=>{a.d(t,{c:()=>l});var s=a(4208),n=a(84834),r=a(47391),i=a(58113);function l({brand:e,icon:t,children:a,className:o,iconClassName:d,suffix:c}){let u=t??(e?(0,r.r)(e):void 0);return(0,s.jsxs)("span",{className:(0,i.cn)("inline-flex min-w-0 items-center gap-2",o),children:[u?(0,s.jsx)(n.In,{icon:u,className:(0,i.cn)("size-4 shrink-0",d),"aria-hidden":!0}):null,(0,s.jsxs)("span",{className:"truncate",children:[a,c]})]})}},77510:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(43200).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},84956:(e,t,a)=>{a.d(t,{T:()=>r});var s=a(4208);a(91356);var n=a(58113);function r({className:e,...t}){return(0,s.jsx)("textarea",{"data-slot":"textarea",className:(0,n.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}},89342:(e,t,a)=>{a.d(t,{TR:()=>x,bq:()=>p,eb:()=>m,gC:()=>h,l6:()=>d,mi:()=>v,s3:()=>c,yv:()=>u});var s=a(4208);a(91356);var n=a(29477),r=a(9519),i=a(35019),l=a(30758),o=a(58113);function d({...e}){return(0,s.jsx)(n.bL,{"data-slot":"select",...e})}function c({...e}){return(0,s.jsx)(n.YJ,{"data-slot":"select-group",...e})}function u({...e}){return(0,s.jsx)(n.WT,{"data-slot":"select-value",...e})}function p({className:e,size:t="default",variant:a="default",children:i,...l}){return(0,s.jsxs)(n.l9,{"data-slot":"select-trigger","data-size":t,"data-variant":a,className:(0,o.cn)("data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md bg-transparent text-sm whitespace-nowrap transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","default"===a&&"border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 border px-3 py-2 shadow-xs focus-visible:ring-[3px]","ghost"===a&&"border-0 shadow-none hover:bg-transparent focus-visible:ring-0 dark:bg-transparent dark:hover:bg-transparent dark:data-[state=open]:bg-transparent",e),...l,children:[i,(0,s.jsx)(n.In,{asChild:!0,children:(0,s.jsx)(r.A,{className:"size-4 opacity-50"})})]})}function h({className:e,children:t,position:a="popper",...r}){return(0,s.jsx)(n.ZL,{children:(0,s.jsxs)(n.UC,{"data-slot":"select-content",className:(0,o.cn)("bg-popover text-popover-foreground 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 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[(0,s.jsx)(g,{}),(0,s.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,s.jsx)(_,{})]})})}function x({className:e,...t}){return(0,s.jsx)(n.JU,{"data-slot":"select-label",className:(0,o.cn)("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function m({className:e,children:t,...a}){return(0,s.jsxs)(n.q7,{"data-slot":"select-item",className:(0,o.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,s.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,s.jsx)(n.VF,{children:(0,s.jsx)(i.A,{className:"size-4"})})}),(0,s.jsx)(n.p4,{children:t})]})}function v({className:e,...t}){return(0,s.jsx)(n.wv,{"data-slot":"select-separator",className:(0,o.cn)("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function g({className:e,...t}){return(0,s.jsx)(n.PP,{"data-slot":"select-scroll-up-button",className:(0,o.cn)("flex cursor-pointer items-center justify-center py-1",e),...t,children:(0,s.jsx)(l.A,{className:"size-4"})})}function _({className:e,...t}){return(0,s.jsx)(n.wn,{"data-slot":"select-scroll-down-button",className:(0,o.cn)("flex cursor-pointer items-center justify-center py-1",e),...t,children:(0,s.jsx)(r.A,{className:"size-4"})})}}}]); |