import{i as O,j as M,k as P,o as y}from"./chunk-ZEDFMZ3B.js";import{$b as C,Cb as f,Jb as u,Lb as s,Ra as b,Vb as x,Zb as v,_a as l,ha as h,lb as d,ma as p,na as m,nb as a,wb as r,xb as c,yb as _}from"./chunk-PEWEDMBK.js";var w=t=>({"image-active":t});function k(t,n){if(t&1&&_(0,"img",13),t&2){let e=n.$implicit,i=n.index,o=s(2);a("src",e.imageSrc,b)("alt",e.imageAlt)("ngClass",C(3,w,o.selectedIndex===i))}}var S=t=>({active:t});function F(t,n){if(t&1){let e=f();r(0,"span",16),u("click",function(){let g=p(e).index,I=s(3);return m(I.selectImage(g))}),c()}if(t&2){let e=n.index,i=s(3);a("ngClass",C(1,S,i.selectedIndex===e))}}function E(t,n){if(t&1&&(r(0,"div",14),d(1,F,1,3,"span",15),c()),t&2){let e=s(2);l(),a("ngForOf",e.images)}}function T(t,n){if(t&1){let e=f();r(0,"button",17)(1,"i",18),u("click",function(){p(e);let o=s(2);return m(o.onPrevClick())}),c()()}}function V(t,n){if(t&1){let e=f();r(0,"button",19)(1,"i",20),u("click",function(){p(e);let o=s(2);return m(o.onNextClick())}),c()()}}function N(t,n){if(t&1&&(r(0,"div",1),d(1,k,1,5,"img",2),r(2,"div",3)(3,"div",4)(4,"div",5)(5,"a",6),_(6,"img",7),c()(),r(7,"div",8)(8,"h1"),x(9,"Beasy"),c()(),r(10,"div",9)(11,"p"),x(12," Fournit des solutions de bout en bout pour le secteur des paiements aux institutions financi\xE8res et aux commer\xE7ants. "),c()()()(),d(13,E,2,1,"div",10)(14,T,2,0,"button",11)(15,V,2,0,"button",12),c()),t&2){let e=s();l(),a("ngForOf",e.images),l(12),a("ngIf",e.indicators),l(),a("ngIf",e.controls),l(),a("ngIf",e.controls)}}var D=(()=>{let n=class n{constructor(){this.images=[],this.indicators=!0,this.controls=!0,this.autoSlide=!1,this.slideInterval=70,this.selectedIndex=0}ngOnInit(){this.autoSlide&&this.autoSlideImages()}autoSlideImages(){setInterval(()=>{this.onNextClick()},this.slideInterval)}selectImage(i){this.selectedIndex=i}onPrevClick(){this.selectedIndex===0?this.selectedIndex=this.images.length-1:this.selectedIndex--}onNextClick(){this.selectedIndex===this.images.length-1?this.selectedIndex=0:this.selectedIndex++}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=h({type:n,selectors:[["bgui-carousel"]],inputs:{images:"images",indicators:"indicators",controls:"controls",autoSlide:"autoSlide",slideInterval:"slideInterval"},standalone:!0,features:[v],decls:1,vars:1,consts:[["class","carousel-container",4,"ngIf"],[1,"carousel-container"],["class","",3,"src","alt","ngClass",4,"ngFor","ngForOf"],[1,"fxt-header"],[1,"fxt-top-content",2,"margin-bottom","-35px"],[1,"fxt-transformY-50","fxt-transition-delay-1"],["href","login-25.html",1,"fxt-logo"],["src","assets/images/logo/auth.png","alt","Logo"],[1,"fxt-transformY-50","fxt-transition-delay-2"],[1,"fxt-transformY-50","fxt-transition-delay-3"],["class","carousel-dot-container",4,"ngIf"],["class","btn-carousel btn-prev",4,"ngIf"],["class","btn-carousel btn-next",4,"ngIf"],[1,"",3,"src","alt","ngClass"],[1,"carousel-dot-container"],["class","dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"dot",3,"ngClass","click"],[1,"btn-carousel","btn-prev"],[1,"fas","fa-arrow-circle-left","icon-carousel","icon-prev",3,"click"],[1,"btn-carousel","btn-next"],[1,"fas","fa-arrow-circle-right","icon-carousel","icon-next",3,"click"]],template:function(o,g){o&1&&d(0,N,16,4,"div",0),o&2&&a("ngIf",g.images&&g.images.length>0)},dependencies:[y,O,M,P],styles:[".carousel-container[_ngcontent-%COMP%]{position:relative;margin:auto;text-align:center;width:100%;height:100%;border-radius:14px;box-shadow:0 4px 24px #22292f1a}.carousel-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:none;border-radius:14px}.carousel-container[_ngcontent-%COMP%] Img.image-active[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.carousel-dot-container[_ngcontent-%COMP%]{position:absolute;right:0;left:0;bottom:0;display:flex;justify-content:center;padding:0;margin-bottom:1rem}.dot[_ngcontent-%COMP%]{cursor:pointer;height:10px;width:10px;margin:0 5px;background-color:#fff;border-radius:.65rem;display:inline-block;-webkit-transition:opacity .6s ease-in-out;transition:opacity .6s ease-in-out;opacity:.5;outline:0!important}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{opacity:1;width:26px;transition:all .6s ease-in-out}.fade[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}.btn-carousel[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;cursor:pointer}.btn-prev[_ngcontent-%COMP%]{left:0}.icon-carousel[_ngcontent-%COMP%]{color:#fff;opacity:.5;transition:all .15s ease}.icon-carousel[_ngcontent-%COMP%]:hover{opacity:.9}.icon-carousel[_ngcontent-%COMP%]:active{opacity:.5}.icon-prev[_ngcontent-%COMP%]{font-size:13px}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%]{right:0;left:0;bottom:0;margin-right:40px;margin-left:10px;position:absolute;border-radius:12px;padding:0 40px 1px;margin-bottom:60px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-width:660px;width:100%;text-align:left}@media only screen and (max-width: 575px){.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%]{padding:50px 15px 30px}}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%] .fxt-top-content[_ngcontent-%COMP%]{margin-bottom:3px}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%] .fxt-top-content[_ngcontent-%COMP%] .fxt-logo[_ngcontent-%COMP%]{display:block;margin-bottom:30px;max-width:40vw;margin-left:auto;margin-right:auto}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%] .fxt-top-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-weight:700}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%] .fxt-top-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%] .fxt-bottom-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-size:20px}.carousel-container[_ngcontent-%COMP%] .fxt-header[_ngcontent-%COMP%] .fxt-bottom-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#bbb}"]});let t=n;return t})();export{D as a};