import{d as g,aW as A,k as t,G as Y,a1 as K,c as y,o as l,a as p,f as E,u as e,h as C,n as a,q as N,a2 as O,W as P,H as k,ba as Q,Y as J,i as n,j as h,b as L,w as c,aq as G,N as V,bb as ee,x as I,bc as te,an as q,F as j,p as W,at as re,bd as se,e as Z,l as B,be as X,bf as ae,bg as ie,bh as le,bi as ne,bj as oe,bk as ue,bl as de,bm as ce,bn as pe,b9 as ve}from"./NcModal-DLFgq7Qy-C_iEaZPE.chunk.mjs";import"./index-DfQpeuDm.chunk.mjs";const _e=["src"],fe=["src"],be=g({__name:"IntroAnimation",emits:["next"],setup(i,{emit:r}){const s=r,o=A("firstrunwizard","Nextcloud.mp4"),v=A("firstrunwizard","Nextcloud.webm"),f=A("firstrunwizard","Nextcloud.webp"),d=t("firstrunwizard","Welcome to {cloudName}!",{cloudName:window.OC.theme.name}),_=Y("video");K(()=>{navigator.getAutoplayPolicy&&navigator.getAutoplayPolicy(_.value)==="disallowed"&&(_.value.poster=f,window.setTimeout($,2500))});function $(){s("next")}return(w,z)=>(l(),y("div",{class:a(w.$style.wrapper)},[p("video",{ref:"video",class:a(w.$style.video),playsinline:"",autoplay:"",muted:"",onEnded:$},[p("source",{src:e(v),type:"video/webm"},null,8,_e),p("source",{src:e(o),type:"video/mp4"},null,8,fe),E(" "+C(e(d)),1)],34)],2))}}),we="_video_1p112_2",he="_wrapper_1p112_8",me={video:we,wrapper:he},ye={$style:me},ge=N(be,[["__cssModules",ye]]),xe=g({__name:"SlideShow",props:{pages:{},currentIndex:{}},emits:["update:current-index"],setup(i,{emit:r}){O(u=>({v200ec88f:$}));const s=i,o=r,v=P(!1),f=k(()=>s.pages[s.currentIndex]),d=k(()=>s.currentIndex===0),_=k(()=>s.currentIndex===s.pages.length-1),$=`url('${A("firstrunwizard","nextcloudLogo.svg")}')`,w=Q("transitions"),z=k(()=>{const u=v.value?"right":"left";return{active:w["slide-active"],enter:w[`slide-${u}-enter`],leave:w[`slide-${u}-leave-to`]}}),m=k(()=>{const u=v.value?"down":"up";return{active:w["slide-active"],enter:w[`slide-${u}-enter`],leave:w[`slide-${u}-leave-to`]}});J(()=>s.currentIndex,(u,H)=>{uM.id===u);o("update:current-index",H)}return(u,H)=>(l(),y("div",{class:a(u.$style.wrapper)},[n(G,{"enter-class":m.value.enter,"enter-active-class":m.value.active,"leave-active-class":m.value.active,"leave-to-class":m.value.leave},{default:c(()=>[d.value?(l(),y("div",{key:0,class:a(u.$style.background_circle)},null,2)):L("",!0)]),_:1},8,["enter-class","enter-active-class","leave-active-class","leave-to-class"]),p("div",{class:a(u.$style.background_bar)},null,2),d.value?L("",!0):(l(),h(e(V),{key:0,"aria-label":e(t)("firstrunwizard","Go to previous page"),class:a(u.$style.button_back),variant:"tertiary-no-background",onClick:H[0]||(H[0]=M=>u.$emit("update:current-index",i.currentIndex-1))},{icon:c(()=>[n(e(I),{path:e(ee)},null,8,["path"])]),_:1},8,["aria-label","class"])),n(e(V),{"aria-label":e(t)("firstrunwizard","Close"),class:a(u.$style.button_close),variant:d.value?"tertiary-on-primary":"tertiary-no-background",onClick:H[1]||(H[1]=M=>u.$emit("update:current-index",-1))},{icon:c(()=>[n(e(I),{path:e(te)},null,8,["path"])]),_:1},8,["aria-label","class","variant"]),d.value?(l(),y("div",{key:1,class:a(u.$style.logo)},null,2)):L("",!0),n(G,{mode:"out-in","enter-class":z.value.enter,"enter-active-class":z.value.active,"leave-active-class":z.value.active,"leave-to-class":z.value.leave},{default:c(()=>[(l(),h(q(f.value.component),{"scroller-classes":d.value?u.$style.first_page_scroller:""},null,8,["scroller-classes"]))]),_:1},8,["enter-class","enter-active-class","leave-active-class","leave-to-class"]),p("div",{class:a(u.$style.button_wrapper)},[(l(!0),y(j,null,W(f.value.buttons,(M,D)=>(l(),h(e(V),{key:M.to,alignment:"center-reverse",variant:D===f.value.buttons.length-1?"primary":"secondary",wide:D===f.value.buttons.length-1,onClick:Wt=>F(M.to)},re({default:c(()=>[E(" "+C(M.label),1)]),_:2},[_.value?void 0:{name:"icon",fn:c(()=>[n(e(I),{path:e(se)},null,8,["path"])]),key:"0"}]),1032,["variant","wide","onClick"]))),128))],2)],2))}}),Ce="_wrapper_16697_1",ze="_background_circle_16697_12",ke="_background_bar_16697_22",$e="_button_back_16697_31",Ae="_button_close_16697_37",Ne="_button_wrapper_16697_43",He="_logo_16697_56",Ie="_first_page_scroller_16697_69",Me={wrapper:Ce,background_circle:ze,background_bar:ke,button_back:$e,button_close:Ae,button_wrapper:Ne,logo:He,first_page_scroller:Ie},Le={"slide-active":"_slide-active_8t7o1_5","slide-left-enter":"_slide-left-enter_8t7o1_9","slide-left-leave-to":"_slide-left-leave-to_8t7o1_14","slide-right-enter":"_slide-right-enter_8t7o1_19","slide-right-leave-to":"_slide-right-leave-to_8t7o1_24","slide-up-enter":"_slide-up-enter_8t7o1_29","slide-up-leave-to":"_slide-up-leave-to_8t7o1_33","slide-down-enter":"_slide-down-enter_8t7o1_37","slide-down-leave-to":"_slide-down-leave-to_8t7o1_41"},Fe={$style:Me,transitions:Le},Se=N(xe,[["__cssModules",Fe]]),Pe=["textContent"],Ve=g({__name:"InfoCard",props:{title:{},subtitle:{},href:{}},setup(i){const r=i,s=k(()=>!!r.href);return(o,v)=>(l(),h(q(s.value?"a":"div"),{href:i.href||void 0,class:a([o.$style.card,{[o.$style.link]:s.value}]),target:s.value?"_blank":void 0,rel:s.value?"noreferrer":void 0},{default:c(()=>[p("div",{class:a(o.$style.icon)},[Z(o.$slots,"default")],2),p("div",{class:a(o.$style.text)},[p("h3",{class:a(o.$style.heading)},C(i.title),3),i.subtitle!==void 0?(l(),y("p",{key:0,textContent:C(i.subtitle)},null,8,Pe)):L("",!0)],2)]),_:3},8,["href","class","target","rel"]))}}),Be="_card_14cr6_1",Ee="_icon_14cr6_9",Re="_heading_14cr6_18",je="_link_14cr6_24",We="_text_14cr6_34",De={card:Be,icon:Ee,heading:Re,link:je,text:We},Ge={$style:De},x=N(Ve,[["__cssModules",Ge]]),Te=g({__name:"WizardPage",props:{title:{},subtitle:{},scrollerClasses:{}},setup(i){return(r,s)=>(l(),y("div",{class:a(r.$style.wrapper)},[p("div",{class:a([r.$style.scroller,i.scrollerClasses])},[p("h2",{class:a(r.$style.heading)},C(i.title),3),i.subtitle?(l(),y("p",{key:0,class:a(r.$style.subtitle)},C(i.subtitle),3)):L("",!0),p("div",{class:a(r.$style.content)},[Z(r.$slots,"default")],2)],2)],2))}}),Ue="_wrapper_1b76s_2",Oe="_scroller_1b76s_9",qe="_heading_1b76s_14",Ze="_subtitle_1b76s_20",Xe="_content_1b76s_26",Ye={wrapper:Ue,scroller:Oe,heading:qe,subtitle:Ze,content:Xe},Ke={$style:Ye},S=N(Te,[["__cssModules",Ke]]),Qe=g({__name:"AboutNextcloud",setup(i){return(r,s)=>(l(),h(S,{title:e(t)("firstrunwizard","More about Nextcloud")},{default:c(()=>[n(x,{href:"https://apps.nextcloud.com/",title:e(t)("firstrunwizard","Explore more apps ↗"),subtitle:e(t)("firstrunwizard","Extend the functionality of Nextcloud with hundreds of community-developed apps.")},null,8,["title","subtitle"]),n(x,{href:"https://nextcloud.com/contribute/",title:e(t)("firstrunwizard","Get involved! ↗"),subtitle:e(t)("firstrunwizard","Be a part of the community that helps build, design, translate and promote Nextcloud!")},null,8,["title","subtitle"]),n(x,{href:"https://docs.nextcloud.com/",title:e(t)("firstrunwizard","Need help? ↗"),subtitle:e(t)("firstrunwizard","Find out more about your Nextcloud setup with the admin, user or developer documentation.")},null,8,["title","subtitle"]),n(x,{href:"https://nextcloud.com/enterprise/",title:e(t)("firstrunwizard","For large organisations ↗"),subtitle:e(t)("firstrunwizard","Get Nextcloud Enterprise for mission critical environments where advanced security and compliance are important.")},null,8,["title","subtitle"])]),_:1},8,["title"]))}}),Je=["aria-label","href"],et=g({__name:"AppStoreBadge",props:{type:{}},setup(i){O($=>({v4be1d9ee:f.value}));const r=i,s=B("firstrunwizard","android"),o=B("firstrunwizard","ios"),v=k(()=>{if(r.type==="ios")return A("firstrunwizard","iosBadge.png");if(r.type==="android")return A("firstrunwizard","androidBadge.png")}),f=k(()=>`url('${v.value}')`),d=k(()=>{if(r.type==="ios")return o;if(r.type==="android")return s}),_=k(()=>{if(r.type==="ios")return t("firstrunwizard","Download on Apple app store");if(r.type==="android")return t("firstrunwizard","Download on Google play store")});return($,w)=>(l(),y("a",{class:a($.$style.badge),"aria-label":_.value,target:"_blank",rel:"noreferrer",href:d.value},null,10,Je))}}),tt="_badge_1lvp9_1",rt={badge:tt},st={$style:rt},T=N(et,[["__cssModules",st]]),at=g({__name:"DeviceIntegration",setup(i){const r=B("firstrunwizard","desktop"),s=X("settings/user/sync-clients");return(o,v)=>(l(),h(S,{title:e(t)("firstrunwizard","Seamless integration with your devices."),subtitle:e(t)("firstrunwizard","Sync your files across your devices with the desktop and mobile apps, and connect your calendar and contacts.")},{default:c(()=>[n(T,{type:"android"}),n(T,{type:"ios"}),n(x,{href:e(r),title:e(t)("firstrunwizard","Desktop app ↗"),subtitle:e(t)("firstrunwizard","Download For Windows, Mac OS and Linux.")},null,8,["href","title","subtitle"]),n(x,{href:e(s),title:e(t)("firstrunwizard","Calendar and contacts ↗"),subtitle:e(t)("firstrunwizard","Connect your calendar and contacts with your devices.")},null,8,["href","title","subtitle"])]),_:1},8,["title","subtitle"]))}}),b={version:"25 Autumn",link:"https://nextcloud.com/blog/nextcloud-hub25-autumn/",releaseNotes:["🫧 "+t("firstrunwizard","Global redesign and usability lift"),"🎨 "+t("firstrunwizard","New Office UI: colors, tabs, bars"),"💪 "+t("firstrunwizard","Performance and stability boost"),"🧠 "+t("firstrunwizard","New AI Agency tools unlocked"),"💬 "+t("firstrunwizard","Talk threads & live transcription"),"📅 "+t("firstrunwizard","Calendar: date poll for participants"),"🔎 "+t("firstrunwizard","Intuitive file search"),"👥 "+t("firstrunwizard","Teams 2.0 & quick Guest accounts"),"👑 "+t("firstrunwizard","Quick presets & many other admin updates"),"⚡ "+t("firstrunwizard","Vue3, WebSockets and more OpenAPI for devs"),t("firstrunwizard","… and much more!")],videoAltText:t("firstrunwizard","Get to know the new features of Hub {version}",{version:"25 Autumn"}),shareSubject:t("firstrunwizard","Nextcloud Hub 25 Autumn – Your digital workspace, ready in no time ⚡")},it=["href"],lt=["poster"],nt=["src"],ot=["src"],ut=g({__name:"HubRelease",setup(i){const r=A("firstrunwizard","nextcloudHub.mp4"),s=A("firstrunwizard","nextcloudHub.webm"),o=A("firstrunwizard","nextcloudHub.webp");return(v,f)=>(l(),h(S,{title:e(t)("firstrunwizard","Introducing Nextcloud Hub {version}",{version:e(b).version})},{default:c(()=>[p("a",{href:e(b).link,class:a(v.$style.anchor),target:"_blank"},[p("video",{class:a(v.$style.animation),autoplay:"",muted:"",playsinline:"",poster:e(o)},[p("source",{src:e(s),type:"video/webm;codecs=vp9"},null,8,nt),p("source",{src:e(r),type:"video/mp4"},null,8,ot),E(" "+C(e(b).videoAltText),1)],10,lt)],10,it)]),_:1},8,["title"]))}}),dt="_anchor_y1t00_2",ct="_animation_y1t00_6",pt={anchor:dt,animation:ct},vt={$style:pt},_t=N(ut,[["__cssModules",vt]]),ft=g({__name:"KeyNotes",props:{scrollerClasses:{}},setup(i){const r=t("firstrunwizard","This Nextcloud is on version {version}",{version:window.OC.config.versionstring});return(s,o)=>(l(),h(S,{"scroller-classes":i.scrollerClasses,title:e(t)("firstrunwizard","A collaboration platform that puts you in control")},{default:c(()=>[n(x,{title:e(t)("firstrunwizard","Privacy"),subtitle:e(t)("firstrunwizard","Host your data and files where you decide.")},{default:c(()=>[n(e(I),{class:a(s.$style.icon),inline:"",path:e(ae)},null,8,["class","path"])]),_:1},8,["title","subtitle"]),n(x,{title:e(t)("firstrunwizard","Productivity"),subtitle:e(t)("firstrunwizard","Collaborate and communicate across any platform.")},{default:c(()=>[n(e(I),{class:a(s.$style.icon),inline:"",path:e(ie)},null,8,["class","path"])]),_:1},8,["title","subtitle"]),n(x,{title:e(t)("firstrunwizard","Interoperability"),subtitle:e(t)("firstrunwizard","Import and export anything you want with open standards.")},{default:c(()=>[n(e(I),{class:a(s.$style.icon),inline:"",path:e(le)},null,8,["class","path"])]),_:1},8,["title","subtitle"]),n(x,{title:e(t)("firstrunwizard","Community"),subtitle:e(t)("firstrunwizard","Enjoy constant improvements from a thriving open-source community.")},{default:c(()=>[n(e(I),{class:a(s.$style.icon),inline:"",path:e(ne)},null,8,["class","path"])]),_:1},8,["title","subtitle"]),p("p",{class:a(s.$style.version)},C(e(r)),3)]),_:1},8,["scroller-classes","title"]))}}),bt="_icon_rdl0k_2",wt="_version_rdl0k_6",ht={icon:bt,version:wt},mt={$style:ht},yt=N(ft,[["__cssModules",mt]]),gt=` `,xt='',Ct='',zt=` `,kt=` `,$t=g({__name:"SharePage",setup(i){const r=encodeURIComponent(encodeURI(b.link)),s=encodeURIComponent(b.shareSubject??t("firstrunwizard","Nextcloud Hub {version} release",{version:b.version})),o=encodeURIComponent(t("firstrunwizard","Read more about it on the Nextcloud Hub {version} blog",{version:b.version})+` `+b.link),v=[{id:"bluesky",name:"Bluesky",link:`https://bsky.app/intent/compose?text=${r}`,icon:gt},{id:"facebook",name:"Facebook",link:`https://www.facebook.com/sharer/sharer.php?u=${r}`,icon:xt},{id:"linkedin",name:"LinkedIn",link:`https://www.linkedin.com/sharing/share-offsite/?url=${r}`,icon:Ct},{id:"mastodon",name:"Mastodon",link:`https://mastodon.social/share?text=${r}`,icon:zt},{id:"x",name:"X",link:`https://x.com/intent/post?url=${r}&via=Nextclouders&text=${encodeURIComponent(b.shareSubject??"")}`,icon:kt},{id:"email",name:"EMail",link:`mailto:?subject=${s}&body=${o}`,icon:oe}];return(f,d)=>(l(),h(S,{title:e(t)("firstrunwizard","Find out more on the blog")},{default:c(()=>[n(e(V),{href:e(b).link,target:"_blank"},{default:c(()=>[E(C(e(t)("firstrunwizard","Read the Nextcloud Hub {version} blog",{version:e(b).version}))+" ↗ ",1)]),_:1},8,["href"]),p("section",{class:a(f.$style.share_section)},[p("h3",{class:a(f.$style.heading)},C(e(t)("firstrunwizard","Share your opinion about Nextcloud Hub {version}",{version:e(b).version})),3),p("div",{class:a(f.$style.share_wrapper)},[(l(),y(j,null,W(v,_=>n(x,{key:_.id,class:a(f.$style.card),href:_.link,title:_.id==="email"?e(t)("firstrunwizard","Share via email"):e(t)("firstrunwizard","Share on {socialMedia}",{socialMedia:_.name})},{default:c(()=>[_.icon?(l(),h(e(I),{key:0,svg:_.id!=="email"?_.icon:void 0,path:_.id==="email"?_.icon:void 0},null,8,["svg","path"])):L("",!0)]),_:2},1032,["class","href","title"])),64))],2)],2)]),_:1},8,["title"]))}}),At="_share_section_1krl5_2",Nt="_share_wrapper_1krl5_6",Ht="_card_1krl5_15",It="_heading_1krl5_23",Mt={share_section:At,share_wrapper:Nt,card:Ht,heading:It},Lt={$style:Mt},Ft=N($t,[["__cssModules",Lt]]),St=g({__name:"WhatsNew",setup(i){return(r,s)=>(l(),h(S,{title:e(t)("firstrunwizard","New in Nextcloud Hub {version}",{version:e(b).version})+" 🚀"},{default:c(()=>[p("ul",{class:a(r.$style.list)},[(l(!0),y(j,null,W(e(b).releaseNotes,(o,v)=>(l(),y("li",{key:v,class:a(r.$style.entry)},C(o),3))),128))],2)]),_:1},8,["title"]))}}),Pt="_list_lk7o9_2",Vt="_entry_lk7o9_6",Bt={list:Pt,entry:Vt},Et={$style:Bt},Rt=N(St,[["__cssModules",Et]]),U=[{id:"key-aspects",component:yt,buttons:[{to:"hub-release",label:t("firstrunwizard","What's new?")},{to:"devices",label:t("firstrunwizard","Nextcloud on all your devices")}]},{id:"devices",component:at,buttons:[{to:"about",label:t("firstrunwizard","More about Nextcloud")}]},{id:"about",component:Qe,buttons:[{to:"hub-release",label:t("firstrunwizard","Nextcloud Hub {version}",{version:b.version})}]},{id:"hub-release",component:_t,buttons:[{to:"whats-new",label:t("firstrunwizard","Read more")}]},{id:"whats-new",component:Rt,buttons:[{to:"share",label:t("firstrunwizard","Share on social media")}]},{id:"share",component:Ft,buttons:[{to:"close",label:t("firstrunwizard","Get started!")}]}],jt=g({__name:"App",setup(i,{expose:r}){r({open:$,close:w});const s=ue(),o=B("firstrunwizard","changelogOnly",!1),v=Math.min(U.findIndex(z=>z.id==="hub-release"),0),f=P(!1),d=P(null),_=P();de(()=>{d.value===-1&&w()});function $(z){_.value=z,d.value=null,f.value=!0}function w(){d.value=null,f.value=!1,ce.delete(X("/apps/firstrunwizard/wizard"))}return(z,m)=>f.value?(l(),h(e(pe),{key:0,id:"firstrunwizard",class:"first-run-wizard",size:"normal","no-close":"",dark:!e(s),"set-return-focus":_.value,onClose:w,onNext:m[2]||(m[2]=F=>d.value+=1),onPrevious:m[3]||(m[3]=F=>d.value-=1)},{default:c(()=>[d.value===null?(l(),h(ge,{key:0,onNext:m[0]||(m[0]=F=>d.value=e(o)?e(v):0)})):(l(),h(Se,{key:1,"current-index":d.value,"onUpdate:currentIndex":m[1]||(m[1]=F=>d.value=F),pages:e(U)},null,8,["current-index","pages"]))]),_:1},8,["dark","set-return-focus"])):L("",!0)}});let R;function Tt(i){if(R===void 0){const r=document.createElement("div");r.id="firstrunwizard",document.querySelector("body").appendChild(r),R=ve(jt).mount(r)}R.open(i)}export{Tt as open}; //# sourceMappingURL=main-DMHgl3ZP.chunk.mjs.map