1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2025,3303],{23303:(e,t,i)=>{i.r(t),i.d(t,{default:()=>f});var o=i(66352);i(95132);var n=i(71924);let a=(0,n.AH)(["border-radius:20px;background-color:",";border:",";box-shadow:"," inset;-webkit-appearance:none;height:40px;"],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>`1px solid ${e.default.color.text.light}`,({theme:e})=>`0 0 0 0 ${e.default.color.text.light}`),r=(0,n.AH)(["height:40px;border-radius:20px;"]),l=(0,n.AH)(["height:40px;border-radius:20px;"]),d=n.Ay.input.withConfig({componentId:"sc-742cd590-0"})(["background-color:",";font-family:",";outline:0;width:100%;font-size:16px;font-style:normal;font-weight:600;line-height:24px;border:",";padding:20px;border-radius:20px;box-sizing:border-box;&:focus{border:",";}&:hover{border:",";}&::placeholder{color:grey;}"," "," ",""],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>`1px solid ${e.default.color.text.light}`,({theme:e})=>`2px solid ${e.default.color.primary}`,({theme:e})=>`1px solid ${e.default.color.primary}`,({$inputStyles:e})=>"default"===e&&l,({$inputStyles:e})=>"frosted"===e&&a,({$inputStyles:e})=>"form"===e&&r),s=n.Ay.span.withConfig({componentId:"sc-742cd590-1"})(["color:red;font-size:10px;padding-left:1rem;position:absolute;bottom:5px;"]),c=n.Ay.span.withConfig({componentId:"sc-742cd590-2"})(["color:red;font-size:10px;position:absolute;"]),p=n.Ay.div.withConfig({componentId:"sc-742cd590-3"})(["position:relative;white-space:nowrap;"]),h=n.Ay.p.withConfig({componentId:"sc-742cd590-4"})(["font-weight:bold;font-family:",";span{color:",";}"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.primary),g=n.Ay.div.withConfig({componentId:"sc-742cd590-5"})(["display:flex;align-items:flex-start;flex-direction:column;width:100%;span{margin-right:1rem;}"]),u=n.Ay.div.withConfig({componentId:"sc-742cd590-6"})(["width:100%;"]),f=({inputType:e="text",placeholder:t,handleChange:i,value:n,name:a,error:r,inputStyles:l="default",onBlur:f,label:x,required:m,pattern:b,prefix:y,checkbox:w,bottom_error:v,className:j})=>(0,o.jsxs)(o.Fragment,{children:[r&&(0,o.jsx)(p,{children:(0,o.jsx)(s,{children:r})}),(0,o.jsxs)(g,{className:j,children:[(0,o.jsxs)(h,{children:[x,m&&(0,o.jsx)("span",{children:" *"})]}),y&&(0,o.jsx)("span",{children:y}),(0,o.jsx)(d,{$inputStyles:l,type:e,onBlur:f,placeholder:t,onChange:i,autoComplete:"off",value:n,name:a,"data-testid":"input",pattern:b}),w&&(0,o.jsx)(u,{children:w})]}),v&&(0,o.jsx)(p,{children:(0,o.jsx)(c,{children:v})})]})},28865:(e,t,i)=>{i.d(t,{A:()=>g});var o=i(66352),n=i(71924);let a=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:",";text-decoration:none;color:",";background-color:",";&:disabled{cursor:not-allowed;opacity:0.6;font-weight:bold;}width:",";"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.text.white,({theme:e})=>e.default.color.primary,({$fullwidth:e})=>e?"100%":"150px"),r=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;border-radius:20px;color:white;font-family:",";background-color:red;text-decoration:none;&:disabled{cursor:not-allowed;background-color:gray;}"],({theme:e})=>e.default.fontFamily.primaryFont),l=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;border-radius:20px;font-size:1.2rem;font-family:Standard Sans,sans-serif;background-color:white;text-decoration:none;&:disabled{cursor:not-allowed;background-color:gray;}"]),d=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:Standard Sans,sans-serif;text-decoration:none;color:",";background-color:",";&:disabled{cursor:not-allowed;background-color:#e7e7e7;font-weight:bold;}"],({disabled:e})=>e?"#858585":"white",({theme:e})=>e.default.color.text.light),s=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:Standard Sans,sans-serif;text-decoration:none;text-transform:uppercase;background-color:white;border:1px solid gray;&:disabled{cursor:not-allowed;border:1px solid #d4d4d4;&:hover{background-color:white;}}&:hover{background-color:#f3f3f3;}"]),c=n.Ay.button.withConfig({componentId:"sc-af7f5b26-0"})(["outline:0;border-radius:24px;white-space:nowrap;svg{vertical-align:text-top;font-size:20px;}&:hover{cursor:pointer;&:disabled{cursor:not-allowed;}}width:",";"," "," "," "," ",""],({$fullwidth:e})=>e?"100%":"150px",({$buttonStyle:e})=>"primary"===e&&a,({$buttonStyle:e})=>"secondary"===e&&r,({$buttonStyle:e})=>"clear"===e&&l,({$buttonStyle:e})=>"frost"===e&&d,({$buttonStyle:e})=>"pagination"===e&&s);var p=i(9027),h=i.n(p);let g=({children:e,handleClick:t,disabled:i,buttonStyles:n,buttonType:a="button",icon:r,fullwidth:l,loading:d,lefticon:s,className:p})=>(0,o.jsxs)(c,{type:a,onClick:t,disabled:i,$buttonStyle:n,role:"button",$fullwidth:l,className:p,children:[s,d?(0,o.jsxs)("span",{children:[(0,o.jsx)(h(),{color:"white",loading:d,size:12})," loading"]}):e,r]})},37282:(e,t,i)=>{i.d(t,{A:()=>v});var o=i(66352),n=i(95132),a=i(22527),r=i(71924);let l=r.Ay.div.withConfig({componentId:"sc-447beaac-0"})(["border:",";border-radius:20px;
1display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.4rem;cursor:pointer;font-size:12px;margin:1rem 0;background:",";&:hover{border:","}&:invalid{border:","}&:focus{border:","}svg{font-size:36px;margin-bottom:1rem;}span{border-bottom:",";}p{font-family:",";font-size:10px;font-style:normal;font-weight:900;line-height:22px;letter-spacing:0.05em;text-align:center;margin:0;}"],({$isDragActive:e,theme:t})=>e?`dashed 2px ${t.default.color.primary}`:`dashed 1px${t.default.color.text.light}`,({$isDragActive:e,theme:t})=>e?t.default.color.backgrounds.blue:t.default.color.backgrounds.white,({theme:e})=>`dashed 1px ${e.default.color.primary}`,({theme:e})=>"dashed 1px red",({theme:e})=>`dashed 2px ${e.default.color.primary}`,({theme:e})=>`1px solid ${e.default.color.text.dark}`,({theme:e})=>e.default.fontFamily.secondaryFont),d=()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)("path",{d:"M3 16L10 13L21 18M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6ZM16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8C18 9.10457 17.1046 10 16 10Z",stroke:"#272727",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),s=({setFiles:e,cropData:t,files:i})=>{let r=(0,n.useCallback)(t=>{e(t.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})))},[e]),{getRootProps:s,getInputProps:c,isDragActive:p}=(0,a.VB)({onDrop:r});return"#"!==t||i[0]?null:(0,o.jsxs)(l,{...s(),$isDragActive:p,children:[(0,o.jsx)("input",{...c()}),(0,o.jsx)(d,{}),(0,o.jsx)("p",{children:" Drag and drop "}),(0,o.jsx)("p",{children:" or "}),(0,o.jsx)("span",{children:(0,o.jsx)("p",{children:" Browse files"})})]})};var c=i(11308),p=i(28865);i(88153);let h=r.Ay.div.withConfig({componentId:"sc-6dc0951c-0"})(["span{margin-left:auto;display:flex;}button{margin-top:1rem;margin-left:1rem;}"]),g=r.Ay.div.withConfig({componentId:"sc-6dc0951c-1"})(["display:flex;justify-content:flex-end;.ghost-btn{background-color:transparent;color:",";border:",";}"],({theme:e})=>e.default.color.primary,({theme:e})=>`1px solid ${e.default.color.primary}`),u=({setCropData:e,files:t,setFiles:i})=>{let[a,r]=(0,n.useState)(),l=(0,n.useRef)(null);return t[0]?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A,{ref:l,src:t[0].preview,guides:!1,crop:()=>{new FileReader().onload=()=>{}},style:{height:200,width:"100%"},onInitialized:e=>{r(e)}}),(0,o.jsx)(h,{children:(0,o.jsx)(g,{children:(0,o.jsxs)("span",{children:[(0,o.jsx)(p.A,{handleClick:()=>{i([])},buttonStyles:"secondary",className:"ghost-btn",children:"Cancel"}),(0,o.jsx)(p.A,{handleClick:()=>{void 0!==a&&(a.getCroppedCanvas().toBlob(t=>e(t)),i([]))},buttonStyles:"primary",children:"Crop"})]})})})]}):null};var f=i(44258);let x=r.Ay.div.withConfig({componentId:"sc-8b9b50bc-0"})(["background-color:",";display:flex;justify-content:center;flex-direction:column;align-items:center;padding:1rem;margin-top:1rem;border-radius:8px;.ghost-btn{background-color:transparent;color:",";border:",";}"],({theme:e})=>e.default.color.backgrounds.light,({theme:e})=>e.default.color.primary,({theme:e})=>`1px solid ${e.default.color.primary}`),m=r.Ay.img.withConfig({componentId:"sc-8b9b50bc-1"})(["height:100px;width:50%;object-fit:contain;margin-bottom:1rem;@media (max-width:","){width:100%;}"],f.KL.medium),b=({cropData:e,setCropData:t})=>"#"===e?null:(0,o.jsxs)(x,{children:[(0,o.jsx)(m,{src:URL.createObjectURL(e),alt:"cropped"}),(0,o.jsx)(p.A,{handleClick:()=>t("#"),buttonStyles:"secondary",className:"ghost-btn",children:"Cancel"})]}),y=r.Ay.div.withConfig({componentId:"sc-46a90850-0"})(["width:45%;border-radius:20px;margin-top:5px;@media (max-width:","){width:100%;margin-top:0;}"],f.KL.medium),w=r.Ay.p.withConfig({componentId:"sc-46a90850-1"})(["font-family:",";font-size:12px;font-style:normal;font-weight:600;line-height:16px;"],({theme:e})=>e.default.fontFamily.primaryFont),v=({cropData:e,className:t,label:i,setCropData:n,files:a,setFiles:r})=>(0,o.jsxs)(y,{className:t,children:[(0,o.jsx)(w,{children:i}),(0,o.jsx)(b,{cropData:e,setCropData:n}),(0,o.jsx)(s,{cropData:e,setFiles:r,files:a}),(0,o.jsx)(u,{setCropData:n,files:a,setFiles:r})]})},47452:(e,t,i)=>{i.d(t,{A:()=>s});var o=i(66352),n=i(71924);let a=n.Ay.select.withConfig({componentId:"sc-359fda70-0"})(["max-width:250px;width:100%;flex-grow:1;height:40px;background:",";color:",";padding:4px 24px;font-size:16px;border-radius:32px;border:1px solid ",';&:focus{outline:none;}background:url(\'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke="%23272727" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>\') #fff no-repeat 99% 50%;-moz-appearance:none;-webkit-appearance:none;appearance:none;option{color:',";background:",";display:flex;white-space:pre;min-height:20px;padding:0px 2px 1px;}"],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>e.default.color.text.dark,({theme:e})=>e.default.color.text.light,({theme:e})=>e.default.color.text.dark,({theme:e})=>e.default.color.backgrounds.white),r=n.Ay.p.withConfig({componentId:"sc-359fda70-1"})(["font-weight:bold;font-family:",";span{color:",";}"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.primary),l=n.Ay.div.withConfig({componentId:"sc-359fda70-2"})(["width:100%;"]),d=n.Ay.div.withConfig({componentId:"sc-359fda70-3"})(["display:flex;width:100%;"]),s=({options:e,onChange:t,name:i,value:n,label:s,id:c,required:p,checkbox:h,placeholderOverWrite:g})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r,{children:[s,p&&(0,o.jsx)("span",{children:" *"})]}),(0,o.jsxs)(d,{children:[(0,o.jsxs)(a,{defaultValue:"",name:i,value:n,onChange:t,id:c,children:[(0,o.jsx)("option",{value:"",disabled:!0,children:g||"Please select"}),e.map((e,t)=>(0,o.jsx)("option",{value:e,children:e},t))]}),h&&(0,o.jsxs)(l,{children:[" ",h]})]})]})},62025:(e,t,i)=>{i.r(t),i.d(t,{default:()=>O});var o=i(66352),n=i(95132),a=i(47452),r=i(71924),l=i(44258);let d=r.Ay.h1.withConfig({componentId:"sc-f79891a2-0"})(["text-align:left;"]);r.Ay.form.withConfig({componentId:"sc-f79891a2-1"})(["p{font-family:",";font-size:20px;font-style:normal;font-weight:700;line-height:17px;letter-spacing:0em;text-align:left;}.point{color:",";}.submit_button{font-family:",";font-size:13px;font-style:normal;font-weight:900;letter-spacing:0.05em;text-align:left;}"],({theme:e})=>e.default.fontFamily.secondaryFont,({theme:e})=>e.default.color.primary,({theme:e})=>e.default.fontFamily.primaryFont);let s=r.Ay.h1.withConfig({componentId:"sc-f79891a2-2"})(["font-size:20px;font-family:",";font-style:normal;font-weight:400;line-height:30px;letter-spacing:0em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont),c=r.Ay.div.withConfig({componentId:"sc-f79891a2-3"})(["display:grid;grid-template-columns:1fr 1fr;column-gap:1rem;padding-bottom:10px;@media (max-width:","){grid-template-columns:1fr;}"],l.KL.medium),p=r.Ay.div.withConfig({componentId:"sc-f79891a2-4"})(["display:grid;grid-template-columns:1fr 1fr 1fr;column-gap:1rem;@media (max-width:","){grid-template-columns:1fr;}"],l.KL.medium),h=r.Ay.div.withConfig({componentId:"sc-f79891a2-5"})(["padding:2rem 0;"]);var g=i(23303),u=i(37282),f=i(28865),x=i(49843),m=i(64028);let b=r.Ay.input.withConfig({componentId:"sc-9f433961-0"})(["font-family:inherit;background-color:white;outline:0;width:100%;margin:auto 0;border:0;padding:0 12px;width:100%;box-sizing:border-box;color:grey;box-shadow:"," inset;-webkit-appearance:none;-moz-box-shadow:"," inset;-webkit-box-shadow:"," inset;&:focus{box-shadow:"," inset;}&::placeholder{color:grey;}border-radius:8px;background-color:",";border:0;box-shadow:"," inset;-webkit-appearance:none;height:38px;"],({theme:e})=>`0 0 0 1px ${e.default.color.text.light}`,({theme:e})=>`0 0 0 1px ${e.default.color.text.light}`,({theme:e})=>`0 0 0 1px ${e.default.color.text.light}`,({theme:e})=>`0 0 0 1px ${e.default.color.text.light}`,({theme:e})=>e.default.color.backgrounds.light,({theme:e})=>`0 0 0 0 ${e.default.color.text.light}`),y=r.Ay.p.withConfig({componentId:"sc-9f433961-1"})(["font-weight:bold;span{color:",";}"],({theme:e})=>e.default.color.primary),w=({label:e,value:t,name:i,required:n,handleChange:a})=>{var r=6e4*new Date().getTimezoneOffset();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(y,{children:[e,n&&(0,o.jsx)("span",{children:" *"})]}),(0,o.jsx)(b,{type:"datetime-local",name:i,onChange:a,value:new Date(t-r).toISOString().split(".")[0].substring(0,16),min:new Date().toISOString().split(".")[0].substring(0,16)})]})};var v=i(30849),j=i(14),A=i(41957),C=i(25338),k=i(37763),I=i(74079),S=i(78901),$=i(49094),F=i(34039),D=i(
15274);let z=r.Ay.p.withConfig({componentId:"sc-5a14e4a8-0"})(["font-weight:bold;span{color:",";}"],({theme:e})=>e.default.color.primary),B=r.Ay.div.withConfig({componentId:"sc-5a14e4a8-1"})(["border:1px solid #f1f1f1;background:#fff;.tiptap-editor{padding:0 14px;min-height:180px;.ProseMirror{min-height:180px;outline:none;}}"]),L=r.Ay.div.withConfig({componentId:"sc-5a14e4a8-2"})(["display:flex;flex-wrap:wrap;gap:4px;padding:6px;border-bottom:1px solid #f1f1f1;"]),q=r.Ay.button.withConfig({componentId:"sc-5a14e4a8-3"})(["border:1px solid #f1f1f1;border-radius:2px;background:#fff;min-width:30px;height:30px;padding:0 8px;cursor:pointer;&:hover{box-shadow:1px 1px 0px #bfbdbd;}",""],({$active:e})=>e&&(0,r.AH)(["box-shadow:1px 1px 0px #bfbdbd inset;background:#f1f1f1;"])),H=r.Ay.span.withConfig({componentId:"sc-5a14e4a8-4"})(["width:1px;margin:0 4px;background:#f1f1f1;"]),R=({label:e,value:t,required:i,onChange:n})=>{let a=(0,$.hG)({extensions:[F.A.configure({heading:{levels:[2,3]},code:!1,codeBlock:!1,horizontalRule:!1}),D.A.configure({types:["heading","paragraph"]})],content:t,immediatelyRender:!1,shouldRerenderOnTransaction:!0,editorProps:{attributes:{"aria-label":e,class:"tiptap-editor"}},onUpdate:({editor:e})=>n(e.isEmpty?"":e.getHTML())});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(z,{children:[e,i&&(0,o.jsx)("span",{children:" *"})]}),(0,o.jsxs)(B,{children:[a&&(0,o.jsxs)(L,{children:[(0,o.jsx)(q,{type:"button","aria-label":"Bold","aria-pressed":a.isActive("bold"),$active:a.isActive("bold"),onClick:()=>a.chain().focus().toggleBold().run(),children:(0,o.jsx)("strong",{children:"B"})}),(0,o.jsx)(q,{type:"button","aria-label":"Italic","aria-pressed":a.isActive("italic"),$active:a.isActive("italic"),onClick:()=>a.chain().focus().toggleItalic().run(),children:(0,o.jsx)("em",{children:"I"})}),(0,o.jsx)(q,{type:"button","aria-label":"Underline","aria-pressed":a.isActive("underline"),$active:a.isActive("underline"),onClick:()=>a.chain().focus().toggleUnderline().run(),children:(0,o.jsx)("u",{children:"U"})}),(0,o.jsx)(q,{type:"button","aria-label":"Strikethrough","aria-pressed":a.isActive("strike"),$active:a.isActive("strike"),onClick:()=>a.chain().focus().toggleStrike().run(),children:(0,o.jsx)("s",{children:"S"})}),(0,o.jsx)(H,{}),(0,o.jsx)(q,{type:"button","aria-label":"Paragraph","aria-pressed":a.isActive("paragraph"),$active:a.isActive("paragraph"),onClick:()=>a.chain().focus().setParagraph().run(),children:"P"}),(0,o.jsx)(q,{type:"button","aria-label":"Heading 2","aria-pressed":a.isActive("heading",{level:2}),$active:a.isActive("heading",{level:2}),onClick:()=>a.chain().focus().toggleHeading({level:2}).run(),children:"H2"}),(0,o.jsx)(q,{type:"button","aria-label":"Heading 3","aria-pressed":a.isActive("heading",{level:3}),$active:a.isActive("heading",{level:3}),onClick:()=>a.chain().focus().toggleHeading({level:3}).run(),children:"H3"}),(0,o.jsx)(H,{}),(0,o.jsx)(q,{type:"button","aria-label":"Bullet list","aria-pressed":a.isActive("bulletList"),$active:a.isActive("bulletList"),onClick:()=>a.chain().focus().toggleBulletList().run(),children:"â¢â"}),(0,o.jsx)(q,{type:"button","aria-label":"Ordered list","aria-pressed":a.isActive("orderedList"),$active:a.isActive("orderedList"),onClick:()=>a.chain().focus().toggleOrderedList().run(),children:"1."}),(0,o.jsx)(q,{type:"button","aria-label":"Blockquote","aria-pressed":a.isActive("blockquote"),$active:a.isActive("blockquote"),onClick:()=>a.chain().focus().toggleBlockquote().run(),children:"â"}),(0,o.jsx)(H,{}),(0,o.jsx)(q,{type:"button","aria-label":"Align left","aria-pressed":a.isActive({textAlign:"left"}),$active:a.isActive({textAlign:"left"}),onClick:()=>a.chain().focus().toggleTextAlign("left").run(),children:"â¤"}),(0,o.jsx)(q,{type:"button","aria-label":"Align centre","aria-pressed":a.isActive({textAlign:"center"}),$active:a.isActive({textAlign:"center"}),onClick:()=>a.chain().focus().toggleTextAlign("center").run(),children:"â"}),(0,o.jsx)(q,{type:"button","aria-label":"Align right","aria-pressed":a.isActive({textAlign:"right"}),$active:a.isActive({textAlign:"right"}),onClick:()=>a.chain().focus().toggleTextAlign("right").run(),children:"â¥"})]}),(0,o.jsx)($.$Z,{editor:a})]})]})};var _=i(59085);let N=A.Ik().shape({email:(0,C.E)("Invalid email"),location:A.Yj().required("Required"),name:A.Yj().required("Required"),password_confirm:A.Yj().oneOf([A.KR("password")],"Passwords must match")}),O=({setSuccess:e})=>{let{publication:t}
1=(0,n.useContext)(_.I),[i,r]=(0,n.useState)(!1),[l,b]=(0,n.useState)([]),[y,A]=(0,n.useState)("#"),{session:C}=(0,n.useContext)(S.cy),[$,F]=(0,n.useState)(""),[D,z]=(0,n.useState)(()=>({publication:t,startDate:Date.now(),endDate:Date.now(),updated:!1})),[B]=(0,n.useState)(()=>({publication:t,timestamp:Date.now(),category:"",ageRestriction:!0,description:"",website:"",email:"",phone:"",price:"",name:"",location:"",ageRestrictionVal:"",img:"",freeEvent:!0,terms_agreement:!1,uuid:(0,v.A)()})),L=e=>{z({...D,[e.target.name]:new Date(e.target.value).getTime(),updated:!0})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{children:"Submit your event"}),(0,o.jsx)(j.l1,{initialValues:B,onSubmit:async t=>{try{let i=await new Promise((e,t)=>{C?C.getSession((i,o)=>{i||!o?t(i??Error("No session")):e(o.getIdToken().getJwtToken())}):t(Error("Not signed in"))}),o={headers:{Authorization:`Bearer ${i}`}};if("#"===y)await m.A.post("/api/events",{...t,...D,ttl:Math.floor(D.startDate/1e3),description:$},o),e(!0);else{let i=(0,v.A)(),n=`https://flowservice-prod.s3.eu-west-2.amazonaws.com/${i}`;await m.A.post("/api/events",{...t,...D,img:n,ttl:Math.floor(D.startDate/1e3),description:$},o);let a=await m.A.post("/api/s3",{imageId:i});await m.A.put(a.data.res,y),e(!0)}}catch(e){console.log(e),r(!1)}},validationSchema:N,children:({values:e,handleChange:t,handleBlur:n,isSubmitting:r,errors:d,touched:m})=>(0,o.jsxs)(j.lV,{children:[(0,o.jsx)(s,{children:"If you are hosting a fundraiser, arranging a fun day, planning a concert or event or want to keep people up-to-date with your regular gatherings, then submit your event using the easy form below."}),(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"point",children:"*"})," Indicate a required field"]}),(0,o.jsx)("div",{style:{padding:"0 0 10px 0"},children:(0,o.jsx)(a.A,{options:["Car boot and jumble sales","Clubs / groups / societies","Charity events","Family fun days / events","Film","Markets","On stage (music, theatre, performance)","Sports / fitness / outdoors activities","Students","Other"],onChange:t,name:"category",value:e.category,label:"Type of event",required:!0})}),(0,o.jsxs)(c,{children:[(0,o.jsx)("div",{children:(0,o.jsx)(w,{name:"startDate",handleChange:L,value:D.startDate,label:"Start date",required:!0})}),(0,o.jsx)("div",{children:(0,o.jsx)(w,{name:"endDate",handleChange:L,value:D.endDate,label:"End date",required:!0})})]}),(0,o.jsxs)(c,{children:[(0,o.jsx)("div",{children:(0,o.jsx)(k.A,{placeholder:"Event name",inputStyles:"frosted",label:"Name of event",required:!0,handleChange:t,onBlur:n,name:"name",value:e.name,bottom_error:m.name&&d.name})}),(0,o.jsx)("div",{children:(0,o.jsx)(k.A,{placeholder:"eg. Farnham",inputStyles:"frosted",label:"Location of event",required:!0,handleChange:t,onBlur:n,name:"location",value:e.location,bottom_error:m.location&&d.location})})]}),(0,o.jsx)(u.A,{label:"Upload a flyer or logo for your event",cropData:y,setCropData:A,files:l,setFiles:b}),(0,o.jsxs)(p,{children:[(0,o.jsx)("div",{style:{padding:"0 0 10px 0"},children:(0,o.jsx)(a.A,{options:["18+","15+"],onChange:t,value:e.ageRestrictionVal,name:"ageRestrictionVal",label:"Age restriction",required:!1,checkbox:(0,o.jsx)(x.A,{label:"No age restriction",value:e.ageRestriction,name:"ageRestriction",handleChange:t})})})," ",(0,o.jsx)("div",{style:{padding:"0 0 10px 0"},children:(0,o.jsx)(g.default,{placeholder:"20",inputStyles:"frosted",label:"Price",required:!0,prefix:"\xa3",handleChange:t,onBlur:n,name:"price",checkbox:(0,o.jsx)(x.A,{label:"Free event",handleChange:t,value:e.freeEvent,name:"freeEvent"})})}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{style:{padding:"0 0 10px 0"},children:(0,o.jsx)(k.A,{placeholder:"eg. 07000000",bottom_error:m.phone&&d.phone,label:"Contact phone",required:!1,value:e.phone,handleChange:t,onBlur:n,name:"phone"})}),(0,o.jsx)("div",{style:{padding:"0 0 10px 0"},children:(0,o.jsx)(k.A,{placeholder:"eg. [email protected]",inputStyles:"frosted",label:"Contact email address",required:!1,value:e.email,bottom_error:m.email&&d.email,handleChange:t,onBlur:n,name:"email"})}),(0,o.jsx)("div",{style:{padding:"0 0 10px 0"},children:(0,o.jsx)(k.A,{placeholder:"eg. www.tindlenews.co.uk",inputStyles:"frosted",label:"Website address",required:!1,handleChange:t,onBlur:n,name:"website"})})]}),(0,o.jsx)(R,{value:$,onChange:F,label:"Description of event",required:!0}),(0,o.jsx)(x.A,{label:'By submitting this event I agree to the <a href="/terms" >terms and conditions</a>. ',handleChange:t,value:e.terms_agreement,name:"terms_agreement"}),(0,o.jsx)(h,{children:(0,o.jsx)(f.A,{loading:i,disabled:r||(0,I.I)(d)||!1===D.updated||""===e.name||""===e.location||""===e.category||!1===e.terms_agreement,buttonType:"submit",buttonStyles:"primary",fullwidth:!0,children:(0,o.jsx)("span",{className:"submit_button",children:"Submit your event"})})})]})})]})}}}]);
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.