1var h=Object.defineProperty,d=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var s=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&s(e,r,t[r]);if(o)for(var r of o(t))m.call(t,r)&&s(e,r,t[r]);return e},i=(e,t)=>d(e,l(t));import{_ as p,O as _,l as f,o as w,a as $,d as g,r as y}from"./vendor.2738a1e9.js";import{U as b}from"./index.298285c2.js";const k={components:{UiBlocker:b},data(){return{loading:!1}},computed:i(a({},_({by_code:"forms/by_code"})),{auth_code(){return this.$route.query.code},form_code(){return this.$route.query.state},error(){return this.$route.query.error}}),async mounted(){if(this.loading=!0,this.auth_code&&this.form_code)try{await this.createIntegration(await this.loadFormId(this.form_code),await this.exchangeCode(this.auth_code)),await this.$store.dispatch("settings/reload"),await this.$router.push({name:"form-build",params:{form:this.form_code}}),this.$notify.success({key:"stripe-connected"})}catch{await this.showError()}else await this.showError()},methods:{async loadFormId(e){await Promise.all([this.$store.dispatch("forms/load"),this.$store.dispatch("settings/reload")]);const t=f(this.by_code(e),"id",null);if(!t)throw new Error("Unknown error");return t},async exchangeCode(e){const t=await this.$store.dispatch("integrations/exchange_stripe_credentials",{auth_code:e});if(!t.success)throw new Error("Unknown error");return t.credentials},async createIntegration(e,t){return this.$store.dispatch("integrations/create",{form:e,type:"stripe",options:{credentials:t}})},async showError(){await Promise.all([this.$store.dispatch("forms/load"),this.$store.dispatch("settings/load")]),await this.$router.push({name:"dashboard"}),this.$notify.error({})}}},x={class:"min-h-screen w-full bg-blue-50"};function E(e,t,r,I,n,U){const c=y("ui-blocker");return w(),$("main",x,[g(c,{show:n.loading},null,8,["show"])])}var v=p(k,[["render",E]]);export{v as default};
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.