PageSourceSearch

https://hou.la/chunk-J4WT3QBF.js

js hou.la collected 2026-09-25 03:33:43 UTC 47,342 bytes, 2 lines download raw bytes

1import{b as ye}from"./chunk-DTL2TISI.js";import{a as De}from"./chunk-TO3YVGHJ.js";import{a as ke}from"./chunk-YUOM4OEN.js";import{a as Ae}from"./chunk-JNDJ5ZBA.js";import{a as be}from"./chunk-ATXEZIPJ.js";import"./chunk-VYULK3Y3.js";import{a as Ce,b as Ee}from"./chunk-TKJJQVX7.js";import{a as me,b as _e}from"./chunk-URVIZL7P.js";import"./chunk-IHE2TIXH.js";import"./chunk-7NAHQCRY.js";import"./chunk-ZV7NG4F4.js";import"./chunk-DJ5AJG3T.js";import"./chunk-6EF6RNOO.js";import"./chunk-T3DWPM4S.js";import"./chunk-K6QYQNRN.js";import{a as he}from"./chunk-QIOURN4K.js";import{a as ue,b as ve}from"./chunk-KYVCMV2E.js";import"./chunk-HWZZ5RQT.js";import"./chunk-ZNR7QNVV.js";import"./chunk-WGAXTYG2.js";import"./chunk-U3Z5BGA7.js";import{a as we,b as Ie}from"./chunk-N3YFX76I.js";import"./chunk-WF4KZOYP.js";import{a as fe,b as ge}from"./chunk-M6YDMVQ7.js";import{a as Z}from"./chunk-EB6TJ75L.js";import"./chunk-QI7CEGT6.js";import"./chunk-6ND7557V.js";import{D as oe,c as Q,g as ee,l as te,t as ie,u as ne,v as ae}from"./chunk-FOJCKIWO.js";import"./chunk-6DXFCF2C.js";import{a as de}from"./chunk-NBMUSEX4.js";import{a as le,b as se}from"./chunk-3AIY57KH.js";import"./chunk-AB6CKZTE.js";import{b as xe,c as Se}from"./chunk-H66TAOKK.js";import"./chunk-Z64D265S.js";import"./chunk-K5O3OQFW.js";import"./chunk-2DRXLVRR.js";import{d as pe,e as ce}from"./chunk-RQJZECR4.js";import"./chunk-G3G5OK6Q.js";import"./chunk-AERMLNF3.js";import"./chunk-QHMYZ6SM.js";import"./chunk-PJPLTBJX.js";import"./chunk-DLIVM562.js";import"./chunk-CV2ZWZQE.js";import"./chunk-H4HD3LNW.js";import{ja as re}from"./chunk-AQEWHUN5.js";import{d as X,e as J}from"./chunk-YQZAETCE.js";import{o as G,r as q,s as Y,x as $}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{D as U,G as j,H,I as K,p as F,s as z}from"./chunk-ERUCNOOT.js";import{$b as I,Cc as b,Dc as A,Ec as D,Gc as R,Hc as L,Jb as u,Lb as M,Mb as P,Qb as x,Qc as d,Rc as p,Sc as w,Tb as y,Tc as O,Ub as T,Vb as i,Wb as e,Xb as m,_a as W,da as k,db as n,fc as g,gc as _,la as E,ma as f,sb as N,tc as a,uc as v,vc as s,wc as B,yb as S}from"./chunk-DBE7WQEG.js";import{g as h}from"./chunk-W7GRJBO5.js";var Ve=o=>["/admin/users",o],We=()=>({width:"460px"}),Me=o=>["/admin/account-managers",o],V=(o,l)=>l.id,Le=(o,l)=>l.userId;function Oe(o,l){o&1&&(i(0,"h5",8),a(1),d(2,"translate"),e()),o&2&&(n(),s(" ",p(2,1,"ADMIN.WS_DETAILS.TITLE")," "))}function Be(o,l){if(o&1&&(i(0,"div",9),m(1,"i",10),a(2),e()),o&2){let t=_();n(2),s("",t.error,`
2`)}}function Ne(o,l){o&1&&m(0,"i",17)}function Pe(o,l){if(o&1&&(i(0,"div",20),m(1,"i",95),a(2),e()),o&2){let t=_(2);n(2),s("",t.ws.websiteUrl," ")}}function Re(o,l){o&1&&m(0,"p-tag",23)}function Fe(o,l){o&1&&m(0,"p-tag",24)}function ze(o,l){if(o&1&&(i(0,"a",30),a(1),e(),i(2,"small",96),a(3),d(4,"date"),e()),o&2){let t=l;u("routerLink",L(6,Me,t.userId)),n(),s(" ",t.firstName||t.lastName?(t.firstName||"")+" "+(t.lastName||""):t.email," "),n(2),s(" depuis le ",w(4,3,t.assignedAt,"dd/MM/yyyy")," ")}}function Ue(o,l){o&1&&(i(0,"span",31),a(1,"Non accompagn\xE9"),e())}function je(o,l){if(o&1){let t=I();i(0,"button",97),g("click",function(){E(t);let r=_(2);return f(r.retirerLAm())}),a(1," Rendre au vivier "),e()}}function He(o,l){if(o&1&&(i(0,"option",99),a(1),e()),o&2){let t=l.$implicit;u("ngValue",t.id),n(),s(" ",t.label," ")}}function Ke(o,l){if(o&1){let t=I();i(0,"div",33)(1,"select",98),D("ngModelChange",function(r){E(t);let C=_(2);return A(C.amCible,r)||(C.amCible=r),f(r)}),i(2,"option",99),a(3," Confier \xE0\u2026 "),e(),y(4,He,2,2,"option",99,V),e(),i(6,"button",100),g("click",function(){E(t);let r=_(2);return f(r.confierAUnAm())}),a(7," Confier "),e()()}if(o&2){let t=_(2);n(),b("ngModel",t.amCible),n(),u("ngValue",null),n(2),T(t.amDisponibles),n(2),u("disabled",!t.amCible||t.amEnCours)}}function Ge(o,l){if(o&1&&(i(0,"p",35),a(1),e()),o&2){let t=_(2);n(),s(" ",t.ws.description," ")}}function qe(o,l){o&1&&(m(0,"p-tag",43),d(1,"translate")),o&2&&u("value",p(1,1,"ADMIN.WS_DETAILS.LIVE_ACTIVE"))}function Ye(o,l){o&1&&(m(0,"p-tag",44),d(1,"translate")),o&2&&u("value",p(1,1,"ADMIN.WS_DETAILS.LIVE_INACTIVE"))}function $e(o,l){o&1&&m(0,"p-tag",45)}function Xe(o,l){o&1&&m(0,"p-tag",46)}function Je(o,l){o&1&&(i(0,"span"),a(1," Ouverture manuelle active : elle prime sur le palier."),e())}function Ze(o,l){if(o&1&&(i(0,"div",47),a(1," Palier automatique : "),i(2,"strong"),a(3),e(),a(4),i(5,"strong"),a(6),e(),a(7
2),S(8,Je,2,0,"span"),e()),o&2){let t=l;n(3),v(t.contents.current),n(),B(" / ",t.contents.required," contenus publi\xE9s (",t.contents.passed?"atteint":"non atteint",") et "),n(2),v(t.views.current),n(),B(" / ",t.views.required," vues cumul\xE9es (",t.views.passed?"atteint":"non atteint","). "),n(),x(t.override?8:-1)}}function Qe(o,l){o&1&&m(0,"p-tag",49)}function et(o,l){o&1&&m(0,"p-tag",50)}function tt(o,l){if(o&1){let t=I();i(0,"p-button",101),d(1,"translate"),g("onClick",function(){E(t);let r=_(2);return f(r.openStatusDialog("suspended"))}),e()}o&2&&u("outlined",!0)("label",p(1,2,"ADMIN.WS_DETAILS.MOD_SUSPEND"))}function it(o,l){if(o&1){let t=I();i(0,"p-button",102),d(1,"translate"),g("onClick",function(){E(t);let r=_(2);return f(r.openStatusDialog("blocked"))}),e()}o&2&&u("outlined",!0)("label",p(1,2,"ADMIN.WS_DETAILS.MOD_BLOCK"))}function nt(o,l){if(o&1){let t=I();i(0,"p-button",103),d(1,"translate"),g("onClick",function(){E(t);let r=_(2);return f(r.reactivateWorkspace())}),e()}o&2&&u("outlined",!0)("label",p(1,2,"ADMIN.WS_DETAILS.MOD_REACTIVATE"))}function at(o,l){if(o&1&&(i(0,"div",60),m(1,"i",104),i(2,"strong"),a(3),d(4,"translate"),e(),a(5),e()),o&2){let t=_(2);n(3),s("",p(4,2,"ADMIN.WS_DETAILS.MOD_REASON")," :"),n(2),s(" ",t.ws.blockReason," ")}}function ot(o,l){if(o&1){let t=I();i(0,"p-button",105),d(1,"translate"),g("onClick",function(){E(t);let r=_(2);return f(r.showStatusDialog=!1)}),e(),i(2,"p-button",106),d(3,"translate"),g("onClick",function(){E(t);let r=_(2);return f(r.confirmStatusChange())}),e()}if(o&2){let t=_(2);u("label",p(1,5,"COMMON.CANCEL"))("text",!0),n(2),u("label",p(3,7,t.statusTarget==="blocked"?"ADMIN.WS_DETAILS.MOD_BLOCK":"ADMIN.WS_DETAILS.MOD_SUSPEND"))("severity",t.statusTarget==="blocked"?"danger":"warn")("loading",t.savingStatus)}}function rt(o,l){if(o&1&&(i(0,"div",77)(1,"div",92)(2,"h6",37),m(3,"i",107),a(4),d(5,"translate"),e(),i(6,"div",108),m(7,"p-chart",109),e()()()),o&2){let t=_(2);n(4),s("",p(5,3,"ADMIN.WS_DETAILS.CHART_FOLLOWERS")," "),n(3),u("data",t.followerChartData)("options",t.chartOptions)}}function lt(o,l){if(o&1&&(i(0,"div",77)(1,"div",92)(2,"h6",37),m(3,"i",110),a(4),d(5,"translate"),e(),i(6,"div",108),m(7,"p-chart",109),e()()()),o&2){let t=_(2);n(4),s("",p(5,3,"ADMIN.WS_DETAILS.CHART_REVENUE")," "),n(3),u("data",t.revenueChartData)("options",t.chartOptions)}}function st(o,l){if(o&1&&(i(0,"div",77)(1,"div",92)(2,"h6",37),m(3,"i",111),a(4),d(5,"translate"),e(),i(6,"div",108),m(7,"p-chart",109),e()()()),o&2){let t=_(2);n(4),s("",p(5,3,"ADMIN.WS_DETAILS.CHART_VIEWS")," "),n(3),u("data",t.viewsChartData)("options",t.chartOptions)}}function dt(o,l){o&1&&(i(0,"div",83),a(1),d(2,"translate"),e()),o&2&&(n(),s(" ",p(2,1,"ADMIN.WS_DETAILS.NO_MEMBERS")," "))}function pt(o,l){if(o&1&&(i(0,"tr")(1,"td"),a(2),e(),i(3,"td"),a(4),e(),i(5,"td"),m(6,"p-tag",44),e(),i(7,"td")(8,"span",114),a(9),e()(),i(10,"td",31),a(11),d(12,"date"),e(),i(13,"td")(14,"a",115),m(15,"i",116),e()()()),o&2){let t=l.$implicit,c=_(3);n(2),v(t.email),n(2),v(t.displayName||"\u2014"),n(2),u("value",t.userRole),n(2),u("ngClass",c.getRoleBadgeClass(t.workspaceRole)),n(),v(t.workspaceRole),n(2),s(" ",w(12,7,t.joinedAt,"dd/MM/yyyy")," "),n(3),u("routerLink",L(10,Ve,t.userId))}}function ct(o,l){if(o&1&&(i(0,"div",84)(1,"table",112)(2,"thead",113)(3,"tr")(4,"th"),a(5),d(6,"translate"),e(),i(7,"th"),a(8),d(9,"translate"),e(),i(10,"th"),a(11),d(12,"translate"),e(),i(13,"th"),a(14),d(15,"translate"),e(),i(16,"th"),a(17),d(18,"translate"),e(),m(19,"th"),e()(),i(20,"tbody"),y(21,pt,16,12,"tr",null,Le),e()()()),o&2){let t=_(2);n(5),s(" ",p(6,5,"ADMIN.WS_DETAILS.MEMBER_EMAIL")," "),n(3),s(" ",p(9,7,"ADMIN.WS_DETAILS.MEMBER_NAME")," "),n(3),s(" ",p(12,9,"ADMIN.WS_DETAILS.MEMBER_USER_ROLE")," "),n(3),s(" ",p(15,11,"ADMIN.WS_DETAILS.MEMBER_WS_ROLE")," "),n(3),s(" ",p(18,13,"ADMIN.WS_DETAILS.MEMBER_JOINED")," "),n(4),T(t.data.members)}}function mt(o,l){o&1&&(i(0,"div",83),a(1),d(2,"translate"),e()),o&2&&(n(),s(" ",p(2,1,"ADMIN.WS_DETAILS.NO_VIDEOS")," "))}function _t(o,l){if(o&1&&m(0,"img",121),o&2){let t=_().$implicit;u("src",t.thumbnailUrl,W)}}function ut(o,l){o&1&&(i(0,"div",122),m(1,"i",125),e())}function vt(o,l){o&1&&(i(0,"span",124),a(1,"Shadow-ban"),e())}function xt(o,l){if(o&1){let t=I();i(0,"tr",119),g("click",function(){let r=E(t).$implicit,C=_(3);return f(C.openVideoDetail(r))}),i(1,"td",120),S(2,_t,1,1,"img",121)(3,ut,2,0,"div",122),e(),i(4,"td")(5,"div",123),a(6),e(),S(7,vt,2,0,"span",124),e(),i(8,"td"),m(9,"p-tag",22),e(),i(10,"td",117),a(11),e(),i(12,"td",117),a(13),e(),i(14,"td",117),a(15),e(),i(16,"td",31),a(17),d(18,"date"),e()()}if(o&2){let t=l.$implicit,c=_(3);n(2),x(t.thumbnailUrl?2:3),n(4),s(" ",t.title||t.description||t.id," "),n(),x(t.
2isShadowBanned?7:-1),n(2),u("value",t.status)("severity",c.getStatusSeverity(t.status)),n(2),s(" ",c.formatCount(t.viewCount)," "),n(2),s(" ",c.formatCount(t.likeCount)," "),n(2),s(" ",t.commentCount," "),n(2),s(" ",w(18,9,t.createdAt,"dd/MM/yy")," ")}}function St(o,l){if(o&1&&(i(0,"div",84)(1,"table",112)(2,"thead",113)(3,"tr"),m(4,"th"),i(5,"th"),a(6),d(7,"translate"),e(),i(8,"th"),a(9),d(10,"translate"),e(),i(11,"th",117),a(12),d(13,"translate"),e(),i(14,"th",117),a(15),d(16,"translate"),e(),i(17,"th",117),a(18),d(19,"translate"),e(),i(20,"th"),a(21),d(22,"translate"),e()()(),i(23,"tbody"),y(24,xt,19,12,"tr",118,V),e()()()),o&2){let t=_(2);n(6),s(" ",p(7,6,"ADMIN.WS_DETAILS.VIDEO_TITLE")," "),n(3),s(" ",p(10,8,"ADMIN.WS_DETAILS.VIDEO_STATUS")," "),n(3),s(" ",p(13,10,"ADMIN.WS_DETAILS.VIDEO_VIEWS")," "),n(3),s(" ",p(16,12,"ADMIN.WS_DETAILS.VIDEO_LIKES")," "),n(3),s(" ",p(19,14,"ADMIN.WS_DETAILS.VIDEO_COMMENTS")," "),n(3),s(" ",p(22,16,"ADMIN.WS_DETAILS.VIDEO_DATE")," "),n(3),T(t.data.recentVideos)}}function Ct(o,l){o&1&&(i(0,"div",126),m(1,"app-widget-loading"),e())}function Et(o,l){if(o&1&&m(0,"img",133),o&2){let t=_().$implicit;u("src",t.thumbnailUrl,W)}}function ft(o,l){o&1&&m(0,"p-tag",134)}function gt(o,l){if(o&1&&(i(0,"span",31),a(1),e()),o&2){let t=_().$implicit;n(),s("(",t.moderationScore,")")}}function ht(o,l){if(o&1&&(i(0,"tr")(1,"td",132),S(2,Et,1,1,"img",133),e(),i(3,"td"),a(4),S(5,ft,1,0,"p-tag",134),e(),i(6,"td"),m(7,"p-tag",135),e(),i(8,"td",136),a(9),S(10,gt,2,1,"span",31),e(),i(11,"td",117),a(12),e(),i(13,"td",117),a(14),e(),i(15,"td",117),a(16),e(),i(17,"td",137),a(18),d(19,"date"),e(),i(20,"td",137),a(21),d(22,"date"),e()()),o&2){let t=l.$implicit;n(2),x(t.thumbnailUrl?2:-1),n(2),s(" ",t.title||"\u2014"," "),n(),x(t.isBoosted?5:-1),n(2),u("severity",t.status==="published"?"success":"secondary")("value",t.status),n(2),s(" ",t.moderationResult||"\u2014"," "),n(),x(t.moderationScore!==null?10:-1),n(2),s(" ",t.viewCount," "),n(2),s(" ",t.likeCount," "),n(2),s(" ",t.commentCount," "),n(2),s(" ",w(19,12,t.createdAt,"dd/MM/yy")," "),n(3),s(" ",t.publishedAt?w(22,15,t.publishedAt,"dd/MM/yy"):"\u2014"," ")}}function wt(o,l){o&1&&(i(0,"tr")(1,"td",138),a(2," Aucun contenu. "),e()())}function It(o,l){if(o&1&&(i(0,"a",139),a(1,"Voir"),e()),o&2){let t=_().$implicit;u("href",t.replayUrl,W)}}function bt(o,l){o&1&&(i(0,"span",90),a(1,"\u2014"),e())}function At(o,l){if(o&1&&(i(0,"tr")(1,"td"),a(2),e(),i(3,"td"),m(4,"p-tag",135),e(),i(5,"td",137),a(6),d(7,"date"),e(),i(8,"td",137),a(9),d(10,"date"),e(),i(11,"td",117),a(12),e(),i(13,"td",117),a(14),e(),i(15,"td",117),a(16),e(),i(17,"td",117),a(18),d(19,"number"),e(),i(20,"td"),S(21,It,2,1,"a",139)(22,bt,2,0,"span",90),e()()),o&2){let t=l.$implicit;n(2),v(t.label||"\u2014"),n(2),u("severity",t.status==="live"?"danger":"secondary")("value",t.status),n(2),s(" ",t.startedAt?w(7,10,t.startedAt,"dd/MM/yy HH:mm"):"\u2014"," "),n(3),s(" ",t.endedAt?w(10,13,t.endedAt,"dd/MM/yy HH:mm"):"\u2014"," "),n(3),s(" ",t.peakViewers||0," "),n(2),s(" ",t.giftCoins||0," "),n(2),s(" ",t.orderCount||0," "),n(2),s(" ",w(19,16,
2(t.revenueCents||0)/100,"1.2-2")," \u20AC "),n(3),x(t.replayUrl?21:22)}}function Dt(o,l){o&1&&(i(0,"tr")(1,"td",138),a(2," Aucun live. "),e()())}function kt(o,l){if(o&1){let t=I();i(0,"div",131)(1,"button",140),g("click",function(){E(t);let r=_(4);return f(r.pageProduction(-1))}),a(2," Pr\xE9c\xE9dent "),e(),i(3,"span",137),a(4),e(),i(5,"button",140),g("click",function(){E(t);let r=_(4);return f(r.pageProduction(1))}),a(6," Suivant "),e()()}if(o&2){let t=_(4);n(),u("disabled",t.productionOffset===0),n(3),s(" \xE0 partir de ",t.productionOffset+1," "),n(),u("disabled",!t.productionAUneSuite)}}function yt(o,l){if(o&1&&(i(0,"div",126)(1,"p",90),a(2," Tout est l\xE0, y compris ce que le profil public ne montre pas : brouillons, contenus refus\xE9s par la mod\xE9ration et lives termin\xE9s. "),e(),i(3,"h6",127),a(4," Contenus "),i(5,"span",128),a(6),e()(),i(7,"div",129)(8,"table",130)(9,"thead",113)(10,"tr"),m(11,"th"),i(12,"th"),a(13,"Titre"),e(),i(14,"th"),a(15,"\xC9tat"),e(),i(16,"th"),a(17,"Mod\xE9ration"),e(),i(18,"th",117),a(19,"Vues"),e(),i(20,"th",117),a(21,"J\u2019aime"),e(),i(22,"th",117),a(23,"Commentaires"),e(),i(24,"th"),a(25,"Cr\xE9\xE9 le"),e(),i(26,"th"),a(27,"Publi\xE9 le"),e()()(),i(28,"tbody"),y(29,ht,23,18,"tr",null,V),S(31,wt,3,0,"tr"),e()()(),i(32,"h6",127),a(33," Lives "),i(34,"span",128),a(35),e()(),i(36,"div",84)(37,"table",130)(38,"thead",113)(39,"tr")(40,"th"),a(41,"Titre"),e(),i(42,"th"),a(43,"\xC9tat"),e(),i(44,"th"),a(45,"D\xE9but"),e(),i(46,"th"),a(47,"Fin"),e(),i(48,"th",117),a(49,"Pic spectateurs"),e(),i(50,"th",117),a(51,"Coins"),e(),i(52,"th",117),a(53,"Commandes"),e(),i(54,"th",117),a(55,"CA"),e(),i(56,"th"),a(57,"Replay"),e()()(),i(58,"tbody"),y(59,At,23,19,"tr",null,V),S(61,Dt,3,0,"tr"),e()()(),S(62,kt,7,3,"div",131),e()),o&2){let t=_(3);n(6),v(t.totalContenus),n(23),T(t.contenus),n(2),x(t.contenus.length===0?31:-1),n(4),v(t.totalLives),n(24),T(t.lives),n(2),x(t.lives.length===0?61:-1),n(),x(t.totalContenus>t.productionLimit||t.totalLives>t.productionLimit?62:-1)}}function Tt(o,l){if(o&1&&S(0,Ct,2,0,"div",126)(1,yt,63,5,"div",126),o&2){let t=_(2);x(t.productionEnCours?0:1)}}function Vt(o,l){if(o&1&&(i(0,"tr")(1,"td")(2,"code"),a(3),d(4,"slice"),e()(),i(5,"td"),m(6,"p-tag",22),e(),i(7,"td",142),a(8),e(),i(9,"td",143),a(10),d(11,"slice"),e(),i(12,"td",31),a(13),d(14,"date"),e()()),o&2){let t=l.$implicit,c=_(3);n(3),s("",O(4,6,t.id,0,8),"\u2026"),n(3),u("value",t.status)("severity",c.getOrderStatusSeverity(t.status)),n(2),s(" ",c.formatCents(t.totalCents)," "),n(2),s(" ",O(11,10,t.buyerWorkspaceId,0,8),"\u2026 "),n(3),s(" ",w(14,14,t.createdAt,"dd/MM/yy HH:mm")," ")}}function Wt(o,l){if(o&1&&(i(0,"div",78)(1,"div",85)(2,"h6",80),m(3,"i",141),a(4),d(5,"translate"),i(6,"span",82),a(7),e()()(),i(8,"div",84)(9,"table",112)(10,"thead",113)(11,"tr")(12,"th"),a(13),d(14,"translate"),e(),i(15,"th"),a(16),d(17,"translate"),e(),i(18,"th",117),a(19),d(20,"translate"),e(),i(21,"th"),a(22),d(23,"translate"),e(),i(24,"th"),a(25),d(26,"translate"),e()()(),i(27,"tbody"),y(28,Vt,15,17,"tr",null,V),e()()()()),o&2){let t=_(2);n(4),s("",p(5,7,"ADMIN.WS_DETAILS.RECENT_ORDERS")," "),n(3),v(t.stats.totalOrders),n(6),s(" ",p(14,9,"ADMIN.WS_DETAILS.ORDER_ID")," "),n(3),s(" ",p(17,11,"ADMIN.WS_DETAILS.ORDER_STATUS")," "),n(3),s(" ",p(20,13,"ADMIN.WS_DETAILS.ORDER_TOTAL")," "),n(3),s(" ",p(23,15,"ADMIN.WS_DETAILS.ORDER_BUYER")," "),n(3),s(" ",p(26,17,"ADMIN.WS_DETAILS.ORDER_DATE")," "),n(3),T(t.data.recentOrders)}}function Mt(o,l){if(o&1&&(i(0,"code"),a(1),e(),m(2,"p-tag",144)),o&2){let t=_(2);n(),v(t.ws.stripeConnectAccountId),n(),u("value",t.ws.stripeConnectStatus||"unknown")}}function Lt(o,l){o&1&&(i(0,"span",31),a(1,"\u2014"),e())}function Ot(o,l){if(o&1&&(i(0,"code"),a(1),e(),m(2,"p-tag",144)),o&2){let t=_(2);n(),v(t.ws.stripeCreatorAccountId),n(),u("value",t.ws.stripeCreatorStatus||"unknown")}}function Bt(o,l){o&1&&(i(0,"span",31),a(1,"\u2014"),e())}function Nt(o,l){if(o&1&&(i(0,"div",145)(1,"span",28),a(2),d(3,"translate"),e(),i(4,"span",29),a(5),e()(),i(6,"div",27)(7,"span",28),a(8),d(9,"translate"),e(),i(10,"span",29),a(11),e()(),i(12,"div",27)(13,"span",28),a(14),d(15,"translate"),e(),i(16,"span",29),a(17),e()()),o&2){let t=_(2);n(2),v(p(3,6,"ADMIN.WS_DETAILS.FISCAL_NAME")),n(3),v(t.ws.fiscalLegalName),n(3),v(p(9,8,"ADMIN.WS_DETAILS.FISCAL_TYPE")),n(3),v(t.ws.fiscalType),n(3),v(p(15,10,"ADMIN.WS_DETAILS.FISCAL_COUNTRY")),n(3),v(t.ws.fiscalCountry)}}function Pt(o,l){if(o&1){let t=I();i(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14),m(4,"app-widget-workspace-avatar",15),i(5,"div")(6,"h4",16),a(7),S(8,Ne,1,0,"i",17),e(),i(9,"div",18),m(10,"i",19),a(11),e(),S(12,Pe,3,1,"div",20),i(13,"div",21),m(14,"p-tag",22),S(15,Re,1,0,"p-tag",23)(16,Fe,1,0,"p-tag",24),e()()(),i(17,"div",25)(18,"div",26)(19,"div",27)(20,"span",28),a(21),d(22,"translate"),e(),i(23,"span",29),a(24),d(25,"date"),e()(),i(26,"div",27)(27,"span",28),a(28),d(29,"translate"),e(),i(30,"span",29),a(31),d(32,"date"),e()(),i(33,"div",27)(34,"span",28),a(35),d(36,"translate"),e(),i(37,"span",29)(38,"a",30),a(39),d(40,"slice"),e()()(),i(41,"div",27)(42,"span",28),a(43,"Account manager"),e(),i(44,"span",29),S(45,ze,5,8)(4
26,Ue,2,0,"span",31),e()(),i(47,"div",27),m(48,"span",28),i(49,"span",29),S(50,je,2,0,"button",32)(51,Ke,8,3,"div",33),e()(),i(52,"div",27)(53,"span",28),a(54,"ID"),e(),i(55,"span",34),a(56),e()()()()(),S(57,Ge,2,1,"p",35),e(),i(58,"div",36)(59,"h6",37),m(60,"i",38),a(61),d(62,"translate"),e(),i(63,"div",39)(64,"div",40)(65,"p-inputSwitch",41),D("ngModelChange",function(r){E(t);let C=_();return A(C.liveOverrideEnabled,r)||(C.liveOverrideEnabled=r),f(r)}),g("onChange",function(){E(t);let r=_();return f(r.toggleLiveOverride())}),e(),i(66,"span",42),a(67),d(68,"translate"),e(),S(69,qe,2,3,"p-tag",43)(70,Ye,2,3,"p-tag",44),e(),i(71,"div",40)(72,"p-inputSwitch",41),D("ngModelChange",function(r){E(t);let C=_();return A(C.playlistsOverrideEnabled,r)||(C.playlistsOverrideEnabled=r),f(r)}),g("onChange",function(){E(t);let r=_();return f(r.togglePlaylistsOverride())}),e(),i(73,"span",42),a(74," Listes de lecture (ouverture manuelle) "),e(),S(75,$e,1,0,"p-tag",45)(76,Xe,1,0,"p-tag",46),e(),S(77,Ze,9,7,"div",47),m(78,"div",48),i(79,"div",40)(80,"p-inputSwitch",41),D("ngModelChange",function(r){E(t);let C=_();return A(C.verifiedEnabled,r)||(C.verifiedEnabled=r),f(r)}),g("onChange",function(){E(t);let r=_();return f(r.toggleVerified())}),e(),i(81,"span",42),a(82,"Compte certifi\xE9"),e(),S(83,Qe,1,0,"p-tag",49)(84,et,1,0,"p-tag",50),e(),m(85,"div",48),i(86,"p-button",51),d(87,"translate"),g("onClick",function(){E(t);let r=_();return f(r.openContactDialog())}),e()(),m(88,"hr",52),i(89,"div",53)(90,"span",54),a(91),d(92,"translate"),e(),m(93,"p-tag",22)(94,"div",55),S(95,tt,2,4,"p-button",56)(96,it,2,4,"p-button",57)(97,nt,2,4,"p-button",58),m(98,"div",55),i(99,"p-button",59),d(100,"translate"),g("onClick",function(){E(t);let r=_();return f(r.deleteWorkspace())}),e()(),S(101,at,6,4,"div",60),e(),i(102,"p-dialog",61),d(103,"translate"),D("visibleChange",function(r){E(t);let C=_();return A(C.showStatusDialog,r)||(C.showStatusDialog=r),f(r)}),i(104,"div",62),a(105),d(106,"translate"),e(),i(107,"textarea",63),d(108,"translate"),D("ngModelChange",function(r){E(t);let C=_();return A(C.statusReason,r)||(C.statusReason=r),f(r)}),e(),S(109,ot,4,9,"ng-template",64),e(),i(110,"div",65)(111,"div",66)(112,"div",67)(113,"div",68),a(114),e(),i(115,"div",69),a(116),d(117,"translate"),e()()(),i(118,"div",66)(119,"div",67)(120,"div",70),a(121),e(),i(122,"div",69),a(123),d(124,"translate"),e()()(),i(125,"div",66)(126,"div",67)(127,"div",71),a(128),e(),i(129,"div",69),a(130),d(131,"translate"),e()()(),i(132,"div",66)(133,"div",67)(134,"div",70),a(135),e(),i(136,"div",69),a(137),d(138,"translate"),e()()(),i(139,"div",66)(140,"div",67)(141,"div",70),a(142),e(),i(143,"div",69),a(144),d(145,"translate"),e()()(),i(146,"div",66)(147,"div",67)(148,"div",70),a(149),e(),i(150,"div",69),a(151),d(152,"translate"),e()()(),i(153,"div",66)(154,"div",67)(155,"div",70),a(156),e(),i(157,"div",69),a(158),d(159,"translate"),e()()(),i(160,"div",66)(161,"div",67)(162,"div",72),a(163),e(),i(164,"div",69),a(165),d(166,"translate"),e()()(),i(167,"div",66)(168,"div",67)(169,"div",70),a(170),e(),i(171,"div",69),a(172),d(173,"translate"),e()()(),i(174,"div",66)(175,"div",67)(176,"div",70),a(177),e(),i(178,"div",69),a(179),d(180,"translate"),e()()(),i(181,"div",66)(182,"div",67)(183,"div",70),a(184),e(),i(185,"div",69),a(186),d(187,"translate"),e()()(),i(188,"div",66)(189,"div",67)(190,"div",70),a(191),e(),i(192,"div",69),a(193),d(194,"translate"),e()()(),i(195,"div",66)(196,"div",67)(197,"div",70),a(198),e(),i(199,"div",69),a(200),d(201,"translate"),e()()(),i(202,"div",66)(203,"div",67)(204,"div",70),a(205),e(),i(206,"div",69),a(207),d(208,"translate"),e()()(),i(209,"div",66)(210,"div",67)(211,"div",70),a(212),e(),i(213,"div",69),a(214),d(215,"translate"),e()()()(),i(216,"div",73)(217,"h6",74),m(218,"i",75),a(219),d(220,"translate"),e(),i(221,"p-select",76),D("ngModelChange",function(r){E(t);let C=_();return A(C.selectedPeriod,r)||(C.selectedPeriod=r),f(r)}),g("onChange",function(){E(t);let r=_();return f(r.onPeriodChange())}),e()(),i(222,"div",65),S(223,rt,8,5,"div",77)(224,lt,8,5,"div",77)(225,st,8,5,"div",77),e(),i(226,"div",78)(227,"div",79)(228,"h6",80),m(229,"i",81),a(230),d(231,"translate"),i(232,"span",82),a(233),e()()(),S(234,dt,3,3,"div",83)(235,ct,23,15,"div",84),e(),i(236,"div",78)(237,"div",85)(238,"h6",80),m(239,"i",86),a(240),d(241,"translate"),i(242,"span",82),a(243),e(
2)()(),S(244,mt,3,3,"div",83)(245,St,26,18,"div",84),e(),i(246,"div",78)(247,"button",87),g("click",function(){E(t);let r=_();return f(r.basculerProduction())}),m(248,"i",88),i(249,"h6",89),a(250," Tous les contenus et tous les lives "),e(),i(251,"span",90),a(252),e()(),S(253,Tt,2,1),e(),S(254,Wt,30,19,"div",78),i(255,"div",65)(256,"div",91)(257,"div",92)(258,"h6",37),m(259,"i",93),a(260),d(261,"translate"),e(),i(262,"div",26)(263,"div",27)(264,"span",28),a(265,"Customer ID"),e(),i(266,"span",29)(267,"code"),a(268),e()()(),i(269,"div",27)(270,"span",28),a(271,"Connect (seller)"),e(),i(272,"span",29),S(273,Mt,3,2)(274,Lt,2,0,"span",31),e()(),i(275,"div",27)(276,"span",28),a(277,"Creator"),e(),i(278,"span",29),S(279,Ot,3,2)(280,Bt,2,0,"span",31),e()()()()(),i(281,"div",91)(282,"div",92)(283,"h6",37),m(284,"i",94),a(285),d(286,"translate"),e(),i(287,"div",26)(288,"div",27)(289,"span",28),a(290),d(291,"translate"),e(),i(292,"span",29),a(293),e()(),i(294,"div",27)(295,"span",28),a(296),d(297,"translate"),e(),i(298,"span",29),a(299),e()(),i(300,"div",27)(301,"span",28),a(302),d(303,"translate"),e(),i(304,"span",29),a(305),e()(),i(306,"div",27)(307,"span",28),a(308),d(309,"translate"),e(),i(310,"span",29),a(311),e()(),S(312,Nt,18,12),e()()()()()}if(o&2){let t,c,r=_();n(4),u("workspace",r.ws)("size",72),n(3),s(" ",r.ws.name," "),n(),x(r.ws.isVerified?8:-1),n(3),s("",r.ws.slug," "),n(),x(r.ws.websiteUrl?12:-1),n(2),u("value",r.ws.type)("severity",r.getTypeSeverity(r.ws.type)),n(),x(r.ws.isPrivate?15:-1),n(),x(r.ws.shopEnabled?16:-1),n(5),v(p(22,115,"ADMIN.WS_DETAILS.CREATED")),n(3),v(w(25,117,r.ws.createdAt,"dd/MM/yyyy HH:mm")),n(4),v(p(29,120,"ADMIN.WS_DETAILS.UPDATED")),n(3),v(w(32,122,r.ws.updatedAt,"dd/MM/yyyy HH:mm")),n(4),v(p(36,125,"ADMIN.WS_DETAILS.OWNER_ID")),n(3),u("routerLink",L(195,Ve,r.ws.ownerId)),n(),s(" ",O(40,127,r.ws.ownerId,0,8),"\u2026 "),n(6),x((t=r.data.accountManager)?45:46,t),n(5),x(r.data.accountManager?50:51),n(6),v(r.ws.id),n(),x(r.ws.description?57:-1),n(4),s("",p(62,131,"ADMIN.WS_DETAILS.ACTIONS_TITLE")," "),n(4),b("ngModel",r.liveOverrideEnabled),n(2),s(" ",p(68,133,"ADMIN.WS_DETAILS.LIVE_OVERRIDE")," "),n(2),x(r.liveOverrideEnabled?69:70),n(3),b("ngModel",r.playlistsOverrideEnabled),n(3),x(r.playlistsInfo!=null&&r.playlistsInfo.unlocked?75:76),n(2),x((c=r.playlistsInfo)?77:-1,c),n(3),b("ngModel",r.verifiedEnabled),n(3),x(r.verifiedEnabled?83:84),n(3),u("outlined",!0)("label",p(87,135,"ADMIN.USERS.CONTACT")),n(5),s(" ",p(92,137,"ADMIN.WS_DETAILS.MOD_STATUS")," "),n(2),u("value",r.getWorkspaceStatusLabel(r.ws.status))("severity",r.getWorkspaceStatusSeverity(r.ws.status)),n(2),x(r.ws.status!=="suspended"?95:-1),n(),x(r.ws.status!=="blocked"?96:-1),n(),x(r.ws.status&&r.ws.status!=="active"?97:-1),n(2),u("label",p(100,139,"ADMIN.WS_DETAILS.MOD_DELETE")),n(2),x(r.ws.status&&r.ws.status!=="active"&&r.ws.blockReason?101:-1),n(),P(R(197,We)),b("visible",r.showStatusDialog),u("modal",!0)("header",p(103,141,r.statusTarget==="blocked"?"ADMIN.WS_DETAILS.MOD_BLOCK":"ADMIN.WS_DETAILS.MOD_SUSPEND")),n(3),s(" ",p(106,143,"ADMIN.WS_DETAILS.MOD_DIALOG_HINT")," "),n(2),b("ngModel",r.statusReason),u("placeholder",p(108,145,"ADMIN.WS_DETAILS.MOD_REASON_PLACEHOLDER")),n(7),s(" ",r.formatCount(r.stats.followerCount)," "),n(2),s(" ",p(117,147,"ADMIN.WS_DETAILS.FOLLOWERS")," "),n(5),s(" ",r.formatCount(r.stats.followingCount)," "),n(2),s(" ",p(124,149,"ADMIN.WS_DETAILS.FOLLOWING")," "),n(5),s(" ",r.formatCount(r.stats.totalLikesReceived)," "),n(2),s(" ",p(131,151,"ADMIN.WS_DETAILS.LIKES_RECEIVED")," "),n(5),v(r.stats.totalVideos),n(2),s(" ",p(138,153,"ADMIN.WS_DETAILS.VIDEOS")," "),n(5),s(" ",r.formatCount(r.stats.totalViews)," "),n(2),s(" ",p(145,155,"ADMIN.WS_DETAILS.TOTAL_VIEWS")," "),n(5),s(" ",r.formatCount(r.stats.totalComments)," "),n(2),s(" ",p(152,157,"ADMIN.WS_DETAILS.COMMENTS")," "),n(5),v(r.stats.totalProducts),n(2),s(" ",p(159,159,"ADMIN.WS_DETAILS.PRODUCTS")," "),n(5),s(" ",r.formatCents(r.stats.revenueCents)," "),n(2),s(" ",p(166,161,"ADMIN.WS_DETAILS.REVENUE")," "),n(5),v(r.stats.totalOrders),n(2),s(" ",p(173,163,"ADMIN.WS_DETAILS.ORDERS")," "),n(5),v(r.stats.totalLinks),n(2),s(" ",p(180,165,"ADMIN.WS_DETAILS.LINKS")," "),n(5),s(" ",r.formatCount(r.stats.totalClicks)," "),n(2),s(" ",p(187,167,"ADMIN.WS_DETAILS.CLICKS")," "),n(5),s(" ",r.formatCount(r.stats.totalStarsEarned)," "),n(2),s(" ",p(194,169,"ADMIN.WS_DETAILS.STARS_EARNED")," "),n(5),v(r.stats.coinBalance),n(2),s(" ",p(201,171,"ADMIN.WS_DETAILS.COIN_BALANCE")," "),n(4),M("text-danger",r.stats.reportCount>0),n(),s(" ",r.stats.reportCount," "),n(2),s(" ",p(208,173,"ADMIN.WS_DETAILS.REPORTS")," "),n(5),v(r.stats.apiKeyCount),n(2),s(" ",p(215,175,"ADMIN.WS_DETAILS.API_KEYS")," "),n(5),s("",p(220,177,"ADMIN.WS_DETAILS.CHARTS_TITLE")," "),n(2),u("options",r.periodOptions),b("ngModel",r.selectedPeriod),n(),M("opacity-50",r.chartsLoading),n(),x(r.followerChartData&&r.followerChartData.labels.length>0?223:-1),n(),x(r.revenueChartData&&r.revenueChartData.labels.length>0?224:-1),n(),x(r.viewsChartData&&r.viewsChartData.labels.length>0?225:-1),n(5),s("",p(231,179,"ADMIN.WS_DETAILS.MEMBERS")," "),n(3),v(r.data.members.length),n(),x(r.data.members.length===0?234:235),n(6),s("",p(241,181,"ADMIN.WS_DETAILS.RECENT_VIDEOS")," "),n(3),v(r.stats.totalVideos),n(),x(r.data.recentVideos.length===0?244:245),n(4),M("pi-chevron-down",r.productionOuverte)("pi-chevron-right",!r.productionOuverte),n(4),s(" ",r.productionChargee?r.totalContenus+" contenus \xB7 "+r.totalLives+" lives":"Afficher"," "),n(),x(r.productionOuverte?253:-1),n(),x(r.stats.totalOrders>0?254:-1),n(6),s("",p(261,183,"ADMIN.WS_DETAILS.STRIPE_INFO")," "),n(8),v(r.ws.stripeCustomerId||"\u2014"),n(5),x(r.ws.stripeConnectAccountId?273:274),n(6),x(r.ws.stripeCreatorAccountId?279:280),n(6),s("",p(286,185,"ADMIN.WS_DETAILS.LIMITS")," "),n(5),v(p(291,187,"ADMIN.WS_DETAILS.MAX_MEMBERS")),n(3),v(r.ws.maxMembers),n(3),v(p(297,189,"ADMIN.WS_DETAILS.MAX_LINKS")),n(3),v(r.ws.maxLinks),n(3),v(p(303,191,"ADMIN.WS_DETAILS.MAX_API_KEYS")),n(3),v(r.ws.maxApiKeys),n(3),v(p(309,193,"ADMIN.WS_DETAILS.MAX_BIO_PAGES")),n(3),v(r.ws.maxBioPages),n(),x(r.ws.fiscalLegalName?312:-1)}}var Te=class o{route=k(G);router=k(q);workspacesService=k(Ae);ticketsService=k(De);toastService=k(Z);accountManagers=k(ke);confirmService=k(he);workspaceId;data=null;get playlistsInfo(){return this.data?.playlists??null}loading=!0;error=null;liveOverrideEnabled=!1;playlistsOverrideEnabled=!1;verifiedEnabled=!1;showStatusDialog=!1;statusTarget="blocked";statusReason="";savingStatus=!1;selectedVideo=null;videoDetailVisible=!1;allVideosForModal=[];selectedPeriod="30d";periodOptions=[{label:"7 derniers jours",value:"7d"},{label:"30 derniers jours",value:"30d"},{label:"90 derniers jours",value:"90d"},{label:"Depuis la cr\xE9ation",value:"all"}];chartsLoading=!1;followerChartData=null;revenueChartData=null;viewsChartData=null;
2chartOptions={plugins:{legend:{display:!1}},responsive:!0,maintainAspectRatio:!1,scales:{x:{grid:{display:!1},ticks:{font:{size:10}}},y:{beginAtZero:!0,ticks:{font:{size:10}}}}};amDisponibles=[];amCible=null;amEnCours=!1;chargerAccountManagers(){return h(this,null,function*(){try{let l=yield this.accountManagers.list();this.amDisponibles=l.filter(t=>!t.status||t.status==="active").map(t=>({id:t.id,label:[t.firstName,t.lastName].filter(Boolean).join(" ")||t.email}))}catch{}})}confierAUnAm(){return h(this,null,function*(){if(!this.amCible)return;let l=this.amDisponibles.find(c=>c.id===this.amCible);if(yield this.confirmService.confirm({message:`Confier \xAB ${this.data?.workspace?.name}\xBB \xE0 ${l?.label} ? La date de prise en charge \u2014 donc sa r\xE9mun\xE9ration \u2014 d\xE9marre maintenant.`,header:"Confier le compte",severity:"warn"})){this.amEnCours=!0;try{yield this.accountManagers.assign(this.workspaceId,this.amCible),this.toastService.add({severity:"success",detail:`Compte confi\xE9 \xE0 ${l?.label}.`}),this.amCible=null,yield this.loadDetails()}catch(c){this.toastService.add({severity:"error",detail:c?.error?.message??"L\u2019attribution a \xE9chou\xE9. La cible doit \xEAtre un account manager actif."})}finally{this.amEnCours=!1}}})}retirerLAm(){return h(this,null,function*(){if(yield this.confirmService.confirm({message:`Retirer l\u2019accompagnement de \xAB ${this.data?.workspace?.name} \xBB ? Le compte repart au vivier et redevient disponible pour tous les account managers.`,header:"Retirer l\u2019accompagnement"}))try{yield this.accountManagers.assign(this.workspaceId,null),this.toastService.add({severity:"success",detail:"Compte rendu au vivier."}),yield this.loadDetails()}catch{this.toastService.add({severity:"error",detail:"Le retrait a \xE9chou\xE9."})}})}productionOuverte=!1;productionChargee=!1;productionEnCours=!1;contenus=[];lives=[];totalContenus=0;totalLives=0;productionOffset=0;productionLimit=25;ngOnInit(){this.workspaceId=this.route.snapshot.paramMap.get("id"),this.loadDetails(),this.chargerAccountManagers()}basculerProduction(){return h(this,null,function*(){this.productionOuverte=!this.productionOuverte,this.productionOuverte&&!this.productionChargee&&(yield this.chargerProduction())})}chargerProduction(l=0){return h(this,null,function*(){this.productionEnCours=!0;try{let t=yield this.workspacesService.getWorkspaceContent(this.workspaceId,this.productionLimit,l);this.contenus=t?.contenus??[],this.lives=t?.lives??[],this.totalContenus=t?.totalContenus??0,this.totalLives=t?.totalLives??0,this.productionOffset=l,this.productionChargee=!0}catch{this.toastService.add({severity:"error",detail:"Impossible de charger les contenus et les lives."})}finally{this.productionEnCours=!1}})}pageProduction(l){let t=this.productionOffset+l*this.productionLimit;t<0||this.chargerProduction(t)}get productionAUneSuite(){return this.productionOffset+this.productionLimit<Math.max(this.totalContenus,this.totalLives)}loadDetails(){return h(this,null,function*(){this.loading=!0,this.error=null;try{this.data=yield this.workspacesService.getWorkspaceDetails(this.workspaceId,this.selectedPeriod),this.liveOverrideEnabled=!!this.data.workspace.liveEligibleOverride,this.playlistsOverrideEnabled=!!this.data.workspace.playlistsOverride,this.verifiedEnabled=!!this.data.workspace.isVerified,this.buildCharts()}catch(l){this.error=l?.message||"Erreur lors du chargement"}finally{this.loading=!1}})}toggleVerified(){return h(this,null,function*(){try{yield this.workspacesService.setVerified(this.workspaceId,this.verifiedEnabled),this.toastService.success(this.verifiedEnabled?"Compte certifi\xE9":"Certification retir\xE9e")}catch(l){this.verifiedEnabled=!this.verifiedEnabled,this.toastService.error(l?.message||"Erreur lors de la mise \xE0 jour")}})}togglePlaylistsOverride(){return h(this,null,function*(){try{let l=yield this.workspacesService.togglePlaylistsOverride(this.workspaceId,this.playlistsOverrideEnabled);this.data&&(this.data.playlists=l.playlists),this.toastService.success(this.playlistsOverrideEnabled?"Listes de lecture ouvertes pour cet espace":"Ouverture manuelle des listes retir\xE9e")}catch(l){this.playlistsOverrideEnabled=!this.playlistsOverrideEnabled,this.toastService.error(l?.message||"Erreur lors de la mise \xE0 jour")}})}toggleLiveOverride(){return h(this,null,function*(){try{yield this.workspacesService.toggleLiveOverride(this.workspaceId,this.liveOverrideEnabled),this.toastService.success(this.liveOverrideEnabled?"Live access override activ\xE9":"Live access override d\xE9s
2activ\xE9")}catch(l){this.liveOverrideEnabled=!this.liveOverrideEnabled,this.toastService.error(l?.message||"Erreur lors de la mise \xE0 jour")}})}openContactDialog(){this.router.navigate(["/admin/tickets/new"],{queryParams:{workspace:this.workspaceId,name:this.ws?.name||""}})}openStatusDialog(l){this.statusTarget=l,this.statusReason="",this.showStatusDialog=!0}confirmStatusChange(){return h(this,null,function*(){if(this.ws){this.savingStatus=!0;try{let l=yield this.workspacesService.updateWorkspaceStatus(this.workspaceId,this.statusTarget,this.statusReason.trim()||void 0);this.data&&(this.data.workspace.status=l.status,this.data.workspace.blockReason=l.blockReason,this.data.workspace.blockedAt=l.blockedAt),this.showStatusDialog=!1,this.toastService.success(this.statusTarget==="blocked"?"Workspace bloqu\xE9":"Workspace suspendu")}catch(l){this.toastService.error(l?.error?.message||l?.message||"Erreur")}finally{this.savingStatus=!1}}})}reactivateWorkspace(){return h(this,null,function*(){if(!(!this.ws||!(yield this.confirmService.confirm({message:`R\xE9activer le workspace \xAB ${this.ws.name} \xBB ? Ses membres retrouveront l'acc\xE8s.`,header:"R\xE9activer le workspace",severity:"info",acceptLabel:"R\xE9activer",rejectLabel:"Annuler"}))))try{let t=yield this.workspacesService.updateWorkspaceStatus(this.workspaceId,"active");this.data&&(this.data.workspace.status=t.status,this.data.workspace.blockReason=t.blockReason,this.data.workspace.blockedAt=t.blockedAt),this.toastService.success("Workspace r\xE9activ\xE9")}catch(t){this.toastService.error(t?.error?.message||t?.message||"Erreur")}})}deleteWorkspace(){return h(this,null,function*(){if(!(!this.ws||!(yield this.confirmService.confirm({message:`Supprimer le workspace \xAB ${this.ws.name} \xBB ? Cette action est r\xE9versible c\xF4t\xE9 base mais coupe imm\xE9diatement l'acc\xE8s.`,header:"Supprimer le workspace",severity:"danger",acceptLabel:"Supprimer",rejectLabel:"Annuler"}))))try{yield this.workspacesService.deleteWorkspace(this.workspaceId),this.toastService.success("Workspace supprim\xE9"),this.router.navigate(["/admin/users"])}catch(t){this.toastService.error(t?.error?.message||t?.message||"Erreur")}})}getWorkspaceStatusSeverity(l){switch(l){case"blocked":return"danger";case"suspended":return"warn";case"active":default:return"success"}}getWorkspaceStatusLabel(l){switch(l){case"blocked":return"Bloqu\xE9";case"suspended":return"Suspendu";case"active":default:return"Actif"}}onPeriodChange(){return h(this,null,function*(){this.chartsLoading=!0;try{let l=yield this.workspacesService.getWorkspaceDetails(this.workspaceId,this.selectedPeriod);this.data&&(this.data.charts=l.charts),this.buildCharts()}catch(l){console.error("[onPeriodChange]",l)}finally{this.chartsLoading=!1}})}goBack(){this.router.navigate(["/admin/users"])}buildCharts(){if(!this.data)return;let{charts:l}=this.data;this.followerChartData={labels:l.followerGrowth.map(t=>this.formatDate(t.date)),datasets:[{label:"Followers",data:l.followerGrowth.map(t=>t.count),borderColor:"#3b82f6",backgroundColor:"rgba(59, 130, 246, 0.1)",fill:!0,tension:.3}]},this.revenueChartData={labels:l.revenueGrowth.map(t=>this.formatDate(t.date)),datasets:[{label:"Revenue (\u20AC)",data:l.revenueGrowth.map(t=>t.totalCents/100),borderColor:"#059669",backgroundColor:"rgba(5, 150, 105, 0.1)",fill:!0,tension:.3}]},this.viewsChartData={labels:l.viewsGrowth.map(t=>this.formatDate(t.date)),datasets:[{label:"Vues",data:l.viewsGrowth.map(t=>t.views),borderColor:"#8b5cf6",backgroundColor:"rgba(139, 92, 246, 0.1)",fill:!0,tension:.3}]}}get ws(){return this.data?.workspace}get stats(){return this.data?.stats}formatCents(l){return(l/100).toFixed(2)+" \u20AC"}formatCount(l){return l>=1e6?(l/1e6).toFixed(1)+"M":l>=1e3?(l/1e3).toFixed(1)+"K":String(l||0)}formatDate(l){let t=new Date(l);return`${t.getDate()}/${t.getMonth()+1}`}getTypeSeverity(l){return l==="team"?"info":"secondary"}openVideoDetail(l){this.selectedVideo=this.mapToAdminVideo(l),this.allVideosForModal=(this.data?.recentVideos||[]).map(t=>this.mapToAdminVideo(t)),this.videoDetailVisible=!0}
2onVideoDetailAction(){this.loadDetails()}mapToAdminVideo(l){return{id:l.id,title:l.title??void 0,description:l.description??void 0,thumbnailUrl:l.thumbnailUrl??void 0,status:l.status,viewCount:l.viewCount,likeCount:l.likeCount,commentCount:l.commentCount,isShadowBanned:l.isShadowBanned,createdAt:l.createdAt,workspaceId:this.workspaceId,workspaceName:this.data?.workspace?.name,workspaceSlug:this.data?.workspace?.slug,workspaceAvatarUrl:this.data?.workspace?.avatarUrl??void 0,workspaceIsVerified:this.data?.workspace?.isVerified??!1,duration:0,visibility:"public",shareCount:0,reportCount:0,contentWarning:!1,isPaidPartnership:!1,isAiGenerated:!1}}getStatusSeverity(l){switch(l){case"published":return"success";case"restricted":return"danger";case"draft":return"secondary";case"processing":return"info";default:return"info"}}getOrderStatusSeverity(l){switch(l){case"delivered":return"success";case"paid":case"shipped":return"info";case"refunded":return"warn";case"disputed":return"danger";default:return"secondary"}}getRoleBadgeClass(l){switch(l){case"owner":return"bg-primary";case"admin":return"bg-warning text-dark";case"member":return"bg-info text-dark";case"viewer":return"bg-light text-dark border";default:return"bg-secondary"}}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=N({type:o,selectors:[["app-view-admin-workspace-details"]],decls:10,vars:10,consts:[[1,"d-flex","align-items-center","mb-4","gap-2"],[1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"pi","pi-arrow-left","me-1"],["class","mb-0 flex-grow-1",4,"ngIf"],[3,"loading"],["class","alert alert-danger",4,"ngIf"],["class","ws-detail
2s-page",4,"ngIf"],[3,"visibleChange","actionApplied","visible","video","allVideos"],[1,"mb-0","flex-grow-1"],[1,"alert","alert-danger"],[1,"pi","pi-exclamation-triangle","me-2"],[1,"ws-details-page"],[1,"ws-header-card","border","rounded","p-4","mb-4","bg-white"],[1,"row","align-items-center"],[1,"col-12","col-md-7","d-flex","align-items-center","gap-3"],[3,"workspace","size"],[1,"mb-1"],[1,"pi","pi-verified","text-primary","ms-1",2,"font-size","1rem"],[1,"text-muted","mb-1"],[1,"pi","pi-at","me-1",2,"font-size","0.8rem"],[1,"text-muted","mb-1",2,"font-size","0.8rem"],[1,"d-flex","gap-2","flex-wrap","align-items-center","mt-2"],[3,"value","severity"],["value","Private","severity","secondary","icon","pi pi-lock"],["value","Shop","severity","success","icon","pi pi-shop"],[1,"col-12","col-md-5","mt-3","mt-md-0"],[1,"d-flex","flex-column","gap-1",2,"font-size","0.82rem"],[1,"info-row"],[1,"info-label"],[1,"info-value"],[1,"text-primary","text-decoration-none",3,"routerLink"],[1,"text-muted"],["type","button",1,"btn","btn-sm","btn-outline-secondary"],[1,"d-flex","gap-1","flex-wrap"],[1,"info-value","text-muted",2,"font-size","0.72rem"],[1,"mt-3","mb-0","text-muted",2,"font-size","0.85rem"],[1,"border","rounded","p-3","mb-4","bg-white"],[1,"section-title","mb-3"],[1,"pi","pi-cog","me-2"],[1,"d-flex","flex-wrap","gap-3","align-items-center"],[1,"d-flex","align-items-center","gap-2"],[3,"ngModelChange","onChange","ngModel"],[2,"font-size","0.85rem"],["severity","success",3,"value"],["severity","secondary",3,"value"],["value","Ouvertes","severity","success"],["value","Verrouill\xE9es","severity","secondary"],[1,"w-100",2,"font-size","0.8rem","color","#666"],[1,"vr","mx-1"],["value","Certifi\xE9","severity","success"],["value","Non certifi\xE9","severity","secondary"],["icon","pi pi-envelope","severity","info","size","small",3,"onClick","outlined","label"],[1,"my-3"],[1,"d-flex","flex-wrap","gap-2","align-items-center"],[1,"me-1",2,"font-size","0.85rem"],[1,"vr","mx-2"],["icon","pi pi-pause","severity","warn","size","small",3,"outlined","label"],["icon","pi pi-ban","severity","danger","size","small",3,"outlined","label"],["icon","pi pi-check","severity","success","size","small",3,"outlined","label"],["icon","pi pi-trash","severity","danger","size","small",3,"onClick","label"],[1,"alert","alert-warning","mt-3","mb-0","py-2","px-3","small"],[3,"visibleChange","visible","modal","header"],[1,"mb-2","small","text-muted"],["pTextarea","","rows","3",1,"w-100",3,"ngModelChange","ngModel","placeholder"],["pTemplate","footer"],[1,"row","g-3","mb-4"],[1,"col-6","col-md-4","col-lg-3","col-xl-2"],[1,"kpi-card","border","rounded","p-3","bg-white","text-center"],[1,"kpi-value","text-primary"],[1,"kpi-label"],[1,"kpi-value"],[1,"kpi-value","text-danger"],[1,"kpi-value","text-success"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"mb-0","fw-semibold"],[1,"pi","pi-chart-line","me-2"],["styleClass","filter-select",3,"ngModelChange","onChange","options","ngModel"],[1,"col-12","col-lg-4"],[1,"border","rounded","mb-4","bg-white"],[1,"p-3","border-bottom","d-flex","justify-content-between","align-items-center"],[1,"section-title","mb-0"],[1,"pi","pi-users","me-2"],[1,"badge","bg-secondary","ms-2"],[1,"p-3","text-center","text-muted"],[1,"table-responsive"],[1,"p-3","border-bottom"],[1,"pi","pi-video","me-2"],["type","button",1,"p-3","border-bottom","w-100","text-start","bg-transparent","border-0","d-flex","align-items-center","gap-2",3,"click"],[1,"pi"],[1,"section-title","mb-0","flex-grow-1"],[1,"text-muted","small"],[1,"col-12","col-md-6"],[1,"border","rounded","p-3","bg-white"],[1,"pi","pi-credit-card","me-2"],[1,"pi","pi-sliders-h","me-2"],[1,"pi","pi-link","me-1"],[1,"text-muted","d-block"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"form-select","form-select-sm",2,"max-width","190px",3,"ngModelChange","ngModel"],[3,"ngValue"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],["icon","pi pi-pause","severity","warn","size","small",3,"onClick","outlined","label"],["icon","pi pi-ban","severity","danger","size","small",3,"onClick","outlined","label"],["icon","pi pi-check","severity","success","size","small",3,"onClick","outlined","label"],[1,"pi","pi-info-circle","me-1"],["severity","secondary",3,"onClick","label","text"],[3,"onClick","label","severity","loading"],[1,"pi","pi-users","me-2","text-primary"],[2,"height","200px"],["type","line","height","200px",3,"data","options"],[1,"pi","pi-euro","me-2","text-success"],[1,"pi","pi-eye","me-2","text-info"],[1,"table","table-hover","mb-0"],[1,"table-light"],[1,"badge",3,"ngClass"],["pTooltip","Voir utilisateur",1,"btn","btn-sm","text-primary",3,"routerLink"],[1,"pi","pi-external-link"],[1,"text-end"],[1,"curs
2or-pointer"],[1,"cursor-pointer",3,"click"],[2,"width","48px"],["alt","",1,"rounded",2,"width","36px","height","48px","object-fit","cover",3,"src"],[1,"rounded","bg-light","d-flex","align-items-center","justify-content-center",2,"width","36px","height","48px"],[1,"text-truncate","fw-medium",2,"max-width","250px"],[1,"badge","bg-danger",2,"font-size","0.6rem"],[1,"pi","pi-video","text-muted"],[1,"p-3"],[1,"mb-2"],[1,"badge","bg-secondary"],[1,"table-responsive","mb-4"],[1,"table","table-sm","table-hover","align-middle","mb-0"],[1,"d-flex","align-items-center","gap-2","mt-3","justify-content-end"],[2,"width","56px"],["alt","",2,"width","40px","height","56px","object-fit","cover","border-radius","4px",3,"src"],["severity","warn","value","Boost\xE9",1,"ms-1"],[3,"severity","value"],[1,"small"],[1,"small","text-muted"],["colspan","9",1,"text-muted","small"],["target","_blank",1,"small",3,"href"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click","disabled"],[1,"pi","pi-shopping-bag","me-2"],[1,"text-end","fw-semibold"],[1,"text-muted",2,"font-size","0.78rem"],["severity","info",1,"ms-1",3,"value"],[1,"info-row","mt-2","pt-2","border-top"]],template:function(t,c){t&1&&(i(0,"div",0)(1,"button",1),g("click",function(){return c.goBack()}),m(2,"i",2),a(3),d(4,"translate"),e(),S(5,Oe,3,3,"h5",3),e(),m(6,"app-widget-loading",4),S(7,Be,3,1,"div",5)(8,Pt,313,198,"div",6),i(9,"app-moderation-video-detail",7),D("visibleChange",function(C){return A(c.videoDetailVisible,C)||(c.videoDetailVisible=C),C}),g("actionApplied",function(){return c.onVideoDetailAction()}),e()),t&2&&(n(3),s("",p(4,8,"ADMIN.WS_DETAILS.BACK")," "),n(2),u("ngIf",c.data),n(),u("loading",c.loading),n(),u("ngIf",c.error&&!c.loading),n(),u("ngIf",c.data&&!c.loading&&!c.error),n(),b("visible",c.videoDetailVisible),u("video",c.selectedVideo)("allVideos",c.allVideosForModal))},dependencies:[K,F,z,H,j,U,oe,ne,ae,Q,ie,ee,te,$,Y,ge,fe,re,se,le,ce,pe,Ee,Ce,ve,ue,_e,me,Se,xe,Ie,we,J,X,de,be,ye],styles:["[_nghost-%COMP%]{display:block;width:100%;padding-top:.5rem}.ws-header-card[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000000f}.kpi-card[_ngcontent-%COMP%]{box-shadow:0 1px 2px #0000000a;transition:box-shadow .2s}.kpi-card[_ngcontent-%COMP%]:hover{box-shadow:0 2px 8px #00000014}.kpi-card[_ngcontent-%COMP%]   .kpi-value[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;line-height:1.2}.kpi-card[_ngcontent-%COMP%]   .kpi-label[_ngcontent-%COMP%]{font-size:.75rem;color:#6c757d;margin-top:.25rem;text-transform:uppercase;letter-spacing:.02em}.info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.45rem 0;border-bottom:1px solid #f0f0f0}.info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.info-row[_ngcontent-%COMP%]   .info-label[_ngcontent-%COMP%]{color:#6c757d;font-size:.83rem}.info-row[_ngcontent-%COMP%]   .info-value[_ngcontent-%COMP%]{font-size:.83rem;text-align:right}.section-title[_ngcontent-%COMP%]{font-weight:600;font-size:.95rem}.table[_ngcontent-%COMP%]{font-size:.85rem}.table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:600;font-size:.78rem;white-space:nowrap;text-transform:uppercase;letter-spacing:.02em}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:middle}.table[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background-color:#f1f3f4;padding:2px 6px;border-radius:4px;font-size:.73rem}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]})};export{Te as ViewAdminWorkspaceDetailsComponent};

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.