{"version":3,"file":"AnalyticsOverrides.v2zF_f3C.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/LtbOtNRBEh2sOROsP3H8/L5Xq2ue0gCBbHYHnONOn/Test.js","https:/framerusercontent.com/modules/zZiIO05TSvHauGdYAMUg/nuPHxh4J0i0TMtEC3L1X/AnalyticsOverrides.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","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";import{RenderTarget}from\"framer\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";const useStore=createStore({background:\"#0099FF\",showInput:false});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>setStore({background:randomColor()})});});}// Attach this to your SELECT / DROPDOWN element\nexport function withSelectTrigger(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();// ✅ Guarantee showInput is false on first load,\n// even if Framer's store persisted a stale value\nuseEffect(()=>{setStore({showInput:false});},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onChange:e=>{const selected=e.target.value;// Keep inputs hidden for empty/no/none selections\nif(selected===\"\"||selected===\"no\"||selected===\"none\"){setStore({showInput:false});return;}// Any other option selected (including \"other\") → show inputs\nsetStore({showInput:true});}});});}// Attach this to each INPUT you want to show/hide\nexport function withConditionalVisibility(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,...store.showInput?{}:{display:\"none\"}}});});}// Attach this to a FORM CONTAINER to prevent mobile focus-zoom viewport shifts\nexport function withPreventFocusZoom(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{if(typeof document===\"undefined\")return;const focusZoomStyle=document.createElement(\"style\");focusZoomStyle.setAttribute(\"data-framer-prevent-focus-zoom\",\"true\");focusZoomStyle.textContent=`\n                input, select, textarea {\n                    font-size: 16px !important;\n                }\n            `;document.head.appendChild(focusZoomStyle);const viewportMeta=document.querySelector('meta[name=\"viewport\"]');if(!viewportMeta)return;const originalContent=viewportMeta.getAttribute(\"content\")||\"\";viewportMeta.setAttribute(\"content\",\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\");return()=>{viewportMeta.setAttribute(\"content\",originalContent);if(focusZoomStyle.parentNode){focusZoomStyle.parentNode.removeChild(focusZoomStyle);}};},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}// Attach this to a VIDEO component to play/pause based on viewport visibility\nexport function PlayVideoOnView(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const rootRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}if(RenderTarget.current()===RenderTarget.canvas)return;const rootElement=rootRef.current;if(!rootElement||typeof IntersectionObserver===\"undefined\")return;const videoElement=rootElement instanceof HTMLVideoElement?rootElement:rootElement.querySelector(\"video\");if(!videoElement)return;const observer=new IntersectionObserver(entries=>{for(const entry of entries){if(entry.isIntersecting&&entry.intersectionRatio>=.35){try{const playResult=videoElement.play();if(playResult&&typeof playResult.then===\"function\"){playResult.catch(()=>{});}}catch(_error){// Never throw if autoplay is blocked\n}}else{videoElement.pause();}}},{threshold:[0,.35,1]});observer.observe(videoElement);return()=>{observer.disconnect();};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{rootRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&\"current\"in ref){ref.current=node;}}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSelectTrigger\":{\"type\":\"reactHoc\",\"name\":\"withSelectTrigger\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withConditionalVisibility\":{\"type\":\"reactHoc\",\"name\":\"withConditionalVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreventFocusZoom\":{\"type\":\"reactHoc\",\"name\":\"withPreventFocusZoom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PlayVideoOnView\":{\"type\":\"reactHoc\",\"name\":\"PlayVideoOnView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Test.map","import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * BaseUp Analytics Overrides\n *\n * These overrides only add data-* attributes.\n * The global BaseUp Marketing Analytics custom code\n * handles the actual GA4 tracking.\n *//* ============================================================\n * HOME — HERO\n * Get Started\n * ============================================================ */export function TrackHeroGetStarted(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"erp_implementation\",\"data-cta\":\"explore_solutions\",\"data-cta-location\":\"home_hero\"});};}/* ============================================================\n * HOME — SOLUTIONS\n * Financial Management\n * ============================================================ */export function TrackFinancialManagement(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"erp_implementation\",\"data-cta\":\"financial_management\",\"data-cta-location\":\"solutions\"});};}/* ============================================================\n * HOME — SOLUTIONS\n * Inventory & Supply Chain\n * ============================================================ */export function TrackInventorySupplyChain(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"erp_implementation\",\"data-cta\":\"inventory_supply_chain\",\"data-cta-location\":\"solutions\"});};}/* ============================================================\n * HOME — SOLUTIONS\n * Compliance & Integration\n * ============================================================ */export function TrackComplianceIntegration(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"erp_implementation\",\"data-cta\":\"compliance_integration\",\"data-cta-location\":\"solutions\"});};}/* ============================================================\n * HOME — SOLUTIONS\n * HR Management\n * ============================================================ */export function TrackHRManagement(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"hr_solution\",\"data-cta\":\"hr_management\",\"data-cta-location\":\"solutions\"});};}/* ============================================================\n * HOME — CASE STUDIES\n * ============================================================ */export function TrackCaseStudy(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"erp_implementation\",\"data-cta\":\"view_case_study\",\"data-cta-location\":\"case_studies\"});};}/* ============================================================\n * HOME — SCHEDULE\n * Pick a Schedule\n * ============================================================ */export function TrackPickSchedule(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"erp_implementation\",\"data-cta\":\"book_consultation\",\"data-cta-location\":\"home_schedule\"});};}/* ============================================================\n * HOME — CONTACT\n * Get in Touch\n * ============================================================ */export function TrackGetInTouch(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-product\":\"general_consultation\",\"data-cta\":\"contact_sales\",\"data-cta-location\":\"home_contact\"});};}export function TrackContactForm(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-bul-form\":\"contact_form\",\"data-product\":\"general_consultation\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"TrackComplianceIntegration\":{\"type\":\"reactHoc\",\"name\":\"TrackComplianceIntegration\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackHRManagement\":{\"type\":\"reactHoc\",\"name\":\"TrackHRManagement\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackFinancialManagement\":{\"type\":\"reactHoc\",\"name\":\"TrackFinancialManagement\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackCaseStudy\":{\"type\":\"reactHoc\",\"name\":\"TrackCaseStudy\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackHeroGetStarted\":{\"type\":\"reactHoc\",\"name\":\"TrackHeroGetStarted\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackGetInTouch\":{\"type\":\"reactHoc\",\"name\":\"TrackGetInTouch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackInventorySupplyChain\":{\"type\":\"reactHoc\",\"name\":\"TrackInventorySupplyChain\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackPickSchedule\":{\"type\":\"reactHoc\",\"name\":\"TrackPickSchedule\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackContactForm\":{\"type\":\"reactHoc\",\"name\":\"TrackContactForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnalyticsOverrides.map"],"mappings":"gNAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,CAAC,CAAC,EACjD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,KAAK,GAAG,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,CAAQ,CAAC,CAAE,EACjI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,EAAE,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,CAAU,GAAG,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,CAAQ,CAAC,EAAE,EACjJ,EAAa,QAAQ,GAAQ,EAAO,CAAU,CAAC,CAAE,EACjD,SAAS,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUA,EAAS,CAAU,EAKzC,OAHA,OACA,EAAa,IAAI,CAAQ,MAAY,EAAa,OAAO,CAAQ,GAAI,CAAC,CAAC,EACpE,EAAe,IAAI,IAAM,EAAe,EAAQ,CAAC,EAAU,MAAM,CAAY,GAC1E,CAAC,EAAM,CAAa,CAAG,CAAC,OAAO,CAAS,iBAfT,IAAwC,kCEAhE,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EAWI,CADA,GAAG,CACO,sBEdd,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAM,GAAU,EAAS,EAExE,OAAjD,MAAc,C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