2021-08-09 08:01:27 +02:00
|
|
|
(self.webpackChunk=self.webpackChunk||[]).push([[800],{232:(e,t,a)=>{"use strict";a.r(t);var n=a(7760),i=a.n(n),o=a(7152),r=a(1444);window.$=window.jQuery=a(9755),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var s=document.head.querySelector('meta[name="csrf-token"]');s?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=s.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");var l=document.head.querySelector('meta[name="locale"]');localStorage.locale=l?l.content:"en_US",a(6891),a(3734),a(7632),a(5432),window.vuei18n=o.Z,window.uiv=r,i().use(vuei18n),i().use(r),window.Vue=i()},157:(e,t,a)=>{e.exports=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{bg:a(4901),cs:a(9789),de:a(9929),en:a(790),"en-us":a(790),"en-gb":a(4632),es:a(8563),el:a(7498),fr:a(844),hu:a(4626),it:a(504),nl:a(3055),nb:a(4870),pl:a(5143),fi:a(2276),"pt-br":a(2055),"pt-pt":a(9898),ro:a(4691),ru:a(9672),"zh-tw":a(7742),"zh-cn":a(4813),sk:a(1941),sv:a(3244),vi:a(245)}})},6291:(e,t,a)=>{"use strict";var n=a(7955),i=a(5486),o=a(9162),r=a(362);const s={name:"CreditCardType",props:{value:{},errors:{},disabled:{type:Boolean,default:!1}},data:function(){return{typeList:[],credit_card_type:this.value,loading:!0}},methods:{loadRoles:function(){var e=this;axios.get("./api/v1/configuration/firefly.credit_card_types").then((function(t){var a=t.data.data.value;for(var n in a)if(a.hasOwnProperty(n)){var i=a[n];e.typeList.push({slug:i,title:e.$t("firefly.credit_card_type_"+i)})}e.loading=!1}))}},watch:{credit_card_type:function(e){this.$emit("set-field",{field:"credit_card_type",value:e})},value:function(e){this.credit_card_type=e}},created:function(){this.loadRoles()}};var l=a(1900);const _=(0,l.Z)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n "+e._s(e.$t("form.cc_type"))+"\n ")]),e._v(" "),e.loading?a("div",{staticClass:"input-group"},[a("span",{staticClass:"fas fa-spinner fa-spin"})]):e._e(),e._v(" "),e.loading?e._e():a("div",{staticClass:"input-group"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.credit_card_type,expression:"credit_card_type"}],ref:"credit_card_type",class:e.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:e.$t("form.cc_type"),autocomplete:"off",name:"credit_card_type",disabled:e.disabled},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.credit_card_type=t.target.multiple?a:a[0]}}},e._l(this.typeList,(function(t){return a("option",{attrs:{label:t.title},domProps:{value:t.slug}},[e._v(e._s(t.title))])})),0)]),e._v(" "),e.errors.length>0?a("span",e._l(e.errors,(function(t){return a("span",{staticClass:"text-danger small"},[e._v(e._s(t)),a("br")])})),0):e._e()])}),[],!1,null,null,null).exports;var c=a(6129),d=a(8580),u=a(1607),p=a(1163),y=a(4397),m=a(6611),h=a(3647),b=a(3759),g=a(8035),f=a(3465);const v={name:"Create",components:{GenericCurrency:i.Z,AssetAccountRole:o.Z,LiabilityType:r.Z,LiabilityDirection:c.Z,Interest:d.Z,InterestPeriod:u.Z,GenericTextInput:p.Z,GenericTextarea:y.Z,GenericLocation:m.Z,GenericAttachments:h.Z,GenericCheckbox:b.Z,Alert:g.Z,CreditCardType:_},created:function(){this.errors=f(this.defaultErrors);var e=window.location.pathname.split("/");this.type=e[e.length-1],this.date=(0,n.Z)(new Date,"yyyy-MM-dd"),this.monthly_payment_date=(0,n.Z)(new Date,"yyyy-MM-dd")},data:function(){return{submitting:!1,successMessage:"",errorMessage:"",createAnother:!1,resetFormAfter:!1,returnedId:0,returnedTitle:"",name:"",type:"any",currency_id:null,liability_type:"Loan",liability_direction:"debit",liability_amount:null,liability_date:null,interest:null,interest_period:"monthly",iban:null,bic:null,account_number:null,virtual_balance:null,opening_balance:null,opening_balance_date:null,include_net_worth:!0,active:!0,notes:null,location:{},month
|