const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/awaiter-SGR-8Tyj-B1nCJ2_g.js","assets/customComponents-twZNGYGk.js","assets/index-Dqv5IkpS.js","assets/vendor-bSWkQivH.js","assets/index-CHJVabrQ.css","assets/customComponents-CoXMEGm4.css"])))=>i.map(i=>d[i]);
import{d as P}from"./index-Dqv5IkpS.js";import{v as u,C as v,l as B}from"./customComponents-twZNGYGk.js";import{g as k,m as w}from"./get-block-properties-cWyJs3dm-BxCM5dT5.js";import{K as h,S as b,P as p,a7 as g,M as n,T as i,L as W,N as R,O as S,ax as f,Q as x,R as C,aw as m,ak as _}from"./vendor-bSWkQivH.js";const y=()=>P(()=>import("./awaiter-SGR-8Tyj-B1nCJ2_g.js"),__vite__mapDeps([0,1,2,3,4,5])).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",t),t}),O=h({name:"interactive-element",components:{Awaiter:_(y)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{attributes(){return this.includeBlockProps?{...k({block:this.block,context:this.context}),...w({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}},targetWrapperProps(){return{...this.wrapperProps,...Object.keys(this.attributes).length>0?{attributes:this.attributes}:{}}},onUpdateHook0(){var t,o;return{0:this.wrapperProps,1:(o=(t=this.block)==null?void 0:t.component)==null?void 0:o.options}}}});function I(t,o,c,s,r,l){const e=b("Awaiter");return t.Wrapper.load?(n(),p(e,{key:0,load:t.Wrapper.load,fallback:t.Wrapper.fallback,props:t.wrapperProps,attributes:t.attributes},{default:i(()=>[m(t.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(n(),p(C(t.Wrapper),f(x({key:1},t.targetWrapperProps)),{default:i(()=>[m(t.$slots,"default")]),_:3},16))}const d=u(O,[["render",I]]),E=({componentOptions:t,builderBlock:o,context:c,componentRef:s,includeBlockProps:r,isInteractive:l,contextValue:e})=>{const a={...t,...r?{attributes:k({block:o,context:e})}:{}};return l?{Wrapper:s,block:o,context:c,wrapperProps:t,includeBlockProps:r}:a},U=h({name:"component-ref",components:{Block:v,InteractiveElement:d},props:["componentOptions","blockChildren","isInteractive","componentRef","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?B(d):this.componentRef,getWrapperProps:E}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{onUpdateHook0(){return{0:this.componentOptions,1:this.blockChildren}}}});function A(t,o,c,s,r,l){const e=b("Block");return t.componentRef?(n(),p(C(t.Wrapper),f(x({key:0},t.getWrapperProps({componentOptions:t.componentOptions,builderBlock:t.builderBlock,context:t.context,componentRef:t.componentRef,linkComponent:t.linkComponent,includeBlockProps:t.includeBlockProps,isInteractive:t.isInteractive,contextValue:t.context}))),{default:i(()=>[(n(!0),W(R,null,S(t.blockChildren,(a,H)=>(n(),p(e,{key:a.id,block:a,context:t.context,registeredComponents:t.registeredComponents,linkComponent:t.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):g("",!0)}const N=u(U,[["render",A]]);export{N as default};
//# sourceMappingURL=component-ref-aowMl_8a-B1yuI2PZ.js.map
