[{"data":1,"prerenderedAt":521},["ShallowReactive",2],{"navigation":3,"/custom-element/setup":238,"/custom-element/setup-surround":516},[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":165,"body":240,"description":510,"extension":511,"links":512,"meta":513,"navigation":307,"path":166,"seo":514,"stem":167,"__hash__":515},"docs/07.custom-element/1.setup.md",{"type":241,"value":242,"toc":507},"minimark",[243,256,340,346,351,358,503],[244,245,246,247,251,252,255],"p",{},"The ",[248,249,250],"code",{},"\u003Cscena-video-widget>"," custom element must be registered before use by calling ",[248,253,254],{},"defineScenaElement()",". Calling it more than once has no effect.",[257,258,264],"pre",{"className":259,"code":260,"filename":261,"language":262,"meta":263,"style":263},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineScenaElement } from '@retoo/scena';\n\nimport '@retoo/scena/styles';\n\ndefineScenaElement();\n","setup.ts","ts","",[248,265,266,302,309,323,328],{"__ignoreMap":263},[267,268,271,275,279,283,286,289,292,296,299],"span",{"class":269,"line":270},"line",1,[267,272,274],{"class":273},"s7zQu","import",[267,276,278],{"class":277},"sMK4o"," {",[267,280,282],{"class":281},"sTEyZ"," defineScenaElement",[267,284,285],{"class":277}," }",[267,287,288],{"class":273}," from",[267,290,291],{"class":277}," '",[267,293,295],{"class":294},"sfazB","@retoo/scena",[267,297,298],{"class":277},"'",[267,300,301],{"class":277},";\n",[267,303,305],{"class":269,"line":304},2,[267,306,308],{"emptyLinePlaceholder":307},true,"\n",[267,310,312,314,316,319,321],{"class":269,"line":311},3,[267,313,274],{"class":273},[267,315,291],{"class":277},[267,317,318],{"class":294},"@retoo/scena/styles",[267,320,298],{"class":277},[267,322,301],{"class":277},[267,324,326],{"class":269,"line":325},4,[267,327,308],{"emptyLinePlaceholder":307},[267,329,331,335,338],{"class":269,"line":330},5,[267,332,334],{"class":333},"s2Zo4","defineScenaElement",[267,336,337],{"class":281},"()",[267,339,301],{"class":277},[244,341,342,343,345],{},"After registration, ",[248,344,250],{}," is available in the DOM like any native HTML element.",[347,348,350],"h2",{"id":349},"umd","UMD",[244,352,353,354,357],{},"When using a script tag instead of a bundler, the registration function is on ",[248,355,356],{},"window",":",[257,359,364],{"className":360,"code":361,"filename":362,"language":363,"meta":263,"style":263},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Chead>\n  \u003Clink rel=\"stylesheet\" href=\"https://unpkg.com/@retoo/scena/dist/scena.css\" />\n\u003C/head>\n\u003Cbody>\n  \u003Cscript src=\"https://unpkg.com/@retoo/scena/dist/scena.umd.js\">\u003C/script>\n  \u003Cscript>\n    window.defineScenaElement();\n  \u003C/script>\n\u003C/body>\n","index.html","html",[248,365,366,378,416,425,434,460,469,484,494],{"__ignoreMap":263},[267,367,368,371,375],{"class":269,"line":270},[267,369,370],{"class":277},"\u003C",[267,372,374],{"class":373},"swJcz","head",[267,376,377],{"class":277},">\n",[267,379,380,383,386,390,393,396,399,401,404,406,408,411,413],{"class":269,"line":304},[267,381,382],{"class":277},"  \u003C",[267,384,385],{"class":373},"link",[267,387,389],{"class":388},"spNyl"," rel",[267,391,392],{"class":277},"=",[267,394,395],{"class":277},"\"",[267,397,398],{"class":294},"stylesheet",[267,400,395],{"class":277},[267,402,403],{"class":388}," href",[267,405,392],{"class":277},[267,407,395],{"class":277},[267,409,410],{"class":294},"https://unpkg.com/@retoo/scena/dist/scena.css",[267,412,395],{"class":277},[267,414,415],{"class":277}," />\n",[267,417,418,421,423],{"class":269,"line":311},[267,419,420],{"class":277},"\u003C/",[267,422,374],{"class":373},[267,424,377],{"class":277},[267,426,427,429,432],{"class":269,"line":325},[267,428,370],{"class":277},[267,430,431],{"class":373},"body",[267,433,377],{"class":277},[267,435,436,438,441,444,446,448,451,453,456,458],{"class":269,"line":330},[267,437,382],{"class":277},[267,439,440],{"class":373},"script",[267,442,443],{"class":388}," src",[267,445,392],{"class":277},[267,447,395],{"class":277},[267,449,450],{"class":294},"https://unpkg.com/@retoo/scena/dist/scena.umd.js",[267,452,395],{"class":277},[267,454,455],{"class":277},">\u003C/",[267,457,440],{"class":373},[267,459,377],{"class":277},[267,461,463,465,467],{"class":269,"line":462},6,[267,464,382],{"class":277},[267,466,440],{"class":373},[267,468,377],{"class":277},[267,470,472,475,478,480,482],{"class":269,"line":471},7,[267,473,474],{"class":281},"    window",[267,476,477],{"class":277},".",[267,479,334],{"class":333},[267,481,337],{"class":281},[267,483,301],{"class":277},[267,485,487,490,492],{"class":269,"line":486},8,[267,488,489],{"class":277},"  \u003C/",[267,491,440],{"class":373},[267,493,377],{"class":277},[267,495,497,499,501],{"class":269,"line":496},9,[267,498,420],{"class":277},[267,500,431],{"class":373},[267,502,377],{"class":277},[504,505,506],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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);}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":263,"searchDepth":270,"depth":304,"links":508},[509],{"id":349,"depth":304,"text":350},"Register the custom element with defineScenaElement() and connect styles.","md",null,{},{"title":165,"description":510},"gPR1DVTz238K_o5Ip_tJIHg1Mo2t2j4fRG1lxvQlepo",[517,519],{"title":156,"path":157,"stem":158,"description":518,"children":-1},"Handle user clicks on the video container, CTA button, and close button.",{"title":169,"path":170,"stem":171,"description":520,"children":-1},"Use scena-video-widget in HTML — mount via DOM element, pass constants, and manage instances.",1777984317985]