⚝
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
/
invoice
/
public
/
dist
/
js
/
View File Name :
156.7d9162.js
/*! For license information please see 156.7d9162.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[156],{436:function(t,r,e){"use strict";e.r(r);var n=e(141),a=e.n(n),o=e(3),i=e(7),c=e.n(i);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 l(){l=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function v(t,r,e,a){var o=r&&r.prototype instanceof h?r:h,i=Object.create(o.prototype),c=new j(a||[]);return n(i,"_invoke",{value:D(t,e,c)}),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var d={};function h(){}function _(){}function p(){}var m={};u(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(L([])));g&&g!==r&&e.call(g,o)&&(m=g);var b=p.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){var a;n(this,"_invoke",{value:function(n,o){function i(){return new r((function(a,i){!function n(a,o,i,c){var l=f(t[a],t,o);if("throw"!==l.type){var u=l.arg,v=u.value;return v&&"object"==s(v)&&e.call(v,"__await")?r.resolve(v.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):r.resolve(v).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}(n,o,a,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,e){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return $()}for(e.method=a,e.arg=o;;){var i=e.delegate;if(i){var c=P(i,e);if(c){if(c===d)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var s=f(t,r,e);if("normal"===s.type){if(n=e.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(n="completed",e.method="throw",e.arg=s.arg)}}}function P(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,P(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),d;var a=f(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,d;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function O(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 C(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function L(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return a.next=a}}return{next:$}}function $(){return{value:void 0,done:!0}}return _.prototype=p,n(b,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:_,configurable:!0}),_.displayName=u(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===_||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,a,o){void 0===o&&(o=Promise);var i=new x(v(r,e,n,a),o);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),u(b,c,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,j.prototype={constructor:j,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(C),!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 n(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=e.call(o,"catchLoc"),s=e.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&e.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=r,o?(this.method="next",this.next=o.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),C(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 n=e.completion;if("throw"===n.type){var a=n.arg;C(e)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:L(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),d}},t}function u(t,r,e,n,a,o,i){try{var c=t[o](i),s=c.value}catch(t){return void e(t)}c.done?r(s):Promise.resolve(s).then(n,a)}function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}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 n=e.call(t,r||"default");if("object"!==s(n))return n;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.view.page_title")}},components:{barcode:a.a},data:function(){return{breadcrumbsCurrent:"products.list.view.breadcrumbs_current",breadcrumbs:[{name:"products.list.view.breadcrumbs_first",url:"home"},{name:"products.list.view.breadcrumbs_second",url:"products.index"},{name:"products.list.view.breadcrumbs_active",url:""}],allData:"",loading:!1}},computed:function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){f(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},Object(o.b)("operations",["appInfo"])),created:function(){this.getProduct(),this.prefix=this.appInfo.productPrefix,this.catPrefix=this.appInfo.proCatPrefix,this.subCatPrefix=this.appInfo.proSubCatPrefix},methods:{printWindow:function(){window.print()},getProduct:function(){var t,r=this;return(t=l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.loading=!0,t.next=3,c.a.get(window.location.origin+"/api/products/"+r.$route.params.slug);case 3:e=t.sent,n=e.data,r.allData=n.data,r.loading=!1;case 7:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,a){var o=t.apply(r,e);function i(t){u(o,n,a,i,c,"next",t)}function c(t){u(o,n,a,i,c,"throw",t)}i(void 0)}))})()}}},h=e(1),_=Object(h.a)(d,(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",[e("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12"},[e("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),t.loading?t._e():e("div",{staticClass:"invoice p-3 mb-3"},[e("div",{staticClass:"row align-items-center flex-row-reverse"},[e("div",{staticClass:"col-lg-6"},[e("table",{staticClass:"table table-hover table-bordered table-md"},[e("tbody",[e("tr",[e("th",[t._v(t._s(t.$t("sidebar.barcode")))]),t._v(" "),e("td",[e("barcode",{attrs:{format:t.allData.symbology,width:"1",height:"25",fontSize:"15",value:t.allData.code}},[t._v("\n "+t._s(t.$t("common.rendering_fails"))+"\n ")])],1)]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.name")))]),t._v(" "),e("td",[t._v(t._s(t.allData.name))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.code")))]),t._v(" "),e("td",[t._v(t._s(t._f("withPrefix")(t.allData.code,t.prefix)))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.item_model")))]),t._v(" "),e("td",[t._v(t._s(t.allData.itemModel))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.barcode_symbology")))]),t._v(" "),e("td",[t._v(t._s(t.allData.symbology))])]),t._v(" "),t.allData.category?e("tr",[e("th",[t._v(t._s(t.$t("common.category")))]),t._v(" "),e("td",[t._v("\n "+t._s(t.allData.category.name)+" ["+t._s(t._f("withPrefix")(t.allData.category.code,t.catPrefix))+"]\n ")])]):t._e(),t._v(" "),t.allData.subCategory?e("tr",[e("th",[t._v(t._s(t.$t("common.sub_category")))]),t._v(" "),e("td",[t._v("\n "+t._s(t.allData.subCategory.name)+" ["+t._s(t._f("withPrefix")(t.allData.subCategory.code,t.subCatPrefix))+"]\n ")])]):t._e(),t._v(" "),t.allData.itemBrand?e("tr",[e("th",[t._v(t._s(t.$t("common.brand")))]),t._v(" "),e("td",[t._v(t._s(t.allData.itemBrand.name))])]):t._e(),t._v(" "),t.allData.itemUnit?e("tr",[e("th",[t._v(t._s(t.$t("common.unit")))]),t._v(" "),e("td",[t._v(t._s(t.allData.itemUnit.code))])]):t._e(),t._v(" "),t.allData.itemTax?e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.product_tax")))]),t._v(" "),e("td",[t._v(t._s(t.allData.itemTax.code))])]):t._e(),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.tax_type")))]),t._v(" "),e("td",[t._v(t._s(t.allData.taxType))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.tax_amount")))]),t._v(" "),e("td",[t._v(t._s(t.allData.taxAmount))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.regular_price")))]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.regularPrice)))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.selling_price")))]),t._v(" "),e("td",[t.allData.discount>0?e("span",[e("del",[t._v(t._s(t._f("withCurrency")(t.allData.regularPrice)))]),t._v("\n "+t._s(t._f("withCurrency")(t.allData.sellingPrice))+" ("+t._s(t.allData.discount)+"%)\n ")]):e("span",[t._v(t._s(t._f("withCurrency")(t.allData.regularPrice))+"\n ")])])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.avg_purchase_price")))]),t._v(" "),e("td",[t._v(t._s(t._f("withCurrency")(t.allData.avgPurchasePrice)))])]),t._v(" "),t.allData.itemUnit?e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.stock")))]),t._v(" "),e("td",[t._v("\n "+t._s(t.allData.availableQty)+" "+t._s(t.allData.itemUnit.code)+"\n ")])]):t._e(),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.inventory_value")))]),t._v(" "),e("td",[t._v("\n "+t._s(t._f("withCurrency")(t.allData.avgPurchasePrice*t.allData.availableQty))+"\n ")])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("products.list.common.alert_quantity")))]),t._v(" "),e("td",[t._v("\n "+t._s(t.allData.alertQty)+"\n "),t.allData.itemUnit?e("span",[t._v(t._s(t.allData.itemUnit.code))]):t._e()])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.note")))]),t._v(" "),e("td",[t._v(t._s(t.allData.note))])]),t._v(" "),e("tr",[e("th",[t._v(t._s(t.$t("common.status")))]),t._v(" "),e("td",[1===t.allData.status?e("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.active")))]):e("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.in_active")))])])])])])]),t._v(" "),e("div",{staticClass:"col-lg-6"},[e("div",{staticClass:"about-avatar text-center"},[t.allData.image?e("img",{staticClass:"img-fluid",attrs:{src:t.allData.image,loading:"lazy"}}):e("img",{staticClass:"img-fluid",attrs:{src:"https://via.placeholder.com/800x1000",loading:"lazy"}})])])]),t._v(" "),e("div",{staticClass:"row no-print mt-5"},[e("div",{staticClass:"col-12"},[e("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"products.index"}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("common.back"))+"\n ")]),t._v(" "),e("a",{staticClass:"btn btn-default",attrs:{href:"#"},on:{click:t.printWindow}},[e("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print")))])],1)])])],1)])],1)}),[],!1,null,null,null);r.default=_.exports}}]);