1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[457],{665:function(e,a,n){n.d(a,{b:function(){return o},w:function(){return r}});var s=n(30120),t=n(31304),l=n.n(t);let o=e=>{let{state:a,city:n,id:s}=e,t=l()(n,{lower:!0,remove:/[*+~.()'"!:@]/g});return"".concat(a.toLowerCase(),"-").concat(t,"-").concat(s)},r=(e,a)=>{var n;let t=s.ou.now(),l=t.toFormat("cccc"),o=e.find(e=>e.day===l),r=null==a?void 0:a.find(e=>s.ou.fromMillis(e.date).toISODate()===t.toISODate()),d=((null==r?void 0:null===(n=r.hoursString)||void 0===n?void 0:n.match(/\(.*?\)/))||[])[0];if(!o||!o.openTime||!o.closeTime)return c(t,e,a,d);let m=(null==r?void 0:r.openTime)||o.openTime,x=(null==r?void 0:r.closeTime)||o.closeTime,u=s.ou.fromFormat(m,"Hm").set({day:t.day,month:t.month,year:t.year}),h=s.ou.fromFormat(x,"Hm").set({day:t.day,month:t.month,year:t.year});return t>=u&&t<h?{isOpen:!0,isClosingSoon:h.diff(t,"minutes").minutes<=60,hoursString:"Closes ".concat(i(h)),holidayLabel:d}:t<u?{isOpen:!1,isClosingSoon:!1,hoursString:"Opens ".concat(i(u)),holidayLabel:d}:c(t,e,a,d)},c=(e,a,n,t)=>{let l;for(let t=1;t<7;t++){let o=e.plus({days:t}),r=o.toFormat("cccc"),c=a.find(e=>e.day===r),i=null==n?void 0:n.find(e=>s.ou.fromMillis(e.date).toISODate()===o.toISODate());if(!(i&&null===i.closeTime&&null===i.openTime)&&c&&c.openTime){l=c;break}}if(null==l||!l.openTime)return{isOpen:!1,isClosingSoon:!1,hoursString:""};{let e=s.ou.fromFormat(l.openTime,"Hm");return{isOpen:!1,isClosingSoon:!1,hoursString:"Opens ".concat(i(e,l.day)),holidayLabel:t}}},i=(e,a)=>{let n=e.minute>0?"h:mma":"ha";return a?"".concat(a," at ").concat(e.toFormat(n)):e.toFormat(n)}},12240:function(e,a,n){n.d(a,{Q:function(){return r}});var s=n(85893),t=n(24189),l=n(20265);function o(e){let a=encodeURIComponent(e);return"https://www.google.com/maps/dir/?api=1&destination=".concat(a)}function r(e){let{storeBanner:a,storeName:n,addressLine:r,zip:c,appearance:i="button"}=e;return"link"===i?(0,s.jsxs)("a",{className:"flex items-center gap-1 text-body-small text-navy",target:"_blank",rel:"noopener noreferrer",href:o("".concat(a," ").concat(n,", ").concat(r,", ").concat(c)),"aria-label":"Get directions via Google",children:[(0,s.jsx)(t.J,{name:"RightTurn"}),(0,s.jsx)("span",{className:"underline",children:"Directions"})]}):(0,s.jsx)(l.r,{className:"mt-auto w-full",target:"_blank",rel:"noopener noreferrer",href:o("".concat(a," ").concat(n,", ").concat(r,", ").concat(c)),variant:"contained","aria-label":"Get directions via Google",children:"Get Directions"})}},30457:function(e,a,n){n.d(a,{b:function(){return m}});var s=n(85893),t=n(24189),l=n(20265),o=n(665),r=n(25675),c=n.n(r),i=n(12240),d=n(22130);function m(e){var a;let{storeWithDepartments:n,onSelect:r,size:m="medium",className:h=""}=e,{store:p}=n,f=null===(a=n.departments)||void 0===a?void 0:a.find(e=>"PHARMACY"===e.code),{isOpen:b,hoursString:j,isClosingSoon:y,holidayLabel:g}=(0,o.w)(p.hoursByDay,p.upcomingHolidayHours),{isOpen:N,hoursString:v,isClosingSoon:w,holidayLabel:S}=(0,o.w)((null==f?void 0:f.hoursByDay)||[],(null==f?void 0:f.upcomingHolidayHours)||[]);return(0,s.jsxs)("div",{className:"flex flex-col rounded-lg shadow-md shadow-medium-grey ".concat(h),children:[p.storeImageUrl&&(0,s.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"/locations/".concat((0,o.b)(p)),children:(0,s.jsx)(c(),{src:p.storeImageUrl,alt:"".concat(p.name," store exterior"),width:545,height:296,className:"flex ".concat("small"==m?"h-32":"h-64"," w-full rounded-t-lg object-cover")})}),(0,s.jsxs)("div",{className:"small"==m?"px-4 pb-4 pt-2":"px-12 pb-12 pt-6",children:[(0,s.jsxs)("div",{className:"flex flex-row justify-between border-b-2 border-light-grey pb-4",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("p",{className:"text-h3",children:(0,s.jsx)(l.r,{target:"_blank",rel:"noreferrer",href:"/locations/".concat((0,o.b)(p)),color:"navy",className:"!px-0 underline","data-testid":"store-name-link",children:"Schnucks ".concat(p.name)})}),(0,s.jsx)("div",{className:"flex flex-col justify-start gap-5",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("p",{className:"flex flex-col text-body-small",children:(0,s.jsxs)("span",{className:"text-body-small",children:[p.address,", ",p.city,", ",p.state," ",p.zip]})}),(0,s.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,s.jsx)(d.g,{phone:p.phone}),(0,s.jsx)(i.Q,{addressLine:p.address,storeBanner:p.banner,storeName:p.name,zip:p.zip,appearance:"link"})]})]})})]}
1),r?(0,s.jsxs)("button",{onClick:r,className:"flex flex-col items-center justify-center gap-2 p-2","data-testid":"".concat(p.id,"-view-on-map-button"),"aria-label":"View ".concat(p.banner," ").concat(p.name," on map, ").concat(Number(p.distance).toFixed(1)," miles away."),children:[(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,s.jsx)(t.J,{className:"text-red",name:"AisleLocation","aria-hidden":"true"}),(0,s.jsxs)("p",{className:"text-body-small",children:[Number(p.distance).toFixed(1)," mi"]})]}),(0,s.jsx)("p",{className:"text-body-small text-red underline",children:"View on Map"})]}):(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,s.jsx)(t.J,{className:"text-red",name:"AisleLocation","aria-hidden":"true"}),(0,s.jsxs)("p",{className:"text-body-small",children:[(0,s.jsx)("span",{className:"sr-only",children:"Distance: "}),Number(p.distance).toFixed(1)," mi"]})]})]}),(0,s.jsxs)("div",{className:"small"==m?"pt-2":"pt-4",children:[(0,s.jsxs)("p",{className:"my-1 text-body-small",children:[(0,s.jsx)("span",{className:"font-bold uppercase",children:"Store Hours: "}),x(b,y),(0,s.jsx)(u,{}),(0,s.jsxs)("span",{className:"text-body-small",children:[j,g&&" ".concat(g)]})]}),p.cvsPharmacy&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("p",{className:"text-body-small",children:[(0,s.jsx)("span",{className:"text-body-small font-bold uppercase",children:"CVS Hours: "}),x(N,w),(0,s.jsx)(u,{}),(0,s.jsxs)("span",{className:"text-body-small",children:[v,S&&" ".concat(S)]})]})})]})]})]},p.id)}let x=(e,a)=>e?e&&a?(0,s.jsx)("span",{className:"text-body-small text-warning",children:"Closing Soon"}):e?(0,s.jsx)("span",{className:"text-body-small text-success",children:"Open"}):void 0:(0,s.jsx)("span",{className:"text-body-small text-red",children:"Closed"});function u(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"sr-only",children:","}),(0,s.jsxs)("span",{"aria-hidden":"true",className:"text-body-small text-red",children:[" ","â¢"," "]})]})}},22130:function(e,a,n){n.d(a,{g:function(){return l}});var s=n(85893),t=n(24189);let l=e=>{let{phone:a}=e;return(0,s.jsxs)("a",{className:"flex items-center gap-1 text-body-small text-navy",href:"tel:".concat(a),children:[(0,s.jsx)(t.J,{name:"PhoneSmall"}),(0,s.jsx)("span",{className:"underline",children: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.