⚝
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
/
works.probilgiegitim.com
/
public
/
dist
/
js
/
Edit File: 129.4d3637.js
/*! For license information please see 129.4d3637.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[129],{507:function(t,r,e){"use strict";e.r(r);var n=e(168),a=e.n(n),o=e(4),i=e(3),c=e.n(i),s=e(16),l=e.n(s);function u(t){return(u="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 v(){v=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 s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function l(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=l;var d={};function h(){}function p(){}function _(){}var m={};s(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y($([])));g&&g!==r&&e.call(g,o)&&(m=g);var b=_.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(r){s(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 s=f(t[a],t,o);if("throw"!==s.type){var l=s.arg,v=l.value;return v&&"object"==u(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){l.value=t,i(l)}),(function(t){return n("throw",t,i,c)}))}c(s.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 L()}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 C(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 j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function $(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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=_,n(b,"constructor",{value:_,configurable:!0}),n(_,"constructor",{value:p,configurable:!0}),p.displayName=s(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),s(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(l(r,e,n,a),o);return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),s(b,c,"Generator"),s(b,o,(function(){return this})),s(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=$,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(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 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),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 n=e.completion;if("throw"===n.type){var a=n.arg;O(e)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:$(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),d}},t}function f(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 d(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 h(t,r,e){return(r=function(t){var r=function(t,r){if("object"!==u(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===u(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var p={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?d(Object(e),!0).forEach((function(r){h(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(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=v().mark((function t(){var e,n;return v().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){f(o,n,a,i,c,"next",t)}function c(t){f(o,n,a,i,c,"throw",t)}i(void 0)}))})()},generatePDF:function(){var t=document.getElementById("content-to-pdf"),r={margin:5,filename:"Product-"+this.$route.params.slug+".pdf",image:{type:"jpeg",quality:.98},pagebreak:{mode:"avoid-all",before:"#page-break"},html2canvas:{scale:2},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};l()().from(t).set(r).save()}}},_=e(1),m=Object(_.a)(p,(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 no-print mb-2"},[r("div",{staticClass:"w-100 text-right float-right"},[t.allData?r("div",{staticClass:"btn-group"},[r("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(r){return t.generatePDF()}}},[r("i",{staticClass:"fas fa-download"}),t._v(" "+t._s(t.$t("download"))+"\n ")]),t._v(" "),r("a",{staticClass:"btn btn-secondary",attrs:{href:"#"},on:{click:function(r){return t.printWindow()}}},[r("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.$t("common.print"))+"\n ")]),t._v(" "),t.$can("product-edit")?r("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"products.edit",params:{slug:t.allData.slug}}}},[r("i",{staticClass:"fas fa-edit"}),t._v(" "+t._s(t.$t("common.edit"))+"\n ")]):t._e(),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._e()])]),t._v(" "),r("div",{staticClass:"row"},[r("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),t.loading?t._e():r("div",{staticClass:"invoice p-3 mb-3 w-100",attrs:{id:"content-to-pdf"}},[r("div",{staticClass:"row align-items-center flex-row-reverse"},[r("div",{staticClass:"col-lg-6"},[r("table",{staticClass:"table table-hover table-bordered table-md"},[r("tbody",[r("tr",[r("th",[t._v(t._s(t.$t("sidebar.barcode")))]),t._v(" "),r("td",[r("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(" "),r("tr",[r("th",[t._v(t._s(t.$t("common.name")))]),t._v(" "),r("td",[t._v(t._s(t.allData.name))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("common.code")))]),t._v(" "),r("td",[t._v(t._s(t._f("withPrefix")(t.allData.code,t.prefix)))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("common.item_model")))]),t._v(" "),r("td",[t._v(t._s(t.allData.itemModel))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.barcode_symbology")))]),t._v(" "),r("td",[t._v(t._s(t.allData.symbology))])]),t._v(" "),t.allData.category?r("tr",[r("th",[t._v(t._s(t.$t("common.category")))]),t._v(" "),r("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?r("tr",[r("th",[t._v(t._s(t.$t("common.sub_category")))]),t._v(" "),r("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?r("tr",[r("th",[t._v(t._s(t.$t("common.brand")))]),t._v(" "),r("td",[t._v(t._s(t.allData.itemBrand.name))])]):t._e(),t._v(" "),t.allData.itemUnit?r("tr",[r("th",[t._v(t._s(t.$t("common.unit")))]),t._v(" "),r("td",[t._v(t._s(t.allData.itemUnit.code))])]):t._e(),t._v(" "),t.allData.itemTax?r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.product_tax")))]),t._v(" "),r("td",[t._v(t._s(t.allData.itemTax.code))])]):t._e(),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.tax_type")))]),t._v(" "),r("td",[t._v(t._s(t.allData.taxType))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.tax_amount")))]),t._v(" "),r("td",[t._v(t._s(t.allData.taxAmount))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.regular_price")))]),t._v(" "),r("td",[t._v(t._s(t._f("withCurrency")(t.allData.regularPrice)))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.selling_price")))]),t._v(" "),r("td",[t.allData.discount>0?r("span",[r("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 ")]):r("span",[t._v(t._s(t._f("withCurrency")(t.allData.regularPrice))+"\n ")])])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.avg_purchase_price")))]),t._v(" "),r("td",[t._v(t._s(t._f("withCurrency")(t.allData.avgPurchasePrice)))])]),t._v(" "),t.allData.itemUnit?r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.stock")))]),t._v(" "),r("td",[t._v("\n "+t._s(t.allData.availableQty)+" "+t._s(t.allData.itemUnit.code)+"\n ")])]):t._e(),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.inventory_value")))]),t._v(" "),r("td",[t._v("\n "+t._s(t._f("withCurrency")(t.allData.avgPurchasePrice*t.allData.availableQty))+"\n ")])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("products.list.common.alert_quantity")))]),t._v(" "),r("td",[t._v("\n "+t._s(t.allData.alertQty)+"\n "),t.allData.itemUnit?r("span",[t._v(t._s(t.allData.itemUnit.code))]):t._e()])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("common.note")))]),t._v(" "),r("td",[t._v(t._s(t.allData.note))])]),t._v(" "),r("tr",[r("th",[t._v(t._s(t.$t("common.status")))]),t._v(" "),r("td",[1===t.allData.status?r("span",{staticClass:"badge bg-success"},[t._v(t._s(t.$t("common.active")))]):r("span",{staticClass:"badge bg-danger"},[t._v(t._s(t.$t("common.in_active")))])])])])])]),t._v(" "),r("div",{staticClass:"col-lg-6 no-print"},[r("div",{staticClass:"about-avatar text-center"},[t.allData.image?r("img",{staticClass:"img-fluid",attrs:{src:t.allData.image,loading:"lazy"}}):r("img",{staticClass:"img-fluid",attrs:{src:"https://via.placeholder.com/800x1000",loading:"lazy"}})])])])])],1)],1)}),[],!1,null,null,null);r.default=m.exports}}]);
Simpan