1import{a as T}from"./chunk-Q5A5LVVH.js";import"./chunk-RH7YKMCI.js";import{D as v}from"./chunk-GUQT3FOM.js";import{Ac as o,Bc as h,Cc as c,Eb as r,Hb as b,Kc as p,La as _,Oa as y,Rc as E,Ub as P,Wc as D,Xc as A,Yc as M,ed as L,fd as U,mc as C,ra as u,sb as d,uc as f,vc as g}from"./chunk-H5RMQNTW.js";import"./chunk-EU2KAMEK.js";import"./chunk-YNC7RVHT.js";var x=["marqueeElement"],F=(n,m)=>m.id,q=(n,m)=>m.id+"_dup";function k(n,m){if(n&1&&(o(0,"div",9)(1,"a",11),c(2,"img",12),h()()),n&2){let e=m.$implicit;r(),p("href",e.redirectUrl,d),r(),p("src",e.imagePath,d)("alt",e.id)}}function I(n,m){if(n&1&&(o(0,"div",9)(1,"a",11),c(2,"img",12),h()()),n&2){let e=m.$implicit;r(),p("href",e.redirectUrl,d),r(),p("src",e.imagePath,d)("alt",e.id)}}var W=(()=>{class n{constructor(){this.aos=u(T),this.platformId=u(y),this.renderer=u(b),this.isAosActive=this.aos.isAosActive,this.animationDuration=4e4,this.isDragging=!1,this.hasDragged=!1,this.isHovered=!1,this.startX=0,this.startY=0,this.startCurrentTime=0,this.marqueeClass=_("tw-animate-marquee group-hover:tw-pause tw-flex tw-w-max tw-gap-8 lg:tw-gap-16 tw-cursor-grab active:tw-cursor-grabbing"),this.featuredInLogos=[{id:"associated_press",imagePath:"/assets/images/featured-in/associated-press-logo.png",redirectUrl:"https://apnews.com/press-release/business-wire/richard-laermer-north-america-4bb55f57172d489282d7b3947cac0573"},{id:"yahoo_finance",imagePath:"/assets/images/featured-in/yahoo-finance-logo.png",redirectUrl:"https://finance.yahoo.com/news/muslims-fintech-invest-ethically-musaffa-152900771.html"},{id:"busines_wire",imagePath:"/assets/images/featured-in/businesswire-logo.png",redirectUrl:"https://www.businesswire.com/news/home/20241231906547/en/How-Muslims-Use-Fintech-to-Invest-Ethically-Musaffa-CEO-Dilshod-Jumaniyazov-Explains"},{id:"wealth_management",imagePath:"/assets/images/featured-in/wealth-management-logo.png",redirectUrl:"https://www.wealthmanagement.com/etfs/musaffa-wants-more-muslims-invest-ethically"},{id:"salaam_gateway",imagePath:"/assets/images/featured-in/salaam-gateway-logo.png",redirectUrl:"https://salaamgateway.com/ranking/top-30-digital-islamic-economy-startups-2024"},{id:"fintect_futures",imagePath:"/assets/images/featured-in/fintech-futures-logo.png",redirectUrl:"https://www.fintechfutures.com/techwire/how-muslims-use-fintech-to-invest-ethically-musaffa-ceo-dilshod-jumaniyazov-explains/"},{id:"halal_times",imagePath:"/assets/images/featured-in/the-halal-times-logo.png",redirectUrl:"https://www.halaltimes.com/islamic-fintech-revolution-making-halal-banking-accessible-online/"},{id:"fonivate",imagePath:"/assets/images/featured-in/fonivate-logo.png",redirectUrl:"https://finovate.com/finovate-global-an-introduction-to-islamic-finance-with-musaffas-dilshod-jumaniyazov/"},{id:"investors_hangout",imagePath:"/assets/images/featured-in/investor-hangout-logo.png",redirectUrl:"https://investorshangout.com/exploring-ethical-investments-insight-from-musaffas-ceo-163095-/"}]}ngOnInit(){this.isAosActive()&&this.aos.refresh()}ngAfterViewInit(){v(this.platformId)&&this.initMarqueeAnimation()}ngOnDestroy(){this.waapiAnimation&&this.waapiAnimation.cancel(),this.pointerMoveListener&&this.pointerMoveListener(),this.pointerUpListener&&this.pointerUpListener(),this.pointerCancelListener&&this.pointerCancelListener()}initMarqueeAnimation(){let e=this.marqueeElement?.nativeElement;if(!e)return;let t=window.getComputedStyle(e),i=t.transform||t.webkitTransform,a=0;if(i&&i!=="none"){let s=i.replace(/[^0-9\-.,]/g,"").split(","),w=parseFloat(s[4]||"0"),l=e.scrollWidth/2;l>0&&(a=Math.abs(w)/l*this.animationDuration%this.animationDuration)}this.marqueeClass.set("tw-flex tw-w-max tw-gap-8 lg:tw-gap-16 tw-cursor-grab active:tw-cursor-grabbing"),this.waapiAnimation=e.animate([{transform:"translate3d(0, 0, 0)"},{transform:"translate3d(-50%, 0, 0)"}],{duration:this.animationDuration,iterations:1/0,easing:"linear"}),this.waapiAnimation.currentTime=a,this.isHovered&&this.waapiAnimation.pause()}onPointerDown(e){if(!(e.button!==0&&e.pointerType==="mouse")){if(this.isDragging=!0,this.hasDragged=!1,this.startX=e.clientX,this.startY=e.clientY,this.waapiA
1nimation){this.waapiAnimation.pause();let t=this.waapiAnimation.currentTime;this.startCurrentTime=typeof t=="number"?t:0}v(this.platformId)&&(this.pointerMoveListener=this.renderer.listen("window","pointermove",t=>this.handlePointerMove(t)),this.pointerUpListener=this.renderer.listen("window","pointerup",t=>this.handlePointerUp(t)),this.pointerCancelListener=this.renderer.listen("window","pointercancel",t=>this.handlePointerUp(t)))}}handlePointerMove(e){if(!this.isDragging)return;let t=e.clientX-this.startX,i=e.clientY-this.startY;(Math.abs(t)>5||Math.abs(i)>5)&&(this.hasDragged=!0);let a=this.marqueeElement?.nativeElement;if(!a)return;let s=a.scrollWidth/2;if(s>0&&this.waapiAnimation){let w=t*(this.animationDuration/s),l=(this.startCurrentTime-w)%this.animationDuration;l<0&&(l+=this.animationDuration),this.waapiAnimation.currentTime=l}}handlePointerUp(e){this.isDragging&&(this.isDragging=!1,this.pointerMoveListener&&(this.pointerMoveListener(),this.pointerMoveListener=void 0),this.pointerUpListener&&(this.pointerUpListener(),this.pointerUpListener=void 0),this.pointerCancelListener&&(this.pointerCancelListener(),this.pointerCancelListener=void 0),!this.isHovered&&this.waapiAnimation&&this.waapiAnimation.play())}onMouseEnter(){this.isHovered=!0,!this.isDragging&&this.waapiAnimation&&this.waapiAnimation.pause()}onMouseLeave(){this.isHovered=!1,!this.isDragging&&this.waapiAnimation&&this.waapiAnimation.play()}onMarqueeClick(e){this.hasDragged&&(e.preventDefault(),e.stopPropagation(),this.hasDragged=!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=P({type:n,selectors:[["app-featured-press"]],viewQuery:function(t,i){if(t&1&&D(x,5),t&2){let a;A(a=M())&&(i.marqueeElement=a.first)}},decls:15,vars:3,consts:[["marqueeElement",""],[1,"tw-bg-white","tw-py-10"],[1,"tw-font-medium","tw-text-center","tw-mb-2","tw-text-gray-600","tw-text-sm","md:tw-text-base"],[1,"tw-mt-4","tw-relative","tw-w-full","tw-overflow-hidden","tw-group"],[1,"tw-absolute","tw-left-0","tw-top-0","tw-bottom-0","tw-w-16","tw-bg-gradient-to-r","tw-from-white","tw-to-transparent","tw-z-10","tw-pointer-events-none"],[1,"tw-absolute","tw-right-0","tw-top-0","tw-bottom-0","tw-w-16","tw-bg-gradient-to-l","tw-from-white","tw-to-transparent","tw-z-10","tw-pointer-events-none"],[1,"tw-flex","tw-py-4"],[2,"touch-action","pan-y",3,"pointerdown","mouseenter","mouseleave","click","dragstart"],[1,"tw-flex","tw-items-center","tw-gap-8","lg:tw-gap-16"],[1,"tw-flex","tw-items-center","tw-justify-center","tw-h-10","lg:tw-h-16","tw-w-28","md:tw-w-36","lg:tw-w-48","tw-shrink-0"],["aria-hidden","true",1,"tw-flex","tw-items-center","tw-gap-8","lg:tw-gap-16"],["target","_blank","rel","noopener noreferrer",1,"tw-block",3,"href"],["draggable","false",1,"tw-max-w-full","tw-max-h-full","tw-object-contain",3,"src","alt"]],template:function(t,i){t&1&&(o(0,"section",1)(1,"h3",2),U(2," Trusted and featured globally "),h(),o(3,"div",3),c(4,"div",4)(5,"div",5),o(6,"n
1av",6)(7,"div",7,0),E("pointerdown",function(s){return i.onPointerDown(s)})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})("click",function(s){return i.onMarqueeClick(s)})("dragstart",function(s){return s.preventDefault()}),o(9,"div",8),f(10,k,3,3,"div",9,F),h(),o(12,"div",10),f(13,I,3,3,"div",9,q),h()()()()()),t&2&&(C("data-aos",i.isAosActive()?"fade-up":null),r(7),L(i.marqueeClass()),r(3),g(i.featuredInLogos),r(3),g(i.featuredInLogos))},encapsulation:2})}}return n})();export{W as FeaturedPressComponent};
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.