PageSourceSearch

https://commmune.com/_next/static/chunks/19-94a46ea1f1672434.js

js commmune.com collected 2026-10-02 06:30:30 UTC 35,011 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8fe44145-cbec-5310-9338-a6757d42fc52")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19,1097],{427:(e,t,a)=>{"use strict";a.d(t,{D:()=>o});var r=a(36439),i=a(20764),n=a.n(i),l=a(65437);let o=(e,t)=>{let{openModal:a}=(0,l.fl)();(0,r.useEffect)(()=>{if(!n().router?.change)return;let r=n().router.change,l=window.onbeforeunload;return e?window.onbeforeunload=()=>"":window.onbeforeunload=l,e&&(n().router.change=async(...e)=>{let[r,,l]=e,o=n().router?.state.asPath.split("?")[0]!==l.split("?")[0],s=!1;(o&&(s=await new Promise(e=>{a({...t,onConfirm:()=>e(!0),onCancel:()=>e(!1)})})),s)?i.Router.prototype.change.apply(n().router,e):"replaceState"===r&&o&&(await n().router?.push(n().router?.state.asPath),history.go(1))}),()=>{n().router.change=r,window.onbeforeunload=l}},[e,t,a])}},1298:(e,t,a)=>{"use strict";a.d(t,{E:()=>d});var r=a(45023),i=a(2004),n=a.n(i);a(36439);var l=a(25008),o=a.n(l),s=a(78195);function d({className:e,children:t}){return(0,r.FD)(r.FK,{children:[(0,r.Y)(s.Z,{className:o()("content-container",e),children:t}),(0,r.Y)(n(),{id:"cefe016afe834216",children:".content-container.jsx-cefe016afe834216{border-radius:4px;overflow:hidden}"})]})}},2257:e=>{e.exports={switchRoot:"Switch_switchRoot__8guFM",switchThumb:"Switch_switchThumb__YvxJf",track:"Switch_track__vcir2",icon:"Switch_icon__Aiyq2",wrapper:"Switch_wrapper__EvJCz",supportingWrapper:"Switch_supportingWrapper___Wy0D",reverseWrapper:"Switch_reverseWrapper__TR5rt",label:"Switch_label__69j7C",supportingText:"Switch_supportingText__q1f0B typescaleBodyMedium",handleContainer:"Switch_handleContainer__qdADR",switch:"Switch_switch__tUmoF",surface:"Switch_surface__anVj5"}},2547:(e,t,a)=>{"use strict";a.d(t,{hO:()=>s,sG:()=>o});var r=a(36439),i=a(72354),n=a(13562),l=a(2183),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let a=r.forwardRef((e,a)=>{let{asChild:r,...i}=e,o=r?n.DX:t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o,{...i,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function s(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},13562:(e,t,a)=>{"use strict";a.d(t,{DX:()=>l});var r=a(36439),i=a(18832),n=a(2183),l=r.forwardRef((e,t)=>{let{children:a,...i}=e,l=r.Children.toArray(a),s=l.find(d);if(s){let e=s.props.children,a=l.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,n.jsx)(o,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,a):null})}return(0,n.jsx)(o,{...i,ref:t,children:a})});l.displayName="Slot";var o=r.forwardRef((e,t)=>{let{children:a,...n}=e;if(r.isValidElement(a)){var l;let e,o,s=(l=a,(o=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(o=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref);return r.cloneElement(a,{...function(e,t){let a={...t};for(let r in t){let i=e[r],n=t[r];/^on[A-Z]/.test(r)?i&&n?a[r]=(...e)=>{n(...e),i(...e)}:i&&(a[r]=i):"style"===r?a[r]={...i,...n}:"className"===r&&(a[r]=[i,n].filter(Boolean).join(" "))}return{...e,...a}}(n,a.props),ref:t?(0,i.t)(t,s):s})}return r.Children.count(a)>1?r.Children.only(null):null});o.displayName="SlotClone";var s=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function d(e){return r.isValidElement(e)&&e.type===s}},13611:(e,t,a)=>{"use strict";a.d(t,{x:()=>l});var r=a(45023),i=a(2004),n=a.n(i);function l({children:e}){return(0,r.FD)("div",{className:"jsx-9054149ebbf1082a appPageContainer",children:[e,(0,r.Y)(n(),{id:"9054149ebbf1082a",children:".appPageContainer.jsx-9054149ebbf1082a{padding-bottom:60px}"})]})}a(36439)},15521:(e,t,a)=>{"use strict";a.d(t,{c:()=>l});var r=a(45023),i=a(7528);let n=(0,i.n9)()({container:{position:"fixed",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#ffffff",opacity:.6,zIndex:9999}});function l(){let{classes:e}=n();return(0,r.Y)(i.az,{className:e.container,children:(0,r.Y)(i.P,{color:"primary",size:"2rem"})})}},18832:(e,t,a)=>{"use strict";a.d(t,{s:()=>
3l,t:()=>n});var r=a(36439);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let a=!1,r=e.map(e=>{let r=i(e,t);return a||"function"!=typeof r||(a=!0),r});if(a)return()=>{for(let t=0;t<r.length;t++){let a=r[t];"function"==typeof a?a():i(e[t],null)}}}}function l(...e){return r.useCallback(n(...e),e)}},21097:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var r=a(45023),i=a(36439),n=a(41471),l=a(26139),o=a(13611),s=a(4437);let d=function({renderPc:e,renderSp:t,isPage:a=!0}){let d=(0,n.useSelector)(({user:e})=>e.userAgent),c=(0,s.hD)();return(0,l.c$)(d)&&!c?(0,r.Y)(i.Fragment,{children:e()}):a?(0,r.Y)(o.x,{children:t()}):(0,r.Y)(i.Fragment,{children:t()})}},29097:(e,t,a)=>{"use strict";function r(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),!1===a||!r.defaultPrevented)return t?.(r)}}a.d(t,{m:()=>r})},32281:(e,t,a)=>{"use strict";a.d(t,{J:()=>eS});var r=a(45023),i=a(2004),n=a.n(i),l=a(41471),o=a(40794),s=a(39282),d=a(67198),c=a(55165),u=a(4437);function p({submitButtonText:e,disabled:t}){let a=(0,u.hD)(),i=(0,l.useSelector)(c.TG),{formState:{isSubmitting:m}}=(0,d.rf)();return(0,r.FD)("div",{className:n().dynamic([["adaecf3f33292bed",[a?`${s.Kz[9]} ${s.Kz[7]}`:`${s.Kz[11]} ${s.Kz[10]}`,s.Q1.user.background.white]]])+" event-submit-button",children:[(0,r.Y)(o.$,{fullWidth:!0,backgroundColor:i,htmlType:"submit",disabled:t,loading:m,"data-cy":"event-submit-button",children:e}),(0,r.Y)(n(),{id:"adaecf3f33292bed",dynamic:[a?`${s.Kz[9]} ${s.Kz[7]}`:`${s.Kz[11]} ${s.Kz[10]}`,s.Q1.user.background.white],children:`.event-submit-button.__jsx-style-dynamic-selector{display:flex;justify-content:center;padding:${a?`${s.Kz[9]} ${s.Kz[7]}`:`${s.Kz[11]} ${s.Kz[10]}`};background-color:${s.Q1.user.background.white}}`})]})}var m=a(36439);let h=({label:e,style:t})=>{let a={fontSize:"0.9rem"},i=t?{...a,...t}:a;return(0,r.Y)(m.Fragment,{children:(0,r.Y)("div",{className:"mb-2",style:i,children:e})})};var f=a(29097),y=a(18832),b=a(70276),g=a(32633),v=a(69793),x=a(2547),D=a(2183),_="Switch",[E,T]=(0,b.A)(_),[w,N]=E(_),F=m.forwardRef((e,t)=>{let{__scopeSwitch:a,name:r,checked:i,defaultChecked:n,required:l,disabled:o,value:s="on",onCheckedChange:d,form:c,...u}=e,[p,h]=m.useState(null),b=(0,y.s)(t,e=>h(e)),v=m.useRef(!1),_=!p||c||!!p.closest("form"),[E=!1,T]=(0,g.i)({prop:i,defaultProp:n,onChange:d});return(0,D.jsxs)(w,{scope:a,checked:E,disabled:o,children:[(0,D.jsx)(x.sG.button,{type:"button",role:"switch","aria-checked":E,"aria-required":l,"data-state":I(E),"data-disabled":o?"":void 0,disabled:o,value:s,...u,ref:b,onClick:(0,f.m)(e.onClick,e=>{T(e=>!e),_&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})}),_&&(0,D.jsx)(A,{control:p,bubbles:!v.current,name:r,value:s,checked:E,required:l,disabled:o,form:c,style:{transform:"translateX(-100%)"}})]})});F.displayName=_;var Y="SwitchThumb",C=m.forwardRef((e,t)=>{let{__scopeSwitch:a,...r}=e,i=N(Y,a);return(0,D.jsx)(x.sG.span,{"data-state":I(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});C.displayName=Y;var A=e=>{let t,{control:a,checked:r,bubbles:i=!0,...n}=e,l=m.useRef(null),o=(t=m.useRef({value:r,previous:r}),m.useMemo(()=>(t.current.value!==r&&(t.current.previous=t.current.value,t.current.value=r),t.current.previous),[r])),s=(0,v.X)(a);return m.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==r&&t){let a=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(a)}},[o,r,i]),(0,D.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function I(e){return e?"checked":"unchecked"}var S=a(27417),$=a(92910),M=a(2257),k=a.n(M);let R=(0,m.forwardRef)(({onChange:e,dataTestId:t,id:a,checked:i},n)=>(0,r.Y)(F,{id:a,checked:i,onCheckedChange:e,"date-testid":t,className:k().switchRoot,ref:n,children:(0,r.Y)("span",{className:k().track,children:(0,r.FD)("span",{className:k().handleContainer,children:[(0,r.Y)("span",{className:k().switch,children:(0,r.Y)("span",{className:k().surface})}),(0,r.FD)("span",{children:[(0,r.Y)(C,{className:k().switchThumb}),(0,r.Y)("span",{className:k().icon,children:(0,r.Y)(S.y$,{"aria-hidden":!0})})]})]})})})),P=(0,m.forwardRef)((e,t)=>(0,r.FD)("div",{className:`${k().wrapper} ${e.supportingText&&k().supportingWrapper} ${e.rowReverse&&k().reverseWrapper}`,children:[(0,r.Y)(R,{...e,ref:t}),!e.subLabel&&(0,r.FD)("label",{className:k().label,htmlFor:e.id,children:[e.label,e.supportingText&&(0,r.Y)("span",{className:k().supportingText,children:e.supportingText})]}),e.subLabel&&(0,r.Y)($.m,{supportingText:e.subLabel,children:(0,r.Y)("label",{className:k().label,htmlFor:e.id,children:e.label})})]})),j=(0,m.forwardRef)(({...e},t)=>{let a=e.id||crypto.randomUUID();return e.label?(0,r.Y)(P,{...e,id:a,ref:t}):(0,r.Y)(R,{...e,id:a,ref:t})});var z=a(90524);function O({sectionName:e,children:t}){return(0,r.FD)("fieldset",{className:n().dynamic([["398a71cb4393e478",[s.FE.gray.user[1],s.EA.md,s.FE.gray.user[6],s.Z4[550]]]])+" event-field-set",children:[(0,r.Y)("legend",{className:n().dynamic([["398a71cb4393e478",[s.FE.gray.user[1],s.EA.md,s.FE.gray.user[6],s.Z4[550]]]])+" legend",children:e}),(0,r.Y)("div",{className:n().dynamic([["398a71cb4393e478",[s.FE.gray.user[1],s.EA.md,s.FE.gray.user[6],s.Z4[550]]]])+" contents",children:t}),(0,r.Y)(n(),{id:"398a71cb4393e478",dynamic:[s.FE.gray.user[1],s.EA.md,s.FE.gray.user[6],s.Z4[550]],children:`.event-field-set.__jsx-style-dynamic-selector{border-top:1px solid ${s.FE.gray.user[1]};background-color:white;padding:21px 32px}@media(max-width:${s.EA.md}){.event-field-set.__jsx-style-dynamic-selector{padding:21px 16px}}.legend.__jsx-style-dynamic-selector{display:contents;color:${s.FE.gray.user[6]};font-size:${s.Z4[550]};font-weight:bold}.contents.__jsx-style-dynamic-selector{margin-block-start:24px}`})]})}function V(){let{t:e}=(0,z.B)(["components/templates/event"]),{field:{value:t,onChange:a}}=(0,d.SN)({name:"isPostable"});return(0,r.FD)(O,{sectionName:e("Event chat room"),children:[(0,r.FD)("div",{className:n().dynamic([["6cb480fd5cae0b84",[s.FE.gray.user[6]]]])+" chat-room-container",children:[(0,r.Y)("div",{className:n().dynamic([["6cb480fd5cae0b84",[s.FE.gray.user[6]]]])+" switch-wrapper",children:(0,r.Y)(j,{label:e("Enable"),checked:t,onChange:a,c
3olor:"primary","data-cy":"is-postable-event-switch"})}),(0,r.Y)(h,{label:e("Event chat room description")})]}),(0,r.Y)(n(),{id:"6cb480fd5cae0b84",dynamic:[s.FE.gray.user[6]],children:`.chat-room-container.__jsx-style-dynamic-selector{font-size:15px;color:${s.FE.gray.user[6]}}.chat-room-container.__jsx-style-dynamic-selector .MuiFormControlLabel-label{font-size:15px}.switch-wrapper.__jsx-style-dynamic-selector{margin-bottom:8px}`})]})}var H=a(427),L=a(96114),W=a(30915),U=a(66787),B=a(90384),Z=a(18731),K=a(7528);function q({label:e,htmlFor:t,required:a=!1}){let{t:i}=(0,z.B)("components/atoms"),{classes:n}=G();return(0,r.FD)(K._S,{htmlFor:t,className:n.label,children:[(0,r.Y)("span",{children:e}),!a&&(0,r.Y)("span",{className:n.optional,children:i("Optional")})]})}let G=(0,K.n9)()(()=>({label:{position:"static",display:"flex",justifyContent:"space-between",width:"100%",color:s.Q1.user.text.default,fontSize:s.Z4[350],transform:"none"},optional:{fontSize:s.Z4[250],color:s.Q1.user.text.subdued}}));var Q=a(52095),X=a.n(Q),J=a(43116),ee=a(64897),et=a(47814);function ea({onChange:e,onClose:t,id:a,name:i,inputRef:n,errorMessage:l,date:o,className:s,textFieldClassName:d,defaultEmpty:c=!0,disablePast:u=!1,disabled:p=!1,timezone:m,minDate:h,maxDate:f}){let{usingDate:y,adjustedTimezone:b}=(0,et.Z)(c,o,m);return(0,r.Y)(K.$J,{dateAdapter:K.R6,adapterLocale:ee.Ay.language,children:(0,r.Y)(K.K7,{inputRef:n,minDateTime:h?X()(h):void 0,maxDateTime:f?X()(f):void 0,className:s,value:y,onChange:t=>t?.isValid()&&e(t.toDate()),onClose:t,ampm:!1,format:J.DATE_TIME_FORMAT,timezone:b,disablePast:u,disabled:p,slotProps:{textField:{id:a,name:i,variant:"outlined",error:!!l,className:d,helperText:l},actionBar:{actions:["today","cancel","accept"]}}})})}var er=a(8089);function ei({onChange:e,onClose:t,id:a,name:i,inputRef:n,errorMessage:l,date:o,label:s,required:d=!1,disabled:c,minDate:u,maxDate:p,dataCy:m}){let{classes:h}=en();return(0,r.FD)(K.MJ,{className:h.formControl,"data-cy":m,children:[s&&(0,r.Y)(q,{label:s,htmlFor:a,required:d}),(0,r.Y)(ea,{id:a,name:i,inputRef:n,onChange:e,onClose:t,errorMessage:l,date:o,disabled:c,minDate:u,maxDate:p,textFieldClassName:h.textField})]})}let en=(0,K.n9)()(()=>({formControl:{"& .MuiOutlinedInput-root":{"& .MuiOutlinedInput-input":{boxSizing:"border-box",padding:"12px",minHeight:"48px"},"&:hover fieldset":{borderColor:s.Q1.user.border.focus},"&.Mui-focused fieldset":{borderColor:s.Q1.user.border.focus},"&.Mui-error fieldset":{borderColor:s.Q1.user.error}},minWidth:`${er.A.INPUT_MIN_WIDTH}px`},textField:{"& .MuiFormHelperText-contained":{marginInline:0,fontFamily:"inherit",fontSize:"13px"},"& .MuiFormHelperText-root":{"&.Mui-error":{color:s.Q1.user.text.error}}}}));function el({id:e,name:t,rules:a,label:i,disabled:n,minDate:l,maxDate:o,triggerField:s,setValueField:c,dataCy:u}){let{field:p}=(0,d.SN)({name:t,rules:a}),{formState:{errors:m},onChangeDate:h,updateSetValueField:f}=(0,d.rf)(p,s,c);return(0,r.Y)(ei,{id:e,name:p.name,inputRef:p.ref,errorMessage:m[t]?.message,onChange:h,onClose:f,label:i,required:!!a?.required,date:p.value,disabled:n,minDate:l,maxDate:o,dataCy:u})}function eo({from:{id:e,name:t,label:a,rules:i,disabled:l,minDate:o,maxDate:d,triggerField:c,setValueField:p,dataCy:m},to:{id:h,label:f,name:y,rules:b,disabled:g,minDate:v,maxDate:x,triggerField:D,setValueField:_,dataCy:E}}){let T=(0,u.hD)();return(0,r.FD)("div",{className:n().dynamic([["c0bb7de0c5831601",[T?"column":"row",T?`gap: ${s.Kz[9]};`:""]]])+" event-date-from-to",children:[(0,r.Y)(el,{id:e,name:t,label:a,rules:i,disabled:l,minDate:o,maxDate:d,triggerField:c,setValueField:p,dataCy:m}),!T&&(0,r.Y)("span",{className:n().dynamic([["c0bb7de0c5831601",[T?"column":"row",T?`gap: ${s.Kz[9]};`:""]]])+" tilde",children:"〜"}),(0,r.Y)(el,{id:h,name:y,label:f,rules:b,disabled:g,minDate:v,maxDate:x,triggerField:D,setValueField:_,dataCy:E}),(0,r.Y)(n(),{id:"c0bb7de0c5831601",dynamic:[T?"column":"row",T?`gap: ${s.Kz[9]};`:""],children:`.event-date-from-to.__jsx-style-dynamic-selector{display:flex;flex-direction:${T?"column":"row"};justify-content:space-between;${T?`gap: ${s.Kz[9]};`:""}}.tilde.__jsx-style-dynamic-selector{position:relative;height:1em;top:35px}`})]})}function es({label:e,required:t=!1,id:a,name:i,errorMessage:n,onChange:l,placeholder:o,helperText:s,fullWidth:d=!0,multiline:c=!1,rows:p=3,rowsMax:m=2
30,width:h,type:f,value:y,inputProps:b,inputRef:g,dataCy:v}){let{classes:x}=ed({isSp:(0,u.hD)(),width:h});return(0,r.FD)("div",{className:x.textField,children:[e&&(0,r.Y)(q,{label:e,htmlFor:a,required:t}),(0,r.Y)(K.A_,{fullWidth:d,inputRef:g,variant:"outlined",id:a,name:i,error:!!n,value:y,onChange:l,className:`${x.helperText} ${y?void 0:x.placeHolder}`,placeholder:o,type:f,multiline:c,rows:p,maxRows:m,helperText:n??s,inputProps:{"data-cy":v,inputMode:"number"===f?"numeric":void 0,...b}})]})}let ed=(0,K.n9)()((e,{isSp:t,width:a})=>({textField:{"& .MuiOutlinedInput-multiline":{padding:0,lineHeight:"1.5"},"& .MuiOutlinedInput-root":{"& .MuiOutlinedInput-input":{boxSizing:"border-box",padding:"12px",minHeight:"48px"},"&:hover fieldset":{borderColor:s.Q1.user.border.focus},"&.Mui-focused fieldset":{borderColor:s.Q1.user.border.focus},"&.Mui-error fieldset":{borderColor:s.Q1.user.error}},display:"block",minWidth:`${er.A.INPUT_MIN_WIDTH}px`,...t?{width:"100% "}:a?{width:`${a}px`}:void 0},placeHolder:{"& .MuiInputBase-input::placeholder":{color:`${s.Q1.user.text.light}`,opacity:1}},helperText:{"& .MuiFormHelperText-contained":{marginInline:0,fontSize:"13px"},"& .MuiFormHelperText-root":{"&.Mui-error":{color:s.Q1.user.text.error}}}}));function ec({label:e,id:t,name:a,rules:i,placeholder:n,helperText:l,fullWidth:o,type:s,multiline:c,rows:u,width:p,inputProps:m,dataCy:h}){let{field:f}=(0,d.SN)({name:a,rules:i}),{formState:{errors:y}}=(0,d.rf)();return(0,r.Y)(es,{label:e,required:!!i?.required,name:a,errorMessage:y[a]?.message,placeholder:n,helperText:l,fullWidth:o,value:f.value,onChange:f.onChange,type:s,id:t,multiline:c,rows:u,width:p,inputProps:m,inputRef:f.ref,dataCy:h})}var eu=a(47256),ep=a(50602),em=a(96328),eh=a(8819),ef=a(76768);function ey(){let{t:e}=(0,z.B)(["components/templates/event"]),{minHeldDateTo:t,minApplyDateTo:a,maxApplyDateTo:i}=(0,d.YI)(),{heldDateFromIsAfterHeldDateTo:n,heldDateToIsBeforeApplyDateTo:l,applyDateToIsBeforeApplyDateFrom:o}=(0,d.i5)(),{field:s}=(0,d.SN)({name:"applyDateFrom"});return(0,r.Y)(O,{sectionName:e("Overview"),"data-cy":"event-details-section",children:(0,r.FD)(B.a,{gap:9,children:[(0,r.Y)("div",{children:(0,r.Y)(ec,{id:"title",name:"title",label:e("Event name"),type:"text",placeholder:e("e.g. New Product Introduction Event"),dataCy:"event-title",rules:{required:e("Enter event name."),maxLength:{value:U.default.EVENT_TITLE_MAX_LENGTH,message:e("Event name must be {{max}} characters or less.",{max:U.default.EVENT_TITLE_MAX_LENGTH})}}})}),(0,r.Y)("div",{children:(0,r.Y)(eo,{from:{id:"heldDateFrom",name:"heldDateFrom",label:e("Event starts"),triggerField:"applyDateTo",rules:{required:e("Set an event start date."),validate:{heldDateFromIsAfterHeldDateTo:n}},dataCy:"event-held-date-from"},to:{id:"heldDateTo",name:"heldDateTo",label:e("Event ends"),minDate:t,rules:{required:e("Set an event end date."),validate:{heldDateToIsBeforeApplyDateTo:l}},setValueField:"applyDateTo",dataCy:"event-held-date-to"}})}),(0,r.Y)("div",{children:(0,r.Y)(ec,{id:"venue",name:"venue",label:e("Location"),type:"text",placeholder:e("e.g. It's an online event. URL will be shared soon!"),dataCy:"event-venue",multiline:!0,rows:1,rules:{maxLength:{value:U.default.EVENT_VENUE_MAX_LENGTH,message:e("Location must be {{max}} characters or less.",{max:U.default.EVENT_VENUE_MAX_LENGTH})}}})}),(0,r.FD)("div",{css:eg,children:[(0,r.Y)(q,{label:e("Image"),htmlFor:"eyecatchImage"}),(0,r.Y)(eb,{})]}),(0,r.Y)("div",{children:(0,r.Y)(ec,{id:"body",name:"body",type:"text",label:e("Description"),placeholder:e("Enter the event introduction and notes"),multiline:!0,dataCy:"event-body",rules:{required:e("Description is required field."),maxLength:{value:U.default.EVENT_DESCRIPTION_MAX_LENGTH,message:e("Description must be {{max}} characters or less.",{max:U.default.EVENT_DESCRIPTION_MAX_LENGTH})}}})}),(0,r.Y)("div",{children:(0,r.Y)(ec,{id:"capacity",name:"capacity",label:e("Capacity"),type:"number",helperText:e("The application auto-closes when it is reached."),fullWidth:!1,width:er.A.INPUT_MIN_WIDTH,dataCy:"event-capacity",rules:{min:{value:1,message:e("The application auto-closes when it is reached.")},required:e("The application auto-closes when it is reached.")}})}),(0,r.FD)("div",{children:[(0,r.Y)("input",{type:"hidden",name:s.name}),(0,r.Y)(el,{id:"applyDateTo",name:"applyDateTo",label:e("Application open until"),minDate:a,maxDate:i,rules:{required:e("Ap
3plication open until is required."),validate:{applyDateToIsBeforeApplyDateFrom:o}},triggerField:"heldDateTo",dataCy:"event-apply-date-to"})]}),(0,r.Y)("div",{children:(0,r.Y)(ec,{id:"attendeesViewableContent",name:"attendeesViewableContent",type:"text",label:e("Only visible to attendees"),placeholder:e("Enter URLs and instructions for participating in this event"),multiline:!0,dataCy:"event-attendees-viewable-content",rules:{maxLength:{value:U.default.EVENT_ATTENDEES_VIEWABLE_CONTENT_MAX_LENGTH,message:e("Information must be {{max}} characters or less.",{max:U.default.EVENT_ATTENDEES_VIEWABLE_CONTENT_MAX_LENGTH})}}})})]})})}let eb=(0,m.memo)(()=>{let{field:e}=(0,d.SN)({name:"eyecatchImage"}),{setValue:t}=(0,d.rf)(),{t:a}=(0,z.B)(["components/templates/event"]),i=(0,l.useDispatch)(),{getRootProps:n,getInputProps:o,open:c}=(0,em.V)({noDrag:!0,multiple:!1,accept:[...eu.D2],onDrop:e=>{i(eh.Sp.request({successCb:e=>{t("eyecatchImage",e[0]?.preview)},errorCb:()=>{ef.v.error("event eyecatchImage upload failed.")},images:[e[0]]}))}});return(0,r.FD)(r.FK,{children:[e.value?(0,r.FD)("div",{css:eD,children:[(0,r.Y)("img",{css:e_,src:e.value}),(0,r.FD)("div",{css:eE,children:[(0,r.Y)(ep.K,{type:"button",iconSource:"ImageUpload",size:5,onClick:c,title:a("Change image")}),(0,r.Y)(ep.K,{type:"button",iconSource:"Trash",size:5,onClick:()=>t("eyecatchImage",""),title:a("Delete")})]})]}):(0,r.FD)("div",{...n(),css:ev,children:[(0,r.Y)(Z.I,{source:"ImageUpload",size:9,color:s.FE.gray.user[4]}),(0,r.Y)("span",{css:ex,children:a("Recommended: 1280px \xd7 720px")})]}),(0,r.Y)("input",{...o({hidden:!0})})]})}),eg=(0,W.AH)("width:322px;@media screen and (max-width:600px){width:100%;}"),ev=(0,W.AH)("width:322px;height:182px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed ",s.FE.gray.user[2],";background:",s.FE.gray.user[0],";border-radius:8px;margin:0;@media screen and (max-width:600px){width:100%;}"),ex=(0,W.AH)("color:",s.FE.gray.user[4],";font-size:13px;margin:12px 0 0 0;line-height:1.4;"),eD=(0,W.AH)("display:flex;@media screen and (max-width:600px){flex-direction:column;margin-left:0;}"),e_=(0,W.AH)("width:322px;@media screen and (max-width:600px){width:100%;}"),eE=(0,W.AH)("display:flex;align-items:flex-end;gap:8px;margin:0 0 0 12px;@media screen and (max-width:600px){width:100%;margin:4px 0 0 0;}");var eT=a(67115),ew=a(55501);function eN({pageTitle:e}){let{t}=(0,z.B)(["components/templates/event"]),a=(0,ew.p)(),i=(0,eT.r)();return(0,r.FD)("header",{className:n().dynamic([["3cb16eed0825ec57",[s.EA.md,s.FE.gray.user[6],s.Z4[600],s.EA.md,s.Z4[450]]]])+" header",children:[!a&&(0,r.FD)(r.FK,{children:[(0,r.Y)(K.$n,{className:eF.className,onClick:i.back,children:t("Cancel")}),eF.styles]}),(0,r.Y)("h1",{className:n().dynamic([["3cb16eed0825ec57",[s.EA.md,s.FE.gray.user[6],s.Z4[600],s.EA.md,s.Z4[450]]]])+" title",children:e}),(0,r.Y)(n(),{id:"3cb16eed0825ec57",dynamic:[s.EA.md,s.FE.gray.user[6],s.Z4[600],s.EA.md,s.Z4[450]],children:`.header.__jsx-style-dynamic-selector{display:flex;position:relative;justify-content:center;align-items:center;padding:1.5em;background-color:white}@media(max-width:${s.EA.md}){.header.__jsx-style-dynamic-selector{padding:1em}}.title.__jsx-style-dynamic-selector{color:${s.FE.gray.user[6]};font-size:${s.Z4[600]};font-weight:bold}@media(max-width:${s.EA.md}){.title.__jsx-style-dynamic-selector{font-size:${s.Z4[450]}}}`})]})}let eF={styles:(0,r.Y)(n(),{id:"5787a8dd3c4ea4bc",children:`.MuiButton-root.jsx-5787a8dd3c4ea4bc{position:absolute;left:1em;padding:0;font-size:${s.Z4[350]}}@media(max-width:${s.EA.md}){.MuiButton-root.jsx-5787a8dd3c4ea4bc{font-size:${s.Z4[300]}}}`}),className:"jsx-5787a8dd3c4ea4bc"};function eY({label:e,name:t,checked:a,handleChange:i,disabled:n=!1,formControlLabelProps:o,checkboxProps:d,dataCy:u}){let p=(0,l.useSelector)(c.So),{classes:m}=eC();return(0,r.Y)(K.ip,{name:t,control:(0,r.Y)(K.Sc,{className:m.checkbox,checked:a,onChange:i,style:n?{}:{color:a?p:s.Q1.user.border.dark},...d}),label:e,disabled:n,"data-cy":u,...o})}let eC=(0,K.n9)()(()=>({checkbox:{padding:"2px 8px"}}));
3function eA({label:e,name:t,disabled:a,dataCy:i,formControlLabelProps:n,checkboxProps:l}){let{field:o}=(0,d.SN)({name:t});return(0,r.Y)(eY,{label:e,name:o.name,checked:o.value,handleChange:(e,t)=>o.onChange(t),disabled:a,dataCy:i,formControlLabelProps:n,checkboxProps:l})}function eI(){let{t:e}=(0,z.B)(["components/templates/event"]);return(0,r.Y)(O,{sectionName:e("Notifications for attendees"),children:(0,r.FD)("ul",{children:[(0,r.Y)("li",{children:(0,r.Y)(eA,{label:e("Application submitted"),name:"sendParticipationNotification"})}),(0,r.Y)("li",{children:(0,r.Y)(eA,{label:e("Reminder: 24 hours before"),name:"sendParticipationRemindNotification"})})]})})}function eS({pageTitle:e,isServerResponseSuccess:t,onSubmit:a,submitButtonText:i,savedValues:n}){let l=(0,d.mJ)(),{t:o}=(0,z.B)(["components/templates/event"]);return(0,d.Q$)(l.reset,n),(0,H.D)(l.formState.isDirty&&!t,{buttonText:o("Discard"),title:o("Discard changes?"),contentText:o("Your unsaved event will be lost.")}),(0,r.FD)("div",{"data-cy":"event-template",children:[(0,r.Y)(eN,{pageTitle:e}),(0,r.Y)(L.Op,{...l,children:(0,r.FD)("form",{onSubmit:l.handleSubmit(a),children:[(0,r.Y)(ey,{}),(0,r.Y)(V,{}),(0,r.Y)(eI,{}),(0,r.Y)(p,{submitButtonText:i,disabled:t})]})})]})}},32604:(e,t)=>{"use strict";t.bn=t.D$=t.xe=void 0,t.xe={AllUser:0,GuestUser:1,GroupUser:2},t.D$={AllUser:1,GroupUser:4},t.bn={AllUser:0,GuestUser:1,GroupUser:2}},43116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATE_TIME_FORMAT=t.INITIAL_DATE=t.DEFAULT_TIMEZONE=t.ADMIN_DATE_TIME_FORMAT=t.ADMIN_DATE_FORMAT=void 0,t.ADMIN_DATE_FORMAT="YYYY-MM-DD",t.ADMIN_DATE_TIME_FORMAT="YYYY-MM-DD HH:mm",t.DEFAULT_TIMEZONE="Asia/Tokyo",t.INITIAL_DATE="1970-01-01T00:00:00.000Z",t.DATE_TIME_FORMAT=t.ADMIN_DATE_TIME_FORMAT},47256:(e,t,a)=>{"use strict";a.d(t,{D2:()=>i,FW:()=>n,do:()=>r});let r=["video/*"],i=["image/jpeg","image/png","image/gif","image/heif","image/heic",".heif",".heic"],n=["application/pdf","text/csv,application/octet-stream","application/zip,application/octet-stream,application/x-zip-compressed,multipart/x-zip","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},47814:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(36439),i=a(52095),n=a.n(i);let l=(e,t,a)=>{let i=e?null:n()();return{usingDate:t?n()(t):i,adjustedTimezone:(0,r.useMemo)(()=>a&&0===n()().tz(a).utcOffset()?"UTC":a,[a])}}},50602:(e,t,a)=>{"use strict";a.d(t,{K:()=>l});var r=a(45023),i=a(30915),n=a(18731);let l=({iconSource:e,size:t=2,...a})=>{let i=a.disabled?"rgba(var(--md-sys-color-on-surface-variant-old), 0.38)":"rgb(var(--md-sys-color-on-surface-variant-old))";return(0,r.Y)("button",{...a,css:o,children:(0,r.Y)(n.I,{source:e,size:t,color:i})})},o=(0,i.AH)({width:"40px",height:"40px",cursor:"pointer",borderRadius:"100px",":not(:disabled)":{":hover":{backgroundColor:"rgba(var(--md-sys-color-on-surface-variant-old), var(--md-sys-state-hover-state-layer-opacity))"},":active":{backgroundColor:"rgba(var(--md-sys-color-on-surface-variant-old), var(--md-sys-state-pressed-state-layer-opacity))"}}})},67198:(e,t,a)=>{"use strict";a.d(t,{Q$:()=>v,SN:()=>T,YI:()=>_,Yn:()=>w,Zw:()=>b,i5:()=>E,mJ:()=>g,rf:()=>x});var r=a(62786),i=a(32604),n=a(23545),l=a(59751),o=a(52095),s=a.n(o),d=a(64640),c=a(20764),u=a(36439),p=a(96114),m=a(90524),h=a(41471),f=a(81707),y=a(76768);let b=()=>{let e=(0,d.q)(),t=(0,h.useDispatch)(),a=(0,c.useRouter)(),{t:i}=(0,m.B)(["components/templates/event"]),[o,s]=(0,u.useState)(!1),p=e=>"string"==typeof e?e:e.toISOString(),b=(0,u.useCallback)(e=>({title:e.title,venue:e.venue,eyecatchImage:e.eyecatchImage,body:e.body,attendeesViewableContent:e.attendeesViewableContent,capacity:Number(e.capacity),heldDateFrom:p(e.heldDateFrom),heldDateTo:p(e.heldDateTo),applyDateFrom:p(e.applyDateFrom),applyDateTo:p(e.applyDateTo),isNotificationPushed:!1,isPostable:e.isPostable,sendParticipationNotification:e.sendParticipationNotification,sendParticipationRemindNotification:e.sendParticipationRemindNotification}),[]);return{isServerResponseSuccess:o,onSubmit:(0,u.useCallback)(async o=>{try{let{data:l}=await (0,f.NR)(e,b(o));s(!0),t((0,n.gg)(i("Event published"))),setTimeout(()=>{a.push(`${r.default.VIEW_EVENT}/${l.id}`)},1e3)}catch(e){y.v.error(e),e instanceof l.pe&&(0,n.mO)(e.message)}},[e,t,a,i,b]),onSubmitForEdit:(0,u.useCallback)(async(o,d)=>{try{await (0,f.yh)(e,{params:{id:o},body:b(d)}),s(!0),t((0,n.gg)(i("Event saved"))),setTimeout(()=>{a.push(`${r.default.VIEW_EVENT}/${o}`)},1e3)}catch(e){y.v.error(e),e instanceof l.pe&&(0,n.mO)(e.message)}},[e,t,a,i,b])}},g=()=>{let e={targetUserType:i.D$.AllUser,title:"",venue:"",eyecatchImage:"",body:"",capacity:5,heldDateFrom:"",heldDateTo:"",applyDateFrom:s()().format(),applyDateTo:"",isNotificationPushed:!1,isPostable:!1,sendParticipationNotification:!1,sendParticipationRemindNotification:!1};return(0,p.mN)({defaultValues:e,shouldFocusError:!0})},v=(e,t)=>
3{(0,u.useEffect)(()=>{t&&e(t)},[e,t])},x=(e,t,a)=>{let r=(0,p.xW)(),{isSubmitted:i}=r.formState,n=(0,u.useCallback)(async a=>{!e||(e.onChange(s()(a).format()),t&&t.length&&i&&await r.trigger(t))},[e,r,t,i]),l=(0,u.useCallback)(()=>{!a||!e||r.getValues(a)||r.setValue(a,s()(r.getValues(e.name)).format())},[e,r,a]);return{...r,onChangeDate:n,updateSetValueField:l}},D=e=>{let{control:t}=x();return(0,p.FH)({control:t,name:e})},_=()=>{let e=D("heldDateFrom"),t=D("heldDateTo");return{minHeldDateTo:e,minApplyDateTo:D("applyDateFrom"),maxApplyDateTo:t}},E=()=>{let{t:e}=(0,m.B)(["components/templates/event"]),{getValues:t}=x();return{heldDateFromIsAfterHeldDateTo:a=>{let r=t("heldDateTo");return!!(!r||s()(a).isSameOrBefore(r))||e("Set a date and time before the event end date.")},heldDateToIsBeforeApplyDateTo:a=>{let r=t("applyDateTo");return!!(!r||s()(a).isSameOrAfter(r))||e("Set a date and time after the application closing date.")},applyDateToIsBeforeApplyDateFrom:a=>{let r=t("applyDateFrom");return!!(!r||s()(a).isSameOrAfter(r))||e("Specify a date and time after the current time.")}}},T=e=>{let{control:t}=x();return(0,p.as)({control:t,...e})},w=e=>({savedFormValues:(0,u.useMemo)(()=>{if(e)return{targetUserType:e.targetUserType,title:e.title,venue:e.venue,eyecatchImage:e.eyecatchImage,body:e.body,attendeesViewableContent:e.attendeesViewableContent,capacity:e.capacity,heldDateFrom:e.heldDateFrom,heldDateTo:e.heldDateTo,applyDateFrom:e.applyDateFrom,applyDateTo:e.applyDateTo,isNotificationPushed:!1,isPostable:!!e.isPostable,sendParticipationNotification:!!e.sendParticipationNotification,sendParticipationRemindNotification:!!e.sendParticipationRemindNotification}},[e])})},76036:(e,t,a)=>{"use strict";a.d(t,{z:()=>u});var r=a(45023),i=a(2004),n=a.n(i),l=a(36439),o=a(12753),s=a(8089),d=a(93095),c=a(78175);function u({content:e,recommendContent:t,handleClickLogo:a,maxWidth:i}){let p=(0,d.K)(),m=l.useRef(null);return(0,r.FD)(l.Fragment,{children:[(0,r.Y)("div",{className:n().dynamic([["31b1f3c02714836e",[s.A.MAX_PC_WIDTH]],["64750021faefa290",[p,i||688]]])+" one-column-container",children:(0,r.FD)(o.D,{handleClickLogo:a,children:[(0,r.Y)("main",{ref:m,"data-cy":"main-content",className:n().dynamic([["31b1f3c02714836e",[s.A.MAX_PC_WIDTH]],["64750021faefa290",[p,i||688]]]),children:(0,r.Y)(c._.Provider,{value:m,children:e})}),t]})}),(0,r.Y)(n(),{id:"64750021faefa290",dynamic:[p,i||688],children:`.one-column-container.__jsx-style-dynamic-selector{display:flex;flex-direction:column;min-height:100vh - ${p}px}main.__jsx-style-dynamic-selector{flex:1;max-width:${i||688}px;margin:0 auto;width:100%;overflow:visible}`}),(0,r.Y)(n(),{id:"31b1f3c02714836e",dynamic:[s.A.MAX_PC_WIDTH],children:`.main-layout{max-width:${s.A.MAX_PC_WIDTH}px;margin:0 auto;width:100%}`})]})}},78175:(e,t,a)=>{"use strict";a.d(t,{J:()=>d,_:()=>s});var r=a(45023),i=a(90524),n=a(92910),l=a(36439),o=a(30915);let s=(0,l.createContext)(null),d=({reactors:e,children:t})=>{let[a,i]=(0,l.useState)(!1),[o,d]=(0,l.useState)(null),p=(0,l.useContext)(s);(0,l.useEffect)(()=>{d(p?.current??null)},[p?.current]);let m=e.length>1?"rich":"plain",h=e.length>50,f=a?e:e.slice(0,50);return(0,r.Y)(n._,{variant:m,collisionBoundary:o,side:"rich"===m?"right":"top",align:"rich"===m?"start":"center",alignOffset:60,sideOffset:0,collisionPadding:{top:32,bottom:32},supportingText:f.length?(0,r.FD)("div",{css:u,children:[f.join(", "),h&&!a&&(0,r.Y)(c,{onClick:()=>i(!a)})]}):void 0,children:t})},c=({onClick:e})=>{let{t}=(0,i.B)(["components/organisms/directmessage/components"]);return(0,r.FD)("button",{css:p,onClick:e,children:["...",t("Show more")]})},u=(0,o.AH)({wordBreak:"keep-all"}),p=(0,o.AH)({cursor:"pointer"})},78195:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var r=a(45023),i=a(2004),n=a.n(i);a(36439);var l=a(25008),o=a.n(l),s=a(39282);function d({component:e="div",children:t,className:a,...i}){return(0,r.FD)(e,{...i,className:n().dynamic([["11331bf935b0173c",[s.Js.user.card,s.Q1.user.border.default]]])+" "+(i&&null!=i.className&&i.className||o()(a,"card-root")||""),children:[t,(0,r.Y)(n(),{id:"11331bf935b0173c",dynamic:[s.Js.user.card,s.Q1.user.border.default],children:`.card-root.__jsx-style-dynamic-selector{position:relative;background:#fff;border-radius:${s.Js.user.card};overflow:hidden;border:1px solid ${s.Q1.user.border.default}}`})]})}},81707:(e,t,a)=>{"use strict";a.d(t,{Gj:()=>b,NR:()=>f,yh:()=>y,hf:()=>h,a6:()=>g,AN:()=>x,h1:()=>v});var r=a(41471),i=a(53805),n=a(62786),l=a(89914),o=a(76399),s=a.n(o),d=a(32383),c=a(28115),u=a(12787),p=a(11970),m=a(13281);let h=()=>{let e,t=(0,r.useSelector)(u.Sj),a=(0,r.useSelector)(p.dx),i=(0,r.useSelector)(u.Cv),{data:n,isLoading:o}=(e=a&&t&&!i?t:void 0,(0,l.s3)(e?`/iam/policy/user/${e}`:null,{revalidateOnFocus:!1}));return{isLoading:o,isCreatable:n?.eventManagement.create??!1}},f=(e,t)=>e.post("/event",t),y=(e,t)=>e.put(`/event/${t.params.id}`,t.body),b=(e,t,a,r,l,o,s,u,p,m,h)=>{let f,y,{id:b,ownerUserId:g,deletable:v,editable:x}=l,D=(0,c.R)(),_=r.roleId>=i.RoleId.AdminGuest,E=()=>{D.push(`${n.default.VIEW_SETTINGS_CONTACT}?eventId=${b}`)};if(_)return{types:["createLink","edit","duplicate","delete",b===o.pinnedContentId?"unPin":"pin","reportEvent"],handleEdit:async()=>(window.location.href=`/v2/${h.brandLocale}/admin/events?id=${l.id}&edit=true`,!0),handleDelete:()=>{u(()=>e(d.ay.request({eventId:b,successCb:m})),s)},handleReport:E};let T=a&&x,w=a&&v,N=(f=r.roleId===i.RoleId.Guest,y=r.id===g,f||y)?[]:["reportEvent"],F=T?()=>D.pushRoute(`${n.default.VIEW_EVENT}/${l.id}/edit`):void 0,Y=w?()=>p(async()=>{let e;await (e=l.id,t.delete(`/event/${e}`))},m,s):void 0;return{types:["createLink",...T?["edit"]:[],...w?["delete"]:[],...N],handleEdit:F,handleDelete:Y,handleReport:E}},g=(e,t)=>{let a=s().stringify({language:t});return(0,l.s3)(e?`/event/${e}?${a}`:void 0,{revalidateOnFocus:!1})},v=e=>{let t=(0,m.lB)(),a=(0,m.XE)(e?`/event/${e}
3`:void 0);return{...a,translationState:t(a.data?.detectedLanguages)?a.translationState:void 0}},x=e=>{let t=(0,m.c6)(),a={...e,language:t};return(0,l.s3)(`/event/list?${s().stringify(a)}`)}}}]);
4//# sourceMappingURL=19-94a46ea1f1672434.js.map
5//# debugId=8fe44145-cbec-5310-9338-a6757d42fc52

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.