PageSourceSearch

https://dopa-game.jp/_next/static/chunks/33302-09ea5f2cf66ccea0.js

js dopa-game.jp collected 2026-09-24 10:48:36 UTC 31,891 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98d38f39-7f67-4d48-910a-8480ecbdba7e",e._sentryDebugIdIdentifier="sentry-dbid-98d38f39-7f67-4d48-910a-8480ecbdba7e")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33302],{17048:(e,t,n)=>{n.d(t,{DU:()=>s,E:()=>l,EJ:()=>y,Gd:()=>g,fC:()=>u,iI:()=>o,pV:()=>p});var a=n(26114),r=n(90735),i=n(44244);let l=50,s="#ef0005",o=e=>[{label:"オリパ一覧",icon:i.O4,href:a.BV.top},e?{label:"LIVE",icon:i.TE,href:a.BV.gacha.lives}:{label:"速報",icon:i.Bt,href:a.BV.gacha.liveStation},{label:"ランキング",icon:i.t2,href:a.BV.permanentRankings},{label:"当選履歴",icon:i.OR,href:a.BV.prizeHistories},{label:"マイページ",icon:i.PF,href:a.BV.mypage.main}],d=r.pO.map(e=>"/".concat(e.slug)),c=new Set([a.BV.top,a.BV.gacha.stepUp,a.BV.gacha.live,...d]),x=new Set(d.map(e=>"".concat(e,"/dp"))),p=e=>c.has(e),u=e=>x.has(e),g=(e,t)=>t===a.BV.top?p(e):t===a.BV.dp.pokemon?u(e):t===a.BV.gacha.lives?e===a.BV.gacha.lives||e.startsWith("".concat(a.BV.gacha.lives,"/")):t===a.BV.gacha.liveStation?e===a.BV.gacha.liveStation||e.startsWith("".concat(a.BV.gacha.liveStation,"/")):t===a.BV.mypage.main?e===a.BV.mypage.main:e===t||e.startsWith("".concat(t,"/")),y=e=>({color:e?"#ea334f":"rgba(0,0,0,0.4)",hoverStyles:e?{bg:"white",color:"#bb293f",textDecoration:"none"}:{bg:"rgba(0,0,0,0.2)",textDecoration:"none"}})},33302:(e,t,n)=>{n.d(t,{B8:()=>P,rl:()=>x,dR:()=>j,jI:()=>ep,r$:()=>o});var a=n(96701),r=n(6575),i=n(6323),l=n(10201);let s=[{type:"daily",label:"日"},{type:"weekly",label:"週"},{type:"monthly",label:"月"},{type:"all_time",label:"全期間"}],o=e=>{let{currentType:t,onTypeChange:n}=e;return(0,a.jsx)(r.s,{w:"100%","data-sentry-element":"Flex","data-sentry-component":"RankingTypeTabs","data-sentry-source-file":"RankingTypeTabs.tsx",children:s.map(e=>{let{type:r,label:s}=e,o=t===r;return(0,a.jsx)(i.az,{flex:1,textAlign:"center",py:"12px",cursor:"pointer",borderBottom:o?"3px solid var(--chakra-colors-ranking-active)":"1px solid var(--chakra-colors-ranking-subtleBorder)",role:"button",tabIndex:0,onClick:()=>n(r),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n(r))},children:(0,a.jsx)(l.E,{fontSize:"14px",fontWeight:"bold",color:o?"black":"ranking.inactiveText",children:s})},r)})})};var d=n(80750),c=n(30089);let x=e=>{let{rankings:t,selectedId:n,onSelect:s}=e,o=(0,c.useRef)(null);return((0,c.useEffect)(()=>{if(o.current){let e=o.current.querySelector('[data-active="true"]');e&&e.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}},[n]),0===t.length)?null:(0,a.jsx)(i.az,{ref:o,overflowX:"auto",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},"data-sentry-element":"Box","data-sentry-component":"PeriodSelector","data-sentry-source-file":"PeriodSelector.tsx",children:(0,a.jsx)(d.z,{spacing:2,minW:"max-content",py:1,"data-sentry-element":"HStack","data-sentry-source-file":"PeriodSelector.tsx",children:t.map(e=>{let t=n===e.id;return(0,a.jsxs)(r.s,{"data-active":t,align:"center",gap:"4px",bg:t?"ranking.chipBg":"ranking.inactiveChipBg",color:t?"white":"ranking.inactiveText",borderRadius:"999px",px:"12px",py:"8px",cursor:"pointer",fontWeight:"bold",fontSize:"12px",flexShrink:0,role:"button",tabIndex:0,onClick:()=>s(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),s(e.id))},children:[e.is_running&&(0,a.jsx)(i.az,{w:"8px",h:"8px",borderRadius:"full",bg:"ranking.dot",flexShrink:0}),(0,a.jsx)(l.E,{children:e.label})]},e.id)})})})};var p=n(667),u=n(84058),g=n(75214),y=n(87044);let m=e=>{let{size:t="40px"}=e;return(0,a.jsx)(r.s,{w:t,h:t,borderRadius:"full",bg:"gray.200",align:"center",justify:"center",flexShrink:0,"data-sentry-element":"Flex","data-sentry-component":"AvatarPlaceholder","data-sentry-source-file":"AvatarPlaceholder.tsx",children:(0,a.jsx)("svg",{width:"60%",height:"60%",viewBox:"0 0 24 24",fill:"none","data-sentry-element":"svg","data-sentry-source-file":"AvatarPlaceholder.tsx",children:(0,a.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",fill:"#9CA3AF","data-sentry-element":"path","data-sentry-source-file":"AvatarPlaceholder.tsx"})})})};var f=n(21014);let h=e=>{let{rank:t}=e;return(0,a.jsxs)(i.az,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,"data-sentry-element":"Box","data-sentry-component":"RankCrownIcon","data-sentry-source-file":"RankCrownIcon.tsx",children:[t<=10&&(0,a.jsx)(f._,{src:(e=>{switch(e){case 1:return"/crown_gold.svg";case 2:return"/crown_silver.svg";case 3:return"/crown_bronze.svg";default:return"/crown_red.svg"}})(t),w:"18px",h:"22px",alt:""}),(0,a.jsxs)(l.E,{fontSize:"xxs",fontWeight:"bold",lineHeight:1.2,color:"black","data-sentry-element":"Text","data-sentry-source-file":"RankCrownIcon.tsx",children:[t,"位"]})]})}
1,k={_focus:{boxShadow:"none",outline:"none"},_focusVisible:{outline:"2px solid",outlineColor:"ranking.active",outlineOffset:"2px"},sx:{WebkitTapHighlightColor:"transparent"}},b=e=>{e.currentTarget.blur()},j=e=>{let{entries:t,onEntryClick:n}=e;if(0===t.length)return(0,a.jsxs)(p.T,{spacing:3,py:12,children:[(0,a.jsx)(u.I,{as:y.t,boxSize:"48px",color:"gray.300"}),(0,a.jsx)(l.E,{color:"gray.400",fontSize:"14px",children:"まだランキングはありません"})]});let i=t.filter(e=>e.position<=3),s=t.filter(e=>e.position>3),o=[i.find(e=>2===e.position),i.find(e=>1===e.position),i.find(e=>3===e.position)].filter(Boolean);return(0,a.jsxs)(p.T,{spacing:4,align:"stretch","data-sentry-element":"VStack","data-sentry-component":"RankingEntryList","data-sentry-source-file":"RankingEntryList.tsx",children:[o.length>0&&(0,a.jsx)(r.s,{justify:"center",align:"flex-end",maxW:"382px",mx:"auto",w:"100%",children:o.map(e=>(0,a.jsx)(R,{entry:e,onEntryClick:n},e.position))}),s.length>0&&(0,a.jsx)(p.T,{spacing:"4px",align:"stretch",children:s.map(e=>(0,a.jsx)(w,{entry:e,onEntryClick:n},e.position))})]})},R=e=>{let{entry:t,onEntryClick:n}=e,s=1===t.position;return(0,a.jsxs)(p.T,{flex:1,spacing:1,align:"center",pb:s?"8px":0,pt:s?0:"8px","data-sentry-element":"VStack","data-sentry-component":"PodiumEntry","data-sentry-source-file":"RankingEntryList.tsx",children:[(0,a.jsx)(h,{rank:t.position,"data-sentry-element":"RankCrownIcon","data-sentry-source-file":"RankingEntryList.tsx"}),(0,a.jsx)(i.az,{as:"button",type:"button","aria-label":"".concat(t.nickname,"のプロフィールを開く"),cursor:"pointer",bg:"transparent",border:"none",borderRadius:"full",p:0,onClick:()=>null==n?void 0:n(t.profile_uuid),onPointerUp:b,...k,"data-sentry-element":"Box","data-sentry-source-file":"RankingEntryList.tsx",children:t.avatar_body_image_url?(0,a.jsx)(g.d,{boxSize:"88px",bodyImageUrl:t.avatar_body_image_url,backgroundImageUrl:t.avatar_background_url,frameImageUrl:t.avatar_frame_image_url,titleImageUrl:t.avatar_title_image_url}):(0,a.jsx)(m,{size:"88px"})}),(0,a.jsx)(i.az,{bg:"ranking.podiumBadgeBg",borderRadius:"999px",px:"8px",py:"2px",maxW:"96px","data-sentry-element":"Box","data-sentry-source-file":"RankingEntryList.tsx",children:(0,a.jsx)(l.E,{fontSize:"10px",color:"white",noOfLines:1,textAlign:"center","data-sentry-element":"Text","data-sentry-source-file":"RankingEntryList.tsx",children:t.nickname})}),(0,a.jsxs)(r.s,{align:"center",gap:"2px","data-sentry-element":"Flex","data-sentry-source-file":"RankingEntryList.tsx",children:[(0,a.jsx)(l.E,{fontSize:"12px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"RankingEntryList.tsx",children:t.score.toLocaleString()}),(0,a.jsx)(l.E,{fontSize:"10px",color:"gray.500","data-sentry-element":"Text","data-sentry-source-file":"RankingEntryList.tsx",children:"PT"})]})]})},w=e=>{let{entry:t,onEntryClick:n}=e;return(0,a.jsxs)(r.s,{as:"button",type:"button","aria-label":"".concat(t.nickname,"のプロフィールを開く"),align:"center",w:"full",h:"49px",borderWidth:"1px",borderStyle:"solid",borderColor:"ranking.border",borderRadius:"4px",px:2,cursor:"pointer",bg:"transparent",onClick:()=>null==n?void 0:n(t.profile_uuid),onPointerUp:b,...k,"data-sentry-element":"Flex","data-sentry-component":"ListEntryRow","data-sentry-source-file":"RankingEntryList.tsx",children:[(0,a.jsx)(r.s,{align:"center",justify:"center",w:"39px",flexShrink:0,"data-sentry-element":"Flex","data-sentry-source-file":"RankingEntryList.tsx",children:(0,a.jsx)(h,{rank:t.position,"data-sentry-element":"RankCrownIcon","data-sentry-source-file":"RankingEntryList.tsx"})}),(0,a.jsxs)(r.s,{align:"center",flex:1,minW:0,gap:2,ml:1,"data-sentry-element":"Flex","data-sentry-source-file":"RankingEntryList.tsx",children:[t.avatar_body_image_url?(0,a.jsx)(g.d,{boxSize:"40px",bodyImageUrl:t.avatar_body_image_url,backgroundImageUrl:t.avatar_background_url,frameImageUrl:t.avatar_frame_image_url,titleImageUrl:t.avatar_title_image_url,flexShrink:0}):(0,a.jsx)(m,{size:"40px"}),(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.text",noOfLines:1,"data-sentry-element":"Text","data-sentry-source-file":"RankingEntryList.tsx",children:t.nickname})]}),(0,a.jsxs)(r.s,{align:"center",gap:"2px",flexShrink:0,"data-sentry-element":"Flex","data-sentry-source-file":"RankingEntryList.tsx",children:[(0,a.jsx)(l.E,{fontSize:"14px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"RankingEntryList.tsx",children:t.score.toLocaleStr
1ing()}),(0,a.jsx)(l.E,{fontSize:"10px",color:"gray.500","data-sentry-element":"Text","data-sentry-source-file":"RankingEntryList.tsx",children:"PT"})]})]})};var v=n(71630),S=n(99042),_=n(54530);let C=(0,v.w)({displayName:"ChevronUpIcon",viewBox:"0 0 24 24",path:(0,a.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",fill:"currentColor"})}),E=(0,v.w)({displayName:"ChevronDownIcon",viewBox:"0 0 24 24",path:(0,a.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",fill:"currentColor"})}),z={_focus:{boxShadow:"none",outline:"none"},_focusVisible:{outline:"2px solid",outlineColor:"ranking.active",outlineOffset:"2px"},sx:{WebkitTapHighlightColor:"transparent"}},T=e=>{e.currentTarget.blur()},I=e=>{let{entry:t,isMe:n,onEntryClick:i}=e;return(0,a.jsxs)(r.s,{as:"button",type:"button","aria-label":"".concat(t.nickname,"のプロフィールを開く"),alignItems:"center",w:"full",bg:n?"ranking.highlightBg":"white",borderWidth:"1px",borderStyle:"solid",borderColor:"ranking.border",borderRadius:"4px",h:"49px",px:2,cursor:"pointer",onClick:()=>null==i?void 0:i(t.profile_uuid),onPointerUp:T,...z,"data-sentry-element":"Flex","data-sentry-component":"ExpandRow","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[(0,a.jsx)(r.s,{align:"center",justify:"center",w:"39px",flexShrink:0,"data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:(0,a.jsx)(h,{rank:t.position,"data-sentry-element":"RankCrownIcon","data-sentry-source-file":"MyRankingExpandCard.tsx"})}),(0,a.jsxs)(r.s,{align:"center",flex:1,minW:0,gap:2,ml:1,"data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[t.avatar_body_image_url?(0,a.jsx)(g.d,{boxSize:"40px",bodyImageUrl:t.avatar_body_image_url,backgroundImageUrl:t.avatar_background_url,frameImageUrl:t.avatar_frame_image_url,titleImageUrl:t.avatar_title_image_url,flexShrink:0}):(0,a.jsx)(m,{size:"40px"}),(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.text",noOfLines:1,"data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:t.nickname})]}),(0,a.jsxs)(r.s,{align:"center",gap:"2px",flexShrink:0,"data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[(0,a.jsx)(l.E,{fontSize:"14px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:t.score.toLocaleString()}),(0,a.jsx)(l.E,{fontSize:"10px",color:"gray.500","data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:"PT"})]})]})},B=e=>{var t,n;let{myRanking:i,onEntryClick:s}=e;return(0,a.jsxs)(r.s,{as:"button",type:"button","aria-label":"".concat(null!=(t=i.nickname)?t:"自分","のプロフィールを開く"),alignItems:"center",w:"full",bg:"white",borderWidth:"1px",borderStyle:"solid",borderColor:"ranking.border",borderRadius:"4px",h:"49px",px:2,cursor:"pointer",onClick:()=>null==s?void 0:s(i.profile_uuid),onPointerUp:T,...z,"data-sentry-element":"Flex","data-sentry-component":"OutOfRangeRow","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[(0,a.jsx)(r.s,{align:"center",justify:"center",w:"39px",flexShrink:0,"data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:(0,a.jsx)(l.E,{fontSize:"10px",fontWeight:"bold",color:"gray.400","data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:"圏外"})}),(0,a.jsxs)(r.s,{align:"center",flex:1,minW:0,gap:2,ml:1,"data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[i.avatar_body_image_url?(0,a.jsx)(g.d,{boxSize:"40px",bodyImageUrl:i.avatar_body_image_url,backgroundImageUrl:i.avatar_background_url,frameImageUrl:i.avatar_frame_image_url,titleImageUrl:i.avatar_title_image_url,flexShrink:0}):(0,a.jsx)(m,{size:"40px"}),(0,a.jsx)(l.E,{fontSize:"12px",color:"gray.400",noOfLines:1,"data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:i.nickname})]}),(0,a.jsxs)(r.s,{align:"center",gap:"2px",flexShrink:0,"data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[(0,a.jsx)(l.E,{fontSize:"14px",fontWeight:"bold",color:"gray.400","data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:(null!=(n=i.score)?n:0).toLocaleStr
1ing()}),(0,a.jsx)(l.E,{fontSize:"10px",color:"gray.500","data-sentry-element":"Text","data-sentry-source-file":"MyRankingExpandCard.tsx",children:"PT"})]})]})},P=e=>{let{myRanking:t,onEntryClick:n}=e,[l,s]=(0,c.useState)(!1);if(!t)return null;let o=null===t.position,d=t.entries,x=d.find(e=>e.is_me),p=o||0===d.length?[]:1===t.position?d.filter(e=>2===e.position||3===e.position).sort((e,t)=>e.position-t.position):[d.find(e=>e.position===t.position-1),d.find(e=>e.position===t.position+1)].filter(e=>null!=e),u=p.length>0;return(0,a.jsx)(i.az,{position:"sticky",bottom:"".concat(_.E,"px"),bgGradient:"linear(transparent, white 35.9%)",pt:"18px",pb:"6px",zIndex:10,maxW:"4xl",mx:"auto",w:"100%","data-sentry-element":"Box","data-sentry-component":"MyRankingExpandCard","data-sentry-source-file":"MyRankingExpandCard.tsx",children:(0,a.jsxs)(r.s,{direction:"column",alignItems:"flex-end","data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[u&&(0,a.jsx)(i.az,{as:"button",bg:"ranking.border",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",px:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",onClick:()=>s(e=>!e),"aria-label":l?"閉じる":"展開する",children:l?(0,a.jsx)(E,{w:"20px",h:"20px"}):(0,a.jsx)(C,{w:"20px",h:"20px"})}),(0,a.jsxs)(r.s,{direction:"column",w:"full","data-sentry-element":"Flex","data-sentry-source-file":"MyRankingExpandCard.tsx",children:[u&&(0,a.jsx)(S.S,{in:l,children:(0,a.jsx)(r.s,{direction:"column",children:p.filter(e=>e.position<t.position).map(e=>(0,a.jsx)(I,{entry:e,onEntryClick:n},e.position))})}),o?(0,a.jsx)(B,{myRanking:t,onEntryClick:n}):x?(0,a.jsx)(I,{entry:x,isMe:l,onEntryClick:n}):null,u&&l&&(0,a.jsx)(r.s,{direction:"column",children:p.filter(e=>e.position>t.position).map(e=>(0,a.jsx)(I,{entry:e,onEntryClick:n},e.position))})]})]})})};var V=n(60913),M=n(14817),L=n(43045),W=n(64769),q=n(95979),A=n(49667),F=n(22860),U=n(36665),K=n(9310),O=n(12342),D=n(73698),Q=n(79890),G=n(55370),H=n(94795),N=n(70105),$=n(63393),X=n(26114),J=n(11702);let Z=e=>(0,a.jsx)(f._,{alt:"常設ランキング報酬バナー",src:"/permanent_ranking_rewards_image.svg",...e,"data-sentry-element":"Image","data-sentry-component":"PermanentRankingRewardsImage","data-sentry-source-file":"PermanentRankingRewardsImage.tsx"}),Y={day:"日次ランキング",week:"週次ランキング",month:"月次ランキング",all:"全期間ランキング"},ee=e=>{let{periodType:t}=e;return(0,a.jsx)(i.az,{bg:"ranking.highlightBg",borderRadius:"full",px:"16px",py:"4px",display:"inline-flex","data-sentry-element":"Box","data-sentry-component":"RankingPeriodBadge","data-sentry-source-file":"RankingPeriodBadge.tsx",children:(0,a.jsx)(l.E,{fontSize:"20px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"RankingPeriodBadge.tsx",children:Y[t]})})},et=e=>{let{reward:t}=e;return(0,a.jsxs)(p.T,{spacing:"16px",align:"center","data-sentry-element":"VStack","data-sentry-component":"RewardCardAvatar","data-sentry-source-file":"RewardCardAvatar.tsx",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center","data-sentry-element":"Text","data-sentry-source-file":"RewardCardAvatar.tsx",children:"アバターパーツ"}),(0,a.jsx)(i.az,{w:"80px",h:"80px",bg:"white",p:"8px",display:"flex",alignItems:"center",justifyContent:"center","data-sentry-element":"Box","data-sentry-source-file":"RewardCardAvatar.tsx",children:(0,a.jsx)(f._,{src:t.imageUrl,alt:t.name,objectFit:"cover","data-sentry-element":"Image","data-sentry-source-file":"RewardCardAvatar.tsx"})})]})},en=e=>{let{reward:t}=e;return(0,a.jsxs)(p.T,{spacing:"16px",align:"center","data-sentry-element":"VStack","data-sentry-component":"RewardCardCard","data-sentry-source-file":"RewardCardCard.tsx",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center","data-sentry-element":"Text","data-sentry-source-file":"RewardCardCard.tsx",children:"カード"}),(0,a.jsx)(f._,{src:t.imageUrl,alt:t.name,w:"103px",h:"144px",objectFit:"cover",overflow:"hidden","data-sentry-element":"Image","data-sentry-source-file":"RewardCardCard.tsx"})]})};var ea=n(12951);let er=e=>{let{reward:t,onNavigateAway:n}=e,r=(0,$.useRouter)(),s=t.category?(0,ea.ZL)(X.BV.gacha.detail,{id:t.packId.toString(),category:(0,ea.xQ)(t.category)}):"#";return(0,a.jsxs)(p.T,{spacing:"16px",align:"center",w:"100%","data-sentry-element":"VStack","data-sentry-component":"RewardCardGacha","data-sentry-source-file":"RewardCardGacha.tsx",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center","data-sentry-element":"Text","data-sentry-source-file":"RewardCardGacha.tsx",children:"限定ガチャ"}),(0,a.jsx)(i.az,{as:"a",cursor:"pointer",onClick:()=>{null==n||n(),r.push(s)},w:"100%",borderRadius:"6px",overflow:"hidden","data-sentry-element":"Box","data-sentry-source-file":"RewardCardGacha.tsx",children:(0,a.jsx)(f._,{src:t.imageUrl,srcSet:t.imageSrcSet,alt:t.title,w:"100%",sx:{aspectRatio:"343 / 227"},objectFit:"cover","data-sentry-element":"Image","data-sentry-source-file":"RewardCardGacha.tsx"})})]})};var ei=n(89943);let el=e=>{let{reward:t,isMobile:n}=e;return!1===n?(0,a.jsxs)(p.T,{spacing:"8px",align:"center",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center",children:"保有メダル"}),(0,a.jsxs)(r.s,{alignItems:"center",gap:"24px",justifyContent:"center",children:[(0,a.jsxs)(r.s,{alignItems:"center",gap:"5px",children:[(0,a.jsx)(ei.Q,{boxSize:"24px"}),(0,a.jsx)(l.E,{fontSize:"16px",fontWeight:"bold",color:"ranking.active",children:t.currentValue.toLocaleStr
1ing()})]}),(0,a.jsxs)(i.az,{bg:"ranking.active",color:"white",borderRadius:"full",px:"8px",py:"5px",fontSize:"12px",fontWeight:"bold",lineHeight:"1",children:["+",t.gainedValue.toLocaleString()]})]})]}):(0,a.jsxs)(p.T,{spacing:"16px",align:"center","data-sentry-element":"VStack","data-sentry-component":"RewardCardMedal","data-sentry-source-file":"RewardCardMedal.tsx",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center","data-sentry-element":"Text","data-sentry-source-file":"RewardCardMedal.tsx",children:"保有メダル"}),(0,a.jsxs)(r.s,{alignItems:"center",gap:"8px","data-sentry-element":"Flex","data-sentry-source-file":"RewardCardMedal.tsx",children:[(0,a.jsx)(ei.Q,{boxSize:"24px","data-sentry-element":"Medal","data-sentry-source-file":"RewardCardMedal.tsx"}),(0,a.jsx)(l.E,{fontSize:"24px",fontWeight:"bold",color:"ranking.active","data-sentry-element":"Text","data-sentry-source-file":"RewardCardMedal.tsx",children:t.currentValue.toLocaleString()})]}),(0,a.jsxs)(i.az,{bg:"ranking.active",color:"white",borderRadius:"full",px:"12px",py:"8px",fontSize:"12px",fontWeight:"bold",lineHeight:"1","data-sentry-element":"Box","data-sentry-source-file":"RewardCardMedal.tsx",children:["+",t.gainedValue.toLocaleString()]})]})};var es=n(42420);let eo=e=>{let{reward:t,isMobile:n}=e;return!1===n?(0,a.jsxs)(p.T,{spacing:"8px",align:"center",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center",children:"保有ポイント"}),(0,a.jsxs)(r.s,{alignItems:"center",gap:"24px",justifyContent:"center",children:[(0,a.jsxs)(r.s,{alignItems:"center",gap:"5px",children:[(0,a.jsx)(es.b,{boxSize:"24px"}),(0,a.jsx)(l.E,{fontSize:"16px",fontWeight:"bold",color:"ranking.active",children:t.currentValue.toLocaleString()})]}),(0,a.jsxs)(i.az,{bg:"ranking.active",color:"white",borderRadius:"full",px:"8px",py:"5px",fontSize:"12px",fontWeight:"bold",lineHeight:"1",children:["+",t.gainedValue.toLocaleString()]})]})]}):(0,a.jsxs)(p.T,{spacing:"16px",align:"center","data-sentry-element":"VStack","data-sentry-component":"RewardCardPoint","data-sentry-source-file":"RewardCardPoint.tsx",children:[(0,a.jsx)(l.E,{fontSize:"12px",color:"ranking.active",textAlign:"center","data-sentry-element":"Text","data-sentry-source-file":"RewardCardPoint.tsx",children:"保有ポイント"}),(0,a.jsxs)(r.s,{alignItems:"center",gap:"8px","data-sentry-element":"Flex","data-sentry-source-file":"RewardCardPoint.tsx",children:[(0,a.jsx)(es.b,{boxSize:"24px","data-sentry-element":"Point","data-sentry-source-file":"RewardCardPoint.tsx"}),(0,a.jsx)(l.E,{fontSize:"24px",fontWeight:"bold",color:"ranking.active","data-sentry-element":"Text","data-sentry-source-file":"RewardCardPoint.tsx",children:t.currentValue.toLocaleString()})]}),(0,a.jsxs)(i.az,{bg:"ranking.active",color:"white",borderRadius:"full",px:"12px",py:"8px",fontSize:"12px",fontWeight:"bold",lineHeight:"1","data-sentry-element":"Box","data-sentry-source-file":"RewardCardPoint.tsx",children:["+",t.gainedValue.toLocaleString()]})]})},ed=e=>{let{reward:t,isMobile:n,onNavigateAway:r}=e,l=!1===n;return(0,a.jsx)(i.az,{w:"full",bg:"ranking.highlightBg",borderRadius:l?"10px":"16px",px:l?"8px":"16px",py:l?"8px":"gacha"===t.type?"16px":"24px","data-sentry-element":"Box","data-sentry-component":"RewardCard","data-sentry-source-file":"RewardCard.tsx",children:(()=>{switch(t.type){case"point":return(0,a.jsx)(eo,{reward:t,isMobile:n});case"medal":return(0,a.jsx)(el,{reward:t,isMobile:n});case"avatar":return(0,a.jsx)(et,{reward:t});case"card":return(0,a.jsx)(en,{reward:t});case"gacha":return(0,a.jsx)(er,{reward:t,onNavigateAway:r})}})()})},ec=e=>{let{isOpen:t,onClose:n,onNavigateAway:s,periodType:o,rank:d,rewards:c}=e,x=(0,F.A)({base:!0,md:!1},{fallback:"base"}),u=c.some(e=>"card"===e.type),g=(0,$.useRouter)();return(0,a.jsxs)(U.aF,{isOpen:t,onClose:n,motionPreset:x?"slideInBottom":"scale",scrollBehavior:"inside",isCentered:!x,"data-sentry-element":"Modal","data-sentry-component":"RankingRewardPopup","data-sentry-source-file":"RankingRewardPopup.tsx",children:[(0,a.jsx)(K.m,{bg:"rgba(0,0,0,0.4)","data-sentry-element":"ModalOverlay","data-sentry-source-file":"RankingRewardPopup.tsx"}),(0,a.jsxs)(O.$,{position:x?"fixed":"relative",bottom:x?0:"auto",maxW:x?"100%":"442px",m:x?0:void 0,borderTopRadius:x?"32px":"12px",borderBottomRadius:x?0:"12px",overflow:"hidden",maxH:x?"90vh":void 0,pb:x?"env(safe-area-inset-bottom)":void 0,"data-sentry-element":"ModalContent","data-sentry-source-file":"RankingRewardPopup.tsx",children:[x&&(0,a.jsx)(D.r,{px:"16px",pt:"16px",pb:0,children:(0,a.jsx)(r.s,{justifyContent:"flex-end",children:(0,a.jsx)(Q.K,{"aria-label":"閉じる",icon:(0,a.jsx)(J.b,{}),variant:"ghost",size:"sm",onClick:n})})}),(0,a.jsx)(G.c,{px:x?"24px":"16px",pt:x?"0":"12px",pb:x?"24px":"0","data-sentry-element":"ModalBody","data-sentry-source-file":"RankingRewardPopup.tsx",children:(0,a.jsxs)(p.T,{spacing:"16px",align:"center","data-sentry-element":"VStack","data-sentry-source-file":"RankingRewardPopup.tsx",children:[(0,a.jsx)(ee,{periodType:o,"data-sentry-element":"RankingPerio
1dBadge","data-sentry-source-file":"RankingRewardPopup.tsx"}),(0,a.jsx)(Z,{w:"100%",maxW:x?"320px":"360px",h:"auto","data-sentry-element":"PermanentRankingRewardsImage","data-sentry-source-file":"RankingRewardPopup.tsx"}),(0,a.jsxs)(i.az,{textAlign:"center","data-sentry-element":"Box","data-sentry-source-file":"RankingRewardPopup.tsx",children:[(0,a.jsxs)(l.E,{as:"span",fontSize:"40px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"RankingRewardPopup.tsx",children:[d,"位"]}),(0,a.jsx)(l.E,{as:"span",fontSize:"20px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"RankingRewardPopup.tsx",children:"で"}),(0,a.jsx)("br",{}),(0,a.jsx)(l.E,{as:"span",fontSize:"20px",fontWeight:"bold","data-sentry-element":"Text","data-sentry-source-file":"RankingRewardPopup.tsx",children:"ランクインしました!"})]}),(0,a.jsx)(l.E,{fontSize:"16px",color:"rgba(0,0,0,0.6)","data-sentry-element":"Text","data-sentry-source-file":"RankingRewardPopup.tsx",children:"報酬が付与されました"}),u&&(0,a.jsxs)(l.E,{fontSize:"16px",color:"rgba(0,0,0,0.6)",children:["獲得したカードは「",(0,a.jsx)(l.E,{as:"a",onClick:()=>{s(),g.push(X.BV.products.acquired)},color:"#EA334F",textDecoration:"underline",cursor:"pointer",children:"獲得した商品一覧"}),"」にてご確認ください。"]}),(0,a.jsx)(p.T,{spacing:"8px",w:"100%",mb:"8px","data-sentry-element":"VStack","data-sentry-source-file":"RankingRewardPopup.tsx",children:c.map((e,t)=>(0,a.jsx)(ed,{reward:e,isMobile:x,onNavigateAway:s},t))})]})}),(0,a.jsx)(H.j,{px:x?"24px":"16px",pt:"0",pb:x?"24px":"12px","data-sentry-element":"ModalFooter","data-sentry-source-file":"RankingRewardPopup.tsx",children:(0,a.jsx)(N.$,{w:"100%",h:x?"48px":"36px",bg:"ranking.active",color:"white",borderRadius:x?"12px":"8px",fontSize:x?"16px":"14px",fontWeight:"bold",_hover:{opacity:.8},onClick:n,"data-sentry-element":"Button","data-sentry-source-file":"RankingRewardPopup.tsx",children:"閉じる"})})]})]})},ex={daily:"day",weekly:"week",monthly:"month",all_time:"all"},ep=()=>{var e,t;let[n,r]=(0,c.useState)(0),[i,l]=(0,c.useState)(!0),s=(0,V.useQueryClient)(),{data:o}=(0,M.uf)(),{data:d}=(0,W.p)(),{data:x}=(0,L.Sp)({status:"pending"}),{mutateAsync:p}=(0,L.EC)(),u=(0,c.useMemo)(()=>(null==x?void 0:x.status)!==200?[]:x.data.data,[x]),g=u[n],y=null==g?void 0:g.rewards.find(e=>"pack"===e.reward_type),m=null==y||null==(e=y.pack)?void 0:e.id,{data:f}=(0,q.RX)(null!=m?m:0,{query:{enabled:!!m}}),h=(0,c.useCallback)(e=>{let t={point:0,medal:1,card:2,gacha:3},n=[];for(let t of e.rewards){var a,r,i,l,s,c,x;switch(t.reward_type){case"point":t.point&&n.push({type:"point",currentValue:null!=(a=null==o?void 0:o.point)?a:0,gainedValue:t.point.amount});break;case"medal":if(t.medal){let e=(null==d?void 0:d.status)===200?d.data.medal:0;n.push({type:"medal",currentValue:e,gainedValue:t.medal.amount})}break;case"pack":if(t.pack){let e=(null==f?void 0:f.status)===200?f.data.data.attributes:void 0,a=null!=(i=null==e?void 0:e.category)?i:"";n.push({type:"gacha",packId:t.pack.id,imageUrl:null!=(l=null==e||null==(r=e.image)?void 0:r.url)?l:"",imageSrcSet:(0,A.z)(null==e?void 0:e.image),title:null!=(s=null==e?void 0:e.name)?s:"",oneTimePoint:null!=(c=null==e?void 0:e.one_time_point)?c:0,category:a})}break;case"card":t.card&&n.push({type:"card",imageUrl:null!=(x=t.card.image)?x:"",name:t.card.name})}}return n.sort((e,n)=>{var a,r;return(null!=(a=t[e.type])?a:99)-(null!=(r=t[n.type])?r:99)})},[null==o?void 0:o.point,d,f]),k=(0,c.useCallback)(async()=>{if(g){l(!1);try{await p({id:g.ranking_id})}catch(e){}s.invalidateQueries({queryKey:(0,L.QI)({status:"pending"})})}},[g,p,s]),b=(0,c.useCallback)(async()=>{if(g){try{await p({id:g.ranking_id})}catch(e){}n+1<u.length?r(e=>e+1):(l(!1),s.invalidateQueries({queryKey:(0,L.QI)({status:"pending"})}))}},[g,p,s,n,u.length]);if(!g||!i)return null;let j=null!=(t=ex[g.ranking_type])?t:"day",R=h(g);return 0===R.length?null:(0,a.jsx)(ec,{isOpen:!0,onClose:b,onNavigateAway:k,periodType:j,rank:g.position,rewards:R,"data-sentry-element":"RankingRewardPopup","data-sentry-component":"RankingRewardPopupManager","data-sentry-source-file":"RankingRewardPopupManager.tsx"})}},43045:(e,t,n)=>{n.d(t,{EC:()=>m,QI:()=>u,Sp:()=>g,ge:()=>x,x_:()=>s,y4:()=>d});var a=n(76812),r=n(51517),i=n(73950);let l=async(e,t)=>(0,i.A)((e=>{let t=new URLSearchParams;Object.entries(e||{}
1).forEach(e=>{let[n,a]=e;void 0!==a&&t.append(n,null===a?"null":a.toString())});let n=t.toString();return n.length>0?"/permanent_rankings?".concat(n):"/permanent_rankings"})(e),{...t,method:"GET"});function s(e,t){let n=((e,t)=>{var n;let a,{query:r,request:i}=null!=t?t:{};return{queryKey:null!=(n=null==r?void 0:r.queryKey)?n:["/permanent_rankings",...(a=e)?[a]:[]],queryFn:t=>{let{signal:n}=t;return l(e,{signal:n,...i})},...r}})(e,t),r=(0,a.useQuery)(n);return r.queryKey=n.queryKey,r}let o=async(e,t)=>(0,i.A)("/permanent_rankings/".concat(e),{...t,method:"GET"});function d(e,t){let n=((e,t)=>{var n;let{query:a,request:r}=null!=t?t:{};return{queryKey:null!=(n=null==a?void 0:a.queryKey)?n:["/permanent_rankings/".concat(e)],queryFn:t=>{let{signal:n}=t;return o(e,{signal:n,...r})},enabled:!!e,...a}})(e,t),r=(0,a.useQuery)(n);return r.queryKey=n.queryKey,r}let c=async(e,t)=>(0,i.A)("/me/permanent_rankings/".concat(e),{...t,method:"GET"});function x(e,t){let n=((e,t)=>{var n;let{query:a,request:r}=null!=t?t:{};return{queryKey:null!=(n=null==a?void 0:a.queryKey)?n:["/me/permanent_rankings/".concat(e)],queryFn:t=>{let{signal:n}=t;return c(e,{signal:n,...r})},enabled:!!e,...a}})(e,t),r=(0,a.useQuery)(n);return r.queryKey=n.queryKey,r}let p=async(e,t)=>(0,i.A)((e=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(e=>{let[n,a]=e;void 0!==a&&t.append(n,null===a?"null":a.toString())});let n=t.toString();return n.length>0?"/me/permanent_ranking_rewards?".concat(n):"/me/permanent_ranking_rewards"})(e),{...t,method:"GET"}),u=e=>["/me/permanent_ranking_rewards",...e?[e]:[]];function g(e,t){let n=((e,t)=>{var n;let{query:a,request:r}=null!=t?t:{};return{queryKey:null!=(n=null==a?void 0:a.queryKey)?n:u(e),queryFn:t=>{let{signal:n}=t;return p(e,{signal:n,...r})},...a}})(e,t),r=(0,a.useQuery)(n);return r.queryKey=n.queryKey,r}let y=async(e,t)=>(0,i.A)("/me/permanent_rankings/".concat(e,"/rewards/acknowledge"),{...t,method:"POST"}),m=e=>{let t=(e=>{let t=["acknowledgeMyPermanentRankingRewards"],{mutation:n,request:a}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t},request:void 0};return{mutationFn:e=>{let{id:t}=null!=e?e:{};return y(t,a)},...n}})(e);return(0,r.useMutation)(t)}},54530:(e,t,n)=>{n.d(t,{DR:()=>s,E:()=>r.E,U4:()=>i,a8:()=>o,hG:()=>l});var a=n(26114),r=n(17048);let i="main-layout-footer",l=24,s=e=>(0,r.pV)(e)||(0,r.fC)(e)||e===a.BV.prizeHistories||e===a.BV.permanentRankings||e===a.BV.mypage.main||e===a.BV.gacha.lives||e===a.BV.gacha.liveStation||e.startsWith("".concat(a.BV.gacha.liveStation,"/")),o=e=>{let{isDocked:t,footerHeight:n}=e;return t?{position:"absolute",bottom:"".concat(n,"px"),zIndex:1}:{position:"fixed",bottom:0,zIndex:1300}}}}]);
2//# sourceMappingURL=33302-09ea5f2cf66ccea0.js.map

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.