PageSourceSearch

https://absolutematrimony.com/_next/static/chunks/pages/events/[eventDetail]-0f1200a8c90b9529.js

js absolutematrimony.com collected 2026-09-26 16:56:43 UTC 16,061 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6223],{13395:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/[eventDetail]",function(){return a(89356)}])},89356:function(e,t,a){"use strict";a.a(e,async function(e,n){try{a.r(t),a.d(t,{__N_SSP:function(){return M}});var i=a(85893),s=a(52783),l=a(4176),r=a.n(l),o=a(9008),c=a.n(o),d=a(4830),m=a(87181),v=a(67992);a(25675);var u=a(16310),g=a(82175),h=a(6212),p=a(41664),_=a.n(p),x=a(67294),j=a(2261),f=a(99304),w=a(30381),N=a.n(w),y=a(14887),D=a(11163),b=a(22920),E=e([y]);y=(E.then?(await E)():E)[0];var M=!0;t.default=function(e){let{eventDetail:t,events:a}=e,n=(0,D.useRouter)(),l=n.query.eventDetail;(0,x.useEffect)(()=>{p(t)},[l]);let[o,p]=(0,x.useState)(t||{}),[w,E]=(0,x.useState)(!1),M=a.upcoming_events||[],k=a.past_events||[],S=t&&[t.feature_image,...t.gallery_images]||["/images/event1.png","/images/event2.png","/images/event3.png","/images/event4.png","/images/event5.png","/images/event5.png"],C=N()(o.event_date).isSameOrAfter(N()(),"day")||!1,A=(0,g.TA)({initialValues:{fullname:"",email:"",phone:""},validationSchema:u.Ry().shape({fullname:u.Z_().required("Required"),email:u.Z_().email("Invalid Email").required("Required"),phone:u.Z_().matches(/^[6-9]\d{9}$/,"Phone number is not valid.").required("Required")}),onSubmit:async()=>{let e=b.Am.loading("Registering into event..."),a=await y.b.put("/api/events?id=".concat(t._id),P);200===a.status?b.Am.update(e,{render:"Registration Successful.",type:"success",autoClose:!0,closeOnClick:!0,isLoading:!1}):b.Am.update(e,{render:"Error while registration.",type:"error",autoClose:!0,closeOnClick:!0,isLoading:!1}),A.resetForm()}}),{handleChange:T,handleBlur:Z,handleSubmit:I,errors:R,touched:B,values:P}=A,H=(0,x.useRef)(null),gotoSlide=e=>{console.log(e),H.current&&("next"===e?H.current.slideNext():H.current.slidePrev())},O=(0,x.useRef)(null),slide=e=>{O.current&&("next"===e?O.current.slideNext():O.current.slidePrev())};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c(),{children:[(0,i.jsxs)("title",{children:[null==o?void 0:o.title," || Absolutematrimony Events"]}),(0,i.jsx)("meta",{name:"title",content:"Absolutematrimony"}),(0,i.jsx)("meta",{name:"description",content:"Absolute Matrimony is a division of Ultra Rich Weddings Limited, with more than a decade of experience and expertise in match making."}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:url",content:"https://absolutematrimony.com/"}),(0,i.jsx)("meta",{property:"og:title",content:"Absolutematrimony"}),(0,i.jsx)("meta",{property:"og:description",content:"Absolute Matrimony is a division of Ultra Rich Weddings Limited, with more than a decade of experience and expertise in match making."}),(0,i.jsx)("meta",{property:"og:image",content:"/images/absolutematrimony-post.jpg"}),(0,i.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{property:"twitter:url",content:"https://absolutematrimony.com/"}),(0,i.jsx)("meta",{property:"twitter:title",content:"Absolutematrimony"}),(0,i.jsx)("meta",{property:"twitter:description",content:"Absolute Matrimony is a division of Ultra Rich Weddings Limited, with more than a decade of experience and expertise in match making."}),(0,i.jsx)("meta",{property:"twitter:image",content:"/images/absolutematrimony-post.jpg"}),(0,i.jsx)("link",{rel:"icon",type:"image/svg+xml",href:"/images/favicon.svg"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(s.Z,{}),(0,i.jsx)("section",{className:r().eventDetail,children:(0,i.jsxs)("div",{className:r().customContainer,children:[(0,i.jsxs)("div",{className:r().head,children:[(0,i.jsx)("h1",{className:r().eventTitle,children:o.title}),(0,i.jsxs)("div",{className:r().eventTime,children:[(0,i.jsx)("span",{children:N()(o.event_date).format("DD MMM, YYYY")}),(0,i.jsxs)("span",{children:[N()(o.event_time,"HH:mm").format("hh:mm A")," Onwards"]}),"  ",(0,i.jsx)("span",{children:o.duration})]})]}),(0,i.jsxs)("div",{className:r().gallery,onClick:()=>E(!0),children:[(0,i.jsx)("div",{className:"".concat(r().largeImg," ").concat(r().imageContainer),children:(0,i.jsx)("img",{src:S[0],alt:"Main Image"})}),(0,i.jsxs)("div",{className:r().smallImgs,children:[(0,i.jsxs)("div",{className:r().first,children:[S.length>1&&(0,i.jsx)("div",{className:"".concat(r().firstImg," ").concat(r().imageContainer),children:(0,i.jsx)("img",{src:S[1],width:200,height:250})}),S.length>2&&(0,i.jsx)("div",{className:"".concat(r().secondImg," ").concat(r().imageContainer),children:(0,i.jsx)("img",{src:S[2],width:200,height:250})})]}),(0,i.jsxs)("div",{className:r().first,children:[S.length>3&&(0,i.jsx)("div",{className:"".concat(r().secondImg," ").concat(r().imageContainer),children:(0,i.jsx)("img",{src:S[3],width:200,height:250})}),S.length>4&&(0,i.jsxs)("div",{className:"".concat(r().overlayDiv," ").concat(r().firstImg," ").concat(r().imageContainer),children:[(0,i.jsx)("img",{src:S[4],width:200,height:250}),S.length>5&&(0,i.jsxs)("div",{className:r().overlay,children:[S.length-5,"+"]})]})]})]})]}),(0,i.jsx)("div",{className:r().content,dangerouslySetInnerHTML:{__html:o.content}}),C&&(0,i.jsxs)("div",{className:r().eventForm,children:[(0,i.jsx)("p",{children:"Event Registration "}),(0,i.jsxs)("form",{className:r().form,onSubmit:I,children:[(0,i.jsxs)("div",{className:r().formGroup,children:[(0,i.jsx)("input",{value:P.fullname,type:"text",name:"fullname",id:"prefix",placeholder:"Enter your full name",required:!0,onChange:T,onBlur:Z,className:R.fullname&&B.fullname?r().danger:""}),R.fullname&&B.fullname&&(0,i.jsx)("p",{className:r().error,children:R.fullname})]}),(0,i.jsxs)("div",{className:r().formGroup,children:[(0,i.jsx)("input",{value:P.email,type:"text",name:"email",id:"email",placeholder:"Enter your Email",required:!0,onChange:T,onBlur:Z,className:R.email&&B.email?r().danger:""}),R.email&&B.email&&(0,i.jsx)("p",{className:r().error,children:R.email})]}),(0,i.jsxs)("div",{className:r().formGroup,children:[(0,i.jsx)("input",{value:P.phone,type:"text",name:"phone",id:"phone",placeholder:"Enter your phone number",required:!0,onChange:T,onBlur:Z,className:R.p
1hone&&B.phone?r().danger:""}),R.phone&&B.phone&&(0,i.jsx)("p",{className:r().error,children:R.phone})]}),(0,i.jsx)(d.Z,{type:"submit",label:"Register"})]})]}),(0,i.jsxs)("div",{className:r().upcomingEvents,children:[(null==M?void 0:M.length)>3&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"".concat(r().arrows," ").concat(r().leftArrow),onClick:()=>gotoSlide(null),children:(0,i.jsx)("img",{src:"/images/swiper-arrow.svg"})}),(0,i.jsx)("div",{className:"".concat(r().arrows," ").concat(r().rightArrow),onClick:()=>gotoSlide("next"),children:(0,i.jsx)("img",{src:"/images/swiper-arrow.svg"})})]}),(0,i.jsx)("h2",{className:r().title,children:"Upcoming Events"}),(0,i.jsx)(j.tq,{slidesPerView:3,spaceBetween:30,pagination:{clickable:!0},className:"eventSlider ".concat(r().eventGrid),onSwiper:e=>{H.current=e},breakpoints:{320:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:30}},children:M.map((e,t)=>(0,i.jsx)(j.o5,{children:(0,i.jsxs)(_(),{href:e.url_slug,className:r().event,children:[(0,i.jsx)("div",{className:r().eventImage,children:(0,i.jsx)("img",{src:e.feature_image,alt:e.alt})}),(0,i.jsxs)("div",{className:r().eventDetails,children:[(0,i.jsxs)("div",{className:r().eventDate,children:[(0,i.jsx)("p",{className:r().date,children:N()(e.event_date).format("Do MMM, YYYY")}),(0,i.jsx)("p",{className:r().date,children:N()(e.event_time,"HH:mm").format("hh:mm A")})]}),(0,i.jsxs)("div",{className:r().eventTitle,children:[(0,i.jsx)("p",{className:r().eTitle,children:e.title}),(0,i.jsx)("span",{className:"gradient-text",children:"Interested"})]})]})]})},t))})]}),(0,i.jsxs)("div",{className:r().pastEvents,children:[(null==k?void 0:k.length)>3&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"".concat(r().arrows," ").concat(r().leftArrow),onClick:()=>slide(null),children:(0,i.jsx)("img",{src:"/images/swiper-arrow.svg"})}),(0,i.jsx)("div",{className:"".concat(r().arrows," ").concat(r().rightArrow),onClick:()=>slide("next"),children:(0,i.jsx)("img",{src:"/images/swiper-arrow.svg"})})]}),(0,i.jsx)("h2",{className:r().title,children:"Past Events"}),(0,i.jsx)(j.tq,{slidesPerView:3,spaceBetween:30,pagination:{clickable:!0},className:"pastEventSlider ".concat(r().eventGrid),onSwiper:e=>{O.current=e},breakpoints:{320:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:30}},children:k.map((e,t)=>(0,i.jsx)(j.o5,{children:(0,i.jsxs)(_(),{href:e.url_slug,className:r().event,children:[(0,i.jsx)("div",{className:r().eventImage,children:(0,i.jsx)("img",{src:e.feature_image,alt:e.alt})}),(0,i.jsxs)("div",{className:r().eventDetails,children:[(0,i.jsxs)("div",{className:r().eventDate,children:[(0,i.jsx)("p",{className:r().date,children:N()(e.event_date).format("Do MMM, YYYY")}),(0,i.jsx)("p",{className:r().date,children:N()(e.event_time,"HH:mm").format("hh:mm A")})]}),(0,i.jsx)("div",{className:r().eventTitle,children:(0,i.jsx)("p",{className:r().eTitle,children:e.title})})]})]})},t))})]})]})}),(0,i.jsx)(v.Z,{}),(0,i.jsx)(m.Z,{}),(0,i.jsxs)(h.Z,{centered:!0,show:w,onHide:()=>E(!1),className:"imageGallery",children:[(0,i.jsx)(h.Z.Header,{closeButton:!0,children:" "}),(0,i.jsx)(h.Z.Body,{children:(0,i.jsx)("div",{className:r().gallerySlider,children:(0,i.jsx)(j.tq,{slidesPerView:1,spaceBetween:10,pagination:{clickable:!0},modules:[f.tl],className:"gallery-swiper",children:S.map((e,t)=>(0,i.jsx)(j.o5,{children:(0,i.jsx)("img",{src:e,alt:"Gallery Image ".concat(t+1),className:r().galleryImage})},t))})})})]})]})},n()}catch(e){n(e)}})},4176:function(e){e.exports={eventDetail:"eventDetail_eventDetail__Ymeyt",customContainer:"eventDetail_customContainer__zha5d",head:"eventDetail_head__he3sY",eventTitle:"eventDetail_eventTitle__vCp3O",eventTime:"eventDetail_eventTime__qOwpB",gallery:"eventDetail_gallery__Mwnv3",smallImgs:"eventDetail_smallImgs__NaYH_",first:"eventDetail_first__u5aBM",overlayDiv:"eventDetail_overlayDiv__7u3SD",overlay:"eventDetail_overlay__gdKAF",imageContainer:"eventDetail_imageContainer__Lvajk",largeImg:"eventDetail_largeImg__nb9eg",firstImg:"eventDetail_firstImg__pZ9
1Ey",secondImg:"eventDetail_secondImg__fOr1l",content:"eventDetail_content__T0mYx",eventForm:"eventDetail_eventForm__UBFqf",form:"eventDetail_form__O7eqc",danger:"eventDetail_danger__p36nM",formGroup:"eventDetail_formGroup__evHaN",error:"eventDetail_error__Ee8SE",pastEvents:"eventDetail_pastEvents__2JX7s",arrows:"eventDetail_arrows__3hPtp",leftArrow:"eventDetail_leftArrow__rLZnd",rightArrow:"eventDetail_rightArrow__7WmE9",upcomingEvents:"eventDetail_upcomingEvents__vRHwp",title:"eventDetail_title__9jL4D",eventGrid:"eventDetail_eventGrid___gyNk",event:"eventDetail_event__AcWlO",eventImage:"eventDetail_eventImage__5sQjP",eventDetails:"eventDetail_eventDetails__xBb7V",eventDate:"eventDetail_eventDate__l2MU1",date:"eventDetail_date___6_a_",eTitle:"eventDetail_eTitle__zvf7z"}},6212:function(e,t,a){"use strict";a.d(t,{Z:function(){return T}});var n,i=a(94184),s=a.n(i),l=a(9351),r=a(23004),o=a(67216),c=a(30099);function scrollbarSize(e){if((!n&&0!==n||e)&&r.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),n=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return n}var d=a(32092),m=a(78146),v=a(35654),u=a(76852),g=a(94305),h=a(67294),p=a(16664),_=a(47030),x=a(41068),j=a(76792),f=a(85893);let w=h.forwardRef(({className:e,bsPrefix:t,as:a="div",...n},i)=>(t=(0,j.vE)(t,"modal-body"),(0,f.jsx)(a,{ref:i,className:s()(e,t),...n})));w.displayName="ModalBody";var N=a(36467);let y=h.forwardRef(({bsPrefix:e,className:t,contentClassName:a,centered:n,size:i,fullscreen:l,children:r,scrollable:o,...c},d)=>{e=(0,j.vE)(e,"modal");let m=`${e}-dialog`,v="string"==typeof l?`${e}-fullscreen-${l}`:`${e}-fullscreen`;return(0,f.jsx)("div",{...c,ref:d,className:s()(m,t,i&&`${e}-${i}`,n&&`${m}-centered`,o&&`${m}-scrollable`,l&&v),children:(0,f.jsx)("div",{className:s()(`${e}-content`,a),children:r})})});y.displayName="ModalDialog";var D=y;let b=h.forwardRef(({className:e,bsPrefix:t,as:a="div",...n},i)=>(t=(0,j.vE)(t,"modal-footer"),(0,f.jsx)(a,{ref:i,className:s()(e,t),...n})));b.displayName="ModalFooter";var E=a(76695);let M=h.forwardRef(({bsPrefix:e,className:t,closeLabel:a="Close",closeButton:n=!1,...i},l)=>(e=(0,j.vE)(e,"modal-header"),(0,f.jsx)(E.Z,{ref:l,...i,className:s()(t,e),closeLabel:a,closeButton:n})));M.displayName="ModalHeader";var k=a(39602);let S=(0,k.Z)("h4"),C=h.forwardRef(({className:e,bsPrefix:t,as:a=S,...n},i)=>(t=(0,j.vE)(t,"modal-title"),(0,f.jsx)(a,{ref:i,className:s()(e,t),...n})));function DialogTransition(e){return(0,f.jsx)(x.Z,{...e,timeout:null})}function BackdropTransition(e){return(0,f.jsx)(x.Z,{...e,timeout:null})}C.displayName="ModalTitle";let A=h.forwardRef(({bsPrefix:e,className:t,style:a,dialogClassName:n,contentClassName:i,children:x,dialogAs:w=D,"aria-labelledby":y,"aria-describedby":b,"aria-label":E,show:M=!1,animation:k=!0,backdrop:S=!0,keyboard:C=!0,onEscapeKeyDown:A,onShow:T,onHide:Z,container:I,autoFocus:R=!0,enforceFocus:B=!0,restoreFocus:P=!0,restoreFocusOptions:H,onEntered:O,onExit:q,onExiting:Y,onEnter:F,onEntering:$,onExited:G,backdropClassName:L,manager:U,...V},z)=>{let[W,K]=(0,h.useState)({}),[X,J]=(0,h.useState)(!1),Q=(0,h.useRef)(!1),ee=(0,h.useRef)(!1),et=(0,h.useRef)(null),[ea,en]=(0,d.Z)(),ei=(0,v.Z)(z,en),es=(0,m.Z)(Z),el=(0,j.SC)();e=(0,j.vE)(e,"modal");let er=(0,h.useMemo)(()=>({onHide:es}),[es]);function getModalManager(){return U||(0,_.t)({isRTL:el})}function updateDialogStyle(e){if(!r.Z)return;let t=getModalManager().getScrollbarWidth()>0,a=e.scrollHeight>(0,o.Z)(e).documentElement.clientHeight;K({paddingRight:t&&!a?scrollbarSize():void 0,paddingLeft:!t&&a?scrollbarSize():void 0})}let eo=(0,m.Z)(()=>{ea&&updateDialogStyle(ea.dialog)});(0,u.Z)(()=>{(0,c.Z)(window,"resize",eo),null==et.current||et.current()});let handleDialogMouseDown=()=>{Q.current=!0},handleMouseUp=e=>{Q.current&&ea&&e.target===ea.dialog&&(ee.current=!0),Q.current=!1},handleStaticModalAnimation=()=>{J(!0),et.current=(0,g.Z)(ea.dialog,()=>{J(!1)})},handleStaticBackdropClick=e=>{e.target===e.currentTarget&&handleStaticModalAnimation()},handleClick=e=>{if("static"===S){handleStaticBackdropClick(e);return}if(ee.current||e.target!==e.currentTarget){ee.current=!1;return}null==Z||Z()},ec=(0,h.useCallback)(t=>(0,f.jsx)("div",{...t,className:s()(`${e}-backdrop`,L,!k&&"show")}),[k,L,e]),ed={...a,...W};return ed.display="block",(0,f.jsx)(N.Z.Provider,{value:er,children:(0,f.jsx)(p.Z,{show:M,ref:ei,backdrop:S,container:I,keyboard:!0,autoFocus:R,enforceFocus:B,restoreFocus:P,restoreFocusOptions:H,onEscapeKeyDown:e=>{C?null==A||A(e):(e.preventDefault(),"static"===S&&handleStaticModalAnimation())},onShow:T,onHide:Z,onEnter:(e,t)=>{e&&updateDialogStyle(e),null==F||F(e,t)},onEntering:(e,t)=>
1{null==$||$(e,t),(0,l.ZP)(window,"resize",eo)},onEntered:O,onExit:e=>{null==et.current||et.current(),null==q||q(e)},onExiting:Y,onExited:e=>{e&&(e.style.display=""),null==G||G(e),(0,c.Z)(window,"resize",eo)},manager:getModalManager(),transition:k?DialogTransition:void 0,backdropTransition:k?BackdropTransition:void 0,renderBackdrop:ec,renderDialog:a=>(0,f.jsx)("div",{role:"dialog",...a,style:ed,className:s()(t,e,X&&`${e}-static`,!k&&"show"),onClick:S?handleClick:void 0,onMouseUp:handleMouseUp,"aria-label":E,"aria-labelledby":y,"aria-describedby":b,children:(0,f.jsx)(w,{...V,onMouseDown:handleDialogMouseDown,className:n,contentClassName:i,children:x})})})})});A.displayName="Modal";var T=Object.assign(A,{Body:w,Header:M,Title:C,Footer:b,Dialog:D,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})}},function(e){e.O(0,[4885,1664,5675,7539,1023,9505,2175,6310,585,9187,9774,2888,179],function(){return e(e.s=13395)}),_N_E=e.O()}]);

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.