{"version":3,"file":"QuizComponent.B_B0CZpM.mjs","names":["e","r","useState","i","s","PropTypes"],"sources":["https:/ga.jspm.io/npm:prop-types@15.8.1/_/eb83dd95.js","https:/ga.jspm.io/npm:prop-types@15.8.1/index.js","https:/framerusercontent.com/modules/Pb49y14ISIMKTjy85LGa/09mVMRQVo60OYqd3Yo4x/QuizComponent.js"],"sourcesContent":["var _={};var a=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";_=a;var r=_;export{r as _};\n\n//# sourceMappingURL=eb83dd95.js.map","import{_ as e}from\"./_/eb83dd95.js\";var t={};var i=e;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;t=function(){function shim(e,t,n,r,s,m){if(m!==i){var o=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");o.name=\"Invariant Violation\";throw o}}shim.isRequired=shim;function getShim(){return shim}var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};e.PropTypes=e;return e};var n=t;var r={};r=n();var s=r;export{s as default};\n\n//# sourceMappingURL=index.js.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import PropTypes from\"prop-types\";export default function QuizComponent({apiUrl=\"https://api.kylas.io/v1/leads/\",apiMethod=\"POST\",activeColor=\"#ff63a0\",accentColor=\"#e9f48b\"}){const[currentStep,setCurrentStep]=useState(0);const[answers,setAnswers]=useState({});const[loading,setLoading]=useState(false);const[submitStatus,setSubmitStatus]=useState(null);const[data,setData]=useState([]);const[formFieldData,setFormFieldData]=useState(null);const stepConfig=[{id:\"cfAcademicJourney\",title:\"What is your current stage in your academic or professional journey?\"},{id:\"cfLevels\",title:\"What is your primary reason for pursuing an online degree?\"},{id:\"cfCourse\",title:\"What type of degree are you looking for?\"},{id:\"cfWorkIndustryRole\",title:\"What is your Work Background?\"},{id:\"companyEmployees\",title:\"What's your preferred total course budget?\",subtitle:\"Choose the range that best fits your plan – EMI options available!\"}];const steps=[...stepConfig.map(step=>({...step,options:formFieldData?.[step.id]??[]})),{id:\"form\",title:\"Almost there — tell us about yourself\",form:true}];const fetchData=async()=>{try{const response=await fetch(\"https://api.kylas.io/v1/ui/layouts/CREATE/LEAD\",{headers:{\"api-key\":\"e2081ae1-d908-47fa-aba4-b6605b6f928f:14085\"}});const json=await response.json();const layoutItems=json?.layoutItems??[];// get specific layout sections\nconst customSection=layoutItems.find(i=>i?.item?.name===\"otherDetails\");const professionalSection=layoutItems.find(i=>i?.item?.name===\"professional\");const filtered={};// fields we need from custom section\nconst customFields=[\"cfLevels\",\"cfCourse\",\"cfWhenWillYouTakeAdmission\",\"cfWorkIndustryRole\",\"cfAcademicJourney\"];// utility to collect dropdown pickList values\nconst extractPicklists=(section,fieldKeys)=>{section?.layoutItems?.forEach(entry=>{const key=entry?.item?.internalName;if(fieldKeys.includes(key)&&entry?.item?.pickLists){filtered[key]=entry.item.pickLists;}});};extractPicklists(customSection,customFields);extractPicklists(professionalSection,[\"companyEmployees\"]);setFormFieldData(filtered);}catch(error){console.error(\"API Fetch Error:\",error);}};useEffect(()=>{fetchData();},[]);useEffect(()=>{// inject component-scoped CSS once\nconst styleId=\"quiz-component-styles-v2\";if(document.getElementById(styleId))return;const css=`\n      .q-wrap{\n        font-family:Inter,system-ui, Arial;\n        background:#fff; \n        padding:22px; \n        border-radius:12px\n        }\n        .last-step .q-progress{\n            display:none;\n        }\n      .q-error{\n        margin-top: 6px;\n        font-size: 14px;\n        font-weight: 400;\n        font-family: \"poppins\";\n        color: #c40000;\n        }\n      .percent-title{\n        font-size: 13px;\n        position: absolute;\n        left: 5%;\n      }\n      .q-progress__bar{\n        height:20px;\n        border-radius:16px;\n        background:#f6d9e9;\n        overflow:hidden;\n        }\n      .q-progress__fill{\n        height:100%;\n        display:flex;\n        align-items:center;\n        justify-content:center;\n        color:#fff;\n        font-weight:400;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        }\n      .q-container{\n        padding-top:22px;\n        padding-bottom:28px;\n        }\n      .q-center{\n        max-width:1100px;\n        margin:0 auto;\n        }\n      .q-title{\n        font-size: 30px;\n        font-weight: 600;\n        text-align: center;\n        font-family: \"League Spartan\", sans-serif;\n        width: 715px;\n        margin: auto;\n        padding-bottom: 40px;\n        line-height: 100%;\n        }\n      .q-subtitle{\n        font-size:18px;\n        color:#666;\n        text-align:center;\n        margin-bottom:24px;\n        }\n      .q-grid{\n        display:grid;\n        grid-template-columns:repeat(3,1fr);\n        gap:24px;\n        }\n      .q-option{\n        display:flex;\n        justify-content:center;\n        }\n      .q-btn{\n        min-width: 100%;\n        padding: 26px 28px;\n        border-radius: 20px;\n        border: 1px solid #EBEBEB;\n        background: #fff;\n        font-size: 16px;\n        font-weight: 600;\n        color: #161C22;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        cursor: pointer;\n        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02) inset;\n        transition: all 180ms;\n        }\n      .q-btn:hover{\n        transform:translateY(-3px)\n        }\n      .q-btn--active{\n        border-color: ${activeColor};\n        color:${activeColor};\n        }\n      .q-controls{\n        display:flex;\n        justify-content:center;\n        gap:12px;\n        margin-top:20px;\n        }\n      .q-back{\n        padding: 10px 20px;\n        border-radius: 4px;\n        border: 1px solid #15322E;\n        background: #fff;\n        font-size: 16px;\n        color: #000000;\n        width: 150px;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        font-weight: 600;\n        cursor: pointer;\n        }\n      .q-next{\n        padding:14px 40px;\n        border-radius:4px;\n        border:none;\n        font-size: 16px;\n        width: 150px;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        font-weight: 600;\n        }\n\n      /* Contact form styles */\n      h5.rating {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        font-size: 16px;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        font-weight: 400;\n        gap: 10px;\n        padding-bottom: 30px;\n        padding-top: 8px;\n    }\n      .form-title {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        font-size: 18px;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        font-weight: 700;\n        gap: 4px;\n       }\n      .form-disc{\n        font-family:\"Poppins\", \"Poppins Placeholder\", sans-serif;\n        font-size:16px;\n        color:#000;\n        font-weight:600;\n        text-align: center;\n      }\n      .q-form{\n        background:#F5F4ED;\n        padding:24px;\n        border-radius:16px;\n        }\n      .q-field{\n        margin-bottom:12px\n        }\n      .q-label{\n        font-weight: 600;\n        display: block;\n        margin-bottom: 8px;\n        font-family: \"Poppins\", \"Poppins Placeholder\", sans-serif;\n        font-size: 14px;\n        color: #201515;\n        }\n      .q-input,.q-select{\n        width: 100%;\n        padding: 16px;\n        border-radius: 12px;\n        border: none;\n        color: #000;\n        font-size: 14px;\n        font-weight: 500;\n        background: #E9E7D8;\n        font-family: \"Poppins\";\n        }\n      .q-submit{\n        width:100%;\n        padding:16px;\n        border-radius:12px;\n        border:none;\n        background:${activeColor};\n        color:#fff;\n        font-weight:800;\n        cursor:pointer;\n        }\n      .q-submit[disabled]{\n        opacity:0.6;\n        cursor:not-allowed\n        }\n      .q-message{\n        margin-top:18px;\n        text-align:center;\n        color:#666;\n        }\n      .q-success{\n        background:#e7f9e7;\n        border-radius:10px;\n        padding:14px;\n        text-align:center;\n        color:#0a7a0a;\n        font-weight:700\n        }\n\n      @media (max-width:980px){\n        .q-grid{\n            grid-template-columns:repeat(2,1fr)\n            }\n      }\n      @media (max-width:640px){\n        .q-grid{grid-template-columns:1fr\n        }\n        .q-title{\n            width:100%;\n        }\n        .q-btn{\n            padding:16px 28px;\n        }\n        .q-wrap{\n            padding:20px;\n        }\n        .percent-title{\n                left: 9%;\n        }\n      }\n    `;const style=document.createElement(\"style\");style.id=styleId;style.appendChild(document.createTextNode(css));document.head.appendChild(style);},[]);function handleOptionSelect(stepId,option){const next={...answers,[stepId]:Number(option)};setAnswers(next);}function canGoNext(stepIndex){const step=steps[stepIndex];if(!step)return false;if(step.form)return true;return Boolean(answers[step.id]);}function handleNext(){if(!canGoNext(currentStep))return;setCurrentStep(s=>Math.min(s+1,steps.length-1));}function handleBack(){setCurrentStep(s=>Math.max(s-1,0));}async function handleSubmit(formValues){const[firstName,...rest]=formValues.name.trim().split(/\\s+/);const lastName=rest.join(\" \")||\"\";const phoneNumbers=[{type:\"MOBILE\",code:\"IN\",value:formValues.phone,dialCode:\"+91\",primary:true}];const emails=[{type:\"OFFICE\",value:formValues.email,primary:true}];const payload={customFieldValues:{...answers,cfWhenWillYouTakeAdmission:formValues?.timeline&&Number(formValues?.timeline)},firstName,lastName,phoneNumbers,emails};setLoading(true);try{if(apiUrl){const method=(apiMethod||\"POST\").toUpperCase();const res=await fetch(apiUrl,{method,headers:{\"Content-Type\":\"application/json\",\"api-key\":\"e2081ae1-d908-47fa-aba4-b6605b6f928f:14085\"},body:JSON.stringify(payload)});const json=await res.json().catch(()=>null);setSubmitStatus({ok:res.ok,data:json});window.location.href=\"/thank-you\";}else{setSubmitStatus({ok:true,data:payload});}}catch(err){console.error(err);setSubmitStatus({ok:false,error:err.message});}finally{setLoading(false);}}// UI pieces\nfunction ProgressBar({stepIndex}){const percent=Math.round(stepIndex/(steps.length-1)*100);return /*#__PURE__*/_jsx(\"div\",{className:\"q-progress\",children:/*#__PURE__*/_jsx(\"div\",{className:\"q-progress__bar\",children:/*#__PURE__*/_jsx(\"div\",{className:\"q-progress__fill\",style:{width:`${percent}%`,background:activeColor},children:/*#__PURE__*/_jsxs(\"span\",{className:\"percent-title\",children:[percent,\"% Complete\"]})})})});}function OptionButton({stepId,label,fieldId}){const isActive=answers[stepId]===fieldId;return /*#__PURE__*/_jsx(\"button\",{className:`q-btn ${isActive?\"q-btn--active\":\"\"}`,onClick:()=>handleOptionSelect(stepId,fieldId),children:label});}function StepView({step}){if(step.form){return /*#__PURE__*/_jsx(\"div\",{className:\"q-center\",children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:32,alignItems:\"flex-start\",flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:260},children:[/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/pNKy3ErWPOkYOsFqQEqEV33f4kE.gif?scale-down-to=1024&width=1195&height=1200\",alt:\"preview\",style:{display:\"block\",WebkitUserSelect:\"none\",margin:\"0 auto\",cursor:\"zoom-in\",backgroundColor:\"transparent\",width:\"220px\",height:\"100%\"}}),/*#__PURE__*/_jsxs(\"h3\",{className:\"form-title\",children:[/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"117\",height:\"23\",viewBox:\"0 0 117 23\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M82.5002 2.875L84.7523 8.395L90.7035 8.83583L86.1419 12.6883L87.5698 18.4767L82.5002 15.3333L77.4306 18.4767L78.8585 12.6883L74.2969 8.83583L80.2481 8.395L82.5002 2.875Z\",fill:\"#F8B202\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M82.5002 2.875L80.2481 8.395L74.2969 8.83583L78.8585 12.6883L77.4306 18.4767L82.5002 15.3333M82.5002 2.875L84.7523 8.395L90.7035 8.83583L86.1419 12.6883L87.5698 18.4767L82.5002 15.3333\",stroke:\"#F8B202\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M59.5002 2.875L61.7523 8.395L67.7035 8.83583L63.1419 12.6883L64.5698 18.4767L59.5002 15.3333L54.4306 18.4767L55.8585 12.6883L51.2969 8.83583L57.2481 8.395L59.5002 2.875Z\",fill:\"#F8B202\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M59.5002 2.875L57.2481 8.395L51.2969 8.83583L55.8585 12.6883L54.4306 18.4767L59.5002 15.3333M59.5002 2.875L61.7523 8.395L67.7035 8.83583L63.1419 12.6883L64.5698 18.4767L59.5002 15.3333\",stroke:\"#F8B202\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M35.0014 2.875L37.3514 8.395L43.5614 8.83583L38.8014 12.6883L40.2914 18.4767L35.0014 15.3333L29.7114 18.4767L31.2014 12.6883L26.4414 8.83583L32.6514 8.395L35.0014 2.875Z\",fill:\"#F8B202\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M35.0014 2.875L32.6514 8.395L26.4414 8.83583L31.2014 12.6883L29.7114 18.4767L35.0014 15.3333M35.0014 2.875L37.3514 8.395L43.5614 8.83583L38.8014 12.6883L40.2914 18.4767L35.0014 15.3333\",stroke:\"#F8B202\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11.5002 2.875L13.7523 8.395L19.7035 8.83583L15.1419 12.6883L16.5698 18.4767L11.5002 15.3333L6.43062 18.4767L7.85854 12.6883L3.29688 8.83583L9.24812 8.395L11.5002 2.875Z\",fill:\"#F8B202\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11.5002 2.875L9.24812 8.395L3.29688 8.83583L7.85854 12.6883L6.43062 18.4767L11.5002 15.3333M11.5002 2.875L13.7523 8.395L19.7035 8.83583L15.1419 12.6883L16.5698 18.4767L11.5002 15.3333\",stroke:\"#F8B202\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M96.9706 10.8292L100.421 13.9917L99.4623 18.4C99.3665 18.975 99.5581 19.55 100.037 19.8375C100.229 20.0292 100.516 20.125 100.804 20.125C100.996 20.125 101.187 20.125 101.379 20.0292C101.379 20.0292 101.475 20.0292 101.475 19.9333L105.404 17.7292L109.333 19.9333C109.333 19.9333 109.429 19.9333 109.429 20.0292C109.908 20.2208 110.483 20.2208 110.866 19.9333C111.346 19.6458 111.537 19.0708 111.441 18.4958L110.483 14.0875C110.866 13.8 111.441 13.225 112.016 12.65L113.837 11.0208L113.933 10.925C114.316 10.5417 114.412 9.96667 114.221 9.4875C114.029 9.00833 113.646 8.625 113.071 8.52917H112.975L108.471 8.05L106.65 3.92917C106.65 3.92917 106.65 3.83333 106.554 3.83333C106.458 3.1625 105.979 2.875 105.5 2.875C105.021 2.875 104.541 3.1625 104.254 3.64167C104.254 3.64167 104.254 3.7375 104.158 3.7375L102.337 7.85833L97.8331 8.3375H97.7373C97.2581 8.43333 96.779 8.81667 96.5873 9.29583C96.4915 9.87083 96.5873 10.4458 96.9706 10.8292ZM105.5 15.6208V5.55833L107.129 9.2C107.225 9.4875 107.608 9.67917 107.896 9.775L111.921 10.2542L108.95 12.9375C108.662 13.1292 108.566 13.5125 108.662 13.8958C108.662 14.0875 109.141 16.0042 109.429 17.825L105.979 15.8125C105.787 15.6208 105.691 15.6208 105.5 15.6208Z\",fill:\"#F8B202\"})]}),\"Trusted By\"]}),/*#__PURE__*/_jsxs(\"h5\",{className:\"rating\",children:[\"4.9/5\",\" \",/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/QGoRhv3E4YrQ4HZ44jchIqlBYmw.png?width=560&height=96\",alt:\"Banner\",style:{display:\"block\",width:\"150px\",height:\"100%\",borderRadius:\"inherit\",objectPosition:\"center center\",objectFit:\"contain\"}})]}),/*#__PURE__*/_jsx(\"p\",{className:\"form-disc\",children:\"Get personalized recommendations based on your responses. Submit your responses to find your 100% perfect fit.\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1},children:/*#__PURE__*/_jsx(ContactForm,{onSubmit:handleSubmit,loading:loading,formFieldData:formFieldData})})]})});}return /*#__PURE__*/_jsxs(\"div\",{className:\"q-center\",children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"q-title\",children:step.title}),step.subtitle&&/*#__PURE__*/_jsx(\"p\",{className:\"q-subtitle\",children:step.subtitle})]}),/*#__PURE__*/_jsx(\"div\",{className:\"q-grid\",children:step.options.map(o=>/*#__PURE__*/_jsx(\"div\",{className:\"q-option\",children:/*#__PURE__*/_jsx(OptionButton,{stepId:step.id,label:o?.displayName,fieldId:o?.id})},o))})]});}return /*#__PURE__*/_jsxs(\"div\",{className:`q-wrap ${!steps[currentStep].form?\"\":\"last-step\"}`,children:[/*#__PURE__*/_jsx(ProgressBar,{stepIndex:currentStep}),/*#__PURE__*/_jsx(\"div\",{className:\"q-container\",children:/*#__PURE__*/_jsx(StepView,{step:steps[currentStep]})}),/*#__PURE__*/_jsxs(\"div\",{className:\"q-controls\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"q-back\",onClick:handleBack,disabled:currentStep===0,children:\"Back\"}),!steps[currentStep].form&&/*#__PURE__*/_jsx(\"button\",{className:\"q-next\",onClick:handleNext,disabled:!canGoNext(currentStep),style:{background:canGoNext(currentStep)?accentColor:\"#eee\"},children:\"Next\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"q-message\",children:loading?\"Saving...\":submitStatus?submitStatus.ok?/*#__PURE__*/_jsx(\"div\",{className:\"q-success\",children:\"Thank you! Our team will reach out soon.\"}):\"Submit failed — try again\":\"\"})]});}function ContactForm({onSubmit,loading,formFieldData}){const[name,setName]=useState(\"\");const[email,setEmail]=useState(\"\");const[phone,setPhone]=useState(\"\");const[timeline,setTimeline]=useState(\"\");const[errors,setErrors]=useState({name:\"\",email:\"\",phone:\"\",timeline:\"\"});function validate(){const newErr={name:\"\",email:\"\",phone:\"\",timeline:\"\"};if(!name.trim())newErr.name=\"Full name is required\";if(!email.trim())newErr.email=\"Email is required\";else if(!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email))newErr.email=\"Enter a valid email address\";const digits=phone.replace(/[^0-9]/g,\"\");if(!digits)newErr.phone=\"Phone number is required\";else if(digits.length<10)newErr.phone=\"Phone must contain at least 10 digits\";if(!timeline)newErr.timeline=\"Please select an option\";setErrors(newErr);return Object.values(newErr).every(v=>v===\"\");}async function handleLocalSubmit(e){e.preventDefault();if(!validate())return;await onSubmit({name:name.trim(),email:email.trim(),phone:phone.trim(),timeline});}return /*#__PURE__*/_jsxs(\"form\",{className:\"q-form\",onSubmit:handleLocalSubmit,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"q-field\",children:[/*#__PURE__*/_jsx(\"label\",{className:\"q-label\",children:\"Full Name\"}),/*#__PURE__*/_jsx(\"input\",{className:\"q-input\",value:name,onChange:e=>{setName(e.target.value);setErrors({...errors,name:\"\"});},placeholder:\"Your Name\"}),errors.name&&/*#__PURE__*/_jsx(\"p\",{className:\"q-error\",children:errors.name})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"q-field\",children:[/*#__PURE__*/_jsx(\"label\",{className:\"q-label\",children:\"Email Address\"}),/*#__PURE__*/_jsx(\"input\",{className:\"q-input\",value:email,onChange:e=>{setEmail(e.target.value);setErrors({...errors,email:\"\"});},placeholder:\"your@email.com\"}),errors.email&&/*#__PURE__*/_jsx(\"p\",{className:\"q-error\",children:errors.email})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"q-field\",children:[/*#__PURE__*/_jsx(\"label\",{className:\"q-label\",children:\"Mobile No\"}),/*#__PURE__*/_jsx(\"input\",{className:\"q-input\",value:phone,onChange:e=>{setPhone(e.target.value);setErrors({...errors,phone:\"\"});},placeholder:\"1234567890\"}),errors.phone&&/*#__PURE__*/_jsx(\"p\",{className:\"q-error\",children:errors.phone})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"q-field\",children:[/*#__PURE__*/_jsx(\"label\",{className:\"q-label\",children:\"Expected Enrollment Timeline\"}),/*#__PURE__*/_jsxs(\"select\",{className:\"q-select\",value:timeline,onChange:e=>{setTimeline(e.target.value);setErrors({...errors,timeline:\"\"});},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"Choose an option\"}),formFieldData?.cfWhenWillYouTakeAdmission?.map(item=>/*#__PURE__*/_jsx(\"option\",{value:item?.id,children:item.displayName}))]}),errors.timeline&&/*#__PURE__*/_jsx(\"p\",{className:\"q-error\",children:errors.timeline})]}),/*#__PURE__*/_jsx(\"button\",{className:\"q-submit\",type:\"submit\",disabled:loading,children:loading?\"Submitting...\":\"Submit\"})]});}QuizComponent.propTypes={apiUrl:PropTypes.string,apiMethod:PropTypes.string,activeColor:PropTypes.string,accentColor:PropTypes.string};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"QuizComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QuizComponent.map"],"mappings":"gKAAI,EAAE,EAAE,CAAsD,EAA/C,+CAAuD,EAAE,KCAnB,SAAS,GAAe,EAAE,SAAS,GAAwB,6BAA5E,CAAI,EAAE,EAAE,CAAK,EAAEA,EAA+D,EAAuB,kBAAkB,EAAc,EAAE,UAAU,CAAC,SAAS,EAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,IAAI,EAAM,MAAM,kLAAkL,CAA8B,KAA7B,GAAE,KAAK,sBAA4B,GAAG,EAAK,WAAW,EAAK,SAAS,GAAS,CAAC,OAAO,EAAK,IAAI,EAAE,CAAC,MAAM,EAAK,OAAO,EAAK,KAAK,EAAK,KAAK,EAAK,OAAO,EAAK,OAAO,EAAK,OAAO,EAAK,OAAO,EAAK,IAAI,EAAK,QAAQ,EAAQ,QAAQ,EAAK,YAAY,EAAK,WAAW,EAAQ,KAAK,EAAK,SAAS,EAAQ,MAAM,EAAQ,UAAU,EAAQ,MAAM,EAAQ,MAAM,EAA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