PageSourceSearch

https://www.kontron.com/_nuxt/B3EKSthP.js

js kontron.com collected 2026-09-24 17:16:58 UTC 3,765 bytes, 1 lines download raw bytes

1import{_ as W,ah as j,p as M,Q as h,G as k,s as w,H as A,o as s,c as m,b as C,t as O,y as f,j as i,J as y,k as z,I as B,d as u,z as P,ai as G}from"./Bof5KAyY.js";import{u as U}from"./D35FPyVY.js";import{s as $}from"./DadK-UyI.js";const q=["id"],H={key:0,class:"h4"},N=["innerHTML"],V={key:2},J=["src","height"],Q=["pageID"],K={__name:"FormEmbed",props:{data:{type:Object,default:()=>({})}},setup(D){const t=D,E=u(null),p=u(null),b=u(null),l=u(!1),F=P(),r=j();let d=null;const{classList:x,background:v,wrapper:R,anchorID:S}=U(t.data,"form_embed",!1),I=()=>{try{d&&(d.unmount(),d=null);const e=document.querySelector(`script[src="${r.embededForms.src}"]`)||document.querySelector(`script[src="${r.embededForms.old_src}"]`);e&&e.remove(),window.CDWidget&&typeof window.CDWidget.reset=="function"&&window.CDWidget.reset()}catch(e){console.error("Error cleaning up form:",e)}},T=async(e,o=!1)=>{const n=document.querySelector(`script[src="${e}"]`);return o&&n&&(n.remove(),window.CDWidget&&delete window.CDWidget),n&&!o?Promise.resolve():new Promise((c,_)=>{const a=document.createElement("script");a.type="text/javascript",a.src=e,a.async=!0,a.onload=c,a.onerror=_,document.body.appendChild(a)})},L=async()=>{if(!(!p.value||!window.CDWidget))try{d&&(d.unmount(),d=null),await new Promise((e,o)=>{let c=0;const _=1e4/100,a=$(()=>{if(c++,window.React&&window.ReactDOM){clearInterval(a),e();return}if(c>=_){clearInterval(a),console.warn("React loading timeout: React not available after 10 seconds"),o(new Error("React loading timeout"));return}},100)}),typeof window.CDWidget.init=="function"&&(p.value.setAttribute("data-cd-container-id",t.data.form_embed_container_id),window.CDWidget.init())}catch(e){console.error("Error initializing form:",e)}},g=async(e=!1)=>{if(t.data.form_embed_form_embed_type.value==="javascript")try{if(l.value=!0,r.areGlobalsFetched||await new Promise(n=>{const c=w(()=>r.areGlobalsFetched,_=>{_&&(c(),n())})}),!r.embededForms.src&&!r.embededForms.old_src){console.error("Embedded forms configuration not available"),l.value=!1;return}window.loc=r.embededForms.loc,window.cdSurveyCdn=r.embededForms.cdn;const o=t.data.form_embed_old_form?r.embededForms.old_src:r.embededForms.src;await T(o,e),await L(),l.value=!1}catch(o){console.error("Error setting up form:",o),l.value=!1}};return M(async()=>{b.value=h(),await k();const e=!window.performance.navigation||window.performance.navigation.type===1;setTimeout(async()=>{await g(e)},100)}),w(()=>F.path,async(e,o)=>{t.data.form_embed_form_embed_type.value==="javascript"&&e!==o&&(await k(),await g())}),w(()=>h(),e=>{b.value=e}),A(()=>{I()}),(e,o)=>{const n=G;return s(),m("div",{class:y(["form-embed",i(x)]),style:B(i(v)?{backgroundColor:i(v)}:""),id:i(S),ref_key:"formEmbedRef",ref:E},[C("div",{class:y(i(R))},[t.data.form_embed_title?(s(),m("h2",H,O(t.data.form_embed_title),1)):f("",!0),t.data.form_embed_text?(s(),m("div",{key:1,class:"text",innerHTML:t.data.form_embed_text},null,8,N)):f("",!0),t.data.form_embed_form_embed_type.value==="iframe"?(s(),m("div",V,[C("iframe",{src:t.data.form_embed_iframe_code,allowtransparency:"true",width:"100%",height:i(b)?t.data.form_embed_mobile_iframe_height:t.data.form_embed_desktop_iframe_height,type:"text/html",frameborder:"0",style:{border:"0"}},null,8,J)])):f("",!0),t.data.form_embed_form_embed_type.value==="javascript"?(s(),m("div",{key:3,class:y(["form-container form-javascript-embed",t.data.form_embed_light_background?"light":"",t.data.form_embed_old_form?"old":""])},[i(l)?(s(),z(n,{key:0,classList:"blue margin-top-700 margin-bottom-700"})):(s(),m("div",{key:1,pageID:t.data.form_embed_container_id,ref_key:"formContainer",ref:p},null,8,Q))],2)):f("",!0)],2)],14,q)}}},ee=W(K,[["__scopeId","data-v-55ebb31d"]]);export{ee 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.