PageSourceSearch

https://oneworld-blackroll.vercel.app/_nuxt/Z14Upgsa.js

js oneworld-blackroll.vercel.app collected 2026-10-03 07:26:45 UTC 35,365 bytes, 2 lines download raw bytes

1import{f as te,aP as xe,aQ as Se,s as y,aS as ee,bo as Te,bp as Le,j as he,Q as j,bl as se,ap as P,o,c as i,x as a,n as d,b as T,d as _,t as g,a as f,w as L,M as ie,L as Ie,B as Pe,A as fe,aX as Be,as as me,N as ge,bq as De,br as be,v as W,aY as Me,ae as le,C as E,_ as w,r as I,aO as He,F as O,ab as U,aq as ve,e as z,G as Ve,ay as Ae,be as ne,ac as Oe,R as ye,U as ce,m as Ce,V as ze,K as ae,aG as _e,ar as Fe,bk as Ee,bs as ue,H as je,bt as Ze,P as de,p as Ne,aE as Re,bu as qe,y as We,bv as Ue}from"./goLDb2lV.js";import{v as Ke}from"./BMewPLiB.js";import{T as Xe,b as Ge,L as Qe,a as Ye,_ as Je,C as et}from"./OtOxaLKl.js";import{b as tt}from"./CzN7W8ie.js";import{C as st}from"./CUblJP9L.js";import{P as nt}from"./5P3pMwuI.js";import{u as at}from"./BCXA7t82.js";import{I as ot}from"./LFeCe1qz.js";import{u as we}from"./BAvOfIgb.js";import{S as rt}from"./9Fhjsomw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"fbb98ac15a660e865a4b25e3fe07bb23c4aa4acf"}}catch{}})();try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{}
1,e._sentryDebugIds[t]="e1591b82-5942-4c2c-9a5c-e738c224818d",e._sentryDebugIdIdentifier="sentry-dbid-e1591b82-5942-4c2c-9a5c-e738c224818d")}catch{}function it(e,t){const s=t/e*100;return 2/Math.PI*100*Math.atan(s/50)}function lt(e={}){const{duration:t=2e3,throttle:s=200,hideDelay:n=500,resetDelay:r=400}=e,c=e.estimatedProgress||it,p=te(),h=ee(0),m=ee(!1),b=ee(!1);let l=!1,u,B,K,H;const X=(C={})=>{N(),b.value=!1,Z(0,C)};function Z(C=0,k={}){if(p.isHydrating)return;if(C>=100)return D({force:k.force});V(),h.value=C<0?0:C;const S=k.force?0:s;S?B=setTimeout(()=>{m.value=!0,R()},S):(m.value=!0,R())}function F(){K=setTimeout(()=>{m.value=!1,H=setTimeout(()=>{h.value=0},r)},n)}function D(C={}){h.value=100,l=!0,V(),N(),C.error&&(b.value=!0),C.force?(h.value=0,m.value=!1):F()}function N(){clearTimeout(K),clearTimeout(H)}function V(){clearTimeout(B),cancelAnimationFrame(u)}function R(){l=!1;let C;function k(S){if(l)return;C??=S;const Y=S-C;h.value=Math.max(0,Math.min(100,c(t,Y))),u=requestAnimationFrame(k)}u=requestAnimationFrame(k)}let G=()=>{};{const C=p.hook("page:loading:start",()=>{X()}),k=p.hook("page:loading:end",()=>{D()}),S=p.hook("vue:error",()=>D());G=()=>{S(),C(),k(),V()}}return{_cleanup:G,progress:y(()=>h.value),isLoading:y(()=>m.value),error:y(()=>b.value),start:X,set:Z,finish:D,clear:V}}function ct(e={}){const t=te(),s=t._loadingIndicator||=lt(e);return xe()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,Se(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(s._cleanup(),delete t._loadingIndicator)})),s}const en=Te({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:s}){const{progress:n,isLoading:r,error:c,start:p,finish:h,clear:m}=ct({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return s({progress:n,isLoading:r,error:c,start:p,finish:h,clear:m}),()=>Le("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:r.value?1:0,background:c.value?e.errorColor:e.color||void 0,backgroundSize:`${n.value>0?100/n.value*100:0}% auto`,transform:`scaleX(${n.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),ut={class:"fluid-sm leading-tight bg-br-green-light text-black py-1 text-center"},dt={class:"font-medium"},pt={class:"flex items-center w-full py-2 px-4"},ht={class:"w-full max-w-[82px] sm:max-w-[112px] relative mt-2"},ft={class:"flex items-center justify-center w-full h-full bg-gray-200 text-gray-800 text-xs text-center p-1"},mt={key:0,class:"absolute bg-br-red fluid-xs py-px px-3 top-0 left-0 text-white font-bold whitespace-nowrap"},gt={class:"ml-2 w-full text-sm"},bt={class:"flex flex-no-wrap items-baseline justify-between w-full space-x-2"},vt={class:"leading-tightest w-full"},yt={key:1,class:"text-gray-light"},Ct={class:"text-right pr-2"},_t={key:1,class:"text-br-green text-xs font-medium uppercase"},wt={__name:"CartDealBundle",props:{deal:{type:Object,required:!0},title:{type:String,default:null},description:{type:String,default:null},image:{type:String,default:null},unitPrice:{type:Object,default:()=>({})},unitPriceMeasurement:{type:Object,default:()=>({})},handle:{type:String,default:null}},setup(e){const t=e,{$localeRootPath:s,$dlPush:n}=te(),{n:r}=he(),c=j(),p=se(),{lineItems:h}=P(c),{cartDealSettings:m}=P(p),b=E(!1),l=y(()=>t.deal),{bundleCompareAtPrice:u,productsList:B,updateVariant:K}=at(l,{cartLineItems:h}),H=B,X=y(()=>u.value?.amount||0),Z=y(()=>!t.deal?.offerProduct||!H.value?null:H.value.find(v=>v.id===t.deal.offerProduct.id)),F=y(()=>Z.value?.selected||null),D=y(()=>Z.value?.displayPrice||t.deal?.offerProduct?.variants?.[0]?.price||{amount:0,currencyCode:"EUR"}),N=y(()=>
1{if(!t.deal.discountValue)return!1;const v=A=>r(parseFloat(A),{style:"currency",currency:D.value.currencyCode});if(t.deal.discountType==="percentage")return`${t.deal.discountValue}%`;if(t.deal.discountType==="fixedAmount")return`${v(t.deal.discountValue)}`;if(t.deal.discountType==="fixedTargetPrice"){const A=Math.round((X.value-t.deal.discountValue)*100)/100;return v(A)}else return!1}),V=y(()=>t.handle?s(`/products/${t.handle}`):null),R=y(()=>t.deal?.offerProduct?.variants||[]),G=y(()=>R.value.length>1),C=y(()=>R.value.map(v=>({label:v.title,value:v.id,disabled:!v.available}))),k=y(()=>F.value?.image||t.image),S=v=>{t.deal?.offerProduct?.id&&K(t.deal.offerProduct.id,v)},Y=async()=>{const v=new Set(h.value.map(x=>x.variant.sku)),A=x=>H.value.find($=>$.id===x.id)?.selected||x.variants[0];let q=0;const oe=x=>x.map(A).filter($=>$&&!v.has($.sku)).map($=>({id:$.id,position:++q})),J=oe(t.deal.products),Q=t.deal.isBogo?oe(t.deal.discountProducts||[]):null;if(!(J.length===0&&(!Q||Q.length===0))){b.value=!0;try{await Me(t.deal.pickystory).addVariantsToCart(J,1,Q),await c.pickystoryRefreshCart();try{const $=new Set([...J,...Q||[]].map(M=>M.id)),re=H.value.filter(M=>$.has(M.selected.id)).map(M=>({variant:{...M.selected,price:{...M.selected.price,amount:M.exactDiscountedPrice}},product:M}));re.length>0&&n.eECaddToCart(re,1)}catch($){console.error("[CartDealBundle] GTM tracking failed",$),le($)}}catch(x){console.error("[CartDealBundle] addDealToCart failed",x),le(x)}finally{await c.refreshCheckout(),b.value=!1}}};return(v,A)=>{const q=Pe;return o(),i("div",{class:W(["w-full shadow-md",[d(m).useAlternativeStyle?"bg-putty":"bg-white"]])},[a("div",ut,[d(m).showIcon?(o(),T(d(Xe),{key:0,class:"w-3 h-3 inline-block mr-1 text-black"})):_("",!0),a("span",dt,g(v.$t("cart.cartDealsHeading")),1)]),a("div",pt,[a("div",ht,[f(q,{to:V.value},{default:L(()=>[k.value?(o(),T(d(ie),{key:0,ratio:2/3},{default:L(()=>[f(d(Ie),{src:k.value,alt:e.title,quality:90,crop:"fit",sizes:"20vw sm:10vw md:10vw lg:10vw xl:10vw 2xl:10vw"},null,8,["src","alt"])]),_:1})):(o(),T(d(ie),{key:1,ratio:2/3},{default:L(()=>[a("div",ft,g(v.$t("gallery.no-images")),1)]),_:1}))]),_:1},8,["to"]),N.value?(o(),i("div",mt," - "+g(N.value),1)):_("",!0)]),a("div",gt,[f(q,{to:V.value,class:"block font-medium overflow-hidden -mb-1"},{default:L(()=>[fe(g(e.title),1)]),_:1},8,["to"]),a("div",bt,[a("div",vt,[G.value?(o(),T(Be,{key:0,"model-value":F.value?.id,options:C.value,appearance:"light","show-errors":!1,"show-label":!1,"text-center":"","onUpdate:modelValue":S},null,8,["model-value","options"])):F.value?(o(),i("div",yt,g(F.value.title),1)):_("",!0)]),a("div",Ct,[D.value.amount>0?(o(),T(d(De),me(ge({key:0},{price:D.value,showVatHint:!1,showCentered:!1,showQuantity:!0,unitPrice:e.unitPrice,unitPriceMeasurement:e.unitPriceMeasurement,size:"xs"})),null,16)):(o(),i("span",_t,g(v.$t("common.forFree")),1))]),f(d(be),{class:"p-3 shrink-0 rounded-full min-w-0","data-testid":"smBtnAddToCart",loading:b.value,onClick:Y,title:v.$t("cart.addToCart")},{default:L(()=>[f(d(nt),{class:"h-4 w-4"})]),_:1},8,["loading","title"])])])])],2)}}},$t=z({components:{ArrowButton:tt,CardSlider:st,CartDealBundle:wt},props:{lineItems:{type:Array,default:()=>[]},deals:{type:Array,default:()=>[]}},data(){return{current:0,breakpoints:[{minWindowWidth:0,slidesToShow:1,slidesToScroll:1}]}},computed:{isFirst(){return this.current===0},isLast(){return this.current===this.deals.length-1}},methods:{prevSlide(){this.isFirst||(this.current--,this.$refs.slider.prev())},nextSlide(){this.isLast||(this.current++,this.$refs.slider.next())},changeSlide(e){this.current=e,this.$refs.slider.scrollToSlide(e)},gtmData(e){return{promotion_id:"cartdeal",promotion_name:`${Ve().name} / CartDeal`,creative_name:"CartDeal",creative_slot:`products-slug___de / 0 / ${e}`}}}},"$0xIL3UCRE-"),kt={class:"relative"},xt={key:0,class:"relative mt-3 flex justify-between items-center"},St={class:"w-8"},Tt={class:"mx-auto w-full flex justify-center space-x-1"},Lt=["onClick"],It={class:"w-8"};function Pt(e,t,s,n,r,c){const p=I("CartDealBundle"),h=I("CardSlider"),m=I("ArrowButton"),b=He("track");return o(),i("div",kt,[f(h,{ref:"slider",breakpoints:e.breakpoints,"show-arrows":!1,"fullwidth-slides":!0,"is-container":!1,"auto-height":"","fixed-width":0,"no-padding":"",class:"shadow-md overflow-x-hidden"},{default:L(()=>[(o(!0),i(O,null,U(e.deals,(l,u)=>ve((o(),i("div",{key:"deal-"+l.id},[f(p,ge({ref_for:!0},{image:l.offerProduct.images?.[0]?.src||"",title:l.offerProduct.title,handle:l.offerProduct.handle,description:l.offerProduct.productCardUsp,deal:l}),null,16)])),[[b,e.gtmData(u),"view"]])),128))]),_:1}
1,8,["breakpoints"]),e.deals.length>=2?(o(),i("div",xt,[a("div",St,[f(m,{direction:"left","arrow-disabled":e.isFirst,onClick:e.prevSlide},null,8,["arrow-disabled","onClick"])]),a("div",Tt,[(o(!0),i(O,null,U(e.deals,(l,u)=>(o(),i("button",{key:l.id,class:"h-1 bg-gray-200 w-full max-w-[46px] relative","data-test-id":"slide-button",onClick:B=>e.changeSlide(u)},[u===e.current?(o(),i("span",{key:0,class:W(["h-full block bg-black",{"w-full":u===e.current}])},null,2)):_("",!0)],8,Lt))),128))]),a("div",It,[f(m,{direction:"right","arrow-disabled":e.isLast,onClick:e.nextSlide},null,8,["arrow-disabled","onClick"])])])):_("",!0)])}const Bt=w($t,[["render",Pt]]),Dt=z({components:{CartProductSlider:Bt},setup(){const e=j(),{lineItems:t,hasDiscountApplied:s}=P(e);return{lineItems:t,hasDiscountApplied:s}},data(){return{deals:[]}},computed:{validDeals(){return this.deals.filter((e,t,s)=>s.findIndex(n=>n.id===e.id)===t).filter(e=>{const t=(e.discountProducts?[...e.products,...e.discountProducts]:e.products).filter((s,n,r)=>r.findIndex(c=>c.id===s.id)===n);return e.id&&t.length===2}).filter(e=>this.lineItems.some(t=>e.products.some(s=>s.variants.some(n=>n.sku===t.variant.sku)))).map(e=>{const t=e.discountProducts?[...e.products,...e.discountProducts]:e.products;return{...e,offerProduct:t.find(s=>this.lineItems.map(n=>n.variant.sku).filter(n=>s.variants.map(r=>r.sku).includes(n)).length===0)}}).filter(e=>e.offerProduct)}},async mounted(){const e=this.$pickystory.types.FBT_TYPE,t="xsell-pdp",s=2;this.$pickystory.isPickyStoryReady()?this.deals=(await Promise.all(this.lineItems.map(n=>this.$pickystory.findDeal(t,n.variant.product.handle,e,s)))).filter(n=>n!==null):ne.on("pickystory-ready",async()=>{this.deals=(await Promise.all(this.lineItems.map(n=>this.$pickystory.findDeal(t,n.variant.product.handle,e,s)))).filter(n=>n!==null)})}},"$R_YfHZ0w7I"),Mt={key:0,class:"py-4"};function Ht(e,t,s,n,r,c){const p=I("CartProductSlider");return!e.hasDiscountApplied&&e.validDeals.length>0?(o(),i("div",Mt,[f(p,me(Ae({lineItems:e.lineItems,deals:e.validDeals})),null,16)])):_("",!0)}const Vt=w(Dt,[["render",Ht]]),At=z({components:{InfoIcon:ot},setup(){const e=j(),t=se(),{lineItems:s}=P(e),{highDemandProducts:n,cartHighDemandMessage:r}=P(t);return{lineItems:s,highDemandProducts:n,cartHighDemandMessage:r}},computed:{showMessage(){return this.lineItems.some(e=>this.highDemandProducts.includes(e.variant.product.handle))}}},"$coVThG9pgV"),Ot={key:0,class:"bg-lighter-gray px-4 py-6 flex"},zt={class:"leading-4 fluid-xs"};function Ft(e,t,s,n,r,c){const p=I("InfoIcon");return e.cartHighDemandMessage&&e.showMessage?(o(),i("div",Ot,[f(p,{class:"inline-block h-4 shrink-0 leading-0 mr-3 mt-[3px]"}),a("div",zt,g(e.$t("cart.reservationNotAvailable")),1)])):_("",!0)}const Et=w(At,[["render",Ft]]),jt={class:"overflow-y-auto flex-1"},Zt={class:"gap-y-6 p-4 lg:px-6"},Nt={class:"shrink-0 py-4 px-4 lg:px-6 bg-white border-t border-gray-200"},Rt={__name:"Cart",setup(e){const t=j(),s=se(),n=Oe(),{cart:r,lineItems:c}=P(t),{shippingEntry:p}=P(s);return(h,m)=>d(r)&&d(r).id?(o(),i(O,{key:0},[d(c).length>0?(o(),i(O,{key:0},[a("div",jt,[f(d(Et)),f(d(Ge),{class:"p-4 lg:px-6"}),a("div",Zt,[(o(!0),i(O,null,U(d(c),(b,l)=>(o(),T(d(Qe),{key:b.id,"line-item":b,index:l,class:"mb-6"},null,8,["line-item","index"]))),128)),d(n).showCartXSellTeasers?(o(),T(d(Vt),{key:0})):_("",!0),f(d(Ye))])]),a("div",Nt,[f(d(Je))])],64)):(o(),T(d(et),{key:1}))],64)):_("",!0)}},qt={},Wt={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function Ut(e,t,s,n,r,c){return o(),i("svg",Wt,[...t[0]||(t[0]=[a("g",{fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M18 16.022L10.672 8.707 17.401 1.978 15.437 0 8.707 6.729 1.978 0 0 1.978 6.729 8.707 0 15.437 1.978 17.401 8.707 10.672 16.022 18z",transform:"translate(-1387.000000, -29.000000) translate(1387.000000, 29.000000)"})])],-1)])])}const $e=w(qt,[["render",Ut]]),Kt={key:0,class:"fixed inset-0 z-50"},Xt={class:"flex items-center justify-between shrink-0 w-full border-b h-header-bar-height-mobile lg:h-header-bar-height"},Gt={class:"px-4 lg:pl-6"},Qt={class:"font-medium leading-relaxed fluid-base"},Yt={class:"sr-only"},Jt={__name:"CartDrawer",setup(e,{expose:t}){const s=j(),{isOpen:n,cartCount:r}=P(s),c=y(()=>r.value>0?`(${r.value})`:null),p=()=>s.close(),h=E(null),{activate:m,deactivate:b}=we(h),l=u=>{u.key==="Escape"&&n.value&&p()};return ye(n,u=>{document.body.classList.toggle("overflow-hidden",u),u?ce(()=>{m()}):b()}),Ce(async()=>{await s.initCart(),n.value&&ce(()=>{m()}),window.addEventListener("keydown",l)}),ze(()=>{b()}),t({mixins:[Ke.mixin]}),(u,B)=>(o(),i("div",null,[f(_e,{name:"drawer-slide",appear:""},{default:L(()=>[d(n)?(o(),i("div",Kt,[a("div",{class:"absolute inset-0 backdrop",onClick:p}),a("div",{ref_key:"cartDrawer",ref:h,class:"cart-drawer md:max-w-[500px] lg:w-1/2 absolute top-0 bottom-0 right-0 flex flex-col h-full bg-white"},[a("div",Xt,[a("div",Gt,[a("h2",Qt,g(u.$t("cart.title"))+" "+g(d(c)),1)]),a("button",{type:"button",ref:"closeButton",class:"flex items-center justify-center h-full px-4 transition-all text-blackly lg:px-6",onClick:ae(p,["prevent"])},[a("span",Yt,g(u.$t("cart.closeDrawer")),1),f(d($e),{class:"w-4 h-4"})],512)]),f(d(Rt))],512)])):_("",!0)]),_:1})]))}},tn=w(Jt,[["__scopeId","data-v-c94a240c"]]),es={}
1,ts={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function ss(e,t){return o(),i("svg",ts,[...t[0]||(t[0]=[a("path",{d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"},null,-1)])])}const ns=w(es,[["render",ss]]);function pe(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{localeBar:{chooseCountry:{t:0,b:{t:2,i:[{t:3}],s:"<p>We believe you are in <b>Europe</b>.<br>If you are in a different location, select it to shop in the right online store & see content relevant to your location</p>"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Save"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Choose your location"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Close country selection dialog"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Loading location options..."}}}},de:{localeBar:{chooseCountry:{t:0,b:{t:2,i:[{t:3}],s:"<p>Wir glauben, dass du in <b>Deutschland</b> bist.<br>Falls du an einem anderen Standort befindest, wähle diesen aus, um im richtigen Online-Shop einzukaufen & für deinen Standort relevante Inhalte zu sehen.</p>"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Speichern"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Wähle deinen Standort"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Dialog zur Länderauswahl schließen"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Standortoptionen werden geladen..."}}}},fr:{localeBar:{chooseCountry:{t:0,b:{t:2,i:[{t:3}],s:"<p>Vous semblez être en <b>France</b>
1.<br>Si ce n'est pas le cas, sélectionnez votre pays pour accéder à la boutique et au contenu adaptés.</p>"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Sauvegarder"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Choisissez votre emplacement"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Fermer la boîte de dialogue de sélection du pays"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Chargement des options de localisation..."}}}},nl:{localeBar:{chooseCountry:{t:0,b:{t:2,i:[{t:3}],s:"<p>We denken dat je in <b>Nederland</b> bent.<br>Als je je op een andere locatie bevindt, selecteer deze dan om in de juiste online winkel te winkelen & inhoud te zien die relevant is voor jouw locatie.</p>"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Opslaan"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Kies je locatie"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Dialoogvenster voor landenselectie sluiten"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Locatieopties laden..."}}}},"ch-fr":{localeBar:{chooseCountry:{t:0,b:{t:2,i:[{t:3}],s:"<p>Vous semblez être en <b>Suisse</b>.<br>Si ce n'est pas le cas, sélectionnez votre pays pour accéder à la boutique et au contenu adaptés.</p>"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Sauvegarder"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Choisissez votre emplacement"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Fermer la boîte de dialogue de sélection du pays"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Chargement des options de localisation..."}}}},"ch-de":{localeBar:{chooseCountry:{t:0,b:{t:2,i:[{t:3}],s:"<p>Wir glauben, dass du in der <b>Schweiz</b> bist.<br>Falls du an einem anderen Standort befindest, wähle diesen aus, um im richtigen Online-Shop einzukaufen & für deinen Standort relevante Inhalte zu sehen.</p>"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Speichern"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Wähle deinen Standort"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Dialog zur Länderauswahl schließen"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Standortoptionen werden geladen..."}}}}}})}const ke=z({components:{CtaButton:be,IconClose:$e,LocationIcon:ns,SpinnerLarge:rt},data(){return{isOpen:!1,isLoading:!1,isInitialized:!1,alternates:{},iso:"ch-de",regions:[{name:null,description:"localeBar.chooseCountry",stores:[{code:"ch-de",lang:"Deutsch",country:"Schweiz"},{code:"ch-fr",lang:"Français",country:"Suisse"}]}]}},setup(){const{t:e,locale:t}=he({useScope:"local"}),s=E(null),n=Ne(),r=Re(),{activate:c,deactivate:p}=we(s),h=qe();return{t:e,locale:t,route:n,countryBarContainer:s,activateFocusTrap:c,deactivateFocusTrap:p,focusTrapManager:h,mainNavStore:r}},computed:{availableLanguages(){return this.regions.flatMap(e=>e.stores.map(t=>t.code))},fallbackPath(){return`/${this.iso}/`}},watch:{isOpen(e){e?(window&&window.hideOneTrustBanner&&window.hideOneTrustBanner(),this.$nextTick(()=>{this.focusTrapManager?(this.focusTrapManager.register("countryBar",{activate:this.activateFocusTrap,deactivate:this.deactivateFocusTrap},50),this.focusTrapManager.activate("countryBar")):this.activateFocusTrap()})):(window&&window.showOneTrustBanner&&window.showOneTrustBanner(),this.focusTrapManager?(this.focusTrapManager.deactivate("countryBar"),this.focusTrapManager.unregister("countryBar")):this.deactivateFocusTrap())}},async mounted(){try{this.initAlternates();const e=window.localStorage.getItem("preferredIso");if(e&&this.availableLanguages.includes(e))this.iso=e;else if(!(this._.provides[de]||this.$route).path.includes("/account/"))if(this.shouldAutoSelectCountry()){const s=this.extractLocaleFromPath((this._.provides[de]||this.$route).path);this.iso=s,this.locale=s,ue(s),window.localStorage.setItem("preferredIso",s)}else this.isOpen=!0,await this.fetchCountryIso()}catch{this.iso=this.locale}finally{this.isInitialized=!0}document.addEventListener("keydown",this.handleEscKey),ne.on("openCountryBar",()=>{this.isLoading=!1,this.isOpen=!0,this.initAlternates()})},beforeUnmount(){document.removeEventListener("keydown",this.handleEscKey)},methods:{handleEscKey(e){e.key==="Escape"&&this.isOpen&&this.close()},shouldAutoSelectCountry(){return!!Ze()},extractLocaleFromPath(e){const t=e.split("/").filter(s=>s.length>0);if(t.length>0){const s=t[0];if(this.availableLanguages.includes(s))return s}return"ch-de"},initAlternates(){if(this.route.name?.startsWith("account")){let e=je(this.route.path);e.startsWith("/")&&(e=e.substring(1)),this.alternates={"ch-de":"/ch-de/"+e,"ch-fr":"/ch-fr/"+e}}else this.alternates=this.mainNavStore.alternates},selectCountry(e,t=!1){t&&this.iso===e&&this.close(),this.iso=e,this.locale=e},async fetchCountryIso(){try{return await $fetch("/api/country",{transformRequest:(e,t)=>
1(delete t.Authorization,delete t.common.Authorization,e)}).then(e=>e?.iso?.toLowerCase()).then(e=>e==="ch"?"ch-de":e).then(e=>{if(!this.availableLanguages.includes(e))throw new Error("Language not available");this.isOpen=!0,this.iso=e,this.locale=this.iso})}catch{return this.isOpen=!0,null}},close(){if(ue(this.iso),window.localStorage.setItem("preferredIso",this.iso),typeof window<"u"&&window.OneTrust&&(document.cookie="OptanonAlertBoxClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",window.reloadOTBanner&&window.reloadOTBanner()),this.$i18n.locale===this.iso){this.isOpen=!1,this.focusTrapManager&&this.focusTrapManager.isOneTrustBannerVisible()&&setTimeout(()=>{this.focusTrapManager.activate("oneTrust")},100);return}this.isLoading=!0;const e=window.location.search,t=this.alternates[this.iso]?this.alternates[this.iso]:this.fallbackPath;window.location=t+e}}},"$WXyimau-kN"),as={class:"fixed inset-0 z-50 flex items-center justify-center px-3 bg-blackly/50 backdrop-blur-xs"},os=["aria-busy"],rs={class:"sr-only"},is={class:"px-6 pt-8 pb-16 overflow-y-auto"},ls={id:"country-bar-title",class:"mb-4 font-semibold fluid-2xl leading-tightest text-blackly"},cs={key:0,class:"flex justify-center items-center py-32 lg:py-48","aria-live":"polite"},us={class:"sr-only"},ds={key:0,class:"text-3xl font-base mt-5 mb-2"},ps=["innerHTML"],hs={class:"grid sm:grid-cols-3 gap-2"},fs=["onClick","onKeypress","aria-pressed"],ms={class:"text-lg font-bold"},gs={key:0,class:"text-xs"},bs={type:"submit",class:"hidden"},vs={class:"absolute bottom-0 inset-x-0 bg-white/90 backdrop-blur-xs flex px-6 py-3"};function ys(e,t,s,n,r,c){const p=I("IconClose"),h=I("SpinnerLarge"),m=I("LocationIcon"),b=I("CtaButton");return ve((o(),i("div",as,[a("div",{ref:"countryBarContainer",class:"bg-white relative max-w-2xl w-full max-h-[90vh] flex flex-col overflow-hidden","data-testid":"countryBar",role:"dialog","aria-modal":"true","aria-labelledby":"country-bar-title","aria-busy":!e.isInitialized,tabindex:"-1"},[e.isLoading?_("",!0):(o(),i("button",{key:0,ref:"closeButton","data-testid":"btn-country-bar-close",class:"hover:opacity-80 absolute top-0 right-0 flex items-center justify-center p-4 text-blackly ring-inset",onClick:t[0]||(t[0]=(...l)=>e.close&&e.close(...l))},[f(p,{class:"w-4"}),a("span",rs,g(e.t("localeBar.close")),1)],512)),a("div",is,[a("h2",ls,g(e.t("localeBar.title")),1),e.isInitialized?(o(),i("form",{key:1,id:"countrySelect",onSubmit:t[1]||(t[1]=ae((...l)=>e.close&&e.close(...l),["prevent"])),"aria-live":"polite"},[(o(!0),i(O,null,U(e.regions,l=>(o(),i("div",{key:l.name,class:"mb-5"},[l.name?(o(),i("div",ds,g(l.name),1)):_("",!0),a("div",{class:"text-copy sm:mr-0 text-blackly mb-4",innerHTML:e.t(l.description)},null,8,ps),a("div",hs,[(o(!0),i(O,null,U(l.stores,u=>(o(),i("button",{key:u.code,type:"button",onClick:B=>e.selectCountry(u.code),onKeypress:Ee(B=>e.selectCountry(u.code,!0),["enter"]),class:W(["flex items-center py-1 px-3 cursor-pointer border-2 border-transparent transition-colors text-left",e.iso===u.code?"bg-br-green-light ring-3 ring-black":"","focus-visible:outline focus-visible:outline-2 focus-visible:outline-br-green"]),"aria-pressed":e.iso===u.code?"true":"false"},[f(m,{class:W(["w-5 h-6 mr-2 text-blackly",{"text-br-green":e.iso===u.code}])},null,8,["class"]),a("div",null,[a("div",ms,g(u.country),1),u.description?(o(),i("div",gs,g(u.description),1)):_("",!0),a("div",null,g(u.lang),1)])],42,fs))),128))])]))),128)),a("button",bs,g(e.t("localeBar.save")),1)],32)):(o(),i("div",cs,[f(h,{class:"w-20"}),a("span",us,g(e.t("localeBar.loading")),1)]))]),a("div",vs,[f(b,{ref:"saveButton",type:"button",color:"outline",loading:e.isLoading,onClick:e.close},{default:L(()=>[fe(g(e.t("localeBar.save")),1)]),_:1},8,["loading","onClick"])])],8,os)],512)),[[Fe,e.isOpen]])}typeof pe=="function"&&pe(ke);const sn=w(ke,[["render",ys]]),Cs=z({computed:{currentLocale(){const{locale:e}=this.$i18n;return e==="ch-fr"||e==="ch-de"?"ch":e==="en"?"eu":e}},methods:{openCountryBar(){ne.emit("openCountryBar")}}},"$torRamI3l7"),_s=["aria-label","title"],ws=["src","alt"];function $s(e,t,s,n,r,c){return o(),i("button",{class:"flex items-center justify-center w-8 px-1 h-full overflow-hidden shrink-0 ring-inset","aria-label":e.$i18n.locale,type:"button",onClick:t[0]||(t[0]=(...p)=>e.openCountryBar&&e.openCountryBar(...p)),title:e.$t("localeBar.title")},[a("img",{class:"inline-block w-auto h-full",src:`/flags/${e.currentLocale}.svg`,alt:e.currentLocale},null,8,ws)],8,_s)}const nn=w(Cs,[["render",$s]]),ks={}
1,xs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",class:"fill-current",xmlns:"http://www.w3.org/2000/svg"};function Ss(e,t,s,n,r,c){return o(),i("svg",xs,[...t[0]||(t[0]=[a("path",{d:"M17.48 15.24C16.094 15.24 14.96 16.374 14.96 17.76C14.96 19.146 16.094 20.28 17.48 20.28C18.866 20.28 20 19.146 20 17.76C20 16.374 18.866 15.24 17.48 15.24ZM17.48 18.768C16.9256 18.768 16.472 18.3144 16.472 17.76C16.472 17.2056 16.9256 16.752 17.48 16.752C18.0344 16.752 18.488 17.2056 18.488 17.76C18.488 18.3144 18.0344 18.768 17.48 18.768Z"},null,-1),a("path",{d:"M21.3002 6.47242C21.1547 6.30819 20.9607 6.19088 20.7183 6.19088H6.4856L5.83094 3.53963C5.7582 3.21116 5.46724 3 5.12779 3H2.72739C2.3152 3 2 3.30501 2 3.70387C2 4.10273 2.3152 4.40774 2.72739 4.40774H4.54588L6.92203 13.9804C6.99477 14.3088 7.28573 14.52 7.62518 14.52H18.9483C19.2877 14.52 19.5787 14.3088 19.6514 13.9804L21.4214 7.05898C21.4699 6.84782 21.4214 6.63666 21.3002 6.47242ZM18.3906 13.1123H8.20709L6.84929 7.59862H19.7969L18.3906 13.1123Z"},null,-1),a("path",{d:"M8.83982 15.24C7.45382 15.24 6.31982 16.374 6.31982 17.76C6.31982 19.146 7.45382 20.28 8.83982 20.28C10.2258 20.28 11.3598 19.146 11.3598 17.76C11.3598 16.374 10.2258 15.24 8.83982 15.24ZM8.83982 18.768C8.28542 18.768 7.83182 18.3144 7.83182 17.76C7.83182 17.2056 8.28542 16.752 8.83982 16.752C9.39422 16.752 9.84782 17.2056 9.84782 17.76C9.84782 18.3144 9.39422 18.768 8.83982 18.768Z"},null,-1)])])}const Ts=w(ks,[["render",Ss]]),Ls={class:"relative h-full ml-1 mr-1 lg:mr-4"},Is=["title"],Ps={class:"relative h-6"},Bs={key:0,class:"bg-br-green min-w-[1.25rem] p-1 scale-75 color absolute flex items-center justify-center h-4 fluid-xs leading-tightest font-medium -top-1.5 -right-1.5"},Ds={class:"text-white"},an={__name:"CartButton",setup(e){const t=j(),{lineItems:s,cartCount:n}=P(t),r=()=>{t.open()};return(c,p)=>(o(),i("div",Ls,[a("button",{class:"flex items-center justify-center h-full text-black no-underline transition-all",id:"btn-cart","data-testid":"btn-cart",onClick:ae(r,["prevent"]),title:c.$t("cart.title")},[a("div",Ps,[f(d(Ts)),d(n)?(o(),i("div",Bs,[a("span",Ds,g(d(n)),1)])):_("",!0)])],8,Is)]))}},Ms={},Hs={viewBox:"0 0 2811 397",fill:"black",class:"w-full",xmlns:"http://www.w3.org/2000/svg"};function Vs(e,t,s,n,r,c){return o(),i("svg",Hs,[...t[0]||(t[0]=[We('<title>Blackroll Logo</title><path d="M285.32 269.35C285.51 272.45 285.62 275.56 285.62 278.67C285.62 313.09 271.537 339.93 243.37 359.19C218.49 376.19 187.823 384.69 151.37 384.69H0V8.79999H154.16C181.313 8.79999 204.103 18.5433 222.53 38.03C240.957 57.5167 250.18 80.83 250.2 107.97C250.2 140.33 236.417 166.033 208.85 185.08C256.51 197.313 282 225.403 285.32 269.35ZM122.09 85.66H96.25V158.32H122.4C132.353 158.32 141.12 154.547 148.7 147C156.28 139.453 160.063 130.807 160.05 121.06C160.05 110.5 156.42 101.96 149.16 95.44C141.9 88.92 132.877 85.66 122.09 85.66ZM186.48 264.73C183.813 241.983 167.753 230.61 138.3 230.61H97.3V311.27H144.55C156.363 311.27 166.363 307.803 174.55 300.87C182.737 293.937 186.827 284.167 186.82 271.56C186.82 269.28 186.72 267.01 186.52 264.73"></path><path d="M523.3 384.68H310.71V8.78999H408.48V302.5H523.3V384.68Z"></path><path d="M932.93 384.68H830.05L804.88 319.68H672.84L646.73 384.68H544.11L686.78 8.78999H793.69L932.93 384.68ZM779.7 245.82L739.93 127.65L699.51 245.82H779.7ZM1194.12 134.19C1173.19 106.49 1145.21 92.8467 1110.18 93.26C1082.85 93.68 1059.43 103.57 1039.92 122.93C1020.41 142.29 1010.26 165.623 1009.45 192.93C1008.62 221.937 1018.21 247.417 1038.2 269.37C1058.19 291.323 1082.19 301.257 1110.2 299.17C1147.09 296.277 1174.76 283.23 1193.2 260.03V375.84C1166.25 388.073 1139.83 394.197 1113.94 394.21C1105.87 394.21 1096.84 393.79 1086.94 392.97C1034.72 388.183 991.363 366.16 956.87 326.9C922.377 287.64 906.043 241.79 907.87 189.35C909.73 135.47 930.973 90.19 971.6 53.51C1012.23 16.83 1059.97 -0.99 1114.84 0.0500002C1142.19 0.461723 1169.17 6.48617 1194.1 17.75L1194.12 134.19Z"></path><path d="M1566.06 384.68H1440.2L1316.81 221.52V384.68H1221.7V8.78999H1316.81V164.95L1434.14 8.78999H1554.59L1407.25 187.88L1566.06 384.68Z"></path><path d="M1895.91 384.68H1775.64L1683.34 240.17V384.68H1587.34V8.78998H1724.48C1762.67 8.78998 1793.36 17.0867 1816.55 33.68C1843.51 52.7533 1858.54 82.0867 1861.64 121.68C1861.74 124.99 1861.8 128.22 1861.8 131.32C1861.8 156.2 1854.23 177.533 1839.08 195.32C1824.79 211.9 1805.22 224.023 1780.35 231.69L1895.91 384.68ZM1762.67 131.68C1762.67 119.24 1758.22 108.403 1749.33 99.17C1740.44 89.9366 1730.1 85.32 1718.33 85.32H1685.1V176.43H1721.44C1732.65 175.501 1743.09 170.333 1750.63 161.98C1758.51 153.85 1762.85 142.938 1762.72 131.62"></path><path d="M2525.61 384.68H2313V8.78999H2410.77V302.5H2525.61V384.68ZM2765.28 384.68H2552.67V8.78999H2650.45V302.5H2765.28V384.68Z"></path><path d="M2228.11 59.22C2188.94 20.78 2140.54 1.56 2082.93 1.56C2028.23 1.56 1981.18 19.8933 1941.78 56.56C1900.95 94.4867 1880.53 141.62 1880.52 197.96C1880.52 255.153 1901.77 303.117 1944.27 341.85C1984.45 378.517 2030.98 396.85 2083.86 396.85C2138.99 396.85 2186.61 377.517 2226.7 338.85C2266.79 300.183 2286.84 253.64 2286.84 199.22C2286.84 144.32 2267.26 97.6533 2228.09 59.22H2228.11ZM2134.53 248.97C2120.24 262.75 2103.27 269.64 2083.61 269.64C2064.75 269.64 2048.16 263.103 2033.85 250.03C2018.7 236.217 2011.13 219.117 2011.12 198.73C2011.12 178.643 2018.4 161.843 2032.96 148.33C2047 135.25 2063.77 128.71 2083.28 128.71C2103.81 128.71 2121.05 135.56 2135.02 149.26C2148.99 162.96 2155.99 179.6 2156.02 199.18C2156.02 218.593 2148.87 235.19 2134.58 248.97H2134.53ZM2797.63 22.31C2801.73 26.4316 2804.96 31.3247 2807.16 36.7059C2809.35 42.0871 2810.45 47.8497 2810.4 53.66C2810.49 59.4657 2809.39 65.2283 2807.18 70.595C2804.96 75.9616 2801.67 80.8192 2797.51 84.87C2789.13 93.2622 2777.78 98.0214 2765.92 98.12C2754.18 97.9947 2742.95 93.2668 2734.66 84.9529C2726.37 76.6389 2721.67 65.4028 2721.57 53.66C2721.59 47.7504 2722.78 41.9036 2725.08 36.4586C2727.38 31.0136 2730.73 26.0787 2734.95 21.94C2738.99 17.8309 2743.82 14.5819 2749.14 12.3889C2754.47 10.196 2760.19 9.1044 2765.95 9.17999C2771.84 9.13808 2777.69 10.2785 2783.13 12.5337C2788.58 14.7889 2793.52 18.1132 2797.66 22.31H2797.63ZM2793.95 26.03C2790.29 22.3297 2785.93 19.4028 2781.12 17.4237C2776.31 15.4446 2771.15 14.4537 2765.95 14.51C2760.89 14.4331 2755.86 15.3814 2751.18 17.2976C2746.49 19.2138 2742.25 22.0584 2738.69 25.66C2734.97 29.3151 2732.02 33.6726 2730 38.4795C2727.98 43.2863 2726.94 48.4464 2726.93 53.66C2726.95 58.7765 2727.98 63.8388 2729.96 68.5574C2731.94 73.276 2734.83 77.5585 2738.46 81.16C2742.02 84.8131 2746.28 87.7142 2750.98 89.6913C2755.69 91.6684 2760.74 92.6813 2765.84 92.67C2771.04 92.6913 2776.18 91.6853 2780.99 89.71C2785.79 87.7347 2790.16 84.829 2793.84 81.16C2797.47 77.6147 2800.35 73.3736 2802.31 68.6898C2804.27 64.0061 2805.26 58.976 2805.23 53.9C2805.29 48.7399 2804.32 43.6195 2802.39 38.8354C2800.45 34.0514 2797.59 29.6988 2793.96 26.03H2793.95ZM2788.38 41.51C2788.38 48.57 2783.92 53.78 2776.48 55.02L2787.84 78.3H2778.3L2767.65 56.3H2756.84V78.3H2748.29V27.52H2767.12C2781.24 27.52 2788.3 31.97 2788.3 41.52L2788.38 41.51ZM2756.84 33.09V50.69H2765.84C2775.24 50.69 2779.59 48.57 2779.59 42.13C2779.59 35.69 2775.12 33.13 2765.59 33.13L2756.84 33.09Z"></path>',8)])])}const on=w(Ms,[["render",Vs]]),As=z({computed:{isCachingProxy(){return this.$config.public.cmsHttpEndpoint==="http://bl-oneworld-craft.test/graphql"}}},"$ARiC-jgKdA");function Os(e,t,s,n,r,c){return null}const rn=w(As,[["render",Os]]),zs=z({props:{toast:{type:Object,required:!0}},computed:{colorization(){switch(this.toast.type?this.toast.type:"default"){case"success":return"text-white bg-br-green";case"error":return"text-white bg-br-red";default:return"text-white bg-black"}}}},"$mdrZ-mXt4H");function Fs(e,t,s,n,r,c){return o(),i("div",{class:W(["fluid-sm leading-tight relative block max-w-lg px-6 py-2 mx-6 my-2 font-medium text-center cursor-pointer",[e.colorization]]),onClick:t[0]||(t[0]=p=>e.$emit("close"))},g(e.toast.message),3)}const Es=w(zs,[["render",Fs]]),js={id:"toast-container",class:"absolute inset-x-0 z-20"},Zs={class:"flex justify-center"},Ns=8e3,ln={__name:"ToastContainer",setup(e){const t=Ue(),s=E(4),n=E(!1),r=E(null),c=y(()=>t.currentToast);ye(c,l=>{n.value&&l!==!1&&m()}),Ce(()=>{document.querySelector("[data-hid=Ot-Sdk]")?p():h()});function p(){setTimeout(()=>{const l=document.querySelector("#onetrust-banner-sdk");l&&l.style.display===""&&window.OneTrust?window.OneTrust.OnConsentChanged(()=>{h()}):s.value>0?(s.value--,p()):h()},600)}function h(){setTimeout(()=>{n.value=!0,c.value&&!r.value&&m()},300)}function m(){r.value=setTimeout(()=>{b()},Ns)}function b(){r.value&&(clearTimeout(r.value),r.value=null),t.shift()}return(l,u)=>(o(),i("div",js,[a("div",Zs,[f(_e,{"enter-active-class":"transition duration-200 ease-out transform","enter-from-class":"-translate-y-2 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:L(()=>[d(n)&&d(c)?(o(),T(d(Es),{key:0,toast:d(c),onClose:b},null,8,["toast"])):_("",!0)]),_:1})])]))}};export{tn as C,$e as I,on as L,nn as R,rn as S,an as _,en as a,ln as b,sn as c};
2//# sourceMappingURL=Z14Upgsa.js.map

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.