1import{_ as V,L as Q,c as U,B as H}from"./entry-e51149c4-179092878.js";import{W as D,Q as J,U as j,w as C,n as B,a as G,b as K,ab as m,ay as S,aB as k,B as s,ac as $,ag as X,aD as Y,av as d,aE as I,az as Z,aA as tt,ah as et,M as st,r as v,e as h,T as L,N as at}from"./vendor-nuxt-5c6ad524-179092878.js";import{S as nt,A as rt,a as ot}from"./vendor-swiper-4760a62b-179092878.js";const it=["aria-label"],lt={class:"partnership-quick-link__track"},ut=["aria-label","onClick"],ct=["src","alt"],pt={__name:"MerchantPartnershipQuickLink",setup(_t){const{locale:b}=D(),{$resolveUrl:N,$safeJsonParse:q}=at(),y=st(),f=Q(),F=J(),w=j(),g=v(!0),r=v(!1),l=v(220);let a=null,u=null;const c=`${y.public.STATIC_ROOT}img/partnership_default.png?v=${y.public.VERSION}`,M=h(()=>F.path===w("/")),W=h(()=>{var t;return f.ready&&Number((t=f.settings)==null?void 0:t.d_floating_icon)===1}),p=h(()=>(f.items||[]).filter(t=>t.url&&Number(t.floating_icon_status)===1)),x=h(()=>W.value&&p.value.length>0&&(g.value||r.value)),n=()=>{const t=document.querySelector(".quickLaunchBox-v2");if(!t){l.value=220;return}const e=parseFloat(window.getComputedStyle(t).bottom);if(Number.isFinite(e)){l.value=Math.max(0,Math.round(e));return}const o=window.innerHeight-t.getBoundingClientRect().bottom;Number.isFinite(o)&&(l.value=Math.max(0,Math.round(o)))};C(M,t=>{a&&(clearTimeout(a),a=null),t&&(r.value=!1,g.value=!0,B(()=>{n(),u=setTimeout(n,300)}))}),C(x,t=>{t&&B(()=>{n(),u=setTimeout(n,300)})}),G(()=>{n(),window.addEventListener("resize",n)});const z=()=>{r.value||(r.value=!0,g.value=!1,a=setTimeout(()=>{r.value=!1,a=null},1e3))};K(()=>{a&&clearTimeout(a),u&&clearTimeout(u),window.removeEventListener("resize",n)});const E=t=>{let e=t==null?void 0:t.floating_img_url;return e?((e.startsWith("{m}http://")||e.startsWith("{m}https://"))&&(e=e.replace(/^\{m\}/,"")),/^https?:\/\//i.test(e)?e:N(e)||c):c},P=t=>{t!=null&&t.target&&t.target.src!==c&&(t.target.src=c)},T=t=>{var _;const e=q(t.title);if(!e)return"partnership";const o=((_=b.value)==null?void 0:_.split("-")[0])||"en";return e[b.value]||e[o]||e.en||"partnership"},R=t=>{if(!t)return"";const e=String(t).trim();return e?e.startsWith("/")||/^https?:\/\//i.test(e)?e:e.startsWith("//")?`https:${e}`:`https://${e}`:""},A=t=>{const e=R(t==null?void 0:t.url);if(e){if(e.startsWith("/")){L(w(e));return}L(e,{external:!0})}};return(t,e)=>{const o=U,_=H;return m(),S(_,null,{default:k(()=>[s(x)?(m(),$("div",{key:0,class:X(["partnership-quick-link",{closed:s(r)}]),style:Y({bottom:`${s(l)}px`})},[d("button",{type:"button",class:"partnership-quick-link__close","aria-label":t.$t("close"),onClick:z},[I(o,{iconClass:"icon-close text-xs"})],8,it),d("div",lt,[I(s(nt),{modules:[s(rt)],"slides-per-view":1,loop:s(p).length>1,autoplay:s(p).length>1?{delay:2500,disableOnInteraction:!1}:!1,speed:800,"grab-cursor":!0,class:"partnership-quick-link__swiper"},{default:k(()=>[(m(!0),$(Z,null,tt(s(p),(i,O)=>(m(),S(s(ot),{key:`${i.url}-${O}`},{default:k(()=>[d("button",{type:"button",class:"partnership-quick-link__item","aria-label":T(i),onClick:mt=>A(i)},[d("img",{class:"partnership-quick-link__img",src:E(i),alt:T(i),loading:"lazy",onError:P},null,40,ct)],8,ut)]),_:2},1024))),128))]),_:1},8,["modules","loop","autoplay"])])],6)):et("",!0)]),_:1})}}},gt=V(pt,[["__scopeId","data-v-4ad362f5"]]);export{gt as _}; 2//# sourceMappingURL=MerchantPartnershipQuickLink-7eee01db-179092878.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.