diff --git a/public/build/assets/app-BunCVcAf.js b/public/build/assets/app-b_k6-ZYn.js similarity index 98% rename from public/build/assets/app-BunCVcAf.js rename to public/build/assets/app-b_k6-ZYn.js index 8f8e55cd7..c7312bc0b 100644 --- a/public/build/assets/app-BunCVcAf.js +++ b/public/build/assets/app-b_k6-ZYn.js @@ -234,4 +234,4 @@ function print() { __p += __j.call(arguments, '') } `,te=L.popup({maxWidth:600}).setContent(R);ne.target.bindPopup(te).openPopup()}catch(P){console.error("Can NOT load event",P)}};const T=()=>{if(o.value)try{u.value&&(o.value.removeLayer(u.value),u.value=null);const ne=L.markerClusterGroup(),J=[];Object.values(h.value).forEach(P=>{J.push(...P)}),console.group("Started add markers",J.length),J.map(({id:P,geoposition:z},R)=>{R%1e4===0&&console.log("Adding markers",R);const te=z.split(","),xe=parseFloat(te[0]),De=parseFloat(te[1]);if(xe&&De){const Be=L.marker([xe,De],{id:P});Be.on("click",M),ne.addLayer(Be)}}),console.log("Done add markers",J.length),console.groupEnd(),u.value=ne,o.value.addLayer(ne)}catch(ne){console.log("Add marker error",ne)}},H=()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(ne=>{const{latitude:J,longitude:P}=ne.coords,z=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[33,41],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker([J,P],{icon:z}).addTo(o.value)},ne=>{console.error("Geolocation error:",ne)})},re=()=>{o.value=L.map("mapid"),o.value.setView([51,10],5),L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(o.value)},Q=ne=>{const J=a.value;if(!J)return;const P="fixed left-0 top-[139px] md:top-[123px] z-[110] h-[calc(100dvh-139px)] md:h-[calc(100dvh-123px)]";ne?J.classList.add(...P.split(" ")):J.classList.remove(...P.split(" "))};return Ft(()=>{V(),setTimeout(()=>{re(),B(),T(),H()},2e3)}),{mapContainerRef:a,yearOptions:w,languageOptions:_,activityFormatOptions:t,activityTypeOptions:n,ageOptions:r,filters:m,removeSelectedItem:U,removeAllSelectedItems:F,isLoading:s,events:d,errors:f,tags:C,pagination:y,scrollToTop:x,paginate:E,onSubmit:V,limit:$,handleToggleMapFullScreen:Q}}},iU={ref:"mapContainerRef",class:"w-full h-[520px] top-0 left-0"},aU={id:"mapid",class:"w-full h-full relative"},lU={style:{"z-index":"999"},id:"map-controls",class:"absolute z-50 flex flex-col top-4 left-2"},oU={class:"codeweek-searchpage-component font-['Blinker']"},uU={class:"codeweek-container py-10"},cU={class:"flex w-full"},dU={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 items-end gap-4 w-full"},fU={key:0,class:"flex md:justify-center mt-10"},hU={class:"max-md:w-full flex flex-wrap gap-2"},pU={class:"flex items-center gap-2"},mU=["onClick"],gU={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},vU={class:"relative pt-20 md:pt-48"},yU={class:"bg-yellow-50 pb-24"},_U={class:"relative z-10 codeweek-container-lg"},bU={class:"flex flex-col md:flex-row gap-10"},wU={class:"flex-shrink-0 grid grid-cols-2 md:grid-cols-1 gap-6 bg-[#FFEF99] px-4 py-6 rounded-2xl self-start w-full md:w-60"},xU={class:"relative w-full flex px-3 justify-between items-center text-gray-700 whitespace-nowrap rounded-3xl border-2 border-dark-blue-200 h-[50px] bg-white"},kU={class:"flex items-center justify-center w-full"},SU={key:0,class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10 h-fit"},TU={key:0,class:"col-span-full"};function AU(e,t,n,r,s,a){const o=at("InputField"),u=at("FieldWrapper"),d=at("SelectField"),h=at("date-time"),f=at("event-card"),p=at("pagination");return k(),I(Ie,null,[v("section",null,[v("div",iU,[v("div",aU,[v("div",lU,[v("button",{class:"pb-2 group",onClick:t[0]||(t[0]=m=>r.handleToggleMapFullScreen(!0))},t[20]||(t[20]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{class:"stroke-[#414141] group-hover:stroke-[#ffffff]",d:"M16 11H13C12.4696 11 11.9609 11.2107 11.5858 11.5858C11.2107 11.9609 11 12.4696 11 13V16M29 16V13C29 12.4696 28.7893 11.9609 28.4142 11.5858C28.0391 11.2107 27.5304 11 27 11H24M24 29H27C27.5304 29 28.0391 28.7893 28.4142 28.4142C28.7893 28.0391 29 27.5304 29 27V24M11 24V27C11 27.5304 11.2107 28.0391 11.5858 28.4142C11.9609 28.7893 12.4696 29 13 29H16","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{class:"pb-2 group",onClick:t[1]||(t[1]=m=>r.handleToggleMapFullScreen(!1))},t[21]||(t[21]=[v("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"40",height:"40",rx:"8",class:"fill-white transition-colors duration-300 group-hover:fill-[#1C4DA1]"}),v("path",{d:"M13 20H27",class:"stroke-[#414141] group-hover:stroke-[#ffffff]","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])],512)]),v("section",oU,[v("div",uU,[v("div",cU,[v("div",dU,[he(u,{class:"lg:col-span-2",horizontal:"",label:"Search by title or description"},{default:Te(()=>[he(o,{modelValue:r.filters.query,"onUpdate:modelValue":t[2]||(t[2]=m=>r.filters.query=m),placeholder:"E.g tools assessment in computing"},null,8,["modelValue"])]),_:1}),he(u,{horizontal:"",label:"Year"},{default:Te(()=>[he(d,{"return-object":"",placeholder:"Select year",modelValue:r.filters.year,"onUpdate:modelValue":t[3]||(t[3]=m=>r.filters.year=m),"deselect-label":"","allow-empty":!1,options:r.yearOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Language"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select language",modelValue:r.filters.languages,"onUpdate:modelValue":t[4]||(t[4]=m=>r.filters.languages=m),options:r.languageOptions},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Country"},{default:Te(()=>[he(d,{multiple:"","return-object":"","id-name":"iso",placeholder:"Select country",modelValue:r.filters.countries,"onUpdate:modelValue":t[5]||(t[5]=m=>r.filters.countries=m),options:n.countrieslist},null,8,["modelValue","options"])]),_:1}),v("button",{class:"bg-[#F95C22] rounded-full py-3 px-20 font-['Blinker'] hover:bg-hover-orange duration-300 mt-2 sm:col-span-2 lg:col-span-1",onClick:t[6]||(t[6]=m=>r.onSubmit())},t[22]||(t[22]=[v("span",{class:"text-base leading-7 font-semibold text-black normal-case"}," Search ",-1)]))])]),r.tags.length?(k(),I("div",fU,[v("div",hU,[(k(!0),I(Ie,null,Ze(r.tags,m=>(k(),I("div",{key:m.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",pU,[v("span",null,ce(m.name),1),v("button",{onClick:y=>r.removeSelectedItem(m)},t[23]||(t[23]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,mU)])]))),128)),v("div",gU,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[7]||(t[7]=(...m)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...m))}," Clear all filters ")])])])):se("",!0)]),v("div",vU,[t[26]||(t[26]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[27]||(t[27]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",yU,[v("div",_U,[v("div",bU,[v("div",wU,[he(u,{horizontal:"",label:"Date"},{default:Te(()=>[v("div",xU,[(k(),it(h,{key:r.filters.start_date,placeholder:"Start Date",format:"yyyy-MM-dd",value:r.filters.start_date,onOnChange:t[8]||(t[8]=m=>r.filters.start_date=m),onOnClear:t[9]||(t[9]=m=>r.filters.start_date=null)},null,8,["value"])),t[24]||(t[24]=v("div",{class:"absolute top-1/2 right-4 -translate-y-1/2 pointer-events-none"},[v("img",{src:"/images/select-arrow.svg"})],-1))])]),_:1}),he(u,{horizontal:"",label:"Format"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select format",modelValue:r.filters.formats,"onUpdate:modelValue":t[10]||(t[10]=m=>r.filters.formats=m),options:r.activityFormatOptions,onOnChange:t[11]||(t[11]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Activity type"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select type",modelValue:r.filters.types,"onUpdate:modelValue":t[12]||(t[12]=m=>r.filters.types=m),options:r.activityTypeOptions,onOnChange:t[13]||(t[13]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Audience"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select audience",modelValue:r.filters.audiences,"onUpdate:modelValue":t[14]||(t[14]=m=>r.filters.audiences=m),options:n.audienceslist,onOnChange:t[15]||(t[15]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Age range"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select range",modelValue:r.filters.ages,"onUpdate:modelValue":t[16]||(t[16]=m=>r.filters.ages=m),options:r.ageOptions,onOnChange:t[17]||(t[17]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1}),he(u,{horizontal:"",label:"Themes"},{default:Te(()=>[he(d,{multiple:"","return-object":"",placeholder:"Select themes",modelValue:r.filters.themes,"onUpdate:modelValue":t[18]||(t[18]=m=>r.filters.themes=m),options:n.themeslist,onOnChange:t[19]||(t[19]=()=>r.onSubmit())},null,8,["modelValue","options"])]),_:1})]),Dn(v("div",kU,[t[25]||(t[25]=v("img",{src:"img/loading.gif",style:{"margin-right":"10px"}},null,-1)),ft(ce(e.$t("event.loading")),1)],512),[[Vr,r.isLoading]]),r.isLoading?se("",!0):(k(),I("div",SU,[(k(!0),I(Ie,null,Ze(r.events,m=>(k(),it(f,{key:m.id,event:m},null,8,["event"]))),128)),r.pagination.last_page>1?(k(),I("div",TU,[he(p,{pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])])):se("",!0)]))])])])])])],64)}const CU=vt(sU,[["render",AU]]),EU={props:{tool:Object},data(){return{descriptionHeight:"auto",needShowMore:!0,showMore:!1}},methods:{computeDescriptionHeight(){const e=this.$refs.descriptionContainerRef,t=this.$refs.descriptionRef,n=e.clientHeight,r=Math.floor(n/22);t.style.height="auto",this.descriptionHeight="auto",this.needShowMore=t.offsetHeight>n,t.offsetHeight>n?(t.style.height=`${r*22}px`,this.descriptionHeight=`${r*22}px`):this.showMore=!1},onToggleShowMore(){const e=this.$refs.descriptionRef;this.showMore=!this.showMore,this.showMore?e.style.height="auto":e.style.height=this.descriptionHeight}},mounted:function(){this.computeDescriptionHeight()}},OU={class:"flex flex-col bg-white rounded-lg overflow-hidden"},MU=["src"],RU={key:0,class:"flex gap-2 flex-wrap mb-2"},DU={key:0,class:"inline-block w-4 h-4",src:"/images/star-white.svg"},PU={class:"text-dark-blue font-semibold font-['Montserrat'] text-base leading-6"},LU={key:1,class:"text-slate-500 text-[16px] leading-[22px] font-semibold"},IU={ref:"descriptionRef",class:"relative flex-grow text-slate-500 text-[16px] leading-[22px] mb-2 overflow-hidden",style:{height:"auto"}},NU=["innerHTML"],VU={class:"flex-shrink-0 h-[56px]"},FU=["href"];function $U(e,t,n,r,s,a){var o;return k(),I("div",OU,[v("div",{class:Fe(["flex-shrink-0 flex justify-center items-center w-full",[n.tool.avatar_dark&&"bg-stone-800"]])},[v("img",{src:n.tool.avatar||"/images/matchmaking-tool/tool-placeholder.png",class:Fe(["w-full aspect-[2]",n.tool.avatar?"object-contain":"object-cover"])},null,10,MU)],2),v("div",{class:Fe(["flex-grow flex flex-col gap-2 px-5 py-4 h-fit",{"max-h-[450px]":s.needShowMore&&!s.showMore}])},[(o=n.tool.types)!=null&&o.length?(k(),I("div",RU,[(k(!0),I(Ie,null,Ze(n.tool.types,({title:u,highlight:d})=>(k(),I("span",{class:Fe(["flex items-center gap-2 py-1 px-3 text-sm font-semibold rounded-full whitespace-nowrap leading-4",[d?"bg-dark-blue text-white":"bg-light-blue-100 text-slate-500"]])},[d?(k(),I("img",DU)):se("",!0),v("span",null,[(k(!0),I(Ie,null,Ze(u.split(" "),h=>(k(),I(Ie,null,[h?(k(),I("span",{key:0,class:Fe(["mr-[2px]",{"font-sans":h==="&"}])},ce(h),3)):se("",!0)],64))),256))])],2))),256))])):se("",!0),v("div",PU,ce(n.tool.name),1),n.tool.location?(k(),I("div",LU,ce(n.tool.location),1)):se("",!0),v("div",{ref:"descriptionContainerRef",class:Fe(["flex-grow h-full",{"overflow-hidden":s.needShowMore&&!s.showMore}])},[v("div",IU,[v("div",{innerHTML:n.tool.description},null,8,NU),s.needShowMore?(k(),I("div",{key:0,class:Fe(["flex justify-end bottom-0 right-0 bg-white pl-0.5 text-dark-blue",{absolute:!s.showMore,"w-full":s.showMore}])},[v("button",{onClick:t[0]||(t[0]=(...u)=>a.onToggleShowMore&&a.onToggleShowMore(...u))},ce(s.showMore?"Show less":"... Show more"),1)],2)):se("",!0)],512)],2),v("div",VU,[v("a",{class:"flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group",href:`/matchmaking-tool/${n.tool.slug}`},t[1]||(t[1]=[v("span",null,"View profile/contact",-1),v("div",{class:"flex gap-2 w-4 overflow-hidden"},[v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"}),v("img",{src:"/images/arrow-right-icon.svg",class:"min-w-4 duration-500 transform -translate-x-6 group-hover:translate-x-0 text-[#1C4DA1]"})],-1)]),8,FU)])],2)])}const Pw=vt(EU,[["render",$U]]),BU={components:{ToolCard:Pw,Multiselect:Ta,Pagination:ud,Tooltip:F1},props:{prpQuery:{type:String,default:""},prpLanguages:{type:Array,default:()=>[]},prpLocations:{type:Array,default:()=>[]},prpTypes:{type:Array,default:()=>[]},prpTopics:{type:Array,default:()=>[]},languages:{type:Array,default:()=>[]},locations:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},topics:{type:Array,default:()=>[]},support_types:{type:Array,default:()=>[]},locale:String},setup(e){console.log("props",{...e});const t=fe(!1),n=fe(e.prpQuery),r=fe(e.prpQuery),s=fe([]),a=fe(e.prpLanguages),o=fe(e.prpLocations),u=fe(e.prpTypes),d=fe(e.prpTopics),h=fe({}),f=fe({current_page:1,per_page:0,from:null,last_page:0,last_page_url:null,next_page_url:null,prev_page:null,prev_page_url:null,to:null,total:0}),p=fe([]),m=me(()=>e.types.map(B=>({id:B,name:B}))),y=me(()=>[{id:"organisation",name:"Organisations"},{id:"volunteer",name:"Volunteers"}]),w=me(()=>e.topics.map(B=>({id:B,name:B}))),_=me(()=>[...s.value,...a.value,...o.value,...u.value,...d.value]),C=B=>{const $=M=>M.id!==B.id;s.value=s.value.filter($),a.value=a.value.filter($),o.value=o.value.filter(M=>M.iso!==(B==null?void 0:B.iso)),u.value=u.value.filter($),d.value=d.value.filter($)},U=()=>{s.value=[],a.value=[],o.value=[],u.value=[],d.value=[]},F=()=>{window.scrollTo(0,0)},x=()=>{F(),E(!0)},E=(B=!1)=>{B||(f.value.current_page=1);const $={page:f.value.current_page,support_types:s.value.map(M=>M.id),languages:a.value.map(M=>M.id),locations:o.value.map(M=>M.iso),types:u.value.map(M=>M.id),topics:d.value.map(M=>M.id)};St.post("/matchmaking-tool/search",{},{params:$}).then(({data:M})=>{console.log(">>> data",M.data),p.value=M.data.map(T=>{var re,Q;const H={...T,avatar_dark:T.avatar_dark,avatar:T.avatar,types:[{title:"Online & In-person",highlight:!0},{title:"Ongoing availability"}]};return T.type==="volunteer"?{...H,name:`${T.first_name||""} ${T.last_name||""}`.trim(),location:T.location,description:T.description}:{...H,name:T.organisation_name,location:((Q=(re=e.locations)==null?void 0:re.find(({iso:ne})=>ne===T.country))==null?void 0:Q.name)||"",description:T.organisation_mission}}),console.log(">>> tools.value",JSON.parse(JSON.stringify(p.value))),f.value={per_page:M.per_page,current_page:M.current_page,from:M.from,last_page:M.last_page,last_page_url:M.last_page_url,next_page_url:M.next_page_url,prev_page:M.prev_page,prev_page_url:M.prev_page_url,to:M.to,total:M.total}})},V=(B,$)=>Rt($+"."+B.name);return Ft(()=>{E()}),{query:n,searchInput:r,selectedSupportTypes:s,selectedLanguages:a,selectedLocations:o,selectedTypes:u,selectedTopics:d,errors:h,pagination:f,tools:p,paginate:x,onSubmit:E,customLabel:V,showFilterModal:t,tags:_,removeSelectedItem:C,removeAllSelectedItems:U,typeOptions:m,supportTypeOptions:y,topicOptions:w}}},HU={class:"codeweek-matchmakingtool-component font-['Blinker'] bg-light-blue"},UU={class:"codeweek-container py-10"},jU={class:"flex md:hidden flex-shrink-0 justify-end w-full mb-6"},WU={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mb-12"},qU={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},YU={class:"language-json"},zU={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},KU={class:"language-json"},GU={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},JU={class:"language-json"},ZU={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},XU={class:"flex items-center text-[16px] leading-5 text-slate-500 mb-2"},QU={class:"language-json"},e7={key:0,class:"multiselect--values font-semibold text-[16px] truncate"},t7={class:"flex items-end"},n7={class:"text-base leading-7 font-semibold text-black normal-case"},r7={key:0,class:"flex md:justify-center"},s7={class:"max-md:w-full flex flex-wrap gap-2"},i7={class:"flex items-center gap-2"},a7=["onClick"],l7={class:"max-md:w-full max-md:mt-4 flex justify-center px-4"},o7={class:"relative pt-20 md:pt-48"},u7={class:"bg-yellow-50 pb-20"},c7={class:"relative z-10 codeweek-container"},d7={class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-10"};function f7(e,t,n,r,s,a){const o=at("multiselect"),u=at("Tooltip"),d=at("tool-card"),h=at("pagination");return k(),I("div",HU,[v("div",UU,[v("div",{class:Fe(["max-md:fixed left-0 top-[125px] z-[100] flex-col items-center w-full max-md:p-6 max-md:h-[calc(100dvh-125px)] max-md:overflow-auto max-md:bg-white duration-300",[r.showFilterModal?"flex":"max-md:hidden"]])},[v("div",jU,[v("button",{id:"search-menu-trigger-hide",class:"block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300",onClick:t[0]||(t[0]=f=>r.showFilterModal=!1)},t[9]||(t[9]=[v("img",{class:"w-6 h-6",src:"/images/close_menu_icon.svg"},null,-1)]))]),v("div",WU,[v("div",null,[t[12]||(t[12]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Support type ",-1)),he(o,{modelValue:r.selectedSupportTypes,"onUpdate:modelValue":t[1]||(t[1]=f=>r.selectedSupportTypes=f),class:"multi-select",options:r.supportTypeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type, e.g. volunteer",label:"Select type, e.g. volunteer","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",qU," Selected "+ce(f.length)+" "+ce(f.length>1?"types":"type"),1)):se("",!0)]),default:Te(()=>[v("pre",YU,[t[10]||(t[10]=ft(" ")),v("code",null,ce(r.selectedLanguages),1),t[11]||(t[11]=ft(` `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[13]||(t[13]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Language ",-1)),he(o,{modelValue:r.selectedLanguages,"onUpdate:modelValue":t[2]||(t[2]=f=>r.selectedLanguages=f),class:"multi-select",options:n.languages,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select language",label:"resources.resources.languages","custom-label":r.customLabel,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",zU," Selected "+ce(f.length)+" "+ce(f.length>1?"languages":"language"),1)):se("",!0)]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[16]||(t[16]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Location ",-1)),he(o,{modelValue:r.selectedLocations,"onUpdate:modelValue":t[3]||(t[3]=f=>r.selectedLocations=f),class:"multi-select",options:n.locations,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:"Select country/city",label:"Location","custom-label":f=>f.name,"track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",GU," Selected "+ce(f.length)+" "+ce(f.length>1?"locations":"location"),1)):se("",!0)]),default:Te(()=>[v("pre",KU,[t[14]||(t[14]=ft(" ")),v("code",null,ce(r.selectedLocations),1),t[15]||(t[15]=ft(` - `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[17]||(t[17]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Type of Organisation ",-1)),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=f=>r.selectedTypes=f),class:"multi-select",options:r.typeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type of organisation",label:"Type of Organisation","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",ZU," Selected "+ce(f.length)+" "+ce(f.length>1?"types":"type"),1)):se("",!0)]),default:Te(()=>[v("pre",JU,[v("code",null,ce(r.selectedTypes),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[v("label",XU,[t[20]||(t[20]=v("span",null,"Topics",-1)),he(u,{contentClass:"w-64"},{trigger:Te(()=>t[18]||(t[18]=[v("div",{class:"w-5 h-5 bg-dark-blue rounded-full flex justify-center items-center text-white ml-1.5 cursor-pointer text-xs"}," i ",-1)])),content:Te(()=>t[19]||(t[19]=[ft(" Select a topic to help match volunteers with the right digital skills for your needs — e.g. coding, robotics, online safety, etc. ")])),_:1})]),he(o,{modelValue:r.selectedTopics,"onUpdate:modelValue":t[5]||(t[5]=f=>r.selectedTopics=f),class:"multi-select",options:r.topicOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select topic, e.g. robotics",label:"Topics","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",e7," Selected "+ce(f.length)+" "+ce(f.length>1?"topics":"topic"),1)):se("",!0)]),default:Te(()=>[v("pre",QU,[v("code",null,ce(r.selectedTopics),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",t7,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[6]||(t[6]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",n7,ce(e.$t("resources.search")),1)])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[7]||(t[7]=f=>r.showFilterModal=!0)},t[21]||(t[21]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[ft(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(k(),I("div",r7,[v("div",s7,[(k(!0),I(Ie,null,Ze(r.tags,f=>(k(),I("div",{key:f.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",i7,[v("span",null,ce(f.name),1),v("button",{onClick:p=>r.removeSelectedItem(f)},t[22]||(t[22]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,a7)])]))),128)),v("div",l7,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[8]||(t[8]=(...f)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...f))}," Clear all filters ")])])])):se("",!0)]),v("div",o7,[t[23]||(t[23]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[24]||(t[24]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",u7,[v("div",c7,[v("div",d7,[(k(!0),I(Ie,null,Ze(r.tools,f=>(k(),it(d,{key:f.id,tool:f},null,8,["tool"]))),128))]),r.pagination.last_page>1?(k(),it(h,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):se("",!0)])])])])}const h7=vt(BU,[["render",f7]]),p7={props:{mapTileUrl:String,profile:{type:Object,default:()=>({})},locations:{type:Array,default:()=>[]}},setup(e){const t=fe([]),n=fe([]),r=me(()=>{try{const m=JSON.parse(e.profile);return console.log(">>> profile",m),m}catch(m){return console.error("Parse profile data error",m),{}}}),s=me(()=>r.value.type==="organisation"),a=m=>{if(typeof m!="string")return m;try{return JSON.parse(m)}catch{return[]}},o=me(()=>{var _,C,U,F;const m=r.value;if(m.type!=="organisation")return null;const y=[];m.organisation_mission&&y.push({title:"Introduction",list:[m.organisation_mission]}),(_=m.support_activities)!=null&&_.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:m.support_activities}),(C=m.target_school_types)!=null&&C.length&&y.push({title:"What types of schools are you most interested in working with?",list:m.target_school_types}),(U=m.digital_expertise_areas)!=null&&U.length&&y.push({title:"What areas of digital expertise does your organisation or you specialise in?",list:m.digital_expertise_areas}),m.description&&y.push({title:"Do you have any additional information or comments that could help us better match you with schools and educators?",list:[m.description]});const[w]=(m.website||"").split(",")||[];return{name:m.organisation_name,description:m.description,location:((F=e.locations.find(({iso:x})=>x===m.country))==null?void 0:F.name)||"",email:m.email,website:(w||"").trim(),abouts:y,short_intro:"",availabilities:[],phone:"",avatarDark:m.avatar_dark,avatar:m.avatar}}),u=me(()=>{var w,_;const m=r.value;if(m.type!=="volunteer")return null;const y=[];return m.description&&y.push({title:"Introduction",list:[m.description]}),m.organisation_name&&m.organisation_type&&y.push({title:"Organisation",list:[`Organisation name: ${m.organisation_name}`,`Organisation type: ${a(m.organisation_type)}`]}),m.why_volunteering&&y.push({title:"Why am I volunteering?",list:[m.why_volunteering]}),(w=m.support_activities)!=null&&w.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:a(m.support_activities)}),(_=m.languages)!=null&&_.length&&y.push({title:"Languages spoken",list:a(m.languages)}),{name:`${m.first_name||""} ${m.last_name}`.trim(),description:m.description,location:m.location,email:m.email,get_email_from:m.get_email_from,linkedin:m.linkedin,facebook:m.facebook,website:m.website,job_title:m.job_title,abouts:y,short_intro:"",availabilities:[],phone:"",avatar:m.avatar}}),d=me(()=>{const m=o.value||u.value||{};return m.linkedin&&!m.linkedin.startsWith("http")&&(m.linkedin=`https://${m.linkedin}`),m.facebook&&!m.facebook.startsWith("http")&&(m.facebook=`https://${m.facebook}`),m.website&&!m.website.startsWith("http")&&(m.website=`https://${m.website}`),m}),h=m=>{const y=n.value.filter(w=>w!==m);n.value.includes(m)?n.value=y:n.value=[...n.value,m]},f=(m,y)=>{m&&(t.value[y]=m)},p=async()=>{let m=[51,10];try{const _=await St("https://nominatim.openstreetmap.org/search",{params:{format:"json",q:d.value.location}});if(_.data&&_.data.length>0){const{lat:C,lon:U}=_.data[0];C&&U&&(m=[C,U])}}catch(_){console.log(_)}const y=L.map("map-id");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(y),console.log(m);const w=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:w}).addTo(y),y.setView(m,12)};return Ft(()=>{setTimeout(()=>{p()},2e3)}),{isOrganisation:s,data:d,descriptionRefs:t,showAboutIndexes:n,handleToggleAbout:h,setDescriptionRef:f}}},m7={id:"codeweek-matchmaking-tool",class:"font-['Blinker'] overflow-hidden"},g7={class:"relative flex overflow-hidden"},v7={class:"flex codeweek-container-lg py-10 tablet:py-20"},y7={class:"flex flex-col lg:flex-row gap-12 tablet:gap-20 xl:gap-32 2xl:gap-[260px]"},_7={class:"text-dark-blue text-[30px] md:text-4xl leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-6"},b7=["innerHTML"],w7={class:"text-dark-blue text-[22px] md:text-3xl leading-[36px] font-medium font-['Montserrat'] mb-6"},x7={class:"accordion"},k7={class:"bg-transparent border-b-2 border-solid border-[#A4B8D9]"},S7=["onClick"],T7={class:"text-[#20262C] font-semibold text-lg font-['Montserrat']"},A7={class:"flex flex-col gap-0 text-slate-500 text-xl font-normal w-full"},C7=["innerHTML"],E7={class:"flex-shrink-0 lg:max-w-[460px] w-full"},O7=["src"],M7={key:1,class:"rounded-xl h-full w-full object-cover",src:"/images/matchmaking-tool/tool-placeholder.png"},R7={class:"text-[#20262C] font-semibold text-lg p-0 mb-10"},D7={key:0},P7={key:0,class:"text-[#20262C] text-xl leading-[36px] font-medium font-['Montserrat'] mb-4 italic"},L7={class:"border-l-[4px] border-[#F95C22] pl-4"},I7=["innerHTML"],N7={class:"relative overflow-hidden"},V7={class:"codeweek-container-lg relative pt-20 pb-16 md:pt-40 md:pb-28"},F7={class:"bg-white px-5 py-10 lg:p-16 rounded-[32px] flex flex-col tablet:flex-row w-full gap-10 lg:gap-0"},$7={class:"flex-1"},B7={class:"flex gap-4 mb-6"},H7={class:"p-0 text-slate-500 text-xl font-normal capitalize"},U7={key:0,class:"flex gap-4 mb-6"},j7=["href"],W7={class:"flex gap-4 mb-6"},q7=["href"],Y7={key:1,class:"p-0 text-slate-500 text-xl font-normal capitalize"},z7={key:2,class:"p-0 text-slate-500 text-xl font-normal capitalize"},K7={key:1,class:"flex gap-4 mb-6"},G7=["href"],J7={key:2,class:"flex gap-4 mb-6"},Z7=["href"],X7={key:3,class:"flex gap-4 mb-6"},Q7=["href"],e9={key:4,class:"text-xl font-semibold text-[#20262C] mb-2"},t9={key:5,class:"flex gap-4"},n9={class:"flex flex-col gap-2"},r9={class:"grid grid-cols-2 gap-8"},s9={class:"p-0 text-slate-500 text-xl font-normal"},i9={class:"p-0 text-slate-500 text-xl font-normal"};function a9(e,t,n,r,s,a){var o,u;return k(),I("section",m7,[v("section",g7,[v("div",v7,[v("div",y7,[v("div",null,[v("h2",_7,ce(r.data.name),1),v("p",{class:"text-[#20262C] font-normal text-2xl p-0 mb-10",innerHTML:r.data.description},null,8,b7),v("h3",w7,ce(r.isOrganisation?"About our organization":"About me"),1),v("div",x7,[(k(!0),I(Ie,null,Ze(r.data.abouts,(d,h)=>{var f;return k(),I("div",k7,[v("div",{class:"py-4 cursor-pointer flex items-center justify-between duration-300",onClick:p=>r.handleToggleAbout(h)},[v("p",T7,ce(d.title),1),v("div",{class:Fe(["rounded-full min-w-12 min-h-12 duration-300 flex justify-center items-center ml-8",[r.showAboutIndexes.includes(h)?"bg-primary hover:bg-hover-orange":"bg-yellow hover:bg-primary"]])},[v("div",{class:Fe(["duration-300",[r.showAboutIndexes.includes(h)&&"rotate-180"]])},t[0]||(t[0]=[v("img",{src:"/images/digital-girls/arrow.svg"},null,-1)]),2)],2)],8,S7),v("div",{class:"flex overflow-hidden transition-all duration-300 min-h-[1px] h-full",ref_for:!0,ref:p=>r.setDescriptionRef(p,h),style:bn({height:r.showAboutIndexes.includes(h)?`${(f=r.descriptionRefs[h])==null?void 0:f.scrollHeight}px`:0})},[v("div",A7,[(k(!0),I(Ie,null,Ze(d.list,p=>(k(),I("p",{class:"p-0 pb-4 w-full",innerHTML:p},null,8,C7))),256))])],4)])}),256))])]),v("div",E7,[v("div",{class:Fe(["flex justify-center items-center rounded-xl border-2 border-[#ADB2B6] mb-4 aspect-square",[r.isOrganisation&&"p-6",r.data.avatarDark&&"bg-stone-800"]])},[r.data.avatar?(k(),I("img",{key:0,class:"rounded-xl w-full",src:r.data.avatar},null,8,O7)):(k(),I("img",M7))],2),v("p",R7,[ft(ce(r.data.name)+" ",1),r.data.job_title?(k(),I("span",D7,", "+ce(r.data.job_title),1)):se("",!0)]),r.data.short_intro?(k(),I("p",P7,ce(r.data.short_intro),1)):se("",!0),v("div",L7,[v("p",{class:"p-0 text-slate-500 text-xl font-normal",innerHTML:r.data.description},null,8,I7)])])])])]),v("section",N7,[t[12]||(t[12]=v("div",{class:"absolute w-full h-full bg-yellow-50 md:hidden",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[13]||(t[13]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden md:block lg:hidden",style:{"clip-path":"ellipse(188% 90% at 50% 90%)"}},null,-1)),t[14]||(t[14]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden lg:block xl:hidden",style:{"clip-path":"ellipse(128% 90% at 50% 90%)"}},null,-1)),t[15]||(t[15]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden xl:block",style:{"clip-path":"ellipse(93% 90% at 50% 90%)"}},null,-1)),v("div",V7,[t[11]||(t[11]=v("h2",{class:"text-dark-blue tablet:text-center text-[30px] md:text-4xl leading-7 md:leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-10 tablet:mb-8"}," Contact details ",-1)),v("div",F7,[v("div",$7,[t[8]||(t[8]=v("h3",{class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-4"}," Location ",-1)),t[9]||(t[9]=v("span",{class:"bg-dark-blue text-white py-1 px-4 text-sm font-semibold rounded-full whitespace-nowrap flex items-center gap-2 w-fit mb-6"},[v("img",{src:"/images/star-white.svg",class:"w-4 h-4"}),v("span",null,[ft(" Can teach Online "),v("span",{class:"font-sans"},"&"),ft(" In-person ")])],-1)),v("div",B7,[t[1]||(t[1]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",null,[v("p",H7,ce(r.data.location),1)])]),r.data.phone?(k(),I("div",U7,[t[2]||(t[2]=v("img",{src:"/images/phone.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.phone},ce(r.data.phone),9,j7)])):se("",!0),v("div",W7,[t[3]||(t[3]=v("img",{src:"/images/message.svg",class:"w-6 h-6"},null,-1)),r.data.email?(k(),I("a",{key:0,class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:`mailto:${r.data.email}`},ce(r.data.email),9,q7)):r.data.get_email_from?(k(),I("p",Y7,ce(r.data.get_email_from),1)):(k(),I("p",z7," Anonymous "))]),r.data.linkedin?(k(),I("div",K7,[t[4]||(t[4]=v("img",{src:"/images/social/linkedin.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.linkedin}," LinkedIn ",8,G7)])):se("",!0),r.data.facebook?(k(),I("div",J7,[t[5]||(t[5]=v("img",{src:"/images/social/facebook.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.facebook}," Facebook ",8,Z7)])):se("",!0),r.data.website?(k(),I("div",X7,[t[6]||(t[6]=v("img",{src:"/images/profile.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.website}," Website ",8,Q7)])):se("",!0),(o=r.data.availabilities)!=null&&o.length?(k(),I("div",e9," My availability ")):se("",!0),(u=r.data.availabilities)!=null&&u.length?(k(),I("div",t9,[t[7]||(t[7]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",n9,[(k(!0),I(Ie,null,Ze(r.data.availabilities,({dateText:d,timeText:h})=>(k(),I("div",r9,[v("p",s9,ce(d),1),v("p",i9,ce(h),1)]))),256))])])):se("",!0)]),t[10]||(t[10]=v("div",{class:"flex-1"},[v("div",{id:"map-id",class:"relative z-50 w-full h-64 md:h-full md:min-h-96 rounded-2xl bg-gray-100"})],-1))])])])])}const l9=vt(p7,[["render",a9]]),o9={props:["user"],components:{ImageUpload:qp,Flash:od},data(){return{avatar:this.user.avatar_path}},computed:{canUpdate(){return console.log("user",this.user),this.$authorize(e=>e.id===this.user.id)},hasAvatar(){return console.log(this.avatar),this.avatar.split("/").pop()!=="default.png"}},methods:{onLoad(e){this.persist(e.file)},persist(e){let t=new FormData;t.append("avatar",e),axios.post(`/api/users/${this.user.id}/avatar`,t).then(n=>{this.avatar=n.data.path,ei.emit("flash",{message:"Avatar uploaded!",level:"success"})})},remove(){console.log("delete me"),axios.delete("/api/users/avatar").then(()=>ei.emit("flash",{message:"Avatar Deleted!",level:"success"})),this.avatar="https://s3-eu-west-1.amazonaws.com/codeweek-dev/avatars/default.png"}}},u9={class:"flex flex-col tablet:flex-row tablet:items-center gap-6 tablet:gap-14"},c9={class:"flex"},d9={class:"relative"},f9=["src"],h9={key:0,method:"POST",enctype:"multipart/form-data",class:"absolute bottom-0 left-0"},p9={style:{display:"flex","align-items":"flex-end","margin-left":"-35px"}},m9={class:"text-white font-normal text-3xl tablet:font-medium tablet:text-5xl font-['Montserrat'] mb-6"};function g9(e,t,n,r,s,a){const o=at("image-upload");return k(),I("div",u9,[v("div",c9,[v("div",d9,[v("img",{src:s.avatar,class:"w-40 h-40 rounded-full border-4 border-solid border-dark-blue-300"},null,8,f9),a.canUpdate?(k(),I("form",h9,[he(o,{name:"avatar",class:"mr-1",onLoaded:a.onLoad},null,8,["onLoaded"])])):se("",!0),v("div",p9,[Dn(v("button",{class:"absolute !bottom-0 !right-0 flex justify-center items-center !h-10 !w-10 !p-0 bg-[#FE6824] rounded-full !border-2 !border-solid !border-white",onClick:t[0]||(t[0]=(...u)=>a.remove&&a.remove(...u))},t[1]||(t[1]=[v("img",{class:"w-5 h-5",src:"/images/trash.svg"},null,-1)]),512),[[Vr,a.hasAvatar]])])])]),v("div",null,[v("h1",m9,ce(n.user.fullName),1),t[2]||(t[2]=v("p",{class:"text-xl font-normal text-white p-0 max-md:max-w-full max-w-[864px]"}," Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero. ",-1))])])}const v9=vt(o9,[["render",g9]]),y9={install(e){e.config.globalProperties.$authorize=function(...t){return window.App.signedIn?typeof t[0]=="string"?authorizations[t[0]](t[1]):t[0](window.App.user):!1}}},_9={data(){return{images:[{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Consortium partner visual representation"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 1"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 2"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Gallery image 3"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 4"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 5"}],currentIndex:0}},methods:{nextImage(){this.currentIndex=(this.currentIndex+1)%this.images.length,this.scrollToThumbnail()},prevImage(){this.currentIndex=this.currentIndex===0?this.images.length-1:this.currentIndex-1,this.scrollToThumbnail()},selectImage(e){this.currentIndex=e,this.scrollToThumbnail()},scrollToThumbnail(){const e=this.$refs.thumbnailGallery,t=e.clientWidth/3,n=Math.max(0,(this.currentIndex-1)*t);e.scrollTo({left:n,behavior:"smooth"})}}},b9={class:"flex flex-col pt-3.5"},w9={class:"flex py-4 md:py-20 relative flex-col mt-3.5 w-full bg-aqua max-md:max-w-full items-center"},x9={class:"z-0 flex flex-col items-start justify-between max-w-full gap-10 p-10 md:px-24"},k9={class:"grid w-full grid-cols-1 md:grid-cols-2 gap-x-8"},S9={class:"flex items-start justify-start"},T9=["src","alt"],A9={class:"w-full overflow-hidden image-gallery"},C9={ref:"thumbnailGallery",class:"flex gap-4 overflow-x-auto flex-nowrap"},E9=["src","alt","onClick"],O9={class:"flex justify-end w-full mt-4 image-gallery-controls"},M9={class:"flex flex-wrap items-center gap-5"};function R9(e,t,n,r,s,a){return k(),I("section",b9,[v("div",w9,[v("div",x9,[v("div",k9,[t[2]||(t[2]=vp('

