1import{E as e,e as l,g as t,a as i,j as a,b as o,c as s}from"./index-DvtYNCk9.js";import{e as n,r}from"./vendor-D8DBuDFK.js";import{c as d,A as c}from"./main-JXwh71rI.js";import{u as m,D as _}from"./embla-carousel-pagination-button-wlGxm2Jc.js";import{H as u,a as x}from"./arrow-right-2-CZ2MpXFb.js";const p=p=>{const{showSliderArrows:h,isShowPagination:g,paginationPosition:b}=n.propsParser(p),{componentDataDispatcher:f,contentModel:v,selectedIndex:w,scrollSnaps:j,DotButton:N,emblaRef:y,onDotButtonClick:D,scrollNext:z,scrollPrev:S,enableAiZigZagSlider:C,options:k}=(a=>{const{WIDGET_CHECK_TRUE:o}=i,{id:s,contentModel:u,modelInternalName:x,isAutoPlay:p,autoPlayTime:h,enableAiZigZagSlider:g}=n.propsParser(a),b={playOnInit:p===o,delay:parseInt(h)||1e3},[f,v]=d({active:!0,loop:!1,slidesToScroll:1,axis:"y"},[c(b)]),w="zig-zag-slider-ssr",{componentDataDispatcher:j,setComponentDataDispatcher:N,isComponentLoaded:y}=e({id:s,modelInternalName:x,modelKeyForSSR:w});let D;(null==u?void 0:u.trim().length)&&(D=JSON.parse(u)),r.useEffect((()=>{var e;y&&(N({type:l.fetchingData}),(null==(e=null==u?void 0:u.trim())?void 0:e.length)&&(async()=>{N({type:l.dataFetched,data:await t(D,x,w,s)})})())}),[u]);const z=r.useCallback((()=>{v&&v.scrollPrev()}),[v]),S=r.useCallback((()=>{v&&v.scrollNext()}),[v]),{selectedIndex:C,scrollSnaps:k,onDotButtonClick:I}=m(v);return{componentDataDispatcher:j,contentModel:u,selectedIndex:C,scrollSnaps:k,DotButton:_,emblaRef:f,onDotButtonClick:I,scrollNext:S,scrollPrev:z,enableAiZigZagSlider:g,options:[{width:540},{width:462},{width:540},{width:540},{width:310}]}})(p),{WIDGET_CHECK_TRUE:I}=i,{componentData:P,isLoading:T}=f;return a.jsxs(a.Fragment,{children:[a.jsx(o,{loaderClassName:"",contentModel:v,isLoading:T,componentData:P}),(null==P?void 0:P.id)&&!T&&a.jsx("section",{className:"w-full zig-zag-with-slider bg-gray-100 section-gap lg:py-32 md:py-24 py-12",children:a.jsx("div",{className:"container",children:a.jsxs("div",{className:" row flex flex-wrap [&_.col]:px-4 lg:[&_.col]:w-6/12 [&_.col]:w-full -mx-4 items-center",children:[((null==P?void 0:P.heading_et)||P.description_et)&&a.jsxs("div",{className:'col zig-zag-with-slider-content [&_ul]:flex [&_ul]:flex-wrap [&_ul]:gap-3 [&_ul_li]:w-full md:[&_ul_li]:pl-6 \n [&_ul_li]:pl-5 [&_ul_li]:relative before:[&_ul_li]:content-[""] before:[&_ul_li]:absolute md:before:[&_ul_li]:w-4 before:[&_ul_li]:w-3 \n md:before:[&_ul_li]:h-4 before:[&_ul_li]:h-3 [&_ul_li]:text-gray-700 md:[&_ul_li]:text-base [&_ul_li]:text-sm before:[&_ul_li]:left-0 md:before:[&_ul_li]:top-[6px] before:[&_ul_li]:top-1 [&_li:before]:bg-list-icon-two\n [&_li:before]:bg-contain [&_li:before]:bg-no-repeat',children:[(null==P?void 0:P.heading_et)&&a.jsx("h2",{className:""+(C===I?"font-semibold":""),dangerouslySetInnerHTML:{__html:null==P?void 0:P.heading_et}}),(null==P?void 0:P.description_et)&&a.jsx("div",{className:"w-full "+(C===I?"text-coolgray-700":""),dangerouslySetInnerHTML:{__html:null==P?void 0:P.description_et}})]}),a.jsx("div",{className:"col zig-zag-with-slider-slider lg:pt-0 pt-8",children:a.jsxs("div",{className:"w-full lg:-my-32 relative",children:[a.jsx("div",{className:"embla overflow-hidden lg:h-[594px] md:h-[500px] sm:h-[440px] h-[260px] relative",children:a.jsx("div",{className:"embla__viewport h-full",ref:y,children:a.jsx("div",{className:"embla__container flex flex-col h-full duration-100 w-full \n [&_.embla-slide:last-child_img]:blur-[2px]",children:(null==P?void 0:P.zig_zag_item_com)&&(null==P?void 0:P.zig_zag_item_com.length)>0&&(null==P?void 0:P.zig_zag_item_com.map(((e,l)=>{var t,i,o;return a.jsx(a.Fragment,{children:(null==e?void 0:e.slider_image_emd)&&e.slider_image_emd.length>0&&a.jsx("div",{className:"embla__slide embla-slide 2xl:flex-[0_0_78%] lg:flex-[0_0_52%] flex-[0_0_100%] h-full lg:py-4 pt-8 \n md:pl-[30px] pl-4 xl:pr-[52px] pr-10 relative",children:a.jsxs("div",{className:"zig-zag-with-slider-slider-inner [&_img]:rounded-2xl [&_img]:shadow-lg flex justify-center items-center",children:[a.jsx(s,{name:"What's in the report",src:null==e?void 0:e.slider_image_emd[0],alt:null==e?void 0:e.heading_et,title:null==e?void 0:e.heading_et,width:540,height:405,options:k}),(null==(t=null==e?void 0:e.button_com[0])?void 0:t.button_text_et)&&a.jsx("div",{className:"w-full absolute top-0 bottom-0 right-0 left-0 flex flex-wrap items-center",children:a.jsxs("div",{className:"md:w-[242px] w-40 mx-auto md:py-7 py-4 px-4 bg-white flex flex-wrap justify-center shadow-lg rounded-xl",children:[a.jsx("span",{className:"w-full inline-block md:mb-4 mb-3 text-center font-medium",children:"To View More"}),a.jsx("a",{href:null==(i=null==e?void 0:e.button_com[0])?void 0:i.button_link_et,className:""+(C===I?"button-primary-ai button-xs-ai":"button-primary button-xs"),children:null==(o=null==e?void 0:e.button_com[0])?void 0:o.button_text_et})]})})]})},l.toString())})})))})})}),a.jsxs("div",{className:"embla__controls",children:[h===I&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"embla__buttons embla-controls-buttons",children:[a.jsx("button",{"aria-label":"Arrow Prev",className:"absolute left-4 xl:left-[13.75rem] top-2/4 -translate-y-[50%] leading-[0] embla__prev embla-controls-embla-prev",onClick:S,children:a.jsx("i",{className:"icon w-8 h-8 lg:w-12 lg:h-12 [&>svg]:stroke-secondary",children:a.jsx(u,{})})}),a.jsx("button",{"aria-label":"Arrow Next",className:"absolute right-4 xl:right-[13.75rem] top-2/4 -translate-y-[50%] leading-[0] embla__next embla-controls-embla-next",onClick:z,children:a.jsx("i",{className:"icon w-8 h-8 lg:w-12 lg:h-12 [&>svg]:stroke-secondary",children:a.jsx(x,{})})})]})}),g===I&&a.jsx("div",{className:"absolute right-0 top-0 bottom-0",children:a.jsx("div",{className:`w-full flex flex-col justify-center gap-y-3 items-center [&_button]:w-2 [&_button]:h-2 [&_button]:rounded-full [&_button]:bg-coolgray-300 h-full [&_button.embla-dot--selected]:w-3 [&_button.embla-dot--selected]:h-3 [&_button.embla-dot--selected]:mt-[-2px] ${b} `,children:j.map(((e,l)=>a.jsx(N,{onClick:()=>D(l),className:"embla__dot".concat(l===w?" embla__dot--selected embla-dot--selected":"")},l)))})})]})]})})]})})})]})};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.