PageSourceSearch

https://baserow.io/_nuxt/BeHS28OA2.js

js baserow.io collected 2026-09-24 22:01:42 UTC 3,627 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c9f255ee-667e-4eb8-a58b-63be369e37ab`,e._sentryDebugIdIdentifier=`sentry-dbid-c9f255ee-667e-4eb8-a58b-63be369e37ab`)}catch{}})();import{i as e}from"./D1yk4oGm.js";import{H as t,K as n,N as r,S as i,Yt as a,at as o,f as s,h as c,p as l,q as u,x as d}from"./CdYnTnNr.js";import{l as f}from"./4vY_npPg.js";import{o as p}from"./BSjTeOux.js";import{t as m}from"./RA2W1m_I.js";import{t as h}from"./BuuqxS5P.js";import{t as g}from"./B4Vcb6cr.js";import{t as _}from"./C5uGgdSj.js";import{d as v,n as y}from"./Bpy1LfzQ.js";import{t as b}from"./DeT11tzC.js";import{t as x}from"./Bs2AdChp.js";import{n as S,t as C}from"./CDxWq0ow.js";import{t as w}from"./Cx2DE90B.js";var T={name:`WorkspaceForm`,mixins:[w],props:{defaultName:{type:String,required:!1,default:``}},setup(){return{v$:_({$lazy:!0})}},data(){return{values:{name:this.defaultName}}},validations(){return{values:{name:{required:y.withMessage(this.$t(`error.requiredField`),v),nameContainsNoUrl:y.withMessage(this.$t(`error.nameContainsUrl`),S),nameContainsNoSpam:y.withMessage(this.$t(`error.nameContainsSpam`),C)}}}},async mounted(){this.$refs.name.focus()}};function E(e,r,l,p,m,h){let g=u(`FormInput`),_=u(`FormGroup`);return t(),c(`form`,{onSubmit:r[2]||=f((...t)=>e.submit&&e.submit(...t),[`prevent`])},[i(_,{"small-label":``,error:e.fieldHasErrors(`name`),required:``},{label:o(()=>[r[3]||=s(`i`,{class:`iconoir-text`},null,-1),d(` `+a(e.$t(`workspaceForm.nameLabel`)),1)]),error:o(()=>[d(a(p.v$.values.name.$errors[0]?.$message),1)]),default:o(()=>[i(g,{ref:`name`,modelValue:p.v$.values.name.$model,"onUpdate:modelValue":r[0]||=e=>p.v$.values.name.$model=e,error:e.fieldHasErrors(`name`),size:`large`,onFocusOnce:r[1]||=e=>e.target.select(),onBlur:p.v$.values.name.$touch},null,8,[`modelValue`,`error`,`onBlur`])]),_:1},8,[`error`]),n(e.$slots,`default`)],32)}var D={name:`CreateWorkspaceModal`,components:{WorkspaceForm:h(T,[[`render`,E]])},mixins:[g,b],emits:[`created`],setup(){return{nuxtApp:e()}},data(){return{loading:!1}},methods:{getDefaultName(){let e=this.$store.getters[`workspace/getAll`].map(e=>e.name),t=this.$t(`createWorkspaceModal.defaultName`);return p(t,e)},async submitted(e){this.loading=!0,this.hideError();try{let t=await this.$store.dispatch(`workspace/create`,e);await this.$store.dispatch(`workspace/select`,t),this.loading=!1,this.$emit(`created`,t),await this.$router.push({name:`workspace`,params:{workspaceId:t.id}}),await m(this.nuxtApp),await r(),this.$emit(`created`),this.hide()}catch(e){this.loading=!1,this.handleError(e,`workspace`),this.handleError(e,`workspace`,{PERMISSION_DENIED:new x(this.$t(`createWorkspaceModal.permissionDeniedTitle`),this.$t(`createWorkspaceModal.permissionDeniedBody`))})}}}},O={class:`box__title`},k={class:`actions`},A={class:`align-right`};function j(e,n,r,c,f,p){let m=u(`Error`),h=u(`Button`),g=u(`WorkspaceForm`),_=u(`Modal`);return t(),l(_,{ref:`modal`},{default:o(()=>[s(`h2`,O,a(e.$t(`createWorkspaceModal.createNew`)),1),i(m,{error:e.error},null,8,[`error`]),i(g,{ref:`workspaceForm`,"default-name":p.getDefaultName(),onSubmitted:p.submitted},{default:o(()=>[s(`div`,k,[s(`div`,A,[i(h,{type:`primary`,size:`large`,loading:f.loading,disabled:f.loading},{default:o(()=>[d(a(e.$t(`createWorkspaceModal.add`)),1)]),_:1},8,[`loading`,`disabled`])])])]),_:1},8,[`default-name`,`onSubmitted`])]),_:1},512)}var M=h(D,[[`render`,j]]);export{M as t};
2//# sourceMappingURL=BeHS28OA2.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.