Consortium Partner

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

Website link
',1)),v("div",S9,[v("img",{src:s.images[s.currentIndex].src,alt:s.images[s.currentIndex].alt,class:"main-image object-contain aspect-[1.63] w-full md:w-[480px] max-md:max-w-full"},null,8,T9)])]),v("div",A9,[v("div",C9,[(k(!0),I(Ie,null,Ze(s.images,(o,u)=>(k(),I("img",{key:u,src:o.src,alt:"Gallery image "+(u+1),class:Fe([{"border-2 border-orange-500":s.currentIndex===u},"thumbnail cursor-pointer object-contain shrink-0 aspect-[1.5] min-h-[120px] w-[calc(33.33%-8px)]"]),onClick:d=>a.selectImage(u)},null,10,E9))),128))],512)]),v("div",O9,[v("div",M9,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.prevImage&&a.prevImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[3]||(t[3]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M19 22L13 16L19 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{onClick:t[1]||(t[1]=(...o)=>a.nextImage&&a.nextImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[4]||(t[4]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M13 22L19 16L13 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])])])])}const D9=vt(_9,[["render",R9],["__scopeId","data-v-5aad3e31"]]),qt=yc({});qt.use(y9);qt.use(bL,{resolve:async e=>await Object.assign({"../lang/php_al.json":()=>Vt(()=>import("./php_al-D8P-KLno.js"),[]),"../lang/php_ba.json":()=>Vt(()=>import("./php_ba-bQ14kMsE.js"),[]),"../lang/php_bg.json":()=>Vt(()=>import("./php_bg-DLkZCgH8.js"),[]),"../lang/php_cs.json":()=>Vt(()=>import("./php_cs-Cww_VtMV.js"),[]),"../lang/php_da.json":()=>Vt(()=>import("./php_da-qo4ENfuW.js"),[]),"../lang/php_de.json":()=>Vt(()=>import("./php_de-CRtnySZV.js"),[]),"../lang/php_el.json":()=>Vt(()=>import("./php_el-VOHJmvo5.js"),[]),"../lang/php_en.json":()=>Vt(()=>import("./php_en-C2_F76So.js"),[]),"../lang/php_es.json":()=>Vt(()=>import("./php_es-CV0uqwd3.js"),[]),"../lang/php_et.json":()=>Vt(()=>import("./php_et-CC-USrcb.js"),[]),"../lang/php_fi.json":()=>Vt(()=>import("./php_fi-DbqUa0St.js"),[]),"../lang/php_fr.json":()=>Vt(()=>import("./php_fr-Dn2R__FD.js"),[]),"../lang/php_hr.json":()=>Vt(()=>import("./php_hr-Bh4kWjtd.js"),[]),"../lang/php_hu.json":()=>Vt(()=>import("./php_hu-Dh0jmQJh.js"),[]),"../lang/php_it.json":()=>Vt(()=>import("./php_it-Bg3vOCbN.js"),[]),"../lang/php_lt.json":()=>Vt(()=>import("./php_lt-Dds-hGHB.js"),[]),"../lang/php_lv.json":()=>Vt(()=>import("./php_lv-sauYnkA-.js"),[]),"../lang/php_me.json":()=>Vt(()=>import("./php_me-BiU-pECO.js"),[]),"../lang/php_mk.json":()=>Vt(()=>import("./php_mk-CeECQLhN.js"),[]),"../lang/php_mt.json":()=>Vt(()=>import("./php_mt-B09LotaU.js"),[]),"../lang/php_nl.json":()=>Vt(()=>import("./php_nl-BqTbc71y.js"),[]),"../lang/php_pl.json":()=>Vt(()=>import("./php_pl-DaiFc7d1.js"),[]),"../lang/php_pt.json":()=>Vt(()=>import("./php_pt-DuJ3IKbv.js"),[]),"../lang/php_ro.json":()=>Vt(()=>import("./php_ro-Cu37UcuE.js"),[]),"../lang/php_rs.json":()=>Vt(()=>import("./php_rs-DZeE19on.js"),[]),"../lang/php_sk.json":()=>Vt(()=>import("./php_sk-ws0JJFon.js"),[]),"../lang/php_sl.json":()=>Vt(()=>import("./php_sl-DvOUTlna.js"),[]),"../lang/php_sv.json":()=>Vt(()=>import("./php_sv-BLMEOSxF.js"),[]),"../lang/php_tr.json":()=>Vt(()=>import("./php_tr-0h2TWv2K.js"),[]),"../lang/php_ua.json":()=>Vt(()=>import("./php_ua-n2LDUyQj.js"),[])})[`../lang/${e}.json`]()});qt.component("ActivityForm",t4);qt.component("ResourceForm",pV);qt.component("ResourceCard",H1);qt.component("ResourcePill",B1);qt.component("Pagination",ud);qt.component("Singleselect",_V);qt.component("Multiselect",SV);qt.component("CountrySelect",EV);qt.component("ModerateEvent",KV);qt.component("ReportEvent",U8);qt.component("AutocompleteGeo",vF);qt.component("DateTime",DB);qt.component("Question",WB);qt.component("PictureForm",XB);qt.component("Flash",od);qt.component("InputTags",R8);qt.component("SearchPageComponent",CU);qt.component("AvatarForm",v9);qt.component("PartnerGallery",D9);qt.component("MatchMakingToolForm",h7);qt.component("ToolCard",Pw);qt.component("ToolDetailCard",l9);qt.component("EventCard",Dw);qt.component("EventDetail",rU);qt.mount("#app"); + `))])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[t[17]||(t[17]=v("label",{class:"block text-[16px] leading-5 text-slate-500 mb-2"}," Type of Organisation ",-1)),he(o,{modelValue:r.selectedTypes,"onUpdate:modelValue":t[4]||(t[4]=f=>r.selectedTypes=f),class:"multi-select",options:r.typeOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select type of organisation",label:"Type of Organisation","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",ZU," Selected "+ce(f.length)+" "+ce(f.length>1?"types":"type"),1)):se("",!0)]),default:Te(()=>[v("pre",JU,[v("code",null,ce(r.selectedTypes),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",null,[v("label",XU,[t[20]||(t[20]=v("span",null,"Topics",-1)),he(u,{contentClass:"w-64"},{trigger:Te(()=>t[18]||(t[18]=[v("div",{class:"w-5 h-5 bg-dark-blue rounded-full flex justify-center items-center text-white ml-1.5 cursor-pointer text-xs"}," i ",-1)])),content:Te(()=>t[19]||(t[19]=[ft(" Select a topic to help match volunteers with the right digital skills for your needs — e.g. coding, robotics, online safety, etc. ")])),_:1})]),he(o,{modelValue:r.selectedTopics,"onUpdate:modelValue":t[5]||(t[5]=f=>r.selectedTopics=f),class:"multi-select",options:r.topicOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,"custom-label":f=>f.name,placeholder:"Select topic, e.g. robotics",label:"Topics","track-by":"name","preselect-first":!1},{selection:Te(({values:f})=>[f.length>0?(k(),I("div",e7," Selected "+ce(f.length)+" "+ce(f.length>1?"topics":"topic"),1)):se("",!0)]),default:Te(()=>[v("pre",QU,[v("code",null,ce(r.selectedTopics),1)])]),_:1},8,["modelValue","options","custom-label"])]),v("div",t7,[v("button",{class:"w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300",onClick:t[6]||(t[6]=()=>{r.showFilterModal=!1,r.onSubmit()})},[v("span",n7,ce(e.$t("resources.search")),1)])])])],2),v("button",{class:"block md:hidden w-full bg-[#F95C22] rounded-full py-2.5 px-6 font-['Blinker'] hover:bg-hover-orange duration-300 mb-8",onClick:t[7]||(t[7]=f=>r.showFilterModal=!0)},t[21]||(t[21]=[v("span",{class:"flex gap-2 justify-center items-center text-base leading-7 font-semibold text-black normal-case"},[ft(" Filter and search "),v("img",{class:"w-5 h-5",src:"/images/filter.svg"})],-1)])),r.tags.length?(k(),I("div",r7,[v("div",s7,[(k(!0),I(Ie,null,Ze(r.tags,f=>(k(),I("div",{key:f.id,class:"bg-light-blue-100 pl-4 pr-3 py-1 rounded-full text-slate-500 text-[16px] font-semibold"},[v("div",i7,[v("span",null,ce(f.name),1),v("button",{onClick:p=>r.removeSelectedItem(f)},t[22]||(t[22]=[v("img",{class:"w-4 h-4",src:"/images/close-icon.svg"},null,-1)]),8,a7)])]))),128)),v("div",l7,[v("button",{class:"text-dark-blue underline font-semibold text-[16px]",onClick:t[8]||(t[8]=(...f)=>r.removeAllSelectedItems&&r.removeAllSelectedItems(...f))}," Clear all filters ")])])])):se("",!0)]),v("div",o7,[t[23]||(t[23]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 md:hidden top-0",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[24]||(t[24]=v("div",{class:"absolute w-full h-[800px] bg-yellow-50 hidden md:block top-0",style:{"clip-path":"ellipse(88% 90% at 50% 90%)"}},null,-1)),v("div",u7,[v("div",c7,[v("div",d7,[(k(!0),I(Ie,null,Ze(r.tools,f=>(k(),it(d,{key:f.id,tool:f},null,8,["tool"]))),128))]),r.pagination.last_page>1?(k(),it(h,{key:0,pagination:r.pagination,offset:5,onPaginate:r.paginate},null,8,["pagination","onPaginate"])):se("",!0)])])])])}const h7=vt(BU,[["render",f7]]),p7={props:{mapTileUrl:String,profile:{type:Object,default:()=>({})},locations:{type:Array,default:()=>[]}},setup(e){const t=fe([]),n=fe([]),r=me(()=>{try{const m=JSON.parse(e.profile);return console.log(">>> profile",m),m}catch(m){return console.error("Parse profile data error",m),{}}}),s=me(()=>r.value.type==="organisation"),a=m=>{if(typeof m!="string")return m;try{return JSON.parse(m)}catch{return[]}},o=me(()=>{var _,C,U,F;const m=r.value;if(m.type!=="organisation")return null;const y=[];m.organisation_mission&&y.push({title:"Introduction",list:[m.organisation_mission]}),(_=m.support_activities)!=null&&_.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:m.support_activities}),(C=m.target_school_types)!=null&&C.length&&y.push({title:"What types of schools are you most interested in working with?",list:m.target_school_types}),(U=m.digital_expertise_areas)!=null&&U.length&&y.push({title:"What areas of digital expertise does your organisation or you specialise in?",list:m.digital_expertise_areas}),m.description&&y.push({title:"Do you have any additional information or comments that could help us better match you with schools and educators?",list:[m.description]});const[w]=(m.website||"").split(",")||[];return{name:m.organisation_name,description:m.description,location:((F=e.locations.find(({iso:x})=>x===m.country))==null?void 0:F.name)||"",email:m.email,website:(w||"").trim(),abouts:y,short_intro:"",availabilities:[],phone:"",avatarDark:m.avatar_dark,avatar:m.avatar}}),u=me(()=>{var w,_;const m=r.value;if(m.type!=="volunteer")return null;const y=[];return m.description&&y.push({title:"Introduction",list:[m.description]}),m.organisation_name&&m.organisation_type&&y.push({title:"Organisation",list:[`Organisation name: ${m.organisation_name}`,`Organisation type: ${a(m.organisation_type)}`]}),m.why_volunteering&&y.push({title:"Why am I volunteering?",list:[m.why_volunteering]}),(w=m.support_activities)!=null&&w.length&&y.push({title:"What kind of activities or support can you offer to schools and educators?",list:a(m.support_activities)}),(_=m.languages)!=null&&_.length&&y.push({title:"Languages spoken",list:a(m.languages)}),{name:`${m.first_name||""} ${m.last_name}`.trim(),description:m.description,location:m.location,email:m.email,get_email_from:m.get_email_from,linkedin:m.linkedin,facebook:m.facebook,website:m.website,job_title:m.job_title,abouts:y,short_intro:"",availabilities:[],phone:"",avatar:m.avatar}}),d=me(()=>{const m=o.value||u.value||{};return m.linkedin&&!m.linkedin.startsWith("http")&&(m.linkedin=`https://${m.linkedin}`),m.facebook&&!m.facebook.startsWith("http")&&(m.facebook=`https://${m.facebook}`),m.website&&!m.website.startsWith("http")&&(m.website=`https://${m.website}`),m}),h=m=>{const y=n.value.filter(w=>w!==m);n.value.includes(m)?n.value=y:n.value=[...n.value,m]},f=(m,y)=>{m&&(t.value[y]=m)},p=async()=>{let m=[51,10];try{const _=await St("https://nominatim.openstreetmap.org/search",{params:{format:"json",q:d.value.location}});if(_.data&&_.data.length>0){const{lat:C,lon:U}=_.data[0];C&&U&&(m=[C,U])}}catch(_){console.log(_)}const y=L.map("map-id");L.tileLayer(e.mapTileUrl,{maxZoom:18,attribution:'© Mapbox',tileSize:512,zoomOffset:-1,zoomControl:!1}).addTo(y),console.log(m);const w=L.icon({iconUrl:"/images/marker-orange.svg",iconSize:[44,62],iconAnchor:[22,62],popupAnchor:[0,-60]});L.marker(m,{icon:w}).addTo(y),y.setView(m,12)};return Ft(()=>{setTimeout(()=>{p()},2e3)}),{isOrganisation:s,data:d,descriptionRefs:t,showAboutIndexes:n,handleToggleAbout:h,setDescriptionRef:f}}},m7={id:"codeweek-matchmaking-tool",class:"font-['Blinker'] overflow-hidden"},g7={class:"relative flex overflow-hidden"},v7={class:"flex codeweek-container-lg py-10 tablet:py-20"},y7={class:"flex flex-col lg:flex-row gap-12 tablet:gap-20 xl:gap-32 2xl:gap-[260px]"},_7={class:"text-dark-blue text-[30px] md:text-4xl leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-6"},b7=["innerHTML"],w7={class:"text-dark-blue text-[22px] md:text-3xl leading-[36px] font-medium font-['Montserrat'] mb-6"},x7={class:"accordion"},k7={class:"bg-transparent border-b-2 border-solid border-[#A4B8D9]"},S7=["onClick"],T7={class:"text-[#20262C] font-semibold text-lg font-['Montserrat']"},A7={class:"flex flex-col gap-0 text-slate-500 text-xl font-normal w-full"},C7=["innerHTML"],E7={class:"flex-shrink-0 lg:max-w-[460px] w-full"},O7=["src"],M7={key:1,class:"rounded-xl h-full w-full object-cover",src:"/images/matchmaking-tool/tool-placeholder.png"},R7={class:"text-[#20262C] font-semibold text-lg p-0 mb-10"},D7={key:0},P7={key:0,class:"text-[#20262C] text-xl leading-[36px] font-medium font-['Montserrat'] mb-4 italic"},L7={class:"border-l-[4px] border-[#F95C22] pl-4"},I7=["innerHTML"],N7={class:"relative overflow-hidden"},V7={class:"codeweek-container-lg relative pt-20 pb-16 md:pt-40 md:pb-28"},F7={class:"bg-white px-5 py-10 lg:p-16 rounded-[32px] flex flex-col tablet:flex-row w-full gap-10 lg:gap-0"},$7={class:"flex-1"},B7={class:"flex gap-4 mb-6"},H7={class:"p-0 text-slate-500 text-xl font-normal capitalize"},U7={key:0,class:"flex gap-4 mb-6"},j7=["href"],W7={class:"flex gap-4 mb-6"},q7=["href"],Y7={key:1,class:"p-0 text-slate-500 text-xl font-normal capitalize"},z7={key:2,class:"p-0 text-slate-500 text-xl font-normal capitalize"},K7={key:1,class:"flex gap-4 mb-6"},G7=["href"],J7={key:2,class:"flex gap-4 mb-6"},Z7=["href"],X7={key:3,class:"flex gap-4 mb-6"},Q7=["href"],e9={key:4,class:"text-xl font-semibold text-[#20262C] mb-2"},t9={key:5,class:"flex gap-4"},n9={class:"flex flex-col gap-2"},r9={class:"grid grid-cols-2 gap-8"},s9={class:"p-0 text-slate-500 text-xl font-normal"},i9={class:"p-0 text-slate-500 text-xl font-normal"};function a9(e,t,n,r,s,a){var o,u;return k(),I("section",m7,[v("section",g7,[v("div",v7,[v("div",y7,[v("div",null,[v("h2",_7,ce(r.data.name),1),v("p",{class:"text-[#20262C] font-normal text-2xl p-0 mb-10",innerHTML:r.data.description},null,8,b7),v("h3",w7,ce(r.isOrganisation?"About our organization":"About me"),1),v("div",x7,[(k(!0),I(Ie,null,Ze(r.data.abouts,(d,h)=>{var f;return k(),I("div",k7,[v("div",{class:"py-4 cursor-pointer flex items-center justify-between duration-300",onClick:p=>r.handleToggleAbout(h)},[v("p",T7,ce(d.title),1),v("div",{class:Fe(["rounded-full min-w-12 min-h-12 duration-300 flex justify-center items-center ml-8",[r.showAboutIndexes.includes(h)?"bg-primary hover:bg-hover-orange":"bg-yellow hover:bg-primary"]])},[v("div",{class:Fe(["duration-300",[r.showAboutIndexes.includes(h)&&"rotate-180"]])},t[0]||(t[0]=[v("img",{src:"/images/digital-girls/arrow.svg"},null,-1)]),2)],2)],8,S7),v("div",{class:"flex overflow-hidden transition-all duration-300 min-h-[1px] h-full",ref_for:!0,ref:p=>r.setDescriptionRef(p,h),style:bn({height:r.showAboutIndexes.includes(h)?`${(f=r.descriptionRefs[h])==null?void 0:f.scrollHeight}px`:0})},[v("div",A7,[(k(!0),I(Ie,null,Ze(d.list,p=>(k(),I("p",{class:"p-0 pb-4 w-full",innerHTML:p},null,8,C7))),256))])],4)])}),256))])]),v("div",E7,[v("div",{class:Fe(["flex justify-center items-center rounded-xl border-2 border-[#ADB2B6] mb-4 aspect-square",[r.isOrganisation&&"p-6",r.data.avatarDark&&"bg-stone-800"]])},[r.data.avatar?(k(),I("img",{key:0,class:"rounded-xl w-full",src:r.data.avatar},null,8,O7)):(k(),I("img",M7))],2),v("p",R7,[ft(ce(r.data.name)+" ",1),r.data.job_title?(k(),I("span",D7,", "+ce(r.data.job_title),1)):se("",!0)]),r.data.short_intro?(k(),I("p",P7,ce(r.data.short_intro),1)):se("",!0),v("div",L7,[v("p",{class:"p-0 text-slate-500 text-xl font-normal",innerHTML:r.data.description},null,8,I7)])])])])]),v("section",N7,[t[12]||(t[12]=v("div",{class:"absolute w-full h-full bg-yellow-50 md:hidden",style:{"clip-path":"ellipse(270% 90% at 38% 90%)"}},null,-1)),t[13]||(t[13]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden md:block lg:hidden",style:{"clip-path":"ellipse(188% 90% at 50% 90%)"}},null,-1)),t[14]||(t[14]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden lg:block xl:hidden",style:{"clip-path":"ellipse(128% 90% at 50% 90%)"}},null,-1)),t[15]||(t[15]=v("div",{class:"absolute w-full h-full bg-yellow-50 hidden xl:block",style:{"clip-path":"ellipse(93% 90% at 50% 90%)"}},null,-1)),v("div",V7,[t[11]||(t[11]=v("h2",{class:"text-dark-blue tablet:text-center text-[30px] md:text-4xl leading-7 md:leading-[44px] font-normal md:font-medium font-['Montserrat'] mb-10 tablet:mb-8"}," Contact details ",-1)),v("div",F7,[v("div",$7,[t[8]||(t[8]=v("h3",{class:"text-dark-blue text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-4"}," Location ",-1)),t[9]||(t[9]=v("span",{class:"bg-dark-blue text-white py-1 px-4 text-sm font-semibold rounded-full whitespace-nowrap flex items-center gap-2 w-fit mb-6"},[v("img",{src:"/images/star-white.svg",class:"w-4 h-4"}),v("span",null,[ft(" Can teach Online "),v("span",{class:"font-sans"},"&"),ft(" In-person ")])],-1)),v("div",B7,[t[1]||(t[1]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",null,[v("p",H7,ce(r.data.location),1)])]),r.data.phone?(k(),I("div",U7,[t[2]||(t[2]=v("img",{src:"/images/phone.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.phone},ce(r.data.phone),9,j7)])):se("",!0),v("div",W7,[t[3]||(t[3]=v("img",{src:"/images/message.svg",class:"w-6 h-6"},null,-1)),r.data.email?(k(),I("a",{key:0,class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:`mailto:${r.data.email}`},ce(r.data.email),9,q7)):r.data.get_email_from?(k(),I("p",Y7,ce(r.data.get_email_from),1)):(k(),I("p",z7," Anonymous "))]),r.data.linkedin?(k(),I("div",K7,[t[4]||(t[4]=v("img",{src:"/images/social/linkedin.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.linkedin}," LinkedIn ",8,G7)])):se("",!0),r.data.facebook?(k(),I("div",J7,[t[5]||(t[5]=v("img",{src:"/images/social/facebook.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.facebook}," Facebook ",8,Z7)])):se("",!0),r.data.website?(k(),I("div",X7,[t[6]||(t[6]=v("img",{src:"/images/profile.svg",class:"w-6 h-6"},null,-1)),v("a",{class:"text-dark-blue underline cursor-pointer text-xl font-semibold",href:r.data.website}," Website ",8,Q7)])):se("",!0),(o=r.data.availabilities)!=null&&o.length?(k(),I("div",e9," My availability ")):se("",!0),(u=r.data.availabilities)!=null&&u.length?(k(),I("div",t9,[t[7]||(t[7]=v("img",{src:"/images/map.svg",class:"w-6 h-6"},null,-1)),v("div",n9,[(k(!0),I(Ie,null,Ze(r.data.availabilities,({dateText:d,timeText:h})=>(k(),I("div",r9,[v("p",s9,ce(d),1),v("p",i9,ce(h),1)]))),256))])])):se("",!0)]),t[10]||(t[10]=v("div",{class:"flex-1"},[v("div",{id:"map-id",class:"relative z-50 w-full h-64 md:h-full md:min-h-96 rounded-2xl bg-gray-100"})],-1))])])])])}const l9=vt(p7,[["render",a9]]),o9={props:["user"],components:{ImageUpload:qp,Flash:od},data(){return{avatar:this.user.avatar_path}},computed:{canUpdate(){return console.log("user",this.user),this.$authorize(e=>e.id===this.user.id)},hasAvatar(){return console.log(this.avatar),this.avatar.split("/").pop()!=="default.png"}},methods:{onLoad(e){this.persist(e.file)},persist(e){let t=new FormData;t.append("avatar",e),axios.post(`/api/users/${this.user.id}/avatar`,t).then(n=>{this.avatar=n.data.path,ei.emit("flash",{message:"Avatar uploaded!",level:"success"})})},remove(){console.log("delete me"),axios.delete("/api/users/avatar").then(()=>ei.emit("flash",{message:"Avatar Deleted!",level:"success"})),this.avatar="https://s3-eu-west-1.amazonaws.com/codeweek-dev/avatars/default.png"}}},u9={class:"flex flex-col tablet:flex-row tablet:items-center gap-6 tablet:gap-14"},c9={class:"flex"},d9={class:"relative"},f9=["src"],h9={key:0,method:"POST",enctype:"multipart/form-data",class:"absolute bottom-0 left-0"},p9={style:{display:"flex","align-items":"flex-end","margin-left":"-35px"}},m9={class:"text-white font-normal text-3xl tablet:font-medium tablet:text-5xl font-['Montserrat'] mb-6"};function g9(e,t,n,r,s,a){const o=at("image-upload");return k(),I("div",u9,[v("div",c9,[v("div",d9,[v("img",{src:s.avatar,class:"w-40 h-40 rounded-full border-4 border-solid border-dark-blue-300"},null,8,f9),a.canUpdate?(k(),I("form",h9,[he(o,{name:"avatar",class:"mr-1",onLoaded:a.onLoad},null,8,["onLoaded"])])):se("",!0),v("div",p9,[Dn(v("button",{class:"absolute !bottom-0 !right-0 flex justify-center items-center !h-10 !w-10 !p-0 bg-[#FE6824] rounded-full !border-2 !border-solid !border-white",onClick:t[0]||(t[0]=(...u)=>a.remove&&a.remove(...u))},t[1]||(t[1]=[v("img",{class:"w-5 h-5",src:"/images/trash.svg"},null,-1)]),512),[[Vr,a.hasAvatar]])])])]),v("div",null,[v("h1",m9,ce(n.user.fullName),1)])])}const v9=vt(o9,[["render",g9]]),y9={install(e){e.config.globalProperties.$authorize=function(...t){return window.App.signedIn?typeof t[0]=="string"?authorizations[t[0]](t[1]):t[0](window.App.user):!1}}},_9={data(){return{images:[{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Consortium partner visual representation"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 1"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 2"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/1e054358a7188baf8777a09512012cf16ab84970ef1c7610feb6dad13e504666",alt:"Gallery image 3"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/2972cd5748880295748a9baa3e8fe3c996a0cdc09d86b46dbc72790d1cbc0655",alt:"Gallery image 4"},{src:"https://cdn.builder.io/api/v1/image/assets/TEMP/fb06d640ec9446e59ef5e3fb63ceaaaf0b25d0117f209f11e3ab8e6ce3240acb",alt:"Gallery image 5"}],currentIndex:0}},methods:{nextImage(){this.currentIndex=(this.currentIndex+1)%this.images.length,this.scrollToThumbnail()},prevImage(){this.currentIndex=this.currentIndex===0?this.images.length-1:this.currentIndex-1,this.scrollToThumbnail()},selectImage(e){this.currentIndex=e,this.scrollToThumbnail()},scrollToThumbnail(){const e=this.$refs.thumbnailGallery,t=e.clientWidth/3,n=Math.max(0,(this.currentIndex-1)*t);e.scrollTo({left:n,behavior:"smooth"})}}},b9={class:"flex flex-col pt-3.5"},w9={class:"flex py-4 md:py-20 relative flex-col mt-3.5 w-full bg-aqua max-md:max-w-full items-center"},x9={class:"z-0 flex flex-col items-start justify-between max-w-full gap-10 p-10 md:px-24"},k9={class:"grid w-full grid-cols-1 md:grid-cols-2 gap-x-8"},S9={class:"flex items-start justify-start"},T9=["src","alt"],A9={class:"w-full overflow-hidden image-gallery"},C9={ref:"thumbnailGallery",class:"flex gap-4 overflow-x-auto flex-nowrap"},E9=["src","alt","onClick"],O9={class:"flex justify-end w-full mt-4 image-gallery-controls"},M9={class:"flex flex-wrap items-center gap-5"};function R9(e,t,n,r,s,a){return k(),I("section",b9,[v("div",w9,[v("div",x9,[v("div",k9,[t[2]||(t[2]=vp('

