(self.webpackChunk=self.webpackChunk||[]).push([[282],{232:(t,e,a)=>{"use strict";a.r(e);var n=a(7760),s=a.n(n),i=a(7152),o=a(4605);window.$=window.jQuery=a(9755),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");var c=document.head.querySelector('meta[name="locale"]');localStorage.locale=c?c.content:"en_US",a(6891),a(3734),a(7632),a(5432),window.vuei18n=i.Z,window.uiv=o,s().use(vuei18n),s().use(o),window.Vue=s()},8923:(t,e,a)=>{"use strict";function n(){return{description:[],amount:[],source:[],destination:[],currency:[],foreign_currency:[],foreign_amount:[],date:[],custom_dates:[],budget:[],category:[],bill:[],tags:[],piggy_bank:[],internal_reference:[],external_url:[],notes:[],location:[]}}function s(){return{description:"",transaction_journal_id:0,source_account_id:null,source_account_name:null,source_account_type:null,source_account_currency_id:null,source_account_currency_code:null,source_account_currency_symbol:null,destination_account_id:null,destination_account_name:null,destination_account_type:null,destination_account_currency_id:null,destination_account_currency_code:null,destination_account_currency_symbol:null,source_account:{id:0,name:"",name_with_balance:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2},amount:"",currency_id:0,foreign_amount:"",foreign_currency_id:0,category:null,budget_id:0,bill_id:0,piggy_bank_id:0,tags:[],interest_date:null,book_date:null,process_date:null,due_date:null,payment_date:null,invoice_date:null,internal_reference:null,external_url:null,external_id:null,notes:null,links:[],attachments:[],zoom_level:null,longitude:null,latitude:null,errors:{}}}function i(t){var e=t.getFullYear(),a=t.getMonth();++a<10&&(a="0"+a);var n=t.getDate();n<10&&(n="0"+n);var s=t.getHours();s<10&&(s="0"+s);var i=t.getMinutes();i<10&&(i="0"+i);var o=t.getSeconds();o<10&&(o="0"+o);var r=-t.getTimezoneOffset(),c=Math.abs(Math.floor(r/60)),l=Math.abs(r)-60*c;c<10&&(c="0"+c),l<10&&(l="0"+l);var u="+";return r<0&&(u="-"),e+"-"+a+"-"+n+"T"+s+":"+i+":"+o+u+c+":"+l}a.d(e,{kQ:()=>n,f$:()=>s,u6:()=>i})},9899:(t,e,a)=>{"use strict";a.d(e,{Z:()=>h});var n=a(7760),s=a.n(n),i=a(629),o=a(8923),r=a(3465);const c={namespaced:!0,state:function(){return{transactionType:"any",groupTitle:"",transactions:[],customDateFields:{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1},defaultTransaction:(0,o.f$)(),defaultErrors:(0,o.kQ)()}},getters:{transactions:function(t){return t.transactions},groupTitle:function(t){return t.groupTitle},transactionType:function(t){return t.transactionType},accountToTransaction:function(t){return t.accountToTransaction},defaultTransaction:function(t){return t.defaultTransaction},sourceAllowedTypes:function(t){return t.sourceAllowedTypes},destinationAllowedTypes:function(t){return t.destinationAllowedTypes},allowedOpposingTypes:function(t){return t.allowedOpposingTypes},customDateFields:function(t){return t.customDateFields}},actions:{},mutations:{addTransaction:function(t){var e=r(t.defaultTransaction);e.errors=r(t.defaultErrors),t.transactions.push(e)},resetErrors:function(t,e){t.transactions[e.index].errors=r(t.defaultErrors)},resetTransactions:function(t){t.transactions=[]},setGroupTitle:function(t,e){t.groupTitle=e.groupTitle},setCustomDateFields:function(t,e){t.customDateFields=e},deleteTransaction:function(t,e){t.transactions.splice(e.index,1),t.transactions.length},setTransactionType:function(t,e){t.transactionType=e},setAllowedOpposingTypes:function(t,e){t.allowedOpposingTypes=e},setAccountToTransaction:function(t,e){t.accountToTransaction=e},updateField:function(t,e){t.transactions[e.index][e.field]=e.value},setTransactionError:function(t,e){t.transactions[e.index].errors[e.field]=e.errors},setDestinationAllowedTypes:function(t,e){t.destinationAllowedTypes=e},setSourceAllowedTypes:function(t,e){t.sourceAllowedTypes=e}}};const l={namespaced:!0,state:function(){return{}},getters:{},actions:{},mutations:{}};const u={namespaced:!0,state:function(){return{viewRange:"default",start:null,end:null,defaultStart:null,defaultEnd:null}},getters:{start:function(t){return t.start},end:function(t){return t.end},defaultStart:function(t){return t.defaultStart},defaultEnd:function(t){return t.defaultEnd},viewRange:function(t){return t.viewRange}},actions:{initialiseStore:function(t){"default"===t.state.viewRange&&axios.get("./api/v1/preferences/viewRange").then((function(e){var a=e.data.data.attributes.data;t.commit("setViewRange",a),t.dispatch("setDatesFromViewRange")})).catch((function(e){t.commit("setViewRange","1M"),t.dispatch("setDatesFromViewRange")}))},setDatesFromViewRange:function(t){if(localStorage.viewRangeStart&&t.commit("setStart",new Date(localStorage.viewRangeStart)),localStorage.viewRangeEnd&&t.commit("setEnd",new Date(localStorage.viewRangeEnd)),localStorage.viewRangeDefaultStart&&t.commit("setDefaultStart",new Date(localStorage.viewRangeDefaultStart)),localStorage.viewRangeDefaultEnd&&t.commit("setDefaultEnd",new Date(localStorage.viewRangeDefaultEnd)),null===t.getters.end||null===t.getters.start){var e,a;switch(t.getters.viewRange){case"1D":e=new Date,a=new Date(e.getTime()),e.setHours(0,0,0,0),a.setHours(23,59,59,999);break;case"1W":e=new Date,a=new Date(e.getTime());var n=e.getDate()-e.getDay()+(0===e.getDay()?-6:1);e.setDate(n),e.setHours(0,0,0,0);var s=a.getDate()-(a.getDay()-1)+6;a.setDate(s),a.setHours(23,59,59,999);break;case"1M":e=new Date,(e=new Date(e.getFullYear(),e.getMonth(),1)).setHours(0,0,0,0),(a=new Date(e.getFullYear(),e.getMonth()+1,0)).setHours(23,59,59,999);break;case"3M":e=new Date,a=new Date;var i=Math.floor((e.getMonth()+3)/3)-1;(e=new Date(e.getFullYear(),[0,3,6,9][i],1)).setHours(0,0,0,0),a=new Date(a.getFullYear(),[2,5,8,11][i],1),(a=new Date(a.getFullYear(),a.getMonth()+1,0)).setHours(23,59,59,999);break;case"6M":e=new Date,a=new Date;var o=e.getMonth()<=5?0:1;(e=new Date(e.getFullYear(),[0,6][o],1)).setHours(0,0,0,0),a=new Date(a.getFullYear(),[5,11][o],1),(a=new Date(a.getFullYear(),a.getMonth()+1,0)).setHours(23,59,59,999);break;case"1Y":e=new Date,a=new Date,e=new Date(e.getFullYear(),0,1),a=new Date(a.getFullYear(),11,31),e.setHours(0,0,0,0),a.setHours(23,59,59,999)}t.commit("setStart",e),t.commit("setEnd",a),t.commit("setDefaultStart",e),t.commit("setDefaultEnd",a)}}},mutations:{setStart:function(t,e){t.start=e,window.localStorage.setItem("viewRangeStart",e)},setEnd:function(t,e){t.end=e,window.localStorage.setItem("viewRangeEnd",e)},setDefaultStart:function(t,e){t.defaultStart=e,window.localStorage.setItem("viewRangeDefaultStart",e)},setDefaultEnd:function(t,e){t.defaultEnd=e,window.localStorage.setItem("viewRangeDefaultEnd",e)},setViewRange:function(t,e){t.viewRange=e}}};var d=function(){return{listPageSize:33}},_={initialiseStore:function(t){localStorage.listPageSize&&(d.listPageSize=localStorage.listPageSize,t.commit("setListPageSize",{length:localStorage.listPageSize})),localStorage.listPageSize||axios.get("./api/v1/preferences/listPageSize").then((function(e){t.commit("setListPageSize",{length:parseInt(e.data.data.attributes.data)})}))}};const p={namespaced:!0,state:d,getters:{listPageSize:function(t){return t.listPageSize}},actions:_,mutations:{setListPageSize:function(t,e){var a=parseInt(e.length);0!==a&&(t.listPageSize=a)}}};const g={namespaced:!0,state:function(){return{orderMode:!1,activeFilter:1}},getters:{orderMode:function(t){return t.orderMode},activeFilter:function(t){return t.activeFilter}},actions:{},mutations:{setOrderMode:function(t,e){t.orderMode=e},setActiveFilter:function(t,e){t.activeFilter=e}}};s().use(i.ZP);const h=new i.ZP.Store({namespaced:!0,modules:{root:p,transactions:{namespaced:!0,modules:{create:c,edit:l}},accounts:{namespaced:!0,modules:{index:g}},dashboard:{namespaced:!0,modules:{index:u}}},strict:false,plugins:[],state:{currencyPreference:{},locale:"en-US",listPageSize:50},mutations:{setCurrencyPreference:function(t,e){t.currencyPreference=e.payload},initialiseStore:function(t){if(localStorage.locale)t.locale=localStorage.locale;else{var e=document.head.querySelector('meta[name="locale"]');e&&(t.locale=e.content,localStorage.locale=e.content)}}},getters:{currencyCode:function(t){return t.currencyPreference.code},currencyPreference:function(t){return t.currencyPreference},currencyId:function(t){return t.currencyPreference.id},locale:function(t){return t.locale}},actions:{updateCurrencyPreference:function(t){localStorage.currencyPreference?t.commit("setCurrencyPreference",{payload:JSON.parse(localStorage.currencyPreference)}):axios.get("./api/v1/currencies/default").then((function(e){var a={id:parseInt(e.data.data.id),name:e.data.data.attributes.name,symbol:e.data.data.attributes.symbol,code:e.data.data.attributes.code,decimal_places:parseInt(e.data.data.attributes.decimal_places)};localStorage.currencyPreference=JSON.stringify(a),t.commit("setCurrencyPreference",{payload:a})})).catch((function(e){console.error(e),t.commit("setCurrencyPreference",{payload:{id:1,name:"Euro",symbol:"€",code:"EUR",decimal_places:2}})}))}}})},157:(t,e,a)=>{t.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)}})},4319:(t,e,a)=>{"use strict";var n=a(9899),s=a(629),i=a(3324),o=a(7661),r=a(5524),c=a(3602),l=a(8923);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function _(t){for(var e=1;e0&&(t.group_title=this.groupTitle),this.transactions)this.transactions.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&t.transactions.push(this.convertSplit(e,this.transactions[e]));return t.transactions.length>1&&""!==t.transactions[0].description&&(t.group_title=t.transactions[0].description),t.transactions.length>1&&(t=this.synchronizeAccounts(t)),t},synchronizeAccounts:function(t){for(var e in t.transactions)t.transactions.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&("Transfer"===this.transactionType&&(t.transactions[e].source_name=null,t.transactions[e].destination_name=null,e>0&&(t.transactions[e].source_id=t.transactions[0].source_id,t.transactions[e].destination_id=t.transactions[0].destination_id)),"Deposit"===this.transactionType&&(t.transactions[e].destination_name=null,e>0&&(t.transactions[e].destination_id=t.transactions[0].destination_id)),"Withdrawal"===this.transactionType&&(t.transactions[e].source_name=null,e>0&&(t.transactions[e].source_id=t.transactions[0].source_id)));return t},switchAccounts:function(t){var e=this.transactions[t].source_account_id,a=this.transactions[t].source_account_name,n=this.transactions[t].source_account_type,s=this.transactions[t].destination_account_id,i=this.transactions[t].destination_account_name,o=this.transactions[t].destination_account_type;this.updateField({index:0,field:"source_account_id",value:s}),this.updateField({index:0,field:"source_account_name",value:i}),this.updateField({index:0,field:"source_account_type",value:o}),this.updateField({index:0,field:"destination_account_id",value:e}),this.updateField({index:0,field:"destination_account_name",value:a}),this.updateField({index:0,field:"destination_account_type",value:n}),this.calculateTransactionType(0)},convertSplit:function(t,e){var a,n,s,i,o="invalid";if(this.time instanceof Date&&!isNaN(this.time)&&this.date instanceof Date&&!isNaN(this.date)){var r=new Date(this.date);r.setHours(this.time.getHours()),r.setMinutes(this.time.getMinutes()),r.setSeconds(this.time.getSeconds()),o=(0,l.u6)(r)}var c,d,_,p={description:e.description,date:o,type:this.transactionType,source_id:null!==(a=e.source_account_id)&&void 0!==a?a:null,source_name:null!==(n=e.source_account_name)&&void 0!==n?n:null,destination_id:null!==(s=e.destination_account_id)&&void 0!==s?s:null,destination_name:null!==(i=e.destination_account_name)&&void 0!==i?i:null,currency_id:e.currency_id,amount:e.amount,budget_id:e.budget_id,category_name:e.category,interest_date:e.interest_date,book_date:e.book_date,process_date:e.process_date,due_date:e.due_date,payment_date:e.payment_date,invoice_date:e.invoice_date,internal_reference:e.internal_reference,external_url:e.external_url,notes:e.notes,external_id:e.external_id,zoom_level:e.zoom_level,longitude:e.longitude,latitude:e.latitude,tags:[],order:0,reconciled:!1};if(0!==e.tags.length)for(var g in e.tags)if(e.tags.hasOwnProperty(g)&&/^0$|^[1-9]\d*$/.test(g)&&g<=4294967294){var h=e.tags[g];"object"===u(h)&&null!==h&&p.tags.push(h.text),"string"==typeof h&&p.tags.push(h)}0!==e.piggy_bank_id&&(p.piggy_bank_id=e.piggy_bank_id),0!==e.bill_id&&(p.bill_id=e.bill_id),0!==e.foreign_currency_id&&""!==e.foreign_amount&&(p.foreign_currency_id=e.foreign_currency_id),""!==e.foreign_amount&&(p.foreign_amount=e.foreign_amount),c=this.transactionType?this.transactionType.toLowerCase():"any",d=this.transactions[0].source_account_type,_=this.transactions[0].destination_account_type,p.currency_id=e.source_account_currency_id,"any"===c&&["asset","Asset account","Loan","Debt","Mortgage"].includes(d)&&(c="withdrawal"),"any"===c&&["asset","Asset account","Loan","Debt","Mortgage"].includes(_)&&(c="deposit",p.currency_id=e.destination_account_currency_id),p.type=c;var m=[];for(var f in e.links)if(e.links.hasOwnProperty(f)&&/^0$|^[1-9]\d*$/.test(f)&&f<=4294967294){var v=e.links[f],y=v.link_type_id.split("-"),b="outward"===y[1]?0:parseInt(v.transaction_journal_id),k="inward"===y[1]?0:parseInt(v.transaction_journal_id),w={link_type_id:parseInt(y[0]),inward_id:b,outward_id:k};m.push(w)}return p.links=m,p},getAllowedOpposingTypes:function(){var t=this;axios.get("./api/v1/configuration/firefly.allowed_opposing_types").then((function(e){t.allowedOpposingTypes=e.data.data.value}))},getAccountToTransaction:function(){var t=this;axios.get("./api/v1/configuration/firefly.account_to_transaction").then((function(e){t.accountToTransaction=e.data.data.value}))},getCustomFields:function(){var t=this;axios.get("./api/v1/preferences/transaction_journal_optional_fields").then((function(e){t.customFields=e.data.data.attributes.data}))},setDestinationAllowedTypes:function(t){0!==t.length?this.destinationAllowedTypes=t:this.destinationAllowedTypes=this.defaultDestinationAllowedTypes},setSourceAllowedTypes:function(t){0!==t.length?this.sourceAllowedTypes=t:this.sourceAllowedTypes=this.defaultSourceAllowedTypes}})};const v=(0,a(1900).Z)(f,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("alert",{attrs:{message:t.errorMessage,type:"danger"}}),t._v(" "),a("alert",{attrs:{message:t.successMessage,type:"success"}}),t._v(" "),a("SplitPills",{attrs:{transactions:t.transactions}}),t._v(" "),a("div",{staticClass:"tab-content"},t._l(this.transactions,(function(e,n){return a("SplitForm",{key:n,attrs:{"allowed-opposing-types":t.allowedOpposingTypes,count:t.transactions.length,"custom-fields":t.customFields,date:t.date,"destination-allowed-types":t.destinationAllowedTypes,index:n,"source-allowed-types":t.sourceAllowedTypes,"submitted-transaction":t.submittedTransaction,time:t.time,transaction:e,"transaction-type":t.transactionType},on:{"uploaded-attachments":function(e){return t.uploadedAttachment(e)},"set-marker-location":function(e){return t.storeLocation(e)},"set-account":function(e){return t.storeAccountValue(e)},"switch-accounts":function(e){return t.switchAccounts(e)},"set-date":function(e){return t.storeDate(e)},"set-time":function(e){return t.storeTime(e)},"set-field":function(e){return t.storeField(e)},"remove-transaction":function(e){return t.removeTransaction(e)},"set-dest-types":function(e){return t.setDestinationAllowedTypes(e)},"set-src-types":function(e){return t.setSourceAllowedTypes(e)}}})})),1),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[t.transactions.length>1?a("div",{staticClass:"card"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("TransactionGroupTitle",{attrs:{errors:this.groupTitleErrors},on:{"set-group-title":function(e){return t.storeGroupTitle(e)}},model:{value:this.groupTitle,callback:function(e){t.$set(this,"groupTitle",e)},expression:"this.groupTitle"}})],1)])])]):t._e()]),t._v(" "),a("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("div",{staticClass:"card card-primary"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n  \n ")]),t._v(" "),a("button",{staticClass:"btn btn-outline-primary btn-block",on:{click:t.addTransaction}},[a("i",{staticClass:"far fa-clone"}),t._v(" "+t._s(t.$t("firefly.add_another_split"))+"\n ")])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n  \n ")]),t._v(" "),a("button",{staticClass:"btn btn-success btn-block",attrs:{disabled:!t.enableSubmit},on:{click:t.submitTransaction}},[t.enableSubmit?a("span",[a("i",{staticClass:"far fa-save"}),t._v(" "+t._s(t.$t("firefly.store_transaction")))]):t._e(),t._v(" "),t.enableSubmit?t._e():a("span",[a("i",{staticClass:"fas fa-spinner fa-spin"})])])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[t._v("\n  \n ")]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"form-check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.createAnother,expression:"createAnother"}],staticClass:"form-check-input",attrs:{id:"createAnother",type:"checkbox"},domProps:{checked:Array.isArray(t.createAnother)?t._i(t.createAnother,null)>-1:t.createAnother},on:{change:function(e){var a=t.createAnother,n=e.target,s=!!n.checked;if(Array.isArray(a)){var i=t._i(a,null);n.checked?i<0&&(t.createAnother=a.concat([null])):i>-1&&(t.createAnother=a.slice(0,i).concat(a.slice(i+1)))}else t.createAnother=s}}}),t._v(" "),a("label",{staticClass:"form-check-label",attrs:{for:"createAnother"}},[a("span",{staticClass:"small"},[t._v(t._s(t.$t("firefly.create_another")))])])]),t._v(" "),a("div",{staticClass:"form-check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.resetFormAfter,expression:"resetFormAfter"}],staticClass:"form-check-input",attrs:{id:"resetFormAfter",disabled:!t.createAnother,type:"checkbox"},domProps:{checked:Array.isArray(t.resetFormAfter)?t._i(t.resetFormAfter,null)>-1:t.resetFormAfter},on:{change:function(e){var a=t.resetFormAfter,n=e.target,s=!!n.checked;if(Array.isArray(a)){var i=t._i(a,null);n.checked?i<0&&(t.resetFormAfter=a.concat([null])):i>-1&&(t.resetFormAfter=a.slice(0,i).concat(a.slice(i+1)))}else t.resetFormAfter=s}}}),t._v(" "),a("label",{staticClass:"form-check-label",attrs:{for:"resetFormAfter"}},[a("span",{staticClass:"small"},[t._v(t._s(t.$t("firefly.reset_after")))])])])])])])])])])],1)}),[],!1,null,"6df98ad4",null).exports;var y=a(7760),b=a.n(y);a(232),b().config.productionTip=!1;var k=a(157),w={};new(b())({i18n:k,store:n.Z,render:function(t){return t(v,{props:w})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}).$mount("#transactions_create")},6665:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var n=a(4015),s=a.n(n),i=a(3645),o=a.n(i)()(s());o.push([t.id,".vue-tags-input{max-width:100%!important;display:block}.ti-input,.vue-tags-input{width:100%;border-radius:.25rem}.ti-input{max-width:100%}.ti-new-tag-input{font-size:1rem}","",{version:3,sources:["webpack://./src/components/transactions/TransactionTags.vue"],names:[],mappings:"AA2HA,gBAEA,wBAAA,CACA,aAEA,CAEA,0BANA,UAAA,CAGA,oBAOA,CAJA,UAEA,cAEA,CAEA,kBACA,cACA",sourcesContent:['\x3c!--\n - TransactionTags.vue\n - Copyright (c) 2021 james@firefly-iii.org\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see .\n --\x3e\n\n\n\n