1import{a$ as D,bo as E,bp as x,b1 as C,be as v,bd as I,bq as R,bi as $,b2 as i,aU as M,bl as P,br as B,b3 as A,bs as N,b6 as g,bt as U}from"./CCQj6toc.js";import{_ as j}from"./BuS8g_75.js";import{u as q}from"./DlxBzhOG.js";import{u as F}from"./BGxAjjgh.js";import{u as T}from"./CmH-rksd.js";import{u as V}from"./DpSG8d_J.js";import{u as z}from"./BKtd1d4Z.js";import"./CT45kIxc.js";import"./BX8E-lgg.js";import"./DTtZ24Ik.js";import"./DM9HrwNp.js";import"./Qg1bBY51.js";import"./CA1CIw0f.js";import"./By7P-iU9.js";import"./dNX9zyGW.js";import"./Glquhoen.js";import"./DMRwxaeg.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new r.Error().stack;n&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[n]="c84d1423-5175-48fb-82f9-3bb4dc98de81",r._sentryDebugIdIdentifier="sentry-dbid-c84d1423-5175-48fb-82f9-3bb4dc98de81")}catch{}const ue=D({__name:"[name]",async setup(r){var f,p,b;let n,u;const l=E().params.name,h=x(),c=F(),d=N(!1);T({script:[{type:"text/javascript",src:"/iframeResizer.iframe.min.js"},{children:"var UC_UI_SUPPRESS_CMP_DISPLAY = true;",type:"application/javascript"}]});const{data:k}=([n,u]=C(()=>V(`configurator-iframe-${l}|${c}`,()=>h.get(`cdn/stories/salamander-windows-com/configurator-iframe/${l}`,{version:c,language:"en",resolve_links:"url",cv:Date.now()}))),n=await n,u(),n),e=g(()=>{var t;return((t=k.value)==null?void 0:t.data.story.content.body[0])||null}),m=g(()=>e.value?{...U(e.value),disable_tracking:!0,translations:{next:"Weiter",back:"Zurück",step:"Schritt"}}:null);if(!((f=e.value)!=null&&f.enable_iframe))throw v({statusCode:403,statusMessage:"No permission"});if(!I()){const t=R()?z():null;if(t){let s=t.node.req.headers.referer||null;if((p=e.value)!=null&&p.iframe_allowed_domain&&s&&!s.includes((b=e.value)==null?void 0:b.iframe_allowed_domain))throw v({statusCode:403,statusMessage:"No permission"})}}$(()=>{var t,s,o;(o=(s=(t=e.value)==null?void 0:t.colors)==null?void 0:s.tbody)==null||o.filter(a=>a.body[1].value).map(a=>({name:a.body[0].value,hex:a.body[1].value})).forEach(a=>{document.documentElement.style.setProperty(`--${a.name}`,`#${a.hex}`)}),d.value=!0});async function w(t,s){var a,_,y;const o=q(t);if((a=e.value)!=null&&a.backend_mail_enable)try{await o.handleBackendMail(e.value.backend_mail_tenant,e.value.backend_mail_receiver,e.value.backend_mail_transaction_type)}catch{return{alert:{type:"error",message:"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."}}}if((_=e.value)!=null&&_.enable_smart_sales)try{await o.handleSmartSales(e.value.smart_sale_tentant,{})}catch{return{alert:{type:"error",message:"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."}}}return(y=e.value)!=null&&y.enable_n8n&&await o.handleN8n(e.value.n8n_endpoint_url),{}}return(t,s)=>i(d)&&i(m)?(M(),P(j,B({key:0},i(m),{"on-submit":w}),null,16)):A("",!0)}});export{ue 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.