PageSourceSearch

https://www.thebeerstore.ca/_next/static/chunks/3095-3866dc4e8294da92.js

js thebeerstore.ca collected 2026-10-01 12:00:12 UTC 11,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3095],{1078:(e,t,l)=>{l.d(t,{HrBackgroundDiv:()=>v,HrModuleContent:()=>h});var n=l(95155),r=l(3998),a=l(54354),i=l(32285),o=l(52619),s=l.n(o),d=l(12115),c=l(5767),u=l(86849),x=l(10529),f=l(36703),m=l(64269);function p(e){var t;let{entry:l,data:o,page:d}=e,c=(0,i.v)();return(0,n.jsx)(r.$,{asChild:!0,className:"rounded-full text-[14px] font-sans font-bold leading-[20px] py-[10px] px-[20px] uppercase h-[40px] ".concat(null==l||null==(t=l.googleAnalytics)?void 0:t.className),children:(0,n.jsx)(s(),{onClick:()=>(function(e){var t;let n={eventName:a.kG.BANNER_CLICK,section:"occasions"===d?a.HI.OCCASION_BANNER:a.HI.HOME_PAGE,name:e,id:0,position:(null==l||null==(t=l.googleAnalytics)?void 0:t.position)||0,location_id:Number((0,x.GF)().storeId)};(0,f.QY)(n,c)})(null==o?void 0:o.cardTitle),"aria-label":null==l?void 0:l.buttonAriaLabel,href:(null==l?void 0:l.redirectUrl)?null==l?void 0:l.redirectUrl:"#",children:null==l?void 0:l.buttonText})})}function v(e){let{doc:t,page:l}=e,r=(0,u.Qf)({maxWidth:"768px"}),o=(0,i.v)(),m=(0,d.useRef)(null);(0,c.B)(m,()=>{var e;let n={eventName:a.kG.BANNER_VIEW,section:"occasions"===l?a.HI.OCCASION_BANNER:a.HI.HOME_PAGE,name:null==t?void 0:t.cardTitle,position:(null==t||null==(e=t.googleAnalytics)?void 0:e.position)||0,location_id:Number((0,x.GF)().storeId)};(0,f.QY)(n,o)});let p=e=>{var t,l,a,i;let{doc:o}=e;return(0,n.jsx)("div",{className:" flex items-center bg-cover ",style:{backgroundImage:"url(".concat(r?null==o||null==(l=o.cardMedia)||null==(t=l.thumbnailMobile)?void 0:t.url:null==o||null==(i=o.cardMedia)||null==(a=i.thumbnailDesktop)?void 0:a.url,")"),backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat",paddingBottom:"".concat((null==o?void 0:o.colorPalette)?null==o?void 0:o.colorPalette:"")}})};return(0,n.jsx)("div",{className:"".concat(null==t?void 0:t.cardCategory," bgSection"),ref:m,children:(null==t?void 0:t.redirectUrl)?(0,n.jsx)(s(),{href:null==t?void 0:t.redirectUrl,"aria-label":null==t?void 0:t.cardTitle,onClick:()=>(function(e){var n;let r={eventName:a.kG.BANNER_CLICK,section:"occasions"===l?a.HI.OCCASION_BANNER:a.HI.HOME_PAGE,name:e,id:0,position:(null==t||null==(n=t.googleAnalytics)?void 0:n.position)||0,location_id:Number((0,x.GF)().storeId)};(0,f.QY)(r,o)})(null==t?void 0:t.cardTitle),target:"_blank",children:(0,n.jsx)(p,{doc:t})}):(0,n.jsx)(p,{doc:t})})}function h(e){var t,l,r,o,s;let{cardBodyReactComponets:u,cardBodyShortContent:v,doc:h,formContentStyle:g,page:b}=e,N=(0,d.useRef)(null),C=(0,i.v)();(0,d.useEffect)(()=>{(0,m.YJ)();let e=()=>{(0,m.YJ)()};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),(0,c.B)(N,()=>{var e;let t={eventName:a.kG.BANNER_VIEW,section:"occasions"===b?a.HI.OCCASION_BANNER:a.HI.HOME_PAGE,name:null==h?void 0:h.cardTitle,position:(null==h||null==(e=h.googleAnalytics)?void 0:e.position)||0,location_id:Number((0,x.GF)().storeId)};(0,f.QY)(t,C)});let w=null==h?void 0:h.googleAnalytics;return(0,n.jsxs)("div",{className:g,ref:N,id:"occasions"===b?"occasions-video":"",children:[u,(null==h||null==(l=h.cardButtonCollection)||null==(t=l.items)?void 0:t.length)?(0,n.jsx)(p,{entry:null==h||null==(r=h.cardButtonCollection)?void 0:r.items[0],data:h,page:b}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)("div",{className:"".concat(null==w||null==(o=w.CARD_BODY_SHORT_CONTENT)?void 0:o.className),style:null==w||null==(s=w.CARD_BODY_SHORT_CONTENT)?void 0:s.styles,children:v})]})}},11647:(e,t,l)=>{l.d(t,{E:()=>o});var n=l(95155);l(12115);var r=l(83101),a=l(64269);let i=(0,r.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:l,...r}=e;return(0,n.jsx)("div",{className:(0,a.cn)(i({variant:l}),t),...r})}},41186:(e,t,l)=>{l.d(t,{default:()=>a});var n=l(95155),r=l(15239);let a=function(e){let{onClick:t,disabled:l,style:a}=e;return(0,n.jsx)("div",{className:"absolute left-[-10px] top-[50%] translate-y-[-50%] before:'' prev-slide z-[1] cursor-pointer ".concat(l?"opacity-40":"opacity-100"),style:{...a},onClick:t,onKeyDown:e=>{"Enter"===e.key&&t()},children:(0,n.jsx)(r.default,{src:"/images/abtest-Arrow-prev.svg",alt:"prev",width:48,height:48,className:"prev-slider-img max-w-none customtabIndex",tabIndex:0})})}},47202:(e,t,l)=>{l.d(t,{default:()=>a});var n=l(95155),r=l(15239);let a=function(e){let{onClick:t,disabled:l,style:a}=e;return(0,n.jsx)("div",{className:"absolute right-[-10px] translate-y-[-50%] top-[50%] next-slide cursor-pointer next-sl
1ider-btn ".concat(l?"opacity-40":"opacity-100"),style:{...a},onClick:t,onKeyDown:e=>{"Enter"===e.key&&t()},children:(0,n.jsx)(r.default,{src:"/images/abtest-Arrow-next.svg",alt:"next",width:48,height:48,className:"next-slider-img max-w-none customtabIndex",tabIndex:0})})}},48973:(e,t,l)=>{l.d(t,{I:()=>n});let n=e=>{var t=null==e?void 0:e.match(/^(?!mailto:|tel:)(?:https?:\/\/)?(?:www\.)?([^\/]+)/);return!!t&&!!(t.length>1)}},56001:(e,t,l)=>{l.d(t,{Sliders:()=>a});var n=l(95155);l(12115);var r=l(12389);l(94960),l(4720);let a=e=>{let{className:t,children:l,...a}=e;return(0,n.jsx)(r.A,{className:t,...a,children:l})}},57268:(e,t,l)=>{l.d(t,{b:()=>x});var n=l(12115),r=l(97602),a=l(95155),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0}),s="horizontal",d=["horizontal","vertical"],c=n.forwardRef(o(function(e,t){let{decorative:l,orientation:n=s,...i}=e,o=u(n)?n:s;return(0,a.jsx)(r.sG.div,{"data-orientation":o,...l?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},...i,ref:t})},"Separator"));function u(e){return d.includes(e)}o(u,"isValidOrientation");var x=c},59791:(e,t,l)=>{l.d(t,{$:()=>r});var n=l(12115);let r=(e,t)=>(0,n.useMemo)(()=>({is:e!=t,save:(t-e).toFixed(2),price:null==t?void 0:t.toFixed(2),salePrice:null==e?void 0:e.toFixed(2)}),[t,e])},83589:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(95155);l(12115);var r=l(56659);function a(e){let{ImgPath:t,heading:l,className:a,children:i}=e;return(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsxs)("div",{className:"inline-flex items-stretch ".concat(a||""),children:[t&&(0,n.jsx)("div",{className:" mr-[10px]  xs:mr-[20px]  md:mr-[15px]  lg:mr-[20px]  min-w-[40px]  xs:min-w-[64px]  md:min-w-[50px]  lg:min-w-[64px]  max-w-[40px]  xs:max-w-[64px] md:max-w-[50px] lg:max-w-[64px] ",children:(0,n.jsx)(r.default,{src:t,height:64,width:64,alt:"beermug"})}),(0,n.jsx)("h2",{className:"text-[32px] md:text-[28px] lg:text-[40px] xl:text-[48px] font-sans leading-[42px] text-[#000] m-0 flex items-center",children:l})]}),i&&(0,n.jsx)("div",{className:"flex flex-row w-full xs:ml-[84px]  md:ml-[65px]  lg:ml-[84px] ",children:i})]})}},86259:(e,t,l)=>{l.d(t,{Separator:()=>o});var n=l(95155),r=l(12115),a=l(57268),i=l(64269);let o=r.forwardRef((e,t)=>{let{className:l,orientation:r="horizontal",decorative:o=!0,...s}=e;return(0,n.jsx)(a.b,{ref:t,decorative:o,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",l),...s})});o.displayName=a.b.displayName},86948:(e,t,l)=>{l.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>s,Zp:()=>i,aR:()=>o,wL:()=>u});var n=l(95155),r=l(12115),a=l(64269);let i=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col justify-between rounded-[10px] border-[#D6D6D6] border-solid border text-card-foreground shadow-sm",l),...r})});i.displayName="Card";let o=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col",l),...r})});o.displayName="CardHeader";let s=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,n.jsx)("h2",{ref:t,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",l),...r})});s.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,n.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",l),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)(l),...r})});c.displayName="CardContent";let u=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex",l),...r})});u.displayName="CardFooter"},97690:(e,t,l)=>{l.d(t,{default:()=>h});var n=l(95155);l(12115);var r=l(86948),a=l(56659),i=l(3998),o=l(64269),s=l(11647),d=l(52619),c=l.n(d),u=l(83088),x=l(54354),f=l(36703),m=l(32285),p=l(48973),v=l(10529);let h=e=>{let{title:t,description:l,image:d,content:h,buttonText:g,onClickButton:b,badgeText:N,buttonIcon:C,className:w,asLink:j,buttonLink:I,from:y,index:_,buttons:E,buttonAriaLabel:A,buttonTarget:k}=e;(0,u.A)("main-info","info-height");let R=(0,m.v)();return(0,n.jsxs)(r.Zp,{onClick:function(){let e={eventName:"home"==y?x.HI.ARTICLE_CLICK:"feasts"==y?x.kG.TOP_ARTICLE_CLICK:"brewer"==y?x.kG.BREWER_CLICK:x.kG.TOP_ARTICLE_CLICK,section:"home"==y?x.HI.HOMEPAGE_ARTICLE:"feasts"==y?x.HI.TOP_ARTICLE_CLICK:"brewer"==y?x.HI.BREWER_CLICK:x.HI.TOP_ARTICLE_CLICK,name:t,position:_&&_||1,location_id:Number((0,v.GF)().storeId)};(0,f.QY)(e,R)},className:(0,o.cn)(" flex flex-col border border-solid rounded-[10px] relative overflow-hidden",w),children:[(0,n.jsx)(r.aR,{className:"info-header",children:d&&(0,n.jsx)(a.default,{src:null==d?void 0:d.url,alt:null==d?void 0:d.alt,width:null==d?void 0:d.width,height:null==d?void 0:d.height,style:{width:"100%",height:"auto"},className:"info-image"})}),(0,n.jsxs)(r.Wu,{className:"py-4 px-2 info-content !p-[20px] xsm:!
1p-[30px]",children:[t&&(0,n.jsx)("div",{children:(0,n.jsx)(r.ZB,{className:"text-[20px] leading-[25px] 2xs:leading-[30px] font-sans font-bold info-title eq-height tracking-[0.16px] mb-[20px]",children:t})}),l&&(0,n.jsx)("div",{children:(0,n.jsx)(r.BT,{className:"mb-[20px] text-[13px] font-sans font-normal eq-height info-description ",children:l})}),N&&(0,n.jsx)(s.E,{variant:"default",className:"info-badge bg-white  rounded-[3px] uppercase text-black hover:bg-White px-2 py-1 leading-4 justify-center absolute left-4 top-4",children:N}),h,(0,n.jsx)(r.wL,{className:"flex flex-row gap-[10px] xl:gap-[60px] p-0 info-footer  ".concat((null==E?void 0:E.length)?"md:min-h-[90px] md-820:min-h-[60px]":"md:min-h-max"),children:(null==E?void 0:E.length)?E.map((e,t)=>(0,n.jsx)(i.$,{asChild:j,className:" ".concat(j?"tbs-link-text p-0 h-auto ":"w-full rounded-[100px]"," text-[11px] font-sans font-bold"),onClick:b,variant:j?"link":"default",children:(0,n.jsx)(n.Fragment,{children:j?(0,n.jsx)(c(),{href:"".concat((null==e?void 0:e.longRedirectUrl)||(null==e?void 0:e.redirectUrl)),className:"p-0 text-[#D06F1A] hover:underline ".concat((null==E?void 0:E.length)>1?"basis-1/2 text-center":""),target:(null==e?void 0:e.buttonTarget)||(0,p.I)(null==e?void 0:e.redirectUrl)?"_blank":"_self","aria-label":null==e?void 0:e.buttonAriaLabel,prefetch:!1,children:null==e?void 0:e.buttonText}):null==e?void 0:e.buttonText})},t)):g&&(0,n.jsx)(i.$,{asChild:j,className:"".concat(j?"tbs-link-text p-0 h-auto ":"w-full rounded-[100px]"," text-[11px] font-sans font-bold"),onClick:b,variant:j?"link":"default",children:(0,n.jsxs)(n.Fragment,{children:[j?(0,n.jsx)(c(),{href:"".concat(I),className:"p-0 text-[#D06F1A] hover:underline",target:k||(0,p.I)(I)?"_blank":"_self","aria-label":A,prefetch:!1,children:g}):g,C]})})})]})]})}}}]);

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.