(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1084,1596],{72431:function(){},44710:function(e,t,a){Promise.resolve().then(a.bind(a,37722)),Promise.resolve().then(a.bind(a,39186)),Promise.resolve().then(a.bind(a,89419)),Promise.resolve().then(a.bind(a,90480)),Promise.resolve().then(a.bind(a,20143)),Promise.resolve().then(a.bind(a,91115)),Promise.resolve().then(a.bind(a,64168)),Promise.resolve().then(a.t.bind(a,28787,23)),Promise.resolve().then(a.bind(a,63527)),Promise.resolve().then(a.bind(a,32117)),Promise.resolve().then(a.bind(a,98105)),Promise.resolve().then(a.bind(a,71970)),Promise.resolve().then(a.bind(a,5565)),Promise.resolve().then(a.bind(a,4190)),Promise.resolve().then(a.bind(a,47471)),Promise.resolve().then(a.bind(a,51164)),Promise.resolve().then(a.bind(a,12612)),Promise.resolve().then(a.t.bind(a,38173,23)),Promise.resolve().then(a.bind(a,28254))},62837:function(e,t,a){"use strict";a.d(t,{o:function(){return s}});let s=(0,a(2265).createContext)({eventData:null,setEventData:()=>{},showEventModal:!1,setShowEventModal:()=>{}})},64168:function(e,t,a){"use strict";a.d(t,{EventModalProvider:function(){return i}});var s=a(57437),r=a(2265),n=a(62837);let i=e=>{let{children:t}=e,[a,i]=(0,r.useState)(null),[l,o]=(0,r.useState)(!1),c=(0,r.useMemo)(()=>({eventData:a,setEventData:i,showEventModal:l,setShowEventModal:o}),[a,l]);return(0,s.jsx)(n.o.Provider,{value:c,children:t})}},40250:function(e,t,a){"use strict";a.d(t,{u:function(){return s}});let s=(0,a(2265).createContext)({showGreetingsModal:!1,setShowGreetingsModal:()=>{},toggleGreetings:()=>{}})},63527:function(e,t,a){"use strict";a.d(t,{GreetingsModalProvider:function(){return i}});var s=a(57437),r=a(2265),n=a(40250);let i=e=>{let{children:t}=e,[a,i]=(0,r.useState)(!1),l=()=>{i(e=>!e)},o=(0,r.useMemo)(()=>({showGreetingsModal:a,setShowGreetingsModal:i,toggleGreetings:l}),[a,i,l]);return(0,s.jsx)(n.u.Provider,{value:o,children:t})}},88025:function(e,t,a){"use strict";a.d(t,{T:function(){return n}});var s=a(2265),r=a(28807);let n=(0,s.createContext)({lang:r.a.defaultLocale,dictionary:{navigation:{home:"",about:"",login:"",logout:"",signup:"",dashboard:""},general:{appName:"",appNameFull:"",date:"",city:"",region:"",venue:"",artist:"",artists:"",today:"",close:"",open:"",image:"",eventType:"",title:"",startTime:"",endTime:"",price:"",description:"",cancel:"",accept:"",party:"",workshop:"",category:"",danceStyle:"",danceStyles:"",add:"",addNew:"",search:"",noSearchResults:"",organizer:"",termsAndConditions:"",privacyHeader:"",agreeWith:"",publisher:"",teacher:"",temporary:"",collapseDown:"",collapseUp:"",edit:"",tickets:"",show:"",delete:"",partyCategory:"",continue:"",schedule:"",subevents:"",save:"",danceClass:"",preparty:"",course:"",courses:"",event:"",events:"",parties:""},page:{home:{title:"",description:"",loadingText:""},about:{title:"",description:""},loginpage:{header:"",message:""},artist:{loading:"",eventList:"",noEventsInfo:""},event:{loading:""},teacher:{loading:"",eventList:"",noEventsInfo:""},venue:{loading:"",eventList:"",noEventsInfo:""},dashboard:{myEvents:{deleteConfirmTitle:"",deleteConfirmText:"",statusChangeText:"",statusChangeError:"",organizationSwitcherHeader:"",organizationSwitcherInfo:"",noEventsInfo:"",mainHeader:""}},calendar:{show:"",map:"",details:"",partyCalendar:"",courseCalendar:"",eventCalendar:""}},dashboard:{notLoggedIn:"",userDetails:{header:"",firstName:"",lastname:"",email:"",clerkInfo:"",clerkTitle:"",clerkMessage:""},activation:{userCard:{header:"",activeMessage:"",bullet1:"",bullet2:"",bullet3:"",activated:"",inactive:""},accountActivated:"",organizerCard:{header:"",activeMessage:"",bullet1:"",bullet2:"",bullet3:"",activated:"",inactive:"",pending:""},info:""},EventsCard:{buttonText:"",bullet1:"",bullet2:"",bullet3:"",bulletDeniedAccess:"",header:"",myEventsButton:"",myEventsInfo:"",party:"",partyInfo:"",course:"",courseInfo:"",workshop:"",workshopInfo:"",oneDayEvent:"",oneDayEventInfo:"",multiDayEvent:"",multiDayEventInfo:""},AddOrganizerCard:{buttonText:"",bullet1:"",bullet2:"",bullet3:"",bulletDeniedAccess:"",header:""},loading:"",AddItemsCard:{header:"",buttonArtist:"",buttonVenue:"",buttonTeacherOrganization:"",buttonTeacherPersonal:""},add:{header:"",venue:{header:""}},sidebar:{dashboard:"",events:"",addItems:"",organizations:"",teacherProfile:"",artists:"",venues:""}},danceCalendar:{loading:"",header:"",message1:"",message2:"",groupBy:"",datePickerGoTo:"",handlingData:"",table:{header1:"",header2:"",header3:"",header4:""},quickChoice:"",grouping:{toggleButtonShow:"",toggleButtonHide:""},filter:{toggleButtonShow:"",toggleButtonHide:"",filterDataButton:"",infoText:"",range:{allowLocation:"",useCurrentLocation:"",setRange:""}}},ballroomListModal:{details:"",description:"",location:"",eventLink:"",fbLink:""},eventCategory:{ballroom:"",party:"",latin:"",milonga:"",swing:"",other:"",workshop:"",preparty:"",competition:"",show:""},addItemsPage:{loading:"",eventCard:{bullet1:"",bullet2:"",bullet3:"",addButton:"",info:""},venueCard:{bullet1:"",addButton:""},artistCard:{bullet1:"",addButton:""},checkBox:{signedInMessage:"",signedOutMessage:""},addEvent:{alertSuccess:"",alertFailure:"",confirmEmptyForm:"",alertMissingRequiredFields:"",confirmPublish:"",selectImageHeader:"",emptyForm:"",chosenLocaton:"",optional:"",eventLinkHeader:"",fbLinkHeader:"",title:"",noOrganizationsInfo:"",basicInformation:"",additionalInformation:"",initialEventAddedHeader:"",initialEventAddedText:"",addPartyAndPreparty:"",prepartyHeader:"",partyHeader:"",ticketsLinkHeader:"",classTheme:"",subEventAddSuccess:"",alertSuccessHeader:"",alertPendingSuccess:"",alertPendingSuccessHeader:""},addVenue:{searchHeader:"",searchLabel:"",searchResultsHeader:"",locationHeader:"",cooordinatesInfo:"",coordinatesRequired:"",alertSuccess:"",alertFailure:"",confirmSameName:"",modalHeader:"",sameSlugErrorMessage:""},addArtist:{header:"",sameNameErrorMessage:"",success:"",failure:"",sameSlugErrorMessage:""},header:"",addOrganizer:{header:"",sameNameErrorMessage:"",success:"",failure:""},addOrganization:{modalHeader:"",requestVerification:"",verified:"",notVerified:"",pendingVerification:""},addDanceStyle:{header:"",sameNameErrorMessage:"",success:"",failure:""},addTeacher:{header:"",sameNameErrorMessage:"",sameSlugErrorMessage:"",success:"",failure:""},editTeacher:{header:"",success:"",failure:"",confirmDelete:"",deleteSuccess:""}},footer:{message:"",welcomeTitle:"",welcomeMessage:""},nav:{linkCalendar:"",linkEvent:"",linkDashboard:"",linkMessage:""},sendMessage:{title:"",sender:"",message:"",email:"",phone:"",thanks:""},about:{title:"",headerDonations:"",message1:"",message2:"",donateButton:"",admin:"",loading:""},form:{general:{add:"",addNew:"",slugInfo:"",saveTemporary:"",savePermanent:"",temporaryInfo:"",permanentInfo:"",onwership:"",ownerInfo:"",adminRights:"",adminInfo:"",email:"",visibility:"",companyId:"",publish:"",updateButtonText:"",somethingWentWrong:""},location:{name:"",city:"",postalCode:"",country:"",region:"",route:"",streetNumber:"",lon:"",lat:"",lonLabel:"",latLabel:""},artist:{artistName:"",artistType:"",description:""},venue:{venue:""},event:{date:"",artist:"",artists:"",image:"",eventType:"",title:"",startTime:"",endTime:"",price:"",description:"",party:"",workshop:"",category:"",danceStyle:"",danceStyles:"",publishAs:"",publishInfo:"",isOrganizer:"",organizerName:"",changeStatus:"",status:"",publishingHeader:"",venueMissingWarning:""},date:{today:""},organizer:{name:"",nameHint:"",organizerLinkHeader:"",fbLinkHeader:"",roleButtonText:""},organization:{description:"",descriptionPlaceholder:""},dance_style:{dance_style:"",variant:""},teacher:{first_name:"",last_name:"",alias:"",description:"",visibility:{visibility:"",usablity:"",private:"",public:"",notUsable:"",usable:"",privateInfo:"",publicInfo:"",notUsableInfo:"",usableInfo:""}},subevent:{categoryWarning:"",dateRequiredWarning:"",editEvent:{deleteText:"",deleteHeader:"",deleteSuccess:"",updatedSuccess:""},addEvent:{updatedSuccess:""},eventPlannerHeader:"",noSubeventsWarning:""},ownershipBox:{header:"",info:"",onwership:"",adminRights:""}},translations:{artistType:{soloist:"",band:"",dj:""},organizationRoles:{admin:"",owner:"",member:""},status:{initial:"",active:"",pending:"",cancelled:"",deleted:"",template:""},visibility:{public:"",private:""},usable:{owner:"",admin:"",all:""},level:{level0:"",level1:"",level2:"",level3:"",level4:"",level5:"",level6:"",level7:"",level8:"",level9:"",level10:"",levelOpen:""},eventType:{general:"",party:"",workshop:"",onedayevent:"",multidayevent:"",international:""}},meta:{home:{title:"",description:""}},components:{button:{sharebutton:"",facebookButton:"",externalButton:""}},eventType:{party:""}},darkMode:!0,setDarkMode:()=>{}})},32117:function(e,t,a){"use strict";a.d(t,{MainProvider:function(){return i}});var s=a(57437),r=a(88025),n=a(2265);let i=e=>{let{children:t,dictionary:a,lang:i}=e,[l,o]=(0,n.useState)(!0),c=(0,n.useMemo)(()=>({darkMode:l,dictionary:a,lang:i,setDarkMode:o}),[a,i,l]);return(0,s.jsx)(r.T.Provider,{value:c,children:(0,s.jsx)("div",{className:l?"dark dark:text-white text-black":"dark:text-white text-black",children:t})})}},98105:function(e,t,a){"use strict";a.d(t,{PrivacyModalProvider:function(){return i}});var s=a(57437),r=a(2265),n=a(37460);let i=e=>{let{children:t}=e,[a,i]=(0,r.useState)(!1),l=(0,r.useMemo)(()=>({showPrivacyModal:a,setShowPrivacyModal:i}),[a]);return(0,s.jsx)(n.g.Provider,{value:l,children:t})}},37460:function(e,t,a){"use strict";a.d(t,{g:function(){return s}});let s=(0,a(2265).createContext)({showPrivacyModal:!1,setShowPrivacyModal:()=>{}})},31625:function(e,t,a){"use strict";a.d(t,{H:function(){return l}});var s=a(57437),r=a(71158),n=a(68992),i=a(9726);let l=()=>(0,s.jsxs)(n.zx,{target:"_blank",href:r.Mo.donateURL,"aria-label":"Donate",size:"xs",className:"p-0 m-0 flex flex-row flex-wrap items-center truncate gap-2",children:["Mobilepay",(0,s.jsx)(i.wz_,{className:"w-5 h-5"})]})},38535:function(e,t,a){"use strict";a.d(t,{M:function(){return d},l:function(){return u}});var s=a(57437),r=a(49150),n=a(68992),i=a(19675),l=a(2265),o=a(88025),c=a(16463);let d=()=>{let{dictionary:e}=(0,l.useContext)(o.T),t=(0,c.usePathname)();return(0,s.jsx)(r.$d,{mode:"modal",fallbackRedirectUrl:t,children:(0,s.jsx)(n.zx,{color:"dark",size:"xs",children:(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[e.navigation.login," ",(0,s.jsx)(i.UAw,{})]})})})},u=()=>{let{dictionary:e}=(0,l.useContext)(o.T),t=(0,c.usePathname)();return(0,s.jsx)(r.$d,{mode:"modal",fallbackRedirectUrl:t,children:(0,s.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[e.navigation.login," ",(0,s.jsx)(i.UAw,{})]})})}},37722:function(e,t,a){"use strict";a.d(t,{CookieAlert:function(){return c}});var s=a(57437),r=a(68992),n=a(2265),i=a(54008),l=a(88025),o=a(8375);let c=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{setTimeout(()=>{t(!0)},3e3)},[0]),e?(0,s.jsx)(r.bZ,{className:"max-w-80 fixed bottom-12",color:"info",icon:i.frK,onDismiss:()=>t(!1),rounded:!0,children:(0,s.jsx)(d,{})}):null},d=()=>{let{lang:e}=(0,n.useContext)(l.T);return"en"==e?(0,s.jsxs)("div",{children:["Bailantai and 3rd parties use essential cookies to provide secure services. Learn more in our ",(0,s.jsx)("span",{className:"underline font-bold",children:(0,s.jsx)(o.CustomLink,{href:"/privacy",children:"Privacy Policy"})})]}):(0,s.jsxs)("div",{children:["Bailantai ja kolmannet osapuolet k\xe4ytt\xe4v\xe4t pakollisia ev\xe4steit\xe4 turvallisen palvelun takaamiseksi. Lue lis\xe4\xe4 ",(0,s.jsx)("span",{className:"underline font-bold",children:(0,s.jsx)(o.CustomLink,{href:"/privacy",children:"Tietosuojatiedotteesta"})})]})}},39186:function(e,t,a){"use strict";a.d(t,{Footer:function(){return c}});var s=a(57437),r=a(2265),n=a(88025),i=a(68992),l=a(31625),o=a(8375);let c=()=>{let{dictionary:e}=(0,r.useContext)(n.T);return(0,s.jsx)(i.$_,{container:!0,className:"rounded-none p-2",children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(i.$_.Divider,{}),(0,s.jsxs)("div",{className:"grid w-full grid-cols-2 gap-8 px-6 py-8 md:grid-cols-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(i.$_.Title,{title:"Search"}),(0,s.jsxs)(i.$_.LinkGroup,{col:!0,children:[(0,s.jsx)(i.$_.Link,{href:"/search/event",as:o.CustomLink,children:"Events"}),(0,s.jsx)(i.$_.Link,{href:"/search/organizer",as:o.CustomLink,children:"Organizers"}),(0,s.jsx)(i.$_.Link,{href:"/search/venue",as:o.CustomLink,children:"Venues"}),(0,s.jsx)(i.$_.Link,{href:"/search/teacher",as:o.CustomLink,children:"Teachers"}),(0,s.jsx)(i.$_.Link,{href:"/search/artist",as:o.CustomLink,children:"Artists"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.$_.Title,{title:"Dashboard"}),(0,s.jsxs)(i.$_.LinkGroup,{col:!0,children:[(0,s.jsx)(i.$_.Link,{href:"/dashboard/user",as:o.CustomLink,children:"User"}),(0,s.jsx)(i.$_.Link,{href:"/dashboard/organization",as:o.CustomLink,children:"Organization"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.$_.Title,{title:"legal"}),(0,s.jsxs)(i.$_.LinkGroup,{col:!0,children:[(0,s.jsx)(i.$_.Link,{as:o.CustomLink,className:"flex items-center",href:"/about",children:e.navigation.about}),(0,s.jsx)(i.$_.Link,{as:o.CustomLink,className:"flex items-center",href:"/privacy",children:e.general.privacyHeader}),(0,s.jsx)(i.$_.Link,{as:o.CustomLink,className:"flex items-center",href:"/terms",children:e.general.termsAndConditions})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.$_.Title,{title:"Donations \uD83D\uDE4F"}),(0,s.jsx)(i.$_.LinkGroup,{children:(0,s.jsx)(i.u,{className:"dark:border-white dark:border-2 border-0",content:(0,s.jsx)("div",{className:"h-56 w-40",children:e.about.message2}),children:(0,s.jsx)(l.H,{})})})]})]}),(0,s.jsx)(i.$_.Divider,{}),(0,s.jsx)("div",{className:"mb-4 w-full sm:flex sm:items-center sm:justify-between",children:(0,s.jsx)(i.$_.Copyright,{by:"Bailantai",year:2024})})]})})}},89419:function(e,t,a){"use strict";var s=a(57437),r=a(68992),n=a(16463),i=a(54008),l=a(2265),o=a(88025),c=a(8375),d=a(31625),u=a(28196),h=a(69824),x=a(43781),m=a(75027);t.default=function(){let{dictionary:e}=(0,l.useContext)(o.T),t=(0,n.useRouter)(),[a,v]=(0,l.useState)(!1);return(0,s.jsxs)(r.$_,{className:"h-12 w-full p-0 m-0 rounded-none",children:[a&&(0,s.jsxs)("div",{className:"w-screen h-[calc(100vh-3rem)] fixed top-0 right-0 z-2k flex flex-row overflow-y-auto",children:[(0,s.jsx)("div",{className:"flex flex-grow opacity-30 bg-black",onClick:()=>v(e=>!e)}),(0,s.jsx)(r.YE,{"aria-label":"Sidebar menu",children:(0,s.jsxs)(r.YE.Items,{children:[(0,s.jsxs)(r.YE.ItemGroup,{children:[(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),icon:i.g3P,children:(0,s.jsx)(c.CustomLink,{href:"/",children:"Home"})}),(0,s.jsxs)(r.YE.Collapse,{icon:i.G4C,label:"Search",children:[(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/search/event",children:"Events"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/search/organizer",children:"Organizers"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/search/venue",children:"Venues"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/search/teacher",children:"Teachers"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/search/artist",children:"Artists"})})]}),(0,s.jsxs)(r.YE.Collapse,{icon:i.xQl,label:"Legal",children:[(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/privacy",children:e.general.privacyHeader})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/terms",children:e.general.termsAndConditions})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),children:(0,s.jsx)(c.CustomLink,{href:"/about",children:e.navigation.about})})]}),(0,s.jsx)(r.YE.Collapse,{icon:u.yt3,label:"Donate",children:(0,s.jsx)(d.H,{})})]}),(0,s.jsxs)(r.YE.ItemGroup,{children:[(0,s.jsx)("div",{children:"Organization"}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),icon:i.twD,children:(0,s.jsx)(c.CustomLink,{href:"/dashboard/organization",children:"Dashboard"})}),(0,s.jsxs)(r.YE.Collapse,{icon:i.yEd,label:"Add event",children:[(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),icon:m.Sjf,children:(0,s.jsx)(c.CustomLink,{href:"/dashboard/organization/event/add/party",children:"Party"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),icon:m.q_v,children:(0,s.jsx)(c.CustomLink,{href:"/dashboard/organization/event/add/workshop",children:"Workshop"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),icon:h.i95,children:(0,s.jsx)(c.CustomLink,{href:"/dashboard/organization/event/add/onedayevent",children:"1 Day event"})}),(0,s.jsx)(r.YE.Item,{onClick:()=>v(!1),icon:x.i9S,children:(0,s.jsx)(c.CustomLink,{href:"/dashboard/organization/event/add/multidayevent",children:"Multiday event"})})]})]})]})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-4 w-full h-full border-t-2 border-gray-200 dark:border-gray-600",children:[(0,s.jsx)("button",{className:"flex items-center justify-center border-r-2 border-gray-200 dark:border-gray-600",onClick:()=>t.push("/"),children:(0,s.jsx)(i.g3P,{className:"h-7 w-7"})}),(0,s.jsx)("button",{className:"flex items-center justify-center border-r-2 border-gray-200 dark:border-gray-600",onClick:()=>t.push("/search"),children:(0,s.jsx)(i.G4C,{className:"h-7 w-7"})}),(0,s.jsx)("button",{className:"flex items-center justify-center border-r-2 border-gray-200 dark:border-gray-600",onClick:()=>t.push("/dashboard/user"),children:(0,s.jsx)(i._K$,{className:"h-7 w-7"})}),(0,s.jsx)("button",{className:"flex items-center justify-center border-r-2 border-gray-200 dark:border-gray-600",onClick:()=>v(e=>!e),children:(0,s.jsx)(i.r0I,{className:"h-7 w-7"})})]})]})}},90480:function(e,t,a){"use strict";a.d(t,{BallroomListModal:function(){return M}});var s=a(57437),r=a(2265),n=a(88025),i=a(68992),l=a(46720),o=a.n(l),c=a(61958),d=a(66648),u=a(36162),h=a(16628),x=a(49459),m=a(78832),v=a(62194),p=a(55552),f=a(65555),g=a(75027),j=a(85097),b=a(8375),k=a(19675),y=a(9726);let w=e=>{let{artistList:t}=e;return(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(g.unT,{className:"h-4 w-4 p-0 text-black dark:text-white"})}),(0,s.jsx)("div",{className:"text-xs text-black dark:text-white pl-2 !m-0 font-bold",children:t.map((e,a)=>(0,s.jsxs)(b.CustomLink,{href:"/artist/".concat(e.slug),children:[(0,s.jsx)("span",{className:"hover:underline cursor-pointer",children:e.name}),a===t.length-1?"":", "]},a))})]})},C=e=>{let{text:t,city:a,slug:r}=e;return(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(j.UXH,{className:"h-4 w-4 p-0 text-black dark:text-white"})}),r?(0,s.jsx)(b.CustomLink,{href:"/venue/".concat(r),children:(0,s.jsxs)("div",{className:"text-xs text-black dark:text-white line-clamp-1 pl-2 !m-0 cursor-pointer hover:underline",children:[(0,s.jsx)("span",{className:"font-bold cursor-pointer",children:t}),a?", "+a:""]})}):(0,s.jsx)("span",{className:"text-xs text-black dark:text-white line-clamp-1 pl-2 !m-0",children:t})]})},N=e=>{let{text:t,title:a,verified:r}=e;return(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.$Ug,{className:"h-4 w-4 p-0 text-black dark:text-white"})}),(0,s.jsx)(i.u,{content:r?"Verified":"Unverified",placement:"right",style:"light",children:(0,s.jsxs)("div",{className:"text-xs text-black dark:text-white line-clamp-1 pl-2 !m-0 flex flex-row pt-2",children:[a?a+":":"",(0,s.jsxs)("span",{className:r?"ml-1 font-bold hover:underline cursor-pointer flex flex-row":"ml-1 font-bold flex flex-row",children:[t,(0,s.jsx)("sup",{children:r?(0,s.jsx)(y.KRR,{className:"h-4 w-4 text-green-400"}):(0,s.jsx)(y.SUB,{className:"h-4 w-4 text-red-400"})})]})]})})]})},L=e=>{let{text:t,dictionary:a}=e;return(0,s.jsxs)("div",{className:"flex flex-row",children:[(0,s.jsx)("div",{children:(0,s.jsx)(j.tvz,{className:"h-4 w-4 p-0 text-black dark:text-white"})}),(0,s.jsxs)(b.CustomLink,{className:"text-xs text-black dark:text-white pl-2 !m-0",href:t,children:[a.general.tickets+": ",(0,s.jsx)("span",{className:"hover:underline",children:t})]})]})};var A=a(62837);let I=e=>{let{children:t}=e,{setShowEventModal:a}=(0,r.useContext)(A.o);return(0,s.jsx)("div",{onClick:()=>a(!1),children:t})};var _=a(19334),E=a(95551),T=a(40704),z=a(74910);let S=e=>{var t,a,r,n;let{eventData:i,dictionary:l,lang:o}=e,g=Array.from(new Set(i.partyList.reduce((e,t)=>[...e,...t.danceStyles],[]))),j=Array.from(new Set(i.partyList.reduce((e,t)=>[...e,...t.artists],[]))),b=[...i.prepartyList,...i.partyList,...i.danceClassList].sort((e,t)=>{let a=e.start_dt.toLocaleString().localeCompare(t.start_dt.toLocaleString());return 0!==a?a:e.start_time.localeCompare(t.start_time)}),k=b.length>0&&b[0].start_dt!=b[b.length-1].start_dt;return(0,s.jsxs)("div",{className:" bg-inherit",children:[(0,s.jsx)("div",{className:"flex justify-center mb-2 aspect-video relative",children:(0,s.jsx)(d.default,{src:i.eventImage&&i.eventImage.url?i.eventImage.url:u.ac,fill:!0,loading:"lazy",sizes:"600px, (max-width: 768px) 240px",alt:"Picture of the dancer"})}),(0,s.jsxs)("div",{className:"divide-y bg-inherit",children:[(0,s.jsxs)("div",{className:"px-3",children:[(0,s.jsx)("div",{className:"text-xl",children:l.ballroomListModal.details}),(0,s.jsx)(N,{text:null!==(t=i.organizer_display_name)&&void 0!==t?t:"unknown",title:l.general.organizer,verified:i.is_official}),i.venue.name&&(0,s.jsx)(I,{children:(0,s.jsx)(C,{text:i.venue.name,city:i.venue.city,slug:i.venue.slug})}),j.length>0&&(0,s.jsx)(I,{children:(0,s.jsx)(w,{artistList:j})}),k?(0,s.jsx)(s.Fragment,{children:i.start_date&&(0,s.jsx)(c.in,{text:(0,z.LA)(b[0].start_time)+" "+(0,x.FM)(b[0].start_dt.toString(),o)+" - "+(0,z.LA)(b[b.length-1].end_time)+" "+(0,x.FM)(b[b.length-1].start_dt.toString(),o)})}):(0,s.jsxs)(s.Fragment,{children:[i.start_date&&(0,s.jsx)(c.in,{text:(0,x.FM)(i.start_date.toString(),o)}),b.length>0&&(0,s.jsx)(c.c_,{text:(0,z.r)(b[0].start_time,b[b.length-1].end_time)})]}),i.price&&(0,s.jsx)(c.R9,{text:i.price}),i.tickets_link&&(0,s.jsx)(L,{text:i.tickets_link,dictionary:l}),g.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-sm mt-2",children:[l.general.danceStyles,":"]}),(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-1 mt-1",children:g.map((e,t)=>(0,s.jsx)(_.DanceStyleBadge,{size:"large",text:e.dance_style+(e.variant?" ("+e.variant+")":"")},t))})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-1 my-4",children:[(0,s.jsx)(m.ShareButtonUseEventData,{url:(0,v.e)("/event/".concat(i.id),o),title:i.title?i.title:"Dance event | Bailantai"}),i.fb_link&&(0,s.jsx)(p.FacebookButton,{url:i.fb_link}),i.event_link&&(0,s.jsx)(f.ExternalLinkButton,{url:i.event_link})]})]}),i.description&&""!=i.description?(0,s.jsxs)("div",{className:"my-3 py-2 px-3 max-w-full",children:[(0,s.jsx)("div",{className:"text-xl",children:l.ballroomListModal.description}),(0,s.jsx)(E.DescriptionField,{desc:i.description})]}):null,b.length>0&&(0,s.jsx)("div",{className:"px-3 bg-inherit max-h-96 overflow-y-auto",children:(0,s.jsx)(T.GeneralTimetable,{preparty:null!==(a=i.prepartyList)&&void 0!==a?a:[],partyList:null!==(r=i.partyList)&&void 0!==r?r:[],danceClassList:null!==(n=i.danceClassList)&&void 0!==n?n:[]})}),(0,s.jsx)("div",{className:"px-3 py-2",children:(0,s.jsx)(h.AddressAndMap,{venue:i.venue})}),(0,s.jsx)("div",{children:i.publisher_display_name&&(0,s.jsx)(c.J,{text:l.general.publisher+": "+i.publisher_display_name})})]})]})},M=()=>{let{dictionary:e,lang:t,darkMode:a}=(0,r.useContext)(n.T),{showEventModal:l,setShowEventModal:c,eventData:d}=(0,r.useContext)(A.o);if(!d)return null;let u=Array.from(new Set(d.partyList.reduce((e,t)=>[...e,...t.categories.map(e=>e.category)],[])));return(0,s.jsxs)(i.u_,{dismissible:!0,show:l,onClose:()=>c(!1),className:a?"backdrop-filter backdrop-blur-xl dark dark:text-white text-black bg-white dark:bg-gray-700 z-2k":"backdrop-filter backdrop-blur-xl  dark:text-white text-black bg-white dark:bg-gray-700 z-2k",initialFocus:void 0,children:[(0,s.jsxs)(i.u_.Header,{className:"dark:bg-gray-700",children:[(0,s.jsx)(b.CustomLink,{href:"/event/".concat(d.id),children:(0,s.jsx)("div",{className:"text-md dark:bg-gray-700 sm:text-lg font-bold leading-5 cursor-pointer hover:text-blue-500",onClick:()=>c(!1),children:d.title?d.title:d.type+": "+d.venue.name+" ("+d.venue.city+")"})}),(0,s.jsx)("div",{className:"flex flex-row flex-wrap gap-1 mt-2",children:u.map((e,t)=>(0,s.jsx)(_.CategoryBadge,{text:e,size:"large"},t))})]}),(0,s.jsx)(i.u_.Body,{className:o().scrollbarhide+" bg-inherit dark:bg-gray-700",style:{padding:"0px"},children:(0,s.jsx)(S,{eventData:d,dictionary:e,lang:t})}),(0,s.jsx)(i.u_.Footer,{className:"dark:bg-gray-700",children:(0,s.jsx)(i.zx,{onClick:()=>c(!1),children:e.general.close})})]})}},20143:function(e,t,a){"use strict";a.d(t,{default:function(){return p}});var s=a(57437),r=a(68992),n=a(2265),i=a(46720),l=a.n(i),o=a(88025),c=a(71158),d=a(87138);function u(){return(0,s.jsxs)("div",{children:[(0,s.jsxs)(r.aV,{ordered:!0,nested:!0,className:"text-black dark:text-white",children:[(0,s.jsxs)(r.aV.Item,{children:["Use of Cookies",(0,s.jsxs)(r.aV,{nested:!0,className:"text-black dark:text-white",children:[(0,s.jsx)(r.aV.Item,{children:"Bailantai and it's 3rd parties use cookies."}),(0,s.jsx)(r.aV.Item,{children:"Bailantai uses a third-party service called Clerk for user authentication. Cookies are necessary for the usage of Clerk authentication and sign in service"})]})]}),(0,s.jsxs)(r.aV.Item,{children:["Privacy Notice",(0,s.jsxs)(r.aV,{nested:!0,className:"text-black dark:text-white",children:[(0,s.jsxs)(r.aV.Item,{children:["During registration and login, users may give consent for the use of personal information (email, name) to the Clerk service. (",(0,s.jsx)(d.default,{href:"https://clerk.com/legal/privacy",children:"Clerk privacy policy"}),")"]}),(0,s.jsx)(r.aV.Item,{children:"Bailantai is allowed to use the user's data from Clerk service to identify user. Information such as ClerkID, email and possible name can be shared to Bailantai and will be shown only to the user"}),(0,s.jsx)(r.aV.Item,{children:"Bailantai does not collect or store personal information."}),(0,s.jsx)(r.aV.Item,{children:"Registration is not mandatory for regular users."}),(0,s.jsx)(r.aV.Item,{children:"Registration and login are mandatory for event organizers."})]})]}),(0,s.jsxs)(r.aV.Item,{children:["Clerk account removal",(0,s.jsx)(r.aV,{nested:!0,className:"text-black dark:text-white",children:(0,s.jsx)(r.aV.Item,{children:"Open Clerk settings ➡️ go to Account ➡️ scroll down to Delete Account"})})]})]}),(0,s.jsxs)(r.aV,{unstyled:!0,className:"mt-6 text-black dark:text-white",children:[(0,s.jsx)(r.aV.Item,{children:"Thank you for using Bailantai! If you have any questions or need further information, please contact the site administrator."}),(0,s.jsx)(r.aV.Item,{children:"Last updated: 5th February 2024"})]})]})}function h(){return(0,s.jsxs)("div",{children:[(0,s.jsxs)(r.aV,{ordered:!0,nested:!0,className:"text-black dark:text-white",children:[(0,s.jsxs)(r.aV.Item,{children:["Ev\xe4steiden k\xe4ytt\xf6",(0,s.jsxs)(r.aV,{nested:!0,className:"text-black dark:text-white",children:[(0,s.jsx)(r.aV.Item,{children:"Bailantai ja sen k\xe4ytt\xe4m\xe4t kolmannen osapulen palvelut k\xe4ytt\xe4v\xe4t ev\xe4steit\xe4"}),(0,s.jsx)(r.aV.Item,{children:"Bailantai k\xe4ytt\xe4\xe4 kolmannen osapuolen toimijaa nimelt\xe4 Clerk, jonka autentikointi- sek\xe4 kirjautumispalvelun toiminnot edellytt\xe4v\xe4t ev\xe4steit\xe4."})]})]}),(0,s.jsxs)(r.aV.Item,{children:["Tietosuojailmoitus",(0,s.jsxs)(r.aV,{nested:!0,className:"text-black dark:text-white",children:[(0,s.jsxs)(r.aV.Item,{children:["Rekister\xf6itymisen sek\xe4 kirjautumisen yhteydess\xe4 k\xe4ytt\xe4j\xe4 voi antaa luvan henkil\xf6tietojen (s\xe4hk\xf6posti, nimi) k\xe4ytt\xf6\xf6n Clerk-palvelulle. (",(0,s.jsx)(d.default,{href:"https://clerk.com/legal/privacy",children:"Clerk privacy policy)"})]}),(0,s.jsx)(r.aV.Item,{children:"Bailantai saa k\xe4ytt\xe4j\xe4n tietoja Clerk-palvelusta, joita k\xe4ytet\xe4\xe4n vain k\xe4ytt\xe4j\xe4n tunnistamiseksi. Esimerkiksi Clerk_ID sek\xe4 s\xe4hk\xf6postiosoite, ja mahdollisesti nimi. N\xe4m\xe4 ovat vain k\xe4ytt\xe4j\xe4n n\xe4kyviss\xe4, eik\xe4 niit\xe4 k\xe4ytet\xe4 muihin tarkoituksiin"}),(0,s.jsx)(r.aV.Item,{children:"Bailantai ei ker\xe4\xe4 tai tallenna henkil\xf6tietoja"}),(0,s.jsx)(r.aV.Item,{children:"Rekister\xf6itymisen ei ole pakollista tavalliselle k\xe4ytt\xe4j\xe4lle."}),(0,s.jsx)(r.aV.Item,{children:"Rekister\xf6itymisen ja kirjautuminen on pakollista tapahtumaj\xe4rjest\xe4jille."})]})]}),(0,s.jsxs)(r.aV.Item,{children:["Clerk-tilin poistaminen",(0,s.jsx)(r.aV,{nested:!0,className:"text-black dark:text-white",children:(0,s.jsx)(r.aV.Item,{children:"Avaa Clerk-asetukset ➡️ valitse Account ➡️ Vierit\xe4 sivun alaosaan kohtaan Delete Account"})})]})]}),(0,s.jsxs)(r.aV,{unstyled:!0,className:"mt-6 text-black dark:text-white",children:[(0,s.jsx)(r.aV.Item,{children:"Kiitos, ett\xe4 k\xe4yt\xe4t Bailantai-palvelua! Jos sinulla on kysytt\xe4v\xe4\xe4 tai tarvitset lis\xe4tietoja, ota yhteytt\xe4 sivuston yll\xe4pit\xe4j\xe4\xe4n."}),(0,s.jsx)(r.aV.Item,{children:"P\xe4ivitetty viimeksi: 5.2.2024"})]})]})}let x=()=>{let{lang:e}=(0,n.useContext)(o.T);return"en"===e?(0,s.jsx)(u,{}):(0,s.jsx)(h,{})};var m=a(37460),v=a(67700),p=()=>{let{dictionary:e}=(0,n.useContext)(o.T),{showPrivacyModal:t,setShowPrivacyModal:a}=(0,n.useContext)(m.g);return(0,s.jsx)(r.u_,{show:t,onClose:()=>a(!1),className:l().custommodal+" z-999 backdrop-filter backdrop-blur-xl",children:(0,s.jsxs)(v.V,{children:[(0,s.jsxs)(r.u_.Header,{children:[e.general.privacyHeader," - ",c.Mo.siteDomain]}),(0,s.jsx)(r.u_.Body,{children:(0,s.jsx)(x,{})}),(0,s.jsx)(r.u_.Footer,{children:(0,s.jsx)(r.zx,{color:"dark",onClick:()=>a(!1),children:e.general.close})})]})})}},91115:function(e,t,a){"use strict";a.d(t,{FlowbiteNavbar:function(){return I}});var s=a(57437),r=a(49150),n=a(6285),i=a(68992),l=a(66648),o=a(2265),c=a(88025),d=a(8375),u=a(75027),h=a(87138),x=a(62194);let m=()=>(0,s.jsx)(d.CustomLink,{className:"cursor-pointer",href:"/dashboard",children:(0,s.jsx)(i.zx,{color:"dark",size:"xs",children:(0,s.jsx)(v,{})})}),v=()=>{let{dictionary:e}=(0,o.useContext)(c.T);return(0,s.jsxs)("div",{className:"items-center flex flex-row",children:[(0,s.jsx)("div",{className:"flex",children:e.navigation.dashboard})," ",(0,s.jsx)("span",{className:"text-sm ml-2 items-center",children:"⚙️"})]})},p=()=>{let{dictionary:e,lang:t}=(0,o.useContext)(c.T);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.Lt.Item,{as:h.default,href:(0,x.e)("/dashboard",t),className:"bg-blue-200",children:(0,s.jsxs)("div",{className:"text-xl text-black",children:[(0,s.jsxs)("div",{className:"flex",children:[e.navigation.dashboard,(0,s.jsx)("span",{className:"text-xl ml-2 items-center",children:"⚙️"})]}),(0,s.jsx)("div",{className:"text-xs",children:"Tilin ja tapahtumien hallinta"})]})})})};var f=a(38535),g=a(16463),j=a(28807),b=a(61712);function k(e){let{color:t="dark"}=e,a=(0,g.usePathname)(),r=e=>{if(!a)return"/";if(j.a.locales.every(e=>!a.startsWith("/".concat(e,"/"))&&a!=="/".concat(e)))return e===j.a.defaultLocale?a:"/".concat(e).concat(a);{if(e===j.a.defaultLocale){let e=a.split("/");return 2===e.length?"/":(e.splice(1,1),e.join("/"))}let t=a.split("/");return t[1]=e,t.join("/")}};return(0,s.jsx)(i.Lt,{"aria-label":"Locale Switcher",arrowIcon:!1,label:(0,s.jsx)("span",{className:"w-6 flex",children:a.startsWith("/en")?y.en:y.fi}),size:"xs",color:t,children:j.a.locales.map(e=>(0,s.jsx)(i.Lt.Item,{onClick:()=>location.replace(r(e)),children:(0,s.jsxs)("div",{className:"w-6",children:[(0,s.jsx)("div",{children:y[e]}),(0,s.jsx)("div",{children:e})]})},e))})}let y={fi:(0,s.jsx)(b.FI,{title:"Finland"}),en:(0,s.jsx)(b.GB,{title:"English"})},w=()=>{let{dictionary:e}=(0,o.useContext)(c.T),t=(0,g.usePathname)();return(0,s.jsx)(r.gX,{mode:"modal",fallbackRedirectUrl:t,children:(0,s.jsx)(i.zx,{color:"dark",size:"xs",children:(0,s.jsx)("div",{className:"flex flex-row items-center gap-2",children:e.navigation.signup})})})},C=()=>{let{dictionary:e}=(0,o.useContext)(c.T),t=(0,g.usePathname)();return(0,s.jsx)(r.gX,{mode:"modal",fallbackRedirectUrl:t,children:(0,s.jsx)("div",{className:"flex flex-row items-center gap-4",children:e.navigation.signup})})};var N={src:"/_next/static/media/bailant-logo.82a37c79.png",height:695,width:696,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAilBMVEVMaXESQGbhvL1vc3a+RUeYcHZhYnUEAADN09dxChAxa49FPlNvBAhLAw14AASAGSCanaSoAQUhHy7s7O3Y3d64ICFtU2c7SFsFFzGTJCigXWOioaeBJCfBq64FI0fj4+XQdHRglbLa2txcdInFw8eascChyt/+///K0NVfBA+hZmtFVGmosLhikK2EvIshAAAAJ3RSTlMA9vss/uz+LcD3+lE+zmi+7duw6aXd8umW9fqp+rrp3/z43+2kufWLrjsbAAAACXBIWXMAAA7CAAAOwgEVKEqAAAAASUlEQVR4nAXBBQKAIAAEsJMUsLtbMf//PTfA9OTYDUD5Pc3fSpGRpnP0uSG1Zz28doHrsrx67IggVqrQooXnX0w4pQRkyKNE4ge+XgTLbQ3MFQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},L=a(16356);let A=()=>{let{darkMode:e,setDarkMode:t}=(0,o.useContext)(c.T);return(0,s.jsx)(i.zx,{"aria-label":"Darkmode",size:"xs",color:"dark",onClick:()=>t(e=>!e),className:"items-center",children:e?(0,s.jsx)(L.UFB,{className:"size-4"}):(0,s.jsx)(L.Dq,{className:"size-4"})})},I=()=>{let{lang:e}=(0,o.useContext)(c.T),t=(0,g.usePathname)(),a=t.includes("dashboard")?"/":t;return(0,s.jsxs)(i.wp,{fluid:!0,className:"h-custom-nav z-10 dark:text-white",children:[(0,s.jsx)(i.wp.Brand,{as:d.CustomLink,href:"/",children:(0,s.jsxs)("div",{className:"flex flex-row",children:[(0,s.jsx)(l.default,{src:N,className:"mr-3 cursor-pointer",alt:"bailant-logo",width:50,height:50,sizes:"50px"}),(0,s.jsx)(r.qI,{children:(0,s.jsxs)("span",{className:"self-center cursor-pointer whitespace-nowrap text-xl font-semibold",children:["Bailantai ",(0,s.jsx)("sup",{className:"text-bailant-red text-xxs top-[-1rem]",children:"(Beta)"})]})}),(0,s.jsx)(r.a7,{children:(0,s.jsxs)("span",{className:"self-center cursor-pointer whitespace-nowrap text-xl font-semibold hidden xs:block",children:["Bailantai ",(0,s.jsx)("sup",{className:"text-bailant-red text-xxs top-[-1rem]",children:"(Beta)"})]})})]})}),(0,s.jsxs)(r.a7,{children:[(0,s.jsxs)("div",{className:"lg:hidden flex flex-row items-center gap-2",children:[(0,s.jsx)(k,{}),(0,s.jsx)(A,{}),(0,s.jsx)(n.CH,{children:(0,s.jsx)(r.l8,{afterSignOutUrl:(0,x.e)(a,e),signInUrl:(0,x.e)("/",e),userProfileMode:"navigation",userProfileUrl:"/dashboard/user"})}),(0,s.jsxs)(i.Lt,{"aria-label":"Menu",label:(0,s.jsx)("span",{className:"text-3xl",children:(0,s.jsx)(u.vHB,{})}),inline:!0,arrowIcon:!1,children:[(0,s.jsx)(n.CH,{children:(0,s.jsx)(p,{})}),(0,s.jsxs)(n.tj,{children:[(0,s.jsx)(i.Lt.Divider,{}),(0,s.jsx)(i.Lt.Item,{children:(0,s.jsx)(C,{})}),(0,s.jsx)(i.Lt.Divider,{}),(0,s.jsx)(i.Lt.Item,{children:(0,s.jsx)(f.l,{})}),(0,s.jsx)(i.Lt.Divider,{})]})]})]}),(0,s.jsxs)("div",{className:"hidden lg:flex flex-row gap-1",children:[(0,s.jsx)(n.CH,{children:(0,s.jsx)(m,{})}),(0,s.jsx)(k,{}),(0,s.jsx)(A,{}),(0,s.jsx)(n.CH,{children:(0,s.jsx)("div",{className:"flex items-center ml-2",children:(0,s.jsx)(r.l8,{afterSignOutUrl:(0,x.e)(a,e),signInUrl:(0,x.e)("/",e)})})}),(0,s.jsxs)(n.tj,{children:[(0,s.jsx)(w,{}),(0,s.jsx)(f.M,{})]})]})]})]})}},67700:function(e,t,a){"use strict";a.d(t,{V:function(){return o}});var s=a(57437),r=a(2265),n=a(88025),i=a(46720),l=a.n(i);let o=e=>{let{children:t}=e,{darkMode:a}=(0,r.useContext)(n.T);return(0,s.jsx)("div",{className:a?l().scrollbarhide+" dark dark:text-white text-black bg-white dark:bg-gray-700 h-full overflow-y-auto rounded":l().scrollbarhide+" dark:text-white text-black bg-white dark:bg-gray-700 h-full overflow-y-auto rounded",children:t})}},62194:function(e,t,a){"use strict";a.d(t,{e:function(){return r}});var s=a(28807);function r(e,t){return t===s.a.defaultLocale?e:"/".concat(t).concat(e)}},74910:function(e,t,a){"use strict";a.d(t,{Aw:function(){return u},G3:function(){return o},GJ:function(){return i},LA:function(){return h},Qg:function(){return n},Qs:function(){return m},Qv:function(){return f},Rk:function(){return v},Ry:function(){return c},TX:function(){return r},Y_:function(){return p},d4:function(){return l},dK:function(){return d},r:function(){return x},ri:function(){return s}});let s=e=>new Date(e).toLocaleDateString("fi-FI",{weekday:"short",day:"numeric",month:"numeric",timeZone:"Europe/Helsinki"}),r=(e,t)=>{var a;switch(e){case"party":a=t.translations.eventType.party;break;case"workshop":a=t.translations.eventType.workshop;break;case"onedayevent":a=t.translations.eventType.onedayevent;break;case"multidayevent":a=t.translations.eventType.multidayevent;break;case"general":a=t.translations.eventType.general;break;case"international":a=t.translations.eventType.international}return a},n=(e,t)=>{var a="ballroom";return"ballroom"===e?a=t.eventCategory.ballroom:"party"===e?a=t.eventCategory.party:"latin"===e?a=t.eventCategory.latin:"milonga"===e?a=t.eventCategory.milonga:"swing"===e?a=t.eventCategory.swing:"other"===e?a=t.eventCategory.other:"workshop"===e?a=t.eventCategory.workshop:"preparty"===e?a=t.eventCategory.preparty:"competition"===e?a=t.eventCategory.competition:"show"===e&&(a=t.eventCategory.show),a},i=(e,t)=>{var a="band";return"band"===e?a=t.translations.artistType.band:"soloist"===e?a=t.translations.artistType.soloist:"dj"===e&&(a=t.translations.artistType.dj),a},l=(e,t)=>{var a="";return"initial"===e?a=t.translations.status.initial:"active"===e?a=t.translations.status.active:"pending"===e?a=t.translations.status.pending:"deleted"===e?a=t.translations.status.deleted:"cancelled"===e?a=t.translations.status.cancelled:"template"===e&&(a=t.translations.status.template),a},o=e=>{let t=e.toLowerCase();return(t=(t=(t=(t=(t=(t=t.replace(/\s+/g,"-")).replace(/ä/g,"a")).replace(/ö/g,"o")).replace(/å/g,"o")).replace(/[^a-z0-9-]/g,"-")).replace(/-+/g,"-").replace(/_+/g,"-")).substring(0,50)},c=(e,t)=>{var a="party";return"party"===e&&(a=t.eventType.party),a},d=(e,t)=>{var a="";switch(e){case 0:a=t.translations.level.level0;break;case 1:a=t.translations.level.level1;break;case 2:a=t.translations.level.level2;break;case 3:a=t.translations.level.level3;break;case 4:a=t.translations.level.level4;break;case 5:a=t.translations.level.level5;break;case 6:a=t.translations.level.level6;break;case 7:a=t.translations.level.level7;break;case 8:a=t.translations.level.level8;break;case 9:a=t.translations.level.level9;break;case 10:a=t.translations.level.level10;break;case 20:a=t.translations.level.levelOpen}return a};function u(e){let t=new Date,a=e.split(":");return t.setHours(parseInt(a[0],10),parseInt(a[1],10)),t.setHours(t.getHours()-1),h(t.toTimeString().split(" ")[0])}let h=e=>{let[t,a]=e.split(":").map(Number);return t.toString().padStart(2,"0")+":"+a.toString().padStart(2,"0")},x=(e,t)=>e?t?h(e)+"-"+h(t):h(e):"",m=e=>e[0].toUpperCase()+e.slice(1),v=(e,t,a,s)=>{let r=e=>Math.PI/180*e,{lat:n,lon:i}=e.venue;return!!n&&!!i&&((e,t,a,s)=>{let n=r(a-e),i=r(s-t),l=Math.sin(n/2)*Math.sin(n/2)+Math.cos(r(e))*Math.cos(r(a))*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))*6371})(t,a,n,i)<=s},p=e=>{let t=new Date().getDay();switch(e){case"today":return{from:0,to:0};case"tomorrow":return{from:1,to:1};case"thisweek":default:return{from:0,to:7-t};case"weekend":let a=5-t;return a<0&&(a=0),{from:a,to:a+2};case"nextweek":return{from:8-t,to:14-t};case"2week":return{from:0,to:14-t}}},f=e=>e.reduce((e,t)=>{let a=t.toLowerCase(),s=t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();return e[a]=s,e},{})},36162:function(e,t,a){"use strict";a.d(t,{JE:function(){return l},Vx:function(){return n},ac:function(){return s},bd:function(){return r},tU:function(){return i},vw:function(){return o}});let s="https://whu8lokozqxz241j.public.blob.vercel-storage.com/bailant-default/party-default-iBIM2OsYZS3hgxpwn46UcUPQKvxObl.webp",r="https://whu8lokozqxz241j.public.blob.vercel-storage.com/bailant-default/band-default-pK4bCU48h66mSO17LDSRPQvNr6P2W0.webp",n="https://whu8lokozqxz241j.public.blob.vercel-storage.com/bailant-default/solist-default-JYsY1UYDbD1LJEkxRhmm6fbQweVfgr.webp",i="https://whu8lokozqxz241j.public.blob.vercel-storage.com/bailant-default/dj-default-kyePKdm9mtiEfAUfv3hw6xdOYTPHV1.webp",l="https://whu8lokozqxz241j.public.blob.vercel-storage.com/bailant-default/venue-default-W7NkUP6IKsMLPpplfmrXRMwaJ1NK0x.webp",o="https://whu8lokozqxz241j.public.blob.vercel-storage.com/bailant-default/default-teacher-VGAMMvw7dylf973YqaCLfa50X1mX6B.webp"},71158:function(e,t,a){"use strict";a.d(t,{Mo:function(){return s}});let s={siteDomain:"Bailantai",siteHeader:"Bailantai",ok:"Ok",donateURL:"https://qr.mobilepay.fi/box/70bf5b43-8d3f-4c3e-b558-0f1cd8d4156d/pay-in"}},28807:function(e,t,a){"use strict";a.d(t,{a:function(){return s}});let s={defaultLocale:"fi",locales:["fi","en"]}},28787:function(){},46720:function(e){e.exports={scrollbarhide:"styles_scrollbarhide__VekcF",custommodal:"styles_custommodal__970ja"}},28254:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/bg-image.02f9fc49.webp",height:1024,width:1792,blurDataURL:"data:image/webp;base64,UklGRmAAAABXRUJQVlA4IFQAAAAwAgCdASoIAAUAAkA4JbACdDXAAX08MwT+AAD+5p7HOgd95j82xPyhGeIumiH6Lv1EprpU24TvJsJ+RF3f2qV/nRiB+a4B+6sTdyLiyNosDYjHAAA=",blurWidth:8,blurHeight:5}}},function(e){e.O(0,[7175,2733,8506,6051,7240,7699,8422,5501,9461,4212,7259,5706,9956,5505,5957,1779,614,7675,3217,5452,6716,8173,7373,8050,8992,231,9150,7009,6278,4270,5767,2971,7023,1744],function(){return e(e.s=44710)}),_N_E=e.O()}]);