1(function(){var e={870:function(e,t,i){"use strict";var s={};i.r(s),i.d(s,{acceptPolicies:function(){return he},checkVerified:function(){return ce},complaint:function(){return ae},contact:function(){return se},countWikis:function(){return fe},createWiki:function(){return be},deleteWiki:function(){return _e},forgottenPassword:function(){return re},getAllPoliciesByType:function(){return me},getCurrentPolicies:function(){return ue},getCurrentPolicyByType:function(){return ve},getEntityImports:function(){return Ae},getMissingPolicies:function(){return de},getPolicyByDate:function(){return pe},getUpcomingPolicyByType:function(){return ge},importEntities:function(){return Ee},loadWikiReviews:function(){return Te},login:function(){return ee},logout:function(){return te},myWikis:function(){return we},register:function(){return ie},resetPassword:function(){return oe},sendVerifyEmail:function(){return ne},submitReview:function(){return Ie},updateLogo:function(){return ye},updateProfile:function(){return Se},updateSetting:function(){return ke},updateSkin:function(){return xe},verifyEmail:function(){return le},wikiDetails:function(){return Ce},wikiDiscovery:function(){return Pe}});i(4114);var a=i(2893),r=function(){var e=this,t=e._self._c;return t("v-app",{attrs:{id:"app"}},[t("ErrorSnackBar"),t("Navbar"),e.failedToGetMissingPolicies?e._e():t("div",{staticClass:"content"},[e.hasMissingPolicies?t("PolicyAcceptanceModal"):e._e(),e.customLayout?t("router-view"):t("v-container",{staticClass:"full-height-content"},[t("router-view")],1)],1),t("Foot",{class:["padding-footer",{"tall-footer":e.customLayout}]}),this.$store.getters.isLoggedIn&&!this.$store.getters.currentUser.verified?t("Interval",{attrs:{callback:e.checkVerified,interval:3e3}}):e._e()],1)},o=[],n=function(){var e=this,t=e._self._c;return t("v-toolbar",{attrs:{height:"64px"}},[t("a",{staticClass:"pr-4 logo",attrs:{href:"/"}},[t("img",{staticClass:"logo",attrs:{"data-test-id":"logo",src:i(3935)}})]),t("v-spacer"),e.isInitializing?e._e():[e.isLoggedIn?[t("v-btn",{staticClass:"text-none no-button-pointer-events",attrs:{text:""}},[e._v(" Hi "+e._s(e.currentUser.email))]),t("v-btn",{attrs:{id:"nav-dashboard",text:"",to:"/dashboard"}},[e._v("Dashboard")]),t("v-btn",{attrs:{id:"nav-user",text:"",to:"/user"}},[e._v("Account")]),t("v-btn",{attrs:{id:"nav-logout",text:"",to:"/logout"}},[e._v("Logout")])]:e._e(),e.$vuetify.breakpoint.width<600&&!e.isLoggedIn?t("v-menu",{attrs:{"content-class":"menu","internal-activator":"","offset-y":"",transition:"scale-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({staticClass:"dots-button mr-4",attrs:{"data-test-id":"dots-button",icon:""}},"v-btn",s,!1),i),[t("v-icon",[e._v("mdi-dots-horizontal")])],1)]}}],null,!1,2097388129)},[t("v-list",[t("v-list-item",{staticClass:"text-no-wrap",staticStyle:{"text-decoration":"none"},attrs:{to:"/login"}},[t("v-list-item-title",[e._v("Log In")])],1),t("v-list-item",{staticClass:"text-no-wrap",staticStyle:{"text-decoration":"none"},attrs:{to:"/create-account"}},[t("v-list-item-title",[e._v("Sign Up")])],1)],1)],1):e._e(),e.$vuetify.breakpoint.width>=600&&!e.isLoggedIn?[t("v-btn",{staticClass:"mr-4",staticStyle:{"text-decoration":"none"},attrs:{id:"nav-login","data-test-id":"nav-login",large:"",text:"",to:"/login"}},[e._v(" Log In ")]),t("v-btn",{staticClass:"mr-4",staticStyle:{"text-decoration":"none"},attrs:{id:"nav-create-account","data-test-id":"nav-create-account",large:"",elevation:"0",color:"primary",to:"/create-account"}},[e._v(" Sign Up ")])]:e._e()]],2)},l=[],c={name:"Navbar",computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn},isInitializing:function(){return"initializing"===this.$store.getters.authStatus},currentUser:function(){return this.$store.getters.currentUser}}},u=c,d=i(1656),h=(0,d.A)(u,n,l,!1,null,"2c9a5afd",null),p=h.exports,m=function(){var e=this,t=e._self._c;return t("v-footer",{staticClass:"footer",attrs:{"data-test-id":"footer"}},[t("v-row",{staticClass:"row-margin",attrs:{"no-gutters":""}},[t("v-col",{ref:"col1",staticClass:"col-margin",attrs:{cols:"auto"}},[t("nav",{attrs:{"aria-label":"Wikibase Cloud links"}},[t("h3",{staticClass:"footer-list-title"},[e._v("Wikibase Cloud")]),t("ul",{staticClass:"footer-list"},[t("li",[t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://wikiba.se/about-us/"}},[e._v("About")])]),t("li",[t("router-link",{attrs:{to:"/discovery"}},[e._v("Discovery")])],1),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://www.mediawiki.org/wiki/Wikibase/Wikibase.cloud"}},[e._v("Documentation")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://status.wikibase.cloud"}},[e._v("Platform Status")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/wbstack"}},[e._v("GitHub")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://spenden.wikimedia.de/donation/ne
1w?piwik_kwd=ui-footer&piwik_campaign=wbc-202606-ui&lang=en_gb"}},[e._v("Donate")])]),t("li",[t("router-link",{attrs:{to:"/contact"}},[e._v("Contact us")])],1)])])]),t("v-col",{ref:"col2",attrs:{cols:"auto"}},[t("nav",{attrs:{"aria-label":"Legal links"}},[t("h3",{staticClass:"footer-list-title"},[e._v("Legal")]),t("ul",{staticClass:"footer-list"},[t("li",[t("router-link",{attrs:{to:"/privacy-policy"}},[e._v("Privacy Policy")])],1),t("li",[t("router-link",{attrs:{to:"/terms-of-use"}},[e._v("Terms of Use")])],1),t("li",[t("router-link",{attrs:{to:"/hosting-policy"}},[e._v("Hosting Policy")])],1),t("li",[t("router-link",{attrs:{to:"/dsa-info"}},[e._v("Digital Services Act Information")])],1),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"https://www.wikimedia.de/impressum/"}},[e._v("Imprint")])]),t("li",[t("router-link",{attrs:{to:"/complaint"}},[e._v("Report illegal content")])],1)])])])],1)],1)},v=[],g={name:"Footer"},f=g,w=(0,d.A)(f,m,v,!1,null,"471c4539",null),b=w.exports,_=function(){var e=this,t=e._self._c;return t("span",{ref:"elm",staticClass:"d-none"})},y=[],k={props:{callback:Function,interval:Number},beforeDestroy(){this.stop()},mounted(){this.start()},methods:{start(){this.stop(),this.$props.interval&&(this.$refs.elm.interval=setInterval(this.tick,this.$props.interval))},tick(...e){this.$props.callback(...e)},stop(){this.$refs.elm.interval&&clearInterval(this.$refs.elm.interval)}}},x=k,C=(0,d.A)(x,_,y,!1,null,null,null),S=C.exports,P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"overlay"},[t("v-card",{attrs:{"max-width":"580"}},[t("v-card-title",[e._v(" Updated policies ")]),t("v-card-text",[t("p",{staticClass:"text-body-1"},[e._v(" Please accept the updated "),t("PolicyList",{attrs:{policies:e.policies,article:"",clickable:!1}}),e._v(" to continue using Wikibase Cloud. If you prefer not to keep your account, you can contact us to delete it. ")],1),t("v-checkbox",{staticClass:"mt-2",attrs:{"hide-details":"",disabled:e.inFlight},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",{staticClass:"text-body-1"},[e._v(" I agree to the "),t("PolicyList",{attrs:{policies:e.policies}}),t("span",[e._v(".")])],1)]},proxy:!0}]),model:{value:e.accepted,callback:function(t){e.accepted=t},expression:"accepted"}})],1),t("v-card-actions",[t("v-btn",{attrs:{text:"",color:"primary",disabled:e.inFlight},on:{click:e.onContactForm}},[e._v(" Contact Form ")]),t("v-btn",{attrs:{color:"primary",disabled:!e.accepted||e.inFlight},on:{click:e.onAccept}},[e._v(" Continue ")])],1)],1)],1)},E=[],A=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"contents"}},e._l(e.policies,(function(i,s){return t("div",{key:i.metadata.policy_id,staticStyle:{display:"contents"}},[t("span",[e._v(e._s(e.getPolicySeparator(s)))]),e.clickable?t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s}){return[t("a",e._g({attrs:{target:"_blank",href:e.getPolicyUrl(i)},on:{click:function(e){e.stopPropagation()}}},s),[e._v(e._s(e.getPolicyName(i)))])]}}],null,!0)},[e._v(" Opens in new window ")]):t("span",[e._v(" "+e._s(e.getPolicyName(i))+" ")])],1)})),0)},I=[],T={props:{policies:{type:Array},article:{type:String,default:"the "},clickable:{type:Boolean,default:!0}},methods:{getPolicyName(e){return e.metadata.type.replaceAll("-"," ")},getPolicyUrl(e){return`/${e.metadata.type}/${e.metadata.active_from}`},getPolicySeparator(e){const t=this.policies.length;return 0===e?" ":2===t?` and ${this.article}`:e===t-1?`, and ${this.article}`:`, ${this.article}`}}},D=T,W=(0,d.A)(D,A,I,!1,null,null,null),F=W.exports,$={components:{PolicyList:F},data(){return{accepted:!1,inFlight:!1}},computed:{policies(){return this.$store.getters.missingPolicies}},methods:{onContactForm(){this.$router.push("/contact")},async onAccept(){this.inFlight=!0;const e=Array.from(this.policies,(e=>e.metadata.policy_id));await this.$store.dispatch("acceptPolicies",e),this.inFlight=!1}}},L=$,M=(0,d.A)(L,P,E,!1,null,"07e85750",null),R=M.exports,q=function(){var e=this,t=e._self._c;return t("v-snackbar",{attrs:{value:e.show,color:"error",timeout:e.timeout},on:{input:e.hide},scopedSlots:e._u([e.dismissible?{key:"action",fn:function({attrs:i}){return[t("v-btn",e._b({attrs:{icon:""},on:{click:e.hide}},"v-btn",i,!1),[t("v-icon",[e._v("mdi-close")])],1)]}}:null],null,!0)},[e._v(" "+e._s(e.message)+" ")])},U=[],O={computed:{show:function(){return this.$store.getters.hasLatestError},dismissible:function(){return this.$store.getters.latestErrorDismissible},timeout:function(){return this.dismissible?5e3:-1},message:function(){return this.$store.getters.latestErrorMessage}},methods:{hide(){this.$store.dispatch("clearLatestError")}}},N=O,z=(0,d.A)(N,q,U,!1,null,null,null),G=z.exports,V={name:"App",components:{Navbar:p,Foot:b,Interval:S,PolicyAcceptanceModal:R,ErrorSnackBar:G},computed:{customLayout:function(){return this.$route.meta.customLayout},hasMissingPolicies:function(){return this.$route.meta.requiresAuth&&!this.$route.meta.requiresAuth.excludeFromPolicyChecks&&this.$store.getters.missingPolicies?.length},failedToGetMissingPolicies:function(){return this.$store.getters.failedToGetMissingPolicies}},methods:{checkVerified(){this.$api.checkVerified().then((e=>e&&this.$store.dispatch("markAsVerified")))}}},j=V,Q=(0,d.A)(j,r,o,!1,null,"036540c8",null),B=Q.exports,H=i(1780),Y=(i(8111),i(3579),i(2554)),K=i(5353),J=i(3041);const Z=J.A.create({baseURL:"/api",headers:{"Content-Type":"application/json"}});var X=Z;const ee=async e=>{let t;t=e?X.post("/auth/login",e):X.get("/auth/login");const{data:i}=await t;return i},te=async e=>await X.delete("/auth/login",e),ie=async e=>{const t=await X.post("/user/register",e).catch((e=>{const{errors:t={}}=e.response.data;throw t}));return t.data.success},se=async e=>{const t=await X.post("/contact/sendMessage",e).catch((e=>{const{errors:t={}}=e.response.data;throw t}));return t.data.success},ae=async e=>{const t=await X.post("/complaint/sendMessage",e).catch((e=>{const{errors:t={}}=e.response.data;throw t}));return t.data.success},re=async e=>X.post("/user/forgotPassword",e),oe=async e=>X.post("/user/resetPassword",e),ne=async()=>"Already verified!"===(await X.post("/user/sendVerifyEmail")).data.message,le=async e=>{await X.post("/user/verifyEmail",e).catch((e=>{const t=422===e.response.status;throw t}))},ce=async()=>{const{data:e}=await X.get("/auth/login");return e.verified},ue=async()=>{const{data:e}=await X.get("/v1/policies/current");return e.items},de=async()=>{const{data:e}=await X.get("/v1/policies/missing");return e.items}
1,he=async e=>{await X.put("/v1/policy_acceptances",{policy_ids:e})},pe=async({policyType:e,activeFrom:t})=>{const{data:i}=await X.get(`/v1/policies/${e}/by_active_from/${t}`);return i},me=async({policyType:e})=>{const{data:t}=await X.get(`/v1/policies/${e}`);return t.items},ve=async({policyType:e})=>{const{data:t}=await X.get(`/v1/policies/${e}/current`);return t},ge=async({policyType:e})=>{const{data:t}=await X.get(`/v1/policies/${e}/upcoming`);return t},fe=async()=>(await X.get("/wiki/count")).data.data,we=async()=>(await X.post("/wiki/mine")).data,be=async e=>(await X.post("/wiki/create",e).catch((({response:{data:{message:e,errors:t={}}}})=>{throw t.message=e,t.dbNotReady="No databases ready"===e,t.tooManyWikis=null!==e&&e.includes("Too many wikis."),t}))).data.data,_e=async e=>X.post("/wiki/delete",e),ye=async({file:e,fileName:t,wikiId:i})=>{const s=new FormData;return s.append("logo",e,t),s.append("wiki",i),X.post("/wiki/logo/update",s,{headers:{"Content-Type":"multipart/form-data"}})},ke=async(e,t)=>X.post(`/wiki/setting/${e}/update`,{...t,setting:e}),xe=async e=>ke("wgDefaultSkin",e),Ce=async e=>(await X.post("/wiki/details",e)).data.data,Se=async e=>(await X.post("/wiki/profile",e)).data.data,Pe=async({sort:e,direction:t,active:i,currentPage:s,resultsPerPage:a})=>(await X.get("/wiki",{params:{sort:e,direction:t,is_active:i,page:s,per_page:a}})).data,Ee=async({wikiId:e,entityIds:t=["P22@2199351820","P25@2142619520","P40@2211223166","P18@2207212164","P31@2214227295","P279@2217210867","Q1@2216755517","Q2@2216196627","Q5@2212749099","Q64@2215506799","Q42@2213635313","Q3107329@2211072210"],sourceWikiUrl:i="https://www.wikidata.org"})=>{const{data:{data:s}}=await X.post("/wiki/entityImport",{wiki:e,entity_ids:t.join(","),source_wiki_url:i});return s},Ae=async({wikiId:e})=>{const{data:{data:t}}=await X.get(`/wiki/entityImport?wiki=${e}`);return t},Ie=async({wikiId:e,additionalInformation:t})=>{const{data:{data:i}}=await X.post(`/v1/wikis/${e}/review_submissions`,{additional_information:t});return i},Te=async e=>{const{data:{data:t}}=await X.get(`/v1/wikis/${e}/review_submissions`);return t},De=qe(),We=()=>({status:"initializing",user:null,initialized:De}),Fe=We(),$e={isLoggedIn:e=>"success"===e.status&&!!e.user,initialized:e=>e.initialized,authStatus:e=>e.status,currentUser:e=>e.user},Le={auth_resetState(e){Object.assign(e,We(),{status:"success"})},auth_success(e,{user:t}){e.status="success",e.user=t,e.initialized.resolve()},auth_error(e){e.initialized.resolve(),e.status="error"},auth_isVerified(e){e.user.verified=!0}},Me={resetAuthState({commit:e}){e("auth_resetState")},login({commit:e},t){return ee(t).then((({user:t})=>{e("auth_success",{user:t})})).catch((t=>{if(e("auth_error"),401!==t.response.status)throw t}))},logout({commit:e}){return te().then((()=>{e("auth_resetState"),e("wikis_resetState")})).catch((t=>{throw e("auth_error"),t}))},markAsVerified({commit:e}){return new Promise(((t,i)=>{e("auth_isVerified"),t()}))}};var Re={state:Fe,mutations:Le,getters:$e,actions:Me};function qe(){let e,t;const i=new Promise(((i,s)=>{e=i,t=s}));return i.resolve=e,i.reject=t,i}const Ue=()=>({latestError:null,latestErrorMessage:null,latestErrorDismissible:!0}),Oe=Ue(),Ne={hasLatestError:e=>!!e.latestError,latestError:e=>e.latestError,latestErrorMessage:e=>e.latestErrorMessage,latestErrorDismissible:e=>e.latestErrorDismissible},ze={setLatestError(e,{error:t=null,message:i=null,dismissible:s=!0}){e.latestError=t,e.latestErrorMessage=i,e.latestErrorDismissible=s}},Ge={reportLatestError({commit:e},{error:t,message:i,dismissible:s=!0}){console.error(t),e("setLatestError",{error:t,message:i,dismissible:s})},clearLatestError({commit:e}){e("setLatestError",{})}};var Ve={state:Oe,mutations:ze,getters:Ne,actions:Ge};const je=()=>({missingPolicies:null,failedToGetMissingPolicies:!1}),Qe=je(),Be={missingPolicies:e=>e.missingPolicies,failedToGetMissingPolicies:e=>e.failedToGetMissingPolicies},He={setMissingPolicies(e,t){e.missingPolicies=t},failedToGetMissingPolicies(e,t){e.failedToGetMissingPolicies=t}},Ye={async fetchMissingPolicies({dispatch:e,commit:t}){try{t("setMissingPolicies",await de())}catch(Ve){t("failedToGetMissingPolicies",!0),e("reportLatestError",{error:Ve,message:"Failed to get policies. Please try reloading the page.",dismissible:!1})}},async acceptPolicies({dispatch:e},t){try{await he(t),await e("fetchMissingPolicies")}catch(Ve){e("reportLatestError",{error:Ve,message:"Failed to save policy acceptances. Please try again."})}}};var Ke={state:Qe,mutations:He,getters:Be,actions:Ye};const Je=()=>({forgottenPasswordSubmitSuccess:null,resetPasswordSubmitSuccess:null,forgottenPasswordSubmitError:null}),Ze=Je(),Xe={wasLastForgottenPasswordSubmitASuccess:e=>e.forgottenPasswordSubmitSuccess,wasLastResetPasswordSubmitASuccess:e=>e.resetPasswordSubmitSuccess,lastForgottenPasswordError:e=>e.forgottenPasswordSubmitError},et={user_setForgottenPasswordSubmitSuccessTrue(e){e.forgottenPasswordSubmitSuccess=!0},user_setForgottenPasswordSubmitSuccessFalse(e){e.forgottenPasswordSubmitSuccess=!1},user_setForgottenPasswordSubmitSuccessNull(e){e.forgottenPasswordSubmitSuccess=null},user_setResetPasswordSubmitSuccessTrue(e){e.resetPasswordSubmitSuccess=!0},user_setResetPasswordSubmitSuccessFalse(e){e.resetPasswordSubmitSuccess=!1},user_setForgottenPasswordError(e,t){e.forgottenPasswordSubmitError=t}},tt={forgottenPassword({commit:e},t){return re(t).then((()=>e("user_setForgottenPasswordSubmitSuccessTrue"))).catch((t=>{e("user_setForgottenPasswordSubmitSuccessFalse"),e("user_setForgottenPasswordError",t)}))},resetPassword({commit:e},t){return oe(t).then((()=>e("user_setResetPasswordSubmitSuccessTrue"))).catch((()=>e("user_setResetPasswordSubmitSuccessFalse")))},clearForgottenPasswordState({commit:e}){e("user_setForgottenPasswordSubmitSuccessNull"),e("user_setForgottenPasswordError",null)}};var it={state:Ze,mutations:et,getters:Xe,actions:tt};i(116),i(7588),i(1701),i(3110),i(8335);const st=()=>({status:"",wikis:[],count:0,limit:0,currentWikiEntityImports:[],currentWikiEntityImportError:null,currentWikiSettings:null,currentWikiDomain:"",reviews:{}}),at=st(),rt="No Mapping";function ot(e){const t={};return Object.keys(e).forEach((i=>{e[i]!==rt&&(t[i]=e[i])})),t}const nt={wikisStatus:e=>e.status,wikis:e=>e.wikis,wikiCount:e=>e.count,wikiLimit:e=>e.limit,currentWikiEntityImports:e=>e.currentWikiEntityImports,currentWikiEntityImportError:e=>e.currentWikiEntityImportError,hasLoaded:e=>""!==e.wikis.status,getReviewsByWikiId:e=>t=>e.reviews[Number(t)]??[]},lt={wikis_resetState(e){Object.assign(e,st())},wikis_request(e){e.status="loading"},wikis_success(e,t){e.status="success",e.wikis=t.wikis,e.limit=t.limit,e.count=t.count},wikis_error(e){e.status="error"},set_current_wiki_domain(e,t){e.currentWikiDomain=t},set_current_wiki_settings(e,t){const i=t.public_settings.find((e=>"wgDefaultSkin"===e.name)),s=i?i.value:"Vector",a=t.public_settings.find((e=>"wikibaseManifestEquivEntities"===e.name)),r={properties:{P31:rt,P279:rt},items:{}},o=a?JSON.parse(a.value):r,n=t.public_settings.find((e=>
1"wwUseQuestyCaptcha"===e.name)),l=!!n&&1===parseInt(n.value),c=t.public_settings.find((e=>"wwCaptchaQuestions"===e.name)),u=[{question:"How many vowels are in this question?",answers:["12","twelve"]},{question:"What is the chemical formula of water?",answers:["H2O"]},{question:"2 + 4 = ?",answers:["6","six"]}],d=c?Object.entries(JSON.parse(c.value)).map((([e,t])=>({question:e,answers:t}))):void 0,h=t.public_settings.find((e=>"wikibaseFedPropsEnable"===e.name)),p=!!h&&1===parseInt(h.value),m=t.public_settings.find((e=>"wwExtEnableWikibaseLexeme"===e.name)),v=!!m&&1===parseInt(m.value),g=t.public_settings.find((e=>"wgLogo"===e.name)),f=g?g.value:null,w=t.public_settings.find((e=>"wwWikibaseStringLengthString"===e.name)),b=w?parseInt(w.value):400,_=t.public_settings.find((e=>"wwWikibaseStringLengthMonolingualText"===e.name)),y=_?parseInt(_.value):400,k=t.public_settings.find((e=>"wwWikibaseStringLengthMultilang"===e.name)),x=k?parseInt(k.value):250,C=t.public_settings.find((e=>"wwExtEnableConfirmAccount"===e.name)),S=!!C&&1===parseInt(C.value);e.currentWikiSettings={wikibaseManifestEquivEntities:o,wikibaseFedPropsEnable:p,wwExtEnableWikibaseLexeme:v,wgLogo:f,wgDefaultSkin:s,wwWikibaseStringLengthString:b,wwWikibaseStringLengthMonolingualText:y,wwWikibaseStringLengthMultilang:x,wwExtEnableConfirmAccount:S,wwUseQuestyCaptcha:l,captchaQuestions:d,defaultQuestions:u}},clear_current_wiki_settings(e){e.currentWikiSettings=null},set_item_mapping(e,t){e.currentWikiSettings.wikibaseManifestEquivEntities.items=t},set_property_mapping(e,t){e.currentWikiSettings.wikibaseManifestEquivEntities.properties=t},set_federated_properties_enabled(e,t){e.currentWikiSettings.wikibaseFedPropsEnable=t},set_lexeme_enabled(e,t){e.currentWikiSettings.wwExtEnableWikibaseLexeme=t},set_logo(e,t){e.currentWikiSettings.wgLogo=t},set_skin(e,t){e.currentWikiSettings.wgDefaultSkin=t},set_wikibase_string_lengths(e,{variableName:t,value:i}){e.currentWikiSettings[t]=i},set_enable_confirm_account(e,{value:t}){e.currentWikiSettings.wwExtEnableConfirmAccount=t},set_enable_questy_captcha(e,{value:t}){e.currentWikiSettings.wwUseQuestyCaptcha=t},set_questy_captcha_questions(e,t){e.currentWikiSettings.captchaQuestions=t},set_current_wiki_entityImports(e,t){e.currentWikiEntityImports=t},set_current_wiki_entityImportError(e,t){e.currentWikiEntityImportError=t},set_current_wiki_profile(e,t){e.currentWikiProfile=t},add_wiki_review(e,{wikiId:t,value:i}){const s=e.reviews[t]||[];s.push(i),a["default"].set(e.reviews,t,s)},set_wiki_reviews(e,{wikiId:t,value:i}){a["default"].set(e.reviews,t,i)}},ct={initializeSettings({commit:e},t){e("clear_current_wiki_settings"),Ae({wikiId:t}).then((t=>{e("set_current_wiki_entityImports",t),e("set_current_wiki_entityImportError",null)})).catch((t=>e("set_current_wiki_entityImportError",t))),Ce({wiki:t}).then((t=>{e("set_current_wiki_settings",t),e("set_current_wiki_domain",t.domain),e("set_current_wiki_profile",t.wiki_latest_profile)}))},resetWikisState({commit:e}){e("wikis_resetState")},refreshWikis({commit:e,dispatch:t}){return e("wikis_request"),we().then((t=>{e("wikis_success",t)})).catch((()=>{e("wikis_error")}))},deleteWiki({commit:e},t){return _e(t).finally((()=>e("wikis_resetState")))},updateLogo({commit:e},t){return ye(t).then((t=>{e("set_logo",t.data.url)}))},updateSkin({commit:e},t){return xe(t).then((()=>{e("set_skin",t.value)}))},updateSetting({commit:e},t){return ke(t.setting,t)},async updateProfile({commit:e},t){const i=await Se(t);e("set_current_wiki_profile",i)},triggerEntityImport({commit:e},t){return Ee({wikiId:t}).then((()=>Ae({wikiId:t}))).then((t=>{e("set_current_wiki_entityImports",t),e("set_current_wiki_entityImportError",null)})).catch((t=>e("set_current_wiki_entityImportError",t)))},updateEntityImports({commit:e},t){return Ae({wikiId:t}).then((t=>e("set_current_wiki_entityImports",t)))},setItemMapping({commit:e},t){e("set_item_mapping",t)},setPropertyMapping({commit:e},t){e("set_property_mapping",t)},setFederatedPropertiesEnabled({commit:e},t){e("set_federated_properties_enabled",t)},setLexemeEnabled({commit:e},t){e("set_lexeme_enabled",t)},setWikibaseStringLengths({commit:e},{setting:t,value:i}){e("set_wikibase_string_lengths",t,i)},setEnableConfirmAccount({commit:e},t){e("set_enable_confirm_account",t)},saveEntityMapping({state:e},t){const i="wikibaseManifestEquivEntities",s=e.currentWikiSettings.wikibaseManifestEquivEntities;return ke(i,{wiki:t,setting:i,value:JSON.stringify({properties:ot(s.properties),items:ot(s.items)})})},setEnabledQuestyCaptcha({commit:e},t){e("set_enable_questy_captcha",t)},setQuestyCaptchaQuestions({commit:e},t){e("set_questy_captcha_questions",t)},async submitWikiForReview({commit:e},t){const i=await Ie(t),s=t.wikiId;e("add_wiki_review",{wikiId:s,value:i})},async loadWikiReviews({commit:e},t){const i=await Te(t);e("set_wiki_reviews",{wikiId:t,value:i})}};var ut={state:at,mutations:lt,getters:nt,actions:ct};a["default"].use(K.Ay);var dt=new K.Ay.Store({modules:{auth:Re,error:Ve,policies:Ke,user:it,wikis:ut}}),ht=function(){var e=this,t=e._self._c;return t("div",{staticClass:"content"},[t("div",{staticClass:"wrapper"},[t("HeroView",{attrs:{background:i(6236),header:"Your own Wikibase in five minutes",content:"Simple & Secure",button:"Try it out",target:"/create-account"}}),t("DynamicContainerView",{scopedSlots:e._u([{key:"default",fn:function({sideBySide:e}){return[t("DynamicPhotoTextView",{attrs:{"data-test-id":"wbcloud-intro",sideBySide:e,image:i(5730),header:"What is Wikibase Cloud?",content:"In a nutshell, Wikibase Cloud is a collaborative space for individuals and groups to contribute, edit, and curate information in a structured way to help you transform your data into meaningful knowledge."}}),t("DynamicPhotoTextView",{attrs:{sideBySide:e,image:i(9896),header:"Why Wikibase Cloud?",content:"Wikibase Cloud makes it easy and quick to host your Wikibase with no need for your own infrastru
1cture. We offer a complete install of Wikibase and its services within a few minutes of signup. Wikibase cloud is GDPR-compliant, rule-free, flexible and free and open source."}}),t("DynamicPhotoTextView",{attrs:{sideBySide:e,image:i(3464),header:"Who is Wikibase Cloud for?",content:"Whether you're in the cultural sector, a scientific researcher or the author of another data-rich project, Wikibase Cloud supports the archiving of structured data collections and opens the doors to efficient data management, sharing, and discovering insights in a collaborative environment."}})]}}])}),t("DiscoveryView"),t("PhotoTextView",{attrs:{image:i(1531),header:"Sign up for Open Beta!",content:"Our Open Beta is ready for your projects and data, running in European data centers with full GDPR compliance and 30 days of guaranteed data backups. Beta means we may not be able to offer 100% availability on the platform or individual services until full release, but we can guarantee your data is safe.",button:"Sign up here for open beta",target:"/create-account"}})],1)])},pt=[],mt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"view",style:{"--background-image":"url("+e.background+")"}},[t("div",{staticClass:"content"},[t("div",{staticClass:"font-weight-bold",class:e.$vuetify.breakpoint.width>=640?"text-h1":"text-h2"},[e._v(" "+e._s(e.header)+" ")]),t("div",{staticClass:"subtitle text-h5 font-weight-medium"},[e._v(e._s(e.content))]),t("v-btn",{attrs:{to:e.target,color:"primary","x-large":""}},[e._v(e._s(e.button))])],1)])},vt=[],gt={name:"HeroView",props:{header:{type:String,required:!0},content:{type:String,required:!0},button:{type:String,required:!0},target:{type:String,required:!0},background:{type:String,required:!0}}},ft=gt,wt=(0,d.A)(ft,mt,vt,!1,null,"aefbcd20",null),bt=wt.exports,_t=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"flexbox",staticClass:"view",class:{wrapped:e.wrapped}},[e._t("default",null,{sideBySide:e.wrapped})],2)},yt=[],kt=(i(2489),{data(){return{wrapped:!1,timer:null,debounce:15}},methods:{onResizeFlexbox(){return new Promise((e=>{clearTimeout(this.timer),this.timer=setTimeout((()=>{this.wrapped=!1,this.$nextTick((()=>{const t=Array.from(this.$refs.flexbox.children);this.wrapped=t.at(0).offsetTop!==t.at(-1).offsetTop,e()}))}),this.debounce)}))}}}),xt={name:"DynamicContainerView",mixins:[kt],methods:{setHeaderHeight(){const e=Array.from(this.$refs.flexbox.children),t=e.map((e=>e.__vue__.$refs.header)).filter((e=>e));t.forEach((e=>{e.style.height="auto"})),document.body.clientWidth>640&&this.$nextTick((()=>{const e=Math.max.apply(Math,t.map((e=>e.offsetHeight)));t.forEach((t=>{t.style.height=e+"px"}))}))},async onResize(){document.body.clientWidth>640?await this.onResizeFlexbox():this.wrapped=!1,this.$nextTick((()=>{this.setHeaderHeight()}))}}},Ct=xt,St=(0,d.A)(Ct,_t,yt,!1,null,"6af391ca",null),Pt=St.exports,Et=function(){var e=this,t=e._self._c;return e.sideBySide?t("div",{staticClass:"alt-item"},[t("div",{staticClass:"text"},[t("div",[t("div",{staticClass:"text-header text-h4"},[e._v(e._s(e.header))]),t("div",{staticClass:"text-body-1"},[e._v(e._s(e.content))])])]),t("div",{staticClass:"image"},[t("img",{attrs:{src:e.image}})])]):t("div",{staticClass:"item"},[t("img",{attrs:{src:e.image}}),t("div",{ref:"header",staticClass:"text-header text-h4 text-center"},[e._v(e._s(e.header))]),t("div",{staticClass:"text-body-1 text-center"},[e._v(e._s(e.content))])])},At=[],It={name:"DynamicPhotoTextView",props:{sideBySide:{type:Boolean,default:!1},image:{type:String,required:!0},header:{type:String,required:!0},content:{type:String,required:!0}}},Tt=It,Dt=(0,d.A)(Tt,Et,At,!1,null,"3ca2c5fc",null),Wt=Dt.exports,Ft=function(){var e=this,t=e._self._c;return t("div",{staticClass:"view",class:{wrapped:e.wrapped}},[t("div",{staticClass:"content"},[e._m(0),t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResizeFlexbox,expression:"onResizeFlexbox"}],ref:"flexbox",staticClass:"discovery"},[t("DiscoveryCard",{attrs:{name:"Qichwabase","data-test-id":"featured-wiki-1",url:"https://qichwa.wikibase.cloud",logo:"https://storage.googleapis.com/wikibase-cloud-static/sites/cabd56b39c5401450a34dd5c9ea93149/logos/135.png"}},[e._v(" Qichwabase models "),t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q5218",target:"_blank"}},[e._v("Quechua language")]),e._v(", a language family spoken primarily in the Andes region of South America. It is a product of a miniproject worked on at "),t("a",{attrs:{href:"https://datathon2022.linkeddata.es/",target:"_blank"}},[e._v("SD-LLOD-22")]),e._v(" in June 2022, where it was awarded the Best Project Prize. ")]),t("DiscoveryCard",{attrs:{name:"Beyond Notability","data-test-id":"featured-wiki-2",url:"https://beyond-notability.wikibase.cloud",logo:"https://storage.googleapis.com/wikibase-cloud-static/sites/09daa4b3e2ceb1869bc81a21efc230b4/logos/135.png"}},[e._v(" Beyond Notability re-evaluates women's work in archaeology, history and heritage between 1870 and 1950. This community-driven LOD project experiences their knowledge graph as a living resource where any results are temporary until their final publication in 2024. ")]),t("DiscoveryCard",{attrs:{name:"Wikibase World","data-test-id":"featured-wiki-3",url:"https://wikibase.world",logo:"https://storage.googleapis.com/wikibase-cloud-static/sites/5de9f42a956f72a8375f03260e597f58/logos/135.png"}},[t("a",{attrs:{href:"https://wikibase.world/wiki/Item:Q3",target:"_blank"}},[e._v("Wikibase World")]),e._v(" is a collaborative database that was initiated by James Hare, an enthusiastic Wikibase community member. This Wikibase attempts to display and map existing Wikibases with common records so that they can become interoperable with each other. Come and join! ")])],1),t("div",{staticClass:"button"},[t("v-btn",{attrs:{"data-test-id":"discovery-button",to:"/discovery",large:"",outlined:""}},[e._v(" Discover more wikibases ")])],1)])])},$t=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"header"},[t("div",{staticClass:"text-h3 title"},[e._v(" Need some help getting started? ")]),t("div",{staticClass:"text-body-1 subtitle"},[e._v(" Or have a look at "),t("a",{attrs:{href:"https://www.mediawiki.org/wiki/Wikibase",target:"_blank"}},[e._v("our documentation")]),e._v(", connect with "),t("a",{attrs:{href:"https://t.me/joinchat/FgqAnxNQYOeAKmyZTIId9g",target:"_blank"}},[e._v("the community")]),e._v("."),t("br"),e._v(" You can also get some inspiration by browsing some other Wikibases hosted on Wikibase Cloud. ")])])}],Lt=function(){var e=this,t=e._self._c;return t("v-card",{on:{click:e.goToWiki,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.goToWiki.apply(null,arguments)}}},[t("v-container",{staticClass:"content"},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"flex-grow-0"},[t("v-avatar",{attrs:{rounded:""}},[t("img",{attrs:{src:e.logo}}
1)])],1),t("v-col",{staticClass:"details"},[t("div",{staticClass:"text-h5 font-weight-regular"},[e._v(e._s(e.name))]),e._t("default")],2)],1)],1)],1)},Mt=[],Rt={name:"DiscoveryCard",props:{name:{type:String,required:!0},url:{type:String,required:!0},logo:{type:String,required:!1}},methods:{goToWiki(e){"A"!==e.target.tagName&&window.open(this.url,"_blank")}}},qt=Rt,Ut=(0,d.A)(qt,Lt,Mt,!1,null,"f2fa09c0",null),Ot=Ut.exports,Nt={name:"DiscoveryView",mixins:[kt],components:{DiscoveryCard:Ot}},zt=Nt,Gt=(0,d.A)(zt,Ft,$t,!1,null,"6190be8c",null),Vt=Gt.exports,jt=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResizeFlexbox,expression:"onResizeFlexbox"}],ref:"flexbox",staticClass:"view",class:{wrapped:e.wrapped}},[t("div",{staticClass:"image"},[t("img",{attrs:{src:e.image}})]),t("div",{staticClass:"text"},[t("div",[t("div",{staticClass:"text-h3"},[e._v(e._s(e.header))]),t("div",{staticClass:"text-body text-body-1"},[e._v(e._s(e.content))]),t("v-btn",{attrs:{"data-test-id":"open-beta-button",to:e.target,color:"primary","x-large":""}},[e._v(e._s(e.button))])],1)])])},Qt=[],Bt={name:"PhotoTextView",mixins:[kt],props:{image:{type:String,required:!0},header:{type:String,required:!0},content:{type:String,required:!0},button:{type:String,required:!0},target:{type:String,required:!0}}},Ht=Bt,Yt=(0,d.A)(Ht,jt,Qt,!1,null,"0d1e260b",null),Kt=Yt.exports,Jt={name:"Home",components:{HeroView:bt,DynamicContainerView:Pt,DynamicPhotoTextView:Wt,DiscoveryView:Vt,PhotoTextView:Kt}},Zt=Jt,Xt=(0,d.A)(Zt,ht,pt,!1,null,"e2d5f7b4",null),ei=Xt.exports,ti=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",[t("v-col",{attrs:{cols:"12",lg:"4",md:"4"}},[t("v-container",{staticClass:"rightpaddingonly",attrs:{fluid:""}},[t("v-row",[t("v-col",[t("v-container",[t("h3",{staticClass:"ml-4"},[e._v("Your Wikibases")]),1==e.currentUser.verified?t("v-list",e._l(e.wikis,(function(i){return t("v-list-item",{key:i.id,attrs:{wiki:i}},[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(i.sitename))])],1),t("v-list-item-icon",[t("v-btn",{attrs:{icon:"",small:"",icontarget:"_blank",rel:"noopener noreferrer",href:"//"+i.domain}},[t("v-icon",[e._v("mdi-home")])],1)],1),t("v-list-item-icon",[t("v-btn",{attrs:{icon:"",small:"",to:{name:"TabSettingsProfileInner",params:{id:i.id}}}},[t("v-icon",[e._v("mdi-cog")])],1)],1)],1)})),1):e._e(),"loading"==e.status&&0==e.count?t("v-container",[t("v-container",{staticClass:"d-flex justify-center"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)],1):e._e(),1==e.currentUser.verified?t("v-container",[t("v-btn",e._g(e._b({staticClass:"space",attrs:{color:"primary mb-2",dark:"",to:"/wikis/create"}},"v-btn",e.attrs,!1),e.on),[e._v(" Create new Wiki ")]),t("p",{staticClass:"caption"},[e._v(e._s(e.count)+" of "+e._s(0==e.limit?"â":e.limit)+" Wikis used")])],1):e._e(),0==e.currentUser.verified?t("v-card-text",[t("p",[t("strong",[e._v("Your email address is not yet verified.")])]),t("p",[e._v("You can trigger another verification link from the "),t("router-link",{attrs:{to:"/user"}},[e._v("account page")]),e._v(".")],1)]):e._e()],1)],1)],1)],1)],1),t("v-col",{staticClass:"mt-3",attrs:{cols:"12",lg:"6",md:"5"}},[t("h3",[e._v("Welcome to wikibase.cloud")]),t("p",[e._v("You can create and manage wikis from this central dashboard.")]),t("p",[e._v("Check out our "),t("a",{attrs:{href:"https://www.mediawiki.org/wiki/Wikibase/Wikibase.cloud"}},[e._v("cloud service documentation")]),e._v(" as well as general documentation on "),t("a",{attrs:{href:"https://www.mediawiki.org/wiki/Wikibase"}},[e._v("Wikibase")]),e._v(".")])])],1)],1)],1)},ii=[],si={name:"Dashboard",data(){return{stats:["Active Wikis: 100+","Edits: 1.7+ million","Pages: 1.3+ million"]}},computed:{currentUser:function(){return this.$store.getters.currentUser},wikis:function(){return this.$store.getters.wikis},count:function(){return this.$store.getters.wikiCount},limit:function(){return this.$store.getters.wikiLimit},status:function(){return this.$store.getters.wikisStatus}},created(){this.$store.dispatch("refreshWikis")}},ai=si,ri=(0,d.A)(ai,ti,ii,!1,null,"01658f1e",null),oi=ri.exports,ni=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"8"}},[t("h1",[e._v("About")]),t("v-col",[t("p",[e._v("Redirecting to "),t("a",{attrs:{href:"https://wikiba.se/about-us/"}}
1,[e._v("https://wikiba.se/about-us/")])])])],1)],1)],1)],1)},li=[],ci={name:"About",created(){window.location.href="https://wikiba.se/about-us/"}},ui=ci,di=(0,d.A)(ui,ni,li,!1,null,null,null),hi=di.exports,pi=function(){var e=this,t=e._self._c;return t("v-main",[t("v-responsive",{attrs:{"max-width":"840px","min-width":"250px"}},[t("h1",[e._v("Get in touch with the team")]),t("p",[e._v("Thank you for your interest. We want to hear what you've got to say.")]),t("p",[e._v("Have you got a question? First, check our "),t("a",{attrs:{href:"https://www.mediawiki.org/wiki/Wikibase/Wikibase.cloud/FAQ",target:"_blank"}},[e._v("FAQ")]),e._v(" to see if we've already answered it. We're constantly updating it with new questions. If you don't find an answer there, feel free to use the contact form below. Thanks!")]),t("p",[e._v("Please note that despite our best efforts it can take up to two weeks to receive a response. Thank you for your patience.")]),t("h3",[e._v("Want to connect with the Wikibase.cloud community?")]),t("p",[e._v("You can visit our "),t("a",{attrs:{href:"https://t.me/+Ts03CeiwgPY4MDI0",target:"_blank"}},[e._v("Telegram group")]),e._v(" or join our "),t("a",{attrs:{href:"https://lists.wikimedia.org/postorius/lists/wikibase-cloud.lists.wikimedia.org/",target:"_blank"}},[e._v("mailing list")]),e._v(".")]),t("v-responsive",{attrs:{"max-width":"512px"}},[t("h2",{staticClass:"mt-10 mb-2"},[e._v("Contact Us")]),t("v-text-field",{attrs:{id:"Name",rules:[()=>!!e.name||"This field is required",e=>e.length<=300||"Max 300 characters"],type:"text",label:"Your Name"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}}),t("v-text-field",{attrs:{id:"contactDetail",rules:[e=>e.length<=300||"Max 300 characters"],label:"How can we reach you? (optional)",hint:"For example: email address, Telegram handle, phone number"},model:{value:e.contactDetails,callback:function(t){e.contactDetails=t},expression:"contactDetails"}}),t("v-select",{attrs:{items:e.items,label:"What's the main reason for your message?",rules:[()=>!!e.subject||"This field is required"]},model:{value:e.subject,callback:function(t){e.subject=t},expression:"subject"}}),t("v-textarea",{attrs:{id:"inputMessage",counter:"10000",rules:[e=>e.length<=1e4||"Message must be 10000 characters or less",()=>!!e.message||"This field is required"],"auto-grow":"",label:"Message"},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}}),t("div",{attrs:{align:"right"}},[t("v-btn",{staticClass:"mt-6",attrs:{color:"primary"},on:{click:e.send}},[e._v(" SEND MESSAGE ")])],1)],1),t("v-snackbar",{attrs:{color:"success",elevation:"24"},scopedSlots:e._u([{key:"action",fn:function(){return[t("v-btn",{attrs:{text:"",variant:"text"},on:{click:e.closeAlert}},[e._v(" Close ")])]},proxy:!0}]),model:{value:e.successMessage,callback:function(t){e.successMessage=t},expression:"successMessage"}},[e._v(" Your message has been sent. Thanks! ")]),t("v-snackbar",{attrs:{color:"error",elevation:"24","multi-line":""},scopedSlots:e._u([{key:"action",fn:function(){return[t("v-btn",{attrs:{text:"",variant:"text"},on:{click:e.closeAlert}},[e._v(" Close ")])]},proxy:!0}]),model:{value:e.errorMessage,callback:function(t){e.errorMessage=t},expression:"errorMessage"}},[e._v(" Something went wrong with sending your message. Please try again. ")])],1)],1)},mi=[],vi={data:()=>({items:[{text:"General question",value:"general-question"},{text:"Feature request",value:"feature-request"},{text:"Report a problem",value:"report-a-problem"},{text:"Give feedback",value:"give-feedback"},{text:"Other",value:"other"}],name:"",contactDetails:"",subject:"",message:"",successMessage:!1,errorMessage:!1}),methods:{closeAlert(){this.successMessage=!1,this.errorMessage=!1},send(){const e=this.name,t=this.subject,i=this.message,s=this.contactDetails;this.$recaptcha("contact").then((a=>{this.$api.contact({name:e,subject:t,contactDetails:s,message:i,recaptcha:a}).then((e=>this.createSuccessful())).catch((e=>{this.resetErrorState(),this.createError(),e&&(e.name&&(this.hasError=!0,this.error.inputName=e.name[0]),e.subject&&(this.hasError=!0,this.error.inputSubject=e.subject[0])),this.hasError||this.setGeneralErrorState()}))}))},createSuccessful(){this.successMessage=!0},createError(){this.errorMessage=!0},resetErrorState(){this.hasError=!1,this.error=[]},setGeneralErrorState(e="Something went wrong."){this.resetErrorState(),this.hasError=!0,this.error.inputName=e,this.error.inputSubject=e}}},gi=vi,fi=(0,d.A)(gi,pi,mi,!1,null,null,null),wi=fi.exports,bi=function(){var e=this,t=e._self._c;return t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{align:"center",justify:"center"}},[t("CreateAccountCard",{attrs:{title:"Sign up",buttonText:"Create Account"}})],1),t("v-row",{attrs:{align:"center",justify:"center"}},[t("v-col",{staticClass:"needs-padding"},[t("div",[e._v(" Already have an account? "),t("v-btn",{staticClass:"ms-6",attrs:{to:"/login",disabled:e.inFlight}},[e._v("Log in ")])],1)])],1)],1)},_i=[],yi=function(){var e=this,t=e._self._c;return t("v-form",{on:{submit:e.createaccount}},[t("v-card",{staticClass:"elevation-12",attrs:{"max-width":"477"}},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))])],1),t("v-card-text",[t("v-text-field",{attrs:{id:"inputEmail","prepend-icon":"mdi-email",name:"login",label:"Email address",type:"email",required:"",disabled:e.inFlight,"error-messages":e.error["inputEmail"]},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}
1),t("v-text-field",{attrs:{id:"inputPassword","prepend-icon":"mdi-lock",name:"password",label:"Password",type:"password",required:"",hint:"Your password must be at least 8 characters long.",disabled:e.inFlight,"error-messages":e.error["inputPassword"]},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),t("v-text-field",{attrs:{id:"inputPasswordConfirmation","prepend-icon":"mdi-lock",name:"passwordConfirmation",label:"Confirm Password",type:"password",required:"",disabled:e.inFlight,"error-messages":e.error["inputPasswordConfirmation"]},model:{value:e.passwordConfirmation,callback:function(t){e.passwordConfirmation=t},expression:"passwordConfirmation"}}),t("v-skeleton-loader",{staticClass:"mt-4",attrs:{type:"image",loading:e.loadingPolicies,height:"50px"}},[t("v-checkbox",{attrs:{required:"",disabled:e.inFlight,"error-messages":e.error["terms"]},scopedSlots:e._u([e.policies.length?{key:"label",fn:function(){return[t("div",[e._v(" I agree to the "),t("PolicyList",{attrs:{policies:e.policies}}),t("span",[e._v(".")])],1)]},proxy:!0}:{key:"label",fn:function(){return[t("div",[e._v(" I agree to the "),t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t("a",e._g({attrs:{target:"_blank",href:"/terms-of-use"},on:{click:function(e){e.stopPropagation()}}},i),[e._v("terms of use")])]}}])},[e._v(" Opens in new window ")]),e._v(". ")],1)]},proxy:!0}],null,!0),model:{value:e.terms,callback:function(t){e.terms=t},expression:"terms"}})],1),t("p",[e._v(" This site is protected by reCAPTCHA. Wikibase Cloud "),t("a",{attrs:{target:"_blank",href:"https://www.wikibase.cloud/privacy-policy"}},[e._v("Privacy Policy")]),e._v(" and Google "),t("a",{attrs:{target:"_blank",href:"https://policies.google.com/terms"}},[e._v("Terms of Service")]),e._v(" apply. ")])],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{type:"submit",color:"primary",disabled:e.inFlight}},[e._v(" "+e._s(e.buttonText)+" ")])],1)],1)],1)},ki=[],xi={name:"CreateAccountCard",props:["title","buttonText"],components:{PolicyList:F},computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn}},data(){return{email:"",password:"",passwordConfirmation:"",terms:!1,hasError:!1,error:[],inFlight:!1,policies:[],loadingPolicies:!0}},async created(){this.checkCurrentLogin();try{this.policies=await this.$api.getCurrentPolicies()}catch(e){console.error(e)}finally{this.loadingPolicies=!1}},updated(){this.checkCurrentLogin()},methods:{resetErrorState(){this.hasError=!1,this.error=[]},setGeneralErrorState(e){e=e||"Something went wrong",this.resetErrorState(),this.hasError=!0,this.error.inputEmail=e,this.error.inputPassword=e,this.error.inputPasswordConfirmation=e,this.error.terms=e,this.inFlight=!1},createaccount(e){e.preventDefault(),this.inFlight=!0,this.resetErrorState(),!1===this.terms&&(this.hasError=!0,this.error.terms="You must accept the policies.");const t=Array.from(this.policies,(e=>e.metadata.policy_id));this.password!==this.passwordConfirmation&&(this.hasError=!0,this.error.inputPassword="Passwords do not match.",this.error.inputPasswordConfirmation="Passwords do not match."),this.hasError?this.inFlight=!1:this.$recaptcha("login").then((e=>{this.$api.register({email:this.email,password:this.password,recaptcha:e,accepted_policies:t}).then((e=>this.createSuccessful(e))).catch((e=>{this.resetErrorState(),e&&(e.email&&(this.hasError=!0,this.error.inputEmail=e.email[0]),e.password&&(this.hasError=!0,this.error.inputPassword=e.password[0])),this.hasError||this.setGeneralErrorState(e),this.$store.dispatch("logout"),this.inFlight=!1}))}))},createSuccessful(e){if(!e)return void this.setGeneralErrorState();const t=this.email,i=this.password;this.$store.dispatch("login",{email:t,password:i}).then((()=>this.$router.push("/dashboard"))).catch((e=>{console.log(e),this.setGeneralErrorState("Post account creation authentication failed!"),this.inFlight=!1}))},checkCurrentLogin(){this.isLoggedIn&&this.$router.replace(this.$route.query.redirect||"/dashboard")}}},Ci=xi,Si=(0,d.A)(Ci,yi,ki,!1,null,null,null),Pi=Si.exports,Ei={name:"CreateAccount",components:{CreateAccountCard:Pi},data(){return{}}},Ai=Ei,Ii=(0,d.A)(Ai,bi,_i,!1,null,"40df3420",null),Ti=Ii.exports,Di=function(){var e=this,t=e._self._c;return t("v-main",{staticClass:"pa-1"},[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{align:"center",justify:"center"}},[t("LoginCard",{attrs:{title:"Log in",buttonText:"Log in"}})],1),t("v-row",{attrs:{justify:"center"}},[t("div",[t("div",{staticClass:"pa-4"},[e._v("Need an account?")]),t("v-btn",{staticClass:"ms-6",attrs:{to:"/create-account",disabled:e.inFlight}},[e._v("SIGN UP ")])],1)])],1)],1)},Wi=[],Fi=function(){var e=this,t=e._self._c;return t("v-form",{on:{submit:e.login}},[t("v-card",{staticClass:"elevation-12 mt-16 card-width"},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))])],1),t("v-card-text",[e.errorMessage?t("v-alert",{attrs:{outlined:"",color:"error",type:"error",dense:"",border:"left",icon:!1}}
1,[e._v(" "+e._s(e.errorMessage)+" ")]):e._e(),t("v-text-field",{attrs:{id:"inputEmail","prepend-icon":"mdi-email",name:"login",label:"Email address",type:"email",required:""},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),t("v-text-field",{ref:"passwordField",attrs:{id:"inputPassword","prepend-icon":"mdi-lock",name:"password",label:"Password",type:"password",required:""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),t("router-link",{staticStyle:{"text-decoration":"none"},attrs:{to:"/forgotten-password"}},[e._v("Forgot your password?")])],1),t("v-card-actions",{staticClass:"pb-4 pr-4"},[t("v-spacer"),t("v-btn",{staticClass:"pr-4 pl-4",attrs:{type:"submit",color:"primary",disabled:e.loggingIn}},[e._v(e._s(e.buttonText))])],1)],1)],1)},$i=[],Li={name:"LoginCard",props:["title","buttonText"],data(){return{email:"",password:"",errorMessage:"",loggingIn:!1}},created(){this.redirectIfLoggedIn()},computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn}},methods:{redirectIfLoggedIn(){this.isLoggedIn&&this.$router.replace(this.$route.query.redirect||"/dashboard")},login(e){e.preventDefault(),this.loggingIn=!0;const t=this.email,i=this.password;this.errorMessage="",this.$store.dispatch("login",{email:t,password:i}).then((()=>this.$router.push("/dashboard"))).catch((e=>{console.log(e.response),this.errorMessage="Incorrect username or password. Please try again.",this.password="",this.$nextTick((()=>{this.$refs.passwordField.$el.querySelector("input").focus()})),this.loggingIn=!1}))}}},Mi=Li,Ri=(0,d.A)(Mi,Fi,$i,!1,null,"5f25aa47",null),qi=Ri.exports,Ui={name:"Login",components:{LoginCard:qi},data(){return{}}},Oi=Ui,Ni=(0,d.A)(Oi,Di,Wi,!1,null,"df85324c",null),zi=Ni.exports,Gi=function(){var e=this,t=e._self._c;return t("div")},Vi=[],ji={name:"Logout",created(){this.logout()},methods:{logout(e){this.$store.dispatch("logout").then((()=>this.$router.push("/"))).catch((e=>{console.log(e)}))}}},Qi=ji,Bi=(0,d.A)(Qi,Gi,Vi,!1,null,null,null),Hi=Bi.exports,Yi=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{align:"center",justify:"center"}},[t("ForgottenPasswordCard",{attrs:{title:"Reset your password",buttonText:"Reset Password"}})],1),t("v-row",{attrs:{align:"center",justify:"center"}},[t("v-col",{staticClass:"needs-padding"},[t("p",[e._v("Not got an account yet?")]),t("router-link",{attrs:{to:"/create-account"}},[e._v("Create one now.")])],1)],1)],1)],1)},Ki=[],Ji=function(){var e=this,t=e._self._c;return t("v-form",{ref:"form",on:{submit:e.reset}},[t("v-card",{staticClass:"elevation-12",attrs:{"max-width":"512"}},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))])],1),t("v-card-subtitle",[e._v("Enter the email address associated with your account. We will email you a link to reset your password. ")]),t("v-card-text",[t("v-text-field",{staticClass:"mr-2 ml-2",attrs:{id:"inputEmail","prepend-icon":"mdi-email",name:"reset",label:"Email address",type:"email",required:"",disabled:e.inFlight,rules:[()=>!!e.email||"This field is required"]},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{color:"primary",disabled:e.inFlight,type:"submit"}},[e._v(" "+e._s(e.buttonText)+" ")])],1),e.error?t("v-alert",{staticClass:"mt-8 mr-2 ml-2",attrs:{outlined:"",type:"error",border:"left"}},[e._v(" There was a server error ( "+e._s(e.error)+" ) sending email to "),t("b",[e._v(e._s(e.email))]),e._v(". Please double check it or try again later. ")]):e._e(),e.success?t("v-alert",{staticClass:"mt-8 mr-2 ml-2",attrs:{outlined:"",type:"success",border:"left"}},[e._v(" An email has been sent to "),t("b",[e._v(e._s(e.email))])]):e._e(),e.success?t("div",{staticClass:"mr-2 ml-2"},[e._v("If you do not receive this email within a few minutes, check your spam folder or verify that you used the correct email address.")]):e._e()],1)],1)],1)},Zi=[],Xi={name:"ForgottenPasswordCard",props:["title","buttonText"],data(){return{email:"",inFlight:!1}},created(){this.redirectIfLoggedIn(),this.$store.dispatch("clearForgottenPasswordState")},computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn},success:function(){return this.$store.getters.wasLastForgottenPasswordSubmitASuccess},error:function(){return this.$store.getters.lastForgottenPasswordError}},methods:{redirectIfLoggedIn(){this.isLoggedIn&&this.$router.replace(this.$route.query.redirect||"/dashboard")},reset(e){if(e.preventDefault(),!1===this.$refs.form.validate())return;this.inFlight=!0;const t=this.email;this.$store.dispatch("forgottenPassword",{email:t})}}},es=Xi,ts=(0,d.A)(es,Ji,Zi,!1,null,null,null),is=ts.exports,ss={name:"ForgottenPassword",components:{ForgottenPasswordCard:is},data(){return{}}},as=ss,rs=(0,d.A)(as,Yi,Ki,!1,null,"ba118620",null),os=rs.exports,ns=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{align:"center",justify:"center"}},[t("v-col",{attrs:{cols:"12",sm:"8",md:"4"}},[t("ResetPasswordCard",{attrs:{title:"Reset password",buttonText:"Reset",email:this.email,token:this.token}})],1)],1)],1)],1)},ls=[],cs=function(){var e=this,t=e._self._c;return t("v-form",{on:{submit:e.reset}},[t("v-card",{staticClass:"elevation-12"},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))])],1),t("v-card-text",[t("v-text-field",{attrs:{id:"inputPassword","prepe
1nd-icon":"mdi-lock",name:"password",label:"Password",type:"password",required:"",disabled:e.inFlight,"error-messages":e.error["password"]},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),t("v-text-field",{attrs:{id:"inputPasswordConfirmation","prepend-icon":"mdi-lock",name:"passwordConfirmation",label:"Confirm Password",type:"password",required:"",disabled:e.inFlight,"error-messages":e.error["passwordConfirmation"]},model:{value:e.passwordConfirmation,callback:function(t){e.passwordConfirmation=t},expression:"passwordConfirmation"}})],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{type:"submit",color:"primary",disabled:e.inFlight}},[e._v(e._s(e.buttonText))])],1)],1)],1)},us=[],ds={name:"ResetPasswordCard",props:["title","email","token","buttonText"],data(){return{password:"",passwordConfirmation:"",error:[],hasError:!1,inFlight:!1}},created(){this.redirectIfLoggedIn()},computed:{isLoggedIn:function(){return this.$store.getters.isLoggedIn}},methods:{redirectIfLoggedIn(){this.isLoggedIn&&this.$router.replace(this.$route.query.redirect||"/dashboard")},reset(e){if(e.preventDefault(),this.inFlight=!0,this.error=[],this.password!==this.passwordConfirmation&&(this.error.password="Passwords do not match.",this.error.passwordConfirmation="Passwords do not match.",this.hasError=!0),this.hasError)return void(this.inFlight=!1);const t=this.email,i=this.token,s=this.password,a=this.passwordConfirmation;this.$store.dispatch("resetPassword",{email:t,token:i,password:s,password_confirmation:a}).then((()=>{this.$router.push("/login")})).catch((e=>{console.log(e.response),this.hasError=!0,e.response.data&&e.response.data.errors?(e.response.data.errors.password&&(this.hasError=!0,this.error.password=e.response.data.errors.password[0]),e.response.data.errors.password_confirmation&&(this.hasError=!0,this.error.passwordConfirmation=e.response.data.errors.password_confirmation[0])):(this.error.password="Something went very wrong.",this.error.passwordConfirmation="Something went very wrong."),this.inFlight=!1}))}}},hs=ds,ps=(0,d.A)(hs,cs,us,!1,null,null,null),ms=ps.exports,vs={name:"ResetPassword",components:{ResetPasswordCard:ms},data(){return{email:null,token:null}},created(){this.email=this.$route.query.email,this.token=this.$route.query.token}},gs=vs,fs=(0,d.A)(gs,ns,ls,!1,null,"fd935d86",null),ws=fs.exports,bs=function(){var e=this,t=e._self._c;return t("v-main",[t("v-card",[t("v-toolbar",{attrs:{dark:"",color:e.state.color}},[t("v-toolbar-title",[e._v("Email Verification")])],1),t("v-card-text",[e._v(" "+e._s(e.state.message)+" ")])],1)],1)},_s=[];const ys=Object.freeze({PENDING:{color:"primary",message:"Verifying..."},EXPIRED_TOKEN:{color:"orange",message:"Verification token expired, or you are already verified!"},FAILED:{color:"red",message:"Verification failed for unknown reason!"},VERIFIED:{color:"",message:"Email verified!"}});var ks={name:"EmailVerification",computed:{},data(){return{state:this.$store.getters.currentUser.verified?ys.VERIFIED:ys.PENDING}},created(){this.$store.getters.currentUser.verified||this.$api.verifyEmail({token:this.$route.params.token}).then((e=>this.success())).catch((e=>this.fail(e)))},methods:{success(e){this.state=ys.VERIFIED,this.$store.dispatch("markAsVerified",{})},fail(e){this.state=e?ys.EXPIRED_TOKEN:ys.FAILED}}},xs=ks,Cs=(0,d.A)(xs,bs,_s,!1,null,null,null),Ss=Cs.exports,Ps=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{align:"center",justify:"center"}},[t("v-col",{staticClass:"card-column"},[t("CreateWikiCard",{attrs:{title:"Create a wiki"}})],1)],1)],1)],1)},Es=[],As=function(){var e=this,t=e._self._c;return t("v-form",[t("SiteDetailsCreateWikiWizardStep",{directives:[{name:"show",rawName:"v-show",value:1===e.step,expression:"step === 1"}],attrs:{title:e.title,inFlight:e.inFlight,error:e.error,SUBDOMAIN_SUFFIX:e.SUBDOMAIN_SUFFIX,CNAME_RECORD:e.CNAME_RECORD,errorMessages:e.errorMessages},on:{"next-step":function(t){return e.goToStep(2)}},model:{value:e.stepOne,callback:function(t){e.stepOne=t},expression:"stepOne"}}),t("AudienceAndPurposeWizardStep",{directives:[{name:"show",rawName:"v-show",value:2===e.step,expression:"step === 2"}],attrs:{title:e.title,inFlight:e.inFlight,dismissable:!1},on:{"previous-step":function(t){return e.goToStep(1)},"next-step":function(t){return e.goToStep(3)}},model:{value:e.stepTwo,callback:function(t){e.stepTwo=t},expression:"stepTwo"}}),t("SubmitCreateWikiWizardStep",{directives:[{name:"show",rawName:"v-show",value:3===e.step,expression:"step === 3"}],attrs:{title:e.title,inFlight:e.inFlight},on:{"previous-step":function(t){return e.goToStep(2)},submit:e.createWiki}})],1)},Is=[],Ts=config,Ds=i.n(Ts),Ws=function(){var e=this,t=e._self._c;return t("v-card",{staticClass:"elevation-12"},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))])],1),t("v-card-text",[t("v-form",{ref:"inputForm"},[t("h3",[e._v("Site name "),t("v-tooltip",{attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t("v-icon",e._g({},i),[e._v("mdi-information-outline")])]}}])},[t("span",[e._v("The main name of your site")]),t("br"),t("span",[e._v("Will appear in your page titles and can be changed at any time")]),t("br"),t("span",[e._v("In MediaWiki terms this is $wgSitename")]),t("br")])],1),t("v-text-field",{attrs:{id:"inputSiteName","prepend-icon":"mdi-format-title",name:"sitename",label:"e.g., Goat Collective",disabled:e.inFlight,"error-messages":e.error["sitename"],rules:[()=>!!e.value.sitename||"This field is required."]},model:{value:e.value.sitename,callback:function(t){e.$set(e.value,"sitename",t)},expression:"value.sitename"}}),t("h3",[e._v("Site domain "),t("v-tooltip",{attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t("v-icon",e._g({},i),[e._v("mdi-information-outline")])]}}])},[t("span",[e._v("A domain name is what people type into their browser to visit your site.")]),t("br"),t("span",[e._v('If you own your own domain, you can use it for Wikibase Cloud by selecting "Custom Domain".')]),t("br"),t("span",[e._v('Otherwise, choose your own name to be a subdomain of wikibase.cloud (five characters minimum, only a-z, 0-9 and "-") by selecting "Free Subdomain". Example: your-name-here1.wikibase.cloud')]),t("br")])],1),t("v-radio-group",{attrs:{row:"",mandatory:!0},model:{value:e.value.domainRadioChoice,callback:function(t){e.$set(e.value,"domainRadioChoice",t)},expression:"value.domainRadioChoice"}},[t("v-radio",{attrs:{label:"Free Subdomain",value:"sub"}}),t("v-radio",{attrs:{label:"Custom Domain",value:"own"}})],1),"sub"===e.value.domainRadioChoice?t("v-text-field",{attrs:{id:"inputSubdomain","prepe
1nd-icon":"mdi-web",name:"subdomain",label:"e.g., goat-collective",suffix:e.SUBDOMAIN_SUFFIX,disabled:e.inFlight,"error-messages":e.error["siteaddress"],hint:e.errorMessages.domainFormat,rules:[()=>!!e.value.subdomain||"This field is required."]},model:{value:e.value.subdomain,callback:function(t){e.$set(e.value,"subdomain",t)},expression:"value.subdomain"}}):e._e(),"own"===e.value.domainRadioChoice?t("v-text-field",{attrs:{id:"inputDomain","prepend-icon":"mdi-web",name:"domain",label:"e.g., goat-collective.com",disabled:e.inFlight,"error-messages":e.error["siteaddress"],rules:[()=>!!e.value.domain||"This field is required."]},model:{value:e.value.domain,callback:function(t){e.$set(e.value,"domain",t)},expression:"value.domain"}}):e._e(),"own"===e.value.domainRadioChoice?t("p",[e._v("This domain should have a CNAME record pointing to:")]):e._e(),"own"===e.value.domainRadioChoice?t("p",[e._v('"'+e._s(e.CNAME_RECORD)+'"')]):e._e(),t("h3",[e._v("Your user "),t("v-tooltip",{attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t("v-icon",e._g({},i),[e._v("mdi-information-outline")])]}}])},[t("span",[e._v("Choose the username of your user and the first admin user on the site")]),t("br"),t("span",[e._v("You will receive an email with log in details for this account")]),t("br")])],1),t("v-text-field",{attrs:{id:"inputUsername","prepend-icon":"mdi-account",name:"username",label:"e.g., Addshore",disabled:e.inFlight,"error-messages":e.error["username"],rules:[()=>!!e.value.username||"This field is required."]},model:{value:e.value.username,callback:function(t){e.$set(e.value,"username",t)},expression:"value.username"}})],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{type:"button",color:"primary",disabled:e.inFlight},on:{click:e.nextStep}},[e._v(" Next > ")])],1)],1)},Fs=[],$s={name:"SiteDetailsCreateWikiWizardStep",props:{title:String,inFlight:Boolean,value:Object,error:Array,SUBDOMAIN_SUFFIX:String,CNAME_RECORD:String,errorMessages:Object},methods:{nextStep(){!0===this.$refs.inputForm.validate()&&this.$emit("next-step")}}},Ls=$s,Ms=(0,d.A)(Ls,Ws,Fs,!1,null,null,null),Rs=Ms.exports,qs=function(){var e=this,t=e._self._c;return t("v-card",{staticClass:"elevation-12"},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer"),e.dismissable?t("v-btn",{attrs:{icon:""},on:{click:function(t){return e.$emit("close-dialog")}}},[t("v-icon",[e._v("mdi-close")])],1):e._e()],1),t("v-card-text",[t("h3",[e._v("What best describes how you intend to use this Wikibase?")]),t("v-form",{ref:"inputForm",on:{submit:function(e){e.preventDefault()}}},[t("v-radio-group",{attrs:{rules:[()=>!!e.value.purpose||"Please select an option."]},model:{value:e.value.purpose,callback:function(t){e.$set(e.value,"purpose",t)},expression:"value.purpose"}},[t("v-radio",{ref:"test",attrs:{value:"data_hub"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("To "),t("b",[e._v("publish potentially useful data")])])]},proxy:!0}])}),t("v-radio",{attrs:{value:"data_lab"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("To refine, back up, or "),t("b",[e._v("experiment with data in an isolated environment")])])]},proxy:!0}])}),t("v-radio",{attrs:{value:"tool_lab"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("To build tools, write documentation, or "),t("b",[e._v("contribute")]),e._v(" to the Wikidata & Wikibase ecosystem "),t("b",[e._v("in ways other than data")])])]},proxy:!0}])}),t("v-radio",{attrs:{value:"test_drive"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("To "),t("b",[e._v("learn about the tool")]),e._v(", or "),t("b",[e._v("evaluate")]),e._v(" whether it works for my use case")])]},proxy:!0}])}),t("v-radio",{attrs:{value:"other"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" Other: "),t("v-text-field",{staticClass:"pl-1 mt-n1 mb-n2",attrs:{counter:"200",dense:"",rules:[()=>"other"!==e.value.purpose||!!e.value.otherPurpose||"Please provide a response.",()=>"other"!==e.value.purpose||!!(e.value.otherPurpose&&e.value.otherPurpose.length<201)||"Text must be 200 characters or less."]},model:{value:e.value.otherPurpose,callback:function(t){e.$set(e.value,"otherPurpose",t)},expression:"value.otherPurpose"}})]},proxy:!0}])}),t("v-radio",{attrs:{value:"decide_later"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" I will decide later ")]},proxy:!0}])})],1),"data_hub"===e.value.purpose?t("div",{staticClass:"pt-3"}
1,[t("h3",[e._v("Who is the intended audience for this data?")]),t("v-radio-group",{attrs:{rules:["data_hub"!==e.value.purpose||!!e.value.audience||"Please select an option."]},model:{value:e.value.audience,callback:function(t){e.$set(e.value,"audience",t)},expression:"value.audience"}},[t("v-radio",{ref:"test",attrs:{value:"wide"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" Anyone interested ")]},proxy:!0}],null,!1,3364145486)}),t("v-radio",{attrs:{value:"narrow"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" Myself or my organization ")]},proxy:!0}],null,!1,1630330369)}),t("v-radio",{staticClass:"mt-n3",attrs:{value:"other"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" Other: "),t("v-text-field",{staticClass:"pl-1",attrs:{counter:"200",dense:"",rules:[()=>"data_hub"!==e.value.purpose||"other"!==e.value.audience||!!e.value.otherAudience||"Please provide a response.",()=>"data_hub"!==e.value.purpose||"other"!==e.value.audience||!!(e.value.otherAudience&&e.value.otherAudience.length<201)||"Text must be 200 characters or less."]},model:{value:e.value.otherAudience,callback:function(t){e.$set(e.value,"otherAudience",t)},expression:"value.otherAudience"}})]},proxy:!0}],null,!1,2819186667)})],1)],1):e._e()],1)],1),t("v-card-actions",[e.$listeners["previous-step"]?t("v-btn",{attrs:{type:"button",disabled:e.inFlight},on:{click:function(t){return e.$emit("previous-step")}}},[e._v(" < PREVIOUS ")]):e._e(),t("v-btn",{attrs:{type:"button",color:"primary",disabled:e.inFlight},on:{click:e.nextStep}},[e._v(" Next > ")])],1)],1)},Us=[],Os={name:"AudienceAndPurposeWizardStep",props:{title:String,inFlight:Boolean,value:Object,dismissable:Boolean},data(){return{purposeError:"",audienceError:"",purposeOtherError:"",audienceOtherError:""}},methods:{nextStep(){"data_hub"!==this.value.purpose&&(this.value.audience=void 0),"other"!==this.value.purpose&&(this.value.otherPurpose=void 0),"other"!==this.value.audience&&(this.value.otherAudience=void 0),this.$refs.inputForm.validate(),!0===this.$refs.inputForm.validate()&&this.$emit("next-step")}}},Ns=Os,zs=(0,d.A)(Ns,qs,Us,!1,null,"1ec3c765",null),Gs=zs.exports,Vs=function(){var e=this,t=e._self._c;return t("v-card",{staticClass:"elevation-12"},[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v(e._s(e.title))])],1),t("v-card-text",[t("v-form",{ref:"inputForm"},[t("div",{staticClass:"text-body-1"},[e._v(" This Wikibase will go offline on "),t("span",{staticClass:"font-weight-bold d-inline-block"},[e._v(e._s(e.suspensionDate))])]),t("p",{staticClass:"text-body-2"},[e._v("unless it is submitted for review and approved.")]),t("v-alert",{attrs:{text:"",dense:"",border:"left","colored-border":"",color:"primary"}},[t("p",{staticClass:"font-weight-bold"},[e._v("All Wikibases on our platform are temporary by default.")]),t("p",[e._v("Once you're confident you want to keep this Wikibase longer, submit it for review.")]),t("p",{staticClass:"mb-0"},[e._v(" Some uses can't be approved for a longer stay - for example, primarily commercial or promotional projects, or content under non-free licenses. To make sure your use case qualifies, check the "),t("a",{attrs:{href:"/hosting-policy"}},[e._v("Hosting Policy")]),e._v(" before you invest time in building anything. ")])]),t("RequiredCheckbox",[e._v("I understand that this Wikibase will go offline on "+e._s(e.suspensionDate)+" unless it is submitted for review and approved to stay.")]),e.policiesError?t("div",{staticClass:"body-2 red--text"},[e._v(" Failed to load policies. Please "),t("a",{staticClass:"text-decoration-underline red--text",on:{click:function(t){return t.preventDefault(),e.getCurrentPolicies()}}},[e._v("click here")]),e._v(" to retry. ")]):t("v-skeleton-loader",{attrs:{type:"image",loading:e.policiesLoading,height:"50px"}},[t("div",{staticClass:"body-2"},[e._v(" Previously accepted "),t("PolicyList",{attrs:{policies:e.policies,article:""}}),e._v(" still apply. ")],1)])],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{type:"button",disabled:e.inFlight},on:{click:function(t){return e.$emit("previous-step")}}},[e._v(" < Previous ")]),t("v-btn",{attrs:{type:"button",color:"primary",disabled:e.inFlight||e.policiesLoading||e.policiesError},on:{click:e.createWiki}},[e._v(" Create Wiki ")])],1)],1)},js=[],Qs=function(){var e=this,t=e._self._c;return t("v-checkbox",{attrs:{rules:[()=>!!e.checked||""],required:""},scopedSlots:e._u([{key:"label",fn:function(){return[e._t("default"),t("span",{staticClass:"red--text"},[e._v("*")])]},proxy:!0}],null,!0),model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},Bs=[],Hs={data:()=>({checked:!1}
1)},Ys=Hs,Ks=(0,d.A)(Ys,Qs,Bs,!1,null,null,null),Js=Ks.exports,Zs={name:"SubmitCreateWikiWizardStep",components:{RequiredCheckbox:Js,PolicyList:F},props:{title:String,inFlight:Boolean},computed:{suspensionDate(){const e=new Date;return e.setDate(e.getDate()+91),e.toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}},methods:{createWiki(){!0===this.$refs.inputForm.validate()&&this.$emit("submit")},async getCurrentPolicies(){this.policiesLoading=!0,this.policiesError=!1;try{this.policies=await this.$api.getCurrentPolicies()}catch(Ve){console.error(Ve),this.policiesError=!0}finally{this.policiesLoading=!1}}},data(){return{policies:[],policiesLoading:!0,policiesError:!1}},created(){this.getCurrentPolicies()}},Xs=Zs,ea=(0,d.A)(Xs,Vs,js,!1,null,null,null),ta=ea.exports,ia={name:"CreateWiki",components:{SiteDetailsCreateWikiWizardStep:Rs,AudienceAndPurposeWizardStep:Gs,SubmitCreateWikiWizardStep:ta},props:["title"],computed:{currentUser:function(){return this.$store.getters.currentUser}},data(){return{stepOne:{sitename:"",domainRadioChoice:"sub",subdomain:"",domain:"",username:""},stepTwo:{purpose:"",otherPurpose:"",audience:"",otherAudience:""},hasError:!1,error:[],inFlight:!1,SUBDOMAIN_SUFFIX:Ds().SUBDOMAIN_SUFFIX,CNAME_RECORD:Ds().CNAME_RECORD,errorMessages:{domainTaken:"The domain has already been taken.",domainFormat:"The subdomain must be at least five characters long and may contain only lowercase Latin letters (a-z), digits (0-9) and hyphens (-)."},step:1}},created(){this.checkCurrentLogin()},updated(){this.checkCurrentLogin()},methods:{goToStep(e){this.step=e},createWiki(e){if(e&&e.preventDefault(),this.inFlight=!0,this.hasError=!1,this.error=[],this.hasError)return void(this.inFlight=!1);let t="";"sub"===this.stepOne.domainRadioChoice&&(t=this.stepOne.subdomain+this.SUBDOMAIN_SUFFIX),"own"===this.stepOne.domainRadioChoice&&(t=this.stepOne.domain);const i={purpose:this.stepTwo.purpose,...this.stepTwo.otherPurpose&&{purpose_other:this.stepTwo.otherPurpose},...this.stepTwo.audience&&{audience:this.stepTwo.audience},...this.stepTwo.otherAudience&&{audience_other:this.stepTwo.otherAudience},temporality:"other",temporality_other:"T433687"},s={domain:t,sitename:this.stepOne.sitename,username:this.stepOne.username,profile:JSON.stringify(i)};this.$api.createWiki(s).then((e=>this.createSuccess(e))).catch((e=>this.createFail(e)))},createSuccess(e){this.hasError=!1,this.error=[],this.$router.push({name:"TabSettingsProfileInner",params:{id:e.id}})},createFail(e){this.error=[],this.goToStep(1),e.sitename&&(this.hasError=!0,this.error.sitename=e.sitename[0]),e.domain&&(this.hasError=!0,"The domain has already been taken."===e.domain[0]?this.error.siteaddress=this.errorMessages.domainTaken:this.error.siteaddress=this.errorMessages.domainFormat),e.username&&(this.hasError=!0,this.error.username=e.username[0]),e.tooManyWikis&&(this.hasError=!0,this.displayGenericError(e.message)),e.dbNotReady&&(this.hasError=!0,this.displayGenericError("No databases ready, please report this!")),this.hasError||(this.hasError=!0,this.displayGenericError("Creation failed!")),this.inFlight=!1},displayGenericError(e){this.error.sitename=e,this.error.siteaddress=e,this.error.username=e},checkCurrentLogin(){this.currentUser||this.$router.replace(this.$route.query.redirect||"/")}}},sa=ia,aa=(0,d.A)(sa,As,Is,!1,null,"9bffcd1a",null),ra=aa.exports,oa={name:"CreateWiki",components:{CreateWikiCard:ra},data(){return{}}},na=oa,la=(0,d.A)(na,Ps,Es,!1,null,"108684b7",null),ca=la.exports,ua=function(){var e=this,t=e._self._c;return t("v-container",[t("v-row",[t("v-spacer"),t("v-col",{attrs:{cols:"12",lg:"8"}},[t("div",[t("div",[e.isReady?t("div",[t("v-tabs",[t("v-tab",{attrs:{to:this.getTabPath("TabSettingsProfileInner")}},[e._v("Profile")]),t("v-tab",{attrs:{to:this.getTabPath("TabSettingsSettingsInner")}},[e._v("Settings")]),t("v-tab",{attrs:{to:this.getTabPath("TabSettingsFeaturesInner")}},[e._v("Features")]),t("v-tab",{attrs:{to:this.getTabPath("TabSettingsReviewInner")}},[e._v("Review")])],1),t("router-view")],1):e._e(),e.isReady?e._e():t("div",{staticClass:"text-center"},[t("br"),t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)])])]),t("v-spacer")],1)],1)},da=[],ha={name:"TabSettings",computed:{isReady(){return null!==this.$store.state.wikis.currentWikiSettings}},methods:{getTabPath(e){return this.$router.resolve({name:e,params:this.$route.params}).href}},created(){this.$store.dispatch("initializeSettings",this.$route.params.id)}},pa=ha,ma=(0,d.A)(pa,ua,da,!1,null,"7f60c528",null),va=ma.exports,ga=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",[t("v-row",[t("v-col",[t("Details",{attrs:{wikiId:this.wikiId}})],1)],1)],1)],1)},fa=[],wa=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v(" Details ")]),t("v-card-text",[t("strong",[e._v("Please check your emails for your log in details.")]),t("br"),t("span",[e._v("Status: Published")]),t("br"),t("span",[e._v("Site Name: "+e._s(e.apiData["sitename"]))]),t("br"),t("span",[e._v("Domain: "),t("a",{attrs:{target:"_blank",rel:"noopener noreferrer",href:"//"+e.apiData["domain_decoded"]}},[e._v(e._s(e.apiData["domain_decoded"]))])]),t("br"),t("span",[e._v("Date Created: "+e._s(e.apiData["created_at"]))]),t("br"),e.apiData["wiki_db_version"]?[t("span",[e._v("Database Version: "+e._s(e.apiData["wiki_db_version"]["version"]))])]:[t("span",[e._v("Version: Unknown")])],t("br")],2)],1)},ba=[],_a={name:"Details",props:["wikiId"],data(){return{apiData:[]}},created(){this.$api.wikiDetails({wiki:this.wikiId}).then((e=>this.buildDataFromDetails(e))).catch((()=>{alert("Failed to retrieve wiki details!")}))},methods:{buildDataFromDetails(e){this.apiData=e}}},ya=_a,ka=(0,d.A)(ya,wa,ba,!1,null,null,null),xa=ka.exports,Ca={name:"ManageWiki",components:{Details:xa},computed:{wikiId:function(){return this.$route.params.id}}},Sa=Ca,Pa=(0,d.A)(Sa,ga,fa,!1,null,"7469c851",null),Ea=Pa.exports,Aa=function(){var e=this,t=e._self._c;return t("v-main",[t("EntityMapping",{attrs:{wikiId:e.wikiId}}),t("Lexeme",{attrs:{wikiId:e.wikiId}})],1)},Ia=[],Ta=function(){var e=this,t=e._self._c;return t("v-col",{staticClass:"card-column"},[t("v-form",{ref:"form",attrs:{id:"formLexeme"},on:{submit:e.handleSubmit},model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[t("v-card",{staticClass:"padding"},[t("v-card-title",[e._v("Lexeme")]),t("v-card-text",[e._v(" Lexeme allows modeling of lexical entities such as words and phrases."),t("br"),e.isEnabled?t("span",[e._v("If you turn this off, and confirm the warning, lexeme entities used on your wikibase will no longer be accessible, but will still appear as broken pages. You may want to delete all of your lexeme entities first.")]):e._e(
1)]),t("v-card-actions",[e.isEnabled?t("v-btn",{staticClass:"white--text",attrs:{color:"red"},on:{click:e.showModal}},[e._v("Disable Lexeme")]):t("v-btn",{attrs:{type:"submit"}},[e._v("Enable Lexeme")])],1)],1),e.dialog?t("v-dialog",{attrs:{width:"500"},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[t("v-card",[t("v-toolbar",{attrs:{flat:"",dark:"",color:"primary"}},[t("v-toolbar-title",[e._v("Change Lexeme settings")]),t("v-spacer"),t("v-btn",{attrs:{icon:"",dark:""},on:{click:e.hideModal}},[t("v-icon",[e._v("mdi-close")])],1)],1),t("br"),t("v-card-text",[e.isEnabled?t("span",[e._v("If you turn this off, and confirm the warning, lexeme entities used on your wikibase will no longer be accessible, but will still appear as broken pages. You may want to delete all of your lexeme entities first.")]):e._e()]),t("v-card-text",[t("v-text-field",{attrs:{label:`Please type ${e.userConfirmationString} to confirm`,rules:[e.rules.match]}},[e._v(" {")])],1),t("v-divider",[e._v(" }")]),t("v-card-actions",[t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({attrs:{color:"primary",type:"submit",form:"formLexeme"}},"v-btn",s,!1),i),[e._v(" I understand ")])]}}],null,!1,1913531029)},[t("span",[e._v("It may take up to 10 seconds for changes to be reflected on your wiki")])])],1)],1)],1):e._e()],1)],1)},Da=[],Wa={name:"Lexeme",props:["wikiId","setting"],data(){const e={valid:!1,dialog:!1,userConfirmationString:"wbstack-important-change",rules:{}};return e.rules.match=t=>(t=t&&t.trim(),t===e.userConfirmationString||"Please enter the confirmation"===t),e},computed:{isEnabled(){return this.$store.state.wikis.currentWikiSettings.wwExtEnableWikibaseLexeme}},methods:{toggleSetting(e){const t=!this.isEnabled;if(!1===t&&!e)return;const i=this.wikiId,s="wwExtEnableWikibaseLexeme";this.$store.dispatch("updateSetting",{wiki:i,setting:s,value:t}).then((()=>this.$store.dispatch("setLexemeEnabled",t))).catch((e=>{console.log(e.response),alert("Something went wrong.")})),this.hideModal()},handleSubmit(e){e.preventDefault(),this.toggleSetting(this.$refs.form.validate())},hideModal(){this.dialog=!1},showModal(){this.dialog=!0}}},Fa=Wa,$a=(0,d.A)(Fa,Ta,Da,!1,null,null,null),La=$a.exports,Ma=function(){var e=this,t=e._self._c;return t("div",[t("v-col",{staticClass:"card-column"},[t("v-card",[t("v-card-title",[e._v("Mapping Properties to Wikidata")]),t("v-card-text",[e._v(" Some tools assume properties with special meanings under certain identifiers. Here, you can map a property on your Wikibase instance to a property on Wikidata. E.g. if a tool needs instanceOf (P31 on Wikidata) but the instanceOf property is P4 on your Wikibase you can create a mapping between them. ")]),t("EntityTable",{staticClass:"padding",attrs:{mappingName:"Properties",entityName:"Property",entityValidation:/^P\d+$/,entitiesList:e.propertiesList},on:{setEntityMapping:function(t){return e.setPropertiesMapping(t)}}})],1)],1),t("v-col",{staticClass:"card-column"},[t("v-card",[t("v-card-title",[e._v("Mapping Items to Wikidata")]),t("v-card-text",[e._v(" Some tools assume items with special meanings under certain identifiers. Here, you can map a item on your Wikibase instance to an item on Wikidata. ")]),t("EntityTable",{staticClass:"padding",attrs:{mappingName:"Items",entityName:"Item",entityValidation:/^Q\d+$/,entitiesList:e.itemsList},on:{setEntityMapping:function(t){return e.setItemsMapping(t)}}})],1)],1)],1)},Ra=[],qa=function(){var e=this,t=e._self._c;return t("div",[t("v-data-table",{staticClass:"elevation-1",attrs:{headers:e.headers,items:e.entities,"sort-by":"wikidata"},scopedSlots:e._u([{key:"top",fn:function(){return[t("v-toolbar",{attrs:{flat:""}},[t("v-toolbar-title",[e._v(e._s(e.mappingName))]),t("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),t("v-spacer"),t("v-dialog",{attrs:{"max-width":"500px"},model:{value:e.dialogDelete,callback:function(t){e.dialogDelete=t},expression:"dialogDelete"}},[t("v-card",[t("v-card-title",{staticClass:"headline"},[e._v("Are you sure you want to delete this mapping?")]),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:e.closeDelete}},[e._v("Cancel")]),t("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:e.deleteItemConfirm}},[e._v("OK")]),t("v-spacer")],1)],1)],1)],1)]},proxy:!0},{key:"item.actions",fn:function({item:i}){return[t("v-icon",{staticClass:"mr-2",attrs:{small:""},on:{click:function(t){return e.editItem(i)}}},[e._v("mdi-pencil")]),t("v-icon",{attrs:{small:""},on:{click:function(t){return e.deleteItem(i)}}},[e._v("mdi-delete")])]}}],null,!0)}),t("v-dialog",{attrs:{"max-width":"500px"},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({staticClass:"space"},"v-btn",s,!1),i),[e._v(" Add New Mapping ")])]}}]),model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[t("v-card",[t("v-card-title",[t("span",{staticClass:"headline"},[e._v(e._s(e.formTitle))])]),t("v-card-text",[t("v-form",{ref:"mapping"},[t("v-container",[t("v-row",[t("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[t("v-text-field",{attrs:{label:"My Wikibase (Your Instance)",rules:[e.isValidEntityId],"validate-on-blur":""},model:{value:e.editedItem.local,callback:function(t){e.$set(e.editedItem,"local",t)},expression:"editedItem.local"}})],1),t("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[t("v-text-field",{attrs:{label:"Wikidata",rules:[e.isValidEntityId],"validate-on-blur":""},model:{value:e.editedItem.wikidata,callback:function(t){e.$set(e.editedItem,"wikidata",t)},expression:"editedItem.wikidata"}})],1)],1)],1)],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:e.close}},[e._v("Cancel")]),t("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:e.save}},[e._v("Save")])],1)],1)],1)],1)},Ua=[],Oa={name:"EntityTable",props:["mappingName","entityValidation","entityName","entitiesList"],data:()=>({dialog:!1,dialogDelete:!1,headers:[{text:"My Wikibase (Your Instance)",align:"start",sortable:!0,value:"local"},{text:"Wikidata",value:"wikidata"},{text:"Actions",value:"actions",sortable:!1}],editedIndex:-1,editedItem:{local:"",wikidata:""},defaultItem:{local:"",wikidata:""}}),computed:{formTitle(){return-1===this.editedIndex?"New Mapping":"Edit Mapping"},entities:{get(){return Object.keys(this.entitiesList).map((e=>({local:this.entitiesList[e],wikidata:e})))},set(e){const t={};e.forEach((e=>{t[e.wikidata]=e.local})),this.$emit("setEntityMapping",t)}}},watch:{dialog(e){e||this.close()},dialogDelete(e){e||this.closeDelete()}},methods:{isValidEntityId(e){return this.entityValidation.test(e)||`"${e}" is not a valid ${this.entityName} id`},editItem(e){this.editedIndex=this.entities.indexOf(e),this.editedItem=Object.assign({},e),this.dialog=!0},deleteItem(e){this.editedIndex=this.entities.indexOf(e),this.editedItem=Object.assign({},e),this.dialogDelete=!0},deleteItemConfirm(){this.entities.splice(this.editedIndex,1),this.entities=[...this.entities],this.closeDelete()},close(){this.dialog=!1,this.$nextTick((()=>{this.editedItem=Object.assign({},this.defaultItem),this.editedIndex=-1}))},closeDelete(){this.dialogDelete=!1,this.$nextTick((()=>{this.editedItem=Object.assign({},this.defaultItem),this.editedIndex=-1}))},save(){this.$refs.mapping.validate()&&(this.editedIndex>-1?(this.entities[this.editedIndex]=this.editedItem,this.entities=[...this.entities]):this.entities=[...this.entities,this.editedItem],this.close())}}},Na=Oa,za=(0,d.A)(Na,qa,Ua,!1,null,"1c1c5d0f",null),Ga=za.exports,Va={name:"EntityMapping",components:{EntityTable:Ga},props:["wikiId"],computed:{propertiesList:{get(){return this.$store.state.wikis.currentWikiSettings.wikibaseManifestEquivEntities.properties}},itemsList:{get(){return this.$store.state.wikis.currentWikiSettings.wikibaseManifestEquivEntities.items}}},methods:{setPropertiesMapping(e){this.$store.dispatch("setPropertyMapping",e),this.$store.dispatch("saveEntityMapping",this.$route.params.id)},setItemsMapping(e){this.$store.dispatch("setItemMapping",e),this.$store.dispatch("saveEntityMapping",this.$route.params.id)}}},ja=Va,Qa=(0,d.A)(ja,Ma,Ra,!1,null,"31e14010",null),Ba=Qa.exports,Ha={name:"ManageFeatures",components:{Lexeme:La,EntityMapping:Ba},data(){return{wikiId:null}},created(){this.wikiId=this.$route.params.id}},Ya=Ha,Ka=(0,d.A)(Ya,Aa,Ia,!1,null,"bfb432d0",null),Ja=Ka.exports,Za=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",[0!=e.wikiId?t("v-row",[t("v-col",[t("v-row",[t("v-col",[t("Skin",{attrs:{wikiId:this.wikiId}})],1)],1),t("v-row",[t("v-col",[t("Logo",{attrs:{wikiId:this.wikiId}})],1)],1),t("v-row",[t("v-col",[t("Registration",{attrs:{wikiId:this.wikiId}})],1)],1),t("v-row",[t("v-col",[t("QuestyCaptcha",{attrs:{wikiId:this.wikiId}})],1)],1)],1),t("v-col",[t("v-row",[t("v-col",[t("EntityImport",{attrs:{wikiId:this.wikiId}})],1)],1),t("v-row",[t("v-col",[t("Wikibase",{attrs:{wikiId:this.wikiId}})],1)],1),t("v-row",[t("v-col",[t("Delete",{attrs:{wikiId:this.wikiId}}
1)],1)],1)],1)],1):e._e(),0==e.wikiId?t("v-row",[t("v-col",[t("v-card",[t("v-toolbar",{attrs:{dark:"",color:"primary"}},[t("v-toolbar-title",[e._v("Wiki Management")])],1),t("v-card-text",[e._v(" No wiki for you to manage. ")])],1)],1)],1):e._e()],1)],1)},Xa=[],er=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("Set Logo")]),t("v-card-text",[t("v-file-input",{attrs:{hint:"Upload a square PNG logo that is at least 135x135 pixels.",label:"Logo","prepend-icon":"mdi-watermark",accept:"image/png","show-size":!0,"persistent-hint":!0},on:{change:e.onLogoFileChanged}}),e.logo?t("v-img",{attrs:{src:e.logo,"max-width":"135"}}):e._e()],1),t("v-card-actions",[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({attrs:{disabled:null===e.selectedLogoFile},on:{click:e.doLogoUpload}},"v-btn",s,!1),i),[e._v("Set Logo")])]}}])},[t("span",[e._v("It may take up to 10 seconds for changes to be reflected on your wiki")])])],1)],1)},tr=[],ir={name:"Logo",props:["wikiId"],data(){return{selectedLogoFile:null}},methods:{onLogoFileChanged(e){this.selectedLogoFile=e},doLogoUpload(){const e=this.wikiId,t=this.selectedLogoFile,i=this.selectedLogoFile.name;this.$store.dispatch("updateLogo",{wikiId:e,file:t,fileName:i}).then((()=>{alert("Upload success!")})).catch((e=>{console.log(e.response),alert("Something went wrong."),this.$router.go()}))}},computed:{logo(){return this.$store.state.wikis.currentWikiSettings.wgLogo}}},sr=ir,ar=(0,d.A)(sr,er,tr,!1,null,null,null),rr=ar.exports,or=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("Set Skin")]),t("v-card-text",[t("v-select",{attrs:{items:e.skins,label:"Skin",placeholder:"Pick a Skin",hint:"The default skin is Vector.","persistent-hint":"","prepend-icon":"mdi-web",disabled:e.inFlight,"error-messages":e.error},model:{value:e.skinId,callback:function(t){e.skinId=t},expression:"skinId"}})],1),t("v-card-actions",[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({on:{click:e.doSetSkin}},"v-btn",s,!1),i),[e._v("Set Skin")])]}}])},[t("span",[e._v("It may take up to 10 seconds for changes to be reflected on your wiki")])])],1),t("Message",{ref:"message"})],1)},nr=[],lr=function(){var e=this,t=e._self._c;return t("v-snackbar",{attrs:{color:e.status,elevation:"24"},scopedSlots:e._u([{key:"action",fn:function(){return[t("v-btn",{attrs:{text:"",variant:"text"},on:{click:e.hide}},[e._v(" Close ")])]},proxy:!0}]),model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[e._v(" "+e._s(e.text)+" ")])},cr=[],ur={data(){return{visible:!1,text:"Hello, this is a snackbar message!",status:"success"}},methods:{show(e,t){this.status=e,this.text=t,this.visible=!0},hide(){this.visible=!1}}},dr=ur,hr=(0,d.A)(dr,lr,cr,!1,null,null,null),pr=hr.exports,mr={name:"Skin",components:{Message:pr},props:["wikiId"],data(){return{skins:[{value:"vector",text:"Vector"},{value:"modern",text:"Modern"},{value:"timeless",text:"Timeless"}],skinId:"",message:!1}},created(){this.skinId=this.$store.state.wikis.currentWikiSettings.wgDefaultSkin},computed:{skin(){return this.skins.find((e=>e.value===this.skinId))}},methods:{doSetSkin(){const e=this.wikiId,t=this.skin.value;this.$store.dispatch("updateSkin",{wiki:e,value:t}).then((()=>{this.$refs.message.show("success",`Your default skin has been updated to ${this.skin.text}.`)})).catch((e=>{console.error(e.response),this.$refs.message.show("error","Something went wrong while updating your default skin. Please try again.")}))}}},vr=mr,gr=(0,d.A)(vr,or,nr,!1,null,null,null),fr=gr.exports,wr=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("Registration Options")]),t("v-card-text",[t("p",[e._v("Disable direct account creation and require the approval of new accounts by a site "),t("a",{attrs:{href:"https://www.mediawiki.org/wiki/Bureaucrat"}},[e._v("bureaucrat")]),e._v(".")]),t("p",[e._v("This is powered by the "),t("a",{attrs:{href:"https://www.mediawiki.org/wiki/Extension:ConfirmAccount"}},[e._v("ConfirmAccount")]),e._v(" extension.")]),t("v-switch",{attrs:{label:"Accounts must be requested","hide-details":"auto",loading:e.inFlight,disabled:e.inFlight},on:{change:e.toggle},model:{value:e.requestAccount,callback:function(t){e.requestAccount=t},expression:"requestAccount"}})],1)],1)},br=[],_r={name:"Registration",props:["wikiId"],data(){return{requestAccount:!1,inFlight:!1}},created(){this.requestAccount=this.$store.state.wikis.currentWikiSettings.wwExtEnableConfirmAccount},methods:{async toggle(e){try{this.inFlight=!0,await this.$store.dispatch("updateSetting",{wiki:this.wikiId,setting:"wwExtEnableConfirmAccount",value:e}),await this.$store.dispatch("setEnableConfirmAccount",e)}catch(Ve){console.log(Ve.response),alert("Something went wrong."),await this.$nextTick(),this.requestAccount=!e}finally{this.inFlight=!1}}}},yr=_r,kr=(0,d.A)(yr,wr,br,!1,null,null,null),xr=kr.exports,Cr=function(){var e=this,t=e._self._c;return t("v-form",{ref:"form",on:{submit:e.doSubmit}},[t("v-card",[t("v-card-title",[e._v("Wikibase Options")]),t("v-card-text",[t("h4",[e._v("Value lengths")]),t("p",[e._v("Longer than default lengths (which are used on Wikidata) is generally untested and might have some unex
1pected outcomes.")]),t("p",[e._v("The default values for both fo these fields is "),t("strong",[e._v("400 characters")]),e._v(". The maximum you can set here is "),t("strong",[e._v("2500")])]),t("v-text-field",{attrs:{label:"String",rules:[e.rules.min(400),e.rules.max(2500)]},model:{value:e.stringLengthString,callback:function(t){e.stringLengthString=t},expression:"stringLengthString"}}),t("v-text-field",{attrs:{label:"Monolingual text",rules:[e.rules.min(400),e.rules.max(2500)]},model:{value:e.stringLengthMonoText,callback:function(t){e.stringLengthMonoText=t},expression:"stringLengthMonoText"}}),t("h4",[e._v("Multilang (term) lengths")]),t("p",[e._v("Longer than default lengths (which are used on Wikidata) is generally untested and might have some unexpected outcomes.")]),t("p",[e._v("The default values for this field is "),t("strong",[e._v("250 characters")]),e._v(". The maximum you can set here is "),t("strong",[e._v("2500")])]),t("v-text-field",{attrs:{rules:[e.rules.min(250),e.rules.max(2500)],label:"Multilang (labels, descriptions and such)"},model:{value:e.stringLengthMultilang,callback:function(t){e.stringLengthMultilang=t},expression:"stringLengthMultilang"}})],1),t("v-card-actions",[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({attrs:{type:"submit"}},"v-btn",s,!1),i),[e._v("Set Options")])]}}])},[t("span",[e._v("It may take up to 10 seconds for changes to be reflected on your wiki")])])],1)],1)],1)},Sr=[],Pr={name:"Wikibase",props:["wikiId"],data(){return{stringLengthString:"",stringLengthMonoText:"",stringLengthMultilang:"",inFlight:!1,rules:{min(e){return t=>t>=e||`Minimum ${e} required`},max(e){return t=>t<=e||`Maximum ${e} exceeded`}}}},created(){this.stringLengthString=this.$store.state.wikis.currentWikiSettings.wwWikibaseStringLengthString,this.stringLengthMonoText=this.$store.state.wikis.currentWikiSettings.wwWikibaseStringLengthMonolingualText,this.stringLengthMultilang=this.$store.state.wikis.currentWikiSettings.wwWikibaseStringLengthMultilang},methods:{doSubmit(e){e.preventDefault();const t=this.wikiId,i=[],s=this.$refs.form.validate();if(s){if(this.stringLengthString){const e="wwWikibaseStringLengthString",s=this.stringLengthString;i.push(this.$store.dispatch("updateSetting",{wiki:t,setting:e,value:s}).then((()=>this.$store.dispatch("setWikibaseStringLengths",{setting:e,value:s}))))}if(this.stringLengthMonoText){const e="wwWikibaseStringLengthMonolingualText",s=this.stringLengthMonoText;i.push(this.$store.dispatch("updateSetting",{wiki:t,setting:e,value:s}).then((()=>this.$store.dispatch("setWikibaseStringLengths",{setting:e,value:s}))))}if(this.stringLengthMultilang){const e="wwWikibaseStringLengthMultilang",s=this.stringLengthMultilang;i.push(this.$store.dispatch("updateSetting",{wiki:t,setting:e,value:s}).then((()=>this.$store.dispatch("setWikibaseStringLengths",{setting:e,value:s}))))}Promise.all(i).then((()=>{alert("Update success!")})).catch((e=>{console.log(e.response),alert("Something went wrong.")}))}}}},Er=Pr,Ar=(0,d.A)(Er,Cr,Sr,!1,null,null,null),Ir=Ar.exports,Tr=function(){var e=this,t=e._self._c;return t("v-form",{ref:"form",on:{submit:e.doSubmit}},[t("v-overlay",{attrs:{value:e.showOverlay}},[t("v-dialog",{attrs:{width:"500"},model:{value:e.showOverlay,callback:function(t){e.showOverlay=t},expression:"showOverlay"}},[t("v-card",[t("v-card-title",[e._v(" Entities for import ")]),t("v-card-text",[t("h4",{staticClass:"mb-0 mt-4"},[e._v("Properties")]),t("ul",[t("li",[t("a",{attrs:{target:"_blank",rel:"noopener nofollow",href:"https://www.wikidata.org/wiki/Property:P25"}},[e._v("Mother")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener nofollow",href:"https://www.wikidata.org/wiki/Property:P22"}},[e._v("Father")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener nofollow",href:"https://www.wikidata.org/wiki/Property:P40"}},[e._v("Child")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener nofollow",href:"https://www.wikidata.org/wiki/Property:P18"}},[e._v("Image")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener nofollow",href:"https://www.wikidata.org/wiki/Pro
1perty:P31"}},[e._v("Instance of")])]),t("li",[t("a",{attrs:{target:"_blank",rel:"noopener nofollow",href:"https://www.wikidata.org/wiki/Property:P279"}},[e._v("Subclass of")])])]),t("h4",{staticClass:"mb-0 mt-4"},[e._v("Items")]),t("ul",[t("li",[t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q1",target:"_blank",rel:"noopener nofollow"}},[e._v("Universe")])]),t("li",[t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q2",target:"_blank",rel:"noopener nofollow"}},[e._v("World")])]),t("li",[t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q5",target:"_blank",rel:"noopener nofollow"}},[e._v("Human")])]),t("li",[t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q64",target:"_blank",rel:"noopener nofollow"}},[e._v("Berlin")])]),t("li",[t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q42",target:"_blank",rel:"noopener nofollow"}},[e._v("Douglas Adams")])]),t("li",[t("a",{attrs:{href:"https://www.wikidata.org/wiki/Q3107329",target:"_blank",rel:"noopener nofollow"}},[e._v("The Hitchhiker's Guide to the Galaxy")])])])]),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{color:"primary",text:""},on:{click:function(t){e.showOverlay=!1}}},[e._v(" Close ")])],1)],1)],1)],1),t("v-card",[t("v-card-title",{staticClass:"card-title"},[t("span",[e._v("Import base entities")]),t("v-btn",{staticClass:"info-btn",attrs:{"x-small":"",text:""},on:{click:function(t){e.showOverlay=!0}}},[t("v-icon",{attrs:{small:""}},[e._v(" mdi-information-outline ")]),e._v(" More info ")],1)],1),t("v-card-text",[e._v(" You can import a curated subset of items and properties to help you get started with your Wikibase instance. ")]),t("v-card-actions",[t("v-btn",{attrs:{disabled:e.hasPending||e.hasSuccess,type:"submit"}},[e._v("Import entities")])],1),e.hasError||!e.hasPending&&!e.hasSuccess&&e.hasFailed?t("v-card-text",[t("span",{staticClass:"font-italic"},[e._v("Your entity import failed. Please try again.")])]):e._e(),!e.hasPending&&e.hasSuccess?t("v-card-text",[t("span",{staticClass:"font-italic"},[e._v("You can only import the base set once per Wikibase instance.")])]):e._e(),e.hasPending?t("v-card-text",[t("span",{staticClass:"font-italic"},[e._v("The wiki currently has an entity import in progress.")])]):e._e(),e.hasPending?t("Interval",{attrs:{callback:e.pollForStatus,interval:3e3}}):e._e()],1)],1)},Dr=[],Wr={components:{Interval:S},name:"EntityImport",props:["wikiId"],data(){return{showOverlay:!1}},computed:{hasError(){return null!==this.$store.getters.currentWikiEntityImportError},hasPending(){return this.$store.getters.currentWikiEntityImports.some((e=>"pending"===e.status))},hasSuccess(){return this.$store.getters.currentWikiEntityImports.some((e=>"success"===e.status))},hasFailed(){return this.$store.getters.currentWikiEntityImports.some((e=>"failed"===e.status))}},methods:{doSubmit(e){e.preventDefault(),this.$store.dispatch("triggerEntityImport",this.wikiId)},pollForStatus(){this.$store.dispatch("updateEntityImports",this.wikiId)}}},Fr=Wr,$r=(0,d.A)(Fr,Tr,Dr,!1,null,"5d954a44",null),Lr=$r.exports,Mr=function(){var e=this,t=e._self._c;return t("v-card",{attrs:{color:"#fad1d0"}},[t("v-card-title",[e._v("Delete Wikibase Instance")]),t("v-card-text",[e._v(" This will permanently delete the selected Wikibase instance. All data associated with this instance will be purged permanently in 30 days. The domain will "),t("strong",[e._v("not")]),e._v(" be available for reuse. ")]),t("v-card-actions",[t("v-btn",{staticClass:"text-sm-button white--text",attrs:{color:"red"},on:{click:function(t){e.expandDelete=!0}}},[e._v("Delete site")]),e.expandDelete?t("ConfirmDelete",{attrs:{"wiki-id":this.wikiId},on:{close:function(t){e.expandDelete=!1}}}):e._e()],1)],1)},Rr=[],qr=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"auto",persistent:""},model:{value:e.open_dialog,callback:function(t){e.open_dialog=t},expression:"open_dialog"}},[t("v-card",[t("v-card-title",[e._v(" Confirm Deletion ")]),t("v-card-text",{staticClass:"align-start pb-4"},[e._v(" Before you delete your Wikibase instance, "),t("br"),e._v(" please let us know the reason for your deletion."),t("br"),e._v(" Please select all that apply. ")]),t("div",{staticClass:"px-4 pb-2"},[t("v-checkbox",{staticClass:"ma-0",attrs:{"hide-details":"",label:"Was only used for testing",value:"Was only used for testing"},model:{value:e.checkboxReasons,callback:function(t){e.checkboxReasons=t},expression:"checkboxReasons"}}
1),t("v-checkbox",{staticClass:"ma-0",attrs:{"hide-details":"",label:"Lacking essential\n functionality",value:"Lacking essential functionality"},model:{value:e.checkboxReasons,callback:function(t){e.checkboxReasons=t},expression:"checkboxReasons"}}),t("v-checkbox",{staticClass:"ma-0",attrs:{"hide-details":"",label:"Too complex to work with",value:"Too complex to work with"},model:{value:e.checkboxReasons,callback:function(t){e.checkboxReasons=t},expression:"checkboxReasons"}}),t("v-checkbox",{staticClass:"ma-0",attrs:{"hide-details":"",label:"Other reasons (please specify)",value:"Other reason"},model:{value:e.checkboxReasons,callback:function(t){e.checkboxReasons=t},expression:"checkboxReasons"}})],1),t("div",{staticClass:"px-4 align-self-stretch align-start"},[t("p",{staticClass:"ma-0"},[e._v("Please elaborate:")]),t("v-text-field",{staticClass:"ma-0",attrs:{outlined:"",dense:"","hide-details":"",placeholder:"e.g. ran out of space to create new wiki"},model:{value:e.freeformReason,callback:function(t){e.freeformReason=t},expression:"freeformReason"}})],1),t("v-card-actions",{staticClass:"justify-end"},[t("v-btn",{attrs:{text:""},on:{click:e.close}},[e._v("Cancel")]),t("v-btn",{staticClass:"red--text",attrs:{text:"",variant:"light"},on:{click:e.doDelete}},[e._v("Delete Wikibase")])],1)],1)],1)},Ur=[],Or={name:"ConfirmDelete",props:["wikiId"],data(){return{open_dialog:!0,checkboxReasons:[],freeformReason:""}},methods:{doDelete(){const e=this.wikiId,t=[...this.checkboxReasons];this.freeformReason&&t.push(this.freeformReason),this.$store.dispatch("deleteWiki",{wiki:e,deletionReasons:t}).then((()=>this.$router.push("/dashboard"))).catch((e=>{console.log(e.response),alert("Something went wrong."),this.$router.push("/dashboard")}))},close(){this.$emit("close")}}},Nr=Or,zr=(0,d.A)(Nr,qr,Ur,!1,null,null,null),Gr=zr.exports,Vr={name:"Delete",components:{ConfirmDelete:Gr},props:["wikiId"],data(){return{expandDelete:!1}}},jr=Vr,Qr=(0,d.A)(jr,Mr,Rr,!1,null,null,null),Br=Qr.exports,Hr=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("Additional Spam Protection")]),t("v-card-text",{staticClass:"pb-2"},[e._v(" QuestyCaptcha offers an extra layer of protection against spam accounts. During account creation, users will have to answer a question, which can be defined in settings. For more information on QuestyCaptcha, please visit the documentation page ")]),t("v-col",{staticClass:"switch"},[t("v-switch",{attrs:{label:"Activate spam protection",loading:e.waitForToggleUpdate,disabled:e.waitForToggleUpdate},on:{change:e.toggleCaptcha},model:{value:e.isCaptchaActive,callback:function(t){e.isCaptchaActive=t},expression:"isCaptchaActive"}})],1),t("v-expansion-panels",{staticClass:"settings-panel",model:{value:e.panel,callback:function(t){e.panel=t},expression:"panel"}},[t("v-expansion-panel",[t("v-expansion-panel-header",[t("strong",[e._v("SETTINGS")])]),t("v-expansion-panel-content",[t("strong",[e._v("Guidelines for creating questions and answers:")]),t("br"),t("ul",[t("li",[e._v("Keep in mind that users have a wide variety of knowledge and abilities. We therefore recommend three questions at minimum, each requiring different abilities or knowledge.")]),t("li",[e._v("Consider cultural bias. Use questions that rely on universal knowledge or knowledge related to your wiki.")]),t("li",[e._v("Keep the answers short and simple. Ideally, try to use questions with only one possible answer.")])]),t("v-form",{ref:"questyForm"},[e._l(e.questionsFromStore,(function(i,s){return t("div",{key:s,staticClass:"pt-10"},[e._v(" Question "),t("v-text-field",{staticClass:"trash-icon pb-2",attrs:{outlined:"","hide-details":"auto","append-outer-icon":e.showDeleteButton?"mdi-delete-outline":void 0,rules:[()=>!!i.question||"Field cannot be empty. Please provide a question."],dense:"",disabled:e.waitForQuestionsUpdate},on:{"click:append-outer":function(t){return e.removeQuestion(s)}},model:{value:i.question,callback:function(t){e.$set(i,"question",t)},expression:"entry.question"}}),e._v(" Answer "),t("v-combobox",{class:{"answer-box":!0,"answer-input-field":e.showDeleteButton},attrs:{items:i.answers,multiple:"",outlined:"",rules:[()=>!!i.answers.length||"Field cannot be empty. Please provide an answer."],"hide-selected":"","hide-details":"auto",dense:"",disabled:e.waitForQuestionsUpdate},scopedSlots:e._u([{key:"selection",fn:function({item:s}){return[t("v-chip",{staticClass:"chips",attrs:{disabled:e.waitForQuestionsUpdate}},[t("span",{staticClass:"pr-1"},[e._v(" "+e._s(s)+" ")]),t("v-icon",{attrs:{small:"",disabled:e.waitForQuestionsUpdate},on:{click:function(t){return e.removeAnswer(i,s)}}},[e._v(" mdi-close-circle ")])],1)]}}],null,!0),model:{value:i.answers,callback:function(t){e.$set(i,"answers",t)},expression:"entry.answers"}})],1)})),t("div",{staticClass:"d-flex pb-12 pt-10"},[t("v-btn",{staticClass:"ml-auto",attrs:{disabled:e.waitForQuestionsUpdate,elevation:"0",plain:""},on:{click:e.addQuestion}},[e._v("+ ADD QUESTION")])],1),t("div",[t("v-btn",{attrs:{disabled:e.waitForQuestionsUpdate,color:"primary",width:"100%"},on:{click:e.saveForm}},[e._v("SAVE QUESTIONS")])],1),t("div",{staticClass:"pt-4"},[t("v-btn",{attrs:{disabled:e.waitForQuestionsUpdate,elevation:"0",width:"100%"},on:{click:e.recoverDefaultQuestions}},[e._v("RECOVER DEFAULT QUESTIONS")])],1)],2)],1)],1)],1),t("Message",{ref:"message"})],1)},Yr=[],Kr=(i(8237),{name:"QuestyCaptcha",components:{Message:pr},props:["wikiId"],data(){return{message:!1,questionsFromStore:[],defaultQuestions:[],isCaptchaActive:!1,hasNoQuestions:!1,panel:!1,waitForToggleUpdate:!1,waitForQuestionsUpdate:!1}},computed:{showDeleteButton:function(){return this.questionsFromStore.length>1}},created(){this.defaultQuestions=this.$store.state.wikis.currentWikiSettings.defaultQuestions,this.isCaptchaActive=this.$store.state.wikis.currentWikiSettings.wwUseQuestyCaptcha,this.questionsFromStore=this.$store.state.wikis.currentWikiSettings.captchaQuestions,this.hasNoQuestions=!this.questionsFromStore,this.hasNoQuestions&&this.recoverDefaultQuestions()},methods:{removeAnswer(e,t){const i=e.answers.indexOf(t);-1!==i&&e.answers.splice(i,1)},removeQuestion(e){this.questionsFromStore.splice(e,1)},addQuestion(){this.questionsFromStore.push({question:"",answers:[]})},formatQuestionsForApi(e){return JSON.stringify(e.reduce(((e,t)=>(e[t.question]=t.answers,e)),{}))},async toggleCaptcha(e){try{this.waitForToggleUpdate=!0,e&&this.hasNoQuestions&&(await this.$store.dispatch("updateSetting",{wiki:this.wikiId,setting:"wwCaptchaQuestions",value:this.formatQuestionsForApi(this.defaultQuestions)}),await this.$store.dispatch("setQuestyCaptchaQuestions",this.defaultQuestions),this.hasNoQuestions=!1),await this.$store.dispatch("updateSetting",{wiki:this.wikiId,setting:"wwUseQuestyCaptcha",value:e}),await this.$store.dispatch("setEnabledQuestyCaptcha",e),this.$refs.message.show("success",`QuestyCaptcha has been successfully ${e?"enabled":"disabled"}.`)}catch(Ve){console.error(Ve.response),this.$refs.message("error",`Something went wrong while ${e?"enabling":"disabling"} QuestyCaptcha. Please try again.`),await this.$nextTick(),this.isCaptchaActive=!e}finally{this.waitForToggleUpdate=!1}},async saveForm(){this.waitForQuestionsUpdate=!0;for(let t=0;t<this.questionsFromStore.length;t++){const e=this.questionsFromStore[t],i=""===e.question.trim(),s=e.answers&&0===e.answers.length;i&&s&&this.questionsFromStore.length>1&&this.questionsFromStore.splice(t,1)}await this.$nextTick(),this.$refs.questyForm.validate();const e=this.$refs.questyForm.$children.find((e=>"function"===typeof e.validate&&!e.validate()));if(e)return e.$el.scrollIntoView({behavior:"smooth"}),void(this.waitForQuestionsUpdate=!1);try{await this.$store.dispatch("updateSetting",{wiki:this.wikiId,setting:"wwCaptchaQuestions",value:this.formatQuestionsForApi(this.questionsFromStore)}),await this.$store.dispatch("setQuestyCaptchaQuestions",this.questionsFromStore),this.$refs.message.show("success","Your questions have been saved."),this.hasNoQuestions=!1,this.panel=!1}catch(Ve){console.error(Ve.response),this.$refs.message.show("error","Something went wrong with saving your questions. Please try again.")}finally{this.waitForQuestionsUpdate=!1}},recoverDefaultQuestions(){this.questionsFromStore=JSON.parse(JSON.stringify(this.defaultQuestions))}}}),Jr=Kr,Zr=(0,d.A)(Jr,Hr,Yr,!1,null,"40d481b0",null),Xr=Zr.exports,eo={name:"ManageWiki",components:{QuestyCaptcha:Xr,Logo:rr,Skin:fr,Registration:xr,Wikibase:Ir,Delete:Br,EntityImport:Lr},data(){return{wikiId:0}},created(){this.wikiId=this.$route.params.id}}
1,to=eo,io=(0,d.A)(to,Za,Xa,!1,null,"17e7cfd2",null),so=io.exports,ao=i(8489),ro=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"8"}},[t("ol",{staticClass:"main-list",attrs:{start:"1"}},[t("li",[t("h4",[e._v("Privacy policy â Wikibase.Cloud")]),t("p",[e._v(' The Wikimedia Deutschland â Gesellschaft zur Förderung Freien Wissens e. V. (hereinafter referred to as "Wikimedia" or "we") operates the website and its services available on the Internet at wikibase.cloud including the respective sub-directories (hereinafter referred to as the "Website"). ')]),t("p",[e._v(" With this privacy policy, we would like to inform you which data we will process when you visit the website or use its services. By providing this information we also comply with our duty to inform you in accordance with Art. 13 and Art. 14 of the EU-General Data Protection Regulation (GDPR). ")]),t("p",[e._v(" Please be aware: Wikibase.cloud is a platform that enables everyone to create and run their own open knowledge base as an instance on wikibase.cloud (the âInstanceâ). While Wikimedia is also the controller for the technical provision of these Instances and the processing of personal data when you visit and use an Instance, Wikimedia is not the controller of any personal data available on the Instance. The controller for this data is exclusively the person named in the imprint of the Instance. If you have any questions regarding this kind of personal data, please refer to the person mentioned in the imprint. ")])]),t("li",[t("h4",[e._v("Controller")]),t("p",[e._v(" The controller for the processing of personal data as described in this privacy policy: ")]),t("p",[e._v(" Wikimedia Deutschland â Gesellschaft zur Förderung Freien Wissens e. V. ")]),t("p",[e._v("Tempelhofer Ufer 23-24")]),t("p",[e._v("10963 Berlin")]),t("p",[e._v("Telephone: 49 (0)30-577 11 62-0")]),t("p",[e._v(" Email: "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")])]),t("p",[e._v(" We have appointed a Data Protection Officer whom you can contact under the following addresses: ")]),t("p",[e._v("Thorsten Feldmann, LL.M.")]),t("p",[e._v("JBViniol Jaschinski Brexl Viniol Partnerschaft mbB")]
1),t("p",[e._v("SophienstraÃe 14")]),t("p",[e._v("10178 Berlin")]),t("p",[e._v("+49 30 2000 458 0")]),t("p",[e._v(" E-Mail: "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")])]),t("p",[e._v(" The controller for any personal data uploaded to and available on the platform is the person named in the imprint. With regard to this data Wikimedia acts only as a processor. ")])]),t("li",[t("h4",[e._v("Purposes, legal bases and storage period")]),t("ol",{attrs:{start:"1"}},[t("li",[t("h4",[e._v("General use of the platform")]),t("p",[e._v(" We automatically record the accesses to our websites. Therefore, when you visit our website, you transmit certain technical data to us, namely: ")]),t("ul",[t("li",[e._v("IP address,")]),t("li",[e._v("accessed content,")]),t("li",[e._v("information about the transmission,")]),t("li",[e._v("date of access,")]),t("li",[e._v("the amount of data transmitted,")]),t("li",[e._v("the referrer,")]),t("li",[e._v("the web browser/user agent.")])]),t("br"),t("p",[e._v(" Where the GDPR applies, the processing of the IP address when establishing a connection is based on Art. 6 par. 1 lit. b) GDPR to provide the website you requested. ")]),t("p",[e._v(" Our host also creates so-called log files to maintain system security, in order to guarantee the security and integrity of our IT systems in which the information above (excluding the amount of data transmitted) is stored. These purposes also represent the legitimate interest for which the processing is carried out (Art. 6 par. 1 lit. f) GDPR). We store the logs for a period of 30 days and delete them afterwards. ")])]),t("li",[t("h4",[e._v("Registering for a user account")]),t("p",[e._v(" To create wikis you have to sign up and create a user account. For this purpose we collect and process your email address and a password. We will send you a validation email to the address you have provided. The legal basis for the processing is Art. 6 para. 1 lit. b) GDPR. We process your personal data for as long as you have your account with us and delete it thereafter. ")]),t("p",[e._v(" If you register with us, we need to ensure that you have no malicious intentions. Hence, it is necessary that we check your IP Address against a few internationally recognized spam and abuse prevention services, namely combined.abuse.ch, xbl.spamhaus.org, cbl.abuseat.org, http.dnsbl.sorbs.net, opm.tornevall.org, all.s5h.net, dnsbl.dronebl.org. The processing is based as well on Art. 6 par. 1 lit. b) GDPR since without this verification we cannot enter into a contractual relationship with you. Some of the services mentioned above reside in countries outside of the EU. Spamhaus and combined.abuse reside in Andorra and Switzerland. The European Commission has adopted an adaquacy decision for both countries. Dnsbl.sorbs.net and dnsbl.dronebl.org may process personal data in countries without such a decision. In this case (ans also any other case where one of the service providers may process personal data in a third country without an adaquacy decision) the transfer is based on Art. 49 par. 1 lit. d) GDPR. ")])]),t("li",[t("h4",[e._v("Creating a wikibase or mediawiki")]),t("p",[e._v(" On our Website you can easily set up a Wikibase or mediawiki instance where you can create collaborative knowledge bases and publish data. You have to choose a site name, a site domain and an initial admin username. This information as well as any data published on your wikibase or mediawiki will be publicly available once your wiki is published. The legal basis for the processing is Art. 6 para. 1 lit. b) GDPR. We process your personal data for as long as you have your account with us and delete it thereafter. ")])]),t("li",[t("h4",[e._v("Contact")]),t("p",[e._v(" You can contact us via email. We will then process your email address and, if applicable, your name, a subject and the content of your request to answer your enquiry due to our legitimate interests (Art. 6 para. 1 lit. f) GDPR). ")]),t("p",[e._v(" We will store your enquiry until we have answered it and fulfilled your request. We will delete it afterwards unless legal provisions prevent deleti
1on. We may store data in accordance with Art. 6 para. 1 lit. f) GDPR where it is necessary for providing evidence or to comply with legal retention periods in accordance with Art. 6 para. 1 lit. c) GDPR. If the request is made within the framework of an existing or prospective contractual relationship with us, the storage period shall be based on the underlying contractual relationship. ")])])])]),t("li",[t("h4",[e._v("Categories of recipients")]),t("p",[e._v(" We use external service providers if we are unable to provide services ourselves or if it is not reasonable to do so. These external service providers are primarily providers of IT services, such as our hosting service provider Google Ireland Ltd., Gordon House, Barrow Street, Dublin 4. ")]),t("p",[e._v(" To ensure the encryption of your wikibase or mediawiki, and provide the Website with an HTTPS/SSL certificate we will transfer the domain name to the Let's encrypt certification agency, 548 Market St, PMB 57274, San Francisco, CA 94104-5401, which is necessary to create the certificate. ")]),t("p",[e._v(" For sending emails, we use the service mailgun of the Mailgun Technologies, Inc., 112 E Pecan St. #1135, San Antonio, TX 78205. We have concluded Standard Contractual Clauses with mailgun as appropriate safeguards to ensure an adequate level of protection of your personal data. ")])]),t("li",[t("h4",[e._v("General rights of data subjects")]),t("p",[e._v(" The GDPR guarantees you certain rights, which you can assert against us - if the legal requirements are met. ")]),t("ul",{staticClass:"inner-list"},[t("li",[t("b",[e._v("Art. 15 GDPR - Right of access:")]),e._v(" You have the right to obtain confirmation from us as to whether personal data relating to you are being processed and, if so, what these data are and the detailed circumstances of the processing. ")]),t("li",[t("b",[e._v("Art. 16 GDPR - Right of rectification:")]),e._v(" You have the right to ask us to rectify incorrect personal data concerning you immediately. You also have the right to request the completion of incomplete personal data, including by means of a supplementary declaration, taking into account the purposes of the processing. ")]),t("li",[t("b",[e._v("Art. 17 GDPR - Right to deletion:")]),e._v(" You have the right to demand that we delete any personal data relating to you immediately. ")]),t("li",[t("b",[e._v("Art. 18 GDPR - Right to restriction of processing:")]),e._v(" You have the right to request us to restrict processing. ")]),t("li",[t("b",[e._v("Art. 20 GDPR - Right to data portability:")]),e._v(" You have the right, in the event of processing based on consent or for the fulfilment of a contract, to receive the personal data concerning you which you have provided us with in a structured, common and machine-readable format and to transfer this data to another responsible party without hindrance from us or to have the data transferred directly to the other responsible party, insofar as this is technically feasible. ")]),t("li",[t("b",[e._v("Art. 77 GDPR in conjunction with Section 19 BDSG - Right to lodge a complaint with a supervisory authority:")]),e._v(" You have the right to lodge a complaint with a supervisory authority at any time, in particular in the Member State in which you are resident, your place of work or place of the alleged infringement if you consider that the processing of personal data relating to you infringes data protection law. ")])]),t("br")]),t("li",[t("h4",[e._v(" In particular right to object and right to withdraw consent ")]),t("ul",[t("li",[t("b",[e._v("Art. 21 GDPR - Right to object:")]),e._v(" You have the right to object at any time, for reasons arising from your particular situation, to the processing of personal data concerning you which is necessary on the basis of a legitimate interest on our part or in order to carry out a task in the public interest, or which is carried out in the exercise of official authority. ")])]),t("br"),t("p",[e._v(" If you object, we will no longer process your personal data unless we can prove compelling legitimate grounds for processing that override your interests, rights and freedoms, or unless the processing serves to assert, exercise or defend legal claims. ")]),t("p",[e._v(" If we process your personal data for direct marketing purposes, you have the right to object to the processing at any time. If you object to processing for direct marketing purposes, we will no longer process your personal data for these purposes. ")]),t("p",[e._v(" In order to exercise your right of objection, you can, for example, send us an email to the email address mentioned above. ")]),t("ul",[t("li",[t("b",[e._v("Withdrawal of consent:")]),e._v(" If you have given us your informed consent, you have the right to withdraw your consent at any time. In this case, all data processing that we have carried out until your withdrawal remains lawful. ")])]),t("br")]),t("li",[t("h4",[e._v("Obligation to provide data")]),t("p",[e._v(" You have no contractual or legal obligation to provide us with personal data. However, we then might not be able to offer you the requested services. ")])]),t("li",[t("h4",[e._v(" The existence of automated decision-making (including profiling) ")]),t("p",[e._v(" We will not make you subject to any automated decision-making, including profiling in accordance with Art. 22 para. 1 and 4 GDPR, which has legal effects on you or affects you. ")])]),t("li",[t("h4",[e._v("Internet-specific data processing and cookies")]),t("h4",[e._v("Cookies")]),t("p",[e._v(" On our website, we use cookies and similar technologies. Cookies are small text files that are stored on your hard drive and are assigned to the browser and/or device you are using. The provider who stores the cookie on the device can collect certain information through the cookie. The purpose of the cookies set on our website is to enable you to use the website and its functions safely. The specific cookies we or third parties store on your device and their purposes are listed in the table below. ")]),t("h4",[e._v("Google reCaptcha")]),t("p",[e._v('We use the Google ReCAPTCHA service provided by Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Ireland ("Google"). The purpose of ReCAPTCHA is to verify whether data entered on our website is entered by a human or by an automated program. For this purpose, reCAPTCHA analyses various information (e.g. IP address, user behavior, browser and device information).')]),t("p",[e._v("Google processes this data on our behalf as a processor pursuant to Art. 28 GDPR. We have concluded a "),t("a",{attrs:{href:"https://cloud.google.com/terms/data-processing-addendum"}},[e._v("data processing agreement")]),e._v(" with Google.")]),t("p",[e._v("In the context of the use of reCAPTCHA, personal data may be transferred to countries outside the EU/ EEA. However, Google LLC is certified under the Data Privacy Framework, ensuring an adequate level of protection during processing. Privacy Policy: "),t("a",{attrs:{href:"https://policies.google.com/privacy"}},[e._v("https://policies.google.com/privacy")]),e._v(".")]),t("p",[e._v("The legal basis for this data processing is Art. 6 para. 1 lit. f) GDPR. Our legitimate interest lies in protecting our website from misuse and automated attacks.")]),t("p",[e._v("The data will be stored as long as necessary to achieve the purposes of protecting our website and to ensure the security of our service.")])]),t("div"),t("table",{class:"cookies "+e.$vuetify.breakpoint.name},[t("tbody",[t("tr",[t("td",[t("p",[e._v("Name")])]),t("td",[t("p",[e._v("Domain")])]),t("td",[t("p",[e._v("Retention period")])]),t("td",[t("p",[e._v("Technology")])]),t("td",[t("p",[e._v("Purpose")])])]),t("tr",[t("td",[t("p",[e._v("laravel_token")])]),t("td",[t("p",[e._v("api.wikibase.cloud / current API host")])]),t("td",[t("p",[e._v("30 days")])]),t("td",[t("p",[e._v("Laravel Passport")])]),t("td",[t("p",[e._v(" Authenticates the browser session for the Wikibase.cloud API and keeps the user logged in without re-entering credentials ")])])]),t("tr",[t("td",[t("p",[e._v("_GRECAPTCHA")])]),t("td",[t("p",[t("a",{attrs:{href:"https://recaptcha.net/"}}
1,[e._v("recaptcha.net")])])]),t("td",[t("p",[e._v("6 months")])]),t("td",[t("p",[e._v("Recaptcha")])]),t("td",[t("p",[e._v(" Used by recaptcha in order to perform the risk analysis necessary to prevent spammers making automated accounts ")])])]),t("tr",[t("td",[t("p",[e._v("_session")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("Expires when session ends")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v("Stores information that identifies your session")])])]),t("tr",[t("td",[t("p",[e._v("mwuser-sessionId")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("Expires when session ends")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v("Stores information that identifies your session")])])]),t("tr",[t("td",[t("p",[e._v("UserID")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("1 month")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v(" To store your userid so you actions you take are identified by your user ")])])]),t("tr",[t("td",[t("p",[e._v("UserName")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("6 months")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v(" To store your username on the login form to prevent retyping it when logged out ")])])]),t("tr",[t("td",[t("p",[e._v("UseCDNCache")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("1 min")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v(" To make sure your requests go to the correct datacenter and that you don't receive outdated information if one datacenter has slightly older data than the other ")])])]),t("tr",[t("td",[t("p",[e._v("UseDC")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("1 min")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v(" To make sure your requests go to the correct datacenter and that you don't receive outdated information if one datacenter has slightly older data than the other ")])])]),t("tr",[t("td",[t("p",[e._v("cpPosIndex")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("1 min")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v(" To make sure your requests go to the correct datacenter and that you don't recieve outdated information if one datacenter has slightly older data than the other ")])])]),t("tr",[t("td",[t("p",[e._v("PostEditRevision")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("20 minutes")])]),t("td",[t("p",[e._v("Mediawiki")])]),t("td",[t("p",[e._v(" To show you information if you are viewing a page you have just edited ")])])]),t("tr",[t("td",[t("p",[e._v("BlockID")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("Max 1 day (depends on block type)")])]),t("td",[t("p",[e._v("Mediawiki BlockManager")])]),t("td",[t("p",[e._v(" To record if you are currently blocked from editing the site ")])])]),t("tr",[t("td",[t("p",[e._v("stopMobileRedirect")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("30 days")])]),t("td",[t("p",[e._v("Mediawiki extension MobileFrontend")])]),t("td",[t("p",[e._v(" To stop you being redirected to the mobile site if you have asked not to be ")])])]),t("tr",[t("td",[t("p",[e._v("mf_useformat")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("30 days")])]),t("td",[t("p",[e._v("Mediawiki extension MobileFrontend")])]),t("td",[t("p",[e._v(" To show you mobile friendly pages if you have requested them ")])])]),t("tr",[t("td",[t("p",[e._v("optin")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("30 days")])]),t("td",[t("p",[e._v("Mediawiki extension MobileFrontend")])]),t("td",[t("p",[e._v(" To show you mobile friendly pages if you have requested them ")])])]),t("tr",[t("td",[t("p",[e._v("language")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("30 days")])]),t("td",[t("p",[e._v("Mediawiki extension ULS ApiULSSetLanguage")])]),t("td",[t("p",[e._v(" To allow you to set your prefered language even when not logged in ")])])]),t("tr",[t("td",[t("p",[e._v("query-helper-show")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("Expires when session ends")])]),t("td",[t("p",[e._v("Queryservice UI")])]),t("td",[t("p",[e._v("To show, or hide help text for writing queries")])])]),t("tr",[t("td",[t("p",[e._v("widar")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("Expires when session ends")])]),t("td",[t("p",[e._v("Widar + Cradle")])]),t("td",[t("p",[e._v("To identify you as logged in")])])]),t("tr",[t("td",[t("p",[e._v("tokenKey")])]),t("td",[t("p",[e._v("<wiki>
1.wikibase.cloud")])]),t("td",[t("p",[e._v("3 months")])]),t("td",[t("p",[e._v("Widar + Cradle")])]),t("td",[t("p",[e._v("Oauth token key")])])]),t("tr",[t("td",[t("p",[e._v("tokenSecret")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("3 months")])]),t("td",[t("p",[e._v("Widar + Cradle")])]),t("td",[t("p",[e._v("Oauth token secret")])])]),t("tr",[t("td",[t("p",[e._v("quickstatements")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("Expires when session ends")])]),t("td",[t("p",[e._v("Quickstatements")])]),t("td",[t("p",[e._v("To identify you as logged in")])])]),t("tr",[t("td",[t("p",[e._v("tokenKey")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("3 months")])]),t("td",[t("p",[e._v("Quickstatements")])]),t("td",[t("p",[e._v("Oauth token key")])])]),t("tr",[t("td",[t("p",[e._v("tokenSecret")])]),t("td",[t("p",[e._v("<wiki>.wikibase.cloud")])]),t("td",[t("p",[e._v("3 months")])]),t("td",[t("p",[e._v("Quickstatements")])]),t("td",[t("p",[e._v("Oauth token secret")])])])])]),t("p"),t("div")])])],1)],1)],1)},oo=[],no={name:"Privacy",components:{}},lo=no,co=(0,d.A)(lo,ro,oo,!1,null,"6c3f2607",null),uo=co.exports,ho=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"6"}},[t("h1",[e._v("Private Profile")]),t("p",[e._v("To change any details or to remove your account please contact us.")]),t("v-form",{on:{submit:e.sendVerifyEmail}},[t("v-text-field",{attrs:{id:"inputEmail","prepend-icon":"mdi-email",label:"Email address",type:"email",disabled:!0},model:{value:e.currentUser.email,callback:function(t){e.$set(e.currentUser,"email",t)},expression:"currentUser.email"}}),0==e.currentUser.verified?[t("v-btn",{attrs:{disabled:1==e.sentVerifyEmail,type:"submit",color:"red"}},[e._v(" Email not verified. Click to send another verification email. ")])]:e._e()],2)],1)],1)],1)],1)},po=[],mo={name:"User",data(){return{sentVerifyEmail:!1}},computed:{currentUser:function(){return this.$store.getters.currentUser}},methods:{buildData(e){this.$apiData=e},sendVerifyEmail(e){e.preventDefault(),this.$api.sendVerifyEmail().then((e=>{this.sentVerifyEmail=!0,e&&this.$store.dispatch("markAsVerified",{})})).catch((()=>{alert("Failed to send user verification email!")}))}}},vo=mo,go=(0,d.A)(vo,ho,po,!1,null,null,null),fo=go.exports,wo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"content"},[e._m(0),t("v-container",{staticClass:"options"},[t("v-select",{attrs:{items:e.sortOptions,disabled:e.inputDisabled,label:"Sort","hide-details":"auto",outlined:"",dense:""},model:{value:e.sortValue,callback:function(t){e.sortValue=t},expression:"sortValue"}}),t("v-checkbox",{attrs:{disabled:e.inputDisabled,label:"exclude empty Wikibases","hide-details":"auto"},model:{value:e.excludeEmpty,callback:function(t){e.excludeEmpty=t},expression:"excludeEmpty"}})],1),t("span",{staticClass:"text-body-2"},[e._v(" "+e._s(e.results)+" results ")]),t("MasonryGrid",{staticClass:"cards"},e._l(e.wikis,(function(e,i){return t("DiscoveryCard",{key:i,staticClass:"card",attrs:{name:e.name,url:e.url,logo:e.logo,stats:e.stats,pages:e.pages}})})),1),e.paginate?t("div",{staticClass:"pagination"},[t("v-pagination",{attrs:{length:e.totalPages,disabled:e.inputDisabled},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1):e._e()],1)},bo=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"intro"},[t("div",{staticClass:"text-h4 title"},[e._v(" A tour of Wikibases in the cloud ")]),t("div",{staticClass:"text-subtitle-1"},[e._v(" Have you ever wanted to take a look at other Wikibases, so you can see how other folks have set them up? Here's a list of other instances on Wikibase Cloud for your information and inspiration. ")])])}],_o=(i(4603),i(7566),i(8721),function(){var e=this,t=e._self._c;return t("v-card",{on:{click:e.goToWiki,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.goToWiki.apply(null,arguments)}}},[t("v-container",{staticClass:"content"},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"flex-grow-0"},[t("v-avatar",{attrs:{rounded:"",color:e.color}},[e.logo?t("img",{attrs:{src:e.logo.href}}):t("span",{staticClass:"white--text"}
1,[e._v(e._s(e.character))])])],1),t("v-col",{staticClass:"details"},[t("div",{staticClass:"text-h5 font-weight-regular"},[e._v(e._s(e.name))]),e.stats?t("div",{staticClass:"text-body-2 pages"},[e._v("No. of pages: "+e._s(e.pages))]):t("div",{staticClass:"text-body-2 pages"},[e._v("No. of pages: "),t("i",[e._v("currently unavailable")])])])],1)],1)],1)}),yo=[],ko={name:"DiscoveryCard",props:{name:{type:String,required:!0},url:{type:URL,required:!0},logo:{type:URL,required:!1},stats:{type:Boolean,required:!0},pages:{type:Number,required:!1}},computed:{character:function(){return this.name.substring(0,1).toUpperCase()},color:function(){const e=["red","blue","green","purple"];return this.logo?"white":e[Math.floor(Math.random()*e.length)]}},methods:{goToWiki(){window.open(this.url.href,"_blank")}}},xo=ko,Co=(0,d.A)(xo,_o,yo,!1,null,"71a583a2",null),So=Co.exports,Po=function(){var e=this,t=e._self._c;return t("div",{ref:"grid",staticClass:"grid"},[e._t("default")],2)},Eo=[],Ao={name:"MasonryGrid",data(){return{timer:null}},methods:{resizeCards(){const e=this.$refs.grid.children,t=window.getComputedStyle(this.$refs.grid),i=parseInt(t.getPropertyValue("row-gap")),s=parseInt(t.getPropertyValue("grid-auto-rows")),a=i+s;Array.from(e).forEach((e=>{const t=e.firstChild.getBoundingClientRect().height+i,s=Math.round(t/a);e.style["grid-row"]="span "+s}))},debounceResize(e){clearTimeout(this.timer),this.timer=setTimeout((()=>{this.resizeCards()}),e)},windowResized(){this.debounceResize(50)}},created(){window.addEventListener("resize",this.windowResized)},destroyed(){window.removeEventListener("resize",this.windowResized)},updated(){this.$nextTick((()=>{this.resizeCards()}))}},Io=Ao,To=(0,d.A)(Io,Po,Eo,!1,null,"d83613d8",null),Do=To.exports;const Wo={alphaAsc:{text:"Alphabetically â",value:{direction:"asc",sort:"sitename"}},alphaDesc:{text:"Alphabetically â",value:{direction:"desc",sort:"sitename"}},pagesDesc:{text:"No. of pages â",value:{direction:"desc",sort:"pages"}}};var Fo={name:"Discovery",components:{DiscoveryCard:So,MasonryGrid:Do},data(){return{results:0,resultsPerPage:24,currentPage:1,totalPages:1,excludeEmpty:!0,sortValue:Wo.pagesDesc.value,sortOptions:Object.values(Wo),inputDisabled:!1,wikis:[]}},methods:{async update(){this.inputDisabled=!0;try{const e=await this.$api.wikiDiscovery({sort:this.sortValue.sort,direction:this.sortValue.direction,active:this.excludeEmpty?1:0,currentPage:this.currentPage,resultsPerPage:this.resultsPerPage});this.results=e.meta.total,this.totalPages=e.meta.last_page,this.wikis=await e.data.map((e=>{const t=e.wiki_site_stats;return{name:e.sitename,url:new URL("https://"+e.domain),logo:e.logo_url?new URL(e.logo_url):void 0,stats:!!t,...t&&{pages:t.pages}}}))}catch(Ve){console.log(Ve),alert("Failed to collect Wikibase stats")}finally{this.inputDisabled=!1}},filter(){1===this.currentPage?this.update():this.currentPage=1}},computed:{paginate:function(){return this.results>this.resultsPerPage}},watch:{sortValue:function(){this.filter()},excludeEmpty:function(){this.filter()},currentPage:function(){this.update()},wikis:function(){this.$nextTick((()=>{this.$nextTick((()=>{document.documentElement.scrollIntoView({behavior:"smooth"})}))}))}},mounted(){this.update()}},$o=Fo,Lo=(0,d.A)($o,wo,bo,!1,null,"427fdbb2",null),Mo=Lo.exports,Ro=function(){var e=this,t=e._self._c;return t("v-main",{staticClass:"pa-2"},[t("v-responsive",{attrs:{"max-width":"616px","min-width":"250px"}},[t("p",{staticClass:"text-body-1 font-weight-bold mb-2"},[e._v(" Points of contact under the Digital Services Act (Regulation 2022/2065/EU) ")]),t("p",{staticClass:"text-subtitle-2 font-weight-regular mb-8"},[e._v(" Point of contact for public authorities under Art. 11 DSA: [email protected]"),t("br"),e._v(" Point of contact for recipients under Art. 12 DSA: [email protected] ")]),t("h1",{staticClass:"text-h4 mb-4"},[e._v("Reporting illegal content")]),t("p",{staticClass:"text-body-1 mb-9"},[e._v(" Please use this form to report any content that you consider to be illegal. After sending the email, which is generated by clicking the âReport illegal contentâ button, your report will be delivered to us and handled in accordance with Regulation (EU) 2022/2065, Article 16 (âDigital Services Actâ). If you supply an email, you will then automatically receive a confirmation of receipt and, as soon as we have processed your report, we will inform you of any action taken. Please be aware that no feedback will be provided on the action taken if the report is deemed abusive (e.g. spam or unfounded report). In the event of repeated abusive use, we reserve the right to block you. ")]),t("v-form",{ref:"form",on:{submit:function(e){e.preventDefault()}}},[t("v-responsive",{attrs:{"max-width":"519px"}},[t("v-textarea",{attrs:{rules:[()=>!!e.contenturl||"This field is required"],label:"URL(s) for the content in question",required:"","auto-grow":""},model:{value:e.contenturl,callback:function(t){e.contenturl=t},expression:"contenturl"}}),t("v-textarea",{attrs:{id:"inputMessage",counter:"1000",rules:[e=>
1e.length<=1e3||"Message must be 1000 characters or less",()=>!!e.message||"This field is required"],"auto-grow":"",label:"Reason why the information in question is illegal content",required:""},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}}),t("v-text-field",{attrs:{id:"contactname",rules:[e=>e.length<=300||"Max 300 characters"],label:"Your name (optional)"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}}),t("v-text-field",{staticClass:"mb-6",attrs:{id:"contactemail",rules:[e=>e.length<=300||"Max 300 characters"],label:"Email address (optional)","persistent-hint":"",hint:"Receiving a confirmation receipt and updates requires an email"},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),t("v-checkbox",{attrs:{label:"I am convinced in good faith that the information and statements contained in\n the report are correct and complete.",rules:[()=>!!e.accepted||""],required:""},model:{value:e.accepted,callback:function(t){e.accepted=t},expression:"accepted"}}),t("div",{attrs:{align:"right"}},[t("v-btn",{staticClass:"mt-6",attrs:{color:"primary"},on:{click:e.send}},[e._v(" Report illegal content ")])],1)],1),t("v-snackbar",{attrs:{color:"success",elevation:"24"},scopedSlots:e._u([{key:"action",fn:function(){return[t("v-btn",{attrs:{text:"",variant:"text"},on:{click:e.closeAlert}},[e._v(" Close ")])]},proxy:!0}]),model:{value:e.successMessage,callback:function(t){e.successMessage=t},expression:"successMessage"}},[t("span",{staticClass:"text-body-1"},[e._v("Report successfully submitted. Thanks!")])]),t("v-snackbar",{attrs:{color:"error",elevation:"24","multi-line":""},scopedSlots:e._u([{key:"action",fn:function(){return[t("v-btn",{attrs:{text:"",variant:"text"},on:{click:e.closeAlert}},[e._v(" Close ")])]},proxy:!0}]),model:{value:e.errorMessage,callback:function(t){e.errorMessage=t},expression:"errorMessage"}},[t("span",{staticClass:"text-body-1"},[e._v("Something went wrong with submitting your report. Please try again.")])])],1)],1)},qo=[],Uo={data:()=>({contenturl:"",message:"",name:"",email:"",successMessage:!1,errorMessage:!1,accepted:!1}),methods:{closeAlert(){this.successMessage=!1,this.errorMessage=!1},send(){const e=this.contenturl,t=this.message,i=this.name,s=this.email;!0===this.$refs.form.validate()&&this.$recaptcha("complaint").then((a=>{this.$api.complaint({name:i,url:e,email:s,message:t,recaptcha:a}).then((e=>this.createSuccessful())).catch((e=>{this.resetErrorState(),this.createError(),e&&(e.name&&(this.hasError=!0,this.error.inputUrl=e.url[0]),e.subject&&(this.hasError=!0,this.error.inputMessage=e.Message[0])),this.hasError||this.setGeneralErrorState()}))}))},resetForm(){this.$refs.form.reset(),this.$refs.form.resetValidation()},createSuccessful(){this.successMessage=!0,this.resetForm()},createError(){this.errorMessage=!0},resetErrorState(){this.hasError=!1,this.error=[]},setGeneralErrorState(e="Something went wrong."){this.resetErrorState(),this.hasError=!0,this.error.inputName=e,this.error.inputSubject=e}}},Oo=Uo,No=(0,d.A)(Oo,Ro,qo,!1,null,null,null),zo=No.exports,Go=i(9906),Vo=function(){var e=this,t=e._self._c;return t("v-main",[t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"12"}},[t("h1",{staticClass:"font-weight-regular"},[e._v("Digital Services Act (DSA) Information Page")])])],1),t("DsaEnglish",{attrs:{id:"dsa-en"}}),t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"12"}},[t("v-divider",{staticClass:"mt-16 mb-8"})],1)],1),t("DsaGerman",{attrs:{id:"dsa-de"}})],1)],1)},jo=[],Qo=function(){var e=this,t=e._self._c;return t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"11",md:"4","order-md":"last"}},[t("div",{staticClass:"px-6 py-4"},[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-de"}}},[e._v("Zur deutschen Fassung")])],1),t("v-expansion-panels",{attrs:{value:e.$vuetify.breakpoint.mdAndUp?0:null}},[t("v-expansion-panel",[t("v-expansion-panel-header",[e._v(" Contents ")]),t("v-expansion-panel-content",[t("v-list",{staticClass:"wrap"},[t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-en-one"}}},[t("v-list-item-title",[e._v("1. General")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-en-two"}}},[t("v-list-item-title",[e._v("2. Contact point for authorities and users")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-en-three"}}},[t("v-list-item-title",[e._v("3. Average monthly number of active users in the EU")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-en-four"}}},[t("v-list-item-title",[e._v("4. Out-of-court dispute resolution body")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-en-five"}}},[t("v-list-item-title",[e._v("5. Transparency report")])],1)],1)],1)],1)],1)],1)],1)],1),t("v-col",{attrs:{cols:"11",md:"8"}},[t("p",{staticClass:"text-h6 font-weight-regular"},[e._v("English")]),t("p",[e._v("The Digital Services Act (DSA) is an EU regulation that entered into force in 2022, establishing a comprehensive framework for digital services accountability, content moderation, and platform transparency across the European Union. It significantly updates the Electronic Commerce Directive 2000 in EU law by introducing graduated obligations based on service size and risk levels, and was proposed alongside the Digital Markets Act (DMA). You can read more about DSA "),t("a",{staticClass:"external",attrs:{href:"https://en.wikipedia.org/wiki/Digital_Services_Act",target:"_blank"}},[e._v("here"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v(" mdi-open-in-new")])],1),e._v(". ")]),t("v-divider",{staticClass:"my-6"}),t("p",{staticClass:"font-weight-light"},[e._v("Last updated: January 2026")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-en-one"}},[e._v("1. General")]),t("p",[e._v("On this page, you will find all the information required under the Digital Services Act (i.e., Articles 11, 12, 21, and 24 of "),t("a",{attrs:{href:"https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=celex:32022R2065",target:"_blank"}},[e._v("Regulation (EU) 2022/2065)"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v("mdi-open-in-new")])],1),e._v(".")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-en-two"}},[e._v("2. Contact point for authorities and users")]),t("p",[e._v("To contact us in accordance with Article 11 DSA for authorities of EU member states, the European Commission, and the European Board, please send a message to our central contact point here "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(". We will send you a confirmation. Contact will be made by email in English or German.")]),t("p",[e._v("To contact us in accordance with Article 12 DSA, users can send their DSA-related inquiries to our central contact point here "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(" or via telephone (+49 (0)30-577 11 62-0).")]),t("p",[e._v("Information on the processing of personal data is provided in our "),t("router-link",{attrs:{to:"/privacy-policy"}},[e._v("Privacy Policy")]),e._v(". By contacting us, you confirm that you have taken note of this information.")],1),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-en-three"}},[e._v("3. Average monthly number of active users in the EU")]),t("p",[e._v("The estimated average number of monthly active users in the EU is 18,000, based on the average of the previous six months up to "),t("strong",[e._v("January 2026")]),e._v(". ")]),t("p",[e._v("Until the EU Commission specifies the exact calculation method in delegated acts in accordance with Art. 24 (2) and Art. 33 (3) GDPR, we make the estimation by comparing Wikibase Cloud with Wikidata, a similar Wikimedia-hosted structured data platform.")]),t("p",[e._v("We use the ratio of monthly active editors on Wikibase Cloud to those on Wikidata to proportionally scale "),t("a",{attrs:{href:"https://foundation.wikimedia.org/wiki/Legal
1:EU_DSA_Userbase_Statistics#Average_monthly_active_recipients_of_the_service,_in_the_EU_region,_over_the_prior_6_months",target:"_blank"}},[e._v("Wikidataâs published estimate"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v("mdi-open-in-new")])],1),e._v(" of average monthly recipients (1,337,000 in Aug 2025-Jan 2026). With 337 monthly editors on Wikibase Cloud and 25,000 on Wikidata in January 2026, this results in an estimated average of approximately 18,000 monthly active users in the EU for Wikibase Cloud.")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-en-four"}},[e._v("4. Out-of-court dispute resolution body")]),t("p",[e._v("To resolve disputes relating to decisions we have made in the moderation of content, users in the EU can lodge a complaint six months after being notified of our decision "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(" .")]),t("p",[e._v("In addition, EU users may also choose a certified out-of-court dispute resolution body to resolve disputes relating to decisions we have made in the context of content moderation in accordance with Article 21 of the DSA. The EU Commission has a list of out-of-court dispute resolution bodies for this purpose, which you can find "),t("a",{attrs:{href:"https://digital-strategy.ec.europa.eu/en/policies/dsa-out-court-dispute-settlement",target:"_blank"}},[e._v("here"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v("mdi-open-in-new")])],1),e._v(".")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-en-five"}},[e._v("5. Transparency report")]),t("p",[e._v("In accordance with the provisions of Article 15 of the DSA, Wikimedia Deutschland e.V. publishes an annual transparency report on this page.")])],1)],1)},Bo=[],Ho={name:"DsaEnglish",computed:{}},Yo=Ho,Ko=(0,d.A)(Yo,Qo,Bo,!1,null,"3c014883",null),Jo=Ko.exports,Zo=function(){var e=this,t=e._self._c;return t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"11",md:"4","order-md":"last"}},[t("div",{staticClass:"px-6 py-4"},[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-en"}}},[e._v("Go to the English version")])],1),t("v-expansion-panels",{attrs:{value:e.$vuetify.breakpoint.mdAndUp?0:null}},[t("v-expansion-panel",[t("v-expansion-panel-header",[e._v(" Inhalte ")]),t("v-expansion-panel-content",[t("v-list",{staticClass:"wrap"},[t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-de-one"}}},[t("v-list-item-title",[e._v("1. Allgemeines")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-de-two"}}},[t("v-list-item-title",[e._v("2. Kontaktstelle für Behörden und Nutzer")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-de-three"}}},[t("v-list-item-title",[e._v("3. Durchschnittliche monatliche Zahl der aktiven Nutzer in der EU")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-de-four"}}},[t("v-list-item-title",[e._v("4. AuÃergerichtliche Streitbeilegungsstelle")])],1)],1)],1),t("v-list-item",[t("v-list-item-content",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{hash:"#dsa-de-five"}}},[t("v-list-item-title",[e._v("5. Transparenzbericht")])],1)],1)],1)],1)],1)],1)],1)],1),t("v-col",{attrs:{cols:"11",md:"8"}},[t("p",{staticClass:"text-h6 font-weight-regular"},[e._v("Deutsch")]),t("p",[e._v("Der Digital Services Act (DSA) ist eine EU-Verordnung, die 2022 in Kraft getreten ist und einen umfassenden Rahmen für die Rechenschaftspflicht digitaler Dienste, die Moderation von Inhalten und die Transparenz von Plattformen in der gesamten Europäischen Union schafft. Er aktualisiert die Richtlinie über den elektronischen Geschäftsverkehr aus dem Jahr 2000 im EU-Recht erheblich, indem er abgestufte Verpflichtungen je nach GröÃe des Dienstes und Risikostufe einführt, und wurde zusammen mit dem Digital Markets Act (DMA) vorgeschlagen. Weitere Informationen zum DSA finden Sie "),t("a",{attrs:{href:"https://de.wikipedia.org/wiki/Gesetz_%C3%BCber_digitale_Dienste",target:"_blank"}},[e._v("hier"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v("mdi-open-in-new")])],1),e._v(".")]),t("v-divider",{staticClass:"my-6"}),t("p",{staticClass:"font-weight-light"},[e._v("Stand: Januar 2026")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-de-one"}},[e._v("1. Allgemeines")]),t("p",[e._v("Auf dieser Seite finden Sie alle erforderlichen Informationen nach dem Digital Services Act (das heiÃt nach Artikel 11, Artikel 12, Artikel 21 und Art
1ikel 24 der "),t("a",{attrs:{href:"https://eur-lex.europa.eu/legal-content/DE/TXT/PDF/?uri=CELEX:32022R2065",target:"_blank"}},[e._v("Verordnung (EU) 2022/2065"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v("mdi-open-in-new")])],1),e._v(").")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-de-two"}},[e._v("2. Kontaktstelle für Behörden und Nutzer")]),t("p",[e._v("Zur Kontaktaufnahme nach Art. 11 DSA für Behörden von EU-Mitgliedstaaten, der Europäischen Kommission und das Europäische Gremium kann eine Mitteilung an unsere zentrale Kontaktstelle hier "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(" gerichtet werden. Wir übermitteln eine Eingangsbestätigung. Der Kontakt findet per E-Mail in englischer oder deutscher Sprache statt.")]),t("p",[e._v("Zur Kontaktaufnahme nach Artikel 12 DSA können Nutzer ihre Anfragen im Zusammenhang mit dem DSA an unsere zentrale Kontaktstelle hier "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(" oder per Telefon unter der (+49 (0)30-577 11 62-0) richten.")]),t("p",[e._v("Informationen zur Verarbeitung personenbezogener Daten sind in unserer "),t("a",{attrs:{href:"https://www.wikibase.cloud/privacy-policy"}},[e._v("Datenschutzerklärung")]),e._v(" aufgeführt. Mit der Kontaktaufnahme wird bestätigt, die Informationen zur Kenntnis genommen zu haben.")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-de-three"}},[e._v("3. Durchschnittliche monatliche Zahl der aktiven Nutzer in der EU")]),t("p",[e._v("Die geschätzte durchschnittliche Anzahl monatlich aktiver Nutzer in der EU beträgt 18.000, basierend auf dem Durchschnitt der vergangenen sechs Monate bis zum "),t("strong",[e._v("Januar 2026")]),e._v(".")]),t("p",[e._v("Bis die EU-Kommission gemäà Art. 24 Abs. 2 und Art. 33 Abs. 3 DSGVO die genaue Berechnungsmethode in den delegierten Rechtsakten festlegt, nehmen wir die Schätzung vor, indem wir Wikibase Cloud mit Wikidata vergleichen, einer ähnlichen, von Wikimedia gehosteten Plattform für strukturierte Daten.")]),t("p",[e._v("Wir verwenden das Verhältnis der monatlich aktiven Editierenden auf Wikibase Cloud zu denen auf Wikidata, um die von Wikidata veröffentlichte Schätzung der durchschnittlichen monatlichen Anzahl von Empfängern (1,337,000 im August 2025-Januar 2026) proportional zu skalieren. Bei 337 monatlichen Editierenden auf Wikibase Cloud und 25.000 auf Wikidata im Januar 2026 ergibt sich daraus eine geschätzte durchschnittliche Zahl von ungefähr 18.000 monatlich aktiven Nutzern in der EU für Wikibase Cloud.")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-de-four"}},[e._v("4. AuÃergerichtliche Streitbeilegungsstelle")]),t("p",[e._v("Zur Beilegung von Streitigkeiten im Zusammenhang von uns getroffenen Entscheidungen bei der Moderation von Inhalten können Nutzer in der EU sechs Monate nachdem sie von unserer Entscheidung in Kenntnis gesetzt wurden, Beschwerde einreichen "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(".")]),t("p",[e._v("Im Ãbrigen können EU-Nutzer zur Beilegung von Streitigkeiten im Zusammenhang von uns getroffenen Entscheidungen bei der Moderation von Inhalten gemäà Artikel 21 des DSA auch eine zertifizierte auÃergerichtliche Streitbeilegungsstelle wählen. Die EU-Kommission verfügt zu diesem Zweck über eine Liste auÃergerichtlicher Streitbeilegungsstellen, die Sie "),t("a",{attrs:{href:"https://digital-strategy.ec.europa.eu/de/policies/dsa-out-court-dispute-settlement",target:"_blank"}},[e._v("hier"),t("v-icon",{staticClass:"pl-1 pb-2",attrs:{small:"",color:"primary"}},[e._v("mdi-open-in-new")])],1),e._v(" finden.")]),t("h3",{staticClass:"font-weight-regular my-2",attrs:{id:"dsa-de-five"}},[e._v("5. Transparenzbericht")]),t("p",[e._v("Gemäà den Vorgaben von Artikel 15 des DSA veröffentlicht Wikimedia Deutschland e.V. einen jährlichen Transparenzbericht auf dieser Seite.")])],1)],1)},Xo=[],en={name:"DsaGerman",computed:{}},tn=en,sn=(0,d.A)(tn,Zo,Xo,!1,null,"5d58bde6",null),an=sn.exports,rn={name:"DsaInfo",components:{DsaEnglish:Jo,DsaGerman:an},computed:{}},on=rn,nn=(0,d.A)(on,Vo,jo,!1,null,"324f8260",null),ln=nn.exports,cn=function(){var e=this,t=e._self._c;return t("v-main",[0===e.reviews.length?t("ReviewSubmission",{attrs:{"wiki-id":e.id}}
1):e._e(),e.reviews.length>0?t("ReviewsView",{attrs:{submittedDate:e.reviews[0].created_at}}):e._e()],1)},un=[],dn=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("Submit for review")]),t("v-card-subtitle",[e._v(" This instance is temporary. To keep it, submit it for review by the hosting policy review committee. ")]),t("v-card-text",[t("v-form",{ref:"reviewForm",model:{value:e.isFormValid,callback:function(t){e.isFormValid=t},expression:"isFormValid"}},[e._v(" We need to know some details about your use case. The form to fill out these details is in an "),t("ExternalLink",{attrs:{url:`https://wikimedia.sslsurvey.de/WBC-Hosting-Policy-Review-Submission/?${this.wikiId}`}},[t("span",{staticClass:"font-weight-bold"},[e._v("external survey tool")])]),e._v(". Please submit your answers there and come back to this page. "),t("RequiredCheckbox",[e._v(" I confirm that I have filled out the questionnaire for this Wikibase in the external tool. ")]),e._v(" We require that the structured data hosted on the platform is in the public domain or released under "),t("ExternalLink",{attrs:{url:"https://creativecommons.org/publicdomain/zero/1.0/"}},[e._v("CC0")]),e._v(", and the license for the text in other namespaces allows commercial and non-commercial use and derivatives. "),t("RequiredCheckbox",[e._v(" I confirm that the licensing rules for this Wikibase are compliant with the requirements above and described on the "),t("ExternalLink",{staticClass:"mx-1",attrs:{url:`https://${this.$store.state.wikis.currentWikiDomain}/wiki/Project:Copyrights`}},[t("span",[e._v("Project:Copyrights")])]),e._v(" page. ")],1),e._v(" Visitors to your Wikibase should be able to understand what your project is about and whether they are welcome to contribute, reuse or refer to this data. We require making this clear in the information on the "),t("ExternalLink",{attrs:{url:`https://${this.$store.state.wikis.currentWikiDomain}/wiki/Main_Page`}},[e._v("main")]),e._v(" or "),t("ExternalLink",{attrs:{url:`https://${this.$store.state.wikis.currentWikiDomain}/wiki/Project:About`}},[e._v("Project:About")]),e._v(" page. "),t("RequiredCheckbox",[e._v(" I confirm that the information describing the project to external users is visible on my Wikibase. ")]),t("RequiredCheckbox",[e._v(" I confirm that I intend to take further care of the instance and ensure its compliance with Wikibase Cloud policies, stay reachable or pass my responsibilities over to another manager with Terms of Use-based responsibility. ")]),t("v-textarea",{attrs:{outlined:"",maxlength:"1000",counter:"1000","no-resize":"",placeholder:"Feel free to pass on any additional information to the review committee to support your submission."},model:{value:e.additionalInformation,callback:function(t){e.additionalInformation=t},expression:"additionalInformation"}})],1)],1),t("v-card-actions",[e.isFormValid?e._e():t("span",[e._v("Tick all four confirmations to submit.")]),e.isFormValid?t("span",[e._v("Ready to submit.")]):e._e(),t("v-spacer"),t("v-btn",{attrs:{color:"primary"},on:{click:e.submitReview}},[e._v("Submit for Review")])],1)],1)},hn=[],pn=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:e.url,rel:"external",target:"_blank"},on:{click:function(e){e.stopPropagation()}}},[e._t("default"),t("v-icon",{staticClass:"mb-1",attrs:{size:"inherit",color:"primary"}},[e._v("mdi-open-in-new")])],2)},mn=[],vn={props:["url"]},gn=vn,fn=(0,d.A)(gn,pn,mn,!1,null,null,null),wn=fn.exports,bn={name:"ReviewSubmission",props:["wikiId"],components:{ExternalLink:wn,RequiredCheckbox:Js},data:()=>({additionalInformation:"",isFormValid:!1}),methods:{submitReview:function(){!0===this.$refs.reviewForm.validate()&&this.$store.dispatch("submitWikiForReview",{wikiId:this.wikiId,additionalInformation:this.additionalInformation})}}},_n=bn,yn=(0,d.A)(_n,dn,hn,!1,null,"05e2f2a0",null),kn=yn.exports,xn=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("Your Submission")]),t("v-card-text"),t("v-list",{attrs:{outlined:""}},[t("v-list-item",{attrs:{"two-line":""}},[t("v-list-item-content",[t("v-list-item-title",[t("v-chip",[e._v("Submitted")]),e._v(" Submitted "+e._s(new Date(e.submittedDate).toISOString().substring(0,10))+" ")],1),t("v-list-item-subtitle",[e._v("Your instance will stay online while we are reviewing your submission. We will contact you about the outcome. ")])],1)],1)],1)],1)},Cn=[],Sn={name:"ReviewsView",props:["submittedDate"]},Pn=Sn,En=(0,d.A)(Pn,xn,Cn,!1,null,null,null),An=En.exports,In={name:"Review",components:{ReviewSubmission:kn,ReviewsView:An},props:["id"],computed:{reviews(){return this.$store.getters.getReviewsByWikiId(Number(this.id
1))}},created(){this.$store.dispatch("loadWikiReviews",this.id)}},Tn=In,Dn=(0,d.A)(Tn,cn,un,!1,null,"794e287c",null),Wn=Dn.exports;a["default"].use(Y.Ay);const Fn=new Y.Ay({mode:"history",routes:[{path:"/",name:"Home",component:ei,meta:{customLayout:!0}},{path:"/about",name:"About",component:hi},{path:"/contact",name:"Contact",component:wi},{path:"/complaint",name:"Complaint",component:zo},{path:"/create-account",name:"CreateAccount",component:Ti},{path:"/login",name:"Login",component:zi},{path:"/forgotten-password",name:"ForgottenPassword",component:os},{path:"/reset-password",name:"ResetPassword",component:ws},{path:"/terms-of-use",name:"TermsOfUseRenderer",component:ao["default"]},{path:"/terms-of-use/upcoming",name:"TermsOfUseRendererUpcoming",component:ao["default"]},{path:"/terms-of-use/:activeFrom",name:"TermsOfUseRendererExact",component:ao["default"]},{path:"/hosting-policy",name:"HostingPolicy",component:Go["default"]},{path:"/hosting-policy/upcoming",name:"HostingPolicyRendererUpcoming",component:Go["default"]},{path:"/hosting-policy/:activeFrom",name:"HostingPolicyRendererExact",component:Go["default"]},{path:"/privacy-policy",name:"Privacy",component:uo},{path:"/dsa-info",name:"DsaInfo",component:ln},{path:"/logout",name:"Logout",component:Hi,meta:{requiresAuth:{excludeFromPolicyChecks:!0}}},{path:"/emailVerification/:token",name:"EmailVerification",component:Ss,meta:{requiresAuth:{excludeFromPolicyChecks:!0}}},{path:"/user",name:"User",component:fo,meta:{requiresAuth:!0}},{path:"/dashboard",name:"Dashboard",component:oi,meta:{requiresAuth:!0}},{path:"/wikis/create",name:"CreateWiki",component:ca,meta:{requiresAuth:!0}},{path:"/wikis/manage/:id",name:"TabSettings",component:va,meta:{requiresAuth:!0},children:[{path:"profile",component:Ea,meta:{requiresAuth:!0},name:"TabSettingsProfileInner"},{path:"settings",component:so,meta:{requiresAuth:!0},name:"TabSettingsSettingsInner"},{path:"features",component:Ja,meta:{requiresAuth:!0},name:"TabSettingsFeaturesInner"},{path:"review",component:Wn,meta:{requiresAuth:!0},name:"TabSettingsReviewInner",props:!0}]},{path:"/discovery",name:"Discovery",component:Mo,meta:{customLayout:!0}}],scrollBehavior(e,t,i){return i||(e.hash?{selector:e.hash,behavior:"smooth"}:{x:0,y:0,behavior:"smooth"})}});Fn.beforeEach((async(e,t,i)=>{if(e.matched.some((e=>e.meta.requiresAuth))){if(await dt.getters.initialized,dt.getters.isLoggedIn)return e.meta.requiresAuth.excludeFromPolicyChecks||await dt.dispatch("fetchMissingPolicies"),void i();i("/login")}else i()})),Fn.afterEach((({title:e,name:t})=>{"undefined"===typeof e&&(e=[...t.matchAll(/([A-Z]+[^A-Z]*)/g)].map((e=>e[0])).join(" ")),document.title="wikibase.cloud "+(e.length?" - "+e:"")}));var $n=Fn,Ln=i(4600),Mn=i.n(Ln);i(4301);async function Rn(){0}Rn().then((()=>{a["default"].config.productionTip=!1,a["default"].use(Mn()),a["default"].use(H.VueReCaptcha,{siteKey:Ds().RECAPTCHA_SITE_KEY,loaderOptions:{useRecaptchaNet:!0}}),a["default"].prototype.$api=s,new a["default"]({el:"#app",router:$n,store:dt,vuetify:new(Mn())({icons:{iconfont:"mdi"}}),components:{App:B},template:"<App/>",created:function(){dt.dispatch("login",null),X.interceptors.response.use(void 0,(function(e){return new Promise((function(t,i){e.response.config&&!e.response.config.__isRetryRequest&&e.response.data&&e.response.data.error&&"Unauthenticated."===e.response.data.error&&(console.log("Detected logged out state, so logging out..."),dt.dispatch("logout").then((()=>$n.push("/login"))).catch((e=>{console.log(e)}))),i(e)}))}))}})}))},1531:function(e,t,i){"use strict";e.exports=i.p+"img/GreenLady.e9425501.svg"},3464:function(e,t,i){"use strict";e.exports=i.p+"img/GreenGroup.cba7c1c3.svg"},3670:function(e,t,i){"use strict";i.d(t,{A:function(){return c}});var s=function(){var e=this,t=e._self._c;return e.links&&e.links.length?t("v-expansion-panels",{attrs:{value:e.$vuetify.breakpoint.mdAndUp?0:null}},[t("v-expansion-panel",[t("v-expansion-panel-header",{staticClass:"grey lighten-3"},[e._v(e._s(e.title))]),t("v-expansion-panel-content",[t("v-list",{staticClass:"wrap"},e._l(e.links,(function(i,s){return t("v-list-item",{key:i.routePath},[t("v-list-item-content",[s==e.currentlyRenderedLink?t("v-list-item-title",[e._v(" "+e._s(i.title)+" ")]):t("v-list-item-title",[t("router-link",{staticClass:"text-decoration-none",attrs:{to:{path:i.routePath}}},[e._v(" "+e._s(i.title)+" ")])],1)],1)],1)}
1)),1)],1)],1)],1):e._e()},a=[],r=(i(8111),i(2489),i(1701),i(7254),i(7036),{name:"PolicyNavigationPanel",components:{},props:{basePath:{type:String},policyType:{type:String},title:{type:String,default:"All Versions"}},data:()=>({policies:[],currentPolicyId:null,upcomingPolicyId:null,error:void 0}),computed:{links:function(){const e=new Map(this.policies.map((e=>[e.metadata.policy_id,e]))),t=e.get(this.currentPolicyId),i=e.get(this.upcomingPolicyId),s=this.policies.filter((e=>{const t=e.metadata.policy_id,i=this.currentPolicyId,s=this.upcomingPolicyId;return t!==i&&t!==s})).sort(((e,t)=>{const i=e.metadata.active_from||"",s=t.metadata.active_from||"";return i===s?t.metadata.policy_id-e.metadata.policy_id:s.localeCompare(i)})),a=[i,t,...s].filter(Boolean);return a.map((e=>{const s=e.metadata.active_from,a=t&&e.metadata.policy_id===t.metadata.policy_id,r=i&&e.metadata.policy_id===i.metadata.policy_id;return{routePath:this.routePathForPolicy({activeFrom:s,isCurrentPolicy:a,isUpcomingPolicy:r}),title:this.titleForPolicy({activeFrom:s,isCurrentPolicy:a,isUpcomingPolicy:r})}}))},currentlyRenderedLink:function(){const e=e=>e.routePath===this.$route.path,t=this.links.findIndex(e);if(-1===t){const e=this.links.findIndex((e=>e.routePath===this.basePath));return-1===e?0:e}return t}},methods:{async loadPolicies(){this.error=void 0;try{const t=await this.$api.getAllPoliciesByType({policyType:this.policyType});this.policies=t;try{const e=await this.$api.getUpcomingPolicyByType({policyType:this.policyType});this.upcomingPolicyId=e.metadata.policy_id}catch(e){e&&e.response&&404===e.response.status||console.error(e),this.upcomingPolicyId=null}try{const e=await this.$api.getCurrentPolicyByType({policyType:this.policyType});this.currentPolicyId=e.metadata.policy_id}catch(e){e&&e.response&&404===e.response.status||console.error(e),this.currentPolicyId=null}}catch(e){this.error=e,console.error(e)}},routePathForPolicy({activeFrom:e,isCurrentPolicy:t,isUpcomingPolicy:i}){return t?this.basePath:i?`${this.basePath}/upcoming`:`${this.basePath}/${e}`},formatActiveFrom(e){return e?new Date(e).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}):""},titleForPolicy({activeFrom:e,isCurrentPolicy:t,isUpcomingPolicy:i}){return t?`${this.formatActiveFrom(e)} (current)`:i?"Upcoming version":`${this.formatActiveFrom(e)}`}},mounted(){this.loadPolicies()}}),o=r,n=i(1656),l=(0,n.A)(o,s,a,!1,null,"20095450",null),c=l.exports},3935:function(e,t,i){"use strict";e.exports=i.p+"img/logo.17a0aff4.svg"},5730:function(e,t,i){"use strict";e.exports=i.p+"img/BlueGraph.961d5027.svg"},6087:function(e,t,i){var s={"./HostingPolicyRenderer":[9906],"./HostingPolicyRenderer.vue":[9906],"./hosting-policy/version-1":[3434,434],"./hosting-policy/version-1.vue":[3434,434]};function a(e){if(!i.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],a=t[0];return Promise.all(t.slice(1).map(i.e)).then((function(){return i(a)}))}a.keys=function(){return Object.keys(s)},a.id=6087,e.exports=a},6236:function(e,t,i){"use strict";e.exports=i.p+"img/HeroBackground.be83ba0c.png"},7550:function(e,t,i){var s={"./TermsOfUseRenderer":[8489],"./TermsOfUseRenderer.vue":[8489],"./terms-of-use/version-1":[4,4],"./terms-of-use/version-1.vue":[4,4],"./terms-of-use/version-2":[1517,517],"./terms-of-use/version-2.vue":[1517,517]};function a(e){if(!i.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],a=t[0];return Promise.all(t.slice(1).map(i.e)).then((function(){return i(a)}))}a.keys=function(){return Object.keys(s)},a.id=7550,e.exports=a},8489:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("v-main",[e.error?t("v-alert",{staticClass:"mt-8 mr-2 ml-2",attrs:{outlined:"",type:"error",border:"left"}},[e._v(" An error occurred while trying to load the requested policy. Please try again later. ")]):e._e(),e.error?e._e():t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"11",md:"4","order-md":"last"}},[t("PolicyNavigationPanel",{attrs:{policyType:"terms-of-use",basePath:"/terms-of-use"}})],1),t("v-col",{attrs:{cols:"11",md:"8"}},[t("hgroup",[t("h1",[e._v("Terms of Use")]),e.policyActiveFrom?t("p",{staticClass:"text-subtitle-1 text--secondary mb-2"}
1,[e._v(" Effective: "+e._s(e.formattedActiveFrom)+" ")]):e._e()]),e.isUpcomingPolicy?t("v-alert",{staticClass:"mt-2",attrs:{type:"info"}},[e._v(" This is an upcoming version. You can find the "),t("router-link",{staticClass:"white--text",attrs:{to:"/terms-of-use"}},[e._v("current version here")]),e._v(". ")],1):e._e(),e.isOutdatedPolicy?t("v-alert",{staticClass:"mt-2",attrs:{type:"info"}},[e._v(" This is an outdated version. You can find the "),t("router-link",{staticClass:"white--text",attrs:{to:"/terms-of-use"}},[e._v("current version here")]),e._v(". ")],1):e._e(),e.policyContentComponent?t(e.policyContentComponent,{tag:"component",attrs:{"active-from":e.policyActiveFrom}}):e._e()],1)],1)],1)],1)},a=[],r=i(3670),o=i(729),n={name:"TermsOfUseRenderer",components:{PolicyNavigationPanel:r.A},computed:{formattedActiveFrom:function(){return this.policyActiveFrom?new Date(this.policyActiveFrom).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}):null}},data(){return{policyType:"terms-of-use",policyContentComponent:void 0,policyActiveFrom:void 0,isUpcomingPolicy:!1,isOutdatedPolicy:!1,error:void 0}},methods:{async renderPage(){this.policyContentComponent=void 0,this.policyActiveFrom=void 0,this.isUpcomingPolicy=!1,this.isOutdatedPolicy=!1,this.error=void 0;try{const t=this.policyType,s=this.$route.params.activeFrom;let a,r,n,l,c;try{a=await this.$api.getUpcomingPolicyByType({policyType:t}),r=a.metadata.active_from}catch(e){if(!(e instanceof o.pe&&404===e.status))throw e;a=void 0}try{n=await this.$api.getCurrentPolicyByType({policyType:t}),l=n.metadata.active_from}catch(e){if(!(e instanceof o.pe&&404===e.status))throw e;n=void 0}const u="/terms-of-use/upcoming"===this.$route.path,d=s&&s===r,h="/terms-of-use"===this.$route.path,p=s&&s===l;if(u||d)this.isUpcomingPolicy=!0,c=a.metadata.content_vue_file,this.policyActiveFrom=a.metadata.active_from;else if(h||p)c=n.metadata.content_vue_file,this.policyActiveFrom=n.metadata.active_from;else{const e=await this.$api.getPolicyByDate({policyType:t,activeFrom:s});this.isOutdatedPolicy=!0,c=e.metadata.content_vue_file,this.policyActiveFrom=e.metadata.active_from}const m=()=>({component:i(7550)(`./${c}`)});void 0!==m?this.policyContentComponent=m:this.error="missing policy"}catch(t){this.error=t,console.error(t)}}},watch:{$route:{immediate:!0,handler:"renderPage"}}},l=n,c=i(1656),u=(0,c.A)(l,s,a,!1,null,"3d2ceaa6",null),d=u.exports},9896:function(e,t,i){"use strict";e.exports=i.p+"img/RedHeads.39c3ef21.svg"},9906:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("v-main",[e.error?t("v-alert",{staticClass:"mt-8 mr-2 ml-2",attrs:{outlined:"",type:"error",border:"left"}},[e._v(" An error occurred while trying to load the requested policy. Please try again later. ")]):e._e(),e.error?e._e():t("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[t("v-row",{attrs:{justify:"center"}},[t("v-col",{attrs:{cols:"11",md:"4","order-md":"last"}},[t("PolicyNavigationPanel",{attrs:{basePath:"/hosting-policy",policyType:"hosting-policy"}})],1),t("v-col",{attrs:{cols:"11",md:"8"}},[t("hgroup",[t("h1",[e._v("Hosting Policy")]),e.policyActiveFrom?t("p",{staticClass:"text-subtitle-1 text--secondary mb-2"},[e._v(" Effective: "+e._s(e.formattedActiveFrom)+" ")]):e._e()]),e.isUpcomingPolicy?t("v-alert",{staticClass:"mt-2",attrs:{type:"info"}},[e._v(" This is an upcoming version. You can find the "),t("router-link",{staticClass:"white--text",attrs:{to:"/hosting-policy"}},[e._v("current version here")]),e._v(". ")],1):e._e(),e.isOutdatedPolicy?t("v-alert",{staticClass:"mt-2",attrs:{type:"info"}},[e._v(" This is an outdated version. You can find the "),t("router-link",{staticClass:"white--text",attrs:{to:"/hosting-policy"}},[e._v("current version here")]),e._v(". ")],1):e._e(),e.policyContentComponent?t(e.policyContentComponent,{tag:"component",attrs:{"active-from":e.policyActiveFrom}}):e._e()],1)],1)],1)],1)},a=[],r=i(3670),o=i(729),n={name:"HostingPolicyRenderer",components:{PolicyNavigationPanel:r.A},computed:{formattedActiveFrom:function(){return this.policyActiveFrom?new Date(this.policyActiveFrom).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}):null}},data(){return{policyType:"hosting-policy",policyContentComponent:void 0,policyActiveFrom:void 0,isUpcomingPolicy:!1,isOutdatedPolicy:!1,error:void 0}},methods:{async renderPage(){this.policyContentComponent=void 0,this.policyActiveFrom=void 0,this.isUpcomingPolicy=!1,this.isOutdatedPolicy=!1,this.error=void 0;try{const t=this.policyType,s=this.$route.params.activeFrom;let a,r,n,l,c;try{a=await this.$api.getUpcomingPolicyByType({policyType:t}),r=a.metadata.active_from}catch(e){if(!(e instanceof o.pe&&404===e.status))throw e;a=void 0}try{n=await this.$api.getCurrentPolicyByType({policyType:t}),l=n.metadata.active_from}catch(e){if(!(e instanceof o.pe&&404===e.status))throw e;n=void 0}const u="/hosting-policy/upcoming"===this.$route.path,d=s&&s===r,h="/hosting-policy"===this.$route.path,p=s&&s===l;if(u||d)this.isUpcomingPolicy=!0,c=a.metadata.content_vue_file,this.policyActiveFrom=a.metadata.active_from;else if(h||p)c=n.metadata.content_vue_file,this.policyActiveFrom=n.metadata.active_from;else{const e=await this.$api.getPolicyByDate({policyType:t,activeFrom:s});this.isOutdatedPolicy=!0,c=e.metadata.content_vue_file,this.policyActiveFrom=e.metadata.active_from}const m=()=>({component:i(6087)(`./${c}`)});void 0!==m?this.policyContentComponent=m:this.error="missing policy"}catch(t){console.error(t),this.error=t}}},watch:{$route:{immediate:!0,handler:"renderPage"}}},l=n,c=i(1656),u=(0,c.A)(l,s,a,!1,null,"1ffac2d3",null),d=u.exports}},t={};function i(s){var a=t[s];if(void 0!==a)return a.exports;var r=t[s]={exports:{}};
1return e[s].call(r.exports,r,r.exports,i),r.exports}i.m=e,function(){var e=[];i.O=function(t,s,a,r){if(!s){var o=1/0;for(u=0;u<e.length;u++){s=e[u][0],a=e[u][1],r=e[u][2];for(var n=!0,l=0;l<s.length;l++)(!1&r||o>=r)&&Object.keys(i.O).every((function(e){return i.O[e](s[l])}))?s.splice(l--,1):(n=!1,r<o&&(o=r));if(n){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[s,a,r]}}(),function(){i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(t,s){return i.f[s](e,t),t}),[]))}}(),function(){i.u=function(e){return"js/"+e+"."+{4:"3592fff4",434:"05342c8a",517:"69a6c88f"}[e]+".js"}}(),function(){i.miniCssF=function(e){return"css/"+e+"."+{4:"926e1d53",517:"aaa0440e"}[e]+".css"}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="wbstack-ui:";i.l=function(s,a,r,o){if(e[s])e[s].push(a);else{var n,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==t+r){n=d;break}}n||(l=!0,n=document.createElement("script"),n.charset="utf-8",i.nc&&n.setAttribute("nonce",i.nc),n.setAttribute("data-webpack",t+r),n.src=s),e[s]=[a];var h=function(t,i){n.onerror=n.onload=null,clearTimeout(p);var a=e[s];if(delete e[s],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach((function(e){return e(i)})),t)return t(i)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=h.bind(null,n.onerror),n.onload=h.bind(null,n.onload),l&&document.head.appendChild(n)}}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.p="/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,s,a,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",i.nc&&(o.nonce=i.nc);var n=function(i){if(o.onerror=o.onload=null,"load"===i.type)a();else{var s=i&&i.type,n=i&&i.target&&i.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+n+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=n,o.parentNode&&o.parentNode.removeChild(o),r(l)}};return o.onerror=o.onload=n,o.href=t,s?s.parentNode.insertBefore(o,s.nextSibling):document.head.appendChild(o),o},t=function(e,t){for(var i=document.getElementsByTagName("link"),s=0;s<i.length;s++){var a=i[s],r=a.getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(r===e||r===t))return a}var o=document.getElementsByTagName("style");for(s=0;s<o.length;s++){a=o[s],r=a.getAttribute("data-href");if(r===e||r===t)return a}},s=function(s){return new Promise((function(a,r){var o=i.miniCssF(s),n=i.p+o;if(t(o,n))return a();e(s,n,null,a,r)}))},a={524:0};i.f.miniCss=function(e,t){var i={4:1,517:1};a[e]?t.push(a[e]):0!==a[e]&&i[e]&&t.push(a[e]=s(e).then((function(){a[e]=0}),(function(t){throw delete a[e],t})))}}}(),function(){var e={524:0};i.f.j=function(t,s){var a=i.o(e,t)?e[t]:void 0;if(0!==a)if(a)s.push(a[2]);else{var r=new Promise((function(i,s){a=e[t]=[i,s]}));s.push(a[2]=r);var o=i.p+i.u(t),n=new Error,l=function(s){if(i.o(e,t)&&(a=e[t],0!==a&&(e[t]=void 0),a)){var r=s&&("load"===s.type?"missing":s.type),o=s&&s.target&&s.target.src;n.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",n.name="ChunkLoadError",n.type=r,n.request=o,a[1](n)}};i.l(o,l,"chunk-"+t,t)}},i.O.j=function(t){return 0===e[t]};var t=function(t,s){var a,r,o=s[0],n=s[1],l=s[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(a in n)i.o(n,a)&&(i.m[a]=n[a]);if(l)var u=l(i)}for(t&&t(s);c<o.length;c++)r=o[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(u)},s=self["webpackChunkwbstack_ui"]=self["webpackChunkwbstack_ui"]||[];
1s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var s=i.O(void 0,[504],(function(){return i(870)}));s=i.O(s)})(); 2//# sourceMappingURL=app.48bebb5a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.