⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
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: 46.b047ca.js
/*! For license information please see 46.b047ca.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[46],{4:function(t,e,r){"use strict";var o=r(7),n=r.n(o),s=Object.defineProperty,a=Object.prototype.hasOwnProperty,i=Object.getOwnPropertySymbols,c=Object.prototype.propertyIsEnumerable,u=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,l=(t,e)=>{for(var r in e||(e={}))a.call(e,r)&&u(t,r,e[r]);if(i)for(var r of i(e))c.call(e,r)&&u(t,r,e[r]);return t};const p=t=>void 0===t,d=t=>Array.isArray(t),f=t=>t&&"number"==typeof t.size&&"string"==typeof t.type&&"function"==typeof t.slice,h=(t,e,r,o)=>((e=e||{}).indices=!p(e.indices)&&e.indices,e.nullsAsUndefineds=!p(e.nullsAsUndefineds)&&e.nullsAsUndefineds,e.booleansAsIntegers=!p(e.booleansAsIntegers)&&e.booleansAsIntegers,e.allowEmptyArrays=!p(e.allowEmptyArrays)&&e.allowEmptyArrays,r=r||new FormData,p(t)||(null===t?e.nullsAsUndefineds||r.append(o,""):(t=>"boolean"==typeof t)(t)?e.booleansAsIntegers?r.append(o,t?1:0):r.append(o,t):d(t)?t.length?t.forEach((t,n)=>{const s=o+"["+(e.indices?n:"")+"]";h(t,e,r,s)}):e.allowEmptyArrays&&r.append(o+"[]",""):(t=>t instanceof Date)(t)?r.append(o,t.toISOString()):!(t=>t===Object(t))(t)||(t=>f(t)&&"string"==typeof t.name&&("object"==typeof t.lastModifiedDate||"number"==typeof t.lastModified))(t)||f(t)?r.append(o,t):Object.keys(t).forEach(n=>{const s=t[n];if(d(s))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);h(s,e,r,o?o+"["+n+"]":n)})),r);var v={serialize:h};function m(t){if(null===t||"object"!=typeof t)return t;const e=Array.isArray(t)?[]:{};return Object.keys(t).forEach(r=>{e[r]=m(t[r])}),e}function y(t){return Array.isArray(t)?t:[t]}class b{constructor(){this.errors={},this.errors={}}set(t,e){"object"==typeof t?this.errors=t:this.set(l(l({},this.errors),{[t]:y(e)}))}all(){return this.errors}has(t){return Object.prototype.hasOwnProperty.call(this.errors,t)}hasAny(...t){return t.some(t=>this.has(t))}any(){return Object.keys(this.errors).length>0}get(t){if(this.has(t))return this.getAll(t)[0]}getAll(t){return y(this.errors[t]||[])}only(...t){const e=[];return t.forEach(t=>{const r=this.get(t);r&&e.push(r)}),e}flatten(){return Object.values(this.errors).reduce((t,e)=>t.concat(e),[])}clear(t){const e={};t&&Object.keys(this.errors).forEach(r=>{r!==t&&(e[r]=this.errors[r])}),this.set(e)}}class g{constructor(t={}){this.originalData={},this.busy=!1,this.successful=!1,this.recentlySuccessful=!1,this.recentlySuccessfulTimeoutId=void 0,this.errors=new b,this.progress=void 0,this.update(t)}static make(t){return new this(t)}update(t){this.originalData=Object.assign({},this.originalData,m(t)),Object.assign(this,t)}fill(t={}){this.keys().forEach(e=>{this[e]=t[e]})}data(){return this.keys().reduce((t,e)=>l(l({},t),{[e]:this[e]}),{})}keys(){return Object.keys(this).filter(t=>!g.ignore.includes(t))}startProcessing(){this.errors.clear(),this.busy=!0,this.successful=!1,this.progress=void 0,this.recentlySuccessful=!1,clearTimeout(this.recentlySuccessfulTimeoutId)}finishProcessing(){this.busy=!1,this.successful=!0,this.progress=void 0,this.recentlySuccessful=!0,this.recentlySuccessfulTimeoutId=setTimeout(()=>{this.recentlySuccessful=!1},g.recentlySuccessfulTimeout)}clear(){this.errors.clear(),this.successful=!1,this.recentlySuccessful=!1,this.progress=void 0,clearTimeout(this.recentlySuccessfulTimeoutId)}reset(){Object.keys(this).filter(t=>!g.ignore.includes(t)).forEach(t=>{this[t]=m(this.originalData[t])})}get(t,e={}){return this.submit("get",t,e)}post(t,e={}){return this.submit("post",t,e)}patch(t,e={}){return this.submit("patch",t,e)}put(t,e={}){return this.submit("put",t,e)}delete(t,e={}){return this.submit("delete",t,e)}submit(t,e,r={}){return this.startProcessing(),r=l({data:{},params:{},url:this.route(e),method:t,onUploadProgress:this.handleUploadProgress.bind(this)},r),"get"===t.toLowerCase()?r.params=l(l({},this.data()),r.params):(r.data=l(l({},this.data()),r.data),function t(e){return e instanceof File||e instanceof Blob||e instanceof FileList||"object"==typeof e&&null!==e&&void 0!==Object.values(e).find(e=>t(e))}(r.data)&&!r.transformRequest&&(r.transformRequest=[t=>v.serialize(t)])),new Promise((t,e)=>{(g.axios||n.a).request(r).then(e=>{this.finishProcessing(),t(e)}).catch(t=>{this.handleErrors(t),e(t)})})}handleErrors(t){this.busy=!1,this.progress=void 0,t.response&&this.errors.set(this.extractErrors(t.response))}extractErrors(t){return t.data&&"object"==typeof t.data?t.data.errors?l({},t.data.errors):t.data.message?{error:t.data.message}:l({},t.data):{error:g.errorMessage}}handleUploadProgress(t){this.progress={total:t.total,loaded:t.loaded,percentage:Math.round(100*t.loaded/t.total)}}route(t,e={}){let r=t;return Object.prototype.hasOwnProperty.call(g.routes,t)&&(r=decodeURI(g.routes[t])),"object"!=typeof e&&(e={id:e}),Object.keys(e).forEach(t=>{r=r.replace(`{${t}}`,e[t])}),r}onKeydown(t){const e=t.target;e.name&&this.errors.clear(e.name)}}g.routes={},g.errorMessage="Something went wrong. Please try again.",g.recentlySuccessfulTimeout=2e3,g.ignore=["busy","successful","errors","progress","originalData","recentlySuccessful","recentlySuccessfulTimeoutId"],e.a=g},431:function(t,e,r){"use strict";r.r(e);var o=r(141),n=r.n(o),s=r(3),a=r(4);function i(t){return(i="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={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var s=e&&e.prototype instanceof h?e:h,a=Object.create(s.prototype),i=new E(n||[]);return o(a,"_invoke",{value:x(t,r,i)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function h(){}function v(){}function m(){}var y={};l(y,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(C([])));g&&g!==e&&r.call(g,s)&&(y=g);var _=m.prototype=h.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){var n;o(this,"_invoke",{value:function(o,s){function a(){return new e((function(n,a){!function o(n,s,a,c){var u=d(t[n],t,s);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==i(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}(o,s,n,a)}))}return n=n?n.then(a,a):a()}})}function x(t,e,r){var o="suspendedStart";return function(n,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw s;return k()}for(r.method=n,r.arg=s;;){var a=r.delegate;if(a){var i=O(a,r);if(i){if(i===f)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var c=d(t,e,r);if("normal"===c.type){if(o=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var n=d(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var s=n.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function C(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,n=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return v.prototype=m,o(_,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(P.prototype),l(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,o,n,s){void 0===s&&(s=Promise);var a=new P(p(e,r,o,n),s);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},t.values=C,E.prototype={constructor:E,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)&&r.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 o(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var i=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(i&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(i){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=e,s?(this.method="next",this.next=s.finallyLoc,f):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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function u(t,e,r,o,n,s,a){try{var i=t[s](a),c=i.value}catch(t){return void r(t)}i.done?e(c):Promise.resolve(c).then(o,n)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(o,n){var s=t.apply(e,r);function a(t){u(s,o,n,a,i,"next",t)}function i(t){u(s,o,n,a,i,"throw",t)}a(void 0)}))}}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={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 a.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 e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(s.b)("operations",["items","appInfo"])),created:function(){this.getProducts(),this.productPrefix=this.appInfo.productPrefix},methods:{getProducts:function(){var t=this;return l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("operations/allData",{path:"/api/all-products"});case 2:case"end":return e.stop()}}),e)})))()},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 e=0;e<this.totalPages;e++)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 e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t.appInfo.currency.symbol),t.quantity=Number(t.form.quantity),e.next=4,t.updateClassName();case 4:t.showBarcode=!0;case 5:case"end":return e.stop()}}),e)})))()},print:function(){var t=this;return l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$htmlToPaper("printMe");case 2:case"end":return e.stop()}}),e)})))()}}},h=(r(611),r(1)),v=Object(h.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;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(e){return e.preventDefault(),t.generateBarcode.apply(null,arguments)},keydown:function(e){return t.form.onKeydown(e)}}},[r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[t.items?r("div",{staticClass:"form-group col-md-6"},[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(e){t.$set(t.form,"product",e)},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-6"},[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(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"paperSize",e.target.multiple?r:r[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:"row mt-3 mb-2"},[r("div",{staticClass:"table-responsive table-custom w-95 m-auto"},[r("table",{staticClass:"table"},[r("thead",[r("tr",[r("th",[t._v(t._s(t.$t("common.code")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.product")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.quantity")))])])]),t._v(" "),t.form.product?r("tbody",[r("tr",[r("td",[t._v("\n "+t._s(t._f("withPrefix")(t.form.product.code,t.productPrefix))+"\n ")]),t._v(" "),r("td",[t._v(t._s(t.form.product.name))]),t._v(" "),r("td",[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(e){e.target.composing||t.$set(t.form,"quantity",e.target.value)}}})])])]):t._e()])])]),t._v(" "),r("div",{staticClass:"row"},[t.items?r("div",{staticClass:"form-group col-md-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.generateWithPrice,expression:"generateWithPrice"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.generateWithPrice)?t._i(t.generateWithPrice,null)>-1:t.generateWithPrice},on:{change:function(e){var r=t.generateWithPrice,o=e.target,n=!!o.checked;if(Array.isArray(r)){var s=t._i(r,null);o.checked?s<0&&(t.generateWithPrice=r.concat([null])):s>-1&&(t.generateWithPrice=r.slice(0,s).concat(r.slice(s+1)))}else t.generateWithPrice=n}}}),t._v(" "+t._s(t.$t("Generate barcode with price"))+"\n ")]):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(e){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"))+" "+t._s(t.form.product.taxType)+" )")]):t._e()]):t._e()],1)})),0)})),0)]):t._e()])])],1)}),[],!1,null,"64b51066",null);e.default=v.exports},506:function(t,e,r){var o=r(612);"string"==typeof o&&(o=[[t.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(39)(o,n);o.locals&&(t.exports=o.locals)},611:function(t,e,r){"use strict";r(506)},612:function(t,e,r){(t.exports=r(38)(!1)).push([t.i,".barcode-tax[data-v-64b51066]{font-size:8px}",""])}}]);
Simpan