PageSourceSearch

https://brewerbookstore.com/chunk-GPDPMTDJ.js

js brewerbookstore.com collected 2026-10-08 09:23:30 UTC 14,256 bytes, 1 lines download raw bytes

1import{a as ue}from"./chunk-62CSEJMX.js";import{a as me}from"./chunk-4XPRXFKB.js";import"./chunk-TJAATH3J.js";import{a as re,b as ae,c as se,d as ce}from"./chunk-FGHVNPAC.js";import{a as pe}from"./chunk-TKR4IMKF.js";import{a as de,b as le}from"./chunk-G2TZFKRQ.js";import{Ca as oe,d as K,e as X,g as L,i as Z,wa as ie,xa as $}from"./chunk-BRBR4SKB.js";import{$a as M,Ab as d,Ac as q,Bb as _,Cb as k,Da as o,Db as E,Ea as p,Fc as W,Ic as H,Jc as J,Kb as z,La as B,Mc as Y,Nd as te,Ra as v,Sd as ne,Va as I,Wa as m,bc as A,cb as P,da as f,db as y,dc as U,ea as C,eb as s,ec as Q,fb as r,gb as w,kb as S,lc as N,mc as G,nb as b,pb as u,qd as ee,ta as F,ub as j,vb as V,wb as D,za as R,zb as T}from"./chunk-2PNQIH3N.js";var Ce=["products"],_e=(n,c)=>c.slug,ge=(n,c)=>c.key,xe=(n,c)=>c.href,ve=n=>({strike:n});function Me(n,c){if(n&1&&(s(0,"a",6),d(1),s(2,"span",14),d(3),r()()),n&2){let e=c.$implicit,t=c.$index;m("routerLink","/merchandise/"+e.slug),o(),k("",t!==0?" / ":""," "),o(2),_(e.name)}}function Pe(n,c){n&1&&(s(0,"h2"),d(1,"Featured Products"),r())}function ye(n,c){if(n&1){let e=S();s(0,"button",15),b("click",function(){let i=f(e).$implicit,a=u();return C(a.setSort(i.key))})("keyup.enter",function(){let i=f(e).$implicit,a=u();return C(a.setSort(i.key))}),d(1),r()}if(n&2){let e=c.$implicit;I("aria-label","sort order: "+e.val),o(),_(e.val)}}function be(n,c){if(n&1){let e=S();s(0,"button",15),b("click",function(){let i=f(e).$implicit,a=u();return C(a.setSort(i.key))})("keyup.enter",function(){let i=f(e).$implicit,a=u();return C(a.setSort(i.key))}),d(1),r()}if(n&2){let e=c.$implicit;I("aria-label","sort order: "+e.val),o(),_(e.val)}}function Oe(n,c){n&1&&w(0,"loading")}function we(n,c){if(n&1&&(s(0,"a",6),d(1),r()),n&2){let e=c.$implicit;m("routerLink","/merchandise/"+e.slug),o(),_(e.name)}}function Se(n,c){if(n&1&&(s(0,"div",17)(1,"strong",24),d(2,"Categories"),r(),P(3,we,2,2,"a",6,_e),r()),n&2){let e=u(2);o(3),y(e.subcategories)}}function ke(n,c){if(n&1&&(s(0,"strong",28)(1,"span",30),d(2,"new sale priced from "),r(),d(3),r()),n&2){let e=u().$implicit;o(3),_(e.salePriceRange)}}function $e(n,c){if(n&1){let e=S();s(0,"a",19,2)(2,"img",25),b("error",function(i){f(e);let a=u(2);return C(a.getAltImage(i))}),r(),s(3,"p",26),d(4),r(),s(5,"div",27),v(6,ke,4,1,"strong",28),s(7,"span",29)(8,"span",30),d(9),r(),d(10),r()()()}if(n&2){let e=c.$implicit,t=c.$index;m("routerLink",e.href),o(2),m("src",e.imageUrl,R)("alt",e.altTag||e.name),I("loading",t<6?null:"lazy"),o(),m("title",e.name),o(),_(e.name),o(2),M(e.salePriceRange?6:-1),o(),m("ngClass",z(10,ve,e.salePriceRange)),o(2),_(e.salePriceRange?"price reduced from ":"prices starting at "),o(),_(e.priceRange)}}function Ie(n,c){n&1&&(s(0,"div",20)(1,"h2"),d(2,"No results found"),r(),w(3,"img",31),r())}function Te(n,c){n&1&&w(0,"loading")}function Ee(n,c){if(n&1){let e=S();s(0,"div",16),v(1,Se,5,0,"div",17),s(2,"div",18),P(3,$e,11,12,"a",19,xe),v(5,Ie,4,0,"div",20)(6,Te,1,0,"loading"),r()(),s(7,"div",21)(8,"button",22),b("click",function(){f(e);let i=u();return C(i.setPage(i.activePage-1))}),d(9," Prev Page "),r(),s(10,"div",23)(11,"span")(12,"strong"),d(13),r()()(),s(14,"button",22),b("click",function(){f(e);let i=u();return C(i.setPage(i.activePage+1))}),d(15," Next Page "),r()()}if(n&2){let e=u();o(),M(e.subcategories&&e.subcategories.length?1:-1),o(2),y(e.products),o(2),M(!e.totalProductsCount&&!e.loading?5:e.loading?6:-1),o(3),m("disabled",e.activePage<2),o(5),E("PAGE ",e.activePage," of ",e.pageNumbers,""),o(),m("disabled",+e.activePage>=e.pageNumbers)}}var it=(()=>{class n{constructor(e,t,i,a,g,x,h,l,O,he,fe){this._titleService=e,this._route=t,this._router=i,this._searchService=a,this._location=g,this._appService=x,this._liveAnnouncer=h,this._seoService=l,this._jsonLdService=O,this.document=he,this.platformId=fe,this.sortBys=[{key:"featured",val:"Featured"},{key:"lowestprice",val:"Lowest Price"},{key:"highestprice",val:"Highest Price"}],this._resolvedDataUsed=!1}ngOnDestroy(){this._jsonLdService.removeSchema()}ngOnInit(){this._route.paramMap.subscribe(e=>{this.categorySlug=e.get("category"),this._route.queryParams.subscribe(t=>{this.loading=!0,this.activePage=+t.page||1,this.sort=this.sortBys.findIndex(i=>i.key===t.sort)>-1?t.sort:this.sortBys[0].key,this.featuredOnly=!!t.featured,!this._resolvedDataUsed&&this._route.snapshot.data.searchResult?(this._resolvedDataUsed=!0,this._processResult(this._route.snapshot.data.searchResult)):this._getProducts()})})}focusFirstResult(){setTimeout(()=>{if(G(this.platformId)&&this.products&&this.productDivs){let e=this.productDivs.first;e&&e.nativeElement.focus()}},200)}get FindActiveSort(){return this.sortBys.find(e=>e.key==this.sort).val}_getProducts(){this.loading=!0,this.products=null,this._searchService.getProducts(this.activePage,null,this.categorySlug,null,this.sort).subscribe(e=>{this._processResult(e)})}_processResult(e){if(e){this.categoryName=e.webCategoryName,this.parentCategories=e.parentCategories,this.subcategories=e.categories,this.products=e.products.map(l
1=>(l.imageUrl=l.imageUrl?l.imageUrl.endsWith($)?l.imageUrl:l.imageUrl+$:null,l)),this.totalProductsCount=e.totalProductsCount,this.focusFirstResult(),this.announceResultsCount(),this.pageNumbers=Math.ceil(e.totalProductsCount/30),this.loading=!1;let t=this._appService.siteResources.locationName,i=this.activePage>1?` - Page ${this.activePage}`:"",a=new le;a.title=`${this.categoryName} Products${i} | ${t}`,a.description=this._generateCategoryDescription(this.categoryName,t)+(this.activePage>1?` Page ${this.activePage} of ${this.pageNumbers}.`:""),a.author=t;let g="https://"+(this._appService.siteResources.siteUrl||this.document.location.host);a.url=g+this.document.location.pathname,a.image=this._appService.siteResources.logoImage?.url||null,a.type="website",a.siteName=t,this._seoService.setData(a);let x=[],h=[{"@type":"ListItem",position:1,name:t,item:g}];this.parentCategories?.length&&this.parentCategories.forEach((l,O)=>{h.push({"@type":"ListItem",position:O+2,name:l.name,item:`${g}/merchandise/${l.slug}`})}),h.push({"@type":"ListItem",position:h.length+1,name:this.categoryName}),x.push({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:h}),this.products?.length&&x.push({"@context":"https://schema.org","@type":"ItemList",name:`${this.categoryName} Products`,numberOfItems:this.totalProductsCount,itemListElement:this.products.slice(0,30).map((l,O)=>({"@type":"ListItem",position:O+1,url:`${g}${l.href}`}))}),this._jsonLdService.setSchema(x)}else this._router.navigate(["/"])}setPage(e){this._router.navigate([`merchandise/${this.categorySlug}`],{queryParams:{page:e,sort:this.sort}})}setSort(e){this._router.navigate([`merchandise/${this.categorySlug}`],{queryParams:{q:this.search,page:this.activePage,sort:e}})}goBack(){this._location.back()}getAltImage(e){let t=e.target.src;if(t&&t.includes($)){e.target.src=t.replace($,"");return}e.target.src="/assets/noimage.png"}announceResultsCount(){}_generateCategoryDescription(e,t){let i=[`Discover ${e} at ${t}. Find the perfect items to show your school spirit and support your campus.`,`Browse our ${e.toLowerCase()} collection at ${t}. Quality products for students, fans, and alumni.`,`Shop ${e} from ${t}. Your official source for campus gear and merchandise.`,`Explore ${e.toLowerCase()} at ${t}. Great selection, great prices, shipped right to you.`,`Find ${e.toLowerCase()} and more at ${t}. Everything you need to represent your school.`,`${t} ${e} - Official campus merchandise. Shop our curated selection today.`,`Looking for ${e.toLowerCase()}? ${t} has you covered with authentic campus products.`,`Get your ${e.toLowerCase()} from ${t}. The official store for all your campus needs.`],g=e.split("").reduce((x,h)=>x+h.charCodeAt(0),0)%i.length;return i[g]}static{this.\u0275fac=function(t){return new(t||n)(p(q),p(W),p(H),p(ue),p(U),p(ie),p(ee),p(de),p(pe),p(A),p(F))}}static{this.\u0275cmp=B({type:n,selectors:[["app-search"]],viewQuery:function(t,i){if(t&1&&j(Ce,5),t&2){let a;V(a=D())&&(i.productDivs=a)}},decls:27,vars:9,consts:[["menu","matMenu"],["frmenu","matMenu"],["products",""],["id","page"],["id","header"],[1,"cookie-crumbs"],[3,"routerLink"],[1,"hr"],[1,"results-count"],[2,"flex","1"],["mat-button","",1,"sb",3,"matMenuTriggerFor"],["mat-menu-item",""],[1,"fr"],["mat-stroked-button","",3,"matMenuTriggerFor"],[1,"name"],["mat-menu-item","",3,"click","keyup.enter"],["id","body"],["id","categories"],["id","products"],["tabindex","0",1,"product",3,"routerLink"],["id","no-results"],[1,"footer"],["mat-stroked-button","",3,"click","disabled"],[1,"pages"],[1,"title"],[3,"error","src","alt"],[1,"product-description",3,"title"],[1,"p-row"],[1,"price","bold"],[1,"price",3,"ngClass"],[1,"sr-only"],["src","/assets/noresults.png","alt","No results illustration"]],template:function(t,i){if(t&1&&(s(0,"div",3)(1,"div",4)(2,"div",5),P(3,Me,4,3,"a",6,_e),r(),s(5,"div",7)(6,"h1"),d(7),r(),v(8,Pe,2,0,"h2"),s(9,"p",8),d(10),r(),w(11,"div",9),s(12,"button",10),d(13),r(),s(14,"mat-menu",null,0),P(16,ye,2,2,"button",11,ge),r()(),s(18,"div",12)(19,"button",13),d(20),r(),s(21,"mat-menu",null,1),P(23,be,2,2,"button",11,ge),r()()(),v(25,Oe,1,0,"loading")(26,Ee,16,6),r()),t&2){let a=T(15),g=T(22);o(3),y(i.parentCategories),o(4),E("Shop ",i.categoryName,"",i.activePage>1?" - Page "+i.activePage:"",""),o(),M(i.featuredOnly?8:-1),o(2),k(" ",(i.totalProductsCount||0)+" Result"+(i.totalProductsCount==1?"":"s")," "),o(2),m("matMenuTriggerFor",a),o(),k("Sort By: ",i.FindActiveSort,""),o(3),y(i.sortBys),o(3),m("matMenuTriggerFor",g),o(),k("Sort By: ",i.FindActiveSort,""),o(3),y(i.sortBys),o(2),M(i.loading?25:26)}},dependencies:[N,Q,Y,J,oe,ne,te,me,ce,ae,re,se],styles:["#progress-bar-wrapper[_ngcontent-%COMP%]{height:4px}#page[_ngcontent-%COMP%]{min-height:calc(100vh - 128px)}#header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:24px}#header[_ngcontent-%COMP%]   .cookie-crumbs[_ngcontent-%COMP%]{width:100%;padding:0 24px;box-sizing:border-box;height:20px}#header[_ngcontent-%COMP%]   .cookie-crumbs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}#header[_ngcontent-%COMP%]   .cookie-crumbs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-decoration:underline;font-style:italic;opacity:.87}#header[_ngcontent-%COMP%]   .cookie-crumbs[_ngcontent-%COMP%]   .go-back[_ngcontent-%COMP%]{margin-right:auto}#header[_ngcontent-%COMP%]   .hr[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}#header[_ngcontent-%COMP%]   .fr[_ngcontent-%COMP%]{display:none}#header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2.5rem;margin:12px}.results-count[_ngcontent-%COMP%]{font-size:.78125rem;margin:0 24px}#body[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 12px;margin-top:24px}#categories[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:4px;border:1px solid #e0e0e0;margin:0 0 auto;padding:14px 24px;flex:1;min-width:220px;position:sticky;top:40px}#categories[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:5px}#categories[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer;padding:5px 0}#categories[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#00f!important}#products[_ngcontent-%COMP%]{padding:12px;text-align:center;width:calc(100vw - 308px);box-sizing:border-box;min-width:280px;flex:100}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]{border-radius:4px;width:296px;margin:12px;overflow:hidden;padding-bottom:16px;text-align:center;transition:all .18s ease-in-out;cursor:pointer;flex-direction:column;align-items:center;display:inline-flex}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:265px;max-width:265px;object-fit:contain;margin:24px 0;border-radius:4px;overflow:hidden}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0 8px;text-align:left;font-size:.875rem;line-height:24px;max-width:80%;word-wrap:break-word;overflow-wrap:break-word}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-description[_ngcontent-%COMP%]{font-size:.875rem;line-height:24px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%;white-space:normal;box-sizing:border-box;min-height:48px}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{color:#212121;font-size:.875rem}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-size:1.0625rem}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .strike[_ngcontent-%COMP%]{text-decoration:line-through;font-style:italic;opacity:.87;margin-left:12px}#products[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]:hover{color:#00f!important;background:#f4f4f480!important}a[_ngcontent-%COMP%]{text-decoration:none;color:#424242}a[_ngcontent-%COMP%]:visited{color:#424242}.footer[_ngcontent-%COMP%]{margin:48px 8px;display:flex;justify-content:center}.footer[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]{font-size:.875rem;display:flex;align-items:center;justify-content:center;margin:0 5%}.footer[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:24px;min-width:20px;padding:0;width:20px;line-height:24px;margin-bottom:1px}.footer[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]   .not-a-button[_ngcontent-%COMP%]{pointer-events:none}.footer[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{font-weight:700;background:#0000000d}@media screen and (max-width: 960px){#body[_ngcontent-%COMP%], #products[_ngcontent-%COMP%]{padding:0}#header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:22px}#header[_ngcontent-%COMP%]   .cookie-crumbs[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.results-count[_ngcontent-%COMP%]{margin-bottom:8px}#categories[_ngcontent-%COMP%]{position:relative!important;top:0!important;margin:12px 12px auto}.sb[_ngcontent-%COMP%]{display:none}.fr[_ngcontent-%COMP%]{display:flex!important;width:100%;justify-content:space-evenly;margin:12px 0 4px}}"],data:{animation:[K("fadeIn",[Z(":enter",[L({opacity:0}
1),X("250ms 200ms ease-out",L({opacity:1}))])])]}})}}return n})();export{it as MerchandiseComponent};

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.