1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a8f12f60-925b-48ed-a6b3-8ef1413bded2",e._sentryDebugIdIdentifier="sentry-dbid-a8f12f60-925b-48ed-a6b3-8ef1413bded2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36305],{29274:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>$});var n=i(37876),r=i(14232),s=i(89099),a=i(91591),l=i(39955),o=i(82736),d=i(14740),p=i(79736),m=i(20339),u=i(59803),c=i(32985),y=i(55978),h=i(69445),x=i(54587),g=i.n(x),b=i(88992),f=i(57382),v=i(51862),j=i(34031),E=i(71056),T=i(50678),M=i(44750),L=i(5377),S=i(24836),C=i(32587),N=i(15929),D=i(37225),w=i(28761),q=i(54298),R=i(21272),P=i(50196),I=i(83904);let O=async(e,t)=>await I.pY.post("".concat("https://ticketme.io/api/event","/promoterEventRegistrationAdditional"),t,{headers:{Authorization:"Bearer ".concat(e)}});var A=i(14903),V=i(84629),_=i(77497),k=i(37816),B=i(76257);let F={type:"object",properties:{registrations:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:1,maxLength:50,errorMessage:{minLength:"åä»åã¯1æå以ä¸ã§å
¥åãã¦ãã ãã",maxLength:"åä»åã¯50æå以å
ã§å
¥åãã¦ãã ãã"}},nameMultiLang:{type:"object",properties:{ja:{type:"string",maxLength:50,nullable:!0},en:{type:"string",maxLength:50,nullable:!0},ko:{type:"string",maxLength:50,nullable:!0},th:{type:"string",maxLength:50,nullable:!0},it:{type:"string",maxLength:50,nullable:!0},fr:{type:"string",maxLength:50,nullable:!0},es:{type:"string",maxLength:50,nullable:!0},zhCN:{type:"string",maxLength:50,nullable:!0},zhTW:{type:"string",maxLength:50,nullable:!0}},nullable:!0,required:[]},saleMethod:{type:"string",enum:["raffle","queue"]},lotteryType:{type:"string",enum:["priority","quantity"],nullable:!0},lotteryTime:{type:"object",properties:{start:{oneOf:[{type:"object",properties:{type:{type:"string",const:"publishTime"}},required:["type"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"scheduled"},unixTime:{type:"number"}},required:["type","unixTime"],additionalProperties:!1}]},end:{type:"object",properties:{days:{type:"number",minimum:0},time:{type:"object",properties:{hour:{type:"string"},minute:{type:"string"}},required:["hour","minute"],additionalProperties:!1}},required:["days","time"],additionalProperties:!1}},required:["start","end"],nullable:!0},resultNotificationDate:{type:"object",properties:{days:{type:"number",minimum:0},time:{type:"object",properties:{hour:{type:"string"},minute:{type:"string"}},required:["hour","minute"],additionalProperties:!1}},required:["days","time"],additionalProperties:!1,nullable:!0},saleTime:{type:"object",properties:{start:{oneOf:[{type:"object",properties:{type:{type:"string",const:"publishTime"}},required:["type"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"scheduled"},unixTime:{type:"number"}},required:["type","unixTime"],additionalProperties:!1}]},end:{oneOf:[{type:"object",properties:{type:{type:"string",enum:["relativeBeforeDay","relativeBeforeTimeEnd"]},days:{type:"number",minimum:0},time:{type:"object",properties:{hour:{type:"string"},minute:{type:"string"}},required:["hour","minute"],additionalProperties:!1}},required:["type","days","time"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"scheduled"},unixTime:{type:"number"}},required:["type","unixTime"],additionalProperties:!1}],errorMessage:"販売çµäºæ¥æã®æå®ãæ£ããããã¾ãã"},isRelativeEndTime:{type:"boolean"}},required:["start","end","isRelativeEndTime"],nullable:!0},paymentDeadline:{type:"object",properties:{days:{type:"number",minimum:0}},required:["days"],additionalProperties:!1},paymentMethodSettings:{type:"object",properties:{isCreditCardEnabled:{type:"boolean"},isConvenienceEnabled:{type:"boolean"},isDigitalPaymentEnabled:{type:"boolean"}},required:["isCreditCardEnabled","isConvenienceEnabled","isDigitalPaymentEnabled"]},entryLimitConfig:{type:"object",properties:{paymentScope:{type:"string"},mintLimitNum:{type:"number"},mintLimitNumPerOrder:{type:"number"},totalMintLimitNumPerEntry:{type:"number",nullable:!0,minimum:1}},required:["paymentScope","mintLimitNum","mintLimitNumPerOrder"]},events:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid"},price:{type:"number",minimum:0,maximum:A.D.MAX,anyOf:[{const:0},{minimum:300}]},mintNum:{type:"number",minimum:0},isStopped:{type:"boolean"}},required:["id","price","mintNum","isStopped"],additionalProperties:!1}},isVerifyAccess:{type:"boolean"},isSMSVerifiedRequired:{type:"boolean"},isSeatLater:{type:"boolean",nullable:!0},isAutoReservation:{type:"boolean",nullable:!0},isNumberLater:{type:"boolean",nullable:!0},issuancePeriod:{type:"object",properties:{start:{type:"number"},end:{type:"number"},isRelativeStartTime:{type:"boolean",nullable:!0},startRelativeDays:{type:"number",nullable:!0},startRelativeHour:{type:"string",nullable:!0},startRelativeMinute:{type:"string",nullable:!0},startType:{type:"string",enum:["scheduled","relativeBeforeDay"],nullable:!0}},required:["start","end"],nullable:!0}},required:["name","saleMethod","paymentDeadline","paymentMethodSettings","events","isVerifyAccess","isSMSVerifiedRequired"],allOf:[{if:{properties:{saleMethod:{const:"raffle"}}},then:{required:["lotteryTime","resultNotificationDate"]}},{if:{properties:{saleMethod:{const:"queue"}}},then:{required:["saleTime"]}},{if:{properties:{saleMethod:{const:"raffle"},lotteryType:{const:"quantity"}},required:["saleMethod","lotteryType"]},then:{properties:{entryLimitConfig:{$ref:"#/definitions/quantityEntryLimitConfig"}}
1}}],additionalProperties:!1}},isWarningDisplayed:{type:"boolean"}},required:["registrations","isWarningDisplayed"],additionalProperties:!1,definitions:{quantityEntryLimitConfig:{type:"object",properties:{totalMintLimitNumPerEntry:{type:"number",minimum:1,errorMessage:"1æ¥ç¨ã§ç³ãè¾¼ããæå¤§ææ°ã¯1以ä¸ã§å
¥åãã¦ãã ãã"}},required:["totalMintLimitNumPerEntry"]}}},z=e=>"raffle"===e.saleMethod?{...e,saleTime:{start:{type:"publishTime"},end:{type:"relativeBeforeDay",days:0,time:{hour:"00",minute:"00"}},isRelativeEndTime:!0}}:{...e,lotteryTime:{start:{type:"publishTime"},end:{days:0,time:{hour:"23",minute:"59"}}},resultNotificationDate:{days:2,time:{hour:"00",minute:"00"}}};var W=i(52827),Y=i(20707);let G=e=>{var t;let{promoterGroupEvent:i,schedule:a,promoterEventList:o,initDraftRegistration:d}=e,{currentStep:p,scheduleName:x,disclosure:I,handleLeave:A,handleStay:G,onBack:H,onNextConfirmation:Q,methods:K,handleSubmit:X,onSubmit:$,formIndex:J,isSubmitDisabled:U,branchScheduleEventTimeGroups:Z,breadcrumbs:ee,isLoading:et,getConfirmRegistrations:ei}=(e=>{let{promoterGroupEvent:t,schedule:i,promoterEventList:n,initDraftRegistration:a}=e,l=(0,L.d)(),[o]=(0,C.A)([N.A.ACCESS_TOKEN]),d=(0,s.useRouter)(),{t:p}=(0,R.Y)(),[m,u]=(0,r.useState)(0),[c,y]=(0,r.useState)(1),[h,x]=(0,r.useState)(""),[g,b]=(0,r.useState)(!1),{breadcrumbs:f}=(0,P.g)(),v=i.name,j=n.flatMap(e=>e.events.map(e=>{var t;return{id:e.id,price:e.price,mintNum:null!=(t=e.ticketMaxNum)?t:0,isStopped:!1}})),E={registrations:a?(null==a?void 0:a.registrations).map(z):[{name:"",saleMethod:"queue",paymentDeadline:{days:0},paymentMethodSettings:{isCreditCardEnabled:!0,isConvenienceEnabled:!0,isDigitalPaymentEnabled:!0},saleTime:{start:{type:"publishTime"},end:{type:"relativeBeforeDay",days:0,time:{hour:"00",minute:"00"}},isRelativeEndTime:!0},lotteryTime:{start:{type:"publishTime"},end:{days:0,time:{hour:"23",minute:"59"}}},resultNotificationDate:{days:2,time:{hour:"00",minute:"00"}},entryLimitConfig:{paymentScope:"noLimit",mintLimitNum:0,mintLimitNumPerOrder:5},events:j,isVerifyAccess:!1,isSMSVerifiedRequired:!1}],isWarningDisplayed:!0},T=n.map(e=>({id:e.eventTimeGroup.id,branchNumber:0,eventIds:e.events.map(e=>e.id)})),[M,I]=(0,r.useState)((null==a?void 0:a.eventTimeGroups)||T),{methods:A,isDirty:W,errors:Y,watch:G,getValues:H}=(0,D.V)(F,"onChange",E),{handleSubmit:Q}=A,K=G("registrations"),X=async e=>{b(!0);let n=(e=>{let t=(0,k.H)(!!e.nameMultiLang,e.nameMultiLang),{totalMintLimitNumPerEntry:i,...n}=e.entryLimitConfig,r="raffle"===e.saleMethod&&"quantity"===e.lotteryType,s={name:e.name,...t&&{nameMultiLang:t},paymentDeadline:e.paymentDeadline,paymentMethodSettings:e.paymentMethodSettings,entryLimitConfig:r?{...n,totalMintLimitNumPerEntry:i}:n,events:e.events,isVerifyAccess:e.isVerifyAccess,isSMSVerifiedRequired:e.isSMSVerifiedRequired,isSeatLater:e.isSeatLater,isAutoReservation:e.isAutoReservation,isNumberLater:e.isNumberLater,...e.issuancePeriod&&{issuancePeriod:e.issuancePeriod}};return"raffle"===e.saleMethod?{...s,saleMethod:"raffle",...r&&{lotteryType:"quantity"},lotteryTime:e.lotteryTime,resultNotificationDate:e.resultNotificationDate,isSMSVerifiedRequired:!0}:{...s,saleMethod:"queue",saleTime:e.saleTime,isSMSVerifiedRequired:!1}})(e.registrations[m]),r={groupId:t.id,scheduleId:i.id,registration:n};try{await O(o[N.A.ACCESS_TOKEN],r),l({title:"æå",description:"åä»ã追å ãã¾ããã",status:"success",duration:5e3,isClosable:!0}),!0===n.isAutoReservation&&l({title:"座å¸è¨å®ãå¿
è¦ã§ã",description:"峿èªåé
å¸ã®åä»ã追å ãã¾ããã座å¸è¨å®ç»é¢ã§åº§å¸ã®å²å½ã¨çºå¸é ï¼èªåé
å¸ããé åºï¼ãè¨å®ãã座å¸ã確å®ãã¦ãã ããã",status:"info",duration:1e4,isClosable:!0}),b(!1),x("schedule")}catch(t){var s,a,d;console.error(t);let e=p.hooks.promoterEventRegistrationAdditional.ERROR_DESCRIPTION;(null==(d=t.response)||null==(a=d.data)||null==(s=a.error)?void 0:s.message)&&(e=t.response.data.error.message),l({title:p.hooks.promoterEventRegistrationAdditional.ERROR_TITLE,description:e,status:"error",duration:9e3,isClosable:!0}),b(!1)}};(0,r.useEffect)(()=>{"schedule"===h&&d.push("/event/promoter/".concat(t.id,"/schedule")),"owner"===h&&d.push("/event/promoter/".concat(t.id,"/ticket-category")).then(()=>{window.scrollTo(0,0)})},[h,d,t.id]);let $={exitConfirmationModal:(0,S.j)()};(0,q.u)(W);let{handleLeave:J,handleStay:U}=(0,w.p)({onOpen:$.exitConfirmationModal.onOpen,onClose:$.exitConfirmationModal.onClose,isDirty:!h&&W}),Z=async()=>
1{if(!await A.trigger())return void l({title:"å
¥åã¨ã©ã¼",description:"å
¥åå
å®¹ãæ£ããããã¾ãããããä¸åº¦ã確ãããã ããã",status:"error",duration:9e3,isClosable:!0});let{isValid:e}=(e=>{let t={};return e.events.forEach((i,r)=>{var s,a,l,o;let d=n.flatMap(e=>e.events).find(e=>e.id===i.id);if(!d)return;let p=(0,_.K)(null==(s=d.contract)?void 0:s.version);if("raffle"===e.saleMethod){if(0!==i.mintNum||0!==i.price){let e=(0,B.YR)(i.price,d.priceAdjustments,p);e.isValid||(A.setError("registrations.".concat(m,".events.").concat(r,".price"),{message:e.errorMessage}),t["registrations.".concat(m,".events.").concat(r,".price")]=e.errorMessage)}}else{let e=(0,B.dv)(i.price,d.priceAdjustments,p);e.isValid||(A.setError("registrations.".concat(m,".events.").concat(r,".price"),{message:e.errorMessage}),t["registrations.".concat(m,".events.").concat(r,".price")]=e.errorMessage)}let u=H("registrations"),c=null!=(l=null==u?void 0:u.flatMap(e=>e.events).filter(e=>e.id===i.id).reduce((e,t)=>e+t.mintNum,0))?l:0;c+(null!=(o=null==(a=d.registrations)?void 0:a.reduce((e,t)=>e+t.mintNum,0))?o:0)>d.ticketMaxNum&&(A.setError("registrations.".concat(m,".events.").concat(r,".mintNum"),{message:"å²å½ææ°ãæå¤§ææ°ãè¶
ãã¦ãã¾ããå¸ç¨®ç·¨éããç·è²©å£²ææ°ãåè¨å®ããå度修æ£ãã¦ãã ããã"}),t["registrations.".concat(m,".events.").concat(r,".mintNum")]="å²å½ææ°ãæå¤§ææ°ãè¶
ãã¦ãã¾ããå¸ç¨®ç·¨éããç·è²©å£²ææ°ãåè¨å®ããå度修æ£ãã¦ãã ããã")}),{isValid:0===Object.keys(t).length,errors:t}})(H("registrations.".concat(m)));if(!e)return void l({title:"å
¥åã¨ã©ã¼",description:"å
¥åå
å®¹ãæ£ããããã¾ãããããä¸åº¦ã確ãããã ããã",status:"error",duration:9e3,isClosable:!0});y(2)},ee=Object.keys(Y).length>0;return(0,r.useEffect)(()=>{window.scrollTo(0,0)},[c]),{currentStep:c,scheduleName:v,disclosure:$,handleLeave:J,handleStay:U,onBack:()=>{y(1)},onNextConfirmation:Z,methods:A,handleSubmit:Q,onSubmit:X,formIndex:m,isSubmitDisabled:ee,branchScheduleEventTimeGroups:e=>{let t=M.find(t=>t.eventIds.includes(e));if(t&&t.eventIds.length>1&&0===t.branchNumber){let i=Math.max(...M.filter(e=>e.id===t.id).map(e=>e.branchNumber))+1,n={id:t.id,branchNumber:i,eventIds:[e]},r={...t,eventIds:t.eventIds.filter(t=>t!==e)};I([...M.map(e=>e.id===t.id&&e.branchNumber===t.branchNumber?r:e),n])}},breadcrumbs:f,isLoading:g,getConfirmRegistrations:()=>{let e=[],t={};return n.forEach(e=>{e.events.forEach(e=>{e.registrations&&e.registrations.length>0&&e.registrations.forEach(i=>{let n=i.registrationId;n&&(t[n]||(t[n]={registration:{...i,entryLimitConfig:{...i.entryLimitConfig,paymentScope:"event"===i.entryLimitConfig.paymentScope?"noLimit":i.entryLimitConfig.paymentScope}},events:[]}),t[n].events.push({id:e.id,price:e.price,mintNum:i.mintNum||0,isStopped:i.isStopped||!1}))})})}),Object.values(t).forEach(t=>{var i,r,s,a,l,o,d,p,m,u,c,y;let{registration:h,events:x}=t,g={},b={},f={};if("raffle"===h.saleMethod){let e=null==(i=h.lotteryTime)?void 0:i.start,t=null==(r=h.lotteryTime)?void 0:r.end,n=h.resultNotificationDate;if(e&&t){let i=(0,V.hQ)(new Date(1e3*e),t);g={lotteryTime:{start:{type:"scheduled",unixTime:e},end:{days:i,time:{hour:"23",minute:"59"}}}}}else g={lotteryTime:{start:{type:"publishTime"},end:{days:0,time:{hour:"23",minute:"59"}}}};if(n){let e=2;t&&(e=Math.max(0,(0,V.hQ)(new Date(1e3*t),n)));let i=new Date(1e3*n);b={resultNotificationDate:{days:e,time:{hour:i.getHours().toString().padStart(2,"0"),minute:i.getMinutes().toString().padStart(2,"0")}}}}else b={resultNotificationDate:{days:2,time:{hour:"00",minute:"00"}}}}else{let e=null==(s=h.saleTime)?void 0:s.start,t=null==(a=h.saleTime)?void 0:a.end,i=null!=(o=null==(l=h.saleTime)?void 0:l.endRelativeHour)?o:"00";if(e&&t){let r=x.map(e=>e.id),s=[];n.forEach(e=>{e.events.forEach(e=>{r.includes(e.id)&&e.eventTime&&e.eventTime.start&&s.push(e.eventTime.start)})});let a=0;s.length>0&&(a=Math.min(...s));let l=new Date(1e3*t);f={saleTime:{start:{type:"scheduled",unixTime:e},end:(null==(d=h.saleTime)?void 0:d.isRelativeEndTime)&&(void 0===(null==(p=h.saleTime)?void 0:p.endType)||(null==(m=h.saleTime)?void 0:m.endT
1ype)==="relativeBeforeDay"||(null==(u=h.saleTime)?void 0:u.endType)==="relativeBeforeTimeEnd")?{type:(null==(c=h.saleTime)?void 0:c.endType)||"relativeBeforeDay",days:a>0?(0,V.hQ)(new Date(1e3*t),a):(0,V.hQ)(new Date(1e3*t),e),time:{hour:i,minute:l.getMinutes().toString().padStart(2,"0")}}:{type:"scheduled",unixTime:t}}}}else f={saleTime:{start:{type:"publishTime"},end:{days:0,time:{hour:"23",minute:"59"}},isRelativeEndTime:!0}}}let v=2;h.paymentDeadline&&h.paymentDeadline>0&&("raffle"===h.saleMethod&&h.resultNotificationDate?v=Math.max(0,(0,V.Xt)(h.resultNotificationDate,h.paymentDeadline)):"queue"===h.saleMethod&&(null==(y=h.saleTime)?void 0:y.start)&&(v=Math.max(0,(0,V.hQ)(new Date(1e3*h.paymentDeadline),h.saleTime.start))));let j={name:h.name,saleMethod:h.saleMethod,...void 0!==h.lotteryType&&{lotteryType:h.lotteryType},paymentDeadline:{days:v},paymentMethodSettings:{isCreditCardEnabled:h.paymentMethodSettings.isCreditCardEnabled,isConvenienceEnabled:h.paymentMethodSettings.isConvenienceEnabled,isDigitalPaymentEnabled:h.paymentMethodSettings.isDigitalPaymentEnabled},entryLimitConfig:{paymentScope:h.entryLimitConfig.paymentScope,mintLimitNum:h.entryLimitConfig.mintLimitNum,mintLimitNumPerOrder:h.entryLimitConfig.mintLimitNumPerOrder,...void 0!==h.entryLimitConfig.totalMintLimitNumPerEntry&&{totalMintLimitNumPerEntry:h.entryLimitConfig.totalMintLimitNumPerEntry}},events:x,isVerifyAccess:h.isVerifyAccess,isSMSVerifiedRequired:h.isSMSVerifiedRequired,...h.issuancePeriod&&{issuancePeriod:h.issuancePeriod},..."raffle"===h.saleMethod?{...g,...b}:{...f}};e.push(j)}),[...e,...K]}}})({promoterGroupEvent:i,schedule:a,promoterEventList:o,initDraftRegistration:d});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Op,{...K,children:(0,n.jsxs)("form",{onSubmit:X($),children:[(0,n.jsx)(E.n,{title:"åä»è¿½å "}),(0,n.jsx)(T.F,{promoterGroupEvent:i,breadcrumbs:ee,children:4!==p&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(l.a,{display:"flex",alignItems:"center",gap:"8px",children:[(0,n.jsx)(Y.Ex,{color:"tertiary",size:"md",children:"ç¾å¨ç·¨éä¸"}),(0,n.jsx)(Y.EY,{size:"sm",label:!0,children:x})]})})}),1===p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.a,{py:"2xl",bg:"bg.surfaceFill",ml:"calc(-50vw + 50%)",mr:"calc(-50vw + 50%)",children:(0,n.jsxs)(m.m,{maxW:{base:"990px"},px:"none",children:[(0,n.jsx)(l.a,{px:"5xl",children:(0,n.jsxs)(u.s,{align:"center",gap:"xxs",children:[(0,n.jsx)(g(),{src:"/icons/edit-calendar-days.svg",alt:"ç·¨éã«ã¬ã³ãã¼ã®ã¢ã¤ã³ã³",width:24,height:24}),(0,n.jsx)(Y.EY,{variant:"h2",label:!0,children:"åä»åºæ¬è¨å®"})]})}),(0,n.jsx)(j.g2,{formIndex:J,publishTime:i.publishTime,eventTimes:i.eventTimes,promoterEventList:o,isMultiLangEnabled:null==i||null==(t=i.flags)?void 0:t.multiLangEnabled,requiredLanguage:null==i?void 0:i.defaultLanguage},J)]})}),(0,n.jsx)(l.a,{ml:"calc(-50vw + 50%)",mr:"calc(-50vw + 50%)",children:(0,n.jsx)(m.m,{maxW:{base:"990px"},px:"none",children:(0,n.jsx)(l.a,{px:"5xl",children:(0,n.jsx)(f.W,{})})})}),(0,n.jsx)(l.a,{pt:"lg",children:(0,n.jsxs)(u.s,{gap:"lg",direction:"column",children:[(0,n.jsxs)(u.s,{gap:"6px",alignItems:"center",children:[(0,n.jsx)(g(),{src:"/icons/tickets.svg",alt:"ãã±ããã®ã¢ã¤ã³ã³",width:24,height:24}),(0,n.jsx)(Y.EY,{variant:"h2",label:!0,children:"販売ãã±ããå¸ç¨®è¨å®"})]}),(0,n.jsx)(c.t,{variant:"unstyled",children:(0,n.jsx)(y.T,{children:(0,n.jsxs)(h.K,{px:0,py:"lg",gap:"lg",display:"flex",flexDir:"column",children:[(0,n.jsxs)(l.a,{children:[(0,n.jsx)(Y.EY,{size:"md",children:"æ¥ç¨åã³å¸ç¨®ãã¨ã®åå¥è¨å®ãå¯è½ã§ããéé¡ã¨å²å½ææ°æå¤ã®è¨å®ã¯ç·¨éããè¡ã£ã¦ä¸ããã"}),(0,n.jsx)(Y.EY,{size:"md",children:"å²å½ææ°ã0æã«è¨å®ããå ´åããã®åä»ã表示ããã¦ããæéã¯ãè¨å®ããå¸ç¨®ã販売ãã¼ã¸ã§é表示ã«ãªããåãæ±ããã¾ããã"})]}),(0,n.jsx)(W.y,{promoterEventList:o,formIndex:J,branchScheduleEventTimeGroups:Z,mode:"add"})]})})}),(0,n.jsx)(l.a,{px:"5xl",pt:"3xl",pb:"5xl",children:(0,n.jsx)(u.s,{width:"100%",justifyContent:"center",children:(0,n.jsx)(Y.$n,{variant:"primary",onClick:Q,disabled:U,children:"確èª"})})})]})})]}),2===p&&(0,n.jsxs)(l.a,{pt:"2xl",pb:"5xl",gap:"lg",display:"flex",flexDir:"column",children:[(0,n.jsxs)(Y.EY,{variant:"h2",label:!0,children:[x,"è¨å®ç¢ºèª"]}),(0,n.jsx)(v.C,{scheduleName:x,promoterEventList:o,registrations:ei()}),(0,n.jsxs)(l.a,{px:"5xl",pb:"5xl",display:"flex",gap:"sm",justifyContent:"center",children:[(0,n.jsx)(Y.$n,{variant:"secondary",onClick:H,children:"åç·¨é"}),(0,n.jsx)(Y.$n,{variant:"primary",type:"submit",isLoading:et,children:"è¨å®å®äº"})]})]})]})}),(0,n.jsx)(M.B,{onClose:()=>I.exitConfirmationModal.onClose(),isOpen:I.exitConfirmationModal.isOpen,handleLeave:A,handleStay:G})]})};var H=i(44374),Q=i(93270),K=i(40583);let X=()=>{var e;let{data:t,isLoading:i}=(0,K.L)(),{data:r,isLoading:a}=(0,Q.g)(),{data:m,isLoading:u}=(0,H.y)(),c=(0,s.useRouter)().query.scheduleId,y=null==t?void 0:t.schedules.find(e=>e.id===c);if(i||a||u)return(0,n.jsxs)(l.a,{mx:"auto",width:"full",mb:"12px",pb:"60px",children:[(0,n.jsx)(l.a,{pt:"32px",pb:"20px",bg:"#E4E4DD",mx:"calc(-50vw + 50%)",children:(0,n.jsxs)(l.a,{as:"section",mx:"auto",width:"full",maxW:"990px",px:"60px",children:[(0,n.jsx)(o.D,{as:"h2",color:"text.main",fontSize:"32px",lineHeight:1,children:"åä»ã¹ã±ã¸ã¥ã¼ã«ä½æ"}),(0,n.jsx)(d.E,{height:"20px",mt:"12px",width:"60%"})]})}),(0,n.jsxs)(l.a,{mx:"auto",width:"full",maxW:"990px",px:"60px",children:[(0,n.jsxs)(p.z,{as:"section",mt:"8px",align:"center",spacing:"4px",bg:"white",p:"8px",borderRadius:"18px",children:[(0,n.jsx)(d.E,{boxSize:"20px",rounded:"full"}),(0,n.jsx)(d.E,{h:"14px",w:"20%"})]}),(0,n.jsxs)(l.a,{as:"section",mt:"44px",children:[(0,n.jsx)(d.E,{height:"24px",width:"250px"}),(0,n.jsx)(d.E,{height:"16px",mt:"20px",width:"80%"}),(0,n.jsxs)(l.a,{mt:"20px",px:"20px",py:"24px",bg:"#FFFFFF",borderRadius:"20px",children:[(0,n.jsx)(d.E,{height:"50px",width:"318px"}),(0,n.jsx)(d.E,{height:"12px",mt:"12px",width:"70%"}),(0,n.jsxs)(l.a,{as:"section",mt:"32px",children:[(0,n.jsx)(d.E,{height:"16px",width:"300px"}),(0,n.jsx)(d.E,{height:"12px",mt:"12px",width:"60%"}),(0,n.jsx)(d.E,{height:"12px",mt:"4px",width:"70%"}),(0,n.jsx)(l.a,{mt:"32px",py:"12px",borderTop:"1px",borderBottom:"1px",borderColor:"#EBEBEB",children:(0,n.jsxs)(l.a,{borderBottom:"1px",borderColor:"#EBEBEB",pb:"12px",children:[(0,n.jsxs)(p.z,{gap:"12px",children:[(0,n.jsx)(d.E,{height:"20px",width:"30px"}),(0,n.jsx)(d.E,{height:"50px",width:"300px"}),(0,n.jsx)(d.E,{height:"32px",width:"32px",borderRadius:"full"})]}),(0,n.jsx)(d.E,{height:"40px",mt:"8px",ml:"42px",width:"200px"})]})})]}),(0,n.jsx)(d.E,{height:"50px",mt:"20px",width:"100%"})]}),(0,n.jsx)(l.a,{mt:"32px",textAlign:"center",children:(0,n.jsx)(d.E,{height:"50px",width:"295px",mx:"auto",borderRadius:"25px"})})]})]})]});if(!t||!r||!y)return null;let h=null==(e=t.schedules.find(e=>e.id===c))?void 0:e.eventTimeGroupIds,x=r.filter(e=>e.events.map(e=>e.eventTimeGroupId).some(e=>null==h?void 0:h.includes(e)));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(G,{promoterGroupEvent:t,schedule:y,promoterEventList:x,initDraftRegistration:m})})},$=()=>{let e=(0,s.useRouter)();return(0,r.useEffect)(()=>{},[e]),(0,n.jsx)(a.kx,{children:(0,n.jsx)(X,{})})}},82581:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/promoter/[groupEventId]/schedule/[scheduleId]/reception/add",function(){return i(29274)}])}},e=>{e.O(0,[37458,91340,35865,71211,93552,88798,3078,91591,76257,32650,16807,88203,90636,46593,38792],()=>e(e.s=82581)),_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.