1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4461],{6775:function(e,t,n){n.d(t,{Z:function(){return s}});const s=(0,n(91373).Z)("circle-user-round",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},72367:function(e,t,n){n.d(t,{Z:function(){return s}});const s=(0,n(91373).Z)("radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]])},9560:function(e,t,n){n.d(t,{Z:function(){return s}});const s=(0,n(91373).Z)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},82227:function(e,t,n){n.d(t,{Z:function(){return s}});const s=(0,n(91373).Z)("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]])},40981:function(e,t,n){n.d(t,{sB:function(){return o},fc:function(){return p},i9:function(){return x},tN:function(){return d},ZP:function(){return u},mZ:function(){return c}});var s=n(26042),i=n(69396),l=n(85893),r=n(62461);function a(e){var t=e.backColor,n=void 0===t?"#85B6F5":t,s=e.frontColor,i=void 0===s?"#609CE9":s,r=e.detailColor,a=void 0===r?"white":r,o=e.className;return(0,l.jsxs)("svg",{width:"84",height:"77",viewBox:"0 0 84 77",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[(0,l.jsx)("path",{d:"M62.8735 10.88C63.7891 10.6884 64.9641 10.3923 66.1094 10.4146L66.1134 10.4148C67.6893 10.4511 69.2239 10.9297 70.5406 11.7968L70.8572 12.0141C74.0375 14.2838 74.3331 17.5608 74.9577 20.573L76.4549 27.7515L81.6648 52.3296L81.6652 52.3315C81.949 53.6832 82.2315 55.004 82.1927 56.3245C82.1526 57.6933 81.7712 59.031 80.8154 60.4824L80.8165 60.4831C79.8887 61.9024 78.5564 63.0103 76.9919 63.664L76.9873 63.666C76.4336 63.8943 75.6694 64.0896 74.9649 64.2484C74.2524 64.409 73.5023 64.5532 73.0004 64.6581L72.9994 64.6583L67.1365 65.8771L48.4689 69.8473L48.4651 69.8481L36.359 72.371L33.2915 73.0218C32.5271 73.1867 31.4579 73.4642 30.4612 73.5183L30.0389 73.5266C25.8228 73.4552 22.3602 70.2686 21.7765 66.1489C21.7014 65.6188 21.53 64.941 21.3921 64.3058L20.6073 60.7435C20.3487 59.5552 20.0935 58.3661 19.8413 57.1763L19.8401 57.1706C18.1002 48.7319 16.3175 40.3018 14.4928 31.881L14.2747 30.8591C13.7866 28.4838 13.535 26.1509 15.2425 23.5226C16.1708 22.0722 17.5224 20.9417 19.1142 20.285L19.1144 20.2859C20.3027 19.7885 22.2784 19.4214 23.3898 19.1897L28.6766 18.0881L47.7026 14.081L47.7024 14.0801L50.7947 13.4092L50.8013 13.4078L60.0339 11.4752L62.8726 10.8802L62.8735 10.88Z",fill:n,stroke:a,strokeWidth:"2"}),(0,l.jsx)("path",{d:"M59.868 31.5564C60.2127 31.4684 60.5481 31.376 60.9034 31.3484C61.5065 31.2969 62.1112 31.4238 62.6434 31.7129C63.1699 31.9959 63.8669 32.5606 64.3672 32.9414L66.9016 34.8694L71.3881 38.2627C72.2308 38.8987 73.3407 39.6909 74.1252 40.3653C74.8549 44.0409 75.6938 47.7954 76.4635 51.4764L76.987 53.977C77.1038 54.5301 77.3097 55.296 77.3091 55.8478C77.3284 57.2218 76.2948 58.776 74.956 59.1787C73.8856 59.5011 72.5643 59.7271 71.4484 59.9594C69.1123 60.4369 66.7795 60.9273 64.4489 61.4304C57.6485 62.9104 50.8401 64.3542 44.024 65.7618C40.3388 66.5158 36.6584 67.2926 32.9827 68.0918C32.4997 68.2062 32.0151 68.3135 31.5293 68.4154C30.2571 68.6749 29.3748 68.7529 28.2087 68.0079C27.72 67.6957 27.1992 67.0927 26.9834 66.5573C26.5559 65.4969 26.3278 64.0746 26.0812 62.9278C25.7131 61.2722 25.3589 59.6137 25.0185 57.9518C26.3176 56.2606 27.5409 54.4339 28.8438 52.7263C29.8246 51.5481 30.76 49.7247 31.9772 48.8141C33.7176 47.513 36.1948 48.8556 37.9199 49.4918L43.1085 51.4024C43.7235 51.6305 44.3789 51.8904 44.9771 52.0826C46.2569 52.4937 47.9066 52.0481 48.7309 50.972C49.0043 50.6146 49.2062 50.2804 49.4118 49.8749C49.6129 49.4786 49.8249 49.0829 50.0288 48.6861L51.6457 45.5271L56.4847 36.1039C56.8755 35.3448 57.2888 34.5514 57.6614 33.7844C58.202 32.6718 58.6836 32.0148 59.868 31.5564Z",fill:a}),(0,l.jsx)("path",{d:"M29.7947 27.9438C32.2013 26.939 34.9669 28.0747 35.9736 30.4812C36.9803 32.8876 35.8473 35.6546 33.4424 36.6632C31.0347 37.6729 28.2644 36.5379 27.2566 34.1287C26.2488 31.7196 27.3854 28.9497 29.7947 27.9438Z",fill:a}),(0,l.jsx)("path",{d:"M50.3952 4.03936C52.3889 3.56556 54.0141 3.51051 55.9799 4.29823C57.8045 5.02691 59.3201 6.36601 60.268 8.08724C60.586 8.66805 60.9085 9.46887 61.1754 10.0891L31.8015 16.3297L23.4464 18.1042C21.6693 18.4827 19.5632 18.7809 17.9556 19.603C14.1245 21.5621 12.1378 25.9
1173 12.9741 30.1089C13.4701 32.5947 14.0218 35.0795 14.5512 37.5632L18.0261 53.7545C18.6857 56.7823 19.3296 59.8139 19.9578 62.8487C20.6061 65.9658 20.9265 69.3929 23.3176 71.7251C23.575 71.9762 23.9317 72.2786 24.1563 72.5365L24.1093 72.5575C23.5912 72.3768 23.0887 72.1535 22.607 71.8904C21.2639 71.1682 20.1482 70.086 19.3846 68.7657C18.7731 67.7257 17.9018 65.494 17.3866 64.2978L13.3178 54.7676L6.74248 39.4121L4.89948 35.0946C4.48754 34.1348 3.92765 32.9215 3.64814 31.9406C3.04699 29.8312 3.3814 27.3927 4.45804 25.4889C5.20344 24.1766 6.2832 23.0854 7.58735 22.3262C8.33198 21.8975 9.33276 21.5026 10.1371 21.1603L14.0252 19.5089L27.047 13.9445L42.96 7.14014L47.483 5.20706C48.3122 4.85163 49.5623 4.27457 50.3952 4.03936Z",fill:i})]})}var o=[{signature:"#609CE9",gradientLight:"radial-gradient(87.85% 151.18% at 66.25% 40.18%, #FAFAFA 0%, #E0F2FE 100%)",gradientDark:"radial-gradient(87.85% 151.18% at 66.25% 40.18%, #1C1F24 0%, #1E3A4C 100%)",iconLight:{back:"#85B6F5",front:"#609CE9"},iconDark:{back:"#4C7FC1",front:"#295997"}},{signature:"#ECA35A",gradientLight:"radial-gradient(123.21% 218.11% at 66.25% 40.18%, #FAFAFA 0%, #F5E1CD 100%)",gradientDark:"radial-gradient(123.21% 218.11% at 66.25% 40.18%, #1C1815 0%, #5A4A3D 100%)",iconLight:{back:"#FBC187",front:"#ECA35A"},iconDark:{back:"#C4844A",front:"#A26930"}},{signature:"#967CFA",gradientLight:"radial-gradient(126.18% 219.33% at 66.25% 40.18%, #FFFFFF 0%, #E9E6F9 100%)",gradientDark:"radial-gradient(126.18% 219.33% at 66.25% 40.18%, #1C1A22 0%, #3A3452 100%)",iconLight:{back:"#B1A1ED",front:"#967CFA"},iconDark:{back:"#7E6BCB",front:"#5B44B0"}},{signature:"#E185AA",gradientLight:"radial-gradient(126.18% 219.33% at 66.25% 40.18%, #FFFFFF 0%, #FCE7F3 100%)",gradientDark:"radial-gradient(126.18% 219.33% at 66.25% 40.18%, #1E1A1D 0%, #4A2F3F 100%)",iconLight:{back:"#FFC2DA",front:"#E185AA"},iconDark:{back:"#C97A9D",front:"#BE5780"}},{signature:"#6DD7B7",gradientLight:"radial-gradient(112.51% 188.15% at 66.25% 40.18%, #FFFFFF 0%, #C3FBD9 100%)",gradientDark:"radial-gradient(126.18% 219.33% at 66.25% 40.18%, #18201C 0%, #2C5545 100%)",iconLight:{back:"#85ECD4",front:"#6DD7B7"},iconDark:{back:"#4FBFA6",front:"#3DA284"}}],c=function(e){return"linear-gradient(to right, ".concat(e," 1px, transparent 1px), linear-gradient(to bottom, ").concat(e," 1px, transparent 1px)")},d="radial-gradient(ellipse at center, #000 35%, transparent 90%)",x="1A",p="1A";function u(e){var t=e.seed,n=e.variantIndex,u=void 0===n?null:n,m=e.className,h=null!=u?(u%o.length+o.length)%o.length:function(e,t){for(var n=String(null!==e&&void 0!==e?e:""),s=0,i=0;i<n.length;i++)s=(s+n.charCodeAt(i))%t;return s}(t,o.length),f=o[h],g={backgroundSize:"24px 24px",WebkitMaskImage:d,maskImage:d};return(0,l.jsxs)("div",{className:(0,r.cn)("relative flex h-full w-full items-center justify-center overflow-hidden",m),children:[(0,l.jsx)("div",{className:"absolute inset-0 dark:hidden",style:{background:f.gradientLight}}),(0,l.jsx)("div",{className:"absolute inset-0 hidden dark:block",style:{background:f.gradientDark}}),(0,l.jsx)("div",{className:"absolute inset-0 dark:hidden",style:(0,i.Z)((0,s.Z)({},g),{backgroundImage:c("".concat(f.signature).concat(x))})}),(0,l.jsx)("div",{className:"absolute inset-0 hidden dark:block",style:(0,i.Z)((0,s.Z)({},g),{backgroundImage:c("".concat(f.signature).concat(p))})}),(0,l.jsx)(a,{backColor:f.iconLight.back,frontColor:f.iconLight.front,detailColor:"white",className:"relative h-auto w-1/4 dark:hidden"}),(0,l.jsx)(a,{backColor:f.iconDark.back,frontColor:f.iconDark.front,detailColor:"#2A2A2A",className:"relative hidden h-auto w-1/4 dark:block"})]})}},23879:function(e,t,n){n.d(t,{dJ:function(){return u}});var s=n(47568),i=n(97582),l=n(85893),r=n(67294),a=n(89885),o=n(84747),c=n(99209),d=n(35739),x=n(82227);function p(e){var t=Number(e);return Number.isFinite(t)?t:0}var u=function(e){var t=e.courseId,n=e.itemType,u=e.likesCount,m=(0,r.useContext)(a.Z),h=m.currentUser,f=m.toggleAuthModal,g=m.setIsLogin,v=(m.hasSession,m.appConfig,(0,r.useState)(!1)),w=(v[0],v[1]),j=(0,r.useState)((function(){return p(u)})),b=j[0],y=j[1];(0,r.useEffect)((function(){h&&N()}),[h]);var N=function(){var e=(0,s.Z)((function(){var e,s;return(0,i.__generator)(this,(function(i){if(h){e=[];try{s=JSON.parse(localStorage.getItem("course_likes")||"[]"),Array.isArray(s)&&(e=s)}catch(l){e=[]}(null===e||void 0===e?void 0:e.some((function(e){return e.item_id==t&&e.item_type==n})))&&w(!0)}return[2]}))}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,s.Z)((function(e,t,n){var s,l;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(!h)return g(!0),f(),[2];s=[];try{l=JSON.parse(localStorage.getItem("course_likes")||"[]"),Array.isArray(l)&&(s=l)}catch(r){s=[]}return(null===s||void 0===s?void 0:s.some((function(e){return e.item_id===t&&e.item_type===n})))?[2]:[4,(0,c.$k)(e,t,n)];case 1:return i.sent()&&(s.push({item_id:t,item_type:n}),w(!0),y((function(e){return p(e)+1})),localStorage.setItem("course_likes",JSON.stringify(s))),[2]}}))}));return function(t,n,s){return e.apply(this,arguments)}}();return(0,l.jsxs)(d.z,{variant:"outline",size:"sm",className:"shrink-0 w-fit","aria-label":"Like",onClick:function(){return k(h?h.userid:null,t,n)},children:[(0,l.jsx)(x.Z,{className:"size-4"}),b>0?(0,l.jsx)("span",{className:"tabular-nums",children:(0,o.Z)(b)}):(0,l.jsx)("span",{children:"Like"})]})};t.ZP=u},65356:function(e,t,n){n.d(t,{Z:function(){return m}});var s=n(26042),i=n(69396),l=n(85893),r=n(67294),a=n(95719),o=n(83024),c=n(96076),d=n(47041),x=n(89885),p=n(66471),u=c.jA;function m(e){var t=e.title,n=e.isOpen,m=e.toggle,h=e.allowDownload,f=void 0===h?"0":h,g=e.isEncrypted,v=void 0===g?"0":g,w=e.encryptionVersion,j=void 0===w?"1":w,b=e.encryptionKey,y=void 0===b?"":b,N=e.phone,k=void 0===N?"":N,C=e.modalHeaderProps,L=void 0===C?{}
1:C,E=e.modalHeaderChildren,A=void 0===E?null:E,F=(e.watermarkConfig,e.clientUrl),M=e.link,Z=e.size,S=(0,r.useContext)(x.Z).currentUser,_=(0,r.useRef)(null),B=(0,r.useMemo)((function(){var e,t;try{var n=(0,d.getCookie)(c.z1);n&&(e=new URL(n))}catch(s){console.error("error while getting base url",s)}return null!==(t=null!==F&&void 0!==F?F:null===e||void 0===e?void 0:e.host)&&void 0!==t?t:""}),[F]),T=(0,r.useMemo)((function(){return k||((null===S||void 0===S?void 0:S.phone)?btoa(c.qn.VALUE+c.qn.VALUE1+S.phone):"")}),[k,S]),I=(0,r.useCallback)((function(){var e=new URLSearchParams;return new Map([["file",M],["save_flag",f],["is_encrypted",v],["encryption_version",j],["encryption_key",y],["title",t],["phone",T],["client_url",B]]).forEach((function(t,n){t&&e.append(n,t)})),e.toString()}),[M,f,v,j,y,t,T,B]);return(0,r.useEffect)((function(){return n&&(0,p.w)("file_download",{file_name:t||M,file_extension:"pdf"}),window.print=function(e){},window.onkeydown=function(e){(80===e.keyCode||83===e.keyCode||67===e.keyCode)&&(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.preventDefault(),e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation())},function(){window.onkeydown=null}}),[n,t,M]),(0,l.jsxs)(a.Z,{unmountOnClose:!0,isOpen:n,toggle:m,fullscreen:!Z,size:Z||void 0,children:[m&&(0,l.jsxs)(o.Z,(0,i.Z)((0,s.Z)({toggle:m},L),{children:[(0,l.jsx)("div",{className:"flex gap-2",children:t&&!A&&(0,l.jsx)("div",{className:"font-lg font-bold",children:t})}),A||(0,l.jsx)(l.Fragment,{})]})),(0,l.jsx)("iframe",{ref:_,src:"".concat(u,"pdfjs/web/viewer-new.html?").concat(I()),sandbox:"allow-forms allow-scripts allow-same-origin allow-popups allow-modals allow-top-navigation allow-top-navigation-by-user-activation allow-orientation-lock allow-downloads",allowFullScreen:!0,height:"100%",width:"100%",className:"".concat(Z?"h-[calc(45vh-3.5rem)]":"")})]})}},95537:function(e,t,n){n.d(t,{y:function(){return a}});var s=n(85893),i=n(67294),l=n(8971),r=/((?:https?:\/\/|www\.)[^\s<]+)/gi;function a(e){var t=e.text,n=e.fade,a=void 0!==n&&n,o=e.collapsedHeight,c=void 0===o?160:o,d=(0,i.useState)(!1),x=d[0],p=d[1],u=(0,i.useState)(!1),m=u[0],h=u[1],f=(0,i.useState)(0),g=f[0],v=f[1],w=(0,i.useRef)(null),j=(0,i.useRef)();(0,i.useEffect)((function(){var e=w.current;if(e){!function(e){for(var t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:function(e){var t=e.parentElement;return!t||t.closest("a, script, style")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),n=[],s=t.nextNode();s;)n.push(s),s=t.nextNode();n.forEach((function(e){var t,n=e.data;if(r.lastIndex=0,r.test(n)){r.lastIndex=0;for(var s,i=document.createDocumentFragment(),l=0;s=r.exec(n);){var a=s[0],o=a.match(/[.,;:!?)\]}'"]+$/);if(o&&(a=a.slice(0,-o[0].length)),a){s.index>l&&i.appendChild(document.createTextNode(n.slice(l,s.index)));var c=document.createElement("a");c.href=a.startsWith("http")?a:"https://".concat(a),c.textContent=a,c.target="_blank",c.rel="noopener noreferrer",c.className="text-primary underline break-words",i.appendChild(c),l=s.index+a.length}}l<n.length&&i.appendChild(document.createTextNode(n.slice(l))),null===(t=e.parentNode)||void 0===t||t.replaceChild(i,e)}}))}(e);var t=function(){return v(Math.ceil(e.getBoundingClientRect().height))};if(t(),"undefined"!==typeof ResizeObserver){var n=new ResizeObserver(t);return n.observe(e),function(){return n.disconnect()}}}}),[t]),(0,i.useEffect)((function(){return function(){return clearTimeout(j.current)}}),[]);var b=g>c+16,y=b&&!x,N=b?x?m?g:void 0:c:void 0;return(0,s.jsxs)("div",{className:"flex w-full flex-col items-start text-[15px] leading-relaxed text-muted-foreground",children:[(0,s.jsxs)("div",{className:"relative w-full overflow-hidden transition-[max-height] duration-500 ease-[cubic-bezier(0.4,0,0.2,1)] motion-reduce:transition-none",style:void 0===N?void 0:{maxHeight:N},children:[(0,s.jsx)("div",{ref:w,className:"[&>*:last-child]:mb-0",dangerouslySetInnerHTML:{__html:t}}),a&&(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-card via-card/70 to-transparent transition-opacity duration-300 ease-out motion-reduce:transition-none ".concat(y?"opacity-100":"opacity-0")})]}),b&&(0,s.jsxs)("button",{type:"button",onClick:function(){clearTimeout(j.current),h(!0),j.current=setTimeout((function(){return h(!1)}),600),x?requestAnimationFrame((function(){return requestAnimationFrame((function(){return p(!1)}))})):p(!0)},"aria-expanded":x,className:"-ml-1 mt-2 inline-flex items-center gap-1 rounded-md px-1 py-1 text-sm font-medium text-primary outline-none transition-colors duration-200 hover:bg-primary/5 focus-visible:ring-2 focus-visible:ring-ring",children:[x?"Read less":"Read more",(0,s.jsx)(l.Z,{className:"h-4 w-4 transition-transform duration-300 ease-out motion-reduce:transition-none ".concat(x?"-rotate-180":"rotate-0")})]})]})}},96754:function(e,t,n){n.d(t,{L:function(){return c}});var s=n(26042),i=n(29815),l=n(85893),r=n(67294),a=n(40981),o=n(58265),c=function(e){var t=e.imageStr,n=e.title,c=void 0===n?"":n,d=e.imgHeight,x=void 0===d?"200":d,p=e.mode,u=void 0===p?"blur-bg":p,m=e.fallbackSeed,h=e.variantIndex,f=e.eager,g=void 0!==f&&f,v=(0,r.useMemo)((function(){return(0,o.V2)(t)}),[t]),w=(0,r.useState)(0),j=w[0],b=w[1],y=(0,r.useState)(new Set),N=y[0],k=y[1],C=(0,r.useRef)(0),L=(0,r.useMemo)((function(){return v.filter((function(e){return!N.has(e)}))}),[N,v]);(0,r.useEffect)((function(){b(0),k(new Set)}),[t]),(0,r.useEffect)((function(){if(!(L.length<=1)){var e=setInterval((function(){return b((function(e){return(e+1)%L.length}))}),7e3);return function(){return clearInterval(e)}}}),[L.length]);var E=(0,r.useCallback)((function(e){k((function(t){return new Set((0,i.Z)(t).concat([e]))})),b(0)}),[]),A=function(e){C.current=e.touches[0].clientX},F=function(e){if(!(L.length<=1)){var t=C.current-e.changedTouches[0].clientX;Math.abs(t)>30&&b(t>0?function(e){return(e+1)%L.length}:function(e){return(e-1+L.length)%L.length})}};if(0===L.length)return(0,l.jsx)(a.ZP,{seed:null!==m&&void 0!==m?m:c,variantIndex:h,className:"h-full"});var M=L[j%L.length],Z=L.length>1&&(0,l.jsx)("div",{className:"absolute bottom-2 left-0 right-0 flex justify-center gap-1.5 z-10",children:L.map((function(e,t){return(0,l.jsx)("button",{onClick:function(e){e.stopPropagation(),b(t)},className:"w-2 h-2 rounded-full transition-all ".concat(t===j?"bg-background scale-125":"bg-background/50")},e)}))});if("cover"===u)return(0,l.jsxs)("div",{className:"relative w-full h-full overflow-hidden",onTouchStart:A,onTouchEnd:F,children:[(0,l.jsx)("img",{alt:c,src:M,onError:function(){return E(M)},loading:g?"eager":"lazy",decoding:"async",className:"w-full h-full object-cover transition-transform duration-700 group-hover/item:scale-110"}),Z]});if("contain"===u)return(0,l.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center",onTouchStart:A,onTouchEnd:F,children:[(0,l.jsx)("img",{alt:c,src:M,onError:function(){return E(M)},loading:g?"eager":"lazy",decoding:"async",className:"max-h-full max-w-full w-auto h-auto object-contain p-6 drop-shadow-xl transition-transform duration-500"}),Z]});if("blur-bg"===u){var S=x?{height:"".concat(x,"px")}:void 0;return(0,l.jsxs)("div",{className:"relative w-full h-full overflow-hidden",style:S,onTouchStart:A,onTouchEnd:F,children:[(0,l.jsx)("div",{className:"absolute inset-0 w-full h-full scale-110 blur-xl",style:(0,s.Z)({backgroundImage:"url(".concat(M,")"),backgroundSize:"cover",backgroundPosition:"center"},x?{height:"".concat(x,"px")}:{})}),(0,l.jsx)("img",{alt:c,src:M,onError:function(){return E(M)},loading:g?"eager":"lazy",decoding:"async",className:"relative block mx-auto h-full w-auto object-contain",style:S}),Z]})}return(0,l.jsxs)("div",{className:"relative w-full h-full",style:{height:"".concat(x,"px")},onTouchStart:A,onTouchEnd:F,children:[(0,l.jsx)("img",{src:M,alt:c,onError:function(){return E(M)},loading:g?"eager":"lazy",decoding:"async",className:"w-full object-cover flex-shrink-0 flex h-full",style:{height:"".concat(x,"px"),objectFit:"fill"}}),(0,l.jsx)("img",{src:M,alt:c,onError:function(){return E(M)},loading:g?"eager":"lazy",decoding:"async",className:"absolute inset-0 card-img-top flex-shrink-0 flex h-full object-fill",width:"100%",style:{height:"".concat(x,"px")}}),Z]})}},62411:function(e,t,n){n.d(t,{t:function(){return a}});var s=n(85893),i=n(9590),l=n(67294),r=n(95537),a=function(e){var t=e.style,n=e.content,a=e.wordLimit,o=void 0===a?60:a,c=e.className,d=void 0===c?"mb
1-3 sub-text":c,x=e.enableReadMore,p=void 0!==x&&x,u=e.noWordLimit,m=void 0!==u&&u,h=e.fade,f=void 0!==h&&h,g=(0,l.useState)(null),v=g[0],w=g[1],j=(0,l.useState)(!1),b=j[0],y=j[1];return(0,l.useEffect)((function(){y(!0);var e=m?1/0:o;w((0,i.Uq)(n,e))}),[n,o,m]),n&&b?"string"===typeof v?p?(0,s.jsx)("div",{className:d,style:t,children:(0,s.jsx)(r.y,{text:v,fade:f})}):(0,i.mx)(n)&&"html"===n.type?(0,s.jsx)("div",{className:d,style:t,dangerouslySetInnerHTML:{__html:v}}):(0,s.jsx)("div",{className:d,style:t,children:v}):(0,s.jsx)("div",{className:d,style:t,children:v}):null};t.Z=a},84747:function(e,t,n){n.d(t,{Z:function(){return i}});var s=n(26042);function i(e,t){var n=Number(e);return"string"===typeof e&&isNaN(n)?e:isNaN(n)?String(e):new Intl.NumberFormat("en-US",(0,s.Z)({maximumFractionDigits:1,notation:"compact",compactDisplay:"short"},t)).format(n)}},64461:function(e,t,n){n.r(t),n.d(t,{default:function(){return te}});var s=n(85893),i=n(25675),l=n.n(i),r=n(41664),a=n.n(r),o=n(67294),c=n(11163),d=n(89885),x=n(71248);function p(){var e=(0,o.useContext)(d.Z),t=e.appConfig,n=e.hasSession,i=e.currentUser,r=e.toggleAuthModal,p=e.setIsLogin,u=(0,c.useRouter)(),m=(0,x.eK)((0,x.rT)(t,!1,n),t,!1),h=m.slice(0,3),f=m.slice(3),g=(0,o.useState)(!1),v=g[0],w=g[1],j=(0,o.useState)(!1),b=j[0],y=j[1],N=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e=function(e){N.current&&!N.current.contains(e.target)&&w(!1)};if(v)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}),[v]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"relative z-20 bg-[#E31E25]",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between px-4 py-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("svg",{width:"24",height:"17",viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"hidden sm:block",children:[(0,s.jsx)("path",{d:"M2 2H22V15H2V2Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M2 2L12 10L22 2",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("span",{className:"text-white font-medium text-[13px] sm:text-[14px] lg:text-[16px] tracking-[0.32px]",children:"[email protected]"})]}),(0,s.jsxs)("nav",{"aria-label":"Social media",className:"flex items-center gap-3 sm:gap-4",children:[t.web_fbpagelink&&(0,s.jsx)("a",{href:t.web_fbpagelink,target:"_blank",rel:"noreferrer","aria-label":"Facebook",className:"text-white hover:opacity-80 cursor-pointer",children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M18 10C18 5.58 14.42 2 10 2C5.58 2 2 5.58 2 10C2 14 4.87 17.37 8.69 17.9V12.31H6.69V10H8.69V8.19C8.69 6.22 9.86 5.13 11.64 5.13C12.5 5.13 13.39 5.29 13.39 5.29V7.23H12.41C11.43 7.23 11.12 7.84 11.12 8.47V10H13.3L12.94 12.31H11.12V17.9C14.94 17.37 18 14 18 10Z"})})}),t.web_instapagelink&&(0,s.jsx)("a",{href:t.web_instapagelink,target:"_blank",rel:"noreferrer","aria-label":"Instagram",className:"text-white hover:opacity-80 cursor-pointer",children:(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 1.62c2.4 0 2.68.01 3.63.05.87.04 1.35.18 1.66.3.42.16.72.36 1.03.67.31.31.51.61.67 1.03.12.31.26.79.3 1.66.04.95.05 1.23.05 3.63s-.01 2.68-.05 3.63c-.04.87-.18 1.35-.3 1.66-.16.42-.36.72-.67 1.03-.31.31-.61.51-1.03.67-.31.12-.79.26-1.66.3-.95.04-1.23.05-3.63.05s-2.68-.01-3.63-.05c-.87-.04-1.35-.18-1.66-.3a2.78 2.78 0 0 1-1.03-.67 2.78 2.78 0 0 1-.67-1.03c-.12-.31-.26-.79-.3-1.66C1.67 11.68 1.66 11.4 1.66 9s.01-2.68.05-3.63c.04-.87.18-1.35.3-1.66.16-.42.36-.72.67-1.03.31-.31.61-.51 1.03-.67.31-.12.79-.26 1.66-.3C6.32 1.67 6.6 1.66 9 1.66M9 0C6.56 0 6.25.01 5.29.05 4.33.09 3.68.26 3.1.49a4.4 4.4 0 0 0-1.6 1.04A4.4 4.4 0 0 0 .46 3.13C.23 3.71.09 4.36.05 5.32.01 6.28 0 6.59 0 9.03s.01 2.75.05 3.71c.04.96.18 1.61.41 2.19.23.6.53 1.1 1.04 1.6.5.5 1 .81 1.6 1.04.58.23 1.23.37 2.19.41.96.04 1.27.05 3.71.05s2.75-.01 3.71-.05c.96-.04 1.61-.18 2.19-.41a4.4 4.4 0 0 0 1.6-1.04c.5-.5.81-1 1.04-1.6.23-.58.37-1.23.41-2.19.04-.96.05-1.27.05-3.71s-.01-2.75-.05-3.71c-.04-.96-.18-1.61-.41-2.19a4.4 4.4 0 0 0-1.04-1.6A4.4 4.4 0 0 0 14.9.46C14.32.23 13.67.09 12.71.05 11.75.01 11.44 0 9 0Z"}),(0,s.jsx)("path",{d:"M9 4.38a4.62 4.62 0 1 0 0 9.24 4.62 4.62 0 0 0 0-9.24ZM9 12a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z"}),(0,s.jsx)("circle",{cx:"13.8",cy:"4.2",r:"1.08"})]})}),t.web_youtubepagelink&&(0,s.jsx)("a",{href:t.web_youtubepagelink,target:"_blank",rel:"noreferrer","aria-label":"YouTube",className:"text-white hover:opacity-80 curs
1or-pointer",children:(0,s.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M20.1 5.36a2.5 2.5 0 0 0-1.76-1.77C16.85 3.14 10.5 3.14 10.5 3.14s-6.35 0-7.84.45A2.5 2.5 0 0 0 .9 5.36 26.2 26.2 0 0 0 .5 10a26.2 26.2 0 0 0 .4 4.64 2.5 2.5 0 0 0 1.76 1.77c1.49.45 7.84.45 7.84.45s6.35 0 7.84-.45a2.5 2.5 0 0 0 1.76-1.77c.28-1.5.4-3.06.4-4.64a26.2 26.2 0 0 0-.4-4.64ZM8.5 13V7l5.2 3-5.2 3Z"})})})]}),t.web_androidurl&&(0,s.jsx)("a",{href:t.web_androidurl,target:"_blank",rel:"noreferrer",className:"hidden sm:inline text-white font-medium text-[13px] sm:text-[14px] lg:text-[16px] tracking-[0.32px] underline cursor-pointer",children:"Download our App"})]})}),(0,s.jsx)("div",{className:"relative z-20 px-4 md:px-6 lg:px-8",children:(0,s.jsx)("header",{className:"bg-white shadow-sm max-w-7xl mx-auto rounded-b-xl",children:(0,s.jsxs)("div",{className:"px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2 shrink-0 min-w-0",children:[(0,s.jsx)("div",{className:"w-[32px] h-[32px] md:w-[48px] md:h-[46px] relative shrink-0",children:(0,s.jsx)(l(),{src:"/gravity/logo.png",alt:"Gravity Classes Logo",layout:"fill",objectFit:"contain"})}),(0,s.jsxs)("span",{className:"font-extrabold text-[16px] md:text-[26px] uppercase leading-[1.2]",children:[(0,s.jsx)("span",{className:"text-[#E31E25]",children:"Gravity "}),(0,s.jsx)("span",{className:"text-[#303877]",children:"Classes"})]})]}),(0,s.jsxs)("nav",{className:"hidden md:flex items-center gap-1",children:[h.map((function(e){return(0,s.jsx)(a(),{href:e.href,children:(0,s.jsx)("a",{className:"px-2.5 py-2 rounded-lg text-[15px] font-medium tracking-[-0.16px] whitespace-nowrap no-underline cursor-pointer transition-colors text-black hover:bg-gray-100",children:e.label})},e.type)})),f.length>0&&(0,s.jsxs)("div",{ref:N,className:"relative",children:[(0,s.jsxs)("button",{type:"button",onClick:function(){return w((function(e){return!e}))},className:"flex items-center gap-1 px-2.5 py-2 rounded-lg text-[15px] font-medium tracking-[-0.16px] whitespace-nowrap cursor-pointer transition-colors text-black hover:bg-gray-100 border-0 bg-transparent",children:["More",(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",className:"transition-transform duration-200 ".concat(v?"rotate-180":""),children:(0,s.jsx)("path",{d:"M3 5l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),v&&(0,s.jsx)("div",{className:"absolute right-0 top-full mt-1.5 bg-white rounded-xl shadow-lg border border-gray-100 py-1.5 min-w-[180px] z-50",children:f.map((function(e){return(0,s.jsx)(a(),{href:e.href,children:(0,s.jsx)("a",{onClick:function(){return w(!1)},className:"block px-4 py-2 text-[14px] font-medium text-black hover:bg-gray-50 no-underline cursor-pointer transition-colors",children:e.label})},e.type)}))})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("button",{type:"button",onClick:function(){i?u.push("/new-courses"):(p(!0),r())},className:"flex items-center gap-2 bg-[#E31E25] text-white px-3 md:px-4 py-2 md:py-2.5 rounded-lg font-semibold text-[13px] md:text-[15px] uppercase tracking-[-0.5px] cursor-pointer hover:bg-[#c9171d] transition-colors shrink-0 border-0",children:[(0,s.jsx)("span",{className:"md:hidden",children:"Join"}),(0,s.jsx)("span",{className:"hidden md:inline",children:"Join Now"}),(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"hidden md:block",children:(0,s.jsx)("path",{d:"M5 15L15 5M15 5H8M15 5V12",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,s.jsx)("button",{type:"button",onClick:function(){return y((function(e){return!e}))},className:"md:hidden flex items-center justify-center w-9 h-9 rounded-lg border border-gray-200 bg-gray-50 cursor-pointer","aria-label":"Toggle menu",children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b?(0,s.jsx)("path",{d:"M6 6L18 18M6 18L18 6",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M3 7H21",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M3 12H21",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M3 17H21",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round"})]})})})]})]}),b&&(0,s.jsx)("nav",{className:"md:hidden flex flex-col gap-1 pt-3 pb-2 border-t border-gray-100 mt-3",children:m.map((function(e){return(0,s.jsx)(a(),{href:e.href,children:(0,s.jsx)("a",{onClick:function(){return y(!1)},className:"block px-3 py-2.5 rounded-lg text-[15px] font-medium text-black hover:bg-gray-50 no-underline cursor-pointer transition-colors",children:e.label})},e.type)}))})]})})})]})}function u(){var e=(0,o.useContext)(d.Z),t=e.currentUser,n=e.toggleAuthModal,i=e.setIsLogin,r=(0,c.useRouter)();return(0,s.jsxs)("section",{className:"relative w-full bg-[#303877] overflow-hidden",children:[(0,s.jsxs)("div",{className:"absolute inset-0 opacity-[0.11] pointer-events-none",children:[(0,s.jsx)(l(),{src:"/gravity/hero-bg.png",alt:"",layout:"fill",objectFit:"cover",priority:!0}),(0,s.jsx)("div",{className:"absolute inset-0 bg-[rgba(48,56,119,0.33)]"})]}),(0,s.jsx)(p,{}),(0,s.jsxs)("div",{className:"relative z-10 flex items-end justify-between max-w-7xl mx-auto px-4 pt-[60px] md:pt-[100px] lg:pt-[140px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[18px] md:gap-[27px] max-w-full lg:max-w-[744px] pb-[60px] md:pb-[80px] lg:pb-[120px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 bg-[#FFC619] rounded-[10px] px-3 md:px-4 py-1.5 w-fit",children:[(0,s.jsx)("div",{className:"w-[13px] h-[13px] bg-[#252641] rounded-full border-[3px] border-[#252641] hidden sm:block"}),(0,s.jsx)("span",{className:"font-bold text-[14px] md:text-[16
1px] lg:text-[18px] text-[#252641] tracking-[0.36px] whitespace-nowrap",children:"Guiding You to India's Top Colleges!"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-[12px] md:gap-[17px]",children:[(0,s.jsx)("h1",{className:"font-bold text-[28px] md:text-[40px] lg:text-[55px] text-white leading-[1.1]",children:"Your path to Medical, Engineering & other Top Colleges starts here!"}),(0,s.jsx)("p",{className:"font-medium text-[16px] md:text-[20px] lg:text-[24px] text-white/70 tracking-[0.48px] max-w-[658px] leading-[1.2]",children:"At Gravity Classes, we combine expert mentorship, smart learning systems, and a motivating environment to help you succeed."})]}),(0,s.jsx)("button",{type:"button",onClick:function(){t?r.push("/new-courses"):(i(!0),n())},className:"bg-white rounded-full pl-[16px] md:pl-[22px] pr-[8px] md:pr-[10px] py-[8px] md:py-[10px] w-fit cursor-pointer border-0",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,s.jsx)("span",{className:"font-semibold text-[14px] md:text-[17px] lg:text-[20px] text-black whitespace-nowrap",children:"Start Learning with Gravity Classes"}),(0,s.jsx)("div",{className:"w-[30px] h-[30px] md:w-[35px] md:h-[35px] bg-[#E31E25] rounded-full flex items-center justify-center shrink-0",children:(0,s.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rotate-45",children:(0,s.jsx)("path",{d:"M5 14L14 5M14 5H7M14 5V12",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]}),(0,s.jsxs)("figure",{className:"relative shrink-0 w-[520px] h-[530px] hidden lg:block",children:[(0,s.jsx)("div",{className:"absolute right-0 bottom-0 w-[266px] h-[532px]",children:(0,s.jsx)(l(),{src:"/gravity/hero-phone.png",alt:"Gravity App",layout:"fill",objectFit:"contain",objectPosition:"bottom"})}),(0,s.jsx)("div",{className:"absolute left-0 bottom-0 w-[377px] h-[520px]",children:(0,s.jsx)(l(),{src:"/gravity/hero-person.png",alt:"Gravity Classes Teacher",layout:"fill",objectFit:"contain",objectPosition:"bottom",priority:!0})})]})]})]})}var m=n(11816);const h={some:0,all:1};function f(e,{root:t,margin:n,amount:s,once:i=!1,initial:l=!1}={}){const[r,a]=(0,o.useState)(l);return(0,o.useEffect)((()=>{if(!e.current||i&&r)return;const l={root:t&&t.current||void 0,margin:n,amount:s};return function(e,t,{root:n,margin:s,amount:i="some"}={}){const l=(0,m.I)(e),r=new WeakMap,a=new IntersectionObserver((e=>{e.forEach((e=>{const n=r.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){const n=t(e.target,e);"function"===typeof n?r.set(e.target,n):a.unobserve(e.target)}else"function"===typeof n&&(n(e),r.delete(e.target))}))}),{root:n,rootMargin:s,threshold:"number"===typeof i?i:h[i]});return l.forEach((e=>a.observe(e))),()=>a.disconnect()}(e.current,(()=>(a(!0),i?void 0:()=>a(!1))),l)}),[t,e,n,i,s]),r}var g=n(20291),v=[{value:60,suffix:"+",label:"Expert Mentors"},{value:40,suffix:"+",label:"Courses"},{value:900,suffix:"+",label:"Students"},{value:21,suffix:"+",label:"Branches"}];function w(e){var t=e.value,n=e.suffix,i=e.inView,l=(0,o.useState)(0),r=l[0],a=l[1];return(0,o.useEffect)((function(){if(i){var e=t/60,n=0,s=0,l=setInterval((function(){s++,n=Math.min(Math.round(e*s),t),a(n),s>=60&&clearInterval(l)}),800/60);return function(){return clearInterval(l)}}}),[i,t]),(0,s.jsxs)("span",{children:[r,n]})}function j(){var e=(0,o.useRef)(null),t=f(e,{once:!0,margin:"-100px"});return(0,s.jsx)("section",{ref:e,className:"w-full bg-[#5E6CD7] py-6 md:py-8 lg:py-[42px]",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto flex items-center justify-center gap-4 md:gap-8 lg:gap-[92px] flex-wrap px-4",children:v.map((function(e,n){return(0,s.jsxs)("div",{className:"flex items-center gap-4 md:gap-8 lg:gap-[92px]",children:[(0,s.jsxs)(g.E.div,{className:"flex flex-col items-center md:items-start",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{},transition:{duration:.5,delay:.15*n},children:[(0,s.jsx)("span",{className:"font-bold text-[32px] md:text-[48px] lg:text-[64px] text-white leading-[1.25]",children:(0,s.jsx)(w,{value:e.value,suffix:e.suffix,inView:t})}),(0,s.jsx)("span",{className:"font-normal text-[12px] md:text-[18px] lg:text-[25px] text-white uppercase leading-[1.5]",children:e.label})]}),n<v.length-1&&(0,s.jsx)("div",{className:"w-[1px] h-[32px] md:h-[44px] lg:h-[56px] bg-white hidden md:block"})]},e.label)}))})})}var b=n(5798),y=n(98814),N=n(64998),k=n(2559);function C(e){var t=e.sliderImages,n=void 0===t?[]:t,i=(0,o.useContext)(d.Z).appConfig,r=(0,o.useRef)(null);return(0,s.jsx)("section",{className:"w-full bg-white py-8 md:py-[40p
1x] lg:py-[52px] relative",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col items-center px-4",children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("div",{className:"w-full h-[180px] sm:h-[220px] md:h-[280px] lg:h-[357px] rounded-[12px] sm:rounded-[16px] md:rounded-[22px] lg:rounded-[26px] overflow-hidden relative",children:n.length>0?(0,s.jsx)(b.Z,{ref:r,arrows:!1,autoplay:!0,infinite:!0,autoplaySpeed:3e3,speed:500,children:n.map((function(e,t){return(0,s.jsx)("a",{href:e.connected_link,rel:"noreferrer","aria-label":"Slide ".concat(t+1),children:(0,s.jsx)("img",{src:e.image_link,alt:"Slide ".concat(t+1),className:"w-full h-[180px] sm:h-[220px] md:h-[280px] lg:h-[357px] object-cover"})},t)}))}):(0,s.jsx)(l(),{src:"/gravity/iit-jee-neet-banner.png",alt:"IIT-JEE & NEET Preparation",layout:"fill",objectFit:"cover"})}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-3 md:mt-0 md:absolute md:inset-0 md:pointer-events-none",children:[(0,s.jsx)("button",{type:"button","aria-label":"Previous slide",onClick:function(){var e;return null===(e=r.current)||void 0===e?void 0:e.slickPrev()},className:"w-[36px] h-[36px] md:w-[50px] md:h-[50px] lg:w-[62px] lg:h-[62px] rounded-full border-2 border-[#303877] md:border-white bg-[#303877] flex items-center justify-center transition-colors cursor-pointer md:pointer-events-auto md:absolute md:left-[-25px] lg:left-[-31px]",children:(0,s.jsx)(y.Z,{size:20,color:"white",strokeWidth:2})}),(0,s.jsx)("button",{type:"button","aria-label":"Next slide",onClick:function(){var e;return null===(e=r.current)||void 0===e?void 0:e.slickNext()},className:"w-[36px] h-[36px] md:w-[50px] md:h-[50px] lg:w-[62px] lg:h-[62px] rounded-full border-2 border-[#303877] md:border-white bg-[#303877] flex items-center justify-center transition-colors cursor-pointer md:pointer-events-auto md:absolute md:right-[-25px] lg:right-[-31px]",children:(0,s.jsx)(N.Z,{size:20,color:"white",strokeWidth:2})})]})]}),(0,s.jsx)(k.Z,{ytChannel:null===i||void 0===i?void 0:i.web_youtubepagelink})]})})}var L=["We combine conceptual learning, focused practice, & performance analysis to help students build strong fundamentals.","Our experienced mentors stay aligned with the latest NTA and school curriculum, ensuring students receive the most relevant and effective preparation.","Beyond academics, we focus on developing confidence, discipline, and problem-solving ability."];function E(){var e=(0,o.useContext)(d.Z),t=e.currentUser,n=e.toggleAuthModal,i=e.setIsLogin,r=(0,c.useRouter)();return(0,s.jsx)("section",{className:"w-full bg-[#F2F4FF] py-10 md:py-16 lg:py-20 overflow-hidden",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col lg:flex-row items-center justify-center gap-8 lg:gap-[65px] px-4",children:[(0,s.jsxs)("div",{className:"hidden md:block shrink-0 w-[300px] h-[370px] md:w-[400px] md:h-[500px] lg:w-[560px] lg:h-[694px] bg-[#DCE2FF] rounded-[486px] relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute -left-[40px] md:-left-[60px] lg:-left-[76px] top-[20px] md:top-[28px] lg:top-[37px] w-[280px] md:w-[380px] lg:w-[517px] h-[420px] md:h-[580px] lg:h-[776px]",children:(0,s.jsx)(l(),{src:"/gravity/commitment-student1.png",alt:"Student",layout:"fill",objectFit:"cover"})}),(0,s.jsx)("div",{className:"absolute left-[100px] md:left-[140px] lg:left-[190px] top-[40px] md:top-[60px] lg:top-[80px] w-[260px] md:w-[350px] lg:w-[480px] h-[360px] md:h-[500px] lg:h-[680px]",children:(0,s.jsx)(l(),{src:"/gravity/commitment-student2.png",alt:"Student giving thumbs up",layout:"fill",objectFit:"cover"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 md:gap-8 lg:gap-[45px] max-w-full lg:max-w-[607px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:gap-[21px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[9px] py-1.5",children:[(0,s.jsxs)("svg",{width:"39",height:"29",viewBox:"0 0 39 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"2",y:"2",width:"35",height:"25",rx:"3",stroke:"#E31E25",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"8",y1:"10",x2:"31",y2:"10",stroke:"#E31E25",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"8",y1:"16",x2:"25",y2:"16",stroke:"#E31E25",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"8",y1:"22",x2:"20",y2:"22",stroke:"#E31E25",strokeWidth:"2"})]}),(0,s.jsx)("span",{className:"font-semibold text-[20px] md:text-[24px] text-[#E31E25] tracking-[1.44px]",children:"ABOUT US"})]}),(0,s.jsx)("h2",{className:"font-semibold text-[24px] md:text-[36px] lg:text-[44px] text-black leading-[1.3] w-full max-w-[580px]",children:"At Gravity Classes, we are committed to \u201c\u0938\u0941\u0928\u093f\u0936\u094d\u091a\u093f\u0924 \u0938\u092b\u0932\u0924\u093e\u201d!"})]}),(0,s.jsx)("p",{className:"font-medium text-[16px] md:text-[18px] lg:text-[20px] text-black tracking-[0.4px] leading-[1.2]",children:"Assured success for every aspirant. Founded by a team of IITians & medical professionals, our mission is to guide students toward excellence in IIT-JEE and NEET."})]}),(0,s.jsx)("div",{className:"flex flex-col gap-5 md:gap-[31px]",children:L.map((function(e,t){return(0,s.jsxs)("div",{className:"flex gap-3 md:gap-4 items-start",children:[(0,s.jsx)("div",{className:"shrink-0 bg-[#D6DEFF] rounded-full p-2 md:p-2.5 flex items-center justify-center",children:(0,s.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"14",cy:"14",r:"12",stroke:"#303877",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M9 14L12.5 17.5L19 11",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,s.jsx)("p",{className:"font-medium text-[15px] md:text-[18px] lg:text-[20px] text-black/50 tracking-[0.4px] leading-[1.2]",children:e})]},t)}))}),(0,s.jsx)("button",{type:"button",onClick:function(){t?r.push("/new-courses"):(i(!0),n())},className:"bg-[#303877] rounded-full pl-[18px] md:pl-[22px] pr-[8px] md:pr-[10px] py-[8px] md:py-[10px] w-fit cursor-pointer border-0",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,s.jsx)("span",{className:"font-semibold text-[18px] md:text-[24px] text-white whitespace-nowrap leading-[20px]",children:"Get Started"}),(0,s.jsx)("div",{className:"w-[30px] h-[30px] md:w-[35px] md:h-[35px] bg-white rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rotate-45",children:(0,s.jsx)("path",{d:"M5 14L14 5M14 5H7M14 5V12",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})]})})}var A=n(23879),F=n(65356),M=n(45508),Z=n(35739),S=n(72367),_=n(62411),B=n(96754);function T(e){var t=e.isEven,n=e.showCreatedAt,i=e.customBadge,l=e.notCarousel,r=void 0!==l&&l,a=e.courseLikesCount,x=void 0===a?"":a,p=e.courseId,u=void 0===p?"":p,m=e.itemType,h=void 0===m?1:m,f=e.title,g=e.description,v=e.subText,w=e.infoText,j=e.image,b=e.link,y=e.btnText,N=void 0===y?"View Details":y,k=e.showBtn,C=void 0===k||k,L=e.btnAction,E=e.children,T=e.checkAuth,I=void 0!==T&&T,D=e.externalLink,W=void 0!==D&&D,z=e.imgHeight,H=void 0===z?"200":z,V=(e.imageClass,e.demoPdfUrl),P=e.isPdfEncrypted,R=e.pdfEncryptionKey,O=e.pdfEncryptionVersion,G=e.isLive,U=e.isNewCourse,J=e.showLikeButton,q=void 0===J||J,K=(e.demoVideo,e.cardClassName),Y=void 0===K?"":K,$=e.buttonClassName,X=void 0===$?"":$,Q=e.buttonVariant,ee=void 0===Q?"default":Q,te=e.showDottedSeparator,ne=void 0!==te&&te,se=e.separatorColor,ie=void 0===se?"border-yellow-400":se,le=e.titleClassName,re=void 0===le?"":le,ae=e.showImage,oe=void 0===ae||ae,ce=(e.priceClassName,e.mrpClassName,e.isBestSeller),de=t?"bg-[#303877]":"bg-[#E31E25]",xe=t?"bg-[#303877]":"bg-[#E31E25]",pe=X||"".concat(de," text-white hover:opacity-90"),ue=((0,o.useRef)(null),(0,o.useContext)(d.Z)),me=ue.currentUser,he=ue.toggleAuthModal,fe=ue.setIsLogin,ge=ue.hasSession,ve=ue.appConfig,we=(0,o.useRef)(ge),je=(0,c.useRouter)(),be=(0,o.useState)(!1),ye=be[0],Ne=be[1],ke=(0,o.useState)(""),Ce=ke[0],Le=ke[1],Ee=(0,o.useState)(!1),Ae=Ee[0],Fe=Ee[1],Me=(0,o.useState)(!1),Ze
1=(Me[0],Me[1]),Se=(0,o.useCallback)((function(){return Fe((function(e){return!e}))}),[]),_e=(0,o.useCallback)((function(){return Ze((function(e){return!e}))}),[]),Be=(0,o.useCallback)((function(e){Se(),Le(e)}),[Se]);(0,o.useCallback)((function(){_e()}),[_e]);(0,o.useEffect)((function(){ye&&me&&0==we.current&&(Ne(!1),Te())}),[me,we]);var Te=function(){if("1"==ve.web_enableloginforfreecontent&&I&&!me)return fe(!0),he(),void Ne(!0);null!=L?L():b&&(W?window.open(b,"_blank"):je.push(b))};return(0,s.jsx)("div",{className:"rounded-2xl border min-h-[200px] bg-neutral-50 h-full w-full lg:hover:bg-neutral-100 transition-all duration-300 cursor-pointer overflow-hidden ".concat(r?"":"min-w-[325px] max-w-[325px]"," ").concat(Y),children:(0,s.jsxs)("div",{className:"flex flex-col h-full",children:[oe&&(0,s.jsx)("div",{className:"flex flex-col relative w-full h-full flex-1",onClick:Te,children:(0,s.jsx)(B.L,{imageStr:j,title:f,imgHeight:H,mode:"backdrop"})}),(0,s.jsxs)("div",{className:"flex flex-col h-full py-[16px] gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col px-[16px] gap-[8px] h-full",children:[(0,s.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:re||"text-lg tracking-tight font-semibold mb-0",children:f}),n&&(0,s.jsxs)("div",{className:"text-sm text-gray-500",children:[(0,s.jsx)("span",{className:"font-medium",children:"Created at:"})," ",(0,s.jsx)("time",{dateTime:n,children:new Date(n).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})})]})]}),q&&u&&"1"==ve.web_enablecourselike&&(0,s.jsx)(A.dJ,{courseId:u,likesCount:x,itemType:h})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[g&&(0,s.jsx)(_.t,{className:"info-render text-sm mb-0",content:g}),w&&(0,s.jsx)(_.t,{className:"info-render text-sm mb-0",content:w})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 px-[16px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-x-3 justify-end w-full",children:[i&&(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,s.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping-custom rounded-full ".concat(xe," opacity-75")}),(0,s.jsx)("span",{className:"relative ".concat(de," px-3 py-1.5 w-fit rounded-full font-semibold text-xs text-white"),children:i})]})}),U&&(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,s.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping-custom rounded-full ".concat(xe," opacity-75")}),(0,s.jsx)("span",{className:"relative ".concat(de," px-3 py-1.5 w-fit rounded-full font-semibold text-xs text-white"),children:"NEW"})]})}),ce&&(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,s.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping-custom rounded-full ".concat(xe," opacity-75")}),(0,s.jsx)("span",{className:"relative ".concat(de," px-3 py-1.5 w-fit rounded-full font-semibold text-xs text-white"),children:"BEST SELLER"})]})})]}),ne&&(0,s.jsx)("div",{className:"border-t-2 border-dotted ".concat(ie," w-full")}),v&&(0,s.jsx)("div",{className:"flex flex-col gap-[16px]",children:v}),G&&(0,s.jsxs)("div",{className:"".concat(de," px-3 py-1.5 w-fit flex items-center gap-1.5 rounded-full"),children:[(0,s.jsx)(S.Z,{className:"text-white animate-pulse size-5"}),(0,s.jsx)("span",{className:"font-semibold text-white text-xs",children:"LIVE"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[C&&(L||b)&&(0,s.jsx)(Z.z,{onClick:Te,className:"w-full ".concat(pe),variant:ee,children:N}),V&&(0,s.jsx)(Z.z,{variant:"secondary",onClick:function(){return Be(V)},children:"View Sample PDF"}),Ce&&(0,s.jsx)(F.Z,{isEncrypted:P||"",encryptionKey:R||"",encryptionVersion:O||"",isOpen:Ae,toggle:Se,link:(0,M.NA)(Ce)}),!!E&&E]})]})]})]})})}function I(e){var t=e.courses,n=void 0===t?[]:t,i=(0,o.useContext)(d.Z),l=i.currentUser,r=i.toggleAuthModal,a=i.setIsLogin,x=(0,c.useRouter)();return(0,s.jsx)("section",{className:"w-full bg-white py-10 md:py-16",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col gap-8 md:gap-14 items-center px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5 items-center",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[9px] px-[22px] py-1.5",children:[(0,s.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"2",y:"5",width:"26",height:"20",rx:"2",stroke:"#E31E25",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M2 10H28",stroke:"#E31E25",strokeWidth:"2"}
1),(0,s.jsx)("rect",{x:"5",y:"14",width:"8",height:"3",rx:"1",fill:"#E31E25"}),(0,s.jsx)("rect",{x:"5",y:"19",width:"12",height:"2",rx:"1",fill:"#E31E25",opacity:"0.5"})]}),(0,s.jsx)("span",{className:"font-semibold text-[20px] md:text-[24px] text-[#E31E25] tracking-[1.44px]",children:"OUR PROGRAMS"})]}),(0,s.jsx)("h2",{className:"font-semibold text-[24px] md:text-[36px] lg:text-[44px] text-black leading-[1.3] text-center",children:"Programs we offer, Loved by Students!"})]}),(0,s.jsx)("div",{className:"flex gap-4 md:gap-6 lg:gap-[34px] items-center justify-center flex-wrap",children:n.map((function(e,t){return(0,s.jsx)(T,{isEven:t%2===0,title:e.course_name,image:e.course_thumbnail,link:"/courses/".concat(e.course_slug),courseId:e.id,courseLikesCount:e.likes_count,isNewCourse:e.gif_display,notCarousel:!0},e.id)}))}),(0,s.jsx)("button",{type:"button",onClick:function(){l?x.push("/new-courses"):(a(!0),r())},className:"bg-[#303877] rounded-full pl-[18px] md:pl-[22px] pr-[8px] md:pr-[10px] py-[8px] md:py-[10px] w-fit cursor-pointer border-0",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,s.jsx)("span",{className:"font-semibold text-[18px] md:text-[24px] text-white whitespace-nowrap leading-[20px]",children:"View all Courses"}),(0,s.jsx)("div",{className:"w-[30px] h-[30px] md:w-[35px] md:h-[35px] bg-white rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rotate-45",children:(0,s.jsx)("path",{d:"M5 14L14 5M14 5H7M14 5V12",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})})}function D(){var e=(0,o.useContext)(d.Z),t=e.currentUser,n=e.toggleAuthModal,i=e.setIsLogin,r=(0,c.useRouter)();return(0,s.jsx)("section",{className:"w-full bg-[#303877] py-10 md:py-[60px] lg:py-[84px]",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col gap-8 md:gap-12 items-center w-full px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:gap-5 items-center",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[9px] px-[22px] py-1.5",children:[(0,s.jsxs)("svg",{width:"39",height:"27",viewBox:"0 0 39 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"1",y:"1",width:"37",height:"25",rx:"4",stroke:"white",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M16 8L26 13.5L16 19V8Z",fill:"white"})]}),(0,s.jsx)("span",{className:"font-semibold text-[20px] md:text-[24px] text-white tracking-[1.44px]",children:"YOUTUBE CHANNEL"})]}),(0,s.jsx)("h2",{className:"font-bold text-[24px] md:text-[36px] lg:text-[48px] text-white text-center leading-[1.2]",children:"Start Learning with Our Free YouTube Videos!"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 md:gap-[29px] w-full",children:[(0,s.jsxs)("div",{className:"bg-white border-4 md:border-8 border-[#94A0FF] rounded-[18px] md:rounded-[28px] lg:rounded-[35px] h-[200px] sm:h-[300px] md:h-[400px] lg:h-[588px] overflow-hidden relative w-full",children:[(0,s.jsxs)("div",{className:"absolute inset-0",children:[(0,s.jsx)(l(),{src:"/gravity/youtube-thumbnail.png",alt:"YouTube Video",layout:"fill",objectFit:"cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-black/[0.22]"})]}),(0,s.jsx)("div",{className:"absolute top-[8px] md:top-[11px] left-[16px] md:left-[36px] right-[16px] md:right-[36px] h-auto md:h-[105px] flex items-center z-10",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-4",children:[(0,s.jsx)("div",{className:"bg-white rounded-[20px] md:rounded-[38px] p-1.5 md:p-2 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.25)] w-[36px] md:w-[54px]",children:(0,s.jsx)(l(),{src:"/gravity/logo.png",alt:"Logo",width:38,height:37,objectFit:"contain"})}),(0,s.jsx)("span",{className:"font-medium text-[14px] md:text-[24px] lg:text-[32px] text-white/85",children:"Biggest Announcement \ud83d\ude80 ..."})]})}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsxs)("svg",{className:"w-[50px] h-[35px] md:w-[70px] md:h-[49px] lg:w-[90px] lg:h-[63px]",viewBox:"0 0 68 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M66.52 7.74C65.7 4.77 63.35 2.42 60.38 1.6C55.05 0 34 0 34 0C34 0 12.95 0 7.62 1.6C4.65 2.42 2.3 4.77 1.48 7.74C0 13.07 0 24 0 24C0 24
10 34.93 1.48 40.26C2.3 43.23 4.65 45.58 7.62 46.4C12.95 48 34 48 34 48C34 48 55.05 48 60.38 46.4C63.35 45.58 65.7 43.23 66.52 40.26C68 34.93 68 24 68 24C68 24 68 13.07 66.52 7.74Z",fill:"#FF0000"}),(0,s.jsx)("path",{d:"M27 34L45 24L27 14V34Z",fill:"white"})]})})]}),(0,s.jsxs)("div",{className:"bg-white rounded-[16px] md:rounded-[24px] px-4 md:px-[43px] py-[14px] md:py-[16px] flex flex-col gap-1 w-full",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsxs)("svg",{className:"w-[32px] h-[22px] md:w-[49px] md:h-[34px] shrink-0",viewBox:"0 0 49 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"1",y:"1",width:"47",height:"32",rx:"5",fill:"#FF0000"}),(0,s.jsx)("path",{d:"M20 10L33 17L20 24V10Z",fill:"white"})]}),(0,s.jsx)("span",{className:"font-semibold text-[20px] md:text-[28px] lg:text-[36px] text-black leading-[1.5]",children:"Join our Main Channel!"})]}),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-3 md:gap-6 lg:gap-[103px]",children:[(0,s.jsx)("p",{className:"font-['Roboto'] font-normal text-[14px] md:text-[16px] lg:text-[18px] text-[#48464C] leading-[1.5] flex-1",children:"Explore concept-based lessons, exam strategies, and problem-solving sessions for JEE, NEET, and CUET \u2014 all taught in a simple and engaging way."}),(0,s.jsx)("button",{type:"button",onClick:function(){t?r.push("/new-courses"):(i(!0),n())},className:"bg-[#FF0033] border border-[#BB0025] rounded-lg px-6 md:px-8 py-2 shadow-[0px_2px_0px_0px_#BB0025] hover:opacity-90 transition-opacity shrink-0 cursor-pointer",children:(0,s.jsx)("span",{className:"font-bold text-[18px] md:text-[24px] text-white text-center",children:"Join Now!"})})]})]})]})]})})}function W(){var e=(0,o.useContext)(d.Z),t=e.currentUser,n=e.toggleAuthModal,i=e.setIsLogin,r=(0,c.useRouter)();return(0,s.jsx)("section",{className:"w-full bg-[#FFF2F2] py-10 md:py-16 lg:py-20 overflow-hidden",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col gap-6 md:gap-8 lg:gap-[45px] items-center px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-center",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[9px] px-[22px] py-1.5",children:[(0,s.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M18 4L22 14H32L24 20L27 31L18 24L9 31L12 20L4 14H14L18 4Z",stroke:"#303877",strokeWidth:"2",strokeLinejoin:"round"})}),(0,s.jsx)("span",{className:"font-semibold text-[20px] md:text-[24px] text-[#303877] tracking-[1.44px]",children:"WHAT WE OFFER?"})]}),(0,s.jsxs)("h2",{className:"font-bold text-[24px] md:text-[36px] lg:text-[48px] text-black leading-[1.3] text-center",children:["Why Choose ",(0,s.jsx)("span",{className:"text-[#D8191F]",children:"Gravity"})," ",(0,s.jsx)("span",{className:"text-[#303877]",children:"Classes"}),"?"]})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 md:gap-6 items-stretch w-full",children:[(0,s.jsxs)("div",{className:"w-full lg:w-[621px] h-[220px] sm:h-[280px] md:h-[350px] lg:h-[409px] rounded-[16px] md:rounded-[20px] overflow-hidden relative shrink-0",children:[(0,s.jsx)(l(),{src:"/gravity/why-choose-bg.png",alt:"Students learning",layout:"fill",objectFit:"cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-[rgba(48,56,119,0.54)]"}),(0,s.jsxs)("div",{className:"absolute right-3 md:right-[27px] bottom-3 md:bottom-auto md:top-[211px] bg-white rounded-[10px] p-2.5 md:p-3 w-[240px] sm:w-[280px] md:w-[340px] flex flex-col gap-1.5",children:[(0,s.jsx)("p",{className:"font-semibold text-[12px] sm:text-[14px] md:text-[16px] text-black leading-[1.2]",children:"A powerful combination of expert teachers, structured learning, and personalized guidance to help you achieve ensured success."}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:["Complete Student Development Beyond Just Exam Preparation","Our structured learning system helps students understand concepts, practice strategically."].map((function(e,t){return(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("div",{className:"w-[18px] h-[18px] md:w-[22px] md:h-[22px] bg-[#E31E25] rounded-full flex items-center justify-center shrink-0",children:(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M3 7L6 10L11 5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)("span",{className:"font-normal text-[9px] md:text-[10px] text-black/80 leading-[1.2]",children:e})]},t)}))})]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row lg:flex-col gap-4 md:gap-[22px] w-full lg:w-auto",children:[(0,s.jsx)("div",{className:"bg-[#D8191F] h-[160px] sm:h-[180px] md:h-[193px] w-full lg:w-[325px] rounded-[16px] md:rounded-[20px] overflow-hidden relative",children:(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col gap-3 md:gap-4 items-start justify-center px-4 md:px-7",children:[(0,s.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 53 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"md:w-[53px] md:h-[54px]",children:[(0,s.jsx)("rect",{x:"4",y:"4",width:"20",height:"20",rx:"3",fill:"#FFD700",opacity:"0.8"}),(0,s.jsx)("rect",{x:"28",y:"4",width:"20",height:"20",rx:"3",fill:"#FF6B6B",opacity:"0.6"}),(0,s.jsx)("rect",{x:"4",y:"28",width:"20",height:"20",rx:"3",fill:"#4ECDC4",opacity:"0.6"}),(0,s.jsx)("rect",{x:"28",y:"28",width:"20",height:"20",rx:"3",fill:"#45B7D1",opacity:"0.8"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 md:gap-[7px] w-full max-w-[271px]",children:[(0,s.jsx)("h3",{className:"font-semibold text-[15px] md:text-[20px] text-white leading-[1.2]",children:"Learn from the Expert Mentors!"}),(0,s.jsx)("p",{className:"font-medium text-[11px] md:text-[12px] text-white/70 leading-[1.2]",children:"Get guided by IITians and medical professionals who understand the journey to cracking JEE and NEET."})]})]})}),(0,s.jsx)("div",{className:"bg-[#303877] h-[160px] sm:h-[180px] md:h-[193px] w-full lg:w-[325px] rounded-[16px] md:rounded-[20px] overflow-hidden relative",children:(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col gap-3 items-start justify-center px-4 md:px-7",children:[(0,s.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"-rotate-[11deg] md:w-[48px] md:h-[48px]",children:[(0,s.jsx)("path",{d:"M8 12C8 10.9 8.9 10 10 10H38C39.1 10 40 10.9 40 12V36C40 37.1 39.1 38 38 38H10C8.9 38 8 37.1 8 36V12Z",stroke:"white",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M14 18H34M14 24H28M14 30H22",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 md:gap-[7px] w-full max-w-[281px]",children:[(0,s.jsxs)("h3",{className:"font-semibold text-[15px] md:text-[20px] text-white leading-[1.2]",children:["Updated Curriculum",(0,s.jsx)("br",{}),"Aligned with Latest NTA Syllabus"]}),(0,s.jsx)("p",{className:"font-medium text-[11px] md:text-[12px] text-white/70 leading-[1.2]",children:"Our courses are designed according to the latest NTA and school curriculum, helping students stay ahead."})]})]})})]}),(0,s.jsx)("div",{className:"w-full lg:w-[334px] h-[200px] sm:h-[250px] md:h-[350px] lg:h-[409px] rounded-[16px] md:rounded-[20px] overflow-hidden relative lg:flex-1",children:(0,s.jsx)(l(),{src:"/gravity/why-choose-student.png",alt:"Student studying",layout:"fill",objectFit:"cover"})})]}),(0,s.jsx)("button",{type:"button",onClick:function(){t?r.push("/new-courses"):(i(!0),n())},className:"bg-[#303877] rounded-full pl-[18px] md:pl-[22px] pr-[8px] md:pr-[10px] py-[8px] md:py-[10px] w-fit cursor-pointer border-0",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,s.jsx)("span",{className:"font-semibold text-[18px] md:text-[24px] text-white whitespace-nowrap leading-[20px]",children:"Start Learning now"}),(0,s.jsx)("div",{className:"w-[30px] h-[30px] md:w-[35px] md:h-[35px] bg-white rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rotate-45",children:(0,s.jsx)("path",{d:"M5 14L14 5M14 5H7M14 5V12",stroke:"#303877",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})})}var z=n(26042),H=n(69396),V=n(29815),P=n(6775),R=n(9560);function O(e){var t=e.testimonials,n=void 0===t?[]:t,i=(0,o.useRef)(null),l=(0,o.useState)(0),r=l[0],a=l[1];if(0===n.length)return null;var c={arrows:!1,infinite:n.length>3,speed:500,slidesToShow:3,slidesToScroll:1,afterChange:function(e){return a(e)},responsive:[{breakpoint:1024,settings:{slidesToShow:2,infinite:n.length>2}},{breakpoint:640,settings:{slidesToShow:1,infinite:n.length>1}}]};return(0,s.jsx)("section",{className:"w-full bg-white py-10 md:py-16 lg:py-20 overflow-hidden",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col gap-8 md:gap-12 lg:gap-[68px] items-center px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-center",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[9px] px-[22px] py-1.5",children:[(0,s.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M4 8C4 6.9 4.9 6 6 6H26C27.1 6 28 6.9 28 8V20C28 21.1 27.1 22 26 22H18L12 28V22H6C4.9 22 4 21.1 4 20V8Z",stroke:"#303877",strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("circle",{cx:"11",cy:"14",r:"1.5",fill:"#303877"}),(0,s.jsx)("circle",{cx:"16",cy:"14",r:"1.5",fill:"#303877"}),(0,s.jsx)("circle",{cx:"21",cy:"14",r:"1.5",fill:"#303877"})]}),(0,s.jsx)("span",{className:"font-semibold text-[20px] md:text-[24px] text-[#303877] tracking-[1.44px]",children:"TESTIMONIALS"})]}),(0,s.jsxs)("h2",{className:"font-bold text-[28px] md:text-[36px] lg:text-[48px] text-black leading-[1.3] text-center",children:["See what ",(0,s.jsx)("span",{className:"text-[#E31E25] italic",children:"Our Students"})," ","have to say!"]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 items-center w-full",children:[(0,s.jsx)("div",{className:"w-full overflow-hidden",children:(0,s.jsx)(b.Z,(0,H.Z)((0,z.Z)({ref:i}
1,c),{children:n.map((function(e,t){var n=t%2===0,i=n?"bg-[#E9EBFF]":"bg-[rgba(255,234,234,0.8)]",l=n?"text-[#303877]":"text-[#E31E25]";return(0,s.jsx)("div",{className:"px-2 md:px-3 h-full",children:(0,s.jsxs)("div",{className:"".concat(i," rounded-[24px] p-5 md:p-7 flex flex-col justify-between h-[240px] md:h-[260px]"),children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsx)("span",{className:"text-[36px] md:text-[48px] leading-none font-bold font-serif ".concat(n?"text-[#303877]":"text-[#E31E25]"),children:"\u201c"}),(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-3",children:[(0,s.jsx)("div",{className:"w-[36px] h-[36px] md:w-[40px] md:h-[40px] rounded-full overflow-hidden bg-white flex items-center justify-center shrink-0",children:e.image?(0,s.jsx)("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover"}):(0,s.jsx)(P.Z,{size:36,className:"text-gray-400"})}),(0,s.jsx)("span",{className:"font-semibold text-sm md:text-base ".concat(l," leading-[1.3]"),children:e.name})]})]}),(0,s.jsx)("p",{className:"font-normal text-sm text-black leading-[1.7] line-clamp-3",children:e.testimonial}),(0,s.jsx)("div",{className:"flex items-center gap-1",children:(0,V.Z)(Array(5)).map((function(t,n){return(0,s.jsx)(R.Z,{size:18,className:n<e.rating?"text-yellow-400 fill-yellow-400":"text-gray-300 fill-gray-300"},n)}))})]})},t)}))}))}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)("button",{type:"button","aria-label":"Previous testimonial",onClick:function(){var e;return null===(e=i.current)||void 0===e?void 0:e.slickPrev()},className:"w-[42px] h-[42px] md:w-[48px] md:h-[48px] rounded-full border-2 border-[#303877] bg-white flex items-center justify-center transition-colors cursor-pointer",children:(0,s.jsx)(y.Z,{size:22,color:"#303877",strokeWidth:2})}),(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:n.map((function(e,t){return(0,s.jsx)("div",{className:"h-[6px] rounded-full transition-all duration-300 ".concat(t===r?"w-[24px] bg-[#303877]":"w-[6px] bg-[#C2C2C2]")},t)}))}),(0,s.jsx)("button",{type:"button","aria-label":"Next testimonial",onClick:function(){var e;return null===(e=i.current)||void 0===e?void 0:e.slickNext()},className:"w-[42px] h-[42px] md:w-[48px] md:h-[48px] rounded-full border-2 border-[#303877] bg-[#303877] flex items-center justify-center transition-opacity cursor-pointer",children:(0,s.jsx)(N.Z,{size:22,color:"white",strokeWidth:2})})]})]})]})})}var G=n(14924),U=n(19201),J=n(21580),q=n(14317),K=n(96486),Y=n(86454),$=J.Ryn({name:J.Z_8().check(q.gG()).min(1,"Name is required").min(2,"Name must be at least 2 characters"),email:J.Dom("Please enter a valid email address").check(q.gG()).min(1,"Email is required"),contact:J.Z_8().check(q.gG()).min(1,"Phone number is required").regex(/^[+]?[0-9\s\-()]{10,15}$/,"Please enter a valid phone number (10-15 digits)"),message:J.Z_8().check(q.gG()).min(1,"Message is required")});function X(e,t){var n=$.shape[e];if(!n)return"";var s=n.safeParse(t);return s.success?"":s.error.issues[0].message}function Q(){var e=function(e){var t=e.target,n=t.name,s=t.value;if("contact"===n){var i=s.replace(/[^0-9\s+()-]/g,"");a((0,H.Z)((0,z.Z)({},r),(0,G.Z)({},n,i)))}else a((0,H.Z)((0,z.Z)({},r),(0,G.Z)({},n,s)));x[n]&&p((0,H.Z)((0,z.Z)({},x),(0,G.Z)({},n,"")))},t=function(e){var t=e.target,n=t.name,s=X(n,t.value);p((0,H.Z)((0,z.Z)({},x),(0,G.Z)({},n,s)))},n=(0,o.useContext)(d.Z).appConfig,i=(0,o.useState)({}),r=i[0],a=i[1],c=(0,o.useState)({}),x=c[0],p=c[1],u=(0,o.useState)(!1),m=u[0],h=u[1],f=(0,o.useState)(!1),g=f[0],v=f[1];return(0,o.useEffect)((function(){(0,K.isEmpty)(n.web_enableDisclaimer)||v(!1)}),[n.web_enableDisclaimer]),(0,s.jsx)("section",{className:"bg-white py-10 md:py-16",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center mb-8 md:mb-12",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M6.62 10.79C8.06 13.62 10.38 15.93 13.21 17.38L15.41 15.18C15.68 14.91 16.08 14.82 16.43 14.94C17.55 15.31 18.76 15.51 20 15.51C20.55 15.51 21 15.96 21 16.51V20C21 20.55 20.55 21 20 21C10.61 21 3 13.39 3 4C3 3.45 3.45 3 4 3H7.5C8.05 3 8.5 3.45 8.5 4C8.5 5.25 8.7 6.45 9.07 7.57C9.18 7.92 9.1 8.31 8.82 8.59L6.62 10.79Z",fill:"#303877"})}),(0,s.jsx)("span",{className:"text-[#303877] text-[20px] md:text-[24px] uppercase tracking-wide font-semibold",children:"CONTACT US"})]}),(0,s.jsxs)("h2",{className:"text-center max-w-[1100px] font-bold text-[28px] md:text-[38px] lg:text-[48px] leading-[1.2]",children:["Connect with the ",(0,s.jsx)("span",{className:"text-[#E31E25]",children:"Gravity"})," ",(0,s.jsx)("span",{className:"text-[#303877]",children:"Classes"})," team for admissions, course details, or counselling."]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 md:gap-12 lg:gap-16",children:[(0,s.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),function(){var e={};return["name","email","contact","message"].forEach((function(t){var n=X(t,r[t]);n&&(e[t]=n)})),p(e),0===Object.keys(e).length}()){var t=(0,z.Z)({},r);t.toemail=n.web_clientemail,h(!0),(0,Y.fX)(t).then((function(){a({name:"",email:"",contact:"",message:""}),p({}),U.A.info("Your details have been submitted")})).catch((function(){U.A.error("Error occurred please try again later")})).finally((function(){h(!1)}))}else U.A.error("Please fix the errors before submitting")},className:"bg-[#303877] rounded-[16px] md:rounded-[24px] px-4 md:px-[26px] py-6 md:py-[40p
1x]",children:[(0,s.jsx)("h3",{className:"text-white uppercase mb-6 md:mb-8 font-semibold text-[28px] md:text-[34px] lg:text-[40px] leading-[1.1]",children:"NEED GUIDANCE? WE ARE HERE TO HELP."}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("input",{type:"text",name:"name",value:r.name||"",onChange:e,onBlur:t,placeholder:"Enter your name",className:"bg-white rounded-xl md:rounded-2xl p-4 md:p-6 text-[16px] md:text-[22px] text-black placeholder-[#A1A1A1] outline-none w-full"}),x.name&&(0,s.jsx)("p",{className:"text-red-300 text-sm ml-2",children:x.name})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("input",{type:"email",name:"email",value:r.email||"",onChange:e,onBlur:t,placeholder:"Enter your email",className:"bg-white rounded-xl md:rounded-2xl p-4 md:p-6 text-[16px] md:text-[22px] text-black placeholder-[#A1A1A1] outline-none w-full"}),x.email&&(0,s.jsx)("p",{className:"text-red-300 text-sm ml-2",children:x.email})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("input",{type:"tel",name:"contact",value:r.contact||"",onChange:e,onBlur:t,placeholder:"Enter your phone number",className:"bg-white rounded-xl md:rounded-2xl p-4 md:p-6 text-[16px] md:text-[22px] text-black placeholder-[#A1A1A1] outline-none w-full"}),x.contact&&(0,s.jsx)("p",{className:"text-red-300 text-sm ml-2",children:x.contact})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("textarea",{name:"message",value:r.message||"",onChange:e,onBlur:t,maxLength:120,placeholder:"Enter your message here...",className:"bg-white rounded-xl md:rounded-2xl p-4 md:p-6 text-[16px] md:text-[22px] text-black placeholder-[#A1A1A1] outline-none resize-none h-[150px] md:h-[197px] w-full"}),(0,s.jsxs)("div",{className:"flex justify-between items-center ml-2 mr-2",children:[x.message?(0,s.jsx)("p",{className:"text-red-300 text-sm",children:x.message}):(0,s.jsx)("span",{}),(0,s.jsxs)("span",{className:"text-white/60 text-xs",children:[(r.message||"").length,"/120"]})]})]})]}),!(0,K.isEmpty)(n.web_enableDisclaimer)&&(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-4",children:[(0,s.jsx)("input",{type:"checkbox",id:"disclaimer",title:"Disclaimer agreement",checked:g,onChange:function(e){return v(e.target.checked)},className:"w-4 h-4 accent-[#E31E25]"}),(0,s.jsx)("div",{className:"text-white text-sm",dangerouslySetInnerHTML:{__html:n.web_enableDisclaimer}})]}),(0,s.jsx)("button",{type:"submit",disabled:m||!(0,K.isEmpty)(n.web_enableDisclaimer)&&!g,className:"mt-6 bg-[#E31E25] text-white rounded-lg px-6 md:px-8 py-3 flex items-center gap-2 hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed text-[20px] md:text-[24px] font-normal",children:m?(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsxs)("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"SUBMITTING..."]}):(0,s.jsxs)(s.Fragment,{children:["SEND NOW",(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 md:gap-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 md:gap-6",children:[n.web_clientemail&&(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"bg-[#E31E25] rounded-[10px] w-[44px] h-[44px] md:w-[50px] md:h-[50px] flex items-center justify-center flex-shrink-0",children:(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",
1stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M22 6L12 13L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"uppercase font-extrabold text-[20px] md:text-[24px]",children:"MAIL"}),(0,s.jsx)("p",{className:"text-[#A6A6A6] font-semibold text-[14px] md:text-[16px]",children:n.web_clientemail})]})]}),n.web_clientphone&&(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"bg-[#E31E25] rounded-[10px] w-[44px] h-[44px] md:w-[50px] md:h-[50px] flex items-center justify-center flex-shrink-0",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M6.62 10.79C8.06 13.62 10.38 15.93 13.21 17.38L15.41 15.18C15.68 14.91 16.08 14.82 16.43 14.94C17.55 15.31 18.76 15.51 20 15.51C20.55 15.51 21 15.96 21 16.51V20C21 20.55 20.55 21 20 21C10.61 21 3 13.39 3 4C3 3.45 3.45 3 4 3H7.5C8.05 3 8.5 3.45 8.5 4C8.5 5.25 8.7 6.45 9.07 7.57C9.18 7.92 9.1 8.31 8.82 8.59L6.62 10.79Z",fill:"white"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"uppercase font-extrabold text-[20px] md:text-[24px]",children:"PHONE"}),(0,s.jsx)("p",{className:"text-[#A6A6A6] font-semibold text-[14px] md:text-[16px]",children:n.web_clientphone})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-3 sm:col-span-2",children:[(0,s.jsx)("div",{className:"bg-[#E31E25] rounded-[10px] w-[44px] h-[44px] md:w-[50px] md:h-[50px] flex items-center justify-center flex-shrink-0",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"white"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"uppercase font-extrabold text-[20px] md:text-[24px]",children:"LOCATION"}),(0,s.jsx)("p",{className:"text-[#A6A6A6] font-semibold text-[14px] md:text-[16px]",children:"A-1/7, Janakpuri, New Delhi-110058"})]})]})]}),(0,s.jsxs)("div",{className:"relative rounded-[16px] md:rounded-[24px] overflow-hidden border-4 border-white h-[250px] md:h-[350px] lg:h-[461px] w-full shadow-lg",children:[(0,s.jsx)(l(),{src:"/gravity/map.png",alt:"Gravity Classes Location Map",layout:"fill",objectFit:"cover"}),(0,s.jsxs)("div",{className:"absolute top-4 left-4 bg-white rounded-xl px-4 py-3 shadow-md",children:[(0,s.jsx)("p",{className:"font-semibold text-black text-sm",children:"Gravity Classes"}),(0,s.jsx)("a",{href:"https://maps.google.com/?q=A-1/7,+Janakpuri,+New+Delhi-110058",target:"_blank",rel:"noopener noreferrer",className:"text-[#429BF4] text-sm",children:"Show on Map"})]})]})]})]})]})})}function ee(){return(0,s.jsx)("section",{className:"relative w-full",children:(0,s.jsx)("div",{className:"relative bg-[#D4293C] rounded-tl-[24px] rounded-tr-[24px] md:rounded-tl-[44px] md:rounded-tr-[44px] mt-[40px] md:mt-[80px] lg:mt-[154px]",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto relative flex flex-col md:flex-row items-start justify-between px-6 md:px-12 lg:px-16 py-10 md:py-16 lg:py-20",children:[(0,s.jsxs)("div",{className:"z-10 flex flex-col items-start text-left max-w-full md:max-w-[55%] lg:max-w-[551px]",children:[(0,s.jsx)("h2",{className:"text-white mb-4 font-bold text-3xl md:text-5xl lg:text-6xl leading-tight tracking-tight",children:"Study Smarter with the Gravity Digital App!"}),(0,s.jsx)("p",{className:"text-white/80 mb-8 max-w-[480px] font-normal text-base md:text-lg lg:text-xl leading-relaxed",children:"Access premium courses, free lectures, tests, quizzes, notes, and previous year papers all in one place."}),(0,s.jsx)(a(),{href:"https://play.google.com/store",children:(0,s.jsxs)("a",{target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-3 bg-black border border-gray-700 rounded-md px-4 py-2.5 hover:border-gray-600 transition-colors w-fit no-underline",children:[(0,s.jsx)("div",{className:"w-8 h-8 relative",children:(0,s.jsx)(l(),{src:"/gravity/playstore.png",alt:"Google Play",layout:"fill",objectFit:"contain"})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[10px] text-gray-400 uppercase",children:"Get it on"}),(0,s.jsx)("span",{className:"text-sm font-semibold text-white",children:"Google Play"})]})]})})]}),(0,s.jsx)("div",{className:"hidden md:block relative mt-8 md:mt-0 md:absolute md:right-[40px] lg:right-[100px] md:-bottom-[80px] z-10",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(l(),{src:"/gravity/iphone-mockup.png",alt:"Gravity Digital App on iPhone",width:333,height:693,objectFit:"contain"}),(0,s.jsx)("div",{className:"absolute -left-[60px] top-[80px] w-[80px] h-[80px]",children:(0,s.jsx)(l(),{src:"/gravity/icons/utility-icon-1.png",alt:"",layout:"fill",objectFit:"contain"})}),(0,s.jsx)("div",{className:"absolute -right-[60px] top-[160px] w-[80px] h-[80px]",children:(0,s.jsx)(l(),{src:"/gravity/icons/utility-icon-2.png",alt:"",layout:"fill",objectFit:"contain"})}),(0,s.jsx)("div",{className:"absolute -left-[60px] top-[320px] w-[80px] h-[80px]",children:(0,s.jsx)(l(),{src:"/gravity/icons/utility-icon-3.png",alt:"",layout:"fill",objectFit:"contain"})}),(0,s.jsx)("div",{className:"absolute -right-[60px] top-[400px] w-[80px] h-[80px]",children:(0,s.jsx)(l(),{src:"/gravity/icons/utility-icon-4.png",alt:"",layout:"fill",objectFit:"contain"})})]})})]})})})}var te=function(e){var t=e.courses,n=void 0===t?[]:t,i=(e.newCourses,e.sliderImages),l=void 0===i?[]:i,r=e.testimonials,a=void 0===r?[]:r;return(0,s.jsxs)("div",{className:"w-full overflow-hidden",children:[(0,s.jsx)(u,{}),(0,s.jsx)(j,{}),(0,s.jsx)(C,{sliderImages:l}),(0,s.jsx)(E,{}),(0,s.jsx)(I,{courses:n}),(0,s.jsx)(D,{}),(0,s.jsx)(W,{}),(0,s.jsx)(O,{testimonials:a}),(0,s.jsx)(Q,{}),(0,s.jsx)(ee,{})]})}},2559:function(e,t,n){n.d(t,{Z:function(){return r}});var s=n(85893),i=(n(67294),n(64998));var l=function(e){var t=e.text,n=e.bgColor,l=e.icon,r=e.link,a=e.className,o=(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex-shrink-0 w-full flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("img",{src:l.toString(),alt:"Vector1",className:"w-7 max-w-md h-auto flex-shrink-0"}),(0,s.jsx)(i.Z,{className:"size-4 flex-shrink-0"})]}),(0,s.jsx)("p",{className:"text-sm mb-0 font-semibold text-black leading-tight flex-1",children:t})]})});return r?(0,s.jsx)("a",{href:r,className:"".concat(n," rounded-2xl p-4 flex flex-col gap-3 cursor-pointer lg:hover:shadow-lg transition-all duration-200 group no-underline w-full max-lg:min-w-[220px] max-lg:max-w-[220px] ").concat(a),children:o}):(0,s.jsx)("div",{className:"".concat(n," rounded-2xl p-4 flex flex-col gap-3 cursor-pointer lg:hover:shadow-lg transition-all duration-200 group w-full max-lg:min-w-[220px] max-lg:max-w-[220px] ").concat(a),children:o})};var r=function(e){var t=[{text:"Explore our Premium Courses",bgColor:"bg-blue-50",icon:"/scienceandfun/feat-courses.svg",link:"/new-courses"},{text:"Get Notes and PDFs",bgColor:"bg-orange-50",icon:"/scienceandfun/feat-notes.svg",link:"/study-material"},{text:"Get assignments, quizzes & tests",bgColor:"bg-green-50",icon:"/scienceandfun/feat-quiz.svg",link:"/test-series"},{text:"Join our YouTube Channel",bgColor:"bg-red-50",icon:"/scienceandfun/feat-youtube.svg",link:e.ytChannel},{text:"Books & other study material",bgColor:"bg-purple-50",icon:"/scienceandfun/feat-books.svg",link:"/exterior-books"},{text:"Access Live & free videos",bgColor:"bg-violet-50",icon:"/scienceandfun/feat-live.svg",link:"/free-courses"}];return(0,s.jsx)("div",{className:"px-4 sm:px-6 lg:px-8 z-10",children:(0,s.jsxs)("div",{className:"py-4 shadow-lg bg-secondary rounded-2xl -mt-8 w-full max-w-7xl mx-auto",children:[(0,s.jsx)("div",{className:"px-4",children:(0,s.jsx)("div",{className:"bg-[#F7E402] rounded-full mb-4 md:mb-8 w-fit",children:(0,s.jsx)("h2",{className:"text-lg md:text-xl font-bold dark:text-black px-3 md:px-4 py-1",children:"Popular features"})})}),(0,s.jsx)("div",{className:"flex max-lg:overflow-x-auto lg:grid lg:grid-cols-6 gap-2 no-scrollbar snap-x snap-mandatory lg:px-4",children:t.map((function(e,t){return(0,s.jsx)(l,{className:"max-md:first:ml-4 max-md:last:mr-4",text:e.text,bgColor:e.bgColor,
1icon:e.icon,link:e.link},t)}))})]})})}},58265:function(e,t,n){n.d(t,{V2:function(){return l},vb:function(){return r}});var s=[/no[_-]?image/i,/no[_-]?image[_-]?available/i,/image[_-]?not[_-]?available/i,/image[_-]?unavailable/i,/no[_-]?thumb/i,/placeholder/i,/default[_-]?(course[_-]?)?(image|thumb(nail)?)/i,/empty[_-]?image/i,/\/empty-image-web\.svg$/i,/\/default\.(jpe?g|png|webp|gif)$/i,/\/noimage\//i,/\/dummy[_-]?(image|thumb)/i,/course[_-]?default/i,/thumb[_-]?default/i,/generic[_-]?(course[_-]?)?(image|thumb)/i,/\/assets\/.*\/(placeholder|default|no[_-]?image)/i];function i(e){if(!e||"string"!==typeof e)return!1;var t=e.trim();return!!t&&!s.some((function(e){return e.test(t)}))}function l(e){return e&&"string"===typeof e?e.split(",").map((function(e){return e.trim()})).filter(i):[]}function r(e){return l(e).length>0}},66471:function(e,t,n){function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"===typeof window.gtag&&window.gtag("event",e,t)}n.d(t,{w:function(){return s}})},9590:function(e,t,n){n.d(t,{Uq:function(){return r},mx:function(){return l}});var s=n(91036),i=n.n(s);function l(e){return"object"===typeof e&&null!==e&&"type"in e&&"string"===typeof e.value}var r=function(e,t){if(!e)return null;var n="number"===typeof t&&(t>0||t===1/0)?t:60;if("string"===typeof e){var s=e.trim().split(/\s+/);return n===1/0||s.length<=n?e:s.slice(0,n).join(" ")+" ..."}if(l(e)){var r=e.value.trim();if("html"===e.type)return n===1/0?r:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(!e)return"";e=e.replace(/\\"/g,'"').replace(/\\r\\n/g,"");var n=i()(e,{allowedTags:["span","b","i","u","em","strong","style","p","ul","li","hr","br","img","div"],allowedAttributes:{span:["style"],p:["style","class"],div:["style","class"],img:["src","alt","title","width","height","style","class"]}}),s="";if((n=n.replace(/(\/\*[\s\S]*?\*\/)|(^|\s)([@.#]?[a-zA-Z0-9*][^{]{0,50}\s*\{[^}]+\})/g,"")).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim().split(" ").length<=t)return s+n;var l=0,r="",a=/<\/?[^>]+>/g,o=0,c=[],d=!0,x=!1,p=void 0;try{for(var u,m=n.matchAll(a)[Symbol.iterator]();!(d=(u=m.next()).done);d=!0){var h=u.value,f=n.slice(o,h.index).trim().split(/\s+/).filter(Boolean),g=!0,v=!1,w=void 0;try{for(var j,b=f[Symbol.iterator]();!(g=(j=b.next()).done);g=!0){var y=j.value;if(l>=t)break;r+=y+" ",l++}}catch(Z){v=!0,w=Z}finally{try{g||null==b.return||b.return()}finally{if(v)throw w}}if(l>=t)break;var N=h[0];r+=N,!/^<([a-zA-Z0-9]+)/.test(N)||N.startsWith("</")||N.endsWith("/>")?N.startsWith("</")&&c.pop():c.push(N.match(/^<([a-zA-Z0-9]+)/)[1]),o=h.index+N.length}}catch(Z){x=!0,p=Z}finally{try{d||null==m.return||m.return()}finally{if(x)throw p}}if(l<t){var k=n.slice(o).trim().split(/\s+/).filter(Boolean),C=!0,L=!1,E=void 0;try{for(var A,F=k[Symbol.iterator]();!(C=(A=F.next()).done);C=!0){var M=A.value;if(l>=t)break;r+=M+" ",l++}}catch(Z){L=!0,E=Z}finally{try{C||null==F.return||F.return()}finally{if(L)throw E}}}for(;c.length;)r+="</".concat(c.pop(),">");return s+r.trim()+" ..."}(r,n);var a=r.split(/\s+/);return n===1/0||a.length<=n?r:a.slice(0,n).join(" ")+" ..."}return e}}}]);
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.