PageSourceSearch

https://www.hellochefs.es/chunk-W665XKNZ.js

js hellochefs.es collected 2026-10-02 19:33:49 UTC 25,443 bytes, 1 lines download raw bytes

1import{a as Ie}from"./chunk-7LASWTQL.js";import{a as ke}from"./chunk-CRA3MQHI.js";import{b as z,c as P}from"./chunk-KYFERAAF.js";import{a as we}from"./chunk-LI2RIEID.js";import"./chunk-PLYEZON5.js";import{a as ye}from"./chunk-EPHYZFOL.js";import{a as Ee}from"./chunk-LUVEJFRG.js";import{b as xe,d as be,h as ve,u as _e,w as Te}from"./chunk-XQWB5I5V.js";import{a as V}from"./chunk-WJJU6WEN.js";import{b as De}from"./chunk-JODE42AP.js";import{a as Se}from"./chunk-VXC32DPC.js";import{a as H}from"./chunk-TTKOVRGL.js";import{b as Ce}from"./chunk-NEWF5GKR.js";import{b as B}from"./chunk-PSOWXWD4.js";import{d as he,e as j}from"./chunk-SULWNCU5.js";import{h as U,r as ge,v as R,w as fe}from"./chunk-W5PMIJMA.js";import{C as te,Fb as G,Gb as ae,Gc as se,Hc as $,I as ie,Ic as N,Jc as I,Kb as re,Kc as le,Mb as p,Mc as de,Nb as u,Oc as ce,Pb as L,Pc as me,Qb as w,Rb as y,Sb as c,Tb as i,Ub as n,Vb as d,Wc as x,Xc as pe,Z as ne,Za as T,_c as ue,a as K,ac as F,b as Q,ca as g,cb as r,d as X,gc as E,ia as M,ja as A,jc as h,ka as _,la as C,r as Y,rb as D,s as ee,ua as v,vc as o,wc as f,xb as O,xc as S,yb as oe}from"./chunk-P4KUZIN4.js";var Re=e=>["/revistas",e];function je(e,s){e&1&&d(0,"img",1),e&2&&c("src",se(s),T)}function Be(e,s){e&1&&d(0,"span",11)(1,"span",12)}function Ve(e,s){e&1&&d(0,"span",6)}function He(e,s){if(e&1&&(i(0,"div",9),_(),i(1,"svg",13),d(2,"path",14),n(),C(),i(3,"span",15),o(4," Incluye "),i(5,"span",16),o(6),n()()()),e&2){let t=h();r(6),f(t.subscriptionRange())}}function ze(e,s){if(e&1&&d(0,"app-button",10),e&2){let t=h();c("text","Ver Planes")("shortText","Ver planes")("type","secundary")("link",le(5,Re,t.subscription().slug))("buttonId","btn-sub-"+t.subscription().slug)}}var Me=(()=>{class e{constructor(){this.#e=g(H),this.subscription=ue.required(),this.magLogo=x(()=>{let t=this.subscription().mag_logo;return t?this.#e.getImageSrc(t,"origin",!0):void 0}),this.subscriptionRange=x(()=>{let t=this.subscription();return t.isActive&&t.start_issue&&t.end_issue?`De ${t.short_name} #${t.start_issue} a ${t.short_name} #${t.end_issue}`:null})}#e;static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275cmp=D({type:e,selectors:[["app-subscription-badge"]],inputs:{subscription:[1,"subscription"]},decls:14,vars:7,consts:[[1,"flex","flex-col","items-start","p-4","rounded-xl","border-2","transition-all","h-full","w-full",3,"ngClass"],["width","60","height","60",1,"w-auto","h-12","border-2","border-back-gray","mb-2",3,"src"],[1,"min-w-0","w-full","flex-1","flex","flex-col"],[1,"font-bold","text-primary","leading-none","truncate","lg:text-lg"],[1,"flex","items-center","gap-2","mt-2"],[1,"relative","flex","h-2","w-2"],[1,"relative","inline-flex","rounded-full","h-2","w-2","bg-gray-300"],[1,"text-[10px]","lg:text-sm","font-bold","tracking-wide",3,"ngClass"],[1,"mt-auto","pt-4","w-full"],[1,"flex","items-center","gap-1.5","text-gray-500"],["fragment","pricing",3,"text","shortText","type","link","buttonId"],[1,"animate-ping","absolute","inline-flex","h-1.5","w-1.5","rounded-full","bg-green-400","opacity-75"],[1,"relative","inline-flex","rounded-full","h-1.5","w-1.5","bg-green-500"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"w-3.5","h-3.5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"],[1,"text-[10px]","lg:text-[12px]","font-medium","leading-tight"],[1,"text-gray-900","font-bold"]],template:function(l,a){if(l&1&&(i(0,"div",0),p(1,je,1,2,"img",1),i(2,"div",2)(3,"p",3),o(4),n(),i(5,"div",4)(6,"div",5),p(7,Be,2,0)(8,Ve,1,0,"span",6),n(),i(9,"span",7),o(10),n()(),i(11,"div",8),p(12,He,7,1,"div",9)(13,ze,1,7,"app-button",10),n()()()),l&2){let m;c("ngClass",a.subscription().isActive?"border-green-100 bg-green-50/30":"border-back-gray bg-gray-50 opacity-60"),r(),u((m=a.magLogo())?1:-1,m),r(3),S(" ",a.subscription().displayName," "),r(3),u(a.subscription().isActive?7:8),r(2),c("ngClass",a.subscription().isActive?"text-green-600":"text-hello-gray"),r(),S(" ",a.subscription().isActive?"Suscripci\xF3n Activa":"No Suscrito"," "),r(2),u(a.subscription().isActive&&a.subscriptionRange()?12:a.subscription().isActive?-1:13)}},dependencies:[Ee,U],encapsulation:2})}}return e})();var Ae=(()=>{class e{constructor(){this.#e=g(B),this._stats=v(null),this.stats=this._stats.asReadonly(),this.isLoaded=x(()=>this._stats()!==null)}#e;loadStats(){this.#e.get("stats/global-totals").subscribe(t=>{this._stats.set(t)})}static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pe=()=>[import("./chunk-LY37UP6P.js").then(e=>e.IssueCardActionableComponent)],Oe=()=>[import("./chunk-MFLTCR7V.js").then(e=>e.CountUpDirective)],Ge=(e,s,t)=>({"bg-blue-100 text-hello-blue":e,"bg-amber-100 text-amber-600":s,"bg-gray-100 text-gray-500":t}),$e=()=>["/mi-coleccion"],qe=()=>[1,2,3,4],Le=(e,s)=>s.id;function Ze(e,s){e&1&&(i(0,"a",19),o(1," Toda la colecci\xF3n "),_(),i(2,"
1svg",42),d(3,"path",43),n()()),e&2&&c("routerLink",I(1,$e))}function We(e,s){if(e&1&&d(0,"app-issue-card-actionable",45),e&2){let t=s.$implicit;c("issue",t)("hasAccess",t.has_access)}}function Je(e,s){if(e&1&&(i(0,"div",44),w(1,We,1,2,"app-issue-card-actionable",45,Le),n()),e&2){let t=h();r(),y(t.myIssues())}}function Ke(e,s){if(e&1&&d(0,"app-subscription-badge",23),e&2){let t=s.$implicit;c("subscription",t)}}function Qe(e,s){e&1&&(o(0," Como "),i(1,"b"),o(2,"Lector Invitado"),n(),o(3," puedes ver las noticias, art\xEDculos y recetas publicados en Hello Chefs gratuitamente y previsualizar revistas. Suscr\xEDbete para leer n\xFAmeros completos y contenido premium. "))}function Xe(e,s){e&1&&(o(0," \xA1Tienes "),i(1,"b"),o(2,"Acceso Total"),n(),o(3,"! Puedes leer todas las revistas y sus recetas de tu suscripci\xF3n y acceder a n\xFAmeros de hemeroteca con tus descargas. "))}function Ye(e,s){e&1&&(o(0," Tu suscripci\xF3n ha expirado, pero mantienes "),i(1,"b"),o(2,"Acceso a Colecci\xF3n"),n(),o(3,": puedes leer siempre que quieras los n\xFAmeros que ya adquiriste. "))}function et(e,s){e&1&&(i(0,"a",50),o(1," Ver planes de suscripci\xF3n "),n())}function tt(e,s){if(e&1){let t=F();i(0,"div",46),E("click",function(){M(t);let a=h();return A(a.toggleStatusInfo())}),n(),i(1,"div",47)(2,"div",48),o(3," Informaci\xF3n de acceso "),n(),i(4,"p",49),p(5,Qe,4,0)(6,Xe,4,0)(7,Ye,4,0),n(),p(8,et,2,0,"a",50),d(9,"div",51),n()}if(e&2){let t=h();r(5),u(t.isLead()?5:t.auth.isActiveSubscriber()?6:7),r(3),u(t.auth.isActiveSubscriber()?-1:8)}}function it(e,s){e&1&&o(0," SIN SUSCRIPCI\xD3N ")}function nt(e,s){e&1&&o(0," SUSCRIPTOR ACTIVO ")}function ot(e,s){e&1&&o(0," ACCESO A COLECCI\xD3N ")}function at(e,s){e&1&&d(0,"img",54),e&2&&c("ngSrc",s.src)}function rt(e,s){if(e&1&&d(0,"img",55),e&2){let t=h();c("src",$("https://ui-avatars.com/api/?name=",t.fullname,"&background=fff&color=000"),T)}}function st(e,s){if(e&1&&(i(0,"div",39)(1,"p",52),o(2,"Tu agente personal"),n(),i(3,"div",53),p(4,at,1,1,"img",54)(5,rt,1,2,"img",55),i(6,"div")(7,"p",56),o(8),n(),i(9,"p",57),o(10,"Soporte al suscriptor"),n()()(),i(11,"a",58),o(12),n()()),e&2){let t,l=s,a=h();r(4),u((t=a.agentPic())?4:5,t),r(4),f(l.fullname),r(3),c("href",$("mailto:",l.email),T),r(),S(" Contactar con ",l.firstname," ")}}function lt(e,s){if(e&1&&(i(0,"div",59)(1,"div",60)(2,"p",61),o(3),n(),i(4,"p",62),o(5,"Revistas"),n()(),i(6,"div",60)(7,"p",61),o(8),n(),i(9,"p",62),o(10,"Autores"),n()(),i(11,"div",60)(12,"p",61),o(13),n(),i(14,"p",62),o(15,"Art\xEDculos"),n()(),i(16,"div",60)(17,"p",61),o(18),n(),i(19,"p",62),o(20,"Recetas"),n()()()),e&2){let t,l,a,m,b=h(2);r(2),c("countUp",b.statsService.stats().total_issues)("duration",3e3),r(),f((t=b.statsService.stats())==null?null:t.total_issues),r(4),c("countUp",b.statsService.stats().total_authors)("duration",4e3),r(),f((l=b.statsService.stats())==null?null:l.total_authors),r(4),c("countUp",b.statsService.stats().total_articles)("duration",5e3),r(),f((a=b.statsService.stats())==null?null:a.total_articles),r(4),c("countUp",b.statsService.stats().total_recipes)("duration",6e3),r(),f((m=b.statsService.stats())==null?null:m.total_recipes)}}function dt(e,s){if(e&1&&p(0,lt,21,12,"div",59),e&2){let t=h();u(t.statsService.isLoaded()?0:-1)}}function ct(e,s){e&1&&(i(0,"div",63),o(1,"Cargando cifras de la plataforma..."),n())}function mt(e,s){e&1&&(i(0,"div",65),d(1,"div",66)(2,"div",67),n())}function pt(e,s){e&1&&(i(0,"div",64),w(1,mt,3,0,"div",65,L),n()),e&2&&(r(),y(I(0,qe)))}function ut(e,s){e&1&&(i(0,"p"),o(1,"No se han podido cargar las estad\xEDsticas de Hello Chefs."),n())}var Fe=(()=>{class e{constructor(){this.auth=g(z),this.#e=g(B),this.statsService=g(Ae),this.#t=g(V),this.#i=g(H),this.#n=g(Se),this.myIssues=v([]),this.totalIssues=v(3),this.isLead=v(!1),this.loading=v(!0),this.showStatusInfo=v(!1),this.userSubs=v([{name:"Dulcypas",active:!0,type:"Complet"},{name:"Arte Heladero",active:!0,type:"Digital"},{name:"Saber y Sabor",active:!1,type:"Sense Acc\xE9s"}]),this.agentPic=x(()=>{if(this.auth.currentUser()?.user){let t=this.auth.currentUser().user.avatar;return t?this.#i.getImage(t):void 0}}),this.magazines=v(this.#n.getMagazines()),this.userSubscriptions=x(()=>{let l=this.auth.currentUser()?.active_subscriptions||[];return this.magazines().map(a=>{let m=l.find(b=>b.mag_id===a.id);return Q(K({},a),{displayName:m?`${a.title} ${m.type}`:a.title,isActive:!!m,start_issue:m?.start,end_issue:m?.end})})}),this.isLatest=!0}#e;#t;#i;#n;ngOnInit(){this.#t.setSectionHeader({title:"Panel de Usuario",subtitle:"Consulta tu acceso",gray:!0}),this.auth.refreshUserData(),this.#e.get("dashboard/hello").subscribe({next:t=>{this.myIssues.set(t.issues),this.isLead.set(t.is_lead),this.loading.set(!1)},error:()=>this.loading.set(!1)}),this.statsService.isLoaded()||this.statsService.loadStats()}toggleStatusInfo(){this.showStatusInfo.update(t=>!t)}static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275cmp=D({type:e,selectors:[["app-dashboard"]],features:[N([{provide:R,useValue:P}])],decls:79,vars:21,consts:[[1e3,100],[500],[1,"container-wrapper","dashboard-container","p-4","md:p-8","min-h-screen"],[1,"mb-8","flex","flex-col","mt-10","md:flex-row","md:items-end","justify-between","gap-4"],[1,"text-3xl","font-bold","text-primary"],[1,"mt-3","text-content","max-w-xl","text-balance"],[1,"flex","gap-3"],[1,"px-5","py-3","rounded-2xl","shadow-sm","flex","flex-col","items-center","min-w-[120px]",3,"ngClass"],[1,"block","text-[10px]","lg:text-xs","uppercase","tracking-wider","opacity-80","font-bold"],[1,"flex","items-baseline","gap-1"],[1,"text-2xl","font-black"],[1,"text-xs","opacity-80"],[1,"bg-back-gray/80","text-content","px-5","py-3","rounded-2xl","shadow-sm","flex","flex-col","items-center","min-w-[120px]"],[1,"grid","grid-cols-1","lg:grid-cols-4","gap-8"],[1,"lg:col-span-3","space-y-10"],[1,"mt-8"],[1,"flex","justify-between","items-end","mb-6","border-b","border-gray-100","pb-4","gap-4"],[1,"text-2xl","font-bold","text-gray-800"],[1,"text-sm","text-content/70","text-balance"],[1,"text-hello-blue","text-sm","font-bold","hover:text-primary","transition","flex","items-center","gap-1",3,"routerLink"],[1,"bg-white","p-6","rounded-2xl","shadow-sm","border","border-gray-100"],[1,"text-xl","font-bold","mb-6"],[1,"grid","grid-cols-1","md:grid-cols-3","gap-6","items-stretch"],[3,"subscription"],[1,"lg:mt-16","flex","flex-col","sm:flex-row","lg:flex-col","items-start","gap-6","sm:gap-4","lg:gap-8"],[1,"bg-white","p-6","rounded-2xl","shadow-sm","border","border-gray-100","flex-1","w-full","lg:flex-initial"],[1,"font-bold","text-gray-800","mb-4","flex","items-center"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4","mr-2"],["d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],[1,"space-y-4"],[1,"flex","justify-between","items-center","lg:flex-col","lg:items-start","xl:flex-row","xl:items-center"],[1,"flex","items-center","gap-2"],[1,"text-xs","text-gray-500","uppercase","font-semibold"],[1,"relative"],["type","button","aria-label","M\xE1s informaci\xF3n",1,"flex","items-center","justify-center","w-6","h-6","rounded-full","text-gray-500","hover:bg-gray-300","hover:text-gray-700","transition-colors","text-[10px]","font-bold",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"size-6"],["stroke-linecap","round","stroke-linejoin","round","d","M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"],[1,"text-[10px]","xl:text-xs","font-bold","px-2.5","py-1","rounded-full","shadow-sm","transition-all",3,"click","ngClass"],[1,"text-xs","text-gray-800","font-medium"],[1,"bg-blue-50","border-hello-blue","p-6","rounded-2xl","shadow-lg","text-content","flex-1","w-full","lg:flex-initial"],[1,"mt-16","border-t","py-10","lg:pb-20"],[1,"text-center","text-sm","font-bold","text-gray-400","uppercase","tracking-[0.2em]","mb-8"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","d","M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"],[1,"grid","grid-cols-2","sm:grid-cols-3","md:grid-cols-4","gap-6"],[1,"sm:last:hidden","md:last:block",3,"issue","hasAccess"],[1,"fixed","inset-0","z-40",3,"click"],[1,"absolute","bottom-full","left-1/2","-translate-x-1/2","mb-3","w-64","p-4","bg-gray-900","text-white","text-xs","rounded-xl","shadow-2xl","z-50"],[1,"font-bold","mb-2","border-b","border-white/10","pb-1"],[1,"leading-relaxed","opacity-90"],["href","https://hellochefs.com/suscripciones","target","_blank",1,"mt-3","block","text-center","bg-hello-blue","py-2","rounded-lg","font-bold","hover:bg-blue-500","transition-colors","text-white"],[1,"absolute","top-full","left-1/2","-translate-x-1/2","border-8","border-transparent","border-t-gray-900"],[1,"text-[10px]","uppercase","tracking-widest","opacity-60","mb-4"],[1,"flex","items-center","gap-4","mb-4"],["width","60","height","60",1,"w-12","h-12","rounded-full","border-2","border-gray-700",3,"ngSrc"],["}","",1,"w-12","h-12","rounded-full","border-2","border-gray-700",3,"src"],[1,"font-bold","text-sm"],[1,"text-[11px]","opacity-70"],[1,"block","w-full","text-center","bg-hello-blue","text-white","hover:bg-hello-blue/50","transition","py-2","rounded-lg","text-xs","font-bold",3,"href"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-8"],[1,"text-center"],[1,"text-3xl","font-light","text-gray-400",3,"countUp","duration"],[1,"text-[10px]","text-gray-500","uppercase","mt-1"],[1,"skeleton-loader"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-8","py-10","border-t","border-gray-100","animate-pulse"],[1,"flex","flex-col","items-center","space-y-3"],[1,"h-10","w-20","bg-gray-200","rounded-lg"],[1,"h-4","w-24","bg-gray-100","rounded"]],template:function(l,a){if(l&1&&(i(0,"div",2)(1,"header",3)(2,"div")(3,"h1",4),o(4),n(),i(5,"p",5),o(6," Bienvenido a la biblioteca digital de Hello Chefs. Aqu\xED encontrar\xE1s todas tus revistas, el estado de tu cuenta y suscripciones. "),n()(),i(7,"div",6)(8,"div",7)(9,"span",8),o(10,"Descargas"),n(),i(11,"div",9)(12,"span",10),o(13),n(),i(14,"span",11),o(15),n()()(),i(16,"div",12)(17,"span",8),o(18,"Tu Colecci\xF3n"),n(),i(19,"div",9)(20,"span",10),o(21
1),n(),i(22,"span",11),o(23),n()()()()(),i(24,"div",13)(25,"div",14)(26,"section",15)(27,"div",16)(28,"div")(29,"h2",17),o(30),n(),i(31,"p",18),o(32),n()(),p(33,Ze,4,2,"a",19),n(),O(34,Je,3,0),G(35,34,Pe),n(),i(37,"section",20)(38,"h2",21),o(39,"Mis suscripciones"),n(),i(40,"div",22),w(41,Ke,1,1,"app-subscription-badge",23,Le),n()()(),i(43,"div",24)(44,"div",25)(45,"h3",26),_(),i(46,"svg",27),d(47,"path",28),n(),o(48," Estado de la cuenta "),n(),C(),i(49,"div",29)(50,"div",30)(51,"div",31)(52,"span",32),o(53,"Acceso"),n(),i(54,"div",33)(55,"button",34),E("click",function(){return a.toggleStatusInfo()}),_(),i(56,"svg",35),d(57,"path",36),n()(),p(58,tt,10,2),n()(),C(),i(59,"span",37),E("click",function(){return a.toggleStatusInfo()}),p(60,it,1,0)(61,nt,1,0)(62,ot,1,0),n()(),i(63,"div",30)(64,"span",32),o(65,"\xDAltimo acceso"),n(),i(66,"span",38),o(67),ce(68,"relativeDate"),n()()()(),p(69,st,13,5,"div",39),n()(),i(70,"footer",40)(71,"h3",41),o(72,"Hello Chefs en cifras"),n(),O(73,dt,1,1)(74,ct,2,0)(75,pt,3,1)(76,ut,2,0),G(77,73,Oe,74,75,76,0,1,oe),re(0,-1),n()()),l&2){let m,b,Z,W,J,k;r(4),S("\xA1Hola, ",(m=a.auth.currentUser())==null?null:m.firstname,"!"),r(4),c("ngClass",(((b=a.auth.currentUser())==null?null:b.available_downloads)??0)===0?"bg-amber-400 text-white":"bg-hello-blue/80 text-white"),r(5),f(((Z=a.auth.currentUser())==null?null:Z.available_downloads)??0),r(2),f(((W=a.auth.currentUser())==null?null:W.available_downloads)==1?"disponible":"disponibles"),r(6),f(a.auth.totalCollection()),r(2),f(a.auth.totalCollection()==1?"ejemplar":"ejemplares"),r(7),S(" ",a.isLead()?"\xDAltimos n\xFAmeros publicados":"Mi colecci\xF3n"," "),r(2),S(" ",a.isLead()?"Descubre las \xFAltimas novedades del sector":"Repasa todos los n\xFAmeros que forman parte de tu biblioteca"," "),r(),u(a.isLead()?-1:33),r(2),ae(!a.loading()),r(6),y(a.userSubscriptions()),r(17),u(a.showStatusInfo()?58:-1),r(),c("ngClass",de(17,Ge,!a.isLead()&&a.auth.isActiveSubscriber(),!a.isLead()&&!a.auth.isActiveSubscriber(),a.isLead())),r(),u(a.isLead()?60:a.auth.isActiveSubscriber()?61:62),r(7),f((J=a.auth.currentUser())!=null&&J.last_login?me(68,15,a.auth.currentUser().last_login):"-"),r(2),u((k=(k=a.auth.currentUser())==null?null:k.user)?69:-1,k)}},dependencies:[fe,U,j,Me,Ie],encapsulation:2})}}return e})();var gt=()=>[1,2,3,4,5],ft=(e,s)=>s.id;function ht(e,s){if(e&1&&(i(0,"div",11)(1,"p",12),o(2," Tienes "),i(3,"strong"),o(4),n(),o(5," ejemplares desbloqueados en tu biblioteca de Hello Chefs. "),n(),i(6,"p",13),o(7," Esto suma un total de: "),n()(),i(8,"div",14)(9,"div",15)(10,"div",16),_(),i(11,"svg",17),d(12,"path",18),n()(),C(),i(13,"div",19)(14,"span",20),o(15),n(),i(16,"span",21),o(17,"Recetas"),n()()(),i(18,"div",15)(19,"div",22),_(),i(20,"svg",17),d(21,"path",23),n()(),C(),i(22,"div",19)(23,"span",20),o(24),n(),i(25,"span",21),o(26,"Art\xEDculos"),n()()()()),e&2){let t=h();r(4),f(t.total()),r(11),f(t.totalRecipes()),r(9),f(t.totalArticles())}}function xt(e,s){if(e&1&&d(0,"app-issue-card-actionable",26),e&2){let t=s.$implicit;c("issue",t)("hasAccess",!0)}}function bt(e,s){if(e&1&&(i(0,"div",24),w(1,xt,1,2,"app-issue-card-actionable",26,ft),n()),e&2){let t=h();r(),y(t)}}function vt(e,s){e&1&&(i(0,"div",25),_(),i(1,"svg",27),d(2,"path",28),n(),C(),i(3,"h3",29),o(4,"Tu estanter\xEDa est\xE1 vac\xEDa"),n(),i(5,"p",30),o(6,"Explora las revistas, suscr\xEDbete y a\xF1ade ejemplares de hemeroteca a tu colecci\xF3n usando descargas extra."),n(),i(7,"button",31),o(8,"Ver revistas"),n()())}function _t(e,s){if(e&1&&p(0,bt,3,0,"div",24)(1,vt,9,0,"div",25),e&2){let t=h();u(s.length>0?0:t.isLoading()?-1:1)}}function Ct(e,s){e&1&&d(0,"div",32)}function St(e,s){e&1&&(i(0,"div",9),w(1,Ct,1,0,"div",32,L),n()),e&2&&(r(),y(I(0,gt)))}function wt(e,s){if(e&1){let t=F();i(0,"div",10)(1,"app-load-more-button",33),E("onClick",function(){M(t);let a=h();return A(a.loadMore())}),n()()}}var Ne=(()=>{class e{constructor(){this.#e=g(we),this.#t=g(V),this.toastService=g(ye),this.paginationLimit=20,this.page=v(1),this.searchTerm=v(""),this.filteredIssues=x(()=>{let t=this.searchTerm().toLowerCase().trim(),l=this.allIssues();return t?l.filter(a=>a.title?.toLowerCase().includes(t)||a.magazine?.title?.toLowerCase().includes(t)||a.number?.toString().includes(t)):l}),this.allIssues=v([]),this.shownIssues=x(()=>this.filteredIssues().slice(0,this.page()*this.paginationLimit)),this.collectionResource=pe({loader:()=>X(this,null,function*(){let t=yield Y(this.#e.getUserCollection());return t&&t.data?(this.allIssues.set(t.data),t):null})}),this.total=x(()=>this.collectionResource.value()?.total??0),this.isLoading=x(()=>this.collectionResource.isLoading()),this.totalRecipes=x(()=>this.allIssues().reduce((t,l)=>t+(l.recipes_count||0),0)),this.totalArticles=x(()=>this.allIssues().reduce((t,l)=>t+(l.articles_count||0),0)),this.showMoreButton=x(()=>this.shownIssues().length<this.filteredIssues().length)}#e;#t;ngOnInit(){this.#t.setSectionHeader({title:"Mi Colecci\xF3n",subtitle:"Biblioteca personal",gray:!0})}loadMore(){this.page.update(t=>t+1)}onSearchChange(t){this.searchTerm.set(t),this.page.set(1),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{t!==""&&this.filteredIssues().length===0&&this.toastService.show("No se encontraron ejemplares con el texto buscado.","error",2e3)},500)}static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275cmp=D({type:e,selectors:[["app-collection"]],features:[N([{provide:R,useValue:P}])],decls:13,vars:5,consts:[[1,"container-wrapper","pt-9","pb-14","lg:py-14","xl:py-20"],[1,"mb-10"],[1,"flex","flex-col","md:flex-row","md:items-end","justify-between","gap-6"],[1,"flex-1"],[1,"w-full","md:w-80","lg:w-96"],[1,"relative","group"],["type","text","placeholder","Buscar por n\xFAmero, revista o t\xEDtulo...",1,"w-full","h-12","pl-12","pr-4","bg-white","border","border-gray-200","rounded-md","text-sm","focus:outline-none","focus:border-blue-500","focus:ring-4","focus:ring-blue-50/50","transition-all","shadow-sm",3,"ngModelChange","ngModel"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"size-5","absolute","left-4","top-1/2","-translate-y-1/2","text-gray-400","group-focus-within:text-blue-500","transition-colors"],["stroke-linecap","round","stroke-linejoin","round","d","m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"],[1,"grid","grid-cols-2","md:grid-cols-3","lg:grid-cols-5","gap-8","pt-9","pb-14","lg:py-14","xl:py-20"],[1,"mt-12"],[1,"mt-2"],[1,"text-content/70"],[1,"text-xs","text-content/50","mt-1","italic"],[1,"flex","flex-wrap","items-center","gap-x-8","gap-y-3","mt-4"],[1,"flex","items-center","gap-3"],[1,"flex","items-center","justify-center","w-10","h-10","rounded-xl","bg-blue-50","text-blue-600","shadow-sm","border","border-blue-100"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"size-6"],["stroke-linecap","round","stroke-linejoin","round","d","M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"],[1,"flex","flex-col"],[1,"text-lg","font-bold","text-primary","leading-none"],[1,"text-[10px]","uppercase","tracking-wider","text-content/60","font-semibold"],[1,"flex","items-center","justify-center","w-10","h-10","rounded-xl","bg-orange-50","text-orange-600","shadow-sm","border","border-orange-100"],["stroke-linecap","round","stroke-linejoin","round","d","M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"],[1,"grid","grid-cols-2","lg:grid-cols-4","xl:grid-cols-5","gap-x-6","gap-y-10","lg:gap-y-16"],[1,"text-center","py-20","bg-back-gray","rounded-xl"],[3,"issue","hasAccess"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-16","w-16","mx-auto","text-content/20"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1","d","M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5S19.832 5.477 21 6.253v13C19.832 18.477 18.246 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"],[1,"mt-4","text-lg","font-medium","text-primary"],[1,"text-content/60","text-sm","mt-2"],["routerLink","/revistas",1,"mt-6","px-6","py-2","bg-hello-blue","text-white","rounded-lg","text-sm","font-bold","uppercase","tracking-wider"],[1,"animate-pulse","bg-back-gray","aspect-[3/4]","rounded-lg"],["name","revistas",3,"onClick"]],template:function(l,a){if(l&1&&(i(0,"section",0)(1,"header",1)(2,"div",2)(3,"div",3),p(4,ht,27,3),n(),i(5,"div",4)(6,"div",5)(7,"input",6),E("ngModelChange",function(b){return a.onSearchChange(b)}),n(),_(),i(8,"svg",7),d(9,"path",8),n()()()()(),p(10,_t,2,1),p(11,St,3,1,"div",9),p(12,wt,2,0,"div",10),n()),l&2){let m;r(4),u(a.isLoading()?-1:4),r(3),c("ngModel",a.searchTerm()),r(3),u((m=a.shownIssues())?10:-1,m),r(),u(a.isLoading()&&a.page()===1?11:-1),r(),u(a.showMoreButton()?12:-1)}},dependencies:[_e,xe,be,ve,ge,j,ke,De],encapsulation:2})}}return e})();var Ue=(e,s)=>{let t=g(z),l=g(he);return t.isInitialized()?t.currentUser()?!0:l.createUrlTree(["/login"]):Ce(t.isInitialized).pipe(te(a=>a===!0),ie(1),ee(()=>t.currentUser()?!0:l.createUrlTree(["/login"])))};var yi=[{path:"",canActivate:[Ue],resolve:{cache:Te},children:[{path:"dashboard",title:"Panel de Usuario | Hello Chefs",component:Fe},{path:"mi-coleccion",title:"Mi Colecci\xF3n | Hello Chefs",component:Ne}]}];export{yi as CUSTOMER_ROUTES};

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.