PageSourceSearch

https://raceplatform.vn/2471.b154bdccaea680a1.js

js raceplatform.vn collected 2026-10-08 10:18:54 UTC 10,112 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[2471],{32471:(O,M,n)=>{n.r(M),n.d(M,{routes:()=>U});var z=n(72200),a=n(2615),t=n(73664),p=n(43694),f=n(38132),I=n(23687),D=n(86299),y=n(3032),v=n(28461),E=n(18682),F=n(21120),g=n(68018),$=n(78338),R=n(54626),b=n(50513),e=n(30644),u=n(43053),i=n(23359),c=n(84412),h=n(84572),T=n(25558),j=n(88141),L=n(96354),m=n(89417),C=n(84218);let P=(()=>{class r{constructor(){this.fb=(0,a.WQX)(m.ok),this.translate=(0,a.WQX)(g.c$)}form(){return this.fb.group({name:new m.MJ(null,[m.k0.required]),description:new m.MJ(null,[]),quantity:new m.MJ(0,[m.k0.required,m.k0.pattern(/^[0-9]*$/)]),sort:new m.MJ(null,[m.k0.pattern(/^[0-9]*$/)])})}template(){return{name:{component:C.go,option:{nzSize:"large",type:"text",label:this.translate.instant("combo.label.name"),className:["col-12"]}},description:{component:C.dD,option:{nzSize:"large",type:"text",label:this.translate.instant("combo.label.description"),className:["col-12"]}},quantity:{component:C.go,option:{nzSize:"large",type:"text",label:this.translate.instant("combo.label.quantity"),tips:this.translate.instant("combo.label.quantityNote"),className:["col-12"]}},sort:{component:C.go,option:{nzSize:"large",type:"text",label:this.translate.instant("combo.label.sort"),className:["col-12"]}}}}static{this.\u0275fac=function(s){return new(s||r)}}static{this.\u0275prov=a.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var B=n(44486),W=n(16389),N=n(25930);const X=()=>[],G=()=>["/","admin","combo-price"],S=(r,x)=>({campaignId:r,comboId:x}),Q=()=>["/","admin","combo-runner"];function A(r,x){if(1&r){const o=t.RV6();t.j41(0,"tr")(1,"td")(2,"div",13)(3,"p",14)(4,"span",15),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"span",16),t.EFF(8),t.k0s()(),t.j41(9,"p",14)(10,"span",15),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"span",16),t.EFF(14),t.k0s()(),t.j41(15,"p",14)(16,"span",15),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"span",16),t.EFF(20),t.nI1(21,"translate"),t.k0s()(),t.j41(22,"p",14)(23,"span",15),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"span",16),t.EFF(27),t.k0s()()()(),t.j41(28,"td")(29,"div",17)(30,"button",18),t.nrm(31,"i",19),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.j41(34,"button",18),t.nrm(35,"i",20),t.EFF(36),t.nI1(37,"translate"),t.k0s(),t.j41(38,"button",21),t.bIt("click",function(){const l=a.eBV(o).$implicit,d=t.XpG();return a.Njj(d.openEditModal(l))}),t.nrm(39,"i",22),t.EFF(40),t.nI1(41,"translate"),t.k0s(),t.j41(42,"button",23),t.bIt("click",function(){const l=a.eBV(o).$implicit,d=t.XpG();return a.Njj(d.deleteItem(l))}),t.nrm(43,"i",24),t.EFF(44),t.nI1(45,"translate"),t.k0s()()()()}if(2&r){const o=x.$implicit,s=t.XpG();t.R7$(5),t.SpI("",t.bMT(6,16,"combo.label.name"),":"),t.R7$(3),t.JRh(o.name),t.R7$(3),t.SpI("",t.bMT(12,18,"combo.label.description"),":"),t.R7$(3),t.JRh(o.description),t.R7$(3),t.SpI("",t.bMT(18,20,"combo.label.quantity"),":"),t.R7$(3),t.JRh(o.quantity&&o.quantity>0?o.quantity:t.bMT(21,22,"combo.label.doNotLimitQuantity")),t.R7$(4),t.SpI("",t.bMT(25,24,"combo.label.sort"),":"),t.R7$(3),t.JRh(o.sort),t.R7$(3),t.Y8G("routerLink",t.lJ4(34,G))("queryParams",t.l_i(35,S,s.campaignId,o.id)),t.R7$(2),t.SpI(" ",t.bMT(33,26,"combo.action.price")," "),t.R7$(2),t.Y8G("routerLink",t.lJ4(38,Q))("queryParams",t.l_i(39,S,s.campaignId,o.id)),t.R7$(2),t.SpI(" ",t.bMT(37,28,"combo.action.config")," "),t.R7$(4),t.SpI(" ",t.bMT(41,30,"common.edit")," "),t.R7$(4),t.SpI(" ",t.bMT(45,32,"common.delete")," ")}}const U=[{path:"",component:(()=>{class r{constructor(){this.modal=(0,a.WQX)(u.N_),this.comboService=(0,a.WQX)(B.k),this.translate=(0,a.WQX)(g.c$),this.activatedRoute=(0,a.WQX)(p.nX),this.ngxFormManager=(0,a.WQX)($.$),this.viewContainerRef=(0,a.WQX)(t.c1b),this.notificationService=(0,a.WQX)(y.JE),this.comboNgxFormService=(0,a.WQX)(P),this.fetchData$=new c.t(null),this.isLoading$=new c.t(!0),this.pagination$=new c.t(null),this.items$=(0,h.z)({queryParams:this.activatedRoute.queryParams,fetchData:this.fetchData$}).pipe((0,T.n)(({queryParams:o})=>(this.campaignId=o.campaignId,this.comboService.get({...o,cache:!1}))),(0,j.M)(o=>{this.isLoading$.next(!1),this.pagination$.next(o.meta.pagination)}),(0,L.T)(o=>(0,R.bj)(F.xI8,o.data))),this.form=this.comboNgxFormService.form()}openCreateModal(){this.form.reset();const o=this.modal.create({nzTitle:this.translate.instant("common.add"),nzContent:I.Q,nzWidth:800,nzData:{form:this.form,template:this.comboNgxFormService.template()},nzViewContainerRef:this.viewContainerRef,nzOnOk:()=>{const s=o.getContentComponent().form;
1if(s.invalid)this.ngxFormManager.markAllAsDirty(s);else{const l={campaignId:this.campaignId,...s.value};this.comboService.create(l).subscribe(()=>{this.notificationService.success(this.translate.instant("success.title"),this.translate.instant("success.create"),{nzDuration:3e3}),this.fetchData$.next(null),o.destroy()})}return!1},nzOnCancel:()=>{this.form.reset(),o.destroy()}})}openEditModal(o){this.form.patchValue(o);const s=this.modal.create({nzTitle:this.translate.instant("common.update"),nzContent:D.A,nzWidth:800,nzData:{form:this.form,template:this.comboNgxFormService.template()},nzViewContainerRef:this.viewContainerRef,nzOnOk:()=>{const l=s.getContentComponent().form;if(l.invalid)this.ngxFormManager.markAllAsDirty(l);else{const d={...l.value};this.comboService.update(o.id,d).subscribe(()=>{this.notificationService.success(this.translate.instant("success.title"),this.translate.instant("success.update"),{nzDuration:3e3}),this.fetchData$.next(null),s.destroy()})}return!1},nzOnCancel:()=>{this.form.reset(),s.destroy()}})}deleteItem(o){this.modal.warning({nzTitle:this.translate.instant("confirmation.remove"),nzContent:this.translate.instant("confirmation.cannotBeUndone"),nzOnOk:()=>{this.comboService.delete(o.id).subscribe(()=>{this.notificationService.success(this.translate.instant("success.title"),this.translate.instant("success.delete"),{nzDuration:3e3}),this.fetchData$.next(null)})}})}static{this.\u0275fac=function(s){return new(s||r)}}static{this.\u0275cmp=t.VBU({type:r,selectors:[["app-list"]],decls:30,vars:19,consts:[["table",""],[1,"component"],[1,"row"],[1,"col"],[1,"title"],[1,"justify-content-between","d-flex","flex-column","flex-sm-row"],[1,"d-flex","justify-content-end","col-12","col-md-1"],["nz-button","","nzType","primary","nzSize","large",1,"mb-3","col-12",3,"click"],["nz-icon","","nzType","plus"],[1,"col","mb-4"],["nzFrontPagination","false",3,"nzData","nzLoading"],[1,"fw-bold"],[3,"pagination"],[1,""],[1,"mb-0"],[1,"me-1"],[1,"fw-4"],[1,"d-flex","d-flex","flex-wrap"],["nz-button","","nzType","dashed","nzSize","small",1,"me-2","mb-2",3,"routerLink","queryParams"],["nz-icon","","nzType","unordered-list"],["nz-icon","","nzType","setting"],["nz-button","","nzType","dashed","nzSize","small",1,"me-2","mb-2",3,"click"],["nz-icon","","nzType","form",2,"color","#1452d7"],["nz-button","","nzType","dashed","nzSize","small","nzDanger","",1,"me-2","mb-2",3,"click"],["nz-icon","","nzType","delete",2,"color","#cf002a"]],template:function(s,l){if(1&s){const d=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h2",4),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.j41(6,"div",5),t.nrm(7,"app-simple-search-form"),t.j41(8,"div",6)(9,"button",7),t.bIt("click",function(){return a.eBV(d),a.Njj(l.openCreateModal())}),t.nrm(10,"i",8),t.EFF(11),t.nI1(12,"translate"),t.k0s()()(),t.j41(13,"div",2)(14,"div",9)(15,"nz-table",10,0),t.nI1(17,"async"),t.nI1(18,"async"),t.j41(19,"thead")(20,"tr")(21,"th",11),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.nrm(24,"th"),t.k0s()(),t.j41(25,"tbody"),t.Z7z(26,A,46,42,"tr",null,t.fX1),t.k0s()()(),t.nrm(28,"app-simple-pagination",12),t.nI1(29,"async"),t.k0s()()}if(2&s){const d=t.sdS(16);t.R7$(4),t.JRh(t.bMT(5,6,"breadcrumb.combo")),t.R7$(7),t.SpI(" ",t.bMT(12,8,"common.create")," "),t.R7$(4),t.Y8G("nzData",t.bMT(17,10,l.items$)||t.lJ4(18,X))("nzLoading",t.bMT(18,12,l.isLoading$)),t.R7$(7),t.SpI(" ",t.bMT(23,14,"COMBO")," "),t.R7$(4),t.Dyx(d.data),t.R7$(2),t.Y8G("pagination",t.bMT(29,16,l.pagination$))}},dependencies:[z.MD,f.iI,f.Wk,g.h,i.$G,i.CP,i.SO,i._4,i.IL,i.aj,i.kt,u.U6,b.Z,b.a,W.c,N.p,e.Y3,e.Dn,v.g,E._,z.Jj,g.D9],encapsulation:2})}}return r})(),data:{breadcrumb:null,append:[{label:"breadcrumb.campaign",url:"/admin/campaign"},{label:"breadcrumb.campaignDetail",url:"/admin/campaign/${queryParams['campaignId']}"},{label:"breadcrumb.combo",url:"#"}]}}]},86299:(O,M,n)=>{n.d(M,{A:()=>b});var z=n(72200),a=n(2615),t=n(73664),p=n(89417),f=n(78338),I=n(23617),D=n(50513),y=n(38927),v=n(43053);const E=["formInputs"];function F(e,u){1&e&&t.eu8(0)}function g(e,u){if(1&e&&t.DNE(0,F,1,0,"ng-container",4),2&e){const i=t.XpG(2);t.Y8G("ngTemplateOutlet",i.note)}}function $(e,u){if(1&e&&t.nrm(0,"nz-alert",3),2&e){const i=t.XpG(2);t.Y8G("nzMessage",i.note)}}function R(e,u){if(1&e&&t.nVh(0,g,1,1,"ng-container")(1,$,1,1,"nz-alert",3),2&e){const i=t.XpG();t.vxM(i.isNoteTemplate?0:1)}}let b=(()=>{class e{constructor(){this.nzModalData=(0,a.WQX)(v.or),this.ngxFormManager=(0,a.WQX)(f.$)}get isNoteTemplate(){return this.note instanceof t.C4Q}ngOnInit(){this.nzLayout=this.nzModalData.nzLayout??"vertical",this.form=this.nzModalData.form,this.template=this.nzModalData.template,this.note=this.nzModalData.note;const i=this.ngxFormManager.init(this.form,this.template);this.ngxFormManager.render(i,this.formInputs.viewContainerRef)}static{this.\u0275fac=function(c){return new(c||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-edit-modal-blueprint"]],viewQuery:function(c,h){if(1&c&&t.GBs(E,7),2&c){let T;t.mGM(T=t.lsd())&&(h.formInputs=T.first)}},decls:5,vars:3,consts:[["formInputs",""],["nz-form","",3,"formGroup","nzLayout"],[1,"row"],["nzType","warning","nzShowIcon","",3,"nzMessage"],[4,"ngTemplateOutlet"]],template:function(c,h){1&c&&(t.nVh(0,R,2,1),t.j41(1,"form",1)(2,"div",2),t.nrm(3,"ngx-form-anchor",null,0),t.k0s()()),2&c&&(t.vxM(h.note?0:-1),t.R7$(),t.Y8G("formGroup",h.form)("nzLayout",h.nzLayout))},dependencies:[z.MD,z.T3,p.YN,p.qT,p.cb,p.X1,p.j4,f.uI,f.II,y.PQ,y.CA,D.Z,v.U6,I.$,I.Y],encapsulation:2})}}return e})()}}]);

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.