import{V as h,J as M,n as _,E as I}from"./client-BmVmnFEC.js";import{P as B}from"./PvLogger-Bfc8O67g.js";import{u as C}from"./graphqlErrorHandling-BE1XWHfd.js";import{m as R}from"./makeMyBestHead-DbSQjwBn.js";import{t as w}from"./type-util-BsvaEqwl.js";import{V as L,g as x}from"./makeGtmScript-B8HLg2s0.js";import"./constants-2oqeuneD.js";const $=h.extend({props:{pageEntity:{type:Object,required:!0}},computed:{user(){var n;return w((n=this.pageEntity.entity)==null?void 0:n.user)},userId(){return this.user.id.toString()},myBestLinkList(){var n,e;return((e=(n=this.user)==null?void 0:n.myBestReports)==null?void 0:e.map(i=>{var t,l,s;return{year:i.year,reportImage:((s=(l=(t=i.reports)==null?void 0:t[0])==null?void 0:l.images[0])==null?void 0:s.image.url)||"",linkUrl:`${M()}/${this.userId}/mybest/${i.year}/`}}))||[]},userName(){return this.user.name||"No Name"}}});var P=function(){var e=this,i=e._self._c;return e._self._setupProxy,i("div",{staticClass:"my-best-link-list"},[i("header",{staticClass:"page-title"},[i("h1",{staticClass:"page-title__text"},[e._v(e._s(e.userName)+"さんのMY BEST")])]),i("div",{staticClass:"my-best-link-list__content"},[e.myBestLinkList.length>0?i("ul",{staticClass:"my-best-list"},e._l(e.myBestLinkList,function(t){return i("li",{key:`my-best-link-${t.year}`,staticClass:"my-best-list__item"},[i("anchor-link",{staticClass:"my-best-link",attrs:{to:t.linkUrl}},[i("div",{staticClass:"my-best-link__item",style:`background-image: url('${t.reportImage}')`},[i("div",{staticClass:"my-best-link__text"},[e._v("MY BEST"),i("br"),e._v(e._s(t.year))])])])],1)}),0):i("p",{staticClass:"my-best-list-error"},[e._v("MY BEST投稿がありません")])])])},D=[],U=_($,P,D,!1,null,"4f60ca15");const V=U.exports;var v={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MobileMyBestLinkList"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"myBestReports"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filterByYear"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"year"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reports"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:287}};v.loc.source={body:`fragment MobileMyBestLinkList on Query {
entity {
user(userId: $userId) {
id
name
myBestReports(filterByYear: $year) {
year
reports {
images {
image {
url
}
}
}
}
}
}
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function m(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var i=n.type;i.kind==="NamedType"&&e.add(i.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(t){m(t,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(t){m(t,e)}),n.definitions&&n.definitions.forEach(function(t){m(t,e)})}var k={};(function(){v.definitions.forEach(function(e){if(e.name){var i=new Set;m(e,i),k[e.name.value]=i}})})();function p(n,e){for(var i=0;i