marketplacepos 2.8.0 → 2.8.2
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/369.8c9ca2ecf6f3a760.js +1 -0
- package/Marketplace/379.fd2e5a0bd36c9b00.js +1 -0
- package/Marketplace/393.9113a28596b36003.js +1 -0
- package/Marketplace/397.c6768a042e8257c0.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +3 -0
- package/Marketplace/408.c73edfe24695a688.js +1 -0
- package/Marketplace/425.03f8f97da7452806.js +1 -0
- package/Marketplace/46.40ebac81bd0fb91b.js +1 -0
- package/Marketplace/{53.7e8bb7325980dfd5.js → 53.ab0f83f4bba76774.js} +1 -1
- package/Marketplace/655.9604b4370243c059.js +1 -0
- package/Marketplace/717.5d253da5bb63552f.js +1 -0
- package/Marketplace/718.455a3c47fb180214.js +1 -0
- package/Marketplace/{859.b43bda3adda95fa3.js → 859.3a4d26983bbb5254.js} +1 -1
- package/Marketplace/874.5b06431d2b5a1e8f.js +1 -0
- package/Marketplace/877.bab93e3da1ff1928.js +1 -0
- package/Marketplace/884.06eb48b1f2379d09.js +1 -0
- package/Marketplace/{913.6b5b3db030c3bc49.js → 913.ac94f56e393c389b.js} +1 -1
- package/Marketplace/997.1e5281aa64540dee.js +1 -0
- package/Marketplace/common.29d2fb726f28cde8.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/main.f21ded8d313b0b60.js +1 -0
- package/Marketplace/runtime.2d126c69c13cad80.js +1 -0
- package/package.json +1 -1
- package/Marketplace/369.b5bcb467b3ca04c8.js +0 -1
- package/Marketplace/397.55fafd1d8945185c.js +0 -1
- package/Marketplace/408.b53797a5bda9f7f8.js +0 -1
- package/Marketplace/46.67982fb195b43a4d.js +0 -1
- package/Marketplace/655.09b1b17f23a59b7e.js +0 -1
- package/Marketplace/717.2e5a78cf17e9bed1.js +0 -1
- package/Marketplace/718.78930b2d3e9fc2bd.js +0 -1
- package/Marketplace/82.fecf4fa3a3743326.js +0 -1
- package/Marketplace/87.0c53ec1547d4d5d5.js +0 -1
- package/Marketplace/874.7662257927081a57.js +0 -1
- package/Marketplace/877.7e5f8104980e0168.js +0 -1
- package/Marketplace/884.45404dc14d1585a7.js +0 -1
- package/Marketplace/970.7c36426f4bcc50cb.js +0 -1
- package/Marketplace/997.08e3f8cf0bafff67.js +0 -1
- package/Marketplace/common.df21aa97084954ce.js +0 -1
- package/Marketplace/main.c27e23d32d8dc713.js +0 -1
- package/Marketplace/runtime.447f149bd5bc7630.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[970],{501:(N,T,l)=>{l.d(T,{e:()=>y});var D=l(8505),M=l(8996),f=l(4004),e=l(3900),s=l(3942),b=l(4650),P=l(1318),C=l(8002),I=l(7185),E=l(7899);class y{constructor(_,g,S,h){this.httpService=_,this.tokenDecodeService=g,this.toastrService=S,this.afAuth=h}login(_){return this.httpService.post("/api/token/Login",_).pipe((0,D.b)(g=>{this.setLocalStorage(g,_.Host,_.Username),this.validateRole()}))}loginWithGoogle(_,g){_.preventDefault();const S=new s.Z.auth.GoogleAuthProvider;return S.setCustomParameters({prompt:"select_account"}),(0,M.D)(this.afAuth.signInWithPopup(S)).pipe((0,f.U)(h=>h.credential),(0,f.U)(h=>h.idToken),(0,e.w)(h=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:h,Host:g}))),(0,D.b)(h=>{this.setLocalStorage(h,g,null),this.validateRole()}))}setLocalStorage(_,g,S){localStorage.setItem("user",JSON.stringify(_)),localStorage.setItem("Authorization",JSON.stringify({Host:g,username:S})),localStorage.setItem("Intercom",JSON.stringify(_.IntercomWidget))}validateRole(){let _="This user is lack of these following roles :",g=this.tokenDecodeService.GetRoles(),S=g.includes("Sell"),h=g.includes("SellEditor"),x=g.includes("DelC"),O=g.includes("PayC");S||(_=`${_} <br/> Sell Create`),h||(_=`${_} <br/> Sell Editor`),x||(_=`${_} <br/> Delivery Create`),O||(_=`${_} <br/> Payment Create`),(!S||!h||!x||!O)&&this.toastrService.warning(_,"Warning!",{enableHtml:!0})}logout(){this.clearLocalStorage()}isActiveToken(){let _=JSON.parse(window.localStorage.getItem("user")),g=new Date;return null!=_&&(g<new Date(_.Token.expiredAt)||(this.clearLocalStorage(),!1))}getDomain(){if(!this.domain){const _=localStorage.getItem("Authorization");this.domain="https://"+JSON.parse(_).Host}return this.domain}clearLocalStorage(){localStorage.removeItem("Intercom"),localStorage.removeItem("Authorization"),localStorage.removeItem("user")}}y.\u0275fac=function(_){return new(_||y)(b.LFG(P.O),b.LFG(C.e),b.LFG(I._W),b.LFG(E.zQ))},y.\u0275prov=b.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})},2138:(N,T,l)=>{l.d(T,{B8:()=>A,KL:()=>_,U5:()=>B,be:()=>R,gx:()=>O,u6:()=>g});var D=l(7253),M=l(445),f=l(1281),e=l(9521),s=l(4650),b=l(3353),P=l(7579),C=l(9646),I=l(8675),E=l(2722);function y(c,m){1&c&&s.Hsn(0)}const k=["*"];let _=(()=>{class c{constructor(n){this._elementRef=n}focus(){this._elementRef.nativeElement.focus()}}return c.\u0275fac=function(n){return new(n||c)(s.Y36(s.SBq))},c.\u0275dir=s.lG2({type:c,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),c})(),g=(()=>{class c{constructor(n){this.template=n}}return c.\u0275fac=function(n){return new(n||c)(s.Y36(s.Rgc))},c.\u0275dir=s.lG2({type:c,selectors:[["","cdkStepLabel",""]]}),c})(),S=0;const O=new s.OlP("STEPPER_GLOBAL_OPTIONS");let R=(()=>{class c{get editable(){return this._editable}set editable(n){this._editable=(0,f.Ig)(n)}get optional(){return this._optional}set optional(n){this._optional=(0,f.Ig)(n)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(n){this._completedOverride=(0,f.Ig)(n)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(n){this._customError=(0,f.Ig)(n)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(n,a){this._stepper=n,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=a||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return c.\u0275fac=function(n){return new(n||c)(s.Y36((0,s.Gpc)(()=>A)),s.Y36(O,8))},c.\u0275cmp=s.Xpm({type:c,selectors:[["cdk-step"]],contentQueries:function(n,a,u){if(1&n&&s.Suo(u,g,5),2&n){let v;s.iGM(v=s.CRH())&&(a.stepLabel=v.first)}},viewQuery:function(n,a){if(1&n&&s.Gf(s.Rgc,7),2&n){let u;s.iGM(u=s.CRH())&&(a.content=u.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[s.TTD],ngContentSelectors:k,decls:1,vars:0,template:function(n,a){1&n&&(s.F$t(),s.YNc(0,y,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),c})(),A=(()=>{class c{get linear(){return this._linear}set linear(n){this._linear=(0,f.Ig)(n)}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){const a=(0,f.su)(n);this.steps&&this._steps?(this._isValidIndex(a),this.selected?._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(a)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(n){this.selectedIndex=n&&this.steps?this.steps.toArray().indexOf(n):-1}get orientation(){return this._orientation}set orientation(n){this._orientation=n,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===n)}constructor(n,a,u){this._dir=n,this._changeDetectorRef=a,this._elementRef=u,this._destroyed=new P.x,this.steps=new s.n_E,this._sortedHeaders=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=S++}ngAfterContentInit(){this._steps.changes.pipe((0,I.O)(this._steps),(0,E.R)(this._destroyed)).subscribe(n=>{this.steps.reset(n.filter(a=>a._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,I.O)(this._stepHeader),(0,E.R)(this._destroyed)).subscribe(n=>{this._sortedHeaders.reset(n.toArray().sort((a,u)=>a._elementRef.nativeElement.compareDocumentPosition(u._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new D.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,C.of)()).pipe((0,I.O)(this._layoutDirection()),(0,E.R)(this._destroyed)).subscribe(n=>this._keyManager.withHorizontalOrientation(n)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(n=>n.reset()),this._stateChanged()}_getStepLabelId(n){return`cdk-step-label-${this._groupId}-${n}`}_getStepContentId(n){return`cdk-step-content-${this._groupId}-${n}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(n){const a=n-this._selectedIndex;return a<0?"rtl"===this._layoutDirection()?"next":"previous":a>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(n,a="number"){const u=this.steps.toArray()[n],v=this._isCurrentStep(n);return u._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(u,v):this._getGuidelineLogic(u,v,a)}_getDefaultIndicatorLogic(n,a){return n._showError()&&n.hasError&&!a?"error":!n.completed||a?"number":n.editable?"edit":"done"}_getGuidelineLogic(n,a,u="number"){return n._showError()&&n.hasError&&!a?"error":n.completed&&!a?"done":n.completed&&a?u:n.editable&&a?"edit":u}_isCurrentStep(n){return this._selectedIndex===n}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(n){const a=this.steps.toArray();this.selectionChange.emit({selectedIndex:n,previouslySelectedIndex:this._selectedIndex,selectedStep:a[n],previouslySelectedStep:a[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(n):this._keyManager.updateActiveItem(n),this._selectedIndex=n,this._stateChanged()}_onKeydown(n){const a=(0,e.Vb)(n),u=n.keyCode,v=this._keyManager;null==v.activeItemIndex||a||u!==e.L_&&u!==e.K5?v.setFocusOrigin("keyboard").onKeydown(n):(this.selectedIndex=v.activeItemIndex,n.preventDefault())}_anyControlsInvalidOrPending(n){return!!(this._linear&&n>=0)&&this.steps.toArray().slice(0,n).some(a=>{const u=a.stepControl;return(u?u.invalid||u.pending||!a.interacted:!a.completed)&&!a.optional&&!a._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const n=this._elementRef.nativeElement,a=(0,b.ht)();return n===a||n.contains(a)}_isValidIndex(n){return n>-1&&(!this.steps||n<this.steps.length)}}return c.\u0275fac=function(n){return new(n||c)(s.Y36(M.Is,8),s.Y36(s.sBO),s.Y36(s.SBq))},c.\u0275dir=s.lG2({type:c,selectors:[["","cdkStepper",""]],contentQueries:function(n,a,u){if(1&n&&(s.Suo(u,R,5),s.Suo(u,_,5)),2&n){let v;s.iGM(v=s.CRH())&&(a._steps=v),s.iGM(v=s.CRH())&&(a._stepHeader=v)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),c})(),B=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=s.oAB({type:c}),c.\u0275inj=s.cJS({imports:[M.vT]}),c})()},8425:(N,T,l)=>{l.d(T,{C0:()=>Z,T5:()=>se,VY:()=>L,Vq:()=>j,z9:()=>J});var D=l(4080),M=l(2138),f=l(6895),e=l(4650),s=l(3238),b=l(7392),P=l(7253),C=l(7579),I=l(727),E=l(445),y=l(3900),k=l(4004),_=l(8675),g=l(2722),S=l(1884),h=l(7340);function x(i,o){if(1&i&&e.GkF(0,8),2&i){const t=e.oxw();e.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function O(i,o){if(1&i&&(e.TgZ(0,"span",13),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t._getDefaultTextForState(t.state))}}function R(i,o){if(1&i&&(e.TgZ(0,"span",14),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t._intl.completedLabel)}}function A(i,o){if(1&i&&(e.TgZ(0,"span",14),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t._intl.editableLabel)}}function z(i,o){if(1&i&&(e.TgZ(0,"mat-icon",13),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t._getDefaultTextForState(t.state))}}function F(i,o){if(1&i&&(e.ynx(0,9),e.YNc(1,O,2,1,"span",10),e.YNc(2,R,2,1,"span",11),e.YNc(3,A,2,1,"span",11),e.YNc(4,z,2,1,"mat-icon",12),e.BQk()),2&i){const t=e.oxw();e.Q6J("ngSwitch",t.state),e.xp6(1),e.Q6J("ngSwitchCase","number"),e.xp6(1),e.Q6J("ngIf","done"===t.state),e.xp6(1),e.Q6J("ngIf","edit"===t.state)}}function B(i,o){if(1&i&&(e.TgZ(0,"div",15),e.GkF(1,16),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function c(i,o){if(1&i&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.label)}}function m(i,o){if(1&i&&(e.TgZ(0,"div",17),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t._intl.optionalLabel)}}function n(i,o){if(1&i&&(e.TgZ(0,"div",18),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function a(i,o){}function u(i,o){if(1&i&&(e.Hsn(0),e.YNc(1,a,0,0,"ng-template",0)),2&i){const t=e.oxw();e.xp6(1),e.Q6J("cdkPortalOutlet",t._portal)}}const v=["*"];function V(i,o){1&i&&e._UZ(0,"div",11)}const H=function(i,o){return{step:i,i:o}};function $(i,o){if(1&i&&(e.ynx(0),e.GkF(1,9),e.YNc(2,V,1,0,"div",10),e.BQk()),2&i){const t=o.$implicit,r=o.index,p=o.last;e.oxw(2);const d=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",e.WLB(3,H,t,r)),e.xp6(1),e.Q6J("ngIf",!p)}}const U=function(i){return{animationDuration:i}},W=function(i,o){return{value:i,params:o}};function X(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("@horizontalStepTransition.done",function(p){e.CHM(t);const d=e.oxw(2);return e.KtG(d._animationDone.next(p))}),e.GkF(1,13),e.qZA()}if(2&i){const t=o.$implicit,r=o.index,p=e.oxw(2);e.ekj("mat-horizontal-stepper-content-inactive",p.selectedIndex!==r),e.Q6J("@horizontalStepTransition",e.WLB(8,W,p._getAnimationDirection(r),e.VKq(6,U,p._getAnimationDuration())))("id",p._getStepContentId(r)),e.uIk("aria-labelledby",p._getStepLabelId(r)),e.xp6(1),e.Q6J("ngTemplateOutlet",t.content)}}function q(i,o){if(1&i&&(e.TgZ(0,"div",4)(1,"div",5),e.YNc(2,$,3,6,"ng-container",6),e.qZA(),e.TgZ(3,"div",7),e.YNc(4,X,2,11,"div",8),e.qZA()()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.steps),e.xp6(2),e.Q6J("ngForOf",t.steps)}}function ee(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",15),e.GkF(1,9),e.TgZ(2,"div",16)(3,"div",17),e.NdJ("@verticalStepTransition.done",function(p){e.CHM(t);const d=e.oxw(2);return e.KtG(d._animationDone.next(p))}),e.TgZ(4,"div",18),e.GkF(5,13),e.qZA()()()()}if(2&i){const t=o.$implicit,r=o.index,p=o.last,d=e.oxw(2),pe=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",pe)("ngTemplateOutletContext",e.WLB(10,H,t,r)),e.xp6(1),e.ekj("mat-stepper-vertical-line",!p),e.xp6(1),e.ekj("mat-vertical-stepper-content-inactive",d.selectedIndex!==r),e.Q6J("@verticalStepTransition",e.WLB(15,W,d._getAnimationDirection(r),e.VKq(13,U,d._getAnimationDuration())))("id",d._getStepContentId(r)),e.uIk("aria-labelledby",d._getStepLabelId(r)),e.xp6(2),e.Q6J("ngTemplateOutlet",t.content)}}function te(i,o){if(1&i&&(e.ynx(0),e.YNc(1,ee,6,18,"div",14),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.steps)}}function ie(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"mat-step-header",19),e.NdJ("click",function(){const d=e.CHM(t).step;return e.KtG(d.select())})("keydown",function(p){e.CHM(t);const d=e.oxw();return e.KtG(d._onKeydown(p))}),e.qZA()}if(2&i){const t=o.step,r=o.i,p=e.oxw();e.ekj("mat-horizontal-stepper-header","horizontal"===p.orientation)("mat-vertical-stepper-header","vertical"===p.orientation),e.Q6J("tabIndex",p._getFocusIndex()===r?0:-1)("id",p._getStepLabelId(r))("index",r)("state",p._getIndicatorType(r,t.state))("label",t.stepLabel||t.label)("selected",p.selectedIndex===r)("active",p._stepIsNavigable(r,t))("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",p._iconOverrides)("disableRipple",p.disableRipple||!p._stepIsNavigable(r,t))("color",t.color||p.color),e.uIk("aria-posinset",r+1)("aria-setsize",p.steps.length)("aria-controls",p._getStepContentId(r))("aria-selected",p.selectedIndex==r)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)("aria-disabled",!p._stepIsNavigable(r,t)||null)}}let L=(()=>{class i extends M.u6{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=e.n5z(i)))(r||i)}}(),i.\u0275dir=e.lG2({type:i,selectors:[["","matStepLabel",""]],features:[e.qOj]}),i})(),w=(()=>{class i{constructor(){this.changes=new C.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const re={provide:w,deps:[[new e.FiY,new e.tp0,w]],useFactory:function ne(i){return i||new w}},oe=(0,s.pj)(class extends M.KL{constructor(o){super(o)}},"primary");let K=(()=>{class i extends oe{constructor(t,r,p,d){super(p),this._intl=t,this._focusMonitor=r,this._intlSubscription=t.changes.subscribe(()=>d.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._elementRef,t,r):this._elementRef.nativeElement.focus(r)}_stringLabel(){return this.label instanceof L?null:this.label}_templateLabel(){return this.label instanceof L?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(w),e.Y36(P.tE),e.Y36(e.SBq),e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[e.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,r){1&t&&(e._UZ(0,"div",0),e.TgZ(1,"div")(2,"div",1),e.YNc(3,x,1,2,"ng-container",2),e.YNc(4,F,5,4,"ng-container",3),e.qZA()(),e.TgZ(5,"div",4),e.YNc(6,B,2,1,"div",5),e.YNc(7,c,2,1,"div",5),e.YNc(8,m,2,1,"div",6),e.YNc(9,n,2,1,"div",7),e.qZA()),2&t&&(e.Q6J("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),e.xp6(1),e.Gre("mat-step-icon-state-",r.state," mat-step-icon"),e.ekj("mat-step-icon-selected",r.selected),e.xp6(1),e.Q6J("ngSwitch",!(!r.iconOverrides||!r.iconOverrides[r.state])),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(2),e.ekj("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error","error"==r.state),e.xp6(1),e.Q6J("ngIf",r._templateLabel()),e.xp6(1),e.Q6J("ngIf",r._stringLabel()),e.xp6(1),e.Q6J("ngIf",r.optional&&"error"!=r.state),e.xp6(1),e.Q6J("ngIf","error"==r.state))},dependencies:[f.O5,f.tP,f.RF,f.n9,f.ED,b.Hw,s.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),i})();const Q="500ms",Y="225ms",G={horizontalStepTransition:(0,h.X$)("horizontalStepTransition",[(0,h.SB)("previous",(0,h.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,h.SB)("current",(0,h.oB)({transform:"none",visibility:"inherit"})),(0,h.SB)("next",(0,h.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,h.eR)("* => *",(0,h.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:Q}})]),verticalStepTransition:(0,h.X$)("verticalStepTransition",[(0,h.SB)("previous",(0,h.oB)({height:"0px",visibility:"hidden"})),(0,h.SB)("next",(0,h.oB)({height:"0px",visibility:"hidden"})),(0,h.SB)("current",(0,h.oB)({height:"*",visibility:"inherit"})),(0,h.eR)("* <=> current",(0,h.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:Y}})])};let J=(()=>{class i{constructor(t){this.templateRef=t}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Rgc))},i.\u0275dir=e.lG2({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),i})(),ae=(()=>{class i{constructor(t){this._template=t}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Rgc))},i.\u0275dir=e.lG2({type:i,selectors:[["ng-template","matStepContent",""]]}),i})(),Z=(()=>{class i extends M.be{constructor(t,r,p,d){super(t,d),this._errorStateMatcher=r,this._viewContainerRef=p,this._isSelected=I.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,y.w)(()=>this._stepper.selectionChange.pipe((0,k.U)(t=>t.selectedStep===this),(0,_.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new D.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,r){return this._errorStateMatcher.isErrorState(t,r)||!!(t&&t.invalid&&this.interacted)}}return i.\u0275fac=function(t){return new(t||i)(e.Y36((0,e.Gpc)(()=>j)),e.Y36(s.rD,4),e.Y36(e.s_b),e.Y36(M.gx,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-step"]],contentQueries:function(t,r,p){if(1&t&&(e.Suo(p,L,5),e.Suo(p,ae,5)),2&t){let d;e.iGM(d=e.CRH())&&(r.stepLabel=d.first),e.iGM(d=e.CRH())&&(r._lazyContent=d.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[e._Bn([{provide:s.rD,useExisting:i},{provide:M.be,useExisting:i}]),e.qOj],ngContentSelectors:v,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,r){1&t&&(e.F$t(),e.YNc(0,u,2,1,"ng-template"))},dependencies:[D.Pl],encapsulation:2,changeDetection:0}),i})(),j=(()=>{class i extends M.B8{get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}constructor(t,r,p){super(t,r,p),this.steps=new e.n_E,this.animationDone=new e.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new C.x,this._animationDuration="";const d=p.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:r})=>this._iconOverrides[t]=r),this.steps.changes.pipe((0,g.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,S.x)((t,r)=>t.fromState===r.fromState&&t.toState===r.toState),(0,g.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}_stepIsNavigable(t,r){return r.completed||this.selectedIndex===t||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?Q:Y}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E.Is,8),e.Y36(e.sBO),e.Y36(e.SBq))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,r,p){if(1&t&&(e.Suo(p,Z,5),e.Suo(p,J,5)),2&t){let d;e.iGM(d=e.CRH())&&(r._steps=d),e.iGM(d=e.CRH())&&(r._icons=d)}},viewQuery:function(t,r){if(1&t&&e.Gf(K,5),2&t){let p;e.iGM(p=e.CRH())&&(r._stepHeader=p)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(t,r){2&t&&(e.uIk("aria-orientation",r.orientation),e.ekj("mat-stepper-horizontal","horizontal"===r.orientation)("mat-stepper-vertical","vertical"===r.orientation)("mat-stepper-label-position-end","horizontal"===r.orientation&&"end"==r.labelPosition)("mat-stepper-label-position-bottom","horizontal"===r.orientation&&"bottom"==r.labelPosition)("mat-stepper-header-position-bottom","bottom"===r.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[e._Bn([{provide:M.B8,useExisting:i}]),e.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,r){1&t&&(e.ynx(0,0),e.YNc(1,q,5,2,"div",1),e.YNc(2,te,2,1,"ng-container",2),e.BQk(),e.YNc(3,ie,1,23,"ng-template",null,3,e.W1O)),2&t&&(e.Q6J("ngSwitch",r.orientation),e.xp6(1),e.Q6J("ngSwitchCase","horizontal"),e.xp6(1),e.Q6J("ngSwitchCase","vertical"))},dependencies:[f.sg,f.O5,f.tP,f.RF,f.n9,K],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[G.horizontalStepTransition,G.verticalStepTransition]},changeDetection:0}),i})(),se=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({providers:[re,s.rD],imports:[s.BQ,f.ez,D.eL,M.U5,b.Ps,s.si,s.BQ]}),i})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[997],{1997:(Z,y,a)=>{a.r(y),a.d(y,{DownloadModule:()=>g});var u=a(6895),t=a(4650),f=a(2937),r=a(284);const U=function(n){return[n]};function m(n,e){if(1&n&&(t.ynx(0),t.TgZ(1,"a",9),t._uU(2),t.qZA(),t.BQk()),2&n){const o=e.$implicit;t.xp6(1),t.Q6J("routerLink",t.VKq(2,U,o.url)),t.xp6(1),t.hij(" ",o.title,"")}}class l{constructor(){this.tabs=[{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}],this.moreMenu=[{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}]}}l.\u0275fac=function(e){return new(e||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-download"]],decls:12,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[4,"ngFor","ngForOf"],[1,"dropdown-item",3,"routerLink"]],template:function(e,o){1&e&&(t.TgZ(0,"nav",0)(1,"div",1)(2,"div"),t._UZ(3,"nav-tab",2),t.qZA()(),t.TgZ(4,"div")(5,"div",3)(6,"a",4),t._UZ(7,"i",5),t.qZA(),t.TgZ(8,"div",6)(9,"div",7),t.YNc(10,m,3,4,"ng-container",8),t.qZA()()()()(),t._UZ(11,"router-outlet")),2&e&&(t.xp6(3),t.Q6J("Tabs",o.tabs),t.xp6(7),t.Q6J("ngForOf",o.moreMenu))},dependencies:[u.sg,f.e,r.lC,r.rH]});var d=a(2138),c=a(1318);class i{constructor(e){this.httpService=e}download(e){return this.httpService.post("/api/Product/downloadurl",e)}}i.\u0275fac=function(e){return new(e||i)(t.LFG(c.O))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"});var w=a(501),C=a(4006),b=a(7481),_=a(8425);function x(n,e){if(1&n&&(t.TgZ(0,"th"),t._uU(1),t.qZA()),2&n){const o=e.$implicit;t.xp6(1),t.Oqu(o.column)}}function D(n,e){if(1&n&&(t.ynx(0),t.TgZ(1,"td"),t._UZ(2,"span",6),t.qZA(),t.BQk()),2&n){const o=e.$implicit,s=t.oxw().$implicit;t.xp6(2),t.Q6J("innerHTML",s[o.prop],t.oJD)}}const N=function(n){return{"background-color":n}};function S(n,e){if(1&n&&(t.TgZ(0,"tr",5),t.YNc(1,D,3,1,"ng-container",3),t.qZA()),2&n){const o=e.$implicit,s=t.oxw();t.Q6J("ngStyle",t.VKq(2,N,o.Status>200?"#F4D6D5":"#DEE9C9")),t.xp6(1),t.Q6J("ngForOf",s.configs)}}class h{constructor(){this.eventClose=new t.vpe}ngOnInit(){}onClose(){this.eventClose.emit()}}function A(n,e){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",23),t.NdJ("click",function(){t.CHM(o);const p=t.oxw(),T=t.MAs(11);return t.KtG(p.onNewStepperState(T))}),t._UZ(2,"i",24),t._uU(3," New "),t.qZA(),t.BQk()}}function B(n,e){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",23),t.NdJ("click",function(){t.CHM(o),t.oxw();const p=t.MAs(11);return t.KtG(p.previous())}),t._uU(2," Back "),t.qZA(),t.BQk()}}function I(n,e){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",25),t.NdJ("click",function(){t.CHM(o);const p=t.oxw(),T=t.MAs(11);return t.KtG(p.onStepperNext(T))}),t._uU(2," Next "),t.qZA(),t.BQk()}}function O(n,e){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"button",26),t.NdJ("click",function(){t.CHM(o);const p=t.oxw(),T=t.MAs(11);return t.KtG(p.onSubmit(T))}),t._uU(2,"Download"),t.qZA(),t.BQk()}if(2&n){const o=t.oxw();t.xp6(1),t.Q6J("disabled",!o.urls)}}function k(n,e){1&n&&t._uU(0,"Instruction")}function L(n,e){1&n&&t._uU(0,"Download")}function F(n,e){1&n&&t._uU(0,"Finish")}function M(n,e){1&n&&t._UZ(0,"i",27)}function J(n,e){1&n&&t._UZ(0,"i",28)}function Q(n,e){1&n&&t._UZ(0,"i",29)}h.\u0275fac=function(e){return new(e||h)},h.\u0275cmp=t.Xpm({type:h,selectors:[["app-response-api-list"]],inputs:{configs:"configs",data:"data",status:"status"},outputs:{eventClose:"onClose"},decls:7,vars:2,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"innerHTML"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),t.YNc(4,x,2,1,"th",3),t.qZA()(),t.TgZ(5,"tbody"),t.YNc(6,S,2,4,"tr",4),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngForOf",o.configs),t.xp6(2),t.Q6J("ngForOf",o.data))},dependencies:[u.sg,u.PC]});class v{constructor(e,o){this.downloadService=e,this.authService=o,this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder="https://tokopedia.com/tokoriyanadi/kaos-polos-biru\nhttps://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat",this.currentDomain=this.authService.getDomain()}onStepperChange(e){this.stepperState=e.selectedStep.state}onSubmit(e){const o=this.urls.split(/\r?\n/);this.downloadService.download(o).subscribe(s=>{this.downloadResponses=s,this.mappingLinkToProduct(),this.onStepperNext(e)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(e=>(e.Name=e?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${e.ID}" target="_blank">\n ${e?.Name}\n </a>`:"-",e))}onNewStepperState(e){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",e.reset(),this.onStepperNext(e)}onStepperNext(e){e.selected.completed=!0,e.next()}}v.\u0275fac=function(e){return new(e||v)(t.Y36(i),t.Y36(w.e))},v.\u0275cmp=t.Xpm({type:v,selectors:[["app-by-url"]],features:[t._Bn([{provide:d.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:41,vars:15,consts:[["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["labelPosition","bottom","linear","",1,"stepper-downloadByUrl",3,"selectedIndex","selectionChange"],["stepper",""],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],["state","DOWNLOAD",3,"editable","completed"],["name","url","cols","30","rows","25",1,"form-control",3,"placeholder","ngModel","ngModelChange"],["state","FINISH"],["status","error",3,"data","configs"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"disabled","click"],[1,"fa-solid","fa-info"],[1,"fa-solid","fa-download"],[1,"fa-sharp","fa-solid","fa-flag"]],template:function(e,o){1&e&&(t.TgZ(0,"mainpanel",0)(1,"actions"),t.YNc(2,A,4,0,"ng-container",1),t.YNc(3,B,3,0,"ng-container",1),t.YNc(4,I,3,0,"ng-container",1),t.YNc(5,O,3,1,"ng-container",1),t.qZA(),t.TgZ(6,"content")(7,"div",2)(8,"div",3)(9,"div",4)(10,"mat-stepper",5,6),t.NdJ("selectionChange",function(p){return o.onStepperChange(p)}),t.TgZ(12,"mat-step",7),t.YNc(13,k,1,0,"ng-template",8),t.TgZ(14,"div",9)(15,"div",10)(16,"div",11)(17,"h4",12),t._uU(18,"Note"),t.qZA()(),t.TgZ(19,"div",13)(20,"ol",14)(21,"li"),t._uU(22," Use this form to Download Products from Tokopedia using product URL "),t.qZA(),t.TgZ(23,"li"),t._uU(24," Copy Product URL from "),t.TgZ(25,"a",15),t._uU(26,"https://seller.tokopedia.com/ "),t.qZA(),t._uU(27," and paste in this form "),t.qZA(),t.TgZ(28,"li"),t._uU(29," Use New Line when you want to input several product URLs "),t.qZA()()()()()(),t.TgZ(30,"mat-step",16),t.YNc(31,L,1,0,"ng-template",8),t.TgZ(32,"div",9)(33,"textarea",17),t.NdJ("ngModelChange",function(p){return o.urls=p}),t.qZA()()(),t.TgZ(34,"mat-step",18),t.YNc(35,F,1,0,"ng-template",8),t.TgZ(36,"div",9),t._UZ(37,"app-response-api-list",19),t.qZA()(),t.YNc(38,M,1,0,"ng-template",20),t.YNc(39,J,1,0,"ng-template",21),t.YNc(40,Q,1,0,"ng-template",22),t.qZA()()()()()()),2&e&&(t.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),t.xp6(2),t.Q6J("ngIf","FINISH"==o.stepperState),t.xp6(1),t.Q6J("ngIf","DOWNLOAD"==o.stepperState),t.xp6(1),t.Q6J("ngIf","GUIDE"==o.stepperState),t.xp6(1),t.Q6J("ngIf","DOWNLOAD"==o.stepperState),t.xp6(5),t.Q6J("selectedIndex",1),t.xp6(2),t.Q6J("editable","FINISH"!=o.stepperState)("completed",!0),t.xp6(18),t.Q6J("editable","FINISH"!=o.stepperState)("completed",!1),t.xp6(3),t.Q6J("placeholder",o.urlPlaceholder)("ngModel",o.urls),t.xp6(4),t.Q6J("data",o.downloadResponses)("configs",o.configs))},dependencies:[u.O5,C.Fj,C.JJ,C.On,b.p,_.C0,_.VY,_.Vq,_.z9,h],styles:[".card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container mat-step-header>div.mat-step-label{padding-top:8px}\n"],encapsulation:2});var P=a(8063),E=a(7392);const R=[{path:"",component:l,children:[{path:"by-url",component:v,data:{title:"Download Product By Url"},canActivate:[P.a]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}];class g{}g.\u0275fac=function(e){return new(e||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({providers:[i],imports:[u.ez,C.u5,f.Z,b.R,_.T5,E.Ps,r.Bz.forChild(R)]})},2937:(Z,y,a)=>{a.d(y,{Z:()=>l,e:()=>m});var u=a(6895),t=a(266),f=a(284),r=a(4650);function U(d,c){if(1&d&&(r.TgZ(0,"li",2)(1,"a",3),r._uU(2),r.qZA()()),2&d){const i=c.$implicit;r.xp6(1),r.s9C("routerLink",i.Url),r.Q6J("title",i.Description?i.Description:""),r.xp6(1),r.hij(" ",i.Title," ")}}class m{}m.\u0275fac=function(c){return new(c||m)},m.\u0275cmp=r.Xpm({type:m,selectors:[["nav-tab"]],inputs:{Tabs:"Tabs"},decls:2,vars:1,consts:[[1,"nav","navbar-nav","navbar-left","nav-tab-arrow"],["routerLinkActive","active","class","nav-item me-6",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"nav-item","me-6"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink","title"]],template:function(c,i){1&c&&(r.TgZ(0,"ul",0),r.YNc(1,U,3,3,"li",1),r.qZA()),2&c&&(r.xp6(1),r.Q6J("ngForOf",i.Tabs))},dependencies:[u.sg,f.rH,f.Od]});class l{}l.\u0275fac=function(c){return new(c||l)},l.\u0275mod=r.oAB({type:l}),l.\u0275inj=r.cJS({imports:[u.ez,f.Bz,t.AV]})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[592],{2428:(m,c,o)=>{o.d(c,{T:()=>s});var n=o(1889),e=o(4650),r=o(1318);class s{constructor(a){this.httpService=a}getChannel(){return this.httpService.post("/api/Channel/GetChannel",{})}testShopID(a){return this.httpService.post("/api/Channel/TestShopID",a)}updateChannelIndex(a){return this.httpService.post("/api/Channel/UpdateChannelIndex",a)}deleteChannel(a){return this.httpService.post("/api/Channel/DeleteChannel",a)}mapChannelImage(a){return a.map(i=>(i.img=n.g.getChannelLogoByTypeId(i.TypeID),i))}}s.\u0275fac=function(a){return new(a||s)(e.LFG(r.O))},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})},1290:(m,c,o)=>{o.d(c,{k:()=>n});class n{}},1108:(m,c,o)=>{o.d(c,{f:()=>r});var n=o(6895),e=o(4650);class r{}r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[n.ez]})},6732:(m,c,o)=>{o.d(c,{y:()=>l});var n=o(6895),e=o(4650);function r(a,i){if(1&a){const t=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(t);const u=e.oxw();return e.KtG(u.getTotal())}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function s(a,i){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,t.paginationTotal))}}class l{constructor(){this.get=new e.vpe,this.change=new e.vpe,this.next=new e.vpe,this.previous=new e.vpe,this.total=new e.vpe,this.hasClicked=!1}changePage(i){this.filter.PageNumber=i.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}l.\u0275fac=function(i){return new(i||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-custom-paginator"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},standalone:!0,features:[e.jDz],decls:16,vars:11,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3),e.ALo(4,"number"),e.ALo(5,"number"),e.YNc(6,r,3,0,"span",3),e.YNc(7,s,3,3,"span",4),e._uU(8),e.qZA()(),e.TgZ(9,"div",5)(10,"a",6),e.NdJ("click",function(){return t.PreviousPage()}),e._UZ(11,"i",7),e._uU(12," Prev"),e.qZA(),e.TgZ(13,"a",8),e.NdJ("click",function(){return t.NextPage()}),e._UZ(14,"i",9),e._uU(15," Next"),e.qZA()()()),2&i&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,7,t.filter.PageSize*(t.filter.PageNumber-1)+1)," - ",e.lcZ(5,9,t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!t.hasClicked),e.xp6(1),e.Q6J("ngIf",t.hasClicked),e.xp6(1),e.hij(" records ~ ",t.filter.PageNumber," Page "),e.xp6(2),e.Q6J("hidden",1==t.filter.PageNumber),e.xp6(3),e.Q6J("hidden",t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata==t.paginationTotal||t.totaldata<t.filter.PageSize))},dependencies:[n.ez,n.O5,n.JJ]})},5585:(m,c,o)=>{o.d(c,{Q:()=>g});var n=o(4650),e=o(3238),r=o(9602),s=o(9549),l=o(4144),a=o(8277);o(5439);class g{constructor(){this.disabled=!1,this.dateChange=new n.vpe,this.width="100%",this.displayToggle=!0}ngAfterViewInit(){}change(p){console.log(p);let _=p.toDate();console.log(_),this.dateChange.emit(_)}onOpenDatepicker(){var p=new bootstrap.Dropdown(document.getElementById("dropdown-filter"));p&&(p._config.autoClose="inside")}onCloseDatepicker(){var p=new bootstrap.Dropdown(document.getElementById("dropdown-filter"));p&&(p._config.autoClose="outside")}}g.\u0275fac=function(p){return new(p||g)},g.\u0275cmp=n.Xpm({type:g,selectors:[["datepicker"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",date:"date",disabled:"disabled",width:"width"},outputs:{dateChange:"dateChange"},standalone:!0,features:[n._Bn([r.FA,{provide:e._A,useClass:a.t7,deps:[e.Ad]},{provide:e.sG,useValue:{parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}}]),n.jDz],decls:5,vars:6,consts:[[1,"date-picker"],["matInput","",3,"matDatepicker","placeholder","value","dateChange","click"],["matSuffix","",3,"for"],[3,"opened","closed"],["picker1",""]],template:function(p,_){if(1&p){const f=n.EpF();n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("dateChange",function(C){return _.change(C.value)})("click",function(){n.CHM(f);const C=n.MAs(4);return n.KtG(C.open())}),n.qZA(),n._UZ(2,"mat-datepicker-toggle",2),n.TgZ(3,"mat-datepicker",3,4),n.NdJ("opened",function(){return _.onOpenDatepicker()})("closed",function(){return _.onCloseDatepicker()}),n.qZA()()}if(2&p){const f=n.MAs(4);n.Udp("width",_.width),n.xp6(1),n.s9C("placeholder",_.placeholder||""),n.Q6J("matDatepicker",f)("value",_.date),n.xp6(1),n.Q6J("for",f)}},dependencies:[e.XK,r.FA,r.Mq,r.hl,r.nW,s.lN,s.KE,s.R9,l.c,l.Nt],styles:["mat-form-field.date-picker.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{background-color:#fff!important;height:45px!important;font-size:14px;padding-left:4px}\n"],encapsulation:2})},2594:(m,c,o)=>{o.d(c,{n:()=>l});var n=o(6895),e=o(4650);function r(a,i){if(1&a){const t=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){e.CHM(t);const u=e.oxw();return u.getTotal(),e.KtG(u.hasClicked=!0)}),e.TgZ(1,"i",11),e._uU(2,"?"),e.qZA()()}}function s(a,i){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,t.paginationTotal))}}class l{constructor(){this.get=new e.vpe,this.change=new e.vpe,this.next=new e.vpe,this.previous=new e.vpe,this.total=new e.vpe,this.hasClicked=!1}changePage(i){this.filter.PageNumber=i.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}l.\u0275fac=function(i){return new(i||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},standalone:!0,features:[e.jDz],decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"disabled","click"],[1,"fas","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"disabled","click"],[1,"fas","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(i,t){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3),e.ALo(4,"number"),e.ALo(5,"number"),e.YNc(6,r,3,0,"span",3),e.YNc(7,s,3,3,"span",4),e.qZA()(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return t.PreviousPage()}),e._UZ(10,"i",7),e.qZA(),e.TgZ(11,"button",8),e.NdJ("click",function(){return t.NextPage()}),e._UZ(12,"i",9),e.qZA()()()),2&i&&(e.xp6(3),e.AsE(" Showing ",e.lcZ(4,6,t.filter.PageSize*(t.filter.PageNumber-1)+1)," - ",e.lcZ(5,8,t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata)," of "),e.xp6(3),e.Q6J("ngIf",!t.hasClicked),e.xp6(1),e.Q6J("ngIf",t.hasClicked),e.xp6(2),e.Q6J("disabled",1==t.filter.PageNumber),e.xp6(2),e.Q6J("disabled",t.filter.PageSize*(t.filter.PageNumber-1)+t.totaldata==t.paginationTotal||t.totaldata<t.filter.PageSize))},dependencies:[n.ez,n.O5,n.JJ]})}}]);
|