⚝
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
/
makarnacimmix.xyz
/
public
/
dist
/
js
/
Edit File: 32.cb6440.js
/*! For license information please see 32.cb6440.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[32],{115:function(t,e,r){"use strict";r.r(e);var n=r(3);function o(t){return(o="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 a(){a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.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,o){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:$(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function v(){}function h(){}function m(){}var g={};l(g,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(L([])));b&&b!==e&&r.call(b,c)&&(g=b);var _=m.prototype=v.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var a;n(this,"_invoke",{value:function(n,i){function c(){return new e((function(a,c){!function n(a,i,c,s){var u=f(t[a],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==o(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}(n,i,a,c)}))}return a=a?a.then(c,c):c()}})}function $(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return E()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=P(i,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function P(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=m,n(_,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"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(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(p(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(_),l(_,u,"Generator"),l(_,c,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)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(O),!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 n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function i(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,s,"next",t)}function s(t){i(a,n,o,c,s,"throw",t)}c(void 0)}))}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("products.categories.index.page_title")}},data:function(){return{breadcrumbsCurrent:"products.categories.index.breadcrumbs_current",breadcrumbs:[{name:"products.categories.index.breadcrumbs_first",url:"home"},{name:"products.categories.index.breadcrumbs_second",url:"products.index"},{name:"products.categories.index.breadcrumbs_active",url:""}],prefix:"",query:"",perPage:10}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.b)("operations",["items","loading","pagination","appInfo"])),watch:{query:function(t,e){""===t?this.getData():this.searchData()}},created:function(){this.getData(),this.prefix=this.appInfo.proCatPrefix},methods:{updatePerPager:function(){this.pagination.current_page=1,""===this.query?this.getData():this.searchData()},getData:function(){var t=this;return c(a().mark((function e(){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.state.operations.loading=!0,r=t.pagination?t.pagination.current_page:1,e.next=4,t.$store.dispatch("operations/fetchData",{path:"/api/product-categories?page=",currentPage:r+"&perPage="+t.perPage});case 4:case"end":return e.stop()}}),e)})))()},paginate:function(){var t=this;return c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""===t.query?t.getData():t.searchData();case 1:case"end":return e.stop()}}),e)})))()},resetPagination:function(){var t=this;return c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.pagination.current_page=1;case 1:case"end":return e.stop()}}),e)})))()},searchData:function(){var t=this;return c(a().mark((function e(){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.state.operations.loading=!0,r=t.pagination?t.pagination.current_page:1,e.next=4,t.$store.dispatch("operations/searchData",{path:"/api/product-categories/search",term:t.query,currentPage:r+"&perPage="+t.perPage});case 4:case"end":return e.stop()}}),e)})))()},reload:function(){var t=this;return c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.query="";case 1:case"end":return e.stop()}}),e)})))()},print:function(){var t=this;return c(a().mark((function e(){return a().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)})))()},deleteData:function(t){var e=this;return c(a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:Swal.fire({title:e.$t("common.delete_title"),text:e.$t("products.categories.index.delete_warning"),type:"warning",showCancelButton:!0,confirmButtonText:e.$t("common.delete_confirm_text")}).then((function(r){r.value&&e.$store.dispatch("operations/deleteData",{path:"/api/product-categories/",slug:t}).then((function(t){!0===t?Swal.fire(e.$t("common.deleted"),e.$t("common.delete_success"),"success"):Swal.fire(e.$t("common.failed"),e.$t("common.delete_failed"),"warning")}))}));case 1:case"end":return r.stop()}}),r)})))()}}},p=r(1),f=Object(p.a)(l,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mb-50"},[r("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12"},[r("div",[r("div",{staticClass:"row"},[r("div",{staticClass:"col-xl-2 col-md-3 col-4"},[r("search",{on:{"reset-pagination":function(e){return t.resetPagination()},reload:t.reload},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})],1),t._v(" "),r("div",{staticClass:"col-xl-10 col-md-9 col-8 text-right"},[r("div",{staticClass:"btn-group"},[r("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.export_table"),expression:"$t('common.export_table')"}],staticClass:"btn btn-secondary",attrs:{href:"/product-categories/pdf"}},[r("i",{staticClass:"fas fa-file-export"})]),t._v(" "),r("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.print_table"),expression:"$t('common.print_table')"}],staticClass:"btn btn-info",on:{click:t.print}},[r("i",{staticClass:"fas fa-print"})]),t._v(" "),t.$can("product-category-create")?r("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"productCats.create"}}},[t._v("\n "+t._s(t.$t("common.create"))+"\n "),r("i",{staticClass:"fas fa-plus-circle d-none d-sm-inline-block"})]):t._e()],1)])])]),t._v(" "),r("div",{staticClass:"card-body p-0 position-relative"},[r("table-loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),t._v(" "),r("div",{staticClass:"table-responsive table-custom mt-3",attrs:{id:"printMe"}},[r("table",{staticClass:"table"},[r("thead",[r("tr",[r("th",[t._v(t._s(t.$t("common.s_no")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.code")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.name")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.note")))]),t._v(" "),r("th",[t._v(t._s(t.$t("common.status")))]),t._v(" "),t.$can("product-category-edit")||t.$can("product-category-delete")?r("th",{staticClass:"text-right no-print"},[t._v("\n "+t._s(t.$t("common.action"))+"\n ")]):t._e()])]),t._v(" "),r("tbody",[t._l(t.items,(function(e,n){return r("tr",{directives:[{name:"show",rawName:"v-show",value:t.items.length,expression:"items.length"}],key:n},[r("td",[t.pagination&&t.pagination.current_page>1?r("span",[t._v("\n "+t._s(t.pagination.per_page*(t.pagination.current_page-1)+(n+1))+"\n ")]):r("span",[t._v(t._s(n+1))])]),t._v(" "),r("td",[t._v(t._s(t._f("withPrefix")(e.code,t.prefix)))]),t._v(" "),r("td",[t._v(t._s(e.name))]),t._v(" "),r("td",[t._v(t._s(e.note))]),t._v(" "),r("td",[1===e.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(" "),t.$can("product-category-edit")||t.$can("product-category-delete")?r("td",{staticClass:"text-right no-print"},[r("div",{staticClass:"btn-group"},[t.$can("product-category-edit")?r("router-link",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.edit"),expression:"$t('common.edit')"}],staticClass:"btn btn-info btn-sm",attrs:{to:{name:"productCats.edit",params:{slug:e.slug}}}},[r("i",{staticClass:"fas fa-edit"})]):t._e(),t._v(" "),t.$can("product-category-delete")?r("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("common.delete"),expression:"$t('common.delete')"}],staticClass:"btn btn-danger btn-sm",attrs:{href:"#"},on:{click:function(r){return t.deleteData(e.slug)}}},[r("i",{staticClass:"fas fa-trash"})]):t._e()],1)]):t._e()])})),t._v(" "),r("tr",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&!t.items.length,expression:"!loading && !items.length"}]},[r("td",{attrs:{colspan:"6"}},[r("EmptyTable")],1)])],2)])])],1),t._v(" "),r("div",{staticClass:"dtable-footer"},[r("div",{staticClass:"form-group row display-per-page"},[r("label",[t._v(t._s(t.$t("per_page"))+" ")]),t._v(" "),r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:t.perPage,expression:"perPage"}],staticClass:"form-control form-control-sm ml-1",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.perPage=e.target.multiple?r:r[0]},t.updatePerPager]}},[r("option",{attrs:{value:"10"}},[t._v("10")]),t._v(" "),r("option",{attrs:{value:"25"}},[t._v("25")]),t._v(" "),r("option",{attrs:{value:"50"}},[t._v("50")]),t._v(" "),r("option",{attrs:{value:"100"}},[t._v("100")])])])]),t._v(" "),t.pagination&&t.pagination.last_page>1?r("pagination",{staticClass:"justify-flex-end",attrs:{pagination:t.pagination,offset:5},on:{paginate:t.paginate}}):t._e()],1)])])],1)}),[],!1,null,null,null);e.default=f.exports}}]);
Simpan