PageSourceSearch

https://app.octoa.com/js/view28.71dfe50c.js

js octoa.com collected 2026-10-04 19:46:53 UTC 3,837 bytes, 2 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["view28"],{"8a8a":function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t._self._c;return e("div",[e("vue-headful",{attrs:{title:"Proposal: create or load template | Octoa"}}),e("v-inner-header",{attrs:{"is-saving":t.isSaving,"is-saved":t.isSaved,redirect:"/projects/"+t.projectId},on:{"update:isSaving":function(e){t.isSaving=e},"update:is-saving":function(e){t.isSaving=e},"update:isSaved":function(e){t.isSaved=e},"update:is-saved":function(e){t.isSaved=e}}}),e("v-video-modal",{attrs:{name:"choose",title:"New Proposal or load from a template",description:"A video to help you get started.",step:"proposal-choose",thumbnail:"proposal-choose.png",embed:"bnBSmANceDE",show:t.isShowVideoModal},on:{"update:show":function(e){t.isShowVideoModal=e},close:t.closeVideoModal}}),e("div",{staticClass:"max-w-lg mx-auto pt-24 px-4"},[e("div",{staticClass:"bg-white px-5 py-5 rounded shadow"},[e("div",{staticClass:"flex items-center justify-between"},[t._m(0),e("div",[e("v-tutorial-button",{on:{click:t.showVideoModal}})],1)]),e("router-link",{staticClass:"green-btn mt-6 inline-block",attrs:{to:`/projects/${t.projectId}/proposal/create`}},[t._v(" Create blank proposal ")]),t.proposals&&t.proposals.length>0?e("div",{staticClass:"mt-8"},[e("h2",{staticClass:"mb-8 text-lg"},[t._v(" Or create based on proposal template ")]),t._l(t.proposals,(function(s){return e("div",{key:s.id,staticClass:"flex items-center mb-3 cursor-pointer border border-solid border-grey-d1 rounded px-4 py-4",on:{click:function(e){return t.loadTemplate(s)}}},[e("img",{staticClass:"align-middle",attrs:{src:o("9b42"),width:"25"}}),e("span",{staticClass:"ml-3 mt-1 inline-block"},[t._v("Proposal template: "+t._s(s.name))])])}))],2):e("div",{staticClass:"mt-8"},[e("h1",{staticClass:"mb-2 text-lg"},[t._v(" Or create a new proposal template ")]),e("p",[t._v("We recommend to create a proposal template first if you have frequent similar proposals.")]),e("router-link",{staticClass:"green-btn mt-6 inline-block",attrs:{to:"/templates/proposals/create?project="+t.projectId}},[t._v(" Create template proposal ")])],1)],1)])],1)},a=[function(){var t=this,e=t._self._c;return e("div",[e("h1",{staticClass:"text-xl"},[t._v(" Create new proposal ")])])}],i=(o("14d9"),o("b628")),r=o("d7c2"),c=o("db04");let l;var n={data(){return{isSaving:!1,isSaved:!1,loading:!1,projectId:this.$route.params.id,proposals:{},project:{},user:i["a"].user(),isShowVideoModal:!1,currency:{}}},async mounted(){await this.checkIntroVideo(),l=Object(c["a"])();try{const{data:t}=await this.$api.get("templateProposal").list(this.user.company.id,{cancelToken:l.token});this.proposals=t.proposals,this.loading=!1}catch(t){Object(r["b"])(t)}try{const{data:t}=await this.$api.get("projects").load(this.projectId,{cancelToken:l.token});t.project.currency_id?this.currency=t.project.currency:this.currency=this.user.companySettings.currency,this.project=t.project}catch(t){Object(r["b"])(t)}},methods:{async loadTemplate(t,e){try{const e=await this.$store.dispatch("template/loadTemplate",t.id);if("success"==e)if(t.currency_id!=this.project.currency_id){const t=await this.$alert.confirm({title:"The proposal template currency is different from the project.",text:`Do you want to continue to use the project currency: ${this.project.currency.name}?`});t&&this.$router.push(`/projects/${this.projectId}/proposal/create?load=1`)}else this.$router.push(`/projects/${this.projectId}/proposal/create?load=1`)}catch(o){this.$toasted.global.api_error(o)}},async checkIntroVideo(){let t=!1;t&&(this.isShowVideoModal=!0)},showVideoModal(){this.isShowVideoModal=!0},closeVideoModal(){this.isShowVideoModal=!1}}},p=n,d=o("0c7c"),u=Object(d["a"])(p,s,a,!1,null,null,null);e["default"]=u.exports}}]);
2//# sourceMappingURL=view28.71dfe50c.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.