1import{a as K}from"./chunk-ZWM2DEFH.js";import"./chunk-TUZC73LT.js";import"./chunk-WWLDCLS4.js";import"./chunk-F2VIYPYB.js";import"./chunk-U7QXCRJE.js";import{a as z}from"./chunk-PNGAH6H3.js";import"./chunk-OZEAP64Y.js";import"./chunk-P4IOY7MQ.js";import"./chunk-3CY3PXZP.js";import{a as J}from"./chunk-B27M2GRM.js";import"./chunk-LN5B33D5.js";import"./chunk-WTFDJVK3.js";import"./chunk-7PRVXVE6.js";import{a as G}from"./chunk-F43Z2YOJ.js";import"./chunk-S7RS4WME.js";import{a as Z,b as Q}from"./chunk-2VWFJ3UE.js";import"./chunk-PXJEMWZL.js";import"./chunk-TGNSDL2M.js";import"./chunk-623CKMZS.js";import"./chunk-FACX5VIG.js";import"./chunk-RNIINARP.js";import{d as j,e as U,f as F}from"./chunk-MDEUGU6N.js";import"./chunk-WAWXULXV.js";import{b as q}from"./chunk-AP2OXJSW.js";import"./chunk-QEGWBESR.js";import"./chunk-BVTNNYKT.js";import{X as H,Y as N}from"./chunk-RVLSVGP4.js";import"./chunk-3IIJ5ZCP.js";import"./chunk-ZHB2XPGO.js";import"./chunk-6EYILAK6.js";import{D as T,Dc as A,Ec as V,F as b,Kc as o,Lb as y,Lc as a,Mb as C,Mc as Y,Rb as u,Vc as k,W as D,Wb as t,Xb as n,Y as L,Yb as m,ac as I,fa as w,fc as g,gc as S,hb as i,m as R,nb as h,oa as E,pa as M,qa as _,qc as s,ra as f,rc as P,sc as l,ub as O,va as B,zb as x}from"./chunk-7R5QJ3F4.js";import"./chunk-EMXRSGQS.js";var ee=()=>["/dashboard/store"],te=()=>["/dashboard/settings"],ie=()=>({tab:"plan"}),ne=e=>({count:e});function re(e,c){e&1&&(t(0,"div",1),_(),t(1,"svg",3),m(2,"path",4)(3,"path",5),n()())}function oe(e,c){e&1&&(t(0,"div",6)(1,"div",8),_(),t(2,"svg",9),m(3,"path",10)(4,"path",11)(5,"path",12),n()(),f(),t(6,"div",13)(7,"p",14),s(8),o(9,"translate"),n(),t(10,"p",15),s(11),o(12,"translate"),n()(),t(13,"a",16)(14,"button",17),s(15),o(16,"translate"),_(),t(17,"svg",18),m(18,"path",19)(19,"path",20),n()()()()),e&2&&(i(8),l(" ",a(9,4,"DASHBOARD.MY_SERVICES.NO_STORE.TITLE")," "),i(3),l(" ",a(12,6,"DASHBOARD.MY_SERVICES.NO_STORE.DESCRIPTION")," "),i(2),C("routerLink",A(10,ee)),i(2),l(" ",a(16,8,"DASHBOARD.MY_SERVICES.NO_STORE.ACTION")," "))}function ae(e,c){e&1&&(t(0,"div",7)(1,"div",21)(2,"h2",22),s(3),o(4,"translate"),n(),t(5,"p",23),s(6),o(7,"translate"),n(),t(8,"div",24)(9,"a",25),s(10),o(11,"translate"),n()()(),t(12,"div",26),_(),t(13,"svg",27),o(14,"translate"),m(15,"rect",28)(16,"path",29)(17,"path",30)(18,"path",31)(19,"path",32),n()(),f(),t(20,"div",33),m(21,"div",34),t(22,"div")(23,"p",35),s(24),o(25,"translate"),t(26,"span",36),s(27),o(28,"translate"),n()(),t(29,"p",37),s(30),o(31,"translate"),n()()()()),e&2&&(i(3),l(" ",a(4,9,"DASHBOARD.MY_SERVICES.UPSELL_TITLE")," "),i(3),l(" ",a(7,11,"DASHBOARD.MY_SERVICES.UPSELL_DESCRIPTION")," "),i(3),C("routerLink",A(23,te))("queryParams",A(24,ie)),i(),l(" ",a(11,13,"DASHBOARD.MY_SERVICES.UPSELL_PRIMARY_CTA")," "),i(3),y("aria-label",a(14,15,"DASHBOARD.MY_SERVICES.UPSELL_IMAGE_ALT")),i(11),l(" ",a(25,17,"DASHBOARD.MY_SERVICES.UPSELL_TESTIMONIAL_NAME"),", "),i(3),l(" ",a(28,19,"DASHBOARD.MY_SERVICES.UPSELL_TESTIMONIAL_ROLE")," "),i(3),l(" ",a(31,21,"DASHBOARD.MY_SERVICES.UPSELL_TESTIMONIAL_QUOTE")," "))}function se(e,c){e&1&&(s(0),o(1,"translate")),e&2&&l(" ",a(1,1,"DASHBOARD.MY_SERVICES.REMAINING_UNLIMITED")," ")}function le(e,c){if(e&1&&(s(0),o(1,"translate")),e&2){let r=S(4);l(" ",Y(1,1,"DASHBOARD.MY_SERVICES.REMAINING",V(4,ne,r.remainingServicesCount))," ")}}function de(e,c){if(e&1&&(t(0,"p",40),x(1,se,2,3)(2,le,2,6),n()),e&2){let r=S(3);i(),u(r.illimiteServices?1:2)}}function pe(e,c){if(e&1){let r=I();t(0,"app-elastic-service-list",45),g("nbreServicesChange",function(p){E(r);let v=S(3);return M(v.countService(p))}),n()}if(e&2){let r=S(3);C("fetchForm","rest")("enableEditMode",!0)("servicesPerPage",12)("displayStoreLogos",!1)("dashboardOwned",!0)("storeId",r.store.id)}}function ce(e,c){if(e&1){let r=I();t(0,"div",7)(1,"div",21)(2,"h2",22),s(3),o(4,"translate"),n(),t(5,"p",23),s(6),o(7,"translate"),n(),t(8,"div",46)(9,"button",47),g("click",function(p){return E(r),S(3).onAddService(),p.stopPropagation(),M(p.preventDefault())}),s(10),o(11,"translate"),n()()(),t(12,"div",26),_(),t(13,"svg",27),o(14,"translate"),m(15,"rect",28)(16,"path",29)(17,"path",30)(18,"path",31)(19,"path",32),n()(),f(),t(20,"div",33),m(2
11,"div",34),t(22,"div")(23,"p",35),s(24),o(25,"translate"),t(26,"span",36),s(27),o(28,"translate"),n()(),t(29,"p",37),s(30),o(31,"translate"),n()()()()}e&2&&(i(3),l(" ",a(4,7,"DASHBOARD.MY_SERVICES.EMPTY_TITLE")," "),i(3),l(" ",a(7,9,"DASHBOARD.MY_SERVICES.EMPTY_DESCRIPTION")," "),i(4),l(" ",a(11,11,"DASHBOARD.MY_SERVICES.EMPTY_CTA")," "),i(3),y("aria-label",a(14,13,"DASHBOARD.MY_SERVICES.EMPTY_IMAGE_ALT")),i(11),l(" ",a(25,15,"DASHBOARD.MY_SERVICES.UPSELL_TESTIMONIAL_NAME"),", "),i(3),l(" ",a(28,17,"DASHBOARD.MY_SERVICES.UPSELL_TESTIMONIAL_ROLE")," "),i(3),l(" ",a(31,19,"DASHBOARD.MY_SERVICES.EMPTY_TESTIMONIAL_QUOTE")," "))}function me(e,c){if(e&1){let r=I();t(0,"div",38)(1,"div")(2,"h2",39),s(3),o(4,"translate"),n(),x(5,de,3,1,"p",40),n(),t(6,"button",41),g("click",function(p){return E(r),S(2).onAddService(),p.stopPropagation(),M(p.preventDefault())}),_(),t(7,"svg",18),m(8,"path",19)(9,"path",42),n(),f(),t(10,"span",43),s(11),o(12,"translate"),n()()(),x(13,pe,1,6,"app-elastic-service-list",44)(14,ce,32,21,"div",7)}if(e&2){let r=S(2);i(3),l(" ",a(4,4,"DASHBOARD.MY_SERVICES.TITLE")," "),i(2),u((r.illimiteServices||r.remainingServicesCount!=null)&&(r.tarif==null?null:r.tarif.montant)!==null?5:-1),i(6),P(a(12,6,"DASHBOARD.MY_SERVICES.ADD_SERVICE")),i(2),u(r.isServicesLoading||r.nbreServices>0?13:14)}}function Se(e,c){if(e&1&&x(0,oe,20,11,"div",6)(1,ae,32,25,"div",7)(2,me,15,8),e&2){let r=S();u(r.store?-1:0),i(),u(r.needPro?1:-1),i(),u(r.needPro?-1:2)}}var De=(()=>{let c=class c{constructor(d,p,v,W,X,$){this.authService=d,this.router=p,this.abonnementService=v,this.confirmationService=W,this.translateService=X,this.cdr=$,this.store=void 0,this.nbreServices=-1,this.destroyRef=w(B),this.isServicesLoading=!0,this.showMessagePopup=!1,this.servicesCountRestantTotalAn=-1,this.servicesCountRestantTotalMois=-1,this.illimiteServices=!1,this.hasServices=!1}ngOnInit(){this.store=void 0,this.isServicesLoading=!0,this.nbreServices=-1,this.authService.authStateChange$.pipe(T(Boolean),L(()=>{this.user=this.authService.currentUser??void 0,this.store=this.authService.currentStore??null}),D(()=>this.abonnementService.requestCountServicesByAbonnement(this.authService.currentStore?.id??"").pipe(b(()=>R(null)))),G(this.destroyRef)).subscribe(d=>{this.store=this.authService.currentStore??null,this.store||(this.isServicesLoading=!1,this.nbreServices=0,this.hasServices=!1),this.handleAbonnementResponse(d?.data??null),this.cdr.detectChanges()})}handleAbonnementResponse(d){if(d?.tarif){this.tarif=d.tarif,this.illimiteServices=d.illimite===!0;let p=d.tarif.periode?.toLowerCase().includes("annuel");this.servicesCountRestantAn=p?d.servicesCountAn:void 0,this.servicesCountRestantMois=p?void 0:d.servicesCountMois;return}this.tarif=void 0,this.illimiteServices=!1,this.servicesCountRestantAn=void 0,this.servicesCountRestantMois=void 0}onAddService(){this.router.navigate(["/dashboard/services/create"])}countService(d){this.nbreServices=d??0,this.hasServices=this.nbreServices>0,this.isServicesLoading=!1,this.cdr.detectChanges()}get needPro(){return(this.store===null||!(this.store?.isPaid||this.store?.trialEnd&&new Date(this.store?.trialEnd)>=new Date))&&!this.hasServices}get remainingServicesCount(){return this.servicesCountRestantAn??this.servicesCountRestantMois}get showTryProCta(){return!this.store?.trialEnd&&!this.store?.isPaid}openTryProModal(){this.confirmationService.open("tryProModal",this.translateService.instant("DASHBOARD.MY_SERVICES.TRY_PRO_TITLE"),"",Z.INFO)}};c.\u0275fac=function(p){return new(p||c)(h(q),h(H),h(z),h(Q),h(j),h(k))},c.\u0275cmp=O({type:c,selectors:[["app-my-services"]],decls:4,vars:2,consts:[[1,"space-y-8"],["aria-busy","true","aria-live","polite",1,"text-center","mt-40"],[3,"identifier"],["viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"inline","w-8","h-8","mr-2","text-gray-500","animate-spin","fill-primary"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"rounded-2xl","border","border-primary/20","bg-primary/5","p-5","flex","flex-col","sm:flex-row","items-start","sm:items-center","gap-4"],[1,"max-w-3xl","mx-auto","space-y-8"],[1,"w-10","h-10","rounded-xl","bg-primary/10","flex","items-center","justify-center","flex-shrink-0"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-5","h-5","text-primary"],["d","m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"],["d","M12 9v4"],["d","M12 17h.01"],[1,"flex-1","min-w-0"],[1,"font-display","font-semibold","text-foreground","text-sm"],[1,"text-sm","text-muted-foreground","mt-0.5"],[1,"flex-shrink-0",3,"routerLink"],["type","button",1,"inline-flex","items-center","justify-center","whitespace-nowrap","text-sm","font-medium","border","bg-background","h-10","px-4","py-2","rounded-xl","gap-2","border-primary/30","text-primary","hover:bg-primary","hover:text-primary-foreground","transition-colors"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-4","h-4"],["d","M5 12h14"],["d","m12 5 7 7-7 7"],[1,"text-center","space-y-3","py-8"],[1,"font-display","text-2xl","lg:text-3xl","font-bold","text-foreground"],[1,"text-muted-foreground","max-w-xl","mx-auto"],[1,"pt-2","flex","items-center","justify-center","gap-2"],[1,"inline-flex","items-center","justify-center","gap-2","whitespace-nowrap","text-sm","font-medium","bg-primary","text-primary-foreground","hover:bg-primary/90","h-10","px-6","rounded-full","transition-colors",3,"routerLink","queryParams"],[1,"bg-muted","rounded-2xl","flex","items-center","justify-center","h-64"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round",1,"w-16","h-16","text-muted-foreground/40"],["x","3","y","7","width","18","height","12","rx","2.5"],["d","M8 7V5.5A1.5 1.5 0 0 1 9.5 4h5A1.5 1.5 0 0 1 16 5.5V7"],["d","M3 11h18"],["d","M10 14.5h4"],["d","M12 12.5v4"],[1,"bg-card","border","border-border","rounded-2xl","p-6","flex","items-start","gap-4"],[1,"w-12","h-12","rounded-full","bg-muted","flex-shrink-0"],[1,"font-semibold","text-foreground","text-sm"],[1,"font-normal","text-muted-foreground"],[1,"text-sm","text-muted-foreground","mt-1","italic"],[1,"flex","flex-col","gap-4","sm:flex-row","sm:items-start","sm:justify-between"],[1,"font-display","text-2xl","font-bold","text-foreground"],[1,"mt-1","text-sm","text-muted-foreground"],["type","button",1,"inline-flex","items-center","justify-center","whitespace-nowrap","text-sm","font-medium","bg-primary","text-primary-foreground","hover:bg-primary/90","h-10","px-4","py-2","rounded-xl","gap-2","transition-colors",3,"click"],["d","M12 5v14"],[1,"hidden","sm:inline"],[3,"fetchForm","enableEditMode","servicesPerPage","displayStoreLogos","dashboardOwned","storeId"],[3,"nbreServicesChange","fetchForm","enableEditMode","servicesPerPage","displayStoreLogos","dashboardOwned","storeId"],[1,"pt-2"],["type","button",1,"inline-flex","items-center","justify-center","gap-2","whitespace-nowrap","text-sm","font-medium","bg-primary","text-primary-foreground","hover:bg-primary/90","h-11","px-8","rounded-xl","transition-colors",3,"click"]],template:function(p,v){p&1&&(t(0,"div",0),x(1,re,4,0,"div",1)(2,Se,3,3),n(),m(3,"app-access",2)),p&2&&(i(),u(v.store===void 0?1:2),i(2),C("identifier","tryProModal"))},dependencies:[J,N,K,F,U],encapsulation:2});let e=c;return e})();export{De as MyServicesComponent};
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.