PageSourceSearch

https://www.iceland.co.uk/mobify/bundle/2026/pages-select-delivery.js

js iceland.co.uk collected 2026-09-24 17:50:15 UTC 8,827 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"2.1.9"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:iceland-pwa":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f557d416-515e-47a4-af37-b22d6ed97f49",e._sentryDebugIdIdentifier="sentry-dbid-f557d416-515e-47a4-af37-b22d6ed97f49")}catch(e){}}(),(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[123],{22326:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var r=a(86330),l=a(14041),n=a(56351),i=a(76078),o=a(51409),d=a(66707),s=a(51512),c=a(93061),p=a(59986),y=a(50420);const v=(0,n.PA)(()=>{const{shippingAddress:e}=(0,p.JV)(),{addresses:t}=(0,p.NK)(),[a,r]=(0,l.useState)(!1),n=null==t?void 0:t.find(t=>t.addressId===(null==e?void 0:e.c_customerAddressID)),i=[[null==n?void 0:n.address1,null==n?void 0:n.address2].filter(Boolean).join(", "),null==n?void 0:n.postalCode].filter(Boolean).join(" ... ");return l.createElement(d.az,{backgroundColor:"white","data-test-selector":"select-delivery-address"},l.createElement(d.az,{display:"flex",flexDirection:["column","row"],alignItems:["flex-start","center"],justifyContent:"space-between",gap:["8px","16px"],padding:["12px","16px"],"data-test-selector":"select-delivery-address-summary"},l.createElement(d.so,{direction:"column",flexWrap:"wrap",gap:"8px"},l.createElement(d.EY,{weight:"bold"},"We'll deliver to:"),l.createElement(d.az,{display:"flex",alignItems:["flex-start","center"],gap:"8px"},l.createElement(c.MapPinIcon,{"aria-hidden":"true",flexShrink:"0",viewBox:"0 0 16 16",boxSize:["20px","16px"],style:{marginTop:"2px"}}),l.createElement(d.EY,{lineHeight:"short","data-test-selector":"select-delivery-address-value"},i||"No address selected"))),l.createElement(d.$n,{type:"button",variant:"link",size:"sm",additionalTextProps:{color:"accent1"},style:{textDecoration:"none",flexShrink:0},onClick:()=>r(e=>!e),"aria-expanded":a,"data-test-selector":"select-delivery-change-address"},"Change")),a&&l.createElement(d.az,{"data-test-selector":"select-delivery-address-editor"},l.createElement(y.k,null)))});var u=a(40507),m=a(27972),x=a(42930);a(47149);const g={"Standard Delivery":"/book-delivery?type=nextDay","Same Day Delivery":"/book-delivery?type=sameDay","Rapid Delivery":"/book-delivery?type=rapid","Pre-Book Delivery":"/pre-book-delivery"},b={"Standard Delivery":"nextDay","Same Day Delivery":"sameDay","Rapid Delivery":"rapid","Pre-Book Delivery":"prebook"},f=(0,n.PA)(e=>{const[t,a]=(0,l.useState)(!1),r=(0,m.A)(),n=(0,x.N1)(),{deliveryType:i,available:o=!0,lowestCost:s,unavailableMessage:p,deliveryTypeSubtext:y,features:v,minSpend:f}=e,E=()=>{if(!o)return;const e=i?g[i]:void 0,t=b[i||""],a=t?x.vv[t]:void 0;a&&e&&n({contentName:a,contentUrl:e}),e&&r(e,"push")},h={"Standard Delivery":c.DeliveryCardStandardIcon,"Same Day Delivery":c.DeliveryCardPreBookIcon,"Rapid Delivery":c.RapidThumbIcon,"Pre-Book Delivery":c.DeliveryCardPreBookIcon},D=i&&h[i]||null,k=(e=>null==e?void 0:e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""))(i),w=b[i||""],C=v.map((e,t)=>l.createElement(d.so,{key:t,gap:"8px"},l.createElement(c.FeatureCheckIcon,{"aria-hidden":"true",flexShrink:"0",marginTop:"4px"}),l.createElement(d.EY,{variant:"text1"},e))),S=l.createElement(d.az,{display:["flex","none"],justifyContent:"flex-end"},l.createElement(d.$n,{variant:"unstyled",disabled:!o,"aria-label":o?"Book a Slot":"Not available right now","data-test-selector":`delivery-box-${k}-book-slot-mobile`,padding:"12px",width:"24px",height:"24px",border:"2px",borderColor:"accent1",color:"accent1",onClick:E,style:{boxSizing:"content-box",borderRadius:"50%"}},l.createElement(c.ArrowRightIcon,{width:"24px",height:"24px",color:"accent1","aria-hidden":"true"})));return l.createElement(d.az,{flex:"1",backgroundColor:o?"white":"transparent","data-test-selector":`delivery-box-${k}`,padding:"16px",display:"flex",flexDirection:"column",border:"1px",borderColor:"gray100"}
1,l.createElement(d.az,{marginBottom:"16px",display:"flex",flexDirection:["row","column"],alignItems:["center","stretch"],gap:["12px","0px"],position:"relative"},D&&l.createElement(D,{marginBottom:["0px","16px"],boxSize:"56px","aria-hidden":"true"}),l.createElement(d.az,{flex:"1"},l.createElement(d.EY,{variant:"heading1SemiBold","data-test-selector":`delivery-box-${k}-title`},i),l.createElement(d.EY,{variant:"text3"},y)),"Rapid Delivery"===i&&l.createElement(d.EY,{position:"absolute",top:"0px",right:"0px",paddingX:"6px",color:"white",as:"span",borderRadius:"base",display:"inline",variant:"text1",backgroundColor:"accent5"},"Fastest")),p?l.createElement(d.az,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"12px",marginBottom:["0px","16px"],"data-test-selector":`delivery-box-${k}-unavailable`},l.createElement(d.EY,{variant:"text2Bold"},p),S):l.createElement(l.Fragment,null,l.createElement(d.az,{display:["block","none"]},l.createElement(d.$n,{variant:"unstyled",paddingX:"0px",style:{fontWeight:300},color:"accent5",textDecoration:"none",justifyContent:"flex-start",onClick:()=>a(e=>!e),"aria-expanded":t,"data-test-selector":`delivery-box-${k}-more-info`},t?"Less Info -":"More Info +")),t&&l.createElement(d.az,{display:["block","none"],backgroundColor:"gray75",borderRadius:"base",padding:"8px","data-test-selector":`delivery-info-${w}-delivery`},C),l.createElement(d.BJ,{display:["none","flex"],spacing:"0px","data-test-selector":`delivery-info-${w}-delivery`},C),l.createElement(d.az,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginY:[o?"0px":"16px","16px"]},l.createElement(d.BJ,{spacing:"0px","data-test-selector":`delivery-fee-${w}-delivery`},null!=s&&l.createElement(d.EY,{variant:"unstyled",size:"xs",weight:"semibold"},0===s?"From FREE":`From £${s.toFixed(2)}`),"Rapid Delivery"===i?l.createElement(d.az,{className:"_1dd2ee60"},l.createElement(u.z,{variant:"bookDelivery"})):f&&"Pre-Book Delivery"!==i?l.createElement(d.EY,{variant:"unstyled",size:"xs",weight:"normal"},"Min spend £",f,"."):null),o&&S)),l.createElement(d.BJ,{marginTop:"auto"},l.createElement(d.az,{display:[o?"none":"block","block"],width:"full"},l.createElement(d.$n,{width:"full",variant:o?"outlinePrimary":"dark",disabled:!o,onClick:E,"data-test-selector":`delivery-box-${k}-book-slot-desktop`},o?"Book a Slot":"Not available right now"))))});var E=a(90080),h=a(86090),D=a(83463);const k=(0,n.PA)(()=>{var e;const t=(0,h.zy)(),a=null==t||null===(e=t.state)||void 0===e?void 0:e.originPath,{basket:n,deliveryPostalCode:c}=(0,p.JV)(),{isRegistered:y,loading:u}=(0,p.NK)(),{availableDeliveryTypes:x,loadAvailability:g,minDeliveryThreshold:b}=(0,p.$3)(),[k,w]=(0,l.useState)(!0),C=(0,D.KF)(),S=x.some(({available:e})=>e);(0,l.useEffect)(()=>{!k&&S&&C("Select Delivery Type","Delivery","Delivery")},[k,S]);const z=(0,m.A)();return(0,l.useEffect)(()=>{u||y||z("/login","push",{directedFrom:"/select-delivery",originPath:a})},[u,y,a]),(0,l.useEffect)(()=>{if(null==n||!n.basketId)return;let e=!0;return function(){var t=(0,r.A)(function*(){try{yield g()}finally{e&&w(!1)}});return function(){return t.apply(this,arguments)}}()(),()=>{e=!1}},[null==n?void 0:n.basketId,c,g]),l.createElement(o.P,null,l.createElement(s.G,{title:"Choose Your Delivery | Iceland Delivery",description:"Choose a delivery slot with Iceland and receive your order at a time that suits you."}),l.createElement(d.mc,{paddingX:"16px",paddingBottom:"16px"},l.createElement(d.az,{paddingY:"12px","data-test-selector":"select-delivery-breadcrumbs"},l.createElement(i.B,{breadcrumbs:[{id:"SELECT_DELIVERY",name:"Choose delivery"}]})),l.createElement(d.EY,{paddingBottom:"40px",as:"h2",variant:"heading4",lineHeight:"taller","data-test-selector":"select-delivery-heading"},"Choose Your Delivery"),l.createElement(v,null),l.createElement(d.az,{position:"relative",minHeight:"180px","data-test-selector":"select-delivery-options"},l.createElement(E.A,{isLoading:k,text:"Loading delivery options..."}),!k&&l.createElement(d.az,{display:"grid",gridTemplateColumns:["1x","4x"],gap:"16px",marginTop:"24px","data-test-selector":"select-delivery-options-grid"},x.map(e=>l.createElement(f,{key:e.deliveryType,deliveryType:e.deliveryType,available:e.available,lowestCost:e.lowestCost,unavailableMessage:e.unavailableMessage,deliveryTypeSubtext:e.deliveryTypeSubtext,features:e.features,minSpend:b}))))))})}}]);
2//# sourceMappingURL=pages-select-delivery.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.