PageSourceSearch

https://www.diariodecadiz.es/diariodecadiz/2202.h-ece40145d9a025d5de2d.js

js diariodecadiz.es collected 2026-10-01 11:31:44 UTC 4,087 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2202],{2202:(function(b,a,s){s.r(a),s.d(a,{default:function(){return _}});var c=function(){var e=this,t=e._self._c,T=e._self._setupProxy;return t("div",[t("div",{staticClass:"user__layout"},[t("div",{staticClass:"user__layout-left"},[t("nx-user-menu",{attrs:{active:e.active},on:{click:e.updateActive}})],1),e._v(" "),t("div",{staticClass:"user__layout-right"},[t("transition",{attrs:{name:"user-menu-animation"}},[e.active==="rrss"?t("div",{key:"rrss",staticClass:"user__layout-wrapper"},[t("div",[t("nx-alert-message",{staticClass:"user--mt-20",attrs:{alert:"",title:e.translations.rrssTitle,message:e.translations.rrssMessage}}),e._v(" "),t("nx-form-user-profile",{attrs:{type:"rrss","legal-conditions-url":e.legalConditionsUrl,"legal-privacy-url":e.legalPrivacyUrl,user:e.currentUser,countries:e.countries,provinces:e.provinces}})],1)]):e.active==="user"?t("div",{key:"user",staticClass:"user__layout-wrapper"},[t("nx-form-user-profile",{attrs:{"legal-conditions-url":e.legalConditionsUrl,"legal-privacy-url":e.legalPrivacyUrl,user:e.currentUser,countries:e.countries,provinces:e.provinces}})],1):e.active==="favourites"&&e.currentUser?t("div",{key:"favourites",staticClass:"user__layout-wrapper"},[t("nx-favourites-view",{attrs:{value:e.favourites,userId:e.currentUser.id},on:{input:e.setFavourites}})],1):e.active==="authors"&&e.currentUser?t("div",{key:"authors",staticClass:"user__layout-wrapper"},[t("nx-authors-view",{attrs:{value:e.authors,userId:e.currentUser.id},on:{input:e.setAuthors}})],1):e.active==="newsletters"&&e.currentUser?t("div",{key:"newsletters",staticClass:"user__layout-wrapper"},[t("nx-newsletters-view")],1):e._e()])],1)])])},v=[],i=s(7382),p=s(8925),h=s(3873),f=s(5454),d=s(6482),g=s(7427),y=s(6340),m=s(2523),w=s(7921),C=s.n(w),U=Object.defineProperty,x=Object.defineProperties,P=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,u=(r,e,t)=>e in r?U(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,o=(r,e)=>{for(var t in e||(e={}))O.call(e,t)&&u(r,t,e[t]);if(n)for(var t of n(e))j.call(e,t)&&u(r,t,e[t]);return r},l=(r,e)=>x(r,P(e)),F={name:"nx-profile-view",props:{type:{type:String},legalConditionsUrl:{type:String,default:""},legalPrivacyUrl:{type:String,default:""},countries:{type:Object},provinces:{type:Object}},components:{NxNewslettersView:m.Z,NxFormUserProfile:h.Z,NxAuthorsView:f.Z,NxFavouritesView:d.Z,NxAlertMessage:g.Z,NxUserMenu:y.Z},data:()=>({favourites:null,authors:null,tabToRoute:{user:"profile-user",favourites:"profile-contents",authors:"profile-authors",newsletters:"profile-newsletters"}}),computed:l(o(o({},(0,i.Se)(["site"])),(0,i.Se)("user",["currentUser"])),{translations(){return{rrssTitle:this.$t("register.rrss-step2-titulo",{site:this.site.name}),rrssMessage:this.$t("register.rrss-step2-descripcion")}},active(){return this.$route.name?this.objectFlip(this.tabToRoute)[this.$route.name]:this.objectFlip(this.tabToRoute)["profile-user"]}}),watch:{$route(r,e){console.debug("Watch route",r,e)}},mounted(){this.$nextTick(()=>{const r=C().getJSON("nx-session-user");console.debug("%c Profile view ","background: #00ff00; color: #333",this.currentUser,r),r===void 0&&(window.location="/acceso/")}),this.setFavourites(),this.setAuthors(),this.specialCase(),this.setPrintCss(this.printCss)},methods:l(o({objectFlip(r){return Object.keys(r).reduce((e,t)=>(e[r[t]]=t,e),{})}},(0,i.nv)("user",["getSavedContents","getFollowedAuthors","setPrintCss"])),{updateActive(r){console.debug("Route to name",this.tabToRoute[r]),p.Z.push({name:this.tabToRoute[r]})},specialCase(){this.type==="rrss"&&(this.active="rrss")},setFavourites(){this.currentUser&&this.getSavedContents(this.currentUser.id).then(r=>{this.favourites=r.contents}).catch(r=>{console.error(r)})},setAuthors(){this.currentUser&&this.getFollowedAuthors(this.currentUser.id).then(r=>{this.authors=r.authors}).catch(r=>{console.error(r)})}})},S=F,N=s(810),A=(0,N.Z)(S,c,v,!1,null,null,null),_=A.exports})}]);

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.