1import{_ as N}from"./AAEZgqp_.js";import{a as A}from"./UzqiWE2U.js";import{e as $}from"./BKNqxMQk.js";import{u as w}from"./JTk_eR1B.js";import{H as B,o,c as s,a as p,b as S,g as _,z as k,ao as z,C as x,w as T,F as q,f as i,A as F,r as m,y as O}from"./_HPkvqzU.js";import"./DlAUqK2U.js";import"./D7niZuFR.js";const U=["id","data-block","aria-labelledby"],j={class:"container"},D={key:0,class:"leasing-partners__tab-content p-20 p-md-40 p-x-lg-60 p-x-xl-100 nm-t-20 nm-t-lg-10"},E={class:"row gutter-40 align-items-center m-x-0"},H=["href"],I=["src","alt"],J=["src","alt"],G={key:0,class:"f-align-center"},K=B({name:"polaris-leasing-partners",__name:"PolarisLeasingPartners",props:{id:{},blockName:{},title:{},preTitle:{},tabs:{},mobile:{},tablet:{},desktop:{}},setup(e){const{decode:g}=w(),v=e,f=m("0"),l=m(!1),c=m(8),b=m(8),C=O(()=>Array.isArray(v.tabs)?v.tabs.map(({tabTitle:a,tabIcon:r},u)=>({label:a,icon:r,index:u,id:String(u)})):[]);function h(a){l.value?c.value=a:c.value=b.value}function d(a){return a.logo.sizes?.medium?.toString()||""}function y(a){return a.logo.alt||a.logo.title||""}return(a,r)=>{const u=N,L=A,V=$;return o(),s("section",{id:e.id,"data-block":e.blockName,class:F(["leasing-partners p-y-40 p-y-md-80",{"polaris-component__mobile-hidden":e.mobile==="hidden","polaris-component__tablet-hidden":e.tablet==="hidden","polaris-component__desktop-hidden":e.desktop==="hidden"}]),role:"region","aria-labelledby":`leasing-partners-title-${e.id}`},[p("div",j,[S(u,{id:`leasing-partners-title-${e.id}`,title:_(g)(e.title),topic:_(g)(e.preTitle),"aria-label":_(g)(e.title),"tag-name":"h2",center:""},null,8,["id","title","topic","aria-label"]),e.tabs?.length>0?(o(),k(V,{key:0,modelValue:f.value,"onUpdate:modelValue":[r[0]||(r[0]=n=>f.value=n),r[1]||(r[1]=n=>[l.value=!1,c.value=b.value])],cards:C.value,class:"m-t-md-30"},z({_:2},[x(e.tabs,(n,P)=>({name:P,fn:T(()=>[n.partnerLogos&&n.partnerLogos.length>0?(o(),s("div",D,[p("ul",E,[(o(!0),s(q,null,x(n.partnerLogos.slice(0,c.value),t=>(o(),s("li",{key:JSON.stringify(t),class:"col-12 col-sm-8 col-md-6 p-y-10"},[t.link&&d(t)?(o(),s("a",{key:0,href:t.link,target:"_blank"},[p("img",{src:d(t),alt:y(t)},null,8,I)],8,H)):i("",!0),d(t)&&!t.link?(o(),s("img",{key:1,src:d(t),alt:y(t)},null,8,J)):i("",!0)]))),128))]),n.partnerLogos.length>b.value?(o(),s("div",G,[l.value?i("",!0):(o(),k(L,{key:0,display:"square",icon:"ui-chevron-down",color:"gray","no-background":"",onClick:t=>[l.value=!l.value,h(n.partnerLogos.length)]},null,8,["onClick"])),l.value?(o(),k(L,{key:1,display:"square",icon:"ui-chevron-up",color:"gray","no-background":"",onClick:t=>[l.value=!l.value,h(n.partnerLogos.length)]},null,8,["onClick"])):i("",!0)])):i("",!0)])):i("",!0)])}))]),1032,["modelValue","cards"])):i("",!0)])],10,U)}}}),ee=Object.assign(K,{__name:"LeasingPartnersPolarisLeasingPartners"});export{ee as default};
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.