PageSourceSearch

https://www.velux.hr/dist/velux-marketing/client/assets/HubSpotForm-377f2aa0.js

js velux.hr collected 2026-10-07 18:44:49 UTC 2,982 bytes, 1 lines download raw bytes

1import{_ as D}from"./vee-validate-daa3561c.js";import{g as s}from"./lodash-86ed0c75.js";import{a as E,f as j}from"./index-a0a0e1a1.js";import{g as V}from"./getComponentId-400bbee2.js";import{f as t,a as B,R as L,D as n,E as d,P as w,O as y,F,I as u,bl as I,K as R,$ as T,u as C,r as S}from"./vendor-a0789617.js";import"./axios-bb6ee5b8.js";import"./swiper-ade697ba.js";/*! @license Third-party license notices: /dist/velux-marketing/client/THIRD_PARTY_NOTICES.txt */function $(){return{addCookieValueForHiddenField:()=>{if(!document)return;let e;const r=document.querySelectorAll("input[name=br_cookie]"),a=(e=document.cookie.split("; ").find(function(o){return o?.trim().startsWith("__exponea_etc__=")}))===null||e===void 0?void 0:e.split("=")[1];r!==null&&a&&r.forEach(o=>{o instanceof HTMLInputElement&&(o.value=a)})}}}const q=["id","data-section-name"],P={key:0,class:"max-w-[555px]"},A={class:"after:content-['*'] after:text-old_velux-red-500 text-24 leading-28 old_mobile:leading-24 font-normal text-old_velux-black"},M={key:1,class:"mt-8 description text-13 old_mobile:text-15 leading-15 font-light text-old_velux-black","data-end":"*"},N="script",z="https://js.hsforms.net/forms/v2.js",Y={__name:"HubSpotForm",props:{fields:{type:Object,required:!0},rendering:{type:Object,required:!0}},setup(i){const e=i,{renderingIndex:r}=E(),a=t(()=>s(e,"rendering.uid")||""),o=S(null),c=S(!1);B(()=>{o.value&&h()}),L(()=>{O()});const{addCookieValueForHiddenField:H}=$(),m=t(()=>s(e,"fields.datasource[Hubspot portal id].value","")),p=t(()=>s(e,"fields.datasource[Hubspot form id].value","")),f=t(()=>s(e,"fields.datasource[Service Description].value","")),v=t(()=>s(e,"fields.datasource[Service Description Footnote].value","")),_=t(()=>v.value.length>0),b=t(()=>s(e,"fields.datasource[Service Image]",{})),x=t(()=>s(b,"value.value.src","")),g=t(()=>x.value.length>0||f.value.length>0||_.value),h=()=>{c.value||!window?.hbspt||!m.value||!p.value||(c.value=!0,window.hbspt.forms?.create({portalId:m.value,formId:p.value,target:"#hubspotForm"}).onReady(()=>{H()}),D(()=>Promise.resolve({}),["sitecore-forms-025b31a9.css"]))},O=()=>{window?.hbspt?.forms?.shellObservers&&Object.keys(window.hbspt.forms.shellObservers).forEach(k=>window.hbspt.forms.shellObservers[k].disconnect())};return(k,l)=>(n(),d("div",{id:C(V)(i.rendering),"data-section-name":C(r)(a.value).id,class:"form-container flex justify-between max-w-[1440px] m-auto old_mobile:px-6 mx-auto old_mobile:py-15 py-25 px-10 old_mobile:flex-col gap-4 old_mobile:gap-0"},[g.value?(n(),d("div",P,[w("p",A,y(f.value),1),x.value?(n(),F(j,{key:0,class:"w-full mt-8",media:b.value},null,8,["media"])):u("",!0),_.value?(n(),d("p",M,y(v.value),1)):u("",!0)])):u("",!0),l[0]||(I(-1,!0),(l[0]=w("div",{id:"hubspotForm",class:R(["hub-spot-form max-w-[670px] min-w-[327px] old_mobile:mt-20",{"mx-auto":!g.value}])},null,2)).cacheIndex=0,I(1),l[0]),(n(),F(T(N),{ref_key:"script",ref:o,src:z,onLoad:h},null,544))],8,q))}};export{Y 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.