PageSourceSearch

https://geovelo.app/component---src-pages-communities-create-index-fr-tsx-146b00f0e27701ab8569.js

js geovelo.app collected 2026-09-24 09:50:51 UTC 5,565 bytes, 1 lines download raw bytes

1try{!function(){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]="c5b6d82f-bfd9-45cf-96bc-c45a3cebf852",e._sentryDebugIdIdentifier="sentry-dbid-c5b6d82f-bfd9-45cf-96bc-c45a3cebf852")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"1a8adf42d44ed541b19a17a483e7c1104aabf013"}}catch(e){}}(),(self.webpackChunk_geovelo_frontends_geovelo=self.webpackChunk_geovelo_frontends_geovelo||[]).push([[1381],{45686:function(e,n,t){var i=t(54890),o=t(27026),a=t(89575),r=t(72998),s=t(36779),l=t(96691),c=t(47304),u=t(42173),d=t(78373),m=t(74253),g=t(79313),f=t(20159),p=t(70505),b=t(4129),x=t(54938),y=t(32371),h=t(13559),v=t(65517),j=t(60341),A=t(45882),k=t(15428);n.A=function(e){const{0:n,1:t}=(0,d.useState)(void 0),{0:S,1:_}=(0,d.useState)(void 0),{0:w,1:C}=(0,d.useState)(!1),{user:{current:F},actions:{getUserGeogroups:D}}=(0,d.useContext)(v.BR),{i18n:{language:I}}=(0,m.useTranslation)(),{enqueueSnackbar:R}=(0,u.useSnackbar)(),{isSubmitting:T,values:z,touched:B,errors:E,handleChange:P,setFieldValue:G,handleSubmit:U}=(0,s.useFormik)({initialValues:{type:"",title:"",sizeRangeIndex:0,address:null,description:"",linkUrl:"",linkLabel:"",automaticChallenge:!0},validationSchema:g.object().shape({title:g.string().required()}),enableReinitialize:!0,validateOnChange:!0,onSubmit:async function(e,t){let{type:i,title:o,sizeRangeIndex:a,address:s,automaticChallenge:u,description:d,linkUrl:m,linkLabel:g}=e,{setSubmitting:f}=t;if(!i||"company"===i||"city"===i||"other"===i)return;f(!0);try{var p;const{min:e,max:t}=null!==a&&(null===(p=r.communityFormSizeRanges[i])||void 0===p?void 0:p[a])||{min:void 0,max:void 0},{id:f}=await r.GeogroupService.addGeogroup({type:i,name:o,min:e,max:t,address:"private"!==i?s:void 0,icon:n instanceof File||null===n?n:void 0,bannerPicture:S instanceof File||null===S?S:void 0,automaticChallengeStatus:u?"automaticDistance":"disabled",description:d,linkUrl:m,linkLabel:m?g:""});await D(),R((0,c.t)("commons.communities.form.success")),(0,l.oo)(`/${I}/communities/${f}`)}catch{R((0,c.t)("commons.communities.form.server_error"),{variant:"error"})}f(!1)}}),V=(0,c.t)("geovelo.pages_titles.create_community");return(0,k.jsx)(f.A,{path:e.location.pathname},(0,k.jsx)(d.Fragment,null,(0,k.jsx)(x.A,(0,a.A)({title:V},e)),(0,k.jsx)(y.A,{small:!0,data:{id:"",slice_type:"banner",primary:{fullscreen_background:!0,background_color_start:"#326AC2",dark_background:!0,baseline:{text:V}}}}),(0,k.jsx)(o.A,{component:"form",display:"flex",flexDirection:"column",gap:{xs:6,lg:8},minHeight:"calc(100svh - 272px)",onSubmit:U,paddingBottom:{xs:13,lg:15},paddingTop:{xs:6,lg:8}},(0,k.jsx)(o.A,{alignItems:"center",alignSelf:"stretch",display:"flex",flexDirection:"column",flexGrow:1},(0,k.jsx)(o.A,{display:"flex",flexDirection:"column",flexGrow:1,gap:5,maxWidth:"100%",paddingX:{xs:4,md:8,lg:16},width:h.J},(0,k.jsx)(j.A,{dark:!0,geogroup:null,items:[{label:V}]}),(0,k.jsx)(A.A,{bannerPicture:S,errors:E,geogroup:null,handleChange:P,icon:n,isSubmitting:T,setBannerPicture:_,setFieldValue:G,setIcon:t,touched:B,values:z}))),(0,k.jsx)(r.StickyBar,{drawerWidth:0,variant:"outlined"},(0,k.jsx)(d.Fragment,null,(0,k.jsx)(p.A,{color:"primary",component:l.N_,disabled:T,size:"medium",sx:{borderRadius:"8px !important"},to:`/${I}/communities`,type:"reset",variant:"outlined"},(0,c.t)("commons.actions.cancel")),"company"===z.type?(0,k.jsx)(p.A,{disableElevation:!0,color:"primary",onClick:()=>C(!0),size:"medium",sx:{borderRadius:"8px !important"},variant:"contained"},(0,c.t)("commons.communities.form.actions.create")):(0,k.jsx)(p.A,{disableElevation:!0,color:"primary",disabled:T||!z.title||"private"!==z.type&&!z.address,size:"medium",startIcon:T&&(0,k.jsx)(i.A,{color:"inherit",size:16,thickness:4}),sx:{borderRadius:"8px !important"},type:"submit",variant:"contained"},(0,c.t)("commons.communities.form.actions.create"))))),(0,k.jsx)(r.CompanyFormDialog,{Button:p.A,currentUser:F,Dialog:b.A,onClose:()=>{C(!1),G("type","")},open:w})))}},45882:function(e,n,t){var i=t(72998),o=t(70505),a=t(15428);n.A=function(e){let{geogroup:n,icon:t,bannerPicture:r,values:s,errors:l,touched:c,isSubmitting:u,handleChange:d,setFieldValue:m,setIcon:g,setBannerPicture:f}=e;return(0,a.jsx)(i.CommunityForm,{bannerPicture:r,Button:o.A,disableType:n&&"city"===n.type||!1,errors:l,geogroup:n,handleChange:d,icon:t,isSubmitting:u,setBannerPicture:f,setFieldValue:m,setIcon:g,touched:c,values:s})}},60341:function(e,n,t){var i=t(27026),o=t(88581),a=t(85502),r=t(96691),s=t(78373),l=t(74253),c=t(15428);n.A=function(e){let{dark:n,geogroup:t,items:u}=e;const{t:d,i18n:{language:m}}=(0,l.useTranslation)();return void 0===t?(0,c.jsx)(i.A,{flexShrink:0},(0,c.jsx)(o.A,{color:n?"inherit":"#fff",variant:"body2"},(0,c.jsx)(a.A,{variant:"text",width:200}))):(0,c.jsx)(i.A,{flexShrink:0},(0,c.jsx)(o.A,{color:n?"inherit":"#fff",variant:"body2"},(0,c.jsx)(r.N_,{style:{color:"inherit",textDecoration:"none"},to:`/${m}/communities`},d("geovelo.navigation.communities")),null==u?void 0:u.map(((e,n)=>{let{label:t,to:i}=e;return(0,c.jsx)(s.Fragment,{key:n}," ","/"," ",i?(0,c.jsx)(r.N_,{style:{color:"inherit",textDecoration:"none"},to:i},t):(0,c.jsx)("span",null,t))}))))}},60976:function(e,n,t){t.r(n);var i=t(45686),o=t(15428);n.default=e=>(0,o.jsx)(i.A,e)}}]);

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.