1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73801,19178],{3792:function(e,t,a){a.d(t,{D8:function(){return u},Sh:function(){return m},to:function(){return c}});var s=a(65605),i=a(65042),n=a(29839),r=a(90187),l=a(12513),o=a(71468);let c="search",d=async e=>await (0,l.Y)("medecins/search?rpps=".concat(encodeURIComponent(e)),{method:"GET"}),m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,r.N)(e,t),n=(0,s.a)({queryKey:[c,"rpps",i],queryFn:()=>d(i),enabled:a&&e.length>0,staleTime:3e5,placeholderData:e=>e,retry:1});return{...n,isSearching:e!==i||n.isFetching||n.isLoading}},u=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.Y.ALL,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:200,u=!(arguments.length>6)||void 0===arguments[6]||arguments[6],E=arguments.length>7?arguments[7]:void 0,p=arguments.length>8?arguments[8]:void 0,_=arguments.length>9?arguments[9]:void 0,[N,I]=(0,i.useState)(d),h=(0,r.N)(e,m),g=(0,r.N)(t,m),f=[h].filter(Boolean).join(),x=(0,s.a)({queryKey:[c,N,g,f,a,l,E,p,_],queryFn:async e=>{let{signal:t}=e,s=await (0,n.pZ)({search:f,location:g,searchKind:N,page:a,limit:l,signal:t,lat:E,lng:p,options:_});if("total"in s){if(N===o.Y.ETS)return{etablissements:s,medecins:{data:[],total:0},specialites:{data:[],total:0},medicaments:{data:[],total:0}};if(N===o.Y.MEDECINS)return{etablissements:{data:[],total:0},medecins:s,specialites:{data:[],total:0},medicaments:{data:[],total:0}};if(N===o.Y.SPECIALITES)return{etablissements:{data:[],total:0},medecins:{data:[],total:0},specialites:s,medicaments:{data:[],total:0}};if(N===o.Y.MEDICAMENTS)return{etablissements:{data:[],total:0},medecins:{data:[],total:0},specialites:{data:[],total:0},medicaments:s}}return s},enabled:u,placeholderData:e=>e,retry:1});return x.isSearching=e!==h||t!==g||x.isFetching||x.isLoading,x.searchKind=N,x.setSearchKind=I,x}},96737:function(e,t,a){a.d(t,{n:function(){return l}});var s=a(65605),i=a(29839),n=a(90187),r=a(71468);let l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,l=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,d=(0,n.N)(e,a),m=(0,s.a)({queryKey:["search",r.Y.FIRST_APPOINTMENT,d,t,o,c],queryFn:async e=>{let{signal:a}=e;return await (0,i.pZ)({search:"",location:d,searchKind:r.Y.FIRST_APPOINTMENT,limit:c,page:o,signal:a,...t?{options:{speciality:t}}:void 0})},enabled:l,placeholderData:e=>e,retry:1});return m.isSearching=e!==d||m.isFetching||m.isLoading,m}},57394:function(e,t,a){var s=a(65605),i=a(12513);let n=async()=>await (0,i.Y)("public-pages/tous-les-avis/latest",{method:"GET"});t.ZP=()=>(0,s.a)({queryKey:["GET_LATEST_AVIS"],queryFn:()=>n(),enabled:!0})},8582:function(e,t,a){a.d(t,{SearchAll:function(){return C}});var s=a(99892),i=a(12207),n=a(18502),r=a(53259),l=a(79559),o=a(43180),c=a(54314),d=a(58780),m=a(65042),u=a(3792),E=a(96737),p=a(12689),_=a(54145),N=a(84977),I=a(5485),h=a(6257),g=a(59031),f=a(32336),x=a(30982),A=a(97635),v=a(31493),S=a(31298),T=a(71468),P=a(49295);let C=()=>{var e,t,a,C,R,b,O,M,y,L,j,G,D,w,U,B,Y,H,V,F;let k=(0,d.useRouter)(),Z=(0,m.useRef)(null),K=(0,m.useRef)(null),[q,z]=(0,m.useState)((null===(e=Z.current)||void 0===e?void 0:e.value)||""),[Q,W]=(0,m.useState)((null===(t=K.current)||void 0===t?void 0:t.value)||""),[X,J]=(0,m.useState)(null),{data:$,isSearching:ee,searchKind:et,setSearchKind:ea}=(0,u.D8)(q,Q,0,3),{data:es,isSearching:ei}=(0,E.n)(Q),{results:en,loading:er,isCurrentCityDetectionAvailable:el,getCurrentCity:eo,currentCity:ec,resetCurrentCity:ed}=(0,p.c)(Q),em={...$,firstAppointment:q||et===T.Y.ETS||et===T.Y.SPECIALITES?null:es};return(0,m.useEffect)(()=>{ec&&(W(ec.properties.label),ed())},[ec,ed]),(0,s.jsxs)("div",{className:"relative mx-auto flex max-w-4xl flex-col items-center gap-2 rounded-xl border border-gray-200 bg-white p-4 pt-2 shadow-lg",children:[(0,s.jsx)(_.K,{searchType:et,setSearchType:ea}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:flex-row sm:items-center",children:[(0,s.jsxs)("div",{className:"relative grow",children:[(0,s.jsx)(i.Z,{size:18,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),(0,s.jsx)(x.M,{ref:Z,placeholder:et===T.Y.ETS?"\xc9tablissement":et===T.Y.MEDECINS?"M\xe9decin":et===T.Y.MEDICAMENTS?"M\xe9dicament":et===T.Y.SPECIALITES?"Sp\xe9cialit\xe9":"\xc9tablissement, m\xe9decin, m\xe9dicament ou sp\xe9cialit\xe9","aria-label":"Rechercher un \xe9tablissement de sant\xe9 ou un professionnel",className:"pl-10",isLoading:ee,value:q,onChange:e=>z(e.target.value),onSelectedResult:e=>{e?"url"in e?window.open(e.url,"_blank"):"rpps"in e?k.push("".concat(P.i.PUBLIC_AVIS_MEDECIN,"/").concat((0,S.pZ)(e))):"identifier"in e?k.push("".concat(P.i.PUBLIC_AVIS_HOPITAL_CLINQUE,"/").concat((0,S.Nk)(e))):"cis"in e?k.push("".concat(P.i.PUBLIC_AVIS_MEDICAMENT,"/").concat(e.cis)):"label"in e&&z(e.label):k.push("".concat(P.i.PUBLIC_ETABLISSEMENTS,"?").concat(new
1URLSearchParams({text:q}).toString()))},data:[{data:et!==T.Y.MEDICAMENTS?[...null!==(D=null==em?void 0:null===(C=em.firstAppointment)||void 0===C?void 0:null===(a=C.waitTime)||void 0===a?void 0:a.filter(e=>{let{waitTime:t}=e;return t<36e5}))&&void 0!==D?D:[],...null!==(w=null==em?void 0:null===(R=em.firstAppointment)||void 0===R?void 0:R.immediate.slice(0,1).map(e=>({...e,immediate:!0})))&&void 0!==w?w:[],...null!==(U=null==em?void 0:null===(b=em.firstAppointment)||void 0===b?void 0:b.all.filter(e=>e.telehealth).slice(0,1))&&void 0!==U?U:[],...null!==(B=null==em?void 0:null===(O=em.firstAppointment)||void 0===O?void 0:O.all.filter(e=>!e.telehealth).slice(0,1).map(e=>({...e,immediate:!1})))&&void 0!==B?B:[]]:[],render:(e,t,a)=>(0,s.jsx)(N.F,{data:e,searchValue:q,handleSelect:t},a)},{sectionTitle:"Sp\xe9cialit\xe9s",data:null!==(Y=null==em?void 0:null===(M=em.specialites)||void 0===M?void 0:M.data)&&void 0!==Y?Y:[],render:(e,t)=>"label"in e?(0,s.jsx)(A.c,{data:e,searchValue:q,handleSelect:t},e.label):null},{sectionTitle:"M\xe9decins",data:null!==(H=null==em?void 0:null===(y=em.medecins)||void 0===y?void 0:y.data)&&void 0!==H?H:[],render:(e,t)=>"rpps"in e?(0,s.jsx)(f.D,{data:e,searchValue:q,handleSelect:t},e.rpps):null},{sectionTitle:(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:["\xc9tablissements",(0,s.jsx)(c.default,{href:P.i.PUBLIC_PALMARES,children:(0,s.jsxs)(v.z,{className:"flex items-center gap-2 text-hospitalidee-navy hover:bg-hospitalidee-navy",variant:"outline",size:"sm",children:[(0,s.jsx)(n.Z,{size:16}),"Palmar\xe8s",(0,s.jsx)(r.Z,{})]})})]}),data:(null==em?void 0:null===(L=em.specialites)||void 0===L?void 0:L.total)===0&&null!==(V=null==em?void 0:null===(j=em.etablissements)||void 0===j?void 0:j.data)&&void 0!==V?V:[],render:(e,t)=>"identifier"in e?(0,s.jsx)(I.Y,{data:e,searchValue:q,handleSelect:t},e.identifier):null},{sectionTitle:"M\xe9dicaments",data:null!==(F=null==em?void 0:null===(G=em.medicaments)||void 0===G?void 0:G.data)&&void 0!==F?F:[],render:(e,t)=>"cis"in e?(0,s.jsx)(g.w,{data:e,searchValue:q,handleSelect:t},e.cis):null}]})]}),et!==T.Y.MEDICAMENTS&&(0,s.jsxs)("div",{className:"relative grow",children:[(0,s.jsx)(l.Z,{size:18,className:"absolute left-3 top-1/2 basis-full -translate-y-1/2 text-gray-400 md:basis-1/2"}),(0,s.jsx)(x.M,{ref:K,placeholder:"Ville, r\xe9gion","aria-label":"Rechercher une ville ou une r\xe9gion",className:"pl-10",isLoading:er,onChange:e=>{W(e.target.value),J(null)},onSelectedResult:e=>{(null==e?void 0:e.name)&&K.current&&(K.current.value=e.name,J(e))},data:[{data:null!=en?en:[],render:(e,t)=>(0,s.jsx)(h.z,{data:e,searchValue:Q,handleSelect:t},e.id)}]}),(0,s.jsx)(v.z,{size:"icon",variant:"ghost",className:"absolute right-3 top-1/2 -translate-y-1/2 -scale-x-100 text-gray-400 hover:bg-hospitalidee-navy/5 hover:text-hospitalidee-navy",onClick:()=>eo(),children:(0,s.jsx)(o.Z,{})})]}),(0,s.jsx)(c.default,{href:et===T.Y.MEDICAMENTS?{pathname:P.i.PUBLIC_MEDICAMENTS,query:{search:q}}:{pathname:P.i.PUBLIC_RECHERCHE,query:{texte:q,localisation:null==X?void 0:X.name}},role:"button","aria-label":"Lancer la recherche",className:"w-full sm:w-auto",children:(0,s.jsx)(v.z,{size:"lg",className:"h-12 w-full rounded-md bg-hospitalidee-coral px-6 text-white shadow-md transition-all duration-200 hover:bg-red-600 hover:shadow-lg sm:w-auto","aria-label":"Lancer la recherche",children:"Rechercher"})})]})]})}},54145:function(e,t,a){a.d(t,{K:function(){return m}});var s=a(99892),i=a(62300),n=a(18502),r=a(25374),l=a(26508),o=a(1635),c=a(71468);let d="\n w-full sm:w-auto flex items-center justify-start sm:justify-center gap-2\n px-3 py-2 text-sm sm:text-base rounded-none\n data-[state=active]:border-x-2 data-[state=active]:border-x-hospitalidee-coral\n sm:data-[state=active]:border-x-0 sm:data-[state=active]:border-b-2 sm:data-[state=active]:border-b-hospitalidee-coral\n",m=e=>{let{searchType:t,setSearchType:a,fromDialog:m=!1}=e;return(0,s.jsx)(o.Tabs,{defaultValue:t,onValueChange:e=>a(e),className:"mb-3 mt-2",children:(0,s.jsxs)(o.TabsList,{className:" flex h-auto w-full flex-col gap-2 bg-transparent p-1 sm:flex-row sm:gap-4 [&_button]:data-[state=active]:bg-muted [&_button]:data-[state=active]:font-bold [&_button]:data-[state=active]:shadow-none ",children:[!m&&(0,s.jsxs)(o.TabsTrigger,{value:c.Y.ALL,"aria-label":"Tout rechercher",className:d,children:[(0,s.jsx)(i.Z,{className:"h-4 w-4 sm:h-5 sm:w-5"}),(0,s.jsx)("span",{children:"Tout rechercher"})]}),(0,s.jsxs)(o.TabsTrigger,{value:c.Y.ETS,"aria-label":"\xc9tablissement",className:d,children:[(0,s.jsx)(n.Z,{className:"h-4 w-4 sm:h-5 sm:w-5"}),(0,s.jsx)("span",{children:"\xc9tablissement"})]}),!m&&(0,s.jsxs)(o.TabsTrigger,{value:c.Y.MEDECINS,"aria-label":"M\xe9decin",className:d,children:[(0,s.jsx)(r.Z,{className:"h-4 w-4 sm:h-5 sm:w-5"}),(0,s.jsx)("span",{children:"M\xe9decin"})]}),(0,s.jsxs)(o.TabsTrigger,{value:c.Y.MEDICAMENTS,"aria-label":"M\xe9dicament",className:d,children:[(0,s.jsx)(l.Z,{className:"h-4 w-4 sm:h-5 sm:w-5"}),(0,s.jsx)("span",{children:"M\xe9dicament"})]})]})})}},84977:function(e,t,a){a.d(t,{F:function(){return m}});var s=a(99892),i=a(44905),n=a(81619),r=a(64599),l=a(60930),o=a(25214),c=a(31298);function d(e){let t={day:"2-digit",month:"2-digit"},a=new Date().toLocaleDateString("fr-FR",t),s=new Date(new Date().setDate(new Date().getDate()+1)).toLocaleDateString("fr-FR",t),i=new Date(e).toLocaleDateString("fr-FR",t),n=i===a,r=i===s,l=e?new Date(e).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"}):null;return{simple:n?l:r?"demain \xe0 ".concat(l):"".concat(i," \xe0 ").concat(l),full:n?"\xe0 ".concat(l):r?"demain \xe0 ".concat(l):"le ".concat(i)}}let m=e=>{let{data:t,handleSelect:a}=e;return"waitTime"in t?(0,s.jsx)(o.di,{value:"waiting-time-".concat(t.site),onSelect:()=>a(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:(0,s.jsxs)("div",{className:(0,
1c.cn)("flex w-full items-center gap-2",{"fill-[#08a6a0] text-[#08a6a0]":"maiia"===t.site,"fill-[#107aca] text-[#107aca]":"doctolib"===t.site,"fill-[#26a3a5] text-[#26a3a5]":"qare"===t.site}),children:[(0,s.jsx)(r.default,{src:"/logos/".concat(t.site,".svg"),className:(0,c.cn)("object-cover",{"mb-[4px]":"maiia"===t.site}),alt:t.site,width:40,height:40}),(0,s.jsx)("div",{className:"grow"}),(0,s.jsxs)(l.C,{className:(0,c.cn)("flex items-center gap-2",{"bg-[#08a6a0] hover:bg-[#08a6a0]":"maiia"===t.site,"bg-[#107aca] hover:bg-[#107aca]":"doctolib"===t.site,"bg-[#26a3a5] hover:bg-[#26a3a5]":"qare"===t.site}),children:[(0,s.jsx)(i.Z,{className:"size-4"}),t.waitTime<=0?"Consultation en sans rendez-vous":"".concat(Math.floor(t.waitTime/6e4)," minutes d'attente estim\xe9")]})]})}):(0,s.jsxs)(o.di,{value:t.name,onSelect:()=>a(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:[(0,s.jsx)(r.default,{src:"/logos/".concat(t.site,".svg"),className:(0,c.cn)("object-cover",{"mb-[4px]":"maiia"===t.site}),alt:t.site,width:40,height:40}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"flex items-center gap-2 text-start font-medium text-gray-900",children:t.name}),(0,s.jsx)("div",{className:"grow"}),t.immediate?(0,s.jsxs)(l.C,{className:"flex items-center gap-2",variant:"outline",children:[(0,s.jsx)(i.Z,{className:"size-4"}),"maintenant"]}):t.date?t.telehealth?(0,s.jsxs)(l.C,{variant:"outline",className:"flex items-center gap-2",children:[(0,s.jsx)(i.Z,{className:"size-4"}),d(t.date).simple]}):(0,s.jsxs)(l.C,{variant:"outline",className:"flex items-center gap-2",children:[(0,s.jsx)(n.Z,{className:"size-4"}),d(t.date).simple," - ",t.city]}):null]})})]})}},5485:function(e,t,a){a.d(t,{Y:function(){return l}});var s=a(99892),i=a(18502),n=a(57955),r=a(25214);let l=e=>{let{data:t,searchValue:a,handleSelect:l}=e;return(0,s.jsxs)(r.di,{value:t.identifier,onSelect:()=>l(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:[(0,s.jsx)(i.Z,{className:"h-4 w-4 text-hospitalidee-darknavy/75"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-start",children:[(0,s.jsx)("span",{className:"flex items-center gap-2 font-medium text-gray-900",children:t.raisonSociale}),a===t.identifier&&(0,s.jsx)(n.Z,{className:"h-4 w-4 text-green-600"}),(0,s.jsx)("div",{className:"grow"})]}),(0,s.jsx)("div",{className:"flex items-start text-sm text-gray-500",children:[t.ville,t.codePostal?"(".concat(t.codePostal,")"):""].filter(Boolean).join(" ")})]})]})}},6257:function(e,t,a){a.d(t,{z:function(){return c}});var s=a(99892),i=a(45623),n=a(13664),r=a(69858),l=a(57955),o=a(25214);let c=e=>{let{data:t,searchValue:a,handleSelect:c}=e;return(0,s.jsxs)(o.di,{value:t.id,onSelect:()=>c(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:["region"===t.type&&(0,s.jsx)(i.Z,{className:"h-4 w-4 text-hospitalidee-darknavy/75"}),"department"===t.type&&(0,s.jsx)(n.Z,{className:"h-4 w-4 text-hospitalidee-darknavy/75"}),"city"===t.type&&(0,s.jsx)(r.Z,{className:"h-4 w-4 text-hospitalidee-darknavy/75"}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-start",children:[(0,s.jsxs)("span",{className:"flex w-full items-center justify-between gap-2 font-medium text-gray-900",children:[t.name," ","city"===t.type?" - ".concat(t.postcode):"","region"===t.type&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"R\xe9gion"}),"department"===t.type&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"D\xe9partement"}),"city"===t.type&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"Ville"})]}),a===t.id&&(0,s.jsx)(l.Z,{className:"h-4 w-4 text-green-600"}),(0,s.jsx)("div",{className:"grow"})]})})]})}},59031:function(e,t,a){a.d(t,{w:function(){return l}});var s=a(99892),i=a(26508),n=a(57955),r=a(25214);let l=e=>{let{data:t,searchValue:a,handleSelect:l}=e;return(0,s.jsxs)(r.di,{value:t.id,onSelect:()=>l(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:[(0,s.jsx)(i.Z,{className:"h-4 w-4 text-hospitalidee-darknavy/75"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-start",children:[(0,s.jsx)("span",{className:"flex items-center gap-2 font-medium text-gray-900",children:t.name}),a===t.name&&(0,s.jsx)(n.Z,{className:"h-4 w-4 text-green-600"})]}),t.activeSubstance&&(0,s.jsx)("div",{className:"text-start text-sm text-gray-500",children:t.activeSubstance}),t.dosage||t.laboratoire?(0,s.jsx)("div",{className:"text-start text-xs text-gray-400",children:[t.dosage,t.laboratoire].filter(
1Boolean).join(" - ")}):null]})]})}},32336:function(e,t,a){a.d(t,{D:function(){return o}});var s=a(99892),i=a(25374),n=a(57955),r=a(25214),l=a(31298);let o=e=>{var t,a,o;let{data:c,searchValue:d,handleSelect:m,showRPPS:u=!1,showArchived:E=!1}=e,p=null===(t=c.medicalData)||void 0===t?void 0:t.map(e=>{var t,a;return(null===(t=e.speciality)||void 0===t?void 0:t.specialist)||(null===(a=e.speciality)||void 0===a?void 0:a.label)}).filter(Boolean),_=c.address,N=null===(a=c.etablissementRefs)||void 0===a?void 0:a.at(0);return!E&&(null===(o=c.archived)||void 0===o?void 0:o.isArchived)?null:(0,s.jsxs)(r.di,{value:c.rpps,onSelect:()=>m(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:[(0,s.jsx)(i.Z,{className:(0,l.cn)("h-4 w-4 text-hospitalidee-darknavy/75",{"text-orange-300":E&&c.archived})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-start",children:[(0,s.jsx)("span",{className:"flex items-center gap-2 font-medium text-gray-900",children:[c.firstName,c.name].filter(Boolean).join(" ")}),d===c.rpps&&(0,s.jsx)(n.Z,{className:"h-4 w-4 text-green-600"}),(0,s.jsx)("div",{className:"grow"}),u?(0,s.jsxs)("div",{className:"text-xs tabular-nums text-gray-500",children:["RPPS:"," ",c.rpps.split(d).map((e,t)=>(0,s.jsxs)("span",{children:[0!==t?(0,s.jsx)("span",{className:"font-bold text-hospitalidee-darknavy",children:d},t):null,e]},t))]}):null]}),p&&p.length>0?(0,s.jsx)("div",{className:"flex items-start text-sm text-gray-500",children:p.filter(Boolean).join(", ")}):null,_?(0,s.jsx)("div",{className:"flex items-start text-sm text-gray-500",children:[_.city,_.postcode?"(".concat(_.postcode,")"):""].filter(Boolean).join(" ")}):N?(0,s.jsx)("div",{className:"flex items-start text-sm text-gray-500",children:[[N.ville,N.codePostal?"(".concat(N.codePostal,")"):void 0].filter(Boolean).join(" "),N.raisonSociale].filter(Boolean).join(" - ")}):null]})]})}},30982:function(e,t,a){a.d(t,{M:function(){return c}});var s=a(99892),i=a(68498),n=a(65042),r=a(25214),l=a(78641),o=a(31298);let c=(0,n.forwardRef)((e,t)=>{var a;let{data:c,isLoading:d,variant:m="default",onSearch:u,onSelectedResult:E,...p}=e,[_,N]=n.useState(null),[I,h]=n.useState(!1),g=n.useRef(null),f=p.value||(t&&"current"in t?null===(a=t.current)||void 0===a?void 0:a.value:null),x=c.length>0,A=f&&f.length>0,v=e=>{null==E||E(e),N(e),h(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.I,{ref:t,type:"text",...p,onChange:e=>{var t;let a=e.target.value;N(null),h(a.length>0),null===(t=p.onChange)||void 0===t||t.call(p,e)},onFocus:e=>{var t;h(!0),null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:e=>{var t;setTimeout(()=>{h(!1)},200),null===(t=p.onBlur)||void 0===t||t.call(p,e)},onKeyDown:e=>{I&&g.current&&["ArrowDown","ArrowUp","Enter","Escape","Tab"].includes(e.key)&&(e.preventDefault(),g.current.dispatchEvent(new KeyboardEvent("keydown",{key:e.key,code:e.code,keyCode:e.keyCode,which:e.which,bubbles:!0,cancelable:!0})))},className:(0,o.cn)("bg-white ring-0 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0","default"===m&&"h-12 w-full rounded-md border-2 border-gray-200 pl-10 text-base placeholder:text-gray-500 focus:border-hospitalidee-coral focus:outline-none focus:ring-hospitalidee-coral","header"===m&&"h-10 w-full rounded-full border-0 bg-transparent pl-10 text-sm transition-all duration-300 placeholder:text-gray-400 focus:border-0 focus:ring-0","etsSearch"===m&&"pl-10 pr-4 focus:ring-2 focus:ring-offset-2","signup"===m&&{"pl-10 pr-4 focus:ring-2 focus:ring-offset-2":!0,"border-green-500 text-green-700 ring-green-500":_,"border-red-500 text-red-700 ring-red-500":A&&!x&&!d},p.className)}),(0,s.jsx)("div",{className:(0,o.cn)("absolute left-0 right-0 top-full z-50 mt-1 rounded-md border border-gray-200 bg-white shadow-lg",{hidden:!I}),children:(0,s.jsx)(r.mY,{shouldFilter:!1,ref:g,children:(0,s.jsxs)(r.e8,{className:"max-h-[550px]",children:[(0,s.jsx)(r.rb,{children:(0,s.jsx)("div",{className:"flex items-center justify-center gap-2 py-3 text-center text-sm text-muted-foreground",children:d&&c.every(e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.length)<=0})?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.Z,{className:"animate-spin",size:16}),(0,s.jsx)("span",{children:"Recherche en cours..."})]}):"Aucun r\xe9sultat trouv\xe9."})}),c.map((e,t)=>{var a;return e.data.length>0||e.onSeeMore?(0,s.jsxs)(r.fu,{className:(0,o.cn)({"pointer-events-none select-none opacity-50":d}),children:[e.sectionTitle?(0,s.jsx)("div",{className:"flex items-center gap-2 p-3",children:e.sectionTitle}):null,e.data.map((t,a)=>e.render(t,()=>v(t),a)),e.onSeeMore?(0,s.jsx)(r.di,{value:"see-more-".concat(t),onSelect:e.onSeeMore,className:"font-sm justify-center px-3 text-xs text-muted-foreground hover:cursor-pointer data-[selected=true]:bg-hospitalidee-navy/5 data-[selected=true]:text-muted-foreground",children:null!==(a=e.seeMore)&&void 0!==a?a:"voir plus"}):null]},t):null})]})})})]})});c.displayName="SearchInput"},97635:function(e,t,a){a.d(t,{c:function(){return l}});var s=a(99892),i=a(81619),n=a(57955),r=a(25214);let l=e=>{let{data:t,searchValue:a,handleSelect:l}=e;return(0,s.jsxs)(r.di,{value:t.label,onSelect:()=>l(),className:"flex items-center gap-4 border-b border-gray-100 p-3 last:border-0 hover:cursor-pointer hover:bg-gray-50 data-[selected=true]:bg-hospitalidee-navy/5",children:[(0,s.jsx)(i.Z,{className:"h-4 w-4 text-hospitalidee-darknavy/75"}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-start",children:[(0,s.jsx)("span",{className:"flex items-center gap-2 font-medium text-gray-900",children:t.label}),a===t.label&&(0,s.jsx)(n.Z,{className:"h-4 w-4 text-green-600"})]})})]})}},97631:function(e,t,a){a.d(t,{Ol:function(){return l},SZ:function(){return c},Zb:function(){return r},aY:function(){return d},eW:function(){return m},ll:function(){return o}});var s=a(99892),i=a(65042),n=a(31298);let r=i.forwardRef((e,t)=>
1{let{className:a,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",a),...i})});r.displayName="Card";let l=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...i})});l.displayName="CardHeader";let o=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",a),...i})});o.displayName="CardTitle";let c=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",a),...i})});c.displayName="CardDescription";let d=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",a),...i})});d.displayName="CardContent";let m=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",a),...i})});m.displayName="CardFooter"},25214:function(e,t,a){a.d(t,{di:function(){return E},e8:function(){return d},fu:function(){return u},mY:function(){return o},rb:function(){return m},sZ:function(){return c}});var s=a(99892),i=a(25955),n=a(12207),r=a(65042);a(70789);var l=a(31298);let o=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.mY,{ref:t,className:(0,l.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...n})});o.displayName=i.mY.displayName;let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,s.jsx)(n.Z,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,s.jsx)(i.mY.Input,{ref:t,className:(0,l.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...r})]})});c.displayName=i.mY.Input.displayName;let d=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.mY.List,{ref:t,className:(0,l.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...n})});d.displayName=i.mY.List.displayName;let m=r.forwardRef((e,t)=>(0,s.jsx)(i.mY.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));m.displayName=i.mY.Empty.displayName;let u=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.mY.Group,{ref:t,className:(0,l.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",a),...n})});u.displayName=i.mY.Group.displayName,r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.mY.Separator,{ref:t,className:(0,l.cn)("-mx-1 h-px bg-border",a),...n})}).displayName=i.mY.Separator.displayName;let E=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.mY.Item,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",a),...n})});E.displayName=i.mY.Item.displayName},1635:function(e,t,a){a.d(t,{Tabs:function(){return l},TabsContent:function(){return d},TabsList:function(){return o},TabsTrigger:function(){return c}});var s=a(99892),i=a(98570),n=a(65042),r=a(31298);let l=i.fC,o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.aV,{ref:t,className:(0,r.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...n})});o.displayName=i.aV.displayName;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.xz,{ref:t,className:(0,r.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...n})});c.displayName=i.xz.displayName;let d=n.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,s.jsx)(i.VY,{ref:t,className:(0,r.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...n})});d.displayName=i.VY.displayName},49295:function(e,t,a){a.d(t,{i:function(){return s}});let s={HOME:"/",BASE_URL:"https://hospitalidee.fr",SITEMAP_BASE_URL:"https://www.hospitalidee.fr",BLOG:"/blog",POURQUOI_SINSCRIRE:"/pourquoi-s-inscrire",LOGIN:"/login",CREATE_ACCOUNT:"/creer-compte",CREATE_ACCOUNT_MEDECIN:"/creer-compte/medecin",CREATE_ACCOUNT_ETS:"/creer-compte/gestionnaire_ets",CREATE_ACCOUNT_PATIENT:"/creer-compte/patient",CREATE_ACCOUNT_CONFIRMATION:"/creer-compte/confirmation",INVITED_ACCOUNT_CONFIRMATION:"/validation-invitation/confirmation",FORGOT_PASSWORD:"/mdp-oublie",Q0_FORM_PAGE:"/creer-compte/patient/:patientId/q0",PENDING_VALIDATION_PAGE:"/pending-validation",HOSPITALITEE_VS_GOOGLE:"/hospitalidee-vs-google",RELATION_PATIENT_MEDECIN:"/relation-patient-medecin",CHECKOUT_PLANS_PAGE:"/checkout/plans",CHECKOUT_SUMMARY_PAGE:"/checkout/summary",CHECKOUT_SUCCESS_PAGE:"/checkout/success",CHECKOUT_SUCCESS_FREE_PAGE:"/checkout/success-free",CHECKOUT_CANCEL_PAGE:"/checkout/cancel",SPECIALITE_HOMEPAGE:"/specialites",PATIENT_HOMEPAGE:"/patient",PATIENT_STUDIES_PAGE:"/patient/etudes",PATIENT_EVALUATIONS_PAGE:"/patient/mes-evaluations",PATIENT_RIGHTS_PAGE:"/patient/mes-droits",PATIENT_MY_REVIEWS_PAGE:"/patient/mes-avis",PATIENT_MY_INFORMATIONS_PAGE:"/patient/mon-compte",PATIENT_ANNOUNCEMENTS_PAGE:"/patient/annonces",MEDECIN_HOMEPAGE:"/medecin",MEDECIN_STUDIES_PAGE:"/medecin/etudes",MEDECIN_MY_PROFILE_PAGE:"/medecin/mon-profil",MEDECIN_MY_TOOLS_PAGE:"/medecin/mes-outils",MEDECIN_PATIENTS_PAGE:"/medecin/patients",MEDECIN_SETTINGS_PAGE:"/medecin/parametres",MEDECIN_SUBSCRIPTION_PAGE:"/medecin/abonnement",MEDECIN_PARTNERSHIP_PAGE:"/medecin/partenariats",MEDECIN_QR_CODE_PAGE:"/medecin/qr-code",MEDECIN_ANALYZE_PAGE:"/medecin/analyser",MEDECIN_REVIEWS_PAGE:"/medecin/avis",MEDECIN_COLLECT_REVIEWS_PAGE:"/medecin/collecter-des-avis",MEDECIN_REFERAL_PAGE:"/medecin/parrainage",DELEGATION_HOMEPAGE:"/medecin",PROMOTEUR_HOMEPAGE:"/promoteur",PROMOTEUR_ETABLISSEMENTS:"/promoteur/etablissements",PROMOTEUR_MEDECINS:"/promoteur/medecins",GESTIONNAIRE_ASSOCIATION_HOMEPAGE:"/gestionnaire_asso",GESTIONNAIRE_ASSOCIATION_PROFILE_PAGE:"/gestionnaire_asso/profile",GESTIONNAIRE_ASSOCIATION_PATIENTS_PAGE:"/gestionnaire_asso/patients",ADMIN_HOMEPAGE:"/admin",ADMIN_FORM_PAGE:"/admin/formulaires",ADMIN_GESTION_PAGE:"/admin/gestion",ADMIN_GESTION_MEDECIN_PAGE:"/admin/gestion/medecin",ADMIN_GESTION_PRO_PAGE:"/admin/gestion/pro",ADMIN_GESTION_ETS_PAGE:"/admin/gestion/gestionnaire_ets",MODERATION_AVIS_MEDECIN_PAGE:"/admin/avis/medecin",MODERATION_AVIS_PRO_PAGE:"/admin/avis/pro",MODERATION_AVIS_ETS_PAGE:"/admin/avis/ets",MODERATION_AVIS_MEDICAMENT_PAGE:"/admin/avis/medicament",MODERATION_AVIS_MEDICAMENT_PATIENT_PAGE:"/admin/avis/medicament-patient",MODERATION_AVIS_MEDICAMENT_MEDECIN_PAGE:"/admin/avis/medicament-medecin",ADMIN_PROS_PAGE:"/admin/pros",ADMIN_MEDECINS_PAGE:"/admin/medecins",ADMIN_MEDECIN_AMBASSADOR_QUESTIONS_PAGE:"/admin/medecins-questions",ADMIN_MIGRATION_SPECIALITES_PAGE:"/admin/migration-specialites",ADMIN_DATA_GESTURE:"/admin/data",ADMIN_CUSTOMERS_SUGGESTIONS_PAGE:"/admin/suggestions-utilisateurs",ADMIN_PARTNERSHIP_PAGE:"/admin/partenariats",ADMIN_DEMANDES_RATTACHEMENT_PAGE:"/admin/demandes-rattachement",ADMIN_SIGNALEMENTS:"/admin/signalements",GESTIONNAIRE_SDS_HOMEPAGE:"/gestionnaire_sds",GESTIONNAIRE_SDS_SUPPORT_CARE:"/gestionnaire_sds/soins-de-support",GESTIONNAIRE_SDS_ADD_SUPPORT_CARE:"/gestionnaire_sds/ajouter-un-soin-de-support",PRO_HOMEPAGE:"/pro",PRO_ADD_CLIENT:"/pro/ajouter-client",PRO_ADD_SESSION:"/pro/ajouter-compte-rendu-seance",PRO_ADD_PROGRAM:"/pro/ajouter-programme",PRO_CLIENT:"/pro/clients",PRO_REVIEWS:"/pro/mes-avis",PRO_SUBSCRIPTION_PAGE:"/pro/abonnement",PRO_MY_PROFILE_PAGE:"/pro/mon-profil",PRO_CLIENTS_PAGE:"/pro/gestion-clients",PRO_PARTNERSHIP_PAGE:"/pro/partenariats",GESTIONNAIRE_ETS_HOMEPAGE:"/gestionnaire_ets",GESTIONNAIRE_ETS_CREATE_SUPPORT_CARE:"/gestionnaire_ets/soins-de-support/creer",GESTIONNAIRE_ETS_SUPPORT_CARE:"/gestionnaire_ets/soins-de-support",GESTIONNAIRE_ETS_MY_PROFILE_PAGE:"/gestionnaire_ets/profil",GESTIONNAIRE_ETS_REVIEWS_PAGE:"/gestionnaire_ets/avis",GESTIONNAIRE_ETS_FLUX_PAGE:"/gestionnaire_ets/flux",GESTIONNAIRE_ETS_SUBSCRIPTION_PAGE:"/gestionnaire_ets/abonnement",GESTIONNAIRE_ETS_PARTNERSHIP_PAGE:"/gestionnaire_ets/partenariats",GESTIONNAIRE_ETS_QR_CODE_PAGE:"/gestionnaire_ets/qr-code",GESTIONNAIRE_ETS_DEMANDES_RATTACHEMENT_PAGE:"/gestionnaire_ets/demandes-rattachement",GESTIONNAIRE_ETS_ETABLISSEMENT_PROFILE:"/gestionnaire_ets/etablissement-profile",GESTIONNAIRE_ETS_ETABLISSEMENT_REPORTS:"/gestionnaire_ets/bilan",GESTIONNAIRE_ETS_PATIENTS:"/gestionnaire_ets/patients",GESTIONNAIRE_ETS_SETTINGS_PAGE:"/gestionnaire_ets/parametres",PUBLIC_HOMEPAGE:"/",PUBLIC_PALMARES:"/palmares",PUBLIC_ETABLISSEMENTS:"/etablissements",PUBLIC_AVIS_HOPITAL_CLINQUE:"/avis-hopital-clinique",PUBLIC_TOUS_LES_AVIS:"/tous-les-avis-sante",PUBLIC_GROUPS:"/groupes",PUBLIC_ETABLISSEMENTS_TYPE:"/etablissements?type=",PUBLIC_ETABLISSEMENTS_HOPITAUX:"/etablissements/hopitaux",PUBLIC_ETABLISSEMENTS_CLINIQUES:"/etablissements/cliniques",PUBLIC_ETABLISSEMENTS_MATERNITES:"/etablissements/maternites",PUBLIC_REACTIVATION_REQUIRED:"/reactivation-required",PUBLIC_CONFIRMATION_REVIEW:"/avis/confirmation",PUBLIC_ACCOUNT_NOT_VALIDATED:"/validation-invitation/not-validated",PUBLIC_ACCOUNT_PENDING:"/validation-invitation/pending",PUBLIC_ESATIS_INFOS:"/esatis-info",PUBLIC_MEDECINS:"/medecins",PUBLIC_MEDICAMENTS:"/medicaments",PUBLIC_AVIS_MEDECIN:"/avis-medecin",PUBLIC_AVIS_MEDICAMENT:"/avis-medicament",PUBLIC_AVIS_PSNC:"/avis-practicien-medecine-douce",PUBLIC_RECHERCHE:"/recherche",PUBLIC_SPECIALITES:"/specialites",PUBLIC_PROS:"/pros",PUBLIC_GUIDES:"/guides",PUBLIC_DOSSIERS:"/dossiers",PUBLIC_GUIDE_CHOISIR_CENTRE_ONCOLOGIE_PARIS:"/guides/choisir-centre-oncologie-paris",PUBLIC_GUIDE_SOINS_DE_SUPPORT_EN_CANCEROLOGIE:"/guides/soins-de-support-en-cancerologie",PUBLIC_GUIDE_PREMIERE_CONSULTATION_PEDIATRE:"/guides/premiere-consultation-pediatre",PUBLIC_DOSSIER_HEMATOLOGIE:"/dossiers/hematologie",PUBLIC_COMITE_STRATEGIQUE:"/comite-strategique",PUBLIC_PRISE_RDV:"/prise-rdv",PUBLIC_ABOUT:"/about",PUBLIC_REPORT_ERROR:"/signaler-erreur",PUBLIC_MARKETING_OFFRES:"/offres",PUBLIC_MARKETING_MEDECIN:"/medecins-rejoignez-hospitalidee",PUBLIC_MARKETING_ETS:"/etablissements-pilotez-qualite",PUBLIC_MARKETING_CPTS:"/cpts",PUBLIC_MARKETING_MSP:"/msp",PUBLIC_MARKETING_MYCELIUM:"/mycelium",PUBLIC_MARKETING_RETOURS_PATIENT:"/retours-patients",PUBLIC_RECHERCHE_PLATON:"/recherche-platon",PUBLIC_MEDECIN_AMBASSADEUR:"/medecins-ambassadeurs",PUBLIC_GOOGLE_AIME_HOSPITALIDEE:"/google-aime-hospitalidee",PUBLIC_GROUP_ELSAN:"/groupes/groupe-elsan",PUBLIC_GROUP_RAMSAY:"/groupes/groupe-ramsay",PUBLIC_GROUP_VIVALTO:"/groupes/groupe-vivalto",PUBLIC_GROUP_ALMAVIVA_SANTE:"/groupes/groupe-almaviva-sante",PUBLIC_GROUP_UNICANCER:"/groupes/unicancer",PUBLIC_GROUP_APHP:"/groupes/groupe-aphp",PUBLIC_MEMBER_LOIC_RAYNAL:"/membres/loic-raynal",PUBLIC_MEMBER_LOIC_YSEBAERT:"/membres/loic-ysebaert",PUBLIC_MEMBER_ELISE_DEBIES:"/membres/elise-debies",PUBLIC_MEMBER_EMERIC_LEBON:"/membres/emeric-lebon",CONTRIBUER_A_LA_RECHERCHE:"/contribuer-a-la-recherche",CGU:"/cgu",CGS:"/cgs",ADS_AND_PARTNERSHIPS:"/publicites-et-partenariats",RGPD_CONFORMITE_PRO:"/transparence-conformite-rgpd-pro",COMPRENDRE_AGREMENT_APE:"/comprendre-agrement-ape",MENTIONS_LEGALES:"/mentions-legales",CHARTE_ETHIQUE:"/charte-ethique",CHARTE_MODERATION:"/charte-moderation",CODE_DEONTOLOGIE:"/code
1-deontologie",CHARTE_PSNC:"/charte-psnc",DIRIGEANTS:"https://hospitalidee.hubspotpagebuilder.com/dirigeants-0-1",POLITIQUE_CONFIDENTIALITE:"/politique-de-confidentialite",ENGAGEMENT_PRATICIEN_PSNC:"/charte-psnc",FACEBOOK:"https://www.facebook.com/Hospitalidee/",TWITTER:"https://twitter.com/hospitalidee",LINKEDIN:"https://www.linkedin.com/company/hospitalid\xe9e/",CALENDLY_LOIC:"https://calendly.com/hospitalidee"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.