PageSourceSearch

https://usasoftballofvirginia.com/chunk-U3Z2JJSW.js

js usasoftballofvirginia.com collected 2026-09-28 19:01:10 UTC 16,411 bytes, 1 lines download raw bytes

1import{a as H}from"./chunk-GI6FU5SO.js";import{a as G}from"./chunk-QT3Z36MV.js";import{a as q}from"./chunk-AHP6CBJJ.js";import{a as U}from"./chunk-KJKRX6VS.js";import{n as D,q as A}from"./chunk-YWHNFDXQ.js";import{a as Y}from"./chunk-DPVJW3LI.js";import{i as L,n as j}from"./chunk-GW33KQPR.js";import{T as B,U as R}from"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import"./chunk-TPES7EAS.js";import{D as v,F as N,k as V}from"./chunk-TMOIAHHX.js";import{$a as O,Fb as S,Ib as p,Jb as _,Kb as z,Sa as k,Wa as d,Xa as g,_a as M,aa as E,ab as s,bb as c,bc as $,cb as r,db as u,dc as I,ga as a,kb as x,o as m,p as h,qb as P,sa as b,tb as l,za as F}from"./chunk-DJNWGYMM.js";import{ea as w,f as T}from"./chunk-VOZAGDK7.js";import"./chunk-E5QWB6YB.js";var J=e=>["/pages/shop/product",e],K=(e,i)=>i._key,Q=(e,i)=>i.product._key,W=(e,i)=>i.label;function X(e,i){e&1&&u(0,"rp-state",2)}function Z(e,i){if(e&1){let t=x();c(0,"div",3)(1,"rp-state",4)(2,"button",5),P("click",function(){m(t);let o=l();return h(o.load())}),p(3,"Try again"),r()()()}if(e&2){let t=l();a(),s("body",t.errorMessage)}}function tt(e,i){e&1&&(c(0,"div",3),u(1,"rp-state",6),r())}function et(e,i){if(e&1){let t=x();c(0,"button",11),P("click",function(){let o=m(t).$implicit,C=l(4);return h(C.filterBy(o._key))}),p(1),r()}if(e&2){let t=i.$implicit,n=l(4);S("cat-chip--on",n.activeCategory===t._key),k("aria-pressed",n.activeCategory===t._key),a(),_(t.name)}}function nt(e,i){if(e&1){let t=x();c(0,"div",7)(1,"div",9)(2,"div",10)(3,"button",11),P("click",function(){m(t);let o=l(3);return h(o.filterBy(null))}),p(4,"All"),r(),M(5,et,2,4,"button",12,K),r(),c(7,"div",13),p(8),r()()()}if(e&2){let t=l(3);a(3),S("cat-chip--on",t.activeCategory===null),k("aria-pressed",t.activeCategory===null),a(2),O(t.categories),a(3),_(t.countLabel)}}function ot(e,i){if(e&1){let t=x();c(0,"div",3)(1,"rp-state",14)(2,"button",5),P("click",function(){m(t);let o=l(3);return h(o.filterBy(null))}),p(3,"Show all"),r()()()}}function it(e,i){if(e&1&&u(0,"img",18),e&2){let t=l().$implicit;s("src",t.product.image,E)}}function at(e,i){e&1&&(c(0,"div",19)(1,"mat-icon"),p(2,"star"),r(),c(3,"span"),p(4,"Team Store"),r()())}function rt(e,i){if(e&1&&(c(0,"span",26),p(1),r()),e&2){let t=i.$implicit;s("ngClass","rpui-chip--"+t.kind),a(),_(t.label)}}function ct(e,i){if(e&1&&(c(0,"div",21),M(1,rt,2,2,"span",26,W),r()),e&2){let t=l().$implicit;a(),O(t.chips)}}function lt(e,i){if(e&1&&(c(0,"div",22),p(1),r()),e&2){let t=l().$implicit;a(),_(t.categoryName)}}function pt(e,i){e&1&&(c(0,"small"),p(1,"From"),r())}function dt(e,i){e&1&&(c(0,"div",25),p(1,"View product"),r())}
1function gt(e,i){if(e&1&&(c(0,"a",16)(1,"div",17),d(2,it,1,1,"img",18)(3,at,5,0,"div",19),r(),c(4,"div",20),d(5,ct,3,0,"div",21),d(6,lt,2,1,"div",22),c(7,"div",23),p(8),r(),c(9,"div",24),d(10,pt,2,0,"small"),p(11),r(),d(12,dt,2,0,"div",25),r()()),e&2){let t=i.$implicit,n=l(4);S("card--out",t.soldOut)("card--feature",n.gridMode==="solo"),s("routerLink",I(12,J,t.product._key)),a(2),g(t.product.image?2:3),a(3),g(t.chips.length?5:-1),a(),g(t.categoryName?6:-1),a(2),_(t.product.name),a(2),g(t.fromPrice?10:-1),a(),z(" ",t.priceLabel," "),a(),g(n.gridMode==="solo"?12:-1)}}function st(e,i){if(e&1&&(c(0,"div",8),M(1,gt,13,14,"a",15,Q),r()),e&2){let t=l(3);s("ngClass","grid--"+t.gridMode),a(),O(t.visible)}}function _t(e,i){if(e&1&&(d(0,nt,9,4,"div",7),d(1,ot,4,0,"div",3)(2,st,3,1,"div",8)),e&2){let t=l(2);g(t.showSubbar?0:-1),a(),g(t.visible.length===0?1:2)}}function Ct(e,i){if(e&1&&d(0,tt,2,0,"div",3)(1,_t,3,2),e&2){let t=l();g(t.cards.length===0?0:1)}}var Et=(()=>{class e{api;cart;currency;loading=!0;errorMessage="";storeName="";categories=[];cards=[];visible=[];activeCategory=null;cartCount=0;_unsubscribeAll=new T;constructor(t,n,o){this.api=t,this.cart=n,this.currency=o}ngOnInit(){this.cart.count.pipe(w(this._unsubscribeAll)).subscribe(t=>this.cartCount=t),this.load()}load(){this.loading=!0,this.errorMessage="",this.api.get("Shop/catalog",!1).pipe(w(this._unsubscribeAll)).subscribe({next:t=>{this.storeName=t?.storeName?.trim()||"",this.categories=t?.categories||[],this.cards=(t?.products||[]).map(n=>this.toCard(n)),this.applyFilter(),this.loading=!1},error:t=>{this.errorMessage=t.error?t.error:"The shop couldn't be loaded. Please try again.",this.loading=!1}})}get gridMode(){let t=this.visible.length;return t===1?"solo":t===2?"two":t===3?"three":"set"}get showSubbar(){return this.categories.length>=2&&this.cards.length>=2}get countLabel(){let t=this.cards.length,n=this.visible.length,o=t===1?"item":"items";return n===t?`${t} ${o}`:`${n} of ${t} ${o}`}filterBy(t){this.activeCategory=t,this.applyFilter()}applyFilter(){this.visible=this.activeCategory===null?this.cards:this.cards.filter(t=>t.product.categoryID===this.activeCategory)}toCard(t){let n=(t.variants||[]).map(f=>f.price??0),o=n.length?Math.min(...n):0,C=n.length?Math.max(...n):0,y=t.variants||[];return{product:t,categoryName:this.categories.find(f=>f._key===t.categoryID)?.name||"",priceLabel:n.length?this.money(o):"\u2014",fromPrice:n.length>0&&o!==C,soldOut:y.length>0&&y.every(f=>f.soldOut),chips:this.chips(t,y)}}money(t){return t===0?"No charge":this.currency.transform(t,"USD")||""}chips(t,n){let o=[];return n.length&&n.every(C=>C.soldOut)&&o.push({label:"Sold out",kind:"neutral"}),H(t)&&o.push({label:"Pre-sale",kind:"info"}),t.pickupDetails?.trim()&&o.push({label:"Pickup available",kind:"info"}),t.freeShipping&&o.push({label:"Free shipping",kind:"ok"}),o.slice(0,2)}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||e)(b(U),b(Y),b(v))};static \u0275cmp=F({type:e,selectors:[["shop-catalog"]],features:[$([v])],decls:5,vars:5,consts:[["id","ShopCatalogPage",1,"page-layout","simple","fullwidth"],["eyebrow","Team Store",3,"title","cartCount"],["mode","loading","body","Loading the shop"],[1,"content","p-24","mx-auto"],["mode","error","title","The shop isn't available",3,"body"],["mat-flat-button","","color","primary",3,"click"],["mode","empty","icon","storefront","title","Nothing for sale yet","body","This shop doesn't have any products right now. Check back soon."],[1,"shop-subbar"],[1,"grid",3,"ngClass"],[1,"shop-subbar__inner"],["role","group","aria-label","Filter by category",1,"cat-filter"],["type","button",1,"cat-chip",3,"click"],["type","button",1,"cat-chip",3,"cat-chip--on"],["aria-live","polite",1,"shop-subbar__count"],["mode","empty","icon","search_off","title","Nothing in this category","body","Try another category, or show everything in the shop."],[1,"card",3,"card--out","card--feature","routerLink"],[1,"card",3,"routerLink"],[1,"card__media"],["alt","","loading","lazy",3,"src"],["aria-hidden","true",1,"card__plate"],[1,"card__body"],[1,"rpui-chip-set"],[1,"card__eyebrow"],[1,"card__name"],[1,"card__price"],[1,"card__cta"],[1,"rpui-chip",3,"ngClass"]],template:function(n,o){n&1&&(c(0,"div",0),u(1,"shop-masthead",1),d(2,X,1,0,"rp-state",2),d(3,Z,4,1,"div",3),d(4,Ct,2,1),r()),n&2&&(a(),s("title",o.storeName||"Shop")("cartCount",o.cartCount),a(),g(o.loading?2:-1),a(),g(!o.loading&&o.errorMessage?3:-1),a(),g(!o.loading&&!o.errorMessage?4:-1))},dependencies:[N,V,j,L,A,D,R,B,q,G],styles:['[_ngcontent-%COMP%]:root{--rp-nav
1y-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}[_nghost-%COMP%]{display:block;width:100%}#ShopCatalogPage[_ngcontent-%COMP%]{background:#f7f9fc;min-height:100%}#ShopCatalogPage[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:100%;max-width:1280px}#ShopCatalogPage[_ngcontent-%COMP%]   .shop-subbar[_ngcontent-%COMP%]{background:#eef2f6;border-bottom:1px solid #dce5ee}#ShopCatalogPage[_ngcontent-%COMP%]   .shop-subbar__inner[_ngcontent-%COMP%]{max-width:1280px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}#ShopCatalogPage[_ngcontent-%COMP%]   .shop-subbar__count[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#143b67;white-space:nowrap}#ShopCatalogPage[_ngcontent-%COMP%]   .cat-filter[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}#ShopCatalogPage[_ngcontent-%COMP%]   .cat-chip[_ngcontent-%COMP%]{min-height:32px;padding:0 14px;border:1px solid #244f7e;border-radius:999px;background:#fff;color:#143b67;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:background-color .18s ease,color .18s ease}#ShopCatalogPage[_ngcontent-%COMP%]   .cat-chip[_ngcontent-%COMP%]:hover{background:#f2f7fc}#ShopCatalogPage[_ngcontent-%COMP%]   .cat-chip--on[_ngcontent-%COMP%]{background:#1a3668;border-color:#1a3668;color:#fff;box-shadow:0 1px 3px #1a36681f}#ShopCatalogPage[_ngcontent-%COMP%]   .cat-chip[_ngcontent-%COMP%]:focus-visible{outline:2px solid #244f7e;outline-offset:2px}#ShopCatalogPage[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{display:grid;gap:24px;max-width:1280px;margin:32px auto;padding:0 24px}#ShopCatalogPage[_ngcontent-%COMP%]   .grid--solo[_ngcontent-%COMP%]{grid-template-columns:1fr;max-width:940px}#ShopCatalogPage[_ngcontent-%COMP%]   .grid--two[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}#ShopCatalogPage[_ngcontent-%COMP%]   .grid--three[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1120px}#ShopCatalogPage[_ngcontent-%COMP%]   .grid--set[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(248px,1fr))}@media screen and (max-width:959px){#ShopCatalogPage[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{gap:16px;padding:0 16px;margin:24px auto}#ShopCatalogPage[_ngcontent-%COMP%]   .grid--three[_ngcontent-%COMP%], #ShopCatalogPage[_ngcontent-%COMP%]   .grid--set[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}}@media screen and (max-width:380px){#ShopCatalogPage[_ngcontent-%COMP%]   .grid[_ngcontent-%COMP%]{grid-template-columns:1fr!important}}#ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#fff;border:1px solid #dce5ee;border-radius:8px;box-shadow:0 1px 3px #0f1f350d;overflow:hidden;text-decoration:none;color:inherit;transition:transform .18s cubic-bezier(.2,.7,.3,1),box-shadow .18s cubic-bezier(.2,.7,.3,1),border-color .18s ease}#ShopCatalogPage[_ngcontent-%COMP%]   .card__media[_ngcontent-%COMP%]{position:relative;aspect-ratio:4/5;background:#eef2f6;border-bottom:1px solid #e8edf3;display:grid;place-items:center;overflow:hidden}#ShopCatalogPage[_ngcontent-%COMP%]   .card__media[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;inset:0;margin:auto;max-width:calc(100% - 24px);max-height:calc(100% - 24px);object-fit:contain;display:block}#ShopCatalogPage[_ngcontent-%COMP%]   .card__plate[_ngcontent-%COMP%]{width:100%;height:100%;background:#10243f;border-radius:6px;display:grid;place-content:center;justify-items:center;gap:8px;padding:16px}#ShopCatalogPage[_ngcontent-%COMP%]   .card__plate[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:26px;width:26px;height:26px;color:#fff}#ShopCatalogPage[_ngcontent-%COMP%]   .card__plate[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#fff;text-align:center}#ShopCatalogPage[_ngcontent-%COMP%]   .card__plate[_ngcontent-%COMP%]:after{content:"";width:28px;height:3px;background:#c8102e}#ShopCatalogPage[_ngcontent-%COMP%]   .card__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:18px;flex:1 1 auto}#ShopCatalogPage[_ngcontent-%COMP%]   .card__eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1.3;color:#667085}#ShopCatalogPage[_ngcontent-%COMP%]   .card__name[_ngcontent-%COMP%]{font-size:15px;font-weight:700;letter-spacing:-.005em;line-height:1.35;color:#122033;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}#ShopCatalogPage[_ngcontent-%COMP%]   .card__price[_ngcontent-%COMP%]{margin-top:auto;padding-top:12px;border-top:1px solid #e8edf3;font-size:17px;font-weight:800;letter-spacing:-.01em;line-height:1.2;font-variant-numeric:tabular-nums;color:#10243f}#ShopCatalogPage[_ngcontent-%COMP%]   .card__price[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{margin-right:4px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#667085;vertical-align:1px}#ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:hover, #ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:focus-visible{transform:translateY(-2px);box-shadow:0 1px 3px #0f1f350a,0 8px 32px #0f1f3512;border-color:#244f7e}#ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:focus-visible{outline:2px solid #244f7e;outline-offset:2px}#ShopCatalogPage[_ngcontent-%COMP%]   .card--out[_ngcontent-%COMP%]   .card__media[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:grayscale(100%);opacity:.55}#ShopCatalogPage[_ngcontent-%COMP%]   .card--out[_ngcontent-%COMP%]   .card__price[_ngcontent-%COMP%]{color:#143b67}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]{flex-direction:row;border-radius:16px;box-shadow:0 1px 3px #0f1f350a,0 8px 32px #0f1f3512}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__media[_ngcontent-%COMP%]{flex:0 0 420px;aspect-ratio:1/1;border-bottom:0;border-right:1px solid #e8edf3}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__body[_ngcontent-%COMP%]{padding:32px;gap:12px;justify-content:center}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__name[_ngcontent-%COMP%]{font-size:22px;font-weight:800;letter-spacing:-.01em;line-height:1.25;-webkit-line-clamp:3}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__price[_ngcontent-%COMP%]{margin-top:0;padding:10px 16px;border-top:0;align-self:flex-start;border-radius:6px;background:#10243f;
1color:#fff;font-size:22px;letter-spacing:.005em}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__price[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:#dce5ee}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__cta[_ngcontent-%COMP%]{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1a3668}@media screen and (max-width:959px){#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]{flex-direction:column}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__media[_ngcontent-%COMP%]{flex:none;aspect-ratio:4/3;border-right:0;border-bottom:1px solid #e8edf3}#ShopCatalogPage[_ngcontent-%COMP%]   .card--feature[_ngcontent-%COMP%]   .card__body[_ngcontent-%COMP%]{padding:18px}}@media(prefers-reduced-motion:reduce){#ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{transition:box-shadow 1ms linear,border-color 1ms linear}#ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:hover, #ShopCatalogPage[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:focus-visible{transform:none;box-shadow:0 1px 3px #0f1f350a,0 8px 32px #0f1f3512;border-color:#244f7e}#ShopCatalogPage[_ngcontent-%COMP%]   .cat-chip[_ngcontent-%COMP%]{transition:none}}']})}return e})();export{Et as ShopCatalogComponent};

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.