1(self.webpackChunkhpv6=self.webpackChunkhpv6||[]).push([[1843],{91843:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return S}});var n=i(60436),a=(i(78350),i(26910),i(30237),i(96540)),l=i(27581),o=i(85692),r=i(40334),s=i(95712),d=i(5826),c=i(39704),p=i(12548);const m=l.default.div.withConfig({displayName:"SocietesListeLight__StyledDiv",componentId:"sc-l9rjas-0"})(["background:rgb(255,255,255);column-count:2;break-inside:avoid;page-break-inside:avoid;column-gap:120px;max-width:1200px;margin:50px auto 100px auto;@media (max-width:992px){width:95%;column-count:1;}"]),u=l.default.div.withConfig({displayName:"SocietesListeLight__Soc",componentId:"sc-l9rjas-1"})(["display:block;margin-bottom:50px;break-inside:avoid;page-break-inside:avoid;"]),g=l.default.a.withConfig({displayName:"SocietesListeLight__Img",componentId:"sc-l9rjas-2"})(["border:none !important;&>img{border:none;width:auto;max-width:160px;box-shadow:1px 3px 5px 0 rgba(0,0,0,.2);}"]),h=l.default.div.withConfig({displayName:"SocietesListeLight__Flex",componentId:"sc-l9rjas-3"})(["display:inline-block;"]),f=l.default.div.withConfig({displayName:"SocietesListeLight__FlexWrap",componentId:"sc-l9rjas-4"})(["display:flex;align-items:flex-start;flex:1 0 40%;gap:20px;flex-wrap:wrap;"]),v=l.default.div.withConfig({displayName:"SocietesListeLight__Titre",componentId:"sc-l9rjas-5"})(["&>h2{text-align:left;display:inline;font-size:25px !important;&::after{display:none;}}&>a{border:none !important;&:hover>svg{color:",";}}&>a>svg{color:",";font-size:16px;margin-right:10px;margin-bottom:6px;}"],e=>e.theme.bleuHP,e=>e.theme.beigeGraph),x=l.default.div.withConfig({displayName:"SocietesListeLight__Txt",componentId:"sc-l9rjas-6"})(["margin-top:20px;font-size:16px !important;max-height:",';overflow:hidden;position:relative;transition:max-height 0.4s ease;&::after{content:"";display:',";position:absolute;left:0;right:0;bottom:0;height:60px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 80%);pointer-events:none;}& *{font-size:16px !important;}@media (max-width:768px){max-height:",";}"],e=>e.$expanded?"800px":"400px",e=>!1===e.$expanded?"block":"none",e=>e.$expanded?"800px":"200px"),b=l.default.p.withConfig({displayName:"SocietesListeLight__Plus",componentId:"sc-l9rjas-7"})(["font-size:15px !important;font-weight:600;color:",";&>a{font-weight:bold;}"],e=>e.theme.bleuHP),w=(0,l.default)(d.A).withConfig({displayName:"SocietesListeLight__RowFilter",componentId:"sc-l9rjas-8"})(["border:1px solid ",";border-radius:5px;position:relative;justify-content:center;width:100%;max-width:1200px;margin:50px auto 80px auto;align-items:center;gap:10px;padding:20px;&> h2{text-align:center;font-size:40px !important;}&.bckg{background:rgb(255 255 255 / 98%);}@media (max-width:768px){width:95%;}"],e=>e.theme.bleuHP),E=l.default.button.withConfig({displayName:"SocietesListeLight__ShowMoreButton",componentId:"sc-l9rjas-9"})(["width:100%;border:none;padding:10px 0;background:none;color:",";&:hover{color:",";}"],e=>e.theme.rose,e=>e.theme.bleuHP);function y(e){var t,i,n,l,d,c;let{item:p,mounted:m,expanded:w,setContentRef:y,hasOverflow:S,onToggle:L}=e;const{ref:k,inView:_}=(0,o.Wx)({threshold:.15,triggerOnce:!0}),C=m?{opacity:_?1:0,transition:"opacity 0.55s ease"}:void 0;return a.createElement(u,{ref:m?k:void 0,style:C},a.createElement(f,null,(null==p||null===(t=p.image)||void 0===t?void 0:t.url)&&a.createElement(g,{href:null==p?void 0:p.slug},a.createElement("img",{src:null==p||null===(i=p.image)||void 0===i?void 0:i.url,alt:null==p||null===(n=p.image)||void 0===n?void 0:n.alt})),a.createElement(h,null,a.createElement(v,null,a.createElement("a",{href:null==p?void 0:p.slug,className:"icone-lien","aria-label":"Voir la fiche "+(null==p?void 0:p.Ste)},a.createElement(s.E,null)),a.createElement("h2",null,(0,r.Ay)(null==p?void 0:p.Ste)," - ",a.createElement("span",{className:"beige"},(0,r.Ay)(null==p?void 0:p.Metier)))),a.createElement(x,{ref:y,$expanded:w},(0,r.Ay)(null!==(l=null==p||null===(d=p.Notes)||void 0===d||null===(c=d.match(/<p[\s\S]*?>([\s\S]*?)<\/p>/))||void 0===c?void 0:c[0])&&void 0!==l?l:""),a.createElement(b,null,"Plus d'informations sur ",a.createElement("a",{href:null==p?void 0:p.slug},null==p?void 0:p.Ste))),S&&a.createElement(E,{onClick:L},w?"Voir moins":"Voir plus"))))}function S(e){let{dataPartenaires:t}=e;const{0:i,1:l}=(0,a.useState)({}),r=(0,a.useRef)([]),{0:s,1:d}=(0,a.useState)(!1);(0,a.useEffect)(()=>d(!0),[]);const u=(0,n.A)(new Set(null==t?void 0:t.map(e=>null==e?void 0:e.Metier).filter(e=>e).flatMap(e=>e.split(",").map(e=>e.trim())))).sort(),{0:g,1:h}=(0,a.useState)("0"),{0:f,1:v}=(0,a.useState)("0"),{0:x,1:b}=(0,a.useState)(10),{ref:E,inView:S}=(0,o.Wx)({threshold:0}),L=(t||[]).filter(e=>"0"===g&&"0"===f||("0"===g||(null==e?void 0:e.Metier.includes(g)))&&("0"===f||(null==e?void 0:e.Ste)===f));(0,a.useEffect)(()=>{S&&x<L.length&&b(e=>Math.min(e+10,L.length))},[S,L.length,x]),(0,a.useEffect)(()=>{b(10)},[g,f]),(0,a.useEffect)(()=>{const e={};r.current.forEach((t,i)=>{t&&t.scrollHeight>400&&(e[i]=!1)}),l(e)},[t]);return a.createElement(a.Fragment,null,a.createElement(w,null,a.createElement("h2",null,"Filtrer par métier"),a.createElement(c.A,{lg:5},a.createElement(p.K0,{id:"",name:"civ",type:"select",onChange:e=>{h(e.target.value)}},a.createElement("option",{value:"0"},"Tous les métiers"),u&&u.map((e,t)=>a.createElement("option",{key:t,value:e},e)))),a.createElement(c.A,{lg:5},a.createElement(p.K0,{id:"",name:"civ",type:"select",onChange:e=>{v(e.target.value)}},a.createElement("option",{value:"0"},"Tous nos partenaires"),t&&t.map((e,t)=>a.createElement("option",{key:t,value:null==e?void 0:e.Ste},null==e?void 0:e.Ste))))),a.createElement(m,null,L.slice(0,x).map((e,t)=>a.createElement(y,{key:t,item:e,mounted:s,expanded:i[t],setContentRef:e=>r.current[t]=e,hasOverflow:!!(r.current[t]&&r.current[t].scrollHeight>400),onToggle:()=>(e=>{l(t=>Object.assign({},t,{[e]:!t[e]}))})(t)}))),a.createElement("div",{ref:s?E:void 0,style:{height:"1px",visibility:x<L.length?"visible":"hidden"}}))}},95712:function(e,t,i){var n=i(75972).k5;e.exports.E=function(e){return n({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H4
100a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"}}]})(e)}}}]);
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.