{"version":3,"file":"ThanksModal.CeCFwf38.mjs","names":["useStore","useState"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/zwEY0wmt0CF1w8eFdzsN/YPjeSuwIKfWy9Lc5aype/Store.js","https:/framerusercontent.com/modules/GP8VludDaBuoNPapmgkP/0tjkIoG74iF6GP0mHf50/ThanksModal.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";export const useStore=createStore({cart:[],isModalOpen:false,selectedFood:null,categories:[],cartTotal:0,isCartOpen:false,cartTracker:null,contactInfo:{email:\"\",first_name:\"\",last_name:\"\",phone:\"\"},isEditingContact:false,categoryId:null,trackerId:\"\",clientUid:\"\",orderType:\"pickup\",reservationDetails:{numberOfPeople:null,reservationTime:null},paymentMethod:\"CARD\",isEditingPayment:false,clientInstructions:\"\",isEditingInstructions:false});\nexport const __FramerMetadata__ = {\"exports\":{\"useStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Store.map","// Add Thank You Modal component\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";export const ThankYouModal=({isOpen,onClose,orderSummary})=>{if(!isOpen||!orderSummary)return null;const modalStyle={position:\"fixed\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",backgroundColor:\"white\",padding:\"2rem\",borderRadius:\"12px\",boxShadow:\"0 4px 20px rgba(0, 0, 0, 0.15)\",maxWidth:\"600px\",width:\"95%\",maxHeight:\"90vh\",overflowY:\"auto\",zIndex:1e3,\"@media (max-width: 768px)\":{padding:\"1.5rem\",width:\"90%\"},\"@media (max-width: 480px)\":{padding:\"1rem\",width:\"95%\"}};const overlayStyle={position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.6)\",backdropFilter:\"blur(4px)\",zIndex:999};const closeButtonStyle={position:\"absolute\",top:\"1rem\",right:\"1rem\",background:\"none\",border:\"none\",fontSize:\"1.5rem\",cursor:\"pointer\",color:\"#666\",padding:\"0.5rem\",borderRadius:\"50%\",transition:\"all 0.2s ease\",\":hover\":{backgroundColor:\"#f5f5f5\",color:\"#333\"}};const sectionStyle={backgroundColor:\"#f8f9fa\",padding:\"1.25rem\",borderRadius:\"8px\",marginBottom:\"1.5rem\",\"@media (max-width: 480px)\":{padding:\"1rem\",marginBottom:\"1rem\"}};const titleStyle={color:\"#2E7D32\",fontSize:\"2rem\",textAlign:\"center\",marginBottom:\"2rem\",\"@media (max-width: 480px)\":{fontSize:\"1.5rem\",marginBottom:\"1.5rem\"}};const subtitleStyle={color:\"#1976D2\",marginBottom:\"1rem\",fontSize:\"1.25rem\",\"@media (max-width: 480px)\":{fontSize:\"1.1rem\"}};return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,onClick:onClose,children:/*#__PURE__*/_jsxs(\"div\",{style:modalStyle,onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsx(\"button\",{style:closeButtonStyle,onClick:onClose,children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"h2\",{style:titleStyle,children:\"Thank You for Your Order!\"}),/*#__PURE__*/_jsxs(\"div\",{style:sectionStyle,children:[/*#__PURE__*/_jsx(\"h3\",{style:subtitleStyle,children:\"Order Details\"}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Order Type:\"}),\" \",orderSummary.orderType===\"pickup\"?\"Pickup\":\"Reservation\"]}),orderSummary.orderType===\"reservation\"&&/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Number of People:\"}),\" \",orderSummary.reservationDetails.numberOfPeople]}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Time:\"}),\" \",orderSummary.reservationDetails.reservationTime]})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:sectionStyle,children:[/*#__PURE__*/_jsx(\"h3\",{style:subtitleStyle,children:\"Items Ordered\"}),orderSummary.items.map((item,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:\"0.5rem\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},children:[/*#__PURE__*/_jsxs(\"span\",{children:[item.name,\" x \",item.quantity]}),/*#__PURE__*/_jsxs(\"span\",{style:{fontWeight:\"bold\"},children:[\"$\",(item.price*item.quantity).toFixed(2)]})]},index))]}),/*#__PURE__*/_jsxs(\"div\",{style:sectionStyle,children:[/*#__PURE__*/_jsx(\"h3\",{style:subtitleStyle,children:\"Contact Information\"}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Name:\"}),\" \",orderSummary.contactInfo.first_name,\" \",orderSummary.contactInfo.last_name]}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Email:\"}),\" \",orderSummary.contactInfo.email]}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Phone:\"}),\" \",orderSummary.contactInfo.phone]})]}),orderSummary.instructions&&/*#__PURE__*/_jsxs(\"div\",{style:sectionStyle,children:[/*#__PURE__*/_jsx(\"h3\",{style:subtitleStyle,children:\"Special Instructions\"}),/*#__PURE__*/_jsx(\"p\",{style:{whiteSpace:\"pre-wrap\"},children:orderSummary.instructions})]}),/*#__PURE__*/_jsxs(\"div\",{style:{...sectionStyle,backgroundColor:\"#E8F5E9\",textAlign:\"center\",marginTop:\"1rem\"},children:[/*#__PURE__*/_jsxs(\"h3\",{style:{color:\"#2E7D32\",fontSize:\"1.5rem\",marginBottom:\"0.5rem\"},children:[\"Total: $\",orderSummary.total.toFixed(2)]}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Payment Method:\"}),\" \",orderSummary.paymentMethod===\"CASH\"?\"Cash\":\"Card at pickup\"]})]})]})});};\nexport const __FramerMetadata__ = {\"exports\":{\"ThankYouModal\":{\"type\":\"variable\",\"ann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