{"version":3,"file":"Examples.DaK30xyH.mjs","names":["useState","useRef","useState","useCallback","customEvent","submitEvent"],"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/gB6rLxMBBnHoxYwJwFCK/jeIZSv1UJo1D6aOXCU53/Examples.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,startTransition,useCallback,useEffect,useRef,useState}from\"react\";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\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});const OZT_TO_GRAM=31.1034768;const QUOTE_CACHE_REFRESH_MS=6e4;const INSTANT_GOLD_QUOTE_REDIRECT_DELAY_MS=450;const INSTANT_GOLD_QUOTE_SESSION_KEY=\"instant-gold-quote\";const ALLOWED_FORM_FIELD_NAMES=new Set([\"weight\",\"purity\",\"phone\",\"email\",\"Quoted Offer (AUD)\"]);let latestInstantGoldQuote=null;let latestQuoteCache=null;const useQuoteStore=createStore({quote:null});function persistInstantGoldQuote(detail){latestInstantGoldQuote=detail;try{if(typeof window===\"undefined\")return;window.sessionStorage.setItem(INSTANT_GOLD_QUOTE_SESSION_KEY,JSON.stringify(detail));}catch(error){// Storage unavailable; non-fatal.\n}}function readPersistedInstantGoldQuote(){if(latestInstantGoldQuote)return latestInstantGoldQuote;try{if(typeof window===\"undefined\")return null;const raw=window.sessionStorage.getItem(INSTANT_GOLD_QUOTE_SESSION_KEY);if(!raw)return null;const parsed=JSON.parse(raw);if(!parsed){return null;}const amount=typeof parsed.amount===\"string\"?parsed.amount:typeof parsed.displayAmount===\"string\"?parsed.displayAmount:\"\";const offerAmount=Number(parsed.offerAmount);const weight=Number(parsed.weight);const purityRaw=Number(parsed.purity??parsed.carat);const phone=String(parsed.phone??\"\").trim();if(!amount)return null;if(!Number.isFinite(weight))return null;if(!Number.isFinite(purityRaw))return null;if(!Number.isFinite(offerAmount)||offerAmount<=0)return null;latestInstantGoldQuote={amount,displayAmount:amount,offerAmount,weight,carat:purityRaw,purity:purityRaw,phone};return latestInstantGoldQuote;}catch(error){return null;}}function setNativeControlValue(element,value){if(typeof window===\"undefined\")return;const prototype=element instanceof window.HTMLTextAreaElement?window.HTMLTextAreaElement.prototype:element instanceof window.HTMLSelectElement?window.HTMLSelectElement.prototype:window.HTMLInputElement.prototype;const valueSetter=Object.getOwnPropertyDescriptor(prototype,\"value\")?.set;if(valueSetter)valueSetter.call(element,value);else element.value=value;element.dispatchEvent(new Event(\"input\",{bubbles:true}));element.dispatchEvent(new Event(\"change\",{bubbles:true}));element.dispatchEvent(new Event(\"blur\",{bubbles:true}));}function findFieldByKeys(root,keys){const controls=root.querySelectorAll(\"input, textarea, select\");const normalized=keys.map(k=>k.trim().toLowerCase());for(const control of controls){const haystacks=[control.getAttribute(\"name\")??\"\",control.getAttribute(\"id\")??\"\",control.getAttribute(\"aria-label\")??\"\",control.getAttribute(\"placeholder\")??\"\",control.getAttribute(\"data-name\")??\"\"].map(v=>v.trim().toLowerCase());if(haystacks.some(value=>normalized.some(key=>value===key||value.includes(key)))){return control;}}return null;}function findFieldByAssociatedLabel(root,keys){const normalized=keys.map(k=>k.trim().toLowerCase());const labels=root.querySelectorAll(\"label\");for(const label of labels){const labelText=(label.textContent??\"\").trim().toLowerCase();if(!normalized.some(key=>labelText===key||labelText.includes(key))){continue;}const htmlFor=label.getAttribute(\"for\");if(htmlFor){const linked=root.querySelector(`#${CSS.escape(htmlFor)}`);if(linked)return linked;}const nested=label.querySelector(\"input, textarea, select\");if(nested)return nested;}return null;}function findFieldForAssessmentPrefill(root,keys){const byKeys=findFieldByKeys(root,keys);if(byKeys)return byKeys;return findFieldByAssociatedLabel(root,keys);}function getElementVisibleText(element){if(!element)return\"\";return(element.textContent??\"\").replace(/\\s+/g,\" \").trim().toLowerCase();}function getControlContextText(control){const parts=[control.getAttribute(\"name\")??\"\",control.getAttribute(\"id\")??\"\",control.getAttribute(\"aria-label\")??\"\",control.getAttribute(\"placeholder\")??\"\",control.getAttribute(\"data-name\")??\"\"];const controlId=control.getAttribute(\"id\");if(controlId&&typeof document!==\"undefined\"&&typeof CSS!==\"undefined\"){const explicitLabel=document.querySelector(`label[for=\"${CSS.escape(controlId)}\"]`);if(explicitLabel)parts.push(explicitLabel.textContent??\"\");}const nestedLabel=control.closest(\"label\");if(nestedLabel)parts.push(nestedLabel.textContent??\"\");const nearestContext=control.closest(\"[data-framer-name], .framer-form-field, .framer-form-input-wrapper, .framer-form-item, div, section, article, li\")??control.parentElement;if(nearestContext){parts.push(nearestContext.textContent??\"\");}return parts.join(\" \").replace(/\\s+/g,\" \").trim().toLowerCase();}function isPotentialAssessmentControl(control){if(!(control instanceof Element))return false;if(control.hasAttribute(\"disabled\"))return false;if(control.getAttribute(\"aria-hidden\")===\"true\")return false;if(control instanceof HTMLInputElement&&control.type===\"hidden\")return false;if(!control.isConnected)return false;if(typeof window!==\"undefined\"){const style=window.getComputedStyle(control);if(style.display===\"none\"||style.visibility===\"hidden\"||style.opacity===\"0\"){return false;}}const navParent=control.closest(\"nav, header, [role='navigation']\");if(navParent)return false;return true;}function findAssessmentFieldDocumentWide(root,labelMatchers,expectedKeywords){const controls=root.querySelectorAll(\"input, textarea, select\");const matchers=labelMatchers.map(v=>v.toLowerCase());const expected=expectedKeywords.map(v=>v.toLowerCase());let bestMatch=null;for(const control of controls){if(!isPotentialAssessmentControl(control))continue;const context=getControlContextText(control);const contextElement=control.closest(\"[data-framer-name], .framer-form-field, .framer-form-input-wrapper, .framer-form-item, form, div, section, article, li\")??control.parentElement;const contextText=getElementVisibleText(contextElement);const combined=`${context} ${contextText}`;let score=0;for(const matcher of matchers){if(combined.includes(matcher))score+=4;}for(const keyword of expected){if(combined.includes(keyword))score+=1;}// Prefer controls likely in form content instead of generic UI/search bars.\nif(control.closest(\"form\"))score+=2;if(score<=0)continue;if(!bestMatch||score>bestMatch.score){bestMatch={score,control};}}return bestMatch?.control??null;}async function fetchLiveQuoteCache(){try{const[goldRes,fxRes]=await Promise.all([fetch(\"https://api.gold-api.com/price/XAU\"),fetch(\"https://open.er-api.com/v6/latest/USD\")]);if(!goldRes.ok||!fxRes.ok)return null;const goldData=await goldRes.json();const fxData=await fxRes.json();const goldUsdPerOz=Number(goldData?.price??goldData?.rate??goldData?.value);const audRate=Number(fxData?.rates?.AUD);if(!Number.isFinite(goldUsdPerOz)||goldUsdPerOz<=0)return null;if(!Number.isFinite(audRate)||audRate<=0)return null;latestQuoteCache={goldUsdPerOz,audRate,updatedAt:Date.now()};return{goldUsdPerOz,audRate};}catch(error){return null;}}function getFreshQuoteCache(){if(!latestQuoteCache)return null;if(Date.now()-latestQuoteCache.updatedAt>QUOTE_CACHE_REFRESH_MS)return null;return{goldUsdPerOz:latestQuoteCache.goldUsdPerOz,audRate:latestQuoteCache.audRate};}function computeQuoteFromForm(formEl,cache){const formData=new FormData(formEl);const weightRaw=String(formData.get(\"weight\")??\"\").trim();const purityRaw=String(formData.get(\"purity\")??\"\").trim();const phoneRaw=String(formData.get(\"phone\")??formData.get(\"Phone Number\")??\"\").trim();const weight=Number(weightRaw.replace(/[^\\d.]/g,\"\"));const carat=Number(purityRaw.replace(/[^\\d.]/g,\"\"));if(!Number.isFinite(weight)||weight<=0)return null;if(!Number.isFinite(carat)||carat<=0)return null;if(!phoneRaw)return null;const offerValue=cache.goldUsdPerOz/OZT_TO_GRAM*cache.audRate*(carat/24)*weight*.9;const amount=new Intl.NumberFormat(\"en-AU\",{style:\"currency\",currency:\"AUD\",minimumFractionDigits:2,maximumFractionDigits:2}).format(offerValue);return{amount,displayAmount:amount,offerAmount:offerValue,weight,carat,purity:carat,phone:phoneRaw};}function setQuotedOfferField(formEl,amount){const quotedOfferInput=formEl.querySelector('input[name=\"Quoted Offer (AUD)\"]');if(!quotedOfferInput||typeof window===\"undefined\")return;const valueSetter=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"value\")?.set;if(valueSetter){valueSetter.call(quotedOfferInput,amount);}else{quotedOfferInput.value=amount;}quotedOfferInput.dispatchEvent(new Event(\"input\",{bubbles:true}));quotedOfferInput.dispatchEvent(new Event(\"change\",{bubbles:true}));}function restrictFormPayloadToAllowedFields(formEl){const controls=formEl.querySelectorAll(\"input[name], select[name], textarea[name]\");controls.forEach(control=>{const element=control;if(!element.name)return;if(ALLOWED_FORM_FIELD_NAMES.has(element.name)){element.disabled=false;return;}element.disabled=true;});}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()});}});});}export function withInstantGoldQuote(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}export function withInstantGoldQuoteButton(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const refreshTimerRef=useRef(null);const redirectTimerRef=useRef(null);const inFlightRef=useRef(false);const[showingQuote,setShowingQuote]=useState(false);const refreshQuoteCache=useCallback(async()=>{await fetchLiveQuoteCache();},[]);useEffect(()=>{if(typeof window===\"undefined\")return;refreshQuoteCache();refreshTimerRef.current=window.setInterval(refreshQuoteCache,QUOTE_CACHE_REFRESH_MS);return()=>{if(refreshTimerRef.current!==null){window.clearInterval(refreshTimerRef.current);refreshTimerRef.current=null;}};},[refreshQuoteCache]);useEffect(()=>{if(typeof window===\"undefined\")return;const host=hostRef.current;if(!host)return;const formEl=host.closest(\"form\");if(!formEl)return;const dispatchReset=()=>{window.dispatchEvent(new Event(\"instant-gold-quote-reset\"));};const fields=formEl.querySelectorAll('[name=\"weight\"], [name=\"purity\"]');fields.forEach(field=>{field.addEventListener(\"input\",dispatchReset);field.addEventListener(\"change\",dispatchReset);});return()=>{fields.forEach(field=>{field.removeEventListener(\"input\",dispatchReset);field.removeEventListener(\"change\",dispatchReset);});};},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const onQuote=()=>{startTransition(()=>{setShowingQuote(true);});};const onReset=()=>{startTransition(()=>{setShowingQuote(false);});};window.addEventListener(\"instant-gold-quote\",onQuote);window.addEventListener(\"instant-gold-quote-reset\",onReset);return()=>{window.removeEventListener(\"instant-gold-quote\",onQuote);window.removeEventListener(\"instant-gold-quote-reset\",onReset);};},[]);useEffect(()=>{return()=>{if(typeof window===\"undefined\")return;if(redirectTimerRef.current!==null){window.clearTimeout(redirectTimerRef.current);redirectTimerRef.current=null;}};},[]);const handleClick=useCallback(async event=>{props?.onClick?.(event);if(event?.defaultPrevented)return;const buttonEl=event?.currentTarget;const formEl=buttonEl?.closest(\"form\");if(!formEl)return;if(inFlightRef.current)return;if(formEl.dataset.instantGoldQuoteGuard===\"1\")return;event?.preventDefault?.();const weightField=findFieldByKeys(formEl,[\"weight\"]);const purityField=findFieldByKeys(formEl,[\"purity\"]);const phoneField=findFieldByKeys(formEl,[\"phone\",\"phone number\"]);const missingRequired=!weightField?.value?.trim()||!purityField?.value?.trim()||!phoneField?.value?.trim();if(missingRequired||!formEl.checkValidity()){if(typeof formEl.reportValidity===\"function\"){formEl.reportValidity();}return;}const tryComputeAndApply=cache=>{if(!cache)return false;const detail=computeQuoteFromForm(formEl,cache);if(!detail)return false;if(formEl.dataset.instantGoldQuoteGuard===\"1\")return true;formEl.dataset.instantGoldQuoteGuard=\"1\";persistInstantGoldQuote(detail);setQuotedOfferField(formEl,detail.amount);const clickedControl=buttonEl instanceof HTMLButtonElement||buttonEl instanceof HTMLInputElement?buttonEl:null;const submitter=clickedControl&&(clickedControl instanceof HTMLButtonElement?(clickedControl.getAttribute(\"type\")||\"submit\").toLowerCase()===\"submit\":clickedControl.type.toLowerCase()===\"submit\")?clickedControl:null;if(typeof formEl.requestSubmit===\"function\"){if(submitter){formEl.requestSubmit(submitter);}else{formEl.requestSubmit();}}else if(typeof document!==\"undefined\"){const fallbackSubmitter=document.createElement(\"button\");fallbackSubmitter.type=\"submit\";fallbackSubmitter.hidden=true;formEl.appendChild(fallbackSubmitter);fallbackSubmitter.click();formEl.removeChild(fallbackSubmitter);}if(typeof window!==\"undefined\"){if(redirectTimerRef.current!==null){window.clearTimeout(redirectTimerRef.current);}redirectTimerRef.current=window.setTimeout(()=>{redirectTimerRef.current=null;window.location.assign(\"/assessment\");},INSTANT_GOLD_QUOTE_REDIRECT_DELAY_MS);}return true;};const readyCache=getFreshQuoteCache();if(tryComputeAndApply(readyCache)){return;}try{inFlightRef.current=true;const fetched=await fetchLiveQuoteCache();const applied=tryComputeAndApply(fetched);if(!applied)return;}finally{inFlightRef.current=false;}},[props]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}},style:{...props?.style,background:showingQuote?\"#111111\":\"#C9A64E\",backgroundColor:showingQuote?\"#111111\":\"#C9A64E\",color:showingQuote?\"#FFFFFF\":\"#141414\",transition:\"background-color 0.8s cubic-bezier(0.22, 1, 0.36, 1), color 0.8s cubic-bezier(0.22, 1, 0.36, 1)\"},onClick:handleClick});});}export function withInstantQuoteAssessmentPrefill(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!window.location.pathname.startsWith(\"/assessment\"))return;const persisted=readPersistedInstantGoldQuote();if(!persisted)return;const root=document.body||document;const expiryAt=Date.now()+5e3;let intervalId=null;let observer=null;let stopped=false;const expectedValues={weight:String(persisted.weight),purity:String(persisted.purity),phone:String(persisted.phone??\"\").trim()};const isDev=window.location.hostname===\"localhost\"||window.location.hostname===\"127.0.0.1\";const stop=()=>{if(stopped)return;stopped=true;if(intervalId!==null){window.clearInterval(intervalId);intervalId=null;}if(observer){observer.disconnect();observer=null;}};const applyAndVerify=(field,value)=>{if(!field||!value)return false;if((field.value??\"\").trim()!==value){setNativeControlValue(field,value);}return(field.value??\"\").trim()===value;};const tryHydrate=()=>{const weightField=findAssessmentFieldDocumentWide(root,[\"weight (grams)\",\"weight\"],[\"gram\",\"g\",\"weight\"]);const purityField=findAssessmentFieldDocumentWide(root,[\"purity\"],[\"karat\",\"carat\",\"k\"]);const phoneField=findAssessmentFieldDocumentWide(root,[\"phone number\",\"phone\"],[\"mobile\",\"contact\",\"tel\"]);const weightConfirmed=applyAndVerify(weightField,expectedValues.weight);const purityConfirmed=applyAndVerify(purityField,expectedValues.purity);const phoneConfirmed=applyAndVerify(phoneField,expectedValues.phone);if(weightConfirmed&&purityConfirmed&&phoneConfirmed){if(isDev){console.debug(\"[InstantQuotePrefill] Hydration complete on /assessment.\");}stop();return true;}if(Date.now()>=expiryAt){stop();}return false;};tryHydrate();intervalId=window.setInterval(()=>{if(stopped)return;if(Date.now()>=expiryAt){stop();return;}tryHydrate();},100);observer=new MutationObserver(()=>{if(stopped)return;if(Date.now()>=expiryAt){stop();return;}tryHydrate();});observer.observe(document.body,{childList:true,subtree:true,attributes:true,attributeFilter:[\"name\",\"id\",\"aria-label\",\"placeholder\",\"data-name\",\"for\"]});return()=>{stop();};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}}});});}function createAssessmentFieldPrefillOverride(getValue){return function withAssessmentFieldPrefill(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!window.location.pathname.startsWith(\"/assessment\"))return;const persisted=readPersistedInstantGoldQuote();if(!persisted)return;const host=hostRef.current;if(!host)return;const expectedValue=getValue(persisted).trim();const expiryAt=Date.now()+5e3;let intervalId=null;let observer=null;let stopped=false;const stop=()=>{if(stopped)return;stopped=true;if(intervalId!==null){window.clearInterval(intervalId);intervalId=null;}if(observer){observer.disconnect();observer=null;}};const findLocalControl=()=>host.querySelector(\"input, textarea, select\");const tryHydrate=()=>{const field=findLocalControl();if(!field)return false;if((field.value??\"\").trim()!==expectedValue){setNativeControlValue(field,expectedValue);}const verified=(field.value??\"\").trim()===expectedValue;if(verified){stop();return true;}if(Date.now()>=expiryAt){stop();}return false;};tryHydrate();intervalId=window.setInterval(()=>{if(stopped)return;if(Date.now()>=expiryAt){stop();return;}tryHydrate();},100);observer=new MutationObserver(()=>{if(stopped)return;if(Date.now()>=expiryAt){stop();return;}tryHydrate();});observer.observe(host,{childList:true,subtree:true,attributes:true,attributeFilter:[\"name\",\"id\",\"aria-label\",\"placeholder\",\"data-name\",\"for\",\"value\"]});return()=>{stop();};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}}});});};}export function withAssessmentQuoteWeightPrefill(Component){return createAssessmentFieldPrefillOverride(payload=>String(payload.weight))(Component);}export function withAssessmentQuotePurityPrefill(Component){return createAssessmentFieldPrefillOverride(payload=>String(payload.purity))(Component);}export function withAssessmentQuotePhonePrefill(Component){return createAssessmentFieldPrefillOverride(payload=>String(payload.phone??\"\").trim())(Component);}export function withInstantGoldQuoteButtonLabel(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const[label,setLabel]=useState(\"Get Instant Quote\");const[quoteAmount,setQuoteAmount]=useState(\"\");const[showingQuote,setShowingQuote]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const onQuote=event=>{const customEvent=event;const amount=customEvent?.detail?.amount;if(typeof amount!==\"string\")return;startTransition(()=>{setQuoteAmount(amount);setShowingQuote(true);});};const onReset=()=>{startTransition(()=>{setLabel(\"Get Instant Quote\");setQuoteAmount(\"\");setShowingQuote(false);});};window.addEventListener(\"instant-gold-quote\",onQuote);window.addEventListener(\"instant-gold-quote-reset\",onReset);return()=>{window.removeEventListener(\"instant-gold-quote\",onQuote);window.removeEventListener(\"instant-gold-quote-reset\",onReset);};},[]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const host=hostRef.current;if(!host)return;const OVERLAY_ATTR=\"data-instant-gold-quote-overlay\";const existingOverlay=host.querySelector(`[${OVERLAY_ATTR}=\"true\"]`);host.style.position=host.style.position||\"relative\";if(showingQuote&&quoteAmount){host.style.color=\"transparent\";let overlay=existingOverlay;if(!overlay){overlay=document.createElement(\"span\");overlay.setAttribute(OVERLAY_ATTR,\"true\");host.appendChild(overlay);}overlay.textContent=quoteAmount;overlay.style.position=\"absolute\";overlay.style.left=\"50%\";overlay.style.top=\"50%\";overlay.style.transform=\"translate(-50%, -50%)\";overlay.style.color=\"#FFFFFF\";overlay.style.fontFamily='\"Playfair Display\", serif';overlay.style.fontSize=\"32px\";overlay.style.fontWeight=\"700\";overlay.style.lineHeight=\"1\";overlay.style.textAlign=\"center\";overlay.style.whiteSpace=\"nowrap\";overlay.style.pointerEvents=\"none\";overlay.style.textShadow=\"0 1px 1px rgba(0,0,0,0.45)\";overlay.style.opacity=\"1\";if(typeof overlay.animate===\"function\"){overlay.animate([{transform:\"translate(-50%, -50%) scale(0.94)\",opacity:0},{transform:\"translate(-50%, -50%) scale(1)\",opacity:1}],{duration:420,easing:\"cubic-bezier(0.22, 1, 0.36, 1)\",fill:\"both\"});}return;}host.style.color=\"#141414\";if(existingOverlay&&existingOverlay.parentElement){existingOverlay.parentElement.removeChild(existingOverlay);}},[quoteAmount,showingQuote]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}},text:label,style:{...props?.style,color:showingQuote?\"transparent\":\"#141414\"}});});}export function withAustralianPhoneContrast(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const inputRef=useRef(null);const labelCleanupRef=useRef([]);const scopeClassRef=useRef(`au-phone-contrast-${Math.random().toString(36).slice(2,10)}`);const scopeIdRef=useRef(`au-phone-contrast-${Math.random().toString(36).slice(2,10)}`);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const STYLE_ID=\"with-australian-phone-contrast-placeholder-style\";if(!document.getElementById(STYLE_ID)){const styleEl=document.createElement(\"style\");styleEl.id=STYLE_ID;styleEl.textContent=\"[data-australian-phone-contrast]::placeholder{color:#C7C4BE!important;opacity:1;}.fp-phone-control > label,.fp-phone-control label{color:#F5F2EA!important;}\";document.head.appendChild(styleEl);}const host=hostRef.current;if(!host)return;host.classList.add(scopeClassRef.current);const inputEl=host.querySelector('input[type=\"tel\"]')||host.querySelector(\"input\");if(inputEl){inputRef.current=inputEl;inputEl.setAttribute(\"data-australian-phone-contrast\",\"true\");inputEl.setAttribute(\"data-australian-phone-contrast-id\",scopeIdRef.current);inputEl.style.color=\"#FFFFFF\";inputEl.style.backgroundColor=\"#1F1F1F\";inputEl.style.borderColor=\"#3A3A3A\";}const textCandidates=host.querySelectorAll('label, span, div, p, [data-framer-name], [role=\"label\"]');const originalLabelStyles=[];textCandidates.forEach(el=>{const renderedText=el.innerText?.trim()||\"\";if(!renderedText.startsWith(\"Phone Number\"))return;originalLabelStyles.push({element:el,color:el.style.getPropertyValue(\"color\"),priority:el.style.getPropertyPriority(\"color\")});el.style.setProperty(\"color\",\"#FFFFFF\",\"important\");});labelCleanupRef.current=originalLabelStyles;return()=>{host.classList.remove(scopeClassRef.current);if(inputRef.current){inputRef.current.removeAttribute(\"data-australian-phone-contrast\");inputRef.current.removeAttribute(\"data-australian-phone-contrast-id\");}labelCleanupRef.current.forEach(({element,color,priority})=>{if(!element)return;if(color){element.style.setProperty(\"color\",color,priority);}else{element.style.removeProperty(\"color\");}});labelCleanupRef.current=[];inputRef.current=null;};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}}});});}export function withInstantGoldQuoteResult(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const[quoteStore,setQuoteStore]=useQuoteStore();const persisted=quoteStore.quote??readPersistedInstantGoldQuote();const[amount,setAmount]=useState(persisted?.amount??\"\");const[weight,setWeight]=useState(persisted?.weight??null);const[carat,setCarat]=useState(persisted?.carat??null);useEffect(()=>{if(typeof window===\"undefined\")return;const cached=readPersistedInstantGoldQuote();if(cached){setQuoteStore({quote:cached});setAmount(cached.amount);setWeight(cached.weight);setCarat(cached.carat);}const onQuote=event=>{const customEvent=event;const detail=customEvent?.detail;if(!detail)return;persistInstantGoldQuote(detail);setQuoteStore({quote:detail});setAmount(detail.amount||\"\");setWeight(typeof detail.weight===\"number\"&&Number.isFinite(detail.weight)?detail.weight:null);setCarat(typeof detail.carat===\"number\"&&Number.isFinite(detail.carat)?detail.carat:null);};window.addEventListener(\"instant-gold-quote\",onQuote);return()=>{window.removeEventListener(\"instant-gold-quote\",onQuote);};},[setQuoteStore]);useEffect(()=>{const storeQuote=quoteStore.quote;if(!storeQuote)return;setAmount(storeQuote.amount);setWeight(storeQuote.weight);setCarat(storeQuote.carat);},[quoteStore.quote]);useEffect(()=>{const root=hostRef.current;if(!root)return;const hasQuote=Boolean(amount)&&weight!==null&&carat!==null;// Optional DOM locators you can place inside the result box content:\n// - #instant-gold-quote-amount\n// - #instant-gold-quote-meta\n// If not present, the override still reveals the target container.\nconst amountEl=root.querySelector(\"#instant-gold-quote-amount\");if(amountEl)amountEl.textContent=hasQuote?amount:\"\";const metaEl=root.querySelector(\"#instant-gold-quote-meta\");if(metaEl&&hasQuote){metaEl.textContent=`For ${weight}g of ${carat}K gold — 10% below live spot price`;}else if(metaEl){metaEl.textContent=\"\";}},[amount,weight,carat]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}},style:{...props?.style,visibility:amount&&weight!==null&&carat!==null?props?.style?.visibility||\"visible\":\"hidden\"}});});}function getSignatureControlDescriptor(element){const parts=[element.getAttribute(\"aria-label\")??\"\",element.getAttribute(\"title\")??\"\",element.getAttribute(\"name\")??\"\",element.getAttribute(\"id\")??\"\",element.getAttribute(\"data-name\")??\"\",element.getAttribute(\"data-testid\")??\"\",element.getAttribute(\"data-action\")??\"\",element.getAttribute(\"value\")??\"\",element.textContent??\"\"];return parts.join(\" \").replace(/\\s+/g,\" \").trim().toLowerCase();}function isElementVisibleAndEnabled(element){if(!(element instanceof HTMLElement))return false;if(!element.isConnected)return false;if(element.hasAttribute(\"disabled\")||element.getAttribute(\"aria-disabled\")===\"true\"){return false;}if(typeof window!==\"undefined\"){const style=window.getComputedStyle(element);if(style.display===\"none\"||style.visibility===\"hidden\"||style.pointerEvents===\"none\"||style.opacity===\"0\"){return false;}}const rect=element.getBoundingClientRect();return rect.width>0&&rect.height>0;}function isClearLikeSignatureControl(element){const descriptor=getSignatureControlDescriptor(element);if(!descriptor)return false;const clearKeywords=[\"clear\",\"discard\",\"reset\",\"erase\",\"delete\",\"remove\",\"undo\",\"trash\",\"bin\"];return clearKeywords.some(keyword=>descriptor.includes(keyword));}function findBestSignatureUploadButton(root){const canvas=root.querySelector(\"canvas\");if(!canvas)return null;const canvasRect=canvas.getBoundingClientRect();if(canvasRect.width<=0||canvasRect.height<=0)return null;const candidates=root.querySelectorAll('button, [role=\"button\"], input[type=\"button\"], input[type=\"submit\"]');const nearBottomRight=[];for(const candidate of candidates){if(!isElementVisibleAndEnabled(candidate))continue;const rect=candidate.getBoundingClientRect();const inHorizontalBand=rect.left>=canvasRect.left-24&&rect.right<=canvasRect.right+40&&rect.left>=canvasRect.left+canvasRect.width*.45;const inVerticalBand=rect.top>=canvasRect.top+canvasRect.height*.45&&rect.bottom<=canvasRect.bottom+44;if(!inHorizontalBand||!inVerticalBand)continue;const horizontalDistance=Math.abs(canvasRect.right-rect.right);const verticalDistance=Math.abs(canvasRect.bottom-rect.bottom);const nearScore=300-(horizontalDistance+verticalDistance);const descriptor=getSignatureControlDescriptor(candidate);const positiveBoost=descriptor.includes(\"upload\")||descriptor.includes(\"save\")||descriptor.includes(\"submit\")?40:0;const clearPenalty=isClearLikeSignatureControl(candidate)?-200:0;nearBottomRight.push({element:candidate,rect,score:nearScore+positiveBoost+clearPenalty});}if(nearBottomRight.length===0)return null;const nonClearCandidates=nearBottomRight.filter(entry=>!isClearLikeSignatureControl(entry.element));const preferred=nonClearCandidates.length>0?nonClearCandidates:nearBottomRight;preferred.sort((a,b)=>{if(b.rect.right!==a.rect.right)return b.rect.right-a.rect.right;if(b.rect.bottom!==a.rect.bottom)return b.rect.bottom-a.rect.bottom;return b.score-a.score;});return preferred[0]?.element??null;}function findSignatureUploadActionForHighlight(root){const canvas=root.querySelector(\"canvas\");if(!canvas)return null;const canvasRect=canvas.getBoundingClientRect();if(canvasRect.width<=0||canvasRect.height<=0)return null;const candidates=root.querySelectorAll('button, [role=\"button\"], input[type=\"button\"], input[type=\"submit\"]');const scored=[];for(const candidate of candidates){if(!isElementVisibleAndEnabled(candidate))continue;if(isClearLikeSignatureControl(candidate))continue;const rect=candidate.getBoundingClientRect();const inHorizontalBand=rect.left>=canvasRect.left-24&&rect.right<=canvasRect.right+40&&rect.left>=canvasRect.left+canvasRect.width*.45;const inVerticalBand=rect.top>=canvasRect.top+canvasRect.height*.45&&rect.bottom<=canvasRect.bottom+44;if(!inHorizontalBand||!inVerticalBand)continue;const descriptor=getSignatureControlDescriptor(candidate);const uploadCue=descriptor.includes(\"upload\")||descriptor.includes(\"save\")||descriptor.includes(\"submit signature\")||descriptor.includes(\"signature upload\");const horizontalDistance=Math.abs(canvasRect.right-rect.right);const verticalDistance=Math.abs(canvasRect.bottom-rect.bottom);let score=320-(horizontalDistance+verticalDistance);if(uploadCue)score+=80;scored.push({element:candidate,descriptor,rect,score});}if(scored.length===0)return null;const withUploadCue=scored.filter(entry=>entry.descriptor.includes(\"upload\")||entry.descriptor.includes(\"save\")||entry.descriptor.includes(\"submit signature\")||entry.descriptor.includes(\"signature upload\"));const pool=withUploadCue.length>0?withUploadCue:scored;pool.sort((a,b)=>{if(b.rect.right!==a.rect.right)return b.rect.right-a.rect.right;if(b.rect.bottom!==a.rect.bottom)return b.rect.bottom-a.rect.bottom;return b.score-a.score;});return pool[0]?.element??null;}function readSignatureUploadFeedback(root){const feedbackElements=root.querySelectorAll('[aria-live], [role=\"status\"], [data-status], [data-state], [class], [title]');let haystack=(root.textContent??\"\").toLowerCase();feedbackElements.forEach(element=>{haystack+=` ${element.className??\"\"}`;haystack+=` ${element.getAttribute(\"data-status\")??\"\"}`;haystack+=` ${element.getAttribute(\"data-state\")??\"\"}`;haystack+=` ${element.getAttribute(\"title\")??\"\"}`;haystack+=` ${element.getAttribute(\"aria-label\")??\"\"}`;haystack+=` ${element.textContent??\"\"}`;});const normalized=haystack.replace(/\\s+/g,\" \").trim();if(normalized.includes(\"error\")||normalized.includes(\"failed\")||normalized.includes(\"failure\")||normalized.includes(\"try again\")||normalized.includes(\"retry\")){return\"error\";}if(normalized.includes(\"uploaded\")||normalized.includes(\"saved\")||normalized.includes(\"success\")||normalized.includes(\"completed\")){return\"success\";}if(normalized.includes(\"uploading\")||normalized.includes(\"saving\")||normalized.includes(\"processing\")||normalized.includes(\"loading\")){return\"saving\";}return null;}function isLikelyAssessmentSubmitControl(element,form){if(!(element instanceof HTMLElement))return false;if(!form)return false;if(!form.contains(element)&&element.getAttribute(\"form\")!==form.id){return false;}if(!isElementVisibleAndEnabled(element))return false;const descriptor=getSignatureControlDescriptor(element);const hasSubmitWords=descriptor.includes(\"submit assessment request\")||descriptor.includes(\"submit request\")||descriptor.includes(\"assessment request\")||descriptor.includes(\"submit\");if(element instanceof HTMLInputElement){if(element.type===\"submit\")return true;return element.type===\"button\"&&hasSubmitWords;}if(element instanceof HTMLButtonElement){const buttonType=(element.getAttribute(\"type\")||\"submit\").toLowerCase();if(buttonType===\"submit\")return true;return buttonType===\"button\"&&hasSubmitWords;}return element.getAttribute(\"role\")===\"button\"&&hasSubmitWords;}export function withAutoUploadSignature(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const observerRef=useRef(null);const statusResetTimerRef=useRef(null);const debounceTimerRef=useRef(null);const uploadTimeoutRef=useRef(null);const drawSequenceRef=useRef(0);const uploadedSequenceRef=useRef(0);const confirmedSequenceRef=useRef(0);const uploadInFlightRef=useRef(false);const pendingSubmitRef=useRef(null);const isResubmittingRef=useRef(false);const[statusMessage,setStatusMessage]=useState(\"\");const setStatus=useCallback(message=>{startTransition(()=>{setStatusMessage(message);});},[]);const clearAllTimers=useCallback(()=>{if(typeof window===\"undefined\")return;if(debounceTimerRef.current!==null){window.clearTimeout(debounceTimerRef.current);debounceTimerRef.current=null;}if(uploadTimeoutRef.current!==null){window.clearTimeout(uploadTimeoutRef.current);uploadTimeoutRef.current=null;}if(statusResetTimerRef.current!==null){window.clearTimeout(statusResetTimerRef.current);statusResetTimerRef.current=null;}},[]);const resumePendingSubmit=useCallback(()=>{if(typeof window===\"undefined\")return;const pending=pendingSubmitRef.current;if(!pending)return;pendingSubmitRef.current=null;if(!pending.form.isConnected)return;isResubmittingRef.current=true;try{if(pending.submitter&&pending.submitter instanceof HTMLElement&&pending.submitter.isConnected){pending.submitter.click();return;}if(typeof pending.form.requestSubmit===\"function\"){pending.form.requestSubmit();}else{const fallbackSubmitter=document.createElement(\"button\");fallbackSubmitter.type=\"submit\";fallbackSubmitter.hidden=true;pending.form.appendChild(fallbackSubmitter);fallbackSubmitter.click();pending.form.removeChild(fallbackSubmitter);}}finally{window.setTimeout(()=>{isResubmittingRef.current=false;},0);}},[]);const handleUploadResult=useCallback(result=>{if(typeof window===\"undefined\")return;uploadInFlightRef.current=false;if(uploadTimeoutRef.current!==null){window.clearTimeout(uploadTimeoutRef.current);uploadTimeoutRef.current=null;}if(result===\"success\"){confirmedSequenceRef.current=Math.max(confirmedSequenceRef.current,uploadedSequenceRef.current);setStatus(\"Signature saved\");if(statusResetTimerRef.current!==null){window.clearTimeout(statusResetTimerRef.current);}statusResetTimerRef.current=window.setTimeout(()=>{statusResetTimerRef.current=null;setStatus(\"\");},1800);resumePendingSubmit();return;}setStatus(\"Signature not saved. Please try again.\");},[resumePendingSubmit,setStatus]);const triggerUpload=useCallback(()=>{if(typeof window===\"undefined\")return false;if(uploadInFlightRef.current)return false;const host=hostRef.current;if(!host)return false;if(drawSequenceRef.current<=confirmedSequenceRef.current)return false;const uploadButton=findBestSignatureUploadButton(host);if(!uploadButton)return false;uploadInFlightRef.current=true;uploadedSequenceRef.current=Math.max(uploadedSequenceRef.current,drawSequenceRef.current);setStatus(\"Saving signature…\");uploadButton.click();if(uploadTimeoutRef.current!==null){window.clearTimeout(uploadTimeoutRef.current);}uploadTimeoutRef.current=window.setTimeout(()=>{uploadTimeoutRef.current=null;handleUploadResult(\"error\");},4e3);return true;},[handleUploadResult,setStatus]);const queueUploadAttempt=useCallback(()=>{if(typeof window===\"undefined\")return;if(debounceTimerRef.current!==null){window.clearTimeout(debounceTimerRef.current);}const pendingSequence=drawSequenceRef.current;debounceTimerRef.current=window.setTimeout(()=>{debounceTimerRef.current=null;if(pendingSequence<=uploadedSequenceRef.current)return;triggerUpload();},80);},[triggerUpload]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}const host=hostRef.current;if(!host)return;const statusNode=document.createElement(\"div\");statusNode.setAttribute(\"role\",\"status\");statusNode.setAttribute(\"aria-live\",\"polite\");statusNode.style.position=\"absolute\";statusNode.style.left=\"0\";statusNode.style.top=\"100%\";statusNode.style.marginTop=\"8px\";statusNode.style.fontSize=\"12px\";statusNode.style.lineHeight=\"1.3\";statusNode.style.color=\"#666666\";statusNode.style.pointerEvents=\"none\";statusNode.style.whiteSpace=\"nowrap\";statusNode.style.opacity=\"0\";statusNode.style.transition=\"opacity 0.2s ease\";host.appendChild(statusNode);const drawEndHandler=event=>{const target=event.target;if(!(target instanceof Element))return;if(!host.contains(target))return;const signatureCanvas=target.closest(\"canvas\");if(!signatureCanvas&&!host.querySelector(\"canvas\"))return;drawSequenceRef.current+=1;if(statusResetTimerRef.current!==null){window.clearTimeout(statusResetTimerRef.current);statusResetTimerRef.current=null;}setStatus(\"\");queueUploadAttempt();};const clickGuardHandler=event=>{const target=event.target;if(!(target instanceof Element))return;if(!host.contains(target))return;const actionControl=target.closest('button, [role=\"button\"], input[type=\"button\"], input[type=\"submit\"]');if(!actionControl)return;if(isClearLikeSignatureControl(actionControl)){uploadedSequenceRef.current=0;confirmedSequenceRef.current=0;drawSequenceRef.current=0;uploadInFlightRef.current=false;pendingSubmitRef.current=null;setStatus(\"\");clearAllTimers();}};const formEl=host.closest(\"form\");const interceptSubmitActivation=event=>{if(isResubmittingRef.current)return;if(!formEl)return;const target=event.target;if(!(target instanceof Element))return;const submitControl=target.closest('button, input[type=\"submit\"], input[type=\"button\"], [role=\"button\"]');if(!submitControl)return;if(!isLikelyAssessmentSubmitControl(submitControl,formEl))return;const needsSignatureConfirmation=drawSequenceRef.current>confirmedSequenceRef.current;if(!uploadInFlightRef.current&&!needsSignatureConfirmation)return;event.preventDefault();event.stopPropagation();pendingSubmitRef.current={form:formEl,submitter:submitControl instanceof HTMLElement?submitControl:null};if(!uploadInFlightRef.current){const didTrigger=triggerUpload();if(!didTrigger){pendingSubmitRef.current=null;setStatus(\"Signature not saved. Please try again.\");}}};const submitHandler=event=>{if(isResubmittingRef.current)return;if(!(event.target instanceof HTMLFormElement))return;if(event.target!==formEl)return;const needsSignatureConfirmation=drawSequenceRef.current>confirmedSequenceRef.current;if(!uploadInFlightRef.current&&!needsSignatureConfirmation)return;const submitEvent=event;const submitter=submitEvent.submitter instanceof HTMLElement?submitEvent.submitter:null;event.preventDefault();pendingSubmitRef.current={form:event.target,submitter};if(!uploadInFlightRef.current){const didTrigger=triggerUpload();if(!didTrigger){pendingSubmitRef.current=null;}}};const feedbackObserver=new MutationObserver(()=>{if(!uploadInFlightRef.current)return;const feedback=readSignatureUploadFeedback(host);if(feedback===\"error\"){handleUploadResult(\"error\");return;}if(feedback===\"success\"){handleUploadResult(\"success\");return;}if(feedback===\"saving\"){setStatus(\"Saving signature…\");}});feedbackObserver.observe(host,{childList:true,subtree:true,attributes:true,attributeFilter:[\"class\",\"aria-label\",\"title\",\"data-status\",\"data-state\",\"aria-live\"]});observerRef.current=feedbackObserver;host.addEventListener(\"pointerup\",drawEndHandler,true);host.addEventListener(\"mouseup\",drawEndHandler,true);host.addEventListener(\"touchend\",drawEndHandler,true);host.addEventListener(\"click\",clickGuardHandler,true);if(formEl){formEl.addEventListener(\"pointerdown\",interceptSubmitActivation,true);formEl.addEventListener(\"click\",interceptSubmitActivation,true);formEl.addEventListener(\"submit\",submitHandler,true);}return()=>{host.removeEventListener(\"pointerup\",drawEndHandler,true);host.removeEventListener(\"mouseup\",drawEndHandler,true);host.removeEventListener(\"touchend\",drawEndHandler,true);host.removeEventListener(\"click\",clickGuardHandler,true);if(formEl){formEl.removeEventListener(\"pointerdown\",interceptSubmitActivation,true);formEl.removeEventListener(\"click\",interceptSubmitActivation,true);formEl.removeEventListener(\"submit\",submitHandler,true);}if(observerRef.current){observerRef.current.disconnect();observerRef.current=null;}if(statusNode.parentElement){statusNode.parentElement.removeChild(statusNode);}clearAllTimers();};},[clearAllTimers,handleUploadResult,queueUploadAttempt,setStatus,triggerUpload]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}const host=hostRef.current;if(!host)return;const statusNode=host.querySelector('[role=\"status\"][aria-live=\"polite\"]');if(!statusNode)return;statusNode.textContent=statusMessage;statusNode.style.opacity=statusMessage?\"1\":\"0\";},[statusMessage]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}},style:{...props?.style,position:props?.style?.position||\"relative\",overflow:props?.style?.overflow||\"visible\"}});});}export function withHighlightSignatureUpload(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const DEFAULT_HINT_COPY=\"Click the upload icon to confirm your signature.\";const SUBMIT_HINT_COPY=\"Click the gold upload icon below to confirm your signature before submitting.\";const hostRef=useRef(null);const highlightedButtonRef=useRef(null);const pulseAnimationRef=useRef(null);const hintNodeRef=useRef(null);const hostOriginalPositionRef=useRef(null);const hostPositionAdjustedRef=useRef(false);const hintModeRef=useRef(\"default\");const originalStyleRef=useRef(null);const originalA11yRef=useRef(null);const observerRef=useRef(null);const hasSignatureRef=useRef(false);const hideHint=useCallback(()=>{const hintNode=hintNodeRef.current;if(hintNode&&hintNode.parentElement){hintNode.parentElement.removeChild(hintNode);}hintNodeRef.current=null;},[]);const showHint=useCallback(copy=>{const host=hostRef.current;if(!host)return;const canvas=host.querySelector(\"canvas\");if(!canvas)return;const hostComputedStyle=window.getComputedStyle(host);if(hostComputedStyle.position===\"static\"){if(!hostPositionAdjustedRef.current){hostOriginalPositionRef.current=host.style.position;host.style.position=\"relative\";hostPositionAdjustedRef.current=true;}}const hostRect=host.getBoundingClientRect();const canvasRect=canvas.getBoundingClientRect();const topOffset=canvasRect.bottom-hostRect.top+8;const leftOffset=Math.max(0,canvasRect.left-hostRect.left);const maxWidth=Math.max(160,canvasRect.width);let hintNode=hintNodeRef.current;if(!hintNode){hintNode=document.createElement(\"div\");hintNode.setAttribute(\"role\",\"status\");hintNode.setAttribute(\"aria-live\",\"polite\");hintNode.style.position=\"absolute\";hintNode.style.pointerEvents=\"none\";hintNode.style.zIndex=\"2\";hintNode.style.fontSize=\"12px\";hintNode.style.lineHeight=\"1.35\";hintNode.style.color=\"#6A6A6A\";hintNode.style.display=\"flex\";hintNode.style.alignItems=\"center\";hintNode.style.gap=\"6px\";hintNode.style.whiteSpace=\"normal\";hintNode.style.background=\"transparent\";hintNode.textContent=copy;host.appendChild(hintNode);hintNodeRef.current=hintNode;}if(hintNode.textContent!==copy){hintNode.textContent=copy;}hintNode.style.left=`${leftOffset}px`;hintNode.style.top=`${topOffset}px`;hintNode.style.maxWidth=`${maxWidth}px`;},[]);const clearHighlight=useCallback(()=>{const button=highlightedButtonRef.current;hideHint();if(!button)return;if(pulseAnimationRef.current){pulseAnimationRef.current.cancel();pulseAnimationRef.current=null;}const originalStyle=originalStyleRef.current;if(originalStyle){button.style.boxShadow=originalStyle.boxShadow;button.style.outline=originalStyle.outline;button.style.outlineOffset=originalStyle.outlineOffset;button.style.transition=originalStyle.transition;}originalStyleRef.current=null;const originalA11y=originalA11yRef.current;if(originalA11y){if(!originalA11y.hadAriaLabel){button.removeAttribute(\"aria-label\");}else if(originalA11y.ariaLabel!==null){button.setAttribute(\"aria-label\",originalA11y.ariaLabel);}if(!originalA11y.hadTitle){button.removeAttribute(\"title\");}else if(originalA11y.title!==null){button.setAttribute(\"title\",originalA11y.title);}}originalA11yRef.current=null;highlightedButtonRef.current=null;},[]);const isCanvasDrawn=useCallback(canvas=>{const context=canvas.getContext(\"2d\",{willReadFrequently:true});if(!context)return false;try{const width=Math.max(1,Math.floor(canvas.width||0));const height=Math.max(1,Math.floor(canvas.height||0));if(width<=0||height<=0)return false;const imageData=context.getImageData(0,0,width,height).data;const totalPixels=width*height;const sampleStride=Math.max(1,Math.floor(Math.sqrt(totalPixels/6e3)));const dominantBuckets=new Map;let sampledPixels=0;let nonTransparentSamples=0;let transparentSamples=0;for(let y=0;y<height;y+=sampleStride){for(let x=0;x<width;x+=sampleStride){const index=(y*width+x)*4;const alpha=imageData[index+3];sampledPixels+=1;if(alpha<=8){transparentSamples+=1;continue;}nonTransparentSamples+=1;const rBucket=Math.round(imageData[index]/16);const gBucket=Math.round(imageData[index+1]/16);const bBucket=Math.round(imageData[index+2]/16);const key=rBucket<<8|gBucket<<4|bBucket;dominantBuckets.set(key,(dominantBuckets.get(key)??0)+1);}}if(nonTransparentSamples===0)return false;// Transparent-canvas safe path:\n// if the canvas is mostly transparent but has some painted pixels, treat as drawn.\nif(transparentSamples/Math.max(1,sampledPixels)>.9&&nonTransparentSamples>0){return true;}let dominantKey=0;let dominantCount=0;dominantBuckets.forEach((count,key)=>{if(count>dominantCount){dominantCount=count;dominantKey=key;}});const dominantR=(dominantKey>>8&15)*16;const dominantG=(dominantKey>>4&15)*16;const dominantB=(dominantKey&15)*16;let contrastingSamples=0;for(let y=0;y<height;y+=sampleStride){for(let x=0;x<width;x+=sampleStride){const index=(y*width+x)*4;const alpha=imageData[index+3];if(alpha<=8)continue;const r=imageData[index];const g=imageData[index+1];const b=imageData[index+2];const colorDistance=Math.abs(r-dominantR)+Math.abs(g-dominantG)+Math.abs(b-dominantB);if(colorDistance>72){contrastingSamples+=1;}}}const contrastRatio=contrastingSamples/Math.max(1,nonTransparentSamples);return contrastingSamples>=12||contrastRatio>=.003;}catch(error){return false;}},[]);const applyHighlight=useCallback(()=>{const host=hostRef.current;if(!host)return;const targetButton=findSignatureUploadActionForHighlight(host);if(!targetButton){clearHighlight();return;}if(highlightedButtonRef.current!==targetButton){clearHighlight();highlightedButtonRef.current=targetButton;originalStyleRef.current={boxShadow:targetButton.style.boxShadow,outline:targetButton.style.outline,outlineOffset:targetButton.style.outlineOffset,transition:targetButton.style.transition};originalA11yRef.current={hadAriaLabel:targetButton.hasAttribute(\"aria-label\"),ariaLabel:targetButton.getAttribute(\"aria-label\"),hadTitle:targetButton.hasAttribute(\"title\"),title:targetButton.getAttribute(\"title\")};}if(!targetButton.getAttribute(\"aria-label\")){targetButton.setAttribute(\"aria-label\",\"Upload signature\");}if(!targetButton.getAttribute(\"title\")){targetButton.setAttribute(\"title\",\"Upload signature\");}targetButton.style.transition=targetButton.style.transition?`${targetButton.style.transition}, box-shadow 220ms ease, outline-color 220ms ease`:\"box-shadow 220ms ease, outline-color 220ms ease\";targetButton.style.outline=\"1px solid rgba(201, 166, 78, 0.7)\";targetButton.style.outlineOffset=\"1px\";targetButton.style.boxShadow=\"0 0 0 2px rgba(201, 166, 78, 0.45), 0 0 12px rgba(201, 166, 78, 0.35)\";showHint(hintModeRef.current===\"submit\"?SUBMIT_HINT_COPY:DEFAULT_HINT_COPY);if(pulseAnimationRef.current){pulseAnimationRef.current.cancel();pulseAnimationRef.current=null;}if(typeof targetButton.animate===\"function\"){pulseAnimationRef.current=targetButton.animate([{boxShadow:\"0 0 0 2px rgba(201, 166, 78, 0.35), 0 0 8px rgba(201, 166, 78, 0.20)\",transform:\"translateZ(0)\"},{boxShadow:\"0 0 0 2px rgba(201, 166, 78, 0.55), 0 0 16px rgba(201, 166, 78, 0.45)\",transform:\"translateZ(0)\"},{boxShadow:\"0 0 0 2px rgba(201, 166, 78, 0.35), 0 0 8px rgba(201, 166, 78, 0.20)\",transform:\"translateZ(0)\"}],{duration:1800,iterations:Number.POSITIVE_INFINITY,easing:\"ease-in-out\"});}},[DEFAULT_HINT_COPY,SUBMIT_HINT_COPY,clearHighlight,showHint]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}const host=hostRef.current;if(!host)return;const onDrawEnd=event=>{const target=event.target;if(!(target instanceof Element))return;if(!host.contains(target))return;const canvas=target.closest(\"canvas\")||host.querySelector(\"canvas\");if(!canvas)return;const drawn=isCanvasDrawn(canvas);hasSignatureRef.current=drawn;if(drawn){hintModeRef.current=\"default\";applyHighlight();}else clearHighlight();};const onActionClick=event=>{const target=event.target;if(!(target instanceof Element))return;if(!host.contains(target))return;const action=target.closest('button, [role=\"button\"], input[type=\"button\"], input[type=\"submit\"]');if(!action)return;if(isClearLikeSignatureControl(action)){hasSignatureRef.current=false;hintModeRef.current=\"default\";clearHighlight();}};const formEl=host.closest(\"form\");const onSubmitAttemptClick=event=>{if(!formEl)return;if(!hasSignatureRef.current)return;const target=event.target;if(!(target instanceof Element))return;const submitControl=target.closest('button, input[type=\"submit\"], input[type=\"button\"], [role=\"button\"]');if(!submitControl)return;if(host.contains(submitControl)||isClearLikeSignatureControl(submitControl)){return;}if(!isLikelyAssessmentSubmitControl(submitControl,formEl))return;event.preventDefault();event.stopPropagation();hintModeRef.current=\"submit\";applyHighlight();host.scrollIntoView({behavior:\"smooth\",block:\"center\"});if(typeof formEl.reportValidity===\"function\"){formEl.reportValidity();}};const onSubmitAttemptSubmit=event=>{if(!formEl)return;if(!hasSignatureRef.current)return;if(!(event.target instanceof HTMLFormElement))return;if(event.target!==formEl)return;const submitEvent=event;const submitter=submitEvent.submitter;if(submitter instanceof HTMLElement&&host.contains(submitter)){return;}event.preventDefault();hintModeRef.current=\"submit\";applyHighlight();host.scrollIntoView({behavior:\"smooth\",block:\"center\"});if(typeof formEl.reportValidity===\"function\"){formEl.reportValidity();}};const feedbackObserver=new MutationObserver(()=>{if(!hasSignatureRef.current)return;const feedback=readSignatureUploadFeedback(host);if(feedback===\"success\"){hasSignatureRef.current=false;clearHighlight();}});feedbackObserver.observe(host,{childList:true,subtree:true,attributes:true,attributeFilter:[\"class\",\"aria-label\",\"title\",\"data-status\",\"data-state\",\"aria-live\"]});observerRef.current=feedbackObserver;host.addEventListener(\"pointerup\",onDrawEnd,true);host.addEventListener(\"mouseup\",onDrawEnd,true);host.addEventListener(\"touchend\",onDrawEnd,true);host.addEventListener(\"click\",onActionClick,true);if(formEl){formEl.addEventListener(\"click\",onSubmitAttemptClick,true);formEl.addEventListener(\"submit\",onSubmitAttemptSubmit,true);}return()=>{host.removeEventListener(\"pointerup\",onDrawEnd,true);host.removeEventListener(\"mouseup\",onDrawEnd,true);host.removeEventListener(\"touchend\",onDrawEnd,true);host.removeEventListener(\"click\",onActionClick,true);if(formEl){formEl.removeEventListener(\"click\",onSubmitAttemptClick,true);formEl.removeEventListener(\"submit\",onSubmitAttemptSubmit,true);}if(observerRef.current){observerRef.current.disconnect();observerRef.current=null;}clearHighlight();hideHint();if(hostPositionAdjustedRef.current){host.style.position=hostOriginalPositionRef.current??\"\";hostPositionAdjustedRef.current=false;hostOriginalPositionRef.current=null;}};},[applyHighlight,clearHighlight,hideHint,isCanvasDrawn]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAutoUploadSignature\":{\"type\":\"reactHoc\",\"name\":\"withAutoUploadSignature\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAssessmentQuotePurityPrefill\":{\"type\":\"reactHoc\",\"name\":\"withAssessmentQuotePurityPrefill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInstantGoldQuoteButtonLabel\":{\"type\":\"reactHoc\",\"name\":\"withInstantGoldQuoteButtonLabel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInstantQuoteAssessmentPrefill\":{\"type\":\"reactHoc\",\"name\":\"withInstantQuoteAssessmentPrefill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInstantGoldQuoteResult\":{\"type\":\"reactHoc\",\"name\":\"withInstantGoldQuoteResult\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAustralianPhoneContrast\":{\"type\":\"reactHoc\",\"name\":\"withAustralianPhoneContrast\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAssessmentQuoteWeightPrefill\":{\"type\":\"reactHoc\",\"name\":\"withAssessmentQuoteWeightPrefill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAssessmentQuotePhonePrefill\":{\"type\":\"reactHoc\",\"name\":\"withAssessmentQuotePhonePrefill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInstantGoldQuoteButton\":{\"type\":\"reactHoc\",\"name\":\"withInstantGoldQuoteButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHighlightSignatureUpload\":{\"type\":\"reactHoc\",\"name\":\"withHighlightSignatureUpload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInstantGoldQuote\":{\"type\":\"reactHoc\",\"name\":\"withInstantGoldQuote\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"4NAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,CAAC,C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