PageSourceSearch

https://www.textilwirtschaft.de/_nuxt/CKvZ8qzW.js

js textilwirtschaft.de collected 2026-09-24 17:08:55 UTC 16,939 bytes, 1 lines download raw bytes

1import{u as Ne}from"./Bigt4iYH.js";import{d as Ee,g as R,e as ne,m as ae,i as c,j as Ue,t as q,q as Te,bb as fe,ap as b,a0 as pe,bc as Ve,I as _,o as De,U as Ye,a2 as xe,x as z,bd as Je,r as k,be as Xe,bf as Qe,z as te,bg as Ze,u as Ke,B as et,p as tt,b0 as nt,bh as at,bi as ot,ax as st,aD as it,W as me,ar as lt,bj as rt,av as ut,k as be,w as ve,aE as he,J as dt,_ as ct,X as gt,bk as ft,al as pt,bl as mt,bm as bt}from"./DbIaeWh9.js";const vt="200px",sn=["header","header-native","image-parallax"],ln=["subtitle-numbered","subtitle","subtitle-chapter"],rn=[],ht=.5,Y=[3,3,2],un=1.7,yt=1,ye=1.3,wt=16/9,St=.5,kt=4,At=.5,Ct=.25,Pt={header:.8,paragraph:e=>e.text.length/400,"article-subheadline":.25,subtitle:.25,"subtitle-numbered":.25,"subtitle-chapter":.25,image:Rt,list:e=>we(e.items),"list-ordered":e=>we(e.items),"teaser-gallery":2.25,infobox:Tt};function dn(e){const t=Math.min(e,Y.length-1);return Y[t]??Y[Y.length-1]??yt}function we(e){const t=e.map(o=>o.length).reduce((o,g)=>o+g,0)/350,a=e.length*.15;return t+a+.25}function Rt(e){const t=_t(e?.picture);if(!t||!Number.isFinite(t))return ye;const a=ye*wt/t;return Math.min(Math.max(a,St),kt)}function _t(e){if(e)return e.width&&e.height?e.width/e.height:Et(e.aspectRatio)}function Et(e){if(typeof e=="number")return e>0?e:void 0;if(typeof e=="string"){const[t,a]=e.split(":").map(Number);if(t&&a)return t/a}}function Tt(e){const t=Dt(e.contentBlocks||[]).reduce((o,g)=>o+(g.weight||0),0),a=e.headline?Ct:0;return At+a+t}function Dt(e){return e.map(t=>{const a=Pt[t.component];let o=ht;return typeof a=="function"?o=a(t.content):typeof a=="number"&&(o=a),{...t,weight:o}})}const xt={key:0,class:"ad-slot-debug__debug-info-wrapper"},Wt=["data-state","data-has-ad"],zt={title:"Request Count"},Mt={class:"ad-slot-debug__debug-info-content"},It=Ee({__name:"AdSlotDebug",props:{type:{},slotObject:{},activeConfig:{},currentState:{},gamPageType:{type:[String,null,Boolean]}},setup(e){return(t,a)=>("useDebug"in t?t.useDebug:R(Ne))("ads")?(ne(),ae("div",xt,[c("details",{class:"ad-slot-debug__debug-info","data-state":e.currentState?.state,"data-has-ad":e.currentState?.hasAd},[c("summary",null,[Ue(q(e.type||"Ad")+" ",1),c("span",zt,"["+q(e.currentState?.requestedCounter)+"]",1)]),c("div",Mt,[a[0]||(a[0]=c("b",null,"GAM Path:",-1)),c("div",null,[c("span",null,q(e.slotObject!==null?e.slotObject.getAdUnitPath():"No slot object"),1)]),a[1]||(a[1]=c("br",null,null,-1)),a[2]||(a[2]=c("b",null,"GAM Page Type:",-1)),c("div",null,[c("span",null,q(e.gamPageType||"No GAM page type"),1)]),a[3]||(a[3]=c("br",null,null,-1)),a[4]||(a[4]=c("b",null,"Current State:",-1)),c("pre",null,q(e.currentState),1),a[5]||(a[5]=c("br",null,null,-1)),a[6]||(a[6]=c("b",null,"Active Slot Config:",-1)),c("pre",null,q(e.activeConfig),1)])],8,Wt)])):Te("",!0)}}),Ot=Object.assign(It,{__name:"AdsAdSlotDebug"});var i=(e=>(e.Mounted="mounted",e.WaitForConsent="waitForConsent",e.WaitForGpt="waitForGpt",e.Requesting="requesting",e.Disabled="disabled",e.WaitForLazyLoad="waitForLazyLoad",e.Requested="requested",e.HasAd="hasAd",e.NoAd="noAd",e.Destroyed="destroyed",e))(i||{});function $t(e,t){if(!e||!(e in fe))return null;const a=fe[e];return a?{mobile:Se(e,a,t,"mobile"),desktop:Se(e,a,t,"desktop")}:null}function Se(e,t,a,o){const g=structuredClone(t);if(!g.available.some(p=>p.page===a&&p.breakpoint===o))return!1;const E=ke(e,g,o),T=g.overrides.find(p=>p.page===a&&p.breakpoint===o)?.fields;return{...E,...ke(e,T,o)}}function ke(e,t,a){if(!t)return{};const o=a==="mobile",g=o?t.sizeMobile:t.sizeDesktop,I=o?t.formatMobile:t.formatDesktop,E={slotKey:e,dynamic:t.dynamic,refresh:t.refresh,canHaveVideo:t.canHaveVideo,lazyLoad:t.lazyLoad,size:g,format:I,gamPathPageType:t.gamPathPageType,gamPathSlotType:t.gamPathSlotType};return Object.fromEntries(Object.entries(E).filter(([T,p])=>p!==void 0))}function qt(e,t,a,o){!a||e.slot.getSlotElementId()!==a||(t.lifecycle.value=e.isEmpty?i.NoAd:i.HasAd,t.hasAd.value=!e.isEmpty,t.currentAdSize.value=e.size,t.requestedCounter.value+=1,b(`ads:${o}`,"slotRenderEnded event",{hasAd:t.hasAd.value,requestedCounter:t.requestedCounter.value,originalEvent:e,slotElementId:e.slot.getSlotElementId(),divId:a,gampath:e.slot.getAdUnitPath()}))}const oe=new Map;function Bt(e,t,a){if(!t||!window.googletag||typeof window.googletag.pubads!="function")return;const o=g=>{qt(g,e,t,a)};oe.set(t,o),window.googletag.pubads().addEventListener("slotRenderEnded",o)}function Ft(e,t){if(b(`ads:${t}`,"remove slotRenderEnded event listener",{divId:e}),!e||!window.googletag||typeof window.googletag.pubads!="function")return;const a=oe.get(e);a&&(window.googletag.pubads().removeEventListener("slotRenderEnded",a),oe.delete(e))}const Gt=e=>{const t=pe("gptLoaded",()=>!1),a=pe("gptCallbacks",()=>[]);if(t.value){e();return}a.value.push(e)};function We(e=10){return String(Math.floor(Math.random()*e)+1)}const Ae=.5,jt="random_number";function Lt(e){if(!Ve(e.type))return;const{divId:t,slotObject:a,hasAd:o,requestedCounter:g,gamPageType:I,isDesktop:E}=e,T=e.type,p=k(!1),v=k(null);let O=null,B=!1;const d=z(()=>Je(I.value)&&E.value);function m(){p.value&&o.value===!0?v.value===null&&(v.value=Date.now()):v.value=null}function w(){if(O)return;const h=document.getElementById(t);h&&(O=new IntersectionObserver(C=>{const y=C[0];p.value=y?.isIntersecting===!0&&(y?.intersectionRatio??0)>=Ae,m()},{threshold:[0,Ae,1]}),O.observe(h))}function u(){O?.disconnect(),O=null,p.value=!1,v.value=null}function A(){return typeof window.googletag?.pubads!="function"?null:window.googletag.pubads().getSlots().find(h=>h.getSlotElementId()===t)??null}function M(){return A()!==null}function F(h){if(o.value!==!0)return!1;const C=A();if(!C)return!1;const y=Math.min(h,10),J={refresh:String(y),[jt]:We()};return C.setConfig({targeting:J}),window.googletag.pubads().refresh([C]),v.value=null,b(`ads:${T}`,"refresh requested",{divId:t,count:y}),!0}function N(){B||(Xe({type:T,divId:t,isLive:M,isVisible:()=>p.value,visibleSinceMs:()=>v.value,refresh:F}),B=!0,w())}function G(){B&&(Qe(t),B=!1,u())}function j(){d.value&&w()}_(d,h=>{h?N():G()},{immediate:!0}),De(()=>{Ye(j)}),_(a,h=>{h&&j()}),_(o,m),_(g,()=>
1{v.value=null,j(),m()}),xe(G)}const Ce=[["superbanner"],["billboard"],["stickySitebarLinks","stickySitebarRechts","sitebars"]];function Ht(e){const t=Ce.findIndex(a=>a.includes(e));return t===-1?Ce.length:t}let se=[],ie=!1,Pe=!1;function Nt(){window.googletag.setConfig({singleRequest:!0})}function Ut(){ie=!1;const e=se;se=[],e.sort((t,a)=>t.priority-a.priority),b("ads:define-queue","flushing slot define queue",{types:e.map(({type:t})=>t)}),e.forEach(({type:t,define:a})=>{try{a()}catch(o){te("ads:define-queue","define() threw, skipping this slot",{type:t},o)}});try{Ze(),Pe||(Pe=!0,Nt(),window.googletag.enableServices())}catch(t){te("ads:define-queue","targeting/enableServices threw",{},t)}e.forEach(({type:t,display:a})=>{try{a()}catch(o){te("ads:define-queue","display() threw, skipping this slot",{type:t},o)}})}function Re(e,t){se.push({type:e,priority:Ht(e),...t}),ie||(ie=!0,queueMicrotask(Ut))}function Vt(e,t,a){return!a||!e?!1:!t}function _e(e){const t=(e??"").trim().toLowerCase();if(t==="reserved")return"reserved";if(t==="dynamic"||t==="allowed")return"dynamic"}function Yt(e){const t=e?.pageTypes??{},a={};for(const o of Object.keys(t)){const g=_e(t[o]);g&&(a[o]=g)}return{default:_e(e?.default),byPageType:a}}function Jt(e){switch(e){case"article":case"articlePaywall":case"longread":return"article";case"gallery":return"gallery";case"topic":return"topic";case"topicOverview":return"topicOverview";case"section":case"galleryOverview":return"section";case"homepage":return"homepage";case"action":return"action";default:return}}function Xt(e,t){if(typeof t!="string")return e.default;const a=Jt(t);return a?e.byPageType[a]??e.default:e.default}const Qt=["data-type","data-state","data-has-ad","data-sticky","data-breakpoint","data-has-fallback","data-preserve-space","data-gam-page-type"],Zt=["data-headline"],Kt={key:0,class:"ad-slot__no-ad-fallback"},en="random_number",tn=Ee({__name:"AdSlot",props:{type:{},hideAdHint:{type:Boolean},constrainToContainerWidth:{type:Boolean},breakpoint:{},scaleDown:{}},emits:["update:hasAd"],setup(e,{emit:t}){const{t:a}=Ke(),o=e,g=et(),I=k(null),E=k(!1),T=k(!1),p=k(null);let v=null;_(I,n=>{v?.disconnect(),v=null,n&&(v=new ResizeObserver(s=>{for(const r of s){const l=Math.round(r.contentRect.width);n.style.setProperty("--available-space",`${l}`),typeof o.scaleDown=="number"&&(E.value=l-8<o.scaleDown)}}),v.observe(n),u.value===i.Mounted&&(u.value=i.WaitForConsent))});const O=t,d=`div-gpt-ad-${tt()}`,m=`ads:${o.type}${o.breakpoint?`-${o.breakpoint}`:""}`,w=k(null),u=k(i.Mounted),A=k(null),M=k(null),F=k(0),N=k(!1),G=nt(at,null),j=Yt(ot().billboardPlacementConfig),h=st(),C=!!h.default&&h.default().length>0,y=z(()=>ft()),J=it(),ze=z(()=>o.hideAdHint?!1:!((o.type==="stickySitebarLinks"||o.type==="stickySitebarRechts")&&J.value)),S=z(()=>{if(!y.value)return null;const n=$t(o.type,y.value);return n?o.breakpoint==="desktop"?{...n,mobile:!1}:o.breakpoint==="mobile"?{...n,desktop:!1}:n:null}),X=pt().isDesktop,W=z(()=>S.value?S.value[X.value?"desktop":"mobile"]:!1);Lt({type:o.type,divId:d,slotObject:w,hasAd:A,requestedCounter:F,gamPageType:y,isDesktop:X});const Me=me().public.gamAdUnitPathDomain,Ie=me().public.gamAdPublisherTagId,U=z(()=>typeof W.value=="boolean"?"":`/${Ie}/${Me}/${X.value?"Desktop":"Mobile"}/${W.value?.gamPathPageType}/${W.value?.gamPathSlotType}`),Oe=z(()=>{const n={"--preserved-height":`${p.value||0}px`};if(!S.value||!y.value)return n;const[s,r]=typeof S.value.mobile=="object"?S.value.mobile.size??[0,0]:[0,0],[l,f]=typeof S.value.desktop=="object"?S.value.desktop.size??[0,0]:[0,0],D=S.value.mobile?S.value.mobile.dynamic||C:!0;let x=S.value.desktop?S.value.desktop.dynamic||C:!0;if(o.type==="billboard"&&!C&&S.value.desktop){const P=Xt(j,y.value);P==="reserved"?x=!1:P==="dynamic"&&(x=!0)}return{...n,"--width-mobile":`${s}px`,"--height-mobile":`${r}px`,"--min-height-mobile":`${D?0:r}px`,"--width-desktop":`${l}px`,"--height-desktop":`${f}px`,"--min-height-desktop":`${x?0:f+24}px`}}),$e=z(()=>{const n=M.value,s=W.value,r=(s&&typeof s=="object"?s.format:null)||null;return r===null||!Array.isArray(r)||n===null||typeof n=="string"?!1:r.filter(l=>JSON.stringify(l.size)===JSON.stringify(n)).map(l=>l.stickyness)}),qe=z(()=>{const n=M.value;return Array.isArray(n)?{"--ad-loaded-width":n[0],"--ad-loaded-height":n[1]}:{}}),{isConsentInteractionResolved:le}=lt();let L=null,$=null;const Q=[i.Requesting,i.Disabled,i.WaitForLazyLoad,i.Requested,i.HasAd,i.NoAd];_(u,(n,s)=>{b(m,`[${d}] lifecycle: ${s} → ${n}`),n===i.WaitForConsent?le.value&&(u.value=i.WaitForGpt):n===i.WaitForGpt?Gt(()=>{typeof window?.googletag?.pubads>"u"?window.googletag.cmd.push(function(){re()}):re()}):n===i.Requesting&&(Bt({lifecycle:u,hasAd:A,currentAdSize:M,requestedCounter:F},d,o.type),V(U.value))});function re(){u.value===i.WaitForGpt&&(u.value=i.Requesting)}_(le,n=>{u.value===i.WaitForConsent&&n&&(u.value=i.WaitForGpt)}),_(E,n=>{L&&clearTimeout(L),L=setTimeout(()=>{Q.includes(u.value)&&(n?(Z(),u.value=i.Disabled):V(U.value))},200)});function Be(){const n=document.getElementById(d);if(!n)return;const s=n.querySelector("iframe.textAd"),r=n.querySelector(".ad-slot__text-ad-link");if(!s||r)return;const l=s.dataset.headline??null,f=s.dataset.text??null,D=s.dataset.clickurl??null,x=s.width??null,K=s.height??null;if(x&&s.style.setProperty("--width",x),K&&s.style.setProperty("--height",K),l&&D){const P=document.createElement("a");P.href=D,P.className="ad-slot__text-ad-link",P.target="_blank",P.rel="noopener",P.dataset.adHint=a("general.advertising");const ge=document.createElement("strong");if(ge.textContent=l,P.appendChild(ge),f&&!["recommendationBar1","recommendationBar2","recommendationBar3"].includes(o.type)){const ee=document.createElement("div");ee.textContent=f,ee.className="ad-slot__text-ad-description",P.appendChild(ee),N.value=!0}s.parentElement?.appendChild(P)}}function V(n){if(Z(),!n){H(),u.value=i.Disabled;return}if(E.value){b(m,"disabled: slot too narrow (scaleDown)",{divId:d,gamPath:n}),H(),u.value=i.Disabled;return}const s=Ge();if(!s.length){b(m,"disabled: no matching format (no sizes fit available space)",{divId:d,gamPath:n,availableSpace:document.getElementById(d)?.parentElement?.parentElement?.offsetWidth}),H(),u.value=i.Disabled;return}const r=typeof W.value=="object"&&W.value!==null&&W.value.lazyLoad,l=r?"1":"0";if(r){u.value=i.WaitForLazyLoad;const f=document.getElementById(d);f&&(b(m,"wait for lazy ad slot",{divId:d,gamPath:n}),$=new IntersectionObserver(D=>{D[0]?.isIntersecting&&u.value===i.WaitForLazyLoad&&(b(m,"lazy ad slot in viewport, initializing slot",{divId:d,gamPath:n}),$?.disconnect(),$=null,Re(o.type,{define:()=>ue(n,s,l),display:()=>de(n,s)}))},{rootMargin:vt}),$.observe(f))}else Re(o.type,{define:()=>ue(n,s,l),display:()=>de(n,s)})}function Z(){$?.disconnect(),$=null,w.value&&(je(d),w.value=null),A.value=null}function ue(n,s,r){if(typeof window.googletag?.defineSlot!="function"){b(m,"defineGptSlot skipped: googletag.defineSlot not ready",{divId:d,path:n,googletag:typeof window.googletag});return}Fe(n),w.value=window.googletag.defineSlot(n,s,d)?.addService(window.googletag.pubads())||null,w.value?.setConfig({targeting:{lazyload:r,refresh:"0"}})}function de(n,s){w.value&&(w.value.setConfig({targeting:{[en]:We()}}),window.googletag.display(d),u.value=i.Requested,b(m,"push ad to googletag",{gamPath:n,format:s,divId:d,slotObject:w.value}))}function Fe(n){if(typeof window.googletag?.pubads!="function")return;const s=n.split("/"),r=s[3],l=s[s.length-1];if(!r||!l)return;const f=window.googletag.pubads().getSlots().filter(D=>{const x=D.getAdUnitPath().split("/");return x[3]===r&&x[x.length-1]===l});f.length!==0&&(window.googletag.destroySlots(f),b(m,"destroyed stale logical slots before defining new one",{path:n,count:f.length,divIds:f.map(D=>D.getSlotElementId())}))}function Ge(){const n=W.value;if(!n||typeof n=="boolean")return[];let s=(n.format||[]).map(f=>mt(f.size));if(!o.constrainToContainerWidth)return s;const r=document.getElementById(d)?.parentElement?.parentElement;let l=(r?.offsetWidth||0)-8;return l<=2&&(l=r?.parentElement?.offsetWidth||0),typeof o.scaleDown=="number"&&l>o.scaleDown||l>0&&(s=s.filter(f=>Array.isArray(f)?f[0]<=l:!0)),s}function je(n){if(!n||typeof window.googletag?.pubads!="function")return;const s=window.googletag.pubads().getSlots().find(l=>l.getSlotElementId()===n);if(!s)return;const r=window.googletag.destroySlots([s]);b(m,"destroying existing slot before initializing new one",{slotObject:s,divId:n,destroyed:r})}function ce(n){n.data==="textAd"&&(b(m,"Received text ad message"),Be())}function Le(){if(o.type!=="billboard"||g.meta.usingPageConfig!==!0||A.value!==!0||!Array.isArray(M.value))return!1;const n=M.value[1];if(typeof n!="number"||n<=0)return!1;const s=o.hideAdHint?0:24;return p.value=n+s,T.value=!0,!0}function H(){T.value=!1,p.value=null}_(A,n=>{typeof n=="boolean"&&(T.value&&H(),O("update:hasAd",n))});const He=rt();return _(He,(n,s)=>{if(!s||n===s)return;if(!bt(G,n)){b(m,"skip re-activate: slot belongs to another route",{divId:d,branchPath:G,newKey:n});return}Le()||H(),Q.includes(u.value)&&V(U.value)}),_(U,(n,s)=>{Vt(n,s,Q.includes(u.value))&&V(n)}),De(()=>{window.addEventListener("message",ce)}),xe(()=>{u.value=i.Destroyed}),ut(()=>{window.removeEventListener("message",ce),Ft(d,o.type),v?.disconnect(),Z(),L&&clearTimeout(L)}),(n,s)=>{const r=Ot,l=ct;return ne(),ae("div",{class:gt(["ad-slot__wrapper",{"ad-slot--text-ad":N.value,"ad-slot--scale-down":typeof o.scaleDown=="number","ad-slot--scale-down-too-small":E.value}]),"data-ad-id":d,"data-type":e.type,"data-state":u.value,"data-has-ad":A.value||!1,"data-sticky":R($e),"data-breakpoint":e.breakpoint,"data-has-fallback":R(C),"data-preserve-space":T.value,"data-gam-page-type":R(y),style:he(R(Oe))},[be(r,{type:e.type,"slot-object":w.value,"active-config":R(W)||null,"current-state":{state:u.value,hasAd:A.value,currentAdSize:M.value,requestedCounter:F.value},"gam-page-type":R(y)},null,8,["type","slot-object","active-config","current-state","gam-page-type"]),be(l,null,{fallback:ve(()=>[...s[0]||(s[0]=[c("div",{class:"ad-slot__inner ad-slot__inner--fallback"},[c("div",{class:"ad-slot__ad-container"})],-1)])]),default:ve(()=>
1[c("div",{ref_key:"innerRef",ref:I,class:"ad-slot__inner",style:he(R(qe))},[c("div",{id:d,class:"ad-slot__ad-container","data-headline":R(ze)?R(a)("general.advertising"):void 0},null,8,Zt)],4),A.value!==!0&&R(C)?(ne(),ae("div",Kt,[dt(n.$slots,"default")])):Te("",!0)]),_:3})],14,Qt)}}}),nn=Object.assign(tn,{__name:"AdsAdSlot"}),cn=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"}));export{i as A,nn as _,Y as a,yt as b,ln as c,ht as d,rn as e,wt as f,St as g,sn as h,ye as i,kt as j,At as k,Ct as l,un as m,Pt as n,dn as o,cn as p,Gt as u};

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.