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]="fbe50065-06a2-4003-8d7c-0cc5b8b972fb",e._sentryDebugIdIdentifier="sentry-dbid-fbe50065-06a2-4003-8d7c-0cc5b8b972fb")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25763],{3371:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var s=r(37876),o=r(59803),n=r(39955),i=r(51826),a=r(20707);let l=e=>{let{isOpen:t,onClose:r,settingsPageUrl:l,messageText:d}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.r,{heading:"è¨å®ãå¿
è¦ã§ã",onClose:r,isOpen:t,grayButtonText:"ãã£ã³ã»ã«",grayButtonFunc:r,isSingleButton:!0,children:(0,s.jsx)(o.s,{flexDirection:"column",gap:"2xl",children:(0,s.jsx)(n.a,{children:(0,s.jsx)(a.EY,{size:"md",children:d})})})})})}},5708:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(37876),o=r(14232),n=r(96491),i=r(5881),a=r(50845),l=r(39955),d=r(59803),c=r(65576),u=r(88619),p=r(12899),m=r(20707);let h=e=>{let{hour:t,minute:r,onChange:h,isDisabled:x,isError:g,variants:E="default"}=e,v={default:{disabled:{backgroundColor:"bg.inactive",opacity:.5,color:"text.inactive"}},gray:{disabled:{backgroundColor:"bg.inactive",opacity:1,color:"text.inactive"}}}[E],[b,j]=(0,o.useState)(!1),f=[...Array(24)].map((e,t)=>"00".concat(t).slice(-2)),y=[...Array(60)].map((e,t)=>"00".concat(t).slice(-2)),T=(e,s)=>{"hour"===e?h(s,r):h(t,s)},A=t||r?"".concat(t,":").concat(r):"";return(0,s.jsxs)(c.A,{isOpen:b,onClose:()=>j(!1),placement:"bottom-start",children:[(0,s.jsx)(u.W,{children:(0,s.jsx)(n.p,{w:"120px",value:A,placeholder:"--:--",onClick:()=>!x&&j(!0),readOnly:!0,sx:{"::-webkit-scrollbar":{display:"none"},appearance:"none",backgroundRepeat:"no-repeat",backgroundPosition:"right 8px center",backgroundSize:"16px",paddingRight:"30px"},minH:"50px",textAlign:"center",color:"text.main",borderColor:g?"text.error":"bg.secondary",resize:"none",rounded:"md",_hover:{borderColor:"bg.secondary"},_placeholder:{textColor:"text.placeholder",fontSize:"16px",fontWeight:"400",verticalAlign:"center"},_disabled:{border:"1px solid #EBEBEB",cursor:"not-allowed",backgroundColor:v.disabled.backgroundColor,color:v.disabled.color,opacity:v.disabled.opacity},_focus:{borderColor:"bg.secondary",boxShadow:"none",outline:"none"},_invalid:{border:"2px solid",borderColor:"text.error"},isDisabled:x})}),(0,s.jsxs)(p.h,{w:"170px",p:2,children:[(0,s.jsxs)(i.x,{templateColumns:"1fr 1fr",gap:2,border:"1px solid",borderColor:"bg.secondary",p:"xs",borderRadius:"md",children:[(0,s.jsxs)(a.E,{borderRight:"1px solid",borderColor:"bg.secondary",children:[(0,s.jsx)(m.EY,{mb:"sm",fontWeight:"bold",textAlign:"center",children:"æ"}),(0,s.jsx)(l.a,{maxH:"200px",overflowY:"auto",children:f.map(e=>(0,s.jsx)(m.EY,{onClick:()=>T("hour",e),onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#EDF2F7"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},p:"xxs",cursor:"pointer",bg:"transparent",borderRadius:"sm",textAlign:"center",lineHeight:"125%",children:e},e))})]}),(0,s.jsxs)(a.E,{children:[(0,s.jsx)(m.EY,{mb:"sm",fontWeight:"bold",textAlign:"center",children:"å"}),(0,s.jsx)(l.a,{maxH:"200px",overflowY:"auto",children:y.map(e=>(0,s.jsx)(m.EY,{onClick:()=>T("minute",e),onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#EDF2F7"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},p:"xxs",cursor:"pointer",bg:"transparent",borderRadius:"sm",textAlign:"center",lineHeight:"125%",children:e},e))})]})]}),(0,s.jsx)(d.s,{justify:"flex-end",align:"center",mt:"xxs",children:(0,s.jsx)(m.$n,{size:"sm",variant:"unstyled",onClick:()=>j(!1),children:"OK"})})]})]})}},13802:(e,t,r)=>{"use strict";r.d(t,{Q:()=>h});var s=r(37876),o=r(14232),n=r(24836),i=r(76032),a=r(24747),l=r(54587),d=r.n(l),c=r(48230),u=r.n(c),p=r(3371),m=r(20707);let h=e=>{let{breadcrumbs:t,hasPromoterEvents:r=!1,hasSchedules:l=!1,skipEventCheck:c=!1,...h}=e,x={settingsRequired:(0,n.j)()},[g,E]=(0,o.useState)("");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.B,{direction:"row",align:"center",...h,children:t.map((e,o)=>(0,s.jsxs)(i.B,{direction:"row",align:"center",m:"none !important",children:[(0,s.jsx)(u(),{href:e.href,passHref:!0,children:(0,s.jsxs)(m.Yq,{size:"sm",onClick:t=>((e,t)=>{!c&&(e=>e.includes("/seats")||!r&&e.includes("/schedule"))(t)&&((e=>!r&&(e.includes("/ticket-category")||e.includes("/schedule")))(t)?(e.preventDefault(),E(t),x.settingsRequired.onOpen()):t.includes("/seats")&&!l&&(e.preventDefault(),E(t),x.settingsRequired.onOpen()))})(t,e.href),children:[(0,s.jsx)(d(),{width:16,height:16,alt:"Return Arrow",src:"/icons/return-arrow.svg"}),e.label]})}),o<t.length-1&&(0,s.jsx)(a.c,{orientation:"vertical",borderColor:"divider.gray-400",height:"16px",mx:"sm !important"})]},o))}),(0,s.jsx)(p.C,{isOpen:x.settingsRequired.isOpen,onClose:x.settingsRequired.onClose,settingsPageUrl:(e=>{let t=e.match(/\/event\/promoter\/([^\/]+)/),s=t?t[1]:"";return r?"/event/promoter/".concat(s,"/schedule"):"/event/promoter/".concat(s,"/ticket-category")})(g),messageText:r?g.includes("/schedule")&&!l?"å
ã«åä»ã¹ã±ã¸ã¥ã¼ã«ãè¨å®ãã¦ãã ãã":"":"å
ã«ãã±ããå¸ç¨®ã®ç»é²ãå¿
è¦ã§ã"})]})}},15219:(e,t,r)=>{"use strict";r.d(t,{e:()=>o});var s=r(83904);let o=async(e,t)=>await s.pY.get("".concat("https://ticketme.io/api/event","/promoterGroupEvent"),{headers:{Authorization:"Bearer ".concat(e)},params:t})},28761:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var s=r(14232),o=r(89099);let n=e=>{let{onOpen:t,onClose:r,isDirty:n}
1=e,i=(0,o.useRouter)(),[a,l]=(0,s.useState)(!1),[d,c]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=e=>{if(n&&!a)throw c(e),t(),i.events.emit("routeChangeError"),"Navigation cancelled"};return i.events.on("beforeHistoryChange",e),()=>{i.events.off("beforeHistoryChange",e)}},[n,a,t,i]),{handleLeave:()=>{l(!0),d&&i.push(d)},handleStay:()=>{r()}}}},29555:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var s=r(37876),o=r(53869),n=r(59803),i=r(46676),a=r(96491),l=r(5728),d=r(34135),c=r(20707);let u=e=>{let{labelTitle:t,defaultTextHeight:r=50,placeholder:u="",detailLabel:p="",isInvalid:m,errorMessage:h,register:x,registerName:g,rules:E,isOptional:v=!1,isLabelVisible:b=!0,...j}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(o.MJ,{isInvalid:m,...j,children:[(0,s.jsxs)(n.s,{mb:3,align:"center",justify:"space-between",display:b?"flex":"none",children:[(0,s.jsxs)(n.s,{gap:2,align:"center",children:[(0,s.jsx)(i.l,{mb:"none",mr:"none",children:(0,s.jsx)(c.EY,{fontWeight:"bold",label:!0,children:t})}),v?(0,s.jsx)(d.g9,{variants:"promoter"}):(0,s.jsx)(d.fc,{})]}),(0,s.jsx)(c.EY,{color:"sub",size:"md",label:!0,children:p})]}),(0,s.jsx)(a.p,{...x(g,E),onKeyDown:e=>{("Enter"===e.code||"NumpadEnter"===e.code)&&e.preventDefault()},placeholder:u,minH:"".concat(r,"px"),sx:{"::-webkit-scrollbar":{display:"none"}},color:"text.main",bg:"bg.primary",borderColor:"bg.secondary",resize:"none",rounded:"md",_hover:{borderColor:"bg.secondary"},_placeholder:{textColor:"text.placeholder",fontSize:"16px",fontWeight:"400",verticalAlign:"center"},_focus:{borderColor:"bg.secondary",boxShadow:"none",outline:"none"},_invalid:{border:"2px solid",borderColor:"text.error"}}),(0,s.jsx)(l.Wt,{as:"span",mt:"sm",color:"text.error",size:"sm",children:h})]})})}},34135:(e,t,r)=>{"use strict";r.d(t,{Hn:()=>l,g9:()=>a,fc:()=>s.f});var s=r(67432),o=r(37876),n=r(21272),i=r(20707);let a=e=>{let{variants:t="promoter"}=e,{t:r}=(0,n.Y)();return(0,o.jsx)(i.Ex,{color:"gray",variant:"form",children:(0,o.jsx)(i.EY,{variant:"p",label:!0,size:"xs",color:"white",fontWeight:"bold",children:r.components.OptionalBadge.OPTIONAL})})},l=e=>{let{type:t,enterMethod:r}=e,{t:s}=(0,n.Y)();return(0,o.jsx)(i.Ex,{color:"normal",variant:"specific",size:"sm",children:"konbini"===t?s.components.parts.Badge.KONBINI_ISSUANCE:"swipe"===r?s.components.parts.Badge.ELECTRONIC_TICKET_ISSUANCE:s.components.parts.Badge.QR_CODE_ISSUANCE})}},37225:(e,t,r)=>{"use strict";r.d(t,{V:()=>a});var s=r(34893),o=r(72780),n=r(88992),i=r(21272);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"onSubmit",r=arguments.length>2?arguments[2]:void 0,{t:a}=(0,i.Y)(),l=((e,t)=>{let r=JSON.parse(JSON.stringify(e)),s=e=>{for(let r in e)if("object"==typeof e[r])s(e[r]);else if("string"==typeof e[r]&&e[r].startsWith("{")&&e[r].endsWith("}")){let s=e[r].substring(1,e[r].length-1);e[r]=t[s]||e[r]}};return s(r),r})(e,{patternMessagePassword:a.hooks.useAjvForm.PATTERN_MESSAGE_PASSWORD,minLength8:a.hooks.useAjvForm.MIN_LENGTH_8,maxLength10:a.hooks.useAjvForm.MAX_LENGTH_10,maxLength30:a.hooks.useAjvForm.MAX_LENGTH_30,maxLength60:a.hooks.useAjvForm.MAX_LENGTH_60,maxLength64:a.hooks.useAjvForm.MAX_LENGTH_64,maxLength100:a.hooks.useAjvForm.MAX_LENGTH_100,minLengthAccount:a.hooks.useAjvForm.MIN_LENGTH_ACCOUNT,minLengthFullName:a.hooks.useAjvForm.MIN_LENGTH_FULL_NAME,minLengthFullNameKana:a.hooks.useAjvForm.MIN_LENGTH_FULL_NAME_KANA,patternMessageFullNameKana:a.hooks.useAjvForm.PATTERN_MESSAGE_FULL_NAME_KANA,minLengthPostalCode:a.hooks.useAjvForm.MIN_LENGTH_POSTAL_CODE,patternMessagePostalCode:a.hooks.useAjvForm.PATTERN_MESSAGE_POSTAL_CODE,patternMessagePostalCodeJp:a.hooks.useAjvForm.PATTERN_MESSAGE_POSTAL_CODE_JP,patternMessagePostalCodeIntl:a.hooks.useAjvForm.PATTERN_MESSAGE_POSTAL_CODE_INTL,minLengthGender:a.hooks.useAjvForm.MIN_LENGTH_GENDER,minLengthBirthdayYear:a.hooks.useAjvForm.MIN_LENGTH_BIRTHDAY_YEAR,minLengthBirthdayMonth:a.hooks.useAjvForm.MIN_LENGTH_BIRTHDAY_MONTH,minLengthPrefecture:a.hooks.useAjvForm.MIN_LENGTH_PREFECTURE,minLengthMunicipality:a.hooks.useAjvForm.MIN_LENGTH_MUNICIPALITY,minLengthStreetAddress:a.hooks.useAjvForm.MIN_LENGTH_STREET_ADDRESS,minLengthPhoneNumber:a.hooks.useAjvForm.MIN_LENGTH_PHONE_NUMBER,patternMessagePhoneNumber:a.hooks.useAjvForm.PATTERN_MESSAGE_PHONE_NUMBER,typeCardNumber:a.hooks.useAjvForm.TYPE_CARD_NUMBER,patternCardNumber:a.hooks.useAjvForm.PATTERN_CARD_NUMBER,typeHolderName:a.hooks.useAjvForm.TYPE_HOLDER_NAME,minLengthHolderName:a.hooks.useAjvForm.MIN_LENGTH_HOLDER_NAME,typeExpire:a.hooks.useAjvForm.TYPE_EXPIRE,patternExpire:a.hooks.useAjvForm.PATTERN_EXPIRE,typeSecurityCode:a.hooks.useAjvForm.TYPE_SECURITY_CODE,patternSecurityCode:a.hooks.useAjvForm.PATTERN_SECURITY_CODE,typeIsDefault:a.hooks.useAjvForm.TYPE_IS_DEFAULT,requiredCardNumber:a.hooks.useAjvForm.REQUIRED_CARD_NUMBER,requiredHolderName:a.hooks.useAjvForm.REQUIRED_HOLDER_NAME,requiredExpire:a.hooks.useAjvForm.REQUIRED_EXPIRE,requiredSecurityCode:a.hooks.useAjvForm.REQUIRED_SECURITY_CODE}),d=(0,n.mN)({defaultValues:r,mode:t,resolver:async(e,t,r)=>(0,s.O)(l,{formats:o.U9})(e,t,r)}),{register:c,handleSubmit:u,setValue:p,watch:m,getValues:h,control:x,reset:g}=d,{errors:E,isDirty:v}=d.formState;return{register:c,handleSubmit:u,setValue:p,getValues:h,control:x,watch:m,errors:E,isDirty:v,methods:d,reset:g}}},40283:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>z});var s=r(37876),o=r(14232),n=r(89099),i=r(91591),a=r(39955),l=r(14740),d=r(79736),c=r(88992),u=r(59946),p=r(93782),m=r(59803),h=r(8072),x=r(24747),g=r(54587),E=r.n(g),v=r(13802),b=r(29555),j=r(71056),f=r(44750),y=r(5377),T=r(24836),A=r(32587),_=r(15929),C=r(28761),N=r(54298),R=r(21272),I=r(50196),S=r(83904);let w=async(e,t,r)=>await S.pY.get("".concat("https://ticketme.io/api/event","/promoterGroupEvent/").concat(t,"/schedule"),{headers:{Authorization:"Bearer ".concat(e)},params:{scheduleId:r}}),k=async(e,t,r)=>await S.pY.put("".concat("https://ticketme.io/api/event","/promoterGroupEvent/").concat(t,"/schedule"),r,{headers:{Authorization:"Bearer ".concat(e)}});var L=r(76257);let G=e=>{let{promoterEventList:t,promoterGroupEvent:r,formMethods:s}=e,[i]=(0,A.A)([_.A.ACCESS_TOKEN]),a=(0,n.useRouter)(),{groupEventId:l,scheduleId:d}=a.query,u=(0,y.d)(),[p,m]=(0,o.useState)(!1),[h,x]=(0,o.useState)(""),[g,E]=(0,o.useState)([]),{t:v}=(0,R.Y)(),{control:b,watch:j,getValues:f,setValue:S,reset:G,formState:O}=s,{isDirty:M}=O,[F,P]=(0,o.useState)(null),[D,Y]=(0,o.useState)(null),[H,B]=(0,o.useState)([]),[z,U]=(0,o.useState)([]),q=(null==t?void 0:t.reduce((e,t)=>
1(e[t.eventTimeGroup.id]=t.events.filter((e,t,r)=>t===r.findIndex(t=>t.ticketCategory.id===e.ticketCategory.id)).map(e=>e.ticketCategory.name),e),{}))||{},{fields:W,append:K,remove:X}=(0,c.jz)({name:"eventTimeGroupIds",control:b}),{breadcrumbs:Q}=(0,I.g)(),J={exitConfirmationModal:(0,T.j)()};(0,N.u)(M);let{handleLeave:V,handleStay:$}=(0,C.p)({onOpen:J.exitConfirmationModal.onOpen,onClose:J.exitConfirmationModal.onClose,isDirty:!h&&M});(0,o.useEffect)(()=>{(null==r?void 0:r.schedules)&&d&&E((e=>e&&0!==e.length?e.flatMap(e=>e.eventTimeGroupIds||[]).filter((e,t,r)=>r.indexOf(e)===t):[])(r.schedules.filter(e=>e.id!==d)))},[r,d]);let Z=async()=>{if(!F||!d)return;m(!0);let e=f();try{let t={id:F.id,name:e.name,eventTimeGroupIds:e.eventTimeGroupIds.map(e=>e.id),resaleTime:e.resaleTime};if(await k(i[_.A.ACCESS_TOKEN],l,t),u({title:"åä»ã¹ã±ã¸ã¥ã¼ã«ãæ´æ°ãã¾ããã",status:"success",duration:3e3,isClosable:!0}),d){let e=await w(i[_.A.ACCESS_TOKEN],l,d);P(e.data)}}catch(o){var t,r,s;console.error(o);let e=v.hooks.promoterGroupEventSchedule.UPDATE_ERROR_DESCRIPTION;(null==(s=o.response)||null==(r=s.data)||null==(t=r.error)?void 0:t.message)&&(e=o.response.data.error.message),u({title:v.hooks.promoterGroupEventSchedule.UPDATE_ERROR_TITLE,description:e,status:"error",duration:5e3,isClosable:!0})}finally{m(!1)}};(0,o.useEffect)(()=>{(async()=>{if(d){m(!0);try{let e=await w(i[_.A.ACCESS_TOKEN],l,d);P(e.data)}catch(o){var e,t,r;console.error(o),Y(o);let s=v.hooks.promoterGroupEventSchedule.GET_ERROR_DESCRIPTION;(null==(r=o.response)||null==(t=r.data)||null==(e=t.error)?void 0:e.message)&&(s=o.response.data.error.message),u({title:v.hooks.promoterGroupEventSchedule.GET_ERROR_TITLE,description:s,status:"error",duration:5e3,isClosable:!0})}finally{m(!1)}}})()},[i,l,d]),(0,o.useEffect)(()=>{(null==F?void 0:F.eventTimeGroupIds)&&t&&(B(Array.from(new Set(t.filter(e=>{var t;return F.eventTimeGroupIds.includes((null==(t=e.eventTimeGroup)?void 0:t.id)||"")}).flatMap(e=>e.eventTimes).map(e=>e.start))).sort((e,t)=>e-t)),U(t.filter(e=>{var t;return F.eventTimeGroupIds.includes((null==(t=e.eventTimeGroup)?void 0:t.id)||"")}).flatMap(e=>e.eventTimes).map(e=>({id:e.id,start:e.start,end:e.end}))))},[F,t]),(0,o.useEffect)(()=>{F&&G({name:F.name,eventTimeGroupIds:F.eventTimeGroupIds.map(e=>({id:e})),resaleTime:{start:(0,L.Rg)(F.resaleTime.start),end:(0,L.eW)(F.resaleTime.end)}})},[F,G]),(0,o.useEffect)(()=>{h&&a.push(h)},[h,a]);let ee=(0,o.useMemo)(()=>!!t&&f("eventTimeGroupIds").map(e=>e.id).every(e=>{let r=t.find(t=>t.eventTimeGroup.id===e);return!!r&&0!==r.events.length&&!r.events.every(e=>{let t=e.resaleRestrict.list.isProhibited,r=e.resaleRestrict.offer.isProhibited;return t&&r})}),[t,j("eventTimeGroupIds")]);return{breadcrumbs:Q,fields:W,append:K,remove:X,onSubmit:Z,disclosure:J,handleLeave:V,handleStay:$,getRegisteredTicketCategoryName:e=>(q[j("eventTimeGroupIds.".concat(e,".id"))]||[]).join("ã"),isLoading:p,getEventTimesForGroup:e=>{let r=f("eventTimeGroupIds.".concat(e,".id"));return r&&t?t.filter(e=>{var t;return(null==(t=e.eventTimeGroup)?void 0:t.id)===r}).flatMap(e=>e.eventTimes):[]},isEditMode:!!d,schedule:F,scheduleError:D,starts:H,eventTimes:z,publishTime:null==r?void 0:r.publishTime,getAlreadySelectedEventTimeGroupIds:()=>{let e=f("eventTimeGroupIds").map(e=>e.id).filter(Boolean);return g.filter(t=>!e.includes(t))},hasResalableTickets:ee}};var O=r(20707),M=r(84629);let F=e=>{var t,r,o,n;let{promoterGroupEvent:i,promoterEventList:l}=e,u=(0,c.xW)(),{fields:g,append:y,remove:T,disclosure:A,handleLeave:_,handleStay:C,breadcrumbs:N,getRegisteredTicketCategoryName:R,getEventTimesForGroup:I,getAlreadySelectedEventTimeGroupIds:S}=G({promoterGroupEvent:i,promoterEventList:l,formMethods:u}),w=S(),k=g.map((e,t)=>u.watch("eventTimeGroupIds.".concat(t,".id"))).filter(Boolean);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.a,{mx:"auto",width:"full",mb:"sm",children:[(0,s.jsx)(j.n,{title:"åä»ã°ã«ã¼ãç·¨é"}),(0,s.jsx)(v.Q,{breadcrumbs:N,hasPromoterEvents:(null==i||null==(t=i.events)?void 0:t.length)>0,hasSchedules:(null==i||null==(r=i.schedules)?void 0:r.length)>0,mt:"xs"}),(0,s.jsxs)(d.z,{as:"section",mt:"xs",align:"center",spacing:"xxs",bg:"bg.surfaceFill",p:"xs",borderRadius:"xl",children:[(0,s.jsx)(p.e,{src:i.ticketImageUrl,boxSize:"20px",mr:"xxs"}),(0,s.jsx)(O.EY,{variant:"h4",flex:"1",label:!0,children:i.name})]}),(0,s.jsxs)(a.a,{as:"section",mt:"4xl",children:[(0,s.jsxs)(m.s,{align:"center",gap:"xs",children:[(0,s.jsx)(E(),{src:"/icons/calendar-setting.svg",alt:"ãã±ããã®ã¢ã¤ã³ã³",width:24,height:24}),(0,s.jsx)(O.EY,{variant:"h2",label:!0,children:"åä»ã°ã«ã¼ãç·¨é"})]}),(0,s.jsx)(O.EY,{mt:"lg",size:"md",children:"ç»é²ãããã±ããå¸ç¨®ãã©ãããè²©å£²æ¹æ³ã§ãã©ã®æéã§è²©å£²ããã®ãã®è¨å®ãè¡ãã¾ãã"}),(0,s.jsxs)(a.a,{mt:"lg",px:"lg",py:"xl",bg:"bg.surfaceFill",borderRadius:"xl",children:[(0,s.jsx)(a.a,{maxW:"318px",children:(0,s.jsx)(b.Z,{labelTitle:"åä»ã°ã«ã¼ãåç§°",registerName:"name",register:u.register,isInvalid:!!(null==(o=u.formState.errors)?void 0:o.name),errorMessage:(null==(n=u.formState.errors)?void 0:n.name)?String(u.formState.errors.name.message):""})}),(0,s.jsx)(O.EY,{mt:"sm",size:"sm",color:"sub",children:"â»åä»ã°ã«ã¼ãåã¯è³¼å
¥è
ç»é¢ã«ã¯è¡¨ç¤ºããã¾ããã管çç¨ã®åç§°ã¨ãªãã¾ãã"}),(0,s.jsxs)(a.a,{as:"section",mt:"2xl",children:[(0,s.jsx)(O.EY,{variant:"h3",size:"md",fontWeight:"bold",children:"1ã¤ãã®åä»ã°ã«ã¼ãã§åæ±ãæ¥ç¨"}),(0,s.jsx)(O.EY,{mt:"sm",children:"ï¼ã¤ãã®åä»ã°ã«ã¼ãã§åãæ±ãæ¥ç¨ãè¨å®ãã¦ãã ããã"}),(0,s.jsx)(a.a,{mt:"2xl",py:"sm",borderTop:"1px",borderColor:"divider.gray-300",children:g.map((e,t)=>(0,s.jsxs)(a.a,{borderBottom:"1px",borderColor:"divider.gray-300",pt:0===t?"none":"sm",pb:"sm",children:[(0,s.jsxs)(m.s,{gap:"sm",children:[(0,s.jsx)(O.EY,{fontWeight:"bold",size:"lg",pr:"xxs",borderRight:"4px",borderColor:"divider.gray-300",minW:"30px",children:t+1}),(0,s.jsxs)(h.l,{h:"50px",maxW:"300px",value:u.watch("eventTimeGroupIds.".concat(t,".id"))||"",onChange:e=>{u.setValue("eventTimeGroupIds.".concat(t,".id"),e.target.value,{shouldValidate:!0})},children:[(0,s.jsx)("option",{value:"",disabled:!0,hidden:!0,children:"å¸ç¨®åç§°é¸æ"}),i.eventTimeGroups.filter(e=>{let r=u.watch("eventTimeGroupIds.".concat(t,".id"));return e.id===r||!k.includes(e.id)&&!w.includes(e.id)}).map((e,t)=>(0,s.jsx)("option",{value:e.id,children:e.name},"select-option-".concat(t))),u.watch("eventTimeGroupIds.".concat(t,".id"))&&(0,s.jsx)("option",{value:"",children:"æªé¸æã«æ»ã"})]}),(0,s.jsx)(a.a,{display:"flex",justifyContent:"center",alignItems:"center",children:(0,s.jsx)(O.$n,{variant:"unstyled",p:"none",w:"32px",h:"32px",onClick:()=>T(t),children:(0,s.jsx)(O.In,{iconType:"deleteWhiteButton",size:32})})})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(m.s,{mt:"xs",mr:"none",mb:"none",ml:"3xl",alignItems:"center",bg:"bg.secondary",rounded:"md",p:"sm",gap:"sm",w:"fit-content",children:[(0,s.jsx)(O.EY,{size:"sm",color:"sub",whiteSpace:"nowrap",children:"ç»é²æ¥ç¨"}),(0,s.jsx)(O.EY,{display:"flex",flexDir:"row",flexWrap:"wrap",rowGap:"xxs",children:I(t).map(e=>(0,s.jsxs)(a.a,{display:"flex",alignItems:"center",children:[(0,s.jsxs)(O.EY,{size:"sm",label:!0,children:[(0,M.Jv)(e.start),"éæ¼"]}),(0,s.jsx)(x.c,{orientation:"vertical",height:"12px",mx:"xs",color:"divider.gray-300",borderColor:"divider.gray-300"})]},e.id))})]}),(0,s.jsxs)(m.s,{mt:"xs",mr:"none",mb:"none",ml:"3xl",alignItems:"center",bg:"bg.secondary",rounded:"md",p:"sm",gap:"sm",w:"fit-content",children:[(0,s.jsx)(O.EY,{size:"sm",color:"sub",whiteSpace:"nowrap",children:"ç»é²å¸ç¨®"}),(0,s.jsx)(O.EY,{size:"sm",children:R(t)})]})]})]},t))})]}),(0,s.jsxs)(O.$n,{variant:"unstyled",gap:"xxs",mt:"lg",border:"2px dashed",borderColor:"divider.gray-300",borderRadius:"md",_disabled:{opacity:.5},w:"100%",disabled:50<=g.length||!i.eventTimeGroups.some(e=>!k.includes(e.id)&&!w.includes(e.id)),onClick:()=>y({id:""}),children:[(0,s.jsx)(O.EY,{size:"md",children:"æ¥ç¨ã°ã«ã¼ãã追å "}),(0,s.jsx)(E(),{src:"/icons/plus-circle.svg",alt:"å
¬éæ¥è¿½å ",width:14,height:14})]})]})]})]}),(0,s.jsx)(f.B,{isOpen:A.exitConfirmationModal.isOpen,onClose:A.exitConfirmationModal.onClose,handleStay:C,handleLeave:_})]})},P={type:"object",properties:{name:{type:"string",minLength:1,maxLength:50,errorMessage:{minLength:"åä»ã¹ã±ã¸ã¥ã¼ã«åç§°ã¯1æå以ä¸å
¥åãã¦ãã ããã",maxLength:"åä»ã¹ã±ã¸ã¥ã¼ã«åç§°ã¯50æå以ä¸ã§å
¥åãã¦ãã ããã"}},eventTimeGroupIds:{type:"array",maxItems:50,items:{type:"object",properties:{id:{type:"string",format:"uuid",uniqueItems:!0}},required:["id"],additionalProperties:!1}},resaleTime:{type:"object",properties:{start:{oneOf:[{type:"object",properties:{type:{type:"string",const:"saleStartTime"}},required:["type"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"scheduled"},days:{type:"number"},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:"fixed"},time:{type:"number"}},required:["type","time"],additionalProperties:!1}]},end:{oneOf:[{type:"object",properties:{type:{type:"string",const:"eventEndTime"}},required:["type"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",enum:["scheduled","relativeBeforeEventTimeStart"]},days:{type:"number"},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:"fixed"},time:{type:"number"}},required:["type","time"],additionalProperties:!1}]}},required:["start","end"],additionalProperties:!1}},required:["name","eventTimeGroupIds","resaleTime"],additionalProperties:!1};var D=r(37225),Y=r(93270),H=r(40583);let B=()=>{var e,t;let r=(0,n.useRouter)(),{data:o,isLoading:i}=(0,H.L)(),{data:p,isLoading:m}=(0,Y.g)(),h={name:"",eventTimeGroupIds:[{id:(null==o||null==(t=o.eventTimeGroups)||null==(e=t[0])?void 0:e.id)||""}],resaleTime:{start:{type:"saleStartTime"},end:{type:"eventEndTime"}}},{methods:x}=(0,D.V)(P,"onChange",h),{isLoading:g,starts:E,eventTimes:v,onSubmit:b,hasResalableTickets:j}=G({promoterEventList:p,promoterGroupEvent:o,formMethods:x});if(i||m||g)return(0,s.jsxs)(a.a,{mx:"auto",width:"full",mb:"sm",pb:"5xl",children:[(0,s.jsx)(a.a,{pt:"2xl",pb:"lg",bg:"bg.primary",mx:"calc(-50vw + 50%)",children:(0,s.jsxs)(a.a,{as:"section",mx:"auto",width:"full",maxW:"990px",px:"5xl",children:[(0,s.jsx)(O.EY,{variant:"h2",label:!0,children:"åä»ã¹ã±ã¸ã¥ã¼ã«ä½æ"}),(0,s.jsx)(l.E,{height:"20px",mt:"sm",width:"60%"})]})}),(0,s.jsxs)(d.z,{as:"section",mt:"xs",align:"center",spacing:"xxs",bg:"bg.surfaceFill",p:"xs",borderRadius:"xl",children:[(0,s.jsx)(l.E,{boxSize:"20px",rounded:"full"}),(0,s.jsx)(l.E,{h:"14px",w:"20%"})]}),(0,s.jsxs)(a.a,{as:"section",mt:"4xl",children:[(0,s.jsx)(l.E,{height:"24px",width:"250px"}),(0,s.jsx)(l.E,{height:"16px",mt:"lg",width:"80%"}),(0,s.jsxs)(a.a,{mt:"lg",px:"lg",py:"xl",bg:"bg.surfaceFill",borderRadius:"xl",children:[(0,s.jsx)(l.E,{height:"50px",width:"318px"}),(0,s.jsx)(l.E,{height:"12px",mt:"sm",width:"70%"}),(0,s.jsxs)(a.a,{as:"section",mt:"2xl",children:[(0,s.jsx)(l.E,{height:"16px",width:"300px"}),(0,s.jsx)(l.E,{height:"12px",mt:"sm",width:"60%"}),(0,s.jsx)(l.E,{height:"12px",mt:"xxs",width:"70%"}),(0,s.jsx)(a.a,{mt:"2xl",py:"sm",borderTop:"1px",borderBottom:"1px",borderColor:"divider.gray-300",children:(0,s.jsxs)(a.a,{borderBottom:"1px",borderColor:"divider.gray-300",pb:"sm",children:[(0,s.jsxs)(d.z,{gap:"sm",children:[(0,s.jsx)(l.E,{height:"20px",width:"30px"}),(0,s.jsx)(l.E,{height:"50px",width:"300px"}),(0,s.jsx)(l.E,{height:"32px",width:"32px",borderRadius:"full"})]}),(0,s.jsx)(l.E,{height:"40px",mt:"xs",ml:"4xl",width:"200px"})]})})]}),(0,s.jsx)(l.E,{height:"50px",mt:"lg",width:"100%"})]}),(0,s.jsx)(a.a,{mt:"2xl",textAlign:"center",children:(0,s.jsx)(l.E,{height:"50px",width:"295px",mx:"auto",borderRadius:"full"})})]})]});if(!o||!p)return null;let f=x.handleSubmit(()=>{b()});return(0,s.jsx)(c.Op,{...x,children:(0,s.jsx)("form",{onSubmit:f,children:(0,s.jsxs)(a.a,{display:"flex",flexDirection:"column",gap:"lg",pb:"5xl",children:[(0,s.jsx)(F,{promoterGroupEvent:o,promoterEventList:p}),j&&(0,s.jsx)(u.w,{starts:E,eventTimes:v,isEdit:!0,promoterEventList:p}),(0,s.jsxs)(a.a,{textAlign:"center",display:"flex",justifyContent:"center",gap:"sm",pb:"5xl",children:[(0,s.jsx)(O.$n,{variant:"secondary",onClick:()=>r.push("/event/promoter/".concat(o.id,"/schedule")),children:"åä»ã¹ã±ã¸ã¥ã¼ã«ä¸è¦§ã¸"}),(0,s.jsx)(O.$n,{type:"submit",isLoading:g,children:"æ´æ°"})]})]})})})},z=()=>{let e=(0,n.useRouter)();return(0,o.useEffect)(()=>{},[e]),(0,s.jsx)(i.kx,{children:(0,s.jsx)(B,{})})}},40583:(e,t,r)=>{"use strict";r.d(t,{L:()=>c});var s=r(5377),o=r(89099),n=r(32587),i=r(27715),a=r(15929),l=r(21272),d=r(15219);let c=()=>{let e=(0,o.useRouter)(),t=(0,s.d)(),{t:r}=(0,l.Y)(),[c]=(0,n.A)([a.A.ACCESS_TOKEN,a.A.ACCOUNT_ID]),u=e.query.groupEventId;return{...(0,i.Ay)(e.isReady?["/promoterGroupEvent",u,c[a.A.ACCESS_TOKEN],c[a.A.ACCOUNT_ID]]:null,async e=>{let[,t,r]=e;return(await (0,d.e)(r,{groupId:t,ownerId:c[a.A.ACCOUNT_ID]})).data},{onError:e=>{var s,o,n;console.error(e);let i=r.hooks.promoterEvent.GET_ERROR_DESCRIPTION;(null==(n=e.response)||null==(o=n.data)||null==(s=o.error)?void 0:s.message)&&(i=e.response.data.error.message),t({title:r.hooks.promoterEvent.GET_ERROR_TITLE,description:i,status:"error",duration:5e3,isClosable:!0})}})}}},44750:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var s=r(37876),o=r(51826),n=r(20707);let i=e=>{let{isOpen:t,onClose:r,handleLeave:i,handleStay:a}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.r,{onClose:r,isOpen:t,heading:"ä¿åãã¦ããªãæ
å ±ãããã¾ã",blackButtonFunc:i,grayButtonFunc:a,children:(0,s.jsx)(n.EY,{label:!0,size:"md",children:"æªä¿åã®ã¾ã¾éããã¨ç·¨éãããã¼ã¿ã¯å¤±ããã¾ãã"})})})}},50196:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var s=r(89099),o=r(32587),n=r(15929);let i=function(){let{isEdit:e=!1,groupId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,s.useRouter)(),i=t||r.query.groupEventId,[a]=(0,o.A)([n.A.ACCOUNT_ID,n.A.DISPLAY_ID]);return{breadcrumbs:[{label:"ãã¤ãã¼ã¸",href:"/account/".concat(a[n.A.DISPLAY_ID])},{label:"ã¤ãã³ããã¼ã¸",href:"/event/group/".concat(a[n.A.ACCOUNT_ID],"/").concat(i)},{label:"åä»ã¹ã±ã¸ã¥ã¼ã«ç®¡ç",href:"/event/promoter/".concat(i,"/schedule")},{label:"ãã±ããå¸ç¨®ä¸è¦§",href:"/event/promoter/".concat(i,"/ticket-category")},...e?[]:[{label:"ã¤ãã³ãç·¨é",href:"/event/promoter/create/".concat(i,"/edit")}]]}}},54298:(e,t,r)=>{"use strict";r.d(t,{u:()=>
1o});var s=r(14232);let o=e=>{(0,s.useEffect)(()=>{let t=t=>{e&&(t.preventDefault(),t.returnValue="")};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[e])}},66433:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/promoter/[groupEventId]/schedule/edit",function(){return r(40283)}])},67432:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var s=r(37876),o=r(21272),n=r(20707);let i=()=>{let{t:e}=(0,o.Y)();return(0,s.jsx)(n.Ex,{variant:"form",children:e.components.RequiredBadge.REQUIRED})}},71056:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var s=r(37876),o=r(39955),n=r(20339),i=r(20707);let a=e=>{let{title:t,children:r}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.a,{pt:"2xl",pb:"lg",ml:"calc(-50vw + 50%)",mr:"calc(-50vw + 50%)",children:(0,s.jsx)(n.m,{maxW:{base:"990px"},px:"none !important",children:(0,s.jsxs)(o.a,{px:"5xl",children:[(0,s.jsx)(i.EY,{variant:"h1",label:!0,children:t}),r]})})})})}},74230:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var s=r(83904);let o=async(e,t)=>await s.pY.get("".concat("https://ticketme.io/api/event","/promoterEventList"),{params:t,headers:{Authorization:"Bearer ".concat(e)}})},80165:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var s=r(37876),o=r(84661),n=r(39955),i=r(59803);let a=e=>{let{children:t,useRadioProps:r,isDisabled:a}=e,{state:l,getInputProps:d}=(0,o.z)(r),c=d();return(0,s.jsxs)(n.a,{as:"label",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",children:[(0,s.jsx)("input",{...c,disabled:a}),(0,s.jsxs)(i.s,{align:"center",direction:"row",gap:"8px",w:"full",children:[l.isChecked?(0,s.jsx)(n.a,{w:"20px",minW:"20px",h:"20px",minH:"20px",border:"1px",borderColor:"#000000",borderRadius:"full",children:(0,s.jsx)(n.a,{pos:"relative",top:"50%",left:"50%",w:"12px",h:"12px",bg:"#000000",borderRadius:"full",transform:"translate(-50%, -50%)"})}):(0,s.jsx)(n.a,{w:"20px",minW:"20px",h:"20px",minH:"20px",border:"1px",borderColor:"#000000",borderRadius:"full"}),(0,s.jsx)(n.a,{w:"calc(100% - 20px - 8px)",children:t})]})]})}},93270:(e,t,r)=>{"use strict";r.d(t,{g:()=>d});var s=r(5377),o=r(89099),n=r(32587),i=r(27715),a=r(15929),l=r(74230);let d=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,o.useRouter)(),r=(0,s.d)(),[d]=(0,n.A)([a.A.ACCESS_TOKEN,a.A.ACCOUNT_ID]),c=t.query.groupEventId;return{...(0,i.Ay)(t.isReady?["/promoterEventList",d[a.A.ACCESS_TOKEN],c,e]:null,async e=>{let[,t,r,s]=e;return s?(await (0,l.x)(t,{groupId:r,isEventTimeGroup:String(s)})).data:(await (0,l.x)(t,{groupId:r})).data},{onError:e=>{console.error(e),r({title:"ã¨ã©ã¼ãçºçãã¾ãã",description:"æéãããã¦å度ã試ããã ããã",status:"error",duration:5e3,isClosable:!0})}})}}}},e=>{e.O(0,[37458,91340,93552,81885,91591,76257,59946,90636,46593,38792],()=>e(e.s=66433)),_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.