1var l=Object.defineProperty;var c=(o,e,s)=>e in o?l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[e]=s;var i=(o,e,s)=>(c(o,typeof e!="symbol"?e+"":e,s),s);import{_ as m}from"./vdlProposalForm-8605c84e.js";import{m as u,P as f,az as h,B as _,aE as P,O as g,_ as y,o as b,g as v}from"./vendor-147ef0d1.js";import{aj as E,T as w,E as I}from"./common-4ebc591d.js";import{A as O}from"./AmplitudeMixin-ba2724c9.js";import"./vdlUploader-28de09f3.js";import"./offer-6a8dbe6e.js";import"./getTextTimeRemaining-6e35375c.js";import"./FormGeneratorField-762d60bc.js";import"./FormGeneratorIconizedField-9af28153.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"[email protected]"};var e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="30782b40-6261-4af5-b767-99755a21065c",o._sentryDebugIdIdentifier="sentry-dbid-30782b40-6261-4af5-b767-99755a21065c")}catch{}})();var T=Object.defineProperty,$=Object.getOwnPropertyDescriptor,a=(o,e,s,n)=>{for(var r=n>1?void 0:n?$(e,s):e,p=o.length-1,d;p>=0;p--)(d=o[p])&&(r=(n?d(e,s,r):d(r))||r);return n&&r&&T(e,s,r),r};let t=class extends u(E,O){constructor(){super(...arguments);i(this,"id");i(this,"offerId");i(this,"model");i(this,"loading",!1);i(this,"updateOffer")}async onModelChanged(e){e&&e.name&&(this.loading=!1)}onError(e){this.showMessage(e)}async onProposalUpdated(){this.showMessage("Proposal updated")}onProposalPosted(e){this.$nextTick(()=>{this.showMessage("Proposal submitted"),this.amplitudeTrack(w.SubmittedProposal,e),this.eventBus.emit("trackEvent","Proposals","Submit",`Project ${this.id}`),this.model.stats&&(this.model.stats.offers_received_manual||0)+(this.model.stats.offers_received_automatic||0)===(this.model.offers_wanted||0)-1&&this.eventBus.emit("trackEvent","Retention Stage 1","Project Fulfilled","Returning User"),this.$router.replace({name:"postedOfferView",hash:"#proposal-submitted-sucesssfully",params:{id:this.id,offerId:e.public_hash}})})}onProposalProcessingStarted(e){this.$nextTick(()=>{this.eventBus.emit("trackEvent","Proposals","Submit",`Project ${this.id}`),this.$router.replace({name:"postedOfferView",params:{id:this.id,offerId:e.public_hash}})})}async created(){this.model.name&&(this.loading=!1)}};a([f()],t.prototype,"id",2);a([f()],t.prototype,"offerId",2);a([f()],t.prototype,"model",2);a([h({from:I})],t.prototype,"eventBus",2);a([_],t.prototype,"updateOffer",2);a([P("model")],t.prototype,"onModelChanged",1);t=a([g({})],t);function B(o,e,s,n,r,p){const d=m;return b(),v(d,{model:o.model,id:o.id,onPosted:o.onProposalPosted,"processing-started-handler":o.onProposalProcessingStarted,offerId:o.offerId,onUpdated:o.onProposalUpdated,onError:o.onError},null,8,["model","id","onPosted","processing-started-handler","offerId","onUpdated","onError"])}const x=y(t,[["render",B]]);export{x as default}; 2//# sourceMappingURL=index-34fb0c29.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.