PageSourceSearch

https://www.msp360.com/_nuxt/chunk-HeroBlock-S_WqhaBe.js

js msp360.com collected 2026-09-24 08:48:04 UTC 5,035 bytes, 1 lines download raw bytes

1import{_ as B}from"./chunk-microsoft-azure-Cw1WFj9K.js";import{_ as O,a as S,c as x,g as T,f as V}from"./entry-entry-D2ersTkP.js";import{_ as C}from"./chunk-BaseSwiper-3QRNKoH3.js";import{B as s,C as a,H as l,I as n,G as i,K as b,E as g,N as p,O as k,T as u,a1 as I,a2 as H,V as _,Z as m,a3 as L}from"./chunk-vendor-runtime-B9_QDvFA.js";import"./chunk-vendor-nuxt-image-CaOZiHYf.js";import"./chunk-vue-final-modal-C2MJ5Gxt.js";import"./chunk-common-Cpd-lRyX.js";const M={name:"HeroBlock",props:{title:{type:String,required:!0},subtitle:{type:String,default:""},text:{type:String,default:""},product:{type:String,default:""},buttons:{type:Array,default:()=>[]},productTheme:{type:String,default:"orange"},slider:{type:Array,default:()=>[]},darkBackground:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},videoBackground:{type:Boolean,default:!1},videoBlock:{type:Boolean,default:!1},btnsInColOnLg:{type:Boolean,default:!1},btnsInColOnRegionalSite:{type:Boolean,default:!1},landingTheme:{type:[Boolean,String],default:!1},awards:{type:[Boolean,Array],default:!1}},data(){return{videoOpened:!1,pagination:{el:".base-swiper__pagination",type:"progressbar"},swiperSettings:{slidesPerView:5,slidesPerGroup:5,spaceBetween:20,autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},breakpoints:{1264:{slidesPerView:1,grid:{rows:5},slidesPerGroup:1,spaceBetween:24}}}}},computed:{plainTitle(){return(this.title||"").toString().replace(/<[^>]*>/g,"").trim()},classes(){const e=[];return this.product&&e.push("hero-block_product"),this.videoBlock&&e.push("hero-block_product-video"),this.product&&this.productTheme&&e.push(`hero-block_${this.productTheme}`),this.landingTheme&&e.push(`hero-block_landing-${this.landingTheme}`),this.btnsInColOnLg&&e.push("hero-block_btns-column"),e},preparedImages(){return this.awards.map(e=>({...T(`awards/${e}`,"png"),alt:e}))}},methods:{handleVideoOpen(){this.videoOpened=!0},handleVideoClose(){this.videoOpened=!1},preparedSliderImage(e){return{image:`/images-new/awards/${e.image}.png`,image2x:`/images-new/awards/${e.image}.png`,imageWebp:`/images-new/awards/${e.image}.webp`,image2xWebp:`/images-new/awards/${e.image}.webp`}},clickOnSlider(e){this.$emit("clickOnSlider",e)}}},N={class:"hero-block__wrap"},P={class:"hero-block__body"},A={class:"hero-block__content"},E=["aria-label"],G=["innerHTML"],z={key:0,class:"hero-block__subtitle"},R={key:1,class:"hero-block__text"},W=["innerHTML"],j=["innerHTML"],q={class:"hero-block__footer"},D={key:3,class:"hero-block__awards"},F={key:0,class:"hero-block__product"},K={key:0,class:"hero-block__product-slider"},Z=["href"],J={key:0,class:"hero-block__mb-slider"};function Q(e,U,o,X,h,r){const f=B,y=V,d=S,v=x,w=C;return a(),s("div",{class:i(["hero-block",r.classes])},[l("div",N,[l("div",P,[l("div",A,[l("h1",{class:i(["hero-block__title",{"hero-block__title_mb0":o.subtitle}]),"aria-label":r.plainTitle},[l("span",{innerHTML:o.title},null,8,G)],10,E),o.subtitle?(a(),s("div",z,b(o.subtitle),1)):n("",!0),e.$slots.text?(a(),s("div",R,[e.$slots.text?g(e.$slots,"text",{key:0},()=>[l("p",{innerHTML:o.text},null,8,W)]):n("",!0)])):o.text?(a(),s("p",{key:2,class:"hero-block__text",innerHTML:o.text},null,8,j)):n("",!0),l("div",q,[g(e.$slots,"default",{},()=>[(a(!0),s(p,null,k(o.buttons,(t,c)=>(a(),u(f,{key:"button-"+c,to:t.to,href:t.href,design:t.design,"modal-name":t.modalName},{default:m(()=>[L(b(t.text),1)]),_:2},1032,["to","href","design","modal-name"]))),128))])]),o.awards?(a(),s("div",D,[(a(!0),s(p,null,k(r.preparedImages,(t,c)=>(a(),u(y,{key:"award-"+c,image:t,alt:t.alt,width:"64",height:"75"},null,8,["image","alt"]))),128))])):n("",!0)]),l("div",{class:i(["hero-block__background",{"hero-block__background_dark":o.darkBackground,"hero-block__background_video":o.videoBackground,"hero-block__background_video-opened":h.videoOpened}])},[g(e.$slots,"background",I(H({handleVideoOpen:r.handleVideoOpen,handleVideoClose:r.handleVideoClose})))],2)]),o.product?(a(),s("div",F,[l("div",{class:i(["hero-block__product-icon",{"hero-block__product-icon_full":!o.slider.length}])},[_(d,{i:o.product},null,8,["i"])],2),!o.isMobile&&o.slider&&o.slider.length?(a(),s("div",K,[_(w,{items:o.slider,"swiper-settings":h.swiperSettings,navigation:!1,pagination:h.pagination,"progress-bar":"",type:"hero",onClickOnSlider:r.clickOnSlider},{default:m(t=>[t.to?(a(),u(v,{key:0,to:t.to},{default:m(()=>[_(d,{i:t.image,class:i({icon_pointer:t.value})},null,8,["i","class"])]),_:2},1032,["to"])):t.href?(a(),s("a",{key:1,href:t.href},[_(d,{i:t.image,class:i({icon_pointer:t.value})},null,8,["i","class"])],8,Z)):(a(),u(d,{key:2,i:t.image,class:i({icon_pointer:t.value})},null,8,["i","class"]))]),_:1},8,["items","swiper-settings","pagination","onClickOnSlider"])])):n("",!0)])):n("",!0)]),o.slider.length?(a(),s("div",J,[(a(!0),s(p,null,k(o.slider,(t,c)=>(a(),s("div",{key:c,class:"hero-block__mb-slider-item"},[_(d,{i:t.image},null,8,["i"])]))),128))])):n("",!0)],2)}const le=O(M,[["render",Q],["__scopeId","data-v-354705df"]]);export{le 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.