(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138],{56829:function(e,r,t){Promise.resolve().then(t.bind(t,72918)),Promise.resolve().then(t.bind(t,34688)),Promise.resolve().then(t.bind(t,77879)),Promise.resolve().then(t.bind(t,43406)),Promise.resolve().then(t.t.bind(t,83950,23)),Promise.resolve().then(t.t.bind(t,16340,23)),Promise.resolve().then(t.bind(t,17401)),Promise.resolve().then(t.bind(t,85420)),Promise.resolve().then(t.bind(t,3181)),Promise.resolve().then(t.bind(t,70107)),Promise.resolve().then(t.bind(t,10458)),Promise.resolve().then(t.bind(t,64590)),Promise.resolve().then(t.bind(t,16726)),Promise.resolve().then(t.bind(t,15809)),Promise.resolve().then(t.bind(t,44438)),Promise.resolve().then(t.bind(t,49914)),Promise.resolve().then(t.bind(t,82997)),Promise.resolve().then(t.bind(t,90774)),Promise.resolve().then(t.bind(t,73056)),Promise.resolve().then(t.bind(t,65397)),Promise.resolve().then(t.bind(t,58981)),Promise.resolve().then(t.bind(t,66090)),Promise.resolve().then(t.bind(t,1153)),Promise.resolve().then(t.bind(t,67898)),Promise.resolve().then(t.bind(t,77979)),Promise.resolve().then(t.bind(t,99)),Promise.resolve().then(t.bind(t,48932)),Promise.resolve().then(t.bind(t,22668))},72918:function(e,r,t){"use strict";var n=t(27573),i=t(7653),l=t(88146),o=t(35759),s=t(36006),a=t(35273),d=t(89416);r.default=function(e){let{orderOnlineURL:r,hidefrom:t="md"}=e,c=(0,d.U0)(),[u,h]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{let e=document.getElementById(a.a);if(e){let r=new IntersectionObserver(e=>{e.forEach(e=>{h(e.isIntersecting)})});return r.observe(e),()=>{r.disconnect()}}},[]),(0,n.jsx)(n.Fragment,{children:!u&&(0,n.jsx)(s.kC,{"data-testid":"sticky-order-online-btn",bg:{base:"white",_dark:"black"},zIndex:49,position:"sticky",bottom:"0",height:"5rem",alignItems:"center",borderTopWidth:"1px",borderTopStyle:"solid",borderColor:{base:"gray.200",_dark:"gray.dark.400"},px:3,hideFrom:t,justifyContent:"center",children:(0,n.jsx)(o.a,{display:"flex",justifyContent:"center",alignItems:"center",height:{base:"40px",md:"48px"},width:{base:"full",md:"100%"},asChild:!0,onClick:()=>{null==c||c.capture("sticky_order_online_button_click",{label:"Order Online",href:r,ts:"".concat(Date.now()),url:r})},children:(0,n.jsx)(l.default,{href:r,children:"Order Online"})})})})}},3181:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return k}});var n=t(27573),i=t(90774),l=t(7653),o=t(77305),s=t(95169),a=t(11435),d=t(68602),c=t(15801),{withProvider:u,withContext:h}=(0,i.a)(c.Ys),m=h(o.VY,"content"),f=h(o.l_,"viewport"),x=h(o.xz,"trigger"),p=h(o.u_,"scrolls"),v=h(o.$G,"scrolls"),g=(0,l.forwardRef)((e,r)=>{let{children:t,placeholder:i,value:l,defaultValue:a,onValueChange:c,className:u,dataTestId:h,disabled:g}=e;return(0,n.jsxs)(o.fC,{value:l,defaultValue:a,onValueChange:c,disabled:g,children:[(0,n.jsxs)(x,{className:u,"data-testid":h,children:[(0,n.jsx)(o.B4,{placeholder:i}),(0,n.jsx)(o.JO,{children:(0,n.jsx)(s.O,{size:24})})]}),(0,n.jsx)(o.h_,{children:(0,n.jsxs)(m,{ref:r,children:[(0,n.jsx)(p,{children:(0,n.jsx)(d.j,{})}),(0,n.jsx)(f,{children:t}),(0,n.jsx)(v,{children:(0,n.jsx)(s.O,{})})]})})]})}),b=(0,l.forwardRef)((e,r)=>{let{children:t,...i}=e;return(0,n.jsxs)(o.ck,{...i,ref:r,children:[(0,n.jsx)(o.wU,{children:(0,n.jsx)(a.h,{})}),(0,n.jsx)(o.eT,{children:t})]})}),j=u(g),y=h(b,"item"),C=t(78697),w=t(35759),S=t(36006);function k(e){let{children:r,searchPlaceholder:t,onSearch:i,withSearch:o,hasFiltering:s,withClearBtn:a,onClearFiltering:d,filterComponent:c}=e,[u,h]=(0,l.useState)(""),[m,f]=(0,l.useState)();return(0,n.jsxs)(S.kC,{id:"top-bar-container",justifyContent:"flex-start",alignItems:"center",padding:"20px",flex:1,width:"100%",margin:"auto",style:{backgroundColor:"white",padding:c||o?"20px":0,borderRadius:"12px"},children:[c&&(0,n.jsx)(S.xu,{minW:"14rem",pr:"1rem",flex:"1",children:(0,n.jsxs)(j,{placeholder:"Select criteria type..",value:null==m?void 0:m.value,onValueChange:e=>{var r;let t={label:(null==c?void 0:null===(r=c.filterOptions.find(r=>r.value===e))||void 0===r?void 0:r.label)||"",value:e};"Select criteria type.."===e?null==c||c.setFilterValues([]):null==c||c.setFilterValues([t]),f(t)},children:[(0,n.jsx)(y,{value:"Select criteria type..",children:"Select criteria type.."},"unselect"),null==c?void 0:c.filterOptions.map(e=>(0,n.jsx)(y,{value:e.value,children:e.label},e.value))]})}),o&&i&&(0,n.jsxs)(S.kC,{flex:"2",children:[(0,n.jsx)(S.xu,{w:"100%",pr:"1rem",gap:5,alignItems:"center",children:(0,n.jsx)(C.a,{w:"100%",minWidth:"10rem",outlineOffset:"0",outlineWidth:"1px",outlineColor:"black",borderColor:"gray.200",padding:"20px",h:"3rem",onInput:e=>h(e.currentTarget.value),placeholder:t,backgroundColor:"var(--gray-50, #F5F5F5)"})}),(0,n.jsxs)(S.xu,{flex:"1",marginRight:"0.5rem",children:[(0,n.jsx)(w.a,{color:"white",backgroundColor:"teal",h:"3rem",minW:"7rem",onClick:()=>i(u.trim()),children:"Search"}),s&&a&&(0,n.jsx)(w.a,{minW:"7rem",onClick:d,children:"Clear"})]})]}),r&&(0,n.jsx)(S.xu,{children:r})]})}},70107:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return p}});var n,i=t(27573),l=t(49155),o=t(7653),s=t(3458),a=t(8828),d=t(65712),c=t(36006),u=t(15801),h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let t=o.forwardRef((e,t)=>{let{asChild:n,...l}=e,o=n?a.g7:r;return window[Symbol.for("radix-ui")]=!0,(0,i.jsx)(o,{...l,ref:t})});return t.displayName="Primitive.".concat(r),{...e,[r]:t}},{}),m=(null===(n=globalThis)||void 0===n?void 0:n.document)?o.useLayoutEffect:()=>{},f=o.forwardRef((e,r)=>{var t,n;let{container:l,...a}=e,[d,c]=o.useState(!1);m(()=>c(!0),[]);let u=l||d&&(null===(n=globalThis)||void 0===n?void 0:null===(t=n.document)||void 0===t?void 0:t.body);return u?s.createPortal((0,i.jsx)(h.div,{...a,ref:r}),u):null});f.displayName="Portal";var x=(0,o.forwardRef)((e,r)=>{let{children:t,className:n,staticPaths:s,colorMode:a,template:c,primaryColor:h,primaryFont:m,secondaryFont:x}=e,p=(0,u.l4)(),v=(0,o.useRef)(null),[g,b]=(0,o.useState)(null),[j,y]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!j){let r=v.current;if(r){var e;let t=r.contentDocument||(null===(e=r.contentWindow)||void 0===e?void 0:e.document);if(t){t.body.className=(0,d.cx)(p.iframeBody),b(t.body);let{head:e}=t;e&&s.forEach(r=>{let n=t.createElement("link");n.innerHTML=r;let i=n.firstChild;i&&e.appendChild(i.cloneNode(!0))});let r=t.documentElement;r&&n&&(r.className=n.concat(" ".concat((0,d.cx)(p.iframeHtml))));let i=t.createElement("meta");i.name="viewport",i.content="width=device-width, initial-scale=1",t.head.appendChild(i)}}}y(!0)},[n,s,p,j]),(0,i.jsx)("iframe",{title:"preview-iframe",ref:v,className:(0,d.cx)(p.root),children:(0,i.jsx)(f,{children:(0,i.jsx)(f,{ref:r,container:g,children:(0,i.jsx)(l.a,{colorMode:a,template:c,primaryColor:h,primaryFont:m,secondaryFont:x,children:(0,i.jsx)("div",{className:(0,d.cx)(p.portal),children:(0,i.jsx)("div",{className:(0,d.cx)(p.portalContent),children:t})})})})})})}),p=(0,c.zo)(x,u.l4)},82997:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return o}});var n=t(27573),i=t(7653),l=t(6139);function o(e){let{onPlaceSelect:r}=e,t=(0,l.Sx)(),o=(0,l.kY)("places"),[s,a]=(0,i.useState)(),[d,c]=(0,i.useState)(null),[u,h]=(0,i.useState)(null),[m,f]=(0,i.useState)([]),[x,p]=(0,i.useState)("");(0,i.useEffect)(()=>{o&&t&&(c(new o.AutocompleteService),h(new o.PlacesService(t)),a(new o.AutocompleteSessionToken))},[t,o]);let v=e=>{e.currentTarget.style.backgroundColor="#f7f7f7"},g=e=>{e.currentTarget.style.backgroundColor="#f7f7f7"},b=e=>{e.currentTarget.style.backgroundColor="#fff"},j=e=>{e.currentTarget.style.backgroundColor="#fff"},y=(0,i.useCallback)(async e=>{if(!d||!e){f([]);return}f((await d.getPlacePredictions({input:e,sessionToken:s,componentRestrictions:{country:["us","ca","pr"]}})).predictions)},[d,s]),C=(0,i.useCallback)(e=>{var r;let t=null===(r=e.target)||void 0===r?void 0:r.value;p(t),y(t)},[y]),w=(0,i.useCallback)(e=>{o&&(null==u||u.getDetails({placeId:e,fields:["geometry","name","formatted_address","place_id"],sessionToken:s},e=>{var t;r(e),f([]),p(null!==(t=null==e?void 0:e.formatted_address)&&void 0!==t?t:""),a(new o.AutocompleteSessionToken)}))},[r,o,u,s]);return(0,n.jsxs)("div",{className:"autocomplete-container",children:[(0,n.jsx)("input",{style:{padding:"10px",border:"1px solid #c2c2c2",marginBottom:"10px",width:"50%",borderRadius:"10px"},value:x,onInput:e=>C(e),placeholder:"Search for a place"}),m.length>0&&(0,n.jsx)("ul",{style:{listStyle:"none",margin:0,padding:0,maxHeight:"300px",overflowY:"auto",borderRadius:"8px",boxShadow:"0 4px 10px rgba(0, 0, 0, 0.1)",backgroundColor:"#fff",border:"1px solid #e0e0e0"},children:m.map(e=>{let{place_id:r,description:t}=e;return(0,n.jsx)("li",{style:{margin:0,padding:0},children:(0,n.jsx)("button",{type:"button",onClick:()=>w(r),style:{width:"100%",textAlign:"left",padding:"10px 15px",border:"none",backgroundColor:"#fff",cursor:"pointer",borderBottom:"1px solid #e0e0e0",fontSize:"16px",color:"#333",transition:"background-color 0.3s"},onMouseOver:e=>v(e),onFocus:e=>g(e),onMouseOut:e=>b(e),onBlur:e=>j(e),children:t})},r)})})]})}},73056:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return c}});var n=t(27573),i=t(15927),l=t(35759),o=t(24367),s=t(7653),a=t(36006),d=t(43406);function c(e){let{triggerLabel:r,triggerIcon:t,contentTitle:c,children:u}=e,[h,m]=(0,s.useState)(!1);return(0,n.jsxs)(d.Root,{onOpenChange:e=>m(e),children:[(0,n.jsx)(d.Trigger,{asChild:!0,children:(0,n.jsxs)(l.a,{display:"flex",fontWeight:"400",justifyContent:"space-between",bg:"white",border:"1px solid #DADFEB",borderRadius:"base",lineHeight:"0",alignItems:"center",visual:"outline",fontSize:"14px",mb:"12px",p:"12px",h:"45px",w:"full",children:[(0,n.jsx)(o.a,{fontWeight:h?"bold":"normal",children:r}),t]})}),(0,n.jsx)(d.Portal,{children:(0,n.jsxs)(d.Content,{align:"start",side:"right",style:{marginLeft:"1.1rem",width:"287px",boxShadow:"20px 20px 60px 0px rgba(0, 0, 0, 0.16)"},children:[(0,n.jsxs)(a.kC,{bg:"white",justifyContent:"space-between",alignItems:"center",h:"33px",px:"1rem",pt:"12px",left:"0",right:"0",zIndex:"1000",children:[(0,n.jsx)(a.xu,{fontFamily:"roboto",fontWeight:"bold",fontSize:"14px",children:c}),(0,n.jsx)(d.Close,{asChild:!0,children:(0,n.jsx)(i.c,{size:20,cursor:"pointer"})})]}),(0,n.jsx)(a.xu,{background:"white",minH:"140px",w:"auto",mt:"-1px",p:"1rem",children:u}),(0,n.jsx)(d.Arrow,{style:{marginTop:"-0.6rem"}})]})})]})}},1153:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return m},b:function(){return b},c:function(){return j},d:function(){return y},e:function(){return C},f:function(){return w},g:function(){return S},h:function(){return k}});var n=t(27573),i=t(7653),l=t(1001),o=t(8828),s=t(45797),a=t(65712),d=t(36006),c=t(15801),u=(0,i.createContext)({}),h=(0,i.createContext)({}),m=()=>{let e=(0,i.useContext)(u),r=(0,i.useContext)(h),{getFieldState:t,formState:n}=(0,s.Gc)();if(!e)throw Error("useFormField should be used within <FormField>");let l=t(e.name,n),{id:o}=r;return{id:o,name:e.name,formItemId:"".concat(o,"-form-item"),formDescriptionId:"".concat(o,"-form-item-description"),formMessageId:"".concat(o,"-form-item-message"),...l}},f=(0,i.forwardRef)((e,r)=>{let t=(0,i.useId)();return(0,n.jsx)(h.Provider,{value:{id:t},children:(0,n.jsx)("div",{ref:r,...e})})});f.displayName="FormItem";var x=(0,i.forwardRef)((e,r)=>{let{className:t,...i}=e,{error:o,formItemId:s}=m();return(0,n.jsx)(l._,{ref:r,className:(0,a.cx)(o&&(0,a.iv)({color:"destructive"}),t),htmlFor:s,...i})});x.displayName="FormLabel";var p=(0,i.forwardRef)((e,r)=>{let{...t}=e,{error:i,formItemId:l,formDescriptionId:s,formMessageId:a}=m();return(0,n.jsx)(o.g7,{ref:r,id:l,"aria-describedby":i?"".concat(s," ").concat(a):"".concat(s),"aria-invalid":!!i,...t})});p.displayName="FormControl";var v=(0,i.forwardRef)((e,r)=>{let{formDescriptionId:t}=m();return(0,n.jsx)("p",{ref:r,id:t,...e})});v.displayName="FormDescription";var g=(0,i.forwardRef)((e,r)=>{let{children:t,...i}=e,{error:l,formMessageId:o}=m(),s=l?String(null==l?void 0:l.message):t;return s?(0,n.jsx)("p",{ref:r,id:o,...i,children:s}):null});g.displayName="FormMessage";var b=s.RV,j=function(e){let{...r}=e;return(0,n.jsx)(u.Provider,{value:{name:r.name},children:(0,n.jsx)(s.Qr,{...r})})},y=(0,d.zo)(x,c.Xv),C=(0,d.zo)(f,c.bu),w=(0,d.zo)(p,c.NX),S=(0,d.zo)(v,c.L2),k=(0,d.zo)(g,c.j$)},77979:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return h}});var n=t(27573),i=t(99),l=t(82997),o=t(85695),s=t(35759),a=t(24367),d=t(7653),c=t(6139),u=t(36006);function h(e){let{isOpen:r,submitPlaceId:t,handleCloseModal:h}=e,[m,f]=(0,d.useState)(null),[x,p]=(0,d.useState)("");return(0,n.jsx)(o.d,{open:r,onClose:h,size:"xl",children:(0,n.jsxs)(o.f,{hideCloseButton:!0,display:"flex",flexDirection:"column",maxW:"800px",maxH:"calc(100% - 7rem)",children:[x&&(0,n.jsx)(o.g,{fontWeight:"bold",pb:0,children:(0,n.jsx)(o.i,{children:"Edit Google Place ID"})}),(0,n.jsx)(o.c,{}),(0,n.jsxs)(u.xu,{height:"100%",overflowY:"auto",overflowX:"auto",paddingInlineStart:"1.5rem",paddingInlineEnd:"1.5rem",marginLeft:"-1.5rem",marginRight:"-1.5rem",children:[(0,n.jsxs)(c.un,{apiKey:"AIzaSyCTe3Z_y2cTeYOUWcf6qCN1m4rQGW9dFGc",children:[(0,n.jsx)(l.a,{onPlaceSelect:e=>{f(e),p((null==e?void 0:e.place_id)||"")}}),m&&(0,n.jsxs)(u.gC,{style:{alignItems:"start"},children:[(0,n.jsxs)(a.a,{children:["Name : ",null==m?void 0:m.name]}),(0,n.jsxs)(a.a,{children:["Place Id : ",null==m?void 0:m.place_id]}),(0,n.jsxs)(a.a,{children:["Address : ",null==m?void 0:m.formatted_address]})]}),(0,n.jsx)(c.D5,{style:{width:"100%",maxWidth:"100%",height:"500px"},defaultCenter:{lat:22.54992,lng:0},defaultZoom:3,gestureHandling:"greedy",disableDefaultUI:!0,children:(0,n.jsx)(i.a,{place:m})})]}),(0,n.jsxs)(u.kC,{alignItems:"right",marginTop:"10px",children:[(0,n.jsx)(u.xu,{children:(0,n.jsx)(s.a,{marginRight:"10px","data-testid":"generate-nfc-btn",colorScheme:"red",onClick:h,children:"Close"})}),(0,n.jsx)(u.xu,{children:(0,n.jsx)(s.a,{"data-testid":"connect-nfc-btn",colorScheme:"teal",onClick:()=>t(x),children:"Update"})})]})]})]})})}},99:function(e,r,t){"use strict";t.r(r),t.d(r,{a:function(){return o}});var n=t(27573),i=t(6139),l=t(7653),o=l.memo(function(e){let{place:r}=e,t=(0,i.Sx)(),[o,s]=(0,l.useState)();return(0,l.useEffect)(()=>{var e,n,i,l,o,a,d;!t||!r||((null===(e=r.geometry)||void 0===e?void 0:e.viewport)&&t.fitBounds(null===(n=r.geometry)||void 0===n?void 0:n.viewport),(null===(i=r.geometry)||void 0===i?void 0:i.location)&&(t.setCenter(null===(o=r.geometry)||void 0===o?void 0:null===(l=o.location)||void 0===l?void 0:l.toJSON()),s(null===(d=r.geometry)||void 0===d?void 0:null===(a=d.location)||void 0===a?void 0:a.toJSON())))},[t,r]),o?(0,n.jsx)(i.Jx,{position:{lat:o.lat,lng:o.lng}}):null})}},function(e){e.O(0,[7909,9988,6340,3950,9357,5649,8234,5906,3602,1711,4019,5305,8069,4116,5867,9652,1213,7873,4963,426,5224,7088,1293,1528,1744],function(){return e(e.s=56829)}),_N_E=e.O()}]);