PageSourceSearch

https://www.tacobell.com/_next/static/chunks/pages/food/favorites-bcf6acb15d474364.js

js tacobell.com collected 2026-09-24 07:32:12 UTC 13,127 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8674],{1459:e=>{e.exports={loader:"styles_loader__1h8SN","no-favorites-helper-text":"styles_no-favorites-helper-text__iENpj"}},1854:e=>{e.exports={tray:"styles_tray__43j3p",active:"styles_active__YRYqd",contain:"styles_contain__Nxfwe",content:"styles_content__VKqZl",close:"styles_close__jdDvm"}},11166:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(26514),o=s(89606),a=s(40242),i=s(89946),n=s(95759),l=s(33961);let d=()=>{let{content:{pageData:e}}=(0,n.A)(),{seoCanonicalUrl:t,seoDescription:s,seoTitle:d,topicMeta:c}=e,{canonicalUrl:u,description:m,title:f}=c.searchEngineOptimization||{},{storeAddress:p,storeCity:h,storeId:_,storeState:x}=(0,l.A)(),v={storeAddress:p,storeCity:h,storeState:x},j=_&&_!==i.BU;return(0,r.jsxs)(o.A,{titleOverride:j&&f?(0,a.G)(f,v):d,children:[(0,r.jsx)("meta",{content:j&&m?(0,a.G)(m,v):s,name:"description"},"seoDescription"),(0,r.jsx)("link",{href:j&&u?(0,a.G)(u,{storeId:_}):t,rel:"canonical"},"seoCanonical")]})}},14806:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var r=s(26514),o=s(69001),a=s.n(o),i=s(19033),n=s(10821),l=s(22469),d=s(39908),c=s(95759),u=s(26048),m=s.n(u);let f=()=>{let e="favorite-guest-modal",{updateModals:t}=(0,d.A)(),{generic:s,layout:o}=(0,c.A)().content.pageData.topicMeta,u=()=>{t({[e]:void 0})},f={body:(0,r.jsx)("div",{className:m()["modal-message"],children:(0,r.jsx)("p",{children:s?.favoriteGuestModal.title})}),footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.A,{className:m()["sign-up-btn"],href:o?.loggedOutHref,children:o?.signUpLabel}),(0,r.jsx)(n.A,{onClick:u,theme:"brand",children:s?.favoriteGuestModal?.cancelText})]})};return(0,r.jsx)(i.A,{...f,className:a()(m().modal,m()["modal-favorite-guest"]),headerClassName:m().header,id:e,onClose:u,role:"alert",showHeader:!0})}},24322:(e,t,s)=>{e.exports=s(2324)},26048:e=>{e.exports={"modal-favorite-guest":"styles_modal-favorite-guest__9AGEq",header:"styles_header__X1hmp","modal-message":"styles_modal-message__6eCE_"}},26870:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(26514),o=s(19033),a=s(85959),i=s(39908),n=s(57456),l=s.n(n);let d=()=>{let{modals:e,updateModals:t}=(0,i.A)(),s=e["bottom-sheet-modal"];return(0,r.jsx)("div",{className:l()["bottom-sheet-modal-wrapper"],children:(0,r.jsx)(o.A,{body:s?.body?.json&&(0,r.jsx)(a.Ay,{node:s.body.json,renderOptions:{renderText:a.y7}}),className:l().modal,contentStyle:l().body,headerClassName:l().header,hideClose:!1,id:"bottom-sheet-modal",onClose:()=>t({"bottom-sheet-modal":void 0}),title:""})})}},32621:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var r=s(26514),o=s(12879),a=s(69001),i=s.n(a),n=s(28023),l=s(39189),d=s(51574),c=s(97413),u=s.n(c);let m=({className:e,disclaimer:t,displaySugarWarning:s=!1,sugarWarning:a=""})=>{let c={renderNode:{[o.INLINES.EMBEDDED_ENTRY]:({data:e})=>{let s=null;return t?.links?.entries?.inline?.length&&(s=t.links.entries.inline.find(t=>t.sys.id===e.target.sys.id)),(0,r.jsx)(r.Fragment,{children:s&&(0,r.jsx)(d.default,{alt:s.alt,src:s.src})})}}};return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)("div",{className:i()(u().disclaimer,e),children:(0,r.jsx)(l.A,{node:t.json,renderOptions:c})}),s&&(0,r.jsx)(n.A,{className:i()(e,u().disclaimer,u()["sugar-warning"]),sugarWarning:a})]})}},47906:(e,t,s)=>{"use strict";s.d(t,{A:()=>v});var r=s(26514),o=s(69001),a=s.n(o),i=s(23469),n=s.n(i),l=s(75834),d=s(45600),c=s(11997),u=s(39908),m=s(88372),f=s(95759),p=s(1854),h=s.n(p);let _=n()(()=>Promise.resolve().then(s.bind(s,28838)),{loadableGenerated:{webpack:()=>[28838]}}),x=n()(()=>Promise.all([s.e(9947),s.e(6711)]).then(s.bind(s,56711)),{loadableGenerated:{webpack:()=>[56711]}}),v=()=>{let e=(0,l.useRef)(null),t=(0,l.useRef)(null),s=(0,l.useRef)(null),[o,i]=(0,l.useState)(""),{loyalty:n}=(0,f.A)().content.pageData.topicMeta,{activeLoyalty:p,activateLoyalty:v}=(0,u.A)(),j=()=>{(0,c.X3)({"Analytics-Action":"Loyalty Tray","Analytics-Value":"Close"}),v(!1)};return(0,m.A)(t,j,p),(0,l.useEffect)(()=>{if(p){s.current=document.activeElement,i("Loyalty Dashboard opened. Use Tab to navigate, Escape to close.");let t=setTimeout(()=>{if(!e.current)return;let t=e.current.querySelector('button:not([disabled]), [href], input
1:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');t?t.focus():e.current.focus()},100),r=setTimeout(()=>{i("")},2e3);return()=>{clearTimeout(t),clearTimeout(r)}}!p&&s.current&&(s.current.focus(),s.current=null,i(""))},[p]),(0,l.useEffect)(()=>{if(!p||!e.current)return;let t=t=>{if(!e.current||"Tab"!==t.key)return;let s=e.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])');if(!s||0===s.length)return;let r=Array.from(s),o=r[0],a=r[r.length-1],i=document.activeElement;if(!e.current.contains(i)||!t.shiftKey&&i===a){t.preventDefault(),t.stopPropagation(),o?.focus();return}if(t.shiftKey&&i===o){t.preventDefault(),t.stopPropagation(),a?.focus();return}};document.addEventListener("keydown",t,!0);let s=t=>{if(!e.current)return;let s=t.target;if(s&&!e.current.contains(s)){let t=e.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])');if(t&&t.length>0){let e=t[0];requestAnimationFrame(()=>{e?.focus()})}}};return document.addEventListener("focusin",s,!0),()=>{document.removeEventListener("keydown",t,!0),document.removeEventListener("focusin",s,!0)}},[p]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.A,{ariaLive:"polite",text:o}),n&&!0===p&&(0,r.jsxs)("aside",{ref:e,className:a()(h().tray,{[h().active]:!0===p}),role:"region","aria-label":"Loyalty Dashboard",onKeyDown:t=>{if(e.current&&p&&"Escape"===t.key)return void j()},tabIndex:-1,children:[(0,r.jsx)(_,{className:h().close,height:"1em",onClick:j,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),j())},width:"1em","aria-label":"Close loyalty dashboard",tabIndex:0}),(0,r.jsx)("div",{ref:t,className:h().content,children:(0,r.jsx)(x,{activate:v,active:p,loyaltyTemplate:n})})]})]})}},54734:e=>{e.exports={"favorite-item":"styles_favorite-item__8YHUA","favorite-image":"styles_favorite-image__nTB2e","favorite-details":"styles_favorite-details__6LjUB","favorite-name":"styles_favorite-name__4154i","favorite-modifiers":"styles_favorite-modifiers__nMUF8","favorite-combo-items":"styles_favorite-combo-items__8ov8q","favorite-modifier":"styles_favorite-modifier__j4D2p","add-to-cart-button":"styles_add-to-cart-button__5jupa","secondary-button":"styles_secondary-button__cefiw",inverse:"styles_inverse__mOsPj","no-border":"styles_no-border__czWLT",rounded:"styles_rounded__g_vbZ","favorite-cta-group":"styles_favorite-cta-group__29c19"}},57456:e=>{e.exports={"bottom-sheet-modal-wrapper":"styles_bottom-sheet-modal-wrapper__rdbcj",modal:"styles_modal__HoS3O",header:"styles_header__kB_5i",body:"styles_body__GjK9x"}},59459:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>ee,default:()=>et});var r=s(26514),o=s(26870),a=s(14806),i=s(7063),n=s(61968),l=s(18404),d=s(43422),c=s(41988),u=s(47243),m=s(16336),f=s(4150),p=s(74449),h=s(32472),_=s(60174),x=s(47906),v=s(48191),j=s(75834),y=s(20931),b=s(38920),g=s(33493),A=s(39908),N=s(95759),D=s(13539),E=s(69001),w=s.n(E),C=s(68529),k=s(99748),M=s(92482),O=s(23469),T=s.n(O),P=s(17727),I=s(51574),L=s(55349),G=s(11272),R=s(15115),S=s(49102),F=s(26673);let U=(e,t)=>{for(let s of Object.keys(e)){let r=e[s];if(Array.isArray(r)){for(let e of r)if("string"!=typeof e&&!(0,S.RX)(e)){for(let s of e.variantOptions)if(s.code===t)return s.modifierType}}}},B=(e,t)=>{let s={[R.i7.MODIFIED]:[],[R.i7.ADDED]:[],[R.i7.REMOVED]:[]};return e.forEach(e=>{if(t?.customizationOptions&&"frescoProduct"===(0,F.w)(t.customizationOptions,e.modifierCode))return;let r=t?t.customizationOptions?U(t.customizationOptions,e.modifierCode)||L.I.ADD:t.productGroups&&t.productGroups.length>0&&((e,t)=>{for(let s of e)if(s.swapList){for(let e of s.swapList)if(e.customizationOptions){let s=U(e.customizationOptions,t);if(s)return s}}})(t.productGroups,e.modifierCode)||L.I.ADD:L.I.ADD,o={...e,modifierType:r};switch(r){case L.I.EXTRA:case L.I.EASY:s[R.i7.MODIFIED].push(o);break;case L.I.ADD:s[R.i7.ADDED].push(o);break;case L.I.MINUS:s[R.i7.REMOVED].push(o)}}),s};var q=s(54734),z=s.n(q);let K=T()(()=>s.e(5171).then(s.bind(s,75171)),{loadableGenerated:{webpack:()=>[75171]}}),Y=({formattedProduct:e,product:t,productDetail:s})=>{let o=t.configuredBundle?.configuredChoices,a=!!(o&&o.length>0),i=t.configuredProduct?.selectedModifiers||[],n=e=>({includedWithStyle:!1,opt:L.K.FRESCO_ADD,ots:!1,plu:e.modifierCode}),l=o?.map(e=>({groupCode:e.choiceCode||"",modifiers:(e.configuredProduct?.selectedModifiers||[]).map(n),plu:e.configuredProduct?.productC
1ode||"",qty:e.selectedQuantity??1})),d=()=>{if(!a){if(!i.length)return null;let t=B(i,e);return(0,r.jsx)(K,{groupedModifiers:t})}return o?.map((t,s)=>{let o=B(t.configuredProduct?.selectedModifiers||[],e);return(0,r.jsxs)("li",{children:[(0,r.jsx)("p",{children:t.choiceName||t.configuredProduct?.productName}),(0,r.jsx)(K,{groupedModifiers:o})]},s)})},c=i.map(n);return(0,r.jsxs)("div",{className:z()["favorite-item"],children:[(0,r.jsx)("div",{className:z()["favorite-image"],children:(0,r.jsx)(I.default,{alt:t.name||"",src:t.imageUrl||""})}),(0,r.jsxs)("div",{className:z()["favorite-details"],children:[(0,r.jsx)("div",{className:z()["favorite-name"],children:(0,r.jsx)("div",{children:(0,r.jsx)("h2",{children:t.name})})}),a&&(0,r.jsx)("section",{className:z()["favorite-combo-items"],children:(0,r.jsx)("ul",{children:d()})}),!a&&i.length>0&&(0,r.jsx)("section",{className:z()["favorite-modifiers"],children:d()}),(0,r.jsx)("section",{className:w()(z()["favorite-cta-group"]),children:(0,r.jsx)(C.A,{direction:"row",justify:"start",children:!(0,G.RI)(e)&&(0,r.jsx)(P.A,{className:z()["add-to-cart-button"],items:l,modifiers:c,product:e,children:s?.addToOrderLabel})})})]})]})};var X=s(95287),H=s.n(X);let V=({className:e,favorites:t})=>{let{deleteFavorite:s}=(0,g.A)(),{content:{pageData:{topicMeta:{productDetail:o}}}}=(0,N.A)(),a=e=>{s(e)},i=(0,M.Q)(t),n=t.map(e=>({formattedProduct:i?.find(t=>t.code===(e.configuredProduct?.productCode||e.configuredBundle?.configuredChoices?.[0]?.configuredProduct?.productCode||"")),onClick:a,product:e,productDetail:o}));return(0,r.jsx)("div",{className:w()(H().container,e),children:(0,r.jsx)("div",{className:H().favorites,children:(0,r.jsx)(C.A,{align:"stretch",justify:"start",wrap:!0,children:(0,r.jsx)(k.A,{item:Y,itemProps:n})})})})};var Q=s(32621),W=s(1459),Z=s.n(W);let J=()=>{let{isLoggedIn:e}=(0,D.A)(),{updateModals:t}=(0,A.A)(),{content:{pageData:s}}=(0,N.A)(),{contentGroupCollection:o,topicMeta:{generic:a}}=s,i=o.items[3]?.description,{favorites:n,favoritesLoading:l}=(0,g.A)();return(0,j.useEffect)(()=>{t({"favorite-guest-modal":!1===e?{}:void 0})},[e]),(0,b.A)(),(0,r.jsxs)("main",{className:Z().main,children:[!l&&0===n.length&&(0,r.jsx)("div",{className:Z()["no-favorites-helper-text"],children:(0,r.jsx)("h2",{children:a?.noFavoritesText})}),l?(0,r.jsx)("div",{className:Z().loader,children:(0,r.jsx)(y.A,{})}):(0,r.jsx)(r.Fragment,{children:n&&(0,r.jsx)(V,{favorites:n})}),i&&(0,r.jsx)(Q.A,{className:Z().legal,disclaimer:i})]})};var $=s(11166),ee=!0;let et=({productCategories:e,...t})=>(0,r.jsx)(u.A,{...t,children:(0,r.jsx)(m.A,{regions:{bottomBody:(0,r.jsxs)(p.A,{children:[(0,r.jsx)(o.A,{}),(0,r.jsx)(f.A,{}),(0,r.jsx)(a.A,{}),(0,r.jsx)(n.A,{})]}),footer:(0,r.jsx)(h.A,{}),head:(0,r.jsx)($.A,{}),header:(0,r.jsx)(i.A,{}),leftAside:(0,r.jsx)(_.A,{}),main:(0,r.jsx)(d.A,{productCategories:e,children:(0,r.jsx)(l.A,{children:(0,r.jsx)(c.A,{children:(0,r.jsx)(J,{})})})}),rightAside:(0,r.jsx)(x.A,{}),topBody:(0,r.jsx)(v.A,{inlineSvgs:t.content?.pageData?.icons})}})})},61968:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var r=s(26514),o=s(23469),a=s.n(o),i=s(95759),n=s(13539);let l=a()(()=>Promise.all([s.e(9947),s.e(5624)]).then(s.bind(s,93243)),{loadableGenerated:{webpack:()=>[93243]}}),d=a()(()=>Promise.all([s.e(6937),s.e(4173)]).then(s.bind(s,44173)),{loadableGenerated:{webpack:()=>[44173]}}),c=a()(()=>Promise.all([s.e(6937),s.e(8038)]).then(s.bind(s,58038)),{loadableGenerated:{webpack:()=>[58038]}}),u=()=>{let{loyalty:e}=(0,i.A)().content.pageData.topicMeta,t=(0,n.A)();return(0,r.jsxs)(r.Fragment,{children:[e?.errorModal&&(0,r.jsx)(l,{id:"loyalty-error-modal"}),e?.firstTimeUserLegalModal&&(0,r.jsx)(d,{emailOptIn:t.isLoggedIn?t.emailOptIn:void 0,hideClose:!0,template:e.firstTimeUserLegalModal}),e?.firstTimeUserRewardModal&&(0,r.jsx)(c,{template:e.firstTimeUserRewardModal})]})}},71333:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/food/favorites",function(){return s(59459)}])},95287:e=>{e.exports={container:"styles_container__e4jYa",favorites:"styles_favorites__oRD15"}},97413:e=>{e.exports={disclaimer:"styles_disclaimer__pMtYQ","sugar-warning":"styles_sugar-warning__BhFRr"}}},e=>{e.O(0,[3959,1745,1335,9944,9977,4212,5794,9986,8430,3818,8401,636,6593,8792],()=>e(e.s=71333)),_N_E=e.O()}]);

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.