PageSourceSearch

https://www.dominos.no/_next/static/chunks/pages/butikker/[storeSlug]/meny/deals-9820ea60acc1e492.js

js dominos.no collected 2026-10-08 03:00:55 UTC 8,246 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[262],{9318:e=>{e.exports={loader:"Loader_loader__P7_5y",inner:"Loader_inner__383da",spinner:"Loader_spinner__gX4fD",slice:"Loader_slice__BIhd1",rotate:"Loader_rotate__AdMuk","-compressed":"Loader_-compressed__XI34b","-half-page":"Loader_-half-page__47Iqd","-transparent":"Loader_-transparent__JAonO"}},16173:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSG:()=>O,default:()=>$});var a=r(37876),t=r(14232),l=r(89099),i=r(24772),d=r(59199),n=r(47741),o=r(58837),c=r(46164),m=r(75924),p=r(34846),h=r(76900),x=r.n(h),u=r(47927),_=r(63848),g=r(15224),v=r(74696),w=r(77364);let j=({deal:e,deliveryTypes:s})=>{let{locale:r}=(0,l.useRouter)(),{t}=(0,p.Bd)(),{title:d,description:n,priceText:o,terms:c}=e,m=s?s.some(e=>e.toLowerCase()===i.xL.CARRYOUT.toLowerCase()):e.carryout,h=s?s.some(e=>e.toLowerCase()===i.xL.DELIVERY.toLowerCase()):e.delivery,_=(0,u.Re)(d,r),g=(0,u.Re)(n,r);(0,u.Re)(o,r);let j=(0,u.Re)(c,r),C=""!==j;return(0,a.jsxs)("div",{className:x().inner,children:[(0,a.jsx)("div",{className:x().image,children:(0,a.jsx)(v.A,{noRadius:!0,aspect:"landscape",image:e.smallImage,alt:g})}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("div",{className:x().link,children:(0,a.jsx)("h2",{children:_})}),(0,a.jsx)("p",{className:x().description,children:C?`${g} *`:g}),C&&(0,a.jsx)("div",{className:x().terms,children:(0,a.jsxs)("p",{className:"gray small",children:["*",j]})}),(m||h)&&(0,a.jsxs)("div",{className:"flex gap-2 mt-4",children:[m&&(0,a.jsxs)("div",{className:x()?.["shipping-tags"],children:[(0,a.jsx)(w.A,{size:"tiny",type:"take-out",name:"carryout"}),(0,a.jsx)("p",{className:"text-base",children:t("common-words:carryout")})]}),h&&(0,a.jsxs)("div",{className:x()?.["shipping-tags"],children:[(0,a.jsx)(w.A,{size:"tiny",type:"car",name:"delivery"}),(0,a.jsx)("p",{className:"text-base",children:t("common-words:delivery")})]})]})]})]})};var C=r(70914),y=r(95759);let f=({deal:e,storeSlug:s,allProducts:r,allIngredients:d,discountType:o,discountStrength:c,deliveryTypes:m,deliveryPrice:h})=>{let{locale:v,push:w}=(0,l.useRouter)(),{t:f}=(0,p.Bd)(),{title:N,priceText:L}=e,{state:A,addDeal:D,updateShipping:b}=(0,t.useContext)(n.A),{openModal:R,addNotification:k}=(0,t.useContext)(C.Ay);(0,u.Re)(N,v);let T=(0,u.Re)(L,v);A.manualDeals.filter(s=>s===e.couponCode).length;let E=(0,g.F8)(e);return(0,a.jsxs)("article",{className:`${x().card} group`,children:[(0,a.jsx)(j,{deal:e,deliveryTypes:m}),(0,a.jsx)("div",{className:"p-4 w-full",children:(0,a.jsx)(y.A,{onClick:()=>{if(E){A.shipping.method===i.eZ.PICKUP&&b(i.eZ.DELIVERY,h||0),w(`${(0,_.aM)("stores")}/${s||""}/meny/pizza`);return}R({type:i.q3.DEAL_DETAIL,data:{deal:e,storeSlug:s,allProducts:r,allIngredients:d,discountType:o,discountStrength:c}})},full:!0,label:f("common-words:add"),children:(0,a.jsxs)("div",{className:"flex justify-between",children:[f("common-words:add"),(0,a.jsx)("p",{className:"font-bold",children:T})]})})})]})};var N=r(58538);r(81084);var L=r(44032),A=r(62005),D=r(69844),b=r(35478),R=r(64511),k=r(71908),T=r(69568),E=r(13632),I=r(37923),S=r(64634),B=r(20601),M=r(72509),P=r(49559),O=!0;let $=({categoryNavItems:e=[],deals:s=[],currentStore:r,storeSlug:p,allProducts:h,allIngredients:x})=>{let u=(0,l.useRouter)(),{t:g}=(0,b.Bd)(),{updateStore:v,state:w}=(0,t.useContext)(n.A),{setHotspot:j,state:C}=(0,t.useContext)(P.A),{selectedStore:y,saveSelectedStore:O,isLoading:$}=(0,M.I)(),[Z,q]=t.useState(null),[F,V]=t.useState(!0);t.useEffect(()=>{w.storeId&&w.storeId!==r?.slug||r&&(!y||y.slug!==r.slug)&&(C.hotspot&&C.hotspot.storeId!==r.id&&j(void 0),O({id:r.id,name:r.name,slug:r.slug,region:r.region?.name}),v(r.id,r.name,r.slug))},[r,y]),t.useEffect(()=>{$||(async()=>{if(!y?.id)return V(!1);try{let{data:e}=await (0,T.wi)(y.id,"",null);e&&q(new Map(e.map(e=>[e.dealId,e])))}catch(e){console.error("Error fetching available deals:",e)}finally{V(!1)}})()},[y?.id,$]);let Y=new Date,z=d.A[Y.getDay()],{kategori:U}=u.query,X=[{text:g("common-words:all"),value:""},{text:g("common-words:carryout"),value:(0,_.sF)("carryout")}],J=s.filter(e=>!Z||!!e.id&&Z.has(e.id)).filter(e=>{if(!U||""===U||!Z)return!0;let s=e.id?Z.get(e.id):void 0;return!!s?.deliveryTypes.some(e=>e.toLowerCase()===i.xL.CARRYOUT.toLowerCase())}).filter(e=>!(e.disabledDays&&e.disabledDays.find(e=>e===z))).filter(R.lH).sort((e,s)=>e.priority-s.priority),{isStickyMenu:K,breakpointAdjustment:G}=(0,E.A)(),H=(0,I.A)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{title:`Deals - Dominos ${r&&r.name}`}),(0,a.jsx)("div",{className:"sm:p-0 -mt-9",children:(0,a.jsx)(S.A,{})}),(0,a.jsx)(B.A,{offsetTop:{mobile:121,tablet:104,desktop:104},children:(0,a.jsx)(D.A,{options:e,selected:"deals"})}),(0,a.jsx)("h2",{className:"hidden sm:block text-center mt-4 sm:mt-8 up
1percase text-(--brand-dark-blue)",children:e.find(e=>"deals"===e.slug)?.text}),(0,a.jsx)("div",{className:"mt-4 sm:mt-8",children:(0,a.jsx)(A.A,{options:X,selected:U?String(U):"",onChange:e=>(e=>{let s=""===e;u.replace({pathname:`${(0,_.aM)("stores")}/${u.query.storeSlug}/meny/deals`,query:s?{}:{kategori:e}},void 0,{shallow:!0})})(e.target.value)})}),(0,a.jsx)(L.A,{className:"-translate-y-[22px]",children:(0,a.jsx)(c.A,{top:5,bottom:7,children:F?(0,a.jsx)(N.A,{compressed:!0}):(0,a.jsx)(m.A,{narrow:(0,k.x9)()&&H,animated:!0,children:J.map(e=>(0,a.jsx)(f,{deal:e,storeSlug:p,allProducts:h,allIngredients:x,discountType:e.id?Z?.get(e.id)?.discountType:void 0,discountStrength:e.id?Z?.get(e.id)?.discountStrenght:void 0,deliveryTypes:e.id?Z?.get(e.id)?.deliveryTypes:void 0,deliveryPrice:r?.deliveryPrice},e.couponCode))})})})]})}},58538:(e,s,r)=>{"use strict";r.d(s,{A:()=>n});var a=r(37876);r(14232);var t=r(15039),l=r.n(t),i=r(9318),d=r.n(i);let n=({compressed:e,halfPage:s,transparent:r=!1})=>{let t=l()({[d().loader]:!0,[d()["-compressed"]]:e,[d()["-half-page"]]:s,[d()["-transparent"]]:r});return(0,a.jsx)("div",{className:t,children:(0,a.jsx)("div",{className:d().inner,children:(0,a.jsxs)("div",{className:d().spinner,children:[(0,a.jsx)("svg",{className:d().slice,width:"20",height:"40",viewBox:"0 0 20 40",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M19.9998 1.85757C19.9998 1.28324 19.5165 0.824663 18.9456 0.886864C15.2395 1.29061 11.7653 2.69875 8.98947 4.67876C8.49314 5.0328 8.46916 5.74895 8.91622 6.16345L18.3199 14.8822C18.9599 15.4756 19.9998 15.0217 19.9998 14.1489L19.9998 1.85757Z",fill:"currentColor"})}),(0,a.jsx)("svg",{className:d().slice,width:"20",height:"40",viewBox:"0 0 20 40",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M15.2557 18.6014C16.165 18.6014 16.6024 17.4863 15.9356 16.8681L6.60052 8.21298C6.19806 7.83982 5.56775 7.85919 5.21156 8.27675C2.95134 10.9264 1.48041 14.088 1.03905 17.5389C0.965724 18.1122 1.42607 18.6014 2.00402 18.6014L15.2557 18.6014Z",fill:"currentColor"})}),(0,a.jsx)("svg",{className:d().slice,width:"20",height:"40",viewBox:"0 0 20 40",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M15.9103 23.2635C16.5826 22.6473 16.1466 21.5264 15.2346 21.5264L1.86731 21.5264C1.28936 21.5264 0.829017 22.0156 0.904678 22.5886C1.36101 26.0444 2.91149 29.2787 5.08006 31.8502C5.43324 32.2689 6.0619 32.2909 6.46574 31.9207L15.9103 23.2635Z",fill:"currentColor"})}),(0,a.jsx)("svg",{className:d().slice,width:"20",height:"40",viewBox:"0 0 20 40",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M19.9998 25.8504C19.9998 24.9776 18.9599 24.5237 18.3199 25.1171L8.91362 33.8383C8.46745 34.2519 8.49015 34.9665 8.98338 35.3227C11.8401 37.3861 15.2395 38.723 18.9453 39.1143C19.5165 39.1746 19.9998 38.7161 19.9998 38.1417L19.9998 25.8504Z",fill:"currentColor"})})]})})})}},69652:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/butikker/[storeSlug]/meny/deals",function(){return r(16173)}])},76900:e=>{e.exports={card:"DealCard_card__B8U_v",inner:"DealCard_inner__Y69jV",image:"DealCard_image__9TfC7",link:"DealCard_link__n3SSN",price:"DealCard_price__mDFJm",description:"DealCard_description__NpkpR",terms:"DealCard_terms__RBV50","shipping-tags":"DealCard_shipping-tags__x0OVF",footer:"DealCard_footer__OpnK3"}}},e=>{e.O(0,[4376,8262,8149,3013,6811,9113,2584,8421,4634,3240,636,6593,8792],()=>e(e.s=69652)),_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.