mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-10-03 05:57:03 -05:00
6 lines
3.7 KiB
JavaScript
6 lines
3.7 KiB
JavaScript
import{s as y,am as x,d as n,w as m,e as $,k as B,u as A,o,a as r,b as d,p as _,g as i,c,h as t,n as C,f as h,_ as P,F as N,r as F,i as G,q as z,au as E,W as R}from"./index.a2955c9a.js";import{_ as I}from"./ProfileCard.ccfd8d4f.js";import{_ as T}from"./FormField.d29874fa.js";import{_ as D}from"./FormCheckRadio.f5f9d79c.js";import{_ as p}from"./FormControl.8829c0d6.js";import"./userData.bcc92478.js";const L={class:"md:flex pb-6 md:px-5 md:space-x-10 md:justify-between md:items-center"},U={key:0,class:"mt-2 md:mt-0 md:w-1/3 md:text-right"},W=d("h2",{class:"text-md sm:text-lg md:text-xl font-bold p-2"}," Select Version ",-1),j={class:"bg-white dark:bg-slate-900/90 rounded-2xl pt-6 p-3"},q={class:"w-full"},H={key:2},M={class:"space-x-2"},ee={__name:"PlayerView",setup(O){const b=B(),k=A();var f=null,s=null;const l=y({currentVersion:null}),w=[{id:"username",name:"Username",help:"Set your username for this profile",type:String},{id:"fastSlow",name:"Fast/Slow Display",help:"Enable or disable displaying of Fast/Slow",type:Boolean},{id:"comboPosition",name:"Combo Position",help:"Change order of the combo and notes",type:Boolean},{id:"weight",name:"Weight (kg)",help:"Set your weight for in-game workout mode",type:Number},{id:"dancer",name:"Character",help:"Set your background dancer",type:Array,options:[{id:0,label:"Afro"},{id:1,label:"Emi"}]},{id:"arrow",name:"Arrow Skin",help:"Set your arrow skin",type:Array,options:[{id:0,label:"Normal"},{id:1,label:"Classic"}]}],g={id:1,name:"Trmazi",extid:12345678,avatar:"https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/",last:{arcade:"GhettoCade",date:"7/16/2023"}},a=y({username:"TRMAZI",fastSlow:!0,comboPosition:!1,weight:100,dancer:0,arrow:1,guideLines:0,filter:3});f=b.params.game,s=x(f),s||k.push({name:"ErrorPage",params:{catchAll:"404"}}),s.versions||(l.currentVersion=1);function V(){var u=null;return l.currentVersion?u=`/assets/games/${s.id}/card/${l.currentVersion}.png`:u=s.cardBG,u}function S(){return`
|
|
background-image: url('${V()}');
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
`}return(u,v)=>(o(),n($,null,{default:m(()=>[r(G,null,{default:m(()=>[d("div",L,[r(_,{icon:i(z),href:`/#/games/${i(f)}`,class:"w-full md:w-auto",color:"info",label:"Go Back"},null,8,["icon","href"]),i(s).versions?(o(),c("div",U,[W,r(p,{modelValue:l.currentVersion,"onUpdate:modelValue":v[0]||(v[0]=e=>l.currentVersion=e),options:i(s).versions},null,8,["modelValue","options"])])):t("",!0)]),l.currentVersion?(o(),c("div",{key:0,style:C(S()),class:"rounded-2xl mb-6"},[d("div",j,[d("div",q,[r(I,{"use-small":"",profile:g})])])],4)):t("",!0),r(h,{icon:i(E),title:"View Profile",main:""},null,8,["icon"]),l.currentVersion?(o(),n(h,{key:1,icon:i(R),title:"Profile Customizations",main:""},null,8,["icon"])):t("",!0),l.currentVersion?(o(),c("div",H,[r(P,null,{footer:m(()=>[d("div",M,[r(_,{type:"submit",color:"success",label:"Save"}),r(_,{type:"submit",color:"danger",label:"Revert"})])]),default:m(()=>[d("div",null,[(o(),c(N,null,F(w,e=>r(T,{key:e.id,label:e.name,help:e.help},{default:m(()=>[e.type==String?(o(),n(p,{key:0,"v-model":a[e.id],"model-value":a[e.id]},null,8,["v-model","model-value"])):t("",!0),e.type==Number?(o(),n(p,{key:1,"v-model":a[e.id],"model-value":a[e.id],type:"number"},null,8,["v-model","model-value"])):t("",!0),e.type==Array?(o(),n(p,{key:2,options:e.options,"v-model":a[e.id],"model-value":a[e.id],selected:a[e.id]},null,8,["options","v-model","model-value","selected"])):t("",!0),e.type==Boolean?(o(),n(D,{key:3,"v-model":a[e.id],"model-value":a[e.id],type:"switch"},null,8,["v-model","model-value"])):t("",!0)]),_:2},1032,["label","help"])),64))])]),_:1})])):t("",!0)]),_:1})]),_:1}))}};export{ee as default};
|