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

//# sourceMappingURL=src_components_frontend-pages_home_VideoSection_tsx_02q4w3r._.js.map