1import{g as o,o as _}from"./lodash-86ed0c75.js";import{S as V}from"./index-a0a0e1a1.js";import{a as j,f as n,r as N,D as t,E as r,S as i,U as T,K as h,J as q,I as c,F as d,G as k,a3 as C,O as B,Z as p,$ as m}from"./vendor-a0789617.js";import"./axios-bb6ee5b8.js";import"./vee-validate-daa3561c.js";import"./swiper-ade697ba.js";/*! @license Third-party license notices: /dist/velux-marketing/client/THIRD_PARTY_NOTICES.txt */const W=["innerHTML"],$=["innerHTML"],P="script",z="style",Q={__name:"CustomScripts",props:{rendering:{type:Object,required:!0},fields:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup(x){const s=x;j(()=>{y.value=!0});const O=["scriptBody","conditional"],b=["styleBody","conditional"],L=n(()=>o(s,"fields.Markup")),M=n(()=>o(s,"fields.Scripts")||[]),E=n(()=>o(s,"fields.styles")||[]),D=n(()=>o(s,"fields.useClientSideRenderingOnly.value")||!1),u=n(()=>!!o(s,"params['Full Page']",!1)),f=n(()=>!!o(s,"params['Full Width']")&&!u.value),y=N(!D.value),R=a=>a?.conditional?.length,w=a=>a?.src?.length,F=a=>a?.scriptBody?.length,g=(a,S)=>({..._(a,[...O,S?"src":""])}),H=a=>({..._(a,b)}),U=n(()=>o(s,"fields.disableBottomPadding.value")||!1),v=n(()=>o(s,"rendering.dataSource")?.replace("{","")?.replace("}","")||"");return(a,S)=>(t(),r("div",{class:h(["w-full",{"px-6 sm:px-6":!u.value,"sm:pb-26 pb-15":!U.value,[`custom-scripts-container-${v.value}`]:!!v.value}])},[(t(!0),r(i,null,T(E.value,(e,l)=>(t(),r(i,{key:l},[e?.conditional?(t(),r("span",{key:0,innerHTML:e.conditional},null,8,W)):(t(),d(m(z),p({key:1,ref_for:!0},H(e)),{default:k(()=>[C(B(e?.styleBody),1)]),_:2},1040))],64))),128)),y.value?(t(),r("div",{key:0,class:h(["w-full mx-auto",{"md:max-w-[890px]":f.value,"md:max-w-[785px]":!f.value&&!u.value}])},[q(V,{field:L.value},null,8,["field"]),(t(!0),r(i,null,T(M.value,(e,l)=>(t(),r(i,null,[R(e)?(t(),r("span",{key:l,innerHTML:e.conditional},null,8,$)):c("",!0),w(e)?(t(),d(m(P),p({key:l},{ref_for:!0},g(e),{async:""}),null,16)):c("",!0),F(e)?(t(),d(m(P),p({key:l},{ref_for:!0},g(e,!0)),{default:k(()=>[C(B(e.scriptBody),1)]),_:2},1040)):c("",!0)],64))),256))],2)):c("",!0)],2))}};export{Q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.