2021-05-08 21:26:50 +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(4605);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(7154),cs:a(6407),de:a(4726),en:a(3340),"en-us":a(3340),"en-gb":a(6318),es:a(5394),el:a(3636),fr:a(2551),hu:a(995),it:a(9112),nl:a(4671),nb:a(9085),pl:a(6238),fi:a(7868),"pt-br":a(6586),"pt-pt":a(8664),ro:a(1102),ru:a(753),"zh-tw":a(1715),"zh-cn":a(4556),sk:a(7049),sv:a(7921),vi:a(1497)}})},4504:(e,t,a)=>{"use strict";const n={name:"Currency",props:{value:{},errors:{},disabled:{type:Boolean,default:!1}},data:function(){return{loading:!0,currency_id:this.value,currencyList:[]}},methods:{loadCurrencies:function(){this.loadCurrencyPage(1)},loadCurrencyPage:function(e){var t=this;axios.get("./api/v1/currencies?page="+e).then((function(e){var a=parseInt(e.data.meta.pagination.total_pages),n=parseInt(e.data.meta.pagination.current_page),i=e.data.data;for(var o in i)if(i.hasOwnProperty(o)){var r=i[o];if(!0!==r.attributes.default||null!==t.currency_id&&void 0!==t.currency_id||(t.currency_id=parseInt(r.id)),!1===r.attributes.enabled)continue;var s={id:parseInt(r.id),name:r.attributes.name};t.currencyList.push(s)}n<a&&t.loadCurrencyPage(n++),n>=a&&(t.loading=!1)}))}},watch:{currency_id:function(e){this.$emit("set-field",{field:"currency_id",value:e})}},created:function(){this.loadCurrencies()}};var i=a(1900);const o=(0,i.Z)(n,(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.currency_id"))+"\n ")]),e._v(" "),e.loading?a("div",{staticClass:"input-group"},[a("i",{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.currency_id,expression:"currency_id"}],ref:"currency_id",class:e.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:e.$t("form.currency_id"),autocomplete:"off",disabled:e.disabled,name:"currency_id"},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.currency_id=t.target.multiple?a:a[0]}}},e._l(this.currencyList,(function(t){return a("option",{attrs:{label:t.name},domProps:{value:t.id}},[e._v(e._s(t.name))])})),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,"9b4a3ede",null).exports;const r={name:"AssetAccountRole",props:{value:{},errors:{},disabled:{type:Boolean,default:!1}},data:function(){return{roleList:[],account_role:this.value,loading:!1}},methods:{loadRoles:function(){var e=this;axios.get("./api/v1/configuration/firefly.accountRoles").then((function(t){var a=t.data.data.value;for(var n in a)if(a.hasOwnProperty(n)){var i=a[n];e.roleList.push({slug:i,title:e.$t("firefly.account_role_"+i)})}}))}},watch:{account_role:function(e){this.$emit("set-field",{field:"account_role",value:e})}},created:function(){this.loadRoles()}};const s=(0,i.Z)(r,(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.account_role"))+"\n ")]),e._v(" "),e.loading?a("div",{staticClass:"input-group"},[a("i",{staticClass:"fas
|