!function(){"use strict";const e=Object.freeze({5259:"2026-09-01",5260:"2026-09-02",5261:"2026-09-03",5262:"2026-09-04",5263:"2026-09-07",5264:"2026-09-08",5265:"2026-09-09",5266:"2026-09-10",5267:"2026-09-11",5268:"2026-09-14",5269:"2026-09-15",5270:"2026-09-16",5271:"2026-09-17",5272:"2026-09-18",5273:"2026-09-21",5274:"2026-09-22",5275:"2026-09-23",5276:"2026-09-24",5277:"2026-09-25",5278:"2026-09-28"}),t=Object.freeze({5258:14,5257:28}),r=Object.freeze({autoOpenDelayMs:1e3,itemCount:5,modalId:"delivery-information",noDeliveryDatesGlobal:"deliveryScheduleNoDeliveryDates",noticeId:"delivery-messages",sessionStorageKey:"isShownDelivery",styleElementId:"delivery-schedule-styles",textOverrideGlobal:"deliveryScheduleText"}),n=Object.freeze({noticeText:"Important information about delivery schedule -",noticeLinkText:"click here",modalTitle:"Important Notice!",scheduleTitle:"Delivery schedule",orderByTitle:"Order by 12pm",deliveryOnTitle:"For delivery on",confirmationButtonText:"Got it"}),i=/^(\d{4})-(\d{2})-(\d{2})$/;function o(e){const t=i.exec(e);if(!t)throw new TypeError(`Invalid ISO date: ${e}`);const[,r,n,o]=t.map(Number),d=new Date(Date.UTC(r,n-1,o));if(d.getUTCFullYear()!==r||d.getUTCMonth()!==n-1||d.getUTCDate()!==o)throw new TypeError(`Invalid calendar date: ${e}`);return d}function d(e=new Date){return[e.getFullYear(),String(e.getMonth()+1).padStart(2,"0"),String(e.getDate()).padStart(2,"0")].join("-")}function a(e,t){const r=o(e);return r.setUTCDate(r.getUTCDate()+t),function(e){return[e.getUTCFullYear(),String(e.getUTCMonth()+1).padStart(2,"0"),String(e.getUTCDate()).padStart(2,"0")].join("-")}(r)}function l(e){return Array.isArray(e)?new Set(e.filter(e=>{if("string"!=typeof e)return!1;try{return o(e),!0}catch(t){return!1}})):new Set}function s(e){const t=o(e).getUTCDay();return 0===t||6===t}function c(e,t=[]){const r=o(e).getUTCDay(),n=4===r||5===r,i=t instanceof Set?t:l(t);let d=a(e,n?4:2);for(;s(d)||i.has(d);)d=a(d,1);return d}function f({startDate:e,frequencyDays:t,today:r=d(),count:n=5,noDeliveryDates:i=[]}){if(!Number.isInteger(t)||t<=0)throw new TypeError("frequencyDays must be a positive integer");const s=(f=r,y=e,Math.round((o(f).getTime()-o(y).getTime())/864e5));var f,y;const u=Math.max(0,Math.ceil(s/t)),m=l(i);return Array.from({length:n},(r,n)=>{const i=a(e,(u+n)*t);return{deliveryDate:c(i,m),orderDate:i}})}function y(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function u(e){return"string"==typeof e&&""!==e.trim()}function m(e){return e.replace(/[&<>"']/g,e=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[e]))}function v(e){const{day:t,month:r,suffix:n}=function(e){const t=o(e),r=t.getUTCDate(),n=r%10==1&&11!==r?"st":r%10==2&&12!==r?"nd":r%10==3&&13!==r?"rd":"th";return{day:r,month:t.toLocaleString("en-GB",{month:"long",timeZone:"UTC"}),suffix:n}}(e);return`
${t}${n} ${r}
`}function p(){var e,t;const jQuery=null!=(e=window.jQuery)?e:window.$;return jQuery&&"function"==typeof(null==(t=jQuery.fn)?void 0:t.modal)?(jQuery(`#${r.modalId}`).modal("show"),!0):(console.error("The delivery popup requires the Bootstrap jQuery modal plugin."),!1)}function g(){if(document.querySelector(".ex-loggedout")||document.getElementById(r.modalId))return;const i=function(r){const n=Array.from(r).map(e=>{var t;return null==(t=/^ex-l-(\d+)$/.exec(e))?void 0:t[1]}).filter(Boolean),i=n.find(t=>e[t]),o=n.find(e=>t[e]);return i&&o?{frequencyDays:t[o],frequencyLabelId:o,startDate:e[i],startLabelId:i}:null}(document.body.classList);if(!i)return;!function(){if(document.getElementById(r.styleElementId))return;const e=document.createElement("style");e.id=r.styleElementId,e.textContent="#delivery-messages,#delivery-information{--delivery-accent: red;--delivery-primary: #253775;--delivery-text: #2b2b2b;--delivery-tint: #f6f6f6}.account-theme-active #delivery-messages,.account-theme-active #delivery-information{--delivery-accent: var(--evo-brand-default, var(--account-primary, #253775));--delivery-primary: var(--evo-brand-default, var(--account-primary, #253775));--delivery-tint: var(--account-tint, #f6f6f6)}#delivery-messages{position:fixed;top:0;left:0;width:100%;background-color:var(--delivery-accent);text-align:center;z-index:900;cursor:pointer}#delivery-messages p{padding:0;margin:0;color:#fff;font-size:1rem}#delivery-information .modal-dialog{width:auto;max-width:580px;margin:30px auto}#delivery-information .modal-content{overflow:visible;border:0;border-radius:10px;background-color:#fff;box-shadow:0 12px 38px #0003}#delivery-information .modal-header{position:relative;padding:14px 44px;border:0;border-radius:10px 10px 0 0;background-color:var(--delivery-accent)}#delivery-information-label{margin:0;color:#fff;text-align:center;font-size:1.45rem;font-weight:700;line-height:1.2}#delivery-information .close{position:absolute;top:50%;right:14px;float:none;padding:0;margin:0;border:0;background:transparent;color:#fff;font-size:30px;line-height:1;text-shadow:none;transform:translateY(-50%);opacity:1}#delivery-information .close:hover,#delivery-information .close:focus-visible{color:#fff;opacity:1}#delivery-information .modal-body{padding:12px 14px 14px;border-radius:0 0 10px 10px;background-color:#fff}.delivery-wrapper{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;text-align:center}.delivery-schedule-title{padding:10px 14px;border-radius:6px;background-color:transparent;color:var(--delivery-text)}.delivery-schedule-title p{margin:0;color:var(--delivery-text);font-size:1.3rem;font-weight:700;line-height:1.2}.delivery-table{overflow:hidden;border:1px solid #d7dfeb;border-radius:10px;background-color:#fff}.delivery-table-header,.delivery-row{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);align-items:center}.delivery-table-header{min-height:48px;padding:7px 12px;background-color:var(--delivery-primary);color:#fff}.delivery-table-header p{margin:0;color:#fff;font-size:.95rem;font-weight:700;line-height:1.25}.delivery-row{min-height:48px;padding:7px 12px;color:var(--delivery-text)}.delivery-row:nth-child(2n){background-color:var(--delivery-tint)}.delivery-row+.delivery-row{border-top:1px solid #d7dfeb}.delivery-date{margin:0;color:var(--delivery-text);font-size:1.05rem;font-weight:500;line-height:1.2}.delivery-date sup{font-size:.6em;line-height:0}.delivery-row>.fa-arrow-right{color:var(--delivery-primary);font-size:1rem;font-weight:700;line-height:1}.delivery-confirm{width:100%;padding:9px 16px;border:0;border-radius:8px;background-color:var(--delivery-primary);color:#fff;font:inherit;font-size:1rem;font-weight:700;line-height:1.2;cursor:pointer;transition:background-color .2s ease}.delivery-confirm:hover,.delivery-confirm:focus-visible{background-color:#2b2b2b;color:#fff}@media only screen and (max-width:768px){#delivery-information .modal-dialog{max-width:none;margin:20px 12px}#delivery-information .modal-header{padding:13px 42px}#delivery-information-label{font-size:1.25rem}#delivery-information .close{right:14px;font-size:28px}#delivery-information .modal-body{padding:10px}.delivery-wrapper{gap:9px}.delivery-schedule-title{padding:8px 10px}.delivery-schedule-title p{font-size:1.15rem}.delivery-table-header,.delivery-row{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);padding:6px}.delivery-table-header,.delivery-row{min-height:44px}.delivery-table-header p{font-size:.85rem}.delivery-date{font-size:1.05rem}.delivery-row>.fa-arrow-right{font-size:1.05rem}.delivery-confirm{padding:11px 14px;font-size:1.05rem}}@media only screen and (max-width:500px){body:has(#delivery-information){padding-top:10px}#delivery-information .modal-dialog{margin:12px 8px}.delivery-table-header p{font-size:.75rem}.delivery-date{font-size:.95rem}}",document.head.append(e)}();const o=f({count:r.itemCount,frequencyDays:i.frequencyDays,noDeliveryDates:window[r.noDeliveryDatesGlobal],startDate:i.startDate}),d=function(e,t){const r=y(t)?t:{},i=y(r.default)?r.default:{},o=Array.from(e).find(e=>/^ex-l-\d+$/.test(e)&&y(r[e])),d=o?r[o]:{};return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,u(d[e])?d[e]:u(i[e])?i[e]:t]))}(document.body.classList,window[r.textOverrideGlobal]),a=function(e){const t=document.createElement("div");return t.id=r.noticeId,t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.innerHTML=`${m(e.noticeText)} ${m(e.noticeLinkText)}
`,t}(d);document.body.append(a),document.body.insertAdjacentHTML("beforeend",function(e,t){const n=e.map(({deliveryDate:e,orderDate:t},r)=>`\n