PageSourceSearch

https://justprint.sk/assets/9560.6ad2511a.js

js justprint.sk collected 2026-10-07 19:28:53 UTC 37,423 bytes, 2 lines download raw bytes

1/*! For license information please see 9560.6ad2511a.js.LICENSE.txt */
2(self.webpackChunkDrukomat_pl=self.webpackChunkDrukomat_pl||[]).push([[9560],{32589:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(29286);const o={methods:{translateDays:function(t){var e=Math.abs(t),n="";switch(i.locales.lang){case i.countryCodes.poland:case i.countryCodes.germany:case i.countryCodes.europe:n=1===e?this.$store.state.translations.front.global.day:this.$store.state.translations.front.global.days;break;case i.countryCodes.czechRepublic:n=1===e?this.$store.state.translations.front.global.day:e>=2&&e<=4?"dny":this.$store.state.translations.front.global.days;break;case i.countryCodes.slovakia:n=1===e?this.$store.state.translations.front.global.day:e>=2&&e<=4?"dni":this.$store.state.translations.front.global.days}return t+" "+n}}}},63359:function(t,e){!function(t){"use strict";var e={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};t.default=e,t.english=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)},34585:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Jt});var i=n(66252),o=n(3577),r={class:"invoices-page"},a={class:"user-header"},s={class:"container"},l={key:0,class:"filter-buttons"},c={class:"user-content"},u={class:"container"},d={class:"invoices-main-container"},p={class:"table table-dmt--relative table-dropdown invoices-main-table"},f={class:"invoices-main-table__invoice-number"},v={class:"invoices-main-table__orders-count"},m={class:"invoices-main-table__creation-date"},h={class:"invoices-main-table__payment-date"},g={class:"invoices-main-table__payment-term"},y={class:"invoices-main-table__payment-status"},_={class:"invoices-main-table__price"},b={class:"invoices-main-table__actions"},I=["id"],w={class:"table-dropdown--blank-row"},D=["colspan"],S=["id","data-id"],k={class:"invoices-main-table__invoice-number"},x=["data-row-id","onClick"],$=(0,i._)("svg",{class:"dmt-icon ico-chevron-right-solid"},[(0,i._)("use",{"xlink:href":"#ico-chevron-right-solid"})],-1),C={class:"product-name"},O={class:"invoices-main-table__orders-count"},T={class:"invoices-main-table__creation-date"},L={class:"invoices-main-table__payment-date"},E={class:"invoices-main-table__payment-term"},F={key:0},N={key:0,class:"dmt-icon ico-exclamation-triangle-orange"},Z=[(0,i._)("use",{"xlink:href":"#ico-exclamation-triangle-orange"},null,-1)],A={class:"invoices-main-table__payment-status"},P={class:"invoices-main-table__price"},W={class:"invoices-main-table__actions"},M={class:"actions--buttons"},j=["id","data-id"],B=["colspan"],U={class:"nav nav-tabs nav-tabs-flex nav-tabs--table-dropdown-main-tabs"},R=["onClick"],q={role:"button"},z=["innerHTML"],G={class:"tab-content"},H={key:1,class:"no-result-table"},K=["colspan"];var V=n(30381),Y=n.n(V),J={class:"invoice-details-main-container"},Q={class:"invoice-info"},X={class:"panel panel-white panel-no-border d-flex flex-wrap"},tt={class:"invoice-info__detailed-information-container"},et=(0,i._)("div",{class:"blue-line blue-line--small"},null,-1),nt={class:"table invoice-info__detailed-information-table"},it={class:"invoice-info__detailed-information-container"},ot=(0,i._)("div",{class:"blue-line blue-line--small"},null,-1),rt={class:"table invoice-info__detailed-information-table"};var at=n(93975),st=n(7235),lt=n(20341),ct=n(22114),ut=n(32589);const dt={components:{BaseTable:at.Z,Column:st.Z},mixins:[lt.Z,ct.Z,ut.Z],props:{invoice:{type:Object}},data:function(){return{baseClassName:"invoices-info--table"}},methods:{className:function(t){return"".concat(this.baseClassName,"--").concat(t)}}};var pt=n(83744);
2const ft=(0,pt.Z)(dt,[["render",function(t,e,n,r,a,s){return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",J,[(0,i._)("div",Q,[(0,i.kq)('\n            <div class="invoice-info__invoice-management-container">\n                <div class="invoice-info__invoice-management-actions">\n                    <button class="btn btn-sm btn-link btn-uppercase" @click="openAddressModal">\n                        Zmień adres nabywcy\n                    </button>\n                </div>\n            </div>\n            '),(0,i._)("div",X,[(0,i._)("div",tt,[et,(0,i._)("table",nt,[(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.buyer)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(n.invoice.address.company_name),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.address)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(n.invoice.address.street_address),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.city)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(n.invoice.address.city_name),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.tax_number)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(n.invoice.address.tax_number),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.zip_code)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(n.invoice.address.zip_code),1)])])]),(0,i._)("div",it,[ot,(0,i._)("table",rt,[(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.create_date)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(t.formatDate(n.invoice.created_at)),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.payment_term)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(t.formatDate(n.invoice.payment_time_limit)),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.payment_type)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(n.invoice.payment_type.name),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.product_and_services)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(t.formatPrice(n.invoice.price.net)),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.tax_name)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(t.formatPrice(n.invoice.price.tax)),1)]),(0,i._)("tr",null,[(0,i._)("th",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.to_pay_sum)+":",1),(0,i._)("td",null,(0,o.toDisplayString)(t.formatPrice(n.invoice.price.gross)),1)])])])])]),(0,i.kq)(" /.invoice-info ")]),(0,i.kq)(" /.invoice-details-main-container")],2112)}]]);var vt={class:"invoice-orders"},mt={class:"invoice-details-main-container"},ht=["href"];const gt={components:{BaseTable:at.Z,Column:st.Z},mixins:[lt.Z,ct.Z,ut.Z],props:{orders:{default:null,type:Array}},data:function(){return{baseClassName:"invoice-orders__orders-table"}},methods:{className:function(t){return"".concat(this.baseClassName,"__").concat(t)},orderUrl:function(t){return"/orders/".concat(t)}}},yt=(0,pt.Z)(gt,[["render",function(t,e,n,r,a,s){var l=(0,i.up)("Column"),c=(0,i.up)("BaseTable");return(0,i.wg)(),(0,i.iD)("div",vt,[(0,i._)("div",mt,[(0,i.Wm)(c,{"class-name":a.baseClassName,data:n.orders,indexed:"",dropdown:!1},{default:(0,i.w5)((function(){return[(0,i.Wm)(l,{"class-name":s.className("number"),header:t.$store.state.translations.front.invoice.order_number},{default:(0,i.w5)((function(t){return[(0,i._)("div",null,[(0,i._)("a",{class:"btn-link",href:s.orderUrl(t.id_for_customer)},(0,o.toDisplayString)(t.number),9,ht)])]})),_:1},8,["class-name","header"]),(0,i.Wm)(l,{"class-name":s.className("creation-date"),header:t.$store.state.translations.front.invoice.order_date},{default:(0,i.w5)((function(e){return[(0,i._)("span",null,(0,o.toDisplayString)(t.formatDate(e.created_at,!0)),1)]})),_:1},8,["class-name","header"]),(0,i.Wm)(l,{"class-name":s.className("sent-date"),header:t.$store.state.translations.front.invoice.send_date},{default:(0,i.w5)((function(e){return[(0,i._)("span",null,(0,o.toDisplayString)(t.formatDate(e.send_date,!0)),1)]})),_:1},8,["class-name","header"]),(0,i.Wm)(l,{"class-name":s.className("price-gross"),header:t.$store.state.translations.front.invoice.value_gross},{default:(0,i.w5)((function(e){return[(0,i.Uk)((0,o.toDisplayString)(t.formatPrice(e.price.gross)),1)]})),_:1},8,["class-name","header"])]})),_:1},8,["class-name","data"])])])}]]);var _t=n(86671),bt=n(25737),It=n(75882),wt=n(10287),Dt=n(46921),St=n(84446),kt=n(87067),xt=n(29286),$t={class:"pt-5"},Ct={class:"invoice-dumps-main-container mt-3"},Ot=(0,i._)("svg",{class:"dmt-icon ico-arrow-right-solid"},[(0,i._)("use",{"xlink:href":"#ico-arrow-right-solid"})],-1),Tt={class:"progress"},Lt=(0,i._)("svg",{class:"dmt-icon ico-check-solid"},[(0,i._)("use",{"xlink:href":"#ico-check-solid"})],-1),Et=["download","href"],Ft=(0,i._)("svg",{class:"dmt-icon ico-download"},[(0,i._)("use",{"xlink:href":"#ico-download"})],-1),Nt=["onClick"],Zt=(0,i._)("svg",{class:"dmt-icon ico-times-solid"},[(0,i._)("use",{"xlink:href":"#ico-times-solid"})],-1),At={class:"invoice-dumps-hint"},Pt=(0,i._)("svg",{class:"dmt-icon ico-exclamation-3"},[(0,i._)("use",{"xlink:href":"#ico-exclamation-3"})],-1);var Wt=n(96486),Mt=n.n(Wt);const jt={name:"InvoiceDumps",components:{BaseTable:at.Z,Column:st.Z},mixins:[lt.Z,ut.Z],props:{invoiceDumps:{type:Array},loading:{type:Boolean}},data:function(){return{baseClassName:"invoice-dumps-table"}},watch:{invoiceDumps:{handler:function(){if(this.$store.state.invoices.invoiceDumpsLoading)return!1;Mt().find(this.invoiceDumps,(function(t){return!t.canceled&&["PROGRESS","PENDING","STARTED"].indexOf(t.status)>=0}))&&setTimeout((function(t){t.$store.dispatch("getInvoiceDumps")}),5e3,this)},deep:!0,immediate:!0}},methods:{progressClass:function(t){return t=t.toLowerCase(),"invoice-dump-progress invoice-dump-progress-".concat(t)},progressWidth:function(t){var e=0;return t.total>0&&(e=t.done/t.total*100),"width: ".concat(e,"%;")},downloadUrl:function(t){return!("SUCCESS"!==t.status||t.progress.done!==t.progress.total||t.progress.done<1)&&Routing.generate("front.rest.download_invoice_dump",{invoiceDumpId:t.identity,fileName:this.downloadFilename(t)})},downloadFilename:function(t){return!("SUCCESS"!==t.status||t.progress.done!==t.progress.total||t.progress.done<1)&&this.formatDate(t.last_update,!0).replace(/[.: ]/g,"-")+".zip"},downloadClass:function(t){if("SUCCESS"!==t.status||t.progress.done!==t.progress.total||t.progress.done<1)return"disabled"},deleteText:function(t){return"SUCCESS"===t.status||t.canceled?this.$store.state.translations.front.global.delete_btn:this.$store.state.translations.front.global.reject_btn},onDeleteClick:function(t){this.$store.dispatch("deleteInvoiceDump",{identity:t.identity}),this.$forceUpdate()}}},Bt=(0,pt.Z)(jt,[["render",function(t,e,n,r,a,s){var l=(0,i.up)("Column"),c=(0,i.up)("BaseTable");return(0,i.wg)(),(0,i.iD)("div",$t,[(0,i._)("div",Ct,[(0,i.Wm)(c,{ref:"invoicesTable","class-name":a.baseClassName,data:n.invoiceDumps,dropdown:!1,"header-visible":!1,indexed:""},{default:(0,i.w5)((function(){return[(0,i.Wm)(l,null,{default:(0,i.w5)((function(e){return[(0,i._)("strong",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.dumps.from),1),(0,i.Uk)(" "+(0,o.toDisplayString)(t.formatDate(e.date_range.from))+" ",1),Ot,(0,i._)("strong",null,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.dumps.to),1),(0,i.Uk)(" "+(0,o.toDisplayString)(t.formatDate(e.date_range.to)),1)]})),_:1}),(0,i.Wm)(l,null,{default:(0,i.w5)((function(e){return[(0,i._)("div",{class:(0,o.normalizeClass)(s.progressClass(e.status))},[(0,i._)("div",Tt,[(0,i._)("div",{style:(0,o.normalizeStyle)(s.progressWidth(e.progress)),class:"progress-value"},null,4)]),(0,i._)("span",null,(0,o.toDisplayString)(e.progress.done)+" "+(0,o.toDisplayString)(t.$store.state.translations.front.invoice.dumps.in)+" "+(0,o.toDisplayString)(e.progress.total),1),Lt],2)]})),_:1}),(0,i.Wm)(l,null,{default:(0,i.w5)((function(e){return[(0,i._)("a",{class:(0,o.normalizeClass)([s.downloadClass(e),"btn no-borders-no-bg"]),download:s.downloadFilename(e),href:s.downloadUrl(e),target:"_blank"},[(0,i.Uk)((0,o.toDisplayString)(t.$store.state.translations.front.invoice.download)+" ",1),Ft],10,Et)]})),_:1}),(0,i.Wm)(l,null,{default:(0,i.w5)((function(t){return[(0,i._)("a",{class:"btn no-borders-no-bg btn-black",onClick:function(e){return s.onDeleteClick(t)}},[(0,i.Uk)((0,o.toDisplayString)(s.deleteText(t))+" ",1),Zt],8,Nt)]})),_:1})]})),_:1},8,["class-name","data"])]),(0,i._)("p",At,[Pt,(0,i.Uk)(" "+(0,o.toDisplayString)(t.$store.state.translations.front.invoice.dumps.hint),1)])])}]]);var Ut=n(89218);function Rt(t){return Rt="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},Rt(t)}function qt(){qt=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,o){var r=e&&e.prototype instanceof p?e:p,a=Object.create(r.prototype),s=new k(o||[]);return i(a,"_invoke",{value:I(t,n,s)}),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function p(){}function f(){}function v(){}var m={};l(m,r,(function(){return this}));var h=Object.getPrototypeOf,g=h&&h(h(x([])));g&&g!==e&&n.call(g,r)&&(m=g);var y=v.prototype=p.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(i,r,a,s){var l=u(t[i],t,r);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Rt(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){o(t,n,e,i)}
vendor: 4,916 bytes, line 2
2))}return r=r?r.then(i,i):i()}})}function I(t,e,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return $()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function w(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=u(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function x(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:$}}function $(){return{value:void 0,done:!0}}return f.prototype=v,i(y,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:f,configurable:!0}),f.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(b.prototype),l(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new b(c(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),l(y,s,"Generator"),l(y,r,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=x,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;
2if("throw"===i.type){var o=i.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function zt(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function Gt(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function a(t){zt(r,i,o,a,s,"next",t)}function s(t){zt(r,i,o,a,s,"throw",t)}a(void 0)}))}}function Ht(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Rt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Rt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kt="invoiceInfoTab",Vt="invoiceOrdersTab";const Yt={components:{Loader:Ut.Z,InvoiceDumps:Bt,InvoiceInfo:ft,InvoiceOrders:yt,PageHeader:_t.Z,RowDownloadAction:Dt.Z,Pagination:St.Z,Filters:bt.Z,ComboboxField:It.Z,DateField:wt.Z},directives:{collapse:kt.Z},mixins:[ct.Z,lt.Z,ut.Z],data:function(){var t;return{INVOICE_INFO_TAB_NAME:Kt,INVOICE_ORDERS_TAB_NAME:Vt,tabsBlockedInvoiceIds:[],tabs:(t={},Ht(t,Kt,{name:Kt,icon:'<svg class="dmt-icon dmt-icon-xs ico-order-details"><use xlink:href="#ico-order-details"></use></svg>',title:this.$store.state.translations.front.invoice.invoice_details,beforeTabOpened:this.beforeInvoiceEnter,openedInInvoicesIds:[],loadingInInvoicesIds:[]}),Ht(t,Vt,{name:Vt,icon:'<svg class="dmt-icon dmt-icon-xs ico-m1"><use xlink:href="#ico-m1"></use></svg>',title:this.$store.state.translations.front.invoice.orders,beforeTabOpened:this.beforeOrdersEnter,openedInInvoicesIds:[],loadingInInvoicesIds:[]}),t),openInvoices:[],selectedForPayment:[],selectForPayment:!1,pagination:{limit:xt.paginationConfig.defaultLimit,page:1},filters:{paymentStatusId:null,typeId:null,dates:{startDate:null,endDate:null},search:null},searched:!1,filtered:!1,dumpsSubmit:!1}},computed:{invoices:function(){return this.$store.state.invoices.data},invoiceDumps:function(){return this.$store.state.invoices.invoiceDumps},invoiceDumpsLoading:function(){return this.$store.state.invoices.invoiceDumpsLoading},loading:function(){return this.$store.state.invoices.loading},numberOfColumns:function(){return 8+this.selectForPayment},paginationTotal:function(){return this.$store.state.invoices.pagination.count},filterOptions:function(){return this.$store.state.invoices.filterOptions},emptyMsg:function(){return this.searched||this.filtered?this.$store.state.translations.front.global.validators.no_search_results:this.$store.state.translations.front.global.validators.no_results}},watch:{pagination:{handler:function(){this.getInvoices()},deep:!0},filters:{handler:function(){this.getInvoices()},deep:!0}},created:function(){var t=this;return Gt(qt().mark((function e(){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("getInvoicesFilterOptions");case 2:return e.next=4,t.getInvoices();case 4:return e.next=6,t.getInvoiceDumps();case 6:case"end":return e.stop()}}),e)})))()},methods:{isInvoiceOpened:function(t){return this.openInvoices.includes(t)},isLoadingInvoiceTab:function(t,e){return this.tabs[e].loadingInInvoicesIds.includes(t)},isOpenedInvoiceTab:function(t,e){return this.tabs[e].openedInInvoicesIds.includes(t)},isTabActive:function(t,e){return this.isOpenedInvoiceTab(e,t)||this.isLoadingInvoiceTab(e,t)},toggleInvoiceTab:function(t,e,n){var i=this;return Gt(qt().mark((function o(){return qt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!i.tabsBlockedInvoiceIds.includes(e)){o.next=2;break}return o.abrupt("return");case 2:return i.tabsBlockedInvoiceIds.push(e),i.markInvoiceTabLoading(t,e),o.next=6,n(e);case 6:i.unmarkInvoiceTabLoading(t,e),i.openInvoiceTab(t,e),setTimeout((function(){var t=i.tabsBlockedInvoiceIds.indexOf(e);-1!==t&&i.tabsBlockedInvoiceIds.splice(t,1)}),250);case 9:case"end":return o.stop()}}),o)})))()},markInvoiceTabLoading:function(t,e){this.isLoadingInvoiceTab(e,t)||this.tabs[t].loadingInInvoicesIds.push(e)},unmarkInvoiceTabLoading:function(t,e){var n=this.tabs[t].loadingInInvoicesIds.indexOf(e);-1!==n&&this.tabs[t].loadingInInvoicesIds.splice(n,1)},openInvoiceTab:function(t,e){this.isOpenedInvoiceTab(e,t)||this.tabs[t].openedInInvoicesIds.push(e),this.closeOtherInvoiceTabs(t,e)},closeInvoiceTab:function(t,e){var n=this.tabs[t].openedInInvoicesIds.indexOf(e);-1!==n&&this.tabs[t].openedInInvoicesIds.splice(n,1)},closeOtherInvoiceTabs:function(t,e){for(var n in this.tabs)n!==t&&this.closeInvoiceTab(n,e)},closeAllInvoiceTabs:function(t){for(var e in this.tabs)this.closeInvoiceTab(e,t)},hasOpenedInvoiceTabs:function(t){for(var e in this.tabs)if(this.tabs[e].openedInInvoicesIds.includes(t))return!0;return!1},toggleInvoice:function(t){this.isInvoiceOpened(t)?this.closeInvoice(t):this.openInvoice(t)},openInvoice:function(t){this.openInvoices.push(t),this.hasOpenedInvoiceTabs(t)||this.toggleInvoiceTab(this.INVOICE_INFO_TAB_NAME,t,this.tabs[this.INVOICE_INFO_TAB_NAME].beforeTabOpened)},closeInvoice:function(t){var e=this.openInvoices.indexOf(t);-1!==e&&this.openInvoices.splice(e,1),this.closeAllInvoiceTabs(t)},clearFilters:function(){this.$emit("clear-filters"),this.onFiltersClear()},getInvoices:function(){var t=this;return Gt(qt().mark((function e(){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("getInvoices",{pagination:t.pagination,filters:t.filters});case 2:t.filters.search||(t.searched=!1),t.openInvoices=[];case 4:case"end":return e.stop()}}),e)})))()},updateFilter:function(t,e){"dates"===e&&"input"===t.type||(this.filters[e]=t,this.pagination.page=1,this.filtered=!0,this.dumpsSubmit=!0)},onSearchSubmit:function(t){this.filters.search=t,this.searched=!0,this.pagination.page=1,this.dumpsSubmit=!0},onFiltersClear:function(){this.filters.typeId=null,this.filters.paymentStatusId=null,this.filters.dates.startDate=null,this.filters.dates.endDate=null,this.filtered=!1,this.dumpsSubmit=!1;var t=Y()(),e=this.formatDate(t);this.$refs.invoiceDateFilterRef.startDate=this.formatDate(t),this.$refs.invoiceDateFilterRef.endDate=this.formatDate(t),this.$refs.invoiceDateFilterRef.chosenDate=[e,e]},createInvoiceDump:function(){this.$store.dispatch("createInvoiceDump",{filters:this.filters}),this.dumpsSubmit=!1},getInvoiceDumps:function(){var t=this;return Gt(qt().mark((function e(){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("getInvoiceDumps");case 2:case"end":return e.stop()}}),e)})))()},ordersLoading:function(t){return this.$store.getters.loadingOrdersById(t)},invoiceLoading:function(t){return this.$store.getters.loadingInvoiceById(t)},downloadInvoiceUrl:function(t){return Routing.generate("front.rest.download_invoice",{invoiceId:t.id,identity:t.first_order_identity,type:t.order_type})},downloadInvoiceFilename:function(t){var e=t.invoice_number.replace(/(\\)/g,"_");return"".concat(e,".pdf")},beforeInvoiceEnter:function(t){var e=this;return Gt(qt().mark((function n(){return qt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$store.dispatch("getInvoice",t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},beforeOrdersEnter:function(t){var e=this;return Gt(qt().mark((function n(){return qt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$store.dispatch("getInvoiceOrders",t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}}},Jt=(0,pt.Z)(Yt,[["render",function(t,e,n,V,Y,J){var Q=(0,i.up)("PageHeader"),X=(0,i.up)("DateField"),tt=(0,i.up)("ComboboxField"),et=(0,i.up)("Filters"),nt=(0,i.up)("InvoiceDumps"),it=(0,i.up)("RowDownloadAction"),ot=(0,i.up)("Loader"),rt=(0,i.up)("InvoiceInfo"),at=(0,i.up)("InvoiceOrders"),st=(0,i.up)("Pagination"),lt=(0,i.up)("router-view"),ct=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",r,[(0,i._)("div",a,[(0,i._)("div",s,[(0,i.Wm)(Q,{title:t.$store.state.translations.front.invoice.invoices},null,8,["title"]),(0,i.Wm)(et,{onSubmitSearch:J.onSearchSubmit,onClearFilters:J.onFiltersClear},{default:(0,i.w5)((function(){return[(0,i.Wm)(X,{ref:"invoiceDateFilterRef",value:Y.filters.dates,range:"true",placeholder:t.$store.state.translations.front.invoice.data_from_peri
2od,onInput:e[0]||(e[0]=function(t){return J.updateFilter(t,"dates")})},null,8,["value","placeholder"]),(0,i.Wm)(tt,{value:Y.filters.typeId,placeholder:t.$store.state.translations.front.invoice.invoice_type,options:J.filterOptions.types,onInput:e[1]||(e[1]=function(t){return J.updateFilter(t,"typeId")})},null,8,["value","placeholder","options"]),(0,i.Wm)(tt,{value:Y.filters.paymentStatusId,placeholder:t.$store.state.translations.front.invoice.payment_status,options:J.filterOptions.paymentStatuses,onInput:e[2]||(e[2]=function(t){return J.updateFilter(t,"paymentStatusId")})},null,8,["value","placeholder","options"]),Y.filters.dates.startDate&&J.invoices.length&&Y.dumpsSubmit&&!J.loading?((0,i.wg)(),(0,i.iD)("div",l,[(0,i._)("button",{class:"btn",type:"button",onClick:e[3]||(e[3]=function(){return J.createInvoiceDump&&J.createInvoiceDump.apply(J,arguments)})},(0,o.toDisplayString)(t.$store.state.translations.front.global.collect_in_a_package),1)])):(0,i.kq)("v-if",!0)]})),_:1},8,["onSubmitSearch","onClearFilters"])])]),(0,i._)("div",c,[(0,i._)("div",u,[J.invoiceDumps.length?((0,i.wg)(),(0,i.j4)(nt,{key:0,"invoice-dumps":J.invoiceDumps,loading:J.invoiceDumpsLoading},null,8,["invoice-dumps","loading"])):(0,i.kq)("v-if",!0),(0,i._)("div",d,[(0,i._)("table",p,[(0,i._)("thead",null,[(0,i._)("tr",null,[(0,i._)("th",f,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.invoice_number),1),(0,i._)("th",v,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.orders_count),1),(0,i._)("th",m,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.create_date),1),(0,i._)("th",h,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.payment_date),1),(0,i._)("th",g,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.payment_term),1),(0,i._)("th",y,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.payment_status),1),(0,i._)("th",_,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.value_gross),1),(0,i._)("th",b,(0,o.toDisplayString)(t.$store.state.translations.front.invoice.actions),1)])]),!J.loading&&J.invoices&&J.invoices.length?((0,i.wg)(!0),(0,i.iD)(i.HY,{key:0},(0,i.Ko)(J.invoices,(function(e){return(0,i.wg)(),(0,i.iD)("tbody",{id:"".concat(e.id,"-key"),key:e.id,class:(0,o.normalizeClass)({open:J.isInvoiceOpened(e.id)})},[(0,i._)("tr",w,[(0,i._)("td",{colspan:J.numberOfColumns,class:"no-results"},null,8,D)]),(0,i._)("tr",{id:"".concat(e.id,"-row"),"data-id":e.id,class:"table-row table-dropdown--key-row"},[(0,i._)("td",k,[(0,i._)("button",{class:"table-dropdown--toggler","data-row-id":e.id,onClick:function(t){return J.toggleInvoice(e.id)}},[$,(0,i._)("span",null,(0,o.toDisplayString)(e.invoice_number),1)],8,x),(0,i._)("div",C,(0,o.toDisplayString)(e.name),1)]),(0,i._)("td",O,(0,o.toDisplayString)(e.number_of_orders),1),(0,i._)("td",T,(0,o.toDisplayString)(t.formatDate(e.created_at)),1),(0,i._)("td",L,(0,o.toDisplayString)(t.formatDate(e.payment_date)),1),(0,i._)("td",E,[e.payment_time_limit?((0,i.wg)(),(0,i.iD)("span",F,[(0,i.Uk)((0,o.toDisplayString)(t.formatDate(e.payment_time_limit))+" ",1),70!==e.payment_state&&e.days_to_deadline<=0&&("OPW"===e.payment_type.code||"KRK"===e.payment_type.code)?((0,i.wg)(),(0,i.iD)("svg",N,Z)):(0,i.kq)("v-if",!0)])):(0,i.kq)("v-if",!0)]),(0,i._)("td",A,[(0,i._)("span",{class:(0,o.normalizeClass)(["d-flex status","status-".concat(e.payment_state)])},(0,o.toDisplayString)(t.$store.state.translations.front.invoice.payment_status_options[e.payment_state]),3)]),(0,i._)("td",P,(0,o.toDisplayString)(t.formatPrice(e.price.gross)),1),(0,i._)("td",W,[(0,i._)("div",M,[(0,i.wy)((0,i.Wm)(it,{url:J.downloadInvoiceUrl(e),"file-name":J.downloadInvoiceFilename(e)},null,8,["url","file-name"]),[[ct,t.$store.state.translations.front.invoice.download+" ".concat(e.name)]])])])],8,S),J.isInvoiceOpened(e.id)?((0,i.wg)(),(0,i.iD)("tr",{key:0,id:"".concat(e.id,"-ref"),"data-id":"".concat(e.id,"-ref"),class:"table-dropdown--additional-row"},[(0,i._)("td",{colspan:J.numberOfColumns},[(0,i._)("div",null,[(0,i._)("ul",U,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(Y.tabs,(function(t){return(0,i.wg)(),(0,i.iD)("li",{class:(0,o.normalizeClass)({active:J.isTabActive(t.name,e.id)}),onClick:function(n){return J.toggleInvoiceTab(t.name,e.id,t.beforeTabOpened)}},[(0,i._)("a",q,[t.icon?((0,i.wg)(),(0,i.iD)("i",{key:0,innerHTML:t.icon},null,8,z)):(0,i.kq)("v-if",!0),(0,i._)("span",null,(0,o.toDisplayString)(t.title),
21)])],10,R)})),256))]),(0,i._)("div",G,[J.loading||J.invoiceLoading(e.id)||J.ordersLoading(e.id)?((0,i.wg)(),(0,i.j4)(ot,{key:0})):J.isOpenedInvoiceTab(e.id,Y.INVOICE_INFO_TAB_NAME)?((0,i.wg)(),(0,i.j4)(rt,{key:1,invoice:e},null,8,["invoice"])):J.isOpenedInvoiceTab(e.id,Y.INVOICE_ORDERS_TAB_NAME)?((0,i.wg)(),(0,i.j4)(at,{key:2,orders:e.orders},null,8,["orders"])):(0,i.kq)("v-if",!0)])])],8,B)],8,j)):(0,i.kq)("v-if",!0)],10,I)})),128)):((0,i.wg)(),(0,i.iD)("tbody",H,[(0,i._)("tr",null,[(0,i._)("td",{colspan:J.numberOfColumns,class:"no-results"},[J.loading?((0,i.wg)(),(0,i.j4)(ot,{key:0})):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i.Uk)((0,o.toDisplayString)(J.emptyMsg),1)],64))],8,K)])]))]),(0,i.Wm)(st,{limit:Y.pagination.limit,page:Y.pagination.page,total:J.paginationTotal,onPageChange:e[4]||(e[4]=function(t){return Y.pagination.page=t}),onLimitChange:e[5]||(e[5]=function(t){return Y.pagination={limit:t,page:1}})},null,8,["limit","page","total"])]),(0,i.Wm)(lt)])])])}]])},25737:(t,e,n)=>{"use strict";n.d(e,{Z:()=>I});var i=n(66252),o=n(49963),r=n(3577),a={class:"filters-box d-flex align-items-end justify-content-between"},s={class:"filter-module--filter-main"},l={class:"filter-main--search"},c={class:"form-row form-row-icon d-flex"},u=["placeholder"],d=["disabled"],p={class:"user-filters"},f={class:"panel panel-white mb-0"},v={class:"filter-module--filter-items panel-body py-4",style:{display:"block"}},m={class:"d-flex align-items-center justify-content-between mb-2"},h={class:"f12 b5 upper"},g={class:"filter-module--filter-items"};var y=n(96486),_=n.n(y);const b={components:{SvgIcon:n(69985).Z},props:{placeholder:{type:String},showClear:{type:Boolean,default:!0}},data:function(){return{query:null,searchDisabled:!1,expanded:!1}},computed:{filtersPresent:function(){return!_().isEmpty(this.$slots)}},methods:{submit:function(){this.disabled||this.$emit("submit-search",this.query)},onSearchChange:function(t){var e=t.target;this.searchDisabled=0!=e.value.length&&e.value.length<3},clearFilters:function(){this.$emit("clear-filters")},toggleFilters:function(){this.expanded=!this.expanded,this.expanded||this.$emit("clear-filters")}}};const I=(0,n(83744).Z)(b,[["render",function(t,e,n,y,_,b){var I=(0,i.up)("SvgIcon");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i._)("div",s,[(0,i._)("div",l,[(0,i._)("form",{class:"form-horizontal",onSubmit:e[2]||(e[2]=(0,o.withModifiers)((function(){return b.submit&&b.submit.apply(b,arguments)}),["prevent"]))},[(0,i._)("div",c,[(0,i.wy)((0,i._)("input",{"onUpdate:modelValue":e[0]||(e[0]=function(t){return _.query=t}),class:"",placeholder:n.placeholder||t.$store.state.translations.front.global.search,onInput:e[1]||(e[1]=function(){return b.onSearchChange&&b.onSearchChange.apply(b,arguments)})},null,40,u),[[o.vModelText,_.query]]),(0,i._)("i",null,[(0,i.Wm)(I,{"class-name":"dmt-icon-sm",name:"ico-search"})]),(0,i._)("button",{class:"btn btn-blue ml-2",disabled:_.searchDisabled},(0,r.toDisplayString)(t.$store.state.translations.front.global.search),9,d)])],32)])]),(0,i._)("div",p,[(0,i.Wm)(o.Transition,{name:"collapse"},{default:(0,i.w5)((function(){return[(0,i._)("div",f,[(0,i._)("div",v,[(0,i._)("div",m,[(0,i._)("div",h,(0,r.toDisplayString)(t.$store.state.translations.front.global.filter),1),n.showClear?((0,i.wg)(),(0,i.iD)("button",{key:0,class:"btn btn-text",onClick:e[3]||(e[3]=function(){return b.clearFilters&&b.clearFilters.apply(b,arguments)})},[(0,i.Wm)(I,{"class-name":"dmt-icon-sm",name:"ico-x"}),(0,i._)("span",null,(0,r.toDisplayString)(t.$store.state.translations.front.global.filters_clear),1)])):(0,i.kq)("v-if",!0)]),(0,i._)("div",g,[(0,i.WI)(t.$slots,"default")])]),(0,i.WI)(t.$slots,"footer")])]})),_:3})])])}]])},86671:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(66252),o=n(3577),r={key:2,class:"h5 mb-5"};const a={props:{title:{type:String,default:null},subtitle:{type:String,default:null},h1:{type:Boolean,default:!1}},computed:{isOKL:function(){return"OKL"===window.appName},headerClasses:function(){return this.isOKL?"":"mt-3 mb-5"}}};const s=(0,n(83744).Z)(a,[["render",function(t,e,n,a,s,l){return(0,i.wg)(),(0,i.iD)("div",null,[n.h1?((0,i.wg)(),(0,i.iD)("h1",{key:0,class:(0,o.normalizeClass)(["h3 b4",l.headerClasses])},(0,o.toDisplayString)(n.title),3)):((0,i.wg)(),(0,i.iD)("div",{key:1,class:(0,o.normalizeClass)(["h3 b4",l.headerClasses])},(0,o.toDisplayString)(n.title),3)),n.subtitle?((0,i.wg)(),(0,i.iD)("div",r,(0,o.toDisplayString)(n.subtitle),
21)):(0,i.kq)("v-if",!0)])}]])}}]);

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.