text: "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[439],{3439:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});const i={name:"nzActivityTaxonCreated",props:{activity:{type:Object,required:!0}}};var a=n(1900);const o=(0,a.Z)(i,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"activity-log-item"},[t._v("\n  "+t._s(t._f("formatDateTime")(t.activity.created_at))+" "+t._s(t.activity.causer.full_name)+" "+t._s(t.trans("activityLog.added_record"))+" "+t._s(t.activity.subject_id)+"\n")])}),[],!1,null,null,null).exports;function c(t){return c="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},c(t)}const r={name:"nzActivityTaxonUpdated",props:{activity:{type:Object,required:!0}},computed:{formatedChanges:function(){var t=this,e=this.activity.properties.old;return Object.keys(e).map((function(n){var i=t.oldValue(e,n);return"".concat(t.trans("labels.taxa."+n))+(i?" (".concat(i,")"):"")})).join(", ")}},methods:{oldValue:function(t,e){var n=t[e];return null==n?null:"object"===c(n)?n.label?this.trans(n.label):null:n}}};const s=(0,a.Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"activity-log-item"},[t._v("\n  "+t._s(t._f("formatDateTime")(t.activity.created_at))+" "+t._s(t.activity.causer.full_name)+" "+t._s(t.trans("activityLog.changed"))+" "+t._s(t.formatedChanges)+": "+t._s(t.activity.properties.reason)+"\n")])}),[],!1,null,null,null).exports;var l;function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={name:"nzTaxonActivityLog",components:(l={},u(l,o.name,o),u(l,s.name,s),l),props:{activities:{type:Array,default:function(){return[]}}},methods:{chooseActivityComponent:function(t){return"nz-activity-taxon-".concat(t.description.replace("_","-"))}}};const f=(0,a.Z)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"activity-log"},t._l(t.activities,(function(e){return n(t.chooseActivityComponent(e),{key:e.id,tag:"component",attrs:{activity:e}})})),1)}),[],!1,null,null,null).exports}}]);
  //# sourceMappingURL=c4adb256da596e38.js.map