marketplacepos 2.9.8 → 2.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/168.daf56541dfe022d9.js +1 -0
- package/Marketplace/307.e009e017bc05d4a6.js +1 -0
- package/Marketplace/452.98cb96aa212c291a.js +1 -0
- package/Marketplace/527.984c24771dbd0f8e.js +1 -0
- package/Marketplace/687.159d5f9f932894a1.js +1 -0
- package/Marketplace/common.f9c9a55b81e3da5a.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main.42130b2628213642.js → main.c34694e8685f5c02.js} +1 -1
- package/Marketplace/runtime.9be909476d078c64.js +1 -0
- package/package.json +1 -1
- package/Marketplace/168.d7091401728e4304.js +0 -1
- package/Marketplace/299.86cba892502ce6e4.js +0 -1
- package/Marketplace/307.3b0b22bc69fa61d7.js +0 -1
- package/Marketplace/452.1f277c2ba13eb80d.js +0 -1
- package/Marketplace/527.e23646167d384e97.js +0 -1
- package/Marketplace/common.91711b840b02b984.js +0 -1
- package/Marketplace/runtime.b35f47a6f007e5c0.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e,h={},v={};function r(e){var f=v[e];if(void 0!==f)return f.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=h,e=[],r.O=(f,t,n,o)=>{if(!t){var a=1/0;for(d=0;d<e.length;d++){for(var[t,n,o]=e[d],b=!0,c=0;c<t.length;c++)(!1&o||a>=o)&&Object.keys(r.O).every(u=>r.O[u](t[c]))?t.splice(c--,1):(b=!1,o<a&&(a=o));if(b){e.splice(d--,1);var s=n();void 0!==s&&(f=s)}}return f}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,n,o]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,n){if(1&n&&(t=this(t)),8&n||"object"==typeof t&&t&&(4&n&&t.__esModule||16&n&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var d={};f=f||[null,e({}),e([]),e(e)];for(var a=2&n&&t;"object"==typeof a&&!~f.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(b=>d[b]=()=>t[b]);return d.default=()=>t,r.d(o,d),o}})(),r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>(592===e?"common":e)+"."+{56:"0432dfcbb3e04e39",62:"4f9a8ca2692bdd97",103:"bc1f4c51ca99f04f",168:"daf56541dfe022d9",231:"0c7ab993977632a2",257:"d1592e885695ba4b",278:"e89610409641d910",296:"93310f70e5f9d3a9",307:"e009e017bc05d4a6",311:"afcc0c4a03ea0076",389:"f73b3c5db7bdf654",445:"8f1497373c95bb64",452:"98cb96aa212c291a",476:"d08ef7b92327904d",478:"a63c640a3e971a16",500:"c2e6963e4771761e",527:"984c24771dbd0f8e",556:"5d624cfb73f161b2",592:"f9c9a55b81e3da5a",599:"8de0c2b4c7af0f9d",617:"4db1b737553fe58b",671:"8d5ec5d95df1c8e5",687:"159d5f9f932894a1",699:"d68a917277dbe11a",726:"40535ee28a35e978",810:"af61302495e16f98",877:"bbdea3b04cc75780",900:"b7de175b628a8dbe",967:"2b39f548c7f4eb30"}[e]+".js",r.miniCssF=e=>{},r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="pos-marketplace:";r.l=(t,n,o,d)=>{if(e[t])e[t].push(n);else{var a,b;if(void 0!==o)for(var c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var i=c[s];if(i.getAttribute("src")==t||i.getAttribute("data-webpack")==f+o){a=i;break}}a||(b=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",f+o),a.src=r.tu(t)),e[t]=[n];var p=(g,u)=>{a.onerror=a.onload=null,clearTimeout(l);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(y=>y(u)),g)return g(u)},l=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),b&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="https://cdn.jsdelivr.net/npm/marketplacepos@2.9.9/Marketplace/",(()=>{var e={666:0};r.f.j=(n,o)=>{var d=r.o(e,n)?e[n]:void 0;if(0!==d)if(d)o.push(d[2]);else if(666!=n){var a=new Promise((i,p)=>d=e[n]=[i,p]);o.push(d[2]=a);var b=r.p+r.u(n),c=new Error;r.l(b,i=>{if(r.o(e,n)&&(0!==(d=e[n])&&(e[n]=void 0),d)){var p=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src;c.message="Loading chunk "+n+" failed.\n("+p+": "+l+")",c.name="ChunkLoadError",c.type=p,c.request=l,d[1](c)}},"chunk-"+n,n)}else e[n]=0},r.O.j=n=>0===e[n];var f=(n,o)=>{var c,s,[d,a,b]=o,i=0;if(d.some(l=>0!==e[l])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(b)var p=b(r)}for(n&&n(o);i<d.length;i++)r.o(e,s=d[i])&&e[s]&&e[s][0](),e[s]=0;return r.O(p)},t=self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[];t.forEach(f.bind(null,0)),t.push=f.bind(null,t.push.bind(t))})()})();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"marketplacepos","version":"2.9.
|
|
1
|
+
{"name":"marketplacepos","version":"2.9.9"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[168],{7168:(I,p,s)=>{s.r(p),s.d(p,{LoginModule:()=>S});var l=s(6814),d=s(6223),t=s(5879),c=s(9790),g=s(9659);let u=(()=>{var o;class r{constructor(e,n,a){this.route=e,this.http=n,this.service=a}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code})}addChannelLazada(){this.http.post("/api/ChannelAdd/AddLazada",{Code:this.code}).subscribe(n=>{this.service.navigate(["/menu/channel"])})}}return(o=r).\u0275fac=function(e){return new(e||o)(t.Y36(c.gz),t.Y36(g.O),t.Y36(c.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-lazada"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA()(),t.TgZ(8,"div",7)(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Lazada"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your Code is "),t.TgZ(15,"span",8),t._uU(16),t.qZA()(),t.TgZ(17,"button",9),t.NdJ("click",function(){return n.addChannelLazada()}),t._UZ(18,"i",10),t._uU(19," Add to my Channel"),t.qZA()()()()()()),2&e&&(t.xp6(16),t.Oqu(n.code))}}),r})();var h=s(5802),f=s(7826),_=s(9229);let b=(()=>{var o;class r{constructor(){}getBrowserName(){const e=window.navigator.userAgent.toLowerCase();switch(!0){case e.indexOf("edge")>-1||e.indexOf("edg")>-1:return"edge";case e.indexOf("opr")>-1:return"opera";case e.indexOf("chrome")>-1:return"chrome";case e.indexOf("trident")>-1:return"ie";case e.indexOf("firefox")>-1:return"firefox";case e.indexOf("safari")>-1:return"safari";default:return"other"}}}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),r})();var x=s(4750),m=s(621);const C=["subdomainEl"];function v(o,r){if(1&o){const i=t.EpF();t.ynx(0),t.TgZ(1,"div",18)(2,"div",19)(3,"form")(4,"div",20)(5,"h2",21),t._uU(6,"Sign in"),t.qZA(),t.TgZ(7,"div",22)(8,"div",23)(9,"div",24)(10,"span",25),t._UZ(11,"i",26),t.qZA(),t.TgZ(12,"input",27,28),t.NdJ("ngModelChange",function(n){t.CHM(i);const a=t.oxw();return t.KtG(a.subdomain=n)}),t.qZA()()(),t.TgZ(14,"select",29),t.NdJ("ngModelChange",function(n){t.CHM(i);const a=t.oxw();return t.KtG(a.domain=n)}),t.TgZ(15,"option",30),t._uU(16,".dealpos.co.id"),t.qZA(),t.TgZ(17,"option",31),t._uU(18,".dealpos.net"),t.qZA(),t.TgZ(19,"option",32),t._uU(20,".dealpos.com"),t.qZA()()()(),t.TgZ(21,"div",33)(22,"button",34),t.NdJ("click",function(){t.CHM(i);const n=t.oxw();return t.KtG(n.onNextState())}),t._uU(23," Next "),t.qZA()()()()(),t.BQk()}if(2&o){const i=t.oxw();t.xp6(12),t.Q6J("ngModel",i.subdomain),t.xp6(2),t.Q6J("ngModel",i.domain)}}function w(o,r){1&o&&(t.TgZ(0,"p"),t._uU(1," Username is required "),t.qZA())}function Z(o,r){if(1&o&&(t.TgZ(0,"div",58),t.YNc(1,w,2,0,"p",59),t.qZA()),2&o){t.oxw();const i=t.MAs(13);t.xp6(1),t.Q6J("ngIf",i.errors.required)}}const M=function(o,r){return{"fa-eye":o,"fa-eye-slash":r}};function O(o,r){if(1&o){const i=t.EpF();t.TgZ(0,"i",60),t.NdJ("click",function(){t.CHM(i);const n=t.oxw(2);return t.KtG(n.hideShowPassword())}),t.qZA()}if(2&o){const i=t.oxw(2);t.Q6J("ngClass",t.WLB(1,M,"eye-off"==i.passwordIcon,"eye"==i.passwordIcon))}}function y(o,r){1&o&&(t.TgZ(0,"p"),t._uU(1," Password is required "),t.qZA())}function A(o,r){if(1&o&&(t.TgZ(0,"div",58),t.YNc(1,y,2,0,"p",59),t.qZA()),2&o){t.oxw();const i=t.MAs(19);t.xp6(1),t.Q6J("ngIf",i.errors.required)}}function T(o,r){if(1&o){const i=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",35)(3,"h2",21),t._uU(4,"Sign in"),t.qZA(),t.TgZ(5,"div",36),t._uU(6," to "),t.TgZ(7,"h6",37),t._uU(8),t.qZA(),t.TgZ(9,"i",38),t.NdJ("click",function(){t.CHM(i);const n=t.oxw();return t.KtG(n.onEditDomain())}),t.qZA()()(),t.TgZ(10,"form",39)(11,"div",40)(12,"input",41,42),t.NdJ("ngModelChange",function(n){t.CHM(i);const a=t.oxw();return t.KtG(a.username=n)}),t.qZA(),t.TgZ(14,"label",43),t._uU(15,"Username"),t.qZA(),t.YNc(16,Z,2,1,"div",44),t.qZA(),t.TgZ(17,"div",45)(18,"input",46,47),t.NdJ("ngModelChange",function(n){t.CHM(i);const a=t.oxw();return t.KtG(a.password=n)}),t.qZA(),t.TgZ(20,"label",48),t._uU(21,"Password"),t.qZA(),t.YNc(22,O,1,4,"i",49),t.YNc(23,A,2,1,"div",44),t.qZA(),t.TgZ(24,"div",50)(25,"a",51),t._uU(26,"Forgot Password?"),t.qZA()(),t.TgZ(27,"div",52)(28,"button",53),t.NdJ("click",function(){t.CHM(i);const n=t.oxw();return t.KtG(n.onLogin())}),t._uU(29," Log in "),t.qZA()(),t.TgZ(30,"div",54),t._UZ(31,"hr"),t.TgZ(32,"span",55),t._uU(33,"or"),t.qZA(),t._UZ(34,"hr"),t.qZA(),t.TgZ(35,"div")(36,"button",56),t.NdJ("click",function(n){t.CHM(i);const a=t.oxw();return t.KtG(a.onLoginByGoogle(n))}),t._UZ(37,"i",57),t._uU(38," Sign In with Google "),t.qZA()()()()()}if(2&o){const i=t.MAs(13),e=t.MAs(19),n=t.oxw();t.xp6(8),t.AsE(" (",n.subdomain,"",n.domain,") "),t.xp6(4),t.Q6J("ngModel",n.username),t.xp6(4),t.Q6J("ngIf",i.invalid&&(i.dirty||i.touched)),t.xp6(2),t.Q6J("type",n.passwordType)("ngModel",n.password),t.xp6(4),t.Q6J("ngIf",""!=n.password&&"edge"!=n.browser),t.xp6(1),t.Q6J("ngIf",e.invalid&&(e.dirty||e.touched)),t.xp6(2),t.Q6J("href","https://"+n.subdomain+n.domain+"/ForgotPassword",t.LSH)}}const P=[{path:"",component:(()=>{var o;class r{constructor(e,n,a,L,q,z){this._router=e,this.elementRef=n,this.toastr=a,this.checkBrowser=L,this.authService=q,this.ngxPermission=z,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.initLogin(),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#dfeffc",this.browser=this.checkBrowser.getBrowserName()}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){const e=JSON.parse(localStorage.getItem("Authorization"));this.username=e?.username,this.subdomain=e?.Host?.split(".dealpos")[0];const n=e?.Host?.split(".dealpos")[1];this.domain=".co.id"==n?".dealpos.co.id":".net"==n?".dealpos.net":".dealpos.com",this.authService.isActiveToken()&&this._router.navigate(["menu"])}onNextState(){h.g.IsEmpty(this.subdomain)?this.toastr.warning("Account Domain is required","Warning"):(this.parseSubdomain(),this.loginState="FORM_AUTH")}parseSubdomain(){let e=this.subdomain.indexOf(".dealpos");-1!=e&&(this.subdomain=this.subdomain.substring(0,e))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){this.authService.login({Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password}).subscribe(n=>{this.onSuccessLogin(n)})}onLoginByGoogle(e){this.authService.loginWithGoogle(e,`${this.subdomain}${this.domain}`).subscribe(a=>{this.onSuccessLogin(a)})}onSuccessLogin(e){this.ngxPermission.hasPermission([f.G.dashboardView]).then(n=>{this._router.navigate(n?["menu/dashboard"]:e.Channel.length<1?["menu/channel"]:["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}}return(o=r).\u0275fac=function(e){return new(e||o)(t.Y36(c.F0),t.Y36(t.SBq),t.Y36(_._W),t.Y36(b),t.Y36(x.e),t.Y36(m.YI))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-login"]],viewQuery:function(e,n){if(1&e&&t.Gf(C,5),2&e){let a;t.iGM(a=t.CRH())&&(n.subdomainEl=a.first)}},decls:30,vars:8,consts:[[1,"container"],[1,"row","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["ngSrc","https://res.cloudinary.com/pos/image/upload/v1687829600/APP/New_Omnichannel.png","alt","integration-image",1,"img-fluid",3,"width","height"],[1,"col-12","col-md-5","order-first","order-md-last","mt-12"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-8","me-3"],["target","_blank","href","https://www.dealpos.com"],["ngSrc","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid",3,"width","height"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-8","font-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center","mt-6"],[1,"mt-7","w-75","rounded-end-0"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0",2,"padding-left","0px",3,"ngModel","ngModelChange"],["subdomainEl",""],["name","domainOption",1,"form-select","form-control","border-start-0","mt-4","rounded-end","rounded-start-0","domain-option",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end","mt-3"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4," DealPOS Omnichannel "),t.qZA(),t._UZ(5,"img",4),t.qZA(),t.TgZ(6,"div",5)(7,"h1",6),t._uU(8," DealPOS Omnichannel "),t.qZA(),t.YNc(9,v,24,2,"ng-container",7),t.YNc(10,T,39,9,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"div",9)(13,"p",10),t._uU(14,"Powered by :"),t.qZA(),t.TgZ(15,"a",11),t._UZ(16,"img",12),t.qZA(),t._UZ(17,"br"),t.TgZ(18,"a",13),t._uU(19,"Version 2.9.8"),t.qZA()()()(),t.TgZ(20,"footer",14)(21,"div",15)(22,"div",16)(23,"p",10),t._uU(24,"Powered by :"),t.qZA(),t.TgZ(25,"a",11),t._UZ(26,"img",12),t.qZA()(),t.TgZ(27,"div",17)(28,"a",13),t._uU(29,"Version 2.9.8"),t.qZA()()()()),2&e){const a=t.MAs(11);t.xp6(5),t.Q6J("width",350)("height",273),t.xp6(4),t.Q6J("ngIf","FORM_DOMAIN"==n.loginState)("ngIfElse",a),t.xp6(7),t.Q6J("width",130)("height",73),t.xp6(10),t.Q6J("width",130)("height",73)}},dependencies:[l.mk,l.O5,d._Y,d.YN,d.Kr,d.Fj,d.EJ,d.JJ,d.JL,d.Q7,d.On,d.F,l.Zd],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}"]}),r})(),data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:(()=>{var o;class r{constructor(e,n,a){this.route=e,this.http=n,this.service=a}ngOnInit(){this.route.queryParams.subscribe(e=>{this.shopID=e.shop_id,this.code=e.code})}addShopee(){let e={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",e).subscribe(a=>{this.service.navigate(["/menu/channel"])})}}return(o=r).\u0275fac=function(e){return new(e||o)(t.Y36(c.gz),t.Y36(g.O),t.Y36(c.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["shopee-authorized"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA()(),t.TgZ(8,"div",7)(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Shopee"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your shopID is "),t.TgZ(15,"span",8),t._uU(16),t.qZA()(),t.TgZ(17,"button",9),t.NdJ("click",function(){return n.addShopee()}),t._UZ(18,"i",10),t._uU(19," Add to my Channel"),t.qZA()()()()()()),2&e&&(t.xp6(16),t.Oqu(n.shopID))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]}),r})(),data:{title:"Success"}},{path:"tiktok",component:(()=>{var o;class r{constructor(e,n,a){this.route=e,this.http=n,this.service=a}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){this.http.post("/api/ChannelAdd/AddTiktok",{Code:this.code}).subscribe(n=>{this.service.navigate(["/menu/channel"])})}}return(o=r).\u0275fac=function(e){return new(e||o)(t.Y36(c.gz),t.Y36(g.O),t.Y36(c.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-tiktok"]],decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA()(),t.TgZ(8,"div",7)(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Tiktok"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your Code is "),t.TgZ(15,"span",8),t._uU(16),t.qZA()(),t.TgZ(17,"div"),t._uU(18," Your State is "),t.TgZ(19,"span",8),t._uU(20),t.qZA()(),t.TgZ(21,"button",9),t.NdJ("click",function(){return n.addChannelTiktok()}),t._UZ(22,"i",10),t._uU(23," Add to my Channel"),t.qZA()()()()()()),2&e&&(t.xp6(16),t.Oqu(n.code),t.xp6(4),t.Oqu(n.state))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]}),r})(),data:{title:"Success"}},{path:"lazada",component:u,data:{title:"Success"}}];let k=(()=>{var o;class r{}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[c.Bz.forChild(P),c.Bz]}),r})();var U=s(4807);let S=(()=>{var o;class r{}return(o=r).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[l.ez,d.u5,k,U.A0,m.VI]}),r})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[299],{299:(O,p,c)=>{c.r(p),c.d(p,{NotificationModule:()=>b});var s=c(6814),d=c(9790),u=c(5802),C=c(5623),N=c(8645),_=c(9773),r=c(7398),f=c(7081),t=c(5879),v=c(9659),T=c(3079),l=c(4807),g=c(6223),m=c(4387),h=c(8558);function Z(n,a){if(1&n&&(t.TgZ(0,"span",13),t._UZ(1,"img",14),t.qZA(),t._uU(2)),2&n){const e=a.item;t.xp6(1),t.Q6J("src",e.logo,t.LSH),t.xp6(1),t.hij(" ",e.Name," ")}}function x(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.TgZ(3,"span"),t._uU(4,"s"),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.DurationInSecond,"1.1-1")," ")}}function y(n,a){1&n&&t._uU(0," - ")}const A=function(n,a){return{"bg-gradient-danger":n,"bg-gradient-warning":a}};function I(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",15)(2,"td"),t._UZ(3,"img",16),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"td")(7,"b"),t._uU(8),t.qZA(),t._UZ(9,"div",17),t.qZA(),t.TgZ(10,"td"),t.YNc(11,x,5,4,"ng-container",18),t.YNc(12,y,1,0,"ng-template",null,19,t.W1O),t.qZA(),t.TgZ(14,"td"),t._uU(15),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"date"),t.qZA()(),t.BQk()),2&n){const e=a.$implicit,o=t.MAs(13);t.xp6(1),t.Q6J("ngClass",t.WLB(12,A,1==e.Status,0==e.Status)),t.xp6(2),t.s9C("src",e.Img,t.LSH),t.xp6(2),t.Oqu(e.Name),t.xp6(3),t.Oqu(e.Label),t.xp6(1),t.Q6J("innerHTML",e.Message,t.oJD),t.xp6(2),t.Q6J("ngIf",e.DurationInSecond)("ngIfElse",o),t.xp6(4),t.Oqu(e.StatusLabel),t.xp6(2),t.Oqu(t.xi3(18,9,e.Created,"dd MMM yyyy HH:mm"))}}function S(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",5)(2,"div",20)(3,"app-custom-paginator",21),t.NdJ("total",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.getRowCount())})("next",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onNextPage())})("previous",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onPreviousPage())}),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA()()(),t.BQk()}if(2&n){const e=t.oxw().ngIf,o=t.oxw();t.xp6(3),t.Q6J("filter",o.filter)("totaldata",null==e?null:e.length)("paginationTotal",t.lcZ(4,4,o.rowCount$))("hasClicked",t.lcZ(5,6,o.rowCount$))}}function L(n,a){if(1&n&&(t.ynx(0),t.YNc(1,S,6,8,"ng-container",12),t.BQk()),2&n){const e=a.ngIf;t.xp6(1),t.Q6J("ngIf",e.length>0)}}const M=[{path:"",component:(()=>{var n;class a{constructor(o,i){this.http=o,this.notificationService=i,this.filter=new C.k,this.destroy$=new N.x}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe((0,_.R)(this.destroy$)).subscribe(o=>{o.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(o=>{this.filter=o.Filter,this.filter.PageSize=this.filter.RowCount,this.channelOptions=u.g.assignChannelLogo(o.Options.Channel),this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){this.notifications$=this.http.post("/api/notification/Get",{ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber}).pipe((0,r.U)(i=>i.Data),(0,r.U)(i=>(i=this.setChannelLogoToNotifications(i),this.setTimeToSecond(i))),(0,f.d)(1))}setTimeToSecond(o){return o.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i))}setChannelLogoToNotifications(o){return o.map(i=>(i.Img=u.g.getChannelLogoByTypeId(i.TypeID),i))}onNextPage(){this.filter.PageNumber+=1,this.getNotifications()}onPreviousPage(){this.filter.PageNumber-=1,this.getNotifications()}getRowCount(){this.rowCount$=this.http.post("/api/notification/RowCount",{ChannelID:this.filter.ChannelID}).pipe((0,r.U)(i=>i.Count),(0,f.d)(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(n=a).\u0275fac=function(o){return new(o||n)(t.Y36(v.O),t.Y36(T.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-notification"]],decls:31,vars:9,consts:[["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],["container",""],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[3,"ngClass"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["timeNotAvailable",""],[1,"col-12"],[3,"filter","totaldata","paginationTotal","hasClicked","total","next","previous"]],template:function(o,i){1&o&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return i.onFilter()}),t.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h6"),t._uU(5,"Channel"),t.qZA(),t.TgZ(6,"ng-select",2),t.NdJ("ngModelChange",function(D){return i.filter.ChannelID=D}),t.YNc(7,Z,3,2,"ng-template",3),t.qZA()()()(),t.TgZ(8,"content")(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"table",8)(14,"thead",9)(15,"tr",10)(16,"th"),t._uU(17,"Channel"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Process"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Duration"),t.qZA(),t.TgZ(22,"th"),t._uU(23,"Status"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Created"),t.qZA()()(),t.TgZ(26,"tbody"),t.YNc(27,I,19,15,"ng-container",11),t.ALo(28,"async"),t.qZA()()()()(),t.YNc(29,L,2,1,"ng-container",12),t.ALo(30,"async"),t.qZA()()()),2&o&&(t.xp6(6),t.Q6J("clearable",!0)("items",i.channelOptions)("ngModel",i.filter.ChannelID),t.xp6(21),t.Q6J("ngForOf",t.lcZ(28,5,i.notifications$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(30,7,i.notifications$)))},dependencies:[s.mk,s.sg,s.O5,l.w9,l.ir,g.JJ,g.On,m.p,h.y,s.Ov,s.JJ,s.uU]}),a})()}];let U=(()=>{var n;class a{}return(n=a).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.ez,d.Bz.forChild(M)]}),a})(),b=(()=>{var n;class a{}return(n=a).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.ez,U,l.A0,g.u5,m.R,h.y]}),a})()}}]);
|