1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2525],{2162:(e,t,r)=>{"use strict";r.d(t,{s:()=>i,t:()=>a});var n=r(12115);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():l(e[t],null)}}}}function i(...e){return n.useCallback(a(...e),e)}},7872:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n=r(95155),l=r(12115),a=r(50007),i=r(98417),o=r(91753);let s=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",secondaryLink:"text-primary underline underline-offset-2 hover:text-gray1",pseudoSelect:"border border-input bg-background justify-between border-black1 py-2 pl-4 pr-[6px] hover:bg-none [&_svg]:size-[35px]",searchSubmit:"border border-black1 bg-black1 font-normal uppercase leading-[1em] tracking-[12%] text-white1 duration-200 hover:border-gray1 hover:bg-gray1",pillButton:"border border-black1",pillButtonBlack:"bg-black1 text-white1"},size:{default:"h-10 px-4 py-2",xs:"h-6 lg:h-8 px-2 py-0",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",quickbuy:"h-[30px] w-[30px] rounded-full px-2",pseudoSelect:"h-[47px] w-full rounded-none",searchSubmit:"h-[42px] rounded-none p-3",pillButton:"h-8 rounded-full w-fit px-[15px] font-weight-[450]",autoHeight:"h-auto"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef((e,t)=>{let{className:r,variant:l,size:i,asChild:c=!1,...u}=e,d=c?a.DX:"button";return(0,n.jsx)(d,{className:(0,o.cn)(s({variant:l,size:i,className:r})),ref:t,...u})});c.displayName="Button"},11839:(e,t,r)=>{"use strict";r.d(t,{$e:()=>l,DF:()=>i,XE:()=>n,pq:()=>a});let n=1440,l=1080,a="contextSiteDate",i="siteDate"},15164:(e,t,r)=>{"use strict";r.d(t,{DateDriveWidget:()=>p});var n=r(95155),l=r(19749);let a=(0,r(76138).A)("SquareMenu",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 8h10",key:"1jw688"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h10",key:"wp8him"}]]);var i=r(12115),o=r(69172),s=r(7872),c=r(91753),u=r(36007),d=r(93069),f=r(11839);function p(){let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(d.vD,{children:(0,n.jsx)(h,{})}),t[0]=e):e=t[0],e}function h(){let e=(0,i.useRef)(null),t=(0,i.useRef)(null),r=(0,i.useRef)(null),l=(0,i.useRef)(null),p=()=>new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),[h,g]=(0,i.useState)(p),[m,x,v]=(0,d.lT)([f.pq,f.DF]),b=(0,i.useCallback)(async(e,t)=>{let r=e.getTime().toString();if(!(await fetch("/sotf_api/context",{method:"POST",body:JSON.stringify({siteDateString:r})})).ok)return void o.oR.error("Unable to apply the new context",{description:"An issue occurred when trying to apply the new context",cancel:{label:(0,n.jsx)(u.A,{color:"white"}),onClick:()=>{}}});let l=new Date;l.setHours(l.getHours()+8),t&&x(f.DF,t,{expires:l,path:"/"}),x(f.pq,r,{expires:l,path:"/"}),window.location.reload()},[x]),w=async()=>{var t;e.current&&(e.current.disabled=!0);let r=null==(t=l.current)?void 0:t.value,n=!!h&&h.split(":");if(r){let e=new Date(r),t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),n?parseInt(n[0],10):0,n?parseInt(n[1],10):0);await b(t)}e.current&&(e.current.disabled=!1)},y=async()=>{if(t.current&&(t.current.disabled=!0),!(await fetch("/sotf_api/context",{method:"POST",body:JSON.stringify({})})).ok){o.oR.error("Unable to remove the new context",{description:"An issue occurred when trying to remove the new context",cancel:{label:(0,n.jsx)(u.A,{color:"white"}),onClick:()=>{}}}),t.current&&(t.current.disabled=!1);return}v(f.pq,{path:"/"}),v(f.DF,{path:"/"}),window.location.reload()},[j,k]=(0,i.useState)(null),S="#fff",[C,N]=(0,i.useState)(S);return(0,i.useEffect)(()=>{!async function(){try{let e=await fetch("/sotf_api/context");if(e.ok){let t=await e.json();if(t.effectiveDateTime){let e=new Date(t.effectiveDateTime),r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),l=e.getFullYear(),a=e.getHours(),i=String(e.getMinutes()).padStart(2,"0"),o=String(a%12||12).padStart(2,"0");k({date:"".concat(n,"/").concat(r,"/").concat(l),time:"".concat(o,":").concat(i).c
1oncat(a>=12?"pm":"am")}),N("#0c0")}else k(null),N(S)}else k(null),N(S)}catch(e){k(null),N(S)}}()},[]),(0,i.useEffect)(()=>{if(m[f.pq]&&l.current){var e,t;let r=new Date(Number(m[f.pq]));[l.current.value]=r.toISOString().split("T"),g("".concat(String(null!=(e=r.getHours())?e:0).padStart(2,"0"),":").concat(String(null!=(t=r.getMinutes())?t:0).padStart(2,"0")))}},[m]),(0,i.useEffect)(()=>{let e=m[f.DF];if(!e)return;let t=function(e){if(!/^\d{12}$/.test(e))return null;let t=parseInt(e.slice(0,4),10),r=parseInt(e.slice(4,6),10)-1,n=parseInt(e.slice(6,8),10);return new Date(t,r,n,parseInt(e.slice(8,10),10),parseInt(e.slice(10,12),10))}(String(e));if(!t)return;let r=m[f.pq];r&&Math.floor(t.getTime()/6e4)===Math.floor(Number(r)/6e4)||b(t,String(e))},[m,b]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.$,{onClick:()=>{r.current&&(m[f.pq]||g(p()),r.current.showModal())},className:(0,c.cn)("shopper-context-widget fixed right-[20px] top-[calc(50%-100px)] z-overlay [&_svg]:h-6 [&_svg]:w-6",j?"h-18":""),title:"Site Context Options",children:(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)(a,{color:C}),j&&(0,n.jsxs)("div",{className:"pt-0.5 text-center leading-tight",style:{color:"#0c0",fontSize:"10px"},children:[(0,n.jsx)("div",{children:j.date}),(0,n.jsx)("div",{children:j.time})]})]})}),(0,n.jsxs)("dialog",{ref:r,className:"shopper-context-dialog fixed min-w-[350px] max-w-[90%] border border-black1 bg-white1 p-4 lg:min-w-[35%] lg:max-w-[50%]",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"mb-4 border-b border-black1 text-center text-xl",children:"Site Context Options"}),(0,n.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-5 lg:flex-row lg:items-end lg:gap-4",children:[(0,n.jsxs)("div",{className:"flex flex-row gap-2 lg:gap-4",children:[(0,n.jsxs)("label",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"mr-2",children:"Site Date:"}),(0,n.jsx)("input",{ref:l,type:"date",className:"context-site-date border border-black1 p-2"})]}),(0,n.jsxs)("label",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"mr-2",children:"Time:"}),(0,n.jsx)("input",{type:"time",className:"context-site-date border border-black1 p-2",value:h,onChange:e=>g(e.target.value)})]})]}),(0,n.jsx)("div",{children:(0,n.jsx)(s.$,{ref:e,onClick:w,children:"Apply Context"})})]})]}),(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(s.$,{className:"mt-6",ref:t,onClick:y,children:"Remove Context"})}),(0,n.jsx)(s.$,{onClick:()=>{r.current&&r.current.close()},variant:"link",className:"absolute right-1 top-1",children:(0,n.jsx)(u.A,{})})]})]})}},36007:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(95155),l=r(19749);let a=(0,r(12115).memo)(function(e){let t,r=(0,l.c)(2),{color:a}=e,i=void 0===a?"#767676":a;return r[0]!==i?(t=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.566 18.579",children:(0,n.jsxs)("g",{id:"Close_Icon","data-name":"Close Icon",transform:"translate(18.591 0.011) rotate(90)",children:[(0,n.jsx)("path",{id:"Path_28","data-name":"Path 28",fill:i,stroke:i,strokeWidth:"0.7px",d:"M.007,0H1.17L1.164,11.546H0Z",transform:"translate(9.262 10.114) rotate(-45)"}),(0,n.jsx)("path",{id:"Path_29","data-name":"Path 29",fill:i,stroke:i,strokeWidth:"0.7px",d:"M.007,0H1.17L1.164,11.546H0Z",transform:"translate(0.272 1.179) rotate(-45)"}),(0,n.jsx)("path",{id:"Path_13","data-name":"Path 13",fill:i,stroke:i,strokeWidth:"0.7px",strokeMiterlimit:"10",d:"M18.279,1.106,17.385.3,9.245,8.449l-.805.806L.3,17.4l.805.9,8.14-8.149.894-.9Z",transform:"translate(-0.001)"})]})}),r[0]=i,r[1]=t):t=r[1],t})},37766:(e,t,r)=>{"use strict";r.d(t,{default:()=>o,l:()=>i});var n=r(95155),l=r(19749),a=r(12115);let i=(0,a.createContext)({}),o=e=>{let t,r,o=(0,l.c)(6),{children:s,settings:c}=e,u=(0,a.useContext)(i);o[0]!==u||o[1]!==c?(t={...u,...c},o[0]=u,o[1]=c,o[2]=t):t=o[2];let d=t;return o[3]!==s||o[4]!==d?(r=(0,n.jsx)(i.Provider,{value:d,children:s}),o[3]=s,o[4]=d,o[5]=r):r=o[5],r}},50007:(e,t,r)=>{"use strict";r.d(t,{DX:()=>i});var n=r(12115),l=r(2162),a=r(95155),i=n.forwardRef((e,t)=>
1{let{children:r,...l}=e,i=n.Children.toArray(r),s=i.find(c);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(o,{...l,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(o,{...l,ref:t,children:r})});i.displayName="Slot";var o=n.forwardRef((e,t)=>{let{children:r,...a}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r),i=function(e,t){let r={...t};for(let n in t){let l=e[n],a=t[n];/^on[A-Z]/.test(n)?l&&a?r[n]=(...e)=>{a(...e),l(...e)}:l&&(r[n]=l):"style"===n?r[n]={...l,...a}:"className"===n&&(r[n]=[l,a].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==n.Fragment&&(i.ref=t?(0,l.t)(t,e):e),n.cloneElement(r,i)}return n.Children.count(r)>1?n.Children.only(null):null});o.displayName="SlotClone";var s=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return n.isValidElement(e)&&e.type===s}},51524:(e,t,r)=>{"use strict";r.d(t,{PersonalizeProvider:()=>d,q:()=>f});var n=r(95155),l=r(19749),a=r(12115),i=r(72533),o=r.n(i);let s=null;async function c(e){return o().getInitializationStatus()||(s=await o().init(e)),s}let u=(0,a.createContext)(null);function d(e){let t,r,i,o=(0,l.c)(7),{enabled:s,puid:d,children:f}=e,p=void 0!==s&&s,[h,g]=(0,a.useState)(null);return o[0]!==p||o[1]!==d?(t=()=>{p&&d&&c(d).then(g)},r=[p,d],o[0]=p,o[1]=d,o[2]=t,o[3]=r):(t=o[2],r=o[3]),(0,a.useEffect)(t,r),o[4]!==f||o[5]!==h?(i=(0,n.jsx)(u.Provider,{value:h,children:f}),o[4]=f,o[5]=h,o[6]=i):i=o[6],i}function f(){return(0,a.useContext)(u)}},76138:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(12115);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:c="",children:u,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:r,strokeWidth:s?24*Number(o)/Number(i):o,className:l("lucide",c),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:o,...s}=r;return(0,n.createElement)(i,{ref:a,iconNode:t,className:l("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),o),...s})});return r.displayName="".concat(e),r}},83318:(e,t,r)=>{Promise.resolve().then(r.bind(r,98206)),Promise.resolve().then(r.bind(r,37766)),Promise.resolve().then(r.bind(r,51524)),Promise.resolve().then(r.bind(r,15164))},91753:(e,t,r)=>{"use strict";r.d(t,{A_:()=>s,cn:()=>a,ej:()=>o,sX:()=>i});var n=r(99065),l=r(66253);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,n.$)(t))}function i(e){let t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),n=e.getFullYear();return"".concat(t,"/").concat(r,"/").concat(n)}async function o(e){return new Promise((t,r)=>{let n=new FileReader;n.onloadend=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)})}function s(e){return"boolean"==typeof e?e:"true"===e}},98206:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,default:()=>o});var n=r(95155),l=r(19749),a=r(12115);let i=(0,a.createContext)({updateContent:e=>{throw Error("Component must be wrapped in <ContentProvider>; content with keys ".concat(Object.keys(e).join(", ")," not set."))}}),o=e=>{let t,r,o,s,c=(0,l.c)(9),{children:u,content:d}=e,f=(0,a.useContext)(i);c[0]!==d||c[1]!==f?(t={...f,...d},c[0]=d,c[1]=f,c[2]=t):t=c[2];let[p,h]=(0,a.useState)(t);return c[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{h(t=>({...t,...e,updateContent:r}))},c[3]=r):r=c[3],c[4]!==p?(o={...p,updateContent:r},c[4]=p,c[5]=o):o=c[5],c[6]!==u||c[7]!==o?(s=(0,n.jsx)(i.Provider,{value:o,children:u}),c[6]=u,c[7]=o,c[8]=s):s=c[8],s}},98417:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(99065);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,i=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let a=l(t)||l(n);return i[e][a]}),c=r&&Object.entries(r).reduce((e,t)=>
1{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,s,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...l}=t;return Object.entries(l).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...c}[t]):({...o,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},e=>{e.O(0,[73,5781,2533,9172,8441,7165,7358],()=>e(e.s=83318)),_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.