PageSourceSearch

https://www.buffalowildwings.com/_next/static/chunks/pages/account/deals-6afe79fbdbdf2348.js

js buffalowildwings.com collected 2026-10-01 10:38:29 UTC 16,622 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9629,1404],{58878:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/deals",function(){return l(33124)}])},90555:function(e,n,l){"use strict";l.d(n,{F:function(){return t}});let t=e=>(null==e?void 0:e.productIdList)&&e.productIdList.length?e.productIdList:[null==e?void 0:e.productId]},29554:function(e,n,l){"use strict";l.d(n,{X:function(){return i}});var t=l(52867),a=l(25418);function i(e,n){let{quality:l,width:i,maxWidth:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{quality:100,width:200},{imageUrl:r,isCloudflareImage:s}=(0,t.Y)(e,n),d=s&&r?(0,a.NY)(r,i):r,c=(0,a.q$)(r,a.xS.AUTO,l,s,o);return{imageUrl:r,imageSrcset:c,imageUrlWithVariants:d}}},52867:function(e,n,l){"use strict";l.d(n,{Y:function(){return a}});let t=e=>null==e?void 0:e.replace(/^http:\/\//i,"https://"),a=(e,n,l,a)=>{var i,o,r,s;let d=!!(null==n?void 0:n.url);return a?{imageUrl:d?"".concat(n.url,"/f=").concat(a.format,",w=").concat(a.width,",q=").concat(a.quality):"https:".concat(null==e?void 0:null===(s=e.fields)||void 0===s?void 0:null===(r=s.file)||void 0===r?void 0:r.url),isCloudflareImage:d}:{imageUrl:t((null==n?void 0:n.url)||(null==e?void 0:null===(o=e.fields)||void 0===o?void 0:null===(i=o.file)||void 0===i?void 0:i.url)||l||""),isCloudflareImage:d}}},12860:function(e,n,l){"use strict";l.d(n,{q:function(){return t}});let t=e=>"number"==typeof e&&Number.isFinite(e)},13007:function(e,n,l){"use strict";l.d(n,{v:function(){return t}});let t=e=>e?e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):""},26099:function(e,n,l){"use strict";l.d(n,{F:function(){return t}});let t=(e,n)=>"boolean"==typeof e?e:n},29287:function(e,n,l){"use strict";var t=l(85893),a=l(94184),i=l.n(a),o=l(67294),r=l(66079),s=l.n(r);n.Z=(0,o.memo)(function(e){let{icon:n="",size:l="m",ariaLabel:a,variant:o,className:r="",onClick:d,role:c,paths:u,children:_,...m}=e;return(0,t.jsxs)("span",{className:i()("brand-icon",o,n,s().iconContainer,s()[l],{[s()[o]]:!!o},r),onClick:d,...a&&{"aria-label":a},role:c,...m,children:[u>0&&Array(u).fill(void 0).map((e,n)=>(0,t.jsx)("span",{className:"path".concat(n+1)},n)),_]})})},43209:function(e,n,l){"use strict";var t=l(85893),a=l(94184),i=l.n(a),o=l(67294),r=l(52867),s=l(25418);n.Z=(0,o.memo)(function(e){var n,l,a,o;let{asset:d,imageUrl:c,maxWidth:u,className:_,inlineStyles:m,gtmId:v,imageAlt:f,dataTestId:p,quality:h,objectFitClass:g,width:x,height:b,loading:y="lazy",priority:I=!1,ariaHidden:N=!1,cloudflareImage:C,onError:j,isBonus:E,iconDotStyle:T}=e;if(!(null==d?void 0:null===(l=d.fields)||void 0===l?void 0:null===(n=l.file)||void 0===n?void 0:n.url)&&!(null==C?void 0:C.url)&&!c)return null;let{imageUrl:O,isCloudflareImage:k}=(0,r.Y)(d,C,c),P=E&&(0,t.jsx)("span",{className:T,role:"img","aria-label":"indicator"});return(0,t.jsxs)("picture",{"data-gtm-id":v,style:{display:"flex"},children:[(0,t.jsx)("source",{type:"image/avif","data-gtm-id":v,srcSet:(0,s.q$)(O,s.xS.AVIF,h,k,u),sizes:(0,s.gE)(u)}),(0,t.jsx)("source",{type:"image/webp","data-gtm-id":v,srcSet:(0,s.q$)(O,s.xS.WEBP,h,k,u),sizes:(0,s.gE)(u)}),(0,t.jsx)("img",{"data-gtm-id":v,"data-testid":p,alt:null!=f?f:(null==d?void 0:null===(a=d.fields)||void 0===a?void 0:a.description)||(null==d?void 0:null===(o=d.fields)||void 0===o?void 0:o.title)||(null==C?void 0:C.name),src:"".concat(O,"?&q=").concat(h||s.zJ).concat(u?"&w=".concat(u):""),className:i()(_,g),style:{...!g&&{objectFit:"contain"},...m},...x&&{width:x},...b&&{height:b},loading:y,...I&&{fetchpriority:"high"},...N&&{"aria-hidden":N},...j&&{onError:j}}),E&&P]})})},3644:function(e,n,l){"use strict";var t=l(85893),a=l(97182),i=l(94184),o=l.n(i),r=l(67294),s=l(89581),d=l.n(s);n.Z=(0,r.memo)(e=>{let{size:n,className:l}=e;return(0,t.jsx)(a.Z,{classes:{root:o()(d().loader,l)},size:n,"aria-label":"content loading"})})},21478:function(e,n,l){"use strict";l.d(n,{f:function(){return v}});var t=l(85893),a=l(94184),i=l.n(a),o=l(41664),r=l.n(o),s=l(67294),d=l(70820),c=l(44280),u=l(29287),_=l(23226),m=l.n(_);let v=e=>{let{link:n,type:l="primary",size:a,text:o,onClick:_,children:v,disabled:f,className:p,style:h,linkClassName:g,gtmId:x,cmsId:b,submit:y,fullWidth:I,ariaLabel:N,dataTestId:C,id:j,newtab:E,iconPrepend:T,willChangeTransform:O,isPreviewOnly:k=!1,isAuthRequiredUrlLink:P=!1,isDefaultPhone:L=!1}=e,{productDetailsPagePaths:S}=(0,c.Z)(),A=e=>{null==_||_(e)},B=i()(m().button,{[m()[l]]:!!l,[m()[a]]:!!a,[m().fullWidth]:!!I,[m
1().willChangeTransform]:!!O},p),w=(0,s.useMemo)(()=>(0,t.jsx)(u.Z,{icon:T,size:"s",className:m().iconPrepend}),[T]);if(!n){let e={"data-gtm-id":x,"cms-id":b,"data-testid":C,id:j,className:B,"aria-label":N,style:h};return k?(0,t.jsx)("div",{...e,children:v||o}):(0,t.jsxs)("button",{...e,type:y?"submit":"button",disabled:f,onClick:A,tabIndex:0,children:[T?w:null,v||o]})}let{href:D,isExternal:W,isPhone:Z,name:U}=(0,d.v)(n,{productDetailsPagePaths:S}),z=L||Z,R=i()(B,m().link,g);return W||E||z||P?(0,t.jsxs)("a",{id:j,"data-gtm-id":x,"cms-id":b,"data-testid":C,target:W||E?"_blank":void 0,rel:"noreferrer",href:z?"tel:".concat(D):D,className:R,style:h,onClick:A,children:[T?w:null,v||o||U]}):(0,t.jsx)(r(),{href:D,legacyBehavior:!0,children:(0,t.jsxs)("a",{id:j,"data-gtm-id":x,"cms-id":b,"data-testid":C,style:h,className:i()(R,{[m().disabled]:f}),onClick:A,children:[T?w:null,v||o||U]})})}},70820:function(e,n,l){"use strict";l.d(n,{v:function(){return o}});var t=l(90555),a=l(13007);let i=e=>(null==e?void 0:e.fields)?e.fields.name:"",o=(e,n)=>{var l,o,r,s,d,c,u,_,m,v,f,p,h;let g;if("string"==typeof e)return{href:e,isExternal:!1,isPhone:!1};let x="/",b=!1,y=!1,I=!1,N=i(e);switch(null==e?void 0:null===(o=e.sys)||void 0===o?void 0:null===(l=o.contentType)||void 0===l?void 0:l.sys.id){case"externalLink":(x=(null==e?void 0:null===(r=e.fields)||void 0===r?void 0:r.nameInUrl)||"/").includes("service-now")&&(y=!0),b=!0;break;case"menuCategoryLink":x="/menu/categories/".concat((0,a.v)((null==e?void 0:null===(s=e.fields)||void 0===s?void 0:s.nameInUrl)||""));break;case"phoneNumberLink":x=(null==e?void 0:null===(d=e.fields)||void 0===d?void 0:d.phoneNumber)||"/",I=!0;break;case"product":{let l=null===(c=(0,t.F)(null==e?void 0:e.fields))||void 0===c?void 0:c[0],a=null==n?void 0:null===(u=n.productDetailsPagePaths)||void 0===u?void 0:u.find(e=>{if(null==n?void 0:n.currentCategoryUrl){var t;return e.productIds.includes(l)&&((null===(t=e.nestedCategoryOrPDPPageUrl)||void 0===t?void 0:t.includes(null==n?void 0:n.currentCategoryUrl))||e.menuCategoryUrl===(null==n?void 0:n.currentCategoryUrl))}return e.productIds.includes(l)});x=(null==a?void 0:a.productPath)||"/";break}case"documentLink":x=(null==e?void 0:null===(f=e.fields)||void 0===f?void 0:null===(v=f.document)||void 0===v?void 0:null===(m=v.fields)||void 0===m?void 0:null===(_=m.file)||void 0===_?void 0:_.url)||"/",b=!0;break;case"socialMediaLink":x=(null==e?void 0:null===(p=e.fields)||void 0===p?void 0:p.url)||"/",b=!0;break;case"ketchLink":g=e.fields.action;break;default:x=(null==e?void 0:null===(h=e.fields)||void 0===h?void 0:h.nameInUrl)?"/".concat(e.fields.nameInUrl):"/"}return{href:x,isExternal:b,name:N,isPhone:I,ketchAction:g,isServiceNow:y}}},33124:function(e,n,l){"use strict";l.r(n),l.d(n,{__N_SSG:function(){return ea},default:function(){return ei}});var t=l(85893),a=l(88100),i=l(61053),o=l(96956),r=l(94184),s=l.n(r),d=l(41664),c=l.n(d),u=l(11163),_=l(67294),m=l(20203),v=l(54463),f=l(65980),p=l(65678),h=l(58959);let g=e=>"isRedeemableInStoreOnly"in e&&"userOfferId"in e&&void 0!==e.userOfferId,x=e=>(null==e?void 0:e.isRedeemableInStore)||(null==e?void 0:e.isRedeemableOnline)||(null==e?void 0:e.isRedeemableOnlineOnly)||(null==e?void 0:e.isRedeemableInStoreOnly),b=(e,n,l,t,a)=>!!x(e)&&(null==e||!e.isLocked||!!(t&&a===e.userOfferId))&&(!n&&!!l||!0!==e.isRedeemableInStoreOnly);var y=l(58602),I=l(63377),N=l(17761),C=l(65454),j=l(58503),E=l(80429),T=l(42238),O=l.n(T);let k=()=>{let{type:e}=(0,_.useMemo)(()=>new(O()),[]).getDevice(),n=["mobile","tablet"].includes(e);return{type:e,deviceType:n?"mobile":"desktop"}};var P=l(47081),L=l(2990),S=l(32249),A=l(35205),B=l(80839),w=l(15749),D=l(32395),W=l(69993),Z=l(48322),U=l(29287),z=l(3644),R=l(21478),q=l(75091),M=l(5152);let V=l.n(M)()(Promise.all([l.e(1235),l.e(1038),l.e(3390),l.e(4450)]).then(l.bind(l,14450)),{loadableGenerated:{webpack:()=>[14450]},ssr:!1,loading:()=>null});var Y=l(88541),F=l(43209),G=l(17376),H=l.n(G),X=e=>{let{fields:n}=e,{title:l,topImage:a,topImageCloudflare:i,mainText:o,ctaText:r}=n;return(0,t.jsxs)("div",{className:H().container,"data-testid":"my-deals-empty",children:[(0,t.jsx)(F.Z,{className:H().topImage,asset:a,cloudflareImage:i,maxWidth:200}),(0,t.jsx)("h2",{className:s()(H().title,"t-header-h2"),children:l}),(0,t.jsx)("p",{className:H().mainText,children:o}),(0,t.jsx)(R.f,{link:"/menu",className:H().cta,size:"large",text:r})]})},J=l(72517),K=l(85980),$=l(73658),Q=l(44280),ee=l(74832),en=l(40757),el=l(33850),et=l.n(el),ea=!0,ei=(0,y.u)(function(e){var n,l,r;let d=performance.now(),{sections:x,isDealsPageOn:y,canonicalPath:T}=e,O=(0,Q.Z)(),{checkRewards:M}=(0,E.A)(),{Offers:{ACTIVATED_DEAL_BANNER_TEXT:F,DEALS_VARY:G}}=J.default,H=(0,N.w)(),{autoSelectedStore:el}=(0,I.D)({coordinates:H}),ea=(0,u.useRouter)();(0,_.useEffect)(()=>{y||ea.replace("/404")},[y,ea]);let ei=(0,en.TL)(),{deviceType:eo}=k(),{isMobile:er,isDesktop:es}=(0,S.E)(),ed=null==x?void 0:null===(n=x.myDealsEmpty)||void 0===n?void 0:n.fields,{getApplicableOffers:ec,getNationalOffers:eu,isLoading:e_,instoreCode:em}=(0,ee.Z)(),{isLocationOrderAheadAvailable:ev,location:ef}=(0,L.s)(),ep=ef?ec(ef.id):eu(),{isLoading:eh}=(0,a.D3)(),[eg]=(0,j.Ym)(C.hy.ENABLE_INSTORE_REDEMPTION),ex=null==ep?void 0:ep.filter(e=>g(e)&&b(e,es,eg.enabled,null==em?void 0:em.hasActivated,null==em?void 0:em.offerCode)),eb=!ef&&ep.length>0,ey=!ep.some(e=>g(e)&&(e.isRedeemableInStoreOnly||!e.isRedeemableInStoreOnly&&!e.isRedeemableOnlineOnly)),eI=!ep.some(e=>g(e)&&(e.isRedeemableOnlineOnly||!e.isRedeemableInStoreOnly&&!e.isRedeemableOnlineOnly)),eN=ef&&!ev&&ey||ef&&ev&&ey&&eI,[eC,ej]=(0,_.useState)(eN),eE=()=>{ej(!1)},{dealId:eT}=(0,$.Z)(),eO=null===(l=e.accountSections)||void 0===l?void 0:l.accountHeader,{safeTimer:ek,clearTimer:eP}=(0,A.J)(),[eL,eS]=(0,_.useState)(),eA=(0,p.V)(null==em?void 0:em.expirationDateTime),{actions:eB}=(0,ee.Z)(),{account:ew}
1=(0,K.Z)(),eD=null==ew?void 0:ew.idpCustomerId,[eW,eZ]=(0,_.useState)(null),{idToken:eU}=(0,P.P)();(0,_.useEffect)(()=>{let e=(0,p.V)(null==em?void 0:em.expirationDateTime);(null==em?void 0:em.hasActivated)&&(null==em?void 0:em.expirationDateTime)&&e<=0&&eU&&ez()},[eU]),(0,_.useEffect)(()=>{(null==ex?void 0:ex.length)&&(null==em?void 0:em.hasActivated)&&!(null==ex?void 0:ex.some(e=>(null==e?void 0:e.userOfferId)===(null==em?void 0:em.offerCode)))&&(null==em?void 0:em.hasActivated)&&(ei(eB.clearInstoreCode()),(0,h.eH)(eD))},[ex,em,eD]);let ez=()=>{ei(eB.clearInstoreCode()),M()};if((0,_.useEffect)(()=>{let e=()=>{eZ(document.visibilityState)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),(0,_.useEffect)(()=>{if(eA>0&&(null==em?void 0:em.hasActivated)){let e="visible"===eW?eA:(0,p.V)(null==em?void 0:em.expirationDateTime);e>0?(eP(),ek(eS,Math.floor(e/1e3),ez)):ez()}else(null==em?void 0:em.hasActivated)&&eA<=0&&ez()},[eW,eA,em]),(0,_.useEffect)(()=>{(0,f.u)(eD,em,eB.setInstoreCode)},[eD,em]),(0,_.useEffect)(()=>{let e=Math.round(performance.now()-d);(0,D.Kz)(w.LOGGER_EVENTS.ACCOUNT_DEALS_PAGE_VIEW,{uiLoadTimeMs:e,"context.pageName":w.PAGE_NAME.ACCOUNT_DEALS}),(0,W.oF)(Z.o.ACCOUNT_DEALS_UI_LOAD_TIME_MS,e,{appSection:w.SECTION_NAME.GLOBAL}),(0,W.oF)(Z.o.ACCOUNT_DEALS_PAGE_VIEW_TOTAL,1,{appSection:w.SECTION_NAME.GLOBAL})},[]),!y)return(0,t.jsx)("div",{"aria-label":"Account Deals Page"});if(e_||eh)return(0,t.jsx)(Y.Z,{globalProps:O,containerClassName:et().emptyContainerWrapper,accountHeader:eO,fromPage:m.nA,children:(0,t.jsx)(z.Z,{size:50})});if(ef&&0===ep.length)return(0,t.jsx)(Y.Z,{globalProps:O,containerClassName:et().emptyContainerWrapper,accountHeader:eO,pageWrapperClassName:et().emptyPageWrapper,fromPage:m.nA,children:(0,t.jsx)(X,{fields:ed})});if(!ef&&!eb)return(0,t.jsxs)(Y.Z,{globalProps:O,containerClassName:et().emptyContainerWrapper,accountHeader:eO,pageWrapperClassName:et().pageWrapper,fromPage:m.nA,children:[(0,t.jsx)("link",{rel:"canonical",href:T}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"t-paragraph",children:G}),(0,t.jsx)(R.f,{text:"Select a Location",className:et().selectLocationButton,onClick:()=>{ei({type:B.a7,payload:{label:"select a location",device:eo}}),ea.push({pathname:"/locations",query:{backTo:"/account/deals"}})},dataTestId:"acccount-deals-page-select-location-button"})]})]});let eR=null==ex?void 0:ex.find(e=>e.userOfferId===(null==em?void 0:em.offerCode));return(0,t.jsxs)(Y.Z,{accountHeader:eO,globalProps:O,containerClassName:et().containerWrapper,pageWrapperClassName:et().pageWrapper,fromPage:m.nA,children:[er&&eA>0&&em.hasActivated&&eg.enabled&&(0,t.jsxs)("div",{className:et().instore,children:[(0,t.jsx)(U.Z,{icon:"noun-clock",className:et().timericon}),(0,t.jsxs)("div",{className:et().bannerText,children:[(0,t.jsx)("span",{children:null!==(r=null==eR?void 0:eR.name)&&void 0!==r?r:F}),(0,t.jsx)("span",{className:et().timerText,children:(0,v.qt)(eL)})]}),(0,t.jsx)(c(),{href:"/account/deals/deal?id=".concat(em.offerCode),children:(0,t.jsx)(i.Z,{className:et().chevronIcon})})]}),eT&&(0,t.jsx)("div",{className:s()(et().dealNotice,"t-paragraph-hint"),children:"Note: You can only use one deal at a time"}),(0,t.jsx)(V,{offers:ex,dealIdInBag:eT,instoreCode:em}),(0,t.jsx)(o.Z,{open:eN&&eC,onClose:eE,onClick:e=>e.stopPropagation(),className:et().modal,children:(0,t.jsxs)("div",{className:et().modalContainer,children:[(0,t.jsx)(U.Z,{className:et().modalIconBan,size:"xl",icon:"info-ban",variant:"colorful"}),(0,t.jsx)(U.Z,{className:et().modalIconClose,size:"m",icon:"action-close",onClick:eE}),(0,t.jsx)("h2",{className:s()(et().modalTitle,"t-header-h3"),children:"Deals cannot be redeemed at this location"}),(0,t.jsxs)("div",{className:et().modalButtons,children:[(0,t.jsx)(R.f,{text:"View Menu",onClick:()=>ea.push("/menu")}),(0,t.jsx)(R.f,{text:"Select New Location",onClick:()=>ea.push("/locations")})]})]})}),(0,t.jsx)(q.$,{autoSelectedStore:el})]})},{loginOptions:{authorizationParams:{screen_hint:"signup",isIDP:!0}}})},66079:function(e){e.exports={iconContainer:"BrandIcon_iconContainer__eNf9a",huge:"Brand
1Icon_huge__ICaHn",xl:"BrandIcon_xl__JCHdP",l:"BrandIcon_l__nISmT",m:"BrandIcon_m__mLm7v",s:"BrandIcon_s__w0J_P",xs:"BrandIcon_xs__H65fy",tiny:"BrandIcon_tiny__YfjKj","brand-icon":"BrandIcon_brand-icon__KtpiK",light:"BrandIcon_light__7Hxtb",dark:"BrandIcon_dark__2es5n",gray6:"BrandIcon_gray6__zCVh2",colorful:"BrandIcon_colorful__Ts3i0",gray4:"BrandIcon_gray4__Ww4I_"}},89581:function(e){e.exports={loader:"loader_loader__EhiKS"}},23226:function(e){e.exports={button:"button_button__WtigN bww_button_vars_button__McuxO",fullWidth:"button_fullWidth__B22Z7",baseButton:"button_baseButton__6jBUU",link:"button_link__jcz7_",large:"button_large__OrzV_",small:"button_small__mqmtc",secondary:"button_secondary__9Y0qp",disabled:"button_disabled__Sw9Oz",willChangeTransform:"button_willChangeTransform__sT4b9",iconPrepend:"button_iconPrepend__anUgj"}},17376:function(e){e.exports={container:"myDealsEmpty_container__t7qZx",topImage:"myDealsEmpty_topImage__TFL3G",title:"myDealsEmpty_title__24PVm",mainText:"myDealsEmpty_mainText__lZpAX",cta:"myDealsEmpty_cta__Lxe0l"}},33850:function(e){e.exports={pageWrapper:"deals_pageWrapper__wR9hg",emptyPageWrapper:"deals_emptyPageWrapper__xkw8_",headerWithoutLocation:"deals_headerWithoutLocation__qR7U0",generalError:"deals_generalError__c2iIP",dealNotice:"deals_dealNotice__5Vqgo",modal:"deals_modal__VEjrp",modalContainer:"deals_modalContainer__vDyOF",modalIconBan:"deals_modalIconBan__7Xg1O",modalIconClose:"deals_modalIconClose__x6Xma",modalTitle:"deals_modalTitle__hZzIM",modalButtons:"deals_modalButtons__jiaQ_",selectLocationButton:"deals_selectLocationButton__wJbxw",instore:"deals_instore__3DElT",redirectButton:"deals_redirectButton__Z3r4q",timericon:"deals_timericon___vN2Y",bannerText:"deals_bannerText__uM3rU",chevronIcon:"deals_chevronIcon__mDz1Y",timerText:"deals_timerText__0YybW",emptyContainerWrapper:"deals_emptyContainerWrapper__guXxD"}}},function(e){e.O(0,[1664,2719,3404,1629,97,3829,2759,5725,3046,3419,8931,2888,9774,179],function(){return e(e.s=58878)}),_N_E=e.O()}]);
2//# sourceMappingURL=deals-6afe79fbdbdf2348.js.map

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.