PageSourceSearch

https://www.salesmate.io/static/awards-showcase-slider-Dm4Bcuoh.js

js salesmate.io collected 2026-09-24 08:28:05 UTC 5,214 bytes, 1 lines download raw bytes

1import{E as e,e as a,g as l,a as s,j as t,b as i,d as n,c as o}from"./index-C2S2Yysw.js";import{e as r,r as d}from"./vendor-CK00QW4g.js";import{c,A as m}from"./main-BcBMYSYc.js";import{I as h}from"./arrow-left-D78Q2yIV.js";const p=p=>{const{showSliderArrows:_,colorOptions:u}=r.propsParser(p),{componentDataDispatcher:x,contentModel:g,emblaRef:w,scrollNext:v,scrollPrev:j}=(t=>{const{WIDGET_CHECK_TRUE:i}=s,{id:n,contentModel:o,modelInternalName:h,isAutoPlay:p,autoPlayTime:_}=r.propsParser(t),u="awards-showcase-slider-ssr",{componentDataDispatcher:x,setComponentDataDispatcher:g,isComponentLoaded:w}=e({id:n,modelInternalName:h,modelKeyForSSR:u}),v={playOnInit:p===i,delay:parseInt(_)||3e3},j=p===i?[m(v)]:[],[f,N]=c({active:!0,loop:!0,slidesToScroll:1},j),b=o?JSON.parse(o):{};d.useEffect((()=>{var e;w&&(g({type:a.fetchingData}),(null==(e=null==o?void 0:o.trim())?void 0:e.length)&&(async()=>{g({type:a.dataFetched,data:await l(b,h,u,n)})})())}),[o]);const y=d.useCallback((()=>{N&&N.scrollPrev()}),[N]),S=d.useCallback((()=>{N&&N.scrollNext()}),[N]);return{componentDataDispatcher:x,contentModel:o,emblaRef:f,scrollNext:S,scrollPrev:y}})(p),{WIDGET_CHECK_TRUE:f}=s,{componentData:N,isLoading:b}=x;return t.jsxs(t.Fragment,{children:[t.jsx(i,{loaderClassName:"",contentModel:g,isLoading:b,componentData:N}),(null==N?void 0:N.id)&&!b&&t.jsx("section",{className:"w-full section-gap",children:t.jsxs("div",{className:"container",children:[((null==N?void 0:N.tag_line_et)||(null==N?void 0:N.heading_et)||(null==N?void 0:N.description_et))&&t.jsxs("div",{className:"section-title-part text-left relative",children:[t.jsxs("div",{className:"w-full",children:[N.tag_line_et&&t.jsx("span",{className:`tag-line ${u||"text-fuchsia-600"}`,dangerouslySetInnerHTML:{__html:N.tag_line_et}}),N.heading_et&&t.jsx("h2",{dangerouslySetInnerHTML:{__html:N.heading_et}}),N.description_et&&t.jsx("p",{className:"w-full",dangerouslySetInnerHTML:{__html:N.description_et}})]}),_===f&&t.jsxs("div",{className:"absolute right-0 xl:top-16 top-[58px] md:flex hidden gap-2",children:[t.jsx("button",{className:"embla__prev leading-[0] group",onClick:j,"aria-label":"Previous slide",children:t.jsx("i",{className:"icon w-6 h-6 p-1 [&_path]:fill-coolgray-300 group-hover:[&_path]:fill-primary",children:t.jsx(h,{})})}),t.jsx("button",{className:"embla__next leading-[0] group",onClick:v,"aria-label":"Next slide",children:t.jsx("i",{className:"icon w-6 h-6 p-1 rotate-180 [&_path]:fill-coolgray-300 group-hover:[&_path]:fill-primary",children:t.jsx(h,{})})})]})]}),t.jsx("div",{className:"w-full",children:t.jsx("div",{className:"embla overflow-hidden",children:t.jsx("div",{className:"embla__viewport",ref:w,children:t.jsx("div",{className:"embla__container flex -mx-2",children:(null==N?void 0:N.awards_showcase_slider_item_com)&&N.awards_showcase_slider_item_com.length>0&&N.awards_showcase_slider_item_com.map(((e,a)=>t.jsx("div",{className:"embla__slide flex-[0_0_100%] px-2",children:t.jsxs("div",{className:"flex flex-wrap -mx-4 items-center",children:[t.jsx("div",{className:"w-full md:w-6/12 px-4 md:mt-0 mt-8",children:t.jsxs("div",{className:"w-full md:text-left text-center",children:[(null==e?void 0:e.heading_et)&&t.jsx("h3",{className:"mb-0",dangerouslySetInnerHTML:{__html:e.heading_et}}),(null==e?void 0:e.description_com)&&t.jsx("div",{className:"w-full md:mt-6 mt-4 text-coolgray-700",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:e.description_com}})}),(null==e?void 0:e.button_com)&&e.button_com.length>0&&e.button_com[0].button_text&&e.button_com[0].button_link&&t.jsx("div",{className:"w-full md:mt-12 mt-6",children:t.jsx(n,{to:e.button_com[0].button_link,className:"button-primary button-medium",children:e.button_com[0].button_text})})]})}),t.jsx("div",{className:"w-full md:w-6/12 px-4 md:order-none -order-1",children:t.jsx("div",{className:"content-right",children:(()=>{if(!((null==e?void 0:e.image_emd)&&e.image_emd.length>0))return t.jsx(o,{width:622,height:256,src:"https://www.salesmate.io/mm-images/upload-files-ni8vop22.png",alt:e.heading_et||"Award",name:`Awards Showcase ${a+1}`,className:"w-full h-auto rounded-lg"});try{const l=JSON.parse(e.image_emd[0]);return t.jsx(o,{width:622,height:256,src:l.publicUrl,alt:l.altText||e.heading_et||"Award",name:`Awards Showcase ${a+1}`,className:"w-full h-auto rounded-lg"})}catch(l){return t.jsx(o,{width:622,height:256,src:"https://www.salesmate.io/mm-images/upload-files-ni8vop22.png",alt:e.heading_et||"Award",name:`Awards Showcase ${a+1}`,className:"w-full h-auto rounded-lg"})}})()})})]})},a)))})})})}),t.jsx("div",{className:"w-full relative mt-8 md:hidden",children:_===f&&t.jsxs("div",{className:"flex justify-center gap-2",children:[t.jsx("button",{className:"embla__prev leading-[0] group",onClick:j,"aria-label":"Previous slide",children:t.jsx("i",{className:"icon w-6 h-6 p-1 [&_path]:fill-coolgray-300 group-hover:[&_path]:fill-primary",children:t.jsx(h,{})})}),t.jsx("button",{className:"embla__next leading-[0] group",onClick:v,"aria-label":"Next slide",children:t.jsx("i",{className:"icon w-6 h-6 p-1 rotate-180 [&_path]:fill-coolgray-300 group-hover:[&_path]:fill-primary",children:t.jsx(h,{})})})]})})]})})]})};export{p 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.