PageSourceSearch

https://app.dosconnect.es/5420.437d09ef3a6d441c.js

js dosconnect.es collected 2026-10-02 01:03:19 UTC 14,033 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5420],{5420:(C,v,e)=>{e.r(v),e.d(v,{TabsPageModule:()=>L});var b=e(7343),g=e(2200),p=e(9417),d=e(3123),m=e(8132),f=e(467),t=e(3664),T=e(5083),I=e(4572),O=e(6354),r=e(2615),j=e(4493),B=e(8095),F=e(8770),M=e(1608),S=e(9554),E=e(9274),A=e(5035);const R=["tabButton"];function x(n,s){1&n&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"transloco"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"tabs.search")))}function $(n,s){1&n&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"transloco"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"tabs.home")))}function G(n,s){1&n&&t.nrm(0,"span",12)}function U(n,s){1&n&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"transloco"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"tabs.chat")))}function D(n,s){1&n&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"transloco"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"tabs.profile")))}let N=(()=>{var n;class s{constructor(i,a,o,c,l,P,W,K,J,Q){this.modalStateService=i,this.eventBusService=a,this.chatService=o,this.supabaseService=c,this.routerPreloader=l,this.router=P,this.createMediaSelection=W,this.actionSheetCtrl=K,this.transloco=J,this.platform=Q,this.selectedTab="",this.isModalOpen=!1,this.sliderPosition=0,this.tabPositions={},this.chatTabIndicator$=(0,I.z)([this.chatService.chatsWithUnreadCount$,this.supabaseService.unreadChatNotifications$]).pipe((0,O.T)(([Z,k])=>Z>0||k>0?1:0))}ngOnInit(){const i=()=>this.routerPreloader.preload().subscribe();"function"==typeof requestIdleCallback?requestIdleCallback(()=>i(),{timeout:5e3}):setTimeout(i,1500),this.modalSubscription=this.modalStateService.isModalOpen$.subscribe(a=>{this.isModalOpen=a}),this.chatService.loadConversations(),this.chatService.subscribeToConversations(),this.supabaseService.refreshNotificationSurfaceCounts()}ngAfterViewInit(){setTimeout(()=>{this.selectedTab=this.tabs?.getSelected()||"",this.calculateTabPositions(),this.updateSliderPosition()},100)}ngOnDestroy(){this.modalSubscription&&this.modalSubscription.unsubscribe()}getIconName(i){const a=this.selectedTab===i;switch(i){case"search":return a?"mynaui:search-solid":"mynaui:search";case"create":return a?"ion:add":"ion:add-outline";case"home":return a?"majesticons:home":"majesticons:home-line";case"chat":return a?"mynaui:message-dots-solid":"mynaui:message-dots";case"profile":return a?"solar:user-bold-duotone":"solar:user-linear";default:return""}}onTabChange(){this.selectedTab=this.tabs?.getSelected()||"",this.updateSliderPosition()}handleTabClick(i){this.selectedTab===i&&this.eventBusService.emitTabScrollToTop(i)}openCreateSource(i){i?.preventDefault(),i?.stopPropagation(),this.isAndroidCreateChooser()?this.presentAndroidCreateSourceSheet():this.pickMediaFromGallery()}isAndroidCreateChooser(){return"android"===T.Ii.getPlatform()||this.platform.is("android")}presentAndroidCreateSourceSheet(){var i=this;return(0,f.A)(function*(){yield(yield i.actionSheetCtrl.create({header:i.transloco.translate("create.sourceSheet.header"),cssClass:"custom-action-sheet",buttons:[{text:i.transloco.translate("create.sourceSheet.camera"),icon:"camera-outline",handler:()=>{i.router.navigate(["/tabs/create"],{queryParams:{source:"camera"}})}},{text:i.transloco.translate("create.sourceSheet.gallery"),icon:"images-outline",handler:()=>{i.pickMediaFromGallery()}},{text:i.transloco.translate("common.cancel"),icon:"close",role:"cancel"}]})).present()})()}pickMediaFromGallery(){var i=this;return(0,f.A)(function*(){const a=document.createElement("input");a.type="file",a.accept="image/*,video/*",a.multiple=!0,a.style.display="none",document.body.appendChild(a);const o=()=>a.remove();a.onchange=()=>{const c=Array.from(a.files??[]);o(),0!==c.length&&(i.createMediaSelection.set(c),i.router.navigate(["/tabs/create"]))},a.oncancel=o,a.click()})()}calculateTabPositions(){this.tabButtons&&0!==this.tabButtons.length&&this.tabButtons.toArray().forEach(a=>{const o=a.nativeElement.dataset.tab;if(o){const c=a.nativeElement.getBoundingClientRect(),l=a.nativeElement.parentElement?.getBoundingClientRect();l&&(this.tabPositions[o]=c.left-l.left)}})}onResize(i){setTimeout(()=>{this.calculateTabPositions(),this.updateSliderPosition()},100)}updateSliderPosition(){this.selectedTab&&void 0!==this.tabPositions[this.selectedTab]&&(this.sliderPosition=this.tabPositions[this.selectedTab])}static#t=n=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(j.W),t.rXU(B.W),t.rXU(F.mf),t.rXU(M.w),t.rXU(m.u$),t.rXU(S.Ix),t.rXU(E.E),t.rXU(b.GD),t.rXU(d.JO),t.rXU(A.OD))},this.\u0275cmp=t.VBU({type:s,selectors:[["app-tabs"]],viewQuery:function(a,o){if(1&a&&(t.GBs(b.p4,5),t.GBs(R,5,t.aKT)),2&a){let c;t.mGM(c=t.lsd())&&(o.tabs=c.first),t.mGM(c=t.lsd())&&(o.tabButtons=c)}},hostBindings:function(a,o){1&a&&t.bIt("resize",function(l){return o.onResize(l)},t.tSv)},standalone:!1,decls:24,vars:17,consts:[["tabButton",""],[3,"ionTabsDidChange"],["slot","bottom",1,"custom-tab-bar"],["tab","search","href","/tabs/search","data-tab","search",3,"click"],["width","26","height","26",3,"icon"],["class","tab-label",4,"ngIf"],["data-tab","create",1,"create-source-tab",3,"click"],["tab","home","href","/tabs/home","data-tab","home",3,"click"],["tab","chat","href","/tabs/chat","data-tab","chat",1,"chat-tab-with-badge",3,"click"],["class","chat-unread-dot",4,"ngIf"],["tab","profile","href","/tabs/profile","data-tab","profile",3,"click"],[1,"tab-label"],[1,"chat-unread-dot"]],template:function(a,o){if(1&a){const c=t.RV6();t.j41(0,"ion-tabs",1),t.bIt("ionTabsDidChange",function(){return r.eBV(c),r.Njj(o.onTabChange())}),t.j41(1,"ion-tab-bar",2)(2,"ion-tab-button",3,0),t.bIt("click",function(){return r.eBV(c),r.Njj(o.handleTabClick("search"))}),t.nrm(4,"iconify-icon",4),t.DNE(5,x,3,3,"div",5),t.k0s(),t.j41(6,"ion-tab-button",6,0),t.nI1(8,"transloco"),t.bIt("click",function(P){return r.eBV(c),r.Njj(o.openCreateSource(P))}),t.nrm(9,"iconify-icon",4),t.k0s(),t.j41(10,"ion-tab-button",7,0),t.bIt("click",function(){return r.eBV(c),r.Njj(o.handleTabClick("home"))}),t.nrm(12,"iconify-icon",4),t.DNE(13,$,3,3,"div",5),t.k0s(),t.j41(14,"ion-tab-button",8,0),t.bIt("click",function(){return r.eBV(c),r.Njj(o.handleTabClick("chat"))}),t.nrm(16,"iconify-icon",4),t.DNE(17,G,1,0,"span",9),t.nI1(18,"async"),t.DNE(19,U,3,3,"div",5),t.k0s(),t.j41(20,"ion-tab-button",10,0),t.bIt("click",function(){return r.eBV(c),r.Njj(o.handleTabClick("profile"))}),t.nrm(22,"iconify-icon",4),t.DNE(23,D,3,3,"div",5),t.k0s()()()}
12&a&&(t.R7$(),t.AVh("tabs-hidden",o.isModalOpen),t.R7$(3),t.Y8G("icon",o.getIconName("search")),t.R7$(),t.Y8G("ngIf","search"===o.selectedTab),t.R7$(),t.BMQ("aria-label",t.bMT(8,13,"tabs.create")),t.R7$(3),t.Y8G("icon",o.getIconName("create")),t.R7$(3),t.Y8G("icon",o.getIconName("home")),t.R7$(),t.Y8G("ngIf","home"===o.selectedTab),t.R7$(3),t.Y8G("icon",o.getIconName("chat")),t.R7$(),t.Y8G("ngIf",(t.bMT(18,15,o.chatTabIndicator$)??0)>0),t.R7$(2),t.Y8G("ngIf","chat"===o.selectedTab),t.R7$(3),t.Y8G("icon",o.getIconName("profile")),t.R7$(),t.Y8G("ngIf","profile"===o.selectedTab))},dependencies:[b.Jq,b.qW,b.p4,g.bT,g.Jj,d.Kj],styles:['@charset "UTF-8";.custom-tab-bar[_ngcontent-%COMP%]{--background: #F0F1F5;--color: #ABAAB1;--color-selected: #000000;border-top:1px solid #F0F0F0;padding:5px 10px 8px;height:auto!important;min-height:56px;box-sizing:border-box;box-shadow:10px 14px 56px #0000001f;transition:transform .3s ease-in-out,opacity .3s ease-in-out,max-height .32s cubic-bezier(.32,.72,0,1),padding .32s cubic-bezier(.32,.72,0,1);position:relative;z-index:10}.custom-tab-bar[_ngcontent-%COMP%]   .tab-slider[_ngcontent-%COMP%]{position:absolute;bottom:8px;left:10px;width:calc(20% - 4px);height:6px;background:linear-gradient(135deg,#000,#7c6a56,#fff);border-radius:3px;transition:transform .4s cubic-bezier(.25,.46,.45,.94);z-index:1;box-shadow:0 2px 12px #50494066;opacity:.9}.custom-tab-bar.tabs-hidden[_ngcontent-%COMP%]{height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:none!important;border-width:0!important;overflow:hidden!important;box-shadow:none!important;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(100%)}.custom-tab-bar[_ngcontent-%COMP%]   .chat-tab-with-badge[_ngcontent-%COMP%]{position:relative}.custom-tab-bar[_ngcontent-%COMP%]   .chat-unread-dot[_ngcontent-%COMP%]{position:absolute;top:6px;right:22%;width:8px;height:8px;background:#ea4335;border-radius:50%;border:2px solid #F0F1F5;pointer-events:none}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button[_ngcontent-%COMP%]{--color: #ABAAB1;--color-selected: #000000;min-width:0;height:45px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.1rem 0;font-size:.7rem;font-weight:500;color:#000;text-align:center;line-height:1}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button[_ngcontent-%COMP%]   iconify-icon[_ngcontent-%COMP%]{margin-bottom:.25rem;transition:transform .3s ease-in-out,opacity .3s ease-in-out}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button[_ngcontent-%COMP%]   .tab-label[_ngcontent-%COMP%]{margin-top:.125rem}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button.tab-selected[_ngcontent-%COMP%]{--color: #000000;background:#fff;border-radius:16px;display:flex;align-items:center;justify-content:center;position:relative;font-weight:600}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button.tab-selected[_ngcontent-%COMP%]   iconify-icon[_ngcontent-%COMP%]{transform:scale(1.1);opacity:1}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button.create-source-tab[_ngcontent-%COMP%]{--color: #000000;cursor:pointer}.custom-tab-bar[_ngcontent-%COMP%]   ion-tab-button.create-source-tab[_ngcontent-%COMP%]:active   iconify-icon[_ngcontent-%COMP%]{transform:scale(.94)}']}))}return n(),s})();var h=e(4978),u=e(5376),y=e(6426),V=e(1604);const Y=[{path:"post-comments/:postId",loadChildren:()=>e.e(2931).then(e.bind(e,2931)).then(n=>n.PostCommentsPageModule),canActivate:[h.q,u.p]},{path:"story-view/:userId",loadChildren:()=>e.e(2398).then(e.bind(e,2398)).then(n=>n.StoryViewPageModule),canActivate:[h.q,u.p]},{path:"",component:N,canActivate:[h.q,u.p],children:[{path:"home",loadChildren:()=>Promise.all([e.e(4271),e.e(2076),e.e(3191)]).then(e.bind(e,3191)).then(n=>n.HomePageModule),canActivate:[h.q,u.p,(()=>{var n;class s{constructor(i,a,o){this.supabaseService=i,this.router=a,this.locationGuardCache=o}canActivate(i,a){var o=this;return(0,f.A)(function*(){try{const{data:{user:c}}=yield(0,y.w)(o.supabaseService.client.auth.getUser(),s.PROFILE_FETCH_TIMEOUT_MS,"Timeout verificando la sesi\xf3n para la ubicaci\xf3n");if(!c||o.locationGuardCache.canSkipLocationCheck(c.id)||o.locationGuardCache.hasSkippedLocation(c.id))return!0;const{data:l}=yield(0,y.w)(o.supabaseService.client.from("profiles").select("location").eq("id",c.id).single(),s.PROFILE_FETCH_TIMEOUT_MS,"Timeout comprobando la ubicaci\xf3n");return l?.location?(o.locationGuardCache.markLocationSatisfiedForUser(c.id),!0):(o.router.navigate(["/auth/set-location"],{queryParams:{returnUrl:a.url||"/tabs"}}),!1)}catch(c){return console.warn("[LocationGuard] Se omite la comprobaci\xf3n de ubicaci\xf3n por un error de red",c),!0}})()}static#t=n=()=>(this.PROFILE_FETCH_TIMEOUT_MS=8e3,this.\u0275fac=function(a){return new(a||s)(r.KVO(M.w),r.KVO(S.Ix),r.KVO(V.I))},this.\u0275prov=r.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}))}return n(),s})()]},{path:"search",loadChildren:()=>Promise.all([e.e(4271),e.e(2076),e.e(9325)]).then(e.bind(e,9325)).then(n=>
1n.SearchPageModule),canActivate:[h.q,u.p]},{path:"create",loadChildren:()=>Promise.all([e.e(6967),e.e(6298),e.e(2076),e.e(3684)]).then(e.bind(e,3684)).then(n=>n.CreatePageModule),canActivate:[h.q,u.p]},{path:"chat",loadChildren:()=>e.e(9247).then(e.bind(e,9247)).then(n=>n.ChatPageModule),canActivate:[h.q,u.p]},{path:"profile",loadChildren:()=>Promise.all([e.e(2076),e.e(8402)]).then(e.bind(e,8402)).then(n=>n.ProfilePageModule),canActivate:[h.q,u.p]},{path:"wallet",loadChildren:()=>Promise.all([e.e(2076),e.e(1082)]).then(e.bind(e,1082)).then(n=>n.WalletPageModule),canActivate:[h.q,u.p]},{path:"user-profile/:userId",loadChildren:()=>Promise.all([e.e(2076),e.e(6824)]).then(e.bind(e,6824)).then(n=>n.UserProfilePageModule),canActivate:[h.q,u.p]},{path:"user-not-found",loadChildren:()=>e.e(1215).then(e.bind(e,1215)).then(n=>n.UserNotFoundPageModule),canActivate:[h.q,u.p]},{path:"appointments",loadChildren:()=>Promise.all([e.e(2076),e.e(7476)]).then(e.bind(e,7476)).then(n=>n.AppointmentsPageModule),canActivate:[h.q,u.p]},{path:"",redirectTo:"home",pathMatch:"full"}]}];let H=(()=>{var n;class s{static#t=n=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275mod=t.$C({type:s}),this.\u0275inj=r.G2t({imports:[m.iI.forChild(Y)]}))}return n(),s})();var X=e(2883);let L=(()=>{var n;class s{static#t=n=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275mod=t.$C({type:s}),this.\u0275inj=r.G2t({imports:[b.bv,g.MD,p.YN,d.Q8,H,X.u]}))}return n(),s})()},8095:(C,v,e)=>{e.d(v,{W:()=>p});var b=e(1413),g=e(2615);let p=(()=>{var d;
1class m{constructor(){this.profileSavedSubject=new b.B,this.scrollTabSubject=new b.B,this.profileSaved$=this.profileSavedSubject.asObservable(),this.scrollTab$=this.scrollTabSubject.asObservable()}emitTabScrollToTop(t){console.log(`\u{1f4e2} EventBus: Scroll to top event emitted for tab: ${t}`),this.scrollTabSubject.next(t)}emitProfileSaved(t,T){console.log("\u{1f4e2} EventBus: Profile saved event emitted",{profileId:t,isSaved:T}),this.profileSavedSubject.next({profileId:t,isSaved:T,timestamp:Date.now()})}static#t=d=()=>(this.\u0275fac=function(T){return new(T||m)},this.\u0275prov=g.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}))}return d(),m})()},9274:(C,v,e)=>{e.d(v,{E:()=>g});var b=e(2615);let g=(()=>{var p;class d{constructor(){this.selectedFiles=[]}set(f){this.selectedFiles=f}consume(){const f=this.selectedFiles;return this.selectedFiles=[],f}static#t=p=()=>(this.\u0275fac=function(t){return new(t||d)},this.\u0275prov=b.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}))}return p(),d})()}}]);

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.