1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4615],{12480:function(e,n,t){t.d(n,{Z:function(){return f}});var i=t(85893),r=t(67294),o=t(8976),l=t(50135),a=t(82729),s=t(35480),u=t(87918);function c(){let e=(0,a._)(["\n font-size: 16px;\n"]);return c=function(){return e},e}function d(){let e=(0,a._)(["\n .MuiChip-label {\n padding: 16px;\n }\n"]);return d=function(){return e},e}let p=s.ZP.span(c()),x=(0,s.ZP)(u.Z)(d());function f(e){let{fieldName:n,formik:t,label:a,placeholder:s,options:u}=e,c=(0,r.useMemo)(()=>t.values[n]||[],[t.values[n]]),d=(0,r.useMemo)(()=>{let e=new Set;return u.filter(n=>!e.has(n.id)&&(e.add(n.id),!0))},[u]),f=e=>void 0!==e.fullname||void 0!==e.name?e.fullname||e.name||"":void 0!==e.label?e.label:"",g=e=>()=>{let i=(null==c?void 0:c.filter(n=>n.id!==e.id))||[];t.setFieldValue(n,i)};return(0,i.jsx)(o.Z,{fullWidth:!0,multiple:!0,id:"".concat(n,"-autocomplete"),options:d,getOptionLabel:f,value:c,onChange:(e,i)=>{t.setFieldValue(n,i)},isOptionEqualToValue:(e,n)=>e.id===n.id,renderTags:(e,n)=>e.map((e,t)=>(0,r.createElement)(x,{...n({index:t}),key:e.id,label:(0,i.jsx)(p,{children:f(e)}),onDelete:g(e)})),renderOption:(e,n)=>(0,r.createElement)("li",{...e,key:n.id},f(n)),renderInput:e=>(0,i.jsx)(l.Z,{...e,variant:"outlined",label:a,placeholder:s})})}},80491:function(e,n,t){t.d(n,{Z:function(){return S}});var i=t(85893),r=t(67294),o=t(5616),l=t(15861),a=t(34386),s=t(93946),u=t(46907),c=t(34282),d=t(11048),p=t(77957),x=t(25675),f=t.n(x),g=t(48436),h=t(55689),m=t(64666),v=t(37645),b=t(6514),Z=t(91346),j=t(31425),C=t(69417);function w(e){let{open:n,onClose:t,imageFile:a,aspect:s,title:u,description:c,onCropComplete:d}=e,[p,x]=(0,r.useState)({x:0,y:0}),[f,g]=(0,r.useState)(1),[w,y]=(0,r.useState)(null),[P,k]=(0,r.useState)(!1),[_,S]=(0,r.useState)(null),L=URL.createObjectURL(a),E=(0,r.useCallback)((e,n)=>{y(n)},[]),F=async()=>{k(!0),S(null);let e=URL.createObjectURL(a);try{let n=await new Promise((n,t)=>{let i=new Image;i.onload=()=>{let e=w;if(!e){let n=i.naturalWidth,t=i.naturalHeight,r=n,o=Math.round(n/s);o>t&&(o=t,r=Math.round(t*s)),e={x:Math.round((n-r)/2),y:Math.round((t-o)/2),width:r,height:o}}let r=document.createElement("canvas");r.width=e.width,r.height=e.height;let o=r.getContext("2d");if(!o){t(Error("Could not get canvas context"));return}o.drawImage(i,e.x,e.y,e.width,e.height,0,0,e.width,e.height),r.toBlob(e=>{if(!e){t(Error("Canvas is empty"));return}n(new File([e],a.name,{type:"image/jpeg"}))},"image/jpeg",.9)},i.onerror=()=>t(Error("Failed to load image")),i.src=e});d(n),t()}catch(e){S("Failed to apply crop. Please try again.")}finally{URL.revokeObjectURL(e),k(!1)}};return(0,i.jsxs)(m.Z,{open:n,onClose:t,maxWidth:"md",fullWidth:!0,children:[u&&(0,i.jsx)(v.Z,{children:u}),(0,i.jsxs)(b.Z,{children:[c&&(0,i.jsx)(l.Z,{variant:"body2",sx:{color:"#605759",mb:2},children:c}),(0,i.jsx)(o.Z,{sx:{position:"relative",width:"100%",height:400,background:"#333"},children:(0,i.jsx)(h.ZP,{image:L,crop:p,zoom:f,aspect:s,onCropChange:x,onZoomChange:g,onCropComplete:E})}),(0,i.jsxs)(o.Z,{sx:{mt:2,px:1},children:[(0,i.jsx)(l.Z,{variant:"body2",sx:{mb:1,color:"#605759"},children:"Zoom"}),(0,i.jsx)(Z.ZP,{value:f,min:1,max:3,step:.05,onChange:(e,n)=>g(n),sx:{color:"#8060FE"}})]}),_&&(0,i.jsx)(l.Z,{variant:"body2",sx:{color:"error.main",mt:1},children:_})]}),(0,i.jsxs)(j.Z,{sx:{px:3,pb:2},children:[(0,i.jsx)(C.Z,{size:"medium",onClick:t,sx:{color:"#605759"},children:"Cancel"}),(0,i.jsx)(C.Z,{size:"medium",onClick:F,disabled:P,variant:"contained",sx:{backgroundColor:"#8060FE","&:hover":{backgroundColor:"#6a4fe0"}},children:P?"Applyingâ¦":"Apply crop"})]})]})}var y=t(60766);let P=["image/jpeg","image/png"];function k(e){return P.includes(e.type)?!(e.size>3145728)||(alert("File is too large. Please select a file smaller than 3MB."),!1):(alert("Please select a valid image file (JPEG or PNG)."),!1)}let _={background:"rgba(255,255,255,0.9)","&:hover":{background:"#fff"},p:.75};function S(e){let{mainImage:n,mainDbUrl:t,onMainPick:x,onMainClear:h,onMainResetToDb:m,cardImage:v,cardDbUrl:b,onCardPick:Z,onCardClear:j}=e,[C,P]=(0,r.useState)(!1),[S,L]=(0,r.useState)(!1),[E,F]=(0,r.useState)(!1),[M,R]=(0,r.useState)(!1),[D,T]=(0,r.useState)(!1),[z,U]=(0,r.useState)(!1),[O,V]=(0,r.useState)(!1),[A,I]=(0,r.useState)(!1),H=(0,r.useRef)(null),W=(0,r.useRef)(null),B=(0,y.j)(n,t),N=(0,y.j)(v,b)||B,G="local"===n.status||!!t,K=!!N,Y=!!(m&&t&&"db"!==n.status),J="local"===v.status||"db"===v.status&&!!b,q=async(e,n)=>{let t=await fetch("/api/image-proxy?url=".concat(encodeURIComponent(e)));if(!t.ok)throw Error("Proxy fetch failed");let i=await t.blob(),r="image/png"===i.type?".png":".jpg";return new File([i],"".concat(n).concat(r),{type:i.type})},X=async()=>
1{if("local"===n.status){T(!0);return}if(t){V(!0);try{let e=await q(t,"cover-image");x(e),T(!0)}catch(e){alert("Could not load the image for cropping. Please upload a new image.")}finally{V(!1)}}},Q=async()=>{if("local"===v.status){U(!0);return}if("local"===n.status){Z(n.file),U(!0);return}let e=b||t;if(e){I(!0);try{let n=await q(e,"card-image");Z(n),U(!0)}catch(e){alert("Could not load the image for cropping. Please upload a new card image.")}finally{I(!1)}}},$=e=>{k(e)&&x(e)},ee=e=>{k(e)&&Z(e)},en=e=>{e.preventDefault(),F(!1);let n=e.dataTransfer.files[0];n&&$(n)},et=C||E;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("input",{ref:H,style:{display:"none"},type:"file",accept:".jpg,.jpeg,.png",onChange:e=>{var n;let t=null===(n=e.target.files)||void 0===n?void 0:n[0];t&&$(t),e.target.value=""}}),(0,i.jsx)("input",{ref:W,style:{display:"none"},type:"file",accept:".jpg,.jpeg,.png",onChange:e=>{var n;let t=null===(n=e.target.files)||void 0===n?void 0:n[0];t&&ee(t),e.target.value=""}}),!B&&(0,i.jsxs)(o.Z,{onClick:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.click()},onDragOver:e=>{e.preventDefault(),F(!0)},onDragLeave:()=>F(!1),onDrop:en,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"1px dashed ".concat(E?"#8060FE":"#AEA5A5"),borderRadius:"4px",height:"240px",cursor:"pointer",transition:"border-color 0.15s",color:"#605759"},children:[(0,i.jsx)(g.HC,{}),(0,i.jsx)(o.Z,{sx:{fontWeight:700,fontSize:"16px",textDecoration:"underline",lineHeight:"25.6px",color:"#000"},children:"Click to upload"}),(0,i.jsx)(o.Z,{sx:{fontWeight:400,fontSize:"15px",lineHeight:"22.5px"},children:"PNG or JPG (max. 3 MB)"})]}),(0,i.jsx)(l.Z,{variant:"body2",sx:{color:"#605759",mt:.75,mb:.5,fontSize:"13px"},children:"Cover image \xb7 Displayed at 1200\xd7630 in the event listing"}),B&&(0,i.jsxs)(o.Z,{sx:{position:"relative",width:"100%",aspectRatio:"1200/630",borderRadius:"4px",overflow:"hidden"},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),onDragOver:e=>{e.preventDefault(),F(!0)},onDragLeave:()=>F(!1),onDrop:en,children:[(0,i.jsx)(f(),{src:B,alt:"Cover image",fill:!0,style:{objectFit:"cover"}}),E&&(0,i.jsx)(o.Z,{sx:{position:"absolute",inset:0,border:"2px dashed #8060FE",borderRadius:"4px",background:"rgba(128,96,254,0.08)",pointerEvents:"none"}}),et&&(0,i.jsxs)(o.Z,{sx:{position:"absolute",inset:0,background:"rgba(0,0,0,0.28)",display:"flex",alignItems:"flex-start",justifyContent:"flex-end",p:.75,gap:.5},children:[G&&(0,i.jsx)(a.Z,{title:O?"Loadingâ¦":"Crop image",children:(0,i.jsx)("span",{children:(0,i.jsx)(s.Z,{size:"small",disabled:O,onClick:e=>{e.stopPropagation(),X()},sx:_,children:(0,i.jsx)(d.Z,{sx:{fontSize:28}})})})}),(0,i.jsx)(a.Z,{title:"Replace image",children:(0,i.jsx)(s.Z,{size:"small",onClick:e=>{var n;e.stopPropagation(),null===(n=H.current)||void 0===n||n.click()},sx:_,children:(0,i.jsx)(p.Z,{sx:{fontSize:28}})})}),Y&&(0,i.jsx)(a.Z,{title:"Reset to saved image",children:(0,i.jsx)(s.Z,{size:"small",onClick:e=>{e.stopPropagation(),m()},sx:_,children:(0,i.jsx)(c.Z,{sx:{fontSize:28}})})}),(0,i.jsx)(a.Z,{title:"Delete image",children:(0,i.jsx)(s.Z,{size:"small",onClick:e=>{e.stopPropagation(),h()},sx:_,children:(0,i.jsx)(u.Z,{sx:{fontSize:28}})})})]})]}),B&&(0,i.jsxs)(o.Z,{sx:{mt:1.5,mb:1},children:[(0,i.jsx)(l.Z,{variant:"body2",sx:{color:"#605759",mb:1,fontSize:"13px"},children:"Website preview \xb7 Displayed at 366 x 203 on our website (Calendar, Editor's Picks, etc.)"}),(0,i.jsxs)(o.Z,{sx:{position:"relative",width:366,height:203,borderRadius:"12px 12px 0 0",overflow:"hidden",border:"1px solid ".concat(M?"#8060FE":"#C4C4C4"),cursor:"pointer",transition:"border-color 0.15s"},onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),onDragOver:e=>{e.preventDefault(),R(!0)},onDragLeave:()=>R(!1),onDrop:e=>{e.preventDefault(),R(!1);let n=e.dataTransfer.files[0];n&&ee(n)},children:[N&&(0,i.jsx)(f(),{src:N,alt:"Card preview",fill:!0,style:{objectFit:"cover"}}),(S||M)&&(0,i.jsxs)(o.Z,{sx:{position:"absolute",inset:0,background:"rgba(0,0,0,0.32)",display:"flex",alignItems:"flex-start",justifyContent:"flex-end",p:.5,gap:.25},children:[K&&(0,i.jsx)(a.Z,{title:A?"Loadingâ¦":"Crop card image",children:(0,i.jsx)("span",{children:(0,i.jsx)(s.Z,{size:"small",disabled:A,onClick:e=>{e.stopPropagation(),Q()},sx:_,children:(0,i.jsx)(d.Z,{sx:{fontSize:28}})})})}),(0,i.jsx)(a.Z,{title:"Upload different card image",children:(0,i.jsx)(s.Z,{size:"small",onClick:e=>{var n;e.stopPropagation(),null===(n=W.current)||void 0===n||n.click()},sx:_,children:(0,i.jsx)(p.Z,{sx:{fontSize:28}})})}),J&&(0,i.jsx)(a.Z,{title:"Reset to main image",children:(0,i.jsx)(s.Z,{size:"small",onClick:e=>{e.stopPropagation(),j()},sx:_,children:(0,i.jsx)(c.Z,{sx:{fontSize:28}})})})]})]})]}),D&&"local"===n.status&&(0,i.jsx)(w,{open:D,onClose:()=>T(!1),imageFile:n.file,aspect:1200/630,title:"Crop cover image",description:"Drag to reposition \xb7 Displayed at 1200\xd7630 in the event listing",onCropComplete:e=>{x(e),T(!1)}}),z&&"local"===v.status&&(0,i.jsx)(w,{open:z,onClose:()=>U(!1),imageFile:v.file,aspect:366/203,title:"Crop card image",description:"Drag to reposition \xb7 Displayed at 366 x 203 on our website (Calendar, Editor's Picks, etc.)",onCropComplete:e=>{Z(e),U(!1)}})]})}},27854:function(e,n,t){t.d(n,{Z:function(){return f}});var i=t(85893),r=t(67294),o=t(37054),l=t(73672),a=t(94054),s=t(33841),u=t(18360),c=t(18972),d=t(50135),p=t(70385);let x=["places"];function f(e){let{formik:n}=e,t=(0,r.useRef)(null),[f,g]=(0,r.useState)(""),h=n.values;(0,r.useEffect)(()=>{h.location&&g(h.location)},[h.location]);let{isLoaded:m}=(0,o.Ji)({googleMapsApiKey:"AIzaSyBgR8o955pVLgeg2vtZYXJXtKbjvQNPzbM",libraries:x}),v=!("addressType"in n.values);return m?(0,i.jsxs)(i.Fragment,{children:[!v&&(0,i.jsxs)(a.Z,{variant:"outlined",margin:"normal",children:[(0,i.jsx)(s.Z,{id:"address-type-label",children:"Address Type"}),(0,i.jsxs)(u.Z,{labelId:"address-type-label",id:"addressType",value:n.values.addressType||"",onChange:e=>n.setFieldValue("addressType",e.target.value),label:"Address Type",style:{minWidth:"160px",width:"auto"},sx:{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#8060FE"},"&:not(.Mui-focused):not(:hover) .MuiOutlinedInput-notchedOutline":{borderColor:"#AEA5A5"},mb:"16px"},children:[(0,i.jsx)(c.Z,{value:p.ADDRESS_TYPE.PUBLIC,children:"Public"}),(0,i.jsx)(c.Z,{value:p.ADDRESS_TYPE.PRIVATE,children:"Private"})]})]}),(0,i.jsx)(o.Zk,{onLoad:e=>t.current=e,onPlacesChanged:()=>{var e,i,r,o,l;let a=null===(e=t.current)||void 0===e?void 0:e.getPlaces();if(a&&a.length>0){let e=a[0],t=e.formatted_address||"",s=null===(r=e.address_components)||void 0===r?void 0:null===(i=r.find(e=>e.types.includes("locality")))||void 0===i?void 0:i.long_name,u=null===(l=e.address_components)||void 0===l?void 0:null===(o=l.find(e=>e.types.includes("administrative_area_level_1")))||void 0===o?void 0:o.short_name,c=s||u||"Unknown Location";s&&u&&(c="".concat(s,", ").concat(u));let d="https://www.google.com/maps?q=".concat(encodeURIComponent(c));n.setFieldValue("location",t),n.setFieldValue("approximateLocation",c),n.setFieldValue("approximateLocationUrl",d),n.setFieldValue("locationUrl",e.url),g(t),setTimeout(()=>{n.validateField("location")},0)}},children:(0,i.jsx)(d.Z,{fullWidth:!0,id:"location",label:"Address",variant:"outlined",name:"location",value:f,onChange:e=>g(e.target.value),onKeyDown:e=>"Enter"===e.key&&e.preventDefault(),onBlur:e=>{g(h.location||""),n.setFieldTouched("location",!0)},error:!!(n.touched.location&&n.errors.location),helperText:n.touched.location&&n.errors.location?String(n.errors.location):""})})]}):(0,i.jsx)(l.Z,{isLoading:!m})}},81912:function(e,n,t){t.d(n,{gg:function(){return y},p3:function(){return C},ul:function(){return w}});
1var i=t(82729),r=t(35480),o=t(86886),l=t(79717),a=t(66836),s=t(50135),u=t(33841);function c(){let e=(0,i._)(["\n width: 768px;\n padding: 32px;\n border: 1px solid #00000029;\n border-radius: 12px;\n background-color: #fff;\n margin-top: 0;\n\n @media (max-width: 600px) {\n width: 100%;\n padding: 18px;\n }\n"]);return c=function(){return e},e}function d(){let e=(0,i._)(["\n margin-bottom: 25px;\n font-weight: 700;\n font-size: 28px;\n line-height: 42px;\n"]);return d=function(){return e},e}function p(){let e=(0,i._)(["\n font-weight: 700;\n font-size: 20px;\n line-height: 30px;\n margin-bottom: 15px;\n"]);return p=function(){return e},e}function x(){let e=(0,i._)(["\n margin-bottom: 30px;\n"]);return x=function(){return e},e}function f(){let e=(0,i._)(["\n margin-top: 20px;\n"]);return f=function(){return e},e}function g(){let e=(0,i._)(["\n margin-top: 20px;\n font-weight: bold;\n font-size: 1.25rem;\n"]);return g=function(){return e},e}function h(){let e=(0,i._)(["\n margin-bottom: 30px;\n"]);return h=function(){return e},e}function m(){let e=(0,i._)(["\n .MuiTypography-root {\n font-size: 1rem;\n }\n"]);return m=function(){return e},e}function v(){let e=(0,i._)(["\n margin: 25px 0;\n"]);return v=function(){return e},e}function b(){let e=(0,i._)(["\n margin: 30px 0 50px;\n"]);return b=function(){return e},e}function Z(){let e=(0,i._)(["\n background-color: #fff;\n"]);return Z=function(){return e},e}function j(){let e=(0,i._)(["\n .mui-style-1makl9p-MuiFormControlLabel-root {\n margin-left: 0 !important;\n }\n"]);return j=function(){return e},e}let C=(0,r.ZP)(o.ZP)(c()),w=(0,r.ZP)(o.ZP)(d());r.ZP.div(p()),(0,r.ZP)(o.ZP)(x()),(0,r.ZP)(o.ZP)(f()),r.ZP.div(g()),(0,r.ZP)(l.Z)(h()),(0,r.ZP)(a.Z)(m()),(0,r.ZP)(s.Z)(v()),(0,r.ZP)(s.Z)(b()),(0,r.ZP)(u.Z)(Z());let y=(0,r.ZP)(a.Z)(j())},44653:function(e,n,t){t.d(n,{T:function(){return s},u:function(){return u}});var i=t(82729),r=t(35480),o=t(86886);function l(){let e=(0,i._)(["\n width: 768px;\n padding: 32px;\n border: 1px solid #00000029;\n border-radius: 12px;\n background-color: #fff;\n margin-top: 40px;\n\n @media (max-width: 600px) {\n width: 100%;\n margin-top: 40px;\n }\n"]);return l=function(){return e},e}function a(){let e=(0,i._)(["\n margin-bottom: 25px;\n font-weight: 700;\n font-size: 28px;\n line-height: 42px;\n\n @media (max-width: 600px) {\n margin-bottom: 20px;\n }\n"]);return a=function(){return e},e}let s=(0,r.ZP)(o.ZP)(l()),u=(0,r.ZP)(o.ZP)(a())},96310:function(e,n,t){t.d(n,{Bc:function(){return v},K_:function(){return y},OL:function(){return b},Ul:function(){return w},W4:function(){return C},Yb:function(){return Z},u6:function(){return m},z0:function(){return j}});var i=t(82729),r=t(35480),o=t(46901),l=t(86886),a=t(69417);function s(){let e=(0,i._)(["\n width: 100%;\n max-width: 760px;\n margin-top: 50px;\n\n @media (max-width: 600px) {\n width: 100%;\n margin-top: 20px;\n }\n"]);return s=function(){return e},e}function u(){let e=(0,i._)(["\n margin-bottom: 16px;\n"]);return u=function(){return e},e}function c(){let e=(0,i._)(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n\n @media (max-width: 600px) {\n flex-direction: row;\n justify-content: center;\n }\n"]);return c=function(){return e},e}function d(){let e=(0,i._)(["\n margin-top: 50px;\n padding: 0;\n box-sizing: border-box;\n width: 100%;\n\n @media (max-width: 600px) {\n padding: 0;\n margin-top: 20px;\n }\n"]);return d=function(){return e},e}function p(){let e=(0,i._)(["\n width: 100%;\n max-width: 100%;\n margin: 0 auto;\n flex-direction: column;\n\n @media (max-width: 600px) {\n flex-direction: row;\n }\n"]);return p=function(){return e},e}function x(){let e=(0,i._)(["\n display: flex;\n align-items: center;\n"]);return x=function(){return e},e}function f(){let e=(0,i._)(["\n border: 1px solid #231f20;\n color: #333;\n padding: 18px 32px;\n\n @media (max-width: 768px) {\n padding: 10px 18px;\n }\n"]);return f=function(){return e},e}function g(){let e=(0,i._)(["\n border: none;\n margin-left: 14px;\n color: #333;\n"]);return g=function(){return e},e}function h(){let e=(0,i._)(["\n background-color: #0066cc;\n color: white;\n padding: 18px 32px;\n\n @media (max-width: 768px) {\n padding: 10px 18px;\n }\n"]);return h=function(){return e},e}let m=r.ZP.div(s()),v=(0,r.ZP)(o.Z)(u()),b=(0,r.ZP)(l.ZP)(c()),Z=r.ZP.form(d()),j=(0,r.ZP)(l.ZP)(p()),C=(0,r.ZP)(l.ZP)(x()),w=(0,r.ZP)(a.Z)(f()),y=(0,r.ZP)(a.Z)(g());(0,r.ZP)(a.Z)(h())},45781:function(e,n,t){t.d(n,{Dg:function(){return c},ul:function(){return d}});
1var i=t(82729),r=t(35480),o=t(86886),l=t(66836);function a(){let e=(0,i._)(["\n width: 768px;\n padding: 32px;\n border: 1px solid #00000029;\n border-radius: 12px;\n background-color: #fff;\n margin-top: 40px;\n\n @media (max-width: 600px) {\n width: 100%;\n }\n"]);return a=function(){return e},e}function s(){let e=(0,i._)(["\n margin-bottom: 25px;\n font-weight: 700;\n font-size: 28px;\n line-height: 42px;\n"]);return s=function(){return e},e}function u(){let e=(0,i._)(["\n .MuiFormControlLabel-label {\n font-size: 16px;\n font-weight: 400;\n line-height: 25.6px;\n letter-spacing: 0.01em;\n }\n"]);return u=function(){return e},e}let c=(0,r.ZP)(o.ZP)(a()),d=(0,r.ZP)(o.ZP)(s());(0,r.ZP)(l.Z)(u())},69032:function(e,n,t){t.d(n,{X:function(){return m},Z:function(){return Z}});var i=t(82729),r=t(85893),o=t(69368),l=t(66836),a=t(86886),s=t(67720),u=t(12480),c=t(67294),d=t(35480),p=t(45781),x=t(70385);function f(){let e=(0,i._)(["\n &.Mui-checked {\n color: #8060fe;\n }\n"]);return f=function(){return e},e}function g(){let e=(0,i._)(["\n display: flex;\n align-items: center;\n gap: 16px;\n margin-bottom: 40px;\n\n @media (max-width: 768px) {\n gap: 10px;\n margin-bottom: 20px;\n flex-direction: column;\n align-items: flex-start;\n }\n"]);return g=function(){return e},e}function h(){let e=(0,i._)(['\n display: flex;\n align-items: center;\n cursor: pointer;\n\n &::before {\n content: "";\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n margin-right: 8px;\n border: 2px solid ',";\n background-color: ",";\n padding: ",";\n }\n\n &:hover::before {\n border-color: rgba(128, 96, 254, 1);\n }\n"]);return h=function(){return e},e}let m=(0,d.ZP)(o.Z)(f()),v=d.ZP.div(g()),b=d.ZP.div(h(),e=>{let{selected:n}=e;return n?"rgba(128, 96, 254, 1)":"rgba(130, 122, 122, 1)"},e=>{let{selected:n}=e;return n?"rgba(128, 96, 254, 1)":"transparent"},e=>{let{selected:n}=e;return n?"4px":"0px"});function Z(e){let{formik:n,hosts:t,tags:i,isEpisode:o,memberOnly:d,isAdmin:f}=e,[g,h]=(0,c.useState)(n.values.eventType||null),[Z,j]=(0,c.useState)(()=>{let{eventType:e,coHosts:t,recordEvent:i,tags:r,additionalInfo:o}=n.values;return d?e||t&&(null==t?void 0:t.length)>0||i||r&&(null==r?void 0:r.length)>0||o&&o.length>0?"Salon":"Casual Meetup":"Salon"});(0,c.useEffect)(()=>{n.values.locationType!==x.LOCATION_TYPE.VIRTUAL&&n.values.recordEvent&&n.setFieldValue("recordEvent",!1)},[n.values.locationType,n.values.recordEvent,n.setFieldValue]),(0,c.useEffect)(()=>{var e;h(null!==(e=n.values.eventType)&&void 0!==e?e:null)},[n.values.eventType]);let C=e=>{n.setFieldValue("eventType",g===e?null:e)},w=e=>{j(e)};return(0,r.jsxs)(p.Dg,{children:[d&&(0,r.jsxs)(v,{children:[(0,r.jsx)(b,{selected:"Casual Meetup"===Z,onClick:()=>{let{eventType:e,coHosts:t,recordEvent:i,tags:r,additionalInfo:o}=n.values;e&&n.setFieldValue("eventType",null),t&&(null==t?void 0:t.length)>0&&n.setFieldValue("coHosts",[]),i&&n.setFieldValue("recordEvent",!1),r&&(null==r?void 0:r.length)>0&&n.setFieldValue("tags",[]),o&&o.length>0&&n.setFieldValue("eventType",""),w("Casual Meetup")},children:"This is a Casual Meetup"}),(0,r.jsx)(b,{selected:"Salon"===Z,onClick:()=>w("Salon"),children:"This is a Salon"})]}),"Salon"===Z&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.ul,{xs:12,children:o?"Episode Details":"Salon Details"}),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{control:(0,r.jsx)(m,{checked:"WORKSHOP"===g,onChange:()=>C("WORKSHOP"),color:"primary"}),label:"Workshop"}),(0,r.jsx)(l.Z,{control:(0,r.jsx)(m,{checked:"TALK"===g,onChange:()=>C("TALK"),color:"primary"}),label:"Talk"}),(0,r.jsx)(l.Z,{control:(0,r.jsx)(m,{checked:"READING_GROUP"===g,onChange:()=>C("READING_GROUP"),color:"primary"}),label:"Reading Group"})]}),(0,r.jsx)(a.ZP,{item:!0,xs:12,style:{margin:"25px 0"},children:(0,r.jsx)(u.Z,{fieldName:"coHosts",formik:n,label:"Co-hosts",placeholder:"Select hosts",options:t})}),(0,r.jsx)(s.Z,{sx:{margin:"32px 0"}}),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.ZP,{item:!0,xs:12,style:{margin:"25px 0 "},children:(0,r.jsx)(u.Z,{fieldName:"tags",formik:n,label:"Salon Tags",placeholder:"Select tags",options:i})})})]})]})}},48436:function(e,n,t){t.d(n,{HC:function(){return l},Lq:function(){return r},bc:function(){return o}});var i=t(85893);let r=()=>(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_2706_11608)",children:(0,i.jsx)("path",{d:"M1.66699 10.0003H18.3337M1.66699 10.0003C1.66699 14.6027 5.39795 18.3337 10.0003 18.3337M1.66699 10.0003C1.66699 5.39795 5.39795 1.66699 10.0003 1.66699M18.3337 10.0003C18.3337 14.6027 14.6027 18.3337 10.0003 18.3337M18.3337 10.0003C18.3337 5.39795 14.6027 1.66699 10.0003 1.66699M10.0003 1.66699C12.0847 3.94895 13.2693 6.91035 13.3337 10.0003C13.2693 13.0903 12.0847 16.0517 10.0003 18.3337M10.0003 1.66699C7.91593 3.94895 6.73136 6.91035 6.66699 10.0003C6.73136 13.0903 7.91593 16.0517 10.0003 18.3337",stroke:"#D0C4FF",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_2706_11608",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),o=()=>(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_2706_11689)",children:(0,i.jsx)("path",{d:"M9.99967 10.0003C9.08301 10.0003 8.33301 9.25033 8.33301 8.33366C8.33301 7.41699 9.08301 6.66699 9.99967 6.66699C10.9163 6.66699 11.6663 7.41699 11.6663 8.33366C11.6663 9.25033 10.9163 10.0003 9.99967 10.0003ZM14.9997 8.50033C14.9997 5.47533 12.7913 3.33366 9.99967 3.33366C7.20801 3.33366 4.99967 5.47533 4.99967 8.50033C4.99967 10.4503 6.62467 13.0337 9.99967 16.117C13.3747 13.0337 14.9997 10.4503 14.9997 8.50033ZM9.99967 1.66699C13.4997 1.66699 16.6663 4.35033 16.6663 8.50033C16.
16663 11.267 14.4413 14.542 9.99967 18.3337C5.55801 14.542 3.33301 11.267 3.33301 8.50033C3.33301 4.35033 6.49967 1.66699 9.99967 1.66699Z",fill:"#8060FE"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_2706_11689",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),l=()=>(0,i.jsx)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M22 10.5H14C12.9 10.5 12.01 11.4 12.01 12.5L12 28.5C12 29.6 12.89 30.5 13.99 30.5H26C27.1 30.5 28 29.6 28 28.5V16.5L22 10.5ZM26 28.5H14V12.5H21V17.5H26V28.5ZM16 23.51L17.41 24.92L19 23.34V27.5H21V23.34L22.59 24.93L24 23.51L20.01 19.5L16 23.51Z",fill:"#827A7A"})})},60766:function(e,n,t){t.d(n,{e:function(){return o},j:function(){return r}});var i=t(67294);function r(e,n){return"local"===e.status?e.blobUrl:null!=n?n:""}function o(){let[e,n]=(0,i.useState)({status:"db"}),[t,r]=(0,i.useState)(!1);return{state:e,wasCleared:t,pick:e=>{n(n=>("local"===n.status&&URL.revokeObjectURL(n.blobUrl),{status:"local",file:e,blobUrl:URL.createObjectURL(e)})),r(!1)},clear:()=>{n(e=>("local"===e.status&&URL.revokeObjectURL(e.blobUrl),{status:"db"})),r(!0)},resetToDb:()=>{n(e=>("local"===e.status&&URL.revokeObjectURL(e.blobUrl),{status:"db"})),r(!1)}}}}}]);
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.