@builder.io/sdk-qwik 0.0.2-0 → 0.0.2-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,81 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("@builder.io/qwik"),l=require("@builder.io/qwik/jsx-runtime"),y="qwik";function p(){return typeof window<"u"&&typeof document<"u"}const J={};function Oe(e,t){let n=J[e];if(n||(n=J[e]=[]),n.push(t),p()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const it=()=>{Oe("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},...y==="reactNative"?[]:[{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]]})},st=()=>{var e;p()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:y,supportsPatchUpdates:!1}},"*"),window.addEventListener("message",({data:t})=>{var n,o;if(t)switch(t.type){case"builder.evaluate":{const r=t.data.text,s=t.data.arguments||[],i=t.data.id,c=new Function(r);let u,d=null;try{u=c.apply(null,s)}catch(m){d=m}d?(n=window.parent)==null||n.postMessage({type:"builder.evaluateError",data:{id:i,error:d.message}},"*"):u&&typeof u.then=="function"?u.then(m=>{var b;(b=window.parent)==null||b.postMessage({type:"builder.evaluateResult",data:{id:i,result:m}},"*")}).catch(console.error):(o=window.parent)==null||o.postMessage({type:"builder.evaluateResult",data:{result:u,id:i}},"*");break}}}))};var j=a.createContext("Builder");function lt(){return p()&&window.self!==window.top}function g(){return lt()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const ct={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},S=e=>`@media (max-width: ${ct[e].max}px)`;function _({code:e,context:t,state:n,event:o}){if(e===""){console.warn("Skipping evaluation of empty code block.");return}const r={isEditing:g(),isBrowser:p(),isServer:!p()},i=!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;try{return new Function("builder","Builder","state","context","event",i)(r,r,n,t,o)}catch(c){debugger;console.warn("Builder custom code error: ",c)}}const ut=(e,t,n)=>{if(Object(e)!==e)return e;const o=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return o.slice(0,-1).reduce((r,s,i)=>Object(r[s])===r[s]?r[s]:r[s]=Math.abs(Number(o[i+1]))>>0===+o[i+1]?[]:{},e)[o[o.length-1]]=n,e};var dt=Object.defineProperty,mt=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,X=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))pt.call(t,n)&&X(e,n,t[n]);if(Y)for(var n of Y(t))ht.call(t,n)&&X(e,n,t[n]);return e},gt=(e,t)=>mt(e,ft(t));const Z=({block:e,context:t,state:n})=>{if(!e.bindings)return e;const o=gt(O({},e),{properties:O({},e.properties),actions:O({},e.actions)});for(const r in e.bindings){const s=e.bindings[r],i=_({code:s,state:n,context:t});ut(o,r,i)}return o};function V(e){const{state:t,context:n}=e,o=e.block;return Z?Z({block:o,state:t,context:n}):o}const bt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),I=e=>Object.entries(e).map(([n,o])=>{if(typeof o=="string")return`${bt(n)}: ${o};`}).join(`
2
- `),yt=a.componentQrl(a.inlinedQrl(e=>{const t={};return l.jsx(a.Host,{"q:host-pseudo":"",children:l.jsx(t.tagName,{children:e.styles})})},"RenderInlinedStyles_component_0sD5UmyM3Rg")),Ie=yt,w=function(t,n){return V({block:t.block,state:t.context.state,context:t.context.context,evaluateBindings:!0})},vt=function(t,n){const o=w(t).responsiveStyles,r=o?.large,s=o?.medium,i=o?.small;return`
3
- ${r?`.${w(t).id} {${I(r)}}`:""}
4
- ${s?`${S("medium")} {
5
- .${w(t).id} {${I(s)}}
6
- }`:""}
7
- ${i?`${S("small")} {
8
- .${w(t).id} {${I(i)}}
9
- }`:""}
10
- }`},xt=e=>l.jsx(a.Host,{"q:host-pseudo":"",children:y==="vue2"||y==="vue3"||y==="svelte"?l.jsx(Ie,{styles:vt(e)}):null}),L=xt;function _t(e){return e.charAt(0).toUpperCase()+e.slice(1)}const wt=e=>`on${_t(e)}`;function Ct(e){var t;const n={},o=(t=e.block.actions)!=null?t:{};for(const r in o){if(!o.hasOwnProperty(r))continue;const s=o[r];n[wt(r)]=i=>_({code:s,context:e.context,state:e.state,event:i})}return n}var St=Object.defineProperty,Pt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,te=(e,t,n)=>t in e?St(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&te(e,n,t[n]);if(ee)for(var n of ee(t))kt.call(t,n)&&te(e,n,t[n]);return e},Ot=(e,t)=>Pt(e,$t(t));function It(e){var t;return Ot(ne(ne({},(t=e.component)==null?void 0:t.options),e.options),{builderBlock:e})}var Rt=Object.defineProperty,Et=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,re=(e,t,n)=>t in e?Rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t)=>{for(var n in t||(t={}))Ft.call(t,n)&&re(e,n,t[n]);if(oe)for(var n of oe(t))At.call(t,n)&&re(e,n,t[n]);return e},Bt=(e,t)=>Et(e,Tt(t));function Nt(e){var t;return Bt(Wt({},e.properties),{"builder-id":e.id,class:[e.id,"builder-block",e.class,(t=e.properties)==null?void 0:t.class].filter(Boolean).join(" ")})}const R=e=>e,Qt=e=>{};var Vt=Object.defineProperty,ae=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,ie=(e,t,n)=>t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t)=>{for(var n in t||(t={}))Lt.call(t,n)&&ie(e,n,t[n]);if(ae)for(var n of ae(t))Ut.call(t,n)&&ie(e,n,t[n]);return e};function Mt(e){var t,n,o,r,s;const i=se(se({},R((t=e.responsiveStyles)==null?void 0:t.large)),e.styles);return(n=e.responsiveStyles)!=null&&n.medium&&(i[S("medium")]=R((o=e.responsiveStyles)==null?void 0:o.medium)),(r=e.responsiveStyles)!=null&&r.small&&(i[S("small")]=R((s=e.responsiveStyles)==null?void 0:s.small)),Qt(),i}function Ht(e){return e.tagName||"div"}const qt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Dt=e=>typeof e=="string"&&qt.includes(e.toLowerCase()),zt=e=>l.jsx(a.Host,{"q:host-pseudo":"",children:e.componentRef?l.jsxs(e.componentRef,{...e.componentOptions,children:[(e.blockChildren||[]).map(t=>l.jsx(U,{block:t,context:e.context},"render-block-"+t.id)),(e.blockChildren||[]).map(t=>l.jsx(L,{block:t,context:e.context},"block-style-"+t.id))]}):null}),le=zt,Kt=a.componentQrl(a.inlinedQrl(e=>(a.useContextProvider(j,a.useStore({content:(()=>e.repeatContext.content)(),state:(()=>e.repeatContext.state)(),context:(()=>e.repeatContext.context)(),apiKey:(()=>e.repeatContext.apiKey)(),registeredComponents:(()=>e.repeatContext.registeredComponents)()})),l.jsx(a.Host,{"q:host-pseudo":"",children:l.jsx(U,{block:e.block,context:e.context})})),"RenderRepeatedBlock_component_fV0PdmPN990")),Gt=Kt,F=function(t,n){const o=V({block:t.block,state:t.context.state,context:t.context.context,evaluateBindings:!1}).component?.name;if(!o)return null;const r=t.context.registeredComponents[o];if(r)return r;console.warn(`
11
- Could not find a registered component named "${o}".
12
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},Jt=function(t,n){if(F(t)){const{component:o,...r}=F(t);return r}else return},Re=function(t,n){return F(t)?.component},ce=function(t,n){return Ht(v(t))},v=function(t,n){return x(t)?t.block:V({block:t.block,state:t.context.state,context:t.context.context,evaluateBindings:!0})},A=function(t,n){return{...Nt(v(t)),...Ct({block:v(t),state:t.context.state,context:t.context.context}),style:Mt(v(t))}},Ee=function(t,n){return!Jt(t)?.noWrap},Yt=function(t,n){return{...It(v(t)),...Ee(t)?{}:{attributes:A(t)}}},ue=function(t,n){return{blockChildren:Te(t),componentRef:Re(t),componentOptions:Yt(t)}},Te=function(t,n){return v(t).children??[]},de=function(t,n){return!Re(t)&&!x(t)?Te(t):[]},x=function(t,n){const{repeat:o,...r}=t.block;if(!o?.collection)return;const s=_({code:o.collection,state:t.context.state,context:t.context.context});if(!Array.isArray(s))return;const i=o.collection.split(".").pop(),c=o.itemName||(i?i+"Item":"item");return s.map((d,m)=>({context:{...t.context,state:{...t.context.state,$index:m,$item:d,[c]:d,[`$${c}Index`]:m}},block:r}))},Fe=e=>{const t={};return t.tagName=ce(e),l.jsx(a.Host,{"q:host-pseudo":"",children:Ee(e)?Dt(ce(e))?l.jsx(t.tagName,{...A(e)}):l.jsxs(t.tagName,{...A(e),children:[x(e)?(x(e)||[]).map((n,o)=>l.jsx(Gt,{repeatContext:n.context,block:n.block,context:e.context},o)):null,x(e)?null:l.jsx(le,{...ue(e)}),(de(e)||[]).map(n=>l.jsx(Fe,{block:n,context:e.context},"render-block-"+n.id)),(de(e)||[]).map(n=>l.jsx(L,{block:n,context:e.context},"block-style-"+n.id))]}):l.jsx(le,{...ue(e),context:e.context})})},U=Fe,me=function(t,n,o){return"builder-blocks"+(t.blocks?.length?"":" no-blocks")},Xt=function(t,n,o){g()&&!t.blocks?.length&&window.parent?.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:t.parent,dataPath:t.path}},"*")},Zt=function(t,n,o){g()&&!t.blocks?.length&&window.parent?.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:t.parent,dataPath:t.path}},"*")},en=a.componentQrl(a.inlinedQrl(e=>{a.useScopedStylesQrl(a.inlinedQrl(tn,"RenderBlocks_component_useScopedStyles_R9EkqKI4BVw"));const t=a.useContext(j),n={};return l.jsx(a.Host,{class:me(e)+" div-RenderBlocks","builder-path":e.path,"builder-parent-id":e.parent,dataSet:{class:me(e)},onClick$:a.inlinedQrl(o=>{const[r,s,i]=a.useLexicalScope();return Xt(s)},"RenderBlocks_component_Host_onClick_81ErKSpyspw",[t,e,n]),onMouseEnter$:a.inlinedQrl(o=>{const[r,s,i]=a.useLexicalScope();return Zt(s)},"RenderBlocks_component_Host_onMouseEnter_h6rWG6KLkHE",[t,e,n]),children:l.jsxs(l.Fragment,{children:[e.blocks?(e.blocks||[]).map(o=>l.jsx(U,{block:o,context:t},"render-block-"+o.id)):null,e.blocks?(e.blocks||[]).map(o=>l.jsx(L,{block:o,context:t},"block-style-"+o.id)):null]})})},"RenderBlocks_component_SXGwmVyEM0s"),{tagName:"div"}),M=en,tn=`.div-RenderBlocks {
13
- display: flex;
14
- flex-direction: column;
15
- align-items: stretch; }`,Ae=function(t,n){return typeof t.space=="number"?t.space||0:20},We=function(t,n){return t.columns||[]},nn=function(t,n,o){const r=We(t);return r[o]?.width||100/r.length},on=function(t,n,o){const r=We(t),i=Ae(t)*(r.length-1)/r.length;return`calc(${nn(t,n,o)}% - ${i}px)`},W=function(t,n,o){return(t.stackColumnsAt||"tablet")==="tablet"?o:"inherit"},rn=function(t,n){const o=t.stackColumnsAt==="never"?"inherit":t.reverseColumnsWhenStacked?"column-reverse":"column";return{"--flex-dir":o,"--flex-dir-tablet":W(t,n,o)}},an=function(t,n){const o="100%",r="0";return{"--column-width":o,"--column-margin-left":r,"--column-width-tablet":W(t,n,o),"--column-margin-left-tablet":W(t,n,r)}},sn=a.componentQrl(a.inlinedQrl(e=>{a.useScopedStylesQrl(a.inlinedQrl(ln,"Columns_component_useScopedStyles_0DZc376lT0c"));const t={};return l.jsx(a.Host,{class:"builder-columns div-Columns",style:rn(e,t),children:(e.columns||[]).map((n,o)=>l.jsx("div",{class:"builder-column div-Columns-2",style:{width:on(e,t,o),marginLeft:`${o===0?0:Ae(e)}px`,...an(e,t)},children:l.jsx(M,{blocks:n.blocks})},o))})},"Columns_component_0PeVQGTMczc"),{tagName:"div"}),Be=sn,ln=`
16
- .div-Columns {
17
- display: flex;
18
- align-items: stretch;
19
- line-height: normal;
20
- }
21
- @media (max-width: 999px) {
22
- .div-Columns {
23
- flex-direction: var(--flex-dir-tablet);
24
- }
25
- }
26
- @media (max-width: 639px) {
27
- .div-Columns {
28
- flex-direction: var(--flex-dir);
29
- }
30
- }
31
- .div-Columns-2 {
32
- flex-grow: 1;
33
- }
34
- @media (max-width: 999px) {
35
- .div-Columns-2 {
36
- width: var(--column-width-tablet) !important;
37
- margin-left: var(--column-margin-left-tablet) !important;
38
- }
39
- }
40
- @media (max-width: 639px) {
41
- .div-Columns-2 {
42
- width: var(--column-width) !important;
43
- margin-left: var(--column-margin-left) !important;
44
- }
45
- }
46
- `;function fe(e){return e.replace(/http(s)?:/,"")}function cn(e="",t,n){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=e.indexOf("?")!==-1?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+r+t+"="+encodeURIComponent(n)}function un(e,t){if(!e||!e?.match(/cdn\.shopify\.com/)||!t)return e;if(t==="master")return fe(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const o=e.split(n[0]),r=n[3],s=t.match("x")?t:`${t}x`;return fe(`${o[0]}_${s}${r}`)}return null}function E(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const o=Number(e.split("?width=")[1]);return isNaN(o)||(n=`${n} ${o}w`),t.filter(r=>r!==o).map(r=>`${cn(e,"width",r)} ${r}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[un(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,o])=>`${n} ${o}w`).concat([e]).join(", "):e}const P=function(t,n){const r=t.image||t.src;if(!r||!(r.match(/builder\.io/)||r.match(/cdn\.shopify\.com/)))return t.srcset;if(t.srcset&&t.image?.includes("builder.io/api/v1/image")){if(!t.srcset.includes(t.image.split("?")[0]))return console.debug("Removed given srcset"),E(r)}else if(t.image&&!t.srcset)return E(r);return E(r)},pe=function(t,n){return P(t)?.match(/builder\.io/)&&!t.noWebp?P(t).replace(/\?/g,"?format=webp&"):""},dn=a.componentQrl(a.inlinedQrl(e=>(a.useScopedStylesQrl(a.inlinedQrl(mn,"Image_component_useScopedStyles_rg7Nk0TCerw")),l.jsx(a.Host,{class:"div-Image",children:l.jsxs(l.Fragment,{children:[l.jsxs("picture",{children:[pe(e)?l.jsx("source",{type:"image/webp",srcset:pe(e)}):null,l.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundSize||"center",objectFit:e.backgroundSize||"cover"},class:"builder-image"+(e.className?" "+e.className:"")+" img-Image",src:e.image,srcset:P(e),sizes:e.sizes}),l.jsx("source",{srcset:P(e)})]}),e.aspectRatio&&!(e.fitContent&&e.builderBlock?.children?.length)?l.jsx("div",{class:"builder-image-sizer div-Image-2",style:{paddingTop:e.aspectRatio*100+"%"}}):null,e.builderBlock?.children?.length&&e.fitContent?l.jsx(a.Slot,{}):null,e.fitContent?null:l.jsx("div",{class:"div-Image-3",children:l.jsx(a.Slot,{})})]})})),"Image_component_y3S3Zox9wEo"),{tagName:"div"}),Ne=dn,mn=`.div-Image {
47
- position: relative; }.img-Image {
48
- opacity: 1;
49
- transition: opacity 0.2s ease-in-out;
50
- position: absolute;
51
- height: 100%;
52
- width: 100%;
53
- top: 0px;
54
- left: 0px; }.div-Image-2 {
55
- width: 100%;
56
- pointer-events: none;
57
- font-size: 0; }.div-Image-3 {
58
- display: flex;
59
- flex-direction: column;
60
- align-items: stretch;
61
- position: absolute;
62
- top: 0;
63
- left: 0;
64
- width: 100%;
65
- height: 100%; }`,fn=a.componentQrl(a.inlinedQrl(e=>l.jsx(a.Host,{class:"builder-text",dangerouslySetInnerHTML:e.text}),"Text_component_ci0NVEdoK0Q"),{tagName:"div"}),Qe=fn,pn=function(t,n){return{...t.autoPlay===!0?{autoPlay:!0}:{},...t.muted===!0?{muted:!0}:{},...t.controls===!0?{controls:!0}:{},...t.loop===!0?{loop:!0}:{},...t.playsInline===!0?{playsInline:!0}:{}}},hn=a.componentQrl(a.inlinedQrl(e=>l.jsx(a.Host,{...pn(e),style:{width:"100%",height:"100%",...e.attributes?.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},src:e.video||"no-src",poster:e.posterImage}),"Video_component_O5sPuWlrTvk"),{tagName:"video"}),Ve=hn,gn=a.componentQrl(a.inlinedQrl(e=>l.jsx(a.Host,{"q:host-pseudo":"",children:l.jsx(a.Fragment,{children:e.link?l.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text}):l.jsx("span",{...e.attributes,children:e.text})})}),"Button_component_FtjCELjtKF4")),Le=gn,bn={name:"Core:Button",builtIn:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0};function H(e){return e.__qwik_serializable__=!0,e}const yn={name:"Columns",builtIn:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:H(e=>{function t(){n.forEach(o=>{o.delete("width")})}const n=e.get("columns");Array.isArray(n)&&!!n.find(r=>r.get("width"))&&(!!n.find(s=>!s.get("width"))||n.reduce((c,u)=>c+u.get("width"),0)!==100)&&t()})},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},vn={name:"Fragment",static:!0,hidden:!0,builtIn:!0,canHaveChildren:!0,noWrap:!0},xn=a.componentQrl(a.inlinedQrl(e=>l.jsx(a.Host,{children:l.jsx(a.Slot,{})}),"FragmentComponent_component_FJmqlA66Rjg"),{tagName:"span"}),Ue=xn,_n={name:"Image",static:!0,builtIn:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",onChange:H(e=>{e.delete("srcset"),e.delete("noWebp");function n(i,c=6e4){return new Promise((u,d)=>{const m=document.createElement("img");let b=!1;m.onload=()=>{b=!0,u(m)},m.addEventListener("error",G=>{console.warn("Image load failed",G.error),d(G.error)}),m.src=i,setTimeout(()=>{b||d(new Error("Image load timed out"))},c)})}function o(i){return Math.round(i*1e3)/1e3}const r=e.get("image"),s=e.get("aspectRatio");if(fetch(r).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!s||s===.7041))return n(r).then(i=>{const c=e.get("aspectRatio");e.get("image")===r&&(!c||c===.7041)&&i.width&&i.height&&(e.set("aspectRatio",o(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})})},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},wn={name:"Core:Section",static:!0,builtIn:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},Cn=a.componentQrl(a.inlinedQrl(e=>l.jsx(a.Host,{...e.attributes,style:(()=>{e.maxWidth&&typeof e.maxWidth=="number"&&e.maxWidth})(),children:l.jsx(a.Slot,{})}),"SectionComponent_component_m1CcjCwgHug"),{tagName:"section"}),Me=Cn,Sn={name:"Symbol",noWrap:!0,static:!0,builtIn:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Pn={name:"Text",static:!0,builtIn:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},$n={name:"Video",canHaveChildren:!0,builtIn:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},jn={name:"Embed",static:!0,builtIn:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:H(e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{e.get("url")===t&&(o.html?e.set("content",o.html):e.set("content","Invalid url, please try another"))}).catch(o=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")})},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},kn=["text/javascript","application/javascript","application/ecmascript"],On=e=>kn.includes(e.type),In=function(t,n,o){const r=o.getElementsByTagName("script");for(let s=0;s<r.length;s++){const i=r[s];if(i.src&&!n.scriptsInserted.includes(i.src)){n.scriptsInserted.push(i.src);const c=document.createElement("script");c.async=!0,c.src=i.src,document.head.appendChild(c)}else if(On(i)&&!n.scriptsRun.includes(i.innerText))try{n.scriptsRun.push(i.innerText),new Function(i.innerText)()}catch(c){console.warn("`Embed`: Error running script:",c)}}},Rn=a.componentQrl(a.inlinedQrl(e=>{const t=a.useRef(),n=a.useStore({scriptsInserted:[],scriptsRun:[],ranInitFn:!1});return a.useWatchQrl(a.inlinedQrl(o=>{const[r,s,i]=a.useLexicalScope();i&&o(i,"ranInitFn"),r&&!i.ranInitFn&&(i.ranInitFn=!0,In(s,i,r))},"Embed_component_useWatch_XE41s3iNuto",[t,e,n])),l.jsx(a.Host,{class:"builder-embed",ref:t,dangerouslySetInnerHTML:e.content})},"Embed_component_CP6B8Y76ylw"),{tagName:"div"}),En=Rn;var Tn=Object.defineProperty,he=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,ge=(e,t,n)=>t in e?Tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))Fn.call(t,n)&&ge(e,n,t[n]);if(he)for(var n of he(t))An.call(t,n)&&ge(e,n,t[n]);return e};const Wn=()=>[h({component:Be},yn),h({component:Ne},_n),h({component:Qe},Pn),h({component:Ve},$n),h({component:at},Sn),h({component:Le},bn),h({component:Me},wn),h({component:Ue},vn),h({component:En},jn)];var Bn=Object.defineProperty,Nn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,ye=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))Vn.call(t,n)&&ye(e,n,t[n]);if(be)for(var n of be(t))Ln.call(t,n)&&ye(e,n,t[n]);return e},Un=(e,t)=>Nn(e,Qn(t));function B(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const s=e[r],i=[t,r].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?T(T({},o),B(s,i,n)):Un(T({},o),{[i]:s})},{})}const ve="builder.",q=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},He=e=>{const t={};return Object.keys(e).forEach(n=>{if(n.startsWith(ve)){const o=n.replace(ve,"");t[o]=e[n]}}),t},qe=()=>{if(!p())return{};const e=new URLSearchParams(window.location.search);return He(q(e))},De=e=>e instanceof URLSearchParams?q(e):e;function Mn(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:null}var Hn=(e,t,n)=>new Promise((o,r)=>{var s=u=>{try{c(n.next(u))}catch(d){r(d)}},i=u=>{try{c(n.throw(u))}catch(d){r(d)}},c=u=>u.done?o(u.value):Promise.resolve(u.value).then(s,i);c((n=n.apply(e,t)).next())});function ze(){return Hn(this,null,function*(){const e=Mn().fetch;if(typeof e>"u"&&typeof global<"u"){const t=Promise.resolve().then(()=>require("./index.d8c1e37f.cjs")).then(n=>n.default);return t.default||t}return e.default||e})}const qn=(e,t)=>{if(e.variations&&Object.keys(e.variations).length){const n=e.id?t[e.id]:void 0,o=n?e.variations[n]:void 0;if(n&&o)e.data=o.data,e.testVariationId=o.id,e.testVariationName=o.name;else{let r=0;const s=Math.random();let i=!1;for(const c in e.variations){const u=e.variations[c];if(r+=u.testRatio,s<r){const m=u.name||(u.id===e.id?"Default variation":"");i=!0,Object.assign(e,{data:u.data,testVariationId:u.id,testVariationName:m})}}i||Object.assign(e,{testVariationId:e.id,testVariationName:"Default"})}}};var Dn=Object.defineProperty,zn=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,_e=(e,t,n)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))Gn.call(t,n)&&_e(e,n,t[n]);if(xe)for(var n of xe(t))Jn.call(t,n)&&_e(e,n,t[n]);return e},Yn=(e,t)=>zn(e,Kn(t)),Ke=(e,t,n)=>new Promise((o,r)=>{var s=u=>{try{c(n.next(u))}catch(d){r(d)}},i=u=>{try{c(n.throw(u))}catch(d){r(d)}},c=u=>u.done?o(u.value):Promise.resolve(u.value).then(s,i);c((n=n.apply(e,t)).next())});const Xn=ze();function D(e){return Ke(this,null,function*(){return(yield Je(Yn(N({},e),{limit:1}))).results[0]||null})}const Ge=e=>{const{limit:t=1,userAttributes:n,query:o,noTraverse:r=!1,model:s,apiKey:i}=e,c=new URL(`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${t}&noTraverse=${r}`),u=N(N({},qe()),De(e.options||{})),d=B(u);for(const m in d)c.searchParams.set(m,String(d[m]));if(n&&c.searchParams.set("userAttributes",JSON.stringify(n)),o){const m=B({query:o});for(const b in m)c.searchParams.set(b,JSON.stringify(m[b]))}return c};function Je(e){return Ke(this,null,function*(){const t=Ge(e),o=yield(yield Xn)(t.href).then(r=>r.json());if(e.testGroups)for(const r of o.results)qn(r,e.testGroups);return o})}function Ye(){return!p()||g()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}var Zn=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,we=(e,t,n)=>t in e?Zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))Xe.call(t,n)&&we(e,n,t[n]);if($)for(var n of $(t))Ze.call(t,n)&&we(e,n,t[n]);return e},Ce=(e,t)=>eo(e,to(t)),et=(e,t)=>{var n={};for(var o in e)Xe.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$)for(var o of $(e))t.indexOf(o)<0&&Ze.call(e,o)&&(n[o]=e[o]);return n};const z=[];function no(e,t){return z.push(Q({component:e},t)),console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."),e}const tt=e=>{var t=et(e,["component"]);return{type:"builder.registerComponent",data:ao(t)}},nt=e=>JSON.parse(JSON.stringify(e)),oo=e=>typeof e=="function"?ro(e):nt(e),ro=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},ao=e=>{var{inputs:t}=e,n=et(e,["inputs"]);return Ce(Q({},nt(n)),{inputs:t?.map(o=>Object.entries(o).reduce((r,[s,i])=>Ce(Q({},r),{[s]:oo(i)}),{}))})};function ot(e,t){if(!g()&&!!(p()||y==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[{type:e,data:t}]}),headers:{"content-type":"application/json"},mode:"cors"})}const io=function(t,n,o){const r=o.family+(o.kind&&!o.kind.includes("#")?", "+o.kind:""),s=r.split(",")[0],i=o.fileUrl??o?.files?.regular;let c="";if(i&&r&&s&&(c+=`
66
- @font-face {
67
- font-family: "${r}";
68
- src: local("${s}"), url('${i}') format('woff2');
69
- font-display: fallback;
70
- font-weight: 400;
71
- }
72
- `.trim()),o.files)for(const u in o.files){if(!(String(Number(u))===u))continue;const m=o.files[u];m&&m!==i&&(c+=`
73
- @font-face {
74
- font-family: "${r}";
75
- src: url('${m}') format('woff2');
76
- font-display: fallback;
77
- font-weight: ${u};
78
- }
79
- `.trim())}return c},so=function(t,n,{customFonts:o}){return o?.map(r=>io(t,n,r))?.join(" ")||""},lo=function(t,n){return`
80
- ${t.cssCode||""}
81
- ${so(t,n,{customFonts:t.customFonts})}`},co=a.componentQrl(a.inlinedQrl(e=>{const t={};return l.jsx(a.Host,{"q:host-pseudo":"",children:l.jsx(Ie,{styles:lo(e,t)})})},"RenderContentStyles_component_32XAr483K2o")),uo=co,f=function(t,n){return{...t.content,...n.overrideContent,data:{...t.content?.data,...t.data,...n.overrideContent?.data}}},k=function(t,n){return{...t.content?.data?.state,...t.data,...n.overrideState}},K=function(t,n){return t.context||{}},Se=function(t,n){return[...Wn(),...z,...t.customComponents||[]].reduce((s,i)=>({...s,[i.name]:i}),{})},Pe=function(t,n,o){const{data:r}=o;if(r)switch(r.type){case"builder.contentUpdate":{const s=r.data,i=s.key||s.alias||s.entry||s.modelName,c=s.data;i===t.model&&(n.overrideContent=c);break}}},$e=function(t,n){const o=f(t,n)?.data?.jsCode;o&&_({code:o,context:K(t),state:k(t,n)})},mo=function(t,n){return{}},fo=function(t,n,o){f(t,n)&&t.canTrack!==!1&&ot("click",{contentId:f(t,n).id})},po=function(t,n,o){return o.replace(/{{([^}]+)}}/g,(r,s)=>_({code:s,context:K(t),state:k(t,n)}))},ho=function(t,n,{url:o,key:r}){(async()=>{const u=await(await(await ze())(o)).json(),d={...n.overrideState,[r]:u};n.overrideState=d})()},je=function(t,n){const o=f(t,n)?.data?.httpRequests??{};Object.entries(o).forEach(([r,s])=>{if(s&&(!mo()[r]||g())){const i=po(t,n,s);ho(t,n,{url:i,key:r})}})},C=function(t,n){g()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:k(t,n),ref:{name:t.model}}}))},go=function(t,n){return Boolean((f(t,n)?.data?.cssCode||f(t,n)?.data?.customFonts?.length)&&y!=="reactNative")},bo=a.componentQrl(a.inlinedQrl(e=>{const t=a.useStore({overrideContent:null,update:0,overrideState:{}});return a.useContextProvider(j,a.useStore({content:(()=>f(e,t))(),state:(()=>k(e,t))(),context:(()=>K(e))(),apiKey:(()=>e.apiKey)(),registeredComponents:(()=>Se(e))()})),a.useClientEffectQrl(a.inlinedQrl(()=>{const[n,o]=a.useLexicalScope();if(p()){if(g()&&(it(),st(),Object.values(Se(n)).forEach(r=>{const s=tt(r);window.parent?.postMessage(s,"*")}),window.addEventListener("message",Pe.bind(null,n,o)),window.addEventListener("builder:component:stateChangeListenerActivated",C.bind(null,n,o))),f(n,o)&&n.canTrack!==!1&&ot("impression",{contentId:f(n,o).id}),Ye()){const r=new URL(location.href).searchParams;if(n.model&&r.get("builder.preview")===n.model){const s=r.get("apiKey")||r.get("builder.space");s&&D({model:n.model,apiKey:s}).then(i=>{i&&(o.overrideContent=i)})}}$e(n,o),je(n,o),C(n,o)}},"RenderContent_component_useClientEffect_ntruwSC9lSo",[e,t])),a.useWatchQrl(a.inlinedQrl(n=>{const[o,r]=a.useLexicalScope();r.useContent?.data&&n(r.useContent?.data,"jsCode"),$e(o,r)},"RenderContent_component_useWatch_1P0ujLQOmzc",[e,t])),a.useWatchQrl(a.inlinedQrl(n=>{const[o,r]=a.useLexicalScope();r.useContent?.data&&n(r.useContent?.data,"httpRequests"),je(o,r)},"RenderContent_component_useWatch_1_0hAcn4V2AZw",[e,t])),a.useWatchQrl(a.inlinedQrl(n=>{const[o,r]=a.useLexicalScope();r&&n(r,"contentState"),C(o,r)},"RenderContent_component_useWatch_2_t2n8zpl4mRs",[e,t])),a.useCleanupQrl(a.inlinedQrl(()=>{const[n,o]=a.useLexicalScope();p()&&(window.removeEventListener("message",Pe.bind(null,n,o)),window.removeEventListener("builder:component:stateChangeListenerActivated",C.bind(null,n,o)))},"RenderContent_component_useCleanup_sGf1npb03WA",[e,t])),l.jsx(a.Host,{"q:host-pseudo":"",children:f(e,t)?l.jsxs("div",{onClick$:a.inlinedQrl(n=>{const[o,r]=a.useLexicalScope();return fo(o,r)},"RenderContent_component_Host_div_onClick_S2bRGi4qgTo",[e,t]),"builder-content-id":f(e,t)?.id,children:[go(e,t)?l.jsx(uo,{cssCode:f(e,t)?.data?.cssCode,customFonts:f(e,t)?.data?.customFonts}):null,l.jsx(M,{blocks:f(e,t)?.data?.blocks})]}):null})},"RenderContent_component_I00xF3zGD1I")),rt=bo,yo=a.componentQrl(a.inlinedQrl(e=>{const t=a.useContext(j),n=a.useStore({className:"builder-symbol",content:null,symbolContent:null,symbolModel:null,symbolEntry:null});return a.useClientEffectQrl(a.inlinedQrl(()=>{const[o,r]=a.useLexicalScope();r.content=o.symbol?.content},"Symbol_component_useClientEffect_nexfMR52XGY",[e,n])),a.useWatchQrl(a.inlinedQrl(o=>{const[r,s]=a.useLexicalScope();r&&o(r,"symbol"),s.symbolContent=r.symbol?.content||null,s.symbolModel=r.symbol?.model||null,s.symbolEntry=r.symbol?.entry||null},"Symbol_component_useWatch_cKXWtr2eEjY",[e,n])),a.useWatchQrl(a.inlinedQrl(o=>{const[r,s,i]=a.useLexicalScope();i&&o(i,"symbolContent"),i&&o(i,"symbolModel"),i&&o(i,"symbolEntry"),i&&o(i,"content");const c=s.symbol;c&&!c.content&&!i.content&&c.model&&D({model:c.model,apiKey:r.apiKey,query:{id:c.entry}}).then(u=>{i.content=u})},"Symbol_component_useWatch_1_TkMkyzz1obo",[t,e,n])),l.jsx(a.Host,{...e.attributes,dataSet:{class:n.className},class:n.className,children:l.jsx(rt,{apiKey:t.apiKey,context:t.context,customComponents:Object.values(t.registeredComponents),data:{...e.symbol?.data,...t.state,...e.symbol?.content?.data?.state},model:e.symbol?.model,content:n.content})})},"Symbol_component_Dn8mGpai87I"),{tagName:"div"}),at=yo,ke={};function vo(e){if(p()){Object.assign(ke,e);const t={type:"builder.settingsChange",data:ke};parent.postMessage(t,"*")}}exports.Button=Le;exports.Columns=Be;exports.Fragment=Ue;exports.Image=Ne;exports.RenderBlocks=M;exports.RenderContent=rt;exports.Section=Me;exports.Symbol=at;exports.Text=Qe;exports.Video=Ve;exports.components=z;exports.convertSearchParamsToQueryObject=q;exports.createRegisterComponentMessage=tt;exports.generateContentUrl=Ge;exports.getAllContent=Je;exports.getBuilderSearchParams=He;exports.getBuilderSearchParamsFromWindow=qe;exports.getContent=D;exports.isEditing=g;exports.isPreviewing=Ye;exports.normalizeSearchParams=De;exports.register=Oe;exports.registerComponent=no;exports.setEditorSettings=vo;