(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17053,e=>{"use strict";var r=e.i(43476),s=e.i(71645);e.s(["default",0,({videoData:e})=>{console.log("Video",e);let[o,i]=(0,s.useState)(!1),l=(0,s.useRef)(null),n=e?.video_url||"/images/wedding.mp4";return(0,r.jsxs)("section",{className:"videocontainer",children:[(0,r.jsx)("div",{className:"container container-xxl px-3",children:(0,r.jsx)("div",{className:"section-heading text-center",children:(0,r.jsx)("h2",{children:"In the spotlight"})})}),(0,r.jsxs)("div",{className:"videoinner",children:[(0,r.jsxs)("video",{ref:l,muted:!0,playsInline:!0,poster:"images/video-poster.jpg",onPlay:()=>i(!0),onPause:()=>i(!1),onError:e=>{console.error("Video loading error:",e)},children:[(0,r.jsx)("source",{src:n,type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,r.jsxs)("div",{className:"videoovarlay",children:[(0,r.jsx)("button",{onClick:()=>{if(l.current)try{if(o)l.current.pause(),i(!1);else{let e=l.current.play();void 0!==e&&e.then(()=>{i(!0)}).catch(e=>{console.error("Playback failed:",e),i(!1)})}}catch(e){console.error("Video toggle error:",e)}},className:"play-pause-button","aria-label":o?"Pause":"Play",children:o?(0,r.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})}):(0,r.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M8 5v14l11-7z"})})}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("span",{children:e?.title}),e?.subtitle]})]})]})]})}])},15278,e=>{e.n(e.i(17053))}]);