PageSourceSearch

https://axethrowing.org/assets/hostsSponsors-legacy-4TQrqaNh.js

js axethrowing.org collected 2026-09-24 11:41:22 UTC 11,965 bytes, 1 lines download raw bytes

1System.register(["./imageURLreturn-legacy-Bzwbdrej.js","./index-legacy-BtJkYB7P.js","./customInput-legacy-coPiPdsV.js","./hostAppBar-legacy-Dd_Gp-C8.js","./croppie-legacy-CdXO-5LP.js","./customSearch-legacy-DCvJFPQA.js","./drawerIcon-legacy-BXXlzKEg.js"],function(o,t){"use strict";var e,a,l,i,s,n,r,c,d,u,p,g,m,h,v,f,b,S,w,y,k,x,D,_,C,V,I;return{setters:[o=>{e=o.i},o=>{a=o._,l=o.V,i=o.M,s=o.E,n=o.u,r=o.k,c=o.m,d=o.n,u=o.f,p=o.t,g=o.q,m=o.r,h=o.x,v=o.e,f=o.C,b=o.a7,S=o.$,w=o.g,y=o.y,k=o.F,x=o.v,D=o.U,_=o.a1,C=o.z},o=>{V=o.C},o=>{I=o.H},null,null,null],execute:function(){var t=document.createElement("style");t.textContent="#formSponsor[data-v-f6aadb53]{height:100%;overflow-y:auto}.logo-container[data-v-f6aadb53]{position:relative;overflow:hidden;padding-bottom:100%;cursor:pointer;background-color:var(--theme-primary);box-shadow:0 0 2px #000}.logo-container img[data-v-f6aadb53]{position:absolute;top:0;left:0;width:100%;height:auto}.logo-container>div[data-v-f6aadb53]{z-index:2;width:40px;height:40px;padding:5px;bottom:10px;right:10px;position:absolute;background-color:rgba(255,255,255,.5);border-radius:50%;opacity:1;text-align:center}.sponsorInfo[data-v-f6aadb53]{display:flex;justify-content:center}@media screen and (max-width: 600px){.sponsorInfo[data-v-f6aadb53]{flex-direction:column}}.icon-more .v-btn__content[data-v-7fad7869]{color:#a4afc3;position:relative;left:-10px}.icon-more[data-v-7fad7869]{font-size:22px}.item[data-v-7fad7869]{border:solid 1px var(--theme-toolbar-border);text-transform:uppercase}.item button i[data-v-7fad7869]{color:#a4afc3}.card-img[data-v-7fad7869]{position:relative;background-size:cover;width:56px;height:56px;display:inline-block;vertical-align:middle}.star[data-v-7fad7869]{width:20px;vertical-align:middle;margin:0 12px}.status[data-v-7fad7869]{color:#7282a0}.status i[data-v-7fad7869]{font-style:normal;font-size:24px;line-height:1px;vertical-align:sub}.status.active[data-v-7fad7869]{color:#219653}.list-img[data-v-7fad7869]{background-repeat:no-repeat;background-size:contain;background-position:0%}.list-layout[data-v-7fad7869]{overflow:hidden;color:#fff;color:var(--theme-text);padding:8px;height:80px}.list-layout-header[data-v-7fad7869]{position:sticky;z-index:2;top:64px;background-color:#000;background-color:var(--theme-background);height:auto}.body[data-v-7fad7869]{font-weight:300;font-style:italic}.stripe[data-v-7fad7869]{background-color:rgba(0,0,0,.1)}.v-icon.text-primary.material-icons[data-v-7fad7869]{color:#2f27d4!important}\n/*$vite$:1*/",document.head.appendChild(t);const L={key:0},U={key:1},$={class:"d-flex justify-center align-center"},j=["src"],B={class:"d-flex justify-end mx-3"},E={key:0},A={src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fstar-full.svg?alt=media&token=c90fcbf9-b740-4df3-b233-c0e4685647f5",class:"star"},W={src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fstar.svg?alt=media&token=bbdad6df-5233-4ebe-b355-d65efb9dee26",class:"star"},z={key:0},F={key:1};o("default",a({components:{HostAppBar:I,addSponsor:a({props:{sponsor:Object},emits:["closeDialog"],components:{CustomInput:V,imageURLreturn:e},data(){return{imgDialog:{show:!1,windowWidth:350,currentImage:"",updateDBlocation:"/trash",updateDBitem:"img",updateStorageLocation:"/venues/"+this.venueStore.venue.locationSlug+"/sponsors/"+this.generalStore.dateToday+"/",ratioWidth:"1",ratioHeight:"1",saveWidth:"800",saveFormat:"jpeg"},localSponsor:{content:{}},validationErrors:{title:"",link:""}}},mounted(){this.localSponsor=this.sponsor},watch:{sponsor(){this.localSponsor=this.sponsor}},setup:()=>({venueStore:n(),generalStore:r()}),methods:{isValid(){const o=this.localSponsor.content.title||"",t=this.localSponsor.content.link||"";return!o.length&&(this.validationErrors.title="Please fill up this field"),!t.length&&(this.validationErrors.link="URL is required"),Boolean(o.length&&t.length)},closeImageDialog(o){void 0!==o&&(this.localSponsor.content.img=o),this.imgDialog.show=!1},hasImage(){return void 0!==this.localSponsor.content.img},save(){if(this.isValid())return this.hasImage()?void("new"===this.localSponsor.type?l(i("/venues/"+this.venueStore.venue.locationSlug+"/sponsors"),{img:this.localSponsor.content.img,active:this.localSponsor.content.active,link:this.localSponsor.content.link,title:this.localSponsor.content.title,fav:this.localSponsor.fav,date:Date.now()}).then(()=>{this.$emit("closeDialog")}).catch(o=>{this._console(o)}):s(i(`/venues/${this.venueStore.venue.locationSlug}/sponsors/${this.localSponsor.content[".key"]}`),{img:this.localSponsor.content.img,active:this.localSponsor.content.active,link:this.localSponsor.content.link,title:this.localSponsor.content.title,date:Date.now()}).then(()=>{this.$emit("closeDialog")}).catch(o=>{this._console(o)}
1)):(alert("You must upload an image"),void(this.imgDialog.show=!0))}}},[["render",function(o,t,e,a,l,i){const s=m("v-icon"),n=m("v-btn"),r=m("v-toolbar-title"),y=m("v-spacer"),k=m("v-toolbar"),x=m("v-col"),D=m("v-row"),_=m("custom-input"),C=m("v-checkbox"),V=m("v-card-text"),I=m("imageURLreturn"),B=m("v-dialog"),E=m("v-card");return w(),c(E,{tile:"",style:{"background-color":"var(--theme-dialog)"}},{default:d(()=>[u(n,{icon:"",class:"closeAbsolute",onClick:t[0]||(t[0]=t=>o.$emit("closeDialog"))},{default:d(()=>[u(s,null,{default:d(()=>[...t[9]||(t[9]=[h("mdi-close",-1)])]),_:1})]),_:1}),u(k,null,{default:d(()=>[u(r,null,{default:d(()=>["new"===l.localSponsor.type?(w(),v("span",L,"Add Sponsor")):(w(),v("span",U,"Edit Sponsor"))]),_:1}),u(y)]),_:1}),p("form",{id:"formSponsor",onSubmit:t[7]||(t[7]=S(o=>i.save(),["prevent"]))},[u(V,null,{default:d(()=>[u(D,{class:"sponsorInfo"},{default:d(()=>[u(x,{cols:"4",class:"offset-xs1"},{default:d(()=>[u(D,null,{default:d(()=>[u(x,{cols:"12",class:"pa-3"},{default:d(()=>[t[11]||(t[11]=p("div",{class:"input-label mb-1"},"Sponsor Image",-1)),p("div",{class:"logo-container",onClick:t[1]||(t[1]=o=>l.imgDialog.show=!0)},[p("div",$,[u(s,null,{default:d(()=>[...t[10]||(t[10]=[h("mdi-camera-plus",-1)])]),_:1})]),f(p("img",{src:l.localSponsor.content.img,alt:"logo"},null,8,j),[[b,void 0!==l.localSponsor.content.img]]),f(p("div",null," Click to Upload Image ",512),[[b,""===l.localSponsor.content.img]])])]),_:1})]),_:1})]),_:1}),u(x,{cols:"6"},{default:d(()=>[u(x,{cols:"12",class:"pa-3"},{default:d(()=>[u(_,{"top-text":"Text*",modelValue:l.localSponsor.content.title,"onUpdate:modelValue":t[2]||(t[2]=o=>l.localSponsor.content.title=o),"bottom-warning":l.validationErrors.title,onKeyUp:t[3]||(t[3]=o=>l.validationErrors.title="")},null,8,["modelValue","bottom-warning"])]),_:1}),u(x,{cols:"12",class:"pa-3"},{default:d(()=>[u(_,{"top-text":"URL (ex. http://www.mywebsite.com)*",modelValue:l.localSponsor.content.link,"onUpdate:modelValue":t[4]||(t[4]=o=>l.localSponsor.content.link=o),"bottom-warning":l.validationErrors.link,onKeyUp:t[5]||(t[5]=o=>l.validationErrors.link="")},null,8,["modelValue","bottom-warning"])]),_:1}),u(x,{cols:"12",class:"px-3"},{default:d(()=>[u(C,{dark:"",color:"var(--clr-blue)",label:"Active","false-value":"Disabled","true-value":"Active",modelValue:l.localSponsor.content.active,"onUpdate:modelValue":t[6]||(t[6]=o=>l.localSponsor.content.active=o)},null,8,["modelValue"])]),_:1}),u(n,{color:"primary",class:"mt-4",type:"submit",form:"formSponsor"},{default:d(()=>[...t[12]||(t[12]=[h("Save",-1)])]),_:1})]),_:1})]),_:1})]),_:1})],32),l.imgDialog.show?(w(),c(B,{key:0,modelValue:l.imgDialog.show,"onUpdate:modelValue":t[8]||(t[8]=o=>l.imgDialog.show=o),scrollable:"",width:this.imgDialog.windowWidth,style:{background:"var(--theme-dialog)"}},{default:d(()=>[u(I,{currentImage:l.imgDialog.currentImage,ratioWidth:l.imgDialog.ratioWidth,ratioHeight:l.imgDialog.ratioHeight,updateDBlocation:l.imgDialog.updateDBlocation,updateDBitem:l.imgDialog.updateDBitem,updateStorageLocation:l.imgDialog.updateStorageLocation,saveWidth:l.imgDialog.saveWidth,saveFormat:l.imgDialog.saveFormat,onCloseImageDialog:i.closeImageDialog},null,8,["currentImage","ratioWidth","ratioHeight","updateDBlocation","updateDBitem","updateStorageLocation","saveWidth","saveFormat","onCloseImageDialog"])]),_:1},8,["modelValue","width"])):g("",!0)]),_:1})}],["__scopeId","data-v-f6aadb53"]])},data:()=>({activeTab:0,search:"",imgDialog:{show:!1},sponsor:{content:{active:"Active"},show:!1,fav:!1,type:"new"},sponsors:[]}),setup:()=>({venueStore:n()}),computed:{filteredList(){return[...this.sponsors.map(o=>{if(o.fav)return o}).filter(o=>o),...this.sponsors.map(o=>{if(!o.fav)return o}).filter(o=>o)].filter(o=>void 0!==this.search?o.active.toLowerCase().includes(this.search.toLowerCase())||o.link.toLowerCase().includes(this.search.toLowerCase())||o.title.toLowerCase().includes(this.search.toLowerCase()):o)}},methods:{favEvent(o){s(i(`/venues/${this.venueStore.venue.locationSlug}/sponsors/${o.id}`),{fav:!o.fav}).catch(o=>{this._console(o)})},showMore(o){this.filteredList[o].more=!this.filteredList[o].more,this.$forceUpdate()},confirmDelete:()=>confirm("Are you sure you want to delete?"),deleteSponsor(o){this.confirmDelete()&&D(i(`/venues/${this.venueStore.venue.locationSlug}/sponsors/${o.id}`))},edit(o){this.sponsor.content={...o},this.sponsor.type="edit",this.sponsor.show=!0,this.sponsor.content[".key"]=o.id},closeDialog(o){this.sponsor.content={active:"Active"},this.sponsor.type="new",this.sponsor.show=!1},getSponsors(){this.$databaseBind("sponsors",i("/venues/"+this.venueStore.venue.locationSlug+"/sponsors"))}}
1,mounted(){this.getSponsors()}},[["render",function(o,t,e,a,l,i){const s=m("host-app-bar"),n=m("v-btn"),r=m("v-col"),D=m("v-icon"),V=m("v-row"),I=m("addSponsor"),L=m("v-dialog");return w(),v("div",null,[u(s,{title:"Sponsors",modelValue:l.search,"onUpdate:modelValue":t[0]||(t[0]=o=>l.search=o)},null,8,["modelValue"]),p("div",B,[u(n,{color:" primary",class:y(["btn-width",o.$vuetify.display.xs?"w-100 mx-0":"w-auto"]),onClick:t[1]||(t[1]=o=>l.sponsor.show=!0)},{default:d(()=>[...t[3]||(t[3]=[h("Add Sponsor",-1)])]),_:1},8,["class"])]),0===l.activeTab?(w(),v("span",E,[u(V,{class:"ma-0"},{default:d(()=>[(w(!0),v(k,null,x(i.filteredList,(o,e)=>(w(),c(r,{key:o.id,cols:"12",md:"6",class:"pa-2"},{default:d(()=>[u(V,{class:"align-center item ma-1 pa-2",style:{"background-color":"white"}},{default:d(()=>[u(r,{cols:"12",sm:"8",class:"pa-2 list-title"},{default:d(()=>[u(n,{variant:"flat",color:"none",onClick:t=>i.favEvent(o)},{default:d(()=>[f(p("img",A,null,512),[[b,o.fav]]),f(p("img",W,null,512),[[b,!o.fav]])]),_:2},1032,["onClick"]),p("div",{class:"card-img mr-2",style:_({"background-image":"url("+o.img+")"})},null,4),p("span",null,C(o.title),1)]),_:2},1024),u(r,{cols:"6",sm:"3",style:{"white-space":"nowrap"},class:"px-2 text-right"},{default:d(()=>[o.more?(w(),v("div",z,[u(n,{icon:"",onClick:t=>i.edit(o),style:{height:"100%",margin:"auto 0"}},{default:d(()=>[u(D,{color:"primary"},{default:d(()=>[...t[4]||(t[4]=[h("mdi-pencil",-1)])]),_:1})]),_:1},8,["onClick"]),u(n,{icon:"",style:{height:"100%",margin:"auto 15px"},onClick:S(t=>i.deleteSponsor(o),["stop"])},{default:d(()=>[u(D,{color:"#e1233d"},{default:d(()=>[...t[5]||(t[5]=[h("mdi-delete",-1)])]),_:1})]),_:1},8,["onClick"])])):(w(),v("div",F,[u(n,{variant:"outlined",class:y(["status",{active:"Active"==o.active}])},{default:d(()=>[h(C(o.active),1)]),_:2},1032,["class"])]))]),_:2},1024),u(r,{cols:"6",sm:"1",class:"text-center px-2"},{default:d(()=>[u(n,{icon:"",variant:"flat",onClick:S(o=>i.showMore(e),["stop"])},{default:d(()=>[...t[6]||(t[6]=[p("i",{class:"icon-more"},null,-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):g("",!0),u(L,{fullscreen:"",transition:"dialog-bottom-transition",scrollable:"",modelValue:l.sponsor.show,"onUpdate:modelValue":t[2]||(t[2]=o=>l.sponsor.show=o)},{default:d(()=>[u(I,{sponsor:l.sponsor,onCloseDialog:i.closeDialog},null,8,["sponsor","onCloseDialog"])]),_:1},8,["modelValue"])])}],["__scopeId","data-v-7fad7869"]]))}}});

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.