{"version":3,"file":"ReservationForm.CtdwkfBL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/j1JmQpFlkCqsnz6Zbn4l/84SMt1HBpvy7fPsjp4W0/ReservationForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import*as React from\"react\";import{useStore}from\"https://framerusercontent.com/modules/r9TbzE6j44OxXp6KiYut/RlWsmNJXb8w0pYhdTV4g/MonthDisplay.js\";function getKSTDate(baseDate=new Date){const utc=baseDate.getTime()+baseDate.getTimezoneOffset()*6e4;return new Date(utc+9*60*60*1e3);}function getKSTISOString(date=new Date){const kstDate=getKSTDate(date);const pad=n=>String(n).padStart(2,\"0\");const year=kstDate.getFullYear();const month=pad(kstDate.getMonth()+1);const day=pad(kstDate.getDate());const hours=pad(kstDate.getHours());const minutes=pad(kstDate.getMinutes());const seconds=pad(kstDate.getSeconds());return`${year}-${month}-${day}T${hours}:${minutes}:${seconds}+09:00`;}export const useFormStore=createStore({name:null,birthdate:null,phone:null,email:null,emailDomain:null,reserver_name:null,reserver_birthdate:null,reserver_phone:null,reserver_email:null,reserver_email_domain:null,isSameReserverStay:false,stay_name:null,stay_birthdate:null,stay_phone:null,couponCode:null,mileage:0,// usableMileage: 0,\n// ownedMileage: 0,\nspecial_requests:null,anniversary_type:\"기념일 종류\",anniversary_name:null,anniversary_value:null,payment:null,facility_policy:false,cancellation_policy:false,privacy_policy:false,marketing_consent:false,refund_name:null,refund_phone:null,refund_bank:null,refund_account:null});export function toggleName(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({name:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleBirthdate(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({birthdate:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function togglePhone(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({phone:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleEmail(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({email:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleReserverName(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=mainStore.name!==null&&mainStore.birthdate!==null&&mainStore.phone!==null&&mainStore.email!==null;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_name!==mainStore.name){setFormStore({reserver_name:mainStore.name});}},[shouldAutofill,mainStore.name]);const handleChange=event=>{setFormStore({reserver_name:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.name:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleReserverBirthdate(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=mainStore.name!==null&&mainStore.birthdate!==null&&mainStore.phone!==null&&mainStore.email!==null;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_birthdate!==mainStore.birthdate){setFormStore({reserver_birthdate:mainStore.birthdate});}},[shouldAutofill,mainStore.birthdate]);const handleChange=event=>{setFormStore({reserver_birthdate:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.birthdate:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleReserverPhone(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=mainStore.name!==null&&mainStore.birthdate!==null&&mainStore.phone!==null&&mainStore.email!==null;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_phone!==mainStore.phone){setFormStore({reserver_phone:mainStore.phone});}},[shouldAutofill,mainStore.phone]);const handleChange=event=>{setFormStore({reserver_phone:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.phone:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleReserverEmail(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=mainStore.name!==null&&mainStore.birthdate!==null&&mainStore.phone!==null&&mainStore.email!==null;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_email!==mainStore.email){setFormStore({reserver_email:mainStore.email});}},[shouldAutofill,mainStore.email]);const handleChange=event=>{setFormStore({reserver_email:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.email:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function handleEmailDomainDropdown(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const selectedValue=event.target.value;if(selectedValue&&selectedValue!==\"직접 입력\"){setStore({reserver_email_domain:selectedValue});}};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleReserverNameNonmember(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=false;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_name!==mainStore.name){setFormStore({reserver_name:mainStore.name});}},[shouldAutofill,mainStore.name]);const handleChange=event=>{setFormStore({reserver_name:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.name:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleReserverBirthdateNonmember(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=false;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_birthdate!==mainStore.birthdate){setFormStore({reserver_birthdate:mainStore.birthdate});}},[shouldAutofill,mainStore.birthdate]);const handleChange=event=>{setFormStore({reserver_birthdate:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.birthdate:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleReserverPhoneNonmember(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=false;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_phone!==mainStore.phone){setFormStore({reserver_phone:mainStore.phone});}},[shouldAutofill,mainStore.phone]);const handleChange=event=>{setFormStore({reserver_phone:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.phone:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleReserverEmailNonmember(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[mainStore]=useStore();const shouldAutofill=false;React.useEffect(()=>{if(shouldAutofill&&formStore.reserver_email!==mainStore.email){setFormStore({reserver_email:mainStore.email});}},[shouldAutofill,mainStore.email]);const handleChange=event=>{setFormStore({reserver_email:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?mainStore.email:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleSameReserverStay(Component){return props=>{const[store,setStore]=useFormStore();const toggle=()=>{setStore({isSameReserverStay:!store.isSameReserverStay});};return /*#__PURE__*/_jsx(Component,{...props,onClick:toggle});};}export function toggleStayName(Component){return props=>{const[formStore,setFormStore]=useFormStore();const shouldAutofill=formStore.isSameReserverStay;const autofillValue=formStore.reserver_name??\"\";React.useEffect(()=>{if(shouldAutofill&&formStore.stay_name!==autofillValue){setFormStore({stay_name:autofillValue});}},[shouldAutofill,autofillValue]);const handleChange=event=>{setFormStore({stay_name:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?autofillValue:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleStayBirthdate(Component){return props=>{const[formStore,setFormStore]=useFormStore();const shouldAutofill=formStore.isSameReserverStay;const autofillValue=formStore.reserver_birthdate??\"\";React.useEffect(()=>{if(shouldAutofill&&formStore.stay_birthdate!==autofillValue){setFormStore({stay_birthdate:autofillValue});}},[shouldAutofill,autofillValue]);const handleChange=event=>{setFormStore({stay_birthdate:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?autofillValue:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleStayPhone(Component){return props=>{const[formStore,setFormStore]=useFormStore();const shouldAutofill=formStore.isSameReserverStay;const autofillValue=formStore.reserver_phone??\"\";React.useEffect(()=>{if(shouldAutofill&&formStore.stay_phone!==autofillValue){setFormStore({stay_phone:autofillValue});}},[shouldAutofill,autofillValue]);const handleChange=event=>{setFormStore({stay_phone:event.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:shouldAutofill?undefined:handleChange,value:shouldAutofill?autofillValue:undefined,mode:shouldAutofill?\"autofill\":\"default\"});};}export function toggleCouponCode(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({couponCode:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}// export function applyCouponCode(\n//     Component: ComponentType<any>\n// ): ComponentType<any> {\n//     return (props) => {\n//         const [formStore, setFormStore] = useFormStore()\n//         const [store, setStore] = useStore()\n//         const handleClick = async () => {\n//             const code = formStore.couponCode\n//             if (!code) {\n//                 alert(\"쿠폰 번호를 입력해주세요.\")\n//                 return\n//             }\n//             // 1. 중복 확인\n//             // if (store.expiredCoupons.includes(code)) {\n//             //     alert(\"한번 사용한 쿠폰은 재사용할 수 없습니다.\")\n//             //     return\n//             // }\n//             if (store.enteredCouponCode.includes(code)) {\n//                 alert(\"이미 적용된 쿠폰입니다.\")\n//                 return\n//             }\n//             try {\n//                 // 2. 쿠폰 유효성 확인\n//                 const response = await fetch(\n//                     \"https://terene-db-server.onrender.com/api/coupons\"\n//                 )\n//                 const coupons = await response.json()\n//                 const found = coupons.find(\n//                     (coupon: { code: string }) => coupon.code === code\n//                 )\n//                 if (!found) {\n//                     alert(\"쿠폰이 존재하지 않거나 쿠폰번호가 잘못되었습니다.\")\n//                     return\n//                 }\n//                 // 3. 최종 확인 및 적용\n//                 const isConfirmed = window.confirm(`쿠폰 ${code}을 적용합니다.`)\n//                 if (isConfirmed) {\n//                     setStore({\n//                         enteredCouponCode: [...store.enteredCouponCode, code],\n//                     })\n//                 }\n//             } catch (error) {\n//                 console.error(\"쿠폰 확인 중 오류 발생:\", error)\n//                 alert(\"쿠폰 확인 중 오류가 발생했습니다. 다시 시도해주세요.\")\n//             }\n//         }\n//         return <Component {...props} onClick={handleClick} />\n//     }\n// }\nexport function applyCouponCode(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[store,setStore]=useStore();const handleClick=async()=>{const code=formStore.couponCode?.trim();if(!code){alert(\"쿠폰 번호를 입력해주세요.\");return;}// if (store.expiredCoupons.includes(code)) {\n//     alert(\"한번 사용한 쿠폰은 재사용할 수 없습니다.\")\n//     return\n// }\nif(store.enteredCouponCode.includes(code)){alert(\"이미 적용된 쿠폰입니다.\");return;}try{// 쿠폰 데이터 가져오기\nconst[defRes,instRes]=await Promise.all([fetch(\"https://terene-db-server.onrender.com/api/v2/coupon-definitions\"),fetch(\"https://terene-db-server.onrender.com/api/v2/coupon-instances\")]);const definitions=await defRes.json();const instances=await instRes.json();// code 타입 정의만 필터링\nconst codeDefs=definitions.filter(def=>def.type===\"code\");// 인스턴스 + 정의 병합\nconst mergedCoupons=instances.filter(inst=>inst.coupon_code===code).map(inst=>{const def=codeDefs.find(d=>d.coupon_definition_id===inst.coupon_definition_id);return def?{...def,...inst}:null;}).filter(Boolean);if(mergedCoupons.length===0){alert(\"쿠폰이 존재하지 않거나 쿠폰번호가 잘못되었습니다.\");return;}const[found]=mergedCoupons;// 상태 체크\nif(found.status!==\"available\"){alert(\"이 쿠폰은 현재 사용이 불가능합니다.\");return;}// 유효기간 체크\nconst now=new Date;const due=new Date(found.coupon_due);if(isNaN(due.getTime())||now>due){alert(\"이 쿠폰의 유효기간이 지났습니다.\");return;}// 적용 확인\nconst isConfirmed=window.confirm(`쿠폰 ${code}을 적용합니다.`);if(isConfirmed){setStore({enteredCouponCode:[...store.enteredCouponCode,code]});}}catch(error){console.error(\"쿠폰 확인 중 오류 발생:\",error);alert(\"쿠폰 확인 중 오류가 발생했습니다. 다시 시도해주세요.\");}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}export function checkRevisitAndCouponCode(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[store,setStore]=useStore();const handleClick=async()=>{const code=formStore.couponCode?.trim();if(!code){alert(\"쿠폰 번호를 입력해주세요.\");return;}try{// // revisit 계산 (settlement까지 사용)\n// const [ordersRes, settlementsRes] = await Promise.all([\n//     fetch(\n//         \"https://terene-db-server.onrender.com/api/v2/orders\"\n//     ),\n//     fetch(\n//         \"https://terene-db-server.onrender.com/api/v2/settlements\"\n//     ),\n// ])\n// const orders = await ordersRes.json()\n// const settlements = await settlementsRes.json()\n// const matchedOrderIds = orders\n//     .filter(\n//         (order: any) =>\n//             order.stay_status === \"checked_out\" &&\n//             order.reserver_name === formStore.reserver_name &&\n//             order.reserver_birthdate ===\n//                 formStore.reserver_birthdate &&\n//             order.reserver_contact ===\n//                 formStore.reserver_contact\n//     )\n//     .map((order: any) => order.order_id)\n// const revisitCount = settlements.filter(\n//     (settlement: any) =>\n//         settlement.settlement_status === \"completed\" &&\n//         matchedOrderIds.includes(settlement.order_id)\n// ).length\n// setStore({\n//     revisit: String(revisitCount),\n// })\n// revisit 계산 (orders만 사용)\nconst ordersRes=await fetch(\"https://terene-db-server.onrender.com/api/v2/orders\");const orders=await ordersRes.json();const revisitCount=orders.filter(order=>order.stay_status===\"checked_out\"&&order.reserver_name===formStore.reserver_name&&order.reserver_birthdate===formStore.reserver_birthdate&&order.reserver_contact===formStore.reserver_phone).length;setStore({revisit:String(revisitCount)});if(store.enteredCouponCode.includes(code)){alert(\"이미 적용된 쿠폰입니다.\");return;}// 쿠폰 정의/인스턴스 가져오기\nconst[defRes,instRes]=await Promise.all([fetch(\"https://terene-db-server.onrender.com/api/v2/coupon-definitions\"),fetch(\"https://terene-db-server.onrender.com/api/v2/coupon-instances\")]);const definitions=await defRes.json();const instances=await instRes.json();const codeDefs=definitions.filter(def=>def.type===\"code\");const mergedCoupons=instances.filter(inst=>inst.coupon_code===code).map(inst=>{const def=codeDefs.find(d=>d.coupon_definition_id===inst.coupon_definition_id);return def?{...def,...inst}:null;}).filter(Boolean);if(mergedCoupons.length===0){alert(\"쿠폰이 존재하지 않거나 쿠폰번호가 잘못되었습니다.\");return;}const[found]=mergedCoupons;if(found.status!==\"available\"){alert(\"이 쿠폰은 현재 사용이 불가능합니다.\");return;}const now=new Date;const due=new Date(found.coupon_due);if(isNaN(due.getTime())||now>due){alert(\"이 쿠폰의 유효기간이 지났습니다.\");return;}const isConfirmed=window.confirm(`쿠폰 ${code}을 적용합니다.`);if(isConfirmed){setStore({enteredCouponCode:[...store.enteredCouponCode,code]});}}catch(error){console.error(\"쿠폰 확인 중 오류 발생:\",error);alert(\"쿠폰 확인 중 오류가 발생했습니다. 다시 시도해주세요.\");}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}export async function fetchTotalMileage(membershipNumber){try{const res=await fetch(\"https://terene-db-server.onrender.com/api/v2/mileages\");if(!res.ok)throw new Error(\"Failed to fetch mileage data\");const data=await res.json();const userMileage=data.filter(m=>m.membership_number===membershipNumber);const totalAmount=userMileage.reduce((sum,entry)=>sum+Number(entry.mileage_amount||0),0);return totalAmount;}catch(error){console.error(\"마일리지 조회 실패:\",error);return 0;}}export function toggleMileage(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({mileage:Number(inputValue)});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function applyMileage(Component){return props=>{const[formStore,setFormStore]=useFormStore();const[store,setStore]=useStore();const handleClick=async()=>{if(!formStore.mileage){alert(`마일리지를 입력해주세요.`);return;}if(!store.membership_number){alert(\"멤버십 로그인이 필요합니다.\");return;}const totalMileage=await fetchTotalMileage(store.membership_number);const availableMileage=totalMileage-(store.usedMileage||0);if(formStore.mileage>availableMileage||availableMileage<=0){alert(`마일리지 수 부족: ${availableMileage.toLocaleString()}p`);}else{const isConfirmed=window.confirm(`마일리지 ${formStore.mileage.toLocaleString()}p를 적용합니다.`);if(isConfirmed){setStore({usedMileage:(store.usedMileage||0)+formStore.mileage});}}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}export function displayOwnedMileage(Component){return props=>{const[store]=useStore();const[owned,setOwned]=React.useState(0);React.useEffect(()=>{if(!store.membership_number)return;fetchTotalMileage(store.membership_number).then(setOwned);},[store.membership_number]);return /*#__PURE__*/_jsx(Component,{...props,text:`보유 ${owned.toLocaleString()}p`});};}export function displayUsableMileage(Component){return props=>{const[store]=useStore();const[usable,setUsable]=React.useState(0);React.useEffect(()=>{if(!store.membership_number)return;fetchTotalMileage(store.membership_number).then(total=>{setUsable(total-(store.usedMileage||0));});},[store.membership_number,store.usedMileage]);return /*#__PURE__*/_jsx(Component,{...props,text:`사용가능 ${usable.toLocaleString()}p`});};}export function toggleSpecialRequests(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({special_requests:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function handleAnniversaryDropdown(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const selectedValue=event.target.value;if(selectedValue!==\"기념일 종류\"){setStore({anniversary_type:selectedValue});}};return /*#__PURE__*/_jsx(Component,{...props,value:store.anniversary_type,onChange:handleChange});};}export function toggleAnniversaryName(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({anniversary_name:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleAnniversaryValue(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({anniversary_value:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleTransferPayment(Component){return props=>{const[store,setStore]=useFormStore();const toggle=()=>{setStore({payment:\"transfer\"});};return /*#__PURE__*/_jsx(Component,{...props,onClick:toggle});};}export function toggleRefundName(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({refund_name:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleRefundPhone(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({refund_phone:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function handleRefundBank(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const selectedValue=event.target.value;if(selectedValue!==\"은행명\"){setStore({refund_bank:selectedValue});}};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function toggleRefundAccount(Component){return props=>{const[store,setStore]=useFormStore();const handleChange=event=>{const inputValue=event.target.value;setStore({refund_account:inputValue});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}\nexport const __FramerMetadata__ = {\"exports\":{\"toggleStayName\":{\"type\":\"reactHoc\",\"name\":\"toggleStayName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverEmail\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverBirthdateNonmember\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverBirthdateNonmember\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleRefundName\":{\"type\":\"reactHoc\",\"name\":\"toggleRefundName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleMileage\":{\"type\":\"reactHoc\",\"name\":\"toggleMileage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleStayPhone\":{\"type\":\"reactHoc\",\"name\":\"toggleStayPhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverName\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fetchTotalMileage\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleAnniversaryName\":{\"type\":\"reactHoc\",\"name\":\"toggleAnniversaryName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleSameReserverStay\":{\"type\":\"reactHoc\",\"name\":\"toggleSameReserverStay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayOwnedMileage\":{\"type\":\"reactHoc\",\"name\":\"displayOwnedMileage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"handleRefundBank\":{\"type\":\"reactHoc\",\"name\":\"handleRefundBank\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverPhoneNonmember\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverPhoneNonmember\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"applyCouponCode\":{\"type\":\"reactHoc\",\"name\":\"applyCouponCode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleRefundAccount\":{\"type\":\"reactHoc\",\"name\":\"toggleRefundAccount\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"handleEmailDomainDropdown\":{\"type\":\"reactHoc\",\"name\":\"handleEmailDomainDropdown\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"handleAnniversaryDropdown\":{\"type\":\"reactHoc\",\"name\":\"handleAnniversaryDropdown\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleStayBirthdate\":{\"type\":\"reactHoc\",\"name\":\"toggleStayBirthdate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverBirthdate\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverBirthdate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverPhone\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverPhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleTransferPayment\":{\"type\":\"reactHoc\",\"name\":\"toggleTransferPayment\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverEmailNonmember\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverEmailNonmember\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleRefundPhone\":{\"type\":\"reactHoc\",\"name\":\"toggleRefundPhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"togglePhone\":{\"type\":\"reactHoc\",\"name\":\"togglePhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleName\":{\"type\":\"reactHoc\",\"name\":\"toggleName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"applyMileage\":{\"type\":\"reactHoc\",\"name\":\"applyMileage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleEmail\":{\"type\":\"reactHoc\",\"name\":\"toggleEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleCouponCode\":{\"type\":\"reactHoc\",\"name\":\"toggleCouponCode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleAnniversaryValue\":{\"type\":\"reactHoc\",\"name\":\"toggleAnniversaryValue\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFormStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleSpecialRequests\":{\"type\":\"reactHoc\",\"name\":\"toggleSpecialRequests\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"checkRevisitAndCouponCode\":{\"type\":\"reactHoc\",\"name\":\"checkRevisitAndCouponCode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggleReserverNameNonmember\":{\"type\":\"reactHoc\",\"name\":\"toggleReserverNameNonmember\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayUsableMileage\":{\"type\":\"reactHoc\",\"name\":\"displayUsableMileage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"toggle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