PageSourceSearch

https://ticketdive.com/_next/static/chunks/pages/ticket/[id]-0dbc201a0699768a.js

js ticketdive.com collected 2026-10-02 04:16:48 UTC 66,375 bytes, 1 lines download raw bytes

1!function(){try{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]="c5cdf644-8d7b-4c99-bdb6-fd26b35a7f02",e._sentryDebugIdIdentifier="sentry-dbid-c5cdf644-8d7b-4c99-bdb6-fd26b35a7f02")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1278],{5794:e=>{e.exports={qrContainer:"TicketCenterImage_qrContainer__FbwPj",noImageBg:"TicketCenterImage_noImageBg__lHNVd",noImageContainer:"TicketCenterImage_noImageContainer__qaHBw",fullWidth:"TicketCenterImage_fullWidth__Akq3q"}},12244:e=>{e.exports={enteredStamp:"EnteredStamp_enteredStamp__p50Lf",entered:"EnteredStamp_entered__ESp4H",enteredRotate:"EnteredStamp_enteredRotate__aUN6c",time:"EnteredStamp_time__qAyW0",outerCircle:"EnteredStamp_outerCircle__Nazi2",bigCircle:"EnteredStamp_bigCircle__sNbPD",midCircle:"EnteredStamp_midCircle__orpBr",smallCircle:"EnteredStamp_smallCircle__eqqZJ"}},16130:e=>{e.exports={modalContent:"EnterModal_modalContent__wIYXm",closeButton:"EnterModal_closeButton__8mpTx",warning:"EnterModal_warning__IoqVI",glowing:"EnterModal_glowing__FH9_y"}},17893:e=>{e.exports={ticketDetails:"ModalDetail_ticketDetails__ZHphU"}},20932:e=>{e.exports={bundleImageContainer:"BundleModal_bundleImageContainer__gBz5f",imageWrapper:"BundleModal_imageWrapper__g8xjM",modalContent:"BundleModal_modalContent__y9HIn",returnButton:"BundleModal_returnButton__5PWAK",closeButton:"BundleModal_closeButton___T1Ui",warning:"BundleModal_warning__OcP2I",glowing:"BundleModal_glowing__OGqX6",fadeIn:"BundleModal_fadeIn__azzz7"}},24437:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var r=n(3049),i=n(61800),a=n(73357),o=n(27946),l=n(62671);let c=()=>{let e=(0,r.useRouter)(),{safeRedirect:t}=(0,l.b)(),{encodedRedirectPath:n}=(0,o.w)(),{setLoading:c}=(0,a.nk)(),{account:s}=(0,i.Um)(),{refreshAccount:d}=(0,i.hC)(),m=()=>null==s?void 0:s.uid,u=async()=>await d(),p=async()=>{let t=await u();return t||(e.push("/signin?redirect=".concat(n)),c({state:!1})),t};return{getUid:m,getAccount:u,getUidAndRedirect:()=>{let e=m();return e||(t("/signin?redirect=".concat(n)),c({state:!1})),e},getAccountAndRedirect:p}}},26761:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>e7,default:()=>e8});var r=n(10940),i=n(87784),a=n(79039),o=n(45450);n(56015),n(96911),n(30033);var l=n(11436),c=(n(62275),n(61800)),s=n(58143),d=n(60594),m=n(26458),u=n(3049),p=n(84426),h=n(57708),f=n(81132),g=n(85909);let x=e=>e.replace(/\s+/g,""),_=e=>{var t,n;let{currentModal:a,closeModal:o}=e,s=(0,i.c)(),{registerHandler:_,methods:j,register:k,errors:w,onClickCancel:C}=(e=>{let{closeModal:t}=e,n=(0,i.c)(),{loadingHandler:r}=(0,p.G)(),{account:a}=(0,c.Um)(),{setAccount:o}=(0,c.hC)(),l=(0,u.useRouter)(),s=(0,d.mN)({resolver:(0,m.u)((e=>{let t=(0,g.ED)(e)?e:e=>e;return f.Ik({lastName:f.Yj().min(1,t("form.required")).transform(x),firstName:f.Yj().min(1,t("form.required")).transform(x)})})(n))}),{handleSubmit:_,register:j,setValue:k,formState:{errors:w}}=s;return{registerHandler:_(async e=>{a&&await r(async()=>{let n="".concat(e.lastName).concat(e.firstName);await (0,h.xl)({fullName:n,name:a.nickName||n}),o(e=>e?{...e,fullName:n}:null),t()})}),methods:s,register:j,errors:w,setValue:k,onClickCancel:()=>{l.push("/ticket"),t()}}})({closeModal:o});return(0,r.jsx)(d.Op,{...j,children:(0,r.jsx)(l.J2,{open:"name"===a,headline:[s("modal.askName.headline")],btnRText:s("common.register"),btnLText:s("common.cancel"),onClickBtnL:C,onClickBtnR:_,children:(0,r.jsx)(l.pT,{flexDirection:"column",gap:"1.2rem",justifyItems:"center",alignItems:"center",children:(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",children:[(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:600,children:s("form.fullName")}),(0,r.jsxs)(l.pT,{gap:"1.2rem",children:[(0,r.jsx)(l.pd,{hideLabel:!0,placeholder:s("form.lastName"),required:!0,...k("lastName"),autoComplete:"family-name",inputMode:"text",error:null==(t=w.lastName)?void 0:t.message}),(0,r.jsx)(l.pd,{hideLabel:!0,placeholder:s("form.firstName"),required:!0,...k("firstName"),autoComplete:"given-name",inputMode:"text",error:null==(n=w.firstName)?void 0:n.message})]}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",lineHeight:"175%",fontWeight:600,children:s("form.nameRegistrationNoteForDistribution")})]})})})})};var j=n(3485),k=n.n(j);let w={src:"/_next/static/media/bundle_image.bf5b94ee.webp",height:640,width:1368,blurDataURL:"data:image/webp;base64,UklGRnIAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAAJTIxNEYtIi9CNz4+PyIhMCYoPz89Li8jJTYdHTEpOSsAVlA4ICoAAABwAQCdASoIAAQAAkA4JaQAAls9oAD+/fVa3J210eevtSkUrr97KhbDgAA=",blurWidth:8,blurHeight:4};var C=n(20932),v=n.n(C);let b=e=>{let{currentBundle:t,mainColor:n,isOutOfAvailableTime:a,backToBundleList:o,useBundle:c}=e,s=(0,i.c)();return(0,r.jsxs)(l.pT,{flexDirection:"column",alignItems:"center",gap:"1.6rem",padding:"1.6rem 1.6rem 3.2rem",children:[(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,lineHeight:"175%",color:t.color,children:t.name}),(0,r.jsx)(l.o5,{fontSize:"1.4rem",lineHeight:"200%",color:"b1",children:t.detail}),(0,r.jsx)(l.o5,{fontWeight:700,lineHeight:"175%",fontSize:"2rem",color:"red1",className:v().warning,children:s("common.staffOnly")}),(0,r.jsxs)(l.pT,{gap:"2.2rem",marginTop:"1.6rem",children:[(0,r.jsx)(l.$n,{theme:"rectGrayWhite",width:"14.4rem",height:"4.6rem",onClick:o,children:(0,r.jsx)(l.o5,{
1children:s("common.cancel")})}),(0,r.jsx)(l.$n,{width:"14.4rem",height:"4.6rem",bgColor:n,disabled:"ready"!==t.status||a,onClick:c,children:(0,r.jsx)(l.o5,{color:"w1",children:s("done"===t.status?"common.used":"common.use")})})]})]})},y=e=>{let{bundles:t,moveToBundleDetail:n}=e,a=(0,i.c)();return(0,r.jsxs)(l.pT,{flexDirection:"column",alignItems:"center",gap:"1.6rem",padding:"1.6rem 1.6rem 3.2rem",className:v().fadeIn,children:[t.map(e=>(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.6rem",width:"100%",children:[(0,r.jsx)(l.wv,{color:"w4",direction:"horizontal"}),(0,r.jsxs)(l.pT,{flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"0 0.8rem",gap:"0.8rem",cursor:"pointer",onClick:()=>n(e.bundleId),children:[(0,r.jsxs)(l.pT,{flexDirection:"row",alignItems:"center",gap:"0.4rem",children:[(0,r.jsx)(l.In,{iconName:"bundle",color:e.color}),(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,lineHeight:"175%",children:(null==e?void 0:e.status)==="done"?e.name+"(".concat(a("common.used"),")"):e.name})]}),(0,r.jsx)(l.In,{iconName:"arrowRight",color:"b3",size:"1rem"})]},e.bundleId)]},e.bundleId)),(0,r.jsx)(l.wv,{color:"w4",direction:"horizontal"}),(0,r.jsx)(l.o5,{fontWeight:700,lineHeight:"175%",fontSize:"2rem",color:"red1",className:v().warning,children:a("common.staffOnly")})]})};var T=n(62544),I=n(15374),N=n(60155),S=n(25903),B=n(39713),A=n(92842);let z=e=>{let{mainColor:t,ticket:n,currentTicketIdx:i,currentModal:a,closeModal:o,setTicketList:c}=e,{bundles:s,currentBundle:d,mainBundleColor:m,isOutOfAvailableTime:u,moveToBundleDetail:h,closeBundleModal:f,backToBundleList:g,useBundle:x}=(e=>{var t;let{ticket:n,currentTicketIdx:r,closeModal:i,setTicketList:a}=e,{loadingHandler:o}=(0,p.G)(),[l,c]=(0,T.useState)(null),{bundles:s}=n,d=(null==(t=s[0])?void 0:t.color)||"#E83B47",m=async()=>{l&&await o(async()=>{await (0,A._c)({ticketId:n.id,bundleId:l.bundleId}),a(e=>e.map((e,t)=>{if(t===r){let t=e.bundles.map(e=>e.bundleId===l.bundleId?{...e,status:"done",usedAt:new Date}:e);return{...e,bundles:t}}return e})),s.filter(e=>"ready"===e.status&&e.bundleId!==l.bundleId).length?h():u()})},u=()=>{c(null),i()},h=()=>{c(null)};return{bundles:s,currentBundle:l,mainBundleColor:d,isOutOfAvailableTime:(0,I.d)(n.stage.openVenue,(0,N.L)(new Date,12))||(0,S.Y)(n.stage.startStage,(0,B.O)(new Date,24)),moveToBundleDetail:e=>{let t=s.find(t=>(null==t?void 0:t.bundleId)===e);c(null!=t?t:null)},closeBundleModal:u,backToBundleList:h,useBundle:m}})({ticket:n,currentTicketIdx:i,closeModal:o,setTicketList:c});return(0,r.jsxs)(l.aF,{open:"bundle"===a,children:[(0,r.jsxs)(l.pT,{className:v().bundleImageContainer,background:d?d.color:m,children:[(0,r.jsx)("div",{className:v().imageWrapper,children:(0,r.jsx)(k(),{src:w,alt:"bundleImage",layout:"fill",objectFit:"cover"})}),d&&(0,r.jsx)("span",{className:v().returnButton,onClick:g,children:(0,r.jsx)(l.In,{iconName:"arrowLeft",size:"2.4rem",color:"w1"})}),(0,r.jsx)("span",{className:v().closeButton,onClick:f,children:(0,r.jsx)(l.In,{iconName:"
1close",size:"2.4rem",color:"w1"})})]}),(0,r.jsx)(l.pT,{flexDirection:"column",className:v().modalContent,children:d?(0,r.jsx)("div",{className:v().fadeIn,children:(0,r.jsx)(b,{currentBundle:d,mainColor:t,isOutOfAvailableTime:u,backToBundleList:g,useBundle:x})}):(0,r.jsx)(y,{bundles:s,moveToBundleDetail:h})})]})};var R=n(68989),W=n(56079);let D=e=>{let{resaleItemId:t,currentModal:n,closeModal:a}=e,o=(0,i.c)(),{handleCancelResale:c}=(e=>{let{closeModal:t,resaleItemId:n}=e,{loadingHandler:r}=(0,p.G)(),i=(0,R.x)(),a=(0,u.useRouter)();return{handleCancelResale:async()=>{await r(async()=>{await (0,W.Sc)(n),i(["ticketList"]),t(),a.push("/ticket")})}}})({closeModal:a,resaleItemId:t});return(0,r.jsx)(l.J2,{open:"cancelResale"===n,headline:[o("modal.cancelResale.headline1"),o("modal.cancelResale.headline2")],btnRText:o("common.yes"),btnLText:o("common.no"),onClickCross:a,onClickBtnL:a,onClickBtnR:c,children:o("modal.cancelResale.message")})},E=e=>{let{currentModal:t,closeModal:n,checkOpenDistributionModal:a,openDistributionWithExistingTransferUrl:o}=e,c=(0,i.c)();return(0,r.jsx)(l.J2,{open:"checkTransfer"===t,headline:[c("modal.checkTransfer.headline1"),c("modal.checkTransfer.headline2")],btnRText:c("common.yes"),btnLText:c("common.no"),onClickCross:n,onClickBtnL:o,onClickBtnR:a,children:c("modal.checkTransfer.message")})};var U=n(11230),P=n.n(U),M=n(94682),F=n.n(M);let q=e=>{let{url:t,isCopied:n,onCopy:a,product:o="default"}=e,c=(0,i.c)(),s="sakuticket"===o||"ticketdive"===o,d=(0,r.jsxs)(l.pT,{alignItems:"center",justifyContent:"center",className:s?F().productC
1opyButtonContent:F().copyButtonContent,children:[(0,r.jsx)(l.In,{iconName:"check",color:"sakuticket"===o?"#F9BB00":"primary-color",size:"1.6rem"}),(0,r.jsx)("span",{children:c("common.copied")})]}),m=P()(F().productCopyButton,"sakuticket"===o&&F().sakuticketCopyButton,"ticketdive"===o&&F().ticketdiveCopyButton,n&&("sakuticket"===o?F().sakuticketCopyButtonCopied:F().ticketdiveCopyButtonCopied));return(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",width:"100%",className:F().container,children:[(0,r.jsx)(l.pT,{className:F().urlBox,children:(0,r.jsx)(l.o5,{width:"100%",fontSize:"1.2rem",padding:"1.5rem 1.6rem",border:"1px solid var(--w4)",borderRadius:"0.4rem",overflow:"scroll",whiteSpace:"nowrap",children:(0,r.jsx)("span",{"data-sentry-mask":"",children:t})})}),s?(0,r.jsx)(l.pT,{className:F().productCopyButtonWrap,children:(0,r.jsx)(l.$n,{onClick:a,theme:"customColor",size:"none",className:m,children:n?d:c("common.copyUrl")})}):(0,r.jsx)(l.$n,{onClick:a,theme:n?"rectOutlineMain":"rectMain",size:"xl",fullWidth:!0,children:n?d:c("common.copyUrl")})]})};var L=n(90860),O=n(89070);let H=e=>{var t,n,r;let i="ja"===(0,O.Ym)()?L.ja:void 0,{event:a,stage:o,ticketInfo:l,ticketType:d,bundles:m}=e,u=(0,s.BR)(o.openVenue,"M.d",{locale:i}),p=(0,s.BR)(o.openVenue,"EEE",{locale:i}),h=(0,s.BR)(o.openVenue,"H:mm"),f=(0,s.BR)(o.startStage,"H:mm"),g=(0,s.BR)(null!=(n=e.enterAt)?n:o.startStage,"H:mm"),x=(null==(t=m[0])?void 0:t.color)||"#E83B47",{account:_}=(0,c.Um)(),j=null!=(r=null==_?void 0:_.fullName)?r:"",k="queue"===d.type;return{event:a,stage:o,ticketInfo:l,ticketType:d,bundles:m,formattedDate:u,formattedDay:p,formattedOpenTime:h,formattedStartTime:f,enterAtTime:g,mainBundleColor:x,participantName:j,isQueue:k}};var V=n(17893),J=n.n(V);let G=e=>{let{ticket:t,mainColor:n}=e,{event:i,stage:a,ticketType:o,formattedDate:c,formattedDay:s}=H(t);return(0,r.jsxs)(l.pT,{flexDirection:"column",className:J().ticketDetails,gap:"1.2rem",children:[(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",children:[(0,r.jsx)(l.o5,{fontSize:"2rem",lineHeight:"150%",ellipsis:!0,fontWeight:600,children:i.name}),(0,r.jsx)(l.i5,{children:(0,r.jsx)(l.o5,{fontWeight:600,children:a.venue.name})})]}),(0,r.jsxs)(l.pT,{justifyContent:"space-between",alignItems:"queue"===o.type?"center":"start",flexDirection:"queue"===o.type?"row":"column",gap:"queue"===o.type?0:"1.2rem",children:[(0,r.jsxs)(l.pT,{alignItems:"center",justifyContent:"center",children:[(0,r.jsx)(l.o5,{fontSize:"4rem",fontWeight:700,children:c}),(0,r.jsx)(l.o5,{fontSize:"2rem",fontWeight:700,padding:"1rem 0 1rem 1rem",children:s})]}),"queue"===o.type?(0,r.jsx)(l.pT,{backgroundColor:n,borderRadius:"2px",whiteSpace:"nowrap",padding:"1.2rem",children:(0,r.jsx)(l.o5,{fontWeight:700,fontSize:"2.4rem",color:"w1",children:t.referenceNumber})}):(0,r.jsx)(l.o5,{fontSize:"1.6rem",lineHeight:"150%",ellipsis:!0,fontWeight:600,children:t.referenceNumber})]})]})};var K=n(49468),Y=n.n(K);let Q=e=>{let{companionCandidates:t}=e,n=(0,i.c)();return(0,r.jsxs)(l.pT,{className:Y().companionInfoWrapper,children:[(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,lineHeight:"175%",children:n("companion.registeredAccountOnly")}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",lineHeight:"175%",children:n("companion.registeredCompanionOnly")}),(0,r.jsx)("ul",{className:Y().companionList,children:t.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)(l.o5,{fontSize:"1.4rem",lineHeight:"175%",className:e.hasReceivedTicket?Y().companionReceived:Y().companionText,children:[e.userName,"(",e.userEmail,")",e.hasReceivedTicket&&" ".concat(n("companion.received"))]})},e.companionCandidateId))})]})};var X=n(91476),$=n.n(X),Z=n(24437);let ee=e=>{let{ticket:t,mainColor:n,transferUrl:a,currentModal:o,closeModal:c}=e,s=(0,i.c)(),{isUrlCopied:d,companionCandidates:m,copyUrl:u,closeDistributionModal:p}=(e=>{let{transferUrl:t,ticket:n,closeModal:r}=e,[i,a]=(0,T.useState)(!1),[o,l]=(0,T.useState)([]),{getUid:c}=(0,Z.F)();return(0,T.useEffect)(()=>{(async()=>{let e=await c();e&&e===n.purchaserUid&&l(await (0,W.qE)({applicationId:n.applicationId,purchaserUid:e}))})()},[n.applicationId]),{isUrlCopied:i,companionCandidates:o,copyUrl:()=>{navigator.clipboard.writeText(t).then(()=>{a(!0),setTimeout(()=>a(!1),3e3)})},closeDistributionModal:()=>{r()}}})({transferUrl:a,ticket:t,closeModal:c});return(0,r.jsx)(l.aF,{open:"distribution"===o,onClickBg:p,children:(0,r.jsxs)(l.pT,{flexDirection:"column",className:$().modalContent,children:[(0,r.jsx)("span",{className:$().closeButton,onClick:p,children:(0,r.jsx)(l.In,{iconName:"
1close",size:"2.4rem",color:"b1"})}),(0,r.jsx)(G,{ticket:t,mainColor:n}),(0,r.jsxs)(l.pT,{flexDirection:"column",alignItems:"center",gap:"1.2rem",padding:"3.2rem 2rem",children:[(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,lineHeight:"175%",children:s("modal.distribution.title")}),(0,r.jsx)(l.o5,{lineHeight:"200%",alignItems:"center",textAlign:"center",children:s("modal.distribution.shareUrlDescription")}),(0,r.jsx)(q,{url:a,isCopied:d,onCopy:u,product:"ticketdive"}),m.length>0&&(0,r.jsx)(Q,{companionCandidates:m})]})]})})};var et=n(16130),en=n.n(et),er=n(86009),ei=n(87039),ea=n(41630),eo=n(10348);let el=e=>{let{currentModal:t,currentTicket:n,closeModal:a,setTicketList:o,staffCode:s}=e,d=(0,i.c)(),m=(e=>{let{currentTicket:t,closeModal:n,setTicketList:r,staffCode:a}=e,o=(0,i.c)(),{loadingHandler:l}=(0,p.G)(),{refreshAccount:s}=(0,c.hC)(),d=async()=>{var e;let n=await s({force:!0});if(!n){if(null===await (0,ei.VW)().catch(()=>void 0))throw new er.A("session_expired");throw new er.A("account_refresh_failed")}let{referenceNumber:r,eventName:i}=(e=>{var t,n,r,i,a,o;let{ticket:l}=e,c=l.id;return{referenceNumber:null!=(a=null==(n=document.getElementById("referenceNumber-".concat(c)))||null==(t=n.textContent)?void 0:t.trim())?a:"",eventName:null!=(o=null==(i=document.getElementById("eventName"))||null==(r=i.textContent)?void 0:r.trim())?o:""}})({ticket:t});r&&i||"queue"!==t.ticketType.type||await (0,eo._)("error",o("event.entranceError"),o("event.ticketStringError"),{onError:ea.C});let a=t.participantUid===n.uid;return{referenceNumber:r,eventName:i,displayParticipantName:a?n.fullName:"",displayFavorite:a&&null!=(e=t.favorite)?e:""}};return async()=>{await l(async()=>{let{referenceNumber:e,eventName:i,displayParticipantName:o,displayFavorite:l}=await d();await (0,A.P9)({ticketId:t.id,referenceNumber:e,eventName:i,displayParticipantName:o,displayFavorite:l,staffCode:a}),r(e=>e.map(e=>e.id===t.id?{...e,entranceStatus:"done",enterAt:new Date,method:"button"}:e)),n()})}})({currentTicket:n,closeModal:a,setTicketList:o,staffCode:s});return(0,r.jsx)(l.aF,{open:"enter"===t,onClickBg:()=>{},children:(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"3.2rem",className:en().modalContent,justifyContent:"center",alignItems:"center",children:[(0,r.jsx)("span",{className:en().closeButton,onClick:a,children:(0,r.jsx)(l.In,{iconName:"
1close",size:"2.4rem",color:"b1"})}),(0,r.jsxs)(l.pT,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(l.o5,{fontWeight:700,lineHeight:"175%",fontSize:"2rem",color:"red1",className:en().warning,children:d("common.staffOnly")}),(0,r.jsx)(l.o5,{fontWeight:700,lineHeight:"175%",color:"b1",fontSize:"2rem",children:d("common.enterConfirm.question")})]}),(0,r.jsx)(l.pT,{children:(0,r.jsx)(l.o5,{color:"b1",lineHeight:"175%",alignItems:"center",children:d("common.enterConfirm.warning")})}),(0,r.jsxs)(l.pT,{gap:"2.2rem",children:[(0,r.jsx)(l.$n,{theme:"rectGrayWhite",width:"14.4rem",height:"4.6rem",onClick:a,children:(0,r.jsx)(l.o5,{children:d("common.cancel")})}),(0,r.jsx)(l.$n,{width:"14.4rem",height:"4.6rem",onClick:m,children:(0,r.jsx)(l.o5,{color:"w1",children:d("common.enter")})})]})]})})};var ec=n(85314),es=n(52518),ed=n.n(es),em=n(89668),eu=n(43801),ep=n(32264),eh=n(32560);let ef=e=>{var t,n;let{ticket:a,mainColor:o,transferId:s,currentModal:m,closeModal:f,refreshTicketAndList:g}=e,x=(0,i.c)(),{account:_,register:j,onSubmit:k,errors:w,unregisteredFavoriteArtists:C,selectPropsForFavorite:v}=(e=>{var t,n;let{ticket:r,transferId:i,refreshTicketAndList:a,closeModal:o}=e,l=(0,u.useRouter)(),{account:s}=(0,c.Um)(),{setAccount:m}=(0,c.hC)(),{loadingHandler:f}=(0,p.G)(),g=null==(n=r.ticketInfo)||null==(t=n.customize)?void 0:t[0],x=(()=>{if(!(null==g?void 0:g.selectOptions)||1===g.selectOptions.length)return"";if(2===g.selectOptions.length){var e;return String(null!=(e=g.selectOptions[1].value)?e:"")}return g.selectOptions.length>2?String(g.selectOptions[0].value):""})(),{register:_,control:j,setValue:k,handleSubmit:w,formState:{errors:C}}=(0,d.mN)({defaultValues:{favoriteArtists:[],firstName:"",lastName:"",favorite:x}}),v=(0,d.FH)({control:j,name:"favoriteArtists"});(0,T.useEffect)(()=>{if(!s)return;let{artists:e}=r.stage;(0,eh.HJ)({artists:e,uid:s.uid,defaultValue:!0}).then(e=>{e.length<4&&k("favoriteArtists",e)}).catch(ea.C)},[s,r,k]);let b=(0,T.useMemo)(()=>{if(!g||!g.selectOptions||0===g.selectOptions.length||(0,eu.TP)(g,0))return;let e=g.selectOptions.map(e=>({name:String(e.value),value:"boolean"!=typeof e.value?e.value:"",hidden:e.hidden}));return{selectLabel:g.label,transformedOptions:e}},[r]),y=!(null==s?void 0:s.fullName),I=!!(b&&b.selectLabel),N=w(async e=>{if(!i)return;if(!s)return void l.push("/signin?redirect=/ticket/".concat(r.id,"?query=").concat(i));if(r.ticketInfo.isPhoneNumberNeeded&&!s.phoneNumber)throw new em.A("phone_number_needed",r.id,i);if(r.ticketInfo.isTransferRequired&&await (0,A.D7)({applicationId:r.applicationId,uid:s.uid}))throw new em.A("already_received");let{favoriteArtists:t,firstName:n,lastName:c,favorite:d}=e,u=t.filter(e=>e.isChecked);(e=>{let{formData:t,shouldValidateName:n,shouldValidateFavorite:r,question:i}=e,a=[];if(n&&(t.lastName||a.push("lastName"),t.firstName||a.push("firstName")),r&&i&&(!t.favorite||""===t.favorite.trim()||"選択してください"===t.favorite)&&a.push("質問「".concat(i,"」")),a.length>0)throw new ep.A(a)})({formData:e,shouldValidateName:y,shouldValidateFavorite:I,question:null==b?void 0:b.selectLabel}),await f(async()=>{if(!s.fullName){let e="".concat(c).concat(n);await (0,h.xl)({fullName:e}),m(t=>t?{...t,fullName:e}:null)}await (0,eh.rH)({favoriteArtists:u,user:s}),await (0,A.Wt)({ticketId:r.id,multiDaysTicketId:r.multiDaysTicketId,transferId:i,favorite:d}),await a(),o(),l.push("/ticket/".concat(r.id))})});return{account:s,register:_,onSubmit:N,errors:C,unregisteredFavoriteArtists:v,selectPropsForFavorite:b}})({ticket:a,transferId:s,refreshTicketAndList:g,closeModal:f});return(0,r.jsx)(l.aF,{open:"receive"===m&&!!s,children:(0,r.jsxs)(l.pT,{flexDirection:"column",className:ed().modalContent,children:[(0,r.jsx)(G,{ticket:a,mainColor:o}),(0,r.jsxs)(l.pT,{flexDirection:"column",alignItems:"center",gap:"2.4rem",padding:"3.2rem 2rem",children:[(0,r.jsxs)(l.pT,{flexDirection:"column",alignItems:"center",gap:"1.2rem",children:[(0,r.jsx)(l.o5,{textAlign:"center",fontSize:"1.6rem",fontWeight:600,lineHeight:"175%",children:x("modal.receive.headline")}),(0,r.jsx)(l.o5,{lineHeight:"175%",alignItems:"center",textAlign:"center",children:x("modal.receive.description")})]}),_&&!_.fullName&&(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",children:[(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:600,children:x("form.fullName")}
1),(0,r.jsxs)(l.pT,{gap:"1.2rem",children:[(0,r.jsx)(l.pd,{hideLabel:!0,placeholder:x("form.lastName"),required:!0,...j("lastName"),autoComplete:"family-name",inputMode:"text",error:null==(t=w.lastName)?void 0:t.message}),(0,r.jsx)(l.pd,{hideLabel:!0,placeholder:x("form.firstName"),required:!0,...j("firstName"),autoComplete:"given-name",inputMode:"text",error:null==(n=w.firstName)?void 0:n.message})]}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",lineHeight:"175%",fontWeight:600,children:x("form.nameRegistrationNote")})]}),_&&v&&v.selectLabel&&(0,r.jsx)(ec.l,{label:v.selectLabel,options:v.transformedOptions,...j("favorite")},v.selectLabel),(0,r.jsx)("div",{style:{backgroundColor:o,borderRadius:"2.4rem",cursor:"pointer"},onClick:k,children:(0,r.jsx)(l.o5,{padding:"1.6rem 0 1.8rem 0",width:"24rem",height:"4.8rem",fontWeight:600,textAlign:"center",color:"w1",children:x(_?"common.receive":"common.loginToReceive")})}),C.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.wv,{direction:"horizontal",color:"w5"}),(0,r.jsxs)(l.pT,{flexDirection:"column",alignItems:"center",gap:"1.2rem",className:"hello",width:"29.4rem",children:[(0,r.jsx)(l.o5,{color:"b1",textAlign:"center",fontFamily:"Hiragino Kaku Gothic Pro",fontSize:"1.8rem",fontWeight:600,lineHeight:"175%",children:x("modal.receive.favoriteRegistration")}),(0,r.jsx)(l.o5,{color:"b1",textAlign:"center",fontFamily:"Hiragino Kaku Gothic Pro",fontSize:"1.2rem",lineHeight:"200%",children:x("modal.receive.favoriteDescription")}),(0,r.jsx)(l.pT,{justifyContent:"center",alignItems:"flex-start",alignContent:"flex-start",gap:"1.2rem",alignSelf:"stretch",flexWrap:"wrap",children:C.map((e,t)=>(0,r.jsx)(l.oV,{isShrunk:!0,fontSize:"1.4rem",fontWeight:600,lineHeight:"150%",label:e.name,...j("favoriteArtists.".concat(t,".isChecked"))},e.id))})]})]})]})]})})},eg=e=>{let{currentTicket:t,currentModal:n,closeModal:a}=e,o=(0,i.c)(),{handleReturn:c}=(e=>{let{closeModal:t,currentTicket:n}=e,{loadingHandler:r}=(0,p.G)(),i=(0,R.x)(),a=(0,u.useRouter)();return{handleReturn:async()=>{await r(async()=>{await (0,A.TK)({ticketId:n.id,multiDaysTicketId:n.multiDaysTicketId}),i(["ticketList"]),t(),a.push("/ticket")})}}})({currentTicket:t,closeModal:a});return(0,r.jsx)(l.J2,{open:"return"===n,headline:[o("modal.return.headline1"),o("modal.return.headline2")],btnRText:o("common.return"),btnLText:o("common.cancel"),onClickCross:a,onClickBtnL:a,onClickBtnR:c,children:o("modal.return.message")})},ex=e=>{let{currentModal:t,closeModal:n,onSubmit:a}=e,o=(0,i.c)(),[c,d]=(0,T.useState)(""),m=()=>{d(""),n()};return(0,r.jsx)(l.J2,{open:"staffCode"===t&&!1,onClickBg:()=>{},onClickCross:m,onClickBtnL:m,onClickBtnR:()=>{let e=c===(0,s.BR)(new Date,"MMdd");if(!e){d(""),n();return}a(c,e),d(""),n()},headline:[o("modal.staffCode.headline")],btnLText:o("common.cancel"),btnRText:o("common.send"),padding:"7.2rem 1.6rem 4.8rem",children:(0,r.jsx)(l.pT,{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"2.4rem",children:(0,r.jsx)(l.pd,{value:c,onChange:e=>{d(e.target.value)},placeholder:o("form.staffCode"),width:"30rem",hideLabel:!0})})})};var e_=n(16234);let ej=e=>{let{currentModal:t,closeModal:n}=e,a=(0,i.c)(),{logout:o,handleBackTicketList:c}=(e=>{let{closeModal:t}=e,{handleLogout:n}=(0,e_._)(),r=(0,u.useRouter)();return{logout:async()=>{n(),t()},handleBackTicketList:()=>{r.push("/ticket")}}})({closeModal:n});return(0,r.jsx)(l.J2,{open:"wrong"===t,headline:[a("modal.wrongUrl.headline")],onClickBtnL:c,onClickBtnR:o,btnRText:a("common.logout"),btnLText:a("common.backToList"),children:a("modal.wrongUrl.message")})};var ek=n(41010),ew=n.n(ek);let eC=e=>{let{title:t,note:n,onClick:i}=e;return(0,r.jsxs)(l.pT,{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"1.2rem",className:ew().restrictionBanner,onClick:i,cursor:i?"pointer":void 0,children:[(0,r.jsx)(l.o5,{color:"w1",fontWeight:600,fontSize:"1.6rem",children:t}),(0,r.jsx)(l.o5,{color:"w1",fontWeight:600,fontSize:"1.4rem",children:n})]})};var ev=n(27651),eb=n.n(ev),ey=n(46009),eT=n.n(ey),eI=n(74410),eN=n(47007);let eS=e=>"notFcUser"===e.entranceBlockReason||"verificationFailed"===e.entranceBlockReason,eB=e=>{let{eventUrl:t,label:n}=e;return(0,r.jsx)(l.MX,{href:"/event/".concat(t),target:"_blank",children:(0,r.jsxs)(l.pT,{alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"0.8rem",className:eT().pointer,children:[(0,r.jsx)(l.In,{iconName:"arrowAndSquare",size:"2rem",color:"b1"}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",whiteSpace:"nowrap",fontWeight:600,color:"b1",children:n})]})})},eA=e=>{let{eventUrl:t,eventDetailLabel:n,statusLabel:i}=e;return(0,r.jsxs)(l.pT,{className:"".concat(eT().lowerWrapper," ").concat(eT().lowerWrapperWithStatus),justifyContent:"space-between",alignItems:"center",children:[(0,r.jsx)(eB,{eventUrl:t,label:n}),(0,r.jsx)("div",{className:eT().statusPill,children:(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,color:"w1",className:eT().statusPillText,children:i})})]})},ez=e=>{let{currentTicket:t,currentTicketIdx:n,openDistributionModal:a,openReturnModal:o,openEnterModal:s,openCancelResaleModal:d,mainColor:m,isStaffCodeValid:p,openStaffCodeModal:h}=e,{isOutOfAvailableTime:f,isEntered:g,isOnlyQrCode:x,isPurchaser:_,isParticipant:j,isCanceled:k,isDistributed:w,isFcRestricted:C,isTransferRequiredA
1ndShouldDisable:v,canOpenStaffCodeModal:b,isDistributionColorFaint:y,isForceTransferTicketInfo:z}=((e,t,n)=>{let{account:r}=(0,c.Um)(),i=null==r?void 0:r.uid,a=(0,I.d)(e.stage.openVenue,(0,N.L)(new Date,6))||(0,S.Y)(e.stage.startStage,(0,B.O)(new Date,24)),o="done"===e.entranceStatus,l=e.purchaserUid===i,s=e.participantUid===i,d=e.stage.isOnlyQrCode,m="cancel"===e.entranceStatus,u=e.purchaserUid!==e.participantUid,p=eS(e),{transferRestriction:h,isTransferRequired:f}=e.ticketInfo,g=l&&f&&!e.ticketInfo.isForceTransferToPreRegisteredCompanion&&t>0&&!n;return{isOutOfAvailableTime:a,isEntered:o,isOnlyQrCode:d,isPurchaser:l,isParticipant:s,isCanceled:m,isDistributed:u,isFcRestricted:p,isTransferRequiredAndShouldDisable:g,canOpenStaffCodeModal:!a&&g,isDistributionColorFaint:0===t&&("onlyForCompanion"===h||"onlyForPreRegisteredCompanion"===h)&&l||"untransferable"===h,isForceTransferTicketInfo:!0===e.ticketInfo.isForceTransferToPreRegisteredCompanion}})(t,n,p),{successResaleItem:R,isResalePeriod:W,canCancelResale:D,moveToResalePage:E}=(e=>{let t=(0,u.useRouter)(),[n,r]=(0,T.useState)(!1),[i,a]=(0,T.useState)(!1),[o,l]=(0,T.useState)();return(0,T.useEffect)(()=>{(async()=>{let{resaleIds:t}=e.ticketType;if(!e.ticketInfo.isDeleted&&(null==t?void 0:t.length)){let i=t.at(-1);if(i){let{ticketInfoId:t}=i,o=await (0,A.do)(t).catch(()=>null);if(o){var n;let{resaleStartApply:t,resaleEndApply:i}=o;a((0,eI.R)(t)&&(0,eN.G)(i)),l(null==e?void 0:e.resaleItems.find(e=>"success"===e.status));let c=null==e?void 0:e.resaleItems.filter(e=>"onSale"===e.status);r("onSale"===(null==c||null==(n=c[0])?void 0:n.status)&&new Date<i)}}}})()},[e]),{successResaleItem:o,isResalePeriod:i,canCancelResale:n,moveToResalePage:()=>{e.applicationId&&t.push("/application/".concat(e.applicationId,"/resale"))}}})(t),{resaleItems:U}=t,P=U.some(e=>"onSale"===e.status),M=_&&W&&U.length&&D&&P&&"onSale"===t.entranceStatus,F=(0,i.c)();if(k)return(0,r.jsx)(l.pT,{className:eT().lowerWrapper,justifyContent:"center",alignItems:"center",children:(0,r.jsx)(l.o5,{fontSize:"2rem",fontWeight:600,children:F("ticket.canceled")})});let q=w&&_?F("ticket.distributed"):g&&j?((e,t)=>{switch(e.method){case"admin":return t("ticket.enteredByAdmin");case"qr":return t("ticket.enteredByQr");case"button":return t("ticket.enteredByButton");case"app":return t("ticket.enteredByApp");default:return t("ticket.entered")}})(t,F):null;if(q)return(0,r.jsx)(eA,{eventUrl:t.event.url,eventDetailLabel:F("ticket.eventDetail"),statusLabel:q});if(M)return(0,r.jsx)(l.pT,{className:eT().lowerWrapper,justifyContent:"center",alignItems:"center",children:(0,r.jsx)(l.$n,{onClick:d,theme:"rectBlack",bgColor:"b1",height:"5.4rem",width:"34.2rem",borderRadius:"3.2rem",padding:"1.6rem 7.2rem",justifyContent:"center",alignItems:"center",gap:"1rem",flexShrink:"0",children:(0,r.jsx)(l.o5,{color:"w1",fontSize:"1.6rem",children:F("ticket.cancelResale")})})});if(_&&!D){var L;if(null==R||null==(L=R.ticketIds)?void 0:L.includes(t.id))return(0,r.jsx)(l.pT,{className:eT().lowerWrapper,justifyContent:"center",alignItems:"center",children:(0,r.jsx)(l.o5,{fontSize:"2rem",fontWeight:600,children:F("ticket.resaleCompleted")})});if("onSale"===t.entranceStatus&&P)return(0,r.jsx)(l.pT,{className:eT().lowerWrapper,justifyContent:"center",alignItems:"center",children:(0,r.jsx)(l.o5,{fontSize:"2rem",fontWeight:600,children:F("ticket.resaleOnSale")})})}return(0,r.jsxs)(l.pT,{className:eT().lowerWrapper,justifyContent:"space-between",alignItems:"center",children:[(0,r.jsxs)(l.pT,{gap:"2rem",children:[!z&&(0,r.jsxs)(l.pT,{alignItems:"center",flexDirection:"column",gap:"0.8rem",className:g?eT().notAllowed:eT().pointer,onClick:_?a:o,children:[(0,r.jsx)(l.In,{iconName:"distribution",size:"2rem",color:y?"b4":"b1"}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",whiteSpace:"nowrap",fontWeight:600,color:y?"b4":"b1",children:F(_?"common.distribute":"common.return")})]}),(0,r.jsx)(eB,{eventUrl:t.event.url,label:F("ticket.eventDetail")})]}),_&&W&&(0,r.jsxs)(l.pT,{alignItems:"center",flexDirection:"column",gap:"0.8rem",className:g?eT().notAllowed:eT().pointer,onClick:E,children:[(0,r.jsx)(l.In,{iconName:"resaleTicketPage",size:"3.2rem"}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",whiteSpace:"nowrap",fontWeight:600,children:F("ticket.resale")})]}),(0,r.jsx)(l.$n,{onClick:s,theme:"customColor",bgColor:m,height:"5.6rem",width:"25.2rem",borderRadius:"3.2rem",disabled:f||g||x||v||C,children:(0,r.jsx)(l.pT,{flexDirection:"column",gap:"0.6rem",children:v?(0,r.jsx)(l.o5,{fontSize:"1.4rem",color:"w1",children:F("ticket.companionTransferRequired")}):C?(0,r.jsx)(l.o5,{fontSize:"1.4rem",color:"w1",children:F("ticket.fcRestricted")}):x?(0,r.jsx)(l.o5,{fontSize:"1.4rem",color:"w1",children:F("ticket.qrCodeEntry")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.o5,{fontSize:"1.6rem",color:"w1",children:F("ticket.enter")}
1),(0,r.jsx)(l.o5,{color:"w1",children:F(f?"ticket.availableBeforeOpening":"ticket.staffOnly")})]})})})]})};var eR=n(36120),eW=n(12244),eD=n.n(eW);let eE=e=>{let{enterAtTime:t}=e,n=(0,i.c)();return(0,r.jsxs)(l.pT,{alignItems:"center",justifyContent:"center",className:eD().enteredStamp,children:[(0,r.jsx)(l.o5,{fontWeight:700,textAlign:"center",fontSize:"1.6rem",className:eD().entered,children:n("ticket.enteredLabel")}),(0,r.jsx)(l.o5,{fontWeight:700,textAlign:"center",fontSize:"1.6rem",className:eD().enteredRotate,children:n("ticket.enteredLabel")}),(0,r.jsx)(l.pT,{flexDirection:"column",alignItems:"center",justifyContent:"center",className:eD().outerCircle,children:(0,r.jsx)(l.o5,{fontWeight:700,textAlign:"center",fontSize:"2.8rem",className:eD().time,children:t})}),(0,r.jsx)("div",{className:eD().bigCircle}),(0,r.jsx)("div",{className:eD().midCircle}),(0,r.jsx)("div",{className:eD().smallCircle})]})};var eU=n(86997),eP=n.n(eU),eM=n(31238),eF=n(47948),eq=n(5794),eL=n.n(eq);let eO=()=>(0,r.jsxs)(l.pT,{justifyContent:"center",alignItems:"center",className:eL().noImageContainer,children:[(0,r.jsx)(k(),{src:eR.F,className:eL().fullWidth,objectFit:"contain",alt:"noImage",sizes:"384px"}),(0,r.jsx)("div",{className:eL().noImageBg})]}),eH=e=>{let{ticket:t,event:n,isTransferRequiredTicket:i,isStaffCodeValid:a}=e,o=(()=>{let[e,t]=(0,T.useState)(0);return(0,T.useEffect)(()=>{let e=()=>{t(Math.floor(.75*(Math.min(window.innerWidth,480)-96)))};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e})(),c=eS(t);return t.qrCode&&(!i||a)&&!c&&"ready"===t.entranceStatus?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.pT,{justifyContent:"center",alignItems:"center",className:eL().qrContainer,children:(0,r.jsx)(eM.X,{value:t.qrCode,size:o,marginSize:4})}),!n.topImage&&(0,r.jsx)(eO,{})]}):n.topImage?(0,r.jsx)(eF.D,{imageSource:n.topImage}):(0,r.jsx)(eO,{})},eV=e=>{let{event:t,stage:n,ticket:i,formattedDate:a,formattedDay:o,formattedOpenTime:c,formattedStartTime:s}=e;return(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",className:eP().ticketInformation,children:[(0,r.jsx)(l.i5,{children:(0,r.jsx)(l.o5,{id:"eventName",fontSize:"2rem",lineHeight:"150%",ellipsis:!0,fontWeight:600,children:t.name})}),(0,r.jsx)(l.i5,{children:i.stage.venue.name!==i.stage.stageName?(0,r.jsxs)(l.pT,{gap:"0.8rem",whiteSpace:"nowrap",children:[(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:600,whiteSpace:"nowrap",children:n.venue.name}),(0,r.jsx)("div",{className:eP().borderForInline}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:600,whiteSpace:"nowrap",children:n.stageName})]}):(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:600,children:n.stageName})}),(0,r.jsxs)(l.pT,{className:"helvetica",alignItems:"center",gap:"0.8rem",height:"2.8rem",children:[(0,r.jsx)(l.o5,{fontSize:"2.8rem",fontWeight:700,children:a}),(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:700,children:o}),(0,r.jsx)("div",{className:eP().border}),(0,r.jsxs)(l.pT,{justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"2px",children:[(0,r.jsx)(l.o5,{color:"b3",fontWeight:400,fontSize:"1rem",children:"OPEN"}),(0,r.jsx)(l.o5,{fontWeight:700,fontSize:"1.6rem",children:c})]}),(0,r.jsxs)(l.pT,{justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"2px",children:[(0,r.jsx)(l.o5,{color:"b3",fontWeight:400,fontSize:"1rem",children:"START"}),(0,r.jsx)(l.o5,{fontWeight:700,fontSize:"1.6rem",children:s})]})]})]})},eJ=e=>{let{ticket:t,uid:n,participantName:a,ticketType:o,mainColor:c}=e,s=(0,i.c)();return(0,r.jsxs)(l.pT,{alignItems:"center",justifyContent:"space-between",gap:"1.6rem",className:eP().ticketInformation,children:[(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",width:"100%",overflow:"hidden",whiteSpace:"nowrap",children:[n===t.participantUid&&(0,r.jsxs)(l.pT,{gap:"1.2rem",children:[(0,r.jsx)("p",{children:a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.o5,{id:"participantDisplayName-".concat(t.id),fontSize:"1.2rem",fontWeight:600,color:"b2",children:a}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:400,color:"b2",children:s("ticket.sama")})]}):(0,r.jsx)(l.o5,{fontSize:"1.2rem",fontWeight:600,color:"b2",children:s("ticket.realNameNotRegistered")})}),t.favorite&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:eP().borderForInline}),(0,r.jsx)(l.o5,{id:"ticketFavorite-".concat(t.id),fontSize:"1.2rem",fontWeight:600,ellipsis:!0,minWidth:0,children:t.favorite})]})]}),(0,r.jsx)(l.i5,{children:(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,children:o.name})})]}),(0,r.jsx)(l.pT,{backgroundColor:c,borderRadius:"2px",whiteSpace:"nowrap",padding:"1.1rem 0.8rem",children:(0,r.jsx)(l.o5,{id:"referenceNumber-".concat(t.id),fontWeight:700,fontSize:"2.4rem",color:"w1",children:t.referenceNumber})})]})},eG=e=>{let{ticket:t,uid:n,participantName:a,ticketType:o}=e,c=(0,i.c)();return(0,r.jsx)(l.pT,{alignItems:"center",justifyContent:"space-between",gap:"1.6rem",className:eP().ticketInformation,children:(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",width:"100%",overflow:"hidden",
1whiteSpace:"nowrap",children:[(0,r.jsxs)(l.pT,{gap:"1.2rem",flexWrap:"wrap",children:[n===t.participantUid&&(0,r.jsx)("p",{children:a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.o5,{id:"participantDisplayName-".concat(t.id),fontSize:"1.6rem",fontWeight:600,color:"b1",children:a}),(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:400,color:"b1",children:c("ticket.sama")})]}):(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,color:"b1",children:c("ticket.realNameNotRegistered")})}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:eP().borderForInline}),(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,color:"b1",whiteSpace:"normal",children:o.name})]}),t.favorite&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:eP().borderForInline}),(0,r.jsx)(l.o5,{id:"ticketFavorite-".concat(t.id),fontSize:"1.6rem",fontWeight:600,color:"b1",whiteSpace:"normal",children:t.favorite})]})]}),(0,r.jsx)(l.pT,{flexWrap:"wrap",children:(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,color:"b1",whiteSpace:"normal",overflowWrap:"anywhere",wordBreak:"keep-all",id:"referenceNumber-".concat(t.id),lineHeight:1.5,children:t.referenceNumber})})]})})},eK=e=>{let{bundles:t,mainBundleColor:n,openBundleModal:a}=e,o=(0,i.c)(),c=t.filter(e=>"ready"===e.status).length;return(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.6rem",className:eP().ticketDetails,backgroundColor:n,position:"relative",children:[0===c&&(0,r.jsx)("div",{className:eP().bundleOverlay}),(0,r.jsxs)(l.pT,{alignItems:"center",justifyContent:"space-between",gap:"1.6rem",cursor:"pointer",className:eP().ticketInformation,onClick:a,position:"relative",zIndex:2,children:[(0,r.jsxs)(l.pT,{flexDirection:"row",alignItems:"center",gap:"1.2rem",children:[(0,r.jsxs)(l.pT,{className:eP().presentIconContainer,children:[(0,r.jsx)(l.In,{iconName:"present",color:"w1",size:"2.4rem"}),c>0&&(0,r.jsx)(l.pT,{alignItems:"center",justifyContent:"center",color:n,border:"1px solid ".concat(n),className:eP().bundleNum,children:c})]}),(0,r.jsx)(l.o5,{fontSize:"1.6rem",fontWeight:600,color:"w1",children:o("ticket.benefitTicket")})]}),(0,r.jsx)(l.In,{iconName:"arrowRight",size:"1.3rem",color:"w1"})]})]})},eY=e=>{let{ticket:t,mainColor:n,isTransferRequiredTicket:a,openBundleModal:o,isStaffCodeValid:s}=e,d=(0,i.c)(),{event:m,stage:u,ticketType:p,bundles:h,mainBundleColor:f,formattedDate:g,formattedDay:x,formattedOpenTime:_,formattedStartTime:j,enterAtTime:w,participantName:C,isQueue:v}=H(t),{account:b}=(0,c.Um)(),y=null==b?void 0:b.uid,I=(0,T.useRef)(null),N=(0,T.useRef)(null);return(e=>{let{ticketDetailsContainerRef:t,dottedLineRef:n}=e;(0,T.useEffect)(()=>{let e=t.current,r=n.current;if(!e||!r)return;let i=()=>{let t=e.getBoundingClientRect(),n=r.getBoundingClientRect(),i=n.top+n.height/2-t.top;e.style.setProperty("--notch-center-y","".concat(i,"px"))};i();let a=new ResizeObserver(i);return a.observe(e),a.observe(r),window.addEventListener("resize",i),()=>{a.disconnect(),window.removeEventListener("resize",i)}},[t,n])})({ticketDetailsContainerRef:I,dottedLineRef:N}),(0,r.jsxs)(l.pT,{flexDirection:"column",className:eP().ticketContainer,children:[(t.purchaserUid!==t.participantUid&&y===t.purchaserUid||"cancel"===t.entranceStatus)&&(0,r.jsx)(l.pT,{justifyContent:"center",alignItems:"center",zIndex:9,className:eP().receive,children:(0,r.jsx)(l.o5,{color:"w1",fontWeight:600,fontSize:"2rem",children:d("cancel"===t.entranceStatus?"common.canceled":"common.distributed")})}),(0,r.jsxs)(l.pT,{justifyContent:"center",alignItems:"center",className:eP().imageContainer,children:[t.enterAt&&y===t.participantUid&&(0,r.jsx)(eE,{enterAtTime:w}),(0,r.jsx)(l.pT,{className:eP().imageBlur,children:m.topImage&&(0,r.jsx)(k(),{src:m.topImage,alt:d("common.backgroundImage"),layout:"fill",objectFit:"cover",sizes:"384px"})}),(0,r.jsx)(eH,{ticket:t,event:m,isTransferRequiredTicket:a,isStaffCodeValid:s})]}),(0,r.jsxs)(l.pT,{ref:I,flexDirection:"column",gap:"1.8rem",className:"".concat(eP().ticketDetails," ").concat(h.length>0?eP().notchBottom:""),children:[eR.e&&(0,r.jsx)(k(),{src:eR.e,alt:d("common.backgroundImage"),className:eP().ticketImage}),(0,r.jsx)(eV,{event:m,stage:u,ticket:t,formattedDate:g,formattedDay:x,formattedOpenTime:_,formattedStartTime:j}),(0,r.jsx)("div",{ref:N,className:eP().dottedLine}),(0,r.jsxs)(l.pT,{flexDirection:"column",gap:"1.2rem",children:[v?(0,r.jsx)(eJ,{ticket:t,uid:y,participantName:C,ticketType:p,mainColor:n}):(0,r.jsx)(eG,{ticket:t,uid:y,participantName:C,ticketType:p}),m.isSpecified&&(0,r.jsx)(l.pT,{zIndex:1,children:(0,r.jsxs)(l.o5,{fontSize:"1rem",color:"b2",lineHeight:"125%",children:[d("ticket.specificTicket"),(0,r.jsx)("br",{}),d("ticket.resaleProhibited"),(0,r.jsx)("br",{}),d("ticket.purchaserVerified")]})})]})]}),h.length>0&&(0,r.jsxs)("div",{className:eP().notchTop,children:[(0,r.jsx)("div",{className:eP().dottedLine}),(0,r.jsx)(eK,{bundles:h,mainBundleColor:f,openBundleModal:o})]})]})};var eQ=n(46646),eX=n(62671),e$=n(23987),eZ=n(90388);class e0{static getRgbFromHex(e){let t=e.replace(/^#/,""),n=parseInt(t.substring(0,2),16);return{r:n,g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16)}}static getHexFromRgb(e){let t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16);return"#".concat(t).concat(n).concat(r)}static blendColors(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#ffffff",r=this.getRgbFromHex(e),i=this.getRgbFromHex(n),a={r:Math.round(t*r.r+(1-t)*i.r),g:Math.round(t*r.g+(1-t)*i.g),b:Math.round(t*r.b+(1-t)*i.b)};return this.getHexFromRgb(a)}}let e1=e=>{var t,n;let r,{ticketMainColors:i,ticketPageColor:a,prefix:o,stages:l,stageId:c,ticketType:s}=e,d="#555555";return{mainColor:r=l&&c&&s&&l.length>1&&"seat"===s.type?null!=(t=((e,t,n)=>{var r;if(!(e.length>1))return null;let i=((e,t)=>{let n=[...e].sort((e,t)=>
1{let n=e.createdAt.getTime()-t.createdAt.getTime();return 0!==n?n:e.id.localeCompare(t.id)}).findIndex(e=>e.id===t);return -1===n?null:n})(e,t);return null===i?null:null!=(r=n[i%n.length])?r:null})(l,c,i))?t:d:a?"#".concat(a):(null==o?void 0:o.trim().toUpperCase())==="S"?"#d29e1f":null!=(n=i[Array.from(null!=o?o:"",e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%8])?n:d,subColor:e0.blendColors(r,.3)}},e2=["#682EFF","#2D9CDB","#E83B47","#08A460","#EC660F","#3060FA","#BB2FC7","#D29E1F"];var e5=n(61925);let e6=(e,t)=>{let{ticketPageColor:n,prefix:r}=e.ticketType;return e1({ticketMainColors:e2,ticketPageColor:n,prefix:r,stages:t,stageId:e.stageId,ticketType:e.ticketType})};n(23727);let e4=e=>{let{ticketId:t}=e,n=(0,i.c)(),{account:s}=(0,c.Um)(),{items:d,transform:m,origin:h}=(()=>{let[e,t]=(0,T.useState)(""),[n,r]=(0,T.useState)(""),i=Array.from({length:6});return(0,T.useEffect)(()=>{let{deg:e,origin:n}=(()=>{let e=new Date,t=parseInt(e.toISOString().slice(0,10).replace(/-/g,""),10);return[{deg:-30,origin:"25rem 70rem"},{deg:-90,origin:"27rem 50rem"},{deg:-60,origin:"30rem 60rem"},{deg:30,origin:"30rem 0"},{deg:60,origin:"40rem -5rem"},{deg:0,origin:"0 0"}][t*(e.getDay()+1)%6]})();t("rotate(".concat(e,"deg)")),r(n)},[]),{items:i,transform:e,origin:n}})(),{transferId:f,ticketList:g,setTicketList:x,currentTicket:j,isCompanionRequired:k,isFcRestricted:w,colorSet:C,initialIndex:v,currentTicketIdx:b,resaleItemId:y,currentModal:I,setCurrentModal:N,handleSlideChange:S,refreshTicketAndList:B,staffCode:W,isStaffCodeValid:U,handleStaffCodeSubmit:P,handleFcRestrictionBannerClick:M}=(e=>{var t,n;let r=(0,u.useRouter)(),{safeRedirect:i}=(0,eX.b)(),{loadingHandler:a}=(0,p.G)(),o=(0,R.x)(),l=(0,eQ.useSearchParams)(),s=(null==l?void 0:l.get("query"))||void 0,[d,m]=(0,T.useState)([]),[h,f]=(0,T.useState)(0),[g,x]=(0,T.useState)(null),[_,j]=(0,T.useState)(null),[k,w]=(0,T.useState)({mainColor:"#555555",subColor:"#cccccc"}),[C,v]=(0,T.useState)([]),[b,y]=(0,T.useState)(),[I,N]=(0,T.useState)(!1),{getUid:S}=(0,Z.F)(),{account:B}=(0,c.Um)(),z=d[h],W=null!=(n=null==z||null==(t=z.resaleItems.find(e=>"onSale"===e.status))?void 0:t.id)?n:"",D=(null==B?void 0:B.uid)===(null==z?void 0:z.purchaserUid),E=d.filter(e=>e.participantUid===(null==B?void 0:B.uid)).length,U=D&&(null==z?void 0:z.ticketInfo.isTransferRequired)&&!z.ticketInfo.isForceTransferToPreRegisteredCompanion&&E>=2,P=z&&eS(z);(0,T.useEffect)(()=>{a(async()=>{let t=await S();if(!e)return void r.push("/signin");if(!t&&!s)return void r.push("/signin?redirect=/ticket/".concat(e));let n=await (0,A.yN)({ticketId:e,uid:t}).catch(async e=>{throw await i("/ticket"),(0,ea.C)(e),e});m([{...n,qrCode:null}]);let a="seat"===n.ticketType.type?await e$.hy.list([["eventId","==",n.eventId],["startStage","asc",{}]]).then(e5.n).catch(e=>((0,ea.C)(e),[])):[];v(a);let{purchaserUid:o,participantUid:l,ticketType:c}=n;if(w(e1({ticketMainColors:e2,ticketPageColor:c.ticketPageColor,prefix:c.prefix,stages:a,stageId:n.stageId,ticketType:c})),s||t===o||t===l){if(s&&t!==o&&t!==l){let{isValid:i,isTransferred:a}=await (0,A.Ks)({ticketId:e,multiDaysTicketId:n.multiDaysTicketId,transferId:s});if(j(0),a||!i)if(!t)return void r.push("/signin?redirect=/ticket/".concat(e,"?query=").concat(s));else{if(a){if(o===l)throw new em.A("transfer_not_valid");throw new em.A("already_transferred")}if(!i)throw new em.A("transfer_not_valid")}x("receive")}else if(t){let{applicationId:r,stageId:i}=n;if(await F({uid:t,purchaserUid:o,applicationId:r,stageId:i,stages:a}),t===o&&s){let{isValid:t}=await (0,A.Ks)({ticketId:e,multiDaysTicketId:n.multiDaysTicketId,transferId:s});if(t)throw new em.A("this_is_purchaser")}}}else j(0),x("wrong")})},[]),(0,T.useEffect)(()=>{if(!d.length||!(null==B?void 0:B.uid))return;let e=(0,A.Er)({currentUid:B.uid,tickets:d,onEnter:e=>{let{ticketId:t,entranceStatus:n,enterAt:r,method:i}=e;m(e=>e.map(e=>e.id===t?{...e,entranceStatus:n,enterAt:r,method:i}:e))}});return()=>{e()}},[null==B?void 0:B.uid,d]);let M=async()=>{await a(async()=>{let t=await S(),{purchaserUid:n,participantUid:i,applicationId:a,stageId:l}=await (0,A.yN)({ticketId:e,uid:t}).catch(async e=>{throw await r.push("/ticket"),(0,ea.C)(e),e});(t===n||t===i)&&await F({uid:t,purchaserUid:n,applicationId:a,stageId:l,stages:C}),o(["ticketList"])})},F=async e=>{let{uid:t,purchaserUid:n,applicationId:r,stageId:i,stages:a}=e,o=await (0,A.TO)({uid:t,purchaserUid:n,applicationId:r,stageId:i});m(o);let l=o.findIndex(e=>e.participantUid===t),c=-1===l?0:l;j(c),f(c);let s=o[c];s&&w(e6(s,a))};return{transferId:s,ticketList:d,setTicketList:m,currentTicket:z,isCompanionRequired:U,isFcRestricted:P,colorSet
1:k,initialIndex:_,currentTicketIdx:h,resaleItemId:W,currentModal:g,setCurrentModal:x,handleSlideChange:e=>{let t=e.activeIndex;f(t);let n=d[t];n&&w(e6(n,C))},refreshTicketAndList:M,staffCode:b,isStaffCodeValid:I,handleStaffCodeSubmit:(e,t)=>{},handleFcRestrictionBannerClick:()=>a(async()=>{await (0,eZ.v)({ticketId:e}),await M(),m(e=>e.map(e=>e.id===z.id?{...e,entranceBlockReason:void 0}:e))})}})(t),{transferUrl:F,openDistributionModal:q,openReturnModal:L,openEnterModal:O,openBundleModal:H,openCancelResaleModal:V,closeModal:J,closeDistributionModal:G,checkOpenDistributionModal:K,openDistributionWithExistingTransferUrl:Y,isTransferRequired:Q}=(e=>{let{ticketList:t,currentTicketIdx:n,setCurrentModal:r,isStaffCodeValid:i}=e,a=(0,u.useRouter)(),{loadingHandler:o}=(0,p.G)(),{account:l}=(0,c.Um)(),s=(0,T.useRef)(null),[d,m]=(0,T.useState)(""),h=t[n],f=(null==h?void 0:h.ticketInfo.transferRestriction)==="untransferable",g=!!(null==h?void 0:h.ticketInfo.isTransferRequired);(0,T.useEffect)(()=>{l&&!l.fullName&&r("name")},[null==l?void 0:l.fullName]);let x=async e=>{if(e){s.current=window.location.pathname+window.location.search;try{let{pathname:t,search:n}=new URL(e);await a.replace("".concat(t).concat(n),void 0,{shallow:!0})}catch(t){(0,ea.C)(t,{context:{name:"syncAddressBarToTransferUrl",data:{transferUrlPath:e.split("?")[0]}}})}}},_=async()=>{if(g&&0!==n&&!i)throw new er.A("transfer_required");r("bundle")},j=()=>{r(null)},k=async()=>{h&&await o(async()=>{let e=await (0,A.uJ)({ticketId:h.id,multiDaysTicketId:h.multiDaysTicketId});if(e){m(e),await x(e),r("distribution");return}j()})};return{isUntransferable:f,isTransferRequired:g,transferUrl:d,openDistributionModal:async()=>{if(!h||"done"===h.entranceStatus)return;let{ticketInfo:e,id:t,purchaserUid:i,multiDaysTicketId:a}=h,{transferRestriction:c}=e;if("untransferable"===c)throw new em.A("transfer_prohibited");if(("onlyForCompanion"===c||"onlyForPreRegisteredCompanion"===c)&&0===n&&(null==l?void 0:l.uid)===i)throw new em.A("transfer_only_for_companion");if(await (0,A.RY)({ticketId:t,multiDaysTicketId:a}))return void r("checkTransfer");let s="";await o(async()=>{m(s=await (0,A.tQ)({ticketId:t,multiDaysTicketId:a}))}),await x(s),r("distribution")},openReturnModal:()=>{r("return")},openEnterModal:()=>{r("enter")},openBundleModal:_,openCancelResaleModal:()=>{r("cancelResale")},closeModal:j,closeDistributionModal:()=>{let e=s.current;s.current=null,null!==e&&a.replace(e,void 0,{shallow:!0}),r(null)},checkOpenDistributionModal:async()=>{await o(async()=>{let e=await (0,A.tQ)({ticketId:h.id,multiDaysTicketId:h.multiDaysTicketId});m(e),await x(e)}),r("distribution")},openDistributionWithExistingTransferUrl:k}})({ticketList:g,currentTicketIdx:b,setCurrentModal:N,isStaffCodeValid:U});return j&&null!=v?(0,r.jsxs)("div",{translate:"no",className:"".concat(ew().ticketWrapper," notranslate"),style:{backgroundColor:C.subColor},children:[k&&(0,r.jsx)(eC,{title:n("ticket.companionTransferRequired"),note:n("ticket.companionTransferRequiredNote")}),!k&&w&&(0,r.jsx)(eC,{title:n("ticket.fcRestricted"),note:n("ticket.fcRestrictedNote"),onClick:M}),(0,r.jsx)(l.pT,{flexDirection:"column",justifyContent:"space-between",className:ew().bgAnimation,transform:m,transformOrigin:h,children:d.map((e,t)=>(0,r.jsxs)(l.pT,{whiteSpace:"nowrap",children:[(0,r.jsxs)(l.o5,{color:"w3",fontSize:"6.4rem",fontWeight:700,letterSpacing:"0.2rem",opacity:.5,className:ew().bgTxt,children:[(0,r.jsx)("span",{className:"w".concat((t-1)*5)}),(0,r.jsxs)(l.o5,{color:"w3",fontSize:"6.4rem",fontWeight:700,letterSpacing:"0.2rem",opacity:.5,whiteSpace:"nowrap",children:["TicketDive"," ","TicketDive"]}),(0,r.jsx)("span",{className:"w".concat(25-(t-1)*5)})]}),(0,r.jsxs)(l.o5,{color:"w3",fontSize:"6.4rem",fontWeight:700,letterSpacing:"0.2rem",opacity:.5,className:ew().bgTxt,children:[(0,r.jsx)("span",{className:"w".concat((t-1)*5)}),(0,r.jsxs)(l.o5,{color:"w3",fontSize:"6.4rem",fontWeight:700,letterSpacing:"0.2rem",opacity:.5,whiteSpace:"nowrap",children:["TicketDive"," ","TicketDive"]}),(0,r.jsx)("span",{className:"w".concat(25-(t-1)*5)})]})]},t))}),(0,r.jsx)(o.RC,{className:eb().swiper,spaceBetween:24,slidesPerView:1,pagination:{clickable:!0,el:".".concat(eb().customPagination)},modules:[a.dK],onSlideChange:S,initialSlide:v,children:g.map((e,t)=>(0,r.jsx)(o.qr,{children:(0,r.jsx)(eY,{ticket:e,mainColor:C.mainColor,isTransferRequiredTicket:Q&&0!==t,openBundleModal:H,isStaffCodeValid:U})},e.id))}),(0,r.jsx)("div",{className:eb().customPagination}),(0,r.jsx)(ez,{currentTicket:j,currentTicketIdx:b,mainColor:C.mainColor,openEnterModal:O,openCancelResaleModal:V,openDistributionModal:q,openReturnModal:L,isStaffCodeValid:U,openStaffCodeModal:()=>N("staffCode")}),(0,r.jsx)(el,{currentTicket:j,currentModal:I,closeModal:J,setTicketList:x,staffCode:W}),(0,r.jsx)(ee,{currentModal:I,mainColor:C.mainColor,ticket:j,transferUrl:F,closeModal:G}),(0,r.jsx)(ef,{mainColor:C.mainColor,ticket:j,transferId:f,currentModal:I,closeModal:J,refreshTicketAndList:B}),(0,r.jsx)(eg,{currentTicket:j,currentModal:I,closeModal:J}),(0,r.jsx)(E,{currentModal:I,closeModal:J,checkOpenDistributionModal:K,openDistributionWithExistingTransferUrl:Y}),(0,r.jsx)(ej,{currentModal:I,closeModal:J}),(0,r.jsx)(_,{currentModal:I,closeModal:J}),(0,r.jsx)(z,{mainColor:C.mainColor,ticket:j,currentTicketIdx:b,currentModal:I,closeModal:J,setTicketList:x}),(0,r.jsx)(D,{resaleItemId:y,currentModal:I,closeModal:J}),(0,r.jsx)(ex,{currentModal:I,closeModal:J,onSubmit:P})]}):null};var e3=n(53046),e7=!0;let e8=function(e){let{id:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e3.q,{title:"チケット詳細",noTranslate:!0}),(0,r.jsx)(e4,{ticketId:t})]})}},27651:e=>{e.exports={customPagination:"swiperOfTicket_customPagination__cW_td",swiper:"swiperOfTicket_swiper__BRe8E"}},32560:(e,t,n)=>{"use strict";n.d(t,{C5:()=>m,pk:()=>h,UH:()=>f,HJ:()=>g,qM:()=>u,rH:()=>d});var r=n(85037),i=n(23987),a=n(24958);class o{crudOp(){return this.batchIndex+=1,this.batchIndex>500&&(this.batchArray.push((0,r.wP)(a.db)),this.batchIndex=0),{batch:this.batchArray[this.batchArray.length-1]}}async commit(){await Promise.all(this.batchArray.map(e=>e.commit()))}constructor(){this.batchArray=[(0,r.wP)(a.db)],this.batchIndex=0}}var l=n(41630),c=n(57708),s=n(99421);let d=async e=>{let{favoriteArtists:t,user:n}=e,a=t.filter(e=>e.isChecked);if(0===a.length)return;let{uid:s,externalId:d}=n,m=new o;try{for(let e of a){let t={artistId:e.id,userId:s,createdAt:(0,r.O5)(),externalId:d};await i.q7.create(t,m.crudOp())}await m.commit(),await (0,c.xl)({isEmailDmOptIn:!0})}catch(e){(0,l.C)(e)}},m=async e=>{let{favoriteArtistId:t}=e;try{await i.q7.deleteDoc(t)}catch(e){(0,l.C)(e)}},u=async e=>{let{artistId:t,uid:n,externalId:a}=e;try{await i.q7.create({userId:n,artistId:t,createdAt:(0,r.O5)(),externalId:a})}catch(e){(0,l.C)(e)}},p=async e=>{let{uid:t}=e;return(await i.q7.list([["userId","==",t]]).catch(e=>{throw(0,l.C)(e),e})).map(e=>e.artistId)},h=async e=>{let{uid:t}=e,n=await p({uid:t});return await (0,s.e)(n.map(async e=>await i._5.get(e)))},f=async e=>{var t;let{artistId:n,uid:r}=e;return null==(t=(await i.q7.list([["userId","==",r],["artistId","==",n]]))[0])?void 0:t.id},g=async e=>{let{artists:t,uid:n,defaultValue:r=!1}=e,i=await p({uid:n});return t.filter(e=>!i.some(t=>t===e.id)).map(e=>({id:e.id,name:e.name,isChecked:r}))}},34384:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});let r=["Visa","MasterCard","American Express","Diners Club","JCB"]},41010:e=>{e.exports={appEntryWrapper:"TicketIdPage_appEntryWrapper__YBl32",appEntryContent:"TicketIdPage_appEntryContent__1fnsF",appEntrySwiper:"TicketIdPage_appEntrySwiper__bP4Fo",appEntryPagination:"TicketIdPage_appEntryPagination___OGaf",ticketWrapper:"TicketIdPage_ticketWrapper__GaoWp",lowerWrapper:"TicketIdPage_lowerWrapper__zLcfZ",restrictionBanner:"TicketIdPage_restrictionBanner__B67El",noImageBg:"TicketIdPage_noImageBg__2lXZ_",notAllowed:"TicketIdPage_notAllowed__Dflal",pointer:"TicketIdPage_pointer__ku0wy",bgAnimation:"TicketIdPage_bgAnimation__UCPQv",bgTxt:"TicketIdPage_bgTxt__lmjRV",scrollAnimation:"TicketIdPage_scrollAnimation__iXZjp",w0:"TicketIdPage_w0__cfEWy",w5:"TicketIdPage_w5__Ke_RM",w10:"TicketIdPage_w10__1x5gj",w15:"TicketIdPage_w15__kABLW",w20:"TicketIdPage_w20__HBPuz",w25:"TicketIdPage_w25__Ybmit"}},43801:(e,t,n)=>{"use strict";n.d(t,{DM:()=>s,PD:()=>d,PU:()=>c,TP:()=>m});var r=n(34384),i=n(32264),a=n(48383),o=n(2109),l=n(17192);let c=async e=>{var t;let{formData:n,ticketInfo:o,quantity:c}=e,s=u({questions:null!=(t=o.customize)?t:[],answers:n.customize}),d=[...s,...p({formData:n,ticketInfo:o,quantity:c}),...g({formData:n,ticketInfo:o})],m=(0,a.x8)();if(!n.cardToken){let e=await (0,l.qh)(()=>m.card.validateCardNumber()),t=await (0,l.qh)(()=>m.card.validateExpiration()),i=await (0,l.qh)(()=>m.card.getBrandCode());n.cardHolder&&!(n.cardHolder.length<2)&&/^[a-zA-Z\s]+$/.test(n.cardHolder)||d.push("cardHolder"),t||d.push("cardExpiry"),e?r.l.includes(i)||d.push("cardNumberUnsupportedBrand"):d.push("cardNumber")}await (0,l.qh)(()=>m.card.validateCvvForCardNumber())||d.push("cardCvc");let x=h(n);d.push(...x);let _=f({formData:n,ticketInfo:o});if(d.push(..._),d.length>0)throw new i.A(d)},s=e=>{var t;let{formData:n,ticketInfo:r,quantity:a}=e,o=u({questions:null!=(t=r.customize)?t:[],answers:n.customize}),l=[...o,...p({formData:n,ticketInfo:r,quantity:a}),...g({formData:n,ticketInfo:r})],c=/^[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\u4E00-\u9FFF]+$/;n.lastName&&c.test(n.lastName)||l.push("lastName"),n.firstName&&c.test(n.firstName)||l.push("firstName"),n.phoneNumber&&n.phoneNumber.match(/^0[0-9]{9,10}$/)||l.push("phoneNumber");let s=h(n);l.push(...s);let d=f({formData:n,ticketInfo:r});if(l.push(...d),l.length>0)throw new i.A(l)},d=e=>{var t;let{formData:n,ticketInfo:r,quantity:a}=e,o=u({questions:null!=(t=r.customize)?t:[],answers:n.customize}),l=[...o,...p({formData:n,ticketInfo:r,quantity:a}),...g({formData:n,ticketInfo:r})],c=h(n);l.push(...c);let s=f({formData:n,ticketInfo:r});if(l.push(...s),l.length>0)throw new i.A(l)},m=(e,t)=>
1{var n;return 0===t&&(null==(n=e.selectOptions)?void 0:n.length)&&e.selectOptions.length<=2&&e.selectOptions[0].hidden},u=e=>{let{answers:t,questions:n}=e;return t.map((e,t)=>{var r,i;let a=null==n?void 0:n[t];return a&&(a.required&&("string"==typeof e&&""===e.trim()||void 0===e)||a.required&&(null==(r=a.selectOptions)?void 0:r[0].hidden)&&e===(null==(i=a.selectOptions)?void 0:i[0].value))?"質問「".concat(a.label,"」"):null}).filter(o.T)},p=e=>{let{formData:t,ticketInfo:n,quantity:r}=e,i=[];if("famiPassPaperTicket"===t.ticketingMethod||"onlyForPreRegisteredCompanion"!==n.transferRestriction&&!n.isForceTransferToPreRegisteredCompanion||!r||r<=1)return i;let{companionIds:a}=t,o=r-1;if(!a){for(let e=0;e<o;e++)i.push("".concat(e+2,"枚目の同行者"));return i}for(let e=0;e<o;e++){var l;(null==(l=a[e])?void 0:l.trim())||i.push("".concat(e+2,"枚目の同行者"))}return i},h=e=>{let t=[],n=/^[\u30A0-\u30FF]+$/,{ticketingMethod:r,kanaLastName:i,kanaFirstName:a}=e;return"famiPassPaperTicket"!==r||(i&&n.test(i)||t.push("kanaLastName"),a&&n.test(a)||t.push("kanaFirstName")),t},f=e=>{var t,n;let{formData:r,ticketInfo:i}=e,a=[];return(null==(n=i.fcRestrictions)||null==(t=n.mpf)?void 0:t.length)&&(!r.mpfPassword||""===r.mpfPassword.trim())&&a.push("amusePlusPassword"),a},g=e=>{var t;let{formData:n,ticketInfo:r}=e;return r.requiredSerialCodeGroupId?(null==(t=n.serialCode)?void 0:t.trim())?[]:["serialCode"]:[]}},46009:e=>{e.exports={lowerWrapper:"TicketAction_lowerWrapper__pLuvt",lowerWrapperWithStatus:"TicketAction_lowerWrapperWithStatus__8cr7r",noImageBg:"TicketAction_noImageBg__vsatd",notAllowed:"TicketAction_notAllowed__pkLlM",pointer:"TicketAction_pointer__jKbnK",statusPill:"TicketAction_statusPill__6TSMl",statusPillText:"TicketAction_statusPillText__awXgI"}},49468:e=>{e.exports={companionInfoWrapper:"CompanionInfoUnit_companionInfoWrapper__GnFox",companionText:"CompanionInfoUnit_companionText__jt37z",companionReceived:"CompanionInfoUnit_companionReceived__fwN3X",companionList:"CompanionInfoUnit_companionList__n0MRO"}},52518:e=>{e.exports={modalContent:"ReceiveModal_modalContent__JlzeO",closeButton:"ReceiveModal_closeButton__tCAiZ"}},61925:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r=e=>e.filter(e=>!e.isDeleted)},62275:(e,t,n)=>{"use strict";n.d(t,{O:()=>m});var r=n(10940),i=n(11230),a=n.n(i),o=n(87784),l=n(11436),c=n(86346),s=n.n(c),d=n(23727);let m=e=>{let{variant:t,eventName:n,entranceStatus:i,stageName:c,stageDate:m,referenceNumber:u,dateValue:p,withShadow:h=!1,showEventInfo:f=!1,onOpenApp:g,onReturn:x,onDistribute:_}=e,j=(0,o.c)(),k=d.env.NEXT_PUBLIC_APP_INSTALL_URL,w=(()=>{switch(t){case"downloadPrompt":case"distributed":return j("appEntry.downloadPromptTitle");case"beforeTicketed":return j("appEntry.beforeTicketedPromptTitle");case"downloaded":return j("appEntry.downloadedTitle");case"received":return j("appEntry.distributionReceivedTitle")}})(),C=(()=>{switch(t){case"downloadPrompt":case"distributed":return j("appEntry.downloadRequiredMessage");case"beforeTicketed":return j("appEntry.beforeTicketedMessage");case"downloaded":case"received":return j("appEntry.viewInAppMessage")}})(),v=(()=>{switch(t){case"downloaded":return j("appEntry.downloadedAt");case"received":return j("appEntry.receivedAt");default:return}})(),b="downloadPrompt"===t||"beforeTicketed"===t||"distributed"===t,y="cancel"===i;return(0,r.jsxs)("div",{className:s().cardWrapper,children:[("distributed"===t||y)&&(0,r.jsx)("div",{className:s().distributedOverlay,children:(0,r.jsx)(l.o5,{color:"w1",fontWeight:600,fontSize:"2rem",children:y?j("common.canceled"):j("common.distributed")})}),(0,r.jsxs)("div",{className:a()(s().card,{[s().cardWithShadow]:h}),children:[(0,r.jsxs)("div",{className:s().cardHeader,children:[b?(0,r.jsx)("div",{className:s().iconWrapper,children:(0,r.jsx)(l.In,{iconName:"appIcon",size:"6.4rem"})}):(0,r.jsx)("div",{className:s().iconWrapperNoBorder,children:(0,r.jsx)(l.In,{iconName:"appEnterTicket",size:"6.4rem"})}),(0,r.jsx)(l.o5,{fontWeight:600,fontSize:"1.6rem",lineHeight:"150%",className:s().cardTitle,children:w})]}
1),(0,r.jsxs)("div",{className:s().cardBody,children:[f&&(n||c||m||u||v&&p)&&(0,r.jsxs)("div",{className:s().eventInfoArea,children:[(n||c||m)&&(0,r.jsxs)("div",{className:s().eventSection,children:[n&&(0,r.jsx)(l.o5,{fontWeight:600,fontSize:"1.4rem",ellipsis:!0,children:n}),(c||m)&&(0,r.jsxs)("div",{className:s().stageRow,children:[c&&(0,r.jsx)(l.o5,{fontSize:"1.2rem",color:"b3",children:c}),m&&(0,r.jsx)(l.o5,{fontSize:"1.2rem",color:"b3",children:m})]})]}),(u||v&&p)&&(0,r.jsxs)("div",{className:s().detailSection,children:[u&&(0,r.jsxs)("div",{className:s().detailRow,children:[(0,r.jsx)(l.o5,{fontSize:"1.2rem",color:"b3",children:j("appEntry.seatLabel")}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",children:u})]}),v&&p&&(0,r.jsxs)("div",{className:s().detailRow,children:[(0,r.jsx)(l.o5,{fontSize:"1.2rem",color:"b3",children:v}),(0,r.jsx)(l.o5,{fontSize:"1.2rem",children:p})]})]})]}),(0,r.jsx)(l.o5,{fontSize:"1.4rem",color:"b1",className:s().message,children:C}),(0,r.jsxs)("div",{className:s().actions,children:[b&&k&&(0,r.jsx)("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:s().primaryButton,children:j("appEntry.installApp")}),"downloadPrompt"===t&&_&&(0,r.jsx)("button",{className:s().returnButton,onClick:_,children:j("appEntry.distributeTicket")}),("downloaded"===t||"received"===t)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:s().primaryButton,onClick:g,children:j("appEntry.openApp")}),"received"===t&&x&&(0,r.jsx)("button",{className:s().returnButton,onClick:x,children:j("appEntry.returnTicket")})]})]})]})]})]})}},62671:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(62544),i=n(3049),a=n(29348);let o=()=>{let e=(0,i.useRouter)(),t=e.pathname,n=(0,r.useCallback)(e=>{try{return new URL(e,"https://ticketdive.com").pathname===t}catch(n){return e===t}},[t]);return{safeRedirect:(0,r.useCallback)(async n=>{if(n)try{if(new URL(n,"https://ticketdive.com").pathname===t)return;await e.push(n)}catch(r){if(n===t)return;await e.push(n)}},[t,e]),safeReplace:(0,r.useCallback)(async t=>{t&&(n(t)||await (0,a.$)({destination:t,routerReplace:e.replace,contextName:"safe-redirect"}))},[n,e.replace])}}},68510:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ticket/[id]",function(){return n(26761)}])},86346:e=>{e.exports={cardWrapper:"AppEntryUnit_cardWrapper__0Gv10",card:"AppEntryUnit_card__utwlH",distributedOverlay:"AppEntryUnit_distributedOverlay__NdKzE",cardWithShadow:"AppEntryUnit_cardWithShadow__6IFdq",cardHeader:"AppEntryUnit_cardHeader__nYaM_",iconWrapper:"AppEntryUnit_iconWrapper__7166k",iconWrapperNoBorder:"AppEntryUnit_iconWrapperNoBorder__DeNet",cardTitle:"Ap
1pEntryUnit_cardTitle__Egxmi",cardBody:"AppEntryUnit_cardBody__QFu3_",eventInfoArea:"AppEntryUnit_eventInfoArea__b130m",eventSection:"AppEntryUnit_eventSection__tQ6wE",stageRow:"AppEntryUnit_stageRow__74_ro",detailSection:"AppEntryUnit_detailSection__Jbbx1",detailRow:"AppEntryUnit_detailRow__ojElt",message:"AppEntryUnit_message__RR1y2",actions:"AppEntryUnit_actions__THf78",primaryButton:"AppEntryUnit_primaryButton__4m4oq",returnButton:"AppEntryUnit_returnButton__TyBHY"}},86997:e=>{e.exports={ticketContainer:"TicketCard_ticketContainer__t1uuF",receive:"TicketCard_receive__sWT0o",ticketDetails:"TicketCard_ticketDetails__NPa7d",notchTop:"TicketCard_notchTop__OCUhf",notchBottom:"TicketCard_notchBottom__6VyNN",ticketInformation:"TicketCard_ticketInformation__mflE1",imageContainer:"TicketCard_imageContainer__5TB_9",imageBlur:"TicketCard_imageBlur__z9mJo",border:"TicketCard_border__hlYAP",borderForInline:"TicketCard_borderForInline__qojZ0",dottedLine:"TicketCard_dottedLine__KSNlu",ticketImage:"TicketCard_ticketImage__fTQ8P",presentIconContainer:"TicketCard_presentIconContainer__sF4kX",bundleNum:"TicketCard_bundleNum__gCzUr",bundleOverlay:"TicketCard_bundleOverlay__Mv6ho"}},90388:(e,t,n)=>{"use strict";n.d(t,{P:()=>l,v:()=>c});var r=n(71781),i=n(86009),a=n(16397),o=n(4358);let l=async e=>{var t;let{ticketInfoId:n,fcRestrictions:i}=e,l={ticketInfoId:n};(null==(t=i.aid)?void 0:t.length)?await (0,a.I)({funcName:"aid-checkFcRestrictions",ErrorClass:r.Ay,params:l,parseU:o.v}):i.cubit?await (0,a.I)({funcName:"tapirs-checkFcRestrictions",ErrorClass:r.Ay,params:l,parseU:o.v}):i.fave&&await (0,a.I)({funcName:"fave-checkFcRestrictions",ErrorClass:r.Ay,params:l,parseU:o.v})},c=async e=>{let{ticketId:t}=e;await (0,a.I)({funcName:"ticket-checkFcRestrictions",ErrorClass:i.A,params:{ticketId:t},parseU:o.v})}},91476:e=>{e.exports={modalContent:"DistributionModal_modalContent__yZdkK",closeButton:"DistributionModal_closeButton__zgklV"}},94682:e=>{e.exports={container:"UrlCopyBlock_container__c9cSA",urlBox:"UrlCopyBlock_urlBox__zu_Jz",copyButtonContent:"UrlCopyBlock_copyButtonContent__Ni2pb",productCopyButtonWrap:"UrlCopyBlock_productCopyButtonWrap__3FhEE",productCopyButton:"UrlCopyBlock_productCopyButton__jCSH3",productCopyButtonContent:"UrlCopyBlock_productCopyButtonContent__u9ZfT",sakuticketCopyButton:"UrlCopyBlock_sakuticketCopyButton__ZAvKK",sakuticketCopyButtonCopied:"UrlCopyBlock_sakuticketCopyButtonCopied__q4dPJ",ticketdiveCopyButton:"UrlCopyBlock_ticketdiveCopyButton__YaaVO",ticketdiveCopyButtonCopied:"UrlCopyBlock_ticketdiveCopyButtonCopied__HomUI"}}},e=>{e.O(0,[3705,4429,6646,9666,4029,4642,9757,6593,636,8792],()=>e(e.s=68510)),_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.