import{_ as I}from"./DOk-PDU-.js";import{t as S}from"./D02Qc_ax.js";import{m as B}from"./R7qvs4p8.js";import{d as D,A as r,p as _,E,O as R,q as T,f as n,o as g,c as v,a as u,t as A,bc as N,b as h,g as w}from"./bdrFovXZ.js";import{_ as z}from"./zVBjPGXx.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:"dcd43fef1e4af7f7614a43abf36301348c5fce67"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="13f75aae-1c15-41a1-9bf3-e619dcb40ea0",e._sentryDebugIdIdentifier="sentry-dbid-13f75aae-1c15-41a1-9bf3-e619dcb40ea0")})()}catch{}const C={key:0,class:"mt-4 rounded-sm bg-bt-blue-dark px-4 text-white text-body-3 sm:text-subtitle-1 md:mt-6"},M={class:"group w-full overflow-hidden py-4"},V={key:0,class:"marquee-sequence flex w-max gap-[33vw] pl-[33vw]","aria-hidden":"true"},O=D({__name:"ScrollingBanner",props:{blok:{}},setup(e){const a=e,l=r(()=>(a.blok.body??[]).flatMap(t=>{var o,b,y;if(typeof t=="string")return[];const i=t;return(b=(o=i.content)==null?void 0:o.items)!=null&&b.length?i.content.items.map(d=>({type:"content",iconProps:S(d.icon),html:B(d.text)})):(((y=i.content)==null?void 0:y.body)??[]).map(d=>({type:"legacy",content:d}))})),k=r(()=>l.value.length>0),c=_(null),f=_(0),x=r(()=>({"--marquee-distance":`${f.value}px`,"--marquee-duration":"60s"})),m=r(()=>l.value.length>0),q=r(()=>f.value>0&&m.value);let s=null;const p=()=>{var t;f.value=((t=c.value)==null?void 0:t.scrollWidth)??0};return E(()=>{R(p),c.value&&typeof ResizeObserver<"u"&&(s=new ResizeObserver(p),s.observe(c.value))}),T(()=>{s==null||s.disconnect()}),(t,i)=>{const o=I;return t.blok.enabled&&n(k)?(g(),v("div",C,[u("div",M,[u("div",{class:A(["marquee-track flex w-max will-change-transform group-hover:[animation-play-state:paused]",{"marquee-track--active":n(q)}]),style:N(n(x))},[u("div",{ref_key:"firstSequenceRef",ref:c,class:"marquee-sequence flex w-max gap-[33vw] pl-[33vw]"},[h(o,{"banner-items":n(l),"key-number":"1"},null,8,["banner-items"])],512),n(m)?(g(),v("div",V,[h(o,{"banner-items":n(l),"key-number":"2"},null,8,["banner-items"])])):w("",!0)],6)])])):w("",!0)}}}),Y=z(O,[["__scopeId","data-v-c9af9efd"]]);export{Y as default}; //# sourceMappingURL=Dh43rWtW.js.map

AltStyle によって変換されたページ (->オリジナル) /