PageSourceSearch

https://www.rhbinvest.com/assets/ProductCardCarousel.js

js rhbinvest.com collected 2026-10-01 16:07:18 UTC 15,384 bytes, 47 lines download raw bytes

1var r=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var c=(t,i)=>{var l={};for(var a in t)u.call(t,a)&&i.indexOf(a)<0&&(l[a]=t[a]);if(t!=null&&r)for(var a of r(t))i.indexOf(a)<0&&p.call(t,a)&&(l[a]=t[a]);return l};import{B as m}from"./BaseLayout.js";import{C as f}from"./CodeSample.js";import{B as x}from"./BaseCard.js";import{S as h}from"./TheFooter.js";import{M as v}from"./ModalPopUp.js";import{T as o}from"./Table.js";import{c as e,l as w,a as s,b}from"./index.js";import"./SvgIcon.js";var g=i=>{var t=c(i,[]);let l={direction:"horizontal",slidesPerView:1.1,slidesPerGroup:1,breakpoints:{500:{slidesPerView:3,centeredSlides:!0,centerInsufficientSlides:!0,loop:!0},992:{slidesPerView:3,slidesPerGroup:1,spaceBetween:40}},autoplay:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},spaceBetween:20,centeredSlides:!0,centerInsufficientSlides:!0,loop:!0,loopAdditionalSlides:30};const a=[{thumbnail:"https://www.rhbgroup.com/images/home-facelift/urus.jpg",title:"Personal Financing-i for Private Sector1",description:"Help is available for you. Talk to us today!",link:"https://www.rhbgroup.com/en/TPA/index.html?utm_source=pws_promo&utm_medium=pws_promo&utm_campaign=urus",category:["Deposits","ASB Financing"]},{thumbnail:"https://www.rhbgroup.com/images/home-facelift/urus.jpg",title:"Personal Financing-i for Private Sector2",description:"Help is available for you. Talk to us today!",link:"https://www.rhbgroup.com/en/TPA/index.html?utm_source=pws_promo&utm_medium=pws_promo&utm_campaign=urus",category:["Deposits","ASB Financing"]},{thumbnail:"https://www.rhbgroup.com/images/home-facelift/urus.jpg",title:"Personal Financing-i for Private Sector3",description:"Help is available for you. Talk to us today!",link:"https://www.rhbgroup.com/en/TPA/index.html?utm_source=pws_promo&utm_medium=pws_promo&utm_campaign=urus",category:["Deposits","ASB Financing"]},{thumbnail:"https://www.rhbgroup.com/images/home-facelift/urus.jpg",title:"Personal Financing-i for Private Sector3",description:"Help is available for you. Talk to us today!",link:"https://www.rhbgroup.com/en/TPA/index.html?utm_source=pws_promo&utm_medium=pws_promo&utm_campaign=urus",category:["Deposits","ASB Financing"]},{thumbnail:"https://www.rhbgroup.com/images/home-facelift/urus.jpg",title:"Personal Financing-i for Private Sector3",description:"Help is available for you. Talk to us today!",link:"https://www.rhbgroup.com/en/TPA/index.html?utm_source=pws_promo&utm_medium=pws_promo&utm_campaign=urus",category:["Deposits","ASB Financing"]}];return e("div",b({class:"product-card-carousel-root bg-primary-lightskyblue py-10"},t,{"x-data":`{
2            show: false,
3            slideContent: [
4                { display: false },
5                { display: false },
6                { display: false },
7                { display: false }
8            ],
9            openDetailModal(index) {
10                const i = parseInt(index);
11                this.show = true; 
12                this.slideContent[i].display = true;
13            },
14            closeDetailModal() {
15                this.slideContent.forEach(o => o.display = false);
16            }
17        }`}),[e("div",{class:"container-tw px-7"},[e("div",{class:"grid grid-cols-12"},[e("div",{class:"col-span-12 -mx-[15px] md:mx-0"},[e("div",{"x-data":`
18                                swiper($el, 
19                                    {
20                                        slidesLength: null,
21                                    }
22                                );
23                            `,"x-init":"slidesLength = $el.querySelectorAll('.swiper-slide:not(.swiper-slide-duplicate)').length;",class:"swiper relative p-6","x-bind:class":"slidesLength === 1 && 'mx-auto w-full md:w-2/5'","data-setup":w.stringify(l)},[e("div",{class:["swiper-wrapper"]},[a&&a.map((n,d)=>e("div",{key:`productCardComparison-card-${d}`,class:"swiper-slide pb-2 md:pb-4 min-h-[650px]"},[e(x,{cardShadow:!0},{default:()=>[e("h3",{class:"text-primary p-5 font-bold"},[n.title]),e("img",{class:"w-full max-h-[180px] object-cover",src:n.thumbnail,alt:n.title},null),e("div",{class:"p-5 h-full flex flex-col justify-between"},[e("div",{class:"mb-10"},[e("ul",{class:"list-disc list-outside pl-5"},[e("li",null,[s("Exclusively for Private Sector")]),e("li",null,[s("Maximum financing period up to 7 years")])]),e("a",{"x-on:click":`openDetailModal(${d})`,class:"text-primary mt-5 inline-block cursor-pointer"},[s("view details "),e("i",{class:"fa fa-angle-right hidden md:inline text-[16px]"},null)])]),e(h,{theme:"primary",href:"https://www.google.com",class:"mx-auto w-full"},{default:()=>[s("I'm Interested")]})])]})]))]),e("div",{"x-show":"slidesLength > 2",class:"swiper-button-prev absolute z-10 left-0 top-[50%] cursor-pointer hidden md:block"},[e("i",{class:"fa fa-angle-left h1 text-primary font-bold"},null)]),e("div",{"x-show":"slidesLength > 2",class:"swiper-button-next absolute z-10 right-0 top-[50%] cursor-pointer hidden md:block"},[e("i",{class:"fa fa-angle-right h1 text-primary font-bold"},null)]),e("div",{id:"current-slide-group",class:"text-center mt-10"},[e("strong",{class:"current-slide"},[s("1")]),s("/"),e("strong",{class:"total-slides","x-text":"slidesLength"},[s("0")])])])])])]),e(v,{class:"modal-popup animation-fade-in","x-bind:class":"{'animation-fade-out': !show}",maxWidth:"md:max-w-[60vw]",customCloseEvent:"closeDetailModal()"},{default:()=>[e("div",{class:"relative h-full"},[e("div",{"x-data":"{overflow: false}",class:"overflow-y-auto custom-scrollbar max-h-[calc(100vh-6rem)] md:max-h-[calc(90vh-8rem)]"},[e("div",null,[e("img",{class:"w-full max-w-[100px]",src:"/src/assets/logo.png",alt:"RHB"},null)]),e("div",{class:"body-3 my-10","x-show":"slideContent[0].display === true"},[e("h4",{class:"h4 font-bold mb-5"},[s("RHB Essential Cover 1")]),e("p",{class:"mb-3"}
23,[s("This is an ideal protection plan offering you basic life protection coverage.")]),e("p",{class:"mb-3"},[s("Death & Total Permanent Disability (TPD) benefits")]),e("div",{class:["accordion-root"],"x-data":`
24                                {
25                                    expanded: 0,
26                                    expand(index) {
27                                        if(this.expanded === index) return this.expanded = -1;
28                                        this.expanded = index;
29                                    }
30                                }
31                            `},[e("div",{class:"mt-4 md:mt-6 pr-5"},[e("button",{class:["w-full"],"x-on:click":"expand(0)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 0",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 0",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 0",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",{class:"mb-3"},[s("1 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])]),e(o,{type:"classic",class:"mb-5"},null)])]),e("div",{class:"mt-4 md:mt-6 pr-5"},[e("button",{class:["w-full"],"x-on:click":"expand(1)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 1",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 1",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 1",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",null,[s("2 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])])])]),e("div",{class:"mt-4 md:mt-6"},[e("button",{class:["w-full"],"x-on:click":"expand(2)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 2",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 2",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 2",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",null,[s("3 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])])])])])]),e("div",{class:"body-3 my-10","x-show":"slideContent[1].display === true"},[e("h4",{class:"h4 font-bold mb-5"},[s("RHB Essential Cover2")]),e("p",{class:"mb-3"},[s("This is an ideal protection plan offering you basic life protection coverage.")]),e("p",{class:"mb-3"},[s("Death & Total Permanent Disability (TPD) benefits")]),e("div",{class:["accordion-root"],"x-data":`
32                                {
33                                    expanded: 0,
34                                    expand(index) {
35                                        if(this.expanded === index) return this.expanded = -1;
36                                        this.expanded = index;
37                                    }
38                                }
39                            `},[e("div",{class:"mt-4 md:mt-6 pr-5"},[e("button",{class:["w-full"],"x-on:click":"expand(0)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 0",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 0",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 0",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",{class:"mb-3"},[s("1 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])]),e(o,{type:"classic",class:"mb-5"},null)])]),e("div",{class:"mt-4 md:mt-6 pr-5"},[e("button",{class:["w-full"],"x-on:click":"expand(1)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 1",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 1",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 1",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",null,[s("2 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])])])]),e("div",{class:"mt-4 md:mt-6"},[e("button",{class:["w-full"],"x-on:click":"expand(2)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 2",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 2",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 2",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",null,[s("3 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])])])])])]),e("div",{class:"body-3 my-10","x-show":"slideContent[2].display === true"},[e("h4",{class:"h4 font-bold mb-5"},[s("RHB Essential Cover3")]),e("p",{class:"mb-3"}
39,[s("This is an ideal protection plan offering you basic life protection coverage.")]),e("p",{class:"mb-3"},[s("Death & Total Permanent Disability (TPD) benefits")]),e("div",{class:["accordion-root"],"x-data":`
40                                {
41                                    expanded: 0,
42                                    expand(index) {
43                                        if(this.expanded === index) return this.expanded = -1;
44                                        this.expanded = index;
45                                    }
46                                }
47                            `},[e("div",{class:"mt-4 md:mt-6 pr-5"},[e("button",{class:["w-full"],"x-on:click":"expand(0)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 0",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 0",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 0",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",{class:"mb-3"},[s("1 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])]),e(o,{type:"classic",class:"mb-5"},null)])]),e("div",{class:"mt-4 md:mt-6 pr-5"},[e("button",{class:["w-full"],"x-on:click":"expand(1)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 1",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 1",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 1",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",null,[s("2 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])])])]),e("div",{class:"mt-4 md:mt-6"},[e("button",{class:["w-full"],"x-on:click":"expand(2)"},[e("div",{class:"text-left"},[e("div",{class:"text-primary inline-block"},[e("div",{class:"text-grey mr-3"},[s("Title 1")])]),e("div",{"x-show":"expanded !== 2",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-down"},null)]),e("div",{"x-show":"expanded === 2",class:"transform ease-in-out duration-200 inline-block mt-1"},[e("i",{class:"fa fa-angle-up"},null)])])]),e("div",{"x-show":"expanded === 2",class:["expanded-content text-black overflow-hidden relative transition-all duration-300"]},[e("div",{class:"rte pt-3"},[e("p",null,[s("3 types of plans which offers fixed Sum Assured amount depending on the Life Assured\u2019s entry age.")])])])])])])])])]})])},L=()=>e(m,null,{default:()=>[e(f,null,{default:()=>[e("h3",{class:"h3 my-5"},[s("Product Card Carousel")]),e(g,null,null)]})]});export{L 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.