1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5155],{16045:(e,i,t)=>{"use strict";t.d(i,{A:()=>E});var n=t(6029),l=t(73492),s=t(21841),o=t(34245),u=t(96930),r=t(17325),d=t(68484),a=t(56375),c=t(25854),v=t(5835),p=t(37890),k=t(76448),x=t(68642),b=t(72579),h=t(40334),C=t(55729);let E=e=>{var i,t,E;let{structure:f,eventId:m,isEmbedded:_=!1,onEventClick:j,onConversationClick:g,isPublicExponentDisplay:y=!1}=e,{getFileUrl:A}=(0,h.Co)(),w=(0,C.useMemo)(()=>({...f,products:f.products.filter(e=>m?e.events.find(e=>e.id===m):e)}),[f,m]),{data:N}=(0,l.wpP)(null!=(i=null==w?void 0:w.id)?i:""),{data:P}=(0,l.ncL)(m,null==w?void 0:w.id),S=(0,r.XAZ)(null==P?void 0:P.exhibitorProfilesPack),{mutate:L}=(0,l.xd2)(),[M,D]=(0,C.useState)(null!=(t=null==w?void 0:w.isLiked)&&t),{isAuthenticated:F}=(0,p.u)(),{openActivityList:I,closeActivityList:O,selectedActivities:R}=(0,k.F)(),{toast:G}=(0,o.dj)(),{track:X}=(0,x.A)();(0,C.useEffect)(()=>{D(w.isLiked)},[w.isLiked]);let{onWebsiteClick:z,onSocialsClick:T,handleConversationClick:W}=((e,i,t,n,l)=>{let o=i&&!t?(0,v.ax)(e.id,i,l,s.GMD.openExponentWebsite):void 0;return{onWebsiteClick:o,onSocialsClick:i&&!t?(0,v.ax)(e.id,i,l,s.GMD.openExponentSocials):void 0,handleConversationClick:()=>{!t&&e.adminId&&(i&&(0,v.ax)(e.id,i,l,s.GMD.openExponentConversation)(),null==n||n())}}})(w,m,_,g,X),q=m&&j?()=>j(m):void 0,K=(0,C.useMemo)(()=>{var e;return null!=(e=null==w?void 0:w.activities.filter(e=>R.some(i=>i.activityId===e.id)))?e:[]},[null==w?void 0:w.activities,R]);if(!w)return(0,n.jsx)(u.R,{});let U=null!=(E=w.customStructureAppearance)?E:s.KSE;return(0,n.jsxs)(a.R,{isPublicExponentDisplay:y,children:[(0,n.jsx)("div",{className:"absolute -z-20 size-full",style:{opacity:U.filterOpacity/100,backgroundColor:(0,r.oF5)(U.backgroundColor)}}),(0,n.jsx)(d.Ay,{isLiked:M,toggleLike:()=>{if(!F)return void b.A.setModalVisible(!0);let e=!M;L({structureId:w.id,like:e},{onSuccess:()=>{D(e),G({title:e?"Favoris ajout\xe9":"Favoris supprim\xe9"})}})},structure:w,onConversationClick:W,onWebsiteClick:z,onSocialsClick:T,customAppearance:U,isEmbedded:_,getFileUrl:A,onEventCardClick:_?j:q,onOpenActivityList:_?void 0:I,participations:null!=N?N:[],exhibitorPackNumber:m?S:void 0}),0!==K.length?(0,n.jsx)(c.e,{open:0!==K.length,setOpen:e=>!e&&O(),activities:K,isEmbedded:_}):null]})}},35441:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/exponent/share/[slug]",function(){return t(89831)}])},89831:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>r});var n=t(6029),l=t(73492),s=t(96930),o=t(16045),u=t(81278);t(55729);let r=()=>{let e=(0,u.useRouter)(),{slug:i,eventId:t}=e.query,{data:r,isLoading:d}=(0,l.lhn)(i);return d?(0,n.jsx)(s.R,{}):r?(0,n.jsx)("div",{className:"bg-white",children:(0,n.jsx)(o.A,{structure:r,eventId:"string"==typeof t?t:void 0,onEventClick:i=>{e.push("/event/".concat(i))},isPublicExponentDisplay:!0})}):(0,n.jsx)("div",{children:"Structure non trouv\xe9e"})}}},e=>{e.O(0,[8807,2651,3076,4687,2229,820,4028,2947,9749,5835,636,6593,8792],()=>e(e.s=35441)),_N_E=e.O()}]); 2//# sourceMappingURL=[slug]-6e70969306d317d8.js.map
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.