1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2648],{64816:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sengoku-second-sale",function(){return n(80374)}])},52113:function(e,t,n){"use strict";var a=n(7297),c=n(85893),s=n(90155),o=n(67294),l=n(56003);function i(){let e=(0,a.Z)(["\n position: relative;\n top: 1px;\n"]);return i=function(){return e},e}let r=(0,l.ZP)(s.rz)(i()),d=e=>{let{initTabSelected:t,children:n}=e,[a,s]=(0,o.useState)(null!=t?t:0),l=n[0].map((e,t)=>(0,o.cloneElement)(e,{className:a===t?"active":"",onClick:()=>s(t)})),i=n[1];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r,{$justify:"flex-start",$width:"100%",children:l.map((e,t)=>(0,c.jsx)(o.Fragment,{children:e},t))}),i.map((e,t)=>t===a&&(0,c.jsx)(o.Fragment,{children:e},t))]})};t.Z=d},50483:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var a=n(85893),c=n(86734),s=n.n(c),o=n(37739),l=n(87290);let i=e=>{let{title:t,text:n,color:c}=e,i=(0,o.C)(l.VT);return(0,a.jsxs)("div",{className:"".concat(s().contentsWrapper),children:[(0,a.jsx)("img",{src:"/json/sale/common/img/side_deco.png",alt:"",className:"".concat(s().decoImg," ").concat(s().left)}),(0,a.jsx)("img",{src:"/json/sale/common/img/side_deco.png",alt:"",className:"".concat(s().decoImg," ").concat(s().right)}),(0,a.jsx)("h2",{className:"bold font-24 ".concat(s().ttl),style:{color:c},children:t}),(0,a.jsx)("ul",{className:"".concat(s().noteList),children:n&&Array.isArray(n)&&n.map((e,t)=>(0,a.jsx)("li",{className:"bold text-left font-14 ".concat(i),"data-content":"ã»",children:e},t))})]})}},82866:function(e,t,n){"use strict";n.d(t,{d:function(){return m}});var a=n(85893),c=n(49331),s=n.n(c),o=n(37739),l=n(87290),i=n(90155),r=n(69478),d=n(37039);let m=e=>{let{id:t,ttl:n,txt:c,bgColor:m}=e,{t:p}=(0,d.$G)(),h=(0,o.C)(l.VT),u=(e,t)=>{e.preventDefault();let n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})};return(0,a.jsx)("div",{className:"".concat(s().pickUp),style:{background:m},children:(0,a.jsxs)(i.rz,{$column:!0,$align:"center",$justify:"center",$gap:"8px",children:[(0,a.jsxs)(i.rz,{$align:"center",$justify:"center",$gap:"8px",children:[(0,a.jsx)("span",{className:"".concat(s().ttlDeco," ").concat(s().left)}),(0,a.jsx)("h2",{className:"yellow bold ".concat(s().title," ").concat(h),children:p(n)}),(0,a.jsx)("span",{className:"".concat(s().ttlDeco," ").concat(s().right)})]}),c&&(0,a.jsx)("p",{className:"bold ".concat(h),dangerouslySetInnerHTML:{__html:p(c)}}),t&&(0,a.jsx)(r.f,{text:p("sale.pickUp.toDetail"),isActiveSale:!0,onClick:e=>u(e,t)})]})})}},68565:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var a=n(85893),c=n(86740),s=n.n(c);n(67294);var o=n(37039),l=n(37739),i=n(87290);let r=e=>{let{name:t,imgPath:n,type:c,bgColor:r,caution:d,imgHeight:m,imgStyle:p}=e,{t:h}=(0,o.$G)(),u=(0,l.C)(i.VT);return(0,a.jsxs)("li",{className:"".concat(s().contentsWrapper),style:{background:r},children:[(0,a.jsx)("img",{className:"".concat(s().mainImg),src:n,alt:"CharacterItem ".concat(n),style:{height:m,...p}}),(0,a.jsx)("div",{className:"".concat(s().nameArea),children:(0,a.jsxs)("p",{className:"bold font-16 ocher ".concat(u),children:[h(t),(0,a.jsx)("br",{}),c,d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"font-12 red",children:h(d)})]})]})})]})};t.Z=r},90295:function(e,t,n){"use strict";var a=n(85893),c=n(69240),s=n.n(c);n(67294);var o=n(37039),l=n(37739),i=n(87290),r=n(69478);let d=e=>{let{data:t,name:n,isSale:c,bgColor:d,onClick:m}=e,{t:p}=(0,o.$G)(),h=(0,l.C)(i.VT);return(0,a.jsxs)("li",{className:"".concat(s().contentsWrapper),style:{background:d},children:[(0,a.jsx)("img",{className:"".concat(s().mainImg),src:t.imgPath,alt:"æ¦å¨ç»å"}),(0,a.jsx)("div",{className:"".concat(s().nameArea),children:(0,a.jsxs)("p",{className:"bold size-m ocher ".concat(h),children:[n,(0,a.jsx)("br",{}),"ï¼",t.type,"ï¼"]})}),(0,a.jsx)(r.f,{text:p("sale.btn.".concat(c?"toDetail":"presale")),isActiveSale:c,onClick:m})]})};t.Z=d},63930:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(44257);let c={C0001:{ja:"ã·ã¹ãã å
ã§ã¨ã©ã¼(C0001)ãçºçãã¦ããã¾ãã詳ããã¯ãµãã¼ãã»ã³ã¿ã¼ã¾ã§ãåãåãããã ããã",en:"An error (C0001) has occurred in the system. Please contact our support center for more information."},C0301:{ja:"ãC0301ãã¦ã¼ã¶ã¼ãã¼ã¿ãããã¾ããã",en:"ãC0301ãUser dose not exist"}
1,C0315:{ja:"ãC0315ããã±ããææ°ãè¶³ãã¾ããã",en:"ãC0315ãDo not have enough tickets."},C0317:{ja:"ãC0317ãè³¼å
¥ã«å¤±æãã¾ããã",en:"ãC0317ãPurchase failed."},C0511:{ja:"ãC0511ã1æ¥ã®è³¼å
¥åæ°ä¸éã«éãã¾ããã",en:"ãC0511ãYou have reached the daily purchase limit."},S0001:{ja:"ãS0001ãã»ã¼ã«æéå¤ã§ãã",en:"ãS0001ãOut of sale period."},S0002:{ja:"ãS0002ãç¾å¨ã®ã¹ãããæ
å ±ãæ£ããããã¾ãããææ°åãã¿ã³ãæ¼ãã¦ãã ããã",en:"ãS0002ãPurchase failed."},S0003:{ja:"ãS0003ã1æ¥ã®ã¬ãã£ã®å®è¡ä¸éåæ°ã«éãã¾ããã",en:"ãS0003ãYou have reached the execution limit."},S0004:{ja:"ãS0004ãå¨åº«æ°ãããã¾ããã",en:"ãS0004ãThere is no inventory."},S0005:{ja:"ãS0005ãè³¼å
¥ã«å¤±æãã¾ããã",en:"ãS0005ãPurchase failed."},S0006:{ja:"ãS0006ãè³¼å
¥ã«å¤±æãã¾ããã",en:"ãS0006ãPurchase failed."},C0510:{ja:"ãC0510ãã¢ã¤ãã ã®äº¤æä¸éã«éãã¾ããã",en:"ãC0510ãItem exchange limit reached."},DEFAULT:{ja:"è³¼å
¥ã«å¤±æãã¾ãããæéãç½®ãã¦å度購å
¥ãã¦ãã ããã",en:"Purchase failed. Please try purchasing again after some time."},ACCOUNT_NO_LINKED:{ja:"ã²ã¼ã ãéããã¢ã«ã¦ã³ã飿ºãè¡ã£ã¦ãã ããã",en:"Open the game and link your accounts."}},s=(e,t)=>{var n,s;let o={type:"error",show:!0,message:null!==(s=null===(n=c[e])||void 0===n?void 0:n[null!=t?t:"ja"])&&void 0!==s?s:c[a.jK.Default][null!=t?t:"ja"]};return o}},80374:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tF}});var a=n(85893),c=n(39409),s=n(67294),o=n(37739),l=n(87290),i=n(33793),r=n(42605),d=n(30819),m=n(29473),p=n(68990),h=n(88718),u=n.n(h),g=n(50834),x=n.n(g);let _=e=>{let{sectionData:t}=e;return t?(0,a.jsx)("section",{className:"fv",children:(0,a.jsx)("div",{className:"".concat(x().fv),children:t.map(e=>(0,a.jsx)("img",{className:e.type,src:e.mediaPath,alt:""},e.type))})}):null};var j=n(2285),f=n.n(j),b=n(37039),y=n(44257);let v="sengokuSecond",k="sengokuSecondSale",N="/json/sale/sengoku-second-sale/img",C="SENGOKU",$={col:["g2","g3","g4","g5"],row:"remain.row"},I={bg:"linear-gradient(\n 45deg,\n #000000 0%,\n #808080 33%,\n #808080 66%,\n #000000 100%\n )",font:"#000000"},S={1:{abbr:"C",rarity:"common"},2:{abbr:"UC",rarity:"uncommon"},3:{abbr:"R",rarity:"rare"},4:{abbr:"E",rarity:"epic"},5:{abbr:"L",rarity:"legendary"}},w=["keiji","magoichi","nobunaga"],T=[{id:"00110065",name:"weapon.lineUp.0.name.4",imgPath:"/json/common/nft/weapon/gunslinger/wk_00110065.png",type:"GUNSLINGER WEAPON",effect:"weapon.lineUp.0.effect"},{id:"00112065",name:"weapon.lineUp.1.name.4",imgPath:"/json/common/nft/weapon/darkknight/wk_00112065.png",type:"DARK KNIGHT WEAPON",effect:"weapon.lineUp.1.effect"}],A={nobunaga:["".concat(N,"/profile_bg_1.png"),"".concat(N,"/profile_icon_silver_1.png"),"".concat(N,"/profile_icon_gold_1.png")],magoichi:["".concat(N,"/profile_bg_2.png"),"".concat(N,"/profile_icon_silver_2.png"),"".concat(N,"/profile_icon_gold_2.png")],keiji:["".concat(N,"/profile_bg_3.png"),"".concat(N,"/profile_icon_silver_3.png"),"".concat(N,"/profile_icon_gold_3.png")]},P={firstViewSection:[{type:"pc",mediaPath:"".concat(N,"/kv_pc.jpg")},{type:"sp",mediaPath:"".concat(N,"/kv_sp.jpg")}],overViewSection:{term:"".concat(k,".overview.term"),title:"".concat(k,".overview.ttl")},specialFeatureSection:{title:"".concat(k,".feature.ttl"),items:[{id:"dx",title:"".concat(k,".feature.element.0.title"),summary:"".concat(k,".feature.element.0.summary")},{id:"character",title:"".concat(k,".feature.element.1.title"),summary:"".concat(k,".feature.element.1.summary")},{title:"".concat(k,".feature.element.2.title"),summary:"".concat(k,".feature.element.2.summary")}]},characterSection:{title:"".concat(k,".character.ttl"),text:"".concat(k,".character.txt"),caution:"".concat(k,".character.caution"),buttonText:"".concat(k,".character.toDetail"),swiperData:[{name:"".concat(k,".character.name.0"),imgPath:"".concat(N,"/breaker_keiji.png"),type:"BREAKER"},{name:"".concat(k,".character.name.1"),imgPath:"".concat(N,"/gunslinger_magoichi.png"),type:"GUNSLINGER"},{name:"".concat(k,".character.name.2"),imgPath:"".concat(N,"/darkknight_nobunaga.png"),type:"DARK KNIGHT"},{name:"".concat(k,".character.name.3"),imgPath:"".concat(N,"/druid_oichi.png"),type:"DRUID"},{name:"".concat(k,".character.name.4"),imgPath:"".concat(N,"/breaker_keiji_nft.png"),type:"BREAKER"},{name:"".concat(k,".character.name.5"),imgPath:"".concat(N,"/gunslinger_magoichi_nft.png"),type:"GUNSLINGER"},{name:"".concat(k,".character.name.6"),imgPath:"".concat(N,"/darkknight_nobunaga_nft.png"),type:"DARK KNIGHT"},{name:"".concat(k,".character.name.7"),imgPath:"".concat(N,"/druid_oichi_nft.png"),type:"DRUID"}],modalData:{title:"".concat(k,".character.skilltxt"),skill:{special:[{name:"".concat(k,".character.skill.special.0.name"),cost:100,effect:"".concat(k,".character.skill.special.0.effect"),imgPath:"/json/common/icon/skill-card/ninja/00105851.png"}]}}}};y.I6.Xeno,y.UH.Xeno,y.UH.G1,y.UH.G2,y.UH.G3,y.UH.G4,y.UH.G5,y.UH.SpecialCollaboration,y.UH.UsuallyCollaboration,y.I6.Weapon,y.bH.C
1ommon,y.bH.UnCommon,y.bH.Rare,y.bH.Epic,y.bH.Legendary,y.I6.Charm,y.bH.Common,y.bH.UnCommon,y.bH.Rare,y.bH.Epic,y.bH.Legendary,y.I6.Item;var E=n(9295),G=n(61263);let R=()=>{let{t:e}=(0,b.$G)(),t=e("".concat(k,".faq.q&a"));return(0,a.jsx)("section",{id:"faq",children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:e("".concat(k,".faq.ttl"))}),(0,a.jsx)("div",{className:f().container,children:t.map((e,t)=>(0,a.jsx)(G.Q,{title:e.q,answer:e.a,color:I.font},t))})]})})};var D=n(50483);let H=()=>{let{t:e}=(0,b.$G)();return(0,a.jsx)("section",{children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(D.R,{title:e("".concat(k,".notes.ttl")),text:e("".concat(k,".notes.txt")),color:I.font}),(0,a.jsx)(D.R,{title:e("".concat(k,".disclaimer.ttl")),text:e("".concat(k,".disclaimer.txt")),color:I.font})]})})};var F=n(14574),V=n.n(F),W=n(90155);let z=()=>{let{t:e}=(0,b.$G)(),t=(0,o.C)(l.VT);return(0,a.jsx)("section",{children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:e("".concat(k,".store.ttl"))}),(0,a.jsx)("p",{className:"bold ".concat(t),dangerouslySetInnerHTML:{__html:e("".concat(k,".store.txt.0"))}}),(0,a.jsx)("p",{className:"bold ".concat(t),dangerouslySetInnerHTML:{__html:e("".concat(k,".store.txt.1"))}}),(0,a.jsxs)(W.rz,{$align:"center",$justify:"center",$flexWrap:"wrap",$gap:"8px",$mobileDirection:"column",children:[(0,a.jsx)("a",{href:"https://app.adjust.com/108jozwz",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("img",{className:"".concat(V().btnImg),src:"/json/sale/common/img/appstore-".concat(t,".png"),alt:""})}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://play.google.com/store/apps/details?id=com.epochstudio.xeno".concat("ja"===t?"":"&hl=en&gl=us"),children:(0,a.jsx)("img",{className:"".concat(V().btnImg),src:"/json/sale/common/img/googleplay-".concat(t,".png"),alt:""})}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://tapfun.co.jp/p/xeno/play",children:(0,a.jsx)("img",{className:"".concat(V().btnImg),src:"/json/sale/common/img/tapfun.png",alt:""})})]})]})})};var O=n(57819),L=n.n(O);let U=()=>{let{t:e}=(0,b.$G)(),t=(0,o.C)(l.VT);return(0,a.jsx)("section",{children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:e("".concat(k,".sns.ttl"))}),(0,a.jsx)("p",{className:"bold ".concat(t),dangerouslySetInnerHTML:{__html:e("".concat(k,".sns.txt"))}}),(0,a.jsxs)(W.rz,{$align:"center",$justify:"center",$gap:"8px",$mobileDirection:"column",children:[(0,a.jsx)("a",{href:"https://twitter.com/PROJECTXENO_".concat("ja"==t?"JP":"GLB"),target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("img",{className:"".concat(L().btnImg),src:"/json/sale/common/img/x_link_btn.png",alt:""})}),(0,a.jsx)("a",{href:"https://discord.com/invite/G4bk9nhJpG",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("img",{className:"".concat(L().btnImg),src:"/json/sale/common/img/discord_link_btn.png",alt:""})})]})]})})};var Z=n(8344),M=n.n(Z),q=n(9524);let B=()=>{let e=(0,o.C)(l.VT);return(0,a.jsxs)("div",{className:"".concat(M().footer),children:[(0,a.jsx)("div",{className:"".concat(M().row),children:(0,a.jsx)("img",{className:"".concat(M().logo),src:"/json/sale/common/img/xeno_logo.png"})}),(0,a.jsxs)("div",{className:"".concat(M().row),children:[(0,a.jsx)("a",{className:"white",href:(0,q.E)(e),target:"_blank",rel:"noreferrer",children:"Terms of Use"}),(0,a.jsx)("a",{className:"white",href:"https://project-xeno.com/file/disclaimer/PROJECT_XENO_MARKETPLACE_%E5%85%8D%E8%B2%AC%E4%BA%8B%E9%A0%85.pdf",target:"_blank",rel:"noreferrer",children:"Disclaimer"}),(0,a.jsx)("a",{className:"white",href:"https://project-xeno.com/file/privacy_policy/PROJECT_XENO_MARKETPLACE_%E3%83%97%E3%83%A9%E3%82%A4%E3%83%90%E3%82%B7%E3%83%BC%E3%83%9D%E3%83%AA%E3%82%B7%E3%83%BC.pdf",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]}),(0,a.jsx)("div",{className:"".concat(M().row),children:(0,a.jsx)("p",{className:"font-14",children:"\xa92022 PROJECT XENO. ALL Rights Reserved."})})]})};var K=n(82866);let J=e=>{let{sectionData:t}=e,{t:n}=(0,b.$G)(),{title:c,items:s}=t;return t?(0,a.jsx)("section",{children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:n(c)}),(0,a.jsx)(W.rz,{$column:!0,$align:"center",$justify:"center",$gap:"16px",$width:"100%",children:s.map((e,t)=>(0,a.jsx)(K.d,{id:e.id,ttl:e.title,txt:e.summary,bgColor:I.bg},t))})]})}):null};
1var X=n(68565),Y=n(69853),Q=n.n(Y),ee=n(22546),et=n(50067);et.ZP.use([et.W_,et.tl,et.LW,et.s5,et.xW]);let en=e=>{let{id:t,children:n,loop:c=!0,slidesPerView:o=1}=e;return(0,a.jsxs)("div",{className:"".concat(Q().swiperArea),children:[(0,a.jsx)("div",{className:"".concat(Q().btnWrap," ").concat(Q().left),children:(0,a.jsx)("button",{className:"".concat(Q().btn," ").concat(Q().left),id:"arrow-left-".concat(t)})}),(0,a.jsx)(ee.tq,{loop:c,slidesPerView:o,navigation:{nextEl:"#arrow-right-".concat(t),prevEl:"#arrow-left-".concat(t)},children:s.Children.map(n,(e,n)=>(0,a.jsx)(ee.o5,{children:e},"".concat(t,"-").concat(n)))}),(0,a.jsx)("div",{className:"".concat(Q().btnWrap," ").concat(Q().right),children:(0,a.jsx)("button",{className:"".concat(Q().btn," ").concat(Q().right),id:"arrow-right-".concat(t)})})]})},ea=e=>{let{sectionData:t}=e,{t:n}=(0,b.$G)(),c=(0,o.C)(l.VT),{title:s,text:i,caution:r,swiperData:d}=t;return t?(0,a.jsx)("section",{id:"character",children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:n(s)}),(0,a.jsx)("p",{className:"bold ".concat(c),dangerouslySetInnerHTML:{__html:n(i)}}),(0,a.jsxs)(W.rz,{$column:!0,$gap:"16px",children:[d&&(0,a.jsx)(en,{id:"characterSwiper-".concat(v),children:d.map(e=>(0,a.jsx)(X.Z,{name:n(e.name),imgPath:e.imgPath,type:e.type,bgColor:I.bg},e.name))}),(0,a.jsx)("p",{className:"font-10 bold",dangerouslySetInnerHTML:{__html:n(r)}})]})]})}):null};var ec=n(26244),es=n.n(ec),eo=n(83253),el=n.n(eo),ei=n(88772),er=n(29204),ed=n(31397),em=n(27589),ep=n(66767),eh=n(40482),eu=n(70794),eg=n(7643),ex=n(87506),e_=n(9811),ej=n(46885),ef=n(3465),eb=n(29769),ey=n(96665),ev=n(65656),ek=n(33803);let eN=e=>{var t;let{nft:n,againDirected:c}=e,s=(0,o.C)(ev.Nt);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"back ".concat(n.isFront&&"flipped"),src:c||7==n.nftTypeId?ek.DT[n.nftTypeId][n.rarity].dummy:n.rarity===y.UH.UsuallyCollaboration?ek.DT[n.nftTypeId][n.rarity].real[s]:null===(t=ek.DT[n.nftTypeId][n.rarity])||void 0===t?void 0:t.real,alt:""}),(0,a.jsx)("img",{className:"front ".concat(n.isFront&&"flipped"),src:(null==n?void 0:n.localImageUri2)+"?random=".concat(Math.random()),alt:n.name||"NFT Image"}),7===n.nftTypeId&&(0,a.jsxs)("p",{className:"game-item",children:["\xd7 ",n.remark]}),1===n.nftTypeId&&0!==n.rarityClass&&(0,a.jsxs)("p",{className:"game-item",children:["GENESIS ",6===n.rarityClass?"S":n.rarityClass]})]})},eC=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"eff_a",alt:"Effect A",src:"/img/nft-box/eff_a_arai.png"}),(0,a.jsx)("img",{className:"eff_b",alt:"Effect B",src:"/img/nft-box/eff_b_arai.png"}),(0,a.jsx)("img",{className:"eff_c",alt:"Effect C",src:"/img/nft-box/eff_c_arai.png"})]});var e$=n(85518);let eI=e=>{let{isRasing:t,isMuted:n,onEnded:c}=e,[o,l]=(0,s.useState)(!1),i=(0,s.useRef)(null),r=()=>{let e=e$.tq?"SP":"PC";return{mp4:"/json/sale/common/video/".concat(e,"_nftbox_surprise_00000007.mp4"),webm:"/json/sale/common/video/".concat(e,"_nftbox_surprise_00000007.webm")}};return(0,a.jsx)(a.Fragment,{children:t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bg_black ".concat(o&&"hide")}),(0,a.jsxs)("video",{className:"card-animation ".concat(o&&"hide"),ref:i,muted:n,autoPlay:!0,playsInline:!0,onEnded(){l(!0),setTimeout(()=>{c()},1e3)},children:[(0,a.jsx)("source",{src:r().mp4,type:"video/mp4"}),(0,a.jsx)("source",{src:r().webm,type:"video/webm"})]})]})})},eS=e=>{let{nfts:t,onEnded:n}=e,c=(0,s.useRef)(),[o,l]=(0,s.useState)(!1),[i,r]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1),[p,h]=(0,s.use
1State)(!1),[u,g]=(0,s.useState)(!1),x=[5,11,12,13,14,15,20],_=[4,21],j=t||[];(0,s.useEffect)(()=>{let e=j.some(e=>x.includes(e.rarity)),t=j.some(e=>1===e.rarity&&1===e.nftTypeId||_.includes(e.rarity));e&&!(.33>Math.random())?l(!0):t&&!(.75>Math.random())?r(!0):m(!0)},[]);let f=()=>{let e=2e3;g(!0),d&&(e=300),setTimeout(()=>{h(!0)},e)};return(0,a.jsxs)(a.Fragment,{children:[u&&(o||i)&&(0,a.jsx)("div",{className:"after-box-Wrap",children:(0,a.jsx)("img",{className:"after-box",alt:"NFT BOX",src:"/json/sale/common/img/nftbox_".concat(o?"rainbow":i?"gold":"",".png")})}),p&&(0,a.jsx)("video",{className:"light-video",autoPlay:!0,muted:!0,playsInline:!0,onEnded(){n(o||i),h(!1)},ref:c,src:o?"/json/sale/common/video/light_rainbow.mp4":i?"/json/sale/common/video/light_gold.mp4":"/json/sale/common/video/light_normal.mp4"}),(0,a.jsxs)("div",{className:"openning",children:[(0,a.jsx)("img",{src:"/json/sale/common/img/open.png",className:"open ".concat(u&&"hide"),alt:""}),(0,a.jsx)("img",{src:"/json/sale/common/img/nftbox_normal.png",alt:"",className:"before-box ".concat(u&&!d&&"fadeout"),onClick:f})]})]})},ew=e=>{let{nftSalePackageId:t,nfts:n,onClick:c,onClose:l}=e,i=(0,o.T)(),{t:r}
1=(0,b.$G)(),[d,m]=(0,s.useState)(n),[p,h]=(0,s.useState)(!1),[u,g]=(0,s.useState)(!1),[x,_]=(0,s.useState)(!1),[j,f]=(0,s.useState)(!1),y=e=>[5,11].includes(e)?"first-effect":[4,12,13,14,15,20].includes(e)?"second-effect":"",v=()=>{let e=d.map(e=>({...e,isFront:!0}));m(e)};(0,s.useEffect)(()=>{u&&(x?j&&(_(!1),setTimeout(v,1e3)):v())},[u,j]),(0,s.useEffect)(()=>{n.some(e=>{let t=Math.random();return 12===e.rarity&&t<.15||13===e.rarity&&t<.25||14===e.rarity&&t<.2}),_(!1)},[n]);let C=()=>!1,$=e=>!C()||C()&&n.length!==e+1;return(0,a.jsx)("div",{className:"gacha-direction",style:{backgroundImage:"url(".concat((()=>{let e=window.innerWidth<=767;return e?"".concat(N,"/bg_gacha_sp.jpg"):"".concat(N,"/bg_gacha_pc.jpg")})(),")")},children:(0,a.jsxs)("div",{className:"contents",children:[(0,a.jsx)("div",{className:"img-wrap",children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eC,{}),(0,a.jsx)(eI,{isRasing:u&&x,isMuted:!0,onEnded:()=>f(!0)}),(0,a.jsx)("div",{className:"item-list",children:d.map((e,t)=>{if(!$(t))return null;let n=1===d.length,c=e.isFront?y(e.rarity):"",s="nft-img ".concat(n?"only":""," ").concat(c);return(0,a.jsx)("div",{className:s,children:(0,a.jsx)(eN,{nft:e,againDirected:x})},t)})}),!u&&(0,a.jsx)("button",{type:"button",className:"result-btn",onClick:()=>g(!0),children:r("".concat(k,".gacha.btn.tap"))})]}):(0,a.jsx)(eS,{nfts:n,onEnded:()=>h(!0)})}),p&&u&&!x&&(0,a.jsxs)("div",{className:"btn-area",children:[(0,a.jsx)("button",{className:"btn negative ".concat(1===n.length?"only":""),onClick(){i((0,ed.qr)(!1)),l()},children:r("".concat(k,".gacha.btn.back"))}),(0,a.jsx)("button",{className:"btn ".concat(1===n.length?"only":""),onClick(){i((0,ed.qr)(!1)),c()},children:r("".concat(k,".gacha.btn.again"))})]})]})})};var eT=n(71655),eA=n(85489),eP=n(63930);function eE(e){let{initValue:t,nftSalePackageId:n,sellingPrice:c,type:i,tokenId:r,groupId:p,basePrice:h,onClose:u,onSuccess:g}=e,[x,_]=(0,s.useState)(t),j=(0,o.T)(),{t:f}=(0,b.$G)(),v=(0,o.C)(d.i0),{data:k}=(0,o.C)(ep.Jo),{data:N}=(0,o.C)(eg.sm),C=(0,o.C)(l.VT),$=(0,o.C)(eg.D2),{validateOwnerWalletAddress:I,connectMetamask:S,connectWalletConnect:w}=(0,ex.Z)(),[T,A]=(0,s.useState)(!1),[P,E]=(0,s.useState)(),[G,R]=(0,s.use
1State)(!1),[D,H]=(0,s.useState)(),[F,V]=(0,s.useState)({}),W=()=>{var e,t;let n=(null===(e=null===(t=v.data)||void 0===t?void 0:t.find(e=>e.id===r))||void 0===e?void 0:e.totalAmount)||0;return(0,eu.Z)(c).minus(n).toNumber()},{data:z}=(0,o.C)(m.HF),O=(0,o.C)(ev.G3),[L,U]=(0,s.useState)(!1),Z=(0,o.C)(ev.pQ),M=async()=>{j((0,ed.ps)(!0)),await j((0,d.lz)()),await j((0,ep.Aw)()),j((0,ed.qr)(!0)),j((0,ed.ps)(!1))},q=()=>{_(!1),H(void 0),R(!1),j((0,ed.qr)(!1))},B=()=>{if(!(W()>0)){if((null==z?void 0:z.gameUserId)==null){U(!1),j((0,ey.nL)()),j((0,ed.hr)((0,eP.Z)(y.jK.AccountNoLinked,C)));return}j((0,ev.qc)({nftSalePackageId:n,price:c,error(e){if(u(),U(!1),j((0,ey.nL)()),e instanceof er.d7){var t,n,a,c;if(!(null===(t=e.response)||void 0===t?void 0:t.data.errors.length)&&((null===(n=e.response)||void 0===n?void 0:n.status)===400||(null===(a=e.response)||void 0===a?void 0:a.status)===500)){j((0,ed.hr)({type:"error",show:!0,message:"en"===C?"Purchase failed.":"è³¼å
¥ã«å¤±æãã¾ããã"}));return}null===(c=e.response)||void 0===c||c.data.errors.map(e=>{j((0,ed.hr)((0,eP.Z)(e.error_code,C)))})}else j((0,ed.hr)({type:"error",show:!0,message:e.message}))},success(){g(),U(!0)},beforeCall(){j((0,ed.ps)(!0))},endCall(){j((0,ed.ps)(!1))}}))}},K=()=>{A(!1),H(void 0),R(!0)},J=()=>{j((0,ed.hr)({type:"success",show:!0,message:f("depositToken.sendSuccess")}))},X=e=>{R(!1),console.log("transactionError: ",e),j((0,ed.hr)({type:"error",show:!0,message:e}))},Y=e=>{var t,n;return(null===(t=null==k?void 0:null===(n=k.companyWallets)||void 0===n?void 0:n.find(t=>eh.z1[e]===t.division))||void 0===t?void 0:t.walletAddress)||""},Q=async(e,t,n)=>{A(!0),R(!0);let a=n.network;if($&&a){if(0>=Number(e)){j((0,ed.hr)({type:"error",show:!0,message:f("depositToken.minAmount")})),A(!1);return}try{if(!t)return;await (0,e_.Be)({contractAddress:t.address,chainId:a.chainId,from:String(null==N?void 0:N.address),to:String(Y(t.code)),value:e,unit:t.code},$,{transactionHash(e){e&&(K(),J())},receipt(e){e.blockHash},error(e){console.log("error: ",e);let t=e.code?f("errors."+e.code):e.message;t="errors."+e.code===t?e.message:t,X(t)}})}catch(c){q(),console.log(c)}}},ee=async e=>{A(!0);let t=null==P?void 0:P.network;"metamask"===e?await S(null==t?void 0:t.chainId,e=>{A(!1),H(void 0)}):await w(null==t?void 0:t.chainId,e=>{A(!1),H(void 0)})},et=async e=>{var t;A(!0),E(e);let{network:n}=e;if(!await I("TOKEN_PURCHASE",q)){A(!1);return}if(!$){A(!1),H("CONNECT_WALLET");return}await (0,ej.P)($,null==n?void 0:n.chainId,e=>{e?H("CONNECT_WALLET"):H(void 0),A(!1)});let a=null===(t=e.network)||void 0===t?void 0:t.token;if(!a||(null==a?void 0:a.length)<0){A(!1);return}let c=a[0];Q(W(),c,e),A(!1)};return(0,s.useEffect)(()=>{H(void 0),R(!1)},[]),(0,s.useEffect)(()=>{_(t)},[t]),(0,a.jsxs)(el(),{parentSelector:()=>document.querySelector("#modals"),id:"modal",portalClassName:D&&"CREDIT"===D?"":"add-point-confirm sm_modal",isOpen:x,onAfterClose:u,onAfterOpen:M,onRequestClose:q,contentLabel:"Confirm Modal",style:ei.i,className:"point-buy container-center-horizontal status-open ".concat(D&&"CREDIT"===D&&"align_center"),children:[T&&(0,a.jsx)(eb.Z,{}),!T&&(0,a.jsxs)("div",{className:"modal",children:[!D&&W()>0&&(0,a.jsx)(eT.Z,{initValue:{sellingPrice:c,tokenId:r},onPurchase(e){"CREDIT"===e.method?H("CREDIT"):et(e)},disableSubmit:G,onSubmit(e){V(e),"CRYPTO"===e.method&&q()},onClose:q}),D&&"CONNECT_WALLET"===D&&(0,a.jsx)(ef.Z,{initValue:!1,onClose(){q()},onSubmit:ee}),!D&&0>=W()&&(0,a.jsx)(eA.Z,{initValue:{sellingPrice:c},type:i,basePrice:h,tokenId:r,packName:Z,onSubmit:B,onClose:u}),D&&"CREDIT"===D&&(0,a.jsx)(em.Z,{initValue:F,onClose(e){H(void 0),"quit"!==e&&j((0,d.lz)()),q()},onSubmit(){}}),L&&(0,a.jsx)(ew,{nftSalePackageId:n,nfts:O.data,async onClick(){U(!1),j((0,ey.nL)()),j((0,ed.ps)(!0)),await j((0,d.lz)()),j((0,ed.ps)(!1))},async onClose(){U(!1),j((0,ey.nL)()),u(),j((0,ed.ps)(!0)),await j((0,d.lz)()),j((0,ed.ps)(!1))}})]})]})}var eG=n(59745);function eR(){let e=!!(0,o.C)(l.sR),t=(0,o.T)(),{data:n}=(0,o.C)(m.HF),{lang:c}=(0,b.gE)(),s=(s,o)=>(e&&s?o(s):!e&&s?t((0,ey.RG)({children:(0,a.jsx)(eG.Z,{onClose:()=>t((0,ey.nL)())}),requestOpen:"BuyAction",classWrapper:"login-out"})):!e||(null==n?void 0:n.gameUserId)&&(null==n?void 0:n.gameUserId)!=null||t((0,ed.hr)({type:"error",show:!0,message:"en"===c?"Open the game and link your accounts.":"ã²ã¼ã ãéããã¢ã«ã¦ã³ã飿ºãè¡ã£ã¦ãã ããã"})),!1);return s}var eD=n(35905),eH=n(7297),eF=n(33635),eV=n.n(eF),eW=n(69620),ez=n(56003);function eO(){let e=(0,eH.Z)([""]);return eO=function(){return e},e}let eL=(0,ez.ZP)(W.Yk).attrs({$textAlign:"center",$borderColor:"#17316c",$verticalAlign:"middle",$lineHeight:1.6})(eO());function eU(e){let{info:t,cell:n,ttl:c,caution:s,initValue:i,onClose:r}=e,{t:d}=(0,b.$G)(),m=(0,o.T)(),p=(0,o.C)(l.VT);return(0,a.jsx)(el(),{className:"new-charm-modal container-center-horizontal status-open",isOpen:i,onAfterOpen:()=>m((0,ed.qr)(!0)),onAfterClose:()=>m((0,ed.qr)(!1)),onRequestClose:r,style:ei.i,id:"modal",children:(0,a.jsxs)("div",{className:"".concat(eV().modalWrap),children:[(0,a.jsx)(W.lT,{$top:"0",$right:"0",children:(0,a.jsx)(eW.y,{onClick:r,$backgroundColor:"#b4b4b4"})}),(0,a.jsxs)("div",{className:"".concat(eV().mainContents),children:[(0,a.jsx)("p",{className:"".concat(eV().title),children:c}),(0,a.jsx)(W.MV,{$height:"auto",$mobileHeight:"80vh",$paddingRight:"0",children:(0,a.jsxs)(W.k6,{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)(W.AF,{$fontSize:"16px",$mobileFontSize:"12px",$bold:!0,$backgroundColor:"#000",children:[(0,a.jsx)(eL,{$padding:"16px",width:"60%",children:d("".concat(k,".gacha.table.head.0"))}),(0,a.jsx)(eL,{$padding:"16px",$mobileMinWidth:64,children:d("".concat(k,".gacha.table.head.1"))})]})}),(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsxs)(W.AF,{$fontSize:"14px",$mobileFontSize:"10px",$bold:!0,$backgroundColor:"#050d1d",children:[(0,a.jsx)(eL,{$padding:"16px",className:"".concat(eV().name," ").concat(p),dangerouslySetInnerHTML:{__html:n[t]}}),(0,a.jsxs)(eL,{$padding:"16px",children:[e,"%"]})]},t))})]})}),s&&(0,a.jsx)("p",{className:eV().caution,children:s})]})]})})}var eZ=n(3519),eM=n.n(eZ),eq=n(68902),eB=n(76930),eK=n(27313),eJ=n(62073),eX=n(7537);let eY={packageDetail:{packageId:0,price:0,basePrice:0,tokenId:0},isActive:!1,tokenAmount:"-"},eQ=()=>{let e=new eJ.e,t=new eB.E(y.t6.FullDateTime),{data:n}=(0,o.C)(d.i0),{data:a}=(0,o.C)(eX.Fb),c=c=>{var s,o;let l=null==a?void 0:a.find(e=>e.packageId===c);if(!l)return eY;let i=Number(l.price),r="None"!==l.basePrice&&l.basePrice?Number(l.basePrice):void 0,d={packageId:l.packageId,price:r?null!==(o=e.round(r/.007,2,y.e0.up))&&void 0!==o?o:0:i,basePrice:r,tokenId:l.tokenId},m={start:t.convertJstFromUtc(l.startDate.toString()),end:t.convertJstFromUtc(l.endDate.toString())},p=(0,eK.tE)(m.start,m.end),h=null===(s=null==n?void 0:n.find(e=>e.id===l.tokenId))||void 0===s?void 0:s.totalAmount,u=h?(0,eh.vP)(h):"-";return{packageDetail:d,isActive:p,tokenAmount:u}};return{findPackageInfo:c}},e0=e=>{var t,n,c;let{packageId:s,activePack:i,onClick:r}=e,{t:d}=(0,b.$G)(),m=(0,o.T)(),p=(0,o.C)(l.VT),h=null===(t=(0,o.C)((0,eD.ZO)(v)))||void 0===t?void 0:t.saleTerm,{findPackageInfo:u}=eQ(),g=u(s),{packageDetail:x,isActive:_,tokenAmount:j}=g,f=d("".concat(k,".gacha.term.name.").concat(i));return(0,a.jsxs)("div",{className:"".concat(eM().contentsWrapper," ").concat(p),children:[(0,a.jsxs)("div",{className:"".concat(eM().imgWrap),children:[(0,a.jsx)("img",{className:"".concat(eM().logo),src:"/json/sale/common/img/logo.png"}),(0,a.jsx)("img",{className:"".concat(eM().gachaImg),src:"".concat(N,"/").concat("nobunaga"===i?"darkknight_nobunaga":"magoichi"==i?"gunslinger_magoichi":"breaker_keiji",".png")})]}),(0,a.jsx)("div",{className:"".concat(eM().nameArea),children:(0,a.jsx)("p",{className:"bold ocher font-14 ".concat(p),dangerouslySetInnerHTML:{__html:d("".concat(k,".gacha.dx.").concat(1===x.tokenId?"gCoinName":"name"),{name:f})}})}),(0,a.jsxs)(W.rz,{$align:"center",$justify:"center",$gap:"4px",children:[(0,a.jsx)("img",{className:"".concat(eM().icon," ").concat(eM().price),alt:"",src:"/json/sale/common/img/price_mark".concat("ja"!==p?"_en":"",".png")}),(0,a.jsx)("img",{className:"".concat(eM().icon," ").concat(eM().token),alt:"icon_mm",src:"/json/common/icon/token/".concat(x.tokenId?x.tokenId:4,".png")}),(0,a.jsx)("p",{className:"bold",children:0===x.price?"-":null!==(n=x.price)&&void 0!==n?n:"-"})]}),(0,a.jsx)(eq.x,{isActive:_,onClick(){m((0,ev.cr)(d("".concat(k,".gacha.dx.name"),{name:f}))),r(x,_)}}),(0,a.jsxs)(W.rz,{$align:"center",$justify:"center",children:[(0,a.jsx)("p",{className:"font-10 bold ".concat(p),children:d("".concat(k,".gacha.holdToken.").concat(h?x.tokenId:"presale"))}),h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"".concat(eM().icon," ").concat(eM().token),src:"/json/common/icon/token/".concat(null!==(c=x.tokenId)&&void 0!==c?c:4,".png"),alt:"token_icon"}),(0,a.jsx)("p",{className:"font-10 bold ".concat(p),children:j})]})]}),1===x.tokenId&&(0,a.jsx)("p",{className:"font-10 bold ".concat(p),dangerouslySetInnerHTML:{__html:d("".concat(k,".gacha.dx.gCoinCation"),{rate:.007,basePrice:x.basePrice})}})]})};var e1=n(69478),e3=n(11163),e6=n(64696),e8=n.n(e6);function e2(){let e=(0,eH.Z)([""]);return e2=function(){return e},e}let e5=(0,ez.ZP)(W.Yk).attrs({$textAlign:"center",$borderColor:"#8e8e8e",$verticalAlign:"middle",$lineHeight:1.6})(e2()),e4=e=>{let{activePack:t}=e,{t:n}=(0,b.$G)(),c=(0,o.C)(l.VT),s=n("".concat(k,".gacha.term.name.").concat(t));return(0,a.jsxs)("div",{className:e8().award,children:[(0,a.jsxs)("div",{className:e8().ttl,children:[(0,a.jsx)("div",{className:"".concat(e8().line," ").concat(e8().left)}),(0,a.jsx)("h2",{className:"font-24 yellow bold ".concat(c),children:n("".concat(k,".gacha.dx.award.ttl"))}),(0,a.jsx)("div",{className:"".concat(e8().line," ").concat(e8().right)})]}),(0,a.jsx)("p",{className:"bold ".concat(c),dangerouslySetInnerHTML:{__html:n("".concat(k,".gacha.dx.award.txt"),{name:s})}}),(0,a.jsx)("p",{className:"font-10 bold ".concat(c),children:n("".concat(k,".gacha.dx.award.caution"))}),(0,a.jsxs)(W.k6,{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)(W.AF,{$fontSize:"16px",$mobileFontSize:"12px",$bold:!0,$backgroundColor:"#282828",children:[(0,a.jsx)(e5,{$padding:"16px",width:"25%",children:n("".concat(k,".gacha.dx.award.head.0"))}),(0,a.jsx)(e5,{$padding:"16px",children:n("".concat(k,".gacha.dx.award.head.1"))})]})}),(0,a.jsx)("tbody",{children:A[t].map((e,t)=>(0,a.jsxs)(W.AF,{$fontSize:"14px",$mobileFontSize:"10px",$bold:!0,$backgroundColor:"#313131",children:[(0,a.jsx)(e5,{$padding:"16px",className:"".concat(c),children:t+1}),(0,a.jsxs)(e5,{$padding:"16px",children:[(0,a.jsx)("img",{className:e8().awardImg,src:e,alt:""}),(0,a.jsx)(W.KG,{$padding:"4px"}),n("".concat(k,".gacha.dx.award.lineUp.").concat(t))]})]},t))})]})]})},e7=()=>{var e,t,n;let{t:c}=(0,b.$G)(),r=(0,e3.useRouter)(),d=(0,o.T)(),m=(0,o.C)(l.VT),p=(0,o.C)((0,i.FG)(v)),h=null===(e=(0,o.C)((0,eD.ZO)(v)))||void 0===e?void 0:e.saleTerm,u=null===(t=(0,o.C)((0,i.Rb)(v)))||void 0===t?void 0:t.dx,g=eR(),[x,_]=(0,s.use
1State)({}),[j,f]=(0,s.useState)(!1),[y,N]=(0,s.useState)(!1),[C,$]=(0,s.useState)("keiji"),I=async e=>{d((0,ed.ps)(!0)),$(e),await new Promise(e=>setTimeout(e,1e3)),d((0,ed.ps)(!1))},S=null==p?void 0:null===(n=p[C])||void 0===n?void 0:n.dx,T=c("".concat(k,".gacha.term.name.").concat(C));return(0,a.jsxs)("section",{id:"dx",children:[(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:c("".concat(k,".gacha.dx.ttl"))}),(0,a.jsx)(W.rz,{$align:"center",$justify:"center",$gap:"16px",children:w.map((e,t)=>(0,a.jsx)("div",{className:"".concat(es().tabItem," ").concat("keiji"===e?es().new:""," ").concat(C===e?es().active:""),onClick:()=>I(e),children:(0,a.jsx)("p",{className:"black bold",children:c("".concat(k,".gacha.term.tab.").concat(e))})},t))}),(0,a.jsx)(W.rz,{$align:"stretch",$justify:"center",$flexWrap:"wrap",$gap:"32px",children:null==S?void 0:S.map((e,t)=>(0,a.jsx)(e0,{activePack:C,packageId:e,onClick(e,t){_(e),g(t,f)}},t))}),(0,a.jsx)("p",{className:"font-10 bold ".concat(m),children:c("".concat(k,".gacha.term.caution.").concat(C))}),(0,a.jsx)(e1.f,{text:c("".concat(k,".gacha.btn.toProbability")),isActiveSale:h,onClick:()=>N(!0)}),(0,a.jsx)(e1.f,{text:c("".concat(k,".gacha.btn.toHistory")),isActiveSale:h,onClick:()=>r.push("/profile/sale-histories")}),(0,a.jsx)(e4,{activePack:C})]}),j&&x&&(0,a.jsx)(eE,{initValue:j,nftSalePackageId:x.packageId,sellingPrice:x.price,basePrice:x.basePrice,tokenId:x.tokenId,onClose:()=>f(!1),onSuccess(){}}),y&&u&&(0,a.jsx)(eU,{info:u,ttl:c("".concat(k,".gacha.dx.name"),{name:T}),cell:c("".concat(k,".gacha.dx.table.").concat(C)),caution:c("".concat(k,".gacha.dx.table.caution")),initValue:y,onClose:()=>N(!1)})]})};var e9=n(21890),te=n.n(e9),tt=n(59599),tn=n.n(tt),ta=n(4436);let tc=e=>{var t;let{type:n,activePack:c,packageId:i,ticketId:d,onClick:m}=e,{t:p}=(0,b.$G)(),h=(0,o.T)(),u=(0,o.C)(l.VT),g=!!(0,o.C)(l.sR),x=(0,o.C)(ep.Zo),_=(0,o.C)(r.Tz),[j,f]=(0,s.useState)(!0),[y,v]=(0,s.useState)("-"),{findPackageInfo:N}=eQ(),C=N(i),{packageDetail:$,isActive:S,tokenAmount:w}=C,T={single:1,multiple:15}[n],A=p("".concat(k,".gacha.term.name.").concat(c));return(0,s.useEffect)(()=>{$&&_.data&&f(6===$.tokenId?_.data.balance>=T:!(_.data.balance>=T))},[$,T,_.data]),(0,s.useEffect)(()=>{_.data&&"number"==typeof _.data.balance?v(_.data.balance):v("-")},[_.data]),(0,a.jsxs)("div",{className:"".concat(tn().contents," ").concat(!j&&tn().non),style:{background:I.bg},children:[(0,a.jsx)("p",{className:"bold shadow",children:p("".concat(k,".gacha.ticket.name"),{type:A,number:"single"===n?1:15})}),6!==$.tokenId&&(0,a.jsxs)(W.rz,{$align:"center",$justify:"center",$gap:"4px",children:[(0,a.jsx)("img",{className:"".concat(tn().priceMark),alt:"",src:"/json/sale/common/img/price_mark_".concat(u,".png")}),(0,a.jsx)("img",{className:"".concat(tn().tokenIcon),alt:"token_icon",src:"/json/common/icon/token/".concat($.tokenId?$.tokenId:4,".png")}),(0,a.jsx)("p",{className:"bold shadow",children:0===$.price?"-":null!==(t=$.price)&&void 0!==t?t:"-"})]}),(0,a.jsx)(eq.x,{isActive:S,onClick(){h((0,ev.cr)(p("".concat(k,".gacha.ticket.name"),{type:A,number:"single"===n?1:15}))),m($,S)}}),(0,a.jsxs)(W.rz,{$align:"center",$justify:"center",$gap:"4px",children:[(0,a.jsx)("p",{className:"font-10 bold shadow",children:p("".concat(k,".gacha.holdToken.").concat(S?$.tokenId:"presale"))}),S&&(0,a.jsxs)(a.Fragment,{children:[$.tokenId&&6!==$.tokenId&&(0,a.jsx)("img",{className:"".concat(tn().tokenIcon),alt:"token_icon",src:"/json/common/icon/token/".concat($.tokenId,".png")}),(0,a.jsx)("p",{className:"font-10 bold shadow",children:6===$.tokenId?y:w})]})]}),g&&d&&(1===$.tokenId||6===$.tokenId)&&(0,a.jsx)(W.lT,{$top:"8px",$left:"20px",children:(0,a.jsx)(ta.Z,{intervalSecond:2,onClickDispatch:[6===$.tokenId?(0,r.SP)({ticketId:d}):(0,ep.TK)()],retrievedInfo:[6===$.tokenId?_:x]})})]})};var ts=n(17707),to=n.n(ts);let tl=e=>{let{ticketId:t}=e,{t:n}=(0,b.$G)(),c=(0,o.T)(),i=(0,o.C)(l.VT),d=!!(0,o.C)(l.sR),m=(0,o.C)(r.Tz),[p,h]=(0,s.use
1State)("-"),u=()=>c((0,ey.RG)({children:(0,a.jsx)(eG.Z,{onClose(){c((0,ey.nL)())}}),requestOpen:"BuyAction",classWrapper:"login-out"})),g=async()=>{c((0,ed.ps)(!0)),await c((0,r.SP)({ticketId:t})),c((0,ed.ps)(!1))};return(0,s.useEffect)(()=>{g()},[d]),(0,s.useEffect)(()=>{m.data&&"number"==typeof m.data.balance?h(m.data.balance):h("-")},[m.data]),(0,a.jsx)("div",{className:"".concat(to().contentsWrapper),children:d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"".concat(i),children:n("sale.ticket.balance",{balance:p})}),(0,a.jsx)(W.lT,{$top:"50%",$right:"16px",className:to().absolute,children:(0,a.jsx)(ta.Z,{onClickDispatch:[(0,r.SP)({ticketId:t})],intervalSecond:5,retrievedInfo:[m],style:{width:"15",height:"15"}})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"font-14 ".concat(i),children:n("sale.ticket.login")}),(0,a.jsx)("button",{className:"".concat(to().loginBtn),onClick:()=>u(),children:n("sale.login")})]})})};function ti(e){let{initValue:t,nftSalePackageId:n,sellingPrice:c,onClose:i,onSuccess:r}
1=e,d=(0,o.T)(),[p,h]=(0,s.useState)(t),u=(0,o.C)(l.VT),[g,x]=(0,s.useState)(!1),{t:_}=(0,b.$G)(),{data:j}=(0,o.C)(m.HF),f=(0,o.C)(ev.G3),[v,k]=(0,s.useState)(!1),N=(0,o.C)(ev.pQ);function C(){h(!1),d((0,ed.qr)(!1)),x(!1)}(0,s.useEffect)(()=>{h(t)},[t]);let $=()=>{(null==j?void 0:j.gameUserId)==null&&(k(!0),d((0,ey.nL)()),d((0,ed.hr)((0,eP.Z)(y.jK.AccountNoLinked,u)))),d((0,ev.qc)({nftSalePackageId:n,price:c,error(e){if(localStorage.setItem("inOpeningPack","false"),k(!1),d((0,ey.nL)()),e instanceof er.d7){var t,a,c,s;if(!(null===(t=e.response)||void 0===t?void 0:t.data.errors.length)){(null===(c=e.response)||void 0===c?void 0:c.status)===400&&d((0,ed.hr)({type:"error",show:!0,message:"en"===u?"Purchase failed.":"è³¼å
¥ã«å¤±æãã¾ããã"})),(null===(s=e.response)||void 0===s?void 0:s.status)===500&&d((0,ev.Qk)({nftSalePackageId:n,success(){}}));return}null===(a=e.response)||void 0===a||a.data.errors.map(e=>{d((0,ed.hr)((0,eP.Z)(e.error_code,u)))})}else d((0,ed.hr)({type:"error",show:!0,message:e.message}))},success(){null==r||r(),k(!0)},beforeCall(){d((0,ed.ps)(!0))},endCall(){localStorage.setItem("inOpeningPack","false"),d((0,ed.ps)(!1))}}))};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(el(),{parentSelector:()=>document.querySelector("#modals"),id:"modal",isOpen:p,onAfterClose:i,onAfterOpen:function(){d((0,ed.qr)(!0))},onRequestClose:C,contentLabel:"Confirm Modal",style:ei.i,className:"container-center-horizontal status-open align_center",children:(0,a.jsx)("div",{className:"nft-buyboxmodal mt_0to25vh",children:(0,a.jsx)("div",{className:"nft-buybox-cnt",children:(0,a.jsxs)("div",{className:"nft-buybox-items bordernone",children:[!!N&&(0,a.jsx)("h3",{className:"header-title mb8 packname",dangerouslySetInnerHTML:{__html:N}}),(0,a.jsx)("div",{className:"nft-buybox-c",children:(0,a.jsx)("div",{className:"nft-buybox-text",children:(0,a.jsxs)("p",{className:"ticket ".concat("ja"===u?"":"en"),children:[_("hikaruSale.ticket_modal2"),"ï¼",c]})})}),g&&(0,a.jsx)("div",{className:"dialog-row",children:(0,a.jsx)("div",{className:"nft_box_error_msg_list"})}),(0,a.jsxs)("div",{className:"dialog-row",children:[(0,a.jsx)("button",{className:"btn negative",onClick:C,children:_("hikaruSale.ticket_cansel")}),(0,a.jsx)("button",{className:"btn",onClick:$,children:_("hikaruSale.ticket_modal3")})]}),v&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(ew,{nftSalePackageId:n,nfts:f.data,onClose(){i(),d((0,ey.nL)()),k(!1)},onClick(){d((0,ey.nL)()),k(!1)}})})]})})})})})}let tr=()=>{var e,t,n;let{t:c}=(0,b.$G)(),d=(0,e3.useRouter)(),m=(0,o.T)(),p=(0,o.C)(l.VT),h=null===(e=(0,o.C)((0,eD.ZO)(v)))||void 0===e?void 0:e.saleTerm,u=(0,o.C)((0,i.FG)(v)),g=null===(t=(0,o.C)((0,i.Rb)(v)))||void 0===t?void 0:t.ticket,x=eR(),[_,j]=(0,s.useState)({}),[f,y]=(0,s.useState)(!1),[C,$]=(0,s.useState)(!1),[I,S]=(0,s.useState)(!1),[T,A]=(0,s.useState)("keiji"),P=null==u?void 0:null===(n=u[T])||void 0===n?void 0:n.ticket,G=c("".concat(k,".gacha.term.name.").concat(T)),R=async e=>{m((0,ed.ps)(!0)),A(e),await new Promise(e=>setTimeout(e,1e3)),m((0,ed.ps)(!1))};return(0,a.jsxs)("section",{id:"ticket",children:[(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:c("".concat(k,".gacha.ticket.ttl"))}),(0,a.jsx)(W.rz,{$align:"center",$justify:"center",$gap:"16px",children:w.map((e,t)=>(0,a.jsx)("div",{className:"".concat(te().tabItem," ").concat("keiji"===e?te().new:""," ").concat(T===e?te().active:""),onClick:()=>R(e),children:(0,a.jsx)("p",{className:"black bold",children:c("".concat(k,".gacha.term.tab.").concat(e))})},t))}),(0,a.jsxs)("div",{className:"".concat(te().mainImg),children:[(0,a.jsx)("img",{src:"".concat(N,"/ticket_gacha_").concat(T,".png"),alt:""}),(0,a.jsx)("p",{className:"font-10 text-right ".concat(p),children:c("".concat(k,".gacha.ticket.sample"))})]}),(0,a.jsx)("p",{className:"bold ".concat(p),dangerouslySetInnerHTML:{__html:c("".concat(k,".gacha.ticket.txt"))}}),(0,a.jsx)(W.rz,{$align:"center",$justify:"center",$flexWrap:"wrap",$gap:"32px",$width:"90%",children:null==P?void 0:P.package.map((e,t)=>(0,a.jsx)(tc,{activePack:T,type:t%2==0?"single":"multiple",packageId:e,onClick(e,t){j(e),x(t,6===e.tokenId?$:y)}},e))}),(0,a.jsx)("p",{className:"font-10 bold ".concat(p),children:c("".concat(k,".gacha.term.caution.").concat(T))}),P&&(0,a.jsx)(tl,{ticketId:P.id}),(0,a.jsx)(e1.f,{text:c("".concat(k,".gacha.btn.toProbability")),isActiveSale:h,onClick:()=>S(!0)}),(0,a.jsx)(e1.f,{text:c("".concat(k,".gacha.btn.toHistory")),isActiveSale:h,onClick:()=>d.push("/profile/sale-histories")})]}),C&&_&&P&&(0,a.jsx)(ti,{initValue:C,nftSalePackageId:_.packageId,sellingPrice:_.price,onClose:()=>$(!1),onSuccess:()=>m((0,r.SP)({ticketId:P.id}))}),f&&_&&(0,a.jsx)(eE,{initValue:f,nftSalePackageId:_.packageId,sellingPrice:_.price,tokenId:_.tokenId,basePrice:_.basePrice,onClose:()=>y(!1),onSuccess(){}}),I&&g&&(0,a.jsx)(eU,{info:g,ttl:c("".concat(k,".gacha.ticket.table.ttl"),{type:G}),cell:c("".concat(k,".gacha.ticket.table.").concat(T)),caution:c("".concat(k,".gacha.ticket.table.caution")),initValue:I,onClose:()=>S(!1)})]})};var td=n(36583),tm=n.n(td);let tp=e=>{let{sectionData:t}=e,{t:n}=(0,b.$G)(),c=(0,o.C)(l.VT);if(!t)return null;let{term:s,title:i}=t;return(0,a.jsx)("section",{children:(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)("div",{className:tm().term,children:(0,a.jsx)("h2",{className:"bold font-18",children:n(s)})}),(0,a.jsx)(W.KG,{$padding:"8px"}),(0,a.jsxs)("div",{className:"".concat(tm().leavesDeco),children:[(0,a.jsx)("img",{src:"/json/sale/common/img/leave.png",alt:"",className:"".concat(tm().decoImg)}),(0,a.jsx)("h2",{className:"yellow bold font-18 ".concat(c),children:n(i)})]})]})})};var th=n(62819),tu=n.n(th),tg=n(25448),tx=n.n(tg);function t_(){let e=(0,eH.Z)([""]);return t_=function(){return e},e}let tj=(0,ez.ZP)(W.Yk).attrs({$textAlign:"center",$borderColor:"#17316c",$verticalAlign:"middle",$lineHeight:1.6})(t_());function tf(e){var t;let{initValue:n,onClose:c}=e,{t:l}=(0,b.$G)(),i=(0,o.T)(),r=(0,o.C)(p.ZB),d=null===(t=r.data)||void 0===t?void 0:t[C],m=l("".concat(k,".").concat($.row)),h=async()=>{i((0,ed.ps)(!0)),await i((0,p.xD)(C)),i((0,ed.ps)(!1))};return(0,s.useEffect)(()=>{h()},[n]),(0,a.jsx)(el(),{id:"modal",isOpen:n,className:"container-center-horizontal status-open",onAfterOpen:()=>i((0,ed.qr)(!0)),onAfterClose:()=>i((0,ed.qr)(!1)),onRequestClose:c,style:ei.i,children:(0,a.jsxs)("div",{className:"".concat(tx().modalWrap),children:[(0,a.jsx)(W.lT,{$top:"0",$right:"0",children:(0,a.jsx)(eW.y,{onClick:c,$backgroundColor:"#b4b4b4"})}),(0,a.jsx)(W.MV,{$height:"auto",$paddingRight:"0",children:(0,a.jsxs)(W.k6,{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)(W.AF,{$fontSize:"16px",$mobileFontSize:"12px",$bold:!0,$backgroundColor:"#000",children:[(0,a.jsx)(tj,{$padding:"16px 0",$mobileMinWidth:120,children:(0,a.jsx)("div",{className:"".concat(tx().reloadBtn),children:(0,a.jsx)(ta.Z,{onClickDispatch:[(0,p.xD)(C)],intervalSecond:2,retrievedInfo:[r]})})}),$.col.map((e,t)=>(0,a.jsx)(tj,{$padding:"16px 0",$mobileMinWidth:64,children:e.toUpperCase()},t))]})}),(0,a.jsx)("tbody",{children:d&&(0,a.jsx)(a.Fragment,{children:["kEIJI","mAGOICHI","nOBUNAGA","oICHI"].map((e,t)=>(0,a.jsxs)(W.AF,{$fontSize:"14px",$mobileFontSize:"10px",$bold:!0,$backgroundColor:"#050d1d",children:[(0,a.jsx)(tj,{$padding:"16px 0",children:m[t]}),["g2","g3","g4","g5"].map(t=>{var n;let c=null===(n=d[t])||void 0===n?void 0:n[e];return(0,a.jsx)(tj,{$padding:"16px 0",className:tx().name,children:c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:tx().yellow,children:c.balance})," ","/ ",c.maxBalance]}):(0,a.jsx)(a.Fragment,{children:"-"})},t)})]},e))})})]})}),(0,a.jsx)("p",{className:"".concat(tx().caution),children:l("".concat(k,".remain.caution.1"))})]})})}let tb=()=>{var e;let{t}=(0,b.$G)(),n=(0,o.C)(l.VT),c=null===(e=(0,o.C)((0,eD.ZO)(v)))||void 0===e?void 0:e.saleTerm,i=(0,o.C)(p.ZB),[r,d]=(0,s.use
1State)(!1),[m,h]=(0,s.useState)("-");return(0,s.useEffect)(()=>{var e,t,n,a;let c=null===(e=i.data)||void 0===e?void 0:null===(t=e[C])||void 0===t?void 0:null===(n=t.g2)||void 0===n?void 0:null===(a=n.kEIJI)||void 0===a?void 0:a.balance;c&&h(c)},[i.data]),(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:t("".concat(k,".remain.ttl"))}),(0,a.jsxs)("div",{className:"".concat(tu().contents),children:[(0,a.jsxs)("div",{className:"".concat(tu().box),children:[(0,a.jsx)("img",{className:"".concat(tu().mainImg),src:"".concat(N,"/breaker_keiji.png")}),(0,a.jsx)("p",{className:"bold ".concat(n),dangerouslySetInnerHTML:{__html:t("".concat(k,".remain.txt"),{remain:c?m:"-"})}}),(0,a.jsx)(W.lT,{$top:"8px",$left:"16px",children:(0,a.jsx)(ta.Z,{onClickDispatch:[(0,p.xD)(C)],intervalSecond:2,retrievedInfo:[i]})})]}),(0,a.jsx)("p",{className:"font-10 ".concat(n),children:t("".concat(k,".remain.caution.0"))}),(0,a.jsx)(W.KG,{$padding:"16px"}),(0,a.jsx)(e1.f,{text:t("".concat(k,".remain.toModal")),isActiveSale:c,onClick:()=>d(!0)})]})]}),r&&(0,a.jsx)(tf,{initValue:r,onClose:()=>d(!1)})]})};n(21082);var ty=n(16637),tv=n.n(ty),tk=n(52113),tN=n(12858);function tC(){let e=(0,eH.Z)([""]);return tC=function(){return e},e}let t$=(0,ez.ZP)(W.Yk).attrs({$borderColor:"#17316c",$verticalAlign:"middle",$lineHeight:1.6})(tC());function tI(e){let{info:t,initValue:n,onClose:c}=e,{t:s}=(0,b.$G)(),i=(0,o.T)(),r=(0,o.C)(l.VT),d=s("".concat(k,".weapon.lineUp")),m=d.findIndex(e=>e.id===t),p=d.map((e,t)=>{let n=(0,a.jsxs)(W.jS,{theme:tN.QG,$width:"100%",$height:"auto",$borderRadius:"0",$padding:"16px 0",children:[(0,a.jsx)("img",{className:tv().icon,src:"/json/common/nft/weapon/".concat(e.type,"/").concat(e.id,".png"),alt:e.id}),(0,a.jsx)("p",{className:"".concat(tv().tableHead," ").concat(r),children:e.name[4]})]},"button-".concat(t)),c=(0,a.jsx)(W.MV,{$height:"auto",$mobileHeight:"80vh",$paddingRight:"0",children:(0,a.jsx)(W.k6,{children:(0,a.jsx)("tbody",{children:e.effect.map((e,t)=>(0,a.jsxs)(W.AF,{$fontSize:"14px",$mobileFontSize:"10px",$bold:!0,$backgroundColor:"#050d1d",children:[(0,a.jsx)(t$,{$padding:"16px",width:"25%",$textAlign:"center",className:"".concat(tv().name," ").concat(tv()[S[t+1].rarity]," ").concat(r),children:S[t+1].abbr}),(0,a.jsx)(t$,{$padding:"16px",children:e})]},t))})})},"content-".concat(t));return{button:n,content:c}}),h=[p[m],...p.slice(0,m),...p.slice(m+1)];return(0,a.jsx)(el(),{className:"new-charm-modal container-center-horizontal status-open",isOpen:n,onAfterOpen:()=>i((0,ed.qr)(!0)),onAfterClose:()=>i((0,ed.qr)(!1)),onRequestClose:c,style:ei.i,id:"modal",children:(0,a.jsxs)("div",{className:"".concat(tv().modalWrap),children:[(0,a.jsx)(W.lT,{$top:"0",$right:"0",children:(0,a.jsx)(eW.y,{onClick:c,$backgroundColor:"#b4b4b4"})}),(0,a.jsxs)("div",{className:"".concat(tv().mainContents),children:[(0,a.jsxs)("p",{className:"".concat(tv().title," ").concat(r),children:[s("".concat(k,".weapon.xenoClass")),(0,a.jsx)("br",{}),(0,a.jsx)("span",{children:s("".concat(k,".weapon.modalCaution"))})]}),(0,a.jsxs)(tk.Z,{children:[h.map(e=>e.button),h.map(e=>e.content)]})]})]})})}var tS=n(90295);et.ZP.use([et.W_,et.tl,et.LW,et.s5,et.xW]);let tw=()=>{var e;let{t}=(0,b.$G)(),n=(0,o.C)(l.VT),c=null===(e=(0,o.C)((0,eD.ZO)(v)))||void 0===e?void 0:e.bannerTerm,[i,r]=(0,s.useState)(!1),[d,m]=(0,s.useState)();return(0,a.jsxs)("section",{id:"weapon",children:[(0,a.jsxs)("div",{className:"section-inner",children:[(0,a.jsx)(E.N,{text:t("".concat(k,".weapon.ttl"))}),(0,a.jsx)("p",{className:"bold ".concat(n),children:t("".concat(k,".weapon.txt"))}),(0,a.jsxs)(W.rz,{$column:!0,$gap:"16px",children:[(0,a.jsx)(en,{id:"weaponSwiper-".concat(v),children:T.map((e,n)=>(0,a.jsx)(tS.Z,{data:e,name:t("".concat(k,".").concat(e.name)),isSale:c,bgColor:I.bg,onClick(){m(e.id),r(!0)}},n))}),(0,a.jsx)("p",{className:"bold font-10",children:t("".concat(k,".weapon.caution"))})]})]}),i&&d&&(0,a.jsx)(tI,{info:d,initValue:i,onClose:()=>r(!1)})]})};var tT=n(68123),tA=n.n(tT),tP=n(32426),tE=n(59449);let tG=()=>{let{t:e}=(0,b.$G)(),t=(0,o.T)(),n=(0,o.C)(l.VT),c=(0,o.C)(tP._7),s=(0,o.C)(tP.ok);return s?(0,a.jsx)(el(),{id:"modal",style:ei.i,className:"container-center-horizontal status-open",isOpen:c,onAfterOpen:()=>t((0,ed.qr)(!0)),onAfterClose:()=>t((0,ed.qr)(!1)),onRequestClose:()=>t((0,tE.wO)()),children:(0,a.jsxs)("div",{className:"".concat(tA().modalWrap),children:[(0,a.jsx)(W.lT,{$top:"0",$right:"0",children:(0,a.jsx)(eW.y,{onClick:()=>t((0,tE.wO)()),$backgroundColor:"#b4b4b4"})}),(0,a.jsxs)("div",{className:"".concat(tA().mainContents),children:[(0,a.jsxs)("h2",{className:"".concat(tA().ttl," ").concat(n),children:[e(s.title),(0,a.jsx)("span",{children:e("sale.skill.modalCaution")})]}),(0,a.jsx)(W.MV,{$height:"auto",$paddingRight:"0",children:(0,a.jsx)(W.rz,{$width:"100%",$column:!0,$align:"center",$justify:"center",$gap:"16px",children:Object.entries(s.skill).flatMap(t=>{let[n,c]=t;return(0,a.jsxs)(W.rz,{$width:"100%",$column:!0,$align:"flex-start",$justify:"center",children:[(0,a.jsx)("p",{className:"".concat(tA().type),children:e("sale.skill.type.".concat(n))}),c.map(t=>(0,a.jsxs)(W.rz,{$width:"100%",$align:"center",$gap:"8px",className:tA().detail,children:[(0,a.jsxs)("div",{className:"".concat(tA().txtArea),children:[(0,a.jsxs)(W.rz,{$width:"100%",$align:"center",$justify:"flex-start",children:[(0,a.jsx)("p",{className:"".concat(tA().name),children:e(t.name)}),(0,a.jsxs)("div",{className:"".concat(tA().cost),children:[(0,a.jsx)("span",{children:e("sale.skill.cost")}),(0,a.jsx)("p",{children:t.cost})]})]}),(0,a.jsx)("p",{className:"".concat(tA().effect),children:e(t.effect)})]}),(0,a.jsx)("div",{className:"".concat(tA().imgWrap),children:(0,a.jsx)("img",{src:t.imgPath,alt:""})})]},t.name))]},n)})})})]})]})}):null},tR=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(tG,{})}),tD=()=>(0,a.jsxs)("div",{className:"sale-inner ".concat(u().saleColor),children:[P.firstViewSection&&(0,a.jsx)(_,{sectionData:P.firstViewSection}),P.overViewSection&&(0,a.jsx)(tp,{sectionData:P.overViewSection}),P.specialFeatureSection&&(0,a.jsx)(J,{sectionData:P.specialFeatureSection}),P.characterSection&&(0,a.jsx)(ea,{sectionData:P.characterSection}),(0,a.jsx)(tw,{}),(0,a.jsx)(tb,{}),(0,a.jsx)(e7,{}),(0,a.jsx)(tr,{}),(0,a.jsx)(R,{}),(0,a.jsx)(H,{}),(0,a.jsx)(z,{}),(0,a.jsx)(U,{}),(0,a.jsx)(B,{}),(0,a.jsx)(tR,{})]}),tH=()=>{var e;let t=(0,o.T)(),n=!!(0,o.C)(l.sR),{data:h}=(0,o.C)(m.HF),{data:u}=(0,o.C)(d.i0),{data:g}=(0,o.C)(r.Tz),x=null===(e=(0,o.C)((0,i.UG)("sengoku-second")))||void 0===e?void 0:e.ticket;return(0,s.useEffect)(()=>{localStorage.setItem("inOpeningPack","false"),t((0,p.xD)(C)),t((0,i.aV)("sengoku-second")),t((0,i.Y7)("sengoku-second"))},[]),(0,s.useEffect)(()=>{n&&(u||t((0,d.lz)()),h||t((0,m.bG)()),x&&!g&&t((0,r.SP)({ticketId:x.id})))},[n,u,h,x,g]),(0,a.jsx)(c.Z,{children:(0,a.jsx)("div",{className:"sale-page",children:(0,a.jsx)(tD,{})})})};var tF=tH},32426:function(e,t,n){"use strict";n.d(t,{Is:function(){return o},_7:function(){return a},h6:function(){return s},ir:function(){return l},ok:function(){return c}});let a=e=>
1e.saleModal.characterSkillModal.isShow,c=e=>e.saleModal.characterSkillModal.data,s=e=>e.saleModal.purchasePackModal.isShow,o=e=>e.saleModal.purchasePackData.data,l=e=>e.saleModal.purchasePackResultModal.isShow},68123:function(e){e.exports={modalWrap:"styles_modalWrap__l_zV6",mainContents:"styles_mainContents__HrOYH",ttl:"styles_ttl__1h80B",type:"styles_type__PR1KH",detail:"styles_detail__7utxV",imgWrap:"styles_imgWrap__MhAn9",txtArea:"styles_txtArea__eRB6j",name:"styles_name__VjTHw",effect:"styles_effect__JFZut",cost:"styles_cost__PyeSf"}},26244:function(e){e.exports={mainImg:"styles_mainImg__a7Ipq",tabItem:"styles_tabItem__BZf_J",active:"styles_active__9kyGk",new:"styles_new__7J28b",award:"styles_award__md3x5",ttl:"styles_ttl__euVCf",line:"styles_line__8mlYA",left:"styles_left__DgHtE",right:"styles_right__Te_uD",awardImg:"styles_awardImg__aCAuo"}},62819:function(e){e.exports={contents:"styles_contents__Yw_RV",box:"styles_box__ouGu8",mainImg:"styles_mainImg___EX6Z"}},2285:function(e){e.exports={container:"styles_container__NwAaH"}},50834:function(e){e.exports={fv:"styles_fv__ETVFs"}},8344:function(e){e.exports={footer:"styles_footer__6BBfK",row:"styles_row__GtfQg",logo:"styles_logo__S8HN8"}},36583:function(e){e.exports={contentInner:"styles_contentInner__VRBH_",leavesDeco:"styles_leavesDeco__sqsIP",decoImg:"styles_decoImg__BSyVJ",term:"styles_term__SpRIM"}},57819:function(e){e.exports={btnImg:"styles_btnImg__PQJGU"}},14574:function(e){e.exports={btnImg:"styles_btnImg__vdG2M"}},21890:function(e){e.exports={mainImg:"styles_mainImg__nnbkq",tabItem:"styles_tabItem__sjWqv",active:"styles_active__y1olu",new:"styles_new__Apfvu"}},16637:function(e){e.exports={modalWrap:"styles_modalWrap__Rqlzr",mainContents:"styles_mainContents__ejIfR",title:"styles_title__eMr8e",tableHead:"styles_tableHead__u2c9M",icon:"styles_icon__X_mep",common:"styles_common___hAck",uncommon:"styles_uncommon__jy3eN",rare:"styles_rare__aMdDx",epic:"styles_epic__v7iMq",legendary:"styles_legendary__VFzLg"}},25448:function(e){e.exports={modalWrap:"styles_modalWrap__BNNX0",header:"styles_header__0OILD",caution:"styles_caution__2yIUx",reloadBtn:"styles_reloadBtn__vT2J_",yellow:"styles_yellow__yD9Gh"}},33635:function(e){e.exports={modalWrap:"styles_modalWrap__aqZjG",mainContents:"styles_mainContents__FqAZU",title:"styles_title__orspI",name:"styles_name__Dwbeo",caution:"styles_caution___yaOm"}},64696:function(e){e.exports={award:"styles_award__JFVVk",ttl:"styles_ttl__EK_K_",line:"styles_line__NgYeP",left:"styles_left__B8OF9",right:"styles_right__Rwp92",awardImg:"styles_awardImg__3tFG1"}},3519:function(e){e.exports={contentsWrapper:"styles_contentsWrapper__bGuNP",imgWrap:"styles_imgWrap__6Rl3x",gachaImg:"styles_gachaImg__2wEdw",logo:"styles_logo__1yVqG",lineUp:"styles_lineUp__7a3Bm",right:"styles_right__qcbi8",bg:"styles_bg__RAb5o",banner:"styles_banner__b5S5Y",nameArea:"styles_nameArea__nNrBT",colorArea:"styles_colorArea__yGvsY",radius:"styles_radius__XlqEs",airDrop:"styles_airDrop__9_Df1",left:"styles_left__9HvAK",packDetails:"styles_packDetails__citnh",stepBtnArea:"styles_stepBtnArea__b5KSL",btn:"styles_btn__iflK0",disable:"styles_disable__ymimV",active:"styles_active__6b184",icon:"styles_icon__iCgih",token:"styles_token__is8a7",price:"styles_price__jYVf3",caution:"styles_caution__nczXj"}},59599:function(e){e.exports={contents:"styles_contents__KArZp",non:"styles_non__KnCnB",tokenIcon:"styles_tokenIcon__E_mql",priceMark:"styles_priceMark__Ega_8"}},69853:function(e){e.exports={swiperArea:"styles_swiperArea__hUGJk",btnWrap:"styles_btnWrap__uNuXX",left:"styles_left__tV5hY",right:"styles_right__wKGCT",btn:"styles_btn__jtANz"}},17707:function(e){e.exports={contentsWrapper:"styles_contentsWrapper__HcEA_",loginBtn:"styles_loginBtn__WKBO5",absolute:"styles_absolute__0ru2n"}},88718:function(e){e.exports={saleColor:"styles_saleColor__FX6xD"}},86734:function(e){e.exports={contentsWrapper:"styles_contentsWrapper__i9aqC",decoImg:"styles_decoImg__ZwSy8",left:"styles_left__KjTa1",right:"styles_right__RoJCR",ttl:"styles_ttl__j94mh",noteList:"styles_noteList__Z72nG"}},49331:function(e){e.exports={pickUp:"styles_pickUp__s3SbO",ttlDeco:"styles_ttlDeco__d6Qn_",left:"styles_left__N7o0F",right:"styles_right__5kV17"}},86740:function(e){e.exports={contentsWrapper:"styles_contentsWrapper__8b_Kp",mainImg:"styles_mainImg__oxyON",nameArea:"styles_nameArea__bRzLa"}},69240:function(e){e.exports={contentsWrapper:"styles_contentsWrapper__doLUU",mainImg:"styles_mainImg___e_Q8",nameArea:"styles_nameArea__0iA3M"}}},function(e){e.O(0,[7039,794,1312,6004,8832,8917,7048,2683,5334,7586,9774,2888,179],function(){return e(e.s=64816)}),_N_E=e.O()}]);
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.