PageSourceSearch

https://www.dunkindonuts.com/_next/static/chunks/pages/account-d13ee4aa71d738e3.js

js dunkindonuts.com collected 2026-09-24 08:26:19 UTC 9,287 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966,1404],{47017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return t(84029)}])},29554:function(e,n,t){"use strict";t.d(n,{X:function(){return l}});var i=t(52867),a=t(25418);function l(e,n){let{quality:t,width:l,maxWidth:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{quality:100,width:200},{imageUrl:o,isCloudflareImage:u}=(0,i.Y)(e,n),s=u&&o?(0,a.NY)(o,l):o,d=(0,a.q$)(o,a.xS.AUTO,t,u,r);return{imageUrl:o,imageSrcset:d,imageUrlWithVariants:s}}},52867:function(e,n,t){"use strict";t.d(n,{Y:function(){return a}});let i=e=>null==e?void 0:e.replace(/^http:\/\//i,"https://"),a=(e,n,t,a)=>{var l,r,o,u;let s=!!(null==n?void 0:n.url);return a?{imageUrl:s?"".concat(n.url,"/f=").concat(a.format,",w=").concat(a.width,",q=").concat(a.quality):"https:".concat(null==e?void 0:null===(u=e.fields)||void 0===u?void 0:null===(o=u.file)||void 0===o?void 0:o.url),isCloudflareImage:s}:{imageUrl:i((null==n?void 0:n.url)||(null==e?void 0:null===(r=e.fields)||void 0===r?void 0:null===(l=r.file)||void 0===l?void 0:l.url)||t||""),isCloudflareImage:s}}},81295:function(e,n,t){"use strict";t.d(n,{r:function(){return l},u:function(){return i}});let i=e=>"isRedeemableInStoreOnly"in e&&"userOfferId"in e&&void 0!==e.userOfferId,a=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),l=(e,n,t,i,l)=>!!a(e)&&(null==e||!e.isLocked||!!(i&&l===e.userOfferId))&&(!n&&!!t||!0!==e.isRedeemableInStoreOnly)},52309:function(e,n,t){"use strict";t.d(n,{_:function(){return i},j:function(){return a}});let i=(e,n)=>a(e,"".concat(e,"s"),n),a=(e,n,t)=>1===t?e:n},55022:function(e,n,t){"use strict";t.d(n,{U:function(){return m}});var i=t(67294),a=t(27439),l=t(65454),r=t(58503),o=t(9903),u=t(32249),s=t(81295);let d=(e,n,t)=>e?n(e):t(),c=e=>{var n;return"string"==typeof e?e:null!==(n=null==e?void 0:e.offerCode)&&void 0!==n?n:""},f=(e,n,t,i,a)=>(0,s.u)(e)&&(0,s.r)(e,n,t,i,a),v=(e,n,t,i)=>e.filter(e=>f(e,n,t,null==e?void 0:e.isLocked,i)),m=e=>{let{getApplicableOffers:n,getNationalOffers:t,instoreCode:s,totalCount:f}=e,{currentLocation:m}=(0,a.Z)(),{isDesktop:_}=(0,u.E)(),{isLWLEnabledForUser:p}=(0,o.L)(),[E]=(0,r.Ym)(l.hy.ENABLE_INSTORE_REDEMPTION),N=c(s),h=(0,i.useMemo)(()=>v(d(null==m?void 0:m.id,n,t),_,E.enabled,N),[null==m?void 0:m.id,n,t,_,E.enabled,N]),g=(0,i.useMemo)(()=>p?f:h.length,[p,h.length,f]);return{isBonus:!!g,rewardsCount:g,offersList:h}}},51136:function(e,n,t){"use strict";var i=t(67294),a=t(5247),l=t(20203),r=t(88582),o=t(55022),u=t(65454),s=t(22141),d=t(156),c=t(58503),f=t(9903);n.Z=e=>{let[n]=(0,s.J)(),{isMyTeamsEnabled:t}=(0,d.M)(),[v]=(0,c.Ym)(u.hy.ENABLE_ITEM_FAVORITING),[m]=(0,c.Ym)(u.hy.NOTIFICATION_PREFERENCE_CENTER_ENABLED),_=(0,a.B)(),{totalCount:p}=_,{rewardsCount:E}=(0,o.U)(_),{isLWLEnabledForUser:N}=(0,f.L)();return{navigationLinks:(0,i.useMemo)(()=>(0,r.gb)(e,N,{isFavoriteLocationsEnabled:n,isFavoriteItemsEnabled:v.enabled,isNotificationPreferenceCenterEnabled:m.enabled,isMyTeamsEnabled:t}).map(e=>e.type===l.nA||e.type===l.OU?{...e,count:E}:e),[p,E,N,n,v.enabled,m.enabled,t])}}},22141:function(e,n,t){"use strict";t.d(n,{J:function(){return l}});var i=t(65454),a=t(58503);function l(){let[e]=(0,a.Ym)(i.hy.IGNITE_LOCATION_FAVORITES_ENABLED);return[e.enabled]}},26099:function(e,n,t){"use strict";t.d(n,{F:function(){return i}});let i=(e,n)=>"boolean"==typeof e?e:n},43209:function(e,n,t){"use strict";var i=t(85893),a=t(94184),l=t.n(a),r=t(67294),o=t(52867),u=t(25418);n.Z=(0,r.memo)(function(e){var n,t,a,r;let{asset:s,imageUrl:d,maxWidth:c,className:f,inlineStyles:v,gtmId:m,imageAlt:_,dataTestId:p,quality:E,objectFitClass:N,width:h,height:g,loading:C="lazy",priority:b=!1,ariaHidden:y=!1,cloudflareImage:O,onError:x,isBonus:A,iconDotStyle:w}=e;if(!(null==s?void 0:null===(t=s.fields)||void 0===t?void 0:null===(n=t.file)||void 0===n?void 0:n.url)&&!(null==O?void 0:O.url)&&!d)return null;let{imageUrl:I,isCloudflareImage:k}=(0,o.Y)(s,O,d),T=A&&(0,i.jsx)("span",{className:w,role:"img","aria-label":"indicator"});return(0,i.jsxs)("picture",{"data-gtm-id":m,style:{display:"flex"},children:[(0,i.jsx)("source",{type:"image/avif","data-gtm-id":m,srcSet:(0,u.q$)(I,u.xS.AVIF,E,k,c),sizes:(0,u.gE)(c)}),(0,i.jsx)("source",{type:"image/webp","data-gtm-id":m,srcSet:(0,u.q$)(I,u.xS.WEBP,E,k,c),sizes:(0,u.gE)(c)}),(0,i.jsx)("img",{"data-gtm-id":m,"data-testid":p,alt:null!=_?_:(null==s?void 0:null===(a=s.fields)||void 0===a?void 0:a.description)||(null==s?void 0:null===(r=s.fields)||void 0===r?void 0:r.title)||(null==O?void 0:O.name),src:"".concat(I,"?&q=").concat(E||u.zJ).concat(c?"&w=".concat(c):""),className:l()(f,N),style:{...!N&&{objectFit:"contain"},...v},...h&&{width:h},...g&&{height:g},loading:C,...b&&{fetchpriority:"high"},...y&&{"aria-hidden":y},...x&&{onError:x}}),A&&T]})})},84029:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return M},default:function(){return U}});var i=t(85893),a=t(11163),l=t(67294),r=t(20203),o=t(58602),u=t(51136),s=t(15749),d=t(32395),c=t(69993),f=t(48322),v=t(83814),m=t(34530),_=t
1(32249),p=t(72517),E=t(73658),N=t(44358),h=t(10008),g=t(79775),C=t(52309),b=t(55022),y=t(9903),O=t(65264),x=t(85980),A=t(92681),w=t(82516),I=t(5247),k=t(55233),T=t.n(k);function j(e){let{count:n,label:t,link:a,linkText:l,isMobile:r}=e;return(0,i.jsxs)("div",{className:T().rewardDetails,children:[(0,i.jsxs)("span",{className:T().rewardCount,children:[(0,i.jsx)("span",{className:"ty-heading-hero-subhead",children:n}),(0,i.jsx)("span",{className:"ty-heading-subhead-3","cms-id":(0,g.l)(t),children:t})]}),a&&l&&(0,i.jsx)(v.vmT,{link:a,text:l,linkClass:T().rewardLink,type:r?"secondary":"primary"})]})}var L=function(e){var n,t;let{links:a}=e,{Account:{ACCOUNT_DASHBOARD_PTS_TEXT:l,ACCOUNT_DASHBOARD_PTS_LINK_TEXT:o,ACCOUNT_DASHBOARD_REWARDS_TEXT:u="REWARDS",ACCOUNT_DASHBOARD_REWARDS_TEXT_SINGULAR:s="REWARD",ACCOUNT_DASHBOARD_REWARDS_LINK_TEXT:d}}=p.default,{account:c}=(0,x.Z)(),{loyalty:f,error:v}=(0,A.Z)(),{loyaltyV2:m,error:E}=(0,w.Z)(),N=(0,I.B)(),{rewardsCount:g}=(0,b.U)(N),{isLWLFeatureEnabled:k,isLWLEnabledForUser:L}=(0,y.L)(),{isMobile:S}=(0,_.E)(),R=k?m:f,D=c&&!(k?E:v)&&(!h.BX||L),P=null===(n=a.find(e=>e.type===r.OU))||void 0===n?void 0:n.link,B=null===(t=a.find(e=>e.type===r.wS))||void 0===t?void 0:t.link,M=D&&(null==R?void 0:R.pointsBalance)>=0,U=D&&g>=0;if(!M&&!U)return null;let F=(0,C.j)(s,u,g);return(0,i.jsxs)("div",{className:T().rewardsContainer,children:[M&&(0,i.jsx)(j,{count:(0,O.uf)(R.pointsBalance),label:l,link:B,linkText:o,isMobile:S}),U&&(0,i.jsx)(j,{count:g,label:F,link:P,linkText:d,isMobile:S})]})},S=(0,l.memo)(function(e){let{links:n}=e,{Common:{LOGOUT:t}}=p.default,{logoutAndClearCookies:r}=(0,m.a)(),o=(0,E.Z)(),{actions:{clearFavorites:u}}=(0,N.Z)(),s=(0,a.useRouter)(),{isMobile:d}=(0,_.E)(),c=(0,l.useCallback)(e=>{e.preventDefault();let[n,t]=(e.detail.link||"").split("?"),i=t?Object.fromEntries(new URLSearchParams(t)):void 0;s.push({pathname:n,query:i})},[s]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:T().linkContainer,children:[(0,i.jsx)(L,{links:n}),(0,i.jsx)("div",{className:T().accountDashboardCardLayout,children:n.map((e,n)=>{let{icon:t,link:a,name:l,description:r,count:o,shortDescription:u}=e;return t&&(0,i.jsx)(v.iWF,{onItemClick:c,label:l,description:null!=u?u:r,link:a,icon:t.contentfulDisplayImage,count:o},n)})})]}),(0,i.jsx)(v.vmT,{onLinkClicked:e=>{e.preventDefault(),o.actions.removeDealFromBag(),o.actions.handlePromoCode({code:null,userOfferId:null,appliedPromoCodeError:null}),u(),r()},type:d?"secondary":"primary",text:t})]})}),R=t(88541),D=t(44280),P=t(1175),B=t.n(P),M=!0,U=(0,o.u)(function(e){let n=performance.now(),{accountInfo:t}=(0,x.Z)(),o=(0,D.Z)(),v=(0,a.useRouter)(),{accountSections:m}=e,{userAccountMenu:_}=m,{navigationLinks:p}=(0,u.Z)(_);if((0,l.useEffect)(()=>{let e=Math.round(performance.now()-n);(0,d.Kz)(s.LOGGER_EVENTS.ACCOUNT_PAGE_VIEW,{uiLoadTimeMs:e,"context.pageName":s.PAGE_NAME.ACCOUNT}),(0,c.oF)(f.o.ACCOUNT_UI_LOAD_TIME_MS,e,{appSection:s.SECTION_NAME.GLOBAL}),(0,c.oF)(f.o.ACCOUNT_PAGE_VIEWS_TOTAL,1,{appSection:s.SECTION_NAME.GLOBAL})},[]),!t)return(0,i.jsx)("div",{role:"region","aria-label":"Account Page"});let E=null==m?void 0:m.accountHeader,N="Hi ".concat(t.firstName,"!");return(0,i.jsx)(R.Z,{globalProps:o,accountHeader:E,fromPage:r.yV,greetMessage:N,pageWrapperClassName:B().wrapperClass,children:(0,i.jsx)(S,{links:p,currentPath:v.pathname})})},{loginOptions:{authorizationParams:{isIDP:!0}}})},55233:function(e){e.exports={linkContainer:"accountNavigation_linkContainer__DjWTa",rewardsContainer:"accountNavigation_rewardsContainer__AHAgn",rewardDetails:"accountNavigation_rewardDetails__bE88l",rewardCount:"accountNavigation_rewardCount___QY4d",rewardLink:"accountNavigation_rewardLink__AEFev",accountDashboardCardLayout:"accountNavigation_accountDashboardCardLayout__DBhWB",divider:"accountNavigation_divider__BRqlv"}},1175:function(e){e.exports={wrapperClass:"account_wrapperClass__A0GYZ"}}},function(e){e.O(0,[1664,3404,1629,97,5725,3419,8931,2888,9774,179],function(){return e(e.s=47017)}),_N_E=e.O()}]);
2//# sourceMappingURL=account-d13ee4aa71d738e3.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.