PageSourceSearch

https://engate.jp/_assets/IH-zmT-O.js

js engate.jp collected 2026-10-02 06:19:08 UTC 9,409 bytes, 1 lines download raw bytes

1import{_ as z}from"./q2BJrez8.js";import{_ as Z}from"./D41837mi.js";import{_ as T}from"./evu-QIW2.js";import{_ as G}from"./CT83ECQS.js";import{d as M,h as A,J as B,o as s,c as l,m as i,D as C,u as o,b as h,t as x,H,a as O,K as E,r as v,s as y,C as F,Z as q,F as L,q as D,n as b,p as $,k as N,f as I}from"./BgwL-FNm.js";import{f as U,a as P}from"./BaH6CAb2.js";import{f as V}from"./BBYZjxun.js";import{d as Y}from"./B77W9OWa.js";import{u as J}from"./Be_DmCnm.js";const K={class:"flex"},R=["src","alt"],W={class:"gift-point font-abolition mt-4 text-[14px]"},Q={key:0,class:"mx-8 h-[24px] rotate-180 transform",src:G,alt:""},X=["src"],tt={class:"text-body mt-4 text-center text-[12px] font-bold"},et={key:1,class:"flex max-w-[100px] flex-col items-center"},ot=["src"],st={class:"text-body mt-4 text-center text-[12px] font-bold"},k="80px",nt=M({__name:"ContentsTipping",props:{tippingEvent:{},post:{},clickGift:{type:Function}},setup(_){const r=_,a=v({}),d=v({}),u=y(()=>r.tippingEvent?.gifting_catalogs),c=y(()=>r.tippingEvent?.player),e=y(()=>({src:String(u.value?.image??""),size:k,alt:"ギフティングイメージ"})),g=y(()=>a.value?.is_team_account?d.value?.name??"":a.value?.account_name??""),f=y(()=>a.value?.is_team_account?String(d.value?.logo??""):String(c.value?.avatar??"")),t=y(()=>{if(a.value&&d.value){if(a.value.type==="teamAccount")return`/communities/${d.value.name_en}/profile/`;if(a.value.type==="player")return`/communities/${d.value.name_en}/players/${a.value.customer_id}/`}return""}),p=y(()=>{const m=u.value?.point;return m?m.toLocaleString()+"PTS":""});function n(){r.clickGift&&r.clickGift(r.tippingEvent?.gifting_catalogs)}return A(async()=>{if(a.value=r.tippingEvent?.player??{},a.value?.community_id)try{const w=await B().get(`/communities/${a.value.community_id}/profile`,{showError:!1});d.value=w}catch{}}),(m,w)=>{const j=T;return s(),l("div",K,[i("div",{class:H(["relative flex flex-col items-center",{"cursor-pointer":_.clickGift}])},[i("div",{class:"overflow-hidden",style:C({width:k,height:k}),onClick:n},[o(e).src?(s(),l("img",{key:0,src:o(e).src,alt:o(e).alt,class:"h-full w-full object-cover"},null,8,R)):h("",!0)],4),i("p",W,x(o(p)),1)],2),i("div",{class:H(["flex flex-col",[_.tippingEvent?.reply_stamp?"mt-8":"mt-12"]])},[w[0]||(w[0]=i("img",{class:"mx-8 h-[24px]",src:G,alt:""},null,-1)),_.tippingEvent?.reply_stamp?(s(),l("img",Q)):h("",!0)],2),o(t)?(s(),O(j,{key:0,class:"flex max-w-[100px] flex-col items-center",to:o(t)},{default:E(()=>[i("div",{class:"overflow-hidden rounded-full",style:C({width:k,height:k})},[o(f)?(s(),l("img",{key:0,src:o(f),alt:"",class:"h-full w-full object-cover"},null,8,X)):h("",!0)],4),i("p",tt,x(o(g)),1)]),_:1},8,["to"])):(s(),l("div",et,[i("div",{class:"overflow-hidden rounded-full",style:C({width:k,height:k})},[o(f)?(s(),l("img",{key:0,src:o(f),alt:"",class:"h-full w-full object-cover"},null,8,ot)):h("",!0)],4),i("p",st,x(o(g)),1)]))])}}}),it=Object.assign(nt,{__name:"MypageContentsTipping"}),at=["src"],lt=M({__name:"GiftingEffect",props:{sendedGift:{}},emits:["close-modal"],setup(_,{emit:r}){const a=_,d=r,u=v(!1),c=v("");let e=null;function g(){u.value=!1,c.value="",e&&(clearTimeout(e),e=null),d("close-modal")}return F(()=>a.sendedGift,f=>{f&&(u.value=!0,c.value=`${f.effect_image}?${U()}`,e=setTimeout(g,f.display_time))}),q(()=>{e&&clearTimeout(e)}),(f,t)=>o(u)&&o(c)?(s(),l("div",{key:0,class:"sm:ml-menu sm:w-contents-sm md:w-contents-md lg:left-contents-center lg:w-contents fixed top-0 left-0 z-50 grid h-full w-full place-items-center lg:ml-0",onClick:g},[i("img",{class:"w-full",src:o(c),alt:"ギフティングエフェクト"},null,8,at)])):h("",!0)}}),ct=Object.assign(lt,{__name:"MypageGiftingEffect"}),rt={class:"px-6 pb-6"},ut={class:"text-[10px]"},pt={key:0,class:"mt-6 flex justify-center"},mt={class:"mt-2 flex items-end justify-between"},dt={key:0,class:"text-[12px] font-medium"},ft={key:0,class:"block"},_t={class:"block"},gt={key:0},ht={key:1,class:"mt-1 mr-6 block text-right text-[10px]"},yt=M({__name:"PointHistoryList",props:{histories:{}},setup(_){const r=v(null);function a(c){return Y[c]??""}function d(c){r.value=c}function u(){r.value=null}return(c,e)=>
1{const g=it,f=ct;return s(),l("div",null,[i("ul",rt,[(s(!0),l(L,null,D(_.histories,t=>(s(),l("li",{key:t.id,class:"border-grey-bc border-b p-6"},[i("time",ut,x(o(P)(t.created_at)),1),t.kind==="payment"&&t.giftings?(s(),l("div",pt,[b(g,{"tipping-event":t.giftings,"click-gift":d,post:t},null,8,["tipping-event","post"])])):h("",!0),i("div",mt,[t.kind==="deposit"?(s(),l("p",dt,[t.point_type==="free"||"coupon_id"in t&&t.coupon_id!==null?(s(),l(L,{key:0},[$(x(t.title)+" ",1),t.tag_name?(s(),l("span",ft,x(t.tag_name),1)):h("",!0)],64)):t.point_type==="paid"?(s(),l(L,{key:1},[i("span",_t,x(a(String(t.title??""))),1),e[0]||(e[0]=$(" ポイント購入 ",-1))],64)):h("",!0)])):h("",!0),i("p",{class:H(["font-abolition mr-6 ml-auto flex-shrink-0 text-[18px] font-bold tracking-wider",[t.kind==="payment"?"text-feed-red":""]])},[t.kind==="deposit"?(s(),l("span",gt,"+")):h("",!0),$(" "+x(o(V)(t.point)),1),e[1]||(e[1]=i("span",{class:"ml-1 text-[14px]"},"PTS",-1))],2)]),"expired_at"in t&&t.expired_at?(s(),l("time",ht,x(o(P)(t.expired_at))+" まで ",1)):h("",!0)]))),128))]),b(f,{"sended-gift":o(r),onCloseModal:u},null,8,["sended-gift"])])}}}),xt=Object.assign(yt,{__name:"MypagePointHistoryList"}),vt="data:image/svg+xml,%3csvg%20id='コンポーネント_200_9'%20data-name='コンポーネント%20200%20–%209'%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20id='パス_3928'%20data-name='パス%203928'%20d='M277.806,779.727v-4.434h-17.73v4.434a1.479,1.479,0,0,1-.008,2.957v4.434h17.738v-4.434a1.479,1.479,0,0,1,0-2.957Zm-5.173,5.543h-1.479v-1.478h1.479Zm0-3.325h-1.479v-1.478h1.479Zm0-3.326h-1.479v-1.478h1.479Z'%20transform='translate(-256.937%20-769.206)'%20fill='%23fff'/%3e%3crect%20id='長方形_2542'%20data-name='長方形%202542'%20width='24'%20height='24'%20fill='none'/%3e%3c/svg%3e",wt={key:0,class:"flex justify-center py-8"},kt={key:1,class:"pb-8"},bt={class:"p-6"},$t=["src"],Mt={key:1,class:"px-6 text-[14px]"},jt={class:"mx-auto mt-4 text-center"},Ct={key:0,class:"flex justify-center py-8"},Lt=M({__name:"PointHistory",props:{pointHistoryObj:{},showButtonMore:{type:Boolean}},emits:["on-load-more"],setup(_,{emit:r}){const a=_,d=r,u=N(),c=y(()=>a.pointHistoryObj?.points??null),e=y(()=>a.pointHistoryObj!==null&&a.pointHistoryObj.histories.length>0),g=y(()=>u.isMoreLoading);function f(){d("on-load-more")}return(t,p)=>{const n=z,m=Z,w=T,j=xt;return _.pointHistoryObj?(s(),l("div",kt,[b(m,{class:"p-7","show-limited-points":!0,points:o(c)},null,8,["points"]),i("div",bt,[b(w,{to:"/mypage/purchase/",class:"mb-6 flex items-center justify-center text-[12px] font-bold text-white",style:{backgroundColor:"#1565C0",width:"100%",height:"48px"}},{default:E(()=>[...p[0]||(p[0]=[$(" ポイント購入 ",-1)])]),_:1}),b(w,{to:"/mypage/coupons/",class:"flex items-center justify-center text-[12px] font-bold text-white",style:{backgroundColor:"#1565C0",width:"100%",height:"48px"}},{default:E(()=>[i("img",{src:o(vt),alt:"",class:"mr-2 h-9 w-9"},null,8,$t),p[1]||(p[1]=$(" クーポン番号入力 ",-1))]),_:1})]),p[3]||(p[3]=i("div",{class:"relative"},[i("hr",{class:"border-grey-bc"})],-1)),p[4]||(p[4]=i("h2",{class:"p-6 text-[14px] font-bold"},"購入履歴・利用履歴",-1)),o(e)?(s(),O(j,{key:0,histories:_.pointHistoryObj.histories},null,8,["histories"])):(s(),l("p",Mt,"履歴がまだありません。")),i("div",jt,[o(g)?(s(),l("div",Ct,[b(n,{size:"sm"})])):_.showButtonMore?(s(),l("button",{key:1,class:"border-grey-21 mx-auto flex h-[48px] flex-col items-center justify-center rounded border px-16 py-1 text-[12px] font-bold outline-none",onClick:f},[...p[2]||(p[2]=[i("p",null,"もっと見る",-1),i("i",{class:"icon-arrow_down bg-grey-21 mt-1 h-2 w-3"},null,-1)])])):h("",!0)])])):(s(),l("div",wt,[b(n,{size:"md"})]))}}}),St=Object.assign(Lt,{__name:"MypagePointHistory"}),S=30,Ht=30,Zt=M({__name:"points",setup(_){J({title:"ポイント履歴",noindex:!0});const r=N(),a=I(),d=B(),u=v(null),c=v(0),e=v({offset:0,limit:Ht,count:0,show:!1});function g(){S>=c.value||e.value.count>=c.value||c.value==null?e.value.show=!1:e.value.show=!0}async function f(){e.value.count===S?e.value.offset=S:e.value.offset+=e.value.limit;const{offset:t,limit:p}=e.value;r.startMoreLoading();try{const n=await d.get("/user/points",{query:{offset:t,limit:p,history:"on"},showError:!1});u.value!==null&&(u.value.histories=u.value.histories.concat(n.history??[]),e.value.count=u.value.histories.length,g(),n.code&&n.message&&a.showAcknowledgement({code:n.code,message:n.message}))}catch(n){const m=n;m?.code&&m?.message&&a.showAcknowledgement({code:m.code,message:m.message})}r.stopMoreLoading()}return A(async()=>{const{offset:t,limit:p}=e.value;try{const n=await d.get("/user/points",{query:{offset:t,limit:p,history:"on"},showError:!1});u.value={points:n.points,histories:n.history??[]},c.value=n.count??0,g(),n.code&&n.message&&a.showAcknowledgement({code:n.code,message:n.message})}catch(n){const m=n;m?.code&&m?.message&&a.showAcknowledgement({code:m.code,message:m.message})}}),(t,p)=>{const n=St;return s(),O(n,{"point-history-obj":o(u),"show-button-more":o(e).show,onOnLoadMore:f},null,8,["point-history-obj","show-button-more"])}}});
1export{Zt 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.