import{a as z}from"./chunk-H4NUPMF5.js";import{b as U}from"./chunk-ADA5P7MT.js";import{$ as s,Aa as p,Ba as C,E as f,Ea as I,F as g,Jc as B,Ka as P,La as x,Nb as O,Oc as D,S as h,Sc as E,X as l,_c as F,ba as _,eb as y,ga as b,kb as k,kc as S,la as m,qb as w,qc as T,ta as r,tb as M,ua as a,va as d,vc as V,xc as j,za as v}from"./chunk-YFYLLDKJ.js";import"./chunk-FE5A3QX4.js";import"./chunk-SV3URNO2.js";import"./chunk-5ODJINMI.js";import"./chunk-WBIG3GPZ.js";import"./chunk-G3CV3VGG.js";import"./chunk-ZSXYZYSQ.js";import"./chunk-5MPL5A3U.js";import"./chunk-NKT2XMZU.js";import"./chunk-4U6PRYVA.js";import"./chunk-4YKAI63M.js";import"./chunk-JWIEPCRG.js";import"./chunk-QPVVTFFW.js";import"./chunk-J6ICYO4L.js";import"./chunk-LF5XB4YN.js";import{i as u}from"./chunk-OYAVQN5W.js";function L(i,n){if(i&1){let c=v();r(0,"ion-item",3),p("click",function(){let e=f(c).$implicit,o=C();return g(o.openPdf(e))}),r(1,"div",4)(2,"h1",5),P(3),a(),r(4,"div",6),d(5,"img",7),a()()()}if(i&2){let c=n.$implicit;l(3),x(c.title),l(2),I("alt",c.title),m("src","assets/img/pocket-guide-to-umrah.jpg",h)}}var le=(()=>{let n=class n{constructor(t,e,o){this.sanitizer=t,this.route=e,this.modalCtrl=o,this.activeVideoId=null,this.duas=[{title:"EBook Umrah"}],E({chevronBack:F})}playVideo(t){this.activeVideoId=this.activeVideoId===t?null:t}getSafeUrl(t){let e=new URL(`https://www.youtube-nocookie.com/embed/${t}`);return e.searchParams.set("rel","0"),e.searchParams.set("modestbranding","1"),e.searchParams.set("iv_load_policy","3"),e.searchParams.set("playsinline","1"),this.sanitizer.bypassSecurityTrustResourceUrl(e.toString())}navBook(){this.route.navigateByUrl("burger/home/info")}ngOnInit(){}openPdf(t){return u(this,null,function*(){return yield(yield this.modalCtrl.create({component:z,componentProps:{pdfSrc:t.file,title:t.title},cssClass:"fullscreen-modal"})).present()})}};n.\u0275fac=function(e){return new(e||n)(s(w),s(M),s(B))},n.\u0275cmp=_({type:n,selectors:[["app-doa"]],decls:5,vars:1,consts:[["fill","clear",1,"notification-bell",3,"click"],["slot","icon-only","name","chevron-back"],["class","dua-item","lines","none",3,"click",4,"ngFor","ngForOf"],["lines","none",1,"dua-item",3,"click"],[1,"dua-inner"],[1,"dua-title"],[1,"content"],[1,"video-thumbnail",3,"src","alt"]],template:function(e,o){e&1&&(r(0,"ion-content")(1,"ion-button",0),p("click",function(){return o.navBook()}),d(2,"ion-icon",1),a(),r(3,"ion-list"),b(4,L,6,3,"ion-item",2),a()()),e&2&&(l(4),m("ngForOf",o.duas))},dependencies:[k,y,O,T,V,j,D,S,U],styles:[".video-container[_ngcontent-%COMP%]{width:100%;height:200px;position:relative;display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:8px;overflow:hidden}ion-content[_ngcontent-%COMP%]{--background: url(/assets/bg/dashboard.jpg) no-repeat center center / cover}ion-list[_ngcontent-%COMP%]{--background: transparent!important;--ion-item-background: transparent}ion-list[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.video-thumbnail[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.dua-title[_ngcontent-%COMP%]{text-align:center;font-weight:700;color:#0a6847}.notification-bell[_ngcontent-%COMP%]{position:absolute;top:20px;left:20px;z-index:999;--background: #a57900;--box-shadow: 0 2px 8px rgba(0,0,0,.25);border-radius:50%}.notification-bell[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{color:#fff}"]});let i=n;return i})();export{le as DoaPage};
