PageSourceSearch

https://www.lundsandbyerlys.com/static/js/NextAvailableTimeslot.9c100b0d.chunk.js

js lundsandbyerlys.com collected 2026-09-24 10:24:02 UTC 12,650 bytes, 46 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3881],{18029:(e,t,o)=>{var a=o(35393),s=o(11700);e.exports=a(function(e,t,o){return e+(o?" ":"")+s(t)})},95444:(e,t,o)=>{"use strict";o.r(t),o.d(t,{NextAvailableTimeslotLoader:()=>et,default:()=>eo});var a=o(85893),s=o(67294),i=o(29163),l=o(55977),r=o(67979),n=o(51667),d=o(29039);let c=i.ZP.div.withConfig({displayName:"NextAvailableTimeslotIconWrapper",componentId:"-__sc-17940966-0"})(["position:relative;"]),m=(0,i.ZP)(n.pA).withConfig({displayName:"NextAvailableTimeslotIcon",componentId:"-__sc-17940966-1"})(({theme:e,name:t})=>`
2    fill: ${"AccountSolid"===t?e.colors.brandColors.primary1:e.colors.uiColors.greyscale5};
3  `),p=(0,i.ZP)(n.pA).withConfig({displayName:"NextAvailableTimeslotSecondaryIcon",componentId:"-__sc-17940966-2"})(({theme:e,name:t})=>{let o="CheckCircle"===t?e.colors.uiColors.success:"Clear"===t?e.colors.uiColors.alert:e.colors.brandColors.primary1;return`
4    background-color: ${e.colors.uiColors.greyscale1};
5    position: absolute;
6    bottom: 0;
7    right: -${l.W0.xxs};
8    fill: ${o};
9    ${(0,d.E0)("50%")};
10  `});var g=o(15158);let T=i.ZP.div.withConfig({displayName:"NextAvailableTimeslot",componentId:"-__sc-250545d0-0"})(({theme:e})=>`
11    background-color: ${e.colors.uiColors.greyscale1};
12    width: 100%;
13    padding: ${l.W0.sm};
14    display: grid;
15    grid-template-columns: 1fr;
16    grid-gap: ${l.W0.sm};
17
18    ${(0,r.Z)("md",{noUpper:!0})} {
19      grid-template-columns: 1fr auto;
20    }
21  `),u=(0,i.ZP)(T).withConfig({displayName:"NextAvailableTimeslotLoading",componentId:"-__sc-250545d0-1"})(["text-align:center;"]),S=i.ZP.div.withConfig({displayName:"NextAvailableTimeslotContent",componentId:"-__sc-250545d0-2"})(["display:grid;grid-template-columns:"," auto;align-items:center;grid-gap:0 ",";","{grid-template-columns:"," auto;grid-gap:"," ",";}","{grid-template-columns:"," auto auto;grid-gap:"," ",";}"],l.W0.md,l.W0.xs,(0,r.Z)("md"),l.W0.md,l.W0.xs,l.W0.sm,(0,r.Z)("lg"),l.W0.md,l.W0.xxs,l.W0.sm),x=(0,i.ZP)(e=>{let{className:t,step:o}=e,i=s.useMemo(()=>{switch(o){case"ReservedTimeSlotItem":return"CheckCircle";case"SoldOutTimeSlotItem":return"Clear";default:return"ReserveTime"}},[o]);return(0,g.Z)(()=>(0,a.jsxs)(c,{className:t,"data-testid":`NextAvailableTimeslotIconTestId-${o}`,children:[(0,a.jsx)(m,{name:"WelcomeTimeSlotItem"===o?"AccountSolid":"ReserveDate",size:l.W0.md}),"WelcomeTimeSlotItem"!==o&&(0,a.jsx)(p,{"data-testid":`NextAvailableTimeslotSecondaryIconTestId-${o}`,name:i,size:l.W0.vsm})]}),{componentName:"NextAvailableTimeslotIcon"})}).withConfig({displayName:"NextAvailableIcon",componentId:"-__sc-250545d0-3"})(["grid-column:1 / 2;grid-row:1 / 2;","{grid-row:1 / 3;}"],(0,r.Z)("md",{noUpper:!0})),h=i.ZP.h3.withConfig({displayName:"NextAvailableTimeslotHeading",componentId:"-__sc-250545d0-4"})(({theme:e})=>`
22    margin: 0;
23    font-size: ${e.typography.text.fontSM.fontSize};
24    font-weight: ${e.typography.text.fontSM.fontWeight};
25
26    ${(0,r.Z)("md",{noUpper:!0})} {
27      align-self: end;
28      font-size: ${e.typography.text.fontLG.fontSize};
29      line-height: ${e.typography.text.fontLG.lineHeight};
30      font-weight: ${e.typography.text.fontLG.fontWeight};
31    }
32  `),y=i.ZP.span.withConfig({displayName:"NextAvailableTimeslotSubheading",componentId:"-__sc-250545d0-5"})(({theme:e})=>`
33    font-size: ${e.typography.text.fontSM.fontSize};
34    grid-column: 1 / 3;
35
36    ${(0,r.Z)("sm")} {
37      padding-top: ${l.W0.sm};
38    }
39
40    ${(0,r.Z)("md",{noUpper:!0})} {
41      grid-column: 2 / 3;
42      align-self: start;
43    }
44  `),b=i.ZP.span.withConfig({displayName:"NextAvailableTimeslotDate",componentId:"-__sc-250545d0-6"})(({theme:e,selected:t})=>`
45    ${t?`color: ${e.colors.uiColors.success};`:""}
46  `),v=i.ZP.div.withConfig({displayName:"NextAvailableTimeslotActions",componentId:"-__sc-250545d0-7"})(["display:grid;grid-template-columns:1fr 1fr;grid-gap:",";align-items:center;","{grid-template-columns:1fr;}","{grid-gap:",";}"],l.W0.xs,(0,r.Z)("md"),(0,r.Z)("lg"),l.W0.sm),I=(0,i.ZP)(n.zx).withConfig({displayName:"NextAvailableTimeslotBtn",componentId:"-__sc-250
46545d0-8"})([""]);var N=o(86706),A=o(22157),C=o(15009),f=o(18029),E=o.n(f),P=o(48710);let _=e=>{let{className:t,ctaPrimaryText:o,ctaPrimaryAction:s,ctaSecondaryText:i,ctaSecondaryAction:l,heading:r,step:n,subheading:d,timeslotDate:c}=e;return(0,g.Z)(()=>(0,a.jsxs)(T,{className:t,"data-testid":`NextAvailableTimeslotTestId-${n}`,children:[(0,a.jsxs)(S,{children:[(0,a.jsx)(x,{step:n}),(0,a.jsx)(h,{"data-testid":"NextAvailableTimeslotHeadingTestId",...P.kf,children:r}),d&&(0,a.jsxs)(y,{"data-testid":"NextAvailableTimeslotSubHeadingTestId",children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:d}}),c&&(0,a.jsx)(b,{"data-testid":"NextAvailableTimeslotDateTestId",selected:"ReservedTimeSlotItem"===n,children:"ReservedTimeSlotItem"===n?(0,a.jsx)("strong",{children:` ${c}`}):` ${c}`})]})]}),(0,a.jsxs)(v,{children:[(0,a.jsx)(I,{adjustForTouch:!0,handleClick:s,"data-testid":"NextAvailableTimeslotPrimaryActionTestId",children:o}),(0,a.jsx)(I,{adjustForTouch:!0,buttonStyle:"secondary",handleClick:l,"data-testid":"NextAvailableTimeslotSecondaryActionTestId",children:i})]})]}),{componentName:"NextAvailableTimeslot"})};var L=o(39812),Z=o(33526),$=o(3380),M=o(82599);let w={openGlobalModal:L.f9,reserveTimeSlot:$.l,userSessionCanDeliver:M.Z},j=(0,N.$j)(e=>({addressIntegrationV2:e.settings.retailer.addressIntegrationV2,selectedShoppingMode:(0,C.kR)(e),sessionZipCode:e.sessions.userSession.zipCode,nextAvailableTimeslotLabel:e.slots.nextAvailableTimeslot.days[0].label,nextAvailableTimeslotSubLabel:e.slots.nextAvailableTimeslot.days[0].subLabel,nextAvailableTimeslot:(0,C.P2)(e)}),w)(e=>{var t;let o,{addressIntegrationV2:s,bodyText:i,buttonTextA:l,buttonTextB:r,headerText:n,nextAvailableTimeslot:d,nextAvailableTimeslotLabel:c,nextAvailableTimeslotSubLabel:m,openGlobalModal:p,reserveTimeSlot:T,selectedShoppingMode:u,sessionZipCode:S,userSessionCanDeliver:x}=e,h={ctaPrimaryAction:async()=>{let e=d?.reservationId??"",t=d?.slotId??"";e&&t&&await T(e,t)},ctaPrimaryText:l,ctaSecondaryAction:async()=>{u===Z._Cb?S?await x()?p(Z.STEP_TYPES.DELIVERYTIMESLOTS):p(Z.STEP_TYPES.DELIVERY):s?p(Z.STEP_TYPES.DELIVERYTIMESLOTS):p(Z.STEP_TYPES.DELIVERY):p(Z.STEP_TYPES.DELIVERYTIMESLOTS)},ctaSecondaryText:r,heading:n,step:"NextTimeSlotItem",subheading:i,timeslotDate:(t=d?.range??"",o="",c&&(o=o.concat(c,", ")),m&&(o=o.concat(m,", ")),t&&(o=o.concat(t)),o)};return(0,g.Z)(()=>(0,a.jsx)(_,{...h}),{componentName:"NextAvailableTimeslotAvailable"})});var D=o(60387),W=o(1563),O=o(93882);let R={openGlobalModal:L.f9,userSessionCanDeliver:M.Z},Y=(0,N.$j)(e=>({addressIntegrationV2:e.settings.retailer.addressIntegrationV2,isCustomerLoggedIn:(0,A.n)(e),retailerStoreId:e.stores.retailerStoreId,selectedShoppingMode:(0,C.kR)(e),sessionZipCode:e.sessions.userSession.zipCode,timeslotDate:e.slots.reservationDetails.slotDateTimeShort}),R)(e=>{let{addressIntegrationV2:t,bodyText:o,buttonTextA:s,buttonTextB:i,headerText:l,isCustomerLoggedIn:r,openGlobalModal:n,retailerStoreId:d,selectedShoppingMode:c,sessionZipCode:m,timeslotDate:p,userSessionCanDeliver:T}=e,u={ctaPrimaryAction:()=>{(0,O.Z)("reviewButton")&&(window.location.href=`${window.location.origin}${(0,D.Z)(c,d,W.ZP.cartReview)}`)},ctaPrimaryText:s,ctaSecondaryAction:async()=>{r?c===Z._Cb?m?await T()?n(Z.STEP_TYPES.DELIVERYTIMESLOTS):n(Z.STEP_TYPES.DELIVERY):t?n(Z.STEP_TYPES.DELIVERYTIMESLOTS):n(Z.STEP_TYPES.DELIVERY):n(Z.STEP_TYPES.DELIVERYTIMESLOTS):n(Z.STEP_TYPES.LOGIN,{ariaLabel:Z.STEP_TYPES.LOGIN})},ctaSecondaryText:i,heading:l,step:"ReservedTimeSlotItem",subheading:o,timeslotDate:p};return(0,g.Z)(()=>(0,a.jsx)(_,{...u}),{componentName:"NextAvailableTimeslotSelected"})});var k=o(14410),V=o(61306),z=o(73342),G=o(19904);let H={openGlobalModal:L.f9,setPotentialShoppingModeId:k.ni,setPotentialShoppingModeName:k.J4},B=(0,N.$j)(e=>({availableShoppingModes:(0,C.DN)(e),modifyInProgress:e.cart.orderModifyStatus.modifyInProgress,shoppingModeName:e.shoppingModes.selectedShoppingMode.displayName,shoppingModes:e.shoppingModes.shoppingModesList}),H)(e=>{let{t}=s.useContext(z.q),{availableShoppingModes:o,bodyText:i,buttonTextA:l,buttonTextB:r,headerText:n,modifyInProgress:d,openGlobalModal:c,setPotentialShoppingModeId:m,setPotentialShoppingModeName:p,shoppingModeName:T,shoppingModes:u}
46=e,{canChangeMode:S,canChangeStore:x,oppositeShoppingMode:h}=(0,G.Z)(o,T),y=e=>{let t=u.find(t=>t.displayName===e);t&&(p(t.displayName),m(t.shoppingModeId))},b={ctaPrimaryAction:()=>{S&&!d&&((0,V.Gq)(""),c(h,{isCheckout:!0,ariaLabel:h}),y(h))},ctaPrimaryText:l,ctaSecondaryAction:()=>{x&&!d&&((0,V.Gq)(""),c(T,{isCheckout:!0,ariaLabel:t("modals.ariaLabel.changeStore")}),y(T))},ctaSecondaryText:r,heading:n,step:"SoldOutTimeSlotItem",subheading:i};return(0,g.Z)(()=>(0,a.jsx)(_,{...b}),{componentName:"NextAvailableTimeslotUnavailable"})}),U=e=>{let t=s.useContext(z.q),o=()=>{(0,A.$v)({context:t})},i={ctaPrimaryAction:o,ctaPrimaryText:e.buttonTextA,ctaSecondaryAction:o,ctaSecondaryText:e.buttonTextB,heading:e.headerText,step:"WelcomeTimeSlotItem",subheading:e.bodyText};return(0,g.Z)(()=>(0,a.jsx)(_,{...i}),{componentName:"NextAvailableTimeslotWelcome"})};var q=o(8618),F=o(7338),K=o(4894),J=o(91247),Q=o(71387),X=o(6275);let ee=async(e,t,o,a,s,i)=>{let l=o(),r=l.stores.retailerStoreId,n=(0,C.pj)(l)?X.V:"",d=`v1/stores/${r}/timeslots/nextavailable${n}`;try{if((0,A.n)(l)){let s=await e.get(d,{headers:a(o(),i,{})});t((0,F.bi)(s.data))}}catch(e){s.error("getNextAvailableTimeslotServer() ",e,{retailerStoreId:r})}},et=e=>{let{customerName:t,hasSelectedSlot:o,isLoggedIn:i,items:r,isPlanning:d,nextAvailableTimeslot:c,shoppingMode:m}=e,p=!!c,T=s.useMemo(()=>((e,t,o)=>{try{return e.reduce((e,a)=>{let s=E()(t),i={"Customer.FirstName":o??"Guest","Order.Fulfillment.Type":s},l=(e,t)=>
46{try{return e.replace(/\{\{([^{}]*)\}\}/g,(e,o)=>t[o]||"")}catch{return e}},r={buttonTextA:a.buttonTextA?l(a.buttonTextA,i):"",buttonTextB:a.buttonTextB?l(a.buttonTextB,i):"",headerText:a.headerText?l(a.headerText,i):"",bodyText:a.bodyText?l(a.bodyText,i):"",type:a.type??""};return e[a.type]=r,e},{})}catch{return null}})(r,m,t),[r,m,t]),[S,x]=s.useState(!1);return s.useEffect(()=>{!i||o||d||(async()=>{x(!1),await e.getNextAvailableTimeslotClient(),x(!0)})()},[i,o]),(0,g.Z)(()=>d||!T?null:i?o?(0,a.jsx)(Y,{...T.ReservedTimeSlotItem}):S?p?(0,a.jsx)(j,{...T.NextTimeSlotItem}):(0,a.jsx)(B,{...T.SoldOutTimeSlotItem}):(0,a.jsx)(u,{children:(0,a.jsx)(n.$j,{width:l.W0.lg,height:l.W0.lg})}):(0,a.jsx)(U,{...T.WelcomeTimeSlotItem}),{componentName:"NextAvailableTimeslotLoader"})},eo=(0,N.$j)(e=>({hasSelectedSlot:(0,C.rf)(e),isLoggedIn:(0,A.n)(e),shoppingMode:(0,C.kR)(e),nextAvailableTimeslot:(0,C.P2)(e),customerName:e.customer.details.firstName,isPlanning:(0,C.oD)(e)}),{getNextAvailableTimeslotClient:()=>async(e,t)=>await ee(K.sg,e,t,Q.Z,q.logger,(0,J.Z)())})(et)},19904:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var a=o(33526),s=o(8618);let i=(e,t)=>{let o={canChangeStore:!1,canChangeMode:!1,oppositeShoppingMode:a._Cb};try{let s=t===a.c3p?a._Cb:a.c3p;return o.oppositeShoppingMode=s,o.canChangeStore=!!Object.keys(e).includes(t)&&e[t]>1,o.canChangeMode=!!Object.keys(e).includes(s)&&e[s]>0,o}catch(a){return s.logger.warn("changeCommerceStoreOrMode() ",a,{storesToModes:e,currentMode:t,result:o}),o}}},82599:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var a=o(4894),s=o(8618),i=o(31039),l=o(91247),r=o(71387);let n=()=>{let e;return e=(0,l.Z)(),async(t,o)=>{let l=o(),{userSession:n}=l.sessions;try{if(!n.zipCode)return!1;let t=l.stores.retailerStoreId,o=l.shoppingModes.selectedShoppingMode,s=(0,i.O)(l);return await a.sg.head(`v1/code/${n.zipCode}/ShoppingModes/${o.shoppingModeId}/Stores/${t}`,{headers:(0,r.Z)(l,e,s)}),!0}catch(e){return s.logger.error("userSessionCanDeliver()",e,n),!1}}}},3380:(e,t,o)=>{"use strict";o.d(t,{l:()=>c});var a=o(33526),s=o(7338),i=o(44818),l=o(8618),r=o(92430),n=o(7599),d=o(4894);let c=(e,t)=>async(o,c)=>{try{o((0,s.D4)(t));let a=c();await d.sg.post(`v1/stores/${a.stores.retailerStoreId}/slots/reserve`,{reservationId:e}),o((0,r.D9)({data:{SlotId:t},type:"timeslot_reserved"}))}catch(c){let r=c?.response?.data?.errorCode,d=!!r&&Object.keys(a.TCg).includes(r);d&&o((0,n.P)(r)),400===c.response.status?(o(c.response.data.errorCode===a.Rpy?(0,i.OW)(c.response.data,a.AHT):(0,i.OW)(c.response.data,a.ytL)),o((0,s.Ai)(t,e)),o((0,s.mH)()),l.logger.warn("Timeslot shoppingRules reserveTimeSlot()",{error:c,reservationId:e,SlotId:t})):(l.logger.error("reserveTimeSlotAPI()",c,{SlotId:t,reservationId:e}),o((0,s.Iu)(t,e)),d||await o((0,n.f)()))}}}}]);

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.