1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88261],{706:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);l(96540);let s=function(e){let{className:t,fill:l="#190A28"}=e;return(0,n.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},35897:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);let s=()=>(0,n.jsx)("svg",{width:"154",height:"25",viewBox:"0 0 154 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"block",style:{minWidth:"154px",minHeight:"25px"},children:(0,n.jsx)("path",{d:"M134.539 7.3125C135.955 7.3125 137.136 7.76003 138.082 8.65332H138.144V7.64062H141.944V19.252C141.944 21.0843 141.35 22.4998 140.162 23.498C138.974 24.4992 137.406 25 135.464 25C132.317 24.9999 130.286 23.9039 129.371 21.7148L132.482 20.1553C133.053 21.1219 134.047 21.6054 135.464 21.6055C136.121 21.6055 136.732 21.3879 137.297 20.9551C137.86 20.5207 138.144 19.8572 138.144 18.9639V18.124C137.471 18.8879 136.269 19.2695 134.539 19.2695C132.95 19.2695 131.641 18.6937 130.61 17.543C129.581 16.3894 129.069 14.9754 129.068 13.3027C129.068 11.6312 129.581 10.2151 130.61 9.05566C131.641 7.89343 132.95 7.31253 134.539 7.3125ZM18.2794 7.06738C22.4475 7.01141 22.8969 12.849 21.7521 16.1045C20.8949 18.812 17.4713 20.1419 15.5363 17.9287V22.9326L11.5734 23.3496V7.48438H15.0958L15.256 8.56836C16.034 7.58214 17.1244 7.07582 18.2794 7.06738ZM51.4523 7.3125C52.9126 7.3125 54.115 7.78333 55.0568 8.72266V7.64062H58.8576V18.9414H55.1017V17.6641H55.0568C54.1151 18.7341 52.9124 19.2695 51.4523 19.2695C49.8634 19.2694 48.5549 18.6935 47.5236 17.543C46.495 16.3894 45.9817 14.9755 45.9816 13.3027C45.9816 11.6312 46.4949 10.2151 47.5236 9.05566C48.5549 7.89373 49.8634 7.3126 51.4523 7.3125ZM148.105 7.3125C149.849 7.31251 151.268 7.83052 152.36 8.86621C153.454 9.9019 154.002 11.381 154.002 13.3027C154.002 13.5672 153.994 13.7443 153.98 13.832H145.997C145.997 14.6258 146.247 15.2151 146.748 15.5977C147.248 15.9774 147.792 16.1679 148.379 16.168C148.996 16.168 149.481 16.0848 149.837 15.915C150.196 15.7467 150.605 15.4107 151.065 14.9072L153.811 16.3174C152.667 18.2851 150.764 19.2695 148.105 19.2695C146.441 19.2695 145.016 18.6861 143.827 17.5195C142.642 16.3545 142.051 14.948 142.051 13.3027C142.051 11.6572 142.642 10.247 143.827 9.07324C145.016 7.89945 146.441 7.3125 148.105 7.3125ZM71.841 0V7.64062H75.5285L78.214 13.7852L80.8927 7.64062H85.3996L79.5021 18.9404H76.924L71.841 9.20898V18.9404H68.0851V17.6641H68.0402C67.0979 18.7342 65.8954 19.2685 64.4347 19.2686C62.8456 19.2686 61.5365 18.6943 60.505 17.5439C59.4772 16.3898 58.964 14.9758 58.964 13.3027C58.964 11.6318 59.4774 10.2165 60.505 9.05664C61.5365 7.89481 62.8456 7.3125 64.4347 7.3125C65.8954 7.31258 67.0979 7.78412 68.0402 8.72266V0H71.841ZM89.2619 7.31348C90.7226 7.31348 91.9251 7.78227 92.8673 8.72266V7.6416H96.6662V9.46094C96.1197 11.5461 95.031 12.5022 92.9308 12.8838C92.8565 12.2943 92.6163 11.794 92.2111 11.3857C91.7168 10.8881 91.113 10.6387 90.3996 10.6387C89.671 10.6387 89.0609 10.8879 88.5666 11.3857C88.074 11.8856 87.8273 12.5253 87.8273 13.3018C87.8273 14.0819 88.0633 14.7168 88.5333 15.207C89.0054 15.6992 89.6264 15.9434 90.3996 15.9434C91.1427 15.9433 91.7541 15.694 92.2335 15.1963C92.633 14.7843 92.8677 14.2786 92.9347 13.6816C95.0328 14.0651 96.1197 15.0205 96.6662 17.1035V18.9404H92.9123V17.665H92.8673C91.9251 18.735 90.7226 19.2685 89.2619 19.2686C87.673 19.2686 86.3646 18.693 85.3332 17.543C84.3054 16.3907 83.7922 14.9748 83.7921 13.3018C83.7921 11.6305 84.3053 10.2147 85.3332 9.05664C86.3646 7.89308 87.6729 7.31348 89.2619 7.31348ZM114.519 3.43359V7.64062H116.84V10.1719C117.056 9.77716 117.318 9.40561 117.628 9.05664C118.66 7.89481 119.969 7.3125 121.558 7.3125C123.018 7.3126 124.219 7.78414 125.161 8.72266V7.64062H128.962V18.9404H125.206V17.6641H125.161C124.219 18.7342 123.018 19.2684 121.558 19.2686C119.969 19.2686 118.66 18.6943 117.628 17.5439C116.598 16.3897 116.085 14.9759 116.085 13.3027C116.085 12.3186 116.264 11.4221 116.622 10.6152H114.519V14.2051C114.519 15.2504 114.805 15.7713 115.377 15.7715C115.466 15.7715 115.56 15.7602 115.656 15.7354L116.525 18.9141C115.898 19.1506 115.215 19.2686 114.474 19.2686C113.76 19.2685 113.145 19.1384 112.63 18.8828C112.113 18.6272 111.723 18.2836 111.459 17.8525C111.197 17.4197 111.008 16.9659 110.893 16.4912C110.781 16.0105 110.725 15.4987 110.725 14.9531V10.6152H109.311C109.366 10.8917 109.393 11.1853 109.393 11.4941V18.9404H105.592V12.5527C105.592 11.9672 105.407 11.4542 105.041 11.0117C104.679 10.5712 104.203 10.3497 103.618 10.3496C103.046 10.3496 102.527 10.5785 102.061 11.0342C101.596 11.4881 101.365 11.9939 101.365 12.5527V12.8965C100.042
112.6656 99.1128 12.2153 98.466 11.4121C98.0719 10.9218 97.7814 10.2997 97.5695 9.51562V7.64062H101.365V8.83105H101.409C102.396 7.81808 103.447 7.31255 104.566 7.3125C105.106 7.3125 105.644 7.3853 106.179 7.53027C106.718 7.67718 107.233 7.90388 107.728 8.21484C108.22 8.52387 108.619 8.9609 108.926 9.52734C109.004 9.67032 109.073 9.81727 109.132 9.97168V7.64062H110.725V3.43359H114.519ZM0.762837 7.94336C2.981 6.96344 6.94255 6.55978 8.65053 8.0791C10.2873 9.24414 9.68801 13.15 9.79116 15.0107C9.80911 15.691 9.85814 16.053 10.4318 16.3027L9.631 18.9502C8.31138 18.8243 7.41894 18.5592 6.74819 17.4082C5.71709 19.2704 2.42727 19.6112 0.972798 18.0439C-0.43402 16.7 -0.310273 13.7392 1.32338 12.6553C2.26047 11.8701 4.25767 11.5986 5.92788 11.6748C5.9546 11.1604 5.8722 10.4669 5.60756 10.2783C4.61657 9.61973 2.80562 10.1996 1.62416 10.5703L0.762837 7.94336ZM35.2345 7.94336C37.4527 6.96344 41.4142 6.55978 43.1222 8.0791C44.7589 9.24419 44.1597 13.15 44.2628 15.0107C44.2808 15.691 44.3298 16.053 44.9035 16.3027L44.1027 18.9502C42.783 18.8243 41.8906 18.5592 41.2199 17.4082C40.1888 19.2704 36.899 19.6113 35.4445 18.0439C34.0376 16.7 34.1613 13.7392 35.7951 12.6553C36.7321 11.8701 38.7293 11.5986 40.3996 11.6748C40.4263 11.1604 40.3438 10.4669 40.0792 10.2783C39.0883 9.61974 37.2773 10.1996 36.0958 10.5703L35.2345 7.94336ZM101.365 18.9404H97.5695V17.0488C98.1271 14.9789 99.2354 14.0381 101.365 13.668V18.9404ZM30.5499 7.06738C32.4409 7.06419 33.4501 8.43086 33.4328 10.4033V18.6172H29.4699C29.4015 18.1129 29.6374 10.5173 29.3195 10.2988C28.7406 9.69915 28.0705 10.3212 27.5275 11.1748V18.6172H23.5636V7.48438H27.0275L27.3078 8.63086C28.2657 7.5923 29.193 7.07355 30.5499 7.06738ZM5.92788 13.8223C5.37493 13.798 4.56907 13.8493 4.26674 14.1348C3.6025 14.6139 3.7616 16.1926 4.74721 16.1367C5.21725 16.1438 5.66268 15.8555 5.92788 15.4688V13.8223ZM40.3996 13.8223C39.8464 13.798 39.0395 13.849 38.7374 14.1348C38.0736 14.614 38.2328 16.1921 39.2179 16.1367C39.6881 16.144 40.1343 15.8556 40.3996 15.4688V13.8223ZM17.629 10.2471C16.8764 9.73502 16.015 10.1308 15.5363 11.0703V15.3232C15.8553 15.8248 16.1694 16.0871 16.7179 16.0947C17.7187 16.0946 18.2189 15.0864 18.2189 13.0713C18.1763 11.8653 18.2285 10.932 17.629 10.2471ZM52.591 10.6387C51.8622 10.6387 51.2513 10.889 50.758 11.3867C50.2647 11.8859 50.0177 12.5245 50.0177 13.3027C50.0178 14.0822 50.253 14.7166 50.7238 15.207C51.1946 15.699 51.8174 15.9434 52.591 15.9434C53.3336 15.9433 53.9448 15.6944 54.424 15.1953C54.9059 14.6977 55.1465 14.0663 55.1466 13.3027C55.1466 12.5247 54.8974 11.8858 54.4015 11.3867C53.9083 10.8891 53.3041 10.6387 52.591 10.6387ZM65.5734 10.6377C64.8449 10.6378 64.2337 10.8879 63.7394 11.3857C63.2469 11.8855 62.9992 12.5244 62.9992 13.3027C62.9992 14.0811 63.236 14.7167 63.7062 15.207C64.1782 15.699 64.7986 15.9433 65.5734 15.9434C66.315 15.9434 66.9269 15.6951 67.4064 15.1953C67.8877 14.6974 68.1291 14.0658 68.1291 13.3027C68.129 12.5245 67.8801 11.8855 67.3839 11.3857C66.8895 10.8878 66.2852 10.6377 65.5734 10.6377ZM122.694 10.6377C121.966 10.6378 121.355 10.8879 120.862 11.3857C120.368 11.8855 120.122 12.5244 120.122 13.3027C120.122 14.081 120.356 14.7167 120.828 15.207C121.298 15.6992 121.921 15.9433 122.694 15.9434C123.438 15.9434 124.048 15.6951 124.527 15.1953C125.011 14.6974 125.25 14.0658 125.25 13.3027C125.25 12.5245 125.001 11.8855 124.505 11.3857C124.012 10.8878 123.408 10.6377 122.694 10.6377ZM135.677 10.6387C134.948 10.6388 134.337 10.8891 133.844 11.3867C133.351 11.8858 133.105 12.5247 133.105 13.3027C133.105 14.0822 133.34 14.7166 133.811 15.207C134.281 15.6988 134.904 15.9433 135.677 15.9434C136.42 15.9434 137.031 15.6943 137.51 15.1953C137.992 14.6977 138.233 14.0664 138.234 13.3027C138.234 12.5245 137.984 11.8859 137.487 11.3867C136.994 10.889 136.39 10.6387 135.677 10.6387ZM148.211 9.84375C147.579 9.84375 147.076 10.014 146.703 10.3506C146.333 10.6886 146.134 11.1301 146.109 11.6738H150.291C150.204 11.0871 149.978 10.6373 149.612 10.3223C149.249 10.0044 148.783 9.84375 148.211 9.84375Z",fill:"#EFB94B"})})},59346:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);l(96540);let s=e=>{let{fill:t="#3E1367",bgFill:l="black",bgFillOpacity:s="0.05"}=e;return(0,n.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"block",style:{aspectRatio:"1"},children:[(0,n.jsx)("circle",{cx:"14",cy:"14",r:"14",fill:l,fillOpacity:s}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 14.0001C6.5 13.5398 6.8731 13.1667 7.33333 13.1667H20.6667C21.1269 13.1667 21.5 13.5398 21.5 14.0001C21.5 14.4603 21.1269 14.8334 20.6667 14.8334H7.33333C6.8731 14.8334 6.5 14.4603 6.5 14.0001Z",fill:t}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0893 9.24408C12.4147 9.56951 12.4147 10.0972 12.0893 10.4226L8.51184 14L12.0893 17.5774C12.4147 17.9028 12.4147 18.4305 12.0893 18.7559C11.7638 19.0814 11.2362 19.0814 10.9107 18.7559L6.74408 14.5893C6.41864 14.2638 6.41864 13.7362 6.74408 13.4107L10.9107 9.24408C11.2362 8.91864 11.7638 8.91864 12.0893 9.24408Z",fill:t})]})}},15180:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);l(96540);let s=e=>{let{color:t="#190A28"}=e;return(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},68323:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);l(96540);let s=e=>(0,n.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M13.887
17 12.4149H13.1153L12.8416 12.1511C14.0148 10.7832 14.6209 8.91702 14.2885 6.93361C13.829 4.2174 11.5609 2.04835 8.82357 1.71615C4.68822 1.20808 1.20788 4.68639 1.71624 8.81931C2.04863 11.5551 4.21896 13.8218 6.93676 14.281C8.92133 14.6132 10.7886 14.0075 12.1573 12.835L12.4212 13.1086V13.8804L16.5761 18.0329C16.977 18.4335 17.632 18.4335 18.0328 18.0329C18.4336 17.6323 18.4336 16.9777 18.0328 16.5771L13.8877 12.4149ZM8.02192 12.4149C5.58763 12.4149 3.62261 10.451 3.62261 8.01813C3.62261 5.58527 5.58763 3.6214 8.02192 3.6214C10.4562 3.6214 12.4212 5.58527 12.4212 8.01813C12.4212 10.451 10.4562 12.4149 8.02192 12.4149Z",fill:"#8C8594"})})},17867:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);let s=e=>{let{width:t=54,height:l=16}=e;return(0,n.jsxs)("svg",{width:t,height:l,viewBox:"0 0 54 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M3.03588 11.493C2.57453 10.9741 2.34448 10.3381 2.34448 9.58562C2.34448 8.83381 2.57453 8.19717 3.03588 7.67569C3.49848 7.15292 4.08554 6.89154 4.7983 6.89154C5.45324 6.89154 5.99253 7.10311 6.41491 7.52559V7.03905H8.11951V12.1218H6.43502V11.5473H6.41491C5.99253 12.0287 5.45324 12.2693 4.7983 12.2693C4.08554 12.2693 3.49848 12.0106 3.03588 11.493ZM4.48655 8.72382C4.2653 8.94833 4.15468 9.2356 4.15468 9.58562C4.15468 9.93629 4.26027 10.2216 4.47146 10.4422C4.68265 10.6635 4.96173 10.7735 5.30868 10.7735C5.64181 10.7735 5.91585 10.6616 6.13081 10.4371C6.34703 10.2132 6.45514 9.92917 6.45514 9.58562C6.45514 9.2356 6.34326 8.94833 6.12075 8.72382C5.89951 8.49996 5.62861 8.38739 5.30868 8.38739C4.98184 8.38739 4.70779 8.49996 4.48655 8.72382ZM18.0021 7.03912L16.8009 9.80297L15.5964 7.03912H13.9425V3.60254H12.2378V7.52564C11.8152 7.10347 11.2758 6.89153 10.6206 6.89153C9.90789 6.89153 9.32103 7.15324 8.85839 7.67581C8.39741 8.19752 8.16733 8.8342 8.16733 9.58587C8.16733 10.3384 8.39741 10.9742 8.85839 11.4934C9.32103 12.0108 9.90789 12.2691 10.6206 12.2691C11.2758 12.2691 11.8152 12.0288 12.2378 11.5474H12.2578V12.1215H13.9425V7.74445L16.2224 12.1215H17.3786L20.0236 7.03912H18.0021ZM11.9535 10.4371C11.7385 10.6619 11.4642 10.7734 11.1316 10.7734C10.784 10.7734 10.5056 10.6636 10.2938 10.4422C10.0829 10.2217 9.97708 9.93597 9.97708 9.58587C9.97708 9.23578 10.088 8.94833 10.3088 8.72351C10.5306 8.49956 10.8048 8.38715 11.1316 8.38715C11.4509 8.38715 11.7218 8.49956 11.9435 8.72351C12.1661 8.94833 12.2778 9.23578 12.2778 9.58587C12.2778 9.9291 12.1694 10.2131 11.9535 10.4371ZM22.266 8.38739C22.5861 8.38739 22.857 8.4998 23.0788 8.72376C23.2605 8.90738 23.368 9.1322 23.4014 9.39734C24.3433 9.22573 24.8318 8.79583 25.0769 7.85796V7.03936H23.373V7.52588C22.9504 7.10286 22.411 6.89177 21.7558 6.89177C21.0431 6.89177 20.4562 7.15262 19.9936 7.67605C19.5326 8.1969 19.3026 8.83359 19.3026 9.58526C19.3026 10.3378 19.5326 10.9745 19.9936 11.4928C20.4562 12.0102 21.0431 12.2693 21.7558 12.2693C22.411 12.2693 22.9504 12.029 23.373 11.5477H23.393V12.1217H25.0769V11.2954C24.8318 10.3584 24.3442 9.92849 23.403 9.75601C23.373 10.0246 23.268 10.252 23.0888 10.4373C22.8737 10.6613 22.5994 10.7737 22.266 10.7737C21.9192 10.7737 21.6408 10.6639 21.4291 10.4425C21.2182 10.2219 21.1123 9.93621 21.1123 9.58526C21.1123 9.23602 21.2232 8.94857 21.4441 8.72376C21.6658 8.4998 21.9392 8.38739 22.266 8.38739ZM25.482 11.2705V12.1217H27.1842V9.75001C26.2289 9.91647 25.7321 10.3395 25.482 11.2705ZM37.8568 7.03912V7.52564C37.4342 7.10347 36.8957 6.89153 36.2405 6.89153C35.5277 6.89153 34.9409 7.15324 34.4782 7.67581C34.339 7.83283 34.2215 8.00016 34.1248 8.17778V7.03912H33.0836V5.14707H31.3822V7.03912H30.6678V8.08768C30.6412 8.01818 30.6103 7.95211 30.5753 7.88775C30.4378 7.6329 30.2585 7.4364 30.0376 7.2974C29.8159 7.15753 29.585 7.05542 29.3433 6.98935C29.1032 6.92413 28.8623 6.89153 28.6197 6.89153C28.1179 6.89153 27.6469 7.11892 27.2042 7.57455H27.1842V7.03912H25.482V7.8826C25.5771 8.23527 25.7071 8.515 25.8838 8.73553C26.1739 9.09677 26.5907 9.29928 27.1842 9.4031V9.24865C27.1842 8.99724 27.2876 8.76985 27.496 8.56563C27.7052 8.36055 27.9378 8.25758 28.1946 8.25758C28.4571 8.25758 28.6705 8.35711 28.8331 8.55533C28.9973 8.7544 29.0798 8.98522 29.0798 9.24865V12.1215H30.7846V8.77242C30.7846 8.63342 30.7729 8.50127 30.7479 8.37685H31.3822V10.3281C31.3822 10.5735 31.4072 10.8035 31.4573 11.0197C31.5089 11.2334 31.594 11.4376 31.7115 11.6324C31.8299 11.8263 32.0049 11.9808 32.2367 12.0957C32.4676 12.2107 32.7435 12.2691 33.0636 12.2691C33.3962 12.2691 33.7021 12.2159 33.9831 12.1095L33.5938 10.6799C33.5504 10.6911 33.5088 10.6962 33.4687 10.6962C33.212 10.6962 33.0836 10.462 33.0836 9.99174V8.37685H34.0272C33.8664 8.73982 33.7863 9.14311 33.7863 9.58587C33.7863 10.3384 34.0164 10.9742 34.4782 11.4934C34.9409 12.0108 35.5277 12.2691 36.2405 12.2691C36.8957 12.2691 37.4342 12.0288 37.8568 11.5474H37.8768V12.1215H39.5615V7.03912H37.8568ZM37.5725 10.4371C37.3575 10.6619 37.0841 10.7734 36.7506 10.7734C36.4038 10.7734 36.1246 10.6636 35.9137 10.4422C35.702 10.2217 35.5969 9.93597 35.5969 9.58587C35.5969 9.23578 35.707 8.94833 35.9287 8.72351C36.1496 8.49956 36.4238 8.38715 36.7506 8.38715C37.0707 8.38715 37.3416 8.49956 37.5625 8.72351C37.7851 8.94833 37.8968 9.23578 37.8968 9.58587C37.8968 9.9291 37.7893 10.2131 37.5725 10.4371ZM39.7449 13.3692L41.1403 12.6679C41.3967 13.1027 41.8423 13.3201 42.4778 13.3201C42.7726 13.3201 43.0466 13.2224 43.2999 13.0276C43.5526 12.8322 43.6796 12.534 43.6796 12.1322V11.7543C43.3779 12.0979 42.8386 12.2693 42.063 12.2693C41.3502 12.2693 40.7631 12.0106 40.3005 11.493C39.8392 10.9741 39.6091 10.3381 39.6091 9.58562C39.6091 8.83381 39.8392 8.19717 40.3005 7.67569C40.7631 7.15292 41.3502 6.89154 42.063 6.89154C42.6978 6.89154 43.2276 7.09275 43.6519 7.49454H43.6796V7.03905H45.3842V12.2616C45.3842 13.0859 45.1177 13.7225 44.5847 14.1715C44.0517 14.6218 43.3489 14.847 42.4778 14.847C41.0661 14.847 40.1553 14.354 39.7449 13.3692ZM41.7512 8.72382C41.5299 8.94833 41.4193 9.2356 41.4193 9.58562C41.4193 9.93629 41.5249 10.2216 41.7361 10.4422C41.9473 10.6635 42.2264 10.7735 42.5733 10.7735C42.9065 10.7735 43.1805 10.6616 43.3955 10.4371C43.6117 10.2132 43.7198 9.92917 43.7198 9.58562C43.7198 9.2356 43.6079 8.94833 43.3854 8.72382C43.1642 8.49996 42.8933 8.38739 42.5733 8.38739C42.2465 8.38739 41.9724 8.49996 41.7512 8.72382ZM50.7819 9.82371H47.2017C47.2017 10.1809 47.3136 10.4461 47.5386 10.6182C47.763 10.789 48.0069 10.8744 48.2702 10.8744C48.5468 10.8744 48.7642 10.8369 48.9239 10.7606C49.0848 10.6849 49.2683 10.5341 49.4745 10.3077L50.7064 10.9417C50.1936 11.8268 49.34 12.2693 48.147 12.2693C47.4009 12.2693 46.7617 12.0073 46.2287 11.4826C45.697 10.9585 45.4317 10.3258 45.4317 9.58562C45.4317 8.84546 45.697 8.21141 46.2287 7.68346C46.7617 7.15551 47.4009 6.89154 48.147 6.89154C48.9296 6.89154 49.5656 7.12446 50.0553 7.59029C50.5462 8.05613 50.7919 8.72124 50.7919 9.58562C50.7919 9.704
167 50.7882 9.78425 50.7819 9.82371ZM47.252 8.85322H49.1275C49.0886 8.58925 48.9874 8.38674 48.8233 8.24505C48.6605 8.10206 48.4512 8.03025 48.1948 8.03025C47.9113 8.03025 47.6857 8.10659 47.5185 8.25799C47.3525 8.41003 47.2633 8.60866 47.252 8.85322Z",fill:"#EFB94C"}),(0,n.jsx)("path",{d:"M18.5501 3.40233C18.5561 3.62686 18.5723 3.74639 18.7639 3.8288L18.4966 4.70237C18.0561 4.66082 17.7583 4.57318 17.5344 4.19336C17.1902 4.80791 16.092 4.92031 15.6065 4.40314C15.1368 3.95969 15.178 2.98267 15.7235 2.62507C16.0363 2.36601 16.7028 2.27662 17.2604 2.30178C17.2693 2.13203 17.2418 1.90311 17.1535 1.84092C16.8226 1.6236 16.2181 1.8149 15.8237 1.93721L15.5363 1.07052C16.2768 0.747198 17.599 0.613935 18.1692 1.11524C18.7157 1.49958 18.5156 2.78836 18.5501 3.40233ZM16.8661 3.77377C17.0231 3.77619 17.1718 3.68131 17.2604 3.55366V3.01026C17.0757 3.00226 16.8066 3.01918 16.7058 3.11345C16.484 3.27154 16.5371 3.79222 16.8661 3.77377ZM21.3834 0.781627C22.7749 0.763066 22.925 2.68929 22.5428 3.76346C22.2566 4.65681 21.1138 5.09557 20.4679 4.36532V6.01616L19.1448 6.15373V0.919197H20.3209L20.3743 1.27688C20.634 0.951459 20.9978 0.784412 21.3834 0.781627ZM20.8621 3.76002C21.1963 3.76002 21.3633 3.42756 21.3633 2.76263C21.3491 2.3646 21.3664 2.05661 21.1662 1.83059C20.915 1.66164 20.6277 1.79229 20.4679 2.10229L20.4679 3.50551C20.5744 3.67099 20.6791 3.75748 20.8621 3.76002ZM25.4796 0.781627C26.1108 0.780574 26.4477 1.23137 26.4419 1.88218L26.4419 4.59231H25.1188C25.096 4.42594 25.1748 1.91987 25.0687 1.84779C24.8755 1.64989 24.6519 1.85504 24.4706 2.13669V4.59231H23.1475V0.919197H24.3035L24.3971 1.29751C24.717 0.954712 25.0265 0.783625 25.4796 0.781627ZM30.057 3.40233C30.063 3.62686 30.0793 3.74639 30.2709 3.8288L30.0036 4.70237C29.563 4.66082 29.2652 4.57318 29.0413 4.19336C28.6972 4.80791 27.599 4.92031 27.1134 4.40314C26.6438 3.95969 26.6849 2.98267 27.2304 2.62507C27.5432 2.36602 28.2098 2.27662 28.7673 2.30178C28.7763 2.13203 28.7488 1.90311 28.6604 1.84092C28.3296 1.6236 27.725 1.8149 27.3306 1.93721L27.0433 1.07052C27.7837 0.747197 29.106 0.613935 29.6761 1.11524C30.2226 1.49958 30.0226 2.78836 30.057 3.40233ZM28.3731 3.77377C28.53 3.77619 28.6788 3.68131 28.7673 3.55366V3.01026C28.5827 3.00226 28.3135 3.01918 28.2127 3.11345C27.991 3.27154 28.0441 3.79222 28.3731 3.77377Z",fill:"white"})]})}},45898:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(74848);l(96540);let s=e=>{let{fillColor:t="#0074E8"}=e;return(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M10.1 16.1C10.3761 16.3761 10.8239 16.3761 11.1 16.1L16.95 10.25C17.3366 9.8634 17.3366 9.2366 16.95 8.85C16.5634 8.4634 15.9366 8.4634 15.55 8.85L10.9353 13.4647C10.7501 13.6499 10.4499 13.6499 10.2647 13.4647L8.45 11.65C8.0634 11.2634 7.4366 11.2634 7.05 11.65C6.6634 12.0366 6.6634 12.6634 7.05 13.05L10.1 16.1ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:t})})}},96133:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(74848);l(96540);var s=l(3543);let r=e=>{let{currentStep:t}=e,l=t*(100/s.xy);return(0,n.jsx)("div",{style:{width:"100%",backgroundColor:"#E8E7EA",borderRadius:"5px"},children:(0,n.jsx)("div",{style:{width:"".concat(l,"%"),height:"12px",backgroundColor:"#470399",borderRadius:"20px"}})})}},3543:(e,t,l)=>{l.d(t,{Ay:()=>i,Um:()=>r,ZF:()=>s,b:()=>o,xy:()=>a});var n=function(e){return e.STEP_ONE="1",e.STEP_TWO="2",e.STEP_THREE="3",e.STEP_FOUR="4",e.STEP_FIVE="5",e.STEP_SIX="6",e.STEP_SEVEN="7",e.STEP_EIGHT="8",e}(n||{});let s={1:"Qualification",2:"experience",3:"degree",4:"college",5:"fees",6:"reasons",7:"language",8:"registration"},r={Qualification:"Qualification details",degree:"Preferred Degree Details",college:"Preferred college",experience:"Experience Details",fees:"Your Goals",reasons:"Your Challenges",language:"Preferred languages",preferredBatch:"Enrolment Details",registration:"Registration"},o="last",a=Object.keys(n).length,i=n},94154:(e,t,l)=>{l.r(t),l.d(t,{default:()=>e_});var n=l(74848),s=l(96540),r=l(76424),o=l(80242),a=l(83768),i=l(40308),d=l(73758),c=l(13368),p=l.n(c),u=l(34164),x=l(35385),h=l(13580);let m=e=>{let{bgColor:t="#000",iconColor:l="#fff",...s}=e;return(0,n.jsx)("svg",{width:32,height:32,viewBox:"0 0 32 32",...s,children:(0,n.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,n.jsx)("circle",{cx:"16",cy:"16",r:"16",fill:t,opacity:".7"}),(0,n.jsxs)("g",{stroke:l,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[(0,n.jsx)("path",{d:"M0 8L8 0",transform:"translate(12 12)"}),(0,n.jsx)("path",{d:"M0 8L8 0",transform:"translate(12 12) matrix(-1 0 0 1 8 0)"})]})]})})};var g=l(29965),C=l.n(g),f=l(80465),v=l(2338),b=l(57695),j=l(59346),w=l(67217),y=l(24920),_=l(24068),F=l(73099),N=l(65034),k=l(69152),A=l(35897),L=l(99481);let E=e=>{let{showBottomSheet:t,setShowBottomSheet:l}=e,{formData:r}
1=(0,_.o)(),[o]=(0,b.G4)();(0,s.useEffect)(()=>{t&&(0,d.trackApnaLearnEvent)("counsellor_bottomsheet_shown",{})},[t]);let a=()=>{var e,t;(0,d.trackApnaLearnEvent)("counsellor_bottomsheet_talk_to_counsellor_clicked",{});let n=(null==r?void 0:null===(e=r.counsellor)||void 0===e?void 0:e.phone)||"9999999999";n&&(window.location.href="tel:".concat(n)),(0,d.trackApnaLearnEvent)("Advantage Application Call Agent Button clicked",{pageType:"Exclusive Benefits",cta_clicked:"Talk to Counsellor Bottom Sheet",source:"Mutual Fund Rewards"}),(0,d.trackApnaLearnEvent)("Call now",{pageType:"Application success page",Source:"Talk to Counsellor",Property:null==r?void 0:null===(t=r.counsellor)||void 0===t?void 0:t.phone,CTA:"Bottom Sheet"});let s=()=>{document.hidden||(l(!1),document.removeEventListener("visibilitychange",s))};document.addEventListener("visibilitychange",s)},i=()=>{(0,d.trackApnaLearnEvent)("counsellor_bottomsheet_dismiss_clicked",{}),l(!1)};return o?(0,n.jsx)(N.Ay,{anchor:"bottom",open:t,onClose:i,classes:{paper:"box-shadow-none border-radius-8px-8px-0-0 rounded-t-2xl"},children:(0,n.jsxs)("div",{className:"relative flex min-h-[400px] flex-col items-center justify-between gap-8 px-4 py-4",style:{backgroundImage:"url('https://cdn.apna.co/apna-learn/Apna%20page%20/new/Landing%20Page/ta_bottom_sheet_bg.png')",backgroundSize:"cover",backgroundPosition:"top center"},children:[(0,n.jsx)("button",{type:"button","aria-label":"Close",onClick:i,className:"absolute right-4 top-6 z-20 rounded-full p-2 hover:bg-gray-100",children:(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsxs)("div",{className:"z-10 flex min-h-[350px] flex-1 flex-col items-center justify-between gap-1 pt-4",children:[(0,n.jsxs)("div",{className:"mt-4 flex min-h-[200px] flex-col items-center justify-end gap-1",children:[(0,n.jsx)(L.A,{height:50,width:150}),(0,n.jsxs)("h1",{className:"mb-0 mt-0 text-center font-lato text-[18px] font-bold text-black",children:[" ","Congratulations! An expert counsellor",(0,n.jsx)("br",{})," will call you shortly"," "]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{type:"button",className:"mb-4 mt-0 flex w-full items-center justify-center rounded-[8px] px-6 font-bold text-white",onClick:()=>a(),children:(0,n.jsx)(C(),{src:"https://cdn.apna.co/apna-learn/Apna%20page%20/new/Landing%20Page/track-application-bottom-sheet.png",alt:"Track Application Bottom Sheet",width:150,height:150})}),(0,n.jsx)("button",{type:"button",className:"mt-2 h-[45px] w-full rounded-[8px] bg-[#3F1973] px-6 text-[16px] font-bold text-white",onClick:a,children:"Talk to Counsellor"}),(0,n.jsx)("button",{type:"button",className:"mt-2 h-[30px] w-full rounded-[8px] bg-white px-6 text-[14px] font-semibold text-black underline",onClick:()=>{(0,d.trackApnaLearnEvent)("counsellor_bottonsheet_not_now_clicked",{}),l(!1)},children:"I will wait for the call"})]})]})]})}):(0,n.jsx)(k.A,{open:!0,onClose:i,fullWidth:!!o,maxWidth:o?"xs":"md",PaperProps:{className:"".concat(o?"!absolute !bottom-0 !m-0 !max-h-[90vh] !rounded-t-[16px] !rounded-b-none !w-[100vw]":"!rounded-[4px]")},className:o?"!items-end":"",children:(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[(0,n.jsx)(A.A,{}),(0,n.jsx)("h3",{children:" Talk to your Counsellor to get the next steps to unlock benefits "})]})})};var S=l(56614),H=l(72760);let V=()=>{let e="Finish Learn Form Submission Page",t="Application success page",l=(0,r.useRouter)(),o=(0,r.useSearchParams)(),[c]=(0,b.G4)(),{formData:g,setFormJourneyCompleted:N,setFormData:k}=(0,_.o)(),{phoneNumber:A,accessToken:L}
1=(0,i.rO)(),V=(0,H.Ay)(),[M,Z]=(0,s.useState)(!1),[B,R]=(0,s.useState)(!0),P=(0,w.sF)(),T=(null==g?void 0:g.counsellor)&&(null==g?void 0:g.status)!==f.So.ADMISSION_DONE&&c&&P===w.S2.REVAMPED,D=async()=>{let e=await (0,a.wm)(L||"",A||"");e&&k(e)};(0,s.useEffect)(()=>{A&&L&&D()},[L,A]),(0,s.useEffect)(()=>{{let e=setTimeout(()=>{R(!1)},100);return()=>clearTimeout(e)}},[V]);let I=(0,s.useCallback)(async()=>{(0,d.trackApnaLearnEvent)("Advantage Application Process Screen Closed",{PageType:t}),localStorage.getItem("viewFromIntroductionScreen");let e=null===localStorage.getItem("showRepeatUserModal")||"true"===localStorage.getItem("showRepeatUserModal");c&&e&&localStorage.setItem("showRepeatUserModal","true"),V?(0,x.dF)():l.replace("/")},[V,o]),U=(0,s.useCallback)(()=>{(0,d.trackApnaLearnEvent)("Keep exploring click",{pageName:e}),V?(0,x.dF)():l.replace("/")},[V,o,l]),q=()=>{let e=new URLSearchParams(window.location.search);e.set("applicationTab",y.u.EXPLORE),e.toString(),l.replace("/")};if((0,s.useEffect)(()=>{(0,S.x3)()||V?(0,d.trackApnaLearnEvent)("Advantage Application Process Screen shown",{pageType:t}):(0,d.trackApnaLearnEvent)("Advantage extended form final page shown",{pageName:e}),(null==o?void 0:o.get("registrationSuccess"))&&(0,d.trackApnaLearnEvent)("Advantage Registration Payment Status",{status:"completed",college_name:null==g?void 0:g.college,payment_method:"razorpay",source:null==g?void 0:g.source}),N(!0)},[]),B)return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-[#F4F2F6]",children:(0,n.jsx)(v.A,{})});if(!((0,S.x3)()||V)){var O,z,W,G,Y,X;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p(),{children:(0,n.jsx)("title",{children:"Thank you - Online degree"})}),(0,n.jsx)("div",{className:"min-h-screen bg-[#F4F2F6]",children:(0,n.jsx)("div",{className:"min-h-screen",children:(0,n.jsx)("main",{className:"min-h-screen",children:(0,n.jsx)("div",{className:"apnaLearnCustomGradient flex min-h-screen items-center justify-center",children:(0,n.jsxs)("div",{className:(0,u.A)("mx-auto max-w-[1216px] flex-col items-center space-y-[48px] px-[16px] py-[48px] pt-[96px] md:flex md:space-y-0 md:px-[144px] md:py-[76px]",{"min-h-screen":V}),children:[(0,n.jsx)("div",{className:"mb-[24px] flex w-full justify-center rounded-[12px]",children:(null===(O=g.colleges)||void 0===O?void 0:O.length)===1&&(null===(z=g.colleges[0])||void 0===z?void 0:z.college_aa_assured)?(0,n.jsx)("img",{src:g.colleges[0].college_image,alt:g.colleges[0].college}):(0,n.jsx)(h.A,{className:""})}),(0,n.jsxs)("div",{className:"!mt-0 flex-col items-center space-y-[16px] md:space-y-[8px] md:pt-[64px]",children:[(0,n.jsx)("h1",{className:"m-0 text-center text-[32px] font-[700] leading-[38px] md:text-[40px] md:leading-[52px]",children:"Thank you !"}),(0,n.jsx)("p",{className:"m-0 text-center text-[20px] font-[400] leading-[24px]",children:(null===(W=g.colleges)||void 0===W?void 0:W.length)===1&&(null===(G=g.colleges[0])||void 0===G?void 0:G.college_aa_assured)?(0,n.jsxs)(n.Fragment,{children:["Counsellor from ",(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"font-bold leading-[28px] text-[#0074E8]",children:(null===(Y=g.colleges[0])||void 0===Y?void 0:Y.college_name)||(null===(X=g.colleges[0])||void 0===X?void 0:X.college)}),(0,n.jsx)("br",{}),"will call you shortly with top recommendations."]}):(0,n.jsxs)(n.Fragment,{children:["Counsellor ",(0,n.jsx)("br",{}),"will call you shortly with top recommendations."]})}),(0,n.jsx)("div",{className:"mx-auto grid w-full grid-cols-1 space-x-0 space-y-[16px] md:w-max md:grid-cols-2 md:gap-[24px] md:space-y-0",children:(0,n.jsx)("button",{className:(0,u.A)("w-full cursor-pointer rounded border border-solid border-[#B3BAC5] bg-[#3E1367] px-[16px] py-[10px] text-center text-[14px] font-semibold leading-[20px] text-[#EFB94B] md:!mt-[24px] md:w-max"),type:"button",onClick:U,children:"Explore Apna Advantage"})})]})]})})})})})]})}return(0,n.jsxs)("div",{className:"flex flex-col bg-white",children:[!T&&(0,n.jsxs)("div",{className:"sticky top-0 z-[999] flex w-full items-center p-[16px] md:justify-between ".concat(P===w.S2.REVAMPED?"justify-center":"justify-between"),style:{backgroundImage:"url('https://cdn.apna.c
1o/apna-adv/Assets/ADV%20PATTERN.svg')",backgroundColor:"white",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:[c&&P===w.S2.REVAMPED&&(0,n.jsx)("button",{type:"button",onClick:I,onKeyDown:I,"aria-label":"Close",children:(0,n.jsx)(j.A,{})}),(0,n.jsx)("button",{className:"flex w-full items-center gap-[10px] md:justify-start ".concat(P===w.S2.REVAMPED?"mr-[24px] justify-center":"justify-start"),type:"button",onClick:()=>{c||q()},children:(0,n.jsx)(C(),{src:"https://cdn.apna.co/apna-adv/Assets/LOGO.svg",width:c?141:212,height:c?23:34,alt:"Apna Advantage Icon",priority:!0,className:"object-contain"})}),c?(0,n.jsx)("button",{type:"button",onClick:I,onKeyDown:I,"aria-label":"Close",className:P===w.S2.REVAMPED?"hidden":"",children:(0,n.jsx)(m,{bgColor:"#8C8594",width:24,height:24})}):(0,n.jsx)("button",{type:"button",onClick:q,className:"ml-auto flex h-[48px] items-center justify-center whitespace-nowrap rounded-[4px] bg-[#3E1367] px-[32px] text-[16px] font-semibold text-white",children:"Browse Degree"})]}),(null==g?void 0:g.counsellor)?(0,n.jsx)(F.default,{onBack:I}):(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}),M&&(0,n.jsx)(E,{showBottomSheet:M,setShowBottomSheet:Z})]})};var M=l(3543),Z=l(86715),B=l(15180),R=l(19352),P=l(96133);let T=e=>{let{type:t="B2",color:l="#190A28",children:s,customStyle:r={}}=e,o={color:l,...(()=>{switch(t){case"H1":return{fontSize:"24px",lineHeight:"32px",fontWeight:700};case"H2":return{fontSize:"20px",lineHeight:"28px",fontWeight:700};case"T1":return{fontSize:"16px",lineHeight:"24px",fontWeight:600};case"T2":return{fontSize:"14px",lineHeight:"20px",fontWeight:600};case"T3":return{fontSize:"12px",lineHeight:"16px",fontWeight:600};case"B1":return{fontSize:"16px",lineHeight:"24px",fontWeight:400};case"B2":return{fontSize:"14px",lineHeight:"20px",fontWeight:400};case"B3":return{fontSize:"12px",lineHeight:"16px",fontWeight:400};case"L1":return{fontSize:"10px",lineHeight:"12px",fontWeight:700};case"L2":return{fontSize:"10px",lineHeight:"12px",fontWeight:400};default:return{}}})(),...r};return(0,n.jsx)("span",{style:o,children:s})},D=e=>{let{handleBackClick:t,handleCrossClick:l,header:s,showProgress:r=!0,showBack:o=!0,backgroundColor:a,showRoundCloseButton:i=!1,showCrossButton:d=!0,backButtonColor:c}=e,[p]=(0,b.G4)(),u=(0,_.o)(e=>e.currentStep);return(0,n.jsxs)("div",{className:"sticky top-0 z-50 flex flex-col items-center justify-between gap-[20px] px-[16px] pb-[8px] pt-[12px]",children:[(0,n.jsxs)("div",{className:"flex w-full items-center justify-between ",children:[(0,n.jsxs)("div",{className:"flex w-full items-center gap-[10px]",children:[o&&(0,n.jsx)("button",{type:"button",onClick:t,onKeyDown:t,"aria-label":"Go back",children:(0,n.jsx)(B.A,{color:c||(a?"#FFFFFF":"#190A28")})}),s&&p&&(0,n.jsx)(T,{type:"T1",children:s})]}),d&&(0,n.jsx)("button",{type:"button",onClick:l,onKeyDown:l,"aria-label":"Close",className:i?"flex h-7 w-8 items-center justify-center rounded-full bg-white bg-opacity-20":"",children:(0,n.jsx)(R.A,{fill:a?"#FFFFFF":"#190A28"})})]}),r&&(0,n.jsx)(P.A,{currentStep:Number(u)})]})};var I=l(43725);let U=(0,s.memo)(e=>{var t,l;let{header:r,firstStep:o,showProgress:a=!0,showBack:i=!0,backgroundColor:c,showRoundCloseButton:p=!1,showCrossButton:u=!0,backButtonColor:h,onBackClick:m,onCrossClick:g}=e,C=(0,Z.useRouter)(),f=(0,H.Ay)(),[v]=(0,b.G4)(),{closeModal:j}=(0,I.A)(),w=(0,s.useMemo)(()=>{var e;return(null===(e=C.query)||void 0===e?void 0:e.step)||""},[null===(t=C.query)||void 0===t?void 0:t.step]),y=null===(l=C.query)||void 0===l?void 0:l.step,_=C.pathname.split("/").pop(),F=(0,s.useCallback)(()=>{let e=y||_||w;if(e===M.Ay.STEP_ONE){if(f){(0,x.dF)();return}let e=C.pathname.split("/").slice(0,-2).join("/");C.push(e,void 0,{shallow:!0});return}let t=Math.max(1,parseInt(e||"1",10)-1);if(y)C.push({pathname:C.pathname,query:{...C.query,step:t.toString()}},void 0,{shallow:!0});else{let e=C.pathname.replace(/\d+$/,t.toString());C.push(e,void 0,{shallow:!0})}},[w,C,f,y,_]),N=(0,s.useCallback)(e=>{var t;if(f){(0,x.dF)();return}if(e&&(e.preventDefault(),e.stopPropagation()),null===(t=C.query)||void 0===t?void 0:t.trackAdmission){C.push({pathname:"/leadsFormV2/last",query:{phone_number:C.query.phone_number}},void 0,{shallow:!0});return}localStorage.getItem("viewFromIntroductionScreen");let l=null===localStorage.getItem("showRepeatUserModal")||"true"===localStorage.getItem("showRepeatUserModal");if(v&&l&&localStorage.setItem("showRepeatUserModal","true"),f){(0,x.dF)();return}(0,d.trackApnaLearnEvent)("Advantage_Clicked_Cross_Enrollment_Flow",{screen:null===M.ZF||void 0===M.ZF?void 0:M.ZF[w]}),v?C.replace("/"):j()},[w,f,C,v,j]);return(0,n.jsx)(D,{header:r,handleBackClick:null!=m?m:F,handleCrossClick:null!=g?g:N,showProgress:a,showBack:i,backgroundColor:c,showRoundCloseButton:p,showCrossButton:u,backButtonColor:h})}),q=["Postgraduate","Graduate","Diploma"],O=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],z=e=>{var t,l;let{stepFormData:r,handleNextStepClicked:o}=e,i=(0,Z.useRouter)(),c=(null===(t=i.query)||void 0===t?void 0:t.collegeSlug)||"",{formData:p,setFormData:h,phoneNumber:m,accessToken:g}
1=(0,_.o)(),[C,f]=(0,s.useState)(!1),{isOpen:v}=(0,I.A)(),b=(0,s.useRef)(null),j=e=>{h({highest_education:e}),f(q.includes(e)),(0,d.trackApnaLearnEvent)("Advantage_Qualification_Selected",{highest_qualification:e})};(0,s.useEffect)(()=>{C&&b.current&&setTimeout(()=>{var e,t;let l=null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect();l&&l.top>=0&&l.bottom<=window.innerHeight||null===(t=b.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"})},50)},[C]);let w=e=>{h({pursuing_graduation:e}),(0,d.trackApnaLearnEvent)("Advantage_Pursuing_Selected",{pursuing:e})},y=async()=>{try{o();let e=await (0,a.Vj)({data:{highest_education:p.highest_education,pursuing_graduation:p.pursuing_graduation},fieldsToUpdate:["highest_education","pursuing_graduation"],college_slug:c},g,m);if((0,d.trackApnaLearnEvent)("Advantage_Clicked_Next_Qualification",{highest_qualification:p.highest_education,pursuing_graduation:(null==p?void 0:p.pursuing_graduation)||"null"}),v){let t={...i.query,step:String(e)};i.push({pathname:i.pathname,query:t},void 0,{shallow:!0})}else i.push("/leadsForm/".concat(e),void 0,{shallow:!0})}catch(e){o({isError:!0}),console.error(e)}};return(0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage_Viewed_Qualification_Screen",{})},[]),(0,s.useEffect)(()=>{f(q.includes(p.highest_education))},[p.highest_education]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==r?void 0:r.header,firstStep:p.next_step}),(0,n.jsxs)("div",{className:"mb-8 flex h-full flex-col md:rounded-[12px] bg-white p-4 md:mb-0 md:bg-[#FAFAFA]",children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px] md:font-bold",children:null==r?void 0:r.title}),(0,n.jsx)("form",{className:(0,u.A)("flex-1 overflow-auto ",{"pb-[40px] md:pb-28":!C,"pb-0 md:pb-0":C}),children:(0,n.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 md:gap-4",children:null==r?void 0:null===(l=r.option)||void 0===l?void 0:l.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center rounded-lg border bg-white p-2.5 px-4 transition md:border-none",children:[(0,n.jsx)("input",{type:"radio",name:"qualification",value:e,checked:p.highest_education===e,onChange:()=>j(e),className:"mr-3 h-5 w-5 accent-[#7936BC]"}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e})]},e))})}),C&&(0,n.jsxs)("div",{ref:b,className:"mb-4",children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px] md:font-bold",children:"Are you currently pursuing this course?"}),(0,n.jsx)("form",{className:(0,u.A)("flex-1 overflow-auto md:pb-0",{"pb-[40px]":!C,"pb-0":C}),children:(0,n.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 md:gap-4",children:null==O?void 0:O.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center rounded-lg border bg-white p-2.5 px-4 transition md:border-none",children:[(0,n.jsx)("input",{type:"radio",name:"qualification",value:e.value,checked:p.pursuing_graduation===e.value,onChange:()=>w(e.value),className:"mr-3 h-5 w-5 accent-[#7936BC]"}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e.label})]},e.value))})})]}),(0,n.jsx)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFFFF] transition ".concat(p.highest_education&&(!C||p.pursuing_graduation)?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:!p.highest_education||C&&!p.pursuing_graduation,onClick:y,children:"Next"})})]})]})},W=()=>(0,n.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_18639_66477)",children:(0,n.jsx)("path",{d:"M8.60103 3.64822C9.03856 3.44067 9.51677 3.33301 10.001 3.33301C10.4853 3.33301 10.9635 3.44067 11.401 3.64822L19.5244 7.49655C19.6659 7.56352 19.7857 7.66901 19.87 7.80092C19.9543 7.93282 19.9998 8.08582 20.0012 8.24237C20.0026 8.39892 19.9598 8.5527 19.8778 8.68609C19.7959 8.81947 19.678 8.92707 19.5377 8.99655L11.4544 13.0065C11.0027 13.2309 10.5053 13.3476 10.001 13.3476C9.49675 13.3476 8.99932 13.2309 8.54769 13.0065L1.66769 9.59322V13.3332C1.66769 13.5542 1.5799 13.7662 1.42362 13.9225C1.26734 14.0788 1.05537 14.1665 0.834361 14.1665C0.613347 14.1665 0.401386 14.0788 0.245105 13.9225C0.088825 13.7662 0.00102757 13.5542 0.00102757 13.3332V8.29155C-0.0071639 8.12673 0.0337642 7.96319 0.118624 7.82166C0.203484 7.68013 0.328454 7.56698 0.477694 7.49655L8.60103 3.64822ZM3.33436 12.2815V14.9999C3.33438 15.1095 3.35604 15.218 3.39808 15.3193C3.44012 15.4205 3.50172 15.5125 3.57936 15.5899L3.58269 15.5949L3.62103 15.6299L3.72103 15.7232C3.80436 15.801 3.92492 15.9049 4.08269 16.0349C4.39436 16.2899 4.84436 16.6265 5.40603 16.9649C6.52269 17.6332 8.12936 18.3332 10.001 18.3332C11.8727 18.3332 13.481 17.6332 14.596 16.9649C15.1959 16.6047 15.7606 16.189 16.2827 15.7232L16.3827 15.6299L16.4094 15.6032L16.4194 15.5932L16.421 15.5915L16.4244 15.5899C16.5017 15.5124 16.563 15.4203 16.6047 15.3191C16.6465 15.2179 16.6679 15.1094 16.6677 14.9999V12.2799L12.1944 14.4999C11.5127 14.8382 10.762 15.0143 10.001 15.0143C9.24003 15.0143 8.48935 14.8382 7.80769 14.4999L3.33436 12.2815Z",fill:"#1C1C1C"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_18639_66477",children:(0,n.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),G=e=>(0,n.jsxs)("svg",{...e,width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2224 15C7.30032 13.7591 4.59082 12.677 4.59082 9.57417C4.59082 6.26512 7.10911 4.51052 9.85373 4.44446C12.5993 4.51101 15.1171 6.26512 15.1171 9.57417C15.1176 12.677 12.4076 13.7591 12.4856 15H7.2224Z",fill:"url(#paint0_radial_7025_1829)"}),(0,n.jsx)("path",{d:"M7.51465 14.5207C7.51465 14.4786 7.54879 14.4445 7.5909 14.4445H12.1168C12.1589 14.4445 12.193 14.4786 12.193 14.5207V15.9942C12.193 17.2861 11.1457 18.3333 9.85383 18.3333C8.56194 18.3333 7.51465 17.2861 7.51465 15.9942V14.5207Z",fill:"#4D3951"}
1),(0,n.jsx)("g",{filter:"url(#filter0_i_7025_1829)",children:(0,n.jsx)("rect",{x:"6.92969",y:"13.8889",width:"5.84795",height:"2.77778",rx:"1.38889",fill:"#8E6F94"})}),(0,n.jsx)("path",{opacity:"0.7",d:"M9.85368 3.05558V1.66669",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{opacity:"0.7",d:"M13.3625 3.94878L14.0935 2.74597",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{opacity:"0.7",d:"M6.34521 3.94878L5.61422 2.74597",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{opacity:"0.7",d:"M15.9302 6.3889L17.1963 5.69446",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{opacity:"0.7",d:"M3.77734 6.3889L2.51122 5.69446",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{opacity:"0.7",d:"M16.8713 9.72224H18.3333",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("path",{opacity:"0.7",d:"M1.66643 9.72224H3.12842",stroke:"#947559","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,n.jsx)("ellipse",{cx:"9.85383",cy:"9.44445",rx:"2.33918",ry:"2.22222",fill:"#FFD166"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("filter",{id:"filter0_i_7025_1829",x:"6.92969",y:"13.8889",width:"5.8479",height:"2.77777",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,n.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,n.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{dy:"-2"}),(0,n.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.695953 0 0 0 0 0.58709 0 0 0 0 0.717023 0 0 0 1 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_7025_1829"})]}),(0,n.jsxs)("radialGradient",{id:"paint0_radial_7025_1829",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(9.85398 9.72224) rotate(90) scale(7.14365 7.12386)",children:[(0,n.jsx)("stop",{"stop-color":"#FFD166"}),(0,n.jsx)("stop",{offset:"0.99971","stop-color":"#FC9F5B"})]})]})]}),Y=e=>{var t,l,r;let{stepFormData:o,handleNextStepClicked:i}=e,c=(0,Z.useRouter)();null===(t=c.query)||void 0===t||t.step;let p=(null===(l=c.query)||void 0===l?void 0:l.collegeSlug)||"",[u]=(0,b.G4)(),{formData:h,setFormData:m,accessToken:g,phoneNumber:C}=(0,_.o)(),{isOpen:f}=(0,I.A)(),v=e=>{m({degree:e.degree_name,degree_id:e.degree_id}),(0,d.trackApnaLearnEvent)("Advantage_Degree_Selected",{preferred_degree:null==e?void 0:e.degree_name})},j=async()=>{if(null==h?void 0:h.degree)try{i();let e=await (0,a.Vj)({data:{degree:h.degree,degree_id:h.degree_id},fieldsToUpdate:["degree","degree_id"],college_slug:p},g,C);if((0,d.trackApnaLearnEvent)("Advantage_Clicked_Next_Degree",{preferred_degree:null==h?void 0:h.degree}),f){let t={...c.query,step:String(e)};c.push({pathname:c.pathname,query:t},void 0,{shallow:!0})}else c.push("/leadsForm/".concat(e),void 0,{shallow:!0})}catch(e){i({isError:!0}),console.error("Error posting form data:",e)}};(0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage_Viewed_Degree_Screen",{})},[]);let w=null==o?void 0:o.option.some(e=>e.degrees.some(e=>e.degree_id===(null==h?void 0:h.degree_id)));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==o?void 0:o.header,firstStep:h.next_step}),(0,n.jsxs)("div",{className:"rounded-[12px] bg-white p-4 md:bg-[#FAFAFA]",children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px] md:font-bold",children:null==o?void 0:o.title}),(0,n.jsx)("div",{className:"mb-6 flex flex-col gap-6",children:null==o?void 0:null===(r=o.option)||void 0===r?void 0:r.map(e=>{var t;return(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"mb-3 text-sm font-semibold",children:null==e?void 0:e.category}),(0,n.jsx)("form",{className:(null==e?void 0:null===(t=e.degrees)||void 0===t?void 0:t.length)===1?"w-full":"grid grid-cols-2 gap-3 md:grid-cols-3 md:gap-4",children:null==e?void 0:e.degrees.map(e=>(0,n.jsxs)("label",{className:"flex w-[100%] cursor-pointer items-center rounded-lg border p-2.5 px-4 transition md:w-[100%] md:border-none md:bg-white",style:{boxSizing:"border-box"},children:[(0,n.jsx)("input",{type:"radio",name:"degree",value:null==e?void 0:e.degree_name,checked:(null==h?void 0:h.degree_id)===(null==e?void 0:e.degree_id),onChange:()=>v(e),className:"mr-3 h-5 w-5 accent-[#7936BC]"}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:null==e?void 0:e.degree_name})]},null==e?void 0:e.degree_id))})]},null==e?void 0:e.category)})}),(0,n.jsxs)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:[u&&(0,n.jsxs)("div",{className:"relative -mx-4 -mt-3 flex items-center justify-center gap-2 bg-[#48DB85] px-4 pb-2 pt-3",children:[(0,n.jsx)(W,{}),(0,n.jsx)("span",{className:"mx-1 text-center text-[12px] font-[600] leading-[14px] text-[#1C1C1C]",children:"Learn from top universities anytime, anywhere"})]}),(0,n.jsxs)("div",{className:"rounded-md p-1 pt-2 ".concat(u?"":"bg-[#DFFFEC]"),children:[!u&&(0,n.jsxs)("div",{className:"relative flex items-center justify-center gap-2",children:[(0,n.jsx)(G,{className:"absolute left-3 top-0 md:-top-1"}),(0,n.jsx)("span",{className:"mx-8 mb-2 text-center text-[14px] font-[600] leading-[14px] text-[#339C69]",children:"Online degrees (UGC approved) save â¹5â8Lakhs compared to offline degrees"})]}),(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFFFF] transition ".concat(w?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:!w,style:{boxSizing:"border-box"},onClick:j,children:"Next"})]})]})]})]})},X=()=>(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M15.7451 7.72792C15.2337 7.63999 14.7383 7.52019 14.2726 7.37184C10.8587 6.28446 8.92885 3.64262 8.2939 0.24166C8.23361 -0.0805314 7.74291 -0.0805751 7.68262 0.24166C6.94467 4.19356 4.48867 6.98826 0.25261 7.73295C-0.0842802 7.79215 -0.084188 8.25198 0.252795 8.31104C4.44975 9.04633 6.94873 11.8357 7.68414 15.7561C7.73044 16.0031 8.0058 16.
10044 7.9901 15.9986C8.14064 15.9985 8.26943 15.8959 8.29542 15.7555C8.66984 13.7338 9.72104 10.9872 12.6031 9.38351C13.5238 8.8717 14.5812 8.50933 15.7458 8.30632C15.8932 8.28066 16.0002 8.15885 16 8.01688C15.9998 7.87487 15.8925 7.75328 15.7451 7.72792Z",fill:"#7936BC"}),(0,n.jsx)("path",{d:"M10.5804 7.9041C10.4099 7.87479 10.2448 7.83486 10.0896 7.78541C8.9516 7.42295 8.30832 6.54233 8.09666 5.40868C8.07657 5.30128 7.913 5.30127 7.8929 5.40868C7.64692 6.72598 6.82825 7.65755 5.41623 7.90577C5.30394 7.92551 5.30397 8.07878 5.4163 8.09847C6.81528 8.34357 7.64828 9.27337 7.89341 10.5802C7.90885 10.6625 8.00063 10.6629 7.9954 10.661C8.04558 10.6609 8.08851 10.6268 8.09717 10.58C8.22198 9.90606 8.57238 8.99051 9.53306 8.45596C9.83996 8.28536 10.1924 8.16457 10.5806 8.0969C10.6298 8.08834 10.6654 8.04774 10.6654 8.00042C10.6653 7.95308 10.6295 7.91255 10.5804 7.9041Z",fill:"#F1EDF4"})]}),K=[{id:"cash_benefits",label:(0,n.jsxs)(n.Fragment,{children:["Cashback",(0,n.jsx)("br",{})," on EMI payment",(0,n.jsx)("br",{})," upto â¹10,000",(0,n.jsx)("sup",{children:"*"})]}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0086 8.21655C16.96 8.2143 16.9114 8.21346 16.8628 8.21405H14.8336C13.1736 8.21405 11.752 9.53155 11.752 11.2499C11.752 12.9682 13.1736 14.2857 14.8345 14.2857H16.862C16.9131 14.2863 16.9617 14.2852 17.0078 14.2824C17.3503 14.2602 17.6731 14.1143 17.9162 13.872C18.1593 13.6297 18.3061 13.3073 18.3295 12.9649C18.3328 12.9157 18.3328 12.8632 18.3328 12.8149V9.68488C18.3328 9.63655 18.3328 9.58405 18.3295 9.53488C18.3062 9.19256 18.1594 8.87033 17.9165 8.62802C17.6736 8.38571 17.351 8.2398 17.0086 8.21738M14.6561 12.0599C15.0836 12.0599 15.4311 11.6982 15.4311 11.2507C15.4311 10.8032 15.0836 10.4415 14.6561 10.4415C14.2286 10.4415 13.882 10.8032 13.882 11.2507C13.882 11.6982 14.2278 12.0599 14.6561 12.0599Z",fill:"url(#paint0_linear_12383_19545)"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8615 15.5003C16.8894 15.4993 16.9172 15.5049 16.9425 15.5167C16.9679 15.5284 16.9902 15.5459 17.0075 15.5678C17.0249 15.5897 17.0368 15.6153 17.0424 15.6427C17.0481 15.6701 17.0472 15.6984 17.0398 15.7253C16.8782 16.302 16.6223 16.7937 16.2115 17.207C15.6107 17.8128 14.8482 18.082 13.9065 18.2095C12.9915 18.3337 11.8232 18.3337 10.3465 18.3337H8.649C7.17317 18.3337 6.004 18.3337 5.089 18.2095C4.14734 18.082 3.38484 17.8128 2.784 17.207C2.18317 16.6028 1.9165 15.8337 1.78984 14.8853C1.6665 13.962 1.6665 12.7837 1.6665 11.2962V11.2045C1.6665 9.71699 1.6665 8.53783 1.78984 7.61616C1.9165 6.66699 2.18317 5.90033 2.78317 5.29283C3.384 4.68783 4.1465 4.41783 5.08817 4.29116C6.004 4.16699 7.17317 4.16699 8.649 4.16699H10.3465C11.8223 4.16699 12.9915 4.16699 13.9065 4.29116C14.8482 4.41866 15.6107 4.68783 16.2115 5.29283C16.6223 5.70699 16.8782 6.19866 17.0398 6.77616C17.047 6.80306 17.0478 6.83127 17.0421 6.85853C17.0364 6.88578 17.0244 6.91133 17.0071 6.93312C16.9897 6.95491 16.9676 6.97233 16.9423 6.98401C16.917 6.99568 16.8893 7.00126 16.8615 7.00033H14.834C12.5557 7.00033 10.5482 8.81449 10.5482 11.2503C10.5482 13.6862 12.5565 15.5003 14.8348 15.5003H16.8615ZM4.67817 7.40533C4.59883 7.40565 4.52033 7.42161 4.44716 7.45227C4.37398 7.48294 4.30756 7.52771 4.25169 7.58405C4.19582 7.64038 4.15159 7.70717 4.12154 7.7806C4.09148 7.85402 4.07617 7.93265 4.0765 8.01199C4.0765 8.34783 4.34567 8.61949 4.67817 8.61949H7.8915C8.22484 8.61949 8.494 8.34783 8.494 8.01199C8.49445 7.85168 8.43124 7.69775 8.31828 7.584C8.20531 7.47025 8.05182 7.40599 7.8915 7.40533H4.67817Z",fill:"url(#paint1_linear_12383_19545)"}),(0,n.jsx)("path",{d:"M6.48047 3.35395L8.11214 2.15145C8.53797 1.83679 9.05349 1.66699 9.58297 1.66699C10.1124 1.66699 10.628 1.83679 11.0538 2.15145L12.6946 3.36061C12.008 3.33395 11.2413 3.33395 10.4021 3.33395H8.5938C7.82547 3.33395 7.11964 3.33395 6.48047 3.35395Z",fill:"url(#paint2_linear_12383_19545)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear_12383_19545",x1:"11.752",y1:"11.3173",x2:"18.3327",y2:"11.2404",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37017B"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#7504FF"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_12383_19545",x1:"1.666
15",y1:"11.4077",x2:"17.0458",y2:"11.2276",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37017B"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#7504FF"})]}),(0,n.jsxs)("linearGradient",{id:"paint2_linear_12383_19545",x1:"6.48047",y1:"2.53262",x2:"12.6857",y2:"2.28699",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37017B"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#7504FF"})]})]})]}),{})},{id:"1on1_interview_preparation",label:(0,n.jsxs)(n.Fragment,{children:["1:1",(0,n.jsx)("br",{})," Interview",(0,n.jsx)("br",{})," preparation"]}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M18.3332 11.232V15.0003C18.3332 15.6634 18.0698 16.2993 17.6009 16.7681C17.1321 17.2369 16.4962 17.5003 15.8332 17.5003H4.1665C3.50346 17.5003 2.86758 17.2369 2.39874 16.7681C1.9299 16.2993 1.6665 15.6634 1.6665 15.0003V11.232L2.12734 11.4628C4.56978 12.693 7.26653 13.3337 10.0013 13.3334C12.736 13.3331 15.4327 12.6919 17.8748 11.4612L18.3332 11.232ZM11.6665 1.66699C12.3295 1.66699 12.9654 1.93038 13.4343 2.39923C13.9031 2.86807 14.1665 3.50395 14.1665 4.16699V5.00033H15.8332C16.4962 5.00033 17.1321 5.26372 17.6009 5.73256C18.0698 6.2014 18.3332 6.83728 18.3332 7.50033V9.36866L17.1273 9.97199C14.9699 11.0596 12.5921 11.639 10.1761 11.6659C7.76019 11.6927 5.37013 11.1663 3.189 10.127L2.64984 9.86032L1.6665 9.36866V7.50033C1.6665 6.83728 1.9299 6.2014 2.39874 5.73256C2.86758 5.26372 3.50346 5.00033 4.1665 5.00033H5.83317V4.16699C5.83317 3.50395 6.09656 2.86807 6.5654 2.39923C7.03424 1.93038 7.67013 1.66699 8.33317 1.66699H11.6665ZM9.99984 8.33366C9.77882 8.33366 9.56686 8.42146 9.41058 8.57774C9.2543 8.73402 9.1665 8.94598 9.1665 9.16699C9.16596 9.27643 9.18697 9.3849 9.22834 9.48621C9.26972 9.58753 9.33064 9.6797 9.40764 9.75747C9.48463 9.83524 9.57619 9.89708 9.67708 9.93946C9.77798 9.98185 9.88624 10.0039 9.99567 10.0045C10.1051 10.005 10.2136 9.98403 10.3149 9.94265C10.4162 9.90128 10.5084 9.84036 10.5861 9.76336C10.6639 9.68637 10.7258 9.59481 10.7681 9.49391C10.8105 9.39302 10.8326 9.28476 10.8332 9.17533C10.8332 8.70699 10.4598 8.33366 9.99984 8.33366ZM11.6665 3.33366H8.33317C8.11216 3.33366 7.9002 3.42146 7.74392 3.57774C7.58763 3.73402 7.49984 3.94598 7.49984 4.16699V5.00033H12.4998V4.16699C12.4998 3.94598 12.412 3.73402 12.2558 3.57774C12.0995 3.42146 11.8875 3.33366 11.6665 3.33366Z",fill:"url(#paint0_linear_12383_19552)"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_12383_19552",x1:"1.6665",y1:"9.75958",x2:"18.333",y2:"9.57031",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37017B"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#7504FF"})]})})]}),{})},{id:"direct_company_hr",label:(0,n.jsxs)(n.Fragment,{children:["Direct",(0,n.jsx)("br",{})," access to",(0,n.jsx)("br",{})," company HRs"]}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M12.9165 6.24967C12.9165 6.6327 12.8411 7.01197 12.6945 7.36583C12.5479 7.7197 12.3331 8.04123 12.0622 8.31207C11.7914 8.58291 11.4699 8.79775 11.116 8.94432C10.7621 9.0909 10.3829 9.16634 9.99984 9.16634C9.61682 9.16634 9.23754 9.0909 8.88368 8.94432C8.52981 8.79775 8.20828 8.58291 7.93744 8.31207C7.6666 8.04123 7.45176 7.7197 7.30519 7.36583C7.15861 7.01197 7.08317 6.6327 7.08317 6.24967C7.08317 5.47613 7.39046 4.73426 7.93744 4.18728C8.48442 3.6403 9.22629 3.33301 9.99984 3.33301C10.7734 3.33301 11.5153 3.6403 12.0622 4.18728C12.6092 4.73426 12.9165 5.47613 12.9165 6.24967ZM14.9998 13.7497C14.9998 15.3605 12.7615 16.6663 9.99984 16.6663C7.23817 16.6663 4.99984 15.3605 4.99984 13.7497C4.99984 12.1388 7.23817 10.833 9.99984 10.833C12.7615 10.833 14.9998 12.1388 14.9998 13.7497ZM5.93484 4.16634C6.08317 4.16634 6.22706 4.18023 6.3665 4.20801C6.01649 4.83153 5.83282 5.53463 5.83317 6.24967C5.83317 6.97301 6.01734 7.65384 6.3415 8.24634C6.20984 8.27134 6.07428 8.28384 5.93484 8.28384C4.7565 8.28384 3.80067 7.36217 3.80067 6.22551C3.80067 5.08884 4.7
1565 4.16634 5.93484 4.16634ZM4.539 15.8213C4.0665 15.2555 3.74984 14.5613 3.74984 13.7497C3.74984 12.963 4.04734 12.2863 4.4965 11.7305C2.90817 11.8538 1.6665 12.7222 1.6665 13.7738C1.6665 14.8363 2.93067 15.7113 4.539 15.8213ZM14.1665 6.24967C14.1665 6.97301 13.9823 7.65384 13.6582 8.24634C13.7893 8.27134 13.9248 8.28384 14.0648 8.28384C15.2432 8.28384 16.1982 7.36217 16.1982 6.22551C16.1982 5.08884 15.244 4.16634 14.0657 4.16634C13.9173 4.16634 13.7734 4.18023 13.634 4.20801C13.9732 4.81134 14.1665 5.50801 14.1665 6.24967ZM15.4607 15.8213C17.069 15.7113 18.3332 14.8363 18.3332 13.7738C18.3332 12.7213 17.0907 11.8538 15.5032 11.7305C15.9532 12.2863 16.2498 12.963 16.2498 13.7497C16.2498 14.5613 15.9332 15.2555 15.4607 15.8213Z",fill:"url(#paint0_linear_12383_19557)"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_12383_19557",x1:"1.6665",y1:"10.1478",x2:"18.3321",y2:"9.92308",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#37017B"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#7504FF"})]})})]}),{})}],Q=e=>{var t,l;let{stepFormData:r,isLoading:o,handleNextStepClicked:i}=e,c=(0,Z.useRouter)(),p=(null===(t=c.query)||void 0===t?void 0:t.collegeSlug)||"",{isOpen:u}=(0,I.A)(),[h]=(0,b.G4)(),{formData:m,setFormData:g,accessToken:f,phoneNumber:j}=(0,_.o)();(0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage_Viewed_Fees_Screen",{})},[]),(0,s.useEffect)(()=>{g({emi:"Others"})},[]);let w=async()=>{try{i();let e=await (0,a.Vj)({data:{your_goal:m.emi,emi:!0},fieldsToUpdate:["your_goal","emi"],college_slug:p},f,j);if((0,d.trackApnaLearnEvent)("Advantage_Clicked_Next_Fees",{convert_to_emi:m.emi}),u){let t={...c.query,step:String(e)};c.push({pathname:c.pathname,query:t},void 0,{shallow:!0})}else c.push("/leadsForm/".concat(e),void 0,{shallow:!0})}catch(e){i({isError:!0}),console.error("Error posting form data:",e)}},y=e=>{(0,d.trackApnaLearnEvent)("Advantage_Fees_Conversion_Selected",{convert_to_emi:e}),g({emi:e})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==r?void 0:r.header,firstStep:m.next_step}),(0,n.jsxs)("div",{className:"scrollbar-hide overflow-y-scroll bg-white p-4 pb-20 md:rounded-[12px] md:bg-[#FAFAFA]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[o?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px] ",children:null==r?void 0:r.title}),(0,n.jsx)("form",{className:"space-y-3 md:grid md:grid-cols-1 md:gap-3 md:space-y-0",children:null==r?void 0:null===(l=r.option)||void 0===l?void 0:l.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)("label",{htmlFor:"batch-".concat(t),className:"flex cursor-pointer flex-col rounded-lg border pb-2 pt-2 transition md:border-none md:bg-white",children:(0,n.jsxs)("div",{className:"flex items-center pl-2",children:[(0,n.jsx)("input",{type:"radio",id:"batch-".concat(t),name:"degree",value:e,onChange:()=>y(e),className:"mr-3 h-5 w-5 accent-[#7936BC]"}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e})]})})},e))}),h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"text-left text-[16px] font-semibold leading-[20px] text-[#190A28] my-6",children:"Program details"}),(0,n.jsx)("div",{className:"relative z-1 mt-4",children:(0,n.jsxs)("div",{className:"flex items-center justify-between rounded-t-[12px] bg-[#48DB85] px-4 pb-3 pt-1",children:[(0,n.jsx)("p",{className:"font-inter text-[10px] font-bold text-[#1C1523]",children:"Cashback on your first EMI payment"}),(0,n.jsx)("p",{className:"font-inter text-[10px] font-bold text-[#327854]",children:"T&C apply*"})]})}),(0,n.jsxs)("div",{className:"relative -mt-2 mb-[32px] flex h-40 w-full items-start gap-2 overflow-hidden rounded-[8px] bg-[#F4F2F6]",children:[(0,n.jsx)(C(),{src:"https://cdn.apna.co/apna-learn/Apna%20page%20/new/Landing%20Page/callout_pic_new.png",alt:"Course Fee Step",layout:"fill",className:"scale-102 rounded-[8px] object-cover",style:{objectPosition:"center center"}}),(null==r?void 0:r.message)&&(()=>{let{message:e}=r,t=e.match(/Monthly Fees\s*<b>â¹\s*([\d,\s]+(?:\s*to\s*â¹\s*[\d,\s]+)?[^<]*)/i),l=e.match(/Program Fees\s*<b>â¹\s*([\d,\s]+(?:\s*to\s*â¹\s*[\d,\s]+)?[^<]*)/i),s="";if(t){let e=t[1].trim(),l=e.match(/^([\d,\s]+)/);s=l?l[1].trim():e}let o=l?l[1].trim():"";return(0,n.jsxs)("div",{className:"absolute inset-0 flex flex-col px-3 pb-1 pt-3 text-white",children:[s&&(0,n.jsxs)("div",{className:"flex flex-col justify-center py-2 text-left ",children:[(0,n.jsxs)("div",{className:"-mt-1 flex flex-col gap-2",children:[(0,n.jsx)("div",{className:"relative w-fit roun
1ded-md px-2 py-1 bg-[#ED767E] flex items-center justify-center shimmer-effect overflow-hidden",children:(0,n.jsx)("span",{className:"font-inter text-[10px] font-bold text-white",children:"Limited time offer"})}),(0,n.jsx)("div",{className:"my-0 font-medium font-Inter text-[12px]",children:"EMI starts from"})]}),(0,n.jsxs)("div",{className:"mb-4 text-[24px] font-bold font-Inter",children:["â¹",s,"/month"]})]}),o&&(0,n.jsx)("div",{className:"pb-2 text-lef font-Inter text-[12px]",children:(0,n.jsxs)("div",{children:["Total program fee: â¹",o]})})]})})()]})]}):(0,n.jsxs)("div",{className:"mb-4 mt-6 flex items-start gap-2 rounded-[8px] bg-[#F4F2F6] p-2",children:[(0,n.jsx)("div",{className:"mt-1",children:(0,n.jsx)(X,{})}),(0,n.jsx)("p",{className:"mb-0 text-[12px] leading-5 text-[#190A28]",dangerouslySetInnerHTML:{__html:(null==r?void 0:r.message)||""}})]}),(0,n.jsx)(L.A,{}),(0,n.jsx)("h2",{className:"relative my-4 overflow-hidden pr-2 text-left text-[14px] font-[700] leading-[20px] text-[#3E1367] before:absolute before:inset-0 before:animate-text-shimmer before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",style:{background:"linear-gradient(89.38deg, #37017B 0.52%, #7504FF 99.47%)",backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent"},children:"EXCLUSIVE BENEFITS. ZERO EXTRA COST"}),h&&(0,n.jsx)("div",{className:"flex justify-between md:mb-0 ".concat("gap-2"),children:K.map(e=>h?(0,n.jsxs)("div",{className:"flex h-[130px] w-[204px] flex-col items-start justify-center gap-2 rounded-2xl px-2 py-4 transition md:border-none md:bg-white",style:{border:"1px solid #0000001A",background:"linear-gradient(222.88deg, #F4F2F6 0.78%, #E3DFFF 99.22%)"},children:[e.icon,(0,n.jsx)("span",{className:"font-['Lato'] font-bold text-black",style:{fontSize:"12px",lineHeight:"16px"},children:e.label})]},e.id):(0,n.jsxs)("div",{className:"flex w-fit items-center gap-2 rounded-2xl border px-3 py-2 transition md:border-none md:bg-white",children:[e.icon,(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e.label})]},e.id))})]}),(0,n.jsx)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFFFF] transition ".concat(null!==m.emi?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:null===m.emi,onClick:()=>w(),children:"Next"})})]})]})},$=[{label:"Learn while working at your own pace",icon:(0,n.jsx)(()=>(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0115 2C9.70679 0.849849 8.63211 0 7.35312 0H5.9807C4.7017 0 3.62702 0.849849 3.32232 2C3.26586 2.21308 3.23584 2.43647 3.23584 2.66667H2.05881C0.848263 2.66667 -0.100976 3.67651 0.00862206 4.84774L0.314889 8.12072C0.33806 8.36833 0.429923 8.59502 0.571203 8.78369L0.860955 11.5987C1.00127 12.9619 2.18201 14 3.59219 14H9.74073C11.1509 14 12.3316 12.9619 12.472 11.5987L12.7616 8.78433C12.9032 8.59554 12.9952 8.36861 13.0184 8.12071L13.3247 4.84774C13.4343 3.67651 12.4851 2.66667 11.2745 2.66667H10.098C10.098 2.43647 10.068 2.21308 10.0115 2ZM7.35312 1.33333H5.9807C5.4727 1.33333 5.02917 1.60147 4.79187 2H8.54194C8.30464 1.60147 7.86111 1.33333 7.35312 1.33333ZM2.05881 4H11.2745C11.678 4 11.9945 4.33661 11.9579 4.72702L11.6517 8L7.35267 8C7.35267 7.63181 7.04544 7.33333 6.66646 7.33333C6.28747 7.33333 5.98025 7.63181 5.98025 8H1.68168L1.37541 4.72702C1.33888 4.33661 1.65529 4 2.05881 4ZM5.98025 9.33333H2.00705L2.22657 11.466C2.29673 12.1476 2.8871 12.6667 3.59219 12.6667H9.74073C10.4458 12.6667 11.0362 12.1476 11.1063 11.466L11.3259 9.33333H7.35267C7.35267 9.70152 7.04544 10 6.66646 10C6.28747 10 5.98025 9.70152 5.98025 9.33333Z",fill:"#7504FF"})}),{})},{label:"Save â¹5â8Lakhs",icon:(0,n.jsx)(()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M10.6667 9C10.9556 9 11.1944 8.90556 11.3833 8.71667C11.5722 8.52778 11.6667 8.28889 11.6667 8C11.6667 7.71111 11.5722 7.47222 11.3833 7.28333C11.1944 7.09444 10.9556 7 10.6667 7C10.3778 7 10.1389 7.09444 9.95 7.28333C9.76111 7.47222 9.66667 7.71111 9.66667 8C9.66667 8.28889 9.76111 8.52778 9.95 8.71667C10.1389 8.90556 10.3778 9 10.6667 9ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V5H12.6667V3.33333H3.33333V12.6667H12.6667V11H14V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM8.66667 11.3333C8.3 11.3333 7.98611 11.2028 7.725 10.9417C7.46389 10.6806 7.33333 10.3667 7.33333 10V6C7.33333 5.63333 7.46389 5.31944 7.725 5.05833C7.98611 4.79722 8.3 4.66667 8.66667 4.66667H13.3333C13.7 4.66667 14.0139 4.79722
114.275 5.05833C14.5361 5.31944 14.6667 5.63333 14.6667 6V10C14.6667 10.3667 14.5361 10.6806 14.275 10.9417C14.0139 11.2028 13.7 11.3333 13.3333 11.3333H8.66667ZM13.3333 10V6H8.66667V10H13.3333Z",fill:"#7504FF"})}),{})},{label:"300% salary increase",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsxs)("g",{clipPath:"url(#clip0_15385_83997)",children:[(0,n.jsx)("path",{d:"M1.33334 8.00065C1.33334 4.85798 1.33334 3.28665 2.30934 2.30998C3.28668 1.33398 4.85734 1.33398 8.00001 1.33398C11.1427 1.33398 12.714 1.33398 13.69 2.30998C14.6667 3.28732 14.6667 4.85798 14.6667 8.00065C14.6667 11.1433 14.6667 12.7147 13.69 13.6907C12.7147 14.6673 11.1427 14.6673 8.00001 14.6673C4.85734 14.6673 3.28601 14.6673 2.30934 13.6907C1.33334 12.7153 1.33334 11.1433 1.33334 8.00065Z",stroke:"#7504FF",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M4.66669 9.33464L6.19535 7.80597C6.32037 7.68099 6.48991 7.61078 6.66669 7.61078C6.84346 7.61078 7.013 7.68099 7.13802 7.80597L8.19535 8.8633C8.32037 8.98828 8.48991 9.05849 8.66669 9.05849C8.84346 9.05849 9.013 8.98828 9.13802 8.8633L11.3334 6.66797M11.3334 6.66797V8.33464M11.3334 6.66797H9.66669",stroke:"#7504FF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_15385_83997",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),{})},{label:"Govt/UGC Approved",icon:(0,n.jsx)(()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39201 7.62198C5.18401 7.41398 4.84801 7.41398 4.64001 7.62198C4.43201 7.82998 4.43201 8.16598 4.64001 8.37398L6.55468 10.2887C6.76268 10.4967 7.10401 10.4967 7.30668 10.2887L11.3547 6.24065C11.415 6.18036 11.4578 6.10932 11.4831 6.03376C11.5452 5.84863 11.5024 5.63636 11.3547 5.48865C11.2508 5.38479 11.115 5.33279 10.9792 5.33265C10.843 5.33251 10.7068 5.38451 10.6027 5.48865L6.93334 9.15798L5.39201 7.62198ZM12.8411 5.76095C13.157 6.44206 13.3333 7.20089 13.3333 8.00065C13.3333 10.9447 10.944 13.334 8.00001 13.334C5.05601 13.334 2.66668 10.9447 2.66668 8.00065C2.66668 5.05665 5.05601 2.66732 8.00001 2.66732C9.42136 2.66732 10.7134 3.22425 11.6697 4.13165C11.8481 4.30094 12.0149 4.48242 12.1686 4.67477C12.4339 5.00677 12.6604 5.37114 12.8411 5.76095ZM1.33334 8.00065C1.33334 4.32027 4.31963 1.33398 8.00001 1.33398C11.6804 1.33398 14.6667 4.32027 14.6667 8.00065C14.6667 11.681 11.6804 14.6673 8.00001 14.6673C4.31963 14.6673 1.33334 11.681 1.33334 8.00065Z",fill:"#7504FF"})}),{})},{label:"Completely online classes & exams",icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_15385_84008)",children:(0,n.jsx)("path",{d:"M2.03666 7.33267C2.16683 6.17316 2.63189 5.07666 3.37503 4.17713C4.11817 3.2776 5.10721 2.61398 6.22132 2.26734C5.31458 3.80991 4.78828 5.54627 4.68599 7.33267H2.03666ZM7.32799 0.696673C3.59332 1.03534 0.666656 4.17601 0.666656 7.99934C0.666656 11.8227 3.59332 14.9633 7.32799 15.3027L7.33332 15.3093L7.61666 15.3227C7.74435 15.3288 7.87215 15.3322 7.99999 15.3327C8.12783 15.3327 8.25565 15.3293 8.38332 15.3227L8.66666 15.3093L8.67199 15.3027C12.4067 14.962 15.3333 11.8227 15.3333 7.99934C15.3333 4.17601 12.4067 1.03534 8.67199 0.696673L8.66666 0.690007L8.38266 0.676007C8.12772 0.662685 7.87226 0.662685 7.61732 0.676007L7.33332 0.68934L7.32799 0.696673ZM8.00132 1.99934C9.16599 3.54644 9.85305 5.40023 9.97799 7.33267H6.02199C6.14713 5.40016 6.83442 3.54636 7.99932 1.99934H7.99999M4.68532 8.66601C4.79199 10.506 5.33866 12.2293 6.22066 13.7313C5.10667 13.3846 4.11777 12.7209 3.37476 11.8214C2.63174 10.9219 2.16678 9.82544 2.03666 8.66601H4.68532ZM7.99866 13.9993C6.83375 12.4523 6.14646 10.5985 6.02132 8.66601H9.97732C9.85219 10.5985 9.16489 12.4523 7.99999 13.9993H7.99866ZM9.77866 13.7313C10.6852 12.1887 11.2112 10.4524 11.3133 8.66601H13.9627C13.8325 9.82544 13.3676 10.9219 12.6246 11.8214C11.8815 12.7209 10.8926 13.3846 9.77866 13.7313ZM11.3133 7.33267C11.2067 5.49267 10.66 3.76934 9.77799 2.26734C10.8922 2.61387 11.8814 3.27744 12.6247 4.17698C13.3679 5.07652 13.8331 6.17308 13.9633 7.33267H11.3133Z",fill:"#7504FF"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_15385_84008",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),{})}],J=[{label:"Yes, I'm working",value:"Yes, I'm working"},{label:"No, I'm not working",value:"No, I'm not working"}],ee=e=>{var t,l;let{stepFormData:r,isLoading:o,handleNextStepClicked:i}=e,c=(0,Z.useRouter)();null===(t=c.query)||void 0===t||t.step;let p=(null===(l=c.query)||void 0===l?void 0:l.collegeSlug)||"",[u]=(0,b.G4)(),{isOpen:h}=(0,I.A)(),{formData:m,accessToken:g,phoneNumber:C}
1=(0,_.o)(),[f,j]=(0,s.useState)(""),[w,y]=(0,s.useState)(""),F=e=>{j(e),"No, I'm not working"===e&&y(""),(0,d.trackApnaLearnEvent)("Working_Status",{working_status:e})},N=e=>{let t=e.replace(/[^0-9]/g,"");y(t),(0,d.trackApnaLearnEvent)("CTC",{ctc:t})};(0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage_Viewed_Experience_Screen",{})},[]),(0,s.useEffect)(()=>{m.working_status&&j(m.working_status),m.ctc&&y(m.ctc)},[m.working_status,m.ctc]);let k=()=>!!(f&&("Yes, I'm working"!==f||w.trim())),A=async()=>{if(k())try{i();let e={working_status:f},t=["working_status"];"Yes, I'm working"===f&&w&&(e.ctc=w,t.push("ctc"));let l=await (0,a.Vj)({data:e,fieldsToUpdate:t,college_slug:p},g,C);if((0,d.trackApnaLearnEvent)("Advantage_Clicked_Next_Experience",{working_status:f,ctc:"Yes, I'm working"===f?w:null}),h){let e={...c.query,step:String(l)};c.push({pathname:c.pathname,query:e},void 0,{shallow:!0})}else c.push("/leadsForm/".concat(l),void 0,{shallow:!0})}catch(e){i({isError:!0}),console.error("Error posting form data:",e)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==r?void 0:r.header,firstStep:m.next_step}),(0,n.jsxs)("div",{className:"rounded-[12px] bg-white p-4 pb-24 md:bg-[#FAFAFA] md:pb-4",children:[o?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px] md:font-bold",children:(null==r?void 0:r.title)||"Are you working currently?"}),(null==r?void 0:r.message)&&(0,n.jsxs)("div",{className:"mb-4 flex items-start gap-2 rounded-[8px] bg-[#F4F2F6] p-2",children:[(0,n.jsx)("div",{className:"mt-1",children:(0,n.jsx)(X,{})}),(0,n.jsx)("p",{className:"mb-0 text-[12px] leading-5 text-[#190A28]",dangerouslySetInnerHTML:{__html:null==r?void 0:r.message}})]}),(0,n.jsx)("form",{className:"mb-10 grid grid-cols-1 gap-3 md:grid-cols-2",children:J.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center rounded-lg border p-2.5 px-4 transition md:border-none md:bg-white",children:[(0,n.jsx)("input",{type:"radio",name:"working-status",value:e.value,checked:f===e.value,onChange:()=>F(e.value),className:"mr-3 h-5 w-5 accent-[#7936BC]"}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e.label})]},e.value))}),"Yes, I'm working"===f&&(0,n.jsxs)("div",{className:"mb-10",children:[(0,n.jsx)("h3",{className:"my-4 text-[16px] font-semibold md:text-[20px] md:font-bold",children:"What is your monthly salary?"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[#666]",children:"â¹"}),(0,n.jsx)("input",{type:"text",placeholder:"Enter monthly salary",value:w,onChange:e=>N(e.target.value),className:"w-full rounded-lg border p-2.5 pl-8 text-sm focus:border-[#7936BC] focus:outline-none md:bg-white"})]})]}),(0,n.jsxs)("div",{className:"rounded-[8px] bg-[#F4F2F6] p-4",children:[(0,n.jsx)("h2",{className:"mb-4 text-[16px] font-semibold md:text-[20px] md:font-bold",children:"Benefits of online degree"}),(0,n.jsx)("div",{className:"flex gap-2 ".concat(h?"flex-wrap":"flex-col md:flex-wrap"),children:$.map(e=>(0,n.jsxs)("div",{className:"flex w-fit items-center gap-2 rounded-2xl bg-white px-3 py-1 transition",children:[e.icon,(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e.label})]},e.label))})]})]}),(0,n.jsx)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:(0,n.jsxs)("div",{className:"rounded-md p-1 pt-2 ".concat(u?"":"bg-[#DFFFEC]"),children:[!u&&(0,n.jsxs)("div",{className:"relative flex items-center justify-center gap-2 ",children:[(0,n.jsx)(G,{className:"absolute left-3 top-0 md:-top-1"}),(0,n.jsxs)("span",{className:"mx-8 mb-2 text-center text-[14px] font-[600] leading-[14px] text-[#339C69]",children:["Online degrees (UGC approved)"," ",(0,n.jsx)("strong",{className:"font-[800]",children:"save â¹5â8Lakhs"})," compared to offline degrees"," "]})]}),(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFFFF] transition ".concat(k()?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:!k(),style:{boxSizing:"border-box"},onClick:()=>A(),children:"Next"})]})})]})]})},et=()=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_6894_41173)",children:(0,n.jsx)("path",{d:"M16.2222 3.77778V16.2222H3.77778V3.77778H16.2222ZM16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 18 17.2 18 16.2222V3.77778C18 2.8 17.2 2 16.2222 2Z",fill:"#5E6C84"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_6894_41173",children:(0,n.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),el=()=>(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_6894_41169)",children:(0,n.jsx)("path",{d:"M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 18 17.2 18 16.2222V3.77778C18 2.8 17.2 2 16.2222 2ZM8.85333 13.8133C8.50667 14.16 7.94667 14.16 7.6 13.8133L4.40889 10.6222C4.06222 10.2756 4.06222 9.71556 4.40889 9.36889C4.75556 9.02222 5.31556 9.02222 5.66222 9.36889L8.22222 11.9289L14.3378 5.81333C14.6844 5.46667 15.2444 5.46667 15.5911 5.81333C15.9378
16.16 15.9378 6.72 15.5911 7.06667L8.85333 13.8133Z",fill:"#0074E8"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_6894_41169",children:(0,n.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),en={1:"We will give 100% cashback on your first payment upto â¹10,000*",2:"Donât worry, we will sponsor your first payment*",3:"Donât worry, we will return your first EMI upto â¹10K*",4:"Get cashback on first EMI payment - upto â¹10,000*",5:"A dedicated counselor guides you step by step"},es=e=>{var t,l,r,o,i,c,p;let{stepFormData:u,isLoading:h,handleNextStepClicked:m}=e,g=(0,Z.useRouter)(),C=(null===(t=g.query)||void 0===t?void 0:t.collegeSlug)||"",{isOpen:f}=(0,I.A)(),[j]=(0,b.G4)(),[w,y]=(0,s.useState)("Get cashback on first EMI payment - upto â¹10,000*"),{formData:F,accessToken:N,phoneNumber:k,isFormJourneyCompleted:A,setFormData:L}=(0,_.o)(),E=(e,t)=>{var l,n;let s=(null===(l=F.reasons_to_enroll)||void 0===l?void 0:l.includes(e))?null===(n=F.reasons_to_enroll)||void 0===n?void 0:n.filter(t=>t!==e):[...F.reasons_to_enroll||[],e];y(en[t+1]),L({reasons_to_enroll:s}),(0,d.trackApnaLearnEvent)("Advantage_Reason_Selected",{enrollment_reason:s})},S=async()=>{try{m();let e=await (0,a.Vj)({data:{reasons_to_enroll:Array.isArray(F.reasons_to_enroll)?F.reasons_to_enroll.join(","):F.reasons_to_enroll},fieldsToUpdate:["reasons_to_enroll"],college_slug:C},N,k);if((0,d.trackApnaLearnEvent)("Advantage_Clicked_Reason_Selected",{enrollment_reason:F.reasons_to_enroll}),f){let t={...g.query,step:String(e)};g.push({pathname:g.pathname,query:t},void 0,{shallow:!0})}else g.push("/leadsForm/".concat(e),void 0,{shallow:!0})}catch(e){m({isError:!0}),console.error(e)}};return((0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage_Viewed_Reason_Screen",{})},[]),A)?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==u?void 0:u.header,firstStep:F.next_step}),(0,n.jsx)("div",{className:"rounded-[12px] bg-white p-4 pb-16 md:bg-[#FAFAFA] md:p-4",children:h?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px]",children:null==u?void 0:u.title}),(0,n.jsx)("form",{className:"space-y-3 md:grid md:grid-cols-1 md:gap-3 md:space-y-0",children:null==u?void 0:null===(l=u.option)||void 0===l?void 0:l.map((e,t)=>{var l,s;return(0,n.jsxs)("label",{className:"flex cursor-pointer items-center rounded-lg border p-2.5 px-4 transition md:border-none md:bg-white",children:[(0,n.jsx)("input",{type:"checkbox",name:"qualification",value:e,checked:null===(l=F.reasons_to_enroll)||void 0===l?void 0:l.includes(e),onChange:()=>E(e,t),className:"hidden"}),(0,n.jsx)("div",{className:"mr-2 h-5 w-5 cursor-pointer",children:(null===(s=F.reasons_to_enroll)||void 0===s?void 0:s.includes(e))?(0,n.jsx)(el,{}):(0,n.jsx)(et,{})}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e})]},e)})}),(0,n.jsxs)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:[j&&(0,n.jsxs)("div",{className:"relative -mx-4 -mt-3 flex items-center justify-center gap-2 bg-[#48DB85] px-4 pb-2 pt-3",children:[(0,n.jsx)(W,{}),(0,n.jsx)("span",{className:"text-left text-[12px] font-[600] leading-[14px] text-[#1C1C1C]",children:(null===(r=F.reasons_to_enroll)||void 0===r?void 0:r.length)>0&&w||"UGC-approved online degrees hold the same value as regular degree"})]}),(0,n.jsxs)("div",{className:"rounded-md p-1 pt-2 ".concat(!j&&w&&(null===(o=F.reasons_to_enroll)||void 0===o?void 0:o.length)>0?"bg-[#DFFFEC]":""),children:[!j&&w&&(null===(i=F.reasons_to_enroll)||void 0===i?void 0:i.length)>0&&(0,n.jsxs)("div",{className:"relative flex items-center justify-center gap-2",children:[(0,n.jsx)(G,{className:"mb-2"}),(0,n.jsx)("span",{className:"mx-4 mb-2 text-center text-[14px] font-[600] leading-[14px] text-[#339C69]",children:w})]}),(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFF] transition ".concat((null===(c=F.reasons_to_enroll)||void 0===c?void 0:c.length)?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:!(null===(p=F.reasons_to_enroll)||void 0===p?void 0:p.length),onClick:S,children:"Next"})]})]})]})})]})};var er=l(92015),eo=l(17867);let ea=e=>{let{width:t=32,height:l=32,fill:s="#190A28",...r}=e;return(0,n.jsxs)("svg",{width:t,height:l,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,n.jsx)("rect",{width:"32",height:"32",rx:"16",fill:s}),(0,n.jsx)("path",{d:"M21.0968 10.9114C20.7813 10.5959 20.2716 10.5959 19.9561 10.9114L16.0001 14.8593L12.0441 10.9
1033C11.7286 10.5878 11.2189 10.5878 10.9034 10.9033C10.5879 11.2188 10.5879 11.7285 10.9034 12.044L14.8594 16L10.9034 19.956C10.5879 20.2715 10.5879 20.7812 10.9034 21.0967C11.2189 21.4122 11.7286 21.4122 12.0441 21.0967L16.0001 17.1407L19.9561 21.0967C20.2716 21.4122 20.7813 21.4122 21.0968 21.0967C21.4123 20.7812 21.4123 20.2715 21.0968 19.956L17.1408 16L21.0968 12.044C21.4042 11.7366 21.4042 11.2188 21.0968 10.9114Z",fill:"white"})]})};var ei=l(68323);let ed=e=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M12.2005 3.80665C11.9405 3.54665 11.5205 3.54665 11.2605 3.80665L8.00047 7.05998L4.74047 3.79998C4.48047 3.53998 4.06047 3.53998 3.80047 3.79998C3.54047 4.05998 3.54047 4.47998 3.80047 4.73998L7.06047 7.99998L3.80047 11.26C3.54047 11.52 3.54047 11.94 3.80047 12.2C4.06047 12.46 4.48047 12.46 4.74047 12.2L8.00047 8.93998L11.2605 12.2C11.5205 12.46 11.9405 12.46 12.2005 12.2C12.4605 11.94 12.4605 11.52 12.2005 11.26L8.94047 7.99998L12.2005 4.73998C12.4538 4.48665 12.4538 4.05998 12.2005 3.80665Z",fill:(null==e?void 0:e.fill)||"#1C1F2C"})});var ec=l(45898);let ep=e=>(0,n.jsx)("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M2.70595 10.3342H0.588307C0.441248 10.3342 0.294189 10.1871 0.294189 10.04V7.89298C0.294189 7.71651 0.441248 7.59886 0.588307 7.59886H2.64713V10.04C2.64713 10.1283 2.67654 10.2459 2.70595 10.3342ZM6.76478 6.51063V10.04C6.76478 10.1871 6.61772 10.3342 6.47066 10.3342H3.52948C3.38242 10.3342 3.23537 10.1871 3.23537 10.04V6.51063C3.23537 6.33416 3.38242 6.21651 3.52948 6.21651H6.47066C6.61772 6.21651 6.76478 6.33416 6.76478 6.51063ZM9.70595 8.27533V10.04C9.70595 10.1871 9.5589 10.3342 9.41184 10.3342H7.29419C7.3236 10.2459 7.35301 10.1283 7.35301 10.04V7.98122H9.41184C9.5589 7.98122 9.70595 8.09886 9.70595 8.27533ZM7.38243 2.98122L6.41184 3.92239L6.64713 5.27533C6.67654 5.39298 6.61772 5.51063 6.52948 5.56945C6.44125 5.62827 6.29419 5.62827 6.20595 5.59886L5.00007 4.9518L3.79419 5.56945C3.70595 5.62827 3.58831 5.62827 3.50007 5.54004C3.41184 5.48122 3.35301 5.36357 3.38242 5.24592L3.61772 3.89298L2.61772 2.98122C2.5589 2.92239 2.52948 2.80474 2.5589 2.6871C2.58831 2.56945 2.67654 2.51063 2.79419 2.48122L4.14713 2.27533L4.73537 1.06945C4.8236 0.863568 5.17654 0.863568 5.26478 1.06945L5.85301 2.27533L7.20595 2.48122C7.3236 2.51063 7.41184 2.56945 7.44125 2.6871C7.47066 2.80474 7.44125 2.92239 7.38243 2.98122Z",fill:"#1F8268"})}),eu=e=>{let{university:t,isSelected:l,onClick:s,type:r,badge:o}=e;return(0,n.jsxs)("button",{className:"flex w-[101px] cursor-pointer flex-col items-center gap-[10px]",onClick:()=>s(t),type:"button",children:[(0,n.jsxs)("div",{className:"relative flex justify-center rounded-lg border-[1.2px] bg-[#fff]\n ".concat(l?"border-[#0074E8]":"border-[#E8E7EA]"),children:[l&&(0,n.jsx)("div",{className:"absolute left-[38px] top-[18px] z-10",children:(0,n.jsx)(ec.A,{})}),(0,n.jsx)(C(),{src:t.college_image,alt:t.college_name,className:"m-0 h-[60px] w-[101px] rounded-lg p-0 object-contain ".concat(l?"opacity-50":"opacity-1"),width:101,height:60,style:{objectFit:"contain"}}),"nirf"===r&&""!==o&&(0,n.jsxs)("div",{className:"absolute bottom-[-6px] left-1/2 flex h-[16px] w-fit translate-x-[-50%] items-center rounded-full border border-[#BDE9DD] bg-[#EAF8F4] px-[4px] py-[0px] text-[#fff]",children:[(0,n.jsx)(ep,{})," ",(0,n.jsx)("div",{className:"ml-1 block min-w-[60px] max-w-fit text-[8px] text-[#1F8268]",children:o})]})]}),(0,n.jsx)("p",{className:"m-0 text-center text-[10px] leading-[12px] ".concat(l?"font-bold text-[#0074E8]":""),children:t.college_name})]})},ex=()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.79782 12.6935C9.79577 12.6944 9.79372 12.6952 9.79167 12.6961C9.54167 12.8044 9.38889 13.0787 9.38889 13.3602C9.38889 13.88 9.89583 14.2121 10.3542 14.0172C10.9097 13.7789 11.4306 13.4613 11.8958 13.0715L12.8264 14.0388C13.0972 14.3204 13.5347 14.3204 13.8056 14.0388C14.0764 13.7573 14.0764 13.3025 13.8056 13.0209L3.17361 1.96116C2.90278 1.67961 2.46528 1.67961 2.1875 1.96116C1.91667 2.24271 1.91667 2.69752 2.1875 2.97906L4.72917 5.62128L4.52778 5.83786H2.44444C2.0625 5.83786 1.75 6.16272 1.75 6.55977V9.44744C1.75 9.8445 2.0625 10.1694 2.44444 10.1694H4.52778L6.8125 12.5445C7.25 12.9993 8 12.6744 8 12.0319V9.02151L10.9028 12.0391C10.5642 12.3049 10.1982 12.5277 9.79782 12.6935ZM7.25907 8.0147L5.70694 6.40012C5.68722 6.42483 5.66643 6.44897 5.64456 6.47249L5.44317 6.68906C5.20669 6.94338 4.87506 7.08786 4.52778 7.08786H3V8.91936H4.52778C4.86771 8.91936 5.19298 9.0578 5.42864 9.30279L6.75 10.6764V9.02151C6.75 8.61808 6.94388 8.24665 7.25907 8.0147ZM13.6389 10.7974C13.8329 10.376 13.9855 9.92934 14.0896 9.46294C14.1942 8.99462 14.25 8.50637 14.25 8.00361C14.25 5.23867 12.5833 2.87078 10.2361 1.9395C9.82639 1.77346 9.38889 2.10554 9.38889 2.56035V2.69752C9.38889 2.97185 9.5625 3.21008 9.8125 3.31115C11.5972 4.06194 12.8611 5.88117 12.8611 8.00361C12.8611 8.59558 12.7569 9.1659 12.5764 9.6929L13.6389 10.7974ZM10.281 2.15227C10.2832 2.15317 10.2855 2.15408 10.2877 2.15502L10.281 2.15227ZM6.91296 3.37527C6.87808 3.40043 6.84446 3.42953 6.8125 3.46275L6.69444 3.58547L8 4.94268V3.96809C8 3.37252 7.35557 3.05608 6.91296 3.37527ZM9.38889 5.09428C9.67015 5.24048 9.92749 5.42884 10.1529 5.65154C10.3378 5.83419 10.5013 6.03992 10.6389 6.26443C10.9466 6.76644 11.125 7.3623 11.125 8.00361C11.125 8.06135 11.1181 8.1191 11.1111 8.17684L9.38889 6.38651V5.09428Z",fill:"white"})});var eh=l(12862);let em=e=>{let{open:t,onClose:l,selectedColleges:r,onContinue:o}
1=e,[a,i]=(0,s.useState)(0),[c,p]=(0,s.useState)(!0),u=(0,s.useRef)(null),x=(0,s.useRef)(null),h=r[a],[m,g]=(0,b.G4)(),f=()=>{a<r.length-1&&i(a+1)},v=e=>{i(e)},j=()=>{c&&(0,d.default)("Advantage Bottom Sheet College Video Unmute Button Clicked",{}),p(!c)},w=e=>{e.preventDefault();let t=e.deltaX;t>0&&a<r.length-1?((0,d.default)("Advantage Bottom Sheet College Video Next Button Clicked",{}),i(a+1)):t<0&&a>0&&i(a-1)},y=e=>{let t=e.touches[0].clientX,l=e=>{let n=t-e.touches[0].clientX;Math.abs(n)>50&&(n>0&&a<r.length-1?i(a+1):n<0&&a>0&&i(a-1),document.removeEventListener("touchmove",l))};document.addEventListener("touchmove",l)};if((0,s.useEffect)(()=>{x.current&&(x.current.pause(),x.current.currentTime=0,x.current.controls=!1,x.current.play().catch(e=>{console.log("Video autoplay failed:",e)}))},[a]),(0,s.useEffect)(()=>{!t&&x.current&&x.current.pause()},[t]),(0,s.useEffect)(()=>{(0,d.default)("Advantage Bottom Sheet College Video Pop-up shown",{})},[]),!g)return null;let _=()=>{var e;return(0,n.jsx)("div",{className:"flex ".concat("h-full"," flex-col bg-[#1a1a1a] overflow-hidden"),children:h&&(0,n.jsxs)("div",{className:"flex justify-between flex-col h-full bg-white",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"absolute right-4 top-2 z-10",children:(0,n.jsx)("button",{onClick:l,className:"flex h-8 w-8 items-center justify-center rounded-full bg-white bg-opacity-50 text-white hover:bg-opacity-70","aria-label":"Close",children:(0,n.jsx)(ed,{fill:"white"})})}),(0,n.jsx)("button",{className:"absolute left-4 top-2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white bg-opacity-50 text-white hover:bg-opacity-70",onClick:j,"aria-label":c?"Unmute video":"Mute video",children:c?(0,n.jsx)(ex,{}):(0,n.jsx)(eh.A,{})}),(0,n.jsxs)("div",{ref:u,className:"relative overflow-hidden ".concat(m?"h-[300px]":"h-[400px]"),onWheel:w,onTouchStart:y,children:[(0,n.jsxs)("video",{ref:x,autoPlay:!0,muted:c,playsInline:!0,controlsList:"nodownload nofullscreen noremoteplayback",disablePictureInPicture:!0,className:"h-full w-full object-cover",onEnded:f,poster:h.college_image,onContextMenu:e=>e.preventDefault(),style:{maxHeight:"100%",maxWidth:"100%"},children:[(0,n.jsx)("source",{src:null==h?void 0:h.college_video_url,type:"video/mp4"}),"Your browser does not support the video tag."]},"video-".concat(a,"-").concat(null==h?void 0:h.college_video_url)),(0,n.jsx)("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-[50px] bg-gradient-to-b from-black to-transparent"}),(0,n.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 transform",children:(0,n.jsx)("div",{className:"relative flex h-14 w-36 items-center justify-center rounded-t-lg bg-white bg-opacity-100 p-1",style:{transform:"perspective(100px) rotateX(15deg)",transformOrigin:"bottom"},children:h.college_image?(0,n.jsx)(C(),{src:h.college_image,alt:"".concat(h.college_name," logo"),layout:"fill",className:"object-contain"}):(0,n.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gray-200 text-xs font-bold text-gray-600",children:(null===(e=h.college_name)||void 0===e?void 0:e.charAt(0))||"U"})})})]})]}),(0,n.jsxs)("div",{className:"mt-0 ".concat(m?"flex-1":""," bg-white px-[16px] pb-6 pt-2"),children:[(0,n.jsx)("div",{className:"mb-4 flex justify-center gap-2",children:r.length>1&&r.map((e,t)=>(0,n.jsx)("button",{onClick:()=>v(t),className:"h-2 w-2 cursor-pointer rounded-full transition-colors ".concat(t===a?"bg-gray-700":"bg-gray-400")},"dot-".concat(t)))}),(0,n.jsxs)("div",{className:"pb-2 pt-0 lg:mb-14",children:[(0,n.jsxs)("h2",{className:"mb-4 text-center font-lato text-xl font-bold text-[#172B4D]",children:["You have selected a top ",(0,n.jsx)("br",{})," university!"]}),(0,n.jsx)("p",{className:"mb-2 text-center font-lato text-sm text-[#1C1523]",children:"92% of learners prefer university similar to yours"})]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg bg-[#3E1367] px-5 py-2.5 font-semibold text-[#FFFFFF]",onClick:()=>{(0,d.default)("Advantage Bottom Sheet College Video Continue Button Clicked",{}),o()},children:"Continue"})})]})]})})};return m?(0,n.jsx)(N.Ay,{open:t,anchor:"bottom",classes:{paper:"overflow-visible rounded-t-2xl rounded-b-2xl p-0 h-[500px] bg-[#1a1a1a] mx-2 my-2"},style:{zIndex:1300},children:_()}):(0,n.jsx)(k.A,{open:t,onClose:l,fullWidth:!0,PaperProps:{className:"rounded-[48px] overflow-hidden bg-[#1a1a1a]",style:{maxWidth:"688px",height:"725px",borderRadius:"24px"}},style:{zIndex:1300},children:(0,n.jsx)("div",{className:"overflow-hidden h-full bg-white",children:_()})})},eg=(0,er.A)({dialog:{height:500,maxWidth:688,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"8px"},drawer:{overflow:"visible",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",padding:"16px",minHeight:"300px"}}),eC=e=>{var t,l,r,o,i,c,p,u,h,m,g,C,f;let{handleNextStepClicked:j}
1=e,w=(0,Z.useRouter)(),y=eg(),[F,k]=(0,s.useState)(!1),[A,L]=(0,s.useState)(!1),[E,S]=(0,s.useState)(!1),[H,V]=(0,s.useState)(""),[M,B]=(0,s.useState)(null),[R,P]=(0,s.useState)(null),[T,D]=(0,s.useState)(!1),[I,q]=(0,s.useState)([]),O=(null===(t=w.query)||void 0===t?void 0:t.collegeSlug)||"",[z]=(0,b.G4)(),{formData:W,setFormData:G,accessToken:Y,phoneNumber:X,filter:K,currentStep:Q}=(0,_.o)(),$=(e,t)=>{var l;let n=null===(l=w.query)||void 0===l?void 0:l.step,s={...w.query,...t};n?(s.step=String(e),w.push({pathname:w.pathname,query:s},void 0,{shallow:!0})):w.push({pathname:"/leadsForm/".concat(e),query:s},void 0,{shallow:!0})},J=(e,t)=>{let l={...w.query,...t};w.push({pathname:e,query:l},void 0,{shallow:!0})},ee=(0,s.useRef)({}),et=async e=>{if(ee.current[e]){B(ee.current[e]);return}k(!0);try{if(Y){let t=await (0,a.Hg)(4,Y,X,e);t&&(B(t),ee.current[e]=t)}}catch(e){console.error(e)}finally{k(!1)}};(0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{K&&Y&&et(K),(0,d.trackApnaLearnEvent)("Advantage_Viewed_College_Screen",{})},[K]);let el=(e,t)=>
1{var l,n;let s=null==W?void 0:null===(l=W.colleges)||void 0===l?void 0:l.some(t=>t.college_id===e.college_id),r=s?null==W?void 0:null===(n=W.colleges)||void 0===n?void 0:n.filter(t=>t.college_id!==e.college_id):[...(null==W?void 0:W.colleges)||[],e];t&&s?G({...W,colleges:[...(null==W?void 0:W.colleges)||[]]}):G({...W,colleges:[...r||[]]}),(null==r?void 0:r.length)===0&&L(!1),V(""),P(null),(0,d.trackApnaLearnEvent)("Advantage_College_Selected",{preferred_college:e.college_name,isSearched:t})},en=()=>{var e;return null==W?void 0:null===(e=W.colleges)||void 0===e?void 0:e.some(e=>e.college_video_url)},es=()=>{var e;return(null==W?void 0:null===(e=W.colleges)||void 0===e?void 0:e.filter(e=>e.college_video_url))||[]},er=async()=>{if(en()){let e=es();if(e.length>0){q(e),D(!0);return}}await ec()},ec=async()=>{try{var e,t,l;j();let n=await (0,a.Vj)({data:{colleges:null==W?void 0:null===(e=W.colleges)||void 0===e?void 0:e.map(e=>({college_id:e.college_id,college:e.college_name||(null==e?void 0:e.college)}))},fieldsToUpdate:["colleges"],college_slug:O},Y,X);if((0,d.trackApnaLearnEvent)("Advantage_Clicked_Next_College",{preferred_colleges:null==W?void 0:W.colleges.map(e=>e.college||e.college_name).join(", ")}),(null===(t=w.query)||void 0===t?void 0:t.returnTo)==="registration"){if(z)J("/leadsForm/9",{returnTo:void 0});else{let e={...w.query,step:"9"};delete e.returnTo,w.push({pathname:w.pathname,query:e},void 0,{shallow:!0})}return}if(null===(l=w.query)||void 0===l?void 0:l.trackAdmission){if(z)J("/leadsFormV2/last",{phone_number:X});else{let e={...w.query,step:"last",phone_number:X};w.push({pathname:w.pathname,query:e},void 0,{shallow:!0})}return}n&&$(n)}catch(e){j({isError:!0}),console.error(e)}},ep=()=>{var e,t;if(null===(e=w.query)||void 0===e?void 0:e.trackAdmission){if(z)J("/leadsFormV2/last",{phone_number:X});else{let e={...w.query,step:"last",phone_number:X};w.push({pathname:w.pathname,query:e},void 0,{shallow:!0})}return}if((null===(t=w.query)||void 0===t?void 0:t.returnTo)==="registration"){if(z)J("/leadsForm/8",{phone_number:X});else{let e={...w.query,step:"8",phone_number:X};delete e.returnTo,w.push({pathname:w.pathname,query:e},void 0,{shallow:!0})}return}j(),G({colleges:[]}),(0,d.trackApnaLearnEvent)("Advantage_Clicked_Select_College_Later",{}),$(Number(Q)+1)},ex=()=>{D(!1)},eh=async e=>{if(!e.trim()){P(null);return}k(!0);try{if(Y){let t=await (0,a.Hg)(4,Y,X||"","other",e);P(t||null)}}catch(e){console.error(e)}finally{k(!1)}},eC=(0,s.useCallback)(((e,t)=>{let l;return function(){for(var n=arguments.length,s=Array(n),r=0;r<n;r++)s[r]=arguments[r];clearTimeout(l),l=setTimeout(()=>{e(...s)},t)}})(e=>eh(e),300),[]),ef=(null==W?void 0:W.next_step)||"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:(null==M?void 0:M.header)||"",firstStep:ef}),(0,n.jsxs)(N.Ay,{open:A&&(null==W?void 0:null===(l=W.colleges)||void 0===l?void 0:l.length)>0,anchor:"bottom",classes:{paper:y.drawer},children:[(0,n.jsx)("div",{onClick:()=>{var e;if(null===(e=w.query)||void 0===e?void 0:e.trackAdmission){if(L(!1),z)J("/leadsFormV2/last",{phone_number:X});else{let e={...w.query,step:"last",phone_number:X};w.push({pathname:w.pathname,query:e},void 0,{shallow:!0})}return}L(!1)},"aria-hidden":!0,className:"absolute right-[16px] top-[-44px]",children:(0,n.jsx)(ea,{})}),(null==W?void 0:null===(r=W.colleges)||void 0===r?void 0:r.length)>0&&(0,n.jsxs)("p",{className:"px-[14px] text-[20px] font-bold leading-7 text-[#3E1367]",children:[null==W?void 0:null===(o=W.colleges)||void 0===o?void 0:o.length," Colleges Selected"]}),(0,n.jsx)("hr",{}),null==W?void 0:null===(i=W.colleges)||void 0===i?void 0:i.map(e=>{var t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{onClick:()=>el(e),className:"px-4 pb-4","aria-hidden":!0,children:[(0,n.jsx)("input",{type:"checkbox",checked:!!(null==W?void 0:null===(t=W.colleges)||void 0===t?void 0:t.find(t=>t.college_id===e.college_id)),name:e.college_name||e.college,className:"mr-3"}),(0,n.jsx)("label",{className:"font-semibold text-[#190-a28]",children:e.college_name||e.college})]}),(0,n.jsx)("hr",{})]})}),(null==W?void 0:null===(c=W.colleges)||void 0===c?void 0:c.length)===0&&(0,n.jsx)("span",{children:"No College Seclected"})]}),(0,n.jsx)(em,{open:T,onClose:()=>{D(!1),ex()},selectedColleges:I,onContinue:ec}),(0,n.jsx)("p",{className:"m-[20px] hidden text-left text-[20px] font-bold leading-normal text-[#190A28] md:block",children:"Select your preferred college"}),(0,n.jsxs)("div",{className:"relative mx-4 mt-4",children:[(0,n.jsx)("div",{className:"absolute left-[10px] top-[14px]",children:(0,n.jsx)(ei.A,{})}),(0,n.jsx)("input",{type:"text",placeholder:"Search Colleges",value:H,onChange:e=>{V(e.target.value),eC(e.target.value),H.length>3&&(0,d.trackApnaLearnEvent)("Advantage_college_search_query",{})},onFocus:()=>{(0,d.trackApnaLearnEvent)("Advantage College Search start",{})}
1,className:"h-[48px] w-full rounded-[8px] border border-[#E8E7EA] px-2 py-[13px] pl-[32px] text-[14px] leading-[22px] text-gray-500 placeholder-gray-400 outline-none "}),(null==R?void 0:R.option)&&R.option.length>0?(0,n.jsx)("div",{className:"absolute left-0 z-[99] mt-1 w-full rounded-md bg-white shadow-lg",children:null==R?void 0:R.option.map(e=>(0,n.jsxs)("div",{className:"flex cursor-pointer items-center px-4 py-2 text-[14px] hover:bg-gray-100",onClick:()=>el(e,!0),"aria-hidden":!0,children:[(0,n.jsx)("img",{src:e.college_logo,alt:e.college_name,className:"mr-1 h-8 w-8"}),e.college_name||e.college]},e.college_id))}):H.trim()&&(0,n.jsx)("div",{className:"absolute left-0 z-50 mt-1 w-full rounded-md bg-white p-4 text-center text-gray-500 shadow-lg",children:"No results found"})]}),(0,n.jsxs)("div",{className:"mx-4 mt-[18px] py-1.5 flex items-center rounded-full bg-gradient-to-r from-[#21163F] via-[#331458] to-[rgba(62,19,103,0)] pl-1",children:[(0,n.jsx)(eo.A,{}),(0,n.jsx)("span",{className:" ml-[6px] text-[10px] font-bold text-[#fff]",children:"Assured Colleges"})]}),(0,n.jsx)("div",{className:"max-h-[410px] scrollbar-hide overflow-y-auto rounded-[12px] bg-white p-4 pb-[100px] md:h-full md:bg-[#FAFAFA]",children:F?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("form",{className:"grid grid-cols-3 gap-4 overflow-y-auto md:mb-[12px] md:grid-cols-5 md:gap-6",children:null==M?void 0:null===(p=M.option)||void 0===p?void 0:p.map(e=>{var t;return(0,n.jsx)(eu,{university:e,isSelected:!!(null==W?void 0:null===(t=W.colleges)||void 0===t?void 0:t.find(t=>t.college_id===e.college_id)),onClick:el,type:K,badge:e.college_filter_value},e.college_id)})}),(0,n.jsxs)("div",{className:"fixed bottom-0 left-0 z-[99] flex w-full flex-col items-center border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:pb-0 md:shadow-none",children:[(null==W?void 0:null===(u=W.colleges)||void 0===u?void 0:u.length)>0&&(0,n.jsxs)("div",{className:"z-50 mb-[16px] flex items-center rounded-full border border-[#C1DBFB] bg-[#EBF3FE] px-3 py-1",onClick:()=>{z?L(!0):S(e=>!e)},"aria-hidden":!0,children:[(0,n.jsx)("div",{className:"flex -space-x-2",children:null==W?void 0:null===(h=W.colleges)||void 0===h?void 0:h.slice(0,3).map(e=>(0,n.jsx)("img",{src:e.college_logo,alt:e.college_name,className:"h-6 w-6 rounded-full border-2 border-white"},e.college_id))}),E?(0,n.jsx)("div",{className:"scrollbar-hide ml-[4px] block max-w-[480px] overflow-x-auto whitespace-nowrap text-xs font-medium text-[#0074E8] transition-all duration-500 ease-in-out",children:null==W?void 0:null===(m=W.colleges)||void 0===m?void 0:m.map(e=>e.college_name||e.college).join(", ")}):(0,n.jsxs)("span",{className:"ml-3 text-xs font-medium text-[#0074E8] transition-all duration-500 ease-in-out",children:[null==W?void 0:null===(g=W.colleges)||void 0===g?void 0:g.length," selected"]}),E&&(0,n.jsx)("button",{type:"button","aria-label":"Close",className:"ml-[6px]",children:(0,n.jsx)(ed,{fill:"#0000004D"})})]}),(0,n.jsx)("button",{type:"button",className:"mb-2 w-full rounded-lg border border-[#3E1367] bg-[#fffff] px-5 py-2.5 font-semibold text-[#3E1367] md:hidden",onClick:ep,children:"Select college later"}),(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFFFF] ".concat((null==W?void 0:null===(C=W.colleges)||void 0===C?void 0:C.length)>0?"bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),onClick:er,disabled:(null==W?void 0:null===(f=W.colleges)||void 0===f?void 0:f.length)===0,children:"Next"}),(0,n.jsx)("button",{type:"button",className:"mb-2 hidden w-full rounded-lg border border-none bg-[#fffff] px-5 py-2.5 font-semibold text-[#3E1367] underline md:block md:pb-0 md:text-[16px]",onClick:ep,children:"Select college later"})]})]})})]})},ef=e=>{var t,l,r,o;let{stepFormData:i,isLoading:c,handleNextStepClicked:p}=e,u=(0,Z.useRouter)(),h=(null===(t=u.query)||void 0===t?void 0:t.collegeSlug)||"",{formData:m,accessToken:g,phoneNumber:C,isFormJourneyCompleted:f,setFormData:b}=(0,_.o)(),j=e=>{var t,l;let n=(null===(t=m.preferred_languages)||void 0===t?void 0:t.includes(e))?null===(l=m.preferred_languages)||void 0===l?void 0:l.filter(t=>t!==e):[...m.preferred_languages||[],e];b({preferred_languages:n}),(0,d.trackApnaLearnEvent)("Advantage_Clicked_Language_Selected",{preferred_language:n})},w=async()=>{try{p(),await (0,a.Vj)({data:{preferred_languages:Array.isArray(m.preferred_languages)?m.preferred_languages.join(","):m.preferred_languages},fieldsToUpdate:["preferred_languages"],college_slug:h},g,C),(0,d.trackApnaLearnEvent)("Advantage_Clicked_Language_Next",{preferred_language:m.preferred_languages}),(0,d.trackApnaLearnEvent)("Advantage_Completed_Enrollment_Flow",{highe
1st_qualification:m.highest_education,preferred_degree:m.degree,preferred_college:null==m?void 0:m.colleges.map(e=>e.college||e.college_name).join(", "),convert_to_emi:m.emi,enrollment_reason:m.reasons_to_enroll,preferred_language:m.preferred_languages});let e={...u.query};delete e.modal,delete e.step,u.push({pathname:"/leadsFormV2/last",query:e},void 0,{shallow:!0})}catch(e){p({isError:!0}),console.error(e)}};return((0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage_Viewed_Language_Screen",{})},[]),f)?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==i?void 0:i.header,firstStep:m.next_step}),(0,n.jsx)("div",{className:"rounded-[12px] bg-white p-4 md:bg-[#FAFAFA]",children:c?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px]",children:null==i?void 0:i.title}),(0,n.jsx)("form",{className:"space-y-3 md:grid md:grid-cols-2 md:gap-3 md:space-y-0",children:null==i?void 0:null===(l=i.option)||void 0===l?void 0:l.map(e=>{var t,l;return(0,n.jsxs)("label",{className:"flex cursor-pointer items-center rounded-lg border p-2.5 px-4 transition md:mt-0 md:border-none md:bg-white",children:[(0,n.jsx)("input",{type:"checkbox",name:"qualification",value:e,checked:null===(t=m.preferred_languages)||void 0===t?void 0:t.includes(e),onChange:()=>j(e),className:"hidden"}),(0,n.jsx)("div",{className:"mr-2 h-5 w-5 cursor-pointer",children:(null===(l=m.preferred_languages)||void 0===l?void 0:l.includes(e))?(0,n.jsx)(el,{}):(0,n.jsx)(et,{})}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e})]},e)})}),(0,n.jsx)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-semibold text-[#FFFFFF] transition ".concat((null===(r=m.preferred_languages)||void 0===r?void 0:r.length)?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:!(null===(o=m.preferred_languages)||void 0===o?void 0:o.length),onClick:w,children:"Submit"})})]})})]})},ev=e=>{var t,l,r,o;let{stepFormData:i,isLoading:c,handleNextStepClicked:p}=e,u=(0,Z.useRouter)(),h=(null===(t=u.query)||void 0===t?void 0:t.collegeSlug)||"",{formData:m,accessToken:g,phoneNumber:C,isFormJourneyCompleted:f,setFormData:b}=(0,_.o)(),{isOpen:j}=(0,I.A)(),w=e=>{b({preferred_batch:e}),(0,d.trackApnaLearnEvent)("Advantage_Preferred_Batch_Selected",{preferred_batch:e})},y=async()=>{try{if(sessionStorage.setItem("fromPreferredBatch","true"),!m.preferred_batch){p({isError:!0});return}p();let e={preferred_batch:m.preferred_batch};j&&(e.is_registered="enroll_later");let t=await (0,a.Vj)({data:e,fieldsToUpdate:["preferred_batch"],college_slug:h},g,C);if((0,d.trackApnaLearnEvent)("Advantage_Preferred_Batch_Next_Clicked",{preferred_batch:m.preferred_batch}),j){if("last"===String(t)){let e={...u.query};delete e.modal,delete e.step,u.push({pathname:"/leadsFormV2/last",query:e},void 0,{shallow:!0})}else{let e={...u.query,step:String(t)};u.push({pathname:u.pathname,query:e},void 0,{shallow:!0})}}else"last"===String(t)?u.push("/leadsFormV2/last",void 0,{shallow:!0}):u.push("/leadsForm/".concat(t),void 0,{shallow:!0})}catch(e){p({isError:!0}),console.error(e)}};return((0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,s.useEffect)(()=>{(0,d.trackApnaLearnEvent)("Advantage Viewed Preferred Batch Screen",{})},[]),f)?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{header:null==i?void 0:i.header,firstStep:m.next_step}),(0,n.jsx)("div",{className:"md:rounded-[12px] bg-white p-4 md:bg-[#FAFAFA]",children:c?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(v.A,{})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"my-4 text-[16px] font-semibold md:text-[20px]",children:null==i?void 0:i.title}),(0,n.jsx)("form",{className:"space-y-3 md:grid md:grid-cols-1 md:gap-3 md:space-y-0",children:null==i?void 0:null===(l=i.option)||void 0===l?void 0:l.map((e,t)=>(0,n.jsxs)("div",{children:[0===t&&(0,n.jsxs)("div",{className:"relative overflow-hidden",children:[(0,n.jsx)("span",{className:"inline-flex items-center rounded-t-xl bg-[#298C65] px-3 py-[2px] text-[10px] font-extrabold text-white",children:"Get 10% OFF on application fee"}),(0,n.jsx)("div",{className:"absolute inset-0 -translate-x-full animate-[shimmer_2.5s_infinite] bg-gradient-to-r from-transparent via-white/40 to-transparent [--tw-gradient-via-p
1osition:25%]"})]}),(0,n.jsxs)("label",{htmlFor:"batch-".concat(t),className:"flex cursor-pointer flex-col rounded-lg border pt-2 transition md:border-none md:bg-white ".concat(0===t?"pb-0":"pb-2"),style:0===t?{borderTopLeftRadius:"0px"}:{},children:[(0,n.jsxs)("div",{className:"flex items-center pl-2",children:[(0,n.jsx)("input",{type:"radio",id:"batch-".concat(t),name:"degree",value:e,onChange:()=>w(e),className:"mr-3 h-5 w-5 accent-[#7936BC]"}),(0,n.jsx)("span",{className:"text-sm text-[#333]",children:e})]}),0===t&&(0,n.jsx)("div",{className:"mt-1 rounded-b-md bg-[rgba(237,118,126,0.10)] pl-4 text-xs font-semibold text-[#ED767E]",children:"Admissions closing soon"})]})]},e))}),(0,n.jsx)("div",{className:"fixed bottom-0 left-0 w-full border-t border-gray-300 bg-white px-4 py-3 shadow-md md:absolute md:bottom-[40px] md:border-none md:bg-[#FAFAFA] md:px-[40px] md:shadow-none",children:(0,n.jsx)("button",{type:"button",className:"w-full rounded-lg px-5 py-2.5 font-bold text-[#FFFF] transition ".concat((null===(r=m.preferred_batch)||void 0===r?void 0:r.length)?"bg-[#3E1367] hover:bg-[#3E1367]":"cursor-not-allowed bg-[#3E1367] opacity-50"),disabled:!(null===(o=m.preferred_batch)||void 0===o?void 0:o.length),onClick:y,children:"Next"})})]})})]})};var eb=l(48547);let ej=e=>{let{stepNumber:t}=e,{phoneNumber:l,accessToken:r,formData:o,setFormData:i}=(0,_.o)(),[d,c]=(0,s.useState)({header:"",title:"",type:"",option:[],metadata:{}}),[p,u]=(0,s.useState)(!1),x=(0,s.useMemo)(()=>p,[p]),h=e=>{(null==e?void 0:e.isError)?u(!1):u(!0)},m=(0,s.useCallback)(async()=>{try{if(u(!0),r){let e=await (0,a.Hg)(parseInt(t,10),r,l);c({header:(null==e?void 0:e.header)||"",title:(null==e?void 0:e.title)||"",message:null==e?void 0:e.message,type:(null==e?void 0:e.type)||"",option:(null==e?void 0:e.option)||[],metadata:{...null==e?void 0:e.metadata,step:t}}),i({...o,next_step:t}),u(!1)}}catch(e){console.error(e),u(!1)}},[t,r,l,o]),g=async()=>{try{if(r){let e=await (0,a.Hg)(parseInt(t,10),r,l);c({header:(null==e?void 0:e.header)||"",title:(null==e?void 0:e.title)||"",message:null==e?void 0:e.message,type:(null==e?void 0:e.type)||"",option:(null==e?void 0:e.option)||[],metadata:{...null==e?void 0:e.metadata,step:t}})}}catch(e){console.error(e)}},C=(0,s.useRef)(!0);(0,s.useEffect)(()=>()=>{C.current=!1},[]),(0,s.useEffect)(()=>{t&&r&&m()},[r,l,t]);let f=t&&l&&!r;return x||f?(0,n.jsx)(v.A,{}):(0,n.jsx)(n.Fragment,{children:(()=>{if(!(null==d?void 0:d.header))return(0,n.jsx)(v.A,{});switch(d.header){case M.Um.Qualification:return(0,n.jsx)(z,{stepFormData:d,handleNextStepClicked:h});case M.Um.degree:return(0,n.jsx)(Y,{stepFormData:d,handleNextStepClicked:h});case M.Um.college:return(0,n.jsx)(eC,{handleNextStepClicked:h});case M.Um.experience:return(0,n.jsx)(ee,{stepFormData:d,handleNextStepClicked:h,isLoading:x});case M.Um.fees:return(0,n.jsx)(Q,{stepFormData:d,handleNextStepClicked:h,isLoading:x});case M.Um.reasons:return(0,n.jsx)(es,{stepFormData:d,handleNextStepClicked:h,isLoading:x});case M.Um.language:return(0,n.jsx)(ef,{stepFormData:d,handleNextStepClicked:h,isLoading:x});case M.Um.preferredBatch:return(0,n.jsx)(ev,{stepFormData:d,handleNextStepClicked:h,isLoading:x});case M.Um.registration:return(0,n.jsx)(eb.A,{stepFormData:d,handleNextStepClicked:h,isLoading:x,refetchFormData:g,handleCloseFromTrackAdmission:()=>{},handleAddCollegeFromTrackAdmission:()=>{}});default:return(0,n.jsx)(v.A,{})}})()})};var ew=l(94616),ey=l(19920);let e_=e=>{var t;let{stepNumber:l="1"}=e,{setPhoneNumber:d,isFormJourneyCompleted:c,phoneNumber:p,accessToken:u,setFormData:h,setAccessToken:m,setCurrentStep:g}=(0,_.o)(),{phoneNumber:C,accessToken:f}=(0,i.rO)(),b=(0,r.useRouter)(),j=(0,r.usePathname)(),w=(0,r.useSearchParams)(),y=Object.fromEntries((null==w?void 0:w.entries())||[]),F=(0,ew.A)(e=>{var t;return null===(t=e.modalMetaData)||void 0===t?void 0:t.queryParams}),N=null==F?void 0:F.step,k=null==F?void 0:F.phone_number,A=e=>{var t;let l=null!==(t=y[e])&&void 0!==t?t:null==w?void 0:w.get(e);return Array.isArray(l)?l[0]:l}
1,L="last"===(null!==(t=null==j?void 0:j.split("/").filter(Boolean).pop())&&void 0!==t?t:"")||(null==j?void 0:j.includes("/last")),E=A("phone_number")||k,S=L?"last":A("step")||N||l,{isOpen:Z}=(0,I.A)(),B=s.useMemo(()=>p?S===M.b?(0,n.jsx)(V,{}):(0,n.jsx)(ej,{stepNumber:S}):(0,n.jsx)(v.A,{}),[S,p]),R=(0,H.Ay)(),{addHandlers:P,removeHandlers:T}=(0,ey.Ay)();(0,s.useEffect)(()=>{let e="1"===A("hero_book_seat")||"true"===A("hero_book_seat");if(R){var t,l,n,s;c||e?null===(l=window)||void 0===l||null===(t=l.appInterface)||void 0===t||t.setBackHandleByWeb(!0):null===(s=window)||void 0===s||null===(n=s.appInterface)||void 0===n||n.setBackHandleByWeb(!1)}return P([{id:"hero_book_seat_back",condition:()=>R&&!c&&("1"===A("hero_book_seat")||"true"===A("hero_book_seat")),handler:()=>(0,x.dF)()},{id:"form_submit_success",condition:()=>c,handler:()=>(0,x.dF)()}]),()=>{T(["thankyou_popup","form_submit_success","hero_book_seat_back"])}},[c,R,P,T,w]);let D=(0,s.useCallback)(async()=>{let e=await (0,a.wm)(u,p);e&&h(e)},[u,p,h]);(0,s.useEffect)(()=>{p&&u&&D()},[u,p,D]),(0,s.useEffect)(()=>{f&&m(f)},[f,m]),(0,s.useLayoutEffect)(()=>{let e=E||k||C;e&&d(String(e))},[E,k,C,d]);let U=(0,s.useCallback)(()=>{var e,t,l,n;let s=(null==j?void 0:j.split("/").pop())||(null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.pathname.split("/").pop());if("5"===s){"android"===(null==w?void 0:w.get("client"))&&(0,x.dF)();let e=(null==j?void 0:j.replace("/leadsForm/".concat(s),""))||(null===(n=window)||void 0===n?void 0:null===(l=n.location)||void 0===l?void 0:l.pathname.replace("/leadsForm/".concat(s),""));b.replace(e)}},[j,b,w]);return(0,s.useEffect)(()=>{if((0,o.I$)(y)){let{brochureUrl:e,...t}=y,l=new URL(window.location.href);Object.keys(t).forEach(e=>{l.searchParams.set(e,t[e])}),b.replace(l.toString())}},[S,b,y]),(0,s.useEffect)(()=>(window.addEventListener("popstate",U),()=>{window.removeEventListener("popstate",U)}),[U]),(0,s.useEffect)(()=>{g(S)},[S,g]),(0,s.useLayoutEffect)(()=>{(0,x.dR)()},[]),(0,n.jsx)("div",{className:"".concat(Z?"min-h-[690px] bg-[#FAFAFA] md:relative ".concat("8"===S||"last"===S?"w-full max-w-[1200px] min-w-[740px]":"w-[689px]"," ").concat("8"!==S?"md:px-[24px]":""):"bg-white min-h-screen w-full"),children:B})}},90874:(e,t,l)=>{l.d(t,{U:()=>s,W:()=>r});let n=[];function s(e){return n.push(e),()=>{let t=n.lastIndexOf(e);-1!==t&&n.splice(t,1)}}function r(){let e=n[n.length-1];return void 0!==e&&(n.length-=1,e(),!0)}},19920:(e,t,l)=>{l.d(t,{Ay:()=>i,yO:()=>a});var n=l(35385),s=l(90874),r=l(96540);l(76424);let o={handlers:new Set,listener:null,initializeListener(){this.listener||(this.listener=()=>{(0,s.W)()||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach(e=>{let{condition:t,handler:l}=e;t()&&l()})}(Array.from(this.handlers))},window.addEventListener(n.Hp.BACK_PRESS,this.listener),window.getAppData||(window.getAppData=e=>{let t=JSON.parse(e),l=new CustomEvent("".concat(t.type),{detail:null==t?void 0:t.data});window.dispatchEvent(l)}))},addHandlers(e){e.forEach(e=>this.handlers.add(e)),this.initializeListener()},removeHandlers(e){Array.from(this.handlers).forEach(t=>{e.includes(t.id)&&this.handlers.delete(t)})}};function a(){o.initializeListener()}let i=function(){let e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>(e.current=[...e.current,...t],o.addHandlers(t),()=>{let l=t.map(e=>e.id);e.current=e.current.filter(e=>!l.includes(e.id)),o.removeHandlers(l)}),[]),l=(0,r.useCallback)(t=>{e.current=e.current.filter(e=>!t.includes(e.id)),o.removeHandlers(t)},[]);return(0,r.useEffect)(()=>function(){let t=e.current.map(e=>e.id);o.removeHandlers(t)},[]),{addHandlers:t,removeHandlers:l}}},27310:(e,t,l)=>{l.d(t,{Y5:()=>r,vf:()=>o});var n=l(53565),s=l(80997);let r=async(e,t,l,r,o)=>{let a="".concat(s.A.infra_base_url,"/apna-learn/api/adv/leads/update-utm-params"),i={};t&&""!==t&&(i.utm_source=t),l&&""!==l&&(i.utm_medium=l),r&&""!==r&&(i.utm_campaign=r),o&&""!==o&&(i.identifier=o);let d=await n.A.post(a,{phone:e,...i});return 200===d.status?d.data:null},o=async e=>{r(e,"callback_hot","Counsellor Modal desktop","","")}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.