PageSourceSearch

https://biotech-summit-austria.com/_next/static/chunks/0m3cq73bjo8qs.js

js biotech-summit-austria.com collected 2026-10-08 08:12:58 UTC 29,281 bytes, 241 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b87d204a-ea10-85f4-834d-cec1af671fe9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,331249,(e,i,t)=>{let a="/my/opportunities";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(790293)]),i.hot&&i.hot.dispose(function(){window.__NEXT_P.push([a])})},790293,e=>{"use strict";var i,t,a=e.i(868532),s=e.i(160144);e.i(619396);var n=e.i(136754),o=e.i(238984),d=e.i(402875),l=e.i(885408),r=e.i(5653),p=e.i(546375),c=e.i(778333),u=e.i(378107),f=e.i(686030),h=e.i(422701);e.i(667981);var y=e.i(958955),m=e.i(266765),x=e.i(950610),g=e.i(651325),b=e.i(73707),j=e.i(525710),C=e.i(223146),v=e.i(702838),O=e.i(164131),E=e.i(988651),w=e.i(774173),N=e.i(34588),_=e.i(281031);e.i(506854);var M=e.i(414028),S=e.i(605443),I=e.i(206778),T=e.i(950764);let $=(0,_.U)(x.f.Header).withConfig({displayName:"OpportunityForm__StyledHeader",componentId:"sc-748cb64c-0"})`
3  h2[id$="-header"] {
4    margin: 0;
5  }
6
7  @media ${s.f.laptop} {
8    padding-left: 20px;
9  }
10`,P=(0,_.U)(x.f.Body).withConfig({displayName:"OpportunityForm__StyledBody",componentId:"sc-748cb64c-1"})`
11  @media ${s.f.tablet} {
12    padding-top: 64px;
13  }
14
15  @media ${s.f.laptop} {
16    padding-top: 56px;
17  }
18`,D=(0,N.V)({title:{id:"createOpportunity.title",defaultMessage:"Create an opportunity"},goBack:{id:"createOpportunity.goBack",defaultMessage:"Go back to opportunity type selection"},cancel:{id:"createOpportunity.cancel",defaultMessage:"Cancel"},createOpportunity:{id:"createOpportunity.createOpportunity",defaultMessage:"Create an opportunity"}}),L=({onBack:e,className:i})=>{let{formatMessage:t}=(0,m.f)(),{getValues:s}=(0,w.M)();return(0,a.jsx)(v.f,{variant:"ghost",isRounded:!0,"aria-label":t(D.goBack),onClick:()=>{e({title:s("title"),shortDescription:s("shortDescription"),description:s("description")})},className:i,children:(0,a.jsx)(j.f,{})})},k=({schema:e,onBack:i,onSubmit:t,isLoading:s=!1,defaultValues:n,participationId:o})=>{let{formatMessage:d}=(0,m.f)(),{onClose:l}=(0,O.E)(),r=i?e=>{i(e)}:null,{isUploading:p}=(0,b.z)();return(0,a.jsx)(M.f,{onSubmit:({title:i,description:a,shortDescription:s,showOnOrganisationPage:n,...d})=>{t({type:e.type,title:i.trim(),description:a.trim(),shortDescription:s.trim(),participationId:n?o:void 0,...(0,I.y)(e,d)})},className:"h-100",children:(0,a.jsx)(x.f.Content,{children:(0,a.jsxs)(E.U,{children:[(0,a.jsxs)($,{children:[(0,a.jsx)("span",{className:"visually-hidden",children:d(D.title)}),!!r&&(0,a.jsx)(L,{onBack:r})]}),(0,a.jsx)(P,{children:(0,a.jsxs)(S.v,{className:"text-wrap mx-auto",children:[(0,a.jsx)(S.Y,{type:e.type}),(0,a.jsx)(T.f,{schema:e,basicValues:n,hasOrganisationPage:!!o})]})}),(0,a.jsx)(x.f.Footer,{className:"justify-content-center",children:(0,a.jsxs)(S.E,{children:[(0,a.jsx)(C.f,{variant:"ghost",size:"l",onClick:l,children:d(D.cancel)}),(0,a.jsx)(C.f,{size:"l",type:"submit",isDisabled:s||p,"data-test":"createOpportunity",children:d(D.createOpportunity)})]})})]})})})};var F=e.i(283754);let U=(0,_.U)(x.f.Body).withConfig({displayName:"SchemaSelection__StyledBody",componentId:"sc-a9c86ff-0"})`
19  @media ${s.f.tablet} {
20    padding: 64px 102px 32px;
21  }
22  @media ${s.f.laptop} {
23    padding: 56px 32px 24px;
24  }
25`,A=_.U.fieldset.withConfig({displayName:"SchemaSelection__Fieldset",componentId:"sc-a9c86ff-1"})`
26  border: 0;
27
28  @media ${s.f.laptop} {
29    max-width: 1120px;
30    margin: 0 auto;
31  }
32`,V=_.U.div.withConfig({displayName:"SchemaSelection__SchemaList",componentId:"sc-a9c86ff-2"})`
33  display: flex;
34  flex-direction: column;
35  gap: 16px;
36
37  @media ${s.f.tablet} {
38    display: grid;
39    grid-template-columns: 1fr 1fr;
40  }
41
42  @media ${s.f.laptop} {
43    grid-template-columns: 1fr 1fr 1fr;
44  }
45`,H=_.U.div.withConfig({displayName:"SchemaSelection__ActionContainer",componentId:"sc-a9c86ff-3"})`
46  width: 100%;
47  display: flex;
48  justify-content: space-between;
49
50  @media ${s.f.laptop} {
51    max-width: 1120px;
52  }
53`,B=({schemas:e,onSubmit:i})=>{let{register:t,handleSubmit:s,watch:n}=(0,w.G)({mode:"onTouched",defaultValues:{type:null}}),o=!n("type"),{onClose:d}=(0,O.E)();return(0,a.jsx)("form",{onSubmit:s(i),className:"h-100",children:(0,a.jsxs)(x.f.Content,{children:[(0,a.jsx)(x.f.Header,{children:(0,a.jsx)(c.f,{id:"createOpportunity.title",defaultMessage:"Create an opportunity"})}),(0,a.jsx)(U,{children:(0,a.jsxs)(A,{children:[(0,a.jsx)(r.f,{variant:"h6",as:"legend",className:"mb-16 mb-tablet-24",fontWeight:400,children:(0,a.jsx)(c.f,{id:"createOpportunity.chooseType",defaultMessage:"Choose opportunity type"})}),(0,a.jsx)(V,{className:"text-wrap",children:e.map(e=>(0,a.jsx)(F.f,{schemaType:e.type,value:e.type,...t("type")},e.type))})]})}),(0,a.jsx)(x.f.Footer,{className:"justify-content-center",children:(0,a.jsxs)(H,{children:[(0,a.jsx)(C.f,{variant:"ghost",size:"l",onClick:d,children:(0,a.jsx)(c.f,{id:"createOpportunity.cancel",defaultMessage:"Cancel"})}),(0,a.jsx)(C.f,{size:"l",type:"submit",isDisabled:o,"data-test":"next",children:(0,a.jsx)(c.f,{id:"createOpportunity.next",defaultMessage:"Next"})})]})})]})})};var R=((i=R||{}).SCHEMA_SELECTION="SCHEMA_SELECTION",i.CREATE_OPPORTUNITY="CREATE_OPPORTUNITY",i);let z=(e,i)=>{switch(i.type){case"CHOOSE_SCHEMA":return{step:"CREATE_OPPORTUNITY",schema:i.data.schema,values:e.values};case"CANCEL_SCHEMA":return{step:"SCHEMA_SELECTION",schema:void 0,values:i.data.values}}},q=({schemas:e,onClose:i,onSave:t,isLoading:s=!1,participationId:n})=>{let[o]=e,d=1===e.length,[l,r]=(0,g.useReducer)(z,d&&o?{step:"CREATE_OPPORTUNITY",schema:o}:{step:"SCHEMA_SELECTION",schema:void 0}),[p,c]=(0,g.useState)(!1);return(0,a.jsx)(b.Q.Provider,{value:{isUploading:p,setUploading:c}
53,children:(0,a.jsxs)(x.f.Background,{isFullPage:!0,onClose:()=>{p||i()},children:["SCHEMA_SELECTION"===l.step&&(0,a.jsx)(B,{schemas:e,onSubmit:({type:i})=>{let t=e.find(e=>e.type===i);t&&r({type:"CHOOSE_SCHEMA",data:{schema:t}})}}),"CREATE_OPPORTUNITY"===l.step&&(0,a.jsx)(k,{onBack:d?void 0:e=>{p||r({type:"CANCEL_SCHEMA",data:{values:e}})},onSubmit:e=>{t(e)},isLoading:s,schema:l.schema,defaultValues:l.values,participationId:n})]})})};var Q=e.i(469366);let Y=(0,_.U)(x.f.Header).withConfig({displayName:"DeleteOpportunityModal__ActionHeader",componentId:"sc-321a9e6f-0"})`
54  padding: 16px 16px 8px;
55
56  @media ${s.f.tablet} {
57    padding: 20px 20px 8px 32px;
58  }
59`,W=(0,_.U)(x.f.Body).withConfig({displayName:"DeleteOpportunityModal__ActionBody",componentId:"sc-321a9e6f-1"})`
60  padding-right: 32px;
61
62  @media ${s.f.tablet} {
63    padding-right: 64px;
64    padding-bottom: 32px;
65  }
66`,G=({title:e,onClose:i,onDelete:t,isLoading:s=!1})=>(0,a.jsxs)(x.f,{variant:"action",onClose:i,children:[(0,a.jsx)(Y,{children:(0,a.jsx)(c.f,{id:"deleteOpportunity.title",defaultMessage:"Delete opportunity"})}),(0,a.jsx)(W,{children:(0,a.jsxs)(p.f,{className:"text-wrap mb-8",children:[(0,a.jsx)(c.f,{id:"deleteOpportunity.confirmation",defaultMessage:"Are you sure you want to delete this opportunity?"}),(0,a.jsx)("br",{}),(0,a.jsx)(c.f,{id:"deleteOpportunity.explanation",defaultMessage:"<bold>{title}</bold> will be deleted from this event and all other events you have participated in.",values:{bold:e=>(0,a.jsx)(Q.f,{fontWeight:600,children:e}),title:e}})]})}),(0,a.jsxs)(x.f.Footer,{children:[(0,a.jsx)(C.f,{variant:"ghost",size:"l",onClick:i,children:(0,a.jsx)(c.f,{id:"deleteOpportunity.cancel",defaultMessage:"Cancel"})}),(0,a.jsx)(C.f,{size:"l",className:"ml-12",onClick:t,isDisabled:s,children:(0,a.jsx)(c.f,{id:"deleteOpportunity.delete",defaultMessage:"Delete"})})]})]}),X=({editableOpportunity:e,onClose:i,onSave:t,isLoading:s=!1})=>{let{opportunity:n,schema:o}=e,d={title:n.title,shortDescription:n.shortDescription,description:n.description,showOnOrganisationPage:!!n.participation},l=(0,I.p)(n),[r,p]=(0,g.useState)(!1),u=()=>!r&&i();return(0,a.jsx)(b.Q.Provider,{value:{isUploading:r,setUploading:p},children:(0,a.jsx)(x.f.Background,{isFullPage:!0,onClose:u,children:(0,a.jsx)(M.f,{onSubmit:({title:e,description:i,shortDescription:a,showOnOrganisationPage:s,...d})=>{t({id:n.id,title:e.trim(),description:i.trim(),shortDescription:a.trim(),participationId:s?n.author?.participation?.id:void 0,...(0,I.y)(o,d)})},className:"h-100",children:(0,a.jsx)(x.f.Content,{children:(0,a.jsxs)(E.U,{children:[(0,a.jsx)(x.f.Header,{children:(0,a.jsx)(c.f,{id:"editOpportunity.title",defaultMessage:"Edit opportunity"})}),(0,a.jsx)(x.f.Body,{children:(0,a.jsxs)(S.v,{className:"text-wrap mx-auto",children:[(0,a.jsx)(S.Y,{type:n.type}),(0,a.jsx)(T.f,{schema:o,basicValues:d,widgetValues:l,hasOrganisationPage:!!n.author?.participation})]})}),(0,a.jsx)(x.f.Footer,{className:"justify-content-center",children:(0,a.jsxs)(S.E,{children:[(0,a.jsx)(C.f,{variant:"ghost",size:"l",onClick:u,children:(0,a.jsx)(c.f,{id:"editOpportunity.cancel",defaultMessage:"Cancel"})}),(0,a.jsx)(C.f,{size:"l",type:"submit",isDisabled:s||r,children:(0,a.jsx)(c.f,{id:"editOpportunity.save",defaultMessage:"Save changes"})})]})})]})})})})})},J=(0,f.f)({createFailed:{id:"oopportunity.createFailed",defaultMessage:"Failed to create opportunity. Please try again."}}),K=({schemas:e,onClose:i,participationId:t,eventId:s})=>{let n=(0,d.E)(),o=(0,y.f)(),{formatMessage:l}=(0,m.f)(),[r,{loading:p}]=(0,h.$s)({awaitRefetchQueries:!0,refetchQueries:[{query:h.y8,variables:{euid:n}}]}),c=async e=>{if(!p)try{let{data:i,errors:t}=await r({variables:{input:{...e,eventId:s,expiresAt:null}}});if(!i||"CreateOpportunityPayload"!==i.createOpportunity.__typename)throw Error("Failed to create opportunity");if(t?.length)throw t}catch(e){o(e,{description:l(J.createFailed)})}finally{i()}};return(0,a.jsx)(q,{schemas:e,onClose:()=>{p||i()},onSave:c,isLoading:p,participationId:t})};var Z=e.i(637063);let ee=({isFullOnMobile:e=!1})=>{let i=(0,d.E)(),{id:t}=(0,Z.f)(),[s,n]=(0,g.useState)(!1),{data:o}=(0,h.hQ)({variables:{euid:i}}),l=o?.viewer?.participantByEuid?.participation?.id,r=o?.viewer?.participantByEuid?.editableSchemas.nodes,p=o?.viewer?.participantByEuid?.canWriteOpportunities;return(0,a.jsxs)(a.Fragment,{children:[p&&(0,a.jsx)(u.f,{onClick:()=>n(!0),isFullOnMobile:e,isFullOnTablet:!0,isFullOnLaptop:!0,className:"ml-12"}),p&&r&&s&&(0,a.jsx)(K,{schemas:r,onClose:()=>n(!1),participationId:l,eventId:t})]})},ei=_.U.div.withConfig({displayName:"EmptyOpportunities__Container",componentId:"sc-e7cb7f03
66-0"})`
67  display: flex;
68  flex-direction: column;
69  align-items: center;
70  justify-content: center;
71  flex-grow: 1;
72  text-align: center;
73`,et=_.U.div.withConfig({displayName:"EmptyOpportunities__TextContainer",componentId:"sc-e7cb7f03-1"})`
74  max-width: 280px;
75`,ea=_.U.span.withConfig({displayName:"EmptyOpportunities__Circle",componentId:"sc-e7cb7f03-2"})`
76  display: inline-block;
77  padding: 20px;
78  width: 80px;
79  height: 80px;
80  border-radius: 50%;
81  color: ${e=>e.theme.colors.brand};
82  background-color: ${e=>e.theme.colors.getBrand(10)};
83`,es=()=>(0,a.jsxs)(ei,{className:"px-40",children:[(0,a.jsxs)(et,{className:"mb-16 mb-tablet-24",children:[(0,a.jsx)(ea,{children:(0,a.jsx)(l.f,{size:40})}),(0,a.jsx)(r.f,{variant:"h6",as:"h2",className:"mt-16 mt-tablet-24 mb-8",children:(0,a.jsx)(c.f,{id:"myOpportunities.empty.title",defaultMessage:"No opportunities yet"})}),(0,a.jsx)(p.f,{variant:"s",color:"textSecondary",children:(0,a.jsx)(c.f,{id:"myOpportunities.empty.description",defaultMessage:"You haven't created any opportunities. Create some here to make your profile stand out more."})})]}),(0,a.jsx)(ee,{isFullOnMobile:!0})]});var en=e.i(44740);let eo=_.U.div.withConfig({displayName:"Header__Container",componentId:"sc-8e19bab6-0"})`
84  position: fixed;
85  display: flex;
86  top: var(--header_height);
87  height: var(--subheader_height);
88  left: 0;
89  right: 0;
90  z-index: ${({$zIndex:e})=>e};
91  background-color: ${({theme:e})=>e.colors.frontPrimary};
92  border-bottom: 1px solid ${({theme:e})=>e.colors.separators};
93  align-items: center;
94  justify-content: space-between;
95  padding: 16px;
96
97  @media ${s.f.tablet} {
98    padding: 20px 24px;
99  }
100`,ed=(0,N.V)({results:{id:"myOpportunities.header.title",defaultMessage:"{count, number} {count, plural, one {Opportunity} other {Opportunities}}"},moreInfo:{id:"myOpportunities.header.moreInfo",defaultMessage:"({visibleOpportunitiesCount}, {hiddenOpportunitiesCount})"},visibleCount:{id:"myOpportunities.header.moreInfo.visible",defaultMessage:"{opportunitiesCount, number} {opportunitiesCount, plural, one {visible} other {visible}}"},hiddenCount:{id:"myOpportunities.header.moreInfo.hidden",defaultMessage:"{opportunitiesCount, number} {opportunitiesCount, plural, one {hidden} other {hidden}}"}}),el=({totalCount:e=0,visibleCount:i=0,hiddenCount:t=0})=>{let{formatMessage:s}=(0,m.f)(),n=(0,en.J)("header");return(0,a.jsxs)(eo,{$zIndex:n,children:[(0,a.jsxs)(p.f,{as:"h2",fontWeight:600,"aria-live":"polite",children:[s(ed.results,{count:e}),(0,a.jsx)("span",{className:"visually-hidden",children:s(ed.moreInfo,{visibleOpportunitiesCount:s(ed.visibleCount,{opportunitiesCount:i}),hiddenOpportunitiesCount:s(ed.hiddenCount,{opportunitiesCount:t})})})]}),(0,a.jsx)(ee,{})]})};var er=e.i(299037),ep=e.i(161789),ec=e.i(335984);e.i(307125);var eu=e.i(904193),ef=e.i(874902),eh=e.i(471402),ey=e.i(639827),em=e.i(931414),ex=e.i(714866),eg=e.i(87135),eb=e.i(585964),ej=e.i(486641),eC=e.i(528183),ev=e.i(551071),eO=e.i(640553),eE=e.i(493177),ew=e.i(394924),eN=e.i(284922),e_=e.i(544817);let eM=(0,N.V)({hidden:{id:"opportunity.hidden",defaultMessage:"Hidden"},hiddenAria:{id:"opportunity.hidden.description",defaultMessage:"Make the opportunity visible on this event"},visible:{id:"opportunity.visible",defaultMessage:"Visible"},visibleAria:{id:"opportunity.visible.description",defaultMessage:"Hide the opportunity on this event"},disabled:{id:"opportunity.disabled",defaultMessage:"You can’t display this opportunity on the event"}}),eS=({isVisible:e,isLoading:i,viewerCanEnable:t,onHideVisibility:s,onShowVisibility:n,...o})=>{let{formatMessage:d}=(0,m.f)();return(0,a.jsxs)("div",{...o,children:[e?(0,a.jsx)(v.f,{variant:"selected","aria-label":d(eM.visibleAria),onClick:s,className:"d-tablet-none",isDisabled:i,children:(0,a.jsx)(ew.f,{})}):(0,a.jsx)(e_.f,{content:t?"":d(eM.disabled),children:(0,a.jsx)(v.f,{variant:"tertiary","aria-label":d(eM.hiddenAria),onClick:n,className:"d-tablet-none",isDisabled:i||!t,children:(0,a.jsx)(eN.f,{})})}),e?(0,a.jsxs)(C.f,{variant:"selected",className:"d-none d-tablet-inline-flex",onClick:s,isDisabled:i,children:[(0,a.jsx)(ew.f,{}),(0,a.jsx)("span",{children:d(eM.visible)})]}):(0,a.jsx)(e_.f,{content:t?"":d(eM.disabled),children:(0,a.jsxs)(C.f,{variant:"tertiary",className:"d-none d-tablet-inline-flex",onClick:n,isDisabled:i||!t,children:[(0,a.jsx)(eN.f,{}),(0,a.jsx)("span",{children:d(eM.hidden)})]})})]})},eI=(0,N.V)({edit:{id:"opportunity.actions.edit",defaultMessage:"Edit"},delete:{id:"opportunity.actions.delete",defaultMessage:"Delete"},dropdown:{id:"opportunity.actions.dropdownLabel",defaultMessage:"Toggle additional opportunity actions"}}),eT=_.U.div.withConfig({displayName:"EditableOpportunityActions__ActionsContainer",componentId:"sc-8c356b67-0"})`
101  display: flex;
102  align-items: center;
103  flex-shrink: 0;
104  justify-content: flex-end;
105
106  &:empty {
107    display: none !important;
108  }
109`,e$=({viewerCanEnable:e,onEdit:i,onDelete:t,onHideVisibility:s,onShowVisibility:n,isVisible:o,isLoading:d,...l})=>{let{formatMessage:r}=(0,m.f)();return(0,a.jsxs)(eT,{...l,children:[(0,a.jsx)(v.f,{variant:"tertiary","aria-label":r(eI.delete),onClick:t,className:"mr-12 d-none d-tablet-inline-flex",children:(0,a.jsx)(eC.f,{})}),(0,a.jsx)(eS,{isVisible:o,isLoading:d,onHideVisibility:s,onShowVisibility:n,viewerCanEnable:e,className:"mr-12"}),(0,a.jsxs)(C.f,{onClick:i,className:"d-none d-tablet-inline-flex",children:[(0,a.jsx)(eO.f,{}),(0,a.jsx)("span",{children:r(eI.edit)})]}),(0,a.jsxs)(ev.f,{ReferenceComponent:eE.f,referenceProps:{className:"flex-shrink-0 d-tablet-none",ariaLabel:r(eI.dropdown)},children:[(0,a.jsxs)(ev.f.Item,{onClick:i,children:[(0,a.jsx)(eO.f,{}),(0,a.jsx)("span",{children:r(eI.edit)})]}),(0,a.jsxs)(ev.f.Item,{onClick:t,children:[(0,a.jsx)(eC.f,{}),(0,a.jsx)("span",{children:r(eI.delete)})]})]})]})};var eP=e.i(886744),eD=e.i(22650);let eL=_.U.div.withConfig({displayName:"ValidationInfoMessage__Container",componentId:"sc-1004c153-0"})`
110  display: flex;
111  align-items: flex-start;
112  padding: 14px 24px 12px;
113  background-color: ${({theme:e})=>e.colors.getBrand(5)};
114`,ek=(0,_.U)(eP.f).withConfig({displayName:"ValidationInfoMessage__StyledIcon",componentId:"sc-1004c153-1"})`
115  margin-top: 2px;
116  color: ${({theme:e})=>e.colors.brand};
117`,eF=(0,_.U)(({className:e,...i})=>(0,a.jsxs)(eL,{className:(0,eD.f)("mb-tablet-12",e),...i,children:[(0,a.jsx)(ek,{size:20,className:"flex-shrink-0 mr-12"}),(0,a.jsx)(p.f,{variant:"s",children:(0,a.jsx)(c.f,{id:"myOpportunities.published.organiserReview",defaultMessage:"The organiser will review this opportunity before it gets published."})})]})).withConfig({displayName:"EditableOpportunityCard__StyledValidationMessage",componentId:"sc-5dd2aaf2-0"})`
118  border-radius: 16px 16px 0 0;
119`,eU=(0,_.U)(ex.f).withConfig({displayName:"EditableOpportunityCard__StyledCarousel",componentId:"sc-5dd2aaf2-1"})`
120  ${({$roundCorners:e})=>e&&"border-radius: 16px 16px 0 0;"}
121
122  @media ${s.f.tablet} {
123    border-radius: 12px;
124    margin: 0 24px 20px;
125    aspect-ratio: 11/6;
126  }
127
128  @media ${s.f.laptop} {
129    width: 332px;
130    height: 225px;
131    flex-shrink: 0;
132    border-radius: 16px;
133    aspect-ratio: auto;
134    margin-right: 0;
135    margin-bottom: 0;
136  }
137`,eA=(0,_.U)(er.f).withConfig({displayName:"EditableOpportunityCard__StyledCard",componentId:"sc-5dd2aaf2-2"})`
138  padding: 0;
139  ${em.f.wrapped};
140
141  @media ${s.f.tablet} {
142    padding: ${({$hasNoPaddingTop:e})=>e?"0":"24px 0 0"};
143  }
144
145  @media ${s.f.laptop} {
146    padding: ${({$hasNoPaddingTop:e})=>e?"0 0 24px":"24px 0"};
147    display: flex;
148    flex-direction: column;
149  }
150
151  &:last-child {
152    margin-bottom: 0;
153  }
154`,eV=(0,_.U)(eg.c).withConfig({displayName:"EditableOpportunityCard__StyledContent",componentId:"sc-5dd2aaf2-3"})`
155  border: none;
156  border-radius: 0;
157  @media ${s.f.tablet} {
158    padding: 0 24px 24px;
159  }
160
161  @media ${s.f.laptop} {
162    min-width: 0;
163    margin-left: 28px;
164    padding: 0 24px 0 0;
165    flex-grow: 1;
166    display: ${({hasMedia:e})=>e?"flex":"block"};
167    flex-direction: column;
168
169    .padded-content {
170      padding-right: ${({hasMedia:e})=>e?"0":"164px"};
171    }
172  }
173`,eH=_.U.div.withConfig({displayName:"EditableOpportunityCard__C
173ontainer",componentId:"sc-5dd2aaf2-4"})`
174  display: flex;
175  flex-direction: column;
176  align-items: start;
177  margin-top: 12px;
178
179  @media ${s.f.tablet} {
180    flex-direction: row;
181    align-items: center;
182  }
183
184  @media ${s.f.laptop} {
185    margin-top: auto;
186    margin-bottom: 8px;
187    padding-top: 32px;
188  }
189`,eB=(0,_.U)(Q.f).withConfig({displayName:"EditableOpportunityCard__StyledSpan",componentId:"sc-5dd2aaf2-5"})`
190  margin-left: 2px;
191`,eR=_.U.div.withConfig({displayName:"EditableOpportunityCard__OpportunityContainer",componentId:"sc-5dd2aaf2-6"})`
192  ${em.f.wrapped};
193
194  @media ${s.f.laptop} {
195    display: flex;
196  }
197`,ez=({opportunity:e,isEditable:i,isShownOnOrganisationPage:t,isVisible:s,viewerCanEnable:n,isPublished:o,onEdit:d,onDelete:l,onHideVisibility:r,onShowVisibility:u,isLoading:f,...h})=>{let y=(0,eb.d)(e),m=(0,eb.z)(e),x=!o&&s;return(0,a.jsx)("article",{"aria-label":e.title,children:(0,a.jsxs)(eA,{$hasNoPaddingTop:x,hasBorder:!0,...h,children:[x&&(0,a.jsx)(eF,{}),(0,a.jsxs)(eR,{children:[m.length>0&&(0,a.jsx)(eU,{$roundCorners:!x,className:"mb-tablet-20 ml-laptop-20 mb-laptop-0",media:m,opportunityTitle:e.title}),(0,a.jsxs)(eV,{hasMedia:m.length>0,children:[(0,a.jsxs)("div",{className:"padded-content",children:[(0,a.jsx)(eg.C,{opportunity:e,className:"mb-8 mb-laptop-4"}),(0,a.jsx)(eg.w,{opportunity:e,truncateFrom:"tablet",isVisible:s}),(0,a.jsx)(p.f,{className:"d-none d-tablet-block mt-tablet-4",children:e.shortDescription}),y.length>0&&(0,a.jsx)(ej.f,{items:y,className:"mt-8"})]}),i&&(0,a.jsxs)(eH,{className:"hide-empty",children:[t&&(0,a.jsxs)(ef.f,{size:"l",isSquared:!0,isMonochrome:!0,className:"mb-24 mb-tablet-0",children:[(0,a.jsx)(eh.f,{}),(0,a.jsx)(eB,{children:(0,a.jsx)(c.f,{id:"myOpportunities.badge.shownOnCompanyPage",defaultMessage:"Shown on the organisation page"})})]}),(0,a.jsx)(e$,{onEdit:d,onDelete:l,onHideVisibility:r,onShowVisibility:u,isVisible:s,viewerCanEnable:n,isLoading:f,className:"ml-auto pl-tablet-24"})]})]})]})]})})},eq=(0,_.U)(er.f).withConfig({displayName:"EditableOpportunityCard__LoadingCard",componentId:"sc-5dd2aaf2-7"})`
198  padding: 0;
199  overflow: hidden;
200  border: none;
201  display: flex;
202  flex-direction: column;
203
204  @media ${s.f.tablet} {
205    padding: 24px;
206    border: 1px solid ${({theme:e})=>e.colors.separators};
207  }
208
209  @media ${s.f.laptop} {
210    padding: 24px 24px 24px;
211    flex-direction: row;
212  }
213`;ez.Loading=({className:e})=>(0,a.jsxs)(eq,{className:e,children:[(0,a.jsx)(eU,{className:"mb-tablet-20 mb-laptop-0",$roundCorners:!0}),(0,a.jsx)(eV,{hasMedia:!0,children:(0,a.jsxs)(ey.f,{width:"100%",height:"208px",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"100%",height:"56",rx:"4",ry:"4"}),(0,a.jsx)("rect",{x:"0",y:"64",width:"100%",height:"80",rx:"4",ry:"4"}),(0,a.jsx)("rect",{x:"0",y:"168",width:"100%",height:"40",rx:"8",ry:"8"})]})})]});let eQ=(0,N.V)({setVisible:{id:"myOpportunities.opportunity.setVisible.success",defaultMessage:"{opportunity} set as visible."},setHidden:{id:"myOpportunities.opportunity.setHidden.success",defaultMessage:"{opportunity} set as hidden."},setVisibleErr:{id:"myOpportunities.opportunity.setVisible.fail",defaultMessage:"{opportunity} could not be set as visible."},setHiddenErr:{id:"myOpportunities.opportunity.setHidden.fail",defaultMessage:"{opportunity} could not be set as hidden."}}),eY=_.U.li.withConfig({displayName:"EditableOpportunitiesList__StyledItem",componentId:"sc-994c60ab-0"})`
214  outline: none;
215
216  &:last-child {
217    margin-bottom: 0;
218  }
219`,eW=({opportunities:e,myOpportunitiesPage:i,isLoading:t,onEdit:s,onDelete:n})=>{let{id:o,euid:d}=(0,Z.f)(),{formatMessage:l}=(0,m.f)(),r=(0,ep.f)(),p=(0,y.f)(),[c,{loading:u}]=(0,h.XL)(),[f,{loading:x}]=(0,h.nG)(),g=async e=>{try{await c({variables:{input:{id:e.id},euid:d}}),r({type:"success",title:l(eQ.setHidden,{opportunity:e.opportunity.title})})}catch(i){p(i,{description:l(eQ.setHiddenErr,{opportunity:e.opportunity.title})})}},b=async e=>{try{await f({variables:{input:{id:e.id,eventId:o},euid:d}}),r({type:"success",title:l(eQ.setVisible,{opportunity:e.opportunity.title})})}catch(i){p(i,{description:l(eQ.setVisibleErr,{opportunity:e.opportunity.title})})}};return(0,a.jsx)("ul",{"data-test":"myOpportunitiesList",children:e.map(e=>
219(0,a.jsx)(eY,{className:"d-block mb-16",tabIndex:-1,children:i?(0,a.jsx)(ez,{opportunity:e.opportunity,isEditable:e.viewerShouldSeeEdit&&e.viewerCanEdit,isShownOnOrganisationPage:!!e.opportunity.participation,isVisible:e.enabled,viewerCanEnable:e.viewerCanEnable,isPublished:e.published,onEdit:()=>s(e),onDelete:i=>{let a=i.target.closest("li");t||n(a,e)},onHideVisibility:async i=>{let a=i.target.closest("li"),s=(0,ec.f)(a);t||await g(e),s&&s.focus()},onShowVisibility:async i=>{let a=i.target.closest("li"),s=(0,ec.f)(a);t||await b(e),s&&s.focus()},isLoading:x||u}):(0,a.jsx)(eu.f,{opportunity:e.opportunity})},e.id))})},eG=(0,N.V)({editSuccess:{id:"myOpportunities.opportunity.editSuccess",defaultMessage:"{opportunity} successfully edited."},editFailed:{id:"myOpportunities.opportunity.editFailed",defaultMessage:"Failed to edit {opportunity}. Please try again."},deleteSuccess:{id:"myOpportunities.opportunity.deleteSuccess",defaultMessage:"{opportunity} successfully deleted."},deleteFailed:{id:"myOpportunities.opportunity.deleteFailed",defaultMessage:"Failed to delete {opportunity}. Please try again."}});var eX=((t=eX||{}
219).EDIT="EDIT",t.DELETE="DELETE",t);let eJ=(e,i)=>{switch(i.type){case"CLOSE_MODAL":return null;case"OPEN_DELETE":return{modal:"DELETE",editableOpportunity:i.editableOpportunity,nextElToFocus:i.nextElToFocus};case"OPEN_EDIT":return{modal:"EDIT",editableOpportunity:i.editableOpportunity}}},eK=({opportunities:e,myOpportunitiesPage:i=!1})=>{let{id:t,euid:s}=(0,Z.f)(),{formatMessage:n}=(0,m.f)(),o=(0,ep.f)(),d=(0,y.f)(),[l,r]=(0,g.useReducer)(eJ,null),{refetch:p}=(0,h.hQ)({variables:{euid:s},skip:!0}),[c,{loading:u}]=(0,h.gv)(),[f,{loading:x}]=(0,h.nh)({awaitRefetchQueries:!0,refetchQueries:[{query:h.y8,variables:{euid:s}}]}),b=u||x,j=()=>{b||r({type:"CLOSE_MODAL"})},C=async e=>{if(!b)try{let i=await c({variables:{input:{...e,eventId:t,enabled:!0,expiresAt:null},euid:s}});if(i.data?.updateOpportunity.__typename!=="UpdateOpportunityPayload")throw Error(`Failed to update opportunity: ${e.id}`);let{opportunity:a}=i.data.updateOpportunity;a.id!==e.id&&await p(),o({type:"success",description:n(eG.editSuccess,{opportunity:e.title})})}catch(i){d(i,{description:n(eG.editFailed,{opportunity:e.title})})}finally{r({type:"CLOSE_MODAL"})}},v=async()=>{if(!b&&l?.modal==="DELETE")try{await f({variables:{input:{id:l.editableOpportunity?.opportunity.id}}}),o({type:"success",description:n(eG.deleteSuccess,{opportunity:l.editableOpportunity.opportunity.title})}),l.nextElToFocus&&l.nextElToFocus.focus()}catch(e){d(e,{description:n(eG.deleteFailed,{opportunity:l.editableOpportunity.opportunity.title})})}finally{r({type:"CLOSE_MODAL"})}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eW,{opportunities:e,myOpportunitiesPage:i,isLoading:b,onEdit:e=>{b||r({type:"OPEN_EDIT",editableOpportunity:e})},onDelete:(e,i)=>{b||r({type:"OPEN_DELETE",editableOpportunity:i,nextElToFocus:(0,ec.f)(e)})}}),l?.modal==="EDIT"&&(0,a.jsx)(X,{editableOpportunity:l.editableOpportunity,onClose:j,onSave:C,isLoading:b}),l?.modal==="DELETE"&&(0,a.jsx)(G,{title:l.editableOpportunity.opportunity.title,onClose:j,onDelete:v,isLoading:b})]})},eZ=(0,_.U)(er.f).withConfig({displayName:"OpportunitiesCard__StyledCard",componentId:"sc-a45eeab3-0"})`
220  padding: 24px;
221
222  @media ${s.f.tablet} {
223    padding: 48px;
224  }
225
226  &:empty {
227    display: none;
228  }
229`,e0=({isVisible:e=!1,opportunities:i,...t})=>(0,a.jsxs)(eZ,{...t,children:[(0,a.jsx)(r.f,{variant:"h6",as:"h3",className:"mb-12 pb-24 pb-tablet-32",children:e?(0,a.jsx)(c.f,{id:"myOpportunities.visible.title",defaultMessage:"Visible on this event ({count, number})",values:{count:i.length}}):(0,a.jsx)(c.f,{id:"myOpportunities.hidden.title",defaultMessage:"Hidden from this event ({count, number})",values:{count:i.length}})}),(0,a.jsx)(eK,{opportunities:i,myOpportunitiesPage:!0})]});var e2=e.i(520008),e1=e.i(444713);e.i(223771);var e4=e.i(323217),e6=e.i(908368),e8=e.i(325522),e3=e.i(402516),e5=e.i(985782),e7=e.i(832765),e9=e.i(344054),ie=e.i(38308),ii=e.i(685259);let it=_.U.div.withConfig({displayName:"opportunities__Container",componentId:"sc-758c476f-0"})`
230  padding: 16px;
231
232  @media ${s.f.tablet} {
233    padding: 24px;
234  }
235
236  @media ${s.f.laptop} {
237    padding: 32px calc((100% - 1120px) / 2);
238  }
239`,ia=({locale:e,appMessages:i})=>{let t=(0,d.E)(),{data:s}=(0,h.hQ)({variables:{euid:t}}),l=s?.viewer?.participantByEuid;if(!l)return null;let r=l.opportunities.nodes,{visible:p,hidden:u}=r.reduce((e,i)=>(e[i.enabled?"visible":"hidden"].push(i),e),{visible:[],hidden:[]});return(0,a.jsx)(e2.U,{value:ii.n.MyOpportunities,children:(0,a.jsxs)(n.f,{hasSubheader:!0,locale:e,appMessages:i,pageTitle:(0,N.U)({id:"header.myOpportunities",defaultMessage:"My opportunities"}),showMobileAppBanner:!0,children:[(0,a.jsx)(o.f,{}),(0,a.jsx)("h1",{className:"visually-hidden",children:(0,a.jsx)(c.f,{id:"myOpportunities.title",defaultMessage:"My opportunities"})}),(0,a.jsx)(el,{totalCount:r.length,visibleCount:p.length,hiddenCount:u.length}),r.length>0?(0,a.jsxs)(it,{children:[p.length>0&&(0,a.jsx)(e0,{isVisible:!0,opportunities:p,className:"mb-16"}),u.length>0&&(0,a.jsx)(e0,{opportunities:u})]}):(0,a.jsx)(es,{})]})})};ia.getInitialProps=(0,e1.x)(async(e,i)=>{let t=(0,e9.P)(e),{data:a,error:s}=await i.query({fetchPolicy:"network-only",query:h.y8,variables:{euid:t,skipLayoutData:!e.req,includeInitialPropsData:!0}}),n=a.eventByEuidV2;if(!n)return{notFound:!0};if("Event"!==n.__typename)return(0,e8.f)(e,n);
239let{viewer:o}=a,{id:d,websiteUrl:l}=n,r=o?.participantByEuid;if(e.req&&(e.req.loggerLabels={euid:t,eventId:d,userId:o?.id,isImpersonated:o?.isImpersonated,route:"MyOpportunities"}),s)throw s;let p=await (0,e5.f)(e),c=(0,e9.W)(e.query.euid,e.asPath||"/my/opportunities");if(!o)return(0,e9.w)(e,l,`sign-in?${ie.G}=${c}`),{};if(!r||!r.hasFinishedRegistration)return(0,e9.w)(e,l,"sign-up"),{};if(r.shouldFinalizeSignup)return(0,e9.w)(e,l,e9.J.includes(t)?"opt-in":"password-setup"),{};if(r.shouldAcceptTermsAndConditions)return(0,e9.w)(e,l,"accept-terms"),{};if(!r.shouldSeeManageOpportunitiesButton)return(0,e9.w)(e,l),{};if(e.req){let e=(0,e3.y)(n);return{webSocketUrl:p,locale:e,appMessages:await (0,e7.f)(e,n),globalClassName:(0,e4.J)(n)}}return{}});let is=(0,e6.f)(ia);e.s(["default",0,is],790293)}]);
240
241//# debugId=b87d204a-ea10-85f4-834d-cec1af671fe9

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.