"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5329],{3964:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(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"}]])},14174:(e,s,t)=>{t.r(s),t.d(s,{SearchSection:()=>m});var r=t(4208),a=t(58564),i=t(25729),n=t(82595),l=t(4023),c=t(49875),d=t(37820),o=t(13746),u=t(89342),p=t(24374),h=t(66987);function m(){let e=(0,d.U)(e=>e.search),s=(0,d.U)(e=>e.setSearch),t=(0,d.U)(e=>e.meta?.effective.search),m=(0,d.U)(e=>e.meta?.secrets?.web_search_providers),x=(0,p.ge)(e.web_search),v=(0,n.V)("search","suite_engine"),g=(0,n.V)("search","meilisearch_url"),f=(0,n.V)("search","meilisearch_api_key"),j=(0,n.V)("search","typesense_url"),b=(0,n.V)("search","typesense_api_key"),y=v?t?.suite_engine??e.suite_engine:e.suite_engine,_=g?t?.meilisearch_url??e.meilisearch_url:e.meilisearch_url,N=j?t?.typesense_url??e.typesense_url:e.typesense_url;return(0,r.jsx)(a.f,{title:"Moteur de recherche",description:"Index de recherche suite (mail, drive) et recherche web (contacts, UltiAI).",policySection:"search",children:(0,r.jsxs)(l.I,{columns:2,children:[(0,r.jsxs)(i.KT,{title:"Recherche web",description:(0,r.jsxs)(r.Fragment,{children:["Fournisseurs pour l'enrichissement IA contacts et le tool UltiAI"," ",(0,r.jsx)("code",{className:"rounded bg-muted px-1",children:"web_search"}),". Les utilisateurs peuvent surcharger cette config dans leurs r\xe9glages si l'imposition org. est d\xe9sactiv\xe9e."]}),children:[(0,r.jsx)(i.Kk,{title:"Imposer la config organisation",description:"Sinon, chaque utilisateur configure ses propres fournisseurs.",checked:e.enforce_org_search,onCheckedChange:e=>s({enforce_org_search:e})}),(0,r.jsx)(c.g,{value:x,onChange:e=>s({web_search:e}),providerSecrets:m,columns:1})]}),(0,r.jsxs)(i.KT,{title:"Recherche suite",description:"Moteur d'indexation pour la recherche globale (variables SEARCH_ENGINE c\xf4t\xe9 serveur).",hint:v?(0,r.jsx)(n.f,{section:"search",field:"suite_engine"}):null,children:[(0,r.jsx)(i.u8,{label:"Moteur",children:(0,r.jsxs)(u.l6,{value:y,disabled:v,onValueChange:e=>s({suite_engine:e}),children:[(0,r.jsx)(u.bq,{className:"h-9 w-full min-w-0",children:(0,r.jsx)(u.yv,{children:(0,r.jsx)(h.c,{brand:y,children:"postgres"===y?"PostgreSQL (full-text)":"meilisearch"===y?"Meilisearch":"Typesense"})})}),(0,r.jsxs)(u.gC,{children:[(0,r.jsx)(u.eb,{value:"postgres",children:(0,r.jsx)(h.c,{brand:"postgres",children:"PostgreSQL (full-text)"})}),(0,r.jsx)(u.eb,{value:"meilisearch",children:(0,r.jsx)(h.c,{brand:"meilisearch",children:"Meilisearch"})}),(0,r.jsx)(u.eb,{value:"typesense",children:(0,r.jsx)(h.c,{brand:"typesense",children:"Typesense"})})]})]})}),"meilisearch"===y?(0,r.jsxs)(i.wB,{columns:1,children:[(0,r.jsx)(i.u8,{label:"URL Meilisearch",hint:g?(0,r.jsx)(n.f,{section:"search",field:"meilisearch_url"}):void 0,children:(0,r.jsx)(o.p,{className:"h-9",value:_,disabled:g,onChange:e=>s({meilisearch_url:e.target.value})})}),(0,r.jsx)(i.u8,{label:"Cl\xe9 API",hint:f?(0,r.jsx)(n.f,{section:"search",field:"meilisearch_api_key"}):void 0,children:(0,r.jsx)(o.p,{className:"h-9",type:"password",value:e.meilisearch_api_key,disabled:f,onChange:e=>s({meilisearch_api_key:e.target.value}),placeholder:f?"D\xe9fini via MEILISEARCH_API_KEY":void 0})})]}):null,"typesense"===y?(0,r.jsxs)(i.wB,{columns:1,children:[(0,r.jsx)(i.u8,{label:"URL Typesense",hint:j?(0,r.jsx)(n.f,{section:"search",field:"typesense_url"}):void 0,children:(0,r.jsx)(o.p,{className:"h-9",value:N,disabled:j,onChange:e=>s({typesense_url:e.target.value})})}),(0,r.jsx)(i.u8,{label:"Cl\xe9 API",hint:b?(0,r.jsx)(n.f,{section:"search",field:"typesense_api_key"}):void 0,children:(0,r.jsx)(o.p,{className:"h-9",type:"password",value:e.typesense_api_key,disabled:b,onChange:e=>s({typesense_api_key:e.target.value}),placeholder:b?"D\xe9fini via TYPESENSE_API_KEY":void 0})})]}):null]})]})})}},24374:(e,s,t)=>{t.d(s,{Wo:()=>i,bA:()=>a,dv:()=>n,ge:()=>c,kF:()=>l,ot:()=>d});var r=t(47391);let a=[{type:"brave",label:"Brave Search",description:"API officielle Brave (X-Subscription-Token).",icon:(0,r.r)("brave"),docsUrl:"https://api.search.brave.com",requiresApiKey:!0,requiresBaseURL:!1,supportsCustomMapping:!1},{type:"bing",label:"Bing Web Search",description:"Azure Cognitive Services Bing Search v7.",icon:(0,r.r)("bing"),docsUrl:"https://learn.microsoft.com/azure/cognitive-services/bing-web-search/",requiresApiKey:!0,requiresBaseURL:!1,supportsCustomMapping:!1},{type:"duckduckgo",label:"DuckDuckGo",description:"Scraping HTML l\xe9ger, sans cl\xe9 API (best-effort).",icon:(0,r.r)("duckduckgo"),requiresApiKey:!1,requiresBaseURL:!1,supportsCustomMapping:!1},{type:"searxng",label:"SearXNG",description:"Instance SearXNG auto-h\xe9berg\xe9e (format JSON).",icon:(0,r.r)("searxng"),docsUrl:"https://docs.searxng.org/",requiresApiKey:!1,requiresBaseURL:!0,supportsCustomMapping:!1},{type:"custom",label:"API JSON personnalis\xe9e",description:"Endpoint GET JSON avec mapping des champs r\xe9sultats.",icon:(0,r.r)("custom"),requiresApiKey:!1,requiresBaseURL:!0,supportsCustomMapping:!0}];function i(e){return a.find(s=>s.type===e)??a[0]}function n(e="brave"){let s=i(e);return{id:crypto.randomUUID(),name:s.label,type:e,api_key:"",base_url:function(e){switch(e){case"bing":return"https://api.bing.microsoft.com/v7.0/search";case"searxng":return"https://searx.example.org";case"custom":return"https://api.example.com/search";default:return""}}(e),query_param:"q",auth_header:"bing"===e?"Ocp-Apim-Subscription-Key":"",results_path:"custom"===e?"results":"",title_field:"custom"===e?"title":"",url_field:"custom"===e?"url":"",description_field:"custom"===e?"description":""}}function l(e){let s=e.providers??[],t=e.default_provider_id??"";return t||1!==s.length||(t=s[0]?.id??""),t&&!s.some(e=>e.id===t)&&(t=s[0]?.id??""),{...e,default_provider_id:t,providers:s}}function c(e){let s=e?.providers?.length?e.providers.map(e=>({...n(e.type??"brave"),...e,type:e.type??"brave"})):[];return l({default_provider_id:e?.default_provider_id||s[0]?.id||"",providers:s})}function d(e,s){switch(e.type){case"brave":case"bing":return!!(e.api_key?.trim()||s?.apiKeyConfigured);case"duckduckgo":return!0;case"searxng":return!!e.base_url?.trim();case"custom":return!!(e.base_url?.trim()&&e.results_path?.trim()&&e.title_field?.trim()&&e.url_field?.trim());default:return!1}}},26159:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(43200).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},49875:(e,s,t)=>{t.d(s,{g:()=>f});var r=t(4208),a=t(91356),i=t(78606),n=t(81613),l=t(93497),c=t(61554),d=t(13746),o=t(19096),u=t(89342),p=t(85349),h=t(66987),m=t(4023),x=t(24374),v=t(58113);function g(e,s){return e.providers.map(e=>({provider:e,configured:(0,x.ot)(e,{apiKeyConfigured:s?.[e.id]?.configured})}))}function f({value:e,onChange:s,className:t,columns:j=2,providerSecrets:b}){let y=g(e,b),[_,N]=(0,a.useState)(null);function k(e){s((0,x.kF)(e))}function w(s,t){let r=[...e.providers];r[s]={...r[s],...t},k({...e,providers:r})}return(0,a.useEffect)(()=>{_&&!e.providers.some(e=>e.id===_)&&N(null)},[_,e.providers]),(0,r.jsxs)("div",{className:(0,v.cn)("w-full space-y-4",t),children:[e.providers.length>0?(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Fournisseur par d\xe9faut"}),(0,r.jsxs)(u.l6,{value:e.default_provider_id||e.providers[0]?.id||"__none__",onValueChange:s=>k({...e,default_provider_id:"__none__"===s?"":s}),children:[(0,r.jsx)(u.bq,{className:"h-9 w-full min-w-0",children:(0,r.jsx)(u.yv,{placeholder:"Choisir…"})}),(0,r.jsx)(u.gC,{children:y.map(({provider:e,configured:s})=>(0,r.jsx)(u.eb,{value:e.id,disabled:!s,children:(0,r.jsx)(h.c,{brand:e.type,icon:(0,x.Wo)(e.type).icon,suffix:s?void 0:" (incomplet)",children:e.name||(0,x.Wo)(e.type).label})},e.id))})]}),y.some(e=>!e.configured)?(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"Les fournisseurs incomplets restent visibles mais ne peuvent pas \xeatre s\xe9lectionn\xe9s par d\xe9faut."}):null]}):null,(0,r.jsx)(m.I,{columns:j,children:e.providers.map((s,t)=>{let a=(0,x.Wo)(s.type),l=b?.[s.id]?.configured??!1,m=(0,x.ot)(s,{apiKeyConfigured:l}),v=_===s.id,f=s.name||a.label||`Fournisseur ${t+1}`;return v?(0,r.jsxs)("div",{className:"w-full rounded-lg border border-border py-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2 px-4",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)(h.c,{brand:s.type,icon:a.icon,className:"text-sm font-medium",children:f}),m?l&&!(s.api_key??"").trim()?(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Cl\xe9 API enregistr\xe9e sur le serveur"}):null:(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Configuration incompl\xe8te"})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,r.jsx)(c.$,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(null),children:"Fermer"}),(0,r.jsx)(c.$,{type:"button",variant:"ghost",size:"icon","aria-label":"Supprimer le fournisseur",onClick:()=>{let s,r,a,i;return s=e.providers[t],_===s?.id&&N(null),r=e.providers.filter((e,s)=>s!==t),a=g({...e,providers:r},b),void((i=e.default_provider_id)===s?.id&&(i=a.find(e=>e.configured)?.provider.id??r[0]?.id??""),k({default_provider_id:i,providers:r}))},children:(0,r.jsx)(i.A,{className:"size-4"})})]})]}),(0,r.jsxs)("div",{className:"mt-4 space-y-4 border-t px-4 pt-4",children:[(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Type"}),(0,r.jsxs)(u.l6,{value:s.type,onValueChange:s=>{let r,a,i;return r=e.providers[t],a={...(0,x.dv)(s),id:r?.id??(0,x.dv)(s).id,name:(0,x.Wo)(s).label,api_key:r?.api_key??""},void((i=[...e.providers])[t]=a,k({...e,providers:i}))},children:[(0,r.jsx)(u.bq,{className:"h-9 w-full min-w-0",children:(0,r.jsx)(u.yv,{children:(0,r.jsx)(h.c,{brand:s.type,icon:a.icon,children:a.label})})}),(0,r.jsx)(u.gC,{children:x.bA.map(e=>(0,r.jsx)(u.eb,{value:e.type,children:(0,r.jsx)(h.c,{brand:e.type,icon:e.icon,children:e.label})},e.type))})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:a.description}),a.docsUrl?(0,r.jsxs)("a",{href:a.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline",children:["Documentation",(0,r.jsx)(n.A,{className:"size-3"})]}):null]}),(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Nom affich\xe9"}),(0,r.jsx)(d.p,{className:"h-9",value:s.name,onChange:e=>w(t,{name:e.target.value})})]}),a.requiresApiKey||s.api_key||l?(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"brave"===s.type?"Token API (X-Subscription-Token)":"Cl\xe9 API"}),(0,r.jsx)(d.p,{className:"h-9",type:"password",value:s.api_key??"",onChange:e=>w(t,{api_key:e.target.value}),autoComplete:"off",placeholder:l&&!(s.api_key??"").trim()?"•••••••• (laisser vide pour conserver)":"brave"===s.type?"BSA…":void 0})]}):null,a.requiresBaseURL||s.base_url?(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"URL de base"}),(0,r.jsx)(d.p,{className:"h-9",value:s.base_url??"",onChange:e=>w(t,{base_url:e.target.value}),placeholder:"searxng"===s.type?"https://searx.example.org":"https://api.example.com/search"})]}):null,"bing"===s.type||"searxng"===s.type||"custom"===s.type?(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"En-t\xeate d'authentification (optionnel)"}),(0,r.jsx)(d.p,{className:"h-9",value:s.auth_header??"",onChange:e=>w(t,{auth_header:e.target.value}),placeholder:"bing"===s.type?"Ocp-Apim-Subscription-Key":"Authorization"})]}):null,"custom"===s.type||"searxng"===s.type||s.query_param?(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Param\xe8tre de requ\xeate"}),(0,r.jsx)(d.p,{className:"h-9",value:s.query_param??"q",onChange:e=>w(t,{query_param:e.target.value})})]}):null,a.supportsCustomMapping?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Chemin JSON des r\xe9sultats"}),(0,r.jsx)(d.p,{className:"h-9",value:s.results_path??"",onChange:e=>w(t,{results_path:e.target.value}),placeholder:"results ou data.items"})]}),(0,r.jsxs)("div",{className:"grid min-w-0 gap-4",children:[(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Champ titre"}),(0,r.jsx)(d.p,{className:"h-9",value:s.title_field??"",onChange:e=>w(t,{title_field:e.target.value})})]}),(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Champ URL"}),(0,r.jsx)(d.p,{className:"h-9",value:s.url_field??"",onChange:e=>w(t,{url_field:e.target.value})})]}),(0,r.jsxs)(p.M,{children:[(0,r.jsx)(o.J,{className:"text-xs",children:"Champ description"}),(0,r.jsx)(d.p,{className:"h-9",value:s.description_field??"",onChange:e=>w(t,{description_field:e.target.value})})]})]}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["L'URL peut contenir ",(0,r.jsx)("code",{className:"rounded bg-muted px-1",children:"{query}"})," ","et ",(0,r.jsx)("code",{className:"rounded bg-muted px-1",children:"{count}"}),". Sinon, le param\xe8tre de requ\xeate est ajout\xe9 automatiquement."]})]}):null]})]},s.id):(0,r.jsxs)("div",{className:"flex w-full items-center justify-between gap-3 rounded-lg border border-border px-4 py-3",children:[(0,r.jsx)(h.c,{brand:s.type,icon:a.icon,className:"min-w-0 text-sm font-medium",children:f}),(0,r.jsx)(c.$,{type:"button",variant:"outline",size:"sm",onClick:()=>N(s.id),children:"Modifier"})]},s.id)})}),(0,r.jsxs)(c.$,{type:"button",variant:"outline",size:"sm",onClick:function(){let s=(0,x.dv)("brave");k({default_provider_id:e.default_provider_id||s.id,providers:[...e.providers,s]}),N(s.id)},children:[(0,r.jsx)(l.A,{className:"mr-2 size-4"}),"Ajouter un fournisseur"]})]})}},66987:(e,s,t)=>{t.d(s,{c:()=>l});var r=t(4208),a=t(84834),i=t(47391),n=t(58113);function l({brand:e,icon:s,children:t,className:c,iconClassName:d,suffix:o}){let u=s??(e?(0,i.r)(e):void 0);return(0,r.jsxs)("span",{className:(0,n.cn)("inline-flex min-w-0 items-center gap-2",c),children:[u?(0,r.jsx)(a.In,{icon:u,className:(0,n.cn)("size-4 shrink-0",d),"aria-hidden":!0}):null,(0,r.jsxs)("span",{className:"truncate",children:[t,o]})]})}},77510:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(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"}]])},78606:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(43200).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},81613:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(43200).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},82595:(e,s,t)=>{t.d(s,{V:()=>c,f:()=>l});var r=t(4208),a=t(77510),i=t(37820),n=t(54430);function l({section:e,field:s}){let t=(0,i.U)(e=>e.meta?.deployLocked);return(0,n.me)(t,e,s)?(0,r.jsxs)("p",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,r.jsx)(a.A,{className:"size-3 shrink-0","aria-hidden":!0}),"G\xe9r\xe9 par Docker Compose — modifier les variables d'environnement du d\xe9ploiement."]}):null}function c(e,s){let t=(0,i.U)(e=>e.meta?.deployLocked);return(0,n.me)(t,e,s)}},85349:(e,s,t)=>{t.d(s,{M:()=>i});var r=t(4208),a=t(58113);function i({children:e,className:s}){return(0,r.jsx)("div",{className:(0,a.cn)("space-y-2.5",s),children:e})}},89342:(e,s,t)=>{t.d(s,{TR:()=>m,bq:()=>p,eb:()=>x,gC:()=>h,l6:()=>d,mi:()=>v,s3:()=>o,yv:()=>u});var r=t(4208);t(91356);var a=t(29477),i=t(9519),n=t(35019),l=t(30758),c=t(58113);function d({...e}){return(0,r.jsx)(a.bL,{"data-slot":"select",...e})}function o({...e}){return(0,r.jsx)(a.YJ,{"data-slot":"select-group",...e})}function u({...e}){return(0,r.jsx)(a.WT,{"data-slot":"select-value",...e})}function p({className:e,size:s="default",variant:t="default",children:n,...l}){return(0,r.jsxs)(a.l9,{"data-slot":"select-trigger","data-size":s,"data-variant":t,className:(0,c.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"===t&&"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"===t&&"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:[n,(0,r.jsx)(a.In,{asChild:!0,children:(0,r.jsx)(i.A,{className:"size-4 opacity-50"})})]})}function h({className:e,children:s,position:t="popper",...i}){return(0,r.jsx)(a.ZL,{children:(0,r.jsxs)(a.UC,{"data-slot":"select-content",className:(0,c.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"===t&&"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:t,...i,children:[(0,r.jsx)(g,{}),(0,r.jsx)(a.LM,{className:(0,c.cn)("p-1","popper"===t&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),(0,r.jsx)(f,{})]})})}function m({className:e,...s}){return(0,r.jsx)(a.JU,{"data-slot":"select-label",className:(0,c.cn)("text-muted-foreground px-2 py-1.5 text-xs",e),...s})}function x({className:e,children:s,...t}){return(0,r.jsxs)(a.q7,{"data-slot":"select-item",className:(0,c.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),...t,children:[(0,r.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,r.jsx)(a.VF,{children:(0,r.jsx)(n.A,{className:"size-4"})})}),(0,r.jsx)(a.p4,{children:s})]})}function v({className:e,...s}){return(0,r.jsx)(a.wv,{"data-slot":"select-separator",className:(0,c.cn)("bg-border pointer-events-none -mx-1 my-1 h-px",e),...s})}function g({className:e,...s}){return(0,r.jsx)(a.PP,{"data-slot":"select-scroll-up-button",className:(0,c.cn)("flex cursor-pointer items-center justify-center py-1",e),...s,children:(0,r.jsx)(l.A,{className:"size-4"})})}function f({className:e,...s}){return(0,r.jsx)(a.wn,{"data-slot":"select-scroll-down-button",className:(0,c.cn)("flex cursor-pointer items-center justify-center py-1",e),...s,children:(0,r.jsx)(i.A,{className:"size-4"})})}},93497:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(43200).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])}}]);