1"use strict";(self.webpackChunkDrukomat_pl=self.webpackChunkDrukomat_pl||[]).push([[149,3313],{89218:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(66252),i=n(3577),r=[(0,o._)("div",{class:"dmt-loader"},null,-1)];const c={props:{static:{type:Boolean}}};const l=(0,n(83744).Z)(c,[["render",function(e,t,n,c,l,a){return(0,o.wg)(),(0,o.iD)("div",{class:(0,i.normalizeClass)(["dmt-loader-wrapper",{"dmt-loader-wrapper--static":n.static}])},r,2)}]])},95540:(e,t,n)=>{n.d(t,{Z:()=>f});var o=n(66252),i=n(3577),r=["id","name","checked","value","disabled"],c=["for"],l=["innerHTML"],a={key:0,class:"more"},s={key:1,class:"dmt-icon dmt-icon-xs jsShowMore ico-chevron-down-solid"},d=[(0,o._)("use",{"xlink:href":"#ico-chevron-down-solid"},null,-1)],u=[(0,o._)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",viewBox:"0 0 14 8",fill:"none"},[(0,o._)("path",{d:"M13 7L7 1L1 7",stroke:"black","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];const h={emits:["input","checkbox-changed"],props:{size:{type:String,default:""},label:{type:String,default:null},hiddenLabel:{type:String,default:null},value:{type:Boolean},name:{type:String,default:""},disabled:{type:Boolean},visible:{type:Boolean,default:!0},error:{type:Boolean,default:!1},validation:{type:Boolean,default:!1},includeChevron:{type:Boolean,default:!1}},data:function(){return{hasError:!1,isChecked:!1}},computed:{checkboxSize:function(){return"large"===this.size?"checkbox--large":null},valid:{get:function(){return!this.error||this.value},set:function(){}}},methods:{updateValue:function(e){this.$emit("input",e.target.checked),this.$emit("checkbox-changed",e.target.checked),this.isChecked=!this.isChecked}}};const f=(0,n(83744).Z)(h,[["render",function(e,t,n,h,f,p){return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",{class:(0,i.normalizeClass)(["checkbox",[p.checkboxSize,{"n
1o-label":!n.label,hidden:!n.visible},{"has-error":n.validation&&!p.valid}]])},[(0,o._)("input",{id:n.name,name:n.name,type:"checkbox",checked:n.value,value:n.value,disabled:n.disabled,onChange:t[0]||(t[0]=function(){return p.updateValue&&p.updateValue.apply(p,arguments)})},null,40,r),(0,o._)("label",{for:n.name,class:(0,i.normalizeClass)({"with-hidden-content":n.hiddenLabel})},[(0,o._)("span",{innerHTML:n.label},null,8,l),n.hiddenLabel?((0,o.wg)(),(0,o.iD)("span",a,(0,i.toDisplayString)(n.hiddenLabel),1)):(0,o.kq)("v-if",!0),n.hiddenLabel?((0,o.wg)(),(0,o.iD)("svg",s,d)):(0,o.kq)("v-if",!0)],10,c)],2),n.includeChevron?((0,o.wg)(),(0,o.iD)("div",{key:0,class:(0,i.normalizeClass)(["checkbox-chevron",{checked:f.isChecked}])},u,2)):(0,o.kq)("v-if",!0)],64)}]])},93975:(e,t,n)=>{n.d(t,{Z:()=>O});var o=n(66252),i=n(3577),r={key:1},c={key:0,class:"d-flex flex-column align-items-center"},l={key:0,class:"tooltip-container","data-toggle":"tooltip","data-html":"true"},a=[(0,o._)("svg",{class:"dmt-icon dmt-icon-xs dmt-icon--info ico-exclamation-3"},[(0,o._)("use",{"xlink:href":"#ico-exclamation-3"})],-1)],s={key:1},d={key:2,class:"no-result-table"},u=["colspan"],h={key:1};var f=n(96486),p=n.n(f),b=["xlink:href"];const k={props:{value:{type:Boolean,required:!0}},computed:{icon:function(){return this.value?"check":"x"},className:function(){return"dmt-icon icon--".concat(this.icon," ico-").concat(this.icon)},hrefValue:function(){return"#ico-".concat(this.icon)}}};var m=n(83744);const y=(0,m.Z)(k,[["render",function(e,t,n,r,c,l){return(0,o.wg)(),(0,o.iD)("svg",{class:(0,i.normalizeClass)(l.className)},[(0,o._)("use",{"xlink:href":l.hrefValue},null,8,b)],2)}]]);var g=n(95540);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===w(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function D(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}const j={emits:["toggle-row"],components:{TableRows:{name:"TableRows",props:{rows:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},default:{type:Function},collapsing:{type:Boolean},opened:{type:Array},checkboxed:{type:Boolean},checkboxesVisible:{type:Boolean,default:!0},checked:{type:Array},checkboxDisabled:{type:Function},dropdown:{type:Boolean,default:!0}},computed:{rowId:function(){return this.collapsing?this.rows[0].id:null},rowOpened:function(){return p().indexOf(this.opened,this.rowId)>=0},attributes:function(){return this.collapsing?{id:"".concat(this.rowId,"-key"),class:"".concat(this.rowOpened?"open":"")}:{}},tableLength:function(){return this.columns.length+ +this.checkboxed}},methods:{singleRow:function(e){var t=this,n=null;if(e._ref){var i=(0,o.h)("td",{colspan:this.tableLength,object:e.object}),r=this.dropdown?"table-dropdown--additional-row":"";this.rowOpened&&(n=(0,o.h)("tr",{class:r,id:e._ref,"data-id":e._ref},i))}else{var c=this.dropdown?"table-row table-dropdown--key-row":"table-row",l=(0,o.h)("tr",{class:c,"data-id":e.id,id:"".concat(e.id,"-row")},[this.checkbox(e)].concat(C(this.columns.map((function(n){return t.singleCell(e,n)})))));n=[this.blankRow(),l]}return n},blankRow:function(){var e=this.columns.length+(this.checkboxed?1:0),t=(0,o.h)("td",{colspan:e,class:"no-results"},[]);return(0,o.h)("tr",{class:"table-dropdown--blank-row"},[t])},checkbox:function(e){var t=this;if(this.checkboxed){var n=p().indexOf(this.checked,e.id)>=0,i="function"==typeof this.checkboxDisabled&&this.checkboxDisabled(e),r=(0,o.h)(g.Z,{on:{"checkbox-changed":function(){t.$emit("row-checked",e.id)}},name:"toggle-row-".concat(e.id),size:"large",value:n,disabled:i,visible:this.checkboxesVisible});return(0,o.h)("td",{class:"table-dmt__checkbox-cell"},[r])}},singleCell:function(e,t){var n,i={class:t["class-name"]},r=p().at(e,t.accessor)[0];return p().isArray(r)&&p().has(t,"additionalAccessor")&&(r=r.includes(t.additionalAccessor)),p().has(t,"boolean")?(0,o.h)("td",i,[(0,o.h)(y,{value:null!==(n=r)&&void 0!==n&&n})]):(t.default&&(r=t.default(e)),(0,o.h)("td",i,[r]))},rowsToRender:function(){var e=this;return this.rows.map((function(t){return e.singleRow(t)}))},validate:function(){if(this.collapsing&&!this.default)throw new Error("Scoped template for collapsing table must be defined as direct child of BaseTable!")}},render:function(){return this.validate(),(0,o.h)("tbody",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?v(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.attributes),this.rowsToRender())}},Loader:n(89218).Z,CheckboxField:g.Z},props:{data:{type:Array,default:function(){return[]}},className:{type:String,default:null},loading:{type:Boolean},indexed:{type:Boolean},collapsing:{type:Boolean},checkboxed:{type:Boolean},checkboxDisabled:{type:Function},checkboxesVisible:{type:Boolean,default:!0},headerVisible:{type:Boolean,default:!0},dropdown:{type:Boolean,default:!0},onCheckedChanged:{type:Function},noMainCheckbox:{type:Boolean},allChecked:{type:Boolean},emptyMsg:{type:String},openRows:{type:Array,default:function(){return[]}}},data:function(){return{checked:[],checkedAll:!1}},computed:{additionalClassNames:function(){return this.dropdown?"table-dropdown ".concat(this.className):"table-dmt ".concat(this.className)},emptyTable:function(){return p().isEmpty(this.data)}},mounted:function(){this.allChecked&&this.toggleAll(!1)},methods:{clearChecked:function(){this.checkedAll=!1,this.checked=[]},checkRow:function(e){this.checked.includes(e)||(this.checked=[].concat(D(this.checked),[e]))},uncheckRow:function(e){this.checked=this.checked.filter((function(t){return t!=e}))},customNoResults:function(){return this.$slots["no-results"]},tableLength:function(){return this.columns().length+ +this.checkboxed},toggleAll:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.checkedAll=!this.checkedAll,"function"==typeof this.checkboxDisabled){var n=this.data.filter((function(t){return!e.checkboxDisabled(t)}));this.checked=this.checkedAll?n.map((function(e){return e.id})):[]}else this.checked=this.checkedAll?this.data.map((function(e){return e.id})):[];t&&this.onCheckedChanged(this.checked)},onRowCheck:function(e){this.checkedAll&&(this.checkedAll=!1);var t=p().remove(this.checked,(function(t){return t==e}));p().isEmpty(t)&&this.checked.push(e),this.onCheckedChanged(this.checked,e)},toggleRow:function(e){p().indexOf(this.openRows,e)>=0?this.$emit("toggle-row",this.openRows.filter((function(t){return t!=e}))):this.$emit("toggle-row",[].concat(D(this.openRows),[e]))},recievedColumns:function(){return this.$slots.default().filter((function(e){return e.type&&e.type.name&&"Column"===e.type.name}))},columnAttributes:function(e){return Object.assign({},e.props,p().get(e.ctx,"slots"),e.children)},columns:function(){var e=this;return this.recievedColumns().map((function(t){return e.columnAttributes(t)}))},rows:function(){return this.indexed?p().map(this.data,(function(e,t){return p().merge(e,{$index:t+1})})):this.data},collapsingRows:function(){return this.rows().map((function(e){return[e,{_ref:"".concat(e.id,"-ref"),object:e}]}))}}},O=(0,m.Z)(j,[["render",function(e,t,n,f,p,b){var k=(0,o.up)("Loader"),m=(0,o.up)("CheckboxField"),y=(0,o.up)("TableRows"),g=(0,o.Q2)("tooltip");return(0,o.wg)(),(0,o.iD)("table",{class:(0,i.normalizeClass)(["table table-dmt--relative",b.additionalClassNames])},[n.loading?((0,o.wg)(),(0,o.j4)(k,{key:0})):(0,o.kq)("v-if",!0),n.headerVisible?((0,o.wg)(),(0,o.iD)("thead",r,[(0,o._)("tr",null,[n.checkboxed?((0,o.wg)(),(0,o.iD)("th",{key:0,class:(0,i.normalizeClass)({"table-dmt__checkbox-cell":n.checkboxed})},[n.noMainCheckbox?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.j4)(m,{key:0,size:"large",name:"toggle-all",value:p.checkedAll,visible:n.checkboxesVisible,onCheckboxChanged:b.toggleAll},null,8,["value","visible","onCheckboxChanged"]))],2)):(0,o.kq)("v-if",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(b.columns(),(function(e,t){return(0,o.wg)(),(0,o.iD)("th",{key:t,class:(0,i.normalizeClass)(e["class-name"])},[(0,o.Uk)((0,i.toDisplayString)(e.actionIcon)+" ",1),e["action-icon"]?((0,o.wg)(),(0,o.iD)("div",c,[e["action-icon"]?(0,o.wy)(((0,o.wg)(),(0,o.iD)("span",l,a)),[[g,{content:e["action-icon"],html:!0}]]):(0,o.kq)("v-if",!0),(0,o._)("span",null,(0,i.toDisplayString)(e.header),1)])):((0,o.wg)(),(0,o.iD)("span",s,(0,i.toDisplayString)(e.header),1))],2)})),128))])])):(0,o.kq)("v-if",!0),b.emptyTable?((0,o.wg)(),(0,o.iD)("tbody",d,[(0,o._)("tr",null,[(0,o._)("td",{colspan:b.tableLength(),class:"no-results"},[b.customNoResults()?(0,o.WI)(e.$slots,"no-results",{key:0}):((0,o.wg)(),(0,o.iD)("span",h,"Brak wyników do wyÅwietlenia"))],8,u)])])):(0,o.kq)("v-if",!0),n.collapsing?((0,o.wg)(!0),(0,o.iD)(o.HY,{key:3},(0,o.Ko)(b.collapsingRows(),(function(t){return(0,o.wg)(),(0,o.j4)(y,{key:t.id,collapsing:"",columns:b.columns(),rows:t,default:e.$slots.default,reload:!0,opened:n.openRows,checkboxed:n.checkboxed,"checkboxes-visible":n.checkboxesVisible,"checkbox-disabled":n.checkboxDisabled,checked:p.checked,dropdown:n.dropdown,onRowChecked:b.onRowCheck},null,8,["columns","rows","default","opened","checkboxed","checkboxes-visible","checkbox-disabled","checked","dropdown","onRowChecked"])})),128)):(0,o.kq)("v-if",!0),n.collapsing||b.emptyTable?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.j4)(y,{key:4,columns:b.columns(),rows:b.rows(),checked:p.checked,checkboxed:n.checkboxed,"checkboxes-visible":n.checkboxesVisible,"checkbox-disabled":n.checkboxDisabled,dropdown:n.dropdown,onRowChecked:b.onRowCheck},null,8,["columns","rows","checked","checkboxed","checkboxes-visible","checkbox-disabled","dropdown","onRowChecked"])),(0,o.WI)(e.$slots,"tableFooter")],2)}]])},7235:(e,t,n)=>{n.d(t,{Z:()=>o});const o={name:"Column",props:{title:{type:String,default:null}}}}}]);
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.