PageSourceSearch

https://www.dunkindonuts.com/_next/static/chunks/6214-bc3f317046acdac4.js

js dunkindonuts.com collected 2026-09-24 08:26:06 UTC 7,241 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6214],{90555:function(l,i,e){"use strict";e.d(i,{F:function(){return n}});let n=l=>(null==l?void 0:l.productIdList)&&l.productIdList.length?l.productIdList:[null==l?void 0:l.productId]},29554:function(l,i,e){"use strict";e.d(i,{X:function(){return d}});var n=e(52867),t=e(25418);function d(l,i){let{quality:e,width:d,maxWidth:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{quality:100,width:200},{imageUrl:o,isCloudflareImage:c}=(0,n.Y)(l,i),a=c&&o?(0,t.NY)(o,d):o,u=(0,t.q$)(o,t.xS.AUTO,e,c,r);return{imageUrl:o,imageSrcset:u,imageUrlWithVariants:a}}},52867:function(l,i,e){"use strict";e.d(i,{Y:function(){return t}});let n=l=>null==l?void 0:l.replace(/^http:\/\//i,"https://"),t=(l,i,e,t)=>{var d,r,o,c;let a=!!(null==i?void 0:i.url);return t?{imageUrl:a?"".concat(i.url,"/f=").concat(t.format,",w=").concat(t.width,",q=").concat(t.quality):"https:".concat(null==l?void 0:null===(c=l.fields)||void 0===c?void 0:null===(o=c.file)||void 0===o?void 0:o.url),isCloudflareImage:a}:{imageUrl:n((null==i?void 0:i.url)||(null==l?void 0:null===(r=l.fields)||void 0===r?void 0:null===(d=r.file)||void 0===d?void 0:d.url)||e||""),isCloudflareImage:a}}},13007:function(l,i,e){"use strict";e.d(i,{v:function(){return n}});let n=l=>l?l.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):""},43209:function(l,i,e){"use strict";var n=e(85893),t=e(94184),d=e.n(t),r=e(67294),o=e(52867),c=e(25418);i.Z=(0,r.memo)(function(l){var i,e,t,r;let{asset:a,imageUrl:u,maxWidth:s,className:v,inlineStyles:f,gtmId:m,imageAlt:k,dataTestId:g,quality:h,objectFitClass:y,width:p,height:x,loading:b="lazy",priority:_=!1,ariaHidden:j=!1,cloudflareImage:I,onError:C,isBonus:w,iconDotStyle:P}=l;if(!(null==a?void 0:null===(e=a.fields)||void 0===e?void 0:null===(i=e.file)||void 0===i?void 0:i.url)&&!(null==I?void 0:I.url)&&!u)return null;let{imageUrl:U,isCloudflareImage:N}=(0,o.Y)(a,I,u),L=w&&(0,n.jsx)("span",{className:P,role:"img","aria-label":"indicator"});return(0,n.jsxs)("picture",{"data-gtm-id":m,style:{display:"flex"},children:[(0,n.jsx)("source",{type:"image/avif","data-gtm-id":m,srcSet:(0,c.q$)(U,c.xS.AVIF,h,N,s),sizes:(0,c.gE)(s)}),(0,n.jsx)("source",{type:"image/webp","data-gtm-id":m,srcSet:(0,c.q$)(U,c.xS.WEBP,h,N,s),sizes:(0,c.gE)(s)}),(0,n.jsx)("img",{"data-gtm-id":m,"data-testid":g,alt:null!=k?k:(null==a?void 0:null===(t=a.fields)||void 0===t?void 0:t.description)||(null==a?void 0:null===(r=a.fields)||void 0===r?void 0:r.title)||(null==I?void 0:I.name),src:"".concat(U,"?&q=").concat(h||c.zJ).concat(s?"&w=".concat(s):""),className:d()(v,y),style:{...!y&&{objectFit:"contain"},...f},...p&&{width:p},...x&&{height:x},loading:b,..._&&{fetchpriority:"high"},...j&&{"aria-hidden":j},...C&&{onError:C}}),w&&L]})})},13148:function(l,i,e){"use strict";e.d(i,{e:function(){return v}});var n=e(85893),t=e(40645),d=e.n(t),r=e(41664),o=e.n(r),c=e(70820),a=e(44280),u=e(8077);let s=l=>{let{action:i,text:e,bgColor:t,children:r,...o}=l;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.T,{text:e,onClick:()=>{var l,e;null===(e=window)||void 0===e||null===(l=e.ketch)||void 0===l||l.call(e,i)},...o,children:r}),(0,n.jsx)(d(),{id:"7c6e830a46322b77",dynamic:[t],children:".backgroundColor.__jsx-style-dynamic-selector{background-color:#".concat(t,"}")})]})},v=l=>{var i;let{link:e,type:t,onClick:r,children:v,className:f,gtmId:m,cmsId:k,currentCategoryUrl:g,newtab:h,text:y,backgroundColor:p,...x}=l,b=null==p?void 0:null===(i=p.fields)||void 0===i?void 0:i.hexColor,{productDetailsPagePaths:_}=(0,a.Z)(),{href:j,isExternal:I,isPhone:C,name:w,ketchAction:P}=(0,c.v)(e,{productDetailsPagePaths:_,currentCategoryUrl:g});return P?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s,{action:P,text:w,isPhone:C,className:f,type:t,gtmId:m,cmsId:k,dataTestId:x.dataTestId,bgColor:b,children:v})}):I||C?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.T,{className:f,link:j,isPhone:C,text:w||y,onClick:r,gtmId:m,cmsId:k,type:t,newtab:null!=h?h:I,...x,children:v}),(0,n.jsx)(d(),{id:"f2a4bc9fd363fe26",dynamic:[b],children:".backgroundColor.__jsx-style-dynamic-selector{background-color:#".concat(b,"}")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:j,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(u.T,{className:f,text:w||y,onClick:r,gtmId:m,cmsId:k,type:t,newtab:h,...x,children:v})}),(0,n.jsx)(d(),{id:"7c6e830a46322b77",dynamic:[b],children:".backgroundColor.__jsx-style-dynamic-selector{background-color:#".concat(b,"}")})]})}},8077:function(l,i,e){"use strict";e.d(i,{T:function(){return a}});var n=e(85893),t=e(94184),d=e.n(t),r=e(67294),o=e(65552),c=e.n(o);let a=r.forwardRef((l,i)=>{let{link:e,isPhone:t,text:r,type:o,onClick:a,children:u,className:s,gtmId:v,cmsId:f,newtab:m,ariaLabel:k,dataTestId:g,...h}=l,y=d()(c().link,s,{[c().linkPrimaryActive]:"primary"===o,[c().linkSecondaryActive]:"secondary"===o});return(0,n.jsx)("a",{ref:i,onClick:l=>{null==a||a(l)},"data-gtm-id":v,"cms-id":f,className:y,href:t?"tel:".concat(e):e,"aria-label":k,"data-testid":g,tabIndex:0,onKeyPress:l=>{"Enter"===l.key&&(null==a||a(l))},...m&&{target:"_blank",rel:"noreferrer"},...h,children:u||r||e})})},70820:function(l,i,e){"use strict";e.d(i,{v:function(){return r}});var n=e(90555),t=e(13007);let d=l=>(null==l?void 0:l.fields)?l.fields.name:"",r=(l,i)=>{var e,r,o,c,a,u,s,v,f,m,k,g,h;let y;if("string"==typeof l)return{href:l,isExternal:!1,isPhone:!1};let p="/",x=!1,b=!1,_=!1,j=d(l);switch(null==l?void 0:null===(r=l.sys)||void 0===r?void 0:null===(e=r.contentType)||void 0===e?void 0:e.sys.id){case"externalLink":(p=(null==l?void 0:null===(o=l.fields)||void 0===o?void 0:o.nameInUrl)||"/").includes("service-now")&&(b=!0),x=!0;break;case"menuCategoryLink":p="/menu/categories/".concat((0,t.v)((null==l?void 0:null===(c=l.fields)||void 0===c?void 0:c.nameInUrl)||""));break;case"phoneNumberLink":p=(null==l?void 0:null===(a=l.fields)||void 0===a?void 0:a.phoneNumber)||"/",_=!0;break;case"product":{let e=null===(u=(0,n.F)(null==l?void 0:l.fields))||void 0===u?void 0:u[0],t=null==i?void 0:null===(s=i.productDetailsPagePaths)||void 0===s?void 0:s.find(l=>{if(null==i?void 0:i.currentCategoryUrl){var n;return l.productIds.includes(e)&&((null===(n=l.nestedCategoryOrPDPPageUrl)||void 0===n?void 0:n.includes(null==i?void 0:i.currentCategoryUrl))||l.menuCategoryUrl===(null==i?void 0:i.currentCategoryUrl))}return l.productIds.includes(e)});p=(null==t?void 0:t.productPath)||"/";break}case"documentLink":p=(null==l?void 0:null===(k=l.fields)||void 0===k?void 0:null===(m=k.document)||void 0===m?void 0:null===(f=m.fields)||void 0===f?void 0:null===(v=f.file)||void 0===v?void 0:v.url)||"/",x=!0;break;case"socialMediaLink":p=(null==l?void 0:null===(g=l.fields)||void 0===g?void 0:g.url)||"/",x=!0;break;case"ketchLink":y=l.fields.action;break;default:p=(null==l?void 0:null===(h=l.fields)||void 0===h?void 0:h.nameInUrl)?"/".concat(l.fields.nameInUrl):"/"}return{href:p,isExternal:x,name:j,isPhone:_,ketchAction:y,isServiceNow:b}}},65552:function(l){l.exports={link:"link_link__66WvR",linkSecondaryActive:"link_linkSecondaryActive__whUtQ link_vars_link__kHuQW",linkPrimaryActive:"link_linkPrimaryActive__qB9sS link_vars_link__kHuQW"}}}]);
2//# sourceMappingURL=6214-bc3f317046acdac4.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.