[{"data":1,"prerenderedAt":535},["ShallowReactive",2],{"navigation":3,"/custom-element/events":238,"/custom-element/events-surround":530},[4,22,55,88,105,138,159,180,217],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"/getting-started","01.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","/getting-started/introduction","01.getting-started/1.introduction",{"title":15,"path":16,"stem":17},"Installation","/getting-started/installation","01.getting-started/2.installation",{"title":19,"path":20,"stem":21},"Quick Start","/getting-started/quick-start","01.getting-started/3.quick-start",{"title":23,"path":24,"stem":25,"children":26,"page":6},"Configuration","/configuration","02.configuration",[27,31,35,39,43,47,51],{"title":28,"path":29,"stem":30},"Overview","/configuration/overview","02.configuration/1.overview",{"title":32,"path":33,"stem":34},"Size","/configuration/size","02.configuration/2.size",{"title":36,"path":37,"stem":38},"Shape","/configuration/shape","02.configuration/3.shape",{"title":40,"path":41,"stem":42},"Positioning","/configuration/positioning","02.configuration/4.positioning",{"title":44,"path":45,"stem":46},"Placement","/configuration/placement","02.configuration/5.placement",{"title":48,"path":49,"stem":50},"Video","/configuration/video","02.configuration/6.video",{"title":52,"path":53,"stem":54},"Styles","/configuration/styles","02.configuration/7.styles",{"title":56,"path":57,"stem":58,"children":59,"page":6},"Components","/components","03.components",[60,64,68,72,76,80,84],{"title":61,"path":62,"stem":63},"Container","/components/container","03.components/1.container",{"title":65,"path":66,"stem":67},"Close Button","/components/close-button","03.components/2.close-button",{"title":69,"path":70,"stem":71},"CTA Button","/components/cta-button","03.components/3.cta-button",{"title":73,"path":74,"stem":75},"Video Controls","/components/video-controls","03.components/4.video-controls",{"title":77,"path":78,"stem":79},"Video Loader","/components/video-loader","03.components/5.video-loader",{"title":81,"path":82,"stem":83},"Video Progress","/components/video-progress","03.components/6.video-progress",{"title":85,"path":86,"stem":87},"Video Volume","/components/video-volume","03.components/7.video-volume",{"title":89,"path":90,"stem":91,"children":92,"page":6},"Features","/features","04.features",[93,97,101],{"title":94,"path":95,"stem":96},"Preview","/features/preview","04.features/1.preview",{"title":98,"path":99,"stem":100},"Visibility","/features/visibility","04.features/2.visibility",{"title":102,"path":103,"stem":104},"Responsive","/features/responsive","04.features/3.responsive",{"title":106,"path":107,"stem":108,"children":109,"page":6},"API Reference","/api-reference","05.api-reference",[110,114,118,122,126,130,134],{"title":111,"path":112,"stem":113},"useScena","/api-reference/use-scena","05.api-reference/1.use-scena",{"title":115,"path":116,"stem":117},"useConfig","/api-reference/use-config","05.api-reference/2.use-config",{"title":119,"path":120,"stem":121},"Scena Instance","/api-reference/scena-instance","05.api-reference/3.scena-instance",{"title":123,"path":124,"stem":125},"Video Controller","/api-reference/video-controller","05.api-reference/4.video-controller",{"title":127,"path":128,"stem":129},"Video State","/api-reference/video-state","05.api-reference/5.video-state",{"title":131,"path":132,"stem":133},"Visibility API","/api-reference/visibility-api","05.api-reference/6.visibility-api",{"title":135,"path":136,"stem":137},"Preview API","/api-reference/preview-api","05.api-reference/7.preview-api",{"title":139,"path":140,"stem":141,"children":142,"page":6},"Events","/events","06.events",[143,147,151,155],{"title":144,"path":145,"stem":146},"Widget Events","/events/widget-events","06.events/1.widget-events",{"title":148,"path":149,"stem":150},"Video Events","/events/video-events","06.events/2.video-events",{"title":152,"path":153,"stem":154},"Feature Events","/events/feature-events","06.events/3.feature-events",{"title":156,"path":157,"stem":158},"Click Events","/events/click-events","06.events/4.click-events",{"title":160,"path":161,"stem":162,"children":163,"page":6},"Custom Element","/custom-element","07.custom-element",[164,168,172,176],{"title":165,"path":166,"stem":167},"Setup","/custom-element/setup","07.custom-element/1.setup",{"title":169,"path":170,"stem":171},"Usage","/custom-element/usage","07.custom-element/2.usage",{"title":173,"path":174,"stem":175},"DOM Events","/custom-element/events","07.custom-element/3.events",{"title":177,"path":178,"stem":179},"Integration","/custom-element/integration","07.custom-element/4.integration",{"title":181,"path":182,"stem":183,"children":184,"page":6},"Examples","/examples","08.examples",[185,189,193,197,201,205,209,213],{"title":186,"path":187,"stem":188},"Basic Setup","/examples/basic-setup","08.examples/1.basic-setup",{"title":190,"path":191,"stem":192},"Custom Styling","/examples/custom-styling","08.examples/2.custom-styling",{"title":194,"path":195,"stem":196},"Responsive Widget","/examples/responsive-widget","08.examples/3.responsive-widget",{"title":198,"path":199,"stem":200},"Custom Controls","/examples/custom-controls","08.examples/4.custom-controls",{"title":202,"path":203,"stem":204},"Viewport Mount","/examples/viewport-mount","08.examples/5.viewport-mount",{"title":206,"path":207,"stem":208},"Timed Overlay","/examples/timed-overlay","08.examples/6.timed-overlay",{"title":210,"path":211,"stem":212},"Loop Segment","/examples/loop-segment","08.examples/7.loop-segment",{"title":214,"path":215,"stem":216},"Heatmap Data","/examples/heatmap-data","08.examples/8.heatmap-data",{"title":218,"path":219,"stem":220,"children":221,"page":6},"Distribution","/distribution","09.distribution",[222,226,230,234],{"title":223,"path":224,"stem":225},"Formats","/distribution/formats","09.distribution/1.formats",{"title":227,"path":228,"stem":229},"Browser Support","/distribution/browser-support","09.distribution/2.browser-support",{"title":231,"path":232,"stem":233},"Bundle Size","/distribution/bundle-size","09.distribution/3.bundle-size",{"title":235,"path":236,"stem":237},"TypeScript","/distribution/typescript","09.distribution/4.typescript",{"id":239,"title":173,"body":240,"description":524,"extension":525,"links":526,"meta":527,"navigation":357,"path":174,"seo":528,"stem":175,"__hash__":529},"docs/07.custom-element/3.events.md",{"type":241,"value":242,"toc":519},"minimark",[243,252,257,272,391,395,401,462,466,515],[244,245,246,247,251],"p",{},"The custom element dispatches two events on the DOM element itself. Both bubble and cross shadow DOM boundaries (",[248,249,250],"code",{},"composed: true",").",[253,254,256],"h2",{"id":255},"scenamount","scena:mount",[244,258,259,260,263,264,267,268,271],{},"Fires after ",[248,261,262],{},".mount()"," completes. The ",[248,265,266],{},"ScenaInstance"," is available in ",[248,269,270],{},"event.detail",":",[273,274,279],"pre",{"className":275,"code":276,"language":277,"meta":278,"style":278},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","el.addEventListener('scena:mount', (event) => {\n  const instance = event.detail;\n\n  instance.visibility.show();\n});\n","ts","",[248,280,281,329,352,359,381],{"__ignoreMap":278},[282,283,286,290,294,298,301,304,307,309,312,315,319,322,326],"span",{"class":284,"line":285},"line",1,[282,287,289],{"class":288},"sTEyZ","el",[282,291,293],{"class":292},"sMK4o",".",[282,295,297],{"class":296},"s2Zo4","addEventListener",[282,299,300],{"class":288},"(",[282,302,303],{"class":292},"'",[282,305,256],{"class":306},"sfazB",[282,308,303],{"class":292},[282,310,311],{"class":292},",",[282,313,314],{"class":292}," (",[282,316,318],{"class":317},"sHdIc","event",[282,320,321],{"class":292},")",[282,323,325],{"class":324},"spNyl"," =>",[282,327,328],{"class":292}," {\n",[282,330,332,335,338,341,344,346,349],{"class":284,"line":331},2,[282,333,334],{"class":324},"  const",[282,336,337],{"class":288}," instance",[282,339,340],{"class":292}," =",[282,342,343],{"class":288}," event",[282,345,293],{"class":292},[282,347,348],{"class":288},"detail",[282,350,351],{"class":292},";\n",[282,353,355],{"class":284,"line":354},3,[282,356,358],{"emptyLinePlaceholder":357},true,"\n",[282,360,362,365,367,370,372,375,379],{"class":284,"line":361},4,[282,363,364],{"class":288},"  instance",[282,366,293],{"class":292},[282,368,369],{"class":288},"visibility",[282,371,293],{"class":292},[282,373,374],{"class":296},"show",[282,376,378],{"class":377},"swJcz","()",[282,380,351],{"class":292},[282,382,384,387,389],{"class":284,"line":383},5,[282,385,386],{"class":292},"}",[282,388,321],{"class":288},[282,390,351],{"class":292},[253,392,394],{"id":393},"scenaunmount","scena:unmount",[244,396,259,397,400],{},[248,398,399],{},".unmount()"," completes or when the element is removed from the DOM. No detail payload:",[273,402,404],{"className":275,"code":403,"language":277,"meta":278,"style":278},"el.addEventListener('scena:unmount', () => {\n  console.log('Widget unmounted');\n});\n",[248,405,406,431,454],{"__ignoreMap":278},[282,407,408,410,412,414,416,418,420,422,424,427,429],{"class":284,"line":285},[282,409,289],{"class":288},[282,411,293],{"class":292},[282,413,297],{"class":296},[282,415,300],{"class":288},[282,417,303],{"class":292},[282,419,394],{"class":306},[282,421,303],{"class":292},[282,423,311],{"class":292},[282,425,426],{"class":292}," ()",[282,428,325],{"class":324},[282,430,328],{"class":292},[282,432,433,436,438,441,443,445,448,450,452],{"class":284,"line":331},[282,434,435],{"class":288},"  console",[282,437,293],{"class":292},[282,439,440],{"class":296},"log",[282,442,300],{"class":377},[282,444,303],{"class":292},[282,446,447],{"class":306},"Widget unmounted",[282,449,303],{"class":292},[282,451,321],{"class":377},[282,453,351],{"class":292},[282,455,456,458,460],{"class":284,"line":354},[282,457,386],{"class":292},[282,459,321],{"class":288},[282,461,351],{"class":292},[253,463,465],{"id":464},"event-summary","Event summary",[467,468,469,486],"table",{},[470,471,472],"thead",{},[473,474,475,479,482],"tr",{},[476,477,478],"th",{},"Event",[476,480,481],{},"Fires when",[476,483,484],{},[248,485,270],{},[487,488,489,503],"tbody",{},[473,490,491,496,499],{},[492,493,494],"td",{},[248,495,256],{},[492,497,498],{},"Widget is mounted inside the element",[492,500,501],{},[248,502,266],{},[473,504,505,509,512],{},[492,506,507],{},[248,508,394],{},[492,510,511],{},"Widget is unmounted or element is removed from DOM",[492,513,514],{},"—",[516,517,518],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":278,"searchDepth":285,"depth":331,"links":520},[521,522,523],{"id":255,"depth":331,"text":256},{"id":393,"depth":331,"text":394},{"id":464,"depth":331,"text":465},"Listen to scena:mount and scena:unmount events on the custom element via addEventListener.","md",null,{},{"title":173,"description":524},"qGyuJaDeZuLJGLM6xYOpxK-BVPi3f7phzPBmH8S8BPM",[531,533],{"title":169,"path":170,"stem":171,"description":532,"children":-1},"Use scena-video-widget in HTML — mount via DOM element, pass constants, and manage instances.",{"title":177,"path":178,"stem":179,"description":534,"children":-1},"Use the scena-video-widget custom element in React, Vue, Angular, and vanilla HTML.",1777984323935]