PageSourceSearch

https://live.osegdansk.pl/assets/RemindForm-DyydNFMa.js

js osegdansk.pl collected 2026-10-09 01:59:22 UTC 3,237 bytes, 2 lines download raw bytes

1import{a as d,c as u,r as c,ab as f,j as p}from"./index-iKZctqkc.js";import{m as y}from"./react-error-boundary-DApaqVZl.js";import{t as I}from"./Styles-B_hrx-39.js";import{E as b}from"./404-C_KbLL34.js";import{F as S}from"./Form-DJWiW8kL.js";import"./StatusWrapper-Cox6w-En.js";import"./index-aW9hvg79.js";import"./Styles-C3LETCWv.js";import"./Text-Dlsl_Pei.js";import"./Styles-BoNXvgNV.js";import"./Avatar-BYiY1cph.js";import"./Card-CfqSTSc5.js";import"./Info-B2nsj9mU.js";import"./navigation-D7-ETPC5.js";import"./Icon-CfZtCVGs.js";import"./Checkbox-xCm87T0H.js";import"./onClickOutside-BDQw4SAr.js";import"./Live-9UBdg0iu.js";import"./FileType-DWUGzhyK.js";import"./PrograssBar-BxeSvWor.js";import"./Badge-Ckh_MWEX.js";import"./PrograssBar2-DDsKCqjm.js";import"./Flex-B7Q3BrpJ.js";import"./SocialMedia-Lftcq8Ui.js";import"./ResourcesSimplified-CA9OhB0G.js";import"./index-J6I0aQn1.js";import"./usePopperHook-xt3THqo5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"37b638917a0d057baf231e49ecc1802c4a928fbe"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0fcd0c96-46c7-4040-8feb-a6599b12784e",e._sentryDebugIdIdentifier="sentry-dbid-0fcd0c96-46c7-4040-8feb-a6599b12784e")}catch{}})();const g=(e,t)=>{switch(t.type){case"SUBMIT_INIT":return{...e,status:"PENDING"};case"SUBMIT_SUCCESS":return{...e,status:"SUCCESS",successAlert:t.payload};case"SUBMIT_FAILURE":return{...e,status:"ERROR",error:t.payload};default:throw new Error}},E=()=>{const{t:e}=d(),t=u(({event:a})=>a==null?void 0:a.slug),[o,s]=c.useReducer(g,{status:"IDLE",formId:I(5),error:!1,successAlert:!1}),m=[{type:"input",inputType:"text",name:"event",required:!0,hidden:!0,validationType:"string",validations:[{type:"required",params:[e("form.field-required")]}]},{type:"input",inputType:"email",name:"email",title:e("general.email"),widthMd:null,required:!0,validationType:"string",validations:[{type:"email",params:[e("form.invalid-email")]},{type:"max",params:[50,e("form.field-max-chars",{chars:50})]},{type:"required",params:[e("form.field-required")]}]}];return{state:o,inputsList:m,initialValues:{event:t},onSubmit:async a=>{await s({type:"SUBMIT_INIT"});try{f.post(`https://app.gridaly.com/api/v1/event/${window.event}/access`,a).then(r=>{var i;const n={title:null,text:(i=r.data)==null?void 0:i.message};s({type:"SUBMIT_SUCCESS",payload:n})}).catch(r=>{var i,l;let n=e("form.sending-error");(l=(i=r==null?void 0:r.response)==null?void 0:i.data)!=null&&l.message&&(n=r.response.data.message),s({type:"SUBMIT_FAILURE",payload:n})})}catch{s({type:"SUBMIT_FAILURE",payload:e("form.sending-error")})}}}},Q=()=>{const{t:e}=d(),{state:t,inputsList:o,initialValues:s,onSubmit:m}=E();return p.jsxs(y,{FallbackComponent:b,children:[p.jsx("p",{className:"text-center mb-3",children:e("event.remind-email-info")}),p.jsx(S,{containerId:t.formId,formInputs:o,submitTitle:e("general.send"),values:s,handleOnSubmit:m,disabled:t.status==="PENDING",status:t.status,error:t.error,successAlert:t.successAlert,validationOnSubmit:!0,handleResetForm:t.formId})]})};export{Q as default};
2//# sourceMappingURL=RemindForm-DyydNFMa.js.map

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.