PageSourceSearch

https://www.buffalowildwings.com/_next/static/chunks/2759-ede4fcac022b7829.js

js buffalowildwings.com collected 2026-09-24 09:06:18 UTC 33,949 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2759],{44852:function(e,t,n){n.d(t,{Q:function(){return a}});let a=!1},82757:function(e,t,n){n.d(t,{Nd:function(){return f},HB:function(){return c},sY:function(){return d}});var a,i,r,o,l=n(16821);(a=r||(r={})).FULLSERVICE="FULLSERVICE",a.PICKUP_DELIVERY="PICKUP_DELIVERY",a.COMBO_STORE="COMBO_STORE",a.BEVERAGE_ONLY="BEVERAGE_ONLY",(i=o||(o={})).IS_DIGITALLY_ENABLED="features.isDigitallyEnabled",i.STATUS="status",i.LOCATION_HOURS="locationHours",i.IS_DRIVE_THROUGH_ENABLED="pickupOptions.isDriveThroughEnabled",i.IS_CARRY_OUT_ENABLED="pickupOptions.isCarryOutEnabled",i.IS_CURBSIDE_PICKUP_ENABLED="pickupOptions.isCurbsidePickupEnabled",i.HAS_STALL="pickupOptions.hasStall",i.HAS_PATIO="pickupOptions.hasPatio",i.HAS_MOBILE_EXPRESS="pickupOptions.hasMobileExpress",i.IS_WALK_UP_ENABLED="pickupOptions.isWalkUpEnabled",i.IS_DINE_IN_ENABLED_OPTION="pickupOptions.isDineInEnabled",i.RESTAURANT_FORMAT_FULLSERVICE="restaurantInfo.restaurantFormat|FULLSERVICE",i.RESTAURANT_FORMAT_PICKUP_DELIVERY="restaurantInfo.restaurantFormat|PICKUP_DELIVERY",i.RESTAURANT_FORMAT_COMBO_STORE="restaurantInfo.restaurantFormat|COMBO_STORE",i.RESTAURANT_FORMAT_BEVERAGE_ONLY="restaurantInfo.restaurantFormat|BEVERAGE_ONLY",i.PARKING_SPACES="restaurantInfo.parkingSpaces",i.IS_WIFI_ENABLED="features.isWifiEnabled",i.IS_DELIVERY_ENABLED="features.isDeliveryEnabled",i.HAS_BIG_SCREEN_TVS="features.hasBigScreenTvs",i.BLAZIN_REWARDS="features.blazinRewards",i.UFC_VIEWING="features.ufcViewing",i.DUNKIN_CARD_ENABLED="features.dunkinCardEnabled",i.IS_MOBILE_PAYMENT="features.isMobilePayment",i.KOSHER="features.kosher",i.K_CUPS="features.kCups",i.HOT_FOODS_AVAILABLE="features.turboOven",i.IS_DINE_IN_ENABLED="features.hasDineIn";var s=n(89966),u=n(86740);let c=(e,t)=>e.filter(e=>e.geoDetails.distance<=t).length,d={[o.IS_DIGITALLY_ENABLED]:e=>!!e.features.isDigitallyEnabled,[o.STATUS]:e=>{var t;return null===(t=(0,l.z)(e))||void 0===t?void 0:t.isOpen},[o.LOCATION_HOURS]:e=>{var t;return(null===(t=(0,l.z)(e))||void 0===t?void 0:t.storeStatusType)===s.t.OPEN_24H},[o.IS_DRIVE_THROUGH_ENABLED]:e=>{var t;return!!(null===(t=e.pickupOptions)||void 0===t?void 0:t.isDriveThroughEnabled)},[o.IS_CARRY_OUT_ENABLED]:e=>{var t;return!!(null===(t=e.pickupOptions)||void 0===t?void 0:t.isCarryOutEnabled)},[o.HAS_STALL]:e=>{var t;return null===(t=e.pickupOptions)||void 0===t?void 0:t.hasStall},[o.HAS_PATIO]:e=>{var t;return null===(t=e.pickupOptions)||void 0===t?void 0:t.hasPatio},[o.HAS_MOBILE_EXPRESS]:e=>{var t;return!!(null===(t=e.pickupOptions)||void 0===t?void 0:t.hasMobileExpress)},[o.IS_CURBSIDE_PICKUP_ENABLED]:e=>{var t;return!!(null===(t=e.pickupOptions)||void 0===t?void 0:t.isCurbsidePickupEnabled)},[o.IS_WALK_UP_ENABLED]:e=>{var t;return!!(null===(t=e.pickupOptions)||void 0===t?void 0:t.isWalkUpEnabled)},[o.IS_DINE_IN_ENABLED_OPTION]:e=>{var t;return!!(null===(t=e.pickupOptions)||void 0===t?void 0:t.isDineInEnabled)},[o.RESTAURANT_FORMAT_BEVERAGE_ONLY]:e=>e.restaurantInfo.restaurantFormat===r.BEVERAGE_ONLY,[o.RESTAURANT_FORMAT_COMBO_STORE]:e=>e.restaurantInfo.restaurantFormat===r.COMBO_STORE,[o.RESTAURANT_FORMAT_FULLSERVICE]:e=>e.restaurantInfo.restaurantFormat===r.FULLSERVICE,[o.RESTAURANT_FORMAT_PICKUP_DELIVERY]:e=>e.restaurantInfo.restaurantFormat===r.PICKUP_DELIVERY,[o.PARKING_SPACES]:e=>e.restaurantInfo.parkingSpaces>0,[o.DUNKIN_CARD_ENABLED]:e=>!!e.features.dunkinCardEnabled,[o.IS_DELIVERY_ENABLED]:e=>!!e.features.isDeliveryEnabled,[o.HAS_BIG_SCREEN_TVS]:e=>!!e.features.hasBigScreenTVs,[o.BLAZIN_REWARDS]:e=>!!e.features.blazinRewards,[o.UFC_VIEWING]:e=>e.features.ufcViewing,[o.IS_MOBILE_PAYMENT]:e=>!!e.features.isMobilePayment,[o.KOSHER]:e=>!!e.features.kosher,[o.IS_WIFI_ENABLED]:e=>e.features.isWifiEnabled,[o.K_CUPS]:e=>!!e.features.kCups,[o.HOT_FOODS_AVAILABLE]:e=>!!e.features.turboOven,[o.IS_DINE_IN_ENABLED]:e=>!!e.features.hasDineIn,_default:()=>!1};function f(e,t,n){let a=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length))return e;let i=(0,u.b6)(t),r=t.map(e=>{let t=n[e];return t&&d[(0,u.xb)(t)]||d._default}).filter(e=>e!==d._default);return 0!==r.length||i?e.filter(e=>{for(let t=0;t<r.length;t++)if(!r[t](e))return!1;
1return!a||!i||!(e.geoDetails.distance>i)}):e}},67978:function(e,t,n){n.d(t,{Y:function(){return i}});var a=n(97663);let i=e=>{let{method:t,pickupAddress:n,deliveryAddress:i}=e;return t===a.Vz.PICKUP&&n?n:t===a.Vz.DELIVERY&&i?i:null}},95596:function(e,t,n){n.d(t,{Z:function(){return Y}});var a,i=n(67294),r=n(97402),o=n(72517),l=n(25524),s=n(92250),u=n(56353),c=n(68697);let d=e=>(null==e?void 0:e.favoriteLocations)||l.E3,f=(0,c.P1)(d,e=>(null==e?void 0:e.favoriteLocations)||l.E3.favoriteLocations),p=(0,c.P1)(f,e=>e.reduce((e,t)=>({...e,[t.id]:!0}),{})),_=(0,c.P1)(d,e=>(null==e?void 0:e.error)||l.E3.error),E=(0,c.P1)(d,e=>(null==e?void 0:e.lastUpdated)||l.E3.lastUpdated),v=e=>e.userLocation||null;var g=n(23616),m=n(29606),I=n(82757),b=n(67755),h=n(80839),O=n(35657),S=n(32395),y=n(22141),A=n(40760),C=n(68017),R=n(32249);(a||(a={})).FAVORITE_LOCATION_LIMIT_EXCEEDED="FAVORITE_LOCATION_LIMIT_EXCEEDED";var L=n(88582),k=n(91886),T=n(77717),F=n(4177),N=n(13860),D=n(46614),w=n(66974);class P{async getFavoriteLocations(e){let t="getFavoriteLocations:".concat(this.idToken,":(").concat(null==e?void 0:e.longitude,",").concat(null==e?void 0:e.latitude,")");P._pendingRequests[t]||(P._pendingRequests[t]=this.getFavoriteLocationsApi({xSessionId:(0,w.W2)(),xChannel:T.GV,...e}));let n=await P._pendingRequests[t];return P._pendingRequests[t]=null,(0,F.nW)(n)}addFavoriteLocation(e){return this.addFavoriteLocationApi({xSessionId:(0,w.W2)(),xChannel:T.GV,favoriteLocationModel:{id:e}})}removeFavoriteLocation(e){return this.removeFavoriteLocationApi({xSessionId:(0,w.W2)(),xChannel:T.GV,id:e})}constructor(e){let t=(0,N.Um)(k.Mth,{withJwt:e});this.idToken=e,this.getFavoriteLocationsApi=(0,D.ZP)("getFavoriteLocations",t.locationsControllerGetFavoriteLocationsV1.bind(t)),this.addFavoriteLocationApi=(0,D.ZP)("addFavoriteLocation",t.locationsControllerAddFavoriteLocationV1.bind(t)),this.removeFavoriteLocationApi=(0,D.ZP)("removeFavoriteLocation",t.locationsControllerRemoveFavoriteLocationV1.bind(t))}}P._pendingRequests={};var U=n(47081);let M=()=>{let{idToken:e}=(0,U.P)();return(0,i.useMemo)(()=>e?new P((0,L.VH)(e)):null,[e])},{Location:{FAVORITE_STORE_ERROR:B,ERROR_REMOVE_FAVORITE_MESSAGE:V,DELETE_FAVORITE_MESSAGE:G,ADD_FAVORITE_MESSAGE:H}}=o.default;var Y=()=>{let[e,t]=(0,i.useState)(!1),[n,o]=(0,i.useState)(new Set),c=(0,g.CG)(f),d=(0,g.CG)(p),L=(0,g.CG)(_),k=(0,g.CG)(E),T=(0,g.CG)(v),{isMobile:F}=(0,R.E)(),N=(0,g.TL)(),{appliedFilters:D}=(0,C.v)(),[w]=(0,y.J)(),P=M(),{actions:{enqueueError:U}}=(0,s.Z)(),{actions:{openSnackbar:Y}}=(0,u.D)(),{enabled:W,config:{filters:{filtersMap:q}}}=(0,A.g)(),x=(0,i.useMemo)(()=>W&&(null==D?void 0:D.length)?(0,I.Nd)(c,D,q,!1):c,[c,W,D,q]),K=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t||(e?V:B),a=m.k.ERROR;Y({id:Date.now().toString(),message:n,open:!0,anchorOrigin:{vertical:"bottom",horizontal:F?"center":"right"},type:t||a,notificationCategory:r.Sn})},[F,Y]),Z=(0,i.useCallback)(async function(){let{isForce:e=!1,isSilent:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P){if(!w){N(l.Nw.setFavoriteLocations({favoriteLocations:[],lastUpdated:Date.now()}));return}if(!(!e&&Date.now()-k<5e3)){try{n||t(!0);let e=T?{longitude:T.lng,latitude:T.lat}:void 0,a=await P.getFavoriteLocations(e);N(l.Nw.setFavoriteLocations({favoriteLocations:a.locations,lastUpdated:Date.now()}))}catch(e){U(e),N(l.Nw.setError({errorMessage:e.message,lastUpdated:Date.now()})),(0,S.H)("FAVORITE_LOCATIONS_LOADING",e)}n||t(!1)}}},[w,P,T,U,N,k]),z=(0,i.useCallback)(async function(t){var i;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.Ev.LOCATION_SEARCH,{id:s,displayName:u}=t;if(e||n.has(s)||!P)return;o(e=>new Set(e).add(s));let c=null!==(i=d[s])&&void 0!==i&&i;N({type:h.Jd,payload:{favorite_type:"Store",favorite_name:u,favorite_interaction:!c,favorite_placement:r}}),N(l.Nw.toggleFavoriteLocation({location:t,isFavorite:c}));try{c?(await P.removeFavoriteLocation(s),K(!0,G)):(await P.addFavoriteLocation(s),K(!1,H),Z({isForce:!0,isSilent:!0}))}
1catch(e){N(l.Nw.toggleFavoriteLocation({location:t,isFavorite:!c})),e.code!==a.FAVORITE_LOCATION_LIMIT_EXCEEDED&&K(c,e.presentation&&(0,b.G)(e.presentation).message),(0,S.H)("FAVORITE_LOCATIONS_TOGGLING",e)}o(e=>{let t=new Set(e);return t.delete(s),t})},[N,e,d,n,K,P,Z]);return(0,i.useEffect)(()=>{Z()},[Z]),{favoriteLocations:c,filteredFavoriteLocations:x,isLocationFavorited:d,loading:e,hasFavoritesFetched:!!k,fetchFavoriteLocationsError:L,toggleFavoriteLocation:z}}},71018:function(e,t,n){n.d(t,{_:function(){return A}});var a,i,r=n(67294),o=n(72517),l=n(92250),s=n(44852),u=n(88832),c=n(82757),d=n(86740),f=n(31324),p=n(23620),_=n(89989),E=n(55340),v=n(15749),g=n(69993),m=n(48322),I=n(8433),b=n(40760),h=n(52508),O=n(44673),S=n(68017);(a=i||(i={})).Append="append",a.Replace="replace",a.Merge="merge";let y=e=>(null==e?void 0:e.length)?e.slice().sort().join("|"):"";function A(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{appliedFilters:t}=(0,S.v)(),{enabled:n,config:{clientPageSize:a,serverPageSize:i,resultThreshold:A,locationRadius:C,filters:{filtersMap:R}}}=(0,b.g)(),L=(0,O.M)(),{Location:{USE_MY_LOCATION_PERMISSION_ERROR_TITLE:k,USE_MY_LOCATION_PERMISSION_ERROR_MESSAGE:T}}=o.default,{actions:{enqueueError:F}}=(0,l.Z)(),[N,D]=(0,r.useState)(0),[w,P]=(0,r.useState)(!1),[U,M]=(0,r.useState)([]),[B,V]=(0,r.useState)(a),[G,H]=(0,r.useState)(I.GR.Idle),[Y,W]=(0,r.useState)(I.GR.Idle),[q,x]=(0,r.useState)(null),[K,Z]=(0,r.useState)(!0),[z,j]=(0,r.useState)(!1),Q=(0,r.useRef)(""),J=(0,r.useRef)(!1),X=(0,r.useMemo)(()=>n?y(t):"",[n,t]),$=(0,r.useMemo)(()=>n&&(null==t?void 0:t.length)?(0,c.Nd)(U,t,R):U,[U,n,t,R]),ee=(0,r.useMemo)(()=>$.slice(0,B),[$,B]),et=(0,r.useMemo)(()=>null!=t&&!!t.length&&t.every(e=>h.Qz.includes(e)),[t]),en=!w&&U.length<L,ea=B<$.length||en,ei=(0,r.useCallback)(async function(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"append";if(G===I.GR.Loading||U.length>=L&&"append"===r)return;let o="append"===r||"merge"===r&&!!(null==$?void 0:$.length);o?W(I.GR.Loading):H(I.GR.Loading);let l=n&&(null==t?void 0:t.length)>0?"LOCATION_SEARCH_WITH_FILTERS_FETCH_TOTAL":"LOCATION_SEARCH_WITHOUT_FILTERS_FETCH_TOTAL";try{let s="append"===r||"merge"===r?a:0;n||j(!0);let u=n?await (0,E.Z)({coordinates:e,page:s,limit:i,radius:(0,d.b6)(t)||C,appliedFilters:(0,f.ec)(t,R)}):await (0,_.Z)(e,s),c={status:"success",source:v.SOURCE_TYPES.FETCH,httpStatusCode:200};(0,g.oF)(m.o[l],1,c),P(u.metadata.isLastPage),M(e=>{let t=u.locations.slice(0,Math.max(0,L-e.length));if("merge"===r){let n=new Set(e.map(e=>e.id));return[...e,...t.filter(e=>!n.has(e.id))]}return"replace"===r?t:[...e,...t]}),D(u.metadata.pageNumber),o?W(I.GR.Success):H(I.GR.Success)}catch(t){(null==t?void 0:t.presentation)&&F(t);let e={status:"failure",source:v.SOURCE_TYPES.FETCH,httpStatusCode:null==t?void 0:t.status,errorCode:null==t?void 0:t.code,errorMessage:null==t?void 0:t.message};(0,g.oF)(m.o[l],1,e),M([]),o?W(I.GR.Error):H(I.GR.Error)}},[G,U.length,L,n,i,C,t,F]),er=(0,r.useCallback)(()=>{D(0),P(!1),M([]),V(a),H(I.GR.Idle),W(I.GR.Idle),J.current=!1,Q.current=""},[a]),eo=(0,r.useCallback)(async()=>{er(),await ei(q,0,"replace")},[ei,er,q]);(0,r.useEffect)(()=>{n&&z&&e&&(j(!1),eo())},[n,z]),(0,r.useEffect)(()=>{if(e&&n&&q&&G!==I.GR.Loading&&Y!==I.GR.Loading){if(Q.current!==X&&X&&V(a),!t.length&&Q.current){eo();return}Q.current!==X&&(Q.current=X,J.current=!1),$.length<A&&!J.current&&en&&(J.current=!0,ei(q,et?N+1:N,"merge"))}},[X,n,en,$.length,q,G,Y,et]);let el=(0,r.useCallback)(async()=>{if(B<$.length){V(e=>e+a);return}en&&(await ei(q,N+1,"append"),V(e=>e+a))},[B,$.length,en,N,ei]),es=(0,r.useCallback)(async e=>{(null==e?void 0:e.lat)&&(null==e?void 0:e.lng)&&(x(e),D(0),P(!1),M([]),V(a),J.current=!1,Q.current=X,await ei(e,0,"replace"))},[a,X,ei]),eu=async e=>{if(e)try{var t,n,a;let i=JSON.parse(sessionStorage.getItem(u.o.LOCATION_CACHE)||"{}"),r=null===(t=i["".concat(e)])||void 0===t?void 0:t[0],o=JSON.parse(sessionStorage.getItem(u.o.LOCATION_GEOCODE_CACHE)||"{}"),l=null===(n=o["".concat(e)])||void 0===n?void 0:n[0],c=null!==(a=null!=r?r:l)&&void 0!==a?a:null;if((null==c?void 0:c.latitude)!=null&&(null==c?void 0:c.longitude)!=null){let e={lat:Number(c.latitude),lng:Number(c.longitude)};Z(!0),x(e),await es(e);return}let d=await (0,p.Z)(e,s.Q);Z(!0),x(d),await es(d)}catch(e){Z(!1),(null==e?void 0:e.presentation)&&F(e),H(I.GR.Error)}},ec=(0,r.useCallback)(async()=>(H(I.GR.Loading),new Promise(e=>{navigator.geolocation.getCurrentPosition(t=>{let{latitude:n,longitude:a}=t.coords;H(I.GR.Success),x({lat:n,lng:a}),es({lat:n,lng:a}),e({lat:n,lng:a})},()=>{H(I.GR.Idle),F({title:k,message:T}),e({lat:null,lng:null})})})),[es]);return{fetchLocationsByQuery:eu,fetchLocationsByCoordinates:es,fetchLocationsByUserGeolocation:ec,fetchMoreLocations:el,resetSearchResult:er,reload:eo,locations:ee,allLoadedLocations:U,locationsSearchStatus:G,moreLocationsFetchStatus:Y,isAbleToFetchMoreLocations:ea,hasCoordinates:K,isFiltersEnabled:t.length>0}}},42759:function(e,t,n){var a=n(23279),i=n.n(a),r=n(11163),o=n(67294),l=n(85980),s=n(71621),u=n(49094),c=n(27439),d=n(42834),f=n(23616),p=n(27684),_=n(88832),E=n(67978),v=n(12860),g=n(34443),m=n(80839),I=n(8433),b=n(76031),h=n(20281),O=n(95596),S=n(71018);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=(0,o.useState)(null),[a,y]=(0,o.useState)(null),A=(0,f.TL)(),{actions:{setPickupLocation:C,setPreviousLocation:R},pickupAddress:L,method:k,deliveryAddress:T}=(0,c.Z)(),{actions:{getDomainMenu:F}}=(0,s.Z)(),{setUnavailableTallyItems:N}=(0,d.Z)(),{clearRecentSearchQueries:D}=(0,h.X)(),{instoreCode:w,attachedRewards:P,actions:{clearInstoreCode:U,clearAttachedRewards:M}}=(0,u.Z)(),{isLWLInstoreRewardsEnabled:B}=(0,b.e)(),{account:V}=(0,l.Z)(),{fetchLocationsByQuery:G,fetchLocationsByCoordinates:H,fetchLocationsByUserGeolocation:Y,fetch
1MoreLocations:W,resetSearchResult:q,hasCoordinates:x,locationsSearchStatus:K,locations:Z,allLoadedLocations:z,moreLocationsFetchStatus:j,isAbleToFetchMoreLocations:Q}=(0,S._)(e),{favoriteLocations:J,filteredFavoriteLocations:X,isLocationFavorited:$,loading:ee,toggleFavoriteLocation:et,fetchFavoriteLocationsError:en}=(0,O.Z)(),ea=(0,r.useRouter)(),ei=ea.query.q,er=!!ea.query.intop,eo=null;try{eo=sessionStorage.getItem(_.o.MY_LOCATION)}catch(e){}let el=ea.query.lat,es=ea.query.lng,eu=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(ei&&e&&ea.isReady){let e=el?Number(el):NaN,t=es?Number(es):NaN;!eu.current&&(0,v.q)(e)&&(0,v.q)(t)?(eu.current=!0,H({lat:e,lng:t})):G(ei),A({type:m.SB})}else""===ei&&ea.isReady&&q()},[ei,ea.isReady]),(0,o.useEffect)(()=>{let[t,n]=(null==eo?void 0:eo.split(","))||[];!ei&&n&&t&&e&&H({lat:Number(t),lng:Number(n)})},[eo,ei]);let ec=(0,o.useMemo)(()=>{if(!Z)return[];if(!er||t)return Z;let e=L&&Z.find(e=>e.id===L.id);return e?[e,...Z.filter(t=>t.id!==e.id)]:Z},[L,Z,er,t]),ed=(0,o.useMemo)(()=>i()(e=>{let{lat:t,lng:n,pt:a,...i}=ea.query;ea.push({pathname:"/locations",query:{...i,q:e}},null,{shallow:!0})},300),[ei,ea]),ef=(0,o.useCallback)(e=>{K!==I.GR.Loading&&(y(null),e===ei&&n(Date.now()),ed(e||ei||""))},[ed,ei,K]),ep=(0,o.useCallback)(e=>{if(R((0,E.Y)({method:k,pickupAddress:L,deliveryAddress:T})),C(e),F(e),N([]),(null==L?void 0:L.id)!==(null==e?void 0:e.id)){D();let e=!!(null==w?void 0:w.offerCode)||!!(null==w?void 0:w.offerCustomCode),t=P&&P.length>0;B&&(e||t)&&(U(),M(),(null==V?void 0:V.idpCustomerId)&&((0,g.eH)(V.idpCustomerId),(0,g.SD)(V.idpCustomerId)))}},[L,T,F,k,C,R,N,D,ea.pathname,B,w,P,null==V?void 0:V.idpCustomerId,U,M]),e_=(0,o.useCallback)(()=>{W()},[G]);return{nearbyLocations:ec,selectedLocation:a,favoriteLocations:J,filteredFavoriteLocations:X,isLocationFavorited:$,loading:ee,toggleFavoriteLocation:et,fetchFavoriteLocationsError:en,isAbleToFetchMoreLocations:Q,locationsSearchStatus:K,allLoadedLocations:z,moreLocationsFetchStatus:j,locationQuery:ei,handleMapLocationSelect:(0,o.useCallback)(e=>{y(e),A({type:m.Vd,payload:{location:e}})},[A]),handleViewMoreLocations:e_,handleSearch:ef,handleSearchInputKeyPress:e=>{e.key},handleLocationSelect:(0,o.useCallback)(e=>{y(e),A({type:m.Qw,payload:{location:e}})},[A]),handleLocationSet:ep,handleUseMyLocation:(0,o.useCallback)(async()=>{A({type:m.R8});let e=await Y();A({type:p.Nw.setUserLocation,payload:e})},[A,Y]),hasCoordinates:x,handleSearchByCoordinates:H}}},52508:function(e,t,n){n.d(t,{C8:function(){return u},K_:function(){return r},Pw:function(){return l},Qz:function(){return s},Ur:function(){return d},WD:function(){return o},dE:function(){return i},gY:function(){return a},uU:function(){return c}});let a=50,i=50,r=10,o=10,l="open_now",s=[l,"24_hour"],u={online_ordering:{name:"Online Ordering",key:"features.isDigitallyEnabled",value:!0},open_now:{name:"Open Now",key:"status",value:!0},"24_hour":{name:"24 Hour Service",key:"locationHours",value:!0},drive_thru:{name:"Drive-Thru",key:"pickupOptions.isDriveThroughEnabled",value:!0},carry_out:{name:"Carry Out",key:"pickupOptions.isCarryOutEnabled",value:!0},curbside:{name:"Curbside",key:"pickupOptions.isCurbsidePickupEnabled",value:!0},dine_in:{name:"Dine In",key:"features.hasDineIn",value:!0},stall:{name:"Stall",key:"pickupOptions.hasStall",value:!0},patio:{name:"Patio",key:"pickupOptions.hasPatio",value:!0},mobile_express:{name:"Mobile Express",key:"pickupOptions.hasMobileExpress",value:!0},walk_up:{name:"Walk-Up",key:"pickupOptions.isWalkUpEnabled",value:!0},fullservice_bar:{name:"Full Service Bar",key:"restaurantInfo.restaurantFormat",value:"FULLSERVICE"},bww_go:{name:"BWW Go",key:"restaurantInfo.restaurantFormat",value:"PICKUP_DELIVERY"},combo_store:{name:"Baskin & Dunkin' Store",key:"restaurantInfo.restaurantFormat",value:"COMBO_STORE"},beverage_only:{name:"Beverages Only",key:"restaurantInfo.restaurantFormat",value:"BEVERAGE_ONLY"},wifi:{name:"WiFi",key:"features.isWifiEnabled",value:!0},delivery:{name:"Delivery",key:"features.isDeliveryEnabled",value:!0},big_screen:{name:"Big Screen",key:"features.hasBigScreenTvs",value:!0},blazin_rewards:{name:"Blazin Rewards",key:"features.blazinRewards",value:!0},ufc_viewing:{name:"UFL Viewing",key:"features.ufcViewing",value:!0},dunkin_rewards:{name:"Dunkin' Rewards",key:"features.dunkinCardEnabled",value:!0},mobile_payment:{name:"Mobile Payment",key:"features.isMobilePayment",value:!0},kosher:{name:"Kosher",key:"features.kosher",value:!0},kcups:{name:"K-Cups",key:"features.kCups",value:!0},hot_foods:{name:"Hot Foods Available",key:"features.turboOven",value:!0},radius_5:{name:"5 miles",key:"radius",value:"5"},radius_10:{name:"10 miles",key:"radius",value:"10"},radius_15:{name:"15 miles",key:"radius",value:"15"}},c={ignite:{categories:[{name:"Status",filters:["open_now","24_hour","online_ordering"]},{name:"Features",filters:["wifi"]},{name:"Distance",filters:["radius_5","radius_10","radius_15"]}],quickFilters:["open_now","online_ordering"],preSelectedFilters:[]},arbys:{categories:[{name:"Status",filters:["open_now","24_hour","online_ordering"]},{name:"Pickup Options",filters:["drive_thru","carry_out","curbside","dine_in"]},{name:"Features",filters:["wifi","delivery"]},{name:"Distance",filters:["radius_5","radius_10","radius_15"]}],quickFilters:["drive_thru","carry_out","open_now","online_ordering"],preSelectedFilters:[]},bww:{categories:[{name:"Status",filters:["open_now","24_hour","online_ordering"]},{name:"Restaurant Type",filters:["fullservice_bar","bww_go"]},{name:"Features",filters:["big_screen","wifi","blazin_rewards","ufc_viewing"]},{name:"Distance",filters:["radius_5","radius_10","radius_15"]}],quickFilters:["open_now","bww_go","online_ordering"],preSelectedFilters:[]},sdi:{categories:[{name:"Status",filters:["open_now","24_hour","online_ordering"]},{name:"Pickup Options",filters:["drive_thru","stall","patio","mobile_express"]},{name:"Features",filters:["wifi"]},{name:"Distance",filters:["radius_5","radius_10","radius_15"]}],quickFilters:["drive_thru","open_now","online_ordering"],preSelectedFilters:[]},dun:{categories:[{name:"Status",filters:["open_now","24_hour","online_ordering"]},{name:"Pickup Options",filters:["drive_thru","dine_in","curbside","walk_up"]},{name:"Restaurant Type",filters:["combo_store","beverage_only"]},{name:"Features",filters:["dunkin_rewards","mobile_payment","kosher","wifi","kcups","hot_foods"]},{name:"Distance",filters:["radius_5","radius_10","radius_15"]}],quickFilters:["drive_thru","online_ordering","curbside","open_now","mobile_payment"],preSelectedFilters:[]}},d={status:"boolean",locationHours:"boolean",radius:"5|10|15","features.isDigitallyEnabled":"boolean","features.isWifiEnabled":"boolean","pickupOptions.isDriveThroughEnabled":"boolean","pickupOptions.isCarryOutEnabled":"boolean","pickupOptions.isDineInEnabled":"boolean","pickupOptions.isCurbsidePickupEnabled":"boolean","pickupOptions.isStallEnabled":"boolean","pickupOptions.isPatioEnabled":"boolean","pickupOptions.isMobileExpressEnabled":"boolean","features.hasDineIn":"boolean","features.isDeliveryEnabled":"boolean","restaurantInfo.restaurantFormat":"BEVERAGE_ONLY|COMBO_STORE|FULLSERVICE|PICKUP_DELIVERY","restaurantInfo.parkingSpaces":"number","features.hasBigScreenTvs":"boolean","features.blazinRewards":"boolean","features.ufcViewing":"boolean","pickupOptions.hasStall":"boolean","pickupOptions.hasPatio":"boolean","pickupOptions.hasMobileExpress":"boolean","pickupOptions.isWalkUpEnabled":"boolean","features.dunkinCardEnabled":"boolean","features.isMobilePayment":"boolean","features.kosher":"boolean","features.kCups":"boolean","features.turboOven":"boolean"}},40760:function(e,t,n){n.d(t,{g:function(){return c}});var a=n(67294),i=n(65454),r=n(58503),o=n(96328),l=n(65811),s=n(52508);function u(e){console.warn("Using fallback configuration due to validation errors:",e);let t=s.uU.bww||s.uU.ignite;return{categories:t.categories,availableQuickFilters:t.quickFilters,availableDefaultFilters:t.preSelectedFilters,filtersMap:s.C8}}function c(){let[e]=(0,r.Ym)(i.hy.IGNITE_LOCATION_FILTERS),t=e.enabled;return(0,a.useMemo)(()=>
1{if(!t)return{enabled:!1,config:{filters:{categories:null,availableQuickFilters:[],availableDefaultFilters:[],filtersMap:null},serverPageSize:s.gY,locationRadius:s.dE,resultThreshold:s.WD,clientPageSize:s.K_}};let n=e.variables,a=(0,o.z)(null==n?void 0:n.location_limit,s.gY),i=(0,o.z)(null==n?void 0:n.location_radius,s.dE),r=(0,o.z)(null==n?void 0:n.result_threshold,s.WD),c=(0,o.z)(null==n?void 0:n.loc_results_page_size,s.K_);return{enabled:!0,config:{filters:function(e,t){var n,a,i;let r=[];if(!t||"object"!=typeof t){let e="Location Filters Validation failed: filters_map is not an object";return l.kg.error(e),u([e])}for(let[e,a]of Object.entries(t)){if(!("string"==typeof e&&e.trim().length>0)){r.push('Invalid filter key in filters_map: "'.concat(e,'" - must be a non-empty string'));continue}if(!("object"==typeof a&&null!==a&&(void 0===a.key||"string"==typeof a.key)&&(void 0===a.value||"string"==typeof a.value||"boolean"==typeof a.value||"number"==typeof a.value))){r.push('Invalid filter object for "'.concat(e,'" in filters_map - must follow IFilterOption interface'));continue}if(!a.key){r.push('Missing key for filter "'.concat(e,'" in filters_map'));continue}if(!("string"==typeof(n=a.key)&&n in s.Ur)){r.push('Unknown filter key "'.concat(a.key,'" for "').concat(e,'" in filters_map'));continue}if(void 0===a.value){r.push('Missing value for filter "'.concat(e,'" in filters_map'));continue}if(!function(e,t){let n=s.Ur[e];if("boolean"===n)return"boolean"==typeof t;if(n.includes("|")){let e=n.split("|");return"string"==typeof t&&e.includes(t)}return"number"===n&&"number"==typeof t}(a.key,a.value)){let t=s.Ur[a.key];r.push('Invalid value for filter "'.concat(e,'" with key "').concat(a.key,'" - expected ').concat(t,", got: ").concat(a.value));continue}}if(!e||"object"!=typeof e){let e="Location Filters Validation failed: filters config is not an object";return l.kg.error(e),u([e])}if(Array.isArray(e.categories))for(let n of e.categories){if(!n||"object"!=typeof n){r.push("Invalid category: must be an object");continue}if(!("string"==typeof(a=n.name)&&a.trim().length>0)){r.push('Invalid category name: "'.concat(n.name,'" - must be a non-empty string'));continue}if(!Array.isArray(n.filters)){r.push('Category "'.concat(n.name,'" must have a filters array'));continue}if(!(Array.isArray(i=n.filters)&&0!==i.length&&i.every(e=>"string"==typeof e))){r.push('Category "'.concat(n.name,'" filters must be a non-empty array of strings'));continue}for(let e of n.filters)t[e]||r.push('Filter "'.concat(e,'" in category "').concat(n.name,'" not found in filters_map'))}else r.push("Invalid filters config: categories must be an array");if(void 0!==e.quickFilters){if(Array.isArray(e.quickFilters))for(let n of e.quickFilters)t[n]||r.push('Quick filter "'.concat(n,'" not found in filters_map'));else r.push("Invalid filters config: quickFilters must be an array")}if(void 0!==e.preSelectedFilters){if(Array.isArray(e.preSelectedFilters))for(let n of e.preSelectedFilters)t[n]||r.push('Pre-selected filter "'.concat(n,'" not found in filters_map'));else r.push("Invalid filters config: preSelectedFilters must be an array")}return r.length>0?(l.kg.error("Location Filters Validation failed with the following errors: ",r.map(e=>"".concat(e)).join(", ")),u(r)):{categories:e.categories,availableQuickFilters:e.quickFilters||[],availableDefaultFilters:e.preSelectedFilters||[],filtersMap:t}}(null==n?void 0:n.filters,null==n?void 0:n.filters_map),serverPageSize:a,clientPageSize:c,locationRadius:i,resultThreshold:r}}},[t,e.variables])}},44673:function(e,t,n){n.d(t,{M:function(){return o}});var a=n(10135),i=n(65454),r=n(58503);function o(){var e;let[t]=(0,r.Ym)(i.hy.IGNITE_LOCATION_VIEW_MORE_LIMIT);return t.enabled&&"number"==typeof(null===(e=t.variables)||void 0===e?void 0:e.locationMaxCount)?t.variables.locationMaxCount:a.oh}},68017:function(e,t,n){n.d(t,{v:function(){return u}});var a=n(67294),i=n(2185),r=n(37315),o=n(31061),l=n(63002),s=n(80839);let u=()=>{let e=(0,i.I0)(),{defaultFilters:t,appliedFilters:n,quickFilters:u,fullFiltersMap:c,isFiltersEnabled:d}=(0,i.v9)(e=>e.locationFilters),f=(0,a.useMemo)(()=>
1{if(!c)return[];let e=u.filter(e=>n.includes(e)),t=u.filter(e=>!n.includes(e));return[...e,...n.filter(e=>!u.includes(e)),...t].map(e=>{let t=null==c?void 0:c[e];return{label:(null==t?void 0:t.name)||e,value:String(e),isActive:n.includes(e)}})},[n,u,c]);return{defaultFilters:t,appliedFilters:n,barFiltersList:f,isFiltersEnabled:d,applyFilter:(t,a,i)=>{let u=n.includes(t)?n.filter(e=>e!==t):[...n,t];e({type:s.QI,payload:{filter_interaction:n.includes(t)?r.Ex:r.PO,filter_values:0===u.length?o.NV:u.map(e=>i[e].name).filter(Boolean),filter_placement:a}}),e((0,l.sI)(u))},applyFilters:(t,n,a)=>{e({type:s.QI,payload:{filter_interaction:r.aq,filter_values:0===t.length?o.NV:t.map(e=>a[e].name).filter(Boolean),filter_placement:n}}),e((0,l.sI)(t))},resetFilters:()=>{e((0,l.aw)())},updateInitState:t=>{let{availableDefaultFilters:a,availableQuickFilters:i,filtersMap:r}=t.config.filters;e((0,l.BZ)(a)),e((0,l.HG)(i)),e((0,l.sI)(n.length?n:a)),e((0,l.bn)(r)),e((0,l.mF)(!!t.enabled))}}}},86740:function(e,t,n){n.d(t,{Yy:function(){return a},b6:function(){return r},xb:function(){return i}});let a=/^radius_(\d+)$/,i=e=>"string"==typeof e.value?"".concat(e.key,"|").concat(e.value):e.key;function r(e){let t=e.find(e=>a.test(e));if(!t)return null;let[,n]=t.split("_");return Number(n)}},31324:function(e,t,n){n.d(t,{cR:function(){return o},ec:function(){return s},nn:function(){return l}});var a=n(82757),i=n(52508),r=n(86740);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return e.categories&&e.filtersMap?e.categories.map(o=>{let l=o.name,s="distance"===l.toLowerCase();return!i&&s?null:{label:l,id:l.toLowerCase().replace(/\s+/g,"-")+"ID",type:s?"single-select":void 0,value:o.filters.map(i=>{let o=e.filtersMap[i];if(!o)return null;let l=(0,r.xb)(o),s=a.sY[l]||a.sY._default;return{label:o.name,count:"radius"===o.key?(0,a.HB)(t,+String(o.value)):t.filter(s).length,checked:n.includes(i),value:i}}).filter(Boolean)}}).filter(Boolean):[]},l=e=>e.flatMap(e=>e.value.filter(e=>e.checked).map(e=>e.value)),s=(e,t)=>{let n=e.filter(e=>!i.Qz.includes(e)&&!r.Yy.test(e)),a={};return n.forEach(e=>{let n=t[e],i=(0,r.xb)(n);if(i.includes("|")){let[e,t]=i.split("|"),n=a[e];Array.isArray(n)?n.push(t):a[e]=[t]}else"number"==typeof n.value?a[i]=[String(n.value)]:a[i]=["true"]}),a}},23620:function(e,t,n){var a=n(4842),i=n(88832),r=n(32395),o=n(78269);let l=async(e,t)=>{try{var n;let r=JSON.parse(sessionStorage.getItem(i.o.LOCATION_GEOCODE_CACHE)||"{}");if(r["".concat(e)]){let{latitude:t,longitude:n}=r["".concat(e)][0]||{};if(null!=t&&null!=n)return{lat:t,lng:n}}let o=JSON.parse(sessionStorage.getItem(i.o.LOCATION_CACHE)||"{}");if(o["".concat(e)]){let{latitude:t,longitude:n}=o["".concat(e)][0]||{};if(null!=t&&null!=n)return{lat:t,lng:n}}let l=JSON.parse(sessionStorage.getItem(i.o.LOCATION_CACHE_LATEST_QUERY)||"[]").find(t=>t.formattedAddress==="".concat(e));if(l)return{lat:l.latitude,lng:l.longitude};let s=new URL(a.DL.searchAutoComplete);s.searchParams.append("query","".concat(e)),s.searchParams.append("country","US"),s.searchParams.append("limit","1"),t&&s.searchParams.append("layers","postalCode");let u=await fetch(s.toString(),{method:"GET",headers:{Authorization:"prj_live_pk_d7bffa884e15321b7dca135010f86682359638a7","Content-Type":"application/json"}});if(!u.ok)throw Error("Request failed: ".concat(u.status," ").concat(u.statusText));let{addresses:c}=await u.json(),{latitude:d,longitude:f}=null!==(n=c[0])&&void 0!==n?n:{};if(null==d||null==f)throw Error("Geocode failed: coordinates not found for address ".concat(e));let p=JSON.parse(sessionStorage.getItem(i.o.LOCATION_GEOCODE_CACHE)||"{}");return p["".concat(e)]=c,sessionStorage.setItem(i.o.LOCATION_GEOCODE_CACHE,JSON.stringify(p)),{lat:d,lng:f}}catch(t){throw(0,r.H)("RADAR_GET_COORDINATES",t),(0,o.Z)(t),Error("Failed to get coordinates for ".concat(e))}};t.Z=l},78269:function(e,t,n){var a=n(32395);let{Location:{RADAR_API_BAD_REQ_TO_FETCH_LOCATION_ERROR_MESSAGE:i,RADAR_API_UNAUTHORIZED_TO_FETCH_LOCATION_ERROR_MESSAGE:r,RADAR_API_PAYMENT_REQUIRED_TO_FETCH_LOCATION_ERROR_MESSAGE:o,RADAR_API_FORBIDDEN_ACCESS_TO_FETCH_LOCATION_ERROR_MESSAGE:l,RADAR_API_LOCATION_NOT_FOUND_ERROR_MESSAGE:s,RADAR_API_CONFLICT_TO_FETCH_LOCATION_ERROR_MESSAGE:u,RADAR_API_HIGH_TRAFFIC_TO_FETCH_LOCATION_ERROR_MESSAGE:c,RADAR_API_COUNTRY_BLOCKLISTED_ERROR_MESSAGE:d}}=n(72517).default;t.Z=e=>{if(e.message.includes("400"))throw(0,a.H)("RADAR_BAD_REQUEST",e),Error(i);if(e.message.includes("401"))throw(0,a.H)("RADAR_UNAUTHORIZED_ACCESS",e),Error(r);if(e.message.includes("402"))throw(0,a.H)("RADAR_PAYMENT_REQUIRED",e),Error(o);if(e.message.includes("403"))throw(0,a.H)("RADAR_FORBIDDEN_ACCESS",e),Error(l);
1if(e.message.includes("404"))throw(0,a.H)("RADAR_NOT_FOUND",e),Error(s);if(e.message.includes("409"))throw(0,a.H)("RADAR_CONFLICT",e),Error(u);if(e.message.includes("429"))throw(0,a.H)("RADAR_RATE_LIMIT_EXCEEDED",e),Error(c);if(e.message.includes("451"))throw(0,a.H)("RADAR_COUNTRY_BLOCKLISTED",e),Error(d)}},89989:function(e,t,n){var a=n(91886),i=n(77717),r=n(70234),o=n(4177),l=n(61642),s=n(13860),u=n(46614),c=n(66974);let d=new l.c,f=(0,s.Um)(a.Mth).withPostMiddleware(d.post.bind(d)),p=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,u.ZP)("searchLocationByCoordinates",f.locationsControllerGetLocationsV1.bind(f)),a=await n({xSessionId:(0,c.W2)(),xChannel:i.GV,latitude:e.lat,longitude:e.lng,radius:50,limit:10,page:t,locale:(0,r.K)()});return(0,o.nW)(a)};t.Z=p},55340:function(e,t,n){var a=n(91886),i=n(77717),r=n(4177),o=n(61642),l=n(13860),s=n(46614),u=n(66974);let c=new o.c,d=(0,l.Um)(a.Mth).withPostMiddleware(c.post.bind(c)),f=async e=>{let{coordinates:t,page:n,limit:a=10,radius:o=50,appliedFilters:l}=e,c=(0,s.ZP)("searchLocationWithFilters",d.locationsControllerSearchLocationsV1.bind(d)),f=await c({xSessionId:(0,u.W2)(),xChannel:i.GV,locationSearchRequestModel:{query:{area:{latitude:t.lat,longitude:t.lng,radius:o}},size:a,...void 0!==l&&{filter:l},...void 0!==n&&{page:n}}});return(0,r.nW)(f)};t.Z=f},37315:function(e,t,n){n.d(t,{Ex:function(){return i},F$:function(){return s},Lm:function(){return c},NV:function(){return o},PO:function(){return r},aq:function(){return u},nt:function(){return l},ss:function(){return a}});let a="No stores nearby match your selected options. Try adjusting your filters.",i="CTA Deselect",r="CTA Select",o="No Filters",l="Impression",s="Close",u="CTA Click",c="Locations"},10135:function(e,t,n){n.d(t,{Cb:function(){return a},LOCATE_ME_API_ERROR:function(){return m},Lj:function(){return s},MU:function(){return v},QG:function(){return g},TP:function(){return u},Vb:function(){return o},XR:function(){return p},Y$:function(){return f},ZN:function(){return c},_8:function(){return r},_k:function(){return _},c6:function(){return i},gW:function(){return d},oh:function(){return E},u9:function(){return l}});let a="View Menu",i="View Deals",r="primary",o="secondary",l="COMING_SOON",s="ComingSoon",u="Default",c="OAUnavailable",d="/menu",f="/",p="/account/deals",_=!1,E=50,v=10,g="We're unable to fetch the location due to an external issue. Please try again later for nearby search.",m={fields:{header:"We’re Sorry",body:"We can’t find your nearest location at this time, please try again."}}}}]);
2//# sourceMappingURL=2759-ede4fcac022b7829.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.