PageSourceSearch

https://www.daily-tohoku.news/_nuxt/aRmoDigu.js

js daily-tohoku.news collected 2026-09-24 18:17:04 UTC 6,292 bytes, 1 lines download raw bytes

1import{_ as V}from"./BXCSZbS7.js";import{u as W,w as H,e as u,U as w,hY as j,hZ as q,aP as z,f as Y,h as L,a0 as $,y as J,aJ as K,B as X,aK as Z,R as d,h_ as Q,h$ as ee,c as r,o as l,E as f,a,s as E,M as T,t as m,l as S,m as A,G as te,_ as ae,q as e,C as N,i0 as se,aO as ne,O as le,X as oe,n as R,a7 as re,i1 as ce,aS as ue}from"./BTeorgPV.js";const ie=async()=>{const v=z(),{handleAsyncDataError:o}=Y(),{data:h,error:p}=await W("mypage-index",async()=>await v.me(),{server:!0,lazy:!1});H(p,c=>{c&&o(p)},{immediate:!0});const i=u(()=>h.value??null),_=u(()=>{if(w(i.value))return!1;const{managedPlan:c}=i.value.currentPlan;return w(c)?!1:c.type===j}),b=u(()=>{if(w(i.value))return!1;const{managedPlan:c}=i.value.currentPlan;return w(c)?!1:c.type===q});return{user:i,canShowFamilyPlan:_,canShowCorporatePlan:b}},de={class:"flex w-full flex-col px-5 pb-15"},me={class:"mx-auto mt-4 flex w-full max-w-[600px] flex-col"},pe={class:"mt-4 rounded-sm border border-gray-200 p-4 text-sm md:p-6"},fe={class:"mt-3"},he={class:"mt-4 gap-2.5 rounded-md bg-white p-5 shadow-[0_1px_4px_rgba(12,12,13,0.05)]"},_e={class:"mt-2 flex flex-col gap-1"},xe={class:"pl-4 text-[17px] leading-[140%] font-semibold"},ye={class:"text-gray-650 mt-1 list-none space-y-0.5 pl-4 text-[15px] leading-[140%] font-normal"},we={key:1,class:"text-red-650 text-[15px] leading-[140%] font-semibold"},be={key:2,class:"text-red-650 text-[15px] leading-[140%] font-semibold"},Pe={key:3,class:"text-red-650 mt-1 list-none space-y-0.5 pl-4 text-[15px] leading-[140%] font-medium"},ge={class:"mt-3"},Se={class:"mt-12 border-t"},ve={class:"border-y"},Ae=L({__name:"index",props:{user:{},canShowFamilyPlan:{type:Boolean},canShowCorporatePlan:{type:Boolean}},setup(v){const o=v,h=$(),p=J(),i=K(),{isWebView:_,loginUrlSchema:b}=X(),{logout:c}=Z(),{handleError:k}=Y(),G=u(()=>[{label:"登録情報の編集",to:{name:d.MYPAGE_ACCOUNT},isShow:!0},{label:"パスワード変更",to:{name:d.MYPAGE_PASSWORD},isShow:!0},{label:"メールアドレス変更",to:{name:d.MYPAGE_EMAIL},isShow:!0}].filter(t=>t.isShow)),x=u(()=>o.user.currentPlan.scheduledPlan??null),P=u(()=>{const t=x.value;if(!t?.scheduledEffectiveAt||t.scheduledEffectiveAt.length<10)return"";const[s,M,y]=t.scheduledEffectiveAt.split("-"),g=parseInt(M,10),n=parseInt(y,10);return Number.isNaN(g)||Number.isNaN(n)?t.scheduledEffectiveAt:`${s}年${g}月${n}日から`}),I=u(()=>x.value?.scheduledMainPlanName??null),B=u(()=>{const t=x.value;return t?!w(t.scheduledMainPlanId)&&!w(t.scheduledEffectiveAt)&&t.scheduledEffectiveAt!=="":!1}),C=u(()=>x.value?.scheduledOptionRemovalNames??[]),O=u(()=>o.user.currentPlan.optionNames??[]),F=u(()=>[{label:"支払明細",to:{name:d.MYPAGE_INVOICES},isShow:!0},{label:"購入履歴",to:{name:d.MYPAGE_PURCHASE_HISTORY},isShow:!0},{label:"ファミリープラン管理",to:{name:d.MYPAGE_FAMILY},isShow:o.canShowFamilyPlan},{label:"法人プラン管理",to:{name:d.MYPAGE_CORPORATE},isShow:o.canShowCorporatePlan},{label:"プラン変更",to:{name:d.MYPAGE_PLAN},isShow:!_.value&&o.user.currentPlan.planType!==Q&&o.user.currentPlan.planType!==ee},{label:"決済方法変更",to:{name:d.MYPAGE_PAYMENT},isShow:!0}].filter(t=>t.isShow)),U=async()=>{try{(await c()).success&&(i.add({title:ne.LOGOUT_SUCCESS,color:"info"}),_.value?le(b.value,{external:!0,open:{target:"_self"}}):p.push(`/login?redirect=${encodeURIComponent(h.fullPath)}`))}catch(t){k(t)}},D=()=>{p.push({name:d.MYPAGE_WITHDRAW})};return(t,s)=>{const M=V,y=te,g=ae;return l(),r("div",de,[f(M,null,{default:E(()=>s[0]||(s[0]=[T("マイページ",-1)])),_:1,__:[0]}),a("div",me,[s[5]||(s[5]=a("h2",{class:"mt-6 text-xl font-semibold"},"プロフィール",-1)),a("div",pe,[a("p",null,"デーリーID(メールアドレス): "+m(t.user.email),1)]),a("div",fe,[(l(!0),r(S,null,A(e(G),n=>(l(),r("div",{key:n.label,class:"flex w-full max-w-[700px] flex-col border-b border-gray-200"},[f(g,{class:"flex items-center justify-between py-2 text-sm whitespace-pre-line",to:n.to},{default:E(()=>[T(m(n.label)+" ",1),f(y,{name:"i-v-breadcrumbs-arrow",class:"h-2.5 w-2.5 text-gray-600",mode:"svg"})]),_:2}
1,1032,["to"])]))),128))]),s[6]||(s[6]=a("h2",{class:"mt-10 text-xl font-semibold"},"契約状況",-1)),a("dl",he,[s[2]||(s[2]=a("dt",{class:"text-[15px] leading-[140%]"},"現在ご契約中のコース",-1)),a("dd",_e,[a("span",xe,m(e(se)(t.user.currentPlan.planName,t.user.currentPlan.planType)),1),e(O).length?(l(),r(S,{key:0},[s[1]||(s[1]=a("p",{class:"text-gray-650 mt-2 text-[15px] leading-[140%] font-medium"},"オプション",-1)),a("ul",ye,[(l(!0),r(S,null,A(e(O),n=>(l(),r("li",{key:n},m(n),1))),128))])],64)):N("",!0),e(B)?(l(),r("span",we,m(e(I)?`→ ${e(I)}に変更予定(${e(P)})`:`変更予定(${e(P)})`),1)):e(C).length?(l(),r("span",be," 変更予定("+m(e(P))+") ",1)):N("",!0),e(C).length?(l(),r("ul",Pe,[(l(!0),r(S,null,A(e(C),n=>(l(),r("li",{key:n},m(n)+"を解除",1))),128))])):N("",!0)])]),a("div",ge,[(l(!0),r(S,null,A(e(F),n=>(l(),r("div",{key:n.label,class:"flex w-full max-w-[700px] flex-col border-b border-gray-200"},[f(g,{class:"flex items-center justify-between py-2 text-sm whitespace-pre-line",to:n.to},{default:E(()=>[T(m(n.label)+" ",1),f(y,{name:"i-v-breadcrumbs-arrow",class:"h-2.5 w-2.5 text-gray-600",mode:"svg"})]),_:2},1032,["to"])]))),128))]),a("div",Se,[a("button",{class:"flex-center w-fit py-4 font-semibold hover:underline",onClick:U},[f(y,{name:"ph:sign-out-bold",class:"mr-1.5 h-5 w-5"}),s[3]||(s[3]=a("span",{class:"leading-none"}," ログアウト ",-1))])]),a("div",ve,[a("button",{class:"flex-center w-fit py-4 font-semibold text-red-500 hover:underline",onClick:D},[f(y,{name:"ph:user-minus-bold",class:"mr-1.5 h-5 w-5"}),s[4]||(s[4]=a("span",{class:"leading-none"}," 解約する ",-1))])])])])}}}),Ce=L({__name:"index",async setup(v){let o,h;const p=$(),{user:i,canShowFamilyPlan:_,canShowCorporatePlan:b}=([o,h]=oe(()=>ie()),o=await o,h(),o),{generateBreadcrumbPaths:c}=ue();return(k,G)=>{const x=Ae,P=re;return l(),R(P,{breadcrumbPaths:e(c)({route:e(p)}),showGeneralSideBar:!1},{default:E(()=>[e(ce)(e(i))?(l(),R(x,{key:0,user:e(i),canShowFamilyPlan:e(_),canShowCorporatePlan:e(b)},null,8,["user","canShowFamilyPlan","canShowCorporatePlan"])):N("",!0)]),_:1},8,["breadcrumbPaths"])}}});export{Ce as default};

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.