PageSourceSearch

https://silversmithbrewing.com/wp-content/plugins/woocommerce/asse…?ver=1eae45888b94b40e8502

js silversmithbrewing.com collected 2026-10-07 13:14:03 UTC 3,395 bytes, 1 lines download raw bytes

1import*as e from"@wordpress/interactivity";var t={d:(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const r=(c={getConfig:()=>e.getConfig,getContext:()=>e.getContext,getServerContext:()=>e.getServerContext,store:()=>e.store},o={},t.d(o,c),o),i={adminUrl:"",countries:[],countryData:{},currency:{code:"USD",precision:2,symbol:"$",symbolPosition:"left",decimalSeparator:".",priceFormat:"%1$s%2$s",thousandSeparator:","},currentUserId:0,currentUserIsAdmin:!1,homeUrl:"",locale:{siteLocale:"en_US",userLocale:"en_US",weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},orderStatuses:[],placeholderImgSrc:"",siteTitle:"",storePages:[],wcAssetUrl:"",wcVersion:"",wpLoginUrl:"",wpVersion:""},n="object"==typeof window.wcSettings?window.wcSettings:{},a={...i,...n};var c,o;a.currency={...i.currency,...a.currency},a.locale={...i.locale,...a.locale};const s=(0,r.getConfig)("woocommerce").currency,l={...s,suffix:(m=s.symbol,p=s.symbolPosition,{left:"",left_space:"",right:m,right_space:" "+m}[p]||""),prefix:(e=>({left:e,left_space:e+" ",right:"",right_space:""}[s.symbolPosition]||""))(s.symbol)};var m,p;const u=(e={})=>({...l,...e}),g=(e,t)=>{if(""===e||void 0===e)return"";const r="number"==typeof e?e:parseInt(e,10);if(!Number.isFinite(r))return"";const i=u(t),{minorUnit:n,prefix:a,suffix:c,decimalSeparator:o,thousandSeparator:s}=i,l=r/10**n,{beforeDecimal:m,afterDecimal:p}=(e=>{const t=e.split(".");return{beforeDecimal:t[0],afterDecimal:t[1]||""}})(l.toString()),g=`${a}${((e,t)=>e.replace(/\B(?=(\d{3})+(?!\d))/g,t))(m,s)}${((e,t,r)=>e?`${t}${e.padEnd(r,"0")}`:r>0?`${t}${"0".repeat(r)}`:"")(p,o,n)}${c}`;return g},{store:f,getContext:v,getServerContext:d,getConfig:x}=r;function y(e,t,r){return e>=t&&e<=r}const b={state:{get minPrice(){const{minRange:e}=d?d():v(),t=P.activeFilters.find(e=>"price"===e.type);if(t){const[r]=t.value.split("|");return r?parseInt(r,10):e}return e},get maxPrice(){const{maxRange:e}=d?d():v(),t=P.activeFilters.find(e=>"price"===e.type);if(t){const[,r]=t.value.split("|");return r?parseInt(r,10):e}return e},get formattedMinPrice(){return g(P.minPrice,u({minorUnit:0}))},get formattedMaxPrice(){return g(P.maxPrice,u({minorUnit:0}))}},actions:{getActivePriceAndLabel(e,t){const{minRange:r,maxRange:i}=d?d():v(),{activePriceLabelTemplates:n}=x();return e&&e>r&&t&&t<i?{activeValue:`${e}|${t}`,activeLabel:n.minAndMax.replace("{{min}}",g(e,u({minorUnit:0}))).replace("{{max}}",g(t,u({minorUnit:0})))}:e&&e>r?{activeValue:`${e}|`,activeLabel:n.minOnly.replace("{{min}}",g(e,u({minorUnit:0})))}:t&&t<i?{activeValue:`|${t}`,activeLabel:n.maxOnly.replace("{{max}}",g(t,u({minorUnit:0})))}:{activeValue:"",activeLabel:""}},setPrice:(e,t)=>{const r=v(),{minRange:i,maxRange:n}=d?d():v(),a={min:P.minPrice,max:P.maxPrice};"min"===e&&t&&y(t,i,n)&&t<P.maxPrice&&(a.min=t),"max"===e&&t&&y(t,i,n)&&t>P.minPrice&&(a.max=t),a.min===i&&(a.min=0),a.max===n&&(a.max=0),r.activeFilters=r.activeFilters.filter(e=>"price"!==e.type);const{activeValue:c,activeLabel:o}=S.getActivePriceAndLabel(a.min,a.max);if(c){const e={type:"price",value:c,activeLabel:o};r.activeFilters.push(e)}},setMin:e=>{const t=parseInt(e.target.value,10);S.setPrice("min",t)},setMax:e=>{const t=parseInt(e.target.value,10);S.setPrice("max",t)}}},{state:P,actions:S}=f("woocommerce/product-filters",b);

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.