{"version":3,"file":"ShipCarQuote.FDAxFHCN.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","de","addPropertyControls","init_framer_CN96F41L","ControlType","ShipCarQuote","props","ref","el","site","niche","w","s","SRC","onLoad","init_ShipCarQuote"],"sources":["https:/framerusercontent.com/modules/ICurJcm2ZdrP7n64E2b4/gV4hqA4vjFSAAA2X1r4T/ShipCarQuote.js"],"sourcesContent":["// 929 Ship Car shared quote form. Loads the form from quotes.929shipcar.com\n// and renders it inline (no iframe), so it grows with the form and reads UTM tags from the page.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const SRC=\"https://quotes.929shipcar.com/form.js\";/**\n * @framerIntrinsicWidth 520\n * @framerIntrinsicHeight 560\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ShipCarQuote(props){const{site,niche}=props;const ref=useRef(null);useEffect(()=>{if(typeof window===\"undefined\")return;const el=ref.current;if(!el)return;el.setAttribute(\"data-shipcar-quote\",\"\");el.dataset.site=site;el.dataset.niche=niche;const w=window;if(w.ShipCarQuote){w.ShipCarQuote.mount(el);return;}let s=document.querySelector(`script[src=\"${SRC}\"]`);if(!s){s=document.createElement(\"script\");s.src=SRC;s.async=true;document.body.appendChild(s);}const onLoad=()=>{if(w.ShipCarQuote&&ref.current)w.ShipCarQuote.mount(ref.current);};s.addEventListener(\"load\",onLoad);return()=>s&&s.removeEventListener(\"load\",onLoad);},[site,niche]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",minHeight:520}});}ShipCarQuote.defaultProps={site:\"929shipcar.com\",niche:\"main\"};addPropertyControls(ShipCarQuote,{site:{type:ControlType.String,title:\"Site\",defaultValue:\"929shipcar.com\"},niche:{type:ControlType.String,title:\"Niche\",defaultValue:\"main\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShipCarQuote\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"520\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"560\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShipCarQuote.map"],"mappings":"A,+LAOG,SAAwBY,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,SAAOC,EAAYC,EAAId,EAAO,IAAI,EAA+jB,OAA7jBO,MAAc,CAAC,GAAUH,IAAS,OAAY,OAAO,IAAMW,EAAGD,EAAI,QAAQ,GAAG,CAACC,EAAG,OAAOA,EAAG,aAAa,qBAAqB,EAAE,EAAE,EAAG,QAAQ,KAAKC,EAAK,EAAG,QAAQ,MAAMC,EAAM,IAAMC,EAAEd,EAAO,GAAGc,EAAE,aAAa,CAACA,EAAE,aAAa,MAAMH,CAAE,EAAE,MAAO,CAAC,IAAII,EAAE,SAAS,cAAc,eAAeC,EAAI,GAAG,EAAMD,IAAG,EAAE,SAAS,cAAc,QAAQ,EAAE,EAAE,IAAIC,EAAI,EAAE,MAAM,GAAK,SAAS,KAAK,YAAYD,CAAC,GAAG,IAAME,MAAW,CAAIH,EAAE,cAAcJ,EAAI,SAAQI,EAAE,aAAa,MAAMJ,EAAI,OAAO,CAAE,EAAoC,OAAlCK,EAAE,iBAAiB,OAAOE,CAAM,MAAYF,GAAGA,EAAE,oBAAoB,OAAOE,CAAM,CAAE,EAAE,CAACL,EAAKC,CAAK,CAAC,EAAsB,gBAAK,MAAM,CAAK,MAAI,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,UAAU,GAAG,CAAC,CAAC,CAAE,C,oDALnnB,EAAI,wCAKgnB,EAAa,aAAa,CAAC,KAAK,iBAAiB,MAAM,MAAM,EAAER,EAAoBG,EAAa,CAAC,KAAK,CAAC,KAAKD,EAAY,OAAO,MAAM,OAAO,aAAa,gBAAgB,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,MAAM,CAAC,CAAC,C"}