{"version":3,"file":"WebToLeadOverrides.DiQuMgcf.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","useState"],"sources":["https:/framerusercontent.com/modules/jDnie6UqI6eU5k0yKfHW/98lTKnP3ipOGFCpce20H/tlaR0bgRt.js","https:/framerusercontent.com/modules/3VRiFfFSdxntKAtoLYYZ/Eo9i0qaTYlFzmo7pSdhD/WebToLeadOverrides.js"],"sourcesContent":["// Generated by Framer (f353506)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={hFv5sfs8s:{hover:true,pressed:true}};const cycleOrder=[\"hFv5sfs8s\",\"y0AygG1BD\",\"NEwgJf77j\",\"vRhFNrLFh\",\"iJVjGQmSp\"];const serializationHash=\"framer-TzOIf\";const variantClassNames={hFv5sfs8s:\"framer-v-zgr8z\",iJVjGQmSp:\"framer-v-gkdx36\",NEwgJf77j:\"framer-v-z4s5wh\",vRhFNrLFh:\"framer-v-1lnnuvf\",y0AygG1BD:\"framer-v-1e80pbc\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Default:\"hFv5sfs8s\",Disabled:\"NEwgJf77j\",Error:\"iJVjGQmSp\",Loading:\"y0AygG1BD\",ThankYou:\"vRhFNrLFh\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"hFv5sfs8s\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"hFv5sfs8s\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"y0AygG1BD\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"y0AygG1BD\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-zgr8z\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"hFv5sfs8s\",ref:refBinding,style:{backgroundColor:\"var(--token-01653ac6-1ee0-4f27-a770-85807fec878d, rgb(235, 252, 51))\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,opacity:1,...style},variants:{\"hFv5sfs8s-hover\":{backgroundColor:\"var(--token-b52c9728-d85f-4e2a-a963-fc076670575e, rgb(245, 253, 153))\",opacity:1},\"hFv5sfs8s-pressed\":{backgroundColor:\"var(--token-b52c9728-d85f-4e2a-a963-fc076670575e, rgb(245, 253, 153))\",opacity:1},iJVjGQmSp:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},NEwgJf77j:{opacity:.5},vRhFNrLFh:{opacity:1}},...addPropertyOverrides({\"hFv5sfs8s-hover\":{\"data-framer-name\":undefined},\"hFv5sfs8s-pressed\":{\"data-framer-name\":undefined},iJVjGQmSp:{\"data-framer-name\":\"Error\"},NEwgJf77j:{\"data-framer-name\":\"Disabled\"},vRhFNrLFh:{\"data-framer-name\":\"ThankYou\"},y0AygG1BD:{\"data-framer-name\":\"Loading\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-1249a2a4-6de2-4ecf-b684-54f5a61e35c9, rgb(255, 255, 255)))\"},children:\"Submit\"})}),className:\"framer-1m4ge33\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"wDcqijn9D\",style:{\"--extracted-r6o4lv\":\"var(--token-1249a2a4-6de2-4ecf-b684-54f5a61e35c9, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{iJVjGQmSp:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"},vRhFNrLFh:{\"--extracted-r6o4lv\":\"var(--token-b52c9728-d85f-4e2a-a963-fc076670575e, rgb(212, 219, 249))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({iJVjGQmSp:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})})},vRhFNrLFh:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-b52c9728-d85f-4e2a-a963-fc076670575e, rgb(212, 219, 249)))\"},children:\"Thank You\"})})}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-ukjul9\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"FNKALqX9S\",style:{borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-g70e4a\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"pEIk3egW1\",style:{background:\"conic-gradient(from 0deg at 50% 50%, var(--token-17cd4b28-f762-4080-bf9a-04438eebd767, rgb(0, 0, 0)) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,mask:\"none\",WebkitMask:\"none\"},variants:{y0AygG1BD:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-fr4yff\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"m4ial2NnS\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-TzOIf.framer-11ij3d3, .framer-TzOIf .framer-11ij3d3 { display: block; }\",\".framer-TzOIf.framer-zgr8z { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 40px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 145px; }\",\".framer-TzOIf .framer-1m4ge33 { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-TzOIf .framer-ukjul9 { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; will-change: var(--framer-will-change-override, transform); }\",\".framer-TzOIf .framer-g70e4a { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-TzOIf .framer-fr4yff { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-TzOIf.framer-v-1e80pbc.framer-zgr8z, .framer-TzOIf.framer-v-z4s5wh.framer-zgr8z, .framer-TzOIf.framer-v-1lnnuvf.framer-zgr8z { cursor: unset; }\",\".framer-TzOIf.framer-v-1e80pbc .framer-g70e4a { overflow: hidden; will-change: var(--framer-will-change-override, transform); }\",\".framer-TzOIf.framer-v-gkdx36.framer-zgr8z { cursor: unset; width: 185px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 145\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"y0AygG1BD\":{\"layout\":[\"fixed\",\"fixed\"]},\"NEwgJf77j\":{\"layout\":[\"fixed\",\"fixed\"]},\"vRhFNrLFh\":{\"layout\":[\"fixed\",\"fixed\"]},\"iJVjGQmSp\":{\"layout\":[\"fixed\",\"fixed\"]},\"UqqLRCJDp\":{\"layout\":[\"fixed\",\"fixed\"]},\"zg4AYq0s4\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramertlaR0bgRt=withCSS(Component,css,\"framer-TzOIf\");export default FramertlaR0bgRt;FramertlaR0bgRt.displayName=\"Forms/Form Button 2\";FramertlaR0bgRt.defaultProps={height:40,width:145};addPropertyControls(FramertlaR0bgRt,{variant:{options:[\"hFv5sfs8s\",\"y0AygG1BD\",\"NEwgJf77j\",\"vRhFNrLFh\",\"iJVjGQmSp\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"ThankYou\",\"Error\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramertlaR0bgRt,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramertlaR0bgRt\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"y0AygG1BD\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"NEwgJf77j\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"vRhFNrLFh\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"iJVjGQmSp\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"UqqLRCJDp\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"zg4AYq0s4\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicWidth\":\"145\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./tlaR0bgRt.map","// WebToLeadOverrides.ts\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";const ORG_ID=\"00DA0000000aTDZ\";const DEFAULT_RET_URL=\"https://www.wag-art.com/contact\";const SF_URL=\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=\"+ORG_ID;const TARGET_SERVICE_FIELD=\"00NNs000003Kw1J\";const LEAD_SOURCE_FIELD=\"lead_source\";const LEAD_SOURCE_VALUE=\"Website\";const PIXCO_COUNTRY_FIELD=\"Country\";const SF_STATE_FIELD=\"state\";const SF_COUNTRY_FIELD=\"country\";const LOCATION_DATA={\"new-york-office\":{state:\"NY\",country:\"United States\"},\"chicago-office\":{state:\"IL\",country:\"United States\"},\"boston-office\":{state:\"MA\",country:\"United States\"},\"washington-d.c.-office\":{state:\"DC\",country:\"United States\"},\"charlotte-office\":{state:\"NC\",country:\"United States\"},\"palm-beach-office\":{state:\"FL\",country:\"United States\"},\"denver-office\":{state:\"CO\",country:\"United States\"},\"houston-office\":{state:\"TX\",country:\"United States\"},\"los-angeles-office\":{state:\"CA\",country:\"United States\"},\"london-office\":{country:\"INT\"},\"paris-office\":{country:\"INT\"},\"geneva-office\":{country:\"INT\"}};function getLocationFromURL(){const parts=window.location.pathname.split(\"/\").filter(Boolean);const slug=parts[parts.length-1]?.toLowerCase();return LOCATION_DATA[slug]??null;}function ensureHidden(form,name,value){let el=form.querySelector(`[name=\"${name}\"]`);if(!el){el=document.createElement(\"input\");el.type=\"hidden\";el.name=name;form.appendChild(el);}el.value=value;}function normalizeMultiSelect(input){if(!input)return null;const parts=input.split(/[,;]/).map(s=>s.trim()).filter(Boolean);return parts.length?parts.join(\";\"):null;}function getFormValue(form,name){try{const fd=new FormData(form);const v=fd.get(name);if(typeof v!==\"string\")return null;const trimmed=v.trim();return trimmed?trimmed:null;}catch{return null;}}function injectLocationData(form){const location=getLocationFromURL();if(location){if(location.state){ensureHidden(form,SF_STATE_FIELD,location.state);}ensureHidden(form,SF_COUNTRY_FIELD,location.country);// Flag to skip redirect — button ThankYou variant handles UX\nform.setAttribute(\"data-no-redirect\",\"true\");}}function submitToSalesforce(form){ensureHidden(form,\"oid\",ORG_ID);// Only set default retURL if not already set by location injection\nconst existingRetURL=form.querySelector('[name=\"retURL\"]')?.value;if(!existingRetURL){const retFromAttr=form.getAttribute(\"data-returl\");ensureHidden(form,\"retURL\",retFromAttr||DEFAULT_RET_URL);}ensureHidden(form,LEAD_SOURCE_FIELD,LEAD_SOURCE_VALUE);const targetFromAttr=form.getAttribute(\"data-targetservice\")||form.getAttribute(\"data-interested\");const normalized=normalizeMultiSelect(targetFromAttr);const hasVisibleTarget=!!form.querySelector(`[name=\"${TARGET_SERVICE_FIELD}\"]`);if(!hasVisibleTarget&&normalized){ensureHidden(form,TARGET_SERVICE_FIELD,normalized);}const stateFromAttr=form.getAttribute(\"data-state\");const countryFromAttr=form.getAttribute(\"data-country\");if(stateFromAttr){ensureHidden(form,SF_STATE_FIELD,stateFromAttr);}if(countryFromAttr){ensureHidden(form,SF_COUNTRY_FIELD,countryFromAttr);}// Pixco country field takes precedence if user selected one\nconst pixcoCountry=getFormValue(form,PIXCO_COUNTRY_FIELD);if(pixcoCountry){ensureHidden(form,SF_COUNTRY_FIELD,pixcoCountry);}const formData=new FormData(form);const noRedirect=form.getAttribute(\"data-no-redirect\")===\"true\";const retURL=form.querySelector('[name=\"retURL\"]')?.value||DEFAULT_RET_URL;// Build params explicitly\nconst params=new URLSearchParams;formData.forEach((value,key)=>{if(typeof value===\"string\"){params.append(key,value);}});fetch(SF_URL,{method:\"POST\",mode:\"no-cors\",headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"},body:params.toString()}).then(()=>{form.reset();if(!noRedirect){window.location.href=retURL;}}).catch(err=>{console.error(\"SF submission error:\",err);if(!noRedirect){window.location.href=DEFAULT_RET_URL;}});}/* ---------- CORE OVERRIDES ---------- */export function webToLeadForm(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,onSubmit:e=>{e.preventDefault();submitToSalesforce(e.currentTarget);}});}export function webToLeadSubmit(Component){return props=>{const[thanked,setThanked]=useState(false);return /*#__PURE__*/_jsx(Component,{...props,variant:thanked?\"ThankYou\":undefined,disabled:thanked,onClick:e=>{const form=e.currentTarget.closest(\"form\");if(!form){alert(\"Couldn't find the form element. Make sure this button sits inside your Form.\");return;}e.preventDefault();setThanked(true);// Inject location data if on a location page\ninjectLocationData(form);submitToSalesforce(form);}});};}/* ---------- SERVICE PAGE HELPERS ---------- */export function appraisalForm(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,\"data-targetservice\":\"Appraisal\",\"data-returl\":\"https://www.wag-art.com/appraisals/thank-you\",onSubmit:e=>{e.preventDefault();submitToSalesforce(e.currentTarget);}});}export function advisoryForm(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,\"data-targetservice\":\"Advisory\",\"data-returl\":\"https://www.wag-art.com/advisory/thank-you\",onSubmit:e=>{e.preventDefault();submitToSalesforce(e.currentTarget);}});}export function investmentManagementForm(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,\"data-targetservice\":\"Investment Management\",\"data-returl\":\"https://www.wag-art.com/investment-management/thank-you\",onSubmit:e=>{e.preventDefault();submitToSalesforce(e.currentTarget);}});}/* ---------- LOCATION PAGE OVERRIDE ---------- *//* Apply locationForm to the Form layer on the Locations template page.\n   Apply webToLeadSubmit to the Submit Button as usual.\n   Location data is injected automatically based on the URL slug.\n   No redirect on submit — button ThankYou variant handles the UX. */export function locationForm(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,onSubmit:e=>{e.preventDefault();injectLocationData(e.currentTarget);submitToSalesforce(e.currentTarget);}});}\nexport const __FramerMetadata__ = {\"exports\":{\"appraisalForm\":{\"type\":\"reactHoc\",\"name\":\"appraisalForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"webToLeadForm\":{\"type\":\"reactHoc\",\"name\":\"webToLeadForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"advisoryForm\":{\"type\":\"reactHoc\",\"name\":\"advisoryForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"investmentManagementForm\":{\"type\":\"reactHoc\",\"name\":\"investmentManagementForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"webToLeadSubmit\":{\"type\":\"reactHoc\",\"name\":\"webToLeadSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"locationForm\":{\"type\":\"reactHoc\",\"name\":\"locationForm\",\"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