1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7712],{47712:(e,a,t)=>{t.r(a),t.d(a,{componentSchema:()=>d,default:()=>p,sampleData:()=>u});var i=t(95155),r=t(88661),l=t.n(r),o=t(12115),s=t(55169),n=t(74551),c=t(3978);t(74062),t(1878),t(18068);let d={name:"latest_updates",display_name:"Latest Updates",category:"content",description:"Latest updates slider with configurable content and auto-slide functionality",fields:{displayStyle:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"two-labels",options:["two-labels","single-label","individual","social-media"],description:"Display style: Two Labels (side by side), Single Label (carousel), Individual (square cards), or Social Media (single centered image)"},maxWidth:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"max-w-7xl",options:["max-w-7xl","max-w-6xl","max-w-5xl","1240px","1440px","1920px","full"],description:"Maximum width of the component"},showArrows:{type:"boolean",source:"supabase",multi_language:!1,required:!1,default:!1,description:"Show navigation arrows for carousel modes"},backgroundColor:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"bg-gray-100",options:["transparent","bg-white","bg-gray-50","bg-gray-100","bg-green-50","bg-blue-50"],description:"Background color of the section"},title:{type:"text",source:"supabase",multi_language:!0,required:!0,default:{en:"Latest Updates",ar:"آخر Ø§ÙØªØØ¯Ùثات"},description:"Main section title"},updates:{type:"array",source:"supabase",multi_language:!0,required:!0,description:"Array of update objects with images, titles, and links",itemSchema:{title:{type:"text",multi_language:!0,required:!0},image:{type:"image",multi_language:!0,required:!0},link:{type:"url",multi_language:!0,required:!0},isNew:{type:"boolean",multi_language:!1,default:!1},badge:{type:"text",multi_language:!0,required:!1},imageWidth:{type:"number",source:"supabase",multi_language:!1,required:!1,default:null,min:100,max:3e3,description:"Custom image width in pixels (null = auto)"},imageHeight:{type:"number",source:"supabase",multi_language:!1,required:!1,default:null,min:50,max:2e3,description:"Custom image height in pixels (null = auto)"},spacingTop:{type:"number",source:"supabase",multi_language:!1,required:!1,default:0,min:0,max:200,description:"Spacing above image in pixels"},spacingBottom:{type:"number",source:"supabase",multi_language:!1,required:!1,default:0,min:0,max:200,description:"Spacing below image in pixels"},hoverOverlayColor:{type:"color",source:"supabase",multi_language:!1,required:!1,default:"#f3f4f6",description:"Hover overlay color (very light grey default)"},hoverOverlayOpacity:{type:"number",source:"supabase",multi_language:!1,required:!1,default:30,min:0,max:100,description:"Hover overlay opacity percentage (0-100)"},hoverBorderColor:{type:"color",source:"supabase",multi_language:!1,required:!1,default:"#EFB443",description:"Hover border color (gold accent default)"},hoverBorderWidth:{type:"number",source:"supabase",multi_language:!1,required:!1,default:0,min:0,max:20,description:"Hover border width in pixels (0 = hidden)"},hoverBorderStyle:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"solid",options:["solid","dashed","dotted"],description:"Hover border style"}}},titleColor:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"text-green-700",options:["text-green-700","text-blue-700","text-gray-800","text-black"],description:"Title text color"},cardBackgroundColor:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"bg-white",options:["bg-white","bg-gray-50","bg-green-50","bg-blue-50"],description:"Card background color"},textColor:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"text-gray-900",options:["text-gray-900","text-gray-800","text-black"],description:"Text color"},badgeColor:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"text-red-500",options:["text-red-500","text-green-500","text-blue-500","text-yellow-500"],description:"Badge text color"},autoSlide:{type:"boolean",source:"supabase",multi_language:!1,required:!1,default:!0,description:"Enable automatic slide progression"},slideInterval:{type:"number",source:"supabase",multi_language:!1,required:!1,default:4e3,min:1e3,max:1e4,description:"Auto-slide interval in milliseconds"},showDots:{type:"boolean",source:"supabase",multi_language:!1,required:!1,default:!0,description:"Show navigation dots"},containerMaxWidth:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"max-w-6xl",options:["max-w-4xl","max-w-5xl","max-w-6xl","max-w-7xl"],description:"Container maximum width"},spacing:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"py-16",options:["py-8","py-12","py-16","py-20"],description:"Section vertical spacing"},socialMediaPaddingTop:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"pt-8",options:["pt-0","pt-2","pt-4","pt-6","pt-8","pt-10","pt-12","pt-16","pt-20","pt-24","pt-32"],description:"Top padding above social media container (pt-8 = 32px is standard)"},socialMediaPaddingBottom:{type:"select",source:"supabase",multi_language:!1,required:!1,default:"pb-8",options:["pb-0","pb-2","pb-4","pb-6","pb-8","pb-10","pb-12","pb-16","pb-20","pb-24","pb-32"],description:"Bottom padding below social media container (pb-8 = 32px is standard)"},titleFontSize:{type:"number",source:"supabase",multi_language:!1,required:!1,default:48,min:16,max:120,description:'Title font size in pixels (applies to "Latest Updates" heading)'}},metadata:{multi_language_support:!0,is_public_by_default:!0,performance_optimized:!0,responsive:!0}},u={displayStyle:"two-labels",maxWidth:"max-w-7xl",showArrows:!1,backgroundColor:"bg-gray-100",title:{en:"Latest Updates",ar:"آخر Ø§ÙØªØØ¯Ùثات"},updates:[{id:"1",title:{en:"Bahrain Agricultural Trade & Investment Guide",ar:"دÙÙÙ Ø§ÙØªØ¬Ø§Ø±Ø© ÙØ§ÙاستثÙ
ار Ø§ÙØ²Ø±Ø§Ø¹Ù ÙÙ Ø§ÙØ¨ØØ±ÙÙ"},image:{en:"/api/media/392ac590-56d6-48ef-ae95-5e124e728c99",ar:"/api/media/392ac590-56d6-48ef-ae95-5e124e728c99"},link:{en:"https://www.agro.bh/bahrain-agricultural-trade-investment-guide/",ar:"https://www.agro.bh/bahrain-agricultural-trade-investment-guide/"},isNew:!0,badge:{en:"(new)",ar:"(Ø¬Ø¯ÙØ¯)"},imageWidth:null,imageHeight:null,spacingTop:0,spacingBottom:0,hoverOverlayColor:"#f3f4f6",hoverOverlayOpacity:30,hoverBorderColor:"#EFB443",hoverBorderWidth:0,hoverBorderStyle:"solid"},{id:"2",title:{en:"Botanical Atlas",ar:"Ø§ÙØ£Ø·Ùس اÙÙØ¨Ø§ØªÙ"},image:{en:"/api/media/c6a0c555-4601-473d-927f-b9eea155caa9",ar:"/api/media/c6a0c555-4601-473d-927f-b9eea155caa9"},link:{en:"https://www.agro.bh/the-botanical-atlas/",ar:"https://www.agro.bh/the-botanical-atlas/"},isNew:!0,badge:{en:"(new)",ar:"(Ø¬Ø¯ÙØ¯)"},imageWidth:null,imageHeight:null,spacingTop:0,spacingBottom:0,hoverOverlayColor:"#f3f4f6",hoverOverlayOpacity:30,hoverBorderColor:"#EFB443",hoverBorderWidth:0,hoverBorderStyle:"solid"}
1],titleColor:"text-green-700",cardBackgroundColor:"bg-white",textColor:"text-gray-900",badgeColor:"text-red-500",autoSlide:!0,slideInterval:4e3,showDots:!0,containerMaxWidth:"max-w-6xl",spacing:"py-8",socialMediaPaddingTop:"pt-8",socialMediaPaddingBottom:"pb-8",titleFontSize:48};function p(e){let{displayStyle:a=u.displayStyle,title:t=u.title,updates:r=u.updates,backgroundColor:d=u.backgroundColor,titleColor:p=u.titleColor,cardBackgroundColor:g=u.cardBackgroundColor,textColor:m=u.textColor,badgeColor:x=u.badgeColor,autoSlide:b=u.autoSlide,slideInterval:h=u.slideInterval,showDots:f=u.showDots,slidesToShow:v="individual"===a?4:"single-label"===a||"social-media"===a?1:2,containerMaxWidth:y="max-w-6xl",spacing:w="py-8",customData:j={},maxWidth:k=u.maxWidth,showArrows:N=u.showArrows,socialMediaPaddingTop:_=u.socialMediaPaddingTop,socialMediaPaddingBottom:C=u.socialMediaPaddingBottom,titleFontSize:B=u.titleFontSize}=e,{language:q,direction:W}=(0,s.ok)(),[M,S]=(0,o.useState)(0),L=o.useRef(null),H=o.useRef(null),z=e=>"string"==typeof e?e:"object"==typeof e&&null!==e&&(e[q]||e.en)||"",O=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=z(e.image),s=z(e.link),n=z(e.title),c=e.imageWidth||null,d=e.imageHeight||null,u=e.spacingTop||0,p=e.spacingBottom||0,g=e.hoverOverlayColor||"#f3f4f6",m=void 0!==e.hoverOverlayOpacity?e.hoverOverlayOpacity:30,b=e.hoverBorderColor||"#EFB443",h=e.hoverBorderWidth||0,f=e.hoverBorderStyle||"solid",v={marginTop:u>0?"".concat(u,"px"):void 0,marginBottom:p>0?"".concat(p,"px"):void 0,...t},y="image-hover-".concat(e.id||Math.random().toString(36).substr(2,9)),w=(0,i.jsxs)("div",{style:v,className:l().dynamic([["33b0bfcc333d9e73",[y,y,y,y,m/100,y,h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):""]]])+" "+"relative ".concat(a),children:[(0,i.jsx)("img",{src:o,alt:n,style:{width:c?"".concat(c,"px"):void 0,height:d?"".concat(d,"px"):void 0,objectFit:"cover"},className:l().dynamic([["33b0bfcc333d9e73",[y,y,y,y,m/100,y,h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):""]]])+" "+"".concat(y," w-full h-auto")}),e.badge&&(0,i.jsx)("div",{className:l().dynamic([["33b0bfcc333d9e73",[y,y,y,y,m/100,y,h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):""]]])+" absolute top-2 right-2 bg-white/90 px-2 py-1 rounded",children:(0,i.jsx)("span",{className:l().dynamic([["33b0bfcc333d9e73",[y,y,y,y,m/100,y,h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):""]]])+" "+"text-xs font-bold ".concat(x),children:z(e.badge)})}),m>0&&(0,i.jsx)("div",{style:{backgroundColor:g,opacity:0},className:l().dynamic([["33b0bfcc333d9e73",[y,y,y,y,m/100,y,h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):""]]])+" "+"".concat(y,"-overlay absolute inset-0 pointer-events-none transition-opacity duration-300")}),(0,i.jsx)(l(),{id:"33b0bfcc333d9e73",dynamic:[y,y,y,y,m/100,y,h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):""],children:"@media(max-width:767px){.".concat(y,".__jsx-style-dynamic-selector{max-width:100%!important;height:auto!important;width:100%!important}}@media(hover:hover)and (pointer:fine)and (min-width:768px){.").concat(y,".__jsx-style-dynamic-selector:hover~.").concat(y,"-overlay.__jsx-style-dynamic-selector,.").concat(y,"-overlay.__jsx-style-dynamic-selector:hover{opacity:").concat(m/100,"}.").concat(y,".__jsx-style-dynamic-selector:hover{").concat(h>0?"\n border: ".concat(h,"px ").concat(f," ").concat(b,";\n box-sizing: border-box;\n "):"","}}")})]});return r?(0,i.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"block",children:w}):w};return(0,o.useEffect)(()=>
1{if(!b||"social-media"===a||"individual"===a)return;let e=setInterval(()=>{S(e=>(e+1)%r.length)},h);return()=>clearInterval(e)},[b,h,r.length,a]),(0,i.jsx)("section",{className:"".concat("transparent"===d?"":d," ").concat("social-media"===a?"":w),dir:W,children:(0,i.jsxs)("div",{className:"".concat("social-media"===a?"w-full px-0":"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:[(0,i.jsx)("div",{className:"".concat("social-media"===a?"px-4 sm:px-8":""),children:(0,i.jsx)("h2",{className:"font-bold ".concat(p," text-center mb-12"),style:{fontSize:"".concat(B,"px")},children:z(t)})}),(()=>{switch(a){case"single-label":return(0,i.jsxs)("div",{className:"relative overflow-hidden",children:[(0,i.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:"rtl"===W?"translateX(".concat(100*M,"%)"):"translateX(-".concat(100*M,"%)")},children:r.map(e=>(0,i.jsx)("div",{className:"w-full flex-shrink-0",children:O(e,"rounded-lg",{aspectRatio:"1920/400"},!0)},e.id))}),N&&r.length>1&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:()=>S(e=>(e-1+r.length)%r.length),className:"absolute ".concat("rtl"===W?"-right-2 md:-right-3":"-left-2 md:-left-3"," top-1/2 -translate-y-1/2 p-2 transition-transform hover:scale-105 z-10"),"aria-label":"Previous slide",suppressHydrationWarning:!0,children:(0,i.jsx)("svg",{className:"w-7 h-7 md:w-8 md:h-8 text-[#146634]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"rtl"===W?"M9 5l7 7-7 7":"M15 19l-7-7 7-7"})})}),(0,i.jsx)("button",{onClick:()=>S(e=>(e+1)%r.length),className:"absolute ".concat("rtl"===W?"-left-2 md:-left-3":"-right-2 md:-right-3"," top-1/2 -translate-y-1/2 p-2 transition-transform hover:scale-105 z-10"),"aria-label":"Next slide",suppressHydrationWarning:!0,children:(0,i.jsx)("svg",{className:"w-7 h-7 md:w-8 md:h-8 text-[#146634]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"rtl"===W?"M15 19l-7-7 7-7":"M9 5l7 7-7 7"})})})]})]});case"individual":return(0,i.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:r.slice(0,8).map(e=>(0,i.jsx)("div",{className:"group",children:(0,i.jsx)("div",{className:"".concat(g," rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-all duration-300 transform hover:scale-105"),children:O(e,"",{aspectRatio:"1/1"},!0)})},e.id))});case"social-media":return(0,i.jsxs)("div",{className:"jsx-1ab10feca6d154c3 "+"w-full ".concat(_," ").concat(C),children:[(0,i.jsx)("div",{dir:W,className:"jsx-1ab10feca6d154c3 hidden sm:flex justify-center px-20 lg:px-28",children:(0,i.jsxs)("div",{className:"jsx-1ab10feca6d154c3 w-full max-w-[600px] relative",children:[(0,i.jsx)(n.RC,{ref:L,modules:[c.Vx,c.dK,c.Ij],spaceBetween:0,slidesPerView:1,navigation:{nextEl:".social-swiper-button-next",prevEl:".social-swiper-button-prev"},pagination:!1,autoplay:!!b&&{delay:h,disableOnInteraction:!1,pauseOnMouseEnter:!0},loop:r.length>1,grabCursor:!0,className:"social-media-swiper",onSlideChange:e=>S(e.realIndex),onSwiper:e=>{L.current=e},children:r.map((e,a)=>(0,i.jsx)(n.qr,{children:O(e,"w-full h-[400px] overflow-hidden",{},!1)},e.id))},"desktop-".concat(W)),r.length>1&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{"aria-label":"Previous slide",suppressHydrationWarning:!0,className:"jsx-1ab10feca6d154c3 "+"social-swiper-button-prev absolute ".concat("rtl"===W?"-right-16 lg:-right-24":"-left-16 lg:-left-24"," top-1/2 -translate-y-1/2 z-10 bg-green-600 hover:bg-green-700 active:bg-green-800 text-white rounded-full p-3 shadow-lg transition-all duration-200 transform hover:scale-105 active:scale-95"),children:(0,i.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-1ab10feca6d154c3 w-6 h-6",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"rtl"===W?"M9 5l7 7-7 7":"M15 19l-7-7 7-7",className:"jsx-1ab10feca6d154c3"})})}),(0,i.jsx)("button",{"aria-label":"Next slide",suppressHydrationWarning:!0,className:"jsx-1ab10feca6d154c3 "+"social-swi
1per-button-next absolute ".concat("rtl"===W?"-left-16 lg:-left-24":"-right-16 lg:-right-24"," top-1/2 -translate-y-1/2 z-10 bg-green-600 hover:bg-green-700 active:bg-green-800 text-white rounded-full p-3 shadow-lg transition-all duration-200 transform hover:scale-105 active:scale-95"),children:(0,i.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-1ab10feca6d154c3 w-6 h-6",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"rtl"===W?"M15 19l-7-7 7-7":"M9 5l7 7-7 7",className:"jsx-1ab10feca6d154c3"})})})]}),f&&r.length>1&&(0,i.jsx)("div",{className:"jsx-1ab10feca6d154c3 flex justify-center mt-4 gap-2",children:r.map((e,a)=>(0,i.jsx)("button",{onClick:()=>{S(a),H.current&&H.current.slideToLoop(a)},"aria-label":"Go to slide ".concat(a+1),suppressHydrationWarning:!0,className:"jsx-1ab10feca6d154c3 "+"w-3 h-3 rounded-full transition-all duration-300 ".concat(a===M?"bg-green-600 scale-125":"bg-gray-400 hover:bg-gray-500")},a))})]})}),(0,i.jsx)("div",{dir:W,className:"jsx-1ab10feca6d154c3 sm:hidden w-full",children:(0,i.jsx)("div",{className:"jsx-1ab10feca6d154c3 flex justify-center",children:(0,i.jsxs)("div",{className:"jsx-1ab10feca6d154c3 w-full max-w-full",children:[(0,i.jsx)(n.RC,{ref:H,modules:[c.Vx,c.dK,c.Ij],spaceBetween:0,slidesPerView:1,navigation:!1,pagination:!1,autoplay:!!b&&{delay:h,disableOnInteraction:!1},loop:r.length>1,grabCursor:!0,className:"social-media-swiper-mobile",onSlideChange:e=>S(e.realIndex),onSwiper:e=>{H.current=e},children:r.map((e,a)=>(0,i.jsx)(n.qr,{children:O(e,"w-full h-[300px] overflow-hidden",{},!1)},e.id))},"mobile-".concat(W)),r.length>1&&(0,i.jsxs)("div",{className:"jsx-1ab10feca6d154c3 flex justify-center gap-4 mt-4",children:[(0,i.jsx)("button",{onClick:()=>{var e;return null==(e=H.current)?void 0:e.slidePrev()},"aria-label":"Previous slide",suppressHydrationWarning:!0,className:"jsx-1ab10feca6d154c3 bg-green-600 hover:bg-green-700 active:bg-green-800 text-white rounded-full p-3 shadow-lg transition-all duration-200 transform hover:scale-105 active:scale-95 min-w-[48px] min-h-[48px] flex items-center justify-center",children:(0,i.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-1ab10feca6d154c3 w-5 h-5",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"rtl"===W?"M9 5l7 7-7 7":"M15 19l-7-7 7-7",className:"jsx-1ab10feca6d154c3"})})}),(0,i.jsx)("button",{onClick:()=>{var e;return null==(e=H.current)?void 0:e.slideNext()},"aria-label":"Next slide",suppressHydrationWarning:!0,className:"jsx-1ab10feca6d154c3 bg-green-600 hover:bg-green-700 active:bg-green-800 text-white rounded-full p-3 shadow-lg transition-all duration-200 transform hover:scale-105 active:scale-95 min-w-[48px] min-h-[48px] flex items-center justify-center",children:(0,i.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",className:"jsx-1ab10feca6d154c3 w-5 h-5",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"rtl"===W?"M15 19l-7-7 7-7":"M9 5l7 7-7 7",className:"jsx-1ab10feca6d154c3"})})})]}),f&&r.length>1&&(0,i.jsx)("div",{className:"jsx-1ab10feca6d154c3 flex justify-center mt-4 gap-2",children:r.map((e,a)=>(0,i.jsx)("button",{onClick:()=>{S(a),L.current&&L.current.slideToLoop(a)},"aria-label":"Go to slide ".concat(a+1),suppressHydrationWarning:!0,className:"jsx-1ab10feca6d154c3 "+"w-3 h-3 rounded-full transition-all duration-300 ".concat(a===M?"bg-green-600 scale-125":"bg-gray-400 hover:bg-gray-500")},a))})]})})}),(0,i.jsx)(l(),{id:"1ab10feca6d154c3",children:'.social-media-swiper.jsx-1ab10feca6d154c3 .swiper-button-next.jsx-1ab10feca6d154c3,.social-media-swiper.jsx-1ab10feca6d154c3 .swiper-button-prev.jsx-1ab10feca6d154c3,.social-media-swiper-mobile.jsx-1ab10feca6d154c3 .swiper-button-next.jsx-1ab10feca6d154c3,.social-media-swiper-mobile.jsx-1ab10feca6d154c3 .swiper-button-prev.jsx-1ab10feca6d154c3{display:none}[dir="rtl"].jsx-1ab10feca6d154c3 .social-media-swiper.jsx-1ab10feca6d154c3{direction:rtl}[dir="rtl"].jsx-1ab10feca6d154c3 .social-media-swiper-mobile.jsx-1ab10feca6d154c3{direction:rtl}[dir="rtl"].jsx-1ab10feca6d154c3 .swiper-slide.jsx-1ab10feca6d154c3{text-align:center}'})]});default:return(0,i.jsxs)("div",{className:"relative overflow-hidden",children:[(0,i.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:r.concat(r).slice(M,M+2).map((e,a)=>(0,i.jsx)("div",{className:"".concat(1===a?"hidden sm:block":""),children:O(e,"rounded-lg",{aspectRatio:"768/145"},!0)},"".concat(e.id,"-").concat(M,"-").concat(a)))}),N&&r.length>2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:()=>S(e=>(e-1+r.length)%r.length),className:"absolute ".concat("rtl"===W?"-right-2 md:-right-3":"-left-2 md:-left-3"," top-1/2 -translate-y-1/2 p-2 transition-transform hover:scale-105 z-10"),"aria-label":"Previous slides",suppressHydrationWarning:!0,children:(0,i.jsx)("svg",{className:"w-7 h-7 md:w-8 md:h-8 text-[#146634]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"rtl"===W?"M9 5l7 7-7 7":"M15 19l-7-7 7-7"})})}),(0,i.jsx)("button",{onClick:()=>S(e=>(e+1)%r.length),className:"absolute ".concat("rtl"===W?"-left-2 md:-left-3":"-right-2 md:-right-3"," top-1/2 -translate-y-1/2 p-2 transition-transform hover:scale-105 z-10"),"aria-label":"Next slides",suppressHydrationWarning:!0,children:(0,i.jsx)("svg",{className:"w-7 h-7 md:w-8 md:h-8 text-[#146634]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"rtl"===W?"M15 19l-7-7 7-7":"M9 5l7 7-7 7"})})})]})]})}})(),f&&r.length>1&&("two-labels"===a||"single-label"===a)&&(0,i.jsx)("div",{className:"flex justify-center mt-8 gap-2",children:r.map((e,a)=>(0,i.jsx)("button",{onClick:()=>S(a),className:"w-3 h-3 rounded-full transition-all duration-300 ".concat(a===M?"bg-green-600 scale-125":"bg-gray-400 hover:bg-gray-500"),"aria-label":"Go to slide ".concat(a+1),suppressHydrationWarning:!0},a))}),!0===j.showViewAll&&(0,i.jsx)("div",{className:"text-center mt-8 ".concat("social-media"===a?"px-4 sm:px-8":""),children:(0,i.jsx)("a",{href:"string"==typeof j.viewAllLink?j.viewAllLink:"/updates",className:"inline-block bg-green-600 hover:bg-green-700 text-white px-8 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105",children:"View All Updates"})})]})})}}}]);
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.