1import{a as v}from"./chunk-LFS73GUO.js";import{n as g,q as f,t as b}from"./chunk-7Z6M46HO.js";import{Db as a,Eb as i,Fb as s,Kb as l,Sc as h,Ub as c,Wb as p,ab as r,eb as d,jb as m}from"./chunk-QN5QKGAF.js";var F=(()=>{class o{constructor(n){this.route=n,this.sound="",this.audio=null,this.files=[{ID:"fail",Name:"Fail.",File:"puzzlefailure.mp3"},{ID:"saturated-study",Name:"Saturated Study",File:"gameplay4.mp3"},{ID:"huephoria",Name:"Huephoria",File:"gameplay6.mp3"},{ID:"themesplosion",Name:"Themesplosion",File:"maintheme.mp3"},{ID:"the-buswick",Name:"The Buswick Theme",File:"the-buswick.mp3"}]}ngOnInit(){this.audio=document.getElementById("audio"),this.route.paramMap.subscribe(n=>{let e=n.get("sound");if(e){let t=this.files.find(u=>u.ID===e);t&&(this.audio.src=`sounds/${t.File}`,this.sound=t.Name)}else this.audio.src=`sounds/${this.files[0].File}`,this.sound=this.files[0].Name})}ngOnDestroy(){this.audio&&(this.audio.pause(),this.audio.src="")}play(){this.audio&&(this.audio.paused?this.audio.play():this.audio.pause())}static{this.\u0275fac=function(e){return new(e||o)(d(g))}}static{this.\u0275cmp=m({type:o,selectors:[["page-buttons"]],decls:14,vars:1,consts:[["id","PAGE_Buttons"],[1,"container"],[1,"jumbotron","text-center"],["routerLink","/home",1,"mx-auto","d-inline-block"],["src","images/logo.png",1,"img-fluid","animated","bounceInDown"],[1,"row"],[1,"col-12"],[1,"card","radius-lg"],[1,"card-header","text-center"],[1,"card-body","text-center"],["id","soundButton",1,"text-center","mx-auto",3,"click"],["id","audio","src",""]],template:function(e,t){e&1&&(a(0,"article",0)(1,"div",1)(2,"header",2)(3,"a",3),s(4,"img",4),i()(),a(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),c(9),i(),a(10,"div",9)(11,"div",10),l("click",function(){return t.play()}),i(),s(12,"audio",11),i()()()(),s(13,"brand-footer"),i()()),e&2&&(r(9),p(" ",t.sound," "))},dependencies:[h,b,f,v],styles:["#PAGE_Buttons[_ngcontent-%COMP%] #soundButton[_ngcontent-%COMP%]{width:260px;height:200px;background-image:url(/images/buttonup.png);background-size:contain;background-repeat:no-repeat;background-position:center;cursor:pointer;margin:0 auto}#PAGE_Buttons[_ngcontent-%COMP%] #soundButton[_ngcontent-%COMP%]:active{background-image:url(/images/buttondown.png)}.jumbotron[_ngcontent-%COMP%]{background-color:var(--gray-darker)}"]})}}return o})();export{F as ButtonsComponent};
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.