Files
granblue-party/dist/assets/Replicard-B3UW8rdA.js
2026-04-13 07:15:44 +00:00

2 lines
9.4 KiB
JavaScript

import{V as l,n as c,U as d}from"./index-DDNMzpZj.js";import{C as p}from"./Checkbox-Dc2UYqO9.js";import{S as h}from"./StarsLine-CReD_mDq.js";import{p as u}from"./mixins-CpCP8hE3.js";const i=()=>({progression:{E:[0,0,0,0,0,0,0,0,0,0],F:[0,0,0,0,0,0,0,0,0,0],G:[0,0,0,0,0,0,0,0,0,0],H:[0,0,0,0,0,0,0,0,0,0]},data_fetched:!1}),m={namespaced:!0,state(){return i()},mutations:{setReplicardData(s,e){l.set(s,"progression",e)},setReplicardFetched(s,e){s.data_fetched=e},resetReplicard(s){Object.assign(s,i())}}},f=u("replicard",m),r=new d.LocalStorageMgt("Replicard"),_={E:{name:"Eletio",boss1:"The Devil",boss2:"The Sun",boss3:"The Star",width:"1377",stars:[{top:140,left:45,name:"Slithering Seductress"},{top:135,left:322,name:"Living Lightning Rod"},{top:265,left:272,name:"Eletion Drake"},{top:142,left:553,name:"Paradoxical Gate"},{top:128,left:685,name:"Blazing Everwing"},{top:208,left:812,name:"Death Seer"},{top:66,left:965,name:"Hundred-Armed Hulk"},{top:193,left:1135,name:"Terror Trifecta"},{top:265,left:1125,name:"Rageborn One"},{top:135,left:1280,name:"Eletion Glider"}]},F:{name:"Faym",boss1:"Justice",boss2:"The Moon",boss3:"Death",width:"1377",stars:[{top:146,left:30,name:"Trident Grandmaster"},{top:206,left:167,name:"Hoarfrost Icequeen"},{top:263,left:352,name:"Oceanic Archon"},{top:146,left:508,name:"Farsea Predator"},{top:206,left:646,name:"Faymian Fortress"},{top:146,left:791,name:"Draconic Simulacrum"},{top:146,left:993,name:"Azureflame Dragon"},{top:263,left:1091,name:"Eye of Sorrow"},{top:149,left:1275,name:"Mad Shearwielder"},{top:154,left:1132,name:"Faymian Gun"}]},G:{name:"Goliath",boss1:"The Hanged Man",boss2:"The Tower",boss3:"Death",width:"1377",stars:[{top:257,left:164,name:"Avatar of Avarice"},{top:29,left:237,name:"Temptation's Guide"},{top:143,left:285,name:"World's Veil"},{top:138,left:592,name:"Bloodstained Barbarian"},{top:257,left:563,name:"Goliath Keeper"},{top:120,left:810,name:"Frenzied Howler"},{top:141,left:963,name:"Vestige of Truth"},{top:257,left:857,name:"Goliath Vanguard"},{top:194,left:1085,name:"Writhing Despair"},{top:198,left:1282,name:"Goliath Triune"}]},H:{name:"Harbinger",boss1:"Temperance",boss2:"Judgement",boss3:"The Star",width:"1377",stars:[{top:174,left:29,name:"Dirgesinger"},{top:34,left:208,name:"Vengeful Demigod"},{top:250,left:159,name:"Wildwind Conjurer / Fullthunder Conjurer"},{top:146,left:334,name:"Harbinger Simurgh"},{top:260,left:486,name:"Harbinger Hardwood"},{top:188,left:583,name:"Demanding Stormgod"},{top:143,left:960,name:"Harbinger Tyrant"},{top:256,left:1099,name:"Phantasmagoric Aberration"},{top:186,left:1220,name:"Dimentional Riftwalker"},{top:48,left:670,name:"Harbinger Stormer"}]},I:{name:"Invidia",boss1:"The Sun / The Devil",boss2:"The Star",width:"884",stars:[]},J:{name:"Joculator",boss1:"The Moon / Justice",boss2:"Death",width:"884",stars:[]},K:{name:"Kalendae",boss1:"Death",boss2:"The Hanged Man / The Tower",width:"884",stars:[]},L:{name:"Liber",boss1:"Temperance / Judgment",boss2:"The Star",width:"884",stars:[]},M:{name:"Mundus",boss1:" ",boss2:" ",boss3:" ",boss4:" ",width:960,stars:[]}},b={components:{Checkbox:p,StarsLine:h},mixins:[f],head:{title:"Granblue.Party - Replicard Sandbox Maps",desc:"View Replicard Sandbox Maps with loots, colors, and progression for each node",image:"https://www.granblue.party/img/card_replicard.jpg",keywords:"Replicard, Sandbox, Maps, Arcarum, Evoker, Eletio, Faym, Goliath, Harbinger, Invidia, Joculator, Kalendae, Liber, Mundus"},data(){return{show_help:!1,show_loot:!0,show_progression:!0,scrollbar:!0,show_tab:"E"}},methods:{save(){this.axios.post("/replicard/save",this.progression).then(s=>this.$store.dispatch("addMessage",{message:"Data saved successfully"})).catch(s=>this.$store.dispatch("addAxiosErrorMessage",s))},loadServerData(){if(this.data_fetched===!1)return this.axios.get("/replicard/load").then(s=>{s.data!==null&&(this.$set(this,"progression",s.data),this.data_fetched=!0)}).catch(s=>this.$store.dispatch("addAxiosErrorMessage",s))},loadData(){if(this.isUserLogged)this.loadServerData();else{this.$store.commit("replicard/resetReplicard");const s=r.fetchValue("progression");s!==void 0&&(this.progression=s)}}},computed:{isUserLogged(){return this.$store.getters.getUserId!==null},getZones(){return _},currentZone(){return this.getZones[this.show_tab]},currentZoneWidth(){return"min-width: "+this.currentZone.width+"px;"},progression:{get(){return this.$store.state.replicard.progression},set(s){this.$store.commit("replicard/setReplicardData",s)}},data_fetched:{get(){return this.$store.state.replicard.data_fetched},set(s){this.$store.commit("replicard/setReplicardFetched",s)}}},watch:{"$store.getters.getUserId"(){this.data_fetched=!1,this.loadData()},show_loot(){r.setValue("show_loot",this)},show_tab(){r.setValue("show_tab",this)},progression:{handler(){this.isUserLogged||r.setValue("progression",this)},deep:!0}},serverPrefetch(){if(this.isUserLogged)return this.loadServerData()},mounted(){r.getValue(this,"show_loot"),r.getValue(this,"show_tab"),this.loadData()}};var g=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col"},[t("h1",{staticClass:"self-center mb-8"},[e._v("Replicard Sandbox Maps")]),t("div",{staticClass:"flex flex-row flex-wrap mb-4 items-center gap-4"},[t("button",{staticClass:"btn",class:e.show_help?"btn-blue":"btn-white",on:{click:function(a){e.show_help=!e.show_help}}},[t("fa-icon",{staticClass:"text-xl",attrs:{icon:["fas","info-circle"]}}),e._v(" Usage ")],1),t("checkbox",{model:{value:e.show_loot,callback:function(a){e.show_loot=a},expression:"show_loot"}},[e._v("Show loot")]),t("checkbox",{model:{value:e.show_progression,callback:function(a){e.show_progression=a},expression:"show_progression"}},[e._v("Show progression")]),e.show_progression&&e.isUserLogged?t("button",{staticClass:"btn btn-blue",on:{click:function(a){return e.save()}}},[t("fa-icon",{staticClass:"text-xl",attrs:{icon:["fas","save"]}}),e._v(" Save progression ")],1):e._e()],1),e.show_help?t("div",{staticClass:"bg-secondary self-center rounded p-4 mb-2"},[t("h2",[e._v("Number of fights")]),t("p",{staticClass:"pb-4"},[e._v(" The number above each circle represents the number of fights needed to guarantee the appearance of a Defender. ")]),t("h2",[e._v("To fight the Boss")]),e._m(0),t("h2",[e._v("Track your progression")]),e._m(1)]):e._e(),t("span",{staticClass:"flex flex-col w-full"},[t("div",{staticClass:"self-start flex flex-row flex-wrap border-primary border-b font-bold w-full"},e._l(e.getZones,function(a,o){return t("a",{key:o,staticClass:"px-4 py-2 text-primary cursor-pointer rounded-t",class:e.show_tab===o?"bg-secondary":"",on:{click:function(n){e.show_tab=o}}},[e._v(" "+e._s(a.name)+" ")])}),0),e.currentZone.boss4?t("div",[t("div",[t("span",{staticClass:"text-pink-500"},[e._v("Pink:")]),e._v(" "+e._s(e.currentZone.boss1)+" (Gospel of Egeiro)")]),t("div",[t("span",{staticClass:"text-emerald-500"},[e._v("Green:")]),e._v(" "+e._s(e.currentZone.boss2)+" (Gospel of Genea)")]),t("div",[t("span",{staticClass:"text-amber-500"},[e._v("Yellow:")]),e._v(" "+e._s(e.currentZone.boss3)+" (Gospel of Thysia)")]),t("div",[t("span",{staticClass:"text-blue-500"},[e._v("Blue:")]),e._v(" "+e._s(e.currentZone.boss4)+" (Gospel of Analipsis)")])]):e.currentZone.boss3?t("div",[t("div",[t("span",{staticClass:"text-pink-500"},[e._v("Pink:")]),e._v(" "+e._s(e.currentZone.boss1)+" (Organ)")]),t("div",[t("span",{staticClass:"text-emerald-500"},[e._v("Green:")]),e._v(" "+e._s(e.currentZone.boss2)+" (Rib)")]),t("div",[t("span",{staticClass:"text-amber-500"},[e._v("Yellow:")]),e._v(" "+e._s(e.currentZone.boss3)+" (Core)")])]):t("div",[t("div",[t("span",{staticClass:"text-pink-500"},[e._v("Pink:")]),e._v(" "+e._s(e.currentZone.boss1)+" (Invocation)")]),t("div",[t("span",{staticClass:"text-emerald-500"},[e._v("Green:")]),e._v(" "+e._s(e.currentZone.boss2)+" (Masquerade)")])]),t("div",{staticClass:"relative bg-primary overflow-x-auto"},[e.show_loot?t("picture",{staticClass:"block",style:e.currentZoneWidth},[t("source",{attrs:{type:"image/webp",srcset:"/img/arcarum/replicard_"+e.show_tab+"_loot.webp"}}),t("img",{attrs:{src:"/img/arcarum/replicard_"+e.show_tab+"_loot.png"}})]):e._e(),t("picture",{class:e.show_loot?"absolute top-0 left-0":"",style:e.currentZoneWidth},[t("source",{attrs:{type:"image/webp",srcset:"/img/arcarum/replicard_"+e.show_tab+".webp"}}),t("img",{attrs:{src:"/img/arcarum/replicard_"+e.show_tab+".png"}})]),e.show_progression?t("span",{staticClass:"absolute top-0 left-0",style:e.currentZoneWidth},[t("div",{staticClass:"relative"},e._l(e.currentZone.stars,function(a,o){return t("stars-line",{key:o,staticClass:"absolute bg-black",style:"top: "+a.top+"px; left: "+a.left+"px;",attrs:{base:2,extra:3,current:e.progression[e.show_tab][o],max:3,title:a.name},on:{"update:current":function(n){return e.$set(e.progression[e.show_tab],o,n)}}})}),1)]):e._e()])])])},v=[function(){var s=this,e=s._self._c;return e("p",{staticClass:"pb-4"},[s._v(" To fight the Boss of each zone, you need components dropped by Defenders."),e("br"),s._v(" Chain fights of a node until the Defender appears."),e("br"),s._v(" Each component is indicated in parentheses after the color of its Defender. ")])},function(){var s=this,e=s._self._c;return e("p",{staticClass:"pb-4"},[s._v(" Click on the stars to track your progression."),e("br"),s._v(" Each node has 3 quests. Add a star when you complete the corresponding quest."),e("br"),s._v(" Mouseover the stars to see the name of the monster. ")])}],w=c(b,g,v,!1,null,null);const S=w.exports;export{S as default};