1import{_ as G}from"./B7aRVbD3.js";import{_ as U,a as j}from"./C0aoeBxL.js";import J from"./D7rRy3yL.js";import{E as K,C as Q,c as X}from"./CfXyz13Y.js";import{u as Y}from"./Byx8oLKR.js";import{u as x}from"./DYu1-RSO.js";import{a as ee,b as te}from"./BSVfxpQG.js";import{B as se,M as oe}from"./DQbDMui9.js";import{d as ie,h as m,r as ne,v as ae,a8 as a,a9 as r,aa as o,al as h,b as d,ah as c,F as le,at as re,ag as H,u as i,ap as u,t as de,G as N,aq as S,ai as ce,H as ue,ar as pe,as as fe}from"./D9_Op53X.js";import"./Bur2nf9H.js";import"./WnJdt45L.js";import"./BosuxZz1.js";import"./aLfjG8Xb.js";import"./COJ5reXd.js";const M=_=>(pe("data-v-44e9a498"),_=_(),fe(),_),ve=["id"],me={class:"fc-header"},he={class:"fc-header-title h2"},_e={class:"fc-header-description body5"},ge={class:"slide-image"},we={class:"slide-title h4"},ke={key:0,class:"slide-description body5"},Ce={key:0,class:"fc-main-arrow"},Se={key:0,class:"fc-footer"},be=M(()=>o("path",{d:"M0.5 10C0.5 4.7533 4.7533 0.5 10 0.5C15.2467 0.5 19.5 4.7533 19.5 10C19.5 15.2467 15.2467 19.5 10 19.5C4.7533 19.5 0.5 15.2467 0.5 10Z",fill:"#FF5841",stroke:"white"},null,-1)),Le=M(()=>o("path",{d:"M5.5 10H10M14.5 10H10M10 10V5M10 10V15",stroke:"white"},null,-1)),Me=[be,Le],ye=M(()=>o("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("circle",{opacity:"0.7",cx:"24",cy:"24",r:"24",fill:"#232323"}),o("path",{d:"M16.5348 32.8671L15.1348 31.4671L22.6014 24.0005L15.1348 16.5338L16.5348 15.1338L24.0014 22.6005L31.4681 15.1338L32.8681 16.5338L25.4014 24.0005L32.8681 31.4671L31.4681 32.8671L24.0014 25.4005L16.5348 32.8671Z",fill:"white"})],-1)),Be=ie({__name:"HighlightCarousel",props:{title:{},description:{},slides:{},button:{},modal:{},backgroundColor:{},theme:{default:"light"},associatedToMenu:{}},setup(_){const y=K({addDirAttribute:!0}),{breakpoint:R}=Y(),z=m(null),p=m(null),f=m(!1),n=m(null),g=ne({isBeginning:!0,isEnd:!1}),b=m(!1),A=e=>{p.value=e,E()},O=({isBeginning:e,isEnd:s,realIndex:v})=>{g.isBeginning=e,g.isEnd=s},W={0:{spaceBetween:16,centeredSlides:!0,centeredSlidesBounds:!0},576:{spaceBetween:24,centeredSlides:!1,centeredSlidesBounds:!1}},D=e=>{if(n.value==null){n.value=e;return}n.value===e?n.value=null:n.value=e},T=e=>{R.value!=="mobile"&&n.value==null&&(n.value=e)},P=e=>{n.value===e&&(n.value=null)},B=e=>{e==="prev"?p.value.slidePrev():p.value.slideNext()},Z=()=>{f.value=!0},I=[],q=e=>{I.push(e)};function E(){const e=p.value.el.offsetWidth;let s=16;window.innerWidth>576&&(s=24);let v=0;p.value.slides.forEach(w=>{const k=window.getComputedStyle(w),L=parseFloat(k.marginLeft),C=parseFloat(k.marginRight);v+=w.offsetWidth+L+C}),v-s>e?b.value=!0:b.value=!1}const $=()=>{E()};return Q(()=>(x(I),window.addEventListener("resize",$),()=>{window.removeEventListener("resize",$)})),(e,s)=>{var C;const v=G,F=U,w=j,k=J,L=ae("set-height-to-parent");return a(),r("section",{ref_key:"container",ref:z,class:u(["fc",[`fc-${e.theme}`]]),id:(C=e.associatedToMenu)==null?void 0:C.componentId},[o("div",me,[o("div",he,[o("div",{class:"fade-up",ref:q},h(e.title),1)]),o("div",_e,h(e.description),1)]),o("div",{class:u(["fc-main",`count-${e.slides.length}`]),style:ce({"--count":e.slides.length})},[d(i(te),{class:"swiper",dir:i(y).htmlAttrs.dir,breakpoints:W,slidesPerView:"auto",onSwiper:A,onSlideChange:O},{default:c(()=>[(a(!0),r(le,null,re(e.slides,(t,l)=>(a(),H(i(ee),{key:l,class:u(["swiper-slide",{active:i(n)===l,"no-description":!t.description}]),onMouseenter:V=>T(l),onMouseleave:V=>P(l),onClick:V=>D(l)},{default:c(()=>[o("div",ge,[d(v,{class:"responsive-image",data:t.image},null,8,["data"])]),o("div",{class:u(["slide-content",{"no-description":!t.description}])},[o("div",null,[de((a(),r("div",we,[N(h(t.title),1)])),[[L]]),t.description?(a(),r("div",ke,h(t.description),1)):S("",!0)])],2)]),_:2},1032,["class","onMouseenter","onMouseleave","onClick"]))),128))]),_:1},8,["dir"]),i(b)?(a(),r("div",Ce,[d(F,{disabled:i(g).isBeginning,dark:e.theme==="dark",onClick:s[0]||(s[0]=t=>B("prev"))},null,8,["disabled","dark"]),d(w,{disabled:i(g).isEnd,dark:e.theme==="dark",onClick:s[1]||(s[1]=t=>B("next"))},null,8,["disabled","dark"])])):S("",!0)],6),e.button?(a(),r("div",Se,[d(i(se),{onClick:Z,type:"primary",ghost:"",class:u([e.theme])},{suffix:c(()=>[(a(),r("svg",{class:u(["fc-footer-icon",i(y).htmlAttrs.dir]),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Me,2))]),default:c(()=>[N(h(e.button)+" ",1)]),_:1},8,["class"])])):S("",!0),e.modal?(a(),H(i(oe),{key:1,visible:i(f),"onUpdate:visible":s[2]||(s[2]=t=>ue(f)?f.value=t:null),width:"100%","wrap-class-name":"fc-full-modal",footer:null,onOk:s[3]||(s[3]=t=>f.value=!1)},{closeIcon:c(()=>[ye]),default:c(()=>{var t,l;
1return[d(k,{title:(t=e.modal)==null?void 0:t.title,slides:(l=e.modal)==null?void 0:l.slides},null,8,["title","slides"])]}),_:1},8,["visible"])):S("",!0)],10,ve)}}}),Pe=X(Be,[["__scopeId","data-v-44e9a498"]]);export{Pe 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.