PageSourceSearch

https://www.flourpizzeria.com/_next/static/chunks/4644-37d416434679c524.js

js flourpizzeria.com collected 2026-10-04 23:05:27 UTC 23,441 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4644],{39553:(e,r,t)=>{t.d(r,{x:()=>l});var s=t(95368),a=t(79540),n=t(3134);function l(e){let r=(0,a.s)();(0,s.useEffect)(()=>{r.track(n.R.PAGE_VIEWED,{page:e})},[])}},58528:(e,r,t)=>{t.d(r,{Y:()=>l});var s=t(39876);let a={DOORDASH_DRIVE:{label:"Track driver on DoorDash",className:"bg-[#FE2D00] text-white"},UBER_DIRECT:{label:"Track driver on Uber Eats",className:"bg-[#05C16A] text-[#11150F]"}};function n(){return(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 5h5v5M19 5l-8 8M10 5H6a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1v-4"})})}function l(e){var r,t;let{order:l}=e;if("DELIVERY"!==l.fulfillment_type)return null;let i=l.scheduled_date?new Date(l.scheduled_date).getTime():l.order_submitted_at?new Date(l.order_submitted_at).getTime():null;if(null!==i&&i<Date.now()-2592e5)return null;let o=null==(r=l.order_delivery_detail)?void 0:r.tracking_url;if(!o)return null;let d="inline-flex h-11 w-full items-center justify-center gap-2 rounded-full px-4 text-sm font-semibold transition-opacity hover:opacity-90";if("MERCHANT"===l.fulfillment_provider||"none"===l.delivery_tracking_mode)return(0,s.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"".concat(d," bg-brand-accent text-white"),children:["Track delivery",(0,s.jsx)(n,{})]});if("third_party"!==l.delivery_tracking_mode)return null;let c=null==(t=l.delivery_quote)?void 0:t.partner,x=c?a[c]:void 0;return x?(0,s.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"".concat(d," ").concat(x.className),children:[x.label,(0,s.jsx)(n,{})]}):null}},81428:(e,r,t)=>{t.d(r,{g:()=>g});var s=t(39876),a=t(95368),n=t(9631),l=t(10463),i=t(15671),o=t(78819);function d(){return(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"block shrink-0 text-gray-500",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})}function c(){return(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function x(e){let{title:r,sections:t,onToggleSurcharge:i,surchargeTogglePending:x}=e,[m,h]=(0,a.useState)(!1),g=(0,l.a)(),p=(0,a.useRef)(null),f=(0,a.useRef)(null),j=(0,a.useRef)(null),b=(0,a.useId)(),[y,v]=(0,a.useState)(!1),[N,k]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{if(g||!m||!p.current)return;let e=p.current.getBoundingClientRect();v(e.left+288>window.innerWidth-8),k(e.bottom+240>window.innerHeight-8)},[m,g]),(0,a.useEffect)(()=>{var e;!g&&m&&(null==(e=j.current)||e.focus())},[m,g]),g)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",className:"-m-3.5 flex h-11 w-11 items-center justify-center","aria-label":r,onClick:()=>h(!0),children:(0,s.jsx)(d,{})}),(0,s.jsx)(n._s.Root,{open:m,onOpenChange:h,children:(0,s.jsxs)(n._s.Portal,{children:[(0,s.jsx)(n._s.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),(0,s.jsxs)(n._s.Content,{className:"fixed bottom-0 left-0 right-0 md:left-1/2 md:right-auto md:-translate-x-1/2 md:max-w-lg z-50 rounded-t-2xl bg-white",children:[(0,s.jsx)(n._s.Title,{className:"sr-only",children:r}),(0,s.jsx)("div",{className:"mx-auto mb-2 mt-3 h-1.5 w-12 rounded-full bg-gray-200"}),(0,s.jsxs)("div",{className:"px-5 pb-8 pt-2",children:[(0,s.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,s.jsx)("p",{className:"text-base font-bold text-gray-900",children:r}),(0,s.jsx)(o.$,{variant:"chrome",size:"icon-lg",onClick:()=>h(!1),className:"-my-2 -mr-1","aria-label":"Close",children:(0,s.jsx)(c,{})})]}),(0,s.jsx)(u,{sections:t,onToggleSurcharge:i,surchargeTogglePending:x})]})]})]})})]});function w(){var e;h(!1),null==(e=f.current)||e.focus()}return(0,s.jsxs)("div",{ref:p,className:"relative",children:[(0,s.jsx)("button",{ref:f,type:"button",className:"-m-3.5 flex h-11 w-11 items-center justify-center","aria-label":r,"aria-expanded":m,"aria-controls":m?b:void 0,onClick:()=>h(e=>!e),children:(0,s.jsx)(d,{})}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-40",onClick:()=>h(!1)}),(0,s.jsxs)("div",{ref:j,id:b,role:"dialog","aria-label":r,tabIndex:-1,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),w())},className:"absolute z-50 w-72 rounded-2xl border border-gray-200 bg-white p-4 shadow-lg outline-none ".concat(y?"right-0":"left-0"," ").concat(N?"bottom-full mb-2":"top-full mt-2"),children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,s.jsx)("p",{className:"text-base font-bold text-gray-900",children:r}),(0,s.jsx)(o.$,{variant:"chrome",size:"icon-lg",onClick:w,className:"-my-2 -mr-1","aria-label":"Close",children:(0,s.jsx)(c,{})})]}),(0,s.jsx)(u,{sections:t,onToggleSurcharge:i,surchargeTogglePending:x})]})]})]})}function u(e){let{sections:r,onToggleSurcharge:t,surchargeTogglePending:a}=e,n=r.filter(e=>!e.surcharge||e.surcharge.enabled||e.surcharge.customerOptional&&!!t);return(0,s.jsx)("div",{className:"space-y-1.5",children:n.map((e,r)=>{let n=e.surcharge,l=!!(t&&(null==n?void 0:n.customerOptional)&&n.uuid);return(0,s.jsxs)("div",{children:[r>0&&(0,s.jsx)("div",{className:"my-2 h-px w-full bg-gray-100"}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsxs)("p",{className:"text-sm font-semibold text-gray-900",children:[e.heading,n&&(0,s.jsxs)(s.Fragment,{children:[": ",n.enabled?n.amount:(0,s.jsx)("s",{className:"font-normal text-gray-500",children:n.amount})]})]}),l&&(null==n?void 0:n.uuid)&&(0,s.jsx)(m,{label:e.heading,checked:n.enabled,disabled:a,onChange:e=>null==t?void 0:t(n.uuid,e)})]}),e.description&&(0,s.jsx)("p",{className:"text-sm text-gray-500",children:e.description})]},r)})})}function m(e){let{label:r,checked:t,disabled:a,onChange:n}=e;return(0,s.jsxs)("span",{className:"relative ml-2 inline-block flex-shrink-0 align-middle",children:[(0,s.jsx)("input",{type:"checkbox",role:"switch","aria-label":"Toggle ".concat(r),checked:t,onChange:e=>n(e.target.checked),disabled:a,className:"peer sr-only"}),(0,s.jsx)("span",{className:"block h-6 w-10 cursor-pointer rounded-full transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-brand-primary/40 peer-focus-visible:ring-offset-2 ".concat(t?"bg-brand-primary":"bg-gray-200"),onClick:()=>!a&&n(!t)}),(0,s.jsx)("span",{className:"pointer-events-none absolute top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform ".concat(t?"translate-x-[18px]":"translate-x-0.5")})]})}function h(e){let{label:r,value:t,previousValue:a,intent:n,tooltip:l,onToggleSurcharge:i,surchargeTogglePending:o}=e;return(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("dt",{className:"flex items-center gap-1 text-gray-600",children:[r,l&&(0,s.jsx)(x,{...l,onToggleSurcharge:i,surchargeTogglePending:o})]}),a?(0,s.jsxs)("dd",{className:"flex items-center gap-2",children:[(0,s.jsx)("s",{className:"text-xs text-gray-500",children:a}),(0,s.jsx)("span",{className:"font-medium text-green-700",children:t})]}):(0,s.jsx)("dd",{className:"".concat("success"===n?"font-medium text-green-700":"font-medium text-gray-800"),children:t})]})}function g(e){let{order:r,orderTotalIsInvalid:t,className:a,onToggleSurcharge:n,surchargeTogglePending:l,totalRowClassName:o}=e,d=(0,i.r)(r);return(0,s.jsxs)("section",{"aria-labelledby":"order-total-heading",className:a,children:[(0,s.jsx)("h3",{id:"order-total-heading",className:"sr-only",children:"Order total"}),(0,s.jsxs)("dl",{className:"space-y-2.5 py-2 text-base",children:[d.lineItems.map(e=>{let{key:r,...t}=e;return(0,s.jsx)(h,{...t,onToggleSurcharge:n,surchargeTogglePending:l},r)}),(0,s.jsxs)("div",{className:"flex items-start justify-between border-t border-gray-200 pt-2.5 ".concat(null!=o?o:""),children:[(0,s.jsx)("dt",{className:"text-lg font-bold text-gray-900",children:"Total"}),(0,s.jsx)("dd",{children:t?(0,s.jsx)("span",{className:"inline-block h-4 w-20 animate-pulse rounded bg-gray-200"}):d.total.previousValue?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("s",{className:"text-sm text-gray-500",children:d.total.previousValue}),(0,s.jsx)("span",{className:"text-lg font-bold text-green-700",children:d.total.value})]}):(0,s.jsx)("span",{className:"text-lg font-bold text-gray-900",children:d.total.value})})]})]})]})}},94644:(e,r,t)=>
1{t.d(r,{OrderDetailView:()=>U});var s=t(39876),a=t(87066),n=t(65616),l=t(71105),i=t(28102),o=t(25787),d=t(75554),c=t(53870),x=t(39490),u=t(95368),m=t(82959),h=t(22384);let g=["Order placed","Being prepared","Ready","Completed"];function p(){return(0,s.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}function f(){return(0,s.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function j(e){let{order:r}=e,t=r.order_state,a=(0,h.o)(t),n=(0,h.r)(t),l=Math.max(1,n||1);return(0,s.jsx)("ol",{"aria-label":"Order progress",className:"flex items-center",children:g.map((e,r)=>{let t=r+1,i=t===g.length,o=t<l||i&&n===g.length,d=!a&&!o&&t===l,c=a?"border-transparent bg-red-500 text-white":o||d?"border-transparent bg-brand-primary text-white":"border-gray-200 bg-white";return(0,s.jsxs)("li",{"aria-current":d?"step":void 0,className:"flex items-center ".concat(i?"":"flex-1"),children:[(0,s.jsxs)("div",{className:"relative",children:[d&&(0,s.jsx)("span",{"aria-hidden":"true",className:"absolute -inset-1 animate-pulse rounded-full bg-brand-primary/25"}),(0,s.jsxs)("div",{className:"relative z-10 flex h-6 w-6 items-center justify-center rounded-full border transition-colors ".concat(c),children:[a?(0,s.jsx)(f,{}):o?(0,s.jsx)(p,{}):null,(0,s.jsx)("span",{className:"sr-only",children:e})]})]}),!i&&(0,s.jsx)("div",{"aria-hidden":"true",className:"h-[1.5px] flex-1 rounded-full ".concat(a||t<l?a?"bg-red-500":"bg-brand-primary":"bg-gray-200")})]},e)})})}var b=t(58528),y=t(78819);function v(e){if(!(null==e?void 0:e.street1))return null;let r=e.street2?"".concat(e.street1," ").concat(e.street2):e.street1;return"".concat(r,", ").concat(e.city,", ").concat(e.state," ").concat(e.zip_code)}let N="order-fulfillment-info-heading";function k(e){let{label:r,action:t,children:a}=e;return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t border-gray-200 py-4",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm text-gray-500",children:r}),(0,s.jsx)("div",{className:"mt-0.5 text-base font-medium text-gray-900",children:a})]}),t&&(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:t})]})}function w(e){let{address:r,phone:t}=e,a=r?"https://www.google.com/maps/dir/?api=1&destination=".concat(encodeURIComponent(r)):null;return a||t?(0,s.jsxs)(s.Fragment,{children:[a&&(0,s.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:(0,y.f)({variant:"secondary",size:"xs"}),children:"Directions"}),t&&(0,s.jsx)("a",{href:"tel:".concat(t.replace(/[^\d+]/g,"")),className:(0,y.f)({variant:"secondary",size:"xs"}),children:"Call"})]}):null}function _(e){let{order:r}=e,t=v(r.store.address);if("DELIVERY"===r.fulfillment_type&&r.order_delivery_detail){var a,n,l;let e=r.order_delivery_detail,i=v(null!=(a=e.delivery_address)?a:r.delivery_address),o="MERCHANT"===r.fulfillment_provider||"none"===r.delivery_tracking_mode,d=null!=(n=e.courier_name)?n:null,c=null!=(l=e.courier_phone_for_dropoff_to_use)?l:null,x=null!=d?d:c;return(0,s.jsxs)("section",{"aria-labelledby":N,children:[(0,s.jsx)("h3",{id:N,className:"mb-4 text-xl font-bold text-gray-900",children:"Your delivery order"}),i&&(0,s.jsxs)(k,{label:"Delivery to",children:[i,e.dropoff_instructions&&(0,s.jsx)("p",{className:"mt-0.5 text-sm font-normal text-gray-500",children:e.dropoff_instructions})]}),(0,s.jsx)(k,{label:"Delivery from",action:(0,s.jsx)(w,{address:t,phone:r.store.phone}),children:r.store.name}),(!o||!!x)&&(0,s.jsx)(k,{label:o?"Delivery contact":"Driver details",action:c?(0,s.jsx)("a",{href:"tel:".concat(c),className:(0,y.f)({variant:"secondary",size:"xs"}),children:"Call driver"}):void 0,children:o?x:null!=d?d:"Driver not assigned"})]})}return r.is_curbside?(0,s.jsxs)("section",{"aria-labelledby":N,children:[(0,s.jsx)("h3",{id:N,className:"mb-4 text-xl font-bold text-gray-900",children:"Your curbside order"}),(0,s.jsxs)(k,{label:"Curbside Pickup",action:(0,s.jsx)(w,{address:t,phone:r.store.phone}),children:[r.store.name,t&&(0,s.jsx)("p",{className:"mt-0.5 text-sm font-normal text-gray-500",children:t})]}),(0,s.jsx)(k,{label:"Instructions",children:"Call the restaurant when you arrive and we will bring out your order."})]}):(0,s.jsxs)("section",{"aria-labelledby":N,children:[(0,s.jsx)("h3",{id:N,className:"mb-4 text-xl font-bold text-gray-900",children:"Your pickup order"}),(0,s.jsxs)(k,{label:"Pickup at",action:(0,s.jsx)(w,{address:t,phone:r.store.phone}),children:[r.store.name,t&&(0,s.jsx)("p",{className:"mt-0.5 text-sm font-normal text-gray-500",children:t})]})]})}var C=t(83528),E=t(78262);let L=new Set(["COMPLETED","DELIVERED","REFUNDED","RETURNED"]);function R(e){var r,t,a;let{order:n,sendReceipt:i}=e,{identity:o}=(0,l.B)(),d=(0,E.f)(),[c,x]=(0,u.useState)(!1),m=null!=(a=null==(t=o.data)||null==(r=t.user)?void 0:r.email)?a:"",h=""!==m,g=L.has(n.order_state);function p(){x(!1),i.mutate(void 0,{onSuccess:()=>C.oR.success("Receipt sent to your email"),onError:()=>{x(!0),C.oR.error("Unable to send receipt. Try again later.")}})}function f(){g?p():C.oR.success("Email added")}let j=h&&g?"Receipt sent":"Send receipt to email",b=c?"Failed to send receipt":h&&g?"Sent to ".concat(m):h?"Will send to ".concat(m," after order 
1completion"):"Add email to receive receipt",v="px-3 py-1.5 text-sm";return(0,s.jsxs)("section",{className:"flex items-start justify-between gap-3 border-t border-gray-200 py-4",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,s.jsxs)("svg",{className:"mt-0.5 h-[22px] w-[22px] flex-shrink-0 text-gray-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,"aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2.5"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.5 7l8.5 6 8.5-6"})]}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-base font-medium text-gray-900",children:j}),(0,s.jsx)("p",{className:"mt-0.5 truncate text-sm text-gray-500",children:b})]})]}),(0,s.jsx)("div",{className:"flex-shrink-0",children:c?(0,s.jsx)(y.$,{variant:"secondary",onClick:p,isLoading:i.isPending,loadingText:"Sending…",className:v,children:"Retry"}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[h&&g&&(0,s.jsx)("svg",{className:"h-5 w-5 flex-shrink-0 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,s.jsx)(y.$,{variant:"secondary",onClick:()=>d.push("edit-email",{...h&&g?{title:"Update email",description:"Your receipt has been sent. Change your email to resend it to a different address."}:h?{title:"Update email",description:"Your receipt will be sent to this email when the order completes."}:g?{title:"Add email",description:"Add your email to receive a receipt for this order."}:{title:"Add email",description:"Add your email to receive a receipt when the order completes."},onSuccess:f}),className:v,children:h?"Edit email":"Add"})]})})]})}var D=t(81428),T=t(68313),M=t(40089);function B(e){let{order:r}=e,{program:t}=(0,T.O)();return t.data&&"COMPLETED"===r.order_state&&0!==r.loyalty_points_earned?(0,s.jsxs)("section",{"aria-labelledby":"order-points-heading",className:"border-t border-gray-200 py-4",children:[(0,s.jsx)("h3",{id:"order-points-heading",className:"sr-only",children:"Points earned"}),(0,s.jsxs)("p",{className:"flex items-center justify-center gap-1.5 text-sm font-semibold text-green-700",children:[(0,s.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3l2.1 5.4L20 9.5l-4.2 4 1 5.9L12 16.6l-4.8 2.8 1-5.9-4.2-4 5.9-1.1L12 3z"})}),"Earned"," ",(0,M.ZP)({pointAmount:r.loyalty_points_earned,program:t.data})]})]}):null}function z(){return(0,s.jsxs)("div",{role:"status","aria-label":"Loading order","aria-busy":"true",className:"animate-pulse space-y-5 px-6 py-5",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"h-7 w-48 rounded-lg bg-gray-100"}),(0,s.jsx)("div",{"aria-hidden":"true",className:"h-6 w-full rounded-full bg-gray-100"}),(0,s.jsx)("div",{"aria-hidden":"true",className:"h-4 w-64 rounded-lg bg-gray-100"}),(0,s.jsx)("ul",{"aria-hidden":"true",className:"space-y-4 pt-4",children:[1,2,3].map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-16 w-16 flex-shrink-0 rounded-2xl bg-gray-100"}),(0,s.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,s.jsx)("div",{className:"h-4 w-2/3 rounded bg-gray-100"}),(0,s.jsx)("div",{className:"h-3 w-1/3 rounded bg-gray-100"})]})]},e))})]})}function A(e){let{order:r,onClick:t}=e,{canEdit:a}=(0,n.p)(r);return a?(0,s.jsx)(y.$,{variant:"text",size:"inline",className:"text-sm font-semibold underline underline-offset-4",onClick:t,children:"Edit order"}):null}function O(e){let{order:r,onClick:t}=e,{canEdit:a}=(0,n.m)(r);return a?(0,s.jsx)(y.$,{variant:"text",size:"inline",className:"text-sm font-semibold underline underline-offset-4",onClick:t,children:"Edit schedule"}):null}var S=t(84034),I=t(39553);let P=new Set(["IN_CART","CART_EMPTIED","ERROR","UNKNOWN"]);function W(){return(0,s.jsxs)("svg",{className:"h-[18px] w-[18px] flex-shrink-0 text-orange-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:[(0,s.jsx)("path",{strokeLinejoin:"round",d:"M12 3L2.5 19.5h19L12 3z"}),(0,s.jsx)("path",{strokeLinecap:"round",d:"M12 9.5v4"}),(0,s.jsx)("circle",{cx:"12",cy:"16.5",r:"0.5",fill:"currentColor",stroke:"none"})]})}function Y(e){let{children:r}=e;return(0,s.jsxs)("p",{role:"alert",className:"flex items-center gap-2.5 rounded-2xl bg-gray-50 px-4 py-3 text-sm font-semibold text-orange-700",children:[(0,s.jsx)(W,{}),r]})}function F(){return(0,s.jsxs)("svg",{className:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,"aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4.5"})]})}function U(e){var r,t;let{orderUuid:h}=e;(0,I.x)("order_status");let{order:g,isLoading:p,error:f,sendReceipt:v}=(0,a.S)(h,{enablePolling:!0}),{canEdit:N}=(0,n.p)(g),{canEdit:k}=(0,n.m)(g),{isAuthenticated:w}=(0,l.B)(),C=(0,m.useRouter)(),L=(0,E.f)(),T=(0,S.BR)(),M=!p&&!w&&(!!f||!g);return((0,u.useEffect)(()=>{M&&C.replace("/")},[M,C]),p||M)?(0,s.jsx)(z,{}):f||!g?(0,s.jsx)("p",{role:"alert",className:"px-6 py-6 text-base text-gray-500",children:"Order not found."}):(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 pb-6 pt-5",children:[(0,s.jsx)("h2",{"aria-live":"polite",className:"text-2xl font-bold text-gray-900",children:(0,i.m)(g)}),(0,s.jsx)("p",{"aria-live":"polite",className:"mt-1 text-sm font-medium text-gray-500",children:(0,o.E)(g)}),(0,s.jsx)("div",{className:"mt-5",children:(0,s.jsx)(j,{order:g})}),(0,s.jsx)("p",{"aria-live":"polite",className:"mt-4 text-base text-gray-500",children:(0,d.o)(g)}),(0,s.jsxs)("div",{className:"mt-5 space-y-3",children:[(0,s.jsx)(b.Y,{order:g}),T.isAvailable&&(0,s.jsxs)(y.$,{variant:"secondary",fullWidth:!0,onClick:T.open,className:"font-semibold",children:[(0,s.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.5 11.6c0 4.2-3.8 7.6-8.5 7.6-.94 0-1.85-.13-2.7-.38L5 20l.9-3.2A7.2 7.2 0 0 1 3.5 11.6C3.5 7.4 7.3 4 12 4s8.5 3.4 8.5 7.6z"})}),"Get help"]}),g.cancellation_request&&(0,s.jsx)(Y,{children:"Your cancellation request is being reviewed"}),g.contains_alcohol&&(0,s.jsx)(Y,{children:"Alcohol included: must agree to age verification terms and present a valid government ID to receive your order"})]}),(0,s.jsx)("div",{className:"mt-8",children:(0,s.jsx)(_,{order:g})}),(0,s.jsxs)("section",{"aria-labelledby":"order-items-heading",className:"border-t border-gray-200 py-4",children:[(0,s.jsx)("h3",{id:"order-items-heading",className:"sr-only",children:"Items"}),(0,s.jsx)("ul",{role:"list",className:"space-y-4",children:g.order_items.map(e=>{var r,t;let a=(0,c.m)(e),n=e.quantity-(null!=(t=e.quantity_adjustments)?t:0),l=null==(r=e.order_item_options)?void 0:r.map(e=>
1e.name).filter(Boolean).join(", ");return(0,s.jsxs)("li",{className:"flex items-center gap-3",children:[e.item_img_src?(0,s.jsx)("img",{src:e.item_img_src,alt:"",className:"h-16 w-16 flex-shrink-0 rounded-2xl border border-gray-200 object-cover"}):(0,s.jsx)("div",{"aria-hidden":"true",className:"flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-2xl border border-gray-200 bg-gray-50 text-gray-400",children:(0,s.jsx)(F,{})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"text-base font-semibold text-gray-900",children:[n,"\xd7 ",e.name]}),l&&(0,s.jsx)("p",{className:"mt-0.5 text-sm text-gray-500",children:l}),e.special_instructions&&(0,s.jsx)("p",{className:"mt-0.5 break-words text-sm italic text-gray-500",children:e.special_instructions}),e.is_reward&&(0,s.jsx)("p",{className:"mt-0.5 text-sm font-semibold text-green-700",children:"Reward"})]}),(0,s.jsx)("div",{className:"flex-shrink-0 self-start pt-0.5 text-right",children:e.promo_discount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("s",{className:"block text-sm text-gray-500",children:(0,x.v)(a+e.promo_discount)}),(0,s.jsx)("p",{className:"text-sm font-medium text-green-700",children:(0,x.v)(a)})]}):(0,s.jsx)("p",{className:"text-sm text-gray-600",children:(0,x.v)(a)})})]},e.uuid)})})]}),(t=g.order_state,!P.has(t)&&(0,s.jsx)(R,{order:g,sendReceipt:v})),(0,s.jsx)(D.g,{order:g,className:"border-t border-gray-200 pt-2"}),(0,s.jsx)(B,{order:g}),(0,s.jsxs)("p",{className:"pt-5 text-center text-sm text-gray-500",children:["Order ID: #",null!=(r=g.external_display_id)?r:h.slice(0,8)]})]}),(N||k)&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-t border-gray-200 px-6 py-4",children:[(0,s.jsx)(A,{order:g,onClick:()=>L.push("order-edit",{orderUuid:h})}),(0,s.jsx)(O,{order:g,onClick:()=>L.push("order-edit",{orderUuid:h})})]})]})}}}]);

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.