PageSourceSearch

https://schnucks.com/_next/static/chunks/4738-214ada73c5e2c541.js

js schnucks.com collected 2026-09-24 09:25:50 UTC 12,542 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4738],{99366:function(e,t,r){r.d(t,{U:function(){return n}});var a=r(85893),s=r(20265);let l={outline:{base:"border-4 bg-white",red:"border-red text-red",navy:"border-navy text-navy",success:"border-success text-success"},solid:{base:"p-1 text-white bg-gradient-to-b",red:"from-red-gradient-start to-red-gradient-end",navy:"from-navy-gradient-start to-navy-gradient-end",success:"from-success-gradient-start to-success-gradient-end"}};function n(e){let{style:t="solid",color:r="red",label:n,linkLabel:i,href:o,newWindow:d=!1,...c}=e;return(0,a.jsxs)("div",{className:"flex w-full flex-col items-center rounded-lg py-1.5 text-center md:flex-row md:justify-center md:gap-1 md:py-0 ".concat(l[t].base," ").concat(l[t][r]),"aria-label":o?i:void 0,...c,children:["string"==typeof n?(0,a.jsx)("p",{children:n}):n,o?(0,a.jsx)(s.r,{href:o,target:d?"_blank":"_self",size:"sm",rel:"noreferrer",direction:"right",color:"inherit",className:"my-px capitalize",children:i}):(0,a.jsx)("p",{className:"my-1.5 text-h6",children:i})]})}},30403:function(e,t,r){r.d(t,{Z:function(){return m}});var a=r(85893),s=r(68092),l=r(43941),n=r(67294),i=r(9198),o=r.n(i);r(33732);var d=r(24189),c=r(21867);function m(e){let{className:t,label:r,name:i,error:m,disabled:u=!1,required:x=!1,value:h,min:f,max:p,excludeDates:j,inline:g=!1,onChange:v,format:b="M/d/yyyy"}=e,[w,y]=(0,n.useState)(),N=(0,n.forwardRef)(function(e,t){let{onChange:s,...l}=e;return(0,a.jsx)(c.o,{...l,ref:t,label:r,placeholder:"mm/dd/yyyy",trailingIcon:"Calendar",readOnly:!0,error:m,onChange:e=>null==s?void 0:s(e.currentTarget.value),"data-testid":"datepicker-input"})});return(0,n.useEffect)(()=>{y(h)},[h]),(0,a.jsx)("div",{className:t,children:(0,a.jsx)(o(),{wrapperClassName:"w-full",popperClassName:"rounded border border-light-grey overflow-hidden shadow-lg mt-2",name:i,selected:w,inline:g,required:x,calendarContainer:e=>{let{children:t}=e;return t},customInput:(0,a.jsx)(N,{}),renderCustomHeader:e=>{let{date:t,decreaseMonth:r,increaseMonth:n,prevMonthButtonDisabled:i,nextMonthButtonDisabled:o}=e;return(0,a.jsxs)("div",{className:"mx-1 mb-4 flex items-center justify-between bg-white",children:[(0,a.jsx)(s.z,{variant:"text",color:"navy",adornmentStart:(0,a.jsx)(d.J,{name:"ChevronLeft"}),disabled:i,onClick:r}),(0,a.jsx)("span",{className:"text-h6",children:"".concat(l.e7[t.getMonth()]," ").concat(t.getFullYear())}),(0,a.jsx)(s.z,{variant:"text",color:"navy",adornmentStart:(0,a.jsx)(d.J,{name:"ChevronRight"}),disabled:o,onClick:n})]})},formatWeekDay:e=>(0,a.jsx)("h6",{className:"text-h6",children:e[0]}),renderDayContents:(e,t)=>{let r=t.getTime()===(null==w?void 0:w.getTime());return(0,a.jsx)("div",{className:r?"rounded bg-red text-white":"",children:t.getDate()})},onChange:e=>{y(e),null==v||v(e)},disabled:u,minDate:f,maxDate:p,excludeDates:j,dateFormat:b})})}},20729:function(e,t,r){r.d(t,{b:function(){return x},p:function(){return h}});var a=r(85893),s=r(25675),l=r.n(s),n=r(68092),i=r(17091),o=r(24189),d=r(20265),c=r(8766),m=r(35882);let u={sm:"size-14",md:"size-[5.375rem] md:size-[9.375rem]"};function x(e){let{thumbnail:t,thumbnailSize:r="md",quantity:s,unavailable:c=!1,checked:x=!1,removeLabel:h="Remove",loading:f=!1,actions:p=[],onQuantityChange:j,onRemove:g,children:v}=e;return(0,a.jsxs)(i.Z,{className:c?"border border-red":"",children:[(0,a.jsx)(i.Z.Content,{children:(0,a.jsxs)("div",{className:"flex w-full flex-wrap justify-center gap-6 xl:gap-4",children:[t&&(0,a.jsxs)("div",{className:"relative shrink-0 ".concat(u[r]," ").concat(c?"opacity-50":""),children:[x&&(0,a.jsx)(o.J,{name:"CheckedCircle",className:"absolute right-1 top-1 z-[2] text-success"}),(0,a.jsx)(l(),{className:"object-contain",src:t,alt:"",fill:!0,sizes:"(min-width: 768px) 9.375rem, 5.375rem",priority:!0})]}),(0,a.jsxs)("div",{className:"flex flex-[1_0] flex-col gap-3 lg:flex-row lg:items-center",children:[(0,a.jsxs)("div",{className:"flex size-full flex-col gap-1",children:["string"==typeof c&&(0,a.jsxs)("div",{className:"mb-2 flex flex-row gap-1.5",children:[(0,a.jsx)(o.J,{name:"Info",className:"text-red"}),(0,a.jsx)("p",{className:"text-h6 text-red",children:c})]}),(0,a.jsx)("div",{className:c?"opacity-50":"",children:v})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[j&&(0,a.jsx)(m.l,{className:"min-w-36 max-w-52",disabled:f,value:s,onChange:j,onRemove:g}),g&&(0,a.jsx)(n.z,{className:"-mb-3 whitespace-nowrap py-3 md:mx-auto",variant:"text",color:"navy",size:"custom",onClick:g,children:h})]})]})]})}),!!p.length&&(0,a.jsx)(i.Z.Footer,{backgroundColor:"background-grey",children:p.map(e=>e.href?(0,a.jsx)(d.r,{href:e.href,icon:e.icon,direction:"right",variant:"text",color:"navy",size:"sm",disabled:e.disabled,"data-testid":e.testid,children:e.label},e.label):(0,a.jsx)(n.z,{adornmentStart:e.icon&&(0,a.jsx)(o.J,{name:e.icon}),adornmentEnd:(0,a.jsx)(o.J,{name:"ChevronRight"}),variant:"text",color:"navy",size:"sm",disabled:e.disabled,onClick:e.onClick,"data-testid":e.testid,children:e.label},e.label))})]})}function h(e){let{thumbnailSize:t="md"}=e;return(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(i.Z.Content,{children:(0,a.jsxs)("div",{className:"flex w-full flex-wrap justify-center gap-6 xl:gap-4",children:[{md:(0,a.jsx)(c.O,{width:"10rem",height:"10rem",rounded:"lg"}),sm:(0,a.jsx)(c.O,{width:"3.5rem",height:"3.5rem",rounded:"lg"})}[t],(0,a.jsxs)("div",{className:"flex flex-[1_0] flex-col gap-3 lg:flex-row lg:items-center",children:[(0,a.jsxs)("div",{className:"flex size-full flex-col gap-1",children:[(0,a.jsx)(c.O,{width:"20%"}),(0,a.jsx)(c.O,{width:"80%"}),(0,a.jsx)(c.O,{width:"55%"}),"sm"!==t&&(0,a.jsx)(c.O,{width:"50%"})]}),(0,a.jsxs)("div",{className:"flex min-w-[8.875rem] flex-col gap-2",children:[(0,a.jsx)(c.O,{width:"100%",height:"2.75rem",rounded:"lg"}),(0,a.jsx)(c.O,{width:"100%"})]})]})]})}),(0,a.jsx)(i.Z.Footer,{backgroundColor:"background-grey",children:(0,a.jsx)(c.O,{color:"white",width:"14rem",height:"2rem"})})]})}},52483:function(e,t,r){r.d(t,{F:function(){return l}});var a=r(85893),s=r(80407);function l(e){let{className:t="",title:r,loading:l=!1,children:n}=e;return(0,a.jsxs)("section",{className:"relative rounded-lg bg-background-grey p-5 ".concat(t),children:[(0,a.jsxs)("div",{className:l?"opacity-50":"opacity-100",children:[r&&(0,a.jsx)("h2",{className:"mb-2 text-h4",children:r}),n]}),l&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)(s.P,{})})]})}},24457:function(e,t,r){r.d(t,{h:function(){return p}});var a=r(85893),s=r(25189),l=r(68092),n=r(80407),i=r(21867),o=r(32639),d=r(52483),
1c=r(43704),m=r(87536),u=r(24189),x=r(21102),h=r(30120);function f(e){let{promoCode:{code:t,promoCodeDescription:r,invalid:s,message:n,promoCodeDisclaimer:i,validThrough:o},onRemove:d}=e,c=(0,x.R)();return(0,a.jsxs)("li",{className:"flex items-center justify-between gap-2 rounded-md bg-white px-5 py-2.5 pr-2",children:[(0,a.jsxs)("div",{className:s?"text-red":"",children:[(0,a.jsx)("h3",{className:"text-h6",children:t}),s?(0,a.jsx)("p",{children:n}):(0,a.jsx)("p",{className:"mb-1",children:n}),(0,a.jsx)(l.z,{variant:"text",color:"navy",size:"fit",adornmentEnd:(0,a.jsx)(u.J,{name:"ChevronRight"}),onClick:()=>{let e="string"==typeof o?h.ou.fromISO(o):h.ou.fromMillis(o);c({title:t,cancelButtonLabel:"Close",message:(0,a.jsxs)("div",{className:"flex flex-col gap-3 text-left",children:[(0,a.jsx)("p",{className:"text-h4",children:r}),n?(0,a.jsx)("p",{children:n}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["EXPIRES: ",e.toFormat("MMM dd, yyyy")]}),(0,a.jsx)("p",{children:i})]})]})})},"data-testid":"promo-details-".concat(t),children:"View Details"})]}),(0,a.jsx)(l.z,{className:"shrink-0",variant:"text",color:"navy",width:"square",adornmentStart:(0,a.jsx)(u.J,{name:"Delete"}),onClick:()=>{c({title:"Remove Promo Code",message:"Are you sure you would like to remove this promo code from your order?",cancelButtonLabel:"No, Keep",confirmButtonLabel:"Yes, Remove",onConfirm:()=>d(t)})},"data-testid":"promo-delete-".concat(t)})]})}function p(e){var t;let{promoCodes:r=[],loading:u=!1,onApply:x,onRemove:h,disclaimer:p}=e,{handleSubmit:j,register:g,reset:v,setError:b,formState:{errors:w,isDirty:y,isSubmitting:N}}=(0,m.cI)({defaultValues:{code:""}}),C=async e=>{let{code:t}=e;if(!r.map(e=>{let{code:t}=e;return t}).includes(t)){let[,e]=await (0,c.Y)(x(t));if(e){e instanceof s.K?b("code",{type:"custom",message:e.message}):(0,o.m)(e.message);return}}v()},k=async e=>{let[,t]=await (0,c.Y)(h(e));t&&(0,o.m)(t.message)};return(0,a.jsxs)(d.F,{children:[(0,a.jsxs)("form",{className:"mb-4 flex flex-col gap-1",onSubmit:j(C),children:[(0,a.jsx)("label",{htmlFor:"checkout-promo-code",children:"Add Promo Code"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(i.o,{id:"checkout-promo-code",className:"flex-1",fullWidth:!0,error:null===(t=w.code)||void 0===t?void 0:t.message,...g("code",{required:!0})}),(0,a.jsx)(l.z,{className:"h-10 w-full self-start px-2 xl:w-2/5",size:"custom",variant:"outlined",width:"full",type:"submit",disabled:!y||N||u,children:N?(0,a.jsx)(n.P,{}):"Apply"})]})]}),!!r.length&&(0,a.jsx)("ul",{className:"mb-5 flex flex-col gap-2",children:r.map(e=>(0,a.jsx)(f,{promoCode:e,onRemove:k},e.promoCodeId))}),p&&(0,a.jsx)("p",{className:"text-center text-body-small",children:p})]})}},65122:function(e,t,r){r.d(t,{O:function(){return h}});var a=r(85893),s=r(68092),l=r(8766),n=r(80407),i=r(21867),o=r(52483),d=r(53015),c=r(17396),m=r(54122),u=r(67294),x=r(87536);function h(e){var t,r,h,f;let{onSubmit:p,rewards:j,maxRewardsAllowed:g,errorMessage:v,disclaimer:b,loading:w=!1,defaultValue:y}=e,{register:N,handleSubmit:C,setError:k,reset:z,formState:{errors:R,isValid:F,isDirty:O}}=(0,x.cI)(),E=null!==(f=null==j?void 0:null===(t=j[0])||void 0===t?void 0:t.cashRewardsValue)&&void 0!==f?f:0,S=Math.min(E,g);return(0,u.useEffect)(()=>{v&&k("amount",{type:"custom",message:v})},[v,k]),(0,u.useEffect)(()=>{if(!w&&!v){var e;z({amount:y&&(null===(e=(0,m.p3)(y))||void 0===e?void 0:e.toFixed(2))||"0.00"})}},[w,v,y,z]),(0,a.jsxs)(o.F,{title:"Redeem Rewards",children:[(0,a.jsxs)("p",{className:"flex items-center gap-2",children:[(0,a.jsx)("b",{children:"Rewards available:"})," ",w?(0,a.jsx)(l.O,{width:"3.25rem",color:"white"}):c.VF.format(E)]}),(0,a.jsxs)("p",{className:"flex items-center gap-2",children:[(0,a.jsx)("b",{children:"Maximum amount to redeem on order:"})," ",w?(0,a.jsx)(l.O,{width:"3.25rem",color:"white"}):c.VF.format(S)]}),(0,a.jsxs)("form",{className:"mb-5  mt-3 flex flex-col gap-1",onSubmit:C(e=>{var t;return p(null!==(t=(0,m.p3)(e.amount))&&void 0!==t?t:0)}),children:[(0,a.jsx)("label",{htmlFor:"checkout-rewards-apply-amount",children:"Choose Amount to Apply to Order"}),(0,a.jsxs)("div",{className:" flex flex-wrap gap-2",children:[(0,a.jsx)(i.o,{id:"checkout-rewards-apply-amount",className:"flex-1",error:null===(r=R.amount)||void 0===r?void 0:r.message,leadingIcon:"DollarIcon",placeholder:"0.00",defaultValue:y?"".concat(null===(h=(0,m.p3)(y))||void 0===h?void 0:h.toFixed(2)):"0.00",disabled:S<=0&&!y,...N("amount",{required:!0,...d.G,validate:e=>!!(0===parseFloat(e)||g&&e&&parseFloat(e)<=S)}),onFocus:e=>e.currentTarget.select(),"aria-invalid":R.amount?"true":"false","data-testid":"amount-input"}
1),(0,a.jsx)(s.z,{className:"h-10 w-full self-start px-2 xl:w-2/5",variant:"outlined",size:"custom",width:"full",type:"submit",disabled:!O||!F||w,"data-testid":"save-rewards-button",children:w?(0,a.jsx)(n.P,{}):"Apply Rewards"})]})]}),b&&(0,a.jsx)("p",{className:"text-center text-body-small",children:b})]})}},53015:function(e,t,r){function a(e){return e?Number(e.replaceAll(/\D/g,"")||"0")/100:0}r.d(t,{G:function(){return s}});let s={onChange:e=>{let t=a(e.currentTarget.value);e.currentTarget.value=t.toFixed(2)},setValueAs:a}},71013:function(e,t,r){r.d(t,{t:function(){return n}});var a=r(39902),s=r(67294),l=r(5068);function n(){let{mutate:e,...t}=(0,l.ZP)({url:"user/rewards",params:{program:"LOYALTY"}},a.R1,{shouldRetryOnError:!1,revalidateOnFocus:!0}),r=(0,s.useCallback)(async()=>{await e()},[e]);return{rewards:t.data,rewardsError:t.error,loadingRewards:t.isLoading,validatingRewards:t.isValidating,refetchRewards:r}}},84407:function(e,t,r){r.d(t,{ME:function(){return s},gC:function(){return a}});let a=(e,t)=>t?t||t===e?"".concat(e,"/").concat(t):"".concat(e," Points"):"0 Points",s=e=>{let{requestedAmount:t,availableRewards:r,maxRewardsAllowed:a,rewardsLoaded:s}=e;return!!t&&(!s||t>Math.min(r,a))}}}]);

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.