{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ugr44lNtDxyUiUtllp4p/MzKG9X9WKyH8TT10yAwu/Revenue_Filter.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({show:\"none\",revenue:\"$0 - $1,000,000\",country:\"US\"});const options=[\"$0 - $100,000\",\"$100,000 - $1,000,000\",\"$0 - $1,000,000\",\"\"];export function withRevenueChange(Component){return props=>{const[store,setStore]=useStore();const handleChange=e=>{setStore({show:store.show,revenue:e.target.value,country:store.country});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function withCountryChange(Component){return props=>{const[store,setStore]=useStore();const handleChange=e=>{// console.log(\"Changed Country: \", e.target.value)\nsetStore({show:store.show,revenue:store.revenue,country:e.target.value});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleChange});};}export function withEmailEnter(Component){return props=>{const[store,setStore]=useStore();const handleEmailChange=e=>{const emailAddress=e.target.value;setStore({show:store.show,revenue:e.target.value,country:store.country});};return /*#__PURE__*/_jsx(Component,{...props,onChange:handleEmailChange});};}export function withShowBooking(Component){return props=>{const[store,setStore]=useStore();console.log(\"STORE on withShowBooking:: \",store);props.className+=\" booking-form\";return /*#__PURE__*/_jsx(Component,{...props,style:{display:`${store.show}`},visible:`${store.show===\"none\"?false:true}`});};}export function withContentWithBooking(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,style:{display:`${store.show}`},visible:`${store.show===\"none\"?false:true}`});};}export function withContentNormal(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,style:{display:`${store.show===\"none\"?\"flex\":\"none\"}`},visible:`${store.show===\"none\"?true:false}`});};}export function withFormClick(Component){return props=>{const[store,setStore]=useStore();useEffect(()=>{setStore({show:\"none\",revenue:store.revenue,country:store.country});},[]);const handleClick=()=>{// console.log(\"STORE:: \", store)\n// console.log(\"Pass revenue to GTM: \", store.revenue)\nwindow.dataLayer&&window.dataLayer.push({dlv_site_revenue:store.revenue});if(!options.includes(store.revenue)&&store.country===\"US\"){// console.log(\"SHOW BOOKING:::::<<<<<<<<\")\nsetStore({show:\"flex\",revenue:store.revenue,country:store.country});}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick,id:\"lead-form-with-revenue\"});};}export function WithSetRevenue(){const[store,setStore]=useStore();return newValue=>{console.log(\"SetReview called::: \",newValue);setStore({show:!options.includes(store.revenue),revenue:newValue,country:store.country});// console.log(\"RESET STORE: \", newValue)\n};}export function WithBookingLogic(){const[store,setStore]=useStore();return()=>{console.log(\"WithBookingLogic Called::: before change-> \",store);if(!options.includes(store.revenue)&&store.country===\"US\"){console.log(\"SHOW BOOKING:::::<<<<<<<<\");setStore({show:\"flex\",revenue:store.revenue,country:store.country});}// console.log(\"RESET STORE: \", newValue)\n};}export function withShowOnlyUS(Component){return props=>{const[store]=useStore();// Check if the country is \"US\"\nconst isVisible=store.country===\"US\";// If the country is not \"US\", return null to hide the component\nif(!isVisible)return null;// If the country is \"US\", render the component\nreturn /*#__PURE__*/_jsx(Component,{...props});};}export function withShowNonUS(Component){return props=>{const[store]=useStore();// Check if the country is \"US\"\nconst isVisible=store.country!==\"US\";// If the country is not \"US\", return null to hide the component\nif(!isVisible)return null;// If the country is \"US\", render the component\nreturn /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withContentNormal\":{\"type\":\"reactHoc\",\"name\":\"withContentNormal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFormClick\":{\"type\":\"reactHoc\",\"name\":\"withFormClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCountryChange\":{\"type\":\"reactHoc\",\"name\":\"withCountryChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmailEnter\":{\"type\":\"reactHoc\",\"name\":\"withEmailEnter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WithSetRevenue\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowOnlyUS\":{\"type\":\"reactHoc\",\"name\":\"withShowOnlyUS\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRevenueChange\":{\"type\":\"reactHoc\",\"name\":\"withRevenueChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withContentWithBooking\":{\"type\":\"reactHoc\",\"name\":\"withContentWithBooking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WithBookingLogic\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowBooking\":{\"type\":\"reactHoc\",\"name\":\"withShowBooking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowNonUS\":{\"type\":\"reactHoc\",\"name\":\"withShowNonUS\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Revenue_Filter.map"],
  "mappings": "8IAAAA,IACA,IAAMC,EAASC,EAAY,CAAC,KAAK,OAAO,QAAQ,kBAAkB,QAAQ,IAAI,CAAC,EAAQC,EAAQ,CAAC,gBAAgB,wBAAwB,kBAAkB,EAAE,EAAS,SAASC,EAAkBC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEP,EAAS,EAAoG,OAAoBQ,EAAKJ,EAAU,CAAC,GAAGC,EAAM,SAA5HI,GAAG,CAACF,EAAS,CAAC,KAAKD,EAAM,KAAK,QAAQG,EAAE,OAAO,MAAM,QAAQH,EAAM,OAAO,CAAC,CAAE,CAAoE,CAAC,CAAE,CAAE,CAAQ,SAASI,EAAkBN,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEP,EAAS,EACrb,OAAoBQ,EAAKJ,EAAU,CAAC,GAAGC,EAAM,SAD6ZI,GAAG,CACxhBF,EAAS,C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C,iBAAiBC,EAAM,OAAO,CAAC,EAAK,CAACQ,EAAQ,SAASR,EAAM,OAAO,GAAGA,EAAM,UAAU,MAC/HC,EAAS,CAAC,KAAK,OAAO,QAAQD,EAAM,QAAQ,QAAQA,EAAM,OAAO,CAAC,CAAG,EAAmE,GAAG,wBAAwB,CAAC,CAAE,CAAE,CAAQ,SAASS,GAAgB,CAAC,GAAK,CAACT,EAAMC,CAAQ,EAAEC,EAAS,EAAE,OAAOQ,GAAU,CAAC,QAAQ,IAAI,uBAAuBA,CAAQ,EAAET,EAAS,CAAC,KAAK,CAACO,EAAQ,SAASR,EAAM,OAAO,EAAE,QAAQU,EAAS,QAAQV,EAAM,OAAO,CAAC,CACjY,CAAE,CACQ,SAASW,EAAeC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,CAAK,EAAEC,EAAS,EAElF,OADgBD,EAAM,UAAU,KAEZE,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,EADxB,IAC0B,CAAE,CAAQ,SAASI,EAAcL,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,CAAK,EAAEC,EAAS,EAEhI,OADgBD,EAAM,UAAU,KAEZE,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,EADxB,IAC0B,CAAE",
  "names": ["init_ssg_sandbox_shims", "useStore", "createStore", "options", "withRevenueChange", "Component", "props", "store", "setStore", "p", "e", "withCountryChange", "withShowBooking", "Component", "props", "store", "setStore", "useStore", "p", "withContentWithBooking", "withContentNormal", "withFormClick", "ue", "options", "WithSetRevenue", "newValue", "withShowOnlyUS", "Component", "props", "store", "useStore", "p", "withShowNonUS"]
}
