PageSourceSearch

https://portal.ravapi.eu/js/7750.0d81e9dd.js

js ravapi.eu collected 2026-10-09 00:22:20 UTC 34,587 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkravapi_system"]=self["webpackChunkravapi_system"]||[]).push([[7750],{40706:function(t,e,i){i.d(e,{Z:function(){return v}});var s=i(97345),a=i(60092),n=i(45952),r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(a.Z,{attrs:{"max-width":"300","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function({on:i,attrs:s}){return[e(n.Z,t._g(t._b({staticStyle:{"border-radius":"0 !important"},attrs:{outlined:!t.disableOutline,value:t.datesInputText,"hide-details":"auto",dense:!t.disableDense,readonly:"",label:t.customLabel?t.customLabel:t.$t(t.$LF.SelectDate),"append-icon":t.clearable?"close":""},on:{keydown:function(t){t.stopPropagation()},keyup:function(t){t.stopPropagation()},"click:append":function(e){return t.onDatesClear()}}},"v-text-field",s,!1),i))]}}]),model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[e(s.Z,{attrs:{width:"300","no-title":"","active-picker":"DATE",range:"",color:"primary",locale:t.$i18n.locale,"first-day-of-week":"1",max:t.limitToNow?t.dateNow:""},on:{keydown:function(t){t.stopPropagation()},keyup:function(t){t.stopPropagation()},change:t.onDateChange},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)},l=[],o=i(56318),d=i(70655),u=i(28204),c=i(30381),h=i.n(c);let f=class extends u.w3{constructor(...t){super(...t),(0,o.Z)(this,"clearable",void 0),(0,o.Z)(this,"limitToNow",void 0),(0,o.Z)(this,"initialDate",void 0),(0,o.Z)(this,"dateRange",void 0),(0,o.Z)(this,"customLabel",void 0),(0,o.Z)(this,"disableOutline",void 0),(0,o.Z)(this,"disableDense",void 0),(0,o.Z)(this,"isOpen",!1)}get dateNow(){return h()().format("YYYY-MM-DD")}get datesInputText(){if(2===this.dateRange.length){const[t,e]=this.dateRange,i=h()(t),s=h()(e);return i.isSame(s,"day")?this.dateRange[0]:`${this.dateRange[0]} - ${this.dateRange[1]}`}return`${this.dateRange[0]??""}`}onInitialDateChange(){if(this.initialDate.length>0){const t=h()(this.initialDate).isValid();this.dateRange=t?[this.initialDate,this.initialDate]:[]}}onDateChange(t){if(2===t.length){const[e,i]=t,s=h()(e),a=h()(i);s.isAfter(a,"day")&&(this.dateRange=[i,e]),this.isOpen=!1}1===t.length&&(this.dateRange=[t[0],t[0]],this.isOpen=!1)}onDatesClear(){this.clearable&&(this.dateRange=[])}};(0,d.gn)([(0,u.fI)({type:Boolean,default:!1})],f.prototype,"clearable",void 0),(0,d.gn)([(0,u.fI)({type:Boolean,default:!1})],f.prototype,"limitToNow",void 0),(0,d.gn)([(0,u.fI)({type:String,default:"",required:!1})],f.prototype,"initialDate",void 0),(0,d.gn)([(0,u.Ey)({type:Array,default:()=>[],required:!0})],f.prototype,"dateRange",void 0),(0,d.gn)([(0,u.fI)({type:String,required:!1,default:""})],f.prototype,"customLabel",void 0),(0,d.gn)([(0,u.fI)({type:Boolean,required:!1,default:!1})],f.prototype,"disableOutline",void 0),(0,d.gn)([(0,u.fI)({type:Boolean,required:!1,default:!1})],f.prototype,"disableDense",void 0),(0,d.gn)([(0,u.RL)("initialDate",{immediate:!0})],f.prototype,"onInitialDateChange",null),f=(0,d.gn)([u.wA],f);var p=f,y=p,m=i(1001),g=(0,m.Z)(y,r,l,!1,null,null,null),v=g.exports},11450:function(t,e,i){i.d(e,{Z:function(){return v}});var s=i(97345),a=i(60092),n=i(45952),r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(a.Z,{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:i}){return[e(n.Z,t._g({attrs:{"hide-details":"auto",dense:t.textFieldDense,rules:t.rules,value:t.datesRangeText,label:`${t.$t(t.$LF.DatesRange)} *`,readonly:""}},i))]}}]),model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e(s.Z,{attrs:{color:"primary",locale:"pl-pl",range:"",scrollable:"","no-title":"","first-day-of-week":"1",max:(new Date).toISOString().substr(0,10)},model:{value:t.datesRange,callback:function(e){t.datesRange=e},expression:"datesRange"}})],1)},l=[],o=i(56318),d=i(70655),u=i(28204),c=i(30381),h=i.n(c);let f=class extends u.w3{constructor(...t){super(...t),(0,o.Z)(this,"rules",void 0),(0,o.Z)(this,"defaultDate",void 0),(0,o.Z)(this,"textFieldDense",void 0),(0,o.Z)(this,"dateStart",void 0),(0,o.Z)(this,"dateEnd",void 0),(0,o.Z)(this,"show",!1),(0,o.Z)(this,"datesRange",this.defaultDate??[])}onDefaultDatePopulated(){this.dateStart=this.defaultDate[0],this.dateEnd=this.defaultDate?.length>1?this.defaultDate[1]:this.defaultDate[0]}onDateStartChange(){this.dateStart||(this.datesRange=this.defaultDate)}onDateEndChange(){this.dateEnd||this.datesRange.pop()}onDatesRangeChange(){this.sortedDatesRange}get sortedDatesRange(){const[t,e]=this.datesRange,i=h()(t);let s=null,a=[t,t];return e&&(a=[t,e],s=h()(e),s.isBefore(i,"day")&&(a=[e,t])),this.onDatesRangeChangeFinished(a),a}get datesRangeText(){let t=this.sortedDatesRange[0];return this.sortedDatesRange.length>1&&this.sortedDatesRange[0]!==this.sortedDatesRange[1]&&(t=`${this.sortedDatesRange[0]} - ${this.sortedDatesRange[1]}`),t}onDatesRangeChangeFinished(t){this.dateStart=t[0],this.dateEnd=t?.length>1?t[1]:t[0]}};(0,d.gn)([(0,u.fI)({default:()=>[],type:Array})],f.prototype,"rules",void 0),(0,d.gn)([(0,u.fI)({default:()=>[],type:Array})],f.prototype,"defaultDate",void 0),(0,d.gn)([(0,u.fI)({type:Boolean,default:!1})],f.prototype,"textFieldDense",void 0),(0,d.gn)([(0,u.vZ)("start",{type:String,required:!0,default:""})],f.prototype,"dateStart",void 0),(0,d.gn)([(0,u.vZ)("end",{type:String,required:!0,default:""})],f.prototype,"dateEnd",void 0),(0,d.gn)([(0,u.RL)("defaultDate")],f.prototype,"onDefaultDatePopulated",null),(0,d.gn)([(0,u.RL)("dateStart")],f.prototype,"onDateStartChange",null),(0,d.gn)([(0,u.RL)("dateEnd")],f.prototype,"onDateEndChange",null),(0,d.gn)([(0,u.RL)("datesRange")],f.prototype,"onDatesRangeChange",null),f=(0,d.gn)([u.wA],f);var p=f,y=p,m=i(1001),g=(0,m.Z)(y,r,l,!1,null,null,null),v=g.exports}
1,25137:function(t,e,i){i.d(e,{Z:function(){return m}});var s=i(1387),a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(s.Z,{attrs:{dense:"",label:t.label,"hide-no-data":"","hide-details":"auto",items:t.items,clearable:t.clearable,loading:t.isUserAutocompleteLoading,"item-text":"fullName","item-value":"id",multiple:"",chips:t.chips},on:{"click:clear":t.onClear},model:{value:t.userIds,callback:function(e){t.userIds=e},expression:"userIds"}})},n=[],r=i(56318),l=i(70655),o=i(28204),d=i(27527),u=i(96486);let c=class extends o.w3{constructor(...t){super(...t),(0,r.Z)(this,"label",void 0),(0,r.Z)(this,"clearable",void 0),(0,r.Z)(this,"chips",void 0),(0,r.Z)(this,"userIds",void 0),(0,r.Z)(this,"items",[]),(0,r.Z)(this,"isUserAutocompleteLoading",!1),(0,r.Z)(this,"performRequestDebounced",(0,u.debounce)(this.performRequest,300))}mounted(){this.performRequestDebounced()}onClear(){this.userIds=[]}performRequest(){this.isUserAutocompleteLoading=!0,(new d.mpI).getUsersForAutocomplete().then((({success:t,result:e,errors:i})=>{t&&e?this.items=e:this.$notifier.error(i)})).catch((()=>
1{this.$notifier.error([this.$t(this.$LF.SomethingWentWrong)])})).finally((()=>{this.isUserAutocompleteLoading=!1}))}};(0,l.gn)([(0,o.fI)({type:String,default:""})],c.prototype,"label",void 0),(0,l.gn)([(0,o.fI)({type:Boolean,default:!0})],c.prototype,"clearable",void 0),(0,l.gn)([(0,o.fI)({type:Boolean,default:!1})],c.prototype,"chips",void 0),(0,l.gn)([(0,o.Ey)()],c.prototype,"userIds",void 0),c=(0,l.gn)([o.wA],c);var h=c,f=h,p=i(1001),y=(0,p.Z)(f,a,n,!1,null,null,null),m=y.exports},21240:function(t,e,i){i.d(e,{Z:function(){return m}});var s=i(73385),a=i(75223),n=i(5057),r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(s.Z,{staticClass:"ma-1"},[e(a.EB,{staticClass:"subtitle-2"},[t.modificationArray[0]?t.modificationArray[1]?[t._v(" "+t._s(t.$t(t.$LF.Modification))+" ")]:[t._v(" "+t._s(t.$t(t.$LF.Deletion))+" ")]:[t._v(" "+t._s(t.$t(t.$LF.Creation))+" ")]],2),e(a.ZB,{staticClass:"d-flex flex-column flex-md-row"},[t.modificationArray[0]?e("div",{staticClass:"mx-2"},t._l(Object.keys(t.modificationArray[0]),(function(i){return e("div",{key:i},[e("b",[t._v(t._s(t.$t(i)||i)+": ")]),Array.isArray(t.modificationArray[0][i])?[t.isObjectList(t.modificationArray[0][i])?e("ul",[t._l(t.modificationArray[0][i],(function(s,a){return t._l(s?Object.keys(s):[],(function(n){return e("li",{key:a+"-"+n},[e("b",[t._v(t._s(t.$t(n)||n)+":")]),e("span",{class:{"property-previous":t.fieldChanged(t.otherObject(t.modificationArray[1]&&t.modificationArray[1][i],a),n,s[n])}},[t._v(" "+t._s(t.$t(t.fieldValue(s[n]))||t.fieldValue(s[n]))+" ")])])}))}))],2):e("ul",t._l(t.modificationArray[0][i],(function(s){return e("li",{key:s,class:{"property-previous":!t.modificationArray[1]||!t.modificationArray[1][i]||-1===t.modificationArray[1][i].indexOf(s)}},[t._v(" "+t._s(s)+" ")])})),0)]:e("span",{class:{"property-previous":!t.modificationArray[1]||t.modificationArray[0][i]!=t.modificationArray[1][i]}},[t._v(" "+t._s(t.$t(t.modificationArray[0][i])||t.modificationArray[0][i])+" ")])],2)})),0):t._e(),t.modificationArray[0]&&t.modificationArray[1]?e(n.Z,[t._v(" "+t._s(t.$vuetify.breakpoint.mobile?"mdi-arrow-down":"mdi-arrow-right")+" ")]):t._e(),t.modificationArray[1]?e("div",{staticClass:"mx-2"},t._l(Object.keys(t.modificationArray[1]),(function(i){return e("div",{key:i},[e("b",[t._v(t._s(t.$t(i)||i)+": ")]),Array.isArray(t.modificationArray[1][i])?[t.isObjectList(t.modificationArray[1][i])?e("ul",[t._l(t.modificationArray[1][i],(function(s,a){return t._l(s?Object.keys(s):[],(function(n){return e("li",{key:a+"-"+n},[e("b",[t._v(t._s(t.$t(n)||n)+":")]),e("span",{class:{"property-current":t.fieldChanged(t.otherObject(t.modificationArray[0]&&t.modificationArray[0][i],a),n,s[n])}},[t._v(" "+t._s(t.$t(t.fieldValue(s[n]))||t.fieldValue(s[n]))+" ")])])}))}))],2):e("ul",t._l(t.modificationArray[1][i],(function(s){return e("li",{key:s,class:{"property-current":!t.modificationArray[0]||!t.modificationArray[0][i]||-1===t.modificationArray[0][i].indexOf(s)}},[t._v(" "+t._s(s)+" ")])})),0)]:e("span",{class:{"property-current":!t.modificationArray[0]||t.modificationArray[0][i]!=t.modificationArray[1][i]}},[t._v(" "+t._s(t.$t(t.modificationArray[1][i])||t.modificationArray[1][i])+" ")])],2)})),0):t._e()],1)],1)},l=[],o=i(56318),d=i(70655),u=i(28204);let c=class extends u.w3{constructor(...t){super(...t),(0,o.Z)(this,"modificationArray",void 0)}isObjectList(t){return Array.isArray(t)&&t.some((t=>null!==t&&"object"===typeof t&&!Array.isArray(t)))}fieldValue(t){return Array.isArray(t)?t.join(", "):null===t||void 0===t?"":String(t)}otherObject(t,e){return Array.isArray(t)?t[e]:void 0}fieldChanged(t,e,i){const s=t?t[e]:void 0;return this.fieldValue(s)!==this.fieldValue(i)}};(0,d.gn)([(0,u.fI)({required:!0})],c.prototype,"modificationArray",void 0),c=(0,d.gn)([u.wA],c);var h=c,f=h,p=i(1001),y=(0,p.Z)(f,r,l,!1,null,"3cf04d7a",null),m=y.exports},53503:function(t,e,i){i.r(e),i.d(e,{default:function(){return ut}});var s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("page-header",{attrs:{title:t.$t(t.$LF.Audit)}}),e("audit-list-all",{ref:"auditList",attrs:{"show-entity":"","show-navigation-to-entity":""}})],1)},a=[],n=i(56318),r=i(70655),l=i(28204),o=i(42263),d=i(197),u=i(18714),c=i(46487),h=i(91911),f=i(61133),p=i(5057),y=i(53823),m=i(82927),g=i(8178),v=i(55234),_=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("audit-list-filters-section",{attrs:{"storage-key":t.filterStorageKey},on:{filter:t.onFilter}}),e("div",{staticClass:"mt-3"},[e(d.Z,{staticClass:"mb-2",attrs:{items:t.translationsDictionary,"item-value":"key","item-text":"display",outlined:"","prepend-inner-icon":"mdi-magnify",placeholder:t.$t(t.$LF.Search),"hide-details":"auto"}
1,model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),e(g.Z,{attrs:{types:{skeleton:"list-item@5"},type:"skeleton",loading:t.initialLoading,transition:"fade-transition"}},[t.history&&t.history.length>0?e("div",[e(f.Z,{attrs:{multiple:""},model:{value:t.openedPanels,callback:function(e){t.openedPanels=e},expression:"openedPanels"}},t._l(t.history,(function(i,s){return e(u.Z,{key:s},[e(h.Z,[e("div",{staticClass:"d-flex flex-column flex-sm-row"},[e("div",{staticClass:"my-1 my-sm-0 d-flex align-center"},[e(p.Z,{staticClass:"mr-sm-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-clock")]),t._v(" "+t._s(i.date.fromNow())+" ")],1),e("div",{staticClass:"my-1 my-sm-0 d-flex align-center"},[e("span",{staticClass:"audit-changed-by-badge mx-1",class:t.getChangedByBadgeClass(i.changedBy)},[e(p.Z,{attrs:{"x-small":""}},[t._v(t._s(t.getChangedByIcon(i.changedBy)))]),t._v(" "+t._s(t.getChangedByLabel(i.changedBy))+" ")],1),t._v(" "+t._s(i.changedBy!==t.AuditEntryChangedByType.System?i.user:"")+" ")]),t.showEntity?e("div",{staticClass:"my-1 my-sm-0 d-flex align-center"},[e(p.Z,{staticClass:"mx-sm-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-cube-outline")]),t._v(" "+t._s(t.getEntityLabel(i.entity))+" ")],1):t._e(),e("div",{staticClass:"my-1 my-sm-0 d-flex align-center"},[1===i.type?[e(p.Z,{staticClass:"mx-sm-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-plus")]),t._v(" "+t._s(t.$t(t.$LF.Creation))+" ")]:2===i.type?[e(p.Z,{staticClass:"mx-sm-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-pencil")]),t._v(" "+t._s(t.$t(t.$LF.Modification))+" ")]:3===i.type?[e(p.Z,{staticClass:"mx-sm-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-close")]),t._v(" "+t._s(t.$t(t.$LF.Deletion))+" ")]:4===i.type?[e(p.Z,{staticClass:"mx-sm-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-backup-restore")]),t._v(" "+t._s(t.$t(t.$LF.Recovery))+" ")]:t._e()],2),e(v.Z),e("div",{staticClass:"my-1 my-sm-0 d-flex align-center"},[e(p.Z,{staticClass:"mr-1",staticStyle:{flex:"0"},attrs:{small:""}},[t._v("mdi-calendar")]),t._v(" "+t._s(i.date.format("YYYY-MM-DD HH:mm:ss"))+" ")],1)],1)]),e(c.Z,[1===i.type?t._l(Object.keys(i.diff),(function(s,a){return e("div",{key:a},[e("b",[t._v(t._s(t.$t(s)||s)+":")]),i.diff[s]?["a"===i.diff[s]["_t"]?[t._l(Object.keys(i.diff[s]).filter((t=>"_t"!==t)),(function(a){return[e("div",{key:a,staticClass:"d-block"},[e("span",{staticClass:"mx-2",class:a.startsWith("_")?"property-previous":"property-current"},[t._v(t._s(t.$t(i.diff[s][a][0])||i.diff[s][a][0]))])])]}))]:"vi_a"===i.diff[s]["_t"]?[e("div",{staticClass:"ml-5"},t._l(Object.keys(i.diff[s]).filter((t=>"_t"!==t)),(function(t){return e("div",{key:t},[e("audit-operation-card",{attrs:{"modification-array":i.diff[s][t]}})],1)})),0)]:[i.diff[s][0]?[Array.isArray(i.diff[s][0])?[e("ul",t._l(Object.keys(i.diff[s][0]),(function(a){return e("li",{key:a},[e("span",{staticClass:"mx-2 property-current"},[t._v(t._s(t.$t(i.diff[s][0][a])||i.diff[s][0][a]))])])})),0)]:["string"==typeof i.diff[s][0]?e("span",{staticClass:"property-current mx-2"},[t._v(" "+t._s(t.$t(i.diff[s][0])||i.diff[s][0])+" ")]):"number"==typeof i.diff[s][0]?e("span",{staticClass:"property-current mx-2"},[t._v(" "+t._s(i.diff[s][0])+" ")]):t._l(Object.keys(i.diff[s][0]),(function(a,n){return e("div",{key:n,staticClass:"ml-4"},[e("b",[t._v(t._s(t.$t(a)||a)+":")]),e("span",{staticClass:"property-current mx-2"},[t._v(t._s(t.$t(i.diff[s][0][a])||i.diff[s][0][a]))])])}))]]:t._e()]]:t._e()],2)})):t._l(Object.keys(i.diff),(function(s,a){return e("div",{key:a,staticClass:"d-flex flex-column"},[e("b",{attrs:{id:"test"}},[t._v(t._s(t.$t(s)||s)+":")]),i.diff[s]?["a"===i.diff[s]["_t"]?[e("ul",t._l(Object.keys(i.diff[s]).filter((t=>"_t"!==t)),(function(a){return e("li",{key:a},[e("span",{staticClass:"mx-2",class:a.startsWith("_")?"property-previous":"property-current"},[t._v(t._s(t.$t(i.diff[s][a][0])||i.diff[s][a][0]))])])})),0)]:"vi_a"===i.diff[s]["_t"]?[e("div",{staticClass:"ml-5"},t._l(Object.keys(i.diff[s]).filter((t=>"_t"!==t)),(function(t){return e("div",{key:t},[e("audit-operation-card",{attrs:{"modification-array":i.diff[s][t]}})],1)})),0)]:[Array.isArray(i.diff[s])?[i.diff[s][0]?e("div",{staticClass:"mx-2",class:{"d-inline-block":"string"!=typeof i.diff[s][0]||!i.diff[s][0].includes("\n")}},[e("span",{staticClass:"property-previous"},[t._v(t._s(t.parseDateDiffKey(t.$t(i.diff[s][0]))||t.parseDateDiffKey(i.diff[s][0])))])]):t._e(),i.diff[s][1]?e("div",{staticClass:"mx-2",class:{"d-inline-block":"string"!=typeof i.diff[s][1]||!i.diff[s][1].includes("\n")}},[e("span",{staticClass:"property-current"},[t._v(t._s(t.parseDateDiffKey(t.$t(i.diff[s][1]))||t.parseDateDiffKey(i.diff[s][1])))]),"string"!==typeof i.diff[s][1]?t._l(Object.keys(i.diff[s][1]),(function(a,n){return e("div",{key:n,staticClass:"ml-4"},[e("div",{staticClass:"d-flex"},[e("b",{staticClass:"mr-2"},[t._v(t._s(t.$t(a)||a)+":")]),e("span",{staticClass:"property-current"},[t._v(t._s(t.$t(i.diff[s][1][a])||i.diff[s][1][a]))])])])})):t._e()],2):t._e()]:t._l(Object.keys(i.diff[s]),(function(a,n){return e("div",{key:n,staticClass:"ml-4"},[e("div",{staticClass:"d-flex"},[e("b",{staticClass:"mr-2"},[t._v(t._s(t.$t(a)||a)+":")]),e("span",{staticClass:"property-previous mr-2"},[t._v(t._s(t.$t(i.diff[s][a][0])||i.diff[s][a][0]))]),e("span",{staticClass:"property-current"},[t._v(t._s(t.$t(i.diff[s][a][1])||i.diff[s][a][1]))])])])}))]]:t._e()],2)})),t.showNavigationToEntity?e("a",{staticClass:"d-flex align-center mt-2 entity-link",attrs:{href:t.getLinkToEntity(i)}},[e(p.Z,{staticClass:"mr-1",staticStyle:{color:"inherit"}},[t._v("mdi-open-in-new")]),t._v(" "),e("span",[t._v(t._s(t.$t(t.$LF.MoveToRecord)))])],1):t._e()],2)],1)})),1),e("div",{staticClass:"d-flex justify-between align-center mt-4"},[e("div",{staticClass:"pagination-wrapper"},[e(y.Z,{staticClass:"pagination",attrs:{length:t.totalPages,"total-visible":7},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}})],1),e("div",{staticClass:"d-flex align-center"},[e("span",{staticClass:"mr-2 ml-2 pb-2",staticStyle:{"font-size":"small"}},[t._v(t._s(t.$t(t.$LF.RecordsPerPage)))]),e(m.Z,{staticClass:"custom-select",attrs:{items:t.itemsPerPageOptions,"item-text":"text","item-value":"value",dense:""},model:{value:t.itemsPerPage,callback:function(e){t.itemsPerPage=e},expression:"itemsPerPage"}})],1)])],1):e("div",{staticClass:"d-flex flex-column align-center justify-center ma-15"},[e(p.Z,{attrs:{large:""}},[t._v("mdi-border-none-variant")]),e("span",{staticClass:"grey--text"},[t._v(t._s(t.$t(t.$LF.Empty)))])],1)])],1)},b=[],$=i(30381),Z=i.n($),x=i(27527),k=i(21240),C=i(96486),A=i.n(C),L=i(66697),D=i(37179),S=i(14944),w=i(43484),I=i(24437),R=i(83422),F=i(56904),P=i(5294),O=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(f.Z,[e(u.Z,[e(h.Z,[e("span",[e(p.Z,{attrs:{size:"20"}},[t._v("mdi-filter")]),t._v(" "+t._s(t.$t(t.$LF.SearchFilters))+" "),t.filterCount?e(S.Z,{attrs:{color:"primary","x-small":""}},[t._v(t._s(t.customAvailableFiltersCount))]):t._e()],1)]),e(c.Z,[e(F.Z,[e(P.Z,[e(I.Z,{attrs:{cols:"12"}},[e("h4",[t._v(t._s(t.$t(t.$LF.AvailableFilters)))]),e("div",{staticClass:"d-flex"},[e(w.Z,{attrs:{"active-class":"blue--text text--darken-2",multiple:""},model:{value:t.filtersToShow,callback:function(e){t.filtersToShow=e},expression:"filtersToShow"}},t._l(t.availableFilters,(function(i){return e(S.Z,{key:i.key,attrs:{filter:"",value:i.key}},[t._v(" "+t._s(i.display)+" ")])})),1)],1)])],1),e(R.Fx,[e(P.Z,[e(I.Z,{attrs:{cols:"12"}},[e("h4",[t._v(t._s(t.$t(t.$LF.FilterValues)))])]),e(I.Z,{directives:[{name:"show",rawName:"v-show",value:t.filtersToShow.includes("entity"),expression:"filtersToShow.includes('entity')"}],attrs:{cols:"12",md:"6",lg:"4"}},[e(m.Z,{attrs:{dense:"",label:t.$t(t.$LF.Areas),"hide-details":"",items:t.entityTypeList,"item-value":"key","item-text":"value","no-data-text":t.$t(t.$LF.NoData)},model:{value:t.model.entity,callback:function(e){t.$set(t.model,"entity",e)},expression:"model.entity"}})],1),e(I.Z,{directives:[{name:"show",rawName:"v-show",value:t.filtersToShow.includes("entryType"),expression:"filtersToShow.includes('entryType')"}],attrs:{cols:"12",md:"6",lg:"4"}},[e(m.Z,{attrs:{dense:"",label:t.$t(t.$LF.Type),"hide-details":"",items:t.entryTypeList,"item-value":"key","item-text":"value","no-data-text":t.$t(t.$LF.NoData)},model:{value:t.model.entryType,callback:function(e){t.$set(t.model,"entryType",e)},expression:"model.entryType"}})],1),e(I.Z,{directives:[{name:"show",rawName:"v-show",value:t.filtersToShow.includes("dateStart"),expression:"filtersToShow.includes('dateStart')"}],attrs:{cols:"12",md:"6",lg:"4"}},[e("date-picker-range",{attrs:{"disable-outline":"","custom-label":t.$t(t.$LF.Date)},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1),t.userRole===t.UserRoleEnum.SystemAdmin||t.userRole===t.UserRoleEnum.Admin?e(I.Z,{directives:[{name:"show",rawName:"v-show",value:t.filtersToShow.includes("userIds"),expression:"filtersToShow.includes('userIds')"}],attrs:{cols:"12",md:"6",lg:"4"}},[e("user-select-multiple",{attrs:{label:t.$t(t.$LF.Users)},model:{value:t.model.userIds,callback:function(e){t.$set(t.model,"userIds",e)},expression:"model.userIds"}})],1):t._e()],1)],1),e("div",{staticClass:"d-flex flex-wrap justify-space-between justify-md-end mt-2"},[e(D.Z,{staticClass:"my-2 mx-0 mx-md-2",attrs:{block:t.$vuetify.breakpoint.xs,color:"primary"},on:{click:function(e){return t.filter(!1)}}},[e(p.Z,{staticClass:"mr-1"},[t._v("mdi-filter-check")]),t._v(" "+t._s(t.$t(t.$LF.ApplyFilters))+" ")],1),e(D.Z,{staticClass:"my-2 mx-0 mx-md-2",attrs:{block:t.$vuetify.breakpoint.xs},on:{click:t.clear}},[e(p.Z,{staticClass:"mr-1"},[t._v("mdi-filter-remove")]),t._v(" "+t._s(t.$t(t.$LF.ClearFilters))+" ")],1)],1)],1)],1)],1)],1)},E=[],T=(i(57658),i(67923)),B=i(11450),N=i(43948),j=i(56439);const q=[{key:x._g9.Create,value:N.Z.t(j.LF.Creation)},{key:x._g9.Modification,value:N.Z.t(j.LF.Modification)},{key:x._g9.Delete,value:N.Z.t(j.LF.Deletion)},{key:x._g9.Restore,value:N.Z.t(j.LF.Recovery)}],M=[{key:"ApplicationAccount",value:N.Z.t(j.LF.ApplicationAccount)},{key:"BonusCampaign",value:N.Z.t(j.LF.BonusCampaigns)},{key:"CashFlow",value:N.Z.t(j.LF.CashFlow)},{key:"Driver",value:N.Z.t(j.LF.Driver)},{key:"InstallmentSchema",value:N.Z.t(j.LF.InstallmentSchema)},{key:"Organisation",value:N.Z.t(j.LF.Organisation)},{key:"OrganisationReport",value:N.Z.t(j.LF.OrganisationReport)},{key:"Payoff",value:N.Z.t(j.LF.Payoff)},{key:"Settlement",value:N.Z.t(j.LF.Settlement)},{key:"SettlementPayoff",value:N.Z.t(j.LF.SettlementPayoff)},{key:"User",value:N.Z.t(j.LF.User)},{key:"Vehicle",value:N.Z.t(j.LF.Vehicle)}];var U=i(25137),V=i(60176),Y=i(14391),z=i(40706);let G=class extends((0,l.Wr)(T.Z)){constructor(...t){super(...t),(0,n.Z)(this,"userRole",void 0),(0,n.Z)(this,"organisations",[]),(0,n.Z)(this,"entryTypeList",q),(0,n.Z)(this,"entityTypeList",M),(0,n.Z)(this,"
1UserRoleEnum",x.tGl)}get availableFilters(){const t=[{key:"entity",display:this.$t(this.$LF.Areas)},{key:"entryType",display:this.$t(this.$LF.Type)},{key:"dateStart",display:this.$t(this.$LF.Date)}];return this.userRole!==x.tGl.SystemAdmin&&this.userRole!==x.tGl.Admin||t.push({key:"userIds",display:this.$t(this.$LF.Users)}),t}get customAvailableFiltersCount(){return this.filtersToShow.filter((t=>"dateEnd"!==t)).length}get dateRange(){return this.model.dateStart?this.model.dateStart!==this.model.dateEnd&&this.model.dateEnd?[this.model.dateStart,this.model.dateEnd]:[this.model.dateStart]:[]}set dateRange(t){return 0===t.length&&(this.model.dateStart=null,this.model.dateEnd=null),1===t.length?(this.model.dateStart=t[0],void(this.model.dateEnd=t[0])):2===t.length?(this.model.dateStart=t[0],void(this.model.dateEnd=t[1])):void 0}onCustomFiltersToShowChanged(t,e){const i=e.filter((e=>!t.includes(e)));i.includes("dateStart")&&(this.model.dateStart=void 0,this.model.dateEnd=void 0)}mounted(){this.initializeModel(),this.loadModel(),Object.keys(this.model).includes("dateStart")||this.initializeModel()}initializeModel(){this.model={dateStart:null,dateEnd:null}}};(0,r.gn)([(0,V.aD)(Y.Ni.USER_ROLE)],G.prototype,"userRole",void 0),(0,r.gn)([(0,l.RL)("filtersToShow")],G.prototype,"onCustomFiltersToShowChanged",null),G=(0,r.gn)([(0,l.wA)({components:{DatePickerRange:z.Z,UserSelectMultiple:U.Z,TextFieldDatesPicker:B.Z}})],G);var W,H=G,K=H,J=i(1001),X=(0,J.Z)(K,O,E,!1,null,null,null),Q=X.exports,tt=i(28074);(function(t){t["Driver"]="Driver",t["Vehicle"]="Vehicle",t["User"]="User",t["Settlement"]="Settlement",t["Organisation"]="Organisation",t["ApplicationAccount"]="ApplicationAccount",t["Payoff"]="Payoff",t["InstallmentSchema"]="InstallmentSchema",t["CashFlow"]="CashFlow",t["OrganisationReport"]="OrganisationReport",t["BonusCampaign"]="BonusCampaign",t["Unknown"]=""})(W||(W={}));let et=class extends l.w3{constructor(...t){super(...t),(0,n.Z)(this,"translationsDictionary",[]),(0,n.Z)(this,"filterStorageKey","filter_audit"),(0,n.Z)(this,"initialLoading",!1),(0,n.Z)(this,"id",void 0),(0,n.Z)(this,"guid",void 0),(0,n.Z)(this,"entityName",void 0),(0,n.Z)(this,"showEntity",void 0),(0,n.Z)(this,"showNavigationToEntity",void 0),(0,n.Z)(this,"history",[]),(0,n.Z)(this,"openedPanel",null),(0,n.Z)(this,"openedPanels",[]),(0,n.Z)(this,"search",""),(0,n.Z)(this,"itemsPerPage",20),(0,n.Z)(this,"page",1),(0,n.Z)(this,"totalPages",0),(0,n.Z)(this,"cachedTotalPages",0),(0,n.Z)(this,"request",{skip:0,take:20}),(0,n.Z)(this,"itemsPerPageOptions",[{text:"5",value:5},{text:"10",value:10},{text:"20",value:20},{text:"50",value:50},{text:"100",value:100}]),(0,n.Z)(this,"options",{itemsPerPage:20}),(0,n.Z)(this,"performRequestDebounced",(0,C.debounce)(this.loadHistory,500))}mounted(){this.translationsDictionary=Object.entries(this.$LF).map((t=>({key:t[0],display:this.$t(t[1])})))}onSearchChanged(){this.page=1,this.openedPanel=null,this.cachedTotalPages=0,this.performRequestDebounced()}onPageChanged(){this.openedPanel=null,this.performRequestDebounced()}onItemsPerPageChanged(){this.page=1,this.openedPanel=null,this.performRequestDebounced()}onFilter(t){this.request=(0,tt.JG)(t),this.openedPanel=null,this.page=1,this.cachedTotalPages=0,this.performRequestDebounced()}fulfillRequestWithOptions(){this.request.take=this.itemsPerPage,this.request.skip=(this.page-1)*this.itemsPerPage,this.request.entity||(this.request.entity=this.entityName),this.search&&(this.request.search=A().isString(this.search)?this.search:A().isObject(this.search)?this.search.key:void 0)}parseDateDiffKey(t){if(t&&/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d{0,7}){0,1}/.test(t)){const e=(0,$.utc)(t);return e.local().format("YYYY-MM-DD HH:mm:ss")}return t}getEntityLabel(t){switch(t){case W.Driver:return this.$t(this.$LF.Driver);case W.Vehicle:return this.$t(this.$LF.Vehicle);case W.User:return this.$t(this.$LF.User);case W.Settlement:return this.$t(this.$LF.Settlement);case W.Organisation:return this.$t(this.$LF.Organisation);case W.ApplicationAccount:return this.$t(this.$LF.ApplicationAccount);case W.Payoff:return this.$t(this.$LF.Payoff);case W.InstallmentSchema:return this.$t(this.$LF.InstallmentSchema);case W.CashFlow:return this.$t(this.$LF.CashFlow);case W.OrganisationReport:return"Raport użytkownika";case W.BonusCampaign:return this.$t(this.$LF.BonusCampaigns);default:return t}}getLinkToEntity(t){switch(t.entity){case W.Driver:return t.entityId?L.s.EditDriver(t.entityId):"#";case W.Vehicle:return t.entityId?L.s.EditVehicle(t.entityId):"#";case W.User:return t.entityGuid?L.s.EditUser(t.entityGuid):"#";case W.Settlement:return t.entityId?L.s.EditSettlement(t.entityId):"#";case W.Organisation:return t.entityId?L.s.EditOrganisation(t.entityId):"#";case W.ApplicationAccount:return t.entityId?L.s.EditApplicationAccount(t.entityId):"#";case W.Payoff:return t.entityId?L.s.EditPayoff(t.entityId):"#";case W.InstallmentSchema:return t.entityId?L.s.EditInstallment(t.entityId):"#";case W.CashFlow:return t.entityId?L.s.EditCashFlow(t.entityId):"#";case W.OrganisationReport:return t.entityId?L.s.EditReport(t.entityId):"#";case W.BonusCampaign:return t.entityId?L.s.EditBonusCampaign(t.entityId):"#";default:return"#"}}loadHistory(){return this.initialLoading=!0,this.fulfillRequestWithOptions(),(new x.Op5).getAll(this.request).then((({success:t,result:e})=>
1{if(t&&e){this.history=e.items.map((t=>({date:Z()(t.date).locale(this.locale),diff:JSON.parse(t.diff||""),user:t.user||t.driver||this.$t(this.$LF.System),type:t.type||0,entity:t.entity||W.Unknown,entityGuid:t.entityGuid,entityId:t.entityId,changedBy:t.changedBy})));const t=Math.ceil(e.count/this.itemsPerPage);this.totalPages=0!==this.cachedTotalPages?Math.max(this.cachedTotalPages,t):t,this.cachedTotalPages=this.totalPages}})).finally((()=>{this.initialLoading=!1}))}get locale(){switch(localStorage.getItem("language")){case"English":return"en";default:return"pl"}}get AuditEntryChangedByType(){return x.PDI}getChangedByIcon(t){switch(t){case x.PDI.User:return"mdi-monitor";case x.PDI.Driver:return"mdi-cellphone";case x.PDI.System:return"mdi-flash"}}getChangedByLabel(t){switch(t){case x.PDI.User:return this.$t(this.$LF.User);case x.PDI.Driver:return this.$t(this.$LF.Driver);case x.PDI.System:return this.$t(this.$LF.System)}}getChangedByBadgeClass(t){switch(t){case x.PDI.User:return"audit-badge-user";case x.PDI.Driver:return"audit-badge-driver";case x.PDI.System:return"audit-badge-system"}}};(0,r.gn)([(0,l.fI)({default:null})],et.prototype,"id",void 0),(0,r.gn)([(0,l.fI)({default:null})],et.prototype,"guid",void 0),(0,r.gn)([(0,l.fI)({default:"",type:String})],et.prototype,"entityName",void 0),(0,r.gn)([(0,l.fI)({default:!1,type:Boolean})],et.prototype,"showEntity",void 0),(0,r.gn)([(0,l.fI)({default:!1,type:Boolean})],et.prototype,"showNavigationToEntity",void 0),(0,r.gn)([(0,l.RL)("search")],et.prototype,"onSearchChanged",null),(0,r.gn)([(0,l.RL)("page")],et.prototype,"onPageChanged",null),(0,r.gn)([(0,l.RL)("itemsPerPage")],et.prototype,"onItemsPerPageChanged",null),et=(0,r.gn)([(0,l.wA)({components:{AuditListFiltersSection:Q,AuditOperationCard:k.Z}})],et);var it=et,st=it,at=(0,J.Z)(st,_,b,!1,null,null,null),nt=at.exports;let rt=class extends l.w3{constructor(...t){super(...t),(0,n.Z)(this,"$refs",void 0)}mounted(){this.$refs.auditList.performRequestDebounced()}};rt=(0,r.gn)([(0,l.wA)({components:{AuditListAll:nt,PageHeader:o.Z}})],rt);var lt=rt,ot=lt,dt=(0,J.Z)(ot,s,a,!1,null,"116ec794",null),ut=dt.exports},81903:function(t,e,i){var s=i(37179);e["Z"]=s.Z},53823:function(t,e,i){i.d(e,{Z:function(){return d}});i(57658);var s=i(11012),a=i(29495),n=i(28914),r=i(82733),l=i(23276),o=i(74987),d=(0,o.Z)(n.Z,(0,r.Z)({onVisible:["init"]}),l.Z).extend({name:"v-pagination",directives:{Resize:a.Z},props:{circle:Boolean,disabled:Boolean,length:{type:Number,default:0,validator:t=>t%1===0},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},totalVisible:[Number,String],value:{type:Number,default:0},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},wrapperAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.wrapper"}},data(){return{maxButtons:0,selected:null}},computed:{classes(){return{"v-pagination":!0,"v-pagination--circle":this.circle,"v-pagination--disabled":this.disabled,...this.themeClasses}},items(){const t=parseInt(this.totalVisible,10);if(0===t||isNaN(this.length)||this.length>Number.MAX_SAFE_INTEGER)return[];const e=Math.min(Math.max(0,t)||this.length,Math.max(0,this.maxButtons)||this.length,this.length);if(this.length<=e)return this.range(1,this.length);const i=e%2===0?1:0,s=Math.floor(e/2),a=this.length-s+1+i;if(this.value>s&&this.value<a){const t=1,e=this.length,a=this.value-s+2,n=this.value+s-2-i,r=a-1===t+1?2:"...",l=n+1===e-1?n+1:"...";return[1,r,...this.range(a,n),l,this.length]}if(this.value===s){const t=this.value+s-1-i;return[...this.range(1,t),"...",this.length]}if(this.value===a){const t=this.value-s+1;return[1,"...",...this.range(t,this.length)]}return[...this.range(1,s),"...",...this.range(a,this.length)]}},watch:{value(){this.init()}},beforeMount(){this.init()},methods:{init(){this.selected=null,this.onResize(),this.$nextTick(this.onResize),setTimeout((()=>this.selected=this.value),100)},onResize(){const t=this.$el&&this.$el.parentElement?this.$el.parentElement.clientWidth:window.innerWidth;this.maxButtons=Math.floor((t-96)/42)},next(t){t.preventDefault(),this.$emit("input",this.value+1),this.$emit("next")},previous(t){t.preventDefault(),this.$emit("input",this.value-1),this.$emit("previous")},range(t,e){const i=[];t=t>0?t:1;for(let s=t;s<=e;s++)i.push(s);return i},genIcon(t,e,i,a,n){return t("li",[t("button",{staticClass:"v-pagination__navigation",class:{"v-pagination__navigation--disabled":i},attrs:{disabled:i,type:"button","aria-label":n},on:i?{}:{click:a}},[t(s.Z,[e])])])},genItem(t,e){const i=e===this.value&&(this.color||"primary"),s=e===this.value,a=s?this.currentPageAriaLabel:this.pageAriaLabel;
1return t("button",this.setBackgroundColor(i,{staticClass:"v-pagination__item",class:{"v-pagination__item--active":e===this.value},attrs:{type:"button","aria-current":s,"aria-label":this.$vuetify.lang.t(a,e)},on:{click:()=>this.$emit("input",e)}}),[e.toString()])},genItems(t){return this.items.map(((e,i)=>t("li",{key:i},[isNaN(Number(e))?t("span",{class:"v-pagination__more"},[e.toString()]):this.genItem(t,e)])))},genList(t,e){return t("ul",{directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}],class:this.classes},e)}},render(t){const e=[this.genIcon(t,this.$vuetify.rtl?this.nextIcon:this.prevIcon,this.value<=1,this.previous,this.$vuetify.lang.t(this.previousAriaLabel)),this.genItems(t),this.genIcon(t,this.$vuetify.rtl?this.prevIcon:this.nextIcon,this.value>=this.length,this.next,this.$vuetify.lang.t(this.nextAriaLabel))];return t("nav",{attrs:{role:"navigation","aria-label":this.$vuetify.lang.t(this.wrapperAriaLabel)}},[this.genList(t,e)])}})},84587:function(t,e,i){var s=i(36596),a=i(20144);e["Z"]=a.ZP.extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:t=>!isNaN(Number(t))||["xs","sm","md","lg","xl"].includes(String(t))}},computed:{isMobile(){const{mobile:t,width:e,name:i,mobileBreakpoint:s}=this.$vuetify.breakpoint;if(s===this.mobileBreakpoint)return t;const a=parseInt(this.mobileBreakpoint,10),n=!isNaN(a);return n?e<a:i===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&(0,s.Rn)("mobile-break-point","mobile-breakpoint",this)}})}}]);
2//# sourceMappingURL=7750.0d81e9dd.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.