-
Notifications
You must be signed in to change notification settings - Fork 0
/
91.306be8513ff41d1c.js
1 lines (1 loc) · 65.7 KB
/
91.306be8513ff41d1c.js
1
"use strict";(self.webpackChunkSharaf_Resume=self.webpackChunkSharaf_Resume||[]).push([[91],{5091:(ot,x,u)=>{u.r(x),u.d(x,{PortfolioModule:()=>st});var d=u(6895),w=u(1493),S=u(4466),e=u(4650),c=(()=>{return(n=c||(c={}))[n.GOOGLE_PLAY=0]="GOOGLE_PLAY",n[n.APPSTORE=1]="APPSTORE",n[n.WEB=2]="WEB",n[n.GITHUB=3]="GITHUB",c;var n})(),p=(()=>{return(n=p||(p={}))[n.WEB=0]="WEB",n[n.DESKTOP=1]="DESKTOP",n[n.MOBILE=2]="MOBILE",n[n.ALL=3]="ALL",p;var n})(),k=u(5861),D=u(4959),I=u(5569),g=u(805);function E(n,o){1&n&&e._UZ(0,"img",2),2&n&&e.Q6J("src",o.$implicit,e.LSH)}let A=(()=>{class n{constructor(){this.currentIndex=0,this.isPreviewOpened=!1,this.isPreviewOpenedChange=new e.vpe,this.responsiveOptions=[{breakpoint:"1200px",numVisible:3,numScroll:3},{breakpoint:"992px",numVisible:2,numScroll:2},{breakpoint:"768px",numVisible:1,numScroll:1}]}visibleChanged(){this.isPreviewOpenedChange.emit(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-full-screen-preview"]],inputs:{images:"images",currentIndex:"currentIndex",isPreviewOpened:"isPreviewOpened"},outputs:{isPreviewOpenedChange:"isPreviewOpenedChange"},decls:2,vars:8,consts:[[3,"value","visible","fullScreen","showItemNavigators","baseZIndex","showThumbnails","circular","activeIndex","visibleChange"],["pTemplate","item"],["alt","image",2,"width","100%","display","block",3,"src"]],template:function(t,i){1&t&&(e.TgZ(0,"p-galleria",0),e.NdJ("visibleChange",function(a){return i.isPreviewOpened=a})("visibleChange",function(){return i.visibleChanged()}),e.YNc(1,E,1,1,"ng-template",1),e.qZA()),2&t&&e.Q6J("value",i.images)("visible",i.isPreviewOpened)("fullScreen",!0)("showItemNavigators",!0)("baseZIndex",1e5)("showThumbnails",!1)("circular",!0)("activeIndex",i.currentIndex)},dependencies:[I.dz,g.jx]}),n})();var L=u(6678);let Z=(()=>{class n{constructor(){this.isLiked=!1}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-love-btn"]],inputs:{isLiked:"isLiked"},decls:7,vars:1,consts:[[1,"like-wrapper",3,"ngClass"],[1,"like-button"],[1,"like-icon"],[1,"heart-animation-1"],[1,"heart-animation-2"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2,"+1"),e.qZA(),e.TgZ(3,"a",1)(4,"span",2),e._UZ(5,"div",3)(6,"div",4),e.qZA()()()),2&t&&e.Q6J("ngClass",i.isLiked?"liked":"")},dependencies:[d.mk],styles:['.like-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.like-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{opacity:0;margin:0 3px;padding-bottom:2px;color:#ff3b3a;filter:var(--backdrop-filter);transition:opacity .25s ease-in-out}.like-wrapper.liked[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{opacity:1;transition:opacity .25s ease-in-out}.like-button[_ngcontent-%COMP%]{border:2px solid #FF3B3A;border-radius:100%;padding:.5rem;color:#ff3b3a;display:flex;align-items:center;justify-content:center;transition:all .25s var(--cubic-bezier);filter:grayscale(100%);-webkit-user-select:none;user-select:none}.like-wrapper.liked[_ngcontent-%COMP%] .like-button[_ngcontent-%COMP%]{filter:var(--backdrop-filter)}.like-button[_ngcontent-%COMP%]:hover{opacity:.8}.like-icon[_ngcontent-%COMP%]{width:18px;height:16px;background:url(like.269ddccbbc3d2379.svg) no-repeat center;background-size:100%;animation:heartUnlike .25s var(--cubic-bezier) both}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%]{animation:heartPulse .25s var(--cubic-bezier) both}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] [class^=heart-animation-][_ngcontent-%COMP%]{background:url(like.269ddccbbc3d2379.svg) no-repeat center;background-size:100%;display:block;position:absolute;top:0;left:0;width:16px;height:14px;opacity:0}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] [class^=heart-animation-][_ngcontent-%COMP%]:before, .like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] [class^=heart-animation-][_ngcontent-%COMP%]:after{content:"";background:inherit;background-size:100%;width:inherit;height:inherit;display:inherit;position:relative;top:inherit;left:inherit;opacity:0}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-1[_ngcontent-%COMP%]{animation:heartFloatMain-1 1s var(--cubic-bezier) both}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-1[_ngcontent-%COMP%]:before, .like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-1[_ngcontent-%COMP%]:after{width:12px;height:10px;visibility:hidden}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-1[_ngcontent-%COMP%]:before{opacity:.6;animation:heartFloatSub-1 1s .25s var(--cubic-bezier) both}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-1[_ngcontent-%COMP%]:after{animation:heartFloatSub-2 1s .15s var(--cubic-bezier) both;opacity:.75}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-2[_ngcontent-%COMP%]{animation:heartFloatMain-2 1s .1s var(--cubic-bezier) both}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-2[_ngcontent-%COMP%]:before, .like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-2[_ngcontent-%COMP%]:after{width:10px;height:8px;visibility:hidden}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-2[_ngcontent-%COMP%]:before{animation:heartFloatSub-3 1s .25s var(--cubic-bezier) both;opacity:.25}.like-wrapper.liked[_ngcontent-%COMP%] .like-icon[_ngcontent-%COMP%] .heart-animation-2[_ngcontent-%COMP%]:after{animation:heartFloatSub-4 1s .15s var(--cubic-bezier) both;opacity:.4}@keyframes heartPulse{0%{transform:scale(1)}50%{transform:scale(1.5)}}@keyframes heartUnlike{50%{transform:scale(.75)}}@keyframes heartFloatMain-1{0%{opacity:0;transform:translate(0) rotate(0)}50%{opacity:1;transform:translateY(-25px) rotate(-20deg)}}@keyframes heartFloatMain-2{0%{opacity:0;transform:translate(0) rotate(0) scale(0)}50%{opacity:.9;transform:translate(-10px,-38px) rotate(25deg) scale(1)}}@keyframes heartFloatSub-1{0%{visibility:hidden;transform:translate(0) rotate(0)}50%{visibility:visible;transform:translate(13px,-13px) rotate(30deg)}}@keyframes heartFloatSub-2{0%{visibility:hidden;transform:translate(0) rotate(0)}50%{visibility:visible;transform:translate(18px,-10px) rotate(55deg)}}@keyframes heartFloatSub-3{0%{visibility:hidden;transform:translate(0) rotate(0)}50%{visibility:visible;transform:translate(-10px,-10px) rotate(-40deg)}to{transform:translate(-50px)}}@keyframes heartFloatSub-4{0%{visibility:hidden;transform:translate(0) rotate(0)}50%{visibility:visible;transform:translate(2px,-18px) rotate(-25deg)}}']}),n})();var _=u(7340),l=u(9592);let z=(()=>{class n{constructor(t){this.el=t}onkeydown(t){if(!0!==this.pFocusTrapDisabled){t.preventDefault();let i=l.p.getFocusableElements(this.el.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let s=i.indexOf(i[0].ownerDocument.activeElement);t.shiftKey?-1==s||0===s?i[i.length-1].focus():i[s-1].focus():-1==s||s===i.length-1?i[0].focus():i[s+1].focus()}else i[0].focus()}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(t,i){1&t&&e.NdJ("keydown.tab",function(a){return i.onkeydown(a)})("keydown.shift.tab",function(a){return i.onkeydown(a)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),n})(),F=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez]}),n})();var v=u(1795),y=u(982);const j=["titlebar"],J=["content"],N=["footer"];function V(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.NdJ("mousedown",function(s){e.CHM(t);const a=e.oxw(3);return e.KtG(a.initResize(s))}),e.qZA()}}function Q(n,o){if(1&n&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.uIk("id",t.id+"-label"),e.xp6(1),e.Oqu(t.header)}}function B(n,o){if(1&n&&(e.TgZ(0,"span",18),e.Hsn(1,1),e.qZA()),2&n){const t=e.oxw(4);e.uIk("id",t.id+"-label")}}function q(n,o){1&n&&e.GkF(0)}const G=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function H(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(t);const s=e.oxw(4);return e.KtG(s.maximize())})("keydown.enter",function(){e.CHM(t);const s=e.oxw(4);return e.KtG(s.maximize())}),e._UZ(1,"span",20),e.qZA()}if(2&n){const t=e.oxw(4);e.Q6J("ngClass",e.DdM(2,G)),e.xp6(1),e.Q6J("ngClass",t.maximized?t.minimizeIcon:t.maximizeIcon)}}const Y=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function R(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(s){e.CHM(t);const a=e.oxw(4);return e.KtG(a.close(s))})("keydown.enter",function(s){e.CHM(t);const a=e.oxw(4);return e.KtG(a.close(s))}),e._UZ(1,"span",22),e.qZA()}if(2&n){const t=e.oxw(4);e.Q6J("ngClass",e.DdM(4,Y)),e.uIk("aria-label",t.closeAriaLabel)("tabindex",t.closeTabindex),e.xp6(1),e.Q6J("ngClass",t.closeIcon)}}function U(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",12,13),e.NdJ("mousedown",function(s){e.CHM(t);const a=e.oxw(3);return e.KtG(a.initDrag(s))}),e.YNc(2,Q,2,2,"span",14),e.YNc(3,B,2,1,"span",14),e.YNc(4,q,1,0,"ng-container",9),e.TgZ(5,"div",15),e.YNc(6,H,2,3,"button",16),e.YNc(7,R,2,5,"button",17),e.qZA()()}if(2&n){const t=e.oxw(3);e.xp6(2),e.Q6J("ngIf",!t.headerFacet&&!t.headerTemplate),e.xp6(1),e.Q6J("ngIf",t.headerFacet),e.xp6(1),e.Q6J("ngTemplateOutlet",t.headerTemplate),e.xp6(2),e.Q6J("ngIf",t.maximizable),e.xp6(1),e.Q6J("ngIf",t.closable)}}function W(n,o){1&n&&e.GkF(0)}function K(n,o){1&n&&e.GkF(0)}function X(n,o){if(1&n&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.YNc(3,K,1,0,"ng-container",9),e.qZA()),2&n){const t=e.oxw(3);e.xp6(3),e.Q6J("ngTemplateOutlet",t.footerTemplate)}}const $=function(n,o,t,i){return{"p-dialog p-component":!0,"p-dialog-rtl":n,"p-dialog-draggable":o,"p-dialog-resizable":t,"p-dialog-maximized":i}},ee=function(n,o){return{transform:n,transition:o}},te=function(n){return{value:"visible",params:n}};function ie(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",3,4),e.NdJ("@animation.start",function(s){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onAnimationStart(s))})("@animation.done",function(s){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onAnimationEnd(s))}),e.YNc(2,V,1,0,"div",5),e.YNc(3,U,8,5,"div",6),e.TgZ(4,"div",7,8),e.Hsn(6),e.YNc(7,W,1,0,"ng-container",9),e.qZA(),e.YNc(8,X,4,1,"div",10),e.qZA()}if(2&n){const t=e.oxw(2);e.Tol(t.styleClass),e.Q6J("ngClass",e.l5B(15,$,t.rtl,t.draggable,t.resizable,t.maximized))("ngStyle",t.style)("pFocusTrapDisabled",!1===t.focusTrap)("@animation",e.VKq(23,te,e.WLB(20,ee,t.transformOptions,t.transitionOptions))),e.uIk("aria-labelledby",t.id+"-label"),e.xp6(2),e.Q6J("ngIf",t.resizable),e.xp6(1),e.Q6J("ngIf",t.showHeader),e.xp6(1),e.Tol(t.contentStyleClass),e.Q6J("ngClass","p-dialog-content")("ngStyle",t.contentStyle),e.xp6(3),e.Q6J("ngTemplateOutlet",t.contentTemplate),e.xp6(1),e.Q6J("ngIf",t.footerFacet||t.footerTemplate)}}const ne=function(n,o,t,i,s,a,r,h,f,m){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":n,"p-dialog-mask-scrollblocker":o,"p-dialog-left":t,"p-dialog-right":i,"p-dialog-top":s,"p-dialog-top-left":a,"p-dialog-top-right":r,"p-dialog-bottom":h,"p-dialog-bottom-left":f,"p-dialog-bottom-right":m}};function se(n,o){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,ie,9,25,"div",2),e.qZA()),2&n){const t=e.oxw();e.Tol(t.maskStyleClass),e.Q6J("ngClass",e.rFY(4,ne,[t.modal,t.modal||t.blockScroll,"left"===t.position,"right"===t.position,"top"===t.position,"topleft"===t.position||"top-left"===t.position,"topright"===t.position||"top-right"===t.position,"bottom"===t.position,"bottomleft"===t.position||"bottom-left"===t.position,"bottomright"===t.position||"bottom-right"===t.position])),e.xp6(1),e.Q6J("ngIf",t.visible)}}const oe=["*",[["p-header"]],[["p-footer"]]],ae=["*","p-header","p-footer"],re=(0,_.oQ)([(0,_.oB)({transform:"{{transform}}",opacity:0}),(0,_.jt)("{{transition}}")]),le=(0,_.oQ)([(0,_.jt)("{{transition}}",(0,_.oB)({transform:"{{transform}}",opacity:0}))]);let ce=(()=>{class n{constructor(t,i,s,a,r){this.el=t,this.renderer=i,this.zone=s,this.cd=a,this.config=r,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new e.vpe,this.onHide=new e.vpe,this.visibleChange=new e.vpe,this.onResizeInit=new e.vpe,this.onResizeEnd=new e.vpe,this.onDragEnd=new e.vpe,this.onMaximize=new e.vpe,this.id=(0,y.Th)(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(t){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(t){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(t){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(t){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this.headerTemplate=t.template;break;case"content":default:this.contentTemplate=t.template;break;case"footer":this.footerTemplate=t.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(t){this._visible=t,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(t){t&&(this._style={...t},this.originalStyle=t)}get position(){return this._position}set position(t){switch(this._position=t,t){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let t=l.p.findSingle(this.container,"[autofocus]");t&&this.zone.runOutsideAngular(()=>{setTimeout(()=>t.focus(),5)})}close(t){this.visibleChange.emit(!1),t.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",t=>{this.wrapper&&this.wrapper.isSameNode(t.target)&&this.close(t)})),this.modal&&l.p.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&l.p.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?l.p.addClass(document.body,"p-overflow-hidden"):l.p.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(y.P9.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let t="";for(let i in this.breakpoints)t+=`\n @media screen and (max-width: ${i}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[i]} !important;\n }\n }\n `;this.styleElement.innerHTML=t}}initDrag(t){l.p.hasClass(t.target,"p-dialog-header-icon")||l.p.hasClass(t.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=t.pageX,this.lastPageY=t.pageY,this.container.style.margin="0",l.p.addClass(document.body,"p-unselectable-text"))}onKeydown(t){if(this.focusTrap&&9===t.which){t.preventDefault();let i=l.p.getFocusableElements(this.container);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let s=i.indexOf(i[0].ownerDocument.activeElement);t.shiftKey?-1==s||0===s?i[i.length-1].focus():i[s-1].focus():-1==s||s===i.length-1?i[0].focus():i[s+1].focus()}else i[0].focus()}}onDrag(t){if(this.dragging){let i=l.p.getOuterWidth(this.container),s=l.p.getOuterHeight(this.container),a=t.pageX-this.lastPageX,r=t.pageY-this.lastPageY,h=this.container.getBoundingClientRect(),f=h.left+a,m=h.top+r,b=l.p.getViewport();this.container.style.position="fixed",this.keepInViewport?(f>=this.minX&&f+i<b.width&&(this._style.left=f+"px",this.lastPageX=t.pageX,this.container.style.left=f+"px"),m>=this.minY&&m+s<b.height&&(this._style.top=m+"px",this.lastPageY=t.pageY,this.container.style.top=m+"px")):(this.lastPageX=t.pageX,this.container.style.left=f+"px",this.lastPageY=t.pageY,this.container.style.top=m+"px")}}endDrag(t){this.dragging&&(this.dragging=!1,l.p.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(t))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(t){this.resizable&&(this.resizing=!0,this.lastPageX=t.pageX,this.lastPageY=t.pageY,l.p.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(t))}onResize(t){if(this.resizing){let i=t.pageX-this.lastPageX,s=t.pageY-this.lastPageY,a=l.p.getOuterWidth(this.container),r=l.p.getOuterHeight(this.container),h=l.p.getOuterHeight(this.contentViewChild.nativeElement),f=a+i,m=r+s,b=this.container.style.minWidth,O=this.container.style.minHeight,P=this.container.getBoundingClientRect(),M=l.p.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(f+=i,m+=s),(!b||f>parseInt(b))&&P.left+f<M.width&&(this._style.width=f+"px",this.container.style.width=this._style.width),(!O||m>parseInt(O))&&P.top+m<M.height&&(this.contentViewChild.nativeElement.style.height=h+m-r+"px",this._style.height&&(this._style.height=m+"px",this.container.style.height=this._style.height)),this.lastPageX=t.pageX,this.lastPageY=t.pageY}}resizeEnd(t){this.resizing&&(this.resizing=!1,l.p.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(t))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.zone.runOutsideAngular(()=>{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",i=>{27==i.which&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):l.p.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(t){switch(t.toState){case"visible":this.container=t.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&l.p.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&l.p.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(t){switch(t.toState){case"void":this.onContainerDestroy(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(l.p.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&l.p.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&y.P9.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(g.b4))},n.\u0275cmp=e.Xpm({type:n,selectors:[["p-dialog"]],contentQueries:function(t,i,s){if(1&t&&(e.Suo(s,g.h4,5),e.Suo(s,g.$_,5),e.Suo(s,g.jx,4)),2&t){let a;e.iGM(a=e.CRH())&&(i.headerFacet=a.first),e.iGM(a=e.CRH())&&(i.footerFacet=a.first),e.iGM(a=e.CRH())&&(i.templates=a)}},viewQuery:function(t,i){if(1&t&&(e.Gf(j,5),e.Gf(J,5),e.Gf(N,5)),2&t){let s;e.iGM(s=e.CRH())&&(i.headerViewChild=s.first),e.iGM(s=e.CRH())&&(i.contentViewChild=s.first),e.iGM(s=e.CRH())&&(i.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:ae,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(t,i){1&t&&(e.F$t(oe),e.YNc(0,se,2,15,"div",0)),2&t&&e.Q6J("ngIf",i.maskVisible)},dependencies:[d.mk,d.O5,d.tP,d.PC,z,v.H],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[(0,_.X$)("animation",[(0,_.eR)("void => visible",[(0,_._7)(re)]),(0,_.eR)("visible => void",[(0,_._7)(le)])])]},changeDetection:0}),n})(),pe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,F,v.T,g.m8]}),n})();const de=["itemsContainer"];function he(n,o){1&n&&e.GkF(0)}function ue(n,o){if(1&n&&(e.TgZ(0,"div",11),e.Hsn(1),e.YNc(2,he,1,0,"ng-container",12),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",t.headerTemplate)}}const me=function(n){return{"p-carousel-prev p-link":!0,"p-disabled":n}},ge=function(n,o){return{"p-carousel-prev-icon pi":!0,"pi-chevron-left":n,"pi-chevron-up":o}};function fe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(s){e.CHM(t);const a=e.oxw();return e.KtG(a.navBackward(s))}),e._UZ(1,"span",2),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,me,t.isBackwardNavDisabled()))("disabled",t.isBackwardNavDisabled()),e.xp6(1),e.Q6J("ngClass",e.WLB(5,ge,!t.isVertical(),t.isVertical()))}}function _e(n,o){1&n&&e.GkF(0)}const T=function(n,o,t){return{"p-carousel-item p-carousel-item-cloned":!0,"p-carousel-item-active":n,"p-carousel-item-start":o,"p-carousel-item-end":t}},C=function(n){return{$implicit:n}};function be(n,o){if(1&n&&(e.TgZ(0,"div",2),e.YNc(1,_e,1,0,"ng-container",14),e.qZA()),2&n){const t=o.$implicit,i=o.index,s=e.oxw();e.Q6J("ngClass",e.kEZ(3,T,-1*s.totalShiftedItems===s.value.length,0===i,s.clonedItemsForStarting.length-1===i)),e.xp6(1),e.Q6J("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",e.VKq(7,C,t))}}function ve(n,o){1&n&&e.GkF(0)}const ye=function(n,o,t){return{"p-carousel-item":!0,"p-carousel-item-active":n,"p-carousel-item-start":o,"p-carousel-item-end":t}};function Ce(n,o){if(1&n&&(e.TgZ(0,"div",2),e.YNc(1,ve,1,0,"ng-container",14),e.qZA()),2&n){const t=o.$implicit,i=o.index,s=e.oxw();e.Q6J("ngClass",e.kEZ(3,ye,s.firstIndex()<=i&&s.lastIndex()>=i,s.firstIndex()===i,s.lastIndex()===i)),e.xp6(1),e.Q6J("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",e.VKq(7,C,t))}}function xe(n,o){1&n&&e.GkF(0)}function we(n,o){if(1&n&&(e.TgZ(0,"div",2),e.YNc(1,xe,1,0,"ng-container",14),e.qZA()),2&n){const t=o.$implicit,i=o.index,s=e.oxw();e.Q6J("ngClass",e.kEZ(3,T,-1*s.totalShiftedItems===s.numVisible,0===i,s.clonedItemsForFinishing.length-1===i)),e.xp6(1),e.Q6J("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",e.VKq(7,C,t))}}const ke=function(n){return{"p-carousel-next p-link":!0,"p-disabled":n}},Te=function(n,o){return{"p-carousel-prev-icon pi":!0,"pi-chevron-right":n,"pi-chevron-down":o}};function Oe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(s){e.CHM(t);const a=e.oxw();return e.KtG(a.navForward(s))}),e._UZ(1,"span",2),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,ke,t.isForwardNavDisabled()))("disabled",t.isForwardNavDisabled()),e.xp6(1),e.Q6J("ngClass",e.WLB(5,Te,!t.isVertical(),t.isVertical()))}}const Pe=function(n){return{"p-carousel-indicator":!0,"p-highlight":n}};function Me(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"li",2)(1,"button",15),e.NdJ("click",function(s){const r=e.CHM(t).index,h=e.oxw(2);return e.KtG(h.onDotClick(s,r))}),e.qZA()()}if(2&n){const t=o.index,i=e.oxw(2);e.Q6J("ngClass",e.VKq(5,Pe,i._page===t)),e.xp6(1),e.Tol(i.indicatorStyleClass),e.Q6J("ngClass","p-link")("ngStyle",i.indicatorStyle)}}function Se(n,o){if(1&n&&(e.TgZ(0,"ul",0),e.YNc(1,Me,2,7,"li",8),e.qZA()),2&n){const t=e.oxw();e.Tol(t.indicatorsContentClass),e.Q6J("ngClass","p-carousel-indicators p-reset")("ngStyle",t.indicatorsContentStyle),e.xp6(1),e.Q6J("ngForOf",t.totalDotsArray())}}function De(n,o){1&n&&e.GkF(0)}function Ie(n,o){if(1&n&&(e.TgZ(0,"div",16),e.Hsn(1,1),e.YNc(2,De,1,0,"ng-container",12),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",t.footerTemplate)}}const Ee=[[["p-header"]],[["p-footer"]]],Ae=function(n,o){return{"p-carousel p-component":!0,"p-carousel-vertical":n,"p-carousel-horizontal":o}},Le=function(n){return{height:n}},Ze=["p-header","p-footer"];let ze=(()=>{class n{constructor(t,i,s){this.el=t,this.zone=i,this.cd=s,this.orientation="horizontal",this.verticalViewPortHeight="300px",this.contentClass="",this.indicatorsContentClass="",this.indicatorStyleClass="",this.circular=!1,this.showIndicators=!0,this.showNavigators=!0,this.autoplayInterval=0,this.onPage=new e.vpe,this._numVisible=1,this._numScroll=1,this._oldNumScroll=0,this.prevState={numScroll:0,numVisible:0,value:[]},this.defaultNumScroll=1,this.defaultNumVisible=1,this._page=0,this.isRemainingItemsAdded=!1,this.remainingItems=0,this.swipeThreshold=20,this.totalShiftedItems=this.page*this.numScroll*-1}get page(){return this._page}set page(t){this.isCreated&&t!==this._page&&(this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),t>this._page&&t<=this.totalDots()-1?this.step(-1,t):t<this._page&&this.step(1,t)),this._page=t}get numVisible(){return this._numVisible}set numVisible(t){this._numVisible=t}get numScroll(){return this._numVisible}set numScroll(t){this._numScroll=t}get value(){return this._value}set value(t){this._value=t}ngOnChanges(t){t.value&&this.circular&&this._value&&this.setCloneItems(),this.isCreated&&(t.numVisible&&(this.responsiveOptions&&(this.defaultNumVisible=this.numVisible),this.isCircular()&&this.setCloneItems(),this.createStyle(),this.calculatePosition()),t.numScroll&&this.responsiveOptions&&(this.defaultNumScroll=this.numScroll))}ngAfterContentInit(){this.id=(0,y.Th)(),this.allowAutoplay=!!this.autoplayInterval,this.circular&&this.setCloneItems(),this.responsiveOptions&&(this.defaultNumScroll=this._numScroll,this.defaultNumVisible=this._numVisible),this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners(),this.templates.forEach(t=>{switch(t.getType()){case"item":default:this.itemTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"footer":this.footerTemplate=t.template}})}ngAfterContentChecked(){const t=this.isCircular();let i=this.totalShiftedItems;if(this.value&&this.itemsContainer&&(this.prevState.numScroll!==this._numScroll||this.prevState.numVisible!==this._numVisible||this.prevState.value.length!==this.value.length)){this.autoplayInterval&&this.stopAutoplay(),this.remainingItems=(this.value.length-this._numVisible)%this._numScroll;let s=this._page;0!==this.totalDots()&&s>=this.totalDots()&&(s=this.totalDots()-1,this._page=s,this.onPage.emit({page:this.page})),i=s*this._numScroll*-1,t&&(i-=this._numVisible),s===this.totalDots()-1&&this.remainingItems>0?(i+=-1*this.remainingItems+this._numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,i!==this.totalShiftedItems&&(this.totalShiftedItems=i),this._oldNumScroll=this._numScroll,this.prevState.numScroll=this._numScroll,this.prevState.numVisible=this._numVisible,this.prevState.value=[...this._value],this.totalDots()>0&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${i*(100/this._numVisible)}%, 0)`:`translate3d(${i*(100/this._numVisible)}%, 0, 0)`),this.isCreated=!0,this.autoplayInterval&&this.isAutoplay()&&this.startAutoplay()}t&&(0===this.page?i=-1*this._numVisible:0===i&&(i=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),i!==this.totalShiftedItems&&(this.totalShiftedItems=i))}createStyle(){this.carouselStyle||(this.carouselStyle=document.createElement("style"),this.carouselStyle.type="text/css",document.body.appendChild(this.carouselStyle));let t=`\n #${this.id} .p-carousel-item {\n\t\t\t\tflex: 1 0 ${100/this.numVisible}%\n\t\t\t}\n `;if(this.responsiveOptions){this.responsiveOptions.sort((i,s)=>{const a=i.breakpoint,r=s.breakpoint;let h=null;return h=null==a&&null!=r?-1:null!=a&&null==r?1:null==a&&null==r?0:"string"==typeof a&&"string"==typeof r?a.localeCompare(r,void 0,{numeric:!0}):a<r?-1:a>r?1:0,-1*h});for(let i=0;i<this.responsiveOptions.length;i++){let s=this.responsiveOptions[i];t+=`\n @media screen and (max-width: ${s.breakpoint}) {\n #${this.id} .p-carousel-item {\n flex: 1 0 ${100/s.numVisible}%\n }\n }\n `}}this.carouselStyle.innerHTML=t}calculatePosition(){if(this.responsiveOptions){let t=window.innerWidth,i={numVisible:this.defaultNumVisible,numScroll:this.defaultNumScroll};for(let s=0;s<this.responsiveOptions.length;s++){let a=this.responsiveOptions[s];parseInt(a.breakpoint,10)>=t&&(i=a)}if(this._numScroll!==i.numScroll){let s=this._page;s=Math.floor(s*this._numScroll/i.numScroll);let a=i.numScroll*this.page*-1;this.isCircular()&&(a-=i.numVisible),this.totalShiftedItems=a,this._numScroll=i.numScroll,this._page=s,this.onPage.emit({page:this.page})}this._numVisible!==i.numVisible&&(this._numVisible=i.numVisible,this.setCloneItems()),this.cd.markForCheck()}}setCloneItems(){this.clonedItemsForStarting=[],this.clonedItemsForFinishing=[],this.isCircular()&&(this.clonedItemsForStarting.push(...this.value.slice(-1*this._numVisible)),this.clonedItemsForFinishing.push(...this.value.slice(0,this._numVisible)))}firstIndex(){return this.isCircular()?-1*(this.totalShiftedItems+this.numVisible):-1*this.totalShiftedItems}lastIndex(){return this.firstIndex()+this.numVisible-1}totalDots(){return this.value?Math.ceil((this.value.length-this._numVisible)/this._numScroll)+1:0}totalDotsArray(){const t=this.totalDots();return t<=0?[]:Array(t).fill(0)}isVertical(){return"vertical"===this.orientation}isCircular(){return this.circular&&this.value&&this.value.length>=this.numVisible}isAutoplay(){return this.autoplayInterval&&this.allowAutoplay}isForwardNavDisabled(){return this.isEmpty()||this._page>=this.totalDots()-1&&!this.isCircular()}isBackwardNavDisabled(){return this.isEmpty()||this._page<=0&&!this.isCircular()}isEmpty(){return!this.value||0===this.value.length}navForward(t,i){(this.isCircular()||this._page<this.totalDots()-1)&&this.step(-1,i),this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),t&&t.cancelable&&t.preventDefault()}navBackward(t,i){(this.isCircular()||0!==this._page)&&this.step(1,i),this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),t&&t.cancelable&&t.preventDefault()}onDotClick(t,i){let s=this._page;this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),i>s?this.navForward(t,i):i<s&&this.navBackward(t,i)}step(t,i){let s=this.totalShiftedItems;const a=this.isCircular();null!=i?(s=this._numScroll*i*-1,a&&(s-=this._numVisible),this.isRemainingItemsAdded=!1):(s+=this._numScroll*t,this.isRemainingItemsAdded&&(s+=this.remainingItems-this._numScroll*t,this.isRemainingItemsAdded=!1),i=Math.abs(Math.floor((a?s+this._numVisible:s)/this._numScroll))),a&&this.page===this.totalDots()-1&&-1===t?(s=-1*(this.value.length+this._numVisible),i=0):a&&0===this.page&&1===t?(s=0,i=this.totalDots()-1):i===this.totalDots()-1&&this.remainingItems>0&&(s+=-1*this.remainingItems-this._numScroll*t,this.isRemainingItemsAdded=!0),this.itemsContainer&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${s*(100/this._numVisible)}%, 0)`:`translate3d(${s*(100/this._numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=s,this._page=i,this.onPage.emit({page:this.page})}startAutoplay(){this.interval=setInterval(()=>{this.totalDots()>0&&(this.page===this.totalDots()-1?this.step(-1,0):this.step(-1,this.page+1))},this.autoplayInterval)}stopAutoplay(){this.interval&&clearInterval(this.interval)}onTransitionEnd(){this.itemsContainer&&(this.itemsContainer.nativeElement.style.transition="",(0===this.page||this.page===this.totalDots()-1)&&this.isCircular()&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${this.totalShiftedItems*(100/this._numVisible)}%, 0)`:`translate3d(${this.totalShiftedItems*(100/this._numVisible)}%, 0, 0)`))}onTouchStart(t){let i=t.changedTouches[0];this.startPos={x:i.pageX,y:i.pageY}}onTouchMove(t){t.cancelable&&t.preventDefault()}onTouchEnd(t){let i=t.changedTouches[0];this.isVertical()?this.changePageOnTouch(t,i.pageY-this.startPos.y):this.changePageOnTouch(t,i.pageX-this.startPos.x)}changePageOnTouch(t,i){Math.abs(i)>this.swipeThreshold&&(i<0?this.navForward(t):this.navBackward(t))}bindDocumentListeners(){this.documentResizeListener||(this.documentResizeListener=t=>{this.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))}unbindDocumentListeners(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["p-carousel"]],contentQueries:function(t,i,s){if(1&t&&(e.Suo(s,g.h4,5),e.Suo(s,g.$_,5),e.Suo(s,g.jx,4)),2&t){let a;e.iGM(a=e.CRH())&&(i.headerFacet=a.first),e.iGM(a=e.CRH())&&(i.footerFacet=a.first),e.iGM(a=e.CRH())&&(i.templates=a)}},viewQuery:function(t,i){if(1&t&&e.Gf(de,5),2&t){let s;e.iGM(s=e.CRH())&&(i.itemsContainer=s.first)}},hostAttrs:[1,"p-element"],inputs:{page:"page",numVisible:"numVisible",numScroll:"numScroll",responsiveOptions:"responsiveOptions",orientation:"orientation",verticalViewPortHeight:"verticalViewPortHeight",contentClass:"contentClass",indicatorsContentClass:"indicatorsContentClass",indicatorsContentStyle:"indicatorsContentStyle",indicatorStyleClass:"indicatorStyleClass",indicatorStyle:"indicatorStyle",value:"value",circular:"circular",showIndicators:"showIndicators",showNavigators:"showNavigators",autoplayInterval:"autoplayInterval",style:"style",styleClass:"styleClass"},outputs:{onPage:"onPage"},features:[e.TTD],ngContentSelectors:Ze,decls:14,vars:22,consts:[[3,"ngClass","ngStyle"],["class","p-carousel-header",4,"ngIf"],[3,"ngClass"],[1,"p-carousel-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-carousel-items-content",3,"ngStyle"],[1,"p-carousel-items-container",3,"transitionend","touchend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-carousel-footer",4,"ngIf"],[1,"p-carousel-header"],[4,"ngTemplateOutlet"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"ngClass","ngStyle","click"],[1,"p-carousel-footer"]],template:function(t,i){1&t&&(e.F$t(Ee),e.TgZ(0,"div",0),e.YNc(1,ue,3,1,"div",1),e.TgZ(2,"div",2)(3,"div",3),e.YNc(4,fe,2,8,"button",4),e.TgZ(5,"div",5)(6,"div",6,7),e.NdJ("transitionend",function(){return i.onTransitionEnd()})("touchend",function(a){return i.onTouchEnd(a)})("touchstart",function(a){return i.onTouchStart(a)})("touchmove",function(a){return i.onTouchMove(a)}),e.YNc(8,be,2,9,"div",8),e.YNc(9,Ce,2,9,"div",8),e.YNc(10,we,2,9,"div",8),e.qZA()(),e.YNc(11,Oe,2,8,"button",4),e.qZA(),e.YNc(12,Se,2,5,"ul",9),e.qZA(),e.YNc(13,Ie,3,1,"div",10),e.qZA()),2&t&&(e.Tol(i.styleClass),e.Q6J("ngClass",e.WLB(17,Ae,i.isVertical(),!i.isVertical()))("ngStyle",i.style),e.uIk("id",i.id),e.xp6(1),e.Q6J("ngIf",i.headerFacet||i.headerTemplate),e.xp6(1),e.Tol(i.contentClass),e.Q6J("ngClass","p-carousel-content"),e.xp6(2),e.Q6J("ngIf",i.showNavigators),e.xp6(1),e.Q6J("ngStyle",e.VKq(20,Le,i.isVertical()?i.verticalViewPortHeight:"auto")),e.xp6(3),e.Q6J("ngForOf",i.clonedItemsForStarting),e.xp6(1),e.Q6J("ngForOf",i.value),e.xp6(1),e.Q6J("ngForOf",i.clonedItemsForFinishing),e.xp6(1),e.Q6J("ngIf",i.showNavigators),e.xp6(1),e.Q6J("ngIf",i.showIndicators),e.xp6(1),e.Q6J("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[d.mk,d.sg,d.O5,d.tP,d.PC,v.H],styles:[".p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}\n"],encapsulation:2,changeDetection:0}),n})(),Fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,g.m8,v.T,d.ez,g.m8]}),n})();function je(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.Oqu(t)}}function Je(n,o){if(1&n&&(e.TgZ(0,"div",15),e.YNc(1,je,2,1,"span",16),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.project.technologiesTags)}}function Ne(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",20),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.showImagePreviewer(a))}),e._UZ(1,"img",21),e.qZA()}if(2&n){const t=o.$implicit;e.xp6(1),e.Q6J("src",t,e.LSH)}}function Ve(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"h4",17),e._uU(2,"Screenshots"),e.qZA(),e.TgZ(3,"p-carousel",18),e.YNc(4,Ne,2,1,"ng-template",19),e.qZA()()),2&n){const t=e.oxw();e.xp6(3),e.Q6J("value",t.project.screenshots)("numVisible",4)("numScroll",4)("responsiveOptions",t.responsiveOptions)}}function Qe(n,o){if(1&n&&(e.TgZ(0,"button",24),e._UZ(1,"img",25),e.TgZ(2,"div",26)(3,"p"),e._uU(4,"Available on the"),e.qZA(),e.TgZ(5,"h5"),e._uU(6,"App Store"),e.qZA()()()),2&n){const t=e.oxw().$implicit;e.Q6J("appExternalUrl",t.url)}}function Be(n,o){if(1&n&&(e.TgZ(0,"button",24),e._UZ(1,"img",27),e.TgZ(2,"div",26)(3,"p"),e._uU(4,"GET IT ON"),e.qZA(),e.TgZ(5,"h5"),e._uU(6,"Google Play"),e.qZA()()()),2&n){const t=e.oxw().$implicit;e.Q6J("appExternalUrl",t.url)}}function qe(n,o){if(1&n&&(e.TgZ(0,"button",24),e._UZ(1,"img",28),e.TgZ(2,"div",26)(3,"p"),e._uU(4,"Visit on"),e.qZA(),e.TgZ(5,"h5"),e._uU(6,"Website"),e.qZA()()()),2&n){const t=e.oxw().$implicit;e.Q6J("appExternalUrl",t.url)}}function Ge(n,o){if(1&n&&(e.TgZ(0,"button",24),e._UZ(1,"img",29),e.TgZ(2,"div",26)(3,"p"),e._uU(4,"Available on"),e.qZA(),e.TgZ(5,"h5"),e._uU(6,"GitHub"),e.qZA()()()),2&n){const t=e.oxw().$implicit;e.Q6J("appExternalUrl",t.url)}}function He(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Qe,7,1,"button",23),e.YNc(2,Be,7,1,"button",23),e.YNc(3,qe,7,1,"button",23),e.YNc(4,Ge,7,1,"button",23),e.BQk()),2&n){const t=o.$implicit,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.type==i.LinkEnum.APPSTORE),e.xp6(1),e.Q6J("ngIf",t.type==i.LinkEnum.GOOGLE_PLAY),e.xp6(1),e.Q6J("ngIf",t.type==i.LinkEnum.WEB),e.xp6(1),e.Q6J("ngIf",t.type==i.LinkEnum.GITHUB)}}function Ye(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"h4",17),e._uU(2,"Links"),e.qZA(),e.TgZ(3,"div",22),e.YNc(4,He,5,4,"ng-container",16),e.qZA()()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngForOf",t.project.links)}}const Re=function(){return{width:"96%",height:"98%",maxHeight:"98%"}};let Ue=(()=>{class n{constructor(t){this.firestore=t,this._subscriptions=[],this.LinkEnum=c,this.isPreviewOpened=!1,this.isLiked=!1,this.currentIndex=0,this.responsiveOptions=[{breakpoint:"1200px",numVisible:3,numScroll:3},{breakpoint:"992px",numVisible:2,numScroll:2},{breakpoint:"768px",numVisible:1,numScroll:1}],this.isVisible=!1}ngOnInit(){}ngOnDestroy(){this._subscriptions.forEach(t=>t.unsubscribe())}showImagePreviewer(t){this.currentIndex=this.project.screenshots.indexOf(t),this.isPreviewOpened=!0}closeModal(){this.isVisible=!this.isVisible}likeProject(t){var i=this;return(0,k.Z)(function*(){if(!i.isLiked){i.isLiked=!0;const s=yield i.firestore.collection("likes").doc(t).get().subscribe({next:(a=(0,k.Z)(function*(r){if(r.exists){const h=r.data();yield r.ref.update({likes:+h.likes+1})}else yield r.ref.set({likes:1})}),function(h){return a.apply(this,arguments)}),error:a=>{console.log("likeProject function error: ",a)},complete:()=>{setTimeout(()=>{i.isLiked=!1},500)}});i._subscriptions.push(s)}var a})()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(D.ST))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-project-details-modal"]],inputs:{project:"project",isVisible:"isVisible",onClose:"onClose"},decls:22,vars:19,consts:[[3,"visible","draggable","modal","resizable","showHeader","onHide","visibleChange"],[1,"close-btn",3,"click"],[1,"pi","pi-times"],[1,"header"],["alt","",3,"src"],[1,"body","text-left","overflow-y-scroll"],[1,"content"],[1,"title"],[3,"isLiked","click"],[1,"mt-3"],["class","tags my-1",4,"ngIf"],[1,"mt-4"],[1,"mt-2"],["class","mt-4",4,"ngIf"],[3,"images","currentIndex","isPreviewOpened","isPreviewOpenedChange"],[1,"tags","my-1"],[4,"ngFor","ngForOf"],[1,"mb-2"],[3,"value","numVisible","numScroll","responsiveOptions"],["pTemplate","item"],[1,"screenshot-img",3,"click"],["alt","","width","200",1,"cursor-pointer",3,"src"],[1,"flex","flex-wrap"],["class","social-btn","target","_blank",3,"appExternalUrl",4,"ngIf"],["target","_blank",1,"social-btn",3,"appExternalUrl"],["src","assets/apple.png","alt","","width","36"],[1,"mx-2"],["src","assets/google-play.png","alt","","width","36"],["src","assets/web.png","alt","","width","36"],["src","assets/github.png","alt","","width","36"]],template:function(t,i){1&t&&(e.TgZ(0,"p-dialog",0),e.NdJ("onHide",function(){return i.onClose()})("visibleChange",function(a){return i.isVisible=a}),e.TgZ(1,"button",1),e.NdJ("click",function(){return i.closeModal()}),e._UZ(2,"i",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"img",4),e.qZA(),e.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"h1"),e._uU(9),e.qZA(),e.TgZ(10,"app-love-btn",8),e.NdJ("click",function(){return i.likeProject(i.project.name)}),e.qZA()(),e.TgZ(11,"p",9),e._uU(12),e.qZA(),e.YNc(13,Je,2,1,"div",10),e.TgZ(14,"div",11)(15,"h4"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"p",12),e._uU(18),e.qZA()(),e.YNc(19,Ve,5,4,"div",13),e.YNc(20,Ye,5,1,"div",13),e.qZA()()(),e.TgZ(21,"app-full-screen-preview",14),e.NdJ("isPreviewOpenedChange",function(a){return i.isPreviewOpened=a}),e.qZA()),2&t&&(e.Akn(e.DdM(18,Re)),e.Q6J("visible",i.isVisible)("draggable",!1)("modal",!0)("resizable",!1)("showHeader",!1),e.xp6(4),e.Q6J("src",i.project.image,e.LSH),e.xp6(5),e.Oqu(i.project.name),e.xp6(1),e.Q6J("isLiked",i.isLiked),e.xp6(2),e.Oqu(i.project.smallDescription),e.xp6(1),e.Q6J("ngIf",i.project.technologiesTags.length),e.xp6(5),e.Oqu(i.project.description),e.xp6(1),e.Q6J("ngIf",i.project.screenshots.length),e.xp6(1),e.Q6J("ngIf",i.project.links.length),e.xp6(1),e.Q6J("images",i.project.screenshots)("currentIndex",i.currentIndex)("isPreviewOpened",i.isPreviewOpened))},dependencies:[A,L.o,Z,d.sg,d.O5,ce,g.jx,ze],styles:[".header[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;z-index:-1}.header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:400px;width:100%;object-fit:cover}.close-btn[_ngcontent-%COMP%]{margin:0;padding:5px;display:flex;justify-content:center;align-content:center;align-items:center;cursor:pointer;position:absolute;top:8px;right:8px;z-index:3}.body[_ngcontent-%COMP%]{z-index:1;height:100%}.content[_ngcontent-%COMP%]{padding:400px 10px 10px;background:linear-gradient(to top,var(--background-darker-clr) 0%,var(--background-darker-clr) calc(100% - 400px),rgba(255,255,255,0) 100%)}.content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.body.overflow-y-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--background-darker-clr)}.content[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{flex-flow:wrap;display:flex}.content[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:2px 6px;border-radius:50px;background:var(--primary-clr);margin:2px 3px}div.screenshot-img[_ngcontent-%COMP%]{height:500px;margin:auto;padding:3px}div.screenshot-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:15px}button.social-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:15px;cursor:pointer;padding:10px;height:60px;width:175px}button.social-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px}"]}),n})();const We=["detailsModal"];function Ke(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.Oqu(t)}}function Xe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw();return e.KtG(r.openDetailsModal(a))}),e.TgZ(1,"div",11),e._UZ(2,"img",12),e.TgZ(3,"div",13)(4,"h3"),e._uU(5),e.qZA(),e.TgZ(6,"p"),e._uU(7),e.qZA(),e.TgZ(8,"div",14),e.YNc(9,Ke,2,1,"span",15),e.qZA()()()()}if(2&n){const t=o.$implicit;e.xp6(2),e.Q6J("src",t.image,e.LSH),e.xp6(3),e.Oqu(t.name),e.xp6(2),e.Oqu(t.smallDescription),e.xp6(2),e.Q6J("ngForOf",t.technologiesTags)}}function $e(n,o){}let et=(()=>{class n{constructor(){this.projectType=p.ALL,this.ProjectTypeEnum=p}ngOnInit(){this.projects=[{name:"MCQ-EYE",smallDescription:"The Solution for Multiple Choice Question Grading and Analysis.",image:"https://imgur.com/PZUCJ7h.png",description:"The Solution for Multiple Choice Question Grading and Analysis that grade and analyze papers in just seconds with high performance and accurate results and generate reports in just seconds with different forms and formats.",links:[{type:c.WEB,url:"https://mcqeye.github.io/"}],type:[p.DESKTOP],technologiesTags:["Java","JavaFx","OpenCV"],screenshots:["https://mcqeye.github.io/images/snip111.PNG","https://mcqeye.github.io/images/snip2.PNG","https://mcqeye.github.io/images/snip3.PNG","https://mcqeye.github.io/images/snip4.PNG","https://mcqeye.github.io/images/snip5.PNG","https://mcqeye.github.io/images/snip6.PNG","https://mcqeye.github.io/images/snip7.PNG"]},{name:"Alghezaa Alshafi",smallDescription:"An e-commerce website for Honey Products.",image:"https://imgur.com/IQxa2Zp.png",description:"An E-Commerce Website for honey products where the users can view all honey products and their details and contact with the shop as easy as possible and the Admin manages the products from the Admin Dashboard.",links:[{type:c.WEB,url:"https://alghezaa-alshafi.github.io/"}],type:[p.WEB],technologiesTags:["HTML","CSS","Bootstrap","jQuery","Firebase"],screenshots:["https://imgur.com/6wSv9A4.png","https://imgur.com/Sw372UI.png","https://imgur.com/BZ0OBZp.png","https://imgur.com/RdI3SCN.png"]},{name:"Gebak",smallDescription:"Multi Vendor E-Commerce Website and Mobile App for all the Life necessities.",image:"https://imgur.com/ClgZ95q.png",description:"A Multi-Vendor E-Commerce Website and Mobile App that provides all the necessities of life at the lowest prices and the best offers and discounts via application in an easy and fast way.",links:[{type:c.GOOGLE_PLAY,url:"https://play.google.com/store/apps/details?id=com.gebak.gebak"},{type:c.APPSTORE,url:"https://apps.apple.com/eg/app/gebak/id1549768317"},{type:c.WEB,url:"https://gebak-eg.com/"}],type:[p.WEB,p.MOBILE],technologiesTags:["Flutter","Dart","Node.js","Express.js","MongoDB","Bootstrap","jQuery","Webpack"],screenshots:["https://imgur.com/GUrlR6R.png","https://imgur.com/SSavcYz.png","https://imgur.com/0Y3bN96.png","https://imgur.com/S8NbJHJ.png","https://imgur.com/OngzSEc.png","https://imgur.com/I9P6CBm.png","https://imgur.com/gp15slv.png","https://imgur.com/SGG5G51.png"]},{name:"Shawar Shop",smallDescription:"Single Vendor E-Commerce Website for Shawar Brand.",image:"https://imgur.com/C9eSPVZ.png",description:"An E-Commerce Website for Shawar brand where the users can select the products, make an order and track it as easy as possible and the Admin manages the products and orders from the Admin Dashboard.",links:[{type:c.GOOGLE_PLAY,url:"https://play.google.com/store/apps/details?id=com.shawarshop.shawar_shop"},{type:c.APPSTORE,url:"https://apps.apple.com/eg/app/shawar-shop/id1563585115"},{type:c.WEB,url:"https://eg.shawarshop.com/"}],type:[p.WEB,p.MOBILE],technologiesTags:["Flutter","Dart","Node.js","Express.js","MongoDB","Bootstrap","jQuery","Webpack"],screenshots:["https://imgur.com/EEe54Qj.png","https://imgur.com/zg02n4r.png","https://imgur.com/qUIU2ny.png","https://imgur.com/YkVxPBI.png","https://imgur.com/BDJZMiC.png","https://imgur.com/UlP95Ix.png","https://imgur.com/kbMlh4M.png"]},{name:"Educate Me",smallDescription:"Educational app to facilitate the basic education process.",image:"https://imgur.com/mNf6acW.png",description:"Educate Me is a Cross Platform Mobile App made using Flutter and Dart and Web Admin Panel that aims to connect students, teachers, parents and schools under the same platform and provide services that facilitate the educational process for each individual participant and increase the efficiency of the evaluation system as well as administrative services that work to link Schools, educational directorates, and the Ministry under the same platform.",links:[{type:c.GOOGLE_PLAY,url:"https://play.google.com/store/apps/details?id=com.hyperdev.educate_me"},{type:c.WEB,url:"https://educate-me.netlify.com/"}],type:[p.MOBILE,p.WEB],technologiesTags:["Flutter","Dart","Html","CSS","Bootstrap","Firebase"],screenshots:["https://imgur.com/GrOXaF4.png","https://imgur.com/Rihf17O.png","https://imgur.com/J5c9Hbr.png","https://imgur.com/RlK24xA.png","https://imgur.com/mPdhVbB.png","https://imgur.com/cqU8KWY.png","https://imgur.com/W8tcB5R.png"]},{name:"Lands-Co",smallDescription:"Offline data viewer App For Armed Forces Lands Projects Authority.",image:"https://i.imgur.com/M8emSDG.png",description:"Lands-Co is an offline data viewer program that gets data from Lands-Co Collector as JSON files and displays in an awesome way for users to find out the latest news in terms of weather conditions, corona statistics, prayer times, today's matches, and currencies price.",links:[{type:c.GITHUB,url:"https://github.com/MahmoudSharaf55/Lands-Co"}],type:[p.DESKTOP],technologiesTags:["Node.js","Electron.js","Socket.io"],screenshots:["https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Co/master/screenshots/screen1.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Co/master/screenshots/screen3.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Co/master/screenshots/screen4.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Co/master/screenshots/screen5.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Co/master/screenshots/screen2.png"]},{name:"Lands-Notify",smallDescription:"Database Change Notification App For Armed Forces Lands Projects Authority.",image:"https://i.imgur.com/2BozcxC.png",description:"Lands Notify is a database change notification (DCN) program where the client registers its interest to the result of certain queries with the database. When the objects associated with these queries change, the database server notifies the client by showing a small notify banner, playing sound, and running an EXE file if exists.",links:[{type:c.GITHUB,url:"https://github.com/MahmoudSharaf55/Lands-Notify"}],type:[p.DESKTOP],technologiesTags:["Java","JavaFx","Oracle","JFoenix"],screenshots:["https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Notify/master/screenshots/screenshot1.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Notify/master/resources/i.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Notify/master/resources/mail.png","https://raw.githubusercontent.com/MahmoudSharaf55/Lands-Notify/master/resources/1.png"]},{name:"Chat Fuss",smallDescription:"A Free Chat Room Web Application.",image:"https://i.imgur.com/W3ME85q.png",description:"Chat Fuss is a Free Chat Room Web Application where you can have live chat with others, any time you can start a private conversation, share your location, images, and voice notes. No download, no setup & no registration is needed.",links:[{type:c.WEB,url:"https://chatfuss.herokuapp.com/"},{type:c.GITHUB,url:"https://github.com/MahmoudSharaf55/Chat-Fuss"}],type:[p.WEB],technologiesTags:["Node.js","Express.js","Socket.io"],screenshots:["https://imgur.com/A6HqBJE.png","https://imgur.com/yHTgLCv.png","https://imgur.com/H6Filkn.png"]},{name:"Dpro Doctor Archiving",smallDescription:"App for archiving and saving Medical information.",image:"https://i.imgur.com/sRW7qQ8.png",description:"The first technology of its kind around the world to archive and preserve medical information To keep pace with the development in the field of automation, which is the medical field at its head, and to help medical centers and dispensaries in managing their business easily and smoothly and to ensure complete comfort for the patient, the doctor and the administrator in charge, work has been done to implement (the application of an archiving system for the doctor, Dpro Doctor Archiving. This application helps doctors to archive patients' information just by pressing a button.",links:[{type:c.GOOGLE_PLAY,url:"https://play.google.com/store/apps/details?id=com.dpro.archiving"}],type:[p.MOBILE],technologiesTags:["Flutter","Dart","Firebase","SQLite"],screenshots:["https://imgur.com/WbXOFen.png","https://imgur.com/6GB88nq.png","https://imgur.com/nl1bXP3.png","https://imgur.com/46m0vhG.png","https://imgur.com/0Ldq6sr.png","https://imgur.com/J7l62TP.png","https://imgur.com/6kfuWz9.png","https://imgur.com/DVIccho.png"]},{name:"Ehtfal",smallDescription:"App for booking hotel halls, wedding palaces and rest houses.",image:"https://imgur.com/yg8c6u4.png",description:"An application dedicated to booking hotel halls, wedding palaces and rest houses, and is characterized by the ease of searching for the intended halls, knowing their features and capacity in terms of people, and booking them easily.",links:[{type:c.WEB,url:"https://ehtfal.alhulol.com/"},{type:c.GOOGLE_PLAY,url:"https://play.google.com/store/apps/details?id=com.ihtefal"}],type:[p.MOBILE],technologiesTags:["Flutter","Dart","GetX"],screenshots:["https://imgur.com/ZQbepWG.png","https://imgur.com/X9d8JL8.png","https://imgur.com/7uR0IAf.png","https://imgur.com/PjLZ28A.png","https://imgur.com/1HN06kB.png","https://imgur.com/wZyOfJS.png","https://imgur.com/wSgnQtL.png","https://imgur.com/RKzRobi.png"]},{name:"Ibrahim Kholef",smallDescription:"App for Ibrahim Kholef who is a Member of Parliament.",image:"https://imgur.com/k7qKKTE.png",description:"The application aims to facilitate citizens to raise their requests for discussion by the House of Representatives, follow up on their requests and receive responses through the application in a quick and easy way.",links:[{type:c.GOOGLE_PLAY,url:"https://play.google.com/store/apps/details?id=com.ibrahim.ibrahim_kholef"}],type:[p.MOBILE],technologiesTags:["Flutter","Dart"],screenshots:["https://imgur.com/Kr6Chfg.png","https://imgur.com/YIJHVqo.png","https://imgur.com/bt6wTSa.png","https://imgur.com/1fkzE2n.png","https://imgur.com/b3zqUNl.png","https://imgur.com/AHwhSvA.png"]}],this.filteredProjects=this.projects}openDetailsModal(t){const i=this.detailsModalRef.createComponent(Ue);i.instance.isVisible=!0,i.instance.project=t,i.instance.onClose=()=>{this.detailsModalRef.clear()}}changeType(t){if(t!=this.projectType){if(this.projectType=t,t==p.ALL)return void(this.filteredProjects=this.projects);this.filteredProjects=this.projects.filter(i=>i.type.indexOf(t)>=0)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-portfolio"]],viewQuery:function(t,i){if(1&t&&e.Gf(We,7,e.s_b),2&t){let s;e.iGM(s=e.CRH())&&(i.detailsModalRef=s.first)}},decls:20,vars:5,consts:[[1,"px-4","py-3","h-full","overflow-y-scroll","text-center"],[1,"title-awesome"],[1,"title"],[1,"title-bg"],[1,"hr-awesome"],[1,"mt-4"],[1,"btn-filled",3,"ngClass","click"],[1,"grid","mt-3","justify-content-center"],["class","col-10 sm:col-6 lg:col-4 xxl:col-3 animate__animated animate__zoomIn animate__400ms",3,"click",4,"ngFor","ngForOf"],["detailsModal",""],[1,"col-10","sm:col-6","lg:col-4","xxl:col-3","animate__animated","animate__zoomIn","animate__400ms",3,"click"],[1,"project-card"],["alt","",3,"src"],[1,"description"],[1,"tags","my-1"],[4,"ngFor","ngForOf"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h2",2),e._uU(3,"Portfolio"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"Portfolio"),e.qZA()(),e._UZ(6,"div",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return i.changeType(i.ProjectTypeEnum.ALL)}),e._uU(9,"All"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return i.changeType(i.ProjectTypeEnum.WEB)}),e._uU(11,"Web"),e.qZA(),e.TgZ(12,"button",6),e.NdJ("click",function(){return i.changeType(i.ProjectTypeEnum.DESKTOP)}),e._uU(13,"Desktop"),e.qZA(),e.TgZ(14,"button",6),e.NdJ("click",function(){return i.changeType(i.ProjectTypeEnum.MOBILE)}),e._uU(15,"Mobile"),e.qZA()(),e.TgZ(16,"div",7),e.YNc(17,Xe,10,4,"div",8),e.qZA(),e.YNc(18,$e,0,0,"ng-template",null,9,e.W1O),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngClass",i.projectType==i.ProjectTypeEnum.ALL?"active":""),e.xp6(2),e.Q6J("ngClass",i.projectType==i.ProjectTypeEnum.WEB?"active":""),e.xp6(2),e.Q6J("ngClass",i.projectType==i.ProjectTypeEnum.DESKTOP?"active":""),e.xp6(2),e.Q6J("ngClass",i.projectType==i.ProjectTypeEnum.MOBILE?"active":""),e.xp6(3),e.Q6J("ngForOf",i.filteredProjects))},dependencies:[d.mk,d.sg],styles:[".project-card[_ngcontent-%COMP%]{position:relative;border-radius:10px;overflow:hidden;cursor:pointer;display:flex;height:350px}.project-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;transition:all .5s ease 0s}.project-card[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;top:0;transition:all .5s ease 0s;display:flex;visibility:visible;background-image:linear-gradient(to top,var(--primary-clr) 0,rgba(255,255,255,0) 100%);opacity:0!important;z-index:1;flex-flow:column;justify-content:flex-end;align-items:center}.project-card[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .project-card[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:color .5s ease,background-color .5s ease,border-color .5s ease,fill .5s ease,background .5s ease,-webkit-backdrop-filter .5s ease;transition:color .5s ease,background-color .5s ease,border-color .5s ease,fill .5s ease,background .5s ease,backdrop-filter .5s ease;transition:color .5s ease,background-color .5s ease,border-color .5s ease,fill .5s ease,background .5s ease,backdrop-filter .5s ease,-webkit-backdrop-filter .5s ease;font-size:14px}.project-card[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0 2px}.project-card[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{flex-flow:wrap;display:flex;justify-content:center}.project-card[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 5px;border-radius:50px;background:var(--background-clr-opacity);margin:1px}.project-card[_ngcontent-%COMP%]:hover .description[_ngcontent-%COMP%]{opacity:1!important}.project-card[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale(1.2)}button.btn-filled[_ngcontent-%COMP%]{border:none;box-shadow:none;color:#f5f5f5;background-color:var(--primary-clr-opacity);border-radius:5px;text-align:center;vertical-align:middle;font-size:16px;padding:.375rem 1rem;cursor:pointer;margin:2px 5px}button.btn-filled.active[_ngcontent-%COMP%]{background-color:var(--primary-clr)}"]}),n})();var tt=u(2011),it=u(2340);const nt=[{path:"",component:et}];let st=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[w.Bz.forChild(nt),S.m,d.ez,pe,Fe,tt.hO.initializeApp(it.N.firebase),w.Bz]}),n})()}}]);