PageSourceSearch

https://www.weleda.com/_nuxt/E8JYQopV.js

js weleda.com collected 2026-10-02 03:35:21 UTC 27,908 bytes, 11 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./_Q8xceHZ.js","./weQc1KCP.js","./entry.DOpZOiEb.css"])))=>i.map(i=>d[i]);
2import{t as U,o as y,c as w,aq as Ce,a as O,E as h,aa as v,aC as le,p as C,_ as V,bb as Pe,ac as Oe,q as A,d as D,Q as J,b7 as Te,w as ue,ar as R,l as F,aw as Ee,n as _,a6 as q,ca as te,cb as oe,cc as je,bt as xe,O as De,aB as Ae,m as H,at as Fe,au as Ue,bI as Ve,bC as ne,cd as Be,I as Ne,ba as Re}from"./weQc1KCP.js";import{_ as qe}from"./DVd-5CI-.js";import{_ as Ye}from"./BYotoHmM.js";import{C as ce}from"./qA0kasy3.js";import{f as Me,a as Ge}from"./DunzgqvK.js";import{t as ze,a as pe}from"./BqtLrxAn.js";import{u as He}from"./ZoC9Meah.js";import{u as Qe}from"./_Q8xceHZ.js";const Ke=["autoplay","muted","loop","aria-describedby"],We=["src"],Je=["src"],Ze=["id"],Xe=U({__name:"NativeVideo",props:{videoDescription:{},videoUUID:{},consentGranted:{type:Boolean},videoUrlLarge:{},videoUrlSmall:{},autoplay:{type:Boolean},loop:{type:Boolean},videoSubtitles:{},placeholderImage:{},type:{}},setup(t){const e=t,o=C(()=>e.autoplay===!0);return(n,r)=>(y(),w(Ce,null,[O("video",{controls:"",autoplay:t.autoplay,muted:h(o),loop:t.loop,class:"native-video","aria-describedby":t.videoDescription?t.videoUUID:void 0},[t.consentGranted?(y(),w("source",{key:0,src:t.videoUrlLarge,media:"(min-width: 864px)"},null,8,We)):v("",!0),t.consentGranted?(y(),w("source",{key:1,src:t.videoUrlSmall},null,8,Je)):v("",!0)],8,Ke),t.videoDescription?(y(),w("div",{key:0,id:t.videoUUID,class:"sr-only"},le(t.videoDescription),9,Ze)):v("",!0)],64))}}),et=Object.assign(V(Xe,[["__scopeId","data-v-2cab60fe"]]),{__name:"NativeVideo"}),tt={key:0,class:"consent-facade__backdrop"},ot={class:"consent-facade__content color-set-primary--light"},nt={class:"consent-facade__content-body"},rt={key:0,class:"consent-facade__content-footer"},st=U({__name:"PrivateOneTrustConsentFacade",props:{placeholderImage:{},primaryButtonLabel:{},secondaryButtonLabel:{},primaryButtonAriaLabel:{}},emits:["close","clickPrimary","clickSecondary"],setup(t){Pe(n=>({v343ff014:h(o)}));const e=t,o=C(()=>`url(${e.placeholderImage?.smallUrl})`);return(n,r)=>{const s=Ye;return y(),w("div",{class:Oe(["consent-facade",t.placeholderImage?"consent-facade--image":"consent-facade--color"])},[t.placeholderImage?(y(),w("div",tt)):v("",!0),O("div",ot,[O("div",nt,[A(n.$slots,"default",{},void 0,!0)]),t.primaryButtonLabel||t.secondaryButtonLabel?(y(),w("footer",rt,[t.secondaryButtonLabel?(y(),D(s,{key:0,variant:"secondary",label:t.secondaryButtonLabel,small:"",onClick:r[0]||(r[0]=i=>n.$emit("clickSecondary"))},null,8,["label"])):v("",!0),t.primaryButtonLabel?(y(),D(s,{key:1,"data-testid":"primary-button",label:t.primaryButtonLabel,small:"","label-aria":t.primaryButtonAriaLabel,onClick:r[1]||(r[1]=i=>n.$emit("clickPrimary"))},null,8,["label","label-aria"])):v("",!0)])):v("",!0)])],2)}}}),it=Object.assign(V(st,[["__scopeId","data-v-714ef0db"]]),{__name:"PrivateOneTrustConsentFacade"}),at=U({__name:"OneTrustConsentFacadeVideo",props:{youtube:{type:Boolean,default:!1},placeholderImage:{}},emits:["video-consent-granted"],setup(t,{emit:e}){const o=e,n=i=>{i.detail.includes(ce.Video)&&o("video-consent-granted")};J(()=>{window.addEventListener("OneTrustGroupsUpdated",n)}),Te(()=>{window.removeEventListener("OneTrustGroupsUpdated",n)});const r=()=>{window.OneTrust.ToggleInfoDisplay()},s=()=>{o("video-consent-granted",{allowOnce:!0})};return(i,a)=>{const l=qe,u=it;return y(),D(u,{"placeholder-image":t.placeholderImage,"primary-button-label":i.$t("globaltranslations.consent.accept.button.text"),"primary-button-aria-label":i.$t("globaltranslations.consent.accept.withparameter.button.text",[t.youtube?"Youtube":"Video Service"]),"secondary-button-label":i.$t("globaltranslations.consent.more.information.link.text"),onClickPrimary:s,onClickSecondary:r},{default:ue(()=>[R(l,{"section-headline":t.youtube?i.$t("globaltranslations.consent.video.headline"):i.$t("globaltranslations.consent.nativevideo.headline"),paragraph:i.$t("globaltranslations.consent.video.text")},null,8,["section-headline","paragraph"])]),_:1},8,["placeholder-image","primary-button-label","primary-button-aria-label","secondary-button-label"])}}}),lt=Object.assign(at,{__name:"OneTrustConsentFacadeVideo"});function ut(t){let e;return new Promise(o=>{e=Ge(t,n=>{for(const r of n)r.isIntersecting&&o(!0)},{rootMargin:"30px 0px 0px 0px",threshold:0}),pe(()=>o(!1))}).finally(()=>{e.stop()})}function ct(t){const{el:e,trigger:o}
2=t,n=(Array.isArray(t.trigger)?t.trigger:[t.trigger]).filter(Boolean);if(!o||n.includes("immediate")||n.includes("onNuxtReady"))return"onNuxtReady";if(n.some(i=>["visibility","visible"].includes(i)))return e?ut(e):new Promise(()=>{});const r={},s=new Promise(i=>{const a=typeof e<"u"?e:document.body,l=Me(a,n,()=>{l(),i(!0)},{once:!0,passive:!0});ze(()=>{F(a,u=>{u&&n.forEach(c=>{u.dataset[`script_${c}`]&&(l(),i(!0))})},{immediate:!0})}),pe(()=>i(!1))});return Object.assign(s,{ssrAttrs:r})}const pt={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function de(t){return pt}let dt;function ft(t){return dt?.get(t)}let yt;function gt(t){return yt?.get(t)}let ht;function vt(t,e){return ht?.get(t)?.get(e)}function fe(t){const e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&Object.getPrototypeOf(t)?.constructor?.name)??"null":e}function $(t,e,o,n,r){const s=r&&"input"in r?r.input:o.value,i=r?.expected??t.expects??null,a=r?.received??fe(s),l={kind:t.kind,type:t.type,input:s,expected:i,received:a,message:`Invalid ${e}: ${i?`Expected ${i} but r`:"R"}eceived ${a}`,requirement:t.requirement,path:r?.path,issues:r?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},u=t.kind==="schema",c=r?.message??t.message??vt(t.reference,l.lang)??(u?gt(l.lang):null)??n.message??ft(l.lang);c!==void 0&&(l.message=typeof c=="function"?c(l):c),u&&(o.typed=!1),o.issues?o.issues.push(l):o.issues=[l]}const re=new WeakMap;function T(t){let e=re.get(t);return e||(e={version:1,vendor:"valibot",validate(o){return t["~run"]({value:o},de())}},re.set(t,e)),e}function mt(t,e){const o=[...new Set(t)];return o.length>1?`(${o.join(` ${e} `)})`:o[0]??"never"}function ye(t,e,o){return typeof t.fallback=="function"?t.fallback(e,o):t.fallback}function Z(t,e,o){return typeof t.default=="function"?t.default(e,o):t.default}function ge(t,e){return{kind:"schema",type:"array",reference:ge,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return T(this)},"~run"(o,n){const r=o.value;if(Array.isArray(r)){o.typed=!0,o.value=[];for(let s=0;s<r.length;s++){const i=r[s],a=this.item["~run"]({value:i},n);if(a.issues){const l={type:"array",origin:"value",input:r,key:s,value:i};for(const u of a.issues)u.path?u.path.unshift(l):u.path=[l],o.issues?.push(u);if(o.issues||(o.issues=a.issues),n.abortEarly){o.typed=!1;break}}a.typed||(o.typed=!1),o.value.push(a.value)}}else $(this,"type",o,n);return o}}}function he(t){return{kind:"schema",type:"boolean",reference:he,expects:"boolean",async:!1,message:t,get"~standard"(){return T(this)},"~run"(e,o){return typeof e.value=="boolean"?e.typed=!0:$(this,"type",e,o),e}}}function Q(t,e){return{kind:"schema",type:"literal",reference:Q,expects:fe(t),async:!1,literal:t,message:e,get"~standard"(){return T(this)},"~run"(o,n){return o.value===this.literal?o.typed=!0:$(this,"type",o,n),o}}}function ve(t){return{kind:"schema",type:"number",reference:ve,expects:"number",async:!1,message:t,get"~standard"(){return T(this)},"~run"(e,o){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:$(this,"type",e,o),e}}}function Y(t,e){return{kind:"schema",type:"object",reference:Y,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return T(this)},"~run"(o,n){const r=o.value;if(r&&typeof r=="object"){o.typed=!0,o.value={};for(const s in this.entries){const i=this.entries[s];if(s in r||(i.type==="exact_optional"||i.type==="optional"||i.type==="nullish")&&i.default!==void 0){const a=s in r?r[s]:Z(i),l=i["~run"]({value:a},n);if(l.issues){const u={type:"object",origin:"value",input:r,key:s,value:a};for(const c of l.issues)c.path?c.path.unshift(u):c.path=[u],o.issues?.push(c);if(o.issues||(o.issues=l.issues),n.abortEarly){o.typed=!1;break}}l.typed||(o.typed=!1),o.value[s]=l.value}
2else if(i.fallback!==void 0)o.value[s]=ye(i);else if(i.type!=="exact_optional"&&i.type!=="optional"&&i.type!=="nullish"&&($(this,"key",o,n,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:r,key:s,value:r[s]}]}),n.abortEarly))break}}else $(this,"type",o,n);return o}}}function f(t,e){return{kind:"schema",type:"optional",reference:f,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return T(this)},"~run"(o,n){return o.value===void 0&&(this.default!==void 0&&(o.value=Z(this,o,n)),o.value===void 0)?(o.typed=!0,o):this.wrapped["~run"](o,n)}}}function me(t,e){return{kind:"schema",type:"strict_object",reference:me,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return T(this)},"~run"(o,n){const r=o.value;if(r&&typeof r=="object"){o.typed=!0,o.value={};for(const s in this.entries){const i=this.entries[s];if(s in r||(i.type==="exact_optional"||i.type==="optional"||i.type==="nullish")&&i.default!==void 0){const a=s in r?r[s]:Z(i),l=i["~run"]({value:a},n);if(l.issues){const u={type:"object",origin:"value",input:r,key:s,value:a};for(const c of l.issues)c.path?c.path.unshift(u):c.path=[u],o.issues?.push(c);if(o.issues||(o.issues=l.issues),n.abortEarly){o.typed=!1;break}}l.typed||(o.typed=!1),o.value[s]=l.value}
2else if(i.fallback!==void 0)o.value[s]=ye(i);else if(i.type!=="exact_optional"&&i.type!=="optional"&&i.type!=="nullish"&&($(this,"key",o,n,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:r,key:s,value:r[s]}]}),n.abortEarly))break}if(!o.issues||!n.abortEarly){for(const s in r)if(!(s in this.entries)){$(this,"key",o,n,{input:s,expected:"never",path:[{type:"object",origin:"key",input:r,key:s,value:r[s]}]});break}}}else $(this,"type",o,n);return o}}}function b(t){return{kind:"schema",type:"string",reference:b,expects:"string",async:!1,message:t,get"~standard"(){return T(this)},"~run"(e,o){return typeof e.value=="string"?e.typed=!0:$(this,"type",e,o),e}}}function se(t){let e;if(t)for(const o of t)if(e)for(const n of o.issues)e.push(n);else e=o.issues;return e}function be(t,e){return{kind:"schema",type:"union",reference:be,expects:mt(t.map(o=>o.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return T(this)},"~run"(o,n){let r,s,i;for(const a of this.options){const l=a["~run"]({value:o.value},n);if(l.typed)if(l.issues)s?s.push(l):s=[l];else{r=l;break}else i?i.push(l):i=[l]}if(r)return r;if(s){if(s.length===1)return s[0];$(this,"type",o,n,{issues:se(s)}),o.typed=!0}else{if(i?.length===1)return i[0];$(this,"type",o,n,{issues:se(i)})}return o}}}function bt(t,e,o){const n=t["~run"]({value:e},de());return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}const I={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose
2:Number.POSITIVE_INFINITY},ie={silent:{level:-1},fatal:{level:I.fatal},error:{level:I.error},warn:{level:I.warn},log:{level:I.log},info:{level:I.info},success:{level:I.success},fail:{level:I.fail},ready:{level:I.info},start:{level:I.info},box:{level:I.info},debug:{level:I.debug},trace:{level:I.trace},verbose:{level:I.verbose}};function M(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function K(t,e,o=".",n){if(!M(e))return K(t,{},o);const r=Object.assign({},e);for(const s in t){if(s==="__proto__"||s==="constructor")continue;const i=t[s];i!=null&&(Array.isArray(i)&&Array.isArray(r[s])?r[s]=[...i,...r[s]]:M(i)&&M(r[s])?r[s]=K(i,r[s],(o?`${o}.`:"")+s.toString()):r[s]=i)}return r}function _t(t){return(...e)=>e.reduce((o,n)=>K(o,n,""),{})}const wt=_t();function kt(t){return Object.prototype.toString.call(t)==="[object Object]"}function It(t){return!(!kt(t)||!t.message&&!t.args||t.stack)}let G=!1;const ae=[];class g{options;_lastLog;_mockFn;constructor(e={}){const o=e.types||ie;this.options=wt({...e,defaults:{...e.defaults},level:z(e.level,o),reporters:[...e.reporters||[]]},{types:ie,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in o){const r={type:n,...this.options.defaults,...o[n]};this[n]=this._wrapLogFn(r),this[n].raw=this._wrapLogFn(r,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=z(e,this.options.types,this.options.level)}prompt(e,o){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,o)}create(e){const o=new g({...this.options,...e});return this._mockFn&&o.mockTypes(this._mockFn),o}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const o=this.options.reporters.indexOf(e);if(o!==-1)return this.options.reporters.splice(o,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,o){e&&(e.__write||(e.__write=e.write),e.write=n=>{this[o].raw(String(n).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){G=!0}resumeLogs(){G=!1;const e=ae.splice(0);for(const o of e)o[0]._logFn(o[1],o[2])}mockTypes(e){const o=e||this.options.mockFn;if(this._mockFn=o,typeof o=="function")for(const n in this.options.types)this[n]=o(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(e,o){return(...n)=>{if(G){ae.push([this,e,n,o]);return}return this._logFn(e,n,o)}}_logFn(e,o,n){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:z(e.level,this.options.types)};!n&&o.length===1&&It(o[0])?Object.assign(r,o[0]):r.args=[...o],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(`
3`)),r.args.push(`
4`+r.additional.join(`
5`)),delete r.additional),r.type=typeof r.type=="string"?r.type.toLowerCase():"log",r.tag=typeof r.tag=="string"?r.tag:"";const s=(a=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}a&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,i<this.options.throttle)try{const a=JSON.stringify([r.type,r.tag,r.args]),l=this._lastLog.serialized===a;if(this._lastLog.serialized=a,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(e){for(const o of this.options.reporters)o.log(e,{options:this.options})}}function z(t,e={},o=3){return t===void 0?o:typeof t=="number"?t:e[t]&&e[t].level!==void 0?e[t].level:o}g.prototype.add=g.prototype.addReporter;g.prototype.remove=g.prototype.removeReporter;g.prototype.clear=g.prototype.removeReporter;g.prototype.withScope=g.prototype.withTag;g.prototype.mock=g.prototype.mockTypes;g.prototype.pause=g.prototype.pauseLogs;g.prototype.resume=g.prototype.resumeLogs;function St(t={}){return new g(t)}class Lt{options;defaultColor;levelColorMap;typeColorMap;constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}log(e){const o=this._getLogFn(e.level),n=e.type==="log"?"":e.type,r=e.tag||"",i=`
6      background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};
7      border-radius: 0.5em;
8      color: white;
9      font-weight: bold;
10      padding: 2px 0.5em;
11    `,a=`%c${[r,n].filter(Boolean).join(":")}`;typeof e.args[0]=="string"?o(`${a}%c ${e.args[0]}`,i,"",...e.args.slice(1)):o(a,i,...e.args)}}function _e(t={}){return St({reporters:t.reporters||[new Lt({})],prompt(o,n={}){return n.type==="confirm"?Promise.resolve(confirm(o)):Promise.resolve(prompt(o))},...t})}_e();const W=_e({level:3,defaults:{tag:"nuxt-scripts"}});function $t(t){const e=_("awaitingLoad"),o=[];let n=null,r=!1;const s=t.use?.()||{},i={status:e,proxy:s,async load(){if(!(r||e.value!=="awaitingLoad")){r=!0,e.value="loading";try{t.clientInit&&(n=Promise.resolve(t.clientInit()),await n),e.value="loaded",o.forEach(a=>{try{a(s)}catch(l){W.error(`[NpmScriptStub] Error in onLoaded callback for ${t.key}:`,l)}})}catch(a){W.error(`[NpmScriptStub] Failed to initialize ${t.key}:`,a),e.value="error"}}},onLoaded(a){e.value==="loaded"?a(s):o.push(a)},get $script(){return{status:e.value,load:i.load}}};if(t.trigger)if(typeof t.trigger=="function"){const a=t.trigger(()=>i.load());a&&typeof a=="object"&&"then"in a&&a.then(()=>i.load())}else t.trigger==="manual"||(t.trigger==="onNuxtReady"?Ee(async()=>{const{onNuxtReady:a}=await import("./_Q8xceHZ.js").then(l=>l.i);return{onNuxtReady:a}},__vite__mapDeps([0,1,2]),import.meta.url).then(({onNuxtReady:a})=>{a(()=>i.load())}):t.trigger==="client"&&i.load());else i.load();return i}const x=be([Q("granted"),Q("denied")]),Ct=Y({ad_storage:f(x),ad_user_data:f(x),ad_personalization:f(x),analytics_storage:f(x),functionality_storage:f(x),personalization_storage:f(x),security_storage:f(x),wait_for_update:f(ve()),region:f(ge(b()))}),Pt=Y({user_email:f(b()),ip_address:f(b()),user_phone_number:f(b()),user_hashed_email:f(b()),user_hashed_phone_number:f(b()),firstname:f(b()),lastname:f(b()),geo_city:f(b()),geo_region:f(b()),geo_postal_code:f(b()),geo_country:f(b()),age:f(b())});({...Pt?.entries||{}});const Ot=me(Ct.entries);function Tt(t,e,o){const n=bt(Ot,e);if(!n.success)for(const r of n.issues)t.warn(`${o}: ${r.message} (path: ${r.path?.map(s=>s.key).join(".")||"<root>"})`)}function Et(t,e,o){if(t.consent)return;const n=W.withTag(o),r=(s,i)=>{Tt(n,i,`consent.${s}()`),e.push(t.proxy,s,i)};t.consent={default:s=>r("default",s),update:s=>r("update",s)}}function jt(t){return(xe().public.scripts||{})[t]}function xt(t,e,o){const n=jt(t),r=q(o||{},typeof n=="object"?n:{}),s=e(r,{scriptInput:r.scriptInput});if(s.scriptMode==="npm")return $t({key:String(t),use:s.scriptOptions?.use,clientInit:s.clientInit,trigger:r.scriptOptions?.trigger});let i=s.scriptInput;const a=r.scriptInput?.src,l=s.scriptInput?.src;if(a&&l&&typeof l=="string"&&typeof a=="string"){const E=te(l),p=te(a),m=oe(E.search||""),j=oe(p.search||""),B={...m,...j},N=p.href?.split("?")[0]||a;i={...s.scriptInput||{},src:je(N,B)}}const u=q(i,r.scriptInput,{key:t}),c={...r?.scriptOptions,...s.scriptOptions};c.use&&(c.use=c.use);const k=c.beforeInit;c.beforeInit=()=>{k?.(),s.clientInit?.()};const P=He(u,c);return s.gcmConsent&&Et(P,s.gcmConsent,String(t)),P}function Dt(t){let e=Promise.resolve();const o=xt("youtubePlayer",()=>({scriptInput:{src:"https://www.youtube.com/iframe_api",crossorigin:!1},scriptOptions:{use(){return{YT:window.YT||e.then(()=>window.YT)}}},clientInit:()=>{e=new Promise(n=>{window.onYouTubeIframeAPIReady=n})}}),t);{const n=F(o.status,r=>{r==="loading"&&(De({link:[{rel:"preconnect",href:"https://www.youtube-nocookie.com"},{rel:"preconnect",href:"https://www.google.com"},{rel:"preconnect",href:"https://googleads.g.doubleclick.net"},{rel:"preconnect",href:"https://static.doubleclick.net"}]}),n())})}return o}const At={},Ft={class:"sr-only","aria-label":"Loading...",role:"status"};function Ut(t,e){return y(),w("div",Ft)}const Vt=Object.assign(V(At,[["render",Ut],["__scopeId","data-v-fd2587a4"]]),{__name:"ScriptAriaLoadingIndicator"}),Bt={__name:"ScriptYouTubePlayer",props:{placeholderAttrs:{type:Object,required:!1},rootAttrs:{type:Object,required:!1},aboveTheFold:{type:Boolean,required:!1},trigger:{type:[String,Array,Boolean],required:!1,default:"mousedown"},videoId:{type:String,required:!0}
11,playerVars:{type:null,required:!1,default:{autoplay:0,playsinline:1}},width:{type:Number,required:!1,default:640},height:{type:Number,required:!1,default:360},ratio:{type:String,required:!1,default:"16/9"},cookies:{type:Boolean,required:!1,default:!1},playerOptions:{type:null,required:!1},thumbnailSize:{type:String,required:!1,default:"hq720"},webp:{type:Boolean,required:!1,default:!0},placeholderObjectFit:{type:String,required:!1,default:"cover"}},emits:["ready","state-change","playback-quality-change","playback-rate-change","error","api-change"],setup(t,{expose:e,emit:o}){const n=t,r=o,s=["onReady","onStateChange","onPlaybackQualityChange","onPlaybackRateChange","onError","onApiChange"],i=/([A-Z])/g,a=_(),l=_(),u=_(!1),c=_(!1),k=ct({trigger:n.trigger,el:a}),P=Dt({scriptOptions:{trigger:k}}),{onLoaded:E,status:p}=P,m=_(),j=_(!1);k instanceof Promise?k.then(d=>{d&&(c.value=!0,n.trigger==="mousedown"&&(j.value=!0))}):c.value=!0;const B=F(()=>n.videoId,d=>{u.value&&m.value&&m.value.loadVideoById(d)});Ae(()=>{B(),m.value?.destroy()}),J(()=>{E(async d=>{if(!c.value&&k instanceof Promise&&!await k||!l.value)return;const S=d.YT instanceof Promise?await d.YT:d.YT;await new Promise(L=>{typeof YT.Player>"u"?S.ready(L):L()}),l.value&&(m.value=new YT.Player(l.value,{host:n.cookies?"https://www.youtube.com":"https://www.youtube-nocookie.com",videoId:n.videoId,width:n.width,height:n.height,playerVars:n.playerVars,...n.playerOptions,events:Object.fromEntries(s.map(L=>[L,Le=>{const $e=L.replace(i,"-$1").replace("on-","").toLowerCase();r($e,Le),L==="onReady"&&(u.value=!0,j.value&&(m.value?.playVideo(),j.value=!1))}]))}))}),F(p,d=>{d==="error"&&r("error")})}),e({player:m});const N=C(()=>c.value?!1:(Array.isArray(n.trigger)?n.trigger:[n.trigger]).some(S=>typeof S=="string"&&!["immediate","onNuxtReady","visibility","visible"].includes(S)));function we(d){if(d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),!a.value))return;const S=(Array.isArray(n.trigger)?n.trigger:[n.trigger]).filter(Boolean);for(const L of S)["immediate","onNuxtReady","visibility","visible"].includes(L)||a.value.dispatchEvent(new Event(L,{bubbles:!1}))}const ke=C(()=>{const d=N.value;return q(n.rootAttrs,{"aria-busy":p.value==="loading","aria-label":p.value==="awaitingLoad"?d?"Play video":"YouTube Player - Placeholder":p.value==="loading"?"YouTube Player - Loading":"YouTube Player - Loaded","aria-live":"polite",role:d?"button":"application",tabindex:d?0:void 0,style:{cursor:"pointer",position:"relative",backgroundColor:"black",width:"100%",aspectRatio:n.ratio},...k instanceof Promise?k.ssrAttrs||{}:{}})}),Ie=C(()=>`https://i.ytimg.com/vi/${n.videoId}/hqdefault.jpg`),X=C(()=>`https://i.ytimg.com/${n.webp?"vi_webp":"vi"}/${n.videoId}/${n.thumbnailSize}.${n.webp?"webp":"jpg"}`),ee=_(!1),Se=C(()=>q(n.placeholderAttrs,{src:ee.value?Ie.value:X.value,alt:"Play video",loading:n.aboveTheFold?"eager":"lazy",fetchpriority:n.aboveTheFold?"high":void 0,style:{width:"100%",objectFit:n.placeholderObjectFit,height:"100%"},onLoad(d){const S=d.target;S.naturalWidth===120&&S.naturalHeight===90&&(ee.value=!0)}}));return(d,S)=>(y(),w("div",H({ref_key:"rootEl",ref:a},ke.value,{onKeydown:S[0]||(S[0]=L=>N.value?we(L):void 0)}),[O("div",{ref_key:"youtubeEl",ref:l,style:{width:"100%",height:"100%",position:"absolute",top:"0",left:"0"}},null,512),u.value?v("",!0):A(d.$slots,"placeholder",{key:0,placeholder:X.value},()=>[O("img",Fe(Ue(Se.value)),null,16)]),h(p)==="loading"?A(d.$slots,"loading",{key:1},()=>[R(Vt)]):v("",!0),h(p)==="awaitingLoad"?A(d.$slots,"awaitingLoad",{key:2}):h(p)==="error"?A(d.$slots,"error",{key:3}):v("",!0),A(d.$slots,"default")],16))}},Nt=Object.assign(Bt,{__name:"ScriptYouTubePlayer"}),Rt=Ve("/images/youtube-play.svg"),qt=["inert"],Yt=["id"],Mt={class:"youtube-player__floating-button"},Gt=["aria-label","onKeydown"],zt=U({__name:"YoutubeVideo",props:{videoDescription:{},videoUUID:{},ignoreUserInput:{type:Boolean},consentGrantedOnce:{type:Boolean},videoID:{},placeholderImage:{},type:{}},setup(t){const e=t,o=["keydown","mousedown"],n=_(!1),{focusNextInteractiveElement:r,focusPrevInteractiveElement:s,focusInteractiveElement:i}=Qe(),a=_(),l=_(null),u=_(!1),c=_(0);F(()=>e.consentGrantedOnce,p=>{p&&!u.value&&Ne(()=>{l.value&&(i(l.value),u.value=!0)})}),F(()=>e.ignoreUserInput,(p,m)=>{p===!1&&m===!0&&c.value++});function k(p){p.preventDefault(),p.stopPropagation(),(p.key==="Enter"||p.key===" ")&&(n.value=!0)}const P=()=>{n.value&&a.value?.player&&(a.value.player.playVideo(),n.value=!1)};function E(p){p.preventDefault(),p.shiftKey?s():r()}return(p,m)=>{const j=Nt;return y(),w("div",{class:"youtube-player",inert:t.ignoreUserInput?!0:void 0},[t.videoDescription?(y(),w("div",{key:0,id:t.videoUUID,class:"sr-only"},le(t.videoDescription),9,Yt)):v("",!0),(y(),D(j,{key:h(c),ref_key:"videoPlayer",ref:a,"aria-describedby":t.videoDescription?t.videoUUID:void 0,"video-id":t.videoID,trigger:o,onReady:P,onKeydown:k,onMousedown:m[0]||(m[0]=ne(B=>n.value=!0,["prevent"]))},{awaitingLoad:ue(()=>[O("div",Mt,[O("button",{ref_key:"placeHolderButton",ref:l,"aria-label":p.$t("globaltranslations.global.startvideo.button.arialabel"),onKeydown:Be(ne(E,["prevent"]),["tab"])},[...m[1]||(m[1]=[O("img",{"aria-hidden":"true",width:"68",height:"48",src:Rt,alt:""},null,-1)])],40,Gt)])]),_:1},8,["aria-describedby","video-id"]))],8,qt)}}}),Ht=Object.assign(V(zt,[["__scopeId","data-v-b584a678"]]),{__name:"YoutubeVideo"}),Qt={class:"video-with-consent-facade"},Kt={class:"video-with-consent-facade__video"},Wt={key:0,class:"video-with-consent-facade__video--native"},Jt={key:1},Zt=U({__name:"VideoWithConsentFacade",props:{copyright:{},video:{},videoDescription:{},randomUuid:{}},setup(t){const e=t,o=C(()=>e.video.type==="youtube"),n=C(()=>e.video.type==="native"),r=C(()=>n.value?{...e.video,videoUUID:e.randomUuid,videoDescription:e.videoDescription}:null),s=C(()=>o.value?{...e.video,videoUUID:e.randomUuid,videoDescription:e.videoDescription}:null),i=_(!0),a=_(!1);J(()=>{const u=window.OnetrustActiveGroups?.includes(ce.Video)||!1;i.value=!u});const l=u=>{i.value=!1,u?.allowOnce&&(a.value=!0)};return(u,c)=>{const k=et,P=lt,E=Ht,p=Re;return y(),w("div",Qt,[O("div",Kt,[h(r)?(y(),w("div",Wt,[R(k,H({"consent-granted":h(a)||!h(i)},h(r)),null,16,["consent-granted"]),h(i)?(y(),D(P,{key:0,"placeholder-image":t.video.placeholderImage,onVideoConsentGranted:l},null,8,["placeholder-image"])):v("",!0)])):v("",!0),h(s)?(y(),w("div",Jt,[R(E,H(h(s),{"ignore-user-input":h(i),"consent-granted-once":h(a)}),null,16,["ignore-user-input","consent-granted-once"]),h(i)?(y(),D(P,{key:0,youtube:"","placeholder-image":t.video.placeholderImage,onVideoConsentGranted:l},null,8,["placeholder-image"])):v("",!0)])):v("",!0)]),t.copyright?(y(),D(p,{key:0,content:t.copyright,class:"video-with-consent-facade__copyright"},null,8,["content"])):v("",!0)])}}}),ao=Object.assign(V(Zt,[["__scopeId","data-v-21fca184"]]),{__name:"VideoWithConsentFacade"});export{ao as _};

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.