{"version":3,"file":"PreDemoHubspotForm.DPVMgrgd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/P4D8iwAoR43aZZrSc3my/UewtGymHaYaovdPF6N6Q/PreDemoHubspotForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{emailIsValid}from\"https://framerusercontent.com/modules/msoNJauJPf3u5kqVzgyR/Xl6AeSalTVeZ6WZyYqsD/ShareData.js\";import{emailIsValidWithExtension}from\"https://framerusercontent.com/modules/MTh2DgZ0IDZLVrDCHSw0/rXl9aNg8WnnmbVMnMzrd/SignUpForm.js\";// Learn more: https://www.framer.com/developers/overrides/\nconst portalId=\"6917454\";const formId=\"81217d6e-cfef-4220-b738-6518e4114d87\"// https://app.hubspot.com/forms/6917454/new-editor/81217d6e-cfef-4220-b738-6518e4114d87?panel=fieldWidget&panelElementId=2745690846601\n;const initialStoreValues={isValid:false};const usePreSaleFormStore=createStore(initialStoreValues);const getCookie=()=>{const cookies=window.document.cookie.split(\";\");let value=null;for(let i=0;i<cookies.length;i++){const cookie=cookies[i].trim();if(cookie.startsWith(\"hubspotutk=\")){const cookieValue=cookie.substring(\"hubspotutk=\".length);value=cookieValue;}}return value;};const togglePreSaleHubspotFormThankYouWrapper=({show=false})=>{const wrapper=document.querySelector(\"#presale-hubspot-form-thank-you-wrapper\");if(wrapper){if(show){wrapper.parentElement.style.display=\"block\";wrapper.style.display=\"flex\";wrapper?.classList?.add(\"show\");}else{wrapper.parentElement.style.display=\"none\";wrapper.style.display=\"none\";wrapper?.classList?.remove(\"show\");}}};const showErrorMessageText=({target=null,text=\"\",autoHide=false}={})=>{if(!target){const errorEle=document.querySelectorAll(\".presale-hubspot-form-error\");errorEle.forEach(e=>{e.parentElement.style.display=\"none\";e.style.display=\"none\";e.querySelector(\".framer-text\").innerHTML=\"\";});return;}const ele=target.querySelector(\".presale-hubspot-form-error\");if(ele){ele.parentElement.style.display=\"flex\";ele.style.display=\"flex\";ele.querySelector(\".framer-text\").innerHTML=text;if(autoHide)setTimeout(()=>{ele.parentElement.style.display=\"none\";ele.style.display=\"none\";ele.querySelector(\".framer-text\").innerHTML=\"\";},1e4);if(!text){ele.parentElement.style.display=\"none\";ele.style.display=\"none\";}}};const KEYS_THAT_ARE_ARRAY=[\"product_categories_interested_in\",\"product_placement\",\"ecommerce_platform\",\"user_license_count\",\"n3d_models_creation_required_\",\"texture_scanning_required_\"];// Add all you new company properties\nconst COMPANY_PROPERTIES=[\"product_categories_interested_in\",\"n3d_models_creation_required_\",\"product_count\",\"texture_scanning_required_\",\"user_license_count\",\"in_house_creative_time_available\",\"styling_services_required\",\"new_products_frequency\",\"product_placement\",\"ecommerce_platform\",\"website_embed\"];const getObjectTypeId=(name=\"\")=>{// doc for reference - https://community.hubspot.com/t5/APIs-Integrations/Form-submission-error-when-form-contains-company-property/m-p/766283\nif(name&&COMPANY_PROPERTIES.includes(name))return\"0-2\"// company properties type id, this is required to send company property in this API\n;return\"0-1\"// contact properties type id\n;};const toggleSubmitButtonText=({target=null,submitting=false})=>{if(!target){const btns=document.querySelector(\".presale-hubspot-form-button\");if(btns?.length>0){btns.forEach(b=>{if(b.getAttribute(\"data-previous-text\")){b.querySelector(\".framer-text\").innerText=b.getAttribute(\"data-previous-text\");}});}return;}const btn=target?.querySelector(\".presale-hubspot-form-button\");if(btn){if(submitting){btn.disabled=true;btn.querySelector(\".framer-text\").innerHTML=\"Submitting. Please wait...\";}else{btn.disabled=false;btn.querySelector(\".framer-text\").innerHTML=btn.getAttribute(\"data-previous-text\")||\"Submit\";}}};const sendDataToHubspot=async({values,target})=>{if(!values||!portalId||!formId){console.error(\"Missing values, portalId / formId\");showErrorMessageText({target,text:\"Missing values, portalId / formId\"});return;}try{const data={fields:Object.entries(values).map(([name,value])=>({name,value,objectTypeId:getObjectTypeId(name)})).filter(f=>f.value),context:{hutk:getCookie(),pageUri:location.href,pageName:document.title}};const response=await fetch(`https://api.hsforms.com/submissions/v3/integration/submit/${portalId}/${formId}`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(data)});toggleSubmitButtonText({target:target,submitting:false});if(!response.ok){showErrorMessageText({target,text:`HubSpot API Error: ${response.status}`});throw new Error(`HubSpot API Error: ${response.status}`);return;}togglePreSaleHubspotFormThankYouWrapper({show:true});console.log(\"HubSpot form submitted!\",await response.json());}catch(error){toggleSubmitButtonText({target:target,submitting:false});showErrorMessageText({target,text:\"Unable to Submitted the form! Please try again later!\"});console.error(error);}};const REQUIRED_FIELDS=[\"email\"]// required fields\n;function validateRequiredFields({form=null,showError=false,actionType=null}={}){let isValid=true;const inputs=form?Array.from(new Map(Array.from(form.querySelectorAll(\"input, select, textarea\")).filter(field=>field.name&&REQUIRED_FIELDS.includes(field.name)).map(field=>[field.name,field])// key = name, value = field\n).values()):[];inputs.forEach(field=>{const fieldName=field.name;const fieldType=field.type;const fieldContainerElement=field?.closest(\".presale-hubspot-form-field-container\");const fieldLabelElement=fieldContainerElement?.querySelector(\".presale-hubspot-form-label\");const fieldLabelTextElement=fieldContainerElement?.querySelector(\".presale-hubspot-form-label .framer-text\");if(fieldLabelElement?.getAttribute(\"data-previous-text\")&&fieldLabelTextElement){fieldLabelTextElement.style.color=\"#272828\";fieldLabelTextElement.innerText=fieldLabelElement?.getAttribute(\"data-previous-text\");}// Handle text inputs (text, email, tel, number, textarea)\nif([\"text\",\"email\",\"tel\",\"number\",\"textarea\"].includes(fieldType)){if(field.value.trim()===\"\"&&actionType===\"blur\"){if(showError&&fieldLabelTextElement){fieldLabelTextElement.style.color=\"#ff0000\";fieldLabelTextElement.innerText=\"This field is required\";}isValid=false;// console.log(`${fieldName} is required but empty.`)\n}else if(field.value){if(fieldType===\"email\"){if(!emailIsValid(field.value)){if(showError&&fieldLabelTextElement){fieldLabelTextElement.style.color=\"#ff0000\";fieldLabelTextElement.innerText=\"Invalid email!\";}isValid=false;}else if(!emailIsValidWithExtension(field.value)){if(showError&&fieldLabelTextElement){fieldLabelTextElement.style.color=\"#ff0000\";fieldLabelTextElement.innerText=\"Use a business email only\";}isValid=false;}}else if(fieldType===\"number\"){if(field.value<1&&fieldLabelTextElement){fieldLabelTextElement.style.color=\"#ff0000\";fieldLabelTextElement.innerText=\"Value can't be zero or less.\";isValid=false;}}}}else if(fieldType===\"checkbox\"){const checkboxes=form.querySelectorAll(`[name=\"${fieldName}\"]`);const checked=Array.from(checkboxes).some(checkbox=>checkbox.checked);if(!checked){// if (showError && fieldLabelTextElement) {\n//     fieldLabelTextElement.style.color = \"#ff0000\"\n//     fieldLabelTextElement.innerText = \"This field is required\"\n// }\nisValid=false;// console.log(\n//     `${fieldName} (checkbox) is required but not checked.`\n// )\n}}else if(fieldType===\"radio\"){const radios=form.querySelectorAll(`[name=\"${fieldName}\"]`);const checked=Array.from(radios).some(radio=>radio.checked);if(!checked){// if (showError && fieldLabelTextElement) {\n//     fieldLabelTextElement.style.color = \"#ff0000\"\n//     fieldLabelTextElement.innerText = \"This field is required\"\n// }\nisValid=false;// console.log(\n//     `${fieldName} (radio button) is required but not selected.`\n// )\n}}else if(field.tagName.toLowerCase()===\"select\"){if(field.selectedIndex===0||field.value===\"\"){// if (showError && fieldLabelTextElement) {\n//     fieldLabelTextElement.style.color = \"#ff0000\"\n//     fieldLabelTextElement.innerText = \"This field is required\"\n// }\nisValid=false;// console.log(\n//     `${fieldName} (select) is required but no option is selected.`\n// )\n}}});if(!isValid){const button=document.querySelector(\".presale-hubspot-step-form-section-next-button\");if(button){button.disabled=true;button.style.pointerEvents=\"none\";button.parentElement.style.opacity=\"0.8\";button.parentElement.style.pointerEvents=\"none\";}}console.log(`debug___valid`,{isValid,inputs,form,REQUIRED_FIELDS});return isValid;}const shouldDisabledButton=({container=null,showError=false,actionType=null}={})=>{const containerElement=document.querySelector(\".presale-hubspot-form\");// container || document.querySelector(\".presale-hubspot-form\")\nconst button=document.querySelector(\".presale-hubspot-step-form-section-next-button\");showErrorMessageText();// i'm selecting the next button and enable/disabling based on the required fields not filled\nif(containerElement&&button){const activeSection=container||Array.from(containerElement.querySelectorAll(\".presale-hubspot-step-form-section\")).filter(s=>window.getComputedStyle(s).opacity===\"1\")?.[0]// .style.opacity === \"1\")?.[0]\n;if(activeSection&&validateRequiredFields({form:activeSection,showError,actionType})){button.disabled=false;button.style.pointerEvents=\"all\";button.parentElement.style.opacity=\"1\";button.parentElement.style.pointerEvents=\"all\";}else{// disabling the button if the data is not filled in the required fields\nbutton.disabled=true;button.style.pointerEvents=\"none\";button.parentElement.style.opacity=\"0.8\";button.parentElement.style.pointerEvents=\"none\";showError&&showErrorMessageText({target:containerElement,text:\"Please fill out all required fields.\"});}}};export function withPreSaleHubspotForm(Component){return props=>{useEffect(()=>{// here, adding an eventListerner to the input field of a form\n// and, based on the selection that is required or not i'm disabling/enabling the next button\nlet timerId=setTimeout(()=>shouldDisabledButton({showError:false}),100);const handleChange=()=>setTimeout(()=>shouldDisabledButton({showError:true,actionType:\"change\"}),100);const handleInput=()=>setTimeout(()=>shouldDisabledButton({showError:false,actionType:\"input\"}),100);const handleBlur=()=>setTimeout(()=>shouldDisabledButton({showError:true,actionType:\"blur\"}),100);const attachListenersToInputs=()=>{const form=document.querySelector(\".presale-hubspot-form\");if(form){const formElements=Array.from(form.querySelectorAll(\"input, select, textarea\"));if(formElements.length>0){formElements.forEach(ele=>{// Attach only if not already attached\nif(!ele.dataset.listenerAttached){ele.addEventListener(\"change\",handleChange);ele.addEventListener(\"input\",handleInput);ele.addEventListener(\"blur\",handleBlur);ele.dataset.listenerAttached=\"true\"// flag it\n;}});}}};// Watch for interactions anywhere on the page\nconst triggerOnAnyInput=()=>{attachListenersToInputs();};document.addEventListener(\"input\",triggerOnAnyInput);document.addEventListener(\"change\",triggerOnAnyInput);document.addEventListener(\"blur\",triggerOnAnyInput,true);// Attach once on load\nattachListenersToInputs();return()=>{document.removeEventListener(\"input\",triggerOnAnyInput);document.removeEventListener(\"change\",triggerOnAnyInput);document.removeEventListener(\"blur\",triggerOnAnyInput,true);const form=document.querySelector(\".presale-hubspot-form\");if(form){const formElements=Array.from(form.querySelectorAll(\"input, select, textarea\"));formElements.forEach(ele=>{if(ele.dataset.listenerAttached){ele.removeEventListener(\"change\",handleChange);ele.removeEventListener(\"input\",handleInput);ele.removeEventListener(\"blur\",handleBlur);delete ele.dataset.listenerAttached;}});}};},[]);if(!props?.className?.includes(\"presale-hubspot-form\")){props.className+=\" presale-hubspot-form\";}return /*#__PURE__*/_jsx(Component,{...props});};}export function withPreSaleHubspotFormButtonAddClass(Component){return props=>{const handleBtnClick=e=>{const currentUser=localStorage.getItem(\"current_user\")||null;const USER_DATA=currentUser?JSON.parse(currentUser):null;const user=USER_DATA?.user;showErrorMessageText()// resetting the error message\n;const form=e.target.closest(\"form\");const values={};const formData=new FormData(form);for(let[key,value]of formData.entries()){if(KEYS_THAT_ARE_ARRAY.includes(key)){if(values[key]){values[key]=`${values[key]}, ${value}`// appending the value if already set. this is for the multi options\n;}else{values[key]=value;}}else values[key]=value;// console.log(\"Values:\", { key, value, values })\n}const email=values?.email||new URLSearchParams(window.location.search)?.get(\"email\")||user?.email;if(!email){showErrorMessageText({target:form,text:\"Email is required!\"});return;}if(Object.keys(values)?.length>0&&validateRequiredFields({form,showError:true})){toggleSubmitButtonText({target:form,submitting:true});sendDataToHubspot({values:{email,...values},target:form});}else{showErrorMessageText({target:form,text:\"Please fill out all required fields.\"});}};useEffect(()=>{const button=document.querySelector(`.presale-hubspot-form-button`);if(button){button.addEventListener(\"click\",handleBtnClick);}return()=>{button?.removeEventListener(\"click\",handleBtnClick);};},[]);if(!props?.className?.includes(\"presale-hubspot-form-button\")){props.className+=\" presale-hubspot-form-button\";}return /*#__PURE__*/_jsx(Component,{...props});};}export function withPreSaleHubspotStepFormSection(Component){return props=>{if(!props?.className?.includes(\"presale-hubspot-step-form-section\")){props.className+=\" presale-hubspot-step-form-section\";}return /*#__PURE__*/_jsx(Component,{...props});};}// next button on the form\nexport function withPreSaleHubspotStepFormSectionButton(Component){return props=>{const handleClick=e=>{setTimeout(()=>{const form=document.querySelector(\".presale-hubspot-form\");const activeSection=Array.from(form.querySelectorAll(\".presale-hubspot-step-form-section\")).find(section=>window.getComputedStyle(section).opacity===\"1\");if(activeSection){shouldDisabledButton({container:activeSection});}},1e3);};if(!props?.className?.includes(\"presale-hubspot-step-form-section-next-button\")){props.className+=\" presale-hubspot-step-form-section-next-button\";}return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}// back button on the form\nexport function withPreSaleHubspotStepFormSectionBackButton(Component){return props=>{const handleClick=e=>{e.preventDefault();e.stopPropagation();showErrorMessageText();setTimeout(()=>shouldDisabledButton?.(),500);};if(!props?.className?.includes(\"presale-hubspot-step-form-section-back-button\")){props.className+=\" presale-hubspot-step-form-section-back-button\";}return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}export function withPreSaleHubspotFormEmail(Component){return props=>{useEffect(()=>{// here, if the email is in the params then getting it and setting it in the email input field and hiding the email field as we share the page url with email in the link to client directly\n// otherwise, show the input email field params doesn't have the email in it\nconst emailInParams=new URLSearchParams(window.location.search)?.get(\"email\");const emailWrapper=document.querySelector(\".presale-hubspot-form-field-container\");if(emailWrapper){const email=emailWrapper.querySelector(\"input\");if(!email?.value&&emailInParams){email.value=emailInParams;if(emailIsValid(emailInParams)&&emailIsValidWithExtension(emailInParams)){// emailWrapper.style.display = \"none\"\n}else{setTimeout(()=>shouldDisabledButton({showError:true}),500);}}else{// email.value = \"\"\n// emailWrapper.style.display = \"flex\"\n}}},[]);if(!props?.className?.includes(\"presale-hubspot-form-email\")){props.className+=\" presale-hubspot-form-email\";}return /*#__PURE__*/_jsx(Component,{...props});};}export function withPreSaleHubspotFormFieldContainerAddClass(Component){return props=>{if(!props?.className?.includes(\"presale-hubspot-form-field-container\")){props.className+=\" presale-hubspot-form-field-container\";}return /*#__PURE__*/_jsx(Component,{...props});};}export function withPreSaleHubspotFormLabelAddClass(Component){return props=>{useEffect(()=>{const elements=Array.from(document.querySelectorAll(\".presale-hubspot-form-label\"));if(elements?.length>0){elements.forEach(b=>b.setAttribute(\"data-previous-text\",b?.querySelector(\".framer-text\")?.innerText));}},[]);if(!props?.className?.includes(\"presale-hubspot-form-label\")){props.className+=\" presale-hubspot-form-label\";}return /*#__PURE__*/_jsx(Component,{...props});};}export function withPreSaleHubspotFormThankYouWrapperAddClass(Component){return props=>{const resetAllForms=()=>{const forms=Array.from(document.querySelectorAll(\".presale-hubspot-form\"));if(forms.length>0){forms.forEach(form=>{// toggleSubmitButtonText({ target: form, submitting: false })\nform.reset();// setTimeout(() => {\n// }, 500)\n});}};function handleOverlayClick(event,overlay){if(!event||!overlay)return;if(event?.target?.classList?.contains?.(\"presale-hubspot-form-thank-you-inner-wrapper\")||event?.target?.id===overlay?.id){overlay.style.display=\"none\"// Hide overlay\n;togglePreSaleHubspotFormThankYouWrapper({show:false});resetAllForms();window.location.reload();}}useEffect(()=>{const overlay=document.getElementById(\"presale-hubspot-form-thank-you-wrapper\");const handleOverlay=event=>handleOverlayClick(event,overlay);if(overlay){overlay.addEventListener(\"click\",handleOverlay);}return()=>{if(overlay){overlay.removeEventListener(\"click\",handleOverlay);}};},[]);useEffect(()=>{const wrapper=document.querySelector(\"#presale-hubspot-form-thank-you-wrapper\");if(wrapper){wrapper.parentElement.style.display=\"none\";wrapper.parentElement.style.width=\"auto\";}const innerWrapper=document.querySelector(\".presale-hubspot-form-thank-you-inner-wrapper\");if(innerWrapper){innerWrapper.style.maxWidth=\"348px\";}},[]);if(!props?.className?.includes(\"presale-hubspot-form-thank-you-inner-wrapper\")){props.className+=\" presale-hubspot-form-thank-you-inner-wrapper\";}return /*#__PURE__*/_jsx(\"div\",{id:\"presale-hubspot-form-thank-you-wrapper\",style:{position:\"fixed\",left:0,top:0,display:\"none\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",zIndex:100,background:\"rgba(0, 0, 0, 0.5)\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}export function withPreSaleHubspotFormErrorTextAddClass(Component){return props=>{useEffect(()=>{const ele=document.querySelector(\".presale-hubspot-form-error\");if(ele){ele.style.display=\"none\";ele.parentElement.style.display=\"none\";}},[]);if(!props?.className?.includes(\"presale-hubspot-form-error\")){props.className+=\" presale-hubspot-form-error\";}return /*#__PURE__*/_jsx(Component,{...props});};}// 1. email* // required\n// 2. product_categories_interested_in // required\n// 3. n3d_models_creation_required_ // required\n// 4. product_count // required\n// 5. texture_scanning_required_  // no required\n// 6. user_license_count // required\n// 7. in_house_creative_time_available // required\n// 8. styling_services_required // required\n// 9. new_products_frequency // required\n// 10. product_placement // no required\n// 11. ecommerce_platform // no required\n// 12. website_embed // no required\n\nexport const __FramerMetadata__ = {\"exports\":{\"withPreSaleHubspotStepFormSectionButton\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotStepFormSectionButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotFormThankYouWrapperAddClass\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotFormThankYouWrapperAddClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotFormButtonAddClass\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotFormButtonAddClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotFormFieldContainerAddClass\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotFormFieldContainerAddClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotFormErrorTextAddClass\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotFormErrorTextAddClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotStepFormSection\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotStepFormSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotFormLabelAddClass\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotFormLabelAddClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotFormEmail\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotFormEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotStepFormSectionBackButton\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotStepFormSectionBackButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPreSaleHubspotForm\":{\"type\":\"reactHoc\",\"name\":\"withPreSaleHubspotForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mNAOC,SAAS,EAAuB,CAAC,OAAK,KAAK,YAAU,GAAM,aAAW,MAAM,EAAE,CAAC,CAAC,IAAI,EAAQ,GAAW,EAAO,EAAK,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,EAAK,iBAAiB,0BAA0B,CAAC,CAAC,OAAO,GAAO,EAAM,MAAM,EAAgB,SAAS,EAAM,KAAK,CAAC,CAAC,IAAI,GAAO,CAAC,EAAM,KAAK,EAAM,CAAC,CACjS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAuBT,GAvBU,EAAO,QAAQ,GAAO,CAAC,IAAM,EAAU,EAAM,KAAW,EAAU,EAAM,KAAW,EAAsB,GAAO,QAAQ,wCAAwC,CAAO,EAAkB,GAAuB,cAAc,8BAA8B,CAAO,EAAsB,GAAuB,cAAc,2CAA2C,CACxX,GAD4X,GAAmB,aAAa,qBAAqB,EAAE,IAAuB,EAAsB,MAAM,MAAM,UAAU,EAAsB,UAAU,GAAmB,aAAa,qBAAqB,EACxkB,CAAC,OAAO,QAAQ,MAAM,SAAS,WAAW,CAAC,SAAS,EAAU,CAAK,EAAM,MAAM,MAAM,GAAG,IAAI,IAAa,QAAW,GAAW,IAAuB,EAAsB,MAAM,MAAM,UAAU,EAAsB,UAAU,0BAA0B,EAAQ,IAC9P,EAAM,QAAU,IAAY,QAAa,EAAa,EAAM,MAAM,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