PageSourceSearch

https://decizone.com/278.b8ad80baed58a1eb.js

js decizone.com collected 2026-10-05 09:46:59 UTC 5,892 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdzweb=self.webpackChunkdzweb||[]).push([[278],{20278:(O,p,o)=>{o.r(p),o.d(p,{AddConsentModule:()=>Y});var c=o(36895),i=o(24006),l=o(19132),h=o(69814),Z=o(10920),n=o(94650),A=o(99082),T=o(82345),m=o(59549),M=o(284),v=o(4859),C=o(73546),N=o(51572),f=o(71948),q=o(83683);function U(e,d){if(1&e&&(n.TgZ(0,"mat-error"),n._uU(1),n.qZA()),2&e){const s=n.oxw();n.xp6(1),n.hij(" ",s.genericErrMsg," ")}}function y(e,d){1&e&&(n.TgZ(0,"mat-error"),n._uU(1," Consent Type is required "),n.qZA())}function J(e,d){1&e&&(n.TgZ(0,"mat-error"),n._uU(1," Consent Name is required "),n.qZA())}function b(e,d){1&e&&(n.TgZ(0,"mat-error"),n._uU(1," Consent Caption is required "),n.qZA())}function x(e,d){1&e&&n._UZ(0,"mat-spinner",24)}const _=function(){return{standalone:!0}},I=function(){return["/admin"]};let Q=(()=>{class e{constructor(s,t,a){this._router=s,this._adminService=t,this.seoService=a,this.model={consentName:"",consentType:"",consentCaption:"",consentRequired:"Y"},this.loading=!1,this.genericErr=!1,this.genericErrMsg="",this.seoService.generateTags({title:"Add Consent - DeciZone",metaTitle:"Add Consent - DeciZone",metaDescription:"Add Consent - DeciZone",metaImageUrl:"https://decizone.com/assets/images/DZ-LOGO-1200x628px-Fb-Li-Opt.png",robots:"noindex,nofollow",slug:window.location.href})}addConsent(){this.loading=!0,this._adminService.createConsent({consentName:this.model.consentName,consentType:this.model.consentType,consentCaption:this.model.consentCaption,isConsentRequired:this.model.consentRequired}).subscribe(t=>{this._router.navigateByUrl("/admin")},t=>{this.loading=!1,this.genericErr=!0,this.genericErrMsg=t&&t.error&&t.error.statusMessage?t&&t.error&&t.error.statusMessage:""})}}return e.\u0275fac=function(s){return new(s||e)(n.Y36(l.F0),n.Y36(A.l),n.Y36(T.v))},e.\u0275cmp=n.Xpm({type:e,selectors:[["ng-component"]],decls:64,vars:17,consts:[[1,"addconsent-form"],[1,"mat-toolbar-tools"],[4,"ngIf"],["name","form","novalidate","",3,"ngSubmit"],["f","ngForm"],[1,"form-full-width"],["for","Consent Type"],["matInput","","placeholder","Consent Type","name","consentType","required","",3,"ngModel","ngModelChange"],["consentType","ngModel"],["align","start"],["align","end"],["for","Consent Name"],["matInput","","placeholder","Consent Name","name","consentName","required","",3,"ngModel","ngModelChange"],["consentName","ngModel"],["for","Consent Caption"],["matInput","","placeholder","Consent Caption","name","consentCaption","mat-maxlength","2048","required","",3,"ngModel","ngModelChange"],["consentCaption","ngModel"],["for","Is consent Required?"],["name","consentRequired",1,"common-radio-group",3,"ngModel","ngModelOptions","ngModelChange"],["value","N"],["value","Y"],["type","submit","color","primary","mat-raised-button","",1,"button-right",3,"disabled"],["class","app-spinner",4,"ngIf"],["mat-button","",3,"routerLink"],[1,"app-spinner"]],template:function(s,t){if(1&s&&(n.TgZ(0,"mat-card",0)(1,"mat-toolbar")(2,"div",1)(3,"h2")(4,"span"),n._uU(5,"Create New Consent"),n.qZA()()()(),n.TgZ(6,"mat-card-content"),n.YNc(7,U,2,1,"mat-error",2),n.TgZ(8,"form",3,4),n.NdJ("ngSubmit",function(){return t.addConsent()}),n.TgZ(10,"table",5)(11,"tr")(12,"td")(13,"mat-form-field",5)(14,"label",6),n._uU(15,"Consent Type"),n.qZA(),n.TgZ(16,"input",7,8),n.NdJ("ngModelChange",function(r){return t.model.consentType=r}),n.qZA(),n.TgZ(18,"mat-hint",9)(19,"strong"),n._uU(20,"Keep it short!"),n.qZA()(),n.TgZ(21,"mat-hint",10),n._uU(22),n.qZA()(),n.YNc(23,y,2,0,"mat-error",2),n.qZA()(),n.TgZ(24,"tr")(25,"td")(26,"mat-form-field",5)(27,"label",11),n._uU(28,"Consent Name"),n.qZA(),n.TgZ(29,"input",12,13),n.NdJ("ngModelChange",function(r){return t.model.consentName=r}),n.qZA(),n.TgZ(31,"mat-hint",9)(32,"strong"),n._uU(33,"Keep it short!"),n.qZA()(),n.TgZ(34,"mat-hint",10),n._uU(35),n.qZA()(),n.YNc(36,J,2,0,"mat-error",2),n.qZA()(),n.TgZ(37,"tr")(38,"td")(39,"mat-form-field",5)(40,"label",14),n._uU(41,"Consent Caption"),n.qZA(),n.TgZ(42,"input",15,16),n.NdJ("ngModelChange",function(r){return t.model.consentCaption=r}),n.qZA(),n.TgZ(44,"mat-hint",9)(45,"strong"),n._uU(46,"Keep it short!"),n.qZA()(),n.TgZ(47,"mat-hint",10),n._uU(48),n.qZA()(),n.YNc(49,b,2,0,"mat-error",2),n.qZA()(),n.TgZ(50,"tr")(51,"td")(52,"label",17),n._uU(53,"Is consent Required?"),n.qZA(),n.TgZ(54,"mat-radio-group",18),n.NdJ("ngModelChange",function(r){return t.model.consentRequired=r}),n.TgZ(55,"mat-radio-button",19),n._uU(56,"NO"),n.qZA(),n.TgZ(57,"mat-radio-button",20),n._uU(58,"YES"),n.qZA()()()()(),n.TgZ(59,"button",21),n.YNc(60,x,1,0,"mat-spinner",22),n._uU(61," Add Consent "),n.qZA(),n.TgZ(62,"button",23),n._uU(63,"Back"),n.qZA()()()()),2&s){const a=n.MAs(9),r=n.MAs(17),u=n.MAs(30),g=n.MAs(43);n.xp6(7),n.Q6J("ngIf",t.genericErr),n.xp6(9),n.Q6J("ngModel",t.model.consentType),n.xp6(6),n.hij("",(null==r.value?null:r.value.length)||0," / 255"),n.xp6(1),n.Q6J("ngIf",a.submitted&&!r.valid),n.xp6(6),n.Q6J("ngModel",t.model.consentName),n.xp6(6),n.hij("",(null==u.value?null:u.value.length)||0," / 100"),n.xp6(1),n.Q6J("ngIf",a.submitted&&!u.valid),n.xp6(6),n.Q6J("ngModel",t.model.consentCaption),n.xp6(6),n.hij("",(null==g.value?null:g.value.length)||0," / 2048"),n.xp6(1),n.Q6J("ngIf",a.submitted&&!g.valid),n.xp6(5),n.Q6J("ngModel",t.model.consentRequired)("ngModelOptions",n.DdM(15,_)),n.xp6(5),n.Q6J("disabled",t.loading||a.invalid),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(2),n.Q6J("routerLink",n.DdM(16,I))}},dependencies:[c.O5,m.TO,m.KE,m.bx,M.Nt,v.lW,C.a8,C.dn,N.Ou,f.VQ,f.U0,q.Ye,i._Y,i.Fj,i.JJ,i.JL,i.Q7,i.On,i.F,l.rH],styles:[".addconsent-form[_ngcontent-%COMP%]{max-width:500px;margin:auto}.form-full-width[_ngcontent-%COMP%]{width:100%}"]}),e})(),Y=(()=>{class e{}return e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,h.o9,Z.K,i.u5,l.Bz.forChild([{path:"",component:Q}])]}),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.