PageSourceSearch

https://sexplorerweb.web.app/5651.74305b7427a209a9.js

js sexplorerweb.web.app collected 2026-10-03 12:36:21 UTC 12,426 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5651],{5651:(O,p,c)=>{c.r(p),c.d(p,{AdminChallengesPageModule:()=>F});var h=c(6895),f=c(4006),g=c(603),u=c(2846),e=c(6353),d=c(7554),m=c(591),T=c(2836);let D=(()=>{class n{constructor(t,i,l,r){this.firestore=t,this.platform=i,this.zone=l,this.firebaseCrash=r,this.challengeDataReady=!1,this.challengeDataReady$=new m.X(!1),this.challengeData=[],this.challengeData$=new m.X([]),this.challengeDataRetryTimeout=null,this.challengeFirestoreUnsubFn=null,this.categoriesRelatedToChallenges=[],console.warn("AdminContentService | constructor"),this.platform.ready().then(()=>{this.challengeCollection=(0,d.hJ)(this.firestore,"challenges"),this.loadChallengesFromFirestore()})}loadChallengesFromFirestore(){if(this.challengeDataReady)return;this.challengeFirestoreUnsubFn&&this.challengeFirestoreUnsubFn(),this.challengeDataRetryTimeout&&clearTimeout(this.challengeDataRetryTimeout),this.challengeDataRetryTimeout=setTimeout(()=>{this.loadChallengesFromFirestore()},7e3);const t=(0,d.IO)(this.challengeCollection);this.challengeFirestoreUnsubFn=(0,d.cf)(t,i=>{let l=[];this.categoriesRelatedToChallenges=[];let r=!0;i.forEach(a=>{r&&console.log("challengeData",a),r=!1;let o=a.data();o.id=a.id,o.createTime=new Date,o.createTimeEpoch=a._document.createTime.timestamp.seconds,o.createTime.setTime(1e3*a._document.createTime.timestamp.seconds),o.createTimeStr=o.createTime.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}),o.category&&-1==this.categoriesRelatedToChallenges.indexOf(o.category)&&this.categoriesRelatedToChallenges.push(o.category),l.push(o)}),l.sort((a,o)=>a.id&&o.id?a.triche||o.triche?o.createTimeEpoch-a.createTimeEpoch:a.id.localeCompare(o.id):(console.warn("AdminContentService | challenge without id",a,o),1)),console.log("challengeData",l),this.zone.run(()=>{this.challengeData=l,this.challengeData$.next(this.challengeData),Array.isArray(this.challengeData)&&this.challengeData.length>0&&(this.challengeDataReady=!0,this.challengeDataReady$.next(!0),this.challengeDataRetryTimeout&&clearTimeout(this.challengeDataRetryTimeout))})},i=>{this.firebaseCrash.logError("CategoriesService | error when loading categories - "+JSON.stringify(i)),console.warn("CategoriesService | error when loading categories - "+JSON.stringify(i)),this.challengeDataRetryTimeout&&clearTimeout(this.challengeDataRetryTimeout),this.challengeDataRetryTimeout=setTimeout(()=>{this.loadChallengesFromFirestore()},2e3)})}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(d.gg),e.LFG(g.t4),e.LFG(e.R0b),e.LFG(T.E))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function y(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"ion-select-option",14),e._uU(2),e.qZA(),e.BQk()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}
1function _(n,s){1&n&&(e.TgZ(0,"div",15),e._UZ(1,"ion-spinner",16),e.qZA())}function x(n,s){1&n&&(e.TgZ(0,"div",15),e._uU(1," Aucun challenge "),e.qZA())}function A(n,s){if(1&n&&(e.TgZ(0,"ion-badge",22),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.category," ")}}function S(n,s){if(1&n&&(e.TgZ(0,"ion-badge",23),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.sexe," ")}}function v(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"div",17),e.TgZ(2,"div",18),e.TgZ(3,"h2"),e._uU(4),e.qZA(),e.TgZ(5,"h3"),e.YNc(6,A,2,1,"ion-badge",19),e.YNc(7,S,2,1,"ion-badge",20),e._uU(8),e.qZA(),e._UZ(9,"h3"),e.TgZ(10,"p",21),e._uU(11),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=s.$implicit;e.xp6(4),e.hij("Challenge ",t.triche?"triche":t.id,""),e.xp6(2),e.Q6J("ngIf",t.category),e.xp6(1),e.Q6J("ngIf",t.sexe),e.xp6(1),e.AsE(" | ",t.createTimeStr," | Q",t.qualite," "),e.xp6(3),e.hij(" ",(null==t.texte?null:t.texte.fr)||"pas de texte fr"," ")}}const C=function(){return{cssClass:"status-filter-very-wider-popover"}},Z=[{path:"",component:(()=>{class n{constructor(t){this.adminContent=t,this.challengeData=[],this.filteredChallengeData=[],this.paginatedChallengeData=[],this.currentScrollingPage=0,this.infiniteScrollElement=null,this.itemPerPage=25,this.filters=[{showInUI:!0,field:"category",filterData:null}],this.fieldsForFilter=["category","triche","sexe"],this._challengeBroadSelection="all",this._categoryBroadSelection="all",this.updateFiltersTimeout=null}get challengeBroadSelection(){return this._challengeBroadSelection}set challengeBroadSelection(t){t!=this._challengeBroadSelection&&(this._challengeBroadSelection=t,this.clearFilterAndUpdate()),this._challengeBroadSelection=t}get categoryBroadSelection(){return this._categoryBroadSelection}set categoryBroadSelection(t){t!=this._categoryBroadSelection&&(this._categoryBroadSelection=t,this.clearFilterAndUpdate()),this._categoryBroadSelection=t}ngOnInit(){console.log("AdminChallengesPage | ngOnInit start"),this.adminContent.challengeData$.subscribe(t=>{this.challengeData=[];for(let i of t)this.challengeData.push(i);this.updateFilter(!1)}),console.log("AdminChallengesPage | ngOnInit end")}clearFilterAndUpdate(){for(let t of this.filters)t.filterData=null;this.updateFilter()}updateFiltersWait(t){clearTimeout(this.updateFiltersTimeout),this.updateFiltersTimeout=setTimeout(()=>{this.updateFilter()},400)}updateFilter(t=!0){this.filteredChallengeData=[],this.infiniteScrollElement&&(this.infiniteScrollElement.disabled=!1);let i=[];for(let a of this.challengeData)i.push(a);let l=[],r=[];for(let a of i)("all"==this.challengeBroadSelection||"triche"==this.challengeBroadSelection&&a.triche||"original"==this.challengeBroadSelection&&!a.triche)&&r.push(a);for(let a of r)("all"==this.categoryBroadSelection||a.category===this.categoryBroadSelection)&&l.push(a);for(let a of l)if(this.filters.length>0){let o=this.filters[0],P=o.filterData?o.filterData.toString().toLowerCase().trim():"";(""==P||o.field in a&&a[o.field]&&a[o.field].toString().toLowerCase().trim().indexOf(P)>=0)&&this.filteredChallengeData.push(a)}else this.filteredChallengeData.push(a);t||0==this.paginatedChallengeData.length?(this.paginatedChallengeData=[],this.currentScrollingPage=0,this.updatePagination(),this.content?.scrollToTop()):this.syncDateBetweenFilteredAndPaginated()}syncDateBetweenFilteredAndPaginated(){for(let t=0;t<this.filteredChallengeData.length;t++){let i=this.filteredChallengeData[t],l=this.paginatedChallengeData.findIndex(r=>
1r.id==i.id);if(l<0){if(this.paginatedChallengeData.length<=t)continue;console.log("updatePagination | add ",t,this.paginatedChallengeData.length),this.paginatedChallengeData.splice(t,0,i)}else{if(l==t)continue;this.paginatedChallengeData.splice(l,1),this.paginatedChallengeData.splice(t,0,i)}}}loadOneMorePage(t){this.currentScrollingPage++,this.updatePagination(),this.infiniteScrollElement=t.target,setTimeout(()=>{console.log("Done"),t.target.complete(),this.paginatedChallengeData.length==this.filteredChallengeData.length&&(t.target.disabled=!0)},50)}updatePagination(){let t=this.paginatedChallengeData.length;if(console.log("updatePagination",t,this.currentScrollingPage,this.paginatedChallengeData.length,this.filteredChallengeData.length),t>this.filteredChallengeData.length)return;let i=t+this.itemPerPage;i=Math.min(this.filteredChallengeData.length,i);for(let l=t;l<i;l++)this.paginatedChallengeData.push(this.filteredChallengeData[l])}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-admin-challenges"]],viewQuery:function(t,i){if(1&t&&e.Gf(g.W2,5),2&t){let l;e.iGM(l=e.CRH())&&(i.content=l.first)}},decls:27,vars:14,consts:[["slot","start"],["text","","icon","assets/icon/back.svg","id","theBackButton"],["backButton",""],["src","assets/buttons/Menu.png","alt",""],["interface","popover",1,"orderBroadSelectionSelect",3,"ngModel","interfaceOptions","ngModelChange"],["value","all"],["value","triche"],["value","original"],["interface","popover",1,"orderBroadSelectionSelect","capitalize",3,"ngModel","interfaceOptions","ngModelChange"],[4,"ngFor","ngForOf"],["class","loadingUI",4,"ngIf"],[1,"challengeList"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles","loadingText","Chargement de plus de donn\xe9es..."],[1,"capitalize",3,"value"],[1,"loadingUI"],["name","crescent"],[1,"challengePreview"],[1,"challengeInfo"],["color","primary",4,"ngIf"],["color","warning",4,"ngIf"],[1,"challengeText"],["color","primary"],["color","warning"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header"),e.TgZ(1,"ion-toolbar"),e.TgZ(2,"ion-buttons",0),e._UZ(3,"ion-back-button",1,2),e.TgZ(5,"ion-menu-button"),e._UZ(6,"img",3),e.qZA(),e.TgZ(7,"ion-select",4),e.NdJ("ngModelChange",function(r){return i.challengeBroadSelection=r}),e.TgZ(8,"ion-select-option",5),e._uU(9,"Tous"),e.qZA(),e.TgZ(10,"ion-select-option",6),e._uU(11," Triche "),e.qZA(),e.TgZ(12,"ion-select-option",7),e._uU(13," Originales "),e.qZA(),e.qZA(),e.TgZ(14,"ion-select",8),e.NdJ("ngModelChange",function(r){return i.categoryBroadSelection=r}),e.TgZ(15,"ion-select-option",5),e._uU(16,"Toutes"),e.qZA(),e.YNc(17,y,3,2,"ng-container",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"ion-content"),e.YNc(19,_,2,0,"div",10),e.ALo(20,"async"),e.YNc(21,x,2,0,"div",10),e.ALo(22,"async"),e.TgZ(23,"div",11),e.YNc(24,v,12,6,"div",9),e.qZA(),e.TgZ(25,"ion-infinite-scroll",12),e.NdJ("ionInfinite",function(r){return i.loadOneMorePage(r)}),e._UZ(26,"ion-infinite-scroll-content",13),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngModel",i.challengeBroadSelection)("interfaceOptions",e.DdM(12,C)),e.xp6(7),e.Q6J("ngModel",i.categoryBroadSelection)("interfaceOptions",e.DdM(13,C)),e.xp6(3),e.Q6J("ngForOf",i.adminContent.categoriesRelatedToChallenges),e.xp6(2),e.Q6J("ngIf",!e.lcZ(20,8,i.adminContent.challengeDataReady$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(22,10,i.adminContent.challengeDataReady$)&&0==i.filteredChallengeData.length),e.xp6(3),e.Q6J("ngForOf",i.paginatedChallengeData))},directives:[g.Gu,g.sr,g.Sm,g.oU,g.cs,g.fG,g.t9,g.QI,f.JJ,f.On,g.n0,h.sg,g.W2,h.O5,g.ju,g.MB,g.PQ,g.yp],pipes:[h.Ov],styles:[".challengePreview[_ngcontent-%COMP%]{background-color:#d9e6ff;border-radius:10px;padding:10px 16px;margin:10px;display:flex;justify-content:space-between;align-items:center}.challengePreview[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:900;font-size:18px;margin:0 0 4px}.challengePreview[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:700;margin:0 0 3px}.challengePreview[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#0009;margin:0 0 2px}.challengeInfo[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{margin-right:4px;text-transform:capitalize;vertical-align:bottom}.challengeInfo[_ngcontent-%COMP%]   .challengeText[_ngcontent-%COMP%]{margin-top:6px;font-weight:600}
1.daySeparator[_ngcontent-%COMP%]{text-align:center;font-weight:900;color:#444;font-style:italic;margin-top:25px;margin-bottom:12px}.subV[_ngcontent-%COMP%]{vertical-align:sub;margin-right:3px}.orderBroadSelectionSelect[_ngcontent-%COMP%]{padding-left:12px}.loadingUI[_ngcontent-%COMP%]{position:absolute;top:25%;left:50%;margin-left:-125px;width:250px;text-align:center;font-weight:900;color:#4d4d4d;font-style:italic;font-size:15px}  .status-filter-very-wider-popover{--width: 100%;--max-width: 380px}  .status-filter-very-wider-popover .validationWarning{--background: #ffc409;font-weight:700}  .status-filter-very-wider-popover .incompatibleDanger{--background: #ff7575;font-weight:700}.validationBadge[_ngcontent-%COMP%]{margin-left:5px}.filterBox[_ngcontent-%COMP%]{background:white;border-bottom:1px solid #DDD}.filterElement[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#000!important}.filterElement[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;border-bottom:6px}.filterElement[_ngcontent-%COMP%]   ng-multiselect-dropdown[_ngcontent-%COMP%]{flex:2}.filterElement[_ngcontent-%COMP%]   .propertySelectionItem[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{margin-right:5px}.filterElement[_ngcontent-%COMP%]   ion-searchbar[_ngcontent-%COMP%]{padding:0;height:50px;flex:3;max-width:600px;margin-right:10px}"]}),n})()}];let M=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[u.Bz.forChild(Z)],u.Bz]}),n})(),F=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[h.ez,f.u5,g.Pc,M]]}),n})()}}]);

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.