⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
qda-digital.online
/
public
/
dist
/
js
/
Edit File: 51.6c0dfc.js
/*! For license information please see 51.6c0dfc.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[51],{502:function(t,r,e){"use strict";e.r(r);var o=e(168),n=e.n(o),a=e(4),i=e(5);function s(t){return(s="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 c(){c=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function p(t,r,e,n){var a=r&&r.prototype instanceof v?r:v,i=Object.create(a.prototype),s=new $(n||[]);return o(i,"_invoke",{value:P(t,e,s)}),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function v(){}function h(){}function m(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(j([])));_&&_!==r&&e.call(_,a)&&(y=_);var g=m.prototype=v.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){var n;o(this,"_invoke",{value:function(o,a){function i(){return new r((function(n,i){!function o(n,a,i,c){var u=f(t[n],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==s(p)&&e.call(p,"__await")?r.resolve(p.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):r.resolve(p).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,c)}))}c(u.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}})}function P(t,r,e){var o="suspendedStart";return function(n,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw a;return L()}for(e.method=n,e.arg=a;;){var i=e.delegate;if(i){var s=C(i,e);if(s){if(s===d)continue;return s}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===o)throw o="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o="executing";var c=f(t,r,e);if("normal"===c.type){if(o=e.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(o="completed",e.method="throw",e.arg=c.arg)}}}function C(t,r){var e=r.method,o=t.iterator[e];if(void 0===o)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,C(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),d;var n=f(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;var a=n.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,n=function r(){for(;++o<t.length;)if(e.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=m,o(g,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,o,n,a){void 0===a&&(a=Promise);var i=new x(p(r,e,o,n),a);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var o in r)e.push(o);return e.reverse(),function t(){for(;e.length;){var o=e.pop();if(o in r)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=j,$.prototype={constructor:$,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(O),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(e,o){return i.type="throw",i.arg=t,r.next=e,o&&(r.method="next",r.arg=void 0),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=e.call(a,"catchLoc"),c=e.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&e.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=r,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(t,r){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&&r&&(this.next=r),d},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var o=e.completion;if("throw"===o.type){var n=o.arg;O(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:j(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),d}},t}function u(t,r,e,o,n,a,i){try{var s=t[a](i),c=s.value}catch(t){return void e(t)}s.done?r(c):Promise.resolve(c).then(o,n)}function l(t){return function(){var r=this,e=arguments;return new Promise((function(o,n){var a=t.apply(r,e);function i(t){u(a,o,n,i,s,"next",t)}function s(t){u(a,o,n,i,s,"throw",t)}i(void 0)}))}}function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function f(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==s(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,r||"default");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===s(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var d={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("products.list.barcode.page_title")}},components:{barcode:n.a},data:function(){return{breadcrumbsCurrent:"products.list.barcode.breadcrumbs_current",breadcrumbs:[{name:"products.list.barcode.breadcrumbs_first",url:"home"},{name:"products.list.barcode.breadcrumbs_second",url:"products.index"},{name:"products.list.barcode.breadcrumbs_active",url:""}],generateWithPrice:!1,form:new i.a({product:"",paperSize:0,quantity:10}),pageSize:"print-page-a4",perPage:"per-page-40",showBarcode:!1,quantity:10,totalPages:0,productPrefix:"",pages:[]}},computed:function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?p(Object(e),!0).forEach((function(r){f(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},Object(a.b)("operations",["items","appInfo"])),created:function(){this.getProducts(),this.productPrefix=this.appInfo.productPrefix},methods:{getProducts:function(){var t=this;return l(c().mark((function r(){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$store.dispatch("operations/allData",{path:"/api/all-products"});case 2:case"end":return r.stop()}}),r)})))()},updateClassName:function(){var t=!1;if(this.form.product||(this.form.errors.set({product:"This product field is required"}),t=!0),this.form.paperSize||(this.form.errors.set({paperSize:"This paper size field is required"}),t=!0),!t){this.pages=[],this.pageSize=this.form.paperSize%2==0?"print-page-a4":"print-page-non-a4",this.perPage="per-page-"+this.form.paperSize,this.totalPages=Math.ceil(this.quantity/this.form.paperSize);for(var r=0;r<this.totalPages;r++)this.pages.push(this.quantity>this.form.paperSize?this.form.paperSize:this.quantity),this.quantity=this.quantity-this.form.paperSize}},generateBarcode:function(){var t=this;return l(c().mark((function r(){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log(t.appInfo.currency.symbol),t.quantity=Number(t.form.quantity),r.next=4,t.updateClassName();case 4:t.showBarcode=!0;case 5:case"end":return r.stop()}}),r)})))()},print:function(){var t=this;return l(c().mark((function r(){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$htmlToPaper("printMe");case 2:case"end":return r.stop()}}),r)})))()}}},v=(e(732),e(1)),h=Object(v.a)(d,(function(){var t=this,r=t._self._c;return r("div",[r("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12"},[r("div",{staticClass:"card no-print"},[r("div",{staticClass:"card-header"},[r("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("products.list.barcode.generate_barcode"))+"\n ")]),t._v(" "),r("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"products.index"}}},[r("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")])],1),t._v(" "),r("form",{attrs:{role:"form"},on:{submit:function(r){return r.preventDefault(),t.generateBarcode.apply(null,arguments)},keydown:function(r){return t.form.onKeydown(r)}}},[r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[t.items?r("div",{staticClass:"form-group col-md-4"},[r("label",{attrs:{for:"product"}},[t._v(t._s(t.$t("common.select_products"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("v-select",{class:{"is-invalid":t.form.errors.has("product")},attrs:{options:t.items,label:"label",name:"product",required:"true",placeholder:t.$t("common.select_products_placeholder")},model:{value:t.form.product,callback:function(r){t.$set(t.form,"product",r)},expression:"form.product"}}),t._v(" "),r("has-error",{attrs:{form:t.form,field:"product"}})],1):t._e(),t._v(" "),r("div",{staticClass:"form-group col-md-4"},[r("label",{attrs:{for:"paperSize"}},[t._v(t._s(t.$t("products.list.barcode.paper_size")))]),t._v(" "),r("select",{directives:[{name:"model",rawName:"v-model",value:t.form.paperSize,expression:"form.paperSize"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("paperSize")},attrs:{id:"paperSize"},on:{change:function(r){var e=Array.prototype.filter.call(r.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"paperSize",r.target.multiple?e:e[0])}}},[r("option",{attrs:{selected:"",disabled:"",value:"0"}},[t._v("\n "+t._s(t.$t("products.list.barcode.paper_size"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"40"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_0"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"30"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_1"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"24"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_2"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"20"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_3"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"18"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_4"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"14"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_5"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"12"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_6"))+"\n ")]),t._v(" "),r("option",{attrs:{value:"10"}},[t._v("\n "+t._s(t.$t("products.list.barcode.page_option_7"))+"\n ")])]),t._v(" "),r("has-error",{attrs:{form:t.form,field:"paperSize"}})],1),t._v(" "),r("div",{staticClass:"form-group col-md-4"},[r("label",{attrs:{for:"quantity"}},[t._v(t._s(t.$t("common.quantity"))+"\n "),r("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.form.quantity,expression:"form.quantity"}],staticClass:"form-control",attrs:{type:"number",id:"printQty",placeholder:t.$t("products.list.barcode.print_qty"),required:"",min:"1",max:"1000"},domProps:{value:t.form.quantity},on:{input:function(r){r.target.composing||t.$set(t.form,"quantity",r.target.value)}}})])]),t._v(" "),r("div",{staticClass:"row"},[t.items?r("div",{staticClass:"form-group col-md-6 mt-3"},[r("toggle-button",{model:{value:t.generateWithPrice,callback:function(r){t.generateWithPrice=r},expression:"generateWithPrice"}}),t._v(" "+t._s(t.$t("Generate barcode with price"))+"\n ")],1):t._e()])]),t._v(" "),r("div",{staticClass:"card-footer"},[r("button",{staticClass:"btn btn-primary"},[r("i",{staticClass:"fas fa-edit"}),t._v("\n "+t._s(t.$t("products.list.barcode.generate_barcode"))+"\n ")]),t._v(" "),r("button",{staticClass:"btn btn-secondary float-right",attrs:{type:"reset"},on:{click:function(r){return t.form.reset()}}},[r("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.$t("common.reset"))+"\n ")])])])]),t._v(" "),t.showBarcode?r("div",{staticClass:"card"},[r("div",{staticClass:"card-header"},[r("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("products.list.barcode.print_barcode"))+"\n ")]),t._v(" "),r("button",{staticClass:"btn btn-info float-right",on:{click:t.print}},[r("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print"))+"\n ")])]),t._v(" "),r("div",{staticClass:"barcode-wrapper card-body",attrs:{id:"printMe"}},t._l(t.pages,(function(e,o){return r("div",{key:o,staticClass:"print-page-layout display-grid",class:t.perPage},t._l(parseInt(e),(function(e){return r("div",{key:e,staticClass:"barcode-item"},[r("span",{staticClass:"barcode-name"},[t._v(t._s(t.form.product.name))]),t._v(" "),r("barcode",{attrs:{width:"1",height:"25",fontSize:"15",value:t.form.product.code}},[t._v("\n "+t._s(t.$t("common.rendering_fails"))+"\n ")]),t._v(" "),t.generateWithPrice?r("span",{staticClass:"barcode-name"},[t._v(" "+t._s(t.$t("Price"))+": "+t._s(t.appInfo.currency.symbol)+t._s(t.form.product.sellingPrice)+" "),r("br"),t._v(" "),t.form.product.taxRate>0?r("span",{staticClass:"barcode-tax"},[t._v("( "+t._s(t.form.product.taxRate)+"% "+t._s(t.$t("TAX"))+"\n "+t._s(t.form.product.taxType)+" )")]):t._e()]):t._e()],1)})),0)})),0)]):t._e()])])],1)}),[],!1,null,"11584a75",null);r.default=h.exports},583:function(t,r,e){var o=e(733);"string"==typeof o&&(o=[[t.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e(32)(o,n);o.locals&&(t.exports=o.locals)},732:function(t,r,e){"use strict";e(583)},733:function(t,r,e){(t.exports=e(31)(!1)).push([t.i,".barcode-tax[data-v-11584a75]{font-size:8px}",""])}}]);
Simpan