Consortium Partner

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.

Website link
',1)),v("div",S9,[v("img",{src:s.images[s.currentIndex].src,alt:s.images[s.currentIndex].alt,class:"main-image object-contain aspect-[1.63] w-full md:w-[480px] max-md:max-w-full"},null,8,T9)])]),v("div",A9,[v("div",C9,[(k(!0),I(Ie,null,Ze(s.images,(o,u)=>(k(),I("img",{key:u,src:o.src,alt:"Gallery image "+(u+1),class:Fe([{"border-2 border-orange-500":s.currentIndex===u},"thumbnail cursor-pointer object-contain shrink-0 aspect-[1.5] min-h-[120px] w-[calc(33.33%-8px)]"]),onClick:d=>a.selectImage(u)},null,10,E9))),128))],512)]),v("div",O9,[v("div",M9,[v("button",{onClick:t[0]||(t[0]=(...o)=>a.prevImage&&a.prevImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[3]||(t[3]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M19 22L13 16L19 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),v("button",{onClick:t[1]||(t[1]=(...o)=>a.nextImage&&a.nextImage(...o)),class:"flex group flex-col justify-center items-center self-stretch my-auto w-8 h-8 bg-orange-500 rounded min-h-[24px]"},t[4]||(t[4]=[v("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("rect",{width:"32",height:"32",rx:"4",class:"fill-primary group-hover:fill-secondary"}),v("path",{d:"M13 22L19 16L13 10",stroke:"white","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])])])])}const D9=vt(_9,[["render",R9],["__scopeId","data-v-5aad3e31"]]),qt=yc({});qt.use(y9);qt.use(bL,{resolve:async e=>await Object.assign({"../lang/php_al.json":()=>Vt(()=>import("./php_al-D8P-KLno.js"),[]),"../lang/php_ba.json":()=>Vt(()=>import("./php_ba-bQ14kMsE.js"),[]),"../lang/php_bg.json":()=>Vt(()=>import("./php_bg-DLkZCgH8.js"),[]),"../lang/php_cs.json":()=>Vt(()=>import("./php_cs-Cww_VtMV.js"),[]),"../lang/php_da.json":()=>Vt(()=>import("./php_da-qo4ENfuW.js"),[]),"../lang/php_de.json":()=>Vt(()=>import("./php_de-CRtnySZV.js"),[]),"../lang/php_el.json":()=>Vt(()=>import("./php_el-VOHJmvo5.js"),[]),"../lang/php_en.json":()=>Vt(()=>import("./php_en-C2_F76So.js"),[]),"../lang/php_es.json":()=>Vt(()=>import("./php_es-CV0uqwd3.js"),[]),"../lang/php_et.json":()=>Vt(()=>import("./php_et-CC-USrcb.js"),[]),"../lang/php_fi.json":()=>Vt(()=>import("./php_fi-DbqUa0St.js"),[]),"../lang/php_fr.json":()=>Vt(()=>import("./php_fr-Dn2R__FD.js"),[]),"../lang/php_hr.json":()=>Vt(()=>import("./php_hr-Bh4kWjtd.js"),[]),"../lang/php_hu.json":()=>Vt(()=>import("./php_hu-Dh0jmQJh.js"),[]),"../lang/php_it.json":()=>Vt(()=>import("./php_it-Bg3vOCbN.js"),[]),"../lang/php_lt.json":()=>Vt(()=>import("./php_lt-Dds-hGHB.js"),[]),"../lang/php_lv.json":()=>Vt(()=>import("./php_lv-sauYnkA-.js"),[]),"../lang/php_me.json":()=>Vt(()=>import("./php_me-BiU-pECO.js"),[]),"../lang/php_mk.json":()=>Vt(()=>import("./php_mk-CeECQLhN.js"),[]),"../lang/php_mt.json":()=>Vt(()=>import("./php_mt-B09LotaU.js"),[]),"../lang/php_nl.json":()=>Vt(()=>import("./php_nl-BqTbc71y.js"),[]),"../lang/php_pl.json":()=>Vt(()=>import("./php_pl-DaiFc7d1.js"),[]),"../lang/php_pt.json":()=>Vt(()=>import("./php_pt-DuJ3IKbv.js"),[]),"../lang/php_ro.json":()=>Vt(()=>import("./php_ro-Cu37UcuE.js"),[]),"../lang/php_rs.json":()=>Vt(()=>import("./php_rs-DZeE19on.js"),[]),"../lang/php_sk.json":()=>Vt(()=>import("./php_sk-ws0JJFon.js"),[]),"../lang/php_sl.json":()=>Vt(()=>import("./php_sl-DvOUTlna.js"),[]),"../lang/php_sv.json":()=>Vt(()=>import("./php_sv-BLMEOSxF.js"),[]),"../lang/php_tr.json":()=>Vt(()=>import("./php_tr-0h2TWv2K.js"),[]),"../lang/php_ua.json":()=>Vt(()=>import("./php_ua-n2LDUyQj.js"),[])})[`../lang/${e}.json`]()});qt.component("ActivityForm",t4);qt.component("ResourceForm",pV);qt.component("ResourceCard",H1);qt.component("ResourcePill",B1);qt.component("Pagination",ud);qt.component("Singleselect",_V);qt.component("Multiselect",SV);qt.component("CountrySelect",EV);qt.component("ModerateEvent",KV);qt.component("ReportEvent",U8);qt.component("AutocompleteGeo",vF);qt.component("DateTime",DB);qt.component("Question",WB);qt.component("PictureForm",XB);qt.component("Flash",od);qt.component("InputTags",R8);qt.component("SearchPageComponent",CU);qt.component("AvatarForm",v9);qt.component("PartnerGallery",D9);qt.component("MatchMakingToolForm",h7);qt.component("ToolCard",Pw);qt.component("ToolDetailCard",l9);qt.component("EventCard",Dw);qt.component("EventDetail",rU);qt.mount("#app"); diff --git a/public/build/manifest.json b/public/build/manifest.json index 9716e60f6..367a81da7 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -10,7 +10,7 @@ "isEntry": true }, "resources/js/app.js": { - "file": "assets/app-BunCVcAf.js", + "file": "assets/app-b_k6-ZYn.js", "name": "app", "src": "resources/js/app.js", "isEntry": true, diff --git a/resources/js/components/AvatarForm.vue b/resources/js/components/AvatarForm.vue index bbfde8f8d..ac75f5bb8 100644 --- a/resources/js/components/AvatarForm.vue +++ b/resources/js/components/AvatarForm.vue @@ -15,9 +15,6 @@

{{ user.fullName }}

-

- Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero. -

diff --git a/resources/views/event/my.blade.php b/resources/views/event/my.blade.php index e22fee76d..c83471416 100755 --- a/resources/views/event/my.blade.php +++ b/resources/views/event/my.blade.php @@ -32,7 +32,7 @@ class="text-nowrap w-full md:w-fit flex justify-center items-center bg-primary h Guide for organisers
diff --git a/resources/views/report/thankyou.blade.php b/resources/views/report/thankyou.blade.php index cdd6b20d0..389486e9b 100644 --- a/resources/views/report/thankyou.blade.php +++ b/resources/views/report/thankyou.blade.php @@ -1,25 +1,37 @@ -@extends('layout.base') +@extends('layout.new_base') @section('content') -
+
+ +
+ +