PageSourceSearch

https://id.namtrunglog.com/js/app.6ef0f638.js

js namtrunglog.com collected 2026-10-02 01:37:22 UTC 65,589 bytes, 2 lines download raw bytes

1(function(e){function t(t){for(var a,r,i=t[0],s=t[1],u=t[2],l=0,f=[];l<i.length;l++)r=i[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&f.push(o[r][0]),o[r]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],a=!0,r=1;r<n.length;r++){var i=n[r];0!==o[i]&&(a=!1)}a&&(c.splice(t--,1),e=s(s.s=n[0]))}return e}var a={},r={app:0},o={app:0},c=[];function i(e){return s.p+"js/"+({}[e]||e)+"."+{"chunk-03da5050":"3892a0f0","chunk-0a914058":"9189691a","chunk-10fbf152":"b0c2bb6a","chunk-3ba1d5dc":"f26613d3","chunk-7d477f4c":"4dffa08d","chunk-17a22602":"db325b2b","chunk-1cdb0b62":"3860641a","chunk-2acd8151":"903d7625","chunk-2d0be6ba":"254c0e19","chunk-2d0c8f87":"15fa387e","chunk-2d0cc662":"f2604ddb","chunk-2d0d328a":"ae028834","chunk-2d0d7448":"3f96f7ae","chunk-2d213b09":"4b78722a","chunk-2d228bfa":"a89bdc35","chunk-331b5c38":"424578e9","chunk-3bbf8988":"73114f1a","chunk-26474866":"220f85cd","chunk-3fade82b":"fb3ecbd0","chunk-40837d59":"bced1940","chunk-4cf1c776":"949ca5d9","chunk-20e7cc76":"351b4797","chunk-4dcf7157":"b51409e5","chunk-59fd473d":"cddac0f4","chunk-5af2e805":"4f788ed6","chunk-5ee9b75b":"8662a368","chunk-64a6ee6e":"6c10559e","chunk-704e4101":"84d72382","chunk-9ee61f54":"32b726ed","chunk-d800a9b4":"34fc05c0","chunk-3e1372d9":"cceeb7a8","chunk-a82f7c02":"188dae97","chunk-b8c412da":"e70b8474","chunk-c18a1254":"f715fc08","chunk-df124f7e":"ec016410","chunk-f8d351b6":"84fbd080","chunk-ff1d70ba":"7c1bc276"}[e]+".js"}function s(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(e){var t=[],n={"chunk-03da5050":1,"chunk-0a914058":1,"chunk-10fbf152":1,"chunk-3ba1d5dc":1,"chunk-17a22602":1,"chunk-1cdb0b62":1,"chunk-2acd8151":1,"chunk-331b5c38":1,"chunk-3bbf8988":1,"chunk-26474866":1,"chunk-3fade82b":1,"chunk-40837d59":1,"chunk-4cf1c776":1,"chunk-20e7cc76":1,"chunk-4dcf7157":1,"chunk-59fd473d":1,"chunk-5af2e805":1,"chunk-5ee9b75b":1,"chunk-64a6ee6e":1,"chunk-704e4101":1,"chunk-9ee61f54":1,"chunk-d800a9b4":1,"chunk-3e1372d9":1,"chunk-a82f7c02":1,"chunk-b8c412da":1,"chunk-c18a1254":1,"chunk-df124f7e":1,"chunk-f8d351b6":1,"chunk-ff1d70ba":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-03da5050":"d6bc9d18","chunk-0a914058":"c7522f57","chunk-10fbf152":"a1267815","chunk-3ba1d5dc":"32b92191","chunk-7d477f4c":"31d6cfe0","chunk-17a22602":"fcb6c043","chunk-1cdb0b62":"773f8c59","chunk-2acd8151":"6ffc1aae","chunk-2d0be6ba":"31d6cfe0","chunk-2d0c8f87":"31d6cfe0","chunk-2d0cc662":"31d6cfe0","chunk-2d0d328a":"31d6cfe0","chunk-2d0d7448":"31d6cfe0","chunk-2d213b09":"31d6cfe0","chunk-2d228bfa":"31d6cfe0","chunk-331b5c38":"5854e33c","chunk-3bbf8988":"0e433876","chunk-26474866":"72729267","chunk-3fade82b":"51b9ebaf","chunk-40837d59":"8ec61816","chunk-4cf1c776":"f0f9d0a5","chunk-20e7cc76":"36c4345d","chunk-4dcf7157":"a81bfe34","chunk-59fd473d":"7d79a4e5","chunk-5af2e805":"9ada83c2","chunk-5ee9b75b":"b521da9c","chunk-64a6ee6e":"b0b2ab0c","chunk-704e4101":"7668dc5e","chunk-9ee61f54":"3c298935","chunk-d800a9b4":"451a9860","chunk-3e1372d9":"0dd74ad4","chunk-a82f7c02":"97ea0ee9","chunk-b8c412da":"feb3a32d","chunk-c18a1254":"021032df","chunk-df124f7e":"ed96fdc7","chunk-f8d351b6":"0ee30e80","chunk-ff1d70ba":"293abd71"}[e]+".css",o=s.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var u=c[i],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===o))return t()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){u=f[i],l=u.getAttribute("data-href");if(l===a||l===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[e],d.parentNode.removeChild(d),n(c)},d.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(d)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var c=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=c);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.src=i(e);var f=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",f.name="ChunkLoadError",f.type=a,f.request=r,n[1](f)}o[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},s.m=e,s.c=a,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=l;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},1251:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n("d225"),r=n("b0b4"),o=n("bc3a"),c=n.n(o),i=n("1fe7"),s=n("cc32"),u=function(){function e(){Object(a["a"])(this,e)}return Object(r["a"])(e,null,[{key:"instance",value:function(){var e="".concat(i["a"].baseDomain,"/client"),t=c.a.create({baseURL:e,headers:s["a"].isToken()?{Authorization:"Bearer ".concat(s["a"].getToken())}:null});return t.interceptors.request.use((function(e){return e}),(function(e){})),t.interceptors.response.use((function(e){return e}),(function(e){})),t}}]),e}()},1303:function(e,t,n){"use strict";n("5ea9")},"1fe7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={baseDomain:"",mediaDomain:"https://media.namtrunglog.com",authSetting:{tokenName:"token"},settings:{main_domain:"https://namtrunglog.com",firebase_prefix:"thanglinhlogistics",firebase_storage:"https://firebasestorage.googleapis.com/v0/b/oee-app-cc5a1.appspot.com/o"},eventBusAction:{disableMenuLeft:"disableMenuLeft",disableHeader:"disableHeader",showHideMenuLeft:"showHideMenuLeft",reloadWithdrawalHistories:"reloadWithdrawalHistories",selectRechargeHistory:"selectRechargeHistory",reloadNotification:"reloadNotification"},stateKey:{authStore:"authStore",commonStore:"commonStore",cartState:"cartState"},sqlDateFormat:"YYYY-MM-DD hh:mm:ss",notifyRefreshTime:30}},"2b1b":function(e,t,n){},"391c":function(e,t,n){"use strict";n("d0f2")},4597:function(e,t,n){"use strict";n("96cf");var a=n("3b8d"),r=n("1251"),o=n("cc32"),c=n("c6dc");t["a"]={register:function(e){return r["a"].instance().put("/api/customers/",e)},login:function(e){return r["a"].instance().post("/api-token-auth/",e)},logout:function(e){return r["a"].instance().post("/api/logout/",e)},forgot:function(e){return r["a"].instance().post("/api/forgot-pwd/",e)},verifyToken:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!o["a"].isToken()){e.next=6;break}return t={token:o["a"].getToken(),FirebaseToken:c["a"].get("FCM_Token")},e.next=5,r["a"].instance().post("/api-token-verify/",t);case 5:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",!1);case 9:return e.prev=9,e.t0=e["catch"](0),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),customersInfo:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].instance().get("/api/customers/".concat(t)));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),updateCustomersInfo:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].instance().post("/api/customers/".concat(t),n));case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}(),verifyEmail:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].instance().post("/api/customers/verify/",t));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"
10f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="4678"},"5ea9":function(e,t,n){},"674e":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n("b0b4"),r=n("d225"),o=Object(a["a"])((function e(){Object(r["a"])(this,e)}))},"6b3f":function(e,t,n){"use strict";(function(e){n("6b54");var a=n("1251");t["a"]={exchangeRate:function(){return a["a"].instance().get("/api/exchange_rate/")},configuration:function(){return a["a"].instance().get("/api/configuration/1")},feeBuyPro:function(){return a["a"].instance().get("/api/feebuypro/")},getCustomerLevels:function(){return a["a"].instance().get("/api/customer_levels/")},getWarehouse:function(){return a["a"].instance().get("/api/stores/")},getChinaStore:function(){return a["a"].instance().get("/api/chinaStores/")},getFeeGuarantee:function(){return a["a"].instance().get("/api/feeguarantee/")},getDetailChinaStore:function(e){return a["a"].instance().get("/api/chinaStores/".concat(e))},getNotification:function(t,n,r,o){var c=r&&r.length>0?e.from(JSON.stringify({filter:r})).toString("base64"):"",i="/api/notifications/?page=".concat(t,"&rowsPerPage=").concat(n,"&filter=").concat(c,"&bell=").concat(o);return a["a"].instance().get(i)},updateStatusNotification:function(e,t){var n="/api/notifications/".concat(e);return a["a"].instance().post(n,t)},uploadR2File:function(e){var t=new FormData;return t.append("file",e),a["a"].instance().post("/api/upload/r2/",t)},uploadFile:function(e,t){return this.uploadR2File(e)},getBankInfo:function(){return a["a"].instance().get("/api/bankInfo/")}}}).call(this,n("b639").Buffer)},"7e66":function(e,t,n){},a196:function(e,t,n){"use strict";n("d950")},b213:function(e,t,n){"use strict";n("7e66")},c6dc:function(e,t,n){"use strict";var a={exist:r,get:o,set:c,remove:i,clear:s};function r(e){return null!=window.localStorage.getItem(e)}function o(e){if(!r(e))return null;var t=window.localStorage.getItem(e);return JSON.parse(t)}function c(e,t){window.localStorage.setItem(e,JSON.stringify(t))}function i(e){window.localStorage.removeItem(e)}function s(e){window.localStorage.clear()}t["a"]=a},cc32:function(e,t,n){"use strict";var a=n("c6dc"),r=n("1fe7"),o={getToken:c,setToken:i,removeToken:s,isToken:u};function c(){return a["a"].get(r["a"].authSetting.tokenName)}function i(e){a["a"].set(r["a"].authSetting.tokenName,e)}function s(){a["a"].remove(r["a"].authSetting.tokenName)}function u(){return!!a["a"].get(r["a"].authSetting.tokenName)}t["a"]=o},cd49:function(e,t,n){"use strict";n.r(t),n.d(t,"eventBus",(function(){return bt}));n("8e6e"),n("ac6a"),n("456d");var a=n("bd86"),r=(n("cadf"),n("551c"),n("f751"),n("097d"),n("2b0e")),o=n("2b27"),c=n.n(o),i=n("8c4f"),s=n("7bb1"),u=n("4c93"),l=n("ee98"),f=n.n(l),d=(n("e40d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ntl-app-root"},[e.disableHeader?e._e():n("app-header"),n("section",{staticClass:"ntl-app-section"},[e.disableMenuLeft?e._e():n("left-menu"),e.showMenu?n("div",{staticClass:"mask",on:{click:function(t){return e.onClickMask()}}}
1):e._e(),n("div",{staticClass:"mainpanel",class:{"no-left":e.disableMenuLeft,pd0:e.disableHeader,ml0:!e.showMenu,ml256:e.showMenu}},[n("div",{staticClass:"contentpanel",class:{pd0:e.disableHeader}},[n("router-view")],1)])],1),n("notifications",{attrs:{group:"foo",position:"top center",classes:"hpo-notification",width:"350"}})],1)}),h=[],m=(n("2397"),n("96cf"),n("3b8d")),p=(n("7f7f"),n("d225")),b=n("b0b4"),v=n("4e2b"),g=n("308d"),k=n("6bb5"),y=n("9ab4"),x=n("60a3"),w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"ntl-header sticky top-0 z-40 bg-white border-b border-slate-200 shadow-sm"},[n("div",{staticClass:"h-16 flex items-center justify-between mx-auto max-w-full"},[n("div",{staticClass:"flex items-center"},[e.showMenuLeft?n("div",{staticClass:"w-[255px] shrink-0 h-16 px-4 flex items-center justify-center border-r border-slate-200/80"},[n("a",{staticClass:"flex items-center justify-center w-full no-underline hover:opacity-90 transition",attrs:{href:e.main_domain,target:"_blank",rel:"noopener noreferrer"}},[n("img",{staticClass:"h-11 max-h-12 w-auto max-w-full object-contain",attrs:{src:"assets/images/logo/v-logo-light.png",alt:"NamTrung Logistics"}})])]):e._e(),n("button",{staticClass:"w-9 h-9 rounded-xl border border-slate-200 flex items-center justify-center text-slate-600 hover:text-brand-600 hover:bg-brand-50 transition-colors focus:outline-none shrink-0",class:e.showMenuLeft?"ml-4":"ml-4 lg:ml-6",attrs:{title:"Đóng/Mở Menu"},on:{click:function(t){return e.onToggleMenu()}}},[n("i",{staticClass:"fa-solid fa-bars text-base"})])]),n("div",{staticClass:"flex items-center gap-3 px-4 lg:px-6"},[e.userInfo.userId>0&&e.isToken?n("div",{staticClass:"btn-group relative"},[n("button",{staticClass:"w-10 h-10 rounded-full bg-slate-50 border border-slate-200 flex items-center justify-center text-slate-500 hover:text-brand-600 hover:bg-brand-50 transition-colors relative focus:outline-none",attrs:{"data-toggle":"dropdown","aria-expanded":"false"}},[n("i",{staticClass:"fa-regular fa-bell text-lg"}),e.totalNotify>0?n("span",{staticClass:"absolute top-0 right-0 w-4 h-4 bg-rose-500 text-white text-[10px] font-bold flex items-center justify-center rounded-full border-2 border-white"},[e._v("\n                        "+e._s(e.totalNotify>99?"99+":e.totalNotify)+"\n                    ")]):e._e()]),n("notification",{on:{totalNotification:function(t){return e.getTotalNotification(t)}}})],1):e._e(),n("div",{staticClass:"h-6 w-px bg-slate-200"}),e.userInfo.userId>0&&e.isToken?n("div",{staticClass:"btn-group relative"},[n("button",{staticClass:"flex items-center gap-2.5 p-1 sm:p-1.5 rounded-xl hover:bg-slate-50 border border-transparent hover:border-slate-200 transition cursor-pointer focus:outline-none bg-transparent",attrs:{type:"button","data-toggle":"dropdown"}},[n("img",{staticClass:"w-9 h-9 rounded-full ring-2 ring-brand-500/30 object-cover",attrs:{src:e.userAvatar,alt:"Avatar"}}),n("div",{staticClass:"hidden sm:block text-left"},[n("div",{staticClass:"flex items-center gap-1.5"},[n("span",{staticClass:"text-xs font-bold text-slate-800 leading-tight"},[e._v(e._s(e.userInfo.userName))]),e.customerLevelsDetail?n("span",{staticClass:"px-1.5 py-0.5 bg-brand-50 text-brand-600 text-[10px] font-bold rounded border border-brand-200/60"},[e._v("\n                                "+e._s(e.customerLevelsDetail.VIPName||"Thân thiết")+"\n                            ")]):e._e()]),e.customerInfo.UserCode?n("span",{staticClass:"text-[10px] text-brand-600 font-bold leading-tight"},[e._v("\n                            Mã KH: "),n("strong",[e._v(e._s(e.customerInfo.UserCode))])]):e._e()]),n("i",{staticClass:"fa-solid fa-chevron-down text-slate-400 text-[10px] ml-1"})]),n("ul",{staticClass:"dropdown-menu pull-right ntl-user-dropdown shadow-lg rounded-2xl border border-slate-200 p-2 min-w-[200px]"},[n("li",[n("router-link",{staticClass:"flex items-center gap-2.5 px-3 py-2 text-xs font-medium text-slate-700 hover:text-brand-600 hover:bg-brand-50 rounded-xl transition",attrs:{to:{name:"profile"}}},[n("i",{staticClass:"fa-solid fa-user-gear w-4 text-slate-400"}),e._v(" Thông tin tài khoản\n                        ")])],1),n("li",[n("router-link",{staticClass:"flex items-center gap-2.5 px-3 py-2 text-xs font-medium text-slate-700 hover:text-brand-600 hover:bg-brand-50 rounded-xl transition",attrs:{to:{name:"credit"}}},[n("i",{staticClass:"fa-solid fa-money-bill-transfer w-4 text-slate-400"}),e._v(" Nạp rút tiền\n                        ")])],1),n("li",{staticClass:"divider my-1 border-t border-slate-100"}),n("li",[n("a",{staticClass:"flex items-center gap-2.5 px-3 py-2 text-xs font-medium text-rose-600 hover:bg-rose-50 rounded-xl transition",attrs:{href:"javascript: void(0)"},on:{click:e.onLogout}},[n("i",{staticClass:"fa-solid fa-arrow-right-from-bracket w-4 text-rose-500"}),e._v(" Đăng xuất\n                        ")])])])]):e._e(
1)])])])},j=[],C=(n("7514"),n("cc32")),O=n("1fe7"),S=n("4597"),_=n("c6dc"),I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dropdown-menu dm-notice shadow-2xl rounded-2xl border border-slate-200 bg-white p-0 overflow-hidden w-80 sm:w-96 right-0 left-auto mt-2 z-50"},[n("div",{staticClass:"p-3.5 px-4 border-b border-slate-100 bg-white flex items-center justify-between"},[n("div",{staticClass:"flex items-center gap-2"},[n("span",{staticClass:"font-bold text-sm text-slate-800"},[e._v("Thông báo")]),e.unreadCount>0?n("span",{staticClass:"px-2 py-0.5 rounded-full text-[11px] font-bold bg-brand-100 text-brand-700"},[e._v("\n                "+e._s(e.unreadCount)+" mới\n            ")]):e._e()]),n("button",{staticClass:"text-slate-400 hover:text-brand-600 transition p-1 text-xs focus:outline-none",staticStyle:{border:"none !important","background-color":"transparent !important"},attrs:{type:"button",title:"Làm mới"},on:{click:function(t){return t.stopPropagation(),e.loadNotification()}}},[n("i",{staticClass:"fa-solid fa-arrows-rotate",class:{"fa-spin":e.isLoading}})])]),n("div",{staticClass:"max-h-[380px] overflow-y-auto custom-scrollbar relative divide-y divide-slate-100"},[e.listNotification.length>0?e._l(e.listNotification,(function(t){return n("div",{key:t.id,staticClass:"p-3.5 px-4 flex items-start gap-3 transition-colors cursor-pointer hover:bg-slate-50 group",class:0===t.status?"bg-orange-50/50":"bg-white",on:{click:function(n){return e.onReadNotification(t)}}},[n("div",{staticClass:"w-8 h-8 rounded-xl flex items-center justify-center shrink-0 mt-0.5 text-xs transition",class:0===t.status?"bg-brand-100 text-brand-600 font-bold":"bg-slate-100 text-slate-500 group-hover:bg-brand-50 group-hover:text-brand-600"},[n("i",{staticClass:"fa-solid fa-bell"})]),n("div",{staticClass:"flex-1 min-w-0"},[n("div",{staticClass:"text-xs leading-relaxed text-slate-700 break-words notif-message",class:0===t.status?"font-semibold text-slate-900":"font-normal",domProps:{innerHTML:e._s(t.message)}}),n("div",{staticClass:"text-[11px] text-slate-400 mt-1 flex items-center gap-1.5 font-medium"},[n("i",{staticClass:"fa-regular fa-clock text-[10px]"}),n("span",[e._v(e._s(e._f("formatDate")(t.createdDate,"DD-MM-YYYY HH:mm:ss")))])])]),0===t.status?n("div",{staticClass:"w-2 h-2 rounded-full bg-brand-500 shrink-0 mt-1.5 shadow-sm"}):e._e()])})):e._e(),!e.listNotification.length>0&&!e.isLoading?[e._m(0)]:e._e(),e.isLoading?n("div",{staticClass:"absolute inset-0 bg-white/70 backdrop-blur-xs flex items-center justify-center z-10"},[n("div",{staticClass:"w-6 h-6 border-2 border-brand-500 border-t-transparent rounded-full animate-spin"})]):e._e()],2),n("div",{staticClass:"p-2.5 px-4 border-t border-slate-100 bg-slate-50/70 text-center"},[n("router-link",{staticClass:"inline-flex items-center justify-center gap-1.5 text-xs font-semibold text-brand-600 hover:text-brand-700 transition no-underline py-1",attrs:{to:{name:"notification"}}},[n("span",[e._v("Xem tất cả thông báo")]),n("i",{staticClass:"fa-solid fa-arrow-right text-[10px]"})])],1)])},R=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"py-12 px-4 text-center"},[n("div",{staticClass:"w-12 h-12 mx-auto mb-3 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center text-lg"},[n("i",{staticClass:"fa-regular fa-bell-slash"})]),n("p",{staticClass:"text-xs font-semibold text-slate-600"},[e._v("Không tìm thấy thông báo")]),n("p",{staticClass:"text-[11px] text-slate-400 mt-0.5"},[e._v("Bạn đã xem hết tất cả thông báo mới.")])])}],N=(n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("6b54"),n("674e")),L=n("6b3f");function E(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=T(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(i)throw o}}}}function T(e,t){if(e){if("string"===typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function P(e){var t=A();return function(){var n,a=Object(k["a"])(e);if(t){var r=Object(k["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(g["a"])(this,n)}}function A(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var $=function(e){Object(v["a"])(n,e);var t=P(n);function n(){var e;return Object(p["a"])(this,n),e=t.apply(this,arguments),e.eventEmit={totalNotification:"totalNotification"},e.pageSettings={rowPerPage:10,pageSize:3,pageIndex:1,total:0},e.listNotification=[],e.isLoading=!1,e}return Object(b["a"])(n,[{key:"unreadCount",get:function(){return(this.listNotification||[]).filter((function(e){return 0===e.status})).length}},{key:"created",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.timer=setInterval((function(){t.loadNotification()}),1e3*O["a"].notifyRefreshTime),bt.$on(O["a"].eventBusAction.reloadNotification,(function(){t.loadNotification()})),this.loadNotification();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"destroyed",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:clearInterval(this.timer);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"loadNotification",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.listNotification=[],this.isLoading=!0,t=[{column:"Status",value:[0,2],
1condition:"in"}],e.next=5,L["a"].getNotification(this.pageSettings.pageIndex,this.pageSettings.rowPerPage,t,!0);case 5:if(n=e.sent,n&&200===n.status&&200===n.data.status){a=E(n.data.data);try{for(a.s();!(r=a.n()).done;)o=r.value,c=new N["a"],c.createdDate=o.CreatedDate,c.id=o.ID,c.isBuy=o.IsBuy,c.mainOrder=o.MainOrder,c.message=o.Message,c.orderId=o.OrderID,c.orderType=o.OrderType,c.receivedId=o.ReceivedID,c.status=o.Status,this.listNotification.push(c)}catch(i){a.e(i)}finally{a.f()}0===this.listNotification.length?this.$emit(this.eventEmit.totalNotification,0):this.$emit(this.eventEmit.totalNotification,this.listNotification.filter((function(e){return 0===e.status})).length)}this.isLoading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleScroll",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onReadNotification",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.prev=0,L["a"].updateStatusNotification(t.id,{Status:1}).then((function(e){e&&200===e.status&&200===e.data.status&&n.loadNotification()})),this.$router.push({name:"order-detail",params:{orderId:t.orderId.toString()}}).catch((function(){return!1})),e.next=8;break;case 5:return e.prev=5,e.t0=e["catch"](0),e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(x["c"]);$=Object(y["__decorate"])([Object(x["a"])({})],$);var D=$,F=D,B=(n("a196"),n("2877")),U=Object(B["a"])(F,I,R,!1,null,"949e23ea",null),H=U.exports;function K(e){var t=z();return function(){var n,a=Object(k["a"])(e);if(t){var r=Object(k["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(g["a"])(this,n)}}function z(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var G=function(e){Object(v["a"])(n,e);var t=K(n);function n(){var e;return Object(p["a"])(this,n),e=t.apply(this,arguments),e.isOpenMenuUser=!1,e.totalNotify=0,e.searchKeyword="",e}return Object(b["a"])(n,[{key:"watchUserInfo",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.userInfo&&this.$cookies.set("mhe_user",this.userInfo.userName,-1,"","namtrunglog.com");case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showMenuLeft",get:function(){return this.$store.state[O["a"].stateKey.commonStore].showMenuLeft}},{key:"userInfo",get:function(){return this.$store.state[O["a"].stateKey.authStore].userInfo||{}}},{key:"customerInfo",get:function(){return this.$store.state[O["a"].stateKey.authStore].customerInfo||{}}},{key:"customerLevels",get:function(){return this.$store.state[O["a"].stateKey.commonStore].customerLevels}},{key:"customerLevelsDetail",get:function(){var e=this;return(this.customerLevels||[]).find((function(t){return t.ID===(e.customerInfo.LevelID||1)}))}},{key:"main_domain",get:function(){return O["a"].settings.main_domain}},{key:"isToken",get:function(){return C["a"].isToken()}},{key:"userAvatar",get:function(){return this.userInfo&&this.userInfo.userName?"https://ui-avatars.com/api/?name=".concat(encodeURIComponent(this.userInfo.userName),"&background=ea580c&color=fff&bold=true"):"assets/images/photos/loggeduser.png"}},{key:"onOpenUserMenu",value:function(){this.isOpenMenuUser=!this.isOpenMenuUser}},{key:"onLogout",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={username:"",password:"",FirebaseToken:_["a"].get("FCM_Token")},e.next=3,S["a"].logout(t);case 3:e.sent,window["getApp"].$emit("APP_LOGOUT");case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onToggleMenu",value:function(){window["getApp"].$emit("SHOW_HIDE_MENU_LEFT",!this.showMenuLeft)}},{key:"getTotalNotification",value:function(e){this.totalNotify=e}},{key:"onGlobalSearch",value:function(){this.searchKeyword.trim()&&this.$router.push({name:"order-index",query:{q:this.searchKeyword.trim()}}).catch((function(e){return e}))}}]),n}(x["c"]);Object(y["__decorate"])([Object(x["d"])("userInfo",{immediate:!0,deep:!0})],G.prototype,"watchUserInfo",null),G=Object(y["__decorate"])([Object(x["a"])({components:{notification:H}})],G);var W=G,Y=W,V=(n("391c"),Object(B["a"])(Y,w,j,!1,null,"10e53d3a",null)),q=V.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"ntl-sidebar",class:{open:e.showMenu,closed:!e.showMenu}},[n("div",{staticClass:"ntl-sidebar-inner flex flex-col justify-between h-full bg-white border-r border-slate-200/80"},[n("div",{staticClass:"overflow-y-auto custom-scrollbar flex-1 pb-4"},[n("div",{staticClass:"h-16 px-4 flex lg:hidden items-center justify-center border-b border-slate-100 bg-white sticky top-0 z-10 w-full"},[n("a",{staticClass:"flex items-center justify-center w-full no-underline hover:opacity-90 transition",attrs:{href:e.main_domain,target:"_blank"}},[n("img",{staticClass:"h-11 max-h-12 w-auto max-w-full object-contain",attrs:{src:"assets/images/logo/v-logo-light.png",alt:"NamTrung Logistics"}})])]),n("div",{staticClass:"m-4 p-4 rounded-2xl bg-orange-50/60 border border-brand-100 shadow-sm relative overflow-hidden"},[n("div",{staticClass:"flex items-center justify-between mb-2"},[n("span",{staticClass:"text-xs font-semibold text-slate-500 uppercase tracking-wider"},[e._v("\n                        Mã KH: "),e.customerInfo.UserCode?n("strong",{staticClass:"text-brand-600 font-bold"}
1,[e._v(e._s(e.customerInfo.UserCode))]):e._e()]),e.customerLevelsDetail?n("span",{staticClass:"px-1.5 py-0.5 text-[10px] font-bold rounded-full bg-brand-500/20 text-brand-500 border border-brand-500/30"},[n("i",{staticClass:"fa-solid fa-crown mr-1"}),e._v(e._s(e.customerLevelsDetail.VIPName||"Thân thiết")+"\n                    ")]):e._e()]),n("div",{staticClass:"text-xs text-slate-500"},[e._v("Số dư ví khả dụng")]),n("div",{staticClass:"text-2xl font-extrabold text-slate-900 my-0.5 tracking-tight"},[e._v("\n                    "+e._s(e._f("formatNumber")(e.customerInfo.Wallet||0,"0,0"))+" "),n("span",{staticClass:"text-xs font-normal text-slate-500"},[e._v("đ")])]),n("router-link",{staticClass:"mt-3 w-full py-2 px-3 bg-brand-500 hover:bg-brand-600 text-white rounded-xl text-xs font-semibold flex items-center justify-center gap-2 transition shadow-md shadow-brand-500/20 no-underline",attrs:{to:{name:"credit"}}},[n("i",{staticClass:"fa-solid fa-wallet"}),e._v(" Nạp tiền vào ví\n                ")])],1),n("nav",{staticClass:"px-3 space-y-1"},[n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"profile"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-user-gear w-5 text-center nav-icon"}),n("span",[e._v("Thông tin tài khoản")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"credit"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-money-bill-transfer w-5 text-center nav-icon"}),n("span",[e._v("Nạp rút tiền")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"cart-index"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-cart-shopping w-5 text-center nav-icon"}),n("span",[e._v("Giỏ hàng")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"order-index"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-boxes-stacked w-5 text-center nav-icon"}),n("span",[e._v("Đơn hàng")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"deposit-index"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-box-archive w-5 text-center nav-icon"}),n("span",[e._v("Hàng ký gửi")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"payservice-index"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-hand-holding-dollar w-5 text-center nav-icon"}),n("span",[e._v("Thanh toán hộ")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"transition-index"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-truck-fast w-5 text-center nav-icon"}),n("span",[e._v("Mã vận đơn")])]),n("span",{staticClass:"active-dot"})]),n("router-link",{staticClass:"ntl-nav-item",attrs:{to:{name:"receipt-index"},"active-class":"active"}},[n("div",{staticClass:"flex items-center gap-3"},[n("i",{staticClass:"fa-solid fa-file-invoice w-5 text-center nav-icon"}),n("span",[e._v("Phiếu xuất kho")])]),n("span",{staticClass:"active-dot"})])],1)]),n("div",{staticClass:"p-4 border-t border-slate-100 bg-slate-50/50 flex items-center justify-between shrink-0"},[n("div",{staticClass:"flex items-center gap-3 overflow-hidden"},[n("img",{staticClass:"w-9 h-9 rounded-full ring-2 ring-brand-500/30 flex-shrink-0 object-cover",attrs:{src:e.userAvatar,alt:"Avatar"}}),n("div",{staticClass:"truncate"},[n("p",{staticClass:"text-xs font-bold text-slate-800 truncate leading-tight"},[e._v(e._s(e.userInfo.userName))]),n("p",{staticClass:"text-[11px] text-slate-500 truncate leading-tight"},[e._v("Khách hàng cá nhân")])])]),n("button",{staticClass:"text-slate-400 hover:text-rose-500 p-2 rounded-lg transition hover:bg-rose-50 focus:outline-none",attrs:{title:"Đăng xuất"},on:{click:e.onLogout}},[n("i",{staticClass:"fa-solid fa-right-from-bracket"})])])])])},X=[];function Q(e){var t=Z();return function(){var n,a=Object(k["a"])(e);if(t){var r=Object(k["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(g["a"])(this,n)}}function Z(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ee=function(e){Object(v["a"])(n,e);var t=Q(n);function n(){return Object(p["a"])(this,n),t.apply(this,arguments)}return Object(b["a"])(n,[{key:"showMenu",get:function(){return this.$store.state[O["a"].stateKey.commonStore].showMenuLeft}},{key:"userInfo",get:function(){return this.$store.state[O["a"].stateKey.authStore].userInfo||{}}},{key:"customerInfo",get:function(){return this.$store.state[O["a"].stateKey.authStore].customerInfo||{}}},{key:"customerLevels",get:function(){return this.$store.state[O["a"].stateKey.commonStore].customerLevels}},{key:"customerLevelsDetail",get:function(){var e=this;return(this.customerLevels||[]).find((function(t){return t.ID===(e.customerInfo.LevelID||1)}))}},{key:"main_domain",get:function(){return O["a"].settings.main_domain}},{key:"userAvatar",get:function(){return this.userInfo&&this.userInfo.userName?"https://ui-avatars.c
1om/api/?name=".concat(encodeURIComponent(this.userInfo.userName),"&background=ea580c&color=fff&bold=true"):"assets/images/photos/loggeduser.png"}},{key:"created",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.customerLevels){e.next=3;break}return e.next=3,this.getCustomerLevels();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getCustomersInfo",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.userInfo&&this.userInfo.userId>0)){e.next=5;break}return e.next=3,S["a"].customersInfo(this.userInfo.userId);case 3:a=e.sent,a&&200===a.status&&window["getApp"].$emit("APP_SET_CUSTOMER_INFO",a.data.data||{});case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getCustomerLevels",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,L["a"].getCustomerLevels();case 2:t=e.sent,t&&200===t.status&&window["getApp"].$emit("SET_CUSTOMER_LEVELS",t.data.data);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCloseMenu",value:function(){window["getApp"].$emit("SHOW_HIDE_MENU_LEFT",!1)}},{key:"onLogout",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={username:"",password:"",FirebaseToken:_["a"].get("FCM_Token")},e.next=3,S["a"].logout(t);case 3:e.sent,window["getApp"].$emit("APP_LOGOUT");case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}]),n}(x["c"]);Object(y["__decorate"])([Object(x["d"])("userInfo",{immediate:!0,deep:!0})],ee.prototype,"getCustomersInfo",null),ee=Object(y["__decorate"])([x["a"]],ee);var te=ee,ne=te,ae=(n("1303"),Object(B["a"])(ne,J,X,!1,null,"5f32e23f",null)),re=ae.exports,oe={SetUserInfo:"[Auth] Set User Info",LogOut:"[Auth] Logout",SetCustomerInfo:"[Auth] Set Customer Info"},ce={SetExchangeRate:"[Common] Set Exchange Rate",SetMinFeeBuy:"[Common] Set Min FeeBuy",FeeBuyPro:"[Common] Set Fee Buy Pro",SetCustomerLevels:"[Common] Set Customer Levels",SetWarehouse:"[Common] Set Warehouse",SetChinaStore:"[Common] Set ChinaStore",SetFeeGuarantee:"[Common] Set FeeGuarantee",ShowHideMenuLeft:"[Common] Show hide menu left"},ie={SelectedCart:"[Cart] Selected Cart"},se=[{name:"APP_LOGIN_SUCCESS",callback:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$store.dispatch("".concat(O["a"].stateKey.authStore,"/").concat(oe.SetUserInfo),{email:e.user.email,userId:e.user.userid,userName:e.user.username,userCode:e.user.usercode}),C["a"].setToken(e.token),t||(this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.ShowHideMenuLeft),screen.width>760),this.$router.push({name:"credit"}))}},{name:"APP_SET_CUSTOMER_INFO",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.authStore,"/").concat(oe.SetCustomerInfo),e)}},{name:"APP_REGISTER_SUCCESS",callback:function(e){e?this.$router.push({name:"notify-type",params:{type:e}}):this.$router.push({name:"notify"})}},{name:"APP_LOGOUT",callback:function(){this.$store.dispatch("".concat(O["a"].stateKey.authStore,"/").concat(oe.LogOut)),this.$store.dispatch("".concat(O["a"].stateKey.cartState,"/").concat(ie.SelectedCart),null),C["a"].removeToken(),this.$router.push({name:"login"})}},{name:"SET_RATE",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.SetExchangeRate),e)}},{name:"SET_MIN_FEEBUY",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.SetMinFeeBuy),e)}},{name:"SET_FEE_BUY_PRO",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.FeeBuyPro),e)}},{name:"SET_CUSTOMER_LEVELS",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.SetCustomerLevels),e)}},{name:"SET_WAREHOUSE",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.SetWarehouse),e)}},{name:"SET_CHINASTORE",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.SetChinaStore),e)}},{name:"SET_FEEGUARANTEE",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.SetFeeGuarantee),e)}},{name:"SET_SELECTED_CART",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.cartState,"/").concat(ie.SelectedCart),e)}},{name:"SHOW_HIDE_MENU_LEFT",callback:function(e){this.$store.dispatch("".concat(O["a"].stateKey.commonStore,"/").concat(ce.ShowHideMenuLeft),e)}}];function ue(e){var t=le();return function(){var n,a=Object(k["a"])(e);if(t){var r=Object(k["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(g["a"])(this,n)}}function le(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var fe=function(e){Object(v["a"])(n,e);var t=ue(n);function n(){var e;return Object(p["a"])(this,n),e=t.apply(this,arguments),e.disableMenuLeft=!0,e.disableHeader=!0,e}return Object(b["a"])(n,[{key:"showMenu",get:function(){return this.$store.state[O["a"].stateKey.commonStore].showMenuLeft}},{key:"beforeCreate",value:function(){var e=this;se.forEach((function(t){e.$on(t.name,t.callback)})),window["getApp"]=this}},{key:"created",value:function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:bt.$on(O["a"].eventBusAction.disableMenuLeft,(function(e){t.disableMenuLeft=e})),bt.$on(O["a"].eventBusAction.disableHeader,(function(e){t.disableHeader=e}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onClickMask",value:function(){window["getApp"].$emit("SHOW_HIDE_MENU_LEFT",!1)}}]),n}(x["c"]);fe=Object(y["__decorate"])([Object(x["a"])({components:{AppHeader:q,LeftMenu:re}})],fe);var de,he,me,pe,be=fe,ve=be,ge=(n("b213"),Object(B["a"])(ve,d,h,!1,null,"e4827750",null)),ke=ge.exports,ye=n("75fc"),xe=[{path:"/tai-khoan",name:"auth",component:function(){return n.e("chunk-03da5050").then(n.bind(null,"fa72"))},meta:{noAuth:!0},redirect:"/tai-khoan/dang-nhap",children:[{path:"/tai-khoan/dang-nhap",name:"login",component:function(){return n.e("chunk-331b5c38").then(n.bind(null,"e9a1"))},meta:{mainPage:!0}},{path:"/tai-khoan/dang-ky",name:"register",component:function(){return n.e("chunk-0a914058").then(n.bind(null,"45fb"))},meta:{mainPage:!0}},{path:"/tai-khoan/quen-mat-khau",name:"forgot",component:function(){return n.e("chunk-9ee61f54").then(n.bind(null,"cfd6"))},meta:{mainPage:!0}},{path:"/tai-khoan/thong-bao",name:"notify",component:function(){return n.e("chunk-1cdb0b62").then(n.bind(null,"6a00"))}},{path:"/tai-khoan/thong-bao/:type",name:"notify-type",component:function(){return n.e("chunk-1cdb0b62").then(n.bind(null,"6a00"))}},{path:"/xac-minh-email/:token",name:"verify-email",component:function(){return n.e("chunk-59fd473d").then(n.bind(null,"c961"))},children:[]}]}],we=[{path:"/cart",name:"cart",meta:{auth:!0,breadcrumb:[{name:"Giỏ hàng",pathName:"cart",icon:"fa fa-cart-arrow-down"}]},component:function(){return n.e("chunk-df124f7e").then(n.bind(null,"b2d0"))},redirect:{name:"cart-index"},children:[{path:"/gio-hang.html",name:"cart-index",component:function(){return n.e("chunk-17a22602").then(n.bind(null,"9012"))}},{path:"/cart/xac-nhan-don.html",name:"cart-confirm-cart",props:!0,meta:{breadcrumb:[{name:"Xác nhận giỏ hàng",pathName:"cart-confirm-cart",icon:"fa fa-cart-arrow-down"}]},component:function(){return n.e("chunk-5af2e805").then(n.bind(null,"f777"))}}]}],je=[{path:"/",name:"home",redirect:{name:"credit"},component:function(){return n.e("chunk-2d0d328a").then(n.bind(null,"5c28"))},meta:{auth:!0,breadcrumb:[{name:"Trang chá»§"}]},children:[]}],Ce=[{path:"/order",name:"order",meta:{auth:!0,breadcrumb:[{name:"Đơn hàng",pathName:"order",icon:"fa fa-bar-chart"}]},component:function(){return n.e("chunk-2d0be6ba").then(n.bind(null,"2fd4"))},redirect:{name:"order-index"},children:[{path:"/don-hang.html",name:"order-index",component:function(){return n.e("chunk-40837d59").then(n.bind(null,"f12a"))}},{path:"/don-hang/order-new.html",name:"order-new",meta:{breadcrumb:[{name:"Tạo má
1»›i đơn hàng",pathName:"order-new",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-d800a9b4"),n.e("chunk-3e1372d9")]).then(n.bind(null,"95db"))}},{path:"/don-hang/:orderId",name:"order-detail",meta:{breadcrumb:[{name:"Chi tiết đơn hàng",pathName:"order-detail",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-10fbf152"),n.e("chunk-3ba1d5dc")]).then(n.bind(null,"ac25"))}},{path:"/khieu-nai/:orderId",name:"order-complain",meta:{breadcrumb:[{name:"Khiếu nại đơn hàng",pathName:"order-complain",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-d800a9b4"),n.e("chunk-c18a1254")]).then(n.bind(null,"33ed"))}},{path:"/khieu-nai/:orderId/:complainId",name:"detail-order-complain",meta:{breadcrumb:[{name:"Khiếu nại đơn hàng",pathName:"order-complain",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-d800a9b4"),n.e("chunk-c18a1254")]).then(n.bind(null,"33ed"))}}]}],Oe=[{path:"/tai-khoan.html",name:"profile",component:function(){return n.e("chunk-4dcf7157").then(n.bind(null,"7853"))},meta:{auth:!0,breadcrumb:[{name:"Thông tin tài khoản",icon:"fa fa-user"}]},children:[]}],Se=[{path:"/vi-tien.html",name:"credit",component:function(){return Promise.all([n.e("chunk-3bbf8988"),n.e("chunk-26474866")]).then(n.bind(null,"064b"))},meta:{auth:!0,breadcrumb:[{name:"Nạp - rút tiền",icon:"fa fa-money"}]},children:[]}],_e=[{path:"/notification.html",name:"notification",component:function(){return n.e("chunk-704e4101").then(n.bind(null,"5e45"))},meta:{auth:!0,breadcrumb:[{name:"Thông báo",icon:"fa fa-bell"}]},children:[]}],Ie=[{path:"/deposit",name:"deposit",meta:{auth:!0,breadcrumb:[{name:"Ký gá»­i",pathName:"deposit",icon:"fa fa-envelope"}]},component:function(){return n.e("chunk-2d228bfa").then(n.bind(null,"db06"))},redirect:{name:"deposit-index"},children:[{path:"/ky-gui.html",name:"deposit-index",component:function(){return n.e("chunk-2acd8151").then(n.bind(null,"c7f6"))}},{path:"/ky-gui/deposit-new.html",name:"deposit-new",meta:{breadcrumb:[{name:"Tạo mới ký gá»­i",pathName:"deposit-new",icon:"fa fa-bar-chart"}]},component:function(){return n.e("chunk-ff1d70ba").then(n.bind(null,"cdfa"))}},{path:"/ky-gui/:id",name:"deposit-detail",meta:{breadcrumb:[{name:"Chi tiết ký gá»­i",pathName:"deposit-detail",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-10fbf152"),n.e("chunk-7d477f4c")]).then(n.bind(null,"ed34"))}}]}],Re=[{path:"/payservice",name:"payservice",meta:{auth:!0,breadcrumb:[{name:"Thanh toán hộ",pathName:"payservice",icon:"fa fa-credit-card"}]},component:function(){return n.e("chunk-2d0cc662").then(n.bind(null,"4e83"))},redirect:{name:"payservice-index"},children:[{path:"/thanh-toan-ho.html",name:"payservice-index",component:function(){return n.e("chunk-64a6ee6e").then(n.bind(null,"97bd"))}},{path:"/thanh-toan-ho/payservice-new.html",name:"payservice-new",meta:{breadcrumb:[{name:"Tạo mới thanh toán hộ",pathName:"payservice-new",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-d800a9b4"),n.e("chunk-b8c412da")]).then(n.bind(null,"b800"))}},{path:"/thanh-toan-ho/:id",name:"payservice-detail",meta:{breadcrumb:[{name:"Chi tiết thanh toán hộ",pathName:"payservice-detail",icon:"fa fa-bar-chart"}]},component:function(){return Promise.all([n.e("chunk-d800a9b4"),n.e("chunk-a82f7c02")]).then(n.bind(null,"6495"))}}]}],Ne=[{path:"/transition",name:"transition",meta:{auth:!0,breadcrumb:[{name:"Mã vận đơn",pathName:"transition",icon:"fa fa-truck"}]},component:function(){return n.e("chunk-2d213b09").then(n.bind(null,"ae6e"))},redirect:{name:"transition-index"},children:[{path:"/ma-van-don.html",name:"transition-index",component:function(){return n.e("chunk-5ee9b75b").then(n.bind(null,"ef08"))}}]},{path:"/noname_transition",name:"noname_transition",meta:{auth:!0,breadcrumb:[{name:"Hàng không tên",pathName:"noname_transition",icon:"fa fa-truck"}]},component:function(){return n.e("chunk-2d213b09").then(n.bind(null,"ae6e"))},redirect:{name:"noname-transition-index"},children:[{path:"/hang-khong-ten.html",name:"noname-transition-index",component:function(){return n.e("chunk-5ee9b75b").then(n.bind(null,"ef08"))}}]}],Le=[{path:"/dashboard",name:"dashboard",meta:{auth:!0,breadcrumb:[{name:"Tìm sản phẩm",pathName:"dashboard",icon:"fa fa-search"}]},component:function(){return n.e("chunk-2d0c8f87").then(n.bind(null,"56c3"))},redirect:{name:"dashboard-index"},children:[{path:"/tim-kiem-san-pham.html",name:"dashboard-index",component:function(){return Promise.all([n.e("chunk-4cf1c776"),n.e("chunk-20e7cc76")]).then(n.bind(null,"1b89"))}},{path:"/chi-tiet-san-pham.html",name:"detail-product-index",component:function(){return n.e("chunk-4cf1c776").then(n.bind(null,"b20e"))}}]}],Ee=[{path:"/receipt",name:"receipt",meta:{auth:!0,breadcrumb:[{name:"Phiếu xuất kho",pathName:"receipt",icon:"fa fa-file-code-o"}]},component:function(){return n.e("chunk-2d0d7448").then(n.bind(null,"75a5"))},redirect:{name:"receipt-index"},children:[{path:"/phieu-xuat-kho.html",name:"receipt-index",component:function(){return Promise.all([n.e("chunk-3bbf8988"),n.e("chunk-3fade82b")]).then(n.bind(null,"c1a7"))}},{path:"/phieu-xuat-kho/:id",name:"receipt-detail",meta:{breadcrumb:[{name:"Chi tiết phiếu xuất kho",pathName:"receipt-detail",icon:"fa fa-bar-chart"}]},component:function(){return n.e("chunk-f8d351b6").then(n.bind(null,"f1af"))}}]}],Te=[].concat(Object(ye["a"])(je),Object(ye["a"])(xe),Object(ye["a"])(we),Object(ye["a"])(Ce),Object(ye["a"])(Oe),Object(ye["a"])(Se),Object(ye["a"])(_e),Object(ye["a"])(Ie),Object(ye["a"])(Re),Object(ye["a"])(Ne),Object(ye["a"])(Le),Object(ye["a"])(Ee)),Me=n("2f62"),Pe=n("0e44"),Ae=(de={},Object(a["a"])(de,oe.SetUserInfo,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(oe.SetUserInfo,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(de,oe.LogOut,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.commit,n(oe.LogOut);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Object(a["a"])(de,oe.SetCustomerInfo,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(oe.SetCustomerInfo,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),de),$e=(he={},Object(a["a"])(he,oe.SetUserInfo,(function(e,t){e.userInfo=t})),Object(a["a"])(he,oe.SetCustomerInfo,(function(e,t){e.customerInfo=t})),Object(a["a"])(he,oe.LogOut,(function(e){e.userInfo={email:"",userId:0,userName:"",userCode:""}})),he),De=function(){return{userInfo:{email:"",userId:0,userName:"",userCode:""},customerInfo:{}}},Fe={actions:Ae,mutations:$e,namespaced:!0,state:De},Be=(me={},Object(a["a"])(me,ce.SetExchangeRate,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.SetExchangeRate,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.SetMinFeeBuy,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.SetMinFeeBuy,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.FeeBuyPro,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.FeeBuyPro,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.SetCustomerLevels,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.SetCustomerLevels,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.SetWarehouse,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.SetWarehouse,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.SetChinaStore,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.SetChinaStore,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.SetFeeGuarantee,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.SetFeeGuarantee,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Object(a["a"])(me,ce.ShowHideMenuLeft,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ce.ShowHideMenuLeft,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),me),Ue=(pe={},Object(a["a"])(pe,ce.SetExchangeRate,(function(e,t){e.rate=t})),Object(a["a"])(pe,ce.SetMinFeeBuy,(function(e,t){e.minFeeBuy=t})),Object(a["a"])(pe,ce.FeeBuyPro,(function(e,t){e.feeBuyPro=t})),Object(a["a"])(pe,ce.SetCustomerLevels,(function(e,t){e.customerLevels=t})),Object(a["a"])(pe,ce.SetWarehouse,(function(e,t){e.warehouse=t})),Object(a["a"])(pe,ce.SetChinaStore,(function(e,t){e.chinaStore=t})),Object(a["a"])(pe,ce.SetFeeGuarantee,(function(e,t){e.feeGuarantee=t})),Object(a["a"])(pe,ce.ShowHideMenuLeft,(function(e,t){e.showMenuLeft=t})),pe),He=function(){return{rate:null,feeBuyPro:null,customerLevels:null,warehouse:null,chinaStore:null,feeGuarantee:null,showMenuLeft:!0}},Ke={actions:Be,mutations:Ue,namespaced:!0,state:He},ze=Object(a["a"])({},ie.SelectedCart,function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t.commit,a(ie.SelectedCart,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Ge=Object(a["a"])({},ie.SelectedCart,(function(e,t){e.cartSelected=t})),We=function(){return{cartSelected:null}},Ye={actions:ze,mutations:Ge,namespaced:!0,state:We},Ve={authStore:Fe,commonStore:Ke,cartState:Ye};r["default"].use(Me["a"]);var qe={};
1Object.keys(O["a"].stateKey).forEach((function(e){qe[e]=Ve[e]}));var Je=new Me["a"].Store({modules:qe,state:{},mutations:{},actions:{},strict:!1,plugins:[Object(Pe["a"])({paths:[O["a"].stateKey.cartState],storage:window.localStorage})]});r["default"].use(i["a"]);var Xe=new i["a"]({base:"/",mode:"history",linkActiveClass:"active",routes:Te});function Qe(){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(m["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(_["a"].exist(O["a"].authSetting.tokenName)){e.next=4;break}return e.abrupt("return",!1);case 4:if(t=Je.state[O["a"].stateKey.authStore].userInfo,t&&!(t.userId<=0)){e.next=19;break}return e.next=8,S["a"].verifyToken();case 8:if(n=e.sent,!(n&&n.data.hasOwnProperty("token")&&n.data.hasOwnProperty("user"))){e.next=15;break}return bt.$emit(O["a"].eventBusAction.disableMenuLeft,!1),bt.$emit(O["a"].eventBusAction.disableHeader,!1),window["getApp"].$emit("APP_LOGIN_SUCCESS",n.data,!0),r["default"].$cookies.set("token",C["a"].getToken(),"5y","/","
1namtrunglog.com"),e.abrupt("return",!0);case 15:return window["getApp"].$emit("APP_LOGOUT"),e.abrupt("return",!1);case 19:return r["default"].$cookies.set("token",C["a"].getToken(),"5y","/","namtrunglog.com"),e.abrupt("return",!0);case 21:case"end":return e.stop()}}),e)}))),Ze.apply(this,arguments)}Xe.beforeEach(function(){var e=Object(m["a"])(regeneratorRuntime.mark((function e(t,n,a){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Qe();case 2:r=e.sent,t.matched.some((function(e){return e.meta.auth}))?!1===r?a({name:"auth"}):a():t.matched.some((function(e){return e.meta.noAuth}))?!1===r?a():a({name:"profile"}):a(),screen.width<=760&&window["getApp"].$emit("SHOW_HIDE_MENU_LEFT",!1);case 5:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}());var et=Xe,tt=n("d86a"),nt=n("c1df");function at(e,t){return e?nt(e).format(t||"DD-MM-YYYY hh:mm:ss"):""}var rt={formatNumber:tt["a"],formatDate:at},ot=(n("28a5"),n("3b2b"),{bind:function(e,t,n){var a=[8,9,37,38,39,40,46],r=new RegExp("^[0-9]*$");e.addEventListener("keydown",(function(e){r.test(e.key)||c(e.keyCode,n.elm.value)||a.find((function(t){return t===e.keyCode}))||e.preventDefault()})),e.addEventListener("keyup",(function(e){190!==e.keyCode&&o()}));var o=function(){var t=n.elm.value.split(",").join(""),a=Object(tt["a"])(t,"0,0.[000000000000]"),r=new Event("input",{bubbles:!0});n.elm.value=a,e.dispatchEvent(r)},c=function(e,t){return 190===e&&t.indexOf(".")<0}}}),ct={bind:function(e,t,n){e.addEventListener("keydown",(function(e){"Enter"===e.key&&(e.preventDefault(),t.value())}))}},it={bind:function(e,t,n){e.addEventListener("keyup",(function(e){var a=n.elm.value;t.value(a)}))}},st={maskNumber:ot,eFormSubmit:ct,watchControl:it},ut={validate:function(e,t){var n=e&&e.length;return n>=t["min"]&&n<=t["max"]},params:["min","max"],message:"Độ dài trường {_field_} phải nằm giữa {min} và {max}"},lt=n("6612"),ft={validate:function(e,t){var n=lt(e).value(),a=lt(t["minValue"]).value();return n>=a},params:["minValue"],message:"Giá trị nhỏ nhất của '{_field_}' phải là {minValue}."},dt={lengthBetween:ut,minValue:ft},ht=n("8aa5");n("2b1b");function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt=new r["default"];try{var vt={apiKey:"AIzaSyAN2aQz5h9C_dGKNXkwYXx2xKmt4ON5FCM",authDomain:"oee-app-cc5a1.firebaseapp.com",databaseURL:"https://oee-app-cc5a1.firebaseio.com",projectId:"oee-app-cc5a1",storageBucket:"oee-app-cc5a1.appspot.com",messagingSenderId:"579480956217",appId:"1:579480956217:web:0e10030639ec0ab80ccce8",measurementId:"G-54ZGV0VRV2"};ht["initializeApp"](vt),ht["analytics"]()}catch(wt){}for(var gt in r["default"].config.productionTip=!1,u)Object(s["c"])(gt,pt({},u[gt]));for(var kt in dt)Object(s["c"])(kt,pt({},dt[kt]));for(var yt in r["default"].component("ValidationProvider",s["b"]),r["default"].component("ValidationObserver",s["a"]),rt)r["default"].filter(yt,rt[yt]);for(var xt in st)r["default"].directive(xt,st[xt]);r["default"].use(f.a),r["default"].use(i["a"]),r["default"].use(c.a,{expires:"3y"}),new r["default"]({router:et,store:Je,render:function(e){return e(ke)}}).$mount("#app")},d0f2:function(e,t,n){},d86a:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("6612");function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0,0";return a(e).format(t)}},d950:function(e,t,n){}});
2//# sourceMappingURL=app.6ef0f638.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.