import{V as u,U as _,u as n,n as r}from"./client-BmVmnFEC.js";import i from"./AnchorLink-BNOXPdVn.js";const c=u.extend({components:{AnchorLink:i,UserIcon:_},computed:{userName(){return this.$store.state.session.name||"(氏名未設定)"},userId(){return this.$store.state.session.id},mypageLink(){return`${n()}/mypage/`},goneLink(){return`${n()}/mypage/gone/`},wannagoLink(){return`${n()}/mypage/wannago/`},goneCount(){return this.$store.state.session.goneCount},wannagoCount(){return this.$store.state.session.wannagoCount},followingCount(){return this.$store.state.session.followingCount||0},followerCount(){return this.$store.state.session.followerCount||0},currentReservationCount(){return this.$store.state.session.currentReservationCount||0}}});var g=function(){var t=this,s=t._self._c;return t._self._setupProxy,s("section",{staticClass:"current-user"},[s("div",{staticClass:"current-user__profile profile"},[s("anchor-link",{attrs:{to:t.mypageLink}},[s("user-icon",{staticClass:"profile__icon",attrs:{id:t.userId,alt:t.userName,size:60}})],1),s("div",{staticClass:"profile__details"},[s("anchor-link",{staticClass:"profile__link",attrs:{to:t.mypageLink}},[s("div",{staticClass:"profile__name"},[t._v(t._s(t.userName))])]),s("dl",{staticClass:"profile__counter"},[s("dt",{staticClass:"profile__counter-title"},[t._v("フォロー")]),s("dd",[t._v(t._s(t.followingCount))])]),s("dl",{staticClass:"profile__counter"},[s("dt",{staticClass:"profile__counter-title"},[t._v("フォロワー")]),s("dd",[t._v(t._s(t.followerCount))])])],1)],1),s("anchor-link",{staticClass:"current-user__reservation reservation",attrs:{to:"/my-reservation/list/"}},[s("div",{staticClass:"reservation__content"},[s("div",{staticClass:"reservation__title"},[t._v("現在のご予約")]),s("div",{staticClass:"reservation__count"},[t._v(t._s(t.currentReservationCount)),s("span",[t._v("件")])])])]),s("div",{staticClass:"current-user__gone-wannago gone-wannago"},[s("anchor-link",{staticClass:"gone-wannago__link",attrs:{to:t.goneLink}},[s("dl",{staticClass:"gone-wannago__counter"},[s("dt",[t._v("行ったお店")]),s("dd",[t._v(t._s(t.goneCount))])])]),s("anchor-link",{staticClass:"gone-wannago__link",attrs:{to:t.wannagoLink}},[s("dl",{staticClass:"gone-wannago__counter"},[s("dt",[t._v("行きたいお店")]),s("dd",[t._v(t._s(t.wannagoCount))])])])],1)],1)},C=[],m=r(c,g,C,!1,null,"cd58231b");const v=m.exports,f=u.extend({components:{CurrentUser:v,AnchorLink:i},computed:{isLogin(){return this.$store.getters["session/isLogin"]},userMenuItems(){return[{title:"マイページ",href:`${n()}/mypage/`},{title:"予約管理",href:`${n()}/my-reservation/list/`},{title:"PayPayポイント",href:`${n()}/mypage/paypay-bonus/`},{title:"アカウント設定",href:`${n()}/mypage/account-setting/`},{title:"プロフィール・投稿設定",href:`${n()}/mypage/privacy-index/`},{title:"投稿管理",href:`${n()}/mypage/post-list/`},{title:"メッセージ",href:`${n()}/message/`},{title:"ヘルプ",href:"https://inforetty.zendesk.com/hc/ja"}]},loginUrl(){const e=new URLSearchParams({returnUrl:this.$route.fullPath});return`${n()}/login/?${e.toString()}`},signUpUrl(){const e=new URLSearchParams({returnUrl:this.$route.fullPath});return`${n()}/login/signup/?${e.toString()}`}}});var p=function(){var t=this,s=t._self._c;return t._self._setupProxy,s("div",[t.isLogin?s("div",[s("current-user"),s("section",{staticClass:"user-menus"},[s("ul",{staticClass:"user-menus__links"},t._l(t.userMenuItems,function({title:a,href:o},l){return s("li",{key:l,staticClass:"user-menus__item"},[s("anchor-link",{staticClass:"user-menus__link",attrs:{to:o}},[t._v(" "+t._s(a)+" ")])],1)}),0)])],1):s("div",[s("section",{staticClass:"login-action"},[s("p",{staticClass:"login-action__title"},[t._v(" Rettyにログインすると、すべての機能が使えるようになります! ")]),t._m(0),s("anchor-link",{class:"login-action__button login-action__button--login",attrs:{to:t.loginUrl}},[t._v(" ログインする ")]),s("anchor-link",{class:"login-action__button login-action__button--signup",attrs:{to:t.signUpUrl}},[t._v(" 会員登録する(無料) ")])],1)])])},d=[function(){var e=this,t=e._self._c;return e._self._setupProxy,t("ul",{staticClass:"login-action__list"},[t("li",{staticClass:"login-action__list-item"},[e._v("かんたんネット予約")]),t("li",{staticClass:"login-action__list-item"},[e._v("行きたい・行ったお店を保存")]),t("li",{staticClass:"login-action__list-item"},[e._v("好みの合うユーザーをフォロー")])])}],h=r(f,p,d,!1,null,"c37316b9");const y=h.exports;export{y as U};